storybook 9.2.0-alpha.1 → 9.2.0-alpha.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/bin/index.cjs +43 -43
- package/dist/bin/index.js +43 -43
- package/dist/cli/bin/index.cjs +1 -1
- package/dist/cli/bin/index.js +1 -1
- package/dist/common/index.cjs +61 -61
- package/dist/common/index.js +51 -51
- package/dist/core-server/index.cjs +1 -1
- package/dist/core-server/index.js +1 -1
- package/dist/manager/globals-runtime.js +1 -1
- package/dist/manager-api/index.cjs +1 -1
- package/dist/manager-api/index.d.ts +534 -8
- package/dist/manager-api/index.js +1 -1
- package/dist/telemetry/index.cjs +1 -1
- package/dist/telemetry/index.js +1 -1
- package/package.json +1 -1
package/dist/bin/index.cjs
CHANGED
|
@@ -24,49 +24,49 @@ var n = require("node:child_process"), b = require("node:fs"), s = require("node
|
|
|
24
24
|
|
|
25
25
|
// src/common/versions.ts
|
|
26
26
|
var p = {
|
|
27
|
-
"@storybook/addon-a11y": "9.2.0-alpha.
|
|
28
|
-
"@storybook/addon-docs": "9.2.0-alpha.
|
|
29
|
-
"@storybook/addon-jest": "9.2.0-alpha.
|
|
30
|
-
"@storybook/addon-links": "9.2.0-alpha.
|
|
31
|
-
"@storybook/addon-onboarding": "9.2.0-alpha.
|
|
32
|
-
"storybook-addon-pseudo-states": "9.2.0-alpha.
|
|
33
|
-
"@storybook/addon-themes": "9.2.0-alpha.
|
|
34
|
-
"@storybook/addon-vitest": "9.2.0-alpha.
|
|
35
|
-
"@storybook/builder-vite": "9.2.0-alpha.
|
|
36
|
-
"@storybook/builder-webpack5": "9.2.0-alpha.
|
|
37
|
-
storybook: "9.2.0-alpha.
|
|
38
|
-
"@storybook/angular": "9.2.0-alpha.
|
|
39
|
-
"@storybook/ember": "9.2.0-alpha.
|
|
40
|
-
"@storybook/html-vite": "9.2.0-alpha.
|
|
41
|
-
"@storybook/nextjs": "9.2.0-alpha.
|
|
42
|
-
"@storybook/nextjs-vite": "9.2.0-alpha.
|
|
43
|
-
"@storybook/preact-vite": "9.2.0-alpha.
|
|
44
|
-
"@storybook/react-native-web-vite": "9.2.0-alpha.
|
|
45
|
-
"@storybook/react-vite": "9.2.0-alpha.
|
|
46
|
-
"@storybook/react-webpack5": "9.2.0-alpha.
|
|
47
|
-
"@storybook/server-webpack5": "9.2.0-alpha.
|
|
48
|
-
"@storybook/svelte-vite": "9.2.0-alpha.
|
|
49
|
-
"@storybook/sveltekit": "9.2.0-alpha.
|
|
50
|
-
"@storybook/vue3-vite": "9.2.0-alpha.
|
|
51
|
-
"@storybook/web-components-vite": "9.2.0-alpha.
|
|
52
|
-
sb: "9.2.0-alpha.
|
|
53
|
-
"@storybook/cli": "9.2.0-alpha.
|
|
54
|
-
"@storybook/codemod": "9.2.0-alpha.
|
|
55
|
-
"@storybook/core-webpack": "9.2.0-alpha.
|
|
56
|
-
"create-storybook": "9.2.0-alpha.
|
|
57
|
-
"@storybook/csf-plugin": "9.2.0-alpha.
|
|
58
|
-
"eslint-plugin-storybook": "9.2.0-alpha.
|
|
59
|
-
"@storybook/react-dom-shim": "9.2.0-alpha.
|
|
60
|
-
"@storybook/preset-create-react-app": "9.2.0-alpha.
|
|
61
|
-
"@storybook/preset-react-webpack": "9.2.0-alpha.
|
|
62
|
-
"@storybook/preset-server-webpack": "9.2.0-alpha.
|
|
63
|
-
"@storybook/html": "9.2.0-alpha.
|
|
64
|
-
"@storybook/preact": "9.2.0-alpha.
|
|
65
|
-
"@storybook/react": "9.2.0-alpha.
|
|
66
|
-
"@storybook/server": "9.2.0-alpha.
|
|
67
|
-
"@storybook/svelte": "9.2.0-alpha.
|
|
68
|
-
"@storybook/vue3": "9.2.0-alpha.
|
|
69
|
-
"@storybook/web-components": "9.2.0-alpha.
|
|
27
|
+
"@storybook/addon-a11y": "9.2.0-alpha.2",
|
|
28
|
+
"@storybook/addon-docs": "9.2.0-alpha.2",
|
|
29
|
+
"@storybook/addon-jest": "9.2.0-alpha.2",
|
|
30
|
+
"@storybook/addon-links": "9.2.0-alpha.2",
|
|
31
|
+
"@storybook/addon-onboarding": "9.2.0-alpha.2",
|
|
32
|
+
"storybook-addon-pseudo-states": "9.2.0-alpha.2",
|
|
33
|
+
"@storybook/addon-themes": "9.2.0-alpha.2",
|
|
34
|
+
"@storybook/addon-vitest": "9.2.0-alpha.2",
|
|
35
|
+
"@storybook/builder-vite": "9.2.0-alpha.2",
|
|
36
|
+
"@storybook/builder-webpack5": "9.2.0-alpha.2",
|
|
37
|
+
storybook: "9.2.0-alpha.2",
|
|
38
|
+
"@storybook/angular": "9.2.0-alpha.2",
|
|
39
|
+
"@storybook/ember": "9.2.0-alpha.2",
|
|
40
|
+
"@storybook/html-vite": "9.2.0-alpha.2",
|
|
41
|
+
"@storybook/nextjs": "9.2.0-alpha.2",
|
|
42
|
+
"@storybook/nextjs-vite": "9.2.0-alpha.2",
|
|
43
|
+
"@storybook/preact-vite": "9.2.0-alpha.2",
|
|
44
|
+
"@storybook/react-native-web-vite": "9.2.0-alpha.2",
|
|
45
|
+
"@storybook/react-vite": "9.2.0-alpha.2",
|
|
46
|
+
"@storybook/react-webpack5": "9.2.0-alpha.2",
|
|
47
|
+
"@storybook/server-webpack5": "9.2.0-alpha.2",
|
|
48
|
+
"@storybook/svelte-vite": "9.2.0-alpha.2",
|
|
49
|
+
"@storybook/sveltekit": "9.2.0-alpha.2",
|
|
50
|
+
"@storybook/vue3-vite": "9.2.0-alpha.2",
|
|
51
|
+
"@storybook/web-components-vite": "9.2.0-alpha.2",
|
|
52
|
+
sb: "9.2.0-alpha.2",
|
|
53
|
+
"@storybook/cli": "9.2.0-alpha.2",
|
|
54
|
+
"@storybook/codemod": "9.2.0-alpha.2",
|
|
55
|
+
"@storybook/core-webpack": "9.2.0-alpha.2",
|
|
56
|
+
"create-storybook": "9.2.0-alpha.2",
|
|
57
|
+
"@storybook/csf-plugin": "9.2.0-alpha.2",
|
|
58
|
+
"eslint-plugin-storybook": "9.2.0-alpha.2",
|
|
59
|
+
"@storybook/react-dom-shim": "9.2.0-alpha.2",
|
|
60
|
+
"@storybook/preset-create-react-app": "9.2.0-alpha.2",
|
|
61
|
+
"@storybook/preset-react-webpack": "9.2.0-alpha.2",
|
|
62
|
+
"@storybook/preset-server-webpack": "9.2.0-alpha.2",
|
|
63
|
+
"@storybook/html": "9.2.0-alpha.2",
|
|
64
|
+
"@storybook/preact": "9.2.0-alpha.2",
|
|
65
|
+
"@storybook/react": "9.2.0-alpha.2",
|
|
66
|
+
"@storybook/server": "9.2.0-alpha.2",
|
|
67
|
+
"@storybook/svelte": "9.2.0-alpha.2",
|
|
68
|
+
"@storybook/vue3": "9.2.0-alpha.2",
|
|
69
|
+
"@storybook/web-components": "9.2.0-alpha.2"
|
|
70
70
|
};
|
|
71
71
|
|
|
72
72
|
// src/bin/index.ts
|
package/dist/bin/index.js
CHANGED
|
@@ -18,49 +18,49 @@ import { dirname as b, join as i } from "node:path";
|
|
|
18
18
|
|
|
19
19
|
// src/common/versions.ts
|
|
20
20
|
var t = {
|
|
21
|
-
"@storybook/addon-a11y": "9.2.0-alpha.
|
|
22
|
-
"@storybook/addon-docs": "9.2.0-alpha.
|
|
23
|
-
"@storybook/addon-jest": "9.2.0-alpha.
|
|
24
|
-
"@storybook/addon-links": "9.2.0-alpha.
|
|
25
|
-
"@storybook/addon-onboarding": "9.2.0-alpha.
|
|
26
|
-
"storybook-addon-pseudo-states": "9.2.0-alpha.
|
|
27
|
-
"@storybook/addon-themes": "9.2.0-alpha.
|
|
28
|
-
"@storybook/addon-vitest": "9.2.0-alpha.
|
|
29
|
-
"@storybook/builder-vite": "9.2.0-alpha.
|
|
30
|
-
"@storybook/builder-webpack5": "9.2.0-alpha.
|
|
31
|
-
storybook: "9.2.0-alpha.
|
|
32
|
-
"@storybook/angular": "9.2.0-alpha.
|
|
33
|
-
"@storybook/ember": "9.2.0-alpha.
|
|
34
|
-
"@storybook/html-vite": "9.2.0-alpha.
|
|
35
|
-
"@storybook/nextjs": "9.2.0-alpha.
|
|
36
|
-
"@storybook/nextjs-vite": "9.2.0-alpha.
|
|
37
|
-
"@storybook/preact-vite": "9.2.0-alpha.
|
|
38
|
-
"@storybook/react-native-web-vite": "9.2.0-alpha.
|
|
39
|
-
"@storybook/react-vite": "9.2.0-alpha.
|
|
40
|
-
"@storybook/react-webpack5": "9.2.0-alpha.
|
|
41
|
-
"@storybook/server-webpack5": "9.2.0-alpha.
|
|
42
|
-
"@storybook/svelte-vite": "9.2.0-alpha.
|
|
43
|
-
"@storybook/sveltekit": "9.2.0-alpha.
|
|
44
|
-
"@storybook/vue3-vite": "9.2.0-alpha.
|
|
45
|
-
"@storybook/web-components-vite": "9.2.0-alpha.
|
|
46
|
-
sb: "9.2.0-alpha.
|
|
47
|
-
"@storybook/cli": "9.2.0-alpha.
|
|
48
|
-
"@storybook/codemod": "9.2.0-alpha.
|
|
49
|
-
"@storybook/core-webpack": "9.2.0-alpha.
|
|
50
|
-
"create-storybook": "9.2.0-alpha.
|
|
51
|
-
"@storybook/csf-plugin": "9.2.0-alpha.
|
|
52
|
-
"eslint-plugin-storybook": "9.2.0-alpha.
|
|
53
|
-
"@storybook/react-dom-shim": "9.2.0-alpha.
|
|
54
|
-
"@storybook/preset-create-react-app": "9.2.0-alpha.
|
|
55
|
-
"@storybook/preset-react-webpack": "9.2.0-alpha.
|
|
56
|
-
"@storybook/preset-server-webpack": "9.2.0-alpha.
|
|
57
|
-
"@storybook/html": "9.2.0-alpha.
|
|
58
|
-
"@storybook/preact": "9.2.0-alpha.
|
|
59
|
-
"@storybook/react": "9.2.0-alpha.
|
|
60
|
-
"@storybook/server": "9.2.0-alpha.
|
|
61
|
-
"@storybook/svelte": "9.2.0-alpha.
|
|
62
|
-
"@storybook/vue3": "9.2.0-alpha.
|
|
63
|
-
"@storybook/web-components": "9.2.0-alpha.
|
|
21
|
+
"@storybook/addon-a11y": "9.2.0-alpha.2",
|
|
22
|
+
"@storybook/addon-docs": "9.2.0-alpha.2",
|
|
23
|
+
"@storybook/addon-jest": "9.2.0-alpha.2",
|
|
24
|
+
"@storybook/addon-links": "9.2.0-alpha.2",
|
|
25
|
+
"@storybook/addon-onboarding": "9.2.0-alpha.2",
|
|
26
|
+
"storybook-addon-pseudo-states": "9.2.0-alpha.2",
|
|
27
|
+
"@storybook/addon-themes": "9.2.0-alpha.2",
|
|
28
|
+
"@storybook/addon-vitest": "9.2.0-alpha.2",
|
|
29
|
+
"@storybook/builder-vite": "9.2.0-alpha.2",
|
|
30
|
+
"@storybook/builder-webpack5": "9.2.0-alpha.2",
|
|
31
|
+
storybook: "9.2.0-alpha.2",
|
|
32
|
+
"@storybook/angular": "9.2.0-alpha.2",
|
|
33
|
+
"@storybook/ember": "9.2.0-alpha.2",
|
|
34
|
+
"@storybook/html-vite": "9.2.0-alpha.2",
|
|
35
|
+
"@storybook/nextjs": "9.2.0-alpha.2",
|
|
36
|
+
"@storybook/nextjs-vite": "9.2.0-alpha.2",
|
|
37
|
+
"@storybook/preact-vite": "9.2.0-alpha.2",
|
|
38
|
+
"@storybook/react-native-web-vite": "9.2.0-alpha.2",
|
|
39
|
+
"@storybook/react-vite": "9.2.0-alpha.2",
|
|
40
|
+
"@storybook/react-webpack5": "9.2.0-alpha.2",
|
|
41
|
+
"@storybook/server-webpack5": "9.2.0-alpha.2",
|
|
42
|
+
"@storybook/svelte-vite": "9.2.0-alpha.2",
|
|
43
|
+
"@storybook/sveltekit": "9.2.0-alpha.2",
|
|
44
|
+
"@storybook/vue3-vite": "9.2.0-alpha.2",
|
|
45
|
+
"@storybook/web-components-vite": "9.2.0-alpha.2",
|
|
46
|
+
sb: "9.2.0-alpha.2",
|
|
47
|
+
"@storybook/cli": "9.2.0-alpha.2",
|
|
48
|
+
"@storybook/codemod": "9.2.0-alpha.2",
|
|
49
|
+
"@storybook/core-webpack": "9.2.0-alpha.2",
|
|
50
|
+
"create-storybook": "9.2.0-alpha.2",
|
|
51
|
+
"@storybook/csf-plugin": "9.2.0-alpha.2",
|
|
52
|
+
"eslint-plugin-storybook": "9.2.0-alpha.2",
|
|
53
|
+
"@storybook/react-dom-shim": "9.2.0-alpha.2",
|
|
54
|
+
"@storybook/preset-create-react-app": "9.2.0-alpha.2",
|
|
55
|
+
"@storybook/preset-react-webpack": "9.2.0-alpha.2",
|
|
56
|
+
"@storybook/preset-server-webpack": "9.2.0-alpha.2",
|
|
57
|
+
"@storybook/html": "9.2.0-alpha.2",
|
|
58
|
+
"@storybook/preact": "9.2.0-alpha.2",
|
|
59
|
+
"@storybook/react": "9.2.0-alpha.2",
|
|
60
|
+
"@storybook/server": "9.2.0-alpha.2",
|
|
61
|
+
"@storybook/svelte": "9.2.0-alpha.2",
|
|
62
|
+
"@storybook/vue3": "9.2.0-alpha.2",
|
|
63
|
+
"@storybook/web-components": "9.2.0-alpha.2"
|
|
64
64
|
};
|
|
65
65
|
|
|
66
66
|
// src/bin/index.ts
|
package/dist/cli/bin/index.cjs
CHANGED
|
@@ -5830,7 +5830,7 @@ function J(s, e) {
|
|
|
5830
5830
|
d(J, "invariant");
|
|
5831
5831
|
|
|
5832
5832
|
// package.json
|
|
5833
|
-
var Ct = "9.2.0-alpha.
|
|
5833
|
+
var Ct = "9.2.0-alpha.2";
|
|
5834
5834
|
|
|
5835
5835
|
// src/cli/build.ts
|
|
5836
5836
|
var rr = require("storybook/internal/common"), Ue = require("storybook/internal/core-server");
|
package/dist/cli/bin/index.js
CHANGED
package/dist/common/index.cjs
CHANGED
|
@@ -254,7 +254,7 @@ var Ya = m((WH, xa) => {
|
|
|
254
254
|
});
|
|
255
255
|
|
|
256
256
|
// ../node_modules/common-path-prefix/index.js
|
|
257
|
-
var Tu = m((
|
|
257
|
+
var Tu = m((Cj, Ou) => {
|
|
258
258
|
"use strict";
|
|
259
259
|
var { sep: gN } = require("path"), aN = /* @__PURE__ */ s((t) => {
|
|
260
260
|
for (let A of t) {
|
|
@@ -331,7 +331,7 @@ var Ua, lr, _a = ce(() => {
|
|
|
331
331
|
});
|
|
332
332
|
|
|
333
333
|
// ../node_modules/isexe/windows.js
|
|
334
|
-
var EB = m((
|
|
334
|
+
var EB = m((Vj, lB) => {
|
|
335
335
|
lB.exports = hB;
|
|
336
336
|
hB.sync = kN;
|
|
337
337
|
var cB = require("fs");
|
|
@@ -364,7 +364,7 @@ var EB = m((V1, lB) => {
|
|
|
364
364
|
});
|
|
365
365
|
|
|
366
366
|
// ../node_modules/isexe/mode.js
|
|
367
|
-
var dB = m(($
|
|
367
|
+
var dB = m(($j, fB) => {
|
|
368
368
|
fB.exports = BB;
|
|
369
369
|
BB.sync = bN;
|
|
370
370
|
var uB = require("fs");
|
|
@@ -392,8 +392,8 @@ var dB = m(($1, fB) => {
|
|
|
392
392
|
});
|
|
393
393
|
|
|
394
394
|
// ../node_modules/isexe/index.js
|
|
395
|
-
var wB = m((
|
|
396
|
-
var
|
|
395
|
+
var wB = m((e1, pB) => {
|
|
396
|
+
var A1 = require("fs"), xn;
|
|
397
397
|
process.platform === "win32" || global.TESTING_WINDOWS ? xn = EB() : xn = dB();
|
|
398
398
|
pB.exports = Wa;
|
|
399
399
|
Wa.sync = MN;
|
|
@@ -425,7 +425,7 @@ var wB = m((ej, pB) => {
|
|
|
425
425
|
});
|
|
426
426
|
|
|
427
427
|
// ../node_modules/which/which.js
|
|
428
|
-
var kB = m((
|
|
428
|
+
var kB = m((r1, FB) => {
|
|
429
429
|
var ii = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys", mB = require("path"), RN = ii ?
|
|
430
430
|
";" : ":", yB = wB(), DB = /* @__PURE__ */ s((t) => Object.assign(new Error(`not found: ${t}`), { code: "ENOENT" }), "getNotFoundError"), SB = /* @__PURE__ */ s(
|
|
431
431
|
(t, A) => {
|
|
@@ -489,7 +489,7 @@ var kB = m((rj, FB) => {
|
|
|
489
489
|
});
|
|
490
490
|
|
|
491
491
|
// ../node_modules/path-key/index.js
|
|
492
|
-
var NB = m((
|
|
492
|
+
var NB = m((s1, Va) => {
|
|
493
493
|
"use strict";
|
|
494
494
|
var bB = /* @__PURE__ */ s((t = {}) => {
|
|
495
495
|
let A = t.env || process.env;
|
|
@@ -500,7 +500,7 @@ var NB = m((sj, Va) => {
|
|
|
500
500
|
});
|
|
501
501
|
|
|
502
502
|
// ../node_modules/cross-spawn/lib/util/resolveCommand.js
|
|
503
|
-
var LB = m((
|
|
503
|
+
var LB = m((o1, vB) => {
|
|
504
504
|
"use strict";
|
|
505
505
|
var MB = require("path"), LN = kB(), xN = NB();
|
|
506
506
|
function RB(t, A) {
|
|
@@ -532,7 +532,7 @@ var LB = m((oj, vB) => {
|
|
|
532
532
|
});
|
|
533
533
|
|
|
534
534
|
// ../node_modules/cross-spawn/lib/util/escape.js
|
|
535
|
-
var xB = m((
|
|
535
|
+
var xB = m((a1, $a) => {
|
|
536
536
|
"use strict";
|
|
537
537
|
var Xa = /([()\][%!^"`<>&|;, *?])/g;
|
|
538
538
|
function PN(t) {
|
|
@@ -549,13 +549,13 @@ var xB = m((aj, $a) => {
|
|
|
549
549
|
});
|
|
550
550
|
|
|
551
551
|
// ../node_modules/shebang-regex/index.js
|
|
552
|
-
var PB = m((
|
|
552
|
+
var PB = m((c1, YB) => {
|
|
553
553
|
"use strict";
|
|
554
554
|
YB.exports = /^#!(.*)/;
|
|
555
555
|
});
|
|
556
556
|
|
|
557
557
|
// ../node_modules/shebang-command/index.js
|
|
558
|
-
var _B = m((
|
|
558
|
+
var _B = m((I1, UB) => {
|
|
559
559
|
"use strict";
|
|
560
560
|
var _N = PB();
|
|
561
561
|
UB.exports = (t = "") => {
|
|
@@ -568,7 +568,7 @@ var _B = m((Ij, UB) => {
|
|
|
568
568
|
});
|
|
569
569
|
|
|
570
570
|
// ../node_modules/cross-spawn/lib/util/readShebang.js
|
|
571
|
-
var JB = m((
|
|
571
|
+
var JB = m((h1, GB) => {
|
|
572
572
|
"use strict";
|
|
573
573
|
var Za = require("fs"), GN = _B();
|
|
574
574
|
function JN(t) {
|
|
@@ -584,7 +584,7 @@ var JB = m((hj, GB) => {
|
|
|
584
584
|
});
|
|
585
585
|
|
|
586
586
|
// ../node_modules/cross-spawn/lib/parse.js
|
|
587
|
-
var jB = m((
|
|
587
|
+
var jB = m((E1, HB) => {
|
|
588
588
|
"use strict";
|
|
589
589
|
var ON = require("path"), OB = LB(), TB = xB(), TN = JB(), HN = process.platform === "win32", jN = /\.(?:com|exe)$/i, qN = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
|
|
590
590
|
function zN(t) {
|
|
@@ -625,7 +625,7 @@ var jB = m((Ej, HB) => {
|
|
|
625
625
|
});
|
|
626
626
|
|
|
627
627
|
// ../node_modules/cross-spawn/lib/enoent.js
|
|
628
|
-
var WB = m((
|
|
628
|
+
var WB = m((B1, zB) => {
|
|
629
629
|
"use strict";
|
|
630
630
|
var AC = process.platform === "win32";
|
|
631
631
|
function eC(t, A) {
|
|
@@ -669,7 +669,7 @@ var WB = m((Bj, zB) => {
|
|
|
669
669
|
});
|
|
670
670
|
|
|
671
671
|
// ../node_modules/cross-spawn/index.js
|
|
672
|
-
var iC = m((
|
|
672
|
+
var iC = m((f1, si) => {
|
|
673
673
|
"use strict";
|
|
674
674
|
var VB = require("child_process"), tC = jB(), rC = WB();
|
|
675
675
|
function XB(t, A, e) {
|
|
@@ -18707,49 +18707,49 @@ module.exports = de(hO);
|
|
|
18707
18707
|
|
|
18708
18708
|
// src/common/versions.ts
|
|
18709
18709
|
var Ve = {
|
|
18710
|
-
"@storybook/addon-a11y": "9.2.0-alpha.
|
|
18711
|
-
"@storybook/addon-docs": "9.2.0-alpha.
|
|
18712
|
-
"@storybook/addon-jest": "9.2.0-alpha.
|
|
18713
|
-
"@storybook/addon-links": "9.2.0-alpha.
|
|
18714
|
-
"@storybook/addon-onboarding": "9.2.0-alpha.
|
|
18715
|
-
"storybook-addon-pseudo-states": "9.2.0-alpha.
|
|
18716
|
-
"@storybook/addon-themes": "9.2.0-alpha.
|
|
18717
|
-
"@storybook/addon-vitest": "9.2.0-alpha.
|
|
18718
|
-
"@storybook/builder-vite": "9.2.0-alpha.
|
|
18719
|
-
"@storybook/builder-webpack5": "9.2.0-alpha.
|
|
18720
|
-
storybook: "9.2.0-alpha.
|
|
18721
|
-
"@storybook/angular": "9.2.0-alpha.
|
|
18722
|
-
"@storybook/ember": "9.2.0-alpha.
|
|
18723
|
-
"@storybook/html-vite": "9.2.0-alpha.
|
|
18724
|
-
"@storybook/nextjs": "9.2.0-alpha.
|
|
18725
|
-
"@storybook/nextjs-vite": "9.2.0-alpha.
|
|
18726
|
-
"@storybook/preact-vite": "9.2.0-alpha.
|
|
18727
|
-
"@storybook/react-native-web-vite": "9.2.0-alpha.
|
|
18728
|
-
"@storybook/react-vite": "9.2.0-alpha.
|
|
18729
|
-
"@storybook/react-webpack5": "9.2.0-alpha.
|
|
18730
|
-
"@storybook/server-webpack5": "9.2.0-alpha.
|
|
18731
|
-
"@storybook/svelte-vite": "9.2.0-alpha.
|
|
18732
|
-
"@storybook/sveltekit": "9.2.0-alpha.
|
|
18733
|
-
"@storybook/vue3-vite": "9.2.0-alpha.
|
|
18734
|
-
"@storybook/web-components-vite": "9.2.0-alpha.
|
|
18735
|
-
sb: "9.2.0-alpha.
|
|
18736
|
-
"@storybook/cli": "9.2.0-alpha.
|
|
18737
|
-
"@storybook/codemod": "9.2.0-alpha.
|
|
18738
|
-
"@storybook/core-webpack": "9.2.0-alpha.
|
|
18739
|
-
"create-storybook": "9.2.0-alpha.
|
|
18740
|
-
"@storybook/csf-plugin": "9.2.0-alpha.
|
|
18741
|
-
"eslint-plugin-storybook": "9.2.0-alpha.
|
|
18742
|
-
"@storybook/react-dom-shim": "9.2.0-alpha.
|
|
18743
|
-
"@storybook/preset-create-react-app": "9.2.0-alpha.
|
|
18744
|
-
"@storybook/preset-react-webpack": "9.2.0-alpha.
|
|
18745
|
-
"@storybook/preset-server-webpack": "9.2.0-alpha.
|
|
18746
|
-
"@storybook/html": "9.2.0-alpha.
|
|
18747
|
-
"@storybook/preact": "9.2.0-alpha.
|
|
18748
|
-
"@storybook/react": "9.2.0-alpha.
|
|
18749
|
-
"@storybook/server": "9.2.0-alpha.
|
|
18750
|
-
"@storybook/svelte": "9.2.0-alpha.
|
|
18751
|
-
"@storybook/vue3": "9.2.0-alpha.
|
|
18752
|
-
"@storybook/web-components": "9.2.0-alpha.
|
|
18710
|
+
"@storybook/addon-a11y": "9.2.0-alpha.2",
|
|
18711
|
+
"@storybook/addon-docs": "9.2.0-alpha.2",
|
|
18712
|
+
"@storybook/addon-jest": "9.2.0-alpha.2",
|
|
18713
|
+
"@storybook/addon-links": "9.2.0-alpha.2",
|
|
18714
|
+
"@storybook/addon-onboarding": "9.2.0-alpha.2",
|
|
18715
|
+
"storybook-addon-pseudo-states": "9.2.0-alpha.2",
|
|
18716
|
+
"@storybook/addon-themes": "9.2.0-alpha.2",
|
|
18717
|
+
"@storybook/addon-vitest": "9.2.0-alpha.2",
|
|
18718
|
+
"@storybook/builder-vite": "9.2.0-alpha.2",
|
|
18719
|
+
"@storybook/builder-webpack5": "9.2.0-alpha.2",
|
|
18720
|
+
storybook: "9.2.0-alpha.2",
|
|
18721
|
+
"@storybook/angular": "9.2.0-alpha.2",
|
|
18722
|
+
"@storybook/ember": "9.2.0-alpha.2",
|
|
18723
|
+
"@storybook/html-vite": "9.2.0-alpha.2",
|
|
18724
|
+
"@storybook/nextjs": "9.2.0-alpha.2",
|
|
18725
|
+
"@storybook/nextjs-vite": "9.2.0-alpha.2",
|
|
18726
|
+
"@storybook/preact-vite": "9.2.0-alpha.2",
|
|
18727
|
+
"@storybook/react-native-web-vite": "9.2.0-alpha.2",
|
|
18728
|
+
"@storybook/react-vite": "9.2.0-alpha.2",
|
|
18729
|
+
"@storybook/react-webpack5": "9.2.0-alpha.2",
|
|
18730
|
+
"@storybook/server-webpack5": "9.2.0-alpha.2",
|
|
18731
|
+
"@storybook/svelte-vite": "9.2.0-alpha.2",
|
|
18732
|
+
"@storybook/sveltekit": "9.2.0-alpha.2",
|
|
18733
|
+
"@storybook/vue3-vite": "9.2.0-alpha.2",
|
|
18734
|
+
"@storybook/web-components-vite": "9.2.0-alpha.2",
|
|
18735
|
+
sb: "9.2.0-alpha.2",
|
|
18736
|
+
"@storybook/cli": "9.2.0-alpha.2",
|
|
18737
|
+
"@storybook/codemod": "9.2.0-alpha.2",
|
|
18738
|
+
"@storybook/core-webpack": "9.2.0-alpha.2",
|
|
18739
|
+
"create-storybook": "9.2.0-alpha.2",
|
|
18740
|
+
"@storybook/csf-plugin": "9.2.0-alpha.2",
|
|
18741
|
+
"eslint-plugin-storybook": "9.2.0-alpha.2",
|
|
18742
|
+
"@storybook/react-dom-shim": "9.2.0-alpha.2",
|
|
18743
|
+
"@storybook/preset-create-react-app": "9.2.0-alpha.2",
|
|
18744
|
+
"@storybook/preset-react-webpack": "9.2.0-alpha.2",
|
|
18745
|
+
"@storybook/preset-server-webpack": "9.2.0-alpha.2",
|
|
18746
|
+
"@storybook/html": "9.2.0-alpha.2",
|
|
18747
|
+
"@storybook/preact": "9.2.0-alpha.2",
|
|
18748
|
+
"@storybook/react": "9.2.0-alpha.2",
|
|
18749
|
+
"@storybook/server": "9.2.0-alpha.2",
|
|
18750
|
+
"@storybook/svelte": "9.2.0-alpha.2",
|
|
18751
|
+
"@storybook/vue3": "9.2.0-alpha.2",
|
|
18752
|
+
"@storybook/web-components": "9.2.0-alpha.2"
|
|
18753
18753
|
};
|
|
18754
18754
|
|
|
18755
18755
|
// src/common/presets.ts
|
|
@@ -24526,7 +24526,7 @@ var IM = /* @__PURE__ */ s(() => {
|
|
|
24526
24526
|
}, "getSignalByNumber"), uM = /* @__PURE__ */ s((t, A) => {
|
|
24527
24527
|
let e = A.find(({ name: r }) => sQ.constants.signals[r] === t);
|
|
24528
24528
|
return e !== void 0 ? e : A.find((r) => r.number === t);
|
|
24529
|
-
}, "findSignalByNumber"),
|
|
24529
|
+
}, "findSignalByNumber"), J1 = lM();
|
|
24530
24530
|
|
|
24531
24531
|
// node_modules/execa/lib/error.js
|
|
24532
24532
|
var BM = /* @__PURE__ */ s(({ timedOut: t, timeout: A, errorCode: e, signal: r, signalDescription: i, exitCode: n, isCanceled: o }) => t ? `\
|
|
@@ -24757,7 +24757,7 @@ unction", "processOk"), CC = Symbol.for("signal-exit emitter"), cC = globalThis,
|
|
|
24757
24757
|
*
|
|
24758
24758
|
* @internal
|
|
24759
24759
|
*/
|
|
24760
|
-
load: $
|
|
24760
|
+
load: $1,
|
|
24761
24761
|
/**
|
|
24762
24762
|
* Unload the listeners. Likely you never need to call this, unless
|
|
24763
24763
|
* doing a rather deep integration with signal-exit functionality.
|
|
@@ -24765,7 +24765,7 @@ unction", "processOk"), CC = Symbol.for("signal-exit emitter"), cC = globalThis,
|
|
|
24765
24765
|
*
|
|
24766
24766
|
* @internal
|
|
24767
24767
|
*/
|
|
24768
|
-
unload:
|
|
24768
|
+
unload: Z1
|
|
24769
24769
|
} = dM(_n(EC) ? new lC(EC) : new hC());
|
|
24770
24770
|
|
|
24771
24771
|
// node_modules/execa/lib/kill.js
|
package/dist/common/index.js
CHANGED
|
@@ -229,7 +229,7 @@ var Rr = Ie(() => {
|
|
|
229
229
|
});
|
|
230
230
|
|
|
231
231
|
// ../node_modules/resolve-from/index.js
|
|
232
|
-
var Og = m((
|
|
232
|
+
var Og = m((Fj, Jg) => {
|
|
233
233
|
"use strict";
|
|
234
234
|
var QE = v("path"), fE = v("module"), Yk = v("fs"), dE = /* @__PURE__ */ s((t, A, e) => {
|
|
235
235
|
if (typeof t != "string")
|
|
@@ -265,7 +265,7 @@ var Og = m((F1, Jg) => {
|
|
|
265
265
|
});
|
|
266
266
|
|
|
267
267
|
// ../node_modules/common-path-prefix/index.js
|
|
268
|
-
var LE = m((
|
|
268
|
+
var LE = m((Zj, vE) => {
|
|
269
269
|
"use strict";
|
|
270
270
|
var { sep: eb } = v("path"), tb = /* @__PURE__ */ s((t) => {
|
|
271
271
|
for (let A of t) {
|
|
@@ -18634,49 +18634,49 @@ var IK = Ie(() => {
|
|
|
18634
18634
|
|
|
18635
18635
|
// src/common/versions.ts
|
|
18636
18636
|
var ot = {
|
|
18637
|
-
"@storybook/addon-a11y": "9.2.0-alpha.
|
|
18638
|
-
"@storybook/addon-docs": "9.2.0-alpha.
|
|
18639
|
-
"@storybook/addon-jest": "9.2.0-alpha.
|
|
18640
|
-
"@storybook/addon-links": "9.2.0-alpha.
|
|
18641
|
-
"@storybook/addon-onboarding": "9.2.0-alpha.
|
|
18642
|
-
"storybook-addon-pseudo-states": "9.2.0-alpha.
|
|
18643
|
-
"@storybook/addon-themes": "9.2.0-alpha.
|
|
18644
|
-
"@storybook/addon-vitest": "9.2.0-alpha.
|
|
18645
|
-
"@storybook/builder-vite": "9.2.0-alpha.
|
|
18646
|
-
"@storybook/builder-webpack5": "9.2.0-alpha.
|
|
18647
|
-
storybook: "9.2.0-alpha.
|
|
18648
|
-
"@storybook/angular": "9.2.0-alpha.
|
|
18649
|
-
"@storybook/ember": "9.2.0-alpha.
|
|
18650
|
-
"@storybook/html-vite": "9.2.0-alpha.
|
|
18651
|
-
"@storybook/nextjs": "9.2.0-alpha.
|
|
18652
|
-
"@storybook/nextjs-vite": "9.2.0-alpha.
|
|
18653
|
-
"@storybook/preact-vite": "9.2.0-alpha.
|
|
18654
|
-
"@storybook/react-native-web-vite": "9.2.0-alpha.
|
|
18655
|
-
"@storybook/react-vite": "9.2.0-alpha.
|
|
18656
|
-
"@storybook/react-webpack5": "9.2.0-alpha.
|
|
18657
|
-
"@storybook/server-webpack5": "9.2.0-alpha.
|
|
18658
|
-
"@storybook/svelte-vite": "9.2.0-alpha.
|
|
18659
|
-
"@storybook/sveltekit": "9.2.0-alpha.
|
|
18660
|
-
"@storybook/vue3-vite": "9.2.0-alpha.
|
|
18661
|
-
"@storybook/web-components-vite": "9.2.0-alpha.
|
|
18662
|
-
sb: "9.2.0-alpha.
|
|
18663
|
-
"@storybook/cli": "9.2.0-alpha.
|
|
18664
|
-
"@storybook/codemod": "9.2.0-alpha.
|
|
18665
|
-
"@storybook/core-webpack": "9.2.0-alpha.
|
|
18666
|
-
"create-storybook": "9.2.0-alpha.
|
|
18667
|
-
"@storybook/csf-plugin": "9.2.0-alpha.
|
|
18668
|
-
"eslint-plugin-storybook": "9.2.0-alpha.
|
|
18669
|
-
"@storybook/react-dom-shim": "9.2.0-alpha.
|
|
18670
|
-
"@storybook/preset-create-react-app": "9.2.0-alpha.
|
|
18671
|
-
"@storybook/preset-react-webpack": "9.2.0-alpha.
|
|
18672
|
-
"@storybook/preset-server-webpack": "9.2.0-alpha.
|
|
18673
|
-
"@storybook/html": "9.2.0-alpha.
|
|
18674
|
-
"@storybook/preact": "9.2.0-alpha.
|
|
18675
|
-
"@storybook/react": "9.2.0-alpha.
|
|
18676
|
-
"@storybook/server": "9.2.0-alpha.
|
|
18677
|
-
"@storybook/svelte": "9.2.0-alpha.
|
|
18678
|
-
"@storybook/vue3": "9.2.0-alpha.
|
|
18679
|
-
"@storybook/web-components": "9.2.0-alpha.
|
|
18637
|
+
"@storybook/addon-a11y": "9.2.0-alpha.2",
|
|
18638
|
+
"@storybook/addon-docs": "9.2.0-alpha.2",
|
|
18639
|
+
"@storybook/addon-jest": "9.2.0-alpha.2",
|
|
18640
|
+
"@storybook/addon-links": "9.2.0-alpha.2",
|
|
18641
|
+
"@storybook/addon-onboarding": "9.2.0-alpha.2",
|
|
18642
|
+
"storybook-addon-pseudo-states": "9.2.0-alpha.2",
|
|
18643
|
+
"@storybook/addon-themes": "9.2.0-alpha.2",
|
|
18644
|
+
"@storybook/addon-vitest": "9.2.0-alpha.2",
|
|
18645
|
+
"@storybook/builder-vite": "9.2.0-alpha.2",
|
|
18646
|
+
"@storybook/builder-webpack5": "9.2.0-alpha.2",
|
|
18647
|
+
storybook: "9.2.0-alpha.2",
|
|
18648
|
+
"@storybook/angular": "9.2.0-alpha.2",
|
|
18649
|
+
"@storybook/ember": "9.2.0-alpha.2",
|
|
18650
|
+
"@storybook/html-vite": "9.2.0-alpha.2",
|
|
18651
|
+
"@storybook/nextjs": "9.2.0-alpha.2",
|
|
18652
|
+
"@storybook/nextjs-vite": "9.2.0-alpha.2",
|
|
18653
|
+
"@storybook/preact-vite": "9.2.0-alpha.2",
|
|
18654
|
+
"@storybook/react-native-web-vite": "9.2.0-alpha.2",
|
|
18655
|
+
"@storybook/react-vite": "9.2.0-alpha.2",
|
|
18656
|
+
"@storybook/react-webpack5": "9.2.0-alpha.2",
|
|
18657
|
+
"@storybook/server-webpack5": "9.2.0-alpha.2",
|
|
18658
|
+
"@storybook/svelte-vite": "9.2.0-alpha.2",
|
|
18659
|
+
"@storybook/sveltekit": "9.2.0-alpha.2",
|
|
18660
|
+
"@storybook/vue3-vite": "9.2.0-alpha.2",
|
|
18661
|
+
"@storybook/web-components-vite": "9.2.0-alpha.2",
|
|
18662
|
+
sb: "9.2.0-alpha.2",
|
|
18663
|
+
"@storybook/cli": "9.2.0-alpha.2",
|
|
18664
|
+
"@storybook/codemod": "9.2.0-alpha.2",
|
|
18665
|
+
"@storybook/core-webpack": "9.2.0-alpha.2",
|
|
18666
|
+
"create-storybook": "9.2.0-alpha.2",
|
|
18667
|
+
"@storybook/csf-plugin": "9.2.0-alpha.2",
|
|
18668
|
+
"eslint-plugin-storybook": "9.2.0-alpha.2",
|
|
18669
|
+
"@storybook/react-dom-shim": "9.2.0-alpha.2",
|
|
18670
|
+
"@storybook/preset-create-react-app": "9.2.0-alpha.2",
|
|
18671
|
+
"@storybook/preset-react-webpack": "9.2.0-alpha.2",
|
|
18672
|
+
"@storybook/preset-server-webpack": "9.2.0-alpha.2",
|
|
18673
|
+
"@storybook/html": "9.2.0-alpha.2",
|
|
18674
|
+
"@storybook/preact": "9.2.0-alpha.2",
|
|
18675
|
+
"@storybook/react": "9.2.0-alpha.2",
|
|
18676
|
+
"@storybook/server": "9.2.0-alpha.2",
|
|
18677
|
+
"@storybook/svelte": "9.2.0-alpha.2",
|
|
18678
|
+
"@storybook/vue3": "9.2.0-alpha.2",
|
|
18679
|
+
"@storybook/web-components": "9.2.0-alpha.2"
|
|
18680
18680
|
};
|
|
18681
18681
|
|
|
18682
18682
|
// src/common/presets.ts
|
|
@@ -23599,7 +23599,7 @@ async function zk(t, A) {
|
|
|
23599
23599
|
};
|
|
23600
23600
|
}
|
|
23601
23601
|
s(zk, "getPresets");
|
|
23602
|
-
async function
|
|
23602
|
+
async function Oj(t) {
|
|
23603
23603
|
let { corePresets: A = [], overridePresets: e = [], ...r } = t, i = [
|
|
23604
23604
|
...A,
|
|
23605
23605
|
...BE(t),
|
|
@@ -23609,7 +23609,7 @@ async function O1(t) {
|
|
|
23609
23609
|
"Storybook now supports TypeScript natively. You can safely remove `@storybook/preset-typescript`."
|
|
23610
23610
|
), zk(n, r);
|
|
23611
23611
|
}
|
|
23612
|
-
s(
|
|
23612
|
+
s(Oj, "loadAllPresets");
|
|
23613
23613
|
|
|
23614
23614
|
// src/common/utils/file-cache.ts
|
|
23615
23615
|
import { createHash as kE, randomBytes as Wk } from "node:crypto";
|
|
@@ -23849,7 +23849,7 @@ function vr(t, {
|
|
|
23849
23849
|
s(vr, "locatePathSync");
|
|
23850
23850
|
|
|
23851
23851
|
// ../node_modules/pkg-dir/node_modules/path-exists/index.js
|
|
23852
|
-
import
|
|
23852
|
+
import B1, { promises as Q1 } from "node:fs";
|
|
23853
23853
|
|
|
23854
23854
|
// ../node_modules/pkg-dir/node_modules/find-up/index.js
|
|
23855
23855
|
var ob = /* @__PURE__ */ s((t) => t instanceof URL ? nb(t) : t, "toPath"), gb = Symbol("findUpStop");
|
|
@@ -23922,7 +23922,7 @@ function VE(t, A = "default") {
|
|
|
23922
23922
|
s(VE, "resolvePathInStorybookCache");
|
|
23923
23923
|
|
|
23924
23924
|
// src/common/utils/cache.ts
|
|
23925
|
-
var
|
|
23925
|
+
var j1 = jg({
|
|
23926
23926
|
basePath: VE("dev-server"),
|
|
23927
23927
|
ns: "storybook"
|
|
23928
23928
|
// Optional. A grouping namespace for items.
|
|
@@ -27858,7 +27858,7 @@ export {
|
|
|
27858
27858
|
pd as JsPackageManagerFactory,
|
|
27859
27859
|
fg as boost,
|
|
27860
27860
|
kW as builderPackages,
|
|
27861
|
-
|
|
27861
|
+
j1 as cache,
|
|
27862
27862
|
WW as checkAddonOrder,
|
|
27863
27863
|
y3 as codeLog,
|
|
27864
27864
|
w3 as commandLog,
|
|
@@ -27903,7 +27903,7 @@ export {
|
|
|
27903
27903
|
$B as isCorePackage,
|
|
27904
27904
|
W3 as isPreservingSymlinks,
|
|
27905
27905
|
HW as isSatelliteAddon,
|
|
27906
|
-
|
|
27906
|
+
Oj as loadAllPresets,
|
|
27907
27907
|
BE as loadCustomPresets,
|
|
27908
27908
|
g4 as loadEnvs,
|
|
27909
27909
|
o3 as loadMainConfig,
|
|
@@ -40054,7 +40054,7 @@ async function nT(e) {
|
|
|
40054
40054
|
s(nT, "findPackage");
|
|
40055
40055
|
|
|
40056
40056
|
// package.json
|
|
40057
|
-
var Vc = "9.2.0-alpha.
|
|
40057
|
+
var Vc = "9.2.0-alpha.2";
|
|
40058
40058
|
|
|
40059
40059
|
// src/cli/globalSettings.ts
|
|
40060
40060
|
var Kc = J(require("node:fs/promises"), 1), kT = require("node:os"), Qc = require("node:path"), TT = J(Bt(), 1), xo = J(_T(), 1);
|
|
@@ -40106,7 +40106,7 @@ async function K3(e) {
|
|
|
40106
40106
|
s(K3, "findPackage");
|
|
40107
40107
|
|
|
40108
40108
|
// package.json
|
|
40109
|
-
var sc = "9.2.0-alpha.
|
|
40109
|
+
var sc = "9.2.0-alpha.2";
|
|
40110
40110
|
|
|
40111
40111
|
// src/cli/globalSettings.ts
|
|
40112
40112
|
var Ck = fe(Tt(), 1), Xs = fe(Ek(), 1);
|
|
@@ -69014,7 +69014,7 @@ Ct();
|
|
|
69014
69014
|
var Ome = N(Wa(), 1), Nn = N(Pme(), 1);
|
|
69015
69015
|
|
|
69016
69016
|
// src/manager-api/version.ts
|
|
69017
|
-
var Tme = "9.2.0-alpha.
|
|
69017
|
+
var Tme = "9.2.0-alpha.2";
|
|
69018
69018
|
|
|
69019
69019
|
// src/manager-api/modules/versions.ts
|
|
69020
69020
|
var { VERSIONCHECK: bst } = Z, Ame = (0, Ome.default)(1)(() => {
|
|
@@ -4403,7 +4403,7 @@ U(wr, {
|
|
|
4403
4403
|
var kt = require("@storybook/global"), on = L(rr(), 1), $ = L(require("semver"), 1);
|
|
4404
4404
|
|
|
4405
4405
|
// src/manager-api/version.ts
|
|
4406
|
-
var tn = "9.2.0-alpha.
|
|
4406
|
+
var tn = "9.2.0-alpha.2";
|
|
4407
4407
|
|
|
4408
4408
|
// src/manager-api/modules/versions.ts
|
|
4409
4409
|
var { VERSIONCHECK: Qs } = kt.global, rn = (0, on.default)(1)(() => {
|
|
@@ -2,7 +2,7 @@ import React, { FC, ReactNode, ReactElement, Component } from 'react';
|
|
|
2
2
|
import { Channel, Listener as Listener$1 } from 'storybook/internal/channels';
|
|
3
3
|
export { Listener as ChannelListener } from 'storybook/internal/channels';
|
|
4
4
|
import { RouterData, NavigateOptions } from 'storybook/internal/router';
|
|
5
|
-
import { Addon_Types, Addon_TypesEnum, Addon_Collection, Addon_TypesMapping, Addon_BaseType, Addon_TestProviderType, Addon_PageType, Addon_WrapperType, Addon_Config, API_ProviderData, API_StateMerger, API_Provider, Globals, GlobalTypes, API_PanelPositions, API_Layout, API_LayoutCustomisations, API_UI, API_Notification, API_IframeRenderer, API_ComposedRef, API_SetRefData, API_ComposedRefUpdate, API_Refs, StoryId, API_Settings, API_HashEntry, API_ViewMode, API_LeafEntry, API_PreparedStoryIndex, API_StoryEntry, Args, API_IndexHash, API_DocsEntry, API_FilterFunction, API_LoadedRefData, API_Version, API_Versions, API_UnknownEntries, API_OptionsData, Parameters, ArgTypes } from 'storybook/internal/types';
|
|
5
|
+
import { Addon_Types, Addon_TypesEnum, Addon_Collection, Addon_TypesMapping, Addon_BaseType, Addon_TestProviderType, Addon_PageType, Addon_WrapperType, Addon_Config, API_ProviderData, API_StateMerger, API_Provider, Globals, GlobalTypes, API_PanelPositions, API_Layout, API_LayoutCustomisations, API_UI, API_Notification, API_IframeRenderer, API_ComposedRef, API_SetRefData, API_ComposedRefUpdate, API_Refs, StoryId, API_Settings, API_HashEntry, API_ViewMode, API_LeafEntry, API_PreparedStoryIndex, API_StoryEntry, Args, API_IndexHash, API_DocsEntry, API_FilterFunction, API_LoadedRefData, API_Version, API_Versions, API_UnknownEntries, API_OptionsData, Parameters, ArgTypes, NormalizedProjectAnnotations, ProjectAnnotations, ComposedStoryFn } from 'storybook/internal/types';
|
|
6
6
|
export { Addon_Type as Addon, API_ComponentEntry as ComponentEntry, API_ComposedRef as ComposedRef, API_DocsEntry as DocsEntry, API_GroupEntry as GroupEntry, API_HashEntry as HashEntry, API_IndexHash as IndexHash, API_LeafEntry as LeafEntry, API_Refs as Refs, API_RootEntry as RootEntry, API_IndexHash as StoriesHash, API_StoryEntry as StoryEntry } from 'storybook/internal/types';
|
|
7
7
|
import { ThemeVars } from 'storybook/theming';
|
|
8
8
|
import { toId, StoryId as StoryId$1 } from 'storybook/internal/csf';
|
|
@@ -388,7 +388,7 @@ interface SubState$5 {
|
|
|
388
388
|
|
|
389
389
|
declare const isMacLike: () => boolean;
|
|
390
390
|
declare const controlOrMetaSymbol: () => "⌘" | "ctrl";
|
|
391
|
-
declare const controlOrMetaKey: () => "
|
|
391
|
+
declare const controlOrMetaKey: () => "meta" | "control";
|
|
392
392
|
declare const optionOrAltSymbol: () => "⌥" | "alt";
|
|
393
393
|
declare const isShortcutTaken: (arr1: string[], arr2: string[]) => boolean;
|
|
394
394
|
type KeyboardEventLike = Pick<KeyboardEvent, 'altKey' | 'ctrlKey' | 'metaKey' | 'shiftKey' | 'key' | 'code' | 'keyCode' | 'preventDefault'>;
|
|
@@ -1222,13 +1222,531 @@ type StatusStoreByTypeId = StatusStore & {
|
|
|
1222
1222
|
};
|
|
1223
1223
|
type UseStatusStore = <T = StatusesByStoryIdAndTypeId>(selector?: (statuses: StatusesByStoryIdAndTypeId) => T) => T;
|
|
1224
1224
|
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1225
|
+
/**
|
|
1226
|
+
* Actions represent the type of change to a location value.
|
|
1227
|
+
*/
|
|
1228
|
+
declare enum Action {
|
|
1229
|
+
/**
|
|
1230
|
+
* A POP indicates a change to an arbitrary index in the history stack, such
|
|
1231
|
+
* as a back or forward navigation. It does not describe the direction of the
|
|
1232
|
+
* navigation, only that the current index changed.
|
|
1233
|
+
*
|
|
1234
|
+
* Note: This is the default action for newly created history objects.
|
|
1235
|
+
*/
|
|
1236
|
+
Pop = "POP",
|
|
1237
|
+
/**
|
|
1238
|
+
* A PUSH indicates a new entry being added to the history stack, such as when
|
|
1239
|
+
* a link is clicked and a new page loads. When this happens, all subsequent
|
|
1240
|
+
* entries in the stack are lost.
|
|
1241
|
+
*/
|
|
1242
|
+
Push = "PUSH",
|
|
1243
|
+
/**
|
|
1244
|
+
* A REPLACE indicates the entry at the current index in the history stack
|
|
1245
|
+
* being replaced by a new one.
|
|
1246
|
+
*/
|
|
1247
|
+
Replace = "REPLACE"
|
|
1248
|
+
}
|
|
1249
|
+
/**
|
|
1250
|
+
* The pathname, search, and hash values of a URL.
|
|
1251
|
+
*/
|
|
1252
|
+
interface Path {
|
|
1253
|
+
/**
|
|
1254
|
+
* A URL pathname, beginning with a /.
|
|
1255
|
+
*/
|
|
1256
|
+
pathname: string;
|
|
1257
|
+
/**
|
|
1258
|
+
* A URL search string, beginning with a ?.
|
|
1259
|
+
*/
|
|
1260
|
+
search: string;
|
|
1261
|
+
/**
|
|
1262
|
+
* A URL fragment identifier, beginning with a #.
|
|
1263
|
+
*/
|
|
1264
|
+
hash: string;
|
|
1265
|
+
}
|
|
1266
|
+
/**
|
|
1267
|
+
* An entry in a history stack. A location contains information about the
|
|
1268
|
+
* URL path, as well as possibly some arbitrary state and a key.
|
|
1269
|
+
*/
|
|
1270
|
+
interface Location extends Path {
|
|
1271
|
+
/**
|
|
1272
|
+
* A value of arbitrary data associated with this location.
|
|
1273
|
+
*/
|
|
1274
|
+
state: any;
|
|
1275
|
+
/**
|
|
1276
|
+
* A unique string associated with this location. May be used to safely store
|
|
1277
|
+
* and retrieve data in some other storage API, like `localStorage`.
|
|
1278
|
+
*
|
|
1279
|
+
* Note: This value is always "default" on the initial location.
|
|
1280
|
+
*/
|
|
1281
|
+
key: string;
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
/**
|
|
1285
|
+
* Map of routeId -> data returned from a loader/action/error
|
|
1286
|
+
*/
|
|
1287
|
+
interface RouteData {
|
|
1288
|
+
[routeId: string]: any;
|
|
1289
|
+
}
|
|
1290
|
+
declare enum ResultType {
|
|
1291
|
+
data = "data",
|
|
1292
|
+
deferred = "deferred",
|
|
1293
|
+
redirect = "redirect",
|
|
1294
|
+
error = "error"
|
|
1295
|
+
}
|
|
1296
|
+
/**
|
|
1297
|
+
* Successful result from a loader or action
|
|
1298
|
+
*/
|
|
1299
|
+
interface SuccessResult {
|
|
1300
|
+
type: ResultType.data;
|
|
1301
|
+
data: any;
|
|
1302
|
+
statusCode?: number;
|
|
1303
|
+
headers?: Headers;
|
|
1304
|
+
}
|
|
1305
|
+
/**
|
|
1306
|
+
* Successful defer() result from a loader or action
|
|
1307
|
+
*/
|
|
1308
|
+
interface DeferredResult {
|
|
1309
|
+
type: ResultType.deferred;
|
|
1310
|
+
deferredData: DeferredData;
|
|
1311
|
+
statusCode?: number;
|
|
1312
|
+
headers?: Headers;
|
|
1313
|
+
}
|
|
1314
|
+
/**
|
|
1315
|
+
* Redirect result from a loader or action
|
|
1316
|
+
*/
|
|
1317
|
+
interface RedirectResult {
|
|
1318
|
+
type: ResultType.redirect;
|
|
1319
|
+
status: number;
|
|
1320
|
+
location: string;
|
|
1321
|
+
revalidate: boolean;
|
|
1322
|
+
reloadDocument?: boolean;
|
|
1323
|
+
}
|
|
1324
|
+
/**
|
|
1325
|
+
* Unsuccessful result from a loader or action
|
|
1326
|
+
*/
|
|
1327
|
+
interface ErrorResult {
|
|
1328
|
+
type: ResultType.error;
|
|
1329
|
+
error: any;
|
|
1330
|
+
headers?: Headers;
|
|
1331
|
+
}
|
|
1332
|
+
/**
|
|
1333
|
+
* Result from a loader or action - potentially successful or unsuccessful
|
|
1334
|
+
*/
|
|
1335
|
+
type DataResult = SuccessResult | DeferredResult | RedirectResult | ErrorResult;
|
|
1336
|
+
type LowerCaseFormMethod = "get" | "post" | "put" | "patch" | "delete";
|
|
1337
|
+
type UpperCaseFormMethod = Uppercase<LowerCaseFormMethod>;
|
|
1338
|
+
/**
|
|
1339
|
+
* Active navigation/fetcher form methods are exposed in lowercase on the
|
|
1340
|
+
* RouterState
|
|
1341
|
+
*/
|
|
1342
|
+
type FormMethod = LowerCaseFormMethod;
|
|
1343
|
+
/**
|
|
1344
|
+
* In v7, active navigation/fetcher form methods are exposed in uppercase on the
|
|
1345
|
+
* RouterState. This is to align with the normalization done via fetch().
|
|
1346
|
+
*/
|
|
1347
|
+
type V7_FormMethod = UpperCaseFormMethod;
|
|
1348
|
+
type FormEncType = "application/x-www-form-urlencoded" | "multipart/form-data" | "application/json" | "text/plain";
|
|
1349
|
+
type JsonObject = {
|
|
1350
|
+
[Key in string]: JsonValue;
|
|
1351
|
+
} & {
|
|
1352
|
+
[Key in string]?: JsonValue | undefined;
|
|
1228
1353
|
};
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1354
|
+
type JsonArray = JsonValue[] | readonly JsonValue[];
|
|
1355
|
+
type JsonPrimitive = string | number | boolean | null;
|
|
1356
|
+
type JsonValue = JsonPrimitive | JsonObject | JsonArray;
|
|
1357
|
+
/**
|
|
1358
|
+
* @private
|
|
1359
|
+
* Internal interface to pass around for action submissions, not intended for
|
|
1360
|
+
* external consumption
|
|
1361
|
+
*/
|
|
1362
|
+
type Submission = {
|
|
1363
|
+
formMethod: FormMethod | V7_FormMethod;
|
|
1364
|
+
formAction: string;
|
|
1365
|
+
formEncType: FormEncType;
|
|
1366
|
+
formData: FormData;
|
|
1367
|
+
json: undefined;
|
|
1368
|
+
text: undefined;
|
|
1369
|
+
} | {
|
|
1370
|
+
formMethod: FormMethod | V7_FormMethod;
|
|
1371
|
+
formAction: string;
|
|
1372
|
+
formEncType: FormEncType;
|
|
1373
|
+
formData: undefined;
|
|
1374
|
+
json: JsonValue;
|
|
1375
|
+
text: undefined;
|
|
1376
|
+
} | {
|
|
1377
|
+
formMethod: FormMethod | V7_FormMethod;
|
|
1378
|
+
formAction: string;
|
|
1379
|
+
formEncType: FormEncType;
|
|
1380
|
+
formData: undefined;
|
|
1381
|
+
json: undefined;
|
|
1382
|
+
text: string;
|
|
1383
|
+
};
|
|
1384
|
+
/**
|
|
1385
|
+
* @private
|
|
1386
|
+
* Arguments passed to route loader/action functions. Same for now but we keep
|
|
1387
|
+
* this as a private implementation detail in case they diverge in the future.
|
|
1388
|
+
*/
|
|
1389
|
+
interface DataFunctionArgs {
|
|
1390
|
+
request: Request;
|
|
1391
|
+
params: Params;
|
|
1392
|
+
context?: any;
|
|
1393
|
+
}
|
|
1394
|
+
/**
|
|
1395
|
+
* Arguments passed to loader functions
|
|
1396
|
+
*/
|
|
1397
|
+
interface LoaderFunctionArgs extends DataFunctionArgs {
|
|
1398
|
+
}
|
|
1399
|
+
/**
|
|
1400
|
+
* Arguments passed to action functions
|
|
1401
|
+
*/
|
|
1402
|
+
interface ActionFunctionArgs extends DataFunctionArgs {
|
|
1403
|
+
}
|
|
1404
|
+
/**
|
|
1405
|
+
* Loaders and actions can return anything except `undefined` (`null` is a
|
|
1406
|
+
* valid return value if there is no data to return). Responses are preferred
|
|
1407
|
+
* and will ease any future migration to Remix
|
|
1408
|
+
*/
|
|
1409
|
+
type DataFunctionValue = Response | NonNullable<unknown> | null;
|
|
1410
|
+
/**
|
|
1411
|
+
* Route loader function signature
|
|
1412
|
+
*/
|
|
1413
|
+
interface LoaderFunction {
|
|
1414
|
+
(args: LoaderFunctionArgs): Promise<DataFunctionValue> | DataFunctionValue;
|
|
1415
|
+
}
|
|
1416
|
+
/**
|
|
1417
|
+
* Route action function signature
|
|
1418
|
+
*/
|
|
1419
|
+
interface ActionFunction {
|
|
1420
|
+
(args: ActionFunctionArgs): Promise<DataFunctionValue> | DataFunctionValue;
|
|
1421
|
+
}
|
|
1422
|
+
/**
|
|
1423
|
+
* Route shouldRevalidate function signature. This runs after any submission
|
|
1424
|
+
* (navigation or fetcher), so we flatten the navigation/fetcher submission
|
|
1425
|
+
* onto the arguments. It shouldn't matter whether it came from a navigation
|
|
1426
|
+
* or a fetcher, what really matters is the URLs and the formData since loaders
|
|
1427
|
+
* have to re-run based on the data models that were potentially mutated.
|
|
1428
|
+
*/
|
|
1429
|
+
interface ShouldRevalidateFunction {
|
|
1430
|
+
(args: {
|
|
1431
|
+
currentUrl: URL;
|
|
1432
|
+
currentParams: AgnosticDataRouteMatch["params"];
|
|
1433
|
+
nextUrl: URL;
|
|
1434
|
+
nextParams: AgnosticDataRouteMatch["params"];
|
|
1435
|
+
formMethod?: Submission["formMethod"];
|
|
1436
|
+
formAction?: Submission["formAction"];
|
|
1437
|
+
formEncType?: Submission["formEncType"];
|
|
1438
|
+
text?: Submission["text"];
|
|
1439
|
+
formData?: Submission["formData"];
|
|
1440
|
+
json?: Submission["json"];
|
|
1441
|
+
actionResult?: DataResult;
|
|
1442
|
+
defaultShouldRevalidate: boolean;
|
|
1443
|
+
}): boolean;
|
|
1444
|
+
}
|
|
1445
|
+
/**
|
|
1446
|
+
* Keys we cannot change from within a lazy() function. We spread all other keys
|
|
1447
|
+
* onto the route. Either they're meaningful to the router, or they'll get
|
|
1448
|
+
* ignored.
|
|
1449
|
+
*/
|
|
1450
|
+
type ImmutableRouteKey = "lazy" | "caseSensitive" | "path" | "id" | "index" | "children";
|
|
1451
|
+
type RequireOne<T, Key = keyof T> = Exclude<{
|
|
1452
|
+
[K in keyof T]: K extends Key ? Omit<T, K> & Required<Pick<T, K>> : never;
|
|
1453
|
+
}[keyof T], undefined>;
|
|
1454
|
+
/**
|
|
1455
|
+
* lazy() function to load a route definition, which can add non-matching
|
|
1456
|
+
* related properties to a route
|
|
1457
|
+
*/
|
|
1458
|
+
interface LazyRouteFunction<R extends AgnosticRouteObject> {
|
|
1459
|
+
(): Promise<RequireOne<Omit<R, ImmutableRouteKey>>>;
|
|
1460
|
+
}
|
|
1461
|
+
/**
|
|
1462
|
+
* Base RouteObject with common props shared by all types of routes
|
|
1463
|
+
*/
|
|
1464
|
+
type AgnosticBaseRouteObject = {
|
|
1465
|
+
caseSensitive?: boolean;
|
|
1466
|
+
path?: string;
|
|
1467
|
+
id?: string;
|
|
1468
|
+
loader?: LoaderFunction;
|
|
1469
|
+
action?: ActionFunction;
|
|
1470
|
+
hasErrorBoundary?: boolean;
|
|
1471
|
+
shouldRevalidate?: ShouldRevalidateFunction;
|
|
1472
|
+
handle?: any;
|
|
1473
|
+
lazy?: LazyRouteFunction<AgnosticBaseRouteObject>;
|
|
1474
|
+
};
|
|
1475
|
+
/**
|
|
1476
|
+
* Index routes must not have children
|
|
1477
|
+
*/
|
|
1478
|
+
type AgnosticIndexRouteObject = AgnosticBaseRouteObject & {
|
|
1479
|
+
children?: undefined;
|
|
1480
|
+
index: true;
|
|
1481
|
+
};
|
|
1482
|
+
/**
|
|
1483
|
+
* Non-index routes may have children, but cannot have index
|
|
1484
|
+
*/
|
|
1485
|
+
type AgnosticNonIndexRouteObject = AgnosticBaseRouteObject & {
|
|
1486
|
+
children?: AgnosticRouteObject[];
|
|
1487
|
+
index?: false;
|
|
1488
|
+
};
|
|
1489
|
+
/**
|
|
1490
|
+
* A route object represents a logical route, with (optionally) its child
|
|
1491
|
+
* routes organized in a tree-like structure.
|
|
1492
|
+
*/
|
|
1493
|
+
type AgnosticRouteObject = AgnosticIndexRouteObject | AgnosticNonIndexRouteObject;
|
|
1494
|
+
type AgnosticDataIndexRouteObject = AgnosticIndexRouteObject & {
|
|
1495
|
+
id: string;
|
|
1496
|
+
};
|
|
1497
|
+
type AgnosticDataNonIndexRouteObject = AgnosticNonIndexRouteObject & {
|
|
1498
|
+
children?: AgnosticDataRouteObject[];
|
|
1499
|
+
id: string;
|
|
1500
|
+
};
|
|
1501
|
+
/**
|
|
1502
|
+
* A data route object, which is just a RouteObject with a required unique ID
|
|
1503
|
+
*/
|
|
1504
|
+
type AgnosticDataRouteObject = AgnosticDataIndexRouteObject | AgnosticDataNonIndexRouteObject;
|
|
1505
|
+
/**
|
|
1506
|
+
* The parameters that were parsed from the URL path.
|
|
1507
|
+
*/
|
|
1508
|
+
type Params<Key extends string = string> = {
|
|
1509
|
+
readonly [key in Key]: string | undefined;
|
|
1510
|
+
};
|
|
1511
|
+
/**
|
|
1512
|
+
* A RouteMatch contains info about how a route matched a URL.
|
|
1513
|
+
*/
|
|
1514
|
+
interface AgnosticRouteMatch<ParamKey extends string = string, RouteObjectType extends AgnosticRouteObject = AgnosticRouteObject> {
|
|
1515
|
+
/**
|
|
1516
|
+
* The names and values of dynamic parameters in the URL.
|
|
1517
|
+
*/
|
|
1518
|
+
params: Params<ParamKey>;
|
|
1519
|
+
/**
|
|
1520
|
+
* The portion of the URL pathname that was matched.
|
|
1521
|
+
*/
|
|
1522
|
+
pathname: string;
|
|
1523
|
+
/**
|
|
1524
|
+
* The portion of the URL pathname that was matched before child routes.
|
|
1525
|
+
*/
|
|
1526
|
+
pathnameBase: string;
|
|
1527
|
+
/**
|
|
1528
|
+
* The route object that was used to match.
|
|
1529
|
+
*/
|
|
1530
|
+
route: RouteObjectType;
|
|
1531
|
+
}
|
|
1532
|
+
interface AgnosticDataRouteMatch extends AgnosticRouteMatch<string, AgnosticDataRouteObject> {
|
|
1533
|
+
}
|
|
1534
|
+
declare class DeferredData {
|
|
1535
|
+
private pendingKeysSet;
|
|
1536
|
+
private controller;
|
|
1537
|
+
private abortPromise;
|
|
1538
|
+
private unlistenAbortSignal;
|
|
1539
|
+
private subscribers;
|
|
1540
|
+
data: Record<string, unknown>;
|
|
1541
|
+
init?: ResponseInit;
|
|
1542
|
+
deferredKeys: string[];
|
|
1543
|
+
constructor(data: Record<string, unknown>, responseInit?: ResponseInit);
|
|
1544
|
+
private trackPromise;
|
|
1545
|
+
private onSettle;
|
|
1546
|
+
private emit;
|
|
1547
|
+
subscribe(fn: (aborted: boolean, settledKey?: string) => void): () => boolean;
|
|
1548
|
+
cancel(): void;
|
|
1549
|
+
resolveData(signal: AbortSignal): Promise<boolean>;
|
|
1550
|
+
get done(): boolean;
|
|
1551
|
+
get unwrappedData(): {};
|
|
1552
|
+
get pendingKeys(): string[];
|
|
1553
|
+
}
|
|
1554
|
+
|
|
1555
|
+
/**
|
|
1556
|
+
* State maintained internally by the router. During a navigation, all states
|
|
1557
|
+
* reflect the the "old" location unless otherwise noted.
|
|
1558
|
+
*/
|
|
1559
|
+
interface RouterState {
|
|
1560
|
+
/**
|
|
1561
|
+
* The action of the most recent navigation
|
|
1562
|
+
*/
|
|
1563
|
+
historyAction: Action;
|
|
1564
|
+
/**
|
|
1565
|
+
* The current location reflected by the router
|
|
1566
|
+
*/
|
|
1567
|
+
location: Location;
|
|
1568
|
+
/**
|
|
1569
|
+
* The current set of route matches
|
|
1570
|
+
*/
|
|
1571
|
+
matches: AgnosticDataRouteMatch[];
|
|
1572
|
+
/**
|
|
1573
|
+
* Tracks whether we've completed our initial data load
|
|
1574
|
+
*/
|
|
1575
|
+
initialized: boolean;
|
|
1576
|
+
/**
|
|
1577
|
+
* Current scroll position we should start at for a new view
|
|
1578
|
+
* - number -> scroll position to restore to
|
|
1579
|
+
* - false -> do not restore scroll at all (used during submissions)
|
|
1580
|
+
* - null -> don't have a saved position, scroll to hash or top of page
|
|
1581
|
+
*/
|
|
1582
|
+
restoreScrollPosition: number | false | null;
|
|
1583
|
+
/**
|
|
1584
|
+
* Indicate whether this navigation should skip resetting the scroll position
|
|
1585
|
+
* if we are unable to restore the scroll position
|
|
1586
|
+
*/
|
|
1587
|
+
preventScrollReset: boolean;
|
|
1588
|
+
/**
|
|
1589
|
+
* Tracks the state of the current navigation
|
|
1590
|
+
*/
|
|
1591
|
+
navigation: Navigation;
|
|
1592
|
+
/**
|
|
1593
|
+
* Tracks any in-progress revalidations
|
|
1594
|
+
*/
|
|
1595
|
+
revalidation: RevalidationState;
|
|
1596
|
+
/**
|
|
1597
|
+
* Data from the loaders for the current matches
|
|
1598
|
+
*/
|
|
1599
|
+
loaderData: RouteData;
|
|
1600
|
+
/**
|
|
1601
|
+
* Data from the action for the current matches
|
|
1602
|
+
*/
|
|
1603
|
+
actionData: RouteData | null;
|
|
1604
|
+
/**
|
|
1605
|
+
* Errors caught from loaders for the current matches
|
|
1606
|
+
*/
|
|
1607
|
+
errors: RouteData | null;
|
|
1608
|
+
/**
|
|
1609
|
+
* Map of current fetchers
|
|
1610
|
+
*/
|
|
1611
|
+
fetchers: Map<string, Fetcher>;
|
|
1612
|
+
/**
|
|
1613
|
+
* Map of current blockers
|
|
1614
|
+
*/
|
|
1615
|
+
blockers: Map<string, Blocker>;
|
|
1616
|
+
}
|
|
1617
|
+
/**
|
|
1618
|
+
* Data that can be passed into hydrate a Router from SSR
|
|
1619
|
+
*/
|
|
1620
|
+
type HydrationState = Partial<Pick<RouterState, "loaderData" | "actionData" | "errors">>;
|
|
1621
|
+
/**
|
|
1622
|
+
* Potential states for state.navigation
|
|
1623
|
+
*/
|
|
1624
|
+
type NavigationStates = {
|
|
1625
|
+
Idle: {
|
|
1626
|
+
state: "idle";
|
|
1627
|
+
location: undefined;
|
|
1628
|
+
formMethod: undefined;
|
|
1629
|
+
formAction: undefined;
|
|
1630
|
+
formEncType: undefined;
|
|
1631
|
+
formData: undefined;
|
|
1632
|
+
json: undefined;
|
|
1633
|
+
text: undefined;
|
|
1634
|
+
};
|
|
1635
|
+
Loading: {
|
|
1636
|
+
state: "loading";
|
|
1637
|
+
location: Location;
|
|
1638
|
+
formMethod: Submission["formMethod"] | undefined;
|
|
1639
|
+
formAction: Submission["formAction"] | undefined;
|
|
1640
|
+
formEncType: Submission["formEncType"] | undefined;
|
|
1641
|
+
formData: Submission["formData"] | undefined;
|
|
1642
|
+
json: Submission["json"] | undefined;
|
|
1643
|
+
text: Submission["text"] | undefined;
|
|
1644
|
+
};
|
|
1645
|
+
Submitting: {
|
|
1646
|
+
state: "submitting";
|
|
1647
|
+
location: Location;
|
|
1648
|
+
formMethod: Submission["formMethod"];
|
|
1649
|
+
formAction: Submission["formAction"];
|
|
1650
|
+
formEncType: Submission["formEncType"];
|
|
1651
|
+
formData: Submission["formData"];
|
|
1652
|
+
json: Submission["json"];
|
|
1653
|
+
text: Submission["text"];
|
|
1654
|
+
};
|
|
1655
|
+
};
|
|
1656
|
+
type Navigation = NavigationStates[keyof NavigationStates];
|
|
1657
|
+
type RevalidationState = "idle" | "loading";
|
|
1658
|
+
/**
|
|
1659
|
+
* Potential states for fetchers
|
|
1660
|
+
*/
|
|
1661
|
+
type FetcherStates<TData = any> = {
|
|
1662
|
+
Idle: {
|
|
1663
|
+
state: "idle";
|
|
1664
|
+
formMethod: undefined;
|
|
1665
|
+
formAction: undefined;
|
|
1666
|
+
formEncType: undefined;
|
|
1667
|
+
text: undefined;
|
|
1668
|
+
formData: undefined;
|
|
1669
|
+
json: undefined;
|
|
1670
|
+
data: TData | undefined;
|
|
1671
|
+
" _hasFetcherDoneAnything "?: boolean;
|
|
1672
|
+
};
|
|
1673
|
+
Loading: {
|
|
1674
|
+
state: "loading";
|
|
1675
|
+
formMethod: Submission["formMethod"] | undefined;
|
|
1676
|
+
formAction: Submission["formAction"] | undefined;
|
|
1677
|
+
formEncType: Submission["formEncType"] | undefined;
|
|
1678
|
+
text: Submission["text"] | undefined;
|
|
1679
|
+
formData: Submission["formData"] | undefined;
|
|
1680
|
+
json: Submission["json"] | undefined;
|
|
1681
|
+
data: TData | undefined;
|
|
1682
|
+
" _hasFetcherDoneAnything "?: boolean;
|
|
1683
|
+
};
|
|
1684
|
+
Submitting: {
|
|
1685
|
+
state: "submitting";
|
|
1686
|
+
formMethod: Submission["formMethod"];
|
|
1687
|
+
formAction: Submission["formAction"];
|
|
1688
|
+
formEncType: Submission["formEncType"];
|
|
1689
|
+
text: Submission["text"];
|
|
1690
|
+
formData: Submission["formData"];
|
|
1691
|
+
json: Submission["json"];
|
|
1692
|
+
data: TData | undefined;
|
|
1693
|
+
" _hasFetcherDoneAnything "?: boolean;
|
|
1694
|
+
};
|
|
1695
|
+
};
|
|
1696
|
+
type Fetcher<TData = any> = FetcherStates<TData>[keyof FetcherStates<TData>];
|
|
1697
|
+
interface BlockerBlocked {
|
|
1698
|
+
state: "blocked";
|
|
1699
|
+
reset(): void;
|
|
1700
|
+
proceed(): void;
|
|
1701
|
+
location: Location;
|
|
1702
|
+
}
|
|
1703
|
+
interface BlockerUnblocked {
|
|
1704
|
+
state: "unblocked";
|
|
1705
|
+
reset: undefined;
|
|
1706
|
+
proceed: undefined;
|
|
1707
|
+
location: undefined;
|
|
1708
|
+
}
|
|
1709
|
+
interface BlockerProceeding {
|
|
1710
|
+
state: "proceeding";
|
|
1711
|
+
reset: undefined;
|
|
1712
|
+
proceed: undefined;
|
|
1713
|
+
location: Location;
|
|
1714
|
+
}
|
|
1715
|
+
type Blocker = BlockerUnblocked | BlockerBlocked | BlockerProceeding;
|
|
1716
|
+
|
|
1717
|
+
/**
|
|
1718
|
+
* NOTE: If you refactor this to split up the modules into separate files,
|
|
1719
|
+
* you'll need to update the rollup config for react-router-dom-v5-compat.
|
|
1720
|
+
*/
|
|
1721
|
+
|
|
1722
|
+
declare global {
|
|
1723
|
+
var __staticRouterHydrationData: HydrationState | undefined;
|
|
1724
|
+
}
|
|
1725
|
+
|
|
1726
|
+
declare global {
|
|
1727
|
+
interface SymbolConstructor {
|
|
1728
|
+
readonly observable: symbol;
|
|
1729
|
+
}
|
|
1730
|
+
}
|
|
1731
|
+
|
|
1732
|
+
declare global {
|
|
1733
|
+
var globalProjectAnnotations: NormalizedProjectAnnotations<any>;
|
|
1734
|
+
var defaultProjectAnnotations: ProjectAnnotations<any>;
|
|
1735
|
+
}
|
|
1736
|
+
type WrappedStoryRef = {
|
|
1737
|
+
__pw_type: 'jsx';
|
|
1738
|
+
props: Record<string, any>;
|
|
1739
|
+
} | {
|
|
1740
|
+
__pw_type: 'importRef';
|
|
1741
|
+
};
|
|
1742
|
+
type UnwrappedJSXStoryRef = {
|
|
1743
|
+
__pw_type: 'jsx';
|
|
1744
|
+
type: UnwrappedImportStoryRef;
|
|
1745
|
+
};
|
|
1746
|
+
type UnwrappedImportStoryRef = ComposedStoryFn;
|
|
1747
|
+
declare global {
|
|
1748
|
+
function __pwUnwrapObject(storyRef: WrappedStoryRef): Promise<UnwrappedJSXStoryRef | UnwrappedImportStoryRef>;
|
|
1749
|
+
}
|
|
1232
1750
|
|
|
1233
1751
|
type TestProviderState = 'test-provider-state:pending' | 'test-provider-state:running' | 'test-provider-state:succeeded' | 'test-provider-state:crashed';
|
|
1234
1752
|
type TestProviderId = string;
|
|
@@ -1478,6 +1996,14 @@ type UseTestProviderStore = <T = TestProviderStateByProviderId>(
|
|
|
1478
1996
|
*/
|
|
1479
1997
|
selector?: (state: TestProviderStateByProviderId) => T) => T;
|
|
1480
1998
|
|
|
1999
|
+
declare const fullStatusStore: StatusStore & {
|
|
2000
|
+
selectStatuses: (statuses: Status[]) => void;
|
|
2001
|
+
typeId: undefined;
|
|
2002
|
+
};
|
|
2003
|
+
declare const getStatusStoreByTypeId: (typeId: StatusTypeId) => StatusStoreByTypeId;
|
|
2004
|
+
declare const useStatusStore: UseStatusStore;
|
|
2005
|
+
declare const universalStatusStore: UniversalStore<StatusesByStoryIdAndTypeId, StatusStoreEvent>;
|
|
2006
|
+
|
|
1481
2007
|
declare const fullTestProviderStore: {
|
|
1482
2008
|
settingsChanged: () => void;
|
|
1483
2009
|
onRunAll: (listener: () => void) => () => void;
|
|
@@ -3217,7 +3217,7 @@ import { global as Sr } from "@storybook/global";
|
|
|
3217
3217
|
import $ from "semver";
|
|
3218
3218
|
|
|
3219
3219
|
// src/manager-api/version.ts
|
|
3220
|
-
var Co = "9.2.0-alpha.
|
|
3220
|
+
var Co = "9.2.0-alpha.2";
|
|
3221
3221
|
|
|
3222
3222
|
// src/manager-api/modules/versions.ts
|
|
3223
3223
|
var { VERSIONCHECK: ca } = Sr, jo = (0, ko.default)(1)(() => {
|
package/dist/telemetry/index.cjs
CHANGED
|
@@ -4128,7 +4128,7 @@ async function qn(t) {
|
|
|
4128
4128
|
o(qn, "findPackage");
|
|
4129
4129
|
|
|
4130
4130
|
// package.json
|
|
4131
|
-
var wt = "9.2.0-alpha.
|
|
4131
|
+
var wt = "9.2.0-alpha.2";
|
|
4132
4132
|
|
|
4133
4133
|
// src/cli/globalSettings.ts
|
|
4134
4134
|
var At = T(require("node:fs/promises"), 1), xs = require("node:os"), Zt = require("node:path"), vs = T(Gn(), 1), Ne = T(gs(), 1);
|
package/dist/telemetry/index.js
CHANGED