diff --git a/packages/documentation/docusaurus.config.js b/packages/documentation/docusaurus.config.js index 497a80ed67..8a854f7d2a 100644 --- a/packages/documentation/docusaurus.config.js +++ b/packages/documentation/docusaurus.config.js @@ -1,10 +1,14 @@ // @ts-check // Note: type annotations allow type checking and IDEs autocompletion +// eslint-disable-next-line @typescript-eslint/ban-ts-comment +// @ts-ignore // eslint-disable-next-line @typescript-eslint/no-var-requires -const lightCodeTheme = require('prism-react-renderer/themes/github') +const lightCodeTheme = require('prism-react-renderer').themes.github +// eslint-disable-next-line @typescript-eslint/ban-ts-comment +// @ts-ignore // eslint-disable-next-line @typescript-eslint/no-var-requires -const darkCodeTheme = require('prism-react-renderer/themes/dracula') +const darkCodeTheme = require('prism-react-renderer').themes.dracula /** @type {import('@docusaurus/types').Config} */ const config = { diff --git a/packages/documentation/package.json b/packages/documentation/package.json index 5e6e44982f..2992e308a0 100644 --- a/packages/documentation/package.json +++ b/packages/documentation/package.json @@ -21,7 +21,7 @@ "@mdx-js/react": "^1.6.22", "clsx": "^1.2.1", "docusaurus-graphql-plugin": "^0.9.0", - "prism-react-renderer": "^1.3.5", + "prism-react-renderer": "^2.0.4", "react": "^17.0.2", "react-dom": "^17.0.2" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1b04aad7ad..81565684aa 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -537,8 +537,8 @@ importers: specifier: ^0.9.0 version: 0.9.0(@types/node@18.11.9)(graphql@16.6.0) prism-react-renderer: - specifier: ^1.3.5 - version: 1.3.5(react@17.0.2) + specifier: ^2.0.4 + version: 2.0.4(react@17.0.2) react: specifier: ^17.0.2 version: 17.0.2 @@ -1084,7 +1084,6 @@ packages: requiresBuild: true dependencies: '@babel/highlight': 7.18.6 - dev: true /@babel/code-frame@7.21.4: resolution: {integrity: sha512-LYvhNKfwWSPpocw8GI7gpK2nq3HSDuEPC/uSYaALSJu9xjsalaaYFOq0Pwt5KmVqwEbZlDu81aLXwBOmD/Fv9g==} @@ -1454,6 +1453,11 @@ packages: dependencies: '@babel/types': 7.21.5 + /@babel/helper-string-parser@7.19.4: + resolution: {integrity: sha512-nHtDoQcuqFmwYNYPz3Rah5ph2p8PFeFCsZk9A/48dPc/rGocJ5J3hAAZ7pb76VWX3fZKu+uEr/FhH5jLx7umrw==} + engines: {node: '>=6.9.0'} + dev: true + /@babel/helper-string-parser@7.21.5: resolution: {integrity: sha512-5pTUx3hAJaZIdW99sJ6ZUUgWq/Y+Hja7TowEnLNMm1VivRgZQL3vpBY3qUACVsvw+yQU6+YgfBVmcbLaZtrA1w==} engines: {node: '>=6.9.0'} @@ -3393,7 +3397,7 @@ packages: resolution: {integrity: sha512-8SegXApWe6VoNw0r9JHpSteLKTpTiLZ4rMlGIm9JQ18KiCtyQiAMEazujAHrUS5flrcqYZa75ukev3P6QmUwUw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/code-frame': 7.21.4 + '@babel/code-frame': 7.18.6 '@babel/parser': 7.21.8 '@babel/types': 7.21.5 @@ -3418,7 +3422,7 @@ packages: resolution: {integrity: sha512-69OnhBxSSgK0OzTJai4kyPDiKTIe3j+ctaHdIGVbRahTLAT7L3R9oeXHC2aVSuGYt3cVnoAMDmOCgJ2yaiLMvg==} engines: {node: '>=6.9.0'} dependencies: - '@babel/helper-string-parser': 7.21.5 + '@babel/helper-string-parser': 7.19.4 '@babel/helper-validator-identifier': 7.19.1 to-fast-properties: 2.0.0 dev: true @@ -6788,6 +6792,10 @@ packages: resolution: {integrity: sha512-RI1L7N4JnW5gQw2spvL7Sllfuf1SaHdrZpCHiBlCXjIlufi1SMNnbu2teze3/QE67Fg2tBlH7W+mi4hVNk4p0A==} dev: true + /@types/prismjs@1.26.0: + resolution: {integrity: sha512-ZTaqn/qSqUuAq1YwvOFQfVW1AR/oQJlLSZVustdjwI+GZ8kr0MSHBj0tsXPW1EqHubx50gtBEjbPGsdZwQwCjQ==} + dev: false + /@types/prop-types@15.7.5: resolution: {integrity: sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w==} @@ -15665,6 +15673,16 @@ packages: react: 17.0.2 dev: false + /prism-react-renderer@2.0.4(react@17.0.2): + resolution: {integrity: sha512-1fcayBPhlGWLjKHeZMA2eJbvLsq1YJsoP3CUOF0BNlobw4knAYS6EWHYawywaZ5zoIxYkgxuqrrkCj7b+135ow==} + peerDependencies: + react: '>=16.0.0' + dependencies: + '@types/prismjs': 1.26.0 + clsx: 1.2.1 + react: 17.0.2 + dev: false + /prismjs@1.29.0: resolution: {integrity: sha512-Kx/1w86q/epKcmte75LNrEoT+lX8pBpavuAbvJWRXar7Hz8jrtF+e3vY751p0R8H9HdArwaCTNDDzHg/ScJK1Q==} engines: {node: '>=6'}