Releases: rjsf-team/react-jsonschema-form
Releases · rjsf-team/react-jsonschema-form
6.0.0-beta.8
@rjsf/chakra-ui
- Added
getChakrato package exports - Restored the
ui:optionscustomization
@rjsf/core
- Updated
LayoutGridFieldto use the pre-existingUI_GLOBAL_OPTIONS_KEYinstead of its own, incorrect one.
@rjsf/util
- Fixed form data propagation with
patternProperties#4617 - Fixed issue where oneOf schema references could not be modified when defaults were set, fixing #4580.
- Updated the
GlobalUISchemaOptionstypes to extendGenericObjectTypeto support user-defined values for their extensions
Dev / docs / playground
- Updated precompiled schemas documentation in
validation.mdbased on v6 changes, addressing #4618
6.0.0-beta.7
@rjsf/core
- Fixed crash in
LayoutGridFieldwhen the 'name' field is missing in the grid schema for a component
6.0.0-beta.6
@rjsf/util
- Updated the
Fieldtype to add the optionalTEST_IDS?: TestIdShapeprop to it to support exposing theTEST_IDSstatic prop onLayoutGridField,LayoutHeaderFieldandLayoutMultiSchemaFieldfor external users
6.0.0-beta.5
Dev / docs / playground
- Updated the peer dependencies for all packages from
6.0.0-betato^6.0.0-betato avoidnpm installdependency resolution issues
6.0.0-beta.4
Dev / docs / playground
- Updated the peer dependencies for all packages from
6to6.0.0-betato avoidnpm installdependency resolution issues
6.0.0-beta.3
Dev / docs / playground
- Updated the peer dependencies for all packages from
^6.0.0-beta.xto6to avoidnpm installdependency resolution issues
6.0.0-beta.2
@rjsf/antd
- Updated
DescriptionFieldto render thedescriptionusing theRichDescriptionfield
@rjsf/chakra-ui
- Updated
DescriptionFieldto render thedescriptionusing theRichDescriptionfield
@rjsf/core
- Added new
RichDescriptioncomponent, refactored fromSchemaFieldto support Rich Text descriptions in Markdown format - Updated
DescriptionFieldto render thedescriptionusing theRichDescriptionfield
@rjsf/daisyui
- Updated
DescriptionFieldto render thedescriptionusing theRichDescriptionfield - Updated
FieldTemplateto move the checkbox implementation into theCheckboxWidgetadding thedescriptionfor checkboxes - Updated
package.jsonto make the package publishable - Updated
DaisyUIFrameProviderto extract the bulk of the code intoDaisyUIFrameComponentto add auseEffect()with a cleanup to remove the tailwind styles
@rjsf/fluentui-rc
- Updated
DescriptionFieldto render thedescriptionusing theRichDescriptionfield
@rjsf/mui
- Updated
DescriptionFieldto render thedescriptionusing theRichDescriptionfield
@rjsf/react-bootstrap
- Updated
DescriptionFieldto render thedescriptionusing theRichDescriptionfield - Updated
CheckboxFieldto remove thecheckboxclass that breaks the UI
@rjsf/semantic-ui
- Updated
DescriptionFieldto render thedescriptionusing theRichDescriptionfield
@rjsf/shadcn
- Updated
DescriptionFieldto render thedescriptionusing theRichDescriptionfield
@rjsf/utils
- Updated the
descriptionfield in field props to be astring | ReactElementand addedenableMarkdownInDescriptionto theGlobalUISchemaOptionsinterface - 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-teststo disablegetTestId()for snapshots and updated theformTests.tsxto add tests for rich text descriptions for generic fields and theCheckboxWidget - Updated the
uiSchema.mdto document newenableMarkdownInDescriptionprop - Updated the
playgroundto movedaisyuitheme choice afterchakra-uiand to stop freezing the samples to avoid anAJVvalidation issue- Also removed
validatorfrom theexamples.tsto fix #4605
- Also removed
- Added a playground example for bundled JSON Schemas
6.0.0-beta.1
@rjsf/antd
- BREAKING CHANGE: Refactored
ArrayFieldItemTemplateto use the newArrayFieldItemButtonsTemplate - Updated the
ArrayFieldTemplate,ObjectFieldTemplate, andWrapIfAdditionalTemplateto a unique id using thebuttonId()function and adding consistent marker classes - Implemented the
GridTemplatecomponent, adding it to thetemplatesfor the theme - BREAKING CHANGE: Removed support for version 4 of
antd - Updated
ArrayFieldItemTemplateto replaceButton.GroupwithSpace.CompactsinceButton.Groupis deprecated inantdversion 5 - Upgraded to
@ant-design/icon@5 - BREAKING CHANGE: Removed the addition of
Bootstrap 3classes from theSchemaFieldand addedrjsf-prefix to marker classes, thereby changing themeFieldTemplateclassName prop output and associated snapshots
@rjsf/chakra-ui
- BREAKING CHANGE: upgrade from v2 to v3
- BREAKING CHANGE: remove deprecated
@chakra-ui/iconin favor oflucide-react - BREAKING CHANGE: Refactored
ArrayFieldItemTemplateto use the newArrayFieldItemButtonsTemplate - Updated the
ArrayFieldTemplate,ObjectFieldTemplate, andWrapIfAdditionalTemplateto a unique id using thebuttonId()function and adding consistent marker classes - Implemented the
GridTemplatecomponent, adding it to thetemplatesfor the theme - BREAKING CHANGE: Removed the addition of
Bootstrap 3classes from theSchemaFieldand addedrjsf-prefix to marker classes, thereby changing themeFieldTemplateclassName prop output and associated snapshots
@rjsf/core
- BREAKING CHANGE: Updated
ArrayFieldto provide thebuttonsPropsto theArrayFieldItemTemplateType - Added
ArrayFieldItemButtonsTemplatecomponent as a refactor of all the common buttons code from all theArrayFieldItemTemplateimplementations, adding a unique id using thebuttonId()function - Refactored
ArrayFieldItemTemplateto use the newArrayFieldItemButtonsTemplate - Updated the
ArrayFieldTemplate,ObjectFieldTemplate, andWrapIfAdditionalTemplateto a unique id using thebuttonId()function and adding consistent marker classes - Implemented the
GridTemplatecomponent, adding it to thetemplatesfor the theme - Implemented the new
LayoutGridField,LayoutMultiSchemaFieldandLayoutHeaderFieldfields, adding them to thefieldslist - BREAKING CHANGE: Removed support for the deprecated
schema.enumNamesanduiSchema.classNamesas well as the deprecatedacceptcharsetprop onForm - BREAKING CHANGE: Moved the addition of
Bootstrap 3classes from theSchemaFieldto 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
ArrayFieldItemTemplateto use the newArrayFieldItemButtonsTemplate - Updated the
ArrayFieldTemplate,ObjectFieldTemplate, andWrapIfAdditionalTemplateto a unique id using thebuttonId()function and adding consistent marker classes - Implemented the
GridTemplatecomponent, adding it to thetemplatesfor the theme - BREAKING CHANGE: Removed the addition of
Bootstrap 3classes from theSchemaFieldand addedrjsf-prefix to marker classes, thereby changing themeFieldTemplateclassName prop output and associated snapshots
@rjsf/material-ui
- BREAKING CHANGE: Deleted this theme in favor of
mui
@rjsf/mui
- BREAKING CHANGE: Refactored
ArrayFieldItemTemplateto use the newArrayFieldItemButtonsTemplate - Updated the
ArrayFieldTemplate,ObjectFieldTemplate, andWrapIfAdditionalTemplateto a unique id using thebuttonId()function and adding consistent marker classes - Updated the theme to use
Grid2instead of the deprecatedGrid - Implemented the
GridTemplatecomponent, adding it to thetemplatesfor the theme - BREAKING CHANGE: Removed the addition of
Bootstrap 3classes from theSchemaFieldand addedrjsf-prefix to marker classes, thereby changing themeFieldTemplateclassName prop output and associated snapshots
@rjsf/semantic-ui
- BREAKING CHANGE: Refactored
ArrayFieldItemTemplateto use the newArrayFieldItemButtonsTemplate - Updated the
ArrayFieldTemplate,ObjectFieldTemplate, andWrapIfAdditionalTemplateto a unique id using thebuttonId()function and adding consistent marker classes - Implemented the
GridTemplatecomponent, adding it to thetemplatesfor the theme - BREAKING CHANGE: Removed the addition of
Bootstrap 3classes from theSchemaFieldand addedrjsf-prefix to marker classes, thereby changing themeFieldTemplateclassName 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
ArrayFieldItemTemplateTypeto extract out all the button related props toArrayFieldItemButtonsTemplateType, addingbuttonsProps: ArrayFieldItemButtonsTemplateTypeas a new prop- Also created a deprecated alias type
ArrayFieldTemplateItemTypethat points toArrayFieldItemTemplateTypefor backwards compatibility
- Also created a deprecated alias type
- Added new
GridTemplatePropstype - BREAKING CHANGE: Added two the following new, required props to
TemplatesType:ArrayFieldItemButtonsTemplate: ComponentType<ArrayFieldItemButtonsTemplateType<T, S, F>>;GridTemplate: ComponentType<GridTemplateProps>
- BREAKING CHANGE: Updated the
SchemaUtilsTypeto 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 anobjectand 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 thepathwithin the root or recursedschemafindSelectedOptionInXxxOf<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 theschemaor 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'sgetbut additionally retrieves$refs as needed to get the path for schemas
- BREAKING CHANGE: Removed support for the deprecated
schema.enumNamesfromgetOptionsList()while switching the order of its generic types - BREAKING CHANGE: Removed the deprecated
getMatchingOption()andmergeValidationData()from the library export and theSchemaUtilsTypeinterface - BREAKING CHANGE: Removed the deprecated
toErrorList()function from theValidatorTypeinterface - BREAKING CHANGE: Removed the deprecated
RJSF_ADDITONAL_PROPERTIES_FLAGconstant - Updated the
WrapIfAdditionalTemplatePropsto includehideErrorandrawErrorsin support of movingBootstrap 3marker classes out ofSchemaField - Added support for
patternProperties#1944 - Updated
getTemplate()to allow per-field customization using string key fromRegistry, fixing #3695. - Updated
TemplatesTypeto 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-uitheme - 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