Releases: rjsf-team/react-jsonschema-form
Releases · rjsf-team/react-jsonschema-form
5.0.0-beta.17
@rjsf/antd
- Enable searching in the
SelectWidget
by the label that the user sees rather than by the value - Added support for new
style
prop onFieldTemplate
andWrapIfAdditionalTemplate
rendering them on the outermost wrapper, partially fixing #1200 - Updated all the user "input" controls to have an
aria-describedby
value built using theariaDescribedByIds()
function, partially fixing #959- Also updated the generation of ids for the title, description, error, examples, options and help blocks using the associated new id generation utilty functions
@rjsf/bootstrap-4
- Added support for new
style
prop onFieldTemplate
andWrapIfAdditionalTemplate
rendering them on the outermost wrapper, partially fixing #1200 - Updated
CheckboxesWidget
to treat the value as an array when selecting/deselecting values and when determining the checked state - fixing #2141 - Updated all the user "input" controls to have an
aria-describedby
value built using theariaDescribedByIds()
function, partially fixing #959- Also updated the generation of ids for the title, description, error, examples, options and help blocks using the associated new id generation utilty functions
@rjsf/chakra-ui
- Added support for new
style
prop onFieldTemplate
andWrapIfAdditionalTemplate
rendering them on the outermost wrapper, partially fixing #1200 - Updated
CheckboxesWidget
to treat the value as an array when selecting/deselecting values and when determining the checked state - fixing #2141 - Updated all the user "input" controls to have an
aria-describedby
value built using theariaDescribedByIds()
function, partially fixing #959- Also updated the generation of ids for the title, description, error, examples, options and help blocks using the associated new id generation utilty functions
@rjsf/core
- Updated
SchemaField
to handle the newstyle
prop in theuiSchema
similarly toclassNames
, passing it to theFieldTemplate
and removing it from being passed down to children.- Also, added support for new
style
prop onFieldTemplate
andWrapIfAdditionalTemplate
rendering them on the outermost wrapper - This partially fixes #1200
- Also, added support for new
- Updated
CheckboxesWidget
to treat the value as an array when selecting/deselecting values and when determining the checked state - fixing #2141 - Updated all the user "input" controls to have an
aria-describedby
value built using theariaDescribedByIds()
function, partially fixing #959- Also updated the generation of ids for the title, description, error, examples, options and help blocks using the associated new id generation utilty functions
@rjsf/fluent-ui
- Added support for new
style
prop onFieldTemplate
rendering them on the outermost wrapper, partially fixing #1200 - Updated
CheckboxesWidget
to treat the value as an array when selecting/deselecting values and when determining the checked state - fixing #2141 - Updated all the user "input" controls to have an
aria-describedby
value built using theariaDescribedByIds()
function, partially fixing #959- Also updated the generation of ids for the title, description, error, examples, options and help blocks using the associated new id generation utilty functions
@rjsf/material-ui
- Updated
SelectWidget
to support additionalTextFieldProps
in a manner similar to howBaseInputTemplate
does - Added support for new
style
prop onFieldTemplate
andWrapIfAdditionalTemplate
rendering them on the outermost wrapper, partially fixing #1200 - Updated
CheckboxesWidget
to treat the value as an array when selecting/deselecting values and when determining the checked state - fixing #2141 - Updated all the user "input" controls to have an
aria-describedby
value built using theariaDescribedByIds()
function, partially fixing #959- Also updated the generation of ids for the title, description, error, examples, options and help blocks using the associated new id generation utilty functions
@rjsf/mui
- Updated
SelectWidget
to support additionalTextFieldProps
in a manner similar to howBaseInputTemplate
does - Added support for new
style
prop onFieldTemplate
andWrapIfAdditionalTemplate
rendering them on the outermost wrapper, partially fixing #1200 - Updated
CheckboxesWidget
to treat the value as an array when selecting/deselecting values and when determining the checked state - fixing #2141 - Updated all the user "input" controls to have an
aria-describedby
value built using theariaDescribedByIds()
function, partially fixing #959- Also updated the generation of ids for the title, description, error, examples, options and help blocks using the associated new id generation utilty functions
@rjsf/semantic-ui
- Added support for new
style
prop onFieldTemplate
andWrapIfAdditionalTemplate
rendering them on the outermost wrapper, partially fixing #1200 - Updated
CheckboxesWidget
to treat the value as an array when selecting/deselecting values and when determining the checked state - fixing #2141 - Updated all the user "input" controls to have an
aria-describedby
value built using theariaDescribedByIds()
function, partially fixing #959- Also updated the generation of ids for the title, description, error, examples, options and help blocks using the associated new id generation utilty functions
@rjsf/utils
- Updated the
FieldTemplateProps
,WrapIfAdditionalTemplateProps
andUIOptionsBaseType
types to addstyle?: StyleHTMLAttributes<any>
, partially fixing #1200 - Added
enumOptionsDeselectValue()
andenumOptionsSelectValue()
as a loose refactor of the duplicated functions in the variousCheckboxesWidget
implementations - Updated the
FieldTemplateProps
,WrapIfAdditionalTemplateProps
andUIOptionsBaseType
types to addstyle?: StyleHTMLAttributes<any>
, partially fixing #1200 - Added new
ariaDescribedByIds()
,descriptionId()
,errorId()
,examplesId()
,helpId()
optionId()
andtitleId()
id generator functions
@rjsf/validator-ajv8
- Remove alias for ajv -> ajv8 in package.json. This fixes #3215.
- Updated
AJV8Validator#transformRJSFValidationErrors
to return more human-readable error messages. The ajv8ErrorObject
message is enhanced by replacing the error message field with either theuiSchema
'sui:title
field if one exists or theparentSchema
title if one exists. Fixes #3246
Dev / docs / playground
- In the playground, change Vite
preserveSymlinks
totrue
, which provides an alternative fix for #3228 since the prior fix caused #3215. - Updated the
custom-templates.md
anduiSchema.md
to document the newstyle
prop - Updated the
validation.md
documentation to describe the newuiSchema
parameter passed to thecustomValidate()
andtransformError()
functions - Updated the
utility-functions
documentation to add the newenumOptionsDeselectValue()
andenumOptionsSelectValue()
functions and to describe the new id generator functions - Updated the
5.x migration guide
documentation to describe potential breakingid
changes
5.0.0-beta.16
@rjsf/antd
- Updated the usage of the
ButtonTemplates
to pass the new requiredregistry
prop, filtering it out in the actual implementations before spreading props, fixing - #3314 - Updated the test for the
CheckboxWidget
validating that theschema.title
is passed as the label, fixing #3302 - Updated the theme to accept generic types, exporting
generateXXX
functions forForm
,Theme
,Templates
andWidgets
to support using the theme with user-specified type generics, partially fixing #3072 - Updated the use of the deprecated
withConfigConsumer
with theConfigConsumer
component instead, fixing #3336
@rjsf/bootstrap-4
- Updated the usage of the
ButtonTemplates
to pass the new requiredregistry
prop, filtering it out in the actual implementations before spreading props, fixing - #3314 - Updated
CheckboxWidget
to get therequired
state of the checkbox from theschemaRequiresTrueValue()
utility function rather than therequired
prop, fixing #3317 - Updated the test for the
CheckboxWidget
validating that theschema.title
is passed as the label, fixing #3302 - Updated the theme to accept generic types, exporting
generateXXX
functions forForm
,Theme
,Templates
andWidgets
to support using the theme with user-specified type generics, partially fixing #3072
@rjsf/chakra-ui
- Updated the usage of the
ButtonTemplates
to pass the new requiredregistry
prop, filtering it out in the actual implementations before spreading props, fixing - #3314 - Updated
CheckboxWidget
to get therequired
state of the checkbox from theschemaRequiresTrueValue()
utility function rather than therequired
prop, fixing #3317 - Updated the test for the
CheckboxWidget
validating that theschema.title
is passed as the label, fixing #3302 - Updated the theme to accept generic types, exporting
generateXXX
functions forForm
,Theme
,Templates
andWidgets
to support using the theme with user-specified type generics, partially fixing #3072
@rjsf/core
- Updated the usage of the
ButtonTemplates
to pass the new requiredregistry
prop, filtering it out in the actual implementations before spreading props, fixing - #3314- Also, passed
registry
into theSubmitButton
inside of theForm
as part of this fix
- Also, passed
- Updated
ArrayField
to pass the newtotalItems
andcanAdd
props to theArrayFieldItemTemplate
instances, fixing #3315- Also refactored the near duplicate logic for
onAddClick
andonAddIndexClick
into a new_handleAddClick()
function, fixing #3316
- Also refactored the near duplicate logic for
- Fix passing of generic types to a few helper methods, partially fixing #3072
- Updated the types for
ValidatorType
,CustomValidator
andErrorTransformer
to add the new generics, as well as passinguiSchema
to thevalidateFormData()
call, partially fixing #3170
@rjsf/fluent-ui
- Updated the usage of the
ButtonTemplates
to pass the new requiredregistry
prop, filtering it out in the actual implementations before spreading props, fixing - #3314 - Updated the test for the
CheckboxWidget
validating that theschema.title
is passed as the label, fixing #3302 - Updated the theme to accept generic types, exporting
generateXXX
functions forForm
,Theme
,Templates
andWidgets
to support using the theme with user-specified type generics, partially fixing #3072
@rjsf/material-ui
- Updated the usage of the
ButtonTemplates
to pass the new requiredregistry
prop, filtering it out in the actual implementations before spreading props, fixing - #3314 - Updated the test for the
CheckboxWidget
validating that theschema.title
is passed as the label, fixing #3302 - Updated the theme to accept generic types, exporting
generateXXX
functions forForm
,Theme
,Templates
andWidgets
to support using the theme with user-specified type generics, partially fixing #3072
@rjsf/mui
- Updated the usage of the
ButtonTemplates
to pass the new requiredregistry
prop, filtering it out in the actual implementations before spreading props, fixing - #3314 - Updated the test for the
CheckboxWidget
validating that theschema.title
is passed as the label, fixing #3302 - Updated the theme to accept generic types, exporting
generateXXX
functions forForm
,Theme
,Templates
andWidgets
to support using the theme with user-specified type generics, partially fixing #3072
@rjsf/semantic-ui
- Updated the usage of the
ButtonTemplates
to pass the new requiredregistry
prop, filtering it out in the actual implementations before spreading props, fixing - #3314 - Updated
CheckboxWidget
to get therequired
state of the checkbox from theschemaRequiresTrueValue()
utility function rather than therequired
prop, fixing #3317- Also fixed the
CheckboxWidget
missing label issue #3302
- Also fixed the
- Updated the test for the
CheckboxWidget
validating that theschema.title
is passed as the label, fixing #3302 - Updated the theme to accept generic types, exporting
generateXXX
functions forForm
,Theme
,Templates
andWidgets
to support using the theme with user-specified type generics, partially fixing #3072
@rjsf/utils
- Updated the
SubmitButtonProps
andIconButtonProps
to add requiredregistry
prop, fixing - #3314 - Updated the
ArrayFieldTemplateItemType
to add the newtotalItems
andcanAdd
props, fixing #3315 - Updated the
CustomValidator
andErrorTransformer
types to take the full set ofT
,S
,F
generics in order to accept a new optionaluiSchema
property, partially fixing #3170 - Updated the
ValidatorType
to add theF
generic to allow thevalidateFormData()
function to take a new optionaluiSchema
parameter, partially fixing #3170- Updated many of the schema-based utility functions to take the additional generics as well to fulfill the
ValidatorType
interface change
- Updated many of the schema-based utility functions to take the additional generics as well to fulfill the
@rjsf/validator-ajv6
- Updated the
customizeValidator
andAJV6Validator
implementations to add theS
andF
generics, so thatvalidateFormData()
can accept a new optionaluiSchema
parameter that is passed totransformErrors()
andcustomValidate()
, partially fixing #3170
@rjsf/validator-ajv8
- Updated the
customizeValidator
andAJV8Validator
implementations to add theF
generic, so thatvalidateFormData()
can accept a new optionaluiSchema
parameter that is passed totransformErrors()
andcustomValidate()
, partially fixing #3170
Dev / docs / playground
- Fixed the documentation for
ArrayFieldItemTemplate
,SubmitButtonProps
andIconButtonProps
as part of the fix for #3314 and #3315 - Updated the documentation in
form-props.md
forchildren
, fixing #3322 - Added new
typescript.md
documentation toAdvanced Customization
describing how to use custom generics as part of the fix for #3072 - Updated the documentation in
utilty-functions.md
to add the newF
generic to all the places which needed them
5.0.0-beta.15
@rjsf/core
- Pass the
schema
along to theArrayFieldItemTemplate
as part of the fix for #3253 - Tweak Babel configuration to emit ES5-compatible output files, fixing #3240
@rjsf/material-ui
- Reverse the condition used in the
onChange
handler in theRangeWidget
, fixing #2161
@rjsf/mui
- Reverse the condition used in the
onChange
handler in theRangeWidget
, fixing #2161
@rjsf/utils
- Update the
ArrayFieldItemTemplate
to addschema
as part of the fix for #3253 - Fix improper merging of nested
allOf
s (#3025, #3227), fixing #2923 - Added a new
ErrorSchemaBuilder
class to enable building a properErrorSchema
without crazy castings, fixing #3239
@rjsf/validator-ajv6
- Updated the validator to use the
ErrorSchemaBuilder
in thetoErrorSchema()
function to simplify the implementation
@rjsf/validator-ajv8
- Updated the validator to use the
ErrorSchemaBuilder
in thetoErrorSchema()
function to simplify the implementation - Updated the validator to properly map missing required field errors in the
ErrorSchema
, fixing #3260
Dev / docs / playground
5.0.0-beta.14
@rjsf/antd
- No longer render extra 0 for array without errors, fixing #3233
@rjsf/core
- Added
ref
definition toThemeProps
fixing #2135 - Updated the
onChange
handler inForm
to use the newpreventDuplicates
mode ofmergeObjects()
when mergingextraErrors
when live validation is off, fixing #3169
@rjsf/material-ui
- Fix RangeWidget missing htmlFor and schema.title #3281
@rjsf/mui
- Fix RangeWidget missing htmlFor and schema.title #3281
@rjsf/utils
- Updated
computedDefaults
(used bygetDefaultFormState
) to skip saving the computed default if it's an empty object unlessincludeUndefinedValues
is truthy, fixing #2150 and #2708 - Expanded the
getDefaultFormState
util'sincludeUndefinedValues
prop to accept a boolean or"excludeObjectChildren"
if it does not want to include undefined values in nested objects - Updated
mergeObjects
to add newpreventDuplicates
mode when concatenating arrays so that only unique values from the source object array are copied to the destination object array
Dev / docs / playground
5.0.0-beta.13
@rjsf/playground
- Fix Vite development server #3228
@rjsf/validator-ajv8
- Fix additionalProperties validation #3213
- Report all schema errors thrown by Ajv. Previously, we would only report errors thrown for a missing meta-schema. This behavior is unchanged for @rjsf/validator-ajv6.
- Disable Ajv strict mode by default.
- Add RJSF-specific additional properties keywords to Ajv to prevent errors from being reported in strict mode.
5.0.0-beta.12
@rjsf/antd
- Updated the tests to use the
@rjsf/validator-ajv8
fixing #3110
@rjsf/bootstrap
- Updated the tests to use the
@rjsf/validator-ajv8
fixing #3110
@rjsf/chakra-ui
- Automatically close single-choice Select widget on selection
- Updated the tests to use the
@rjsf/validator-ajv8
fixing #3110
@rjsf/core
- BREAKING CHANGE: ShowErrorList prop changed to support
false
,top
orbottom
;true
is no longer a valid value as the default changed fromtrue
totop
#634 - Added the new generic,
S extends StrictRJSFSchema = RJSFSchema
, forschema
/rootSchema
to every component that needed it. - Fix omitExtraData with field names with dots #2643
- Updated the tests to use the
@rjsf/validator-ajv8
fixing #3110 - Changed the
F = any
generic to beF extends FormContextType = any
to better support howformContext
is defined and used, partially fixing #3072
@rjsf/fluent-ui
- Updated the tests to use the
@rjsf/validator-ajv8
fixing #3110
@rjsf/material-ui
- Updated the tests to use the
@rjsf/validator-ajv8
fixing #3110
@rjsf/mui
- Updated the tests to use the
@rjsf/validator-ajv8
fixing #3110
@rjsf/semantic-ui
- Updated the tests to use the
@rjsf/validator-ajv8
fixing #3110
@rjsf/utils
- Beta-only potentially BREAKING CHANGE: Changed all types that directly or indirectly defined
schema
/rootSchema
to add the genericS extends StrictRJSFSchema = RJSFSchema
and useS
as the type for them.StrictRJSFSchema
was added as the alias toJSON7Schema
andRJSFSchema
was modified to beStrictRJSFSchema & GenericObjectType
- This new generic was added BEFORE the newly added
F = any
generic because it is assumed that more people will want to change the schema than the formContext types - This provides future support for the newer draft versions of the schema
- Updated the
ValidatorType
interface to add a newrawValidation()
method for use by the playground - Added the
FormContextType
alias toGenericObjectType
and changing theF = any
generic to beF extends FormContextType = any
to better support howformContext
is defined and used, partially fixing #3072
@rjsf/validator-ajv6
- Fixed a few type casts given the new expanded definition of the
RJSFSchema
type change - Deprecated this library in favor of the
@rjsf/validator-ajv8
- Refactored out the
rawValidation()
function for use by the playground
@rjsf/validator-ajv8
- Updated the typing to add the new
S extends StrictRJSFSchema = RJSFSchema
generic and fixed up type casts - Added the
AjvClass
prop to theCustomValidatorOptionsType
to support using theAjv2019
orAjv2020
class implementation instead of the defaultAjv
class; fixing #3189 - Refactored out the
rawValidation()
function for use by the playground
Dev / docs / playground
- Updated the
5.x upgrade guide
andutility-functions.md
to document the newStrictRJSFSchema
, theS
generic and changing theF
generic extend - Updated the
validation
guide to document the newAjvClass
prop onCustomValidatorOptionsType
and mentioning the deprecation of@rjsf/validator-ajv6
- Updated the playground to add support for using the AJV 8 validator with the
draft-2019-09
anddraft-2020-12
schemas and to make theAJV8
validator the default validator, markingAJV6
as deprecated - Updated all the documentation to switch to Typescript notation where missing along with switching to using the
@rjsf/validator-ajv8
validator as the default - Added a way of doing a raw Ajv validation in the playground to determine whether an issue is with RJSF or Ajv
5.0.0-beta.11
@rjsf/antd
- Updated
FieldTemplate
to no longer render additional, unnecessary white space for fields that have emptyhelp
andextra
information, fixing #3147 - Updated
ArrayFieldTemplate
to always renderArrayFieldDescriptionTemplate
since that template deals with the optionaldescription
- Pass the
schema
into theArrayFieldDescriptionTemplate
,ArrayFieldTitleTemplate
,DescriptionFieldTemplate
andTitleFieldTemplate
, fixing #3176
@rjsf/bootstrap-4
- Make label generation consistent with other themes by refactoring the code into the
FieldTemplate
instead of having the widgets implementing the label, fixing #2007 - Updated
ArrayFieldTemplate
to always renderArrayFieldDescriptionTemplate
since that template deals with the optionaldescription
- Pass the
schema
into theArrayFieldDescriptionTemplate
,ArrayFieldTitleTemplate
,DescriptionFieldTemplate
andTitleFieldTemplate
, fixing #3176
@rjsf/chakra-ui
- Added support for
chakra-react-select
v4, fixing #3152 - In
SelectWidget
useSelect
fromchakra-react-select
for both single- and multiple-choice select - In
SelectWidget
multiple-choice select display label rather than value for selected items - Updated
ArrayFieldTemplate
to always renderArrayFieldDescriptionTemplate
since that template deals with the optionaldescription
- Pass the
schema
into theArrayFieldDescriptionTemplate
,ArrayFieldTitleTemplate
,DescriptionFieldTemplate
andTitleFieldTemplate
, fixing #3176
@rjsf/core
- Extended
Form.onChange
to optionally return theid
of the field that caused the change, fixing #2768 - Fixed a regression in earlier v5 beta versions where additional properties could not be added when
additionalProperties
wastrue
(#3719). - Fixed a regression in v5 beta version where BooleanField was altering readonly props (#3188.
- Updated
ArrayFieldDescriptionTemplate
andArrayFieldTitleTemplate
to not render content whenui:label
is false, fixing #2535 - Updated
ArrayFieldTemplate
to always renderArrayFieldDescriptionTemplate
since that template deals with the optionaldescription
- Pass the
schema
into theArrayFieldDescriptionTemplate
,ArrayFieldTitleTemplate
,DescriptionFieldTemplate
andTitleFieldTemplate
, fixing #3176
@rjsf/fluent-ui
- Updated
ArrayFieldTemplate
to always renderArrayFieldDescriptionTemplate
since that template deals with the optionaldescription
- Pass the
schema
into theArrayFieldDescriptionTemplate
,ArrayFieldTitleTemplate
,DescriptionFieldTemplate
andTitleFieldTemplate
, fixing #3176
@rjsf/material-ui
- Updated
ArrayFieldTemplate
to always renderArrayFieldDescriptionTemplate
since that template deals with the optionaldescription
- Pass the
schema
into theArrayFieldDescriptionTemplate
,ArrayFieldTitleTemplate
,DescriptionFieldTemplate
andTitleFieldTemplate
, fixing #3176
@rjsf/mui
- Updated
ArrayFieldTemplate
to always renderArrayFieldDescriptionTemplate
since that template deals with the optionaldescription
- Pass the
schema
into theArrayFieldDescriptionTemplate
,ArrayFieldTitleTemplate
,DescriptionFieldTemplate
andTitleFieldTemplate
, fixing #3176
@rjsf/semantic-ui
- Updated
ArrayFieldTemplate
to always renderArrayFieldDescriptionTemplate
since that template deals with the optionaldescription
- Pass the
schema
into theArrayFieldDescriptionTemplate
,ArrayFieldTitleTemplate
,DescriptionFieldTemplate
andTitleFieldTemplate
, fixing #3176
@rjsf/utils
- Updated the
onChange
prop onFieldProps
andFieldTemplateProps
to add an optionalid
parameter to the callback. - BREAKING CHANGE: Updated the
DescriptionFieldProps
andTitleFieldProps
to add a new requiredschema
prop. Also updated theArrayFieldDescriptionTemplate
andArrayFieldTitleTemplate
to makedescription
andtitle
optional while pulling all the other props butid
from the associated type.
Dev / docs / playground
- Added an error boundary to prevent the entire app from crashing when an error is thrown by Form. See #3164 for closed issues.
- Updated the playground to log the
id
of the field being changed on theonChange
handler - Updated
form-props.md
to describe the newid
parameter being returned by theForm.onChange
handler - Updated
custom-templates.md
to add the newschema
prop to theArrayFieldDescriptionTemplate
,ArrayFieldTitleTemplate
,DescriptionFieldTemplate
andTitleFieldTemplate
documentation - Updated the
contributing.md
to describe setting up thehusky
precommit hooks for the first timegit clone
of the repo; Also added guidance for developing on underpowered computers; Finally discussed code-coverage requirements for some packages.
5.0.0-beta.10
@rjsf/antd
- Convert
WrapIfAdditional
toWrapIfAdditionalTemplate
- Added
name
to theinput
components that were missing it to supportremix
- Fixed
CheckboxesWidget
andRadioWidget
to have uniqueid
s for each radio element by appending theoption.value
, protecting against non-arrays - Converted
antd
to Typescript, indirectly fixing (#3123)
@rjsf/bootstrap
- Convert
WrapIfAdditional
toWrapIfAdditionalTemplate
- Added
name
to theinput
components that were missing it to supportremix
- Simplified the
CheckboxWidgets
code to eliminate a ternary in favor of a simpleinline={inline}
property since all the rest of the props were the same - Fixed
CheckboxesWidget
andRadioWidget
to have uniqueid
s for each radio element by appending theoption.value
, removing unnecessary casts toany
and protecting against non-arrays - Fixed an issue where
CheckboxesWidget
incorrectly rendered inner<form>
elements around each checkbox, fixing (#2355)
@rjsf/chakra-ui
- Convert
WrapIfAdditional
toWrapIfAdditionalTemplate
- Added
name
to theinput
components that were missing it to supportremix
- Fixed
CheckboxesWidget
andRadioWidget
to have uniqueid
s for each radio element by appending theoption.value
, removing unnecessary casts toany
and protecting against non-arrays
@rjsf/core
- Convert
WrapIfAdditional
toWrapIfAdditionalTemplate
- Added
name
to theinput
components that were missing it to supportremix
- Fixed
CheckboxesWidget
andRadioWidget
to have uniqueid
s for each radio element by appending theoption.value
@rjsf/fluent-ui
- Add stubbed
WrapIfAdditionalTemplate
.additionalProperties
is currently not supported in@rjsf/fluent-ui
(See #2777). - Added
name
orid
(for those fluent components not supporting name) to theinput
components that were missing it to supportremix
- Fixed
DateTimeWidget
to properly useBaseInputTemplate
rather thanTextWidget
- Fixed
CheckboxesWidget
andRadioWidget
to have uniqueid
s for each radio element by appending theoption.value
, removing unnecessary casts and protecting against non-arrays, fixing (#2138) - Fixed
RadioWidget
so that it supports read-only and disabled states
@rjsf/material-ui
- Convert
WrapIfAdditional
toWrapIfAdditionalTemplate
- Added
name
to theinput
components that were missing it to supportremix
- Fixed
CheckboxesWidget
andRadioWidget
to have uniqueid
s for each radio element by appending theoption.value
, removing unnecessary casts toany
and protecting against non-arrays
@rjsf/mui
- Convert
WrapIfAdditional
toWrapIfAdditionalTemplate
- Added
name
to theinput
components that were missing it to supportremix
- Fixed
CheckboxesWidget
andRadioWidget
to have uniqueid
s for each radio element by appending theoption.value
, removing unnecessary casts toany
and protecting against non-arrays
@rjsf/semantic-ui
- Convert
WrapIfAdditional
toWrapIfAdditionalTemplate
- Fixed
ArrayFieldTemplate
andObjectFieldTemplate
'sAddButton
to show the non-labeled version. (#3142) - Added
name
to theinput
components that were missing it to supportremix
, including fixing incorrectname
s asid
s in some situations - Fixed
CheckboxesWidget
andRadioWidget
to have uniqueid
s for each radio element by appending theoption.value
, protecting against non-arrays - Converted
semantic-ui
to Typescript
@rjsf/utils
- Added
WrapIfAdditionalTemplate
andWrapIfAdditionalTemplateProps
to simplify theming and make it easier to override Field behavior for schemas withadditionalProperties
.
v5.0.0-beta.9
@rjsf/antd
- Pass
uiSchema
appropriately to all of theIconButton
s,ArrayFieldItemTemplate
andWrapIfAdditional
components, fixing (#3130)
@rjsf/bootstrap
- Updated the
FieldErrorTemplate
to remove the explicit typing of theerror
to string to support the two options - Updated
Theme
to use the renamedThemeProps
from@rjsf/core
- Pass
uiSchema
appropriately to all of theIconButton
s,ArrayFieldItemTemplate
andWrapIfAdditional
components, fixing (#3130)
@rjsf/chakra-ui
- Updated
Theme
to use the renamedThemeProps
from@rjsf/core
- Pass
uiSchema
appropriately to all of theIconButton
s,ArrayFieldItemTemplate
andWrapIfAdditional
components, fixing (#3130)
@rjsf/core
- Updated the
FieldErrorTemplate
to remove the explicit typing of theerror
to string to support the two options - Implemented programmatic validation via new
validateForm()
method onForm
, fixing (#2755, #2552, #2381, #2343, #1006, #246) - Renamed
WithThemeProps
toThemeProps
to prevent another breaking-change by returning the type back to the name it had in version 4 - Pass
uiSchema
appropriately to all of theIconButton
s,ArrayFieldItemTemplate
andWrapIfAdditional
components, fixing (#3130) - Updated
ArrayField
to fall back toSchemaField
ifArraySchemaField
is not defined, fixing (#3131)
@rjsf/fluent-ui
- Updated
Theme
to use the renamedThemeProps
from@rjsf/core
- Pass
uiSchema
appropriately to all of theIconButton
s andArrayFieldItemTemplate
components, fixing (#3130)
@rjsf/material-ui
- Updated
Theme
to use the renamedThemeProps
from@rjsf/core
- Pass
uiSchema
appropriately to all of theIconButton
s,ArrayFieldItemTemplate
andWrapIfAdditional
components, fixing (#3130)
@rjsf/mui
- Updated
Theme
to use the renamedThemeProps
from@rjsf/core
- Pass
uiSchema
appropriately to all of theIconButton
s,ArrayFieldItemTemplate
andWrapIfAdditional
components, fixing (#3130)
@rjsf/semantic-ui
- Updated the
FieldErrorTemplate
to use thechildren
variation of theList.Item
that supports ReactElement - Pass
uiSchema
appropriately to all of theIconButton
s,ArrayFieldItemTemplate
andWrapIfAdditional
components, fixing (#3130)
@rjsf/utils
- Updated the
FieldErrorProps
type to make it support an array of string and ReactElement - Updated the
IconButtonProps
type to adduiSchema
, adding the<T = any, F = any>
generics to it and the associatedButtonTemplates
inTemplatesType
AND addeduiSchema
toArrayFieldTemplateItemType
as well, fixing (#3130)
Dev / docs / playground
- Updated the
custom-templates.md
file to add the missing asterisk to the newFieldErrorTemplate
andFieldHelpTemplate
- Updated the playground to add a new button for programmatically validating a form
- Also updated the
validation.md
documentation to describe how to programmatically validate a form - Fixed the
chakra-ui
customuiSchema
documentation to make it clear they work on a per-field basis, fixing (#2865) - Added
formElement
breaking-change documentation to the5.x upgrade guide.md
- Replace Webpack with Vite
- Updated documentation for
ArraySchemaField
to better represent the updated implementation, fixing (#3131)
v5.0.0-beta.8
@rjsf/core
- When rendering additional properties with title, use the key of the property instead of the title.