@uva-glass/component-library 3.47.6 → 3.47.8
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-nXWuyOKD.js → Lexical.prod-DBU6xTBY.js} +1397 -1279
- package/dist/Lexical.prod-DBU6xTBY.js.map +1 -0
- package/dist/LexicalClipboard.prod-CzGBnMdD.js +272 -0
- package/dist/LexicalClipboard.prod-CzGBnMdD.js.map +1 -0
- package/dist/LexicalLink.prod-DV9kT537.js +1027 -0
- package/dist/LexicalLink.prod-DV9kT537.js.map +1 -0
- package/dist/{LexicalList.prod--mkvX0uW.js → LexicalList.prod-2UfLUgO1.js} +159 -154
- package/dist/LexicalList.prod-2UfLUgO1.js.map +1 -0
- package/dist/LexicalSelection.prod-C1JYA_go.js +114 -0
- package/dist/LexicalSelection.prod-C1JYA_go.js.map +1 -0
- package/dist/LexicalTable.prod-CZ1mYUR-.js +1802 -0
- package/dist/LexicalTable.prod-CZ1mYUR-.js.map +1 -0
- package/dist/LexicalUtils.prod-C3vvQk50.js +114 -0
- package/dist/LexicalUtils.prod-C3vvQk50.js.map +1 -0
- package/dist/{TableCellResizerPlugin-Cpbankb8.js → TableCellResizerPlugin-CxFy7dbe.js} +53 -53
- package/dist/TableCellResizerPlugin-CxFy7dbe.js.map +1 -0
- package/dist/{TablePlugin-CfXPNfT8.js → TablePlugin-CfTWvWk1.js} +59 -59
- package/dist/{TablePlugin-CfXPNfT8.js.map → TablePlugin-CfTWvWk1.js.map} +1 -1
- package/dist/{WeekSelector.module-CTDcqKel.js → WeekSelector.module-P6WOVdLX.js} +12 -12
- package/dist/WeekSelector.module-P6WOVdLX.js.map +1 -0
- package/dist/assets/WeekSelector.css +1 -1
- package/dist/client--GsCJ9Up.js +27328 -0
- package/dist/client--GsCJ9Up.js.map +1 -0
- package/dist/components/Accordion/Accordion.test.js +3 -3
- package/dist/components/AccordionCard/AccordionCard.test.js +3 -3
- package/dist/components/ActionList/ActionList.test.js +3 -3
- package/dist/components/AppStatusBar/AppStatusBar.test.js +2 -2
- package/dist/components/Attention/Attention.test.js +2 -2
- package/dist/components/Backdrop/Backdrop.test.js +2 -2
- package/dist/components/Buttons/Button.test.js +2 -2
- package/dist/components/Buttons/LinkButton.test.js +2 -2
- package/dist/components/Buttons/MenuButton.test.js +2 -2
- package/dist/components/Card/Card.test.js +2 -2
- package/dist/components/Checkbox/Checkbox.test.js +3 -3
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js +2 -2
- package/dist/components/CheckboxTree/CheckboxTree.js +1 -1
- package/dist/components/FeedbackBar/FeedbackBar.test.js +2 -2
- package/dist/components/FormInput/FormInput.js +1 -1
- package/dist/components/InputField/InputField.stories.js +1 -1
- package/dist/components/Label/Label.test.js +2 -2
- 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/MultiSelectBox/MultiSelectBox.test.js +2 -2
- package/dist/components/Notification/Notification.test.js +2 -2
- package/dist/components/PeriodSelector/PeriodSelector.js +1 -1
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +1 -1
- package/dist/components/RadioGroup/Radiogroup.test.js +2 -2
- 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 +6 -6
- package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +2 -2
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +9 -9
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +35 -35
- package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +9 -5
- package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js.map +1 -1
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +40 -40
- 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 +25 -25
- package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +19 -19
- package/dist/components/RteEditor/Plugins/index.js +2 -2
- package/dist/components/RteEditor/RteEditor.js +671 -627
- package/dist/components/RteEditor/RteEditor.js.map +1 -1
- package/dist/components/RteEditor/helpers.js +8 -8
- package/dist/components/RteEditor/nodes/TableWrapperNode/TableWrapperNode.js +19 -19
- package/dist/components/StatusBadge/StatusBadge.test.js +2 -2
- package/dist/components/TextArea/TextArea.test.js +2 -2
- package/dist/components/VarIndicator/VarIndicator.test.js +3 -3
- package/dist/components/WeekSelector/WeekSelector.js +1 -1
- package/dist/components/WeekSelector/components/WeekSelectorButton.js +1 -1
- package/dist/components/WeekSelector/components/WeekSelectorOption.js +1 -1
- package/dist/components/WeekSelector/components/WeekSelectorOptionContainer.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/{index-D5qpMB9d.js → index-Bf2LCbD1.js} +2 -2
- package/dist/{index-D5qpMB9d.js.map → index-Bf2LCbD1.js.map} +1 -1
- package/dist/{index-rQE9MV9y.js → index-JOHbZ4si.js} +523 -523
- package/dist/{index-rQE9MV9y.js.map → index-JOHbZ4si.js.map} +1 -1
- package/dist/index.js +1 -1
- package/dist/{react-18-DXfB7ZX7.js → react-18-BHQltW8V.js} +2 -2
- package/dist/{react-18-DXfB7ZX7.js.map → react-18-BHQltW8V.js.map} +1 -1
- package/dist/{react.esm-D2ppoNuM.js → react.esm-Bg7Fh9lz.js} +3 -3
- package/dist/{react.esm-D2ppoNuM.js.map → react.esm-Bg7Fh9lz.js.map} +1 -1
- package/dist/setupTests.js +1 -1
- package/dist/storybook__react.d.js +1 -1
- package/package.json +20 -20
- package/dist/Lexical.prod-nXWuyOKD.js.map +0 -1
- package/dist/LexicalClipboard.prod-pXq91TBU.js +0 -276
- package/dist/LexicalClipboard.prod-pXq91TBU.js.map +0 -1
- package/dist/LexicalLink.prod-Brzpgs_K.js +0 -285
- package/dist/LexicalLink.prod-Brzpgs_K.js.map +0 -1
- package/dist/LexicalList.prod--mkvX0uW.js.map +0 -1
- package/dist/LexicalSelection.prod-Ct4PZOht.js +0 -119
- package/dist/LexicalSelection.prod-Ct4PZOht.js.map +0 -1
- package/dist/LexicalTable.prod-Bexd4dGG.js +0 -1763
- package/dist/LexicalTable.prod-Bexd4dGG.js.map +0 -1
- package/dist/LexicalUtils.prod-Ckfw0Hjt.js +0 -123
- package/dist/LexicalUtils.prod-Ckfw0Hjt.js.map +0 -1
- package/dist/TableCellResizerPlugin-Cpbankb8.js.map +0 -1
- package/dist/WeekSelector.module-CTDcqKel.js.map +0 -1
- package/dist/client-BK9NlSVR.js +0 -25208
- package/dist/client-BK9NlSVR.js.map +0 -1
- package/dist/helpers-mE437H2Y.js +0 -164
- package/dist/helpers-mE437H2Y.js.map +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsx as k, jsxs as
|
|
1
|
+
import { jsx as k, jsxs as J } 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 {
|
|
5
|
-
import { useRef as a, useState as
|
|
6
|
-
import {
|
|
7
|
-
import { A as rt } from "../../../../TablePlugin-
|
|
8
|
-
import {
|
|
4
|
+
import { w as I, P as q, J as G } from "../../../../LexicalLink.prod-DV9kT537.js";
|
|
5
|
+
import { useRef as a, useState as Q, useEffect as m } from "react";
|
|
6
|
+
import { a0 as X, a as p, p as Z, ar as $, f as w, A as tt, a1 as et, t as ot } from "../../../../Lexical.prod-DBU6xTBY.js";
|
|
7
|
+
import { A as rt } from "../../../../TablePlugin-CfTWvWk1.js";
|
|
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";
|
|
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 A, removeScrollableContainers as lt } from "../../helpers.js";
|
|
27
27
|
import { s as h } from "../../../../RteEditor.module-CovRFt0S.js";
|
|
28
28
|
import { useTranslation as at } from "../../hooks/useTranslation.js";
|
|
29
29
|
import "react-dom";
|
|
@@ -38,7 +38,7 @@ import "../../../WeekSelector/components/WeekSelectorOptionContainer.js";
|
|
|
38
38
|
const ut = 200, B = (f) => {
|
|
39
39
|
let n = f;
|
|
40
40
|
for (; n; ) {
|
|
41
|
-
if (
|
|
41
|
+
if (I(n))
|
|
42
42
|
return n;
|
|
43
43
|
n = n.getParent();
|
|
44
44
|
}
|
|
@@ -46,7 +46,7 @@ const ut = 200, B = (f) => {
|
|
|
46
46
|
}, z = (f) => {
|
|
47
47
|
let n = f;
|
|
48
48
|
for (; n; ) {
|
|
49
|
-
if (
|
|
49
|
+
if (I(n))
|
|
50
50
|
return {
|
|
51
51
|
active: !0,
|
|
52
52
|
url: n.getURL(),
|
|
@@ -56,7 +56,7 @@ const ut = 200, B = (f) => {
|
|
|
56
56
|
}
|
|
57
57
|
return !1;
|
|
58
58
|
}, qt = ({ parentScrollPosition: f }) => {
|
|
59
|
-
const n = at(), [c] = W(), { flyout:
|
|
59
|
+
const n = at(), [c] = W(), { flyout: M, showFlyout: P, hideFlyout: C, isVisible: u } = st(), d = a(void 0), N = a(!1), y = a(""), g = a(""), [L, O] = 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;
|
|
@@ -65,15 +65,15 @@ const ut = 200, B = (f) => {
|
|
|
65
65
|
c.update(() => {
|
|
66
66
|
x.current && et(x.current);
|
|
67
67
|
});
|
|
68
|
-
},
|
|
69
|
-
|
|
68
|
+
}, U = (o, t) => {
|
|
69
|
+
P({
|
|
70
70
|
position: t,
|
|
71
71
|
children: /* @__PURE__ */ k(
|
|
72
72
|
it,
|
|
73
73
|
{
|
|
74
74
|
url: o,
|
|
75
|
-
onSave: (e) =>
|
|
76
|
-
onDelete: () =>
|
|
75
|
+
onSave: (e) => K(e, ""),
|
|
76
|
+
onDelete: () => H(),
|
|
77
77
|
onClose: D,
|
|
78
78
|
ref: T
|
|
79
79
|
}
|
|
@@ -83,10 +83,10 @@ const ut = 200, B = (f) => {
|
|
|
83
83
|
T.current?.clearForm(), C(), R();
|
|
84
84
|
}, F = () => {
|
|
85
85
|
const o = S.current?.getBoundingClientRect();
|
|
86
|
-
!N.current && o && (
|
|
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
88
|
C(), R();
|
|
89
|
-
},
|
|
89
|
+
}, K = (o, t) => {
|
|
90
90
|
c.update(() => {
|
|
91
91
|
const e = p();
|
|
92
92
|
if (w(e)) {
|
|
@@ -96,7 +96,7 @@ const ut = 200, B = (f) => {
|
|
|
96
96
|
const l = ot(t);
|
|
97
97
|
s.replace(l), l.select();
|
|
98
98
|
}
|
|
99
|
-
if (t !==
|
|
99
|
+
if (t !== y.current && y.current === "") {
|
|
100
100
|
const { anchor: l, focus: E } = e;
|
|
101
101
|
e.insertText(t), l.offset -= t.length, E.offset = l.offset + t.length;
|
|
102
102
|
}
|
|
@@ -105,28 +105,28 @@ const ut = 200, B = (f) => {
|
|
|
105
105
|
}
|
|
106
106
|
b();
|
|
107
107
|
});
|
|
108
|
-
},
|
|
108
|
+
}, H = () => {
|
|
109
109
|
c.dispatchCommand(q, null), D();
|
|
110
110
|
}, V = {
|
|
111
111
|
children: /* @__PURE__ */ k(
|
|
112
112
|
rt,
|
|
113
113
|
{
|
|
114
|
-
isLink:
|
|
114
|
+
isLink: L,
|
|
115
115
|
onCloseHandler: b,
|
|
116
|
-
onSaveHandler: (o, t) =>
|
|
116
|
+
onSaveHandler: (o, t) => K(o, t),
|
|
117
117
|
ref: d
|
|
118
118
|
}
|
|
119
119
|
)
|
|
120
120
|
};
|
|
121
121
|
return m(() => {
|
|
122
|
-
u ? (N.current = !0, d.current?.focusFirstField()) : (d.current?.clearForm(),
|
|
122
|
+
u ? (N.current = !0, d.current?.focusFirstField()) : (d.current?.clearForm(), y.current = g.current = "", setTimeout(() => N.current = !1, ut));
|
|
123
123
|
}, [d, u]), m(() => {
|
|
124
124
|
const o = (r) => {
|
|
125
125
|
if (w(r) && r.isCollapsed()) {
|
|
126
126
|
const i = z(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 U(i.url, l), !0;
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
132
|
return !1;
|
|
@@ -141,7 +141,7 @@ const ut = 200, B = (f) => {
|
|
|
141
141
|
Z,
|
|
142
142
|
(r) => {
|
|
143
143
|
const i = p();
|
|
144
|
-
return
|
|
144
|
+
return v(), r.preventDefault(), r.stopPropagation(), r.stopImmediatePropagation(), o(i), !1;
|
|
145
145
|
},
|
|
146
146
|
0
|
|
147
147
|
);
|
|
@@ -154,13 +154,13 @@ const ut = 200, B = (f) => {
|
|
|
154
154
|
(e) => {
|
|
155
155
|
if (e.ctrlKey && e.shiftKey && e.key === "U") {
|
|
156
156
|
const r = p();
|
|
157
|
-
if (
|
|
157
|
+
if (v(), !w(r))
|
|
158
158
|
return !1;
|
|
159
159
|
const i = z(r.anchor.getNode()), s = (E = "", j = "") => {
|
|
160
160
|
F(), setTimeout(() => d.current?.setDefaults(E, j), 0);
|
|
161
161
|
};
|
|
162
162
|
if (i)
|
|
163
|
-
return e.preventDefault(), e.stopPropagation(), e.stopImmediatePropagation(),
|
|
163
|
+
return e.preventDefault(), e.stopPropagation(), e.stopImmediatePropagation(), y.current = i.linktext, s(i.url, i.linktext), !0;
|
|
164
164
|
const l = r.getTextContent();
|
|
165
165
|
return l !== "" ? (g.current = l, s("", g.current), !0) : (F(), !0);
|
|
166
166
|
}
|
|
@@ -168,10 +168,10 @@ const ut = 200, B = (f) => {
|
|
|
168
168
|
},
|
|
169
169
|
tt
|
|
170
170
|
), t = c.registerUpdateListener(({ editorState: e }) => {
|
|
171
|
-
|
|
171
|
+
O(
|
|
172
172
|
e.read(() => {
|
|
173
173
|
const r = p();
|
|
174
|
-
if (
|
|
174
|
+
if (v(), w(r)) {
|
|
175
175
|
const i = r.anchor.getNode(), s = B(i);
|
|
176
176
|
if (s)
|
|
177
177
|
return {
|
|
@@ -192,21 +192,21 @@ const ut = 200, B = (f) => {
|
|
|
192
192
|
o(), t();
|
|
193
193
|
};
|
|
194
194
|
}, [c]), m(() => {
|
|
195
|
-
|
|
195
|
+
_.current = u, u || T.current?.clearForm();
|
|
196
196
|
}, [u]), m(() => {
|
|
197
197
|
u && b();
|
|
198
198
|
}, [f]), m(() => {
|
|
199
|
-
|
|
200
|
-
}, [
|
|
201
|
-
const o = (e) => (
|
|
199
|
+
L.active || C();
|
|
200
|
+
}, [L]), m(() => {
|
|
201
|
+
const o = (e) => (A(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 A(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__ */ k("div", { className: h["editor__toolbar-button-group"], children: /* @__PURE__ */
|
|
209
|
+
}, []), /* @__PURE__ */ k("div", { className: h["editor__toolbar-button-group"], children: /* @__PURE__ */ J("div", { className: h["editor__toolbar-button-flyoutwrapper"], children: [
|
|
210
210
|
/* @__PURE__ */ k(
|
|
211
211
|
"button",
|
|
212
212
|
{
|
|
@@ -215,7 +215,7 @@ const ut = 200, B = (f) => {
|
|
|
215
215
|
className: Y(
|
|
216
216
|
h["editor__toolbar-button"],
|
|
217
217
|
h["editor__toolbar-button--link"],
|
|
218
|
-
|
|
218
|
+
L.active && h["editor__toolbar-button--active"]
|
|
219
219
|
),
|
|
220
220
|
"aria-label": n.aria.labels.link,
|
|
221
221
|
"aria-keyshortcuts": n.aria.keyshortcuts.link,
|
|
@@ -224,7 +224,7 @@ const ut = 200, B = (f) => {
|
|
|
224
224
|
children: /* @__PURE__ */ k(ct, { name: "Link", size: 20 })
|
|
225
225
|
}
|
|
226
226
|
),
|
|
227
|
-
|
|
227
|
+
M
|
|
228
228
|
] }) });
|
|
229
229
|
};
|
|
230
230
|
export {
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { H as w } from "../../../../LexicalLink.prod-DV9kT537.js";
|
|
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
|
+
w(s, (t) => a.test(t) ? t : `//${t}`),
|
|
4
|
+
w(A, (t) => `mailto:${t}`)
|
|
5
|
+
], e = (t) => /^https?:\/\//i.test(t) ? t : `https://${t}`;
|
|
2
6
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
+
r as MATCHERS,
|
|
8
|
+
e as ensureHttps,
|
|
9
|
+
n as validateUrl,
|
|
10
|
+
o as validateUrlWithProtocol
|
|
7
11
|
};
|
|
8
12
|
//# sourceMappingURL=helpers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"helpers.js","sources":["../../../../../src/components/RteEditor/Plugins/LinkPlugin/helpers.ts"],"sourcesContent":["import { createLinkMatcherWithRegExp } from '@lexical/react/LexicalAutoLinkPlugin';\n\nconst PROTOCOL_REGEX = /^(http|https):\\/\\//;\n\nconst URL_REGEX =\n /(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\nconst EMAIL_REGEX =\n /(([^<>()[\\]\\\\.,;:\\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,}))/;\n\nconst URL_REGEX_OR_BLANK =\n /^(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\nexport const validateUrl = (url: string): boolean => {\n return url === 'https://' || URL_REGEX.test(url);\n};\n\nexport const validateUrlWithProtocol = (url: string): boolean => {\n return url === 'https://' || URL_REGEX_OR_BLANK.test(url);\n};\n\nexport const MATCHERS = [\n createLinkMatcherWithRegExp(URL_REGEX, (text: string): string => {\n return !PROTOCOL_REGEX.test(text) ? `//${text}` : text;\n }),\n createLinkMatcherWithRegExp(EMAIL_REGEX, (text) => {\n return `mailto:${text}`;\n }),\n];\n\nexport const ensureHttps = (url: string) => {\n if (!/^https?:\\/\\//i.test(url)) {\n return `https://${url}`;\n }\n return url;\n};\n"],"names":["PROTOCOL_REGEX","URL_REGEX","EMAIL_REGEX","URL_REGEX_OR_BLANK","validateUrl","url","validateUrlWithProtocol","MATCHERS","createLinkMatcherWithRegExp","text","ensureHttps"],"mappings":";AAEA,MAAMA,IAAiB,sBAEjBC,IACJ,qNAEIC,IACJ,uJAEIC,IACJ,wNAEWC,IAAc,CAACC,MACnBA,MAAQ,cAAcJ,EAAU,KAAKI,CAAG,GAGpCC,IAA0B,CAACD,MAC/BA,MAAQ,cAAcF,EAAmB,KAAKE,CAAG,GAG7CE,IAAW;AAAA,EACtBC,EAA4BP,GAAW,CAACQ,MAC9BT,EAAe,KAAKS,CAAI,IAAkBA,IAAd,KAAKA,CAAI,EAC9C;AAAA,EACDD,EAA4BN,GAAa,CAACO,MACjC,UAAUA,CAAI,EACtB;AACH,GAEaC,IAAc,CAACL,MACrB,gBAAgB,KAAKA,CAAG,IAGtBA,IAFE,WAAWA,CAAG;"}
|
|
@@ -1,62 +1,62 @@
|
|
|
1
1
|
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
-
import { o as
|
|
3
|
-
import {
|
|
4
|
-
import { useState as p, useEffect as
|
|
5
|
-
import { c as
|
|
6
|
-
import {
|
|
7
|
-
import { Icon as
|
|
2
|
+
import { o as x } from "../../../../LexicalComposerContext.prod-DOyoZx0P.js";
|
|
3
|
+
import { k as f, x as C, S as N, o as D, d as b, h as I } from "../../../../LexicalList.prod-2UfLUgO1.js";
|
|
4
|
+
import { useState as p, useEffect as k } from "react";
|
|
5
|
+
import { c as K } from "../../../../clsx-OuTLNxxd.js";
|
|
6
|
+
import { ar as y, A as O, Y as U, a as v, f as P, P as w } from "../../../../Lexical.prod-DBU6xTBY.js";
|
|
7
|
+
import { Icon as A } from "../../../Icon/Icon.js";
|
|
8
8
|
import { s as l } from "../../../../RteEditor.module-CovRFt0S.js";
|
|
9
|
-
import { useTranslation as
|
|
10
|
-
const
|
|
9
|
+
import { useTranslation as B } from "../../hooks/useTranslation.js";
|
|
10
|
+
const E = {
|
|
11
11
|
bullet: "BulletList",
|
|
12
12
|
number: "NumberedList"
|
|
13
|
-
},
|
|
14
|
-
const u =
|
|
15
|
-
t === "number" && h !== "number" ? (e.dispatchCommand(
|
|
13
|
+
}, Y = ["bullet", "number"], Q = () => {
|
|
14
|
+
const u = B(), [e] = x(), [h, a] = p(null), [c, g] = p(!1), [m, L] = p(!1), S = (t) => {
|
|
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
|
-
return
|
|
17
|
+
return k(() => {
|
|
18
18
|
const t = e.registerCommand(
|
|
19
|
-
|
|
20
|
-
(o) => o.ctrlKey && o.shiftKey && o.code === "Digit7" ? (o.preventDefault(), m ? e.dispatchCommand(f, void 0) : e.dispatchCommand(
|
|
21
|
-
|
|
19
|
+
y,
|
|
20
|
+
(o) => o.ctrlKey && o.shiftKey && o.code === "Digit7" ? (o.preventDefault(), m ? e.dispatchCommand(f, void 0) : e.dispatchCommand(C, void 0), !0) : o.ctrlKey && o.shiftKey && o.code === "Digit8" ? (o.preventDefault(), c ? e.dispatchCommand(f, void 0) : e.dispatchCommand(N, void 0), !0) : !1,
|
|
21
|
+
O
|
|
22
22
|
);
|
|
23
23
|
return () => {
|
|
24
24
|
t();
|
|
25
25
|
};
|
|
26
|
-
}, [e, m, c]),
|
|
26
|
+
}, [e, m, c]), k(() => {
|
|
27
27
|
e.registerCommand(
|
|
28
|
-
|
|
28
|
+
U,
|
|
29
29
|
(o) => (o.preventDefault(), e.update(() => {
|
|
30
|
-
const
|
|
31
|
-
if (!
|
|
30
|
+
const n = v();
|
|
31
|
+
if (!P(n))
|
|
32
32
|
return;
|
|
33
|
-
const r =
|
|
34
|
-
if (!D(
|
|
33
|
+
const r = n.anchor.getNode(), i = r.getParent();
|
|
34
|
+
if (!D(i))
|
|
35
35
|
return;
|
|
36
|
-
const
|
|
37
|
-
if (b(
|
|
38
|
-
const
|
|
39
|
-
|
|
36
|
+
const s = i.getParent();
|
|
37
|
+
if (b(s)) {
|
|
38
|
+
const _ = I(b(s) ? s.getListType() : "bullet");
|
|
39
|
+
i.append(_), _.append(r);
|
|
40
40
|
}
|
|
41
41
|
}), !0),
|
|
42
|
-
|
|
42
|
+
w
|
|
43
43
|
);
|
|
44
44
|
const t = e.registerUpdateListener(({ editorState: o }) => {
|
|
45
45
|
o.read(() => {
|
|
46
|
-
const
|
|
47
|
-
if (
|
|
48
|
-
let r =
|
|
46
|
+
const n = v();
|
|
47
|
+
if (P(n)) {
|
|
48
|
+
let r = n.anchor.getNode();
|
|
49
49
|
for (; r !== null; ) {
|
|
50
50
|
if (b(r)) {
|
|
51
|
-
const
|
|
52
|
-
g(
|
|
51
|
+
const s = r.getTag();
|
|
52
|
+
g(s === "ul"), L(s === "ol"), s === "ul" && a("bullet"), s === "ol" && a("number");
|
|
53
53
|
return;
|
|
54
54
|
}
|
|
55
|
-
const
|
|
56
|
-
if (
|
|
57
|
-
r =
|
|
55
|
+
const i = r.getParent();
|
|
56
|
+
if (i === null) break;
|
|
57
|
+
r = i;
|
|
58
58
|
}
|
|
59
|
-
g(!1), L(!1),
|
|
59
|
+
g(!1), L(!1), a(null);
|
|
60
60
|
}
|
|
61
61
|
return !1;
|
|
62
62
|
});
|
|
@@ -64,12 +64,12 @@ const T = {
|
|
|
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: Y.map((t) => /* @__PURE__ */ d(
|
|
68
68
|
"button",
|
|
69
69
|
{
|
|
70
|
-
onClick: () =>
|
|
70
|
+
onClick: () => S(t),
|
|
71
71
|
title: u.format[`${t}Tooltip`],
|
|
72
|
-
className:
|
|
72
|
+
className: K(
|
|
73
73
|
l["editor__toolbar-button"],
|
|
74
74
|
l[`editor__toolbar-button--${t}`],
|
|
75
75
|
t === "bullet" && c && l["editor__toolbar-button--active"],
|
|
@@ -78,12 +78,12 @@ const T = {
|
|
|
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(A, { name: E[t], size: 24 })
|
|
82
82
|
},
|
|
83
83
|
t
|
|
84
84
|
)) });
|
|
85
85
|
};
|
|
86
86
|
export {
|
|
87
|
-
|
|
87
|
+
Q 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 {
|
|
4
|
-
import { L as i } from "../../../../LexicalUtils.prod-
|
|
5
|
-
import { A as d } from "../../../../LexicalClipboard.prod-
|
|
3
|
+
import { ae as f, N as p, a as u } from "../../../../Lexical.prod-DBU6xTBY.js";
|
|
4
|
+
import { L as i } from "../../../../LexicalUtils.prod-C3vvQk50.js";
|
|
5
|
+
import { A as d } from "../../../../LexicalClipboard.prod-CzGBnMdD.js";
|
|
6
6
|
import { d as D } from "../../../../index-yEhaxKq-.js";
|
|
7
|
-
const
|
|
7
|
+
const L = () => {
|
|
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 P = () => {
|
|
|
26
26
|
}, [e]), null;
|
|
27
27
|
};
|
|
28
28
|
export {
|
|
29
|
-
|
|
29
|
+
L 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-CxFy7dbe.js";
|
|
5
|
+
import "../../../../LexicalTable.prod-CZ1mYUR-.js";
|
|
6
|
+
import "../../../../LexicalUtils.prod-C3vvQk50.js";
|
|
7
|
+
import "../../../../Lexical.prod-DBU6xTBY.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-CfTWvWk1.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-CZ1mYUR-.js";
|
|
5
|
+
import "../../../../Lexical.prod-DBU6xTBY.js";
|
|
6
|
+
import "../../../../LexicalUtils.prod-C3vvQk50.js";
|
|
7
7
|
import "react";
|
|
8
|
-
import { T as L } from "../../../../TablePlugin-
|
|
8
|
+
import { T as L } from "../../../../TablePlugin-CfTWvWk1.js";
|
|
9
9
|
import "./helpers.js";
|
|
10
10
|
import "../../nodes/TableWrapperNode/TableWrapperNode.js";
|
|
11
11
|
import "../../hooks/useFlyout.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
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-CZ1mYUR-.js";
|
|
2
|
+
import { M as S } from "../../../../Lexical.prod-DBU6xTBY.js";
|
|
3
3
|
import { TableWrapperNode as N } from "../../nodes/TableWrapperNode/TableWrapperNode.js";
|
|
4
|
-
const
|
|
5
|
-
const n =
|
|
4
|
+
const v = 32, a = 48, W = 1, F = 200, B = 320, M = (t, e) => {
|
|
5
|
+
const n = R(0, 0, !1);
|
|
6
6
|
for (let o = 0; o < t; o++) {
|
|
7
7
|
const r = g();
|
|
8
8
|
for (let s = 0; s < e; s++) {
|
|
@@ -12,26 +12,26 @@ const y = 32, a = 48, W = 1, O = 200, P = 320, H = (t, e) => {
|
|
|
12
12
|
n.append(r);
|
|
13
13
|
}
|
|
14
14
|
return n;
|
|
15
|
-
},
|
|
16
|
-
const e =
|
|
15
|
+
}, P = (t) => {
|
|
16
|
+
const e = D(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();
|
|
19
19
|
r && r.select();
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, O = (t) => {
|
|
22
22
|
const e = T(t);
|
|
23
23
|
if (!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
|
+
}, A = (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
|
+
}, H = (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,22 +48,22 @@ const y = 32, a = 48, W = 1, O = 200, P = 320, H = (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
|
+
}, U = (t) => {
|
|
52
52
|
if (!i(t))
|
|
53
53
|
throw new Error("Selected node is not a TableCellNode");
|
|
54
|
-
(w(t).getFirstChild()?.getChildrenSize() || 0) === 1 ?
|
|
54
|
+
(w(t).getFirstChild()?.getChildrenSize() || 0) === 1 ? O(t) : p();
|
|
55
55
|
}, V = (t) => {
|
|
56
56
|
const e = t.getRootElement();
|
|
57
57
|
if (!e || typeof window > "u") return 0;
|
|
58
58
|
const n = e.getBoundingClientRect(), o = window.getComputedStyle(e), r = parseFloat(o.paddingLeft || "0") + parseFloat(o.paddingRight || "0") + a;
|
|
59
59
|
return Math.max(0, n.width - r);
|
|
60
|
-
},
|
|
60
|
+
}, z = (t, e, n) => {
|
|
61
61
|
if (!t) return 0;
|
|
62
62
|
const o = n.getElementByKey(t.getKey());
|
|
63
63
|
if (!o) return 0;
|
|
64
64
|
const r = window.getComputedStyle(o);
|
|
65
65
|
return parseInt(r.width) - e * W - 1;
|
|
66
|
-
},
|
|
66
|
+
}, J = (t) => {
|
|
67
67
|
const e = t.getChildren();
|
|
68
68
|
for (const n of e) {
|
|
69
69
|
const o = n.getChildren();
|
|
@@ -76,17 +76,17 @@ const y = 32, a = 48, W = 1, O = 200, P = 320, H = (t, e) => {
|
|
|
76
76
|
export {
|
|
77
77
|
W as BORDER_WIDTHS,
|
|
78
78
|
a as DEFAULT_COL_WIDTH,
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
79
|
+
B as DEFAULT_EDITOR_WIDTH,
|
|
80
|
+
v as MIN_COLUMN_WIDTH,
|
|
81
|
+
F as PREVENT_OPEN_DELAY,
|
|
82
|
+
M as createTable,
|
|
83
|
+
U as deleteColumn,
|
|
84
|
+
P as deleteRow,
|
|
85
|
+
O as deleteTable,
|
|
86
86
|
V as getEditorContentWidth,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
87
|
+
z as getEditorParrentCellWidth,
|
|
88
|
+
H as insertColumn,
|
|
89
|
+
A as insertRow,
|
|
90
|
+
J as tableHasContent
|
|
91
91
|
};
|
|
92
92
|
//# sourceMappingURL=helpers.js.map
|
|
@@ -1,34 +1,34 @@
|
|
|
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 {
|
|
6
|
-
import { BlockFormatPlugin as
|
|
3
|
+
import { a as p, f as h, a1 as C } from "../../../../Lexical.prod-DBU6xTBY.js";
|
|
4
|
+
import { useState as L, useRef as E, useCallback as T, useEffect as c } from "react";
|
|
5
|
+
import { P as g } from "../../../../LexicalTable.prod-CZ1mYUR-.js";
|
|
6
|
+
import { BlockFormatPlugin as x } from "../BlockFormatPlugin/BlockFormatPlugin.js";
|
|
7
7
|
import { ListPlugin as N } from "../ListPlugin/ListPlugin.js";
|
|
8
|
-
import { LinkPlugin as
|
|
8
|
+
import { LinkPlugin as k } 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-CfTWvWk1.js";
|
|
11
11
|
import { TableCellContextMenu as z } from "../TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
|
|
12
12
|
import "react-dom";
|
|
13
13
|
import "../../../../index-yEhaxKq-.js";
|
|
14
14
|
import { s as A } from "../../../../RteEditor.module-CovRFt0S.js";
|
|
15
|
-
import { setScrollableContainers as
|
|
16
|
-
const
|
|
17
|
-
const [t] = y(), [r, i] = L(null), d = E(null), u =
|
|
18
|
-
const e =
|
|
15
|
+
import { setScrollableContainers as b, removeScrollableContainers as K } from "../../helpers.js";
|
|
16
|
+
const W = ({ editorScrollPosition: m }) => {
|
|
17
|
+
const [t] = y(), [r, i] = L(null), d = E(null), u = T(() => {
|
|
18
|
+
const e = p();
|
|
19
19
|
if (h(e)) {
|
|
20
20
|
const s = e.anchor.getNode(), l = g(s);
|
|
21
21
|
if (l) {
|
|
22
|
-
const
|
|
22
|
+
const f = t.getElementByKey(l.getKey()), a = f ? f.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);
|
|
26
26
|
}
|
|
27
|
-
}, [t]),
|
|
27
|
+
}, [t]), w = (e) => {
|
|
28
28
|
d.current?.mutateTable(e);
|
|
29
29
|
}, o = () => {
|
|
30
30
|
t.update(() => {
|
|
31
|
-
const e =
|
|
31
|
+
const e = p();
|
|
32
32
|
if (h(e)) {
|
|
33
33
|
const s = e.anchor.getNode();
|
|
34
34
|
g(s) && (C(null), i(null));
|
|
@@ -41,17 +41,17 @@ const V = ({ editorScrollPosition: m }) => {
|
|
|
41
41
|
u();
|
|
42
42
|
});
|
|
43
43
|
});
|
|
44
|
-
}, [t, u]), c(() => (
|
|
44
|
+
}, [t, u]), c(() => (b(o), window.addEventListener("scroll", o), window.addEventListener("resize", o), () => {
|
|
45
45
|
window.removeEventListener("scroll", o), window.removeEventListener("resize", o), K(o);
|
|
46
46
|
}), [t]), c(() => {
|
|
47
47
|
const e = () => {
|
|
48
|
-
|
|
48
|
+
b(o);
|
|
49
49
|
};
|
|
50
50
|
return window.addEventListener("keydown", e, { capture: !0 }), () => {
|
|
51
51
|
window.removeEventListener("keydown", e);
|
|
52
52
|
};
|
|
53
53
|
}, []), /* @__PURE__ */ P("div", { className: A.editor__toolbar, children: [
|
|
54
|
-
/* @__PURE__ */ n(
|
|
54
|
+
/* @__PURE__ */ n(x, {}),
|
|
55
55
|
/* @__PURE__ */ n(N, {}),
|
|
56
56
|
/* @__PURE__ */ n(S, { isActive: !!r, ref: d }),
|
|
57
57
|
r && /* @__PURE__ */ n(
|
|
@@ -59,14 +59,14 @@ const V = ({ editorScrollPosition: m }) => {
|
|
|
59
59
|
{
|
|
60
60
|
position: r,
|
|
61
61
|
parentScrollPosition: m,
|
|
62
|
-
onAction:
|
|
62
|
+
onAction: w
|
|
63
63
|
}
|
|
64
64
|
),
|
|
65
|
-
/* @__PURE__ */ n(
|
|
65
|
+
/* @__PURE__ */ n(k, { parentScrollPosition: m }),
|
|
66
66
|
/* @__PURE__ */ n(B, {})
|
|
67
67
|
] });
|
|
68
68
|
};
|
|
69
69
|
export {
|
|
70
|
-
|
|
70
|
+
W as ToolBarPlugin
|
|
71
71
|
};
|
|
72
72
|
//# sourceMappingURL=ToolbarPlugin.js.map
|