Releases: rjsf-team/react-jsonschema-form
Releases · rjsf-team/react-jsonschema-form
6.0.0-beta.2
@rjsf/antd
- Updated
DescriptionField
to render thedescription
using theRichDescription
field
@rjsf/chakra-ui
- Updated
DescriptionField
to render thedescription
using theRichDescription
field
@rjsf/core
- Added new
RichDescription
component, refactored fromSchemaField
to support Rich Text descriptions in Markdown format - Updated
DescriptionField
to render thedescription
using theRichDescription
field
@rjsf/daisyui
- Updated
DescriptionField
to render thedescription
using theRichDescription
field - Updated
FieldTemplate
to move the checkbox implementation into theCheckboxWidget
adding thedescription
for checkboxes - Updated
package.json
to make the package publishable - Updated
DaisyUIFrameProvider
to extract the bulk of the code intoDaisyUIFrameComponent
to add auseEffect()
with a cleanup to remove the tailwind styles
@rjsf/fluentui-rc
- Updated
DescriptionField
to render thedescription
using theRichDescription
field
@rjsf/mui
- Updated
DescriptionField
to render thedescription
using theRichDescription
field
@rjsf/react-bootstrap
- Updated
DescriptionField
to render thedescription
using theRichDescription
field - Updated
CheckboxField
to remove thecheckbox
class that breaks the UI
@rjsf/semantic-ui
- Updated
DescriptionField
to render thedescription
using theRichDescription
field
@rjsf/shadcn
- Updated
DescriptionField
to render thedescription
using theRichDescription
field
@rjsf/utils
- Updated the
description
field in field props to be astring | ReactElement
and addedenableMarkdownInDescription
to theGlobalUISchemaOptions
interface - Support for bundled JSON Schemas #4505
- Fixed issue with schema references in combinators(allOf, anyOf, oneOf) could not be modified when defaults were set, fixing #4555
Dev / docs / playground
- Updated the
snapshot-tests
to disablegetTestId()
for snapshots and updated theformTests.tsx
to add tests for rich text descriptions for generic fields and theCheckboxWidget
- Updated the
uiSchema.md
to document newenableMarkdownInDescription
prop - Updated the
playground
to movedaisyui
theme choice afterchakra-ui
and to stop freezing the samples to avoid anAJV
validation issue- Also removed
validator
from theexamples.ts
to fix #4605
- Also removed
- Added a playground example for bundled JSON Schemas
6.0.0-beta.1
@rjsf/antd
- BREAKING CHANGE: Refactored
ArrayFieldItemTemplate
to use the newArrayFieldItemButtonsTemplate
- Updated the
ArrayFieldTemplate
,ObjectFieldTemplate
, andWrapIfAdditionalTemplate
to a unique id using thebuttonId()
function and adding consistent marker classes - Implemented the
GridTemplate
component, adding it to thetemplates
for the theme - BREAKING CHANGE: Removed support for version 4 of
antd
- Updated
ArrayFieldItemTemplate
to replaceButton.Group
withSpace.Compact
sinceButton.Group
is deprecated inantd
version 5 - Upgraded to
@ant-design/icon@5
- BREAKING CHANGE: Removed the addition of
Bootstrap 3
classes from theSchemaField
and addedrjsf-
prefix to marker classes, thereby changing themeFieldTemplate
className prop output and associated snapshots
@rjsf/chakra-ui
- BREAKING CHANGE: upgrade from v2 to v3
- BREAKING CHANGE: remove deprecated
@chakra-ui/icon
in favor oflucide-react
- BREAKING CHANGE: Refactored
ArrayFieldItemTemplate
to use the newArrayFieldItemButtonsTemplate
- Updated the
ArrayFieldTemplate
,ObjectFieldTemplate
, andWrapIfAdditionalTemplate
to a unique id using thebuttonId()
function and adding consistent marker classes - Implemented the
GridTemplate
component, adding it to thetemplates
for the theme - BREAKING CHANGE: Removed the addition of
Bootstrap 3
classes from theSchemaField
and addedrjsf-
prefix to marker classes, thereby changing themeFieldTemplate
className prop output and associated snapshots
@rjsf/core
- BREAKING CHANGE: Updated
ArrayField
to provide thebuttonsProps
to theArrayFieldItemTemplateType
- Added
ArrayFieldItemButtonsTemplate
component as a refactor of all the common buttons code from all theArrayFieldItemTemplate
implementations, adding a unique id using thebuttonId()
function - Refactored
ArrayFieldItemTemplate
to use the newArrayFieldItemButtonsTemplate
- Updated the
ArrayFieldTemplate
,ObjectFieldTemplate
, andWrapIfAdditionalTemplate
to a unique id using thebuttonId()
function and adding consistent marker classes - Implemented the
GridTemplate
component, adding it to thetemplates
for the theme - Implemented the new
LayoutGridField
,LayoutMultiSchemaField
andLayoutHeaderField
fields, adding them to thefields
list - BREAKING CHANGE: Removed support for the deprecated
schema.enumNames
anduiSchema.classNames
as well as the deprecatedacceptcharset
prop onForm
- BREAKING CHANGE: Moved the addition of
Bootstrap 3
classes from theSchemaField
to theWrapIfAdditionalTemplate
, thereby affecting all the other themes, fixing #2280 - BREAKING CHANGE: Added
rjsf-
prefix onto the following marker classes used in the fields and templates:field
,field-<schema.type>
,field-error
,field-hidden
,field-array
,field-array-of-<schema.type>
,field-array-fixed-items
,array-item
,config-error
,array-item-add
,array-item-copy
,array-item-move-down
,array-item-move-up
,array-item-remove
,object-property-expand
- Added support for
patternProperties
#1944
@rjsf/daisyui
- Added new theme!
@rjsf/fluent-ui
- BREAKING CHANGE: Deleted this theme in favor of
fluentui-rc
@rjsf/fluentui-rc
- BREAKING CHANGE: Refactored
ArrayFieldItemTemplate
to use the newArrayFieldItemButtonsTemplate
- Updated the
ArrayFieldTemplate
,ObjectFieldTemplate
, andWrapIfAdditionalTemplate
to a unique id using thebuttonId()
function and adding consistent marker classes - Implemented the
GridTemplate
component, adding it to thetemplates
for the theme - BREAKING CHANGE: Removed the addition of
Bootstrap 3
classes from theSchemaField
and addedrjsf-
prefix to marker classes, thereby changing themeFieldTemplate
className prop output and associated snapshots
@rjsf/material-ui
- BREAKING CHANGE: Deleted this theme in favor of
mui
@rjsf/mui
- BREAKING CHANGE: Refactored
ArrayFieldItemTemplate
to use the newArrayFieldItemButtonsTemplate
- Updated the
ArrayFieldTemplate
,ObjectFieldTemplate
, andWrapIfAdditionalTemplate
to a unique id using thebuttonId()
function and adding consistent marker classes - Updated the theme to use
Grid2
instead of the deprecatedGrid
- Implemented the
GridTemplate
component, adding it to thetemplates
for the theme - BREAKING CHANGE: Removed the addition of
Bootstrap 3
classes from theSchemaField
and addedrjsf-
prefix to marker classes, thereby changing themeFieldTemplate
className prop output and associated snapshots
@rjsf/semantic-ui
- BREAKING CHANGE: Refactored
ArrayFieldItemTemplate
to use the newArrayFieldItemButtonsTemplate
- Updated the
ArrayFieldTemplate
,ObjectFieldTemplate
, andWrapIfAdditionalTemplate
to a unique id using thebuttonId()
function and adding consistent marker classes - Implemented the
GridTemplate
component, adding it to thetemplates
for the theme - BREAKING CHANGE: Removed the addition of
Bootstrap 3
classes from theSchemaField
and addedrjsf-
prefix to marker classes, thereby changing themeFieldTemplate
className prop output and associated snapshots - BREAKING CHANGE: Removed support for the v1 version of
semantic-ui-react
@rjsf/shadcn
- Added new theme!
@rjsf/utils
- BREAKING CHANGE: Refactored the
ArrayFieldItemTemplateType
to extract out all the button related props toArrayFieldItemButtonsTemplateType
, addingbuttonsProps: ArrayFieldItemButtonsTemplateType
as a new prop- Also created a deprecated alias type
ArrayFieldTemplateItemType
that points toArrayFieldItemTemplateType
for backwards compatibility
- Also created a deprecated alias type
- Added new
GridTemplateProps
type - BREAKING CHANGE: Added two the following new, required props to
TemplatesType
:ArrayFieldItemButtonsTemplate: ComponentType<ArrayFieldItemButtonsTemplateType<T, S, F>>;
GridTemplate: ComponentType<GridTemplateProps>
- BREAKING CHANGE: Updated the
SchemaUtilsType
to add new validator-based functions to the interface - Added the following new non-validator utility functions:
buttonId<T>(id: IdSchema<T> | string, btn: 'add' | 'copy' | 'moveDown' | 'moveUp' | 'remove')
: used to generate consistent ids for RJSF buttonsgetTestIds(): TestIdShape
: Returns an object of test IDs that can only be used in test mode, helpful for writing unit tests for React componentshashObject(object: unknown): string
: Stringifies anobject
and returns the hash of the resulting stringhashString(string: string): string
: Hashes a string into hex formatlookupFromFormContext<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(regOrFc: Registry<T, S, F> | Registry<T, S, F>['formContext'], toLookup: string, fallback?: unknown)
: Given a React JSON Schema Form registry or formContext object, return the value associated withtoLookup
- Added the following new validator-based utility functions:
findFieldInSchema<T = undefined, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(validator: ValidatorType<T, S, F>, rootSchema: S, path: string | string[], schema: S, formData?: T, experimental_customMergeAllOf?: Experimental_CustomMergeAllOf<S>): FoundFieldType<S>
: Finds the field specified by thepath
within the root or recursedschema
findSelectedOptionInXxxOf<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(validator: ValidatorType<T, S, F>, rootSchema: S, schema: S, fallbackField: string,xxx: 'anyOf' | 'oneOf', formData?: T, experimental_customMergeAllOf?: Experimental_CustomMergeAllOf<S>): S | undefined
: Finds the option that matches the selector field in theschema
or undefined if nothing is selectedgetFromSchema<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(validator: ValidatorType<T, S, F>, rootSchema: S, schema: S, path: string | string[], defaultValue: T | S, experimental_customMergeAllOf?: Experimental_CustomMergeAllOf<S>): T | S
: Helper that acts like lodash'sget
but additionally retrieves$ref
s as needed to get the path for schemas
- BREAKING CHANGE: Removed support for the deprecated
schema.enumNames
fromgetOptionsList()
while switching the order of its generic types - BREAKING CHANGE: Removed the deprecated
getMatchingOption()
andmergeValidationData()
from the library export and theSchemaUtilsType
interface - BREAKING CHANGE: Removed the deprecated
toErrorList()
function from theValidatorType
interface - BREAKING CHANGE: Removed the deprecated
RJSF_ADDITONAL_PROPERTIES_FLAG
constant - Updated the
WrapIfAdditionalTemplateProps
to includehideError
andrawErrors
in support of movingBootstrap 3
marker classes out ofSchemaField
- Added support for
patternProperties
#1944 - Updated
getTemplate()
to allow per-field customization using string key fromRegistry
, fixing #3695. - Updated
TemplatesType
to allow for a string key to be used to reference a custom template in theRegistry
, fixing #3695 - Updated tests to cover the new
getTemplate()
functionality
@rjsf/validator-ajv6
- BREAKING CHANGE: This deprecated validator has been removed
@rjsf/validator-ajv8
- BREAKING CHANGE: Removed the implementation of the deprecated
toErrorList()
function from the validator implementations
Dev / docs / playground
- Updated the playground to Chakra UI v3
- Updated the playground to remove
fluent-ui
theme - Updated the `custom-te...
5.24.10
5.24.9
@rjsf/antd
- Fixed ts errors in newer antd versions #4525
@rjsf/chakra-ui
- Restricted the chakra-react-select peerDependency to <6.0.0, fixing #4539
@rjsf/core
- Do not display input field in MultiSchemaField with null type
@rjsf/mui
- Fixed issue in BaseInputTemplate where input props were passed to
slotProps.htmlInput
, which does not work in MUI v5.
@rjsf/utils
- Fixed issue with schema combinators(allOf, anyOf, oneOf) could not be modified when defaults were set, fixing #4555
Dev / docs / playground
5.24.8
@rjsf/antd
- Fixed the total disable of the
RadioWidget
, fixing #4481
@rjsf/validator-ajv8
- Fixed up the ESM build to properly handle ESM imports for
compileSchemaValidatorsCode()
by adding a newajvReplacer.ts
and using it
Dev / docs / playground
- Updated
snapshot-tests
to add validation of disableRadioWidget
via theForm
prop as well asuiSchema
5.24.7
Dev / docs / playground
- Fixed build issues with small change to
core/src/tsconfig.json
and improvements to theexports
for ESM support - Run NX serially in the pipelines to avoid odd out-of-sequence build issues
5.24.6
5.24.6
NOTE: Not actually released due to build issues
@rjsf/core
- Fixed
src/tsconfig.json
to add thetsc-alias
block to support proper fixing up of ESM import
5.24.5
@rjsf/utils
- Fixed
package.json
to removenode
from theexports
block to fix ESM support
5.24.4
@rjsf/utils
- Fixed issue with customValidate errors are not cleared when the form is valid 4365 due to regression
- Add missing
experimental_customMergeAllOf
argument toensureFormDataMatchingSchema
introduced by 4388
Dev / docs / playground
- Improved the ESM support for all public packages by adding explicit
exports
to each publicpackage.json
- Updated the ESM builds to use
tsc-alias
to add.js
onto all ESM imports