Component SDK New Features & Enhancements 2021-08-30
Author:
Fluent Commerce
Changed on:
8 July 2024
Target release date: | 2021-08-30 |
---|---|
Release status: | Released |
Description
New Features for Component SDK:
`TemplateRegistry`
The
`TemplateRegistry`
For more information, see the Registering SDK Components.
New global functions for producing drawers, modals, and toasts in the UI
New global functions are available to allow SDK developers to produce drawer (
`pushDrawer()`
`pushModal()`
`pushToast()`
For more information, see the Drawers, Modals, and Toasts section on the Utility Components page.
New hooks
- - a promise-based variant of
`getSettings`
`useSettings`
- - provides direct access to the page query response and variables
`useData`
- - retrieve a list of all possible user actions for an entity
`useUserActions`
- - generate the form for a named user action
`useUserActionForm`
- - download a file from the authenticated API
`getApiDownload`
For more information, see the Hooks page.
Component SDK Enhancements
Improved the `Children`
The
`Children`
For more information, see the Children section on the Utility Components page.
Update to `ComponentRegistry`
The
`ComponentRegistry`
For more information, see the Component Registry section on the Registering Components page.
Update to `FieldRegistry: FormFieldProps`
The
`FieldRegistry: FormFieldProps`
For more information, see the Field Registry section on the Registering Components page.
Extended functionality for useI18n
The useI18n hook has been extended to include:
- - conditional translation with multiple fallback options
`translateOr`
- details of this user’s current and available language options
`language`
For more information, see the useI18n section on the Hooks page.
Changelog
Details as listed above.
Released capability depth: | New capability, Enhancement |
---|---|
Release bundle / Capability type: | Tool, Platform |