storybook 10.1.0-alpha.8 → 10.1.0-beta.0
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-FTG7SQDA.js +1097 -0
- package/dist/_browser-chunks/WithTooltip-LMROHDUP.js +1651 -0
- package/dist/_browser-chunks/chunk-2FRVAXCZ.js +7 -0
- package/dist/_browser-chunks/{chunk-FDWKXLBI.js → chunk-2XZMBGTA.js} +44 -109
- package/dist/_browser-chunks/chunk-3IAH5M2U.js +171 -0
- package/dist/_browser-chunks/chunk-3OXGAGBE.js +779 -0
- package/dist/_browser-chunks/{chunk-TMDZCWME.js → chunk-3PJE6VLG.js} +1 -3
- package/dist/_browser-chunks/{chunk-VAMFPZY3.js → chunk-45UGUKRX.js} +2 -7
- package/dist/_browser-chunks/chunk-6XWLIJQL.js +11 -0
- package/dist/_browser-chunks/{chunk-MM7DTO55.js → chunk-A242L54C.js} +10 -16
- package/dist/_browser-chunks/chunk-AIOS4NGK.js +252 -0
- package/dist/_browser-chunks/chunk-AS2HQEYC.js +14 -0
- package/dist/_browser-chunks/chunk-AXG2BOBL.js +836 -0
- package/dist/_browser-chunks/{chunk-MH6AXFXB.js → chunk-CHUV5WSW.js} +0 -5
- package/dist/_browser-chunks/chunk-EUVGDK4H.js +93 -0
- package/dist/_browser-chunks/chunk-EZSQOHRI.js +18 -0
- package/dist/_browser-chunks/{chunk-CADGRH3P.js → chunk-FNXWN6IK.js} +3 -8
- package/dist/_browser-chunks/chunk-FQ7SLVLR.js +66 -0
- package/dist/_browser-chunks/chunk-GFLS4VP3.js +64 -0
- package/dist/_browser-chunks/chunk-GFY5R5EY.js +47 -0
- package/dist/_browser-chunks/{chunk-L2D73C6Z.js → chunk-H6XK3RSC.js} +13 -21
- package/dist/_browser-chunks/chunk-IPA5A322.js +71 -0
- package/dist/_browser-chunks/chunk-JP7NCOJX.js +37 -0
- package/dist/_browser-chunks/chunk-KJHJLCBK.js +11 -0
- package/dist/_browser-chunks/{chunk-OWPZQM2D.js → chunk-L4RMQ7D7.js} +60 -110
- package/dist/_browser-chunks/chunk-P4F4UVXX.js +951 -0
- package/dist/_browser-chunks/{chunk-AB7OOPUX.js → chunk-QKODTO7K.js} +0 -5
- package/dist/_browser-chunks/chunk-RP5RXKFU.js +2491 -0
- package/dist/_browser-chunks/chunk-SL75JR6Y.js +9 -0
- package/dist/_browser-chunks/chunk-SS2NHR7W.js +2969 -0
- package/dist/_browser-chunks/chunk-UD6FQLAF.js +1481 -0
- package/dist/_browser-chunks/chunk-VYJQ7RU5.js +2853 -0
- package/dist/_browser-chunks/chunk-WJYERY3R.js +136 -0
- package/dist/_browser-chunks/chunk-XJNX76GA.js +85 -0
- package/dist/_browser-chunks/{chunk-F4Q6SGTB.js → chunk-YKE5S47A.js} +177 -399
- package/dist/_browser-chunks/{chunk-SN4J4IQ3.js → chunk-ZUWEVLDX.js} +1 -7
- package/dist/_browser-chunks/{formatter-OMEEQ6HG.js → formatter-QJ4M4OGQ.js} +4 -9
- package/dist/_browser-chunks/{syntaxhighlighter-CAVLW7PM.js → syntaxhighlighter-IQDEPFLK.js} +704 -1848
- package/dist/_node-chunks/{builder-manager-57OYTFQ5.js → builder-manager-BDAQHXFI.js} +510 -1019
- package/dist/_node-chunks/camelcase-3C7DZZPX.js +37 -0
- package/dist/_node-chunks/chunk-2IIQTGNE.js +6024 -0
- package/dist/_node-chunks/chunk-56U5LEMP.js +3043 -0
- package/dist/_node-chunks/chunk-7LIRCAQE.js +20 -0
- package/dist/_node-chunks/chunk-7RN6TXKP.js +603 -0
- package/dist/_node-chunks/chunk-7SJ7PZNL.js +4523 -0
- package/dist/_node-chunks/{chunk-2GK7NW46.js → chunk-BG4RDXG7.js} +8 -10
- package/dist/_node-chunks/chunk-CBQKMXLQ.js +18 -0
- package/dist/_node-chunks/chunk-CN2IW2KQ.js +1564 -0
- package/dist/_node-chunks/chunk-CQMAU6UQ.js +943 -0
- package/dist/_node-chunks/{chunk-RG4Z25PY.js → chunk-D6ND3TVY.js} +116 -276
- package/dist/_node-chunks/chunk-DC355CYB.js +61 -0
- package/dist/_node-chunks/{chunk-EBYCXVVR.js → chunk-EVK2SBW5.js} +292 -688
- package/dist/_node-chunks/chunk-IXWEUXJ2.js +119 -0
- package/dist/_node-chunks/{chunk-6F6CCOXH.js → chunk-KVRF22SH.js} +469 -983
- package/dist/_node-chunks/chunk-LEDP4QQW.js +919 -0
- package/dist/_node-chunks/{chunk-C4KEDJ6O.js → chunk-MMVV6DGG.js} +8133 -8887
- package/dist/_node-chunks/chunk-O5CGEVRI.js +29 -0
- package/dist/_node-chunks/chunk-OZZO56XN.js +299 -0
- package/dist/_node-chunks/chunk-POT2EVGD.js +78 -0
- package/dist/_node-chunks/chunk-R5YGFSTV.js +3781 -0
- package/dist/_node-chunks/chunk-SQCTM2OS.js +23 -0
- package/dist/_node-chunks/chunk-UFOFO5H7.js +54 -0
- package/dist/_node-chunks/chunk-VBF7ALJF.js +72 -0
- package/dist/_node-chunks/chunk-W6MAMTUF.js +70 -0
- package/dist/_node-chunks/chunk-WURL4XOT.js +46662 -0
- package/dist/_node-chunks/chunk-XGK6MVKR.js +61 -0
- package/dist/_node-chunks/chunk-YV3GDSDT.js +765 -0
- package/dist/_node-chunks/{chunk-RSHLCHYY.js → chunk-YWV55YW3.js} +15 -24
- package/dist/_node-chunks/dist-KEP4IFRN.js +121 -0
- package/dist/_node-chunks/globby-4WUBTDCN.js +3452 -0
- package/dist/_node-chunks/lib-JVOEKTYM.js +366 -0
- package/dist/_node-chunks/mdx-N42X6CFJ-C5WFYYXR.js +14329 -0
- package/dist/_node-chunks/p-limit-LDY632RS.js +116 -0
- package/dist/actions/decorator.js +21 -42
- package/dist/actions/index.js +3 -3
- package/dist/babel/index.d.ts +671 -335
- package/dist/babel/index.js +10 -11
- package/dist/bin/core.js +601 -1548
- package/dist/bin/dispatcher.js +36 -36
- package/dist/bin/loader.js +24 -38
- package/dist/channels/index.js +98 -234
- package/dist/cli/index.d.ts +1479 -133
- package/dist/cli/index.js +30 -8540
- package/dist/client-logger/index.js +31 -61
- package/dist/common/index.d.ts +139 -62
- package/dist/common/index.js +66 -51
- package/dist/components/index.d.ts +575 -273
- package/dist/components/index.js +14863 -4313
- package/dist/core-events/index.js +2 -66
- package/dist/core-server/index.d.ts +3 -2
- package/dist/core-server/index.js +2910 -8519
- package/dist/core-server/presets/common-manager.css +2 -2
- package/dist/core-server/presets/common-manager.js +2521 -5233
- package/dist/core-server/presets/common-override-preset.js +31 -60
- package/dist/core-server/presets/common-preset.js +663 -962
- package/dist/csf/index.js +534 -1179
- package/dist/csf-tools/index.js +9 -9
- package/dist/docs-tools/index.js +6 -6
- package/dist/highlight/index.js +2 -2
- package/dist/instrumenter/index.js +199 -415
- package/dist/manager/globals-runtime.js +59044 -67141
- package/dist/manager/globals.js +2 -3
- package/dist/manager/manager-stores.d.ts +1 -0
- package/dist/manager/manager-stores.js +23 -0
- package/dist/manager/runtime.js +11511 -10953
- package/dist/manager-api/index.d.ts +1811 -2
- package/dist/manager-api/index.js +1348 -2401
- package/dist/manager-errors.d.ts +9 -0
- package/dist/manager-errors.js +3 -3
- package/dist/mocking-utils/index.d.ts +1126 -0
- package/dist/mocking-utils/index.js +1181 -0
- package/dist/node-logger/index.d.ts +192 -24
- package/dist/node-logger/index.js +23 -4471
- package/dist/preview/globals.js +2 -3
- package/dist/preview/runtime.js +10799 -22393
- package/dist/preview-api/index.d.ts +1 -1
- package/dist/preview-api/index.js +13 -13
- package/dist/preview-errors.d.ts +9 -0
- package/dist/preview-errors.js +4 -4
- package/dist/router/index.js +347 -899
- package/dist/server-errors.d.ts +34 -1
- package/dist/server-errors.js +17 -10
- package/dist/telemetry/index.d.ts +24 -3
- package/dist/telemetry/index.js +25 -24
- package/dist/test/index.js +6131 -11916
- package/dist/theming/create.d.ts +1 -0
- package/dist/theming/create.js +4 -4
- package/dist/theming/index.d.ts +3366 -2599
- package/dist/theming/index.js +501 -1091
- package/dist/types/index.d.ts +72 -8
- package/dist/types/index.js +27 -12
- package/dist/viewport/index.js +3 -3
- package/package.json +26 -17
- package/dist/_browser-chunks/Color-7ZNS6F6B.js +0 -1676
- package/dist/_browser-chunks/WithTooltip-SK46ZJ2J.js +0 -13
- package/dist/_browser-chunks/chunk-6A7OIVEL.js +0 -66
- package/dist/_browser-chunks/chunk-B4A3ADP3.js +0 -3816
- package/dist/_browser-chunks/chunk-BOOOPFZF.js +0 -2335
- package/dist/_browser-chunks/chunk-FSBVR7H5.js +0 -106
- package/dist/_browser-chunks/chunk-FUOHXXZT.js +0 -23
- package/dist/_browser-chunks/chunk-GTKOCWCT.js +0 -17
- package/dist/_browser-chunks/chunk-HHW4FUMO.js +0 -12
- package/dist/_browser-chunks/chunk-JVSKG4YS.js +0 -4052
- package/dist/_browser-chunks/chunk-LASUB7TL.js +0 -76
- package/dist/_browser-chunks/chunk-LYCSRYYR.js +0 -101
- package/dist/_browser-chunks/chunk-NVV6MIOE.js +0 -243
- package/dist/_browser-chunks/chunk-OBXWFEPB.js +0 -852
- package/dist/_browser-chunks/chunk-OPCDBBL3.js +0 -48
- package/dist/_browser-chunks/chunk-PB6FZ3WE.js +0 -130
- package/dist/_browser-chunks/chunk-RNE2IUTB.js +0 -1300
- package/dist/_browser-chunks/chunk-RW5PKMWM.js +0 -4182
- package/dist/_browser-chunks/chunk-SYS437NN.js +0 -122
- package/dist/_browser-chunks/chunk-U46RQHA4.js +0 -12
- package/dist/_browser-chunks/chunk-UTNZYD2N.js +0 -311
- package/dist/_browser-chunks/chunk-VUAFL5XK.js +0 -20
- package/dist/_browser-chunks/chunk-XDGMHOV7.js +0 -2197
- package/dist/_browser-chunks/chunk-XW6KSYKF.js +0 -16
- package/dist/_browser-chunks/chunk-Y3M7TW6K.js +0 -1041
- package/dist/_browser-chunks/chunk-ZNRFDIVA.js +0 -233
- package/dist/_node-chunks/camelcase-2KEDZHZ2.js +0 -18
- package/dist/_node-chunks/chunk-34NNXTBR.js +0 -28
- package/dist/_node-chunks/chunk-3N2A3KZX.js +0 -420
- package/dist/_node-chunks/chunk-5P7P5KDN.js +0 -90
- package/dist/_node-chunks/chunk-5WBRBDXI.js +0 -79
- package/dist/_node-chunks/chunk-7PWTU7T2.js +0 -697
- package/dist/_node-chunks/chunk-CHRHQ7AZ.js +0 -4272
- package/dist/_node-chunks/chunk-D4EGQLJI.js +0 -64656
- package/dist/_node-chunks/chunk-EKCURTKU.js +0 -1544
- package/dist/_node-chunks/chunk-GBVPPW4H.js +0 -1657
- package/dist/_node-chunks/chunk-J6VOKT2F.js +0 -220
- package/dist/_node-chunks/chunk-JLBYSGXS.js +0 -69
- package/dist/_node-chunks/chunk-LLCELSUL.js +0 -1198
- package/dist/_node-chunks/chunk-NS4OCQ4F.js +0 -61
- package/dist/_node-chunks/chunk-NXVLFYDR.js +0 -1518
- package/dist/_node-chunks/chunk-NZPWAJOZ.js +0 -304
- package/dist/_node-chunks/chunk-OYFSIV3I.js +0 -6712
- package/dist/_node-chunks/chunk-OZ43LMDF.js +0 -5029
- package/dist/_node-chunks/chunk-Q5HJHFF2.js +0 -61
- package/dist/_node-chunks/chunk-QHER4CEN.js +0 -34
- package/dist/_node-chunks/chunk-RF2PJM54.js +0 -1531
- package/dist/_node-chunks/chunk-S3OHGEE3.js +0 -101
- package/dist/_node-chunks/chunk-S5XOMVSV.js +0 -2256
- package/dist/_node-chunks/chunk-SGXQZ47H.js +0 -1586
- package/dist/_node-chunks/chunk-TDU6OVUH.js +0 -111
- package/dist/_node-chunks/chunk-TYQQFNQX.js +0 -1250
- package/dist/_node-chunks/chunk-WNGLARN2.js +0 -4741
- package/dist/_node-chunks/chunk-YUOVDCXL.js +0 -18
- package/dist/_node-chunks/dist-O5FB7YUW.js +0 -175
- package/dist/_node-chunks/globby-3NMV7WHX.js +0 -5222
- package/dist/_node-chunks/lib-VZD7BRSA.js +0 -518
- package/dist/_node-chunks/mdx-N42X6CFJ-3RP7RKKU.js +0 -22017
- package/dist/_node-chunks/p-limit-LIKBTXEJ.js +0 -168
- package/dist/_node-chunks/plugin-2NYZBK4A.js +0 -129
- package/dist/_node-chunks/plugin-6QGMO7J7.js +0 -159
- package/dist/_node-chunks/webpack-inject-mocker-runtime-plugin-Z2JI6J2H.js +0 -69102
- package/dist/_node-chunks/webpack-mock-plugin-D4BE2SSI.js +0 -124
- package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.js +0 -36
- package/dist/core-server/presets/webpack/loaders/webpack-automock-loader.js +0 -33
|
@@ -1,220 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_rqth4iav4b from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_rqth4iav4b from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_rqth4iav4b from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_rqth4iav4b.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_rqth4iav4b.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_rqth4iav4b.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
12
|
-
import {
|
|
13
|
-
__name
|
|
14
|
-
} from "./chunk-Q5HJHFF2.js";
|
|
15
|
-
|
|
16
|
-
// ../node_modules/pathe/dist/shared/pathe.ff20891b.mjs
|
|
17
|
-
var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
|
|
18
|
-
function normalizeWindowsPath(input = "") {
|
|
19
|
-
if (!input) {
|
|
20
|
-
return input;
|
|
21
|
-
}
|
|
22
|
-
return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r) => r.toUpperCase());
|
|
23
|
-
}
|
|
24
|
-
__name(normalizeWindowsPath, "normalizeWindowsPath");
|
|
25
|
-
var _UNC_REGEX = /^[/\\]{2}/;
|
|
26
|
-
var _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
|
|
27
|
-
var _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
|
|
28
|
-
var _ROOT_FOLDER_RE = /^\/([A-Za-z]:)?$/;
|
|
29
|
-
var normalize = /* @__PURE__ */ __name(function(path2) {
|
|
30
|
-
if (path2.length === 0) {
|
|
31
|
-
return ".";
|
|
32
|
-
}
|
|
33
|
-
path2 = normalizeWindowsPath(path2);
|
|
34
|
-
const isUNCPath = path2.match(_UNC_REGEX);
|
|
35
|
-
const isPathAbsolute = isAbsolute(path2);
|
|
36
|
-
const trailingSeparator = path2[path2.length - 1] === "/";
|
|
37
|
-
path2 = normalizeString(path2, !isPathAbsolute);
|
|
38
|
-
if (path2.length === 0) {
|
|
39
|
-
if (isPathAbsolute) {
|
|
40
|
-
return "/";
|
|
41
|
-
}
|
|
42
|
-
return trailingSeparator ? "./" : ".";
|
|
43
|
-
}
|
|
44
|
-
if (trailingSeparator) {
|
|
45
|
-
path2 += "/";
|
|
46
|
-
}
|
|
47
|
-
if (_DRIVE_LETTER_RE.test(path2)) {
|
|
48
|
-
path2 += "/";
|
|
49
|
-
}
|
|
50
|
-
if (isUNCPath) {
|
|
51
|
-
if (!isPathAbsolute) {
|
|
52
|
-
return `//./${path2}`;
|
|
53
|
-
}
|
|
54
|
-
return `//${path2}`;
|
|
55
|
-
}
|
|
56
|
-
return isPathAbsolute && !isAbsolute(path2) ? `/${path2}` : path2;
|
|
57
|
-
}, "normalize");
|
|
58
|
-
var join = /* @__PURE__ */ __name(function(...arguments_) {
|
|
59
|
-
if (arguments_.length === 0) {
|
|
60
|
-
return ".";
|
|
61
|
-
}
|
|
62
|
-
let joined;
|
|
63
|
-
for (const argument of arguments_) {
|
|
64
|
-
if (argument && argument.length > 0) {
|
|
65
|
-
if (joined === void 0) {
|
|
66
|
-
joined = argument;
|
|
67
|
-
} else {
|
|
68
|
-
joined += `/${argument}`;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
if (joined === void 0) {
|
|
73
|
-
return ".";
|
|
74
|
-
}
|
|
75
|
-
return normalize(joined.replace(/\/\/+/g, "/"));
|
|
76
|
-
}, "join");
|
|
77
|
-
function cwd() {
|
|
78
|
-
if (typeof process !== "undefined" && typeof process.cwd === "function") {
|
|
79
|
-
return process.cwd().replace(/\\/g, "/");
|
|
80
|
-
}
|
|
81
|
-
return "/";
|
|
82
|
-
}
|
|
83
|
-
__name(cwd, "cwd");
|
|
84
|
-
var resolve = /* @__PURE__ */ __name(function(...arguments_) {
|
|
85
|
-
arguments_ = arguments_.map((argument) => normalizeWindowsPath(argument));
|
|
86
|
-
let resolvedPath = "";
|
|
87
|
-
let resolvedAbsolute = false;
|
|
88
|
-
for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) {
|
|
89
|
-
const path2 = index >= 0 ? arguments_[index] : cwd();
|
|
90
|
-
if (!path2 || path2.length === 0) {
|
|
91
|
-
continue;
|
|
92
|
-
}
|
|
93
|
-
resolvedPath = `${path2}/${resolvedPath}`;
|
|
94
|
-
resolvedAbsolute = isAbsolute(path2);
|
|
95
|
-
}
|
|
96
|
-
resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute);
|
|
97
|
-
if (resolvedAbsolute && !isAbsolute(resolvedPath)) {
|
|
98
|
-
return `/${resolvedPath}`;
|
|
99
|
-
}
|
|
100
|
-
return resolvedPath.length > 0 ? resolvedPath : ".";
|
|
101
|
-
}, "resolve");
|
|
102
|
-
function normalizeString(path2, allowAboveRoot) {
|
|
103
|
-
let res = "";
|
|
104
|
-
let lastSegmentLength = 0;
|
|
105
|
-
let lastSlash = -1;
|
|
106
|
-
let dots = 0;
|
|
107
|
-
let char = null;
|
|
108
|
-
for (let index = 0; index <= path2.length; ++index) {
|
|
109
|
-
if (index < path2.length) {
|
|
110
|
-
char = path2[index];
|
|
111
|
-
} else if (char === "/") {
|
|
112
|
-
break;
|
|
113
|
-
} else {
|
|
114
|
-
char = "/";
|
|
115
|
-
}
|
|
116
|
-
if (char === "/") {
|
|
117
|
-
if (lastSlash === index - 1 || dots === 1) ;
|
|
118
|
-
else if (dots === 2) {
|
|
119
|
-
if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== "." || res[res.length - 2] !== ".") {
|
|
120
|
-
if (res.length > 2) {
|
|
121
|
-
const lastSlashIndex = res.lastIndexOf("/");
|
|
122
|
-
if (lastSlashIndex === -1) {
|
|
123
|
-
res = "";
|
|
124
|
-
lastSegmentLength = 0;
|
|
125
|
-
} else {
|
|
126
|
-
res = res.slice(0, lastSlashIndex);
|
|
127
|
-
lastSegmentLength = res.length - 1 - res.lastIndexOf("/");
|
|
128
|
-
}
|
|
129
|
-
lastSlash = index;
|
|
130
|
-
dots = 0;
|
|
131
|
-
continue;
|
|
132
|
-
} else if (res.length > 0) {
|
|
133
|
-
res = "";
|
|
134
|
-
lastSegmentLength = 0;
|
|
135
|
-
lastSlash = index;
|
|
136
|
-
dots = 0;
|
|
137
|
-
continue;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
if (allowAboveRoot) {
|
|
141
|
-
res += res.length > 0 ? "/.." : "..";
|
|
142
|
-
lastSegmentLength = 2;
|
|
143
|
-
}
|
|
144
|
-
} else {
|
|
145
|
-
if (res.length > 0) {
|
|
146
|
-
res += `/${path2.slice(lastSlash + 1, index)}`;
|
|
147
|
-
} else {
|
|
148
|
-
res = path2.slice(lastSlash + 1, index);
|
|
149
|
-
}
|
|
150
|
-
lastSegmentLength = index - lastSlash - 1;
|
|
151
|
-
}
|
|
152
|
-
lastSlash = index;
|
|
153
|
-
dots = 0;
|
|
154
|
-
} else if (char === "." && dots !== -1) {
|
|
155
|
-
++dots;
|
|
156
|
-
} else {
|
|
157
|
-
dots = -1;
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
return res;
|
|
161
|
-
}
|
|
162
|
-
__name(normalizeString, "normalizeString");
|
|
163
|
-
var isAbsolute = /* @__PURE__ */ __name(function(p) {
|
|
164
|
-
return _IS_ABSOLUTE_RE.test(p);
|
|
165
|
-
}, "isAbsolute");
|
|
166
|
-
var _EXTNAME_RE = /.(\.[^./]+)$/;
|
|
167
|
-
var extname = /* @__PURE__ */ __name(function(p) {
|
|
168
|
-
const match = _EXTNAME_RE.exec(normalizeWindowsPath(p));
|
|
169
|
-
return match && match[1] || "";
|
|
170
|
-
}, "extname");
|
|
171
|
-
var relative = /* @__PURE__ */ __name(function(from, to) {
|
|
172
|
-
const _from = resolve(from).replace(_ROOT_FOLDER_RE, "$1").split("/");
|
|
173
|
-
const _to = resolve(to).replace(_ROOT_FOLDER_RE, "$1").split("/");
|
|
174
|
-
if (_to[0][1] === ":" && _from[0][1] === ":" && _from[0] !== _to[0]) {
|
|
175
|
-
return _to.join("/");
|
|
176
|
-
}
|
|
177
|
-
const _fromCopy = [..._from];
|
|
178
|
-
for (const segment of _fromCopy) {
|
|
179
|
-
if (_to[0] !== segment) {
|
|
180
|
-
break;
|
|
181
|
-
}
|
|
182
|
-
_from.shift();
|
|
183
|
-
_to.shift();
|
|
184
|
-
}
|
|
185
|
-
return [..._from.map(() => ".."), ..._to].join("/");
|
|
186
|
-
}, "relative");
|
|
187
|
-
var dirname = /* @__PURE__ */ __name(function(p) {
|
|
188
|
-
const segments = normalizeWindowsPath(p).replace(/\/$/, "").split("/").slice(0, -1);
|
|
189
|
-
if (segments.length === 1 && _DRIVE_LETTER_RE.test(segments[0])) {
|
|
190
|
-
segments[0] += "/";
|
|
191
|
-
}
|
|
192
|
-
return segments.join("/") || (isAbsolute(p) ? "/" : ".");
|
|
193
|
-
}, "dirname");
|
|
194
|
-
var basename = /* @__PURE__ */ __name(function(p, extension) {
|
|
195
|
-
const lastSegment = normalizeWindowsPath(p).split("/").pop();
|
|
196
|
-
return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
|
|
197
|
-
}, "basename");
|
|
198
|
-
var parse = /* @__PURE__ */ __name(function(p) {
|
|
199
|
-
const root = normalizeWindowsPath(p).split("/").shift() || "/";
|
|
200
|
-
const base = basename(p);
|
|
201
|
-
const extension = extname(base);
|
|
202
|
-
return {
|
|
203
|
-
root,
|
|
204
|
-
dir: dirname(p),
|
|
205
|
-
base,
|
|
206
|
-
ext: extension,
|
|
207
|
-
name: base.slice(0, base.length - extension.length)
|
|
208
|
-
};
|
|
209
|
-
}, "parse");
|
|
210
|
-
|
|
211
|
-
export {
|
|
212
|
-
normalize,
|
|
213
|
-
join,
|
|
214
|
-
resolve,
|
|
215
|
-
isAbsolute,
|
|
216
|
-
relative,
|
|
217
|
-
dirname,
|
|
218
|
-
basename,
|
|
219
|
-
parse
|
|
220
|
-
};
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_rqth4iav4b from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_rqth4iav4b from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_rqth4iav4b from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_rqth4iav4b.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_rqth4iav4b.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_rqth4iav4b.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
12
|
-
import {
|
|
13
|
-
__commonJS,
|
|
14
|
-
__name
|
|
15
|
-
} from "./chunk-Q5HJHFF2.js";
|
|
16
|
-
|
|
17
|
-
// ../node_modules/ts-dedent/dist/index.js
|
|
18
|
-
var require_dist = __commonJS({
|
|
19
|
-
"../node_modules/ts-dedent/dist/index.js"(exports) {
|
|
20
|
-
"use strict";
|
|
21
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.dedent = void 0;
|
|
23
|
-
function dedent(templ) {
|
|
24
|
-
var values = [];
|
|
25
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
26
|
-
values[_i - 1] = arguments[_i];
|
|
27
|
-
}
|
|
28
|
-
var strings = Array.from(typeof templ === "string" ? [templ] : templ);
|
|
29
|
-
strings[strings.length - 1] = strings[strings.length - 1].replace(/\r?\n([\t ]*)$/, "");
|
|
30
|
-
var indentLengths = strings.reduce(function(arr, str) {
|
|
31
|
-
var matches = str.match(/\n([\t ]+|(?!\s).)/g);
|
|
32
|
-
if (matches) {
|
|
33
|
-
return arr.concat(matches.map(function(match) {
|
|
34
|
-
var _a, _b;
|
|
35
|
-
return (_b = (_a = match.match(/[\t ]/g)) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0;
|
|
36
|
-
}));
|
|
37
|
-
}
|
|
38
|
-
return arr;
|
|
39
|
-
}, []);
|
|
40
|
-
if (indentLengths.length) {
|
|
41
|
-
var pattern_1 = new RegExp("\n[ ]{" + Math.min.apply(Math, indentLengths) + "}", "g");
|
|
42
|
-
strings = strings.map(function(str) {
|
|
43
|
-
return str.replace(pattern_1, "\n");
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
strings[0] = strings[0].replace(/^\r?\n/, "");
|
|
47
|
-
var string = strings[0];
|
|
48
|
-
values.forEach(function(value, i) {
|
|
49
|
-
var endentations = string.match(/(?:^|\n)( *)$/);
|
|
50
|
-
var endentation = endentations ? endentations[1] : "";
|
|
51
|
-
var indentedValue = value;
|
|
52
|
-
if (typeof value === "string" && value.includes("\n")) {
|
|
53
|
-
indentedValue = String(value).split("\n").map(function(str, i2) {
|
|
54
|
-
return i2 === 0 ? str : "" + endentation + str;
|
|
55
|
-
}).join("\n");
|
|
56
|
-
}
|
|
57
|
-
string += indentedValue + strings[i + 1];
|
|
58
|
-
});
|
|
59
|
-
return string;
|
|
60
|
-
}
|
|
61
|
-
__name(dedent, "dedent");
|
|
62
|
-
exports.dedent = dedent;
|
|
63
|
-
exports.default = dedent;
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
|
|
67
|
-
export {
|
|
68
|
-
require_dist
|
|
69
|
-
};
|