diff --git a/docs/package.json b/docs/package.json index f984cfd464..d662b8ecab 100644 --- a/docs/package.json +++ b/docs/package.json @@ -23,7 +23,7 @@ "@emotion/react": "^11.11.4", "@emotion/server": "^11.11.0", "@emotion/styled": "^11.11.5", - "@mui/docs": "6.0.0-beta.4", + "@mui/docs": "6.0.0-beta.5-dev.20240809-114550-93cb3d65e7", "@mui/icons-material": "6.0.0-beta.4", "@mui/internal-markdown": "^1.0.8", "@mui/internal-scripts": "^1.0.14", diff --git a/docs/types/mui-docs.d.ts b/docs/types/mui-docs.d.ts deleted file mode 100644 index 8ea57f19fa..0000000000 --- a/docs/types/mui-docs.d.ts +++ /dev/null @@ -1,63 +0,0 @@ -// Needed until @mui/docs fixes the types - -declare module '@mui/docs/Link' { - import * as React from 'react'; - import { LinkProps as NextLinkProps } from 'next/link'; - import { LinkProps as MuiLinkProps } from '@mui/material/Link'; - - interface NextLinkComposedProps - extends Omit, 'href'>, - Omit< - NextLinkProps, - 'href' | 'as' | 'passHref' | 'onMouseEnter' | 'onClick' | 'onTouchStart' - > { - to: NextLinkProps['href']; - linkAs?: NextLinkProps['as']; - } - export type LinkProps = { - activeClassName?: string; - as?: NextLinkProps['as']; - href: NextLinkProps['href']; - linkAs?: NextLinkProps['as']; - noLinkStyle?: boolean; - } & Omit & - Omit; - export const Link: React.ForwardRefExoticComponent< - Omit & React.RefAttributes - >; - export {}; -} - -declare module '@mui/docs/i18n' { - import * as React from 'react'; - import PropTypes from 'prop-types'; - - declare global { - interface NodeRequire { - context: (path: string, useSubdirectories: boolean, regex: RegExp) => RequireContext; - } - } - - interface RequireContext { - (req: string): string; - keys: () => string[]; - } - export interface UserLanguageProviderProps { - children: React.ReactNode; - defaultUserLanguage: string; - } - export declare function UserLanguageProvider(props: UserLanguageProviderProps): React.JSX.Element; - export declare namespace UserLanguageProvider { - const propTypes: { - children: PropTypes.Validator>; - defaultUserLanguage: PropTypes.Requireable; - }; - } - export declare function useUserLanguage(): string; - export declare function useSetUserLanguage(): React.Dispatch>; - export interface TranslateOptions { - ignoreWarning?: boolean; - } - export declare function useTranslate(): (key: string, options?: TranslateOptions) => any; - export {}; -} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f56c49deb2..3b70d111a5 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -344,8 +344,8 @@ importers: specifier: ^11.11.5 version: 11.11.5(@emotion/react@11.13.0(@types/react@18.3.1)(react@18.3.1))(@types/react@18.3.1)(react@18.3.1) '@mui/docs': - specifier: 6.0.0-beta.4 - version: 6.0.0-beta.4(27mu7mxfggguzp6mzqgbtkliam) + specifier: 6.0.0-beta.5-dev.20240809-114550-93cb3d65e7 + version: 6.0.0-beta.5-dev.20240809-114550-93cb3d65e7(27mu7mxfggguzp6mzqgbtkliam) '@mui/icons-material': specifier: 6.0.0-beta.4 version: 6.0.0-beta.4(@mui/material@6.0.0-beta.4(@emotion/react@11.13.0(@types/react@18.3.1)(react@18.3.1))(@emotion/styled@11.11.5(@emotion/react@11.13.0(@types/react@18.3.1)(react@18.3.1))(@types/react@18.3.1)(react@18.3.1))(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(@types/react@18.3.1)(react@18.3.1) @@ -2209,8 +2209,8 @@ packages: '@mui/core-downloads-tracker@6.0.0-dev.240424162023-9968b4889d': resolution: {integrity: sha512-doh3M3U7HUGSBIWGe1yvesSbfDguMRjP0N09ogWSBM2hovXAlgULhMgcRTepAZLLwfRxFII0bCohq6B9NqoKuw==} - '@mui/docs@6.0.0-beta.4': - resolution: {integrity: sha512-zQ/0CPWRmNBDYwLE10FrBm4wnLUCm5200ZsyqFowcHr2Utajmlsby4BIkhjlZ7/XurQr2SW67bA+VIWT+GKvDQ==} + '@mui/docs@6.0.0-beta.5-dev.20240809-114550-93cb3d65e7': + resolution: {integrity: sha512-cKezHSFdI6BqJvhsSKQZoFWyaU68g+Fv63teDjcOxw6G7364AsMATP4jv2S1J/hwo0DE0yOl9dxgRwlZXW0hXg==} engines: {node: '>=14.0.0'} peerDependencies: '@mui/base': '*' @@ -2249,6 +2249,9 @@ packages: '@mui/internal-markdown@1.0.8': resolution: {integrity: sha512-OU/ieH8HhRbciy3fR5i8vSU/Z4wlfE+iwEFvrqP578jBeqg7X0gvev/uvv9d+FSgRnvgmWJzCYXEPlzlI3MmFA==} + '@mui/internal-markdown@1.0.9': + resolution: {integrity: sha512-YbX1+GAOoJ1iiwIDZEgKV8wo4PUabgKoKi/M/WX+BX346J0pHiVjaV1BpjkMw3RM2hy1RpqiVLPVb8McXINTKQ==} + '@mui/internal-scripts@1.0.14': resolution: {integrity: sha512-v2HQWzssX8l+WAZh4JpgAtnxvwi4ZEm7+spi3e/1zxTXz/k3aWlcc50lpfeAtD6TGbegN2/j0OCORfDHTDQdbQ==} @@ -6445,6 +6448,11 @@ packages: engines: {node: '>= 18'} hasBin: true + marked@13.0.3: + resolution: {integrity: sha512-rqRix3/TWzE9rIoFGIn8JmsVfhiuC8VIQ8IdX5TfzmeBucdY05/0UlzKaw0eVtpcN/OdVFpBk7CjKGo9iHJ/zA==} + engines: {node: '>= 18'} + hasBin: true + mathml-tag-names@2.1.3: resolution: {integrity: sha512-APMBEanjybaPzUrfqU0IMU5I0AswKMH7k8OTLs0vvV4KZpExkTkY87nR/zpbuTPj+gARop7aGUbl11pnDfW6xg==} @@ -10828,12 +10836,12 @@ snapshots: '@mui/core-downloads-tracker@6.0.0-dev.240424162023-9968b4889d': {} - '@mui/docs@6.0.0-beta.4(27mu7mxfggguzp6mzqgbtkliam)': + '@mui/docs@6.0.0-beta.5-dev.20240809-114550-93cb3d65e7(27mu7mxfggguzp6mzqgbtkliam)': dependencies: '@babel/runtime': 7.25.0 '@mui/base': 5.0.0-beta.53(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@mui/icons-material': 6.0.0-beta.4(@mui/material@6.0.0-beta.4(@emotion/react@11.13.0(@types/react@18.3.1)(react@18.3.1))(@emotion/styled@11.11.5(@emotion/react@11.13.0(@types/react@18.3.1)(react@18.3.1))(@types/react@18.3.1)(react@18.3.1))(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(@types/react@18.3.1)(react@18.3.1) - '@mui/internal-markdown': 1.0.8 + '@mui/internal-markdown': 1.0.9 '@mui/material': 6.0.0-beta.4(@emotion/react@11.13.0(@types/react@18.3.1)(react@18.3.1))(@emotion/styled@11.11.5(@emotion/react@11.13.0(@types/react@18.3.1)(react@18.3.1))(@types/react@18.3.1)(react@18.3.1))(@types/react@18.3.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@mui/system': 6.0.0-beta.4(@emotion/react@11.13.0(@types/react@18.3.1)(react@18.3.1))(@emotion/styled@11.11.5(@emotion/react@11.13.0(@types/react@18.3.1)(react@18.3.1))(@types/react@18.3.1)(react@18.3.1))(@types/react@18.3.1)(react@18.3.1) chai: 4.5.0 @@ -10876,6 +10884,13 @@ snapshots: marked: 13.0.2 prismjs: 1.29.0 + '@mui/internal-markdown@1.0.9': + dependencies: + '@babel/runtime': 7.25.0 + lodash: 4.17.21 + marked: 13.0.3 + prismjs: 1.29.0 + '@mui/internal-scripts@1.0.14': dependencies: '@babel/core': 7.25.2 @@ -16082,6 +16097,8 @@ snapshots: marked@13.0.2: {} + marked@13.0.3: {} + mathml-tag-names@2.1.3: {} mdast-util-from-markdown@0.8.5: