Skip to content

Release v4.25.0

Choose a tag to compare

@github-actions github-actions released this 02 Oct 09:31
b0d197f

The toolbar folder can now open as a headed drawer of labeled tiles, and a new @cratis/components/ConfigurationEditor entry point provides the controls for configuring a component.

Added

  • ToolbarFolder presentation='drawer': a visible heading, a close button and labeled icon tiles driven by a host-supplied items catalogue and/or ToolbarButton children. Tile payloads are delivered unchanged on activation and on drag, disabled tiles stay focusable with a reason, and the drawer flips and shifts to stay inside the viewport. The icon-only grid and list presentations are unchanged. (#358)
  • OrderedItemEditor: edits an ordered collection of items with a label, an icon and a destination. It lists locked fixed items separately, enforces per-operation and per-field capabilities, validates entries, and reorders by dragging, with the handle's arrow keys, or with labeled move buttons while keeping focus and announcing the new position. The icon field is the Components icon picker, fed by an iconCatalog and restricted by allowedIcons, with renderIconField as an override. (#358)
  • PropertyControls: text, number, on/off and choice controls described by host descriptors in titled groups, for flow, grid-placement, freeform-placement and responsive settings. (#358)
  • ConfigurationEditorProvider, ConfigurationEditor and useConfigurationEditor: register a component-specific editor under a host-defined component type, with generic controls as the fallback. (#358)
  • messages.toolbar.closeDrawer on CratisComponentsProvider for the drawer's close button, and styling parts for the drawer and both editors.

Fixed

  • The icon picker's provider name on a selected tile now meets the 4.5:1 contrast ratio.