storybook 10.0.0-rc.3 → 10.0.0
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/_node-chunks/{builder-manager-NIOGGLFD.js → builder-manager-IIQ2ZKJA.js} +12 -12
- package/dist/_node-chunks/camelcase-KNOP6IZN.js +18 -0
- package/dist/_node-chunks/{chunk-34ZACDOC.js → chunk-2EZNWWOJ.js} +10 -10
- package/dist/_node-chunks/{chunk-EOW64HJZ.js → chunk-3QAI2NJJ.js} +12 -12
- package/dist/_node-chunks/{chunk-VHDA7UQR.js → chunk-5KVCO3KO.js} +8 -8
- package/dist/_node-chunks/{chunk-QPB4P2Q3.js → chunk-5Q637AKX.js} +7 -7
- package/dist/_node-chunks/{chunk-VDVDOBNV.js → chunk-6RHAE6RA.js} +7 -7
- package/dist/_node-chunks/{chunk-CTMEFFNW.js → chunk-6WZTLCEA.js} +8 -8
- package/dist/_node-chunks/{chunk-TLUDPMLR.js → chunk-7ETUBLPB.js} +8 -8
- package/dist/_node-chunks/{chunk-EDGA22VS.js → chunk-7FGNXYYL.js} +7 -7
- package/dist/_node-chunks/{chunk-JYCXWPO6.js → chunk-7I57UDPV.js} +7 -7
- package/dist/_node-chunks/chunk-AHEMORUT.js +18 -0
- package/dist/_node-chunks/{chunk-OAP27YU5.js → chunk-AM7YMYAG.js} +8 -8
- package/dist/_node-chunks/{chunk-AZH4HEPP.js → chunk-APCF6BLC.js} +20 -20
- package/dist/_node-chunks/{chunk-HGZID3CI.js → chunk-AWLJD6QV.js} +7 -7
- package/dist/_node-chunks/{chunk-5WPK6ACG.js → chunk-B2ETRD4V.js} +7 -7
- package/dist/_node-chunks/{chunk-WE7755VW.js → chunk-CXVGTDVQ.js} +34 -35
- package/dist/_node-chunks/{chunk-AF3TJ6R5.js → chunk-DHMCBBKY.js} +7 -7
- package/dist/_node-chunks/{chunk-5ZVI7NBO.js → chunk-HT6COHEU.js} +7 -7
- package/dist/_node-chunks/{chunk-FUCVPILC.js → chunk-IJ4AICLD.js} +9 -9
- package/dist/_node-chunks/{chunk-ML3GTXPM.js → chunk-ILHIUEFN.js} +6 -6
- package/dist/_node-chunks/{chunk-6PQVBT5D.js → chunk-J5PEW6E3.js} +7 -7
- package/dist/_node-chunks/{chunk-I37OZGFX.js → chunk-KH6JWU3Y.js} +7 -7
- package/dist/_node-chunks/{chunk-3SEBVSWT.js → chunk-L5S66L55.js} +7 -7
- package/dist/_node-chunks/{chunk-G5VN3ASC.js → chunk-NP4JBQ6Q.js} +7 -7
- package/dist/_node-chunks/{chunk-WRCI3EYU.js → chunk-PSD72R5Z.js} +7 -7
- package/dist/_node-chunks/{chunk-NSYINCG4.js → chunk-V44UUFGH.js} +7 -7
- package/dist/_node-chunks/chunk-VXV63T56.js +61 -0
- package/dist/_node-chunks/{chunk-KUXWX4RV.js → chunk-W6GXL2JC.js} +12 -12
- package/dist/_node-chunks/{chunk-CUEWGHOL.js → chunk-W7DCZC64.js} +6 -6
- package/dist/_node-chunks/{chunk-XFBFSXFJ.js → chunk-WOYNIIQY.js} +8 -8
- package/dist/_node-chunks/{chunk-XA5ZNWSM.js → chunk-XZCC7ABZ.js} +7 -7
- package/dist/_node-chunks/{chunk-R2FDNWFD.js → chunk-YDJVCYQJ.js} +9 -9
- package/dist/_node-chunks/{chunk-WSINFVEL.js → chunk-Z3LDC56S.js} +7 -7
- package/dist/_node-chunks/{chunk-SZ6FXTRU.js → chunk-ZECOO72W.js} +7 -7
- package/dist/_node-chunks/{dist-SXAIWZGI.js → dist-WL6RBQNY.js} +9 -9
- package/dist/_node-chunks/{globby-W4JFDHUY.js → globby-EMY2E3I3.js} +9 -9
- package/dist/_node-chunks/{lib-PMWBRG3N.js → lib-4ETZCPCM.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-IVVYYMYF.js → mdx-N42X6CFJ-UMV2MWTH.js} +8 -8
- package/dist/_node-chunks/{p-limit-PE5BWDZH.js → p-limit-UIVLT5UF.js} +7 -7
- package/dist/_node-chunks/{plugin-OGRBN4O7.js → plugin-PZH4HK5Z.js} +10 -10
- package/dist/_node-chunks/{plugin-ZVWKMXMK.js → plugin-UITTSLCA.js} +10 -10
- package/dist/_node-chunks/{webpack-inject-mocker-runtime-plugin-SXMOGYNE.js → webpack-inject-mocker-runtime-plugin-G75H5TZH.js} +10 -10
- package/dist/_node-chunks/{webpack-mock-plugin-X64FENVZ.js → webpack-mock-plugin-FK73ABOQ.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 +9 -9
- package/dist/cli/index.js +21 -21
- package/dist/common/index.js +20 -20
- package/dist/core-server/index.js +37 -36
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +38 -26
- 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-tools/index.js +9 -9
- package/dist/instrumenter/index.js +1 -1
- package/dist/manager/globals-runtime.js +2 -2
- package/dist/manager-api/index.d.ts +1 -1
- package/dist/manager-api/index.js +1 -1
- package/dist/node-logger/index.js +14 -14
- package/dist/preview/runtime.js +1 -1
- package/dist/preview-api/index.d.ts +67 -68
- package/dist/server-errors.js +10 -10
- package/dist/telemetry/index.d.ts +21 -1
- package/dist/telemetry/index.js +24 -24
- package/dist/types/index.d.ts +2 -1
- package/package.json +1 -1
- package/dist/_node-chunks/camelcase-CTANPQBN.js +0 -18
- package/dist/_node-chunks/chunk-UQKRSNK7.js +0 -61
- package/dist/_node-chunks/chunk-XC2HC4KH.js +0 -18
package/dist/cli/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_5r9jbklbg3s from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_5r9jbklbg3s from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_5r9jbklbg3s from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_5r9jbklbg3s.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_5r9jbklbg3s.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_5r9jbklbg3s.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -42,45 +42,45 @@ import {
|
|
|
42
42
|
supportedTemplates,
|
|
43
43
|
unsupportedTemplate,
|
|
44
44
|
writeFileAsJson
|
|
45
|
-
} from "../_node-chunks/chunk-
|
|
45
|
+
} from "../_node-chunks/chunk-3QAI2NJJ.js";
|
|
46
46
|
import {
|
|
47
47
|
boxen
|
|
48
|
-
} from "../_node-chunks/chunk-
|
|
49
|
-
import "../_node-chunks/chunk-
|
|
48
|
+
} from "../_node-chunks/chunk-WOYNIIQY.js";
|
|
49
|
+
import "../_node-chunks/chunk-J5PEW6E3.js";
|
|
50
50
|
import {
|
|
51
51
|
Settings,
|
|
52
52
|
_clearGlobalSettings,
|
|
53
53
|
globalSettings
|
|
54
|
-
} from "../_node-chunks/chunk-
|
|
54
|
+
} from "../_node-chunks/chunk-7ETUBLPB.js";
|
|
55
55
|
import {
|
|
56
56
|
up2 as up
|
|
57
|
-
} from "../_node-chunks/chunk-
|
|
58
|
-
import "../_node-chunks/chunk-
|
|
59
|
-
import "../_node-chunks/chunk-
|
|
60
|
-
import "../_node-chunks/chunk-
|
|
57
|
+
} from "../_node-chunks/chunk-Z3LDC56S.js";
|
|
58
|
+
import "../_node-chunks/chunk-HT6COHEU.js";
|
|
59
|
+
import "../_node-chunks/chunk-AM7YMYAG.js";
|
|
60
|
+
import "../_node-chunks/chunk-DHMCBBKY.js";
|
|
61
61
|
import {
|
|
62
62
|
require_prompts
|
|
63
|
-
} from "../_node-chunks/chunk-
|
|
63
|
+
} from "../_node-chunks/chunk-NP4JBQ6Q.js";
|
|
64
64
|
import {
|
|
65
65
|
require_dist
|
|
66
|
-
} from "../_node-chunks/chunk-
|
|
66
|
+
} from "../_node-chunks/chunk-L5S66L55.js";
|
|
67
67
|
import {
|
|
68
68
|
babelParse,
|
|
69
69
|
recast,
|
|
70
70
|
traverse,
|
|
71
71
|
types
|
|
72
|
-
} from "../_node-chunks/chunk-
|
|
73
|
-
import "../_node-chunks/chunk-
|
|
74
|
-
import "../_node-chunks/chunk-
|
|
72
|
+
} from "../_node-chunks/chunk-2EZNWWOJ.js";
|
|
73
|
+
import "../_node-chunks/chunk-7FGNXYYL.js";
|
|
74
|
+
import "../_node-chunks/chunk-V44UUFGH.js";
|
|
75
75
|
import {
|
|
76
76
|
require_picocolors
|
|
77
|
-
} from "../_node-chunks/chunk-
|
|
77
|
+
} from "../_node-chunks/chunk-B2ETRD4V.js";
|
|
78
78
|
import {
|
|
79
79
|
__commonJS,
|
|
80
80
|
__name,
|
|
81
81
|
__require,
|
|
82
82
|
__toESM
|
|
83
|
-
} from "../_node-chunks/chunk-
|
|
83
|
+
} from "../_node-chunks/chunk-W7DCZC64.js";
|
|
84
84
|
|
|
85
85
|
// ../node_modules/esprima/dist/esprima.js
|
|
86
86
|
var require_esprima = __commonJS({
|
package/dist/common/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_5r9jbklbg3s from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_5r9jbklbg3s from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_5r9jbklbg3s from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_5r9jbklbg3s.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_5r9jbklbg3s.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_5r9jbklbg3s.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -83,11 +83,11 @@ import {
|
|
|
83
83
|
transformImportFiles,
|
|
84
84
|
validateConfigurationFiles,
|
|
85
85
|
validateFrameworkName
|
|
86
|
-
} from "../_node-chunks/chunk-
|
|
87
|
-
import "../_node-chunks/chunk-
|
|
86
|
+
} from "../_node-chunks/chunk-CXVGTDVQ.js";
|
|
87
|
+
import "../_node-chunks/chunk-7I57UDPV.js";
|
|
88
88
|
import {
|
|
89
89
|
versions_default
|
|
90
|
-
} from "../_node-chunks/chunk-
|
|
90
|
+
} from "../_node-chunks/chunk-VXV63T56.js";
|
|
91
91
|
import {
|
|
92
92
|
findFilesUp,
|
|
93
93
|
getProjectRoot,
|
|
@@ -99,22 +99,22 @@ import {
|
|
|
99
99
|
optionalEnvToBoolean,
|
|
100
100
|
stringifyEnvs,
|
|
101
101
|
stringifyProcessEnvs
|
|
102
|
-
} from "../_node-chunks/chunk-
|
|
103
|
-
import "../_node-chunks/chunk-
|
|
104
|
-
import "../_node-chunks/chunk-
|
|
102
|
+
} from "../_node-chunks/chunk-IJ4AICLD.js";
|
|
103
|
+
import "../_node-chunks/chunk-Z3LDC56S.js";
|
|
104
|
+
import "../_node-chunks/chunk-HT6COHEU.js";
|
|
105
105
|
import {
|
|
106
106
|
importMetaResolve,
|
|
107
107
|
importModule,
|
|
108
108
|
resolvePackageDir,
|
|
109
109
|
safeResolveModule
|
|
110
|
-
} from "../_node-chunks/chunk-
|
|
111
|
-
import "../_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-
|
|
110
|
+
} from "../_node-chunks/chunk-AM7YMYAG.js";
|
|
111
|
+
import "../_node-chunks/chunk-DHMCBBKY.js";
|
|
112
|
+
import "../_node-chunks/chunk-NP4JBQ6Q.js";
|
|
113
|
+
import "../_node-chunks/chunk-XZCC7ABZ.js";
|
|
114
|
+
import "../_node-chunks/chunk-KH6JWU3Y.js";
|
|
115
|
+
import "../_node-chunks/chunk-L5S66L55.js";
|
|
116
|
+
import "../_node-chunks/chunk-B2ETRD4V.js";
|
|
117
|
+
import "../_node-chunks/chunk-W7DCZC64.js";
|
|
118
118
|
export {
|
|
119
119
|
COMMON_ENV_VARS,
|
|
120
120
|
DEFAULT_FILES_PATTERN,
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_5r9jbklbg3s from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_5r9jbklbg3s from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_5r9jbklbg3s from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_5r9jbklbg3s.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_5r9jbklbg3s.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_5r9jbklbg3s.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
|
detectPnp
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-3QAI2NJJ.js";
|
|
15
15
|
import {
|
|
16
16
|
require_pretty_hrtime
|
|
17
|
-
} from "../_node-chunks/chunk-
|
|
17
|
+
} from "../_node-chunks/chunk-ZECOO72W.js";
|
|
18
18
|
import {
|
|
19
19
|
boxen,
|
|
20
20
|
require_string_width
|
|
21
|
-
} from "../_node-chunks/chunk-
|
|
22
|
-
import "../_node-chunks/chunk-
|
|
21
|
+
} from "../_node-chunks/chunk-WOYNIIQY.js";
|
|
22
|
+
import "../_node-chunks/chunk-J5PEW6E3.js";
|
|
23
23
|
import {
|
|
24
24
|
StatusTypeIdMismatchError,
|
|
25
25
|
StorybookError
|
|
26
|
-
} from "../_node-chunks/chunk-
|
|
26
|
+
} from "../_node-chunks/chunk-YDJVCYQJ.js";
|
|
27
27
|
import {
|
|
28
28
|
getErrorLevel,
|
|
29
29
|
mapStaticDir,
|
|
@@ -31,59 +31,59 @@ import {
|
|
|
31
31
|
sendTelemetryError,
|
|
32
32
|
useStatics,
|
|
33
33
|
withTelemetry
|
|
34
|
-
} from "../_node-chunks/chunk-
|
|
35
|
-
import "../_node-chunks/chunk-
|
|
34
|
+
} from "../_node-chunks/chunk-W6GXL2JC.js";
|
|
35
|
+
import "../_node-chunks/chunk-PSD72R5Z.js";
|
|
36
36
|
import {
|
|
37
37
|
telemetry
|
|
38
|
-
} from "../_node-chunks/chunk-
|
|
39
|
-
import "../_node-chunks/chunk-
|
|
38
|
+
} from "../_node-chunks/chunk-APCF6BLC.js";
|
|
39
|
+
import "../_node-chunks/chunk-AHEMORUT.js";
|
|
40
40
|
import {
|
|
41
41
|
userOrAutoTitleFromSpecifier
|
|
42
|
-
} from "../_node-chunks/chunk-
|
|
43
|
-
import "../_node-chunks/chunk-
|
|
44
|
-
import "../_node-chunks/chunk-
|
|
45
|
-
import "../_node-chunks/chunk-
|
|
42
|
+
} from "../_node-chunks/chunk-CXVGTDVQ.js";
|
|
43
|
+
import "../_node-chunks/chunk-7I57UDPV.js";
|
|
44
|
+
import "../_node-chunks/chunk-VXV63T56.js";
|
|
45
|
+
import "../_node-chunks/chunk-7ETUBLPB.js";
|
|
46
46
|
import {
|
|
47
47
|
optionalEnvToBoolean,
|
|
48
48
|
require_cross_spawn
|
|
49
|
-
} from "../_node-chunks/chunk-
|
|
49
|
+
} from "../_node-chunks/chunk-IJ4AICLD.js";
|
|
50
50
|
import {
|
|
51
51
|
up2 as up
|
|
52
|
-
} from "../_node-chunks/chunk-
|
|
53
|
-
import "../_node-chunks/chunk-
|
|
52
|
+
} from "../_node-chunks/chunk-Z3LDC56S.js";
|
|
53
|
+
import "../_node-chunks/chunk-5Q637AKX.js";
|
|
54
54
|
import {
|
|
55
55
|
invariant
|
|
56
|
-
} from "../_node-chunks/chunk-
|
|
56
|
+
} from "../_node-chunks/chunk-HT6COHEU.js";
|
|
57
57
|
import {
|
|
58
58
|
importModule,
|
|
59
59
|
resolvePackageDir
|
|
60
|
-
} from "../_node-chunks/chunk-
|
|
60
|
+
} from "../_node-chunks/chunk-AM7YMYAG.js";
|
|
61
61
|
import {
|
|
62
62
|
resolve
|
|
63
|
-
} from "../_node-chunks/chunk-
|
|
63
|
+
} from "../_node-chunks/chunk-DHMCBBKY.js";
|
|
64
64
|
import {
|
|
65
65
|
require_prompts
|
|
66
|
-
} from "../_node-chunks/chunk-
|
|
67
|
-
import "../_node-chunks/chunk-
|
|
66
|
+
} from "../_node-chunks/chunk-NP4JBQ6Q.js";
|
|
67
|
+
import "../_node-chunks/chunk-XZCC7ABZ.js";
|
|
68
68
|
import {
|
|
69
69
|
slash
|
|
70
|
-
} from "../_node-chunks/chunk-
|
|
70
|
+
} from "../_node-chunks/chunk-KH6JWU3Y.js";
|
|
71
71
|
import {
|
|
72
72
|
require_dist
|
|
73
|
-
} from "../_node-chunks/chunk-
|
|
73
|
+
} from "../_node-chunks/chunk-L5S66L55.js";
|
|
74
74
|
import {
|
|
75
75
|
require_lib,
|
|
76
76
|
require_src
|
|
77
|
-
} from "../_node-chunks/chunk-
|
|
77
|
+
} from "../_node-chunks/chunk-V44UUFGH.js";
|
|
78
78
|
import {
|
|
79
79
|
require_picocolors
|
|
80
|
-
} from "../_node-chunks/chunk-
|
|
80
|
+
} from "../_node-chunks/chunk-B2ETRD4V.js";
|
|
81
81
|
import {
|
|
82
82
|
__commonJS,
|
|
83
83
|
__name,
|
|
84
84
|
__require,
|
|
85
85
|
__toESM
|
|
86
|
-
} from "../_node-chunks/chunk-
|
|
86
|
+
} from "../_node-chunks/chunk-W7DCZC64.js";
|
|
87
87
|
|
|
88
88
|
// ../node_modules/tsconfig-paths/lib/filesystem.js
|
|
89
89
|
var require_filesystem = __commonJS({
|
|
@@ -8718,7 +8718,7 @@ var StoryIndexGenerator = class _StoryIndexGenerator {
|
|
|
8718
8718
|
}
|
|
8719
8719
|
const pathToSubIndex = {};
|
|
8720
8720
|
const fullGlob = slash(join(specifier.directory, specifier.files));
|
|
8721
|
-
const { globby } = await import("../_node-chunks/globby-
|
|
8721
|
+
const { globby } = await import("../_node-chunks/globby-EMY2E3I3.js");
|
|
8722
8722
|
const files = await globby(fullGlob, {
|
|
8723
8723
|
absolute: true,
|
|
8724
8724
|
cwd: workingDir,
|
|
@@ -8976,7 +8976,7 @@ var StoryIndexGenerator = class _StoryIndexGenerator {
|
|
|
8976
8976
|
const normalizedPath = normalizeStoryPath(relativePath);
|
|
8977
8977
|
const importPath = slash(normalizedPath);
|
|
8978
8978
|
const content = await readFile(absolutePath, { encoding: "utf8" });
|
|
8979
|
-
const { analyze } = await import("../_node-chunks/dist-
|
|
8979
|
+
const { analyze } = await import("../_node-chunks/dist-WL6RBQNY.js");
|
|
8980
8980
|
const result = await analyze(content);
|
|
8981
8981
|
if (result.isTemplate) {
|
|
8982
8982
|
return false;
|
|
@@ -9319,7 +9319,7 @@ __name(print, "print");
|
|
|
9319
9319
|
// src/core-server/utils/get-builders.ts
|
|
9320
9320
|
import { MissingBuilderError } from "storybook/internal/server-errors";
|
|
9321
9321
|
async function getManagerBuilder() {
|
|
9322
|
-
return await import("../_node-chunks/builder-manager-
|
|
9322
|
+
return await import("../_node-chunks/builder-manager-IIQ2ZKJA.js");
|
|
9323
9323
|
}
|
|
9324
9324
|
__name(getManagerBuilder, "getManagerBuilder");
|
|
9325
9325
|
async function getPreviewBuilder(resolvedPreviewBuilder) {
|
|
@@ -9558,7 +9558,7 @@ function watchStorySpecifiers(specifiers, options, onInvalidate) {
|
|
|
9558
9558
|
// because the directory could already be within the files part (e.g. './x/foo/bar')
|
|
9559
9559
|
basename2(specifier.files)
|
|
9560
9560
|
);
|
|
9561
|
-
const { globby } = await import("../_node-chunks/globby-
|
|
9561
|
+
const { globby } = await import("../_node-chunks/globby-EMY2E3I3.js");
|
|
9562
9562
|
const addedFiles = await globby(slash(dirGlob), commonGlobOptions2(dirGlob));
|
|
9563
9563
|
addedFiles.forEach((filePath) => {
|
|
9564
9564
|
const fileImportPath = toImportPath(filePath);
|
|
@@ -11674,6 +11674,7 @@ async function storybookDevServer(options) {
|
|
|
11674
11674
|
app.use(getAccessControlMiddleware(core2?.crossOriginIsolated ?? false));
|
|
11675
11675
|
app.use(getCachingMiddleware());
|
|
11676
11676
|
(await getMiddleware(options.configDir))(app);
|
|
11677
|
+
await options.presets.apply("experimental_devServer", app);
|
|
11677
11678
|
const { port, host, initialPath } = options;
|
|
11678
11679
|
invariant(port, "expected options to have a port");
|
|
11679
11680
|
const proto = options.https ? "https" : "http";
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_5r9jbklbg3s from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_5r9jbklbg3s from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_5r9jbklbg3s from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_5r9jbklbg3s.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_5r9jbklbg3s.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_5r9jbklbg3s.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
|
glob
|
|
14
|
-
} from "../../_node-chunks/chunk-
|
|
14
|
+
} from "../../_node-chunks/chunk-XZCC7ABZ.js";
|
|
15
15
|
import {
|
|
16
16
|
slash
|
|
17
|
-
} from "../../_node-chunks/chunk-
|
|
17
|
+
} from "../../_node-chunks/chunk-KH6JWU3Y.js";
|
|
18
18
|
import {
|
|
19
19
|
__name
|
|
20
|
-
} from "../../_node-chunks/chunk-
|
|
20
|
+
} from "../../_node-chunks/chunk-W7DCZC64.js";
|
|
21
21
|
|
|
22
22
|
// src/core-server/utils/remove-mdx-entries.ts
|
|
23
23
|
import { isAbsolute, join, relative } from "node:path";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_5r9jbklbg3s from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_5r9jbklbg3s from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_5r9jbklbg3s from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_5r9jbklbg3s.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_5r9jbklbg3s.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_5r9jbklbg3s.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -12,37 +12,37 @@ var require = CJS_COMPAT_NODE_MODULE_gf85phjy0t.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
parseStaticDir,
|
|
14
14
|
sendTelemetryError
|
|
15
|
-
} from "../../_node-chunks/chunk-
|
|
16
|
-
import "../../_node-chunks/chunk-
|
|
15
|
+
} from "../../_node-chunks/chunk-W6GXL2JC.js";
|
|
16
|
+
import "../../_node-chunks/chunk-PSD72R5Z.js";
|
|
17
17
|
import {
|
|
18
18
|
getLastEvents,
|
|
19
19
|
getSessionId
|
|
20
|
-
} from "../../_node-chunks/chunk-
|
|
20
|
+
} from "../../_node-chunks/chunk-5Q637AKX.js";
|
|
21
21
|
import {
|
|
22
22
|
invariant
|
|
23
|
-
} from "../../_node-chunks/chunk-
|
|
23
|
+
} from "../../_node-chunks/chunk-HT6COHEU.js";
|
|
24
24
|
import {
|
|
25
25
|
resolvePackageDir
|
|
26
|
-
} from "../../_node-chunks/chunk-
|
|
26
|
+
} from "../../_node-chunks/chunk-AM7YMYAG.js";
|
|
27
27
|
import {
|
|
28
28
|
join
|
|
29
|
-
} from "../../_node-chunks/chunk-
|
|
30
|
-
import "../../_node-chunks/chunk-
|
|
29
|
+
} from "../../_node-chunks/chunk-DHMCBBKY.js";
|
|
30
|
+
import "../../_node-chunks/chunk-NP4JBQ6Q.js";
|
|
31
31
|
import {
|
|
32
32
|
loadConfig
|
|
33
|
-
} from "../../_node-chunks/chunk-
|
|
33
|
+
} from "../../_node-chunks/chunk-6WZTLCEA.js";
|
|
34
34
|
import {
|
|
35
35
|
require_dist
|
|
36
|
-
} from "../../_node-chunks/chunk-
|
|
36
|
+
} from "../../_node-chunks/chunk-L5S66L55.js";
|
|
37
37
|
import {
|
|
38
38
|
require_picocolors
|
|
39
|
-
} from "../../_node-chunks/chunk-
|
|
39
|
+
} from "../../_node-chunks/chunk-B2ETRD4V.js";
|
|
40
40
|
import {
|
|
41
41
|
__commonJS,
|
|
42
42
|
__name,
|
|
43
43
|
__require,
|
|
44
44
|
__toESM
|
|
45
|
-
} from "../../_node-chunks/chunk-
|
|
45
|
+
} from "../../_node-chunks/chunk-W7DCZC64.js";
|
|
46
46
|
|
|
47
47
|
// ../node_modules/shell-quote/quote.js
|
|
48
48
|
var require_quote = __commonJS({
|
|
@@ -703,7 +703,7 @@ var import_ts_dedent = __toESM(require_dist(), 1);
|
|
|
703
703
|
|
|
704
704
|
// src/core-server/utils/get-component-variable-name.ts
|
|
705
705
|
var getComponentVariableName = /* @__PURE__ */ __name(async (name) => {
|
|
706
|
-
const camelCase = await import("../../_node-chunks/camelcase-
|
|
706
|
+
const camelCase = await import("../../_node-chunks/camelcase-KNOP6IZN.js");
|
|
707
707
|
const camelCased = camelCase.default(name.replace(/^[^a-zA-Z_$]*/, ""), { pascalCase: true });
|
|
708
708
|
const sanitized = camelCased.replace(/[^a-zA-Z_$]+/, "");
|
|
709
709
|
return sanitized;
|
|
@@ -1050,7 +1050,7 @@ async function searchFiles({
|
|
|
1050
1050
|
ignoredFiles = IGNORED_FILES,
|
|
1051
1051
|
fileExtensions = FILE_EXTENSIONS
|
|
1052
1052
|
}) {
|
|
1053
|
-
const { globby, isDynamicPattern } = await import("../../_node-chunks/globby-
|
|
1053
|
+
const { globby, isDynamicPattern } = await import("../../_node-chunks/globby-EMY2E3I3.js");
|
|
1054
1054
|
const hasSearchSpecialGlobChars = isDynamicPattern(searchQuery, { cwd });
|
|
1055
1055
|
const hasFileExtensionRegex = /(\.[a-z]+)$/i;
|
|
1056
1056
|
const searchQueryHasExtension = hasFileExtensionRegex.test(searchQuery);
|
|
@@ -1200,6 +1200,19 @@ __name(initOpenInEditorChannel, "initOpenInEditorChannel");
|
|
|
1200
1200
|
// src/core-server/server-channel/preview-initialized-channel.ts
|
|
1201
1201
|
import { PREVIEW_INITIALIZED } from "storybook/internal/core-events";
|
|
1202
1202
|
import { telemetry as telemetry4 } from "storybook/internal/telemetry";
|
|
1203
|
+
var makePayload = /* @__PURE__ */ __name((userAgent, lastInit, sessionId) => {
|
|
1204
|
+
let timeSinceInit;
|
|
1205
|
+
const payload = {
|
|
1206
|
+
userAgent,
|
|
1207
|
+
isNewUser: false,
|
|
1208
|
+
timeSinceInit
|
|
1209
|
+
};
|
|
1210
|
+
if (sessionId && lastInit?.body?.sessionId === sessionId) {
|
|
1211
|
+
payload.timeSinceInit = Date.now() - lastInit.timestamp;
|
|
1212
|
+
payload.isNewUser = !!lastInit.body.payload.newUser;
|
|
1213
|
+
}
|
|
1214
|
+
return payload;
|
|
1215
|
+
}, "makePayload");
|
|
1203
1216
|
function initPreviewInitializedChannel(channel, options, _coreConfig) {
|
|
1204
1217
|
channel.on(PREVIEW_INITIALIZED, async ({ userAgent }) => {
|
|
1205
1218
|
if (!options.disableTelemetry) {
|
|
@@ -1209,9 +1222,8 @@ function initPreviewInitializedChannel(channel, options, _coreConfig) {
|
|
|
1209
1222
|
const lastInit = lastEvents.init;
|
|
1210
1223
|
const lastPreviewFirstLoad = lastEvents["preview-first-load"];
|
|
1211
1224
|
if (!lastPreviewFirstLoad) {
|
|
1212
|
-
const
|
|
1213
|
-
|
|
1214
|
-
telemetry4("preview-first-load", { timeSinceInit, isInitSession, userAgent });
|
|
1225
|
+
const payload = makePayload(userAgent, lastInit, sessionId);
|
|
1226
|
+
telemetry4("preview-first-load", payload);
|
|
1215
1227
|
}
|
|
1216
1228
|
} catch (e) {
|
|
1217
1229
|
}
|
|
@@ -1821,8 +1833,8 @@ var viteFinal = /* @__PURE__ */ __name(async (existing, options) => {
|
|
|
1821
1833
|
if (!previewConfigPath) {
|
|
1822
1834
|
return existing;
|
|
1823
1835
|
}
|
|
1824
|
-
const { viteInjectMockerRuntime } = await import("../../_node-chunks/plugin-
|
|
1825
|
-
const { viteMockPlugin } = await import("../../_node-chunks/plugin-
|
|
1836
|
+
const { viteInjectMockerRuntime } = await import("../../_node-chunks/plugin-UITTSLCA.js");
|
|
1837
|
+
const { viteMockPlugin } = await import("../../_node-chunks/plugin-PZH4HK5Z.js");
|
|
1826
1838
|
const coreOptions = await options.presets.apply("core");
|
|
1827
1839
|
return {
|
|
1828
1840
|
...existing,
|
|
@@ -1840,8 +1852,8 @@ var webpackFinal = /* @__PURE__ */ __name(async (config, options) => {
|
|
|
1840
1852
|
if (!previewConfigPath) {
|
|
1841
1853
|
return config;
|
|
1842
1854
|
}
|
|
1843
|
-
const { WebpackMockPlugin } = await import("../../_node-chunks/webpack-mock-plugin-
|
|
1844
|
-
const { WebpackInjectMockerRuntimePlugin } = await import("../../_node-chunks/webpack-inject-mocker-runtime-plugin-
|
|
1855
|
+
const { WebpackMockPlugin } = await import("../../_node-chunks/webpack-mock-plugin-FK73ABOQ.js");
|
|
1856
|
+
const { WebpackInjectMockerRuntimePlugin } = await import("../../_node-chunks/webpack-inject-mocker-runtime-plugin-G75H5TZH.js");
|
|
1845
1857
|
config.plugins = config.plugins || [];
|
|
1846
1858
|
config.module.rules.push({
|
|
1847
1859
|
test: /preview\.(t|j)sx?$/,
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_5r9jbklbg3s from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_5r9jbklbg3s from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_5r9jbklbg3s from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_5r9jbklbg3s.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_5r9jbklbg3s.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_5r9jbklbg3s.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
|
rewriteSbMockImportCalls
|
|
14
|
-
} from "../../../../_node-chunks/chunk-
|
|
15
|
-
import "../../../../_node-chunks/chunk-
|
|
14
|
+
} from "../../../../_node-chunks/chunk-5KVCO3KO.js";
|
|
15
|
+
import "../../../../_node-chunks/chunk-DHMCBBKY.js";
|
|
16
16
|
import {
|
|
17
17
|
__name
|
|
18
|
-
} from "../../../../_node-chunks/chunk-
|
|
18
|
+
} from "../../../../_node-chunks/chunk-W7DCZC64.js";
|
|
19
19
|
|
|
20
20
|
// src/core-server/presets/webpack/loaders/storybook-mock-transform-loader.ts
|
|
21
21
|
import { logger } from "storybook/internal/node-logger";
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_5r9jbklbg3s from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_5r9jbklbg3s from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_5r9jbklbg3s from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_5r9jbklbg3s.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_5r9jbklbg3s.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_5r9jbklbg3s.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
|
getAutomockCode
|
|
14
|
-
} from "../../../../_node-chunks/chunk-
|
|
14
|
+
} from "../../../../_node-chunks/chunk-6RHAE6RA.js";
|
|
15
15
|
import {
|
|
16
16
|
babelParser
|
|
17
|
-
} from "../../../../_node-chunks/chunk-
|
|
18
|
-
import "../../../../_node-chunks/chunk-
|
|
17
|
+
} from "../../../../_node-chunks/chunk-5KVCO3KO.js";
|
|
18
|
+
import "../../../../_node-chunks/chunk-DHMCBBKY.js";
|
|
19
19
|
import {
|
|
20
20
|
__name
|
|
21
|
-
} from "../../../../_node-chunks/chunk-
|
|
21
|
+
} from "../../../../_node-chunks/chunk-W7DCZC64.js";
|
|
22
22
|
|
|
23
23
|
// src/core-server/presets/webpack/loaders/webpack-automock-loader.ts
|
|
24
24
|
function webpackAutomockLoader(source) {
|
package/dist/csf-tools/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_5r9jbklbg3s from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_5r9jbklbg3s from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_5r9jbklbg3s from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_5r9jbklbg3s.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_5r9jbklbg3s.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_5r9jbklbg3s.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -38,9 +38,9 @@ import {
|
|
|
38
38
|
vitestTransform,
|
|
39
39
|
writeConfig,
|
|
40
40
|
writeCsf
|
|
41
|
-
} from "../_node-chunks/chunk-
|
|
42
|
-
import "../_node-chunks/chunk-
|
|
43
|
-
import "../_node-chunks/chunk-
|
|
41
|
+
} from "../_node-chunks/chunk-6WZTLCEA.js";
|
|
42
|
+
import "../_node-chunks/chunk-L5S66L55.js";
|
|
43
|
+
import "../_node-chunks/chunk-W7DCZC64.js";
|
|
44
44
|
export {
|
|
45
45
|
BadMetaError,
|
|
46
46
|
ConfigFile,
|
|
@@ -179,7 +179,7 @@ var _Instrumenter = class _Instrumenter {
|
|
|
179
179
|
}) => {
|
|
180
180
|
const { isDebugging } = this.getState(storyId);
|
|
181
181
|
if (newPhase === "preparing" && isDebugging) {
|
|
182
|
-
return resetState({ storyId, renderPhase: newPhase });
|
|
182
|
+
return resetState({ storyId, renderPhase: newPhase, isDebugging });
|
|
183
183
|
} else if (newPhase === "playing") {
|
|
184
184
|
return resetState({ storyId, renderPhase: newPhase, isDebugging });
|
|
185
185
|
}
|
|
@@ -57136,7 +57136,7 @@ var _Instrumenter = class _Instrumenter {
|
|
|
57136
57136
|
}) => {
|
|
57137
57137
|
const { isDebugging } = this.getState(storyId);
|
|
57138
57138
|
if (newPhase === "preparing" && isDebugging) {
|
|
57139
|
-
return resetState({ storyId, renderPhase: newPhase });
|
|
57139
|
+
return resetState({ storyId, renderPhase: newPhase, isDebugging });
|
|
57140
57140
|
} else if (newPhase === "playing") {
|
|
57141
57141
|
return resetState({ storyId, renderPhase: newPhase, isDebugging });
|
|
57142
57142
|
}
|
|
@@ -82702,7 +82702,7 @@ var import_memoizerific10 = __toESM(require_memoizerific(), 1);
|
|
|
82702
82702
|
var import_semver = __toESM(require_semver2(), 1);
|
|
82703
82703
|
|
|
82704
82704
|
// src/manager-api/version.ts
|
|
82705
|
-
var version = "10.0.0
|
|
82705
|
+
var version = "10.0.0";
|
|
82706
82706
|
|
|
82707
82707
|
// src/manager-api/modules/versions.ts
|
|
82708
82708
|
var { VERSIONCHECK } = scope;
|
|
@@ -393,7 +393,7 @@ interface SubState$5 {
|
|
|
393
393
|
|
|
394
394
|
declare const isMacLike: () => boolean;
|
|
395
395
|
declare const controlOrMetaSymbol: () => "⌘" | "ctrl";
|
|
396
|
-
declare const controlOrMetaKey: () => "
|
|
396
|
+
declare const controlOrMetaKey: () => "meta" | "control";
|
|
397
397
|
declare const optionOrAltSymbol: () => "⌥" | "alt";
|
|
398
398
|
declare const isShortcutTaken: (arr1: string[], arr2: string[]) => boolean;
|
|
399
399
|
type KeyboardEventLike = Pick<KeyboardEvent, 'altKey' | 'ctrlKey' | 'metaKey' | 'shiftKey' | 'key' | 'code' | 'keyCode' | 'preventDefault'>;
|
|
@@ -3262,7 +3262,7 @@ import { global as global8 } from "@storybook/global";
|
|
|
3262
3262
|
import semver from "semver";
|
|
3263
3263
|
|
|
3264
3264
|
// src/manager-api/version.ts
|
|
3265
|
-
var version = "10.0.0
|
|
3265
|
+
var version = "10.0.0";
|
|
3266
3266
|
|
|
3267
3267
|
// src/manager-api/modules/versions.ts
|
|
3268
3268
|
var { VERSIONCHECK } = global8;
|