storybook 10.5.4 → 10.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_node-chunks/{builder-manager-TQFWYO7C.js → builder-manager-4GMYFI7O.js} +14 -13
- package/dist/_node-chunks/{camelcase-HIKM72V6.js → camelcase-3PMKZZE5.js} +7 -7
- package/dist/_node-chunks/{chunk-I2PRNEJD.js → chunk-2UHKX4RM.js} +7 -7
- package/dist/_node-chunks/{chunk-MFW2GPEL.js → chunk-3PJ2Q2VZ.js} +6 -6
- package/dist/_node-chunks/{chunk-ODVYG3A7.js → chunk-4YKGMOWJ.js} +17 -17
- package/dist/_node-chunks/{chunk-7DOTO7OC.js → chunk-5B7VJ5CO.js} +7 -7
- package/dist/_node-chunks/{chunk-MPXKRSJ3.js → chunk-5OSVVXLI.js} +6 -6
- package/dist/_node-chunks/{chunk-5GUBRABB.js → chunk-5VUPW2CE.js} +6 -6
- package/dist/_node-chunks/chunk-6IJC47ZF.js +85 -0
- package/dist/_node-chunks/{chunk-6SZKIVYP.js → chunk-6RKCYWK4.js} +7 -7
- package/dist/_node-chunks/{chunk-BMARMTH5.js → chunk-7NFVFFX4.js} +6 -6
- package/dist/_node-chunks/{chunk-YO67KHPK.js → chunk-7T7BCSOI.js} +9 -9
- package/dist/_node-chunks/{chunk-JWC5AZVX.js → chunk-AN5PKEA2.js} +6 -6
- package/dist/_node-chunks/{chunk-SX6J4NWS.js → chunk-BIOYZDWH.js} +57 -32
- package/dist/_node-chunks/{chunk-W7PIFDUP.js → chunk-D3SKCU36.js} +9 -9
- package/dist/_node-chunks/{chunk-QVRQMYDE.js → chunk-DAV6URMF.js} +6 -6
- package/dist/_node-chunks/{chunk-QIZP5UCC.js → chunk-DXKWFBLE.js} +23 -23
- package/dist/_node-chunks/{chunk-PYAOKVSD.js → chunk-FLMS7GQC.js} +12 -12
- package/dist/_node-chunks/{chunk-TCFJF55M.js → chunk-FWMB2W64.js} +9 -9
- package/dist/_node-chunks/{chunk-OXR34Q6X.js → chunk-HNCVUDZX.js} +8 -8
- package/dist/_node-chunks/{chunk-STAJKHK4.js → chunk-IATWEHFW.js} +6 -6
- package/dist/_node-chunks/{chunk-UOHA4DFT.js → chunk-ICZ5TGZI.js} +7 -7
- package/dist/_node-chunks/{chunk-IKRHCPOT.js → chunk-IYYRBJ6A.js} +7 -7
- package/dist/_node-chunks/{chunk-2Z56NWG5.js → chunk-J5J2U7AN.js} +6 -6
- package/dist/_node-chunks/{chunk-HXB67SGD.js → chunk-KIPVWN75.js} +9 -9
- package/dist/_node-chunks/{chunk-2S5WD2VH.js → chunk-KLPIPE5T.js} +6 -6
- package/dist/_node-chunks/{chunk-FHAN7RHG.js → chunk-M4WPWXBW.js} +14 -14
- package/dist/_node-chunks/{chunk-BUDQHZ5D.js → chunk-MXGCET2M.js} +7 -7
- package/dist/_node-chunks/{chunk-TYVA6SL4.js → chunk-NHSSJJPF.js} +11 -14
- package/dist/_node-chunks/{chunk-TIDNUT3A.js → chunk-P34EJWSD.js} +8 -8
- package/dist/_node-chunks/{chunk-WBGCWCQA.js → chunk-PUL3B5RN.js} +24 -24
- package/dist/_node-chunks/{chunk-P4XPFYIW.js → chunk-Q2H5WIGS.js} +6 -6
- package/dist/_node-chunks/{chunk-PYRQD2CS.js → chunk-QBGVQW7M.js} +7 -7
- package/dist/_node-chunks/{chunk-ZED4K5LY.js → chunk-QPGQ34P7.js} +6 -6
- package/dist/_node-chunks/{chunk-PRO2M64O.js → chunk-QUZFCJRW.js} +6 -6
- package/dist/_node-chunks/{chunk-P6XXBHPO.js → chunk-R4ZTPG4K.js} +6 -6
- package/dist/_node-chunks/{chunk-PDRDX572.js → chunk-RSQFAFCN.js} +7 -7
- package/dist/_node-chunks/{chunk-KDV7G32B.js → chunk-SLGVGTWJ.js} +7 -7
- package/dist/_node-chunks/{chunk-SUVVMCT6.js → chunk-TL6AUD3A.js} +10 -10
- package/dist/_node-chunks/{chunk-V3RTTXCO.js → chunk-VF7RHUTK.js} +7 -7
- package/dist/_node-chunks/{chunk-76IBOI3X.js → chunk-VPWNWE7A.js} +6 -6
- package/dist/_node-chunks/{chunk-5Z4K3DH7.js → chunk-WBGUDDIU.js} +6 -6
- package/dist/_node-chunks/{chunk-KNFYSQBW.js → chunk-WQRGS6PD.js} +7 -7
- package/dist/_node-chunks/{chunk-63QSQTFB.js → chunk-ZTBHFRMH.js} +6 -6
- package/dist/_node-chunks/{globby-BC7OEFNJ.js → globby-F6LJSRNJ.js} +9 -9
- package/dist/_node-chunks/{lib-4DJ62D6M.js → lib-JT7G47IT.js} +7 -7
- package/dist/_node-chunks/{monorepo-BPOA5UY7.js → monorepo-3QEFYWVB.js} +12 -15
- package/dist/_node-chunks/{monorepo-optimized-tests-relaxed-limits-no-story-deletion-C4RXZAFY.js → monorepo-optimized-tests-relaxed-limits-no-story-deletion-HHDHN2BS.js} +12 -15
- package/dist/_node-chunks/optimized-tests-2S4R5Q5O.js +22 -0
- package/dist/_node-chunks/p-limit-S2YSBBX7.js +20 -0
- package/dist/_node-chunks/{pattern-copy-play-PTPUDQKL.js → pattern-copy-play-EVAICHAP.js} +39 -49
- package/dist/_node-chunks/{relaxed-limits-EUE4RLY4.js → relaxed-limits-ERH2NUPN.js} +12 -15
- package/dist/_node-chunks/session-id-HXG6UMO3.js +23 -0
- package/dist/_node-chunks/{setup-Y4QDTYUL.js → setup-45PJJNHR.js} +9 -9
- package/dist/babel/index.js +10 -10
- package/dist/bin/core.js +25 -25
- package/dist/bin/dispatcher.js +12 -12
- package/dist/bin/loader.js +9 -9
- package/dist/cli/index.js +21 -21
- package/dist/common/index.js +25 -25
- package/dist/core-server/index.js +42 -42
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +33 -33
- package/dist/csf-tools/index.js +10 -10
- package/dist/manager/globals-runtime.js +1 -1
- package/dist/manager-api/index.js +1 -1
- package/dist/mocking-utils/index.js +9 -9
- package/dist/node-logger/index.js +9 -9
- package/dist/oxc-parser/index.js +11 -11
- package/dist/oxc-parser/worker.js +11 -11
- package/dist/server-errors.js +10 -10
- package/dist/shared/open-service/services/docgen/worker/docgen-worker.js +9 -9
- package/dist/telemetry/index.js +31 -31
- package/package.json +3 -3
- package/dist/_node-chunks/chunk-Z3OQNVFX.js +0 -85
- package/dist/_node-chunks/optimized-tests-B5XUIZIH.js +0 -22
- package/dist/_node-chunks/p-limit-2DMNZNTU.js +0 -20
- package/dist/_node-chunks/session-id-MEAXHBCW.js +0 -23
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_9zo2090uugq from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9zo2090uugq from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9zo2090uugq from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9zo2090uugq.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9zo2090uugq.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9zo2090uugq.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -13,27 +13,27 @@ import {
|
|
|
13
13
|
BROWSER_TARGETS,
|
|
14
14
|
NODE_TARGET,
|
|
15
15
|
SUPPORTED_FEATURES
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-3PJ2Q2VZ.js";
|
|
17
17
|
import {
|
|
18
18
|
require_build
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-VF7RHUTK.js";
|
|
20
20
|
import {
|
|
21
21
|
resolveModulePath,
|
|
22
22
|
resolvePackageDir
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-P34EJWSD.js";
|
|
24
|
+
import "./chunk-WBGUDDIU.js";
|
|
25
25
|
import {
|
|
26
26
|
join,
|
|
27
27
|
parse
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-AN5PKEA2.js";
|
|
29
29
|
import {
|
|
30
30
|
slash
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-7NFVFFX4.js";
|
|
32
32
|
import {
|
|
33
33
|
__commonJS,
|
|
34
34
|
__require,
|
|
35
35
|
__toESM
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-IATWEHFW.js";
|
|
37
37
|
|
|
38
38
|
// ../../node_modules/ejs/lib/utils.js
|
|
39
39
|
var require_utils = __commonJS({
|
|
@@ -1262,6 +1262,7 @@ var exports_default = {
|
|
|
1262
1262
|
"REVIEW_NAMESPACE",
|
|
1263
1263
|
"REVIEW_STATUS_TYPE_ID",
|
|
1264
1264
|
"SupportedBuilder",
|
|
1265
|
+
"SupportedFramework",
|
|
1265
1266
|
"SupportedLanguage",
|
|
1266
1267
|
"SupportedRenderer"
|
|
1267
1268
|
]
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_9zo2090uugq from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9zo2090uugq from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9zo2090uugq from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9zo2090uugq.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9zo2090uugq.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9zo2090uugq.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-IATWEHFW.js";
|
|
13
13
|
|
|
14
14
|
// ../../node_modules/camelcase/index.js
|
|
15
15
|
var UPPERCASE = /[\p{Lu}]/u, LOWERCASE = /[\p{Ll}]/u, LEADING_CAPITAL = /^[\p{Lu}](?![\p{Lu}])/u, SEPARATORS = /[_.\- ]+/, IDENTIFIER = /([\p{Alpha}\p{N}_]|$)/u, LEADING_SEPARATORS = new RegExp("^" + SEPARATORS.source), SEPARATORS_AND_IDENTIFIER = new RegExp(SEPARATORS.source + IDENTIFIER.source, "gu"), NUMBERS_AND_IDENTIFIER = new RegExp(String.raw`\d+` + IDENTIFIER.source, "gu"), preserveCamelCase = (string, toLowerCase, toUpperCase, preserveConsecutiveUppercase2) => {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_9zo2090uugq from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9zo2090uugq from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9zo2090uugq from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9zo2090uugq.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9zo2090uugq.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9zo2090uugq.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
|
nanoid
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-R4ZTPG4K.js";
|
|
15
15
|
|
|
16
16
|
// src/telemetry/session-id.ts
|
|
17
17
|
import { cache } from "storybook/internal/common";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_9zo2090uugq from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9zo2090uugq from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9zo2090uugq from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9zo2090uugq.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9zo2090uugq.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9zo2090uugq.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_9zo2090uugq from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9zo2090uugq from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9zo2090uugq from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9zo2090uugq.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9zo2090uugq.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9zo2090uugq.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
|
getSessionId
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-2UHKX4RM.js";
|
|
15
15
|
import {
|
|
16
16
|
detectAgent,
|
|
17
17
|
version
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-5B7VJ5CO.js";
|
|
19
19
|
import {
|
|
20
20
|
getMonorepoType
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-ZTBHFRMH.js";
|
|
22
22
|
import {
|
|
23
23
|
RN_STORYBOOK_DIR,
|
|
24
24
|
createFileSystemCache,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
execaCommand,
|
|
27
27
|
resolvePathInStorybookCache,
|
|
28
28
|
up
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-DXKWFBLE.js";
|
|
30
30
|
import {
|
|
31
31
|
DATA_FETCHING_PACKAGES,
|
|
32
32
|
I18N_PACKAGES,
|
|
@@ -37,26 +37,26 @@ import {
|
|
|
37
37
|
UI_LIBRARY_PACKAGES,
|
|
38
38
|
matchesPackagePattern,
|
|
39
39
|
set
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-ICZ5TGZI.js";
|
|
41
41
|
import {
|
|
42
42
|
getProjectRoot
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-M4WPWXBW.js";
|
|
44
44
|
import {
|
|
45
45
|
nanoid
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-R4ZTPG4K.js";
|
|
47
47
|
import {
|
|
48
48
|
globalSettings
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-KIPVWN75.js";
|
|
50
50
|
import {
|
|
51
51
|
resolvePackageDir
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-P34EJWSD.js";
|
|
53
53
|
import {
|
|
54
54
|
slash
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-7NFVFFX4.js";
|
|
56
56
|
import {
|
|
57
57
|
__commonJS,
|
|
58
58
|
__toESM
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-IATWEHFW.js";
|
|
60
60
|
|
|
61
61
|
// ../../node_modules/fetch-retry/index.js
|
|
62
62
|
var require_fetch_retry = __commonJS({
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_9zo2090uugq from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9zo2090uugq from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9zo2090uugq from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9zo2090uugq.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9zo2090uugq.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9zo2090uugq.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
|
|
|
13
13
|
// package.json
|
|
14
|
-
var version = "10.5.
|
|
14
|
+
var version = "10.5.6";
|
|
15
15
|
|
|
16
16
|
// ../../node_modules/std-env/dist/index.mjs
|
|
17
17
|
var e = globalThis.process?.env || /* @__PURE__ */ Object.create(null), t = globalThis.process || { env: e }, n = t !== void 0 && t.env && t.env.NODE_ENV || void 0, r = [["claude", ["CLAUDECODE", "CLAUDE_CODE"]], ["replit", ["REPL_ID"]], ["gemini", ["GEMINI_CLI"]], ["codex", ["CODEX_SANDBOX", "CODEX_THREAD_ID"]], ["opencode", ["OPENCODE"]], ["pi", [i("PATH", /\.pi[\\/]agent/)]], ["auggie", ["AUGMENT_AGENT"]], ["goose", ["GOOSE_PROVIDER"]], ["devin", [i("EDITOR", /devin/)]], ["cursor", ["CURSOR_AGENT"]], ["kiro", [i("TERM_PROGRAM", /kiro/)]]];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_9zo2090uugq from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9zo2090uugq from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9zo2090uugq from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9zo2090uugq.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9zo2090uugq.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9zo2090uugq.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_9zo2090uugq from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9zo2090uugq from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9zo2090uugq from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9zo2090uugq.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9zo2090uugq.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9zo2090uugq.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_9zo2090uugq from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9zo2090uugq from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9zo2090uugq from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9zo2090uugq.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9zo2090uugq.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9zo2090uugq.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
|
|
13
|
+
// src/common/versions.ts
|
|
14
|
+
var versions_default = {
|
|
15
|
+
"@storybook/addon-a11y": "10.5.6",
|
|
16
|
+
"@storybook/addon-docs": "10.5.6",
|
|
17
|
+
"@storybook/addon-links": "10.5.6",
|
|
18
|
+
"@storybook/addon-onboarding": "10.5.6",
|
|
19
|
+
"storybook-addon-pseudo-states": "10.5.6",
|
|
20
|
+
"@storybook/addon-themes": "10.5.6",
|
|
21
|
+
"@storybook/addon-vitest": "10.5.6",
|
|
22
|
+
"@storybook/builder-vite": "10.5.6",
|
|
23
|
+
"@storybook/builder-webpack5": "10.5.6",
|
|
24
|
+
storybook: "10.5.6",
|
|
25
|
+
"@storybook/angular": "10.5.6",
|
|
26
|
+
"@storybook/angular-vite": "10.5.6",
|
|
27
|
+
"@storybook/ember": "10.5.6",
|
|
28
|
+
"@storybook/html-vite": "10.5.6",
|
|
29
|
+
"@storybook/nextjs": "10.5.6",
|
|
30
|
+
"@storybook/nextjs-vite": "10.5.6",
|
|
31
|
+
"@storybook/preact-vite": "10.5.6",
|
|
32
|
+
"@storybook/react-native-web-vite": "10.5.6",
|
|
33
|
+
"@storybook/react-vite": "10.5.6",
|
|
34
|
+
"@storybook/react-webpack5": "10.5.6",
|
|
35
|
+
"@storybook/server-webpack5": "10.5.6",
|
|
36
|
+
"@storybook/svelte-vite": "10.5.6",
|
|
37
|
+
"@storybook/sveltekit": "10.5.6",
|
|
38
|
+
"@storybook/tanstack-react": "10.5.6",
|
|
39
|
+
"@storybook/vue3-vite": "10.5.6",
|
|
40
|
+
"@storybook/web-components-vite": "10.5.6",
|
|
41
|
+
sb: "10.5.6",
|
|
42
|
+
"@storybook/cli": "10.5.6",
|
|
43
|
+
"@storybook/codemod": "10.5.6",
|
|
44
|
+
"@storybook/core-webpack": "10.5.6",
|
|
45
|
+
"create-storybook": "10.5.6",
|
|
46
|
+
"@storybook/csf-plugin": "10.5.6",
|
|
47
|
+
"eslint-plugin-storybook": "10.5.6",
|
|
48
|
+
"@storybook/react-dom-shim": "10.5.6",
|
|
49
|
+
"@storybook/preset-create-react-app": "10.5.6",
|
|
50
|
+
"@storybook/preset-react-webpack": "10.5.6",
|
|
51
|
+
"@storybook/preset-server-webpack": "10.5.6",
|
|
52
|
+
"@storybook/html": "10.5.6",
|
|
53
|
+
"@storybook/preact": "10.5.6",
|
|
54
|
+
"@storybook/react": "10.5.6",
|
|
55
|
+
"@storybook/server": "10.5.6",
|
|
56
|
+
"@storybook/svelte": "10.5.6",
|
|
57
|
+
"@storybook/vue3": "10.5.6",
|
|
58
|
+
"@storybook/web-components": "10.5.6"
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
// src/common/node-version.ts
|
|
62
|
+
import { satisfies } from "semver";
|
|
63
|
+
var MIN_SUPPORTED_NODE_VERSIONS = [
|
|
64
|
+
{ major: 20, minor: 19, patch: 0 },
|
|
65
|
+
{ major: 22, minor: 12, patch: 0 }
|
|
66
|
+
];
|
|
67
|
+
function formatMinVersion(v) {
|
|
68
|
+
return v.minor === 0 && v.patch === 0 ? `${v.major}+` : v.patch === 0 ? `${v.major}.${v.minor}+` : `${v.major}.${v.minor}.${v.patch}+`;
|
|
69
|
+
}
|
|
70
|
+
var MIN_SUPPORTED_NODE_DESCRIPTION = MIN_SUPPORTED_NODE_VERSIONS.map(formatMinVersion).join(" or ");
|
|
71
|
+
function isNodeVersionSupported(major, minor, patch) {
|
|
72
|
+
let sortedMinimums = [...MIN_SUPPORTED_NODE_VERSIONS].sort((a, b) => a.major - b.major), supportedRange = sortedMinimums.map((min, index) => {
|
|
73
|
+
let next = sortedMinimums[index + 1], lowerBound = `>=${min.major}.${min.minor}.${min.patch}`;
|
|
74
|
+
return next ? `${lowerBound} <${next.major}.0.0` : lowerBound;
|
|
75
|
+
}).join(" || ");
|
|
76
|
+
return satisfies(`${major}.${minor}.${patch}`, supportedRange);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export {
|
|
80
|
+
versions_default,
|
|
81
|
+
MIN_SUPPORTED_NODE_VERSIONS,
|
|
82
|
+
formatMinVersion,
|
|
83
|
+
MIN_SUPPORTED_NODE_DESCRIPTION,
|
|
84
|
+
isNodeVersionSupported
|
|
85
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_9zo2090uugq from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9zo2090uugq from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9zo2090uugq from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9zo2090uugq.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9zo2090uugq.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9zo2090uugq.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -12,7 +12,7 @@ var require = CJS_COMPAT_NODE_MODULE_dja01fqlvrt.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
__commonJS,
|
|
14
14
|
__require
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-IATWEHFW.js";
|
|
16
16
|
|
|
17
17
|
// ../../node_modules/ms/index.js
|
|
18
18
|
var require_ms = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_9zo2090uugq from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9zo2090uugq from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9zo2090uugq from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9zo2090uugq.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9zo2090uugq.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9zo2090uugq.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_9zo2090uugq from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9zo2090uugq from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9zo2090uugq from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9zo2090uugq.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9zo2090uugq.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9zo2090uugq.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
|
require_dist
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-RSQFAFCN.js";
|
|
15
15
|
import {
|
|
16
16
|
require_picocolors
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-SLGVGTWJ.js";
|
|
18
18
|
import {
|
|
19
19
|
__toESM
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-IATWEHFW.js";
|
|
21
21
|
|
|
22
22
|
// src/server-errors.ts
|
|
23
23
|
var import_picocolors = __toESM(require_picocolors(), 1), import_ts_dedent = __toESM(require_dist(), 1);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_9zo2090uugq from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9zo2090uugq from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9zo2090uugq from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9zo2090uugq.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9zo2090uugq.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9zo2090uugq.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_9zo2090uugq from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9zo2090uugq from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9zo2090uugq from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9zo2090uugq.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9zo2090uugq.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9zo2090uugq.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
|
getMonorepoType
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ZTBHFRMH.js";
|
|
15
15
|
import {
|
|
16
16
|
require_dist
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-RSQFAFCN.js";
|
|
18
18
|
import {
|
|
19
19
|
__toESM
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-IATWEHFW.js";
|
|
21
21
|
|
|
22
22
|
// src/cli/ai/utils/ext.ts
|
|
23
23
|
function ext(language, jsx) {
|
|
@@ -56,17 +56,41 @@ import { getMswInitCommand, getVitestStorybookRunCommand } from "storybook/inter
|
|
|
56
56
|
// src/cli/ai/setup-prompts/partials/examples.ts
|
|
57
57
|
var import_ts_dedent2 = __toESM(require_dist(), 1);
|
|
58
58
|
function getPreviewExample(projectInfo) {
|
|
59
|
-
let { configDir, language, framework, rendererPackage } = projectInfo, tsx = ext(language, !0), typeImport = framework || rendererPackage || "@storybook/react-vite";
|
|
60
|
-
return
|
|
59
|
+
let { configDir, language, framework, rendererPackage, hasCsfFactoryPreview } = projectInfo, tsx = ext(language, !0), typeImport = framework || rendererPackage || "@storybook/react-vite";
|
|
60
|
+
return hasCsfFactoryPreview ? import_ts_dedent2.dedent`
|
|
61
61
|
\`\`\`${tsx}
|
|
62
62
|
// ${configDir}/preview.${tsx}
|
|
63
|
+
import { definePreview } from '${typeImport}';
|
|
63
64
|
import '../src/index.css';
|
|
64
65
|
import MockDate from 'mockdate';
|
|
65
|
-
import
|
|
66
|
+
import addonMsw from 'msw-storybook-addon';
|
|
66
67
|
import { SessionProvider } from '../src/contexts/SessionContext';
|
|
67
68
|
import { mswHandlers } from './msw-handlers';
|
|
68
69
|
|
|
69
|
-
|
|
70
|
+
export default definePreview({
|
|
71
|
+
addons: [addonMsw()],
|
|
72
|
+
decorators: [
|
|
73
|
+
(Story) => (
|
|
74
|
+
<SessionProvider>
|
|
75
|
+
<Story />
|
|
76
|
+
</SessionProvider>
|
|
77
|
+
),
|
|
78
|
+
],
|
|
79
|
+
async beforeEach({ msw }) {
|
|
80
|
+
msw.use(...mswHandlers);
|
|
81
|
+
localStorage.setItem('theme', 'dark');
|
|
82
|
+
MockDate.set('2024-04-01T12:00:00Z');
|
|
83
|
+
},
|
|
84
|
+
});
|
|
85
|
+
\`\`\`
|
|
86
|
+
` : language === "js" ? import_ts_dedent2.dedent`
|
|
87
|
+
\`\`\`${tsx}
|
|
88
|
+
// ${configDir}/preview.${tsx}
|
|
89
|
+
import '../src/index.css';
|
|
90
|
+
import MockDate from 'mockdate';
|
|
91
|
+
import { mswLoader } from 'msw-storybook-addon/csf3';
|
|
92
|
+
import { SessionProvider } from '../src/contexts/SessionContext';
|
|
93
|
+
import { mswHandlers } from './msw-handlers';
|
|
70
94
|
|
|
71
95
|
const preview = {
|
|
72
96
|
decorators: [
|
|
@@ -76,9 +100,9 @@ function getPreviewExample(projectInfo) {
|
|
|
76
100
|
</SessionProvider>
|
|
77
101
|
),
|
|
78
102
|
],
|
|
79
|
-
loaders: [mswLoader],
|
|
80
|
-
|
|
81
|
-
|
|
103
|
+
loaders: [mswLoader()],
|
|
104
|
+
async beforeEach({ msw }) {
|
|
105
|
+
msw.use(...mswHandlers);
|
|
82
106
|
localStorage.setItem('theme', 'dark');
|
|
83
107
|
MockDate.set('2024-04-01T12:00:00Z');
|
|
84
108
|
},
|
|
@@ -92,12 +116,10 @@ function getPreviewExample(projectInfo) {
|
|
|
92
116
|
import type { Preview } from '${typeImport}';
|
|
93
117
|
import '../src/index.css';
|
|
94
118
|
import MockDate from 'mockdate';
|
|
95
|
-
import {
|
|
119
|
+
import { mswLoader } from 'msw-storybook-addon/csf3';
|
|
96
120
|
import { SessionProvider } from '../src/contexts/SessionContext';
|
|
97
121
|
import { mswHandlers } from './msw-handlers';
|
|
98
122
|
|
|
99
|
-
initialize({ onUnhandledRequest: 'bypass' });
|
|
100
|
-
|
|
101
123
|
const preview: Preview = {
|
|
102
124
|
decorators: [
|
|
103
125
|
(Story) => (
|
|
@@ -106,9 +128,9 @@ function getPreviewExample(projectInfo) {
|
|
|
106
128
|
</SessionProvider>
|
|
107
129
|
),
|
|
108
130
|
],
|
|
109
|
-
loaders: [mswLoader],
|
|
110
|
-
|
|
111
|
-
|
|
131
|
+
loaders: [mswLoader()],
|
|
132
|
+
async beforeEach({ msw }) {
|
|
133
|
+
msw.use(...mswHandlers);
|
|
112
134
|
localStorage.setItem('theme', 'dark');
|
|
113
135
|
MockDate.set('2024-04-01T12:00:00Z');
|
|
114
136
|
},
|
|
@@ -354,16 +376,21 @@ function buildPortalStep(projectInfo, { configDir, tsx }) {
|
|
|
354
376
|
};
|
|
355
377
|
}
|
|
356
378
|
function mswStep(projectInfo, { configDir, mswInstall, packageManager, ts }) {
|
|
357
|
-
let mswInit = getMswInitCommand(packageManager)
|
|
379
|
+
let mswInit = getMswInitCommand(packageManager), mswAddonAdd = packageManager.getPackageCommand([
|
|
380
|
+
"storybook",
|
|
381
|
+
"add",
|
|
382
|
+
"msw-storybook-addon@3"
|
|
383
|
+
]), csfNextNote = projectInfo.hasCsfFactoryPreview ? "\n\n If `storybook add` injects `import * as mswStorybookAddon from 'msw-storybook-addon/preview'` and a `mswStorybookAddon` entry into your `definePreview` `addons`, remove both \u2014 that form breaks TypeScript inference for the entire preview. Register the addon with `addonMsw()` as shown below instead.\n" : "";
|
|
358
384
|
return {
|
|
359
385
|
title: "MSW handlers (only what stories will hit)",
|
|
360
|
-
body: `Use \`msw-storybook-addon\`.
|
|
386
|
+
body: `Use \`msw-storybook-addon\`. Register it with \`storybook add\` (which also adds it to the \`addons\` field of \`${configDir}/main.${ts}\`), then install its peer dependencies and generate the worker script:
|
|
361
387
|
|
|
362
388
|
\`\`\`bash
|
|
389
|
+
${mswAddonAdd}
|
|
363
390
|
${mswInstall}
|
|
364
391
|
${mswInit}
|
|
365
392
|
\`\`\`
|
|
366
|
-
|
|
393
|
+
${csfNextNote}
|
|
367
394
|
Make sure \`${configDir}/main.${ts}\` serves \`./public\`:
|
|
368
395
|
|
|
369
396
|
${getMainConfigExample(projectInfo)}
|
|
@@ -374,13 +401,11 @@ function mswStep(projectInfo, { configDir, mswInstall, packageManager, ts }) {
|
|
|
374
401
|
// ${configDir}/msw-handlers.${ts}
|
|
375
402
|
import { http, HttpResponse } from 'msw';
|
|
376
403
|
|
|
377
|
-
export const mswHandlers =
|
|
378
|
-
products
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
],
|
|
383
|
-
};
|
|
404
|
+
export const mswHandlers = [
|
|
405
|
+
http.get('https://api.example.com/products', () =>
|
|
406
|
+
HttpResponse.json({ items: [{ id: 'p1', name: 'Example', price: 42 }] })
|
|
407
|
+
),
|
|
408
|
+
];
|
|
384
409
|
\`\`\`
|
|
385
410
|
`
|
|
386
411
|
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_9zo2090uugq from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9zo2090uugq from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9zo2090uugq from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9zo2090uugq.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9zo2090uugq.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9zo2090uugq.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
|
Tag
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-5VUPW2CE.js";
|
|
15
15
|
import {
|
|
16
16
|
require_dist
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-RSQFAFCN.js";
|
|
18
18
|
import {
|
|
19
19
|
__toESM
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-IATWEHFW.js";
|
|
21
21
|
|
|
22
22
|
// src/csf-tools/CsfFile.ts
|
|
23
23
|
var import_ts_dedent = __toESM(require_dist(), 1);
|