@uva-glass/component-library 3.42.4 → 3.43.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-qYl_ifJ6.js → Lexical.prod-nXWuyOKD.js} +1299 -1322
- package/dist/Lexical.prod-nXWuyOKD.js.map +1 -0
- package/dist/{LexicalClipboard.prod-DIGbXq4v.js → LexicalClipboard.prod-BP8LNbol.js} +104 -104
- package/dist/LexicalClipboard.prod-BP8LNbol.js.map +1 -0
- package/dist/{LexicalLink.prod-ZZwC5ABn.js → LexicalLink.prod-Brzpgs_K.js} +51 -51
- package/dist/{LexicalLink.prod-ZZwC5ABn.js.map → LexicalLink.prod-Brzpgs_K.js.map} +1 -1
- package/dist/{LexicalList.prod-UurCu6DK.js → LexicalList.prod-D6IAptR7.js} +53 -53
- package/dist/{LexicalList.prod-UurCu6DK.js.map → LexicalList.prod-D6IAptR7.js.map} +1 -1
- package/dist/LexicalSelection.prod-ZvNRDI9l.js +119 -0
- package/dist/LexicalSelection.prod-ZvNRDI9l.js.map +1 -0
- package/dist/LexicalTable.prod-DJktN6jF.js +1763 -0
- package/dist/LexicalTable.prod-DJktN6jF.js.map +1 -0
- package/dist/{LexicalUtils.prod-C3To3vrm.js → LexicalUtils.prod-Ckfw0Hjt.js} +34 -34
- package/dist/{LexicalUtils.prod-C3To3vrm.js.map → LexicalUtils.prod-Ckfw0Hjt.js.map} +1 -1
- package/dist/{TableCellResizerPlugin-B9MT1fxA.js → TableCellResizerPlugin-DFzNK-ve.js} +32 -32
- package/dist/{TableCellResizerPlugin-B9MT1fxA.js.map → TableCellResizerPlugin-DFzNK-ve.js.map} +1 -1
- package/dist/{TablePlugin-FQQwnq2m.js → TablePlugin-CAoOq8iA.js} +52 -52
- package/dist/{TablePlugin-FQQwnq2m.js.map → TablePlugin-CAoOq8iA.js.map} +1 -1
- package/dist/components/CheckboxTree/CheckboxTree.js +1 -1
- package/dist/components/FormInput/FormInput.js +1 -1
- package/dist/components/InputField/InputField.stories.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.stories.js +1 -1
- package/dist/components/MultiSelect/components/MultiSelectHeader.js +1 -1
- package/dist/components/MultiSelect/index.js +1 -1
- package/dist/components/PeriodSelector/PeriodSelector.js +37 -37
- package/dist/components/PeriodSelector/PeriodSelector.js.map +1 -1
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +1 -1
- package/dist/components/RadioTabSelector/RadioTabSelector.js +1 -1
- package/dist/components/RteEditor/EditorHeader/EditorHeader.js +1 -1
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +6 -6
- package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +6 -6
- 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 +35 -35
- 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 +5 -5
- 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 +7 -7
- package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +18 -18
- package/dist/components/RteEditor/Plugins/index.js +2 -2
- package/dist/components/RteEditor/RteEditor.js +233 -233
- package/dist/components/RteEditor/RteEditor.js.map +1 -1
- package/dist/components/RteEditor/helpers.js +4 -4
- package/dist/components/RteEditor/nodes/TableWrapperNode/TableWrapperNode.js +16 -16
- package/dist/components/index.js +1 -1
- package/dist/{helpers-D3SODeVc.js → helpers-mE437H2Y.js} +38 -38
- package/dist/{helpers-D3SODeVc.js.map → helpers-mE437H2Y.js.map} +1 -1
- package/dist/index.js +1 -1
- package/package.json +19 -19
- package/dist/Lexical.prod-qYl_ifJ6.js.map +0 -1
- package/dist/LexicalClipboard.prod-DIGbXq4v.js.map +0 -1
- package/dist/LexicalSelection.prod-DXruZeFN.js +0 -103
- package/dist/LexicalSelection.prod-DXruZeFN.js.map +0 -1
- package/dist/LexicalTable.prod-COFf1Spn.js +0 -1763
- package/dist/LexicalTable.prod-COFf1Spn.js.map +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsx as k, jsxs as
|
|
1
|
+
import { jsx as k, jsxs as Q } from "react/jsx-runtime";
|
|
2
2
|
import { o as W } from "../../../../LexicalComposerContext.prod-DOyoZx0P.js";
|
|
3
3
|
import { c as Y } from "../../../../clsx-OuTLNxxd.js";
|
|
4
|
-
import { p as
|
|
5
|
-
import { useRef as a, useState as
|
|
6
|
-
import { a2 as X,
|
|
7
|
-
import { A as rt } from "../../../../TablePlugin-
|
|
8
|
-
import { e as nt } from "../../../../helpers-
|
|
4
|
+
import { p as O, k as q, v as G } from "../../../../LexicalLink.prod-Brzpgs_K.js";
|
|
5
|
+
import { useRef as a, useState as J, useEffect as m } from "react";
|
|
6
|
+
import { a2 as X, w as p, u as Z, as as $, a as w, I as tt, k as et, Q as ot } from "../../../../Lexical.prod-nXWuyOKD.js";
|
|
7
|
+
import { A as rt } from "../../../../TablePlugin-CAoOq8iA.js";
|
|
8
|
+
import { e as nt } from "../../../../helpers-mE437H2Y.js";
|
|
9
9
|
import { LinkContextMenu as it } from "./LinkContextMenu/LinkContextMenu.js";
|
|
10
10
|
import { useFlyout as st } from "../../hooks/useFlyout.js";
|
|
11
11
|
import "../../../Accordion/Accordion.js";
|
|
@@ -23,7 +23,7 @@ import "../../../IconButton/IconButton.js";
|
|
|
23
23
|
import "../../../Input/Input.js";
|
|
24
24
|
import "../../../InputField/InputField.js";
|
|
25
25
|
import "react-router";
|
|
26
|
-
import { setScrollableContainers as
|
|
26
|
+
import { setScrollableContainers as K, removeScrollableContainers as lt } from "../../helpers.js";
|
|
27
27
|
import { s as h } from "../../../../RteEditor.module-dE9wQTC9.js";
|
|
28
28
|
import { useTranslation as at } from "../../hooks/useTranslation.js";
|
|
29
29
|
import "react-dom";
|
|
@@ -33,10 +33,10 @@ import "../../../SelectListbox/SelectListbox.js";
|
|
|
33
33
|
import "../../../SelectListbox/SelectProvider.js";
|
|
34
34
|
import "../../../Sortable/components/SortableItem.js";
|
|
35
35
|
import "../../../../SortableProvider-l8-7ClBJ.js";
|
|
36
|
-
const ut = 200,
|
|
36
|
+
const ut = 200, B = (f) => {
|
|
37
37
|
let n = f;
|
|
38
38
|
for (; n; ) {
|
|
39
|
-
if (
|
|
39
|
+
if (O(n))
|
|
40
40
|
return n;
|
|
41
41
|
n = n.getParent();
|
|
42
42
|
}
|
|
@@ -44,7 +44,7 @@ const ut = 200, M = (f) => {
|
|
|
44
44
|
}, z = (f) => {
|
|
45
45
|
let n = f;
|
|
46
46
|
for (; n; ) {
|
|
47
|
-
if (
|
|
47
|
+
if (O(n))
|
|
48
48
|
return {
|
|
49
49
|
active: !0,
|
|
50
50
|
url: n.getURL(),
|
|
@@ -54,7 +54,7 @@ const ut = 200, M = (f) => {
|
|
|
54
54
|
}
|
|
55
55
|
return !1;
|
|
56
56
|
}, Wt = ({ parentScrollPosition: f }) => {
|
|
57
|
-
const n = at(), [c] = W(), { flyout:
|
|
57
|
+
const n = at(), [c] = W(), { flyout: U, showFlyout: _, hideFlyout: C, isVisible: u } = st(), d = a(void 0), N = a(!1), v = a(""), g = a(""), [y, A] = J({ active: !1, url: "", linktext: "" }), P = a(u), x = a(null), S = a(null), T = a(void 0), L = () => {
|
|
58
58
|
c.update(() => {
|
|
59
59
|
const o = p();
|
|
60
60
|
x.current = o;
|
|
@@ -63,15 +63,15 @@ const ut = 200, M = (f) => {
|
|
|
63
63
|
c.update(() => {
|
|
64
64
|
x.current && et(x.current);
|
|
65
65
|
});
|
|
66
|
-
},
|
|
67
|
-
|
|
66
|
+
}, H = (o, t) => {
|
|
67
|
+
_({
|
|
68
68
|
position: t,
|
|
69
69
|
children: /* @__PURE__ */ k(
|
|
70
70
|
it,
|
|
71
71
|
{
|
|
72
72
|
url: o,
|
|
73
|
-
onSave: (e) =>
|
|
74
|
-
onDelete: () =>
|
|
73
|
+
onSave: (e) => I(e, ""),
|
|
74
|
+
onDelete: () => M(),
|
|
75
75
|
onClose: D,
|
|
76
76
|
ref: T
|
|
77
77
|
}
|
|
@@ -79,31 +79,31 @@ const ut = 200, M = (f) => {
|
|
|
79
79
|
});
|
|
80
80
|
}, D = () => {
|
|
81
81
|
T.current?.clearForm(), C(), R();
|
|
82
|
-
},
|
|
82
|
+
}, F = () => {
|
|
83
83
|
const o = S.current?.getBoundingClientRect();
|
|
84
|
-
!N.current && o && (L(),
|
|
84
|
+
!N.current && o && (L(), _({ position: { top: o.bottom, left: o.left }, ...V }), setTimeout(() => d.current?.setDefaults("", g.current), 0));
|
|
85
85
|
}, b = () => {
|
|
86
86
|
C(), R();
|
|
87
|
-
},
|
|
87
|
+
}, I = (o, t) => {
|
|
88
88
|
c.update(() => {
|
|
89
89
|
const e = p();
|
|
90
90
|
if (w(e)) {
|
|
91
|
-
const i = e.anchor.getNode(), s =
|
|
91
|
+
const i = e.anchor.getNode(), s = B(i);
|
|
92
92
|
if (t && t !== "") {
|
|
93
93
|
if (s) {
|
|
94
94
|
const l = ot(t);
|
|
95
95
|
s.replace(l), l.select();
|
|
96
96
|
}
|
|
97
97
|
if (t !== v.current && v.current === "") {
|
|
98
|
-
const { anchor: l, focus:
|
|
99
|
-
e.insertText(t), l.offset -= t.length,
|
|
98
|
+
const { anchor: l, focus: E } = e;
|
|
99
|
+
e.insertText(t), l.offset -= t.length, E.offset = l.offset + t.length;
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
G(nt(o), { target: "_blank" });
|
|
103
103
|
}
|
|
104
104
|
b();
|
|
105
105
|
});
|
|
106
|
-
},
|
|
106
|
+
}, M = () => {
|
|
107
107
|
c.dispatchCommand(q, null), D();
|
|
108
108
|
}, V = {
|
|
109
109
|
children: /* @__PURE__ */ k(
|
|
@@ -111,7 +111,7 @@ const ut = 200, M = (f) => {
|
|
|
111
111
|
{
|
|
112
112
|
isLink: y,
|
|
113
113
|
onCloseHandler: b,
|
|
114
|
-
onSaveHandler: (o, t) =>
|
|
114
|
+
onSaveHandler: (o, t) => I(o, t),
|
|
115
115
|
ref: d
|
|
116
116
|
}
|
|
117
117
|
)
|
|
@@ -124,7 +124,7 @@ const ut = 200, M = (f) => {
|
|
|
124
124
|
const i = z(r.anchor.getNode());
|
|
125
125
|
if (i) {
|
|
126
126
|
const s = c.getElementByKey(r.anchor.getNode().getKey()), l = s ? { top: s.getBoundingClientRect().bottom, left: s.getBoundingClientRect().left } : { top: 0, left: 0 };
|
|
127
|
-
return
|
|
127
|
+
return H(i.url, l), !0;
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
return !1;
|
|
@@ -154,23 +154,23 @@ const ut = 200, M = (f) => {
|
|
|
154
154
|
const r = p();
|
|
155
155
|
if (L(), !w(r))
|
|
156
156
|
return !1;
|
|
157
|
-
const i = z(r.anchor.getNode()), s = (
|
|
158
|
-
|
|
157
|
+
const i = z(r.anchor.getNode()), s = (E = "", j = "") => {
|
|
158
|
+
F(), setTimeout(() => d.current?.setDefaults(E, j), 0);
|
|
159
159
|
};
|
|
160
160
|
if (i)
|
|
161
161
|
return e.preventDefault(), e.stopPropagation(), e.stopImmediatePropagation(), v.current = i.linktext, s(i.url, i.linktext), !0;
|
|
162
162
|
const l = r.getTextContent();
|
|
163
|
-
return l !== "" ? (g.current = l, s("", g.current), !0) : (
|
|
163
|
+
return l !== "" ? (g.current = l, s("", g.current), !0) : (F(), !0);
|
|
164
164
|
}
|
|
165
165
|
return !1;
|
|
166
166
|
},
|
|
167
167
|
tt
|
|
168
168
|
), t = c.registerUpdateListener(({ editorState: e }) => {
|
|
169
|
-
|
|
169
|
+
A(
|
|
170
170
|
e.read(() => {
|
|
171
171
|
const r = p();
|
|
172
172
|
if (L(), w(r)) {
|
|
173
|
-
const i = r.anchor.getNode(), s =
|
|
173
|
+
const i = r.anchor.getNode(), s = B(i);
|
|
174
174
|
if (s)
|
|
175
175
|
return {
|
|
176
176
|
active: !0,
|
|
@@ -190,25 +190,25 @@ const ut = 200, M = (f) => {
|
|
|
190
190
|
o(), t();
|
|
191
191
|
};
|
|
192
192
|
}, [c]), m(() => {
|
|
193
|
-
|
|
193
|
+
P.current = u, u || T.current?.clearForm();
|
|
194
194
|
}, [u]), m(() => {
|
|
195
195
|
u && b();
|
|
196
196
|
}, [f]), m(() => {
|
|
197
197
|
y.active || C();
|
|
198
198
|
}, [y]), m(() => {
|
|
199
|
-
const o = (e) => (
|
|
199
|
+
const o = (e) => (K(t), e.key === "Escape" && P.current && (e.preventDefault(), e.stopPropagation(), b()), !0);
|
|
200
200
|
window.addEventListener("keydown", o, { capture: !0 });
|
|
201
201
|
const t = () => {
|
|
202
202
|
C();
|
|
203
203
|
};
|
|
204
|
-
return
|
|
204
|
+
return K(t), window.addEventListener("scroll", t), window.addEventListener("resize", t), () => {
|
|
205
205
|
window.removeEventListener("keydown", o), window.removeEventListener("scroll", t), window.removeEventListener("resize", t), lt(t);
|
|
206
206
|
};
|
|
207
|
-
}, []), /* @__PURE__ */ k("div", { className: h["editor__toolbar-button-group"], children: /* @__PURE__ */
|
|
207
|
+
}, []), /* @__PURE__ */ k("div", { className: h["editor__toolbar-button-group"], children: /* @__PURE__ */ Q("div", { className: h["editor__toolbar-button-flyoutwrapper"], children: [
|
|
208
208
|
/* @__PURE__ */ k(
|
|
209
209
|
"button",
|
|
210
210
|
{
|
|
211
|
-
onClick:
|
|
211
|
+
onClick: F,
|
|
212
212
|
title: n.links.linkTooltip,
|
|
213
213
|
className: Y(
|
|
214
214
|
h["editor__toolbar-button"],
|
|
@@ -222,7 +222,7 @@ const ut = 200, M = (f) => {
|
|
|
222
222
|
children: /* @__PURE__ */ k(ct, { name: "Link", size: 20 })
|
|
223
223
|
}
|
|
224
224
|
),
|
|
225
|
-
|
|
225
|
+
U
|
|
226
226
|
] }) });
|
|
227
227
|
};
|
|
228
228
|
export {
|
|
@@ -1,51 +1,51 @@
|
|
|
1
1
|
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
-
import { o as
|
|
3
|
-
import { T as N, C as
|
|
4
|
-
import {
|
|
5
|
-
import { useState as p, useEffect as
|
|
6
|
-
import { c as
|
|
7
|
-
import { as as
|
|
8
|
-
import { Icon as
|
|
2
|
+
import { o as y } from "../../../../LexicalComposerContext.prod-DOyoZx0P.js";
|
|
3
|
+
import { T as N, C as v, y as I, n as D, a as f, c as S } from "../../../../LexicalList.prod-D6IAptR7.js";
|
|
4
|
+
import { H as w } from "../../../../LexicalSelection.prod-ZvNRDI9l.js";
|
|
5
|
+
import { useState as p, useEffect as K } from "react";
|
|
6
|
+
import { c as x } from "../../../../clsx-OuTLNxxd.js";
|
|
7
|
+
import { as as O, I as U, a0 as B, w as b, a as h, K as E, F } from "../../../../Lexical.prod-nXWuyOKD.js";
|
|
8
|
+
import { Icon as T } from "../../../Icon/Icon.js";
|
|
9
9
|
import { s as l } from "../../../../RteEditor.module-dE9wQTC9.js";
|
|
10
|
-
import { useTranslation as
|
|
10
|
+
import { useTranslation as $ } from "../../hooks/useTranslation.js";
|
|
11
11
|
const j = {
|
|
12
12
|
bullet: "BulletList",
|
|
13
13
|
number: "NumberedList"
|
|
14
14
|
}, z = ["bullet", "number"], W = () => {
|
|
15
|
-
const u =
|
|
15
|
+
const u = $(), [e] = y(), [g, s] = p("paragraph"), [c, L] = p(!1), [m, C] = p(!1), P = () => {
|
|
16
16
|
e.update(() => {
|
|
17
17
|
const t = b();
|
|
18
|
-
h(t) &&
|
|
18
|
+
h(t) && w(t, () => F());
|
|
19
19
|
});
|
|
20
|
-
},
|
|
21
|
-
t === "number" && g !== "number" ? (e.dispatchCommand(
|
|
20
|
+
}, k = (t) => {
|
|
21
|
+
t === "number" && g !== "number" ? (e.dispatchCommand(v, void 0), s("number")) : t === "bullet" && g !== "bullet" ? (e.dispatchCommand(I, void 0), s("bullet")) : (P(), s("paragraph"));
|
|
22
22
|
};
|
|
23
|
-
return
|
|
23
|
+
return K(() => {
|
|
24
24
|
const t = e.registerCommand(
|
|
25
|
-
|
|
26
|
-
(r) => r.ctrlKey && r.shiftKey && r.code === "Digit7" ? (r.preventDefault(), m ? e.dispatchCommand(N, void 0) : e.dispatchCommand(
|
|
27
|
-
|
|
25
|
+
O,
|
|
26
|
+
(r) => r.ctrlKey && r.shiftKey && r.code === "Digit7" ? (r.preventDefault(), m ? e.dispatchCommand(N, void 0) : e.dispatchCommand(v, void 0), !0) : r.ctrlKey && r.shiftKey && r.code === "Digit8" ? (r.preventDefault(), c ? e.dispatchCommand(N, void 0) : e.dispatchCommand(I, void 0), !0) : !1,
|
|
27
|
+
U
|
|
28
28
|
);
|
|
29
29
|
return () => {
|
|
30
30
|
t();
|
|
31
31
|
};
|
|
32
|
-
}, [e, m, c]),
|
|
32
|
+
}, [e, m, c]), K(() => {
|
|
33
33
|
e.registerCommand(
|
|
34
|
-
|
|
34
|
+
B,
|
|
35
35
|
(r) => (r.preventDefault(), e.update(() => {
|
|
36
36
|
const n = b();
|
|
37
37
|
if (!h(n))
|
|
38
38
|
return;
|
|
39
39
|
const o = n.anchor.getNode(), i = o.getParent();
|
|
40
|
-
if (!
|
|
40
|
+
if (!D(i))
|
|
41
41
|
return;
|
|
42
42
|
const a = i.getParent();
|
|
43
43
|
if (f(a)) {
|
|
44
|
-
const
|
|
45
|
-
i.append(
|
|
44
|
+
const _ = S(f(a) ? a.getListType() : "bullet");
|
|
45
|
+
i.append(_), _.append(o);
|
|
46
46
|
}
|
|
47
47
|
}), !0),
|
|
48
|
-
|
|
48
|
+
E
|
|
49
49
|
);
|
|
50
50
|
const t = e.registerUpdateListener(({ editorState: r }) => {
|
|
51
51
|
r.read(() => {
|
|
@@ -55,14 +55,14 @@ const j = {
|
|
|
55
55
|
for (; o !== null; ) {
|
|
56
56
|
if (f(o)) {
|
|
57
57
|
const a = o.getTag();
|
|
58
|
-
|
|
58
|
+
L(a === "ul"), C(a === "ol"), a === "ul" && s("bullet"), a === "ol" && s("number");
|
|
59
59
|
return;
|
|
60
60
|
}
|
|
61
61
|
const i = o.getParent();
|
|
62
62
|
if (i === null) break;
|
|
63
63
|
o = i;
|
|
64
64
|
}
|
|
65
|
-
|
|
65
|
+
L(!1), C(!1), s("paragraph");
|
|
66
66
|
}
|
|
67
67
|
return !1;
|
|
68
68
|
});
|
|
@@ -73,9 +73,9 @@ const j = {
|
|
|
73
73
|
}, [e]), /* @__PURE__ */ d("div", { className: l["editor__toolbar-button-group"], children: z.map((t) => /* @__PURE__ */ d(
|
|
74
74
|
"button",
|
|
75
75
|
{
|
|
76
|
-
onClick: () =>
|
|
76
|
+
onClick: () => k(t),
|
|
77
77
|
title: u.format[`${t}Tooltip`],
|
|
78
|
-
className:
|
|
78
|
+
className: x(
|
|
79
79
|
l["editor__toolbar-button"],
|
|
80
80
|
l[`editor__toolbar-button--${t}`],
|
|
81
81
|
t === "bullet" && c && l["editor__toolbar-button--active"],
|
|
@@ -84,7 +84,7 @@ const j = {
|
|
|
84
84
|
"aria-label": u.aria.labels[t],
|
|
85
85
|
"aria-keyshortcuts": u.aria.keyshortcuts[t],
|
|
86
86
|
type: "button",
|
|
87
|
-
children: /* @__PURE__ */ d(
|
|
87
|
+
children: /* @__PURE__ */ d(T, { name: j[t], size: 24 })
|
|
88
88
|
},
|
|
89
89
|
t
|
|
90
90
|
)) });
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { o as m } from "../../../../LexicalComposerContext.prod-DOyoZx0P.js";
|
|
2
2
|
import { useEffect as c } from "react";
|
|
3
|
-
import { af as f,
|
|
4
|
-
import { L as i } from "../../../../LexicalUtils.prod-
|
|
5
|
-
import { A as d } from "../../../../LexicalClipboard.prod-
|
|
3
|
+
import { af as f, R as p, w as u } from "../../../../Lexical.prod-nXWuyOKD.js";
|
|
4
|
+
import { L as i } from "../../../../LexicalUtils.prod-Ckfw0Hjt.js";
|
|
5
|
+
import { A as d } from "../../../../LexicalClipboard.prod-BP8LNbol.js";
|
|
6
6
|
import { d as D } from "../../../../index-yEhaxKq-.js";
|
|
7
|
-
const
|
|
7
|
+
const P = () => {
|
|
8
8
|
const [e] = m(), l = (t) => {
|
|
9
9
|
t.preventDefault(), e.update(() => {
|
|
10
10
|
const r = u(), a = i(t, InputEvent) || i(t, KeyboardEvent) ? null : t.clipboardData;
|
|
@@ -26,6 +26,6 @@ const w = () => {
|
|
|
26
26
|
}, [e]), null;
|
|
27
27
|
};
|
|
28
28
|
export {
|
|
29
|
-
|
|
29
|
+
P as PasteHandlerPlugin
|
|
30
30
|
};
|
|
31
31
|
//# sourceMappingURL=PasteHandlerPlugin.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import "../../../../LexicalComposerContext.prod-DOyoZx0P.js";
|
|
4
|
-
import { T as b } from "../../../../TableCellResizerPlugin-
|
|
5
|
-
import "../../../../LexicalTable.prod-
|
|
6
|
-
import "../../../../LexicalUtils.prod-
|
|
7
|
-
import "../../../../Lexical.prod-
|
|
4
|
+
import { T as b } from "../../../../TableCellResizerPlugin-DFzNK-ve.js";
|
|
5
|
+
import "../../../../LexicalTable.prod-DJktN6jF.js";
|
|
6
|
+
import "../../../../LexicalUtils.prod-Ckfw0Hjt.js";
|
|
7
|
+
import "../../../../Lexical.prod-nXWuyOKD.js";
|
|
8
8
|
import "react-dom";
|
|
9
9
|
import "../TablePlugin/helpers.js";
|
|
10
10
|
import "../../nodes/TableWrapperNode/TableWrapperNode.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { b as D } from "../../../../TablePlugin-
|
|
3
|
+
import { b as D } from "../../../../TablePlugin-CAoOq8iA.js";
|
|
4
4
|
import "../../../Accordion/Accordion.js";
|
|
5
5
|
import "../../../Buttons/Button.js";
|
|
6
6
|
import "../../../Buttons/LinkButton.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "../../../../LexicalComposerContext.prod-DOyoZx0P.js";
|
|
3
3
|
import "../../../../clsx-OuTLNxxd.js";
|
|
4
|
-
import "../../../../LexicalTable.prod-
|
|
5
|
-
import "../../../../Lexical.prod-
|
|
6
|
-
import "../../../../LexicalUtils.prod-
|
|
4
|
+
import "../../../../LexicalTable.prod-DJktN6jF.js";
|
|
5
|
+
import "../../../../Lexical.prod-nXWuyOKD.js";
|
|
6
|
+
import "../../../../LexicalUtils.prod-Ckfw0Hjt.js";
|
|
7
7
|
import "react";
|
|
8
|
-
import { T as J } from "../../../../TablePlugin-
|
|
8
|
+
import { T as J } from "../../../../TablePlugin-CAoOq8iA.js";
|
|
9
9
|
import "./helpers.js";
|
|
10
10
|
import "../../nodes/TableWrapperNode/TableWrapperNode.js";
|
|
11
11
|
import "../../hooks/useFlyout.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { V as T, R as i, H as w, n as p, B as u, P as b, a as E, z as R, K as g, Y as D, L as I, v as x } from "../../../../LexicalTable.prod-
|
|
2
|
-
import {
|
|
1
|
+
import { V as T, R as i, H as w, n as p, B as u, P as b, a as E, z as R, K as g, Y as D, L as I, v as x } from "../../../../LexicalTable.prod-DJktN6jF.js";
|
|
2
|
+
import { F as S } from "../../../../Lexical.prod-nXWuyOKD.js";
|
|
3
3
|
import { TableWrapperNode as N } from "../../nodes/TableWrapperNode/TableWrapperNode.js";
|
|
4
|
-
const
|
|
4
|
+
const y = 32, a = 48, W = 1, O = 200, P = 320, H = (t, e) => {
|
|
5
5
|
const n = I(0, 0, !1);
|
|
6
6
|
for (let o = 0; o < t; o++) {
|
|
7
7
|
const r = g();
|
|
@@ -12,7 +12,7 @@ const B = 32, a = 48, W = 1, O = 200, P = 320, F = (t, e) => {
|
|
|
12
12
|
n.append(r);
|
|
13
13
|
}
|
|
14
14
|
return n;
|
|
15
|
-
},
|
|
15
|
+
}, B = (t) => {
|
|
16
16
|
const e = R(t), n = e.getNextSibling() || e.getPreviousSibling(), o = e.getParentOrThrow();
|
|
17
17
|
if (o.getChildrenSize() > 1 ? e.remove() : o.remove(), n !== null) {
|
|
18
18
|
const r = n.getFirstDescendant();
|
|
@@ -77,11 +77,11 @@ export {
|
|
|
77
77
|
W as BORDER_WIDTHS,
|
|
78
78
|
a as DEFAULT_COL_WIDTH,
|
|
79
79
|
P as DEFAULT_EDITOR_WIDTH,
|
|
80
|
-
|
|
80
|
+
y as MIN_COLUMN_WIDTH,
|
|
81
81
|
O as PREVENT_OPEN_DELAY,
|
|
82
|
-
|
|
82
|
+
H as createTable,
|
|
83
83
|
M as deleteColumn,
|
|
84
|
-
|
|
84
|
+
B as deleteRow,
|
|
85
85
|
L as deleteTable,
|
|
86
86
|
V as getEditorContentWidth,
|
|
87
87
|
A as getEditorParrentCellWidth,
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { jsxs as P, jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { o as y } from "../../../../LexicalComposerContext.prod-DOyoZx0P.js";
|
|
3
|
-
import {
|
|
4
|
-
import { useState as L, useRef as E, useCallback as
|
|
5
|
-
import { W as g } from "../../../../LexicalTable.prod-
|
|
6
|
-
import { BlockFormatPlugin as
|
|
7
|
-
import { ListPlugin as
|
|
3
|
+
import { w as f, a as h, k as C } from "../../../../Lexical.prod-nXWuyOKD.js";
|
|
4
|
+
import { useState as L, useRef as E, useCallback as k, useEffect as c } from "react";
|
|
5
|
+
import { W as g } from "../../../../LexicalTable.prod-DJktN6jF.js";
|
|
6
|
+
import { BlockFormatPlugin as T } from "../BlockFormatPlugin/BlockFormatPlugin.js";
|
|
7
|
+
import { ListPlugin as N } 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-
|
|
11
|
-
import { TableCellContextMenu as
|
|
10
|
+
import { T as S } from "../../../../TablePlugin-CAoOq8iA.js";
|
|
11
|
+
import { TableCellContextMenu as z } from "../TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
|
|
12
12
|
import "react-dom";
|
|
13
13
|
import "../../../../index-yEhaxKq-.js";
|
|
14
|
-
import { s as
|
|
15
|
-
import { setScrollableContainers as
|
|
14
|
+
import { s as A } from "../../../../RteEditor.module-dE9wQTC9.js";
|
|
15
|
+
import { setScrollableContainers as w, removeScrollableContainers as K } from "../../helpers.js";
|
|
16
16
|
const V = ({ editorScrollPosition: m }) => {
|
|
17
|
-
const [t] = y(), [r, i] = L(null), d = E(null), u =
|
|
17
|
+
const [t] = y(), [r, i] = L(null), d = E(null), u = k(() => {
|
|
18
18
|
const e = f();
|
|
19
19
|
if (h(e)) {
|
|
20
20
|
const s = e.anchor.getNode(), l = g(s);
|
|
@@ -24,7 +24,7 @@ const V = ({ editorScrollPosition: m }) => {
|
|
|
24
24
|
} else
|
|
25
25
|
i(null);
|
|
26
26
|
}
|
|
27
|
-
}, [t]),
|
|
27
|
+
}, [t]), b = (e) => {
|
|
28
28
|
d.current?.mutateTable(e);
|
|
29
29
|
}, o = () => {
|
|
30
30
|
t.update(() => {
|
|
@@ -41,25 +41,25 @@ const V = ({ editorScrollPosition: m }) => {
|
|
|
41
41
|
u();
|
|
42
42
|
});
|
|
43
43
|
});
|
|
44
|
-
}, [t, u]), c(() => (
|
|
45
|
-
window.removeEventListener("scroll", o), window.removeEventListener("resize", o),
|
|
44
|
+
}, [t, u]), c(() => (w(o), window.addEventListener("scroll", o), window.addEventListener("resize", o), () => {
|
|
45
|
+
window.removeEventListener("scroll", o), window.removeEventListener("resize", o), K(o);
|
|
46
46
|
}), [t]), c(() => {
|
|
47
47
|
const e = () => {
|
|
48
|
-
|
|
48
|
+
w(o);
|
|
49
49
|
};
|
|
50
50
|
return window.addEventListener("keydown", e, { capture: !0 }), () => {
|
|
51
51
|
window.removeEventListener("keydown", e);
|
|
52
52
|
};
|
|
53
|
-
}, []), /* @__PURE__ */ P("div", { className:
|
|
53
|
+
}, []), /* @__PURE__ */ P("div", { className: A.editor__toolbar, children: [
|
|
54
|
+
/* @__PURE__ */ n(T, {}),
|
|
54
55
|
/* @__PURE__ */ n(N, {}),
|
|
55
|
-
/* @__PURE__ */ n(k, {}),
|
|
56
56
|
/* @__PURE__ */ n(S, { isActive: !!r, ref: d }),
|
|
57
57
|
r && /* @__PURE__ */ n(
|
|
58
|
-
|
|
58
|
+
z,
|
|
59
59
|
{
|
|
60
60
|
position: r,
|
|
61
61
|
parentScrollPosition: m,
|
|
62
|
-
onAction:
|
|
62
|
+
onAction: b
|
|
63
63
|
}
|
|
64
64
|
),
|
|
65
65
|
/* @__PURE__ */ n(x, { parentScrollPosition: m }),
|
|
@@ -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 g, getLinkNodeTag as m } 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-CAoOq8iA.js";
|
|
7
7
|
import { TableCellContextMenu as T } from "./TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
|
|
8
|
-
import { T as b } from "../../../TableCellResizerPlugin-
|
|
8
|
+
import { T as b } from "../../../TableCellResizerPlugin-DFzNK-ve.js";
|
|
9
9
|
import { PasteHandlerPlugin as C } from "./PasteHandlerPlugin/PasteHandlerPlugin.js";
|
|
10
10
|
export {
|
|
11
11
|
t as BlockFormatPlugin,
|