Hoppa till innehåll
Markdown

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

  • Restore support for a hidden input holding the name of the item in CustomList.
  • Restore the decorative prop in ImageSettings.
  • Fix field spacing in ImageSettings.
  • Require Svelte 5; Svelte 3 and 4 are no longer supported.
  • Replace @soleil-se/config-validate with built-in client-side validation, including custom validators and scoped modal validation.
  • Replace Svelte component events and legacy slots with callback props and snippets.
  • Generate component IDs internally and update component props, value bindings, selector types, and CustomList child context.
  • Remove the InputField and SelectField exports in favor of Input/Textarea and Select. The old image-panel ImageSelector API is replaced by ImageSettings; ImageSelector now wraps the Sitevision node selector.
  • Remove the addPrefix, pluckPrefix, and triggerInput utilities and the show action. Utilities are imported from the utils subpath instead of the package root.
  • Rework Modal to use native <dialog> and replace its dispatched lifecycle events with callback props.
  • Replace the CustomList template/data draft bindings with a draft object, ready(), and copied CustomListItemTemplate markup.
  • Replace the drag-and-drop and dialog dependencies with @dnd-kit and native dialog behavior.
  • Add built-in validation utilities, including defaultValidator, createValidator, validateWithin, and validateWith.
  • Add Textarea, ImageSettings, and selector-specific wrappers such as PageSelector, PageList, and MetadataSelector.
  • Add flatten, unflatten, and getByPath utilities.
  • Allow label, description and legend props to be typed as a snippet (Svelte 5) or slot fallback (Svelte 4), in addition to string, for InputField, Checkbox, CheckboxGroup, CustomList, CustomSelector, DropdownSelector, ListSelector, NodeSelector, NumberSpinner, RadioGroup, RepositoryNodeSelector, SelectField, TagSelector and TextList.
  • Update type definitions for NodeSelector and ListSelector to reflect the selectable prop based on the type prop.
  • Extend JSDoc with descriptions for all props in components.
  • Restore hidden input for focus management.
  • Do not read required asterisk with screens readers.
  • Add expandable prop for Panel component to make it collapsible.
  • Handle nested Panel components properly with correct heading levels and context.
  • Add headingLevel prop for Panel component to allow custom heading levels.
  • Add missing styling for help text in Checkbox.
  • Add description prop for Checkbox.
  • Add missing types for prop icon in CustomList.
  • Add error messages for when fetching data for ImageSelector and RepositoryNodeSelector fails due to lack of permissions or REST-API being disabled or restricted.
  • New fetchRestApi utility function for fetching data from the REST-API with proper error handling.
  • Add missing default slot for TextList component.
  • Set label as undefined correclty in RadioGroup.
  • Improve type definitions for createAppProps and createConfigApp to correctly infer the props.
  • Add a res.render({}) call for createAppProps and createAppContext to correctly render the size selector in widget configs.
  • Deprecate createAppProps(props), use createAppProps(props, res) instead.
  • Value in Checkbox component now has a default value of undefined.
  • Update type definitions.
  • Add function to add items to CustomList.
  • Swap places of description prop and slot for Svelte 5 compatibility.
  • Remove readonly prop from NodeSelector since it’s not applicable.
  • Add a description prop and slot to most components.
  • Update type definitions.
  • App decimals prop to NumberSpinner.
  • Fix documentation links.
  • Update type definitions.
  • Update references to @soleil/config-validate to @soleil-se/config-validate.
  • Fix links and README references.
  • Disallow the selection folders in ImageSelector.
  • Move data holder in CheckboxGroup for correct margins.
  • Fixa margins for help text in form groups.
  • Properly clear value in DropdownSelector.
  • Add definitions for new types in components.
  • Value in CheckboxGroup should always be an array.
  • Value was always an array in CustomSelector.
  • Templates in CustomList was not working properly in Svelte 5.
  • Handle single values in CustomSelector without throwing an error.
  • Call window.sv.setValues in createConfigApp to set values outside of the app, for example widget size.
  • Handle numerical values in CustomSelector when using multiple correctly.
  • Add missing labels for buttons in sortable lists (CustomList, TextList).
  • Add TypeScript definitions for API functions and move all type declarations to the types folder.
  • Custom template for CustomSelector options and results now works properly with multiple prop.
  • Adjust import paths for components in index.js.
  • Add type definitions for all props in components.
  • Update dependencies.
  • More lenient @sitevision/api peer dependency range.
  • Update @soleil/config-validate dependency to 1.2.0.
  • Add possibility to customize content for radio buttons in a radio group.
  • Now possible to set default value in SelectField with value prop.
  • Add callback to createConfigApp function for more flexibility when creating a config app.
  • Rewrite of CustomList edit modal handling to work with Svelte 5.
  • Remove all self closing tags in components.
  • Remove focus-visible polyfill.
  • Add Svelte 5 as a peer dependency.
  • Add label slot for most components.
  • More lenient @sitevision/api peer dependency range.
  • Try to use window.sv.getValues() first since window._getValues() is deprecated.
  • Fix element containting title in Modal.
  • Add footer slot in Modal.
  • Add Svelte 4 support.
  • Add attribute data-a11y-dialog-ignore-focus-trap to select2 based dropdown content to remedy focus management.
  • More lenient @sitevision/api peerDependency to prevent problems with their new version structure.
  • Option templating in CustomSelector.
  • Add global Select2 styling.
  • Modal now closes open Select2 dropdowns.
  • Suppress a11y-click-events-have-key-events since the key events are handled on other elements.
  • Add icon prop to CustomList for setting an icon to the list items.
  • Fixed that values wasn’t saved properly in Modal and CustomList.
  • Removable prop was not working on NodeSelector.
  • Remove hidden input for LinkSelector to fix bug with trashed / removed pages and files introduced in Sitevision 9.1.
  • Use nullish coalescing when determining option value in SelectField.
  • Empty mounting point of app since hydration is disabled.
  • Improvements for passing server data to the app.
  • Remove hydrate option since we’re never using SSR in config apps.
  • Properly target div with id app_root when rendering app.
  • Added sortable prop for ListSelector.
  • Added I18n utility.
  • Added Translations for components with translatable text.
  • Spread rest props on input element in InputField.
  • Docs with links to readme for each component.
  • DropdownSelector values was not saved properly when set multiple times.
  • Initialization when rerendering or conditionally render DropdownSelectors.
  • Added TagSelector component
  • TextList component rewrite.
  • Remove CheckboxGroup value workaround as it’s not needed.
  • Added type shorthand for ListSelector.
  • Was possible to circumvent alt-text requirement in ImageSelector
  • Default value for LinkSelector type is not set.
  • ImageSelector does not clear alt-text from image archive.
  • Added type shorthands for DropdownSelector, NodeSelector and ListSelector.
  • ImageSelector component.
  • Fixed scroll problems.
  • Mail and tel values in LinkSelector are prefixed with mailto: and tel:.
  • Mail and tel types to LinkSelector.
  • Value in NumberSpinner is now left aligned.
  • Fixed unable to clear value in LinkSelector.
  • Unable to remove last item in TextList.
  • TextList is not validated when required prop is used
  • Added docs NumberSpinner.
  • Added suffix prop to NumberSpinner.
  • Fix ListSelector inifity loop.
  • Remove debug output.
  • Array destructuring not working in TextList for IE11.
  • RadioGroup value not working in IE11.
  • Added missing polyfills for IE11 in docs and demo.
  • Selectable props in NodeSelector, ListSelector and DropdownSelector now also accepts a string.
  • Margin on CheckboxGroup and RadioGroup controls.
  • Initial release!