Scrivito JS SDK 1.38.0 Released

Posted on November 27, 2023

Improvements

Accessing the current user’s picture

The Scrivito.currentEditor API now seamlessly integrates with IAM, allowing developers to access the picture URL associated with the current editor’s IAM profile.


Easier attribute type migration

There are situations in which a developer needs to change the type of an attribute. If, for example, a widget was extended in order to support selecting several styles instead of just one from those offered, the type of the widget’s attribute used for this needs to be changed from enum to multienum.

Previously, such a type change always required a migration for converting the already existing attribute values to the new format. Now, if the new autoConvertAttributes configuration option is set to true, the SDK automatically converts, for example, enum to multienum (and vice versa), or link to linklist values.

The Scrivito SDK now provides two React hooks for resolving string and HTML values, Scrivito.useResolvedStringValue and Scrivito.useResolvedHtmlValue.


Thank you for using Scrivito!