storybook 10.1.4 → 10.1.6
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-2XZMBGTA.js → chunk-7S2XPX5M.js} +1 -1
- package/dist/_browser-chunks/{chunk-SS2NHR7W.js → chunk-GPBRNGY5.js} +1 -1
- package/dist/{_node-chunks/chunk-LJRKMWYC.js → _browser-chunks/chunk-JVRDBUUP.js} +20 -13
- package/dist/_browser-chunks/{chunk-GFY5R5EY.js → chunk-V5NV5R37.js} +1 -1
- package/dist/_node-chunks/{builder-manager-7ZU5KYAD.js → builder-manager-IP6Y4NMN.js} +13 -12
- package/dist/_node-chunks/{camelcase-YSJ5EORN.js → camelcase-GHUGWSTC.js} +7 -7
- package/dist/_node-chunks/chunk-2LMXIXHU.js +20 -0
- package/dist/_node-chunks/{chunk-MZL4HRPC.js → chunk-32COQDL3.js} +7 -7
- package/dist/{_browser-chunks/chunk-FQ7SLVLR.js → _node-chunks/chunk-4E7PJV6F.js} +32 -1
- package/dist/_node-chunks/chunk-5AYMJEEI.js +23 -0
- package/dist/_node-chunks/{chunk-T5WYRHJT.js → chunk-6IODXQ5I.js} +6 -6
- package/dist/_node-chunks/{chunk-S3DQCJWT.js → chunk-6X7LVWWF.js} +9 -9
- package/dist/_node-chunks/{chunk-7KESMTGS.js → chunk-7SZ6I5FR.js} +13 -13
- package/dist/_node-chunks/{chunk-6KX7N5UF.js → chunk-BV46V7UA.js} +21 -17
- package/dist/_node-chunks/{chunk-76KIYDRU.js → chunk-CQ7X72BT.js} +7 -7
- package/dist/_node-chunks/{chunk-RZ2YFNVH.js → chunk-FZPYAEAL.js} +7 -7
- package/dist/_node-chunks/{chunk-6O3OB2PO.js → chunk-IIIZ5MXT.js} +12 -12
- package/dist/_node-chunks/{chunk-N54KYQ6P.js → chunk-IMSWW5XU.js} +7 -7
- package/dist/_node-chunks/{chunk-FY6IUM4S.js → chunk-KPTRKV7Y.js} +8 -8
- package/dist/_node-chunks/{chunk-QIY6TMKF.js → chunk-LJZQUQY3.js} +7 -7
- package/dist/_node-chunks/{chunk-F2RDEFFH.js → chunk-M4UXZ375.js} +7 -7
- package/dist/_node-chunks/{chunk-VBZIULNK.js → chunk-MBCK5AH4.js} +6 -6
- package/dist/_node-chunks/{chunk-W6O6RFMF.js → chunk-MTQLLXLU.js} +9 -9
- package/dist/_node-chunks/{chunk-Q6B5LJGA.js → chunk-MZPY44R3.js} +7 -7
- package/dist/_node-chunks/{chunk-DMPGFWI4.js → chunk-NDRJR464.js} +72 -11
- package/dist/_node-chunks/{chunk-COZFRL72.js → chunk-OIIAKMWN.js} +7 -7
- package/dist/_node-chunks/chunk-PUOD3HAQ.js +18 -0
- package/dist/_node-chunks/{chunk-FMYFRXPU.js → chunk-QAHNTAID.js} +6 -6
- package/dist/_node-chunks/{chunk-QZJSO2TW.js → chunk-T4NL27CC.js} +21 -20
- package/dist/_node-chunks/{chunk-VUIYVJKC.js → chunk-V4R3AYR4.js} +8 -8
- package/dist/_node-chunks/{chunk-4X3VTYIW.js → chunk-WIXJW6LA.js} +7 -7
- package/dist/_node-chunks/{chunk-J4VC4I2M.js → chunk-YKVDPPMP.js} +6 -6
- package/dist/_node-chunks/chunk-ZQTC4IMW.js +61 -0
- package/dist/_node-chunks/{chunk-2IIRK2OT.js → chunk-ZZGFJUT5.js} +6 -6
- package/dist/_node-chunks/{dist-NF4P7GPD.js → dist-N6JBF72Y.js} +9 -9
- package/dist/_node-chunks/{globby-54L4JJRV.js → globby-EBHKFBTA.js} +9 -9
- package/dist/_node-chunks/{lib-GX44WIWA.js → lib-VKFW2NW5.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-WJFAHXML.js → mdx-N42X6CFJ-GUFWY7P5.js} +8 -8
- package/dist/_node-chunks/{p-limit-QB7Q2I4D.js → p-limit-5QMUSCN6.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/components/index.js +10 -4
- package/dist/core-events/index.d.ts +4 -2
- package/dist/core-events/index.js +4 -2
- package/dist/core-server/index.d.ts +68 -1
- 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 +25 -25
- package/dist/csf/index.js +1 -1
- package/dist/csf-tools/index.js +9 -9
- package/dist/manager/globals-runtime.js +35 -8
- package/dist/manager/runtime.js +20 -5
- package/dist/manager-api/index.js +4 -4
- package/dist/manager-errors.d.ts +24 -0
- package/dist/manager-errors.js +2 -2
- package/dist/mocking-utils/index.js +8 -8
- package/dist/node-logger/index.js +9 -9
- package/dist/preview/runtime.js +30 -5
- package/dist/preview-api/index.d.ts +67 -68
- package/dist/preview-api/index.js +1 -1
- package/dist/preview-errors.d.ts +24 -0
- package/dist/preview-errors.js +2 -2
- package/dist/server-errors.d.ts +59 -3
- package/dist/server-errors.js +22 -11
- package/dist/telemetry/index.js +23 -23
- package/package.json +1 -1
- package/dist/_node-chunks/chunk-4FAPWW5I.js +0 -61
- package/dist/_node-chunks/chunk-5UYX4ZF6.js +0 -23
- package/dist/_node-chunks/chunk-CMI5GRPA.js +0 -18
- package/dist/_node-chunks/chunk-GVOXGNOU.js +0 -20
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_u12tm8drdom from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_u12tm8drdom from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_u12tm8drdom from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_u12tm8drdom.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_u12tm8drdom.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_u12tm8drdom.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-NDRJR464.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-BV46V7UA.js";
|
|
25
|
+
import "../_node-chunks/chunk-OIIAKMWN.js";
|
|
26
26
|
import {
|
|
27
27
|
detectPnp
|
|
28
|
-
} from "../_node-chunks/chunk-
|
|
28
|
+
} from "../_node-chunks/chunk-5AYMJEEI.js";
|
|
29
29
|
import {
|
|
30
30
|
StorybookError
|
|
31
|
-
} from "../_node-chunks/chunk-
|
|
31
|
+
} from "../_node-chunks/chunk-4E7PJV6F.js";
|
|
32
32
|
import {
|
|
33
33
|
telemetry
|
|
34
|
-
} from "../_node-chunks/chunk-
|
|
35
|
-
import "../_node-chunks/chunk-
|
|
34
|
+
} from "../_node-chunks/chunk-7SZ6I5FR.js";
|
|
35
|
+
import "../_node-chunks/chunk-PUOD3HAQ.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-T4NL27CC.js";
|
|
43
|
+
import "../_node-chunks/chunk-ZQTC4IMW.js";
|
|
44
|
+
import "../_node-chunks/chunk-WIXJW6LA.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-V4R3AYR4.js";
|
|
48
|
+
import "../_node-chunks/chunk-IMSWW5XU.js";
|
|
49
|
+
import "../_node-chunks/chunk-6X7LVWWF.js";
|
|
50
50
|
import {
|
|
51
51
|
invariant,
|
|
52
52
|
up2 as up
|
|
53
|
-
} from "../_node-chunks/chunk-
|
|
53
|
+
} from "../_node-chunks/chunk-ZZGFJUT5.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-MZPY44R3.js";
|
|
58
|
+
import "../_node-chunks/chunk-QAHNTAID.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-MBCK5AH4.js";
|
|
65
|
+
import "../_node-chunks/chunk-M4UXZ375.js";
|
|
66
66
|
import {
|
|
67
67
|
slash
|
|
68
|
-
} from "../_node-chunks/chunk-
|
|
68
|
+
} from "../_node-chunks/chunk-2LMXIXHU.js";
|
|
69
69
|
import {
|
|
70
70
|
require_dist
|
|
71
|
-
} from "../_node-chunks/chunk-
|
|
71
|
+
} from "../_node-chunks/chunk-CQ7X72BT.js";
|
|
72
72
|
import {
|
|
73
73
|
require_lib,
|
|
74
74
|
require_src
|
|
75
|
-
} from "../_node-chunks/chunk-
|
|
75
|
+
} from "../_node-chunks/chunk-32COQDL3.js";
|
|
76
76
|
import {
|
|
77
77
|
require_picocolors
|
|
78
|
-
} from "../_node-chunks/chunk-
|
|
78
|
+
} from "../_node-chunks/chunk-FZPYAEAL.js";
|
|
79
79
|
import {
|
|
80
80
|
__commonJS,
|
|
81
81
|
__require,
|
|
82
82
|
__toESM
|
|
83
|
-
} from "../_node-chunks/chunk-
|
|
83
|
+
} from "../_node-chunks/chunk-YKVDPPMP.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-EBHKFBTA.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-N6JBF72Y.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-IP6Y4NMN.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-EBHKFBTA.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_u12tm8drdom from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_u12tm8drdom from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_u12tm8drdom from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_u12tm8drdom.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_u12tm8drdom.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_u12tm8drdom.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-M4UXZ375.js";
|
|
15
15
|
import {
|
|
16
16
|
slash
|
|
17
|
-
} from "../../_node-chunks/chunk-
|
|
18
|
-
import "../../_node-chunks/chunk-
|
|
17
|
+
} from "../../_node-chunks/chunk-2LMXIXHU.js";
|
|
18
|
+
import "../../_node-chunks/chunk-YKVDPPMP.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_u12tm8drdom from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_u12tm8drdom from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_u12tm8drdom from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_u12tm8drdom.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_u12tm8drdom.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_u12tm8drdom.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-IIIZ5MXT.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-BV46V7UA.js";
|
|
18
|
+
import "../../_node-chunks/chunk-OIIAKMWN.js";
|
|
19
|
+
import "../../_node-chunks/chunk-5AYMJEEI.js";
|
|
20
|
+
import "../../_node-chunks/chunk-4E7PJV6F.js";
|
|
21
21
|
import {
|
|
22
22
|
getLastEvents,
|
|
23
23
|
getSessionId
|
|
24
|
-
} from "../../_node-chunks/chunk-
|
|
24
|
+
} from "../../_node-chunks/chunk-IMSWW5XU.js";
|
|
25
25
|
import {
|
|
26
26
|
globalSettings
|
|
27
|
-
} from "../../_node-chunks/chunk-
|
|
27
|
+
} from "../../_node-chunks/chunk-6X7LVWWF.js";
|
|
28
28
|
import {
|
|
29
29
|
invariant
|
|
30
|
-
} from "../../_node-chunks/chunk-
|
|
30
|
+
} from "../../_node-chunks/chunk-ZZGFJUT5.js";
|
|
31
31
|
import {
|
|
32
32
|
resolvePackageDir
|
|
33
|
-
} from "../../_node-chunks/chunk-
|
|
34
|
-
import "../../_node-chunks/chunk-
|
|
33
|
+
} from "../../_node-chunks/chunk-MZPY44R3.js";
|
|
34
|
+
import "../../_node-chunks/chunk-QAHNTAID.js";
|
|
35
35
|
import {
|
|
36
36
|
isAbsolute,
|
|
37
37
|
join
|
|
38
|
-
} from "../../_node-chunks/chunk-
|
|
38
|
+
} from "../../_node-chunks/chunk-MBCK5AH4.js";
|
|
39
39
|
import {
|
|
40
40
|
loadConfig
|
|
41
|
-
} from "../../_node-chunks/chunk-
|
|
41
|
+
} from "../../_node-chunks/chunk-KPTRKV7Y.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-CQ7X72BT.js";
|
|
45
|
+
import "../../_node-chunks/chunk-MTQLLXLU.js";
|
|
46
|
+
import "../../_node-chunks/chunk-32COQDL3.js";
|
|
47
47
|
import {
|
|
48
48
|
require_picocolors
|
|
49
|
-
} from "../../_node-chunks/chunk-
|
|
49
|
+
} from "../../_node-chunks/chunk-FZPYAEAL.js";
|
|
50
50
|
import {
|
|
51
51
|
__commonJS,
|
|
52
52
|
__require,
|
|
53
53
|
__toESM
|
|
54
|
-
} from "../../_node-chunks/chunk-
|
|
54
|
+
} from "../../_node-chunks/chunk-YKVDPPMP.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-GHUGWSTC.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-EBHKFBTA.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
|
];
|
package/dist/csf/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
mountDestructured,
|
|
11
11
|
normalizeArrays,
|
|
12
12
|
normalizeProjectAnnotations
|
|
13
|
-
} from "../_browser-chunks/chunk-
|
|
13
|
+
} from "../_browser-chunks/chunk-GPBRNGY5.js";
|
|
14
14
|
import "../_browser-chunks/chunk-IPA5A322.js";
|
|
15
15
|
import "../_browser-chunks/chunk-3OXGAGBE.js";
|
|
16
16
|
import {
|
package/dist/csf-tools/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_u12tm8drdom from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_u12tm8drdom from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_u12tm8drdom from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_u12tm8drdom.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_u12tm8drdom.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_u12tm8drdom.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-KPTRKV7Y.js";
|
|
42
|
+
import "../_node-chunks/chunk-CQ7X72BT.js";
|
|
43
|
+
import "../_node-chunks/chunk-YKVDPPMP.js";
|
|
44
44
|
export {
|
|
45
45
|
BadMetaError,
|
|
46
46
|
ConfigFile,
|
|
@@ -29411,6 +29411,7 @@ __export(core_events_exports, {
|
|
|
29411
29411
|
FORCE_REMOUNT: () => FORCE_REMOUNT,
|
|
29412
29412
|
FORCE_RE_RENDER: () => FORCE_RE_RENDER,
|
|
29413
29413
|
GLOBALS_UPDATED: () => GLOBALS_UPDATED,
|
|
29414
|
+
MANAGER_INERT_ATTRIBUTE_CHANGED: () => MANAGER_INERT_ATTRIBUTE_CHANGED,
|
|
29414
29415
|
NAVIGATE_URL: () => NAVIGATE_URL,
|
|
29415
29416
|
OPEN_IN_EDITOR_REQUEST: () => OPEN_IN_EDITOR_REQUEST,
|
|
29416
29417
|
OPEN_IN_EDITOR_RESPONSE: () => OPEN_IN_EDITOR_RESPONSE,
|
|
@@ -29458,7 +29459,7 @@ __export(core_events_exports, {
|
|
|
29458
29459
|
UPDATE_STORY_ARGS: () => UPDATE_STORY_ARGS,
|
|
29459
29460
|
default: () => core_events_default
|
|
29460
29461
|
});
|
|
29461
|
-
var events = /* @__PURE__ */ ((events2) => (events2.CHANNEL_WS_DISCONNECT = "channelWSDisconnect", events2.CHANNEL_CREATED = "channelCreated", events2.CONFIG_ERROR = "configError", events2.STORY_INDEX_INVALIDATED = "storyIndexInvalidated", events2.STORY_SPECIFIED = "storySpecified", events2.SET_CONFIG = "setConfig", events2.SET_STORIES = "setStories", events2.SET_INDEX = "setIndex", events2.SET_CURRENT_STORY = "setCurrentStory", events2.CURRENT_STORY_WAS_SET = "currentStoryWasSet", events2.FORCE_RE_RENDER = "forceReRender", events2.FORCE_REMOUNT = "forceRemount", events2.PRELOAD_ENTRIES = "preloadStories", events2.STORY_PREPARED = "storyPrepared", events2.DOCS_PREPARED = "docsPrepared", events2.STORY_CHANGED = "storyChanged", events2.STORY_UNCHANGED = "storyUnchanged", events2.STORY_RENDERED = "storyRendered", events2.STORY_FINISHED = "storyFinished", events2.STORY_MISSING = "storyMissing", events2.STORY_ERRORED = "storyErrored", events2.STORY_THREW_EXCEPTION = "storyThrewException", events2.STORY_RENDER_PHASE_CHANGED = "storyRenderPhaseChanged", events2.STORY_HOT_UPDATED = "storyHotUpdated", events2.PLAY_FUNCTION_THREW_EXCEPTION = "playFunctionThrewException", events2.UNHANDLED_ERRORS_WHILE_PLAYING = "unhandledErrorsWhilePlaying", events2.UPDATE_STORY_ARGS = "updateStoryArgs", events2.STORY_ARGS_UPDATED = "storyArgsUpdated", events2.RESET_STORY_ARGS = "resetStoryArgs", events2.SET_FILTER = "setFilter", events2.SET_GLOBALS = "setGlobals", events2.UPDATE_GLOBALS = "updateGlobals", events2.GLOBALS_UPDATED = "globalsUpdated", events2.REGISTER_SUBSCRIPTION = "registerSubscription", events2.PREVIEW_INITIALIZED = "previewInitialized", events2.PREVIEW_KEYDOWN = "previewKeydown", events2.PREVIEW_BUILDER_PROGRESS = "preview_builder_progress", events2.SELECT_STORY = "selectStory", events2.STORIES_COLLAPSE_ALL = "storiesCollapseAll", events2.STORIES_EXPAND_ALL = "storiesExpandAll", events2.DOCS_RENDERED = "docsRendered", events2.SHARED_STATE_CHANGED = "sharedStateChanged", events2.SHARED_STATE_SET = "sharedStateSet", events2.NAVIGATE_URL = "navigateUrl", events2.UPDATE_QUERY_PARAMS = "updateQueryParams", events2.REQUEST_WHATS_NEW_DATA = "requestWhatsNewData", events2.RESULT_WHATS_NEW_DATA = "resultWhatsNewData", events2.SET_WHATS_NEW_CACHE = "setWhatsNewCache", events2.TOGGLE_WHATS_NEW_NOTIFICATIONS = "toggleWhatsNewNotifications", events2.TELEMETRY_ERROR = "telemetryError", events2.FILE_COMPONENT_SEARCH_REQUEST = "fileComponentSearchRequest", events2.FILE_COMPONENT_SEARCH_RESPONSE = "fileComponentSearchResponse", events2.SAVE_STORY_REQUEST = "saveStoryRequest", events2.SAVE_STORY_RESPONSE = "saveStoryResponse", events2.ARGTYPES_INFO_REQUEST = "argtypesInfoRequest", events2.ARGTYPES_INFO_RESPONSE = "argtypesInfoResponse", events2.CREATE_NEW_STORYFILE_REQUEST = "createNewStoryfileRequest", events2.CREATE_NEW_STORYFILE_RESPONSE = "createNewStoryfileResponse", events2.OPEN_IN_EDITOR_REQUEST = "openInEditorRequest", events2.OPEN_IN_EDITOR_RESPONSE = "openInEditorResponse", events2))(events || {}), core_events_default = events, {
|
|
29462
|
+
var events = /* @__PURE__ */ ((events2) => (events2.CHANNEL_WS_DISCONNECT = "channelWSDisconnect", events2.CHANNEL_CREATED = "channelCreated", events2.CONFIG_ERROR = "configError", events2.STORY_INDEX_INVALIDATED = "storyIndexInvalidated", events2.STORY_SPECIFIED = "storySpecified", events2.SET_CONFIG = "setConfig", events2.SET_STORIES = "setStories", events2.SET_INDEX = "setIndex", events2.SET_CURRENT_STORY = "setCurrentStory", events2.CURRENT_STORY_WAS_SET = "currentStoryWasSet", events2.FORCE_RE_RENDER = "forceReRender", events2.FORCE_REMOUNT = "forceRemount", events2.PRELOAD_ENTRIES = "preloadStories", events2.STORY_PREPARED = "storyPrepared", events2.DOCS_PREPARED = "docsPrepared", events2.STORY_CHANGED = "storyChanged", events2.STORY_UNCHANGED = "storyUnchanged", events2.STORY_RENDERED = "storyRendered", events2.STORY_FINISHED = "storyFinished", events2.STORY_MISSING = "storyMissing", events2.STORY_ERRORED = "storyErrored", events2.STORY_THREW_EXCEPTION = "storyThrewException", events2.STORY_RENDER_PHASE_CHANGED = "storyRenderPhaseChanged", events2.STORY_HOT_UPDATED = "storyHotUpdated", events2.PLAY_FUNCTION_THREW_EXCEPTION = "playFunctionThrewException", events2.UNHANDLED_ERRORS_WHILE_PLAYING = "unhandledErrorsWhilePlaying", events2.UPDATE_STORY_ARGS = "updateStoryArgs", events2.STORY_ARGS_UPDATED = "storyArgsUpdated", events2.RESET_STORY_ARGS = "resetStoryArgs", events2.SET_FILTER = "setFilter", events2.SET_GLOBALS = "setGlobals", events2.UPDATE_GLOBALS = "updateGlobals", events2.GLOBALS_UPDATED = "globalsUpdated", events2.REGISTER_SUBSCRIPTION = "registerSubscription", events2.PREVIEW_INITIALIZED = "previewInitialized", events2.PREVIEW_KEYDOWN = "previewKeydown", events2.PREVIEW_BUILDER_PROGRESS = "preview_builder_progress", events2.SELECT_STORY = "selectStory", events2.STORIES_COLLAPSE_ALL = "storiesCollapseAll", events2.STORIES_EXPAND_ALL = "storiesExpandAll", events2.DOCS_RENDERED = "docsRendered", events2.SHARED_STATE_CHANGED = "sharedStateChanged", events2.SHARED_STATE_SET = "sharedStateSet", events2.NAVIGATE_URL = "navigateUrl", events2.UPDATE_QUERY_PARAMS = "updateQueryParams", events2.REQUEST_WHATS_NEW_DATA = "requestWhatsNewData", events2.RESULT_WHATS_NEW_DATA = "resultWhatsNewData", events2.SET_WHATS_NEW_CACHE = "setWhatsNewCache", events2.TOGGLE_WHATS_NEW_NOTIFICATIONS = "toggleWhatsNewNotifications", events2.TELEMETRY_ERROR = "telemetryError", events2.FILE_COMPONENT_SEARCH_REQUEST = "fileComponentSearchRequest", events2.FILE_COMPONENT_SEARCH_RESPONSE = "fileComponentSearchResponse", events2.SAVE_STORY_REQUEST = "saveStoryRequest", events2.SAVE_STORY_RESPONSE = "saveStoryResponse", events2.ARGTYPES_INFO_REQUEST = "argtypesInfoRequest", events2.ARGTYPES_INFO_RESPONSE = "argtypesInfoResponse", events2.CREATE_NEW_STORYFILE_REQUEST = "createNewStoryfileRequest", events2.CREATE_NEW_STORYFILE_RESPONSE = "createNewStoryfileResponse", events2.OPEN_IN_EDITOR_REQUEST = "openInEditorRequest", events2.OPEN_IN_EDITOR_RESPONSE = "openInEditorResponse", events2.MANAGER_INERT_ATTRIBUTE_CHANGED = "managerInertAttributeChanged", events2))(events || {}), core_events_default = events, {
|
|
29462
29463
|
CHANNEL_WS_DISCONNECT,
|
|
29463
29464
|
CHANNEL_CREATED,
|
|
29464
29465
|
CONFIG_ERROR,
|
|
@@ -29518,7 +29519,8 @@ var events = /* @__PURE__ */ ((events2) => (events2.CHANNEL_WS_DISCONNECT = "cha
|
|
|
29518
29519
|
ARGTYPES_INFO_REQUEST,
|
|
29519
29520
|
ARGTYPES_INFO_RESPONSE,
|
|
29520
29521
|
OPEN_IN_EDITOR_REQUEST,
|
|
29521
|
-
OPEN_IN_EDITOR_RESPONSE
|
|
29522
|
+
OPEN_IN_EDITOR_RESPONSE,
|
|
29523
|
+
MANAGER_INERT_ATTRIBUTE_CHANGED
|
|
29522
29524
|
} = events;
|
|
29523
29525
|
|
|
29524
29526
|
// src/manager/globals/globals.ts
|
|
@@ -39224,7 +39226,26 @@ var StorybookError = class _StorybookError extends Error {
|
|
|
39224
39226
|
* user.
|
|
39225
39227
|
*/
|
|
39226
39228
|
this.isHandledError = !1;
|
|
39227
|
-
|
|
39229
|
+
/**
|
|
39230
|
+
* A collection of sub errors which relate to a parent error.
|
|
39231
|
+
*
|
|
39232
|
+
* Sub-errors are used to represent multiple related errors that occurred together. When a
|
|
39233
|
+
* StorybookError with sub-errors is sent to telemetry, both the parent error and each sub-error
|
|
39234
|
+
* are sent as separate telemetry events. This allows for better error tracking and debugging.
|
|
39235
|
+
*
|
|
39236
|
+
* @example
|
|
39237
|
+
*
|
|
39238
|
+
* ```ts
|
|
39239
|
+
* const error1 = new SomeError();
|
|
39240
|
+
* const error2 = new AnotherError();
|
|
39241
|
+
* const parentError = new ParentError({
|
|
39242
|
+
* // ... other props
|
|
39243
|
+
* subErrors: [error1, error2],
|
|
39244
|
+
* });
|
|
39245
|
+
* ```
|
|
39246
|
+
*/
|
|
39247
|
+
this.subErrors = [];
|
|
39248
|
+
this.category = props.category, this.documentation = props.documentation ?? !1, this.code = props.code, this.isHandledError = props.isHandledError ?? !1, this.name = props.name, this.subErrors = props.subErrors ?? [];
|
|
39228
39249
|
}
|
|
39229
39250
|
get fullErrorCode() {
|
|
39230
39251
|
return parseErrorCode({ code: this.code, category: this.category });
|
|
@@ -59891,7 +59912,7 @@ init_dist();
|
|
|
59891
59912
|
var import_memoizerific8 = __toESM(require_memoizerific(), 1), import_semver = __toESM(require_semver2(), 1);
|
|
59892
59913
|
|
|
59893
59914
|
// src/manager-api/version.ts
|
|
59894
|
-
var version = "10.1.
|
|
59915
|
+
var version = "10.1.6";
|
|
59895
59916
|
|
|
59896
59917
|
// src/manager-api/modules/versions.ts
|
|
59897
59918
|
var { VERSIONCHECK } = scope, getVersionCheckData = (0, import_memoizerific8.default)(1)(() => {
|
|
@@ -68630,7 +68651,10 @@ function BaseModal({
|
|
|
68630
68651
|
shouldBeOpen && !isMounted ? toggle(!0) : !shouldBeOpen && isMounted && toggle(!1);
|
|
68631
68652
|
}, [open, defaultOpen, isMounted, toggle]), (0, import_react105.useEffect)(() => {
|
|
68632
68653
|
isMounted && (open || defaultOpen) && onOpenChange?.(!0);
|
|
68633
|
-
}, [isMounted]),
|
|
68654
|
+
}, [isMounted]), (0, import_react105.useEffect)(() => {
|
|
68655
|
+
if (isMounted && (open || defaultOpen) && overlayRef.current)
|
|
68656
|
+
return $5e3802645cc19319$export$1c3ebcada18427bf([overlayRef.current], { shouldUseInert: !0 });
|
|
68657
|
+
}, [isMounted, open, defaultOpen, overlayRef]), !isMounted || status === "exited" || status === "unmounted")
|
|
68634
68658
|
return null;
|
|
68635
68659
|
let finalModalProps = $3ef42575df84b30b$export$9d1611c77c2fe928(modalProps, {
|
|
68636
68660
|
onKeyDown: (e2) => {
|
|
@@ -69660,7 +69684,10 @@ var StyledButton3 = styled(Button)(
|
|
|
69660
69684
|
$e0b6e0b68ec7f50f$export$872b660ac5a1ff98({
|
|
69661
69685
|
ref: popoverRef,
|
|
69662
69686
|
onInteractOutside: handleClose
|
|
69663
|
-
})
|
|
69687
|
+
}), (0, import_react124.useEffect)(() => {
|
|
69688
|
+
if (popoverRef.current)
|
|
69689
|
+
return $5e3802645cc19319$export$1c3ebcada18427bf([popoverRef.current], { shouldUseInert: !0 });
|
|
69690
|
+
}, []);
|
|
69664
69691
|
let { overlayProps: positionProps } = $2a41e45df1593e64$export$d39e1813b3bdd0e1({
|
|
69665
69692
|
targetRef: triggerRef,
|
|
69666
69693
|
overlayRef: popoverRef,
|
|
@@ -69750,7 +69777,7 @@ var StyledButton3 = styled(Button)(
|
|
|
69750
69777
|
return;
|
|
69751
69778
|
}
|
|
69752
69779
|
let currentIndex = options.findIndex(
|
|
69753
|
-
(option) => externalToValue(option.value) === activeOption.value
|
|
69780
|
+
(option) => activeOption.type === "reset" ? "type" in option && option.type === "reset" : externalToValue(option.value) === activeOption.value
|
|
69754
69781
|
), nextIndex = currentIndex + step2, newActiveOption;
|
|
69755
69782
|
nextIndex >= options.length && currentIndex === options.length - 1 ? newActiveOption = options[0] : newActiveOption = options[Math.min(options.length - 1, nextIndex)], setActiveOption(newActiveOption);
|
|
69756
69783
|
},
|
|
@@ -69762,7 +69789,7 @@ var StyledButton3 = styled(Button)(
|
|
|
69762
69789
|
return;
|
|
69763
69790
|
}
|
|
69764
69791
|
let currentIndex = options.findIndex(
|
|
69765
|
-
(option) => externalToValue(option.value) === activeOption.value
|
|
69792
|
+
(option) => activeOption.type === "reset" ? "type" in option && option.type === "reset" : externalToValue(option.value) === activeOption.value
|
|
69766
69793
|
), nextIndex = currentIndex - step2, newActiveOption;
|
|
69767
69794
|
nextIndex < 0 && currentIndex === 0 ? newActiveOption = options[options.length - 1] : newActiveOption = options[Math.max(0, nextIndex)], setActiveOption(newActiveOption);
|
|
69768
69795
|
},
|
package/dist/manager/runtime.js
CHANGED
|
@@ -1988,7 +1988,7 @@ var react_default = __REACT__, { Children, Component, Fragment, Profiler, PureCo
|
|
|
1988
1988
|
var channels_default = __STORYBOOK_CHANNELS__, { Channel, HEARTBEAT_INTERVAL, HEARTBEAT_MAX_LATENCY, PostMessageTransport, WebsocketTransport, createBrowserChannel } = __STORYBOOK_CHANNELS__;
|
|
1989
1989
|
|
|
1990
1990
|
// global-externals:storybook/internal/core-events
|
|
1991
|
-
var core_events_default = __STORYBOOK_CORE_EVENTS__, { ARGTYPES_INFO_REQUEST, ARGTYPES_INFO_RESPONSE, CHANNEL_CREATED, CHANNEL_WS_DISCONNECT, CONFIG_ERROR, CREATE_NEW_STORYFILE_REQUEST, CREATE_NEW_STORYFILE_RESPONSE, CURRENT_STORY_WAS_SET, DOCS_PREPARED, DOCS_RENDERED, FILE_COMPONENT_SEARCH_REQUEST, FILE_COMPONENT_SEARCH_RESPONSE, FORCE_REMOUNT, FORCE_RE_RENDER, GLOBALS_UPDATED, NAVIGATE_URL, OPEN_IN_EDITOR_REQUEST, OPEN_IN_EDITOR_RESPONSE, PLAY_FUNCTION_THREW_EXCEPTION, PRELOAD_ENTRIES, PREVIEW_BUILDER_PROGRESS, PREVIEW_INITIALIZED, PREVIEW_KEYDOWN, REGISTER_SUBSCRIPTION, REQUEST_WHATS_NEW_DATA, RESET_STORY_ARGS, RESULT_WHATS_NEW_DATA, SAVE_STORY_REQUEST, SAVE_STORY_RESPONSE, SELECT_STORY, SET_CONFIG, SET_CURRENT_STORY, SET_FILTER, SET_GLOBALS, SET_INDEX, SET_STORIES, SET_WHATS_NEW_CACHE, SHARED_STATE_CHANGED, SHARED_STATE_SET, STORIES_COLLAPSE_ALL, STORIES_EXPAND_ALL, STORY_ARGS_UPDATED, STORY_CHANGED, STORY_ERRORED, STORY_FINISHED, STORY_HOT_UPDATED, STORY_INDEX_INVALIDATED, STORY_MISSING, STORY_PREPARED, STORY_RENDERED, STORY_RENDER_PHASE_CHANGED, STORY_SPECIFIED, STORY_THREW_EXCEPTION, STORY_UNCHANGED, TELEMETRY_ERROR, TOGGLE_WHATS_NEW_NOTIFICATIONS, UNHANDLED_ERRORS_WHILE_PLAYING, UPDATE_GLOBALS, UPDATE_QUERY_PARAMS, UPDATE_STORY_ARGS } = __STORYBOOK_CORE_EVENTS__;
|
|
1991
|
+
var core_events_default = __STORYBOOK_CORE_EVENTS__, { ARGTYPES_INFO_REQUEST, ARGTYPES_INFO_RESPONSE, CHANNEL_CREATED, CHANNEL_WS_DISCONNECT, CONFIG_ERROR, CREATE_NEW_STORYFILE_REQUEST, CREATE_NEW_STORYFILE_RESPONSE, CURRENT_STORY_WAS_SET, DOCS_PREPARED, DOCS_RENDERED, FILE_COMPONENT_SEARCH_REQUEST, FILE_COMPONENT_SEARCH_RESPONSE, FORCE_REMOUNT, FORCE_RE_RENDER, GLOBALS_UPDATED, MANAGER_INERT_ATTRIBUTE_CHANGED, NAVIGATE_URL, OPEN_IN_EDITOR_REQUEST, OPEN_IN_EDITOR_RESPONSE, PLAY_FUNCTION_THREW_EXCEPTION, PRELOAD_ENTRIES, PREVIEW_BUILDER_PROGRESS, PREVIEW_INITIALIZED, PREVIEW_KEYDOWN, REGISTER_SUBSCRIPTION, REQUEST_WHATS_NEW_DATA, RESET_STORY_ARGS, RESULT_WHATS_NEW_DATA, SAVE_STORY_REQUEST, SAVE_STORY_RESPONSE, SELECT_STORY, SET_CONFIG, SET_CURRENT_STORY, SET_FILTER, SET_GLOBALS, SET_INDEX, SET_STORIES, SET_WHATS_NEW_CACHE, SHARED_STATE_CHANGED, SHARED_STATE_SET, STORIES_COLLAPSE_ALL, STORIES_EXPAND_ALL, STORY_ARGS_UPDATED, STORY_CHANGED, STORY_ERRORED, STORY_FINISHED, STORY_HOT_UPDATED, STORY_INDEX_INVALIDATED, STORY_MISSING, STORY_PREPARED, STORY_RENDERED, STORY_RENDER_PHASE_CHANGED, STORY_SPECIFIED, STORY_THREW_EXCEPTION, STORY_UNCHANGED, TELEMETRY_ERROR, TOGGLE_WHATS_NEW_NOTIFICATIONS, UNHANDLED_ERRORS_WHILE_PLAYING, UPDATE_GLOBALS, UPDATE_QUERY_PARAMS, UPDATE_STORY_ARGS } = __STORYBOOK_CORE_EVENTS__;
|
|
1992
1992
|
|
|
1993
1993
|
// ../node_modules/@storybook/global/dist/index.mjs
|
|
1994
1994
|
var scope = (() => {
|
|
@@ -4800,7 +4800,7 @@ var MINIMUM_CONTENT_WIDTH_PX = 100, layoutStateIsEqual = (state, other) => state
|
|
|
4800
4800
|
var types_default = __STORYBOOK_TYPES__, { Addon_TypesEnum, CoreWebpackCompiler, Feature, SupportedBuilder, SupportedFramework, SupportedLanguage, SupportedRenderer } = __STORYBOOK_TYPES__;
|
|
4801
4801
|
|
|
4802
4802
|
// src/core-events/index.ts
|
|
4803
|
-
var events = /* @__PURE__ */ ((events2) => (events2.CHANNEL_WS_DISCONNECT = "channelWSDisconnect", events2.CHANNEL_CREATED = "channelCreated", events2.CONFIG_ERROR = "configError", events2.STORY_INDEX_INVALIDATED = "storyIndexInvalidated", events2.STORY_SPECIFIED = "storySpecified", events2.SET_CONFIG = "setConfig", events2.SET_STORIES = "setStories", events2.SET_INDEX = "setIndex", events2.SET_CURRENT_STORY = "setCurrentStory", events2.CURRENT_STORY_WAS_SET = "currentStoryWasSet", events2.FORCE_RE_RENDER = "forceReRender", events2.FORCE_REMOUNT = "forceRemount", events2.PRELOAD_ENTRIES = "preloadStories", events2.STORY_PREPARED = "storyPrepared", events2.DOCS_PREPARED = "docsPrepared", events2.STORY_CHANGED = "storyChanged", events2.STORY_UNCHANGED = "storyUnchanged", events2.STORY_RENDERED = "storyRendered", events2.STORY_FINISHED = "storyFinished", events2.STORY_MISSING = "storyMissing", events2.STORY_ERRORED = "storyErrored", events2.STORY_THREW_EXCEPTION = "storyThrewException", events2.STORY_RENDER_PHASE_CHANGED = "storyRenderPhaseChanged", events2.STORY_HOT_UPDATED = "storyHotUpdated", events2.PLAY_FUNCTION_THREW_EXCEPTION = "playFunctionThrewException", events2.UNHANDLED_ERRORS_WHILE_PLAYING = "unhandledErrorsWhilePlaying", events2.UPDATE_STORY_ARGS = "updateStoryArgs", events2.STORY_ARGS_UPDATED = "storyArgsUpdated", events2.RESET_STORY_ARGS = "resetStoryArgs", events2.SET_FILTER = "setFilter", events2.SET_GLOBALS = "setGlobals", events2.UPDATE_GLOBALS = "updateGlobals", events2.GLOBALS_UPDATED = "globalsUpdated", events2.REGISTER_SUBSCRIPTION = "registerSubscription", events2.PREVIEW_INITIALIZED = "previewInitialized", events2.PREVIEW_KEYDOWN = "previewKeydown", events2.PREVIEW_BUILDER_PROGRESS = "preview_builder_progress", events2.SELECT_STORY = "selectStory", events2.STORIES_COLLAPSE_ALL = "storiesCollapseAll", events2.STORIES_EXPAND_ALL = "storiesExpandAll", events2.DOCS_RENDERED = "docsRendered", events2.SHARED_STATE_CHANGED = "sharedStateChanged", events2.SHARED_STATE_SET = "sharedStateSet", events2.NAVIGATE_URL = "navigateUrl", events2.UPDATE_QUERY_PARAMS = "updateQueryParams", events2.REQUEST_WHATS_NEW_DATA = "requestWhatsNewData", events2.RESULT_WHATS_NEW_DATA = "resultWhatsNewData", events2.SET_WHATS_NEW_CACHE = "setWhatsNewCache", events2.TOGGLE_WHATS_NEW_NOTIFICATIONS = "toggleWhatsNewNotifications", events2.TELEMETRY_ERROR = "telemetryError", events2.FILE_COMPONENT_SEARCH_REQUEST = "fileComponentSearchRequest", events2.FILE_COMPONENT_SEARCH_RESPONSE = "fileComponentSearchResponse", events2.SAVE_STORY_REQUEST = "saveStoryRequest", events2.SAVE_STORY_RESPONSE = "saveStoryResponse", events2.ARGTYPES_INFO_REQUEST = "argtypesInfoRequest", events2.ARGTYPES_INFO_RESPONSE = "argtypesInfoResponse", events2.CREATE_NEW_STORYFILE_REQUEST = "createNewStoryfileRequest", events2.CREATE_NEW_STORYFILE_RESPONSE = "createNewStoryfileResponse", events2.OPEN_IN_EDITOR_REQUEST = "openInEditorRequest", events2.OPEN_IN_EDITOR_RESPONSE = "openInEditorResponse", events2))(events || {});
|
|
4803
|
+
var events = /* @__PURE__ */ ((events2) => (events2.CHANNEL_WS_DISCONNECT = "channelWSDisconnect", events2.CHANNEL_CREATED = "channelCreated", events2.CONFIG_ERROR = "configError", events2.STORY_INDEX_INVALIDATED = "storyIndexInvalidated", events2.STORY_SPECIFIED = "storySpecified", events2.SET_CONFIG = "setConfig", events2.SET_STORIES = "setStories", events2.SET_INDEX = "setIndex", events2.SET_CURRENT_STORY = "setCurrentStory", events2.CURRENT_STORY_WAS_SET = "currentStoryWasSet", events2.FORCE_RE_RENDER = "forceReRender", events2.FORCE_REMOUNT = "forceRemount", events2.PRELOAD_ENTRIES = "preloadStories", events2.STORY_PREPARED = "storyPrepared", events2.DOCS_PREPARED = "docsPrepared", events2.STORY_CHANGED = "storyChanged", events2.STORY_UNCHANGED = "storyUnchanged", events2.STORY_RENDERED = "storyRendered", events2.STORY_FINISHED = "storyFinished", events2.STORY_MISSING = "storyMissing", events2.STORY_ERRORED = "storyErrored", events2.STORY_THREW_EXCEPTION = "storyThrewException", events2.STORY_RENDER_PHASE_CHANGED = "storyRenderPhaseChanged", events2.STORY_HOT_UPDATED = "storyHotUpdated", events2.PLAY_FUNCTION_THREW_EXCEPTION = "playFunctionThrewException", events2.UNHANDLED_ERRORS_WHILE_PLAYING = "unhandledErrorsWhilePlaying", events2.UPDATE_STORY_ARGS = "updateStoryArgs", events2.STORY_ARGS_UPDATED = "storyArgsUpdated", events2.RESET_STORY_ARGS = "resetStoryArgs", events2.SET_FILTER = "setFilter", events2.SET_GLOBALS = "setGlobals", events2.UPDATE_GLOBALS = "updateGlobals", events2.GLOBALS_UPDATED = "globalsUpdated", events2.REGISTER_SUBSCRIPTION = "registerSubscription", events2.PREVIEW_INITIALIZED = "previewInitialized", events2.PREVIEW_KEYDOWN = "previewKeydown", events2.PREVIEW_BUILDER_PROGRESS = "preview_builder_progress", events2.SELECT_STORY = "selectStory", events2.STORIES_COLLAPSE_ALL = "storiesCollapseAll", events2.STORIES_EXPAND_ALL = "storiesExpandAll", events2.DOCS_RENDERED = "docsRendered", events2.SHARED_STATE_CHANGED = "sharedStateChanged", events2.SHARED_STATE_SET = "sharedStateSet", events2.NAVIGATE_URL = "navigateUrl", events2.UPDATE_QUERY_PARAMS = "updateQueryParams", events2.REQUEST_WHATS_NEW_DATA = "requestWhatsNewData", events2.RESULT_WHATS_NEW_DATA = "resultWhatsNewData", events2.SET_WHATS_NEW_CACHE = "setWhatsNewCache", events2.TOGGLE_WHATS_NEW_NOTIFICATIONS = "toggleWhatsNewNotifications", events2.TELEMETRY_ERROR = "telemetryError", events2.FILE_COMPONENT_SEARCH_REQUEST = "fileComponentSearchRequest", events2.FILE_COMPONENT_SEARCH_RESPONSE = "fileComponentSearchResponse", events2.SAVE_STORY_REQUEST = "saveStoryRequest", events2.SAVE_STORY_RESPONSE = "saveStoryResponse", events2.ARGTYPES_INFO_REQUEST = "argtypesInfoRequest", events2.ARGTYPES_INFO_RESPONSE = "argtypesInfoResponse", events2.CREATE_NEW_STORYFILE_REQUEST = "createNewStoryfileRequest", events2.CREATE_NEW_STORYFILE_RESPONSE = "createNewStoryfileResponse", events2.OPEN_IN_EDITOR_REQUEST = "openInEditorRequest", events2.OPEN_IN_EDITOR_RESPONSE = "openInEditorResponse", events2.MANAGER_INERT_ATTRIBUTE_CHANGED = "managerInertAttributeChanged", events2))(events || {});
|
|
4804
4804
|
var {
|
|
4805
4805
|
CHANNEL_WS_DISCONNECT: CHANNEL_WS_DISCONNECT2,
|
|
4806
4806
|
CHANNEL_CREATED: CHANNEL_CREATED2,
|
|
@@ -4861,7 +4861,8 @@ var {
|
|
|
4861
4861
|
ARGTYPES_INFO_REQUEST: ARGTYPES_INFO_REQUEST2,
|
|
4862
4862
|
ARGTYPES_INFO_RESPONSE: ARGTYPES_INFO_RESPONSE2,
|
|
4863
4863
|
OPEN_IN_EDITOR_REQUEST: OPEN_IN_EDITOR_REQUEST2,
|
|
4864
|
-
OPEN_IN_EDITOR_RESPONSE: OPEN_IN_EDITOR_RESPONSE2
|
|
4864
|
+
OPEN_IN_EDITOR_RESPONSE: OPEN_IN_EDITOR_RESPONSE2,
|
|
4865
|
+
MANAGER_INERT_ATTRIBUTE_CHANGED: MANAGER_INERT_ATTRIBUTE_CHANGED2
|
|
4865
4866
|
} = events;
|
|
4866
4867
|
|
|
4867
4868
|
// src/manager/components/panel/Panel.tsx
|
|
@@ -18686,7 +18687,19 @@ var App = ({ managerLayoutState, setManagerLayoutState, pages, hasTab }) => {
|
|
|
18686
18687
|
let { setMobileAboutOpen } = useLayout(), { enableShortcuts = !0 } = addons.getConfig();
|
|
18687
18688
|
return useEffect(() => {
|
|
18688
18689
|
document.body.setAttribute("data-shortcuts-enabled", enableShortcuts ? "true" : "false");
|
|
18689
|
-
}, [enableShortcuts]),
|
|
18690
|
+
}, [enableShortcuts]), useEffect(() => {
|
|
18691
|
+
let rootElement = document.getElementById("root");
|
|
18692
|
+
if (!rootElement)
|
|
18693
|
+
return;
|
|
18694
|
+
let observer = new MutationObserver(() => {
|
|
18695
|
+
let hasInert = rootElement.hasAttribute("inert");
|
|
18696
|
+
addons.getChannel().emit(core_events_default.MANAGER_INERT_ATTRIBUTE_CHANGED, hasInert);
|
|
18697
|
+
});
|
|
18698
|
+
return observer.observe(rootElement, {
|
|
18699
|
+
attributes: !0,
|
|
18700
|
+
attributeFilter: ["inert"]
|
|
18701
|
+
}), () => observer.disconnect();
|
|
18702
|
+
}, []), react_default.createElement(react_default.Fragment, null, react_default.createElement(Global, { styles: createGlobal }), react_default.createElement(
|
|
18690
18703
|
Layout,
|
|
18691
18704
|
{
|
|
18692
18705
|
hasTab,
|
|
@@ -19368,7 +19381,9 @@ var ShortcutsScreen = class extends Component {
|
|
|
19368
19381
|
};
|
|
19369
19382
|
this.renderKeyInput = () => {
|
|
19370
19383
|
let { shortcutKeys, addonsShortcutLabels } = this.state;
|
|
19371
|
-
return Object.entries(shortcutKeys).
|
|
19384
|
+
return Object.entries(shortcutKeys).filter(
|
|
19385
|
+
([feature]) => shortcutLabels[feature] !== void 0 || addonsShortcutLabels && addonsShortcutLabels[feature]
|
|
19386
|
+
).map(([feature, { shortcut }]) => react_default.createElement(Row, { key: feature }, react_default.createElement(Description, null, shortcutLabels[feature] || addonsShortcutLabels[feature]), react_default.createElement(
|
|
19372
19387
|
TextInput,
|
|
19373
19388
|
{
|
|
19374
19389
|
spellCheck: "false",
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
} from "../_browser-chunks/chunk-UD6FQLAF.js";
|
|
6
6
|
import {
|
|
7
7
|
StatusTypeIdMismatchError
|
|
8
|
-
} from "../_browser-chunks/chunk-
|
|
8
|
+
} from "../_browser-chunks/chunk-V5NV5R37.js";
|
|
9
9
|
import {
|
|
10
10
|
StatusTypeIdMismatchError as StatusTypeIdMismatchError2
|
|
11
|
-
} from "../_browser-chunks/chunk-
|
|
11
|
+
} from "../_browser-chunks/chunk-7S2XPX5M.js";
|
|
12
12
|
import {
|
|
13
13
|
StorybookError
|
|
14
|
-
} from "../_browser-chunks/chunk-
|
|
14
|
+
} from "../_browser-chunks/chunk-JVRDBUUP.js";
|
|
15
15
|
import {
|
|
16
16
|
countBy,
|
|
17
17
|
dequal,
|
|
@@ -2329,7 +2329,7 @@ import { global as global8 } from "@storybook/global";
|
|
|
2329
2329
|
import semver from "semver";
|
|
2330
2330
|
|
|
2331
2331
|
// src/manager-api/version.ts
|
|
2332
|
-
var version = "10.1.
|
|
2332
|
+
var version = "10.1.6";
|
|
2333
2333
|
|
|
2334
2334
|
// src/manager-api/modules/versions.ts
|
|
2335
2335
|
var { VERSIONCHECK } = global8, getVersionCheckData = (0, import_memoizerific2.default)(1)(() => {
|
package/dist/manager-errors.d.ts
CHANGED
|
@@ -570,6 +570,25 @@ declare abstract class StorybookError extends Error {
|
|
|
570
570
|
/** Overrides the default `Error.name` property in the format: SB_<CATEGORY>_<CODE>. */
|
|
571
571
|
get name(): string;
|
|
572
572
|
set name(name: string);
|
|
573
|
+
/**
|
|
574
|
+
* A collection of sub errors which relate to a parent error.
|
|
575
|
+
*
|
|
576
|
+
* Sub-errors are used to represent multiple related errors that occurred together. When a
|
|
577
|
+
* StorybookError with sub-errors is sent to telemetry, both the parent error and each sub-error
|
|
578
|
+
* are sent as separate telemetry events. This allows for better error tracking and debugging.
|
|
579
|
+
*
|
|
580
|
+
* @example
|
|
581
|
+
*
|
|
582
|
+
* ```ts
|
|
583
|
+
* const error1 = new SomeError();
|
|
584
|
+
* const error2 = new AnotherError();
|
|
585
|
+
* const parentError = new ParentError({
|
|
586
|
+
* // ... other props
|
|
587
|
+
* subErrors: [error1, error2],
|
|
588
|
+
* });
|
|
589
|
+
* ```
|
|
590
|
+
*/
|
|
591
|
+
subErrors: StorybookError[];
|
|
573
592
|
constructor(props: {
|
|
574
593
|
category: string;
|
|
575
594
|
code: number;
|
|
@@ -577,6 +596,11 @@ declare abstract class StorybookError extends Error {
|
|
|
577
596
|
documentation?: boolean | string | string[];
|
|
578
597
|
isHandledError?: boolean;
|
|
579
598
|
name: string;
|
|
599
|
+
/**
|
|
600
|
+
* Optional array of sub-errors that are related to this error. When this error is sent to
|
|
601
|
+
* telemetry, each sub-error will be sent as a separate event.
|
|
602
|
+
*/
|
|
603
|
+
subErrors?: StorybookError[];
|
|
580
604
|
});
|
|
581
605
|
/** Generates the error message along with additional documentation link (if applicable). */
|
|
582
606
|
static getFullMessage({ documentation, code, category, message, }: ConstructorParameters<typeof StorybookError>[0]): string;
|
package/dist/manager-errors.js
CHANGED
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
ProviderDoesNotExtendBaseProviderError,
|
|
4
4
|
StatusTypeIdMismatchError,
|
|
5
5
|
UncaughtManagerError
|
|
6
|
-
} from "./_browser-chunks/chunk-
|
|
7
|
-
import "./_browser-chunks/chunk-
|
|
6
|
+
} from "./_browser-chunks/chunk-V5NV5R37.js";
|
|
7
|
+
import "./_browser-chunks/chunk-JVRDBUUP.js";
|
|
8
8
|
import "./_browser-chunks/chunk-A242L54C.js";
|
|
9
9
|
export {
|
|
10
10
|
Category,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_u12tm8drdom from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_u12tm8drdom from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_u12tm8drdom from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_u12tm8drdom.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_u12tm8drdom.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_u12tm8drdom.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -16,8 +16,8 @@ import {
|
|
|
16
16
|
join,
|
|
17
17
|
normalize,
|
|
18
18
|
resolve
|
|
19
|
-
} from "../_node-chunks/chunk-
|
|
20
|
-
import "../_node-chunks/chunk-
|
|
19
|
+
} from "../_node-chunks/chunk-MBCK5AH4.js";
|
|
20
|
+
import "../_node-chunks/chunk-YKVDPPMP.js";
|
|
21
21
|
|
|
22
22
|
// ../node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs
|
|
23
23
|
var comma = 44, semicolon = 59, chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", intToChar = new Uint8Array(64), charToInt = new Uint8Array(128);
|