@uva-glass/component-library 3.50.6 → 3.50.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-DBU6xTBY.js → Lexical.prod-BAE-wnll.js} +873 -863
- package/dist/Lexical.prod-BAE-wnll.js.map +1 -0
- package/dist/LexicalClipboard.prod-BS4qAkmJ.js +263 -0
- package/dist/LexicalClipboard.prod-BS4qAkmJ.js.map +1 -0
- package/dist/{LexicalLink.prod-DV9kT537.js → LexicalLink.prod-C6Or2Yo6.js} +97 -97
- package/dist/{LexicalLink.prod-DV9kT537.js.map → LexicalLink.prod-C6Or2Yo6.js.map} +1 -1
- package/dist/{LexicalList.prod-2UfLUgO1.js → LexicalList.prod-rTq41CO0.js} +24 -24
- package/dist/{LexicalList.prod-2UfLUgO1.js.map → LexicalList.prod-rTq41CO0.js.map} +1 -1
- package/dist/LexicalSelection.prod-fLzEGOT_.js +116 -0
- package/dist/LexicalSelection.prod-fLzEGOT_.js.map +1 -0
- package/dist/{LexicalTable.prod-CZ1mYUR-.js → LexicalTable.prod-BBI7yaOy.js} +118 -118
- package/dist/LexicalTable.prod-BBI7yaOy.js.map +1 -0
- package/dist/{LexicalUtils.prod-C3vvQk50.js → LexicalUtils.prod-D8DAKg7O.js} +36 -36
- package/dist/{LexicalUtils.prod-C3vvQk50.js.map → LexicalUtils.prod-D8DAKg7O.js.map} +1 -1
- package/dist/{TableCellResizerPlugin-CxFy7dbe.js → TableCellResizerPlugin-HPo4ZkHo.js} +39 -39
- package/dist/{TableCellResizerPlugin-CxFy7dbe.js.map → TableCellResizerPlugin-HPo4ZkHo.js.map} +1 -1
- package/dist/{TablePlugin-8TKXJMYE.js → TablePlugin-CeZO4BR1.js} +70 -70
- package/dist/{TablePlugin-8TKXJMYE.js.map → TablePlugin-CeZO4BR1.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 +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 +7 -7
- package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +2 -2
- package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +41 -41
- package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +14 -14
- 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 +12 -12
- package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +16 -16
- package/dist/components/RteEditor/Plugins/index.js +2 -2
- package/dist/components/RteEditor/RteEditor.js +219 -219
- 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 +15 -15
- package/dist/components/index.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +5 -5
- package/dist/Lexical.prod-DBU6xTBY.js.map +0 -1
- package/dist/LexicalClipboard.prod-CzGBnMdD.js +0 -272
- package/dist/LexicalClipboard.prod-CzGBnMdD.js.map +0 -1
- package/dist/LexicalSelection.prod-C1JYA_go.js +0 -114
- package/dist/LexicalSelection.prod-C1JYA_go.js.map +0 -1
- package/dist/LexicalTable.prod-CZ1mYUR-.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as f, jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { c as e } from "../../../../clsx-OuTLNxxd.js";
|
|
3
3
|
import { o as h } from "../../../../LexicalComposerContext.prod-DOyoZx0P.js";
|
|
4
|
-
import {
|
|
4
|
+
import { at as _, au as y, av as C, aw as k } from "../../../../Lexical.prod-BAE-wnll.js";
|
|
5
5
|
import { useState as m, useEffect as s } from "react";
|
|
6
6
|
import "../../../Accordion/Accordion.js";
|
|
7
7
|
import { Icon as n } from "../../../Icon/Icon.js";
|
|
@@ -18,7 +18,7 @@ import "../../../IconButton/IconButton.js";
|
|
|
18
18
|
import "../../../Input/Input.js";
|
|
19
19
|
import "../../../InputField/InputField.js";
|
|
20
20
|
import "react-router";
|
|
21
|
-
import "../../../../TablePlugin-
|
|
21
|
+
import "../../../../TablePlugin-CeZO4BR1.js";
|
|
22
22
|
import { s as r } from "../../../../RteEditor.module-CmYZ4MmA.js";
|
|
23
23
|
import { useTranslation as g } from "../../hooks/useTranslation.js";
|
|
24
24
|
import "../LinkPlugin/LinkContextMenu/LinkContextMenu.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { A as I } from "../../../../../TablePlugin-
|
|
3
|
+
import { A as I } from "../../../../../TablePlugin-CeZO4BR1.js";
|
|
4
4
|
import "../helpers.js";
|
|
5
5
|
import "../../../../Accordion/Accordion.js";
|
|
6
6
|
import "../../../../Icon/Icon.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { o as
|
|
3
|
-
import { c as
|
|
4
|
-
import { w as I, P as
|
|
1
|
+
import { jsx as h, jsxs as q } from "react/jsx-runtime";
|
|
2
|
+
import { o as J } from "../../../../LexicalComposerContext.prod-DOyoZx0P.js";
|
|
3
|
+
import { c as W } from "../../../../clsx-OuTLNxxd.js";
|
|
4
|
+
import { w as I, P as Y, J as G } from "../../../../LexicalLink.prod-C6Or2Yo6.js";
|
|
5
5
|
import { useRef as a, useState as Q, useEffect as m } from "react";
|
|
6
|
-
import { a0 as X, a as p,
|
|
7
|
-
import { A as rt } from "../../../../TablePlugin-
|
|
6
|
+
import { a0 as X, a as p, q as Z, as as $, h as w, D as tt, a1 as et, n as ot } from "../../../../Lexical.prod-BAE-wnll.js";
|
|
7
|
+
import { A as rt } from "../../../../TablePlugin-CeZO4BR1.js";
|
|
8
8
|
import { ensureHttps as nt } from "./helpers.js";
|
|
9
9
|
import { LinkContextMenu as it } from "./LinkContextMenu/LinkContextMenu.js";
|
|
10
10
|
import { useFlyout as st } from "../../hooks/useFlyout.js";
|
|
@@ -23,8 +23,8 @@ 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
|
|
27
|
-
import { s as
|
|
26
|
+
import { setScrollableContainers as B, removeScrollableContainers as lt } from "../../helpers.js";
|
|
27
|
+
import { s as k } from "../../../../RteEditor.module-CmYZ4MmA.js";
|
|
28
28
|
import { useTranslation as at } from "../../hooks/useTranslation.js";
|
|
29
29
|
import "react-dom";
|
|
30
30
|
import "../../../../index-yEhaxKq-.js";
|
|
@@ -35,7 +35,7 @@ import "../../../SelectListbox/SelectProvider.js";
|
|
|
35
35
|
import "../../../Sortable/components/SortableItem.js";
|
|
36
36
|
import "../../../../SortableProvider-BbwlEPIr.js";
|
|
37
37
|
import "../../../WeekSelector/components/WeekSelectorOptionContainer.js";
|
|
38
|
-
const ut = 200,
|
|
38
|
+
const ut = 200, z = (f) => {
|
|
39
39
|
let n = f;
|
|
40
40
|
for (; n; ) {
|
|
41
41
|
if (I(n))
|
|
@@ -43,7 +43,7 @@ const ut = 200, B = (f) => {
|
|
|
43
43
|
n = n.getParent();
|
|
44
44
|
}
|
|
45
45
|
return null;
|
|
46
|
-
},
|
|
46
|
+
}, A = (f) => {
|
|
47
47
|
let n = f;
|
|
48
48
|
for (; n; ) {
|
|
49
49
|
if (I(n))
|
|
@@ -55,42 +55,42 @@ const ut = 200, B = (f) => {
|
|
|
55
55
|
n = n.getParent();
|
|
56
56
|
}
|
|
57
57
|
return !1;
|
|
58
|
-
},
|
|
59
|
-
const n = at(), [c] =
|
|
58
|
+
}, Yt = ({ parentScrollPosition: f }) => {
|
|
59
|
+
const n = at(), [c] = J(), { flyout: O, showFlyout: P, hideFlyout: C, isVisible: u } = st(), d = a(void 0), N = a(!1), y = a(""), g = a(""), [L, U] = Q({ active: !1, url: "", linktext: "" }), _ = a(u), x = a(null), S = a(null), T = a(void 0), v = () => {
|
|
60
60
|
c.update(() => {
|
|
61
61
|
const o = p();
|
|
62
62
|
x.current = o;
|
|
63
63
|
});
|
|
64
|
-
},
|
|
64
|
+
}, D = () => {
|
|
65
65
|
c.update(() => {
|
|
66
66
|
x.current && et(x.current);
|
|
67
67
|
});
|
|
68
|
-
},
|
|
68
|
+
}, H = (o, t) => {
|
|
69
69
|
P({
|
|
70
70
|
position: t,
|
|
71
|
-
children: /* @__PURE__ */
|
|
71
|
+
children: /* @__PURE__ */ h(
|
|
72
72
|
it,
|
|
73
73
|
{
|
|
74
74
|
url: o,
|
|
75
75
|
onSave: (e) => K(e, ""),
|
|
76
|
-
onDelete: () =>
|
|
77
|
-
onClose:
|
|
76
|
+
onDelete: () => M(),
|
|
77
|
+
onClose: R,
|
|
78
78
|
ref: T
|
|
79
79
|
}
|
|
80
80
|
)
|
|
81
81
|
});
|
|
82
|
-
},
|
|
83
|
-
T.current?.clearForm(), C(),
|
|
82
|
+
}, R = () => {
|
|
83
|
+
T.current?.clearForm(), C(), D();
|
|
84
84
|
}, F = () => {
|
|
85
85
|
const o = S.current?.getBoundingClientRect();
|
|
86
86
|
!N.current && o && (v(), P({ position: { top: o.bottom, left: o.left }, ...V }), setTimeout(() => d.current?.setDefaults("", g.current), 0));
|
|
87
87
|
}, b = () => {
|
|
88
|
-
C(),
|
|
88
|
+
C(), D();
|
|
89
89
|
}, K = (o, t) => {
|
|
90
90
|
c.update(() => {
|
|
91
91
|
const e = p();
|
|
92
92
|
if (w(e)) {
|
|
93
|
-
const i = e.anchor.getNode(), s =
|
|
93
|
+
const i = e.anchor.getNode(), s = z(i);
|
|
94
94
|
if (t && t !== "") {
|
|
95
95
|
if (s) {
|
|
96
96
|
const l = ot(t);
|
|
@@ -105,10 +105,10 @@ const ut = 200, B = (f) => {
|
|
|
105
105
|
}
|
|
106
106
|
b();
|
|
107
107
|
});
|
|
108
|
-
},
|
|
109
|
-
c.dispatchCommand(
|
|
108
|
+
}, M = () => {
|
|
109
|
+
c.dispatchCommand(Y, null), R();
|
|
110
110
|
}, V = {
|
|
111
|
-
children: /* @__PURE__ */
|
|
111
|
+
children: /* @__PURE__ */ h(
|
|
112
112
|
rt,
|
|
113
113
|
{
|
|
114
114
|
isLink: L,
|
|
@@ -123,10 +123,10 @@ const ut = 200, B = (f) => {
|
|
|
123
123
|
}, [d, u]), m(() => {
|
|
124
124
|
const o = (r) => {
|
|
125
125
|
if (w(r) && r.isCollapsed()) {
|
|
126
|
-
const i =
|
|
126
|
+
const i = A(r.anchor.getNode());
|
|
127
127
|
if (i) {
|
|
128
128
|
const s = c.getElementByKey(r.anchor.getNode().getKey()), l = s ? { top: s.getBoundingClientRect().bottom, left: s.getBoundingClientRect().left } : { top: 0, left: 0 };
|
|
129
|
-
return
|
|
129
|
+
return H(i.url, l), !0;
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
132
|
return !1;
|
|
@@ -156,7 +156,7 @@ const ut = 200, B = (f) => {
|
|
|
156
156
|
const r = p();
|
|
157
157
|
if (v(), !w(r))
|
|
158
158
|
return !1;
|
|
159
|
-
const i =
|
|
159
|
+
const i = A(r.anchor.getNode()), s = (E = "", j = "") => {
|
|
160
160
|
F(), setTimeout(() => d.current?.setDefaults(E, j), 0);
|
|
161
161
|
};
|
|
162
162
|
if (i)
|
|
@@ -168,11 +168,11 @@ const ut = 200, B = (f) => {
|
|
|
168
168
|
},
|
|
169
169
|
tt
|
|
170
170
|
), t = c.registerUpdateListener(({ editorState: e }) => {
|
|
171
|
-
|
|
171
|
+
U(
|
|
172
172
|
e.read(() => {
|
|
173
173
|
const r = p();
|
|
174
174
|
if (v(), w(r)) {
|
|
175
|
-
const i = r.anchor.getNode(), s =
|
|
175
|
+
const i = r.anchor.getNode(), s = z(i);
|
|
176
176
|
if (s)
|
|
177
177
|
return {
|
|
178
178
|
active: !0,
|
|
@@ -198,37 +198,37 @@ const ut = 200, B = (f) => {
|
|
|
198
198
|
}, [f]), m(() => {
|
|
199
199
|
L.active || C();
|
|
200
200
|
}, [L]), m(() => {
|
|
201
|
-
const o = (e) => (
|
|
201
|
+
const o = (e) => (B(t), e.key === "Escape" && _.current && (e.preventDefault(), e.stopPropagation(), b()), !0);
|
|
202
202
|
window.addEventListener("keydown", o, { capture: !0 });
|
|
203
203
|
const t = () => {
|
|
204
204
|
C();
|
|
205
205
|
};
|
|
206
|
-
return
|
|
206
|
+
return B(t), window.addEventListener("scroll", t), window.addEventListener("resize", t), () => {
|
|
207
207
|
window.removeEventListener("keydown", o), window.removeEventListener("scroll", t), window.removeEventListener("resize", t), lt(t);
|
|
208
208
|
};
|
|
209
|
-
}, []), /* @__PURE__ */
|
|
210
|
-
/* @__PURE__ */
|
|
209
|
+
}, []), /* @__PURE__ */ h("div", { className: k["editor__toolbar-button-group"], children: /* @__PURE__ */ q("div", { className: k["editor__toolbar-button-flyoutwrapper"], children: [
|
|
210
|
+
/* @__PURE__ */ h(
|
|
211
211
|
"button",
|
|
212
212
|
{
|
|
213
213
|
onClick: F,
|
|
214
214
|
title: n.links.linkTooltip,
|
|
215
|
-
className:
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
L.active &&
|
|
215
|
+
className: W(
|
|
216
|
+
k["editor__toolbar-button"],
|
|
217
|
+
k["editor__toolbar-button--link"],
|
|
218
|
+
L.active && k["editor__toolbar-button--active"]
|
|
219
219
|
),
|
|
220
220
|
"aria-label": n.aria.labels.link,
|
|
221
221
|
"aria-keyshortcuts": n.aria.keyshortcuts.link,
|
|
222
222
|
type: "button",
|
|
223
223
|
ref: S,
|
|
224
|
-
children: /* @__PURE__ */
|
|
224
|
+
children: /* @__PURE__ */ h(ct, { name: "Link", size: 20 })
|
|
225
225
|
}
|
|
226
226
|
),
|
|
227
|
-
|
|
227
|
+
O
|
|
228
228
|
] }) });
|
|
229
229
|
};
|
|
230
230
|
export {
|
|
231
|
-
|
|
232
|
-
|
|
231
|
+
Yt as LinkPlugin,
|
|
232
|
+
A as getLinkNodeTag
|
|
233
233
|
};
|
|
234
234
|
//# sourceMappingURL=LinkPlugin.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { H as w } from "../../../../LexicalLink.prod-
|
|
1
|
+
import { H as w } from "../../../../LexicalLink.prod-C6Or2Yo6.js";
|
|
2
2
|
const a = /^(http|https):\/\//, s = /(https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|www\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9]+\.[^\s]{2,}|www\.[a-zA-Z0-9]+\.[^\s]{2,})/, A = /(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))/, z = /^(https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|www\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9]+\.[^\s]{2,}|www\.[a-zA-Z0-9]+\.[^\s]{2,})?$/, n = (t) => t === "https://" || s.test(t), o = (t) => t === "https://" || z.test(t), r = [
|
|
3
3
|
w(s, (t) => a.test(t) ? t : `//${t}`),
|
|
4
4
|
w(A, (t) => `mailto:${t}`)
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
-
import { o as
|
|
3
|
-
import { k as f, x as C, S as N, o as
|
|
2
|
+
import { o as P } from "../../../../LexicalComposerContext.prod-DOyoZx0P.js";
|
|
3
|
+
import { k as f, x as C, S as N, o as x, d as b, h as I } from "../../../../LexicalList.prod-rTq41CO0.js";
|
|
4
4
|
import { useState as p, useEffect as k } from "react";
|
|
5
5
|
import { c as K } from "../../../../clsx-OuTLNxxd.js";
|
|
6
|
-
import {
|
|
7
|
-
import { Icon as
|
|
6
|
+
import { as as y, D as O, X as U, a as v, h as D, F as w } from "../../../../Lexical.prod-BAE-wnll.js";
|
|
7
|
+
import { Icon as B } from "../../../Icon/Icon.js";
|
|
8
8
|
import { s as l } from "../../../../RteEditor.module-CmYZ4MmA.js";
|
|
9
|
-
import { useTranslation as
|
|
10
|
-
const
|
|
9
|
+
import { useTranslation as E } from "../../hooks/useTranslation.js";
|
|
10
|
+
const F = {
|
|
11
11
|
bullet: "BulletList",
|
|
12
12
|
number: "NumberedList"
|
|
13
|
-
},
|
|
14
|
-
const u =
|
|
13
|
+
}, $ = ["bullet", "number"], M = () => {
|
|
14
|
+
const u = E(), [e] = P(), [h, a] = p(null), [c, g] = p(!1), [m, L] = p(!1), S = (t) => {
|
|
15
15
|
t === "number" && h !== "number" ? (e.dispatchCommand(C, void 0), a("number")) : t === "bullet" && h !== "bullet" ? (e.dispatchCommand(N, void 0), a("bullet")) : (e.dispatchCommand(f, void 0), a(null));
|
|
16
16
|
};
|
|
17
17
|
return k(() => {
|
|
@@ -28,10 +28,10 @@ const E = {
|
|
|
28
28
|
U,
|
|
29
29
|
(o) => (o.preventDefault(), e.update(() => {
|
|
30
30
|
const n = v();
|
|
31
|
-
if (!
|
|
31
|
+
if (!D(n))
|
|
32
32
|
return;
|
|
33
33
|
const r = n.anchor.getNode(), i = r.getParent();
|
|
34
|
-
if (!
|
|
34
|
+
if (!x(i))
|
|
35
35
|
return;
|
|
36
36
|
const s = i.getParent();
|
|
37
37
|
if (b(s)) {
|
|
@@ -44,7 +44,7 @@ const E = {
|
|
|
44
44
|
const t = e.registerUpdateListener(({ editorState: o }) => {
|
|
45
45
|
o.read(() => {
|
|
46
46
|
const n = v();
|
|
47
|
-
if (
|
|
47
|
+
if (D(n)) {
|
|
48
48
|
let r = n.anchor.getNode();
|
|
49
49
|
for (; r !== null; ) {
|
|
50
50
|
if (b(r)) {
|
|
@@ -64,7 +64,7 @@ const E = {
|
|
|
64
64
|
return () => {
|
|
65
65
|
t();
|
|
66
66
|
};
|
|
67
|
-
}, [e]), /* @__PURE__ */ d("div", { className: l["editor__toolbar-button-group"], children:
|
|
67
|
+
}, [e]), /* @__PURE__ */ d("div", { className: l["editor__toolbar-button-group"], children: $.map((t) => /* @__PURE__ */ d(
|
|
68
68
|
"button",
|
|
69
69
|
{
|
|
70
70
|
onClick: () => S(t),
|
|
@@ -78,12 +78,12 @@ const E = {
|
|
|
78
78
|
"aria-label": u.aria.labels[t],
|
|
79
79
|
"aria-keyshortcuts": u.aria.keyshortcuts[t],
|
|
80
80
|
type: "button",
|
|
81
|
-
children: /* @__PURE__ */ d(
|
|
81
|
+
children: /* @__PURE__ */ d(B, { name: F[t], size: 24 })
|
|
82
82
|
},
|
|
83
83
|
t
|
|
84
84
|
)) });
|
|
85
85
|
};
|
|
86
86
|
export {
|
|
87
|
-
|
|
87
|
+
M as ListPlugin
|
|
88
88
|
};
|
|
89
89
|
//# sourceMappingURL=ListPlugin.js.map
|
|
@@ -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 { ae as f, N as p, a as u } from "../../../../Lexical.prod-
|
|
4
|
-
import { L as i } from "../../../../LexicalUtils.prod-
|
|
5
|
-
import {
|
|
3
|
+
import { ae as f, N as p, a as u } from "../../../../Lexical.prod-BAE-wnll.js";
|
|
4
|
+
import { L as i } from "../../../../LexicalUtils.prod-D8DAKg7O.js";
|
|
5
|
+
import { R as d } from "../../../../LexicalClipboard.prod-BS4qAkmJ.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 L = () => {
|
|
|
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-HPo4ZkHo.js";
|
|
5
|
+
import "../../../../LexicalTable.prod-BBI7yaOy.js";
|
|
6
|
+
import "../../../../LexicalUtils.prod-D8DAKg7O.js";
|
|
7
|
+
import "../../../../Lexical.prod-BAE-wnll.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 G } from "../../../../TablePlugin-
|
|
3
|
+
import { b as G } from "../../../../TablePlugin-CeZO4BR1.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-BBI7yaOy.js";
|
|
5
|
+
import "../../../../Lexical.prod-BAE-wnll.js";
|
|
6
|
+
import "../../../../LexicalUtils.prod-D8DAKg7O.js";
|
|
7
7
|
import "react";
|
|
8
|
-
import { T as L } from "../../../../TablePlugin-
|
|
8
|
+
import { T as L } from "../../../../TablePlugin-CeZO4BR1.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 { Z as T, A as i, I as w, s as p, J as u, U as b, e as E, D, $ as g, V as I, B as R, O as x } from "../../../../LexicalTable.prod-
|
|
2
|
-
import {
|
|
1
|
+
import { Z as T, A as i, I as w, s as p, J as u, U as b, e as E, D, $ as g, V as I, B as R, O as x } from "../../../../LexicalTable.prod-BBI7yaOy.js";
|
|
2
|
+
import { A as S } from "../../../../Lexical.prod-BAE-wnll.js";
|
|
3
3
|
import { TableWrapperNode as N } from "../../nodes/TableWrapperNode/TableWrapperNode.js";
|
|
4
|
-
const v = 32, a = 48, W = 1,
|
|
4
|
+
const v = 32, a = 48, W = 1, A = 200, F = 320, B = (t, e) => {
|
|
5
5
|
const n = R(0, 0, !1);
|
|
6
6
|
for (let o = 0; o < t; o++) {
|
|
7
7
|
const r = g();
|
|
@@ -24,14 +24,14 @@ const v = 32, a = 48, W = 1, F = 200, B = 320, M = (t, e) => {
|
|
|
24
24
|
throw new Error("Selected node is not a TableCellNode");
|
|
25
25
|
const n = e.getParent();
|
|
26
26
|
n instanceof N ? n.remove() : e.remove();
|
|
27
|
-
},
|
|
27
|
+
}, H = (t, e) => {
|
|
28
28
|
if (!i(t))
|
|
29
29
|
throw new Error("Selected node is not a TableCellNode");
|
|
30
30
|
const n = g();
|
|
31
31
|
I(e === "insertRowBelow");
|
|
32
32
|
const o = n.getFirstDescendant();
|
|
33
33
|
o && o.select();
|
|
34
|
-
},
|
|
34
|
+
}, U = (t, e) => {
|
|
35
35
|
if (!i(t))
|
|
36
36
|
throw new Error("Selected node is not a TableCellNode");
|
|
37
37
|
const n = w(t);
|
|
@@ -48,7 +48,7 @@ const v = 32, a = 48, W = 1, F = 200, B = 320, M = (t, e) => {
|
|
|
48
48
|
n.setColWidths(C), o = e === "insertColumnLeft" ? o : o + 1;
|
|
49
49
|
const f = r[s].getChildren()[o];
|
|
50
50
|
f && f.select();
|
|
51
|
-
},
|
|
51
|
+
}, M = (t) => {
|
|
52
52
|
if (!i(t))
|
|
53
53
|
throw new Error("Selected node is not a TableCellNode");
|
|
54
54
|
(w(t).getFirstChild()?.getChildrenSize() || 0) === 1 ? O(t) : p();
|
|
@@ -76,17 +76,17 @@ const v = 32, a = 48, W = 1, F = 200, B = 320, M = (t, e) => {
|
|
|
76
76
|
export {
|
|
77
77
|
W as BORDER_WIDTHS,
|
|
78
78
|
a as DEFAULT_COL_WIDTH,
|
|
79
|
-
|
|
79
|
+
F as DEFAULT_EDITOR_WIDTH,
|
|
80
80
|
v as MIN_COLUMN_WIDTH,
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
81
|
+
A as PREVENT_OPEN_DELAY,
|
|
82
|
+
B as createTable,
|
|
83
|
+
M as deleteColumn,
|
|
84
84
|
P as deleteRow,
|
|
85
85
|
O as deleteTable,
|
|
86
86
|
V as getEditorContentWidth,
|
|
87
87
|
z as getEditorParrentCellWidth,
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
U as insertColumn,
|
|
89
|
+
H as insertRow,
|
|
90
90
|
J as tableHasContent
|
|
91
91
|
};
|
|
92
92
|
//# sourceMappingURL=helpers.js.map
|
|
@@ -1,25 +1,25 @@
|
|
|
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 { a as
|
|
3
|
+
import { a as f, h, a1 as C } from "../../../../Lexical.prod-BAE-wnll.js";
|
|
4
4
|
import { useState as L, useRef as E, useCallback as T, useEffect as c } from "react";
|
|
5
|
-
import { P as g } from "../../../../LexicalTable.prod-
|
|
6
|
-
import { BlockFormatPlugin as
|
|
7
|
-
import { ListPlugin as
|
|
5
|
+
import { P as g } from "../../../../LexicalTable.prod-BBI7yaOy.js";
|
|
6
|
+
import { BlockFormatPlugin as N } from "../BlockFormatPlugin/BlockFormatPlugin.js";
|
|
7
|
+
import { ListPlugin as S } from "../ListPlugin/ListPlugin.js";
|
|
8
8
|
import { LinkPlugin as k } from "../LinkPlugin/LinkPlugin.js";
|
|
9
|
-
import { HistoryPlugin as
|
|
10
|
-
import { T as
|
|
11
|
-
import { TableCellContextMenu as
|
|
9
|
+
import { HistoryPlugin as x } from "../HistoryPlugin/HistoryPlugin.js";
|
|
10
|
+
import { T as B } from "../../../../TablePlugin-CeZO4BR1.js";
|
|
11
|
+
import { TableCellContextMenu as A } from "../TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
|
|
12
12
|
import "react-dom";
|
|
13
13
|
import "../../../../index-yEhaxKq-.js";
|
|
14
|
-
import { s as
|
|
14
|
+
import { s as z } from "../../../../RteEditor.module-CmYZ4MmA.js";
|
|
15
15
|
import { setScrollableContainers as b, removeScrollableContainers as K } from "../../helpers.js";
|
|
16
16
|
const W = ({ editorScrollPosition: m }) => {
|
|
17
17
|
const [t] = y(), [r, i] = L(null), d = E(null), u = T(() => {
|
|
18
|
-
const e =
|
|
18
|
+
const e = f();
|
|
19
19
|
if (h(e)) {
|
|
20
20
|
const s = e.anchor.getNode(), l = g(s);
|
|
21
21
|
if (l) {
|
|
22
|
-
const
|
|
22
|
+
const p = t.getElementByKey(l.getKey()), a = p ? p.getBoundingClientRect() : { right: 0, bottom: 0, height: 0 };
|
|
23
23
|
i({ xPos: a.right, yPos: a.bottom, height: a.height });
|
|
24
24
|
} else
|
|
25
25
|
i(null);
|
|
@@ -28,7 +28,7 @@ const W = ({ editorScrollPosition: m }) => {
|
|
|
28
28
|
d.current?.mutateTable(e);
|
|
29
29
|
}, o = () => {
|
|
30
30
|
t.update(() => {
|
|
31
|
-
const e =
|
|
31
|
+
const e = f();
|
|
32
32
|
if (h(e)) {
|
|
33
33
|
const s = e.anchor.getNode();
|
|
34
34
|
g(s) && (C(null), i(null));
|
|
@@ -50,12 +50,12 @@ const W = ({ editorScrollPosition: m }) => {
|
|
|
50
50
|
return window.addEventListener("keydown", e, { capture: !0 }), () => {
|
|
51
51
|
window.removeEventListener("keydown", e);
|
|
52
52
|
};
|
|
53
|
-
}, []), /* @__PURE__ */ P("div", { className:
|
|
54
|
-
/* @__PURE__ */ n(x, {}),
|
|
53
|
+
}, []), /* @__PURE__ */ P("div", { className: z.editor__toolbar, children: [
|
|
55
54
|
/* @__PURE__ */ n(N, {}),
|
|
56
|
-
/* @__PURE__ */ n(S, {
|
|
55
|
+
/* @__PURE__ */ n(S, {}),
|
|
56
|
+
/* @__PURE__ */ n(B, { isActive: !!r, ref: d }),
|
|
57
57
|
r && /* @__PURE__ */ n(
|
|
58
|
-
|
|
58
|
+
A,
|
|
59
59
|
{
|
|
60
60
|
position: r,
|
|
61
61
|
parentScrollPosition: m,
|
|
@@ -63,7 +63,7 @@ const W = ({ editorScrollPosition: m }) => {
|
|
|
63
63
|
}
|
|
64
64
|
),
|
|
65
65
|
/* @__PURE__ */ n(k, { parentScrollPosition: m }),
|
|
66
|
-
/* @__PURE__ */ n(
|
|
66
|
+
/* @__PURE__ */ n(x, {})
|
|
67
67
|
] });
|
|
68
68
|
};
|
|
69
69
|
export {
|
|
@@ -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-CeZO4BR1.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-HPo4ZkHo.js";
|
|
9
9
|
import { PasteHandlerPlugin as C } from "./PasteHandlerPlugin/PasteHandlerPlugin.js";
|
|
10
10
|
export {
|
|
11
11
|
t as BlockFormatPlugin,
|