Releases: rjsf-team/react-jsonschema-form
Releases · rjsf-team/react-jsonschema-form
6.5.1
6.5.0
New Feature
- Added support for passing MUI-specific props (e.g.,
sx,rjsfSlotProps,variant) directly throughuiSchemafor all templates and widgets see the documentation
@rjsf/antd
- Updated
BaseInputTemplateto removetypeand setchangeOnWheelto false for theInputNumbercomponent, fixing #5002 - Updated
ErrorListandIconButtonto destructure icons imported from@ant-design/icons, fixing #4953 - Added
key={label}to key input inWrapIfAdditionalTemplateto reset input value after duplicate key rename (#4999) - Updated
BaseInputTemplateto destructure and guardmin/maxbefore spreading ontoInputNumber, fixing a build error caused by the widenedInputPropsType(number | string) - Added support for Antd v6, addressing #4995
@rjsf/chakra-ui
- Added
key={label}to key input inWrapIfAdditionalTemplateto reset input value after duplicate key rename (#4999) - Added opt-in
optionValueFormat: 'realValue'support toSelectWidget,RadioWidget, andCheckboxesWidget(#4693)
@rjsf/core
- Added a new
removeEmptyOptionalObjectsboolean prop to gracefully prune optional empty objects preventing form submission lockouts, fixing #4954 - Included
buttonelements infocusOnErrorquerySelector so that radio and checkbox groups receive focus on validation error, fixing #4870 - Fixed focus being lost when renaming additional property keys by preserving React key for renamed properties (#4999)
- Removed
expandUiSchemaDefinitionscall at form init, now handled at runtime byresolveUiSchema, fixing #4986 - Used
useRefto track latestformDatainhandleKeyRename, preventing stale closure data when multiple additional property keys are renamed in quick succession, fixing #5021 - Added opt-in
optionValueFormat: 'realValue'support toSelectWidget,RadioWidget, andCheckboxesWidgetfor rendering real enum values in DOM attributes instead of array indices (#4693)
@rjsf/daisyui
- Added
key={label}to key input inWrapIfAdditionalTemplateto reset input value after duplicate key rename (#4999) - Added opt-in
optionValueFormat: 'realValue'support toSelectWidget,RadioWidget, andCheckboxesWidget(#4693)
@rjsf/fluentui-rc
- Added
key={label}to key input inWrapIfAdditionalTemplateto reset input value after duplicate key rename (#4999) - Added opt-in
optionValueFormat: 'realValue'support toSelectWidget,RadioWidget, andCheckboxesWidget(#4693)
@rjsf/mantine
- Added
key={label}to key input inWrapIfAdditionalTemplateto reset input value after duplicate key rename (#4999) - Updated
BaseInputTemplateto destructure and guardmin/maxbefore spreading ontoNumberInput, fixing a build error caused by the widenedInputPropsType(number | string) - Added opt-in
optionValueFormat: 'realValue'support toSelectWidget,RadioWidget, andCheckboxesWidget(#4693)
@rjsf/mui
- Added
key={label}to key input inWrapIfAdditionalTemplateto reset input value after duplicate key rename (#4999) - Added opt-in
optionValueFormat: 'realValue'support toSelectWidget,RadioWidget, andCheckboxesWidget(#4693) - Added support for passing MUI-specific props (e.g.,
sx,rjsfSlotProps,variant) directly throughuiSchemafor all templates and widgets, fixing #4996
@rjsf/primereact
- Added
key={label}to key input inWrapIfAdditionalTemplateto reset input value after duplicate key rename (#4999) - Added opt-in
optionValueFormat: 'realValue'support toSelectWidget,RadioWidget, andCheckboxesWidget(#4693)
@rjsf/react-bootstrap
- Added
key={label}to key input inWrapIfAdditionalTemplateto reset input value after duplicate key rename (#4999) - Added opt-in
optionValueFormat: 'realValue'support toSelectWidget,RadioWidget, andCheckboxesWidget(#4693)
@rjsf/semantic-ui
- Added
key={label}to key input inWrapIfAdditionalTemplateto reset input value after duplicate key rename (#4999) - Added opt-in
optionValueFormat: 'realValue'support toSelectWidget,RadioWidget, andCheckboxesWidget(#4693)
@rjsf/shadcn
- Added
key={label}to key input inWrapIfAdditionalTemplateto reset input value after duplicate key rename (#4999) - Added opt-in
optionValueFormat: 'realValue'support toSelectWidget,RadioWidget, andCheckboxesWidget(#4693)
@rjsf/utils
- Added
removeOptionalEmptyObjectsutility function to recursively strip fully empty optional objects based on their parent'srequiredproperties, fixing #4954 - Updated
InputPropsTypeto widenminandmaxtonumber | stringto support date values (e.g."2020-01-01") - Updated
getInputProps()to propagateformatMinimumandformatMaximumschema keywords to the HTMLmin/maxattributes fordate,datetime-local,time,week, andmonthinput types, aligning browser-native date picker constraints with AJV validation - Fixed
ui:titlefromui:definitionsnot applied tooneOf/anyOfdropdowns beyond first recursion level, fixing #4986 - Added
enumOptionValueEncoder,enumOptionValueDecoder, andenumOptionSelectedValueutilities for opt-in real enum value rendering in select/radio/checkbox widgets (#4693) - Added
optionValueFormat: 'indexed' | 'realValue'toGlobalUISchemaOptionsand theOptionValueFormattype for opt-in real enum values in widget DOM attributes (#4693)
@rjsf/validator-ajv8
- Updated
CustomValidatorOptionsTypeto add the newsuppressDuplicateFilteringflag prop, updating the validators to pass it through to thetransformRJSFValidationErrors()which suppresses the appropriate duplicate errors if specified, fixing #5028
Dev / docs / playground
- Updated References playground sample to demonstrate
oneOfwithui:titleat recursive depth, related to #4986 - Updated the building of the
mantinetheme to properly support ESM, fixing #5025 - Updated the
validator-ajv8.mdandvalidation.mddocumetation for the newsuppressDuplicateFilteringconfiguration prop - Added comprehensive documentation for
@rjsf/muicustomization viauiSchema(includingrjsfSlotPropsusage).
6.4.2
@rjsf/antd
- Forward
requiredtoBaseInputTemplateso that required string and number fields render the HTMLrequiredattribute, fixing #3743
@rjsf/core
- Fixed a breaking change introduced in v6.4.0 where array properties with enum items no longer used
ui:enumNamesfrom the array property's uiSchema (#4985) - Passed
parentUiSchematoArrayFieldItemto maintainuiSchema, this prop was introduced recently but was not being passed - Fixed
extraErrorsnot displaying whencustomErrorsare also present (e.g., with array fields and controlledformData), fixing #4982
Dev / docs / playground
- Fixed scrolling of Monaco editors in the playground, fixing #4992
6.4.1
Dev / docs / playground
- Updated peer dependencies to 6.4.x
6.4.0
New feature
- Added support for map-based
ui:enumNamesandui:enumOrderfor controlling enum display labels and ordering. See documentation
@rjsf/core
- Fixed
extraErrorsnot displaying on first async set after submit, fixing #4965 - Updated multi-select ArrayFields to properly use the
itemsuiSchema for enumerated options, fixing #4955 - Fixed
validateForm()clearingextraErrorsfrom state when schema validation passes, fixing #4962
@rjsf/utils
- Fixed
resolveAllReferencesto preserve$refon resolved schemas, enablingui:definitionsbeyond the first recursion level, fixing #4966 - Fixed
omitExtraDatastrippingadditionalPropertiesinside oneOf/anyOf options, fixing #4366 - Added support for map-based
ui:enumNamesandui:enumOrderfor controlling enum display labels and ordering, fixing #4969
Dev / docs / playground
- Added documentation and playground examples for map-based
ui:enumNamesandui:enumOrder
6.3.1
Dev / docs / playground
- Changed all
@rjsf/*dev dependencies from^6.3.0to6.3.0so that the latest version ofnxkeeps automatically updating them - Updated peer dependencies to
^6.3.xdue to type changes in@rjsf/utilsthat are required in the other libraries
6.3.0
New feature ui:definitions in UiSchema
- See documentation
@rjsf/antd
- Fixed duplicate React keys in datalist when schema examples and default have different types, fixing #4927
@rjsf/chakra-ui
- Fixed duplicate React keys in datalist when schema examples and default have different types, fixing #4927
- Updated
NativeSelectWidgetso that is properly renders a placeholder, fixing #4942
@rjsf/core
- Fixed duplicate React keys in datalist when schema examples and default have different types, fixing #4927
- Integrated
ui:definitionssupport for recursive and reusable uiSchema (#4947)
@rjsf/daisyui
- Fixed duplicate React keys in datalist when schema examples and default have different types, fixing #4927
@rjsf/fluentui-rc
- Fixed duplicate React keys in datalist when schema examples and default have different types, fixing #4927
@rjsf/mantine
- Fixed duplicate React keys in datalist when schema examples and default have different types, fixing #4927
@rjsf/mui
- Fixed duplicate React keys in datalist when schema examples and default have different types, fixing #4927
@rjsf/react-bootstrap
- Fixed duplicate React keys in datalist when schema examples and default have different types, fixing #4927
@rjsf/semantic-ui
- Fixed duplicate React keys in datalist when schema examples and default have different types, fixing #4927
@rjsf/shadcn
- Fixed duplicate React keys in datalist when schema examples and default have different types, fixing #4927
@rjsf/utils
- Added
expandUiSchemaDefinitions()andresolveUiSchema()functions, andUiSchemaDefinitionstype to support defining reusable uiSchema for schema$refreferences (#4947)
Dev / docs / playground
- Updated References sample in playground to demonstrate
ui:definitionsfeature (#4947) - Added documentation for
ui:definitionsinuiSchema.mdanddefinitions.md(#4947) - Updated the libraries via the
npm run bump-all-librariescommand, fixing new lint errors and updating the snapshots due to fixes in the theme libraries
6.2.5
@rjsf/mui
- Updated
BaseInputTemplateto properly handleslotPropsandInputProps(deprecated by MUI) with existingendAdornments when theallowClearTextInputsflag is true, fixing #4938
Dev / docs / playground
- Updated
uiSchema.mdto add documentation forallowClearTextInputs - Updated the
formTests.tsxinsnapshot-teststo render string fields with theallowClearTextInputsflag enabled, with data and readonly to test the new feature
6.2.4
Dev / docs / playground
- Updated the
package.jsonforchakra-uito add therepositoryinformation so that publishing works for it - Updated the
release.ymlto remove the push tag stuff as it isn't needed
6.2.3
@rjsf/mantine
- Updated
cleanupOptions()to addenableMarkdownInHelpandglobalOptionsto avoid DOM errors
@rjsf/primereact
- Updated
ArrayFieldTemplateto destructure additional fields to avoid DOM errors
Dev / docs / playground
- Updated the
release.ymlto move the permissions within the job, switch to node 24 and add push checking