@storybook/cli 10.4.0-alpha.18 → 10.4.0-alpha.19
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-QNRY6J2G.js → block-dependencies-versions-IKES7YRT.js} +11 -11
- package/dist/_node-chunks/{block-experimental-addon-test-PVMAM5F5.js → block-experimental-addon-test-RJODMTE5.js} +9 -9
- package/dist/_node-chunks/{block-major-version-B4U62UGS.js → block-major-version-ME3DAZLS.js} +9 -9
- package/dist/_node-chunks/{block-node-version-7C63VYY4.js → block-node-version-HY6L7AKJ.js} +9 -9
- package/dist/_node-chunks/{block-webpack5-frameworks-RODOEXCR.js → block-webpack5-frameworks-JUAO5GW2.js} +11 -11
- package/dist/_node-chunks/{chunk-E7VJSF4M.js → chunk-32FNNTYD.js} +6 -6
- package/dist/_node-chunks/{chunk-XXTFAID7.js → chunk-BCB3TTXC.js} +6 -6
- package/dist/_node-chunks/{chunk-NMHZMXV5.js → chunk-CWAIOGFA.js} +15 -15
- package/dist/_node-chunks/{chunk-3VND4UGR.js → chunk-F2Y5RBHG.js} +8 -8
- package/dist/_node-chunks/chunk-FAH2KGM4.js +11 -0
- package/dist/_node-chunks/{chunk-DZENT53U.js → chunk-LWAB637S.js} +7 -7
- package/dist/_node-chunks/{chunk-7GFZ5XLA.js → chunk-NGTJLSV5.js} +7 -7
- package/dist/_node-chunks/{chunk-F7HPRHMF.js → chunk-OVANZ2BU.js} +6 -6
- package/dist/_node-chunks/{chunk-QRIT645X.js → chunk-S6GEVWW4.js} +6 -6
- package/dist/_node-chunks/{globby-V7VJJXY6.js → globby-DWIJHLZT.js} +8 -8
- package/dist/_node-chunks/{monorepo-TKU4OK5Y.js → monorepo-UR4HJTCQ.js} +9 -9
- package/dist/_node-chunks/{monorepo-optimized-tests-relaxed-limits-no-story-deletion-XF53WCEF.js → monorepo-optimized-tests-relaxed-limits-no-story-deletion-QDUUXYRM.js} +9 -9
- package/dist/_node-chunks/optimized-tests-NIXP5HST.js +20 -0
- package/dist/_node-chunks/{p-limit-G7HGHMQY.js → p-limit-MZRXK4EV.js} +7 -7
- package/dist/_node-chunks/{pattern-copy-play-Y43OOQWS.js → pattern-copy-play-OWJMSCMN.js} +9 -9
- package/dist/_node-chunks/{relaxed-limits-IFYEA3SD.js → relaxed-limits-IPKLQ6HO.js} +9 -9
- package/dist/_node-chunks/{run-7AY5NI5G.js → run-GYEDVAMP.js} +59 -48
- package/dist/_node-chunks/{setup-N65V6RFL.js → setup-F6H7TC4J.js} +8 -8
- package/dist/bin/index.js +7 -7
- package/package.json +4 -4
- package/dist/_node-chunks/chunk-4IHT72QP.js +0 -11
- package/dist/_node-chunks/optimized-tests-PTOYROOU.js +0 -20
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_qll1c0hfcx from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_qll1c0hfcx from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_qll1c0hfcx from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_qll1c0hfcx.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_qll1c0hfcx.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_qll1c0hfcx.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-CWAIOGFA.js";
|
|
15
|
+
import "./chunk-NGTJLSV5.js";
|
|
16
|
+
import "./chunk-FAH2KGM4.js";
|
|
17
|
+
import "./chunk-LWAB637S.js";
|
|
18
|
+
import "./chunk-OVANZ2BU.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_qll1c0hfcx from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_qll1c0hfcx from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_qll1c0hfcx from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_qll1c0hfcx.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_qll1c0hfcx.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_qll1c0hfcx.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-FAH2KGM4.js";
|
|
13
13
|
import {
|
|
14
14
|
require_semver
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-LWAB637S.js";
|
|
16
16
|
import {
|
|
17
17
|
__toESM
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-OVANZ2BU.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-B4U62UGS.js → block-major-version-ME3DAZLS.js}
RENAMED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_qll1c0hfcx from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_qll1c0hfcx from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_qll1c0hfcx from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_qll1c0hfcx.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_qll1c0hfcx.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_qll1c0hfcx.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-FAH2KGM4.js";
|
|
13
13
|
import {
|
|
14
14
|
require_semver
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-LWAB637S.js";
|
|
16
16
|
import {
|
|
17
17
|
__toESM
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-OVANZ2BU.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_qll1c0hfcx from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_qll1c0hfcx from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_qll1c0hfcx from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_qll1c0hfcx.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_qll1c0hfcx.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_qll1c0hfcx.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-FAH2KGM4.js";
|
|
13
13
|
import {
|
|
14
14
|
require_semver
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-LWAB637S.js";
|
|
16
16
|
import {
|
|
17
17
|
__toESM
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-OVANZ2BU.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_qll1c0hfcx from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_qll1c0hfcx from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_qll1c0hfcx from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_qll1c0hfcx.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_qll1c0hfcx.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_qll1c0hfcx.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-CWAIOGFA.js";
|
|
15
|
+
import "./chunk-NGTJLSV5.js";
|
|
16
|
+
import "./chunk-FAH2KGM4.js";
|
|
17
|
+
import "./chunk-LWAB637S.js";
|
|
18
|
+
import "./chunk-OVANZ2BU.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_qll1c0hfcx from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_qll1c0hfcx from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_qll1c0hfcx from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_qll1c0hfcx.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_qll1c0hfcx.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_qll1c0hfcx.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_qll1c0hfcx from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_qll1c0hfcx from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_qll1c0hfcx from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_qll1c0hfcx.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_qll1c0hfcx.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_qll1c0hfcx.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_qll1c0hfcx from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_qll1c0hfcx from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_qll1c0hfcx from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_qll1c0hfcx.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_qll1c0hfcx.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_qll1c0hfcx.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_x95a390k9yf.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
globby,
|
|
14
14
|
globbySync
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-NGTJLSV5.js";
|
|
16
16
|
import {
|
|
17
17
|
require_semver
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-LWAB637S.js";
|
|
19
19
|
import {
|
|
20
20
|
__commonJS,
|
|
21
21
|
__toESM
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-OVANZ2BU.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-IKES7YRT.js"),
|
|
127
|
+
import("./block-node-version-HY6L7AKJ.js"),
|
|
128
|
+
import("./block-webpack5-frameworks-JUAO5GW2.js"),
|
|
129
|
+
import("./block-major-version-ME3DAZLS.js"),
|
|
130
|
+
import("./block-experimental-addon-test-RJODMTE5.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-MZRXK4EV.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_qll1c0hfcx from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_qll1c0hfcx from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_qll1c0hfcx from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_qll1c0hfcx.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_qll1c0hfcx.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_qll1c0hfcx.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -35,10 +35,10 @@ import {
|
|
|
35
35
|
verifyStep,
|
|
36
36
|
vitestPassesStrictDOD,
|
|
37
37
|
writeStoriesStep
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-BCB3TTXC.js";
|
|
39
39
|
import {
|
|
40
40
|
getDocsMarkdownUrl
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-32FNNTYD.js";
|
|
42
42
|
|
|
43
43
|
// src/ai/setup-prompts/optimized-tests.ts
|
|
44
44
|
import { dedent } from "ts-dedent";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_qll1c0hfcx from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_qll1c0hfcx from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_qll1c0hfcx from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_qll1c0hfcx.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_qll1c0hfcx.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_qll1c0hfcx.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_qll1c0hfcx from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_qll1c0hfcx from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_qll1c0hfcx from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_qll1c0hfcx.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_qll1c0hfcx.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_qll1c0hfcx.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-OVANZ2BU.js";
|
|
15
15
|
|
|
16
16
|
// ../../../node_modules/semver/internal/constants.js
|
|
17
17
|
var require_constants = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_qll1c0hfcx from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_qll1c0hfcx from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_qll1c0hfcx from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_qll1c0hfcx.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_qll1c0hfcx.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_qll1c0hfcx.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-OVANZ2BU.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_qll1c0hfcx from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_qll1c0hfcx from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_qll1c0hfcx from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_qll1c0hfcx.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_qll1c0hfcx.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_qll1c0hfcx.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_qll1c0hfcx from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_qll1c0hfcx from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_qll1c0hfcx from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_qll1c0hfcx.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_qll1c0hfcx.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_qll1c0hfcx.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_qll1c0hfcx from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_qll1c0hfcx from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_qll1c0hfcx from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_qll1c0hfcx.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_qll1c0hfcx.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_qll1c0hfcx.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-NGTJLSV5.js";
|
|
25
|
+
import "./chunk-OVANZ2BU.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_qll1c0hfcx from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_qll1c0hfcx from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_qll1c0hfcx from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_qll1c0hfcx.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_qll1c0hfcx.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_qll1c0hfcx.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -37,11 +37,11 @@ import {
|
|
|
37
37
|
verifyStep,
|
|
38
38
|
vitestPassesStrictDOD,
|
|
39
39
|
writeStoriesStep
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-BCB3TTXC.js";
|
|
41
41
|
import {
|
|
42
42
|
getDocsMarkdownUrl
|
|
43
|
-
} from "./chunk-
|
|
44
|
-
import "./chunk-
|
|
43
|
+
} from "./chunk-32FNNTYD.js";
|
|
44
|
+
import "./chunk-OVANZ2BU.js";
|
|
45
45
|
|
|
46
46
|
// src/ai/setup-prompts/monorepo.ts
|
|
47
47
|
import { dedent } from "ts-dedent";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_qll1c0hfcx from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_qll1c0hfcx from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_qll1c0hfcx from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_qll1c0hfcx.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_qll1c0hfcx.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_qll1c0hfcx.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -37,11 +37,11 @@ import {
|
|
|
37
37
|
verifyWithAllowedFailureStep,
|
|
38
38
|
vitestPassesWhenExpectedDOD,
|
|
39
39
|
writeStoriesWithAllowedFailuresStep
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-BCB3TTXC.js";
|
|
41
41
|
import {
|
|
42
42
|
getDocsMarkdownUrl
|
|
43
|
-
} from "./chunk-
|
|
44
|
-
import "./chunk-
|
|
43
|
+
} from "./chunk-32FNNTYD.js";
|
|
44
|
+
import "./chunk-OVANZ2BU.js";
|
|
45
45
|
|
|
46
46
|
// src/ai/setup-prompts/monorepo-optimized-tests-relaxed-limits-no-story-deletion.ts
|
|
47
47
|
import { dedent } from "ts-dedent";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_qll1c0hfcx from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_qll1c0hfcx from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_qll1c0hfcx from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_qll1c0hfcx.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_qll1c0hfcx.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_qll1c0hfcx.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-F2Y5RBHG.js";
|
|
15
|
+
import "./chunk-BCB3TTXC.js";
|
|
16
|
+
import "./chunk-32FNNTYD.js";
|
|
17
|
+
import "./chunk-OVANZ2BU.js";
|
|
18
|
+
export {
|
|
19
|
+
instructions
|
|
20
|
+
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_qll1c0hfcx from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_qll1c0hfcx from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_qll1c0hfcx from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_qll1c0hfcx.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_qll1c0hfcx.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_qll1c0hfcx.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-OVANZ2BU.js";
|
|
13
13
|
|
|
14
14
|
// ../../../node_modules/yocto-queue/index.js
|
|
15
15
|
var Node = class {
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_qll1c0hfcx from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_qll1c0hfcx from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_qll1c0hfcx from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_qll1c0hfcx.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_qll1c0hfcx.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_qll1c0hfcx.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-
|
|
14
|
+
} from "./chunk-S6GEVWW4.js";
|
|
15
15
|
import {
|
|
16
16
|
getDocsMarkdownUrl
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-32FNNTYD.js";
|
|
18
|
+
import "./chunk-OVANZ2BU.js";
|
|
19
19
|
|
|
20
20
|
// src/ai/setup-prompts/pattern-copy-play.ts
|
|
21
21
|
import { dedent } from "ts-dedent";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_qll1c0hfcx from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_qll1c0hfcx from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_qll1c0hfcx from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_qll1c0hfcx.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_qll1c0hfcx.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_qll1c0hfcx.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -35,11 +35,11 @@ import {
|
|
|
35
35
|
verifyStep,
|
|
36
36
|
vitestPassesStrictDOD,
|
|
37
37
|
writeStoriesStep
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-BCB3TTXC.js";
|
|
39
39
|
import {
|
|
40
40
|
getDocsMarkdownUrl
|
|
41
|
-
} from "./chunk-
|
|
42
|
-
import "./chunk-
|
|
41
|
+
} from "./chunk-32FNNTYD.js";
|
|
42
|
+
import "./chunk-OVANZ2BU.js";
|
|
43
43
|
|
|
44
44
|
// src/ai/setup-prompts/relaxed-limits.ts
|
|
45
45
|
import { dedent } from "ts-dedent";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_qll1c0hfcx from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_qll1c0hfcx from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_qll1c0hfcx from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_qll1c0hfcx.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_qll1c0hfcx.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_qll1c0hfcx.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-F2Y5RBHG.js";
|
|
15
|
+
import "./chunk-BCB3TTXC.js";
|
|
16
|
+
import "./chunk-32FNNTYD.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-CWAIOGFA.js";
|
|
35
35
|
import {
|
|
36
36
|
slash
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-NGTJLSV5.js";
|
|
38
38
|
import {
|
|
39
39
|
require_semver
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-LWAB637S.js";
|
|
41
41
|
import {
|
|
42
42
|
__commonJS,
|
|
43
43
|
__require,
|
|
44
44
|
__toESM
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-OVANZ2BU.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_picocolors18 = __toESM(require_picocolors(), 1);
|
|
4767
4767
|
|
|
4768
4768
|
// package.json
|
|
4769
|
-
var version = "10.4.0-alpha.
|
|
4769
|
+
var version = "10.4.0-alpha.19";
|
|
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-DWIJHLZT.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-MZRXK4EV.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-MZRXK4EV.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-MZRXK4EV.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-MZRXK4EV.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-DWIJHLZT.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-DWIJHLZT.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"
|
|
@@ -7303,7 +7303,7 @@ var REACT_VITE_PACKAGE = "@storybook/react-vite", TANSTACK_REACT_PACKAGE = "@sto
|
|
|
7303
7303
|
configDir,
|
|
7304
7304
|
storiesPaths
|
|
7305
7305
|
}) => {
|
|
7306
|
-
let { globby } = await import("./globby-
|
|
7306
|
+
let { globby } = await import("./globby-DWIJHLZT.js"), configFiles = configDir ? await globby([`${configDir}/**/*.{ts,tsx,js,jsx,mjs,cjs}`], {
|
|
7307
7307
|
ignore: ["**/node_modules/**", "**/dist/**"]
|
|
7308
7308
|
}) : [], candidateFiles = Array.from(
|
|
7309
7309
|
/* @__PURE__ */ new Set([...previewConfigPath ? [previewConfigPath] : [], ...configFiles, ...storiesPaths])
|
|
@@ -7522,7 +7522,7 @@ var REACT_VITE_PACKAGE = "@storybook/react-vite", TANSTACK_REACT_PACKAGE = "@sto
|
|
|
7522
7522
|
logger12.step(`Migrating from ${REACT_VITE_PACKAGE} to ${TANSTACK_REACT_PACKAGE}...`), dryRun ? logger12.debug("Dry run: Skipping package.json updates.") : (logger12.debug("Updating package.json files..."), await packageManager.removeDependencies([REACT_VITE_PACKAGE]), await packageManager.addDependencies({ type: "devDependencies", skipInstall: !0 }, [
|
|
7523
7523
|
`${TANSTACK_REACT_PACKAGE}@${storybookVersion}`
|
|
7524
7524
|
])), mainConfigPath && (logger12.debug("Updating main config file..."), await transformMainConfig2(mainConfigPath, dryRun)), logger12.debug("Scanning and updating import statements...");
|
|
7525
|
-
let { globby } = await import("./globby-
|
|
7525
|
+
let { globby } = await import("./globby-DWIJHLZT.js"), configFiles = configDir ? await globby([`${configDir}/**/*.{ts,tsx,js,jsx,mjs,cjs}`], {
|
|
7526
7526
|
ignore: ["**/node_modules/**", "**/dist/**"]
|
|
7527
7527
|
}) : [], allFiles = [...storiesPaths, ...configFiles, previewConfigPath].filter(
|
|
7528
7528
|
Boolean
|
|
@@ -7545,7 +7545,7 @@ var REACT_VITE_PACKAGE = "@storybook/react-vite", TANSTACK_REACT_PACKAGE = "@sto
|
|
|
7545
7545
|
"https://storybook.js.org/docs/get-started/frameworks/tanstack-react"
|
|
7546
7546
|
)}), so that decorator is no longer needed and should be removed.
|
|
7547
7547
|
`
|
|
7548
|
-
), yes ? !
|
|
7548
|
+
), yes ? !0 : await prompt3.confirm({
|
|
7549
7549
|
message: "Would you like a ready-to-paste AI prompt to help remove the now-unused TanStack Router decorator?",
|
|
7550
7550
|
initialValue: !0
|
|
7551
7551
|
}))) {
|
|
@@ -7763,7 +7763,7 @@ var getAllDependencies = (packageJson) => Object.keys({
|
|
|
7763
7763
|
let regex = new RegExp(`(['"])${renderer}(['"])`, "g");
|
|
7764
7764
|
return regex.test(source) ? source.replace(regex, `$1${framework}$2`) : null;
|
|
7765
7765
|
}, transformSourceFiles = async (files, renderer, framework, dryRun) => {
|
|
7766
|
-
let errors = [], { default: pLimit } = await import("./p-limit-
|
|
7766
|
+
let errors = [], { default: pLimit } = await import("./p-limit-MZRXK4EV.js"), limit = pLimit(10);
|
|
7767
7767
|
return await Promise.all(
|
|
7768
7768
|
files.map(
|
|
7769
7769
|
(file) => limit(async () => {
|
|
@@ -7830,7 +7830,7 @@ var getAllDependencies = (packageJson) => Object.keys({
|
|
|
7830
7830
|
continue;
|
|
7831
7831
|
logger14.debug(`
|
|
7832
7832
|
Migrating ${rendererPackage} to ${selectedFramework}`);
|
|
7833
|
-
let { globby } = await import("./globby-
|
|
7833
|
+
let { globby } = await import("./globby-DWIJHLZT.js"), configFiles = await globby([`${configDir}/**/*`]);
|
|
7834
7834
|
await transformSourceFiles(
|
|
7835
7835
|
[...storiesPaths, ...configFiles].filter(Boolean),
|
|
7836
7836
|
rendererPackage,
|
|
@@ -7936,7 +7936,7 @@ async function renameInFile(filePath, oldText, newText) {
|
|
|
7936
7936
|
}
|
|
7937
7937
|
var getDotStorybookReferences = async (searchDir) => {
|
|
7938
7938
|
try {
|
|
7939
|
-
let { globby } = await import("./globby-
|
|
7939
|
+
let { globby } = await import("./globby-DWIJHLZT.js"), { readFile: readFile11 } = await import("node:fs/promises"), files = await globby(`${searchDir}/**/*`, {
|
|
7940
7940
|
onlyFiles: !0,
|
|
7941
7941
|
gitignore: !0
|
|
7942
7942
|
}), referencedFiles = [];
|
|
@@ -7957,7 +7957,7 @@ var getDotStorybookReferences = async (searchDir) => {
|
|
|
7957
7957
|
async check({ packageManager, mainConfigPath }) {
|
|
7958
7958
|
if (!packageManager.getAllDependencies()["@storybook/react-native"])
|
|
7959
7959
|
return null;
|
|
7960
|
-
let projectDir = mainConfigPath ? join3(mainConfigPath, "..", "..") : process.cwd(), storybookDir = join3(projectDir, ".storybook"), rnStorybookDir = join3(projectDir, RN_STORYBOOK_DIR), { globby } = await import("./globby-
|
|
7960
|
+
let projectDir = mainConfigPath ? join3(mainConfigPath, "..", "..") : process.cwd(), storybookDir = join3(projectDir, ".storybook"), rnStorybookDir = join3(projectDir, RN_STORYBOOK_DIR), { globby } = await import("./globby-DWIJHLZT.js"), requiresFiles = await globby(join3(storybookDir, "storybook.requires.*"));
|
|
7961
7961
|
return existsSync3(storybookDir) && requiresFiles.length > 0 && !existsSync3(rnStorybookDir) ? { storybookDir, rnStorybookDir } : null;
|
|
7962
7962
|
},
|
|
7963
7963
|
prompt() {
|
|
@@ -9740,9 +9740,11 @@ var ProjectTypeService = class {
|
|
|
9740
9740
|
}
|
|
9741
9741
|
async detectLanguage() {
|
|
9742
9742
|
let language = SupportedLanguage.JAVASCRIPT;
|
|
9743
|
-
|
|
9744
|
-
|
|
9745
|
-
|
|
9743
|
+
return existsSync6("jsconfig.json") || (!!this.jsPackageManager.getAllDependencies().typescript ? (await this.detectIncompatiblePackageVersions()).length === 0 && (language = SupportedLanguage.TYPESCRIPT) : existsSync6("tsconfig.json") && (language = SupportedLanguage.TYPESCRIPT)), language;
|
|
9744
|
+
}
|
|
9745
|
+
/** Check installed tooling versions for TypeScript compatibility constraints */
|
|
9746
|
+
async detectIncompatiblePackageVersions() {
|
|
9747
|
+
let getModulePackageJSONVersion = async (pkg) => (await this.jsPackageManager.getModulePackageJSON(pkg))?.version ?? null, [
|
|
9746
9748
|
typescriptVersion,
|
|
9747
9749
|
prettierVersion,
|
|
9748
9750
|
babelPluginTransformTypescriptVersion,
|
|
@@ -9754,10 +9756,14 @@ var ProjectTypeService = class {
|
|
|
9754
9756
|
getModulePackageJSONVersion("@babel/plugin-transform-typescript"),
|
|
9755
9757
|
getModulePackageJSONVersion("@typescript-eslint/parser"),
|
|
9756
9758
|
getModulePackageJSONVersion("eslint-plugin-storybook")
|
|
9757
|
-
]), satisfies = (version2, range) => version2 ? import_semver7.default.satisfies(version2, range, { includePrerelease: !0 }) : !1;
|
|
9758
|
-
return
|
|
9759
|
-
|
|
9760
|
-
)
|
|
9759
|
+
]), satisfies = (version2, range) => version2 ? import_semver7.default.satisfies(version2, range, { includePrerelease: !0 }) : !1, incompatibleReasons = [];
|
|
9760
|
+
return typescriptVersion && !satisfies(typescriptVersion, ">=4.9.0") && incompatibleReasons.push(`typescript ${typescriptVersion} is below 4.9.0`), prettierVersion && !import_semver7.default.gte(prettierVersion, "2.8.0") && incompatibleReasons.push(`prettier ${prettierVersion} is below 2.8.0`), babelPluginTransformTypescriptVersion && !satisfies(babelPluginTransformTypescriptVersion, ">=7.20.0") && incompatibleReasons.push(
|
|
9761
|
+
`@babel/plugin-transform-typescript ${babelPluginTransformTypescriptVersion} is below 7.20.0`
|
|
9762
|
+
), typescriptEslintParserVersion && !satisfies(typescriptEslintParserVersion, ">=5.44.0") && incompatibleReasons.push(
|
|
9763
|
+
`@typescript-eslint/parser ${typescriptEslintParserVersion} is below 5.44.0`
|
|
9764
|
+
), eslintPluginStorybookVersion && !eslintPluginStorybookVersion.startsWith("0.0.0-") && !satisfies(eslintPluginStorybookVersion, ">=0.6.8") && incompatibleReasons.push(
|
|
9765
|
+
`eslint-plugin-storybook ${eslintPluginStorybookVersion} is below 0.6.8`
|
|
9766
|
+
), incompatibleReasons;
|
|
9761
9767
|
}
|
|
9762
9768
|
eqMajor(versionRange, major) {
|
|
9763
9769
|
return import_semver7.default.validRange(versionRange) ? import_semver7.default.minVersion(versionRange)?.major === major : !1;
|
|
@@ -9839,12 +9845,12 @@ function getProjectOverview(projectInfo) {
|
|
|
9839
9845
|
var DEFAULT_PROMPT_NAME = "optimized-tests", CURRENTLY_USED_PROMPT = {
|
|
9840
9846
|
[DEFAULT_PROMPT_NAME]: instructions
|
|
9841
9847
|
}, FORMERLY_USED_PROMPTS = {
|
|
9842
|
-
monorepo: async () => (await import("./monorepo-
|
|
9843
|
-
"optimized-tests": async () => (await import("./optimized-tests-
|
|
9844
|
-
"relaxed-limits": async () => (await import("./relaxed-limits-
|
|
9845
|
-
setup: async () => (await import("./setup-
|
|
9846
|
-
"pattern-copy-play": async () => (await import("./pattern-copy-play-
|
|
9847
|
-
"monorepo-optimized-tests-relaxed-limits-no-story-deletion": async () => (await import("./monorepo-optimized-tests-relaxed-limits-no-story-deletion-
|
|
9848
|
+
monorepo: async () => (await import("./monorepo-UR4HJTCQ.js")).instructions,
|
|
9849
|
+
"optimized-tests": async () => (await import("./optimized-tests-NIXP5HST.js")).instructions,
|
|
9850
|
+
"relaxed-limits": async () => (await import("./relaxed-limits-IPKLQ6HO.js")).instructions,
|
|
9851
|
+
setup: async () => (await import("./setup-F6H7TC4J.js")).instructions,
|
|
9852
|
+
"pattern-copy-play": async () => (await import("./pattern-copy-play-OWJMSCMN.js")).instructions,
|
|
9853
|
+
"monorepo-optimized-tests-relaxed-limits-no-story-deletion": async () => (await import("./monorepo-optimized-tests-relaxed-limits-no-story-deletion-QDUUXYRM.js")).instructions
|
|
9848
9854
|
}, PROMPT_NAMES = [
|
|
9849
9855
|
...Object.keys(CURRENTLY_USED_PROMPT),
|
|
9850
9856
|
...Object.keys(FORMERLY_USED_PROMPTS)
|
|
@@ -9855,17 +9861,19 @@ function resolvePromptName() {
|
|
|
9855
9861
|
}
|
|
9856
9862
|
async function getAiSetupPrompt(projectInfo) {
|
|
9857
9863
|
let name = resolvePromptName();
|
|
9858
|
-
return (CURRENTLY_USED_PROMPT[name] ?? await FORMERLY_USED_PROMPTS[name]())(projectInfo);
|
|
9864
|
+
return { content: (CURRENTLY_USED_PROMPT[name] ?? await FORMERLY_USED_PROMPTS[name]())(projectInfo), name };
|
|
9859
9865
|
}
|
|
9860
9866
|
async function getAiSetupMarkdownOutput(projectInfo) {
|
|
9867
|
+
let { content, name } = await getAiSetupPrompt(projectInfo);
|
|
9861
9868
|
return {
|
|
9862
9869
|
markdown: dedent18`
|
|
9863
9870
|
# Storybook Setup
|
|
9864
9871
|
|
|
9865
9872
|
${getProjectOverview(projectInfo)}
|
|
9866
9873
|
|
|
9867
|
-
${
|
|
9868
|
-
|
|
9874
|
+
${content}
|
|
9875
|
+
`,
|
|
9876
|
+
prompt: name
|
|
9869
9877
|
};
|
|
9870
9878
|
}
|
|
9871
9879
|
|
|
@@ -9914,23 +9922,26 @@ async function aiSetup(options) {
|
|
|
9914
9922
|
);
|
|
9915
9923
|
return;
|
|
9916
9924
|
}
|
|
9917
|
-
let
|
|
9925
|
+
let result = await getAiSetupMarkdownOutput(projectInfo), markdownOutput = result.markdown;
|
|
9918
9926
|
if (await cache.set("ai-setup-ran", {
|
|
9919
9927
|
timestamp: Date.now(),
|
|
9928
|
+
runId: options.runId,
|
|
9920
9929
|
configDir: resolve4(projectInfo.configDir)
|
|
9921
9930
|
}).catch(() => {
|
|
9922
9931
|
}), await telemetry("ai-setup", {
|
|
9923
9932
|
cliOptions: {
|
|
9924
9933
|
output: output ? "file" : void 0,
|
|
9925
9934
|
configDir: projectInfo.configDir,
|
|
9926
|
-
packageManager: projectInfo.packageManager.type
|
|
9935
|
+
packageManager: projectInfo.packageManager.type,
|
|
9936
|
+
prompt: result.prompt
|
|
9927
9937
|
},
|
|
9928
9938
|
project: {
|
|
9929
9939
|
framework: projectInfo.framework,
|
|
9930
9940
|
renderer: projectInfo.rendererPackage,
|
|
9931
9941
|
builder: projectInfo.builderPackage,
|
|
9932
9942
|
language: projectInfo.language
|
|
9933
|
-
}
|
|
9943
|
+
},
|
|
9944
|
+
runId: options.runId
|
|
9934
9945
|
}), output) {
|
|
9935
9946
|
let outputPath = resolve4(output);
|
|
9936
9947
|
await writeFile10(outputPath, markdownOutput, "utf-8"), logger23.log(`Prompt written to ${outputPath}`);
|
|
@@ -10589,7 +10600,7 @@ aiCommand.command("setup").description("Generate setup instructions to write sto
|
|
|
10589
10600
|
Object.values(PackageManagerName3)
|
|
10590
10601
|
)
|
|
10591
10602
|
).option("-c, --config-dir <dir-name>", "Directory of Storybook configuration").action(async (options, cmd) => {
|
|
10592
|
-
let
|
|
10603
|
+
let parentOptions = cmd.parent?.opts() ?? {}, runId = Math.random().toString(36), mergedOptions = { ...parentOptions, ...options, runId };
|
|
10593
10604
|
await withTelemetry("ai-setup", { cliOptions: mergedOptions }, async () => {
|
|
10594
10605
|
await aiSetup(mergedOptions);
|
|
10595
10606
|
}).catch(handleCommandFailure(mergedOptions.logfile));
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_qll1c0hfcx from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_qll1c0hfcx from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_qll1c0hfcx from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_qll1c0hfcx.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_qll1c0hfcx.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_qll1c0hfcx.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-S6GEVWW4.js";
|
|
15
|
+
import "./chunk-OVANZ2BU.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_qll1c0hfcx from 'node:url';
|
|
3
|
+
import CJS_COMPAT_NODE_PATH_qll1c0hfcx from 'node:path';
|
|
4
|
+
import CJS_COMPAT_NODE_MODULE_qll1c0hfcx from "node:module";
|
|
5
5
|
|
|
6
|
-
var __filename =
|
|
7
|
-
var __dirname =
|
|
8
|
-
var require =
|
|
6
|
+
var __filename = CJS_COMPAT_NODE_URL_qll1c0hfcx.fileURLToPath(import.meta.url);
|
|
7
|
+
var __dirname = CJS_COMPAT_NODE_PATH_qll1c0hfcx.dirname(__filename);
|
|
8
|
+
var require = CJS_COMPAT_NODE_MODULE_qll1c0hfcx.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-GYEDVAMP.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.19",
|
|
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.19",
|
|
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.19",
|
|
44
44
|
"jscodeshift": "^0.15.1",
|
|
45
|
-
"storybook": "10.4.0-alpha.
|
|
45
|
+
"storybook": "10.4.0-alpha.19",
|
|
46
46
|
"ts-dedent": "^2.0.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_x95a390k9yf from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_x95a390k9yf from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_x95a390k9yf from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_x95a390k9yf.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_x95a390k9yf.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_x95a390k9yf.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_x95a390k9yf from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_x95a390k9yf from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_x95a390k9yf from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_x95a390k9yf.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_x95a390k9yf.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_x95a390k9yf.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-3VND4UGR.js";
|
|
15
|
-
import "./chunk-XXTFAID7.js";
|
|
16
|
-
import "./chunk-E7VJSF4M.js";
|
|
17
|
-
import "./chunk-F7HPRHMF.js";
|
|
18
|
-
export {
|
|
19
|
-
instructions
|
|
20
|
-
};
|