storybook 10.0.0-beta.1 → 10.0.0-beta.10
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/assets/server/openBrowser.applescript +94 -0
- package/dist/_browser-chunks/Color-KPLIACXP.js +1569 -0
- package/dist/_browser-chunks/{WithTooltip-ERFLZL6W.js → WithTooltip-SK46ZJ2J.js} +1 -1
- package/dist/_browser-chunks/{chunk-YY5GICNT.js → chunk-6E2SHJSL.js} +175 -32
- package/dist/_browser-chunks/{chunk-EOILZP2R.js → chunk-BOOOPFZF.js} +7 -2
- package/dist/_browser-chunks/{chunk-YWDKX534.js → chunk-FA42P6MO.js} +49 -4
- package/dist/_browser-chunks/chunk-G33S6YM3.js +521 -0
- package/dist/_browser-chunks/{chunk-MZNYTCNT.js → chunk-HMIIJ6UD.js} +6 -6
- package/dist/_browser-chunks/{chunk-4QPX7WIQ.js → chunk-JJZMHC3A.js} +57 -166
- package/dist/_browser-chunks/{chunk-MD2FTHCZ.js → chunk-JVSKG4YS.js} +3 -16
- package/dist/_browser-chunks/{chunk-E7VLET3C.js → chunk-KSCAWCCE.js} +3947 -4291
- package/dist/_browser-chunks/{chunk-PYK5ZTFK.js → chunk-PS3AOQI4.js} +48 -25
- package/dist/_browser-chunks/chunk-QK3L5AXO.js +372 -0
- package/dist/_browser-chunks/chunk-SHR3NNR3.js +5810 -0
- package/dist/_browser-chunks/{chunk-O5R5CGFA.js → chunk-TMDZCWME.js} +1 -2
- package/dist/_browser-chunks/chunk-VUAFL5XK.js +20 -0
- package/dist/_browser-chunks/{chunk-T7RCAJIX.js → chunk-Y3M7TW6K.js} +43 -47
- package/dist/_browser-chunks/{syntaxhighlighter-YYAA4CS4.js → syntaxhighlighter-R46XOLMC.js} +1 -1
- package/dist/_node-chunks/{builder-manager-EXW4ETLN.js → builder-manager-SJGIDEN6.js} +45 -155
- package/dist/_node-chunks/camelcase-VZHWABQV.js +18 -0
- package/dist/_node-chunks/{chunk-F5J33SXQ.js → chunk-6CZW7AGN.js} +7 -7
- package/dist/_node-chunks/{chunk-2G5THETV.js → chunk-6XT5OLNL.js} +12 -12
- package/dist/_node-chunks/{chunk-U45F2NP6.js → chunk-AHRH5RPR.js} +7 -7
- package/dist/_node-chunks/{chunk-ICPKUV5G.js → chunk-AOH6ABSV.js} +7 -7
- package/dist/_node-chunks/chunk-C5V22GP7.js +79 -0
- package/dist/_node-chunks/{chunk-5V6QH7WC.js → chunk-FIROF4DV.js} +7 -7
- package/dist/_node-chunks/{chunk-WDKWVNL2.js → chunk-GUJVZUYI.js} +7 -7
- package/dist/_node-chunks/chunk-IHPLRRAR.js +4741 -0
- package/dist/_node-chunks/{chunk-PMEEE3UE.js → chunk-JMXKCRWR.js} +30 -21
- package/dist/_node-chunks/{chunk-5ZX5SJOP.js → chunk-JUMUXWEV.js} +162 -103
- package/dist/_node-chunks/{chunk-CM3UGTR5.js → chunk-KGX33KXX.js} +7 -7
- package/dist/_node-chunks/{chunk-6CCUFDHU.js → chunk-KLVABNEU.js} +7 -7
- package/dist/_node-chunks/{chunk-EO4S3VXL.js → chunk-OL6DY6BT.js} +653 -775
- package/dist/_node-chunks/{chunk-GVCXNIAA.js → chunk-ONJV3K2L.js} +399 -116
- package/dist/_node-chunks/{chunk-3ZKQWDCG.js → chunk-PTHTD4RO.js} +223 -243
- package/dist/_node-chunks/{chunk-VNLBDN2Z.js → chunk-QQ3Z5KGJ.js} +6 -6
- package/dist/_node-chunks/{chunk-2QZOLZDJ.js → chunk-QRTDDTZJ.js} +9 -9
- package/dist/_node-chunks/chunk-R54K4KSM.js +1540 -0
- package/dist/_node-chunks/{chunk-24TGL6EX.js → chunk-S2LZC6JK.js} +8 -8
- package/dist/_node-chunks/chunk-SFJFSPRT.js +62 -0
- package/dist/_node-chunks/{chunk-SUMFFLGF.js → chunk-SSN5PKIY.js} +6 -6
- package/dist/_node-chunks/{chunk-QC5FE2D7.js → chunk-SXR2DITB.js} +7 -7
- package/dist/_node-chunks/{chunk-FZP2YGG3.js → chunk-TH5QVQRL.js} +7 -7
- package/dist/_node-chunks/chunk-U34NWAU2.js +18 -0
- package/dist/_node-chunks/{chunk-XTSBFCVE.js → chunk-UV3CZ3KS.js} +7 -7
- package/dist/_node-chunks/{chunk-PL2PKDRO.js → chunk-UVUGJDAI.js} +60 -102
- package/dist/_node-chunks/{chunk-EDBXIJN5.js → chunk-VOUNSD2E.js} +7 -7
- package/dist/_node-chunks/{chunk-WP7DV5JT.js → chunk-WFCPBKQJ.js} +583 -180
- package/dist/_node-chunks/{chunk-4WNZYNQY.js → chunk-XHF3WWNP.js} +623 -750
- package/dist/_node-chunks/{chunk-3SGKBLOL.js → chunk-XU45KXNQ.js} +8 -8
- package/dist/_node-chunks/{camelcase-VZZFWA2L.js → chunk-YHO6XR7U.js} +9 -8
- package/dist/_node-chunks/{dist-VZL6D6Y3.js → dist-IIC5PBL7.js} +9 -9
- package/dist/_node-chunks/{globby-GZXJJ4W6.js → globby-CJACC3HJ.js} +17 -13
- package/dist/_node-chunks/{lib-PHT5GCV2.js → lib-ZY4TKSOR.js} +40 -16
- package/dist/_node-chunks/{mdx-N42X6CFJ-EPDIV4A2.js → mdx-N42X6CFJ-3XNW3DFO.js} +8 -8
- package/dist/_node-chunks/{p-limit-AJIFSZTI.js → p-limit-R2OFT5HE.js} +76 -10
- package/dist/_node-chunks/{plugin-3VI56CEF.js → plugin-5XD5R2KD.js} +10 -10
- package/dist/_node-chunks/{plugin-AV4OEKYM.js → plugin-WAWVQMVR.js} +10 -10
- package/dist/_node-chunks/{webpack-inject-mocker-runtime-plugin-E7J5FKLA.js → webpack-inject-mocker-runtime-plugin-SCRGJLIS.js} +1307 -847
- package/dist/_node-chunks/{webpack-mock-plugin-VTYGW7HO.js → webpack-mock-plugin-3VAXEGG2.js} +9 -9
- package/dist/babel/index.d.ts +1 -1
- package/dist/babel/index.js +11 -11
- package/dist/bin/core.js +638 -187
- package/dist/bin/dispatcher.js +11 -11
- package/dist/bin/loader.js +8 -8
- package/dist/cli/index.d.ts +62 -75
- package/dist/cli/index.js +66 -55
- package/dist/common/index.d.ts +3 -1
- package/dist/common/index.js +22 -22
- package/dist/components/index.d.ts +228 -1
- package/dist/components/index.js +74 -5738
- package/dist/core-events/index.d.ts +18 -2
- package/dist/core-events/index.js +7 -1
- package/dist/core-server/index.d.ts +515 -14
- package/dist/core-server/index.js +4647 -4182
- package/dist/core-server/presets/common-manager.js +1570 -1272
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +691 -38
- package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.js +9 -9
- package/dist/core-server/presets/webpack/loaders/webpack-automock-loader.js +10 -10
- package/dist/csf/index.d.ts +9 -4
- package/dist/csf/index.js +50 -15
- package/dist/csf-tools/index.d.ts +47 -6
- package/dist/csf-tools/index.js +9 -9
- package/dist/docs-tools/index.js +4 -4
- package/dist/instrumenter/index.js +1 -1
- package/dist/manager/globals-runtime.js +9230 -18109
- package/dist/manager/globals.d.ts +0 -4
- package/dist/manager/globals.js +1 -6
- package/dist/manager/runtime.js +13398 -11573
- package/dist/manager-api/index.d.ts +513 -5
- package/dist/manager-api/index.js +364 -90
- package/dist/manager-errors.d.ts +501 -0
- package/dist/node-logger/index.d.ts +1 -1
- package/dist/node-logger/index.js +1136 -662
- package/dist/preview/globals.js +1 -1
- package/dist/preview/runtime.js +12103 -21579
- package/dist/preview-api/index.d.ts +3 -3
- package/dist/preview-api/index.js +10 -10
- package/dist/preview-errors.d.ts +501 -0
- package/dist/router/index.d.ts +668 -10
- package/dist/router/index.js +2 -2
- package/dist/server-errors.d.ts +501 -0
- package/dist/server-errors.js +10 -10
- package/dist/telemetry/index.d.ts +1 -1
- package/dist/telemetry/index.js +23 -25
- package/dist/test/index.js +1874 -4024
- package/dist/theming/index.d.ts +2 -2
- package/dist/theming/index.js +6 -6
- package/dist/types/index.d.ts +553 -16
- package/dist/viewport/index.d.ts +36 -4
- package/dist/viewport/index.js +1 -1
- package/package.json +9 -46
- package/dist/_browser-chunks/Color-SFYJJKWL.js +0 -605
- package/dist/_browser-chunks/chunk-DHO2SA6L.js +0 -12
- package/dist/_browser-chunks/chunk-WPHPDNUA.js +0 -974
- package/dist/_node-chunks/chunk-32JYCD74.js +0 -80
- package/dist/_node-chunks/chunk-GE6I3YYG.js +0 -62
- package/dist/_node-chunks/chunk-KXCNXWXI.js +0 -18
- package/dist/_node-chunks/chunk-LAUOYAOX.js +0 -87
- package/dist/_node-chunks/chunk-QJTT4OC2.js +0 -266
- package/dist/_node-chunks/chunk-V2ZF4DUD.js +0 -2377
- package/dist/_node-chunks/chunk-ZMV3WY6R.js +0 -9845
- package/dist/_node-chunks/default-browser-id-JNATP42X.js +0 -1719
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_kzg6jc8bd2 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_kzg6jc8bd2 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_kzg6jc8bd2 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_kzg6jc8bd2.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_kzg6jc8bd2.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_kzg6jc8bd2.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
__commonJS,
|
|
14
14
|
__name,
|
|
15
15
|
__toESM
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-SSN5PKIY.js";
|
|
17
17
|
|
|
18
18
|
// ../node_modules/balanced-match/index.js
|
|
19
19
|
var require_balanced_match = __commonJS({
|
|
@@ -161,7 +161,7 @@ var require_brace_expansion = __commonJS({
|
|
|
161
161
|
var isSequence = isNumericSequence || isAlphaSequence;
|
|
162
162
|
var isOptions = m.body.indexOf(",") >= 0;
|
|
163
163
|
if (!isSequence && !isOptions) {
|
|
164
|
-
if (m.post.match(
|
|
164
|
+
if (m.post.match(/,(?!,).*\}/)) {
|
|
165
165
|
str = m.pre + "{" + m.body + escClose + m.post;
|
|
166
166
|
return expand2(str);
|
|
167
167
|
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_kzg6jc8bd2 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_kzg6jc8bd2 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_kzg6jc8bd2 from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_kzg6jc8bd2.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_kzg6jc8bd2.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_kzg6jc8bd2.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.0.0-beta.10",
|
|
16
|
+
"@storybook/addon-docs": "10.0.0-beta.10",
|
|
17
|
+
"@storybook/addon-jest": "10.0.0-beta.10",
|
|
18
|
+
"@storybook/addon-links": "10.0.0-beta.10",
|
|
19
|
+
"@storybook/addon-onboarding": "10.0.0-beta.10",
|
|
20
|
+
"storybook-addon-pseudo-states": "10.0.0-beta.10",
|
|
21
|
+
"@storybook/addon-themes": "10.0.0-beta.10",
|
|
22
|
+
"@storybook/addon-vitest": "10.0.0-beta.10",
|
|
23
|
+
"@storybook/builder-vite": "10.0.0-beta.10",
|
|
24
|
+
"@storybook/builder-webpack5": "10.0.0-beta.10",
|
|
25
|
+
storybook: "10.0.0-beta.10",
|
|
26
|
+
"@storybook/angular": "10.0.0-beta.10",
|
|
27
|
+
"@storybook/ember": "10.0.0-beta.10",
|
|
28
|
+
"@storybook/html-vite": "10.0.0-beta.10",
|
|
29
|
+
"@storybook/nextjs": "10.0.0-beta.10",
|
|
30
|
+
"@storybook/nextjs-vite": "10.0.0-beta.10",
|
|
31
|
+
"@storybook/preact-vite": "10.0.0-beta.10",
|
|
32
|
+
"@storybook/react-native-web-vite": "10.0.0-beta.10",
|
|
33
|
+
"@storybook/react-vite": "10.0.0-beta.10",
|
|
34
|
+
"@storybook/react-webpack5": "10.0.0-beta.10",
|
|
35
|
+
"@storybook/server-webpack5": "10.0.0-beta.10",
|
|
36
|
+
"@storybook/svelte-vite": "10.0.0-beta.10",
|
|
37
|
+
"@storybook/sveltekit": "10.0.0-beta.10",
|
|
38
|
+
"@storybook/vue3-vite": "10.0.0-beta.10",
|
|
39
|
+
"@storybook/web-components-vite": "10.0.0-beta.10",
|
|
40
|
+
sb: "10.0.0-beta.10",
|
|
41
|
+
"@storybook/cli": "10.0.0-beta.10",
|
|
42
|
+
"@storybook/codemod": "10.0.0-beta.10",
|
|
43
|
+
"@storybook/core-webpack": "10.0.0-beta.10",
|
|
44
|
+
"create-storybook": "10.0.0-beta.10",
|
|
45
|
+
"@storybook/csf-plugin": "10.0.0-beta.10",
|
|
46
|
+
"eslint-plugin-storybook": "10.0.0-beta.10",
|
|
47
|
+
"@storybook/react-dom-shim": "10.0.0-beta.10",
|
|
48
|
+
"@storybook/preset-create-react-app": "10.0.0-beta.10",
|
|
49
|
+
"@storybook/preset-react-webpack": "10.0.0-beta.10",
|
|
50
|
+
"@storybook/preset-server-webpack": "10.0.0-beta.10",
|
|
51
|
+
"@storybook/html": "10.0.0-beta.10",
|
|
52
|
+
"@storybook/preact": "10.0.0-beta.10",
|
|
53
|
+
"@storybook/react": "10.0.0-beta.10",
|
|
54
|
+
"@storybook/server": "10.0.0-beta.10",
|
|
55
|
+
"@storybook/svelte": "10.0.0-beta.10",
|
|
56
|
+
"@storybook/vue3": "10.0.0-beta.10",
|
|
57
|
+
"@storybook/web-components": "10.0.0-beta.10"
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export {
|
|
61
|
+
versions_default
|
|
62
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_kzg6jc8bd2 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_kzg6jc8bd2 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_kzg6jc8bd2 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_kzg6jc8bd2.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_kzg6jc8bd2.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_kzg6jc8bd2.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_kzg6jc8bd2 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_kzg6jc8bd2 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_kzg6jc8bd2 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_kzg6jc8bd2.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_kzg6jc8bd2.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_kzg6jc8bd2.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
__commonJS,
|
|
14
14
|
__name,
|
|
15
15
|
__require
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-SSN5PKIY.js";
|
|
17
17
|
|
|
18
18
|
// ../node_modules/totalist/sync/index.js
|
|
19
19
|
var require_sync = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_kzg6jc8bd2 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_kzg6jc8bd2 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_kzg6jc8bd2 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_kzg6jc8bd2.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_kzg6jc8bd2.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_kzg6jc8bd2.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
__commonJS,
|
|
14
14
|
__name,
|
|
15
15
|
__require
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-SSN5PKIY.js";
|
|
17
17
|
|
|
18
18
|
// ../node_modules/picomatch/lib/constants.js
|
|
19
19
|
var require_constants = __commonJS({
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_kzg6jc8bd2 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_kzg6jc8bd2 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_kzg6jc8bd2 from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_kzg6jc8bd2.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_kzg6jc8bd2.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_kzg6jc8bd2.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
|
|
13
|
+
// package.json
|
|
14
|
+
var version = "10.0.0-beta.10";
|
|
15
|
+
|
|
16
|
+
export {
|
|
17
|
+
version
|
|
18
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_kzg6jc8bd2 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_kzg6jc8bd2 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_kzg6jc8bd2 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_kzg6jc8bd2.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_kzg6jc8bd2.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_kzg6jc8bd2.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
__commonJS,
|
|
14
14
|
__name,
|
|
15
15
|
__require
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-SSN5PKIY.js";
|
|
17
17
|
|
|
18
18
|
// ../node_modules/kleur/index.js
|
|
19
19
|
var require_kleur = __commonJS({
|
|
@@ -1,48 +1,43 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_kzg6jc8bd2 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_kzg6jc8bd2 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_kzg6jc8bd2 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_kzg6jc8bd2.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_kzg6jc8bd2.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_kzg6jc8bd2.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-U34NWAU2.js";
|
|
15
15
|
import {
|
|
16
16
|
createFileSystemCache,
|
|
17
|
-
resolvePathInStorybookCache
|
|
18
|
-
|
|
17
|
+
resolvePathInStorybookCache,
|
|
18
|
+
up
|
|
19
|
+
} from "./chunk-OL6DY6BT.js";
|
|
19
20
|
import {
|
|
20
21
|
globalSettings
|
|
21
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-PTHTD4RO.js";
|
|
22
23
|
import {
|
|
23
24
|
execaCommand,
|
|
24
25
|
getProjectRoot
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import {
|
|
27
|
-
findUp
|
|
28
|
-
} from "./chunk-QJTT4OC2.js";
|
|
26
|
+
} from "./chunk-IHPLRRAR.js";
|
|
29
27
|
import {
|
|
30
28
|
resolvePackageDir
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import {
|
|
33
|
-
join
|
|
34
|
-
} from "./chunk-ICPKUV5G.js";
|
|
29
|
+
} from "./chunk-R54K4KSM.js";
|
|
35
30
|
import {
|
|
36
31
|
slash
|
|
37
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-KLVABNEU.js";
|
|
38
33
|
import {
|
|
39
34
|
require_picocolors
|
|
40
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-FIROF4DV.js";
|
|
41
36
|
import {
|
|
42
37
|
__commonJS,
|
|
43
38
|
__name,
|
|
44
39
|
__toESM
|
|
45
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-SSN5PKIY.js";
|
|
46
41
|
|
|
47
42
|
// ../node_modules/fetch-retry/index.js
|
|
48
43
|
var require_fetch_retry = __commonJS({
|
|
@@ -96,19 +91,19 @@ var require_fetch_retry = __commonJS({
|
|
|
96
91
|
throw new ArgumentError("retryOn property expects an array or function");
|
|
97
92
|
}
|
|
98
93
|
}
|
|
99
|
-
return new Promise(function(
|
|
94
|
+
return new Promise(function(resolve, reject) {
|
|
100
95
|
var wrappedFetch = /* @__PURE__ */ __name(function(attempt) {
|
|
101
96
|
var _input = typeof Request !== "undefined" && input instanceof Request ? input.clone() : input;
|
|
102
97
|
fetch2(_input, init).then(function(response) {
|
|
103
98
|
if (Array.isArray(retryOn) && retryOn.indexOf(response.status) === -1) {
|
|
104
|
-
|
|
99
|
+
resolve(response);
|
|
105
100
|
} else if (typeof retryOn === "function") {
|
|
106
101
|
try {
|
|
107
102
|
return Promise.resolve(retryOn(attempt, null, response)).then(function(retryOnResponse) {
|
|
108
103
|
if (retryOnResponse) {
|
|
109
104
|
retry2(attempt, null, response);
|
|
110
105
|
} else {
|
|
111
|
-
|
|
106
|
+
resolve(response);
|
|
112
107
|
}
|
|
113
108
|
}).catch(reject);
|
|
114
109
|
} catch (error) {
|
|
@@ -118,7 +113,7 @@ var require_fetch_retry = __commonJS({
|
|
|
118
113
|
if (attempt < retries) {
|
|
119
114
|
retry2(attempt, null, response);
|
|
120
115
|
} else {
|
|
121
|
-
|
|
116
|
+
resolve(response);
|
|
122
117
|
}
|
|
123
118
|
}
|
|
124
119
|
}).catch(function(error) {
|
|
@@ -235,7 +230,8 @@ function sanitizeError(error, pathSeparator = path.sep) {
|
|
|
235
230
|
__name(sanitizeError, "sanitizeError");
|
|
236
231
|
|
|
237
232
|
// src/telemetry/storybook-metadata.ts
|
|
238
|
-
import {
|
|
233
|
+
import { readFile } from "node:fs/promises";
|
|
234
|
+
import { dirname } from "node:path";
|
|
239
235
|
import {
|
|
240
236
|
getStorybookConfiguration,
|
|
241
237
|
getStorybookInfo,
|
|
@@ -245,57 +241,6 @@ import {
|
|
|
245
241
|
} from "storybook/internal/common";
|
|
246
242
|
import { readConfig } from "storybook/internal/csf-tools";
|
|
247
243
|
|
|
248
|
-
// ../node_modules/walk-up-path/dist/mjs/index.js
|
|
249
|
-
import { dirname, resolve } from "path";
|
|
250
|
-
var walkUp = /* @__PURE__ */ __name(function* (path3) {
|
|
251
|
-
for (path3 = resolve(path3); path3; ) {
|
|
252
|
-
yield path3;
|
|
253
|
-
const pp = dirname(path3);
|
|
254
|
-
if (pp === path3) {
|
|
255
|
-
break;
|
|
256
|
-
} else {
|
|
257
|
-
path3 = pp;
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
}, "walkUp");
|
|
261
|
-
|
|
262
|
-
// ../node_modules/fd-package-json/dist/esm/main.js
|
|
263
|
-
import { resolve as resolve2 } from "node:path";
|
|
264
|
-
import { stat, readFile } from "node:fs/promises";
|
|
265
|
-
async function fileExists(path3) {
|
|
266
|
-
try {
|
|
267
|
-
const stats = await stat(path3);
|
|
268
|
-
return stats.isFile();
|
|
269
|
-
} catch (_err) {
|
|
270
|
-
return false;
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
__name(fileExists, "fileExists");
|
|
274
|
-
async function findPackagePath(cwd) {
|
|
275
|
-
for (const path3 of walkUp(cwd)) {
|
|
276
|
-
const packagePath = resolve2(path3, "package.json");
|
|
277
|
-
const hasPackageJson = await fileExists(packagePath);
|
|
278
|
-
if (hasPackageJson) {
|
|
279
|
-
return packagePath;
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
return null;
|
|
283
|
-
}
|
|
284
|
-
__name(findPackagePath, "findPackagePath");
|
|
285
|
-
async function findPackage(cwd) {
|
|
286
|
-
const packagePath = await findPackagePath(cwd);
|
|
287
|
-
if (!packagePath) {
|
|
288
|
-
return null;
|
|
289
|
-
}
|
|
290
|
-
try {
|
|
291
|
-
const source = await readFile(packagePath, { encoding: "utf8" });
|
|
292
|
-
return JSON.parse(source);
|
|
293
|
-
} catch (_err) {
|
|
294
|
-
return null;
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
__name(findPackage, "findPackage");
|
|
298
|
-
|
|
299
244
|
// src/telemetry/get-application-file-count.ts
|
|
300
245
|
import { sep } from "node:path";
|
|
301
246
|
|
|
@@ -396,14 +341,11 @@ var getActualPackageVersion = /* @__PURE__ */ __name(async (packageName) => {
|
|
|
396
341
|
}, "getActualPackageVersion");
|
|
397
342
|
var getActualPackageJson = /* @__PURE__ */ __name(async (packageName) => {
|
|
398
343
|
try {
|
|
399
|
-
let resolvedPackageJsonPath =
|
|
344
|
+
let resolvedPackageJsonPath = up({
|
|
400
345
|
cwd: fileURLToPath(import.meta.resolve(packageName, process.cwd()))
|
|
401
346
|
});
|
|
402
347
|
if (!resolvedPackageJsonPath) {
|
|
403
|
-
resolvedPackageJsonPath = import.meta.resolve(
|
|
404
|
-
join(packageName, "package.json"),
|
|
405
|
-
process.cwd()
|
|
406
|
-
);
|
|
348
|
+
resolvedPackageJsonPath = import.meta.resolve(`${packageName}/package.json`, process.cwd());
|
|
407
349
|
}
|
|
408
350
|
const { default: packageJson } = await import(pathToFileURL(resolvedPackageJsonPath).href, {
|
|
409
351
|
with: { type: "json" }
|
|
@@ -505,7 +447,7 @@ __name(getHasRouterPackage, "getHasRouterPackage");
|
|
|
505
447
|
|
|
506
448
|
// src/telemetry/get-monorepo-type.ts
|
|
507
449
|
import { existsSync, readFileSync } from "node:fs";
|
|
508
|
-
import { join
|
|
450
|
+
import { join } from "node:path";
|
|
509
451
|
import { getProjectRoot as getProjectRoot2 } from "storybook/internal/common";
|
|
510
452
|
var monorepoConfigs = {
|
|
511
453
|
Nx: "nx.json",
|
|
@@ -517,17 +459,17 @@ var monorepoConfigs = {
|
|
|
517
459
|
var getMonorepoType = /* @__PURE__ */ __name(() => {
|
|
518
460
|
const keys = Object.keys(monorepoConfigs);
|
|
519
461
|
const monorepoType = keys.find((monorepo) => {
|
|
520
|
-
const configFile =
|
|
462
|
+
const configFile = join(getProjectRoot2(), monorepoConfigs[monorepo]);
|
|
521
463
|
return existsSync(configFile);
|
|
522
464
|
});
|
|
523
465
|
if (monorepoType) {
|
|
524
466
|
return monorepoType;
|
|
525
467
|
}
|
|
526
|
-
if (!existsSync(
|
|
468
|
+
if (!existsSync(join(getProjectRoot2(), "package.json"))) {
|
|
527
469
|
return void 0;
|
|
528
470
|
}
|
|
529
471
|
const packageJson = JSON.parse(
|
|
530
|
-
readFileSync(
|
|
472
|
+
readFileSync(join(getProjectRoot2(), "package.json"), { encoding: "utf8" })
|
|
531
473
|
);
|
|
532
474
|
if (packageJson?.workspaces) {
|
|
533
475
|
return "Workspaces";
|
|
@@ -536,16 +478,16 @@ var getMonorepoType = /* @__PURE__ */ __name(() => {
|
|
|
536
478
|
}, "getMonorepoType");
|
|
537
479
|
|
|
538
480
|
// ../node_modules/package-manager-detector/dist/commands.mjs
|
|
539
|
-
function
|
|
481
|
+
function dashDashArg(agent, agentCommand) {
|
|
540
482
|
return (args) => {
|
|
541
483
|
if (args.length > 1) {
|
|
542
|
-
return [agent,
|
|
484
|
+
return [agent, agentCommand, args[0], "--", ...args.slice(1)];
|
|
543
485
|
} else {
|
|
544
|
-
return [agent,
|
|
486
|
+
return [agent, agentCommand, args[0]];
|
|
545
487
|
}
|
|
546
488
|
};
|
|
547
489
|
}
|
|
548
|
-
__name(
|
|
490
|
+
__name(dashDashArg, "dashDashArg");
|
|
549
491
|
function denoExecute() {
|
|
550
492
|
return (args) => {
|
|
551
493
|
return ["deno", "run", `npm:${args[0]}`, ...args.slice(1)];
|
|
@@ -554,7 +496,7 @@ function denoExecute() {
|
|
|
554
496
|
__name(denoExecute, "denoExecute");
|
|
555
497
|
var npm = {
|
|
556
498
|
"agent": ["npm", 0],
|
|
557
|
-
"run":
|
|
499
|
+
"run": dashDashArg("npm", "run"),
|
|
558
500
|
"install": ["npm", "i", 0],
|
|
559
501
|
"frozen": ["npm", "ci", 0],
|
|
560
502
|
"global": ["npm", "i", "-g", 0],
|
|
@@ -576,7 +518,7 @@ var yarn = {
|
|
|
576
518
|
"upgrade": ["yarn", "upgrade", 0],
|
|
577
519
|
"upgrade-interactive": ["yarn", "upgrade-interactive", 0],
|
|
578
520
|
"execute": ["npx", 0],
|
|
579
|
-
"execute-local":
|
|
521
|
+
"execute-local": dashDashArg("yarn", "exec"),
|
|
580
522
|
"uninstall": ["yarn", "remove", 0],
|
|
581
523
|
"global_uninstall": ["yarn", "global", "remove", 0]
|
|
582
524
|
};
|
|
@@ -641,7 +583,7 @@ var COMMANDS = {
|
|
|
641
583
|
// pnpm v6.x or below
|
|
642
584
|
"pnpm@6": {
|
|
643
585
|
...pnpm,
|
|
644
|
-
run:
|
|
586
|
+
run: dashDashArg("pnpm", "run")
|
|
645
587
|
},
|
|
646
588
|
"bun": bun,
|
|
647
589
|
"deno": deno
|
|
@@ -689,8 +631,8 @@ import path2 from "node:path";
|
|
|
689
631
|
import process2 from "node:process";
|
|
690
632
|
async function pathExists(path22, type) {
|
|
691
633
|
try {
|
|
692
|
-
const
|
|
693
|
-
return type === "file" ?
|
|
634
|
+
const stat = await fs.stat(path22);
|
|
635
|
+
return type === "file" ? stat.isFile() : stat.isDirectory();
|
|
694
636
|
} catch {
|
|
695
637
|
return false;
|
|
696
638
|
}
|
|
@@ -710,7 +652,18 @@ async function parsePackageJson(filepath, onUnknown) {
|
|
|
710
652
|
}
|
|
711
653
|
__name(parsePackageJson, "parsePackageJson");
|
|
712
654
|
async function detect(options = {}) {
|
|
713
|
-
const {
|
|
655
|
+
const {
|
|
656
|
+
cwd,
|
|
657
|
+
strategies = ["lockfile", "packageManager-field", "devEngines-field"],
|
|
658
|
+
onUnknown
|
|
659
|
+
} = options;
|
|
660
|
+
let stopDir;
|
|
661
|
+
if (typeof options.stopDir === "string") {
|
|
662
|
+
const resolved = path2.resolve(options.stopDir);
|
|
663
|
+
stopDir = /* @__PURE__ */ __name((dir) => dir === resolved, "stopDir");
|
|
664
|
+
} else {
|
|
665
|
+
stopDir = options.stopDir;
|
|
666
|
+
}
|
|
714
667
|
for (const directory of lookup(cwd)) {
|
|
715
668
|
for (const strategy of strategies) {
|
|
716
669
|
switch (strategy) {
|
|
@@ -747,6 +700,8 @@ async function detect(options = {}) {
|
|
|
747
700
|
}
|
|
748
701
|
}
|
|
749
702
|
}
|
|
703
|
+
if (stopDir?.(directory))
|
|
704
|
+
break;
|
|
750
705
|
}
|
|
751
706
|
return null;
|
|
752
707
|
}
|
|
@@ -856,7 +811,10 @@ var metaFrameworks = {
|
|
|
856
811
|
"@nuxtjs/storybook": "nuxt",
|
|
857
812
|
"@nrwl/storybook": "nx",
|
|
858
813
|
"@vue/cli-service": "vue-cli",
|
|
859
|
-
"@sveltejs/kit": "sveltekit"
|
|
814
|
+
"@sveltejs/kit": "sveltekit",
|
|
815
|
+
"@tanstack/react-router": "tanstack-react",
|
|
816
|
+
"@react-router/dev": "react-router",
|
|
817
|
+
"@remix-run/dev": "remix"
|
|
860
818
|
};
|
|
861
819
|
var sanitizeAddonName = /* @__PURE__ */ __name((name) => {
|
|
862
820
|
return cleanPaths(name).replace(/\/dist\/.*/, "").replace(/\.[mc]?[tj]?s[x]?$/, "").replace(/\/register$/, "").replace(/\/manager$/, "").replace(/\/preset$/, "");
|
|
@@ -1008,7 +966,7 @@ var computeStorybookMetadata = /* @__PURE__ */ __name(async ({
|
|
|
1008
966
|
} catch (e) {
|
|
1009
967
|
}
|
|
1010
968
|
const portableStoriesFileCount = await getPortableStoriesFileCount();
|
|
1011
|
-
const applicationFileCount = await getApplicationFileCount(
|
|
969
|
+
const applicationFileCount = await getApplicationFileCount(dirname(packageJsonPath));
|
|
1012
970
|
return {
|
|
1013
971
|
...metadata,
|
|
1014
972
|
...frameworkInfo,
|
|
@@ -1023,11 +981,11 @@ var computeStorybookMetadata = /* @__PURE__ */ __name(async ({
|
|
|
1023
981
|
};
|
|
1024
982
|
}, "computeStorybookMetadata");
|
|
1025
983
|
async function getPackageJsonDetails() {
|
|
1026
|
-
const packageJsonPath =
|
|
984
|
+
const packageJsonPath = up();
|
|
1027
985
|
if (packageJsonPath) {
|
|
1028
986
|
return {
|
|
1029
987
|
packageJsonPath,
|
|
1030
|
-
packageJson: await
|
|
988
|
+
packageJson: JSON.parse(await readFile(packageJsonPath, "utf8"))
|
|
1031
989
|
};
|
|
1032
990
|
}
|
|
1033
991
|
return {
|
|
@@ -1061,7 +1019,7 @@ var getStorybookMetadata = /* @__PURE__ */ __name(async (_configDir) => {
|
|
|
1061
1019
|
var import_fetch_retry = __toESM(require_fetch_retry(), 1);
|
|
1062
1020
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
1063
1021
|
import * as os from "node:os";
|
|
1064
|
-
import { join as
|
|
1022
|
+
import { join as join2 } from "node:path";
|
|
1065
1023
|
import { isCI as isCI2 } from "storybook/internal/common";
|
|
1066
1024
|
|
|
1067
1025
|
// ../node_modules/nanoid/index.js
|
|
@@ -1244,7 +1202,7 @@ var prepareRequest = /* @__PURE__ */ __name(async (data, context, options) => {
|
|
|
1244
1202
|
}, "prepareRequest");
|
|
1245
1203
|
function getVersionNumber() {
|
|
1246
1204
|
try {
|
|
1247
|
-
return JSON.parse(readFileSync2(
|
|
1205
|
+
return JSON.parse(readFileSync2(join2(resolvePackageDir("storybook"), "package.json"), "utf8")).version;
|
|
1248
1206
|
} catch (e) {
|
|
1249
1207
|
return version;
|
|
1250
1208
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_kzg6jc8bd2 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_kzg6jc8bd2 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_kzg6jc8bd2 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_kzg6jc8bd2.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_kzg6jc8bd2.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_kzg6jc8bd2.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
__commonJS,
|
|
14
14
|
__name,
|
|
15
15
|
__require
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-SSN5PKIY.js";
|
|
17
17
|
|
|
18
18
|
// ../node_modules/ms/index.js
|
|
19
19
|
var require_ms = __commonJS({
|