diff --git a/package.json b/package.json index 5f5385c56d46..81a483c84998 100644 --- a/package.json +++ b/package.json @@ -73,6 +73,7 @@ }, "devDependencies": { "@crowdin/cli": "^3.13.0", + "@mdx-js/react": "^3.0.0", "@prettier/plugin-xml": "^2.2.0", "@swc/core": "^1.7.14", "@swc/jest": "^0.2.36", diff --git a/packages/create-docusaurus/package.json b/packages/create-docusaurus/package.json index eee9045e94ee..0c974744f081 100755 --- a/packages/create-docusaurus/package.json +++ b/packages/create-docusaurus/package.json @@ -36,6 +36,10 @@ "devDependencies": { "@types/supports-color": "^8.1.1" }, + "peerDependencies": { + "react": "^18.0.0", + "react-dom": "^18.0.0" + }, "engines": { "node": ">=18.0" } diff --git a/packages/docusaurus-babel/package.json b/packages/docusaurus-babel/package.json index e49e92f5316c..14149ccf9103 100644 --- a/packages/docusaurus-babel/package.json +++ b/packages/docusaurus-babel/package.json @@ -44,6 +44,10 @@ "fs-extra": "^11.1.1", "tslib": "^2.6.0" }, + "peerDependencies": { + "react": "^18.0.0", + "react-dom": "^18.0.0" + }, "engines": { "node": ">=18.0" } diff --git a/packages/docusaurus-bundler/package.json b/packages/docusaurus-bundler/package.json index 31bed856f48f..1a1c503f95ea 100644 --- a/packages/docusaurus-bundler/package.json +++ b/packages/docusaurus-bundler/package.json @@ -45,7 +45,9 @@ "webpackbar": "^6.0.1" }, "peerDependencies": { - "@docusaurus/faster": "*" + "@docusaurus/faster": "*", + "react": "^18.0.0", + "react-dom": "^18.0.0" }, "peerDependenciesMeta": { "@docusaurus/faster": { diff --git a/packages/docusaurus-faster/package.json b/packages/docusaurus-faster/package.json index c9953191e44c..e0d51f9a674d 100644 --- a/packages/docusaurus-faster/package.json +++ b/packages/docusaurus-faster/package.json @@ -28,6 +28,10 @@ "tslib": "^2.6.0", "webpack": "^5.95.0" }, + "peerDependencies": { + "react": "^18.0.0", + "react-dom": "^18.0.0" + }, "engines": { "node": ">=18.0" } diff --git a/packages/docusaurus-plugin-client-redirects/package.json b/packages/docusaurus-plugin-client-redirects/package.json index 3f1498678ee3..6223fcb123b7 100644 --- a/packages/docusaurus-plugin-client-redirects/package.json +++ b/packages/docusaurus-plugin-client-redirects/package.json @@ -32,6 +32,7 @@ "@docusaurus/types": "3.6.1" }, "peerDependencies": { + "@mdx-js/react": "^3.0.0", "react": "^18.0.0", "react-dom": "^18.0.0" }, diff --git a/packages/docusaurus-plugin-content-blog/package.json b/packages/docusaurus-plugin-content-blog/package.json index 7eabc32c562f..b0c9bd0d01d9 100644 --- a/packages/docusaurus-plugin-content-blog/package.json +++ b/packages/docusaurus-plugin-content-blog/package.json @@ -52,6 +52,7 @@ }, "peerDependencies": { "@docusaurus/plugin-content-docs": "*", + "@mdx-js/react": "^3.0.0", "react": "^18.0.0", "react-dom": "^18.0.0" }, diff --git a/packages/docusaurus-plugin-content-docs/package.json b/packages/docusaurus-plugin-content-docs/package.json index 1dff6502f69b..0d902950273e 100644 --- a/packages/docusaurus-plugin-content-docs/package.json +++ b/packages/docusaurus-plugin-content-docs/package.json @@ -61,6 +61,7 @@ "shelljs": "^0.8.5" }, "peerDependencies": { + "@mdx-js/react": "^3.0.0", "react": "^18.0.0", "react-dom": "^18.0.0" }, diff --git a/packages/docusaurus-plugin-content-pages/package.json b/packages/docusaurus-plugin-content-pages/package.json index 804b97362e30..df9c527478ab 100644 --- a/packages/docusaurus-plugin-content-pages/package.json +++ b/packages/docusaurus-plugin-content-pages/package.json @@ -28,6 +28,7 @@ "webpack": "^5.88.1" }, "peerDependencies": { + "@mdx-js/react": "^3.0.0", "react": "^18.0.0", "react-dom": "^18.0.0" }, diff --git a/packages/docusaurus-plugin-debug/package.json b/packages/docusaurus-plugin-debug/package.json index f26ed0c1ac86..4801acd033aa 100644 --- a/packages/docusaurus-plugin-debug/package.json +++ b/packages/docusaurus-plugin-debug/package.json @@ -28,6 +28,7 @@ "tslib": "^2.6.0" }, "peerDependencies": { + "@mdx-js/react": "^3.0.0", "react": "^18.0.0", "react-dom": "^18.0.0" }, diff --git a/packages/docusaurus-plugin-google-analytics/package.json b/packages/docusaurus-plugin-google-analytics/package.json index e3b80fc57a5f..fbe0b76dbc9e 100644 --- a/packages/docusaurus-plugin-google-analytics/package.json +++ b/packages/docusaurus-plugin-google-analytics/package.json @@ -24,6 +24,7 @@ "tslib": "^2.6.0" }, "peerDependencies": { + "@mdx-js/react": "^3.0.0", "react": "^18.0.0", "react-dom": "^18.0.0" }, diff --git a/packages/docusaurus-plugin-google-gtag/package.json b/packages/docusaurus-plugin-google-gtag/package.json index 2647a4d9d565..6a3b9b574c81 100644 --- a/packages/docusaurus-plugin-google-gtag/package.json +++ b/packages/docusaurus-plugin-google-gtag/package.json @@ -25,6 +25,7 @@ "tslib": "^2.6.0" }, "peerDependencies": { + "@mdx-js/react": "^3.0.0", "react": "^18.0.0", "react-dom": "^18.0.0" }, diff --git a/packages/docusaurus-plugin-google-tag-manager/package.json b/packages/docusaurus-plugin-google-tag-manager/package.json index debb8b4c7cf7..4e0e3cf65be1 100644 --- a/packages/docusaurus-plugin-google-tag-manager/package.json +++ b/packages/docusaurus-plugin-google-tag-manager/package.json @@ -24,6 +24,7 @@ "tslib": "^2.6.0" }, "peerDependencies": { + "@mdx-js/react": "^3.0.0", "react": "^18.0.0", "react-dom": "^18.0.0" }, diff --git a/packages/docusaurus-plugin-ideal-image/package.json b/packages/docusaurus-plugin-ideal-image/package.json index 5569a4cb92a1..c6bb3955d080 100644 --- a/packages/docusaurus-plugin-ideal-image/package.json +++ b/packages/docusaurus-plugin-ideal-image/package.json @@ -37,6 +37,7 @@ "fs-extra": "^11.1.0" }, "peerDependencies": { + "@mdx-js/react": "^3.0.0", "jimp": "*", "react": "^18.0.0", "react-dom": "^18.0.0" diff --git a/packages/docusaurus-plugin-pwa/package.json b/packages/docusaurus-plugin-pwa/package.json index c7c789851fb3..ba8aabb16b6c 100644 --- a/packages/docusaurus-plugin-pwa/package.json +++ b/packages/docusaurus-plugin-pwa/package.json @@ -45,6 +45,8 @@ "fs-extra": "^11.1.0" }, "peerDependencies": { + "@docusaurus/plugin-content-docs": "*", + "@mdx-js/react": "^3.0.0", "react": "^18.0.0", "react-dom": "^18.0.0" }, diff --git a/packages/docusaurus-plugin-rsdoctor/package.json b/packages/docusaurus-plugin-rsdoctor/package.json index ff4744741615..eacd96b2794d 100644 --- a/packages/docusaurus-plugin-rsdoctor/package.json +++ b/packages/docusaurus-plugin-rsdoctor/package.json @@ -26,6 +26,7 @@ "tslib": "^2.6.0" }, "peerDependencies": { + "@mdx-js/react": "^3.0.0", "react": "^18.0.0", "react-dom": "^18.0.0" }, diff --git a/packages/docusaurus-plugin-sitemap/package.json b/packages/docusaurus-plugin-sitemap/package.json index 72eb0a8087a3..de04fb208caf 100644 --- a/packages/docusaurus-plugin-sitemap/package.json +++ b/packages/docusaurus-plugin-sitemap/package.json @@ -32,6 +32,7 @@ "@total-typescript/shoehorn": "^0.1.2" }, "peerDependencies": { + "@mdx-js/react": "^3.0.0", "react": "^18.0.0", "react-dom": "^18.0.0" }, diff --git a/packages/docusaurus-plugin-vercel-analytics/package.json b/packages/docusaurus-plugin-vercel-analytics/package.json index f3dea557e9aa..dcf0fd20f30d 100644 --- a/packages/docusaurus-plugin-vercel-analytics/package.json +++ b/packages/docusaurus-plugin-vercel-analytics/package.json @@ -27,6 +27,7 @@ "tslib": "^2.6.0" }, "peerDependencies": { + "@mdx-js/react": "^3.0.0", "react": "^18.0.0", "react-dom": "^18.0.0" }, diff --git a/packages/docusaurus-preset-classic/package.json b/packages/docusaurus-preset-classic/package.json index 3b627aefed34..12ada8867a7f 100644 --- a/packages/docusaurus-preset-classic/package.json +++ b/packages/docusaurus-preset-classic/package.json @@ -33,6 +33,7 @@ "@docusaurus/types": "3.6.1" }, "peerDependencies": { + "@mdx-js/react": "^3.0.0", "react": "^18.0.0", "react-dom": "^18.0.0" }, diff --git a/packages/docusaurus-theme-common/package.json b/packages/docusaurus-theme-common/package.json index d34872504c83..d5817052838c 100644 --- a/packages/docusaurus-theme-common/package.json +++ b/packages/docusaurus-theme-common/package.json @@ -52,6 +52,7 @@ }, "peerDependencies": { "@docusaurus/plugin-content-docs": "*", + "@mdx-js/react": "^3.0.0", "react": "^18.0.0", "react-dom": "^18.0.0" }, diff --git a/packages/docusaurus-theme-live-codeblock/package.json b/packages/docusaurus-theme-live-codeblock/package.json index ed8fa3cbaab4..a5ad058d0c47 100644 --- a/packages/docusaurus-theme-live-codeblock/package.json +++ b/packages/docusaurus-theme-live-codeblock/package.json @@ -38,6 +38,8 @@ "@types/buble": "^0.20.1" }, "peerDependencies": { + "@docusaurus/plugin-content-docs": "*", + "@mdx-js/react": "^3.0.0", "react": "^18.0.0", "react-dom": "^18.0.0" }, diff --git a/packages/docusaurus-theme-mermaid/package.json b/packages/docusaurus-theme-mermaid/package.json index bd5baf37f661..701487682c63 100644 --- a/packages/docusaurus-theme-mermaid/package.json +++ b/packages/docusaurus-theme-mermaid/package.json @@ -45,6 +45,8 @@ "react-test-renderer": "^18.0.0" }, "peerDependencies": { + "@docusaurus/plugin-content-docs": "*", + "@mdx-js/react": "^3.0.0", "react": "^18.0.0", "react-dom": "^18.0.0" }, diff --git a/packages/docusaurus-theme-search-algolia/package.json b/packages/docusaurus-theme-search-algolia/package.json index 9c74232def14..2cb08c9087c9 100644 --- a/packages/docusaurus-theme-search-algolia/package.json +++ b/packages/docusaurus-theme-search-algolia/package.json @@ -54,6 +54,7 @@ "@docusaurus/module-type-aliases": "3.6.1" }, "peerDependencies": { + "@mdx-js/react": "^3.0.0", "react": "^18.0.0", "react-dom": "^18.0.0" }, diff --git a/packages/docusaurus-theme-translations/package.json b/packages/docusaurus-theme-translations/package.json index ce3a56adef9f..8eb6f4d6c87c 100644 --- a/packages/docusaurus-theme-translations/package.json +++ b/packages/docusaurus-theme-translations/package.json @@ -29,6 +29,11 @@ "@docusaurus/utils": "3.6.1", "lodash": "^4.17.21" }, + "peerDependencies": { + "@mdx-js/react": "^3.0.0", + "react": "^18.0.0", + "react-dom": "^18.0.0" + }, "engines": { "node": ">=18.0" } diff --git a/packages/docusaurus-utils-common/package.json b/packages/docusaurus-utils-common/package.json index 97195bec0aba..87dc52714ffe 100644 --- a/packages/docusaurus-utils-common/package.json +++ b/packages/docusaurus-utils-common/package.json @@ -22,6 +22,10 @@ "@docusaurus/types": "3.6.1", "tslib": "^2.6.0" }, + "peerDependencies": { + "react": "^18.0.0", + "react-dom": "^18.0.0" + }, "engines": { "node": ">=18.0" } diff --git a/packages/docusaurus-utils-validation/package.json b/packages/docusaurus-utils-validation/package.json index 75c7b5dea58c..5adddc4119cf 100644 --- a/packages/docusaurus-utils-validation/package.json +++ b/packages/docusaurus-utils-validation/package.json @@ -30,6 +30,10 @@ "devDependencies": { "tmp-promise": "^3.0.3" }, + "peerDependencies": { + "react": "^18.0.0", + "react-dom": "^18.0.0" + }, "engines": { "node": ">=18.0" } diff --git a/packages/docusaurus-utils/package.json b/packages/docusaurus-utils/package.json index 4e2b66ba87a9..e8e844b31f1e 100644 --- a/packages/docusaurus-utils/package.json +++ b/packages/docusaurus-utils/package.json @@ -50,5 +50,9 @@ "@types/react-dom": "^18.2.7", "dedent": "^0.7.0", "tmp-promise": "^3.0.3" + }, + "peerDependencies": { + "react": "^18.0.0", + "react-dom": "^18.0.0" } } diff --git a/website/package.json b/website/package.json index 28a3f9e9239a..89022a55f204 100644 --- a/website/package.json +++ b/website/package.json @@ -41,6 +41,7 @@ "@docusaurus/core": "3.6.1", "@docusaurus/logger": "3.6.1", "@docusaurus/plugin-client-redirects": "3.6.1", + "@docusaurus/plugin-content-docs": "3.6.1", "@docusaurus/plugin-ideal-image": "3.6.1", "@docusaurus/plugin-pwa": "3.6.1", "@docusaurus/plugin-rsdoctor": "3.6.1", @@ -52,6 +53,7 @@ "@docusaurus/theme-mermaid": "3.6.1", "@docusaurus/utils": "3.6.1", "@docusaurus/utils-common": "3.6.1", + "@mdx-js/react": "^3.1.0", "clsx": "^2.0.0", "color": "^4.2.3", "fs-extra": "^11.1.1", diff --git a/yarn.lock b/yarn.lock index ab8dfd5aedbc..77c0c3be9e7d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2195,7 +2195,7 @@ resolved "https://registry.yarnpkg.com/@mdx-js/react/-/react-1.0.1.tgz#565acea8375b02a2039a5afefdeb3758ccc13988" integrity sha512-8jFmVrU6uAg94zh6sYCNtZnh9YovEvXmwaD9O8HxzQWNcEyn3ZZXG7r5ZcOpvtaQLnM+4+nwN4T42sfs2D+DvA== -"@mdx-js/react@^3.0.0": +"@mdx-js/react@^3.0.0", "@mdx-js/react@^3.1.0": version "3.1.0" resolved "https://registry.yarnpkg.com/@mdx-js/react/-/react-3.1.0.tgz#c4522e335b3897b9a845db1dbdd2f966ae8fb0ed" integrity sha512-QjHtSaoameoalGnKDT3FoIl4+9RwyTmo9ZJGBdLOks/YOiWHoRDI3PUwEzOE7kEmGcV3AFcp9K6dYu9rEuKLAQ==