You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Feature - Prep work for new feature in 4736 (#4776)
* Fix 4772 by always generating the outer grid regardless of the number of properties
Fixed#4772 by always genering the outer grid
- Updated `chakra-ui`'s `ObjectFieldTemplate` to render the outer `Grid` regardless of the number of properties
- Updated the `CHANGELOG.md` accordingly
* Feature - Prep work for new feature in 4736
Breaking change refactoring in preparation for the feature in 4736
- In `@rjsf/utils`:
- Added new `GlobalFormOptions`, refactoring the `experimental_componentUpdateStrategy` from `Registry` and `idPrefix` & `idSeparator` from `FieldProps`
- Replaced the `experimental_componentUpdateStrategy` prop in `Registry` with `readonly globalFormOptions?: GlobalFormOptions`
- Updated `FieldProps` to remove `idPrefix` and `idSeparator`
- In `@rjsf/core`:
- Updated `Form` to add the `globalFormOptions` to the registry if there are any `GlobalFormOptions` values provided
- Updated `ArrayField`, `LayoutGridField`, `ObjectField` and `SchemaField` to get `idPrefix`, `idSeparator` from the `registry.globalFormOptions`, no longer passing them on `FieldProps`
- Updated `SchemaField` to get `experimental_componentUpdateStrategy` from the `registry.globalFormOptions` as well
- Updated the `SchemaField` tests as needed
- In `@rjsf/daisy` updated the snapshots
- Updated the `custom-widget-fields.md` and `v6.x upgrade guide.md` to document the refactor of the `idPrefix` and `idSeparator` refactor
- Updated the `CHANGELOG.md` file accordingly
* - Responded to reviewer feedback
* - Improved documentation
* - Responded to more feedback
Copy file name to clipboardExpand all lines: CHANGELOG.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,9 @@ should change the heading of the (upcoming) version to include a major version b
25
25
26
26
- Updated `ObjectField` to remove the `name` from the path passed to `onChange()` callback in `handleAddClick()` and `onDropPropertyClick()`, fixing [#4763](https://github.com/rjsf-team/react-jsonschema-form/issues/4763)
27
27
- Updated `Form` to restore the passing of an empty string for `name` to avoid accidentally showing it as the title for the whole schema
28
+
- Updated `Form` to add the `globalFormOptions` to the `registry` when there are `GlobalFormOptions` provided, also stopped passing `idPrefix` and `idSeparator` to `SchemaField`
29
+
- Updated `ArrayField`, `LayoutGridField`, `ObjectField` and `SchemaField` to get `idPrefix`, `idSeparator` from the `registry.globalFormOptions`, no longer passing them on `FieldProps`
30
+
- Updated `SchemaField` to get `experimental_componentUpdateStrategy` from the `registry.globalFormOptions` as well
28
31
29
32
## @rjsf/shadcn
30
33
@@ -33,6 +36,13 @@ should change the heading of the (upcoming) version to include a major version b
33
36
## @rjsf/utils
34
37
35
38
- Update `getDefaultFormState()` to add support for `null` defaults for `["null", "object"]` and `["null", "array"]`, fixing [#1581](https://github.com/rjsf-team/react-jsonschema-form/issues/1581)
39
+
- Added a new `GlobalFormProps` interface which contains the following props and replaced the `experimental_componentUpdateStrategy` in `Registry` with `globalFormProps?: GlobalFormProps`
40
+
-`experimental_componentUpdateStrategy` (refactored from `Registry`) and `idPrefix` & `idSeparator` (refactored from `FieldProps`)
41
+
- BREAKING CHANGE: Removed the optional `idPrefix` and `idSeparator` props from the `FieldProps` interface
42
+
43
+
## Dev / docs / playground
44
+
45
+
- Updated the `custom-widget-fields.md` and `v6.x upgrade guide.md` to document the refactor of the `idPrefix` and `idSeparator` refactor
0 commit comments