@storybook/react-webpack5 7.0.0-beta.9 → 7.0.0-rc.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/dist/preset.d.ts +23 -19
  2. package/package.json +8 -11
package/dist/preset.d.ts CHANGED
@@ -720,7 +720,7 @@ PackageJson$1.NonStandardEntryPoints &
720
720
  PackageJson$1.TypeScriptConfiguration &
721
721
  PackageJson$1.YarnConfiguration &
722
722
  PackageJson$1.JSPMConfiguration;
723
- declare type Tag = string;
723
+ type Tag = string;
724
724
  interface Parameters {
725
725
  [name: string]: any;
726
726
  }
@@ -876,20 +876,18 @@ interface CLIOptions {
876
876
  quiet?: boolean;
877
877
  versionUpdates?: boolean;
878
878
  releaseNotes?: boolean;
879
- dll?: boolean;
880
879
  docs?: boolean;
881
- docsDll?: boolean;
882
- uiDll?: boolean;
883
880
  debugWebpack?: boolean;
884
881
  webpackStatsJson?: string | boolean;
885
882
  outputDir?: string;
886
883
  }
887
884
  interface BuilderOptions {
888
885
  configType?: 'DEVELOPMENT' | 'PRODUCTION';
889
- ignorePreview: boolean;
890
- cache: FileSystemCache;
886
+ ignorePreview?: boolean;
887
+ cache?: FileSystemCache;
891
888
  configDir: string;
892
- docsMode: boolean;
889
+ docsMode?: boolean;
890
+ env?: (envs: Record<string, string>) => Record<string, string>;
893
891
  features?: StorybookConfig['features'];
894
892
  versionCheck?: VersionCheck;
895
893
  releaseNotesData?: ReleaseNotesData;
@@ -934,19 +932,16 @@ type CoreCommon_StorybookRefs = Record<string, {
934
932
  disable: boolean;
935
933
  }>;
936
934
  type DocsOptions = {
937
- /**
938
- * Should we generate docs entries at all under any circumstances? (i.e. can they be rendered)
939
- */
940
- enabled?: boolean;
941
935
  /**
942
936
  * What should we call the generated docs entries?
943
937
  */
944
938
  defaultName?: string;
945
939
  /**
946
- * Should we generate a docs entry per CSF file with the `docsPage` tag?
947
- * Set to 'automatic' to generate an entry irrespective of tag.
940
+ * Should we generate a docs entry per CSF file?
941
+ * Set to 'tag' (the default) to generate an entry for every CSF file with the
942
+ * 'autodocs' tag.
948
943
  */
949
- docsPage?: boolean | 'automatic';
944
+ autodocs?: boolean | 'tag';
950
945
  /**
951
946
  * Only show doc entries in the side bar (usually set with the `--docs` CLI flag)
952
947
  */
@@ -986,13 +981,14 @@ interface StorybookConfig {
986
981
  */
987
982
  storyStoreV7?: boolean;
988
983
  /**
989
- * Enable a set of planned breaking changes for SB7.0
984
+ * Do not throw errors if using `.mdx` files in SSv7
985
+ * (for internal use in sandboxes)
990
986
  */
991
- breakingChangesV7?: boolean;
987
+ storyStoreV7MdxErrors?: boolean;
992
988
  /**
993
- * Enable the step debugger functionality in Addon-interactions.
989
+ * Enable a set of planned breaking changes for SB7.0
994
990
  */
995
- interactionsDebugger?: boolean;
991
+ breakingChangesV7?: boolean;
996
992
  /**
997
993
  * Filter args with a "target" on the type from the render function (EXPERIMENTAL)
998
994
  */
@@ -1002,6 +998,14 @@ interface StorybookConfig {
1002
998
  * Will be removed in 7.0.
1003
999
  */
1004
1000
  warnOnLegacyHierarchySeparator?: boolean;
1001
+ /**
1002
+ * Use legacy MDX1, to help smooth migration to 7.0
1003
+ */
1004
+ legacyMdx1?: boolean;
1005
+ /**
1006
+ * Apply decorators from preview.js before decorators from addons or frameworks
1007
+ */
1008
+ legacyDecoratorFileOrder?: boolean;
1005
1009
  };
1006
1010
  /**
1007
1011
  * Tells Storybook where to find stories.
@@ -1010,7 +1014,7 @@ interface StorybookConfig {
1010
1014
  */
1011
1015
  stories: StoriesEntry[];
1012
1016
  /**
1013
- * Framework, e.g. '@storybook/react', required in v7
1017
+ * Framework, e.g. '@storybook/react-vite', required in v7
1014
1018
  */
1015
1019
  framework?: Preset;
1016
1020
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/react-webpack5",
3
- "version": "7.0.0-beta.9",
3
+ "version": "7.0.0-rc.1",
4
4
  "description": "Storybook for React: Develop React Component in isolation with Hot Reloading.",
5
5
  "keywords": [
6
6
  "storybook"
@@ -21,6 +21,7 @@
21
21
  "license": "MIT",
22
22
  "exports": {
23
23
  ".": {
24
+ "node": "./dist/index.js",
24
25
  "require": "./dist/index.js",
25
26
  "import": "./dist/index.mjs",
26
27
  "types": "./dist/index.d.ts"
@@ -30,18 +31,14 @@
30
31
  "import": "./dist/preset.mjs",
31
32
  "types": "./dist/preset.d.ts"
32
33
  },
33
- "./package.json": {
34
- "require": "./package.json",
35
- "import": "./package.json",
36
- "types": "./package.json"
37
- }
34
+ "./package.json": "./package.json"
38
35
  },
39
36
  "main": "dist/index.js",
40
37
  "module": "dist/index.mjs",
41
38
  "types": "dist/index.d.ts",
42
39
  "files": [
43
40
  "dist/**/*",
44
- "types/**/*",
41
+ "template/**/*",
45
42
  "README.md",
46
43
  "*.js",
47
44
  "*.d.ts"
@@ -51,9 +48,9 @@
51
48
  "prep": "../../../scripts/prepare/bundle.ts"
52
49
  },
53
50
  "dependencies": {
54
- "@storybook/builder-webpack5": "7.0.0-beta.9",
55
- "@storybook/preset-react-webpack": "7.0.0-beta.9",
56
- "@storybook/react": "7.0.0-beta.9",
51
+ "@storybook/builder-webpack5": "7.0.0-rc.1",
52
+ "@storybook/preset-react-webpack": "7.0.0-rc.1",
53
+ "@storybook/react": "7.0.0-rc.1",
57
54
  "@types/node": "^16.0.0"
58
55
  },
59
56
  "devDependencies": {
@@ -86,5 +83,5 @@
86
83
  ],
87
84
  "platform": "node"
88
85
  },
89
- "gitHead": "c466d4f77c3e8b99f28aaf508acdb9fd863550fd"
86
+ "gitHead": "115d69123dc7c4dfab9538d2b273cb0fcc372852"
90
87
  }