@storybook/cli 10.0.0-beta.6 → 10.0.0-beta.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.
@@ -1,23 +1,23 @@
1
- import CJS_COMPAT_NODE_URL_xl53r3j4g3 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_xl53r3j4g3 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_xl53r3j4g3 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_u30nddc261 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_u30nddc261 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_u30nddc261 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_xl53r3j4g3.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_xl53r3j4g3.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_xl53r3j4g3.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_u30nddc261.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_u30nddc261.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_u30nddc261.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
12
  import {
13
13
  findOutdatedPackage
14
- } from "./chunk-DBYX7WCZ.js";
15
- import "./chunk-LCIGIRFL.js";
14
+ } from "./chunk-V76KLINZ.js";
15
+ import "./chunk-354BIXJP.js";
16
16
  import {
17
17
  createBlocker
18
- } from "./chunk-4HPAS2Q2.js";
19
- import "./chunk-YFERDIJG.js";
20
- import "./chunk-3DG4P2SK.js";
18
+ } from "./chunk-HVP7HQSB.js";
19
+ import "./chunk-XESZQZ4T.js";
20
+ import "./chunk-4QXHO755.js";
21
21
 
22
22
  // src/autoblock/block-dependencies-versions.ts
23
23
  import { dedent } from "ts-dedent";
@@ -1,23 +1,23 @@
1
- import CJS_COMPAT_NODE_URL_xl53r3j4g3 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_xl53r3j4g3 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_xl53r3j4g3 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_u30nddc261 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_u30nddc261 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_u30nddc261 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_xl53r3j4g3.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_xl53r3j4g3.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_xl53r3j4g3.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_u30nddc261.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_u30nddc261.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_u30nddc261.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
12
  import {
13
13
  createBlocker
14
- } from "./chunk-4HPAS2Q2.js";
14
+ } from "./chunk-HVP7HQSB.js";
15
15
  import {
16
16
  require_semver
17
- } from "./chunk-YFERDIJG.js";
17
+ } from "./chunk-XESZQZ4T.js";
18
18
  import {
19
19
  __toESM
20
- } from "./chunk-3DG4P2SK.js";
20
+ } from "./chunk-4QXHO755.js";
21
21
 
22
22
  // src/autoblock/block-experimental-addon-test.ts
23
23
  var import_semver = __toESM(require_semver(), 1);
@@ -1,24 +1,24 @@
1
- import CJS_COMPAT_NODE_URL_xl53r3j4g3 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_xl53r3j4g3 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_xl53r3j4g3 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_u30nddc261 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_u30nddc261 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_u30nddc261 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_xl53r3j4g3.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_xl53r3j4g3.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_xl53r3j4g3.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_u30nddc261.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_u30nddc261.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_u30nddc261.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
12
  import {
13
13
  createBlocker
14
- } from "./chunk-4HPAS2Q2.js";
14
+ } from "./chunk-HVP7HQSB.js";
15
15
  import {
16
16
  require_semver
17
- } from "./chunk-YFERDIJG.js";
17
+ } from "./chunk-XESZQZ4T.js";
18
18
  import {
19
19
  __name,
20
20
  __toESM
21
- } from "./chunk-3DG4P2SK.js";
21
+ } from "./chunk-4QXHO755.js";
22
22
 
23
23
  // src/autoblock/block-major-version.ts
24
24
  var import_semver = __toESM(require_semver(), 1);
@@ -1,23 +1,23 @@
1
- import CJS_COMPAT_NODE_URL_xl53r3j4g3 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_xl53r3j4g3 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_xl53r3j4g3 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_u30nddc261 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_u30nddc261 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_u30nddc261 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_xl53r3j4g3.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_xl53r3j4g3.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_xl53r3j4g3.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_u30nddc261.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_u30nddc261.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_u30nddc261.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
12
  import {
13
13
  createBlocker
14
- } from "./chunk-4HPAS2Q2.js";
14
+ } from "./chunk-HVP7HQSB.js";
15
15
  import {
16
16
  require_semver
17
- } from "./chunk-YFERDIJG.js";
17
+ } from "./chunk-XESZQZ4T.js";
18
18
  import {
19
19
  __toESM
20
- } from "./chunk-3DG4P2SK.js";
20
+ } from "./chunk-4QXHO755.js";
21
21
 
22
22
  // src/autoblock/block-node-version.ts
23
23
  var import_semver = __toESM(require_semver(), 1);
@@ -1,23 +1,23 @@
1
- import CJS_COMPAT_NODE_URL_xl53r3j4g3 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_xl53r3j4g3 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_xl53r3j4g3 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_u30nddc261 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_u30nddc261 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_u30nddc261 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_xl53r3j4g3.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_xl53r3j4g3.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_xl53r3j4g3.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_u30nddc261.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_u30nddc261.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_u30nddc261.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
12
  import {
13
13
  findOutdatedPackage
14
- } from "./chunk-DBYX7WCZ.js";
15
- import "./chunk-LCIGIRFL.js";
14
+ } from "./chunk-V76KLINZ.js";
15
+ import "./chunk-354BIXJP.js";
16
16
  import {
17
17
  createBlocker
18
- } from "./chunk-4HPAS2Q2.js";
19
- import "./chunk-YFERDIJG.js";
20
- import "./chunk-3DG4P2SK.js";
18
+ } from "./chunk-HVP7HQSB.js";
19
+ import "./chunk-XESZQZ4T.js";
20
+ import "./chunk-4QXHO755.js";
21
21
 
