storybook 10.2.0-alpha.1 → 10.2.0-alpha.3
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-NZMVUW5T.js +7 -0
- package/dist/_browser-chunks/{chunk-RP5RXKFU.js → chunk-Q5RYDXT3.js} +38 -30
- 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-U6SN6ZED.js} +22 -22
- package/dist/_node-chunks/{camelcase-64II7H4U.js → camelcase-GLXVGCEV.js} +8 -8
- package/dist/_node-chunks/{chunk-KMTK5W6O.js → chunk-2IFACTU4.js} +19 -19
- package/dist/_node-chunks/{chunk-5NWCBUGD.js → chunk-4VZME5CV.js} +6 -6
- package/dist/_node-chunks/{chunk-PGFQADZC.js → chunk-5SCVRD6U.js} +7 -7
- package/dist/_node-chunks/{chunk-VFTNRF5X.js → chunk-5ZGZ22PV.js} +17 -17
- package/dist/_node-chunks/{chunk-LEDV47V2.js → chunk-6RXAFKLM.js} +15 -15
- package/dist/_node-chunks/chunk-6WHPDWFA.js +61 -0
- package/dist/_node-chunks/chunk-B6AJKALV.js +20 -0
- package/dist/_node-chunks/{chunk-5GNBLJKS.js → chunk-C2G5ML5F.js} +8 -8
- package/dist/_node-chunks/chunk-CFCZ5PKC.js +18 -0
- package/dist/_node-chunks/{chunk-ET4VMMZG.js → chunk-DO56XDMZ.js} +10 -10
- package/dist/_node-chunks/{chunk-SR5ZYD7K.js → chunk-E6CKDKNL.js} +8 -8
- package/dist/_node-chunks/{chunk-77APSTTM.js → chunk-H4BZRGVO.js} +8 -8
- package/dist/_node-chunks/{chunk-TX77W2KY.js → chunk-HGYHQF7Z.js} +597 -593
- package/dist/_node-chunks/{chunk-4EZYJUAC.js → chunk-HKTRFCJD.js} +10 -10
- package/dist/_node-chunks/{chunk-KXDU466E.js → chunk-HYH2IT7K.js} +31 -31
- package/dist/_node-chunks/{chunk-R3WYNAT5.js → chunk-IKSK6CEY.js} +6 -6
- package/dist/_node-chunks/{chunk-VR5LMO3F.js → chunk-KP6H4S3L.js} +9 -9
- package/dist/_node-chunks/{chunk-JYMZJCZ7.js → chunk-LHBDNMEP.js} +66 -72
- package/dist/_node-chunks/{chunk-ZI2RAI3I.js → chunk-MUWHX7GN.js} +6 -6
- package/dist/_node-chunks/{chunk-AJUO2ZU3.js → chunk-N3O3HJMU.js} +9 -9
- package/dist/_node-chunks/{chunk-FTR6MHOX.js → chunk-NKUDIVPF.js} +619 -148
- package/dist/_node-chunks/chunk-O5OIO47U.js +23 -0
- package/dist/_node-chunks/{chunk-GYZQMMTN.js → chunk-Q27GKV7Y.js} +9 -9
- package/dist/_node-chunks/{chunk-4BQMSZKI.js → chunk-Q47IIVLL.js} +165 -191
- package/dist/_node-chunks/{chunk-F7377GT2.js → chunk-SM7QXYN4.js} +48 -32
- package/dist/_node-chunks/{chunk-CLNMK7MP.js → chunk-VKFEIIOF.js} +249 -240
- package/dist/_node-chunks/{chunk-TP6ICLTL.js → chunk-XYVZIRZC.js} +6 -6
- package/dist/_node-chunks/{chunk-GOOBGRAV.js → chunk-YPCGEC3N.js} +165 -21
- package/dist/_node-chunks/{dist-HGQ5R6JU.js → dist-GGDI7EVD.js} +10 -10
- package/dist/_node-chunks/{globby-5XJTXKUJ.js → globby-DY2UCDKN.js} +154 -154
- package/dist/_node-chunks/{lib-XNLTS2RI.js → lib-PFKECSVA.js} +16 -16
- package/dist/_node-chunks/{mdx-N42X6CFJ-7WF3QWVO.js → mdx-N42X6CFJ-OPAAI5WZ.js} +11 -11
- package/dist/_node-chunks/{p-limit-RBKYTJKF.js → p-limit-PMYE6ZFC.js} +8 -8
- 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 +2 -1
- package/dist/cli/index.js +18 -18
- package/dist/common/index.d.ts +25 -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 +127 -127
- 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 +21087 -14648
- 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 +3 -3
- package/dist/node-logger/index.js +9 -9
- package/dist/preview/runtime.js +22291 -15810
- 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 +3237 -1653
- package/dist/theming/create.js +3 -3
- package/dist/theming/index.js +38 -38
- package/dist/types/index.d.ts +3 -1
- 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,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_2512dr0mzhu from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_2512dr0mzhu from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_2512dr0mzhu from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_2512dr0mzhu.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_2512dr0mzhu.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_2512dr0mzhu.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_2512dr0mzhu from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_2512dr0mzhu from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_2512dr0mzhu from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_2512dr0mzhu.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_2512dr0mzhu.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_2512dr0mzhu.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-6RXAFKLM.js";
|
|
15
15
|
import {
|
|
16
16
|
StorybookError
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-MUWHX7GN.js";
|
|
18
18
|
import {
|
|
19
19
|
resolvePackageDir
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-E6CKDKNL.js";
|
|
21
21
|
import {
|
|
22
22
|
relative
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-5SCVRD6U.js";
|
|
24
24
|
import {
|
|
25
25
|
require_dist
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-N3O3HJMU.js";
|
|
27
27
|
import {
|
|
28
28
|
require_picocolors
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-Q27GKV7Y.js";
|
|
30
30
|
import {
|
|
31
31
|
__toESM
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-4VZME5CV.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,20 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_2512dr0mzhu from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_2512dr0mzhu from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_2512dr0mzhu from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_2512dr0mzhu.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_2512dr0mzhu.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_2512dr0mzhu.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
|
toEstree
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-C2G5ML5F.js";
|
|
15
|
+
import "./chunk-4VZME5CV.js";
|
|
16
16
|
|
|
17
|
-
//
|
|
17
|
+
// ../../node_modules/@storybook/docs-mdx/dist/index.js
|
|
18
18
|
var getAttr = (elt, what) => elt.attributes.find((n) => n.type === "JSXAttribute" && n.name.name === what), getAttrValue = (elt, what) => getAttr(elt, what)?.value, getAttrLiteral = (elt, what) => {
|
|
19
19
|
let attrValue = getAttrValue(elt, what);
|
|
20
20
|
if (attrValue) {
|
|
@@ -107,7 +107,7 @@ var getAttr = (elt, what) => elt.attributes.find((n) => n.type === "JSXAttribute
|
|
|
107
107
|
isTemplate: !1,
|
|
108
108
|
metaTags: void 0,
|
|
109
109
|
imports: void 0
|
|
110
|
-
}, { compile } = await import("./mdx-N42X6CFJ-
|
|
110
|
+
}, { compile } = await import("./mdx-N42X6CFJ-OPAAI5WZ.js");
|
|
111
111
|
await compile(code, {
|
|
112
112
|
rehypePlugins: [[plugin, store]]
|
|
113
113
|
});
|