@storybook/cli 10.4.0-alpha.5 → 10.4.0-alpha.6
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-7CZIJDGX.js → block-dependencies-versions-4SW3RNVN.js} +11 -11
- package/dist/_node-chunks/{block-experimental-addon-test-6Y7ETWV2.js → block-experimental-addon-test-TDPASIS2.js} +9 -9
- package/dist/_node-chunks/{block-major-version-LB7E3VLN.js → block-major-version-J7ESXIQG.js} +9 -9
- package/dist/_node-chunks/{block-node-version-BTHQD6G5.js → block-node-version-BIZPQOM2.js} +9 -9
- package/dist/_node-chunks/{block-webpack5-frameworks-JHDDQ7QG.js → block-webpack5-frameworks-5ZBMYNTI.js} +11 -11
- package/dist/_node-chunks/{chunk-NQJCEETK.js → chunk-6UAUIVYK.js} +7 -7
- package/dist/_node-chunks/chunk-CFJUBP6A.js +11 -0
- package/dist/_node-chunks/{chunk-RF4DKADO.js → chunk-IC6SBKCK.js} +7 -7
- package/dist/_node-chunks/{chunk-6RDPQFJ5.js → chunk-NJN6GSDE.js} +15 -15
- package/dist/_node-chunks/{chunk-LJ6ATVM7.js → chunk-YUTHJZPM.js} +6 -6
- package/dist/_node-chunks/{globby-VAF74H72.js → globby-PV3WLQER.js} +8 -8
- package/dist/_node-chunks/{p-limit-G2L5CLFY.js → p-limit-SGBWKVRU.js} +7 -7
- package/dist/_node-chunks/{run-NRR3Z6WJ.js → run-DZQPWIEN.js} +112 -86
- package/dist/bin/index.js +7 -7
- package/package.json +4 -4
- package/dist/_node-chunks/chunk-NCUEUYYY.js +0 -11
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_adcalpw4sjt from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_adcalpw4sjt from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_adcalpw4sjt from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_adcalpw4sjt.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_adcalpw4sjt.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_adcalpw4sjt.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-NJN6GSDE.js";
|
|
15
|
+
import "./chunk-IC6SBKCK.js";
|
|
16
|
+
import "./chunk-CFJUBP6A.js";
|
|
17
|
+
import "./chunk-6UAUIVYK.js";
|
|
18
|
+
import "./chunk-YUTHJZPM.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_adcalpw4sjt from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_adcalpw4sjt from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_adcalpw4sjt from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_adcalpw4sjt.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_adcalpw4sjt.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_adcalpw4sjt.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-CFJUBP6A.js";
|
|
13
13
|
import {
|
|
14
14
|
require_semver
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-6UAUIVYK.js";
|
|
16
16
|
import {
|
|
17
17
|
__toESM
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-YUTHJZPM.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-LB7E3VLN.js → block-major-version-J7ESXIQG.js}
RENAMED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_adcalpw4sjt from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_adcalpw4sjt from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_adcalpw4sjt from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_adcalpw4sjt.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_adcalpw4sjt.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_adcalpw4sjt.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-CFJUBP6A.js";
|
|
13
13
|
import {
|
|
14
14
|
require_semver
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-6UAUIVYK.js";
|
|
16
16
|
import {
|
|
17
17
|
__toESM
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-YUTHJZPM.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_adcalpw4sjt from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_adcalpw4sjt from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_adcalpw4sjt from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_adcalpw4sjt.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_adcalpw4sjt.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_adcalpw4sjt.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-CFJUBP6A.js";
|
|
13
13
|
import {
|
|
14
14
|
require_semver
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-6UAUIVYK.js";
|
|
16
16
|
import {
|
|
17
17
|
__toESM
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-YUTHJZPM.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_adcalpw4sjt from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_adcalpw4sjt from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_adcalpw4sjt from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_adcalpw4sjt.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_adcalpw4sjt.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_adcalpw4sjt.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-NJN6GSDE.js";
|
|
15
|
+
import "./chunk-IC6SBKCK.js";
|
|
16
|
+
import "./chunk-CFJUBP6A.js";
|
|
17
|
+
import "./chunk-6UAUIVYK.js";
|
|
18
|
+
import "./chunk-YUTHJZPM.js";
|
|
19
19
|
|
|
20
20
|
// src/autoblock/block-webpack5-frameworks.ts
|
|
21
21
|
var minimalVersionsMap = {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_adcalpw4sjt from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_adcalpw4sjt from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_adcalpw4sjt from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_adcalpw4sjt.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_adcalpw4sjt.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_adcalpw4sjt.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-YUTHJZPM.js";
|
|
15
15
|
|
|
16
16
|
// ../../../node_modules/semver/internal/constants.js
|
|
17
17
|
var require_constants = __commonJS({
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_adcalpw4sjt from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_adcalpw4sjt from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_adcalpw4sjt from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_adcalpw4sjt.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_adcalpw4sjt.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_adcalpw4sjt.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_adcalpw4sjt from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_adcalpw4sjt from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_adcalpw4sjt from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_adcalpw4sjt.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_adcalpw4sjt.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_adcalpw4sjt.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-YUTHJZPM.js";
|
|
17
17
|
|
|
18
18
|
// ../../../node_modules/fast-glob/out/utils/array.js
|
|
19
19
|
var require_array = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_adcalpw4sjt from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_adcalpw4sjt from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_adcalpw4sjt from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_adcalpw4sjt.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_adcalpw4sjt.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_adcalpw4sjt.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_aw326zn19h.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
globby,
|
|
14
14
|
globbySync
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-IC6SBKCK.js";
|
|
16
16
|
import {
|
|
17
17
|
require_semver
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-6UAUIVYK.js";
|
|
19
19
|
import {
|
|
20
20
|
__commonJS,
|
|
21
21
|
__toESM
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-YUTHJZPM.js";
|
|
23
23
|
|
|
24
24
|
// ../../../node_modules/picocolors/picocolors.js
|
|
25
25
|
var require_picocolors = __commonJS({
|
|
@@ -122,11 +122,11 @@ var import_picocolors2 = __toESM(require_picocolors(), 1), import_semver = __toE
|
|
|
122
122
|
// src/autoblock/index.ts
|
|
123
123
|
var blockers = () => [
|
|
124
124
|
// add/remove blockers here
|
|
125
|
-
import("./block-dependencies-versions-
|
|
126
|
-
import("./block-node-version-
|
|
127
|
-
import("./block-webpack5-frameworks-
|
|
128
|
-
import("./block-major-version-
|
|
129
|
-
import("./block-experimental-addon-test-
|
|
125
|
+
import("./block-dependencies-versions-4SW3RNVN.js"),
|
|
126
|
+
import("./block-node-version-BIZPQOM2.js"),
|
|
127
|
+
import("./block-webpack5-frameworks-5ZBMYNTI.js"),
|
|
128
|
+
import("./block-major-version-J7ESXIQG.js"),
|
|
129
|
+
import("./block-experimental-addon-test-TDPASIS2.js")
|
|
130
130
|
], autoblock = async (options, list = blockers()) => list.length === 0 ? null : await Promise.all(
|
|
131
131
|
list.map(async (i) => {
|
|
132
132
|
let blocker = (await i).blocker;
|
|
@@ -340,7 +340,7 @@ var processProject = async ({
|
|
|
340
340
|
};
|
|
341
341
|
}
|
|
342
342
|
}, collectProjects = async (options, configDirs, onProjectScanStart) => {
|
|
343
|
-
let { default: pLimit } = await import("./p-limit-
|
|
343
|
+
let { default: pLimit } = await import("./p-limit-SGBWKVRU.js"), currentCLIVersion = versions.storybook, limit = pLimit(5), projectPromises = configDirs.map(
|
|
344
344
|
(configDir) => limit(
|
|
345
345
|
() => processProject({
|
|
346
346
|
configDir,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_adcalpw4sjt from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_adcalpw4sjt from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_adcalpw4sjt from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_adcalpw4sjt.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_adcalpw4sjt.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_adcalpw4sjt.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_adcalpw4sjt from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_adcalpw4sjt from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_adcalpw4sjt from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_adcalpw4sjt.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_adcalpw4sjt.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_adcalpw4sjt.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-IC6SBKCK.js";
|
|
25
|
+
import "./chunk-YUTHJZPM.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_adcalpw4sjt from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_adcalpw4sjt from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_adcalpw4sjt from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_adcalpw4sjt.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_adcalpw4sjt.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_adcalpw4sjt.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-YUTHJZPM.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_adcalpw4sjt from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_adcalpw4sjt from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_adcalpw4sjt from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_adcalpw4sjt.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_adcalpw4sjt.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_adcalpw4sjt.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -25,18 +25,18 @@ import {
|
|
|
25
25
|
shortenPath,
|
|
26
26
|
updateMainConfig,
|
|
27
27
|
upgradeStorybookDependencies
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-NJN6GSDE.js";
|
|
29
29
|
import {
|
|
30
30
|
slash
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-IC6SBKCK.js";
|
|
32
32
|
import {
|
|
33
33
|
require_semver
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-6UAUIVYK.js";
|
|
35
35
|
import {
|
|
36
36
|
__commonJS,
|
|
37
37
|
__require,
|
|
38
38
|
__toESM
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-YUTHJZPM.js";
|
|
40
40
|
|
|
41
41
|
// ../../../node_modules/envinfo/dist/envinfo.js
|
|
42
42
|
var require_envinfo = __commonJS({
|
|
@@ -4758,10 +4758,10 @@ function leven(first, second, options) {
|
|
|
4758
4758
|
}
|
|
4759
4759
|
|
|
4760
4760
|
// src/bin/run.ts
|
|
4761
|
-
var
|
|
4761
|
+
var import_picocolors17 = __toESM(require_picocolors(), 1);
|
|
4762
4762
|
|
|
4763
4763
|
// package.json
|
|
4764
|
-
var version = "10.4.0-alpha.
|
|
4764
|
+
var version = "10.4.0-alpha.6";
|
|
4765
4765
|
|
|
4766
4766
|
// src/add.ts
|
|
4767
4767
|
var import_semver = __toESM(require_semver(), 1);
|
|
@@ -5078,7 +5078,7 @@ function isValidVersion(version2) {
|
|
|
5078
5078
|
}
|
|
5079
5079
|
|
|
5080
5080
|
// src/automigrate/index.ts
|
|
5081
|
-
var
|
|
5081
|
+
var import_picocolors14 = __toESM(require_picocolors(), 1);
|
|
5082
5082
|
import { versions as versions3 } from "storybook/internal/common";
|
|
5083
5083
|
import { logTracker as logTracker2, logger as logger16, prompt as prompt3 } from "storybook/internal/node-logger";
|
|
5084
5084
|
import { AutomigrateError } from "storybook/internal/server-errors";
|
|
@@ -5095,7 +5095,7 @@ function invariant(condition, message) {
|
|
|
5095
5095
|
}
|
|
5096
5096
|
|
|
5097
5097
|
// src/automigrate/index.ts
|
|
5098
|
-
import { dedent as
|
|
5098
|
+
import { dedent as dedent14 } from "ts-dedent";
|
|
5099
5099
|
|
|
5100
5100
|
// src/doctor/index.ts
|
|
5101
5101
|
var import_picocolors4 = __toESM(require_picocolors(), 1);
|
|
@@ -5625,7 +5625,7 @@ import { logger as logger3 } from "storybook/internal/node-logger";
|
|
|
5625
5625
|
import { promises as fs } from "fs";
|
|
5626
5626
|
var maxConcurrentTasks = Math.max(1, os.cpus().length - 1);
|
|
5627
5627
|
async function runCodemod(globPattern = "**/*.{stories,story}.{js,jsx,ts,tsx,mjs,mjsx,mts,mtsx}", transform, { dryRun = !1, skipFormatting = !1 } = {}) {
|
|
5628
|
-
let modifiedCount = 0, unmodifiedCount = 0, errorCount = 0, { globby } = await import("./globby-
|
|
5628
|
+
let modifiedCount = 0, unmodifiedCount = 0, errorCount = 0, { globby } = await import("./globby-PV3WLQER.js"), files = await globby(slash(globPattern), {
|
|
5629
5629
|
followSymbolicLinks: !0,
|
|
5630
5630
|
ignore: ["**/node_modules/**", "**/dist/**", "**/storybook-static/**", "**/build/**"]
|
|
5631
5631
|
});
|
|
@@ -5636,7 +5636,7 @@ Please try a different pattern.
|
|
|
5636
5636
|
`
|
|
5637
5637
|
), new Error("No files matched");
|
|
5638
5638
|
try {
|
|
5639
|
-
let pLimit = (await import("./p-limit-
|
|
5639
|
+
let pLimit = (await import("./p-limit-SGBWKVRU.js")).default, limit = pLimit(maxConcurrentTasks);
|
|
5640
5640
|
await Promise.all(
|
|
5641
5641
|
files.map(
|
|
5642
5642
|
(file) => limit(async () => {
|
|
@@ -6479,7 +6479,7 @@ var addonA11yParameters = {
|
|
|
6479
6479
|
errors.push({ file: previewFileToUpdate, error });
|
|
6480
6480
|
}
|
|
6481
6481
|
}
|
|
6482
|
-
let { default: pLimit } = await import("./p-limit-
|
|
6482
|
+
let { default: pLimit } = await import("./p-limit-SGBWKVRU.js"), limit = pLimit(10);
|
|
6483
6483
|
if (await Promise.all(
|
|
6484
6484
|
storyFilesToUpdate.map(
|
|
6485
6485
|
(file) => limit(async () => {
|
|
@@ -6633,7 +6633,7 @@ var addonGlobalsApi = {
|
|
|
6633
6633
|
}
|
|
6634
6634
|
};
|
|
6635
6635
|
async function transformStoryFiles(files, options, dryRun) {
|
|
6636
|
-
let errors = [], { default: pLimit } = await import("./p-limit-
|
|
6636
|
+
let errors = [], { default: pLimit } = await import("./p-limit-SGBWKVRU.js"), limit = pLimit(10);
|
|
6637
6637
|
return await Promise.all(
|
|
6638
6638
|
files.map(
|
|
6639
6639
|
(file) => limit(async () => {
|
|
@@ -6825,7 +6825,7 @@ function transformPackageJson(content) {
|
|
|
6825
6825
|
return hasChanges ? JSON.stringify(packageJson, null, 2) : null;
|
|
6826
6826
|
}
|
|
6827
6827
|
var transformPackageJsonFiles = async (files, dryRun) => {
|
|
6828
|
-
let errors = [], { default: pLimit } = await import("./p-limit-
|
|
6828
|
+
let errors = [], { default: pLimit } = await import("./p-limit-SGBWKVRU.js"), limit = pLimit(10);
|
|
6829
6829
|
return await Promise.all(
|
|
6830
6830
|
files.map(
|
|
6831
6831
|
(file) => limit(async () => {
|
|
@@ -6864,7 +6864,7 @@ var transformPackageJsonFiles = async (files, dryRun) => {
|
|
|
6864
6864
|
dryRun
|
|
6865
6865
|
);
|
|
6866
6866
|
errors.push(...packageJsonErrors);
|
|
6867
|
-
let { globby } = await import("./globby-
|
|
6867
|
+
let { globby } = await import("./globby-PV3WLQER.js"), configFiles = await globby([`${configDir}/**/*`]), importErrors = await transformImportFiles(
|
|
6868
6868
|
[...storiesPaths, ...configFiles].filter(Boolean),
|
|
6869
6869
|
{
|
|
6870
6870
|
...consolidatedPackages,
|
|
@@ -7220,7 +7220,7 @@ var VITE_DEFAULT_VERSION = "^7.0.0", transformMainConfig = async (mainConfigPath
|
|
|
7220
7220
|
]);
|
|
7221
7221
|
}
|
|
7222
7222
|
mainConfigPath && (logger11.debug("Updating main config file..."), await transformMainConfig(mainConfigPath, dryRun)), logger11.debug("Scanning and updating import statements...");
|
|
7223
|
-
let { globby } = await import("./globby-
|
|
7223
|
+
let { globby } = await import("./globby-PV3WLQER.js"), configFiles = await globby([`${configDir}/**/*`]), allFiles = [...storiesPaths, ...configFiles].filter(Boolean), transformErrors = await transformImportFiles2(
|
|
7224
7224
|
allFiles,
|
|
7225
7225
|
{
|
|
7226
7226
|
"@storybook/nextjs": "@storybook/nextjs-vite"
|
|
@@ -7430,7 +7430,7 @@ var getAllDependencies = (packageJson) => Object.keys({
|
|
|
7430
7430
|
let regex = new RegExp(`(['"])${renderer}(['"])`, "g");
|
|
7431
7431
|
return regex.test(source) ? source.replace(regex, `$1${framework}$2`) : null;
|
|
7432
7432
|
}, transformSourceFiles = async (files, renderer, framework, dryRun) => {
|
|
7433
|
-
let errors = [], { default: pLimit } = await import("./p-limit-
|
|
7433
|
+
let errors = [], { default: pLimit } = await import("./p-limit-SGBWKVRU.js"), limit = pLimit(10);
|
|
7434
7434
|
return await Promise.all(
|
|
7435
7435
|
files.map(
|
|
7436
7436
|
(file) => limit(async () => {
|
|
@@ -7497,7 +7497,7 @@ var getAllDependencies = (packageJson) => Object.keys({
|
|
|
7497
7497
|
continue;
|
|
7498
7498
|
logger13.debug(`
|
|
7499
7499
|
Migrating ${rendererPackage} to ${selectedFramework}`);
|
|
7500
|
-
let { globby } = await import("./globby-
|
|
7500
|
+
let { globby } = await import("./globby-PV3WLQER.js"), configFiles = await globby([`${configDir}/**/*`]);
|
|
7501
7501
|
await transformSourceFiles(
|
|
7502
7502
|
[...storiesPaths, ...configFiles].filter(Boolean),
|
|
7503
7503
|
rendererPackage,
|
|
@@ -7527,7 +7527,7 @@ async function renameInFile(filePath, oldText, newText) {
|
|
|
7527
7527
|
}
|
|
7528
7528
|
var getDotStorybookReferences = async (searchDir) => {
|
|
7529
7529
|
try {
|
|
7530
|
-
let { globby } = await import("./globby-
|
|
7530
|
+
let { globby } = await import("./globby-PV3WLQER.js"), { readFile: readFile10 } = await import("node:fs/promises"), files = await globby(`${searchDir}/**/*`, {
|
|
7531
7531
|
onlyFiles: !0,
|
|
7532
7532
|
gitignore: !0
|
|
7533
7533
|
}), referencedFiles = [];
|
|
@@ -7548,7 +7548,7 @@ var getDotStorybookReferences = async (searchDir) => {
|
|
|
7548
7548
|
async check({ packageManager, mainConfigPath }) {
|
|
7549
7549
|
if (!packageManager.getAllDependencies()["@storybook/react-native"])
|
|
7550
7550
|
return null;
|
|
7551
|
-
let projectDir = mainConfigPath ? join2(mainConfigPath, "..", "..") : process.cwd(), storybookDir = join2(projectDir, ".storybook"), rnStorybookDir = join2(projectDir, ".rnstorybook"), { globby } = await import("./globby-
|
|
7551
|
+
let projectDir = mainConfigPath ? join2(mainConfigPath, "..", "..") : process.cwd(), storybookDir = join2(projectDir, ".storybook"), rnStorybookDir = join2(projectDir, ".rnstorybook"), { globby } = await import("./globby-PV3WLQER.js"), requiresFiles = await globby(join2(storybookDir, "storybook.requires.*"));
|
|
7552
7552
|
return existsSync2(storybookDir) && requiresFiles.length > 0 && !existsSync2(rnStorybookDir) ? { storybookDir, rnStorybookDir } : null;
|
|
7553
7553
|
},
|
|
7554
7554
|
prompt() {
|
|
@@ -7564,13 +7564,38 @@ var getDotStorybookReferences = async (searchDir) => {
|
|
|
7564
7564
|
}
|
|
7565
7565
|
};
|
|
7566
7566
|
|
|
7567
|
+
// src/automigrate/fixes/storybook-package-name-conflict.ts
|
|
7568
|
+
var import_picocolors12 = __toESM(require_picocolors(), 1);
|
|
7569
|
+
import { dedent as dedent10 } from "ts-dedent";
|
|
7570
|
+
var storybookPackageNameConflict = {
|
|
7571
|
+
id: "storybookPackageNameConflict",
|
|
7572
|
+
promptType: "notification",
|
|
7573
|
+
link: "https://github.com/storybookjs/storybook/issues/28725",
|
|
7574
|
+
async check({ packageManager }) {
|
|
7575
|
+
let packageName = packageManager.primaryPackageJson.packageJson.name;
|
|
7576
|
+
return packageName === "storybook" ? { packageName } : null;
|
|
7577
|
+
},
|
|
7578
|
+
prompt() {
|
|
7579
|
+
return dedent10`
|
|
7580
|
+
Your package.json ${import_picocolors12.default.cyan('"name"')} field is set to ${import_picocolors12.default.cyan('"storybook"')}.
|
|
7581
|
+
|
|
7582
|
+
In npm, pnpm, or yarn workspaces this creates a symlink at
|
|
7583
|
+
${import_picocolors12.default.yellow("node_modules/storybook")} that shadows the real Storybook
|
|
7584
|
+
package, causing ${import_picocolors12.default.red('"Cannot find module storybook/internal/..."')} errors.
|
|
7585
|
+
|
|
7586
|
+
To fix this, rename the ${import_picocolors12.default.cyan('"name"')} field in your package.json
|
|
7587
|
+
to something other than ${import_picocolors12.default.cyan('"storybook"')} (e.g. "my-storybook", "docs", "@myorg/storybook").
|
|
7588
|
+
`;
|
|
7589
|
+
}
|
|
7590
|
+
};
|
|
7591
|
+
|
|
7567
7592
|
// src/automigrate/fixes/upgrade-storybook-related-dependencies.ts
|
|
7568
7593
|
var import_semver5 = __toESM(require_semver(), 1);
|
|
7569
7594
|
import { readFileSync as readFileSync4 } from "node:fs";
|
|
7570
7595
|
import { dirname as dirname2 } from "node:path";
|
|
7571
7596
|
import { isCorePackage, isSatelliteAddon } from "storybook/internal/common";
|
|
7572
7597
|
import { logger as logger14 } from "storybook/internal/node-logger";
|
|
7573
|
-
import { dedent as
|
|
7598
|
+
import { dedent as dedent11 } from "ts-dedent";
|
|
7574
7599
|
async function getLatestVersions(packageManager, packages) {
|
|
7575
7600
|
return Promise.all(
|
|
7576
7601
|
packages.map(async ([packageName]) => ({
|
|
@@ -7609,7 +7634,7 @@ var upgradeStorybookRelatedDependencies = {
|
|
|
7609
7634
|
},
|
|
7610
7635
|
async run({ result: { upgradable }, packageManager, dryRun }) {
|
|
7611
7636
|
if (dryRun) {
|
|
7612
|
-
logger14.log(
|
|
7637
|
+
logger14.log(dedent11`
|
|
7613
7638
|
The following would have been upgraded:
|
|
7614
7639
|
${upgradable.map(
|
|
7615
7640
|
({ packageName, afterVersion, beforeVersion }) => `${packageName}: ${beforeVersion} => ${afterVersion}`
|
|
@@ -7641,7 +7666,7 @@ import {
|
|
|
7641
7666
|
} from "storybook/internal/common";
|
|
7642
7667
|
import { readConfig as readConfig3 } from "storybook/internal/csf-tools";
|
|
7643
7668
|
import { CommonJsConfigNotSupportedError } from "storybook/internal/server-errors";
|
|
7644
|
-
import { dedent as
|
|
7669
|
+
import { dedent as dedent12 } from "ts-dedent";
|
|
7645
7670
|
var wrapGetAbsolutePath = {
|
|
7646
7671
|
id: "wrap-getAbsolutePath",
|
|
7647
7672
|
link: "https://storybook.js.org/docs/faq#how-do-i-fix-module-resolution-in-special-environments",
|
|
@@ -7658,7 +7683,7 @@ var wrapGetAbsolutePath = {
|
|
|
7658
7683
|
return { storybookVersion, isStorybookInMonorepo, isPnp, isConfigTypescript };
|
|
7659
7684
|
},
|
|
7660
7685
|
prompt() {
|
|
7661
|
-
return
|
|
7686
|
+
return dedent12`We have detected that you're using Storybook in a monorepo or PnP project. Some fields in your main config must be updated.`;
|
|
7662
7687
|
},
|
|
7663
7688
|
async run({ dryRun, mainConfigPath, result }) {
|
|
7664
7689
|
await updateMainConfig({ dryRun: !!dryRun, mainConfigPath }, (mainConfig) => {
|
|
@@ -7695,14 +7720,15 @@ var allFixes = [
|
|
|
7695
7720
|
addonA11yParameters,
|
|
7696
7721
|
removeDocsAutodocs,
|
|
7697
7722
|
wrapGetAbsolutePath,
|
|
7698
|
-
fixFauxEsmRequire
|
|
7723
|
+
fixFauxEsmRequire,
|
|
7724
|
+
storybookPackageNameConflict
|
|
7699
7725
|
];
|
|
7700
7726
|
var commandFixes = [csfFactories];
|
|
7701
7727
|
|
|
7702
7728
|
// src/automigrate/helpers/logMigrationSummary.ts
|
|
7703
|
-
var
|
|
7729
|
+
var import_picocolors13 = __toESM(require_picocolors(), 1);
|
|
7704
7730
|
import { CLI_COLORS as CLI_COLORS2, logger as logger15 } from "storybook/internal/node-logger";
|
|
7705
|
-
import { dedent as
|
|
7731
|
+
import { dedent as dedent13 } from "ts-dedent";
|
|
7706
7732
|
var messageDivider2 = `
|
|
7707
7733
|
|
|
7708
7734
|
`, segmentDivider = `
|
|
@@ -7712,23 +7738,23 @@ var messageDivider2 = `
|
|
|
7712
7738
|
`;
|
|
7713
7739
|
function getGlossaryMessages(fixSummary, fixResults) {
|
|
7714
7740
|
let messages2 = [];
|
|
7715
|
-
return fixSummary.succeeded.length > 0 && (messages2.push(
|
|
7716
|
-
Object.entries(fixSummary.failed).map(([id, error]) => `${
|
|
7741
|
+
return fixSummary.succeeded.length > 0 && (messages2.push(import_picocolors13.default.bold("Successful migrations:")), messages2.push(fixSummary.succeeded.map((m) => import_picocolors13.default.green(m)).join(", "))), Object.keys(fixSummary.failed).length > 0 && (messages2.push(import_picocolors13.default.bold("Failed migrations:")), messages2.push(
|
|
7742
|
+
Object.entries(fixSummary.failed).map(([id, error]) => `${import_picocolors13.default.bold(import_picocolors13.default.red(id))}:
|
|
7717
7743
|
${error}`).join(`
|
|
7718
7744
|
`)
|
|
7719
|
-
)), fixSummary.manual.length > 0 && (messages2.push(
|
|
7745
|
+
)), fixSummary.manual.length > 0 && (messages2.push(import_picocolors13.default.bold("Manual migrations:")), messages2.push(
|
|
7720
7746
|
fixSummary.manual.map(
|
|
7721
|
-
(m) => fixResults[m] === "manual_succeeded" /* MANUAL_SUCCEEDED */ ?
|
|
7747
|
+
(m) => fixResults[m] === "manual_succeeded" /* MANUAL_SUCCEEDED */ ? import_picocolors13.default.green(m) : import_picocolors13.default.blue(m)
|
|
7722
7748
|
).join(", ")
|
|
7723
|
-
)), fixSummary.skipped.length > 0 && (messages2.push(
|
|
7749
|
+
)), fixSummary.skipped.length > 0 && (messages2.push(import_picocolors13.default.bold("Skipped migrations:")), messages2.push(fixSummary.skipped.map((m) => import_picocolors13.default.cyan(m)).join(", "))), messages2;
|
|
7724
7750
|
}
|
|
7725
7751
|
function logMigrationSummary({
|
|
7726
7752
|
fixResults,
|
|
7727
7753
|
fixSummary
|
|
7728
7754
|
}) {
|
|
7729
7755
|
let messages2 = [];
|
|
7730
|
-
messages2.push(getGlossaryMessages(fixSummary, fixResults).join(messageDivider2)), messages2.push(
|
|
7731
|
-
${
|
|
7756
|
+
messages2.push(getGlossaryMessages(fixSummary, fixResults).join(messageDivider2)), messages2.push(dedent13`If you'd like to run the migrations again, you can do so by running
|
|
7757
|
+
${import_picocolors13.default.cyan("npx storybook automigrate")}
|
|
7732
7758
|
|
|
7733
7759
|
The automigrations try to migrate common patterns in your project, but might not contain everything needed to migrate to the latest version of Storybook.
|
|
7734
7760
|
|
|
@@ -7744,9 +7770,9 @@ function logMigrationSummary({
|
|
|
7744
7770
|
|
|
7745
7771
|
// src/automigrate/index.ts
|
|
7746
7772
|
var logAvailableMigrations = () => {
|
|
7747
|
-
let availableFixes = [...allFixes, ...commandFixes].map((f) =>
|
|
7773
|
+
let availableFixes = [...allFixes, ...commandFixes].map((f) => import_picocolors14.default.yellow(f.id)).map((x) => `- ${x}`).join(`
|
|
7748
7774
|
`);
|
|
7749
|
-
logger16.log(
|
|
7775
|
+
logger16.log(dedent14`
|
|
7750
7776
|
The following migrations are available:
|
|
7751
7777
|
${availableFixes}
|
|
7752
7778
|
`);
|
|
@@ -7787,7 +7813,7 @@ var logAvailableMigrations = () => {
|
|
|
7787
7813
|
) && !options.skipInstall && await packageManager.installDependencies(), outcome && !options.skipDoctor && await doctor({ configDir, packageManager: options.packageManager }), hasFailures(outcome?.fixResults)) {
|
|
7788
7814
|
let failedMigrations = Object.entries(outcome?.fixResults ?? {}).filter(([, status]) => status === "failed" /* FAILED */ || status === "check_failed" /* CHECK_FAILED */).map(([id, status]) => {
|
|
7789
7815
|
let statusLabel = status === "check_failed" /* CHECK_FAILED */ ? "check failed" : "failed";
|
|
7790
|
-
return `${
|
|
7816
|
+
return `${import_picocolors14.default.cyan(id)} (${statusLabel})`;
|
|
7791
7817
|
});
|
|
7792
7818
|
throw new AutomigrateError({ errors: failedMigrations });
|
|
7793
7819
|
}
|
|
@@ -7816,7 +7842,7 @@ var logAvailableMigrations = () => {
|
|
|
7816
7842
|
return logAvailableMigrations(), null;
|
|
7817
7843
|
let commandFix = commandFixes.find((f) => f.id === fixId);
|
|
7818
7844
|
if (commandFix)
|
|
7819
|
-
return logger16.step(`Running migration ${
|
|
7845
|
+
return logger16.step(`Running migration ${import_picocolors14.default.magenta(fixId)}..`), await commandFix.run({
|
|
7820
7846
|
mainConfigPath,
|
|
7821
7847
|
previewConfigPath,
|
|
7822
7848
|
packageManager,
|
|
@@ -7831,7 +7857,7 @@ var logAvailableMigrations = () => {
|
|
|
7831
7857
|
}), null;
|
|
7832
7858
|
let selectedFixes = inputFixes || allFixes.filter((fix) => !(fix.id === upgradeStorybookRelatedDependencies.id && isLatest === !1 && fixId !== upgradeStorybookRelatedDependencies.id)), fixes = fixId ? selectedFixes.filter((f) => f.id === fixId) : selectedFixes;
|
|
7833
7859
|
if (fixId && fixes.length === 0)
|
|
7834
|
-
return logger16.log(`\u{1F4ED} No migrations found for ${
|
|
7860
|
+
return logger16.log(`\u{1F4ED} No migrations found for ${import_picocolors14.default.magenta(fixId)}.`), logAvailableMigrations(), null;
|
|
7835
7861
|
logger16.step("Checking possible migrations..");
|
|
7836
7862
|
let { fixResults, fixSummary, preCheckFailure } = await runFixes({
|
|
7837
7863
|
fixes,
|
|
@@ -7873,7 +7899,7 @@ async function runFixes({
|
|
|
7873
7899
|
for (let i = 0; i < fixes.length; i += 1) {
|
|
7874
7900
|
let f = fixes[i], result;
|
|
7875
7901
|
try {
|
|
7876
|
-
logger16.debug(`Running ${
|
|
7902
|
+
logger16.debug(`Running ${import_picocolors14.default.cyan(f.id)} migration checks`), result = await f.check({
|
|
7877
7903
|
packageManager,
|
|
7878
7904
|
configDir,
|
|
7879
7905
|
rendererPackage,
|
|
@@ -7883,14 +7909,14 @@ async function runFixes({
|
|
|
7883
7909
|
mainConfigPath,
|
|
7884
7910
|
storiesPaths,
|
|
7885
7911
|
hasCsfFactoryPreview
|
|
7886
|
-
}), logger16.debug(`End of ${
|
|
7912
|
+
}), logger16.debug(`End of ${import_picocolors14.default.cyan(f.id)} migration checks`);
|
|
7887
7913
|
} catch (error) {
|
|
7888
|
-
logger16.warn(`\u26A0\uFE0F failed to check fix ${
|
|
7914
|
+
logger16.warn(`\u26A0\uFE0F failed to check fix ${import_picocolors14.default.bold(f.id)}`), error instanceof Error && (logger16.error(`
|
|
7889
7915
|
${error.stack}`), fixSummary.failed[f.id] = error.message), fixResults[f.id] = "check_failed" /* CHECK_FAILED */;
|
|
7890
7916
|
}
|
|
7891
7917
|
if (result) {
|
|
7892
7918
|
let promptType = typeof f.promptType == "function" ? await f.promptType(result) : f.promptType ?? "auto";
|
|
7893
|
-
logger16.log(`\u{1F50E} found a '${
|
|
7919
|
+
logger16.log(`\u{1F50E} found a '${import_picocolors14.default.cyan(f.id)}' migration:`);
|
|
7894
7920
|
let getTitle = () => {
|
|
7895
7921
|
switch (promptType) {
|
|
7896
7922
|
case "auto":
|
|
@@ -7902,7 +7928,7 @@ ${error.stack}`), fixSummary.failed[f.id] = error.message), fixResults[f.id] = "
|
|
|
7902
7928
|
}
|
|
7903
7929
|
}, currentTaskLogger = prompt3.taskLog({
|
|
7904
7930
|
id: `automigrate-task-${f.id}`,
|
|
7905
|
-
title: `${getTitle()}: ${
|
|
7931
|
+
title: `${getTitle()}: ${import_picocolors14.default.cyan(f.id)}`
|
|
7906
7932
|
});
|
|
7907
7933
|
logger16.logBox(f.prompt());
|
|
7908
7934
|
let runAnswer;
|
|
@@ -7930,7 +7956,7 @@ ${error.stack}`), fixSummary.failed[f.id] = error.message), fixResults[f.id] = "
|
|
|
7930
7956
|
}
|
|
7931
7957
|
} else promptType === "auto" ? runAnswer = { fix: yes ? !0 : await prompt3.confirm(
|
|
7932
7958
|
{
|
|
7933
|
-
message: `Do you want to run the '${
|
|
7959
|
+
message: `Do you want to run the '${import_picocolors14.default.cyan(f.id)}' migration on your project?`,
|
|
7934
7960
|
initialValue: f.defaultSelected ?? !0
|
|
7935
7961
|
},
|
|
7936
7962
|
{
|
|
@@ -7966,14 +7992,14 @@ ${error.stack}`), fixSummary.failed[f.id] = error.message), fixResults[f.id] = "
|
|
|
7966
7992
|
storybookVersion,
|
|
7967
7993
|
storiesPaths,
|
|
7968
7994
|
yes
|
|
7969
|
-
}), logger16.log(`\u2705 ran ${
|
|
7995
|
+
}), logger16.log(`\u2705 ran ${import_picocolors14.default.cyan(f.id)} migration`), fixResults[f.id] = "succeeded" /* SUCCEEDED */, fixSummary.succeeded.push(f.id), currentTaskLogger.success(`Ran ${import_picocolors14.default.cyan(f.id)} migration`);
|
|
7970
7996
|
} catch (error) {
|
|
7971
7997
|
fixResults[f.id] = "failed" /* FAILED */;
|
|
7972
7998
|
let errorMessage = error instanceof Error ? error.message : "Failed to run migration";
|
|
7973
|
-
fixSummary.failed[f.id] = errorMessage, currentTaskLogger.error(`Error when running ${
|
|
7999
|
+
fixSummary.failed[f.id] = errorMessage, currentTaskLogger.error(`Error when running ${import_picocolors14.default.cyan(f.id)} migration`);
|
|
7974
8000
|
}
|
|
7975
8001
|
else
|
|
7976
|
-
fixResults[f.id] = "skipped" /* SKIPPED */, fixSummary.skipped.push(f.id), currentTaskLogger.success(`Skipped ${
|
|
8002
|
+
fixResults[f.id] = "skipped" /* SKIPPED */, fixSummary.skipped.push(f.id), currentTaskLogger.success(`Skipped ${import_picocolors14.default.cyan(f.id)} migration`);
|
|
7977
8003
|
} else
|
|
7978
8004
|
fixResults[f.id] = fixResults[f.id] || "unnecessary" /* UNNECESSARY */;
|
|
7979
8005
|
}
|
|
@@ -8062,8 +8088,8 @@ import {
|
|
|
8062
8088
|
versions as versions4
|
|
8063
8089
|
} from "storybook/internal/common";
|
|
8064
8090
|
import { logger as logger19, prompt as prompt4 } from "storybook/internal/node-logger";
|
|
8065
|
-
var
|
|
8066
|
-
import { dedent as
|
|
8091
|
+
var import_picocolors15 = __toESM(require_picocolors(), 1), import_semver6 = __toESM(require_semver(), 1);
|
|
8092
|
+
import { dedent as dedent15 } from "ts-dedent";
|
|
8067
8093
|
|
|
8068
8094
|
// src/sandbox-templates.ts
|
|
8069
8095
|
var baseTemplates = {
|
|
@@ -8973,18 +8999,18 @@ var toChoices = (c) => ({ label: allTemplates[c].name, value: c }), sandbox = as
|
|
|
8973
8999
|
let selectedConfig = allTemplates[filterValue], templateId = selectedConfig ? filterValue : null, packageManager = JsPackageManagerFactory.getPackageManager({
|
|
8974
9000
|
force: PackageManagerName.NPM
|
|
8975
9001
|
}), latestVersion = await packageManager.latestVersion("storybook"), nextVersion = await packageManager.latestVersion("storybook@next") ?? "0.0.0", currentVersion = versions4.storybook, isPrerelease = (0, import_semver6.prerelease)(currentVersion), isOutdated = (0, import_semver6.lt)(currentVersion, isPrerelease ? nextVersion : latestVersion), downloadType = !isOutdated && init ? "after-storybook" : "before-storybook", branch = isPrerelease ? "next" : "main", messages2 = {
|
|
8976
|
-
welcome: `Creating a Storybook ${
|
|
8977
|
-
notLatest:
|
|
8978
|
-
This version is behind the latest release, which is: ${
|
|
9002
|
+
welcome: `Creating a Storybook ${import_picocolors15.default.bold(currentVersion)} sandbox..`,
|
|
9003
|
+
notLatest: import_picocolors15.default.red(dedent15`
|
|
9004
|
+
This version is behind the latest release, which is: ${import_picocolors15.default.bold(latestVersion)}!
|
|
8979
9005
|
You likely ran the init command through npx, which can use a locally cached version, to get the latest please run:
|
|
8980
|
-
${
|
|
9006
|
+
${import_picocolors15.default.bold("npx storybook@latest sandbox")}
|
|
8981
9007
|
|
|
8982
9008
|
You may want to CTRL+C to stop, and run with the latest version instead.
|
|
8983
9009
|
`),
|
|
8984
|
-
longInitTime:
|
|
9010
|
+
longInitTime: import_picocolors15.default.yellow(
|
|
8985
9011
|
"The creation of the sandbox will take longer, because we will need to run init."
|
|
8986
9012
|
),
|
|
8987
|
-
prerelease:
|
|
9013
|
+
prerelease: import_picocolors15.default.yellow("This is a pre-release version.")
|
|
8988
9014
|
};
|
|
8989
9015
|
if (logger19.logBox(
|
|
8990
9016
|
[messages2.welcome].concat(isOutdated && !isPrerelease ? [messages2.notLatest] : []).concat(init && (isOutdated || isPrerelease) ? [messages2.longInitTime] : []).concat(isPrerelease ? [messages2.prerelease] : []).join(`
|
|
@@ -8998,23 +9024,23 @@ var toChoices = (c) => ({ label: allTemplates[c].name, value: c }), sandbox = as
|
|
|
8998
9024
|
return (!filterValue || current.name.match(filterRegex) || group.match(filterRegex) || current.expected.builder.match(filterRegex) || current.expected.framework.match(filterRegex) || current.expected.renderer.match(filterRegex)) && acc.push(group), acc;
|
|
8999
9025
|
}, []);
|
|
9000
9026
|
if (choices.length === 0 && (logger19.logBox(
|
|
9001
|
-
|
|
9027
|
+
dedent15`
|
|
9002
9028
|
🔎 You filtered out all templates. 🔍
|
|
9003
9029
|
|
|
9004
|
-
After filtering all the templates with "${
|
|
9030
|
+
After filtering all the templates with "${import_picocolors15.default.yellow(
|
|
9005
9031
|
filterValue
|
|
9006
9032
|
)}", we found no results. Please try again with a different filter.
|
|
9007
9033
|
|
|
9008
9034
|
Available templates:
|
|
9009
|
-
${keys.map((key) =>
|
|
9035
|
+
${keys.map((key) => import_picocolors15.default.blue(`- ${key}`)).join(`
|
|
9010
9036
|
`)}
|
|
9011
9037
|
`.trim(),
|
|
9012
9038
|
{ borderStyle: "round", padding: 1, borderColor: "#F1618C" }
|
|
9013
9039
|
), process.exit(1)), choices.length === 1 ? [templateId] = choices : (logger19.logBox(
|
|
9014
|
-
|
|
9015
|
-
🤗 Welcome to ${
|
|
9040
|
+
dedent15`
|
|
9041
|
+
🤗 Welcome to ${import_picocolors15.default.yellow("sb sandbox")}! 🤗
|
|
9016
9042
|
|
|
9017
|
-
Create a ${
|
|
9043
|
+
Create a ${import_picocolors15.default.green("new project")} to minimally reproduce Storybook issues.
|
|
9018
9044
|
|
|
9019
9045
|
1. select an environment that most closely matches your project setup.
|
|
9020
9046
|
2. select a location for the reproduction, outside of your project.
|
|
@@ -9044,15 +9070,15 @@ var toChoices = (c) => ({ label: allTemplates[c].name, value: c }), sandbox = as
|
|
|
9044
9070
|
)), invariant(selectedDirectory);
|
|
9045
9071
|
try {
|
|
9046
9072
|
let templateDestination = isAbsolute2(selectedDirectory) ? selectedDirectory : join(process.cwd(), selectedDirectory);
|
|
9047
|
-
logger19.log(`\u{1F3C3} Adding ${selectedConfig.name} into ${templateDestination}`), logger19.log(`\u{1F4E6} Downloading sandbox template (${
|
|
9073
|
+
logger19.log(`\u{1F3C3} Adding ${selectedConfig.name} into ${templateDestination}`), logger19.log(`\u{1F4E6} Downloading sandbox template (${import_picocolors15.default.bold(downloadType)})...`);
|
|
9048
9074
|
try {
|
|
9049
9075
|
let gitPath = `storybookjs/sandboxes/tree/${branch}/${templateId}/${downloadType}`;
|
|
9050
9076
|
if (await mkdir2(templateDestination, { recursive: !0 }), (0, import_cross_spawn2.sync)("npx", ["gitpick@4.12.4", gitPath, templateDestination, "-o"], {
|
|
9051
9077
|
stdio: "inherit"
|
|
9052
9078
|
}), (await readdir(templateDestination)).length === 0) {
|
|
9053
|
-
let selected =
|
|
9054
|
-
throw new Error(
|
|
9055
|
-
Template downloaded from ${
|
|
9079
|
+
let selected = import_picocolors15.default.yellow(templateId);
|
|
9080
|
+
throw new Error(dedent15`
|
|
9081
|
+
Template downloaded from ${import_picocolors15.default.blue(gitPath)} is empty.
|
|
9056
9082
|
Are you use it exists? Or did you want to set ${selected} to inDevelopment first?
|
|
9057
9083
|
`);
|
|
9058
9084
|
}
|
|
@@ -9070,20 +9096,20 @@ var toChoices = (c) => ({ label: allTemplates[c].name, value: c }), sandbox = as
|
|
|
9070
9096
|
} catch (err) {
|
|
9071
9097
|
throw logger19.error(`\u{1F6A8} Failed to download sandbox template: ${String(err)}`), err;
|
|
9072
9098
|
}
|
|
9073
|
-
let initMessage = init ?
|
|
9099
|
+
let initMessage = init ? import_picocolors15.default.yellow(dedent15`
|
|
9074
9100
|
yarn install
|
|
9075
9101
|
yarn storybook
|
|
9076
|
-
`) : `Recreate your setup, then ${
|
|
9102
|
+
`) : `Recreate your setup, then ${import_picocolors15.default.yellow("npx storybook@latest init")}`;
|
|
9077
9103
|
logger19.logBox(
|
|
9078
|
-
|
|
9104
|
+
dedent15`
|
|
9079
9105
|
🎉 Your Storybook reproduction project is ready to use! 🎉
|
|
9080
9106
|
|
|
9081
|
-
${
|
|
9107
|
+
${import_picocolors15.default.yellow(`cd ${selectedDirectory}`)}
|
|
9082
9108
|
${initMessage}
|
|
9083
9109
|
|
|
9084
9110
|
Once you've recreated the problem you're experiencing, please:
|
|
9085
9111
|
|
|
9086
|
-
1. Document any additional steps in ${
|
|
9112
|
+
1. Document any additional steps in ${import_picocolors15.default.cyan("README.md")}
|
|
9087
9113
|
2. Publish the repository to github
|
|
9088
9114
|
3. Link to the repro repository in your issue
|
|
9089
9115
|
|
|
@@ -9103,7 +9129,7 @@ async function promptSelectedTemplate(choices) {
|
|
|
9103
9129
|
}
|
|
9104
9130
|
|
|
9105
9131
|
// src/upgrade.ts
|
|
9106
|
-
var import_cross_spawn3 = __toESM(require_cross_spawn(), 1),
|
|
9132
|
+
var import_cross_spawn3 = __toESM(require_cross_spawn(), 1), import_picocolors16 = __toESM(require_picocolors(), 1), import_semver7 = __toESM(require_semver(), 1);
|
|
9107
9133
|
import { PackageManagerName as PackageManagerName2 } from "storybook/internal/common";
|
|
9108
9134
|
import { HandledError, JsPackageManagerFactory as JsPackageManagerFactory2, isCorePackage as isCorePackage2 } from "storybook/internal/common";
|
|
9109
9135
|
import {
|
|
@@ -9118,7 +9144,7 @@ import {
|
|
|
9118
9144
|
UpgradeStorybookUnknownCurrentVersionError
|
|
9119
9145
|
} from "storybook/internal/server-errors";
|
|
9120
9146
|
import { telemetry } from "storybook/internal/telemetry";
|
|
9121
|
-
import { dedent as
|
|
9147
|
+
import { dedent as dedent16 } from "ts-dedent";
|
|
9122
9148
|
|
|
9123
9149
|
// src/automigrate/multi-project.ts
|
|
9124
9150
|
import { CLI_COLORS as CLI_COLORS3, logger as logger20, prompt as prompt5 } from "storybook/internal/node-logger";
|
|
@@ -9429,7 +9455,7 @@ ${projectList}`);
|
|
|
9429
9455
|
}
|
|
9430
9456
|
} else
|
|
9431
9457
|
Object.values(doctorResults).every((result) => result.status === "healthy") ? logger21.step(`${CLI_COLORS4.success("Your project(s) have been upgraded successfully! \u{1F389}")}`) : logger21.step(
|
|
9432
|
-
`${
|
|
9458
|
+
`${import_picocolors16.default.yellow("Your project(s) have been upgraded successfully, but some issues were found which need your attention, please check Storybook doctor logs above.")}`
|
|
9433
9459
|
);
|
|
9434
9460
|
let automigrationLinks = detectedAutomigrations.filter(
|
|
9435
9461
|
(am) => Object.entries(projectResults).some(
|
|
@@ -9485,9 +9511,9 @@ async function upgrade(options) {
|
|
|
9485
9511
|
return;
|
|
9486
9512
|
let { allProjects, selectedProjects: storybookProjects } = projectsResult;
|
|
9487
9513
|
storybookProjects.length > 1 ? logger21.info(`Upgrading the following projects:
|
|
9488
|
-
${storybookProjects.map((p) => `${
|
|
9514
|
+
${storybookProjects.map((p) => `${import_picocolors16.default.cyan(shortenPath(p.configDir))}: ${import_picocolors16.default.bold(p.beforeVersion)} -> ${import_picocolors16.default.bold(p.currentCLIVersion)}`).join(`
|
|
9489
9515
|
`)}`) : logger21.info(
|
|
9490
|
-
`Upgrading from ${
|
|
9516
|
+
`Upgrading from ${import_picocolors16.default.bold(storybookProjects[0].beforeVersion)} to ${import_picocolors16.default.bold(storybookProjects[0].currentCLIVersion)}`
|
|
9491
9517
|
);
|
|
9492
9518
|
let automigrationResults = {}, doctorResults = {}, handleInterruption = async () => {
|
|
9493
9519
|
throw logger21.log(`
|
|
@@ -9503,7 +9529,7 @@ Upgrade interrupted by user.`), allProjects.length > 1 && await sendMultiUpgrade
|
|
|
9503
9529
|
process.on("SIGINT", handleInterruption), process.on("SIGTERM", handleInterruption);
|
|
9504
9530
|
try {
|
|
9505
9531
|
if (processAutoblockerResults(storybookProjects, (message) => {
|
|
9506
|
-
logger21.error(
|
|
9532
|
+
logger21.error(dedent16`Blockers detected\n\n${message}`);
|
|
9507
9533
|
}))
|
|
9508
9534
|
throw new HandledError("Blockers detected");
|
|
9509
9535
|
if (storybookProjects.some((project) => {
|
|
@@ -9683,7 +9709,7 @@ command("upgrade").description(`Upgrade your Storybook packages to v${versions5.
|
|
|
9683
9709
|
).catch(handleCommandFailure(options.logfile));
|
|
9684
9710
|
});
|
|
9685
9711
|
command("info").description("Prints debugging information about the local environment").action(async () => {
|
|
9686
|
-
logger22.log(
|
|
9712
|
+
logger22.log(import_picocolors17.default.bold(`
|
|
9687
9713
|
Storybook Environment Info:`));
|
|
9688
9714
|
let activePackageManager = JsPackageManagerFactory3.getPackageManager().type.replace(/\d/, ""), output = await import_envinfo.default.run({
|
|
9689
9715
|
System: ["OS", "CPU", "Shell"],
|
|
@@ -9695,7 +9721,7 @@ Storybook Environment Info:`));
|
|
|
9695
9721
|
logger22.log(
|
|
9696
9722
|
output.replace(
|
|
9697
9723
|
activePackageManagerLine,
|
|
9698
|
-
|
|
9724
|
+
import_picocolors17.default.bold(`${activePackageManagerLine} <----- active`)
|
|
9699
9725
|
)
|
|
9700
9726
|
);
|
|
9701
9727
|
});
|
|
@@ -9740,9 +9766,9 @@ command("doctor").description("Check Storybook for known problems and provide su
|
|
|
9740
9766
|
}).catch(handleCommandFailure(options.logfile));
|
|
9741
9767
|
});
|
|
9742
9768
|
program.on("command:*", ([invalidCmd]) => {
|
|
9743
|
-
let errorMessage = ` Invalid command: ${
|
|
9769
|
+
let errorMessage = ` Invalid command: ${import_picocolors17.default.bold(invalidCmd)}.
|
|
9744
9770
|
See --help for a list of available commands.`, suggestion = program.commands.map((cmd) => cmd.name()).find((cmd) => leven(cmd, invalidCmd) < 3);
|
|
9745
9771
|
suggestion && (errorMessage += `
|
|
9746
|
-
Did you mean ${
|
|
9772
|
+
Did you mean ${import_picocolors17.default.yellow(suggestion)}?`), logger22.error(errorMessage), process.exit(1);
|
|
9747
9773
|
});
|
|
9748
9774
|
program.usage("<command> [options]").version(String(version)).parse(process.argv);
|
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_adcalpw4sjt from 'node:url';
|
|
3
|
+
import CJS_COMPAT_NODE_PATH_adcalpw4sjt from 'node:path';
|
|
4
|
+
import CJS_COMPAT_NODE_MODULE_adcalpw4sjt from "node:module";
|
|
5
5
|
|
|
6
|
-
var __filename =
|
|
7
|
-
var __dirname =
|
|
8
|
-
var require =
|
|
6
|
+
var __filename = CJS_COMPAT_NODE_URL_adcalpw4sjt.fileURLToPath(import.meta.url);
|
|
7
|
+
var __dirname = CJS_COMPAT_NODE_PATH_adcalpw4sjt.dirname(__filename);
|
|
8
|
+
var require = CJS_COMPAT_NODE_MODULE_adcalpw4sjt.createRequire(import.meta.url);
|
|
9
9
|
|
|
10
10
|
// ------------------------------------------------------------
|
|
11
11
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -19,4 +19,4 @@ var [majorNodeVersion, minorNodeVersion] = process.versions.node.split(".").map(
|
|
|
19
19
|
dedent`To run Storybook, you need Node.js version 20.19+ or 22.12+.
|
|
20
20
|
You are currently running Node.js ${process.version}. Please upgrade your Node.js installation.`
|
|
21
21
|
), process.exit(1));
|
|
22
|
-
import("../_node-chunks/run-
|
|
22
|
+
import("../_node-chunks/run-DZQPWIEN.js");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/cli",
|
|
3
|
-
"version": "10.4.0-alpha.
|
|
3
|
+
"version": "10.4.0-alpha.6",
|
|
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.4.0-alpha.
|
|
40
|
+
"@storybook/codemod": "10.4.0-alpha.6",
|
|
41
41
|
"@types/semver": "^7.7.1",
|
|
42
42
|
"commander": "^14.0.2",
|
|
43
|
-
"create-storybook": "10.4.0-alpha.
|
|
43
|
+
"create-storybook": "10.4.0-alpha.6",
|
|
44
44
|
"jscodeshift": "^0.15.1",
|
|
45
|
-
"storybook": "10.4.0-alpha.
|
|
45
|
+
"storybook": "10.4.0-alpha.6",
|
|
46
46
|
"ts-dedent": "^2.0.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_aw326zn19h from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_aw326zn19h from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_aw326zn19h from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_aw326zn19h.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_aw326zn19h.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_aw326zn19h.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|