storybook 10.2.0-alpha.1 → 10.2.0-alpha.11
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-TNPFN3FC.js → Color-XESOIGZP.js} +9 -568
- 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-JP7NCOJX.js → chunk-3LY4VQVK.js} +1 -1
- package/dist/_browser-chunks/{chunk-VYJQ7RU5.js → chunk-G4M6MXF4.js} +31 -27
- 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-3IAH5M2U.js → chunk-IYCKG66Y.js} +5 -5
- package/dist/_browser-chunks/{chunk-UD6FQLAF.js → chunk-JK6U3MQW.js} +3 -3
- package/dist/_browser-chunks/{chunk-FQ7SLVLR.js → chunk-JVRDBUUP.js} +20 -1
- package/dist/_browser-chunks/{chunk-GFLS4VP3.js → chunk-LCHBOIHN.js} +6 -6
- package/dist/_browser-chunks/{chunk-CHUV5WSW.js → chunk-LE2LTDW3.js} +1 -1
- package/dist/_browser-chunks/{chunk-IPA5A322.js → chunk-MEXTPDJG.js} +1 -1
- package/dist/_browser-chunks/{chunk-XJNX76GA.js → chunk-NQJGOFZV.js} +4 -4
- package/dist/_browser-chunks/chunk-NZMVUW5T.js +7 -0
- package/dist/_browser-chunks/{chunk-2XZMBGTA.js → chunk-POMIZRJL.js} +3 -3
- package/dist/_browser-chunks/{chunk-RP5RXKFU.js → chunk-Q5RYDXT3.js} +38 -30
- package/dist/_browser-chunks/{chunk-SS2NHR7W.js → chunk-RBABWY22.js} +18 -18
- package/dist/_browser-chunks/{chunk-AXG2BOBL.js → chunk-S6TK43XQ.js} +10 -10
- package/dist/_browser-chunks/{chunk-AIOS4NGK.js → chunk-SWJP5COI.js} +11 -11
- 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-GFY5R5EY.js → chunk-V5NV5R37.js} +1 -1
- package/dist/_browser-chunks/chunk-VIJ7SQRO.js +568 -0
- package/dist/_browser-chunks/{chunk-3OXGAGBE.js → chunk-XLJZ7AOP.js} +14 -14
- 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-MNAUTRWW.js} +23 -22
- package/dist/_node-chunks/camelcase-6H4Z5R35.js +62 -0
- package/dist/_node-chunks/chunk-2CGMTALY.js +61 -0
- package/dist/_node-chunks/{chunk-ZI2RAI3I.js → chunk-2DZGIXSN.js} +26 -7
- package/dist/_node-chunks/{chunk-4BQMSZKI.js → chunk-5L22ATN3.js} +165 -191
- package/dist/_node-chunks/{chunk-77APSTTM.js → chunk-7FH4U6XC.js} +8 -9
- package/dist/_node-chunks/chunk-CMQYFTBQ.js +126 -0
- package/dist/_node-chunks/{chunk-GOOBGRAV.js → chunk-F3OHO2BC.js} +34 -24
- package/dist/_node-chunks/{chunk-5NWCBUGD.js → chunk-FWVZUHZX.js} +6 -6
- package/dist/_node-chunks/{chunk-KXDU466E.js → chunk-GRH5JFTX.js} +31 -31
- package/dist/_node-chunks/{chunk-CLNMK7MP.js → chunk-HXFHXVEW.js} +5434 -1625
- package/dist/_node-chunks/{chunk-VFTNRF5X.js → chunk-KAIK7772.js} +17 -17
- package/dist/_node-chunks/{chunk-FTR6MHOX.js → chunk-KU4SWNDM.js} +59 -147
- package/dist/_node-chunks/chunk-KX7OAVXY.js +18 -0
- package/dist/_node-chunks/{chunk-TP6ICLTL.js → chunk-L22DGLKT.js} +6 -6
- package/dist/_node-chunks/{chunk-5GNBLJKS.js → chunk-MAMDH2R3.js} +8 -8
- package/dist/_node-chunks/{chunk-PGFQADZC.js → chunk-MAQAZSXK.js} +7 -7
- package/dist/_node-chunks/{chunk-JYMZJCZ7.js → chunk-O7O53MP7.js} +62 -124
- package/dist/_node-chunks/chunk-P663SP7U.js +20 -0
- package/dist/_node-chunks/chunk-RI4IBKXZ.js +23 -0
- package/dist/_node-chunks/{chunk-SR5ZYD7K.js → chunk-RJY225Z5.js} +8 -8
- package/dist/_node-chunks/{chunk-KMTK5W6O.js → chunk-TFY6QV57.js} +48 -26
- package/dist/_node-chunks/{chunk-ET4VMMZG.js → chunk-TOMGRF4A.js} +77 -16
- package/dist/_node-chunks/{chunk-R3WYNAT5.js → chunk-UNUWAUGG.js} +6 -6
- package/dist/_node-chunks/{chunk-LEDV47V2.js → chunk-UOHDPKIW.js} +15 -15
- package/dist/_node-chunks/{chunk-AJUO2ZU3.js → chunk-URWJMVZI.js} +9 -9
- package/dist/_node-chunks/{chunk-TX77W2KY.js → chunk-UYMZAYR4.js} +597 -593
- package/dist/_node-chunks/{chunk-F7377GT2.js → chunk-WHIAK7AH.js} +111 -38
- package/dist/_node-chunks/{chunk-GYZQMMTN.js → chunk-WQ4WQYSZ.js} +9 -9
- package/dist/_node-chunks/{dist-HGQ5R6JU.js → dist-ZOBQQCBA.js} +10 -10
- package/dist/_node-chunks/{globby-5XJTXKUJ.js → globby-WNZSV3ZO.js} +155 -164
- package/dist/_node-chunks/{lib-XNLTS2RI.js → lib-YUWKNDR2.js} +16 -16
- package/dist/_node-chunks/{mdx-N42X6CFJ-7WF3QWVO.js → mdx-N42X6CFJ-K5BCUPEA.js} +11 -11
- package/dist/_node-chunks/{p-limit-RBKYTJKF.js → p-limit-ROJSQI7F.js} +19 -15
- 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 +1330 -250
- package/dist/cli/index.js +18 -18
- package/dist/common/index.d.ts +1344 -289
- package/dist/common/index.js +22 -22
- package/dist/components/index.d.ts +9 -2
- package/dist/components/index.js +339 -317
- package/dist/core-events/index.d.ts +4 -2
- package/dist/core-events/index.js +4 -2
- package/dist/core-server/index.d.ts +71 -2
- package/dist/core-server/index.js +3381 -3529
- package/dist/core-server/presets/common-manager.css +2 -2
- package/dist/core-server/presets/common-manager.js +93 -65
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +86 -118
- package/dist/csf/index.d.ts +41 -11
- package/dist/csf/index.js +46 -39
- package/dist/csf-tools/index.js +9 -9
- package/dist/docs-tools/index.js +5 -5
- package/dist/instrumenter/index.js +1 -1
- package/dist/manager/globals-runtime.js +9402 -7204
- package/dist/manager/runtime.js +195 -153
- package/dist/manager-api/index.js +34 -26
- package/dist/manager-errors.d.ts +24 -0
- package/dist/manager-errors.js +2 -2
- package/dist/mocking-utils/index.js +14 -14
- package/dist/node-logger/index.d.ts +1456 -111
- package/dist/node-logger/index.js +9 -9
- package/dist/preview/runtime.js +4608 -2436
- package/dist/preview-api/index.d.ts +67 -68
- package/dist/preview-api/index.js +12 -12
- package/dist/preview-errors.d.ts +24 -0
- package/dist/preview-errors.js +3 -3
- package/dist/router/index.js +11 -11
- package/dist/server-errors.d.ts +59 -3
- package/dist/server-errors.js +22 -11
- package/dist/telemetry/index.d.ts +10 -3
- package/dist/telemetry/index.js +27 -25
- package/dist/test/index.js +3237 -1653
- package/dist/theming/create.js +3 -3
- package/dist/theming/index.d.ts +5 -5
- package/dist/theming/index.js +38 -38
- package/dist/types/index.d.ts +12 -6
- package/dist/viewport/index.d.ts +3 -3
- package/package.json +27 -33
- package/dist/_browser-chunks/chunk-EZSQOHRI.js +0 -18
- package/dist/_browser-chunks/chunk-QKODTO7K.js +0 -7
- package/dist/_node-chunks/camelcase-64II7H4U.js +0 -37
- package/dist/_node-chunks/chunk-4EZYJUAC.js +0 -70
- 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-VR5LMO3F.js +0 -72
- 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_aucdos01fk5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_aucdos01fk5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_aucdos01fk5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_aucdos01fk5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_aucdos01fk5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_aucdos01fk5.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -12,13 +12,13 @@ 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-FWVZUHZX.js";
|
|
16
16
|
|
|
17
|
-
//
|
|
17
|
+
// ../../node_modules/picomatch/lib/constants.js
|
|
18
18
|
var require_constants = __commonJS({
|
|
19
|
-
"
|
|
19
|
+
"../../node_modules/picomatch/lib/constants.js"(exports, module) {
|
|
20
20
|
"use strict";
|
|
21
|
-
var
|
|
21
|
+
var path2 = __require("path"), WIN_SLASH = "\\\\/", WIN_NO_SLASH = `[^${WIN_SLASH}]`, DOT_LITERAL = "\\.", PLUS_LITERAL = "\\+", QMARK_LITERAL = "\\?", SLASH_LITERAL = "\\/", ONE_CHAR = "(?=.)", QMARK = "[^/]", END_ANCHOR = `(?:${SLASH_LITERAL}|$)`, START_ANCHOR = `(?:^|${SLASH_LITERAL})`, DOTS_SLASH = `${DOT_LITERAL}{1,2}${END_ANCHOR}`, NO_DOT = `(?!${DOT_LITERAL})`, NO_DOTS = `(?!${START_ANCHOR}${DOTS_SLASH})`, NO_DOT_SLASH = `(?!${DOT_LITERAL}{0,1}${END_ANCHOR})`, NO_DOTS_SLASH = `(?!${DOTS_SLASH})`, QMARK_NO_DOT = `[^.${SLASH_LITERAL}]`, STAR = `${QMARK}*?`, POSIX_CHARS = {
|
|
22
22
|
DOT_LITERAL,
|
|
23
23
|
PLUS_LITERAL,
|
|
24
24
|
QMARK_LITERAL,
|
|
@@ -168,7 +168,7 @@ var require_constants = __commonJS({
|
|
|
168
168
|
/* | */
|
|
169
169
|
CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
|
|
170
170
|
/* \uFEFF */
|
|
171
|
-
SEP:
|
|
171
|
+
SEP: path2.sep,
|
|
172
172
|
/**
|
|
173
173
|
* Create EXTGLOB_CHARS
|
|
174
174
|
*/
|
|
@@ -191,11 +191,11 @@ var require_constants = __commonJS({
|
|
|
191
191
|
}
|
|
192
192
|
});
|
|
193
193
|
|
|
194
|
-
//
|
|
194
|
+
// ../../node_modules/picomatch/lib/utils.js
|
|
195
195
|
var require_utils = __commonJS({
|
|
196
|
-
"
|
|
196
|
+
"../../node_modules/picomatch/lib/utils.js"(exports) {
|
|
197
197
|
"use strict";
|
|
198
|
-
var
|
|
198
|
+
var path2 = __require("path"), win32 = process.platform === "win32", {
|
|
199
199
|
REGEX_BACKSLASH,
|
|
200
200
|
REGEX_REMOVE_BACKSLASH,
|
|
201
201
|
REGEX_SPECIAL_CHARS,
|
|
@@ -211,7 +211,7 @@ var require_utils = __commonJS({
|
|
|
211
211
|
let segs = process.version.slice(1).split(".").map(Number);
|
|
212
212
|
return segs.length === 3 && segs[0] >= 9 || segs[0] === 8 && segs[1] >= 10;
|
|
213
213
|
};
|
|
214
|
-
exports.isWindows = (options) => options && typeof options.windows == "boolean" ? options.windows : win32 === !0 ||
|
|
214
|
+
exports.isWindows = (options) => options && typeof options.windows == "boolean" ? options.windows : win32 === !0 || path2.sep === "\\";
|
|
215
215
|
exports.escapeLast = (input, char, lastIdx) => {
|
|
216
216
|
let idx = input.lastIndexOf(char, lastIdx);
|
|
217
217
|
return idx === -1 ? input : input[idx - 1] === "\\" ? exports.escapeLast(input, char, idx - 1) : `${input.slice(0, idx)}\\${input.slice(idx)}`;
|
|
@@ -227,9 +227,9 @@ var require_utils = __commonJS({
|
|
|
227
227
|
}
|
|
228
228
|
});
|
|
229
229
|
|
|
230
|
-
//
|
|
230
|
+
// ../../node_modules/picomatch/lib/scan.js
|
|
231
231
|
var require_scan = __commonJS({
|
|
232
|
-
"
|
|
232
|
+
"../../node_modules/picomatch/lib/scan.js"(exports, module) {
|
|
233
233
|
"use strict";
|
|
234
234
|
var utils = require_utils(), {
|
|
235
235
|
CHAR_ASTERISK,
|
|
@@ -413,9 +413,9 @@ var require_scan = __commonJS({
|
|
|
413
413
|
}
|
|
414
414
|
});
|
|
415
415
|
|
|
416
|
-
//
|
|
416
|
+
// ../../node_modules/picomatch/lib/parse.js
|
|
417
417
|
var require_parse = __commonJS({
|
|
418
|
-
"
|
|
418
|
+
"../../node_modules/picomatch/lib/parse.js"(exports, module) {
|
|
419
419
|
"use strict";
|
|
420
420
|
var constants = require_constants(), utils = require_utils(), {
|
|
421
421
|
MAX_LENGTH,
|
|
@@ -858,11 +858,11 @@ var require_parse = __commonJS({
|
|
|
858
858
|
}
|
|
859
859
|
});
|
|
860
860
|
|
|
861
|
-
//
|
|
861
|
+
// ../../node_modules/picomatch/lib/picomatch.js
|
|
862
862
|
var require_picomatch = __commonJS({
|
|
863
|
-
"
|
|
863
|
+
"../../node_modules/picomatch/lib/picomatch.js"(exports, module) {
|
|
864
864
|
"use strict";
|
|
865
|
-
var
|
|
865
|
+
var path2 = __require("path"), scan = require_scan(), parse = require_parse(), utils = require_utils(), constants = require_constants(), isObject = (val) => val && typeof val == "object" && !Array.isArray(val), picomatch = (glob, options, returnState = !1) => {
|
|
866
866
|
if (Array.isArray(glob)) {
|
|
867
867
|
let fns = glob.map((input) => picomatch(input, options, returnState));
|
|
868
868
|
return (str) => {
|
|
@@ -897,7 +897,7 @@ var require_picomatch = __commonJS({
|
|
|
897
897
|
let opts = options || {}, format = opts.format || (posix ? utils.toPosixSlashes : null), match = input === glob, output = match && format ? format(input) : input;
|
|
898
898
|
return match === !1 && (output = format ? format(input) : input, match = output === glob), (match === !1 || opts.capture === !0) && (opts.matchBase === !0 || opts.basename === !0 ? match = picomatch.matchBase(input, regex, options, posix) : match = regex.exec(output)), { isMatch: !!match, match, output };
|
|
899
899
|
};
|
|
900
|
-
picomatch.matchBase = (input, glob, options, posix = utils.isWindows(options)) => (glob instanceof RegExp ? glob : picomatch.makeRe(glob, options)).test(
|
|
900
|
+
picomatch.matchBase = (input, glob, options, posix = utils.isWindows(options)) => (glob instanceof RegExp ? glob : picomatch.makeRe(glob, options)).test(path2.basename(input));
|
|
901
901
|
picomatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
|
|
902
902
|
picomatch.parse = (pattern, options) => Array.isArray(pattern) ? pattern.map((p) => picomatch.parse(p, options)) : parse(pattern, { ...options, fastpaths: !1 });
|
|
903
903
|
picomatch.scan = (input, options) => scan(input, options);
|
|
@@ -929,15 +929,37 @@ var require_picomatch = __commonJS({
|
|
|
929
929
|
}
|
|
930
930
|
});
|
|
931
931
|
|
|
932
|
-
//
|
|
932
|
+
// ../../node_modules/picomatch/index.js
|
|
933
933
|
var require_picomatch2 = __commonJS({
|
|
934
|
-
"
|
|
934
|
+
"../../node_modules/picomatch/index.js"(exports, module) {
|
|
935
935
|
"use strict";
|
|
936
936
|
module.exports = require_picomatch();
|
|
937
937
|
}
|
|
938
938
|
});
|
|
939
939
|
|
|
940
|
+
// ../../node_modules/unicorn-magic/node.js
|
|
941
|
+
import { promisify } from "node:util";
|
|
942
|
+
import { execFile as execFileCallback, execFileSync as execFileSyncOriginal } from "node:child_process";
|
|
943
|
+
import path from "node:path";
|
|
944
|
+
import { fileURLToPath } from "node:url";
|
|
945
|
+
var execFileOriginal = promisify(execFileCallback);
|
|
946
|
+
function toPath(urlOrPath) {
|
|
947
|
+
return urlOrPath instanceof URL ? fileURLToPath(urlOrPath) : urlOrPath;
|
|
948
|
+
}
|
|
949
|
+
function traversePathUp(startPath) {
|
|
950
|
+
return {
|
|
951
|
+
*[Symbol.iterator]() {
|
|
952
|
+
let currentPath = path.resolve(toPath(startPath)), previousPath;
|
|
953
|
+
for (; previousPath !== currentPath; )
|
|
954
|
+
yield currentPath, previousPath = currentPath, currentPath = path.resolve(currentPath, "..");
|
|
955
|
+
}
|
|
956
|
+
};
|
|
957
|
+
}
|
|
958
|
+
var TEN_MEGABYTES_IN_BYTES = 10 * 1024 * 1024;
|
|
959
|
+
|
|
940
960
|
export {
|
|
941
961
|
require_utils,
|
|
942
|
-
require_picomatch2 as require_picomatch
|
|
962
|
+
require_picomatch2 as require_picomatch,
|
|
963
|
+
toPath,
|
|
964
|
+
traversePathUp
|
|
943
965
|
};
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_aucdos01fk5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_aucdos01fk5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_aucdos01fk5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_aucdos01fk5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_aucdos01fk5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_aucdos01fk5.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-2DZGIXSN.js";
|
|
15
15
|
import {
|
|
16
16
|
require_dist
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-URWJMVZI.js";
|
|
18
18
|
import {
|
|
19
19
|
require_picocolors
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-WQ4WQYSZ.js";
|
|
21
21
|
import {
|
|
22
22
|
__toESM
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-FWVZUHZX.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);
|
|
@@ -229,7 +229,7 @@ var WebpackCompilationError = class extends StorybookError {
|
|
|
229
229
|
name: "GoogleFontsDownloadError",
|
|
230
230
|
category: "FRAMEWORK_NEXTJS" /* FRAMEWORK_NEXTJS */,
|
|
231
231
|
code: 1,
|
|
232
|
-
documentation: "https://
|
|
232
|
+
documentation: "https://storybook.js.org/docs/get-started/frameworks/nextjs#nextjs-font-optimization",
|
|
233
233
|
message: import_ts_dedent.dedent`
|
|
234
234
|
Failed to fetch \`${data.fontFamily}\` from Google Fonts with URL: \`${data.url}\``
|
|
235
235
|
});
|
|
@@ -241,7 +241,7 @@ var WebpackCompilationError = class extends StorybookError {
|
|
|
241
241
|
name: "GoogleFontsLoadingError",
|
|
242
242
|
category: "FRAMEWORK_NEXTJS" /* FRAMEWORK_NEXTJS */,
|
|
243
243
|
code: 2,
|
|
244
|
-
documentation: "https://
|
|
244
|
+
documentation: "https://storybook.js.org/docs/get-started/frameworks/nextjs#nextjs-font-optimization",
|
|
245
245
|
message: import_ts_dedent.dedent`
|
|
246
246
|
An error occurred when trying to load Google Fonts with URL \`${data.url}\`.
|
|
247
247
|
|
|
@@ -286,11 +286,11 @@ var WebpackCompilationError = class extends StorybookError {
|
|
|
286
286
|
constructor(data) {
|
|
287
287
|
let map = {
|
|
288
288
|
storybook: {
|
|
289
|
-
helperMessage: "You can pass a --config-dir flag to tell Storybook, where your main.js file is located at.",
|
|
289
|
+
helperMessage: "You can pass a --config-dir flag to tell Storybook, where your main.js|ts file is located at.",
|
|
290
290
|
documentation: "https://storybook.js.org/docs/configure?ref=error"
|
|
291
291
|
},
|
|
292
292
|
vitest: {
|
|
293
|
-
helperMessage: "You can pass a configDir plugin option to tell where your main.js file is located at.",
|
|
293
|
+
helperMessage: "You can pass a configDir plugin option to tell where your main.js|ts file is located at.",
|
|
294
294
|
// TODO: add proper docs once available
|
|
295
295
|
documentation: "https://storybook.js.org/docs/configure?ref=error"
|
|
296
296
|
}
|
|
@@ -302,7 +302,7 @@ var WebpackCompilationError = class extends StorybookError {
|
|
|
302
302
|
documentation,
|
|
303
303
|
message: import_ts_dedent.dedent`
|
|
304
304
|
No configuration files have been found in your configDir: ${import_picocolors.default.yellow(data.location)}.
|
|
305
|
-
Storybook needs a "main.js" file, please add it.
|
|
305
|
+
Storybook needs a "main.js|ts" file, please add it.
|
|
306
306
|
|
|
307
307
|
${helperMessage}`
|
|
308
308
|
});
|
|
@@ -365,6 +365,62 @@ var WebpackCompilationError = class extends StorybookError {
|
|
|
365
365
|
});
|
|
366
366
|
this.data = data;
|
|
367
367
|
}
|
|
368
|
+
}, AddonVitestPostinstallFailedAddonA11yError = class extends StorybookError {
|
|
369
|
+
constructor(data) {
|
|
370
|
+
super({
|
|
371
|
+
name: "AddonVitestPostinstallFailedAddonA11yError",
|
|
372
|
+
message: "The @storybook/addon-a11y couldn't be set up for the Vitest addon",
|
|
373
|
+
category: "CLI_INIT" /* CLI_INIT */,
|
|
374
|
+
isHandledError: !0,
|
|
375
|
+
code: 6
|
|
376
|
+
});
|
|
377
|
+
this.data = data;
|
|
378
|
+
}
|
|
379
|
+
}, AddonVitestPostinstallExistingSetupFileError = class extends StorybookError {
|
|
380
|
+
constructor(data) {
|
|
381
|
+
super({
|
|
382
|
+
name: "AddonVitestPostinstallExistingSetupFileError",
|
|
383
|
+
category: "CLI_INIT" /* CLI_INIT */,
|
|
384
|
+
isHandledError: !0,
|
|
385
|
+
code: 7,
|
|
386
|
+
documentation: "https://storybook.js.org/docs/writing-tests/integrations/vitest-addon#manual-setup-advanced",
|
|
387
|
+
message: import_ts_dedent.dedent`
|
|
388
|
+
Found an existing Vitest setup file: ${data.filePath}
|
|
389
|
+
Please refer to the documentation to complete the setup manually.
|
|
390
|
+
`
|
|
391
|
+
});
|
|
392
|
+
this.data = data;
|
|
393
|
+
}
|
|
394
|
+
}, AddonVitestPostinstallWorkspaceUpdateError = class extends StorybookError {
|
|
395
|
+
constructor(data) {
|
|
396
|
+
super({
|
|
397
|
+
name: "AddonVitestPostinstallWorkspaceUpdateError",
|
|
398
|
+
category: "CLI_INIT" /* CLI_INIT */,
|
|
399
|
+
isHandledError: !0,
|
|
400
|
+
code: 8,
|
|
401
|
+
documentation: "https://storybook.js.org/docs/writing-tests/integrations/vitest-addon#manual-setup-advanced",
|
|
402
|
+
message: import_ts_dedent.dedent`
|
|
403
|
+
Could not update existing Vitest workspace file: ${data.filePath}
|
|
404
|
+
Please refer to the documentation to complete the setup manually.
|
|
405
|
+
`
|
|
406
|
+
});
|
|
407
|
+
this.data = data;
|
|
408
|
+
}
|
|
409
|
+
}, AddonVitestPostinstallConfigUpdateError = class extends StorybookError {
|
|
410
|
+
constructor(data) {
|
|
411
|
+
super({
|
|
412
|
+
name: "AddonVitestPostinstallConfigUpdateError",
|
|
413
|
+
category: "CLI_INIT" /* CLI_INIT */,
|
|
414
|
+
isHandledError: !0,
|
|
415
|
+
code: 9,
|
|
416
|
+
documentation: "https://storybook.js.org/docs/writing-tests/integrations/vitest-addon#manual-setup-advanced",
|
|
417
|
+
message: import_ts_dedent.dedent`
|
|
418
|
+
Unable to update existing Vitest config file: ${data.filePath}
|
|
419
|
+
Please refer to the documentation to complete the setup manually.
|
|
420
|
+
`
|
|
421
|
+
});
|
|
422
|
+
this.data = data;
|
|
423
|
+
}
|
|
368
424
|
}, AddonVitestPostinstallError = class extends StorybookError {
|
|
369
425
|
constructor(data) {
|
|
370
426
|
super({
|
|
@@ -372,7 +428,8 @@ var WebpackCompilationError = class extends StorybookError {
|
|
|
372
428
|
category: "CLI_INIT" /* CLI_INIT */,
|
|
373
429
|
isHandledError: !0,
|
|
374
430
|
code: 5,
|
|
375
|
-
message: "The Vitest addon setup failed."
|
|
431
|
+
message: "The Vitest addon setup failed.",
|
|
432
|
+
subErrors: data.errors
|
|
376
433
|
});
|
|
377
434
|
this.data = data;
|
|
378
435
|
}
|
|
@@ -528,6 +585,10 @@ export {
|
|
|
528
585
|
StatusTypeIdMismatchError,
|
|
529
586
|
GenerateNewProjectOnInitError,
|
|
530
587
|
AddonVitestPostinstallPrerequisiteCheckError,
|
|
588
|
+
AddonVitestPostinstallFailedAddonA11yError,
|
|
589
|
+
AddonVitestPostinstallExistingSetupFileError,
|
|
590
|
+
AddonVitestPostinstallWorkspaceUpdateError,
|
|
591
|
+
AddonVitestPostinstallConfigUpdateError,
|
|
531
592
|
AddonVitestPostinstallError,
|
|
532
593
|
UpgradeStorybookToLowerVersionError,
|
|
533
594
|
UpgradeStorybookUnknownCurrentVersionError,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_aucdos01fk5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_aucdos01fk5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_aucdos01fk5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_aucdos01fk5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_aucdos01fk5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_aucdos01fk5.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_aucdos01fk5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_aucdos01fk5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_aucdos01fk5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_aucdos01fk5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_aucdos01fk5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_aucdos01fk5.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-FWVZUHZX.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,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_aucdos01fk5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_aucdos01fk5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_aucdos01fk5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_aucdos01fk5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_aucdos01fk5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_aucdos01fk5.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
|
__commonJS
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-FWVZUHZX.js";
|
|
15
15
|
|
|
16
|
-
//
|
|
16
|
+
// ../../node_modules/ts-dedent/dist/index.js
|
|
17
17
|
var require_dist = __commonJS({
|
|
18
|
-
"
|
|
18
|
+
"../../node_modules/ts-dedent/dist/index.js"(exports) {
|
|
19
19
|
"use strict";
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
21
21
|
exports.dedent = void 0;
|