diff --git a/.changeset/popular-kangaroos-accept.md b/.changeset/popular-kangaroos-accept.md new file mode 100644 index 0000000000..9e3fcf454a --- /dev/null +++ b/.changeset/popular-kangaroos-accept.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-home': minor +--- + +fix: update plugin home dependence @rjsf/material-ui to @rjsf/material-ui-v5 diff --git a/plugins/home/package.json b/plugins/home/package.json index ae2ea7ea1f..c5aa8ee238 100644 --- a/plugins/home/package.json +++ b/plugins/home/package.json @@ -44,7 +44,7 @@ "@material-ui/icons": "^4.9.1", "@material-ui/lab": "4.0.0-alpha.61", "@rjsf/core-v5": "npm:@rjsf/core@5.7.3", - "@rjsf/material-ui": "5.7.3", + "@rjsf/material-ui-v5": "npm:@rjsf/material-ui@5.7.3", "@rjsf/utils": "5.7.3", "@rjsf/validator-ajv8": "5.7.3", "@types/react": "^16.13.1 || ^17.0.0", diff --git a/plugins/home/src/components/CustomHomepage/WidgetSettingsOverlay.tsx b/plugins/home/src/components/CustomHomepage/WidgetSettingsOverlay.tsx index 65e0917fb1..1d863c020d 100644 --- a/plugins/home/src/components/CustomHomepage/WidgetSettingsOverlay.tsx +++ b/plugins/home/src/components/CustomHomepage/WidgetSettingsOverlay.tsx @@ -30,7 +30,7 @@ import { Widget } from './types'; import { withTheme } from '@rjsf/core-v5'; import validator from '@rjsf/validator-ajv8'; -const Form = withTheme(require('@rjsf/material-ui').Theme); +const Form = withTheme(require('@rjsf/material-ui-v5').Theme); const useStyles = makeStyles((theme: Theme) => createStyles({ diff --git a/yarn.lock b/yarn.lock index 697b463991..a2b10a747c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7139,7 +7139,7 @@ __metadata: "@material-ui/icons": ^4.9.1 "@material-ui/lab": 4.0.0-alpha.61 "@rjsf/core-v5": "npm:@rjsf/core@5.7.3" - "@rjsf/material-ui": 5.7.3 + "@rjsf/material-ui-v5": "npm:@rjsf/material-ui@5.7.3" "@rjsf/utils": 5.7.3 "@rjsf/validator-ajv8": 5.7.3 "@testing-library/dom": ^8.0.0 @@ -14296,7 +14296,7 @@ __metadata: languageName: node linkType: hard -"@rjsf/material-ui-v5@npm:@rjsf/material-ui@5.7.3, @rjsf/material-ui@npm:5.7.3": +"@rjsf/material-ui-v5@npm:@rjsf/material-ui@5.7.3": version: 5.7.3 resolution: "@rjsf/material-ui@npm:5.7.3" peerDependencies: