storybook 10.2.0-alpha.5 → 10.2.0-alpha.7
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-HX32VQZR.js → chunk-EUPBEOK3.js} +2 -2
- package/dist/_browser-chunks/{chunk-6QKNWBQB.js → chunk-LOTN4ZCW.js} +14 -10
- package/dist/_browser-chunks/{chunk-UXVP56J6.js → chunk-POMIZRJL.js} +1 -1
- package/dist/_node-chunks/{builder-manager-OWA7PM5D.js → builder-manager-CUNI3ZJ4.js} +12 -12
- package/dist/_node-chunks/{camelcase-2LEK4OOC.js → camelcase-4GVAWYWU.js} +7 -7
- package/dist/_node-chunks/{chunk-MJEVYN6O.js → chunk-2TPGTNH3.js} +7 -7
- package/dist/_node-chunks/{chunk-53QZPC5B.js → chunk-56LVYN72.js} +7 -7
- package/dist/_node-chunks/chunk-AT23E4EQ.js +61 -0
- package/dist/_node-chunks/{chunk-J7VMFLRZ.js → chunk-BUUY73HB.js} +6 -6
- package/dist/_node-chunks/{chunk-FUGUVTSE.js → chunk-BVT57OPU.js} +8 -8
- package/dist/_node-chunks/{chunk-Q4YMOGYF.js → chunk-DF3MHTVA.js} +8 -8
- package/dist/_node-chunks/{chunk-TM67IYGR.js → chunk-FVVGYCVC.js} +7 -7
- package/dist/_node-chunks/{chunk-5MG7AO5M.js → chunk-JVSFH4RF.js} +14 -14
- package/dist/_node-chunks/{chunk-VG22ND3P.js → chunk-LPSISNQS.js} +76 -19
- package/dist/_node-chunks/chunk-LZSDDOT4.js +23 -0
- package/dist/_node-chunks/{chunk-APNNQRRU.js → chunk-M5E3YC4T.js} +6 -6
- package/dist/_node-chunks/{chunk-UIW2C2AI.js → chunk-NYGO6SRI.js} +6 -6
- package/dist/_node-chunks/{chunk-HT3TF35B.js → chunk-P445LZJB.js} +6 -6
- package/dist/_node-chunks/{chunk-SKKDMIEL.js → chunk-PGJHGLNH.js} +9 -9
- package/dist/_node-chunks/{chunk-WAM2AUH6.js → chunk-PQM4RHC4.js} +7 -7
- package/dist/_node-chunks/{chunk-QUCPWX6N.js → chunk-PYUJOHPH.js} +15 -15
- package/dist/_node-chunks/{chunk-WMGB2RD3.js → chunk-QJ6C6Y4J.js} +7 -7
- package/dist/_node-chunks/{chunk-ZRAJ6YTG.js → chunk-R3N2GWVX.js} +32 -32
- package/dist/_node-chunks/{chunk-BPLKNOG7.js → chunk-RCTV2GMQ.js} +7 -7
- package/dist/_node-chunks/{chunk-LOJ6VLWV.js → chunk-TBPJCWU7.js} +6 -6
- package/dist/_node-chunks/chunk-TTG4OTIQ.js +18 -0
- package/dist/_node-chunks/{chunk-TX3LEYMY.js → chunk-VCZD6QSG.js} +9 -9
- package/dist/_node-chunks/{chunk-JRJT7Q2N.js → chunk-VRAZAZEV.js} +7 -7
- package/dist/_node-chunks/{chunk-3NPQ2Y77.js → chunk-Y53XRTM4.js} +18 -18
- package/dist/_node-chunks/{chunk-RJ6MVIQ7.js → chunk-Y6L7H22H.js} +6 -6
- package/dist/_node-chunks/{chunk-TUFR2XYI.js → chunk-YPUOZX6Y.js} +6 -6
- package/dist/_node-chunks/{chunk-Q2N5EUMK.js → chunk-ZNQQBZIL.js} +7 -7
- package/dist/_node-chunks/{dist-KMT22HT2.js → dist-5DA7I4HZ.js} +9 -9
- package/dist/_node-chunks/{globby-MSDE3LN6.js → globby-UXUG5UXW.js} +9 -9
- package/dist/_node-chunks/{lib-2BTWTGXL.js → lib-JGWMRG56.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-RO5JQN35.js → mdx-N42X6CFJ-SS3BBRSA.js} +8 -8
- package/dist/_node-chunks/{p-limit-6ZDUMRV5.js → p-limit-QEWD3I7K.js} +7 -7
- package/dist/babel/index.js +10 -10
- package/dist/bin/core.js +12 -12
- package/dist/bin/dispatcher.js +11 -11
- package/dist/bin/loader.js +9 -9
- package/dist/cli/index.d.ts +0 -1
- package/dist/cli/index.js +18 -18
- package/dist/common/index.js +19 -19
- package/dist/components/index.js +1 -1
- package/dist/core-server/index.js +259 -633
- package/dist/core-server/presets/common-manager.js +48 -27
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +27 -29
- package/dist/csf/index.d.ts +41 -11
- package/dist/csf/index.js +2 -2
- package/dist/csf-tools/index.js +9 -9
- package/dist/docs-tools/index.js +1 -1
- package/dist/manager/globals-runtime.js +7 -7
- package/dist/manager/runtime.js +4 -4
- package/dist/manager-api/index.js +7 -7
- package/dist/mocking-utils/index.js +8 -8
- package/dist/node-logger/index.js +9 -9
- package/dist/preview/runtime.js +2 -2
- package/dist/preview-api/index.js +2 -2
- package/dist/preview-errors.js +1 -1
- package/dist/server-errors.js +11 -11
- package/dist/telemetry/index.d.ts +9 -2
- package/dist/telemetry/index.js +27 -25
- package/dist/viewport/index.d.ts +3 -3
- package/package.json +2 -2
- package/dist/_node-chunks/chunk-4P6JV5PD.js +0 -61
- package/dist/_node-chunks/chunk-IMOJACVP.js +0 -23
- package/dist/_node-chunks/chunk-IV4K2PSX.js +0 -18
- package/dist/_node-chunks/chunk-O72O5WMW.js +0 -72
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
import {
|
|
10
10
|
SNIPPET_RENDERED,
|
|
11
11
|
combineParameters
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-LOTN4ZCW.js";
|
|
13
13
|
import {
|
|
14
14
|
invariant
|
|
15
15
|
} from "./chunk-IWQGIXJS.js";
|
|
@@ -2680,7 +2680,7 @@ var VALIDATION_REGEXP = /^[a-zA-Z0-9 _-]*$/, NUMBER_REGEXP = /^-?[0-9]+(\.[0-9]+
|
|
|
2680
2680
|
return Object.entries((0, import_picoquery.parse)(parts.join(";"), QUERY_OPTIONS)).reduce((acc, [key, value]) => validateArgs(key, value) ? Object.assign(acc, { [key]: value }) : (once3.warn(dedent`
|
|
2681
2681
|
Omitted potentially unsafe URL args.
|
|
2682
2682
|
|
|
2683
|
-
More info: https://storybook.js.org/docs/writing-stories/args#setting-args-through-the-url
|
|
2683
|
+
More info: https://storybook.js.org/docs/writing-stories/args?ref=error#setting-args-through-the-url
|
|
2684
2684
|
`), acc), {});
|
|
2685
2685
|
};
|
|
2686
2686
|
|
|
@@ -2115,7 +2115,7 @@ var SIGNATURE_REGEXP = /^\(.*\) => /, convert2 = (type) => {
|
|
|
2115
2115
|
|
|
2116
2116
|
// src/docs-tools/argTypes/convert/typescript/convert.ts
|
|
2117
2117
|
import { UnknownArgTypesError as UnknownArgTypesError2 } from "storybook/internal/preview-errors";
|
|
2118
|
-
var convertSig2 = (type) => {
|
|
2118
|
+
var isLiteral2 = (type) => type.name === "literal", isUndefined = (type) => type.name === "undefined", convertSig2 = (type) => {
|
|
2119
2119
|
switch (type.type) {
|
|
2120
2120
|
case "function":
|
|
2121
2121
|
return { name: "function" };
|
|
@@ -2142,16 +2142,20 @@ var convertSig2 = (type) => {
|
|
|
2142
2142
|
return { ...base, name: "array", value: type.elements.map(convert3) };
|
|
2143
2143
|
case "signature":
|
|
2144
2144
|
return { ...base, ...convertSig2(type) };
|
|
2145
|
-
case "union":
|
|
2146
|
-
let
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2145
|
+
case "union": {
|
|
2146
|
+
let nonUndefinedElements = type.elements.filter((element) => !isUndefined(element));
|
|
2147
|
+
if (nonUndefinedElements.length > 0 && nonUndefinedElements.every(isLiteral2)) {
|
|
2148
|
+
let literalElements = nonUndefinedElements.filter(isLiteral2);
|
|
2149
|
+
return {
|
|
2150
|
+
...base,
|
|
2151
|
+
name: "enum",
|
|
2152
|
+
value: literalElements.map((element) => parseLiteral(element.value))
|
|
2153
|
+
};
|
|
2154
|
+
}
|
|
2155
|
+
return { ...base, name, value: type.elements.map(convert3) };
|
|
2156
|
+
}
|
|
2153
2157
|
case "intersection":
|
|
2154
|
-
return { ...base, name, value: type.elements
|
|
2158
|
+
return { ...base, name, value: type.elements.map(convert3) };
|
|
2155
2159
|
default:
|
|
2156
2160
|
return { ...base, name: "other", value: name };
|
|
2157
2161
|
}
|
|
@@ -262,7 +262,7 @@ This is deprecated and won't work in Storybook 8 anymore.
|
|
|
262
262
|
name: "NextJsSharpError",
|
|
263
263
|
category: "FRAMEWORK_NEXTJS" /* FRAMEWORK_NEXTJS */,
|
|
264
264
|
code: 1,
|
|
265
|
-
documentation: "https://storybook.js.org/docs/get-started/nextjs#
|
|
265
|
+
documentation: "https://storybook.js.org/docs/get-started/frameworks/nextjs#error-you-are-importing-avif-images-but-you-dont-have-sharp-installed-you-have-to-install-sharp-in-order-to-use-image-optimization-features-in-nextjs",
|
|
266
266
|
message: dedent`
|
|
267
267
|
You are importing avif images, but you don't have sharp installed.
|
|
268
268
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_99t5k5w5yp4 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_99t5k5w5yp4 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_99t5k5w5yp4 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_99t5k5w5yp4.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_99t5k5w5yp4.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_99t5k5w5yp4.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -13,26 +13,26 @@ import {
|
|
|
13
13
|
BROWSER_TARGETS,
|
|
14
14
|
NODE_TARGET,
|
|
15
15
|
SUPPORTED_FEATURES
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-NYGO6SRI.js";
|
|
17
17
|
import {
|
|
18
18
|
require_build
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-RCTV2GMQ.js";
|
|
20
20
|
import {
|
|
21
21
|
resolveModulePath,
|
|
22
22
|
resolvePackageDir
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-2TPGTNH3.js";
|
|
24
24
|
import {
|
|
25
25
|
join,
|
|
26
26
|
parse
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-Y6L7H22H.js";
|
|
28
28
|
import {
|
|
29
29
|
slash
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-TBPJCWU7.js";
|
|
31
31
|
import {
|
|
32
32
|
__commonJS,
|
|
33
33
|
__require,
|
|
34
34
|
__toESM
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-YPUOZX6Y.js";
|
|
36
36
|
|
|
37
37
|
// ../../node_modules/ejs/lib/utils.js
|
|
38
38
|
var require_utils = __commonJS({
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_99t5k5w5yp4 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_99t5k5w5yp4 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_99t5k5w5yp4 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_99t5k5w5yp4.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_99t5k5w5yp4.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_99t5k5w5yp4.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 "./chunk-
|
|
12
|
+
import "./chunk-YPUOZX6Y.js";
|
|
13
13
|
|
|
14
14
|
// ../../node_modules/camelcase/index.js
|
|
15
15
|
var UPPERCASE = /[\p{Lu}]/u, LOWERCASE = /[\p{Ll}]/u, LEADING_CAPITAL = /^[\p{Lu}](?![\p{Lu}])/gu, IDENTIFIER = /([\p{Alpha}\p{N}_]|$)/u, SEPARATORS = /[_.\- ]+/, LEADING_SEPARATORS = new RegExp("^" + SEPARATORS.source), SEPARATORS_AND_IDENTIFIER = new RegExp(SEPARATORS.source + IDENTIFIER.source, "gu"), NUMBERS_AND_IDENTIFIER = new RegExp("\\d+" + IDENTIFIER.source, "gu"), preserveCamelCase = (string, toLowerCase, toUpperCase, preserveConsecutiveUppercase2) => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_99t5k5w5yp4 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_99t5k5w5yp4 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_99t5k5w5yp4 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_99t5k5w5yp4.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_99t5k5w5yp4.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_99t5k5w5yp4.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -12,7 +12,7 @@ var require = CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
dirname,
|
|
14
14
|
join
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-Y6L7H22H.js";
|
|
16
16
|
|
|
17
17
|
// ../../node_modules/exsolve/dist/index.mjs
|
|
18
18
|
import fs, { lstatSync, realpathSync, statSync } from "node:fs";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_99t5k5w5yp4 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_99t5k5w5yp4 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_99t5k5w5yp4 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_99t5k5w5yp4.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_99t5k5w5yp4.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_99t5k5w5yp4.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-YPUOZX6Y.js";
|
|
15
15
|
|
|
16
16
|
// ../../node_modules/ts-dedent/dist/index.js
|
|
17
17
|
var require_dist = __commonJS({
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_99t5k5w5yp4 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_99t5k5w5yp4 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_99t5k5w5yp4 from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_99t5k5w5yp4.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_99t5k5w5yp4.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_99t5k5w5yp4.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.7",
|
|
16
|
+
"@storybook/addon-docs": "10.2.0-alpha.7",
|
|
17
|
+
"@storybook/addon-links": "10.2.0-alpha.7",
|
|
18
|
+
"@storybook/addon-onboarding": "10.2.0-alpha.7",
|
|
19
|
+
"storybook-addon-pseudo-states": "10.2.0-alpha.7",
|
|
20
|
+
"@storybook/addon-themes": "10.2.0-alpha.7",
|
|
21
|
+
"@storybook/addon-vitest": "10.2.0-alpha.7",
|
|
22
|
+
"@storybook/builder-vite": "10.2.0-alpha.7",
|
|
23
|
+
"@storybook/builder-webpack5": "10.2.0-alpha.7",
|
|
24
|
+
storybook: "10.2.0-alpha.7",
|
|
25
|
+
"@storybook/angular": "10.2.0-alpha.7",
|
|
26
|
+
"@storybook/ember": "10.2.0-alpha.7",
|
|
27
|
+
"@storybook/html-vite": "10.2.0-alpha.7",
|
|
28
|
+
"@storybook/nextjs": "10.2.0-alpha.7",
|
|
29
|
+
"@storybook/nextjs-vite": "10.2.0-alpha.7",
|
|
30
|
+
"@storybook/preact-vite": "10.2.0-alpha.7",
|
|
31
|
+
"@storybook/react-native-web-vite": "10.2.0-alpha.7",
|
|
32
|
+
"@storybook/react-vite": "10.2.0-alpha.7",
|
|
33
|
+
"@storybook/react-webpack5": "10.2.0-alpha.7",
|
|
34
|
+
"@storybook/server-webpack5": "10.2.0-alpha.7",
|
|
35
|
+
"@storybook/svelte-vite": "10.2.0-alpha.7",
|
|
36
|
+
"@storybook/sveltekit": "10.2.0-alpha.7",
|
|
37
|
+
"@storybook/vue3-vite": "10.2.0-alpha.7",
|
|
38
|
+
"@storybook/web-components-vite": "10.2.0-alpha.7",
|
|
39
|
+
sb: "10.2.0-alpha.7",
|
|
40
|
+
"@storybook/cli": "10.2.0-alpha.7",
|
|
41
|
+
"@storybook/codemod": "10.2.0-alpha.7",
|
|
42
|
+
"@storybook/core-webpack": "10.2.0-alpha.7",
|
|
43
|
+
"create-storybook": "10.2.0-alpha.7",
|
|
44
|
+
"@storybook/csf-plugin": "10.2.0-alpha.7",
|
|
45
|
+
"eslint-plugin-storybook": "10.2.0-alpha.7",
|
|
46
|
+
"@storybook/react-dom-shim": "10.2.0-alpha.7",
|
|
47
|
+
"@storybook/preset-create-react-app": "10.2.0-alpha.7",
|
|
48
|
+
"@storybook/preset-react-webpack": "10.2.0-alpha.7",
|
|
49
|
+
"@storybook/preset-server-webpack": "10.2.0-alpha.7",
|
|
50
|
+
"@storybook/html": "10.2.0-alpha.7",
|
|
51
|
+
"@storybook/preact": "10.2.0-alpha.7",
|
|
52
|
+
"@storybook/react": "10.2.0-alpha.7",
|
|
53
|
+
"@storybook/server": "10.2.0-alpha.7",
|
|
54
|
+
"@storybook/svelte": "10.2.0-alpha.7",
|
|
55
|
+
"@storybook/vue3": "10.2.0-alpha.7",
|
|
56
|
+
"@storybook/web-components": "10.2.0-alpha.7"
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export {
|
|
60
|
+
versions_default
|
|
61
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_99t5k5w5yp4 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_99t5k5w5yp4 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_99t5k5w5yp4 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_99t5k5w5yp4.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_99t5k5w5yp4.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_99t5k5w5yp4.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_99t5k5w5yp4 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_99t5k5w5yp4 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_99t5k5w5yp4 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_99t5k5w5yp4.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_99t5k5w5yp4.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_99t5k5w5yp4.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_picocolors
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ZNQQBZIL.js";
|
|
15
15
|
import {
|
|
16
16
|
__commonJS,
|
|
17
17
|
__export,
|
|
18
18
|
__require,
|
|
19
19
|
__toESM
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-YPUOZX6Y.js";
|
|
21
21
|
|
|
22
22
|
// ../../node_modules/are-we-there-yet/lib/tracker-base.js
|
|
23
23
|
var require_tracker_base = __commonJS({
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_99t5k5w5yp4 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_99t5k5w5yp4 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_99t5k5w5yp4 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_99t5k5w5yp4.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_99t5k5w5yp4.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_99t5k5w5yp4.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
require_dist
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-56LVYN72.js";
|
|
15
15
|
import {
|
|
16
16
|
__toESM
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-YPUOZX6Y.js";
|
|
18
18
|
|
|
19
19
|
// src/csf-tools/CsfFile.ts
|
|
20
20
|
var import_ts_dedent = __toESM(require_dist(), 1);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_99t5k5w5yp4 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_99t5k5w5yp4 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_99t5k5w5yp4 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_99t5k5w5yp4.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_99t5k5w5yp4.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_99t5k5w5yp4.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -12,7 +12,7 @@ var require = CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
__commonJS,
|
|
14
14
|
__require
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-YPUOZX6Y.js";
|
|
16
16
|
|
|
17
17
|
// ../../node_modules/picomatch/lib/constants.js
|
|
18
18
|
var require_constants = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_99t5k5w5yp4 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_99t5k5w5yp4 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_99t5k5w5yp4 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_99t5k5w5yp4.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_99t5k5w5yp4.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_99t5k5w5yp4.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -13,27 +13,27 @@ import {
|
|
|
13
13
|
any,
|
|
14
14
|
invariant,
|
|
15
15
|
up2 as up
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-M5E3YC4T.js";
|
|
17
17
|
import {
|
|
18
18
|
resolvePackageDir
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-2TPGTNH3.js";
|
|
20
20
|
import {
|
|
21
21
|
require_dist
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-56LVYN72.js";
|
|
23
23
|
import {
|
|
24
24
|
babelParse,
|
|
25
25
|
recast,
|
|
26
26
|
traverse,
|
|
27
27
|
types
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-VCZD6QSG.js";
|
|
29
29
|
import {
|
|
30
30
|
require_picocolors
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-ZNQQBZIL.js";
|
|
32
32
|
import {
|
|
33
33
|
__commonJS,
|
|
34
34
|
__require,
|
|
35
35
|
__toESM
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-YPUOZX6Y.js";
|
|
37
37
|
|
|
38
38
|
// ../../node_modules/esprima/dist/esprima.js
|
|
39
39
|
var require_esprima = __commonJS({
|
|
@@ -5594,7 +5594,7 @@ var ANGULAR_JSON_PATH = "angular.json", AngularJSON = class {
|
|
|
5594
5594
|
};
|
|
5595
5595
|
|
|
5596
5596
|
// src/cli/projectTypes.ts
|
|
5597
|
-
var ProjectType = /* @__PURE__ */ ((ProjectType2) => (ProjectType2.ANGULAR = "angular", ProjectType2.EMBER = "ember", ProjectType2.HTML = "html", ProjectType2.NEXTJS = "nextjs", ProjectType2.NUXT = "nuxt", ProjectType2.NX = "nx", ProjectType2.PREACT = "preact", ProjectType2.QWIK = "qwik", ProjectType2.REACT = "react", ProjectType2.REACT_NATIVE = "react_native", ProjectType2.REACT_NATIVE_AND_RNW = "react_native_and_rnw", ProjectType2.REACT_NATIVE_WEB = "react_native_web", ProjectType2.
|
|
5597
|
+
var ProjectType = /* @__PURE__ */ ((ProjectType2) => (ProjectType2.ANGULAR = "angular", ProjectType2.EMBER = "ember", ProjectType2.HTML = "html", ProjectType2.NEXTJS = "nextjs", ProjectType2.NUXT = "nuxt", ProjectType2.NX = "nx", ProjectType2.PREACT = "preact", ProjectType2.QWIK = "qwik", ProjectType2.REACT = "react", ProjectType2.REACT_NATIVE = "react_native", ProjectType2.REACT_NATIVE_AND_RNW = "react_native_and_rnw", ProjectType2.REACT_NATIVE_WEB = "react_native_web", ProjectType2.REACT_SCRIPTS = "react_scripts", ProjectType2.SERVER = "server", ProjectType2.SOLID = "solid", ProjectType2.SVELTE = "svelte", ProjectType2.SVELTEKIT = "sveltekit", ProjectType2.UNDETECTED = "undetected", ProjectType2.UNSUPPORTED = "unsupported", ProjectType2.VUE3 = "vue3", ProjectType2.WEB_COMPONENTS = "web_components", ProjectType2))(ProjectType || {});
|
|
5598
5598
|
|
|
5599
5599
|
// src/cli/eslintPlugin.ts
|
|
5600
5600
|
var import_comment_json = __toESM(require_src2(), 1);
|
|
@@ -5786,7 +5786,7 @@ async function configureEslintPlugin({
|
|
|
5786
5786
|
var suggestESLintPlugin = async () => await prompt2.confirm({
|
|
5787
5787
|
message: import_ts_dedent.dedent`
|
|
5788
5788
|
We have detected that you're using ESLint. Storybook provides a plugin that gives the best experience with Storybook and helps follow best practices: ${import_picocolors2.default.yellow(
|
|
5789
|
-
"https://storybook.js.org/docs/
|
|
5789
|
+
"https://storybook.js.org/docs/configure/integration/eslint-plugin"
|
|
5790
5790
|
)}
|
|
5791
5791
|
|
|
5792
5792
|
Would you like to install it?
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_99t5k5w5yp4 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_99t5k5w5yp4 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_99t5k5w5yp4 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_99t5k5w5yp4.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_99t5k5w5yp4.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_99t5k5w5yp4.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
|
version
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-TTG4OTIQ.js";
|
|
15
15
|
import {
|
|
16
16
|
createFileSystemCache,
|
|
17
17
|
execa,
|
|
@@ -19,25 +19,20 @@ import {
|
|
|
19
19
|
getProjectRoot,
|
|
20
20
|
resolvePathInStorybookCache,
|
|
21
21
|
up
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import {
|
|
24
|
-
getSessionId,
|
|
25
|
-
nanoid,
|
|
26
|
-
set
|
|
27
|
-
} from "./chunk-O72O5WMW.js";
|
|
22
|
+
} from "./chunk-R3N2GWVX.js";
|
|
28
23
|
import {
|
|
29
24
|
globalSettings
|
|
30
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-PGJHGLNH.js";
|
|
31
26
|
import {
|
|
32
27
|
resolvePackageDir
|
|
33
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-2TPGTNH3.js";
|
|
34
29
|
import {
|
|
35
30
|
slash
|
|
36
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-TBPJCWU7.js";
|
|
37
32
|
import {
|
|
38
33
|
__commonJS,
|
|
39
34
|
__toESM
|
|
40
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-YPUOZX6Y.js";
|
|
41
36
|
|
|
42
37
|
// ../../node_modules/fetch-retry/index.js
|
|
43
38
|
var require_fetch_retry = __commonJS({
|
|
@@ -793,6 +788,24 @@ import * as os from "node:os";
|
|
|
793
788
|
import { join as join2 } from "node:path";
|
|
794
789
|
import { isCI as isCI2 } from "storybook/internal/common";
|
|
795
790
|
|
|
791
|
+
// ../../node_modules/nanoid/index.js
|
|
792
|
+
import { randomFillSync } from "crypto";
|
|
793
|
+
|
|
794
|
+
// ../../node_modules/nanoid/url-alphabet/index.js
|
|
795
|
+
var urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
796
|
+
|
|
797
|
+
// ../../node_modules/nanoid/index.js
|
|
798
|
+
var POOL_SIZE_MULTIPLIER = 128, pool, poolOffset, fillPool = (bytes) => {
|
|
799
|
+
!pool || pool.length < bytes ? (pool = Buffer.allocUnsafe(bytes * POOL_SIZE_MULTIPLIER), randomFillSync(pool), poolOffset = 0) : poolOffset + bytes > pool.length && (randomFillSync(pool), poolOffset = 0), poolOffset += bytes;
|
|
800
|
+
};
|
|
801
|
+
var nanoid = (size = 21) => {
|
|
802
|
+
fillPool(size -= 0);
|
|
803
|
+
let id = "";
|
|
804
|
+
for (let i = poolOffset - size; i < poolOffset; i++)
|
|
805
|
+
id += urlAlphabet[pool[i] & 63];
|
|
806
|
+
return id;
|
|
807
|
+
};
|
|
808
|
+
|
|
796
809
|
// src/telemetry/anonymous-id.ts
|
|
797
810
|
import { relative } from "node:path";
|
|
798
811
|
import { getProjectRoot as getProjectRoot3 } from "storybook/internal/common";
|
|
@@ -827,9 +840,50 @@ var anonymousProjectId, getAnonymousProjectId = () => {
|
|
|
827
840
|
return anonymousProjectId;
|
|
828
841
|
};
|
|
829
842
|
|
|
843
|
+
// src/telemetry/event-cache.ts
|
|
844
|
+
import { cache as cache3 } from "storybook/internal/common";
|
|
845
|
+
var processingPromise = Promise.resolve(), setHelper = async (eventType, body) => {
|
|
846
|
+
let lastEvents = await cache3.get("lastEvents") || {};
|
|
847
|
+
lastEvents[eventType] = { body, timestamp: Date.now() }, await cache3.set("lastEvents", lastEvents);
|
|
848
|
+
}, set = (eventType, body) => {
|
|
849
|
+
let run = processingPromise.then(async () => {
|
|
850
|
+
await setHelper(eventType, body);
|
|
851
|
+
});
|
|
852
|
+
return processingPromise = run.catch(() => {
|
|
853
|
+
}), run;
|
|
854
|
+
};
|
|
855
|
+
var getLastEvents = async () => (await processingPromise, await cache3.get("lastEvents") || {}), upgradeFields = (event) => {
|
|
856
|
+
let { body, timestamp } = event;
|
|
857
|
+
return {
|
|
858
|
+
timestamp,
|
|
859
|
+
eventType: body?.eventType,
|
|
860
|
+
eventId: body?.eventId,
|
|
861
|
+
sessionId: body?.sessionId
|
|
862
|
+
};
|
|
863
|
+
}, UPGRADE_EVENTS = ["init", "upgrade"], RUN_EVENTS = ["build", "dev", "error"], lastEvent = (lastEvents, eventTypes) => {
|
|
864
|
+
let descendingEvents = eventTypes.map((eventType) => lastEvents?.[eventType]).filter((event) => !!event).sort((a, b) => b.timestamp - a.timestamp);
|
|
865
|
+
return descendingEvents.length > 0 ? descendingEvents[0] : void 0;
|
|
866
|
+
}, getPrecedingUpgrade = async (events = void 0) => {
|
|
867
|
+
let lastEvents = events || await cache3.get("lastEvents") || {}, lastUpgradeEvent = lastEvent(lastEvents, UPGRADE_EVENTS), lastRunEvent = lastEvent(lastEvents, RUN_EVENTS);
|
|
868
|
+
if (lastUpgradeEvent)
|
|
869
|
+
return !lastRunEvent?.timestamp || lastUpgradeEvent.timestamp > lastRunEvent.timestamp ? upgradeFields(lastUpgradeEvent) : void 0;
|
|
870
|
+
};
|
|
871
|
+
|
|
830
872
|
// src/telemetry/fetch.ts
|
|
831
873
|
var fetch = global.fetch;
|
|
832
874
|
|
|
875
|
+
// src/telemetry/session-id.ts
|
|
876
|
+
import { cache as cache4 } from "storybook/internal/common";
|
|
877
|
+
var SESSION_TIMEOUT = 1e3 * 60 * 60 * 2, sessionId;
|
|
878
|
+
var getSessionId = async () => {
|
|
879
|
+
let now = Date.now();
|
|
880
|
+
if (!sessionId) {
|
|
881
|
+
let session = await cache4.get("session");
|
|
882
|
+
session && session.lastUsed >= now - SESSION_TIMEOUT ? sessionId = session.id : sessionId = nanoid();
|
|
883
|
+
}
|
|
884
|
+
return await cache4.set("session", { id: sessionId, lastUsed: now }), sessionId;
|
|
885
|
+
};
|
|
886
|
+
|
|
833
887
|
// src/telemetry/telemetry.ts
|
|
834
888
|
var retryingFetch = (0, import_fetch_retry.default)(fetch), URL = process.env.STORYBOOK_TELEMETRY_URL || "https://storybook.js.org/event-log", tasks = [], addToGlobalContext = (key, value) => {
|
|
835
889
|
globalContext[key] = value;
|
|
@@ -847,7 +901,7 @@ var retryingFetch = (0, import_fetch_retry.default)(fetch), URL = process.env.ST
|
|
|
847
901
|
nodeVersion: process.versions.node,
|
|
848
902
|
storybookVersion: getVersionNumber()
|
|
849
903
|
}, prepareRequest = async (data, context, options) => {
|
|
850
|
-
let { eventType, payload, metadata, ...rest } = data,
|
|
904
|
+
let { eventType, payload, metadata, ...rest } = data, sessionId2 = await getSessionId(), eventId = nanoid(), body = { ...rest, eventType, eventId, sessionId: sessionId2, metadata, payload, context };
|
|
851
905
|
return retryingFetch(URL, {
|
|
852
906
|
method: "post",
|
|
853
907
|
body: JSON.stringify(body),
|
|
@@ -871,7 +925,7 @@ async function sendTelemetry(data, options = { retryDelay: 1e3, immediate: !1 })
|
|
|
871
925
|
}, request;
|
|
872
926
|
try {
|
|
873
927
|
request = prepareRequest(data, context, options), tasks.push(request);
|
|
874
|
-
let
|
|
928
|
+
let sessionId2 = await getSessionId(), eventId = nanoid(), body = { ...rest, eventType, eventId, sessionId: sessionId2, metadata, payload, context }, waitFor = options.immediate ? tasks : [request];
|
|
875
929
|
await Promise.all([...waitFor, set(eventType, body)]);
|
|
876
930
|
} catch {
|
|
877
931
|
} finally {
|
|
@@ -921,6 +975,9 @@ export {
|
|
|
921
975
|
computeStorybookMetadata,
|
|
922
976
|
getStorybookMetadata,
|
|
923
977
|
oneWayHash,
|
|
978
|
+
getLastEvents,
|
|
979
|
+
getPrecedingUpgrade,
|
|
980
|
+
getSessionId,
|
|
924
981
|
addToGlobalContext,
|
|
925
982
|
ErrorCollector,
|
|
926
983
|
isExampleStoryId,
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_99t5k5w5yp4 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_99t5k5w5yp4 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_99t5k5w5yp4 from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_99t5k5w5yp4.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_99t5k5w5yp4.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_99t5k5w5yp4.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
import {
|
|
13
|
+
any
|
|
14
|
+
} from "./chunk-M5E3YC4T.js";
|
|
15
|
+
|
|
16
|
+
// src/cli/detect.ts
|
|
17
|
+
async function detectPnp() {
|
|
18
|
+
return !!any([".pnp.js", ".pnp.cjs"]);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export {
|
|
22
|
+
detectPnp
|
|
23
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_99t5k5w5yp4 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_99t5k5w5yp4 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_99t5k5w5yp4 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_99t5k5w5yp4.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_99t5k5w5yp4.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_99t5k5w5yp4.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|