storybook 10.0.0-beta.4 → 10.0.0-beta.6
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/openBrowser.applescript +94 -0
- package/dist/_browser-chunks/Color-KPLIACXP.js +1569 -0
- package/dist/_browser-chunks/{WithTooltip-ERFLZL6W.js → WithTooltip-SK46ZJ2J.js} +1 -1
- package/dist/_browser-chunks/{chunk-YY5GICNT.js → chunk-6E2SHJSL.js} +175 -32
- package/dist/_browser-chunks/{chunk-MZNYTCNT.js → chunk-AM4PZYVQ.js} +10 -63
- package/dist/_browser-chunks/{chunk-EOILZP2R.js → chunk-BOOOPFZF.js} +7 -2
- package/dist/_browser-chunks/{chunk-YWDKX534.js → chunk-FA42P6MO.js} +49 -4
- package/dist/_browser-chunks/chunk-G33S6YM3.js +521 -0
- package/dist/_browser-chunks/chunk-GJ67EE65.js +67 -0
- package/dist/_browser-chunks/{chunk-4QPX7WIQ.js → chunk-JJZMHC3A.js} +57 -166
- package/dist/_browser-chunks/{chunk-MD2FTHCZ.js → chunk-JVSKG4YS.js} +3 -16
- package/dist/_browser-chunks/{chunk-E7VLET3C.js → chunk-KSCAWCCE.js} +3947 -4291
- package/dist/_browser-chunks/chunk-QK3L5AXO.js +372 -0
- package/dist/_browser-chunks/chunk-VUAFL5XK.js +20 -0
- package/dist/_browser-chunks/{chunk-T7RCAJIX.js → chunk-Y3M7TW6K.js} +43 -47
- package/dist/_browser-chunks/{chunk-PYK5ZTFK.js → chunk-YQV3EGQ5.js} +5 -5
- package/dist/_browser-chunks/{syntaxhighlighter-YYAA4CS4.js → syntaxhighlighter-RJW7FE3A.js} +3 -2
- package/dist/_node-chunks/{builder-manager-IKHPPPFE.js → builder-manager-V33CQT2M.js} +26 -151
- package/dist/_node-chunks/camelcase-BZ55OCHI.js +18 -0
- package/dist/_node-chunks/{chunk-5OILJTZE.js → chunk-2DMFI367.js} +7 -7
- package/dist/_node-chunks/{chunk-DCHFG5TX.js → chunk-4TOI4VSK.js} +7 -7
- package/dist/_node-chunks/{chunk-XA4TAMUS.js → chunk-55VWKF63.js} +710 -935
- package/dist/_node-chunks/{chunk-N3GFXZDP.js → chunk-5IEY46LQ.js} +7 -7
- package/dist/_node-chunks/{chunk-YRPXGWKW.js → chunk-6PTV7XGR.js} +8 -8
- package/dist/_node-chunks/{chunk-4FMOVB65.js → chunk-7NJGTQ3W.js} +223 -243
- package/dist/_node-chunks/{chunk-4VGW2SQA.js → chunk-7WH7AGOR.js} +7 -7
- package/dist/_node-chunks/{camelcase-O2O7JODG.js → chunk-A7CUP23N.js} +9 -8
- package/dist/_node-chunks/{chunk-XT6O5CVI.js → chunk-B3AMFGAL.js} +30 -21
- package/dist/_node-chunks/{chunk-IB5AEYPX.js → chunk-BNOZ3EKF.js} +7 -7
- package/dist/_node-chunks/{chunk-TTQRDWDJ.js → chunk-DC7OWBHB.js} +12 -12
- package/dist/_node-chunks/{chunk-3J7DQ6TI.js → chunk-E6TLN2J2.js} +7 -7
- package/dist/_node-chunks/{chunk-JP4LEAXM.js → chunk-EAOPWIKA.js} +623 -750
- package/dist/_node-chunks/{chunk-YJHXEN7U.js → chunk-EY5PTUZL.js} +583 -180
- package/dist/_node-chunks/{chunk-JSSBBVU5.js → chunk-F3PO67U3.js} +7 -7
- package/dist/_node-chunks/chunk-FDDJHDCE.js +62 -0
- package/dist/_node-chunks/{chunk-6COBULLV.js → chunk-HEBHWRWL.js} +162 -103
- package/dist/_node-chunks/{chunk-USDZSU5L.js → chunk-HPFXREVG.js} +7 -7
- package/dist/_node-chunks/{chunk-JECCFKKM.js → chunk-IINJT47N.js} +7 -7
- package/dist/_node-chunks/{chunk-OL2HWCBH.js → chunk-JNHUDBJL.js} +7 -7
- package/dist/_node-chunks/{chunk-NF3GXIEK.js → chunk-JOXYGIZK.js} +9 -9
- package/dist/_node-chunks/{chunk-NOSGJ5PL.js → chunk-MLBTKECD.js} +7 -7
- package/dist/_node-chunks/{chunk-TYGVOW7L.js → chunk-NJXBURX7.js} +8 -8
- package/dist/_node-chunks/{chunk-AXFNB3AN.js → chunk-NKZ4UPPV.js} +7 -7
- package/dist/_node-chunks/{chunk-HAVE6SGK.js → chunk-NUVGSFQI.js} +7 -7
- package/dist/_node-chunks/chunk-R5DIBOM6.js +18 -0
- package/dist/_node-chunks/{chunk-AC3BNULF.js → chunk-RIPA4LFD.js} +22 -22
- package/dist/_node-chunks/{chunk-TBAIXCHN.js → chunk-TJIMCNYJ.js} +8 -8
- package/dist/_node-chunks/{chunk-SF2IETZ2.js → chunk-UYKQJMQY.js} +36 -23
- package/dist/_node-chunks/{chunk-7IIAUEWB.js → chunk-VQH4ZFTS.js} +8 -8
- package/dist/_node-chunks/{chunk-FWFQ2GU7.js → chunk-VSC6LSCQ.js} +6 -6
- package/dist/_node-chunks/{chunk-MOO2Y4GI.js → chunk-XZTBG2TG.js} +6 -6
- package/dist/_node-chunks/{dist-BMKSKYDI.js → dist-CGGAYWME.js} +9 -9
- package/dist/_node-chunks/{globby-DASPUXWI.js → globby-3IFB7BJC.js} +17 -13
- package/dist/_node-chunks/{lib-L6BIH4EV.js → lib-IT6OBSID.js} +36 -12
- package/dist/_node-chunks/{mdx-N42X6CFJ-2COTUDSL.js → mdx-N42X6CFJ-WM36SSZ6.js} +8 -8
- package/dist/_node-chunks/{p-limit-HVR3I7TJ.js → p-limit-3V5XIKA7.js} +7 -7
- package/dist/_node-chunks/{plugin-FZOHPRK7.js → plugin-3YREMMJJ.js} +10 -10
- package/dist/_node-chunks/{plugin-2XPSFYWZ.js → plugin-GJUBUKCT.js} +10 -10
- package/dist/_node-chunks/{webpack-inject-mocker-runtime-plugin-FGQM2EPC.js → webpack-inject-mocker-runtime-plugin-DCJQFJQ5.js} +1307 -847
- package/dist/_node-chunks/{webpack-mock-plugin-4HOAIYSX.js → webpack-mock-plugin-XJNFAHBI.js} +9 -9
- package/dist/babel/index.d.ts +1 -1
- package/dist/babel/index.js +11 -11
- package/dist/bin/core.js +638 -187
- package/dist/bin/dispatcher.js +11 -11
- package/dist/bin/loader.js +8 -8
- package/dist/cli/index.d.ts +61 -74
- package/dist/cli/index.js +56 -44
- package/dist/common/index.js +21 -21
- package/dist/components/index.js +27 -23
- package/dist/core-events/index.d.ts +18 -2
- package/dist/core-events/index.js +7 -1
- package/dist/core-server/index.js +4545 -4115
- package/dist/core-server/presets/common-manager.js +507 -747
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +691 -29
- package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.js +9 -9
- package/dist/core-server/presets/webpack/loaders/webpack-automock-loader.js +10 -10
- package/dist/csf/index.js +6 -6
- package/dist/csf-tools/index.js +9 -9
- package/dist/docs-tools/index.js +4 -4
- package/dist/instrumenter/index.js +1 -1
- package/dist/manager/globals-runtime.js +9164 -18083
- package/dist/manager/globals.d.ts +0 -4
- package/dist/manager/globals.js +1 -6
- package/dist/manager/runtime.js +12967 -11396
- package/dist/manager-api/index.d.ts +2 -0
- package/dist/manager-api/index.js +303 -64
- package/dist/node-logger/index.d.ts +1 -1
- package/dist/node-logger/index.js +1136 -661
- package/dist/preview/runtime.js +12068 -21585
- package/dist/preview-api/index.d.ts +68 -67
- package/dist/preview-api/index.js +6 -6
- package/dist/router/index.js +2 -2
- package/dist/server-errors.js +10 -10
- package/dist/telemetry/index.d.ts +1 -1
- package/dist/telemetry/index.js +24 -24
- package/dist/test/index.js +1872 -4023
- package/dist/theming/index.d.ts +2 -2
- package/dist/theming/index.js +6 -6
- package/dist/types/index.d.ts +4 -0
- package/package.json +7 -6
- package/dist/_browser-chunks/Color-SFYJJKWL.js +0 -605
- package/dist/_browser-chunks/chunk-DHO2SA6L.js +0 -12
- package/dist/_browser-chunks/chunk-WPHPDNUA.js +0 -974
- package/dist/_node-chunks/chunk-CHJLO2LV.js +0 -62
- package/dist/_node-chunks/chunk-MNG223PY.js +0 -18
- package/dist/_node-chunks/default-browser-id-J4OIAAJ5.js +0 -1719
|
@@ -1,10 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
_defineProperty,
|
|
3
|
+
_objectWithoutProperties
|
|
4
|
+
} from "../../_browser-chunks/chunk-GJ67EE65.js";
|
|
5
|
+
import "../../_browser-chunks/chunk-VAMFPZY3.js";
|
|
1
6
|
import {
|
|
2
7
|
dequal
|
|
3
8
|
} from "../../_browser-chunks/chunk-2DK2T7MP.js";
|
|
4
9
|
import {
|
|
10
|
+
cloneDeep,
|
|
5
11
|
getControlId,
|
|
6
|
-
getControlSetterButtonId
|
|
7
|
-
|
|
12
|
+
getControlSetterButtonId,
|
|
13
|
+
pickBy,
|
|
14
|
+
uniq
|
|
15
|
+
} from "../../_browser-chunks/chunk-KSCAWCCE.js";
|
|
16
|
+
import "../../_browser-chunks/chunk-G33S6YM3.js";
|
|
8
17
|
import {
|
|
9
18
|
ADDON_ID as ADDON_ID3,
|
|
10
19
|
ADDON_ID2 as ADDON_ID4,
|
|
@@ -22,19 +31,17 @@ import {
|
|
|
22
31
|
rgba
|
|
23
32
|
} from "../../_browser-chunks/chunk-O56XQCYK.js";
|
|
24
33
|
import "../../_browser-chunks/chunk-G2FJLQK5.js";
|
|
25
|
-
import
|
|
34
|
+
import {
|
|
35
|
+
_extends
|
|
36
|
+
} from "../../_browser-chunks/chunk-MH6AXFXB.js";
|
|
26
37
|
import {
|
|
27
38
|
EVENTS
|
|
28
39
|
} from "../../_browser-chunks/chunk-SN4J4IQ3.js";
|
|
29
40
|
import {
|
|
30
41
|
require_ansi_to_html
|
|
31
42
|
} from "../../_browser-chunks/chunk-F4Q6SGTB.js";
|
|
32
|
-
import
|
|
33
|
-
|
|
34
|
-
pickBy,
|
|
35
|
-
uniq
|
|
36
|
-
} from "../../_browser-chunks/chunk-E7VLET3C.js";
|
|
37
|
-
import "../../_browser-chunks/chunk-4QPX7WIQ.js";
|
|
43
|
+
import "../../_browser-chunks/chunk-QK3L5AXO.js";
|
|
44
|
+
import "../../_browser-chunks/chunk-JJZMHC3A.js";
|
|
38
45
|
import {
|
|
39
46
|
require_memoizerific
|
|
40
47
|
} from "../../_browser-chunks/chunk-NVV6MIOE.js";
|
|
@@ -55,327 +62,10 @@ import {
|
|
|
55
62
|
TOOL_ID
|
|
56
63
|
} from "../../_browser-chunks/chunk-HHW4FUMO.js";
|
|
57
64
|
import {
|
|
58
|
-
__commonJS,
|
|
59
65
|
__name,
|
|
60
66
|
__toESM
|
|
61
67
|
} from "../../_browser-chunks/chunk-MM7DTO55.js";
|
|
62
68
|
|
|
63
|
-
// ../node_modules/@devtools-ds/object-inspector/node_modules/@babel/runtime/helpers/extends.js
|
|
64
|
-
var require_extends = __commonJS({
|
|
65
|
-
"../node_modules/@devtools-ds/object-inspector/node_modules/@babel/runtime/helpers/extends.js"(exports, module) {
|
|
66
|
-
function _extends6() {
|
|
67
|
-
module.exports = _extends6 = Object.assign || function(target) {
|
|
68
|
-
for (var i2 = 1; i2 < arguments.length; i2++) {
|
|
69
|
-
var source = arguments[i2];
|
|
70
|
-
for (var key in source) {
|
|
71
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
72
|
-
target[key] = source[key];
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
return target;
|
|
77
|
-
};
|
|
78
|
-
return _extends6.apply(this, arguments);
|
|
79
|
-
}
|
|
80
|
-
__name(_extends6, "_extends");
|
|
81
|
-
module.exports = _extends6;
|
|
82
|
-
}
|
|
83
|
-
});
|
|
84
|
-
|
|
85
|
-
// ../node_modules/@devtools-ds/object-inspector/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js
|
|
86
|
-
var require_objectWithoutPropertiesLoose = __commonJS({
|
|
87
|
-
"../node_modules/@devtools-ds/object-inspector/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js"(exports, module) {
|
|
88
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
89
|
-
if (source == null) return {};
|
|
90
|
-
var target = {};
|
|
91
|
-
var sourceKeys = Object.keys(source);
|
|
92
|
-
var key, i2;
|
|
93
|
-
for (i2 = 0; i2 < sourceKeys.length; i2++) {
|
|
94
|
-
key = sourceKeys[i2];
|
|
95
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
96
|
-
target[key] = source[key];
|
|
97
|
-
}
|
|
98
|
-
return target;
|
|
99
|
-
}
|
|
100
|
-
__name(_objectWithoutPropertiesLoose, "_objectWithoutPropertiesLoose");
|
|
101
|
-
module.exports = _objectWithoutPropertiesLoose;
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
|
-
|
|
105
|
-
// ../node_modules/@devtools-ds/object-inspector/node_modules/@babel/runtime/helpers/objectWithoutProperties.js
|
|
106
|
-
var require_objectWithoutProperties = __commonJS({
|
|
107
|
-
"../node_modules/@devtools-ds/object-inspector/node_modules/@babel/runtime/helpers/objectWithoutProperties.js"(exports, module) {
|
|
108
|
-
var objectWithoutPropertiesLoose = require_objectWithoutPropertiesLoose();
|
|
109
|
-
function _objectWithoutProperties7(source, excluded) {
|
|
110
|
-
if (source == null) return {};
|
|
111
|
-
var target = objectWithoutPropertiesLoose(source, excluded);
|
|
112
|
-
var key, i2;
|
|
113
|
-
if (Object.getOwnPropertySymbols) {
|
|
114
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
115
|
-
for (i2 = 0; i2 < sourceSymbolKeys.length; i2++) {
|
|
116
|
-
key = sourceSymbolKeys[i2];
|
|
117
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
118
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
119
|
-
target[key] = source[key];
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
return target;
|
|
123
|
-
}
|
|
124
|
-
__name(_objectWithoutProperties7, "_objectWithoutProperties");
|
|
125
|
-
module.exports = _objectWithoutProperties7;
|
|
126
|
-
}
|
|
127
|
-
});
|
|
128
|
-
|
|
129
|
-
// ../node_modules/@devtools-ds/themes/node_modules/@babel/runtime/helpers/defineProperty.js
|
|
130
|
-
var require_defineProperty = __commonJS({
|
|
131
|
-
"../node_modules/@devtools-ds/themes/node_modules/@babel/runtime/helpers/defineProperty.js"(exports, module) {
|
|
132
|
-
function _defineProperty(obj, key, value2) {
|
|
133
|
-
if (key in obj) {
|
|
134
|
-
Object.defineProperty(obj, key, {
|
|
135
|
-
value: value2,
|
|
136
|
-
enumerable: true,
|
|
137
|
-
configurable: true,
|
|
138
|
-
writable: true
|
|
139
|
-
});
|
|
140
|
-
} else {
|
|
141
|
-
obj[key] = value2;
|
|
142
|
-
}
|
|
143
|
-
return obj;
|
|
144
|
-
}
|
|
145
|
-
__name(_defineProperty, "_defineProperty");
|
|
146
|
-
module.exports = _defineProperty;
|
|
147
|
-
}
|
|
148
|
-
});
|
|
149
|
-
|
|
150
|
-
// ../node_modules/@devtools-ds/themes/node_modules/@babel/runtime/helpers/objectSpread2.js
|
|
151
|
-
var require_objectSpread2 = __commonJS({
|
|
152
|
-
"../node_modules/@devtools-ds/themes/node_modules/@babel/runtime/helpers/objectSpread2.js"(exports, module) {
|
|
153
|
-
var defineProperty = require_defineProperty();
|
|
154
|
-
function ownKeys(object2, enumerableOnly) {
|
|
155
|
-
var keys = Object.keys(object2);
|
|
156
|
-
if (Object.getOwnPropertySymbols) {
|
|
157
|
-
var symbols = Object.getOwnPropertySymbols(object2);
|
|
158
|
-
if (enumerableOnly) symbols = symbols.filter(function(sym) {
|
|
159
|
-
return Object.getOwnPropertyDescriptor(object2, sym).enumerable;
|
|
160
|
-
});
|
|
161
|
-
keys.push.apply(keys, symbols);
|
|
162
|
-
}
|
|
163
|
-
return keys;
|
|
164
|
-
}
|
|
165
|
-
__name(ownKeys, "ownKeys");
|
|
166
|
-
function _objectSpread22(target) {
|
|
167
|
-
for (var i2 = 1; i2 < arguments.length; i2++) {
|
|
168
|
-
var source = arguments[i2] != null ? arguments[i2] : {};
|
|
169
|
-
if (i2 % 2) {
|
|
170
|
-
ownKeys(source, true).forEach(function(key) {
|
|
171
|
-
defineProperty(target, key, source[key]);
|
|
172
|
-
});
|
|
173
|
-
} else if (Object.getOwnPropertyDescriptors) {
|
|
174
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
175
|
-
} else {
|
|
176
|
-
ownKeys(source).forEach(function(key) {
|
|
177
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
178
|
-
});
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
return target;
|
|
182
|
-
}
|
|
183
|
-
__name(_objectSpread22, "_objectSpread2");
|
|
184
|
-
module.exports = _objectSpread22;
|
|
185
|
-
}
|
|
186
|
-
});
|
|
187
|
-
|
|
188
|
-
// ../node_modules/@devtools-ds/themes/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js
|
|
189
|
-
var require_objectWithoutPropertiesLoose2 = __commonJS({
|
|
190
|
-
"../node_modules/@devtools-ds/themes/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js"(exports, module) {
|
|
191
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
192
|
-
if (source == null) return {};
|
|
193
|
-
var target = {};
|
|
194
|
-
var sourceKeys = Object.keys(source);
|
|
195
|
-
var key, i2;
|
|
196
|
-
for (i2 = 0; i2 < sourceKeys.length; i2++) {
|
|
197
|
-
key = sourceKeys[i2];
|
|
198
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
199
|
-
target[key] = source[key];
|
|
200
|
-
}
|
|
201
|
-
return target;
|
|
202
|
-
}
|
|
203
|
-
__name(_objectWithoutPropertiesLoose, "_objectWithoutPropertiesLoose");
|
|
204
|
-
module.exports = _objectWithoutPropertiesLoose;
|
|
205
|
-
}
|
|
206
|
-
});
|
|
207
|
-
|
|
208
|
-
// ../node_modules/@devtools-ds/themes/node_modules/@babel/runtime/helpers/objectWithoutProperties.js
|
|
209
|
-
var require_objectWithoutProperties2 = __commonJS({
|
|
210
|
-
"../node_modules/@devtools-ds/themes/node_modules/@babel/runtime/helpers/objectWithoutProperties.js"(exports, module) {
|
|
211
|
-
var objectWithoutPropertiesLoose = require_objectWithoutPropertiesLoose2();
|
|
212
|
-
function _objectWithoutProperties7(source, excluded) {
|
|
213
|
-
if (source == null) return {};
|
|
214
|
-
var target = objectWithoutPropertiesLoose(source, excluded);
|
|
215
|
-
var key, i2;
|
|
216
|
-
if (Object.getOwnPropertySymbols) {
|
|
217
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
218
|
-
for (i2 = 0; i2 < sourceSymbolKeys.length; i2++) {
|
|
219
|
-
key = sourceSymbolKeys[i2];
|
|
220
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
221
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
222
|
-
target[key] = source[key];
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
return target;
|
|
226
|
-
}
|
|
227
|
-
__name(_objectWithoutProperties7, "_objectWithoutProperties");
|
|
228
|
-
module.exports = _objectWithoutProperties7;
|
|
229
|
-
}
|
|
230
|
-
});
|
|
231
|
-
|
|
232
|
-
// ../node_modules/@devtools-ds/themes/node_modules/@babel/runtime/helpers/extends.js
|
|
233
|
-
var require_extends2 = __commonJS({
|
|
234
|
-
"../node_modules/@devtools-ds/themes/node_modules/@babel/runtime/helpers/extends.js"(exports, module) {
|
|
235
|
-
function _extends6() {
|
|
236
|
-
module.exports = _extends6 = Object.assign || function(target) {
|
|
237
|
-
for (var i2 = 1; i2 < arguments.length; i2++) {
|
|
238
|
-
var source = arguments[i2];
|
|
239
|
-
for (var key in source) {
|
|
240
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
241
|
-
target[key] = source[key];
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
return target;
|
|
246
|
-
};
|
|
247
|
-
return _extends6.apply(this, arguments);
|
|
248
|
-
}
|
|
249
|
-
__name(_extends6, "_extends");
|
|
250
|
-
module.exports = _extends6;
|
|
251
|
-
}
|
|
252
|
-
});
|
|
253
|
-
|
|
254
|
-
// ../node_modules/@devtools-ds/object-inspector/node_modules/@babel/runtime/helpers/defineProperty.js
|
|
255
|
-
var require_defineProperty2 = __commonJS({
|
|
256
|
-
"../node_modules/@devtools-ds/object-inspector/node_modules/@babel/runtime/helpers/defineProperty.js"(exports, module) {
|
|
257
|
-
function _defineProperty(obj, key, value2) {
|
|
258
|
-
if (key in obj) {
|
|
259
|
-
Object.defineProperty(obj, key, {
|
|
260
|
-
value: value2,
|
|
261
|
-
enumerable: true,
|
|
262
|
-
configurable: true,
|
|
263
|
-
writable: true
|
|
264
|
-
});
|
|
265
|
-
} else {
|
|
266
|
-
obj[key] = value2;
|
|
267
|
-
}
|
|
268
|
-
return obj;
|
|
269
|
-
}
|
|
270
|
-
__name(_defineProperty, "_defineProperty");
|
|
271
|
-
module.exports = _defineProperty;
|
|
272
|
-
}
|
|
273
|
-
});
|
|
274
|
-
|
|
275
|
-
// ../node_modules/@devtools-ds/object-inspector/node_modules/@babel/runtime/helpers/objectSpread2.js
|
|
276
|
-
var require_objectSpread22 = __commonJS({
|
|
277
|
-
"../node_modules/@devtools-ds/object-inspector/node_modules/@babel/runtime/helpers/objectSpread2.js"(exports, module) {
|
|
278
|
-
var defineProperty = require_defineProperty2();
|
|
279
|
-
function ownKeys(object2, enumerableOnly) {
|
|
280
|
-
var keys = Object.keys(object2);
|
|
281
|
-
if (Object.getOwnPropertySymbols) {
|
|
282
|
-
var symbols = Object.getOwnPropertySymbols(object2);
|
|
283
|
-
if (enumerableOnly) symbols = symbols.filter(function(sym) {
|
|
284
|
-
return Object.getOwnPropertyDescriptor(object2, sym).enumerable;
|
|
285
|
-
});
|
|
286
|
-
keys.push.apply(keys, symbols);
|
|
287
|
-
}
|
|
288
|
-
return keys;
|
|
289
|
-
}
|
|
290
|
-
__name(ownKeys, "ownKeys");
|
|
291
|
-
function _objectSpread22(target) {
|
|
292
|
-
for (var i2 = 1; i2 < arguments.length; i2++) {
|
|
293
|
-
var source = arguments[i2] != null ? arguments[i2] : {};
|
|
294
|
-
if (i2 % 2) {
|
|
295
|
-
ownKeys(source, true).forEach(function(key) {
|
|
296
|
-
defineProperty(target, key, source[key]);
|
|
297
|
-
});
|
|
298
|
-
} else if (Object.getOwnPropertyDescriptors) {
|
|
299
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
300
|
-
} else {
|
|
301
|
-
ownKeys(source).forEach(function(key) {
|
|
302
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
303
|
-
});
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
return target;
|
|
307
|
-
}
|
|
308
|
-
__name(_objectSpread22, "_objectSpread2");
|
|
309
|
-
module.exports = _objectSpread22;
|
|
310
|
-
}
|
|
311
|
-
});
|
|
312
|
-
|
|
313
|
-
// ../node_modules/@devtools-ds/tree/node_modules/@babel/runtime/helpers/extends.js
|
|
314
|
-
var require_extends3 = __commonJS({
|
|
315
|
-
"../node_modules/@devtools-ds/tree/node_modules/@babel/runtime/helpers/extends.js"(exports, module) {
|
|
316
|
-
function _extends6() {
|
|
317
|
-
module.exports = _extends6 = Object.assign || function(target) {
|
|
318
|
-
for (var i2 = 1; i2 < arguments.length; i2++) {
|
|
319
|
-
var source = arguments[i2];
|
|
320
|
-
for (var key in source) {
|
|
321
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
322
|
-
target[key] = source[key];
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
return target;
|
|
327
|
-
};
|
|
328
|
-
return _extends6.apply(this, arguments);
|
|
329
|
-
}
|
|
330
|
-
__name(_extends6, "_extends");
|
|
331
|
-
module.exports = _extends6;
|
|
332
|
-
}
|
|
333
|
-
});
|
|
334
|
-
|
|
335
|
-
// ../node_modules/@devtools-ds/tree/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js
|
|
336
|
-
var require_objectWithoutPropertiesLoose3 = __commonJS({
|
|
337
|
-
"../node_modules/@devtools-ds/tree/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js"(exports, module) {
|
|
338
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
339
|
-
if (source == null) return {};
|
|
340
|
-
var target = {};
|
|
341
|
-
var sourceKeys = Object.keys(source);
|
|
342
|
-
var key, i2;
|
|
343
|
-
for (i2 = 0; i2 < sourceKeys.length; i2++) {
|
|
344
|
-
key = sourceKeys[i2];
|
|
345
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
346
|
-
target[key] = source[key];
|
|
347
|
-
}
|
|
348
|
-
return target;
|
|
349
|
-
}
|
|
350
|
-
__name(_objectWithoutPropertiesLoose, "_objectWithoutPropertiesLoose");
|
|
351
|
-
module.exports = _objectWithoutPropertiesLoose;
|
|
352
|
-
}
|
|
353
|
-
});
|
|
354
|
-
|
|
355
|
-
// ../node_modules/@devtools-ds/tree/node_modules/@babel/runtime/helpers/objectWithoutProperties.js
|
|
356
|
-
var require_objectWithoutProperties3 = __commonJS({
|
|
357
|
-
"../node_modules/@devtools-ds/tree/node_modules/@babel/runtime/helpers/objectWithoutProperties.js"(exports, module) {
|
|
358
|
-
var objectWithoutPropertiesLoose = require_objectWithoutPropertiesLoose3();
|
|
359
|
-
function _objectWithoutProperties7(source, excluded) {
|
|
360
|
-
if (source == null) return {};
|
|
361
|
-
var target = objectWithoutPropertiesLoose(source, excluded);
|
|
362
|
-
var key, i2;
|
|
363
|
-
if (Object.getOwnPropertySymbols) {
|
|
364
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
365
|
-
for (i2 = 0; i2 < sourceSymbolKeys.length; i2++) {
|
|
366
|
-
key = sourceSymbolKeys[i2];
|
|
367
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
368
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
369
|
-
target[key] = source[key];
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
return target;
|
|
373
|
-
}
|
|
374
|
-
__name(_objectWithoutProperties7, "_objectWithoutProperties");
|
|
375
|
-
module.exports = _objectWithoutProperties7;
|
|
376
|
-
}
|
|
377
|
-
});
|
|
378
|
-
|
|
379
69
|
// src/core-server/presets/common-manager.ts
|
|
380
70
|
import { global as global3 } from "@storybook/global";
|
|
381
71
|
import { addons as addons8 } from "storybook/manager-api";
|
|
@@ -1475,440 +1165,459 @@ import { codeCommon as codeCommon3 } from "storybook/internal/components";
|
|
|
1475
1165
|
|
|
1476
1166
|
// ../node_modules/markdown-to-jsx/dist/index.modern.js
|
|
1477
1167
|
import * as e from "react";
|
|
1478
|
-
function
|
|
1479
|
-
return
|
|
1480
|
-
for (var
|
|
1481
|
-
var
|
|
1482
|
-
for (var
|
|
1168
|
+
function n() {
|
|
1169
|
+
return n = Object.assign ? Object.assign.bind() : function(e2) {
|
|
1170
|
+
for (var n2 = 1; n2 < arguments.length; n2++) {
|
|
1171
|
+
var r2 = arguments[n2];
|
|
1172
|
+
for (var t in r2) Object.prototype.hasOwnProperty.call(r2, t) && (e2[t] = r2[t]);
|
|
1483
1173
|
}
|
|
1484
1174
|
return e2;
|
|
1485
|
-
},
|
|
1175
|
+
}, n.apply(this, arguments);
|
|
1486
1176
|
}
|
|
1487
|
-
__name(
|
|
1488
|
-
var
|
|
1489
|
-
var
|
|
1490
|
-
var
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
var l =
|
|
1495
|
-
var
|
|
1496
|
-
var
|
|
1497
|
-
var
|
|
1498
|
-
var
|
|
1499
|
-
var
|
|
1500
|
-
var
|
|
1501
|
-
var
|
|
1502
|
-
var
|
|
1503
|
-
var
|
|
1504
|
-
var
|
|
1505
|
-
var
|
|
1506
|
-
var
|
|
1507
|
-
var
|
|
1508
|
-
var
|
|
1509
|
-
var b =
|
|
1510
|
-
var
|
|
1511
|
-
var C = /^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/;
|
|
1512
|
-
var $ = /^\[\^([^\]]+)]/;
|
|
1513
|
-
var S = /\f/g;
|
|
1514
|
-
var w = /^---[ \t]*\n(.|\n)*\n---[ \t]*\n/;
|
|
1515
|
-
var E = /^\s*?\[(x|\s)\]/;
|
|
1177
|
+
__name(n, "n");
|
|
1178
|
+
var r = ["children", "options"];
|
|
1179
|
+
var o = ["allowFullScreen", "allowTransparency", "autoComplete", "autoFocus", "autoPlay", "cellPadding", "cellSpacing", "charSet", "classId", "colSpan", "contentEditable", "contextMenu", "crossOrigin", "encType", "formAction", "formEncType", "formMethod", "formNoValidate", "formTarget", "frameBorder", "hrefLang", "inputMode", "keyParams", "keyType", "marginHeight", "marginWidth", "maxLength", "mediaGroup", "minLength", "noValidate", "radioGroup", "readOnly", "rowSpan", "spellCheck", "srcDoc", "srcLang", "srcSet", "tabIndex", "useMap"].reduce((e2, n2) => (e2[n2.toLowerCase()] = n2, e2), { class: "className", for: "htmlFor" });
|
|
1180
|
+
var a = { amp: "&", apos: "'", gt: ">", lt: "<", nbsp: "\xA0", quot: "\u201C" };
|
|
1181
|
+
var c = ["style", "script", "pre"];
|
|
1182
|
+
var i = ["src", "href", "data", "formAction", "srcDoc", "action"];
|
|
1183
|
+
var u = /([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi;
|
|
1184
|
+
var l = /mailto:/i;
|
|
1185
|
+
var s = /\n{2,}$/;
|
|
1186
|
+
var f = /^(\s*>[\s\S]*?)(?=\n\n|$)/;
|
|
1187
|
+
var _ = /^ *> ?/gm;
|
|
1188
|
+
var d = /^(?:\[!([^\]]*)\]\n)?([\s\S]*)/;
|
|
1189
|
+
var p = /^ {2,}\n/;
|
|
1190
|
+
var y = /^(?:( *[-*_])){3,} *(?:\n *)+\n/;
|
|
1191
|
+
var h = /^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/;
|
|
1192
|
+
var g = /^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/;
|
|
1193
|
+
var m = /^(`+)((?:\\`|(?!\1)`|[^`])+)\1/;
|
|
1194
|
+
var k = /^(?:\n *)*\n/;
|
|
1195
|
+
var x = /\r\n?/g;
|
|
1196
|
+
var v = /^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/;
|
|
1197
|
+
var q = /^\[\^([^\]]+)]/;
|
|
1198
|
+
var $ = /\f/g;
|
|
1199
|
+
var b = /^---[ \t]*\n(.|\n)*\n---[ \t]*\n/;
|
|
1200
|
+
var S = /^\s*?\[(x|\s)\]/;
|
|
1516
1201
|
var z = /^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/;
|
|
1517
|
-
var
|
|
1518
|
-
var A = /^([^\n]+)\n *(=|-){3,}
|
|
1519
|
-
var
|
|
1520
|
-
var
|
|
1521
|
-
var
|
|
1522
|
-
var
|
|
1523
|
-
var
|
|
1524
|
-
var
|
|
1525
|
-
var
|
|
1526
|
-
var
|
|
1527
|
-
var
|
|
1528
|
-
var
|
|
1529
|
-
var
|
|
1202
|
+
var E = /^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/;
|
|
1203
|
+
var A = /^([^\n]+)\n *(=|-){3,} *\n/;
|
|
1204
|
+
var R = /^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i;
|
|
1205
|
+
var B = /&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi;
|
|
1206
|
+
var L = /^<!--[\s\S]*?(?:-->)/;
|
|
1207
|
+
var O = /^(data|aria|x)-[a-z_][a-z\d_.-]*$/;
|
|
1208
|
+
var j = /^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i;
|
|
1209
|
+
var C = /^\{.*\}$/;
|
|
1210
|
+
var I = /^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/;
|
|
1211
|
+
var T = /^<([^ >]+@[^ >]+)>/;
|
|
1212
|
+
var M = /^<([^ >]+:\/[^ >]+)>/;
|
|
1213
|
+
var w = /-([a-z])?/gi;
|
|
1214
|
+
var D = /^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/;
|
|
1215
|
+
var F = /^[^\n]+(?: \n|\n{2,})/;
|
|
1530
1216
|
var P = /^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/;
|
|
1531
|
-
var
|
|
1532
|
-
var
|
|
1533
|
-
var
|
|
1534
|
-
var
|
|
1535
|
-
var
|
|
1536
|
-
var
|
|
1217
|
+
var Z = /^!\[([^\]]*)\] ?\[([^\]]*)\]/;
|
|
1218
|
+
var N = /^\[([^\]]*)\] ?\[([^\]]*)\]/;
|
|
1219
|
+
var G = /(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/;
|
|
1220
|
+
var U = /\t/g;
|
|
1221
|
+
var V = /(^ *\||\| *$)/g;
|
|
1222
|
+
var H = /^ *:-+: *$/;
|
|
1537
1223
|
var Q = /^ *:-+ *$/;
|
|
1538
|
-
var
|
|
1539
|
-
var
|
|
1540
|
-
var
|
|
1541
|
-
var
|
|
1542
|
-
var Y =
|
|
1543
|
-
var ee =
|
|
1224
|
+
var W = /^ *-+: *$/;
|
|
1225
|
+
var J = /* @__PURE__ */ __name((e2) => `(?=[\\s\\S]+?\\1${e2 ? "\\1" : ""})`, "J");
|
|
1226
|
+
var K = "((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)";
|
|
1227
|
+
var X = RegExp(`^([*_])\\1${J(1)}${K}\\1\\1(?!\\1)`);
|
|
1228
|
+
var Y = RegExp(`^([*_])${J(0)}${K}\\1(?!\\1)`);
|
|
1229
|
+
var ee = RegExp(`^(==)${J(0)}${K}\\1`);
|
|
1230
|
+
var ne = RegExp(`^(~~)${J(0)}${K}\\1`);
|
|
1231
|
+
var re = /^(:[a-zA-Z0-9-_]+:)/;
|
|
1544
1232
|
var te = /^\\([^0-9A-Za-z\s])/;
|
|
1545
|
-
var
|
|
1546
|
-
var
|
|
1547
|
-
var
|
|
1548
|
-
var
|
|
1549
|
-
var
|
|
1550
|
-
var
|
|
1551
|
-
var ce = "(?:\\d+\\.)";
|
|
1233
|
+
var oe = /\\([^0-9A-Za-z\s])/g;
|
|
1234
|
+
var ae = /^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/;
|
|
1235
|
+
var ce = /^\n+/;
|
|
1236
|
+
var ie = /^([ \t]*)/;
|
|
1237
|
+
var ue = /(?:^|\n)( *)$/;
|
|
1238
|
+
var le = "(?:\\d+\\.)";
|
|
1552
1239
|
var se = "(?:[*+-])";
|
|
1553
|
-
function de(e2) {
|
|
1554
|
-
return "( *)(" + (1 === e2 ? ce : se) + ") +";
|
|
1555
|
-
}
|
|
1556
|
-
__name(de, "de");
|
|
1557
|
-
var ue = de(1);
|
|
1558
|
-
var pe = de(2);
|
|
1559
1240
|
function fe(e2) {
|
|
1560
|
-
return
|
|
1241
|
+
return "( *)(" + (1 === e2 ? le : se) + ") +";
|
|
1561
1242
|
}
|
|
1562
1243
|
__name(fe, "fe");
|
|
1563
|
-
var
|
|
1564
|
-
var
|
|
1244
|
+
var _e = fe(1);
|
|
1245
|
+
var de = fe(2);
|
|
1246
|
+
function pe(e2) {
|
|
1247
|
+
return RegExp("^" + (1 === e2 ? _e : de));
|
|
1248
|
+
}
|
|
1249
|
+
__name(pe, "pe");
|
|
1250
|
+
var ye = pe(1);
|
|
1251
|
+
var he = pe(2);
|
|
1565
1252
|
function ge(e2) {
|
|
1566
|
-
return
|
|
1253
|
+
return RegExp("^" + (1 === e2 ? _e : de) + "[^\\n]*(?:\\n(?!\\1" + (1 === e2 ? le : se) + " )[^\\n]*)*(\\n|$)", "gm");
|
|
1567
1254
|
}
|
|
1568
1255
|
__name(ge, "ge");
|
|
1569
|
-
var
|
|
1256
|
+
var me = ge(1);
|
|
1570
1257
|
var ke = ge(2);
|
|
1571
1258
|
function xe(e2) {
|
|
1572
|
-
const
|
|
1573
|
-
return
|
|
1259
|
+
const n2 = 1 === e2 ? le : se;
|
|
1260
|
+
return RegExp("^( *)(" + n2 + ") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1" + n2 + " (?!" + n2 + " ))\\n*|\\s*\\n*$)");
|
|
1574
1261
|
}
|
|
1575
1262
|
__name(xe, "xe");
|
|
1576
|
-
var
|
|
1577
|
-
var
|
|
1578
|
-
function
|
|
1579
|
-
const
|
|
1580
|
-
return {
|
|
1581
|
-
const
|
|
1582
|
-
return
|
|
1583
|
-
}),
|
|
1584
|
-
const
|
|
1585
|
-
let
|
|
1586
|
-
return { items:
|
|
1587
|
-
const
|
|
1588
|
-
|
|
1589
|
-
const
|
|
1590
|
-
let
|
|
1591
|
-
|
|
1592
|
-
const
|
|
1593
|
-
return
|
|
1594
|
-
}), ordered:
|
|
1595
|
-
},
|
|
1596
|
-
return e2("li", { key:
|
|
1597
|
-
})), "
|
|
1263
|
+
var ve = xe(1);
|
|
1264
|
+
var qe = xe(2);
|
|
1265
|
+
function $e(e2, n2) {
|
|
1266
|
+
const r2 = 1 === n2, t = r2 ? ve : qe, o2 = r2 ? me : ke, a2 = r2 ? ye : he;
|
|
1267
|
+
return { t: /* @__PURE__ */ __name((e3) => a2.test(e3), "t"), o: Ce(function(e3, n3) {
|
|
1268
|
+
const r3 = ue.exec(n3.prevCapture);
|
|
1269
|
+
return r3 && (n3.list || !n3.inline && !n3.simple) ? t.exec(e3 = r3[1] + e3) : null;
|
|
1270
|
+
}), i: 1, u(e3, n3, t2) {
|
|
1271
|
+
const c2 = r2 ? +e3[2] : void 0, i2 = e3[0].replace(s, "\n").match(o2);
|
|
1272
|
+
let u2 = false;
|
|
1273
|
+
return { items: i2.map(function(e4, r3) {
|
|
1274
|
+
const o3 = a2.exec(e4)[0].length, c3 = RegExp("^ {1," + o3 + "}", "gm"), l2 = e4.replace(c3, "").replace(a2, ""), s2 = r3 === i2.length - 1, f2 = -1 !== l2.indexOf("\n\n") || s2 && u2;
|
|
1275
|
+
u2 = f2;
|
|
1276
|
+
const _2 = t2.inline, d2 = t2.list;
|
|
1277
|
+
let p2;
|
|
1278
|
+
t2.list = true, f2 ? (t2.inline = false, p2 = ze(l2) + "\n\n") : (t2.inline = true, p2 = ze(l2));
|
|
1279
|
+
const y2 = n3(p2, t2);
|
|
1280
|
+
return t2.inline = _2, t2.list = d2, y2;
|
|
1281
|
+
}), ordered: r2, start: c2 };
|
|
1282
|
+
}, l: /* @__PURE__ */ __name((n3, r3, t2) => e2(n3.ordered ? "ol" : "ul", { key: t2.key, start: "20" === n3.type ? n3.start : void 0 }, n3.items.map(function(n4, o3) {
|
|
1283
|
+
return e2("li", { key: o3 }, r3(n4, t2));
|
|
1284
|
+
})), "l") };
|
|
1598
1285
|
}
|
|
1599
|
-
__name(
|
|
1600
|
-
var
|
|
1286
|
+
__name($e, "$e");
|
|
1287
|
+
var be = RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`);
|
|
1601
1288
|
var Se = /^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;
|
|
1602
|
-
var we = [p, y, k, z, A, L, H, be, ve];
|
|
1603
|
-
var Ee = [...we, /^[^\n]+(?: \n|\n{2,})/, O, B, R];
|
|
1604
1289
|
function ze(e2) {
|
|
1605
|
-
let
|
|
1606
|
-
for (;
|
|
1607
|
-
return e2.slice(0,
|
|
1290
|
+
let n2 = e2.length;
|
|
1291
|
+
for (; n2 > 0 && e2[n2 - 1] <= " "; ) n2--;
|
|
1292
|
+
return e2.slice(0, n2);
|
|
1608
1293
|
}
|
|
1609
1294
|
__name(ze, "ze");
|
|
1610
|
-
function
|
|
1611
|
-
return e2.
|
|
1295
|
+
function Ee(e2, n2) {
|
|
1296
|
+
return e2.startsWith(n2);
|
|
1612
1297
|
}
|
|
1613
|
-
__name(
|
|
1614
|
-
function Ae(e2) {
|
|
1615
|
-
|
|
1298
|
+
__name(Ee, "Ee");
|
|
1299
|
+
function Ae(e2, n2, r2) {
|
|
1300
|
+
if (Array.isArray(r2)) {
|
|
1301
|
+
for (let n3 = 0; n3 < r2.length; n3++) if (Ee(e2, r2[n3])) return true;
|
|
1302
|
+
return false;
|
|
1303
|
+
}
|
|
1304
|
+
return r2(e2, n2);
|
|
1616
1305
|
}
|
|
1617
1306
|
__name(Ae, "Ae");
|
|
1618
|
-
function
|
|
1619
|
-
|
|
1620
|
-
n2.inTable = true;
|
|
1621
|
-
let l2 = [[]], o2 = "";
|
|
1622
|
-
function a2() {
|
|
1623
|
-
if (!o2) return;
|
|
1624
|
-
const e3 = l2[l2.length - 1];
|
|
1625
|
-
e3.push.apply(e3, t2(o2, n2)), o2 = "";
|
|
1626
|
-
}
|
|
1627
|
-
__name(a2, "a");
|
|
1628
|
-
return e2.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((e3, t3, n3) => {
|
|
1629
|
-
"|" === e3.trim() && (a2(), r2) ? 0 !== t3 && t3 !== n3.length - 1 && l2.push([]) : o2 += e3;
|
|
1630
|
-
}), a2(), n2.inTable = i2, l2;
|
|
1307
|
+
function Re(e2) {
|
|
1308
|
+
return e2.replace(/[ÀÁÂÃÄÅàáâãä忯]/g, "a").replace(/[çÇ]/g, "c").replace(/[ðÐ]/g, "d").replace(/[ÈÉÊËéèêë]/g, "e").replace(/[ÏïÎîÍíÌì]/g, "i").replace(/[Ññ]/g, "n").replace(/[øØœŒÕõÔôÓóÒò]/g, "o").replace(/[ÜüÛûÚúÙù]/g, "u").replace(/[ŸÿÝý]/g, "y").replace(/[^a-z0-9- ]/gi, "").replace(/ /gi, "-").toLowerCase();
|
|
1631
1309
|
}
|
|
1632
|
-
__name(
|
|
1633
|
-
function
|
|
1634
|
-
|
|
1635
|
-
|
|
1310
|
+
__name(Re, "Re");
|
|
1311
|
+
function Be(e2) {
|
|
1312
|
+
return W.test(e2) ? "right" : H.test(e2) ? "center" : Q.test(e2) ? "left" : null;
|
|
1313
|
+
}
|
|
1314
|
+
__name(Be, "Be");
|
|
1315
|
+
function Le(e2, n2, r2, t) {
|
|
1316
|
+
const o2 = r2.inTable;
|
|
1317
|
+
r2.inTable = true;
|
|
1318
|
+
let a2 = [[]], c2 = "";
|
|
1319
|
+
function i2() {
|
|
1320
|
+
if (!c2) return;
|
|
1321
|
+
const e3 = a2[a2.length - 1];
|
|
1322
|
+
e3.push.apply(e3, n2(c2, r2)), c2 = "";
|
|
1323
|
+
}
|
|
1324
|
+
__name(i2, "i");
|
|
1325
|
+
return e2.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((e3, n3, r3) => {
|
|
1326
|
+
"|" === e3.trim() && (i2(), t) ? 0 !== n3 && n3 !== r3.length - 1 && a2.push([]) : c2 += e3;
|
|
1327
|
+
}), i2(), r2.inTable = o2, a2;
|
|
1328
|
+
}
|
|
1329
|
+
__name(Le, "Le");
|
|
1330
|
+
function Oe(e2, n2, r2) {
|
|
1331
|
+
r2.inline = true;
|
|
1332
|
+
const t = e2[2] ? e2[2].replace(V, "").split("|").map(Be) : [], o2 = e2[3] ? function(e3, n3, r3) {
|
|
1636
1333
|
return e3.trim().split("\n").map(function(e4) {
|
|
1637
|
-
return
|
|
1334
|
+
return Le(e4, n3, r3, true);
|
|
1638
1335
|
});
|
|
1639
|
-
}(e2[3],
|
|
1640
|
-
return
|
|
1336
|
+
}(e2[3], n2, r2) : [], a2 = Le(e2[1], n2, r2, !!o2.length);
|
|
1337
|
+
return r2.inline = false, o2.length ? { align: t, cells: o2, header: a2, type: "25" } : { children: a2, type: "21" };
|
|
1641
1338
|
}
|
|
1642
|
-
__name(
|
|
1643
|
-
function
|
|
1644
|
-
return null == e2.align[
|
|
1339
|
+
__name(Oe, "Oe");
|
|
1340
|
+
function je(e2, n2) {
|
|
1341
|
+
return null == e2.align[n2] ? {} : { textAlign: e2.align[n2] };
|
|
1645
1342
|
}
|
|
1646
|
-
__name(
|
|
1647
|
-
function
|
|
1343
|
+
__name(je, "je");
|
|
1344
|
+
function Ce(e2) {
|
|
1648
1345
|
return e2.inline = 1, e2;
|
|
1649
1346
|
}
|
|
1650
|
-
__name(
|
|
1651
|
-
function Re(e2) {
|
|
1652
|
-
return Me(function(t2, n2) {
|
|
1653
|
-
return n2.inline ? e2.exec(t2) : null;
|
|
1654
|
-
});
|
|
1655
|
-
}
|
|
1656
|
-
__name(Re, "Re");
|
|
1347
|
+
__name(Ce, "Ce");
|
|
1657
1348
|
function Ie(e2) {
|
|
1658
|
-
return
|
|
1659
|
-
return
|
|
1349
|
+
return Ce(function(n2, r2) {
|
|
1350
|
+
return r2.inline ? e2.exec(n2) : null;
|
|
1660
1351
|
});
|
|
1661
1352
|
}
|
|
1662
1353
|
__name(Ie, "Ie");
|
|
1663
|
-
function
|
|
1664
|
-
return function(
|
|
1665
|
-
return
|
|
1354
|
+
function Te(e2) {
|
|
1355
|
+
return Ce(function(n2, r2) {
|
|
1356
|
+
return r2.inline || r2.simple ? e2.exec(n2) : null;
|
|
1357
|
+
});
|
|
1358
|
+
}
|
|
1359
|
+
__name(Te, "Te");
|
|
1360
|
+
function Me(e2) {
|
|
1361
|
+
return function(n2, r2) {
|
|
1362
|
+
return r2.inline || r2.simple ? null : e2.exec(n2);
|
|
1666
1363
|
};
|
|
1667
1364
|
}
|
|
1668
|
-
__name(
|
|
1669
|
-
function
|
|
1670
|
-
return
|
|
1671
|
-
return e2.exec(
|
|
1365
|
+
__name(Me, "Me");
|
|
1366
|
+
function we(e2) {
|
|
1367
|
+
return Ce(function(n2) {
|
|
1368
|
+
return e2.exec(n2);
|
|
1672
1369
|
});
|
|
1673
1370
|
}
|
|
1674
|
-
__name(
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
let n2 = "";
|
|
1678
|
-
e2.split("\n").every((e3) => (e3 += "\n", !we.some((t3) => t3.test(e3)) && (n2 += e3, !!e3.trim())));
|
|
1679
|
-
const r2 = ze(n2);
|
|
1680
|
-
return "" == r2 ? null : [n2, , r2];
|
|
1681
|
-
}
|
|
1682
|
-
__name(Ne, "Ne");
|
|
1683
|
-
var je = /(javascript|vbscript|data(?!:image)):/i;
|
|
1684
|
-
function He(e2) {
|
|
1371
|
+
__name(we, "we");
|
|
1372
|
+
var De = /(javascript|vbscript|data(?!:image)):/i;
|
|
1373
|
+
function Fe(e2) {
|
|
1685
1374
|
try {
|
|
1686
|
-
const
|
|
1687
|
-
if (
|
|
1375
|
+
const n2 = decodeURIComponent(e2).replace(/[^A-Za-z0-9/:]/g, "");
|
|
1376
|
+
if (De.test(n2)) return null;
|
|
1688
1377
|
} catch (e3) {
|
|
1689
1378
|
return null;
|
|
1690
1379
|
}
|
|
1691
1380
|
return e2;
|
|
1692
1381
|
}
|
|
1693
|
-
__name(
|
|
1382
|
+
__name(Fe, "Fe");
|
|
1694
1383
|
function Pe(e2) {
|
|
1695
|
-
return e2.replace(oe, "$1");
|
|
1384
|
+
return e2 ? e2.replace(oe, "$1") : e2;
|
|
1696
1385
|
}
|
|
1697
1386
|
__name(Pe, "Pe");
|
|
1698
|
-
function
|
|
1699
|
-
const
|
|
1700
|
-
|
|
1701
|
-
const
|
|
1702
|
-
return
|
|
1387
|
+
function Ze(e2, n2, r2) {
|
|
1388
|
+
const t = r2.inline || false, o2 = r2.simple || false;
|
|
1389
|
+
r2.inline = true, r2.simple = true;
|
|
1390
|
+
const a2 = e2(n2, r2);
|
|
1391
|
+
return r2.inline = t, r2.simple = o2, a2;
|
|
1703
1392
|
}
|
|
1704
|
-
__name(
|
|
1705
|
-
function
|
|
1706
|
-
const
|
|
1707
|
-
|
|
1708
|
-
const
|
|
1709
|
-
return
|
|
1393
|
+
__name(Ze, "Ze");
|
|
1394
|
+
function Ne(e2, n2, r2) {
|
|
1395
|
+
const t = r2.inline || false, o2 = r2.simple || false;
|
|
1396
|
+
r2.inline = false, r2.simple = true;
|
|
1397
|
+
const a2 = e2(n2, r2);
|
|
1398
|
+
return r2.inline = t, r2.simple = o2, a2;
|
|
1710
1399
|
}
|
|
1711
|
-
__name(
|
|
1712
|
-
function
|
|
1713
|
-
const
|
|
1714
|
-
|
|
1715
|
-
const
|
|
1716
|
-
return
|
|
1400
|
+
__name(Ne, "Ne");
|
|
1401
|
+
function Ge(e2, n2, r2) {
|
|
1402
|
+
const t = r2.inline || false;
|
|
1403
|
+
r2.inline = false;
|
|
1404
|
+
const o2 = e2(n2, r2);
|
|
1405
|
+
return r2.inline = t, o2;
|
|
1717
1406
|
}
|
|
1718
|
-
__name(
|
|
1719
|
-
var
|
|
1720
|
-
function
|
|
1407
|
+
__name(Ge, "Ge");
|
|
1408
|
+
var Ue = /* @__PURE__ */ __name((e2, n2, r2) => ({ children: Ze(n2, e2[2], r2) }), "Ue");
|
|
1409
|
+
function Ve() {
|
|
1721
1410
|
return {};
|
|
1722
1411
|
}
|
|
1723
|
-
__name(
|
|
1724
|
-
function
|
|
1412
|
+
__name(Ve, "Ve");
|
|
1413
|
+
function He() {
|
|
1725
1414
|
return null;
|
|
1726
1415
|
}
|
|
1727
|
-
__name(
|
|
1416
|
+
__name(He, "He");
|
|
1728
1417
|
function Qe(...e2) {
|
|
1729
1418
|
return e2.filter(Boolean).join(" ");
|
|
1730
1419
|
}
|
|
1731
1420
|
__name(Qe, "Qe");
|
|
1732
|
-
function
|
|
1733
|
-
let
|
|
1734
|
-
const
|
|
1735
|
-
for (;
|
|
1736
|
-
return
|
|
1421
|
+
function We(e2, n2, r2) {
|
|
1422
|
+
let t = e2;
|
|
1423
|
+
const o2 = n2.split(".");
|
|
1424
|
+
for (; o2.length && (t = t[o2[0]], void 0 !== t); ) o2.shift();
|
|
1425
|
+
return t || r2;
|
|
1737
1426
|
}
|
|
1738
|
-
__name(
|
|
1739
|
-
function
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
for (; "string" == typeof
|
|
1756
|
-
if (null ===
|
|
1757
|
-
const
|
|
1758
|
-
let
|
|
1759
|
-
if (
|
|
1427
|
+
__name(We, "We");
|
|
1428
|
+
function Je(r2 = "", t = {}) {
|
|
1429
|
+
t.overrides = t.overrides || {}, t.namedCodesToUnicode = t.namedCodesToUnicode ? n({}, a, t.namedCodesToUnicode) : a;
|
|
1430
|
+
const s2 = t.slugify || Re, V2 = t.sanitizer || Fe, H2 = t.createElement || e.createElement, Q2 = [f, h, g, t.enforceAtxHeadings ? E : z, A, D, ve, qe], W2 = [...Q2, F, R, L, j];
|
|
1431
|
+
function J2(e2, r3, ...o2) {
|
|
1432
|
+
const a2 = We(t.overrides, e2 + ".props", {});
|
|
1433
|
+
return H2(function(e3, n2) {
|
|
1434
|
+
const r4 = We(n2, e3);
|
|
1435
|
+
return r4 ? "function" == typeof r4 || "object" == typeof r4 && "render" in r4 ? r4 : We(n2, e3 + ".component", e3) : e3;
|
|
1436
|
+
}(e2, t.overrides), n({}, r3, a2, { className: Qe(null == r3 ? void 0 : r3.className, a2.className) || void 0 }), ...o2);
|
|
1437
|
+
}
|
|
1438
|
+
__name(J2, "J");
|
|
1439
|
+
function K2(e2) {
|
|
1440
|
+
e2 = e2.replace(b, "");
|
|
1441
|
+
let n2 = false;
|
|
1442
|
+
t.forceInline ? n2 = true : t.forceBlock || (n2 = false === G.test(e2));
|
|
1443
|
+
const r3 = _e2(fe2(n2 ? e2 : ze(e2).replace(ce, "") + "\n\n", { inline: n2 }));
|
|
1444
|
+
for (; "string" == typeof r3[r3.length - 1] && !r3[r3.length - 1].trim(); ) r3.pop();
|
|
1445
|
+
if (null === t.wrapper) return r3;
|
|
1446
|
+
const o2 = t.wrapper || (n2 ? "span" : "div");
|
|
1447
|
+
let a2;
|
|
1448
|
+
if (r3.length > 1 || t.forceWrapper) a2 = r3;
|
|
1760
1449
|
else {
|
|
1761
|
-
if (1 ===
|
|
1762
|
-
|
|
1763
|
-
}
|
|
1764
|
-
return
|
|
1765
|
-
}
|
|
1766
|
-
__name(
|
|
1767
|
-
function
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1450
|
+
if (1 === r3.length) return a2 = r3[0], "string" == typeof a2 ? J2("span", { key: "outer" }, a2) : a2;
|
|
1451
|
+
a2 = null;
|
|
1452
|
+
}
|
|
1453
|
+
return H2(o2, { key: "outer" }, a2);
|
|
1454
|
+
}
|
|
1455
|
+
__name(K2, "K");
|
|
1456
|
+
function oe2(e2, n2) {
|
|
1457
|
+
if (!n2 || !n2.trim()) return null;
|
|
1458
|
+
const r3 = n2.match(u);
|
|
1459
|
+
return r3 ? r3.reduce(function(n3, r4) {
|
|
1460
|
+
const t2 = r4.indexOf("=");
|
|
1461
|
+
if (-1 !== t2) {
|
|
1462
|
+
const a2 = function(e3) {
|
|
1463
|
+
return -1 !== e3.indexOf("-") && null === e3.match(O) && (e3 = e3.replace(w, function(e4, n4) {
|
|
1464
|
+
return n4.toUpperCase();
|
|
1775
1465
|
})), e3;
|
|
1776
|
-
}(
|
|
1777
|
-
const
|
|
1778
|
-
return ('"' ===
|
|
1779
|
-
}(
|
|
1780
|
-
if ("ref" ===
|
|
1781
|
-
const
|
|
1782
|
-
return "style" ===
|
|
1783
|
-
const
|
|
1784
|
-
let
|
|
1785
|
-
if (!e4) return
|
|
1786
|
-
for (let
|
|
1787
|
-
const
|
|
1788
|
-
if ('"' !==
|
|
1466
|
+
}(r4.slice(0, t2)).trim(), c2 = function(e3) {
|
|
1467
|
+
const n4 = e3[0];
|
|
1468
|
+
return ('"' === n4 || "'" === n4) && e3.length >= 2 && e3[e3.length - 1] === n4 ? e3.slice(1, -1) : e3;
|
|
1469
|
+
}(r4.slice(t2 + 1).trim()), u2 = o[a2] || a2;
|
|
1470
|
+
if ("ref" === u2) return n3;
|
|
1471
|
+
const l2 = n3[u2] = function(e3, n4, r5, t3) {
|
|
1472
|
+
return "style" === n4 ? function(e4) {
|
|
1473
|
+
const n5 = [];
|
|
1474
|
+
let r6 = "", t4 = false, o2 = false, a3 = "";
|
|
1475
|
+
if (!e4) return n5;
|
|
1476
|
+
for (let c4 = 0; c4 < e4.length; c4++) {
|
|
1477
|
+
const i2 = e4[c4];
|
|
1478
|
+
if ('"' !== i2 && "'" !== i2 || t4 || (o2 ? i2 === a3 && (o2 = false, a3 = "") : (o2 = true, a3 = i2)), "(" === i2 && r6.endsWith("url") ? t4 = true : ")" === i2 && t4 && (t4 = false), ";" !== i2 || o2 || t4) r6 += i2;
|
|
1789
1479
|
else {
|
|
1790
|
-
const e5 =
|
|
1480
|
+
const e5 = r6.trim();
|
|
1791
1481
|
if (e5) {
|
|
1792
|
-
const
|
|
1793
|
-
if (
|
|
1794
|
-
const
|
|
1795
|
-
|
|
1482
|
+
const r7 = e5.indexOf(":");
|
|
1483
|
+
if (r7 > 0) {
|
|
1484
|
+
const t5 = e5.slice(0, r7).trim(), o3 = e5.slice(r7 + 1).trim();
|
|
1485
|
+
n5.push([t5, o3]);
|
|
1796
1486
|
}
|
|
1797
1487
|
}
|
|
1798
|
-
|
|
1488
|
+
r6 = "";
|
|
1799
1489
|
}
|
|
1800
1490
|
}
|
|
1801
|
-
const
|
|
1802
|
-
if (
|
|
1803
|
-
const e5 =
|
|
1491
|
+
const c3 = r6.trim();
|
|
1492
|
+
if (c3) {
|
|
1493
|
+
const e5 = c3.indexOf(":");
|
|
1804
1494
|
if (e5 > 0) {
|
|
1805
|
-
const
|
|
1806
|
-
|
|
1495
|
+
const r7 = c3.slice(0, e5).trim(), t5 = c3.slice(e5 + 1).trim();
|
|
1496
|
+
n5.push([r7, t5]);
|
|
1807
1497
|
}
|
|
1808
1498
|
}
|
|
1809
|
-
return
|
|
1810
|
-
}(
|
|
1811
|
-
return
|
|
1812
|
-
}, {}) : -1 !==
|
|
1813
|
-
}(e2,
|
|
1814
|
-
"string" == typeof
|
|
1815
|
-
} else "style" !==
|
|
1816
|
-
return
|
|
1499
|
+
return n5;
|
|
1500
|
+
}(r5).reduce(function(n5, [r6, o2]) {
|
|
1501
|
+
return n5[r6.replace(/(-[a-z])/g, (e4) => e4[1].toUpperCase())] = t3(o2, e3, r6), n5;
|
|
1502
|
+
}, {}) : -1 !== i.indexOf(n4) ? t3(Pe(r5), e3, n4) : (r5.match(C) && (r5 = Pe(r5.slice(1, r5.length - 1))), "true" === r5 || "false" !== r5 && r5);
|
|
1503
|
+
}(e2, a2, c2, V2);
|
|
1504
|
+
"string" == typeof l2 && (R.test(l2) || j.test(l2)) && (n3[u2] = K2(l2.trim()));
|
|
1505
|
+
} else "style" !== r4 && (n3[o[r4] || r4] = true);
|
|
1506
|
+
return n3;
|
|
1817
1507
|
}, {}) : null;
|
|
1818
1508
|
}
|
|
1819
|
-
__name(
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
const
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1509
|
+
__name(oe2, "oe");
|
|
1510
|
+
const ue2 = [], le2 = {}, se2 = { 0: { t: [">"], o: Me(f), i: 1, u(e2, n2, r3) {
|
|
1511
|
+
const [, t2, o2] = e2[0].replace(_, "").match(d);
|
|
1512
|
+
return { alert: t2, children: n2(o2, r3) };
|
|
1513
|
+
}, l(e2, n2, r3) {
|
|
1514
|
+
const t2 = { key: r3.key };
|
|
1515
|
+
return e2.alert && (t2.className = "markdown-alert-" + s2(e2.alert.toLowerCase(), Re), e2.children.unshift({ attrs: {}, children: [{ type: "27", text: e2.alert }], noInnerParse: true, type: "11", tag: "header" })), J2("blockquote", t2, n2(e2.children, r3));
|
|
1516
|
+
} }, 1: { o: we(p), i: 1, u: Ve, l: /* @__PURE__ */ __name((e2, n2, r3) => J2("br", { key: r3.key }), "l") }, 2: { t: /* @__PURE__ */ __name((e2) => {
|
|
1517
|
+
const n2 = e2[0];
|
|
1518
|
+
return "-" === n2 || "*" === n2 || "_" === n2;
|
|
1519
|
+
}, "t"), o: Me(y), i: 1, u: Ve, l: /* @__PURE__ */ __name((e2, n2, r3) => J2("hr", { key: r3.key }), "l") }, 3: { t: [" "], o: Me(g), i: 0, u: /* @__PURE__ */ __name((e2) => ({ lang: void 0, text: Pe(ze(e2[0].replace(/^ {4}/gm, ""))) }), "u"), l: /* @__PURE__ */ __name((e2, r3, t2) => J2("pre", { key: t2.key }, J2("code", n({}, e2.attrs, { className: e2.lang ? "lang-" + e2.lang : "" }), e2.text)), "l") }, 4: { t: ["```", "~~~"], o: Me(h), i: 0, u: /* @__PURE__ */ __name((e2) => ({ attrs: oe2("code", e2[3] || ""), lang: e2[2] || void 0, text: e2[4], type: "3" }), "u") }, 5: { t: ["`"], o: Te(m), i: 3, u: /* @__PURE__ */ __name((e2) => ({ text: Pe(e2[2]) }), "u"), l: /* @__PURE__ */ __name((e2, n2, r3) => J2("code", { key: r3.key }, e2.text), "l") }, 6: { t: ["[^"], o: Me(v), i: 0, u: /* @__PURE__ */ __name((e2) => (ue2.push({ footnote: e2[2], identifier: e2[1] }), {}), "u"), l: He }, 7: { t: ["[^"], o: Ie(q), i: 1, u: /* @__PURE__ */ __name((e2) => ({ target: "#" + s2(e2[1], Re), text: e2[1] }), "u"), l: /* @__PURE__ */ __name((e2, n2, r3) => J2("a", { key: r3.key, href: V2(e2.target, "a", "href") }, J2("sup", { key: r3.key }, e2.text)), "l") }, 8: { t: ["[ ]", "[x]"], o: Ie(S), i: 1, u: /* @__PURE__ */ __name((e2) => ({ completed: "x" === e2[1].toLowerCase() }), "u"), l: /* @__PURE__ */ __name((e2, n2, r3) => J2("input", { checked: e2.completed, key: r3.key, readOnly: true, type: "checkbox" }), "l") }, 9: { t: ["#"], o: Me(t.enforceAtxHeadings ? E : z), i: 1, u: /* @__PURE__ */ __name((e2, n2, r3) => ({ children: Ze(n2, e2[2], r3), id: s2(e2[2], Re), level: e2[1].length }), "u"), l: /* @__PURE__ */ __name((e2, n2, r3) => J2("h" + e2.level, { id: e2.id, key: r3.key }, n2(e2.children, r3)), "l") }, 10: { o: Me(A), i: 0, u: /* @__PURE__ */ __name((e2, n2, r3) => ({ children: Ze(n2, e2[1], r3), level: "=" === e2[2] ? 1 : 2, type: "9" }), "u") }, 11: { t: ["<"], o: we(R), i: 1, u(e2, n2, r3) {
|
|
1520
|
+
const [, t2] = e2[3].match(ie), o2 = RegExp("^" + t2, "gm"), a2 = e2[3].replace(o2, ""), i2 = (u2 = a2, W2.some((e3) => e3.test(u2)) ? Ge : Ze);
|
|
1521
|
+
var u2;
|
|
1522
|
+
const l2 = e2[1].toLowerCase(), s3 = -1 !== c.indexOf(l2), f2 = (s3 ? l2 : e2[1]).trim(), _2 = { attrs: oe2(f2, e2[2]), noInnerParse: s3, tag: f2 };
|
|
1523
|
+
if (r3.inAnchor = r3.inAnchor || "a" === l2, s3) _2.text = e2[3];
|
|
1524
|
+
else {
|
|
1525
|
+
const e3 = r3.inHTML;
|
|
1526
|
+
r3.inHTML = true, _2.children = i2(n2, a2, r3), r3.inHTML = e3;
|
|
1527
|
+
}
|
|
1528
|
+
return r3.inAnchor = false, _2;
|
|
1529
|
+
}, l: /* @__PURE__ */ __name((e2, r3, t2) => J2(e2.tag, n({ key: t2.key }, e2.attrs), e2.text || (e2.children ? r3(e2.children, t2) : "")), "l") }, 13: { t: ["<"], o: we(j), i: 1, u(e2) {
|
|
1530
|
+
const n2 = e2[1].trim();
|
|
1531
|
+
return { attrs: oe2(n2, e2[2] || ""), tag: n2 };
|
|
1532
|
+
}, l: /* @__PURE__ */ __name((e2, r3, t2) => J2(e2.tag, n({}, e2.attrs, { key: t2.key })), "l") }, 12: { t: ["<!--"], o: we(L), i: 1, u: /* @__PURE__ */ __name(() => ({}), "u"), l: He }, 14: { t: ["!["], o: Te(Se), i: 1, u: /* @__PURE__ */ __name((e2) => ({ alt: Pe(e2[1]), target: Pe(e2[2]), title: Pe(e2[3]) }), "u"), l: /* @__PURE__ */ __name((e2, n2, r3) => J2("img", { key: r3.key, alt: e2.alt || void 0, title: e2.title || void 0, src: V2(e2.target, "img", "src") }), "l") }, 15: { t: ["["], o: Ie(be), i: 3, u: /* @__PURE__ */ __name((e2, n2, r3) => ({ children: Ne(n2, e2[1], r3), target: Pe(e2[2]), title: Pe(e2[3]) }), "u"), l: /* @__PURE__ */ __name((e2, n2, r3) => J2("a", { key: r3.key, href: V2(e2.target, "a", "href"), title: e2.title }, n2(e2.children, r3)), "l") }, 16: { t: ["<"], o: Ie(M), i: 0, u: /* @__PURE__ */ __name((e2) => ({ children: [{ text: e2[1], type: "27" }], target: e2[1], type: "15" }), "u") }, 17: { t: /* @__PURE__ */ __name((e2, n2) => !n2.inAnchor && !t.disableAutoLink && (Ee(e2, "http://") || Ee(e2, "https://")), "t"), o: Ie(I), i: 0, u: /* @__PURE__ */ __name((e2) => ({ children: [{ text: e2[1], type: "27" }], target: e2[1], title: void 0, type: "15" }), "u") }, 18: { t: ["<"], o: Ie(T), i: 0, u(e2) {
|
|
1533
|
+
let n2 = e2[1], r3 = e2[1];
|
|
1534
|
+
return l.test(r3) || (r3 = "mailto:" + r3), { children: [{ text: n2.replace("mailto:", ""), type: "27" }], target: r3, type: "15" };
|
|
1535
|
+
} }, 20: $e(J2, 1), 33: $e(J2, 2), 19: { o: Me(k), i: 3, u: Ve, l: /* @__PURE__ */ __name(() => "\n", "l") }, 21: { o: Ce(function(e2, n2) {
|
|
1536
|
+
if (n2.inline || n2.simple || n2.inHTML && -1 === e2.indexOf("\n\n") && -1 === n2.prevCapture.indexOf("\n\n")) return null;
|
|
1537
|
+
let r3 = "";
|
|
1538
|
+
e2.split("\n").every((e3) => (e3 += "\n", !Q2.some((n3) => n3.test(e3)) && (r3 += e3, !!e3.trim())));
|
|
1539
|
+
const t2 = ze(r3);
|
|
1540
|
+
return "" === t2 ? null : [r3, , t2];
|
|
1541
|
+
}), i: 3, u: Ue, l: /* @__PURE__ */ __name((e2, n2, r3) => J2("p", { key: r3.key }, n2(e2.children, r3)), "l") }, 22: { t: ["["], o: Ie(P), i: 0, u: /* @__PURE__ */ __name((e2) => (le2[e2[1]] = { target: e2[2], title: e2[4] }, {}), "u"), l: He }, 23: { t: ["!["], o: Te(Z), i: 0, u: /* @__PURE__ */ __name((e2) => ({ alt: e2[1] ? Pe(e2[1]) : void 0, ref: e2[2] }), "u"), l: /* @__PURE__ */ __name((e2, n2, r3) => le2[e2.ref] ? J2("img", { key: r3.key, alt: e2.alt, src: V2(le2[e2.ref].target, "img", "src"), title: le2[e2.ref].title }) : null, "l") }, 24: { t: /* @__PURE__ */ __name((e2) => "[" === e2[0] && -1 === e2.indexOf("]("), "t"), o: Ie(N), i: 0, u: /* @__PURE__ */ __name((e2, n2, r3) => ({ children: n2(e2[1], r3), fallbackChildren: e2[0], ref: e2[2] }), "u"), l: /* @__PURE__ */ __name((e2, n2, r3) => le2[e2.ref] ? J2("a", { key: r3.key, href: V2(le2[e2.ref].target, "a", "href"), title: le2[e2.ref].title }, n2(e2.children, r3)) : J2("span", { key: r3.key }, e2.fallbackChildren), "l") }, 25: { t: ["|"], o: Me(D), i: 1, u: Oe, l(e2, n2, r3) {
|
|
1542
|
+
const t2 = e2;
|
|
1543
|
+
return J2("table", { key: r3.key }, J2("thead", null, J2("tr", null, t2.header.map(function(e3, o2) {
|
|
1544
|
+
return J2("th", { key: o2, style: je(t2, o2) }, n2(e3, r3));
|
|
1545
|
+
}))), J2("tbody", null, t2.cells.map(function(e3, o2) {
|
|
1546
|
+
return J2("tr", { key: o2 }, e3.map(function(e4, o3) {
|
|
1547
|
+
return J2("td", { key: o3, style: je(t2, o3) }, n2(e4, r3));
|
|
1845
1548
|
}));
|
|
1846
1549
|
})));
|
|
1847
|
-
} },
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1550
|
+
} }, 27: { o: Ce(function(e2, n2) {
|
|
1551
|
+
let r3;
|
|
1552
|
+
return Ee(e2, ":") && (r3 = re.exec(e2)), r3 || ae.exec(e2);
|
|
1553
|
+
}), i: 4, u(e2) {
|
|
1554
|
+
const n2 = e2[0];
|
|
1555
|
+
return { text: -1 === n2.indexOf("&") ? n2 : n2.replace(B, (e3, n3) => t.namedCodesToUnicode[n3] || e3) };
|
|
1556
|
+
}, l: /* @__PURE__ */ __name((e2) => e2.text, "l") }, 28: { t: ["**", "__"], o: Te(X), i: 2, u: /* @__PURE__ */ __name((e2, n2, r3) => ({ children: n2(e2[2], r3) }), "u"), l: /* @__PURE__ */ __name((e2, n2, r3) => J2("strong", { key: r3.key }, n2(e2.children, r3)), "l") }, 29: { t: /* @__PURE__ */ __name((e2) => {
|
|
1557
|
+
const n2 = e2[0];
|
|
1558
|
+
return ("*" === n2 || "_" === n2) && e2[1] !== n2;
|
|
1559
|
+
}, "t"), o: Te(Y), i: 3, u: /* @__PURE__ */ __name((e2, n2, r3) => ({ children: n2(e2[2], r3) }), "u"), l: /* @__PURE__ */ __name((e2, n2, r3) => J2("em", { key: r3.key }, n2(e2.children, r3)), "l") }, 30: { t: ["\\"], o: Te(te), i: 1, u: /* @__PURE__ */ __name((e2) => ({ text: e2[1], type: "27" }), "u") }, 31: { t: ["=="], o: Te(ee), i: 3, u: Ue, l: /* @__PURE__ */ __name((e2, n2, r3) => J2("mark", { key: r3.key }, n2(e2.children, r3)), "l") }, 32: { t: ["~~"], o: Te(ne), i: 3, u: Ue, l: /* @__PURE__ */ __name((e2, n2, r3) => J2("del", { key: r3.key }, n2(e2.children, r3)), "l") } };
|
|
1560
|
+
true === t.disableParsingRawHTML && (delete se2[11], delete se2[13]);
|
|
1561
|
+
const fe2 = function(e2) {
|
|
1562
|
+
var n2 = Object.keys(e2);
|
|
1563
|
+
function r3(t2, o2) {
|
|
1564
|
+
var a2 = [];
|
|
1565
|
+
if (o2.prevCapture = o2.prevCapture || "", t2.trim()) for (; t2; ) for (var c2 = 0; c2 < n2.length; ) {
|
|
1566
|
+
var i2 = n2[c2], u2 = e2[i2];
|
|
1567
|
+
if (!u2.t || Ae(t2, o2, u2.t)) {
|
|
1568
|
+
var l2 = u2.o(t2, o2);
|
|
1569
|
+
if (l2 && l2[0]) {
|
|
1570
|
+
t2 = t2.substring(l2[0].length);
|
|
1571
|
+
var s3 = u2.u(l2, r3, o2);
|
|
1572
|
+
o2.prevCapture += l2[0], s3.type || (s3.type = i2), a2.push(s3);
|
|
1863
1573
|
break;
|
|
1864
1574
|
}
|
|
1865
|
-
|
|
1866
|
-
}
|
|
1575
|
+
c2++;
|
|
1576
|
+
} else c2++;
|
|
1867
1577
|
}
|
|
1868
|
-
return
|
|
1869
|
-
}
|
|
1870
|
-
__name(
|
|
1871
|
-
return
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
}(e3), t3);
|
|
1578
|
+
return o2.prevCapture = "", a2;
|
|
1579
|
+
}
|
|
1580
|
+
__name(r3, "r");
|
|
1581
|
+
return n2.sort(function(n3, r4) {
|
|
1582
|
+
return e2[n3].i - e2[r4].i || (n3 < r4 ? -1 : 1);
|
|
1583
|
+
}), function(e3, n3) {
|
|
1584
|
+
return r3(function(e4) {
|
|
1585
|
+
return e4.replace(x, "\n").replace($, "").replace(U, " ");
|
|
1586
|
+
}(e3), n3);
|
|
1878
1587
|
};
|
|
1879
|
-
}(
|
|
1880
|
-
return function(
|
|
1881
|
-
const
|
|
1882
|
-
return
|
|
1588
|
+
}(se2), _e2 = (de2 = /* @__PURE__ */ function(e2, n2) {
|
|
1589
|
+
return function(r3, t2, o2) {
|
|
1590
|
+
const a2 = e2[r3.type].l;
|
|
1591
|
+
return n2 ? n2(() => a2(r3, t2, o2), r3, t2, o2) : a2(r3, t2, o2);
|
|
1883
1592
|
};
|
|
1884
|
-
}(
|
|
1885
|
-
if (Array.isArray(
|
|
1886
|
-
const
|
|
1887
|
-
let
|
|
1888
|
-
for (let
|
|
1889
|
-
|
|
1890
|
-
const
|
|
1891
|
-
|
|
1593
|
+
}(se2, t.renderRule), /* @__PURE__ */ __name(function e2(n2, r3 = {}) {
|
|
1594
|
+
if (Array.isArray(n2)) {
|
|
1595
|
+
const t2 = r3.key, o2 = [];
|
|
1596
|
+
let a2 = false;
|
|
1597
|
+
for (let t3 = 0; t3 < n2.length; t3++) {
|
|
1598
|
+
r3.key = t3;
|
|
1599
|
+
const c2 = e2(n2[t3], r3), i2 = "string" == typeof c2;
|
|
1600
|
+
i2 && a2 ? o2[o2.length - 1] += c2 : null !== c2 && o2.push(c2), a2 = i2;
|
|
1892
1601
|
}
|
|
1893
|
-
return
|
|
1602
|
+
return r3.key = t2, o2;
|
|
1894
1603
|
}
|
|
1895
|
-
return
|
|
1604
|
+
return de2(n2, e2, r3);
|
|
1896
1605
|
}, "e"));
|
|
1897
|
-
var
|
|
1898
|
-
const
|
|
1899
|
-
return
|
|
1900
|
-
return
|
|
1901
|
-
}))) :
|
|
1606
|
+
var de2;
|
|
1607
|
+
const pe2 = K2(r2);
|
|
1608
|
+
return ue2.length ? J2("div", null, pe2, J2("footer", { key: "footer" }, ue2.map(function(e2) {
|
|
1609
|
+
return J2("div", { id: s2(e2.identifier, Re), key: e2.identifier }, e2.identifier, _e2(fe2(e2.footnote, { inline: true })));
|
|
1610
|
+
}))) : pe2;
|
|
1902
1611
|
}
|
|
1903
|
-
__name(
|
|
1904
|
-
var index_modern_default = /* @__PURE__ */ __name((
|
|
1905
|
-
let { children:
|
|
1612
|
+
__name(Je, "Je");
|
|
1613
|
+
var index_modern_default = /* @__PURE__ */ __name((n2) => {
|
|
1614
|
+
let { children: t = "", options: o2 } = n2, a2 = function(e2, n3) {
|
|
1906
1615
|
if (null == e2) return {};
|
|
1907
|
-
var
|
|
1908
|
-
for (
|
|
1909
|
-
return
|
|
1910
|
-
}(
|
|
1911
|
-
return e.cloneElement(
|
|
1616
|
+
var r2, t2, o3 = {}, a3 = Object.keys(e2);
|
|
1617
|
+
for (t2 = 0; t2 < a3.length; t2++) n3.indexOf(r2 = a3[t2]) >= 0 || (o3[r2] = e2[r2]);
|
|
1618
|
+
return o3;
|
|
1619
|
+
}(n2, r);
|
|
1620
|
+
return e.cloneElement(Je(t, o2), a2);
|
|
1912
1621
|
}, "default");
|
|
1913
1622
|
|
|
1914
1623
|
// ../addons/docs/src/blocks/components/ArgsTable/ArgRow.tsx
|
|
@@ -4611,7 +4320,7 @@ var FilesControl = /* @__PURE__ */ __name(({
|
|
|
4611
4320
|
}, "FilesControl");
|
|
4612
4321
|
|
|
4613
4322
|
// ../addons/docs/src/blocks/controls/index.tsx
|
|
4614
|
-
var LazyColorControl = lazy(() => import("../../_browser-chunks/Color-
|
|
4323
|
+
var LazyColorControl = lazy(() => import("../../_browser-chunks/Color-KPLIACXP.js"));
|
|
4615
4324
|
var ColorControl = /* @__PURE__ */ __name((props) => React27.createElement(Suspense, { fallback: React27.createElement("div", null) }, React27.createElement(LazyColorControl, { ...props })), "ColorControl");
|
|
4616
4325
|
|
|
4617
4326
|
// ../addons/docs/src/blocks/components/ArgsTable/ArgControl.tsx
|
|
@@ -5845,7 +5554,7 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5845
5554
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5846
5555
|
var __getProtoOf = Object.getPrototypeOf;
|
|
5847
5556
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5848
|
-
var
|
|
5557
|
+
var __commonJS = /* @__PURE__ */ __name((cb, mod) => /* @__PURE__ */ __name(function __require() {
|
|
5849
5558
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
5850
5559
|
}, "__require"), "__commonJS");
|
|
5851
5560
|
var __export = /* @__PURE__ */ __name((target, all2) => {
|
|
@@ -5861,7 +5570,7 @@ var __copyProps = /* @__PURE__ */ __name((to, from, except, desc) => {
|
|
|
5861
5570
|
return to;
|
|
5862
5571
|
}, "__copyProps");
|
|
5863
5572
|
var __toESM2 = /* @__PURE__ */ __name((mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod)), "__toESM");
|
|
5864
|
-
var require_is_object =
|
|
5573
|
+
var require_is_object = __commonJS({
|
|
5865
5574
|
"node_modules/is-object/index.js"(exports, module) {
|
|
5866
5575
|
"use strict";
|
|
5867
5576
|
module.exports = /* @__PURE__ */ __name(function isObject2(x2) {
|
|
@@ -5869,7 +5578,7 @@ var require_is_object = __commonJS2({
|
|
|
5869
5578
|
}, "isObject");
|
|
5870
5579
|
}
|
|
5871
5580
|
});
|
|
5872
|
-
var require_is_window =
|
|
5581
|
+
var require_is_window = __commonJS({
|
|
5873
5582
|
"node_modules/is-window/index.js"(exports, module) {
|
|
5874
5583
|
"use strict";
|
|
5875
5584
|
module.exports = function(obj) {
|
|
@@ -5881,7 +5590,7 @@ var require_is_window = __commonJS2({
|
|
|
5881
5590
|
};
|
|
5882
5591
|
}
|
|
5883
5592
|
});
|
|
5884
|
-
var require_is_dom =
|
|
5593
|
+
var require_is_dom = __commonJS({
|
|
5885
5594
|
"node_modules/is-dom/index.js"(exports, module) {
|
|
5886
5595
|
var isObject2 = require_is_object();
|
|
5887
5596
|
var isWindow = require_is_window();
|
|
@@ -7184,7 +6893,9 @@ import {
|
|
|
7184
6893
|
experimental_useStatusStore,
|
|
7185
6894
|
useAddonState as useAddonState2,
|
|
7186
6895
|
useChannel as useChannel2,
|
|
7187
|
-
useParameter as useParameter2
|
|
6896
|
+
useParameter as useParameter2,
|
|
6897
|
+
useStorybookApi as useStorybookApi5,
|
|
6898
|
+
useStorybookState as useStorybookState2
|
|
7188
6899
|
} from "storybook/manager-api";
|
|
7189
6900
|
|
|
7190
6901
|
// src/component-testing/constants.ts
|
|
@@ -7263,10 +6974,9 @@ import { useTheme as useTheme3 } from "storybook/theming";
|
|
|
7263
6974
|
// ../node_modules/ansi-regex/index.js
|
|
7264
6975
|
function ansiRegex({ onlyFirst = false } = {}) {
|
|
7265
6976
|
const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
|
|
7266
|
-
const
|
|
7267
|
-
|
|
7268
|
-
|
|
7269
|
-
].join("|");
|
|
6977
|
+
const osc = `(?:\\u001B\\][\\s\\S]*?${ST})`;
|
|
6978
|
+
const csi = "[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";
|
|
6979
|
+
const pattern = `${osc}|${csi}`;
|
|
7270
6980
|
return new RegExp(pattern, onlyFirst ? void 0 : "g");
|
|
7271
6981
|
}
|
|
7272
6982
|
__name(ansiRegex, "ansiRegex");
|
|
@@ -7390,8 +7100,6 @@ import React57, { Fragment as Fragment2 } from "react";
|
|
|
7390
7100
|
import { logger as logger4 } from "storybook/internal/client-logger";
|
|
7391
7101
|
|
|
7392
7102
|
// ../node_modules/@devtools-ds/object-inspector/dist/esm/ObjectInspector.js
|
|
7393
|
-
var import_extends5 = __toESM(require_extends());
|
|
7394
|
-
var import_objectWithoutProperties6 = __toESM(require_objectWithoutProperties());
|
|
7395
7103
|
import React56, { useEffect as useEffect16, useState as useState19 } from "react";
|
|
7396
7104
|
|
|
7397
7105
|
// ../node_modules/clsx/dist/clsx.m.js
|
|
@@ -7459,7 +7167,7 @@ var buildAST = /* @__PURE__ */ __name(async (key, value2, depth, sortKeys, isPro
|
|
|
7459
7167
|
};
|
|
7460
7168
|
if (value2 && isKnownObject(value2) && depth < 100) {
|
|
7461
7169
|
const children = [];
|
|
7462
|
-
let
|
|
7170
|
+
let t = "object";
|
|
7463
7171
|
if (isArray(value2)) {
|
|
7464
7172
|
for (let i2 = 0; i2 < value2.length; i2++) {
|
|
7465
7173
|
children.push(async () => {
|
|
@@ -7468,7 +7176,7 @@ var buildAST = /* @__PURE__ */ __name(async (key, value2, depth, sortKeys, isPro
|
|
|
7468
7176
|
return child;
|
|
7469
7177
|
});
|
|
7470
7178
|
}
|
|
7471
|
-
|
|
7179
|
+
t = "array";
|
|
7472
7180
|
} else {
|
|
7473
7181
|
const keys = Object.getOwnPropertyNames(value2);
|
|
7474
7182
|
if (sortKeys) keys.sort();
|
|
@@ -7485,7 +7193,7 @@ var buildAST = /* @__PURE__ */ __name(async (key, value2, depth, sortKeys, isPro
|
|
|
7485
7193
|
});
|
|
7486
7194
|
}
|
|
7487
7195
|
if (typeof value2 === "function") {
|
|
7488
|
-
|
|
7196
|
+
t = "function";
|
|
7489
7197
|
}
|
|
7490
7198
|
if (value2 instanceof Promise) {
|
|
7491
7199
|
const [status, result] = await getPromiseState(value2);
|
|
@@ -7501,7 +7209,7 @@ var buildAST = /* @__PURE__ */ __name(async (key, value2, depth, sortKeys, isPro
|
|
|
7501
7209
|
return child;
|
|
7502
7210
|
});
|
|
7503
7211
|
}
|
|
7504
|
-
|
|
7212
|
+
t = "promise";
|
|
7505
7213
|
}
|
|
7506
7214
|
if (value2 instanceof Map) {
|
|
7507
7215
|
const entries = Array.from(value2.entries());
|
|
@@ -7522,7 +7230,7 @@ var buildAST = /* @__PURE__ */ __name(async (key, value2, depth, sortKeys, isPro
|
|
|
7522
7230
|
child.parent = astNode;
|
|
7523
7231
|
return child;
|
|
7524
7232
|
});
|
|
7525
|
-
|
|
7233
|
+
t = "map";
|
|
7526
7234
|
}
|
|
7527
7235
|
if (value2 instanceof Set) {
|
|
7528
7236
|
const entries = Array.from(value2.entries());
|
|
@@ -7539,7 +7247,7 @@ var buildAST = /* @__PURE__ */ __name(async (key, value2, depth, sortKeys, isPro
|
|
|
7539
7247
|
child.parent = astNode;
|
|
7540
7248
|
return child;
|
|
7541
7249
|
});
|
|
7542
|
-
|
|
7250
|
+
t = "set";
|
|
7543
7251
|
}
|
|
7544
7252
|
}
|
|
7545
7253
|
if (value2 !== Object.prototype && showPrototype) {
|
|
@@ -7549,7 +7257,7 @@ var buildAST = /* @__PURE__ */ __name(async (key, value2, depth, sortKeys, isPro
|
|
|
7549
7257
|
return child;
|
|
7550
7258
|
});
|
|
7551
7259
|
}
|
|
7552
|
-
astNode.type =
|
|
7260
|
+
astNode.type = t;
|
|
7553
7261
|
astNode.children = children;
|
|
7554
7262
|
astNode.isPrototype = isPrototype;
|
|
7555
7263
|
}
|
|
@@ -7561,9 +7269,32 @@ var parse4 = /* @__PURE__ */ __name((data, sortKeys, includePrototypes) => {
|
|
|
7561
7269
|
return buildAST("root", data, 0, keys, void 0, prototypes);
|
|
7562
7270
|
}, "parse");
|
|
7563
7271
|
|
|
7272
|
+
// ../node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
7273
|
+
function ownKeys(e2, r2) {
|
|
7274
|
+
var t = Object.keys(e2);
|
|
7275
|
+
if (Object.getOwnPropertySymbols) {
|
|
7276
|
+
var o2 = Object.getOwnPropertySymbols(e2);
|
|
7277
|
+
r2 && (o2 = o2.filter(function(r3) {
|
|
7278
|
+
return Object.getOwnPropertyDescriptor(e2, r3).enumerable;
|
|
7279
|
+
})), t.push.apply(t, o2);
|
|
7280
|
+
}
|
|
7281
|
+
return t;
|
|
7282
|
+
}
|
|
7283
|
+
__name(ownKeys, "ownKeys");
|
|
7284
|
+
function _objectSpread2(e2) {
|
|
7285
|
+
for (var r2 = 1; r2 < arguments.length; r2++) {
|
|
7286
|
+
var t = null != arguments[r2] ? arguments[r2] : {};
|
|
7287
|
+
r2 % 2 ? ownKeys(Object(t), true).forEach(function(r3) {
|
|
7288
|
+
_defineProperty(e2, r3, t[r3]);
|
|
7289
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e2, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r3) {
|
|
7290
|
+
Object.defineProperty(e2, r3, Object.getOwnPropertyDescriptor(t, r3));
|
|
7291
|
+
});
|
|
7292
|
+
}
|
|
7293
|
+
return e2;
|
|
7294
|
+
}
|
|
7295
|
+
__name(_objectSpread2, "_objectSpread2");
|
|
7296
|
+
|
|
7564
7297
|
// ../node_modules/@devtools-ds/themes/dist/esm/utils.js
|
|
7565
|
-
var import_objectSpread2 = __toESM(require_objectSpread2());
|
|
7566
|
-
var import_objectWithoutProperties = __toESM(require_objectWithoutProperties2());
|
|
7567
7298
|
import React48 from "react";
|
|
7568
7299
|
var _excluded = ["children"];
|
|
7569
7300
|
var ThemeContext2 = React48.createContext({
|
|
@@ -7573,10 +7304,10 @@ var ThemeContext2 = React48.createContext({
|
|
|
7573
7304
|
var ThemeProvider2 = /* @__PURE__ */ __name((_ref) => {
|
|
7574
7305
|
let {
|
|
7575
7306
|
children
|
|
7576
|
-
} = _ref, value2 = (
|
|
7307
|
+
} = _ref, value2 = _objectWithoutProperties(_ref, _excluded);
|
|
7577
7308
|
const wrappedTheme = React48.useContext(ThemeContext2);
|
|
7578
7309
|
return React48.createElement(ThemeContext2.Provider, {
|
|
7579
|
-
value: (
|
|
7310
|
+
value: _objectSpread2(_objectSpread2({}, wrappedTheme), value2)
|
|
7580
7311
|
}, children);
|
|
7581
7312
|
}, "ThemeProvider");
|
|
7582
7313
|
var useTheme4 = /* @__PURE__ */ __name((props, styles = {}) => {
|
|
@@ -7592,17 +7323,12 @@ var useTheme4 = /* @__PURE__ */ __name((props, styles = {}) => {
|
|
|
7592
7323
|
}, "useTheme");
|
|
7593
7324
|
|
|
7594
7325
|
// ../node_modules/@devtools-ds/themes/dist/esm/AutoThemeProvider.js
|
|
7595
|
-
var import_extends = __toESM(require_extends2());
|
|
7596
|
-
var import_objectWithoutProperties2 = __toESM(require_objectWithoutProperties2());
|
|
7597
7326
|
import React49 from "react";
|
|
7598
7327
|
|
|
7599
7328
|
// ../node_modules/@devtools-ds/object-inspector/dist/esm/ObjectInspectorItem.js
|
|
7600
|
-
var import_objectSpread22 = __toESM(require_objectSpread22());
|
|
7601
7329
|
import React55, { useEffect as useEffect15, useState as useState18 } from "react";
|
|
7602
7330
|
|
|
7603
7331
|
// ../node_modules/@devtools-ds/tree/dist/esm/index.js
|
|
7604
|
-
var import_extends2 = __toESM(require_extends3());
|
|
7605
|
-
var import_objectWithoutProperties3 = __toESM(require_objectWithoutProperties3());
|
|
7606
7332
|
import React51, { useState as useState16, useEffect as useEffect13 } from "react";
|
|
7607
7333
|
|
|
7608
7334
|
// ../node_modules/@devtools-ds/tree/dist/esm/TreeContext.js
|
|
@@ -7630,7 +7356,7 @@ var Tree = /* @__PURE__ */ __name((props) => {
|
|
|
7630
7356
|
onUpdate,
|
|
7631
7357
|
onSelect,
|
|
7632
7358
|
open
|
|
7633
|
-
} = props, html = (
|
|
7359
|
+
} = props, html = _objectWithoutProperties(props, _excluded2);
|
|
7634
7360
|
const {
|
|
7635
7361
|
themeClass,
|
|
7636
7362
|
currentTheme
|
|
@@ -7790,7 +7516,7 @@ var Tree = /* @__PURE__ */ __name((props) => {
|
|
|
7790
7516
|
} = React51.useContext(TreeContext_default);
|
|
7791
7517
|
const showHover = hasHover ? hover : false;
|
|
7792
7518
|
if (!isChild) {
|
|
7793
|
-
return React51.createElement("ul", (
|
|
7519
|
+
return React51.createElement("ul", _extends({
|
|
7794
7520
|
role: "tree",
|
|
7795
7521
|
tabIndex: 0,
|
|
7796
7522
|
className: clsx_m_default(Tree_css_default.tree, Tree_css_default.group, themeClass, className),
|
|
@@ -7805,7 +7531,7 @@ var Tree = /* @__PURE__ */ __name((props) => {
|
|
|
7805
7531
|
}, React51.createElement(Tree, props)));
|
|
7806
7532
|
}
|
|
7807
7533
|
if (!hasChildren) {
|
|
7808
|
-
return React51.createElement("li", (
|
|
7534
|
+
return React51.createElement("li", _extends({
|
|
7809
7535
|
role: "treeitem",
|
|
7810
7536
|
className: Tree_css_default.item
|
|
7811
7537
|
}, html), React51.createElement("div", {
|
|
@@ -7844,7 +7570,7 @@ var Tree = /* @__PURE__ */ __name((props) => {
|
|
|
7844
7570
|
}, React51.createElement("span", null, React51.createElement("span", {
|
|
7845
7571
|
"aria-hidden": true,
|
|
7846
7572
|
className: arrowClass
|
|
7847
|
-
}), React51.createElement("span", null, label))), React51.createElement("ul", (
|
|
7573
|
+
}), React51.createElement("span", null, label))), React51.createElement("ul", _extends({
|
|
7848
7574
|
role: "group",
|
|
7849
7575
|
className: clsx_m_default(className, Tree_css_default.group)
|
|
7850
7576
|
}, html), isOpen && React51.Children.map(children, (child) => {
|
|
@@ -7863,8 +7589,6 @@ Tree.defaultProps = {
|
|
|
7863
7589
|
};
|
|
7864
7590
|
|
|
7865
7591
|
// ../node_modules/@devtools-ds/object-inspector/dist/esm/ObjectValue.js
|
|
7866
|
-
var import_extends3 = __toESM(require_extends());
|
|
7867
|
-
var import_objectWithoutProperties4 = __toESM(require_objectWithoutProperties());
|
|
7868
7592
|
import React53, { useState as useState17, useEffect as useEffect14 } from "react";
|
|
7869
7593
|
|
|
7870
7594
|
// ../node_modules/@devtools-ds/object-inspector/dist/esm/ObjectInspector.css.js
|
|
@@ -7890,7 +7614,7 @@ var ObjectValue2 = /* @__PURE__ */ __name((props) => {
|
|
|
7890
7614
|
showKey,
|
|
7891
7615
|
colorScheme,
|
|
7892
7616
|
className
|
|
7893
|
-
} = props, html = (
|
|
7617
|
+
} = props, html = _objectWithoutProperties(props, _excluded3);
|
|
7894
7618
|
const {
|
|
7895
7619
|
themeClass
|
|
7896
7620
|
} = useTheme4({
|
|
@@ -7936,7 +7660,7 @@ var ObjectValue2 = /* @__PURE__ */ __name((props) => {
|
|
|
7936
7660
|
value2 = buildValue(ast.key, ast.value.constructor.name, ObjectInspector_css_default.key, showKey, ast.depth);
|
|
7937
7661
|
}
|
|
7938
7662
|
}
|
|
7939
|
-
return React53.createElement("span", (
|
|
7663
|
+
return React53.createElement("span", _extends({
|
|
7940
7664
|
className: clsx_m_default(themeClass, className)
|
|
7941
7665
|
}, html), asyncValue, value2);
|
|
7942
7666
|
}, "ObjectValue");
|
|
@@ -7946,8 +7670,6 @@ ObjectValue2.defaultProps = {
|
|
|
7946
7670
|
var ObjectValue_default = ObjectValue2;
|
|
7947
7671
|
|
|
7948
7672
|
// ../node_modules/@devtools-ds/object-inspector/dist/esm/ObjectLabel.js
|
|
7949
|
-
var import_extends4 = __toESM(require_extends());
|
|
7950
|
-
var import_objectWithoutProperties5 = __toESM(require_objectWithoutProperties());
|
|
7951
7673
|
import React54 from "react";
|
|
7952
7674
|
var _excluded4 = ["ast", "theme", "previewMax", "open", "colorScheme", "className"];
|
|
7953
7675
|
var buildPreview = /* @__PURE__ */ __name((children, previewMax, showKey) => {
|
|
@@ -8025,7 +7747,7 @@ var ObjectLabel2 = /* @__PURE__ */ __name((props) => {
|
|
|
8025
7747
|
open,
|
|
8026
7748
|
colorScheme,
|
|
8027
7749
|
className
|
|
8028
|
-
} = props, html = (
|
|
7750
|
+
} = props, html = _objectWithoutProperties(props, _excluded4);
|
|
8029
7751
|
const {
|
|
8030
7752
|
themeClass,
|
|
8031
7753
|
currentTheme
|
|
@@ -8044,12 +7766,12 @@ var ObjectLabel2 = /* @__PURE__ */ __name((props) => {
|
|
|
8044
7766
|
}, isRoot ? "" : `${ast.key}: `);
|
|
8045
7767
|
}, "Key");
|
|
8046
7768
|
if (ast.type === "array") {
|
|
8047
|
-
return React54.createElement("span", (
|
|
7769
|
+
return React54.createElement("span", _extends({
|
|
8048
7770
|
className: classes
|
|
8049
7771
|
}, html), React54.createElement(Key, null), getArrayLabel(ast, open, previewMax, currentTheme));
|
|
8050
7772
|
}
|
|
8051
7773
|
if (ast.type === "function") {
|
|
8052
|
-
return React54.createElement("span", (
|
|
7774
|
+
return React54.createElement("span", _extends({
|
|
8053
7775
|
className: classes
|
|
8054
7776
|
}, html), React54.createElement(Key, null), currentTheme === "chrome" && React54.createElement("span", {
|
|
8055
7777
|
className: ObjectInspector_css_default.functionDecorator
|
|
@@ -8060,21 +7782,21 @@ var ObjectLabel2 = /* @__PURE__ */ __name((props) => {
|
|
|
8060
7782
|
}, `${ast.value.name}()`));
|
|
8061
7783
|
}
|
|
8062
7784
|
if (ast.type === "promise") {
|
|
8063
|
-
return React54.createElement("span", (
|
|
7785
|
+
return React54.createElement("span", _extends({
|
|
8064
7786
|
className: classes
|
|
8065
7787
|
}, html), React54.createElement(Key, null), getPromiseLabel(ast, open, previewMax));
|
|
8066
7788
|
}
|
|
8067
7789
|
if (ast.type === "map") {
|
|
8068
|
-
return React54.createElement("span", (
|
|
7790
|
+
return React54.createElement("span", _extends({
|
|
8069
7791
|
className: classes
|
|
8070
7792
|
}, html), React54.createElement(Key, null), getMapLabel(ast, open, previewMax, currentTheme));
|
|
8071
7793
|
}
|
|
8072
7794
|
if (ast.type === "set") {
|
|
8073
|
-
return React54.createElement("span", (
|
|
7795
|
+
return React54.createElement("span", _extends({
|
|
8074
7796
|
className: classes
|
|
8075
7797
|
}, html), React54.createElement(Key, null), getSetLabel(ast, open, previewMax));
|
|
8076
7798
|
}
|
|
8077
|
-
return React54.createElement("span", (
|
|
7799
|
+
return React54.createElement("span", _extends({
|
|
8078
7800
|
className: classes
|
|
8079
7801
|
}, html), React54.createElement(Key, null), getObjectLabel(ast, open, previewMax, currentTheme));
|
|
8080
7802
|
}, "ObjectLabel");
|
|
@@ -8098,7 +7820,7 @@ var ObjectInspectorItem = /* @__PURE__ */ __name((props) => {
|
|
|
8098
7820
|
if (ast.type !== "value") {
|
|
8099
7821
|
const promises = ast.children.map((f2) => f2());
|
|
8100
7822
|
const children = await Promise.all(promises);
|
|
8101
|
-
const r2 = (
|
|
7823
|
+
const r2 = _objectSpread2(_objectSpread2({}, ast), {}, {
|
|
8102
7824
|
children
|
|
8103
7825
|
});
|
|
8104
7826
|
setResolved(r2);
|
|
@@ -8160,7 +7882,7 @@ var ObjectInspector2 = /* @__PURE__ */ __name((props) => {
|
|
|
8160
7882
|
theme: theme3,
|
|
8161
7883
|
colorScheme,
|
|
8162
7884
|
onSelect
|
|
8163
|
-
} = props, html = (
|
|
7885
|
+
} = props, html = _objectWithoutProperties(props, _excluded5);
|
|
8164
7886
|
const [ast, setAST] = useState19(void 0);
|
|
8165
7887
|
const {
|
|
8166
7888
|
themeClass,
|
|
@@ -8176,7 +7898,7 @@ var ObjectInspector2 = /* @__PURE__ */ __name((props) => {
|
|
|
8176
7898
|
}, "runParser");
|
|
8177
7899
|
runParser();
|
|
8178
7900
|
}, [data, sortKeys, includePrototypes]);
|
|
8179
|
-
return React56.createElement("div", (
|
|
7901
|
+
return React56.createElement("div", _extends({
|
|
8180
7902
|
className: clsx_m_default(ObjectInspector_css_default.objectInspector, className, themeClass)
|
|
8181
7903
|
}, html), ast && React56.createElement(ThemeProvider2, {
|
|
8182
7904
|
theme: currentTheme,
|
|
@@ -8903,8 +8625,10 @@ var StyledIconButton2 = styled39(IconButton6)(({ theme: theme3 }) => ({
|
|
|
8903
8625
|
var StyledSeparator = styled39(Separator)({
|
|
8904
8626
|
marginTop: 0
|
|
8905
8627
|
});
|
|
8906
|
-
var StyledLocation = styled39(P2)(({ theme: theme3 }) => ({
|
|
8907
|
-
color: theme3.textMutedColor,
|
|
8628
|
+
var StyledLocation = styled39(P2)(({ theme: theme3, isText }) => ({
|
|
8629
|
+
color: isText ? theme3.textMutedColor : theme3.color.secondary,
|
|
8630
|
+
cursor: isText ? "default" : "pointer",
|
|
8631
|
+
fontWeight: isText ? theme3.typography.weight.regular : theme3.typography.weight.bold,
|
|
8908
8632
|
justifyContent: "flex-end",
|
|
8909
8633
|
textAlign: "right",
|
|
8910
8634
|
whiteSpace: "nowrap",
|
|
@@ -8937,7 +8661,10 @@ var Subnav = /* @__PURE__ */ __name(({
|
|
|
8937
8661
|
controlStates,
|
|
8938
8662
|
status,
|
|
8939
8663
|
storyFileName,
|
|
8940
|
-
onScrollToEnd
|
|
8664
|
+
onScrollToEnd,
|
|
8665
|
+
importPath,
|
|
8666
|
+
canOpenInEditor,
|
|
8667
|
+
api
|
|
8941
8668
|
}) => {
|
|
8942
8669
|
const buttonText = status === "errored" ? "Scroll to error" : "Scroll to end";
|
|
8943
8670
|
const theme3 = useTheme7();
|
|
@@ -8973,7 +8700,26 @@ var Subnav = /* @__PURE__ */ __name(({
|
|
|
8973
8700
|
disabled: !controlStates.end
|
|
8974
8701
|
},
|
|
8975
8702
|
React63.createElement(FastForwardIcon, null)
|
|
8976
|
-
)), React63.createElement(WithTooltip3, { trigger: "hover", hasChrome: false, tooltip: React63.createElement(Note2, { note: "Rerun" }) }, React63.createElement(RerunButton, { "aria-label": "Rerun", onClick: controls.rerun }, React63.createElement(SyncIcon, null)))), storyFileName && React63.createElement(Group, null, React63.createElement(
|
|
8703
|
+
)), React63.createElement(WithTooltip3, { trigger: "hover", hasChrome: false, tooltip: React63.createElement(Note2, { note: "Rerun" }) }, React63.createElement(RerunButton, { "aria-label": "Rerun", onClick: controls.rerun }, React63.createElement(SyncIcon, null)))), (importPath || storyFileName) && React63.createElement(Group, null, canOpenInEditor ? React63.createElement(
|
|
8704
|
+
WithTooltip3,
|
|
8705
|
+
{
|
|
8706
|
+
trigger: "hover",
|
|
8707
|
+
hasChrome: false,
|
|
8708
|
+
tooltip: React63.createElement(Note2, { note: "Open in editor" })
|
|
8709
|
+
},
|
|
8710
|
+
React63.createElement(
|
|
8711
|
+
StyledLocation,
|
|
8712
|
+
{
|
|
8713
|
+
"aria-label": "Open in editor",
|
|
8714
|
+
onClick: () => {
|
|
8715
|
+
api.openInEditor({
|
|
8716
|
+
file: importPath
|
|
8717
|
+
});
|
|
8718
|
+
}
|
|
8719
|
+
},
|
|
8720
|
+
storyFileName
|
|
8721
|
+
)
|
|
8722
|
+
) : React63.createElement(StyledLocation, { isText: true }, storyFileName)))));
|
|
8977
8723
|
}, "Subnav");
|
|
8978
8724
|
|
|
8979
8725
|
// src/component-testing/components/TestDiscrepancyMessage.tsx
|
|
@@ -9067,7 +8813,10 @@ var InteractionsPanel = React65.memo(
|
|
|
9067
8813
|
onScrollToEnd,
|
|
9068
8814
|
endRef,
|
|
9069
8815
|
hasResultMismatch,
|
|
9070
|
-
browserTestStatus
|
|
8816
|
+
browserTestStatus,
|
|
8817
|
+
importPath,
|
|
8818
|
+
canOpenInEditor,
|
|
8819
|
+
api
|
|
9071
8820
|
}) {
|
|
9072
8821
|
const filter = useAnsiToHtmlFilter();
|
|
9073
8822
|
const hasRealInteractions = interactions.some((i2) => i2.id !== INTERNAL_RENDER_CALL_ID);
|
|
@@ -9078,7 +8827,10 @@ var InteractionsPanel = React65.memo(
|
|
|
9078
8827
|
controlStates,
|
|
9079
8828
|
status,
|
|
9080
8829
|
storyFileName: fileName,
|
|
9081
|
-
onScrollToEnd
|
|
8830
|
+
onScrollToEnd,
|
|
8831
|
+
importPath,
|
|
8832
|
+
canOpenInEditor,
|
|
8833
|
+
api
|
|
9082
8834
|
}
|
|
9083
8835
|
), React65.createElement("div", { "aria-label": "Interactions list" }, interactions.map((call) => React65.createElement(
|
|
9084
8836
|
Interaction,
|
|
@@ -9213,13 +8965,18 @@ var getInternalRenderLogItem = /* @__PURE__ */ __name((status) => ({
|
|
|
9213
8965
|
}), "getInternalRenderLogItem");
|
|
9214
8966
|
var Panel = memo4(
|
|
9215
8967
|
/* @__PURE__ */ __name(function PanelMemoized({ refId, storyId, storyUrl }) {
|
|
9216
|
-
const { statusValue, testRunId } = experimental_useStatusStore((
|
|
9217
|
-
const storyStatus = refId ? void 0 :
|
|
8968
|
+
const { statusValue, testRunId } = experimental_useStatusStore((state2) => {
|
|
8969
|
+
const storyStatus = refId ? void 0 : state2[storyId]?.[STATUS_TYPE_ID_COMPONENT_TEST];
|
|
9218
8970
|
return {
|
|
9219
8971
|
statusValue: storyStatus?.value,
|
|
9220
8972
|
testRunId: storyStatus?.data?.testRunId
|
|
9221
8973
|
};
|
|
9222
8974
|
});
|
|
8975
|
+
const state = useStorybookState2();
|
|
8976
|
+
const api = useStorybookApi5();
|
|
8977
|
+
const data = api.getData(state.storyId, state.refId);
|
|
8978
|
+
const importPath = data?.importPath;
|
|
8979
|
+
const canOpenInEditor = global2.CONFIG_TYPE === "DEVELOPMENT" && !state.refId;
|
|
9223
8980
|
const [panelState, set] = useAddonState2(ADDON_ID7, {
|
|
9224
8981
|
status: "rendering",
|
|
9225
8982
|
controlStates: INITIAL_CONTROL_STATES,
|
|
@@ -9267,8 +9024,8 @@ var Panel = memo4(
|
|
|
9267
9024
|
[EVENTS.SYNC]: (payload) => {
|
|
9268
9025
|
log.current = [getInternalRenderLogItem("done" /* DONE */), ...payload.logItems];
|
|
9269
9026
|
set(
|
|
9270
|
-
(
|
|
9271
|
-
{ ...
|
|
9027
|
+
(state2) => getPanelState(
|
|
9028
|
+
{ ...state2, controlStates: payload.controlStates, pausedAt: payload.pausedAt },
|
|
9272
9029
|
{ log: log.current, calls: calls.current, collapsed, setCollapsed }
|
|
9273
9030
|
)
|
|
9274
9031
|
);
|
|
@@ -9295,10 +9052,10 @@ var Panel = memo4(
|
|
|
9295
9052
|
unhandledErrors: void 0
|
|
9296
9053
|
});
|
|
9297
9054
|
} else {
|
|
9298
|
-
set((
|
|
9299
|
-
const status2 = event.newPhase in playStatusMap ? playStatusMap[event.newPhase] :
|
|
9055
|
+
set((state2) => {
|
|
9056
|
+
const status2 = event.newPhase in playStatusMap ? playStatusMap[event.newPhase] : state2.status;
|
|
9300
9057
|
return getPanelState(
|
|
9301
|
-
{ ...
|
|
9058
|
+
{ ...state2, status: status2, pausedAt: void 0 },
|
|
9302
9059
|
{ log: log.current, calls: calls.current, collapsed, setCollapsed }
|
|
9303
9060
|
);
|
|
9304
9061
|
});
|
|
@@ -9311,9 +9068,9 @@ var Panel = memo4(
|
|
|
9311
9068
|
getInternalRenderCall(storyId, { ...e2, callId: INTERNAL_RENDER_CALL_ID })
|
|
9312
9069
|
);
|
|
9313
9070
|
set(
|
|
9314
|
-
(
|
|
9071
|
+
(state2) => getPanelState(
|
|
9315
9072
|
{
|
|
9316
|
-
...
|
|
9073
|
+
...state2,
|
|
9317
9074
|
hasException: true,
|
|
9318
9075
|
caughtException: void 0,
|
|
9319
9076
|
controlStates: INITIAL_CONTROL_STATES,
|
|
@@ -9324,17 +9081,17 @@ var Panel = memo4(
|
|
|
9324
9081
|
);
|
|
9325
9082
|
},
|
|
9326
9083
|
[PLAY_FUNCTION_THREW_EXCEPTION]: (caughtException2) => {
|
|
9327
|
-
set((
|
|
9084
|
+
set((state2) => ({ ...state2, caughtException: caughtException2, hasException: true }));
|
|
9328
9085
|
},
|
|
9329
9086
|
[UNHANDLED_ERRORS_WHILE_PLAYING]: (unhandledErrors2) => {
|
|
9330
|
-
set((
|
|
9087
|
+
set((state2) => ({ ...state2, unhandledErrors: unhandledErrors2, hasException: true }));
|
|
9331
9088
|
}
|
|
9332
9089
|
},
|
|
9333
9090
|
[collapsed]
|
|
9334
9091
|
);
|
|
9335
9092
|
useEffect17(() => {
|
|
9336
9093
|
set(
|
|
9337
|
-
(
|
|
9094
|
+
(state2) => getPanelState(state2, { log: log.current, calls: calls.current, collapsed, setCollapsed })
|
|
9338
9095
|
);
|
|
9339
9096
|
}, [set, collapsed]);
|
|
9340
9097
|
const controls = useMemo5(
|
|
@@ -9402,7 +9159,10 @@ var Panel = memo4(
|
|
|
9402
9159
|
unhandledErrors,
|
|
9403
9160
|
pausedAt,
|
|
9404
9161
|
endRef,
|
|
9405
|
-
onScrollToEnd: scrollTarget && scrollToTarget
|
|
9162
|
+
onScrollToEnd: scrollTarget && scrollToTarget,
|
|
9163
|
+
importPath,
|
|
9164
|
+
canOpenInEditor,
|
|
9165
|
+
api
|
|
9406
9166
|
}
|
|
9407
9167
|
));
|
|
9408
9168
|
}, "PanelMemoized")
|
|
@@ -9411,9 +9171,9 @@ var Panel = memo4(
|
|
|
9411
9171
|
// src/component-testing/components/PanelTitle.tsx
|
|
9412
9172
|
import React67 from "react";
|
|
9413
9173
|
import { Badge as Badge3 } from "storybook/internal/components";
|
|
9414
|
-
import { useAddonState as useAddonState3, useStorybookApi as
|
|
9174
|
+
import { useAddonState as useAddonState3, useStorybookApi as useStorybookApi6 } from "storybook/manager-api";
|
|
9415
9175
|
function PanelTitle() {
|
|
9416
|
-
const api =
|
|
9176
|
+
const api = useStorybookApi6();
|
|
9417
9177
|
const selectedPanel = api.getSelectedPanel();
|
|
9418
9178
|
const [addonState = {}] = useAddonState3(ADDON_ID7);
|
|
9419
9179
|
const { status, hasException, interactionsCount } = addonState;
|
|
@@ -9586,11 +9346,11 @@ import { addons as addons5, types as types5 } from "storybook/manager-api";
|
|
|
9586
9346
|
import React71, { useCallback as useCallback9, useEffect as useEffect18 } from "react";
|
|
9587
9347
|
import { IconButton as IconButton8 } from "storybook/internal/components";
|
|
9588
9348
|
import { RulerIcon } from "@storybook/icons";
|
|
9589
|
-
import { useGlobals as useGlobals3, useStorybookApi as
|
|
9349
|
+
import { useGlobals as useGlobals3, useStorybookApi as useStorybookApi7 } from "storybook/manager-api";
|
|
9590
9350
|
var Tool = /* @__PURE__ */ __name(() => {
|
|
9591
9351
|
const [globals, updateGlobals] = useGlobals3();
|
|
9592
9352
|
const { measureEnabled } = globals || {};
|
|
9593
|
-
const api =
|
|
9353
|
+
const api = useStorybookApi7();
|
|
9594
9354
|
const toggleMeasure = useCallback9(
|
|
9595
9355
|
() => updateGlobals({
|
|
9596
9356
|
measureEnabled: !measureEnabled
|
|
@@ -9599,7 +9359,7 @@ var Tool = /* @__PURE__ */ __name(() => {
|
|
|
9599
9359
|
);
|
|
9600
9360
|
useEffect18(() => {
|
|
9601
9361
|
api.setAddonShortcut(ADDON_ID4, {
|
|
9602
|
-
label: "Toggle Measure
|
|
9362
|
+
label: "Toggle Measure",
|
|
9603
9363
|
defaultShortcut: ["M"],
|
|
9604
9364
|
actionName: "measure",
|
|
9605
9365
|
showInMenu: false,
|
|
@@ -9638,10 +9398,10 @@ import { addons as addons6, types as types6 } from "storybook/manager-api";
|
|
|
9638
9398
|
import React74, { memo as memo6, useCallback as useCallback10, useEffect as useEffect19 } from "react";
|
|
9639
9399
|
import { IconButton as IconButton9 } from "storybook/internal/components";
|
|
9640
9400
|
import { OutlineIcon } from "@storybook/icons";
|
|
9641
|
-
import { useGlobals as useGlobals4, useStorybookApi as
|
|
9401
|
+
import { useGlobals as useGlobals4, useStorybookApi as useStorybookApi8 } from "storybook/manager-api";
|
|
9642
9402
|
var OutlineSelector = memo6(/* @__PURE__ */ __name(function OutlineSelector2() {
|
|
9643
9403
|
const [globals, updateGlobals] = useGlobals4();
|
|
9644
|
-
const api =
|
|
9404
|
+
const api = useStorybookApi8();
|
|
9645
9405
|
const isActive = [true, "true"].includes(globals[PARAM_KEY4]);
|
|
9646
9406
|
const toggleOutline = useCallback10(
|
|
9647
9407
|
() => updateGlobals({
|