storybook 10.0.0-beta.6 → 10.0.0-beta.8
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-YQV3EGQ5.js → chunk-OQ6NCFPL.js} +38 -15
- package/dist/_browser-chunks/{chunk-O5R5CGFA.js → chunk-TMDZCWME.js} +1 -2
- package/dist/_node-chunks/{builder-manager-V33CQT2M.js → builder-manager-Y34L3HC4.js} +30 -15
- package/dist/_node-chunks/camelcase-W6EWLMZP.js +18 -0
- package/dist/_node-chunks/{chunk-A7CUP23N.js → chunk-3VCGPS3V.js} +7 -7
- package/dist/_node-chunks/{chunk-EAOPWIKA.js → chunk-4QSDBUYK.js} +8 -8
- package/dist/_node-chunks/{chunk-UYKQJMQY.js → chunk-4SIVISOF.js} +21 -27
- package/dist/_node-chunks/{chunk-MLBTKECD.js → chunk-5SPDSTWP.js} +7 -7
- package/dist/_node-chunks/{chunk-VQH4ZFTS.js → chunk-6NAUDAPE.js} +8 -8
- package/dist/_node-chunks/{chunk-NUVGSFQI.js → chunk-6SXRGPL6.js} +7 -7
- package/dist/_node-chunks/{chunk-2DMFI367.js → chunk-7JZFWQN4.js} +72 -8
- package/dist/_node-chunks/{chunk-IINJT47N.js → chunk-7Q5EKYUL.js} +7 -7
- package/dist/_node-chunks/{chunk-B3AMFGAL.js → chunk-AND2M2X5.js} +7 -7
- package/dist/_node-chunks/{chunk-RIPA4LFD.js → chunk-AZWKFSEJ.js} +108 -76
- package/dist/_node-chunks/{chunk-7NJGTQ3W.js → chunk-CL53RP5L.js} +8 -8
- package/dist/_node-chunks/{chunk-BNOZ3EKF.js → chunk-CZLW5B2W.js} +7 -7
- package/dist/_node-chunks/{chunk-DC7OWBHB.js → chunk-DRNU7FEF.js} +12 -12
- package/dist/_node-chunks/{chunk-VSC6LSCQ.js → chunk-EMCS3ZKS.js} +6 -6
- package/dist/_node-chunks/{chunk-EY5PTUZL.js → chunk-F43CI3CD.js} +10 -10
- package/dist/_node-chunks/{chunk-XZTBG2TG.js → chunk-FRTUAT3V.js} +6 -6
- package/dist/_node-chunks/{chunk-JNHUDBJL.js → chunk-HRBWZFVH.js} +7 -7
- package/dist/_node-chunks/{chunk-55VWKF63.js → chunk-IE2VBA4V.js} +9 -9
- package/dist/_node-chunks/{chunk-5IEY46LQ.js → chunk-JEIQPNWQ.js} +7 -7
- package/dist/_node-chunks/{chunk-NKZ4UPPV.js → chunk-JG7IEUS3.js} +7 -7
- package/dist/_node-chunks/{chunk-HEBHWRWL.js → chunk-LKGWQEHR.js} +7 -7
- package/dist/_node-chunks/{chunk-6PTV7XGR.js → chunk-MIJKYKSO.js} +264 -109
- package/dist/_node-chunks/{chunk-F3PO67U3.js → chunk-O33XSHQE.js} +7 -7
- package/dist/_node-chunks/{chunk-HPFXREVG.js → chunk-SOIRRZYG.js} +7 -7
- package/dist/_node-chunks/chunk-T46D5USU.js +18 -0
- package/dist/_node-chunks/{chunk-NJXBURX7.js → chunk-T5VNV7FG.js} +7 -7
- package/dist/_node-chunks/{chunk-E6TLN2J2.js → chunk-TL5UYDH2.js} +7 -7
- package/dist/_node-chunks/{chunk-JOXYGIZK.js → chunk-UORO6DG4.js} +9 -9
- package/dist/_node-chunks/chunk-USP6T4QU.js +62 -0
- package/dist/_node-chunks/{chunk-7WH7AGOR.js → chunk-WS3L7DA7.js} +7 -7
- package/dist/_node-chunks/{chunk-4TOI4VSK.js → chunk-YMZK6547.js} +7 -7
- package/dist/_node-chunks/{dist-CGGAYWME.js → dist-RINWIIFC.js} +9 -9
- package/dist/_node-chunks/{globby-3IFB7BJC.js → globby-G3CLKE4Y.js} +9 -9
- package/dist/_node-chunks/{lib-IT6OBSID.js → lib-67I574Z7.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-WM36SSZ6.js → mdx-N42X6CFJ-6DP2YFMY.js} +8 -8
- package/dist/_node-chunks/{p-limit-3V5XIKA7.js → p-limit-JBOY5PGK.js} +7 -7
- package/dist/_node-chunks/{plugin-3YREMMJJ.js → plugin-2IR6AOYP.js} +10 -10
- package/dist/_node-chunks/{plugin-GJUBUKCT.js → plugin-5XCSTKS6.js} +10 -10
- package/dist/_node-chunks/{webpack-inject-mocker-runtime-plugin-DCJQFJQ5.js → webpack-inject-mocker-runtime-plugin-5FUND5HJ.js} +10 -10
- package/dist/_node-chunks/{webpack-mock-plugin-XJNFAHBI.js → webpack-mock-plugin-JVWSZ2PI.js} +9 -9
- package/dist/babel/index.js +11 -11
- package/dist/bin/core.js +11 -11
- package/dist/bin/dispatcher.js +11 -11
- package/dist/bin/loader.js +8 -8
- package/dist/cli/index.js +20 -20
- package/dist/common/index.js +20 -21
- package/dist/components/index.js +7 -3
- package/dist/core-server/index.js +90 -63
- package/dist/core-server/presets/common-manager.js +575 -531
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +22 -22
- 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 +37 -8
- package/dist/csf-tools/index.d.ts +13 -6
- package/dist/csf-tools/index.js +9 -9
- package/dist/manager/globals-runtime.js +73 -34
- package/dist/manager/runtime.js +501 -257
- package/dist/manager-api/index.d.ts +11 -6
- package/dist/manager-api/index.js +69 -34
- package/dist/node-logger/index.js +14 -14
- package/dist/preview/globals.js +1 -1
- package/dist/preview/runtime.js +97 -63
- package/dist/preview-api/index.d.ts +70 -71
- package/dist/preview-api/index.js +1 -1
- package/dist/server-errors.js +10 -10
- package/dist/telemetry/index.js +23 -24
- package/dist/types/index.d.ts +24 -7
- package/dist/viewport/index.d.ts +36 -4
- package/dist/viewport/index.js +1 -1
- package/package.json +1 -33
- package/dist/_node-chunks/camelcase-BZ55OCHI.js +0 -18
- package/dist/_node-chunks/chunk-FDDJHDCE.js +0 -62
- package/dist/_node-chunks/chunk-R5DIBOM6.js +0 -18
- package/dist/_node-chunks/chunk-TJIMCNYJ.js +0 -80
package/dist/cli/index.js
CHANGED
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_7kszd2fgfzq from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_7kszd2fgfzq from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_7kszd2fgfzq from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_7kszd2fgfzq.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_7kszd2fgfzq.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_7kszd2fgfzq.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
|
boxen
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
15
|
-
import "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-4QSDBUYK.js";
|
|
15
|
+
import "../_node-chunks/chunk-3VCGPS3V.js";
|
|
16
16
|
import {
|
|
17
17
|
Settings,
|
|
18
18
|
_clearGlobalSettings,
|
|
19
19
|
globalSettings
|
|
20
|
-
} from "../_node-chunks/chunk-
|
|
20
|
+
} from "../_node-chunks/chunk-CL53RP5L.js";
|
|
21
21
|
import {
|
|
22
22
|
any,
|
|
23
23
|
up2 as up
|
|
24
|
-
} from "../_node-chunks/chunk-
|
|
24
|
+
} from "../_node-chunks/chunk-O33XSHQE.js";
|
|
25
25
|
import {
|
|
26
26
|
invariant
|
|
27
|
-
} from "../_node-chunks/chunk-
|
|
27
|
+
} from "../_node-chunks/chunk-SOIRRZYG.js";
|
|
28
28
|
import {
|
|
29
29
|
resolvePackageDir
|
|
30
|
-
} from "../_node-chunks/chunk-
|
|
31
|
-
import "../_node-chunks/chunk-
|
|
30
|
+
} from "../_node-chunks/chunk-7JZFWQN4.js";
|
|
31
|
+
import "../_node-chunks/chunk-WS3L7DA7.js";
|
|
32
32
|
import {
|
|
33
33
|
require_prompts
|
|
34
|
-
} from "../_node-chunks/chunk-
|
|
34
|
+
} from "../_node-chunks/chunk-TL5UYDH2.js";
|
|
35
35
|
import {
|
|
36
36
|
require_dist
|
|
37
|
-
} from "../_node-chunks/chunk-
|
|
37
|
+
} from "../_node-chunks/chunk-5SPDSTWP.js";
|
|
38
38
|
import {
|
|
39
39
|
babelParse,
|
|
40
40
|
recast,
|
|
41
41
|
traverse,
|
|
42
42
|
types
|
|
43
|
-
} from "../_node-chunks/chunk-
|
|
44
|
-
import "../_node-chunks/chunk-
|
|
45
|
-
import "../_node-chunks/chunk-
|
|
43
|
+
} from "../_node-chunks/chunk-F43CI3CD.js";
|
|
44
|
+
import "../_node-chunks/chunk-LKGWQEHR.js";
|
|
45
|
+
import "../_node-chunks/chunk-JG7IEUS3.js";
|
|
46
46
|
import {
|
|
47
47
|
require_picocolors
|
|
48
|
-
} from "../_node-chunks/chunk-
|
|
48
|
+
} from "../_node-chunks/chunk-JEIQPNWQ.js";
|
|
49
49
|
import {
|
|
50
50
|
__commonJS,
|
|
51
51
|
__name,
|
|
52
52
|
__require,
|
|
53
53
|
__toESM
|
|
54
|
-
} from "../_node-chunks/chunk-
|
|
54
|
+
} from "../_node-chunks/chunk-FRTUAT3V.js";
|
|
55
55
|
|
|
56
56
|
// ../node_modules/wrappy/wrappy.js
|
|
57
57
|
var require_wrappy = __commonJS({
|
package/dist/common/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_7kszd2fgfzq from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_7kszd2fgfzq from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_7kszd2fgfzq from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_7kszd2fgfzq.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_7kszd2fgfzq.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_7kszd2fgfzq.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -83,12 +83,11 @@ import {
|
|
|
83
83
|
transformImportFiles,
|
|
84
84
|
validateConfigurationFiles,
|
|
85
85
|
validateFrameworkName
|
|
86
|
-
} from "../_node-chunks/chunk-
|
|
87
|
-
import "../_node-chunks/chunk-
|
|
88
|
-
import "../_node-chunks/chunk-2DMFI367.js";
|
|
86
|
+
} from "../_node-chunks/chunk-AZWKFSEJ.js";
|
|
87
|
+
import "../_node-chunks/chunk-7Q5EKYUL.js";
|
|
89
88
|
import {
|
|
90
89
|
versions_default
|
|
91
|
-
} from "../_node-chunks/chunk-
|
|
90
|
+
} from "../_node-chunks/chunk-USP6T4QU.js";
|
|
92
91
|
import {
|
|
93
92
|
findFilesUp,
|
|
94
93
|
getProjectRoot,
|
|
@@ -100,22 +99,22 @@ import {
|
|
|
100
99
|
optionalEnvToBoolean,
|
|
101
100
|
stringifyEnvs,
|
|
102
101
|
stringifyProcessEnvs
|
|
103
|
-
} from "../_node-chunks/chunk-
|
|
104
|
-
import "../_node-chunks/chunk-
|
|
105
|
-
import "../_node-chunks/chunk-
|
|
102
|
+
} from "../_node-chunks/chunk-IE2VBA4V.js";
|
|
103
|
+
import "../_node-chunks/chunk-O33XSHQE.js";
|
|
104
|
+
import "../_node-chunks/chunk-SOIRRZYG.js";
|
|
106
105
|
import {
|
|
107
106
|
importMetaResolve,
|
|
108
107
|
importModule,
|
|
109
108
|
resolvePackageDir,
|
|
110
109
|
safeResolveModule
|
|
111
|
-
} from "../_node-chunks/chunk-
|
|
112
|
-
import "../_node-chunks/chunk-
|
|
113
|
-
import "../_node-chunks/chunk-
|
|
114
|
-
import "../_node-chunks/chunk-
|
|
115
|
-
import "../_node-chunks/chunk-
|
|
116
|
-
import "../_node-chunks/chunk-
|
|
117
|
-
import "../_node-chunks/chunk-
|
|
118
|
-
import "../_node-chunks/chunk-
|
|
110
|
+
} from "../_node-chunks/chunk-7JZFWQN4.js";
|
|
111
|
+
import "../_node-chunks/chunk-WS3L7DA7.js";
|
|
112
|
+
import "../_node-chunks/chunk-TL5UYDH2.js";
|
|
113
|
+
import "../_node-chunks/chunk-T5VNV7FG.js";
|
|
114
|
+
import "../_node-chunks/chunk-HRBWZFVH.js";
|
|
115
|
+
import "../_node-chunks/chunk-5SPDSTWP.js";
|
|
116
|
+
import "../_node-chunks/chunk-JEIQPNWQ.js";
|
|
117
|
+
import "../_node-chunks/chunk-FRTUAT3V.js";
|
|
119
118
|
export {
|
|
120
119
|
COMMON_ENV_VARS,
|
|
121
120
|
DEFAULT_FILES_PATTERN,
|
package/dist/components/index.js
CHANGED
|
@@ -4475,7 +4475,7 @@ import { styled as styled38 } from "storybook/theming";
|
|
|
4475
4475
|
|
|
4476
4476
|
// src/components/components/Form/Checkbox.tsx
|
|
4477
4477
|
import React43 from "react";
|
|
4478
|
-
import { color, styled as styled32 } from "storybook/
|
|
4478
|
+
import { color, styled as styled32 } from "storybook/theming";
|
|
4479
4479
|
var Input = styled32.input({
|
|
4480
4480
|
appearance: "none",
|
|
4481
4481
|
display: "grid",
|
|
@@ -4665,7 +4665,7 @@ var Input2 = Object.assign(
|
|
|
4665
4665
|
|
|
4666
4666
|
// src/components/components/Form/Radio.tsx
|
|
4667
4667
|
import React46 from "react";
|
|
4668
|
-
import { color as color2, styled as styled35 } from "storybook/
|
|
4668
|
+
import { color as color2, styled as styled35 } from "storybook/theming";
|
|
4669
4669
|
var Input4 = styled35.input({
|
|
4670
4670
|
appearance: "none",
|
|
4671
4671
|
display: "grid",
|
|
@@ -5203,7 +5203,9 @@ var Center = styled41.span(
|
|
|
5203
5203
|
flex: 1,
|
|
5204
5204
|
textAlign: "left",
|
|
5205
5205
|
display: "flex",
|
|
5206
|
-
flexDirection: "column"
|
|
5206
|
+
flexDirection: "column",
|
|
5207
|
+
minWidth: 0
|
|
5208
|
+
// required for overflow
|
|
5207
5209
|
},
|
|
5208
5210
|
({ isIndented }) => isIndented ? { marginLeft: 24 } : {}
|
|
5209
5211
|
);
|
|
@@ -5231,6 +5233,8 @@ var Left = styled41.span(
|
|
|
5231
5233
|
var Item = styled41.div(
|
|
5232
5234
|
({ theme }) => ({
|
|
5233
5235
|
width: "100%",
|
|
5236
|
+
minWidth: 0,
|
|
5237
|
+
// required for overflow
|
|
5234
5238
|
border: "none",
|
|
5235
5239
|
borderRadius: theme.appBorderRadius,
|
|
5236
5240
|
background: "none",
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_7kszd2fgfzq from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_7kszd2fgfzq from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_7kszd2fgfzq from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_7kszd2fgfzq.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_7kszd2fgfzq.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_7kszd2fgfzq.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_pretty_hrtime
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-6SXRGPL6.js";
|
|
15
15
|
import {
|
|
16
16
|
boxen,
|
|
17
17
|
require_string_width
|
|
18
|
-
} from "../_node-chunks/chunk-
|
|
19
|
-
import "../_node-chunks/chunk-
|
|
18
|
+
} from "../_node-chunks/chunk-4QSDBUYK.js";
|
|
19
|
+
import "../_node-chunks/chunk-3VCGPS3V.js";
|
|
20
20
|
import {
|
|
21
21
|
StatusTypeIdMismatchError,
|
|
22
22
|
StorybookError
|
|
23
|
-
} from "../_node-chunks/chunk-
|
|
23
|
+
} from "../_node-chunks/chunk-UORO6DG4.js";
|
|
24
24
|
import {
|
|
25
25
|
getErrorLevel,
|
|
26
26
|
mapStaticDir,
|
|
@@ -28,60 +28,59 @@ import {
|
|
|
28
28
|
sendTelemetryError,
|
|
29
29
|
useStatics,
|
|
30
30
|
withTelemetry
|
|
31
|
-
} from "../_node-chunks/chunk-
|
|
32
|
-
import "../_node-chunks/chunk-
|
|
31
|
+
} from "../_node-chunks/chunk-DRNU7FEF.js";
|
|
32
|
+
import "../_node-chunks/chunk-YMZK6547.js";
|
|
33
33
|
import {
|
|
34
34
|
telemetry
|
|
35
|
-
} from "../_node-chunks/chunk-
|
|
36
|
-
import "../_node-chunks/chunk-
|
|
35
|
+
} from "../_node-chunks/chunk-4SIVISOF.js";
|
|
36
|
+
import "../_node-chunks/chunk-T46D5USU.js";
|
|
37
37
|
import {
|
|
38
38
|
userOrAutoTitleFromSpecifier
|
|
39
|
-
} from "../_node-chunks/chunk-
|
|
40
|
-
import "../_node-chunks/chunk-
|
|
41
|
-
import "../_node-chunks/chunk-
|
|
42
|
-
import "../_node-chunks/chunk-
|
|
43
|
-
import "../_node-chunks/chunk-7NJGTQ3W.js";
|
|
39
|
+
} from "../_node-chunks/chunk-AZWKFSEJ.js";
|
|
40
|
+
import "../_node-chunks/chunk-7Q5EKYUL.js";
|
|
41
|
+
import "../_node-chunks/chunk-USP6T4QU.js";
|
|
42
|
+
import "../_node-chunks/chunk-CL53RP5L.js";
|
|
44
43
|
import {
|
|
45
44
|
optionalEnvToBoolean,
|
|
46
45
|
require_cross_spawn
|
|
47
|
-
} from "../_node-chunks/chunk-
|
|
46
|
+
} from "../_node-chunks/chunk-IE2VBA4V.js";
|
|
48
47
|
import {
|
|
49
48
|
up2 as up
|
|
50
|
-
} from "../_node-chunks/chunk-
|
|
49
|
+
} from "../_node-chunks/chunk-O33XSHQE.js";
|
|
51
50
|
import {
|
|
52
51
|
invariant
|
|
53
|
-
} from "../_node-chunks/chunk-
|
|
52
|
+
} from "../_node-chunks/chunk-SOIRRZYG.js";
|
|
54
53
|
import {
|
|
55
54
|
importModule,
|
|
56
55
|
resolvePackageDir
|
|
57
|
-
} from "../_node-chunks/chunk-
|
|
56
|
+
} from "../_node-chunks/chunk-7JZFWQN4.js";
|
|
58
57
|
import {
|
|
59
58
|
resolve
|
|
60
|
-
} from "../_node-chunks/chunk-
|
|
59
|
+
} from "../_node-chunks/chunk-WS3L7DA7.js";
|
|
61
60
|
import {
|
|
62
61
|
require_prompts
|
|
63
|
-
} from "../_node-chunks/chunk-
|
|
64
|
-
import "../_node-chunks/chunk-
|
|
62
|
+
} from "../_node-chunks/chunk-TL5UYDH2.js";
|
|
63
|
+
import "../_node-chunks/chunk-T5VNV7FG.js";
|
|
65
64
|
import {
|
|
66
65
|
slash
|
|
67
|
-
} from "../_node-chunks/chunk-
|
|
66
|
+
} from "../_node-chunks/chunk-HRBWZFVH.js";
|
|
68
67
|
import {
|
|
69
68
|
require_dist
|
|
70
|
-
} from "../_node-chunks/chunk-
|
|
69
|
+
} from "../_node-chunks/chunk-5SPDSTWP.js";
|
|
71
70
|
import {
|
|
72
71
|
require_lib,
|
|
73
72
|
require_src
|
|
74
|
-
} from "../_node-chunks/chunk-
|
|
73
|
+
} from "../_node-chunks/chunk-JG7IEUS3.js";
|
|
75
74
|
import {
|
|
76
75
|
require_picocolors
|
|
77
|
-
} from "../_node-chunks/chunk-
|
|
76
|
+
} from "../_node-chunks/chunk-JEIQPNWQ.js";
|
|
78
77
|
import {
|
|
79
78
|
__commonJS,
|
|
80
79
|
__export,
|
|
81
80
|
__name,
|
|
82
81
|
__require,
|
|
83
82
|
__toESM
|
|
84
|
-
} from "../_node-chunks/chunk-
|
|
83
|
+
} from "../_node-chunks/chunk-FRTUAT3V.js";
|
|
85
84
|
|
|
86
85
|
// ../node_modules/tsconfig-paths/lib/filesystem.js
|
|
87
86
|
var require_filesystem = __commonJS({
|
|
@@ -8588,7 +8587,7 @@ var sortStoriesV7 = /* @__PURE__ */ __name((stories, storySortParameter, fileNam
|
|
|
8588
8587
|
Error sorting stories with sort parameter ${storySortParameter}:
|
|
8589
8588
|
|
|
8590
8589
|
> ${err.message}
|
|
8591
|
-
|
|
8590
|
+
|
|
8592
8591
|
Are you using a V6-style sort function in V7 mode?
|
|
8593
8592
|
|
|
8594
8593
|
More info: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#v7-style-story-sort
|
|
@@ -8676,6 +8675,7 @@ var AUTODOCS_TAG = "autodocs";
|
|
|
8676
8675
|
var ATTACHED_MDX_TAG = "attached-mdx";
|
|
8677
8676
|
var UNATTACHED_MDX_TAG = "unattached-mdx";
|
|
8678
8677
|
var PLAY_FN_TAG = "play-fn";
|
|
8678
|
+
var TEST_FN_TAG = "test-fn";
|
|
8679
8679
|
function isMdxEntry({ tags }) {
|
|
8680
8680
|
return tags?.includes(UNATTACHED_MDX_TAG) || tags?.includes(ATTACHED_MDX_TAG);
|
|
8681
8681
|
}
|
|
@@ -8715,7 +8715,7 @@ var StoryIndexGenerator = class _StoryIndexGenerator {
|
|
|
8715
8715
|
}
|
|
8716
8716
|
const pathToSubIndex = {};
|
|
8717
8717
|
const fullGlob = slash(join(specifier.directory, specifier.files));
|
|
8718
|
-
const { globby } = await import("../_node-chunks/globby-
|
|
8718
|
+
const { globby } = await import("../_node-chunks/globby-G3CLKE4Y.js");
|
|
8719
8719
|
const files = await globby(fullGlob, {
|
|
8720
8720
|
absolute: true,
|
|
8721
8721
|
cwd: workingDir,
|
|
@@ -8903,37 +8903,41 @@ var StoryIndexGenerator = class _StoryIndexGenerator {
|
|
|
8903
8903
|
"main"
|
|
8904
8904
|
]);
|
|
8905
8905
|
}
|
|
8906
|
-
const
|
|
8907
|
-
|
|
8908
|
-
|
|
8909
|
-
|
|
8910
|
-
|
|
8911
|
-
|
|
8912
|
-
|
|
8913
|
-
|
|
8914
|
-
|
|
8915
|
-
|
|
8916
|
-
|
|
8917
|
-
|
|
8918
|
-
|
|
8919
|
-
|
|
8920
|
-
|
|
8921
|
-
|
|
8922
|
-
|
|
8923
|
-
|
|
8924
|
-
|
|
8925
|
-
|
|
8926
|
-
|
|
8927
|
-
|
|
8906
|
+
const storyEntries = indexInputs.map(
|
|
8907
|
+
(input) => {
|
|
8908
|
+
const name = input.name ?? storyNameFromExport(input.exportName);
|
|
8909
|
+
const componentPath = input.rawComponentPath && this.resolveComponentPath(input.rawComponentPath, absolutePath, matchPath);
|
|
8910
|
+
const title = input.title ?? defaultMakeTitle();
|
|
8911
|
+
const id = input.__id ?? toId(input.metaId ?? title, storyNameFromExport(input.exportName));
|
|
8912
|
+
const tags = combineTags(...projectTags, ...input.tags ?? []);
|
|
8913
|
+
return {
|
|
8914
|
+
type: "story",
|
|
8915
|
+
subtype: input.type === "story" ? input.subtype : "story",
|
|
8916
|
+
id,
|
|
8917
|
+
extra: {
|
|
8918
|
+
metaId: input.metaId,
|
|
8919
|
+
stats: input.__stats ?? {}
|
|
8920
|
+
},
|
|
8921
|
+
name,
|
|
8922
|
+
title,
|
|
8923
|
+
importPath,
|
|
8924
|
+
componentPath,
|
|
8925
|
+
tags,
|
|
8926
|
+
...input.type === "story" && input.subtype === "test" ? { parent: input.parent, parentName: input.parentName } : {},
|
|
8927
|
+
...input.exportName ? { exportName: input.exportName } : {}
|
|
8928
|
+
};
|
|
8929
|
+
}
|
|
8930
|
+
);
|
|
8931
|
+
const hasAutodocsTag = storyEntries.some((entry) => entry.tags.includes(AUTODOCS_TAG));
|
|
8928
8932
|
const createDocEntry = hasAutodocsTag && !!this.options.docs;
|
|
8929
8933
|
if (createDocEntry && this.options.build?.test?.disableAutoDocs !== true) {
|
|
8930
8934
|
const docsName = this.options.docs?.defaultName ?? "Docs";
|
|
8931
8935
|
const name = docsName;
|
|
8932
8936
|
const { metaId } = indexInputs[0];
|
|
8933
|
-
const { title } =
|
|
8937
|
+
const { title } = storyEntries[0];
|
|
8934
8938
|
const id = toId(metaId ?? title, name);
|
|
8935
8939
|
const tags = combineTags(...projectTags, ...indexInputs[0].tags ?? []);
|
|
8936
|
-
|
|
8940
|
+
const docsEntry = {
|
|
8937
8941
|
id,
|
|
8938
8942
|
title,
|
|
8939
8943
|
name,
|
|
@@ -8941,10 +8945,15 @@ var StoryIndexGenerator = class _StoryIndexGenerator {
|
|
|
8941
8945
|
type: "docs",
|
|
8942
8946
|
tags,
|
|
8943
8947
|
storiesImports: []
|
|
8944
|
-
}
|
|
8948
|
+
};
|
|
8949
|
+
return {
|
|
8950
|
+
entries: [docsEntry, ...storyEntries],
|
|
8951
|
+
dependents: [],
|
|
8952
|
+
type: "stories"
|
|
8953
|
+
};
|
|
8945
8954
|
}
|
|
8946
8955
|
return {
|
|
8947
|
-
entries,
|
|
8956
|
+
entries: storyEntries,
|
|
8948
8957
|
dependents: [],
|
|
8949
8958
|
type: "stories"
|
|
8950
8959
|
};
|
|
@@ -8955,7 +8964,7 @@ var StoryIndexGenerator = class _StoryIndexGenerator {
|
|
|
8955
8964
|
const normalizedPath = normalizeStoryPath(relativePath);
|
|
8956
8965
|
const importPath = slash(normalizedPath);
|
|
8957
8966
|
const content = await readFile(absolutePath, { encoding: "utf8" });
|
|
8958
|
-
const { analyze } = await import("../_node-chunks/dist-
|
|
8967
|
+
const { analyze } = await import("../_node-chunks/dist-RINWIIFC.js");
|
|
8959
8968
|
const result2 = await analyze(content);
|
|
8960
8969
|
if (result2.isTemplate) {
|
|
8961
8970
|
return false;
|
|
@@ -9298,7 +9307,7 @@ __name(print, "print");
|
|
|
9298
9307
|
// src/core-server/utils/get-builders.ts
|
|
9299
9308
|
import { MissingBuilderError } from "storybook/internal/server-errors";
|
|
9300
9309
|
async function getManagerBuilder() {
|
|
9301
|
-
return await import("../_node-chunks/builder-manager-
|
|
9310
|
+
return await import("../_node-chunks/builder-manager-Y34L3HC4.js");
|
|
9302
9311
|
}
|
|
9303
9312
|
__name(getManagerBuilder, "getManagerBuilder");
|
|
9304
9313
|
async function getPreviewBuilder(resolvedPreviewBuilder) {
|
|
@@ -16542,7 +16551,7 @@ function watchStorySpecifiers(specifiers, options, onInvalidate) {
|
|
|
16542
16551
|
// because the directory could already be within the files part (e.g. './x/foo/bar')
|
|
16543
16552
|
basename2(specifier.files)
|
|
16544
16553
|
);
|
|
16545
|
-
const { globby } = await import("../_node-chunks/globby-
|
|
16554
|
+
const { globby } = await import("../_node-chunks/globby-G3CLKE4Y.js");
|
|
16546
16555
|
const addedFiles = await globby(slash(dirGlob), commonGlobOptions2(dirGlob));
|
|
16547
16556
|
addedFiles.forEach((filePath) => {
|
|
16548
16557
|
const fileImportPath = toImportPath(filePath);
|
|
@@ -16661,10 +16670,12 @@ function summarizeIndex(storyIndex) {
|
|
|
16661
16670
|
let exampleDocsCount = 0;
|
|
16662
16671
|
let pageStoryCount = 0;
|
|
16663
16672
|
let playStoryCount = 0;
|
|
16673
|
+
let testStoryCount = 0;
|
|
16664
16674
|
let autodocsCount = 0;
|
|
16665
16675
|
let mdxCount = 0;
|
|
16666
16676
|
let svelteCsfV4Count = 0;
|
|
16667
16677
|
let svelteCsfV5Count = 0;
|
|
16678
|
+
const testsPerParentStory = /* @__PURE__ */ new Map();
|
|
16668
16679
|
Object.values(storyIndex.entries).forEach((entry) => {
|
|
16669
16680
|
if (isCLIExampleEntry(entry)) {
|
|
16670
16681
|
if (entry.type === "story") {
|
|
@@ -16689,6 +16700,10 @@ function summarizeIndex(storyIndex) {
|
|
|
16689
16700
|
if (entry.tags?.includes(PLAY_FN_TAG)) {
|
|
16690
16701
|
playStoryCount += 1;
|
|
16691
16702
|
}
|
|
16703
|
+
if (entry.tags?.includes(TEST_FN_TAG) && entry.parent) {
|
|
16704
|
+
testStoryCount += 1;
|
|
16705
|
+
testsPerParentStory.set(entry.parent, (testsPerParentStory.get(entry.parent) ?? 0) + 1);
|
|
16706
|
+
}
|
|
16692
16707
|
if (entry.tags?.includes("svelte-csf-v4")) {
|
|
16693
16708
|
svelteCsfV4Count += 1;
|
|
16694
16709
|
} else if (entry.tags?.includes("svelte-csf-v5")) {
|
|
@@ -16703,11 +16718,24 @@ function summarizeIndex(storyIndex) {
|
|
|
16703
16718
|
}
|
|
16704
16719
|
});
|
|
16705
16720
|
const componentCount = componentTitles.size;
|
|
16721
|
+
let maxTestsPerStory = 0;
|
|
16722
|
+
let singleTestStoryCount = 0;
|
|
16723
|
+
testsPerParentStory.forEach((count) => {
|
|
16724
|
+
if (count > maxTestsPerStory) {
|
|
16725
|
+
maxTestsPerStory = count;
|
|
16726
|
+
}
|
|
16727
|
+
if (count === 1) {
|
|
16728
|
+
singleTestStoryCount += 1;
|
|
16729
|
+
}
|
|
16730
|
+
});
|
|
16706
16731
|
return {
|
|
16707
16732
|
storyCount,
|
|
16708
16733
|
componentCount,
|
|
16709
16734
|
pageStoryCount,
|
|
16710
16735
|
playStoryCount,
|
|
16736
|
+
testStoryCount,
|
|
16737
|
+
maxTestsPerStory,
|
|
16738
|
+
singleTestStoryCount,
|
|
16711
16739
|
autodocsCount,
|
|
16712
16740
|
mdxCount,
|
|
16713
16741
|
exampleStoryCount,
|
|
@@ -18467,7 +18495,6 @@ function startBrowserProcess(browser, url, args) {
|
|
|
18467
18495
|
"Google Chrome",
|
|
18468
18496
|
"Microsoft Edge",
|
|
18469
18497
|
"Brave Browser",
|
|
18470
|
-
"Arc",
|
|
18471
18498
|
"Vivaldi",
|
|
18472
18499
|
"Chromium"
|
|
18473
18500
|
];
|