@storybook/preset-react-webpack 10.6.0-alpha.0 → 10.6.0-alpha.2

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.
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_rfkbznz7mbk from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_rfkbznz7mbk from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_rfkbznz7mbk from "node:module";
1
+ import CJS_COMPAT_NODE_URL_nwheqoiksff from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_nwheqoiksff from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_nwheqoiksff from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_rfkbznz7mbk.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_rfkbznz7mbk.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_rfkbznz7mbk.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_nwheqoiksff.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_nwheqoiksff.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_nwheqoiksff.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_rfkbznz7mbk from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_rfkbznz7mbk from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_rfkbznz7mbk from "node:module";
1
+ import CJS_COMPAT_NODE_URL_nwheqoiksff from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_nwheqoiksff from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_nwheqoiksff from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_rfkbznz7mbk.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_rfkbznz7mbk.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_rfkbznz7mbk.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_nwheqoiksff.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_nwheqoiksff.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_nwheqoiksff.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
package/dist/index.d.ts CHANGED
@@ -1,40 +1,41 @@
1
- import { PresetProperty } from 'storybook/internal/types';
2
- import { TypescriptOptions as TypescriptOptions$1, WebpackConfiguration, StorybookConfig as StorybookConfig$1 } from '@storybook/core-webpack';
3
- export { BuilderResult } from '@storybook/core-webpack';
4
- import { PluginOptions } from '@storybook/react-docgen-typescript-plugin';
1
+ import { PresetProperty } from "storybook/internal/types";
2
+ import { BuilderResult, StorybookConfig as StorybookConfig$1, TypescriptOptions as TypescriptOptions$1, WebpackConfiguration } from "@storybook/core-webpack";
3
+ import { PluginOptions } from "@storybook/react-docgen-typescript-plugin";
5
4
 
5
+ //#region code/presets/react-webpack/.dts-emit/code/presets/react-webpack/src/types.d.ts
6
6
  interface ReactOptions {
7
- strictMode?: boolean;
8
- /**
9
- * Use React's legacy root API to mount components
10
- *
11
- * React has introduced a new root API with React 18.x to enable a whole set of new features (e.g.
12
- * concurrent features) If this flag is true, the legacy Root API is used to mount components to
13
- * make it easier to migrate step by step to React 18.
14
- *
15
- * @default false
16
- */
17
- legacyRootApi?: boolean;
7
+ strictMode?: boolean;
8
+ /**
9
+ * Use React's legacy root API to mount components
10
+ *
11
+ * React has introduced a new root API with React 18.x to enable a whole set of new features (e.g.
12
+ * concurrent features) If this flag is true, the legacy Root API is used to mount components to
13
+ * make it easier to migrate step by step to React 18.
14
+ *
15
+ * @default false
16
+ */
17
+ legacyRootApi?: boolean;
18
18
  }
19
19
  type TypescriptOptions = TypescriptOptions$1 & {
20
- /**
21
- * Sets the type of Docgen when working with React and TypeScript
22
- *
23
- * @default `'react-docgen'`
24
- */
25
- reactDocgen: 'react-docgen-typescript' | 'react-docgen' | false;
26
- /**
27
- * Configures `react-docgen-typescript-plugin`
28
- *
29
- * @default
30
- * @see https://github.com/storybookjs/storybook/blob/next/code/builders/builder-webpack5/src/config/defaults.js#L4-L6
31
- */
32
- reactDocgenTypescriptOptions: PluginOptions;
20
+ /**
21
+ * Sets the type of Docgen when working with React and TypeScript
22
+ *
23
+ * @default `'react-docgen'`
24
+ */
25
+ reactDocgen: 'react-docgen-typescript' | 'react-docgen' | false;
26
+ /**
27
+ * Configures `react-docgen-typescript-plugin`
28
+ *
29
+ * @default
30
+ * @see https://github.com/storybookjs/storybook/blob/next/code/builders/builder-webpack5/src/config/defaults.js#L4-L6
31
+ */
32
+ reactDocgenTypescriptOptions: PluginOptions;
33
33
  };
34
34
  type StorybookConfig<TWebpackConfiguration = WebpackConfiguration> = StorybookConfig$1<TWebpackConfiguration> & {
35
- typescript?: Partial<TypescriptOptions>;
35
+ typescript?: Partial<TypescriptOptions>;
36
36
  };
37
-
37
+ //#endregion
38
+ //#region code/presets/react-webpack/.dts-emit/code/presets/react-webpack/src/index.d.ts
38
39
  declare const addons: PresetProperty<'addons'>;
39
-
40
- export { type ReactOptions, type StorybookConfig, type TypescriptOptions, addons };
40
+ //#endregion
41
+ export { type BuilderResult, ReactOptions, StorybookConfig, TypescriptOptions, addons };
package/dist/index.js CHANGED
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_rfkbznz7mbk from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_rfkbznz7mbk from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_rfkbznz7mbk from "node:module";
1
+ import CJS_COMPAT_NODE_URL_nwheqoiksff from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_nwheqoiksff from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_nwheqoiksff from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_rfkbznz7mbk.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_rfkbznz7mbk.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_rfkbznz7mbk.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_nwheqoiksff.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_nwheqoiksff.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_nwheqoiksff.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_rfkbznz7mbk from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_rfkbznz7mbk from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_rfkbznz7mbk from "node:module";
1
+ import CJS_COMPAT_NODE_URL_nwheqoiksff from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_nwheqoiksff from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_nwheqoiksff from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_rfkbznz7mbk.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_rfkbznz7mbk.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_rfkbznz7mbk.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_nwheqoiksff.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_nwheqoiksff.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_nwheqoiksff.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/preset-react-webpack",
3
- "version": "10.6.0-alpha.0",
3
+ "version": "10.6.0-alpha.2",
4
4
  "description": "Storybook for React: Develop React Component in isolation with Hot Reloading",
5
5
  "keywords": [
6
6
  "storybook"
@@ -39,7 +39,7 @@
39
39
  "!src/**/*"
40
40
  ],
41
41
  "dependencies": {
42
- "@storybook/core-webpack": "10.6.0-alpha.0",
42
+ "@storybook/core-webpack": "10.6.0-alpha.2",
43
43
  "@storybook/react-docgen-typescript-plugin": "1.0.6--canary.9.0c3f3b7.0",
44
44
  "@types/semver": "^7.7.1",
45
45
  "magic-string": "^0.30.5",
@@ -52,12 +52,12 @@
52
52
  "devDependencies": {
53
53
  "@types/node": "^22.19.1",
54
54
  "empathic": "^2.0.0",
55
- "typescript": "^5.9.3"
55
+ "typescript": "^6.0.3"
56
56
  },
57
57
  "peerDependencies": {
58
58
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
59
59
  "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
60
- "storybook": "^10.6.0-alpha.0"
60
+ "storybook": "^10.6.0-alpha.2"
61
61
  },
62
62
  "peerDependenciesMeta": {
63
63
  "typescript": {