@storybook/react-vite 7.6.0-alpha.5 → 7.6.0-alpha.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2874,8 +2874,15 @@ interface TypescriptOptions$1 {
2874
2874
  * Disable parsing typescript files through babel.
2875
2875
  *
2876
2876
  * @default `false`
2877
+ * @deprecated use `skipCompiler` instead
2877
2878
  */
2878
2879
  skipBabel: boolean;
2880
+ /**
2881
+ * Disable parsing typescript files through compiler.
2882
+ *
2883
+ * @default `false`
2884
+ */
2885
+ skipCompiler: boolean;
2879
2886
  }
2880
2887
  type Preset = string | {
2881
2888
  name: string;
@@ -2913,19 +2920,19 @@ interface TestBuildFlags {
2913
2920
  /**
2914
2921
  * The package @storybook/blocks will be excluded from the bundle, even when imported in e.g. the preview.
2915
2922
  */
2916
- emptyBlocks?: boolean;
2923
+ disableBlocks?: boolean;
2917
2924
  /**
2918
- * Disable all addons
2925
+ * Disable specific addons
2919
2926
  */
2920
- removeNonFastAddons?: boolean;
2927
+ disabledAddons?: string[];
2921
2928
  /**
2922
2929
  * Filter out .mdx stories entries
2923
2930
  */
2924
- removeMDXEntries?: boolean;
2931
+ disableMDXEntries?: boolean;
2925
2932
  /**
2926
2933
  * Override autodocs to be disabled
2927
2934
  */
2928
- removeAutoDocs?: boolean;
2935
+ disableAutoDocs?: boolean;
2929
2936
  /**
2930
2937
  * Override docgen to be disabled.
2931
2938
  */
@@ -2939,9 +2946,9 @@ interface TestBuildFlags {
2939
2946
  */
2940
2947
  disableTreeShaking?: boolean;
2941
2948
  /**
2942
- * Compile/Optimize with SWC.
2949
+ * Minify with ESBuild when using webpack.
2943
2950
  */
2944
- optimizeCompilation?: boolean;
2951
+ esbuildMinify?: boolean;
2945
2952
  }
2946
2953
  interface TestBuildConfig {
2947
2954
  test?: TestBuildFlags;
@@ -2995,6 +3002,12 @@ interface StorybookConfig$1 {
2995
3002
  * Apply decorators from preview.js before decorators from addons or frameworks
2996
3003
  */
2997
3004
  legacyDecoratorFileOrder?: boolean;
3005
+ /**
3006
+ * Disallow implicit actions during rendering. This will be the default in Storybook 8.
3007
+ *
3008
+ * This will make sure that your story renders the same no matter if docgen is enabled or not.
3009
+ */
3010
+ disallowImplicitActionsInRenderV8?: boolean;
2998
3011
  };
2999
3012
  build?: TestBuildConfig;
3000
3013
  /**
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { F as FrameworkOptions, S as StorybookConfig } from './index-d74de77a.js';
1
+ export { F as FrameworkOptions, S as StorybookConfig } from './index-a1d91e1e.js';
2
2
  import 'file-system-cache';
3
3
  import '@babel/core';
4
4
  import 'http';
package/dist/preset.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { P as PresetProperty, S as StorybookConfig } from './index-d74de77a.js';
1
+ import { P as PresetProperty, S as StorybookConfig } from './index-a1d91e1e.js';
2
2
  import 'file-system-cache';
3
3
  import '@babel/core';
4
4
  import 'http';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/react-vite",
3
- "version": "7.6.0-alpha.5",
3
+ "version": "7.6.0-alpha.7",
4
4
  "description": "Storybook for React and Vite: Develop React components in isolation with Hot Reloading.",
5
5
  "keywords": [
6
6
  "storybook"
@@ -43,14 +43,14 @@
43
43
  "!src/**/*"
44
44
  ],
45
45
  "scripts": {
46
- "check": "../../../scripts/prepare/check.ts",
47
- "prep": "../../../scripts/prepare/bundle.ts"
46
+ "check": "node --loader ../../../scripts/node_modules/esbuild-register/loader.js -r ../../../scripts/node_modules/esbuild-register/register.js ../../../scripts/prepare/check.ts",
47
+ "prep": "node --loader ../../../scripts/node_modules/esbuild-register/loader.js -r ../../../scripts/node_modules/esbuild-register/register.js ../../../scripts/prepare/bundle.ts"
48
48
  },
49
49
  "dependencies": {
50
50
  "@joshwooding/vite-plugin-react-docgen-typescript": "0.3.0",
51
51
  "@rollup/pluginutils": "^5.0.2",
52
- "@storybook/builder-vite": "7.6.0-alpha.5",
53
- "@storybook/react": "7.6.0-alpha.5",
52
+ "@storybook/builder-vite": "7.6.0-alpha.7",
53
+ "@storybook/react": "7.6.0-alpha.7",
54
54
  "@vitejs/plugin-react": "^3.0.1",
55
55
  "magic-string": "^0.30.0",
56
56
  "react-docgen": "^7.0.0"