Scrivito JS SDK 1.43.0 Released

Interface builder improvements

  • Data attributes

    For the application to utilize the attributes selected by content editors, the Scrivito SDK now includes a (beta) API for representing data attributes, DataItemAttribute. A data item attribute can be accessed from a data item via DataScope#dataItemAttribute. It can be used to get or update the attribute value, as well as inspect the item and class it originates from. A DataScope now also provides direct access to its attribute name via DataScope#attributeName.

  • Schema for external data

    It is now possible to configure a schema when providing a data class or a data item. Whenever an attribute is read, written or filtered, and there is a schema entry for this attribute, the value is matched against its attribute definition. If the value does not match the attribute definition from the schema, an error is logged and a default value is returned.

  • Schema reflections

    When writing DataWidgets, it can be useful to access schema information. For example, when rendering a pulldown form element for an enum attribute, one needs to know which values exist. They can now be determined using the useAttributeDefinition hook, which returns the definition of the current attribute. Additionally, it is possible to access the full schema details of a DataItem or a DataClass directly via DataItem#attributeDefinitions and DataClass#attributeDefinitions, correspondingly.

  • Extended filtering options

    DataScope#transform now features further operators, isGreaterThan, isGreaterThanOrEquals, isLessThan, and isLessThanOrEquals. Additionally, you can now apply multiple filter operators to the same attribute or via the “and” filter specification.

  • Improved error handling

    DataScope#take and DataScope#count now throw a Scrivito.DataScopeError whenever a ClientError or DataConnectionError occurs while the index callback is being executed.

  • Improved behavior of the useDataItem hook

    With the latest Scrivito SDK, the behavior of the useDataItem React hook has changed. Previously, if the closest current data was a DataScope, and the second closest was a DataItem, the hook still returned undefined. Now, the hook returns the closest DataItem even if the current data contains DataScopes that are closer.

  • Support for further data types

    The connection callbacks for provideDataClass now also support external data values of the number, boolean and object or array type, in addition to string and null.

Thank you again for using Scrivito!

More great blog posts from Andreas Viebke

  • Scrivito Enterprise CMS - Product Illustration

    Scrivito JS SDK 1.44.0 Released

    Interface Builder improvements LinkTag supports data items The LinkTag component now supports data items as navigation targets. Passing a DataItem to the to prop causes the link to point to the details page of the item concerned. Accessing current data of a specific class The useDataScope and...

  • Providing Data Classes with Custom Attributes

    Latest updates to edit.scrivito.com

    Defining custom attributes via the Interface Builder’s data editor The data editor now lets you add custom attributes to data classes. If, for example, you have a “Current user” data class that requires an attribute not specified in the editing configuration of this class, e.g., “email”, you can...

  • Scrivito Enterprise CMS - Product Illustration

    Scrivito JS SDK 1.42.1 Released

    Bugfixes Data integration issue > DataItem#get > no longer requires a loading context, i.e., > Scrivito.load > or > Scrivito.connect > . We apologize for any inconvenience the above issue may have caused! Thank you for using Scrivito!

  • Scrivito Enterprise CMS - Product Illustration

    Scrivito JS SDK 1.42.0 Released

    Interface Builder improvements DataScope#limit() API method The new DataScope#limit() method determines the maximum number of data items a DataScope may contain. It returns either a number indicating this limit, or undefined if no limit is set. Introducing Scrivito.currentLanguage()...

  • Introducing the ​New Data Editor

    Latest updates to edit.scrivito.com

    > > As you may have noticed, we have been continuously refining and expanding the Interface Builder. Now the time has come for a correspondingly enhanced data editor. > > The new data editor comes with an intuitive interface that provides a visual representation of a data locator as well as...

  • Scrivito Enterprise CMS - Product Illustration

    Scrivito JS SDK 1.41.0 Released

    Interface Builder improvements Accessing a data scope from the current data It is now possible to access a DataScope from the current data using the new Scrivito.useData hook (which supersedes the Scrivito.useDataItem hook). The new hook always returns a DataScope . In order to check whether this...

  • Editing Interface Alignment with Dartagnan

    For an improved overall user experience, we’ve aligned the user interface design of Scrivito with that of our email builder Dartagnan. We wanted to create a consistent look and feel for our customers working with these cloud products from JustRelate. The adjustments we made are geared towards...

  • Scrivito Enterprise CMS - Product Illustration

    Scrivito JS SDK 1.40.0 Released

    Improvements Intermediately rendered components during loading time Scrivito.provideComponent now lets you give proper feedback to the visitor in cases where the actual component that is provided requires some time to load and render itself. This usually short time gap can now be bridged by...

  • Scrivito Enterprise CMS - Product Illustration

    Scrivito JS SDK 1.39.0 Released

    Improvements Enhanced data classes The Scrivito SDK now offers all attributes of a data class as placeholders for its instances, unless configured otherwise via the editing configuration. > As a developer using > Scrivito.provideDataClass > to load external data, you can now also return IDs of...

  • Bienvenue sur Scrivito !

    Latest updates to edit.scrivito.com

    Bienvenue sur Scrivito ! For all you French-speaking users, the Scrivito editing interface is now also available in your language. In addition to dialogs and buttons in French, input fields for page and widget properties have support for locale-specific calendar labels and French number...