From 20b7da6f1311c36a5bacdb523f2a6a235737a57b Mon Sep 17 00:00:00 2001 From: Philipp Hugenroth Date: Fri, 5 May 2023 16:40:57 +0200 Subject: [PATCH] Add changeset Signed-off-by: Philipp Hugenroth --- .changeset/weak-snails-sparkle.md | 24 ++++++++++++++++++++ packages/theme/src/unified/overrides.test.ts | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 .changeset/weak-snails-sparkle.md diff --git a/.changeset/weak-snails-sparkle.md b/.changeset/weak-snails-sparkle.md new file mode 100644 index 0000000000..55450e0869 --- /dev/null +++ b/.changeset/weak-snails-sparkle.md @@ -0,0 +1,24 @@ +--- +'@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 }) => ( +- +- {children} +- ++ + ), +``` + +**'@backstage/test-utils':** Test App Wrapper is using `UnifiedThemeProvider` for tests now. +**'@backstage/plugin-techdocs-addons-test-utils':** Fix avoiding test to run on unmount. +**'@backstage/cli':** Enforcing MUI v5 specific linting to minimize bundle size. diff --git a/packages/theme/src/unified/overrides.test.ts b/packages/theme/src/unified/overrides.test.ts index 38b4738444..e84cedade6 100644 --- a/packages/theme/src/unified/overrides.test.ts +++ b/packages/theme/src/unified/overrides.test.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { Theme } from '@mui/material'; +import { Theme } from '@mui/material/styles'; import { transformV5ComponentThemesToV4 } from './overrides'; describe('transformV5ComponentThemesToV4', () => {