@uva-glass/component-library 1.64.5 → 1.64.7
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-DeeCy7Xd.js +4216 -0
- package/dist/Lexical.prod-DeeCy7Xd.js.map +1 -0
- package/dist/LexicalClipboard.prod-CayrMfkI.js +258 -0
- package/dist/LexicalClipboard.prod-CayrMfkI.js.map +1 -0
- package/dist/{LexicalLink.prod-BvJo1BD4.js → LexicalLink.prod-Biaqry-c.js} +40 -40
- package/dist/LexicalLink.prod-Biaqry-c.js.map +1 -0
- package/dist/{LexicalList.prod-igdv32dp.js → LexicalList.prod-Uk8UObU7.js} +52 -50
- package/dist/LexicalList.prod-Uk8UObU7.js.map +1 -0
- package/dist/LexicalSelection.prod-C1TEIGhq.js +86 -0
- package/dist/{LexicalSelection.prod-CL_DfdL6.js.map → LexicalSelection.prod-C1TEIGhq.js.map} +1 -1
- package/dist/LexicalTable.prod-hx6rW3fc.js +1338 -0
- package/dist/LexicalTable.prod-hx6rW3fc.js.map +1 -0
- package/dist/LexicalUtils.prod-CCjlRAc-.js +94 -0
- package/dist/LexicalUtils.prod-CCjlRAc-.js.map +1 -0
- package/dist/{TablePlugin-BVkwu1Gt.js → TablePlugin-BbiBRjod.js} +45 -45
- package/dist/{TablePlugin-BVkwu1Gt.js.map → TablePlugin-BbiBRjod.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/CheckboxButton/CheckboxButton.stories.js +1 -1
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +1 -1
- package/dist/components/CheckboxTree/CheckboxTree.js +2 -2
- package/dist/components/CheckboxTree/CheckboxTree.stories.js +1 -1
- package/dist/components/Drawer/Drawer.stories.js +1 -1
- package/dist/components/FormInput/FormInput.js +2 -2
- 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 +3 -3
- 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 +2 -2
- package/dist/components/MultiSelect/index.js +1 -1
- package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +1 -1
- package/dist/components/PeriodSelector/PeriodSelector.js +2 -2
- package/dist/components/PeriodSelector/PeriodSelector.stories.js +1 -1
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +3 -3
- package/dist/components/RteEditor/EditorHeader/EditorHeader.js +2 -2
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +7 -7
- package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +5 -5
- package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +3 -3
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +69 -69
- 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 +12 -12
- package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +2 -2
- 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 +26 -26
- package/dist/components/RteEditor/Plugins/index.js +1 -1
- package/dist/components/RteEditor/RteEditor.js +474 -473
- package/dist/components/RteEditor/RteEditor.js.map +1 -1
- package/dist/components/RteEditor/helpers.js +9 -9
- package/dist/components/SelectListbox/SelectListBox.stories.js +1 -1
- package/dist/components/Sortable/Sortable.stories.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/{helpers-BKqr9jXh.js → helpers-CgzuKnuq.js} +39 -39
- package/dist/{helpers-BKqr9jXh.js.map → helpers-CgzuKnuq.js.map} +1 -1
- package/dist/index-0wq-B7do.js +238 -0
- package/dist/{index-DPQ9bZx5.js.map → index-0wq-B7do.js.map} +1 -1
- package/dist/{index-DsprzSCj.js → index-B9BWML6P.js} +1025 -963
- package/dist/{index-DsprzSCj.js.map → index-B9BWML6P.js.map} +1 -1
- package/dist/{index-C9QoqAAt.js → index-DQyNeMuh.js} +66 -66
- package/dist/index-DQyNeMuh.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/react-18-BIqxBxbW.js +65 -0
- package/dist/{react-18-C0Aiha-e.js.map → react-18-BIqxBxbW.js.map} +1 -1
- package/dist/storybook__react.d.js +186 -183
- package/dist/storybook__react.d.js.map +1 -1
- package/package.json +19 -19
- package/dist/Lexical.prod-RJB8n7sC.js +0 -4072
- package/dist/Lexical.prod-RJB8n7sC.js.map +0 -1
- package/dist/LexicalClipboard.prod-DB_B0Sr6.js +0 -259
- package/dist/LexicalClipboard.prod-DB_B0Sr6.js.map +0 -1
- package/dist/LexicalLink.prod-BvJo1BD4.js.map +0 -1
- package/dist/LexicalList.prod-igdv32dp.js.map +0 -1
- package/dist/LexicalSelection.prod-CL_DfdL6.js +0 -86
- package/dist/LexicalTable.prod-CfgKmbyy.js +0 -1221
- package/dist/LexicalTable.prod-CfgKmbyy.js.map +0 -1
- package/dist/LexicalUtils.prod-mYf1cd8X.js +0 -94
- package/dist/LexicalUtils.prod-mYf1cd8X.js.map +0 -1
- package/dist/index-C9QoqAAt.js.map +0 -1
- package/dist/index-DPQ9bZx5.js +0 -231
- package/dist/react-18-C0Aiha-e.js +0 -52
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { jsxs as P, jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { u as y } from "../../../../LexicalComposerContext.prod-Dyvim1tK.js";
|
|
3
|
-
import {
|
|
4
|
-
import { useState as
|
|
5
|
-
import {
|
|
6
|
-
import { BlockFormatPlugin as
|
|
3
|
+
import { R as h, a as g, F as C } from "../../../../Lexical.prod-DeeCy7Xd.js";
|
|
4
|
+
import { useState as L, useRef as E, useCallback as S, useEffect as m } from "react";
|
|
5
|
+
import { S as b } from "../../../../LexicalTable.prod-hx6rW3fc.js";
|
|
6
|
+
import { BlockFormatPlugin as T } from "../BlockFormatPlugin/BlockFormatPlugin.js";
|
|
7
7
|
import { ListPlugin as k } from "../ListPlugin/ListPlugin.js";
|
|
8
|
-
import { LinkPlugin as
|
|
9
|
-
import { HistoryPlugin as
|
|
10
|
-
import { T as
|
|
11
|
-
import { TableCellContextMenu as
|
|
12
|
-
import { s as
|
|
13
|
-
import { setScrollableContainers as
|
|
8
|
+
import { LinkPlugin as N } from "../LinkPlugin/LinkPlugin.js";
|
|
9
|
+
import { HistoryPlugin as x } from "../HistoryPlugin/HistoryPlugin.js";
|
|
10
|
+
import { T as B } from "../../../../TablePlugin-BbiBRjod.js";
|
|
11
|
+
import { TableCellContextMenu as R } from "../TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
|
|
12
|
+
import { s as z } from "../../../../RteEditor.module-oFMKEW6f.js";
|
|
13
|
+
import { setScrollableContainers as w, removeScrollableContainers as A } from "../../helpers.js";
|
|
14
14
|
const Q = ({ editorScrollPosition: d }) => {
|
|
15
|
-
const [t] = y(), [i, s] =
|
|
16
|
-
const e =
|
|
17
|
-
if (
|
|
15
|
+
const [t] = y(), [i, s] = L(null), u = E(null), f = S(() => {
|
|
16
|
+
const e = h();
|
|
17
|
+
if (g(e)) {
|
|
18
18
|
const l = e.anchor.getNode(), a = b(l);
|
|
19
19
|
if (a) {
|
|
20
20
|
const p = t.getElementByKey(a.getKey()), c = p ? p.getBoundingClientRect() : { right: 0, bottom: 0, height: 0 };
|
|
@@ -22,13 +22,13 @@ const Q = ({ editorScrollPosition: d }) => {
|
|
|
22
22
|
} else
|
|
23
23
|
s(null);
|
|
24
24
|
}
|
|
25
|
-
}, [t]),
|
|
25
|
+
}, [t]), v = (e) => {
|
|
26
26
|
var r;
|
|
27
27
|
(r = u.current) == null || r.mutateTable(e);
|
|
28
28
|
}, o = () => {
|
|
29
29
|
t.update(() => {
|
|
30
|
-
const e =
|
|
31
|
-
if (
|
|
30
|
+
const e = h();
|
|
31
|
+
if (g(e)) {
|
|
32
32
|
const l = e.anchor.getNode();
|
|
33
33
|
b(l) && (C(null), s(null));
|
|
34
34
|
}
|
|
@@ -40,29 +40,29 @@ const Q = ({ editorScrollPosition: d }) => {
|
|
|
40
40
|
f();
|
|
41
41
|
});
|
|
42
42
|
});
|
|
43
|
-
}, [t, f]), m(() => (
|
|
44
|
-
window.removeEventListener("scroll", o), window.removeEventListener("resize", o),
|
|
43
|
+
}, [t, f]), m(() => (w(o), window.addEventListener("scroll", o), window.addEventListener("resize", o), () => {
|
|
44
|
+
window.removeEventListener("scroll", o), window.removeEventListener("resize", o), A(o);
|
|
45
45
|
}), [t]), m(() => {
|
|
46
46
|
const e = () => {
|
|
47
|
-
|
|
47
|
+
w(o);
|
|
48
48
|
};
|
|
49
49
|
return window.addEventListener("keydown", e, { capture: !0 }), () => {
|
|
50
50
|
window.removeEventListener("keydown", e);
|
|
51
51
|
};
|
|
52
|
-
}, []), /* @__PURE__ */ P("div", { className:
|
|
53
|
-
/* @__PURE__ */ n(
|
|
52
|
+
}, []), /* @__PURE__ */ P("div", { className: z.editor__toolbar, children: [
|
|
53
|
+
/* @__PURE__ */ n(T, {}),
|
|
54
54
|
/* @__PURE__ */ n(k, {}),
|
|
55
|
-
/* @__PURE__ */ n(
|
|
55
|
+
/* @__PURE__ */ n(B, { isActive: !!i, ref: u }),
|
|
56
56
|
i && /* @__PURE__ */ n(
|
|
57
|
-
|
|
57
|
+
R,
|
|
58
58
|
{
|
|
59
59
|
position: i,
|
|
60
60
|
parentScrollPosition: d,
|
|
61
|
-
onAction:
|
|
61
|
+
onAction: v
|
|
62
62
|
}
|
|
63
63
|
),
|
|
64
|
-
/* @__PURE__ */ n(
|
|
65
|
-
/* @__PURE__ */ n(
|
|
64
|
+
/* @__PURE__ */ n(N, { parentScrollPosition: d }),
|
|
65
|
+
/* @__PURE__ */ n(x, {})
|
|
66
66
|
] });
|
|
67
67
|
};
|
|
68
68
|
export {
|
|
@@ -3,7 +3,7 @@ import { BlockFormatPlugin as l } from "./BlockFormatPlugin/BlockFormatPlugin.js
|
|
|
3
3
|
import { ListPlugin as n } from "./ListPlugin/ListPlugin.js";
|
|
4
4
|
import { LinkPlugin as m, getLinkNodeTag as x } from "./LinkPlugin/LinkPlugin.js";
|
|
5
5
|
import { HistoryPlugin as p } from "./HistoryPlugin/HistoryPlugin.js";
|
|
6
|
-
import { T as a } from "../../../TablePlugin-
|
|
6
|
+
import { T as a } from "../../../TablePlugin-BbiBRjod.js";
|
|
7
7
|
import { TableCellContextMenu as T } from "./TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
|
|
8
8
|
export {
|
|
9
9
|
l as BlockFormatPlugin,
|