npm @rjsf/core 6.0.0-beta.18

19 hours ago

@rjsf/chakra-ui

  • Updated ObjectFieldTemplate to always generate the "Add" button when canExpand() is true, fixing #4772

@rjsf/core

  • Updated Form to add the globalFormOptions to the registry when there are GlobalFormOptions provided, also stopped passing idPrefix and idSeparator to SchemaField
  • Updated ArrayField, LayoutGridField, ObjectField and SchemaField to get idPrefix, idSeparator from the registry.globalFormOptions, no longer passing them on FieldProps
    • Updated SchemaField to get experimental_componentUpdateStrategy from the registry.globalFormOptions as well

@rjsf/utils

  • Update getDefaultFormState() to add support for null defaults for ["null", "object"] and ["null", "array"], fixing #1581
  • Added a new GlobalFormProps interface which contains the following props and replaced the experimental_componentUpdateStrategy in Registry with globalFormProps?: GlobalFormProps
    • experimental_componentUpdateStrategy (refactored from Registry) and idPrefix & idSeparator (refactored from FieldProps)
  • BREAKING CHANGE: Removed the optional idPrefix and idSeparator props from the FieldProps interface

Dev / docs / playground

  • Updated the custom-widget-fields.md and v6.x upgrade guide.md to document the refactor of the idPrefix and idSeparator refactor

Don't miss a new core release

NewReleases is sending notifications on new releases.