@storybook/cli 10.6.3 → 10.6.5
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-ZMIL5IGD.js → block-dependencies-versions-54XSJV6F.js} +11 -11
- package/dist/_node-chunks/{block-experimental-addon-test-YYSL3A7K.js → block-experimental-addon-test-XSR32WFR.js} +9 -9
- package/dist/_node-chunks/{block-major-version-TPWMXNWN.js → block-major-version-2O4MLIT6.js} +9 -9
- package/dist/_node-chunks/{block-node-version-FTCS4PHQ.js → block-node-version-3M2J2V3M.js} +9 -9
- package/dist/_node-chunks/{block-webpack5-frameworks-QX7FRJIR.js → block-webpack5-frameworks-VTRZPYLK.js} +11 -11
- package/dist/_node-chunks/chunk-2AOIM4RR.js +11 -0
- package/dist/_node-chunks/{chunk-ZB3ICACX.js → chunk-LGNEBBMB.js} +6 -6
- package/dist/_node-chunks/{chunk-4XBHHGUW.js → chunk-LQN3NQHJ.js} +15 -15
- package/dist/_node-chunks/{chunk-CVYYE676.js → chunk-MMSP7HFF.js} +7 -7
- package/dist/_node-chunks/{chunk-OW5XHTGU.js → chunk-VR3UWRSO.js} +7 -7
- package/dist/_node-chunks/{globby-ZLUBBIS3.js → globby-YZOU3Q2Z.js} +8 -8
- package/dist/_node-chunks/{p-limit-LEP6CAAK.js → p-limit-5YIEKD2P.js} +7 -7
- package/dist/_node-chunks/{run-HEGJRZQ2.js → run-I2OM2VCD.js} +40 -33
- package/dist/bin/index.js +7 -7
- package/package.json +4 -4
- package/dist/_node-chunks/chunk-EY6RJ7I7.js +0 -11
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_qin5w2fyc from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_qin5w2fyc from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_qin5w2fyc from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_qin5w2fyc.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_qin5w2fyc.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_qin5w2fyc.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-LQN3NQHJ.js";
|
|
15
|
+
import "./chunk-MMSP7HFF.js";
|
|
16
|
+
import "./chunk-2AOIM4RR.js";
|
|
17
|
+
import "./chunk-VR3UWRSO.js";
|
|
18
|
+
import "./chunk-LGNEBBMB.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_qin5w2fyc from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_qin5w2fyc from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_qin5w2fyc from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_qin5w2fyc.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_qin5w2fyc.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_qin5w2fyc.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-2AOIM4RR.js";
|
|
13
13
|
import {
|
|
14
14
|
require_semver
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-VR3UWRSO.js";
|
|
16
16
|
import {
|
|
17
17
|
__toESM
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-LGNEBBMB.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-TPWMXNWN.js → block-major-version-2O4MLIT6.js}
RENAMED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_qin5w2fyc from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_qin5w2fyc from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_qin5w2fyc from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_qin5w2fyc.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_qin5w2fyc.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_qin5w2fyc.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-2AOIM4RR.js";
|
|
13
13
|
import {
|
|
14
14
|
require_semver
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-VR3UWRSO.js";
|
|
16
16
|
import {
|
|
17
17
|
__toESM
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-LGNEBBMB.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_qin5w2fyc from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_qin5w2fyc from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_qin5w2fyc from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_qin5w2fyc.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_qin5w2fyc.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_qin5w2fyc.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-2AOIM4RR.js";
|
|
13
13
|
import {
|
|
14
14
|
require_semver
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-VR3UWRSO.js";
|
|
16
16
|
import {
|
|
17
17
|
__toESM
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-LGNEBBMB.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_qin5w2fyc from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_qin5w2fyc from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_qin5w2fyc from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_qin5w2fyc.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_qin5w2fyc.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_qin5w2fyc.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-LQN3NQHJ.js";
|
|
15
|
+
import "./chunk-MMSP7HFF.js";
|
|
16
|
+
import "./chunk-2AOIM4RR.js";
|
|
17
|
+
import "./chunk-VR3UWRSO.js";
|
|
18
|
+
import "./chunk-LGNEBBMB.js";
|
|
19
19
|
|
|
20
20
|
// src/autoblock/block-webpack5-frameworks.ts
|
|
21
21
|
var minimalVersionsMap = {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_qin5w2fyc from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_qin5w2fyc from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_qin5w2fyc from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_qin5w2fyc.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_qin5w2fyc.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_qin5w2fyc.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_qin5w2fyc from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_qin5w2fyc from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_qin5w2fyc from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_qin5w2fyc.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_qin5w2fyc.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_qin5w2fyc.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_qin5w2fyc from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_qin5w2fyc from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_qin5w2fyc from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_qin5w2fyc.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_qin5w2fyc.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_qin5w2fyc.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_xqyma8q9bhk.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
globby,
|
|
14
14
|
globbySync
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-MMSP7HFF.js";
|
|
16
16
|
import {
|
|
17
17
|
require_semver
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-VR3UWRSO.js";
|
|
19
19
|
import {
|
|
20
20
|
__commonJS,
|
|
21
21
|
__toESM
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-LGNEBBMB.js";
|
|
23
23
|
|
|
24
24
|
// ../../../node_modules/picocolors/picocolors.js
|
|
25
25
|
var require_picocolors = __commonJS({
|
|
@@ -126,11 +126,11 @@ var import_picocolors2 = __toESM(require_picocolors(), 1), import_semver = __toE
|
|
|
126
126
|
// src/autoblock/index.ts
|
|
127
127
|
var blockers = () => [
|
|
128
128
|
// add/remove blockers here
|
|
129
|
-
import("./block-dependencies-versions-
|
|
130
|
-
import("./block-node-version-
|
|
131
|
-
import("./block-webpack5-frameworks-
|
|
132
|
-
import("./block-major-version-
|
|
133
|
-
import("./block-experimental-addon-test-
|
|
129
|
+
import("./block-dependencies-versions-54XSJV6F.js"),
|
|
130
|
+
import("./block-node-version-3M2J2V3M.js"),
|
|
131
|
+
import("./block-webpack5-frameworks-VTRZPYLK.js"),
|
|
132
|
+
import("./block-major-version-2O4MLIT6.js"),
|
|
133
|
+
import("./block-experimental-addon-test-XSR32WFR.js")
|
|
134
134
|
], autoblock = async (options, list = blockers()) => list.length === 0 ? null : await Promise.all(
|
|
135
135
|
list.map(async (i) => {
|
|
136
136
|
let blocker = (await i).blocker;
|
|
@@ -302,7 +302,7 @@ var processProject = async ({
|
|
|
302
302
|
};
|
|
303
303
|
}
|
|
304
304
|
}, collectProjects = async (options, configDirs, onProjectScanStart) => {
|
|
305
|
-
let { default: pLimit } = await import("./p-limit-
|
|
305
|
+
let { default: pLimit } = await import("./p-limit-5YIEKD2P.js"), currentCLIVersion = versions.storybook, limit = pLimit(5), projectPromises = configDirs.map(
|
|
306
306
|
(configDir) => limit(
|
|
307
307
|
() => processProject({
|
|
308
308
|
configDir,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_qin5w2fyc from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_qin5w2fyc from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_qin5w2fyc from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_qin5w2fyc.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_qin5w2fyc.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_qin5w2fyc.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-LGNEBBMB.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_qin5w2fyc from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_qin5w2fyc from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_qin5w2fyc from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_qin5w2fyc.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_qin5w2fyc.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_qin5w2fyc.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-LGNEBBMB.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_qin5w2fyc from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_qin5w2fyc from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_qin5w2fyc from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_qin5w2fyc.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_qin5w2fyc.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_qin5w2fyc.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-MMSP7HFF.js";
|
|
25
|
+
import "./chunk-LGNEBBMB.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_qin5w2fyc from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_qin5w2fyc from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_qin5w2fyc from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_qin5w2fyc.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_qin5w2fyc.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_qin5w2fyc.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-LGNEBBMB.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_qin5w2fyc from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_qin5w2fyc from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_qin5w2fyc from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_qin5w2fyc.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_qin5w2fyc.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_qin5w2fyc.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -27,18 +27,18 @@ import {
|
|
|
27
27
|
up,
|
|
28
28
|
updateMainConfig,
|
|
29
29
|
upgradeStorybookDependencies
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-LQN3NQHJ.js";
|
|
31
31
|
import {
|
|
32
32
|
slash
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-MMSP7HFF.js";
|
|
34
34
|
import {
|
|
35
35
|
require_semver
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-VR3UWRSO.js";
|
|
37
37
|
import {
|
|
38
38
|
__commonJS,
|
|
39
39
|
__require,
|
|
40
40
|
__toESM
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-LGNEBBMB.js";
|
|
42
42
|
|
|
43
43
|
// ../../../node_modules/envinfo/dist/envinfo.js
|
|
44
44
|
var require_envinfo = __commonJS({
|
|
@@ -4762,7 +4762,7 @@ function leven(first, second, options) {
|
|
|
4762
4762
|
var import_picocolors19 = __toESM(require_picocolors(), 1);
|
|
4763
4763
|
|
|
4764
4764
|
// package.json
|
|
4765
|
-
var version = "10.6.
|
|
4765
|
+
var version = "10.6.5";
|
|
4766
4766
|
|
|
4767
4767
|
// src/add.ts
|
|
4768
4768
|
var import_semver = __toESM(require_semver(), 1);
|
|
@@ -4778,7 +4778,7 @@ import { join as join2 } from "node:path";
|
|
|
4778
4778
|
import { fileURLToPath as fileURLToPath2, pathToFileURL as pathToFileURL2 } from "node:url";
|
|
4779
4779
|
|
|
4780
4780
|
// ../../core/src/shared/utils/module.ts
|
|
4781
|
-
import { createRequire
|
|
4781
|
+
import nodeModule, { createRequire } from "node:module";
|
|
4782
4782
|
import { win32 } from "node:path/win32";
|
|
4783
4783
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
4784
4784
|
|
|
@@ -4910,12 +4910,19 @@ var isWindows = process.platform === "win32", globalCache = globalThis.__EXSOLVE
|
|
|
4910
4910
|
var importMetaResolve = (...args) => typeof import.meta.resolve != "function" && process.env.VITEST === "true" ? (console.warn(
|
|
4911
4911
|
"importMetaResolve from within Storybook is being used in a Vitest test, but it shouldn't be. Please report this at https://github.com/storybookjs/storybook/issues/new?template=bug_report.yml"
|
|
4912
4912
|
), pathToFileURL(args[0]).href) : import.meta.resolve(...args);
|
|
4913
|
-
var
|
|
4914
|
-
|
|
4915
|
-
|
|
4913
|
+
var typescriptLoaderRegistration = null, typescriptLoaderRegistrationError = null;
|
|
4914
|
+
function registerTypescriptLoader() {
|
|
4915
|
+
return typescriptLoaderRegistration ??= (async () => {
|
|
4916
4916
|
let typescriptLoaderUrl = importMetaResolve("storybook/internal/bin/loader");
|
|
4917
|
-
register(typescriptLoaderUrl, import.meta.url)
|
|
4918
|
-
}
|
|
4917
|
+
nodeModule.register(typescriptLoaderUrl, import.meta.url);
|
|
4918
|
+
})().catch(async (error) => {
|
|
4919
|
+
typescriptLoaderRegistrationError = error;
|
|
4920
|
+
let { logger: logger28 } = await import("storybook/internal/node-logger");
|
|
4921
|
+
logger28.debug(`Storybook's TypeScript loader hooks could not be registered: ${error}`);
|
|
4922
|
+
}), typescriptLoaderRegistration;
|
|
4923
|
+
}
|
|
4924
|
+
async function importModule(path4, { skipCache = !1 } = {}) {
|
|
4925
|
+
await registerTypescriptLoader();
|
|
4919
4926
|
let mod;
|
|
4920
4927
|
try {
|
|
4921
4928
|
let resolvedPath = win32.isAbsolute(path4) ? pathToFileURL(path4).href : path4;
|
|
@@ -4925,7 +4932,7 @@ async function importModule(path4, { skipCache = !1 } = {}) {
|
|
|
4925
4932
|
let require3 = createRequire(import.meta.url);
|
|
4926
4933
|
skipCache && delete require3.cache[require3.resolve(path4)], mod = require3(path4);
|
|
4927
4934
|
} catch {
|
|
4928
|
-
throw importError;
|
|
4935
|
+
throw typescriptLoaderRegistrationError && importError instanceof Error && (importError.cause = typescriptLoaderRegistrationError), importError;
|
|
4929
4936
|
}
|
|
4930
4937
|
}
|
|
4931
4938
|
return mod.default ?? mod;
|
|
@@ -5598,7 +5605,7 @@ import { logger as logger3 } from "storybook/internal/node-logger";
|
|
|
5598
5605
|
import { promises as fs } from "fs";
|
|
5599
5606
|
var maxConcurrentTasks = Math.max(1, os.cpus().length - 1);
|
|
5600
5607
|
async function runCodemod(globPattern = "**/*.{stories,story}.{js,jsx,ts,tsx,mjs,mjsx,mts,mtsx}", transform, { dryRun = !1, skipFormatting = !1 } = {}) {
|
|
5601
|
-
let modifiedCount = 0, unmodifiedCount = 0, errorCount = 0, { globby } = await import("./globby-
|
|
5608
|
+
let modifiedCount = 0, unmodifiedCount = 0, errorCount = 0, { globby } = await import("./globby-YZOU3Q2Z.js"), files = await globby(slash(globPattern), {
|
|
5602
5609
|
followSymbolicLinks: !0,
|
|
5603
5610
|
ignore: ["**/node_modules/**", "**/dist/**", "**/storybook-static/**", "**/build/**"]
|
|
5604
5611
|
});
|
|
@@ -5609,7 +5616,7 @@ Please try a different pattern.
|
|
|
5609
5616
|
`
|
|
5610
5617
|
), new Error("No files matched");
|
|
5611
5618
|
try {
|
|
5612
|
-
let pLimit = (await import("./p-limit-
|
|
5619
|
+
let pLimit = (await import("./p-limit-5YIEKD2P.js")).default, limit = pLimit(maxConcurrentTasks);
|
|
5613
5620
|
await Promise.all(
|
|
5614
5621
|
files.map(
|
|
5615
5622
|
(file) => limit(async () => {
|
|
@@ -6630,7 +6637,7 @@ var asObject = (value) => typeof value == "object" && value !== null && !Array.i
|
|
|
6630
6637
|
let targets = asObject(root?.targets);
|
|
6631
6638
|
return targets && groups.push({ pathPrefix: ["targets"], targets }), groups;
|
|
6632
6639
|
}, findWorkspaceFiles = async (basename5) => {
|
|
6633
|
-
let { globby } = await import("./globby-
|
|
6640
|
+
let { globby } = await import("./globby-YZOU3Q2Z.js");
|
|
6634
6641
|
return globby([`**/${basename5}`], {
|
|
6635
6642
|
cwd: getProjectRoot(),
|
|
6636
6643
|
ignore: ["**/node_modules/**", "**/dist/**", "**/storybook-static/**"],
|
|
@@ -7185,7 +7192,7 @@ export default defineConfig({
|
|
|
7185
7192
|
needsZoneJs && previewConfigPath ? await addZoneJsPreviewImport(previewConfigPath, dryRun) : needsZoneJs && !previewConfigPath && logger8.warn(
|
|
7186
7193
|
"Could not find a Storybook preview file to add the zone.js import to. If your app uses zone-based change detection, add `import 'zone.js';` at the top of your preview file manually."
|
|
7187
7194
|
), logger8.debug("Scanning and updating import statements...");
|
|
7188
|
-
let { globby } = await import("./globby-
|
|
7195
|
+
let { globby } = await import("./globby-YZOU3Q2Z.js"), configFiles = configDir ? await globby([`${configDir}/**/*`]) : [], allFiles = [...storiesPaths, ...configFiles].filter(Boolean), transformErrors = await transformImportFiles(
|
|
7189
7196
|
allFiles,
|
|
7190
7197
|
Object.fromEntries(MIGRATABLE_FRAMEWORKS.map((pkg) => [pkg, ANGULAR_VITE_PACKAGE2])),
|
|
7191
7198
|
!!dryRun
|
|
@@ -7397,7 +7404,7 @@ var addonA11yParameters = {
|
|
|
7397
7404
|
errors.push({ file: previewFileToUpdate, error });
|
|
7398
7405
|
}
|
|
7399
7406
|
}
|
|
7400
|
-
let { default: pLimit } = await import("./p-limit-
|
|
7407
|
+
let { default: pLimit } = await import("./p-limit-5YIEKD2P.js"), limit = pLimit(10);
|
|
7401
7408
|
if (await Promise.all(
|
|
7402
7409
|
storyFilesToUpdate.map(
|
|
7403
7410
|
(file) => limit(async () => {
|
|
@@ -7551,7 +7558,7 @@ var addonGlobalsApi = {
|
|
|
7551
7558
|
}
|
|
7552
7559
|
};
|
|
7553
7560
|
async function transformStoryFiles(files, options, dryRun) {
|
|
7554
|
-
let errors = [], { default: pLimit } = await import("./p-limit-
|
|
7561
|
+
let errors = [], { default: pLimit } = await import("./p-limit-5YIEKD2P.js"), limit = pLimit(10);
|
|
7555
7562
|
return await Promise.all(
|
|
7556
7563
|
files.map(
|
|
7557
7564
|
(file) => limit(async () => {
|
|
@@ -7778,7 +7785,7 @@ function transformPackageJson(content) {
|
|
|
7778
7785
|
return hasChanges ? JSON.stringify(packageJson, null, 2) : null;
|
|
7779
7786
|
}
|
|
7780
7787
|
var transformPackageJsonFiles = async (files, dryRun) => {
|
|
7781
|
-
let errors = [], { default: pLimit } = await import("./p-limit-
|
|
7788
|
+
let errors = [], { default: pLimit } = await import("./p-limit-5YIEKD2P.js"), limit = pLimit(10);
|
|
7782
7789
|
return await Promise.all(
|
|
7783
7790
|
files.map(
|
|
7784
7791
|
(file) => limit(async () => {
|
|
@@ -7817,7 +7824,7 @@ var transformPackageJsonFiles = async (files, dryRun) => {
|
|
|
7817
7824
|
dryRun
|
|
7818
7825
|
);
|
|
7819
7826
|
errors.push(...packageJsonErrors);
|
|
7820
|
-
let { globby } = await import("./globby-
|
|
7827
|
+
let { globby } = await import("./globby-YZOU3Q2Z.js"), configFiles = await globby([`${configDir}/**/*`]), importErrors = await transformImportFiles2(
|
|
7821
7828
|
[...storiesPaths, ...configFiles].filter(Boolean),
|
|
7822
7829
|
{
|
|
7823
7830
|
...consolidatedPackages,
|
|
@@ -8238,7 +8245,7 @@ var VITE_DEFAULT_VERSION = "^7.0.0", transformMainConfig2 = async (mainConfigPat
|
|
|
8238
8245
|
]);
|
|
8239
8246
|
}
|
|
8240
8247
|
mainConfigPath && (logger14.debug("Updating main config file..."), await transformMainConfig2(mainConfigPath, dryRun)), logger14.debug("Scanning and updating import statements...");
|
|
8241
|
-
let { globby } = await import("./globby-
|
|
8248
|
+
let { globby } = await import("./globby-YZOU3Q2Z.js"), configFiles = await globby([`${configDir}/**/*`]), allFiles = [...storiesPaths, ...configFiles].filter(Boolean), transformErrors = await transformImportFiles3(
|
|
8242
8249
|
allFiles,
|
|
8243
8250
|
{
|
|
8244
8251
|
"@storybook/nextjs": "@storybook/nextjs-vite"
|
|
@@ -8316,7 +8323,7 @@ var REACT_VITE_PACKAGE = "@storybook/react-vite", TANSTACK_REACT_PACKAGE = "@sto
|
|
|
8316
8323
|
configDir,
|
|
8317
8324
|
storiesPaths
|
|
8318
8325
|
}) => {
|
|
8319
|
-
let { globby } = await import("./globby-
|
|
8326
|
+
let { globby } = await import("./globby-YZOU3Q2Z.js"), configFiles = configDir ? await globby([`${configDir}/**/*.{ts,tsx,js,jsx,mjs,cjs}`], {
|
|
8320
8327
|
ignore: ["**/node_modules/**", "**/dist/**"]
|
|
8321
8328
|
}) : [], candidateFiles = Array.from(
|
|
8322
8329
|
/* @__PURE__ */ new Set([...previewConfigPath ? [previewConfigPath] : [], ...configFiles, ...storiesPaths])
|
|
@@ -8535,7 +8542,7 @@ var REACT_VITE_PACKAGE = "@storybook/react-vite", TANSTACK_REACT_PACKAGE = "@sto
|
|
|
8535
8542
|
logger15.step(`Migrating from ${REACT_VITE_PACKAGE} to ${TANSTACK_REACT_PACKAGE}...`), dryRun ? logger15.debug("Dry run: Skipping package.json updates.") : (logger15.debug("Updating package.json files..."), await packageManager.removeDependencies([REACT_VITE_PACKAGE]), await packageManager.addDependencies({ type: "devDependencies", skipInstall: !0 }, [
|
|
8536
8543
|
`${TANSTACK_REACT_PACKAGE}@${storybookVersion}`
|
|
8537
8544
|
])), mainConfigPath && (logger15.debug("Updating main config file..."), await transformMainConfig3(mainConfigPath, dryRun)), logger15.debug("Scanning and updating import statements...");
|
|
8538
|
-
let { globby } = await import("./globby-
|
|
8545
|
+
let { globby } = await import("./globby-YZOU3Q2Z.js"), configFiles = configDir ? await globby([`${configDir}/**/*.{ts,tsx,js,jsx,mjs,cjs}`], {
|
|
8539
8546
|
ignore: ["**/node_modules/**", "**/dist/**"]
|
|
8540
8547
|
}) : [], allFiles = [...storiesPaths, ...configFiles, previewConfigPath].filter(
|
|
8541
8548
|
Boolean
|
|
@@ -8776,7 +8783,7 @@ var getAllDependencies = (packageJson) => Object.keys({
|
|
|
8776
8783
|
let regex = new RegExp(`(['"])${renderer}(['"])`, "g");
|
|
8777
8784
|
return regex.test(source) ? source.replace(regex, `$1${framework}$2`) : null;
|
|
8778
8785
|
}, transformSourceFiles = async (files, renderer, framework, dryRun) => {
|
|
8779
|
-
let errors = [], { default: pLimit } = await import("./p-limit-
|
|
8786
|
+
let errors = [], { default: pLimit } = await import("./p-limit-5YIEKD2P.js"), limit = pLimit(10);
|
|
8780
8787
|
return await Promise.all(
|
|
8781
8788
|
files.map(
|
|
8782
8789
|
(file) => limit(async () => {
|
|
@@ -8843,7 +8850,7 @@ var getAllDependencies = (packageJson) => Object.keys({
|
|
|
8843
8850
|
continue;
|
|
8844
8851
|
logger17.debug(`
|
|
8845
8852
|
Migrating ${rendererPackage} to ${selectedFramework}`);
|
|
8846
|
-
let { globby } = await import("./globby-
|
|
8853
|
+
let { globby } = await import("./globby-YZOU3Q2Z.js"), configFiles = await globby([`${configDir}/**/*`]);
|
|
8847
8854
|
await transformSourceFiles(
|
|
8848
8855
|
[...storiesPaths, ...configFiles].filter(Boolean),
|
|
8849
8856
|
rendererPackage,
|
|
@@ -8949,7 +8956,7 @@ async function renameInFile(filePath, oldText, newText) {
|
|
|
8949
8956
|
}
|
|
8950
8957
|
var getDotStorybookReferences = async (searchDir) => {
|
|
8951
8958
|
try {
|
|
8952
|
-
let { globby } = await import("./globby-
|
|
8959
|
+
let { globby } = await import("./globby-YZOU3Q2Z.js"), { readFile: readFile12 } = await import("node:fs/promises"), files = await globby(`${searchDir}/**/*`, {
|
|
8953
8960
|
onlyFiles: !0,
|
|
8954
8961
|
gitignore: !0
|
|
8955
8962
|
}), referencedFiles = [];
|
|
@@ -8970,7 +8977,7 @@ var getDotStorybookReferences = async (searchDir) => {
|
|
|
8970
8977
|
async check({ packageManager, mainConfigPath }) {
|
|
8971
8978
|
if (!packageManager.getAllDependencies()["@storybook/react-native"])
|
|
8972
8979
|
return null;
|
|
8973
|
-
let projectDir = mainConfigPath ? join6(mainConfigPath, "..", "..") : process.cwd(), storybookDir = join6(projectDir, ".storybook"), rnStorybookDir = join6(projectDir, RN_STORYBOOK_DIR), { globby } = await import("./globby-
|
|
8980
|
+
let projectDir = mainConfigPath ? join6(mainConfigPath, "..", "..") : process.cwd(), storybookDir = join6(projectDir, ".storybook"), rnStorybookDir = join6(projectDir, RN_STORYBOOK_DIR), { globby } = await import("./globby-YZOU3Q2Z.js"), requiresFiles = await globby(join6(storybookDir, "storybook.requires.*"));
|
|
8974
8981
|
return existsSync5(storybookDir) && requiresFiles.length > 0 && !existsSync5(rnStorybookDir) ? { storybookDir, rnStorybookDir } : null;
|
|
8975
8982
|
},
|
|
8976
8983
|
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_qin5w2fyc from 'node:url';
|
|
3
|
+
import CJS_COMPAT_NODE_PATH_qin5w2fyc from 'node:path';
|
|
4
|
+
import CJS_COMPAT_NODE_MODULE_qin5w2fyc from "node:module";
|
|
5
5
|
|
|
6
|
-
var __filename =
|
|
7
|
-
var __dirname =
|
|
8
|
-
var require =
|
|
6
|
+
var __filename = CJS_COMPAT_NODE_URL_qin5w2fyc.fileURLToPath(import.meta.url);
|
|
7
|
+
var __dirname = CJS_COMPAT_NODE_PATH_qin5w2fyc.dirname(__filename);
|
|
8
|
+
var require = CJS_COMPAT_NODE_MODULE_qin5w2fyc.createRequire(import.meta.url);
|
|
9
9
|
|
|
10
10
|
// ------------------------------------------------------------
|
|
11
11
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -20,4 +20,4 @@ isNodeVersionSupported(major, minor, patch) || (logger.error(
|
|
|
20
20
|
dedent`To run Storybook, you need Node.js version ${MIN_SUPPORTED_NODE_DESCRIPTION}.
|
|
21
21
|
You are currently running Node.js ${process.version}. Please upgrade your Node.js installation.`
|
|
22
22
|
), process.exit(1));
|
|
23
|
-
import("../_node-chunks/run-
|
|
23
|
+
import("../_node-chunks/run-I2OM2VCD.js");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/cli",
|
|
3
|
-
"version": "10.6.
|
|
3
|
+
"version": "10.6.5",
|
|
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.6.
|
|
40
|
+
"@storybook/codemod": "10.6.5",
|
|
41
41
|
"@types/semver": "^7.7.1",
|
|
42
42
|
"commander": "^14.0.2",
|
|
43
|
-
"create-storybook": "10.6.
|
|
43
|
+
"create-storybook": "10.6.5",
|
|
44
44
|
"jscodeshift": "^0.15.1",
|
|
45
|
-
"storybook": "10.6.
|
|
45
|
+
"storybook": "10.6.5",
|
|
46
46
|
"ts-dedent": "^2.0.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_xqyma8q9bhk from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_xqyma8q9bhk from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_xqyma8q9bhk from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_xqyma8q9bhk.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_xqyma8q9bhk.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_xqyma8q9bhk.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|