storybook 10.1.0-alpha.0 → 10.1.0-alpha.2
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/{chunk-I74EUU5O.js → chunk-B3S3ROIP.js} +2 -1
- package/dist/_node-chunks/{builder-manager-OTO33TIA.js → builder-manager-XRIDLU42.js} +12 -12
- package/dist/_node-chunks/camelcase-3IIGGJ6N.js +18 -0
- package/dist/_node-chunks/{chunk-27W6KHQ2.js → chunk-2L3QAN3W.js} +7 -7
- package/dist/_node-chunks/{chunk-XI2VU32X.js → chunk-3AR5SJTX.js} +7 -7
- package/dist/_node-chunks/{chunk-SV7ZHC5Z.js → chunk-5RN3IJGF.js} +7 -7
- package/dist/_node-chunks/{chunk-LOF6SIRE.js → chunk-6TX2TV3E.js} +12 -12
- package/dist/_node-chunks/{chunk-FWW4IJCM.js → chunk-6WXUZSNC.js} +10 -10
- package/dist/_node-chunks/{chunk-O4KUWXD6.js → chunk-BAE27Z3H.js} +8 -8
- package/dist/_node-chunks/{chunk-3ICYWJ3N.js → chunk-BB3ZKTWJ.js} +7 -7
- package/dist/_node-chunks/{chunk-2WZNP46P.js → chunk-BYQZFXRF.js} +8 -8
- package/dist/_node-chunks/{chunk-FDDQACQD.js → chunk-D43KJFPO.js} +7 -7
- package/dist/_node-chunks/{chunk-L5WAZZY3.js → chunk-EKPHXLN6.js} +7 -7
- package/dist/_node-chunks/{chunk-A6T2YN75.js → chunk-FI6CLUVL.js} +15 -15
- package/dist/_node-chunks/{chunk-NTB3C5XQ.js → chunk-FWBIPR34.js} +7 -7
- package/dist/_node-chunks/{chunk-ZFRTME73.js → chunk-GWSFLQQQ.js} +22 -21
- package/dist/_node-chunks/{chunk-NTAOH664.js → chunk-HFHQNHRU.js} +9 -9
- package/dist/_node-chunks/{chunk-HYNQ2IX4.js → chunk-IK3K67LJ.js} +7 -7
- package/dist/_node-chunks/{chunk-RKANIOER.js → chunk-L5J4RBU5.js} +8 -8
- package/dist/_node-chunks/{chunk-HHTKRAIE.js → chunk-LJPS53G5.js} +25 -7
- package/dist/_node-chunks/chunk-N3ZE2FCS.js +61 -0
- package/dist/_node-chunks/{chunk-HIGKW2KB.js → chunk-OM4TBMP7.js} +7 -7
- package/dist/_node-chunks/{chunk-Q4CZSEBO.js → chunk-Q5JSLT56.js} +7 -7
- package/dist/_node-chunks/{chunk-6M2IPO4E.js → chunk-QFET4WIW.js} +6 -6
- package/dist/_node-chunks/{chunk-YS6OLN4N.js → chunk-QS5MMNF7.js} +7 -7
- package/dist/_node-chunks/{chunk-AITYHU22.js → chunk-RIPSSVT6.js} +7 -7
- package/dist/_node-chunks/{chunk-6C7OBGYG.js → chunk-RQKELEE4.js} +7 -7
- package/dist/_node-chunks/{chunk-VL6WDGIU.js → chunk-RUJOX3JR.js} +6 -6
- package/dist/_node-chunks/{chunk-RR6Q3657.js → chunk-S6RYOO4I.js} +9 -9
- package/dist/_node-chunks/chunk-U6VJQXTG.js +18 -0
- package/dist/_node-chunks/{chunk-Q6QFW2Y7.js → chunk-VEZ6C62C.js} +39 -24
- package/dist/_node-chunks/{chunk-EFJRT54D.js → chunk-WHOPLOGE.js} +7 -7
- package/dist/_node-chunks/{chunk-OYGAWJQE.js → chunk-XVXUF5GE.js} +7 -7
- package/dist/_node-chunks/{chunk-O3OJUFKU.js → chunk-ZI3WVJBS.js} +8 -8
- package/dist/_node-chunks/{chunk-QOI32MCO.js → chunk-ZN2EDLIJ.js} +7 -7
- package/dist/_node-chunks/{chunk-VW3GGAQI.js → chunk-ZTHTAFLY.js} +12 -12
- package/dist/_node-chunks/{dist-BA2GAJJB.js → dist-Q25SOSXX.js} +9 -9
- package/dist/_node-chunks/{globby-4HAI4KJH.js → globby-I54LIY47.js} +9 -9
- package/dist/_node-chunks/{lib-ITRY6RT7.js → lib-KQD2WJWJ.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-7PULFTZI.js → mdx-N42X6CFJ-CT3A7SBK.js} +8 -8
- package/dist/_node-chunks/{p-limit-63FY4KTG.js → p-limit-2NBKFARM.js} +7 -7
- package/dist/_node-chunks/{plugin-JEBMTDIB.js → plugin-2CCCBGGB.js} +10 -10
- package/dist/_node-chunks/{plugin-2BSKCSMA.js → plugin-RF5FICSG.js} +10 -10
- package/dist/_node-chunks/{webpack-inject-mocker-runtime-plugin-AZ7YPMMD.js → webpack-inject-mocker-runtime-plugin-RY56E77L.js} +10 -10
- package/dist/_node-chunks/{webpack-mock-plugin-7IF6PA2O.js → webpack-mock-plugin-6VDFRSC4.js} +9 -9
- package/dist/babel/index.js +11 -11
- package/dist/bin/core.js +11 -11
- package/dist/bin/dispatcher.js +11 -11
- package/dist/bin/loader.js +9 -9
- package/dist/cli/index.js +21 -21
- package/dist/common/index.d.ts +21 -2
- package/dist/common/index.js +22 -20
- package/dist/components/index.js +1 -1
- package/dist/core-server/index.js +150 -103
- package/dist/core-server/presets/common-manager.js +1 -1
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +27 -27
- package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.js +9 -9
- package/dist/core-server/presets/webpack/loaders/webpack-automock-loader.js +10 -10
- package/dist/csf-tools/index.d.ts +8 -4
- package/dist/csf-tools/index.js +9 -9
- package/dist/manager/globals-runtime.js +5 -4
- package/dist/manager-api/index.d.ts +1 -1
- package/dist/manager-api/index.js +1 -1
- package/dist/node-logger/index.js +14 -14
- package/dist/preview/runtime.js +2 -2
- package/dist/server-errors.js +10 -10
- package/dist/telemetry/index.js +24 -24
- package/dist/test/index.js +2 -2
- package/dist/types/index.d.ts +45 -5
- package/package.json +1 -1
- package/dist/_node-chunks/camelcase-HURSU73A.js +0 -18
- package/dist/_node-chunks/chunk-P7ZABCRS.js +0 -18
- package/dist/_node-chunks/chunk-QWBT2XCX.js +0 -61
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_gimmxetvr7 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gimmxetvr7 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gimmxetvr7 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gimmxetvr7.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gimmxetvr7.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gimmxetvr7.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_viqf41uklqm.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
__commonJS,
|
|
14
14
|
__name
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-RUJOX3JR.js";
|
|
16
16
|
|
|
17
17
|
// ../node_modules/ts-dedent/dist/index.js
|
|
18
18
|
var require_dist = __commonJS({
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_gimmxetvr7 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gimmxetvr7 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gimmxetvr7 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gimmxetvr7.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gimmxetvr7.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gimmxetvr7.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-IK3K67LJ.js";
|
|
15
15
|
import {
|
|
16
16
|
__export,
|
|
17
17
|
__name,
|
|
18
18
|
__toESM
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-RUJOX3JR.js";
|
|
20
20
|
|
|
21
21
|
// src/cli/globalSettings.ts
|
|
22
22
|
var import_ts_dedent = __toESM(require_dist(), 1);
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_gimmxetvr7 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gimmxetvr7 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gimmxetvr7 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gimmxetvr7.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gimmxetvr7.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gimmxetvr7.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
|
__name
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-RUJOX3JR.js";
|
|
15
15
|
|
|
16
16
|
// ../node_modules/pathe/dist/shared/pathe.ff20891b.mjs
|
|
17
17
|
var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
|
|
@@ -25,6 +25,7 @@ __name(normalizeWindowsPath, "normalizeWindowsPath");
|
|
|
25
25
|
var _UNC_REGEX = /^[/\\]{2}/;
|
|
26
26
|
var _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
|
|
27
27
|
var _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
|
|
28
|
+
var _ROOT_FOLDER_RE = /^\/([A-Za-z]:)?$/;
|
|
28
29
|
var normalize = /* @__PURE__ */ __name(function(path2) {
|
|
29
30
|
if (path2.length === 0) {
|
|
30
31
|
return ".";
|
|
@@ -167,6 +168,22 @@ var extname = /* @__PURE__ */ __name(function(p) {
|
|
|
167
168
|
const match = _EXTNAME_RE.exec(normalizeWindowsPath(p));
|
|
168
169
|
return match && match[1] || "";
|
|
169
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");
|
|
170
187
|
var dirname = /* @__PURE__ */ __name(function(p) {
|
|
171
188
|
const segments = normalizeWindowsPath(p).replace(/\/$/, "").split("/").slice(0, -1);
|
|
172
189
|
if (segments.length === 1 && _DRIVE_LETTER_RE.test(segments[0])) {
|
|
@@ -196,6 +213,7 @@ export {
|
|
|
196
213
|
join,
|
|
197
214
|
resolve,
|
|
198
215
|
isAbsolute,
|
|
216
|
+
relative,
|
|
199
217
|
dirname,
|
|
200
218
|
basename,
|
|
201
219
|
parse
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_gimmxetvr7 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gimmxetvr7 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gimmxetvr7 from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gimmxetvr7.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gimmxetvr7.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gimmxetvr7.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.1.0-alpha.2",
|
|
16
|
+
"@storybook/addon-docs": "10.1.0-alpha.2",
|
|
17
|
+
"@storybook/addon-links": "10.1.0-alpha.2",
|
|
18
|
+
"@storybook/addon-onboarding": "10.1.0-alpha.2",
|
|
19
|
+
"storybook-addon-pseudo-states": "10.1.0-alpha.2",
|
|
20
|
+
"@storybook/addon-themes": "10.1.0-alpha.2",
|
|
21
|
+
"@storybook/addon-vitest": "10.1.0-alpha.2",
|
|
22
|
+
"@storybook/builder-vite": "10.1.0-alpha.2",
|
|
23
|
+
"@storybook/builder-webpack5": "10.1.0-alpha.2",
|
|
24
|
+
storybook: "10.1.0-alpha.2",
|
|
25
|
+
"@storybook/angular": "10.1.0-alpha.2",
|
|
26
|
+
"@storybook/ember": "10.1.0-alpha.2",
|
|
27
|
+
"@storybook/html-vite": "10.1.0-alpha.2",
|
|
28
|
+
"@storybook/nextjs": "10.1.0-alpha.2",
|
|
29
|
+
"@storybook/nextjs-vite": "10.1.0-alpha.2",
|
|
30
|
+
"@storybook/preact-vite": "10.1.0-alpha.2",
|
|
31
|
+
"@storybook/react-native-web-vite": "10.1.0-alpha.2",
|
|
32
|
+
"@storybook/react-vite": "10.1.0-alpha.2",
|
|
33
|
+
"@storybook/react-webpack5": "10.1.0-alpha.2",
|
|
34
|
+
"@storybook/server-webpack5": "10.1.0-alpha.2",
|
|
35
|
+
"@storybook/svelte-vite": "10.1.0-alpha.2",
|
|
36
|
+
"@storybook/sveltekit": "10.1.0-alpha.2",
|
|
37
|
+
"@storybook/vue3-vite": "10.1.0-alpha.2",
|
|
38
|
+
"@storybook/web-components-vite": "10.1.0-alpha.2",
|
|
39
|
+
sb: "10.1.0-alpha.2",
|
|
40
|
+
"@storybook/cli": "10.1.0-alpha.2",
|
|
41
|
+
"@storybook/codemod": "10.1.0-alpha.2",
|
|
42
|
+
"@storybook/core-webpack": "10.1.0-alpha.2",
|
|
43
|
+
"create-storybook": "10.1.0-alpha.2",
|
|
44
|
+
"@storybook/csf-plugin": "10.1.0-alpha.2",
|
|
45
|
+
"eslint-plugin-storybook": "10.1.0-alpha.2",
|
|
46
|
+
"@storybook/react-dom-shim": "10.1.0-alpha.2",
|
|
47
|
+
"@storybook/preset-create-react-app": "10.1.0-alpha.2",
|
|
48
|
+
"@storybook/preset-react-webpack": "10.1.0-alpha.2",
|
|
49
|
+
"@storybook/preset-server-webpack": "10.1.0-alpha.2",
|
|
50
|
+
"@storybook/html": "10.1.0-alpha.2",
|
|
51
|
+
"@storybook/preact": "10.1.0-alpha.2",
|
|
52
|
+
"@storybook/react": "10.1.0-alpha.2",
|
|
53
|
+
"@storybook/server": "10.1.0-alpha.2",
|
|
54
|
+
"@storybook/svelte": "10.1.0-alpha.2",
|
|
55
|
+
"@storybook/vue3": "10.1.0-alpha.2",
|
|
56
|
+
"@storybook/web-components": "10.1.0-alpha.2"
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export {
|
|
60
|
+
versions_default
|
|
61
|
+
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_gimmxetvr7 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gimmxetvr7 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gimmxetvr7 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gimmxetvr7.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gimmxetvr7.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gimmxetvr7.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
|
__name
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-RUJOX3JR.js";
|
|
15
15
|
|
|
16
16
|
// src/telemetry/event-cache.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_gimmxetvr7 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gimmxetvr7 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gimmxetvr7 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gimmxetvr7.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gimmxetvr7.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gimmxetvr7.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
|
__name,
|
|
15
15
|
__toESM
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-RUJOX3JR.js";
|
|
17
17
|
|
|
18
18
|
// ../node_modules/balanced-match/index.js
|
|
19
19
|
var require_balanced_match = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_gimmxetvr7 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gimmxetvr7 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gimmxetvr7 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gimmxetvr7.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gimmxetvr7.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gimmxetvr7.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_gimmxetvr7 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gimmxetvr7 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gimmxetvr7 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gimmxetvr7.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gimmxetvr7.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gimmxetvr7.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
|
__name,
|
|
15
15
|
__require
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-RUJOX3JR.js";
|
|
17
17
|
|
|
18
18
|
// ../node_modules/ms/index.js
|
|
19
19
|
var require_ms = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_gimmxetvr7 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gimmxetvr7 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gimmxetvr7 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gimmxetvr7.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gimmxetvr7.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gimmxetvr7.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_viqf41uklqm.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
__name,
|
|
14
14
|
__require
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-RUJOX3JR.js";
|
|
16
16
|
|
|
17
17
|
// ../node_modules/@storybook/docs-mdx/dist/chunk-H6DQNFQR.js
|
|
18
18
|
var __create = Object.create;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_gimmxetvr7 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gimmxetvr7 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gimmxetvr7 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gimmxetvr7.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gimmxetvr7.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gimmxetvr7.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
|
__name,
|
|
15
15
|
__require
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-RUJOX3JR.js";
|
|
17
17
|
|
|
18
18
|
// ../node_modules/totalist/sync/index.js
|
|
19
19
|
var require_sync = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_gimmxetvr7 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gimmxetvr7 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gimmxetvr7 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gimmxetvr7.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gimmxetvr7.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gimmxetvr7.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_gimmxetvr7 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gimmxetvr7 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gimmxetvr7 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gimmxetvr7.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gimmxetvr7.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gimmxetvr7.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -13,13 +13,13 @@ import {
|
|
|
13
13
|
any,
|
|
14
14
|
up,
|
|
15
15
|
up2
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-3AR5SJTX.js";
|
|
17
17
|
import {
|
|
18
18
|
__commonJS,
|
|
19
19
|
__name,
|
|
20
20
|
__require,
|
|
21
21
|
__toESM
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-RUJOX3JR.js";
|
|
23
23
|
|
|
24
24
|
// ../node_modules/tinyglobby/node_modules/picomatch/lib/constants.js
|
|
25
25
|
var require_constants = __commonJS({
|
|
@@ -3023,7 +3023,7 @@ __name(normalizeStoryPath, "normalizeStoryPath");
|
|
|
3023
3023
|
|
|
3024
3024
|
// src/common/utils/envs.ts
|
|
3025
3025
|
async function loadEnvs(options = {}) {
|
|
3026
|
-
const { getEnvironment } = await import("./lib-
|
|
3026
|
+
const { getEnvironment } = await import("./lib-KQD2WJWJ.js");
|
|
3027
3027
|
const defaultNodeEnv = options.production ? "production" : "development";
|
|
3028
3028
|
const env = {
|
|
3029
3029
|
// eslint-disable-next-line @typescript-eslint/dot-notation
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_gimmxetvr7 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gimmxetvr7 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gimmxetvr7 from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gimmxetvr7.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gimmxetvr7.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gimmxetvr7.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
|
|
13
|
+
// package.json
|
|
14
|
+
var version = "10.1.0-alpha.2";
|
|
15
|
+
|
|
16
|
+
export {
|
|
17
|
+
version
|
|
18
|
+
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_gimmxetvr7 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gimmxetvr7 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gimmxetvr7 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gimmxetvr7.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gimmxetvr7.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gimmxetvr7.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-IK3K67LJ.js";
|
|
15
15
|
import {
|
|
16
16
|
__name,
|
|
17
17
|
__toESM
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-RUJOX3JR.js";
|
|
19
19
|
|
|
20
20
|
// src/csf-tools/CsfFile.ts
|
|
21
21
|
var import_ts_dedent = __toESM(require_dist(), 1);
|
|
@@ -240,6 +240,7 @@ var CsfFile = class {
|
|
|
240
240
|
this._stories = {};
|
|
241
241
|
this._metaAnnotations = {};
|
|
242
242
|
this._storyExports = {};
|
|
243
|
+
this._storyDeclarationPath = {};
|
|
243
244
|
this._storyPaths = {};
|
|
244
245
|
this._storyStatements = {};
|
|
245
246
|
this._storyAnnotations = {};
|
|
@@ -290,8 +291,12 @@ var CsfFile = class {
|
|
|
290
291
|
);
|
|
291
292
|
if (importStmt) {
|
|
292
293
|
const { source } = importStmt;
|
|
293
|
-
|
|
294
|
+
const specifier = importStmt.specifiers.find((spec) => spec.local.name === id);
|
|
295
|
+
if (t2.isStringLiteral(source) && specifier) {
|
|
294
296
|
this._rawComponentPath = source.value;
|
|
297
|
+
if (t2.isImportSpecifier(specifier) || t2.isImportDefaultSpecifier(specifier)) {
|
|
298
|
+
this._componentImportSpecifier = specifier;
|
|
299
|
+
}
|
|
295
300
|
}
|
|
296
301
|
}
|
|
297
302
|
}
|
|
@@ -349,15 +354,17 @@ var CsfFile = class {
|
|
|
349
354
|
if (isVariableReference) {
|
|
350
355
|
const variableName = node.declaration.name;
|
|
351
356
|
self._metaVariableName = variableName;
|
|
352
|
-
const
|
|
353
|
-
self.
|
|
354
|
-
(
|
|
357
|
+
const isMetaVariable = /* @__PURE__ */ __name((declaration) => t2.isIdentifier(declaration.id) && declaration.id.name === variableName, "isMetaVariable");
|
|
358
|
+
self._metaStatementPath = self._file.path.get("body").find(
|
|
359
|
+
(path2) => path2.isVariableDeclaration() && path2.node.declarations.some(isMetaVariable)
|
|
355
360
|
);
|
|
361
|
+
self._metaStatement = self._metaStatementPath?.node;
|
|
356
362
|
decl = (self?._metaStatement?.declarations || []).find(
|
|
357
|
-
|
|
363
|
+
isMetaVariable
|
|
358
364
|
)?.init;
|
|
359
365
|
} else {
|
|
360
366
|
self._metaStatement = node;
|
|
367
|
+
self._metaStatementPath = path;
|
|
361
368
|
decl = node.declaration;
|
|
362
369
|
}
|
|
363
370
|
if (t2.isObjectExpression(decl)) {
|
|
@@ -390,22 +397,26 @@ var CsfFile = class {
|
|
|
390
397
|
ExportNamedDeclaration: {
|
|
391
398
|
enter(path) {
|
|
392
399
|
const { node, parent } = path;
|
|
400
|
+
const declaration = path.get("declaration");
|
|
393
401
|
let declarations;
|
|
394
|
-
if (
|
|
395
|
-
declarations =
|
|
396
|
-
} else if (
|
|
397
|
-
declarations = [
|
|
402
|
+
if (declaration.isVariableDeclaration()) {
|
|
403
|
+
declarations = declaration.get("declarations").filter((d) => d.isVariableDeclarator());
|
|
404
|
+
} else if (declaration.isFunctionDeclaration()) {
|
|
405
|
+
declarations = [declaration];
|
|
398
406
|
}
|
|
399
407
|
if (declarations) {
|
|
400
|
-
declarations.forEach((
|
|
401
|
-
|
|
408
|
+
declarations.forEach((declPath) => {
|
|
409
|
+
const decl = declPath.node;
|
|
410
|
+
const id = declPath.node.id;
|
|
411
|
+
if (t2.isIdentifier(id)) {
|
|
402
412
|
let storyIsFactory = false;
|
|
403
|
-
const { name: exportName } =
|
|
404
|
-
if (exportName === "__namedExportsOrder" &&
|
|
405
|
-
self._namedExportsOrder = parseExportsOrder(
|
|
413
|
+
const { name: exportName } = id;
|
|
414
|
+
if (exportName === "__namedExportsOrder" && declPath.isVariableDeclarator()) {
|
|
415
|
+
self._namedExportsOrder = parseExportsOrder(declPath.node.init);
|
|
406
416
|
return;
|
|
407
417
|
}
|
|
408
418
|
self._storyExports[exportName] = decl;
|
|
419
|
+
self._storyDeclarationPath[exportName] = declPath;
|
|
409
420
|
self._storyPaths[exportName] = path;
|
|
410
421
|
self._storyStatements[exportName] = node;
|
|
411
422
|
let name = storyNameFromExport(exportName);
|
|
@@ -787,7 +798,10 @@ var babelParseFile = /* @__PURE__ */ __name(({
|
|
|
787
798
|
filename = "",
|
|
788
799
|
ast
|
|
789
800
|
}) => {
|
|
790
|
-
return new BabelFileClass(
|
|
801
|
+
return new BabelFileClass(
|
|
802
|
+
{ filename, highlightCode: false },
|
|
803
|
+
{ code, ast: ast ?? babelParse(code) }
|
|
804
|
+
);
|
|
791
805
|
}, "babelParseFile");
|
|
792
806
|
var loadCsf = /* @__PURE__ */ __name((code, options) => {
|
|
793
807
|
const ast = babelParse(code);
|
|
@@ -1932,8 +1946,9 @@ var enrichCsfMeta = /* @__PURE__ */ __name((csf, csfSource, options) => {
|
|
|
1932
1946
|
}
|
|
1933
1947
|
}
|
|
1934
1948
|
}, "enrichCsfMeta");
|
|
1935
|
-
var enrichCsf = /* @__PURE__ */ __name((csf, csfSource, options) => {
|
|
1949
|
+
var enrichCsf = /* @__PURE__ */ __name(async (csf, csfSource, options) => {
|
|
1936
1950
|
enrichCsfMeta(csf, csfSource, options);
|
|
1951
|
+
await options?.enrichCsf?.(csf, csfSource);
|
|
1937
1952
|
Object.keys(csf._storyExports).forEach((key) => {
|
|
1938
1953
|
enrichCsfStory(csf, csfSource, key, options);
|
|
1939
1954
|
});
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_gimmxetvr7 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gimmxetvr7 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gimmxetvr7 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gimmxetvr7.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gimmxetvr7.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gimmxetvr7.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
|
__name
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-RUJOX3JR.js";
|
|
15
15
|
|
|
16
16
|
// ../node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs
|
|
17
17
|
var comma = ",".charCodeAt(0);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_gimmxetvr7 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gimmxetvr7 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gimmxetvr7 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gimmxetvr7.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gimmxetvr7.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gimmxetvr7.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
|
__name,
|
|
15
15
|
__require
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-RUJOX3JR.js";
|
|
17
17
|
|
|
18
18
|
// ../node_modules/picomatch/lib/constants.js
|
|
19
19
|
var require_constants = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_gimmxetvr7 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gimmxetvr7 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gimmxetvr7 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gimmxetvr7.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gimmxetvr7.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gimmxetvr7.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -12,10 +12,10 @@ var require = CJS_COMPAT_NODE_MODULE_viqf41uklqm.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
dirname,
|
|
14
14
|
join
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-LJPS53G5.js";
|
|
16
16
|
import {
|
|
17
17
|
__name
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-RUJOX3JR.js";
|
|
19
19
|
|
|
20
20
|
// ../node_modules/exsolve/dist/index.mjs
|
|
21
21
|
import fs, { realpathSync, statSync, lstatSync } from "node:fs";
|