@uva-glass/component-library 3.10.0 → 3.11.0
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/{Lexical.prod-CWyHQUEM.js → Lexical.prod-D8x7Ii0F.js} +469 -469
- package/dist/{Lexical.prod-CWyHQUEM.js.map → Lexical.prod-D8x7Ii0F.js.map} +1 -1
- package/dist/{LexicalClipboard.prod-DbqSWANZ.js → LexicalClipboard.prod-D5GjiArS.js} +16 -16
- package/dist/{LexicalClipboard.prod-DbqSWANZ.js.map → LexicalClipboard.prod-D5GjiArS.js.map} +1 -1
- package/dist/{LexicalLink.prod-DbxnRszt.js → LexicalLink.prod-CkldFE8u.js} +60 -60
- package/dist/{LexicalLink.prod-DbxnRszt.js.map → LexicalLink.prod-CkldFE8u.js.map} +1 -1
- package/dist/{LexicalList.prod-pZmYrwOC.js → LexicalList.prod-CsVDXdmw.js} +215 -215
- package/dist/LexicalList.prod-CsVDXdmw.js.map +1 -0
- package/dist/LexicalSelection.prod-JQDTaUpX.js +90 -0
- package/dist/{LexicalSelection.prod-DkvWlcln.js.map → LexicalSelection.prod-JQDTaUpX.js.map} +1 -1
- package/dist/{LexicalTable.prod-C6duSS2P.js → LexicalTable.prod-rZbTmo9K.js} +125 -125
- package/dist/{LexicalTable.prod-C6duSS2P.js.map → LexicalTable.prod-rZbTmo9K.js.map} +1 -1
- package/dist/{LexicalUtils.prod-Dny9Fu94.js → LexicalUtils.prod-CpMJ4I9h.js} +6 -6
- package/dist/{LexicalUtils.prod-Dny9Fu94.js.map → LexicalUtils.prod-CpMJ4I9h.js.map} +1 -1
- package/dist/{SelectListbox.module-BD2qbcmZ.js → SelectListbox.module-ignbxWNU.js} +21 -21
- package/dist/SelectListbox.module-ignbxWNU.js.map +1 -0
- package/dist/{SortableProvider-Ck_XnBVq.js → SortableProvider-DZggDO3M.js} +20 -20
- package/dist/{SortableProvider-Ck_XnBVq.js.map → SortableProvider-DZggDO3M.js.map} +1 -1
- package/dist/{TablePlugin-Ba6PaBhf.js → TablePlugin-WOgWan8s.js} +36 -36
- package/dist/{TablePlugin-Ba6PaBhf.js.map → TablePlugin-WOgWan8s.js.map} +1 -1
- package/dist/assets/MultiSelectBox.css +1 -0
- package/dist/assets/SelectListbox.css +1 -1
- package/dist/components/Accordion/Accordion.test.js +3 -3
- package/dist/components/AccordionCard/AccordionCard.test.js +3 -3
- package/dist/components/ActionList/ActionList.test.js +3 -3
- package/dist/components/AppStatusBar/AppStatusBar.test.js +2 -2
- package/dist/components/Attention/Attention.test.js +2 -2
- package/dist/components/Backdrop/Backdrop.test.js +2 -2
- package/dist/components/Buttons/Button.stories.js +1 -1
- package/dist/components/Buttons/Button.test.js +2 -2
- package/dist/components/Buttons/LinkButton.stories.js +1 -1
- package/dist/components/Buttons/LinkButton.test.js +2 -2
- package/dist/components/Buttons/MenuButton.stories.js +1 -1
- package/dist/components/Buttons/MenuButton.test.js +2 -2
- package/dist/components/Card/Card.test.js +2 -2
- package/dist/components/Checkbox/Checkbox.stories.js +1 -1
- package/dist/components/Checkbox/Checkbox.test.js +2 -2
- package/dist/components/CheckboxButton/CheckboxButton.stories.js +1 -1
- package/dist/components/CheckboxButton/CheckboxButton.test.js +2 -2
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +1 -1
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js +2 -2
- package/dist/components/CheckboxTree/CheckboxTree.js +3 -3
- package/dist/components/CheckboxTree/CheckboxTree.stories.js +1 -1
- package/dist/components/Chip/Chip.stories.js +1 -1
- package/dist/components/Drawer/Drawer.stories.js +1 -1
- package/dist/components/FeedbackBar/FeedbackBar.test.js +2 -2
- package/dist/components/FormInput/FormInput.js +3 -3
- package/dist/components/FormInput/FormInput.stories.js +1 -1
- package/dist/components/IconButton/IconButton.stories.js +1 -1
- package/dist/components/InputField/InputField.js +17 -17
- package/dist/components/InputField/InputField.stories.js +17 -17
- package/dist/components/Label/Label.test.js +2 -2
- package/dist/components/ModalDialog/ModalDialog.stories.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.stories.js +2 -2
- package/dist/components/MultiSelect/components/MultiSelectHeader.js +3 -3
- package/dist/components/MultiSelect/index.js +1 -1
- package/dist/components/MultiSelectBox/MultiSelectBox.d.ts +16 -0
- package/dist/components/MultiSelectBox/MultiSelectBox.js +191 -0
- package/dist/components/MultiSelectBox/MultiSelectBox.js.map +1 -0
- package/dist/components/MultiSelectBox/MultiSelectBox.stories.d.ts +5 -0
- package/dist/components/MultiSelectBox/MultiSelectBox.stories.js +31 -0
- package/dist/components/MultiSelectBox/MultiSelectBox.stories.js.map +1 -0
- package/dist/components/MultiSelectBox/MultiSelectBox.test.d.ts +0 -0
- package/dist/components/MultiSelectBox/MultiSelectBox.test.js +26 -0
- package/dist/components/MultiSelectBox/MultiSelectBox.test.js.map +1 -0
- package/dist/components/MultiSelectBox/index.d.ts +1 -0
- package/dist/components/MultiSelectBox/index.js +5 -0
- package/dist/components/MultiSelectBox/index.js.map +1 -0
- package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +1 -1
- package/dist/components/OverlayStepBar/OverlayStepBar.js +3 -3
- package/dist/components/PeriodSelector/PeriodSelector.js +3 -3
- package/dist/components/PeriodSelector/PeriodSelector.stories.js +1 -1
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +3 -3
- package/dist/components/RadioButton/RadioButton.js +3 -3
- package/dist/components/RadioGroup/RadioGroup.stories.js +1 -1
- package/dist/components/RadioGroup/Radiogroup.test.js +2 -2
- package/dist/components/RteEditor/EditorHeader/EditorHeader.js +3 -3
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +1 -1
- package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +14 -14
- package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +4 -4
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +23 -23
- package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +40 -40
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +4 -4
- package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +3 -3
- package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +5 -5
- package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +2 -2
- package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +3 -3
- package/dist/components/RteEditor/Plugins/index.js +1 -1
- package/dist/components/RteEditor/Providers/LanguageProvider.js +7 -7
- package/dist/components/RteEditor/RteEditor.js +327 -327
- package/dist/components/RteEditor/RteEditor.js.map +1 -1
- package/dist/components/RteEditor/helpers.js +4 -4
- package/dist/components/SelectListbox/SelectListBox.stories.js +1 -1
- package/dist/components/SelectListbox/SelectProvider.js +10 -10
- package/dist/components/SelectListbox/components/SelectButton.js +1 -1
- package/dist/components/SelectListbox/components/SelectContainer.js +1 -1
- package/dist/components/SelectListbox/components/SelectOption.js +1 -1
- package/dist/components/SelectListbox/components/SelectOptionBox.js +1 -1
- package/dist/components/Sortable/Sortable.js +1 -1
- package/dist/components/Sortable/Sortable.stories.js +1 -1
- package/dist/components/Sortable/SortableProvider.js +1 -1
- package/dist/components/Sortable/components/SortableContainer.js +1 -1
- package/dist/components/Sortable/components/SortableItem.js +15 -15
- package/dist/components/Sortable/sortableReducer.js +21 -21
- package/dist/components/StatusBadge/StatusBadge.test.js +2 -2
- package/dist/components/TextArea/TextArea.js +2 -2
- package/dist/components/TextArea/TextArea.stories.js +1 -1
- package/dist/components/TextArea/TextArea.test.js +3 -3
- package/dist/components/Timeline/Timeline.test.js +5 -5
- package/dist/components/ToggleSwitch/ToggleSwitch.stories.js +1 -1
- package/dist/components/Tooltip/Tooltip.js +22 -22
- package/dist/components/VarIndicator/VarIndicator.stories.js +1 -1
- package/dist/components/VarIndicator/VarIndicator.test.js +3 -3
- package/dist/components/hooks/useDebounce.js +4 -4
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +53 -51
- package/dist/components/index.js.map +1 -1
- package/dist/{helpers-BUwfVZhW.js → helpers-E_SsILnP.js} +10 -10
- package/dist/{helpers-BUwfVZhW.js.map → helpers-E_SsILnP.js.map} +1 -1
- package/dist/{index-DXR-TB1d.js → index-BCvy9BiK.js} +1886 -1886
- package/dist/{index-DXR-TB1d.js.map → index-BCvy9BiK.js.map} +1 -1
- package/dist/{index-dmBn99rF.js → index-BqLi4tOb.js} +908 -908
- package/dist/{index-dmBn99rF.js.map → index-BqLi4tOb.js.map} +1 -1
- package/dist/{index-B3c5pcHk.js → index-DllfJcv4.js} +32 -32
- package/dist/{index-B3c5pcHk.js.map → index-DllfJcv4.js.map} +1 -1
- package/dist/{index-Ck15_vKo.js → index-xaEX581l.js} +481 -481
- package/dist/{index-Ck15_vKo.js.map → index-xaEX581l.js.map} +1 -1
- package/dist/index.js +53 -51
- package/dist/index.js.map +1 -1
- package/dist/{react.esm-CMg7bmSn.js → react.esm-PmLHNn73.js} +3 -3
- package/dist/{react.esm-CMg7bmSn.js.map → react.esm-PmLHNn73.js.map} +1 -1
- package/dist/setupTests.js +1 -1
- package/dist/storybook__react.d.js +2 -2
- package/dist/{test-utils-B2AIdiiO.js → test-utils-grX3FDss.js} +157 -157
- package/dist/{test-utils-B2AIdiiO.js.map → test-utils-grX3FDss.js.map} +1 -1
- package/package.json +6 -6
- package/dist/LexicalList.prod-pZmYrwOC.js.map +0 -1
- package/dist/LexicalSelection.prod-DkvWlcln.js +0 -90
- package/dist/SelectListbox.module-BD2qbcmZ.js.map +0 -1
package/dist/setupTests.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var It = Object.defineProperty;
|
|
2
2
|
var Ft = (r, o, a) => o in r ? It(r, o, { enumerable: !0, configurable: !0, writable: !0, value: a }) : r[o] = a;
|
|
3
3
|
var yr = (r, o, a) => Ft(r, typeof o != "symbol" ? o + "" : o, a);
|
|
4
|
-
import "./index-
|
|
4
|
+
import "./index-BqLi4tOb.js";
|
|
5
5
|
import { c as mt } from "./_commonjsHelpers-DaMA6jEr.js";
|
|
6
6
|
var gr = {}, vr = {}, br, he;
|
|
7
7
|
function At() {
|
|
@@ -690,7 +690,7 @@ var Hc = Ms((tp, er) => {
|
|
|
690
690
|
let e;
|
|
691
691
|
if (typeof Ai.act == "function") e = Ai.act;
|
|
692
692
|
else {
|
|
693
|
-
let r = await import("./test-utils-
|
|
693
|
+
let r = await import("./test-utils-grX3FDss.js").then((n) => n.t);
|
|
694
694
|
e = ((t = r == null ? void 0 : r.default) == null ? void 0 : t.act) ?? r.act;
|
|
695
695
|
}
|
|
696
696
|
return process.env.NODE_ENV === "production" ? (r) => r() : Sa(e);
|
|
@@ -752,7 +752,7 @@ var Hc = Ms((tp, er) => {
|
|
|
752
752
|
return jt.createElement(jt.Suspense, null, e());
|
|
753
753
|
}], Pa = async () => {
|
|
754
754
|
try {
|
|
755
|
-
let { configure: e } = await import("./index-
|
|
755
|
+
let { configure: e } = await import("./index-BCvy9BiK.js"), t = await lu();
|
|
756
756
|
e({ unstable_advanceTimersWrapper: (r) => t(r), asyncWrapper: async (r) => {
|
|
757
757
|
let n = ou();
|
|
758
758
|
St(!1);
|
|
@@ -135,12 +135,12 @@ function Kt() {
|
|
|
135
135
|
return t.timeStamp || Date.now();
|
|
136
136
|
}, defaultPrevented: 0, isTrusted: 0 }, ke = w(U), Y = m({}, U, { view: 0, detail: 0 });
|
|
137
137
|
w(Y);
|
|
138
|
-
var
|
|
138
|
+
var re, ne, x, X = m({}, Y, { screenX: 0, screenY: 0, clientX: 0, clientY: 0, pageX: 0, pageY: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, getModifierState: V, button: 0, buttons: 0, relatedTarget: function(t) {
|
|
139
139
|
return t.relatedTarget === void 0 ? t.fromElement === t.srcElement ? t.toElement : t.fromElement : t.relatedTarget;
|
|
140
140
|
}, movementX: function(t) {
|
|
141
|
-
return "movementX" in t ? t.movementX : (t !== x && (x && t.type === "mousemove" ? (
|
|
141
|
+
return "movementX" in t ? t.movementX : (t !== x && (x && t.type === "mousemove" ? (re = t.screenX - x.screenX, ne = t.screenY - x.screenY) : ne = re = 0, x = t), re);
|
|
142
142
|
}, movementY: function(t) {
|
|
143
|
-
return "movementY" in t ? t.movementY :
|
|
143
|
+
return "movementY" in t ? t.movementY : ne;
|
|
144
144
|
} });
|
|
145
145
|
w(X);
|
|
146
146
|
var Te = m({}, X, { dataTransfer: 0 });
|
|
@@ -428,26 +428,26 @@ function Ft() {
|
|
|
428
428
|
var g = lt, P = ct, _ = g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
429
429
|
function I(e) {
|
|
430
430
|
{
|
|
431
|
-
for (var
|
|
432
|
-
|
|
433
|
-
m("warn", e,
|
|
431
|
+
for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), a = 1; a < r; a++)
|
|
432
|
+
n[a - 1] = arguments[a];
|
|
433
|
+
m("warn", e, n);
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
436
|
function R(e) {
|
|
437
437
|
{
|
|
438
|
-
for (var
|
|
439
|
-
|
|
440
|
-
m("error", e,
|
|
438
|
+
for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), a = 1; a < r; a++)
|
|
439
|
+
n[a - 1] = arguments[a];
|
|
440
|
+
m("error", e, n);
|
|
441
441
|
}
|
|
442
442
|
}
|
|
443
|
-
function m(e,
|
|
443
|
+
function m(e, r, n) {
|
|
444
444
|
{
|
|
445
445
|
var a = _.ReactDebugCurrentFrame, u = a.getStackAddendum();
|
|
446
|
-
u !== "" && (
|
|
447
|
-
var c =
|
|
446
|
+
u !== "" && (r += "%s", n = n.concat([u]));
|
|
447
|
+
var c = n.map(function(h) {
|
|
448
448
|
return String(h);
|
|
449
449
|
});
|
|
450
|
-
c.unshift("Warning: " +
|
|
450
|
+
c.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, c);
|
|
451
451
|
}
|
|
452
452
|
}
|
|
453
453
|
function F(e) {
|
|
@@ -456,40 +456,40 @@ function Ft() {
|
|
|
456
456
|
var B = 0, le = 1, w = 3, U = 5, ke = 6, Y = (
|
|
457
457
|
/* */
|
|
458
458
|
0
|
|
459
|
-
),
|
|
459
|
+
), re = (
|
|
460
460
|
/* */
|
|
461
461
|
2
|
|
462
|
-
),
|
|
462
|
+
), ne = (
|
|
463
463
|
/* */
|
|
464
464
|
4096
|
|
465
465
|
);
|
|
466
466
|
_.ReactCurrentOwner;
|
|
467
467
|
function x(e) {
|
|
468
|
-
var
|
|
468
|
+
var r = e, n = e;
|
|
469
469
|
if (e.alternate)
|
|
470
|
-
for (;
|
|
471
|
-
|
|
470
|
+
for (; r.return; )
|
|
471
|
+
r = r.return;
|
|
472
472
|
else {
|
|
473
|
-
var a =
|
|
473
|
+
var a = r;
|
|
474
474
|
do
|
|
475
|
-
|
|
475
|
+
r = a, (r.flags & (re | ne)) !== Y && (n = r.return), a = r.return;
|
|
476
476
|
while (a);
|
|
477
477
|
}
|
|
478
|
-
return
|
|
478
|
+
return r.tag === w ? n : null;
|
|
479
479
|
}
|
|
480
480
|
function X(e) {
|
|
481
481
|
if (x(e) !== e)
|
|
482
482
|
throw new Error("Unable to find node on an unmounted component.");
|
|
483
483
|
}
|
|
484
484
|
function Te(e) {
|
|
485
|
-
var
|
|
486
|
-
if (!
|
|
487
|
-
var
|
|
488
|
-
if (
|
|
485
|
+
var r = e.alternate;
|
|
486
|
+
if (!r) {
|
|
487
|
+
var n = x(e);
|
|
488
|
+
if (n === null)
|
|
489
489
|
throw new Error("Unable to find node on an unmounted component.");
|
|
490
|
-
return
|
|
490
|
+
return n !== e ? null : e;
|
|
491
491
|
}
|
|
492
|
-
for (var a = e, u =
|
|
492
|
+
for (var a = e, u = r; ; ) {
|
|
493
493
|
var c = a.return;
|
|
494
494
|
if (c === null)
|
|
495
495
|
break;
|
|
@@ -507,7 +507,7 @@ function Ft() {
|
|
|
507
507
|
if (M === a)
|
|
508
508
|
return X(c), e;
|
|
509
509
|
if (M === u)
|
|
510
|
-
return X(c),
|
|
510
|
+
return X(c), r;
|
|
511
511
|
M = M.sibling;
|
|
512
512
|
}
|
|
513
513
|
throw new Error("Unable to find node on an unmounted component.");
|
|
@@ -547,12 +547,12 @@ function Ft() {
|
|
|
547
547
|
}
|
|
548
548
|
if (a.tag !== w)
|
|
549
549
|
throw new Error("Unable to find node on an unmounted component.");
|
|
550
|
-
return a.stateNode.current === a ? e :
|
|
550
|
+
return a.stateNode.current === a ? e : r;
|
|
551
551
|
}
|
|
552
552
|
var E = Object.assign;
|
|
553
553
|
function oe(e) {
|
|
554
|
-
var
|
|
555
|
-
return "charCode" in e ? (
|
|
554
|
+
var r, n = e.keyCode;
|
|
555
|
+
return "charCode" in e ? (r = e.charCode, r === 0 && n === 13 && (r = 13)) : r = n, r === 10 && (r = 13), r >= 32 || r === 13 ? r : 0;
|
|
556
556
|
}
|
|
557
557
|
function $() {
|
|
558
558
|
return !0;
|
|
@@ -561,8 +561,8 @@ function Ft() {
|
|
|
561
561
|
return !1;
|
|
562
562
|
}
|
|
563
563
|
function b(e) {
|
|
564
|
-
function n
|
|
565
|
-
this._reactName =
|
|
564
|
+
function r(n, a, u, c, h) {
|
|
565
|
+
this._reactName = n, this._targetInst = u, this.type = a, this.nativeEvent = c, this.target = h, this.currentTarget = null;
|
|
566
566
|
for (var T in e)
|
|
567
567
|
if (e.hasOwnProperty(T)) {
|
|
568
568
|
var M = e[T];
|
|
@@ -571,15 +571,15 @@ function Ft() {
|
|
|
571
571
|
var k = c.defaultPrevented != null ? c.defaultPrevented : c.returnValue === !1;
|
|
572
572
|
return k ? this.isDefaultPrevented = $ : this.isDefaultPrevented = ce, this.isPropagationStopped = ce, this;
|
|
573
573
|
}
|
|
574
|
-
return E(
|
|
574
|
+
return E(r.prototype, {
|
|
575
575
|
preventDefault: function() {
|
|
576
576
|
this.defaultPrevented = !0;
|
|
577
|
-
var
|
|
578
|
-
|
|
577
|
+
var n = this.nativeEvent;
|
|
578
|
+
n && (n.preventDefault ? n.preventDefault() : typeof n.returnValue != "unknown" && (n.returnValue = !1), this.isDefaultPrevented = $);
|
|
579
579
|
},
|
|
580
580
|
stopPropagation: function() {
|
|
581
|
-
var
|
|
582
|
-
|
|
581
|
+
var n = this.nativeEvent;
|
|
582
|
+
n && (n.stopPropagation ? n.stopPropagation() : typeof n.cancelBubble != "unknown" && (n.cancelBubble = !0), this.isPropagationStopped = $);
|
|
583
583
|
},
|
|
584
584
|
/**
|
|
585
585
|
* We release all dispatched `SyntheticEvent`s after each event loop, adding
|
|
@@ -594,7 +594,7 @@ function Ft() {
|
|
|
594
594
|
* @return {boolean} True if this should not be released, false otherwise.
|
|
595
595
|
*/
|
|
596
596
|
isPersistent: $
|
|
597
|
-
}),
|
|
597
|
+
}), r;
|
|
598
598
|
}
|
|
599
599
|
var N = {
|
|
600
600
|
eventPhase: 0,
|
|
@@ -716,13 +716,13 @@ function Ft() {
|
|
|
716
716
|
};
|
|
717
717
|
function Ie(e) {
|
|
718
718
|
if (e.key) {
|
|
719
|
-
var
|
|
720
|
-
if (
|
|
721
|
-
return
|
|
719
|
+
var r = ie[e.key] || e.key;
|
|
720
|
+
if (r !== "Unidentified")
|
|
721
|
+
return r;
|
|
722
722
|
}
|
|
723
723
|
if (e.type === "keypress") {
|
|
724
|
-
var
|
|
725
|
-
return
|
|
724
|
+
var n = oe(e);
|
|
725
|
+
return n === 13 ? "Enter" : String.fromCharCode(n);
|
|
726
726
|
}
|
|
727
727
|
return e.type === "keydown" || e.type === "keyup" ? Pe[e.keyCode] || "Unidentified" : "";
|
|
728
728
|
}
|
|
@@ -733,11 +733,11 @@ function Ft() {
|
|
|
733
733
|
Shift: "shiftKey"
|
|
734
734
|
};
|
|
735
735
|
function se(e) {
|
|
736
|
-
var
|
|
737
|
-
if (
|
|
738
|
-
return
|
|
736
|
+
var r = this, n = r.nativeEvent;
|
|
737
|
+
if (n.getModifierState)
|
|
738
|
+
return n.getModifierState(e);
|
|
739
739
|
var a = _e[e];
|
|
740
|
-
return a ? !!
|
|
740
|
+
return a ? !!n[a] : !1;
|
|
741
741
|
}
|
|
742
742
|
function L(e) {
|
|
743
743
|
return se;
|
|
@@ -820,10 +820,10 @@ function Ft() {
|
|
|
820
820
|
});
|
|
821
821
|
b(xe);
|
|
822
822
|
var fe = 1;
|
|
823
|
-
function de(e,
|
|
823
|
+
function de(e, r, n, a, u, c, h, T, M) {
|
|
824
824
|
var k = Array.prototype.slice.call(arguments, 3);
|
|
825
825
|
try {
|
|
826
|
-
|
|
826
|
+
r.apply(n, k);
|
|
827
827
|
} catch (C) {
|
|
828
828
|
this.onError(C);
|
|
829
829
|
}
|
|
@@ -831,27 +831,27 @@ function Ft() {
|
|
|
831
831
|
var pe = de;
|
|
832
832
|
if (typeof window < "u" && typeof window.dispatchEvent == "function" && typeof document < "u" && typeof document.createEvent == "function") {
|
|
833
833
|
var O = document.createElement("react");
|
|
834
|
-
pe = function(
|
|
834
|
+
pe = function(r, n, a, u, c, h, T, M, k) {
|
|
835
835
|
if (typeof document > "u" || document === null)
|
|
836
836
|
throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");
|
|
837
837
|
var C = document.createEvent("Event"), Xe = !1, Qe = !0, At = window.event, et = Object.getOwnPropertyDescriptor(window, "event");
|
|
838
838
|
function tt() {
|
|
839
|
-
O.removeEventListener(je,
|
|
839
|
+
O.removeEventListener(je, rt, !1), typeof window.event < "u" && window.hasOwnProperty("event") && (window.event = At);
|
|
840
840
|
}
|
|
841
841
|
var Wt = Array.prototype.slice.call(arguments, 3);
|
|
842
|
-
function
|
|
843
|
-
Xe = !0, tt(),
|
|
842
|
+
function rt() {
|
|
843
|
+
Xe = !0, tt(), n.apply(a, Wt), Qe = !1;
|
|
844
844
|
}
|
|
845
|
-
var K,
|
|
845
|
+
var K, nt = !1, ot = !1;
|
|
846
846
|
function at(be) {
|
|
847
|
-
if (K = be.error,
|
|
847
|
+
if (K = be.error, nt = !0, K === null && be.colno === 0 && be.lineno === 0 && (ot = !0), be.defaultPrevented && K != null && typeof K == "object")
|
|
848
848
|
try {
|
|
849
849
|
K._suppressLogging = !0;
|
|
850
850
|
} catch {
|
|
851
851
|
}
|
|
852
852
|
}
|
|
853
|
-
var je = "react-" + (
|
|
854
|
-
if (window.addEventListener("error", at), O.addEventListener(je,
|
|
853
|
+
var je = "react-" + (r || "invokeguardedcallback");
|
|
854
|
+
if (window.addEventListener("error", at), O.addEventListener(je, rt, !1), C.initEvent(je, !1, !1), O.dispatchEvent(C), et && Object.defineProperty(window, "event", et), Xe && Qe && (nt ? ot && (K = new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")) : K = new Error(`An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the "Pause on exceptions" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue.`), this.onError(K)), window.removeEventListener("error", at), !Xe)
|
|
855
855
|
return tt(), de.apply(this, arguments);
|
|
856
856
|
};
|
|
857
857
|
}
|
|
@@ -860,10 +860,10 @@ function Ft() {
|
|
|
860
860
|
A = !0, G = e;
|
|
861
861
|
}
|
|
862
862
|
};
|
|
863
|
-
function me(e,
|
|
863
|
+
function me(e, r, n, a, u, c, h, T, M) {
|
|
864
864
|
A = !1, G = null, ee.apply(he, arguments);
|
|
865
865
|
}
|
|
866
|
-
function ve(e,
|
|
866
|
+
function ve(e, r, n, a, u, c, h, T, M) {
|
|
867
867
|
if (me.apply(this, arguments), A) {
|
|
868
868
|
var k = ge();
|
|
869
869
|
W || (W = !0, te = k);
|
|
@@ -890,48 +890,48 @@ function Ft() {
|
|
|
890
890
|
function d(e) {
|
|
891
891
|
}
|
|
892
892
|
var l = !1;
|
|
893
|
-
function p(e,
|
|
893
|
+
function p(e, r) {
|
|
894
894
|
if (!e)
|
|
895
895
|
return [];
|
|
896
|
-
var
|
|
897
|
-
if (!
|
|
896
|
+
var n = Te(e);
|
|
897
|
+
if (!n)
|
|
898
898
|
return [];
|
|
899
|
-
for (var a =
|
|
899
|
+
for (var a = n, u = []; ; ) {
|
|
900
900
|
if (a.tag === U || a.tag === ke || a.tag === le || a.tag === B) {
|
|
901
901
|
var c = a.stateNode;
|
|
902
|
-
|
|
902
|
+
r(c) && u.push(c);
|
|
903
903
|
}
|
|
904
904
|
if (a.child) {
|
|
905
905
|
a.child.return = a, a = a.child;
|
|
906
906
|
continue;
|
|
907
907
|
}
|
|
908
|
-
if (a ===
|
|
908
|
+
if (a === n)
|
|
909
909
|
return u;
|
|
910
910
|
for (; !a.sibling; ) {
|
|
911
|
-
if (!a.return || a.return ===
|
|
911
|
+
if (!a.return || a.return === n)
|
|
912
912
|
return u;
|
|
913
913
|
a = a.return;
|
|
914
914
|
}
|
|
915
915
|
a.sibling.return = a.return, a = a.sibling;
|
|
916
916
|
}
|
|
917
917
|
}
|
|
918
|
-
function D(e,
|
|
918
|
+
function D(e, r) {
|
|
919
919
|
if (e && !F(e)) {
|
|
920
|
-
var
|
|
921
|
-
throw ue(e) ?
|
|
920
|
+
var n, a = String(e);
|
|
921
|
+
throw ue(e) ? n = "an array" : e && e.nodeType === fe && e.tagName ? n = "a DOM node" : a === "[object Object]" ? n = "object with keys {" + Object.keys(e).join(", ") + "}" : n = a, new Error(r + "(...): the first argument must be a React class instance. " + ("Instead received: " + n + "."));
|
|
922
922
|
}
|
|
923
923
|
}
|
|
924
924
|
var S = !1;
|
|
925
925
|
function Fe(e) {
|
|
926
926
|
S || (S = !0, R("ReactDOMTestUtils is deprecated and will be removed in a future major release, because it exposes internal implementation details that are highly likely to change between releases. Upgrade to a modern testing library, such as @testing-library/react. See https://react.dev/warnings/react-dom-test-utils for more info."));
|
|
927
|
-
var
|
|
928
|
-
return P.render(e,
|
|
927
|
+
var r = document.createElement("div");
|
|
928
|
+
return P.render(e, r);
|
|
929
929
|
}
|
|
930
930
|
function dt(e) {
|
|
931
931
|
return g.isValidElement(e);
|
|
932
932
|
}
|
|
933
|
-
function pt(e,
|
|
934
|
-
return g.isValidElement(e) && e.type ===
|
|
933
|
+
function pt(e, r) {
|
|
934
|
+
return g.isValidElement(e) && e.type === r;
|
|
935
935
|
}
|
|
936
936
|
function Ee(e) {
|
|
937
937
|
return !!(e && e.nodeType === fe && e.tagName);
|
|
@@ -942,92 +942,92 @@ function Ft() {
|
|
|
942
942
|
function Ye(e) {
|
|
943
943
|
return Ee(e) ? !1 : e != null && typeof e.render == "function" && typeof e.setState == "function";
|
|
944
944
|
}
|
|
945
|
-
function Ve(e,
|
|
945
|
+
function Ve(e, r) {
|
|
946
946
|
if (!Ye(e))
|
|
947
947
|
return !1;
|
|
948
|
-
var
|
|
949
|
-
return a ===
|
|
948
|
+
var n = F(e), a = n.type;
|
|
949
|
+
return a === r;
|
|
950
950
|
}
|
|
951
|
-
function Ce(e,
|
|
951
|
+
function Ce(e, r) {
|
|
952
952
|
if (D(e, "findAllInRenderedTree"), !e)
|
|
953
953
|
return [];
|
|
954
|
-
var
|
|
955
|
-
return p(
|
|
956
|
-
}
|
|
957
|
-
function qe(e,
|
|
958
|
-
return D(e, "scryRenderedDOMComponentsWithClass"), Ce(e, function(
|
|
959
|
-
if (Ee(
|
|
960
|
-
var a =
|
|
961
|
-
typeof a != "string" && (a =
|
|
954
|
+
var n = F(e);
|
|
955
|
+
return p(n, r);
|
|
956
|
+
}
|
|
957
|
+
function qe(e, r) {
|
|
958
|
+
return D(e, "scryRenderedDOMComponentsWithClass"), Ce(e, function(n) {
|
|
959
|
+
if (Ee(n)) {
|
|
960
|
+
var a = n.className;
|
|
961
|
+
typeof a != "string" && (a = n.getAttribute("class") || "");
|
|
962
962
|
var u = a.split(/\s+/);
|
|
963
|
-
if (!ue(
|
|
964
|
-
if (
|
|
963
|
+
if (!ue(r)) {
|
|
964
|
+
if (r === void 0)
|
|
965
965
|
throw new Error("TestUtils.scryRenderedDOMComponentsWithClass expects a className as a second argument.");
|
|
966
|
-
|
|
966
|
+
r = r.split(/\s+/);
|
|
967
967
|
}
|
|
968
|
-
return
|
|
968
|
+
return r.every(function(c) {
|
|
969
969
|
return u.indexOf(c) !== -1;
|
|
970
970
|
});
|
|
971
971
|
}
|
|
972
972
|
return !1;
|
|
973
973
|
});
|
|
974
974
|
}
|
|
975
|
-
function mt(e,
|
|
975
|
+
function mt(e, r) {
|
|
976
976
|
D(e, "findRenderedDOMComponentWithClass");
|
|
977
|
-
var
|
|
978
|
-
if (
|
|
979
|
-
throw new Error("Did not find exactly one match (found: " +
|
|
980
|
-
return
|
|
981
|
-
}
|
|
982
|
-
function ze(e,
|
|
983
|
-
return D(e, "scryRenderedDOMComponentsWithTag"), Ce(e, function(
|
|
984
|
-
return Ee(
|
|
977
|
+
var n = qe(e, r);
|
|
978
|
+
if (n.length !== 1)
|
|
979
|
+
throw new Error("Did not find exactly one match (found: " + n.length + ") for class:" + r);
|
|
980
|
+
return n[0];
|
|
981
|
+
}
|
|
982
|
+
function ze(e, r) {
|
|
983
|
+
return D(e, "scryRenderedDOMComponentsWithTag"), Ce(e, function(n) {
|
|
984
|
+
return Ee(n) && n.tagName.toUpperCase() === r.toUpperCase();
|
|
985
985
|
});
|
|
986
986
|
}
|
|
987
|
-
function vt(e,
|
|
987
|
+
function vt(e, r) {
|
|
988
988
|
D(e, "findRenderedDOMComponentWithTag");
|
|
989
|
-
var
|
|
990
|
-
if (
|
|
991
|
-
throw new Error("Did not find exactly one match (found: " +
|
|
992
|
-
return
|
|
993
|
-
}
|
|
994
|
-
function Ge(e,
|
|
995
|
-
return D(e, "scryRenderedComponentsWithType"), Ce(e, function(
|
|
996
|
-
return Ve(
|
|
989
|
+
var n = ze(e, r);
|
|
990
|
+
if (n.length !== 1)
|
|
991
|
+
throw new Error("Did not find exactly one match (found: " + n.length + ") for tag:" + r);
|
|
992
|
+
return n[0];
|
|
993
|
+
}
|
|
994
|
+
function Ge(e, r) {
|
|
995
|
+
return D(e, "scryRenderedComponentsWithType"), Ce(e, function(n) {
|
|
996
|
+
return Ve(n, r);
|
|
997
997
|
});
|
|
998
998
|
}
|
|
999
|
-
function yt(e,
|
|
999
|
+
function yt(e, r) {
|
|
1000
1000
|
D(e, "findRenderedComponentWithType");
|
|
1001
|
-
var
|
|
1002
|
-
if (
|
|
1003
|
-
throw new Error("Did not find exactly one match (found: " +
|
|
1004
|
-
return
|
|
1001
|
+
var n = Ge(e, r);
|
|
1002
|
+
if (n.length !== 1)
|
|
1003
|
+
throw new Error("Did not find exactly one match (found: " + n.length + ") for componentType:" + r);
|
|
1004
|
+
return n[0];
|
|
1005
1005
|
}
|
|
1006
|
-
function gt(e,
|
|
1006
|
+
function gt(e, r) {
|
|
1007
1007
|
return l || (l = !0, I(`ReactTestUtils.mockComponent() is deprecated. Use shallow rendering or jest.mock() instead.
|
|
1008
1008
|
|
|
1009
|
-
See https://reactjs.org/link/test-utils-mock-component for more information.`)),
|
|
1010
|
-
return g.createElement(
|
|
1009
|
+
See https://reactjs.org/link/test-utils-mock-component for more information.`)), r = r || e.mockTagName || "div", e.prototype.render.mockImplementation(function() {
|
|
1010
|
+
return g.createElement(r, null, this.props.children);
|
|
1011
1011
|
}), this;
|
|
1012
1012
|
}
|
|
1013
|
-
function wt(e,
|
|
1013
|
+
function wt(e, r) {
|
|
1014
1014
|
return {
|
|
1015
1015
|
touches: [{
|
|
1016
1016
|
pageX: e,
|
|
1017
|
-
pageY:
|
|
1017
|
+
pageY: r
|
|
1018
1018
|
}]
|
|
1019
1019
|
};
|
|
1020
1020
|
}
|
|
1021
|
-
function He(e,
|
|
1021
|
+
function He(e, r, n) {
|
|
1022
1022
|
var a = e.type || "unknown-event";
|
|
1023
|
-
e.currentTarget = t(
|
|
1023
|
+
e.currentTarget = t(n), ve(a, r, void 0, e), e.currentTarget = null;
|
|
1024
1024
|
}
|
|
1025
1025
|
function Et(e) {
|
|
1026
|
-
var
|
|
1027
|
-
if (ue(
|
|
1028
|
-
for (var a = 0; a <
|
|
1029
|
-
He(e,
|
|
1030
|
-
else
|
|
1026
|
+
var r = e._dispatchListeners, n = e._dispatchInstances;
|
|
1027
|
+
if (ue(r))
|
|
1028
|
+
for (var a = 0; a < r.length && !e.isPropagationStopped(); a++)
|
|
1029
|
+
He(e, r[a], n[a]);
|
|
1030
|
+
else r && He(e, r, n);
|
|
1031
1031
|
e._dispatchListeners = null, e._dispatchInstances = null;
|
|
1032
1032
|
}
|
|
1033
1033
|
var Ct = function(e) {
|
|
@@ -1042,16 +1042,16 @@ See https://reactjs.org/link/test-utils-mock-component for more information.`)),
|
|
|
1042
1042
|
while (e && e.tag !== U);
|
|
1043
1043
|
return e || null;
|
|
1044
1044
|
}
|
|
1045
|
-
function Be(e,
|
|
1045
|
+
function Be(e, r, n) {
|
|
1046
1046
|
for (var a = []; e; )
|
|
1047
1047
|
a.push(e), e = Dt(e);
|
|
1048
1048
|
var u;
|
|
1049
1049
|
for (u = a.length; u-- > 0; )
|
|
1050
|
-
|
|
1050
|
+
r(a[u], "captured", n);
|
|
1051
1051
|
for (u = 0; u < a.length; u++)
|
|
1052
|
-
|
|
1052
|
+
r(a[u], "bubbled", n);
|
|
1053
1053
|
}
|
|
1054
|
-
function kt(e,
|
|
1054
|
+
function kt(e, r, n) {
|
|
1055
1055
|
switch (e) {
|
|
1056
1056
|
case "onClick":
|
|
1057
1057
|
case "onClickCapture":
|
|
@@ -1064,39 +1064,39 @@ See https://reactjs.org/link/test-utils-mock-component for more information.`)),
|
|
|
1064
1064
|
case "onMouseUp":
|
|
1065
1065
|
case "onMouseUpCapture":
|
|
1066
1066
|
case "onMouseEnter":
|
|
1067
|
-
return !!(
|
|
1067
|
+
return !!(n.disabled && bt(r));
|
|
1068
1068
|
default:
|
|
1069
1069
|
return !1;
|
|
1070
1070
|
}
|
|
1071
1071
|
}
|
|
1072
|
-
function $e(e,
|
|
1073
|
-
var
|
|
1074
|
-
if (!
|
|
1072
|
+
function $e(e, r) {
|
|
1073
|
+
var n = e.stateNode;
|
|
1074
|
+
if (!n)
|
|
1075
1075
|
return null;
|
|
1076
|
-
var a = i(
|
|
1076
|
+
var a = i(n);
|
|
1077
1077
|
if (!a)
|
|
1078
1078
|
return null;
|
|
1079
|
-
var u = a[
|
|
1080
|
-
if (kt(
|
|
1079
|
+
var u = a[r];
|
|
1080
|
+
if (kt(r, e.type, a))
|
|
1081
1081
|
return null;
|
|
1082
1082
|
if (u && typeof u != "function")
|
|
1083
|
-
throw new Error("Expected `" +
|
|
1083
|
+
throw new Error("Expected `" + r + "` listener to be a function, instead got a value of `" + typeof u + "` type.");
|
|
1084
1084
|
return u;
|
|
1085
1085
|
}
|
|
1086
|
-
function Tt(e,
|
|
1087
|
-
var a =
|
|
1088
|
-
return
|
|
1086
|
+
function Tt(e, r, n) {
|
|
1087
|
+
var a = r._reactName;
|
|
1088
|
+
return n === "captured" && (a += "Capture"), $e(e, a);
|
|
1089
1089
|
}
|
|
1090
|
-
function Mt(e,
|
|
1091
|
-
if (e &&
|
|
1092
|
-
var a =
|
|
1093
|
-
u && (
|
|
1090
|
+
function Mt(e, r, n) {
|
|
1091
|
+
if (e && n && n._reactName) {
|
|
1092
|
+
var a = n._reactName, u = $e(e, a);
|
|
1093
|
+
u && (n._dispatchListeners == null && (n._dispatchListeners = []), n._dispatchInstances == null && (n._dispatchInstances = []), n._dispatchListeners.push(u), n._dispatchInstances.push(e));
|
|
1094
1094
|
}
|
|
1095
1095
|
}
|
|
1096
|
-
function Rt(e,
|
|
1096
|
+
function Rt(e, r, n) {
|
|
1097
1097
|
e || R("Dispatching inst must not be null");
|
|
1098
|
-
var a = Tt(e,
|
|
1099
|
-
a && (
|
|
1098
|
+
var a = Tt(e, n, r);
|
|
1099
|
+
a && (n._dispatchListeners == null && (n._dispatchListeners = []), n._dispatchInstances == null && (n._dispatchInstances = []), n._dispatchListeners.push(a), n._dispatchInstances.push(e));
|
|
1100
1100
|
}
|
|
1101
1101
|
function Ot(e) {
|
|
1102
1102
|
e && e._reactName && Mt(e._targetInst, null, e);
|
|
@@ -1106,16 +1106,16 @@ See https://reactjs.org/link/test-utils-mock-component for more information.`)),
|
|
|
1106
1106
|
}
|
|
1107
1107
|
var Ze = {}, Pt = /* @__PURE__ */ new Set(["mouseEnter", "mouseLeave", "pointerEnter", "pointerLeave"]);
|
|
1108
1108
|
function It(e) {
|
|
1109
|
-
return function(
|
|
1110
|
-
if (g.isValidElement(
|
|
1109
|
+
return function(r, n) {
|
|
1110
|
+
if (g.isValidElement(r))
|
|
1111
1111
|
throw new Error("TestUtils.Simulate expected a DOM node as the first argument but received a React element. Pass the DOM node you wish to simulate the event on instead. Note that TestUtils.Simulate will not work if you are using shallow rendering.");
|
|
1112
|
-
if (Ye(
|
|
1112
|
+
if (Ye(r))
|
|
1113
1113
|
throw new Error("TestUtils.Simulate expected a DOM node as the first argument but received a component instance. Pass the DOM node you wish to simulate the event on instead.");
|
|
1114
1114
|
var a = "on" + e[0].toUpperCase() + e.slice(1), u = new d();
|
|
1115
|
-
u.target =
|
|
1116
|
-
var c = Ke(
|
|
1117
|
-
h.persist(), E(h,
|
|
1118
|
-
o(
|
|
1115
|
+
u.target = r, u.type = e.toLowerCase();
|
|
1116
|
+
var c = Ke(r), h = new Me(a, u.type, c, u, r);
|
|
1117
|
+
h.persist(), E(h, n), Pt.has(e) ? Ot(h) : St(h), P.unstable_batchedUpdates(function() {
|
|
1118
|
+
o(r), Ct(h), ye();
|
|
1119
1119
|
}), s();
|
|
1120
1120
|
};
|
|
1121
1121
|
}
|
|
@@ -1126,8 +1126,8 @@ See https://reactjs.org/link/test-utils-mock-component for more information.`)),
|
|
|
1126
1126
|
});
|
|
1127
1127
|
}
|
|
1128
1128
|
Ut();
|
|
1129
|
-
var Je = !1, Lt = function(
|
|
1130
|
-
return Je || (Je = !0, R("`ReactDOMTestUtils.act` is deprecated in favor of `React.act`. Import `act` from `react` instead of `react-dom/test-utils`. See https://react.dev/warnings/react-dom-test-utils for more info.")), f(
|
|
1129
|
+
var Je = !1, Lt = function(r) {
|
|
1130
|
+
return Je || (Je = !0, R("`ReactDOMTestUtils.act` is deprecated in favor of `React.act`. Import `act` from `react` instead of `react-dom/test-utils`. See https://react.dev/warnings/react-dom-test-utils for more info.")), f(r);
|
|
1131
1131
|
};
|
|
1132
1132
|
y.Simulate = Ze, y.act = Lt, y.findAllInRenderedTree = Ce, y.findRenderedComponentWithType = yt, y.findRenderedDOMComponentWithClass = mt, y.findRenderedDOMComponentWithTag = vt, y.isCompositeComponent = Ye, y.isCompositeComponentWithType = Ve, y.isDOMComponent = Ee, y.isDOMComponentElement = ht, y.isElement = dt, y.isElementOfType = pt, y.mockComponent = gt, y.nativeTouchData = wt, y.renderIntoDocument = Fe, y.scryRenderedComponentsWithType = Ge, y.scryRenderedDOMComponentsWithClass = qe, y.scryRenderedDOMComponentsWithTag = ze, y.traverseTwoPhase = Be;
|
|
1133
1133
|
}()), y;
|
|
@@ -1145,4 +1145,4 @@ export {
|
|
|
1145
1145
|
ft as a,
|
|
1146
1146
|
Gt as t
|
|
1147
1147
|
};
|
|
1148
|
-
//# sourceMappingURL=test-utils-
|
|
1148
|
+
//# sourceMappingURL=test-utils-grX3FDss.js.map
|