storybook 10.1.0-alpha.13 → 10.1.0-alpha.14
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-WXP2XJ3O.js → chunk-P4F4UVXX.js} +1 -0
- package/dist/_browser-chunks/{chunk-BE2DAXKJ.js → chunk-SS2NHR7W.js} +4 -1
- package/dist/_browser-chunks/{syntaxhighlighter-WKBQ5RC7.js → syntaxhighlighter-IQDEPFLK.js} +1 -1
- package/dist/_node-chunks/{builder-manager-DWDUVXZM.js → builder-manager-FQ5J6V3U.js} +17 -12
- package/dist/_node-chunks/{camelcase-EETCRTJX.js → camelcase-VGUYV77Z.js} +7 -7
- package/dist/_node-chunks/{chunk-FCVNHU2F.js → chunk-2JR3QBT2.js} +7 -7
- package/dist/_node-chunks/chunk-3EBH66BB.js +23 -0
- package/dist/_node-chunks/{chunk-447655DM.js → chunk-4ZFHN3ZY.js} +6 -6
- package/dist/_node-chunks/{chunk-RUUNVQ6W.js → chunk-63PL4NNE.js} +9 -9
- package/dist/_node-chunks/{chunk-OVVZIUHS.js → chunk-A4KENTXT.js} +7 -7
- package/dist/_node-chunks/{chunk-XKRVQL2G.js → chunk-ALIA3J6S.js} +44 -10
- package/dist/_node-chunks/{chunk-4EJUC2SD.js → chunk-C2HKH2XQ.js} +31 -48
- package/dist/_node-chunks/{chunk-LPKSBF62.js → chunk-DQNBAQYT.js} +6 -6
- package/dist/_node-chunks/{chunk-MIA5324I.js → chunk-F74UHHR6.js} +7 -7
- package/dist/_node-chunks/{chunk-B76FDKVB.js → chunk-H5XWXVWR.js} +6 -6
- package/dist/_node-chunks/{chunk-WC2YEQHJ.js → chunk-JMP7YFX2.js} +6 -6
- package/dist/_node-chunks/{chunk-DPFYWXEA.js → chunk-JZR4DHG2.js} +19 -7
- package/dist/_node-chunks/{chunk-DIPKXLEP.js → chunk-KEA7CVMZ.js} +80 -13
- package/dist/_node-chunks/{chunk-CMYD2JNN.js → chunk-KF3WTAEP.js} +7 -7
- package/dist/_node-chunks/{chunk-URLNGLC2.js → chunk-LPPM7L5D.js} +10 -10
- package/dist/_node-chunks/{chunk-7IAVT2FU.js → chunk-MJUDR7HQ.js} +7 -7
- package/dist/_node-chunks/chunk-NPB4THZQ.js +18 -0
- package/dist/_node-chunks/chunk-NZBK3DSJ.js +29 -0
- package/dist/_node-chunks/{chunk-7KFHRNOT.js → chunk-Q2QUNQK6.js} +7 -7
- package/dist/_node-chunks/{chunk-CLUBH2LP.js → chunk-TMCKISJR.js} +65 -101
- package/dist/_node-chunks/chunk-TWK7AR3U.js +6024 -0
- package/dist/_node-chunks/{chunk-2W4GZCLE.js → chunk-V7CXWJXC.js} +7 -7
- package/dist/_node-chunks/{chunk-B7PGKETD.js → chunk-W4F3T6CY.js} +8 -8
- package/dist/_node-chunks/{chunk-Z2OWEMX3.js → chunk-WACDSFMO.js} +9 -9
- package/dist/_node-chunks/{chunk-MJM4TEMP.js → chunk-WVXZFQQU.js} +7 -7
- package/dist/_node-chunks/{chunk-LYEZOJ43.js → chunk-XBPE4PT7.js} +6 -6
- package/dist/_node-chunks/chunk-YMM6BYF2.js +61 -0
- package/dist/_node-chunks/{chunk-AZIPBEBK.js → chunk-ZGZKNZ5S.js} +6 -6
- package/dist/_node-chunks/{dist-22CLJ4BC.js → dist-DR3AP3RJ.js} +9 -9
- package/dist/_node-chunks/{globby-GR24TGSK.js → globby-D4FPSHY2.js} +9 -9
- package/dist/_node-chunks/{lib-G2LGVRPC.js → lib-ZEFOVNTK.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-W6P6IDDW.js → mdx-N42X6CFJ-PJF3ICCG.js} +8 -8
- package/dist/_node-chunks/{p-limit-K4FZHG2F.js → p-limit-CYQOFYPV.js} +7 -7
- package/dist/babel/index.js +10 -10
- package/dist/bin/core.js +12 -11
- package/dist/bin/dispatcher.js +11 -11
- package/dist/bin/loader.js +9 -9
- package/dist/cli/index.d.ts +788 -1
- package/dist/cli/index.js +42 -5999
- package/dist/common/index.d.ts +1 -1
- package/dist/common/index.js +22 -21
- package/dist/components/index.d.ts +136 -26
- package/dist/components/index.js +3163 -2859
- package/dist/core-server/index.js +51 -108
- package/dist/core-server/presets/common-manager.js +5 -5
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +266 -35
- package/dist/csf/index.js +2 -2
- package/dist/csf-tools/index.js +9 -9
- package/dist/manager/globals-runtime.js +21553 -21158
- package/dist/manager/manager-stores.d.ts +1 -0
- package/dist/manager/manager-stores.js +23 -0
- package/dist/manager/runtime.js +6694 -719
- package/dist/manager-api/index.d.ts +1803 -2
- package/dist/manager-api/index.js +102 -8
- package/dist/mocking-utils/index.js +8 -8
- package/dist/node-logger/index.js +9 -9
- package/dist/preview/runtime.js +4 -1
- package/dist/preview-api/index.js +2 -2
- package/dist/server-errors.js +11 -11
- package/dist/telemetry/index.d.ts +2 -2
- package/dist/telemetry/index.js +23 -23
- package/package.json +5 -1
- package/dist/_node-chunks/chunk-4ZJOH2UN.js +0 -61
- package/dist/_node-chunks/chunk-654SJIMS.js +0 -23
- package/dist/_node-chunks/chunk-JQ7RQS5Q.js +0 -26
- package/dist/_node-chunks/chunk-LEL5OSY3.js +0 -18
|
@@ -1,21 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_yntchggdu3k from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_yntchggdu3k from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_yntchggdu3k from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_yntchggdu3k.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_yntchggdu3k.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_yntchggdu3k.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
|
-
import {
|
|
13
|
-
detectPnp
|
|
14
|
-
} from "../_node-chunks/chunk-654SJIMS.js";
|
|
15
12
|
import {
|
|
16
13
|
StatusTypeIdMismatchError
|
|
17
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-LPPM7L5D.js";
|
|
18
15
|
import {
|
|
16
|
+
debounce,
|
|
19
17
|
getErrorLevel,
|
|
20
18
|
isTelemetryEnabled,
|
|
21
19
|
mapStaticDir,
|
|
@@ -23,64 +21,66 @@ import {
|
|
|
23
21
|
sendTelemetryError,
|
|
24
22
|
useStatics,
|
|
25
23
|
withTelemetry
|
|
26
|
-
} from "../_node-chunks/chunk-
|
|
27
|
-
import "../_node-chunks/chunk-
|
|
24
|
+
} from "../_node-chunks/chunk-KEA7CVMZ.js";
|
|
25
|
+
import "../_node-chunks/chunk-V7CXWJXC.js";
|
|
26
|
+
import {
|
|
27
|
+
detectPnp
|
|
28
|
+
} from "../_node-chunks/chunk-3EBH66BB.js";
|
|
28
29
|
import {
|
|
29
30
|
StorybookError
|
|
30
|
-
} from "../_node-chunks/chunk-
|
|
31
|
+
} from "../_node-chunks/chunk-XBPE4PT7.js";
|
|
31
32
|
import {
|
|
32
33
|
telemetry
|
|
33
|
-
} from "../_node-chunks/chunk-
|
|
34
|
-
import "../_node-chunks/chunk-
|
|
34
|
+
} from "../_node-chunks/chunk-TMCKISJR.js";
|
|
35
|
+
import "../_node-chunks/chunk-NPB4THZQ.js";
|
|
35
36
|
import {
|
|
36
37
|
optionalEnvToBoolean,
|
|
37
38
|
require_cross_spawn,
|
|
38
39
|
resolveImport,
|
|
39
40
|
supportedExtensions,
|
|
40
41
|
userOrAutoTitleFromSpecifier
|
|
41
|
-
} from "../_node-chunks/chunk-
|
|
42
|
-
import "../_node-chunks/chunk-
|
|
43
|
-
import "../_node-chunks/chunk-
|
|
44
|
-
import {
|
|
45
|
-
up2 as up
|
|
46
|
-
} from "../_node-chunks/chunk-DPFYWXEA.js";
|
|
47
|
-
import "../_node-chunks/chunk-7IAVT2FU.js";
|
|
42
|
+
} from "../_node-chunks/chunk-C2HKH2XQ.js";
|
|
43
|
+
import "../_node-chunks/chunk-YMM6BYF2.js";
|
|
44
|
+
import "../_node-chunks/chunk-MJUDR7HQ.js";
|
|
48
45
|
import {
|
|
49
46
|
require_pretty_hrtime
|
|
50
|
-
} from "../_node-chunks/chunk-
|
|
51
|
-
import "../_node-chunks/chunk-
|
|
47
|
+
} from "../_node-chunks/chunk-W4F3T6CY.js";
|
|
48
|
+
import "../_node-chunks/chunk-H5XWXVWR.js";
|
|
49
|
+
import "../_node-chunks/chunk-ALIA3J6S.js";
|
|
52
50
|
import {
|
|
53
|
-
invariant
|
|
54
|
-
|
|
51
|
+
invariant,
|
|
52
|
+
up2 as up
|
|
53
|
+
} from "../_node-chunks/chunk-JZR4DHG2.js";
|
|
55
54
|
import {
|
|
56
55
|
importModule,
|
|
57
56
|
resolvePackageDir
|
|
58
|
-
} from "../_node-chunks/chunk-
|
|
57
|
+
} from "../_node-chunks/chunk-WVXZFQQU.js";
|
|
58
|
+
import "../_node-chunks/chunk-NZBK3DSJ.js";
|
|
59
59
|
import {
|
|
60
60
|
dirname,
|
|
61
61
|
join,
|
|
62
62
|
relative,
|
|
63
63
|
resolve
|
|
64
|
-
} from "../_node-chunks/chunk-
|
|
65
|
-
import "../_node-chunks/chunk-
|
|
64
|
+
} from "../_node-chunks/chunk-DQNBAQYT.js";
|
|
65
|
+
import "../_node-chunks/chunk-F74UHHR6.js";
|
|
66
66
|
import {
|
|
67
67
|
slash
|
|
68
|
-
} from "../_node-chunks/chunk-
|
|
68
|
+
} from "../_node-chunks/chunk-4ZFHN3ZY.js";
|
|
69
69
|
import {
|
|
70
70
|
require_dist
|
|
71
|
-
} from "../_node-chunks/chunk-
|
|
71
|
+
} from "../_node-chunks/chunk-KF3WTAEP.js";
|
|
72
72
|
import {
|
|
73
73
|
require_lib,
|
|
74
74
|
require_src
|
|
75
|
-
} from "../_node-chunks/chunk-
|
|
75
|
+
} from "../_node-chunks/chunk-2JR3QBT2.js";
|
|
76
76
|
import {
|
|
77
77
|
require_picocolors
|
|
78
|
-
} from "../_node-chunks/chunk-
|
|
78
|
+
} from "../_node-chunks/chunk-A4KENTXT.js";
|
|
79
79
|
import {
|
|
80
80
|
__commonJS,
|
|
81
81
|
__require,
|
|
82
82
|
__toESM
|
|
83
|
-
} from "../_node-chunks/chunk-
|
|
83
|
+
} from "../_node-chunks/chunk-JMP7YFX2.js";
|
|
84
84
|
|
|
85
85
|
// ../node_modules/tsconfig-paths/lib/filesystem.js
|
|
86
86
|
var require_filesystem = __commonJS({
|
|
@@ -1000,7 +1000,7 @@ var require_stringify_stream = __commonJS({
|
|
|
1000
1000
|
STRING_STREAM,
|
|
1001
1001
|
OBJECT_STREAM
|
|
1002
1002
|
}
|
|
1003
|
-
} = require_utils(),
|
|
1003
|
+
} = require_utils(), noop = () => {
|
|
1004
1004
|
}, hasOwnProperty2 = Object.prototype.hasOwnProperty, wellformedStringStringify = JSON.stringify("\uD800") === '"\\ud800"' ? JSON.stringify : (s) => JSON.stringify(s).replace(
|
|
1005
1005
|
new RegExp("\\p{Surrogate}", "gu"),
|
|
1006
1006
|
(m) => `\\u${m.charCodeAt(0).toString(16)}`
|
|
@@ -1075,7 +1075,7 @@ ${this.space.repeat(this._depth - 1)}]`) : this.push("]"), this.popStack();
|
|
|
1075
1075
|
}
|
|
1076
1076
|
this.space = normalizeSpace(space), this._depth = 0, this.error = null, this._processing = !1, this._ended = !1, this._readSize = 0, this._buffer = "", this._stack = null, this._visited = /* @__PURE__ */ new WeakSet(), this.pushStack({
|
|
1077
1077
|
handler: () => {
|
|
1078
|
-
this.popStack(), this.processValue({ "": value }, "", value,
|
|
1078
|
+
this.popStack(), this.processValue({ "": value }, "", value, noop);
|
|
1079
1079
|
}
|
|
1080
1080
|
});
|
|
1081
1081
|
}
|
|
@@ -1114,7 +1114,7 @@ ${this.space.repeat(this._depth - 1)}]`) : this.push("]"), this.popStack();
|
|
|
1114
1114
|
break;
|
|
1115
1115
|
case PROMISE:
|
|
1116
1116
|
this.pushStack({
|
|
1117
|
-
handler:
|
|
1117
|
+
handler: noop,
|
|
1118
1118
|
awaiting: !0
|
|
1119
1119
|
}), Promise.resolve(value).then((resolved) => {
|
|
1120
1120
|
this.popStack(), this.processValue(holder, key, resolved, callback), this.processStack();
|
|
@@ -1678,7 +1678,7 @@ var require_graceful_fs = __commonJS({
|
|
|
1678
1678
|
"../node_modules/graceful-fs/graceful-fs.js"(exports, module) {
|
|
1679
1679
|
var fs6 = __require("fs"), polyfills = require_polyfills(), legacy = require_legacy_streams(), clone = require_clone(), util = __require("util"), gracefulQueue, previousSymbol;
|
|
1680
1680
|
typeof Symbol == "function" && typeof Symbol.for == "function" ? (gracefulQueue = Symbol.for("graceful-fs.queue"), previousSymbol = Symbol.for("graceful-fs.previous")) : (gracefulQueue = "___graceful-fs.queue", previousSymbol = "___graceful-fs.previous");
|
|
1681
|
-
function
|
|
1681
|
+
function noop() {
|
|
1682
1682
|
}
|
|
1683
1683
|
function publishQueue(context, queue2) {
|
|
1684
1684
|
Object.defineProperty(context, gracefulQueue, {
|
|
@@ -1687,7 +1687,7 @@ var require_graceful_fs = __commonJS({
|
|
|
1687
1687
|
}
|
|
1688
1688
|
});
|
|
1689
1689
|
}
|
|
1690
|
-
var debug =
|
|
1690
|
+
var debug = noop;
|
|
1691
1691
|
util.debuglog ? debug = util.debuglog("gfs4") : /\bgfs4\b/i.test(process.env.NODE_DEBUG || "") && (debug = function() {
|
|
1692
1692
|
var m = util.format.apply(util, arguments);
|
|
1693
1693
|
m = "GFS4: " + m.split(/\n/).join(`
|
|
@@ -1876,15 +1876,15 @@ GFS4: `), console.error(m);
|
|
|
1876
1876
|
return fs7;
|
|
1877
1877
|
}
|
|
1878
1878
|
function enqueue(elem) {
|
|
1879
|
-
debug("ENQUEUE", elem[0].name, elem[1]), fs6[gracefulQueue].push(elem),
|
|
1879
|
+
debug("ENQUEUE", elem[0].name, elem[1]), fs6[gracefulQueue].push(elem), retry();
|
|
1880
1880
|
}
|
|
1881
1881
|
var retryTimer;
|
|
1882
1882
|
function resetQueue() {
|
|
1883
1883
|
for (var now = Date.now(), i = 0; i < fs6[gracefulQueue].length; ++i)
|
|
1884
1884
|
fs6[gracefulQueue][i].length > 2 && (fs6[gracefulQueue][i][3] = now, fs6[gracefulQueue][i][4] = now);
|
|
1885
|
-
|
|
1885
|
+
retry();
|
|
1886
1886
|
}
|
|
1887
|
-
function
|
|
1887
|
+
function retry() {
|
|
1888
1888
|
if (clearTimeout(retryTimer), retryTimer = void 0, fs6[gracefulQueue].length !== 0) {
|
|
1889
1889
|
var elem = fs6[gracefulQueue].shift(), fn = elem[0], args = elem[1], err = elem[2], startTime = elem[3], lastTime = elem[4];
|
|
1890
1890
|
if (startTime === void 0)
|
|
@@ -1897,7 +1897,7 @@ GFS4: `), console.error(m);
|
|
|
1897
1897
|
var sinceAttempt = Date.now() - lastTime, sinceStart = Math.max(lastTime - startTime, 1), desiredDelay = Math.min(sinceStart * 1.2, 100);
|
|
1898
1898
|
sinceAttempt >= desiredDelay ? (debug("RETRY", fn.name, args), fn.apply(null, args.concat([startTime]))) : fs6[gracefulQueue].push(elem);
|
|
1899
1899
|
}
|
|
1900
|
-
retryTimer === void 0 && (retryTimer = setTimeout(
|
|
1900
|
+
retryTimer === void 0 && (retryTimer = setTimeout(retry, 0));
|
|
1901
1901
|
}
|
|
1902
1902
|
}
|
|
1903
1903
|
}
|
|
@@ -3837,7 +3837,7 @@ var require_dist2 = __commonJS({
|
|
|
3837
3837
|
MapCache.prototype.has = mapCacheHas_default;
|
|
3838
3838
|
MapCache.prototype.set = mapCacheSet_default;
|
|
3839
3839
|
var MapCache_default = MapCache, FUNC_ERROR_TEXT = "Expected a function";
|
|
3840
|
-
function
|
|
3840
|
+
function memoize(func, resolver) {
|
|
3841
3841
|
if (typeof func != "function" || resolver != null && typeof resolver != "function")
|
|
3842
3842
|
throw new TypeError(FUNC_ERROR_TEXT);
|
|
3843
3843
|
var memoized = function() {
|
|
@@ -3847,10 +3847,10 @@ var require_dist2 = __commonJS({
|
|
|
3847
3847
|
var result = func.apply(this, args);
|
|
3848
3848
|
return memoized.cache = cache2.set(key, result) || cache2, result;
|
|
3849
3849
|
};
|
|
3850
|
-
return memoized.cache = new (
|
|
3850
|
+
return memoized.cache = new (memoize.Cache || MapCache_default)(), memoized;
|
|
3851
3851
|
}
|
|
3852
|
-
|
|
3853
|
-
var memoize_default =
|
|
3852
|
+
memoize.Cache = MapCache_default;
|
|
3853
|
+
var memoize_default = memoize, MAX_MEMOIZE_SIZE = 500;
|
|
3854
3854
|
function memoizeCapped(func) {
|
|
3855
3855
|
var result = memoize_default(func, function(key) {
|
|
3856
3856
|
return cache2.size === MAX_MEMOIZE_SIZE && cache2.clear(), key;
|
|
@@ -5147,7 +5147,7 @@ var makeAbsolute = (otherImport, normalizedPath, workingDir) => otherImport.star
|
|
|
5147
5147
|
let cacheKey = this.getFindMatchingFilesCacheKey(specifier, workingDir, ignoreWarnings), cached = this.findMatchingFilesCache.get(cacheKey);
|
|
5148
5148
|
if (cached)
|
|
5149
5149
|
return cached;
|
|
5150
|
-
let pathToSubIndex = {}, globCwd = slash(resolve2(workingDir, specifier.directory)), globPattern = specifier.files, { globby } = await import("../_node-chunks/globby-
|
|
5150
|
+
let pathToSubIndex = {}, globCwd = slash(resolve2(workingDir, specifier.directory)), globPattern = specifier.files, { globby } = await import("../_node-chunks/globby-D4FPSHY2.js"), files = await globby(globPattern, {
|
|
5151
5151
|
absolute: !0,
|
|
5152
5152
|
cwd: globCwd,
|
|
5153
5153
|
...commonGlobOptions(globPattern)
|
|
@@ -5336,7 +5336,7 @@ var makeAbsolute = (otherImport, normalizedPath, workingDir) => otherImport.star
|
|
|
5336
5336
|
async extractDocs(specifier, absolutePath, projectTags = []) {
|
|
5337
5337
|
let relativePath = relative2(this.options.workingDir, absolutePath);
|
|
5338
5338
|
try {
|
|
5339
|
-
let normalizedPath = normalizeStoryPath(relativePath), importPath = slash(normalizedPath), content = await readFile(absolutePath, { encoding: "utf8" }), { analyze } = await import("../_node-chunks/dist-
|
|
5339
|
+
let normalizedPath = normalizeStoryPath(relativePath), importPath = slash(normalizedPath), content = await readFile(absolutePath, { encoding: "utf8" }), { analyze } = await import("../_node-chunks/dist-DR3AP3RJ.js"), result = await analyze(content);
|
|
5340
5340
|
if (result.isTemplate)
|
|
5341
5341
|
return !1;
|
|
5342
5342
|
let absoluteImports = result.imports.map(
|
|
@@ -5596,7 +5596,7 @@ function print(p) {
|
|
|
5596
5596
|
// src/core-server/utils/get-builders.ts
|
|
5597
5597
|
import { MissingBuilderError } from "storybook/internal/server-errors";
|
|
5598
5598
|
async function getManagerBuilder() {
|
|
5599
|
-
return await import("../_node-chunks/builder-manager-
|
|
5599
|
+
return await import("../_node-chunks/builder-manager-FQ5J6V3U.js");
|
|
5600
5600
|
}
|
|
5601
5601
|
async function getPreviewBuilder(resolvedPreviewBuilder) {
|
|
5602
5602
|
return await importModule(resolvedPreviewBuilder);
|
|
@@ -5650,63 +5650,6 @@ import { writeFile as writeFile2 } from "node:fs/promises";
|
|
|
5650
5650
|
import { basename as basename3 } from "node:path";
|
|
5651
5651
|
import { STORY_INDEX_INVALIDATED } from "storybook/internal/core-events";
|
|
5652
5652
|
|
|
5653
|
-
// ../node_modules/es-toolkit/dist/function/debounce.mjs
|
|
5654
|
-
function debounce(func, debounceMs, { signal, edges } = {}) {
|
|
5655
|
-
let pendingThis, pendingArgs = null, leading = edges != null && edges.includes("leading"), trailing = edges == null || edges.includes("trailing"), invoke = () => {
|
|
5656
|
-
pendingArgs !== null && (func.apply(pendingThis, pendingArgs), pendingThis = void 0, pendingArgs = null);
|
|
5657
|
-
}, onTimerEnd = () => {
|
|
5658
|
-
trailing && invoke(), cancel();
|
|
5659
|
-
}, timeoutId = null, schedule = () => {
|
|
5660
|
-
timeoutId != null && clearTimeout(timeoutId), timeoutId = setTimeout(() => {
|
|
5661
|
-
timeoutId = null, onTimerEnd();
|
|
5662
|
-
}, debounceMs);
|
|
5663
|
-
}, cancelTimer = () => {
|
|
5664
|
-
timeoutId !== null && (clearTimeout(timeoutId), timeoutId = null);
|
|
5665
|
-
}, cancel = () => {
|
|
5666
|
-
cancelTimer(), pendingThis = void 0, pendingArgs = null;
|
|
5667
|
-
}, flush = () => {
|
|
5668
|
-
invoke();
|
|
5669
|
-
}, debounced = function(...args) {
|
|
5670
|
-
if (signal?.aborted)
|
|
5671
|
-
return;
|
|
5672
|
-
pendingThis = this, pendingArgs = args;
|
|
5673
|
-
let isFirstCall = timeoutId == null;
|
|
5674
|
-
schedule(), leading && isFirstCall && invoke();
|
|
5675
|
-
};
|
|
5676
|
-
return debounced.schedule = schedule, debounced.cancel = cancel, debounced.flush = flush, signal?.addEventListener("abort", cancel, { once: !0 }), debounced;
|
|
5677
|
-
}
|
|
5678
|
-
|
|
5679
|
-
// ../node_modules/es-toolkit/dist/function/partial.mjs
|
|
5680
|
-
function partial(func, ...partialArgs) {
|
|
5681
|
-
return partialImpl(func, placeholderSymbol, ...partialArgs);
|
|
5682
|
-
}
|
|
5683
|
-
function partialImpl(func, placeholder, ...partialArgs) {
|
|
5684
|
-
let partialed = function(...providedArgs) {
|
|
5685
|
-
let providedArgsIndex = 0, substitutedArgs = partialArgs.slice().map((arg) => arg === placeholder ? providedArgs[providedArgsIndex++] : arg), remainingArgs = providedArgs.slice(providedArgsIndex);
|
|
5686
|
-
return func.apply(this, substitutedArgs.concat(remainingArgs));
|
|
5687
|
-
};
|
|
5688
|
-
return func.prototype && (partialed.prototype = Object.create(func.prototype)), partialed;
|
|
5689
|
-
}
|
|
5690
|
-
var placeholderSymbol = Symbol("partial.placeholder");
|
|
5691
|
-
partial.placeholder = placeholderSymbol;
|
|
5692
|
-
|
|
5693
|
-
// ../node_modules/es-toolkit/dist/function/partialRight.mjs
|
|
5694
|
-
function partialRight(func, ...partialArgs) {
|
|
5695
|
-
return partialRightImpl(func, placeholderSymbol2, ...partialArgs);
|
|
5696
|
-
}
|
|
5697
|
-
function partialRightImpl(func, placeholder, ...partialArgs) {
|
|
5698
|
-
let partialedRight = function(...providedArgs) {
|
|
5699
|
-
let placeholderLength = partialArgs.filter((arg) => arg === placeholder).length, rangeLength = Math.max(providedArgs.length - placeholderLength, 0), remainingArgs = providedArgs.slice(0, rangeLength), providedArgsIndex = rangeLength, substitutedArgs = partialArgs.slice().map((arg) => arg === placeholder ? providedArgs[providedArgsIndex++] : arg);
|
|
5700
|
-
return func.apply(this, remainingArgs.concat(substitutedArgs));
|
|
5701
|
-
};
|
|
5702
|
-
return func.prototype && (partialedRight.prototype = Object.create(func.prototype)), partialedRight;
|
|
5703
|
-
}
|
|
5704
|
-
var placeholderSymbol2 = Symbol("partialRight.placeholder");
|
|
5705
|
-
partialRight.placeholder = placeholderSymbol2;
|
|
5706
|
-
|
|
5707
|
-
// ../node_modules/es-toolkit/dist/function/retry.mjs
|
|
5708
|
-
var DEFAULT_RETRIES = Number.POSITIVE_INFINITY;
|
|
5709
|
-
|
|
5710
5653
|
// src/core-server/utils/watch-story-specifiers.ts
|
|
5711
5654
|
import { lstatSync, readdirSync } from "node:fs";
|
|
5712
5655
|
import { basename as basename2, join as join5, relative as relative4, resolve as resolve3 } from "node:path";
|
|
@@ -5753,7 +5696,7 @@ function watchStorySpecifiers(specifiers, options, onInvalidate) {
|
|
|
5753
5696
|
// files can be e.g. '**/foo/*/*.js' so we just want the last bit,
|
|
5754
5697
|
// because the directory could already be within the files part (e.g. './x/foo/bar')
|
|
5755
5698
|
basename2(specifier.files)
|
|
5756
|
-
), { globby } = await import("../_node-chunks/globby-
|
|
5699
|
+
), { globby } = await import("../_node-chunks/globby-D4FPSHY2.js");
|
|
5757
5700
|
(await globby(slash(dirGlob), commonGlobOptions2(dirGlob))).forEach((filePath) => {
|
|
5758
5701
|
let fileImportPath = toImportPath(filePath);
|
|
5759
5702
|
specifier.importPathMatcher.exec(fileImportPath) && onInvalidate(specifier, fileImportPath, removed);
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getControlId,
|
|
3
|
+
getControlSetterButtonId
|
|
4
|
+
} from "../../_browser-chunks/chunk-2FRVAXCZ.js";
|
|
1
5
|
import {
|
|
2
6
|
_defineProperty,
|
|
3
7
|
_objectWithoutProperties
|
|
@@ -7,10 +11,6 @@ import {
|
|
|
7
11
|
dequal,
|
|
8
12
|
uniq
|
|
9
13
|
} from "../../_browser-chunks/chunk-XJNX76GA.js";
|
|
10
|
-
import {
|
|
11
|
-
getControlId,
|
|
12
|
-
getControlSetterButtonId
|
|
13
|
-
} from "../../_browser-chunks/chunk-2FRVAXCZ.js";
|
|
14
14
|
import {
|
|
15
15
|
ADDON_ID as ADDON_ID3,
|
|
16
16
|
ADDON_ID2 as ADDON_ID4,
|
|
@@ -4886,7 +4886,7 @@ var ADDON_ID8 = "storybook/a11y", PANEL_ID3 = `${ADDON_ID8}/panel`;
|
|
|
4886
4886
|
var UI_STATE_ID = `${ADDON_ID8}/ui`, RESULT = `${ADDON_ID8}/result`, REQUEST = `${ADDON_ID8}/request`, RUNNING = `${ADDON_ID8}/running`, ERROR2 = `${ADDON_ID8}/error`, MANUAL = `${ADDON_ID8}/manual`, SELECT = `${ADDON_ID8}/select`, DOCUMENTATION_LINK2 = "writing-tests/accessibility-testing", DOCUMENTATION_DISCREPANCY_LINK2 = `${DOCUMENTATION_LINK2}#why-are-my-tests-failing-in-different-environments`;
|
|
4887
4887
|
|
|
4888
4888
|
// ../addons/vitest/src/constants.ts
|
|
4889
|
-
var ADDON_ID9 = "storybook/test", TEST_PROVIDER_ID = `${ADDON_ID9}/test-provider`, STORYBOOK_ADDON_TEST_CHANNEL =
|
|
4889
|
+
var ADDON_ID9 = "storybook/test", TEST_PROVIDER_ID = `${ADDON_ID9}/test-provider`, STORYBOOK_ADDON_TEST_CHANNEL = `${ADDON_ID9}/channel`;
|
|
4890
4890
|
var DOCUMENTATION_LINK3 = "writing-tests/integrations/vitest-addon", DOCUMENTATION_FATAL_ERROR_LINK = `${DOCUMENTATION_LINK3}#what-happens-if-vitest-itself-has-an-error`;
|
|
4891
4891
|
var storeOptions = {
|
|
4892
4892
|
id: ADDON_ID9,
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_yntchggdu3k from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_yntchggdu3k from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_yntchggdu3k from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_yntchggdu3k.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_yntchggdu3k.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_yntchggdu3k.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
|
glob
|
|
14
|
-
} from "../../_node-chunks/chunk-
|
|
14
|
+
} from "../../_node-chunks/chunk-F74UHHR6.js";
|
|
15
15
|
import {
|
|
16
16
|
slash
|
|
17
|
-
} from "../../_node-chunks/chunk-
|
|
18
|
-
import "../../_node-chunks/chunk-
|
|
17
|
+
} from "../../_node-chunks/chunk-4ZFHN3ZY.js";
|
|
18
|
+
import "../../_node-chunks/chunk-JMP7YFX2.js";
|
|
19
19
|
|
|
20
20
|
// src/core-server/utils/remove-mdx-entries.ts
|
|
21
21
|
import { isAbsolute, join, relative } from "node:path";
|