22
22
  // src/autoblock/block-webpack5-frameworks.ts
23
23
  var minimalVersionsMap = {
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_xl53r3j4g3 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_xl53r3j4g3 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_xl53r3j4g3 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_u30nddc261 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_u30nddc261 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_u30nddc261 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_xl53r3j4g3.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_xl53r3j4g3.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_xl53r3j4g3.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_u30nddc261.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_u30nddc261.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_u30nddc261.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -14,7 +14,7 @@ import {
14
14
  __name,
15
15
  __require,
16
16
  __toESM
17
- } from "./chunk-3DG4P2SK.js";
17
+ } from "./chunk-4QXHO755.js";
18
18
 
19
19
  // ../../node_modules/fast-glob/out/utils/array.js
20
20
  var require_array = __commonJS({
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_xl53r3j4g3 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_xl53r3j4g3 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_xl53r3j4g3 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_u30nddc261 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_u30nddc261 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_u30nddc261 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_xl53r3j4g3.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_xl53r3j4g3.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_xl53r3j4g3.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_u30nddc261.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_u30nddc261.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_u30nddc261.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -1,17 +1,17 @@
1
- import CJS_COMPAT_NODE_URL_xl53r3j4g3 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_xl53r3j4g3 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_xl53r3j4g3 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_u30nddc261 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_u30nddc261 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_u30nddc261 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_xl53r3j4g3.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_xl53r3j4g3.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_xl53r3j4g3.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_u30nddc261.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_u30nddc261.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_u30nddc261.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
12
  import {
13
13
  __name
14
- } from "./chunk-3DG4P2SK.js";
14
+ } from "./chunk-4QXHO755.js";
15
15
 
16
16
  // src/autoblock/types.ts
17
17
  function createBlocker(block) {
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_xl53r3j4g3 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_xl53r3j4g3 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_xl53r3j4g3 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_u30nddc261 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_u30nddc261 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_u30nddc261 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_xl53r3j4g3.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_xl53r3j4g3.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_xl53r3j4g3.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_u30nddc261.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_u30nddc261.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_u30nddc261.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -12,15 +12,15 @@ var require = CJS_COMPAT_NODE_MODULE_xl53r3j4g3.createRequire(import.meta.url);
12
12
  import {
13
13
  globby,
14
14
  globbySync
15
- } from "./chunk-LCIGIRFL.js";
15
+ } from "./chunk-354BIXJP.js";
16
16
  import {
17
17
  require_semver
18
- } from "./chunk-YFERDIJG.js";
18
+ } from "./chunk-XESZQZ4T.js";
19
19
  import {
20
20
  __commonJS,
21
21
  __name,
22
22
  __toESM
23
- } from "./chunk-3DG4P2SK.js";
23
+ } from "./chunk-4QXHO755.js";
24
24
 
25
25
  // ../../node_modules/picocolors/picocolors.js
