@uva-glass/component-library 3.26.4 → 3.27.1
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-m3GJsAAT.js → Lexical.prod-UwAbgYpF.js} +1043 -1036
- package/dist/Lexical.prod-UwAbgYpF.js.map +1 -0
- package/dist/{LexicalClipboard.prod-HyvHKdDm.js → LexicalClipboard.prod-DHIGjydG.js} +25 -25
- package/dist/{LexicalClipboard.prod-HyvHKdDm.js.map → LexicalClipboard.prod-DHIGjydG.js.map} +1 -1
- package/dist/{LexicalLink.prod-D0qasaVP.js → LexicalLink.prod-Bsa9J7L-.js} +13 -13
- package/dist/{LexicalLink.prod-D0qasaVP.js.map → LexicalLink.prod-Bsa9J7L-.js.map} +1 -1
- package/dist/{LexicalList.prod-CQz14k_F.js → LexicalList.prod-jxGuZd4b.js} +26 -26
- package/dist/{LexicalList.prod-CQz14k_F.js.map → LexicalList.prod-jxGuZd4b.js.map} +1 -1
- package/dist/LexicalSelection.prod-xk5MiZnZ.js +101 -0
- package/dist/LexicalSelection.prod-xk5MiZnZ.js.map +1 -0
- package/dist/{LexicalTable.prod-BHKhA4PF.js → LexicalTable.prod-BSjs04iE.js} +164 -164
- package/dist/{LexicalTable.prod-BHKhA4PF.js.map → LexicalTable.prod-BSjs04iE.js.map} +1 -1
- package/dist/{LexicalUtils.prod-Vqqof-U-.js → LexicalUtils.prod-cQutjKA3.js} +43 -43
- package/dist/{LexicalUtils.prod-Vqqof-U-.js.map → LexicalUtils.prod-cQutjKA3.js.map} +1 -1
- package/dist/{TablePlugin-CykqKW6X.js → TablePlugin-NmJsn2fm.js} +4 -4
- package/dist/{TablePlugin-CykqKW6X.js.map → TablePlugin-NmJsn2fm.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 +1 -1
- 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 +30 -30
- package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +12 -12
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +3 -3
- 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 +2 -2
- package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +7 -7
- package/dist/components/RteEditor/Plugins/index.js +1 -1
- package/dist/components/RteEditor/RteEditor.js +74 -74
- package/dist/components/RteEditor/helpers.js +4 -4
- package/dist/components/TextArea/TextArea.js +15 -15
- package/dist/components/TextArea/TextArea.js.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/{helpers-5AryUrYu.js → helpers-DZIm3MiJ.js} +4 -4
- package/dist/{helpers-5AryUrYu.js.map → helpers-DZIm3MiJ.js.map} +1 -1
- package/dist/index.js +1 -1
- package/package.json +6 -6
- package/dist/Lexical.prod-m3GJsAAT.js.map +0 -1
- package/dist/LexicalSelection.prod-Bh25dAig.js +0 -101
- package/dist/LexicalSelection.prod-Bh25dAig.js.map +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsx as k, jsxs as
|
|
1
|
+
import { jsx as k, jsxs as X } from "react/jsx-runtime";
|
|
2
2
|
import { o as W } from "../../../../LexicalComposerContext.prod-DLlRM5wP.js";
|
|
3
|
-
import { c as
|
|
4
|
-
import { p as U, k as G, v as J } from "../../../../LexicalLink.prod-
|
|
3
|
+
import { c as Y } from "../../../../clsx-OuTLNxxd.js";
|
|
4
|
+
import { p as U, k as G, v as J } from "../../../../LexicalLink.prod-Bsa9J7L-.js";
|
|
5
5
|
import { useRef as a, useState as Q, useEffect as m } from "react";
|
|
6
|
-
import {
|
|
7
|
-
import { A as nt } from "../../../../TablePlugin-
|
|
8
|
-
import { e as it } from "../../../../helpers-
|
|
6
|
+
import { _ as Z, N as f, q as $, aq as tt, c as N, L as et, m as ot, X as rt } from "../../../../Lexical.prod-UwAbgYpF.js";
|
|
7
|
+
import { A as nt } from "../../../../TablePlugin-NmJsn2fm.js";
|
|
8
|
+
import { e as it } from "../../../../helpers-DZIm3MiJ.js";
|
|
9
9
|
import { LinkContextMenu as st } from "./LinkContextMenu/LinkContextMenu.js";
|
|
10
10
|
import { useFlyout as ct } from "../../hooks/useFlyout.js";
|
|
11
11
|
import { Icon as lt } from "../../../Icon/Icon.js";
|
|
@@ -51,8 +51,8 @@ const mt = 200, I = (p) => {
|
|
|
51
51
|
n = n.getParent();
|
|
52
52
|
}
|
|
53
53
|
return !1;
|
|
54
|
-
},
|
|
55
|
-
const n = ut(), [c] = W(), { flyout: A, showFlyout:
|
|
54
|
+
}, qt = ({ parentScrollPosition: p }) => {
|
|
55
|
+
const n = ut(), [c] = W(), { flyout: A, showFlyout: E, hideFlyout: C, isVisible: u } = ct(), d = a(void 0), w = a(!1), L = a(""), g = a(""), [v, H] = Q({ active: !1, url: "", linktext: "" }), P = a(u), x = a(null), S = a(null), T = a(void 0), y = () => {
|
|
56
56
|
c.update(() => {
|
|
57
57
|
const e = f();
|
|
58
58
|
x.current = e;
|
|
@@ -62,7 +62,7 @@ const mt = 200, I = (p) => {
|
|
|
62
62
|
x.current && ot(x.current);
|
|
63
63
|
});
|
|
64
64
|
}, M = (e, t) => {
|
|
65
|
-
|
|
65
|
+
E({
|
|
66
66
|
position: t,
|
|
67
67
|
children: /* @__PURE__ */ k(
|
|
68
68
|
st,
|
|
@@ -77,16 +77,16 @@ const mt = 200, I = (p) => {
|
|
|
77
77
|
});
|
|
78
78
|
}, D = () => {
|
|
79
79
|
var e;
|
|
80
|
-
(e = T.current) == null || e.clearForm(),
|
|
80
|
+
(e = T.current) == null || e.clearForm(), C(), R();
|
|
81
81
|
}, F = () => {
|
|
82
82
|
var t;
|
|
83
83
|
const e = (t = S.current) == null ? void 0 : t.getBoundingClientRect();
|
|
84
|
-
!w.current && e && (
|
|
84
|
+
!w.current && e && (y(), E({ position: { top: e.bottom, left: e.left }, ...j }), setTimeout(() => {
|
|
85
85
|
var o;
|
|
86
86
|
return (o = d.current) == null ? void 0 : o.setDefaults("", g.current);
|
|
87
87
|
}, 0));
|
|
88
88
|
}, b = () => {
|
|
89
|
-
|
|
89
|
+
C(), R();
|
|
90
90
|
}, K = (e, t) => {
|
|
91
91
|
c.update(() => {
|
|
92
92
|
const o = f();
|
|
@@ -97,9 +97,9 @@ const mt = 200, I = (p) => {
|
|
|
97
97
|
const l = rt(t);
|
|
98
98
|
s.replace(l), l.select();
|
|
99
99
|
}
|
|
100
|
-
if (t !==
|
|
101
|
-
const { anchor: l, focus:
|
|
102
|
-
o.insertText(t), l.offset -= t.length,
|
|
100
|
+
if (t !== L.current && L.current === "") {
|
|
101
|
+
const { anchor: l, focus: _ } = o;
|
|
102
|
+
o.insertText(t), l.offset -= t.length, _.offset = l.offset + t.length;
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
J(it(e), { target: "_blank" });
|
|
@@ -112,7 +112,7 @@ const mt = 200, I = (p) => {
|
|
|
112
112
|
children: /* @__PURE__ */ k(
|
|
113
113
|
nt,
|
|
114
114
|
{
|
|
115
|
-
isLink:
|
|
115
|
+
isLink: v,
|
|
116
116
|
onCloseHandler: b,
|
|
117
117
|
onSaveHandler: (e, t) => K(e, t),
|
|
118
118
|
ref: d
|
|
@@ -121,7 +121,7 @@ const mt = 200, I = (p) => {
|
|
|
121
121
|
};
|
|
122
122
|
return m(() => {
|
|
123
123
|
var e, t;
|
|
124
|
-
u ? (w.current = !0, (t = d.current) == null || t.focusFirstField()) : ((e = d.current) == null || e.clearForm(),
|
|
124
|
+
u ? (w.current = !0, (t = d.current) == null || t.focusFirstField()) : ((e = d.current) == null || e.clearForm(), L.current = g.current = "", setTimeout(() => w.current = !1, mt));
|
|
125
125
|
}, [d, u]), m(() => {
|
|
126
126
|
const e = (r) => {
|
|
127
127
|
if (N(r) && r.isCollapsed()) {
|
|
@@ -143,7 +143,7 @@ const mt = 200, I = (p) => {
|
|
|
143
143
|
$,
|
|
144
144
|
(r) => {
|
|
145
145
|
const i = f();
|
|
146
|
-
return
|
|
146
|
+
return y(), r.preventDefault(), r.stopPropagation(), r.stopImmediatePropagation(), e(i), !1;
|
|
147
147
|
},
|
|
148
148
|
0
|
|
149
149
|
);
|
|
@@ -156,16 +156,16 @@ const mt = 200, I = (p) => {
|
|
|
156
156
|
(o) => {
|
|
157
157
|
if (o.ctrlKey && o.shiftKey && o.key === "U") {
|
|
158
158
|
const r = f();
|
|
159
|
-
if (
|
|
159
|
+
if (y(), !N(r))
|
|
160
160
|
return !1;
|
|
161
|
-
const i = O(r.anchor.getNode()), s = (
|
|
161
|
+
const i = O(r.anchor.getNode()), s = (_ = "", q = "") => {
|
|
162
162
|
F(), setTimeout(() => {
|
|
163
163
|
var B;
|
|
164
|
-
return (B = d.current) == null ? void 0 : B.setDefaults(
|
|
164
|
+
return (B = d.current) == null ? void 0 : B.setDefaults(_, q);
|
|
165
165
|
}, 0);
|
|
166
166
|
};
|
|
167
167
|
if (i)
|
|
168
|
-
return o.preventDefault(), o.stopPropagation(), o.stopImmediatePropagation(),
|
|
168
|
+
return o.preventDefault(), o.stopPropagation(), o.stopImmediatePropagation(), L.current = i.linktext, s(i.url, i.linktext), !0;
|
|
169
169
|
const l = r.getTextContent();
|
|
170
170
|
return l !== "" ? (g.current = l, s("", g.current), !0) : (F(), !0);
|
|
171
171
|
}
|
|
@@ -176,7 +176,7 @@ const mt = 200, I = (p) => {
|
|
|
176
176
|
H(
|
|
177
177
|
o.read(() => {
|
|
178
178
|
const r = f();
|
|
179
|
-
if (
|
|
179
|
+
if (y(), N(r)) {
|
|
180
180
|
const i = r.anchor.getNode(), s = I(i);
|
|
181
181
|
if (s)
|
|
182
182
|
return {
|
|
@@ -202,26 +202,26 @@ const mt = 200, I = (p) => {
|
|
|
202
202
|
}, [u]), m(() => {
|
|
203
203
|
u && b();
|
|
204
204
|
}, [p]), m(() => {
|
|
205
|
-
|
|
206
|
-
}, [
|
|
205
|
+
v.active || C();
|
|
206
|
+
}, [v]), m(() => {
|
|
207
207
|
const e = (o) => (z(t), o.key === "Escape" && P.current && (o.preventDefault(), o.stopPropagation(), b()), !0);
|
|
208
208
|
window.addEventListener("keydown", e, { capture: !0 });
|
|
209
209
|
const t = () => {
|
|
210
|
-
|
|
210
|
+
C();
|
|
211
211
|
};
|
|
212
212
|
return z(t), window.addEventListener("scroll", t), window.addEventListener("resize", t), () => {
|
|
213
213
|
window.removeEventListener("keydown", e), window.removeEventListener("scroll", t), window.removeEventListener("resize", t), at(t);
|
|
214
214
|
};
|
|
215
|
-
}, []), /* @__PURE__ */ k("div", { className: h["editor__toolbar-button-group"], children: /* @__PURE__ */
|
|
215
|
+
}, []), /* @__PURE__ */ k("div", { className: h["editor__toolbar-button-group"], children: /* @__PURE__ */ X("div", { className: h["editor__toolbar-button-flyoutwrapper"], children: [
|
|
216
216
|
/* @__PURE__ */ k(
|
|
217
217
|
"button",
|
|
218
218
|
{
|
|
219
219
|
onClick: F,
|
|
220
220
|
title: n.links.linkTooltip,
|
|
221
|
-
className:
|
|
221
|
+
className: Y(
|
|
222
222
|
h["editor__toolbar-button"],
|
|
223
223
|
h["editor__toolbar-button--link"],
|
|
224
|
-
|
|
224
|
+
v.active && h["editor__toolbar-button--active"]
|
|
225
225
|
),
|
|
226
226
|
"aria-label": n.aria.labels.link,
|
|
227
227
|
"aria-keyshortcuts": n.aria.keyshortcuts.link,
|
|
@@ -234,7 +234,7 @@ const mt = 200, I = (p) => {
|
|
|
234
234
|
] }) });
|
|
235
235
|
};
|
|
236
236
|
export {
|
|
237
|
-
|
|
237
|
+
qt as LinkPlugin,
|
|
238
238
|
O as getLinkNodeTag
|
|
239
239
|
};
|
|
240
240
|
//# sourceMappingURL=LinkPlugin.js.map
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { jsx as d } from "react/jsx-runtime";
|
|
2
2
|
import { o as D } from "../../../../LexicalComposerContext.prod-DLlRM5wP.js";
|
|
3
|
-
import { m as C, p as P, f as v, Z as K, o as f, s as y } from "../../../../LexicalList.prod-
|
|
4
|
-
import { _ as x } from "../../../../LexicalSelection.prod-
|
|
3
|
+
import { m as C, p as P, f as v, Z as K, o as f, s as y } from "../../../../LexicalList.prod-jxGuZd4b.js";
|
|
4
|
+
import { _ as x } from "../../../../LexicalSelection.prod-xk5MiZnZ.js";
|
|
5
5
|
import { useState as p, useEffect as I } from "react";
|
|
6
6
|
import { c as O } from "../../../../clsx-OuTLNxxd.js";
|
|
7
|
-
import {
|
|
8
|
-
import { Icon as
|
|
7
|
+
import { aq as U, L as w, Y as B, N as b, c as h, I as E, P as Y } from "../../../../Lexical.prod-UwAbgYpF.js";
|
|
8
|
+
import { Icon as $ } from "../../../Icon/Icon.js";
|
|
9
9
|
import { s as l } from "../../../../RteEditor.module-B_3uFnFu.js";
|
|
10
|
-
import { useTranslation as
|
|
11
|
-
const
|
|
10
|
+
import { useTranslation as j } from "../../hooks/useTranslation.js";
|
|
11
|
+
const q = {
|
|
12
12
|
bullet: "BulletList",
|
|
13
13
|
number: "NumberedList"
|
|
14
|
-
},
|
|
15
|
-
const u =
|
|
14
|
+
}, z = ["bullet", "number"], V = () => {
|
|
15
|
+
const u = j(), [e] = D(), [g, s] = p("paragraph"), [c, L] = p(!1), [m, _] = p(!1), k = () => {
|
|
16
16
|
e.update(() => {
|
|
17
17
|
const t = b();
|
|
18
|
-
h(t) && x(t, () =>
|
|
18
|
+
h(t) && x(t, () => Y());
|
|
19
19
|
});
|
|
20
20
|
}, S = (t) => {
|
|
21
21
|
t === "number" && g !== "number" ? (e.dispatchCommand(P, void 0), s("number")) : t === "bullet" && g !== "bullet" ? (e.dispatchCommand(v, void 0), s("bullet")) : (k(), s("paragraph"));
|
|
@@ -70,7 +70,7 @@ const V = {
|
|
|
70
70
|
return () => {
|
|
71
71
|
t();
|
|
72
72
|
};
|
|
73
|
-
}, [e]), /* @__PURE__ */ d("div", { className: l["editor__toolbar-button-group"], children:
|
|
73
|
+
}, [e]), /* @__PURE__ */ d("div", { className: l["editor__toolbar-button-group"], children: z.map((t) => /* @__PURE__ */ d(
|
|
74
74
|
"button",
|
|
75
75
|
{
|
|
76
76
|
onClick: () => S(t),
|
|
@@ -84,12 +84,12 @@ const V = {
|
|
|
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($, { name: q[t], size: 24 })
|
|
88
88
|
},
|
|
89
89
|
t
|
|
90
90
|
)) });
|
|
91
91
|
};
|
|
92
92
|
export {
|
|
93
|
-
|
|
93
|
+
V as ListPlugin
|
|
94
94
|
};
|
|
95
95
|
//# sourceMappingURL=ListPlugin.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { o as m } from "../../../../LexicalComposerContext.prod-DLlRM5wP.js";
|
|
2
2
|
import { useEffect as c } from "react";
|
|
3
|
-
import { ae as f,
|
|
4
|
-
import { L as i } from "../../../../LexicalUtils.prod-
|
|
5
|
-
import { D as d } from "../../../../LexicalClipboard.prod-
|
|
3
|
+
import { ae as f, G as p, N as u } from "../../../../Lexical.prod-UwAbgYpF.js";
|
|
4
|
+
import { L as i } from "../../../../LexicalUtils.prod-cQutjKA3.js";
|
|
5
|
+
import { D as d } from "../../../../LexicalClipboard.prod-DHIGjydG.js";
|
|
6
6
|
import { d as D } from "../../../../index-DllfJcv4.js";
|
|
7
7
|
const N = () => {
|
|
8
8
|
const [e] = m(), l = (t) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { b as B } from "../../../../TablePlugin-
|
|
3
|
+
import { b as B } from "../../../../TablePlugin-NmJsn2fm.js";
|
|
4
4
|
import "../../../Buttons/Button.js";
|
|
5
5
|
import "../../../Buttons/LinkButton.js";
|
|
6
6
|
import "@react-aria/button";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "../../../../LexicalComposerContext.prod-DLlRM5wP.js";
|
|
3
3
|
import "../../../../clsx-OuTLNxxd.js";
|
|
4
|
-
import "../../../../LexicalTable.prod-
|
|
5
|
-
import "../../../../Lexical.prod-
|
|
4
|
+
import "../../../../LexicalTable.prod-BSjs04iE.js";
|
|
5
|
+
import "../../../../Lexical.prod-UwAbgYpF.js";
|
|
6
6
|
import "react";
|
|
7
|
-
import { T as F } from "../../../../TablePlugin-
|
|
7
|
+
import { T as F } from "../../../../TablePlugin-NmJsn2fm.js";
|
|
8
8
|
import "./helpers.js";
|
|
9
9
|
import "../../hooks/useFlyout.js";
|
|
10
10
|
import "../../../Icon/Icon.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { H as d, R as h, B as m, Z as x, z as w, P as S, v as C, K as p, L as E } from "../../../../LexicalTable.prod-
|
|
2
|
-
import { P as u } from "../../../../Lexical.prod-
|
|
1
|
+
import { H as d, R as h, B as m, Z as x, z as w, P as S, v as C, K as p, L as E } from "../../../../LexicalTable.prod-BSjs04iE.js";
|
|
2
|
+
import { P as u } from "../../../../Lexical.prod-UwAbgYpF.js";
|
|
3
3
|
const b = 100, D = (e, n) => {
|
|
4
4
|
const t = E(0, 0, !1);
|
|
5
5
|
for (let o = 0; o < e; o++) {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { o as
|
|
3
|
-
import { N as h, c as g,
|
|
1
|
+
import { jsxs as P, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { o as y } from "../../../../LexicalComposerContext.prod-DLlRM5wP.js";
|
|
3
|
+
import { N as h, c as g, m as C } from "../../../../Lexical.prod-UwAbgYpF.js";
|
|
4
4
|
import { useState as L, useRef as E, useCallback as N, useEffect as m } from "react";
|
|
5
|
-
import { W as b } from "../../../../LexicalTable.prod-
|
|
5
|
+
import { W as b } from "../../../../LexicalTable.prod-BSjs04iE.js";
|
|
6
6
|
import { BlockFormatPlugin as T } 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-NmJsn2fm.js";
|
|
11
11
|
import { TableCellContextMenu as z } from "../TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
|
|
12
12
|
import { s as A } from "../../../../RteEditor.module-B_3uFnFu.js";
|
|
13
13
|
import { setScrollableContainers as w, removeScrollableContainers as K } from "../../helpers.js";
|
|
14
14
|
const O = ({ editorScrollPosition: d }) => {
|
|
15
|
-
const [t] =
|
|
15
|
+
const [t] = y(), [i, s] = L(null), u = E(null), f = N(() => {
|
|
16
16
|
const e = h();
|
|
17
17
|
if (g(e)) {
|
|
18
18
|
const l = e.anchor.getNode(), a = b(l);
|
|
@@ -49,7 +49,7 @@ const O = ({ editorScrollPosition: d }) => {
|
|
|
49
49
|
return window.addEventListener("keydown", e, { capture: !0 }), () => {
|
|
50
50
|
window.removeEventListener("keydown", e);
|
|
51
51
|
};
|
|
52
|
-
}, []), /* @__PURE__ */
|
|
52
|
+
}, []), /* @__PURE__ */ P("div", { className: A.editor__toolbar, children: [
|
|
53
53
|
/* @__PURE__ */ n(T, {}),
|
|
54
54
|
/* @__PURE__ */ n(k, {}),
|
|
55
55
|
/* @__PURE__ */ n(S, { isActive: !!i, ref: u }),
|
|
@@ -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-NmJsn2fm.js";
|
|
7
7
|
import { TableCellContextMenu as T } from "./TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
|
|
8
8
|
export {
|
|
9
9
|
l as BlockFormatPlugin,
|