diff --git a/apps/meteor/.storybook/main.js b/apps/meteor/.storybook/main.js index 71d317a497c..223c31d6bb1 100644 --- a/apps/meteor/.storybook/main.js +++ b/apps/meteor/.storybook/main.js @@ -21,6 +21,9 @@ module.exports = { }, }, ], + typescript: { + reactDocgen: 'react-docgen-typescript-plugin', + }, webpackFinal: async (config) => { const cssRule = config.module.rules.find(({ test }) => test.test('index.css')); diff --git a/apps/meteor/package.json b/apps/meteor/package.json index 9976229eaa9..0233865d7a3 100644 --- a/apps/meteor/package.json +++ b/apps/meteor/package.json @@ -192,6 +192,7 @@ "postcss-url": "^10.1.3", "prettier": "~2.8.7", "proxyquire": "^2.1.3", + "react-docgen-typescript-plugin": "^1.0.5", "rewire": "^6.0.0", "sinon": "^14.0.0", "source-map": "^0.7.4", diff --git a/yarn.lock b/yarn.lock index e1df95f14d3..1fd8dbf6870 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7523,6 +7523,7 @@ __metadata: rc-scrollbars: ^1.1.5 react: ~17.0.2 react-aria: ^3.19.0 + react-docgen-typescript-plugin: ^1.0.5 react-dom: ~17.0.2 react-error-boundary: ^3.1.4 react-hook-form: ^7.30.0 @@ -25129,7 +25130,7 @@ __metadata: resolution: "lamejs@https://github.com/zhuker/lamejs.git#commit=582bbba6a12f981b984d8fb9e1874499fed85675" dependencies: use-strict: 1.0.1 - checksum: ed7f6f1c9629b53c17023eb04b4fc5a222e9c34fcb4a2f61214488fc64e5cfea825e4588d959c5fb20f3a91f0120103fa60307dd43df995d498ff5ddb6200cd9 + checksum: fa829e0c170a65573e653b4d908a44aaf06a50e1bbade3b1217a300a03ccd59a537e294e2d924a584f9d70c7726a12d4c3af9c675436d48d08be5fb94b5eb400 languageName: node linkType: hard @@ -31374,7 +31375,25 @@ __metadata: languageName: node linkType: hard -"react-docgen-typescript@npm:^2.1.1": +"react-docgen-typescript-plugin@npm:^1.0.5": + version: 1.0.5 + resolution: "react-docgen-typescript-plugin@npm:1.0.5" + dependencies: + debug: ^4.1.1 + endent: ^2.0.1 + find-cache-dir: ^3.3.1 + flat-cache: ^3.0.4 + micromatch: ^4.0.2 + react-docgen-typescript: ^2.2.2 + tslib: ^2.0.0 + peerDependencies: + typescript: ">= 4.x" + webpack: ">= 4" + checksum: 0f83d33c7b6dc82fef34ee820c94485c374d853774c5c26b04754ba3674fe4db2c7fc210b30fa0ca77c5033633553c12742aab6305a7f16cd263c70fedf27589 + languageName: node + linkType: hard + +"react-docgen-typescript@npm:^2.1.1, react-docgen-typescript@npm:^2.2.2": version: 2.2.2 resolution: "react-docgen-typescript@npm:2.2.2" peerDependencies: