storybook 10.2.0-alpha.1 → 10.2.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/Color-E5XDEOX4.js +484 -0
- 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-2NDLAB5X.js +363 -0
- package/dist/_browser-chunks/{chunk-JP7NCOJX.js → chunk-3LY4VQVK.js} +1 -1
- package/dist/_browser-chunks/{chunk-XJNX76GA.js → chunk-54PNNATT.js} +3 -20
- package/dist/_browser-chunks/{chunk-VYJQ7RU5.js → chunk-6QKNWBQB.js} +17 -17
- package/dist/_browser-chunks/chunk-CLSHX4VX.js +4140 -0
- package/dist/_browser-chunks/{chunk-2XZMBGTA.js → chunk-DOSERVNW.js} +1 -1
- package/dist/_browser-chunks/chunk-HPYUT3WS.js +199 -0
- 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-UD6FQLAF.js → chunk-JK6U3MQW.js} +3 -3
- package/dist/_browser-chunks/{chunk-CHUV5WSW.js → chunk-LE2LTDW3.js} +1 -1
- package/dist/_browser-chunks/{chunk-RP5RXKFU.js → chunk-MOYJJEXA.js} +38 -29
- package/dist/_browser-chunks/chunk-NZMVUW5T.js +7 -0
- package/dist/_browser-chunks/{chunk-AXG2BOBL.js → chunk-S6TK43XQ.js} +10 -10
- 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-VIJ7SQRO.js +568 -0
- package/dist/_browser-chunks/chunk-XCZK5QUJ.js +0 -0
- package/dist/_browser-chunks/{chunk-3OXGAGBE.js → chunk-XLJZ7AOP.js} +14 -14
- package/dist/_browser-chunks/{chunk-SS2NHR7W.js → chunk-Y6HZAT53.js} +10 -12
- 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-ZK4QXZNX.js} +22 -22
- package/dist/_node-chunks/{camelcase-64II7H4U.js → camelcase-QWQG7I72.js} +8 -8
- package/dist/_node-chunks/{chunk-R3WYNAT5.js → chunk-2AFVBCGF.js} +6 -6
- package/dist/_node-chunks/{chunk-F7377GT2.js → chunk-5VZMCPTH.js} +18 -18
- package/dist/_node-chunks/{chunk-KXDU466E.js → chunk-6OZRMRVO.js} +31 -31
- package/dist/_node-chunks/chunk-CLCLRZYL.js +61 -0
- package/dist/_node-chunks/{chunk-AJUO2ZU3.js → chunk-CW7HJRCY.js} +9 -9
- package/dist/_node-chunks/chunk-DF3QP62W.js +18 -0
- package/dist/_node-chunks/{chunk-4BQMSZKI.js → chunk-DWVHBQGR.js} +165 -191
- package/dist/_node-chunks/chunk-EVBCPGQO.js +20 -0
- package/dist/_node-chunks/{chunk-5GNBLJKS.js → chunk-EXZXVBZO.js} +8 -8
- package/dist/_node-chunks/{chunk-VR5LMO3F.js → chunk-FZFZ5TOM.js} +9 -9
- package/dist/_node-chunks/{chunk-4EZYJUAC.js → chunk-GKEAARBQ.js} +10 -10
- package/dist/_node-chunks/{chunk-KMTK5W6O.js → chunk-HMFROKHU.js} +19 -19
- package/dist/_node-chunks/{chunk-JYMZJCZ7.js → chunk-I5TOD3AY.js} +66 -72
- package/dist/_node-chunks/{chunk-FTR6MHOX.js → chunk-KVNLJSAB.js} +619 -148
- package/dist/_node-chunks/{chunk-ET4VMMZG.js → chunk-NKOHF7TQ.js} +10 -10
- package/dist/_node-chunks/{chunk-PGFQADZC.js → chunk-OV2CP4VV.js} +7 -7
- package/dist/_node-chunks/chunk-PCMFKXWQ.js +23 -0
- package/dist/_node-chunks/{chunk-LEDV47V2.js → chunk-Q5ZQH2OQ.js} +15 -15
- package/dist/_node-chunks/{chunk-77APSTTM.js → chunk-QFSK4B7R.js} +8 -8
- package/dist/_node-chunks/{chunk-TP6ICLTL.js → chunk-R2J3OB3H.js} +6 -6
- package/dist/_node-chunks/{chunk-GOOBGRAV.js → chunk-RGQC4G3L.js} +165 -21
- package/dist/_node-chunks/{chunk-5NWCBUGD.js → chunk-TOXVUAH2.js} +6 -6
- package/dist/_node-chunks/{chunk-SR5ZYD7K.js → chunk-URBB5EGY.js} +8 -8
- package/dist/_node-chunks/{chunk-TX77W2KY.js → chunk-UWJ4BOOL.js} +597 -593
- package/dist/_node-chunks/{chunk-CLNMK7MP.js → chunk-VJPI73BB.js} +230 -236
- package/dist/_node-chunks/{chunk-ZI2RAI3I.js → chunk-WOS3OQVT.js} +6 -6
- package/dist/_node-chunks/{chunk-VFTNRF5X.js → chunk-WUKWNPSQ.js} +17 -17
- package/dist/_node-chunks/{chunk-GYZQMMTN.js → chunk-XFU23B4C.js} +9 -9
- package/dist/_node-chunks/{dist-HGQ5R6JU.js → dist-UBFMIJZC.js} +10 -10
- package/dist/_node-chunks/{globby-5XJTXKUJ.js → globby-VD3CGPVI.js} +154 -154
- package/dist/_node-chunks/{lib-XNLTS2RI.js → lib-MMJB47J3.js} +16 -16
- package/dist/_node-chunks/{mdx-N42X6CFJ-7WF3QWVO.js → mdx-N42X6CFJ-3J2G7NZZ.js} +11 -11
- package/dist/_node-chunks/{p-limit-RBKYTJKF.js → p-limit-SOBWTEVH.js} +8 -8
- package/dist/babel/index.js +10 -10
- package/dist/bin/core.js +28 -28
- 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 +2 -1
- package/dist/cli/index.js +18 -18
- package/dist/common/index.js +19 -19
- package/dist/components/index.d.ts +9 -2
- package/dist/components/index.js +327 -311
- package/dist/core-server/index.js +125 -125
- package/dist/core-server/presets/common-manager.css +2 -2
- package/dist/core-server/presets/common-manager.js +43 -38
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +4390 -173
- package/dist/csf/index.js +39 -35
- package/dist/csf-tools/index.js +9 -9
- package/dist/docs-tools/index.js +6 -5
- package/dist/instrumenter/index.js +1 -1
- package/dist/manager/globals-runtime.js +18956 -12602
- package/dist/manager/runtime.js +148 -132
- package/dist/manager-api/index.js +31 -22
- package/dist/mocking-utils/index.js +14 -14
- package/dist/node-logger/index.d.ts +2 -2
- package/dist/node-logger/index.js +9 -9
- package/dist/preview/runtime.js +30784 -24388
- package/dist/preview-api/index.js +12 -11
- package/dist/preview-errors.js +2 -2
- package/dist/router/index.js +12 -13
- package/dist/server-errors.js +11 -11
- package/dist/telemetry/index.d.ts +1 -1
- package/dist/telemetry/index.js +23 -23
- package/dist/test/index.js +3104 -1604
- package/dist/theming/create.js +3 -3
- package/dist/theming/index.js +38 -38
- package/package.json +2 -8
- package/dist/_browser-chunks/Color-TNPFN3FC.js +0 -1097
- package/dist/_browser-chunks/chunk-3IAH5M2U.js +0 -171
- package/dist/_browser-chunks/chunk-AIOS4NGK.js +0 -252
- package/dist/_browser-chunks/chunk-EZSQOHRI.js +0 -18
- package/dist/_browser-chunks/chunk-GFLS4VP3.js +0 -64
- package/dist/_browser-chunks/chunk-QKODTO7K.js +0 -7
- 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-XEPVDCRL.js +0 -23
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_wtqlduo6et from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_wtqlduo6et from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_wtqlduo6et from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_wtqlduo6et.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_wtqlduo6et.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_wtqlduo6et.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
|
StorybookError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-WOS3OQVT.js";
|
|
15
15
|
import {
|
|
16
16
|
require_dist
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-CW7HJRCY.js";
|
|
18
18
|
import {
|
|
19
19
|
require_picocolors
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-XFU23B4C.js";
|
|
21
21
|
import {
|
|
22
22
|
__toESM
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-TOXVUAH2.js";
|
|
24
24
|
|
|
25
25
|
// src/server-errors.ts
|
|
26
26
|
var import_picocolors = __toESM(require_picocolors(), 1), import_ts_dedent = __toESM(require_dist(), 1);
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_wtqlduo6et from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_wtqlduo6et from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_wtqlduo6et from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_wtqlduo6et.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_wtqlduo6et.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_wtqlduo6et.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
|
+
// ../../node_modules/pathe/dist/shared/pathe.ff20891b.mjs
|
|
14
14
|
var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
|
|
15
15
|
function normalizeWindowsPath(input = "") {
|
|
16
16
|
return input && input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r) => r.toUpperCase());
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_wtqlduo6et from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_wtqlduo6et from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_wtqlduo6et from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_wtqlduo6et.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_wtqlduo6et.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_wtqlduo6et.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
import {
|
|
13
|
+
any
|
|
14
|
+
} from "./chunk-GKEAARBQ.js";
|
|
15
|
+
|
|
16
|
+
// src/cli/detect.ts
|
|
17
|
+
async function detectPnp() {
|
|
18
|
+
return !!any([".pnp.js", ".pnp.cjs"]);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export {
|
|
22
|
+
detectPnp
|
|
23
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_wtqlduo6et from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_wtqlduo6et from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_wtqlduo6et from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_wtqlduo6et.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_wtqlduo6et.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_wtqlduo6et.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -12,11 +12,11 @@ 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-TOXVUAH2.js";
|
|
16
16
|
|
|
17
|
-
//
|
|
17
|
+
// ../../node_modules/totalist/sync/index.js
|
|
18
18
|
var require_sync = __commonJS({
|
|
19
|
-
"
|
|
19
|
+
"../../node_modules/totalist/sync/index.js"(exports) {
|
|
20
20
|
var { join, resolve } = __require("path"), { readdirSync, statSync } = __require("fs");
|
|
21
21
|
function totalist(dir, callback, pre = "") {
|
|
22
22
|
dir = resolve(".", dir);
|
|
@@ -28,9 +28,9 @@ var require_sync = __commonJS({
|
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
30
|
|
|
31
|
-
//
|
|
31
|
+
// ../../node_modules/@polka/url/build.js
|
|
32
32
|
var require_build = __commonJS({
|
|
33
|
-
"
|
|
33
|
+
"../../node_modules/@polka/url/build.js"(exports) {
|
|
34
34
|
var qs = __require("querystring");
|
|
35
35
|
function parse(req) {
|
|
36
36
|
let raw = req.url;
|
|
@@ -48,9 +48,9 @@ var require_build = __commonJS({
|
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
50
|
|
|
51
|
-
//
|
|
51
|
+
// ../../node_modules/mrmime/index.js
|
|
52
52
|
var require_mrmime = __commonJS({
|
|
53
|
-
"
|
|
53
|
+
"../../node_modules/mrmime/index.js"(exports) {
|
|
54
54
|
var mimes = {
|
|
55
55
|
"3g2": "video/3gpp2",
|
|
56
56
|
"3gp": "video/3gpp",
|
|
@@ -500,9 +500,9 @@ var require_mrmime = __commonJS({
|
|
|
500
500
|
}
|
|
501
501
|
});
|
|
502
502
|
|
|
503
|
-
//
|
|
503
|
+
// ../../node_modules/sirv/build.js
|
|
504
504
|
var require_build2 = __commonJS({
|
|
505
|
-
"
|
|
505
|
+
"../../node_modules/sirv/build.js"(exports, module) {
|
|
506
506
|
var fs = __require("fs"), { join, normalize, resolve } = __require("path"), { totalist } = require_sync(), { parse } = require_build(), { lookup } = require_mrmime(), noop = () => {
|
|
507
507
|
};
|
|
508
508
|
function isMatch(uri, arr) {
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_wtqlduo6et from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_wtqlduo6et from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_wtqlduo6et from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_wtqlduo6et.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_wtqlduo6et.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_wtqlduo6et.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-CW7HJRCY.js";
|
|
15
15
|
import {
|
|
16
16
|
__toESM
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-TOXVUAH2.js";
|
|
18
18
|
|
|
19
19
|
// src/csf-tools/CsfFile.ts
|
|
20
20
|
var import_ts_dedent = __toESM(require_dist(), 1);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_wtqlduo6et from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_wtqlduo6et from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_wtqlduo6et from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_wtqlduo6et.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_wtqlduo6et.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_wtqlduo6et.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_wtqlduo6et from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_wtqlduo6et from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_wtqlduo6et from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_wtqlduo6et.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_wtqlduo6et.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_wtqlduo6et.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_build
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-Q5ZQH2OQ.js";
|
|
15
15
|
import {
|
|
16
16
|
StorybookError
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-WOS3OQVT.js";
|
|
18
18
|
import {
|
|
19
19
|
resolvePackageDir
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-URBB5EGY.js";
|
|
21
21
|
import {
|
|
22
22
|
relative
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-OV2CP4VV.js";
|
|
24
24
|
import {
|
|
25
25
|
require_dist
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-CW7HJRCY.js";
|
|
27
27
|
import {
|
|
28
28
|
require_picocolors
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-XFU23B4C.js";
|
|
30
30
|
import {
|
|
31
31
|
__toESM
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-TOXVUAH2.js";
|
|
33
33
|
|
|
34
34
|
// src/core-server/utils/server-statics.ts
|
|
35
35
|
import { existsSync, statSync } from "node:fs";
|
|
@@ -221,7 +221,7 @@ async function withTelemetry(eventType, options, run) {
|
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
223
|
|
|
224
|
-
//
|
|
224
|
+
// ../../node_modules/es-toolkit/dist/function/debounce.mjs
|
|
225
225
|
function debounce(func, debounceMs, { signal, edges } = {}) {
|
|
226
226
|
let pendingThis, pendingArgs = null, leading = edges != null && edges.includes("leading"), trailing = edges == null || edges.includes("trailing"), invoke = () => {
|
|
227
227
|
pendingArgs !== null && (func.apply(pendingThis, pendingArgs), pendingThis = void 0, pendingArgs = null);
|
|
@@ -236,7 +236,7 @@ function debounce(func, debounceMs, { signal, edges } = {}) {
|
|
|
236
236
|
}, cancel = () => {
|
|
237
237
|
cancelTimer(), pendingThis = void 0, pendingArgs = null;
|
|
238
238
|
}, flush = () => {
|
|
239
|
-
invoke();
|
|
239
|
+
cancelTimer(), invoke();
|
|
240
240
|
}, debounced = function(...args) {
|
|
241
241
|
if (signal?.aborted)
|
|
242
242
|
return;
|
|
@@ -247,15 +247,86 @@ function debounce(func, debounceMs, { signal, edges } = {}) {
|
|
|
247
247
|
return debounced.schedule = schedule, debounced.cancel = cancel, debounced.flush = flush, signal?.addEventListener("abort", cancel, { once: !0 }), debounced;
|
|
248
248
|
}
|
|
249
249
|
|
|
250
|
-
//
|
|
250
|
+
// ../../node_modules/es-toolkit/dist/function/throttle.mjs
|
|
251
251
|
function throttle(func, throttleMs, { signal, edges = ["leading", "trailing"] } = {}) {
|
|
252
252
|
let pendingAt = null, debounced = debounce(func, throttleMs, { signal, edges }), throttled = function(...args) {
|
|
253
|
-
pendingAt == null ? pendingAt = Date.now() : Date.now() - pendingAt >= throttleMs && (pendingAt = Date.now(), debounced.cancel()), debounced
|
|
253
|
+
pendingAt == null ? pendingAt = Date.now() : Date.now() - pendingAt >= throttleMs && (pendingAt = Date.now(), debounced.cancel()), debounced(...args);
|
|
254
254
|
};
|
|
255
255
|
return throttled.cancel = debounced.cancel, throttled.flush = debounced.flush, throttled;
|
|
256
256
|
}
|
|
257
257
|
|
|
258
|
-
//
|
|
258
|
+
// ../../node_modules/es-toolkit/dist/function/after.mjs
|
|
259
|
+
function after(n, func) {
|
|
260
|
+
if (!Number.isInteger(n) || n < 0)
|
|
261
|
+
throw new Error("n must be a non-negative integer.");
|
|
262
|
+
let counter = 0;
|
|
263
|
+
return (...args) => {
|
|
264
|
+
if (++counter >= n)
|
|
265
|
+
return func(...args);
|
|
266
|
+
};
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
// ../../node_modules/es-toolkit/dist/function/ary.mjs
|
|
270
|
+
function ary(func, n) {
|
|
271
|
+
return function(...args) {
|
|
272
|
+
return func.apply(this, args.slice(0, n));
|
|
273
|
+
};
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
// ../../node_modules/es-toolkit/dist/function/asyncNoop.mjs
|
|
277
|
+
async function asyncNoop() {
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
// ../../node_modules/es-toolkit/dist/function/flow.mjs
|
|
281
|
+
function flow(...funcs) {
|
|
282
|
+
return function(...args) {
|
|
283
|
+
let result = funcs.length ? funcs[0].apply(this, args) : args[0];
|
|
284
|
+
for (let i = 1; i < funcs.length; i++)
|
|
285
|
+
result = funcs[i].call(this, result);
|
|
286
|
+
return result;
|
|
287
|
+
};
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
// ../../node_modules/es-toolkit/dist/function/flowRight.mjs
|
|
291
|
+
function flowRight(...funcs) {
|
|
292
|
+
return flow(...funcs.reverse());
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
// ../../node_modules/es-toolkit/dist/function/identity.mjs
|
|
296
|
+
function identity(x) {
|
|
297
|
+
return x;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
// ../../node_modules/es-toolkit/dist/function/memoize.mjs
|
|
301
|
+
function memoize(fn, options = {}) {
|
|
302
|
+
let { cache: cache2 = /* @__PURE__ */ new Map(), getCacheKey } = options, memoizedFn = function(arg) {
|
|
303
|
+
let key = getCacheKey ? getCacheKey(arg) : arg;
|
|
304
|
+
if (cache2.has(key))
|
|
305
|
+
return cache2.get(key);
|
|
306
|
+
let result = fn.call(this, arg);
|
|
307
|
+
return cache2.set(key, result), result;
|
|
308
|
+
};
|
|
309
|
+
return memoizedFn.cache = cache2, memoizedFn;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
// ../../node_modules/es-toolkit/dist/function/negate.mjs
|
|
313
|
+
function negate(func) {
|
|
314
|
+
return ((...args) => !func(...args));
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
// ../../node_modules/es-toolkit/dist/function/noop.mjs
|
|
318
|
+
function noop() {
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
// ../../node_modules/es-toolkit/dist/function/once.mjs
|
|
322
|
+
function once2(func) {
|
|
323
|
+
let called = !1, cache2;
|
|
324
|
+
return function(...args) {
|
|
325
|
+
return called || (called = !0, cache2 = func(...args)), cache2;
|
|
326
|
+
};
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
// ../../node_modules/es-toolkit/dist/function/partial.mjs
|
|
259
330
|
function partial(func, ...partialArgs) {
|
|
260
331
|
return partialImpl(func, placeholderSymbol, ...partialArgs);
|
|
261
332
|
}
|
|
@@ -269,7 +340,7 @@ function partialImpl(func, placeholder, ...partialArgs) {
|
|
|
269
340
|
var placeholderSymbol = Symbol("partial.placeholder");
|
|
270
341
|
partial.placeholder = placeholderSymbol;
|
|
271
342
|
|
|
272
|
-
//
|
|
343
|
+
// ../../node_modules/es-toolkit/dist/function/partialRight.mjs
|
|
273
344
|
function partialRight(func, ...partialArgs) {
|
|
274
345
|
return partialRightImpl(func, placeholderSymbol2, ...partialArgs);
|
|
275
346
|
}
|
|
@@ -283,15 +354,88 @@ function partialRightImpl(func, placeholder, ...partialArgs) {
|
|
|
283
354
|
var placeholderSymbol2 = Symbol("partialRight.placeholder");
|
|
284
355
|
partialRight.placeholder = placeholderSymbol2;
|
|
285
356
|
|
|
286
|
-
//
|
|
287
|
-
|
|
357
|
+
// ../../node_modules/es-toolkit/dist/function/rest.mjs
|
|
358
|
+
function rest(func, startIndex = func.length - 1) {
|
|
359
|
+
return function(...args) {
|
|
360
|
+
let rest2 = args.slice(startIndex), params = args.slice(0, startIndex);
|
|
361
|
+
for (; params.length < startIndex; )
|
|
362
|
+
params.push(void 0);
|
|
363
|
+
return func.apply(this, [...params, rest2]);
|
|
364
|
+
};
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
// ../../node_modules/es-toolkit/dist/error/AbortError.mjs
|
|
368
|
+
var AbortError = class extends Error {
|
|
369
|
+
constructor(message = "The operation was aborted") {
|
|
370
|
+
super(message), this.name = "AbortError";
|
|
371
|
+
}
|
|
372
|
+
};
|
|
373
|
+
|
|
374
|
+
// ../../node_modules/es-toolkit/dist/promise/delay.mjs
|
|
375
|
+
function delay(ms, { signal } = {}) {
|
|
376
|
+
return new Promise((resolve2, reject) => {
|
|
377
|
+
let abortError = () => {
|
|
378
|
+
reject(new AbortError());
|
|
379
|
+
}, abortHandler = () => {
|
|
380
|
+
clearTimeout(timeoutId), abortError();
|
|
381
|
+
};
|
|
382
|
+
if (signal?.aborted)
|
|
383
|
+
return abortError();
|
|
384
|
+
let timeoutId = setTimeout(() => {
|
|
385
|
+
signal?.removeEventListener("abort", abortHandler), resolve2();
|
|
386
|
+
}, ms);
|
|
387
|
+
signal?.addEventListener("abort", abortHandler, { once: !0 });
|
|
388
|
+
});
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
// ../../node_modules/es-toolkit/dist/function/retry.mjs
|
|
392
|
+
var DEFAULT_DELAY = 0, DEFAULT_RETRIES = Number.POSITIVE_INFINITY;
|
|
393
|
+
async function retry(func, _options) {
|
|
394
|
+
let delay$1, retries, signal;
|
|
395
|
+
typeof _options == "number" ? (delay$1 = DEFAULT_DELAY, retries = _options, signal = void 0) : (delay$1 = _options?.delay ?? DEFAULT_DELAY, retries = _options?.retries ?? DEFAULT_RETRIES, signal = _options?.signal);
|
|
396
|
+
let error;
|
|
397
|
+
for (let attempts = 0; attempts < retries; attempts++) {
|
|
398
|
+
if (signal?.aborted)
|
|
399
|
+
throw error ?? new Error("The retry operation was aborted due to an abort signal.");
|
|
400
|
+
try {
|
|
401
|
+
return await func();
|
|
402
|
+
} catch (err) {
|
|
403
|
+
error = err;
|
|
404
|
+
let currentDelay = typeof delay$1 == "function" ? delay$1(attempts) : delay$1;
|
|
405
|
+
await delay(currentDelay);
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
throw error;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
// ../../node_modules/es-toolkit/dist/function/unary.mjs
|
|
412
|
+
function unary(func) {
|
|
413
|
+
return ary(func, 1);
|
|
414
|
+
}
|
|
288
415
|
|
|
289
416
|
export {
|
|
290
417
|
useStatics,
|
|
291
418
|
parseStaticDir,
|
|
292
419
|
mapStaticDir,
|
|
420
|
+
after,
|
|
421
|
+
ary,
|
|
422
|
+
asyncNoop,
|
|
293
423
|
debounce,
|
|
424
|
+
flow,
|
|
425
|
+
flowRight,
|
|
426
|
+
identity,
|
|
427
|
+
memoize,
|
|
428
|
+
negate,
|
|
429
|
+
noop,
|
|
430
|
+
once2 as once,
|
|
431
|
+
partialImpl,
|
|
432
|
+
partialRightImpl,
|
|
433
|
+
rest,
|
|
434
|
+
AbortError,
|
|
435
|
+
delay,
|
|
436
|
+
retry,
|
|
294
437
|
throttle,
|
|
438
|
+
unary,
|
|
295
439
|
getErrorLevel,
|
|
296
440
|
sendTelemetryError,
|
|
297
441
|
isTelemetryEnabled,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_wtqlduo6et from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_wtqlduo6et from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_wtqlduo6et from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_wtqlduo6et.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_wtqlduo6et.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_wtqlduo6et.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_wtqlduo6et from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_wtqlduo6et from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_wtqlduo6et from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_wtqlduo6et.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_wtqlduo6et.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_wtqlduo6et.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -12,9 +12,9 @@ var require = CJS_COMPAT_NODE_MODULE_2297kyafub.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
dirname,
|
|
14
14
|
join
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-OV2CP4VV.js";
|
|
16
16
|
|
|
17
|
-
//
|
|
17
|
+
// ../../node_modules/exsolve/dist/index.mjs
|
|
18
18
|
import fs, { lstatSync, realpathSync, statSync } from "node:fs";
|
|
19
19
|
import { URL as URL$1, fileURLToPath, pathToFileURL } from "node:url";
|
|
20
20
|
import path, { isAbsolute } from "node:path";
|