@storybook/cli 10.0.0-beta.10 → 10.0.0-beta.11
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-YJ6FXRIN.js → block-dependencies-versions-7POAP5CS.js} +11 -11
- package/dist/_node-chunks/{block-experimental-addon-test-WSEVJKQ6.js → block-experimental-addon-test-I4EOMCLS.js} +9 -9
- package/dist/_node-chunks/{block-major-version-2MG6WBAK.js → block-major-version-RCJUYIKB.js} +9 -9
- package/dist/_node-chunks/{block-node-version-OT4M7JM6.js → block-node-version-Z7YPREG4.js} +9 -9
- package/dist/_node-chunks/{block-webpack5-frameworks-UWYMYXBB.js → block-webpack5-frameworks-LE67UWAX.js} +11 -11
- package/dist/_node-chunks/{chunk-PANN76P2.js → chunk-IGCHJJSD.js} +6 -6
- package/dist/_node-chunks/{chunk-5VQ2QYW2.js → chunk-NFKEHU2E.js} +7 -7
- package/dist/_node-chunks/{chunk-IKB5HGPR.js → chunk-O5WIZGX3.js} +7 -7
- package/dist/_node-chunks/{chunk-TXN2LZW6.js → chunk-SMXJ4I6L.js} +15 -15
- package/dist/_node-chunks/{chunk-QS3A3NJ6.js → chunk-VMECXQUV.js} +7 -7
- package/dist/_node-chunks/{globby-X2BYPAHX.js → globby-GKKVMRKJ.js} +8 -8
- package/dist/_node-chunks/{p-limit-OW3XVIC5.js → p-limit-OLNVT6KG.js} +7 -7
- package/dist/_node-chunks/{run-ZCO4EHEU.js → run-H2A2DHVZ.js} +69 -41
- package/dist/bin/index.js +7 -7
- package/package.json +4 -4
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_veyyxx6nh0j from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_veyyxx6nh0j from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_veyyxx6nh0j from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_veyyxx6nh0j.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_veyyxx6nh0j.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_veyyxx6nh0j.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-
|
|
14
|
+
} from "./chunk-SMXJ4I6L.js";
|
|
15
|
+
import "./chunk-O5WIZGX3.js";
|
|
16
16
|
import {
|
|
17
17
|
createBlocker
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-VMECXQUV.js";
|
|
19
|
+
import "./chunk-NFKEHU2E.js";
|
|
20
|
+
import "./chunk-IGCHJJSD.js";
|
|
21
21
|
|
|
22
22
|
// src/autoblock/block-dependencies-versions.ts
|
|
23
23
|
import { dedent } from "ts-dedent";
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_veyyxx6nh0j from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_veyyxx6nh0j from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_veyyxx6nh0j from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_veyyxx6nh0j.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_veyyxx6nh0j.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_veyyxx6nh0j.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
createBlocker
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-VMECXQUV.js";
|
|
15
15
|
import {
|
|
16
16
|
require_semver
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-NFKEHU2E.js";
|
|
18
18
|
import {
|
|
19
19
|
__toESM
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-IGCHJJSD.js";
|
|
21
21
|
|
|
22
22
|
// src/autoblock/block-experimental-addon-test.ts
|
|
23
23
|
var import_semver = __toESM(require_semver(), 1);
|
package/dist/_node-chunks/{block-major-version-2MG6WBAK.js → block-major-version-RCJUYIKB.js}
RENAMED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_veyyxx6nh0j from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_veyyxx6nh0j from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_veyyxx6nh0j from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_veyyxx6nh0j.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_veyyxx6nh0j.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_veyyxx6nh0j.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
createBlocker
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-VMECXQUV.js";
|
|
15
15
|
import {
|
|
16
16
|
require_semver
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-NFKEHU2E.js";
|
|
18
18
|
import {
|
|
19
19
|
__name,
|
|
20
20
|
__toESM
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-IGCHJJSD.js";
|
|
22
22
|
|
|
23
23
|
// src/autoblock/block-major-version.ts
|
|
24
24
|
var import_semver = __toESM(require_semver(), 1);
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_veyyxx6nh0j from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_veyyxx6nh0j from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_veyyxx6nh0j from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_veyyxx6nh0j.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_veyyxx6nh0j.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_veyyxx6nh0j.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
createBlocker
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-VMECXQUV.js";
|
|
15
15
|
import {
|
|
16
16
|
require_semver
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-NFKEHU2E.js";
|
|
18
18
|
import {
|
|
19
19
|
__toESM
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-IGCHJJSD.js";
|
|
21
21
|
|
|
22
22
|
// src/autoblock/block-node-version.ts
|
|
23
23
|
var import_semver = __toESM(require_semver(), 1);
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_veyyxx6nh0j from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_veyyxx6nh0j from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_veyyxx6nh0j from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_veyyxx6nh0j.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_veyyxx6nh0j.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_veyyxx6nh0j.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-
|
|
14
|
+
} from "./chunk-SMXJ4I6L.js";
|
|
15
|
+
import "./chunk-O5WIZGX3.js";
|
|
16
16
|
import {
|
|
17
17
|
createBlocker
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-VMECXQUV.js";
|
|
19
|
+
import "./chunk-NFKEHU2E.js";
|
|
20
|
+
import "./chunk-IGCHJJSD.js";
|
|
21
21
|
|
|
22
22
|
// src/autoblock/block-webpack5-frameworks.ts
|
|
23
23
|
var minimalVersionsMap = {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_veyyxx6nh0j from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_veyyxx6nh0j from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_veyyxx6nh0j from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_veyyxx6nh0j.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_veyyxx6nh0j.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_veyyxx6nh0j.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_veyyxx6nh0j from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_veyyxx6nh0j from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_veyyxx6nh0j from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_veyyxx6nh0j.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_veyyxx6nh0j.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_veyyxx6nh0j.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -12,7 +12,7 @@ var require = CJS_COMPAT_NODE_MODULE_ppzqbnrhdsn.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
__commonJS,
|
|
14
14
|
__name
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-IGCHJJSD.js";
|
|
16
16
|
|
|
17
17
|
// ../../node_modules/semver/internal/constants.js
|
|
18
18
|
var require_constants = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_veyyxx6nh0j from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_veyyxx6nh0j from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_veyyxx6nh0j from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_veyyxx6nh0j.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_veyyxx6nh0j.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_veyyxx6nh0j.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
__name,
|
|
15
15
|
__require,
|
|
16
16
|
__toESM
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-IGCHJJSD.js";
|
|
18
18
|
|
|
19
19
|
// ../../node_modules/fast-glob/out/utils/array.js
|
|
20
20
|
var require_array = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_veyyxx6nh0j from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_veyyxx6nh0j from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_veyyxx6nh0j from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_veyyxx6nh0j.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_veyyxx6nh0j.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_veyyxx6nh0j.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -12,15 +12,15 @@ var require = CJS_COMPAT_NODE_MODULE_ppzqbnrhdsn.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
globby,
|
|
14
14
|
globbySync
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-O5WIZGX3.js";
|
|
16
16
|
import {
|
|
17
17
|
require_semver
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-NFKEHU2E.js";
|
|
19
19
|
import {
|
|
20
20
|
__commonJS,
|
|
21
21
|
__name,
|
|
22
22
|
__toESM
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-IGCHJJSD.js";
|
|
24
24
|
|
|
25
25
|
// ../../node_modules/picocolors/picocolors.js
|
|
26
26
|
var require_picocolors = __commonJS({
|
|
@@ -1144,11 +1144,11 @@ var import_semver = __toESM(require_semver(), 1);
|
|
|
1144
1144
|
// src/autoblock/index.ts
|
|
1145
1145
|
var blockers = /* @__PURE__ */ __name(() => [
|
|
1146
1146
|
// add/remove blockers here
|
|
1147
|
-
import("./block-dependencies-versions-
|
|
1148
|
-
import("./block-node-version-
|
|
1149
|
-
import("./block-webpack5-frameworks-
|
|
1150
|
-
import("./block-major-version-
|
|
1151
|
-
import("./block-experimental-addon-test-
|
|
1147
|
+
import("./block-dependencies-versions-7POAP5CS.js"),
|
|
1148
|
+
import("./block-node-version-Z7YPREG4.js"),
|
|
1149
|
+
import("./block-webpack5-frameworks-LE67UWAX.js"),
|
|
1150
|
+
import("./block-major-version-RCJUYIKB.js"),
|
|
1151
|
+
import("./block-experimental-addon-test-I4EOMCLS.js")
|
|
1152
1152
|
], "blockers");
|
|
1153
1153
|
var autoblock = /* @__PURE__ */ __name(async (options, list = blockers()) => {
|
|
1154
1154
|
if (list.length === 0) {
|
|
@@ -1416,7 +1416,7 @@ var processProject = /* @__PURE__ */ __name(async ({
|
|
|
1416
1416
|
}
|
|
1417
1417
|
}, "processProject");
|
|
1418
1418
|
var collectProjects = /* @__PURE__ */ __name(async (options, configDirs, onProjectScanStart) => {
|
|
1419
|
-
const { default: pLimit } = await import("./p-limit-
|
|
1419
|
+
const { default: pLimit } = await import("./p-limit-OLNVT6KG.js");
|
|
1420
1420
|
const currentCLIVersion = versions.storybook;
|
|
1421
1421
|
const limit = pLimit(5);
|
|
1422
1422
|
const projectPromises = configDirs.map(
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_veyyxx6nh0j from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_veyyxx6nh0j from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_veyyxx6nh0j from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_veyyxx6nh0j.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_veyyxx6nh0j.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_veyyxx6nh0j.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
__name
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-IGCHJJSD.js";
|
|
15
15
|
|
|
16
16
|
// src/autoblock/types.ts
|
|
17
17
|
function createBlocker(block) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_veyyxx6nh0j from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_veyyxx6nh0j from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_veyyxx6nh0j from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_veyyxx6nh0j.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_veyyxx6nh0j.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_veyyxx6nh0j.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-O5WIZGX3.js";
|
|
25
|
+
import "./chunk-IGCHJJSD.js";
|
|
26
26
|
export {
|
|
27
27
|
convertPathToPattern,
|
|
28
28
|
generateGlobTasks,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_veyyxx6nh0j from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_veyyxx6nh0j from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_veyyxx6nh0j from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_veyyxx6nh0j.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_veyyxx6nh0j.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_veyyxx6nh0j.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
__name
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-IGCHJJSD.js";
|
|
15
15
|
|
|
16
16
|
// ../../node_modules/yocto-queue/index.js
|
|
17
17
|
var Node = class {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_veyyxx6nh0j from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_veyyxx6nh0j from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_veyyxx6nh0j from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_veyyxx6nh0j.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_veyyxx6nh0j.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_veyyxx6nh0j.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -24,19 +24,19 @@ import {
|
|
|
24
24
|
shortenPath,
|
|
25
25
|
updateMainConfig,
|
|
26
26
|
upgradeStorybookDependencies
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-SMXJ4I6L.js";
|
|
28
28
|
import {
|
|
29
29
|
slash
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-O5WIZGX3.js";
|
|
31
31
|
import {
|
|
32
32
|
require_semver
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-NFKEHU2E.js";
|
|
34
34
|
import {
|
|
35
35
|
__commonJS,
|
|
36
36
|
__name,
|
|
37
37
|
__require,
|
|
38
38
|
__toESM
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-IGCHJJSD.js";
|
|
40
40
|
|
|
41
41
|
// ../../node_modules/envinfo/dist/envinfo.js
|
|
42
42
|
var require_envinfo = __commonJS({
|
|
@@ -4921,7 +4921,7 @@ __name(leven, "leven");
|
|
|
4921
4921
|
var import_picocolors17 = __toESM(require_picocolors(), 1);
|
|
4922
4922
|
|
|
4923
4923
|
// package.json
|
|
4924
|
-
var version = "10.0.0-beta.
|
|
4924
|
+
var version = "10.0.0-beta.11";
|
|
4925
4925
|
|
|
4926
4926
|
// src/add.ts
|
|
4927
4927
|
var import_semver = __toESM(require_semver(), 1);
|
|
@@ -6397,7 +6397,7 @@ async function runCodemod(globPattern = "**/*.stories.*", transform, { dryRun =
|
|
|
6397
6397
|
let modifiedCount = 0;
|
|
6398
6398
|
let unmodifiedCount = 0;
|
|
6399
6399
|
let errorCount = 0;
|
|
6400
|
-
const { globby } = await import("./globby-
|
|
6400
|
+
const { globby } = await import("./globby-GKKVMRKJ.js");
|
|
6401
6401
|
const files = await globby(slash(globPattern), {
|
|
6402
6402
|
followSymbolicLinks: true,
|
|
6403
6403
|
ignore: ["**/node_modules/**", "**/dist/**", "**/storybook-static/**", "**/build/**"]
|
|
@@ -6411,7 +6411,7 @@ Please try a different pattern.
|
|
|
6411
6411
|
throw new Error("No files matched");
|
|
6412
6412
|
}
|
|
6413
6413
|
try {
|
|
6414
|
-
const pLimit = (await import("./p-limit-
|
|
6414
|
+
const pLimit = (await import("./p-limit-OLNVT6KG.js")).default;
|
|
6415
6415
|
const limit = pLimit(maxConcurrentTasks);
|
|
6416
6416
|
await Promise.all(
|
|
6417
6417
|
files.map(
|
|
@@ -6571,6 +6571,18 @@ ${err}`);
|
|
|
6571
6571
|
const exportDecls = config._exportDecls;
|
|
6572
6572
|
const defineConfigProps = getConfigProperties(exportDecls, { configType });
|
|
6573
6573
|
const hasNamedExports = defineConfigProps.length > 0;
|
|
6574
|
+
function findDeclarationNodeIndex(declarationName) {
|
|
6575
|
+
return programNode.body.findIndex(
|
|
6576
|
+
(n) => t3.isVariableDeclaration(n) && n.declarations.some((d) => {
|
|
6577
|
+
let declaration = d.init;
|
|
6578
|
+
if (t3.isTSAsExpression(declaration) || t3.isTSSatisfiesExpression(declaration)) {
|
|
6579
|
+
declaration = declaration.expression;
|
|
6580
|
+
}
|
|
6581
|
+
return t3.isIdentifier(d.id) && d.id.name === declarationName && t3.isObjectExpression(declaration);
|
|
6582
|
+
})
|
|
6583
|
+
);
|
|
6584
|
+
}
|
|
6585
|
+
__name(findDeclarationNodeIndex, "findDeclarationNodeIndex");
|
|
6574
6586
|
if (config._exportsObject && hasNamedExports) {
|
|
6575
6587
|
config._exportsObject.properties = [...defineConfigProps, ...config._exportsObject.properties];
|
|
6576
6588
|
programNode.body = removeExportDeclarations(programNode, exportDecls);
|
|
@@ -6580,11 +6592,7 @@ ${err}`);
|
|
|
6580
6592
|
programNode.body.forEach((node) => {
|
|
6581
6593
|
if (t3.isExportDefaultDeclaration(node) && t3.isIdentifier(node.declaration)) {
|
|
6582
6594
|
const declarationName = node.declaration.name;
|
|
6583
|
-
declarationNodeIndex =
|
|
6584
|
-
(n) => t3.isVariableDeclaration(n) && n.declarations.some(
|
|
6585
|
-
(d) => t3.isIdentifier(d.id) && d.id.name === declarationName && t3.isObjectExpression(d.init)
|
|
6586
|
-
)
|
|
6587
|
-
);
|
|
6595
|
+
declarationNodeIndex = findDeclarationNodeIndex(declarationName);
|
|
6588
6596
|
if (declarationNodeIndex !== -1) {
|
|
6589
6597
|
exportDefaultNode = node;
|
|
6590
6598
|
const declarationNode = programNode.body[declarationNodeIndex];
|
|
@@ -6610,11 +6618,7 @@ ${err}`);
|
|
|
6610
6618
|
programNode.body.forEach((node) => {
|
|
6611
6619
|
if (t3.isExportDefaultDeclaration(node) && t3.isIdentifier(node.declaration)) {
|
|
6612
6620
|
const declarationName = node.declaration.name;
|
|
6613
|
-
declarationNodeIndex =
|
|
6614
|
-
(n) => t3.isVariableDeclaration(n) && n.declarations.some(
|
|
6615
|
-
(d) => t3.isIdentifier(d.id) && d.id.name === declarationName && t3.isObjectExpression(d.init)
|
|
6616
|
-
)
|
|
6617
|
-
);
|
|
6621
|
+
declarationNodeIndex = findDeclarationNodeIndex(declarationName);
|
|
6618
6622
|
if (declarationNodeIndex !== -1) {
|
|
6619
6623
|
exportDefaultNode = node;
|
|
6620
6624
|
const declarationNode = programNode.body[declarationNodeIndex];
|
|
@@ -7513,7 +7517,7 @@ var addonA11yParameters = {
|
|
|
7513
7517
|
}
|
|
7514
7518
|
}
|
|
7515
7519
|
}
|
|
7516
|
-
const { default: pLimit } = await import("./p-limit-
|
|
7520
|
+
const { default: pLimit } = await import("./p-limit-OLNVT6KG.js");
|
|
7517
7521
|
const limit = pLimit(10);
|
|
7518
7522
|
await Promise.all(
|
|
7519
7523
|
storyFilesToUpdate.map(
|
|
@@ -7603,13 +7607,7 @@ var addonExperimentalTest = {
|
|
|
7603
7607
|
// src/automigrate/fixes/addon-globals-api.ts
|
|
7604
7608
|
import { readFile as readFile2, writeFile } from "node:fs/promises";
|
|
7605
7609
|
import { types as t7 } from "storybook/internal/babel";
|
|
7606
|
-
import {
|
|
7607
|
-
formatConfig as formatConfig2,
|
|
7608
|
-
formatCsf,
|
|
7609
|
-
loadConfig as loadConfig4,
|
|
7610
|
-
loadCsf as loadCsf3,
|
|
7611
|
-
writeCsf as writeCsf2
|
|
7612
|
-
} from "storybook/internal/csf-tools";
|
|
7610
|
+
import { formatConfig as formatConfig2, loadConfig as loadConfig4, loadCsf as loadCsf3, writeCsf as writeCsf2 } from "storybook/internal/csf-tools";
|
|
7613
7611
|
var addonGlobalsApi = {
|
|
7614
7612
|
id: "addon-globals-api",
|
|
7615
7613
|
link: "https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#viewportbackgrounds-addon-synchronized-configuration-and-globals-usage",
|
|
@@ -7737,7 +7735,7 @@ var addonGlobalsApi = {
|
|
|
7737
7735
|
};
|
|
7738
7736
|
async function transformStoryFiles(files, options, dryRun) {
|
|
7739
7737
|
const errors = [];
|
|
7740
|
-
const { default: pLimit } = await import("./p-limit-
|
|
7738
|
+
const { default: pLimit } = await import("./p-limit-OLNVT6KG.js");
|
|
7741
7739
|
const limit = pLimit(10);
|
|
7742
7740
|
await Promise.all(
|
|
7743
7741
|
files.map(
|
|
@@ -7771,22 +7769,45 @@ function transformStoryFile(source, options) {
|
|
|
7771
7769
|
viewportParams = getObjectProperty(parameters, "viewport");
|
|
7772
7770
|
if (viewportParams) {
|
|
7773
7771
|
const defaultViewport = getObjectProperty(viewportParams, "defaultViewport");
|
|
7774
|
-
|
|
7772
|
+
const defaultOrientation = getObjectProperty(viewportParams, "defaultOrientation");
|
|
7773
|
+
const disableViewport = getObjectProperty(viewportParams, "disable");
|
|
7774
|
+
let viewportValue = null;
|
|
7775
|
+
if (defaultViewport) {
|
|
7776
|
+
if (t7.isStringLiteral(defaultViewport)) {
|
|
7777
|
+
viewportValue = defaultViewport;
|
|
7778
|
+
} else if (t7.isMemberExpression(defaultViewport)) {
|
|
7779
|
+
viewportValue = defaultViewport;
|
|
7780
|
+
}
|
|
7781
|
+
}
|
|
7782
|
+
if (viewportValue) {
|
|
7775
7783
|
if (!newGlobals) {
|
|
7776
7784
|
newGlobals = t7.objectExpression([]);
|
|
7777
7785
|
}
|
|
7786
|
+
let isRotated = false;
|
|
7787
|
+
if (defaultOrientation && t7.isStringLiteral(defaultOrientation)) {
|
|
7788
|
+
isRotated = defaultOrientation.value === "portrait";
|
|
7789
|
+
}
|
|
7778
7790
|
newGlobals.properties.push(
|
|
7779
7791
|
t7.objectProperty(
|
|
7780
7792
|
t7.identifier("viewport"),
|
|
7781
7793
|
t7.objectExpression([
|
|
7782
|
-
t7.objectProperty(t7.identifier("value"),
|
|
7783
|
-
t7.objectProperty(t7.identifier("isRotated"), t7.booleanLiteral(
|
|
7794
|
+
t7.objectProperty(t7.identifier("value"), viewportValue),
|
|
7795
|
+
t7.objectProperty(t7.identifier("isRotated"), t7.booleanLiteral(isRotated))
|
|
7784
7796
|
])
|
|
7785
7797
|
)
|
|
7786
7798
|
);
|
|
7787
7799
|
removeProperty(viewportParams, "defaultViewport");
|
|
7788
7800
|
storyHasChanges = true;
|
|
7789
7801
|
}
|
|
7802
|
+
if (defaultOrientation) {
|
|
7803
|
+
removeProperty(viewportParams, "defaultOrientation");
|
|
7804
|
+
storyHasChanges = true;
|
|
7805
|
+
}
|
|
7806
|
+
if (disableViewport && t7.isBooleanLiteral(disableViewport)) {
|
|
7807
|
+
removeProperty(viewportParams, "disable");
|
|
7808
|
+
addProperty(viewportParams, "disabled", disableViewport);
|
|
7809
|
+
storyHasChanges = true;
|
|
7810
|
+
}
|
|
7790
7811
|
}
|
|
7791
7812
|
}
|
|
7792
7813
|
if (needsBackgroundsMigration) {
|
|
@@ -7794,6 +7815,13 @@ function transformStoryFile(source, options) {
|
|
|
7794
7815
|
if (backgroundsParams) {
|
|
7795
7816
|
const defaultBackground = getObjectProperty(backgroundsParams, "default");
|
|
7796
7817
|
const disableBackground = getObjectProperty(backgroundsParams, "disable");
|
|
7818
|
+
const valuesBackground = getObjectProperty(backgroundsParams, "values");
|
|
7819
|
+
if (valuesBackground && t7.isArrayExpression(valuesBackground)) {
|
|
7820
|
+
const optionsObject = transformValuesToOptions(valuesBackground);
|
|
7821
|
+
removeProperty(backgroundsParams, "values");
|
|
7822
|
+
addProperty(backgroundsParams, "options", optionsObject);
|
|
7823
|
+
storyHasChanges = true;
|
|
7824
|
+
}
|
|
7797
7825
|
if (defaultBackground && t7.isStringLiteral(defaultBackground)) {
|
|
7798
7826
|
if (!newGlobals) {
|
|
7799
7827
|
newGlobals = t7.objectExpression([]);
|
|
@@ -8026,7 +8054,7 @@ function transformPackageJson(content) {
|
|
|
8026
8054
|
__name(transformPackageJson, "transformPackageJson");
|
|
8027
8055
|
var transformPackageJsonFiles = /* @__PURE__ */ __name(async (files, dryRun) => {
|
|
8028
8056
|
const errors = [];
|
|
8029
|
-
const { default: pLimit } = await import("./p-limit-
|
|
8057
|
+
const { default: pLimit } = await import("./p-limit-OLNVT6KG.js");
|
|
8030
8058
|
const limit = pLimit(10);
|
|
8031
8059
|
await Promise.all(
|
|
8032
8060
|
files.map(
|
|
@@ -8088,7 +8116,7 @@ var consolidatedImports = {
|
|
|
8088
8116
|
dryRun
|
|
8089
8117
|
);
|
|
8090
8118
|
errors.push(...packageJsonErrors);
|
|
8091
|
-
const { globby } = await import("./globby-
|
|
8119
|
+
const { globby } = await import("./globby-GKKVMRKJ.js");
|
|
8092
8120
|
const configFiles = await globby([`${configDir}/**/*`]);
|
|
8093
8121
|
const importErrors = await transformImportFiles(
|
|
8094
8122
|
[...storiesPaths, ...configFiles].filter(Boolean),
|
|
@@ -8681,7 +8709,7 @@ var replaceImports = /* @__PURE__ */ __name((source, renderer, framework) => {
|
|
|
8681
8709
|
}, "replaceImports");
|
|
8682
8710
|
var transformSourceFiles = /* @__PURE__ */ __name(async (files, renderer, framework, dryRun) => {
|
|
8683
8711
|
const errors = [];
|
|
8684
|
-
const { default: pLimit } = await import("./p-limit-
|
|
8712
|
+
const { default: pLimit } = await import("./p-limit-OLNVT6KG.js");
|
|
8685
8713
|
const limit = pLimit(10);
|
|
8686
8714
|
await Promise.all(
|
|
8687
8715
|
files.map(
|
|
@@ -8783,7 +8811,7 @@ var rendererToFramework = {
|
|
|
8783
8811
|
}
|
|
8784
8812
|
logger12.debug(`
|
|
8785
8813
|
Migrating ${rendererPackage} to ${selectedFramework}`);
|
|
8786
|
-
const { globby } = await import("./globby-
|
|
8814
|
+
const { globby } = await import("./globby-GKKVMRKJ.js");
|
|
8787
8815
|
const configFiles = await globby([`${configDir}/**/*`]);
|
|
8788
8816
|
await transformSourceFiles(
|
|
8789
8817
|
[...storiesPaths, ...configFiles].filter(Boolean),
|
|
@@ -8818,7 +8846,7 @@ async function renameInFile(filePath, oldText, newText) {
|
|
|
8818
8846
|
__name(renameInFile, "renameInFile");
|
|
8819
8847
|
var getDotStorybookReferences = /* @__PURE__ */ __name(async (searchDir) => {
|
|
8820
8848
|
try {
|
|
8821
|
-
const { globby } = await import("./globby-
|
|
8849
|
+
const { globby } = await import("./globby-GKKVMRKJ.js");
|
|
8822
8850
|
const { readFile: readFile9 } = await import("node:fs/promises");
|
|
8823
8851
|
const files = await globby(`${searchDir}/**/*`, {
|
|
8824
8852
|
onlyFiles: true,
|
|
@@ -8853,7 +8881,7 @@ var rnstorybookConfig = {
|
|
|
8853
8881
|
const projectDir = mainConfigPath ? join2(mainConfigPath, "..", "..") : process.cwd();
|
|
8854
8882
|
const storybookDir = join2(projectDir, ".storybook");
|
|
8855
8883
|
const rnStorybookDir = join2(projectDir, ".rnstorybook");
|
|
8856
|
-
const { globby } = await import("./globby-
|
|
8884
|
+
const { globby } = await import("./globby-GKKVMRKJ.js");
|
|
8857
8885
|
const requiresFiles = await globby(join2(storybookDir, "storybook.requires.*"));
|
|
8858
8886
|
if (existsSync2(storybookDir) && requiresFiles.length > 0 && !existsSync2(rnStorybookDir)) {
|
|
8859
8887
|
return { storybookDir, rnStorybookDir };
|
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_veyyxx6nh0j from 'node:url';
|
|
3
|
+
import CJS_COMPAT_NODE_PATH_veyyxx6nh0j from 'node:path';
|
|
4
|
+
import CJS_COMPAT_NODE_MODULE_veyyxx6nh0j from "node:module";
|
|
5
5
|
|
|
6
|
-
var __filename =
|
|
7
|
-
var __dirname =
|
|
8
|
-
var require =
|
|
6
|
+
var __filename = CJS_COMPAT_NODE_URL_veyyxx6nh0j.fileURLToPath(import.meta.url);
|
|
7
|
+
var __dirname = CJS_COMPAT_NODE_PATH_veyyxx6nh0j.dirname(__filename);
|
|
8
|
+
var require = CJS_COMPAT_NODE_MODULE_veyyxx6nh0j.createRequire(import.meta.url);
|
|
9
9
|
|
|
10
10
|
// ------------------------------------------------------------
|
|
11
11
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -22,4 +22,4 @@ if (majorNodeVersion < 20 || majorNodeVersion === 20 && minorNodeVersion < 19 ||
|
|
|
22
22
|
);
|
|
23
23
|
process.exit(1);
|
|
24
24
|
}
|
|
25
|
-
import("../_node-chunks/run-
|
|
25
|
+
import("../_node-chunks/run-H2A2DHVZ.js");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/cli",
|
|
3
|
-
"version": "10.0.0-beta.
|
|
3
|
+
"version": "10.0.0-beta.11",
|
|
4
4
|
"description": "Storybook CLI: Develop, document, and test UI components in isolation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -41,13 +41,13 @@
|
|
|
41
41
|
"prep": "jiti ../../../scripts/build/build-package.ts"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@storybook/codemod": "10.0.0-beta.
|
|
44
|
+
"@storybook/codemod": "10.0.0-beta.11",
|
|
45
45
|
"@types/semver": "^7.3.4",
|
|
46
46
|
"commander": "^14.0.1",
|
|
47
|
-
"create-storybook": "10.0.0-beta.
|
|
47
|
+
"create-storybook": "10.0.0-beta.11",
|
|
48
48
|
"giget": "^2.0.0",
|
|
49
49
|
"jscodeshift": "^0.15.1",
|
|
50
|
-
"storybook": "10.0.0-beta.
|
|
50
|
+
"storybook": "10.0.0-beta.11",
|
|
51
51
|
"ts-dedent": "^2.0.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|