storybook 10.2.0-alpha.0 → 10.2.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_browser-chunks/Color-E5XDEOX4.js +484 -0
- package/dist/_browser-chunks/{WithTooltip-IO6J4KBT.js → WithTooltip-65CFNBJE.js} +70 -70
- package/dist/_browser-chunks/{chunk-45UGUKRX.js → chunk-242VQQM5.js} +1 -1
- package/dist/_browser-chunks/chunk-2NDLAB5X.js +363 -0
- package/dist/_browser-chunks/{chunk-JP7NCOJX.js → chunk-3LY4VQVK.js} +1 -1
- package/dist/_browser-chunks/{chunk-XJNX76GA.js → chunk-54PNNATT.js} +3 -20
- package/dist/_browser-chunks/{chunk-VYJQ7RU5.js → chunk-6QKNWBQB.js} +17 -17
- package/dist/_browser-chunks/chunk-CLSHX4VX.js +4140 -0
- package/dist/_browser-chunks/{chunk-2XZMBGTA.js → chunk-DOSERVNW.js} +1 -1
- package/dist/_browser-chunks/chunk-HPYUT3WS.js +199 -0
- package/dist/_browser-chunks/{chunk-BRX2HXH7.js → chunk-IH6QJILI.js} +1 -1
- package/dist/_browser-chunks/{chunk-AS2HQEYC.js → chunk-IWQGIXJS.js} +1 -1
- package/dist/_browser-chunks/{chunk-UD6FQLAF.js → chunk-JK6U3MQW.js} +3 -3
- package/dist/_browser-chunks/{chunk-CHUV5WSW.js → chunk-LE2LTDW3.js} +1 -1
- package/dist/_browser-chunks/{chunk-RP5RXKFU.js → chunk-MOYJJEXA.js} +38 -29
- package/dist/_browser-chunks/chunk-NZMVUW5T.js +7 -0
- package/dist/_browser-chunks/{chunk-AXG2BOBL.js → chunk-S6TK43XQ.js} +10 -10
- package/dist/_browser-chunks/{chunk-H6XK3RSC.js → chunk-UAYGIC3L.js} +6 -6
- package/dist/_browser-chunks/{chunk-YKE5S47A.js → chunk-V2VKKSMQ.js} +18 -18
- package/dist/_browser-chunks/chunk-VIJ7SQRO.js +568 -0
- package/dist/_browser-chunks/chunk-XCZK5QUJ.js +0 -0
- package/dist/_browser-chunks/{chunk-3OXGAGBE.js → chunk-XLJZ7AOP.js} +14 -14
- package/dist/_browser-chunks/{chunk-SS2NHR7W.js → chunk-Y6HZAT53.js} +10 -12
- package/dist/_browser-chunks/{chunk-P4F4UVXX.js → chunk-YKABRMAI.js} +15 -15
- package/dist/_browser-chunks/{chunk-WJYERY3R.js → chunk-ZCFV7BZB.js} +2 -2
- package/dist/_browser-chunks/{formatter-QJ4M4OGQ.js → formatter-EIJCOSYU.js} +2 -2
- package/dist/_browser-chunks/{syntaxhighlighter-IQDEPFLK.js → syntaxhighlighter-ED5Y7EFY.js} +119 -119
- package/dist/_node-chunks/{builder-manager-7Y5SBM27.js → builder-manager-ZK4QXZNX.js} +22 -22
- package/dist/_node-chunks/{camelcase-VIOG5GUK.js → camelcase-QWQG7I72.js} +8 -8
- package/dist/_node-chunks/{chunk-G2SSRQRU.js → chunk-2AFVBCGF.js} +6 -6
- package/dist/_node-chunks/{chunk-YS4ZBVQ2.js → chunk-5VZMCPTH.js} +18 -18
- package/dist/_node-chunks/{chunk-RZYKYZNC.js → chunk-6OZRMRVO.js} +31 -31
- package/dist/_node-chunks/chunk-CLCLRZYL.js +61 -0
- package/dist/_node-chunks/{chunk-6I6BDAIH.js → chunk-CW7HJRCY.js} +9 -9
- package/dist/_node-chunks/chunk-DF3QP62W.js +18 -0
- package/dist/_node-chunks/{chunk-RQYJV7HO.js → chunk-DWVHBQGR.js} +165 -191
- package/dist/_node-chunks/chunk-EVBCPGQO.js +20 -0
- package/dist/_node-chunks/{chunk-NSWP6O57.js → chunk-EXZXVBZO.js} +8 -8
- package/dist/_node-chunks/{chunk-46UKK4ME.js → chunk-FZFZ5TOM.js} +9 -9
- package/dist/_node-chunks/{chunk-IIAWDLTX.js → chunk-GKEAARBQ.js} +10 -10
- package/dist/_node-chunks/{chunk-RFI7ULWH.js → chunk-HMFROKHU.js} +19 -19
- package/dist/_node-chunks/{chunk-KKTHRW4D.js → chunk-I5TOD3AY.js} +66 -72
- package/dist/_node-chunks/{chunk-MTAECA6H.js → chunk-KVNLJSAB.js} +619 -148
- package/dist/_node-chunks/{chunk-DGCZNDMZ.js → chunk-NKOHF7TQ.js} +10 -10
- package/dist/_node-chunks/{chunk-4APIDVTW.js → chunk-OV2CP4VV.js} +7 -7
- package/dist/_node-chunks/chunk-PCMFKXWQ.js +23 -0
- package/dist/_node-chunks/{chunk-T3T35CKM.js → chunk-Q5ZQH2OQ.js} +15 -15
- package/dist/_node-chunks/{chunk-VMPPKUVU.js → chunk-QFSK4B7R.js} +8 -8
- package/dist/_node-chunks/{chunk-WOPURGV3.js → chunk-R2J3OB3H.js} +6 -6
- package/dist/_node-chunks/{chunk-UCXU3VCO.js → chunk-RGQC4G3L.js} +165 -21
- package/dist/_node-chunks/{chunk-KX2RIBIP.js → chunk-TOXVUAH2.js} +6 -6
- package/dist/_node-chunks/{chunk-XE4QTYSE.js → chunk-URBB5EGY.js} +8 -8
- package/dist/_node-chunks/{chunk-XCRYZZCA.js → chunk-UWJ4BOOL.js} +597 -593
- package/dist/_node-chunks/{chunk-RTFXQIIL.js → chunk-VJPI73BB.js} +230 -236
- package/dist/_node-chunks/{chunk-I7HQSEQK.js → chunk-WOS3OQVT.js} +6 -6
- package/dist/_node-chunks/{chunk-UGZX6OPP.js → chunk-WUKWNPSQ.js} +17 -17
- package/dist/_node-chunks/{chunk-2265F7MI.js → chunk-XFU23B4C.js} +9 -9
- package/dist/_node-chunks/{dist-GV3REIPT.js → dist-UBFMIJZC.js} +10 -10
- package/dist/_node-chunks/{globby-QE4LR4PT.js → globby-VD3CGPVI.js} +154 -154
- package/dist/_node-chunks/{lib-NXQ5B2WJ.js → lib-MMJB47J3.js} +16 -16
- package/dist/_node-chunks/{mdx-N42X6CFJ-IGCQXXC5.js → mdx-N42X6CFJ-3J2G7NZZ.js} +11 -11
- package/dist/_node-chunks/{p-limit-S2V3UH5Q.js → p-limit-SOBWTEVH.js} +8 -8
- package/dist/babel/index.js +10 -10
- package/dist/bin/core.js +28 -28
- package/dist/bin/dispatcher.js +11 -11
- package/dist/bin/loader.js +14 -11
- package/dist/channels/index.js +3 -3
- package/dist/cli/index.d.ts +2 -1
- package/dist/cli/index.js +18 -18
- package/dist/common/index.js +19 -19
- package/dist/components/index.d.ts +9 -2
- package/dist/components/index.js +327 -311
- package/dist/core-server/index.js +127 -127
- package/dist/core-server/presets/common-manager.css +2 -2
- package/dist/core-server/presets/common-manager.js +43 -38
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +4390 -173
- package/dist/csf/index.js +39 -35
- package/dist/csf-tools/index.js +9 -9
- package/dist/docs-tools/index.js +6 -5
- package/dist/instrumenter/index.js +1 -1
- package/dist/manager/globals-runtime.js +18956 -12602
- package/dist/manager/runtime.js +148 -132
- package/dist/manager-api/index.js +31 -22
- package/dist/mocking-utils/index.js +14 -14
- package/dist/node-logger/index.d.ts +2 -2
- package/dist/node-logger/index.js +9 -9
- package/dist/preview/runtime.js +30784 -24388
- package/dist/preview-api/index.js +12 -11
- package/dist/preview-errors.js +2 -2
- package/dist/router/index.js +12 -13
- package/dist/server-errors.js +11 -11
- package/dist/telemetry/index.d.ts +1 -1
- package/dist/telemetry/index.js +23 -23
- package/dist/test/index.js +3104 -1604
- package/dist/theming/create.js +3 -3
- package/dist/theming/index.js +38 -38
- package/package.json +2 -8
- package/dist/_browser-chunks/Color-TNPFN3FC.js +0 -1097
- package/dist/_browser-chunks/chunk-3IAH5M2U.js +0 -171
- package/dist/_browser-chunks/chunk-AIOS4NGK.js +0 -252
- package/dist/_browser-chunks/chunk-EZSQOHRI.js +0 -18
- package/dist/_browser-chunks/chunk-GFLS4VP3.js +0 -64
- package/dist/_browser-chunks/chunk-QKODTO7K.js +0 -7
- package/dist/_node-chunks/chunk-5JSWIKE2.js +0 -18
- package/dist/_node-chunks/chunk-BJMYJWGF.js +0 -20
- package/dist/_node-chunks/chunk-BYYI4JA6.js +0 -61
- package/dist/_node-chunks/chunk-RQ4GZHOA.js +0 -23
package/dist/manager/runtime.js
CHANGED
|
@@ -30,18 +30,18 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
30
30
|
mod
|
|
31
31
|
));
|
|
32
32
|
|
|
33
|
-
//
|
|
33
|
+
// ../../node_modules/prop-types/lib/ReactPropTypesSecret.js
|
|
34
34
|
var require_ReactPropTypesSecret = __commonJS({
|
|
35
|
-
"
|
|
35
|
+
"../../node_modules/prop-types/lib/ReactPropTypesSecret.js"(exports, module) {
|
|
36
36
|
"use strict";
|
|
37
37
|
var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
38
38
|
module.exports = ReactPropTypesSecret;
|
|
39
39
|
}
|
|
40
40
|
});
|
|
41
41
|
|
|
42
|
-
//
|
|
42
|
+
// ../../node_modules/prop-types/factoryWithThrowingShims.js
|
|
43
43
|
var require_factoryWithThrowingShims = __commonJS({
|
|
44
|
-
"
|
|
44
|
+
"../../node_modules/prop-types/factoryWithThrowingShims.js"(exports, module) {
|
|
45
45
|
"use strict";
|
|
46
46
|
var ReactPropTypesSecret = require_ReactPropTypesSecret();
|
|
47
47
|
function emptyFunction() {
|
|
@@ -90,17 +90,17 @@ var require_factoryWithThrowingShims = __commonJS({
|
|
|
90
90
|
}
|
|
91
91
|
});
|
|
92
92
|
|
|
93
|
-
//
|
|
93
|
+
// ../../node_modules/prop-types/index.js
|
|
94
94
|
var require_prop_types = __commonJS({
|
|
95
|
-
"
|
|
95
|
+
"../../node_modules/prop-types/index.js"(exports, module) {
|
|
96
96
|
module.exports = require_factoryWithThrowingShims()();
|
|
97
97
|
var ReactIs, throwOnDirectAccess;
|
|
98
98
|
}
|
|
99
99
|
});
|
|
100
100
|
|
|
101
|
-
//
|
|
101
|
+
// ../../node_modules/react-fast-compare/index.js
|
|
102
102
|
var require_react_fast_compare = __commonJS({
|
|
103
|
-
"
|
|
103
|
+
"../../node_modules/react-fast-compare/index.js"(exports, module) {
|
|
104
104
|
var hasElementType = typeof Element < "u", hasMap = typeof Map == "function", hasSet = typeof Set == "function", hasArrayBuffer = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
|
|
105
105
|
function equal4(a2, b2) {
|
|
106
106
|
if (a2 === b2) return !0;
|
|
@@ -160,9 +160,9 @@ var require_react_fast_compare = __commonJS({
|
|
|
160
160
|
}
|
|
161
161
|
});
|
|
162
162
|
|
|
163
|
-
//
|
|
163
|
+
// ../../node_modules/invariant/browser.js
|
|
164
164
|
var require_browser = __commonJS({
|
|
165
|
-
"
|
|
165
|
+
"../../node_modules/invariant/browser.js"(exports, module) {
|
|
166
166
|
"use strict";
|
|
167
167
|
var invariant = function(condition, format, a2, b2, c2, d2, e2, f2) {
|
|
168
168
|
if (!condition) {
|
|
@@ -186,9 +186,9 @@ var require_browser = __commonJS({
|
|
|
186
186
|
}
|
|
187
187
|
});
|
|
188
188
|
|
|
189
|
-
//
|
|
189
|
+
// ../../node_modules/shallowequal/index.js
|
|
190
190
|
var require_shallowequal = __commonJS({
|
|
191
|
-
"
|
|
191
|
+
"../../node_modules/shallowequal/index.js"(exports, module) {
|
|
192
192
|
module.exports = function(objA, objB, compare, compareContext) {
|
|
193
193
|
var ret = compare ? compare.call(compareContext, objA, objB) : void 0;
|
|
194
194
|
if (ret !== void 0)
|
|
@@ -213,9 +213,9 @@ var require_shallowequal = __commonJS({
|
|
|
213
213
|
}
|
|
214
214
|
});
|
|
215
215
|
|
|
216
|
-
//
|
|
216
|
+
// ../../node_modules/memoizerific/memoizerific.js
|
|
217
217
|
var require_memoizerific = __commonJS({
|
|
218
|
-
"
|
|
218
|
+
"../../node_modules/memoizerific/memoizerific.js"(exports, module) {
|
|
219
219
|
(function(f2) {
|
|
220
220
|
if (typeof exports == "object" && typeof module < "u")
|
|
221
221
|
module.exports = f2();
|
|
@@ -341,9 +341,9 @@ var require_memoizerific = __commonJS({
|
|
|
341
341
|
}
|
|
342
342
|
});
|
|
343
343
|
|
|
344
|
-
//
|
|
344
|
+
// ../../node_modules/picoquery/lib/string-util.js
|
|
345
345
|
var require_string_util = __commonJS({
|
|
346
|
-
"
|
|
346
|
+
"../../node_modules/picoquery/lib/string-util.js"(exports) {
|
|
347
347
|
"use strict";
|
|
348
348
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
349
349
|
exports.encodeString = encodeString;
|
|
@@ -507,9 +507,9 @@ var require_string_util = __commonJS({
|
|
|
507
507
|
}
|
|
508
508
|
});
|
|
509
509
|
|
|
510
|
-
//
|
|
510
|
+
// ../../node_modules/picoquery/lib/shared.js
|
|
511
511
|
var require_shared = __commonJS({
|
|
512
|
-
"
|
|
512
|
+
"../../node_modules/picoquery/lib/shared.js"(exports) {
|
|
513
513
|
"use strict";
|
|
514
514
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
515
515
|
exports.defaultOptions = exports.defaultShouldSerializeObject = exports.defaultValueSerializer = void 0;
|
|
@@ -545,9 +545,9 @@ var require_shared = __commonJS({
|
|
|
545
545
|
}
|
|
546
546
|
});
|
|
547
547
|
|
|
548
|
-
//
|
|
548
|
+
// ../../node_modules/picoquery/lib/object-util.js
|
|
549
549
|
var require_object_util = __commonJS({
|
|
550
|
-
"
|
|
550
|
+
"../../node_modules/picoquery/lib/object-util.js"(exports) {
|
|
551
551
|
"use strict";
|
|
552
552
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
553
553
|
exports.getDeepObject = getDeepObject;
|
|
@@ -580,9 +580,9 @@ var require_object_util = __commonJS({
|
|
|
580
580
|
}
|
|
581
581
|
});
|
|
582
582
|
|
|
583
|
-
//
|
|
583
|
+
// ../../node_modules/picoquery/lib/decode-uri-component.js
|
|
584
584
|
var require_decode_uri_component = __commonJS({
|
|
585
|
-
"
|
|
585
|
+
"../../node_modules/picoquery/lib/decode-uri-component.js"(exports) {
|
|
586
586
|
"use strict";
|
|
587
587
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
588
588
|
exports.decodeURIComponent = decodeURIComponent;
|
|
@@ -1019,9 +1019,9 @@ var require_decode_uri_component = __commonJS({
|
|
|
1019
1019
|
}
|
|
1020
1020
|
});
|
|
1021
1021
|
|
|
1022
|
-
//
|
|
1022
|
+
// ../../node_modules/picoquery/lib/parse.js
|
|
1023
1023
|
var require_parse = __commonJS({
|
|
1024
|
-
"
|
|
1024
|
+
"../../node_modules/picoquery/lib/parse.js"(exports) {
|
|
1025
1025
|
"use strict";
|
|
1026
1026
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
1027
1027
|
exports.numberValueDeserializer = exports.numberKeyDeserializer = void 0;
|
|
@@ -1068,9 +1068,9 @@ var require_parse = __commonJS({
|
|
|
1068
1068
|
}
|
|
1069
1069
|
});
|
|
1070
1070
|
|
|
1071
|
-
//
|
|
1071
|
+
// ../../node_modules/picoquery/lib/stringify.js
|
|
1072
1072
|
var require_stringify = __commonJS({
|
|
1073
|
-
"
|
|
1073
|
+
"../../node_modules/picoquery/lib/stringify.js"(exports) {
|
|
1074
1074
|
"use strict";
|
|
1075
1075
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
1076
1076
|
exports.stringify = stringify2;
|
|
@@ -1084,9 +1084,9 @@ var require_stringify = __commonJS({
|
|
|
1084
1084
|
}
|
|
1085
1085
|
});
|
|
1086
1086
|
|
|
1087
|
-
//
|
|
1087
|
+
// ../../node_modules/picoquery/lib/main.js
|
|
1088
1088
|
var require_main = __commonJS({
|
|
1089
|
-
"
|
|
1089
|
+
"../../node_modules/picoquery/lib/main.js"(exports) {
|
|
1090
1090
|
"use strict";
|
|
1091
1091
|
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o3, m2, k2, k22) {
|
|
1092
1092
|
k22 === void 0 && (k22 = k2);
|
|
@@ -1113,9 +1113,9 @@ var require_main = __commonJS({
|
|
|
1113
1113
|
}
|
|
1114
1114
|
});
|
|
1115
1115
|
|
|
1116
|
-
//
|
|
1116
|
+
// ../../node_modules/toggle-selection/index.js
|
|
1117
1117
|
var require_toggle_selection = __commonJS({
|
|
1118
|
-
"
|
|
1118
|
+
"../../node_modules/toggle-selection/index.js"(exports, module) {
|
|
1119
1119
|
module.exports = function() {
|
|
1120
1120
|
var selection = document.getSelection();
|
|
1121
1121
|
if (!selection.rangeCount)
|
|
@@ -1142,9 +1142,9 @@ var require_toggle_selection = __commonJS({
|
|
|
1142
1142
|
}
|
|
1143
1143
|
});
|
|
1144
1144
|
|
|
1145
|
-
//
|
|
1145
|
+
// ../../node_modules/copy-to-clipboard/index.js
|
|
1146
1146
|
var require_copy_to_clipboard = __commonJS({
|
|
1147
|
-
"
|
|
1147
|
+
"../../node_modules/copy-to-clipboard/index.js"(exports, module) {
|
|
1148
1148
|
"use strict";
|
|
1149
1149
|
var deselectCurrent = require_toggle_selection(), clipboardToIE11Formatting = {
|
|
1150
1150
|
"text/plain": "Text",
|
|
@@ -1189,9 +1189,9 @@ var require_copy_to_clipboard = __commonJS({
|
|
|
1189
1189
|
}
|
|
1190
1190
|
});
|
|
1191
1191
|
|
|
1192
|
-
//
|
|
1192
|
+
// ../../node_modules/scroll/index.js
|
|
1193
1193
|
var require_scroll = __commonJS({
|
|
1194
|
-
"
|
|
1194
|
+
"../../node_modules/scroll/index.js"(exports, module) {
|
|
1195
1195
|
var E_NOSCROLL = new Error("Element already at target scroll position"), E_CANCELLED = new Error("Scroll cancelled"), min = Math.min, ms = Date.now;
|
|
1196
1196
|
module.exports = {
|
|
1197
1197
|
left: make("scrollLeft"),
|
|
@@ -1222,9 +1222,9 @@ var require_scroll = __commonJS({
|
|
|
1222
1222
|
}
|
|
1223
1223
|
});
|
|
1224
1224
|
|
|
1225
|
-
//
|
|
1225
|
+
// ../../node_modules/scrollparent/scrollparent.js
|
|
1226
1226
|
var require_scrollparent = __commonJS({
|
|
1227
|
-
"
|
|
1227
|
+
"../../node_modules/scrollparent/scrollparent.js"(exports, module) {
|
|
1228
1228
|
(function(root2, factory) {
|
|
1229
1229
|
typeof define == "function" && define.amd ? define([], factory) : typeof module == "object" && module.exports ? module.exports = factory() : root2.Scrollparent = factory();
|
|
1230
1230
|
})(exports, function() {
|
|
@@ -1247,9 +1247,9 @@ var require_scrollparent = __commonJS({
|
|
|
1247
1247
|
}
|
|
1248
1248
|
});
|
|
1249
1249
|
|
|
1250
|
-
//
|
|
1250
|
+
// ../../node_modules/react-innertext/index.js
|
|
1251
1251
|
var require_react_innertext = __commonJS({
|
|
1252
|
-
"
|
|
1252
|
+
"../../node_modules/react-innertext/index.js"(exports, module) {
|
|
1253
1253
|
"use strict";
|
|
1254
1254
|
var hasProps = function(jsx2) {
|
|
1255
1255
|
return Object.prototype.hasOwnProperty.call(jsx2, "props");
|
|
@@ -1263,9 +1263,9 @@ var require_react_innertext = __commonJS({
|
|
|
1263
1263
|
}
|
|
1264
1264
|
});
|
|
1265
1265
|
|
|
1266
|
-
//
|
|
1266
|
+
// ../../node_modules/deepmerge/dist/cjs.js
|
|
1267
1267
|
var require_cjs = __commonJS({
|
|
1268
|
-
"
|
|
1268
|
+
"../../node_modules/deepmerge/dist/cjs.js"(exports, module) {
|
|
1269
1269
|
"use strict";
|
|
1270
1270
|
var isMergeableObject = function(value) {
|
|
1271
1271
|
return isNonNullObject(value) && !isSpecial(value);
|
|
@@ -1341,9 +1341,9 @@ var require_cjs = __commonJS({
|
|
|
1341
1341
|
}
|
|
1342
1342
|
});
|
|
1343
1343
|
|
|
1344
|
-
//
|
|
1344
|
+
// ../../node_modules/downshift/node_modules/react-is/cjs/react-is.production.min.js
|
|
1345
1345
|
var require_react_is_production_min = __commonJS({
|
|
1346
|
-
"
|
|
1346
|
+
"../../node_modules/downshift/node_modules/react-is/cjs/react-is.production.min.js"(exports) {
|
|
1347
1347
|
"use strict";
|
|
1348
1348
|
var b2 = Symbol.for("react.element"), c2 = Symbol.for("react.portal"), d2 = Symbol.for("react.fragment"), e2 = Symbol.for("react.strict_mode"), f2 = Symbol.for("react.profiler"), g2 = Symbol.for("react.provider"), h2 = Symbol.for("react.context"), k2 = Symbol.for("react.server_context"), l3 = Symbol.for("react.forward_ref"), m2 = Symbol.for("react.suspense"), n3 = Symbol.for("react.suspense_list"), p2 = Symbol.for("react.memo"), q2 = Symbol.for("react.lazy"), t2 = Symbol.for("react.offscreen"), u2;
|
|
1349
1349
|
u2 = Symbol.for("react.module.reference");
|
|
@@ -1438,17 +1438,17 @@ var require_react_is_production_min = __commonJS({
|
|
|
1438
1438
|
}
|
|
1439
1439
|
});
|
|
1440
1440
|
|
|
1441
|
-
//
|
|
1441
|
+
// ../../node_modules/downshift/node_modules/react-is/index.js
|
|
1442
1442
|
var require_react_is = __commonJS({
|
|
1443
|
-
"
|
|
1443
|
+
"../../node_modules/downshift/node_modules/react-is/index.js"(exports, module) {
|
|
1444
1444
|
"use strict";
|
|
1445
1445
|
module.exports = require_react_is_production_min();
|
|
1446
1446
|
}
|
|
1447
1447
|
});
|
|
1448
1448
|
|
|
1449
|
-
//
|
|
1449
|
+
// ../../node_modules/fuse.js/dist/fuse.js
|
|
1450
1450
|
var require_fuse = __commonJS({
|
|
1451
|
-
"
|
|
1451
|
+
"../../node_modules/fuse.js/dist/fuse.js"(exports, module) {
|
|
1452
1452
|
(function(e2, t2) {
|
|
1453
1453
|
typeof exports == "object" && typeof module == "object" ? module.exports = t2() : typeof define == "function" && define.amd ? define("Fuse", [], t2) : typeof exports == "object" ? exports.Fuse = t2() : e2.Fuse = t2();
|
|
1454
1454
|
})(exports, function() {
|
|
@@ -1761,9 +1761,9 @@ Output:
|
|
|
1761
1761
|
}
|
|
1762
1762
|
});
|
|
1763
1763
|
|
|
1764
|
-
//
|
|
1764
|
+
// ../../node_modules/store2/dist/store2.js
|
|
1765
1765
|
var require_store2 = __commonJS({
|
|
1766
|
-
"
|
|
1766
|
+
"../../node_modules/store2/dist/store2.js"(exports, module) {
|
|
1767
1767
|
(function(window2, define2) {
|
|
1768
1768
|
var _2 = {
|
|
1769
1769
|
version: "2.14.4",
|
|
@@ -1990,7 +1990,7 @@ var channels_default = __STORYBOOK_CHANNELS__, { Channel, HEARTBEAT_INTERVAL, HE
|
|
|
1990
1990
|
// global-externals:storybook/internal/core-events
|
|
1991
1991
|
var core_events_default = __STORYBOOK_CORE_EVENTS__, { ARGTYPES_INFO_REQUEST, ARGTYPES_INFO_RESPONSE, CHANNEL_CREATED, CHANNEL_WS_DISCONNECT, CONFIG_ERROR, CREATE_NEW_STORYFILE_REQUEST, CREATE_NEW_STORYFILE_RESPONSE, CURRENT_STORY_WAS_SET, DOCS_PREPARED, DOCS_RENDERED, FILE_COMPONENT_SEARCH_REQUEST, FILE_COMPONENT_SEARCH_RESPONSE, FORCE_REMOUNT, FORCE_RE_RENDER, GLOBALS_UPDATED, NAVIGATE_URL, OPEN_IN_EDITOR_REQUEST, OPEN_IN_EDITOR_RESPONSE, PLAY_FUNCTION_THREW_EXCEPTION, PRELOAD_ENTRIES, PREVIEW_BUILDER_PROGRESS, PREVIEW_INITIALIZED, PREVIEW_KEYDOWN, REGISTER_SUBSCRIPTION, REQUEST_WHATS_NEW_DATA, RESET_STORY_ARGS, RESULT_WHATS_NEW_DATA, SAVE_STORY_REQUEST, SAVE_STORY_RESPONSE, SELECT_STORY, SET_CONFIG, SET_CURRENT_STORY, SET_FILTER, SET_GLOBALS, SET_INDEX, SET_STORIES, SET_WHATS_NEW_CACHE, SHARED_STATE_CHANGED, SHARED_STATE_SET, STORIES_COLLAPSE_ALL, STORIES_EXPAND_ALL, STORY_ARGS_UPDATED, STORY_CHANGED, STORY_ERRORED, STORY_FINISHED, STORY_HOT_UPDATED, STORY_INDEX_INVALIDATED, STORY_MISSING, STORY_PREPARED, STORY_RENDERED, STORY_RENDER_PHASE_CHANGED, STORY_SPECIFIED, STORY_THREW_EXCEPTION, STORY_UNCHANGED, TELEMETRY_ERROR, TOGGLE_WHATS_NEW_NOTIFICATIONS, UNHANDLED_ERRORS_WHILE_PLAYING, UPDATE_GLOBALS, UPDATE_QUERY_PARAMS, UPDATE_STORY_ARGS } = __STORYBOOK_CORE_EVENTS__;
|
|
1992
1992
|
|
|
1993
|
-
//
|
|
1993
|
+
// ../../node_modules/@storybook/global/dist/index.mjs
|
|
1994
1994
|
var scope = (() => {
|
|
1995
1995
|
let win;
|
|
1996
1996
|
return typeof window < "u" ? win = window : typeof globalThis < "u" ? win = globalThis : typeof global < "u" ? win = global : typeof self < "u" ? win = self : win = {}, win;
|
|
@@ -2654,7 +2654,7 @@ var manager_errors_default = __STORYBOOK_CORE_EVENTS_MANAGER_ERRORS__, { Categor
|
|
|
2654
2654
|
// global-externals:storybook/internal/router
|
|
2655
2655
|
var router_default = __STORYBOOK_ROUTER__, { BaseLocationProvider, DEEPLY_EQUAL, Link: Link2, Location, LocationProvider, Match, Route, buildArgsParam, deepDiff, getMatch, parsePath, queryFromLocation, stringifyQuery, useNavigate } = __STORYBOOK_ROUTER__;
|
|
2656
2656
|
|
|
2657
|
-
//
|
|
2657
|
+
// ../../node_modules/react-helmet-async/lib/index.module.js
|
|
2658
2658
|
var import_prop_types = __toESM(require_prop_types()), import_react_fast_compare = __toESM(require_react_fast_compare()), import_invariant = __toESM(require_browser()), import_shallowequal = __toESM(require_shallowequal());
|
|
2659
2659
|
function a() {
|
|
2660
2660
|
return a = Object.assign || function(t2) {
|
|
@@ -3054,7 +3054,7 @@ var LayoutContext = createContext({
|
|
|
3054
3054
|
return react_default.createElement(LayoutContext.Provider, { value: contextValue }, children);
|
|
3055
3055
|
}, useLayout = () => useContext(LayoutContext);
|
|
3056
3056
|
|
|
3057
|
-
//
|
|
3057
|
+
// ../../node_modules/@babel/runtime/helpers/esm/extends.js
|
|
3058
3058
|
function _extends() {
|
|
3059
3059
|
return _extends = Object.assign ? Object.assign.bind() : function(n3) {
|
|
3060
3060
|
for (var e2 = 1; e2 < arguments.length; e2++) {
|
|
@@ -3065,32 +3065,32 @@ function _extends() {
|
|
|
3065
3065
|
}, _extends.apply(null, arguments);
|
|
3066
3066
|
}
|
|
3067
3067
|
|
|
3068
|
-
//
|
|
3068
|
+
// ../../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
3069
3069
|
function _assertThisInitialized(e2) {
|
|
3070
3070
|
if (e2 === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
3071
3071
|
return e2;
|
|
3072
3072
|
}
|
|
3073
3073
|
|
|
3074
|
-
//
|
|
3074
|
+
// ../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
3075
3075
|
function _setPrototypeOf(t2, e2) {
|
|
3076
3076
|
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t3, e3) {
|
|
3077
3077
|
return t3.__proto__ = e3, t3;
|
|
3078
3078
|
}, _setPrototypeOf(t2, e2);
|
|
3079
3079
|
}
|
|
3080
3080
|
|
|
3081
|
-
//
|
|
3081
|
+
// ../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
|
|
3082
3082
|
function _inheritsLoose(t2, o3) {
|
|
3083
3083
|
t2.prototype = Object.create(o3.prototype), t2.prototype.constructor = t2, _setPrototypeOf(t2, o3);
|
|
3084
3084
|
}
|
|
3085
3085
|
|
|
3086
|
-
//
|
|
3086
|
+
// ../../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
3087
3087
|
function _getPrototypeOf(t2) {
|
|
3088
3088
|
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t3) {
|
|
3089
3089
|
return t3.__proto__ || Object.getPrototypeOf(t3);
|
|
3090
3090
|
}, _getPrototypeOf(t2);
|
|
3091
3091
|
}
|
|
3092
3092
|
|
|
3093
|
-
//
|
|
3093
|
+
// ../../node_modules/@babel/runtime/helpers/esm/isNativeFunction.js
|
|
3094
3094
|
function _isNativeFunction(t2) {
|
|
3095
3095
|
try {
|
|
3096
3096
|
return Function.toString.call(t2).indexOf("[native code]") !== -1;
|
|
@@ -3099,7 +3099,7 @@ function _isNativeFunction(t2) {
|
|
|
3099
3099
|
}
|
|
3100
3100
|
}
|
|
3101
3101
|
|
|
3102
|
-
//
|
|
3102
|
+
// ../../node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
|
|
3103
3103
|
function _isNativeReflectConstruct() {
|
|
3104
3104
|
try {
|
|
3105
3105
|
var t2 = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
@@ -3111,7 +3111,7 @@ function _isNativeReflectConstruct() {
|
|
|
3111
3111
|
})();
|
|
3112
3112
|
}
|
|
3113
3113
|
|
|
3114
|
-
//
|
|
3114
|
+
// ../../node_modules/@babel/runtime/helpers/esm/construct.js
|
|
3115
3115
|
function _construct(t2, e2, r3) {
|
|
3116
3116
|
if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
|
|
3117
3117
|
var o3 = [null];
|
|
@@ -3120,7 +3120,7 @@ function _construct(t2, e2, r3) {
|
|
|
3120
3120
|
return r3 && _setPrototypeOf(p2, r3.prototype), p2;
|
|
3121
3121
|
}
|
|
3122
3122
|
|
|
3123
|
-
//
|
|
3123
|
+
// ../../node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js
|
|
3124
3124
|
function _wrapNativeSuper(t2) {
|
|
3125
3125
|
var r3 = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
3126
3126
|
return _wrapNativeSuper = function(t3) {
|
|
@@ -3144,7 +3144,7 @@ function _wrapNativeSuper(t2) {
|
|
|
3144
3144
|
}, _wrapNativeSuper(t2);
|
|
3145
3145
|
}
|
|
3146
3146
|
|
|
3147
|
-
//
|
|
3147
|
+
// ../../node_modules/polished/dist/polished.esm.js
|
|
3148
3148
|
var PolishedError = (function(_Error) {
|
|
3149
3149
|
_inheritsLoose(PolishedError2, _Error);
|
|
3150
3150
|
function PolishedError2(code) {
|
|
@@ -3829,14 +3829,14 @@ var mapper = ({ state, api }) => ({
|
|
|
3829
3829
|
clearNotification: api.clearNotification
|
|
3830
3830
|
}), Notifications = (props) => react_default.createElement(Consumer, { filter: mapper }, (fromState) => react_default.createElement(NotificationList, { ...props, ...fromState }));
|
|
3831
3831
|
|
|
3832
|
-
//
|
|
3832
|
+
// ../../node_modules/@react-aria/utils/dist/useLayoutEffect.mjs
|
|
3833
3833
|
var $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c = typeof document < "u" ? react_default.useLayoutEffect : () => {
|
|
3834
3834
|
};
|
|
3835
3835
|
|
|
3836
|
-
//
|
|
3836
|
+
// ../../node_modules/@react-aria/utils/dist/useEffectEvent.mjs
|
|
3837
3837
|
var $8ae05eaa5c114e9c$var$_React_useInsertionEffect, $8ae05eaa5c114e9c$var$useEarlyEffect = ($8ae05eaa5c114e9c$var$_React_useInsertionEffect = react_default.useInsertionEffect) !== null && $8ae05eaa5c114e9c$var$_React_useInsertionEffect !== void 0 ? $8ae05eaa5c114e9c$var$_React_useInsertionEffect : $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c;
|
|
3838
3838
|
|
|
3839
|
-
//
|
|
3839
|
+
// ../../node_modules/@react-aria/ssr/dist/SSRProvider.mjs
|
|
3840
3840
|
var $b5e257d569688ac6$var$defaultContext = {
|
|
3841
3841
|
prefix: String(Math.round(Math.random() * 1e10)),
|
|
3842
3842
|
current: 0
|
|
@@ -3881,7 +3881,7 @@ function $b5e257d569688ac6$export$535bd6ca7f90a273() {
|
|
|
3881
3881
|
return typeof react_default.useSyncExternalStore == "function" ? react_default.useSyncExternalStore($b5e257d569688ac6$var$subscribe, $b5e257d569688ac6$var$getSnapshot, $b5e257d569688ac6$var$getServerSnapshot) : useContext($b5e257d569688ac6$var$IsSSRContext);
|
|
3882
3882
|
}
|
|
3883
3883
|
|
|
3884
|
-
//
|
|
3884
|
+
// ../../node_modules/@react-aria/utils/dist/useId.mjs
|
|
3885
3885
|
var $bdb11010cef70236$var$canUseDOM = !!(typeof window < "u" && window.document && window.document.createElement), $bdb11010cef70236$export$d41a04c74483c6ef = /* @__PURE__ */ new Map(), $bdb11010cef70236$var$registry;
|
|
3886
3886
|
typeof FinalizationRegistry < "u" && ($bdb11010cef70236$var$registry = new FinalizationRegistry((heldValue) => {
|
|
3887
3887
|
$bdb11010cef70236$export$d41a04c74483c6ef.delete(heldValue);
|
|
@@ -3909,7 +3909,7 @@ function $bdb11010cef70236$export$f680877a34711e37(defaultId) {
|
|
|
3909
3909
|
}), res;
|
|
3910
3910
|
}
|
|
3911
3911
|
|
|
3912
|
-
//
|
|
3912
|
+
// ../../node_modules/@react-aria/utils/dist/focusWithoutScrolling.mjs
|
|
3913
3913
|
function $7215afc6de606d6b$export$de79e2c695e052f3(element) {
|
|
3914
3914
|
if ($7215afc6de606d6b$var$supportsPreventScroll()) element.focus({
|
|
3915
3915
|
preventScroll: !0
|
|
@@ -3953,7 +3953,7 @@ function $7215afc6de606d6b$var$restoreScrollPosition(scrollableElements) {
|
|
|
3953
3953
|
element.scrollTop = scrollTop, element.scrollLeft = scrollLeft;
|
|
3954
3954
|
}
|
|
3955
3955
|
|
|
3956
|
-
//
|
|
3956
|
+
// ../../node_modules/@react-aria/utils/dist/platform.mjs
|
|
3957
3957
|
function $c87311424ea30a05$var$testUserAgent(re) {
|
|
3958
3958
|
var _window_navigator_userAgentData;
|
|
3959
3959
|
if (typeof window > "u" || window.navigator == null) return !1;
|
|
@@ -3989,7 +3989,7 @@ var $c87311424ea30a05$export$9ac100e40613ea10 = $c87311424ea30a05$var$cached(fun
|
|
|
3989
3989
|
return $c87311424ea30a05$var$testUserAgent(/Firefox/i);
|
|
3990
3990
|
});
|
|
3991
3991
|
|
|
3992
|
-
//
|
|
3992
|
+
// ../../node_modules/@react-aria/utils/dist/openLink.mjs
|
|
3993
3993
|
var $ea8dcbcb9ea1b556$var$RouterContext = createContext({
|
|
3994
3994
|
isNative: !0,
|
|
3995
3995
|
open: $ea8dcbcb9ea1b556$var$openSyntheticLink,
|
|
@@ -4027,7 +4027,7 @@ function $ea8dcbcb9ea1b556$var$openSyntheticLink(target, modifiers2) {
|
|
|
4027
4027
|
$ea8dcbcb9ea1b556$var$getSyntheticLink(target, (link) => $ea8dcbcb9ea1b556$export$95185d699e05d4d7(link, modifiers2));
|
|
4028
4028
|
}
|
|
4029
4029
|
|
|
4030
|
-
//
|
|
4030
|
+
// ../../node_modules/@react-aria/utils/dist/runAfterTransition.mjs
|
|
4031
4031
|
var $bbed8b41f857bcc0$var$transitionsByElement = /* @__PURE__ */ new Map(), $bbed8b41f857bcc0$var$transitionCallbacks = /* @__PURE__ */ new Set();
|
|
4032
4032
|
function $bbed8b41f857bcc0$var$setupGlobalEvents() {
|
|
4033
4033
|
if (typeof window > "u") return;
|
|
@@ -4052,16 +4052,16 @@ function $bbed8b41f857bcc0$var$setupGlobalEvents() {
|
|
|
4052
4052
|
}
|
|
4053
4053
|
typeof document < "u" && (document.readyState !== "loading" ? $bbed8b41f857bcc0$var$setupGlobalEvents() : document.addEventListener("DOMContentLoaded", $bbed8b41f857bcc0$var$setupGlobalEvents));
|
|
4054
4054
|
|
|
4055
|
-
//
|
|
4055
|
+
// ../../node_modules/@react-aria/utils/dist/useViewportSize.mjs
|
|
4056
4056
|
var $5df64b3807dc15ee$var$visualViewport = typeof document < "u" && window.visualViewport;
|
|
4057
4057
|
|
|
4058
4058
|
// global-externals:react-dom
|
|
4059
4059
|
var react_dom_default = __REACT_DOM__, { __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED2, createPortal, createRoot: createRoot2, findDOMNode, flushSync, hydrate, hydrateRoot: hydrateRoot2, render, unmountComponentAtNode, unstable_batchedUpdates, unstable_renderSubtreeIntoContainer, version: version2 } = __REACT_DOM__;
|
|
4060
4060
|
|
|
4061
|
-
//
|
|
4061
|
+
// ../../node_modules/@react-aria/utils/dist/isElementVisible.mjs
|
|
4062
4062
|
var $7d2416ea0959daaa$var$supportsCheckVisibility = typeof Element < "u" && "checkVisibility" in Element.prototype;
|
|
4063
4063
|
|
|
4064
|
-
//
|
|
4064
|
+
// ../../node_modules/@react-aria/utils/dist/isFocusable.mjs
|
|
4065
4065
|
var $b4b717babfbb907b$var$focusableElements = [
|
|
4066
4066
|
"input:not([disabled]):not([type=hidden])",
|
|
4067
4067
|
"select:not([disabled])",
|
|
@@ -4105,7 +4105,7 @@ var StyledModal = styled(Modal)(({ theme }) => ({
|
|
|
4105
4105
|
children
|
|
4106
4106
|
);
|
|
4107
4107
|
|
|
4108
|
-
//
|
|
4108
|
+
// ../../node_modules/react-transition-state/dist/esm/hooks/utils.mjs
|
|
4109
4109
|
var STATUS = ["preEnter", "entering", "entered", "preExit", "exiting", "exited", "unmounted"], getState = (status) => ({
|
|
4110
4110
|
_s: status,
|
|
4111
4111
|
status: STATUS[status],
|
|
@@ -4125,7 +4125,7 @@ var STATUS = ["preEnter", "entering", "entered", "preExit", "exiting", "exited",
|
|
|
4125
4125
|
isNaN(document.body.offsetTop) || transitState(status + 1);
|
|
4126
4126
|
}, 0);
|
|
4127
4127
|
|
|
4128
|
-
//
|
|
4128
|
+
// ../../node_modules/react-transition-state/dist/esm/hooks/useTransitionState.mjs
|
|
4129
4129
|
var updateState = (status, setState, latestState, timeoutId, onChange) => {
|
|
4130
4130
|
clearTimeout(timeoutId.current);
|
|
4131
4131
|
let state = getState(status);
|
|
@@ -4166,7 +4166,7 @@ var updateState = (status, setState, latestState, timeoutId, onChange) => {
|
|
|
4166
4166
|
return [state, toggle, endTransition];
|
|
4167
4167
|
};
|
|
4168
4168
|
|
|
4169
|
-
//
|
|
4169
|
+
// ../../node_modules/react-transition-state/dist/esm/hooks/useTransitionMap.mjs
|
|
4170
4170
|
var updateState2 = (key, status, setStateMap, latestStateMap, timeoutId, onChange) => {
|
|
4171
4171
|
clearTimeout(timeoutId);
|
|
4172
4172
|
let state = getState(status), stateMap = new Map(latestStateMap.current);
|
|
@@ -5598,7 +5598,7 @@ var StyledAnimatedButton = styled(Button)(({ theme, animating, disabled }) => ({
|
|
|
5598
5598
|
// src/manager/components/preview/tools/share.tsx
|
|
5599
5599
|
var import_copy_to_clipboard = __toESM(require_copy_to_clipboard(), 1);
|
|
5600
5600
|
|
|
5601
|
-
//
|
|
5601
|
+
// ../../node_modules/qrcode.react/lib/esm/index.js
|
|
5602
5602
|
var __defProp2 = Object.defineProperty, __getOwnPropSymbols = Object.getOwnPropertySymbols, __hasOwnProp2 = Object.prototype.hasOwnProperty, __propIsEnum = Object.prototype.propertyIsEnumerable, __defNormalProp = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: !0, configurable: !0, writable: !0, value }) : obj[key] = value, __spreadValues = (a2, b2) => {
|
|
5603
5603
|
for (var prop in b2 || (b2 = {}))
|
|
5604
5604
|
__hasOwnProp2.call(b2, prop) && __defNormalProp(a2, prop, b2[prop]);
|
|
@@ -6421,7 +6421,7 @@ var QRCodeSVG = react_default.forwardRef(
|
|
|
6421
6421
|
);
|
|
6422
6422
|
QRCodeSVG.displayName = "QRCodeSVG";
|
|
6423
6423
|
|
|
6424
|
-
//
|
|
6424
|
+
// ../../node_modules/es-toolkit/dist/function/debounce.mjs
|
|
6425
6425
|
function debounce(func, debounceMs, { signal, edges } = {}) {
|
|
6426
6426
|
let pendingThis, pendingArgs = null, leading = edges != null && edges.includes("leading"), trailing = edges == null || edges.includes("trailing"), invoke = () => {
|
|
6427
6427
|
pendingArgs !== null && (func.apply(pendingThis, pendingArgs), pendingThis = void 0, pendingArgs = null);
|
|
@@ -6436,7 +6436,7 @@ function debounce(func, debounceMs, { signal, edges } = {}) {
|
|
|
6436
6436
|
}, cancel = () => {
|
|
6437
6437
|
cancelTimer(), pendingThis = void 0, pendingArgs = null;
|
|
6438
6438
|
}, flush = () => {
|
|
6439
|
-
invoke();
|
|
6439
|
+
cancelTimer(), invoke();
|
|
6440
6440
|
}, debounced = function(...args) {
|
|
6441
6441
|
if (signal?.aborted)
|
|
6442
6442
|
return;
|
|
@@ -6447,7 +6447,7 @@ function debounce(func, debounceMs, { signal, edges } = {}) {
|
|
|
6447
6447
|
return debounced.schedule = schedule, debounced.cancel = cancel, debounced.flush = flush, signal?.addEventListener("abort", cancel, { once: !0 }), debounced;
|
|
6448
6448
|
}
|
|
6449
6449
|
|
|
6450
|
-
//
|
|
6450
|
+
// ../../node_modules/es-toolkit/dist/function/partial.mjs
|
|
6451
6451
|
function partial(func, ...partialArgs) {
|
|
6452
6452
|
return partialImpl(func, placeholderSymbol, ...partialArgs);
|
|
6453
6453
|
}
|
|
@@ -6461,7 +6461,7 @@ function partialImpl(func, placeholder, ...partialArgs) {
|
|
|
6461
6461
|
var placeholderSymbol = Symbol("partial.placeholder");
|
|
6462
6462
|
partial.placeholder = placeholderSymbol;
|
|
6463
6463
|
|
|
6464
|
-
//
|
|
6464
|
+
// ../../node_modules/es-toolkit/dist/function/partialRight.mjs
|
|
6465
6465
|
function partialRight(func, ...partialArgs) {
|
|
6466
6466
|
return partialRightImpl(func, placeholderSymbol2, ...partialArgs);
|
|
6467
6467
|
}
|
|
@@ -6475,13 +6475,13 @@ function partialRightImpl(func, placeholder, ...partialArgs) {
|
|
|
6475
6475
|
var placeholderSymbol2 = Symbol("partialRight.placeholder");
|
|
6476
6476
|
partialRight.placeholder = placeholderSymbol2;
|
|
6477
6477
|
|
|
6478
|
-
//
|
|
6478
|
+
// ../../node_modules/es-toolkit/dist/function/retry.mjs
|
|
6479
6479
|
var DEFAULT_RETRIES = Number.POSITIVE_INFINITY;
|
|
6480
6480
|
|
|
6481
|
-
//
|
|
6481
|
+
// ../../node_modules/es-toolkit/dist/function/throttle.mjs
|
|
6482
6482
|
function throttle(func, throttleMs, { signal, edges = ["leading", "trailing"] } = {}) {
|
|
6483
6483
|
let pendingAt = null, debounced = debounce(func, throttleMs, { signal, edges }), throttled = function(...args) {
|
|
6484
|
-
pendingAt == null ? pendingAt = Date.now() : Date.now() - pendingAt >= throttleMs && (pendingAt = Date.now(), debounced.cancel()), debounced
|
|
6484
|
+
pendingAt == null ? pendingAt = Date.now() : Date.now() - pendingAt >= throttleMs && (pendingAt = Date.now(), debounced.cancel()), debounced(...args);
|
|
6485
6485
|
};
|
|
6486
6486
|
return throttled.cancel = debounced.cancel, throttled.flush = debounced.flush, throttled;
|
|
6487
6487
|
}
|
|
@@ -6544,6 +6544,7 @@ var SUPPORTED_FRAMEWORKS = [
|
|
|
6544
6544
|
"preact-vite" /* PREACT_VITE */,
|
|
6545
6545
|
"react-native-web-vite" /* REACT_NATIVE_WEB_VITE */,
|
|
6546
6546
|
"react-vite" /* REACT_VITE */,
|
|
6547
|
+
"solid" /* SOLID */,
|
|
6547
6548
|
"svelte-vite" /* SVELTE_VITE */,
|
|
6548
6549
|
"sveltekit" /* SVELTEKIT */,
|
|
6549
6550
|
"vue3-vite" /* VUE3_VITE */,
|
|
@@ -6554,7 +6555,7 @@ var SUPPORTED_FRAMEWORKS = [
|
|
|
6554
6555
|
var ADDON_ID5 = "storybook/docs", PANEL_ID3 = `${ADDON_ID5}/panel`;
|
|
6555
6556
|
var SNIPPET_RENDERED = `${ADDON_ID5}/snippet-rendered`;
|
|
6556
6557
|
|
|
6557
|
-
//
|
|
6558
|
+
// ../../node_modules/@gilbarbara/deep-equal/dist/index.mjs
|
|
6558
6559
|
function isOfType(type) {
|
|
6559
6560
|
return (value) => typeof value === type;
|
|
6560
6561
|
}
|
|
@@ -6632,7 +6633,7 @@ function equal(left, right) {
|
|
|
6632
6633
|
return Number.isNaN(left) && Number.isNaN(right) ? !0 : left === right;
|
|
6633
6634
|
}
|
|
6634
6635
|
|
|
6635
|
-
//
|
|
6636
|
+
// ../../node_modules/is-lite/dist/index.mjs
|
|
6636
6637
|
var objectTypes = [
|
|
6637
6638
|
"Array",
|
|
6638
6639
|
"ArrayBuffer",
|
|
@@ -6760,7 +6761,7 @@ is.weakMap = isObjectOfType("WeakMap");
|
|
|
6760
6761
|
is.weakSet = isObjectOfType("WeakSet");
|
|
6761
6762
|
var src_default = is;
|
|
6762
6763
|
|
|
6763
|
-
//
|
|
6764
|
+
// ../../node_modules/react-joyride/node_modules/tree-changes/dist/index.mjs
|
|
6764
6765
|
function canHaveLength(...arguments_) {
|
|
6765
6766
|
return arguments_.every((d2) => src_default.string(d2) || src_default.array(d2) || src_default.plainObject(d2));
|
|
6766
6767
|
}
|
|
@@ -6882,16 +6883,16 @@ function treeChanges(previousData, data) {
|
|
|
6882
6883
|
} };
|
|
6883
6884
|
}
|
|
6884
6885
|
|
|
6885
|
-
//
|
|
6886
|
+
// ../../node_modules/react-joyride/dist/index.mjs
|
|
6886
6887
|
var import_scroll = __toESM(require_scroll(), 1), import_scrollparent = __toESM(require_scrollparent(), 1);
|
|
6887
6888
|
var import_react_innertext = __toESM(require_react_innertext(), 1);
|
|
6888
6889
|
var import_deepmerge2 = __toESM(require_cjs(), 1);
|
|
6889
6890
|
var import_deepmerge3 = __toESM(require_cjs(), 1);
|
|
6890
6891
|
|
|
6891
|
-
//
|
|
6892
|
+
// ../../node_modules/react-floater/es/index.js
|
|
6892
6893
|
var import_prop_types2 = __toESM(require_prop_types());
|
|
6893
6894
|
|
|
6894
|
-
//
|
|
6895
|
+
// ../../node_modules/popper.js/dist/esm/popper.js
|
|
6895
6896
|
var isBrowser = typeof window < "u" && typeof document < "u" && typeof navigator < "u", timeoutDuration = (function() {
|
|
6896
6897
|
for (var longerTimeoutBrowsers = ["Edge", "Trident", "Firefox"], i2 = 0; i2 < longerTimeoutBrowsers.length; i2 += 1)
|
|
6897
6898
|
if (isBrowser && navigator.userAgent.indexOf(longerTimeoutBrowsers[i2]) >= 0)
|
|
@@ -7904,10 +7905,10 @@ Popper.placements = placements;
|
|
|
7904
7905
|
Popper.Defaults = Defaults;
|
|
7905
7906
|
var popper_default = Popper;
|
|
7906
7907
|
|
|
7907
|
-
//
|
|
7908
|
+
// ../../node_modules/react-floater/es/index.js
|
|
7908
7909
|
var import_deepmerge = __toESM(require_cjs());
|
|
7909
7910
|
|
|
7910
|
-
//
|
|
7911
|
+
// ../../node_modules/react-floater/node_modules/is-lite/esm/index.js
|
|
7911
7912
|
var DOM_PROPERTIES_TO_CHECK2 = [
|
|
7912
7913
|
"innerHTML",
|
|
7913
7914
|
"ownerDocument",
|
|
@@ -8076,7 +8077,7 @@ is2.weakMap = isObjectOfType2("WeakMap");
|
|
|
8076
8077
|
is2.weakSet = isObjectOfType2("WeakSet");
|
|
8077
8078
|
var esm_default = is2;
|
|
8078
8079
|
|
|
8079
|
-
//
|
|
8080
|
+
// ../../node_modules/tree-changes/node_modules/@gilbarbara/deep-equal/esm/helpers.js
|
|
8080
8081
|
function isOfType4(type) {
|
|
8081
8082
|
return function(value) {
|
|
8082
8083
|
return typeof value === type;
|
|
@@ -8090,7 +8091,7 @@ var isFunction3 = isOfType4("function"), isNull2 = function(value) {
|
|
|
8090
8091
|
return !isUndefined2(value) && !isNull2(value) && (isFunction3(value) || typeof value == "object");
|
|
8091
8092
|
}, isUndefined2 = isOfType4("undefined");
|
|
8092
8093
|
|
|
8093
|
-
//
|
|
8094
|
+
// ../../node_modules/tree-changes/node_modules/@gilbarbara/deep-equal/esm/index.js
|
|
8094
8095
|
var __values = function(o3) {
|
|
8095
8096
|
var s2 = typeof Symbol == "function" && Symbol.iterator, m2 = s2 && o3[s2], i2 = 0;
|
|
8096
8097
|
if (m2) return m2.call(o3);
|
|
@@ -8211,7 +8212,7 @@ function equal2(left, right) {
|
|
|
8211
8212
|
return Number.isNaN(left) && Number.isNaN(right) ? !0 : left === right;
|
|
8212
8213
|
}
|
|
8213
8214
|
|
|
8214
|
-
//
|
|
8215
|
+
// ../../node_modules/tree-changes/node_modules/is-lite/esm/index.js
|
|
8215
8216
|
var DOM_PROPERTIES_TO_CHECK3 = [
|
|
8216
8217
|
"innerHTML",
|
|
8217
8218
|
"ownerDocument",
|
|
@@ -8380,7 +8381,7 @@ is3.weakMap = isObjectOfType3("WeakMap");
|
|
|
8380
8381
|
is3.weakSet = isObjectOfType3("WeakSet");
|
|
8381
8382
|
var esm_default2 = is3;
|
|
8382
8383
|
|
|
8383
|
-
//
|
|
8384
|
+
// ../../node_modules/tree-changes/esm/helpers.js
|
|
8384
8385
|
function canHaveLength2() {
|
|
8385
8386
|
for (var arguments_ = [], _i = 0; _i < arguments.length; _i++)
|
|
8386
8387
|
arguments_[_i] = arguments[_i];
|
|
@@ -8467,7 +8468,7 @@ function nested2(data, property) {
|
|
|
8467
8468
|
return data;
|
|
8468
8469
|
}
|
|
8469
8470
|
|
|
8470
|
-
//
|
|
8471
|
+
// ../../node_modules/tree-changes/esm/index.js
|
|
8471
8472
|
function treeChanges2(previousData, data) {
|
|
8472
8473
|
if ([previousData, data].some(esm_default2.nullOrUndefined))
|
|
8473
8474
|
throw new Error("Missing required parameters");
|
|
@@ -8543,7 +8544,7 @@ function treeChanges2(previousData, data) {
|
|
|
8543
8544
|
return { added, changed, changedFrom, changedTo, decreased, emptied, filled, increased, removed };
|
|
8544
8545
|
}
|
|
8545
8546
|
|
|
8546
|
-
//
|
|
8547
|
+
// ../../node_modules/react-floater/es/index.js
|
|
8547
8548
|
function ownKeys(e2, r3) {
|
|
8548
8549
|
var t2 = Object.keys(e2);
|
|
8549
8550
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -8964,7 +8965,7 @@ _defineProperty(ReactFloater, "propTypes", { autoOpen: import_prop_types2.defaul
|
|
|
8964
8965
|
}), debug: import_prop_types2.default.bool, disableAnimation: import_prop_types2.default.bool, disableFlip: import_prop_types2.default.bool, disableHoverToClick: import_prop_types2.default.bool, event: import_prop_types2.default.oneOf(["hover", "click"]), eventDelay: import_prop_types2.default.number, footer: import_prop_types2.default.node, getPopper: import_prop_types2.default.func, hideArrow: import_prop_types2.default.bool, id: import_prop_types2.default.oneOfType([import_prop_types2.default.string, import_prop_types2.default.number]), offset: import_prop_types2.default.number, open: import_prop_types2.default.bool, options: import_prop_types2.default.object, placement: import_prop_types2.default.oneOf(["top", "top-start", "top-end", "bottom", "bottom-start", "bottom-end", "left", "left-start", "left-end", "right", "right-start", "right-end", "auto", "center"]), showCloseButton: import_prop_types2.default.bool, style: import_prop_types2.default.object, styles: import_prop_types2.default.object, target: import_prop_types2.default.oneOfType([import_prop_types2.default.object, import_prop_types2.default.string]), title: import_prop_types2.default.node, wrapperOptions: import_prop_types2.default.shape({ offset: import_prop_types2.default.number, placement: import_prop_types2.default.oneOf(["top", "top-start", "top-end", "bottom", "bottom-start", "bottom-end", "left", "left-start", "left-end", "right", "right-start", "right-end", "auto"]), position: import_prop_types2.default.bool }) });
|
|
8965
8966
|
_defineProperty(ReactFloater, "defaultProps", { autoOpen: !1, callback: noop2, debug: !1, disableAnimation: !1, disableFlip: !1, disableHoverToClick: !1, event: "click", eventDelay: 0.4, getPopper: noop2, hideArrow: !1, offset: 15, placement: "bottom", showCloseButton: !1, styles: {}, target: null, wrapperOptions: { position: !1 } });
|
|
8966
8967
|
|
|
8967
|
-
//
|
|
8968
|
+
// ../../node_modules/react-joyride/dist/index.mjs
|
|
8968
8969
|
var __defProp3 = Object.defineProperty, __defNormalProp2 = (obj, key, value) => key in obj ? __defProp3(obj, key, { enumerable: !0, configurable: !0, writable: !0, value }) : obj[key] = value, __publicField = (obj, key, value) => __defNormalProp2(obj, typeof key != "symbol" ? key + "" : key, value), ACTIONS = {
|
|
8969
8970
|
INIT: "init",
|
|
8970
8971
|
START: "start",
|
|
@@ -10739,7 +10740,7 @@ var CodeWrapper = styled.div(({ theme }) => ({
|
|
|
10739
10740
|
},
|
|
10740
10741
|
{
|
|
10741
10742
|
id: "renderComponent",
|
|
10742
|
-
label: "Render
|
|
10743
|
+
label: "Render your first component",
|
|
10743
10744
|
criteria: "A story finished rendering successfully",
|
|
10744
10745
|
subscribe: ({ api, done }) => api.on(
|
|
10745
10746
|
STORY_FINISHED,
|
|
@@ -10804,7 +10805,6 @@ export const Primary: Story = {
|
|
|
10804
10805
|
},
|
|
10805
10806
|
{
|
|
10806
10807
|
id: "moreComponents",
|
|
10807
|
-
after: ["renderComponent"],
|
|
10808
10808
|
label: "Add 5 components",
|
|
10809
10809
|
content: ({ api }) => react_default.createElement(react_default.Fragment, null, react_default.createElement("p", null, "Storybook gets better as you add more components. Start with the easy ones, like Button or Avatar, and work your way up to more complex components, like Select, Autocomplete, or even full pages."), react_default.createElement(
|
|
10810
10810
|
"img",
|
|
@@ -10838,7 +10838,6 @@ export const Primary: Story = {
|
|
|
10838
10838
|
},
|
|
10839
10839
|
{
|
|
10840
10840
|
id: "moreStories",
|
|
10841
|
-
after: ["renderComponent"],
|
|
10842
10841
|
label: "Add 20 stories",
|
|
10843
10842
|
content: ({ api }) => react_default.createElement(react_default.Fragment, null, react_default.createElement("p", null, "More stories for your components means better documentation and more test coverage."), react_default.createElement(
|
|
10844
10843
|
"img",
|
|
@@ -10885,7 +10884,6 @@ export const Primary: Story = {
|
|
|
10885
10884
|
items: [
|
|
10886
10885
|
{
|
|
10887
10886
|
id: "controls",
|
|
10888
|
-
after: ["renderComponent"],
|
|
10889
10887
|
label: "Change a story with Controls",
|
|
10890
10888
|
available: () => !!globalThis?.FEATURES?.controls,
|
|
10891
10889
|
criteria: "Story args are updated",
|
|
@@ -10914,7 +10912,6 @@ export const Primary: Story = {
|
|
|
10914
10912
|
},
|
|
10915
10913
|
{
|
|
10916
10914
|
id: "viewports",
|
|
10917
|
-
after: ["renderComponent"],
|
|
10918
10915
|
label: "Check responsiveness with Viewports",
|
|
10919
10916
|
available: () => !!globalThis?.FEATURES?.viewport,
|
|
10920
10917
|
criteria: "Viewport global is updated",
|
|
@@ -10943,7 +10940,6 @@ export const Primary: Story = {
|
|
|
10943
10940
|
},
|
|
10944
10941
|
{
|
|
10945
10942
|
id: "organizeStories",
|
|
10946
|
-
after: ["renderComponent"],
|
|
10947
10943
|
label: "Group your components",
|
|
10948
10944
|
criteria: "A root node exists in the index",
|
|
10949
10945
|
subscribe: subscribeToIndex(
|
|
@@ -11084,7 +11080,6 @@ export default {
|
|
|
11084
11080
|
},
|
|
11085
11081
|
{
|
|
11086
11082
|
id: "writeInteractions",
|
|
11087
|
-
after: ["renderComponent"],
|
|
11088
11083
|
label: "Test functionality with interactions",
|
|
11089
11084
|
available: () => !!globalThis?.FEATURES?.interactions,
|
|
11090
11085
|
criteria: "At least one story with a play or test function",
|
|
@@ -11498,12 +11493,12 @@ var subscriptions = /* @__PURE__ */ new Map(), useStoryIndex = () => {
|
|
|
11498
11493
|
}), checkLockedBy = (item, itemsById, state) => getAncestorIds(item, itemsById).find(
|
|
11499
11494
|
(id) => state[id].status !== "accepted" && state[id].status !== "done"
|
|
11500
11495
|
), useChecklist = () => {
|
|
11501
|
-
let api = useStorybookApi(), index = useStoryIndex(), [checklistState] = experimental_useUniversalStore(internal_universalChecklistStore), { loaded, items, widget } = checklistState, itemsById = useMemo(() => Object.fromEntries(
|
|
11496
|
+
let api = useStorybookApi(), index = useStoryIndex(), [checklistState] = experimental_useUniversalStore(internal_universalChecklistStore), { loaded, items, widget } = checklistState, { status } = internal_universalChecklistStore, [initialized, setInitialized] = useState(!1), [ready, setReady] = useState(!1), debounceReady = useMemo(() => debounce(() => setReady(!0), 500), []), itemsById = useMemo(() => Object.fromEntries(
|
|
11502
11497
|
checklistData.sections.flatMap(
|
|
11503
11498
|
({ items: items2, id: sectionId, title: sectionTitle }, sectionIndex) => items2.map(({ id, ...item }, itemIndex) => [id, { id, itemIndex, sectionId, sectionIndex, sectionTitle, ...item }])
|
|
11504
11499
|
)
|
|
11505
11500
|
), []), allItems = useMemo(() => Object.values(itemsById).map((item) => {
|
|
11506
|
-
let { status, mutedAt } = items[item.id], isOpen =
|
|
11501
|
+
let { status: status2, mutedAt } = items[item.id], isOpen = status2 === "open", isAccepted = status2 === "accepted", isDone = status2 === "done", isCompleted = isAccepted || isDone, isSkipped = !isCompleted && checkSkipped(item, itemsById, items), isMuted = !!mutedAt || !!widget.disable, isAvailable = isCompleted ? item.afterCompletion !== "unavailable" : checkAvailable(item, itemsById, { api, index, item }), isLockedBy = checkLockedBy(item, itemsById, items), isImmutable = isCompleted && item.afterCompletion === "immutable";
|
|
11507
11502
|
return {
|
|
11508
11503
|
...item,
|
|
11509
11504
|
isAvailable,
|
|
@@ -11524,7 +11519,7 @@ var subscriptions = /* @__PURE__ */ new Map(), useStoryIndex = () => {
|
|
|
11524
11519
|
return { availableItems, openItems, readyItems, nextItems, progress };
|
|
11525
11520
|
}, [allItems]);
|
|
11526
11521
|
return useEffect(() => {
|
|
11527
|
-
if (loaded)
|
|
11522
|
+
if (!(!loaded || status !== experimental_UniversalStore.Status.READY))
|
|
11528
11523
|
for (let item of allItems) {
|
|
11529
11524
|
if (!item.subscribe)
|
|
11530
11525
|
continue;
|
|
@@ -11545,7 +11540,15 @@ var subscriptions = /* @__PURE__ */ new Map(), useStoryIndex = () => {
|
|
|
11545
11540
|
subscriptions.delete(item.id), typeof unsubscribe == "function" && unsubscribe();
|
|
11546
11541
|
}
|
|
11547
11542
|
}
|
|
11548
|
-
}, [api, loaded, allItems]), {
|
|
11543
|
+
}, [api, loaded, status, allItems]), useEffect(() => {
|
|
11544
|
+
let initialize = () => setInitialized(!0), timeout = setTimeout(initialize, 1e3);
|
|
11545
|
+
return api.once(PREVIEW_INITIALIZED, initialize), () => {
|
|
11546
|
+
clearTimeout(timeout), api.off(PREVIEW_INITIALIZED, initialize);
|
|
11547
|
+
};
|
|
11548
|
+
}, [api]), useEffect(() => {
|
|
11549
|
+
initialized && items && status === experimental_UniversalStore.Status.READY && debounceReady();
|
|
11550
|
+
}, [initialized, items, status, debounceReady]), {
|
|
11551
|
+
ready,
|
|
11549
11552
|
allItems,
|
|
11550
11553
|
...itemCollections,
|
|
11551
11554
|
...internal_checklistStore,
|
|
@@ -12150,24 +12153,36 @@ var fadeScaleIn = keyframes`
|
|
|
12150
12153
|
children
|
|
12151
12154
|
);
|
|
12152
12155
|
}, ChecklistWidget = () => {
|
|
12153
|
-
let api = useStorybookApi(), { loaded, allItems, nextItems, progress, accept, mute, items } = useChecklist(), [renderItems,
|
|
12156
|
+
let api = useStorybookApi(), { loaded, ready, allItems, nextItems, progress, accept, mute, items } = useChecklist(), [renderItems, setRenderItems] = useState(nextItems), [animated, setAnimated] = useState(!1);
|
|
12157
|
+
useEffect(() => {
|
|
12158
|
+
if (ready) {
|
|
12159
|
+
let timeout = setTimeout(setAnimated, 1e3, !0);
|
|
12160
|
+
return () => clearTimeout(timeout);
|
|
12161
|
+
}
|
|
12162
|
+
}, [ready]), useEffect(() => {
|
|
12163
|
+
if (!animated) {
|
|
12164
|
+
setRenderItems(nextItems);
|
|
12165
|
+
return;
|
|
12166
|
+
}
|
|
12167
|
+
setRenderItems((current) => {
|
|
12168
|
+
let animateOut = !1, prevItems = current.map((item) => {
|
|
12169
|
+
let { status } = items[item.id], isAccepted = status === "accepted", isDone = status === "done", isSkipped = status === "skipped";
|
|
12170
|
+
return animateOut = animateOut || isAccepted || isDone || isSkipped, { ...item, isCompleted: isAccepted || isDone, isAccepted, isDone, isSkipped };
|
|
12171
|
+
});
|
|
12172
|
+
return animateOut ? prevItems : nextItems;
|
|
12173
|
+
});
|
|
12174
|
+
let timeout = setTimeout(setRenderItems, 2e3, nextItems);
|
|
12175
|
+
return () => clearTimeout(timeout);
|
|
12176
|
+
}, [animated, nextItems, items]);
|
|
12177
|
+
let hasItems = renderItems.length > 0, transitionItems = useTransitionArray(allItems, renderItems, {
|
|
12154
12178
|
keyFn: (item) => item.id,
|
|
12155
|
-
timeout: 300
|
|
12179
|
+
timeout: animated ? 300 : 0
|
|
12156
12180
|
});
|
|
12157
|
-
return
|
|
12158
|
-
setItems(
|
|
12159
|
-
(current) => current.map((item) => ({
|
|
12160
|
-
...item,
|
|
12161
|
-
isCompleted: items[item.id].status === "accepted" || items[item.id].status === "done",
|
|
12162
|
-
isSkipped: items[item.id].status === "skipped"
|
|
12163
|
-
}))
|
|
12164
|
-
);
|
|
12165
|
-
let timeout = setTimeout(setItems, 2e3, nextItems);
|
|
12166
|
-
return () => clearTimeout(timeout);
|
|
12167
|
-
}, [nextItems, items]), react_default.createElement(CollapsibleWithMargin, { collapsed: !hasItems || !loaded }, react_default.createElement(HoverCard, { id: "storybook-checklist-widget", outlineAnimation: "rainbow" }, react_default.createElement(
|
|
12181
|
+
return react_default.createElement(CollapsibleWithMargin, { collapsed: !hasItems || !loaded }, react_default.createElement(HoverCard, { id: "storybook-checklist-widget", outlineAnimation: "rainbow" }, react_default.createElement(
|
|
12168
12182
|
Collapsible,
|
|
12169
12183
|
{
|
|
12170
|
-
|
|
12184
|
+
storageKey: "checklist-widget",
|
|
12185
|
+
initialCollapsed: !hasItems,
|
|
12171
12186
|
disabled: !hasItems,
|
|
12172
12187
|
summary: ({ isCollapsed, toggleCollapsed, toggleProps }) => react_default.createElement(ActionList, { as: "div", onClick: toggleCollapsed }, react_default.createElement(ActionList.Item, { as: "div" }, react_default.createElement(ActionList.Item, { as: "div", style: { flexShrink: 1 } }, loaded && react_default.createElement(
|
|
12173
12188
|
Optional,
|
|
@@ -12234,7 +12249,7 @@ var fadeScaleIn = keyframes`
|
|
|
12234
12249
|
ariaLabel: `Open onboarding guide for ${item.label}`,
|
|
12235
12250
|
onClick: () => api.navigate(`/settings/guide#${item.id}`)
|
|
12236
12251
|
},
|
|
12237
|
-
react_default.createElement(ActionList.Icon, null, item.isCompleted ? react_default.createElement(Particles, { anchor: Checked, key: item.id }) : react_default.createElement(StatusFailIcon, null)),
|
|
12252
|
+
react_default.createElement(ActionList.Icon, null, item.isCompleted && animated ? react_default.createElement(Particles, { anchor: Checked, key: item.id }) : react_default.createElement(StatusFailIcon, null)),
|
|
12238
12253
|
react_default.createElement(ActionList.Text, null, react_default.createElement(ItemLabel, { isCompleted: item.isCompleted, isSkipped: item.isSkipped }, item.label))
|
|
12239
12254
|
), item.action && react_default.createElement(
|
|
12240
12255
|
ActionList.Button,
|
|
@@ -12286,7 +12301,7 @@ function useMeasure() {
|
|
|
12286
12301
|
}, []), dimensions];
|
|
12287
12302
|
}
|
|
12288
12303
|
|
|
12289
|
-
//
|
|
12304
|
+
// ../../node_modules/@tanstack/virtual-core/dist/esm/utils.js
|
|
12290
12305
|
function memo2(getDeps, fn, opts) {
|
|
12291
12306
|
let deps = opts.initialDeps ?? [], result;
|
|
12292
12307
|
function memoizedFunction() {
|
|
@@ -12334,7 +12349,7 @@ var approxEqual = (a2, b2) => Math.abs(a2 - b2) < 1.01, debounce3 = (targetWindo
|
|
|
12334
12349
|
};
|
|
12335
12350
|
};
|
|
12336
12351
|
|
|
12337
|
-
//
|
|
12352
|
+
// ../../node_modules/@tanstack/virtual-core/dist/esm/index.js
|
|
12338
12353
|
var getRect = (element) => {
|
|
12339
12354
|
let { offsetWidth, offsetHeight } = element;
|
|
12340
12355
|
return { width: offsetWidth, height: offsetHeight };
|
|
@@ -12814,7 +12829,7 @@ function calculateRange({
|
|
|
12814
12829
|
return { startIndex, endIndex };
|
|
12815
12830
|
}
|
|
12816
12831
|
|
|
12817
|
-
//
|
|
12832
|
+
// ../../node_modules/@tanstack/react-virtual/dist/esm/index.js
|
|
12818
12833
|
var useIsomorphicLayoutEffect = typeof document < "u" ? useLayoutEffect : useEffect;
|
|
12819
12834
|
function useVirtualizerBase(options2) {
|
|
12820
12835
|
let rerender = useReducer(() => ({}), {})[1], resolvedOptions = {
|
|
@@ -15350,7 +15365,7 @@ var BrandArea = styled.div(({ theme }) => ({
|
|
|
15350
15365
|
...props
|
|
15351
15366
|
}) => react_default.createElement(HeadingWrapper, { ...props }, skipLinkHref && react_default.createElement(SkipToCanvasLink, { ariaLabel: !1, asChild: !0 }, react_default.createElement("a", { href: skipLinkHref, tabIndex: 0 }, "Skip to canvas")), react_default.createElement(BrandArea, null, react_default.createElement(Brand, null)), react_default.createElement(SidebarMenu, { menu, isHighlighted: menuHighlighted, onClick: onMenuClick }));
|
|
15352
15367
|
|
|
15353
|
-
//
|
|
15368
|
+
// ../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
15354
15369
|
function _objectWithoutPropertiesLoose2(r3, e2) {
|
|
15355
15370
|
if (r3 == null) return {};
|
|
15356
15371
|
var t2 = {};
|
|
@@ -15361,11 +15376,11 @@ function _objectWithoutPropertiesLoose2(r3, e2) {
|
|
|
15361
15376
|
return t2;
|
|
15362
15377
|
}
|
|
15363
15378
|
|
|
15364
|
-
//
|
|
15379
|
+
// ../../node_modules/downshift/dist/downshift.esm.js
|
|
15365
15380
|
var import_prop_types3 = __toESM(require_prop_types());
|
|
15366
15381
|
var import_react_is = __toESM(require_react_is());
|
|
15367
15382
|
|
|
15368
|
-
//
|
|
15383
|
+
// ../../node_modules/compute-scroll-into-view/dist/index.js
|
|
15369
15384
|
var t = (t2) => typeof t2 == "object" && t2 != null && t2.nodeType === 1, e = (t2, e2) => (!e2 || t2 !== "hidden") && t2 !== "visible" && t2 !== "clip", n2 = (t2, n3) => {
|
|
15370
15385
|
if (t2.clientHeight < t2.scrollHeight || t2.clientWidth < t2.scrollWidth) {
|
|
15371
15386
|
let o3 = getComputedStyle(t2, null);
|
|
@@ -15417,7 +15432,7 @@ var t = (t2) => typeof t2 == "object" && t2 != null && t2.nodeType === 1, e = (t
|
|
|
15417
15432
|
return L3;
|
|
15418
15433
|
};
|
|
15419
15434
|
|
|
15420
|
-
//
|
|
15435
|
+
// ../../node_modules/tslib/tslib.es6.mjs
|
|
15421
15436
|
var __assign = function() {
|
|
15422
15437
|
return __assign = Object.assign || function(t2) {
|
|
15423
15438
|
for (var s2, i2 = 1, n3 = arguments.length; i2 < n3; i2++) {
|
|
@@ -15428,7 +15443,7 @@ var __assign = function() {
|
|
|
15428
15443
|
}, __assign.apply(this, arguments);
|
|
15429
15444
|
};
|
|
15430
15445
|
|
|
15431
|
-
//
|
|
15446
|
+
// ../../node_modules/downshift/dist/downshift.esm.js
|
|
15432
15447
|
var idCounter = 0;
|
|
15433
15448
|
function cbToCb(cb) {
|
|
15434
15449
|
return typeof cb == "function" ? cb : noop4;
|
|
@@ -18249,7 +18264,7 @@ var groupByType = (filters) => filters.reduce(
|
|
|
18249
18264
|
if (!(count === 0 && type === "built-in"))
|
|
18250
18265
|
return {
|
|
18251
18266
|
id: `filter-${type}-${id}`,
|
|
18252
|
-
content: react_default.createElement(ActionList.HoverItem, { targetId: `filter-${type}-${id}` }, react_default.createElement(ActionList.Action, { as: "label", tabIndex: -1, tooltip: toggleTooltip }, react_default.createElement(ActionList.Icon, null, isExcluded ? react_default.createElement(DeleteIcon, null) : isIncluded ? null : icon, react_default.createElement(
|
|
18267
|
+
content: react_default.createElement(ActionList.HoverItem, { targetId: `filter-${type}-${id}` }, react_default.createElement(ActionList.Action, { as: "label", ariaLabel: !1, tabIndex: -1, tooltip: toggleTooltip }, react_default.createElement(ActionList.Icon, null, isExcluded ? react_default.createElement(DeleteIcon, null) : isIncluded ? null : icon, react_default.createElement(
|
|
18253
18268
|
Form.Checkbox,
|
|
18254
18269
|
{
|
|
18255
18270
|
checked: isChecked,
|
|
@@ -18304,6 +18319,7 @@ var groupByType = (filters) => filters.reduce(
|
|
|
18304
18319
|
))), links.map((group) => react_default.createElement(ActionList, { key: group.map((link) => link.id).join("_") }, group.map((link) => react_default.createElement(Fragment, { key: link.id }, link.content)))), !hasUserTags && react_default.createElement(ActionList, { as: "div" }, react_default.createElement(ActionList.Item, { as: "div" }, react_default.createElement(
|
|
18305
18320
|
ActionList.Link,
|
|
18306
18321
|
{
|
|
18322
|
+
ariaLabel: !1,
|
|
18307
18323
|
href: api.getDocsUrl({ subpath: "writing-stories/tags#custom-tags" }),
|
|
18308
18324
|
target: "_blank"
|
|
18309
18325
|
},
|