Scrivito JS SDK 1.41.0 Released

Posted on May 22, 2024

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 scope is just a single item or a collection of items, the new DataScope#isDataItem method can be used. The item can then be retrieved via DataScope#dataItem.

Scrivito.navigateTo can now take a DataItem as its target. As a result, a link for navigating to the details page of the data item is created.

“notEquals” filter operator

When building interfaces with Scrivito, editors can now select is not to filter the results from an external data source. Likewise, developers can now use the notEquals operator with DataScope#transform to filter results.

Visitor authentication with IAM

IAM is JustRelate’s central Identity and Access Management service. It provides a secure, state-of-the-art login service for users of applications built with JustRelate platform solutions such as Scrivito.

The Scrivito SDK now offers IAM-backed visitor authentication, meaning that developers have easy-to-use APIs available for implementing visitor login, displaying protected content to logged-in users, and requiring visitors to log in to the application as a whole, as well as for accessing user details.

Further improvements

Better support for focal points

The Scrivito.BackgroundImageTag component now lets you specify the position of the background image. This makes implementing a focal point for responsive background images a breeze. For example, editors can make sure that the important part of a page header image is not cut off on a wide or narrow screen.

Thank you for using Scrivito!