Skip to content

Commit

Permalink
[core] Deprecate LicenseInfo reexports (mui#11956)
Browse files Browse the repository at this point in the history
  • Loading branch information
cherniavskii authored and thomasmoon committed Sep 6, 2024
1 parent 34a7349 commit e7cfb6f
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
9 changes: 8 additions & 1 deletion packages/grid/x-data-grid-premium/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
import './typeOverloads';

export { LicenseInfo } from '@mui/x-license';
export {
/**
* @deprecated
* Use `@mui/x-license` package instead:
* import { LicenseInfo } from '@mui/x-license';
*/
LicenseInfo,
} from '@mui/x-license';
export * from '@mui/x-data-grid/components';
export * from '@mui/x-data-grid-pro/components';
export * from '@mui/x-data-grid/constants';
Expand Down
9 changes: 8 additions & 1 deletion packages/grid/x-data-grid-pro/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
import './typeOverloads';

export { LicenseInfo } from '@mui/x-license';
export {
/**
* @deprecated
* Use `@mui/x-license` package instead:
* import { LicenseInfo } from '@mui/x-license';
*/
LicenseInfo,
} from '@mui/x-license';
export * from '@mui/x-data-grid/components';
export * from '@mui/x-data-grid/constants';
export * from '@mui/x-data-grid/hooks';
Expand Down
9 changes: 8 additions & 1 deletion packages/x-date-pickers-pro/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
export { LicenseInfo } from '@mui/x-license';
export {
/**
* @deprecated
* Use `@mui/x-license` package instead:
* import { LicenseInfo } from '@mui/x-license';
*/
LicenseInfo,
} from '@mui/x-license';
export * from '@mui/x-date-pickers';

export * from './DateRangePickerDay';
Expand Down

0 comments on commit e7cfb6f

Please sign in to comment.