@uva-glass/component-library 3.0.4 → 3.0.6
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-CZAqLAjm.js → Lexical.prod-DTADK2yJ.js} +1496 -1469
- package/dist/Lexical.prod-DTADK2yJ.js.map +1 -0
- package/dist/LexicalClipboard.prod-Dx5Fm6e5.js +258 -0
- package/dist/LexicalClipboard.prod-Dx5Fm6e5.js.map +1 -0
- package/dist/{LexicalLink.prod-kqeQGYSo.js → LexicalLink.prod-JpC4y56U.js} +32 -32
- package/dist/LexicalLink.prod-JpC4y56U.js.map +1 -0
- package/dist/LexicalList.prod-w0kSq9sB.js +579 -0
- package/dist/LexicalList.prod-w0kSq9sB.js.map +1 -0
- package/dist/LexicalSelection.prod-DQLHaigk.js +78 -0
- package/dist/LexicalSelection.prod-DQLHaigk.js.map +1 -0
- package/dist/{LexicalTable.prod-DtAMjSWg.js → LexicalTable.prod-DjfZc87j.js} +351 -333
- package/dist/LexicalTable.prod-DjfZc87j.js.map +1 -0
- package/dist/{LexicalUtils.prod-C-NXnTzK.js → LexicalUtils.prod-BBwue2Aj.js} +38 -38
- package/dist/LexicalUtils.prod-BBwue2Aj.js.map +1 -0
- package/dist/{TablePlugin-DkL40qIf.js → TablePlugin-Co5vgBHF.js} +45 -45
- package/dist/{TablePlugin-DkL40qIf.js.map → TablePlugin-Co5vgBHF.js.map} +1 -1
- package/dist/assets/variables.css +3 -14
- 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 +1 -1
- 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/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/OverlayCloseButton/OverlayCloseButton.stories.js +1 -1
- package/dist/components/OverlayStepBar/OverlayStepBar.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 +2 -2
- package/dist/components/RteEditor/EditorHeader/EditorHeader.js +1 -1
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +3 -3
- package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.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 +45 -45
- package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +27 -27
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +7 -7
- package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +3 -3
- package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +10 -10
- package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +15 -15
- package/dist/components/RteEditor/Plugins/index.js +1 -1
- package/dist/components/RteEditor/RteEditor.js +240 -240
- 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/Sortable/Sortable.stories.js +1 -1
- package/dist/components/ToggleSwitch/ToggleSwitch.stories.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/{helpers-DYmWlhgC.js → helpers-DgTW1vIO.js} +30 -30
- package/dist/{helpers-DYmWlhgC.js.map → helpers-DgTW1vIO.js.map} +1 -1
- package/dist/{index-DkNZhwJb.js → index-CcK2jjMp.js} +275 -243
- package/dist/index-CcK2jjMp.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/storybook__react.d.js +1 -1
- package/package.json +21 -21
- package/dist/Lexical.prod-CZAqLAjm.js.map +0 -1
- package/dist/LexicalClipboard.prod-B0GrUtzr.js +0 -258
- package/dist/LexicalClipboard.prod-B0GrUtzr.js.map +0 -1
- package/dist/LexicalLink.prod-kqeQGYSo.js.map +0 -1
- package/dist/LexicalList.prod-BEKqHUO2.js +0 -576
- package/dist/LexicalList.prod-BEKqHUO2.js.map +0 -1
- package/dist/LexicalSelection.prod-B1DTqn9H.js +0 -86
- package/dist/LexicalSelection.prod-B1DTqn9H.js.map +0 -1
- package/dist/LexicalTable.prod-DtAMjSWg.js.map +0 -1
- package/dist/LexicalUtils.prod-C-NXnTzK.js.map +0 -1
- package/dist/index-DkNZhwJb.js.map +0 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { u as
|
|
3
|
-
import {
|
|
4
|
-
import { useState as
|
|
5
|
-
import {
|
|
1
|
+
import { jsxs as L, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { u as P } from "../../../../LexicalComposerContext.prod-BCXERl09.js";
|
|
3
|
+
import { q as h, a as g, c as y } from "../../../../Lexical.prod-DTADK2yJ.js";
|
|
4
|
+
import { useState as C, useRef as T, useCallback as E, useEffect as m } from "react";
|
|
5
|
+
import { T as b } from "../../../../LexicalTable.prod-DjfZc87j.js";
|
|
6
6
|
import { BlockFormatPlugin as N } from "../BlockFormatPlugin/BlockFormatPlugin.js";
|
|
7
7
|
import { ListPlugin as k } from "../ListPlugin/ListPlugin.js";
|
|
8
8
|
import { LinkPlugin as x } from "../LinkPlugin/LinkPlugin.js";
|
|
9
9
|
import { HistoryPlugin as B } from "../HistoryPlugin/HistoryPlugin.js";
|
|
10
|
-
import { T as S } from "../../../../TablePlugin-
|
|
10
|
+
import { T as S } from "../../../../TablePlugin-Co5vgBHF.js";
|
|
11
11
|
import { TableCellContextMenu as z } from "../TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
|
|
12
12
|
import { s as A } from "../../../../RteEditor.module-oFMKEW6f.js";
|
|
13
|
-
import { setScrollableContainers as
|
|
13
|
+
import { setScrollableContainers as w, removeScrollableContainers as K } from "../../helpers.js";
|
|
14
14
|
const Q = ({ editorScrollPosition: d }) => {
|
|
15
|
-
const [t] =
|
|
15
|
+
const [t] = P(), [i, s] = C(null), u = T(null), f = E(() => {
|
|
16
16
|
const e = h();
|
|
17
17
|
if (g(e)) {
|
|
18
18
|
const l = e.anchor.getNode(), a = b(l);
|
|
@@ -22,7 +22,7 @@ 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 = () => {
|
|
@@ -30,7 +30,7 @@ const Q = ({ editorScrollPosition: d }) => {
|
|
|
30
30
|
const e = h();
|
|
31
31
|
if (g(e)) {
|
|
32
32
|
const l = e.anchor.getNode();
|
|
33
|
-
b(l) && (
|
|
33
|
+
b(l) && (y(null), s(null));
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
36
|
};
|
|
@@ -40,16 +40,16 @@ 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), K(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__ */
|
|
52
|
+
}, []), /* @__PURE__ */ L("div", { className: A.editor__toolbar, children: [
|
|
53
53
|
/* @__PURE__ */ n(N, {}),
|
|
54
54
|
/* @__PURE__ */ n(k, {}),
|
|
55
55
|
/* @__PURE__ */ n(S, { isActive: !!i, ref: u }),
|
|
@@ -58,7 +58,7 @@ const Q = ({ editorScrollPosition: d }) => {
|
|
|
58
58
|
{
|
|
59
59
|
position: i,
|
|
60
60
|
parentScrollPosition: d,
|
|
61
|
-
onAction:
|
|
61
|
+
onAction: v
|
|
62
62
|
}
|
|
63
63
|
),
|
|
64
64
|
/* @__PURE__ */ n(x, { parentScrollPosition: d }),
|
|
@@ -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-Co5vgBHF.js";
|
|
7
7
|
import { TableCellContextMenu as T } from "./TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
|
|
8
8
|
export {
|
|
9
9
|
l as BlockFormatPlugin,
|