Skip to content

Commit ff46e0f

Browse files
authored
Merge branch 'master' into preserve-edit-data
2 parents ade1fa2 + 56c6628 commit ff46e0f

27 files changed

Lines changed: 268 additions & 244 deletions

MIGRATION.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,20 @@ When a missing intermediate container is created, the JSON Schema decides whethe
1212

1313
If you dispatch update actions yourself, make sure to use dot-separated paths (e.g. `update('list.0.name', ...)`) instead of lodash bracket syntax (e.g. `update('list[0].name', ...)`), which is no longer interpreted.
1414

15+
### React Material renderers now require Material UI v9
16+
17+
The React Material renderers (`@jsonforms/material-renderers`) were upgraded from Material UI v7 to v9.
18+
When using JSON Forms 3.9, your application now needs to provide `@mui/material` and `@mui/icons-material` in version 9, as well as `@mui/x-date-pickers` in version 9 (previously version 8).
19+
20+
To upgrade your application, follow the official [Material UI upgrade guide](https://mui.com/material-ui/migration/upgrade-to-v9/) and the [MUI X Date Pickers migration guide](https://mui.com/x/migration/migration-pickers-v8/).
21+
22+
Use JSON Forms 3.8 if you need to stay on Material UI v7.
23+
24+
As part of this upgrade, layouts that arrange their children vertically (e.g. `VerticalLayout`, `Group`, `Categorization`) now render a MUI `Stack` instead of a `Grid` container with `direction="column"`, and their children are no longer wrapped in `Grid` items.
25+
If you apply custom styling that relies on the previous `Grid`-based DOM structure of these layouts, verify that it still works as expected.
26+
Furthermore, if you use exported method `renderLayoutElements`, it no longer wraps children in `Grid` items for direction `column`.
27+
This should not affect you except if you explicitly use this method in custom renderers.
28+
1529
## Migrating to JSON Forms 3.8
1630

1731
### `Translator` type changed from overloaded signatures to a generic conditional type

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "3.9.0-alpha.0",
2+
"version": "3.9.0-alpha.1",
33
"npmClient": "pnpm",
44
"$schema": "node_modules/lerna/schemas/lerna-schema.json"
55
}

packages/angular-material/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@jsonforms/angular-material",
3-
"version": "3.9.0-alpha.0",
3+
"version": "3.9.0-alpha.1",
44
"description": "Material Renderer Set for Angular module of JSON Forms",
55
"repository": {
66
"type": "git",
@@ -72,8 +72,8 @@
7272
"@angular/material": "^20.0.0 || ^21.0.0 || ^22.0.0",
7373
"@angular/platform-browser": "^20.0.0 || ^21.0.0 || ^22.0.0",
7474
"@angular/router": "^20.0.0 || ^21.0.0 || ^22.0.0",
75-
"@jsonforms/angular": "3.9.0-alpha.0",
76-
"@jsonforms/core": "3.9.0-alpha.0",
75+
"@jsonforms/angular": "3.9.0-alpha.1",
76+
"@jsonforms/core": "3.9.0-alpha.1",
7777
"dayjs": "^1.11.10",
7878
"rxjs": "^6.6.0 || ^7.4.0"
7979
},

