storybook 10.2.0-alpha.12 → 10.2.0-alpha.13
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-G3T6FATF.js → builder-manager-YTW4R3NB.js} +12 -12
- package/dist/_node-chunks/{camelcase-NMVRRV6V.js → camelcase-ALOK3DTL.js} +7 -7
- package/dist/_node-chunks/{chunk-IQUZPWN3.js → chunk-2VHYFREG.js} +7 -7
- package/dist/_node-chunks/{chunk-VBIK2FN2.js → chunk-5CARBEGS.js} +9 -9
- package/dist/_node-chunks/{chunk-HVD2LZT3.js → chunk-5E6TIJW7.js} +6 -6
- package/dist/_node-chunks/chunk-5U7IR6W2.js +61 -0
- package/dist/_node-chunks/{chunk-KK73AHXT.js → chunk-AE6TGTGX.js} +7 -7
- package/dist/_node-chunks/{chunk-LMYWY6ZJ.js → chunk-AOMUVL33.js} +12 -12
- package/dist/_node-chunks/{chunk-G4RT3MO3.js → chunk-B3NH4IRY.js} +6 -6
- package/dist/_node-chunks/{chunk-ERDFVJJE.js → chunk-BIJENBOW.js} +9 -9
- package/dist/_node-chunks/{chunk-HSXHYDWU.js → chunk-FCBELYHM.js} +12 -12
- package/dist/_node-chunks/chunk-JUCUYWH2.js +23 -0
- package/dist/_node-chunks/chunk-KTAHXSER.js +18 -0
- package/dist/_node-chunks/{chunk-WMWMEGTL.js → chunk-KXFFKIVX.js} +6 -6
- package/dist/_node-chunks/{chunk-UEL7SAB5.js → chunk-L4JVY7CQ.js} +7 -7
- package/dist/_node-chunks/{chunk-HMDODR3W.js → chunk-NGFKU3PK.js} +7 -7
- package/dist/_node-chunks/{chunk-SEUBEMNQ.js → chunk-NL75DTGM.js} +6 -6
- package/dist/_node-chunks/{chunk-OJ2CMYDH.js → chunk-NRCGIPSW.js} +6 -6
- package/dist/_node-chunks/{chunk-IW5UJQJL.js → chunk-OOTLIMKW.js} +6 -6
- package/dist/_node-chunks/{chunk-MDDTIMMD.js → chunk-OWZXELHP.js} +13 -13
- package/dist/_node-chunks/{chunk-VL57YBAT.js → chunk-QMDFRT4S.js} +10 -10
- package/dist/_node-chunks/{chunk-MCTOTRJG.js → chunk-QV7LTTOW.js} +20 -20
- package/dist/_node-chunks/{chunk-FXCJJSMM.js → chunk-TOLCEUYZ.js} +7 -7
- package/dist/_node-chunks/{chunk-XE2EF6IL.js → chunk-TWCN75ID.js} +9 -9
- package/dist/_node-chunks/{chunk-QGMW4WKW.js → chunk-VOVBTC53.js} +6 -6
- package/dist/_node-chunks/{chunk-LF7P2YRI.js → chunk-WKDY7YZY.js} +7 -7
- package/dist/_node-chunks/{chunk-YPYOZM4G.js → chunk-X2PNK4N4.js} +7 -7
- package/dist/_node-chunks/chunk-XQU357NR.js +20 -0
- package/dist/_node-chunks/{chunk-EO2J5FE4.js → chunk-XX6B7MPS.js} +8 -8
- package/dist/_node-chunks/{chunk-TFFPC3VZ.js → chunk-ZSUT22UW.js} +7 -7
- package/dist/_node-chunks/{dist-4VO67SAZ.js → dist-I4XBT6AL.js} +9 -9
- package/dist/_node-chunks/{globby-4KANABX2.js → globby-RG2TFVNI.js} +9 -9
- package/dist/_node-chunks/{lib-2MKCQZND.js → lib-E2AGGQV3.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-3ENJ5IE5.js → mdx-N42X6CFJ-SGUMZ4YL.js} +8 -8
- package/dist/_node-chunks/{p-limit-TLF7WD5L.js → p-limit-J4UZO65T.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 +1 -0
- package/dist/core-server/index.js +33 -33
- package/dist/core-server/presets/common-manager.js +16 -12
- 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 +10 -10
- package/dist/manager/globals-runtime.js +7 -3
- 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/server-errors.js +11 -11
- package/dist/telemetry/index.js +22 -22
- package/dist/theming/index.js +5 -2
- package/package.json +1 -1
- package/dist/_node-chunks/chunk-BDTFFW43.js +0 -18
- package/dist/_node-chunks/chunk-ENNXNDBF.js +0 -20
- package/dist/_node-chunks/chunk-OQ42LCEX.js +0 -61
- package/dist/_node-chunks/chunk-TKRINGRM.js +0 -23
package/dist/bin/loader.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_xc3mu1pf9x from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_xc3mu1pf9x from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_xc3mu1pf9x from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_xc3mu1pf9x.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_xc3mu1pf9x.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_xc3mu1pf9x.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-OOTLIMKW.js";
|
|
15
15
|
import {
|
|
16
16
|
require_dist
|
|
17
|
-
} from "../_node-chunks/chunk-
|
|
17
|
+
} from "../_node-chunks/chunk-2VHYFREG.js";
|
|
18
18
|
import {
|
|
19
19
|
__toESM
|
|
20
|
-
} from "../_node-chunks/chunk-
|
|
20
|
+
} from "../_node-chunks/chunk-KXFFKIVX.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_xc3mu1pf9x from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_xc3mu1pf9x from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_xc3mu1pf9x from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_xc3mu1pf9x.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_xc3mu1pf9x.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_xc3mu1pf9x.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-FCBELYHM.js";
|
|
37
37
|
import {
|
|
38
38
|
detectPnp
|
|
39
|
-
} from "../_node-chunks/chunk-
|
|
39
|
+
} from "../_node-chunks/chunk-JUCUYWH2.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-TWCN75ID.js";
|
|
45
|
+
import "../_node-chunks/chunk-VOVBTC53.js";
|
|
46
|
+
import "../_node-chunks/chunk-NRCGIPSW.js";
|
|
47
|
+
import "../_node-chunks/chunk-ZSUT22UW.js";
|
|
48
|
+
import "../_node-chunks/chunk-NL75DTGM.js";
|
|
49
|
+
import "../_node-chunks/chunk-2VHYFREG.js";
|
|
50
|
+
import "../_node-chunks/chunk-5CARBEGS.js";
|
|
51
|
+
import "../_node-chunks/chunk-NGFKU3PK.js";
|
|
52
|
+
import "../_node-chunks/chunk-X2PNK4N4.js";
|
|
53
|
+
import "../_node-chunks/chunk-KXFFKIVX.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_xc3mu1pf9x from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_xc3mu1pf9x from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_xc3mu1pf9x from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_xc3mu1pf9x.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_xc3mu1pf9x.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_xc3mu1pf9x.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-QV7LTTOW.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-5U7IR6W2.js";
|
|
109
|
+
import "../_node-chunks/chunk-L4JVY7CQ.js";
|
|
110
|
+
import "../_node-chunks/chunk-XX6B7MPS.js";
|
|
111
|
+
import "../_node-chunks/chunk-VOVBTC53.js";
|
|
112
112
|
import {
|
|
113
113
|
groupBy,
|
|
114
114
|
invariant
|
|
115
|
-
} from "../_node-chunks/chunk-
|
|
115
|
+
} from "../_node-chunks/chunk-NRCGIPSW.js";
|
|
116
116
|
import {
|
|
117
117
|
importMetaResolve,
|
|
118
118
|
importModule,
|
|
119
119
|
resolvePackageDir,
|
|
120
120
|
safeResolveModule
|
|
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-ZSUT22UW.js";
|
|
122
|
+
import "../_node-chunks/chunk-NL75DTGM.js";
|
|
123
|
+
import "../_node-chunks/chunk-AE6TGTGX.js";
|
|
124
|
+
import "../_node-chunks/chunk-XQU357NR.js";
|
|
125
|
+
import "../_node-chunks/chunk-2VHYFREG.js";
|
|
126
|
+
import "../_node-chunks/chunk-X2PNK4N4.js";
|
|
127
|
+
import "../_node-chunks/chunk-KXFFKIVX.js";
|
|
128
128
|
export {
|
|
129
129
|
DEFAULT_FILES_PATTERN,
|
|
130
130
|
FileSystemCache,
|
package/dist/components/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_xc3mu1pf9x from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_xc3mu1pf9x from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_xc3mu1pf9x from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_xc3mu1pf9x.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_xc3mu1pf9x.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_xc3mu1pf9x.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-QMDFRT4S.js";
|
|
15
15
|
import {
|
|
16
16
|
debounce,
|
|
17
17
|
getErrorLevel,
|
|
@@ -21,68 +21,68 @@ import {
|
|
|
21
21
|
sendTelemetryError,
|
|
22
22
|
useStatics,
|
|
23
23
|
withTelemetry
|
|
24
|
-
} from "../_node-chunks/chunk-
|
|
24
|
+
} from "../_node-chunks/chunk-OWZXELHP.js";
|
|
25
25
|
import {
|
|
26
26
|
detectPnp
|
|
27
|
-
} from "../_node-chunks/chunk-
|
|
28
|
-
import "../_node-chunks/chunk-
|
|
27
|
+
} from "../_node-chunks/chunk-JUCUYWH2.js";
|
|
28
|
+
import "../_node-chunks/chunk-TOLCEUYZ.js";
|
|
29
29
|
import {
|
|
30
30
|
StorybookError
|
|
31
|
-
} from "../_node-chunks/chunk-
|
|
31
|
+
} from "../_node-chunks/chunk-5E6TIJW7.js";
|
|
32
32
|
import {
|
|
33
33
|
telemetry
|
|
34
|
-
} from "../_node-chunks/chunk-
|
|
35
|
-
import "../_node-chunks/chunk-
|
|
34
|
+
} from "../_node-chunks/chunk-AOMUVL33.js";
|
|
35
|
+
import "../_node-chunks/chunk-KTAHXSER.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-QV7LTTOW.js";
|
|
43
|
+
import "../_node-chunks/chunk-5U7IR6W2.js";
|
|
44
|
+
import "../_node-chunks/chunk-L4JVY7CQ.js";
|
|
45
45
|
import {
|
|
46
46
|
require_pretty_hrtime
|
|
47
|
-
} from "../_node-chunks/chunk-
|
|
48
|
-
import "../_node-chunks/chunk-
|
|
47
|
+
} from "../_node-chunks/chunk-XX6B7MPS.js";
|
|
48
|
+
import "../_node-chunks/chunk-TWCN75ID.js";
|
|
49
49
|
import {
|
|
50
50
|
invariant,
|
|
51
51
|
up2 as up
|
|
52
|
-
} from "../_node-chunks/chunk-
|
|
53
|
-
import "../_node-chunks/chunk-
|
|
52
|
+
} from "../_node-chunks/chunk-VOVBTC53.js";
|
|
53
|
+
import "../_node-chunks/chunk-NRCGIPSW.js";
|
|
54
54
|
import {
|
|
55
55
|
importModule,
|
|
56
56
|
resolvePackageDir
|
|
57
|
-
} from "../_node-chunks/chunk-
|
|
57
|
+
} from "../_node-chunks/chunk-ZSUT22UW.js";
|
|
58
58
|
import {
|
|
59
59
|
dirname,
|
|
60
60
|
join,
|
|
61
61
|
relative,
|
|
62
62
|
resolve
|
|
63
|
-
} from "../_node-chunks/chunk-
|
|
64
|
-
import "../_node-chunks/chunk-
|
|
63
|
+
} from "../_node-chunks/chunk-NL75DTGM.js";
|
|
64
|
+
import "../_node-chunks/chunk-AE6TGTGX.js";
|
|
65
65
|
import {
|
|
66
66
|
slash
|
|
67
|
-
} from "../_node-chunks/chunk-
|
|
67
|
+
} from "../_node-chunks/chunk-XQU357NR.js";
|
|
68
68
|
import {
|
|
69
69
|
Tag
|
|
70
|
-
} from "../_node-chunks/chunk-
|
|
70
|
+
} from "../_node-chunks/chunk-B3NH4IRY.js";
|
|
71
71
|
import {
|
|
72
72
|
require_dist
|
|
73
|
-
} from "../_node-chunks/chunk-
|
|
73
|
+
} from "../_node-chunks/chunk-2VHYFREG.js";
|
|
74
74
|
import {
|
|
75
75
|
require_lib,
|
|
76
76
|
require_src
|
|
77
|
-
} from "../_node-chunks/chunk-
|
|
77
|
+
} from "../_node-chunks/chunk-NGFKU3PK.js";
|
|
78
78
|
import {
|
|
79
79
|
require_picocolors
|
|
80
|
-
} from "../_node-chunks/chunk-
|
|
80
|
+
} from "../_node-chunks/chunk-X2PNK4N4.js";
|
|
81
81
|
import {
|
|
82
82
|
__commonJS,
|
|
83
83
|
__require,
|
|
84
84
|
__toESM
|
|
85
|
-
} from "../_node-chunks/chunk-
|
|
85
|
+
} from "../_node-chunks/chunk-KXFFKIVX.js";
|
|
86
86
|
|
|
87
87
|
// ../../node_modules/glob-to-regexp/index.js
|
|
88
88
|
var require_glob_to_regexp = __commonJS({
|
|
@@ -4539,7 +4539,7 @@ function print(p) {
|
|
|
4539
4539
|
// src/core-server/utils/get-builders.ts
|
|
4540
4540
|
import { MissingBuilderError } from "storybook/internal/server-errors";
|
|
4541
4541
|
async function getManagerBuilder() {
|
|
4542
|
-
return await import("../_node-chunks/builder-manager-
|
|
4542
|
+
return await import("../_node-chunks/builder-manager-YTW4R3NB.js");
|
|
4543
4543
|
}
|
|
4544
4544
|
async function getPreviewBuilder(resolvedPreviewBuilder) {
|
|
4545
4545
|
return await importModule(resolvedPreviewBuilder);
|
|
@@ -4603,7 +4603,7 @@ function watchStorySpecifiers(specifiers, options, onInvalidate) {
|
|
|
4603
4603
|
// files can be e.g. '**/foo/*/*.js' so we just want the last bit,
|
|
4604
4604
|
// because the directory could already be within the files part (e.g. './x/foo/bar')
|
|
4605
4605
|
basename(specifier.files)
|
|
4606
|
-
), { globby } = await import("../_node-chunks/globby-
|
|
4606
|
+
), { globby } = await import("../_node-chunks/globby-RG2TFVNI.js");
|
|
4607
4607
|
(await globby(slash(dirGlob), commonGlobOptions(dirGlob))).forEach((filePath) => {
|
|
4608
4608
|
let fileImportPath = toImportPath(filePath);
|
|
4609
4609
|
specifier.importPathMatcher.exec(fileImportPath) && onInvalidate(fileImportPath, removed);
|
|
@@ -5658,7 +5658,7 @@ var makeAbsolute = (otherImport, normalizedPath, workingDir) => otherImport.star
|
|
|
5658
5658
|
let cacheKey = this.getFindMatchingFilesCacheKey(specifier, workingDir, ignoreWarnings), cached = this.findMatchingFilesCache.get(cacheKey);
|
|
5659
5659
|
if (cached)
|
|
5660
5660
|
return cached;
|
|
5661
|
-
let pathToSubIndex = {}, globCwd = slash(resolve3(workingDir, specifier.directory)), globPattern = specifier.files.startsWith("!") ? `./${specifier.files}` : specifier.files, { globby } = await import("../_node-chunks/globby-
|
|
5661
|
+
let pathToSubIndex = {}, globCwd = slash(resolve3(workingDir, specifier.directory)), globPattern = specifier.files.startsWith("!") ? `./${specifier.files}` : specifier.files, { globby } = await import("../_node-chunks/globby-RG2TFVNI.js"), files = await globby(globPattern, {
|
|
5662
5662
|
absolute: !0,
|
|
5663
5663
|
cwd: globCwd,
|
|
5664
5664
|
...commonGlobOptions2(globPattern)
|
|
@@ -5845,7 +5845,7 @@ var makeAbsolute = (otherImport, normalizedPath, workingDir) => otherImport.star
|
|
|
5845
5845
|
async extractDocs(specifier, absolutePath, projectTags = []) {
|
|
5846
5846
|
let relativePath = relative4(this.options.workingDir, absolutePath);
|
|
5847
5847
|
try {
|
|
5848
|
-
let normalizedPath = normalizeStoryPath(relativePath), importPath = slash(normalizedPath), content = await readFile(absolutePath, { encoding: "utf8" }), { analyze } = await import("../_node-chunks/dist-
|
|
5848
|
+
let normalizedPath = normalizeStoryPath(relativePath), importPath = slash(normalizedPath), content = await readFile(absolutePath, { encoding: "utf8" }), { analyze } = await import("../_node-chunks/dist-I4XBT6AL.js"), result = await analyze(content);
|
|
5849
5849
|
if (result.isTemplate)
|
|
5850
5850
|
return !1;
|
|
5851
5851
|
let absoluteImports = result.imports.map(
|
|
@@ -75,7 +75,6 @@ import { color } from "storybook/theming";
|
|
|
75
75
|
|
|
76
76
|
// src/controls/components/ControlsPanel.tsx
|
|
77
77
|
import React26, { useEffect as useEffect8, useMemo as useMemo3, useState as useState11 } from "react";
|
|
78
|
-
import { ScrollArea } from "storybook/internal/components";
|
|
79
78
|
import { global } from "@storybook/global";
|
|
80
79
|
import {
|
|
81
80
|
useArgTypes,
|
|
@@ -3240,7 +3239,7 @@ var TableWrapper2 = styled19.table(({ theme: theme3, compact, inAddonPanel, inTa
|
|
|
3240
3239
|
},
|
|
3241
3240
|
// End Resets
|
|
3242
3241
|
fontSize: theme3.typography.size.s2 - 1,
|
|
3243
|
-
lineHeight: "
|
|
3242
|
+
lineHeight: "19px",
|
|
3244
3243
|
textAlign: "left",
|
|
3245
3244
|
width: "100%",
|
|
3246
3245
|
// Margin collapse
|
|
@@ -3501,8 +3500,9 @@ var slideIn = keyframes({
|
|
|
3501
3500
|
to: {}
|
|
3502
3501
|
}), Container2 = styled20.div({
|
|
3503
3502
|
containerType: "size",
|
|
3504
|
-
position: "
|
|
3503
|
+
position: "absolute",
|
|
3505
3504
|
bottom: 0,
|
|
3505
|
+
width: "100%",
|
|
3506
3506
|
height: 41,
|
|
3507
3507
|
overflow: "hidden",
|
|
3508
3508
|
zIndex: 1
|
|
@@ -3521,6 +3521,7 @@ var slideIn = keyframes({
|
|
|
3521
3521
|
display: "flex",
|
|
3522
3522
|
flex: "99 0 auto",
|
|
3523
3523
|
alignItems: "center",
|
|
3524
|
+
marginInlineStart: 7,
|
|
3524
3525
|
marginInlineEnd: 10,
|
|
3525
3526
|
gap: 6
|
|
3526
3527
|
}), Actions = styled20.div(({ theme: theme3 }) => ({
|
|
@@ -3605,11 +3606,14 @@ var slideIn = keyframes({
|
|
|
3605
3606
|
var clean = (obj) => Object.entries(obj).reduce(
|
|
3606
3607
|
(acc, [key, value2]) => value2 !== void 0 ? Object.assign(acc, { [key]: value2 }) : acc,
|
|
3607
3608
|
{}
|
|
3608
|
-
), AddonWrapper = styled21.div(({ showSaveFromUI }) => ({
|
|
3609
|
-
display: "grid",
|
|
3610
|
-
gridTemplateRows: showSaveFromUI ? "1fr 41px" : "1fr",
|
|
3609
|
+
), AddonWrapper = styled21.div(({ showSaveFromUI, theme: theme3 }) => ({
|
|
3611
3610
|
height: "100%",
|
|
3612
|
-
maxHeight: "100vh"
|
|
3611
|
+
maxHeight: "100vh",
|
|
3612
|
+
paddingBottom: showSaveFromUI ? 41 : 0,
|
|
3613
|
+
backgroundColor: theme3.background.content,
|
|
3614
|
+
table: {
|
|
3615
|
+
backgroundColor: theme3.background.app
|
|
3616
|
+
}
|
|
3613
3617
|
})), ControlsPanel = ({ saveStory, createStory }) => {
|
|
3614
3618
|
let api = useStorybookApi(), [isLoading, setIsLoading] = useState11(!0), [args, updateArgs, resetArgs, initialArgs] = useArgs(), [globals] = useGlobals(), rows = useArgTypes(), {
|
|
3615
3619
|
expanded,
|
|
@@ -3627,7 +3631,7 @@ var clean = (obj) => Object.entries(obj).reduce(
|
|
|
3627
3631
|
() => !!args && !!initialArgs && !dequal(clean(args), clean(initialArgs)),
|
|
3628
3632
|
[args, initialArgs]
|
|
3629
3633
|
), showSaveFromUI = hasControls && storyData.type === "story" && storyData.subtype !== "test" && hasUpdatedArgs && global.CONFIG_TYPE === "DEVELOPMENT" && disableSaveFromUI !== !0;
|
|
3630
|
-
return React26.createElement(AddonWrapper, { showSaveFromUI }, React26.createElement(
|
|
3634
|
+
return React26.createElement(AddonWrapper, { showSaveFromUI }, React26.createElement(
|
|
3631
3635
|
ArgsTable,
|
|
3632
3636
|
{
|
|
3633
3637
|
key: path,
|
|
@@ -3641,7 +3645,7 @@ var clean = (obj) => Object.entries(obj).reduce(
|
|
|
3641
3645
|
sort,
|
|
3642
3646
|
isLoading
|
|
3643
3647
|
}
|
|
3644
|
-
)
|
|
3648
|
+
), showSaveFromUI && React26.createElement(SaveStory, { resetArgs, saveStory, createStory }));
|
|
3645
3649
|
};
|
|
3646
3650
|
|
|
3647
3651
|
// src/controls/components/Title.tsx
|
|
@@ -3721,7 +3725,7 @@ var manager_default = addons.register(ADDON_ID6, (api) => {
|
|
|
3721
3725
|
title: Title,
|
|
3722
3726
|
type: types.PANEL,
|
|
3723
3727
|
paramKey: PARAM_KEY5,
|
|
3724
|
-
render: ({ active }) => !active || !api.getCurrentStoryData() ? null : React28.createElement(AddonPanel, { active
|
|
3728
|
+
render: ({ active }) => !active || !api.getCurrentStoryData() ? null : React28.createElement(AddonPanel, { active }, React28.createElement(ControlsPanel, { saveStory, createStory }))
|
|
3725
3729
|
}), channel.on(SAVE_STORY_RESPONSE, (data) => {
|
|
3726
3730
|
if (!data.success)
|
|
3727
3731
|
return;
|
|
@@ -3763,7 +3767,7 @@ import { STORY_CHANGED as STORY_CHANGED2 } from "storybook/internal/core-events"
|
|
|
3763
3767
|
|
|
3764
3768
|
// src/actions/components/ActionLogger/index.tsx
|
|
3765
3769
|
import React31, { Fragment, forwardRef, useEffect as useEffect9, useRef as useRef5 } from "react";
|
|
3766
|
-
import { ActionBar, ScrollArea
|
|
3770
|
+
import { ActionBar, ScrollArea } from "storybook/internal/components";
|
|
3767
3771
|
|
|
3768
3772
|
// ../../node_modules/react-inspector/dist/index.mjs
|
|
3769
3773
|
import React92 from "react";
|
|
@@ -4766,7 +4770,7 @@ var Action = styled22.div({
|
|
|
4766
4770
|
|
|
4767
4771
|
// src/actions/components/ActionLogger/index.tsx
|
|
4768
4772
|
var UnstyledWrapped = forwardRef(
|
|
4769
|
-
({ children, className }, ref) => React31.createElement(
|
|
4773
|
+
({ children, className }, ref) => React31.createElement(ScrollArea, { ref, horizontal: !0, vertical: !0, className }, children)
|
|
4770
4774
|
);
|
|
4771
4775
|
UnstyledWrapped.displayName = "UnstyledWrapped";
|
|
4772
4776
|
var Wrapper8 = styled23(UnstyledWrapped)({
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_xc3mu1pf9x from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_xc3mu1pf9x from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_xc3mu1pf9x from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_xc3mu1pf9x.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_xc3mu1pf9x.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_xc3mu1pf9x.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-AE6TGTGX.js";
|
|
15
15
|
import {
|
|
16
16
|
slash
|
|
17
|
-
} from "../../_node-chunks/chunk-
|
|
18
|
-
import "../../_node-chunks/chunk-
|
|
17
|
+
} from "../../_node-chunks/chunk-XQU357NR.js";
|
|
18
|
+
import "../../_node-chunks/chunk-KXFFKIVX.js";
|
|
19
19
|
|
|
20
20
|
// src/core-server/utils/remove-mdx-entries.ts
|
|
21
21
|
import { isAbsolute, join, relative } from "node:path";
|
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_xc3mu1pf9x from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_xc3mu1pf9x from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_xc3mu1pf9x from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_xc3mu1pf9x.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_xc3mu1pf9x.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_xc3mu1pf9x.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-FCBELYHM.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-OWZXELHP.js";
|
|
18
|
+
import "../../_node-chunks/chunk-JUCUYWH2.js";
|
|
19
|
+
import "../../_node-chunks/chunk-TOLCEUYZ.js";
|
|
20
|
+
import "../../_node-chunks/chunk-5E6TIJW7.js";
|
|
21
21
|
import {
|
|
22
22
|
globalSettings
|
|
23
|
-
} from "../../_node-chunks/chunk-
|
|
23
|
+
} from "../../_node-chunks/chunk-TWCN75ID.js";
|
|
24
24
|
import {
|
|
25
25
|
invariant
|
|
26
|
-
} from "../../_node-chunks/chunk-
|
|
27
|
-
import "../../_node-chunks/chunk-
|
|
26
|
+
} from "../../_node-chunks/chunk-VOVBTC53.js";
|
|
27
|
+
import "../../_node-chunks/chunk-NRCGIPSW.js";
|
|
28
28
|
import {
|
|
29
29
|
resolvePackageDir
|
|
30
|
-
} from "../../_node-chunks/chunk-
|
|
30
|
+
} from "../../_node-chunks/chunk-ZSUT22UW.js";
|
|
31
31
|
import {
|
|
32
32
|
isAbsolute,
|
|
33
33
|
join
|
|
34
|
-
} from "../../_node-chunks/chunk-
|
|
34
|
+
} from "../../_node-chunks/chunk-NL75DTGM.js";
|
|
35
35
|
import {
|
|
36
36
|
loadConfig
|
|
37
|
-
} from "../../_node-chunks/chunk-
|
|
38
|
-
import "../../_node-chunks/chunk-
|
|
37
|
+
} from "../../_node-chunks/chunk-BIJENBOW.js";
|
|
38
|
+
import "../../_node-chunks/chunk-B3NH4IRY.js";
|
|
39
39
|
import {
|
|
40
40
|
require_dist
|
|
41
|
-
} from "../../_node-chunks/chunk-
|
|
42
|
-
import "../../_node-chunks/chunk-
|
|
43
|
-
import "../../_node-chunks/chunk-
|
|
41
|
+
} from "../../_node-chunks/chunk-2VHYFREG.js";
|
|
42
|
+
import "../../_node-chunks/chunk-5CARBEGS.js";
|
|
43
|
+
import "../../_node-chunks/chunk-NGFKU3PK.js";
|
|
44
44
|
import {
|
|
45
45
|
require_picocolors
|
|
46
|
-
} from "../../_node-chunks/chunk-
|
|
46
|
+
} from "../../_node-chunks/chunk-X2PNK4N4.js";
|
|
47
47
|
import {
|
|
48
48
|
__commonJS,
|
|
49
49
|
__require,
|
|
50
50
|
__toESM
|
|
51
|
-
} from "../../_node-chunks/chunk-
|
|
51
|
+
} from "../../_node-chunks/chunk-KXFFKIVX.js";
|
|
52
52
|
|
|
53
53
|
// ../../node_modules/shell-quote/quote.js
|
|
54
54
|
var require_quote = __commonJS({
|
|
@@ -516,7 +516,7 @@ import { isCsfFactoryPreview } from "storybook/internal/csf-tools";
|
|
|
516
516
|
var import_ts_dedent = __toESM(require_dist(), 1);
|
|
517
517
|
|
|
518
518
|
// src/core-server/utils/get-component-variable-name.ts
|
|
519
|
-
var getComponentVariableName = async (name) => (await import("../../_node-chunks/camelcase-
|
|
519
|
+
var getComponentVariableName = async (name) => (await import("../../_node-chunks/camelcase-ALOK3DTL.js")).default(name.replace(/^[^a-zA-Z_$]*/, ""), { pascalCase: !0 }).replace(/[^a-zA-Z_$]+/, "");
|
|
520
520
|
|
|
521
521
|
// src/core-server/utils/new-story-templates/csf-factory-template.ts
|
|
522
522
|
async function getCsfFactoryTemplateForNewStoryFile(data) {
|
|
@@ -781,7 +781,7 @@ async function searchFiles({
|
|
|
781
781
|
ignoredFiles = IGNORED_FILES,
|
|
782
782
|
fileExtensions = FILE_EXTENSIONS
|
|
783
783
|
}) {
|
|
784
|
-
let { globby, isDynamicPattern } = await import("../../_node-chunks/globby-
|
|
784
|
+
let { globby, isDynamicPattern } = await import("../../_node-chunks/globby-RG2TFVNI.js"), hasSearchSpecialGlobChars = isDynamicPattern(searchQuery, { cwd }), searchQueryHasExtension = /(\.[a-z]+)$/i.test(searchQuery), fileExtensionsPattern = `{${fileExtensions.join(",")}}`, globbedSearchQuery = hasSearchSpecialGlobChars ? searchQuery : searchQueryHasExtension ? [`**/*${searchQuery}*`, `**/*${searchQuery}*/**`] : [
|
|
785
785
|
`**/*${searchQuery}*.${fileExtensionsPattern}`,
|
|
786
786
|
`**/*${searchQuery}*/**/*.${fileExtensionsPattern}`
|
|
787
787
|
];
|
package/dist/csf-tools/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_xc3mu1pf9x from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_xc3mu1pf9x from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_xc3mu1pf9x from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_xc3mu1pf9x.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_xc3mu1pf9x.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_xc3mu1pf9x.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -38,10 +38,10 @@ 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-
|
|
44
|
-
import "../_node-chunks/chunk-
|
|
41
|
+
} from "../_node-chunks/chunk-BIJENBOW.js";
|
|
42
|
+
import "../_node-chunks/chunk-B3NH4IRY.js";
|
|
43
|
+
import "../_node-chunks/chunk-2VHYFREG.js";
|
|
44
|
+
import "../_node-chunks/chunk-KXFFKIVX.js";
|
|
45
45
|
export {
|
|
46
46
|
BadMetaError,
|
|
47
47
|
ConfigFile,
|
|
@@ -7868,9 +7868,12 @@ var import_memoizerific, createReset, createGlobal, init_global = __esm({
|
|
|
7868
7868
|
...resetStyles,
|
|
7869
7869
|
body: {
|
|
7870
7870
|
...resetStyles.body,
|
|
7871
|
+
position: "fixed",
|
|
7872
|
+
width: "100vw",
|
|
7873
|
+
height: "100vh",
|
|
7874
|
+
overflow: "hidden",
|
|
7871
7875
|
color: color2.defaultText,
|
|
7872
|
-
background: background2.app
|
|
7873
|
-
overflow: "hidden"
|
|
7876
|
+
background: background2.app
|
|
7874
7877
|
},
|
|
7875
7878
|
hr: {
|
|
7876
7879
|
...resetStyles.hr,
|
|
@@ -62127,7 +62130,7 @@ init_dist();
|
|
|
62127
62130
|
var import_memoizerific8 = __toESM(require_memoizerific(), 1), import_semver = __toESM(require_semver2(), 1);
|
|
62128
62131
|
|
|
62129
62132
|
// src/manager-api/version.ts
|
|
62130
|
-
var version = "10.2.0-alpha.
|
|
62133
|
+
var version = "10.2.0-alpha.13";
|
|
62131
62134
|
|
|
62132
62135
|
// src/manager-api/modules/versions.ts
|
|
62133
62136
|
var { VERSIONCHECK } = scope, getVersionCheckData = (0, import_memoizerific8.default)(1)(() => {
|
|
@@ -70772,6 +70775,7 @@ var fadeIn = keyframes({
|
|
|
70772
70775
|
return import_react104.default.createElement(
|
|
70773
70776
|
Button,
|
|
70774
70777
|
{
|
|
70778
|
+
type: "button",
|
|
70775
70779
|
padding: "small",
|
|
70776
70780
|
ariaLabel: "Close modal",
|
|
70777
70781
|
variant: "ghost",
|
|
@@ -2382,7 +2382,7 @@ import { global as global8 } from "@storybook/global";
|
|
|
2382
2382
|
import semver from "semver";
|
|
2383
2383
|
|
|
2384
2384
|
// src/manager-api/version.ts
|
|
2385
|
-
var version = "10.2.0-alpha.
|
|
2385
|
+
var version = "10.2.0-alpha.13";
|
|
2386
2386
|
|
|
2387
2387
|
// src/manager-api/modules/versions.ts
|
|
2388
2388
|
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_xc3mu1pf9x from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_xc3mu1pf9x from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_xc3mu1pf9x from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_xc3mu1pf9x.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_xc3mu1pf9x.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_xc3mu1pf9x.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-NL75DTGM.js";
|
|
20
|
+
import "../_node-chunks/chunk-KXFFKIVX.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);
|