@backstage/theme 0.4.0-next.1 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/dist/index.d.ts +0 -8
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @backstage/theme
|
|
2
2
|
|
|
3
|
+
## 0.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 1fd38bc4141a: **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
|
|
8
|
+
|
|
9
|
+
To allow the future support of plugins & components using MUI v5 you want to upgrade your `AppTheme`'s to using the `UnifiedThemeProvider`
|
|
10
|
+
|
|
11
|
+
```diff
|
|
12
|
+
Provider: ({ children }) => (
|
|
13
|
+
- <ThemeProvider theme={lightTheme}>
|
|
14
|
+
- <CssBaseline>{children}</CssBaseline>
|
|
15
|
+
- </ThemeProvider>
|
|
16
|
+
+ <UnifiedThemeProvider theme={builtinThemes.light} children={children} />
|
|
17
|
+
),
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- 5065a5e8ebd6: Tweaked `UnifiedThemeProvider` to avoid overlapping JSS class names in production.
|
|
23
|
+
|
|
3
24
|
## 0.4.0-next.1
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -509,14 +509,10 @@ type SimpleThemeOptions = {
|
|
|
509
509
|
declare module '@material-ui/core/styles/createPalette' {
|
|
510
510
|
interface Palette extends BackstagePaletteAdditions {
|
|
511
511
|
}
|
|
512
|
-
interface PaletteOptions extends BackstagePaletteAdditions {
|
|
513
|
-
}
|
|
514
512
|
}
|
|
515
513
|
declare module '@material-ui/core/styles/createTheme' {
|
|
516
514
|
interface Theme extends BackstageThemeAdditions {
|
|
517
515
|
}
|
|
518
|
-
interface ThemeOptions extends BackstageThemeAdditions {
|
|
519
|
-
}
|
|
520
516
|
}
|
|
521
517
|
|
|
522
518
|
/**
|
|
@@ -545,14 +541,10 @@ declare function createTheme(options: SimpleThemeOptions): Theme$1;
|
|
|
545
541
|
declare module '@mui/material/styles' {
|
|
546
542
|
interface Palette extends BackstagePaletteAdditions {
|
|
547
543
|
}
|
|
548
|
-
interface PaletteOptions extends BackstagePaletteAdditions {
|
|
549
|
-
}
|
|
550
544
|
}
|
|
551
545
|
declare module '@mui/material/styles' {
|
|
552
546
|
interface Theme extends BackstageThemeAdditions {
|
|
553
547
|
}
|
|
554
|
-
interface ThemeOptions extends BackstageThemeAdditions {
|
|
555
|
-
}
|
|
556
548
|
}
|
|
557
549
|
declare module '@mui/private-theming/defaultTheme' {
|
|
558
550
|
interface DefaultTheme extends Theme {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/theme",
|
|
3
3
|
"description": "material-ui theme for use with Backstage.",
|
|
4
|
-
"version": "0.4.0
|
|
4
|
+
"version": "0.4.0",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
7
7
|
"main": "dist/index.esm.js",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"react-dom": "^16.13.1 || ^17.0.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@backstage/cli": "^0.22.8
|
|
46
|
+
"@backstage/cli": "^0.22.8",
|
|
47
47
|
"@types/react": "^16.13.1 || ^17.0.0"
|
|
48
48
|
},
|
|
49
49
|
"files": [
|