@storybook/cli 10.2.6 → 10.2.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.
- package/dist/_node-chunks/{block-dependencies-versions-ITJGGF2U.js → block-dependencies-versions-KQ5VBLA4.js} +11 -11
- package/dist/_node-chunks/{block-experimental-addon-test-MYGETZWE.js → block-experimental-addon-test-DHG22BAE.js} +9 -9
- package/dist/_node-chunks/{block-major-version-ZPFGAKTB.js → block-major-version-YLXMSRUK.js} +9 -9
- package/dist/_node-chunks/{block-node-version-7T4TTLRC.js → block-node-version-PZRRFVXI.js} +9 -9
- package/dist/_node-chunks/{block-webpack5-frameworks-54WGRVDO.js → block-webpack5-frameworks-6ZIA56NQ.js} +11 -11
- package/dist/_node-chunks/{chunk-HJYECYKM.js → chunk-4XFXMRK6.js} +7 -7
- package/dist/_node-chunks/{chunk-GIYKSM7D.js → chunk-AWLHHVSH.js} +7 -7
- package/dist/_node-chunks/{chunk-K3ATG7US.js → chunk-F2HZSUUY.js} +15 -15
- package/dist/_node-chunks/chunk-QCE3TXGB.js +11 -0
- package/dist/_node-chunks/{chunk-4ECFGOQC.js → chunk-TY4XO6XR.js} +6 -6
- package/dist/_node-chunks/{globby-VUEDGDHW.js → globby-R4A54J54.js} +8 -8
- package/dist/_node-chunks/{p-limit-4EP6UFXE.js → p-limit-A2EBNNV5.js} +7 -7
- package/dist/_node-chunks/{run-RBBIXWTJ.js → run-B4LF6WVD.js} +77 -24
- package/dist/bin/index.js +7 -7
- package/package.json +4 -4
- package/dist/_node-chunks/chunk-KQGRHQCS.js +0 -11
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_76lw0lolzkl from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_76lw0lolzkl from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_76lw0lolzkl from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_76lw0lolzkl.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_76lw0lolzkl.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_76lw0lolzkl.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-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-F2HZSUUY.js";
|
|
15
|
+
import "./chunk-AWLHHVSH.js";
|
|
16
|
+
import "./chunk-QCE3TXGB.js";
|
|
17
|
+
import "./chunk-4XFXMRK6.js";
|
|
18
|
+
import "./chunk-TY4XO6XR.js";
|
|
19
19
|
|
|
20
20
|
// src/autoblock/block-dependencies-versions.ts
|
|
21
21
|
import { dedent } from "ts-dedent";
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_76lw0lolzkl from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_76lw0lolzkl from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_76lw0lolzkl from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_76lw0lolzkl.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_76lw0lolzkl.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_76lw0lolzkl.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-QCE3TXGB.js";
|
|
13
13
|
import {
|
|
14
14
|
require_semver
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-4XFXMRK6.js";
|
|
16
16
|
import {
|
|
17
17
|
__toESM
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-TY4XO6XR.js";
|
|
19
19
|
|
|
20
20
|
// src/autoblock/block-experimental-addon-test.ts
|
|
21
21
|
var import_semver = __toESM(require_semver(), 1);
|
package/dist/_node-chunks/{block-major-version-ZPFGAKTB.js → block-major-version-YLXMSRUK.js}
RENAMED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_76lw0lolzkl from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_76lw0lolzkl from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_76lw0lolzkl from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_76lw0lolzkl.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_76lw0lolzkl.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_76lw0lolzkl.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-QCE3TXGB.js";
|
|
13
13
|
import {
|
|
14
14
|
require_semver
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-4XFXMRK6.js";
|
|
16
16
|
import {
|
|
17
17
|
__toESM
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-TY4XO6XR.js";
|
|
19
19
|
|
|
20
20
|
// src/autoblock/block-major-version.ts
|
|
21
21
|
var import_semver = __toESM(require_semver(), 1);
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_76lw0lolzkl from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_76lw0lolzkl from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_76lw0lolzkl from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_76lw0lolzkl.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_76lw0lolzkl.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_76lw0lolzkl.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-QCE3TXGB.js";
|
|
13
13
|
import {
|
|
14
14
|
require_semver
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-4XFXMRK6.js";
|
|
16
16
|
import {
|
|
17
17
|
__toESM
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-TY4XO6XR.js";
|
|
19
19
|
|
|
20
20
|
// src/autoblock/block-node-version.ts
|
|
21
21
|
var import_semver = __toESM(require_semver(), 1);
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_76lw0lolzkl from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_76lw0lolzkl from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_76lw0lolzkl from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_76lw0lolzkl.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_76lw0lolzkl.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_76lw0lolzkl.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-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-F2HZSUUY.js";
|
|
15
|
+
import "./chunk-AWLHHVSH.js";
|
|
16
|
+
import "./chunk-QCE3TXGB.js";
|
|
17
|
+
import "./chunk-4XFXMRK6.js";
|
|
18
|
+
import "./chunk-TY4XO6XR.js";
|
|
19
19
|
|
|
20
20
|
// src/autoblock/block-webpack5-frameworks.ts
|
|
21
21
|
var minimalVersionsMap = {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_76lw0lolzkl from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_76lw0lolzkl from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_76lw0lolzkl from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_76lw0lolzkl.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_76lw0lolzkl.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_76lw0lolzkl.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
|
__commonJS
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-TY4XO6XR.js";
|
|
15
15
|
|
|
16
16
|
// ../../../node_modules/semver/internal/constants.js
|
|
17
17
|
var require_constants = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_76lw0lolzkl from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_76lw0lolzkl from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_76lw0lolzkl from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_76lw0lolzkl.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_76lw0lolzkl.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_76lw0lolzkl.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
__commonJS,
|
|
14
14
|
__require,
|
|
15
15
|
__toESM
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-TY4XO6XR.js";
|
|
17
17
|
|
|
18
18
|
// ../../../node_modules/fast-glob/out/utils/array.js
|
|
19
19
|
var require_array = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_76lw0lolzkl from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_76lw0lolzkl from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_76lw0lolzkl from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_76lw0lolzkl.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_76lw0lolzkl.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_76lw0lolzkl.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -12,14 +12,14 @@ var require = CJS_COMPAT_NODE_MODULE_czaboynbpab.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
globby,
|
|
14
14
|
globbySync
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-AWLHHVSH.js";
|
|
16
16
|
import {
|
|
17
17
|
require_semver
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-4XFXMRK6.js";
|
|
19
19
|
import {
|
|
20
20
|
__commonJS,
|
|
21
21
|
__toESM
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-TY4XO6XR.js";
|
|
23
23
|
|
|
24
24
|
// ../../../node_modules/picocolors/picocolors.js
|
|
25
25
|
var require_picocolors = __commonJS({
|
|
@@ -122,11 +122,11 @@ var import_picocolors2 = __toESM(require_picocolors(), 1), import_semver = __toE
|
|
|
122
122
|
// src/autoblock/index.ts
|
|
123
123
|
var blockers = () => [
|
|
124
124
|
// add/remove blockers here
|
|
125
|
-
import("./block-dependencies-versions-
|
|
126
|
-
import("./block-node-version-
|
|
127
|
-
import("./block-webpack5-frameworks-
|
|
128
|
-
import("./block-major-version-
|
|
129
|
-
import("./block-experimental-addon-test-
|
|
125
|
+
import("./block-dependencies-versions-KQ5VBLA4.js"),
|
|
126
|
+
import("./block-node-version-PZRRFVXI.js"),
|
|
127
|
+
import("./block-webpack5-frameworks-6ZIA56NQ.js"),
|
|
128
|
+
import("./block-major-version-YLXMSRUK.js"),
|
|
129
|
+
import("./block-experimental-addon-test-DHG22BAE.js")
|
|
130
130
|
], autoblock = async (options, list = blockers()) => list.length === 0 ? null : await Promise.all(
|
|
131
131
|
list.map(async (i) => {
|
|
132
132
|
let blocker = (await i).blocker;
|
|
@@ -340,7 +340,7 @@ var processProject = async ({
|
|
|
340
340
|
};
|
|
341
341
|
}
|
|
342
342
|
}, collectProjects = async (options, configDirs, onProjectScanStart) => {
|
|
343
|
-
let { default: pLimit } = await import("./p-limit-
|
|
343
|
+
let { default: pLimit } = await import("./p-limit-A2EBNNV5.js"), currentCLIVersion = versions.storybook, limit = pLimit(5), projectPromises = configDirs.map(
|
|
344
344
|
(configDir) => limit(
|
|
345
345
|
() => processProject({
|
|
346
346
|
configDir,
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_76lw0lolzkl from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_76lw0lolzkl from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_76lw0lolzkl from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_76lw0lolzkl.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_76lw0lolzkl.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_76lw0lolzkl.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_76lw0lolzkl from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_76lw0lolzkl from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_76lw0lolzkl from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_76lw0lolzkl.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_76lw0lolzkl.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_76lw0lolzkl.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
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_76lw0lolzkl from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_76lw0lolzkl from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_76lw0lolzkl from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_76lw0lolzkl.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_76lw0lolzkl.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_76lw0lolzkl.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-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
} from "./chunk-AWLHHVSH.js";
|
|
25
|
+
import "./chunk-TY4XO6XR.js";
|
|
26
26
|
export {
|
|
27
27
|
convertPathToPattern,
|
|
28
28
|
generateGlobTasks,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_76lw0lolzkl from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_76lw0lolzkl from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_76lw0lolzkl from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_76lw0lolzkl.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_76lw0lolzkl.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_76lw0lolzkl.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-TY4XO6XR.js";
|
|
13
13
|
|
|
14
14
|
// ../../../node_modules/yocto-queue/index.js
|
|
15
15
|
var Node = class {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_76lw0lolzkl from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_76lw0lolzkl from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_76lw0lolzkl from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_76lw0lolzkl.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_76lw0lolzkl.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_76lw0lolzkl.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -25,18 +25,18 @@ import {
|
|
|
25
25
|
shortenPath,
|
|
26
26
|
updateMainConfig,
|
|
27
27
|
upgradeStorybookDependencies
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-F2HZSUUY.js";
|
|
29
29
|
import {
|
|
30
30
|
slash
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-AWLHHVSH.js";
|
|
32
32
|
import {
|
|
33
33
|
require_semver
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-4XFXMRK6.js";
|
|
35
35
|
import {
|
|
36
36
|
__commonJS,
|
|
37
37
|
__require,
|
|
38
38
|
__toESM
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-TY4XO6XR.js";
|
|
40
40
|
|
|
41
41
|
// ../../../node_modules/envinfo/dist/envinfo.js
|
|
42
42
|
var require_envinfo = __commonJS({
|
|
@@ -4761,7 +4761,7 @@ function leven(first, second, options) {
|
|
|
4761
4761
|
var import_picocolors16 = __toESM(require_picocolors(), 1);
|
|
4762
4762
|
|
|
4763
4763
|
// package.json
|
|
4764
|
-
var version = "10.2.
|
|
4764
|
+
var version = "10.2.7";
|
|
4765
4765
|
|
|
4766
4766
|
// src/add.ts
|
|
4767
4767
|
var import_semver = __toESM(require_semver(), 1);
|
|
@@ -5625,7 +5625,7 @@ import { logger as logger3 } from "storybook/internal/node-logger";
|
|
|
5625
5625
|
import { promises as fs } from "fs";
|
|
5626
5626
|
var maxConcurrentTasks = Math.max(1, os.cpus().length - 1);
|
|
5627
5627
|
async function runCodemod(globPattern = "**/*.{stories,story}.{js,jsx,ts,tsx,mjs,mjsx,mts,mtsx}", transform, { dryRun = !1, skipFormatting = !1 } = {}) {
|
|
5628
|
-
let modifiedCount = 0, unmodifiedCount = 0, errorCount = 0, { globby } = await import("./globby-
|
|
5628
|
+
let modifiedCount = 0, unmodifiedCount = 0, errorCount = 0, { globby } = await import("./globby-R4A54J54.js"), files = await globby(slash(globPattern), {
|
|
5629
5629
|
followSymbolicLinks: !0,
|
|
5630
5630
|
ignore: ["**/node_modules/**", "**/dist/**", "**/storybook-static/**", "**/build/**"]
|
|
5631
5631
|
});
|
|
@@ -5636,7 +5636,7 @@ Please try a different pattern.
|
|
|
5636
5636
|
`
|
|
5637
5637
|
), new Error("No files matched");
|
|
5638
5638
|
try {
|
|
5639
|
-
let pLimit = (await import("./p-limit-
|
|
5639
|
+
let pLimit = (await import("./p-limit-A2EBNNV5.js")).default, limit = pLimit(maxConcurrentTasks);
|
|
5640
5640
|
await Promise.all(
|
|
5641
5641
|
files.map(
|
|
5642
5642
|
(file) => limit(async () => {
|
|
@@ -5922,8 +5922,14 @@ ${err}`), info.source;
|
|
|
5922
5922
|
let relativePath = path2.relative(path2.dirname(info.path), previewConfigPath), { dir, name } = path2.parse(relativePath);
|
|
5923
5923
|
previewPath = `${dir ? `${dir}/` : ""}${name}`, previewPath.startsWith(".") || (previewPath = `./${previewPath}`), previewPath = previewPath.replace(/\\/g, "/");
|
|
5924
5924
|
}
|
|
5925
|
-
let sbConfigImportName = hasRootLevelConfig ? "storybookPreview" : "preview", sbConfigImportSpecifier = t4.importDefaultSpecifier(t4.identifier(sbConfigImportName));
|
|
5925
|
+
let sbConfigImportName = hasRootLevelConfig ? "storybookPreview" : "preview", sbConfigImportSpecifier = t4.importDefaultSpecifier(t4.identifier(sbConfigImportName)), namespaceStoryImports = /* @__PURE__ */ new Set(), namedStoryImports = /* @__PURE__ */ new Set();
|
|
5926
5926
|
programNode.body.forEach((node) => {
|
|
5927
|
+
if (t4.isImportDeclaration(node)) {
|
|
5928
|
+
let importPath = node.source.value;
|
|
5929
|
+
/\.stories(\.(ts|tsx|js|jsx|mjs|mts))?$/.test(importPath) && node.specifiers.forEach((specifier) => {
|
|
5930
|
+
t4.isImportNamespaceSpecifier(specifier) ? namespaceStoryImports.add(specifier.local.name) : t4.isImportSpecifier(specifier) ? namedStoryImports.add(specifier.local.name) : t4.isImportDefaultSpecifier(specifier) && namespaceStoryImports.add(specifier.local.name);
|
|
5931
|
+
});
|
|
5932
|
+
}
|
|
5927
5933
|
if (t4.isImportDeclaration(node) && isValidPreviewPath(node.source.value)) {
|
|
5928
5934
|
let defaultImportSpecifier = node.specifiers.find(
|
|
5929
5935
|
(specifier) => t4.isImportDefaultSpecifier(specifier)
|
|
@@ -5931,7 +5937,7 @@ ${err}`), info.source;
|
|
|
5931
5937
|
defaultImportSpecifier ? defaultImportSpecifier.local.name !== sbConfigImportName && (sbConfigImportName = defaultImportSpecifier.local.name) : node.specifiers.push(sbConfigImportSpecifier), previewImport = node;
|
|
5932
5938
|
}
|
|
5933
5939
|
});
|
|
5934
|
-
let hasMeta = !!csf._meta;
|
|
5940
|
+
let hasMeta = !!csf._meta, storyFileImports = /* @__PURE__ */ new Set([...namespaceStoryImports, ...namedStoryImports]);
|
|
5935
5941
|
Object.entries(csf._storyExports).forEach(([exportName, decl]) => {
|
|
5936
5942
|
let id = decl.id, declarator = decl, init = t4.isVariableDeclarator(declarator) ? declarator.init : void 0;
|
|
5937
5943
|
t4.isIdentifier(id) && init && (id.typeAnnotation && (id.typeAnnotation = null), (t4.isTSSatisfiesExpression(init) || t4.isTSAsExpression(init)) && (init = init.expression), t4.isObjectExpression(init) ? (declarator.init = t4.callExpression(
|
|
@@ -5962,6 +5968,11 @@ ${err}`), info.source;
|
|
|
5962
5968
|
)
|
|
5963
5969
|
);
|
|
5964
5970
|
if (traverse3(csf._ast, {
|
|
5971
|
+
/**
|
|
5972
|
+
* Handle SAME-FILE story references.
|
|
5973
|
+
*
|
|
5974
|
+
* Examples: Primary.args → Primary.input.args meta.args → meta.input.args
|
|
5975
|
+
*/
|
|
5965
5976
|
Identifier(nodePath) {
|
|
5966
5977
|
let identifierName = nodePath.node.name, binding = nodePath.scope.getBinding(identifierName);
|
|
5967
5978
|
if (binding && storyExportDecls.has(binding.identifier.name) || identifierName === metaVariableName) {
|
|
@@ -5978,6 +5989,48 @@ ${err}`), info.source;
|
|
|
5978
5989
|
throw err;
|
|
5979
5990
|
}
|
|
5980
5991
|
}
|
|
5992
|
+
},
|
|
5993
|
+
/**
|
|
5994
|
+
* Handle CROSS-FILE story references.
|
|
5995
|
+
*
|
|
5996
|
+
* When we import stories from another file: import * as BaseStories from './Button.stories';
|
|
5997
|
+
*
|
|
5998
|
+
* And use them like: BaseStories.Primary.args
|
|
5999
|
+
*
|
|
6000
|
+
* We need to transform to: BaseStories.Primary.input.args
|
|
6001
|
+
*
|
|
6002
|
+
* Why? Because the imported file will ALSO be transformed to CSF4, where story properties are
|
|
6003
|
+
* accessed via `.input`.
|
|
6004
|
+
*/
|
|
6005
|
+
MemberExpression(nodePath) {
|
|
6006
|
+
let node = nodePath.node, innerObject = node.object;
|
|
6007
|
+
if (t4.isMemberExpression(innerObject)) {
|
|
6008
|
+
let importName = innerObject.object, storyName = innerObject.property, accessedProperty = node.property;
|
|
6009
|
+
if (t4.isIdentifier(importName) && storyFileImports.has(importName.name) && t4.isIdentifier(storyName)) {
|
|
6010
|
+
if (t4.isIdentifier(storyName, { name: "input" }) || !t4.isIdentifier(accessedProperty) || accessedProperty.name === "input" || reuseDisallowList.includes(accessedProperty.name))
|
|
6011
|
+
return;
|
|
6012
|
+
nodePath.node.object = t4.memberExpression(innerObject, t4.identifier("input")), nodePath.skip();
|
|
6013
|
+
}
|
|
6014
|
+
}
|
|
6015
|
+
if (t4.isIdentifier(innerObject) && namedStoryImports.has(innerObject.name)) {
|
|
6016
|
+
let accessedProperty = node.property;
|
|
6017
|
+
if (!t4.isIdentifier(accessedProperty) || accessedProperty.name === "input" || reuseDisallowList.includes(accessedProperty.name))
|
|
6018
|
+
return;
|
|
6019
|
+
nodePath.replaceWith(
|
|
6020
|
+
t4.memberExpression(
|
|
6021
|
+
t4.memberExpression(innerObject, t4.identifier("input")),
|
|
6022
|
+
accessedProperty
|
|
6023
|
+
)
|
|
6024
|
+
), nodePath.skip();
|
|
6025
|
+
return;
|
|
6026
|
+
}
|
|
6027
|
+
if (t4.isIdentifier(innerObject) && namespaceStoryImports.has(innerObject.name)) {
|
|
6028
|
+
let storyName = node.property;
|
|
6029
|
+
if (t4.isIdentifier(storyName, { name: "input" }))
|
|
6030
|
+
return;
|
|
6031
|
+
let parent = nodePath.parent;
|
|
6032
|
+
t4.isSpreadElement(parent) && (nodePath.replaceWith(t4.memberExpression(node, t4.identifier("input"))), nodePath.skip());
|
|
6033
|
+
}
|
|
5981
6034
|
}
|
|
5982
6035
|
}), transformedStoryExports.size === 0)
|
|
5983
6036
|
return logger5.warn(
|
|
@@ -6414,7 +6467,7 @@ var addonA11yParameters = {
|
|
|
6414
6467
|
errors.push({ file: previewFileToUpdate, error });
|
|
6415
6468
|
}
|
|
6416
6469
|
}
|
|
6417
|
-
let { default: pLimit } = await import("./p-limit-
|
|
6470
|
+
let { default: pLimit } = await import("./p-limit-A2EBNNV5.js"), limit = pLimit(10);
|
|
6418
6471
|
if (await Promise.all(
|
|
6419
6472
|
storyFilesToUpdate.map(
|
|
6420
6473
|
(file) => limit(async () => {
|
|
@@ -6568,7 +6621,7 @@ var addonGlobalsApi = {
|
|
|
6568
6621
|
}
|
|
6569
6622
|
};
|
|
6570
6623
|
async function transformStoryFiles(files, options, dryRun) {
|
|
6571
|
-
let errors = [], { default: pLimit } = await import("./p-limit-
|
|
6624
|
+
let errors = [], { default: pLimit } = await import("./p-limit-A2EBNNV5.js"), limit = pLimit(10);
|
|
6572
6625
|
return await Promise.all(
|
|
6573
6626
|
files.map(
|
|
6574
6627
|
(file) => limit(async () => {
|
|
@@ -6760,7 +6813,7 @@ function transformPackageJson(content) {
|
|
|
6760
6813
|
return hasChanges ? JSON.stringify(packageJson, null, 2) : null;
|
|
6761
6814
|
}
|
|
6762
6815
|
var transformPackageJsonFiles = async (files, dryRun) => {
|
|
6763
|
-
let errors = [], { default: pLimit } = await import("./p-limit-
|
|
6816
|
+
let errors = [], { default: pLimit } = await import("./p-limit-A2EBNNV5.js"), limit = pLimit(10);
|
|
6764
6817
|
return await Promise.all(
|
|
6765
6818
|
files.map(
|
|
6766
6819
|
(file) => limit(async () => {
|
|
@@ -6799,7 +6852,7 @@ var transformPackageJsonFiles = async (files, dryRun) => {
|
|
|
6799
6852
|
dryRun
|
|
6800
6853
|
);
|
|
6801
6854
|
errors.push(...packageJsonErrors);
|
|
6802
|
-
let { globby } = await import("./globby-
|
|
6855
|
+
let { globby } = await import("./globby-R4A54J54.js"), configFiles = await globby([`${configDir}/**/*`]), importErrors = await transformImportFiles(
|
|
6803
6856
|
[...storiesPaths, ...configFiles].filter(Boolean),
|
|
6804
6857
|
{
|
|
6805
6858
|
...consolidatedPackages,
|
|
@@ -7152,7 +7205,7 @@ var VITE_DEFAULT_VERSION = "^7.0.0", transformMainConfig = async (mainConfigPath
|
|
|
7152
7205
|
]);
|
|
7153
7206
|
}
|
|
7154
7207
|
mainConfigPath && (logger11.debug("Updating main config file..."), await transformMainConfig(mainConfigPath, dryRun)), logger11.debug("Scanning and updating import statements...");
|
|
7155
|
-
let { globby } = await import("./globby-
|
|
7208
|
+
let { globby } = await import("./globby-R4A54J54.js"), configFiles = await globby([`${configDir}/**/*`]), allFiles = [...storiesPaths, ...configFiles].filter(Boolean), transformErrors = await transformImportFiles2(
|
|
7156
7209
|
allFiles,
|
|
7157
7210
|
{
|
|
7158
7211
|
"@storybook/nextjs": "@storybook/nextjs-vite"
|
|
@@ -7362,7 +7415,7 @@ var getAllDependencies = (packageJson) => Object.keys({
|
|
|
7362
7415
|
let regex = new RegExp(`(['"])${renderer}(['"])`, "g");
|
|
7363
7416
|
return regex.test(source) ? source.replace(regex, `$1${framework}$2`) : null;
|
|
7364
7417
|
}, transformSourceFiles = async (files, renderer, framework, dryRun) => {
|
|
7365
|
-
let errors = [], { default: pLimit } = await import("./p-limit-
|
|
7418
|
+
let errors = [], { default: pLimit } = await import("./p-limit-A2EBNNV5.js"), limit = pLimit(10);
|
|
7366
7419
|
return await Promise.all(
|
|
7367
7420
|
files.map(
|
|
7368
7421
|
(file) => limit(async () => {
|
|
@@ -7429,7 +7482,7 @@ var getAllDependencies = (packageJson) => Object.keys({
|
|
|
7429
7482
|
continue;
|
|
7430
7483
|
logger13.debug(`
|
|
7431
7484
|
Migrating ${rendererPackage} to ${selectedFramework}`);
|
|
7432
|
-
let { globby } = await import("./globby-
|
|
7485
|
+
let { globby } = await import("./globby-R4A54J54.js"), configFiles = await globby([`${configDir}/**/*`]);
|
|
7433
7486
|
await transformSourceFiles(
|
|
7434
7487
|
[...storiesPaths, ...configFiles].filter(Boolean),
|
|
7435
7488
|
rendererPackage,
|
|
@@ -7459,7 +7512,7 @@ async function renameInFile(filePath, oldText, newText) {
|
|
|
7459
7512
|
}
|
|
7460
7513
|
var getDotStorybookReferences = async (searchDir) => {
|
|
7461
7514
|
try {
|
|
7462
|
-
let { globby } = await import("./globby-
|
|
7515
|
+
let { globby } = await import("./globby-R4A54J54.js"), { readFile: readFile10 } = await import("node:fs/promises"), files = await globby(`${searchDir}/**/*`, {
|
|
7463
7516
|
onlyFiles: !0,
|
|
7464
7517
|
gitignore: !0
|
|
7465
7518
|
}), referencedFiles = [];
|
|
@@ -7480,7 +7533,7 @@ var getDotStorybookReferences = async (searchDir) => {
|
|
|
7480
7533
|
async check({ packageManager, mainConfigPath }) {
|
|
7481
7534
|
if (!packageManager.getAllDependencies()["@storybook/react-native"])
|
|
7482
7535
|
return null;
|
|
7483
|
-
let projectDir = mainConfigPath ? join2(mainConfigPath, "..", "..") : process.cwd(), storybookDir = join2(projectDir, ".storybook"), rnStorybookDir = join2(projectDir, ".rnstorybook"), { globby } = await import("./globby-
|
|
7536
|
+
let projectDir = mainConfigPath ? join2(mainConfigPath, "..", "..") : process.cwd(), storybookDir = join2(projectDir, ".storybook"), rnStorybookDir = join2(projectDir, ".rnstorybook"), { globby } = await import("./globby-R4A54J54.js"), requiresFiles = await globby(join2(storybookDir, "storybook.requires.*"));
|
|
7484
7537
|
return existsSync2(storybookDir) && requiresFiles.length > 0 && !existsSync2(rnStorybookDir) ? { storybookDir, rnStorybookDir } : null;
|
|
7485
7538
|
},
|
|
7486
7539
|
prompt() {
|
package/dist/bin/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
2
|
+
import CJS_COMPAT_NODE_URL_76lw0lolzkl from 'node:url';
|
|
3
|
+
import CJS_COMPAT_NODE_PATH_76lw0lolzkl from 'node:path';
|
|
4
|
+
import CJS_COMPAT_NODE_MODULE_76lw0lolzkl from "node:module";
|
|
5
5
|
|
|
6
|
-
var __filename =
|
|
7
|
-
var __dirname =
|
|
8
|
-
var require =
|
|
6
|
+
var __filename = CJS_COMPAT_NODE_URL_76lw0lolzkl.fileURLToPath(import.meta.url);
|
|
7
|
+
var __dirname = CJS_COMPAT_NODE_PATH_76lw0lolzkl.dirname(__filename);
|
|
8
|
+
var require = CJS_COMPAT_NODE_MODULE_76lw0lolzkl.createRequire(import.meta.url);
|
|
9
9
|
|
|
10
10
|
// ------------------------------------------------------------
|
|
11
11
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -19,4 +19,4 @@ var [majorNodeVersion, minorNodeVersion] = process.versions.node.split(".").map(
|
|
|
19
19
|
dedent`To run Storybook, you need Node.js version 20.19+ or 22.12+.
|
|
20
20
|
You are currently running Node.js ${process.version}. Please upgrade your Node.js installation.`
|
|
21
21
|
), process.exit(1));
|
|
22
|
-
import("../_node-chunks/run-
|
|
22
|
+
import("../_node-chunks/run-B4LF6WVD.js");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/cli",
|
|
3
|
-
"version": "10.2.
|
|
3
|
+
"version": "10.2.7",
|
|
4
4
|
"description": "Storybook CLI: Develop, document, and test UI components in isolation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
"!src/**/*"
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@storybook/codemod": "10.2.
|
|
40
|
+
"@storybook/codemod": "10.2.7",
|
|
41
41
|
"@types/semver": "^7.7.1",
|
|
42
42
|
"commander": "^14.0.2",
|
|
43
|
-
"create-storybook": "10.2.
|
|
43
|
+
"create-storybook": "10.2.7",
|
|
44
44
|
"jscodeshift": "^0.15.1",
|
|
45
|
-
"storybook": "10.2.
|
|
45
|
+
"storybook": "10.2.7",
|
|
46
46
|
"ts-dedent": "^2.0.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_czaboynbpab from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_czaboynbpab from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_czaboynbpab from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_czaboynbpab.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_czaboynbpab.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_czaboynbpab.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|