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

  • Introducing Sophisticated Page Access Control

    Latest updates to edit.scrivito.com

    Tailoring page visibility to teams and visitor groups With Scrivito Web Interface Builder, editors have visibility categories available to restrict who can access which pages. As an editor who has been granted permission to manage custom visibility categories, you can now create such categories...

  • Scrivito Enterprise CMS - Product Illustration

    Scrivito JS SDK 1.49.0 RC 1 Released

    Interface Builder improvements Layout editing mode This new editing mode separates content editing from layout adjustments. In content editing mode, layout elements can only be viewed. To modify them, simply switch to layout editing mode. This clear distinction between content and layout...

  • Scrivito Enterprise CMS - Product Illustration

    Scrivito JS SDK 1.48.1 Released

    This is a bugfix release. Fixed bugs Binary upload API is less strict again Regarding undefined option values, the Binary.upload API method now works as it did prior to version 1.48.0 of the JS SDK. Such undefined values no longer produce an error. We apologize for any inconvenience this may have...

  • Scrivito Enterprise CMS - Product Illustration

    Scrivito JS SDK 1.48.0 Released

    Interface Builder improvements Retrieving data classes by their name A new API method, Scrivito.getDataClass , has been added as a native method for retrieving data classes by their name, obviating the need for custom lookup code. This method complements Scrivito.getClass for accessing object and...

  • Scrivito Enterprise CMS - Product Illustration

    Scrivito JS SDK 1.47.0 Released

    Interface Builder improvements Filtering dates and numbers The filtering options of the data editor have been extended. You can now filter dates and numbers using the following operators: gt (greater than), lt (less than), gte (greater than or equal to), and lte (less than or equal to). These new...

  • Scrivito Enterprise CMS - Product Illustration

    Scrivito JS SDK 1.46.0 Released

    Interface Builder improvements Using attributes of the current page context Attributes of the current page and its ancestors are now available to editors as placeholders and as a data source (datalocator). Note that only attributes of the string type that are also included as attributes in the...

  • Scrivito Enterprise CMS - Product Illustration

    Scrivito JS SDK 1.45.0 Released

    Interface Builder Supports Further Attribute Types for Filtering

    Interface Builder improvements Filtering data by enum, boolean, date, and number attributes The Interface Builder’s data editor now also lets you filter data by attributes of the enum , boolean , date , and number types. This makes it much more convenient and intuitive to select and present data...

  • Scrivito Enterprise CMS - Product Illustration

    Scrivito JS SDK 1.44.2 Released

    Bugfix Release An issue with Scrivito.useDataLocator has been fixed. It prevented filters with reference data attributes from being evaluated properly. We apologize for any inconvenience this issue may have caused! Thanks again for using Scrivito!

  • Scrivito Enterprise CMS - Product Illustration

    Scrivito JS SDK 1.44.1 Released

    Maintenance release This is a maintenance release with minor improvements. As always, we will keep you posted if there is anything interesting to report. Stay tuned! Thanks again for using Scrivito!

  • 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...