Update changesets
Signed-off-by: Philipp Hugenroth <philipph@spotify.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-techdocs-addons-test-utils': patch
|
||||
---
|
||||
|
||||
Avoiding re-running tests on cleanup.
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/test-utils': minor
|
||||
---
|
||||
|
||||
Test App Wrapper is now using `UnifiedThemeProvider` for supporting MUI v5 next to MUI v4 in tests.
|
||||
@@ -0,0 +1,17 @@
|
||||
---
|
||||
'@backstage/app-defaults': minor
|
||||
'@backstage/theme': minor
|
||||
---
|
||||
|
||||
**MUI v5 Support:** Adding platform-wide support for MUI v5 allowing a transition phase for migrating central plugins & components over. We still support v4 instances & plugins by adding a
|
||||
|
||||
To allow the future support of plugins & components using MUI v5 you want to upgrade your `AppTheme`'s to using the `UnifiedThemeProvider`
|
||||
|
||||
```diff
|
||||
Provider: ({ children }) => (
|
||||
- <ThemeProvider theme={lightTheme}>
|
||||
- <CssBaseline>{children}</CssBaseline>
|
||||
- </ThemeProvider>
|
||||
+ <UnifiedThemeProvider theme={builtinThemes.light} children={children} />
|
||||
),
|
||||
```
|
||||
@@ -1,24 +1,5 @@
|
||||
---
|
||||
'@backstage/app-defaults': minor
|
||||
'@backstage/test-utils': minor
|
||||
'@backstage/theme': minor
|
||||
'@backstage/plugin-techdocs-addons-test-utils': patch
|
||||
'@backstage/cli': patch
|
||||
---
|
||||
|
||||
**MUI v5 Support:** Adding platform-wide support for MUI v5 allowing a transition phase for migrating central plugins & components over. We still support v4 instances & plugins by adding a
|
||||
|
||||
To allow the future support of plugins & components using MUI v5 you want to upgrade your `AppTheme`'s to using the `UnifiedThemeProvider`
|
||||
|
||||
```diff
|
||||
Provider: ({ children }) => (
|
||||
- <ThemeProvider theme={lightTheme}>
|
||||
- <CssBaseline>{children}</CssBaseline>
|
||||
- </ThemeProvider>
|
||||
+ <UnifiedThemeProvider theme={builtinThemes.light} children={children} />
|
||||
),
|
||||
```
|
||||
|
||||
**'@backstage/test-utils':** Test App Wrapper is using `UnifiedThemeProvider` for tests now.
|
||||
**'@backstage/plugin-techdocs-addons-test-utils':** Fix tests by avoiding re-running theme on cleanup.
|
||||
**'@backstage/cli':** Enforcing MUI v5 specific linting to minimize bundle size.
|
||||
Enforcing MUI v5 specific linting to minimize bundle size.
|
||||
|
||||
@@ -42,11 +42,6 @@
|
||||
"react": "^16.13.1 || ^17.0.0",
|
||||
"react-dom": "^16.13.1 || ^17.0.0"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"@material-ui/core": {
|
||||
"optional": true
|
||||
}
|
||||
},
|
||||
"devDependencies": {
|
||||
"@backstage/cli": "workspace:^",
|
||||
"@types/react": "^16.13.1 || ^17.0.0"
|
||||
|
||||
Reference in New Issue
Block a user