@storybook/cli 10.3.3 → 10.3.4
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-SI4EXXQ5.js → block-dependencies-versions-5UXO375A.js} +11 -11
- package/dist/_node-chunks/{block-experimental-addon-test-7XPIOKU5.js → block-experimental-addon-test-SXS7EBLE.js} +9 -9
- package/dist/_node-chunks/{block-major-version-RLFYRJ5E.js → block-major-version-VSIOYQD6.js} +9 -9
- package/dist/_node-chunks/{block-node-version-E4WLHHYR.js → block-node-version-LUBJEVB4.js} +9 -9
- package/dist/_node-chunks/{block-webpack5-frameworks-D6WVYX5P.js → block-webpack5-frameworks-4GGPQRSD.js} +11 -11
- package/dist/_node-chunks/{chunk-BH3XEHG4.js → chunk-BE2AADWY.js} +15 -15
- package/dist/_node-chunks/chunk-GEMWLTRF.js +11 -0
- package/dist/_node-chunks/{chunk-F3YZDIML.js → chunk-OS2TPMDH.js} +7 -7
- package/dist/_node-chunks/{chunk-2IIAWCCB.js → chunk-YBFERC74.js} +7 -7
- package/dist/_node-chunks/{chunk-K5XJCZOR.js → chunk-YQ3ZMVXM.js} +6 -6
- package/dist/_node-chunks/{globby-VB6CZCHQ.js → globby-IQBZ7VNA.js} +8 -8
- package/dist/_node-chunks/{p-limit-EUIFDE5A.js → p-limit-V366AFUS.js} +7 -7
- package/dist/_node-chunks/{run-NTMEAVO5.js → run-EN64L6LH.js} +75 -63
- package/dist/bin/index.js +7 -7
- package/package.json +4 -4
- package/dist/_node-chunks/chunk-NKGPTBPV.js +0 -11
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_abjmrivaaj8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_abjmrivaaj8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_abjmrivaaj8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_abjmrivaaj8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_abjmrivaaj8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_abjmrivaaj8.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-BE2AADWY.js";
|
|
15
|
+
import "./chunk-OS2TPMDH.js";
|
|
16
|
+
import "./chunk-GEMWLTRF.js";
|
|
17
|
+
import "./chunk-YBFERC74.js";
|
|
18
|
+
import "./chunk-YQ3ZMVXM.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_abjmrivaaj8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_abjmrivaaj8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_abjmrivaaj8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_abjmrivaaj8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_abjmrivaaj8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_abjmrivaaj8.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-GEMWLTRF.js";
|
|
13
13
|
import {
|
|
14
14
|
require_semver
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-YBFERC74.js";
|
|
16
16
|
import {
|
|
17
17
|
__toESM
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-YQ3ZMVXM.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-RLFYRJ5E.js → block-major-version-VSIOYQD6.js}
RENAMED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_abjmrivaaj8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_abjmrivaaj8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_abjmrivaaj8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_abjmrivaaj8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_abjmrivaaj8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_abjmrivaaj8.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-GEMWLTRF.js";
|
|
13
13
|
import {
|
|
14
14
|
require_semver
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-YBFERC74.js";
|
|
16
16
|
import {
|
|
17
17
|
__toESM
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-YQ3ZMVXM.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_abjmrivaaj8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_abjmrivaaj8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_abjmrivaaj8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_abjmrivaaj8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_abjmrivaaj8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_abjmrivaaj8.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-GEMWLTRF.js";
|
|
13
13
|
import {
|
|
14
14
|
require_semver
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-YBFERC74.js";
|
|
16
16
|
import {
|
|
17
17
|
__toESM
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-YQ3ZMVXM.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_abjmrivaaj8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_abjmrivaaj8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_abjmrivaaj8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_abjmrivaaj8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_abjmrivaaj8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_abjmrivaaj8.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-BE2AADWY.js";
|
|
15
|
+
import "./chunk-OS2TPMDH.js";
|
|
16
|
+
import "./chunk-GEMWLTRF.js";
|
|
17
|
+
import "./chunk-YBFERC74.js";
|
|
18
|
+
import "./chunk-YQ3ZMVXM.js";
|
|
19
19
|
|
|
20
20
|
// src/autoblock/block-webpack5-frameworks.ts
|
|
21
21
|
var minimalVersionsMap = {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_abjmrivaaj8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_abjmrivaaj8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_abjmrivaaj8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_abjmrivaaj8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_abjmrivaaj8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_abjmrivaaj8.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_akiroysugw7.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
globby,
|
|
14
14
|
globbySync
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-OS2TPMDH.js";
|
|
16
16
|
import {
|
|
17
17
|
require_semver
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-YBFERC74.js";
|
|
19
19
|
import {
|
|
20
20
|
__commonJS,
|
|
21
21
|
__toESM
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-YQ3ZMVXM.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-5UXO375A.js"),
|
|
126
|
+
import("./block-node-version-LUBJEVB4.js"),
|
|
127
|
+
import("./block-webpack5-frameworks-4GGPQRSD.js"),
|
|
128
|
+
import("./block-major-version-VSIOYQD6.js"),
|
|
129
|
+
import("./block-experimental-addon-test-SXS7EBLE.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-V366AFUS.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_abjmrivaaj8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_abjmrivaaj8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_abjmrivaaj8 from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_abjmrivaaj8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_abjmrivaaj8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_abjmrivaaj8.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_abjmrivaaj8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_abjmrivaaj8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_abjmrivaaj8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_abjmrivaaj8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_abjmrivaaj8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_abjmrivaaj8.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-YQ3ZMVXM.js";
|
|
17
17
|
|
|
18
18
|
// ../../../node_modules/fast-glob/out/utils/array.js
|
|
19
19
|
var require_array = __commonJS({
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_abjmrivaaj8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_abjmrivaaj8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_abjmrivaaj8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_abjmrivaaj8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_abjmrivaaj8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_abjmrivaaj8.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-YQ3ZMVXM.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_abjmrivaaj8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_abjmrivaaj8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_abjmrivaaj8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_abjmrivaaj8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_abjmrivaaj8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_abjmrivaaj8.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_abjmrivaaj8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_abjmrivaaj8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_abjmrivaaj8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_abjmrivaaj8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_abjmrivaaj8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_abjmrivaaj8.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-OS2TPMDH.js";
|
|
25
|
+
import "./chunk-YQ3ZMVXM.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_abjmrivaaj8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_abjmrivaaj8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_abjmrivaaj8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_abjmrivaaj8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_abjmrivaaj8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_abjmrivaaj8.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-YQ3ZMVXM.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_abjmrivaaj8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_abjmrivaaj8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_abjmrivaaj8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_abjmrivaaj8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_abjmrivaaj8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_abjmrivaaj8.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-BE2AADWY.js";
|
|
29
29
|
import {
|
|
30
30
|
slash
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-OS2TPMDH.js";
|
|
32
32
|
import {
|
|
33
33
|
require_semver
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-YBFERC74.js";
|
|
35
35
|
import {
|
|
36
36
|
__commonJS,
|
|
37
37
|
__require,
|
|
38
38
|
__toESM
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-YQ3ZMVXM.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.3.
|
|
4764
|
+
var version = "10.3.4";
|
|
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-IQBZ7VNA.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-V366AFUS.js")).default, limit = pLimit(maxConcurrentTasks);
|
|
5640
5640
|
await Promise.all(
|
|
5641
5641
|
files.map(
|
|
5642
5642
|
(file) => limit(async () => {
|
|
@@ -5766,7 +5766,17 @@ async function configToCsfFactory(info, { configType, frameworkPackage }, { dryR
|
|
|
5766
5766
|
return logger4.log(`Error when parsing ${info.path}, skipping:
|
|
5767
5767
|
${err}`), info.source;
|
|
5768
5768
|
}
|
|
5769
|
-
let methodName = configType === "main" ? "defineMain" : "definePreview", programNode = config._ast.program, exportDecls = config._exportDecls, defineConfigProps = getConfigProperties(exportDecls, { configType }), hasNamedExports = defineConfigProps.length > 0
|
|
5769
|
+
let methodName = configType === "main" ? "defineMain" : "definePreview", programNode = config._ast.program, exportDecls = config._exportDecls, defineConfigProps = getConfigProperties(exportDecls, { configType }), hasNamedExports = defineConfigProps.length > 0, isAlreadyTransformed = programNode.body.some((node) => {
|
|
5770
|
+
if (!t2.isExportDefaultDeclaration(node)) return !1;
|
|
5771
|
+
let declaration = typeof config._unwrap == "function" ? config._unwrap(node.declaration) : node.declaration;
|
|
5772
|
+
return t2.isCallExpression(declaration) && t2.isIdentifier(declaration.callee) && declaration.callee.name === methodName;
|
|
5773
|
+
}), expectedImportSource = frameworkPackage + (configType === "main" ? "/node" : ""), hasCorrectImport = programNode.body.some(
|
|
5774
|
+
(node) => t2.isImportDeclaration(node) && node.importKind !== "type" && node.source.value === expectedImportSource && node.specifiers.some(
|
|
5775
|
+
(spec) => t2.isImportSpecifier(spec) && t2.isIdentifier(spec.imported) && spec.imported.name === methodName
|
|
5776
|
+
)
|
|
5777
|
+
), shouldSkipTransform = configType === "main" ? isAlreadyTransformed : isAlreadyTransformed && !hasNamedExports;
|
|
5778
|
+
if (shouldSkipTransform && hasCorrectImport)
|
|
5779
|
+
return info.source;
|
|
5770
5780
|
function findDeclarationNodeIndex(declarationName) {
|
|
5771
5781
|
return programNode.body.findIndex(
|
|
5772
5782
|
(n) => t2.isVariableDeclaration(n) && n.declarations.some((d) => {
|
|
@@ -5775,46 +5785,48 @@ ${err}`), info.source;
|
|
|
5775
5785
|
})
|
|
5776
5786
|
);
|
|
5777
5787
|
}
|
|
5778
|
-
if (
|
|
5779
|
-
|
|
5780
|
-
|
|
5781
|
-
|
|
5782
|
-
|
|
5783
|
-
|
|
5784
|
-
|
|
5785
|
-
|
|
5786
|
-
|
|
5787
|
-
|
|
5788
|
-
|
|
5789
|
-
|
|
5790
|
-
|
|
5791
|
-
|
|
5792
|
-
|
|
5793
|
-
|
|
5794
|
-
|
|
5795
|
-
|
|
5796
|
-
|
|
5797
|
-
|
|
5798
|
-
|
|
5799
|
-
|
|
5800
|
-
|
|
5801
|
-
|
|
5802
|
-
|
|
5803
|
-
|
|
5804
|
-
|
|
5805
|
-
|
|
5806
|
-
|
|
5807
|
-
|
|
5808
|
-
|
|
5809
|
-
|
|
5810
|
-
|
|
5811
|
-
|
|
5812
|
-
t2.
|
|
5813
|
-
|
|
5814
|
-
|
|
5815
|
-
|
|
5816
|
-
|
|
5817
|
-
|
|
5788
|
+
if (!shouldSkipTransform) {
|
|
5789
|
+
if (config._exportsObject && hasNamedExports) {
|
|
5790
|
+
config._exportsObject.properties = [...defineConfigProps, ...config._exportsObject.properties], programNode.body = removeExportDeclarations(programNode, exportDecls);
|
|
5791
|
+
let defineConfigCall = t2.callExpression(t2.identifier(methodName), [config._exportsObject]), exportDefaultNode = null, declarationNodeIndex = -1;
|
|
5792
|
+
programNode.body.forEach((node) => {
|
|
5793
|
+
if (t2.isExportDefaultDeclaration(node) && t2.isIdentifier(node.declaration)) {
|
|
5794
|
+
let declarationName = node.declaration.name;
|
|
5795
|
+
if (declarationNodeIndex = findDeclarationNodeIndex(declarationName), declarationNodeIndex !== -1) {
|
|
5796
|
+
exportDefaultNode = node;
|
|
5797
|
+
let declarationNode = programNode.body[declarationNodeIndex];
|
|
5798
|
+
if (t2.isVariableDeclaration(declarationNode)) {
|
|
5799
|
+
let id = declarationNode.declarations[0].id;
|
|
5800
|
+
t2.isIdentifier(id) && id.name && programNode.body.splice(declarationNodeIndex, 1);
|
|
5801
|
+
}
|
|
5802
|
+
}
|
|
5803
|
+
} else t2.isExportDefaultDeclaration(node) && t2.isObjectExpression(node.declaration) && (exportDefaultNode = node);
|
|
5804
|
+
}), exportDefaultNode !== null && (exportDefaultNode.declaration = defineConfigCall);
|
|
5805
|
+
} else if (config._exportsObject) {
|
|
5806
|
+
let defineConfigCall = t2.callExpression(t2.identifier(methodName), [config._exportsObject]), exportDefaultNode = null, declarationNodeIndex = -1;
|
|
5807
|
+
programNode.body.forEach((node) => {
|
|
5808
|
+
let declaration = t2.isExportDefaultDeclaration(node) && config._unwrap(node.declaration);
|
|
5809
|
+
if (t2.isExportDefaultDeclaration(node) && t2.isIdentifier(declaration)) {
|
|
5810
|
+
let declarationName = declaration.name;
|
|
5811
|
+
if (declarationNodeIndex = findDeclarationNodeIndex(declarationName), declarationNodeIndex !== -1) {
|
|
5812
|
+
exportDefaultNode = node;
|
|
5813
|
+
let declarationNode = programNode.body[declarationNodeIndex];
|
|
5814
|
+
if (t2.isVariableDeclaration(declarationNode)) {
|
|
5815
|
+
let id = declarationNode.declarations[0].id;
|
|
5816
|
+
t2.isIdentifier(id) && id.name && programNode.body.splice(declarationNodeIndex, 1);
|
|
5817
|
+
}
|
|
5818
|
+
}
|
|
5819
|
+
} else t2.isExportDefaultDeclaration(node) && t2.isObjectExpression(node.declaration) && (exportDefaultNode = node);
|
|
5820
|
+
}), exportDefaultNode !== null && (exportDefaultNode.declaration = defineConfigCall);
|
|
5821
|
+
} else if (hasNamedExports) {
|
|
5822
|
+
let defineConfigCall = t2.callExpression(t2.identifier(methodName), [
|
|
5823
|
+
t2.objectExpression(defineConfigProps)
|
|
5824
|
+
]);
|
|
5825
|
+
programNode.body = removeExportDeclarations(programNode, exportDecls), programNode.body.push(t2.exportDefaultDeclaration(defineConfigCall));
|
|
5826
|
+
} else if (configType === "preview") {
|
|
5827
|
+
let defineConfigCall = t2.callExpression(t2.identifier(methodName), [t2.objectExpression([])]);
|
|
5828
|
+
programNode.body.push(t2.exportDefaultDeclaration(defineConfigCall));
|
|
5829
|
+
}
|
|
5818
5830
|
}
|
|
5819
5831
|
let configImport = t2.importDeclaration(
|
|
5820
5832
|
[t2.importSpecifier(t2.identifier(methodName), t2.identifier(methodName))],
|
|
@@ -6467,7 +6479,7 @@ var addonA11yParameters = {
|
|
|
6467
6479
|
errors.push({ file: previewFileToUpdate, error });
|
|
6468
6480
|
}
|
|
6469
6481
|
}
|
|
6470
|
-
let { default: pLimit } = await import("./p-limit-
|
|
6482
|
+
let { default: pLimit } = await import("./p-limit-V366AFUS.js"), limit = pLimit(10);
|
|
6471
6483
|
if (await Promise.all(
|
|
6472
6484
|
storyFilesToUpdate.map(
|
|
6473
6485
|
(file) => limit(async () => {
|
|
@@ -6621,7 +6633,7 @@ var addonGlobalsApi = {
|
|
|
6621
6633
|
}
|
|
6622
6634
|
};
|
|
6623
6635
|
async function transformStoryFiles(files, options, dryRun) {
|
|
6624
|
-
let errors = [], { default: pLimit } = await import("./p-limit-
|
|
6636
|
+
let errors = [], { default: pLimit } = await import("./p-limit-V366AFUS.js"), limit = pLimit(10);
|
|
6625
6637
|
return await Promise.all(
|
|
6626
6638
|
files.map(
|
|
6627
6639
|
(file) => limit(async () => {
|
|
@@ -6813,7 +6825,7 @@ function transformPackageJson(content) {
|
|
|
6813
6825
|
return hasChanges ? JSON.stringify(packageJson, null, 2) : null;
|
|
6814
6826
|
}
|
|
6815
6827
|
var transformPackageJsonFiles = async (files, dryRun) => {
|
|
6816
|
-
let errors = [], { default: pLimit } = await import("./p-limit-
|
|
6828
|
+
let errors = [], { default: pLimit } = await import("./p-limit-V366AFUS.js"), limit = pLimit(10);
|
|
6817
6829
|
return await Promise.all(
|
|
6818
6830
|
files.map(
|
|
6819
6831
|
(file) => limit(async () => {
|
|
@@ -6852,7 +6864,7 @@ var transformPackageJsonFiles = async (files, dryRun) => {
|
|
|
6852
6864
|
dryRun
|
|
6853
6865
|
);
|
|
6854
6866
|
errors.push(...packageJsonErrors);
|
|
6855
|
-
let { globby } = await import("./globby-
|
|
6867
|
+
let { globby } = await import("./globby-IQBZ7VNA.js"), configFiles = await globby([`${configDir}/**/*`]), importErrors = await transformImportFiles(
|
|
6856
6868
|
[...storiesPaths, ...configFiles].filter(Boolean),
|
|
6857
6869
|
{
|
|
6858
6870
|
...consolidatedPackages,
|
|
@@ -7205,7 +7217,7 @@ var VITE_DEFAULT_VERSION = "^7.0.0", transformMainConfig = async (mainConfigPath
|
|
|
7205
7217
|
]);
|
|
7206
7218
|
}
|
|
7207
7219
|
mainConfigPath && (logger11.debug("Updating main config file..."), await transformMainConfig(mainConfigPath, dryRun)), logger11.debug("Scanning and updating import statements...");
|
|
7208
|
-
let { globby } = await import("./globby-
|
|
7220
|
+
let { globby } = await import("./globby-IQBZ7VNA.js"), configFiles = await globby([`${configDir}/**/*`]), allFiles = [...storiesPaths, ...configFiles].filter(Boolean), transformErrors = await transformImportFiles2(
|
|
7209
7221
|
allFiles,
|
|
7210
7222
|
{
|
|
7211
7223
|
"@storybook/nextjs": "@storybook/nextjs-vite"
|
|
@@ -7415,7 +7427,7 @@ var getAllDependencies = (packageJson) => Object.keys({
|
|
|
7415
7427
|
let regex = new RegExp(`(['"])${renderer}(['"])`, "g");
|
|
7416
7428
|
return regex.test(source) ? source.replace(regex, `$1${framework}$2`) : null;
|
|
7417
7429
|
}, transformSourceFiles = async (files, renderer, framework, dryRun) => {
|
|
7418
|
-
let errors = [], { default: pLimit } = await import("./p-limit-
|
|
7430
|
+
let errors = [], { default: pLimit } = await import("./p-limit-V366AFUS.js"), limit = pLimit(10);
|
|
7419
7431
|
return await Promise.all(
|
|
7420
7432
|
files.map(
|
|
7421
7433
|
(file) => limit(async () => {
|
|
@@ -7482,7 +7494,7 @@ var getAllDependencies = (packageJson) => Object.keys({
|
|
|
7482
7494
|
continue;
|
|
7483
7495
|
logger13.debug(`
|
|
7484
7496
|
Migrating ${rendererPackage} to ${selectedFramework}`);
|
|
7485
|
-
let { globby } = await import("./globby-
|
|
7497
|
+
let { globby } = await import("./globby-IQBZ7VNA.js"), configFiles = await globby([`${configDir}/**/*`]);
|
|
7486
7498
|
await transformSourceFiles(
|
|
7487
7499
|
[...storiesPaths, ...configFiles].filter(Boolean),
|
|
7488
7500
|
rendererPackage,
|
|
@@ -7512,7 +7524,7 @@ async function renameInFile(filePath, oldText, newText) {
|
|
|
7512
7524
|
}
|
|
7513
7525
|
var getDotStorybookReferences = async (searchDir) => {
|
|
7514
7526
|
try {
|
|
7515
|
-
let { globby } = await import("./globby-
|
|
7527
|
+
let { globby } = await import("./globby-IQBZ7VNA.js"), { readFile: readFile10 } = await import("node:fs/promises"), files = await globby(`${searchDir}/**/*`, {
|
|
7516
7528
|
onlyFiles: !0,
|
|
7517
7529
|
gitignore: !0
|
|
7518
7530
|
}), referencedFiles = [];
|
|
@@ -7533,7 +7545,7 @@ var getDotStorybookReferences = async (searchDir) => {
|
|
|
7533
7545
|
async check({ packageManager, mainConfigPath }) {
|
|
7534
7546
|
if (!packageManager.getAllDependencies()["@storybook/react-native"])
|
|
7535
7547
|
return null;
|
|
7536
|
-
let projectDir = mainConfigPath ? join2(mainConfigPath, "..", "..") : process.cwd(), storybookDir = join2(projectDir, ".storybook"), rnStorybookDir = join2(projectDir, ".rnstorybook"), { globby } = await import("./globby-
|
|
7548
|
+
let projectDir = mainConfigPath ? join2(mainConfigPath, "..", "..") : process.cwd(), storybookDir = join2(projectDir, ".storybook"), rnStorybookDir = join2(projectDir, ".rnstorybook"), { globby } = await import("./globby-IQBZ7VNA.js"), requiresFiles = await globby(join2(storybookDir, "storybook.requires.*"));
|
|
7537
7549
|
return existsSync2(storybookDir) && requiresFiles.length > 0 && !existsSync2(rnStorybookDir) ? { storybookDir, rnStorybookDir } : null;
|
|
7538
7550
|
},
|
|
7539
7551
|
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_abjmrivaaj8 from 'node:url';
|
|
3
|
+
import CJS_COMPAT_NODE_PATH_abjmrivaaj8 from 'node:path';
|
|
4
|
+
import CJS_COMPAT_NODE_MODULE_abjmrivaaj8 from "node:module";
|
|
5
5
|
|
|
6
|
-
var __filename =
|
|
7
|
-
var __dirname =
|
|
8
|
-
var require =
|
|
6
|
+
var __filename = CJS_COMPAT_NODE_URL_abjmrivaaj8.fileURLToPath(import.meta.url);
|
|
7
|
+
var __dirname = CJS_COMPAT_NODE_PATH_abjmrivaaj8.dirname(__filename);
|
|
8
|
+
var require = CJS_COMPAT_NODE_MODULE_abjmrivaaj8.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-EN64L6LH.js");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/cli",
|
|
3
|
-
"version": "10.3.
|
|
3
|
+
"version": "10.3.4",
|
|
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.3.
|
|
40
|
+
"@storybook/codemod": "10.3.4",
|
|
41
41
|
"@types/semver": "^7.7.1",
|
|
42
42
|
"commander": "^14.0.2",
|
|
43
|
-
"create-storybook": "10.3.
|
|
43
|
+
"create-storybook": "10.3.4",
|
|
44
44
|
"jscodeshift": "^0.15.1",
|
|
45
|
-
"storybook": "10.3.
|
|
45
|
+
"storybook": "10.3.4",
|
|
46
46
|
"ts-dedent": "^2.0.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_akiroysugw7 from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_akiroysugw7 from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_akiroysugw7 from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_akiroysugw7.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_akiroysugw7.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_akiroysugw7.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|