Scrivito JS 1.16.0 Released – Featuring React Hooks Support

Scrivito now supports React hooks

Scrivito application developers can now use hooks in components for widgets, pages and other elements for displaying CMS content. For this, Scrivito.provideComponent, Scrivito.registerComponent and Scrivito.connect now support functional components that make use of React hooks, meaning that state and other React features are available without having to provide a class. For more information, see the React documentation about hooks.

In order to support React hooks, Scrivito now requires React 16.8 or later.

Visual editing of HTML properties

If you need an alternative to editing text in place, editing HTML markup in properties views has become more comfortable and self-explanatory. Editors can now edit HTML-based properties in a visual, rich-text manner, taking full advantage of the configurable toolbar buttons. Power users can still edit the source markup using the “HTML” tab.

Who has published this content?

For more transparency concerning the editorial cycle, in addition to the information about when and by whom a page was created and last changed, Scrivito now also lets editors determine by whom and when a page was first and last published.

Customizable page initialization

There are situations in which content needs to be initialized immediately after it has been created. For example, when creating a child page, pre-setting some of its attributes according to its path, language, etc. may be required. To this end, Scrivito now supports defining a callback for every page class and, if provided, executes it immediately after an instance of this class has been created. See the API documentation for further details.

Bugfixes

  • When navigating using a link that includes a hash mark, the SDK no longer interferes with the page scroll behaviour provided by libraries such as scroll-to-fragment.

More great blog posts from Andreas Viebke

  • 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.41.0 RC 1 Released

    Interface Builder improvements Handling data connection errors If you encounter an issue inside your connection callback (e.g. an HTTP 4xx response from a backend), and you want to communicate this to the user, you can now resolve the callback using a Scrivito.DataConnectionError instance to...

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

  • Scrivito Enterprise CMS - Product Illustration

    Scrivito JS SDK 1.38.0 Released

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

  • Creating and Linking a Details Page

    Latest updates to edit.scrivito.com

    > After introducing details pages for data items in version 1.36.0 of the Scrivito SDK, the editing interface now offers you to create such a page for a given data class directly from within a data item. If, for example, you have a card widget in your data list widget, and this card widget has a...

  • Scrivito Enterprise CMS - Product Illustration

    Scrivito JS SDK 1.37.0 Released

    Improvements Updating data items using custom logic By defining the update callback of Scrivito.provideDataItem , you can now smoothly update data items using your own logic. This gives you greater control and flexibility in managing your data within your Scrivito app. Prerendering fails early...

  • Scrivito Enterprise CMS - Product Illustration

    Scrivito JS SDK 1.36.1 Bugfix Release

    This release fixes a bug found in version 1.36.0 of the Scrivito JS SDK: Under certain conditions, the renderChild prop of Scrivito.ChildListTag received an argument that was not a child object. This could lead to unexpected app crashes. We apologize for any inconvenience this may have caused!

  • Managing Users and Teams in the JustRelate Console

    Latest updates to edit.scrivito.com

    Scrivito’s user management has moved to the Console After introducing the JustRelate Console in April this year and announcing that authorized Scrivito users would be able to manage their account’s users and teams there, we finally did it: Clicking “Manage users” in the main menu now opens a new...