From 58749c79ce22659b027aecca621cc8d8a7ddce8f Mon Sep 17 00:00:00 2001 From: Ivan Date: Mon, 10 Oct 2022 17:22:11 +0300 Subject: [PATCH] fix(storybook): fix welcome page --- package.json | 8 +++++++- yarn.lock | 22 ---------------------- 2 files changed, 7 insertions(+), 23 deletions(-) diff --git a/package.json b/package.json index 830e606a6..1a1a6ab98 100644 --- a/package.json +++ b/package.json @@ -67,7 +67,7 @@ "@babel/plugin-transform-react-jsx": "^7.18.10", "@commitlint/cli": "^17.0.3", "@commitlint/config-conventional": "^17.0.3", - "@mdx-js/react": "^2.1.2", + "@mdx-js/react": "^1.6.22", "@storybook/addon-a11y": "^6.5.10", "@storybook/addon-actions": "^6.5.10", "@storybook/addon-docs": "^6.5.10", @@ -159,5 +159,11 @@ "commitizen": { "path": "./node_modules/cz-conventional-changelog" } + }, + "overrides": { + "@mdx-js/react": { + "react": "^18.2.0", + "react-dom": "^18.2.0" + } } } diff --git a/yarn.lock b/yarn.lock index f9270da2a..ff80b02fc 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2357,14 +2357,6 @@ resolved "https://registry.yarnpkg.com/@mdx-js/react/-/react-1.6.22.tgz#ae09b4744fddc74714ee9f9d6f17a66e77c43573" integrity sha512-TDoPum4SHdfPiGSAaRBw7ECyI8VaHpK8GJugbJIJuqyh6kzw9ZLJZW3HGL3NNrJGxcAixUvqROm+YuQOo5eXtg== -"@mdx-js/react@^2.1.2": - version "2.1.2" - resolved "https://registry.yarnpkg.com/@mdx-js/react/-/react-2.1.2.tgz#02972f170cd3ad9113ce448245c5f636bb3e750d" - integrity sha512-52e3DTJBrjsw3U51ZCdZ3N1IBaqnbzLIngCSXpKtiYiGr7PIqp3/P/+kym0MPTwBL/y9ZBmCieD8FyrXuEDrRw== - dependencies: - "@types/mdx" "^2.0.0" - "@types/react" ">=16" - "@mdx-js/util@1.6.22": version "1.6.22" resolved "https://registry.yarnpkg.com/@mdx-js/util/-/util-1.6.22.tgz#219dfd89ae5b97a8801f015323ffa4b62f45718b" @@ -4041,11 +4033,6 @@ dependencies: "@types/unist" "*" -"@types/mdx@^2.0.0": - version "2.0.2" - resolved "https://registry.yarnpkg.com/@types/mdx/-/mdx-2.0.2.tgz#64be19baddba4323ae7893e077e98759316fe279" - integrity sha512-mJGfgj4aWpiKb8C0nnJJchs1sHBHn0HugkVfqqyQi7Wn6mBRksLeQsPOFvih/Pu8L1vlDzfe/LidhVHBeUk3aQ== - "@types/mime@^1": version "1.3.2" resolved "https://registry.yarnpkg.com/@types/mime/-/mime-1.3.2.tgz#93e25bf9ee75fe0fd80b594bc4feb0e862111b5a" @@ -4169,15 +4156,6 @@ "@types/scheduler" "*" csstype "^3.0.2" -"@types/react@>=16": - version "18.0.15" - resolved "https://registry.yarnpkg.com/@types/react/-/react-18.0.15.tgz#d355644c26832dc27f3e6cbf0c4f4603fc4ab7fe" - integrity sha512-iz3BtLuIYH1uWdsv6wXYdhozhqj20oD4/Hk2DNXIn1kFsmp9x8d9QB6FnPhfkbhd2PgEONt9Q1x/ebkwjfFLow== - dependencies: - "@types/prop-types" "*" - "@types/scheduler" "*" - csstype "^3.0.2" - "@types/react@^18.0.17": version "18.0.17" resolved "https://registry.yarnpkg.com/@types/react/-/react-18.0.17.tgz#4583d9c322d67efe4b39a935d223edcc7050ccf4"