Releases: rjsf-team/react-jsonschema-form
Releases · rjsf-team/react-jsonschema-form
6.3.1
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
6.2.2
Dev / docs / playground
- Updated the
release.ymlto switch to NPM Trusted Publishing so that we can actually publish the changes - Updated the
SECURITY.mdto add v6
6.2.1
Dev / docs / playground
- Updated peer dependencies to
^6.2.xdue to type changes in@rjsf/utilsthat are required in the other libraries
6.2.0
New features added
allowClearTextInputsaddedGlobalUISchemaOptionsto support displaying a clear text input UIomitExtraData()refactored to@rjsf/utils
@rjsf/antd
- Updated
BaseInputTemplateto support theallowClearTextInputsfeature for input fields - Removed deprecated
defaultPropsfromAltDateTimeWidgetandAltDateWidgetcomponents, preserving all existing behavior
@rjsf/chakra-ui
- Updated
BaseInputTemplateto support theallowClearTextInputsfeature for input fields - Removed deprecated
defaultPropsfromAltDateTimeWidgetandAltDateWidgetcomponents, preserving all existing behavior
@rjsf/core
- Updated
BaseInputTemplateto support theallowClearTextInputsfeature for input fields - Removed deprecated
defaultPropsfromAltDateTimeWidgetandAltDateWidgetcomponents, preserving all existing behavior - Fixed
ObjectFieldTemplaterendering an empty fieldset for pure oneOf/anyOf schemas (schemas withtype: "object"and oneOf/anyOf but no properties at root level) - Added
fieldPathIdtoFieldTemplateprops inSchemaFieldandLayoutMultiSchemaField, fixing #4897 - Fixed oneOf/anyOf option switches reverting in controlled forms, fixing #4918
- Fixed null option not being selectable and defaults not being restored when switching from null back to object option in oneOf/anyOf, fixing #4896 and #4380
- Refactored the
omitExtraData()function toschemaUtils, fixing #4081
@rjsf/daisyui
- Updated
BaseInputTemplateto support theallowClearTextInputsfeature for input fields - Updated
FieldTemplateto destructurefieldPathIdto prevent passing it to DOM elements, fixing #4897
@rjsf/fluent-ui
- Updated
BaseInputTemplateto support theallowClearTextInputsfeature for input fields
@rjsf/mantine
- Updated
BaseInputTemplateto support theallowClearTextInputsfeature for input fields
@rjsf/mui
- Updated
BaseInputTemplateto support theallowClearTextInputsfeature for input fields
@rjsf/primereact
- Updated
BaseInputTemplateto support theallowClearTextInputsfeature for input fields
@rjsf/react-bootstrap
- Updated
BaseInputTemplateto support theallowClearTextInputsfeature for input fields - Updated
WrapIfAdditionalTemplateto addmaxHeightfor the Remove button column, fixing #4684
@rjsf/semantic-ui
- Updated
BaseInputTemplateto support theallowClearTextInputsfeature for input fields
@rjsf/shadcn
- Updated
BaseInputTemplateto support theallowClearTextInputsfeature for input fields - Fixed issue
"ui:rows"option fortextareaelements, fixing #4903.
@rjsf/utils
- Fixed issue by adding new
allowClearTextInputsoption toGlobalUISchemaOptionstype, fixing #4671 - Fixed issue with default value not being prefilled when object with if/then is nested inside another object, fixing #4222
- Fixed issue with schema array with nested dependent fixed-length, fixing #3754
- Updated
CustomValidatortype to accepterrorSchema, so its implementation can be based on result of ajv validation (#4898) - Added
fieldPathIdtoFieldTemplatePropsto enable proper use ofonChangewith the requiredpathparameter, fixing #4897 - Fixed user formData being overwritten with defaults in schemas combining
anyOf/oneOfwith$refanddefaultat multiple levels, fixing #4918 - Fixed issue where nested
if/then/elseconditions lost values withliveOmitandomitExtraDataenabled, fixing #4450 - Refactored the
omitExtraData()function and its helpers fromForminto a newschema/omitExtraData.ts, fixing #4081
@rjsf/validator-ajv8
- Updated
processRawValidationErrorsto passerrorSchematocustomValidatefunction (#4898)
Dev / docs / playground
- Updated unit tests for
@rjsf/coreto convert them to typescript and jest - Updated the
utility-functions.mddocumentation for theomitExtraData()function
6.1.2
@rjsf/antd
- Updated
SelectWidgetto add a staticgetPopupContainerCallbackto theSelectWidgetcomponent, partially fixing #3609- Also, added the explicit
openstate to theSelectin conjunction with providing thesetOpenas theonOpenChangeprop
- Also, added the explicit
- In
BaseInputTemplateadded comments explaining whystep='1'is returned, closing #4022
@rjsf/mantine
- Align Mantine’s behavior with other themes when clearing string fields: clearing an input now removes the key from formData instead of setting it to an empty string. (#4875)
@rjsf/utils
- Replace json-schema-merge-allof with @x0k/json-schema-merge (#4774)
@rjsf/validator-ajv8
- Updated
CustomValidatorOptionsTypeto add newextenderFn?: (ajv: Ajv) => Ajvprop - Updated
createAjvInstance()to add newextenderFn?: (ajv: Ajv) => Ajvparameter, using it to extend theajvinstance, fixing #4746- Updated the
AJV8ValidatorandcompileSchemaValidatorsCode()to passextenderFnfrom theoptionsintocreateAjvInstance()
- Updated the
- Updated
transformRJSFValidationErrors()to add filtering of duplicateanyOf/oneOfbased errors from the returned errors, fixing #4167
Dev / docs / playground
- Updated
DemoFrameas follows to fix #3609- Override
antd'sSelectWidget.getPopupContainerCallbackcallback function to return undefined - Added a
AntdSelectPatchercomponent that observes the creation ofantdselect dropdowns and makes sure they open in the correct location - Update the
antdtheme wrapper to render theAntdSelectPatcher,AntdStyleProviderandConfigProviderwith it's owngetPopupContainer()function inside of aFrameContextConsumer
- Override
- Updated the base TypeScript configuration to use
"moduleResolution": "bundler" - Updated the
validation.mddocumentation to note that HTML 5 validation is not translatable via RJSF translation mechanisms and should be turned off, fixing #4092- Also added documentation for the new
extenderFnprop onCustomValidatorOptionsType
- Also added documentation for the new
6.1.1
@rjsf/core
- Updated
ObjectFieldto get errors and formData by wrappingnamein brackets to prevent names that have dots in them incorrectly getting data from a lower level, fixing #3846
@rjsf/shadcn
- Updated
package.jsonto copy css files to newresourcesdirectory
Dev / docs / playground
- Updated the
playgroundto use the css files for@rjsf/shadcnfrom the CDN connected with github, pointing to the new resources directory - Added new
antdIconsReplacer.tsand used it in@rjsf/antdduring build time to append.jsonto imports of@antd/iconsto fix es build issues on webpack and vite