@uva-glass/component-library 3.55.2 → 3.55.3
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-DCGjHGxG.js → Lexical.prod-DIglXatJ.js} +958 -947
- package/dist/Lexical.prod-DIglXatJ.js.map +1 -0
- package/dist/LexicalClipboard.prod-Bnzu0sh_.js +248 -0
- package/dist/{LexicalClipboard.prod-CGG14aoP.js.map → LexicalClipboard.prod-Bnzu0sh_.js.map} +1 -1
- package/dist/{LexicalExtension.prod-DWt1IjPF.js → LexicalExtension.prod-COPHoPpX.js} +320 -288
- package/dist/LexicalExtension.prod-COPHoPpX.js.map +1 -0
- package/dist/{LexicalLink.prod-Dy1gE75H.js → LexicalLink.prod-Bf9JUdMv.js} +216 -198
- package/dist/LexicalLink.prod-Bf9JUdMv.js.map +1 -0
- package/dist/{LexicalList.prod-D9R0L7cu.js → LexicalList.prod-DRz8vsM9.js} +247 -241
- package/dist/LexicalList.prod-DRz8vsM9.js.map +1 -0
- package/dist/{LexicalTable.prod-C2FP47Lm.js → LexicalTable.prod-D16GW-aZ.js} +741 -729
- package/dist/LexicalTable.prod-D16GW-aZ.js.map +1 -0
- package/dist/LexicalUtils.prod-BBTLliac.js +360 -0
- package/dist/LexicalUtils.prod-BBTLliac.js.map +1 -0
- package/dist/{LinkContextMenu-DZlKfbg1.js → LinkContextMenu-m_CGQEiX.js} +2 -2
- package/dist/{LinkContextMenu-DZlKfbg1.js.map → LinkContextMenu-m_CGQEiX.js.map} +1 -1
- package/dist/{PasteHandlerPlugin-DUdocSHB.js → PasteHandlerPlugin-DjD1wryY.js} +4 -4
- package/dist/{PasteHandlerPlugin-DUdocSHB.js.map → PasteHandlerPlugin-DjD1wryY.js.map} +1 -1
- package/dist/{TableCellResizerPlugin-BGolbi44.js → TableCellResizerPlugin-CgYsYsuY.js} +41 -41
- package/dist/{TableCellResizerPlugin-BGolbi44.js.map → TableCellResizerPlugin-CgYsYsuY.js.map} +1 -1
- package/dist/{chunk-OPOZOKLO-CXKdjnjn.js → chunk-SZQXB3JV-D0XG4Tlp.js} +5 -5
- package/dist/chunk-SZQXB3JV-D0XG4Tlp.js.map +1 -0
- package/dist/{client-C0JVBgoR.js → client-UU-mS47K.js} +6 -6
- package/dist/{client-C0JVBgoR.js.map → client-UU-mS47K.js.map} +1 -1
- package/dist/components/Accordion/Accordion.test.js +4 -4
- package/dist/components/AccordionCard/AccordionCard.test.js +4 -4
- package/dist/components/ActionList/ActionList.test.js +4 -4
- package/dist/components/AppStatusBar/AppStatusBar.test.js +3 -3
- package/dist/components/Attention/Attention.test.js +3 -3
- package/dist/components/Backdrop/Backdrop.test.js +3 -3
- package/dist/components/Buttons/Button.stories.js +1 -1
- package/dist/components/Buttons/Button.test.js +3 -3
- package/dist/components/Buttons/LinkButton.stories.js +1 -1
- package/dist/components/Buttons/LinkButton.test.js +3 -3
- package/dist/components/Buttons/MenuButton.stories.js +1 -1
- package/dist/components/Buttons/MenuButton.test.js +3 -3
- package/dist/components/Card/Card.test.js +3 -3
- package/dist/components/Checkbox/Checkbox.stories.js +1 -1
- package/dist/components/Checkbox/Checkbox.test.js +4 -4
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +1 -1
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js +3 -3
- package/dist/components/CheckboxTree/CheckboxTree.js +2 -2
- package/dist/components/CheckboxTree/CheckboxTree.stories.js +4 -4
- package/dist/components/CheckboxTree/index.js +2 -2
- package/dist/components/Chip/Chip.stories.js +1 -1
- package/dist/components/ControlsButton/ControlsButton.stories.js +1 -1
- package/dist/components/Drawer/Drawer.stories.js +1 -1
- package/dist/components/FeedbackBar/FeedbackBar.test.js +3 -3
- package/dist/components/FormInput/FormInput.js +2 -2
- package/dist/components/FormInput/FormInput.stories.js +3 -3
- package/dist/components/FormInput/index.js +2 -2
- package/dist/components/IconButton/IconButton.stories.js +1 -1
- package/dist/components/InputField/InputField.stories.js +3 -3
- package/dist/components/Label/Label.test.js +3 -3
- package/dist/components/MetaDataBar/MetaDataBar.test.js +2 -2
- package/dist/components/ModalDialog/ModalDialog.stories.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.js +2 -2
- package/dist/components/MultiSelect/MultiSelect.stories.js +3 -3
- package/dist/components/MultiSelect/components/MultiSelectHeader.js +2 -2
- package/dist/components/MultiSelect/index.js +2 -2
- package/dist/components/MultiSelectBox/MultiSelectBox.stories.js +1 -1
- package/dist/components/MultiSelectBox/MultiSelectBox.test.js +3 -3
- package/dist/components/Notification/Notification.stories.js +1 -1
- package/dist/components/Notification/Notification.test.js +3 -3
- package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +1 -1
- package/dist/components/PeriodSelector/PeriodSelector.js +2 -2
- package/dist/components/PeriodSelector/PeriodSelector.stories.js +3 -3
- package/dist/components/PeriodSelector/index.js +2 -2
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +2 -2
- package/dist/components/RadioGroup/RadioGroup.stories.js +1 -1
- package/dist/components/RadioGroup/Radiogroup.test.js +3 -3
- package/dist/components/RadioTabSelector/RadioTabSelector.js +2 -2
- package/dist/components/RadioTabSelector/RadioTabSelector.stories.js +3 -3
- package/dist/components/RadioTabSelector/index.js +2 -2
- package/dist/components/RteEditor/EditorHeader/EditorHeader.js +2 -2
- package/dist/components/RteEditor/EditorHeader/index.js +2 -2
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +3 -3
- package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/CourseCataloguePlugin.js +32 -32
- package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +2 -2
- package/dist/components/RteEditor/Plugins/HistoryPlugin/index.js +2 -2
- package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +2 -2
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +2 -2
- package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/index.js +2 -2
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +15 -15
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +1 -1
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/TableCellResizerPlugin.js +1 -1
- package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +2 -2
- package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +2 -2
- package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +32 -32
- package/dist/components/RteEditor/Plugins/TablePlugin/index.js +2 -2
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +2 -2
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/index.js +2 -2
- package/dist/components/RteEditor/Plugins/index.js +3 -3
- package/dist/components/RteEditor/RteEditor.js +2 -2
- package/dist/components/RteEditor/RteEditor.stories.js +2 -2
- package/dist/components/RteEditor/helpers.js +4 -4
- package/dist/components/RteEditor/index.js +2 -2
- package/dist/components/RteEditor/nodes/CourseCatalogueNode/CourseCatalogueNode.js +17 -17
- package/dist/components/RteEditor/nodes/TableWrapperNode/TableWrapperNode.js +13 -13
- package/dist/components/SelectListbox/SelectListBox.stories.js +1 -1
- package/dist/components/Sortable/Sortable.stories.js +1 -1
- package/dist/components/StatusBadge/StatusBadge.test.js +3 -3
- package/dist/components/TextArea/TextArea.stories.js +1 -1
- package/dist/components/TextArea/TextArea.test.js +4 -4
- package/dist/components/ToggleSwitch/ToggleSwitch.stories.js +1 -1
- package/dist/components/VarIndicator/VarIndicator.stories.js +1 -1
- package/dist/components/VarIndicator/VarIndicator.test.js +4 -4
- package/dist/components/index.js +2 -2
- package/dist/{components-DVUYdcHS.js → components-C4MCdrDH.js} +456 -453
- package/dist/components-C4MCdrDH.js.map +1 -0
- package/dist/{dist-D6qYwmKD.js → dist-2TKCXdYZ.js} +315 -315
- package/dist/{dist-D6qYwmKD.js.map → dist-2TKCXdYZ.js.map} +1 -1
- package/dist/{esm-Cmy7DlsJ.js → esm-UNe_gmRA.js} +2 -2
- package/dist/{esm-Cmy7DlsJ.js.map → esm-UNe_gmRA.js.map} +1 -1
- package/dist/{helpers-DcFTH1J1.js → helpers-BBSxTGRl.js} +7 -7
- package/dist/{helpers-DcFTH1J1.js.map → helpers-BBSxTGRl.js.map} +1 -1
- package/dist/index.js +2 -2
- package/dist/{react-18-PI4Gvl2f.js → react-18-CRbkdI-3.js} +2 -2
- package/dist/{react-18-PI4Gvl2f.js.map → react-18-CRbkdI-3.js.map} +1 -1
- package/dist/{react.esm-Cev8dB-E.js → react.esm-CzIhAqlo.js} +479 -479
- package/dist/{react.esm-Cev8dB-E.js.map → react.esm-CzIhAqlo.js.map} +1 -1
- package/dist/setupTests.js +1 -1
- package/dist/storybook__react.d.js +3 -3
- package/dist/{test-CPFNM-bL.js → test-DQruvi8i.js} +3704 -5824
- package/dist/test-DQruvi8i.js.map +1 -0
- package/package.json +16 -16
- package/dist/Lexical.prod-DCGjHGxG.js.map +0 -1
- package/dist/LexicalClipboard.prod-CGG14aoP.js +0 -248
- package/dist/LexicalExtension.prod-DWt1IjPF.js.map +0 -1
- package/dist/LexicalLink.prod-Dy1gE75H.js.map +0 -1
- package/dist/LexicalList.prod-D9R0L7cu.js.map +0 -1
- package/dist/LexicalTable.prod-C2FP47Lm.js.map +0 -1
- package/dist/LexicalUtils.prod-BzrjMu6t.js +0 -242
- package/dist/LexicalUtils.prod-BzrjMu6t.js.map +0 -1
- package/dist/chunk-OPOZOKLO-CXKdjnjn.js.map +0 -1
- package/dist/components-DVUYdcHS.js.map +0 -1
- package/dist/test-CPFNM-bL.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "../../../../clsx-BD2qMUU1.js";
|
|
2
2
|
import { t } from "../../../../LexicalComposerContext.prod-Ca-YN_fj.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { Bn as n, Cn as r, L as i, Nn as a, Ot as o, dt as s, p as c, r as l, yn as u } from "../../../../Lexical.prod-DIglXatJ.js";
|
|
4
|
+
import { s as d } from "../../../../LexicalUtils.prod-BBTLliac.js";
|
|
5
5
|
import { $getLinkTypeFromNode as f, CourseCatalogueNode as p, INSERT_COURSE_CATALOGUE_LINK as m, REMOVE_COURSE_CATALOGUE_LINK as h } from "../../nodes/CourseCatalogueNode/CourseCatalogueNode.js";
|
|
6
6
|
import { t as g } from "../../../../RteEditor.module-Jk80F1FA.js";
|
|
7
7
|
import { t as _ } from "../../../../AddCatalogueLinkForm-Cy6fPNvN.js";
|
|
@@ -22,12 +22,12 @@ var T = ({ onSearch: T, searchResponse: E, parentScrollPosition: D }) => {
|
|
|
22
22
|
T("", z), R(null);
|
|
23
23
|
};
|
|
24
24
|
b(() => {
|
|
25
|
-
let e = O.registerCommand(
|
|
25
|
+
let e = O.registerCommand(s, (e) => e.ctrlKey && e.shiftKey && e.altKey && e.key === "C" ? (e.preventDefault(), H("course"), !0) : e.ctrlKey && e.shiftKey && e.altKey && e.key === "P" ? (e.preventDefault(), H("programme"), !0) : !1, 4), t = O.registerUpdateListener(({ editorState: e }) => {
|
|
26
26
|
e.read(() => {
|
|
27
27
|
let e = l();
|
|
28
|
-
if (
|
|
29
|
-
let t = e.anchor.getNode(),
|
|
30
|
-
if (
|
|
28
|
+
if (a(e)) {
|
|
29
|
+
let t = e.anchor.getNode(), r = e.anchor.offset;
|
|
30
|
+
if (n(t) && r === t.getTextContentSize() && t.getNextSibling() instanceof p) {
|
|
31
31
|
let e = t.getNextSibling();
|
|
32
32
|
if (e) {
|
|
33
33
|
let t = f(e);
|
|
@@ -35,47 +35,47 @@ var T = ({ onSearch: T, searchResponse: E, parentScrollPosition: D }) => {
|
|
|
35
35
|
return;
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
-
let
|
|
39
|
-
if (
|
|
40
|
-
let e = f(
|
|
38
|
+
let i = d(t, p);
|
|
39
|
+
if (i) {
|
|
40
|
+
let e = f(i);
|
|
41
41
|
j(e === "course"), N(e === "programme");
|
|
42
42
|
return;
|
|
43
43
|
}
|
|
44
44
|
j(!1), N(!1);
|
|
45
45
|
}
|
|
46
46
|
});
|
|
47
|
-
}),
|
|
48
|
-
let t =
|
|
49
|
-
t.setTextNodeRange(e,
|
|
50
|
-
}, m = (e, t) =>
|
|
47
|
+
}), r = (e) => {
|
|
48
|
+
let t = o(), n = e.getTextContentSize();
|
|
49
|
+
t.setTextNodeRange(e, n, e, n), c(t);
|
|
50
|
+
}, m = (e, t) => n(e) && t === e.getTextContentSize() && e.getNextSibling() instanceof p, g = O.registerCommand(s, (e) => {
|
|
51
51
|
let t = l();
|
|
52
|
-
if (
|
|
53
|
-
let n = e.key,
|
|
54
|
-
if (m(
|
|
55
|
-
let
|
|
56
|
-
if (
|
|
57
|
-
if (m(
|
|
58
|
-
let e =
|
|
59
|
-
|
|
52
|
+
if (a(t)) {
|
|
53
|
+
let n = e.key, i = t.anchor.getNode(), a = t.anchor.offset, o = d(i, p);
|
|
54
|
+
if (m(i, a) && (o = i.getNextSibling()), !o) return !1;
|
|
55
|
+
let s = o?.getTextContentSize();
|
|
56
|
+
if (o && e.key === "Enter") return e.preventDefault(), O.update(() => {
|
|
57
|
+
if (m(i, a)) {
|
|
58
|
+
let e = u("\n");
|
|
59
|
+
o.insertBefore(e);
|
|
60
60
|
}
|
|
61
|
-
if (
|
|
62
|
-
let e =
|
|
63
|
-
|
|
61
|
+
if (a === s) {
|
|
62
|
+
let e = u("\n");
|
|
63
|
+
o.insertAfter(e), r(e);
|
|
64
64
|
}
|
|
65
65
|
}), !0;
|
|
66
|
-
if (
|
|
67
|
-
let e =
|
|
68
|
-
m(
|
|
66
|
+
if (o && (n === " " || e.code === "Space")) return e.preventDefault(), O.update(() => {
|
|
67
|
+
let e = u(" ");
|
|
68
|
+
m(i, a) && (o.insertBefore(e), r(e)), a === s && (o.insertAfter(e), r(e));
|
|
69
69
|
}), !0;
|
|
70
|
-
if (
|
|
70
|
+
if (o && (n === "Backspace" || n === "Delete")) return e.preventDefault(), O.update(() => {
|
|
71
71
|
O.dispatchCommand(h, void 0);
|
|
72
72
|
}, { discrete: !0 }), !0;
|
|
73
|
-
if (
|
|
73
|
+
if (o && n !== "ArrowLeft" && n !== "ArrowRight" && n !== "ArrowUp" && n !== "ArrowDown" && n !== "Home" && n !== "End" && !(e.ctrlKey && (n.toLowerCase() === "z" || n.toLowerCase() === "y")) && !(e.ctrlKey && n.toLowerCase() === "c")) return e.preventDefault(), !0;
|
|
74
74
|
}
|
|
75
75
|
return !1;
|
|
76
|
-
}, 4), _ = O.registerCommand(
|
|
76
|
+
}, 4), _ = O.registerCommand(i, (e) => {
|
|
77
77
|
let t = l();
|
|
78
|
-
if (
|
|
78
|
+
if (a(t)) {
|
|
79
79
|
let n = d(t.anchor.getNode(), p);
|
|
80
80
|
if (n) {
|
|
81
81
|
e.preventDefault();
|
|
@@ -92,7 +92,7 @@ var T = ({ onSearch: T, searchResponse: E, parentScrollPosition: D }) => {
|
|
|
92
92
|
let W = () => {
|
|
93
93
|
U();
|
|
94
94
|
};
|
|
95
|
-
return b(() =>
|
|
95
|
+
return b(() => r(O.registerCommand(s, (e) => e.key === "Escape" && V.current ? (e.preventDefault(), U(), !0) : !1, 1), O.registerRootListener((e, t) => {
|
|
96
96
|
t && t.removeEventListener("scroll", W), e && e.addEventListener("scroll", W);
|
|
97
97
|
})), [O]), b(() => {
|
|
98
98
|
L && U();
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { o as e } from "../../../../components-
|
|
2
|
-
import "../../../../PasteHandlerPlugin-
|
|
1
|
+
import { o as e } from "../../../../components-C4MCdrDH.js";
|
|
2
|
+
import "../../../../PasteHandlerPlugin-DjD1wryY.js";
|
|
3
3
|
export { e as HistoryPlugin };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { o as e } from "../../../../components-
|
|
2
|
-
import "../../../../PasteHandlerPlugin-
|
|
1
|
+
import { o as e } from "../../../../components-C4MCdrDH.js";
|
|
2
|
+
import "../../../../PasteHandlerPlugin-DjD1wryY.js";
|
|
3
3
|
export { e as HistoryPlugin };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { c as e } from "../../../../../components-
|
|
2
|
-
import "../../../../../PasteHandlerPlugin-
|
|
1
|
+
import { c as e } from "../../../../../components-C4MCdrDH.js";
|
|
2
|
+
import "../../../../../PasteHandlerPlugin-DjD1wryY.js";
|
|
3
3
|
export { e as AddLinkForm };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../../../LinkContextMenu-
|
|
1
|
+
import { t as e } from "../../../../../LinkContextMenu-m_CGQEiX.js";
|
|
2
2
|
export { e as LinkContextMenu };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { s as e } from "../../../../components-
|
|
2
|
-
import "../../../../PasteHandlerPlugin-
|
|
1
|
+
import { s as e } from "../../../../components-C4MCdrDH.js";
|
|
2
|
+
import "../../../../PasteHandlerPlugin-DjD1wryY.js";
|
|
3
3
|
export { e as LinkPlugin };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as e, n as t, r as n, t as r } from "../../../../helpers-
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "../../../../helpers-BBSxTGRl.js";
|
|
2
2
|
export { r as MATCHERS, t as ensureHttps, n as validateUrl, e as validateUrlWithProtocol };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { s as e } from "../../../../components-
|
|
2
|
-
import "../../../../PasteHandlerPlugin-
|
|
1
|
+
import { s as e } from "../../../../components-C4MCdrDH.js";
|
|
2
|
+
import "../../../../PasteHandlerPlugin-DjD1wryY.js";
|
|
3
3
|
export { e as LinkPlugin };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as e } from "../../../../clsx-BD2qMUU1.js";
|
|
2
2
|
import { Icon as t } from "../../../Icon/Icon.js";
|
|
3
3
|
import { t as n } from "../../../../LexicalComposerContext.prod-Ca-YN_fj.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { a as c, i as l, l as u,
|
|
4
|
+
import { Nn as r, _ as i, dt as a, r as o } from "../../../../Lexical.prod-DIglXatJ.js";
|
|
5
|
+
import { s } from "../../../../LexicalUtils.prod-BBTLliac.js";
|
|
6
|
+
import { a as c, i as l, l as u, n as d, o as f, s as p, u as m } from "../../../../LexicalList.prod-DRz8vsM9.js";
|
|
7
7
|
import { t as h } from "../../../../RteEditor.module-Jk80F1FA.js";
|
|
8
8
|
import { useTranslation as g } from "../../hooks/useTranslation.js";
|
|
9
9
|
import { useEffect as _, useState as v } from "react";
|
|
@@ -14,10 +14,10 @@ var b = {
|
|
|
14
14
|
number: "NumberedList"
|
|
15
15
|
}, x = ["bullet", "number"], S = () => {
|
|
16
16
|
let S = g(), [C] = n(), [w, T] = v(null), [E, D] = v(!1), [O, k] = v(!1), A = (e) => {
|
|
17
|
-
e === "number" && w !== "number" ? (C.dispatchCommand(
|
|
17
|
+
e === "number" && w !== "number" ? (C.dispatchCommand(m, void 0), T("number")) : e === "bullet" && w !== "bullet" ? (C.dispatchCommand(c, void 0), T("bullet")) : (C.dispatchCommand(d, void 0), T(null));
|
|
18
18
|
};
|
|
19
19
|
return _(() => {
|
|
20
|
-
let e = C.registerCommand(
|
|
20
|
+
let e = C.registerCommand(a, (e) => e.ctrlKey && e.shiftKey && e.code === "Digit7" ? (e.preventDefault(), O ? C.dispatchCommand(d, void 0) : C.dispatchCommand(m, void 0), !0) : e.ctrlKey && e.shiftKey && e.code === "Digit8" ? (e.preventDefault(), E ? C.dispatchCommand(d, void 0) : C.dispatchCommand(c, void 0), !0) : !1, 4);
|
|
21
21
|
return () => {
|
|
22
22
|
e();
|
|
23
23
|
};
|
|
@@ -26,21 +26,21 @@ var b = {
|
|
|
26
26
|
O,
|
|
27
27
|
E
|
|
28
28
|
]), _(() => {
|
|
29
|
-
let e = C.registerCommand(
|
|
30
|
-
let e =
|
|
31
|
-
if (!
|
|
29
|
+
let e = C.registerCommand(i, (e) => (e.preventDefault(), C.update(() => {
|
|
30
|
+
let e = o();
|
|
31
|
+
if (!r(e)) return;
|
|
32
32
|
let t = e.anchor.getNode(), n = t.getParent();
|
|
33
|
-
if (!
|
|
34
|
-
let
|
|
35
|
-
if (
|
|
36
|
-
let e = p(
|
|
33
|
+
if (!u(n)) return;
|
|
34
|
+
let i = n.getParent();
|
|
35
|
+
if (l(i)) {
|
|
36
|
+
let e = p(l(i) ? i.getListType() : "bullet");
|
|
37
37
|
n.append(e), e.append(t);
|
|
38
38
|
}
|
|
39
39
|
}), !0), 1), t = C.registerUpdateListener(({ editorState: e }) => {
|
|
40
40
|
e.read(() => {
|
|
41
|
-
let e =
|
|
42
|
-
if (
|
|
43
|
-
let t = s(e.anchor.getNode(),
|
|
41
|
+
let e = o();
|
|
42
|
+
if (r(e)) {
|
|
43
|
+
let t = s(e.anchor.getNode(), f);
|
|
44
44
|
if (t) {
|
|
45
45
|
let e = t.getTag();
|
|
46
46
|
D(e === "ul"), k(e === "ol"), e === "ul" && T("bullet"), e === "ol" && T("number");
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../../PasteHandlerPlugin-
|
|
1
|
+
import { t as e } from "../../../../PasteHandlerPlugin-DjD1wryY.js";
|
|
2
2
|
export { e as PasteHandlerPlugin };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../../PasteHandlerPlugin-
|
|
1
|
+
import { t as e } from "../../../../PasteHandlerPlugin-DjD1wryY.js";
|
|
2
2
|
export { e as PasteHandlerPlugin };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../../TableCellResizerPlugin-
|
|
1
|
+
import { t as e } from "../../../../TableCellResizerPlugin-CgYsYsuY.js";
|
|
2
2
|
export { e as TableCellResizerPlugin };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../../TableCellResizerPlugin-
|
|
1
|
+
import { t as e } from "../../../../TableCellResizerPlugin-CgYsYsuY.js";
|
|
2
2
|
export { e as TableCellResizerPlugin };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as e } from "../../../../components-
|
|
2
|
-
import "../../../../PasteHandlerPlugin-
|
|
1
|
+
import { a as e } from "../../../../components-C4MCdrDH.js";
|
|
2
|
+
import "../../../../PasteHandlerPlugin-DjD1wryY.js";
|
|
3
3
|
export { e as AddTableForm };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { i as e } from "../../../../components-
|
|
2
|
-
import "../../../../PasteHandlerPlugin-
|
|
1
|
+
import { i as e } from "../../../../components-C4MCdrDH.js";
|
|
2
|
+
import "../../../../PasteHandlerPlugin-DjD1wryY.js";
|
|
3
3
|
export { e as TablePlugin };
|
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { St as e } from "../../../../Lexical.prod-DIglXatJ.js";
|
|
2
|
+
import { S as t, a as n, d as r, f as i, g as a, h as o, r as s, s as c, t as l, v as u, x as d, y as f } from "../../../../LexicalTable.prod-D16GW-aZ.js";
|
|
3
3
|
import { TableWrapperNode as p } from "../../nodes/TableWrapperNode/TableWrapperNode.js";
|
|
4
4
|
//#region src/components/RteEditor/Plugins/TablePlugin/helpers.ts
|
|
5
|
-
var m = 32, h = 48, g = 1, _ = 200, v = 320, y = (t,
|
|
6
|
-
let
|
|
7
|
-
for (let
|
|
8
|
-
let t =
|
|
9
|
-
for (let
|
|
10
|
-
let n =
|
|
5
|
+
var m = 32, h = 48, g = 1, _ = 200, v = 320, y = (t, r) => {
|
|
6
|
+
let i = n(0, 0, !1);
|
|
7
|
+
for (let n = 0; n < t; n++) {
|
|
8
|
+
let t = s();
|
|
9
|
+
for (let n = 0; n < r; n++) {
|
|
10
|
+
let n = c(0, void 0, void 0);
|
|
11
11
|
n.append(e()), t.append(n);
|
|
12
12
|
}
|
|
13
|
-
|
|
13
|
+
i.append(t);
|
|
14
14
|
}
|
|
15
|
-
return
|
|
15
|
+
return i;
|
|
16
16
|
}, b = (e) => {
|
|
17
|
-
let t =
|
|
18
|
-
if (
|
|
17
|
+
let t = i(e), n = t.getNextSibling() || t.getPreviousSibling(), r = t.getParentOrThrow();
|
|
18
|
+
if (r.getChildrenSize() > 1 ? t.remove() : r.remove(), n !== null) {
|
|
19
19
|
let e = n.getFirstDescendant();
|
|
20
20
|
e && e.select();
|
|
21
21
|
}
|
|
22
22
|
}, x = (e) => {
|
|
23
|
-
let
|
|
24
|
-
if (!
|
|
25
|
-
let
|
|
26
|
-
|
|
23
|
+
let n = t(e);
|
|
24
|
+
if (!n) throw Error("Selected node is not a TableCellNode");
|
|
25
|
+
let r = n.getParent();
|
|
26
|
+
r instanceof p ? r.remove() : n.remove();
|
|
27
27
|
}, S = (e, t) => {
|
|
28
|
-
if (!
|
|
29
|
-
let n =
|
|
30
|
-
|
|
28
|
+
if (!l(e)) throw Error("Selected node is not a TableCellNode");
|
|
29
|
+
let n = s();
|
|
30
|
+
d(t === "insertRowBelow");
|
|
31
31
|
let r = n.getFirstDescendant();
|
|
32
32
|
r && r.select();
|
|
33
|
-
}, C = (e,
|
|
34
|
-
if (!
|
|
35
|
-
let
|
|
36
|
-
if (!
|
|
37
|
-
let
|
|
38
|
-
if (
|
|
39
|
-
let p =
|
|
33
|
+
}, C = (e, t) => {
|
|
34
|
+
if (!l(e)) throw Error("Selected node is not a TableCellNode");
|
|
35
|
+
let n = f(e), i = r(e), o = n.getChildren(), s = a(e), c = u(t === "insertColumnLeft");
|
|
36
|
+
if (!c) return;
|
|
37
|
+
let d = r(c);
|
|
38
|
+
if (d === -1) return;
|
|
39
|
+
let p = n.getColWidths();
|
|
40
40
|
if (!p) return;
|
|
41
|
-
let m = p.map((e, t) => t ===
|
|
42
|
-
|
|
43
|
-
let h = o[
|
|
41
|
+
let m = p.map((e, t) => t === d ? 48 : e - Math.ceil(48 / (p.length - 1)));
|
|
42
|
+
n.setColWidths(m), i = t === "insertColumnLeft" ? i : i + 1;
|
|
43
|
+
let h = o[s].getChildren()[i];
|
|
44
44
|
h && h.select();
|
|
45
45
|
}, w = (e) => {
|
|
46
|
-
if (!
|
|
47
|
-
(
|
|
46
|
+
if (!l(e)) throw Error("Selected node is not a TableCellNode");
|
|
47
|
+
(f(e).getFirstChild()?.getChildrenSize() || 0) === 1 ? x(e) : o();
|
|
48
48
|
}, T = (e) => {
|
|
49
49
|
let t = e.getRootElement();
|
|
50
50
|
if (!t || typeof window > "u") return 0;
|
|
@@ -60,7 +60,7 @@ var m = 32, h = 48, g = 1, _ = 200, v = 320, y = (t, n) => {
|
|
|
60
60
|
let t = e.getChildren();
|
|
61
61
|
for (let e of t) {
|
|
62
62
|
let t = e.getChildren();
|
|
63
|
-
for (let e of t) if (
|
|
63
|
+
for (let e of t) if (l(e) && e.getTextContent().trim().length > 0) return !0;
|
|
64
64
|
}
|
|
65
65
|
return !1;
|
|
66
66
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as e } from "../../../../components-
|
|
1
|
+
import { i as e } from "../../../../components-C4MCdrDH.js";
|
|
2
2
|
import { t } from "../../../../TableCellContextMenu-D0IMQr3E.js";
|
|
3
|
-
import "../../../../PasteHandlerPlugin-
|
|
3
|
+
import "../../../../PasteHandlerPlugin-DjD1wryY.js";
|
|
4
4
|
export { t as TableCellContextMenu, e as TablePlugin };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { l as e } from "../../../../components-
|
|
2
|
-
import "../../../../PasteHandlerPlugin-
|
|
1
|
+
import { l as e } from "../../../../components-C4MCdrDH.js";
|
|
2
|
+
import "../../../../PasteHandlerPlugin-DjD1wryY.js";
|
|
3
3
|
export { e as ToolBarPlugin };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { l as e } from "../../../../components-
|
|
2
|
-
import "../../../../PasteHandlerPlugin-
|
|
1
|
+
import { l as e } from "../../../../components-C4MCdrDH.js";
|
|
2
|
+
import "../../../../PasteHandlerPlugin-DjD1wryY.js";
|
|
3
3
|
export { e as ToolBarPlugin };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { i as e, l as t, o as n, s as r } from "../../../components-
|
|
2
|
-
import { t as i } from "../../../TableCellResizerPlugin-
|
|
1
|
+
import { i as e, l as t, o as n, s as r } from "../../../components-C4MCdrDH.js";
|
|
2
|
+
import { t as i } from "../../../TableCellResizerPlugin-CgYsYsuY.js";
|
|
3
3
|
import { BlockFormatPlugin as a } from "./BlockFormatPlugin/BlockFormatPlugin.js";
|
|
4
4
|
import { ListPlugin as o } from "./ListPlugin/ListPlugin.js";
|
|
5
5
|
import { t as s } from "../../../TableCellContextMenu-D0IMQr3E.js";
|
|
6
|
-
import { t as c } from "../../../PasteHandlerPlugin-
|
|
6
|
+
import { t as c } from "../../../PasteHandlerPlugin-DjD1wryY.js";
|
|
7
7
|
export { a as BlockFormatPlugin, n as HistoryPlugin, r as LinkPlugin, o as ListPlugin, c as PasteHandlerPlugin, s as TableCellContextMenu, i as TableCellResizerPlugin, e as TablePlugin, t as ToolBarPlugin };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as e, t } from "../../components-
|
|
2
|
-
import "../../PasteHandlerPlugin-
|
|
1
|
+
import { n as e, t } from "../../components-C4MCdrDH.js";
|
|
2
|
+
import "../../PasteHandlerPlugin-DjD1wryY.js";
|
|
3
3
|
export { t as Rte, e as RteEditor };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as e } from "../../components-
|
|
2
|
-
import "../../PasteHandlerPlugin-
|
|
1
|
+
import { n as e } from "../../components-C4MCdrDH.js";
|
|
2
|
+
import "../../PasteHandlerPlugin-DjD1wryY.js";
|
|
3
3
|
import { t } from "../../Container-BLjtYDqq.js";
|
|
4
4
|
import "../../storyComponents/Container/index.js";
|
|
5
5
|
import { MOCK_RTE_CONTENT as n } from "./mockRteContent.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as n,
|
|
3
|
-
import { n as i } from "../../LexicalLink.prod-
|
|
4
|
-
import {
|
|
1
|
+
import { on as e, yt as t } from "../../Lexical.prod-DIglXatJ.js";
|
|
2
|
+
import { c as n, o as r } from "../../LexicalList.prod-DRz8vsM9.js";
|
|
3
|
+
import { n as i } from "../../LexicalLink.prod-Bf9JUdMv.js";
|
|
4
|
+
import { o as a } from "../../LexicalTable.prod-D16GW-aZ.js";
|
|
5
5
|
import { CourseCatalogueNode as o } from "./nodes/CourseCatalogueNode/CourseCatalogueNode.js";
|
|
6
6
|
//#region src/components/RteEditor/helpers.ts
|
|
7
7
|
var s = (e) => {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as e, t } from "../../components-
|
|
2
|
-
import "../../PasteHandlerPlugin-
|
|
1
|
+
import { n as e, t } from "../../components-C4MCdrDH.js";
|
|
2
|
+
import "../../PasteHandlerPlugin-DjD1wryY.js";
|
|
3
3
|
export { t as Rte, e as RteEditor };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as e } from "../../../../LexicalComposerContext.prod-Ca-YN_fj.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { Bn as t, En as n, Nn as r, fn as i, o as a, r as o, yn as s } from "../../../../Lexical.prod-DIglXatJ.js";
|
|
3
|
+
import { s as c } from "../../../../LexicalUtils.prod-BBTLliac.js";
|
|
4
4
|
import { useEffect as l } from "react";
|
|
5
5
|
//#region src/components/RteEditor/nodes/CourseCatalogueNode/CourseCatalogueNode.tsx
|
|
6
|
-
var u = class e extends
|
|
6
|
+
var u = class e extends a {
|
|
7
7
|
__linkType;
|
|
8
8
|
__code;
|
|
9
9
|
__label;
|
|
@@ -72,29 +72,29 @@ function f(e) {
|
|
|
72
72
|
function p(e) {
|
|
73
73
|
return f(e) ? e.__linkType : null;
|
|
74
74
|
}
|
|
75
|
-
var m =
|
|
75
|
+
var m = i("insertCourseCatalogueLink"), h = i("removeCourseCatalogueLink");
|
|
76
76
|
function g() {
|
|
77
|
-
let [
|
|
78
|
-
if (!
|
|
77
|
+
let [i] = e();
|
|
78
|
+
if (!i.hasNodes([u])) throw Error("CourseCataloguePlugin: CourseCatalogueNode is not registered on editor");
|
|
79
79
|
return l(() => {
|
|
80
|
-
let e =
|
|
81
|
-
let t = d(e.linkType, e.code, e.label),
|
|
82
|
-
return t.append(
|
|
83
|
-
}, 2),
|
|
80
|
+
let e = i.registerCommand(m, (e) => {
|
|
81
|
+
let t = d(e.linkType, e.code, e.label), r = s(e.label);
|
|
82
|
+
return t.append(r), n([t]), !0;
|
|
83
|
+
}, 2), a = i.registerCommand(h, () => {
|
|
84
84
|
let e = o();
|
|
85
|
-
if (
|
|
86
|
-
let n = e.anchor.getNode(),
|
|
87
|
-
if (t(n) &&
|
|
88
|
-
let e =
|
|
89
|
-
|
|
85
|
+
if (r(e)) {
|
|
86
|
+
let n = e.anchor.getNode(), r = e.anchor.offset, i = c(n, u);
|
|
87
|
+
if (t(n) && r === n.getTextContentSize() && n.getNextSibling() instanceof u && (i = n.getNextSibling()), i) {
|
|
88
|
+
let e = i.getParent();
|
|
89
|
+
i.remove(), e && e.append(s(" "));
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
return !0;
|
|
93
93
|
}, 2);
|
|
94
94
|
return () => {
|
|
95
|
-
e(),
|
|
95
|
+
e(), a();
|
|
96
96
|
};
|
|
97
|
-
}, [
|
|
97
|
+
}, [i]), null;
|
|
98
98
|
}
|
|
99
99
|
//#endregion
|
|
100
100
|
export { d as $createCourseCatalogueNode, p as $getLinkTypeFromNode, f as $isCourseCatalogueNode, g as CourseCatalogueLinkPlugin, u as CourseCatalogueNode, m as INSERT_COURSE_CATALOGUE_LINK, h as REMOVE_COURSE_CATALOGUE_LINK };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as e } from "../../../../LexicalComposerContext.prod-Ca-YN_fj.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { Nn as t, St as n, fn as r, nt as i, o as a, r as o } from "../../../../Lexical.prod-DIglXatJ.js";
|
|
3
|
+
import { g as s, s as c } from "../../../../LexicalUtils.prod-BBTLliac.js";
|
|
4
4
|
import { useEffect as l } from "react";
|
|
5
5
|
//#region src/components/RteEditor/nodes/TableWrapperNode/TableWrapperNode.tsx
|
|
6
|
-
var u = class e extends
|
|
6
|
+
var u = class e extends a {
|
|
7
7
|
static getType() {
|
|
8
8
|
return "tableWrapper";
|
|
9
9
|
}
|
|
@@ -35,23 +35,23 @@ function h() {
|
|
|
35
35
|
return l(() => {
|
|
36
36
|
let e = r.registerCommand(p, () => {
|
|
37
37
|
let e = o();
|
|
38
|
-
return
|
|
39
|
-
}, 2),
|
|
38
|
+
return t(e) && s(e, d), !0;
|
|
39
|
+
}, 2), a = r.registerCommand(m, () => {
|
|
40
40
|
let e = o();
|
|
41
|
-
if (
|
|
42
|
-
let
|
|
43
|
-
if (!t
|
|
44
|
-
let
|
|
45
|
-
if (!
|
|
46
|
-
let a =
|
|
41
|
+
if (t(e)) {
|
|
42
|
+
let t = e.anchor.getNode();
|
|
43
|
+
if (!i(t)) return !1;
|
|
44
|
+
let r = c(t, u);
|
|
45
|
+
if (!r) return !1;
|
|
46
|
+
let a = r?.getChildren();
|
|
47
47
|
if (!a) return !1;
|
|
48
48
|
let o = n();
|
|
49
|
-
a.forEach((e) => o.append(e)),
|
|
49
|
+
a.forEach((e) => o.append(e)), r.replace(o);
|
|
50
50
|
}
|
|
51
51
|
return !0;
|
|
52
52
|
}, 2);
|
|
53
53
|
return () => {
|
|
54
|
-
e(),
|
|
54
|
+
e(), a();
|
|
55
55
|
};
|
|
56
56
|
}, [r]), null;
|
|
57
57
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "../../dist-
|
|
1
|
+
import "../../dist-2TKCXdYZ.js";
|
|
2
2
|
import "../../lib-6BbFZdI7.js";
|
|
3
3
|
import { t as e } from "../../StatusBage-DQDOF5-U.js";
|
|
4
4
|
import "../../test-utils-BSs0eZfL.js";
|
|
5
|
-
import "../../client-
|
|
6
|
-
import { i as t, n } from "../../react.esm-
|
|
5
|
+
import "../../client-UU-mS47K.js";
|
|
6
|
+
import { i as t, n } from "../../react.esm-CzIhAqlo.js";
|
|
7
7
|
import { jsx as r } from "react/jsx-runtime";
|
|
8
8
|
//#region src/components/StatusBadge/StatusBadge.test.tsx
|
|
9
9
|
describe("StatusBadge", () => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "../../dist-
|
|
1
|
+
import "../../dist-2TKCXdYZ.js";
|
|
2
2
|
import "../../lib-6BbFZdI7.js";
|
|
3
3
|
import { t as e } from "../../TextArea-DqKIpOfT.js";
|
|
4
4
|
import "../../test-utils-BSs0eZfL.js";
|
|
5
|
-
import "../../client-
|
|
6
|
-
import { i as t, n, t as r } from "../../react.esm-
|
|
7
|
-
import { t as i } from "../../esm-
|
|
5
|
+
import "../../client-UU-mS47K.js";
|
|
6
|
+
import { i as t, n, t as r } from "../../react.esm-CzIhAqlo.js";
|
|
7
|
+
import { t as i } from "../../esm-UNe_gmRA.js";
|
|
8
8
|
import { jsx as a } from "react/jsx-runtime";
|
|
9
9
|
//#region src/components/TextArea/TextArea.test.tsx
|
|
10
10
|
describe("TextArea", () => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "../../dist-
|
|
1
|
+
import "../../dist-2TKCXdYZ.js";
|
|
2
2
|
import "../../lib-6BbFZdI7.js";
|
|
3
3
|
import { t as e } from "../../VarIndicator-C-GueOZD.js";
|
|
4
4
|
import "../../test-utils-BSs0eZfL.js";
|
|
5
|
-
import "../../client-
|
|
6
|
-
import { a as t, i as n, n as r } from "../../react.esm-
|
|
7
|
-
import { t as i } from "../../esm-
|
|
5
|
+
import "../../client-UU-mS47K.js";
|
|
6
|
+
import { a as t, i as n, n as r } from "../../react.esm-CzIhAqlo.js";
|
|
7
|
+
import { t as i } from "../../esm-UNe_gmRA.js";
|
|
8
8
|
import { useState as a } from "react";
|
|
9
9
|
import { jsx as o } from "react/jsx-runtime";
|
|
10
10
|
//#region src/components/VarIndicator/VarIndicator.test.tsx
|