packages/angular/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@jsonforms/angular",
3-
"version": "3.9.0-alpha.0",
3+
"version": "3.9.0-alpha.1",
44
"description": "Angular module of JSON Forms",
55
"repository": {
66
"type": "git",
@@ -73,7 +73,7 @@
7373
"peerDependencies": {
7474
"@angular/core": "^20.0.0 || ^21.0.0 || ^22.0.0",
7575
"@angular/forms": "^20.0.0 || ^21.0.0 || ^22.0.0",
76-
"@jsonforms/core": "3.9.0-alpha.0",
76+
"@jsonforms/core": "3.9.0-alpha.1",
7777
"rxjs": "^6.6.0 || ^7.4.0"
7878
},
7979
"devDependencies": {

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@jsonforms/core",
3-
"version": "3.9.0-alpha.0",
3+
"version": "3.9.0-alpha.1",
44
"description": "Core module of JSON Forms",
55
"repository": {
66
"type": "git",

packages/examples-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@jsonforms/examples-app",
3-
"version": "3.9.0-alpha.0",
3+
"version": "3.9.0-alpha.1",
44
"private": true,
55
"license": "MIT",
66
"type": "module",

packages/examples-react/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"name": "@jsonforms/examples-react",
3-
"version": "3.9.0-alpha.0",
3+
"version": "3.9.0-alpha.1",
44
"private": true,
55
"dependencies": {
66
"@jsonforms/core": "workspace:*",
77
"@jsonforms/examples": "workspace:*",
88
"@jsonforms/react": "workspace:*",
9-
"@mui/material": "^7.3.0",
9+
"@mui/material": "^9.2.0",
1010
"@types/react-highlight": "^0.12.5",
1111
"@types/react-tabs": "^2.3.3",
1212
"highlight.js": "^11.3.1",

packages/examples/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@jsonforms/examples",
3-
"version": "3.9.0-alpha.0",
3+
"version": "3.9.0-alpha.1",
44
"description": "JSON Forms Example Data",
55
"repository": {
66
"type": "git",
@@ -51,7 +51,7 @@
5151
"lodash": "^4.17.21"
5252
},
5353
"peerDependencies": {
54-
"@jsonforms/core": "3.9.0-alpha.0"
54+
"@jsonforms/core": "3.9.0-alpha.1"
5555
},
5656
"devDependencies": {
5757
"@jsonforms/core": "workspace:*",

packages/material-renderers/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@jsonforms/material-renderers",
3-
"version": "3.9.0-alpha.0",
3+
"version": "3.9.0-alpha.1",
44
"description": "Material Renderer Set for JSON Forms",
55
"repository": {
66
"type": "git",
@@ -93,21 +93,21 @@
9393
"peerDependencies": {
9494
"@emotion/react": "^11.5.0",
9595
"@emotion/styled": "^11.3.0",
96-
"@jsonforms/core": "3.9.0-alpha.0",
97-
"@jsonforms/react": "3.9.0-alpha.0",
98-
"@mui/icons-material": "^7.0.0",
99-
"@mui/material": "^7.0.0",
100-
"@mui/x-date-pickers": "^8.0.0",
96+
"@jsonforms/core": "3.9.0-alpha.1",
97+
"@jsonforms/react": "3.9.0-alpha.1",
98+
"@mui/icons-material": "^9.0.0",
99+
"@mui/material": "^9.0.0",
100+
"@mui/x-date-pickers": "^9.0.0",
101101
"react": "^16.12.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
102102
},
103103
"devDependencies": {
104104
"@emotion/react": "^11.5.0",
105105
"@emotion/styled": "^11.3.0",
106106
"@jsonforms/core": "workspace:*",
107107
"@jsonforms/react": "workspace:*",
108-
"@mui/icons-material": "^7.3.0",
109-
"@mui/material": "^7.3.0",
110-
"@mui/x-date-pickers": "^8.11.3",
108+
"@mui/icons-material": "^9.2.0",
109+
"@mui/material": "^9.2.0",
110+
"@mui/x-date-pickers": "^9.10.1",
111111
"@rollup/plugin-commonjs": "^23.0.3",
112112
"@rollup/plugin-json": "^5.0.2",
113113
"@rollup/plugin-node-resolve": "^15.0.1",

packages/material-renderers/src/additional/MaterialListWithDetailRenderer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export const MaterialListWithDetailRenderer = ({
134134
createDefault={handleCreateDefaultValue}
135135
disableAdd={doDisableAdd}
136136
/>
137-
<Grid container direction='row' spacing={2}>
137+
<Grid container spacing={2}>
138138
<Grid size={3}>
139139
<List>
140140
{data > 0 ? (

0 commit comments

Comments
 (0)