storybook 9.0.0-alpha.1 → 9.0.0-alpha.11
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/README.md +31 -29
- package/assets/browser/favicon.svg +1 -0
- package/assets/browser/nunito-sans-bold-italic.woff2 +0 -0
- package/assets/browser/nunito-sans-bold.woff2 +0 -0
- package/assets/browser/nunito-sans-italic.woff2 +0 -0
- package/assets/browser/nunito-sans-regular.woff2 +0 -0
- package/assets/docs/addon-controls-args-annotated.png +0 -0
- package/assets/docs/addon-controls-args-background-color.png +0 -0
- package/assets/docs/addon-controls-args-background-string.png +0 -0
- package/assets/docs/addon-controls-args-docs.png +0 -0
- package/assets/docs/addon-controls-args-logging.png +0 -0
- package/assets/docs/addon-controls-args-no-annotation.png +0 -0
- package/assets/docs/addon-controls-args-reflow-slider.png +0 -0
- package/assets/docs/addon-controls-args-reflow.png +0 -0
- package/assets/docs/addon-controls-args-template.png +0 -0
- package/assets/docs/addon-controls-expanded.png +0 -0
- package/assets/docs/addon-controls-hero.gif +0 -0
- package/assets/docs/addon-controls-install.png +0 -0
- package/assets/docs/hero.gif +0 -0
- package/assets/docs/message-reference.png +0 -0
- package/assets/docs/viewport.png +0 -0
- package/assets/server/addon.tsconfig.json +6 -0
- package/assets/server/base-preview-body.html +119 -0
- package/assets/server/base-preview-head.html +451 -0
- package/assets/server/template.ejs +87 -0
- package/bin/index.cjs +1 -1
- package/dist/actions/decorator.d.ts +6 -0
- package/dist/actions/decorator.js +139 -0
- package/dist/actions/index.cjs +127 -0
- package/dist/actions/index.d.ts +105 -0
- package/dist/actions/index.js +112 -0
- package/dist/actions/manager.js +1196 -0
- package/dist/actions/preview.cjs +165 -0
- package/dist/actions/preview.d.ts +55 -0
- package/dist/actions/preview.js +156 -0
- package/dist/babel/index.cjs +54034 -0
- package/dist/babel/index.d.ts +7488 -0
- package/dist/babel/index.js +54044 -0
- package/dist/bin/index.cjs +118 -0
- package/dist/bin/index.js +112 -0
- package/dist/builder-manager/index.cjs +2140 -0
- package/dist/builder-manager/index.d.ts +19 -0
- package/dist/builder-manager/index.js +2162 -0
- package/dist/channels/index.cjs +1913 -0
- package/dist/channels/index.d.ts +108 -0
- package/dist/channels/index.js +1881 -0
- package/dist/cli/bin/index.cjs +2687 -0
- package/dist/cli/bin/index.d.ts +2 -0
- package/dist/cli/bin/index.js +2707 -0
- package/dist/cli/index.cjs +17327 -0
- package/dist/cli/index.d.ts +209 -0
- package/dist/cli/index.js +17349 -0
- package/dist/client-logger/index.cjs +80 -0
- package/dist/client-logger/index.d.ts +29 -0
- package/dist/client-logger/index.js +64 -0
- package/dist/common/index.cjs +20568 -0
- package/dist/common/index.d.ts +948 -0
- package/dist/common/index.js +20653 -0
- package/dist/component-testing/index.cjs +23 -0
- package/dist/component-testing/index.d.ts +3 -0
- package/dist/component-testing/index.js +5 -0
- package/dist/component-testing/manager.css +170 -0
- package/dist/component-testing/manager.js +3099 -0
- package/dist/component-testing/preview.cjs +40 -0
- package/dist/component-testing/preview.d.ts +5 -0
- package/dist/component-testing/preview.js +25 -0
- package/dist/components/index.cjs +27925 -0
- package/dist/components/index.d.ts +1423 -0
- package/dist/components/index.js +24674 -0
- package/dist/controls/decorator.d.ts +5 -0
- package/dist/controls/decorator.js +8 -0
- package/dist/controls/index.cjs +26 -0
- package/dist/controls/index.d.ts +39 -0
- package/dist/controls/index.js +6 -0
- package/dist/controls/manager.js +5545 -0
- package/dist/controls/preview.cjs +26 -0
- package/dist/controls/preview.d.ts +55 -0
- package/dist/controls/preview.js +9 -0
- package/dist/core-events/index.cjs +167 -0
- package/dist/core-events/index.d.ts +426 -0
- package/dist/core-events/index.js +149 -0
- package/dist/core-server/index.cjs +38183 -0
- package/dist/core-server/index.d.ts +720 -0
- package/dist/core-server/index.js +38272 -0
- package/dist/core-server/presets/common-manager.js +20 -0
- package/dist/core-server/presets/common-override-preset.cjs +4824 -0
- package/dist/core-server/presets/common-override-preset.js +4829 -0
- package/dist/core-server/presets/common-preset.cjs +10231 -0
- package/dist/core-server/presets/common-preset.js +10309 -0
- package/dist/csf/index.cjs +179 -0
- package/dist/csf/index.d.ts +750 -0
- package/dist/csf/index.js +172 -0
- package/dist/csf-tools/index.cjs +1422 -0
- package/dist/csf-tools/index.d.ts +250 -0
- package/dist/csf-tools/index.js +1439 -0
- package/dist/docs-tools/index.cjs +2891 -0
- package/dist/docs-tools/index.d.ts +162 -0
- package/dist/docs-tools/index.js +2876 -0
- package/dist/index.cjs +17 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -7
- package/dist/instrumenter/index.cjs +3492 -0
- package/dist/instrumenter/index.d.ts +104 -0
- package/dist/instrumenter/index.js +4964 -0
- package/dist/manager/globals-module-info.cjs +817 -0
- package/dist/manager/globals-module-info.d.ts +36 -0
- package/dist/manager/globals-module-info.js +804 -0
- package/dist/manager/globals-runtime.js +83389 -0
- package/dist/manager/globals.cjs +47 -0
- package/dist/manager/globals.d.ts +24 -0
- package/dist/manager/globals.js +34 -0
- package/dist/manager/runtime.js +12323 -0
- package/dist/manager-api/index.cjs +11074 -0
- package/dist/manager-api/index.d.ts +1512 -0
- package/dist/manager-api/index.js +4835 -0
- package/dist/manager-errors.d.ts +89 -0
- package/dist/manager-errors.js +99 -0
- package/dist/node-logger/index.cjs +1642 -0
- package/dist/node-logger/index.d.ts +117 -0
- package/dist/node-logger/index.js +1652 -0
- package/dist/preview/globals.cjs +38 -0
- package/dist/preview/globals.d.ts +15 -0
- package/dist/preview/globals.js +25 -0
- package/dist/preview/runtime.js +44921 -0
- package/dist/preview-api/index.cjs +5227 -0
- package/dist/preview-api/index.d.ts +1093 -0
- package/dist/preview-api/index.js +5295 -0
- package/dist/preview-errors.cjs +503 -0
- package/dist/preview-errors.d.ts +212 -0
- package/dist/preview-errors.js +449 -0
- package/dist/router/index.cjs +3296 -0
- package/dist/router/index.d.ts +385 -0
- package/dist/router/index.js +1843 -0
- package/dist/server-errors.cjs +727 -0
- package/dist/server-errors.d.ts +296 -0
- package/dist/server-errors.js +728 -0
- package/dist/telemetry/index.cjs +2756 -0
- package/dist/telemetry/index.d.ts +133 -0
- package/dist/telemetry/index.js +2797 -0
- package/dist/test/index.cjs +35685 -0
- package/dist/test/index.d.ts +186 -0
- package/dist/test/index.js +33751 -0
- package/dist/test/preview.cjs +15869 -0
- package/dist/test/preview.d.ts +54 -0
- package/dist/test/preview.js +14440 -0
- package/dist/test/spy.cjs +257 -0
- package/dist/test/spy.d.ts +66 -0
- package/dist/test/spy.js +239 -0
- package/dist/theming/create.cjs +232 -0
- package/dist/theming/create.d.ts +50 -0
- package/dist/theming/create.js +216 -0
- package/dist/theming/index.cjs +2665 -0
- package/dist/theming/index.d.ts +11939 -0
- package/dist/theming/index.js +2485 -0
- package/dist/types/index.cjs +27 -0
- package/dist/types/index.d.ts +2795 -0
- package/dist/types/index.js +7 -0
- package/dist/viewport/index.cjs +310 -0
- package/dist/viewport/index.d.ts +320 -0
- package/dist/viewport/index.js +290 -0
- package/dist/viewport/manager.js +400 -0
- package/dist/viewport/preview.cjs +35 -0
- package/dist/viewport/preview.d.ts +69 -0
- package/dist/viewport/preview.js +19 -0
- package/package.json +539 -209
- package/.eslintrc.cjs +0 -31
- package/__mocks__/@aw-web-design/x-default-browser.js +0 -2
- package/core/babel/index.cjs +0 -1
- package/core/babel/index.d.ts +0 -2
- package/core/babel/index.js +0 -1
- package/core/builder-manager/index.cjs +0 -1
- package/core/builder-manager/index.d.ts +0 -2
- package/core/builder-manager/index.js +0 -1
- package/core/channels/index.cjs +0 -1
- package/core/channels/index.d.ts +0 -2
- package/core/channels/index.js +0 -1
- package/core/cli/bin/index.cjs +0 -1
- package/core/cli/bin/index.d.ts +0 -2
- package/core/cli/bin/index.js +0 -1
- package/core/cli/index.cjs +0 -1
- package/core/cli/index.d.ts +0 -2
- package/core/cli/index.js +0 -1
- package/core/client-logger/index.cjs +0 -1
- package/core/client-logger/index.d.ts +0 -2
- package/core/client-logger/index.js +0 -1
- package/core/common/index.cjs +0 -1
- package/core/common/index.d.ts +0 -2
- package/core/common/index.js +0 -1
- package/core/components/index.cjs +0 -1
- package/core/components/index.d.ts +0 -2
- package/core/components/index.js +0 -1
- package/core/core-events/index.cjs +0 -1
- package/core/core-events/index.d.ts +0 -2
- package/core/core-events/index.js +0 -1
- package/core/core-server/index.cjs +0 -1
- package/core/core-server/index.d.ts +0 -2
- package/core/core-server/index.js +0 -1
- package/core/core-server/presets/common-manager.js +0 -1
- package/core/core-server/presets/common-override-preset.cjs +0 -1
- package/core/core-server/presets/common-override-preset.js +0 -1
- package/core/core-server/presets/common-preset.cjs +0 -1
- package/core/core-server/presets/common-preset.js +0 -1
- package/core/csf/index.cjs +0 -1
- package/core/csf/index.d.ts +0 -2
- package/core/csf/index.js +0 -1
- package/core/csf-tools/index.cjs +0 -1
- package/core/csf-tools/index.d.ts +0 -2
- package/core/csf-tools/index.js +0 -1
- package/core/docs-tools/index.cjs +0 -1
- package/core/docs-tools/index.d.ts +0 -2
- package/core/docs-tools/index.js +0 -1
- package/core/index.cjs +0 -1
- package/core/index.d.ts +0 -2
- package/core/index.js +0 -1
- package/core/manager/globals-module-info.cjs +0 -1
- package/core/manager/globals-module-info.d.ts +0 -2
- package/core/manager/globals-module-info.js +0 -1
- package/core/manager/globals-runtime.js +0 -1
- package/core/manager/globals.cjs +0 -1
- package/core/manager/globals.d.ts +0 -2
- package/core/manager/globals.js +0 -1
- package/core/manager-api/index.cjs +0 -1
- package/core/manager-api/index.d.ts +0 -2
- package/core/manager-api/index.js +0 -1
- package/core/manager-errors.d.ts +0 -2
- package/core/manager-errors.js +0 -1
- package/core/node-logger/index.cjs +0 -1
- package/core/node-logger/index.d.ts +0 -2
- package/core/node-logger/index.js +0 -1
- package/core/preview/globals.cjs +0 -1
- package/core/preview/globals.d.ts +0 -2
- package/core/preview/globals.js +0 -1
- package/core/preview/runtime.js +0 -1
- package/core/preview-api/index.cjs +0 -1
- package/core/preview-api/index.d.ts +0 -2
- package/core/preview-api/index.js +0 -1
- package/core/preview-errors.cjs +0 -1
- package/core/preview-errors.d.ts +0 -2
- package/core/preview-errors.js +0 -1
- package/core/router/index.cjs +0 -1
- package/core/router/index.d.ts +0 -2
- package/core/router/index.js +0 -1
- package/core/server-errors.cjs +0 -1
- package/core/server-errors.d.ts +0 -2
- package/core/server-errors.js +0 -1
- package/core/telemetry/index.cjs +0 -1
- package/core/telemetry/index.d.ts +0 -2
- package/core/telemetry/index.js +0 -1
- package/core/theming/create.cjs +0 -1
- package/core/theming/create.d.ts +0 -2
- package/core/theming/create.js +0 -1
- package/core/theming/index.cjs +0 -1
- package/core/theming/index.d.ts +0 -2
- package/core/theming/index.js +0 -1
- package/core/types/index.cjs +0 -1
- package/core/types/index.d.ts +0 -2
- package/core/types/index.js +0 -1
- package/core.cjs +0 -0
- package/core.d.ts +0 -0
- package/core.js +0 -1
- package/dist/chunk-OWLSIX54.js +0 -8
- package/dist/core-path.cjs +0 -1
- package/dist/core-path.d.ts +0 -3
- package/dist/core-path.js +0 -9
- package/dist/proxy.cjs +0 -1
- package/dist/proxy.d.ts +0 -2
- package/dist/proxy.js +0 -9
|
@@ -0,0 +1,503 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var H = Object.create;
|
|
3
|
+
var g = Object.defineProperty;
|
|
4
|
+
var K = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var U = Object.getOwnPropertyNames;
|
|
6
|
+
var X = Object.getPrototypeOf, J = Object.prototype.hasOwnProperty;
|
|
7
|
+
var s = (t, o) => g(t, "name", { value: o, configurable: !0 });
|
|
8
|
+
var B = (t, o) => () => (o || t((o = { exports: {} }).exports, o), o.exports), z = (t, o) => {
|
|
9
|
+
for (var e in o)
|
|
10
|
+
g(t, e, { get: o[e], enumerable: !0 });
|
|
11
|
+
}, j = (t, o, e, i) => {
|
|
12
|
+
if (o && typeof o == "object" || typeof o == "function")
|
|
13
|
+
for (let u of U(o))
|
|
14
|
+
!J.call(t, u) && u !== e && g(t, u, { get: () => o[u], enumerable: !(i = K(o, u)) || i.enumerable });
|
|
15
|
+
return t;
|
|
16
|
+
};
|
|
17
|
+
var q = (t, o, e) => (e = t != null ? H(X(t)) : {}, j(
|
|
18
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
19
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
20
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
21
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
22
|
+
o || !t || !t.__esModule ? g(e, "default", { value: t, enumerable: !0 }) : e,
|
|
23
|
+
t
|
|
24
|
+
)), Q = (t) => j(g({}, "__esModule", { value: !0 }), t);
|
|
25
|
+
|
|
26
|
+
// ../node_modules/ts-dedent/dist/index.js
|
|
27
|
+
var L = B((h) => {
|
|
28
|
+
"use strict";
|
|
29
|
+
Object.defineProperty(h, "__esModule", { value: !0 });
|
|
30
|
+
h.dedent = void 0;
|
|
31
|
+
function M(t) {
|
|
32
|
+
for (var o = [], e = 1; e < arguments.length; e++)
|
|
33
|
+
o[e - 1] = arguments[e];
|
|
34
|
+
var i = Array.from(typeof t == "string" ? [t] : t);
|
|
35
|
+
i[i.length - 1] = i[i.length - 1].replace(/\r?\n([\t ]*)$/, "");
|
|
36
|
+
var u = i.reduce(function(c, m) {
|
|
37
|
+
var p = m.match(/\n([\t ]+|(?!\s).)/g);
|
|
38
|
+
return p ? c.concat(p.map(function(f) {
|
|
39
|
+
var l, y;
|
|
40
|
+
return (y = (l = f.match(/[\t ]/g)) === null || l === void 0 ? void 0 : l.length) !== null && y !== void 0 ? y : 0;
|
|
41
|
+
})) : c;
|
|
42
|
+
}, []);
|
|
43
|
+
if (u.length) {
|
|
44
|
+
var E = new RegExp(`
|
|
45
|
+
[ ]{` + Math.min.apply(Math, u) + "}", "g");
|
|
46
|
+
i = i.map(function(c) {
|
|
47
|
+
return c.replace(E, `
|
|
48
|
+
`);
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
i[0] = i[0].replace(/^\r?\n/, "");
|
|
52
|
+
var d = i[0];
|
|
53
|
+
return o.forEach(function(c, m) {
|
|
54
|
+
var p = d.match(/(?:^|\n)( *)$/), f = p ? p[1] : "", l = c;
|
|
55
|
+
typeof c == "string" && c.includes(`
|
|
56
|
+
`) && (l = String(c).split(`
|
|
57
|
+
`).map(function(y, Y) {
|
|
58
|
+
return Y === 0 ? y : "" + f + y;
|
|
59
|
+
}).join(`
|
|
60
|
+
`)), d += l + i[m + 1];
|
|
61
|
+
}), d;
|
|
62
|
+
}
|
|
63
|
+
s(M, "dedent");
|
|
64
|
+
h.dedent = M;
|
|
65
|
+
h.default = M;
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
// src/preview-errors.ts
|
|
69
|
+
var Z = {};
|
|
70
|
+
z(Z, {
|
|
71
|
+
CalledExtractOnStoreError: () => I,
|
|
72
|
+
CalledPreviewMethodBeforeInitializationError: () => P,
|
|
73
|
+
Category: () => G,
|
|
74
|
+
EmptyIndexError: () => w,
|
|
75
|
+
ImplicitActionsDuringRendering: () => b,
|
|
76
|
+
MdxFileWithNoCsfReferencesError: () => S,
|
|
77
|
+
MissingRenderToCanvasError: () => _,
|
|
78
|
+
MissingStoryAfterHmrError: () => R,
|
|
79
|
+
MissingStoryFromCsfFileError: () => k,
|
|
80
|
+
MountMustBeDestructuredError: () => N,
|
|
81
|
+
NextJsSharpError: () => $,
|
|
82
|
+
NextjsRouterMocksNotAvailable: () => O,
|
|
83
|
+
NoRenderFunctionError: () => V,
|
|
84
|
+
NoStoryMatchError: () => T,
|
|
85
|
+
NoStoryMountedError: () => A,
|
|
86
|
+
StatusTypeIdMismatchError: () => W,
|
|
87
|
+
StoryIndexFetchError: () => x,
|
|
88
|
+
StoryStoreAccessedBeforeInitializationError: () => v,
|
|
89
|
+
UnknownArgTypesError: () => C,
|
|
90
|
+
UnsupportedViewportDimensionError: () => D
|
|
91
|
+
});
|
|
92
|
+
module.exports = Q(Z);
|
|
93
|
+
var a = q(L(), 1);
|
|
94
|
+
|
|
95
|
+
// src/storybook-error.ts
|
|
96
|
+
function F({
|
|
97
|
+
code: t,
|
|
98
|
+
category: o
|
|
99
|
+
}) {
|
|
100
|
+
let e = String(t).padStart(4, "0");
|
|
101
|
+
return `SB_${o}_${e}`;
|
|
102
|
+
}
|
|
103
|
+
s(F, "parseErrorCode");
|
|
104
|
+
var r = class t extends Error {
|
|
105
|
+
constructor(e) {
|
|
106
|
+
super(t.getFullMessage(e));
|
|
107
|
+
/**
|
|
108
|
+
* Data associated with the error. Used to provide additional information in the error message or
|
|
109
|
+
* to be passed to telemetry.
|
|
110
|
+
*/
|
|
111
|
+
this.data = {};
|
|
112
|
+
/** Flag used to easily determine if the error originates from Storybook. */
|
|
113
|
+
this.fromStorybook = !0;
|
|
114
|
+
this.category = e.category, this.documentation = e.documentation ?? !1, this.code = e.code;
|
|
115
|
+
}
|
|
116
|
+
static {
|
|
117
|
+
s(this, "StorybookError");
|
|
118
|
+
}
|
|
119
|
+
get fullErrorCode() {
|
|
120
|
+
return F({ code: this.code, category: this.category });
|
|
121
|
+
}
|
|
122
|
+
/** Overrides the default `Error.name` property in the format: SB_<CATEGORY>_<CODE>. */
|
|
123
|
+
get name() {
|
|
124
|
+
let e = this.constructor.name;
|
|
125
|
+
return `${this.fullErrorCode} (${e})`;
|
|
126
|
+
}
|
|
127
|
+
/** Generates the error message along with additional documentation link (if applicable). */
|
|
128
|
+
static getFullMessage({
|
|
129
|
+
documentation: e,
|
|
130
|
+
code: i,
|
|
131
|
+
category: u,
|
|
132
|
+
message: E
|
|
133
|
+
}) {
|
|
134
|
+
let d;
|
|
135
|
+
return e === !0 ? d = `https://storybook.js.org/error/${F({ code: i, category: u })}` : typeof e == "string" ? d = e : Array.isArray(e) &&
|
|
136
|
+
(d = `
|
|
137
|
+
${e.map((c) => ` - ${c}`).join(`
|
|
138
|
+
`)}`), `${E}${d != null ? `
|
|
139
|
+
|
|
140
|
+
More info: ${d}
|
|
141
|
+
` : ""}`;
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
// src/preview-errors.ts
|
|
146
|
+
var G = /* @__PURE__ */ ((n) => (n.BLOCKS = "BLOCKS", n.DOCS_TOOLS = "DOCS-TOOLS", n.PREVIEW_CLIENT_LOGGER = "PREVIEW_CLIENT-LOGGER", n.PREVIEW_CHANNELS =
|
|
147
|
+
"PREVIEW_CHANNELS", n.PREVIEW_CORE_EVENTS = "PREVIEW_CORE-EVENTS", n.PREVIEW_INSTRUMENTER = "PREVIEW_INSTRUMENTER", n.PREVIEW_API = "PREVIEW\
|
|
148
|
+
_API", n.PREVIEW_REACT_DOM_SHIM = "PREVIEW_REACT-DOM-SHIM", n.PREVIEW_ROUTER = "PREVIEW_ROUTER", n.PREVIEW_THEMING = "PREVIEW_THEMING", n.RENDERER_HTML =
|
|
149
|
+
"RENDERER_HTML", n.RENDERER_PREACT = "RENDERER_PREACT", n.RENDERER_REACT = "RENDERER_REACT", n.RENDERER_SERVER = "RENDERER_SERVER", n.RENDERER_SVELTE =
|
|
150
|
+
"RENDERER_SVELTE", n.RENDERER_VUE = "RENDERER_VUE", n.RENDERER_VUE3 = "RENDERER_VUE3", n.RENDERER_WEB_COMPONENTS = "RENDERER_WEB-COMPONENTS",
|
|
151
|
+
n.FRAMEWORK_NEXTJS = "FRAMEWORK_NEXTJS", n.ADDON_VITEST = "ADDON_VITEST", n))(G || {}), R = class extends r {
|
|
152
|
+
constructor(e) {
|
|
153
|
+
super({
|
|
154
|
+
category: "PREVIEW_API",
|
|
155
|
+
code: 1,
|
|
156
|
+
message: a.dedent`
|
|
157
|
+
Couldn't find story matching id '${e.storyId}' after HMR.
|
|
158
|
+
- Did you just rename a story?
|
|
159
|
+
- Did you remove it from your CSF file?
|
|
160
|
+
- Are you sure a story with the id '${e.storyId}' exists?
|
|
161
|
+
- Please check the values in the stories field of your main.js config and see if they would match your CSF File.
|
|
162
|
+
- Also check the browser console and terminal for potential error messages.`
|
|
163
|
+
});
|
|
164
|
+
this.data = e;
|
|
165
|
+
}
|
|
166
|
+
static {
|
|
167
|
+
s(this, "MissingStoryAfterHmrError");
|
|
168
|
+
}
|
|
169
|
+
}, b = class extends r {
|
|
170
|
+
constructor(e) {
|
|
171
|
+
super({
|
|
172
|
+
category: "PREVIEW_API",
|
|
173
|
+
code: 2,
|
|
174
|
+
documentation: "https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#using-implicit-actions-during-rendering-is-deprecated-\
|
|
175
|
+
for-example-in-the-play-function",
|
|
176
|
+
message: a.dedent`
|
|
177
|
+
We detected that you use an implicit action arg while ${e.phase} of your story.
|
|
178
|
+
${e.deprecated ? `
|
|
179
|
+
This is deprecated and won't work in Storybook 8 anymore.
|
|
180
|
+
` : ""}
|
|
181
|
+
Please provide an explicit spy to your args like this:
|
|
182
|
+
import { fn } from 'storybook/test';
|
|
183
|
+
...
|
|
184
|
+
args: {
|
|
185
|
+
${e.name}: fn()
|
|
186
|
+
}`
|
|
187
|
+
});
|
|
188
|
+
this.data = e;
|
|
189
|
+
}
|
|
190
|
+
static {
|
|
191
|
+
s(this, "ImplicitActionsDuringRendering");
|
|
192
|
+
}
|
|
193
|
+
}, I = class extends r {
|
|
194
|
+
static {
|
|
195
|
+
s(this, "CalledExtractOnStoreError");
|
|
196
|
+
}
|
|
197
|
+
constructor() {
|
|
198
|
+
super({
|
|
199
|
+
category: "PREVIEW_API",
|
|
200
|
+
code: 3,
|
|
201
|
+
message: a.dedent`
|
|
202
|
+
Cannot call \`storyStore.extract()\` without calling \`storyStore.cacheAllCsfFiles()\` first.
|
|
203
|
+
|
|
204
|
+
You probably meant to call \`await preview.extract()\` which does the above for you.`
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
}, _ = class extends r {
|
|
208
|
+
static {
|
|
209
|
+
s(this, "MissingRenderToCanvasError");
|
|
210
|
+
}
|
|
211
|
+
constructor() {
|
|
212
|
+
super({
|
|
213
|
+
category: "PREVIEW_API",
|
|
214
|
+
code: 4,
|
|
215
|
+
message: a.dedent`
|
|
216
|
+
Expected your framework's preset to export a \`renderToCanvas\` field.
|
|
217
|
+
|
|
218
|
+
Perhaps it needs to be upgraded for Storybook 7.0?`,
|
|
219
|
+
documentation: "https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#mainjs-framework-field"
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
}, P = class extends r {
|
|
223
|
+
constructor(e) {
|
|
224
|
+
super({
|
|
225
|
+
category: "PREVIEW_API",
|
|
226
|
+
code: 5,
|
|
227
|
+
message: a.dedent`
|
|
228
|
+
Called \`Preview.${e.methodName}()\` before initialization.
|
|
229
|
+
|
|
230
|
+
The preview needs to load the story index before most methods can be called. If you want
|
|
231
|
+
to call \`${e.methodName}\`, try \`await preview.initializationPromise;\` first.
|
|
232
|
+
|
|
233
|
+
If you didn't call the above code, then likely it was called by an addon that needs to
|
|
234
|
+
do the above.`
|
|
235
|
+
});
|
|
236
|
+
this.data = e;
|
|
237
|
+
}
|
|
238
|
+
static {
|
|
239
|
+
s(this, "CalledPreviewMethodBeforeInitializationError");
|
|
240
|
+
}
|
|
241
|
+
}, x = class extends r {
|
|
242
|
+
constructor(e) {
|
|
243
|
+
super({
|
|
244
|
+
category: "PREVIEW_API",
|
|
245
|
+
code: 6,
|
|
246
|
+
message: a.dedent`
|
|
247
|
+
Error fetching \`/index.json\`:
|
|
248
|
+
|
|
249
|
+
${e.text}
|
|
250
|
+
|
|
251
|
+
If you are in development, this likely indicates a problem with your Storybook process,
|
|
252
|
+
check the terminal for errors.
|
|
253
|
+
|
|
254
|
+
If you are in a deployed Storybook, there may have been an issue deploying the full Storybook
|
|
255
|
+
build.`
|
|
256
|
+
});
|
|
257
|
+
this.data = e;
|
|
258
|
+
}
|
|
259
|
+
static {
|
|
260
|
+
s(this, "StoryIndexFetchError");
|
|
261
|
+
}
|
|
262
|
+
}, S = class extends r {
|
|
263
|
+
constructor(e) {
|
|
264
|
+
super({
|
|
265
|
+
category: "PREVIEW_API",
|
|
266
|
+
code: 7,
|
|
267
|
+
message: a.dedent`
|
|
268
|
+
Tried to render docs entry ${e.storyId} but it is a MDX file that has no CSF
|
|
269
|
+
references, or autodocs for a CSF file that some doesn't refer to itself.
|
|
270
|
+
|
|
271
|
+
This likely is an internal error in Storybook's indexing, or you've attached the
|
|
272
|
+
\`attached-mdx\` tag to an MDX file that is not attached.`
|
|
273
|
+
});
|
|
274
|
+
this.data = e;
|
|
275
|
+
}
|
|
276
|
+
static {
|
|
277
|
+
s(this, "MdxFileWithNoCsfReferencesError");
|
|
278
|
+
}
|
|
279
|
+
}, w = class extends r {
|
|
280
|
+
static {
|
|
281
|
+
s(this, "EmptyIndexError");
|
|
282
|
+
}
|
|
283
|
+
constructor() {
|
|
284
|
+
super({
|
|
285
|
+
category: "PREVIEW_API",
|
|
286
|
+
code: 8,
|
|
287
|
+
message: a.dedent`
|
|
288
|
+
Couldn't find any stories in your Storybook.
|
|
289
|
+
|
|
290
|
+
- Please check your stories field of your main.js config: does it match correctly?
|
|
291
|
+
- Also check the browser console and terminal for error messages.`
|
|
292
|
+
});
|
|
293
|
+
}
|
|
294
|
+
}, T = class extends r {
|
|
295
|
+
constructor(e) {
|
|
296
|
+
super({
|
|
297
|
+
category: "PREVIEW_API",
|
|
298
|
+
code: 9,
|
|
299
|
+
message: a.dedent`
|
|
300
|
+
Couldn't find story matching '${e.storySpecifier}'.
|
|
301
|
+
|
|
302
|
+
- Are you sure a story with that id exists?
|
|
303
|
+
- Please check your stories field of your main.js config.
|
|
304
|
+
- Also check the browser console and terminal for error messages.`
|
|
305
|
+
});
|
|
306
|
+
this.data = e;
|
|
307
|
+
}
|
|
308
|
+
static {
|
|
309
|
+
s(this, "NoStoryMatchError");
|
|
310
|
+
}
|
|
311
|
+
}, k = class extends r {
|
|
312
|
+
constructor(e) {
|
|
313
|
+
super({
|
|
314
|
+
category: "PREVIEW_API",
|
|
315
|
+
code: 10,
|
|
316
|
+
message: a.dedent`
|
|
317
|
+
Couldn't find story matching id '${e.storyId}' after importing a CSF file.
|
|
318
|
+
|
|
319
|
+
The file was indexed as if the story was there, but then after importing the file in the browser
|
|
320
|
+
we didn't find the story. Possible reasons:
|
|
321
|
+
- You are using a custom story indexer that is misbehaving.
|
|
322
|
+
- You have a custom file loader that is removing or renaming exports.
|
|
323
|
+
|
|
324
|
+
Please check your browser console and terminal for errors that may explain the issue.`
|
|
325
|
+
});
|
|
326
|
+
this.data = e;
|
|
327
|
+
}
|
|
328
|
+
static {
|
|
329
|
+
s(this, "MissingStoryFromCsfFileError");
|
|
330
|
+
}
|
|
331
|
+
}, v = class extends r {
|
|
332
|
+
static {
|
|
333
|
+
s(this, "StoryStoreAccessedBeforeInitializationError");
|
|
334
|
+
}
|
|
335
|
+
constructor() {
|
|
336
|
+
super({
|
|
337
|
+
category: "PREVIEW_API",
|
|
338
|
+
code: 11,
|
|
339
|
+
message: a.dedent`
|
|
340
|
+
Cannot access the Story Store until the index is ready.
|
|
341
|
+
|
|
342
|
+
It is not recommended to use methods directly on the Story Store anyway, in Storybook 9 we will
|
|
343
|
+
remove access to the store entirely`
|
|
344
|
+
});
|
|
345
|
+
}
|
|
346
|
+
}, N = class extends r {
|
|
347
|
+
constructor(e) {
|
|
348
|
+
super({
|
|
349
|
+
category: "PREVIEW_API",
|
|
350
|
+
code: 12,
|
|
351
|
+
message: a.dedent`
|
|
352
|
+
Incorrect use of mount in the play function.
|
|
353
|
+
|
|
354
|
+
To use mount in the play function, you must satisfy the following two requirements:
|
|
355
|
+
|
|
356
|
+
1. You *must* destructure the mount property from the \`context\` (the argument passed to your play function).
|
|
357
|
+
This makes sure that Storybook does not start rendering the story before the play function begins.
|
|
358
|
+
|
|
359
|
+
2. Your Storybook framework or builder must be configured to transpile to ES2017 or newer.
|
|
360
|
+
This is because destructuring statements and async/await usages are otherwise transpiled away,
|
|
361
|
+
which prevents Storybook from recognizing your usage of \`mount\`.
|
|
362
|
+
|
|
363
|
+
Note that Angular is not supported. As async/await is transpiled to support the zone.js polyfill.
|
|
364
|
+
|
|
365
|
+
More info: https://storybook.js.org/docs/writing-tests/interaction-testing#run-code-before-the-component-gets-rendered
|
|
366
|
+
|
|
367
|
+
Received the following play function:
|
|
368
|
+
${e.playFunction}`
|
|
369
|
+
});
|
|
370
|
+
this.data = e;
|
|
371
|
+
}
|
|
372
|
+
static {
|
|
373
|
+
s(this, "MountMustBeDestructuredError");
|
|
374
|
+
}
|
|
375
|
+
}, V = class extends r {
|
|
376
|
+
constructor(e) {
|
|
377
|
+
super({
|
|
378
|
+
category: "PREVIEW_API",
|
|
379
|
+
code: 14,
|
|
380
|
+
message: a.dedent`
|
|
381
|
+
No render function available for storyId '${e.id}'
|
|
382
|
+
`
|
|
383
|
+
});
|
|
384
|
+
this.data = e;
|
|
385
|
+
}
|
|
386
|
+
static {
|
|
387
|
+
s(this, "NoRenderFunctionError");
|
|
388
|
+
}
|
|
389
|
+
}, A = class extends r {
|
|
390
|
+
static {
|
|
391
|
+
s(this, "NoStoryMountedError");
|
|
392
|
+
}
|
|
393
|
+
constructor() {
|
|
394
|
+
super({
|
|
395
|
+
category: "PREVIEW_API",
|
|
396
|
+
code: 15,
|
|
397
|
+
message: a.dedent`
|
|
398
|
+
No component is mounted in your story.
|
|
399
|
+
|
|
400
|
+
This usually occurs when you destructure mount in the play function, but forget to call it.
|
|
401
|
+
|
|
402
|
+
For example:
|
|
403
|
+
|
|
404
|
+
async play({ mount, canvasElement }) {
|
|
405
|
+
// 👈 mount should be called: await mount();
|
|
406
|
+
const canvas = within(canvasElement);
|
|
407
|
+
const button = await canvas.findByRole('button');
|
|
408
|
+
await userEvent.click(button);
|
|
409
|
+
};
|
|
410
|
+
|
|
411
|
+
Make sure to either remove it or call mount in your play function.
|
|
412
|
+
`
|
|
413
|
+
});
|
|
414
|
+
}
|
|
415
|
+
}, W = class extends r {
|
|
416
|
+
constructor(e) {
|
|
417
|
+
super({
|
|
418
|
+
category: "PREVIEW_API",
|
|
419
|
+
code: 16,
|
|
420
|
+
message: `Status has typeId "${e.status.typeId}" but was added to store with typeId "${e.typeId}". Full status: ${JSON.stringify(
|
|
421
|
+
e.status,
|
|
422
|
+
null,
|
|
423
|
+
2
|
|
424
|
+
)}`
|
|
425
|
+
});
|
|
426
|
+
this.data = e;
|
|
427
|
+
}
|
|
428
|
+
static {
|
|
429
|
+
s(this, "StatusTypeIdMismatchError");
|
|
430
|
+
}
|
|
431
|
+
}, $ = class extends r {
|
|
432
|
+
static {
|
|
433
|
+
s(this, "NextJsSharpError");
|
|
434
|
+
}
|
|
435
|
+
constructor() {
|
|
436
|
+
super({
|
|
437
|
+
category: "FRAMEWORK_NEXTJS",
|
|
438
|
+
code: 1,
|
|
439
|
+
documentation: "https://storybook.js.org/docs/get-started/nextjs#faq",
|
|
440
|
+
message: a.dedent`
|
|
441
|
+
You are importing avif images, but you don't have sharp installed.
|
|
442
|
+
|
|
443
|
+
You have to install sharp in order to use image optimization features in Next.js.
|
|
444
|
+
`
|
|
445
|
+
});
|
|
446
|
+
}
|
|
447
|
+
}, O = class extends r {
|
|
448
|
+
constructor(e) {
|
|
449
|
+
super({
|
|
450
|
+
category: "FRAMEWORK_NEXTJS",
|
|
451
|
+
code: 2,
|
|
452
|
+
message: a.dedent`
|
|
453
|
+
Tried to access router mocks from "${e.importType}" but they were not created yet. You might be running code in an unsupported environment.
|
|
454
|
+
`
|
|
455
|
+
});
|
|
456
|
+
this.data = e;
|
|
457
|
+
}
|
|
458
|
+
static {
|
|
459
|
+
s(this, "NextjsRouterMocksNotAvailable");
|
|
460
|
+
}
|
|
461
|
+
}, C = class extends r {
|
|
462
|
+
constructor(e) {
|
|
463
|
+
super({
|
|
464
|
+
category: "DOCS-TOOLS",
|
|
465
|
+
code: 1,
|
|
466
|
+
documentation: "https://github.com/storybookjs/storybook/issues/26606",
|
|
467
|
+
message: a.dedent`
|
|
468
|
+
There was a failure when generating detailed ArgTypes in ${e.language} for:
|
|
469
|
+
${JSON.stringify(e.type, null, 2)}
|
|
470
|
+
|
|
471
|
+
Storybook will fall back to use a generic type description instead.
|
|
472
|
+
|
|
473
|
+
This type is either not supported or it is a bug in the docgen generation in Storybook.
|
|
474
|
+
If you think this is a bug, please detail it as much as possible in the Github issue.
|
|
475
|
+
`
|
|
476
|
+
});
|
|
477
|
+
this.data = e;
|
|
478
|
+
}
|
|
479
|
+
static {
|
|
480
|
+
s(this, "UnknownArgTypesError");
|
|
481
|
+
}
|
|
482
|
+
}, D = class extends r {
|
|
483
|
+
constructor(e) {
|
|
484
|
+
super({
|
|
485
|
+
category: "ADDON_VITEST",
|
|
486
|
+
code: 1,
|
|
487
|
+
// TODO: Add documentation about viewports support
|
|
488
|
+
// documentation: '',
|
|
489
|
+
message: a.dedent`
|
|
490
|
+
Encountered an unsupported value "${e.value}" when setting the viewport ${e.dimension} dimension.
|
|
491
|
+
|
|
492
|
+
The Storybook plugin only supports values in the following units:
|
|
493
|
+
- px, vh, vw, em, rem and %.
|
|
494
|
+
|
|
495
|
+
You can either change the viewport for this story to use one of the supported units or skip the test by adding '!test' to the story's tags per https://storybook.js.org/docs/writing-stories/tags
|
|
496
|
+
`
|
|
497
|
+
});
|
|
498
|
+
this.data = e;
|
|
499
|
+
}
|
|
500
|
+
static {
|
|
501
|
+
s(this, "UnsupportedViewportDimensionError");
|
|
502
|
+
}
|
|
503
|
+
};
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
import { StoryId } from 'storybook/internal/csf';
|
|
2
|
+
|
|
3
|
+
type StatusValue = 'status-value:pending' | 'status-value:success' | 'status-value:error' | 'status-value:warning' | 'status-value:unknown';
|
|
4
|
+
type StatusTypeId = string;
|
|
5
|
+
interface Status {
|
|
6
|
+
value: StatusValue;
|
|
7
|
+
typeId: StatusTypeId;
|
|
8
|
+
storyId: StoryId;
|
|
9
|
+
title: string;
|
|
10
|
+
description: string;
|
|
11
|
+
data?: any;
|
|
12
|
+
sidebarContextMenu?: boolean;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
declare abstract class StorybookError extends Error {
|
|
16
|
+
/** Category of the error. Used to classify the type of error, e.g., 'PREVIEW_API'. */
|
|
17
|
+
readonly category: string;
|
|
18
|
+
/** Code representing the error. Used to uniquely identify the error, e.g., 1. */
|
|
19
|
+
readonly code: number;
|
|
20
|
+
/**
|
|
21
|
+
* Data associated with the error. Used to provide additional information in the error message or
|
|
22
|
+
* to be passed to telemetry.
|
|
23
|
+
*/
|
|
24
|
+
readonly data: {};
|
|
25
|
+
/**
|
|
26
|
+
* Specifies the documentation for the error.
|
|
27
|
+
*
|
|
28
|
+
* - If `true`, links to a documentation page on the Storybook website (make sure it exists before
|
|
29
|
+
* enabling) – This is not implemented yet.
|
|
30
|
+
* - If a string, uses the provided URL for documentation (external or FAQ links).
|
|
31
|
+
* - If `false` (default), no documentation link is added.
|
|
32
|
+
*/
|
|
33
|
+
readonly documentation: boolean | string | string[];
|
|
34
|
+
/** Flag used to easily determine if the error originates from Storybook. */
|
|
35
|
+
readonly fromStorybook: true;
|
|
36
|
+
get fullErrorCode(): `SB_${string}_${string}`;
|
|
37
|
+
/** Overrides the default `Error.name` property in the format: SB_<CATEGORY>_<CODE>. */
|
|
38
|
+
get name(): string;
|
|
39
|
+
constructor(props: {
|
|
40
|
+
category: string;
|
|
41
|
+
code: number;
|
|
42
|
+
message: string;
|
|
43
|
+
documentation?: boolean | string | string[];
|
|
44
|
+
});
|
|
45
|
+
/** Generates the error message along with additional documentation link (if applicable). */
|
|
46
|
+
static getFullMessage({ documentation, code, category, message, }: ConstructorParameters<typeof StorybookError>[0]): string;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* If you can't find a suitable category for your error, create one based on the package name/file
|
|
51
|
+
* path of which the error is thrown. For instance: If it's from `storybook/internal/client-logger`,
|
|
52
|
+
* then CLIENT-LOGGER
|
|
53
|
+
*
|
|
54
|
+
* Categories are prefixed by a logical grouping, e.g. PREVIEW_ or FRAMEWORK_ to prevent manager and
|
|
55
|
+
* preview errors from having the same category and error code.
|
|
56
|
+
*/
|
|
57
|
+
declare enum Category {
|
|
58
|
+
BLOCKS = "BLOCKS",
|
|
59
|
+
DOCS_TOOLS = "DOCS-TOOLS",
|
|
60
|
+
PREVIEW_CLIENT_LOGGER = "PREVIEW_CLIENT-LOGGER",
|
|
61
|
+
PREVIEW_CHANNELS = "PREVIEW_CHANNELS",
|
|
62
|
+
PREVIEW_CORE_EVENTS = "PREVIEW_CORE-EVENTS",
|
|
63
|
+
PREVIEW_INSTRUMENTER = "PREVIEW_INSTRUMENTER",
|
|
64
|
+
PREVIEW_API = "PREVIEW_API",
|
|
65
|
+
PREVIEW_REACT_DOM_SHIM = "PREVIEW_REACT-DOM-SHIM",
|
|
66
|
+
PREVIEW_ROUTER = "PREVIEW_ROUTER",
|
|
67
|
+
PREVIEW_THEMING = "PREVIEW_THEMING",
|
|
68
|
+
RENDERER_HTML = "RENDERER_HTML",
|
|
69
|
+
RENDERER_PREACT = "RENDERER_PREACT",
|
|
70
|
+
RENDERER_REACT = "RENDERER_REACT",
|
|
71
|
+
RENDERER_SERVER = "RENDERER_SERVER",
|
|
72
|
+
RENDERER_SVELTE = "RENDERER_SVELTE",
|
|
73
|
+
RENDERER_VUE = "RENDERER_VUE",
|
|
74
|
+
RENDERER_VUE3 = "RENDERER_VUE3",
|
|
75
|
+
RENDERER_WEB_COMPONENTS = "RENDERER_WEB-COMPONENTS",
|
|
76
|
+
FRAMEWORK_NEXTJS = "FRAMEWORK_NEXTJS",
|
|
77
|
+
ADDON_VITEST = "ADDON_VITEST"
|
|
78
|
+
}
|
|
79
|
+
declare class MissingStoryAfterHmrError extends StorybookError {
|
|
80
|
+
data: {
|
|
81
|
+
storyId: string;
|
|
82
|
+
};
|
|
83
|
+
constructor(data: {
|
|
84
|
+
storyId: string;
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
declare class ImplicitActionsDuringRendering extends StorybookError {
|
|
88
|
+
data: {
|
|
89
|
+
phase: string;
|
|
90
|
+
name: string;
|
|
91
|
+
deprecated: boolean;
|
|
92
|
+
};
|
|
93
|
+
constructor(data: {
|
|
94
|
+
phase: string;
|
|
95
|
+
name: string;
|
|
96
|
+
deprecated: boolean;
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
declare class CalledExtractOnStoreError extends StorybookError {
|
|
100
|
+
constructor();
|
|
101
|
+
}
|
|
102
|
+
declare class MissingRenderToCanvasError extends StorybookError {
|
|
103
|
+
constructor();
|
|
104
|
+
}
|
|
105
|
+
declare class CalledPreviewMethodBeforeInitializationError extends StorybookError {
|
|
106
|
+
data: {
|
|
107
|
+
methodName: string;
|
|
108
|
+
};
|
|
109
|
+
constructor(data: {
|
|
110
|
+
methodName: string;
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
declare class StoryIndexFetchError extends StorybookError {
|
|
114
|
+
data: {
|
|
115
|
+
text: string;
|
|
116
|
+
};
|
|
117
|
+
constructor(data: {
|
|
118
|
+
text: string;
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
declare class MdxFileWithNoCsfReferencesError extends StorybookError {
|
|
122
|
+
data: {
|
|
123
|
+
storyId: string;
|
|
124
|
+
};
|
|
125
|
+
constructor(data: {
|
|
126
|
+
storyId: string;
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
declare class EmptyIndexError extends StorybookError {
|
|
130
|
+
constructor();
|
|
131
|
+
}
|
|
132
|
+
declare class NoStoryMatchError extends StorybookError {
|
|
133
|
+
data: {
|
|
134
|
+
storySpecifier: string;
|
|
135
|
+
};
|
|
136
|
+
constructor(data: {
|
|
137
|
+
storySpecifier: string;
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
declare class MissingStoryFromCsfFileError extends StorybookError {
|
|
141
|
+
data: {
|
|
142
|
+
storyId: string;
|
|
143
|
+
};
|
|
144
|
+
constructor(data: {
|
|
145
|
+
storyId: string;
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
declare class StoryStoreAccessedBeforeInitializationError extends StorybookError {
|
|
149
|
+
constructor();
|
|
150
|
+
}
|
|
151
|
+
declare class MountMustBeDestructuredError extends StorybookError {
|
|
152
|
+
data: {
|
|
153
|
+
playFunction: string;
|
|
154
|
+
};
|
|
155
|
+
constructor(data: {
|
|
156
|
+
playFunction: string;
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
declare class NoRenderFunctionError extends StorybookError {
|
|
160
|
+
data: {
|
|
161
|
+
id: string;
|
|
162
|
+
};
|
|
163
|
+
constructor(data: {
|
|
164
|
+
id: string;
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
declare class NoStoryMountedError extends StorybookError {
|
|
168
|
+
constructor();
|
|
169
|
+
}
|
|
170
|
+
declare class StatusTypeIdMismatchError extends StorybookError {
|
|
171
|
+
data: {
|
|
172
|
+
status: Status;
|
|
173
|
+
typeId: StatusTypeId;
|
|
174
|
+
};
|
|
175
|
+
constructor(data: {
|
|
176
|
+
status: Status;
|
|
177
|
+
typeId: StatusTypeId;
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
declare class NextJsSharpError extends StorybookError {
|
|
181
|
+
constructor();
|
|
182
|
+
}
|
|
183
|
+
declare class NextjsRouterMocksNotAvailable extends StorybookError {
|
|
184
|
+
data: {
|
|
185
|
+
importType: string;
|
|
186
|
+
};
|
|
187
|
+
constructor(data: {
|
|
188
|
+
importType: string;
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
declare class UnknownArgTypesError extends StorybookError {
|
|
192
|
+
data: {
|
|
193
|
+
type: object;
|
|
194
|
+
language: string;
|
|
195
|
+
};
|
|
196
|
+
constructor(data: {
|
|
197
|
+
type: object;
|
|
198
|
+
language: string;
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
declare class UnsupportedViewportDimensionError extends StorybookError {
|
|
202
|
+
data: {
|
|
203
|
+
dimension: string;
|
|
204
|
+
value: string;
|
|
205
|
+
};
|
|
206
|
+
constructor(data: {
|
|
207
|
+
dimension: string;
|
|
208
|
+
value: string;
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
export { CalledExtractOnStoreError, CalledPreviewMethodBeforeInitializationError, Category, EmptyIndexError, ImplicitActionsDuringRendering, MdxFileWithNoCsfReferencesError, MissingRenderToCanvasError, MissingStoryAfterHmrError, MissingStoryFromCsfFileError, MountMustBeDestructuredError, NextJsSharpError, NextjsRouterMocksNotAvailable, NoRenderFunctionError, NoStoryMatchError, NoStoryMountedError, StatusTypeIdMismatchError, StoryIndexFetchError, StoryStoreAccessedBeforeInitializationError, UnknownArgTypesError, UnsupportedViewportDimensionError };
|