storybook 9.0.0-alpha.12 → 9.0.0-alpha.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/docs/addon-backgrounds.gif +0 -0
- package/assets/docs/highlight.png +0 -0
- package/dist/backgrounds/index.cjs +148 -0
- package/dist/backgrounds/index.d.ts +91 -0
- package/dist/backgrounds/index.js +130 -0
- package/dist/backgrounds/preview.cjs +143 -0
- package/dist/backgrounds/preview.d.ts +54 -0
- package/dist/backgrounds/preview.js +127 -0
- package/dist/bin/index.cjs +63 -71
- package/dist/bin/index.js +53 -61
- package/dist/builder-manager/index.cjs +390 -380
- package/dist/builder-manager/index.js +489 -479
- package/dist/cli/bin/index.cjs +225 -225
- package/dist/cli/bin/index.js +234 -234
- package/dist/cli/index.cjs +0 -2
- package/dist/cli/index.js +0 -2
- package/dist/common/index.cjs +2399 -2378
- package/dist/common/index.d.ts +0 -8
- package/dist/common/index.js +2607 -2586
- package/dist/components/index.cjs +3394 -3372
- package/dist/components/index.js +3922 -3900
- package/dist/core-events/index.cjs +72 -84
- package/dist/core-events/index.d.ts +2 -77
- package/dist/core-events/index.js +61 -73
- package/dist/core-server/index.cjs +5258 -5168
- package/dist/core-server/index.js +6539 -6449
- package/dist/core-server/presets/common-manager.js +9815 -12
- package/dist/core-server/presets/common-preset.cjs +2809 -3005
- package/dist/core-server/presets/common-preset.js +2891 -3087
- package/dist/docs-tools/index.cjs +626 -600
- package/dist/docs-tools/index.js +613 -587
- package/dist/highlight/index.cjs +27 -0
- package/dist/highlight/index.d.ts +17 -0
- package/dist/highlight/index.js +7 -0
- package/dist/highlight/preview.cjs +81 -0
- package/dist/highlight/preview.d.ts +54 -0
- package/dist/highlight/preview.js +67 -0
- package/dist/instrumenter/index.cjs +70 -60
- package/dist/instrumenter/index.d.ts +8 -7
- package/dist/instrumenter/index.js +98 -88
- package/dist/manager/globals-module-info.cjs +12 -22
- package/dist/manager/globals-module-info.js +2 -12
- package/dist/manager/globals-runtime.js +24173 -23140
- package/dist/manager/runtime.js +3419 -3522
- package/dist/manager-api/index.cjs +1055 -1167
- package/dist/manager-api/index.d.ts +7 -21
- package/dist/manager-api/index.js +761 -877
- package/dist/measure/index.cjs +474 -0
- package/dist/measure/index.d.ts +66 -0
- package/dist/measure/index.js +462 -0
- package/dist/measure/preview.cjs +464 -0
- package/dist/measure/preview.d.ts +59 -0
- package/dist/measure/preview.js +448 -0
- package/dist/outline/index.cjs +528 -0
- package/dist/outline/index.d.ts +66 -0
- package/dist/outline/index.js +500 -0
- package/dist/outline/preview.cjs +518 -0
- package/dist/outline/preview.d.ts +59 -0
- package/dist/outline/preview.js +486 -0
- package/dist/preview/runtime.js +14441 -13330
- package/dist/preview-api/index.cjs +1067 -1071
- package/dist/preview-api/index.d.ts +61 -102
- package/dist/preview-api/index.js +1090 -1092
- package/dist/test/index.cjs +1547 -1546
- package/dist/test/index.js +2308 -2307
- package/dist/test/preview.cjs +1906 -1905
- package/dist/test/preview.d.ts +0 -6
- package/dist/test/preview.js +1439 -1438
- package/dist/test/spy.cjs +65 -64
- package/dist/test/spy.js +59 -58
- package/dist/types/index.cjs +10 -10
- package/dist/types/index.d.ts +206 -243
- package/package.json +121 -16
- package/dist/actions/manager.js +0 -1195
- package/dist/component-testing/manager.js +0 -3126
- package/dist/controls/manager.js +0 -5593
- package/dist/viewport/manager.js +0 -400
- /package/dist/{component-testing/manager.css → core-server/presets/common-manager.css} +0 -0
|
@@ -3,7 +3,7 @@ var i = (e, t) => _c(e, "name", { value: t, configurable: !0 });
|
|
|
3
3
|
var _ = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports);
|
|
4
4
|
|
|
5
5
|
// ../node_modules/has-symbols/shams.js
|
|
6
|
-
var br = _((
|
|
6
|
+
var br = _((Wy, ro) => {
|
|
7
7
|
"use strict";
|
|
8
8
|
ro.exports = /* @__PURE__ */ i(function() {
|
|
9
9
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
@@ -37,7 +37,7 @@ mbol]")
|
|
|
37
37
|
});
|
|
38
38
|
|
|
39
39
|
// ../node_modules/has-tostringtag/shams.js
|
|
40
|
-
var mt = _((
|
|
40
|
+
var mt = _((Yy, no) => {
|
|
41
41
|
"use strict";
|
|
42
42
|
var ru = br();
|
|
43
43
|
no.exports = /* @__PURE__ */ i(function() {
|
|
@@ -46,91 +46,91 @@ var mt = _((Gy, no) => {
|
|
|
46
46
|
});
|
|
47
47
|
|
|
48
48
|
// ../node_modules/es-object-atoms/index.js
|
|
49
|
-
var Sr = _((
|
|
49
|
+
var Sr = _((Hy, oo) => {
|
|
50
50
|
"use strict";
|
|
51
51
|
oo.exports = Object;
|
|
52
52
|
});
|
|
53
53
|
|
|
54
54
|
// ../node_modules/es-errors/index.js
|
|
55
|
-
var so = _((
|
|
55
|
+
var so = _((Jy, io) => {
|
|
56
56
|
"use strict";
|
|
57
57
|
io.exports = Error;
|
|
58
58
|
});
|
|
59
59
|
|
|
60
60
|
// ../node_modules/es-errors/eval.js
|
|
61
|
-
var ao = _((
|
|
61
|
+
var ao = _((Ky, co) => {
|
|
62
62
|
"use strict";
|
|
63
63
|
co.exports = EvalError;
|
|
64
64
|
});
|
|
65
65
|
|
|
66
66
|
// ../node_modules/es-errors/range.js
|
|
67
|
-
var lo = _((
|
|
67
|
+
var lo = _((Xy, uo) => {
|
|
68
68
|
"use strict";
|
|
69
69
|
uo.exports = RangeError;
|
|
70
70
|
});
|
|
71
71
|
|
|
72
72
|
// ../node_modules/es-errors/ref.js
|
|
73
|
-
var po = _((
|
|
73
|
+
var po = _((Zy, fo) => {
|
|
74
74
|
"use strict";
|
|
75
75
|
fo.exports = ReferenceError;
|
|
76
76
|
});
|
|
77
77
|
|
|
78
78
|
// ../node_modules/es-errors/syntax.js
|
|
79
|
-
var Er = _((
|
|
79
|
+
var Er = _((Qy, yo) => {
|
|
80
80
|
"use strict";
|
|
81
81
|
yo.exports = SyntaxError;
|
|
82
82
|
});
|
|
83
83
|
|
|
84
84
|
// ../node_modules/es-errors/type.js
|
|
85
|
-
var We = _((
|
|
85
|
+
var We = _((eg, go) => {
|
|
86
86
|
"use strict";
|
|
87
87
|
go.exports = TypeError;
|
|
88
88
|
});
|
|
89
89
|
|
|
90
90
|
// ../node_modules/es-errors/uri.js
|
|
91
|
-
var ho = _((
|
|
91
|
+
var ho = _((tg, mo) => {
|
|
92
92
|
"use strict";
|
|
93
93
|
mo.exports = URIError;
|
|
94
94
|
});
|
|
95
95
|
|
|
96
96
|
// ../node_modules/math-intrinsics/abs.js
|
|
97
|
-
var So = _((
|
|
97
|
+
var So = _((rg, bo) => {
|
|
98
98
|
"use strict";
|
|
99
99
|
bo.exports = Math.abs;
|
|
100
100
|
});
|
|
101
101
|
|
|
102
102
|
// ../node_modules/math-intrinsics/floor.js
|
|
103
|
-
var Ao = _((
|
|
103
|
+
var Ao = _((ng, Eo) => {
|
|
104
104
|
"use strict";
|
|
105
105
|
Eo.exports = Math.floor;
|
|
106
106
|
});
|
|
107
107
|
|
|
108
108
|
// ../node_modules/math-intrinsics/max.js
|
|
109
|
-
var _o = _((
|
|
109
|
+
var _o = _((og, Oo) => {
|
|
110
110
|
"use strict";
|
|
111
111
|
Oo.exports = Math.max;
|
|
112
112
|
});
|
|
113
113
|
|
|
114
114
|
// ../node_modules/math-intrinsics/min.js
|
|
115
|
-
var To = _((
|
|
115
|
+
var To = _((ig, wo) => {
|
|
116
116
|
"use strict";
|
|
117
117
|
wo.exports = Math.min;
|
|
118
118
|
});
|
|
119
119
|
|
|
120
120
|
// ../node_modules/math-intrinsics/pow.js
|
|
121
|
-
var Co = _((
|
|
121
|
+
var Co = _((sg, Po) => {
|
|
122
122
|
"use strict";
|
|
123
123
|
Po.exports = Math.pow;
|
|
124
124
|
});
|
|
125
125
|
|
|
126
126
|
// ../node_modules/math-intrinsics/round.js
|
|
127
|
-
var Ro = _((
|
|
127
|
+
var Ro = _((cg, $o) => {
|
|
128
128
|
"use strict";
|
|
129
129
|
$o.exports = Math.round;
|
|
130
130
|
});
|
|
131
131
|
|
|
132
132
|
// ../node_modules/math-intrinsics/isNaN.js
|
|
133
|
-
var No = _((
|
|
133
|
+
var No = _((ag, Io) => {
|
|
134
134
|
"use strict";
|
|
135
135
|
Io.exports = Number.isNaN || /* @__PURE__ */ i(function(t) {
|
|
136
136
|
return t !== t;
|
|
@@ -138,7 +138,7 @@ var No = _((cg, Io) => {
|
|
|
138
138
|
});
|
|
139
139
|
|
|
140
140
|
// ../node_modules/math-intrinsics/sign.js
|
|
141
|
-
var Mo = _((
|
|
141
|
+
var Mo = _((lg, jo) => {
|
|
142
142
|
"use strict";
|
|
143
143
|
var nu = No();
|
|
144
144
|
jo.exports = /* @__PURE__ */ i(function(t) {
|
|
@@ -147,13 +147,13 @@ var Mo = _((ug, jo) => {
|
|
|
147
147
|
});
|
|
148
148
|
|
|
149
149
|
// ../node_modules/gopd/gOPD.js
|
|
150
|
-
var vo = _((
|
|
150
|
+
var vo = _((pg, xo) => {
|
|
151
151
|
"use strict";
|
|
152
152
|
xo.exports = Object.getOwnPropertyDescriptor;
|
|
153
153
|
});
|
|
154
154
|
|
|
155
155
|
// ../node_modules/gopd/index.js
|
|
156
|
-
var Ce = _((
|
|
156
|
+
var Ce = _((yg, Fo) => {
|
|
157
157
|
"use strict";
|
|
158
158
|
var ht = vo();
|
|
159
159
|
if (ht)
|
|
@@ -166,7 +166,7 @@ var Ce = _((pg, Fo) => {
|
|
|
166
166
|
});
|
|
167
167
|
|
|
168
168
|
// ../node_modules/es-define-property/index.js
|
|
169
|
-
var Ge = _((
|
|
169
|
+
var Ge = _((gg, Lo) => {
|
|
170
170
|
"use strict";
|
|
171
171
|
var dt = Object.defineProperty || !1;
|
|
172
172
|
if (dt)
|
|
@@ -179,7 +179,7 @@ var Ge = _((yg, Lo) => {
|
|
|
179
179
|
});
|
|
180
180
|
|
|
181
181
|
// ../node_modules/has-symbols/index.js
|
|
182
|
-
var ko = _((
|
|
182
|
+
var ko = _((mg, Bo) => {
|
|
183
183
|
"use strict";
|
|
184
184
|
var Do = typeof Symbol < "u" && Symbol, ou = br();
|
|
185
185
|
Bo.exports = /* @__PURE__ */ i(function() {
|
|
@@ -189,20 +189,20 @@ var ko = _((gg, Bo) => {
|
|
|
189
189
|
});
|
|
190
190
|
|
|
191
191
|
// ../node_modules/get-proto/Reflect.getPrototypeOf.js
|
|
192
|
-
var Ar = _((
|
|
192
|
+
var Ar = _((dg, Uo) => {
|
|
193
193
|
"use strict";
|
|
194
194
|
Uo.exports = typeof Reflect < "u" && Reflect.getPrototypeOf || null;
|
|
195
195
|
});
|
|
196
196
|
|
|
197
197
|
// ../node_modules/get-proto/Object.getPrototypeOf.js
|
|
198
|
-
var Or = _((
|
|
198
|
+
var Or = _((bg, qo) => {
|
|
199
199
|
"use strict";
|
|
200
200
|
var iu = Sr();
|
|
201
201
|
qo.exports = iu.getPrototypeOf || null;
|
|
202
202
|
});
|
|
203
203
|
|
|
204
204
|
// ../node_modules/function-bind/implementation.js
|
|
205
|
-
var Go = _((
|
|
205
|
+
var Go = _((Sg, Wo) => {
|
|
206
206
|
"use strict";
|
|
207
207
|
var su = "Function.prototype.bind called on incompatible ", cu = Object.prototype.toString, au = Math.max, uu = "[object Function]", zo = /* @__PURE__ */ i(
|
|
208
208
|
function(t, r) {
|
|
@@ -248,39 +248,39 @@ var Go = _((bg, Wo) => {
|
|
|
248
248
|
});
|
|
249
249
|
|
|
250
250
|
// ../node_modules/function-bind/index.js
|
|
251
|
-
var $e = _((
|
|
251
|
+
var $e = _((Ag, Yo) => {
|
|
252
252
|
"use strict";
|
|
253
253
|
var pu = Go();
|
|
254
254
|
Yo.exports = Function.prototype.bind || pu;
|
|
255
255
|
});
|
|
256
256
|
|
|
257
257
|
// ../node_modules/call-bind-apply-helpers/functionCall.js
|
|
258
|
-
var bt = _((
|
|
258
|
+
var bt = _((Og, Vo) => {
|
|
259
259
|
"use strict";
|
|
260
260
|
Vo.exports = Function.prototype.call;
|
|
261
261
|
});
|
|
262
262
|
|
|
263
263
|
// ../node_modules/call-bind-apply-helpers/functionApply.js
|
|
264
|
-
var St = _((
|
|
264
|
+
var St = _((_g, Ho) => {
|
|
265
265
|
"use strict";
|
|
266
266
|
Ho.exports = Function.prototype.apply;
|
|
267
267
|
});
|
|
268
268
|
|
|
269
269
|
// ../node_modules/call-bind-apply-helpers/reflectApply.js
|
|
270
|
-
var Ko = _((
|
|
270
|
+
var Ko = _((wg, Jo) => {
|
|
271
271
|
"use strict";
|
|
272
272
|
Jo.exports = typeof Reflect < "u" && Reflect && Reflect.apply;
|
|
273
273
|
});
|
|
274
274
|
|
|
275
275
|
// ../node_modules/call-bind-apply-helpers/actualApply.js
|
|
276
|
-
var _r = _((
|
|
276
|
+
var _r = _((Tg, Xo) => {
|
|
277
277
|
"use strict";
|
|
278
278
|
var yu = $e(), gu = St(), mu = bt(), hu = Ko();
|
|
279
279
|
Xo.exports = hu || yu.call(mu, gu);
|
|
280
280
|
});
|
|
281
281
|
|
|
282
282
|
// ../node_modules/call-bind-apply-helpers/index.js
|
|
283
|
-
var Et = _((
|
|
283
|
+
var Et = _((Pg, Zo) => {
|
|
284
284
|
"use strict";
|
|
285
285
|
var du = $e(), bu = We(), Su = bt(), Eu = _r();
|
|
286
286
|
Zo.exports = /* @__PURE__ */ i(function(t) {
|
|
@@ -291,7 +291,7 @@ var Et = _((Tg, Zo) => {
|
|
|
291
291
|
});
|
|
292
292
|
|
|
293
293
|
// ../node_modules/dunder-proto/get.js
|
|
294
|
-
var oi = _((
|
|
294
|
+
var oi = _(($g, ni) => {
|
|
295
295
|
"use strict";
|
|
296
296
|
var Au = Et(), Qo = Ce(), ti;
|
|
297
297
|
try {
|
|
@@ -315,7 +315,7 @@ var oi = _((Cg, ni) => {
|
|
|
315
315
|
});
|
|
316
316
|
|
|
317
317
|
// ../node_modules/get-proto/index.js
|
|
318
|
-
var ui = _((
|
|
318
|
+
var ui = _((Ig, ai) => {
|
|
319
319
|
"use strict";
|
|
320
320
|
var ii = Ar(), si = Or(), ci = oi();
|
|
321
321
|
ai.exports = ii ? /* @__PURE__ */ i(function(t) {
|
|
@@ -330,14 +330,14 @@ var ui = _((Rg, ai) => {
|
|
|
330
330
|
});
|
|
331
331
|
|
|
332
332
|
// ../node_modules/hasown/index.js
|
|
333
|
-
var fi = _((
|
|
333
|
+
var fi = _((jg, li) => {
|
|
334
334
|
"use strict";
|
|
335
335
|
var Ou = Function.prototype.call, _u = Object.prototype.hasOwnProperty, wu = $e();
|
|
336
336
|
li.exports = wu.call(Ou, _u);
|
|
337
337
|
});
|
|
338
338
|
|
|
339
339
|
// ../node_modules/get-intrinsic/index.js
|
|
340
|
-
var _t = _((
|
|
340
|
+
var _t = _((Mg, di) => {
|
|
341
341
|
"use strict";
|
|
342
342
|
var R, Tu = Sr(), Pu = so(), Cu = ao(), $u = lo(), Ru = po(), je = Er(), Ne = We(), Iu = ho(), Nu = So(), ju = Ao(), Mu = _o(), xu = To(),
|
|
343
343
|
vu = Co(), Fu = Ro(), Lu = Mo(), mi = Function, Tr = /* @__PURE__ */ i(function(e) {
|
|
@@ -576,7 +576,7 @@ var _t = _((jg, di) => {
|
|
|
576
576
|
});
|
|
577
577
|
|
|
578
578
|
// ../node_modules/define-data-property/index.js
|
|
579
|
-
var Ai = _((
|
|
579
|
+
var Ai = _((vg, Ei) => {
|
|
580
580
|
"use strict";
|
|
581
581
|
var bi = Ge(), Xu = Er(), Me = We(), Si = Ce();
|
|
582
582
|
Ei.exports = /* @__PURE__ */ i(function(t, r, n) {
|
|
@@ -609,7 +609,7 @@ var Ai = _((xg, Ei) => {
|
|
|
609
609
|
});
|
|
610
610
|
|
|
611
611
|
// ../node_modules/has-property-descriptors/index.js
|
|
612
|
-
var wi = _((
|
|
612
|
+
var wi = _((Lg, _i) => {
|
|
613
613
|
"use strict";
|
|
614
614
|
var Cr = Ge(), Oi = /* @__PURE__ */ i(function() {
|
|
615
615
|
return !!Cr;
|
|
@@ -627,7 +627,7 @@ var wi = _((Fg, _i) => {
|
|
|
627
627
|
});
|
|
628
628
|
|
|
629
629
|
// ../node_modules/set-function-length/index.js
|
|
630
|
-
var Ri = _((
|
|
630
|
+
var Ri = _((Bg, $i) => {
|
|
631
631
|
"use strict";
|
|
632
632
|
var Zu = _t(), Ti = Ai(), Qu = wi()(), Pi = Ce(), Ci = We(), el = Zu("%Math.floor%");
|
|
633
633
|
$i.exports = /* @__PURE__ */ i(function(t, r) {
|
|
@@ -657,7 +657,7 @@ var Ri = _((Dg, $i) => {
|
|
|
657
657
|
});
|
|
658
658
|
|
|
659
659
|
// ../node_modules/call-bind-apply-helpers/applyBind.js
|
|
660
|
-
var Ni = _((
|
|
660
|
+
var Ni = _((Ug, Ii) => {
|
|
661
661
|
"use strict";
|
|
662
662
|
var tl = $e(), rl = St(), nl = _r();
|
|
663
663
|
Ii.exports = /* @__PURE__ */ i(function() {
|
|
@@ -666,7 +666,7 @@ var Ni = _((kg, Ii) => {
|
|
|
666
666
|
});
|
|
667
667
|
|
|
668
668
|
// ../node_modules/call-bind/index.js
|
|
669
|
-
var $r = _((
|
|
669
|
+
var $r = _((zg, wt) => {
|
|
670
670
|
"use strict";
|
|
671
671
|
var ol = Ri(), ji = Ge(), il = Et(), Mi = Ni();
|
|
672
672
|
wt.exports = /* @__PURE__ */ i(function(t) {
|
|
@@ -681,7 +681,7 @@ var $r = _((qg, wt) => {
|
|
|
681
681
|
});
|
|
682
682
|
|
|
683
683
|
// ../node_modules/call-bind/callBound.js
|
|
684
|
-
var Li = _((
|
|
684
|
+
var Li = _((Gg, Fi) => {
|
|
685
685
|
"use strict";
|
|
686
686
|
var xi = _t(), vi = $r(), sl = vi(xi("String.prototype.indexOf"));
|
|
687
687
|
Fi.exports = /* @__PURE__ */ i(function(t, r) {
|
|
@@ -691,7 +691,7 @@ var Li = _((Wg, Fi) => {
|
|
|
691
691
|
});
|
|
692
692
|
|
|
693
693
|
// ../node_modules/is-arguments/index.js
|
|
694
|
-
var ki = _((
|
|
694
|
+
var ki = _((Vg, Bi) => {
|
|
695
695
|
"use strict";
|
|
696
696
|
var cl = mt()(), al = Li(), Rr = al("Object.prototype.toString"), Tt = /* @__PURE__ */ i(function(t) {
|
|
697
697
|
return cl && t && typeof t == "object" && Symbol.toStringTag in t ? !1 : Rr(t) === "[object Arguments]";
|
|
@@ -706,7 +706,7 @@ var ki = _((Yg, Bi) => {
|
|
|
706
706
|
});
|
|
707
707
|
|
|
708
708
|
// ../node_modules/is-generator-function/index.js
|
|
709
|
-
var zi = _((
|
|
709
|
+
var zi = _((Jg, qi) => {
|
|
710
710
|
"use strict";
|
|
711
711
|
var ll = Object.prototype.toString, fl = Function.prototype.toString, pl = /^\s*(?:function)?\*/, Ui = mt()(), Ir = Object.getPrototypeOf,
|
|
712
712
|
yl = /* @__PURE__ */ i(function() {
|
|
@@ -737,7 +737,7 @@ var zi = _((Hg, qi) => {
|
|
|
737
737
|
});
|
|
738
738
|
|
|
739
739
|
// ../node_modules/is-callable/index.js
|
|
740
|
-
var Vi = _((
|
|
740
|
+
var Vi = _((Xg, Yi) => {
|
|
741
741
|
"use strict";
|
|
742
742
|
var Gi = Function.prototype.toString, xe = typeof Reflect == "object" && Reflect !== null && Reflect.apply, Mr, Pt;
|
|
743
743
|
if (typeof xe == "function" && typeof Object.defineProperty == "function")
|
|
@@ -809,7 +809,7 @@ n" && !!Symbol.toStringTag, Ol = !(0 in [,]), vr = /* @__PURE__ */ i(function()
|
|
|
809
809
|
});
|
|
810
810
|
|
|
811
811
|
// ../node_modules/for-each/index.js
|
|
812
|
-
var Ki = _((
|
|
812
|
+
var Ki = _((Qg, Ji) => {
|
|
813
813
|
"use strict";
|
|
814
814
|
var _l = Vi(), wl = Object.prototype.toString, Hi = Object.prototype.hasOwnProperty, Tl = /* @__PURE__ */ i(function(t, r, n) {
|
|
815
815
|
for (var o = 0, s = t.length; o < s; o++)
|
|
@@ -830,7 +830,7 @@ var Ki = _((Zg, Ji) => {
|
|
|
830
830
|
});
|
|
831
831
|
|
|
832
832
|
// ../node_modules/possible-typed-array-names/index.js
|
|
833
|
-
var Zi = _((
|
|
833
|
+
var Zi = _((tm, Xi) => {
|
|
834
834
|
"use strict";
|
|
835
835
|
Xi.exports = [
|
|
836
836
|
"Float32Array",
|
|
@@ -848,7 +848,7 @@ var Zi = _((em, Xi) => {
|
|
|
848
848
|
});
|
|
849
849
|
|
|
850
850
|
// ../node_modules/available-typed-arrays/index.js
|
|
851
|
-
var es = _((
|
|
851
|
+
var es = _((rm, Qi) => {
|
|
852
852
|
"use strict";
|
|
853
853
|
var Fr = Zi(), Rl = typeof globalThis > "u" ? global : globalThis;
|
|
854
854
|
Qi.exports = /* @__PURE__ */ i(function() {
|
|
@@ -859,7 +859,7 @@ var es = _((tm, Qi) => {
|
|
|
859
859
|
});
|
|
860
860
|
|
|
861
861
|
// ../node_modules/call-bound/index.js
|
|
862
|
-
var os = _((
|
|
862
|
+
var os = _((om, ns) => {
|
|
863
863
|
"use strict";
|
|
864
864
|
var ts = _t(), rs = Et(), Il = rs([ts("%String.prototype.indexOf%")]);
|
|
865
865
|
ns.exports = /* @__PURE__ */ i(function(t, r) {
|
|
@@ -872,7 +872,7 @@ var os = _((nm, ns) => {
|
|
|
872
872
|
});
|
|
873
873
|
|
|
874
874
|
// ../node_modules/which-typed-array/index.js
|
|
875
|
-
var Ur = _((
|
|
875
|
+
var Ur = _((sm, as) => {
|
|
876
876
|
"use strict";
|
|
877
877
|
var Rt = Ki(), Nl = es(), is = $r(), Br = os(), $t = Ce(), jl = Br("Object.prototype.toString"), cs = mt()(), ss = typeof globalThis > "u" ?
|
|
878
878
|
global : globalThis, Dr = Nl(), kr = Br("String.prototype.slice"), Lr = Object.getPrototypeOf, Ml = Br("Array.prototype.indexOf", !0) || /* @__PURE__ */ i(
|
|
@@ -941,7 +941,7 @@ var Ur = _((im, as) => {
|
|
|
941
941
|
});
|
|
942
942
|
|
|
943
943
|
// ../node_modules/is-typed-array/index.js
|
|
944
|
-
var ls = _((
|
|
944
|
+
var ls = _((am, us) => {
|
|
945
945
|
"use strict";
|
|
946
946
|
var Fl = Ur();
|
|
947
947
|
us.exports = /* @__PURE__ */ i(function(t) {
|
|
@@ -1183,14 +1183,14 @@ var ws = _((C) => {
|
|
|
1183
1183
|
});
|
|
1184
1184
|
|
|
1185
1185
|
// ../node_modules/util/support/isBufferBrowser.js
|
|
1186
|
-
var Ps = _((
|
|
1186
|
+
var Ps = _((pm, Ts) => {
|
|
1187
1187
|
Ts.exports = /* @__PURE__ */ i(function(t) {
|
|
1188
1188
|
return t && typeof t == "object" && typeof t.copy == "function" && typeof t.fill == "function" && typeof t.readUInt8 == "function";
|
|
1189
1189
|
}, "isBuffer");
|
|
1190
1190
|
});
|
|
1191
1191
|
|
|
1192
1192
|
// ../node_modules/inherits/inherits_browser.js
|
|
1193
|
-
var Cs = _((
|
|
1193
|
+
var Cs = _((gm, Wr) => {
|
|
1194
1194
|
typeof Object.create == "function" ? Wr.exports = /* @__PURE__ */ i(function(t, r) {
|
|
1195
1195
|
r && (t.super_ = r, t.prototype = Object.create(r.prototype, {
|
|
1196
1196
|
constructor: {
|
|
@@ -2262,10 +2262,10 @@ o"), h = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), m = !1, p
|
|
|
2262
2262
|
return ee || (ee = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
2263
2263
|
}
|
|
2264
2264
|
i(J, "isAsyncMode");
|
|
2265
|
-
function
|
|
2265
|
+
function le(w) {
|
|
2266
2266
|
return k || (k = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
2267
2267
|
}
|
|
2268
|
-
i(
|
|
2268
|
+
i(le, "isConcurrentMode");
|
|
2269
2269
|
function K(w) {
|
|
2270
2270
|
return E(w) === c;
|
|
2271
2271
|
}
|
|
@@ -2286,10 +2286,10 @@ o"), h = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), m = !1, p
|
|
|
2286
2286
|
return E(w) === r;
|
|
2287
2287
|
}
|
|
2288
2288
|
i(H, "isFragment");
|
|
2289
|
-
function
|
|
2289
|
+
function fe(w) {
|
|
2290
2290
|
return E(w) === h;
|
|
2291
2291
|
}
|
|
2292
|
-
i(
|
|
2292
|
+
i(fe, "isLazy");
|
|
2293
2293
|
function Te(w) {
|
|
2294
2294
|
return E(w) === l;
|
|
2295
2295
|
}
|
|
@@ -2314,8 +2314,8 @@ o"), h = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), m = !1, p
|
|
|
2314
2314
|
return E(w) === y;
|
|
2315
2315
|
}
|
|
2316
2316
|
i(Oc, "isSuspenseList"), I.ContextConsumer = P, I.ContextProvider = O, I.Element = N, I.ForwardRef = Z, I.Fragment = oe, I.Lazy = v, I.Memo =
|
|
2317
|
-
z, I.Portal = Q, I.Profiler = Y, I.StrictMode = x, I.Suspense = L, I.SuspenseList = D, I.isAsyncMode = J, I.isConcurrentMode =
|
|
2318
|
-
K, I.isContextProvider = X, I.isElement = pe, I.isForwardRef = te, I.isFragment = H, I.isLazy =
|
|
2317
|
+
z, I.Portal = Q, I.Profiler = Y, I.StrictMode = x, I.Suspense = L, I.SuspenseList = D, I.isAsyncMode = J, I.isConcurrentMode = le, I.isContextConsumer =
|
|
2318
|
+
K, I.isContextProvider = X, I.isElement = pe, I.isForwardRef = te, I.isFragment = H, I.isLazy = fe, I.isMemo = Te, I.isPortal = me, I.isProfiler =
|
|
2319
2319
|
ke, I.isStrictMode = et, I.isSuspense = tt, I.isSuspenseList = Oc, I.isValidElementType = b, I.typeOf = E;
|
|
2320
2320
|
}()), I;
|
|
2321
2321
|
}
|
|
@@ -3532,10 +3532,10 @@ function Yf() {
|
|
|
3532
3532
|
}, "extendPathsR"), c = /* @__PURE__ */ i((g, m, p, d, S, A, T, b, E, P, O) => {
|
|
3533
3533
|
let N = d - m, Z = p - m, v = S - d - Z, z = -v - (g - 1), Q = -v + (g - 1), Y = t, x = g < b ? g : b;
|
|
3534
3534
|
for (let L = 0, D = -g; L <= x; L += 1, D += 2) {
|
|
3535
|
-
let ee = L === 0 || L !== g && Y < T[L], k = ee ? T[L] : Y, J = ee ? k : k + 1,
|
|
3535
|
+
let ee = L === 0 || L !== g && Y < T[L], k = ee ? T[L] : Y, J = ee ? k : k + 1, le = N + J - D, K = r(
|
|
3536
3536
|
J + 1,
|
|
3537
3537
|
p,
|
|
3538
|
-
|
|
3538
|
+
le + 1,
|
|
3539
3539
|
S,
|
|
3540
3540
|
A
|
|
3541
3541
|
), X = J + K;
|
|
@@ -3548,11 +3548,11 @@ function Yf() {
|
|
|
3548
3548
|
d,
|
|
3549
3549
|
te,
|
|
3550
3550
|
A
|
|
3551
|
-
),
|
|
3551
|
+
), fe = k - H, Te = te - H, me = fe + 1, ke = Te + 1;
|
|
3552
3552
|
O.nChangePreceding = g - 1, g - 1 === me + ke - m - d ? (O.aEndPreceding = m, O.bEndPreceding = d) : (O.aEndPreceding = me, O.bEndPreceding =
|
|
3553
3553
|
ke), O.nCommonPreceding = H, H !== 0 && (O.aCommonPreceding = me, O.bCommonPreceding = ke), O.nCommonFollowing = K, K !== 0 && (O.
|
|
3554
|
-
aCommonFollowing = J + 1, O.bCommonFollowing =
|
|
3555
|
-
let et = X + 1, tt =
|
|
3554
|
+
aCommonFollowing = J + 1, O.bCommonFollowing = le + 1);
|
|
3555
|
+
let et = X + 1, tt = le + K + 1;
|
|
3556
3556
|
return O.nChangeFollowing = g - 1, g - 1 === p + S - et - tt ? (O.aStartFollowing = p, O.bStartFollowing = S) : (O.aStartFollowing =
|
|
3557
3557
|
et, O.bStartFollowing = tt), !0;
|
|
3558
3558
|
}
|
|
@@ -3562,30 +3562,30 @@ function Yf() {
|
|
|
3562
3562
|
}, "extendOverlappablePathsF"), u = /* @__PURE__ */ i((g, m, p, d, S, A, T, b, E, P, O) => {
|
|
3563
3563
|
let N = S - p, Z = p - m, v = S - d - Z, z = v - g, Q = v + g, Y = t, x = g < P ? g : P;
|
|
3564
3564
|
for (let L = 0, D = g; L <= x; L += 1, D -= 2) {
|
|
3565
|
-
let ee = L === 0 || L !== g && E[L] < Y, k = ee ? E[L] : Y, J = ee ? k : k - 1,
|
|
3565
|
+
let ee = L === 0 || L !== g && E[L] < Y, k = ee ? E[L] : Y, J = ee ? k : k - 1, le = N + J - D, K = n(
|
|
3566
3566
|
m,
|
|
3567
3567
|
J - 1,
|
|
3568
3568
|
d,
|
|
3569
|
-
|
|
3569
|
+
le - 1,
|
|
3570
3570
|
A
|
|
3571
3571
|
), X = J - K;
|
|
3572
3572
|
if (Y = E[L], E[L] = X, z <= D && D <= Q) {
|
|
3573
3573
|
let pe = (g + (D - v)) / 2;
|
|
3574
3574
|
if (pe <= b && X - 1 <= T[pe]) {
|
|
3575
|
-
let te =
|
|
3575
|
+
let te = le - K;
|
|
3576
3576
|
if (O.nChangePreceding = g, g === X + te - m - d ? (O.aEndPreceding = m, O.bEndPreceding = d) : (O.aEndPreceding = X, O.bEndPreceding =
|
|
3577
3577
|
te), O.nCommonPreceding = K, K !== 0 && (O.aCommonPreceding = X, O.bCommonPreceding = te), O.nChangeFollowing = g - 1, g === 1)
|
|
3578
3578
|
O.nCommonFollowing = 0, O.aStartFollowing = p, O.bStartFollowing = S;
|
|
3579
3579
|
else {
|
|
3580
|
-
let H = N + k - (ee ? D - 1 : D + 1),
|
|
3580
|
+
let H = N + k - (ee ? D - 1 : D + 1), fe = r(
|
|
3581
3581
|
k,
|
|
3582
3582
|
p,
|
|
3583
3583
|
H,
|
|
3584
3584
|
S,
|
|
3585
3585
|
A
|
|
3586
3586
|
);
|
|
3587
|
-
O.nCommonFollowing =
|
|
3588
|
-
let Te = k +
|
|
3587
|
+
O.nCommonFollowing = fe, fe !== 0 && (O.aCommonFollowing = k, O.bCommonFollowing = H);
|
|
3588
|
+
let Te = k + fe, me = H + fe;
|
|
3589
3589
|
g - 1 === p + S - Te - me ? (O.aStartFollowing = p, O.bStartFollowing = S) : (O.aStartFollowing = Te, O.bStartFollowing = me);
|
|
3590
3590
|
}
|
|
3591
3591
|
return !0;
|
|
@@ -3658,14 +3658,14 @@ function Yf() {
|
|
|
3658
3658
|
if (A = !A, A && T.length === 1) {
|
|
3659
3659
|
let { foundSubsequence: X, isCommon: pe } = T[0];
|
|
3660
3660
|
T[1] = {
|
|
3661
|
-
foundSubsequence: /* @__PURE__ */ i((te, H,
|
|
3662
|
-
X(te,
|
|
3661
|
+
foundSubsequence: /* @__PURE__ */ i((te, H, fe) => {
|
|
3662
|
+
X(te, fe, H);
|
|
3663
3663
|
}, "foundSubsequence"),
|
|
3664
3664
|
isCommon: /* @__PURE__ */ i((te, H) => pe(H, te), "isCommon")
|
|
3665
3665
|
};
|
|
3666
3666
|
}
|
|
3667
|
-
let
|
|
3668
|
-
m = d, p = S, d =
|
|
3667
|
+
let le = m, K = p;
|
|
3668
|
+
m = d, p = S, d = le, S = K;
|
|
3669
3669
|
}
|
|
3670
3670
|
let { foundSubsequence: O, isCommon: N } = T[A ? 1 : 0];
|
|
3671
3671
|
a(
|
|
@@ -4594,11 +4594,8 @@ Inner error message: ${n?.message}`
|
|
|
4594
4594
|
}
|
|
4595
4595
|
i(pn, "processError");
|
|
4596
4596
|
|
|
4597
|
-
// src/instrumenter/
|
|
4598
|
-
var
|
|
4599
|
-
|
|
4600
|
-
// src/instrumenter/instrumenter.ts
|
|
4601
|
-
var fe = {
|
|
4597
|
+
// src/instrumenter/EVENTS.ts
|
|
4598
|
+
var ue = {
|
|
4602
4599
|
CALL: "storybook/instrumenter/call",
|
|
4603
4600
|
SYNC: "storybook/instrumenter/sync",
|
|
4604
4601
|
START: "storybook/instrumenter/start",
|
|
@@ -4606,7 +4603,13 @@ var fe = {
|
|
|
4606
4603
|
GOTO: "storybook/instrumenter/goto",
|
|
4607
4604
|
NEXT: "storybook/instrumenter/next",
|
|
4608
4605
|
END: "storybook/instrumenter/end"
|
|
4609
|
-
}
|
|
4606
|
+
};
|
|
4607
|
+
|
|
4608
|
+
// src/instrumenter/types.ts
|
|
4609
|
+
var Pp = /* @__PURE__ */ ((o) => (o.DONE = "done", o.ERROR = "error", o.ACTIVE = "active", o.WAITING = "waiting", o))(Pp || {});
|
|
4610
|
+
|
|
4611
|
+
// src/instrumenter/instrumenter.ts
|
|
4612
|
+
var Sc = {
|
|
4610
4613
|
start: !1,
|
|
4611
4614
|
back: !1,
|
|
4612
4615
|
goto: !1,
|
|
@@ -4721,8 +4724,8 @@ prototype.toString.call(e) === "[object Module]", "isModule"), jp = /* @__PURE__
|
|
|
4721
4724
|
(a ? a.ready() : Promise.resolve()).then(() => {
|
|
4722
4725
|
this.channel = a.getChannel(), this.channel.on(bc, t), this.channel.on(Rp, u), this.channel.on($p, () => {
|
|
4723
4726
|
this.initialized ? this.cleanup() : this.initialized = !0;
|
|
4724
|
-
}), this.channel.on(
|
|
4725
|
-
this.channel.on(
|
|
4727
|
+
}), this.channel.on(ue.START, r(this.channel)), this.channel.on(ue.BACK, n(this.channel)), this.channel.on(ue.GOTO, o(this.channel)),
|
|
4728
|
+
this.channel.on(ue.NEXT, s(this.channel)), this.channel.on(ue.END, c);
|
|
4726
4729
|
});
|
|
4727
4730
|
});
|
|
4728
4731
|
}
|
|
@@ -4743,7 +4746,7 @@ prototype.toString.call(e) === "[object Module]", "isModule"), jp = /* @__PURE__
|
|
|
4743
4746
|
{}
|
|
4744
4747
|
);
|
|
4745
4748
|
let t = { controlStates: Sc, logItems: [] };
|
|
4746
|
-
this.channel?.emit(
|
|
4749
|
+
this.channel?.emit(ue.SYNC, t), V.window?.parent && (V.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__ = this.state);
|
|
4747
4750
|
}
|
|
4748
4751
|
getLog(t) {
|
|
4749
4752
|
let { calls: r, shadowCalls: n } = this.getState(t), o = [...n];
|
|
@@ -4872,8 +4875,8 @@ prototype.toString.call(e) === "[object Module]", "isModule"), jp = /* @__PURE__
|
|
|
4872
4875
|
try {
|
|
4873
4876
|
if (c === "played" && !n.retain)
|
|
4874
4877
|
throw Ip;
|
|
4875
|
-
let h = (o.getArgs ? o.getArgs(n, this.getState(n.storyId)) : n.args).map((m) => typeof m != "function" || Object.keys(m).length ?
|
|
4876
|
-
(...p) => {
|
|
4878
|
+
let h = (o.getArgs ? o.getArgs(n, this.getState(n.storyId)) : n.args).map((m) => typeof m != "function" || Fp(m) || Object.keys(m).length ?
|
|
4879
|
+
m : (...p) => {
|
|
4877
4880
|
let { cursor: d, ancestors: S } = this.getState(n.storyId);
|
|
4878
4881
|
this.setState(n.storyId, { cursor: 0, ancestors: [...S, n.id] });
|
|
4879
4882
|
let A = /* @__PURE__ */ i(() => this.setState(n.storyId, { cursor: d, ancestors: S }), "restore"), T = !1;
|
|
@@ -4899,7 +4902,7 @@ prototype.toString.call(e) === "[object Module]", "isModule"), jp = /* @__PURE__
|
|
|
4899
4902
|
}
|
|
4900
4903
|
// Sends the call info to the manager and synchronizes the log.
|
|
4901
4904
|
update(t) {
|
|
4902
|
-
this.channel?.emit(
|
|
4905
|
+
this.channel?.emit(ue.CALL, t), this.setState(t.storyId, ({ calls: r }) => {
|
|
4903
4906
|
let n = r.concat(t).reduce((o, s) => Object.assign(o, { [s.id]: s }), {});
|
|
4904
4907
|
return {
|
|
4905
4908
|
// Calls are sorted to ensure parent calls always come before calls in their callback.
|
|
@@ -4917,7 +4920,7 @@ prototype.toString.call(e) === "[object Module]", "isModule"), jp = /* @__PURE__
|
|
|
4917
4920
|
status === "waiting")?.callId, u = s.some((l) => l.status === "active");
|
|
4918
4921
|
if (n || u || s.length === 0) {
|
|
4919
4922
|
let l = { controlStates: Sc, logItems: s };
|
|
4920
|
-
this.channel?.emit(
|
|
4923
|
+
this.channel?.emit(ue.SYNC, l);
|
|
4921
4924
|
return;
|
|
4922
4925
|
}
|
|
4923
4926
|
let a = s.some(
|
|
@@ -4929,7 +4932,7 @@ prototype.toString.call(e) === "[object Module]", "isModule"), jp = /* @__PURE__
|
|
|
4929
4932
|
next: o,
|
|
4930
4933
|
end: o
|
|
4931
4934
|
}, logItems: s, pausedAt: c };
|
|
4932
|
-
this.channel?.emit(
|
|
4935
|
+
this.channel?.emit(ue.SYNC, y);
|
|
4933
4936
|
}, "synchronize");
|
|
4934
4937
|
this.setState(t, ({ syncTimeout: n }) => (clearTimeout(n), { syncTimeout: setTimeout(r, 0) }));
|
|
4935
4938
|
}
|
|
@@ -4957,8 +4960,15 @@ function vp(e, t) {
|
|
|
4957
4960
|
}
|
|
4958
4961
|
}
|
|
4959
4962
|
i(vp, "getPropertyDescriptor");
|
|
4963
|
+
function Fp(e) {
|
|
4964
|
+
if (typeof e != "function")
|
|
4965
|
+
return !1;
|
|
4966
|
+
let t = Object.getOwnPropertyDescriptor(e, "prototype");
|
|
4967
|
+
return t ? !t.writable : !1;
|
|
4968
|
+
}
|
|
4969
|
+
i(Fp, "isClass");
|
|
4960
4970
|
export {
|
|
4961
4971
|
Pp as CallStates,
|
|
4962
|
-
|
|
4972
|
+
ue as EVENTS,
|
|
4963
4973
|
xp as instrument
|
|
4964
4974
|
};
|