@uva-glass/component-library 3.1.0 → 3.1.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-LIa6Q94i.js → Lexical.prod-Bu-Iw9VX.js} +1390 -1361
- package/dist/Lexical.prod-Bu-Iw9VX.js.map +1 -0
- package/dist/{LexicalClipboard.prod-LIoPcoQF.js → LexicalClipboard.prod-C5dHfEke.js} +18 -18
- package/dist/{LexicalClipboard.prod-LIoPcoQF.js.map → LexicalClipboard.prod-C5dHfEke.js.map} +1 -1
- package/dist/{LexicalLink.prod-N0i4wDOR.js → LexicalLink.prod-DdERpPPj.js} +14 -14
- package/dist/{LexicalLink.prod-N0i4wDOR.js.map → LexicalLink.prod-DdERpPPj.js.map} +1 -1
- package/dist/{LexicalList.prod-BKa7Tljk.js → LexicalList.prod-CzJqqstH.js} +91 -95
- package/dist/LexicalList.prod-CzJqqstH.js.map +1 -0
- package/dist/LexicalSelection.prod-CkM-3E0b.js +90 -0
- package/dist/{LexicalSelection.prod-Cid08b3Z.js.map → LexicalSelection.prod-CkM-3E0b.js.map} +1 -1
- package/dist/LexicalTable.prod-BsmIydKv.js +1550 -0
- package/dist/LexicalTable.prod-BsmIydKv.js.map +1 -0
- package/dist/LexicalUtils.prod-BVZbsLIa.js +107 -0
- package/dist/LexicalUtils.prod-BVZbsLIa.js.map +1 -0
- package/dist/{TablePlugin-DlTujN8R.js → TablePlugin-DKzssVbg.js} +41 -41
- package/dist/{TablePlugin-DlTujN8R.js.map → TablePlugin-DKzssVbg.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/OverlayStepBar/OverlayStepBar.js +1 -1
- package/dist/components/PeriodSelector/PeriodSelector.js +1 -1
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +1 -1
- package/dist/components/RteEditor/EditorHeader/EditorHeader.js +1 -1
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +5 -5
- 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 +4 -4
- package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +25 -25
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +8 -8
- 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 +18 -18
- package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +14 -14
- package/dist/components/RteEditor/Plugins/index.js +1 -1
- package/dist/components/RteEditor/RteEditor.js +132 -130
- package/dist/components/RteEditor/RteEditor.js.map +1 -1
- package/dist/components/RteEditor/helpers.js +11 -11
- package/dist/components/Timeline/Timeline.test.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/{helpers-BFkCPTTp.js → helpers-D13uK95u.js} +19 -19
- package/dist/{helpers-BFkCPTTp.js.map → helpers-D13uK95u.js.map} +1 -1
- package/dist/index.js +1 -1
- package/package.json +5 -5
- package/dist/Lexical.prod-LIa6Q94i.js.map +0 -1
- package/dist/LexicalList.prod-BKa7Tljk.js.map +0 -1
- package/dist/LexicalSelection.prod-Cid08b3Z.js +0 -85
- package/dist/LexicalTable.prod-B1mw85mv.js +0 -1545
- package/dist/LexicalTable.prod-B1mw85mv.js.map +0 -1
- package/dist/LexicalUtils.prod-DstvN5hc.js +0 -109
- package/dist/LexicalUtils.prod-DstvN5hc.js.map +0 -1
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { jsx as h, jsxs as
|
|
2
|
-
import { t as Je, r as Ve, o as
|
|
3
|
-
import {
|
|
1
|
+
import { jsx as h, jsxs as A, Fragment as Pe } from "react/jsx-runtime";
|
|
2
|
+
import { t as Je, r as Ve, o as T } from "../../LexicalComposerContext.prod-DLlRM5wP.js";
|
|
3
|
+
import { aF as Te, ae as z, T as Re, a as p, al as W, d as q, w as Xe, X as O, l as g, P as Ge, N as m, aG as Qe, ad as Ie, o as Ye, n as Oe, aH as Ze, B as et, aE as P, aB as tt, aI as nt, aJ as rt, aK as ot, r as ne, aL as it, aM as st, a0 as at, C as lt, g as ut, A as ct, aN as dt, aO as fe, b as me, L as ft, x as re, z as mt, a1 as Me, aP as pe, s as pt, q as gt, m as ht, aQ as ge, p as Ct, aR as yt, aS as Et, aT as wt, aA as vt, I as bt, G as _t, aU as St, M as kt, v as xt, u as Nt, i as Lt, E as he, aV as Dt, t as $t, aq as G, ap as Q, aW as Pt, aX as Tt, as as Rt, ar as It } from "../../Lexical.prod-Bu-Iw9VX.js";
|
|
4
4
|
import * as oe from "react";
|
|
5
|
-
import { useMemo as J, useLayoutEffect as U, useEffect as k, useState as M, useRef as Ke, Suspense as
|
|
6
|
-
import {
|
|
7
|
-
import { flushSync as
|
|
8
|
-
import { D as Ce, _ as ye, h as zt, m as Bt } from "../../LexicalClipboard.prod-
|
|
9
|
-
import { W as Ee, G as we } from "../../LexicalSelection.prod-
|
|
10
|
-
import {
|
|
11
|
-
import { h as Be, O as ve, N as ie, d as
|
|
12
|
-
import {
|
|
13
|
-
import { a as
|
|
5
|
+
import { useMemo as J, useLayoutEffect as U, useEffect as k, useState as M, useRef as Ke, Suspense as Ot, forwardRef as Ae, useCallback as Mt } from "react";
|
|
6
|
+
import { j, L as F, y as Kt, w as de } from "../../LexicalUtils.prod-BVZbsLIa.js";
|
|
7
|
+
import { flushSync as At, createPortal as Ft } from "react-dom";
|
|
8
|
+
import { D as Ce, _ as ye, h as zt, m as Bt } from "../../LexicalClipboard.prod-C5dHfEke.js";
|
|
9
|
+
import { W as Ee, G as we } from "../../LexicalSelection.prod-CkM-3E0b.js";
|
|
10
|
+
import { j as Fe, K as ze, i as Ut } from "../../LexicalList.prod-CzJqqstH.js";
|
|
11
|
+
import { h as Be, O as ve, N as ie, d as jt, p as Ht } from "../../LexicalLink.prod-DdERpPPj.js";
|
|
12
|
+
import { Q as Wt, d as qt, h as Jt, u as Vt, y as Ue, O as Xt, Z as Gt } from "../../LexicalTable.prod-BsmIydKv.js";
|
|
13
|
+
import { a as Qt, w as Yt, M as Zt } from "../../helpers-D13uK95u.js";
|
|
14
14
|
import { c as en } from "../../clsx-OuTLNxxd.js";
|
|
15
15
|
import { exportMap as tn, isStartingWithHtmlTag as nn, mergeBoldStrongTags as rn } from "./helpers.js";
|
|
16
|
-
import { s as
|
|
16
|
+
import { s as I } from "../../RteEditor.module-oFMKEW6f.js";
|
|
17
17
|
import { ToolBarPlugin as on } from "./Plugins/ToolbarPlugin/ToolbarPlugin.js";
|
|
18
18
|
import { useTranslation as sn } from "./hooks/useTranslation.js";
|
|
19
|
-
import "../../TablePlugin-
|
|
19
|
+
import "../../TablePlugin-DKzssVbg.js";
|
|
20
20
|
import "./Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
|
|
21
21
|
import "./hooks/components/Flyout.js";
|
|
22
22
|
import "../Buttons/Button.js";
|
|
@@ -41,7 +41,7 @@ import { UvaTheme as ln } from "./UvaTheme/UvaTheme.js";
|
|
|
41
41
|
import { EditorHeader as un } from "./EditorHeader/EditorHeader.js";
|
|
42
42
|
import { LanguageProvider as cn, useLanguage as dn } from "./Providers/LanguageProvider.js";
|
|
43
43
|
import { PasteHandlerPlugin as fn } from "./Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js";
|
|
44
|
-
const
|
|
44
|
+
const je = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, mn = je ? U : k, Y = { tag: "history-merge" };
|
|
45
45
|
function pn({ initialConfig: n, children: e }) {
|
|
46
46
|
const t = J(() => {
|
|
47
47
|
const { theme: o, namespace: i, nodes: r, onError: s, editorState: a, html: l } = n, u = Je(null, o), c = Te({ editable: n.editable, html: l, namespace: i, nodes: r, onError: (d) => s(d, c), theme: o });
|
|
@@ -52,23 +52,23 @@ function pn({ initialConfig: n, children: e }) {
|
|
|
52
52
|
if (C.isEmpty()) {
|
|
53
53
|
const y = Re();
|
|
54
54
|
C.append(y);
|
|
55
|
-
const v =
|
|
55
|
+
const v = je ? document.activeElement : null;
|
|
56
56
|
(p() !== null || v !== null && v === d.getRootElement()) && y.select();
|
|
57
57
|
}
|
|
58
|
-
},
|
|
58
|
+
}, Y);
|
|
59
59
|
else if (f !== null) switch (typeof f) {
|
|
60
60
|
case "string": {
|
|
61
61
|
const C = d.parseEditorState(f);
|
|
62
|
-
d.setEditorState(C,
|
|
62
|
+
d.setEditorState(C, Y);
|
|
63
63
|
break;
|
|
64
64
|
}
|
|
65
65
|
case "object":
|
|
66
|
-
d.setEditorState(f,
|
|
66
|
+
d.setEditorState(f, Y);
|
|
67
67
|
break;
|
|
68
68
|
case "function":
|
|
69
69
|
d.update(() => {
|
|
70
70
|
z().isEmpty() && f(d);
|
|
71
|
-
},
|
|
71
|
+
}, Y);
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
}(c, a), [c, u];
|
|
@@ -84,7 +84,7 @@ function hn(n) {
|
|
|
84
84
|
}
|
|
85
85
|
function Cn() {
|
|
86
86
|
return function(n) {
|
|
87
|
-
const [e] =
|
|
87
|
+
const [e] = T(), t = J(() => n(e), [e, n]), [o, i] = M(() => t.initialValueFn()), r = Ke(o);
|
|
88
88
|
return gn(() => {
|
|
89
89
|
const { initialValueFn: s, subscribe: a } = t, l = s();
|
|
90
90
|
return r.current !== l && (r.current = l, i(l)), a((u) => {
|
|
@@ -107,19 +107,19 @@ function wn(n) {
|
|
|
107
107
|
if (t > 1) return !1;
|
|
108
108
|
for (let o = 0; o < t; o++) {
|
|
109
109
|
const i = e[o];
|
|
110
|
-
if (
|
|
110
|
+
if (W(i)) return !1;
|
|
111
111
|
if (q(i)) {
|
|
112
112
|
if (!Xe(i) || i.__indent !== 0) return !1;
|
|
113
113
|
const r = i.getChildren(), s = r.length;
|
|
114
114
|
for (let a = 0; a < s; a++) {
|
|
115
115
|
const l = r[o];
|
|
116
|
-
if (!
|
|
116
|
+
if (!O(l)) return !1;
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
return !0;
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function He(n) {
|
|
123
123
|
return () => wn(n);
|
|
124
124
|
}
|
|
125
125
|
function vn(n) {
|
|
@@ -146,7 +146,7 @@ function vn(n) {
|
|
|
146
146
|
if (g(v)) {
|
|
147
147
|
const x = v.anchor;
|
|
148
148
|
let E = x.getNode(), w = 0, _ = 0;
|
|
149
|
-
if (
|
|
149
|
+
if (O(E) && u >= 0 && c >= 0 && (w = u, _ = u + c, v.setTextNodeRange(E, w, E, _)), w === _ && d === "" || (v.insertRawText(d), E = x.getNode()), O(E)) {
|
|
150
150
|
w = f, _ = f + C;
|
|
151
151
|
const N = E.getTextContentSize();
|
|
152
152
|
w = w > N ? N : w, _ = _ > N ? N : _, v.setTextNodeRange(E, w, E, _);
|
|
@@ -174,10 +174,10 @@ function be(n, e) {
|
|
|
174
174
|
}
|
|
175
175
|
return null;
|
|
176
176
|
}
|
|
177
|
-
const
|
|
177
|
+
const H = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, bn = H && "documentMode" in document ? document.documentMode : null, _n = !(!H || !("InputEvent" in window) || bn) && "getTargetRanges" in new window.InputEvent("input"), Sn = H && /Version\/[\d.]+.*Safari/.test(navigator.userAgent), _e = H && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, kn = H && /^(?=.*Chrome).*/i.test(navigator.userAgent), xn = H && /AppleWebKit\/[\d.]+/.test(navigator.userAgent) && !kn, Se = Ye();
|
|
178
178
|
function Z(n) {
|
|
179
179
|
let e = null;
|
|
180
|
-
if (
|
|
180
|
+
if (F(n, DragEvent) ? e = n.dataTransfer : F(n, ClipboardEvent) && (e = n.clipboardData), e === null) return [!1, [], !1];
|
|
181
181
|
const t = e.types, o = t.includes("Files"), i = t.includes("text/html") || t.includes("text/plain");
|
|
182
182
|
return [o, Array.from(e.files), i];
|
|
183
183
|
}
|
|
@@ -197,18 +197,18 @@ function ke(n) {
|
|
|
197
197
|
}
|
|
198
198
|
function ee(n) {
|
|
199
199
|
const e = ne(n);
|
|
200
|
-
return
|
|
200
|
+
return W(e);
|
|
201
201
|
}
|
|
202
202
|
function se(n) {
|
|
203
203
|
for (const e of ["lowercase", "uppercase", "capitalize"]) n.hasFormat(e) && n.toggleFormat(e);
|
|
204
204
|
}
|
|
205
205
|
function Nn(n) {
|
|
206
|
-
return
|
|
206
|
+
return j(n.registerCommand(Lt, (e) => {
|
|
207
207
|
const t = p();
|
|
208
|
-
return !!
|
|
208
|
+
return !!P(t) && (t.clear(), !0);
|
|
209
209
|
}, 0), n.registerCommand(re, (e) => {
|
|
210
210
|
const t = p();
|
|
211
|
-
return
|
|
211
|
+
return g(t) ? (t.deleteCharacter(e), !0) : !!P(t) && (t.deleteNodes(), !0);
|
|
212
212
|
}, m), n.registerCommand(Nt, (e) => {
|
|
213
213
|
const t = p();
|
|
214
214
|
return !!g(t) && (t.deleteWord(e), !0);
|
|
@@ -236,7 +236,7 @@ function Nn(n) {
|
|
|
236
236
|
return !!g(t) && (t.formatText(e), !0);
|
|
237
237
|
}, m), n.registerCommand(bt, (e) => {
|
|
238
238
|
const t = p();
|
|
239
|
-
if (!g(t) && !
|
|
239
|
+
if (!g(t) && !P(t)) return !1;
|
|
240
240
|
const o = t.getNodes();
|
|
241
241
|
for (const i of o) {
|
|
242
242
|
const r = de(i, (s) => q(s) && !s.isInline());
|
|
@@ -257,17 +257,17 @@ function Nn(n) {
|
|
|
257
257
|
t > 0 && e.setIndent(t - 1);
|
|
258
258
|
}), m), n.registerCommand(Ct, (e) => {
|
|
259
259
|
const t = p();
|
|
260
|
-
if (
|
|
260
|
+
if (P(t) && !ee(e.target)) {
|
|
261
261
|
const o = t.getNodes();
|
|
262
262
|
if (o.length > 0) return o[0].selectPrevious(), !0;
|
|
263
263
|
} else if (g(t)) {
|
|
264
264
|
const o = ge(t.focus, !0);
|
|
265
|
-
if (!e.shiftKey &&
|
|
265
|
+
if (!e.shiftKey && W(o) && !o.isIsolated() && !o.isInline()) return o.selectPrevious(), e.preventDefault(), !0;
|
|
266
266
|
}
|
|
267
267
|
return !1;
|
|
268
268
|
}, m), n.registerCommand(ht, (e) => {
|
|
269
269
|
const t = p();
|
|
270
|
-
if (
|
|
270
|
+
if (P(t)) {
|
|
271
271
|
const o = t.getNodes();
|
|
272
272
|
if (o.length > 0) return o[0].selectNext(0, 0), !0;
|
|
273
273
|
} else if (g(t)) {
|
|
@@ -276,12 +276,12 @@ function Nn(n) {
|
|
|
276
276
|
return r.key === "root" && r.offset === z().getChildrenSize();
|
|
277
277
|
}(t)) return e.preventDefault(), !0;
|
|
278
278
|
const o = ge(t.focus, !1);
|
|
279
|
-
if (!e.shiftKey &&
|
|
279
|
+
if (!e.shiftKey && W(o) && !o.isIsolated() && !o.isInline()) return o.selectNext(), e.preventDefault(), !0;
|
|
280
280
|
}
|
|
281
281
|
return !1;
|
|
282
282
|
}, m), n.registerCommand(gt, (e) => {
|
|
283
283
|
const t = p();
|
|
284
|
-
if (
|
|
284
|
+
if (P(t)) {
|
|
285
285
|
const o = t.getNodes();
|
|
286
286
|
if (o.length > 0) return e.preventDefault(), o[0].selectPrevious(), !0;
|
|
287
287
|
}
|
|
@@ -293,7 +293,7 @@ function Nn(n) {
|
|
|
293
293
|
return !1;
|
|
294
294
|
}, m), n.registerCommand(pt, (e) => {
|
|
295
295
|
const t = p();
|
|
296
|
-
if (
|
|
296
|
+
if (P(t) && !ee(e.target)) {
|
|
297
297
|
const i = t.getNodes();
|
|
298
298
|
if (i.length > 0) return e.preventDefault(), i[0].selectNext(0, 0), !0;
|
|
299
299
|
}
|
|
@@ -303,13 +303,17 @@ function Nn(n) {
|
|
|
303
303
|
}, m), n.registerCommand(mt, (e) => {
|
|
304
304
|
if (ee(e.target)) return !1;
|
|
305
305
|
const t = p();
|
|
306
|
-
if (
|
|
307
|
-
|
|
308
|
-
|
|
306
|
+
if (g(t)) {
|
|
307
|
+
const { anchor: o } = t, i = o.getNode();
|
|
308
|
+
if (t.isCollapsed() && o.offset === 0 && !Me(i) && Kt(i).getIndent() > 0)
|
|
309
|
+
return e.preventDefault(), n.dispatchCommand(pe, void 0);
|
|
310
|
+
if (_e && navigator.language === "ko-KR") return !1;
|
|
311
|
+
} else if (!P(t)) return !1;
|
|
312
|
+
return e.preventDefault(), n.dispatchCommand(re, !0);
|
|
309
313
|
}, m), n.registerCommand(ft, (e) => {
|
|
310
314
|
if (ee(e.target)) return !1;
|
|
311
315
|
const t = p();
|
|
312
|
-
return
|
|
316
|
+
return !(!g(t) && !P(t)) && (e.preventDefault(), n.dispatchCommand(re, !1));
|
|
313
317
|
}, m), n.registerCommand(dt, (e) => {
|
|
314
318
|
const t = p();
|
|
315
319
|
if (!g(t)) return !1;
|
|
@@ -329,7 +333,7 @@ function Nn(n) {
|
|
|
329
333
|
const { offset: r, node: s } = i, a = ne(s);
|
|
330
334
|
if (a !== null) {
|
|
331
335
|
const l = at();
|
|
332
|
-
if (
|
|
336
|
+
if (O(a)) l.anchor.set(a.getKey(), r, "text"), l.focus.set(a.getKey(), r, "text");
|
|
333
337
|
else {
|
|
334
338
|
const c = a.getParentOrThrow().getKey(), d = a.getIndexWithinParent() + 1;
|
|
335
339
|
l.anchor.set(c, d, "element"), l.focus.set(c, d, "element");
|
|
@@ -352,23 +356,23 @@ function Nn(n) {
|
|
|
352
356
|
const i = be(e.clientX, e.clientY);
|
|
353
357
|
if (i !== null) {
|
|
354
358
|
const r = ne(i.node);
|
|
355
|
-
|
|
359
|
+
W(r) && e.preventDefault();
|
|
356
360
|
}
|
|
357
361
|
return !0;
|
|
358
|
-
}, m), n.registerCommand(nt, () => (rt(), !0), m), n.registerCommand(tt, (e) => (ye(n,
|
|
359
|
-
await ye(o,
|
|
362
|
+
}, m), n.registerCommand(nt, () => (rt(), !0), m), n.registerCommand(tt, (e) => (ye(n, F(e, ClipboardEvent) ? e : null), !0), m), n.registerCommand(et, (e) => (async function(t, o) {
|
|
363
|
+
await ye(o, F(t, ClipboardEvent) ? t : null), o.update(() => {
|
|
360
364
|
const i = p();
|
|
361
|
-
g(i) ? i.removeText() :
|
|
365
|
+
g(i) ? i.removeText() : P(i) && i.getNodes().forEach((r) => r.remove());
|
|
362
366
|
});
|
|
363
367
|
}(e, n), !0), m), n.registerCommand(Ie, (e) => {
|
|
364
368
|
const [, t, o] = Z(e);
|
|
365
|
-
return t.length > 0 && !o ? (n.dispatchCommand(Se, t), !0) :
|
|
369
|
+
return t.length > 0 && !o ? (n.dispatchCommand(Se, t), !0) : Oe(e.target) && Ze(e.target) ? !1 : p() !== null && (function(i, r) {
|
|
366
370
|
i.preventDefault(), r.update(() => {
|
|
367
|
-
const s = p(), a =
|
|
371
|
+
const s = p(), a = F(i, InputEvent) || F(i, KeyboardEvent) ? null : i.clipboardData;
|
|
368
372
|
a != null && s !== null && Ce(a, s, r);
|
|
369
373
|
}, { tag: "paste" });
|
|
370
374
|
}(e, n), !0);
|
|
371
|
-
}, m), n.registerCommand(
|
|
375
|
+
}, m), n.registerCommand(Qe, (e) => {
|
|
372
376
|
const t = p();
|
|
373
377
|
return g(t) && se(t), !1;
|
|
374
378
|
}, m), n.registerCommand(Ge, (e) => {
|
|
@@ -378,13 +382,13 @@ function Nn(n) {
|
|
|
378
382
|
}
|
|
379
383
|
const ae = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? U : k;
|
|
380
384
|
function xe(n) {
|
|
381
|
-
return n.getEditorState().read(
|
|
385
|
+
return n.getEditorState().read(He(n.isComposing()));
|
|
382
386
|
}
|
|
383
387
|
function Ln({ contentEditable: n, placeholder: e = null, ErrorBoundary: t }) {
|
|
384
|
-
const [o] =
|
|
388
|
+
const [o] = T(), i = function(r, s) {
|
|
385
389
|
const [a, l] = M(() => r.getDecorators());
|
|
386
390
|
return ae(() => r.registerDecoratorListener((u) => {
|
|
387
|
-
|
|
391
|
+
At(() => {
|
|
388
392
|
l(u);
|
|
389
393
|
});
|
|
390
394
|
}), [r]), k(() => {
|
|
@@ -392,25 +396,25 @@ function Ln({ contentEditable: n, placeholder: e = null, ErrorBoundary: t }) {
|
|
|
392
396
|
}, [r]), J(() => {
|
|
393
397
|
const u = [], c = Object.keys(a);
|
|
394
398
|
for (let d = 0; d < c.length; d++) {
|
|
395
|
-
const f = c[d], C = h(s, { onError: (v) => r._onError(v), children: h(
|
|
396
|
-
y !== null && u.push(
|
|
399
|
+
const f = c[d], C = h(s, { onError: (v) => r._onError(v), children: h(Ot, { fallback: null, children: a[f] }) }), y = r.getElementByKey(f);
|
|
400
|
+
y !== null && u.push(Ft(C, y, f));
|
|
397
401
|
}
|
|
398
402
|
return u;
|
|
399
403
|
}, [s, a, r]);
|
|
400
404
|
}(o, t);
|
|
401
405
|
return function(r) {
|
|
402
|
-
ae(() =>
|
|
403
|
-
}(o),
|
|
406
|
+
ae(() => j(Nn(r), vn(r)), [r]);
|
|
407
|
+
}(o), A(Pe, { children: [n, h(Dn, { content: e }), i] });
|
|
404
408
|
}
|
|
405
409
|
function Dn({ content: n }) {
|
|
406
|
-
const [e] =
|
|
410
|
+
const [e] = T(), t = function(i) {
|
|
407
411
|
const [r, s] = M(() => xe(i));
|
|
408
412
|
return ae(() => {
|
|
409
413
|
function a() {
|
|
410
414
|
const l = xe(i);
|
|
411
415
|
s(l);
|
|
412
416
|
}
|
|
413
|
-
return a(),
|
|
417
|
+
return a(), j(i.registerUpdateListener(() => {
|
|
414
418
|
a();
|
|
415
419
|
}), i.registerEditableListener(() => {
|
|
416
420
|
a();
|
|
@@ -419,9 +423,9 @@ function Dn({ content: n }) {
|
|
|
419
423
|
}(e), o = Cn();
|
|
420
424
|
return t ? typeof n == "function" ? n(o) : n : null;
|
|
421
425
|
}
|
|
422
|
-
const
|
|
426
|
+
const We = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? U : k;
|
|
423
427
|
function $n({ editor: n, ariaActiveDescendant: e, ariaAutoComplete: t, ariaControls: o, ariaDescribedBy: i, ariaErrorMessage: r, ariaExpanded: s, ariaInvalid: a, ariaLabel: l, ariaLabelledBy: u, ariaMultiline: c, ariaOwns: d, ariaRequired: f, autoCapitalize: C, className: y, id: v, role: x = "textbox", spellCheck: E = !0, style: w, tabIndex: _, "data-testid": N, ...b }, L) {
|
|
424
|
-
const [S,
|
|
428
|
+
const [S, R] = M(n.isEditable()), K = Mt((D) => {
|
|
425
429
|
D && D.ownerDocument && D.ownerDocument.defaultView ? n.setRootElement(D) : n.setRootElement(null);
|
|
426
430
|
}, [n]), B = J(() => /* @__PURE__ */ function(...D) {
|
|
427
431
|
return (V) => {
|
|
@@ -429,29 +433,29 @@ function $n({ editor: n, ariaActiveDescendant: e, ariaAutoComplete: t, ariaContr
|
|
|
429
433
|
typeof X == "function" ? X(V) : X != null && (X.current = V);
|
|
430
434
|
});
|
|
431
435
|
};
|
|
432
|
-
}(L,
|
|
433
|
-
return
|
|
434
|
-
|
|
436
|
+
}(L, K), [K, L]);
|
|
437
|
+
return We(() => (R(n.isEditable()), n.registerEditableListener((D) => {
|
|
438
|
+
R(D);
|
|
435
439
|
})), [n]), h("div", { "aria-activedescendant": S ? e : void 0, "aria-autocomplete": S ? t : "none", "aria-controls": S ? o : void 0, "aria-describedby": i, ...r != null ? { "aria-errormessage": r } : {}, "aria-expanded": S && x === "combobox" ? !!s : void 0, ...a != null ? { "aria-invalid": a } : {}, "aria-label": l, "aria-labelledby": u, "aria-multiline": c, "aria-owns": S ? d : void 0, "aria-readonly": !S || void 0, "aria-required": f, autoCapitalize: C, className: y, contentEditable: S, "data-testid": N, id: v, ref: B, role: S ? x : void 0, spellCheck: E, style: w, tabIndex: _, ...b });
|
|
436
440
|
}
|
|
437
|
-
const Pn =
|
|
441
|
+
const Pn = Ae($n);
|
|
438
442
|
function Ne(n) {
|
|
439
|
-
return n.getEditorState().read(
|
|
443
|
+
return n.getEditorState().read(He(n.isComposing()));
|
|
440
444
|
}
|
|
441
|
-
const Tn =
|
|
445
|
+
const Tn = Ae(Rn);
|
|
442
446
|
function Rn(n, e) {
|
|
443
|
-
const { placeholder: t, ...o } = n, [i] =
|
|
444
|
-
return
|
|
447
|
+
const { placeholder: t, ...o } = n, [i] = T();
|
|
448
|
+
return A(Pe, { children: [h(Pn, { editor: i, ...o, ref: e }), t != null && h(In, { editor: i, content: t })] });
|
|
445
449
|
}
|
|
446
450
|
function In({ content: n, editor: e }) {
|
|
447
451
|
const t = function(s) {
|
|
448
452
|
const [a, l] = M(() => Ne(s));
|
|
449
|
-
return
|
|
453
|
+
return We(() => {
|
|
450
454
|
function u() {
|
|
451
455
|
const c = Ne(s);
|
|
452
456
|
l(c);
|
|
453
457
|
}
|
|
454
|
-
return u(),
|
|
458
|
+
return u(), j(s.registerUpdateListener(() => {
|
|
455
459
|
u();
|
|
456
460
|
}), s.registerEditableListener(() => {
|
|
457
461
|
u();
|
|
@@ -469,7 +473,7 @@ function le(n, e) {
|
|
|
469
473
|
return t.__proto__ = o, t;
|
|
470
474
|
}, le(n, e);
|
|
471
475
|
}
|
|
472
|
-
var Le = { error: null },
|
|
476
|
+
var Le = { error: null }, On = function(n) {
|
|
473
477
|
var e, t;
|
|
474
478
|
function o() {
|
|
475
479
|
for (var r, s = arguments.length, a = new Array(s), l = 0; l < s; l++) a[l] = arguments[l];
|
|
@@ -504,31 +508,31 @@ var Le = { error: null }, Mn = function(n) {
|
|
|
504
508
|
return this.props.children;
|
|
505
509
|
}, o;
|
|
506
510
|
}(oe.Component);
|
|
507
|
-
function
|
|
508
|
-
return h(
|
|
511
|
+
function Mn({ children: n, onError: e }) {
|
|
512
|
+
return h(On, { fallback: h("div", { style: { border: "1px solid #f00", color: "#f00", padding: "8px" }, children: "An error was thrown." }), onError: e, children: n });
|
|
509
513
|
}
|
|
510
514
|
const Kn = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? U : k;
|
|
511
|
-
function
|
|
512
|
-
const [o] =
|
|
515
|
+
function An({ ignoreHistoryMergeTagChange: n = !0, ignoreSelectionChange: e = !1, onChange: t }) {
|
|
516
|
+
const [o] = T();
|
|
513
517
|
return Kn(() => {
|
|
514
518
|
if (t) return o.registerUpdateListener(({ editorState: i, dirtyElements: r, dirtyLeaves: s, prevEditorState: a, tags: l }) => {
|
|
515
519
|
e && r.size === 0 && s.size === 0 || n && l.has("history-merge") || a.isEmpty() || t(i, o, l);
|
|
516
520
|
});
|
|
517
521
|
}, [o, n, e, t]), null;
|
|
518
522
|
}
|
|
519
|
-
function
|
|
520
|
-
const [n] =
|
|
523
|
+
function Fn() {
|
|
524
|
+
const [n] = T();
|
|
521
525
|
return k(() => {
|
|
522
|
-
if (!n.hasNodes([
|
|
526
|
+
if (!n.hasNodes([Fe, ze])) throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor");
|
|
523
527
|
}, [n]), function(e) {
|
|
524
528
|
k(() => Ut(e), [e]);
|
|
525
529
|
}(n), null;
|
|
526
530
|
}
|
|
527
531
|
function zn({ validateUrl: n, attributes: e }) {
|
|
528
|
-
const [t] =
|
|
532
|
+
const [t] = T();
|
|
529
533
|
return k(() => {
|
|
530
534
|
if (!t.hasNodes([Be])) throw new Error("LinkPlugin: LinkNode not registered on editor");
|
|
531
|
-
return
|
|
535
|
+
return j(t.registerCommand(ve, (o) => {
|
|
532
536
|
if (o === null) return ie(o), !0;
|
|
533
537
|
if (typeof o == "string") return !(n !== void 0 && !n(o)) && (ie(o, e), !0);
|
|
534
538
|
{
|
|
@@ -537,21 +541,19 @@ function zn({ validateUrl: n, attributes: e }) {
|
|
|
537
541
|
}
|
|
538
542
|
}, he), n !== void 0 ? t.registerCommand(Ie, (o) => {
|
|
539
543
|
const i = p();
|
|
540
|
-
if (!g(i) || i.isCollapsed() || !
|
|
541
|
-
const r = o;
|
|
542
|
-
|
|
543
|
-
const s = r.clipboardData.getData("text");
|
|
544
|
-
return !!n(s) && !i.getNodes().some((a) => q(a)) && (t.dispatchCommand(ve, { ...e, url: s }), o.preventDefault(), !0);
|
|
544
|
+
if (!g(i) || i.isCollapsed() || !F(o, ClipboardEvent) || o.clipboardData === null) return !1;
|
|
545
|
+
const r = o.clipboardData.getData("text");
|
|
546
|
+
return !!n(r) && !i.getNodes().some((s) => q(s)) && (t.dispatchCommand(ve, { ...e, url: r }), o.preventDefault(), !0);
|
|
545
547
|
}, he) : () => {
|
|
546
548
|
});
|
|
547
549
|
}, [t, n, e]), null;
|
|
548
550
|
}
|
|
549
551
|
function Bn({ newTab: n = !0, disabled: e = !1 }) {
|
|
550
|
-
const [t] =
|
|
552
|
+
const [t] = T();
|
|
551
553
|
return k(() => {
|
|
552
554
|
const o = (r) => {
|
|
553
555
|
const s = r.target;
|
|
554
|
-
if (!
|
|
556
|
+
if (!Oe(s)) return;
|
|
555
557
|
const a = Dt(s);
|
|
556
558
|
if (a === null) return;
|
|
557
559
|
let l = null, u = null;
|
|
@@ -559,7 +561,7 @@ function Bn({ newTab: n = !0, disabled: e = !1 }) {
|
|
|
559
561
|
const f = ne(s);
|
|
560
562
|
if (f !== null) {
|
|
561
563
|
const C = de(f, q);
|
|
562
|
-
if (!e) if (
|
|
564
|
+
if (!e) if (jt(C)) l = C.sanitizeUrl(C.getURL()), u = C.getTarget();
|
|
563
565
|
else {
|
|
564
566
|
const y = function(v, x) {
|
|
565
567
|
let E = v;
|
|
@@ -585,8 +587,8 @@ function Bn({ newTab: n = !0, disabled: e = !1 }) {
|
|
|
585
587
|
});
|
|
586
588
|
}, [t, n, e]), null;
|
|
587
589
|
}
|
|
588
|
-
const te = 0, ue = 1, ce = 2, $ = 0, Un = 1, De = 2,
|
|
589
|
-
function
|
|
590
|
+
const te = 0, ue = 1, ce = 2, $ = 0, Un = 1, De = 2, jn = 3, Hn = 4;
|
|
591
|
+
function Wn(n, e, t, o, i) {
|
|
590
592
|
if (n === null || t.size === 0 && o.size === 0 && !i) return $;
|
|
591
593
|
const r = e._selection, s = n._selection;
|
|
592
594
|
if (i) return Un;
|
|
@@ -599,38 +601,38 @@ function jn(n, e, t, o, i) {
|
|
|
599
601
|
}
|
|
600
602
|
for (const [L, S] of _) {
|
|
601
603
|
if (!S) continue;
|
|
602
|
-
const
|
|
603
|
-
|
|
604
|
+
const R = N.get(L);
|
|
605
|
+
R === void 0 || Me(R) || b.push(R);
|
|
604
606
|
}
|
|
605
607
|
return b;
|
|
606
608
|
}(e, t, o);
|
|
607
609
|
if (a.length === 0) return $;
|
|
608
610
|
if (a.length > 1) {
|
|
609
611
|
const E = e._nodeMap, w = E.get(r.anchor.key), _ = E.get(s.anchor.key);
|
|
610
|
-
return w && _ && !n._nodeMap.has(w.__key) &&
|
|
612
|
+
return w && _ && !n._nodeMap.has(w.__key) && O(w) && w.__text.length === 1 && r.anchor.offset === 1 ? De : $;
|
|
611
613
|
}
|
|
612
614
|
const l = a[0], u = n._nodeMap.get(l.__key);
|
|
613
|
-
if (!
|
|
615
|
+
if (!O(u) || !O(l) || u.__mode !== l.__mode) return $;
|
|
614
616
|
const c = u.__text, d = l.__text;
|
|
615
617
|
if (c === d) return $;
|
|
616
618
|
const f = r.anchor, C = s.anchor;
|
|
617
619
|
if (f.key !== C.key || f.type !== "text") return $;
|
|
618
620
|
const y = f.offset, v = C.offset, x = d.length - c.length;
|
|
619
|
-
return x === 1 && v === y - 1 ? De : x === -1 && v === y + 1 ?
|
|
621
|
+
return x === 1 && v === y - 1 ? De : x === -1 && v === y + 1 ? jn : x === -1 && v === y ? Hn : $;
|
|
620
622
|
}
|
|
621
623
|
function qn(n, e) {
|
|
622
624
|
let t = Date.now(), o = $;
|
|
623
625
|
return (i, r, s, a, l, u) => {
|
|
624
626
|
const c = Date.now();
|
|
625
627
|
if (u.has("historic")) return o = $, t = c, ce;
|
|
626
|
-
const d =
|
|
628
|
+
const d = Wn(i, r, a, l, n.isComposing()), f = (() => {
|
|
627
629
|
const C = s === null || s.editor === n, y = u.has("history-push");
|
|
628
630
|
if (!y && C && u.has("history-merge")) return te;
|
|
629
631
|
if (i === null) return ue;
|
|
630
632
|
const v = r._selection;
|
|
631
633
|
return a.size > 0 || l.size > 0 ? y === !1 && d !== $ && d === o && c < t + e && C || a.size === 1 && function(x, E, w) {
|
|
632
634
|
const _ = E._nodeMap.get(x), N = w._nodeMap.get(x), b = E._selection, L = w._selection;
|
|
633
|
-
return !(g(b) && g(L) && b.anchor.type === "element" && b.focus.type === "element" && L.anchor.type === "text" && L.focus.type === "text" || !
|
|
635
|
+
return !(g(b) && g(L) && b.anchor.type === "element" && b.focus.type === "element" && L.anchor.type === "text" && L.focus.type === "text" || !O(_) || !O(N) || _.__parent !== N.__parent) && JSON.stringify(E.read(() => _.exportJSON())) === JSON.stringify(w.read(() => N.exportJSON()));
|
|
634
636
|
}(Array.from(a)[0], i, r) ? te : ue : v !== null ? te : ce;
|
|
635
637
|
})();
|
|
636
638
|
return t = c, o = d, f;
|
|
@@ -641,25 +643,25 @@ function $e(n) {
|
|
|
641
643
|
}
|
|
642
644
|
function Jn(n, e, t) {
|
|
643
645
|
const o = qn(n, t);
|
|
644
|
-
return
|
|
646
|
+
return j(n.registerCommand(It, () => (function(r, s) {
|
|
645
647
|
const a = s.redoStack, l = s.undoStack;
|
|
646
648
|
if (l.length !== 0) {
|
|
647
649
|
const u = s.current, c = l.pop();
|
|
648
|
-
u !== null && (a.push(u), r.dispatchCommand(G, !0)), l.length === 0 && r.dispatchCommand(
|
|
650
|
+
u !== null && (a.push(u), r.dispatchCommand(G, !0)), l.length === 0 && r.dispatchCommand(Q, !1), s.current = c || null, c && c.editor.setEditorState(c.editorState, { tag: "historic" });
|
|
649
651
|
}
|
|
650
652
|
}(n, e), !0), m), n.registerCommand(Rt, () => (function(r, s) {
|
|
651
653
|
const a = s.redoStack, l = s.undoStack;
|
|
652
654
|
if (a.length !== 0) {
|
|
653
655
|
const u = s.current;
|
|
654
|
-
u !== null && (l.push(u), r.dispatchCommand(
|
|
656
|
+
u !== null && (l.push(u), r.dispatchCommand(Q, !0));
|
|
655
657
|
const c = a.pop();
|
|
656
658
|
a.length === 0 && r.dispatchCommand(G, !1), s.current = c || null, c && c.editor.setEditorState(c.editorState, { tag: "historic" });
|
|
657
659
|
}
|
|
658
|
-
}(n, e), !0), m), n.registerCommand(Tt, () => ($e(e), !1), m), n.registerCommand(Pt, () => ($e(e), n.dispatchCommand(G, !1), n.dispatchCommand(
|
|
660
|
+
}(n, e), !0), m), n.registerCommand(Tt, () => ($e(e), !1), m), n.registerCommand(Pt, () => ($e(e), n.dispatchCommand(G, !1), n.dispatchCommand(Q, !1), !0), m), n.registerUpdateListener(({ editorState: r, prevEditorState: s, dirtyLeaves: a, dirtyElements: l, tags: u }) => {
|
|
659
661
|
const c = e.current, d = e.redoStack, f = e.undoStack, C = c === null ? null : c.editorState;
|
|
660
662
|
if (c !== null && r === C) return;
|
|
661
663
|
const y = o(s, r, c, a, l, u);
|
|
662
|
-
if (y === ue) d.length !== 0 && (e.redoStack = [], n.dispatchCommand(G, !1)), c !== null && (f.push({ ...c }), n.dispatchCommand(
|
|
664
|
+
if (y === ue) d.length !== 0 && (e.redoStack = [], n.dispatchCommand(G, !1)), c !== null && (f.push({ ...c }), n.dispatchCommand(Q, !0));
|
|
663
665
|
else if (y === ce) return;
|
|
664
666
|
e.current = { editor: n, editorState: r };
|
|
665
667
|
}));
|
|
@@ -668,16 +670,16 @@ function Vn() {
|
|
|
668
670
|
return { current: null, redoStack: [], undoStack: [] };
|
|
669
671
|
}
|
|
670
672
|
function Xn({ delay: n, externalHistoryState: e }) {
|
|
671
|
-
const [t] =
|
|
673
|
+
const [t] = T();
|
|
672
674
|
return function(o, i, r = 1e3) {
|
|
673
675
|
const s = J(() => i || Vn(), [i]);
|
|
674
676
|
k(() => Jn(o, s, r), [r, o, s]);
|
|
675
677
|
}(t, e, n), null;
|
|
676
678
|
}
|
|
677
679
|
function Gn({ hasCellMerge: n = !0, hasCellBackgroundColor: e = !0, hasTabHandler: t = !0, hasHorizontalScroll: o = !1 }) {
|
|
678
|
-
const [i] =
|
|
680
|
+
const [i] = T();
|
|
679
681
|
return k(() => {
|
|
680
|
-
|
|
682
|
+
Wt(i, o);
|
|
681
683
|
}, [i, o]), k(() => qt(i), [i]), k(() => Jt(i, t), [i, t]), k(() => {
|
|
682
684
|
if (!n) return Vt(i);
|
|
683
685
|
}, [i, n]), k(() => {
|
|
@@ -686,7 +688,7 @@ function Gn({ hasCellMerge: n = !0, hasCellBackgroundColor: e = !0, hasTabHandle
|
|
|
686
688
|
});
|
|
687
689
|
}, [i, e, n]), null;
|
|
688
690
|
}
|
|
689
|
-
const qe = 200,
|
|
691
|
+
const qe = 200, Qn = ({
|
|
690
692
|
currentLanguage: n = "NL",
|
|
691
693
|
initialValue: e = "",
|
|
692
694
|
placeholder: t = "",
|
|
@@ -708,17 +710,17 @@ const qe = 200, Yn = ({
|
|
|
708
710
|
onError(b) {
|
|
709
711
|
throw b;
|
|
710
712
|
},
|
|
711
|
-
nodes: [
|
|
713
|
+
nodes: [Fe, ze, Be, Ht, Ue, Xt, Gt],
|
|
712
714
|
editorState: (b) => {
|
|
713
|
-
const S = new DOMParser().parseFromString(e, "text/html"),
|
|
714
|
-
if (
|
|
715
|
-
|
|
716
|
-
|
|
715
|
+
const S = new DOMParser().parseFromString(e, "text/html"), R = zt(b, S), K = z();
|
|
716
|
+
if (K.clear(), nn(e))
|
|
717
|
+
R.forEach((B) => {
|
|
718
|
+
K.append(B);
|
|
717
719
|
});
|
|
718
720
|
else {
|
|
719
721
|
const B = Re();
|
|
720
|
-
|
|
721
|
-
V === 0 ? (B.append(D),
|
|
722
|
+
R.forEach((D, V) => {
|
|
723
|
+
V === 0 ? (B.append(D), K.append(B)) : K.append(D);
|
|
722
724
|
});
|
|
723
725
|
}
|
|
724
726
|
}
|
|
@@ -733,29 +735,29 @@ const qe = 200, Yn = ({
|
|
|
733
735
|
}, [n, c]), k(() => {
|
|
734
736
|
const b = e.replace(/<br\s*\/?>| /gi, " ").replace(/<\/?[^>]+(>|$)|&[a-z]+;/g, "").replace(/\s+/g, " ").trim();
|
|
735
737
|
y(_(b));
|
|
736
|
-
}, []), /* @__PURE__ */
|
|
737
|
-
/* @__PURE__ */
|
|
738
|
+
}, []), /* @__PURE__ */ A("div", { className: I.editor__container, children: [
|
|
739
|
+
/* @__PURE__ */ A("div", { className: I.editor__header, children: [
|
|
738
740
|
/* @__PURE__ */ h(un, { label: o, info: i, required: r }),
|
|
739
|
-
/* @__PURE__ */
|
|
740
|
-
/* @__PURE__ */ h("span", { className: en({ [
|
|
741
|
+
/* @__PURE__ */ A("div", { className: I["editor__header-word-count"], children: [
|
|
742
|
+
/* @__PURE__ */ h("span", { className: en({ [I["editor__header-word-count--alert"]]: C > l }), children: C }),
|
|
741
743
|
" / ",
|
|
742
744
|
l
|
|
743
745
|
] })
|
|
744
746
|
] }),
|
|
745
|
-
/* @__PURE__ */ h("div", { className:
|
|
747
|
+
/* @__PURE__ */ h("div", { className: I.editor, children: /* @__PURE__ */ A(pn, { initialConfig: w, children: [
|
|
746
748
|
/* @__PURE__ */ h(on, { editorScrollPosition: v }),
|
|
747
|
-
/* @__PURE__ */
|
|
749
|
+
/* @__PURE__ */ A("div", { className: I["editor__field-wrapper"], children: [
|
|
748
750
|
/* @__PURE__ */ h(
|
|
749
751
|
Ln,
|
|
750
752
|
{
|
|
751
753
|
contentEditable: /* @__PURE__ */ h(
|
|
752
754
|
Tn,
|
|
753
755
|
{
|
|
754
|
-
className:
|
|
756
|
+
className: I.editor__field,
|
|
755
757
|
"aria-label": d.common.rteAriaLabel,
|
|
756
758
|
"aria-placeholder": t,
|
|
757
759
|
title: d.common.rteTitle,
|
|
758
|
-
placeholder: /* @__PURE__ */ h("div", { className:
|
|
760
|
+
placeholder: /* @__PURE__ */ h("div", { className: I.editor__placeholder, children: t }),
|
|
759
761
|
spellCheck: !1,
|
|
760
762
|
id: "rteEditor",
|
|
761
763
|
style: { height: `${a}`, maxHeight: `${a}` },
|
|
@@ -763,17 +765,17 @@ const qe = 200, Yn = ({
|
|
|
763
765
|
ref: E
|
|
764
766
|
}
|
|
765
767
|
),
|
|
766
|
-
placeholder: /* @__PURE__ */ h("div", { className:
|
|
767
|
-
ErrorBoundary:
|
|
768
|
+
placeholder: /* @__PURE__ */ h("div", { className: I.editor__placeholder, children: t }),
|
|
769
|
+
ErrorBoundary: Mn
|
|
768
770
|
}
|
|
769
771
|
),
|
|
770
772
|
/* @__PURE__ */ h(Gn, {}),
|
|
771
773
|
/* @__PURE__ */ h(Xn, {}),
|
|
772
|
-
/* @__PURE__ */ h(
|
|
773
|
-
/* @__PURE__ */ h(zn, { validateUrl:
|
|
774
|
-
/* @__PURE__ */ h(
|
|
774
|
+
/* @__PURE__ */ h(Fn, {}),
|
|
775
|
+
/* @__PURE__ */ h(zn, { validateUrl: Qt }),
|
|
776
|
+
/* @__PURE__ */ h(Yt, { matchers: Zt }),
|
|
775
777
|
/* @__PURE__ */ h(Bn, {}),
|
|
776
|
-
/* @__PURE__ */ h(
|
|
778
|
+
/* @__PURE__ */ h(An, { onChange: N }),
|
|
777
779
|
/* @__PURE__ */ h(fn, {})
|
|
778
780
|
] })
|
|
779
781
|
] }) }),
|
|
@@ -790,7 +792,7 @@ const qe = 200, Yn = ({
|
|
|
790
792
|
maxWords: a = qe,
|
|
791
793
|
onChange: l
|
|
792
794
|
}) => /* @__PURE__ */ h(cn, { children: /* @__PURE__ */ h(
|
|
793
|
-
|
|
795
|
+
Qn,
|
|
794
796
|
{
|
|
795
797
|
currentLanguage: n,
|
|
796
798
|
initialValue: e,
|
|
@@ -804,7 +806,7 @@ const qe = 200, Yn = ({
|
|
|
804
806
|
}
|
|
805
807
|
) });
|
|
806
808
|
export {
|
|
807
|
-
|
|
809
|
+
Qn as Rte,
|
|
808
810
|
zr as RteEditor
|
|
809
811
|
};
|
|
810
812
|
//# sourceMappingURL=RteEditor.js.map
|