26
26
  var require_picocolors = __commonJS({
@@ -1144,11 +1144,11 @@ var import_semver = __toESM(require_semver(), 1);
1144
1144
  // src/autoblock/index.ts
1145
1145
  var blockers = /* @__PURE__ */ __name(() => [
1146
1146
  // add/remove blockers here
1147
- import("./block-dependencies-versions-JH3YVYT7.js"),
1148
- import("./block-node-version-3X26NW5I.js"),
1149
- import("./block-webpack5-frameworks-RUF4COLB.js"),
1150
- import("./block-major-version-CNHJBRVI.js"),
1151
- import("./block-experimental-addon-test-547DKYP6.js")
1147
+ import("./block-dependencies-versions-GKZK56FV.js"),
1148
+ import("./block-node-version-GDOHFBKO.js"),
1149
+ import("./block-webpack5-frameworks-7SXFQIB7.js"),
1150
+ import("./block-major-version-GDA3MAEI.js"),
1151
+ import("./block-experimental-addon-test-GVGWJDQY.js")
1152
1152
  ], "blockers");
1153
1153
  var autoblock = /* @__PURE__ */ __name(async (options, list = blockers()) => {
1154
1154
  if (list.length === 0) {
@@ -1386,7 +1386,7 @@ var processProject = /* @__PURE__ */ __name(async ({
1386
1386
  }
1387
1387
  }, "processProject");
1388
1388
  var collectProjects = /* @__PURE__ */ __name(async (options, configDirs, onProjectScanStart) => {
1389
- const { default: pLimit } = await import("./p-limit-BDAJ2ZPF.js");
1389
+ const { default: pLimit } = await import("./p-limit-AYJDCWBB.js");
1390
1390
  const currentCLIVersion = versions.storybook;
1391
1391
  const limit = pLimit(5);
1392
1392
  const projectPromises = configDirs.map(
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_xl53r3j4g3 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_xl53r3j4g3 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_xl53r3j4g3 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_u30nddc261 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_u30nddc261 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_u30nddc261 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_xl53r3j4g3.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_xl53r3j4g3.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_xl53r3j4g3.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_u30nddc261.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_u30nddc261.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_u30nddc261.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -12,7 +12,7 @@ var require = CJS_COMPAT_NODE_MODULE_xl53r3j4g3.createRequire(import.meta.url);
12
12
  import {
13
13
  __commonJS,
14
14
  __name
15
- } from "./chunk-3DG4P2SK.js";
15
+ } from "./chunk-4QXHO755.js";
16
16
 
17
17
  // ../../node_modules/semver/internal/constants.js
18
18
  var require_constants = __commonJS({
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_xl53r3j4g3 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_xl53r3j4g3 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_xl53r3j4g3 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_u30nddc261 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_u30nddc261 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_u30nddc261 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_xl53r3j4g3.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_xl53r3j4g3.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_xl53r3j4g3.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_u30nddc261.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_u30nddc261.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_u30nddc261.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -21,8 +21,8 @@ import {
21
21
  isGitIgnoredSync,
22
22
  isIgnoredByIgnoreFiles,
23
23
  isIgnoredByIgnoreFilesSync
24
- } from "./chunk-LCIGIRFL.js";
25
- import "./chunk-3DG4P2SK.js";
24
+ } from "./chunk-354BIXJP.js";
25
+ import "./chunk-4QXHO755.js";
26
26
  export {
27
27
  convertPathToPattern,
28
28
  generateGlobTasks,
@@ -1,17 +1,17 @@
1
- import CJS_COMPAT_NODE_URL_xl53r3j4g3 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_xl53r3j4g3 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_xl53r3j4g3 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_u30nddc261 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_u30nddc261 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_u30nddc261 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_xl53r3j4g3.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_xl53r3j4g3.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_xl53r3j4g3.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_u30nddc261.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_u30nddc261.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_u30nddc261.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
12
  import {
13
13
  __name
14
- } from "./chunk-3DG4P2SK.js";
14
+ } from "./chunk-4QXHO755.js";
15
15
 
16
16
  // ../../node_modules/yocto-queue/index.js
17
17
  var Node = class {
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_xl53r3j4g3 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_xl53r3j4g3 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_xl53r3j4g3 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_u30nddc261 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_u30nddc261 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_u30nddc261 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_xl53r3j4g3.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_xl53r3j4g3.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_xl53r3j4g3.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_u30nddc261.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_u30nddc261.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_u30nddc261.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -19,19 +19,19 @@ import {
19
19
  shortenPath,
20
20
  updateMainConfig,
21
21
  upgradeStorybookDependencies
22
- } from "./chunk-DBYX7WCZ.js";
22
+ } from "./chunk-V76KLINZ.js";
23
23
  import {
24
24
  slash
25
- } from "./chunk-LCIGIRFL.js";
25
+ } from "./chunk-354BIXJP.js";
26
26
  import {
27
27
  require_semver
28
- } from "./chunk-YFERDIJG.js";
28
+ } from "./chunk-XESZQZ4T.js";
29
29
  import {
30
30
  __commonJS,
31
31
  __name,
32
32
  __require,
33
33
  __toESM
34
- } from "./chunk-3DG4P2SK.js";
34
+ } from "./chunk-4QXHO755.js";
35
35
 
36
36
  // ../../node_modules/envinfo/dist/envinfo.js
37
37
  var require_envinfo = __commonJS({
@@ -4916,7 +4916,7 @@ __name(leven, "leven");
4916
4916
  var import_picocolors17 = __toESM(require_picocolors(), 1);
4917
4917
 
4918
4918
  // package.json
4919
- var version = "10.0.0-beta.6";
4919
+ var version = "10.0.0-beta.7";
4920
4920
 
4921
4921
  // src/add.ts
4922
4922
  var import_semver = __toESM(require_semver(), 1);
@@ -6081,7 +6081,7 @@ async function runCodemod(globPattern = "**/*.stories.*", transform, { dryRun =
6081
6081
  let modifiedCount = 0;
6082
6082
  let unmodifiedCount = 0;
6083
6083
  let errorCount = 0;
6084
- const { globby } = await import("./globby-NKK4SHD2.js");
6084
+ const { globby } = await import("./globby-ABJQTAFV.js");
6085
6085
  const files = await globby(slash(globPattern), {
6086
6086
  followSymbolicLinks: true,
6087
6087
  ignore: ["**/node_modules/**", "**/dist/**", "**/storybook-static/**", "**/build/**"]
@@ -6095,7 +6095,7 @@ Please try a different pattern.
6095
6095
  throw new Error("No files matched");
6096
6096
  }
6097
6097
  try {
6098
- const pLimit = (await import("./p-limit-BDAJ2ZPF.js")).default;
6098
+ const pLimit = (await import("./p-limit-AYJDCWBB.js")).default;
6099
6099
  const limit = pLimit(maxConcurrentTasks);
6100
6100
  await Promise.all(
6101
6101
  files.map(
@@ -6256,8 +6256,37 @@ ${err}`);
6256
6256
  const defineConfigProps = getConfigProperties(exportDecls, { configType });
6257
6257
  const hasNamedExports = defineConfigProps.length > 0;
6258
6258
  if (config._exportsObject && hasNamedExports) {
6259
- config._exportsObject.properties.push(...defineConfigProps);
6259
+ config._exportsObject.properties = [...defineConfigProps, ...config._exportsObject.properties];
6260
6260
  programNode.body = removeExportDeclarations(programNode, exportDecls);
6261
+ const defineConfigCall = t3.callExpression(t3.identifier(methodName), [config._exportsObject]);
6262
+ let exportDefaultNode = null;
6263
+ let declarationNodeIndex = -1;
6264
+ programNode.body.forEach((node) => {
6265
+ if (t3.isExportDefaultDeclaration(node) && t3.isIdentifier(node.declaration)) {
6266
+ const declarationName = node.declaration.name;
6267
+ declarationNodeIndex = programNode.body.findIndex(
6268
+ (n) => t3.isVariableDeclaration(n) && n.declarations.some(
6269
+ (d) => t3.isIdentifier(d.id) && d.id.name === declarationName && t3.isObjectExpression(d.init)
6270
+ )
6271
+ );
6272
+ if (declarationNodeIndex !== -1) {
6273
+ exportDefaultNode = node;
6274
+ const declarationNode = programNode.body[declarationNodeIndex];
6275
+ if (t3.isVariableDeclaration(declarationNode)) {
6276
+ const id = declarationNode.declarations[0].id;
6277
+ const variableName = t3.isIdentifier(id) && id.name;
6278
+ if (variableName) {
6279
+ programNode.body.splice(declarationNodeIndex, 1);
6280
+ }
6281
+ }
6282
+ }
6283
+ } else if (t3.isExportDefaultDeclaration(node) && t3.isObjectExpression(node.declaration)) {
6284
+ exportDefaultNode = node;
6285
+ }
6286
+ });
6287
+ if (exportDefaultNode !== null) {
6288
+ exportDefaultNode.declaration = defineConfigCall;
6289
+ }
6261
6290
  } else if (config._exportsObject) {
6262
6291
  const defineConfigCall = t3.callExpression(t3.identifier(methodName), [config._exportsObject]);
6263
6292
  let exportDefaultNode = null;
@@ -6350,6 +6379,9 @@ async function storyToCsfFactory(info, { previewConfigPath, useSubPathImports })
6350
6379
  ${err}`);
6351
6380
  return info.source;
6352
6381
  }
6382
+ const detectedStories = csf.stories;
6383
+ const detectedStoryNames = detectedStories.map((story) => story.name);
6384
+ const transformedStoryExports = /* @__PURE__ */ new Set();
6353
6385
  const metaVariableName = csf._metaVariableName ?? "meta";
6354
6386
  const programNode = csf._ast.program;
6355
6387
  let previewImport;
@@ -6382,7 +6414,7 @@ ${err}`);
6382
6414
  }
6383
6415
  });
6384
6416
  const hasMeta = !!csf._meta;
6385
- Object.entries(csf._storyExports).forEach(([_key, decl]) => {
6417
+ Object.entries(csf._storyExports).forEach(([exportName, decl]) => {
6386
6418
  const id = decl.id;
6387
6419
  const declarator = decl;
6388
6420
  let init = t4.isVariableDeclarator(declarator) ? declarator.init : void 0;
@@ -6398,11 +6430,37 @@ ${err}`);
6398
6430
  t4.memberExpression(t4.identifier(metaVariableName), t4.identifier("story")),
6399
6431
  init.properties.length === 0 ? [] : [init]
6400
6432
  );
6433
+ if (t4.isIdentifier(id)) {
6434
+ transformedStoryExports.add(exportName);
6435
+ }
6401
6436
  } else if (t4.isArrowFunctionExpression(init)) {
6402
6437
  declarator.init = t4.callExpression(
6403
6438
  t4.memberExpression(t4.identifier(metaVariableName), t4.identifier("story")),
6404
6439
  [init]
6405
6440
  );
6441
+ if (t4.isIdentifier(id)) {
6442
+ transformedStoryExports.add(exportName);
6443
+ }
6444
+ }
6445
+ }
6446
+ });
6447
+ Object.entries(csf._storyExports).forEach(([exportName, decl]) => {
6448
+ if (t4.isFunctionDeclaration(decl) && decl.id) {
6449
+ const arrowFn = t4.arrowFunctionExpression(decl.params, decl.body);
6450
+ arrowFn.async = !!decl.async;
6451
+ const wrappedCall = t4.callExpression(
6452
+ t4.memberExpression(t4.identifier(metaVariableName), t4.identifier("story")),
6453
+ [arrowFn]
6454
+ );
6455
+ const replacement = t4.exportNamedDeclaration(
6456
+ t4.variableDeclaration("const", [
6457
+ t4.variableDeclarator(t4.identifier(exportName), wrappedCall)
6458
+ ])
6459
+ );
6460
+ const pathForExport = csf._storyPaths?.[exportName];
6461
+ if (pathForExport && pathForExport.replaceWith) {
6462
+ pathForExport.replaceWith(replacement);
6463
+ transformedStoryExports.add(exportName);
6406
6464
  }
6407
6465
  }
6408
6466
  });
@@ -6448,6 +6506,13 @@ ${err}`);
6448
6506
  }
6449
6507
  }
6450
6508
  });
6509
+ if (detectedStoryNames.length > 0 && transformedStoryExports.size > 0 && transformedStoryExports.size !== detectedStoryNames.length) {
6510
+ logger5.warn(
6511
+ `Skipping codemod for ${info.path}:
6512
+ Some of the detected stories [${detectedStoryNames.map((name) => `"${name}"`).join(", ")}] would not be transformed because they are written in an unsupported format.`
6513
+ );
6514
+ return info.source;
6515
+ }
6451
6516
  if (csf._metaPath) {
6452
6517
  let declaration = csf._metaPath.node.declaration;
6453
6518
  if (t4.isTSSatisfiesExpression(declaration) || t4.isTSAsExpression(declaration)) {
@@ -6524,7 +6589,7 @@ async function runStoriesCodemod(options) {
6524
6589
  logger6.log("Please enter the glob for your stories to migrate");
6525
6590
  globString = await prompt2.text({
6526
6591
  message: "glob",
6527
- initialValue: "src/**/*.stories.*"
6592
+ initialValue: "**/*.stories.*"
6528
6593
  });
6529
6594
  }
6530
6595
  logger6.log("\n\u{1F6E0}\uFE0F Applying codemod on your stories, this might take some time...");
@@ -6558,7 +6623,7 @@ var csfFactories = {
6558
6623
  let useSubPathImports = true;
6559
6624
  if (!optionalEnvToBoolean(process.env.IN_STORYBOOK_SANDBOX)) {
6560
6625
  logger6.logBox(dedent3`
6561
- The CSF factories format benefits from subpath imports (the imports property in your \`package.json\`), which is a node standard for module resolution. This makes it more convenient to import the preview config in your story files.
6626
+ The CSF factories format benefits from subpath imports (the imports property in your \`package.json\`), which is a node standard for module resolution (commonly known as alias imports). This makes it more convenient to import the preview config in your story files.
6562
6627
 
6563
6628
  However, please note that this might not work if you have an outdated tsconfig, use custom paths, or have type alias plugins configured in your project. You can always rerun this codemod and select another option to update your code later.
6564
6629
 
@@ -6572,7 +6637,7 @@ var csfFactories = {
6572
6637
  useSubPathImports = await prompt2.select({
6573
6638
  message: "Which would you like to use?",
6574
6639
  options: [
6575
- { label: "Subpath imports", value: true },
6640
+ { label: "Subpath imports (alias)", value: true },
6576
6641
  { label: "Relative imports", value: false }
6577
6642
  ]
6578
6643
  });
@@ -7033,7 +7098,7 @@ var addonA11yParameters = {
7033
7098
  }
7034
7099
  }
7035
7100
  }
7036
- const { default: pLimit } = await import("./p-limit-BDAJ2ZPF.js");
7101
+ const { default: pLimit } = await import("./p-limit-AYJDCWBB.js");
7037
7102
  const limit = pLimit(10);
7038
7103
  await Promise.all(
7039
7104
  storyFilesToUpdate.map(
@@ -7279,7 +7344,7 @@ function transformPackageJson(content) {
7279
7344
  __name(transformPackageJson, "transformPackageJson");
7280
7345
  var transformPackageJsonFiles = /* @__PURE__ */ __name(async (files, dryRun) => {
7281
7346
  const errors = [];
7282
- const { default: pLimit } = await import("./p-limit-BDAJ2ZPF.js");
7347
+ const { default: pLimit } = await import("./p-limit-AYJDCWBB.js");
7283
7348
  const limit = pLimit(10);
7284
7349
  await Promise.all(
7285
7350
  files.map(
@@ -7341,7 +7406,7 @@ var consolidatedImports = {
7341
7406
  dryRun
7342
7407
  );
7343
7408
  errors.push(...packageJsonErrors);
7344
- const { globby } = await import("./globby-NKK4SHD2.js");
7409
+ const { globby } = await import("./globby-ABJQTAFV.js");
7345
7410
  const configFiles = await globby([`${configDir}/**/*`]);
7346
7411
  const importErrors = await transformImportFiles(
7347
7412
  [...storiesPaths, ...configFiles].filter(Boolean),
@@ -7883,7 +7948,7 @@ var replaceImports = /* @__PURE__ */ __name((source, renderer, framework) => {
7883
7948
  }, "replaceImports");
7884
7949
  var transformSourceFiles = /* @__PURE__ */ __name(async (files, renderer, framework, dryRun) => {
7885
7950
  const errors = [];
7886
- const { default: pLimit } = await import("./p-limit-BDAJ2ZPF.js");
7951
+ const { default: pLimit } = await import("./p-limit-AYJDCWBB.js");
7887
7952
  const limit = pLimit(10);
7888
7953
  await Promise.all(
7889
7954
  files.map(
@@ -7985,7 +8050,7 @@ var rendererToFramework = {
7985
8050
  }
7986
8051
  logger12.debug(`
7987
8052
  Migrating ${rendererPackage} to ${selectedFramework}`);
7988
- const { globby } = await import("./globby-NKK4SHD2.js");
8053
+ const { globby } = await import("./globby-ABJQTAFV.js");
7989
8054
  const configFiles = await globby([`${configDir}/**/*`]);
7990
8055
  await transformSourceFiles(
7991
8056
  [...storiesPaths, ...configFiles].filter(Boolean),
@@ -8020,7 +8085,7 @@ async function renameInFile(filePath, oldText, newText) {
8020
8085
  __name(renameInFile, "renameInFile");
8021
8086
  var getDotStorybookReferences = /* @__PURE__ */ __name(async (searchDir) => {
8022
8087
  try {
8023
- const { globby } = await import("./globby-NKK4SHD2.js");
8088
+ const { globby } = await import("./globby-ABJQTAFV.js");
8024
8089
  const { readFile: readFile7 } = await import("node:fs/promises");
8025
8090
  const files = await globby(`${searchDir}/**/*`, {
8026
8091
  onlyFiles: true,
@@ -8055,7 +8120,7 @@ var rnstorybookConfig = {
8055
8120
  const projectDir = mainConfigPath ? join2(mainConfigPath, "..", "..") : process.cwd();
8056
8121
  const storybookDir = join2(projectDir, ".storybook");
8057
8122
  const rnStorybookDir = join2(projectDir, ".rnstorybook");
8058
- const { globby } = await import("./globby-NKK4SHD2.js");
8123
+ const { globby } = await import("./globby-ABJQTAFV.js");
8059
8124
  const requiresFiles = await globby(join2(storybookDir, "storybook.requires.*"));
8060
8125
  if (existsSync2(storybookDir) && requiresFiles.length > 0 && !existsSync2(rnStorybookDir)) {
8061
8126
  return { storybookDir, rnStorybookDir };
@@ -8293,7 +8358,7 @@ function logMigrationSummary({
8293
8358
  The automigrations try to migrate common patterns in your project, but might not contain everything needed to migrate to the latest version of Storybook.
8294
8359
 
8295
8360
  Please check the changelog and migration guide for manual migrations and more information: ${import_picocolors12.default.yellow(
8296
- "https://storybook.js.org/docs/releases/migration-guide?ref=upgrade"
8361
+ "https://storybook.js.org/docs/migration-guide?ref=upgrade?ref=upgrade"
8297
8362
  )}
8298
8363
  And reach out on Discord if you need help: ${import_picocolors12.default.yellow("https://discord.gg/storybook")}
8299
8364
  `);
@@ -8760,6 +8825,9 @@ var baseTemplates = {
8760
8825
  mainConfig: /* @__PURE__ */ __name((config) => {
8761
8826
  const stories = config.getFieldValue(["stories"]);
8762
8827
  return {
8828
+ features: {
8829
+ experimentalTestSyntax: true
8830
+ },
8763
8831
  stories: stories?.map((s) => {
8764
8832
  if (typeof s === "string") {
8765
8833
  return s.replace(/\|(tsx?|ts)\b|\b(tsx?|ts)\|/g, "");
@@ -8786,7 +8854,12 @@ var baseTemplates = {
8786
8854
  },
8787
8855
  modifications: {
8788
8856
  useCsfFactory: true,
8789
- extraDependencies: ["prop-types"]
8857
+ extraDependencies: ["prop-types"],
8858
+ mainConfig: {
8859
+ features: {
8860
+ experimentalTestSyntax: true
8861
+ }
8862
+ }
8790
8863
  }
8791
8864
  },
8792
8865
  "nextjs/14-ts": {
@@ -8802,7 +8875,8 @@ var baseTemplates = {
8802
8875
  mainConfig: {
8803
8876
  features: {
8804
8877
  experimentalRSC: true,
8805
- developmentModeForBuild: true
8878
+ developmentModeForBuild: true,
8879
+ experimentalTestSyntax: true
8806
8880
  }
8807
8881
  },
8808
8882
  extraDependencies: ["server-only", "prop-types"]
@@ -8822,7 +8896,8 @@ var baseTemplates = {
8822
8896
  mainConfig: {
8823
8897
  features: {
8824
8898
  experimentalRSC: true,
8825
- developmentModeForBuild: true
8899
+ developmentModeForBuild: true,
8900
+ experimentalTestSyntax: true
8826
8901
  }
8827
8902
  },
8828
8903
  extraDependencies: ["server-only", "prop-types"]
@@ -8842,7 +8917,8 @@ var baseTemplates = {
8842
8917
  mainConfig: {
8843
8918
  features: {
8844
8919
  experimentalRSC: true,
8845
- developmentModeForBuild: true
8920
+ developmentModeForBuild: true,
8921
+ experimentalTestSyntax: true
8846
8922
  }
8847
8923
  },
8848
8924
  extraDependencies: ["server-only", "prop-types"]
@@ -8863,7 +8939,8 @@ var baseTemplates = {
8863
8939
  framework: "@storybook/nextjs-vite",
8864
8940
  features: {
8865
8941
  experimentalRSC: true,
8866
- developmentModeForBuild: true
8942
+ developmentModeForBuild: true,
8943
+ experimentalTestSyntax: true
8867
8944
  }
8868
8945
  },
8869
8946
  extraDependencies: ["server-only", "@storybook/nextjs-vite", "vite", "prop-types"]
@@ -8884,7 +8961,8 @@ var baseTemplates = {
8884
8961
  framework: "@storybook/nextjs-vite",
8885
8962
  features: {
8886
8963
  experimentalRSC: true,
8887
- developmentModeForBuild: true
8964
+ developmentModeForBuild: true,
8965
+ experimentalTestSyntax: true
8888
8966
  }
8889
8967
  },
8890
8968
  extraDependencies: ["server-only", "@storybook/nextjs-vite", "vite", "prop-types"]
@@ -8904,7 +8982,8 @@ var baseTemplates = {
8904
8982
  extraDependencies: ["prop-types"],
8905
8983
  mainConfig: {
8906
8984
  features: {
8907
- developmentModeForBuild: true
8985
+ developmentModeForBuild: true,
8986
+ experimentalTestSyntax: true
8908
8987
  }
8909
8988
  }
8910
8989
  },
@@ -8923,7 +9002,8 @@ var baseTemplates = {
8923
9002
  extraDependencies: ["prop-types"],
8924
9003
  mainConfig: {
8925
9004
  features: {
8926
- developmentModeForBuild: true
9005
+ developmentModeForBuild: true,
9006
+ experimentalTestSyntax: true
8927
9007
  }
8928
9008
  }
8929
9009
  },
@@ -8934,12 +9014,12 @@ var baseTemplates = {
8934
9014
  /**
8935
9015
  * 1. Create a Vite project with the React template
8936
9016
  * 2. Add React beta versions
8937
- * 3. Add resolutions for @types/react and @types/react-dom, see
9017
+ * 3. Add resolutions for react, react-dom,@types/react and @types/react-dom, see
8938
9018
  * https://react.dev/blog/2024/04/25/react-19-upgrade-guide#installing
8939
9019
  * 4. Add @types/react and @types/react-dom pointing to the beta packages
8940
9020
  */
8941
9021
  script: `
8942
- npm create vite --yes {{beforeDir}} -- --template react-ts && cd {{beforeDir}} && yarn add react@beta react-dom@beta && jq '.resolutions += {"@types/react": "npm:types-react@beta", "@types/react-dom": "npm:types-react-dom@beta"}' package.json > tmp.json && mv tmp.json package.json && yarn add --dev @types/react@npm:types-react@beta @types/react-dom@npm:types-react-dom@beta
9022
+ npm create vite --yes {{beforeDir}} -- --template react-ts && cd {{beforeDir}} && jq '.resolutions += {"@types/react": "npm:types-react@beta", "@types/react-dom": "npm:types-react-dom@beta", "react": "npm:react@beta", "react-dom": "npm:react-dom@beta"}' package.json > tmp.json && mv tmp.json package.json && yarn add react@beta react-dom@beta && yarn add --dev @types/react@npm:types-react@beta @types/react-dom@npm:types-react-dom@beta
8943
9023
  `,
8944
9024
  expected: {
8945
9025
  framework: "@storybook/react-vite",
@@ -8951,7 +9031,8 @@ var baseTemplates = {
8951
9031
  extraDependencies: ["prop-types"],
8952
9032
  mainConfig: {
8953
9033
  features: {
8954
- developmentModeForBuild: true
9034
+ developmentModeForBuild: true,
9035
+ experimentalTestSyntax: true
8955
9036
  }
8956
9037
  }
8957
9038
  },
@@ -8967,7 +9048,12 @@ var baseTemplates = {
8967
9048
  },
8968
9049
  modifications: {
8969
9050
  useCsfFactory: true,
8970
- extraDependencies: ["prop-types"]
9051
+ extraDependencies: ["prop-types"],
9052
+ mainConfig: {
9053
+ features: {
9054
+ experimentalTestSyntax: true
9055
+ }
9056
+ }
8971
9057
  },
8972
9058
  skipTasks: ["e2e-tests", "bench", "vitest-integration"]
8973
9059
  },
@@ -8981,7 +9067,12 @@ var baseTemplates = {
8981
9067
  },
8982
9068
  modifications: {
8983
9069
  useCsfFactory: true,
8984
- extraDependencies: ["prop-types"]
9070
+ extraDependencies: ["prop-types"],
9071
+ mainConfig: {
9072
+ features: {
9073
+ experimentalTestSyntax: true
9074
+ }
9075
+ }
8985
9076
  },
8986
9077
  skipTasks: ["e2e-tests", "bench", "vitest-integration"]
8987
9078
  },
@@ -9003,7 +9094,12 @@ var baseTemplates = {
9003
9094
  },
9004
9095
  modifications: {
9005
9096
  useCsfFactory: true,
9006
- extraDependencies: ["prop-types"]
9097
+ extraDependencies: ["prop-types"],
9098
+ mainConfig: {
9099
+ features: {
9100
+ experimentalTestSyntax: true
9101
+ }
9102
+ }
9007
9103
  },
9008
9104
  skipTasks: ["e2e-tests", "bench", "vitest-integration"]
9009
9105
  },
@@ -9226,7 +9322,12 @@ var baseTemplates = {
9226
9322
  builder: "@storybook/builder-vite"
9227
9323
  },
9228
9324
  modifications: {
9229
- useCsfFactory: true
9325
+ useCsfFactory: true,
9326
+ mainConfig: {
9327
+ features: {
9328
+ experimentalTestSyntax: true
9329
+ }
9330
+ }
9230
9331
  },
9231
9332
  skipTasks: ["bench", "vitest-integration"]
9232
9333
  },
@@ -9263,7 +9364,12 @@ var internalTemplates = {
9263
9364
  extraDependencies: ["@storybook/addon-webpack5-compiler-babel", "prop-types"],
9264
9365
  editAddons: /* @__PURE__ */ __name((addons) => [...addons, "@storybook/addon-webpack5-compiler-babel"].filter(
9265
9366
  (a) => a !== "@storybook/addon-webpack5-compiler-swc"
9266
- ), "editAddons")
9367
+ ), "editAddons"),
9368
+ mainConfig: {
9369
+ features: {
9370
+ experimentalTestSyntax: true
9371
+ }
9372
+ }
9267
9373
  },
9268
9374
  isInternal: true,
9269
9375
  skipTasks: ["e2e-tests", "bench", "vitest-integration"]
@@ -9278,7 +9384,12 @@ var internalTemplates = {
9278
9384
  },
9279
9385
  modifications: {
9280
9386
  useCsfFactory: true,
9281
- extraDependencies: ["prop-types"]
9387
+ extraDependencies: ["prop-types"],
9388
+ mainConfig: {
9389
+ features: {
9390
+ experimentalTestSyntax: true
9391
+ }
9392
+ }
9282
9393
  },
9283
9394
  skipTasks: ["e2e-tests", "bench", "vitest-integration"],
9284
9395
  isInternal: true
@@ -10066,7 +10177,7 @@ ${projectList}`);
10066
10177
  logger20.log(automigrationLinksMessage);
10067
10178
  }
10068
10179
  logger20.log(
10069
- `For a full list of changes, please check our migration guide: ${CLI_COLORS3.cta("https://storybook.js.org/docs/releases/migration-guide?ref=upgrade")}`
10180
+ `For a full list of changes, please check our migration guide: ${CLI_COLORS3.cta("https://storybook.js.org/docs/migration-guide?ref=upgrade?ref=upgrade")}`
10070
10181
  );
10071
10182
  }
10072
10183
  __name(logUpgradeResults, "logUpgradeResults");
package/dist/bin/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
- import CJS_COMPAT_NODE_URL_xl53r3j4g3 from 'node:url';
3
- import CJS_COMPAT_NODE_PATH_xl53r3j4g3 from 'node:path';
4
- import CJS_COMPAT_NODE_MODULE_xl53r3j4g3 from "node:module";
2
+ import CJS_COMPAT_NODE_URL_u30nddc261 from 'node:url';
3
+ import CJS_COMPAT_NODE_PATH_u30nddc261 from 'node:path';
4
+ import CJS_COMPAT_NODE_MODULE_u30nddc261 from "node:module";
5
5
 
6
- var __filename = CJS_COMPAT_NODE_URL_xl53r3j4g3.fileURLToPath(import.meta.url);
7
- var __dirname = CJS_COMPAT_NODE_PATH_xl53r3j4g3.dirname(__filename);
8
- var require = CJS_COMPAT_NODE_MODULE_xl53r3j4g3.createRequire(import.meta.url);
6
+ var __filename = CJS_COMPAT_NODE_URL_u30nddc261.fileURLToPath(import.meta.url);
7
+ var __dirname = CJS_COMPAT_NODE_PATH_u30nddc261.dirname(__filename);
8
+ var require = CJS_COMPAT_NODE_MODULE_u30nddc261.createRequire(import.meta.url);
9
9
 
10
10
  // ------------------------------------------------------------
11
11
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -22,4 +22,4 @@ if (majorNodeVersion < 20 || majorNodeVersion === 20 && minorNodeVersion < 19 ||
22
22
  );
23
23
  process.exit(1);
24
24
  }
25
- import("../_node-chunks/run-6B6BTUCM.js");
25
+ import("../_node-chunks/run-QGF2XANH.js");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/cli",
3
- "version": "10.0.0-beta.6",
3
+ "version": "10.0.0-beta.7",
4
4
  "description": "Storybook CLI: Develop, document, and test UI components in isolation",
5
5
  "keywords": [
6
6
  "storybook",
@@ -41,13 +41,13 @@
41
41
  "prep": "jiti ../../../scripts/build/build-package.ts"
42
42
  },
43
43
  "dependencies": {
44
- "@storybook/codemod": "10.0.0-beta.6",
44
+ "@storybook/codemod": "10.0.0-beta.7",
45
45
  "@types/semver": "^7.3.4",
46
46
  "commander": "^14.0.1",
47
- "create-storybook": "10.0.0-beta.6",
47
+ "create-storybook": "10.0.0-beta.7",
48
48
  "giget": "^2.0.0",
49
49
  "jscodeshift": "^0.15.1",
50
- "storybook": "10.0.0-beta.6",
50
+ "storybook": "10.0.0-beta.7",
51
51
  "ts-dedent": "^2.0.0"
52
52
  },
53
53
  "devDependencies": {