storybook 10.2.0-alpha.1 → 10.2.0-alpha.10
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/_browser-chunks/{Color-TNPFN3FC.js → Color-XESOIGZP.js} +9 -568
- package/dist/_browser-chunks/{WithTooltip-IO6J4KBT.js → WithTooltip-65CFNBJE.js} +70 -70
- package/dist/_browser-chunks/{chunk-45UGUKRX.js → chunk-242VQQM5.js} +1 -1
- package/dist/_browser-chunks/{chunk-JP7NCOJX.js → chunk-3LY4VQVK.js} +1 -1
- package/dist/_browser-chunks/{chunk-VYJQ7RU5.js → chunk-G4M6MXF4.js} +31 -27
- package/dist/_browser-chunks/{chunk-BRX2HXH7.js → chunk-IH6QJILI.js} +1 -1
- package/dist/_browser-chunks/{chunk-AS2HQEYC.js → chunk-IWQGIXJS.js} +1 -1
- package/dist/_browser-chunks/{chunk-3IAH5M2U.js → chunk-IYCKG66Y.js} +5 -5
- package/dist/_browser-chunks/{chunk-UD6FQLAF.js → chunk-JK6U3MQW.js} +3 -3
- package/dist/_browser-chunks/{chunk-FQ7SLVLR.js → chunk-JVRDBUUP.js} +20 -1
- package/dist/_browser-chunks/{chunk-GFLS4VP3.js → chunk-LCHBOIHN.js} +6 -6
- package/dist/_browser-chunks/{chunk-CHUV5WSW.js → chunk-LE2LTDW3.js} +1 -1
- package/dist/_browser-chunks/{chunk-IPA5A322.js → chunk-MEXTPDJG.js} +1 -1
- package/dist/_browser-chunks/{chunk-XJNX76GA.js → chunk-NQJGOFZV.js} +4 -4
- package/dist/_browser-chunks/chunk-NZMVUW5T.js +7 -0
- package/dist/_browser-chunks/{chunk-2XZMBGTA.js → chunk-POMIZRJL.js} +3 -3
- package/dist/_browser-chunks/{chunk-RP5RXKFU.js → chunk-Q5RYDXT3.js} +38 -30
- package/dist/_browser-chunks/{chunk-SS2NHR7W.js → chunk-RBABWY22.js} +18 -18
- package/dist/_browser-chunks/{chunk-AXG2BOBL.js → chunk-S6TK43XQ.js} +10 -10
- package/dist/_browser-chunks/{chunk-AIOS4NGK.js → chunk-SWJP5COI.js} +11 -11
- package/dist/_browser-chunks/{chunk-H6XK3RSC.js → chunk-UAYGIC3L.js} +6 -6
- package/dist/_browser-chunks/{chunk-YKE5S47A.js → chunk-V2VKKSMQ.js} +18 -18
- package/dist/_browser-chunks/{chunk-GFY5R5EY.js → chunk-V5NV5R37.js} +1 -1
- package/dist/_browser-chunks/chunk-VIJ7SQRO.js +568 -0
- package/dist/_browser-chunks/{chunk-3OXGAGBE.js → chunk-XLJZ7AOP.js} +14 -14
- package/dist/_browser-chunks/{chunk-P4F4UVXX.js → chunk-YKABRMAI.js} +15 -15
- package/dist/_browser-chunks/{chunk-WJYERY3R.js → chunk-ZCFV7BZB.js} +2 -2
- package/dist/_browser-chunks/{formatter-QJ4M4OGQ.js → formatter-EIJCOSYU.js} +2 -2
- package/dist/_browser-chunks/{syntaxhighlighter-IQDEPFLK.js → syntaxhighlighter-ED5Y7EFY.js} +119 -119
- package/dist/_node-chunks/{builder-manager-LXL5N6M5.js → builder-manager-IL56SHZF.js} +23 -22
- package/dist/_node-chunks/camelcase-P3NIWBZX.js +62 -0
- package/dist/_node-chunks/{chunk-SR5ZYD7K.js → chunk-BP66TAYC.js} +8 -8
- package/dist/_node-chunks/{chunk-R3WYNAT5.js → chunk-D3YJHXPC.js} +6 -6
- package/dist/_node-chunks/{chunk-5GNBLJKS.js → chunk-E2KSZELU.js} +8 -8
- package/dist/_node-chunks/{chunk-KXDU466E.js → chunk-EKU7ASGO.js} +31 -31
- package/dist/_node-chunks/chunk-GLYH3TSV.js +61 -0
- package/dist/_node-chunks/{chunk-GOOBGRAV.js → chunk-JXL37VS7.js} +34 -24
- package/dist/_node-chunks/{chunk-4BQMSZKI.js → chunk-KH2A547Y.js} +165 -191
- package/dist/_node-chunks/{chunk-77APSTTM.js → chunk-KP3IIE5P.js} +8 -9
- package/dist/_node-chunks/{chunk-5NWCBUGD.js → chunk-LZ5NNY6S.js} +6 -6
- package/dist/_node-chunks/{chunk-AJUO2ZU3.js → chunk-MLCI5FPI.js} +9 -9
- package/dist/_node-chunks/{chunk-CLNMK7MP.js → chunk-OVKHHS4W.js} +5434 -1625
- package/dist/_node-chunks/{chunk-ET4VMMZG.js → chunk-OZHIDIRL.js} +77 -16
- package/dist/_node-chunks/{chunk-TX77W2KY.js → chunk-POAHHCVK.js} +597 -593
- package/dist/_node-chunks/chunk-Q6PDB4Y6.js +126 -0
- package/dist/_node-chunks/{chunk-VFTNRF5X.js → chunk-QF3YWFYM.js} +17 -17
- package/dist/_node-chunks/{chunk-KMTK5W6O.js → chunk-RGJIQDLW.js} +48 -26
- package/dist/_node-chunks/{chunk-FTR6MHOX.js → chunk-SME7252C.js} +59 -147
- package/dist/_node-chunks/{chunk-LEDV47V2.js → chunk-TAETXAN6.js} +15 -15
- package/dist/_node-chunks/chunk-TPSZ4QDT.js +20 -0
- package/dist/_node-chunks/{chunk-PGFQADZC.js → chunk-WULYWBBT.js} +7 -7
- package/dist/_node-chunks/{chunk-JYMZJCZ7.js → chunk-XBDIQU4P.js} +62 -124
- package/dist/_node-chunks/chunk-XXOA6ULE.js +18 -0
- package/dist/_node-chunks/{chunk-ZI2RAI3I.js → chunk-YCQRVBE4.js} +26 -7
- package/dist/_node-chunks/{chunk-TP6ICLTL.js → chunk-YELE6V4D.js} +6 -6
- package/dist/_node-chunks/{chunk-GYZQMMTN.js → chunk-Z2CJCEHN.js} +9 -9
- package/dist/_node-chunks/{chunk-F7377GT2.js → chunk-Z2ETF7EI.js} +111 -38
- package/dist/_node-chunks/chunk-ZHSAQXJF.js +23 -0
- package/dist/_node-chunks/{dist-HGQ5R6JU.js → dist-5MXCD6KF.js} +10 -10
- package/dist/_node-chunks/{globby-5XJTXKUJ.js → globby-322GM5CY.js} +155 -164
- package/dist/_node-chunks/{lib-XNLTS2RI.js → lib-IXZT5UQX.js} +16 -16
- package/dist/_node-chunks/{mdx-N42X6CFJ-7WF3QWVO.js → mdx-N42X6CFJ-DBPHTSPN.js} +11 -11
- package/dist/_node-chunks/{p-limit-RBKYTJKF.js → p-limit-TLN4WCPA.js} +19 -15
- package/dist/babel/index.js +10 -10
- package/dist/bin/core.js +40 -34
- package/dist/bin/dispatcher.js +11 -11
- package/dist/bin/loader.js +14 -11
- package/dist/channels/index.js +3 -3
- package/dist/cli/index.d.ts +1330 -250
- package/dist/cli/index.js +18 -18
- package/dist/common/index.d.ts +1344 -289
- package/dist/common/index.js +22 -22
- package/dist/components/index.d.ts +9 -2
- package/dist/components/index.js +339 -317
- package/dist/core-events/index.d.ts +4 -2
- package/dist/core-events/index.js +4 -2
- package/dist/core-server/index.d.ts +71 -2
- package/dist/core-server/index.js +3381 -3529
- package/dist/core-server/presets/common-manager.css +2 -2
- package/dist/core-server/presets/common-manager.js +93 -65
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +86 -118
- package/dist/csf/index.d.ts +41 -11
- package/dist/csf/index.js +46 -39
- package/dist/csf-tools/index.js +9 -9
- package/dist/docs-tools/index.js +5 -5
- package/dist/instrumenter/index.js +1 -1
- package/dist/manager/globals-runtime.js +9402 -7204
- package/dist/manager/runtime.js +186 -143
- package/dist/manager-api/index.js +34 -26
- package/dist/manager-errors.d.ts +24 -0
- package/dist/manager-errors.js +2 -2
- package/dist/mocking-utils/index.js +14 -14
- package/dist/node-logger/index.d.ts +1456 -111
- package/dist/node-logger/index.js +9 -9
- package/dist/preview/runtime.js +4608 -2436
- package/dist/preview-api/index.js +12 -12
- package/dist/preview-errors.d.ts +24 -0
- package/dist/preview-errors.js +3 -3
- package/dist/router/index.js +11 -11
- package/dist/server-errors.d.ts +59 -3
- package/dist/server-errors.js +22 -11
- package/dist/telemetry/index.d.ts +10 -3
- package/dist/telemetry/index.js +27 -25
- package/dist/test/index.js +3237 -1653
- package/dist/theming/create.js +3 -3
- package/dist/theming/index.d.ts +5 -5
- package/dist/theming/index.js +38 -38
- package/dist/types/index.d.ts +12 -6
- package/dist/viewport/index.d.ts +3 -3
- package/package.json +27 -33
- package/dist/_browser-chunks/chunk-EZSQOHRI.js +0 -18
- package/dist/_browser-chunks/chunk-QKODTO7K.js +0 -7
- package/dist/_node-chunks/camelcase-64II7H4U.js +0 -37
- package/dist/_node-chunks/chunk-4EZYJUAC.js +0 -70
- package/dist/_node-chunks/chunk-COQ27OZ3.js +0 -61
- package/dist/_node-chunks/chunk-MC2R4DSD.js +0 -20
- package/dist/_node-chunks/chunk-NEENMS4J.js +0 -18
- package/dist/_node-chunks/chunk-VR5LMO3F.js +0 -72
- package/dist/_node-chunks/chunk-XEPVDCRL.js +0 -23
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_1qalasm8z9n from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_1qalasm8z9n from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_1qalasm8z9n from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_1qalasm8z9n.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_1qalasm8z9n.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_1qalasm8z9n.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
|
|
13
|
+
// ../../node_modules/tiny-invariant/dist/esm/tiny-invariant.js
|
|
14
|
+
var isProduction = process.env.NODE_ENV === "production", prefix = "Invariant failed";
|
|
15
|
+
function invariant(condition, message) {
|
|
16
|
+
if (!condition) {
|
|
17
|
+
if (isProduction)
|
|
18
|
+
throw new Error(prefix);
|
|
19
|
+
var provided = typeof message == "function" ? message() : message, value = provided ? "".concat(prefix, ": ").concat(provided) : prefix;
|
|
20
|
+
throw new Error(value);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// ../../node_modules/empathic/resolve.mjs
|
|
25
|
+
import { createRequire } from "node:module";
|
|
26
|
+
import { isAbsolute, join, resolve } from "node:path";
|
|
27
|
+
import { fileURLToPath } from "node:url";
|
|
28
|
+
function absolute(input, root) {
|
|
29
|
+
return isAbsolute(input) ? input : resolve(root || ".", input);
|
|
30
|
+
}
|
|
31
|
+
function from(root, ident, silent) {
|
|
32
|
+
try {
|
|
33
|
+
let r = root instanceof URL || root.startsWith("file://") ? join(fileURLToPath(root), "noop.js") : join(absolute(root), "noop.js");
|
|
34
|
+
return createRequire(r).resolve(ident);
|
|
35
|
+
} catch (err) {
|
|
36
|
+
if (!silent) throw err;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// ../../node_modules/empathic/walk.mjs
|
|
41
|
+
import { dirname } from "node:path";
|
|
42
|
+
function up(base, options) {
|
|
43
|
+
let { last, cwd } = options || {}, tmp = absolute(base, cwd), root = absolute(last || "/", cwd), prev, arr = [];
|
|
44
|
+
for (; prev !== root && (arr.push(tmp), tmp = dirname(prev = tmp), tmp !== prev); )
|
|
45
|
+
;
|
|
46
|
+
return arr;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// ../../node_modules/empathic/find.mjs
|
|
50
|
+
import { join as join2 } from "node:path";
|
|
51
|
+
import { existsSync, statSync } from "node:fs";
|
|
52
|
+
function up2(name, options) {
|
|
53
|
+
let dir, tmp, start = options && options.cwd || "";
|
|
54
|
+
for (dir of up(start, options))
|
|
55
|
+
if (tmp = join2(dir, name), existsSync(tmp)) return tmp;
|
|
56
|
+
}
|
|
57
|
+
function any(names, options) {
|
|
58
|
+
let dir, start = options && options.cwd || "", j = 0, len = names.length, tmp;
|
|
59
|
+
for (dir of up(start, options))
|
|
60
|
+
for (j = 0; j < len; j++)
|
|
61
|
+
if (tmp = join2(dir, names[j]), existsSync(tmp)) return tmp;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// ../../node_modules/detect-indent/index.js
|
|
65
|
+
var INDENT_REGEX = /^(?:( )+|\t+)/, INDENT_TYPE_SPACE = "space";
|
|
66
|
+
function makeIndentsMap(string, ignoreSingleSpaces) {
|
|
67
|
+
let indents = /* @__PURE__ */ new Map(), previousSize = 0, previousIndentType, key;
|
|
68
|
+
for (let line of string.split(/\n/g)) {
|
|
69
|
+
if (!line)
|
|
70
|
+
continue;
|
|
71
|
+
let indent, indentType, use, weight, entry, matches = line.match(INDENT_REGEX);
|
|
72
|
+
if (matches === null)
|
|
73
|
+
previousSize = 0, previousIndentType = "";
|
|
74
|
+
else {
|
|
75
|
+
if (indent = matches[0].length, indentType = matches[1] ? INDENT_TYPE_SPACE : "tab", ignoreSingleSpaces && indentType === INDENT_TYPE_SPACE && indent === 1)
|
|
76
|
+
continue;
|
|
77
|
+
indentType !== previousIndentType && (previousSize = 0), previousIndentType = indentType, use = 1, weight = 0;
|
|
78
|
+
let indentDifference = indent - previousSize;
|
|
79
|
+
if (previousSize = indent, indentDifference === 0)
|
|
80
|
+
use = 0, weight = 1;
|
|
81
|
+
else {
|
|
82
|
+
let absoluteIndentDifference = indentDifference > 0 ? indentDifference : -indentDifference;
|
|
83
|
+
key = encodeIndentsKey(indentType, absoluteIndentDifference);
|
|
84
|
+
}
|
|
85
|
+
entry = indents.get(key), entry = entry === void 0 ? [1, 0] : [entry[0] + use, entry[1] + weight], indents.set(key, entry);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
return indents;
|
|
89
|
+
}
|
|
90
|
+
function encodeIndentsKey(indentType, indentAmount) {
|
|
91
|
+
return (indentType === INDENT_TYPE_SPACE ? "s" : "t") + String(indentAmount);
|
|
92
|
+
}
|
|
93
|
+
function decodeIndentsKey(indentsKey) {
|
|
94
|
+
let type = indentsKey[0] === "s" ? INDENT_TYPE_SPACE : "tab", amount = Number(indentsKey.slice(1));
|
|
95
|
+
return { type, amount };
|
|
96
|
+
}
|
|
97
|
+
function getMostUsedKey(indents) {
|
|
98
|
+
let result, maxUsed = 0, maxWeight = 0;
|
|
99
|
+
for (let [key, [usedCount, weight]] of indents)
|
|
100
|
+
(usedCount > maxUsed || usedCount === maxUsed && weight > maxWeight) && (maxUsed = usedCount, maxWeight = weight, result = key);
|
|
101
|
+
return result;
|
|
102
|
+
}
|
|
103
|
+
function makeIndentString(type, amount) {
|
|
104
|
+
return (type === INDENT_TYPE_SPACE ? " " : " ").repeat(amount);
|
|
105
|
+
}
|
|
106
|
+
function detectIndent(string) {
|
|
107
|
+
if (typeof string != "string")
|
|
108
|
+
throw new TypeError("Expected a string");
|
|
109
|
+
let indents = makeIndentsMap(string, !0);
|
|
110
|
+
indents.size === 0 && (indents = makeIndentsMap(string, !1));
|
|
111
|
+
let keyOfMostUsedIndent = getMostUsedKey(indents), type, amount = 0, indent = "";
|
|
112
|
+
return keyOfMostUsedIndent !== void 0 && ({ type, amount } = decodeIndentsKey(keyOfMostUsedIndent), indent = makeIndentString(type, amount)), {
|
|
113
|
+
amount,
|
|
114
|
+
type,
|
|
115
|
+
indent
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export {
|
|
120
|
+
invariant,
|
|
121
|
+
from,
|
|
122
|
+
up,
|
|
123
|
+
up2,
|
|
124
|
+
any,
|
|
125
|
+
detectIndent
|
|
126
|
+
};
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_1qalasm8z9n from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_1qalasm8z9n from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_1qalasm8z9n from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_1qalasm8z9n.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_1qalasm8z9n.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_1qalasm8z9n.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
|
invariant
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-YELE6V4D.js";
|
|
15
15
|
import {
|
|
16
16
|
require_dist
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-MLCI5FPI.js";
|
|
18
18
|
import {
|
|
19
19
|
__export,
|
|
20
20
|
__toESM
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-LZ5NNY6S.js";
|
|
22
22
|
|
|
23
23
|
// src/cli/globalSettings.ts
|
|
24
24
|
var import_ts_dedent = __toESM(require_dist(), 1);
|
|
@@ -26,7 +26,7 @@ import fs from "node:fs/promises";
|
|
|
26
26
|
import { homedir } from "node:os";
|
|
27
27
|
import { dirname, join } from "node:path";
|
|
28
28
|
|
|
29
|
-
//
|
|
29
|
+
// ../../node_modules/zod/v3/external.js
|
|
30
30
|
var external_exports = {};
|
|
31
31
|
__export(external_exports, {
|
|
32
32
|
BRAND: () => BRAND,
|
|
@@ -138,7 +138,7 @@ __export(external_exports, {
|
|
|
138
138
|
void: () => voidType
|
|
139
139
|
});
|
|
140
140
|
|
|
141
|
-
//
|
|
141
|
+
// ../../node_modules/zod/v3/helpers/util.js
|
|
142
142
|
var util;
|
|
143
143
|
(function(util2) {
|
|
144
144
|
util2.assertEqual = (_) => {
|
|
@@ -228,7 +228,7 @@ var ZodParsedType = util.arrayToEnum([
|
|
|
228
228
|
}
|
|
229
229
|
};
|
|
230
230
|
|
|
231
|
-
//
|
|
231
|
+
// ../../node_modules/zod/v3/ZodError.js
|
|
232
232
|
var ZodIssueCode = util.arrayToEnum([
|
|
233
233
|
"invalid_type",
|
|
234
234
|
"invalid_literal",
|
|
@@ -311,7 +311,7 @@ var ZodIssueCode = util.arrayToEnum([
|
|
|
311
311
|
};
|
|
312
312
|
ZodError.create = (issues) => new ZodError(issues);
|
|
313
313
|
|
|
314
|
-
//
|
|
314
|
+
// ../../node_modules/zod/v3/locales/en.js
|
|
315
315
|
var errorMap = (issue, _ctx) => {
|
|
316
316
|
let message;
|
|
317
317
|
switch (issue.code) {
|
|
@@ -369,7 +369,7 @@ var errorMap = (issue, _ctx) => {
|
|
|
369
369
|
return { message };
|
|
370
370
|
}, en_default = errorMap;
|
|
371
371
|
|
|
372
|
-
//
|
|
372
|
+
// ../../node_modules/zod/v3/errors.js
|
|
373
373
|
var overrideErrorMap = en_default;
|
|
374
374
|
function setErrorMap(map) {
|
|
375
375
|
overrideErrorMap = map;
|
|
@@ -378,7 +378,7 @@ function getErrorMap() {
|
|
|
378
378
|
return overrideErrorMap;
|
|
379
379
|
}
|
|
380
380
|
|
|
381
|
-
//
|
|
381
|
+
// ../../node_modules/zod/v3/helpers/parseUtil.js
|
|
382
382
|
var makeIssue = (params) => {
|
|
383
383
|
let { data, path, errorMaps, issueData } = params, fullPath = [...path, ...issueData.path || []], fullIssue = {
|
|
384
384
|
...issueData,
|
|
@@ -461,13 +461,13 @@ var ParseStatus = class _ParseStatus {
|
|
|
461
461
|
status: "aborted"
|
|
462
462
|
}), DIRTY = (value) => ({ status: "dirty", value }), OK = (value) => ({ status: "valid", value }), isAborted = (x) => x.status === "aborted", isDirty = (x) => x.status === "dirty", isValid = (x) => x.status === "valid", isAsync = (x) => typeof Promise < "u" && x instanceof Promise;
|
|
463
463
|
|
|
464
|
-
//
|
|
464
|
+
// ../../node_modules/zod/v3/helpers/errorUtil.js
|
|
465
465
|
var errorUtil;
|
|
466
466
|
(function(errorUtil2) {
|
|
467
467
|
errorUtil2.errToObj = (message) => typeof message == "string" ? { message } : message || {}, errorUtil2.toString = (message) => typeof message == "string" ? message : message?.message;
|
|
468
468
|
})(errorUtil || (errorUtil = {}));
|
|
469
469
|
|
|
470
|
-
//
|
|
470
|
+
// ../../node_modules/zod/v3/types.js
|
|
471
471
|
var ParseInputLazyPath = class {
|
|
472
472
|
constructor(parent, value, path, key) {
|
|
473
473
|
this._cachedPath = [], this.parent = parent, this.data = value, this._path = path, this._key = key;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_1qalasm8z9n from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_1qalasm8z9n from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_1qalasm8z9n from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_1qalasm8z9n.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_1qalasm8z9n.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_1qalasm8z9n.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -12,13 +12,13 @@ var require = CJS_COMPAT_NODE_MODULE_2297kyafub.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
__commonJS,
|
|
14
14
|
__require
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-LZ5NNY6S.js";
|
|
16
16
|
|
|
17
|
-
//
|
|
17
|
+
// ../../node_modules/picomatch/lib/constants.js
|
|
18
18
|
var require_constants = __commonJS({
|
|
19
|
-
"
|
|
19
|
+
"../../node_modules/picomatch/lib/constants.js"(exports, module) {
|
|
20
20
|
"use strict";
|
|
21
|
-
var
|
|
21
|
+
var path2 = __require("path"), WIN_SLASH = "\\\\/", WIN_NO_SLASH = `[^${WIN_SLASH}]`, DOT_LITERAL = "\\.", PLUS_LITERAL = "\\+", QMARK_LITERAL = "\\?", SLASH_LITERAL = "\\/", ONE_CHAR = "(?=.)", QMARK = "[^/]", END_ANCHOR = `(?:${SLASH_LITERAL}|$)`, START_ANCHOR = `(?:^|${SLASH_LITERAL})`, DOTS_SLASH = `${DOT_LITERAL}{1,2}${END_ANCHOR}`, NO_DOT = `(?!${DOT_LITERAL})`, NO_DOTS = `(?!${START_ANCHOR}${DOTS_SLASH})`, NO_DOT_SLASH = `(?!${DOT_LITERAL}{0,1}${END_ANCHOR})`, NO_DOTS_SLASH = `(?!${DOTS_SLASH})`, QMARK_NO_DOT = `[^.${SLASH_LITERAL}]`, STAR = `${QMARK}*?`, POSIX_CHARS = {
|
|
22
22
|
DOT_LITERAL,
|
|
23
23
|
PLUS_LITERAL,
|
|
24
24
|
QMARK_LITERAL,
|
|
@@ -168,7 +168,7 @@ var require_constants = __commonJS({
|
|
|
168
168
|
/* | */
|
|
169
169
|
CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
|
|
170
170
|
/* \uFEFF */
|
|
171
|
-
SEP:
|
|
171
|
+
SEP: path2.sep,
|
|
172
172
|
/**
|
|
173
173
|
* Create EXTGLOB_CHARS
|
|
174
174
|
*/
|
|
@@ -191,11 +191,11 @@ var require_constants = __commonJS({
|
|
|
191
191
|
}
|
|
192
192
|
});
|
|
193
193
|
|
|
194
|
-
//
|
|
194
|
+
// ../../node_modules/picomatch/lib/utils.js
|
|
195
195
|
var require_utils = __commonJS({
|
|
196
|
-
"
|
|
196
|
+
"../../node_modules/picomatch/lib/utils.js"(exports) {
|
|
197
197
|
"use strict";
|
|
198
|
-
var
|
|
198
|
+
var path2 = __require("path"), win32 = process.platform === "win32", {
|
|
199
199
|
REGEX_BACKSLASH,
|
|
200
200
|
REGEX_REMOVE_BACKSLASH,
|
|
201
201
|
REGEX_SPECIAL_CHARS,
|
|
@@ -211,7 +211,7 @@ var require_utils = __commonJS({
|
|
|
211
211
|
let segs = process.version.slice(1).split(".").map(Number);
|
|
212
212
|
return segs.length === 3 && segs[0] >= 9 || segs[0] === 8 && segs[1] >= 10;
|
|
213
213
|
};
|
|
214
|
-
exports.isWindows = (options) => options && typeof options.windows == "boolean" ? options.windows : win32 === !0 ||
|
|
214
|
+
exports.isWindows = (options) => options && typeof options.windows == "boolean" ? options.windows : win32 === !0 || path2.sep === "\\";
|
|
215
215
|
exports.escapeLast = (input, char, lastIdx) => {
|
|
216
216
|
let idx = input.lastIndexOf(char, lastIdx);
|
|
217
217
|
return idx === -1 ? input : input[idx - 1] === "\\" ? exports.escapeLast(input, char, idx - 1) : `${input.slice(0, idx)}\\${input.slice(idx)}`;
|
|
@@ -227,9 +227,9 @@ var require_utils = __commonJS({
|
|
|
227
227
|
}
|
|
228
228
|
});
|
|
229
229
|
|
|
230
|
-
//
|
|
230
|
+
// ../../node_modules/picomatch/lib/scan.js
|
|
231
231
|
var require_scan = __commonJS({
|
|
232
|
-
"
|
|
232
|
+
"../../node_modules/picomatch/lib/scan.js"(exports, module) {
|
|
233
233
|
"use strict";
|
|
234
234
|
var utils = require_utils(), {
|
|
235
235
|
CHAR_ASTERISK,
|
|
@@ -413,9 +413,9 @@ var require_scan = __commonJS({
|
|
|
413
413
|
}
|
|
414
414
|
});
|
|
415
415
|
|
|
416
|
-
//
|
|
416
|
+
// ../../node_modules/picomatch/lib/parse.js
|
|
417
417
|
var require_parse = __commonJS({
|
|
418
|
-
"
|
|
418
|
+
"../../node_modules/picomatch/lib/parse.js"(exports, module) {
|
|
419
419
|
"use strict";
|
|
420
420
|
var constants = require_constants(), utils = require_utils(), {
|
|
421
421
|
MAX_LENGTH,
|
|
@@ -858,11 +858,11 @@ var require_parse = __commonJS({
|
|
|
858
858
|
}
|
|
859
859
|
});
|
|
860
860
|
|
|
861
|
-
//
|
|
861
|
+
// ../../node_modules/picomatch/lib/picomatch.js
|
|
862
862
|
var require_picomatch = __commonJS({
|
|
863
|
-
"
|
|
863
|
+
"../../node_modules/picomatch/lib/picomatch.js"(exports, module) {
|
|
864
864
|
"use strict";
|
|
865
|
-
var
|
|
865
|
+
var path2 = __require("path"), scan = require_scan(), parse = require_parse(), utils = require_utils(), constants = require_constants(), isObject = (val) => val && typeof val == "object" && !Array.isArray(val), picomatch = (glob, options, returnState = !1) => {
|
|
866
866
|
if (Array.isArray(glob)) {
|
|
867
867
|
let fns = glob.map((input) => picomatch(input, options, returnState));
|
|
868
868
|
return (str) => {
|
|
@@ -897,7 +897,7 @@ var require_picomatch = __commonJS({
|
|
|
897
897
|
let opts = options || {}, format = opts.format || (posix ? utils.toPosixSlashes : null), match = input === glob, output = match && format ? format(input) : input;
|
|
898
898
|
return match === !1 && (output = format ? format(input) : input, match = output === glob), (match === !1 || opts.capture === !0) && (opts.matchBase === !0 || opts.basename === !0 ? match = picomatch.matchBase(input, regex, options, posix) : match = regex.exec(output)), { isMatch: !!match, match, output };
|
|
899
899
|
};
|
|
900
|
-
picomatch.matchBase = (input, glob, options, posix = utils.isWindows(options)) => (glob instanceof RegExp ? glob : picomatch.makeRe(glob, options)).test(
|
|
900
|
+
picomatch.matchBase = (input, glob, options, posix = utils.isWindows(options)) => (glob instanceof RegExp ? glob : picomatch.makeRe(glob, options)).test(path2.basename(input));
|
|
901
901
|
picomatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
|
|
902
902
|
picomatch.parse = (pattern, options) => Array.isArray(pattern) ? pattern.map((p) => picomatch.parse(p, options)) : parse(pattern, { ...options, fastpaths: !1 });
|
|
903
903
|
picomatch.scan = (input, options) => scan(input, options);
|
|
@@ -929,15 +929,37 @@ var require_picomatch = __commonJS({
|
|
|
929
929
|
}
|
|
930
930
|
});
|
|
931
931
|
|
|
932
|
-
//
|
|
932
|
+
// ../../node_modules/picomatch/index.js
|
|
933
933
|
var require_picomatch2 = __commonJS({
|
|
934
|
-
"
|
|
934
|
+
"../../node_modules/picomatch/index.js"(exports, module) {
|
|
935
935
|
"use strict";
|
|
936
936
|
module.exports = require_picomatch();
|
|
937
937
|
}
|
|
938
938
|
});
|
|
939
939
|
|
|
940
|
+
// ../../node_modules/unicorn-magic/node.js
|
|
941
|
+
import { promisify } from "node:util";
|
|
942
|
+
import { execFile as execFileCallback, execFileSync as execFileSyncOriginal } from "node:child_process";
|
|
943
|
+
import path from "node:path";
|
|
944
|
+
import { fileURLToPath } from "node:url";
|
|
945
|
+
var execFileOriginal = promisify(execFileCallback);
|
|
946
|
+
function toPath(urlOrPath) {
|
|
947
|
+
return urlOrPath instanceof URL ? fileURLToPath(urlOrPath) : urlOrPath;
|
|
948
|
+
}
|
|
949
|
+
function traversePathUp(startPath) {
|
|
950
|
+
return {
|
|
951
|
+
*[Symbol.iterator]() {
|
|
952
|
+
let currentPath = path.resolve(toPath(startPath)), previousPath;
|
|
953
|
+
for (; previousPath !== currentPath; )
|
|
954
|
+
yield currentPath, previousPath = currentPath, currentPath = path.resolve(currentPath, "..");
|
|
955
|
+
}
|
|
956
|
+
};
|
|
957
|
+
}
|
|
958
|
+
var TEN_MEGABYTES_IN_BYTES = 10 * 1024 * 1024;
|
|
959
|
+
|
|
940
960
|
export {
|
|
941
961
|
require_utils,
|
|
942
|
-
require_picomatch2 as require_picomatch
|
|
962
|
+
require_picomatch2 as require_picomatch,
|
|
963
|
+
toPath,
|
|
964
|
+
traversePathUp
|
|
943
965
|
};
|