storybook 10.2.0-beta.1 → 10.2.0-beta.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-IRBMORML.js → builder-manager-N2LWOX5D.js} +12 -12
- package/dist/_node-chunks/{camelcase-JM3BJBI7.js → camelcase-5FSYVCZS.js} +7 -7
- package/dist/_node-chunks/{chunk-5IZBWBDT.js → chunk-2LLPTUG2.js} +6 -6
- package/dist/_node-chunks/{chunk-WLBZMVKZ.js → chunk-2LRLWFCA.js} +16 -16
- package/dist/_node-chunks/chunk-2WBHN5ZN.js +23 -0
- package/dist/_node-chunks/{chunk-NFE2FV3C.js → chunk-4VD35T6X.js} +6 -6
- package/dist/_node-chunks/{chunk-FLAGIDCN.js → chunk-5J2THD7E.js} +7 -7
- package/dist/_node-chunks/{chunk-FWBRRVW6.js → chunk-5PCZPYCJ.js} +118 -106
- package/dist/_node-chunks/{chunk-2SAOTVFT.js → chunk-6BGWV535.js} +13 -13
- package/dist/_node-chunks/{chunk-EXJYKVMZ.js → chunk-7UVJF2ZL.js} +7 -7
- package/dist/_node-chunks/chunk-ADG4FYMH.js +61 -0
- package/dist/_node-chunks/{chunk-E4NS75V2.js → chunk-BTTNDYQ6.js} +6 -6
- package/dist/_node-chunks/{chunk-QO37JOCL.js → chunk-CQFU5LUX.js} +18 -20
- package/dist/_node-chunks/{chunk-FOSOWVVY.js → chunk-EABA3I6M.js} +12 -12
- package/dist/_node-chunks/{chunk-WRGLNCF7.js → chunk-FWIMIUHV.js} +7 -7
- package/dist/_node-chunks/{chunk-AEAT43LP.js → chunk-GHY5BYFV.js} +7 -7
- package/dist/_node-chunks/{chunk-GKB6BXCD.js → chunk-HBFPHSFB.js} +6 -6
- package/dist/_node-chunks/{chunk-RP5L2ZGT.js → chunk-HODKH6S2.js} +6 -6
- package/dist/_node-chunks/chunk-J4YBZOS2.js +18 -0
- package/dist/_node-chunks/{chunk-KRXWB32F.js → chunk-J6PIL7K6.js} +7 -7
- package/dist/_node-chunks/{chunk-7WSC72DT.js → chunk-M4QILBFD.js} +7 -7
- package/dist/_node-chunks/{chunk-H444EFIP.js → chunk-M62QO44I.js} +6 -6
- package/dist/_node-chunks/{chunk-6T5JWO53.js → chunk-OJV6TVDO.js} +7 -7
- package/dist/_node-chunks/{chunk-M5BK3KV6.js → chunk-P2XLDRN4.js} +20 -20
- package/dist/_node-chunks/{chunk-L5NAVTEK.js → chunk-PGC5F6XL.js} +6 -6
- package/dist/_node-chunks/{chunk-MTJISVX7.js → chunk-SBB2XM7N.js} +7 -7
- package/dist/_node-chunks/{chunk-FK46E6BJ.js → chunk-WXDEINTE.js} +10 -10
- package/dist/_node-chunks/{chunk-YR6V5CGX.js → chunk-XEBN3C26.js} +8 -8
- package/dist/_node-chunks/{chunk-B3ABITJT.js → chunk-ZQQYNNTB.js} +9 -9
- package/dist/_node-chunks/{chunk-PZT42DUC.js → chunk-ZYMMEEUR.js} +6 -6
- package/dist/_node-chunks/{globby-EHB62LWZ.js → globby-SSZCWWA6.js} +9 -9
- package/dist/_node-chunks/{lib-F2QE2E3S.js → lib-L2HJYQNA.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-SV23TYXC.js → mdx-N42X6CFJ-H4SZRJXB.js} +8 -8
- package/dist/_node-chunks/{p-limit-T7DGUJ4I.js → p-limit-EA5PER7Y.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 +2 -2
- package/dist/core-server/index.js +35 -35
- package/dist/core-server/presets/common-manager.js +1 -1
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +25 -25
- package/dist/csf-tools/index.js +9 -9
- package/dist/manager/globals-runtime.js +4 -4
- package/dist/manager/runtime.js +37 -29
- package/dist/manager-api/index.js +2 -2
- package/dist/mocking-utils/index.js +8 -8
- package/dist/node-logger/index.js +9 -9
- package/dist/server-errors.js +11 -11
- package/dist/telemetry/index.js +23 -23
- package/dist/viewport/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/_node-chunks/chunk-34APMFOU.js +0 -23
- package/dist/_node-chunks/chunk-5M5YVBOE.js +0 -18
- package/dist/_node-chunks/chunk-RVYIMZDI.js +0 -61
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_dxneh53ovgi from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_dxneh53ovgi from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_dxneh53ovgi from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_dxneh53ovgi.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_dxneh53ovgi.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_dxneh53ovgi.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
|
toEstree
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-GHY5BYFV.js";
|
|
15
15
|
import {
|
|
16
16
|
StatusTypeIdMismatchError
|
|
17
|
-
} from "../_node-chunks/chunk-
|
|
17
|
+
} from "../_node-chunks/chunk-WXDEINTE.js";
|
|
18
18
|
import {
|
|
19
19
|
debounce,
|
|
20
20
|
generateStoryFile,
|
|
@@ -25,69 +25,69 @@ import {
|
|
|
25
25
|
sendTelemetryError,
|
|
26
26
|
useStatics,
|
|
27
27
|
withTelemetry
|
|
28
|
-
} from "../_node-chunks/chunk-
|
|
28
|
+
} from "../_node-chunks/chunk-2LRLWFCA.js";
|
|
29
29
|
import {
|
|
30
30
|
detectPnp
|
|
31
|
-
} from "../_node-chunks/chunk-
|
|
32
|
-
import "../_node-chunks/chunk-
|
|
31
|
+
} from "../_node-chunks/chunk-2WBHN5ZN.js";
|
|
32
|
+
import "../_node-chunks/chunk-J6PIL7K6.js";
|
|
33
33
|
import {
|
|
34
34
|
StorybookError
|
|
35
|
-
} from "../_node-chunks/chunk-
|
|
35
|
+
} from "../_node-chunks/chunk-4VD35T6X.js";
|
|
36
36
|
import {
|
|
37
37
|
telemetry
|
|
38
|
-
} from "../_node-chunks/chunk-
|
|
39
|
-
import "../_node-chunks/chunk-
|
|
38
|
+
} from "../_node-chunks/chunk-6BGWV535.js";
|
|
39
|
+
import "../_node-chunks/chunk-J4YBZOS2.js";
|
|
40
40
|
import {
|
|
41
41
|
optionalEnvToBoolean,
|
|
42
42
|
require_cross_spawn,
|
|
43
43
|
resolveImport,
|
|
44
44
|
supportedExtensions,
|
|
45
45
|
userOrAutoTitleFromSpecifier
|
|
46
|
-
} from "../_node-chunks/chunk-
|
|
47
|
-
import "../_node-chunks/chunk-
|
|
48
|
-
import "../_node-chunks/chunk-
|
|
46
|
+
} from "../_node-chunks/chunk-P2XLDRN4.js";
|
|
47
|
+
import "../_node-chunks/chunk-ADG4FYMH.js";
|
|
48
|
+
import "../_node-chunks/chunk-5J2THD7E.js";
|
|
49
49
|
import {
|
|
50
50
|
require_pretty_hrtime
|
|
51
|
-
} from "../_node-chunks/chunk-
|
|
52
|
-
import "../_node-chunks/chunk-
|
|
53
|
-
import "../_node-chunks/chunk-
|
|
51
|
+
} from "../_node-chunks/chunk-XEBN3C26.js";
|
|
52
|
+
import "../_node-chunks/chunk-2LLPTUG2.js";
|
|
53
|
+
import "../_node-chunks/chunk-ZQQYNNTB.js";
|
|
54
54
|
import {
|
|
55
55
|
invariant,
|
|
56
56
|
up2 as up
|
|
57
|
-
} from "../_node-chunks/chunk-
|
|
58
|
-
import "../_node-chunks/chunk-
|
|
57
|
+
} from "../_node-chunks/chunk-BTTNDYQ6.js";
|
|
58
|
+
import "../_node-chunks/chunk-PGC5F6XL.js";
|
|
59
59
|
import {
|
|
60
60
|
importModule,
|
|
61
61
|
resolvePackageDir
|
|
62
|
-
} from "../_node-chunks/chunk-
|
|
62
|
+
} from "../_node-chunks/chunk-SBB2XM7N.js";
|
|
63
63
|
import {
|
|
64
64
|
dirname,
|
|
65
65
|
join,
|
|
66
66
|
relative,
|
|
67
67
|
resolve
|
|
68
|
-
} from "../_node-chunks/chunk-
|
|
68
|
+
} from "../_node-chunks/chunk-HODKH6S2.js";
|
|
69
69
|
import {
|
|
70
70
|
slash
|
|
71
|
-
} from "../_node-chunks/chunk-
|
|
72
|
-
import "../_node-chunks/chunk-
|
|
71
|
+
} from "../_node-chunks/chunk-HBFPHSFB.js";
|
|
72
|
+
import "../_node-chunks/chunk-FWIMIUHV.js";
|
|
73
73
|
import {
|
|
74
74
|
Tag
|
|
75
|
-
} from "../_node-chunks/chunk-
|
|
75
|
+
} from "../_node-chunks/chunk-CQFU5LUX.js";
|
|
76
76
|
import {
|
|
77
77
|
require_dist
|
|
78
|
-
} from "../_node-chunks/chunk-
|
|
78
|
+
} from "../_node-chunks/chunk-7UVJF2ZL.js";
|
|
79
79
|
import {
|
|
80
80
|
require_lib,
|
|
81
81
|
require_src
|
|
82
|
-
} from "../_node-chunks/chunk-
|
|
82
|
+
} from "../_node-chunks/chunk-M4QILBFD.js";
|
|
83
83
|
import {
|
|
84
84
|
require_picocolors
|
|
85
|
-
} from "../_node-chunks/chunk-
|
|
85
|
+
} from "../_node-chunks/chunk-OJV6TVDO.js";
|
|
86
86
|
import {
|
|
87
87
|
__commonJS,
|
|
88
88
|
__require,
|
|
89
89
|
__toESM
|
|
90
|
-
} from "../_node-chunks/chunk-
|
|
90
|
+
} from "../_node-chunks/chunk-ZYMMEEUR.js";
|
|
91
91
|
|
|
92
92
|
// ../../node_modules/glob-to-regexp/index.js
|
|
93
93
|
var require_glob_to_regexp = __commonJS({
|
|
@@ -4544,7 +4544,7 @@ function print(p) {
|
|
|
4544
4544
|
// src/core-server/utils/get-builders.ts
|
|
4545
4545
|
import { MissingBuilderError } from "storybook/internal/server-errors";
|
|
4546
4546
|
async function getManagerBuilder() {
|
|
4547
|
-
return await import("../_node-chunks/builder-manager-
|
|
4547
|
+
return await import("../_node-chunks/builder-manager-N2LWOX5D.js");
|
|
4548
4548
|
}
|
|
4549
4549
|
async function getPreviewBuilder(resolvedPreviewBuilder) {
|
|
4550
4550
|
return await importModule(resolvedPreviewBuilder);
|
|
@@ -4608,7 +4608,7 @@ function watchStorySpecifiers(specifiers, options, onInvalidate) {
|
|
|
4608
4608
|
// files can be e.g. '**/foo/*/*.js' so we just want the last bit,
|
|
4609
4609
|
// because the directory could already be within the files part (e.g. './x/foo/bar')
|
|
4610
4610
|
basename(specifier.files)
|
|
4611
|
-
), { globby } = await import("../_node-chunks/globby-
|
|
4611
|
+
), { globby } = await import("../_node-chunks/globby-SSZCWWA6.js");
|
|
4612
4612
|
(await globby(slash(dirGlob), commonGlobOptions(dirGlob))).forEach((filePath) => {
|
|
4613
4613
|
let fileImportPath = toImportPath(filePath);
|
|
4614
4614
|
specifier.importPathMatcher.exec(fileImportPath) && onInvalidate(fileImportPath, removed);
|
|
@@ -5627,7 +5627,7 @@ var getAttr = (elt, what) => elt.attributes.find((n) => n.type === "JSXAttribute
|
|
|
5627
5627
|
isTemplate: !1,
|
|
5628
5628
|
metaTags: void 0,
|
|
5629
5629
|
imports: void 0
|
|
5630
|
-
}, { compile } = await import("../_node-chunks/mdx-N42X6CFJ-
|
|
5630
|
+
}, { compile } = await import("../_node-chunks/mdx-N42X6CFJ-H4SZRJXB.js");
|
|
5631
5631
|
await compile(code, {
|
|
5632
5632
|
rehypePlugins: [[plugin, store]]
|
|
5633
5633
|
});
|
|
@@ -5772,7 +5772,7 @@ var makeAbsolute = (otherImport, normalizedPath, workingDir) => otherImport.star
|
|
|
5772
5772
|
let cacheKey = this.getFindMatchingFilesCacheKey(specifier, workingDir, ignoreWarnings), cached = this.findMatchingFilesCache.get(cacheKey);
|
|
5773
5773
|
if (cached)
|
|
5774
5774
|
return cached;
|
|
5775
|
-
let pathToSubIndex = {}, globCwd = slash(resolve3(workingDir, specifier.directory)), globPattern = specifier.files.startsWith("!") ? `./${specifier.files}` : specifier.files, { globby } = await import("../_node-chunks/globby-
|
|
5775
|
+
let pathToSubIndex = {}, globCwd = slash(resolve3(workingDir, specifier.directory)), globPattern = specifier.files.startsWith("!") ? `./${specifier.files}` : specifier.files, { globby } = await import("../_node-chunks/globby-SSZCWWA6.js"), files = await globby(globPattern, {
|
|
5776
5776
|
absolute: !0,
|
|
5777
5777
|
cwd: globCwd,
|
|
5778
5778
|
...commonGlobOptions2(globPattern)
|
|
@@ -6959,7 +6959,7 @@ var URL_VALUE_PATTERN = /^([0-9]{1,4})([a-z]{0,4})-([0-9]{1,4})([a-z]{0,4})$/, V
|
|
|
6959
6959
|
disable,
|
|
6960
6960
|
viewMode
|
|
6961
6961
|
), update = useCallback10(
|
|
6962
|
-
(input) => updateGlobals({ [PARAM_KEY2]: input }),
|
|
6962
|
+
(input) => updateGlobals({ [PARAM_KEY2]: normalizeGlobal(input, !1) }),
|
|
6963
6963
|
[updateGlobals]
|
|
6964
6964
|
), resize = useCallback10(
|
|
6965
6965
|
(width2, height2) => {
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_dxneh53ovgi from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_dxneh53ovgi from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_dxneh53ovgi from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_dxneh53ovgi.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_dxneh53ovgi.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_dxneh53ovgi.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
|
slash
|
|
14
|
-
} from "../../_node-chunks/chunk-
|
|
14
|
+
} from "../../_node-chunks/chunk-HBFPHSFB.js";
|
|
15
15
|
import {
|
|
16
16
|
glob
|
|
17
|
-
} from "../../_node-chunks/chunk-
|
|
18
|
-
import "../../_node-chunks/chunk-
|
|
17
|
+
} from "../../_node-chunks/chunk-FWIMIUHV.js";
|
|
18
|
+
import "../../_node-chunks/chunk-ZYMMEEUR.js";
|
|
19
19
|
|
|
20
20
|
// src/core-server/utils/remove-mdx-entries.ts
|
|
21
21
|
import { isAbsolute, join, relative } from "node:path";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_dxneh53ovgi from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_dxneh53ovgi from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_dxneh53ovgi from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_dxneh53ovgi.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_dxneh53ovgi.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_dxneh53ovgi.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-EABA3I6M.js";
|
|
13
13
|
import {
|
|
14
14
|
doesStoryFileExist,
|
|
15
15
|
generateStoryFile,
|
|
@@ -17,47 +17,47 @@ import {
|
|
|
17
17
|
parseStaticDir,
|
|
18
18
|
sendTelemetryError,
|
|
19
19
|
throttle
|
|
20
|
-
} from "../../_node-chunks/chunk-
|
|
21
|
-
import "../../_node-chunks/chunk-
|
|
22
|
-
import "../../_node-chunks/chunk-
|
|
23
|
-
import "../../_node-chunks/chunk-
|
|
20
|
+
} from "../../_node-chunks/chunk-2LRLWFCA.js";
|
|
21
|
+
import "../../_node-chunks/chunk-2WBHN5ZN.js";
|
|
22
|
+
import "../../_node-chunks/chunk-J6PIL7K6.js";
|
|
23
|
+
import "../../_node-chunks/chunk-4VD35T6X.js";
|
|
24
24
|
import {
|
|
25
25
|
isI18nPackage,
|
|
26
26
|
isRouterPackage,
|
|
27
27
|
isStateManagementPackage,
|
|
28
28
|
isStylingPackage
|
|
29
|
-
} from "../../_node-chunks/chunk-
|
|
29
|
+
} from "../../_node-chunks/chunk-2LLPTUG2.js";
|
|
30
30
|
import {
|
|
31
31
|
globalSettings
|
|
32
|
-
} from "../../_node-chunks/chunk-
|
|
32
|
+
} from "../../_node-chunks/chunk-ZQQYNNTB.js";
|
|
33
33
|
import {
|
|
34
34
|
invariant
|
|
35
|
-
} from "../../_node-chunks/chunk-
|
|
36
|
-
import "../../_node-chunks/chunk-
|
|
35
|
+
} from "../../_node-chunks/chunk-BTTNDYQ6.js";
|
|
36
|
+
import "../../_node-chunks/chunk-PGC5F6XL.js";
|
|
37
37
|
import {
|
|
38
38
|
resolvePackageDir
|
|
39
|
-
} from "../../_node-chunks/chunk-
|
|
39
|
+
} from "../../_node-chunks/chunk-SBB2XM7N.js";
|
|
40
40
|
import {
|
|
41
41
|
isAbsolute,
|
|
42
42
|
join
|
|
43
|
-
} from "../../_node-chunks/chunk-
|
|
43
|
+
} from "../../_node-chunks/chunk-HODKH6S2.js";
|
|
44
44
|
import {
|
|
45
45
|
glob
|
|
46
|
-
} from "../../_node-chunks/chunk-
|
|
47
|
-
import "../../_node-chunks/chunk-
|
|
46
|
+
} from "../../_node-chunks/chunk-FWIMIUHV.js";
|
|
47
|
+
import "../../_node-chunks/chunk-CQFU5LUX.js";
|
|
48
48
|
import {
|
|
49
49
|
require_dist
|
|
50
|
-
} from "../../_node-chunks/chunk-
|
|
51
|
-
import "../../_node-chunks/chunk-
|
|
52
|
-
import "../../_node-chunks/chunk-
|
|
50
|
+
} from "../../_node-chunks/chunk-7UVJF2ZL.js";
|
|
51
|
+
import "../../_node-chunks/chunk-5PCZPYCJ.js";
|
|
52
|
+
import "../../_node-chunks/chunk-M4QILBFD.js";
|
|
53
53
|
import {
|
|
54
54
|
require_picocolors
|
|
55
|
-
} from "../../_node-chunks/chunk-
|
|
55
|
+
} from "../../_node-chunks/chunk-OJV6TVDO.js";
|
|
56
56
|
import {
|
|
57
57
|
__commonJS,
|
|
58
58
|
__require,
|
|
59
59
|
__toESM
|
|
60
|
-
} from "../../_node-chunks/chunk-
|
|
60
|
+
} from "../../_node-chunks/chunk-ZYMMEEUR.js";
|
|
61
61
|
|
|
62
62
|
// ../../node_modules/shell-quote/quote.js
|
|
63
63
|
var require_quote = __commonJS({
|
|
@@ -650,7 +650,7 @@ async function searchFiles({
|
|
|
650
650
|
ignoredFiles = IGNORED_FILES,
|
|
651
651
|
fileExtensions = FILE_EXTENSIONS
|
|
652
652
|
}) {
|
|
653
|
-
let { globby, isDynamicPattern } = await import("../../_node-chunks/globby-
|
|
653
|
+
let { globby, isDynamicPattern } = await import("../../_node-chunks/globby-SSZCWWA6.js"), hasSearchSpecialGlobChars = isDynamicPattern(searchQuery, { cwd }), searchQueryHasExtension = /(\.[a-z]+)$/i.test(searchQuery), fileExtensionsPattern = `{${fileExtensions.join(",")}}`, globbedSearchQuery = hasSearchSpecialGlobChars ? searchQuery : searchQueryHasExtension ? [`**/*${searchQuery}*`, `**/*${searchQuery}*/**`] : [
|
|
654
654
|
`**/*${searchQuery}*.${fileExtensionsPattern}`,
|
|
655
655
|
`**/*${searchQuery}*/**/*.${fileExtensionsPattern}`
|
|
656
656
|
];
|
package/dist/csf-tools/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_dxneh53ovgi from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_dxneh53ovgi from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_dxneh53ovgi from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_dxneh53ovgi.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_dxneh53ovgi.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_dxneh53ovgi.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -39,9 +39,9 @@ import {
|
|
|
39
39
|
vitestTransform,
|
|
40
40
|
writeConfig,
|
|
41
41
|
writeCsf
|
|
42
|
-
} from "../_node-chunks/chunk-
|
|
43
|
-
import "../_node-chunks/chunk-
|
|
44
|
-
import "../_node-chunks/chunk-
|
|
42
|
+
} from "../_node-chunks/chunk-CQFU5LUX.js";
|
|
43
|
+
import "../_node-chunks/chunk-7UVJF2ZL.js";
|
|
44
|
+
import "../_node-chunks/chunk-ZYMMEEUR.js";
|
|
45
45
|
export {
|
|
46
46
|
BadMetaError,
|
|
47
47
|
ConfigFile,
|
|
@@ -62155,7 +62155,7 @@ var parseBoolean = (value) => {
|
|
|
62155
62155
|
return provider.channel?.on(STORY_ARGS_UPDATED, () => {
|
|
62156
62156
|
"requestIdleCallback" in scope.window ? (handleOrId && scope.window.cancelIdleCallback(handleOrId), handleOrId = scope.window.requestIdleCallback(updateArgsParam, { timeout: 1e3 })) : (handleOrId && clearTimeout(handleOrId), setTimeout(updateArgsParam, 100));
|
|
62157
62157
|
}), provider.channel?.on(GLOBALS_UPDATED, ({ userGlobals, initialGlobals: initialGlobals5 }) => {
|
|
62158
|
-
let { path, hash: hash4 = "", queryParams } = api.getUrlState(), globalsString = buildArgsParam(initialGlobals5, userGlobals);
|
|
62158
|
+
let { path, hash: hash4 = "", queryParams } = api.getUrlState(), globalsString = buildArgsParam(initialGlobals5, merge_default(initialGlobals5, userGlobals));
|
|
62159
62159
|
navigateTo(`${path}${hash4}`, { ...queryParams, globals: globalsString }, { replace: !0 }), api.setQueryParams({ globals: globalsString });
|
|
62160
62160
|
}), provider.channel?.on(NAVIGATE_URL, (url, options) => {
|
|
62161
62161
|
api.navigateUrl(url, options);
|
|
@@ -62174,7 +62174,7 @@ init_dist();
|
|
|
62174
62174
|
var import_memoizerific8 = __toESM(require_memoizerific(), 1), import_semver = __toESM(require_semver2(), 1);
|
|
62175
62175
|
|
|
62176
62176
|
// src/manager-api/version.ts
|
|
62177
|
-
var version = "10.2.0-beta.
|
|
62177
|
+
var version = "10.2.0-beta.2";
|
|
62178
62178
|
|
|
62179
62179
|
// src/manager-api/modules/versions.ts
|
|
62180
62180
|
var { VERSIONCHECK } = scope, getVersionCheckData = (0, import_memoizerific8.default)(1)(() => {
|
|
@@ -72023,12 +72023,12 @@ var StyledButton3 = styled(Button)(
|
|
|
72023
72023
|
setSelectedFromDefault(calleeOptions, defaultOptions2)
|
|
72024
72024
|
), handleSelectOption = (0, import_react124.useCallback)(
|
|
72025
72025
|
(option) => {
|
|
72026
|
-
option.type === "reset" ?
|
|
72026
|
+
option.type === "reset" ? (onChange?.([]), onReset?.(), setSelectedOptions([])) : setSelectedOptions(multiSelect ? (previous) => {
|
|
72027
72027
|
let newSelected = [];
|
|
72028
72028
|
return previous?.some((opt) => opt.value === option.value) ? (onDeselect?.(valueToExternal(option.value)), newSelected = previous?.filter((opt) => opt.value !== option.value) ?? []) : (onSelect?.(valueToExternal(option.value)), newSelected = [...previous ?? [], option]), onChange?.(newSelected.map((opt) => valueToExternal(opt.value))), newSelected;
|
|
72029
72029
|
} : (current) => current.every((opt) => opt.value !== option.value) ? (onSelect?.(valueToExternal(option.value)), onChange?.([valueToExternal(option.value)]), [option]) : current);
|
|
72030
72030
|
},
|
|
72031
|
-
[multiSelect, onChange, onSelect, onDeselect, onReset
|
|
72031
|
+
[multiSelect, onChange, onSelect, onDeselect, onReset]
|
|
72032
72032
|
), resetOption = (0, import_react124.useMemo)(
|
|
72033
72033
|
() => onReset ? {
|
|
72034
72034
|
type: "reset",
|
package/dist/manager/runtime.js
CHANGED
|
@@ -5002,7 +5002,7 @@ var URL_VALUE_PATTERN = /^([0-9]{1,4})([a-z]{0,4})-([0-9]{1,4})([a-z]{0,4})$/, V
|
|
|
5002
5002
|
disable,
|
|
5003
5003
|
viewMode
|
|
5004
5004
|
), update2 = useCallback(
|
|
5005
|
-
(input) => updateGlobals({ [PARAM_KEY]: input }),
|
|
5005
|
+
(input) => updateGlobals({ [PARAM_KEY]: normalizeGlobal(input, !1) }),
|
|
5006
5006
|
[updateGlobals]
|
|
5007
5007
|
), resize = useCallback(
|
|
5008
5008
|
(width2, height2) => {
|
|
@@ -5750,7 +5750,7 @@ var Wrapper2 = styled.span(({ theme }) => ({
|
|
|
5750
5750
|
})), Shortcut = ({ keys }) => react_default.createElement(Wrapper2, null, keys.map((key) => react_default.createElement(Key, { key }, shortcutToHumanString([key]))));
|
|
5751
5751
|
|
|
5752
5752
|
// src/manager/components/preview/tools/zoom.tsx
|
|
5753
|
-
var ZOOM_LEVELS = [0.25, 0.5, 0.75, 0.9, 1, 1.1, 1.25, 1.5, 2, 3, 4], INITIAL_ZOOM_LEVEL = 1, ZoomButton = styled(Button)({
|
|
5753
|
+
var ZOOM_LEVELS = [0.25, 0.5, 0.75, 0.9, 1, 1.1, 1.25, 1.5, 2, 3, 4, 8], INITIAL_ZOOM_LEVEL = 1, ZoomButton = styled(Button)({
|
|
5754
5754
|
minWidth: 48
|
|
5755
5755
|
}), Context = createContext({ value: INITIAL_ZOOM_LEVEL, set: (v2) => {
|
|
5756
5756
|
} }), ZoomInput = styled(NumericInput)({
|
|
@@ -5798,7 +5798,7 @@ var ZOOM_LEVELS = [0.25, 0.5, 0.75, 0.9, 1, 1.1, 1.25, 1.5, 2, 3, 4], INITIAL_ZO
|
|
|
5798
5798
|
),
|
|
5799
5799
|
value: `${Math.round(value * 100)}%`,
|
|
5800
5800
|
minValue: 1,
|
|
5801
|
-
maxValue:
|
|
5801
|
+
maxValue: 800,
|
|
5802
5802
|
setValue: (value2) => {
|
|
5803
5803
|
let zoomLevel = parseInt(value2, 10) / 100;
|
|
5804
5804
|
Number.isNaN(zoomLevel) || zoomTo(zoomLevel);
|
|
@@ -5860,6 +5860,11 @@ var ZOOM_LEVELS = [0.25, 0.5, 0.75, 0.9, 1, 1.1, 1.25, 1.5, 2, 3, 4], INITIAL_ZO
|
|
|
5860
5860
|
defaultShortcut: ["alt", "="],
|
|
5861
5861
|
actionName: "zoomIn",
|
|
5862
5862
|
action: zoomIn
|
|
5863
|
+
}), api.setAddonShortcut("zoom", {
|
|
5864
|
+
label: "Zoom in",
|
|
5865
|
+
defaultShortcut: ["alt", "+"],
|
|
5866
|
+
actionName: "zoomPlus",
|
|
5867
|
+
action: zoomIn
|
|
5863
5868
|
}), api.setAddonShortcut("zoom", {
|
|
5864
5869
|
label: "Zoom out",
|
|
5865
5870
|
defaultShortcut: ["alt", "-"],
|
|
@@ -11614,6 +11619,7 @@ var CodeWrapper = styled.div(({ theme }) => ({
|
|
|
11614
11619
|
action: {
|
|
11615
11620
|
label: "Start",
|
|
11616
11621
|
onClick: ({ api }) => {
|
|
11622
|
+
api.toggleNav(!0);
|
|
11617
11623
|
let path = api.getUrlState().path || "";
|
|
11618
11624
|
path.startsWith("/story/") ? document.location.href = `/?path=${path}&onboarding=true` : document.location.href = "/?onboarding=true";
|
|
11619
11625
|
}
|
|
@@ -11917,31 +11923,33 @@ export default {
|
|
|
11917
11923
|
),
|
|
11918
11924
|
action: {
|
|
11919
11925
|
label: "Start",
|
|
11920
|
-
onClick: () =>
|
|
11921
|
-
|
|
11922
|
-
|
|
11923
|
-
|
|
11924
|
-
|
|
11925
|
-
|
|
11926
|
-
|
|
11927
|
-
|
|
11928
|
-
|
|
11929
|
-
|
|
11930
|
-
|
|
11931
|
-
|
|
11932
|
-
|
|
11926
|
+
onClick: ({ api }) => {
|
|
11927
|
+
api.toggleNav(!0), TourGuide.render({
|
|
11928
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
11929
|
+
// @ts-ignore Circular reference in Step type
|
|
11930
|
+
steps: [
|
|
11931
|
+
{
|
|
11932
|
+
title: "Testing widget",
|
|
11933
|
+
content: "Run tests right from your Storybook sidebar using the testing widget.",
|
|
11934
|
+
placement: "right-end",
|
|
11935
|
+
target: "#storybook-testing-module",
|
|
11936
|
+
highlight: "#storybook-testing-module",
|
|
11937
|
+
onNext: ({ next }) => {
|
|
11938
|
+
let toggle = document.getElementById("testing-module-collapse-toggle");
|
|
11939
|
+
toggle?.getAttribute("aria-label") === "Expand testing module" ? (toggle.click(), setTimeout(next, 300)) : next();
|
|
11940
|
+
}
|
|
11941
|
+
},
|
|
11942
|
+
{
|
|
11943
|
+
title: "Start a test run",
|
|
11944
|
+
content: "Start a test run at the click of a button using Vitest.",
|
|
11945
|
+
placement: "right",
|
|
11946
|
+
target: '[data-module-id="storybook/test/test-provider"] button[aria-label="Start test run"]',
|
|
11947
|
+
highlight: '[data-module-id="storybook/test/test-provider"] button[aria-label="Start test run"]',
|
|
11948
|
+
hideNextButton: !0
|
|
11933
11949
|
}
|
|
11934
|
-
|
|
11935
|
-
|
|
11936
|
-
|
|
11937
|
-
content: "Start a test run at the click of a button using Vitest.",
|
|
11938
|
-
placement: "right",
|
|
11939
|
-
target: '[data-module-id="storybook/test/test-provider"] button[aria-label="Start test run"]',
|
|
11940
|
-
highlight: '[data-module-id="storybook/test/test-provider"] button[aria-label="Start test run"]',
|
|
11941
|
-
hideNextButton: !0
|
|
11942
|
-
}
|
|
11943
|
-
]
|
|
11944
|
-
})
|
|
11950
|
+
]
|
|
11951
|
+
});
|
|
11952
|
+
}
|
|
11945
11953
|
},
|
|
11946
11954
|
content: ({ api }) => react_default.createElement(react_default.Fragment, null, react_default.createElement("p", null, "Stories make great test cases. You can quickly test all of your stories directly from the test widget, at the bottom of the sidebar."), react_default.createElement(
|
|
11947
11955
|
"img",
|
|
@@ -12579,7 +12587,7 @@ var fadeScaleIn = keyframes`
|
|
|
12579
12587
|
keyFn: (item) => item.id,
|
|
12580
12588
|
timeout: animated ? 300 : 0
|
|
12581
12589
|
});
|
|
12582
|
-
return react_default.createElement(CollapsibleWithMargin, { collapsed: !hasItems || !loaded }, react_default.createElement(HoverCard, { id: "storybook-checklist-widget", outlineAnimation: "rainbow" }, react_default.createElement(
|
|
12590
|
+
return api.getIsNavShown() ? react_default.createElement(CollapsibleWithMargin, { collapsed: !hasItems || !loaded }, react_default.createElement(HoverCard, { id: "storybook-checklist-widget", outlineAnimation: "rainbow" }, react_default.createElement(
|
|
12583
12591
|
Collapsible,
|
|
12584
12592
|
{
|
|
12585
12593
|
storageKey: "checklist-widget",
|
|
@@ -12667,7 +12675,7 @@ var fadeScaleIn = keyframes`
|
|
|
12667
12675
|
item.action.label
|
|
12668
12676
|
))
|
|
12669
12677
|
))
|
|
12670
|
-
)));
|
|
12678
|
+
))) : null;
|
|
12671
12679
|
};
|
|
12672
12680
|
|
|
12673
12681
|
// src/manager/components/sidebar/CreateNewStoryFileModal.tsx
|
|
@@ -2376,7 +2376,7 @@ var parseBoolean = (value) => {
|
|
|
2376
2376
|
return provider.channel?.on(STORY_ARGS_UPDATED2, () => {
|
|
2377
2377
|
"requestIdleCallback" in global7.window ? (handleOrId && global7.window.cancelIdleCallback(handleOrId), handleOrId = global7.window.requestIdleCallback(updateArgsParam, { timeout: 1e3 })) : (handleOrId && clearTimeout(handleOrId), setTimeout(updateArgsParam, 100));
|
|
2378
2378
|
}), provider.channel?.on(GLOBALS_UPDATED2, ({ userGlobals, initialGlobals }) => {
|
|
2379
|
-
let { path, hash = "", queryParams } = api.getUrlState(), globalsString = buildArgsParam(initialGlobals, userGlobals);
|
|
2379
|
+
let { path, hash = "", queryParams } = api.getUrlState(), globalsString = buildArgsParam(initialGlobals, merge_default(initialGlobals, userGlobals));
|
|
2380
2380
|
navigateTo(`${path}${hash}`, { ...queryParams, globals: globalsString }, { replace: !0 }), api.setQueryParams({ globals: globalsString });
|
|
2381
2381
|
}), provider.channel?.on(NAVIGATE_URL, (url, options) => {
|
|
2382
2382
|
api.navigateUrl(url, options);
|
|
@@ -2396,7 +2396,7 @@ import { global as global8 } from "@storybook/global";
|
|
|
2396
2396
|
import semver from "semver";
|
|
2397
2397
|
|
|
2398
2398
|
// src/manager-api/version.ts
|
|
2399
|
-
var version = "10.2.0-beta.
|
|
2399
|
+
var version = "10.2.0-beta.2";
|
|
2400
2400
|
|
|
2401
2401
|
// src/manager-api/modules/versions.ts
|
|
2402
2402
|
var { VERSIONCHECK } = global8, getVersionCheckData = (0, import_memoizerific2.default)(1)(() => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_dxneh53ovgi from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_dxneh53ovgi from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_dxneh53ovgi from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_dxneh53ovgi.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_dxneh53ovgi.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_dxneh53ovgi.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-HODKH6S2.js";
|
|
20
|
+
import "../_node-chunks/chunk-ZYMMEEUR.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);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_dxneh53ovgi from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_dxneh53ovgi from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_dxneh53ovgi from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_dxneh53ovgi.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_dxneh53ovgi.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_dxneh53ovgi.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -22,9 +22,9 @@ import {
|
|
|
22
22
|
once,
|
|
23
23
|
prompt,
|
|
24
24
|
protectUrls
|
|
25
|
-
} from "../_node-chunks/chunk-
|
|
26
|
-
import "../_node-chunks/chunk-
|
|
27
|
-
import "../_node-chunks/chunk-
|
|
25
|
+
} from "../_node-chunks/chunk-XEBN3C26.js";
|
|
26
|
+
import "../_node-chunks/chunk-OJV6TVDO.js";
|
|
27
|
+
import "../_node-chunks/chunk-ZYMMEEUR.js";
|
|
28
28
|
var export_instance = import_npmlog.default;
|
|
29
29
|
export {
|
|
30
30
|
CLI_COLORS,
|
package/dist/server-errors.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_dxneh53ovgi from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_dxneh53ovgi from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_dxneh53ovgi from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_dxneh53ovgi.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_dxneh53ovgi.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_dxneh53ovgi.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -46,13 +46,13 @@ import {
|
|
|
46
46
|
WebpackCompilationError,
|
|
47
47
|
WebpackInvocationError,
|
|
48
48
|
WebpackMissingStatsError
|
|
49
|
-
} from "./_node-chunks/chunk-
|
|
49
|
+
} from "./_node-chunks/chunk-WXDEINTE.js";
|
|
50
50
|
import {
|
|
51
51
|
StorybookError
|
|
52
|
-
} from "./_node-chunks/chunk-
|
|
53
|
-
import "./_node-chunks/chunk-
|
|
54
|
-
import "./_node-chunks/chunk-
|
|
55
|
-
import "./_node-chunks/chunk-
|
|
52
|
+
} from "./_node-chunks/chunk-4VD35T6X.js";
|
|
53
|
+
import "./_node-chunks/chunk-7UVJF2ZL.js";
|
|
54
|
+
import "./_node-chunks/chunk-OJV6TVDO.js";
|
|
55
|
+
import "./_node-chunks/chunk-ZYMMEEUR.js";
|
|
56
56
|
export {
|
|
57
57
|
AddonVitestPostinstallConfigUpdateError,
|
|
58
58
|
AddonVitestPostinstallError,
|