mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-10 15:47:23 +02:00
chore: upgrade dependencies (#8534)
* chore: upgrade dependencies * FIxes * Bump again
This commit is contained in:
parent
64c6b5c100
commit
e8a07633ba
51 changed files with 3126 additions and 3144 deletions
|
@ -6,6 +6,6 @@
|
|||
"start": "npx --package netlify-cli netlify dev"
|
||||
},
|
||||
"dependencies": {
|
||||
"@netlify/functions": "^1.2.0"
|
||||
"@netlify/functions": "^1.4.0"
|
||||
}
|
||||
}
|
||||
|
|
54
package.json
54
package.json
|
@ -62,56 +62,56 @@
|
|||
"unified": "^9.2.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@crowdin/cli": "^3.7.10",
|
||||
"@crowdin/cli": "^3.9.1",
|
||||
"@swc/core": "1.2.197",
|
||||
"@swc/jest": "^0.2.22",
|
||||
"@swc/jest": "^0.2.24",
|
||||
"@testing-library/react-hooks": "^8.0.1",
|
||||
"@types/fs-extra": "^9.0.13",
|
||||
"@types/jest": "^29.0.0",
|
||||
"@types/lodash": "^4.14.184",
|
||||
"@types/node": "^18.7.16",
|
||||
"@types/prompts": "^2.0.14",
|
||||
"@types/react": "^18.0.18",
|
||||
"@types/jest": "^29.2.5",
|
||||
"@types/lodash": "^4.14.191",
|
||||
"@types/node": "^18.11.18",
|
||||
"@types/prompts": "^2.4.2",
|
||||
"@types/react": "^18.0.26",
|
||||
"@types/react-dev-utils": "^9.0.11",
|
||||
"@types/react-test-renderer": "^18.0.0",
|
||||
"@types/semver": "^7.3.12",
|
||||
"@types/semver": "^7.3.13",
|
||||
"@types/shelljs": "^0.8.11",
|
||||
"@typescript-eslint/eslint-plugin": "^5.36.2",
|
||||
"@typescript-eslint/parser": "^5.36.2",
|
||||
"@typescript-eslint/eslint-plugin": "^5.48.1",
|
||||
"@typescript-eslint/parser": "^5.48.1",
|
||||
"cross-env": "^7.0.3",
|
||||
"cspell": "^6.8.1",
|
||||
"eslint": "^8.23.0",
|
||||
"cspell": "^6.18.1",
|
||||
"eslint": "^8.31.0",
|
||||
"eslint-config-airbnb": "^19.0.4",
|
||||
"eslint-config-prettier": "^8.5.0",
|
||||
"eslint-config-prettier": "^8.6.0",
|
||||
"eslint-plugin-header": "^3.1.1",
|
||||
"eslint-plugin-import": "^2.26.0",
|
||||
"eslint-plugin-jest": "^27.0.1",
|
||||
"eslint-plugin-jsx-a11y": "^6.6.1",
|
||||
"eslint-plugin-react": "^7.31.7",
|
||||
"eslint-plugin-jest": "^27.2.1",
|
||||
"eslint-plugin-jsx-a11y": "^6.7.0",
|
||||
"eslint-plugin-react": "^7.31.11",
|
||||
"eslint-plugin-react-hooks": "^4.6.0",
|
||||
"eslint-plugin-regexp": "^1.9.0",
|
||||
"husky": "^8.0.1",
|
||||
"eslint-plugin-regexp": "^1.12.0",
|
||||
"husky": "^8.0.3",
|
||||
"image-size": "^1.0.2",
|
||||
"jest": "^29.0.2",
|
||||
"jest-environment-jsdom": "^29.0.2",
|
||||
"jest": "^29.3.1",
|
||||
"jest-environment-jsdom": "^29.3.1",
|
||||
"jest-serializer-ansi-escapes": "^2.0.1",
|
||||
"jest-serializer-react-helmet-async": "^1.0.21",
|
||||
"lerna": "^6.2.0",
|
||||
"lerna": "^6.4.0",
|
||||
"lerna-changelog": "^2.2.0",
|
||||
"lint-staged": "^13.0.3",
|
||||
"lint-staged": "^13.1.0",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"prettier": "^2.7.1",
|
||||
"prettier": "^2.8.2",
|
||||
"react": "^17.0.2",
|
||||
"react-dom": "^17.0.2",
|
||||
"react-helmet-async": "^1.3.0",
|
||||
"react-test-renderer": "^17.0.2",
|
||||
"remark-parse": "^8.0.2",
|
||||
"rimraf": "^3.0.2",
|
||||
"sharp": "^0.31.0",
|
||||
"sharp": "^0.31.3",
|
||||
"strip-ansi": "^6.0.1",
|
||||
"stylelint": "^14.11.0",
|
||||
"stylelint-config-prettier": "^9.0.3",
|
||||
"stylelint": "^14.16.1",
|
||||
"stylelint-config-prettier": "^9.0.4",
|
||||
"stylelint-config-standard": "^28.0.0",
|
||||
"typescript": "~4.7.4"
|
||||
"typescript": "~4.9.4"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -28,10 +28,10 @@
|
|||
"fs-extra": "^10.1.0",
|
||||
"lodash": "^4.17.21",
|
||||
"prompts": "^2.4.2",
|
||||
"semver": "^7.3.7",
|
||||
"semver": "^7.3.8",
|
||||
"shelljs": "^0.8.5",
|
||||
"supports-color": "^9.2.3",
|
||||
"tslib": "^2.4.0"
|
||||
"supports-color": "^9.3.1",
|
||||
"tslib": "^2.4.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/supports-color": "^8.1.1"
|
||||
|
|
|
@ -197,7 +197,7 @@ function isValidGitRepoUrl(gitRepoUrl: string): boolean {
|
|||
}
|
||||
|
||||
const gitStrategies = ['deep', 'shallow', 'copy', 'custom'] as const;
|
||||
type GitStrategy = typeof gitStrategies[number];
|
||||
type GitStrategy = (typeof gitStrategies)[number];
|
||||
|
||||
async function getGitCommand(gitStrategy: GitStrategy): Promise<string> {
|
||||
switch (gitStrategy) {
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
"devDependencies": {
|
||||
"@docusaurus/module-type-aliases": "^3.0.0-alpha.0",
|
||||
"@tsconfig/docusaurus": "^1.0.5",
|
||||
"typescript": "^4.7.4"
|
||||
"typescript": "^4.9.4"
|
||||
},
|
||||
"browserslist": {
|
||||
"production": [
|
||||
|
|
|
@ -26,17 +26,17 @@
|
|||
"react-dom": "^17.0.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/eslint-parser": "^7.18.9",
|
||||
"eslint": "^8.23.0",
|
||||
"@babel/eslint-parser": "^7.19.1",
|
||||
"eslint": "^8.31.0",
|
||||
"eslint-config-airbnb": "^19.0.4",
|
||||
"eslint-config-prettier": "^8.5.0",
|
||||
"eslint-config-prettier": "^8.6.0",
|
||||
"eslint-plugin-header": "^3.1.1",
|
||||
"eslint-plugin-import": "^2.26.0",
|
||||
"eslint-plugin-jsx-a11y": "^6.6.1",
|
||||
"eslint-plugin-react": "^7.31.7",
|
||||
"eslint-plugin-jsx-a11y": "^6.7.0",
|
||||
"eslint-plugin-react": "^7.31.11",
|
||||
"eslint-plugin-react-hooks": "^4.6.0",
|
||||
"prettier": "^2.7.1",
|
||||
"stylelint": "^14.11.0"
|
||||
"prettier": "^2.8.2",
|
||||
"stylelint": "^14.16.1"
|
||||
},
|
||||
"browserslist": {
|
||||
"production": [
|
||||
|
|
|
@ -17,10 +17,10 @@
|
|||
"directory": "packages/docusaurus-cssnano-preset"
|
||||
},
|
||||
"dependencies": {
|
||||
"cssnano-preset-advanced": "^5.3.8",
|
||||
"postcss": "^8.4.16",
|
||||
"cssnano-preset-advanced": "^5.3.9",
|
||||
"postcss": "^8.4.21",
|
||||
"postcss-sort-media-queries": "^4.3.0",
|
||||
"tslib": "^2.4.0"
|
||||
"tslib": "^2.4.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"to-vfile": "^6.1.0"
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"chalk": "^4.1.2",
|
||||
"tslib": "^2.4.0"
|
||||
"tslib": "^2.4.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=16.14"
|
||||
|
|
|
@ -18,8 +18,8 @@
|
|||
},
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@babel/parser": "^7.19.0",
|
||||
"@babel/traverse": "^7.19.0",
|
||||
"@babel/parser": "^7.20.7",
|
||||
"@babel/traverse": "^7.20.12",
|
||||
"@docusaurus/logger": "^3.0.0-alpha.0",
|
||||
"@docusaurus/utils": "^3.0.0-alpha.0",
|
||||
"@mdx-js/mdx": "^1.6.22",
|
||||
|
@ -30,11 +30,11 @@
|
|||
"mdast-util-to-string": "^2.0.0",
|
||||
"remark-emoji": "^2.2.0",
|
||||
"stringify-object": "^3.3.0",
|
||||
"tslib": "^2.4.0",
|
||||
"tslib": "^2.4.1",
|
||||
"unified": "^9.2.2",
|
||||
"unist-util-visit": "^2.0.3",
|
||||
"url-loader": "^4.1.1",
|
||||
"webpack": "^5.74.0"
|
||||
"webpack": "^5.75.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@docusaurus/types": "^3.0.0-alpha.0",
|
||||
|
|
|
@ -21,7 +21,6 @@ export default function MDXContent({
|
|||
\`}</code></pre>
|
||||
</MDXLayout>;
|
||||
}
|
||||
|
||||
;
|
||||
MDXContent.isMDXComponent = true;"
|
||||
`;
|
||||
|
@ -45,7 +44,6 @@ export default function MDXContent({
|
|||
}}></mermaid>
|
||||
</MDXLayout>;
|
||||
}
|
||||
|
||||
;
|
||||
MDXContent.isMDXComponent = true;"
|
||||
`;
|
||||
|
|
|
@ -22,8 +22,8 @@
|
|||
"docusaurus-migrate": "bin/index.mjs"
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.19.0",
|
||||
"@babel/preset-env": "^7.19.0",
|
||||
"@babel/core": "^7.20.12",
|
||||
"@babel/preset-env": "^7.20.2",
|
||||
"@docusaurus/logger": "^3.0.0-alpha.0",
|
||||
"@docusaurus/utils": "^3.0.0-alpha.0",
|
||||
"@mapbox/hast-util-to-jsx": "^2.0.0",
|
||||
|
@ -36,13 +36,13 @@
|
|||
"rehype-parse": "^7.0.1",
|
||||
"remark-parse": "^8.0.2",
|
||||
"remark-stringify": "^8.1.0",
|
||||
"semver": "^7.3.7",
|
||||
"tslib": "^2.4.0",
|
||||
"semver": "^7.3.8",
|
||||
"tslib": "^2.4.1",
|
||||
"unified": "^9.2.2",
|
||||
"unist-util-visit": "^2.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/color": "^3.0.3",
|
||||
"@types/jscodeshift": "^0.11.5"
|
||||
"@types/jscodeshift": "^0.11.6"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
"eta": "^1.12.3",
|
||||
"fs-extra": "^10.1.0",
|
||||
"lodash": "^4.17.21",
|
||||
"tslib": "^2.4.0"
|
||||
"tslib": "^2.4.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@docusaurus/types": "^3.0.0-alpha.0"
|
||||
|
|
|
@ -30,10 +30,10 @@
|
|||
"fs-extra": "^10.1.0",
|
||||
"lodash": "^4.17.21",
|
||||
"reading-time": "^1.5.0",
|
||||
"tslib": "^2.4.0",
|
||||
"tslib": "^2.4.1",
|
||||
"unist-util-visit": "^2.0.3",
|
||||
"utility-types": "^3.10.0",
|
||||
"webpack": "^5.74.0"
|
||||
"webpack": "^5.75.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "^16.8.4 || ^17.0.0",
|
||||
|
|
|
@ -60,7 +60,6 @@ export default function MDXContent({
|
|||
</div>
|
||||
</MDXLayout>;
|
||||
}
|
||||
|
||||
;
|
||||
MDXContent.isMDXComponent = true;"
|
||||
`;
|
||||
|
|
|
@ -48,9 +48,9 @@
|
|||
"import-fresh": "^3.3.0",
|
||||
"js-yaml": "^4.1.0",
|
||||
"lodash": "^4.17.21",
|
||||
"tslib": "^2.4.0",
|
||||
"tslib": "^2.4.1",
|
||||
"utility-types": "^3.10.0",
|
||||
"webpack": "^5.74.0"
|
||||
"webpack": "^5.75.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/js-yaml": "^4.0.5",
|
||||
|
|
|
@ -24,8 +24,8 @@
|
|||
"@docusaurus/utils": "^3.0.0-alpha.0",
|
||||
"@docusaurus/utils-validation": "^3.0.0-alpha.0",
|
||||
"fs-extra": "^10.1.0",
|
||||
"tslib": "^2.4.0",
|
||||
"webpack": "^5.74.0"
|
||||
"tslib": "^2.4.1",
|
||||
"webpack": "^5.75.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "^16.8.4 || ^17.0.0",
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
"@docusaurus/utils": "^3.0.0-alpha.0",
|
||||
"fs-extra": "^10.1.0",
|
||||
"react-json-view": "^1.21.3",
|
||||
"tslib": "^2.4.0"
|
||||
"tslib": "^2.4.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "^16.8.4 || ^17.0.0",
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
"@docusaurus/core": "^3.0.0-alpha.0",
|
||||
"@docusaurus/types": "^3.0.0-alpha.0",
|
||||
"@docusaurus/utils-validation": "^3.0.0-alpha.0",
|
||||
"tslib": "^2.4.0"
|
||||
"tslib": "^2.4.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "^16.8.4 || ^17.0.0",
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
"@docusaurus/types": "^3.0.0-alpha.0",
|
||||
"@docusaurus/utils-validation": "^3.0.0-alpha.0",
|
||||
"@types/gtag.js": "^0.0.12",
|
||||
"tslib": "^2.4.0"
|
||||
"tslib": "^2.4.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "^16.8.4 || ^17.0.0",
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
"@docusaurus/core": "^3.0.0-alpha.0",
|
||||
"@docusaurus/types": "^3.0.0-alpha.0",
|
||||
"@docusaurus/utils-validation": "^3.0.0-alpha.0",
|
||||
"tslib": "^2.4.0"
|
||||
"tslib": "^2.4.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "^16.8.4 || ^17.0.0",
|
||||
|
|
|
@ -28,9 +28,9 @@
|
|||
"@docusaurus/utils-validation": "^3.0.0-alpha.0",
|
||||
"@endiliey/react-ideal-image": "^0.0.11",
|
||||
"react-waypoint": "^10.3.0",
|
||||
"sharp": "^0.31.0",
|
||||
"tslib": "^2.4.0",
|
||||
"webpack": "^5.74.0"
|
||||
"sharp": "^0.31.3",
|
||||
"tslib": "^2.4.1",
|
||||
"webpack": "^5.75.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@docusaurus/module-type-aliases": "^3.0.0-alpha.0",
|
||||
|
|
|
@ -20,20 +20,20 @@
|
|||
},
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.19.0",
|
||||
"@babel/preset-env": "^7.19.0",
|
||||
"@babel/core": "^7.20.12",
|
||||
"@babel/preset-env": "^7.20.2",
|
||||
"@docusaurus/core": "^3.0.0-alpha.0",
|
||||
"@docusaurus/theme-common": "^3.0.0-alpha.0",
|
||||
"@docusaurus/theme-translations": "^3.0.0-alpha.0",
|
||||
"@docusaurus/types": "^3.0.0-alpha.0",
|
||||
"@docusaurus/utils": "^3.0.0-alpha.0",
|
||||
"@docusaurus/utils-validation": "^3.0.0-alpha.0",
|
||||
"babel-loader": "^8.2.5",
|
||||
"babel-loader": "^8.3.0",
|
||||
"clsx": "^1.2.1",
|
||||
"core-js": "^3.25.1",
|
||||
"core-js": "^3.27.1",
|
||||
"terser-webpack-plugin": "^5.3.6",
|
||||
"tslib": "^2.4.0",
|
||||
"webpack": "^5.74.0",
|
||||
"tslib": "^2.4.1",
|
||||
"webpack": "^5.75.0",
|
||||
"webpack-merge": "^5.8.0",
|
||||
"workbox-build": "^6.5.4",
|
||||
"workbox-precaching": "^6.5.4",
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
"@docusaurus/utils-validation": "^3.0.0-alpha.0",
|
||||
"fs-extra": "^10.1.0",
|
||||
"sitemap": "^7.1.1",
|
||||
"tslib": "^2.4.0"
|
||||
"tslib": "^2.4.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "^16.8.4 || ^17.0.0",
|
||||
|
|
|
@ -17,8 +17,8 @@
|
|||
},
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"npm-to-yarn": "^1.0.1",
|
||||
"tslib": "^2.4.0",
|
||||
"npm-to-yarn": "^1.2.1",
|
||||
"tslib": "^2.4.1",
|
||||
"unist-util-visit": "^2.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
*/
|
||||
|
||||
import visit from 'unist-util-visit';
|
||||
// @ts-expect-error: this package provides CJS
|
||||
import npmToYarn from 'npm-to-yarn';
|
||||
import type {Code, Content, Literal} from 'mdast';
|
||||
import type {Plugin} from 'unified';
|
||||
|
|
|
@ -38,12 +38,12 @@
|
|||
"infima": "0.2.0-alpha.42",
|
||||
"lodash": "^4.17.21",
|
||||
"nprogress": "^0.2.0",
|
||||
"postcss": "^8.4.16",
|
||||
"postcss": "^8.4.21",
|
||||
"prism-react-renderer": "^1.3.5",
|
||||
"prismjs": "^1.29.0",
|
||||
"react-router-dom": "^5.3.3",
|
||||
"react-router-dom": "^5.3.4",
|
||||
"rtlcss": "^4.0.0",
|
||||
"tslib": "^2.4.0",
|
||||
"tslib": "^2.4.1",
|
||||
"utility-types": "^3.10.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
|
@ -9,11 +9,13 @@ import React, {type ReactElement} from 'react';
|
|||
import Head, {type Props as HeadProps} from '@docusaurus/Head';
|
||||
import type {Props} from '@theme/MDXComponents/Head';
|
||||
|
||||
type MDXElement = ReactElement<
|
||||
{mdxType?: string; originalType?: string} | undefined
|
||||
>;
|
||||
|
||||
// MDX elements are wrapped through the MDX pragma. In some cases (notably usage
|
||||
// with Head/Helmet) we need to unwrap those elements.
|
||||
function unwrapMDXElement(
|
||||
element: ReactElement<{mdxType?: string; originalType?: string} | undefined>,
|
||||
) {
|
||||
function unwrapMDXElement(element: MDXElement) {
|
||||
if (element.props?.mdxType && element.props.originalType) {
|
||||
const {mdxType, originalType, ...newProps} = element.props;
|
||||
return React.createElement(element.props.originalType, newProps);
|
||||
|
@ -23,7 +25,7 @@ function unwrapMDXElement(
|
|||
|
||||
export default function MDXHead(props: Props): JSX.Element {
|
||||
const unwrappedChildren = React.Children.map(props.children, (child) =>
|
||||
React.isValidElement(child) ? unwrapMDXElement(child) : child,
|
||||
React.isValidElement(child) ? unwrapMDXElement(child as MDXElement) : child,
|
||||
);
|
||||
return <Head {...(props as HeadProps)}>{unwrappedChildren}</Head>;
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
import siteConfig from '@generated/docusaurus.config';
|
||||
import type * as PrismNamespace from 'prismjs';
|
||||
import type {Optional} from 'utility-types';
|
||||
|
||||
export default function prismIncludeLanguages(
|
||||
PrismObject: typeof PrismNamespace,
|
||||
|
@ -29,5 +30,5 @@ export default function prismIncludeLanguages(
|
|||
require(`prismjs/components/prism-${lang}`);
|
||||
});
|
||||
|
||||
delete (globalThis as Global & {Prism?: typeof PrismNamespace}).Prism;
|
||||
delete (globalThis as Optional<typeof globalThis, 'Prism'>).Prism;
|
||||
}
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
"clsx": "^1.2.1",
|
||||
"parse-numeric-range": "^1.3.0",
|
||||
"prism-react-renderer": "^1.3.5",
|
||||
"tslib": "^2.4.0",
|
||||
"tslib": "^2.4.1",
|
||||
"use-sync-external-store": "^1.2.0",
|
||||
"utility-types": "^3.10.0"
|
||||
},
|
||||
|
|
|
@ -41,7 +41,7 @@ const ColorModes = {
|
|||
dark: 'dark',
|
||||
} as const;
|
||||
|
||||
export type ColorMode = typeof ColorModes[keyof typeof ColorModes];
|
||||
export type ColorMode = (typeof ColorModes)[keyof typeof ColorModes];
|
||||
|
||||
// Ensure to always return a valid colorMode even if input is invalid
|
||||
const coerceToColorMode = (colorMode?: string | null): ColorMode =>
|
||||
|
|
|
@ -512,7 +512,6 @@ describe('useSidebarBreadcrumbs', () => {
|
|||
<StaticRouter location={location}>
|
||||
<Context.Provider
|
||||
value={
|
||||
// eslint-disable-next-line react/jsx-no-constructed-context-values
|
||||
{
|
||||
globalData: {
|
||||
'docusaurus-plugin-content-docs': {
|
||||
|
|
|
@ -11,7 +11,7 @@ import {useSyncExternalStore} from 'use-sync-external-store/shim';
|
|||
|
||||
const StorageTypes = ['localStorage', 'sessionStorage', 'none'] as const;
|
||||
|
||||
export type StorageType = typeof StorageTypes[number];
|
||||
export type StorageType = (typeof StorageTypes)[number];
|
||||
|
||||
const DefaultStorageType: StorageType = 'localStorage';
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
"clsx": "^1.2.1",
|
||||
"fs-extra": "^10.1.0",
|
||||
"react-live": "2.2.3",
|
||||
"tslib": "^2.4.0"
|
||||
"tslib": "^2.4.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@docusaurus/types": "^3.0.0-alpha.0",
|
||||
|
|
|
@ -39,8 +39,8 @@
|
|||
"@docusaurus/types": "^3.0.0-alpha.0",
|
||||
"@docusaurus/utils-validation": "^3.0.0-alpha.0",
|
||||
"@mdx-js/react": "^1.6.22",
|
||||
"mermaid": "^9.2.2",
|
||||
"tslib": "^2.4.0"
|
||||
"mermaid": "^9.3.0",
|
||||
"tslib": "^2.4.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/mdx-js__react": "^1.5.5",
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
"copy:watch": "node ../../admin/scripts/copyUntypedFiles.js --watch"
|
||||
},
|
||||
"dependencies": {
|
||||
"@docsearch/react": "^3.2.1",
|
||||
"@docsearch/react": "^3.3.2",
|
||||
"@docusaurus/core": "^3.0.0-alpha.0",
|
||||
"@docusaurus/logger": "^3.0.0-alpha.0",
|
||||
"@docusaurus/plugin-content-docs": "^3.0.0-alpha.0",
|
||||
|
@ -41,13 +41,13 @@
|
|||
"@docusaurus/theme-translations": "^3.0.0-alpha.0",
|
||||
"@docusaurus/utils": "^3.0.0-alpha.0",
|
||||
"@docusaurus/utils-validation": "^3.0.0-alpha.0",
|
||||
"algoliasearch": "^4.14.2",
|
||||
"algoliasearch-helper": "^3.11.0",
|
||||
"algoliasearch": "^4.14.3",
|
||||
"algoliasearch-helper": "^3.11.2",
|
||||
"clsx": "^1.2.1",
|
||||
"eta": "^1.12.3",
|
||||
"fs-extra": "^10.1.0",
|
||||
"lodash": "^4.17.21",
|
||||
"tslib": "^2.4.0",
|
||||
"tslib": "^2.4.1",
|
||||
"utility-types": "^3.10.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"fs-extra": "^10.1.0",
|
||||
"tslib": "^2.4.0"
|
||||
"tslib": "^2.4.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@docusaurus/core": "^3.0.0-alpha.0",
|
||||
|
|
|
@ -16,10 +16,10 @@
|
|||
"@types/history": "^4.7.11",
|
||||
"@types/react": "*",
|
||||
"commander": "^5.1.0",
|
||||
"joi": "^17.6.0",
|
||||
"joi": "^17.7.0",
|
||||
"react-helmet-async": "^1.3.0",
|
||||
"utility-types": "^3.10.0",
|
||||
"webpack": "^5.74.0",
|
||||
"webpack": "^5.75.0",
|
||||
"webpack-merge": "^5.8.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
},
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"tslib": "^2.4.0"
|
||||
"tslib": "^2.4.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@docusaurus/types": "*"
|
||||
|
|
|
@ -20,9 +20,9 @@
|
|||
"dependencies": {
|
||||
"@docusaurus/logger": "^3.0.0-alpha.0",
|
||||
"@docusaurus/utils": "^3.0.0-alpha.0",
|
||||
"joi": "^17.6.0",
|
||||
"joi": "^17.7.0",
|
||||
"js-yaml": "^4.1.0",
|
||||
"tslib": "^2.4.0"
|
||||
"tslib": "^2.4.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=16.14"
|
||||
|
|
|
@ -19,11 +19,11 @@
|
|||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@docusaurus/logger": "^3.0.0-alpha.0",
|
||||
"@svgr/webpack": "^6.3.1",
|
||||
"@svgr/webpack": "^6.5.1",
|
||||
"escape-string-regexp": "^4.0.0",
|
||||
"file-loader": "^6.2.0",
|
||||
"fs-extra": "^10.1.0",
|
||||
"github-slugger": "^1.4.0",
|
||||
"github-slugger": "^1.5.0",
|
||||
"globby": "^11.1.0",
|
||||
"gray-matter": "^4.0.3",
|
||||
"js-yaml": "^4.1.0",
|
||||
|
@ -31,9 +31,9 @@
|
|||
"micromatch": "^4.0.5",
|
||||
"resolve-pathname": "^3.0.0",
|
||||
"shelljs": "^0.8.5",
|
||||
"tslib": "^2.4.0",
|
||||
"tslib": "^2.4.1",
|
||||
"url-loader": "^4.1.1",
|
||||
"webpack": "^5.74.0"
|
||||
"webpack": "^5.75.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=16.14"
|
||||
|
@ -43,7 +43,7 @@
|
|||
"@types/dedent": "^0.7.0",
|
||||
"@types/github-slugger": "^1.3.0",
|
||||
"@types/micromatch": "^4.0.2",
|
||||
"@types/react-dom": "^18.0.6",
|
||||
"@types/react-dom": "^18.0.10",
|
||||
"dedent": "^0.7.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
|
|
@ -98,7 +98,7 @@ export function createExcerpt(fileString: string): string | undefined {
|
|||
// Remove Title headers
|
||||
.replace(/^#[^#]+#?/gm, '')
|
||||
// Remove Markdown + ATX-style headers
|
||||
.replace(/^#{1,6}\s*(?<text>[^#]*)\s*#{0,6}/gm, '$1')
|
||||
.replace(/^#{1,6}\s*(?<text>[^#]*?)\s*#{0,6}/gm, '$1')
|
||||
// Remove emphasis.
|
||||
.replace(/(?<opening>[*_]{1,3})(?<text>.*?)\1/g, '$2')
|
||||
// Remove strikethroughs.
|
||||
|
|
|
@ -33,16 +33,16 @@
|
|||
"url": "https://github.com/facebook/docusaurus/issues"
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.19.0",
|
||||
"@babel/generator": "^7.19.0",
|
||||
"@babel/core": "^7.20.12",
|
||||
"@babel/generator": "^7.20.7",
|
||||
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
||||
"@babel/plugin-transform-runtime": "^7.18.10",
|
||||
"@babel/preset-env": "^7.19.0",
|
||||
"@babel/plugin-transform-runtime": "^7.19.6",
|
||||
"@babel/preset-env": "^7.20.2",
|
||||
"@babel/preset-react": "^7.18.6",
|
||||
"@babel/preset-typescript": "^7.18.6",
|
||||
"@babel/runtime": "^7.19.0",
|
||||
"@babel/runtime-corejs3": "^7.19.0",
|
||||
"@babel/traverse": "^7.19.0",
|
||||
"@babel/runtime": "^7.20.7",
|
||||
"@babel/runtime-corejs3": "^7.20.7",
|
||||
"@babel/traverse": "^7.20.12",
|
||||
"@docusaurus/cssnano-preset": "^3.0.0-alpha.0",
|
||||
"@docusaurus/logger": "^3.0.0-alpha.0",
|
||||
"@docusaurus/mdx-loader": "^3.0.0-alpha.0",
|
||||
|
@ -51,24 +51,24 @@
|
|||
"@docusaurus/utils-common": "^3.0.0-alpha.0",
|
||||
"@docusaurus/utils-validation": "^3.0.0-alpha.0",
|
||||
"@slorber/static-site-generator-webpack-plugin": "^4.0.7",
|
||||
"@svgr/webpack": "^6.3.1",
|
||||
"autoprefixer": "^10.4.8",
|
||||
"babel-loader": "^8.2.5",
|
||||
"@svgr/webpack": "^6.5.1",
|
||||
"autoprefixer": "^10.4.13",
|
||||
"babel-loader": "^8.3.0",
|
||||
"babel-plugin-dynamic-import-node": "^2.3.3",
|
||||
"boxen": "^6.2.1",
|
||||
"chalk": "^4.1.2",
|
||||
"chokidar": "^3.5.3",
|
||||
"clean-css": "^5.3.1",
|
||||
"cli-table3": "^0.6.2",
|
||||
"cli-table3": "^0.6.3",
|
||||
"combine-promises": "^1.1.0",
|
||||
"commander": "^5.1.0",
|
||||
"copy-webpack-plugin": "^11.0.0",
|
||||
"core-js": "^3.25.1",
|
||||
"css-loader": "^6.7.1",
|
||||
"css-minimizer-webpack-plugin": "^4.0.0",
|
||||
"cssnano": "^5.1.13",
|
||||
"core-js": "^3.27.1",
|
||||
"css-loader": "^6.7.3",
|
||||
"css-minimizer-webpack-plugin": "^4.2.2",
|
||||
"cssnano": "^5.1.14",
|
||||
"del": "^6.1.1",
|
||||
"detect-port": "^1.3.0",
|
||||
"detect-port": "^1.5.1",
|
||||
"escape-html": "^1.0.3",
|
||||
"eta": "^1.12.3",
|
||||
"file-loader": "^6.2.0",
|
||||
|
@ -79,29 +79,29 @@
|
|||
"import-fresh": "^3.3.0",
|
||||
"leven": "^3.1.0",
|
||||
"lodash": "^4.17.21",
|
||||
"mini-css-extract-plugin": "^2.6.1",
|
||||
"postcss": "^8.4.16",
|
||||
"postcss-loader": "^7.0.1",
|
||||
"mini-css-extract-plugin": "^2.7.2",
|
||||
"postcss": "^8.4.21",
|
||||
"postcss-loader": "^7.0.2",
|
||||
"prompts": "^2.4.2",
|
||||
"react-dev-utils": "^12.0.1",
|
||||
"react-helmet-async": "^1.3.0",
|
||||
"react-loadable": "npm:@docusaurus/react-loadable@5.5.2",
|
||||
"react-loadable-ssr-addon-v5-slorber": "^1.0.1",
|
||||
"react-router": "^5.3.3",
|
||||
"react-router": "^5.3.4",
|
||||
"react-router-config": "^5.1.1",
|
||||
"react-router-dom": "^5.3.3",
|
||||
"react-router-dom": "^5.3.4",
|
||||
"rtl-detect": "^1.0.4",
|
||||
"semver": "^7.3.7",
|
||||
"serve-handler": "^6.1.3",
|
||||
"semver": "^7.3.8",
|
||||
"serve-handler": "^6.1.5",
|
||||
"shelljs": "^0.8.5",
|
||||
"terser-webpack-plugin": "^5.3.6",
|
||||
"tslib": "^2.4.0",
|
||||
"tslib": "^2.4.1",
|
||||
"update-notifier": "^5.1.0",
|
||||
"url-loader": "^4.1.1",
|
||||
"wait-on": "^6.0.1",
|
||||
"webpack": "^5.74.0",
|
||||
"webpack-bundle-analyzer": "^4.6.1",
|
||||
"webpack-dev-server": "^4.11.0",
|
||||
"webpack": "^5.75.0",
|
||||
"webpack-bundle-analyzer": "^4.7.0",
|
||||
"webpack-dev-server": "^4.11.1",
|
||||
"webpack-merge": "^5.8.0",
|
||||
"webpackbar": "^5.0.2"
|
||||
},
|
||||
|
@ -109,13 +109,13 @@
|
|||
"@docusaurus/module-type-aliases": "^3.0.0-alpha.0",
|
||||
"@docusaurus/types": "^3.0.0-alpha.0",
|
||||
"@types/detect-port": "^1.3.2",
|
||||
"@types/react-dom": "^18.0.6",
|
||||
"@types/react-dom": "^18.0.10",
|
||||
"@types/react-router-config": "^5.0.6",
|
||||
"@types/rtl-detect": "^1.0.0",
|
||||
"@types/serve-handler": "^6.1.1",
|
||||
"@types/update-notifier": "^5.1.0",
|
||||
"@types/wait-on": "^5.3.1",
|
||||
"@types/webpack-bundle-analyzer": "^4.4.2",
|
||||
"@types/webpack-bundle-analyzer": "^4.6.0",
|
||||
"react-test-renderer": "^17.0.2",
|
||||
"tmp-promise": "^3.0.3",
|
||||
"tree-node-cli": "^1.6.0"
|
||||
|
|
|
@ -20,7 +20,6 @@ describe('useGlobalData', () => {
|
|||
renderHook(() => useGlobalData(), {
|
||||
wrapper: ({children}) => (
|
||||
<Context.Provider
|
||||
// eslint-disable-next-line react/jsx-no-constructed-context-values
|
||||
value={{globalData: {foo: 'bar'}} as unknown as DocusaurusContext}>
|
||||
{children}
|
||||
</Context.Provider>
|
||||
|
@ -37,7 +36,6 @@ describe('useAllPluginInstancesData', () => {
|
|||
wrapper: ({children}) => (
|
||||
<Context.Provider
|
||||
value={
|
||||
// eslint-disable-next-line react/jsx-no-constructed-context-values
|
||||
{
|
||||
globalData: {foo: {default: 'default', bar: 'bar'}},
|
||||
} as unknown as DocusaurusContext
|
||||
|
@ -56,7 +54,6 @@ describe('useAllPluginInstancesData', () => {
|
|||
wrapper: ({children}) => (
|
||||
<Context.Provider
|
||||
value={
|
||||
// eslint-disable-next-line react/jsx-no-constructed-context-values
|
||||
{
|
||||
globalData: {foo: {default: 'default', bar: 'bar'}},
|
||||
} as unknown as DocusaurusContext
|
||||
|
@ -78,7 +75,6 @@ describe('usePluginData', () => {
|
|||
wrapper: ({children}) => (
|
||||
<Context.Provider
|
||||
value={
|
||||
// eslint-disable-next-line react/jsx-no-constructed-context-values
|
||||
{
|
||||
globalData: {foo: {default: 'default', bar: 'bar'}},
|
||||
} as unknown as DocusaurusContext
|
||||
|
@ -96,7 +92,6 @@ describe('usePluginData', () => {
|
|||
wrapper: ({children}) => (
|
||||
<Context.Provider
|
||||
value={
|
||||
// eslint-disable-next-line react/jsx-no-constructed-context-values
|
||||
{
|
||||
globalData: {foo: {default: 'default', bar: 'bar'}},
|
||||
} as unknown as DocusaurusContext
|
||||
|
@ -115,7 +110,6 @@ describe('usePluginData', () => {
|
|||
wrapper: ({children}) => (
|
||||
<Context.Provider
|
||||
value={
|
||||
// eslint-disable-next-line react/jsx-no-constructed-context-values
|
||||
{
|
||||
globalData: {foo: {default: 'default', bar: 'bar'}},
|
||||
} as unknown as DocusaurusContext
|
||||
|
|
|
@ -15,7 +15,8 @@ function mergeContexts({
|
|||
value,
|
||||
}: {
|
||||
parent: PluginRouteContext | null;
|
||||
value: RouteContext | null;
|
||||
// Only topmost route has the `plugin` attribute
|
||||
value: PluginRouteContext | RouteContext | null;
|
||||
}): PluginRouteContext {
|
||||
if (!parent) {
|
||||
if (!value) {
|
||||
|
|
|
@ -366,7 +366,6 @@ export function getMinimizer(
|
|||
},
|
||||
compress: {
|
||||
ecma: 5,
|
||||
warnings: false,
|
||||
},
|
||||
mangle: {
|
||||
safari10: true,
|
||||
|
|
|
@ -21,11 +21,11 @@
|
|||
"build": "tsc"
|
||||
},
|
||||
"dependencies": {
|
||||
"@typescript-eslint/utils": "^5.36.2",
|
||||
"tslib": "^2.4.0"
|
||||
"@typescript-eslint/utils": "^5.48.1",
|
||||
"tslib": "^2.4.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint-plugin-eslint-plugin": "^5.0.6"
|
||||
"eslint-plugin-eslint-plugin": "^5.0.7"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"eslint": ">=6"
|
||||
|
|
|
@ -20,8 +20,8 @@
|
|||
"@docusaurus/logger": "^3.0.0-alpha.0",
|
||||
"file-loader": "^6.2.0",
|
||||
"lodash": "^4.17.21",
|
||||
"sharp": "^0.31.0",
|
||||
"tslib": "^2.4.0"
|
||||
"sharp": "^0.31.3",
|
||||
"tslib": "^2.4.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=16.14"
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
"directory": "packages/stylelint-copyright"
|
||||
},
|
||||
"dependencies": {
|
||||
"stylelint": "^14.11.0",
|
||||
"tslib": "^2.4.0"
|
||||
"stylelint": "^14.16.1",
|
||||
"tslib": "^2.4.1"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -34,8 +34,8 @@
|
|||
"typecheck": "tsc"
|
||||
},
|
||||
"dependencies": {
|
||||
"@crowdin/cli": "^3.7.10",
|
||||
"@crowdin/crowdin-api-client": "^1.19.1",
|
||||
"@crowdin/cli": "^3.9.1",
|
||||
"@crowdin/crowdin-api-client": "^1.20.1",
|
||||
"@docusaurus/core": "^3.0.0-alpha.0",
|
||||
"@docusaurus/logger": "^3.0.0-alpha.0",
|
||||
"@docusaurus/plugin-client-redirects": "^3.0.0-alpha.0",
|
||||
|
@ -55,18 +55,18 @@
|
|||
"color": "^4.2.3",
|
||||
"fs-extra": "^10.1.0",
|
||||
"netlify-plugin-cache": "^1.0.3",
|
||||
"pure-react-carousel": "^1.29.0",
|
||||
"pure-react-carousel": "^1.30.1",
|
||||
"raw-loader": "^4.0.2",
|
||||
"react": "^17.0.2",
|
||||
"react-dom": "^17.0.2",
|
||||
"react-lite-youtube-embed": "^2.3.1",
|
||||
"react-medium-image-zoom": "^5.0.2",
|
||||
"react-lite-youtube-embed": "^2.3.52",
|
||||
"react-medium-image-zoom": "^5.1.2",
|
||||
"react-popper": "^2.3.0",
|
||||
"rehype-katex": "^6.0.2",
|
||||
"remark-math": "^3.0.1",
|
||||
"swc-loader": "^0.2.3",
|
||||
"unist-util-visit": "^2.0.3",
|
||||
"webpack": "^5.74.0",
|
||||
"webpack": "^5.75.0",
|
||||
"workbox-routing": "^6.5.4",
|
||||
"workbox-strategies": "^6.5.4"
|
||||
},
|
||||
|
@ -85,7 +85,7 @@
|
|||
"devDependencies": {
|
||||
"@docusaurus/eslint-plugin": "^3.0.0-alpha.0",
|
||||
"@tsconfig/docusaurus": "^1.0.5",
|
||||
"@types/jest": "^29.0.0",
|
||||
"@types/jest": "^29.2.5",
|
||||
"cross-env": "^7.0.3",
|
||||
"rimraf": "^3.0.2"
|
||||
}
|
||||
|
|
|
@ -31,6 +31,7 @@ const EXPECTED_CSS_MARKERS = [
|
|||
// See https://github.com/facebook/docusaurus/pull/6222
|
||||
'.markdown>h2',
|
||||
'.button--outline.button--active',
|
||||
'.DocSearch-Hit-content-wrapper',
|
||||
'--ifm-color-scheme:light',
|
||||
'.col[class*=col--]',
|
||||
'.padding-vert--xl',
|
||||
|
@ -48,7 +49,6 @@ const EXPECTED_CSS_MARKERS = [
|
|||
|
||||
// Lazy-loaded lib
|
||||
'.DocSearch-Modal',
|
||||
'.DocSearch-Hit-content-wrapper',
|
||||
];
|
||||
|
||||
const cssDirName = fileURLToPath(new URL('build/assets/css', import.meta.url));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue