@uva-glass/component-library 3.53.13 → 3.53.15
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-Dgzi-S1E.js → Lexical.prod-YJ1n9pVJ.js} +1334 -1305
- package/dist/Lexical.prod-YJ1n9pVJ.js.map +1 -0
- package/dist/{LexicalClipboard.prod-Dxc8c2F_.js → LexicalClipboard.prod-CDPAGlNs.js} +52 -52
- package/dist/{LexicalClipboard.prod-Dxc8c2F_.js.map → LexicalClipboard.prod-CDPAGlNs.js.map} +1 -1
- package/dist/{LexicalExtension.prod-CNBWjmfs.js → LexicalExtension.prod-2-giLTv9.js} +87 -88
- package/dist/LexicalExtension.prod-2-giLTv9.js.map +1 -0
- package/dist/LexicalLink.prod-u8L4ioQd.js +528 -0
- package/dist/LexicalLink.prod-u8L4ioQd.js.map +1 -0
- package/dist/LexicalList.prod-DMU0XSLO.js +630 -0
- package/dist/LexicalList.prod-DMU0XSLO.js.map +1 -0
- package/dist/{LexicalSelection.prod-B0uiXGSS.js → LexicalSelection.prod-CpZE7Sey.js} +41 -41
- package/dist/{LexicalSelection.prod-B0uiXGSS.js.map → LexicalSelection.prod-CpZE7Sey.js.map} +1 -1
- package/dist/LexicalTable.prod-BOlKc5zf.js +1846 -0
- package/dist/LexicalTable.prod-BOlKc5zf.js.map +1 -0
- package/dist/LexicalUtils.prod-BQnuAaA9.js +92 -0
- package/dist/LexicalUtils.prod-BQnuAaA9.js.map +1 -0
- package/dist/{TableCellResizerPlugin-9kvw_LpH.js → TableCellResizerPlugin-BTfuE_kM.js} +53 -53
- package/dist/{TableCellResizerPlugin-9kvw_LpH.js.map → TableCellResizerPlugin-BTfuE_kM.js.map} +1 -1
- package/dist/{TablePlugin-BlXaQ0U6.js → TablePlugin-bFqq2Yd9.js} +75 -75
- package/dist/{TablePlugin-BlXaQ0U6.js.map → TablePlugin-bFqq2Yd9.js.map} +1 -1
- package/dist/assets/variables.css +4 -4
- package/dist/{chunk-2N4WE3KZ-DQvXvHLf.js → chunk-2N4WE3KZ-DiBZ4E0Z.js} +2 -2
- package/dist/{chunk-2N4WE3KZ-DQvXvHLf.js.map → chunk-2N4WE3KZ-DiBZ4E0Z.js.map} +1 -1
- package/dist/components/Buttons/Button.stories.js +1 -1
- package/dist/components/Buttons/LinkButton.stories.js +1 -1
- package/dist/components/Buttons/MenuButton.stories.js +1 -1
- package/dist/components/Checkbox/Checkbox.stories.js +1 -1
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +1 -1
- package/dist/components/CheckboxTree/CheckboxTree.js +1 -1
- package/dist/components/CheckboxTree/CheckboxTree.stories.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/FormInput/FormInput.js +1 -1
- package/dist/components/FormInput/FormInput.stories.js +1 -1
- package/dist/components/IconButton/IconButton.stories.js +1 -1
- package/dist/components/InputField/InputField.stories.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 +1 -1
- package/dist/components/MultiSelect/index.js +1 -1
- package/dist/components/MultiSelectBox/MultiSelectBox.stories.js +1 -1
- package/dist/components/Notification/Notification.stories.js +1 -1
- package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +1 -1
- package/dist/components/PeriodSelector/PeriodSelector.js +1 -1
- package/dist/components/PeriodSelector/PeriodSelector.stories.js +1 -1
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.stories.js +1 -1
- package/dist/components/RadioTabSelector/RadioTabSelector.js +1 -1
- package/dist/components/RadioTabSelector/RadioTabSelector.stories.js +1 -1
- package/dist/components/RteEditor/EditorHeader/EditorHeader.js +1 -1
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +8 -8
- package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/CourseCataloguePlugin.js +58 -58
- package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +4 -4
- package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +61 -61
- package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +25 -25
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +13 -13
- package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/TableCellResizerPlugin.js +4 -4
- package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +4 -4
- package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +24 -24
- package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +29 -29
- package/dist/components/RteEditor/Plugins/index.js +2 -2
- package/dist/components/RteEditor/RteEditor.js +252 -252
- package/dist/components/RteEditor/RteEditor.js.map +1 -1
- package/dist/components/RteEditor/helpers.js +18 -18
- package/dist/components/RteEditor/nodes/CourseCatalogueNode/CourseCatalogueNode.js +19 -19
- package/dist/components/RteEditor/nodes/TableWrapperNode/TableWrapperNode.js +12 -12
- package/dist/components/SelectListbox/SelectListBox.stories.js +1 -1
- package/dist/components/Sortable/Sortable.stories.js +1 -1
- package/dist/components/TextArea/TextArea.stories.js +1 -1
- package/dist/components/ToggleSwitch/ToggleSwitch.stories.js +1 -1
- package/dist/components/VarIndicator/VarIndicator.stories.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/{index-1WwGCyua.js → index-B_q_4aBT.js} +89 -81
- package/dist/index-B_q_4aBT.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/storybook__react.d.js +2 -2
- package/package.json +30 -30
- package/dist/Lexical.prod-Dgzi-S1E.js.map +0 -1
- package/dist/LexicalExtension.prod-CNBWjmfs.js.map +0 -1
- package/dist/LexicalLink.prod-EEOzXxej.js +0 -502
- package/dist/LexicalLink.prod-EEOzXxej.js.map +0 -1
- package/dist/LexicalList.prod-DADZlhem.js +0 -627
- package/dist/LexicalList.prod-DADZlhem.js.map +0 -1
- package/dist/LexicalTable.prod-QpQxZNNH.js +0 -1814
- package/dist/LexicalTable.prod-QpQxZNNH.js.map +0 -1
- package/dist/LexicalUtils.prod-D1mwAww-.js +0 -114
- package/dist/LexicalUtils.prod-D1mwAww-.js.map +0 -1
- package/dist/index-1WwGCyua.js.map +0 -1
|
@@ -1,85 +1,85 @@
|
|
|
1
1
|
import { jsxs as y, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { o as
|
|
3
|
-
import {
|
|
4
|
-
import { useState as
|
|
5
|
-
import {
|
|
2
|
+
import { o as L } from "../../../../LexicalComposerContext.prod-DOyoZx0P.js";
|
|
3
|
+
import { a as g, N as b, r as E } from "../../../../Lexical.prod-YJ1n9pVJ.js";
|
|
4
|
+
import { useState as N, useRef as T, useCallback as x, useEffect as m } from "react";
|
|
5
|
+
import { U as w } from "../../../../LexicalTable.prod-BOlKc5zf.js";
|
|
6
6
|
import { CourseCataloguePlugin as B } from "../CourseCataloguePlugin/CourseCataloguePlugin.js";
|
|
7
7
|
import { BlockFormatPlugin as k } from "../BlockFormatPlugin/BlockFormatPlugin.js";
|
|
8
8
|
import { ListPlugin as S } from "../ListPlugin/ListPlugin.js";
|
|
9
|
-
import { LinkPlugin as
|
|
10
|
-
import { HistoryPlugin as
|
|
11
|
-
import { T as
|
|
12
|
-
import { TableCellContextMenu as
|
|
9
|
+
import { LinkPlugin as j } from "../LinkPlugin/LinkPlugin.js";
|
|
10
|
+
import { HistoryPlugin as z } from "../HistoryPlugin/HistoryPlugin.js";
|
|
11
|
+
import { T as A } from "../../../../TablePlugin-bFqq2Yd9.js";
|
|
12
|
+
import { TableCellContextMenu as K } from "../TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
|
|
13
13
|
import "react-dom";
|
|
14
14
|
import "../../../../index-yEhaxKq-.js";
|
|
15
|
-
import { s as
|
|
16
|
-
import { setScrollableContainers as v, removeScrollableContainers as
|
|
17
|
-
const
|
|
18
|
-
editorScrollPosition:
|
|
15
|
+
import { s as R } from "../../../../RteEditor.module-DaBh86FK.js";
|
|
16
|
+
import { setScrollableContainers as v, removeScrollableContainers as U } from "../../helpers.js";
|
|
17
|
+
const $ = ({
|
|
18
|
+
editorScrollPosition: n,
|
|
19
19
|
onCatalogueLinkSearch: d,
|
|
20
20
|
catalogueSearchResponse: u
|
|
21
21
|
}) => {
|
|
22
|
-
const [
|
|
22
|
+
const [r] = L(), [i, s] = N(null), p = T(null), f = x(() => {
|
|
23
23
|
const o = g();
|
|
24
24
|
if (b(o)) {
|
|
25
25
|
const l = o.anchor.getNode(), a = w(l);
|
|
26
26
|
if (a) {
|
|
27
|
-
const h =
|
|
27
|
+
const h = r.getElementByKey(a.getKey()), c = h ? h.getBoundingClientRect() : { right: 0, bottom: 0, height: 0 };
|
|
28
28
|
s({ xPos: c.right, yPos: c.bottom, height: c.height });
|
|
29
29
|
} else
|
|
30
30
|
s(null);
|
|
31
31
|
}
|
|
32
|
-
}, [
|
|
32
|
+
}, [r]), P = (o) => {
|
|
33
33
|
p.current?.mutateTable(o);
|
|
34
34
|
}, e = () => {
|
|
35
|
-
|
|
35
|
+
r.update(() => {
|
|
36
36
|
const o = g();
|
|
37
37
|
if (b(o)) {
|
|
38
38
|
const l = o.anchor.getNode();
|
|
39
|
-
w(l) && (
|
|
39
|
+
w(l) && (E(null), s(null));
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
42
|
};
|
|
43
43
|
return m(() => {
|
|
44
|
-
|
|
44
|
+
r.registerUpdateListener(({ editorState: o }) => {
|
|
45
45
|
o.read(() => {
|
|
46
46
|
f();
|
|
47
47
|
});
|
|
48
48
|
});
|
|
49
|
-
}, [
|
|
50
|
-
window.removeEventListener("scroll", e), window.removeEventListener("resize", e),
|
|
51
|
-
}), [
|
|
49
|
+
}, [r, f]), m(() => (v(e), window.addEventListener("scroll", e), window.addEventListener("resize", e), () => {
|
|
50
|
+
window.removeEventListener("scroll", e), window.removeEventListener("resize", e), U(e);
|
|
51
|
+
}), [r]), m(() => {
|
|
52
52
|
const o = () => {
|
|
53
53
|
v(e);
|
|
54
54
|
};
|
|
55
55
|
return window.addEventListener("keydown", o, { capture: !0 }), () => {
|
|
56
56
|
window.removeEventListener("keydown", o);
|
|
57
57
|
};
|
|
58
|
-
}, []), /* @__PURE__ */ y("div", { className:
|
|
58
|
+
}, []), /* @__PURE__ */ y("div", { className: R.editor__toolbar, children: [
|
|
59
59
|
/* @__PURE__ */ t(k, {}),
|
|
60
60
|
/* @__PURE__ */ t(S, {}),
|
|
61
|
-
/* @__PURE__ */ t(
|
|
61
|
+
/* @__PURE__ */ t(A, { isActive: !!i, ref: p }),
|
|
62
62
|
i && /* @__PURE__ */ t(
|
|
63
|
-
|
|
63
|
+
K,
|
|
64
64
|
{
|
|
65
65
|
position: i,
|
|
66
|
-
parentScrollPosition:
|
|
66
|
+
parentScrollPosition: n,
|
|
67
67
|
onAction: P
|
|
68
68
|
}
|
|
69
69
|
),
|
|
70
|
-
/* @__PURE__ */ t(
|
|
70
|
+
/* @__PURE__ */ t(j, { parentScrollPosition: n }),
|
|
71
71
|
d && u && /* @__PURE__ */ t(
|
|
72
72
|
B,
|
|
73
73
|
{
|
|
74
|
-
parentScrollPosition:
|
|
74
|
+
parentScrollPosition: n,
|
|
75
75
|
onSearch: d,
|
|
76
76
|
searchResponse: u
|
|
77
77
|
}
|
|
78
78
|
),
|
|
79
|
-
/* @__PURE__ */ t(
|
|
79
|
+
/* @__PURE__ */ t(z, {})
|
|
80
80
|
] });
|
|
81
81
|
};
|
|
82
82
|
export {
|
|
83
|
-
|
|
83
|
+
$ as ToolBarPlugin
|
|
84
84
|
};
|
|
85
85
|
//# sourceMappingURL=ToolbarPlugin.js.map
|
|
@@ -3,9 +3,9 @@ import { BlockFormatPlugin as t } from "./BlockFormatPlugin/BlockFormatPlugin.js
|
|
|
3
3
|
import { ListPlugin as n } from "./ListPlugin/ListPlugin.js";
|
|
4
4
|
import { LinkPlugin as x } from "./LinkPlugin/LinkPlugin.js";
|
|
5
5
|
import { HistoryPlugin as f } from "./HistoryPlugin/HistoryPlugin.js";
|
|
6
|
-
import { T as u } from "../../../TablePlugin-
|
|
6
|
+
import { T as u } from "../../../TablePlugin-bFqq2Yd9.js";
|
|
7
7
|
import { TableCellContextMenu as g } from "./TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
|
|
8
|
-
import { T } from "../../../TableCellResizerPlugin-
|
|
8
|
+
import { T } from "../../../TableCellResizerPlugin-BTfuE_kM.js";
|
|
9
9
|
import { PasteHandlerPlugin as C } from "./PasteHandlerPlugin/PasteHandlerPlugin.js";
|
|
10
10
|
export {
|
|
11
11
|
t as BlockFormatPlugin,
|