storybook 10.1.1 → 10.1.2
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-C7JEYIYJ.js → builder-manager-4QKD5MM3.js} +12 -12
- package/dist/_node-chunks/{camelcase-EKJLJYXS.js → camelcase-IRQCWULJ.js} +7 -7
- package/dist/_node-chunks/{chunk-GVZHV3RA.js → chunk-2ROLNOX5.js} +20 -20
- package/dist/_node-chunks/chunk-2SKUXRHZ.js +23 -0
- package/dist/_node-chunks/{chunk-GCHB45RE.js → chunk-3E6FUWUR.js} +6 -6
- package/dist/_node-chunks/{chunk-DJWEMHR5.js → chunk-4EINUCZX.js} +13 -13
- package/dist/_node-chunks/chunk-4ROB3WCB.js +61 -0
- package/dist/_node-chunks/{chunk-LIHOGGYQ.js → chunk-5K3HCA3T.js} +6 -6
- package/dist/_node-chunks/{chunk-GAA4H3VB.js → chunk-AKO6A5CQ.js} +12 -12
- package/dist/_node-chunks/{chunk-4U2MVVKV.js → chunk-GGJB53L3.js} +7 -7
- package/dist/_node-chunks/{chunk-N7ITOTDA.js → chunk-GKZHMXCG.js} +7 -7
- package/dist/_node-chunks/{chunk-22GRWY3A.js → chunk-HIQU6BTN.js} +7 -7
- package/dist/_node-chunks/chunk-HLP3H23G.js +20 -0
- package/dist/_node-chunks/{chunk-U46HN6HR.js → chunk-JTVV3ILI.js} +6 -6
- package/dist/_node-chunks/{chunk-VCTH7NVT.js → chunk-M5WCOOCM.js} +6 -6
- package/dist/_node-chunks/{chunk-NYOGOMNG.js → chunk-NHMTWL5A.js} +7 -7
- package/dist/_node-chunks/chunk-NUXVDK4C.js +18 -0
- package/dist/_node-chunks/{chunk-O75LHYHE.js → chunk-OUCADXTV.js} +7 -7
- package/dist/_node-chunks/{chunk-IG2ALTN6.js → chunk-QTUMNOBG.js} +8 -8
- package/dist/_node-chunks/{chunk-CPQFWCXT.js → chunk-QXZ53NSP.js} +9 -9
- package/dist/_node-chunks/{chunk-HZC2SB7B.js → chunk-QZH7V7G5.js} +8 -8
- package/dist/_node-chunks/{chunk-EDWQNQRS.js → chunk-RGS3LXAW.js} +7 -7
- package/dist/_node-chunks/{chunk-GDGPRHGO.js → chunk-SKFB37NZ.js} +7 -7
- package/dist/_node-chunks/{chunk-V55OPUPS.js → chunk-TAK5JLJT.js} +9 -9
- package/dist/_node-chunks/{chunk-SCGML3ZY.js → chunk-TPC5WFN2.js} +6 -6
- package/dist/_node-chunks/{chunk-7GNG7DZN.js → chunk-TTOU3O3G.js} +10 -10
- package/dist/_node-chunks/{chunk-BHHIOLJA.js → chunk-TXYTWWZH.js} +6 -6
- package/dist/_node-chunks/{chunk-JN2WIVPA.js → chunk-U255RR5H.js} +6 -6
- package/dist/_node-chunks/{chunk-HS7MLKJ7.js → chunk-U5ZVDYGC.js} +13 -13
- package/dist/_node-chunks/{chunk-TXFQGVOT.js → chunk-ZYCQYU5P.js} +7 -7
- package/dist/_node-chunks/{dist-U4P7LQQN.js → dist-YCWFOINJ.js} +9 -9
- package/dist/_node-chunks/{globby-MZKLH3YV.js → globby-DJRLVC5S.js} +9 -9
- package/dist/_node-chunks/{lib-2N65EL7H.js → lib-IAG3XT2U.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-BH36LL45.js → mdx-N42X6CFJ-QMOKL6WQ.js} +8 -8
- package/dist/_node-chunks/{p-limit-IRSB2ECY.js → p-limit-5RGYVFOA.js} +7 -7
- package/dist/babel/index.js +10 -10
- package/dist/bin/core.js +12 -12
- package/dist/bin/dispatcher.js +11 -11
- package/dist/bin/loader.js +9 -9
- package/dist/cli/index.js +18 -18
- package/dist/common/index.js +19 -19
- package/dist/core-server/index.js +33 -33
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +40 -86
- package/dist/csf-tools/index.js +9 -9
- package/dist/manager/globals-runtime.js +1 -1
- package/dist/manager/runtime.js +1 -7
- package/dist/manager-api/index.d.ts +178 -178
- package/dist/manager-api/index.js +1 -1
- package/dist/mocking-utils/index.js +8 -8
- package/dist/node-logger/index.js +9 -9
- package/dist/preview-api/index.d.ts +67 -68
- package/dist/server-errors.js +11 -11
- package/dist/telemetry/index.d.ts +1 -1
- package/dist/telemetry/index.js +23 -23
- package/package.json +1 -1
- package/dist/_node-chunks/chunk-3AUMHWKR.js +0 -18
- package/dist/_node-chunks/chunk-DPZJ3NQJ.js +0 -61
- package/dist/_node-chunks/chunk-JJ5YIJTU.js +0 -23
- package/dist/_node-chunks/chunk-Q4NGPXRM.js +0 -20
package/dist/bin/loader.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_y9c3v0cnkub from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_y9c3v0cnkub from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_y9c3v0cnkub from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_y9c3v0cnkub.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_y9c3v0cnkub.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_y9c3v0cnkub.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
|
NODE_TARGET
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-3E6FUWUR.js";
|
|
15
15
|
import {
|
|
16
16
|
require_dist
|
|
17
|
-
} from "../_node-chunks/chunk-
|
|
17
|
+
} from "../_node-chunks/chunk-ZYCQYU5P.js";
|
|
18
18
|
import {
|
|
19
19
|
__toESM
|
|
20
|
-
} from "../_node-chunks/chunk-
|
|
20
|
+
} from "../_node-chunks/chunk-TPC5WFN2.js";
|
|
21
21
|
|
|
22
22
|
// src/bin/loader.ts
|
|
23
23
|
var import_ts_dedent = __toESM(require_dist(), 1);
|
package/dist/cli/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_y9c3v0cnkub from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_y9c3v0cnkub from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_y9c3v0cnkub from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_y9c3v0cnkub.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_y9c3v0cnkub.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_y9c3v0cnkub.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -33,24 +33,24 @@ import {
|
|
|
33
33
|
readFileAsJson,
|
|
34
34
|
suggestESLintPlugin,
|
|
35
35
|
writeFileAsJson
|
|
36
|
-
} from "../_node-chunks/chunk-
|
|
36
|
+
} from "../_node-chunks/chunk-AKO6A5CQ.js";
|
|
37
37
|
import {
|
|
38
38
|
detectPnp
|
|
39
|
-
} from "../_node-chunks/chunk-
|
|
39
|
+
} from "../_node-chunks/chunk-2SKUXRHZ.js";
|
|
40
40
|
import {
|
|
41
41
|
Settings,
|
|
42
42
|
_clearGlobalSettings,
|
|
43
43
|
globalSettings
|
|
44
|
-
} from "../_node-chunks/chunk-
|
|
45
|
-
import "../_node-chunks/chunk-
|
|
46
|
-
import "../_node-chunks/chunk-
|
|
47
|
-
import "../_node-chunks/chunk-
|
|
48
|
-
import "../_node-chunks/chunk-
|
|
49
|
-
import "../_node-chunks/chunk-
|
|
50
|
-
import "../_node-chunks/chunk-
|
|
51
|
-
import "../_node-chunks/chunk-
|
|
52
|
-
import "../_node-chunks/chunk-
|
|
53
|
-
import "../_node-chunks/chunk-
|
|
44
|
+
} from "../_node-chunks/chunk-TAK5JLJT.js";
|
|
45
|
+
import "../_node-chunks/chunk-JTVV3ILI.js";
|
|
46
|
+
import "../_node-chunks/chunk-GKZHMXCG.js";
|
|
47
|
+
import "../_node-chunks/chunk-TXYTWWZH.js";
|
|
48
|
+
import "../_node-chunks/chunk-U255RR5H.js";
|
|
49
|
+
import "../_node-chunks/chunk-ZYCQYU5P.js";
|
|
50
|
+
import "../_node-chunks/chunk-QXZ53NSP.js";
|
|
51
|
+
import "../_node-chunks/chunk-NHMTWL5A.js";
|
|
52
|
+
import "../_node-chunks/chunk-HIQU6BTN.js";
|
|
53
|
+
import "../_node-chunks/chunk-TPC5WFN2.js";
|
|
54
54
|
export {
|
|
55
55
|
ANGULAR_JSON_PATH,
|
|
56
56
|
AddonVitestService,
|
package/dist/common/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_y9c3v0cnkub from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_y9c3v0cnkub from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_y9c3v0cnkub from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_y9c3v0cnkub.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_y9c3v0cnkub.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_y9c3v0cnkub.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -102,29 +102,29 @@ import {
|
|
|
102
102
|
validateConfigurationFiles,
|
|
103
103
|
validateFrameworkName,
|
|
104
104
|
wrapValueWithGetAbsolutePathWrapper
|
|
105
|
-
} from "../_node-chunks/chunk-
|
|
105
|
+
} from "../_node-chunks/chunk-2ROLNOX5.js";
|
|
106
106
|
import {
|
|
107
107
|
versions_default
|
|
108
|
-
} from "../_node-chunks/chunk-
|
|
109
|
-
import "../_node-chunks/chunk-
|
|
110
|
-
import "../_node-chunks/chunk-
|
|
111
|
-
import "../_node-chunks/chunk-
|
|
108
|
+
} from "../_node-chunks/chunk-4ROB3WCB.js";
|
|
109
|
+
import "../_node-chunks/chunk-RGS3LXAW.js";
|
|
110
|
+
import "../_node-chunks/chunk-QTUMNOBG.js";
|
|
111
|
+
import "../_node-chunks/chunk-JTVV3ILI.js";
|
|
112
112
|
import {
|
|
113
113
|
importMetaResolve,
|
|
114
114
|
importModule,
|
|
115
115
|
resolvePackageDir,
|
|
116
116
|
safeResolveModule
|
|
117
|
-
} from "../_node-chunks/chunk-
|
|
117
|
+
} from "../_node-chunks/chunk-GKZHMXCG.js";
|
|
118
118
|
import {
|
|
119
119
|
groupBy,
|
|
120
120
|
invariant
|
|
121
|
-
} from "../_node-chunks/chunk-
|
|
122
|
-
import "../_node-chunks/chunk-
|
|
123
|
-
import "../_node-chunks/chunk-
|
|
124
|
-
import "../_node-chunks/chunk-
|
|
125
|
-
import "../_node-chunks/chunk-
|
|
126
|
-
import "../_node-chunks/chunk-
|
|
127
|
-
import "../_node-chunks/chunk-
|
|
121
|
+
} from "../_node-chunks/chunk-TXYTWWZH.js";
|
|
122
|
+
import "../_node-chunks/chunk-U255RR5H.js";
|
|
123
|
+
import "../_node-chunks/chunk-OUCADXTV.js";
|
|
124
|
+
import "../_node-chunks/chunk-HLP3H23G.js";
|
|
125
|
+
import "../_node-chunks/chunk-ZYCQYU5P.js";
|
|
126
|
+
import "../_node-chunks/chunk-HIQU6BTN.js";
|
|
127
|
+
import "../_node-chunks/chunk-TPC5WFN2.js";
|
|
128
128
|
export {
|
|
129
129
|
DEFAULT_FILES_PATTERN,
|
|
130
130
|
FileSystemCache,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_y9c3v0cnkub from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_y9c3v0cnkub from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_y9c3v0cnkub from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_y9c3v0cnkub.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_y9c3v0cnkub.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_y9c3v0cnkub.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
|
StatusTypeIdMismatchError
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-TTOU3O3G.js";
|
|
15
15
|
import {
|
|
16
16
|
debounce,
|
|
17
17
|
getErrorLevel,
|
|
@@ -21,66 +21,66 @@ import {
|
|
|
21
21
|
sendTelemetryError,
|
|
22
22
|
useStatics,
|
|
23
23
|
withTelemetry
|
|
24
|
-
} from "../_node-chunks/chunk-
|
|
25
|
-
import "../_node-chunks/chunk-
|
|
24
|
+
} from "../_node-chunks/chunk-U5ZVDYGC.js";
|
|
25
|
+
import "../_node-chunks/chunk-SKFB37NZ.js";
|
|
26
26
|
import {
|
|
27
27
|
detectPnp
|
|
28
|
-
} from "../_node-chunks/chunk-
|
|
28
|
+
} from "../_node-chunks/chunk-2SKUXRHZ.js";
|
|
29
29
|
import {
|
|
30
30
|
StorybookError
|
|
31
|
-
} from "../_node-chunks/chunk-
|
|
31
|
+
} from "../_node-chunks/chunk-M5WCOOCM.js";
|
|
32
32
|
import {
|
|
33
33
|
telemetry
|
|
34
|
-
} from "../_node-chunks/chunk-
|
|
35
|
-
import "../_node-chunks/chunk-
|
|
34
|
+
} from "../_node-chunks/chunk-4EINUCZX.js";
|
|
35
|
+
import "../_node-chunks/chunk-NUXVDK4C.js";
|
|
36
36
|
import {
|
|
37
37
|
optionalEnvToBoolean,
|
|
38
38
|
require_cross_spawn,
|
|
39
39
|
resolveImport,
|
|
40
40
|
supportedExtensions,
|
|
41
41
|
userOrAutoTitleFromSpecifier
|
|
42
|
-
} from "../_node-chunks/chunk-
|
|
43
|
-
import "../_node-chunks/chunk-
|
|
44
|
-
import "../_node-chunks/chunk-
|
|
42
|
+
} from "../_node-chunks/chunk-2ROLNOX5.js";
|
|
43
|
+
import "../_node-chunks/chunk-4ROB3WCB.js";
|
|
44
|
+
import "../_node-chunks/chunk-RGS3LXAW.js";
|
|
45
45
|
import {
|
|
46
46
|
require_pretty_hrtime
|
|
47
|
-
} from "../_node-chunks/chunk-
|
|
48
|
-
import "../_node-chunks/chunk-
|
|
49
|
-
import "../_node-chunks/chunk-
|
|
47
|
+
} from "../_node-chunks/chunk-QTUMNOBG.js";
|
|
48
|
+
import "../_node-chunks/chunk-5K3HCA3T.js";
|
|
49
|
+
import "../_node-chunks/chunk-TAK5JLJT.js";
|
|
50
50
|
import {
|
|
51
51
|
invariant,
|
|
52
52
|
up2 as up
|
|
53
|
-
} from "../_node-chunks/chunk-
|
|
53
|
+
} from "../_node-chunks/chunk-JTVV3ILI.js";
|
|
54
54
|
import {
|
|
55
55
|
importModule,
|
|
56
56
|
resolvePackageDir
|
|
57
|
-
} from "../_node-chunks/chunk-
|
|
58
|
-
import "../_node-chunks/chunk-
|
|
57
|
+
} from "../_node-chunks/chunk-GKZHMXCG.js";
|
|
58
|
+
import "../_node-chunks/chunk-TXYTWWZH.js";
|
|
59
59
|
import {
|
|
60
60
|
dirname,
|
|
61
61
|
join,
|
|
62
62
|
relative,
|
|
63
63
|
resolve
|
|
64
|
-
} from "../_node-chunks/chunk-
|
|
65
|
-
import "../_node-chunks/chunk-
|
|
64
|
+
} from "../_node-chunks/chunk-U255RR5H.js";
|
|
65
|
+
import "../_node-chunks/chunk-OUCADXTV.js";
|
|
66
66
|
import {
|
|
67
67
|
slash
|
|
68
|
-
} from "../_node-chunks/chunk-
|
|
68
|
+
} from "../_node-chunks/chunk-HLP3H23G.js";
|
|
69
69
|
import {
|
|
70
70
|
require_dist
|
|
71
|
-
} from "../_node-chunks/chunk-
|
|
71
|
+
} from "../_node-chunks/chunk-ZYCQYU5P.js";
|
|
72
72
|
import {
|
|
73
73
|
require_lib,
|
|
74
74
|
require_src
|
|
75
|
-
} from "../_node-chunks/chunk-
|
|
75
|
+
} from "../_node-chunks/chunk-NHMTWL5A.js";
|
|
76
76
|
import {
|
|
77
77
|
require_picocolors
|
|
78
|
-
} from "../_node-chunks/chunk-
|
|
78
|
+
} from "../_node-chunks/chunk-HIQU6BTN.js";
|
|
79
79
|
import {
|
|
80
80
|
__commonJS,
|
|
81
81
|
__require,
|
|
82
82
|
__toESM
|
|
83
|
-
} from "../_node-chunks/chunk-
|
|
83
|
+
} from "../_node-chunks/chunk-TPC5WFN2.js";
|
|
84
84
|
|
|
85
85
|
// ../node_modules/tsconfig-paths/lib/filesystem.js
|
|
86
86
|
var require_filesystem = __commonJS({
|
|
@@ -5147,7 +5147,7 @@ var makeAbsolute = (otherImport, normalizedPath, workingDir) => otherImport.star
|
|
|
5147
5147
|
let cacheKey = this.getFindMatchingFilesCacheKey(specifier, workingDir, ignoreWarnings), cached = this.findMatchingFilesCache.get(cacheKey);
|
|
5148
5148
|
if (cached)
|
|
5149
5149
|
return cached;
|
|
5150
|
-
let pathToSubIndex = {}, fullGlob = slash(join2(specifier.directory, specifier.files)), { globby } = await import("../_node-chunks/globby-
|
|
5150
|
+
let pathToSubIndex = {}, fullGlob = slash(join2(specifier.directory, specifier.files)), { globby } = await import("../_node-chunks/globby-DJRLVC5S.js"), files = await globby(fullGlob, {
|
|
5151
5151
|
absolute: !0,
|
|
5152
5152
|
cwd: workingDir,
|
|
5153
5153
|
...commonGlobOptions(fullGlob)
|
|
@@ -5336,7 +5336,7 @@ var makeAbsolute = (otherImport, normalizedPath, workingDir) => otherImport.star
|
|
|
5336
5336
|
async extractDocs(specifier, absolutePath, projectTags = []) {
|
|
5337
5337
|
let relativePath = relative2(this.options.workingDir, absolutePath);
|
|
5338
5338
|
try {
|
|
5339
|
-
let normalizedPath = normalizeStoryPath(relativePath), importPath = slash(normalizedPath), content = await readFile(absolutePath, { encoding: "utf8" }), { analyze } = await import("../_node-chunks/dist-
|
|
5339
|
+
let normalizedPath = normalizeStoryPath(relativePath), importPath = slash(normalizedPath), content = await readFile(absolutePath, { encoding: "utf8" }), { analyze } = await import("../_node-chunks/dist-YCWFOINJ.js"), result = await analyze(content);
|
|
5340
5340
|
if (result.isTemplate)
|
|
5341
5341
|
return !1;
|
|
5342
5342
|
let absoluteImports = result.imports.map(
|
|
@@ -5596,7 +5596,7 @@ function print(p) {
|
|
|
5596
5596
|
// src/core-server/utils/get-builders.ts
|
|
5597
5597
|
import { MissingBuilderError } from "storybook/internal/server-errors";
|
|
5598
5598
|
async function getManagerBuilder() {
|
|
5599
|
-
return await import("../_node-chunks/builder-manager-
|
|
5599
|
+
return await import("../_node-chunks/builder-manager-4QKD5MM3.js");
|
|
5600
5600
|
}
|
|
5601
5601
|
async function getPreviewBuilder(resolvedPreviewBuilder) {
|
|
5602
5602
|
return await importModule(resolvedPreviewBuilder);
|
|
@@ -5696,7 +5696,7 @@ function watchStorySpecifiers(specifiers, options, onInvalidate) {
|
|
|
5696
5696
|
// files can be e.g. '**/foo/*/*.js' so we just want the last bit,
|
|
5697
5697
|
// because the directory could already be within the files part (e.g. './x/foo/bar')
|
|
5698
5698
|
basename2(specifier.files)
|
|
5699
|
-
), { globby } = await import("../_node-chunks/globby-
|
|
5699
|
+
), { globby } = await import("../_node-chunks/globby-DJRLVC5S.js");
|
|
5700
5700
|
(await globby(slash(dirGlob), commonGlobOptions2(dirGlob))).forEach((filePath) => {
|
|
5701
5701
|
let fileImportPath = toImportPath(filePath);
|
|
5702
5702
|
specifier.importPathMatcher.exec(fileImportPath) && onInvalidate(specifier, fileImportPath, removed);
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_y9c3v0cnkub from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_y9c3v0cnkub from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_y9c3v0cnkub from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_y9c3v0cnkub.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_y9c3v0cnkub.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_y9c3v0cnkub.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-OUCADXTV.js";
|
|
15
15
|
import {
|
|
16
16
|
slash
|
|
17
|
-
} from "../../_node-chunks/chunk-
|
|
18
|
-
import "../../_node-chunks/chunk-
|
|
17
|
+
} from "../../_node-chunks/chunk-HLP3H23G.js";
|
|
18
|
+
import "../../_node-chunks/chunk-TPC5WFN2.js";
|
|
19
19
|
|
|
20
20
|
// src/core-server/utils/remove-mdx-entries.ts
|
|
21
21
|
import { isAbsolute, join, relative } from "node:path";
|
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_y9c3v0cnkub from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_y9c3v0cnkub from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_y9c3v0cnkub from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_y9c3v0cnkub.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_y9c3v0cnkub.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_y9c3v0cnkub.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
|
-
import "../../_node-chunks/chunk-
|
|
12
|
+
import "../../_node-chunks/chunk-AKO6A5CQ.js";
|
|
13
13
|
import {
|
|
14
14
|
parseStaticDir,
|
|
15
15
|
sendTelemetryError,
|
|
16
16
|
throttle
|
|
17
|
-
} from "../../_node-chunks/chunk-
|
|
18
|
-
import "../../_node-chunks/chunk-
|
|
19
|
-
import "../../_node-chunks/chunk-
|
|
20
|
-
import "../../_node-chunks/chunk-
|
|
17
|
+
} from "../../_node-chunks/chunk-U5ZVDYGC.js";
|
|
18
|
+
import "../../_node-chunks/chunk-SKFB37NZ.js";
|
|
19
|
+
import "../../_node-chunks/chunk-2SKUXRHZ.js";
|
|
20
|
+
import "../../_node-chunks/chunk-M5WCOOCM.js";
|
|
21
21
|
import {
|
|
22
22
|
getLastEvents,
|
|
23
23
|
getSessionId
|
|
24
|
-
} from "../../_node-chunks/chunk-
|
|
24
|
+
} from "../../_node-chunks/chunk-5K3HCA3T.js";
|
|
25
25
|
import {
|
|
26
26
|
globalSettings
|
|
27
|
-
} from "../../_node-chunks/chunk-
|
|
27
|
+
} from "../../_node-chunks/chunk-TAK5JLJT.js";
|
|
28
28
|
import {
|
|
29
29
|
invariant
|
|
30
|
-
} from "../../_node-chunks/chunk-
|
|
30
|
+
} from "../../_node-chunks/chunk-JTVV3ILI.js";
|
|
31
31
|
import {
|
|
32
32
|
resolvePackageDir
|
|
33
|
-
} from "../../_node-chunks/chunk-
|
|
34
|
-
import "../../_node-chunks/chunk-
|
|
33
|
+
} from "../../_node-chunks/chunk-GKZHMXCG.js";
|
|
34
|
+
import "../../_node-chunks/chunk-TXYTWWZH.js";
|
|
35
35
|
import {
|
|
36
36
|
isAbsolute,
|
|
37
37
|
join
|
|
38
|
-
} from "../../_node-chunks/chunk-
|
|
38
|
+
} from "../../_node-chunks/chunk-U255RR5H.js";
|
|
39
39
|
import {
|
|
40
40
|
loadConfig
|
|
41
|
-
} from "../../_node-chunks/chunk-
|
|
41
|
+
} from "../../_node-chunks/chunk-QZH7V7G5.js";
|
|
42
42
|
import {
|
|
43
43
|
require_dist
|
|
44
|
-
} from "../../_node-chunks/chunk-
|
|
45
|
-
import "../../_node-chunks/chunk-
|
|
46
|
-
import "../../_node-chunks/chunk-
|
|
44
|
+
} from "../../_node-chunks/chunk-ZYCQYU5P.js";
|
|
45
|
+
import "../../_node-chunks/chunk-QXZ53NSP.js";
|
|
46
|
+
import "../../_node-chunks/chunk-NHMTWL5A.js";
|
|
47
47
|
import {
|
|
48
48
|
require_picocolors
|
|
49
|
-
} from "../../_node-chunks/chunk-
|
|
49
|
+
} from "../../_node-chunks/chunk-HIQU6BTN.js";
|
|
50
50
|
import {
|
|
51
51
|
__commonJS,
|
|
52
52
|
__require,
|
|
53
53
|
__toESM
|
|
54
|
-
} from "../../_node-chunks/chunk-
|
|
54
|
+
} from "../../_node-chunks/chunk-TPC5WFN2.js";
|
|
55
55
|
|
|
56
56
|
// ../node_modules/shell-quote/quote.js
|
|
57
57
|
var require_quote = __commonJS({
|
|
@@ -518,7 +518,7 @@ import { isCsfFactoryPreview } from "storybook/internal/csf-tools";
|
|
|
518
518
|
var import_ts_dedent = __toESM(require_dist(), 1);
|
|
519
519
|
|
|
520
520
|
// src/core-server/utils/get-component-variable-name.ts
|
|
521
|
-
var getComponentVariableName = async (name) => (await import("../../_node-chunks/camelcase-
|
|
521
|
+
var getComponentVariableName = async (name) => (await import("../../_node-chunks/camelcase-IRQCWULJ.js")).default(name.replace(/^[^a-zA-Z_$]*/, ""), { pascalCase: !0 }).replace(/[^a-zA-Z_$]+/, "");
|
|
522
522
|
|
|
523
523
|
// src/core-server/utils/new-story-templates/csf-factory-template.ts
|
|
524
524
|
async function getCsfFactoryTemplateForNewStoryFile(data) {
|
|
@@ -783,7 +783,7 @@ async function searchFiles({
|
|
|
783
783
|
ignoredFiles = IGNORED_FILES,
|
|
784
784
|
fileExtensions = FILE_EXTENSIONS
|
|
785
785
|
}) {
|
|
786
|
-
let { globby, isDynamicPattern } = await import("../../_node-chunks/globby-
|
|
786
|
+
let { globby, isDynamicPattern } = await import("../../_node-chunks/globby-DJRLVC5S.js"), hasSearchSpecialGlobChars = isDynamicPattern(searchQuery, { cwd }), searchQueryHasExtension = /(\.[a-z]+)$/i.test(searchQuery), fileExtensionsPattern = `{${fileExtensions.join(",")}}`, globbedSearchQuery = hasSearchSpecialGlobChars ? searchQuery : searchQueryHasExtension ? [`**/*${searchQuery}*`, `**/*${searchQuery}*/**`] : [
|
|
787
787
|
`**/*${searchQuery}*.${fileExtensionsPattern}`,
|
|
788
788
|
`**/*${searchQuery}*/**/*.${fileExtensionsPattern}`
|
|
789
789
|
];
|
|
@@ -921,60 +921,6 @@ import { experimental_UniversalStore } from "storybook/internal/core-server";
|
|
|
921
921
|
import { logger } from "storybook/internal/node-logger";
|
|
922
922
|
import { telemetry as telemetry5 } from "storybook/internal/telemetry";
|
|
923
923
|
|
|
924
|
-
// ../node_modules/dequal/dist/index.mjs
|
|
925
|
-
var has = Object.prototype.hasOwnProperty;
|
|
926
|
-
function find(iter, tar, key) {
|
|
927
|
-
for (key of iter.keys())
|
|
928
|
-
if (dequal(key, tar)) return key;
|
|
929
|
-
}
|
|
930
|
-
function dequal(foo, bar) {
|
|
931
|
-
var ctor, len, tmp;
|
|
932
|
-
if (foo === bar) return !0;
|
|
933
|
-
if (foo && bar && (ctor = foo.constructor) === bar.constructor) {
|
|
934
|
-
if (ctor === Date) return foo.getTime() === bar.getTime();
|
|
935
|
-
if (ctor === RegExp) return foo.toString() === bar.toString();
|
|
936
|
-
if (ctor === Array) {
|
|
937
|
-
if ((len = foo.length) === bar.length)
|
|
938
|
-
for (; len-- && dequal(foo[len], bar[len]); ) ;
|
|
939
|
-
return len === -1;
|
|
940
|
-
}
|
|
941
|
-
if (ctor === Set) {
|
|
942
|
-
if (foo.size !== bar.size)
|
|
943
|
-
return !1;
|
|
944
|
-
for (len of foo)
|
|
945
|
-
if (tmp = len, tmp && typeof tmp == "object" && (tmp = find(bar, tmp), !tmp) || !bar.has(tmp)) return !1;
|
|
946
|
-
return !0;
|
|
947
|
-
}
|
|
948
|
-
if (ctor === Map) {
|
|
949
|
-
if (foo.size !== bar.size)
|
|
950
|
-
return !1;
|
|
951
|
-
for (len of foo)
|
|
952
|
-
if (tmp = len[0], tmp && typeof tmp == "object" && (tmp = find(bar, tmp), !tmp) || !dequal(len[1], bar.get(tmp)))
|
|
953
|
-
return !1;
|
|
954
|
-
return !0;
|
|
955
|
-
}
|
|
956
|
-
if (ctor === ArrayBuffer)
|
|
957
|
-
foo = new Uint8Array(foo), bar = new Uint8Array(bar);
|
|
958
|
-
else if (ctor === DataView) {
|
|
959
|
-
if ((len = foo.byteLength) === bar.byteLength)
|
|
960
|
-
for (; len-- && foo.getInt8(len) === bar.getInt8(len); ) ;
|
|
961
|
-
return len === -1;
|
|
962
|
-
}
|
|
963
|
-
if (ArrayBuffer.isView(foo)) {
|
|
964
|
-
if ((len = foo.byteLength) === bar.byteLength)
|
|
965
|
-
for (; len-- && foo[len] === bar[len]; ) ;
|
|
966
|
-
return len === -1;
|
|
967
|
-
}
|
|
968
|
-
if (!ctor || typeof foo == "object") {
|
|
969
|
-
len = 0;
|
|
970
|
-
for (ctor in foo)
|
|
971
|
-
if (has.call(foo, ctor) && ++len && !has.call(bar, ctor) || !(ctor in bar) || !dequal(foo[ctor], bar[ctor])) return !1;
|
|
972
|
-
return Object.keys(bar).length === len;
|
|
973
|
-
}
|
|
974
|
-
}
|
|
975
|
-
return foo !== foo && bar !== bar;
|
|
976
|
-
}
|
|
977
|
-
|
|
978
924
|
// ../node_modules/es-toolkit/dist/predicate/isPrimitive.mjs
|
|
979
925
|
function isPrimitive(value) {
|
|
980
926
|
return value == null || typeof value != "object" && typeof value != "function";
|
|
@@ -1117,19 +1063,27 @@ async function initializeChecklist() {
|
|
|
1117
1063
|
loaded: !0
|
|
1118
1064
|
})
|
|
1119
1065
|
), store.onStateChange((state, previousState) => {
|
|
1120
|
-
let projectValues = {}, userValues = {};
|
|
1121
|
-
|
|
1066
|
+
let entries = Object.entries(state.items), projectValues = {}, userValues = {};
|
|
1067
|
+
entries.forEach(([id, { status, mutedAt }]) => {
|
|
1122
1068
|
status === "done" ? projectValues[id] = { status } : (status === "accepted" || status === "skipped") && (userValues[id] = { status }), mutedAt && (userValues[id] = {
|
|
1123
1069
|
...userValues[id],
|
|
1124
1070
|
mutedAt
|
|
1125
1071
|
});
|
|
1126
1072
|
}), saveProjectState({ items: projectValues }), saveUserState({ items: userValues, widget: state.widget });
|
|
1127
|
-
let
|
|
1128
|
-
([
|
|
1073
|
+
let { mutedItems, statusItems } = entries.reduce(
|
|
1074
|
+
(acc, [item, { mutedAt, status }]) => {
|
|
1075
|
+
let prev = previousState.items[item];
|
|
1076
|
+
return mutedAt !== prev?.mutedAt && acc.mutedItems.push(item), status !== prev?.status && acc.statusItems.push(item), acc;
|
|
1077
|
+
},
|
|
1078
|
+
{ mutedItems: [], statusItems: [] }
|
|
1129
1079
|
);
|
|
1130
|
-
telemetry5("onboarding-checklist", {
|
|
1131
|
-
|
|
1132
|
-
|
|
1080
|
+
mutedItems.length > 0 && telemetry5("onboarding-checklist-muted", {
|
|
1081
|
+
items: mutedItems,
|
|
1082
|
+
completedItems: entries.reduce((acc, [id, { status }]) => status === "done" || status === "accepted" ? acc.concat([id]) : acc, []),
|
|
1083
|
+
skippedItems: entries.reduce((acc, [id, { status }]) => status === "skipped" ? acc.concat([id]) : acc, [])
|
|
1084
|
+
}), statusItems.forEach((item) => {
|
|
1085
|
+
let { status } = state.items[item];
|
|
1086
|
+
telemetry5("onboarding-checklist-status", { item, status });
|
|
1133
1087
|
});
|
|
1134
1088
|
});
|
|
1135
1089
|
} catch (err) {
|
package/dist/csf-tools/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_y9c3v0cnkub from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_y9c3v0cnkub from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_y9c3v0cnkub from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_y9c3v0cnkub.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_y9c3v0cnkub.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_y9c3v0cnkub.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-QZH7V7G5.js";
|
|
42
|
+
import "../_node-chunks/chunk-ZYCQYU5P.js";
|
|
43
|
+
import "../_node-chunks/chunk-TPC5WFN2.js";
|
|
44
44
|
export {
|
|
45
45
|
BadMetaError,
|
|
46
46
|
ConfigFile,
|
|
@@ -59891,7 +59891,7 @@ init_dist();
|
|
|
59891
59891
|
var import_memoizerific8 = __toESM(require_memoizerific(), 1), import_semver = __toESM(require_semver2(), 1);
|
|
59892
59892
|
|
|
59893
59893
|
// src/manager-api/version.ts
|
|
59894
|
-
var version = "10.1.
|
|
59894
|
+
var version = "10.1.2";
|
|
59895
59895
|
|
|
59896
59896
|
// src/manager-api/modules/versions.ts
|
|
59897
59897
|
var { VERSIONCHECK } = scope, getVersionCheckData = (0, import_memoizerific8.default)(1)(() => {
|
package/dist/manager/runtime.js
CHANGED
|
@@ -10740,7 +10740,7 @@ var CodeWrapper = styled.div(({ theme }) => ({
|
|
|
10740
10740
|
},
|
|
10741
10741
|
{
|
|
10742
10742
|
id: "renderComponent",
|
|
10743
|
-
label: "Render
|
|
10743
|
+
label: "Render your first component",
|
|
10744
10744
|
criteria: "A story finished rendering successfully",
|
|
10745
10745
|
subscribe: ({ api, done }) => api.on(
|
|
10746
10746
|
STORY_FINISHED,
|
|
@@ -10805,7 +10805,6 @@ export const Primary: Story = {
|
|
|
10805
10805
|
},
|
|
10806
10806
|
{
|
|
10807
10807
|
id: "moreComponents",
|
|
10808
|
-
after: ["renderComponent"],
|
|
10809
10808
|
label: "Add 5 components",
|
|
10810
10809
|
content: ({ api }) => react_default.createElement(react_default.Fragment, null, react_default.createElement("p", null, "Storybook gets better as you add more components. Start with the easy ones, like Button or Avatar, and work your way up to more complex components, like Select, Autocomplete, or even full pages."), react_default.createElement(
|
|
10811
10810
|
"img",
|
|
@@ -10839,7 +10838,6 @@ export const Primary: Story = {
|
|
|
10839
10838
|
},
|
|
10840
10839
|
{
|
|
10841
10840
|
id: "moreStories",
|
|
10842
|
-
after: ["renderComponent"],
|
|
10843
10841
|
label: "Add 20 stories",
|
|
10844
10842
|
content: ({ api }) => react_default.createElement(react_default.Fragment, null, react_default.createElement("p", null, "More stories for your components means better documentation and more test coverage."), react_default.createElement(
|
|
10845
10843
|
"img",
|
|
@@ -10886,7 +10884,6 @@ export const Primary: Story = {
|
|
|
10886
10884
|
items: [
|
|
10887
10885
|
{
|
|
10888
10886
|
id: "controls",
|
|
10889
|
-
after: ["renderComponent"],
|
|
10890
10887
|
label: "Change a story with Controls",
|
|
10891
10888
|
available: () => !!globalThis?.FEATURES?.controls,
|
|
10892
10889
|
criteria: "Story args are updated",
|
|
@@ -10915,7 +10912,6 @@ export const Primary: Story = {
|
|
|
10915
10912
|
},
|
|
10916
10913
|
{
|
|
10917
10914
|
id: "viewports",
|
|
10918
|
-
after: ["renderComponent"],
|
|
10919
10915
|
label: "Check responsiveness with Viewports",
|
|
10920
10916
|
available: () => !!globalThis?.FEATURES?.viewport,
|
|
10921
10917
|
criteria: "Viewport global is updated",
|
|
@@ -10944,7 +10940,6 @@ export const Primary: Story = {
|
|
|
10944
10940
|
},
|
|
10945
10941
|
{
|
|
10946
10942
|
id: "organizeStories",
|
|
10947
|
-
after: ["renderComponent"],
|
|
10948
10943
|
label: "Group your components",
|
|
10949
10944
|
criteria: "A root node exists in the index",
|
|
10950
10945
|
subscribe: subscribeToIndex(
|
|
@@ -11085,7 +11080,6 @@ export default {
|
|
|
11085
11080
|
},
|
|
11086
11081
|
{
|
|
11087
11082
|
id: "writeInteractions",
|
|
11088
|
-
after: ["renderComponent"],
|
|
11089
11083
|
label: "Test functionality with interactions",
|
|
11090
11084
|
available: () => !!globalThis?.FEATURES?.interactions,
|
|
11091
11085
|
criteria: "At least one story with a play or test function",
|