storybook 9.0.0-beta.1 → 9.0.0-beta.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/assets/server/base-preview-head.html +2 -1
- package/dist/actions/decorator.js +49 -52
- package/dist/actions/index.cjs +42 -44
- package/dist/actions/index.js +37 -40
- package/dist/actions/preview.cjs +44 -46
- package/dist/actions/preview.d.ts +501 -0
- package/dist/actions/preview.js +24 -27
- package/dist/babel/index.cjs +15060 -14974
- package/dist/babel/index.d.ts +37 -18
- package/dist/babel/index.js +15097 -15011
- package/dist/backgrounds/index.d.ts +501 -0
- package/dist/backgrounds/preview.d.ts +501 -0
- package/dist/bin/index.cjs +44 -44
- package/dist/bin/index.js +44 -44
- package/dist/builder-manager/index.cjs +303 -283
- package/dist/builder-manager/index.js +545 -524
- package/dist/channels/index.js +919 -941
- package/dist/cli/bin/index.cjs +4184 -736
- package/dist/cli/bin/index.js +4198 -748
- package/dist/cli/index.cjs +36838 -28392
- package/dist/cli/index.d.ts +974 -1
- package/dist/cli/index.js +41620 -33168
- package/dist/client-logger/index.d.ts +2 -1
- package/dist/common/index.cjs +4783 -4691
- package/dist/common/index.d.ts +8 -2
- package/dist/common/index.js +5165 -5069
- package/dist/components/index.cjs +7905 -5600
- package/dist/components/index.d.ts +12 -12
- package/dist/components/index.js +4713 -3786
- package/dist/controls/preview.d.ts +501 -0
- package/dist/core-server/index.cjs +6799 -6708
- package/dist/core-server/index.d.ts +526 -25
- package/dist/core-server/index.js +6948 -6851
- package/dist/core-server/presets/common-manager.js +4528 -3377
- package/dist/core-server/presets/common-override-preset.cjs +10 -12
- package/dist/core-server/presets/common-override-preset.js +3 -5
- package/dist/core-server/presets/common-preset.cjs +2301 -2238
- package/dist/core-server/presets/common-preset.js +2389 -2322
- package/dist/docs-tools/index.cjs +484 -464
- package/dist/docs-tools/index.js +781 -768
- package/dist/highlight/index.cjs +19 -18
- package/dist/highlight/index.d.ts +4 -5
- package/dist/highlight/index.js +3 -2
- package/dist/highlight/preview.cjs +314 -310
- package/dist/highlight/preview.d.ts +501 -0
- package/dist/highlight/preview.js +296 -292
- package/dist/instrumenter/index.cjs +561 -559
- package/dist/instrumenter/index.js +1564 -1516
- package/dist/manager/globals-module-info.cjs +2 -0
- package/dist/manager/globals-module-info.js +2 -0
- package/dist/manager/globals-runtime.js +23602 -23339
- package/dist/manager/runtime.js +4891 -4650
- package/dist/manager-api/index.cjs +2400 -2321
- package/dist/manager-api/index.d.ts +513 -1
- package/dist/manager-api/index.js +1951 -1903
- package/dist/manager-errors.js +37 -41
- package/dist/measure/index.d.ts +501 -0
- package/dist/measure/preview.d.ts +501 -0
- package/dist/node-logger/index.cjs +25 -25
- package/dist/node-logger/index.js +25 -25
- package/dist/outline/index.d.ts +501 -0
- package/dist/outline/preview.d.ts +501 -0
- package/dist/preview/runtime.js +35803 -35785
- package/dist/preview-api/index.cjs +1287 -1265
- package/dist/preview-api/index.d.ts +1 -1
- package/dist/preview-api/index.js +1367 -1361
- package/dist/preview-errors.js +152 -173
- package/dist/router/index.cjs +5674 -2282
- package/dist/router/index.d.ts +622 -243
- package/dist/router/index.js +1318 -872
- package/dist/server-errors.cjs +192 -177
- package/dist/server-errors.d.ts +11 -1
- package/dist/server-errors.js +173 -158
- package/dist/telemetry/index.cjs +4934 -1445
- package/dist/telemetry/index.d.ts +2 -1
- package/dist/telemetry/index.js +4966 -1475
- package/dist/test/index.cjs +1876 -1878
- package/dist/test/index.d.ts +1269 -83
- package/dist/test/index.js +9157 -9248
- package/dist/test/preview.cjs +49 -15862
- package/dist/test/preview.d.ts +520 -13
- package/dist/test/preview.js +42 -14493
- package/dist/theming/create.cjs +2244 -79
- package/dist/theming/create.js +951 -67
- package/dist/theming/index.cjs +3209 -1067
- package/dist/theming/index.js +1816 -947
- package/dist/types/index.cjs +4 -4
- package/dist/types/index.d.ts +3124 -2596
- package/dist/viewport/index.d.ts +502 -3
- package/dist/viewport/preview.d.ts +501 -0
- package/package.json +14 -38
- package/dist/test/spy.cjs +0 -258
- package/dist/test/spy.d.ts +0 -66
- package/dist/test/spy.js +0 -240
package/dist/preview-errors.js
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var ae = Object.defineProperty;
|
|
2
|
+
var t = (u, r) => ae(u, "name", { value: r, configurable: !0 });
|
|
3
3
|
|
|
4
4
|
// ../node_modules/ts-dedent/esm/index.js
|
|
5
|
-
function
|
|
6
|
-
for (var
|
|
7
|
-
|
|
8
|
-
var
|
|
9
|
-
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
return
|
|
5
|
+
function n(u) {
|
|
6
|
+
for (var r = [], e = 1; e < arguments.length; e++)
|
|
7
|
+
r[e - 1] = arguments[e];
|
|
8
|
+
var a = Array.from(typeof u == "string" ? [u] : u);
|
|
9
|
+
a[a.length - 1] = a[a.length - 1].replace(/\r?\n([\t ]*)$/, "");
|
|
10
|
+
var y = a.reduce(function(i, m) {
|
|
11
|
+
var p = m.match(/\n([\t ]+|(?!\s).)/g);
|
|
12
|
+
return p ? i.concat(p.map(function(E) {
|
|
13
13
|
var d, l;
|
|
14
|
-
return (l = (d =
|
|
15
|
-
})) :
|
|
14
|
+
return (l = (d = E.match(/[\t ]/g)) === null || d === void 0 ? void 0 : d.length) !== null && l !== void 0 ? l : 0;
|
|
15
|
+
})) : i;
|
|
16
16
|
}, []);
|
|
17
|
-
if (
|
|
18
|
-
var
|
|
19
|
-
[ ]{` + Math.min.apply(Math,
|
|
20
|
-
|
|
21
|
-
return
|
|
17
|
+
if (y.length) {
|
|
18
|
+
var h = new RegExp(`
|
|
19
|
+
[ ]{` + Math.min.apply(Math, y) + "}", "g");
|
|
20
|
+
a = a.map(function(i) {
|
|
21
|
+
return i.replace(h, `
|
|
22
22
|
`);
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
|
-
|
|
26
|
-
var
|
|
27
|
-
return
|
|
28
|
-
var
|
|
29
|
-
typeof
|
|
30
|
-
`) && (d = String(
|
|
31
|
-
`).map(function(l,
|
|
32
|
-
return
|
|
25
|
+
a[0] = a[0].replace(/^\r?\n/, "");
|
|
26
|
+
var c = a[0];
|
|
27
|
+
return r.forEach(function(i, m) {
|
|
28
|
+
var p = c.match(/(?:^|\n)( *)$/), E = p ? p[1] : "", d = i;
|
|
29
|
+
typeof i == "string" && i.includes(`
|
|
30
|
+
`) && (d = String(i).split(`
|
|
31
|
+
`).map(function(l, ne) {
|
|
32
|
+
return ne === 0 ? l : "" + E + l;
|
|
33
33
|
}).join(`
|
|
34
|
-
`)),
|
|
35
|
-
}),
|
|
34
|
+
`)), c += d + a[m + 1];
|
|
35
|
+
}), c;
|
|
36
36
|
}
|
|
37
|
-
|
|
37
|
+
t(n, "dedent");
|
|
38
38
|
|
|
39
39
|
// src/storybook-error.ts
|
|
40
|
-
function
|
|
41
|
-
code:
|
|
42
|
-
category:
|
|
40
|
+
function j({
|
|
41
|
+
code: u,
|
|
42
|
+
category: r
|
|
43
43
|
}) {
|
|
44
|
-
let e = String(
|
|
45
|
-
return `SB_${
|
|
44
|
+
let e = String(u).padStart(4, "0");
|
|
45
|
+
return `SB_${r}_${e}`;
|
|
46
46
|
}
|
|
47
|
-
|
|
48
|
-
var
|
|
47
|
+
t(j, "parseErrorCode");
|
|
48
|
+
var g = class g extends Error {
|
|
49
49
|
constructor(e) {
|
|
50
|
-
super(
|
|
50
|
+
super(g.getFullMessage(e));
|
|
51
51
|
/**
|
|
52
52
|
* Data associated with the error. Used to provide additional information in the error message or
|
|
53
53
|
* to be passed to telemetry.
|
|
@@ -57,11 +57,8 @@ var s = class t extends Error {
|
|
|
57
57
|
this.fromStorybook = !0;
|
|
58
58
|
this.category = e.category, this.documentation = e.documentation ?? !1, this.code = e.code;
|
|
59
59
|
}
|
|
60
|
-
static {
|
|
61
|
-
o(this, "StorybookError");
|
|
62
|
-
}
|
|
63
60
|
get fullErrorCode() {
|
|
64
|
-
return
|
|
61
|
+
return j({ code: this.code, category: this.category });
|
|
65
62
|
}
|
|
66
63
|
/** Overrides the default `Error.name` property in the format: SB_<CATEGORY>_<CODE>. */
|
|
67
64
|
get name() {
|
|
@@ -71,33 +68,35 @@ var s = class t extends Error {
|
|
|
71
68
|
/** Generates the error message along with additional documentation link (if applicable). */
|
|
72
69
|
static getFullMessage({
|
|
73
70
|
documentation: e,
|
|
74
|
-
code:
|
|
75
|
-
category:
|
|
76
|
-
message:
|
|
71
|
+
code: a,
|
|
72
|
+
category: y,
|
|
73
|
+
message: h
|
|
77
74
|
}) {
|
|
78
|
-
let
|
|
79
|
-
return e === !0 ?
|
|
80
|
-
(
|
|
81
|
-
${e.map((
|
|
82
|
-
`)}`), `${
|
|
75
|
+
let c;
|
|
76
|
+
return e === !0 ? c = `https://storybook.js.org/error/${j({ code: a, category: y })}` : typeof e == "string" ? c = e : Array.isArray(e) &&
|
|
77
|
+
(c = `
|
|
78
|
+
${e.map((i) => ` - ${i}`).join(`
|
|
79
|
+
`)}`), `${h}${c != null ? `
|
|
83
80
|
|
|
84
|
-
More info: ${
|
|
81
|
+
More info: ${c}
|
|
85
82
|
` : ""}`;
|
|
86
83
|
}
|
|
87
84
|
};
|
|
85
|
+
t(g, "StorybookError");
|
|
86
|
+
var o = g;
|
|
88
87
|
|
|
89
88
|
// src/preview-errors.ts
|
|
90
|
-
var
|
|
91
|
-
"PREVIEW_CHANNELS",
|
|
92
|
-
_API",
|
|
93
|
-
"RENDERER_HTML",
|
|
94
|
-
"RENDERER_SVELTE",
|
|
95
|
-
|
|
89
|
+
var ie = /* @__PURE__ */ ((s) => (s.BLOCKS = "BLOCKS", s.DOCS_TOOLS = "DOCS-TOOLS", s.PREVIEW_CLIENT_LOGGER = "PREVIEW_CLIENT-LOGGER", s.PREVIEW_CHANNELS =
|
|
90
|
+
"PREVIEW_CHANNELS", s.PREVIEW_CORE_EVENTS = "PREVIEW_CORE-EVENTS", s.PREVIEW_INSTRUMENTER = "PREVIEW_INSTRUMENTER", s.PREVIEW_API = "PREVIEW\
|
|
91
|
+
_API", s.PREVIEW_REACT_DOM_SHIM = "PREVIEW_REACT-DOM-SHIM", s.PREVIEW_ROUTER = "PREVIEW_ROUTER", s.PREVIEW_THEMING = "PREVIEW_THEMING", s.RENDERER_HTML =
|
|
92
|
+
"RENDERER_HTML", s.RENDERER_PREACT = "RENDERER_PREACT", s.RENDERER_REACT = "RENDERER_REACT", s.RENDERER_SERVER = "RENDERER_SERVER", s.RENDERER_SVELTE =
|
|
93
|
+
"RENDERER_SVELTE", s.RENDERER_VUE = "RENDERER_VUE", s.RENDERER_VUE3 = "RENDERER_VUE3", s.RENDERER_WEB_COMPONENTS = "RENDERER_WEB-COMPONENTS",
|
|
94
|
+
s.FRAMEWORK_NEXTJS = "FRAMEWORK_NEXTJS", s.ADDON_VITEST = "ADDON_VITEST", s.ADDON_A11Y = "ADDON_A11Y", s))(ie || {}), f = class f extends o {
|
|
96
95
|
constructor(e) {
|
|
97
96
|
super({
|
|
98
97
|
category: "PREVIEW_API",
|
|
99
98
|
code: 1,
|
|
100
|
-
message:
|
|
99
|
+
message: n`
|
|
101
100
|
Couldn't find story matching id '${e.storyId}' after HMR.
|
|
102
101
|
- Did you just rename a story?
|
|
103
102
|
- Did you remove it from your CSF file?
|
|
@@ -107,17 +106,16 @@ r.FRAMEWORK_NEXTJS = "FRAMEWORK_NEXTJS", r.ADDON_VITEST = "ADDON_VITEST", r.ADDO
|
|
|
107
106
|
});
|
|
108
107
|
this.data = e;
|
|
109
108
|
}
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
}, R = class extends s {
|
|
109
|
+
};
|
|
110
|
+
t(f, "MissingStoryAfterHmrError");
|
|
111
|
+
var L = f, b = class b extends o {
|
|
114
112
|
constructor(e) {
|
|
115
113
|
super({
|
|
116
114
|
category: "PREVIEW_API",
|
|
117
115
|
code: 2,
|
|
118
116
|
documentation: "https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#using-implicit-actions-during-rendering-is-deprecated-\
|
|
119
117
|
for-example-in-the-play-function",
|
|
120
|
-
message:
|
|
118
|
+
message: n`
|
|
121
119
|
We detected that you use an implicit action arg while ${e.phase} of your story.
|
|
122
120
|
${e.deprecated ? `
|
|
123
121
|
This is deprecated and won't work in Storybook 8 anymore.
|
|
@@ -131,44 +129,41 @@ This is deprecated and won't work in Storybook 8 anymore.
|
|
|
131
129
|
});
|
|
132
130
|
this.data = e;
|
|
133
131
|
}
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
}, b = class extends s {
|
|
138
|
-
static {
|
|
139
|
-
o(this, "CalledExtractOnStoreError");
|
|
140
|
-
}
|
|
132
|
+
};
|
|
133
|
+
t(b, "ImplicitActionsDuringRendering");
|
|
134
|
+
var Y = b, R = class R extends o {
|
|
141
135
|
constructor() {
|
|
142
136
|
super({
|
|
143
137
|
category: "PREVIEW_API",
|
|
144
138
|
code: 3,
|
|
145
|
-
message:
|
|
139
|
+
message: n`
|
|
146
140
|
Cannot call \`storyStore.extract()\` without calling \`storyStore.cacheAllCsfFiles()\` first.
|
|
147
141
|
|
|
148
142
|
You probably meant to call \`await preview.extract()\` which does the above for you.`
|
|
149
143
|
});
|
|
150
144
|
}
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
}
|
|
145
|
+
};
|
|
146
|
+
t(R, "CalledExtractOnStoreError");
|
|
147
|
+
var G = R, I = class I extends o {
|
|
155
148
|
constructor() {
|
|
156
149
|
super({
|
|
157
150
|
category: "PREVIEW_API",
|
|
158
151
|
code: 4,
|
|
159
|
-
message:
|
|
152
|
+
message: n`
|
|
160
153
|
Expected your framework's preset to export a \`renderToCanvas\` field.
|
|
161
154
|
|
|
162
155
|
Perhaps it needs to be upgraded for Storybook 7.0?`,
|
|
163
156
|
documentation: "https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#mainjs-framework-field"
|
|
164
157
|
});
|
|
165
158
|
}
|
|
166
|
-
}
|
|
159
|
+
};
|
|
160
|
+
t(I, "MissingRenderToCanvasError");
|
|
161
|
+
var F = I, x = class x extends o {
|
|
167
162
|
constructor(e) {
|
|
168
163
|
super({
|
|
169
164
|
category: "PREVIEW_API",
|
|
170
165
|
code: 5,
|
|
171
|
-
message:
|
|
166
|
+
message: n`
|
|
172
167
|
Called \`Preview.${e.methodName}()\` before initialization.
|
|
173
168
|
|
|
174
169
|
The preview needs to load the story index before most methods can be called. If you want
|
|
@@ -179,15 +174,14 @@ This is deprecated and won't work in Storybook 8 anymore.
|
|
|
179
174
|
});
|
|
180
175
|
this.data = e;
|
|
181
176
|
}
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
}, _ = class extends s {
|
|
177
|
+
};
|
|
178
|
+
t(x, "CalledPreviewMethodBeforeInitializationError");
|
|
179
|
+
var H = x, P = class P extends o {
|
|
186
180
|
constructor(e) {
|
|
187
181
|
super({
|
|
188
182
|
category: "PREVIEW_API",
|
|
189
183
|
code: 6,
|
|
190
|
-
message:
|
|
184
|
+
message: n`
|
|
191
185
|
Error fetching \`/index.json\`:
|
|
192
186
|
|
|
193
187
|
${e.text}
|
|
@@ -200,15 +194,14 @@ This is deprecated and won't work in Storybook 8 anymore.
|
|
|
200
194
|
});
|
|
201
195
|
this.data = e;
|
|
202
196
|
}
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
}, S = class extends s {
|
|
197
|
+
};
|
|
198
|
+
t(P, "StoryIndexFetchError");
|
|
199
|
+
var M = P, w = class w extends o {
|
|
207
200
|
constructor(e) {
|
|
208
201
|
super({
|
|
209
202
|
category: "PREVIEW_API",
|
|
210
203
|
code: 7,
|
|
211
|
-
message:
|
|
204
|
+
message: n`
|
|
212
205
|
Tried to render docs entry ${e.storyId} but it is a MDX file that has no CSF
|
|
213
206
|
references, or autodocs for a CSF file that some doesn't refer to itself.
|
|
214
207
|
|
|
@@ -217,30 +210,28 @@ This is deprecated and won't work in Storybook 8 anymore.
|
|
|
217
210
|
});
|
|
218
211
|
this.data = e;
|
|
219
212
|
}
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
}, P = class extends s {
|
|
224
|
-
static {
|
|
225
|
-
o(this, "EmptyIndexError");
|
|
226
|
-
}
|
|
213
|
+
};
|
|
214
|
+
t(w, "MdxFileWithNoCsfReferencesError");
|
|
215
|
+
var K = w, T = class T extends o {
|
|
227
216
|
constructor() {
|
|
228
217
|
super({
|
|
229
218
|
category: "PREVIEW_API",
|
|
230
219
|
code: 8,
|
|
231
|
-
message:
|
|
220
|
+
message: n`
|
|
232
221
|
Couldn't find any stories in your Storybook.
|
|
233
222
|
|
|
234
223
|
- Please check your stories field of your main.js config: does it match correctly?
|
|
235
224
|
- Also check the browser console and terminal for error messages.`
|
|
236
225
|
});
|
|
237
226
|
}
|
|
238
|
-
}
|
|
227
|
+
};
|
|
228
|
+
t(T, "EmptyIndexError");
|
|
229
|
+
var X = T, S = class S extends o {
|
|
239
230
|
constructor(e) {
|
|
240
231
|
super({
|
|
241
232
|
category: "PREVIEW_API",
|
|
242
233
|
code: 9,
|
|
243
|
-
message:
|
|
234
|
+
message: n`
|
|
244
235
|
Couldn't find story matching '${e.storySpecifier}'.
|
|
245
236
|
|
|
246
237
|
- Are you sure a story with that id exists?
|
|
@@ -249,15 +240,14 @@ This is deprecated and won't work in Storybook 8 anymore.
|
|
|
249
240
|
});
|
|
250
241
|
this.data = e;
|
|
251
242
|
}
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
}, T = class extends s {
|
|
243
|
+
};
|
|
244
|
+
t(S, "NoStoryMatchError");
|
|
245
|
+
var U = S, k = class k extends o {
|
|
256
246
|
constructor(e) {
|
|
257
247
|
super({
|
|
258
248
|
category: "PREVIEW_API",
|
|
259
249
|
code: 10,
|
|
260
|
-
message:
|
|
250
|
+
message: n`
|
|
261
251
|
Couldn't find story matching id '${e.storyId}' after importing a CSF file.
|
|
262
252
|
|
|
263
253
|
The file was indexed as if the story was there, but then after importing the file in the browser
|
|
@@ -269,30 +259,28 @@ This is deprecated and won't work in Storybook 8 anymore.
|
|
|
269
259
|
});
|
|
270
260
|
this.data = e;
|
|
271
261
|
}
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
}, k = class extends s {
|
|
276
|
-
static {
|
|
277
|
-
o(this, "StoryStoreAccessedBeforeInitializationError");
|
|
278
|
-
}
|
|
262
|
+
};
|
|
263
|
+
t(k, "MissingStoryFromCsfFileError");
|
|
264
|
+
var J = k, v = class v extends o {
|
|
279
265
|
constructor() {
|
|
280
266
|
super({
|
|
281
267
|
category: "PREVIEW_API",
|
|
282
268
|
code: 11,
|
|
283
|
-
message:
|
|
269
|
+
message: n`
|
|
284
270
|
Cannot access the Story Store until the index is ready.
|
|
285
271
|
|
|
286
272
|
It is not recommended to use methods directly on the Story Store anyway, in Storybook 9 we will
|
|
287
273
|
remove access to the store entirely`
|
|
288
274
|
});
|
|
289
275
|
}
|
|
290
|
-
}
|
|
276
|
+
};
|
|
277
|
+
t(v, "StoryStoreAccessedBeforeInitializationError");
|
|
278
|
+
var q = v, _ = class _ extends o {
|
|
291
279
|
constructor(e) {
|
|
292
280
|
super({
|
|
293
281
|
category: "PREVIEW_API",
|
|
294
282
|
code: 12,
|
|
295
|
-
message:
|
|
283
|
+
message: n`
|
|
296
284
|
Incorrect use of mount in the play function.
|
|
297
285
|
|
|
298
286
|
To use mount in the play function, you must satisfy the following two requirements:
|
|
@@ -313,32 +301,27 @@ This is deprecated and won't work in Storybook 8 anymore.
|
|
|
313
301
|
});
|
|
314
302
|
this.data = e;
|
|
315
303
|
}
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
}, v = class extends s {
|
|
304
|
+
};
|
|
305
|
+
t(_, "MountMustBeDestructuredError");
|
|
306
|
+
var z = _, N = class N extends o {
|
|
320
307
|
constructor(e) {
|
|
321
308
|
super({
|
|
322
309
|
category: "PREVIEW_API",
|
|
323
310
|
code: 14,
|
|
324
|
-
message:
|
|
311
|
+
message: n`
|
|
325
312
|
No render function available for storyId '${e.id}'
|
|
326
313
|
`
|
|
327
314
|
});
|
|
328
315
|
this.data = e;
|
|
329
316
|
}
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
}, A = class extends s {
|
|
334
|
-
static {
|
|
335
|
-
o(this, "NoStoryMountedError");
|
|
336
|
-
}
|
|
317
|
+
};
|
|
318
|
+
t(N, "NoRenderFunctionError");
|
|
319
|
+
var B = N, V = class V extends o {
|
|
337
320
|
constructor() {
|
|
338
321
|
super({
|
|
339
322
|
category: "PREVIEW_API",
|
|
340
323
|
code: 15,
|
|
341
|
-
message:
|
|
324
|
+
message: n`
|
|
342
325
|
No component is mounted in your story.
|
|
343
326
|
|
|
344
327
|
This usually occurs when you destructure mount in the play function, but forget to call it.
|
|
@@ -356,7 +339,9 @@ This is deprecated and won't work in Storybook 8 anymore.
|
|
|
356
339
|
`
|
|
357
340
|
});
|
|
358
341
|
}
|
|
359
|
-
}
|
|
342
|
+
};
|
|
343
|
+
t(V, "NoStoryMountedError");
|
|
344
|
+
var Q = V, A = class A extends o {
|
|
360
345
|
constructor(e) {
|
|
361
346
|
super({
|
|
362
347
|
category: "PREVIEW_API",
|
|
@@ -369,46 +354,43 @@ This is deprecated and won't work in Storybook 8 anymore.
|
|
|
369
354
|
});
|
|
370
355
|
this.data = e;
|
|
371
356
|
}
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
}, O = class extends s {
|
|
376
|
-
static {
|
|
377
|
-
o(this, "NextJsSharpError");
|
|
378
|
-
}
|
|
357
|
+
};
|
|
358
|
+
t(A, "StatusTypeIdMismatchError");
|
|
359
|
+
var Z = A, O = class O extends o {
|
|
379
360
|
constructor() {
|
|
380
361
|
super({
|
|
381
362
|
category: "FRAMEWORK_NEXTJS",
|
|
382
363
|
code: 1,
|
|
383
364
|
documentation: "https://storybook.js.org/docs/get-started/nextjs#faq",
|
|
384
|
-
message:
|
|
365
|
+
message: n`
|
|
385
366
|
You are importing avif images, but you don't have sharp installed.
|
|
386
367
|
|
|
387
368
|
You have to install sharp in order to use image optimization features in Next.js.
|
|
388
369
|
`
|
|
389
370
|
});
|
|
390
371
|
}
|
|
391
|
-
}
|
|
372
|
+
};
|
|
373
|
+
t(O, "NextJsSharpError");
|
|
374
|
+
var ee = O, W = class W extends o {
|
|
392
375
|
constructor(e) {
|
|
393
376
|
super({
|
|
394
377
|
category: "FRAMEWORK_NEXTJS",
|
|
395
378
|
code: 2,
|
|
396
|
-
message:
|
|
379
|
+
message: n`
|
|
397
380
|
Tried to access router mocks from "${e.importType}" but they were not created yet. You might be running code in an unsupported environment.
|
|
398
381
|
`
|
|
399
382
|
});
|
|
400
383
|
this.data = e;
|
|
401
384
|
}
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
}, $ = class extends s {
|
|
385
|
+
};
|
|
386
|
+
t(W, "NextjsRouterMocksNotAvailable");
|
|
387
|
+
var te = W, $ = class $ extends o {
|
|
406
388
|
constructor(e) {
|
|
407
389
|
super({
|
|
408
390
|
category: "DOCS-TOOLS",
|
|
409
391
|
code: 1,
|
|
410
392
|
documentation: "https://github.com/storybookjs/storybook/issues/26606",
|
|
411
|
-
message:
|
|
393
|
+
message: n`
|
|
412
394
|
There was a failure when generating detailed ArgTypes in ${e.language} for:
|
|
413
395
|
${JSON.stringify(e.type, null, 2)}
|
|
414
396
|
|
|
@@ -420,17 +402,16 @@ This is deprecated and won't work in Storybook 8 anymore.
|
|
|
420
402
|
});
|
|
421
403
|
this.data = e;
|
|
422
404
|
}
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
}, D = class extends s {
|
|
405
|
+
};
|
|
406
|
+
t($, "UnknownArgTypesError");
|
|
407
|
+
var oe = $, D = class D extends o {
|
|
427
408
|
constructor(e) {
|
|
428
409
|
super({
|
|
429
410
|
category: "ADDON_VITEST",
|
|
430
411
|
code: 1,
|
|
431
412
|
// TODO: Add documentation about viewports support
|
|
432
413
|
// documentation: '',
|
|
433
|
-
message:
|
|
414
|
+
message: n`
|
|
434
415
|
Encountered an unsupported value "${e.value}" when setting the viewport ${e.dimension} dimension.
|
|
435
416
|
|
|
436
417
|
The Storybook plugin only supports values in the following units:
|
|
@@ -441,13 +422,9 @@ This is deprecated and won't work in Storybook 8 anymore.
|
|
|
441
422
|
});
|
|
442
423
|
this.data = e;
|
|
443
424
|
}
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
}, C = class extends s {
|
|
448
|
-
static {
|
|
449
|
-
o(this, "ElementA11yParameterError");
|
|
450
|
-
}
|
|
425
|
+
};
|
|
426
|
+
t(D, "UnsupportedViewportDimensionError");
|
|
427
|
+
var se = D, C = class C extends o {
|
|
451
428
|
constructor() {
|
|
452
429
|
super({
|
|
453
430
|
category: "ADDON_A11Y",
|
|
@@ -458,26 +435,28 @@ meter",
|
|
|
458
435
|
});
|
|
459
436
|
}
|
|
460
437
|
};
|
|
438
|
+
t(C, "ElementA11yParameterError");
|
|
439
|
+
var re = C;
|
|
461
440
|
export {
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
441
|
+
G as CalledExtractOnStoreError,
|
|
442
|
+
H as CalledPreviewMethodBeforeInitializationError,
|
|
443
|
+
ie as Category,
|
|
444
|
+
re as ElementA11yParameterError,
|
|
445
|
+
X as EmptyIndexError,
|
|
446
|
+
Y as ImplicitActionsDuringRendering,
|
|
447
|
+
K as MdxFileWithNoCsfReferencesError,
|
|
448
|
+
F as MissingRenderToCanvasError,
|
|
449
|
+
L as MissingStoryAfterHmrError,
|
|
450
|
+
J as MissingStoryFromCsfFileError,
|
|
451
|
+
z as MountMustBeDestructuredError,
|
|
452
|
+
ee as NextJsSharpError,
|
|
453
|
+
te as NextjsRouterMocksNotAvailable,
|
|
454
|
+
B as NoRenderFunctionError,
|
|
455
|
+
U as NoStoryMatchError,
|
|
456
|
+
Q as NoStoryMountedError,
|
|
457
|
+
Z as StatusTypeIdMismatchError,
|
|
458
|
+
M as StoryIndexFetchError,
|
|
459
|
+
q as StoryStoreAccessedBeforeInitializationError,
|
|
460
|
+
oe as UnknownArgTypesError,
|
|
461
|
+
se as UnsupportedViewportDimensionError
|
|
483
462
|
};
|