@storybook/cli 10.6.0 → 11.0.0-alpha.0
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-UVOWWSOP.js → block-dependencies-versions-325L2TXU.js} +11 -11
- package/dist/_node-chunks/{block-experimental-addon-test-W57TMML3.js → block-experimental-addon-test-XNH74PCO.js} +9 -9
- package/dist/_node-chunks/{block-major-version-QWGGKR7S.js → block-major-version-YOQYZU5B.js} +9 -9
- package/dist/_node-chunks/{block-node-version-JXSZWBRO.js → block-node-version-HFQ6OZ6T.js} +9 -9
- package/dist/_node-chunks/{block-webpack5-frameworks-TK4AWOYF.js → block-webpack5-frameworks-22N7B7LN.js} +11 -11
- package/dist/_node-chunks/{chunk-VRUXLMRE.js → chunk-ERKEB6JM.js} +6 -6
- package/dist/_node-chunks/{chunk-XHLSDV7U.js → chunk-L7H6KZKS.js} +15 -15
- package/dist/_node-chunks/chunk-QMXJDFWB.js +11 -0
- package/dist/_node-chunks/{chunk-WVM4UMKT.js → chunk-Z6UVGYIX.js} +7 -7
- package/dist/_node-chunks/{chunk-TTWWVBGV.js → chunk-ZFSSZ5II.js} +7 -7
- package/dist/_node-chunks/{globby-VIFFPMQ3.js → globby-3N2PP55V.js} +8 -8
- package/dist/_node-chunks/{p-limit-NHYXITBY.js → p-limit-NCZCMJYE.js} +7 -7
- package/dist/_node-chunks/{run-BGAXK5AD.js → run-X5OTTCRL.js} +26 -26
- package/dist/bin/index.js +7 -7
- package/package.json +4 -4
- package/dist/_node-chunks/chunk-BAGJTS4G.js +0 -11
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_26m8jb11507 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_26m8jb11507 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_26m8jb11507 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_26m8jb11507.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_26m8jb11507.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_26m8jb11507.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-L7H6KZKS.js";
|
|
15
|
+
import "./chunk-Z6UVGYIX.js";
|
|
16
|
+
import "./chunk-QMXJDFWB.js";
|
|
17
|
+
import "./chunk-ZFSSZ5II.js";
|
|
18
|
+
import "./chunk-ERKEB6JM.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_26m8jb11507 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_26m8jb11507 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_26m8jb11507 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_26m8jb11507.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_26m8jb11507.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_26m8jb11507.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-QMXJDFWB.js";
|
|
13
13
|
import {
|
|
14
14
|
require_semver
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-ZFSSZ5II.js";
|
|
16
16
|
import {
|
|
17
17
|
__toESM
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-ERKEB6JM.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-QWGGKR7S.js → block-major-version-YOQYZU5B.js}
RENAMED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_26m8jb11507 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_26m8jb11507 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_26m8jb11507 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_26m8jb11507.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_26m8jb11507.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_26m8jb11507.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-QMXJDFWB.js";
|
|
13
13
|
import {
|
|
14
14
|
require_semver
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-ZFSSZ5II.js";
|
|
16
16
|
import {
|
|
17
17
|
__toESM
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-ERKEB6JM.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_26m8jb11507 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_26m8jb11507 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_26m8jb11507 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_26m8jb11507.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_26m8jb11507.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_26m8jb11507.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-QMXJDFWB.js";
|
|
13
13
|
import {
|
|
14
14
|
require_semver
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-ZFSSZ5II.js";
|
|
16
16
|
import {
|
|
17
17
|
__toESM
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-ERKEB6JM.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_26m8jb11507 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_26m8jb11507 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_26m8jb11507 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_26m8jb11507.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_26m8jb11507.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_26m8jb11507.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-L7H6KZKS.js";
|
|
15
|
+
import "./chunk-Z6UVGYIX.js";
|
|
16
|
+
import "./chunk-QMXJDFWB.js";
|
|
17
|
+
import "./chunk-ZFSSZ5II.js";
|
|
18
|
+
import "./chunk-ERKEB6JM.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_26m8jb11507 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_26m8jb11507 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_26m8jb11507 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_26m8jb11507.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_26m8jb11507.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_26m8jb11507.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_26m8jb11507 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_26m8jb11507 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_26m8jb11507 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_26m8jb11507.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_26m8jb11507.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_26m8jb11507.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_x1v2iifawbj.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
globby,
|
|
14
14
|
globbySync
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-Z6UVGYIX.js";
|
|
16
16
|
import {
|
|
17
17
|
require_semver
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-ZFSSZ5II.js";
|
|
19
19
|
import {
|
|
20
20
|
__commonJS,
|
|
21
21
|
__toESM
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-ERKEB6JM.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-325L2TXU.js"),
|
|
130
|
+
import("./block-node-version-HFQ6OZ6T.js"),
|
|
131
|
+
import("./block-webpack5-frameworks-22N7B7LN.js"),
|
|
132
|
+
import("./block-major-version-YOQYZU5B.js"),
|
|
133
|
+
import("./block-experimental-addon-test-XNH74PCO.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-NCZCMJYE.js"), currentCLIVersion = versions.storybook, limit = pLimit(5), projectPromises = configDirs.map(
|
|
306
306
|
(configDir) => limit(
|
|
307
307
|
() => processProject({
|
|
308
308
|
configDir,
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_26m8jb11507 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_26m8jb11507 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_26m8jb11507 from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_26m8jb11507.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_26m8jb11507.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_26m8jb11507.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_26m8jb11507 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_26m8jb11507 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_26m8jb11507 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_26m8jb11507.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_26m8jb11507.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_26m8jb11507.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-ERKEB6JM.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_26m8jb11507 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_26m8jb11507 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_26m8jb11507 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_26m8jb11507.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_26m8jb11507.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_26m8jb11507.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-ERKEB6JM.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_26m8jb11507 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_26m8jb11507 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_26m8jb11507 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_26m8jb11507.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_26m8jb11507.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_26m8jb11507.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-Z6UVGYIX.js";
|
|
25
|
+
import "./chunk-ERKEB6JM.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_26m8jb11507 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_26m8jb11507 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_26m8jb11507 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_26m8jb11507.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_26m8jb11507.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_26m8jb11507.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-ERKEB6JM.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_26m8jb11507 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_26m8jb11507 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_26m8jb11507 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_26m8jb11507.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_26m8jb11507.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_26m8jb11507.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-L7H6KZKS.js";
|
|
31
31
|
import {
|
|
32
32
|
slash
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-Z6UVGYIX.js";
|
|
34
34
|
import {
|
|
35
35
|
require_semver
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-ZFSSZ5II.js";
|
|
37
37
|
import {
|
|
38
38
|
__commonJS,
|
|
39
39
|
__require,
|
|
40
40
|
__toESM
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-ERKEB6JM.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 = "
|
|
4765
|
+
var version = "11.0.0-alpha.0";
|
|
4766
4766
|
|
|
4767
4767
|
// src/add.ts
|
|
4768
4768
|
var import_semver = __toESM(require_semver(), 1);
|
|
@@ -5598,7 +5598,7 @@ import { logger as logger3 } from "storybook/internal/node-logger";
|
|
|
5598
5598
|
import { promises as fs } from "fs";
|
|
5599
5599
|
var maxConcurrentTasks = Math.max(1, os.cpus().length - 1);
|
|
5600
5600
|
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-
|
|
5601
|
+
let modifiedCount = 0, unmodifiedCount = 0, errorCount = 0, { globby } = await import("./globby-3N2PP55V.js"), files = await globby(slash(globPattern), {
|
|
5602
5602
|
followSymbolicLinks: !0,
|
|
5603
5603
|
ignore: ["**/node_modules/**", "**/dist/**", "**/storybook-static/**", "**/build/**"]
|
|
5604
5604
|
});
|
|
@@ -5609,7 +5609,7 @@ Please try a different pattern.
|
|
|
5609
5609
|
`
|
|
5610
5610
|
), new Error("No files matched");
|
|
5611
5611
|
try {
|
|
5612
|
-
let pLimit = (await import("./p-limit-
|
|
5612
|
+
let pLimit = (await import("./p-limit-NCZCMJYE.js")).default, limit = pLimit(maxConcurrentTasks);
|
|
5613
5613
|
await Promise.all(
|
|
5614
5614
|
files.map(
|
|
5615
5615
|
(file) => limit(async () => {
|
|
@@ -6630,7 +6630,7 @@ var asObject = (value) => typeof value == "object" && value !== null && !Array.i
|
|
|
6630
6630
|
let targets = asObject(root?.targets);
|
|
6631
6631
|
return targets && groups.push({ pathPrefix: ["targets"], targets }), groups;
|
|
6632
6632
|
}, findWorkspaceFiles = async (basename5) => {
|
|
6633
|
-
let { globby } = await import("./globby-
|
|
6633
|
+
let { globby } = await import("./globby-3N2PP55V.js");
|
|
6634
6634
|
return globby([`**/${basename5}`], {
|
|
6635
6635
|
cwd: getProjectRoot(),
|
|
6636
6636
|
ignore: ["**/node_modules/**", "**/dist/**", "**/storybook-static/**"],
|
|
@@ -7185,7 +7185,7 @@ export default defineConfig({
|
|
|
7185
7185
|
needsZoneJs && previewConfigPath ? await addZoneJsPreviewImport(previewConfigPath, dryRun) : needsZoneJs && !previewConfigPath && logger8.warn(
|
|
7186
7186
|
"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
7187
|
), logger8.debug("Scanning and updating import statements...");
|
|
7188
|
-
let { globby } = await import("./globby-
|
|
7188
|
+
let { globby } = await import("./globby-3N2PP55V.js"), configFiles = configDir ? await globby([`${configDir}/**/*`]) : [], allFiles = [...storiesPaths, ...configFiles].filter(Boolean), transformErrors = await transformImportFiles(
|
|
7189
7189
|
allFiles,
|
|
7190
7190
|
Object.fromEntries(MIGRATABLE_FRAMEWORKS.map((pkg) => [pkg, ANGULAR_VITE_PACKAGE2])),
|
|
7191
7191
|
!!dryRun
|
|
@@ -7397,7 +7397,7 @@ var addonA11yParameters = {
|
|
|
7397
7397
|
errors.push({ file: previewFileToUpdate, error });
|
|
7398
7398
|
}
|
|
7399
7399
|
}
|
|
7400
|
-
let { default: pLimit } = await import("./p-limit-
|
|
7400
|
+
let { default: pLimit } = await import("./p-limit-NCZCMJYE.js"), limit = pLimit(10);
|
|
7401
7401
|
if (await Promise.all(
|
|
7402
7402
|
storyFilesToUpdate.map(
|
|
7403
7403
|
(file) => limit(async () => {
|
|
@@ -7551,7 +7551,7 @@ var addonGlobalsApi = {
|
|
|
7551
7551
|
}
|
|
7552
7552
|
};
|
|
7553
7553
|
async function transformStoryFiles(files, options, dryRun) {
|
|
7554
|
-
let errors = [], { default: pLimit } = await import("./p-limit-
|
|
7554
|
+
let errors = [], { default: pLimit } = await import("./p-limit-NCZCMJYE.js"), limit = pLimit(10);
|
|
7555
7555
|
return await Promise.all(
|
|
7556
7556
|
files.map(
|
|
7557
7557
|
(file) => limit(async () => {
|
|
@@ -7778,7 +7778,7 @@ function transformPackageJson(content) {
|
|
|
7778
7778
|
return hasChanges ? JSON.stringify(packageJson, null, 2) : null;
|
|
7779
7779
|
}
|
|
7780
7780
|
var transformPackageJsonFiles = async (files, dryRun) => {
|
|
7781
|
-
let errors = [], { default: pLimit } = await import("./p-limit-
|
|
7781
|
+
let errors = [], { default: pLimit } = await import("./p-limit-NCZCMJYE.js"), limit = pLimit(10);
|
|
7782
7782
|
return await Promise.all(
|
|
7783
7783
|
files.map(
|
|
7784
7784
|
(file) => limit(async () => {
|
|
@@ -7817,7 +7817,7 @@ var transformPackageJsonFiles = async (files, dryRun) => {
|
|
|
7817
7817
|
dryRun
|
|
7818
7818
|
);
|
|
7819
7819
|
errors.push(...packageJsonErrors);
|
|
7820
|
-
let { globby } = await import("./globby-
|
|
7820
|
+
let { globby } = await import("./globby-3N2PP55V.js"), configFiles = await globby([`${configDir}/**/*`]), importErrors = await transformImportFiles2(
|
|
7821
7821
|
[...storiesPaths, ...configFiles].filter(Boolean),
|
|
7822
7822
|
{
|
|
7823
7823
|
...consolidatedPackages,
|
|
@@ -8238,7 +8238,7 @@ var VITE_DEFAULT_VERSION = "^7.0.0", transformMainConfig2 = async (mainConfigPat
|
|
|
8238
8238
|
]);
|
|
8239
8239
|
}
|
|
8240
8240
|
mainConfigPath && (logger14.debug("Updating main config file..."), await transformMainConfig2(mainConfigPath, dryRun)), logger14.debug("Scanning and updating import statements...");
|
|
8241
|
-
let { globby } = await import("./globby-
|
|
8241
|
+
let { globby } = await import("./globby-3N2PP55V.js"), configFiles = await globby([`${configDir}/**/*`]), allFiles = [...storiesPaths, ...configFiles].filter(Boolean), transformErrors = await transformImportFiles3(
|
|
8242
8242
|
allFiles,
|
|
8243
8243
|
{
|
|
8244
8244
|
"@storybook/nextjs": "@storybook/nextjs-vite"
|
|
@@ -8316,7 +8316,7 @@ var REACT_VITE_PACKAGE = "@storybook/react-vite", TANSTACK_REACT_PACKAGE = "@sto
|
|
|
8316
8316
|
configDir,
|
|
8317
8317
|
storiesPaths
|
|
8318
8318
|
}) => {
|
|
8319
|
-
let { globby } = await import("./globby-
|
|
8319
|
+
let { globby } = await import("./globby-3N2PP55V.js"), configFiles = configDir ? await globby([`${configDir}/**/*.{ts,tsx,js,jsx,mjs,cjs}`], {
|
|
8320
8320
|
ignore: ["**/node_modules/**", "**/dist/**"]
|
|
8321
8321
|
}) : [], candidateFiles = Array.from(
|
|
8322
8322
|
/* @__PURE__ */ new Set([...previewConfigPath ? [previewConfigPath] : [], ...configFiles, ...storiesPaths])
|
|
@@ -8535,7 +8535,7 @@ var REACT_VITE_PACKAGE = "@storybook/react-vite", TANSTACK_REACT_PACKAGE = "@sto
|
|
|
8535
8535
|
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
8536
|
`${TANSTACK_REACT_PACKAGE}@${storybookVersion}`
|
|
8537
8537
|
])), mainConfigPath && (logger15.debug("Updating main config file..."), await transformMainConfig3(mainConfigPath, dryRun)), logger15.debug("Scanning and updating import statements...");
|
|
8538
|
-
let { globby } = await import("./globby-
|
|
8538
|
+
let { globby } = await import("./globby-3N2PP55V.js"), configFiles = configDir ? await globby([`${configDir}/**/*.{ts,tsx,js,jsx,mjs,cjs}`], {
|
|
8539
8539
|
ignore: ["**/node_modules/**", "**/dist/**"]
|
|
8540
8540
|
}) : [], allFiles = [...storiesPaths, ...configFiles, previewConfigPath].filter(
|
|
8541
8541
|
Boolean
|
|
@@ -8776,7 +8776,7 @@ var getAllDependencies = (packageJson) => Object.keys({
|
|
|
8776
8776
|
let regex = new RegExp(`(['"])${renderer}(['"])`, "g");
|
|
8777
8777
|
return regex.test(source) ? source.replace(regex, `$1${framework}$2`) : null;
|
|
8778
8778
|
}, transformSourceFiles = async (files, renderer, framework, dryRun) => {
|
|
8779
|
-
let errors = [], { default: pLimit } = await import("./p-limit-
|
|
8779
|
+
let errors = [], { default: pLimit } = await import("./p-limit-NCZCMJYE.js"), limit = pLimit(10);
|
|
8780
8780
|
return await Promise.all(
|
|
8781
8781
|
files.map(
|
|
8782
8782
|
(file) => limit(async () => {
|
|
@@ -8843,7 +8843,7 @@ var getAllDependencies = (packageJson) => Object.keys({
|
|
|
8843
8843
|
continue;
|
|
8844
8844
|
logger17.debug(`
|
|
8845
8845
|
Migrating ${rendererPackage} to ${selectedFramework}`);
|
|
8846
|
-
let { globby } = await import("./globby-
|
|
8846
|
+
let { globby } = await import("./globby-3N2PP55V.js"), configFiles = await globby([`${configDir}/**/*`]);
|
|
8847
8847
|
await transformSourceFiles(
|
|
8848
8848
|
[...storiesPaths, ...configFiles].filter(Boolean),
|
|
8849
8849
|
rendererPackage,
|
|
@@ -8949,7 +8949,7 @@ async function renameInFile(filePath, oldText, newText) {
|
|
|
8949
8949
|
}
|
|
8950
8950
|
var getDotStorybookReferences = async (searchDir) => {
|
|
8951
8951
|
try {
|
|
8952
|
-
let { globby } = await import("./globby-
|
|
8952
|
+
let { globby } = await import("./globby-3N2PP55V.js"), { readFile: readFile12 } = await import("node:fs/promises"), files = await globby(`${searchDir}/**/*`, {
|
|
8953
8953
|
onlyFiles: !0,
|
|
8954
8954
|
gitignore: !0
|
|
8955
8955
|
}), referencedFiles = [];
|
|
@@ -8970,7 +8970,7 @@ var getDotStorybookReferences = async (searchDir) => {
|
|
|
8970
8970
|
async check({ packageManager, mainConfigPath }) {
|
|
8971
8971
|
if (!packageManager.getAllDependencies()["@storybook/react-native"])
|
|
8972
8972
|
return null;
|
|
8973
|
-
let projectDir = mainConfigPath ? join6(mainConfigPath, "..", "..") : process.cwd(), storybookDir = join6(projectDir, ".storybook"), rnStorybookDir = join6(projectDir, RN_STORYBOOK_DIR), { globby } = await import("./globby-
|
|
8973
|
+
let projectDir = mainConfigPath ? join6(mainConfigPath, "..", "..") : process.cwd(), storybookDir = join6(projectDir, ".storybook"), rnStorybookDir = join6(projectDir, RN_STORYBOOK_DIR), { globby } = await import("./globby-3N2PP55V.js"), requiresFiles = await globby(join6(storybookDir, "storybook.requires.*"));
|
|
8974
8974
|
return existsSync5(storybookDir) && requiresFiles.length > 0 && !existsSync5(rnStorybookDir) ? { storybookDir, rnStorybookDir } : null;
|
|
8975
8975
|
},
|
|
8976
8976
|
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_26m8jb11507 from 'node:url';
|
|
3
|
+
import CJS_COMPAT_NODE_PATH_26m8jb11507 from 'node:path';
|
|
4
|
+
import CJS_COMPAT_NODE_MODULE_26m8jb11507 from "node:module";
|
|
5
5
|
|
|
6
|
-
var __filename =
|
|
7
|
-
var __dirname =
|
|
8
|
-
var require =
|
|
6
|
+
var __filename = CJS_COMPAT_NODE_URL_26m8jb11507.fileURLToPath(import.meta.url);
|
|
7
|
+
var __dirname = CJS_COMPAT_NODE_PATH_26m8jb11507.dirname(__filename);
|
|
8
|
+
var require = CJS_COMPAT_NODE_MODULE_26m8jb11507.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-X5OTTCRL.js");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/cli",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.0-alpha.0",
|
|
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": "
|
|
40
|
+
"@storybook/codemod": "11.0.0-alpha.0",
|
|
41
41
|
"@types/semver": "^7.7.1",
|
|
42
42
|
"commander": "^14.0.2",
|
|
43
|
-
"create-storybook": "
|
|
43
|
+
"create-storybook": "11.0.0-alpha.0",
|
|
44
44
|
"jscodeshift": "^0.15.1",
|
|
45
|
-
"storybook": "
|
|
45
|
+
"storybook": "11.0.0-alpha.0",
|
|
46
46
|
"ts-dedent": "^2.0.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_x1v2iifawbj from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_x1v2iifawbj from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_x1v2iifawbj from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_x1v2iifawbj.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_x1v2iifawbj.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_x1v2iifawbj.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|