@storybook/cli 10.4.0-alpha.16 → 10.4.0-alpha.17
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-S3TJGYC2.js → block-dependencies-versions-2FTSXOV4.js} +11 -11
- package/dist/_node-chunks/{block-experimental-addon-test-WWZCXLB2.js → block-experimental-addon-test-MBAWHIVX.js} +9 -9
- package/dist/_node-chunks/{block-major-version-JNM4ZAKB.js → block-major-version-GLL4GDWB.js} +9 -9
- package/dist/_node-chunks/{block-node-version-HDPTJUPH.js → block-node-version-RVJJJ4XR.js} +9 -9
- package/dist/_node-chunks/{block-webpack5-frameworks-TETWAJLZ.js → block-webpack5-frameworks-XEU7EO2R.js} +11 -11
- package/dist/_node-chunks/{chunk-TZ336D6R.js → chunk-34WT6WHN.js} +6 -6
- package/dist/_node-chunks/{chunk-NDN75UAD.js → chunk-3FXXXDDK.js} +7 -7
- package/dist/_node-chunks/{chunk-JYLYIY6L.js → chunk-6HOHNSVJ.js} +8 -8
- package/dist/_node-chunks/{chunk-UKVJ7RQN.js → chunk-C2UHYVPK.js} +7 -7
- package/dist/_node-chunks/{chunk-QQ7E4GEX.js → chunk-CXC2V53L.js} +15 -15
- package/dist/_node-chunks/{chunk-7BQI2DK6.js → chunk-INX3KICK.js} +6 -6
- package/dist/_node-chunks/{chunk-QBNIQBHH.js → chunk-JNFHA3R2.js} +6 -6
- package/dist/_node-chunks/{chunk-7H4XHFS5.js → chunk-RXAW6T4J.js} +8 -8
- package/dist/_node-chunks/chunk-SIZ5DHPZ.js +11 -0
- package/dist/_node-chunks/{globby-5IGUGWE7.js → globby-N46UCCVS.js} +8 -8
- package/dist/_node-chunks/{monorepo-4B4ULRGC.js → monorepo-TVSJOSCW.js} +11 -10
- package/dist/_node-chunks/{optimized-tests-MJI5NXQA.js → optimized-tests-V6WOQ2XH.js} +11 -10
- package/dist/_node-chunks/{p-limit-VO6RWWBJ.js → p-limit-BGPAPMNJ.js} +7 -7
- package/dist/_node-chunks/pattern-copy-play-6YIEGMCW.js +20 -0
- package/dist/_node-chunks/{relaxed-limits-MKAIPGR2.js → relaxed-limits-YQA6Y4DQ.js} +11 -10
- package/dist/_node-chunks/{run-EJWCFREQ.js → run-IPZ5VOW3.js} +88 -36
- package/dist/_node-chunks/{setup-PUNMMEGI.js → setup-HAYJDL6K.js} +8 -8
- package/dist/bin/index.js +7 -7
- package/package.json +4 -4
- package/dist/_node-chunks/chunk-TSPB5MCI.js +0 -11
- package/dist/_node-chunks/pattern-copy-play-JNOATHUQ.js +0 -20
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_cy5uq3ou7e from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_cy5uq3ou7e from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_cy5uq3ou7e from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_cy5uq3ou7e.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_cy5uq3ou7e.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_cy5uq3ou7e.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-CXC2V53L.js";
|
|
15
|
+
import "./chunk-C2UHYVPK.js";
|
|
16
|
+
import "./chunk-SIZ5DHPZ.js";
|
|
17
|
+
import "./chunk-3FXXXDDK.js";
|
|
18
|
+
import "./chunk-34WT6WHN.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_cy5uq3ou7e from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_cy5uq3ou7e from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_cy5uq3ou7e from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_cy5uq3ou7e.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_cy5uq3ou7e.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_cy5uq3ou7e.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-SIZ5DHPZ.js";
|
|
13
13
|
import {
|
|
14
14
|
require_semver
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-3FXXXDDK.js";
|
|
16
16
|
import {
|
|
17
17
|
__toESM
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-34WT6WHN.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-JNM4ZAKB.js → block-major-version-GLL4GDWB.js}
RENAMED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_cy5uq3ou7e from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_cy5uq3ou7e from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_cy5uq3ou7e from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_cy5uq3ou7e.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_cy5uq3ou7e.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_cy5uq3ou7e.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-SIZ5DHPZ.js";
|
|
13
13
|
import {
|
|
14
14
|
require_semver
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-3FXXXDDK.js";
|
|
16
16
|
import {
|
|
17
17
|
__toESM
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-34WT6WHN.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_cy5uq3ou7e from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_cy5uq3ou7e from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_cy5uq3ou7e from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_cy5uq3ou7e.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_cy5uq3ou7e.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_cy5uq3ou7e.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-SIZ5DHPZ.js";
|
|
13
13
|
import {
|
|
14
14
|
require_semver
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-3FXXXDDK.js";
|
|
16
16
|
import {
|
|
17
17
|
__toESM
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-34WT6WHN.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_cy5uq3ou7e from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_cy5uq3ou7e from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_cy5uq3ou7e from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_cy5uq3ou7e.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_cy5uq3ou7e.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_cy5uq3ou7e.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-CXC2V53L.js";
|
|
15
|
+
import "./chunk-C2UHYVPK.js";
|
|
16
|
+
import "./chunk-SIZ5DHPZ.js";
|
|
17
|
+
import "./chunk-3FXXXDDK.js";
|
|
18
|
+
import "./chunk-34WT6WHN.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_cy5uq3ou7e from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_cy5uq3ou7e from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_cy5uq3ou7e from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_cy5uq3ou7e.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_cy5uq3ou7e.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_cy5uq3ou7e.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_cy5uq3ou7e from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_cy5uq3ou7e from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_cy5uq3ou7e from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_cy5uq3ou7e.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_cy5uq3ou7e.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_cy5uq3ou7e.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-34WT6WHN.js";
|
|
15
15
|
|
|
16
16
|
// ../../../node_modules/semver/internal/constants.js
|
|
17
17
|
var require_constants = __commonJS({
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_cy5uq3ou7e from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_cy5uq3ou7e from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_cy5uq3ou7e from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_cy5uq3ou7e.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_cy5uq3ou7e.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_cy5uq3ou7e.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
|
getDocsMarkdownUrl
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-JNFHA3R2.js";
|
|
15
15
|
import {
|
|
16
16
|
getTypeImportSource
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-INX3KICK.js";
|
|
18
18
|
|
|
19
19
|
// src/ai/setup-prompts/pattern-copy-play.ts
|
|
20
20
|
import { dedent } from "ts-dedent";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_cy5uq3ou7e from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_cy5uq3ou7e from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_cy5uq3ou7e from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_cy5uq3ou7e.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_cy5uq3ou7e.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_cy5uq3ou7e.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-34WT6WHN.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_cy5uq3ou7e from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_cy5uq3ou7e from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_cy5uq3ou7e from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_cy5uq3ou7e.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_cy5uq3ou7e.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_cy5uq3ou7e.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_sgh3w93ap7c.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
globby,
|
|
14
14
|
globbySync
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-C2UHYVPK.js";
|
|
16
16
|
import {
|
|
17
17
|
require_semver
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-3FXXXDDK.js";
|
|
19
19
|
import {
|
|
20
20
|
__commonJS,
|
|
21
21
|
__toESM
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-34WT6WHN.js";
|
|
23
23
|
|
|
24
24
|
// ../../../node_modules/picocolors/picocolors.js
|
|
25
25
|
var require_picocolors = __commonJS({
|
|
@@ -123,11 +123,11 @@ var import_picocolors2 = __toESM(require_picocolors(), 1), import_semver = __toE
|
|
|
123
123
|
// src/autoblock/index.ts
|
|
124
124
|
var blockers = () => [
|
|
125
125
|
// add/remove blockers here
|
|
126
|
-
import("./block-dependencies-versions-
|
|
127
|
-
import("./block-node-version-
|
|
128
|
-
import("./block-webpack5-frameworks-
|
|
129
|
-
import("./block-major-version-
|
|
130
|
-
import("./block-experimental-addon-test-
|
|
126
|
+
import("./block-dependencies-versions-2FTSXOV4.js"),
|
|
127
|
+
import("./block-node-version-RVJJJ4XR.js"),
|
|
128
|
+
import("./block-webpack5-frameworks-XEU7EO2R.js"),
|
|
129
|
+
import("./block-major-version-GLL4GDWB.js"),
|
|
130
|
+
import("./block-experimental-addon-test-MBAWHIVX.js")
|
|
131
131
|
], autoblock = async (options, list = blockers()) => list.length === 0 ? null : await Promise.all(
|
|
132
132
|
list.map(async (i) => {
|
|
133
133
|
let blocker = (await i).blocker;
|
|
@@ -351,7 +351,7 @@ var processProject = async ({
|
|
|
351
351
|
};
|
|
352
352
|
}
|
|
353
353
|
}, collectProjects = async (options, configDirs, onProjectScanStart) => {
|
|
354
|
-
let { default: pLimit } = await import("./p-limit-
|
|
354
|
+
let { default: pLimit } = await import("./p-limit-BGPAPMNJ.js"), currentCLIVersion = versions.storybook, limit = pLimit(5), projectPromises = configDirs.map(
|
|
355
355
|
(configDir) => limit(
|
|
356
356
|
() => processProject({
|
|
357
357
|
configDir,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_cy5uq3ou7e from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_cy5uq3ou7e from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_cy5uq3ou7e from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_cy5uq3ou7e.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_cy5uq3ou7e.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_cy5uq3ou7e.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_cy5uq3ou7e from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_cy5uq3ou7e from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_cy5uq3ou7e from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_cy5uq3ou7e.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_cy5uq3ou7e.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_cy5uq3ou7e.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_cy5uq3ou7e from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_cy5uq3ou7e from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_cy5uq3ou7e from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_cy5uq3ou7e.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_cy5uq3ou7e.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_cy5uq3ou7e.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -272,10 +272,10 @@ function verifyStep(projectInfo, { packageManager, tsx }) {
|
|
|
272
272
|
**After a file passes**, edit its meta and remove \`'needs-work'\` so its tags become \`['ai-generated']\`. Files you couldn't fix keep \`['ai-generated', 'needs-work']\` — move on, don't loop forever.`
|
|
273
273
|
};
|
|
274
274
|
}
|
|
275
|
-
function cleanupStep(
|
|
275
|
+
function cleanupStep({ needsUserOnboarding }, ctx) {
|
|
276
276
|
return {
|
|
277
277
|
title: "Clean up",
|
|
278
|
-
body:
|
|
278
|
+
body: `Before finishing, remove debug code, broad mocks added during diagnosis, unused deps, and eval artifacts. ${needsUserOnboarding ? "You must preserve the components, CSS, stories and MDX docs initially created by Storybook, as they are required for user onboarding in the UI." : "Delete the components, CSS, stories and MDX docs initially created by Storybook only if you managed to write successful stories."}`
|
|
279
279
|
};
|
|
280
280
|
}
|
|
281
281
|
function monorepoStep(projectInfo, ctx) {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_cy5uq3ou7e from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_cy5uq3ou7e from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_cy5uq3ou7e from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_cy5uq3ou7e.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_cy5uq3ou7e.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_cy5uq3ou7e.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_cy5uq3ou7e from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_cy5uq3ou7e from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_cy5uq3ou7e from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_cy5uq3ou7e.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_cy5uq3ou7e.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_cy5uq3ou7e.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-C2UHYVPK.js";
|
|
25
|
+
import "./chunk-34WT6WHN.js";
|
|
26
26
|
export {
|
|
27
27
|
convertPathToPattern,
|
|
28
28
|
generateGlobTasks,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_cy5uq3ou7e from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_cy5uq3ou7e from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_cy5uq3ou7e from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_cy5uq3ou7e.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_cy5uq3ou7e.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_cy5uq3ou7e.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -31,22 +31,23 @@ import {
|
|
|
31
31
|
toolsVsShellRule,
|
|
32
32
|
verifyStep,
|
|
33
33
|
writeStoriesStep
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-RXAW6T4J.js";
|
|
35
35
|
import {
|
|
36
36
|
getDocsMarkdownUrl
|
|
37
|
-
} from "./chunk-
|
|
38
|
-
import "./chunk-
|
|
37
|
+
} from "./chunk-JNFHA3R2.js";
|
|
38
|
+
import "./chunk-34WT6WHN.js";
|
|
39
39
|
|
|
40
40
|
// src/ai/setup-prompts/monorepo.ts
|
|
41
41
|
import { dedent } from "ts-dedent";
|
|
42
42
|
function instructions(projectInfo) {
|
|
43
|
-
let { configDir, language, packageManager, packageManagerName } = projectInfo, tsx = ext(language, !0), ts = ext(language, !1), docsUrl = (path) => getDocsMarkdownUrl(path, projectInfo), mswInstall = packageManager.getInstallCommand(
|
|
43
|
+
let { configDir, language, needsUserOnboarding, packageManager, packageManagerName } = projectInfo, tsx = ext(language, !0), ts = ext(language, !1), docsUrl = (path) => getDocsMarkdownUrl(path, projectInfo), mswInstall = packageManager.getInstallCommand(
|
|
44
44
|
["msw", "msw-storybook-addon", "mockdate"],
|
|
45
45
|
!0
|
|
46
46
|
), ctx = {
|
|
47
47
|
configDir,
|
|
48
48
|
docsUrl,
|
|
49
49
|
mswInstall,
|
|
50
|
+
needsUserOnboarding,
|
|
50
51
|
packageManager,
|
|
51
52
|
packageManagerName,
|
|
52
53
|
tsx,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_cy5uq3ou7e from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_cy5uq3ou7e from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_cy5uq3ou7e from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_cy5uq3ou7e.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_cy5uq3ou7e.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_cy5uq3ou7e.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -29,22 +29,23 @@ import {
|
|
|
29
29
|
toolsVsShellRule,
|
|
30
30
|
verifyStep,
|
|
31
31
|
writeStoriesStep
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-RXAW6T4J.js";
|
|
33
33
|
import {
|
|
34
34
|
getDocsMarkdownUrl
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import "./chunk-
|
|
35
|
+
} from "./chunk-JNFHA3R2.js";
|
|
36
|
+
import "./chunk-34WT6WHN.js";
|
|
37
37
|
|
|
38
38
|
// src/ai/setup-prompts/optimized-tests.ts
|
|
39
39
|
import { dedent } from "ts-dedent";
|
|
40
40
|
function instructions(projectInfo) {
|
|
41
|
-
let { configDir, language, packageManager, packageManagerName } = projectInfo, tsx = ext(language, !0), ts = ext(language, !1), docsUrl = (path) => getDocsMarkdownUrl(path, projectInfo), mswInstall = packageManager.getInstallCommand(
|
|
41
|
+
let { configDir, language, needsUserOnboarding, packageManager, packageManagerName } = projectInfo, tsx = ext(language, !0), ts = ext(language, !1), docsUrl = (path) => getDocsMarkdownUrl(path, projectInfo), mswInstall = packageManager.getInstallCommand(
|
|
42
42
|
["msw", "msw-storybook-addon", "mockdate"],
|
|
43
43
|
!0
|
|
44
44
|
), ctx = {
|
|
45
45
|
configDir,
|
|
46
46
|
docsUrl,
|
|
47
47
|
mswInstall,
|
|
48
|
+
needsUserOnboarding,
|
|
48
49
|
packageManager,
|
|
49
50
|
packageManagerName,
|
|
50
51
|
tsx,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_cy5uq3ou7e from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_cy5uq3ou7e from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_cy5uq3ou7e from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_cy5uq3ou7e.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_cy5uq3ou7e.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_cy5uq3ou7e.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-34WT6WHN.js";
|
|
13
13
|
|
|
14
14
|
// ../../../node_modules/yocto-queue/index.js
|
|
15
15
|
var Node = class {
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_cy5uq3ou7e from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_cy5uq3ou7e from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_cy5uq3ou7e from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_cy5uq3ou7e.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_cy5uq3ou7e.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_cy5uq3ou7e.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
import {
|
|
13
|
+
instructions
|
|
14
|
+
} from "./chunk-6HOHNSVJ.js";
|
|
15
|
+
import "./chunk-JNFHA3R2.js";
|
|
16
|
+
import "./chunk-INX3KICK.js";
|
|
17
|
+
import "./chunk-34WT6WHN.js";
|
|
18
|
+
export {
|
|
19
|
+
instructions
|
|
20
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_cy5uq3ou7e from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_cy5uq3ou7e from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_cy5uq3ou7e from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_cy5uq3ou7e.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_cy5uq3ou7e.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_cy5uq3ou7e.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -29,22 +29,23 @@ import {
|
|
|
29
29
|
toolsVsShellRule,
|
|
30
30
|
verifyStep,
|
|
31
31
|
writeStoriesStep
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-RXAW6T4J.js";
|
|
33
33
|
import {
|
|
34
34
|
getDocsMarkdownUrl
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import "./chunk-
|
|
35
|
+
} from "./chunk-JNFHA3R2.js";
|
|
36
|
+
import "./chunk-34WT6WHN.js";
|
|
37
37
|
|
|
38
38
|
// src/ai/setup-prompts/relaxed-limits.ts
|
|
39
39
|
import { dedent } from "ts-dedent";
|
|
40
40
|
function instructions(projectInfo) {
|
|
41
|
-
let { configDir, language, packageManager, packageManagerName } = projectInfo, tsx = ext(language, !0), ts = ext(language, !1), docsUrl = (path) => getDocsMarkdownUrl(path, projectInfo), mswInstall = packageManager.getInstallCommand(
|
|
41
|
+
let { configDir, language, needsUserOnboarding, packageManager, packageManagerName } = projectInfo, tsx = ext(language, !0), ts = ext(language, !1), docsUrl = (path) => getDocsMarkdownUrl(path, projectInfo), mswInstall = packageManager.getInstallCommand(
|
|
42
42
|
["msw", "msw-storybook-addon", "mockdate"],
|
|
43
43
|
!0
|
|
44
44
|
), ctx = {
|
|
45
45
|
configDir,
|
|
46
46
|
docsUrl,
|
|
47
47
|
mswInstall,
|
|
48
|
+
needsUserOnboarding,
|
|
48
49
|
packageManager,
|
|
49
50
|
packageManagerName,
|
|
50
51
|
tsx,
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_cy5uq3ou7e from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_cy5uq3ou7e from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_cy5uq3ou7e from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_cy5uq3ou7e.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_cy5uq3ou7e.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_cy5uq3ou7e.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
|
instructions
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-6HOHNSVJ.js";
|
|
15
|
+
import "./chunk-JNFHA3R2.js";
|
|
16
|
+
import "./chunk-INX3KICK.js";
|
|
17
17
|
import {
|
|
18
18
|
bannerComment,
|
|
19
19
|
containsDirnameUsage,
|
|
@@ -31,18 +31,18 @@ import {
|
|
|
31
31
|
up,
|
|
32
32
|
updateMainConfig,
|
|
33
33
|
upgradeStorybookDependencies
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-CXC2V53L.js";
|
|
35
35
|
import {
|
|
36
36
|
slash
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-C2UHYVPK.js";
|
|
38
38
|
import {
|
|
39
39
|
require_semver
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-3FXXXDDK.js";
|
|
41
41
|
import {
|
|
42
42
|
__commonJS,
|
|
43
43
|
__require,
|
|
44
44
|
__toESM
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-34WT6WHN.js";
|
|
46
46
|
|
|
47
47
|
// ../../../node_modules/envinfo/dist/envinfo.js
|
|
48
48
|
var require_envinfo = __commonJS({
|
|
@@ -4766,7 +4766,7 @@ function leven(first, second, options) {
|
|
|
4766
4766
|
var import_picocolors17 = __toESM(require_picocolors(), 1);
|
|
4767
4767
|
|
|
4768
4768
|
// package.json
|
|
4769
|
-
var version = "10.4.0-alpha.
|
|
4769
|
+
var version = "10.4.0-alpha.17";
|
|
4770
4770
|
|
|
4771
4771
|
// src/add.ts
|
|
4772
4772
|
var import_semver = __toESM(require_semver(), 1);
|
|
@@ -5630,7 +5630,7 @@ import { logger as logger3 } from "storybook/internal/node-logger";
|
|
|
5630
5630
|
import { promises as fs } from "fs";
|
|
5631
5631
|
var maxConcurrentTasks = Math.max(1, os.cpus().length - 1);
|
|
5632
5632
|
async function runCodemod(globPattern = "**/*.{stories,story}.{js,jsx,ts,tsx,mjs,mjsx,mts,mtsx}", transform, { dryRun = !1, skipFormatting = !1 } = {}) {
|
|
5633
|
-
let modifiedCount = 0, unmodifiedCount = 0, errorCount = 0, { globby } = await import("./globby-
|
|
5633
|
+
let modifiedCount = 0, unmodifiedCount = 0, errorCount = 0, { globby } = await import("./globby-N46UCCVS.js"), files = await globby(slash(globPattern), {
|
|
5634
5634
|
followSymbolicLinks: !0,
|
|
5635
5635
|
ignore: ["**/node_modules/**", "**/dist/**", "**/storybook-static/**", "**/build/**"]
|
|
5636
5636
|
});
|
|
@@ -5641,7 +5641,7 @@ Please try a different pattern.
|
|
|
5641
5641
|
`
|
|
5642
5642
|
), new Error("No files matched");
|
|
5643
5643
|
try {
|
|
5644
|
-
let pLimit = (await import("./p-limit-
|
|
5644
|
+
let pLimit = (await import("./p-limit-BGPAPMNJ.js")).default, limit = pLimit(maxConcurrentTasks);
|
|
5645
5645
|
await Promise.all(
|
|
5646
5646
|
files.map(
|
|
5647
5647
|
(file) => limit(async () => {
|
|
@@ -6484,7 +6484,7 @@ var addonA11yParameters = {
|
|
|
6484
6484
|
errors.push({ file: previewFileToUpdate, error });
|
|
6485
6485
|
}
|
|
6486
6486
|
}
|
|
6487
|
-
let { default: pLimit } = await import("./p-limit-
|
|
6487
|
+
let { default: pLimit } = await import("./p-limit-BGPAPMNJ.js"), limit = pLimit(10);
|
|
6488
6488
|
if (await Promise.all(
|
|
6489
6489
|
storyFilesToUpdate.map(
|
|
6490
6490
|
(file) => limit(async () => {
|
|
@@ -6638,7 +6638,7 @@ var addonGlobalsApi = {
|
|
|
6638
6638
|
}
|
|
6639
6639
|
};
|
|
6640
6640
|
async function transformStoryFiles(files, options, dryRun) {
|
|
6641
|
-
let errors = [], { default: pLimit } = await import("./p-limit-
|
|
6641
|
+
let errors = [], { default: pLimit } = await import("./p-limit-BGPAPMNJ.js"), limit = pLimit(10);
|
|
6642
6642
|
return await Promise.all(
|
|
6643
6643
|
files.map(
|
|
6644
6644
|
(file) => limit(async () => {
|
|
@@ -6830,7 +6830,7 @@ function transformPackageJson(content) {
|
|
|
6830
6830
|
return hasChanges ? JSON.stringify(packageJson, null, 2) : null;
|
|
6831
6831
|
}
|
|
6832
6832
|
var transformPackageJsonFiles = async (files, dryRun) => {
|
|
6833
|
-
let errors = [], { default: pLimit } = await import("./p-limit-
|
|
6833
|
+
let errors = [], { default: pLimit } = await import("./p-limit-BGPAPMNJ.js"), limit = pLimit(10);
|
|
6834
6834
|
return await Promise.all(
|
|
6835
6835
|
files.map(
|
|
6836
6836
|
(file) => limit(async () => {
|
|
@@ -6869,7 +6869,7 @@ var transformPackageJsonFiles = async (files, dryRun) => {
|
|
|
6869
6869
|
dryRun
|
|
6870
6870
|
);
|
|
6871
6871
|
errors.push(...packageJsonErrors);
|
|
6872
|
-
let { globby } = await import("./globby-
|
|
6872
|
+
let { globby } = await import("./globby-N46UCCVS.js"), configFiles = await globby([`${configDir}/**/*`]), importErrors = await transformImportFiles(
|
|
6873
6873
|
[...storiesPaths, ...configFiles].filter(Boolean),
|
|
6874
6874
|
{
|
|
6875
6875
|
...consolidatedPackages,
|
|
@@ -7225,7 +7225,7 @@ var VITE_DEFAULT_VERSION = "^7.0.0", transformMainConfig = async (mainConfigPath
|
|
|
7225
7225
|
]);
|
|
7226
7226
|
}
|
|
7227
7227
|
mainConfigPath && (logger11.debug("Updating main config file..."), await transformMainConfig(mainConfigPath, dryRun)), logger11.debug("Scanning and updating import statements...");
|
|
7228
|
-
let { globby } = await import("./globby-
|
|
7228
|
+
let { globby } = await import("./globby-N46UCCVS.js"), configFiles = await globby([`${configDir}/**/*`]), allFiles = [...storiesPaths, ...configFiles].filter(Boolean), transformErrors = await transformImportFiles2(
|
|
7229
7229
|
allFiles,
|
|
7230
7230
|
{
|
|
7231
7231
|
"@storybook/nextjs": "@storybook/nextjs-vite"
|
|
@@ -7435,7 +7435,7 @@ var getAllDependencies = (packageJson) => Object.keys({
|
|
|
7435
7435
|
let regex = new RegExp(`(['"])${renderer}(['"])`, "g");
|
|
7436
7436
|
return regex.test(source) ? source.replace(regex, `$1${framework}$2`) : null;
|
|
7437
7437
|
}, transformSourceFiles = async (files, renderer, framework, dryRun) => {
|
|
7438
|
-
let errors = [], { default: pLimit } = await import("./p-limit-
|
|
7438
|
+
let errors = [], { default: pLimit } = await import("./p-limit-BGPAPMNJ.js"), limit = pLimit(10);
|
|
7439
7439
|
return await Promise.all(
|
|
7440
7440
|
files.map(
|
|
7441
7441
|
(file) => limit(async () => {
|
|
@@ -7502,7 +7502,7 @@ var getAllDependencies = (packageJson) => Object.keys({
|
|
|
7502
7502
|
continue;
|
|
7503
7503
|
logger13.debug(`
|
|
7504
7504
|
Migrating ${rendererPackage} to ${selectedFramework}`);
|
|
7505
|
-
let { globby } = await import("./globby-
|
|
7505
|
+
let { globby } = await import("./globby-N46UCCVS.js"), configFiles = await globby([`${configDir}/**/*`]);
|
|
7506
7506
|
await transformSourceFiles(
|
|
7507
7507
|
[...storiesPaths, ...configFiles].filter(Boolean),
|
|
7508
7508
|
rendererPackage,
|
|
@@ -7608,7 +7608,7 @@ async function renameInFile(filePath, oldText, newText) {
|
|
|
7608
7608
|
}
|
|
7609
7609
|
var getDotStorybookReferences = async (searchDir) => {
|
|
7610
7610
|
try {
|
|
7611
|
-
let { globby } = await import("./globby-
|
|
7611
|
+
let { globby } = await import("./globby-N46UCCVS.js"), { readFile: readFile10 } = await import("node:fs/promises"), files = await globby(`${searchDir}/**/*`, {
|
|
7612
7612
|
onlyFiles: !0,
|
|
7613
7613
|
gitignore: !0
|
|
7614
7614
|
}), referencedFiles = [];
|
|
@@ -7629,7 +7629,7 @@ var getDotStorybookReferences = async (searchDir) => {
|
|
|
7629
7629
|
async check({ packageManager, mainConfigPath }) {
|
|
7630
7630
|
if (!packageManager.getAllDependencies()["@storybook/react-native"])
|
|
7631
7631
|
return null;
|
|
7632
|
-
let projectDir = mainConfigPath ? join3(mainConfigPath, "..", "..") : process.cwd(), storybookDir = join3(projectDir, ".storybook"), rnStorybookDir = join3(projectDir, RN_STORYBOOK_DIR), { globby } = await import("./globby-
|
|
7632
|
+
let projectDir = mainConfigPath ? join3(mainConfigPath, "..", "..") : process.cwd(), storybookDir = join3(projectDir, ".storybook"), rnStorybookDir = join3(projectDir, RN_STORYBOOK_DIR), { globby } = await import("./globby-N46UCCVS.js"), requiresFiles = await globby(join3(storybookDir, "storybook.requires.*"));
|
|
7633
7633
|
return existsSync3(storybookDir) && requiresFiles.length > 0 && !existsSync3(rnStorybookDir) ? { storybookDir, rnStorybookDir } : null;
|
|
7634
7634
|
},
|
|
7635
7635
|
prompt() {
|
|
@@ -8552,6 +8552,46 @@ var baseTemplates = {
|
|
|
8552
8552
|
},
|
|
8553
8553
|
skipTasks: ["e2e-tests", "e2e-tests-dev", "bench", "vitest-integration"]
|
|
8554
8554
|
},
|
|
8555
|
+
"tanstack-react-router/default-ts": {
|
|
8556
|
+
name: "TanStack React Router Latest (Vite | TypeScript)",
|
|
8557
|
+
script: "npx @tanstack/cli@latest create {{beforeDir}} --tailwind --router-only",
|
|
8558
|
+
expected: {
|
|
8559
|
+
framework: "@storybook/tanstack-react",
|
|
8560
|
+
renderer: "@storybook/react",
|
|
8561
|
+
builder: "@storybook/builder-vite"
|
|
8562
|
+
},
|
|
8563
|
+
modifications: {
|
|
8564
|
+
useCsfFactory: !0,
|
|
8565
|
+
extraDependencies: ["prop-types"],
|
|
8566
|
+
mainConfig: {
|
|
8567
|
+
framework: "@storybook/tanstack-react",
|
|
8568
|
+
features: {
|
|
8569
|
+
experimentalTestSyntax: !0
|
|
8570
|
+
}
|
|
8571
|
+
}
|
|
8572
|
+
},
|
|
8573
|
+
skipTasks: ["bench"]
|
|
8574
|
+
},
|
|
8575
|
+
"tanstack-react-start/default-ts": {
|
|
8576
|
+
name: "TanStack React Start Latest (Vite | TypeScript)",
|
|
8577
|
+
script: "npx @tanstack/cli@latest create {{beforeDir}} --tailwind",
|
|
8578
|
+
expected: {
|
|
8579
|
+
framework: "@storybook/tanstack-react",
|
|
8580
|
+
renderer: "@storybook/react",
|
|
8581
|
+
builder: "@storybook/builder-vite"
|
|
8582
|
+
},
|
|
8583
|
+
modifications: {
|
|
8584
|
+
useCsfFactory: !0,
|
|
8585
|
+
extraDependencies: ["prop-types"],
|
|
8586
|
+
mainConfig: {
|
|
8587
|
+
framework: "@storybook/tanstack-react",
|
|
8588
|
+
features: {
|
|
8589
|
+
experimentalTestSyntax: !0
|
|
8590
|
+
}
|
|
8591
|
+
}
|
|
8592
|
+
},
|
|
8593
|
+
skipTasks: ["bench"]
|
|
8594
|
+
},
|
|
8555
8595
|
"vue3-vite/default-js": {
|
|
8556
8596
|
name: "Vue v3 (Vite | JavaScript)",
|
|
8557
8597
|
script: "npm create vite --yes {{beforeDir}} -- --template vue",
|
|
@@ -9035,7 +9075,9 @@ var baseTemplates = {
|
|
|
9035
9075
|
"bench/react-vite-default-ts-test-build",
|
|
9036
9076
|
"bench/react-webpack-18-ts-test-build",
|
|
9037
9077
|
// 'ember/default-js',
|
|
9038
|
-
"react-rsbuild/default-ts"
|
|
9078
|
+
"react-rsbuild/default-ts",
|
|
9079
|
+
"tanstack-react-router/default-ts",
|
|
9080
|
+
"tanstack-react-start/default-ts"
|
|
9039
9081
|
], merged = [
|
|
9040
9082
|
...normal,
|
|
9041
9083
|
"react-webpack/18-ts",
|
|
@@ -9213,7 +9255,7 @@ async function promptSelectedTemplate(choices) {
|
|
|
9213
9255
|
// src/ai/index.ts
|
|
9214
9256
|
import { writeFile as writeFile9 } from "node:fs/promises";
|
|
9215
9257
|
import { resolve as resolve4 } from "node:path";
|
|
9216
|
-
import { getPrettyPackageManagerName } from "storybook/internal/common";
|
|
9258
|
+
import { cache, getPrettyPackageManagerName } from "storybook/internal/common";
|
|
9217
9259
|
import { logger as logger22 } from "storybook/internal/node-logger";
|
|
9218
9260
|
import { telemetry } from "storybook/internal/telemetry";
|
|
9219
9261
|
import { SupportedLanguage as SupportedLanguage2 } from "storybook/internal/types";
|
|
@@ -9251,6 +9293,11 @@ var ProjectTypeService = class {
|
|
|
9251
9293
|
dependencies: ["nuxt"],
|
|
9252
9294
|
matcherFunction: ({ dependencies }) => dependencies?.every(Boolean) ?? !0
|
|
9253
9295
|
},
|
|
9296
|
+
{
|
|
9297
|
+
preset: ProjectType2.TANSTACK_REACT,
|
|
9298
|
+
dependencies: ["@tanstack/start", "@tanstack/react-start", "@tanstack/react-router"],
|
|
9299
|
+
matcherFunction: ({ dependencies }) => dependencies?.some(Boolean) ?? !1
|
|
9300
|
+
},
|
|
9254
9301
|
{
|
|
9255
9302
|
preset: ProjectType2.VUE3,
|
|
9256
9303
|
dependencies: {
|
|
@@ -9276,7 +9323,7 @@ var ProjectTypeService = class {
|
|
|
9276
9323
|
},
|
|
9277
9324
|
{
|
|
9278
9325
|
preset: ProjectType2.REACT_NATIVE,
|
|
9279
|
-
dependencies: ["react-native", "react-native-scripts"],
|
|
9326
|
+
dependencies: ["react-native", "react-native-scripts", "expo"],
|
|
9280
9327
|
matcherFunction: ({ dependencies }) => dependencies?.some(Boolean) ?? !1
|
|
9281
9328
|
},
|
|
9282
9329
|
{
|
|
@@ -9460,11 +9507,11 @@ function getProjectOverview(projectInfo) {
|
|
|
9460
9507
|
var DEFAULT_PROMPT_NAME = "pattern-copy-play", CURRENTLY_USED_PROMPT = {
|
|
9461
9508
|
[DEFAULT_PROMPT_NAME]: instructions
|
|
9462
9509
|
}, FORMERLY_USED_PROMPTS = {
|
|
9463
|
-
monorepo: async () => (await import("./monorepo-
|
|
9464
|
-
"optimized-tests": async () => (await import("./optimized-tests-
|
|
9465
|
-
"relaxed-limits": async () => (await import("./relaxed-limits-
|
|
9466
|
-
setup: async () => (await import("./setup-
|
|
9467
|
-
"pattern-copy-play": async () => (await import("./pattern-copy-play-
|
|
9510
|
+
monorepo: async () => (await import("./monorepo-TVSJOSCW.js")).instructions,
|
|
9511
|
+
"optimized-tests": async () => (await import("./optimized-tests-V6WOQ2XH.js")).instructions,
|
|
9512
|
+
"relaxed-limits": async () => (await import("./relaxed-limits-YQA6Y4DQ.js")).instructions,
|
|
9513
|
+
setup: async () => (await import("./setup-HAYJDL6K.js")).instructions,
|
|
9514
|
+
"pattern-copy-play": async () => (await import("./pattern-copy-play-6YIEGMCW.js")).instructions
|
|
9468
9515
|
}, PROMPT_NAMES = [
|
|
9469
9516
|
...Object.keys(CURRENTLY_USED_PROMPT),
|
|
9470
9517
|
...Object.keys(FORMERLY_USED_PROMPTS)
|
|
@@ -9503,7 +9550,7 @@ async function aiSetup(options) {
|
|
|
9503
9550
|
);
|
|
9504
9551
|
return;
|
|
9505
9552
|
}
|
|
9506
|
-
let majorVersion = data.versionInstalled ? parseMajorVersion(data.versionInstalled) : void 0, language = await new ProjectTypeService(data.packageManager).detectLanguage() === SupportedLanguage2.TYPESCRIPT ? "ts" : "js";
|
|
9553
|
+
let majorVersion = data.versionInstalled ? parseMajorVersion(data.versionInstalled) : void 0, language = await new ProjectTypeService(data.packageManager).detectLanguage() === SupportedLanguage2.TYPESCRIPT ? "ts" : "js", needsUserOnboarding = await cache.get("onboarding-pending", !1);
|
|
9507
9554
|
projectInfo = {
|
|
9508
9555
|
storybookVersion: data.versionInstalled,
|
|
9509
9556
|
majorVersion,
|
|
@@ -9517,7 +9564,8 @@ async function aiSetup(options) {
|
|
|
9517
9564
|
packageManager: data.packageManager,
|
|
9518
9565
|
packageManagerName: getPrettyPackageManagerName(data.packageManager.type),
|
|
9519
9566
|
language,
|
|
9520
|
-
hasCsfFactoryPreview: data.hasCsfFactoryPreview
|
|
9567
|
+
hasCsfFactoryPreview: data.hasCsfFactoryPreview,
|
|
9568
|
+
needsUserOnboarding
|
|
9521
9569
|
};
|
|
9522
9570
|
} catch (err) {
|
|
9523
9571
|
logger22.error(
|
|
@@ -9534,7 +9582,11 @@ async function aiSetup(options) {
|
|
|
9534
9582
|
return;
|
|
9535
9583
|
}
|
|
9536
9584
|
let markdownOutput = (await getAiSetupMarkdownOutput(projectInfo)).markdown;
|
|
9537
|
-
if (await
|
|
9585
|
+
if (await cache.set("ai-setup-ran", {
|
|
9586
|
+
timestamp: Date.now(),
|
|
9587
|
+
configDir: resolve4(projectInfo.configDir)
|
|
9588
|
+
}).catch(() => {
|
|
9589
|
+
}), await telemetry("ai-setup", {
|
|
9538
9590
|
cliOptions: {
|
|
9539
9591
|
output: output ? "file" : void 0,
|
|
9540
9592
|
configDir: projectInfo.configDir,
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_cy5uq3ou7e from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_cy5uq3ou7e from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_cy5uq3ou7e from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_cy5uq3ou7e.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_cy5uq3ou7e.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_cy5uq3ou7e.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
|
getTypeImportSource
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-INX3KICK.js";
|
|
15
|
+
import "./chunk-34WT6WHN.js";
|
|
16
16
|
|
|
17
17
|
// src/ai/setup-prompts/setup.ts
|
|
18
18
|
import { dedent } from "ts-dedent";
|
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_cy5uq3ou7e from 'node:url';
|
|
3
|
+
import CJS_COMPAT_NODE_PATH_cy5uq3ou7e from 'node:path';
|
|
4
|
+
import CJS_COMPAT_NODE_MODULE_cy5uq3ou7e from "node:module";
|
|
5
5
|
|
|
6
|
-
var __filename =
|
|
7
|
-
var __dirname =
|
|
8
|
-
var require =
|
|
6
|
+
var __filename = CJS_COMPAT_NODE_URL_cy5uq3ou7e.fileURLToPath(import.meta.url);
|
|
7
|
+
var __dirname = CJS_COMPAT_NODE_PATH_cy5uq3ou7e.dirname(__filename);
|
|
8
|
+
var require = CJS_COMPAT_NODE_MODULE_cy5uq3ou7e.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-IPZ5VOW3.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.17",
|
|
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.17",
|
|
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.17",
|
|
44
44
|
"jscodeshift": "^0.15.1",
|
|
45
|
-
"storybook": "10.4.0-alpha.
|
|
45
|
+
"storybook": "10.4.0-alpha.17",
|
|
46
46
|
"ts-dedent": "^2.0.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_sgh3w93ap7c from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_sgh3w93ap7c from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_sgh3w93ap7c from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_sgh3w93ap7c.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_sgh3w93ap7c.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_sgh3w93ap7c.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_sgh3w93ap7c from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_sgh3w93ap7c from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_sgh3w93ap7c from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_sgh3w93ap7c.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_sgh3w93ap7c.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_sgh3w93ap7c.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
12
|
-
import {
|
|
13
|
-
instructions
|
|
14
|
-
} from "./chunk-JYLYIY6L.js";
|
|
15
|
-
import "./chunk-QBNIQBHH.js";
|
|
16
|
-
import "./chunk-7BQI2DK6.js";
|
|
17
|
-
import "./chunk-TZ336D6R.js";
|
|
18
|
-
export {
|
|
19
|
-
instructions
|
|
20
|
-
};
|