refactor: use storybook v7 (#951)

This commit is contained in:
Himself65
2023-02-13 21:18:43 -06:00
committed by GitHub
parent 2fdbb1909d
commit a47b612a2c
16 changed files with 1895 additions and 5565 deletions

View File

@@ -48,7 +48,7 @@ const nextConfig = {
COMMIT_HASH: getCommitHash(),
EDITOR_VERSION,
},
transpilePackages: ['@affine/component'],
transpilePackages: ['@affine/component', '@affine/i18n'],
webpack: config => {
config.experiments = { ...config.experiments, topLevelAwait: true };
config.resolve.alias['yjs'] = require.resolve('yjs');

View File

@@ -12,10 +12,10 @@
"@affine/component": "workspace:*",
"@affine/datacenter": "workspace:*",
"@affine/i18n": "workspace:*",
"@blocksuite/blocks": "0.4.0-20230210031655-264744e",
"@blocksuite/editor": "0.4.0-20230210031655-264744e",
"@blocksuite/blocks": "0.4.0-20230212194855-047e1b9",
"@blocksuite/editor": "0.4.0-20230212194855-047e1b9",
"@blocksuite/icons": "^2.0.14",
"@blocksuite/store": "0.4.0-20230210031655-264744e",
"@blocksuite/store": "0.4.0-20230212194855-047e1b9",
"@emotion/css": "^11.10.5",
"@emotion/react": "^11.10.5",
"@emotion/server": "^11.10.0",

View File

@@ -19,7 +19,8 @@
"baseUrl": ".",
"paths": {
"@/*": ["src/*"],
"@affine/component": ["../../packages/component/src/index"]
"@affine/component": ["../../packages/component/src/index"],
"@affine/i18n": ["../../packages/i18n/src/index"]
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],