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
|
|
@@ -13,30 +13,30 @@ import {
|
|
|
13
13
|
BROWSER_TARGETS,
|
|
14
14
|
NODE_TARGET,
|
|
15
15
|
SUPPORTED_FEATURES
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-UNUWAUGG.js";
|
|
17
17
|
import {
|
|
18
18
|
require_build
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-UOHDPKIW.js";
|
|
20
20
|
import {
|
|
21
21
|
resolveModulePath,
|
|
22
22
|
resolvePackageDir
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-RJY225Z5.js";
|
|
24
24
|
import {
|
|
25
25
|
join,
|
|
26
26
|
parse
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-MAQAZSXK.js";
|
|
28
28
|
import {
|
|
29
29
|
slash
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-P663SP7U.js";
|
|
31
31
|
import {
|
|
32
32
|
__commonJS,
|
|
33
33
|
__require,
|
|
34
34
|
__toESM
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-FWVZUHZX.js";
|
|
36
36
|
|
|
37
|
-
//
|
|
37
|
+
// ../../node_modules/ejs/lib/utils.js
|
|
38
38
|
var require_utils = __commonJS({
|
|
39
|
-
"
|
|
39
|
+
"../../node_modules/ejs/lib/utils.js"(exports) {
|
|
40
40
|
"use strict";
|
|
41
41
|
var regExpChars = /[|\\{}()[\]^$+*?.]/g, hasOwnProperty = Object.prototype.hasOwnProperty, hasOwn = function(obj, key) {
|
|
42
42
|
return hasOwnProperty.apply(obj, [key]);
|
|
@@ -134,9 +134,9 @@ function encode_char(c) {
|
|
|
134
134
|
}
|
|
135
135
|
});
|
|
136
136
|
|
|
137
|
-
//
|
|
137
|
+
// ../../node_modules/ejs/package.json
|
|
138
138
|
var require_package = __commonJS({
|
|
139
|
-
"
|
|
139
|
+
"../../node_modules/ejs/package.json"(exports, module) {
|
|
140
140
|
module.exports = {
|
|
141
141
|
name: "ejs",
|
|
142
142
|
description: "Embedded JavaScript templates",
|
|
@@ -182,9 +182,9 @@ var require_package = __commonJS({
|
|
|
182
182
|
}
|
|
183
183
|
});
|
|
184
184
|
|
|
185
|
-
//
|
|
185
|
+
// ../../node_modules/ejs/lib/ejs.js
|
|
186
186
|
var require_ejs = __commonJS({
|
|
187
|
-
"
|
|
187
|
+
"../../node_modules/ejs/lib/ejs.js"(exports) {
|
|
188
188
|
"use strict";
|
|
189
189
|
var fs = __require("fs"), path = __require("path"), utils = require_utils(), scopeOptionWarned = !1, _VERSION_STRING = require_package().version, _DEFAULT_OPEN_DELIMITER = "<", _DEFAULT_CLOSE_DELIMITER = ">", _DEFAULT_DELIMITER = "%", _DEFAULT_LOCALS_NAME = "locals", _NAME = "ejs", _REGEX_STRING = "(<%%|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)", _OPTS_PASSABLE_WITH_DATA = [
|
|
190
190
|
"delimiter",
|
|
@@ -507,7 +507,7 @@ import { cp, rm, writeFile as writeFile3 } from "node:fs/promises";
|
|
|
507
507
|
import { stringifyProcessEnvs } from "storybook/internal/common";
|
|
508
508
|
import { logger } from "storybook/internal/node-logger";
|
|
509
509
|
|
|
510
|
-
//
|
|
510
|
+
// ../../node_modules/@fal-works/esbuild-plugin-global-externals/lib/module-info.js
|
|
511
511
|
var normalizeModuleInfo = (value) => {
|
|
512
512
|
let {
|
|
513
513
|
type = "esm",
|
|
@@ -518,7 +518,7 @@ var normalizeModuleInfo = (value) => {
|
|
|
518
518
|
return { type, varName, namedExports, defaultExport };
|
|
519
519
|
};
|
|
520
520
|
|
|
521
|
-
//
|
|
521
|
+
// ../../node_modules/@fal-works/esbuild-plugin-global-externals/lib/on-load.js
|
|
522
522
|
var createCjsContents = (variableName) => `module.exports = ${variableName};`;
|
|
523
523
|
var createEsmContents = (variableName, namedExports, defaultExport) => {
|
|
524
524
|
let codeElements = defaultExport ? [`export default ${variableName};`] : [];
|
|
@@ -538,7 +538,7 @@ var createEsmContents = (variableName, namedExports, defaultExport) => {
|
|
|
538
538
|
}
|
|
539
539
|
};
|
|
540
540
|
|
|
541
|
-
//
|
|
541
|
+
// ../../node_modules/@fal-works/esbuild-plugin-global-externals/lib/with-reg-exp.js
|
|
542
542
|
var PLUGIN_NAME = "global-externals", globalExternalsWithRegExp = (globals) => {
|
|
543
543
|
let { modulePathFilter, getModuleInfo } = globals;
|
|
544
544
|
return {
|
|
@@ -555,7 +555,7 @@ var PLUGIN_NAME = "global-externals", globalExternalsWithRegExp = (globals) => {
|
|
|
555
555
|
};
|
|
556
556
|
};
|
|
557
557
|
|
|
558
|
-
//
|
|
558
|
+
// ../../node_modules/@fal-works/esbuild-plugin-global-externals/lib/with-object.js
|
|
559
559
|
var globalExternals = (globals) => {
|
|
560
560
|
let normalizedGlobals = {
|
|
561
561
|
modulePathFilter: new RegExp(`^(?:${Object.keys(globals).join("|")})$`),
|
|
@@ -1153,6 +1153,7 @@ var exports_default = {
|
|
|
1153
1153
|
"FORCE_REMOUNT",
|
|
1154
1154
|
"FORCE_RE_RENDER",
|
|
1155
1155
|
"GLOBALS_UPDATED",
|
|
1156
|
+
"MANAGER_INERT_ATTRIBUTE_CHANGED",
|
|
1156
1157
|
"NAVIGATE_URL",
|
|
1157
1158
|
"OPEN_IN_EDITOR_REQUEST",
|
|
1158
1159
|
"OPEN_IN_EDITOR_RESPONSE",
|
|
@@ -0,0 +1,62 @@
|
|
|
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
|
+
|
|
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
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
import "./chunk-FWVZUHZX.js";
|
|
13
|
+
|
|
14
|
+
// ../../node_modules/camelcase/index.js
|
|
15
|
+
var UPPERCASE = /[\p{Lu}]/u, LOWERCASE = /[\p{Ll}]/u, LEADING_CAPITAL = /^[\p{Lu}](?![\p{Lu}])/u, SEPARATORS = /[_.\- ]+/, IDENTIFIER = /([\p{Alpha}\p{N}_]|$)/u, LEADING_SEPARATORS = new RegExp("^" + SEPARATORS.source), SEPARATORS_AND_IDENTIFIER = new RegExp(SEPARATORS.source + IDENTIFIER.source, "gu"), NUMBERS_AND_IDENTIFIER = new RegExp(String.raw`\d+` + IDENTIFIER.source, "gu"), preserveCamelCase = (string, toLowerCase, toUpperCase, preserveConsecutiveUppercase2) => {
|
|
16
|
+
let isLastCharLower = !1, isLastCharUpper = !1, isLastLastCharUpper = !1, isLastLastCharPreserved = !1;
|
|
17
|
+
for (let index = 0; index < string.length; index++) {
|
|
18
|
+
let character = string[index];
|
|
19
|
+
isLastLastCharPreserved = index > 2 ? string[index - 3] === "-" : !0, isLastCharLower && UPPERCASE.test(character) ? (string = string.slice(0, index) + "-" + string.slice(index), isLastCharLower = !1, isLastLastCharUpper = isLastCharUpper, isLastCharUpper = !0, index++) : isLastCharUpper && isLastLastCharUpper && LOWERCASE.test(character) && (!isLastLastCharPreserved || preserveConsecutiveUppercase2) ? (string = string.slice(0, index - 1) + "-" + string.slice(index - 1), isLastLastCharUpper = isLastCharUpper, isLastCharUpper = !1, isLastCharLower = !0) : (isLastCharLower = toLowerCase(character) === character && toUpperCase(character) !== character, isLastLastCharUpper = isLastCharUpper, isLastCharUpper = toUpperCase(character) === character && toLowerCase(character) !== character);
|
|
20
|
+
}
|
|
21
|
+
return string;
|
|
22
|
+
}, preserveConsecutiveUppercase = (input, toLowerCase) => input.replace(LEADING_CAPITAL, (match) => toLowerCase(match)), processWithCasePreservation = (input, toLowerCase, preserveConsecutiveUppercase2) => {
|
|
23
|
+
let result = "", previousWasNumber = !1, previousWasUppercase = !1, characters = [...input];
|
|
24
|
+
for (let index = 0; index < characters.length; index++) {
|
|
25
|
+
let character = characters[index], isUpperCase = UPPERCASE.test(character), nextCharIsUpperCase = index + 1 < characters.length && UPPERCASE.test(characters[index + 1]);
|
|
26
|
+
previousWasNumber && /[\p{Alpha}]/u.test(character) ? (result += character, previousWasNumber = !1, previousWasUppercase = isUpperCase) : preserveConsecutiveUppercase2 && isUpperCase && (previousWasUppercase || nextCharIsUpperCase) ? (result += character, previousWasUppercase = !0) : /\d/.test(character) ? (result += character, previousWasNumber = !0, previousWasUppercase = !1) : SEPARATORS.test(character) ? (result += character, previousWasUppercase = !1) : (result += toLowerCase(character), previousWasNumber = !1, previousWasUppercase = !1);
|
|
27
|
+
}
|
|
28
|
+
return result;
|
|
29
|
+
}, postProcess = (input, toUpperCase, { capitalizeAfterNumber }) => {
|
|
30
|
+
let transformNumericIdentifier = capitalizeAfterNumber ? (match, identifier, offset, string) => {
|
|
31
|
+
let nextCharacter = string.charAt(offset + match.length);
|
|
32
|
+
return SEPARATORS.test(nextCharacter) ? match : identifier ? match.slice(0, -identifier.length) + toUpperCase(identifier) : match;
|
|
33
|
+
} : (match) => match;
|
|
34
|
+
return input.replaceAll(NUMBERS_AND_IDENTIFIER, transformNumericIdentifier).replaceAll(
|
|
35
|
+
SEPARATORS_AND_IDENTIFIER,
|
|
36
|
+
(_, identifier) => toUpperCase(identifier)
|
|
37
|
+
);
|
|
38
|
+
};
|
|
39
|
+
function camelCase(input, options) {
|
|
40
|
+
if (!(typeof input == "string" || Array.isArray(input)))
|
|
41
|
+
throw new TypeError("Expected the input to be `string | string[]`");
|
|
42
|
+
if (options = {
|
|
43
|
+
pascalCase: !1,
|
|
44
|
+
preserveConsecutiveUppercase: !1,
|
|
45
|
+
capitalizeAfterNumber: !0,
|
|
46
|
+
...options
|
|
47
|
+
}, Array.isArray(input) ? input = input.map((element) => element.trim()).filter((element) => element.length > 0).join("-") : input = input.trim(), input.length === 0)
|
|
48
|
+
return "";
|
|
49
|
+
let leadingPrefix = input.match(/^[_$]*/)[0];
|
|
50
|
+
if (input = input.slice(leadingPrefix.length), input.length === 0)
|
|
51
|
+
return leadingPrefix;
|
|
52
|
+
let toLowerCase = options.locale === !1 ? (string) => string.toLowerCase() : (string) => string.toLocaleLowerCase(options.locale), toUpperCase = options.locale === !1 ? (string) => string.toUpperCase() : (string) => string.toLocaleUpperCase(options.locale);
|
|
53
|
+
return input.length === 1 ? SEPARATORS.test(input) ? leadingPrefix : leadingPrefix + (options.pascalCase ? toUpperCase(input) : toLowerCase(input)) : (input !== toLowerCase(input) && (input = preserveCamelCase(
|
|
54
|
+
input,
|
|
55
|
+
toLowerCase,
|
|
56
|
+
toUpperCase,
|
|
57
|
+
options.preserveConsecutiveUppercase
|
|
58
|
+
)), input = input.replace(LEADING_SEPARATORS, ""), options.capitalizeAfterNumber ? input = options.preserveConsecutiveUppercase ? preserveConsecutiveUppercase(input, toLowerCase) : toLowerCase(input) : input = processWithCasePreservation(input, toLowerCase, options.preserveConsecutiveUppercase), options.pascalCase && input.length > 0 && (input = toUpperCase(input[0]) + input.slice(1)), leadingPrefix + postProcess(input, toUpperCase, options));
|
|
59
|
+
}
|
|
60
|
+
export {
|
|
61
|
+
camelCase as default
|
|
62
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
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
|
+
|
|
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
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
|
|
13
|
+
// src/common/versions.ts
|
|
14
|
+
var versions_default = {
|
|
15
|
+
"@storybook/addon-a11y": "10.2.0-alpha.11",
|
|
16
|
+
"@storybook/addon-docs": "10.2.0-alpha.11",
|
|
17
|
+
"@storybook/addon-links": "10.2.0-alpha.11",
|
|
18
|
+
"@storybook/addon-onboarding": "10.2.0-alpha.11",
|
|
19
|
+
"storybook-addon-pseudo-states": "10.2.0-alpha.11",
|
|
20
|
+
"@storybook/addon-themes": "10.2.0-alpha.11",
|
|
21
|
+
"@storybook/addon-vitest": "10.2.0-alpha.11",
|
|
22
|
+
"@storybook/builder-vite": "10.2.0-alpha.11",
|
|
23
|
+
"@storybook/builder-webpack5": "10.2.0-alpha.11",
|
|
24
|
+
storybook: "10.2.0-alpha.11",
|
|
25
|
+
"@storybook/angular": "10.2.0-alpha.11",
|
|
26
|
+
"@storybook/ember": "10.2.0-alpha.11",
|
|
27
|
+
"@storybook/html-vite": "10.2.0-alpha.11",
|
|
28
|
+
"@storybook/nextjs": "10.2.0-alpha.11",
|
|
29
|
+
"@storybook/nextjs-vite": "10.2.0-alpha.11",
|
|
30
|
+
"@storybook/preact-vite": "10.2.0-alpha.11",
|
|
31
|
+
"@storybook/react-native-web-vite": "10.2.0-alpha.11",
|
|
32
|
+
"@storybook/react-vite": "10.2.0-alpha.11",
|
|
33
|
+
"@storybook/react-webpack5": "10.2.0-alpha.11",
|
|
34
|
+
"@storybook/server-webpack5": "10.2.0-alpha.11",
|
|
35
|
+
"@storybook/svelte-vite": "10.2.0-alpha.11",
|
|
36
|
+
"@storybook/sveltekit": "10.2.0-alpha.11",
|
|
37
|
+
"@storybook/vue3-vite": "10.2.0-alpha.11",
|
|
38
|
+
"@storybook/web-components-vite": "10.2.0-alpha.11",
|
|
39
|
+
sb: "10.2.0-alpha.11",
|
|
40
|
+
"@storybook/cli": "10.2.0-alpha.11",
|
|
41
|
+
"@storybook/codemod": "10.2.0-alpha.11",
|
|
42
|
+
"@storybook/core-webpack": "10.2.0-alpha.11",
|
|
43
|
+
"create-storybook": "10.2.0-alpha.11",
|
|
44
|
+
"@storybook/csf-plugin": "10.2.0-alpha.11",
|
|
45
|
+
"eslint-plugin-storybook": "10.2.0-alpha.11",
|
|
46
|
+
"@storybook/react-dom-shim": "10.2.0-alpha.11",
|
|
47
|
+
"@storybook/preset-create-react-app": "10.2.0-alpha.11",
|
|
48
|
+
"@storybook/preset-react-webpack": "10.2.0-alpha.11",
|
|
49
|
+
"@storybook/preset-server-webpack": "10.2.0-alpha.11",
|
|
50
|
+
"@storybook/html": "10.2.0-alpha.11",
|
|
51
|
+
"@storybook/preact": "10.2.0-alpha.11",
|
|
52
|
+
"@storybook/react": "10.2.0-alpha.11",
|
|
53
|
+
"@storybook/server": "10.2.0-alpha.11",
|
|
54
|
+
"@storybook/svelte": "10.2.0-alpha.11",
|
|
55
|
+
"@storybook/vue3": "10.2.0-alpha.11",
|
|
56
|
+
"@storybook/web-components": "10.2.0-alpha.11"
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export {
|
|
60
|
+
versions_default
|
|
61
|
+
};
|
|
@@ -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
|
|
@@ -43,7 +43,26 @@ var StorybookError = class _StorybookError extends Error {
|
|
|
43
43
|
* user.
|
|
44
44
|
*/
|
|
45
45
|
this.isHandledError = !1;
|
|
46
|
-
|
|
46
|
+
/**
|
|
47
|
+
* A collection of sub errors which relate to a parent error.
|
|
48
|
+
*
|
|
49
|
+
* Sub-errors are used to represent multiple related errors that occurred together. When a
|
|
50
|
+
* StorybookError with sub-errors is sent to telemetry, both the parent error and each sub-error
|
|
51
|
+
* are sent as separate telemetry events. This allows for better error tracking and debugging.
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
*
|
|
55
|
+
* ```ts
|
|
56
|
+
* const error1 = new SomeError();
|
|
57
|
+
* const error2 = new AnotherError();
|
|
58
|
+
* const parentError = new ParentError({
|
|
59
|
+
* // ... other props
|
|
60
|
+
* subErrors: [error1, error2],
|
|
61
|
+
* });
|
|
62
|
+
* ```
|
|
63
|
+
*/
|
|
64
|
+
this.subErrors = [];
|
|
65
|
+
this.category = props.category, this.documentation = props.documentation ?? !1, this.code = props.code, this.isHandledError = props.isHandledError ?? !1, this.name = props.name, this.subErrors = props.subErrors ?? [];
|
|
47
66
|
}
|
|
48
67
|
get fullErrorCode() {
|
|
49
68
|
return parseErrorCode({ code: this.code, category: this.category });
|