Adjust typing to review
- Build api-report Signed-off-by: Philipp Hugenroth <philipph@spotify.com>
This commit is contained in:
@@ -3,17 +3,17 @@
|
||||
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
||||
|
||||
```ts
|
||||
import { ComponentsProps } from '@material-ui/core/styles/props';
|
||||
import type { ComponentsProps } from '@material-ui/core/styles/props';
|
||||
import { Overrides } from '@material-ui/core/styles/overrides';
|
||||
import { Palette } from '@material-ui/core/styles/createPalette';
|
||||
import { PaletteOptions } from '@material-ui/core/styles/createPalette';
|
||||
import { PaletteOptions as PaletteOptions_2 } from '@mui/material/styles/createPalette';
|
||||
import type { Palette } from '@material-ui/core/styles/createPalette';
|
||||
import type { PaletteOptions } from '@material-ui/core/styles/createPalette';
|
||||
import { PaletteOptions as PaletteOptions_2 } from '@mui/material/styles';
|
||||
import { ReactNode } from 'react';
|
||||
import { Theme } from '@mui/material/styles';
|
||||
import { Theme as Theme_2 } from '@material-ui/core';
|
||||
import { ThemeOptions } from '@mui/material/styles';
|
||||
import { ThemeOptions as ThemeOptions_2 } from '@material-ui/core/styles';
|
||||
import { ThemeOptions as ThemeOptions_3 } from '@material-ui/core';
|
||||
import type { ThemeOptions as ThemeOptions_3 } from '@material-ui/core';
|
||||
|
||||
// @public @deprecated
|
||||
export type BackstagePalette = Palette & BackstagePaletteAdditions;
|
||||
@@ -249,6 +249,7 @@ export const palettes: {
|
||||
error: string;
|
||||
text: string;
|
||||
link: string;
|
||||
closeButtonColor: string;
|
||||
warning: string;
|
||||
};
|
||||
border: string;
|
||||
@@ -322,6 +323,7 @@ export const palettes: {
|
||||
error: string;
|
||||
text: string;
|
||||
link: string;
|
||||
closeButtonColor: string;
|
||||
warning: string;
|
||||
};
|
||||
border: string;
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
"dependencies": {
|
||||
"@emotion/react": "^11.10.5",
|
||||
"@emotion/styled": "^11.10.5",
|
||||
"@mui/material": "^5.11.2",
|
||||
"@mui/material": "^5.12.2",
|
||||
"@mui/styles": "^5.11.2"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
||||
@@ -20,7 +20,7 @@ import {
|
||||
createTheme,
|
||||
} from '@material-ui/core/styles';
|
||||
import type { PaletteOptions as PaletteOptionsV4 } from '@material-ui/core/styles/createPalette';
|
||||
import { PaletteOptions as PaletteOptionsV5 } from '@mui/material/styles/createPalette';
|
||||
import { PaletteOptions as PaletteOptionsV5 } from '@mui/material/styles';
|
||||
import {
|
||||
adaptV4Theme,
|
||||
Theme as Mui5Theme,
|
||||
|
||||
@@ -20,13 +20,13 @@ import {
|
||||
BackstageThemeAdditions,
|
||||
} from '../base/types';
|
||||
|
||||
declare module '@mui/material/styles/createPalette' {
|
||||
declare module '@mui/material/styles' {
|
||||
interface Palette extends BackstagePaletteAdditions {}
|
||||
|
||||
interface PaletteOptions extends BackstagePaletteAdditions {}
|
||||
}
|
||||
|
||||
declare module '@mui/material/styles/createTheme' {
|
||||
declare module '@mui/material/styles' {
|
||||
interface Theme extends BackstageThemeAdditions {}
|
||||
|
||||
interface ThemeOptions extends BackstageThemeAdditions {}
|
||||
@@ -35,14 +35,3 @@ declare module '@mui/material/styles/createTheme' {
|
||||
declare module '@mui/private-theming/defaultTheme' {
|
||||
interface DefaultTheme extends Theme {}
|
||||
}
|
||||
|
||||
// This is a workaround for missing methods in React 17 that MUI v5 depends on
|
||||
// See https://github.com/mui/material-ui/issues/35287
|
||||
declare global {
|
||||
namespace React {
|
||||
interface DOMAttributes<T> {
|
||||
onResize?: (event: Event) => void;
|
||||
onResizeCapture?: (event: Event) => void;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9630,7 +9630,7 @@ __metadata:
|
||||
"@backstage/cli": "workspace:^"
|
||||
"@emotion/react": ^11.10.5
|
||||
"@emotion/styled": ^11.10.5
|
||||
"@mui/material": ^5.11.2
|
||||
"@mui/material": ^5.12.2
|
||||
"@mui/styles": ^5.11.2
|
||||
"@types/react": ^16.13.1 || ^17.0.0
|
||||
peerDependencies:
|
||||
@@ -12981,7 +12981,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@mui/material@npm:^5.11.2, @mui/material@npm:^5.12.2":
|
||||
"@mui/material@npm:^5.12.2":
|
||||
version: 5.12.2
|
||||
resolution: "@mui/material@npm:5.12.2"
|
||||
dependencies:
|
||||
|
||||
Reference in New Issue
Block a user