storybook 9.0.0-beta.5 → 9.0.0-beta.7
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 +44 -44
- package/dist/bin/index.js +44 -44
- package/dist/builder-manager/index.cjs +15 -5
- package/dist/builder-manager/index.js +15 -4
- package/dist/cli/bin/index.cjs +1 -1
- package/dist/cli/bin/index.js +1 -1
- package/dist/cli/index.cjs +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/client-logger/index.d.ts +2 -1
- package/dist/common/index.cjs +445 -445
- package/dist/common/index.d.ts +1 -1
- package/dist/common/index.js +424 -424
- package/dist/core-server/index.cjs +15 -11
- package/dist/core-server/index.d.ts +22 -22
- package/dist/core-server/index.js +15 -10
- package/dist/core-server/presets/common-manager.js +8 -8
- package/dist/core-server/presets/common-preset.cjs +4 -4
- package/dist/core-server/presets/common-preset.js +4 -4
- package/dist/manager/globals-runtime.js +9190 -9167
- package/dist/manager/runtime.js +1151 -1149
- package/dist/manager-api/index.cjs +1046 -1023
- package/dist/manager-api/index.d.ts +12 -1
- package/dist/manager-api/index.js +649 -626
- package/dist/preview/runtime.js +1832 -1832
- package/dist/preview-api/index.cjs +8 -8
- package/dist/preview-api/index.js +8 -8
- package/dist/test/index.d.ts +2 -6
- package/dist/test/index.js +2818 -2818
- package/dist/test/preview.cjs +648 -648
- package/dist/test/preview.js +837 -837
- package/dist/test/spy.cjs +112 -112
- package/dist/test/spy.d.ts +2 -6
- package/dist/test/spy.js +104 -104
- package/dist/types/index.cjs +4 -4
- package/dist/types/index.d.ts +2687 -2594
- package/package.json +7 -6
|
@@ -958,7 +958,7 @@ var Fr = O((H) => {
|
|
|
958
958
|
Vi(Ar(), H);
|
|
959
959
|
});
|
|
960
960
|
|
|
961
|
-
// ../node_modules/
|
|
961
|
+
// ../node_modules/entities/lib/maps/entities.json
|
|
962
962
|
var Et = O((Hp, ea) => {
|
|
963
963
|
ea.exports = { Aacute: "\xC1", aacute: "\xE1", Abreve: "\u0102", abreve: "\u0103", ac: "\u223E", acd: "\u223F", acE: "\u223E\u0333", Acirc: "\
|
|
964
964
|
\xC2", acirc: "\xE2", acute: "\xB4", Acy: "\u0410", acy: "\u0430", AElig: "\xC6", aelig: "\xE6", af: "\u2061", Afr: "\u{1D504}", afr: "\u{1D51E}",
|
|
@@ -1240,7 +1240,7 @@ var Et = O((Hp, ea) => {
|
|
|
1240
1240
|
zwnj: "\u200C" };
|
|
1241
1241
|
});
|
|
1242
1242
|
|
|
1243
|
-
// ../node_modules/
|
|
1243
|
+
// ../node_modules/entities/lib/maps/legacy.json
|
|
1244
1244
|
var Wn = O((Vp, ra) => {
|
|
1245
1245
|
ra.exports = { Aacute: "\xC1", aacute: "\xE1", Acirc: "\xC2", acirc: "\xE2", acute: "\xB4", AElig: "\xC6", aelig: "\xE6", Agrave: "\xC0", agrave: "\
|
|
1246
1246
|
\xE0", amp: "&", AMP: "&", Aring: "\xC5", aring: "\xE5", Atilde: "\xC3", atilde: "\xE3", Auml: "\xC4", auml: "\xE4", brvbar: "\xA6", Ccedil: "\
|
|
@@ -1255,19 +1255,19 @@ var Wn = O((Vp, ra) => {
|
|
|
1255
1255
|
Ugrave: "\xD9", ugrave: "\xF9", uml: "\xA8", Uuml: "\xDC", uuml: "\xFC", Yacute: "\xDD", yacute: "\xFD", yen: "\xA5", yuml: "\xFF" };
|
|
1256
1256
|
});
|
|
1257
1257
|
|
|
1258
|
-
// ../node_modules/
|
|
1258
|
+
// ../node_modules/entities/lib/maps/xml.json
|
|
1259
1259
|
var At = O((Wp, ta) => {
|
|
1260
1260
|
ta.exports = { amp: "&", apos: "'", gt: ">", lt: "<", quot: '"' };
|
|
1261
1261
|
});
|
|
1262
1262
|
|
|
1263
|
-
// ../node_modules/
|
|
1263
|
+
// ../node_modules/entities/lib/maps/decode.json
|
|
1264
1264
|
var $n = O(($p, oa) => {
|
|
1265
1265
|
oa.exports = { "0": 65533, "128": 8364, "130": 8218, "131": 402, "132": 8222, "133": 8230, "134": 8224, "135": 8225, "136": 710, "137": 8240,
|
|
1266
1266
|
"138": 352, "139": 8249, "140": 338, "142": 381, "145": 8216, "146": 8217, "147": 8220, "148": 8221, "149": 8226, "150": 8211, "151": 8212,
|
|
1267
1267
|
"152": 732, "153": 8482, "154": 353, "155": 8250, "156": 339, "158": 382, "159": 376 };
|
|
1268
1268
|
});
|
|
1269
1269
|
|
|
1270
|
-
// ../node_modules/
|
|
1270
|
+
// ../node_modules/entities/lib/decode_codepoint.js
|
|
1271
1271
|
var Kn = O((Qe) => {
|
|
1272
1272
|
"use strict";
|
|
1273
1273
|
var na = Qe && Qe.__importDefault || function(r) {
|
|
@@ -1289,7 +1289,7 @@ var Kn = O((Qe) => {
|
|
|
1289
1289
|
Qe.default = ia;
|
|
1290
1290
|
});
|
|
1291
1291
|
|
|
1292
|
-
// ../node_modules/
|
|
1292
|
+
// ../node_modules/entities/lib/decode.js
|
|
1293
1293
|
var vt = O((X) => {
|
|
1294
1294
|
"use strict";
|
|
1295
1295
|
var Ir = X && X.__importDefault || function(r) {
|
|
@@ -1333,7 +1333,7 @@ var vt = O((X) => {
|
|
|
1333
1333
|
s(Zn, "getReplacer");
|
|
1334
1334
|
});
|
|
1335
1335
|
|
|
1336
|
-
// ../node_modules/
|
|
1336
|
+
// ../node_modules/entities/lib/encode.js
|
|
1337
1337
|
var Ft = O((N) => {
|
|
1338
1338
|
"use strict";
|
|
1339
1339
|
var es = N && N.__importDefault || function(r) {
|
|
@@ -1415,7 +1415,7 @@ var Ft = O((N) => {
|
|
|
1415
1415
|
s(as, "getASCIIEncoder");
|
|
1416
1416
|
});
|
|
1417
1417
|
|
|
1418
|
-
// ../node_modules/
|
|
1418
|
+
// ../node_modules/entities/lib/index.js
|
|
1419
1419
|
var cs = O((x) => {
|
|
1420
1420
|
"use strict";
|
|
1421
1421
|
Object.defineProperty(x, "__esModule", { value: !0 });
|
|
@@ -941,7 +941,7 @@ var sr = O((q) => {
|
|
|
941
941
|
pa(rr(), q);
|
|
942
942
|
});
|
|
943
943
|
|
|
944
|
-
// ../node_modules/
|
|
944
|
+
// ../node_modules/entities/lib/maps/entities.json
|
|
945
945
|
var Qr = O((ff, Ra) => {
|
|
946
946
|
Ra.exports = { Aacute: "\xC1", aacute: "\xE1", Abreve: "\u0102", abreve: "\u0103", ac: "\u223E", acd: "\u223F", acE: "\u223E\u0333", Acirc: "\
|
|
947
947
|
\xC2", acirc: "\xE2", acute: "\xB4", Acy: "\u0410", acy: "\u0430", AElig: "\xC6", aelig: "\xE6", af: "\u2061", Afr: "\u{1D504}", afr: "\u{1D51E}",
|
|
@@ -1223,7 +1223,7 @@ var Qr = O((ff, Ra) => {
|
|
|
1223
1223
|
zwnj: "\u200C" };
|
|
1224
1224
|
});
|
|
1225
1225
|
|
|
1226
|
-
// ../node_modules/
|
|
1226
|
+
// ../node_modules/entities/lib/maps/legacy.json
|
|
1227
1227
|
var Wo = O((yf, wa) => {
|
|
1228
1228
|
wa.exports = { Aacute: "\xC1", aacute: "\xE1", Acirc: "\xC2", acirc: "\xE2", acute: "\xB4", AElig: "\xC6", aelig: "\xE6", Agrave: "\xC0", agrave: "\
|
|
1229
1229
|
\xE0", amp: "&", AMP: "&", Aring: "\xC5", aring: "\xE5", Atilde: "\xC3", atilde: "\xE3", Auml: "\xC4", auml: "\xE4", brvbar: "\xA6", Ccedil: "\
|
|
@@ -1238,19 +1238,19 @@ var Wo = O((yf, wa) => {
|
|
|
1238
1238
|
Ugrave: "\xD9", ugrave: "\xF9", uml: "\xA8", Uuml: "\xDC", uuml: "\xFC", Yacute: "\xDD", yacute: "\xFD", yen: "\xA5", yuml: "\xFF" };
|
|
1239
1239
|
});
|
|
1240
1240
|
|
|
1241
|
-
// ../node_modules/
|
|
1241
|
+
// ../node_modules/entities/lib/maps/xml.json
|
|
1242
1242
|
var Zr = O((mf, Ea) => {
|
|
1243
1243
|
Ea.exports = { amp: "&", apos: "'", gt: ">", lt: "<", quot: '"' };
|
|
1244
1244
|
});
|
|
1245
1245
|
|
|
1246
|
-
// ../node_modules/
|
|
1246
|
+
// ../node_modules/entities/lib/maps/decode.json
|
|
1247
1247
|
var $o = O((hf, Aa) => {
|
|
1248
1248
|
Aa.exports = { "0": 65533, "128": 8364, "130": 8218, "131": 402, "132": 8222, "133": 8230, "134": 8224, "135": 8225, "136": 710, "137": 8240,
|
|
1249
1249
|
"138": 352, "139": 8249, "140": 338, "142": 381, "145": 8216, "146": 8217, "147": 8220, "148": 8221, "149": 8226, "150": 8211, "151": 8212,
|
|
1250
1250
|
"152": 732, "153": 8482, "154": 353, "155": 8250, "156": 339, "158": 382, "159": 376 };
|
|
1251
1251
|
});
|
|
1252
1252
|
|
|
1253
|
-
// ../node_modules/
|
|
1253
|
+
// ../node_modules/entities/lib/decode_codepoint.js
|
|
1254
1254
|
var Ko = O((qe) => {
|
|
1255
1255
|
"use strict";
|
|
1256
1256
|
var Ca = qe && qe.__importDefault || function(r) {
|
|
@@ -1272,7 +1272,7 @@ var Ko = O((qe) => {
|
|
|
1272
1272
|
qe.default = Pa;
|
|
1273
1273
|
});
|
|
1274
1274
|
|
|
1275
|
-
// ../node_modules/
|
|
1275
|
+
// ../node_modules/entities/lib/decode.js
|
|
1276
1276
|
var rt = O((U) => {
|
|
1277
1277
|
"use strict";
|
|
1278
1278
|
var ir = U && U.__importDefault || function(r) {
|
|
@@ -1316,7 +1316,7 @@ var rt = O((U) => {
|
|
|
1316
1316
|
n(Zo, "getReplacer");
|
|
1317
1317
|
});
|
|
1318
1318
|
|
|
1319
|
-
// ../node_modules/
|
|
1319
|
+
// ../node_modules/entities/lib/encode.js
|
|
1320
1320
|
var ot = O((M) => {
|
|
1321
1321
|
"use strict";
|
|
1322
1322
|
var en = M && M.__importDefault || function(r) {
|
|
@@ -1398,7 +1398,7 @@ var ot = O((M) => {
|
|
|
1398
1398
|
n(ln, "getASCIIEncoder");
|
|
1399
1399
|
});
|
|
1400
1400
|
|
|
1401
|
-
// ../node_modules/
|
|
1401
|
+
// ../node_modules/entities/lib/index.js
|
|
1402
1402
|
var dn = O((w) => {
|
|
1403
1403
|
"use strict";
|
|
1404
1404
|
Object.defineProperty(w, "__esModule", { value: !0 });
|
package/dist/test/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TestingLibraryMatchers } from '@testing-library/jest-dom/matchers';
|
|
2
2
|
import { AsymmetricMatchersContaining, JestAssertion, ExpectStatic, MatchersObject, MatcherState } from '@vitest/expect';
|
|
3
3
|
import _userEvent, { userEvent as userEvent$1 } from '@testing-library/user-event';
|
|
4
|
-
import { MockInstance, spyOn as spyOn$1, Mock
|
|
4
|
+
import { MockInstance, spyOn as spyOn$1, Mock, MaybeMocked, MaybeMockedDeep, MaybePartiallyMocked, MaybePartiallyMockedDeep } from '@vitest/spy';
|
|
5
5
|
export * from '@vitest/spy';
|
|
6
6
|
export { isMockFunction, mocks } from '@vitest/spy';
|
|
7
7
|
|
|
@@ -1257,11 +1257,7 @@ type Listener = (mock: MockInstance, args: unknown[]) => void;
|
|
|
1257
1257
|
declare function onMockCall(callback: Listener): () => void;
|
|
1258
1258
|
declare const spyOn: typeof spyOn$1;
|
|
1259
1259
|
type Procedure = (...args: any[]) => any;
|
|
1260
|
-
type Mock<T extends Procedure | any[] = any[], R = any> = T extends Procedure ? Mock$1<T> : T extends any[] ? Mock$1<(...args: T) => R> : never;
|
|
1261
1260
|
declare function fn<T extends Procedure = Procedure>(implementation?: T): Mock<T>;
|
|
1262
|
-
declare function fn<TArgs extends any[] = any, R = any>(): Mock<(...args: TArgs) => R>;
|
|
1263
|
-
declare function fn<TArgs extends any[] = any[], R = any>(implementation: (...args: TArgs) => R): Mock<(...args: TArgs) => R>;
|
|
1264
|
-
declare function fn<TArgs extends any[] = any[], R = any>(implementation?: (...args: TArgs) => R): Mock<(...args: TArgs) => R>;
|
|
1265
1261
|
/**
|
|
1266
1262
|
* Calls [`.mockClear()`](https://vitest.dev/api/mock#mockclear) on every mocked function. This will
|
|
1267
1263
|
* only empty `.mock` state, it will not reset implementation.
|
|
@@ -1325,4 +1321,4 @@ declare module 'storybook/internal/csf' {
|
|
|
1325
1321
|
}
|
|
1326
1322
|
declare const expect: Expect;
|
|
1327
1323
|
|
|
1328
|
-
export { type
|
|
1324
|
+
export { type UserEvent, type UserEventObject, buildQueries, clearAllMocks, configure, createEvent, expect, findAllByAltText, findAllByDisplayValue, findAllByLabelText, findAllByPlaceholderText, findAllByRole, findAllByTestId, findAllByText, findAllByTitle, findByAltText, findByDisplayValue, findByLabelText, findByPlaceholderText, findByRole, findByTestId, findByText, findByTitle, fireEvent, fn, getAllByAltText, getAllByDisplayValue, getAllByLabelText, getAllByPlaceholderText, getAllByRole, getAllByTestId, getAllByText, getAllByTitle, getByAltText, getByDisplayValue, getByLabelText, getByPlaceholderText, getByRole, getByTestId, getByText, getByTitle, getConfig, getDefaultNormalizer, getElementError, getNodeText, getQueriesForElement, getRoles, getSuggestedQuery, isInaccessible, logDOM, logRoles, mocked, onMockCall, prettyDOM, prettyFormat, queries, queryAllByAltText, queryAllByAttribute, queryAllByDisplayValue, queryAllByLabelText, queryAllByPlaceholderText, queryAllByRole, queryAllByTestId, queryAllByText, queryAllByTitle, queryByAltText, queryByAttribute, queryByDisplayValue, queryByLabelText, queryByPlaceholderText, queryByRole, queryByTestId, queryByText, queryByTitle, queryHelpers, resetAllMocks, restoreAllMocks, screen, spyOn, userEvent, waitFor, waitForElementToBeRemoved, within };
|