From f46b123fc8f757aafedf863fa3c33eada96f6c5d Mon Sep 17 00:00:00 2001 From: Jean-Marc Millet Date: Fri, 20 Oct 2023 15:06:48 +0200 Subject: [PATCH] import toast --- .storybook/main.js | 12 ++++++++++++ package-lock.json | 32 +++++++++++++++++++++++++++++--- package.json | 2 ++ 3 files changed, 43 insertions(+), 3 deletions(-) diff --git a/.storybook/main.js b/.storybook/main.js index 8354733737..bc6c29a5a8 100644 --- a/.storybook/main.js +++ b/.storybook/main.js @@ -8,6 +8,18 @@ module.exports = { '@storybook/addon-mdx-gfm' ], + webpackFinal: async (config, { configType }) => { + // Resolve error when webpack-ing storybook: + // Can't import the named export 'Children' from non EcmaScript module (only + // default export is available) + config.module.rules.push({ + test: /\.mjs$/, + include: /node_modules/, + type: 'javascript/auto', + }); + + return config; + }, framework: { name: '@storybook/react-webpack5', options: {} diff --git a/package-lock.json b/package-lock.json index 80f5039899..6f07e10268 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,8 @@ "license": "SEE LICENSE IN LICENSE", "dependencies": { "@floating-ui/dom": "^0.1.10", - "@storybook/preview-api": "^7.5.1" + "@storybook/preview-api": "^7.5.1", + "framer-motion": "^4.1.17" }, "devDependencies": { "@babel/cli": "^7.17.10", @@ -2607,7 +2608,7 @@ "version": "0.7.4", "resolved": "https://registry.npmjs.org/@emotion/memoize/-/memoize-0.7.4.tgz", "integrity": "sha512-Ja/Vfqe3HpuzRsG1oBtWTHk2PGZ7GR+2Vz5iYGelAw8dx32K0y7PjVuxK6z1nMpZOqAFsRUPCkK1YjJ56qJlgw==", - "devOptional": true + "dev": true }, "node_modules/@emotion/react": { "version": "11.9.0", @@ -23344,6 +23345,22 @@ "integrity": "sha512-Fl7FuabXsJnV5Q1qIOQwx/sagGF18kogb4gpfcG4gjLBWO0WDiiz1ko/ExayuxE7InyQkBLkxRFG5oxY6Uu3Kg==", "dev": true }, + "node_modules/react-error-boundary": { + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/react-error-boundary/-/react-error-boundary-3.1.4.tgz", + "integrity": "sha512-uM9uPzZJTF6wRQORmSrvOIgt4lJ9MC1sNgEOj2XGsDTRE4kmpWxg7ENK9EWNKJRMAOY9z0MuF4yIfl6gp4sotA==", + "dev": true, + "dependencies": { + "@babel/runtime": "^7.12.5" + }, + "engines": { + "node": ">=10", + "npm": ">=6" + }, + "peerDependencies": { + "react": ">=16.13.1" + } + }, "node_modules/react-input-autosize": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/react-input-autosize/-/react-input-autosize-3.0.0.tgz", @@ -30285,7 +30302,7 @@ "version": "0.7.4", "resolved": "https://registry.npmjs.org/@emotion/memoize/-/memoize-0.7.4.tgz", "integrity": "sha512-Ja/Vfqe3HpuzRsG1oBtWTHk2PGZ7GR+2Vz5iYGelAw8dx32K0y7PjVuxK6z1nMpZOqAFsRUPCkK1YjJ56qJlgw==", - "devOptional": true + "dev": true }, "@emotion/react": { "version": "11.9.0", @@ -45506,6 +45523,15 @@ } } }, + "react-error-boundary": { + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/react-error-boundary/-/react-error-boundary-3.1.4.tgz", + "integrity": "sha512-uM9uPzZJTF6wRQORmSrvOIgt4lJ9MC1sNgEOj2XGsDTRE4kmpWxg7ENK9EWNKJRMAOY9z0MuF4yIfl6gp4sotA==", + "dev": true, + "requires": { + "@babel/runtime": "^7.12.5" + } + }, "react-input-autosize": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/react-input-autosize/-/react-input-autosize-3.0.0.tgz", diff --git a/package.json b/package.json index c43fbf1f08..04436d28b1 100644 --- a/package.json +++ b/package.json @@ -146,6 +146,8 @@ }, "dependencies": { "@floating-ui/dom": "^0.1.10", + "framer-motion": "^4.1.17", "@storybook/preview-api": "^7.5.1" + } }