@uva-glass/component-library 3.41.1 → 3.42.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-7x3WP3vd.js → Lexical.prod-C1B_JvcI.js} +100 -99
- package/dist/Lexical.prod-C1B_JvcI.js.map +1 -0
- package/dist/{LexicalClipboard.prod-BMLLh6JL.js → LexicalClipboard.prod-Dd64YQH0.js} +10 -10
- package/dist/{LexicalClipboard.prod-BMLLh6JL.js.map → LexicalClipboard.prod-Dd64YQH0.js.map} +1 -1
- package/dist/{LexicalLink.prod-Dr6L083o.js → LexicalLink.prod-ldhpNY9X.js} +3 -3
- package/dist/{LexicalLink.prod-Dr6L083o.js.map → LexicalLink.prod-ldhpNY9X.js.map} +1 -1
- package/dist/{LexicalList.prod-nl__pKjG.js → LexicalList.prod-7DmvPZ_J.js} +4 -4
- package/dist/{LexicalList.prod-nl__pKjG.js.map → LexicalList.prod-7DmvPZ_J.js.map} +1 -1
- package/dist/{LexicalSelection.prod-CB_xP0pP.js → LexicalSelection.prod-Dmiwka3x.js} +5 -5
- package/dist/{LexicalSelection.prod-CB_xP0pP.js.map → LexicalSelection.prod-Dmiwka3x.js.map} +1 -1
- package/dist/{LexicalTable.prod-CwkGGOke.js → LexicalTable.prod-iqHmKv_G.js} +666 -625
- package/dist/LexicalTable.prod-iqHmKv_G.js.map +1 -0
- package/dist/LexicalUtils.prod-w0fZ_Z8S.js +123 -0
- package/dist/{LexicalUtils.prod-CtYaCJNB.js.map → LexicalUtils.prod-w0fZ_Z8S.js.map} +1 -1
- package/dist/RteEditor.module-dE9wQTC9.js +42 -0
- package/dist/RteEditor.module-dE9wQTC9.js.map +1 -0
- package/dist/TableCellResizerPlugin-D6jjhYoD.js +239 -0
- package/dist/TableCellResizerPlugin-D6jjhYoD.js.map +1 -0
- package/dist/TablePlugin-cMMBdz-x.js +306 -0
- package/dist/TablePlugin-cMMBdz-x.js.map +1 -0
- package/dist/assets/RteEditor.css +1 -1
- package/dist/assets/TableCellResizerPlugin.css +1 -0
- package/dist/components/CheckboxTree/CheckboxTree.js +9 -8
- package/dist/components/CheckboxTree/CheckboxTree.js.map +1 -1
- package/dist/components/FormInput/FormInput.js +4 -3
- package/dist/components/FormInput/FormInput.js.map +1 -1
- package/dist/components/InputField/InputField.stories.js +4 -3
- package/dist/components/InputField/InputField.stories.js.map +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 +3 -2
- package/dist/components/MultiSelect/components/MultiSelectHeader.js.map +1 -1
- package/dist/components/MultiSelect/index.js +1 -1
- package/dist/components/PeriodSelector/PeriodSelector.js +4 -3
- package/dist/components/PeriodSelector/PeriodSelector.js.map +1 -1
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +4 -3
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js.map +1 -1
- package/dist/components/RadioTabSelector/RadioTabSelector.js +4 -3
- package/dist/components/RadioTabSelector/RadioTabSelector.js.map +1 -1
- package/dist/components/RteEditor/EditorHeader/EditorHeader.js +4 -3
- package/dist/components/RteEditor/EditorHeader/EditorHeader.js.map +1 -1
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +2 -2
- package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +14 -13
- package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js.map +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +5 -4
- package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js.map +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +26 -25
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js.map +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +6 -6
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +3 -3
- package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/TableCellResizerPlugin.d.ts +2 -0
- package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/TableCellResizerPlugin.js +13 -0
- package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/TableCellResizerPlugin.js.map +1 -0
- package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/index.d.ts +1 -0
- package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/index.js +5 -0
- package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/index.js.map +1 -0
- package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +4 -3
- package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js.map +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +9 -6
- package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js.map +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/helpers.d.ts +9 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +73 -56
- package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js.map +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +11 -9
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js.map +1 -1
- package/dist/components/RteEditor/Plugins/index.d.ts +2 -0
- package/dist/components/RteEditor/Plugins/index.js +13 -9
- package/dist/components/RteEditor/Plugins/index.js.map +1 -1
- package/dist/components/RteEditor/RteEditor.js +307 -319
- package/dist/components/RteEditor/RteEditor.js.map +1 -1
- package/dist/components/RteEditor/UvaTheme/UvaTheme.d.ts +1 -0
- package/dist/components/RteEditor/UvaTheme/UvaTheme.js +2 -1
- package/dist/components/RteEditor/UvaTheme/UvaTheme.js.map +1 -1
- package/dist/components/RteEditor/helpers.d.ts +1 -0
- package/dist/components/RteEditor/helpers.js +22 -21
- package/dist/components/RteEditor/helpers.js.map +1 -1
- package/dist/components/RteEditor/nodes/TableWrapperNode/TableWrapperNode.d.ts +15 -0
- package/dist/components/RteEditor/nodes/TableWrapperNode/TableWrapperNode.js +69 -0
- package/dist/components/RteEditor/nodes/TableWrapperNode/TableWrapperNode.js.map +1 -0
- package/dist/components/RteEditor/nodes/TableWrapperNode/index.d.ts +1 -0
- package/dist/components/RteEditor/nodes/TableWrapperNode/index.js +10 -0
- package/dist/components/RteEditor/nodes/TableWrapperNode/index.js.map +1 -0
- package/dist/components/RteEditor/nodes/index.d.ts +1 -0
- package/dist/components/RteEditor/nodes/index.js +10 -0
- package/dist/components/RteEditor/nodes/index.js.map +1 -0
- package/dist/components/index.js +1 -1
- package/dist/{helpers-B0VCD9f3.js → helpers-BO6Gg9y6.js} +4 -4
- package/dist/{helpers-B0VCD9f3.js.map → helpers-BO6Gg9y6.js.map} +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/dist/Lexical.prod-7x3WP3vd.js.map +0 -1
- package/dist/LexicalTable.prod-CwkGGOke.js.map +0 -1
- package/dist/LexicalUtils.prod-CtYaCJNB.js +0 -107
- package/dist/RteEditor.module-B_3uFnFu.js +0 -41
- package/dist/RteEditor.module-B_3uFnFu.js.map +0 -1
- package/dist/TablePlugin-DNGtPPjq.js +0 -301
- package/dist/TablePlugin-DNGtPPjq.js.map +0 -1
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import { jsx as h, jsxs as
|
|
2
|
-
import { t as Ge, r as Ye, o as
|
|
3
|
-
import {
|
|
1
|
+
import { jsx as h, jsxs as z, Fragment as Re } from "react/jsx-runtime";
|
|
2
|
+
import { t as Ge, r as Ye, o as I } from "../../LexicalComposerContext.prod-DLlRM5wP.js";
|
|
3
|
+
import { aK as Me, ah as F, B as Ie, P as p, aL as de, ao as H, x as j, W as Ve, s as M, _ as g, a0 as Ze, J as m, aM as Qe, af as Oe, d as et, t as Ke, aN as tt, aO as rt, R as nt, y as T, aG as ot, aP as at, aQ as st, aR as it, T as ee, aS as lt, aT as ut, a5 as ct, E as dt, M as ft, K as mt, aU as pt, aV as me, a as pe, N as gt, H as re, L as ht, a6 as ze, aW as ge, z as vt, w as Ct, u as yt, aX as he, D as Et, aY as wt, aZ as bt, a_ as _t, aF as St, Y as kt, X as xt, a$ as Nt, Z as Dt, G as Lt, C as $t, p as Tt, $ as ve, b0 as Pt, c as Rt, au as G, at as Y, b1 as Mt, b2 as It, aw as Ot, b3 as se, av as Kt, b4 as zt } from "../../Lexical.prod-C1B_JvcI.js";
|
|
4
4
|
import * as ne from "react";
|
|
5
|
-
import { useMemo as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { a as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import "
|
|
5
|
+
import { useMemo as te, useLayoutEffect as J, useEffect as k, useState as O, Suspense as At, forwardRef as Ae, useCallback as Ft, useRef as Bt } from "react";
|
|
6
|
+
import { a as Ut, T as Wt } from "../../TableCellResizerPlugin-D6jjhYoD.js";
|
|
7
|
+
import { j as U, L as A, y as Ht, w as fe } from "../../LexicalUtils.prod-w0fZ_Z8S.js";
|
|
8
|
+
import { flushSync as jt, createPortal as Jt } from "react-dom";
|
|
9
|
+
import { A as Ce, F as ye, m as Xt, g as qt } from "../../LexicalClipboard.prod-Dd64YQH0.js";
|
|
10
|
+
import { X as Ee, J as we } from "../../LexicalSelection.prod-Dmiwka3x.js";
|
|
11
|
+
import { r as Fe, Y as Be, v as Gt, S as Yt } from "../../LexicalList.prod-7DmvPZ_J.js";
|
|
12
|
+
import { g as Ue, k as be, v as oe, p as Vt, m as Zt } from "../../LexicalLink.prod-ldhpNY9X.js";
|
|
13
|
+
import { s as Qt, d as er, a as We, e as tr, w as rr, S as nr, y as He, O as or } from "../../LexicalTable.prod-iqHmKv_G.js";
|
|
14
|
+
import { a as ar, w as sr, M as ir } from "../../helpers-BO6Gg9y6.js";
|
|
15
|
+
import { c as lr } from "../../clsx-OuTLNxxd.js";
|
|
16
|
+
import { exportMap as ur, isStartingWithHtmlTag as cr, mergeBoldStrongTags as dr, cleanUpTable as fr } from "./helpers.js";
|
|
17
|
+
import { s as R } from "../../RteEditor.module-dE9wQTC9.js";
|
|
18
|
+
import { ToolBarPlugin as mr } from "./Plugins/ToolbarPlugin/ToolbarPlugin.js";
|
|
19
|
+
import { useTranslation as pr } from "./hooks/useTranslation.js";
|
|
20
|
+
import "../../TablePlugin-cMMBdz-x.js";
|
|
20
21
|
import "./Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
|
|
21
22
|
import "./hooks/components/Flyout.js";
|
|
22
23
|
import "../Accordion/Accordion.js";
|
|
@@ -24,7 +25,7 @@ import "../Buttons/Button.js";
|
|
|
24
25
|
import "../Buttons/LinkButton.js";
|
|
25
26
|
import "@react-aria/button";
|
|
26
27
|
import "../Checkbox/Checkbox.js";
|
|
27
|
-
import { FeedbackBox as
|
|
28
|
+
import { FeedbackBox as gr } from "../FeedbackBox/FeedbackBox.js";
|
|
28
29
|
import "@react-aria/dialog";
|
|
29
30
|
import "@react-aria/focus";
|
|
30
31
|
import "@react-aria/overlays";
|
|
@@ -38,92 +39,78 @@ import "../SelectListbox/SelectListbox.js";
|
|
|
38
39
|
import "../SelectListbox/SelectProvider.js";
|
|
39
40
|
import "../Sortable/components/SortableItem.js";
|
|
40
41
|
import "../../SortableProvider-l8-7ClBJ.js";
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
42
|
+
import { PasteHandlerPlugin as hr } from "./Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js";
|
|
43
|
+
import { UvaTheme as vr } from "./UvaTheme/UvaTheme.js";
|
|
44
|
+
import { EditorHeader as Cr } from "./EditorHeader/EditorHeader.js";
|
|
45
|
+
import { LanguageProvider as yr, useLanguage as Er } from "./Providers/LanguageProvider.js";
|
|
46
|
+
import { TableWrapperNode as wr } from "./nodes/TableWrapperNode/TableWrapperNode.js";
|
|
47
|
+
const je = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, br = je ? J : k, V = { tag: de };
|
|
48
|
+
function _r({ initialConfig: r, children: e }) {
|
|
49
|
+
const t = te(() => {
|
|
50
|
+
const { theme: o, namespace: a, nodes: n, onError: s, editorState: i, html: l } = r, c = Ge(null, o), u = Me({ editable: r.editable, html: l, namespace: a, nodes: n, onError: (d) => s(d, u), theme: o });
|
|
49
51
|
return function(d, f) {
|
|
50
52
|
if (f !== null) {
|
|
51
53
|
if (f === void 0) d.update(() => {
|
|
52
|
-
const v =
|
|
54
|
+
const v = F();
|
|
53
55
|
if (v.isEmpty()) {
|
|
54
56
|
const C = Ie();
|
|
55
57
|
v.append(C);
|
|
56
|
-
const w =
|
|
58
|
+
const w = je ? document.activeElement : null;
|
|
57
59
|
(p() !== null || w !== null && w === d.getRootElement()) && C.select();
|
|
58
60
|
}
|
|
59
|
-
},
|
|
61
|
+
}, V);
|
|
60
62
|
else if (f !== null) switch (typeof f) {
|
|
61
63
|
case "string": {
|
|
62
64
|
const v = d.parseEditorState(f);
|
|
63
|
-
d.setEditorState(v,
|
|
65
|
+
d.setEditorState(v, V);
|
|
64
66
|
break;
|
|
65
67
|
}
|
|
66
68
|
case "object":
|
|
67
|
-
d.setEditorState(f,
|
|
69
|
+
d.setEditorState(f, V);
|
|
68
70
|
break;
|
|
69
71
|
case "function":
|
|
70
72
|
d.update(() => {
|
|
71
|
-
|
|
72
|
-
},
|
|
73
|
+
F().isEmpty() && f(d);
|
|
74
|
+
}, V);
|
|
73
75
|
}
|
|
74
76
|
}
|
|
75
|
-
}(
|
|
77
|
+
}(u, i), [u, c];
|
|
76
78
|
}, []);
|
|
77
|
-
return
|
|
79
|
+
return br(() => {
|
|
78
80
|
const o = r.editable, [a] = t;
|
|
79
81
|
a.setEditable(o === void 0 || o);
|
|
80
82
|
}, []), h(Ye.Provider, { value: t, children: e });
|
|
81
83
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
return { initialValueFn: () => r.isEditable(), subscribe: (e) => r.registerEditableListener(e) };
|
|
85
|
-
}
|
|
86
|
-
function br() {
|
|
87
|
-
return function(r) {
|
|
88
|
-
const [e] = P(), t = X(() => r(e), [e, r]), [o, a] = F(() => t.initialValueFn()), n = Ae(o);
|
|
89
|
-
return Er(() => {
|
|
90
|
-
const { initialValueFn: s, subscribe: i } = t, l = s();
|
|
91
|
-
return n.current !== l && (n.current = l, a(l)), i((u) => {
|
|
92
|
-
n.current = u, a(u);
|
|
93
|
-
});
|
|
94
|
-
}, [t, r]), o;
|
|
95
|
-
}(wr);
|
|
96
|
-
}
|
|
97
|
-
function _r() {
|
|
98
|
-
return z().getTextContent();
|
|
84
|
+
function Sr() {
|
|
85
|
+
return F().getTextContent();
|
|
99
86
|
}
|
|
100
|
-
function
|
|
87
|
+
function kr(r, e = !0) {
|
|
101
88
|
if (r) return !1;
|
|
102
|
-
let t =
|
|
89
|
+
let t = Sr();
|
|
103
90
|
return e && (t = t.trim()), t === "";
|
|
104
91
|
}
|
|
105
|
-
function
|
|
106
|
-
if (!
|
|
107
|
-
const e =
|
|
92
|
+
function xr(r) {
|
|
93
|
+
if (!kr(r, !1)) return !1;
|
|
94
|
+
const e = F().getChildren(), t = e.length;
|
|
108
95
|
if (t > 1) return !1;
|
|
109
96
|
for (let o = 0; o < t; o++) {
|
|
110
97
|
const a = e[o];
|
|
111
|
-
if (
|
|
112
|
-
if (
|
|
113
|
-
if (!
|
|
98
|
+
if (H(a)) return !1;
|
|
99
|
+
if (j(a)) {
|
|
100
|
+
if (!Ve(a) || a.__indent !== 0) return !1;
|
|
114
101
|
const n = a.getChildren(), s = n.length;
|
|
115
102
|
for (let i = 0; i < s; i++) {
|
|
116
103
|
const l = n[o];
|
|
117
|
-
if (!
|
|
104
|
+
if (!M(l)) return !1;
|
|
118
105
|
}
|
|
119
106
|
}
|
|
120
107
|
}
|
|
121
108
|
return !0;
|
|
122
109
|
}
|
|
123
|
-
function
|
|
124
|
-
return () =>
|
|
110
|
+
function Je(r) {
|
|
111
|
+
return () => xr(r);
|
|
125
112
|
}
|
|
126
|
-
function
|
|
113
|
+
function Nr(r) {
|
|
127
114
|
const e = window.location.origin, t = (o) => {
|
|
128
115
|
if (o.origin !== e) return;
|
|
129
116
|
const a = r.getRootElement();
|
|
@@ -141,13 +128,13 @@ function xr(r) {
|
|
|
141
128
|
if (i && i.functionId === "makeChanges") {
|
|
142
129
|
const l = i.args;
|
|
143
130
|
if (l) {
|
|
144
|
-
const [
|
|
131
|
+
const [c, u, d, f, v, C] = l;
|
|
145
132
|
r.update(() => {
|
|
146
133
|
const w = p();
|
|
147
134
|
if (g(w)) {
|
|
148
135
|
const x = w.anchor;
|
|
149
136
|
let y = x.getNode(), E = 0, _ = 0;
|
|
150
|
-
if (
|
|
137
|
+
if (M(y) && c >= 0 && u >= 0 && (E = c, _ = c + u, w.setTextNodeRange(y, E, y, _)), E === _ && d === "" || (w.insertRawText(d), y = x.getNode()), M(y)) {
|
|
151
138
|
E = f, _ = f + v;
|
|
152
139
|
const N = y.getTextContentSize();
|
|
153
140
|
E = E > N ? N : E, _ = _ > N ? N : _, w.setTextNodeRange(y, E, y, _);
|
|
@@ -175,7 +162,7 @@ function _e(r, e) {
|
|
|
175
162
|
}
|
|
176
163
|
return null;
|
|
177
164
|
}
|
|
178
|
-
const W = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0,
|
|
165
|
+
const W = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, Dr = W && "documentMode" in document ? document.documentMode : null, Lr = !(!W || !("InputEvent" in window) || Dr) && "getTargetRanges" in new window.InputEvent("input"), $r = W && /Version\/[\d.]+.*Safari/.test(navigator.userAgent), Se = W && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, Tr = W && /^(?=.*Chrome).*/i.test(navigator.userAgent), Pr = W && /AppleWebKit\/[\d.]+/.test(navigator.userAgent) && !Tr, ke = et("DRAG_DROP_PASTE_FILE");
|
|
179
166
|
function Z(r) {
|
|
180
167
|
let e = null;
|
|
181
168
|
if (A(r, DragEvent) ? e = r.dataTransfer : A(r, ClipboardEvent) && (e = r.clipboardData), e === null) return [!1, [], !1];
|
|
@@ -189,7 +176,7 @@ function xe(r) {
|
|
|
189
176
|
for (let a = 0; a < o.length; a++) {
|
|
190
177
|
const n = o[a], s = n.getKey();
|
|
191
178
|
if (t.has(s)) continue;
|
|
192
|
-
const i = fe(n, (
|
|
179
|
+
const i = fe(n, (c) => j(c) && !c.isInline());
|
|
193
180
|
if (i === null) continue;
|
|
194
181
|
const l = i.getKey();
|
|
195
182
|
i.canIndent() && !t.has(l) && (t.add(l), r(i));
|
|
@@ -197,26 +184,26 @@ function xe(r) {
|
|
|
197
184
|
return t.size > 0;
|
|
198
185
|
}
|
|
199
186
|
function Ne(r) {
|
|
200
|
-
const e =
|
|
201
|
-
return
|
|
187
|
+
const e = ee(r);
|
|
188
|
+
return H(e);
|
|
202
189
|
}
|
|
203
190
|
function ae(r) {
|
|
204
191
|
for (const e of ["lowercase", "uppercase", "capitalize"]) r.hasFormat(e) && r.toggleFormat(e);
|
|
205
192
|
}
|
|
206
|
-
function
|
|
207
|
-
return
|
|
193
|
+
function Rr(r) {
|
|
194
|
+
return U(r.registerCommand(Tt, (e) => {
|
|
208
195
|
const t = p();
|
|
209
196
|
return !!T(t) && (t.clear(), !0);
|
|
210
197
|
}, m), r.registerCommand(re, (e) => {
|
|
211
198
|
const t = p();
|
|
212
199
|
return g(t) ? (t.deleteCharacter(e), !0) : !!T(t) && (t.deleteNodes(), !0);
|
|
213
|
-
}, m), r.registerCommand(
|
|
200
|
+
}, m), r.registerCommand($t, (e) => {
|
|
214
201
|
const t = p();
|
|
215
202
|
return !!g(t) && (t.deleteWord(e), !0);
|
|
216
|
-
}, m), r.registerCommand(
|
|
203
|
+
}, m), r.registerCommand(Lt, (e) => {
|
|
217
204
|
const t = p();
|
|
218
205
|
return !!g(t) && (t.deleteLine(e), !0);
|
|
219
|
-
}, m), r.registerCommand(
|
|
206
|
+
}, m), r.registerCommand(Dt, (e) => {
|
|
220
207
|
const t = p();
|
|
221
208
|
if (typeof e == "string") t !== null && t.insertText(e);
|
|
222
209
|
else {
|
|
@@ -229,18 +216,18 @@ function Pr(r) {
|
|
|
229
216
|
}
|
|
230
217
|
}
|
|
231
218
|
return !0;
|
|
232
|
-
}, m), r.registerCommand(
|
|
219
|
+
}, m), r.registerCommand(Nt, () => {
|
|
233
220
|
const e = p();
|
|
234
221
|
return !!g(e) && (e.removeText(), !0);
|
|
235
|
-
}, m), r.registerCommand(
|
|
222
|
+
}, m), r.registerCommand(xt, (e) => {
|
|
236
223
|
const t = p();
|
|
237
224
|
return !!g(t) && (t.formatText(e), !0);
|
|
238
|
-
}, m), r.registerCommand(
|
|
225
|
+
}, m), r.registerCommand(kt, (e) => {
|
|
239
226
|
const t = p();
|
|
240
227
|
if (!g(t) && !T(t)) return !1;
|
|
241
228
|
const o = t.getNodes();
|
|
242
229
|
for (const a of o) {
|
|
243
|
-
const n = fe(a, (s) =>
|
|
230
|
+
const n = fe(a, (s) => j(s) && !s.isInline());
|
|
244
231
|
n !== null && n.setFormat(e);
|
|
245
232
|
}
|
|
246
233
|
return !0;
|
|
@@ -250,23 +237,23 @@ function Pr(r) {
|
|
|
250
237
|
}, m), r.registerCommand(pe, () => {
|
|
251
238
|
const e = p();
|
|
252
239
|
return !!g(e) && (e.insertParagraph(), !0);
|
|
253
|
-
}, m), r.registerCommand(
|
|
240
|
+
}, m), r.registerCommand(bt, () => (_t([St()]), !0), m), r.registerCommand(wt, () => xe((e) => {
|
|
254
241
|
const t = e.getIndent();
|
|
255
242
|
e.setIndent(t + 1);
|
|
256
243
|
}), m), r.registerCommand(ge, () => xe((e) => {
|
|
257
244
|
const t = e.getIndent();
|
|
258
245
|
t > 0 && e.setIndent(Math.max(0, t - 1));
|
|
259
|
-
}), m), r.registerCommand(
|
|
246
|
+
}), m), r.registerCommand(Et, (e) => {
|
|
260
247
|
const t = p();
|
|
261
248
|
if (T(t)) {
|
|
262
249
|
const o = t.getNodes();
|
|
263
250
|
if (o.length > 0) return o[0].selectPrevious(), !0;
|
|
264
251
|
} else if (g(t)) {
|
|
265
252
|
const o = he(t.focus, !0);
|
|
266
|
-
if (!e.shiftKey &&
|
|
253
|
+
if (!e.shiftKey && H(o) && !o.isIsolated() && !o.isInline()) return o.selectPrevious(), e.preventDefault(), !0;
|
|
267
254
|
}
|
|
268
255
|
return !1;
|
|
269
|
-
}, m), r.registerCommand(
|
|
256
|
+
}, m), r.registerCommand(yt, (e) => {
|
|
270
257
|
const t = p();
|
|
271
258
|
if (T(t)) {
|
|
272
259
|
const o = t.getNodes();
|
|
@@ -274,13 +261,13 @@ function Pr(r) {
|
|
|
274
261
|
} else if (g(t)) {
|
|
275
262
|
if (function(a) {
|
|
276
263
|
const n = a.focus;
|
|
277
|
-
return n.key === "root" && n.offset ===
|
|
264
|
+
return n.key === "root" && n.offset === F().getChildrenSize();
|
|
278
265
|
}(t)) return e.preventDefault(), !0;
|
|
279
266
|
const o = he(t.focus, !1);
|
|
280
|
-
if (!e.shiftKey &&
|
|
267
|
+
if (!e.shiftKey && H(o) && !o.isIsolated() && !o.isInline()) return o.selectNext(), e.preventDefault(), !0;
|
|
281
268
|
}
|
|
282
269
|
return !1;
|
|
283
|
-
}, m), r.registerCommand(
|
|
270
|
+
}, m), r.registerCommand(Ct, (e) => {
|
|
284
271
|
const t = p();
|
|
285
272
|
if (T(t)) {
|
|
286
273
|
const o = t.getNodes();
|
|
@@ -292,7 +279,7 @@ function Pr(r) {
|
|
|
292
279
|
return e.preventDefault(), we(t, o, !0), !0;
|
|
293
280
|
}
|
|
294
281
|
return !1;
|
|
295
|
-
}, m), r.registerCommand(
|
|
282
|
+
}, m), r.registerCommand(vt, (e) => {
|
|
296
283
|
const t = p();
|
|
297
284
|
if (T(t)) {
|
|
298
285
|
const a = t.getNodes();
|
|
@@ -301,7 +288,7 @@ function Pr(r) {
|
|
|
301
288
|
if (!g(t)) return !1;
|
|
302
289
|
const o = e.shiftKey;
|
|
303
290
|
return !!Ee(t, !1) && (e.preventDefault(), we(t, o, !1), !0);
|
|
304
|
-
}, m), r.registerCommand(
|
|
291
|
+
}, m), r.registerCommand(ht, (e) => {
|
|
305
292
|
if (Ne(e.target)) return !1;
|
|
306
293
|
const t = p();
|
|
307
294
|
if (g(t)) {
|
|
@@ -310,43 +297,43 @@ function Pr(r) {
|
|
|
310
297
|
const { anchor: a } = o;
|
|
311
298
|
if (a.offset !== 0) return !1;
|
|
312
299
|
const n = a.getNode();
|
|
313
|
-
if (
|
|
314
|
-
const s =
|
|
300
|
+
if (ze(n)) return !1;
|
|
301
|
+
const s = Ht(n);
|
|
315
302
|
return s.getIndent() > 0 && (s.is(n) || n.is(s.getFirstDescendant()));
|
|
316
303
|
}(t)) return e.preventDefault(), r.dispatchCommand(ge, void 0);
|
|
317
304
|
if (Se && navigator.language === "ko-KR") return !1;
|
|
318
305
|
} else if (!T(t)) return !1;
|
|
319
306
|
return e.preventDefault(), r.dispatchCommand(re, !0);
|
|
320
|
-
}, m), r.registerCommand(
|
|
307
|
+
}, m), r.registerCommand(gt, (e) => {
|
|
321
308
|
if (Ne(e.target)) return !1;
|
|
322
309
|
const t = p();
|
|
323
310
|
return !(!g(t) && !T(t)) && (e.preventDefault(), r.dispatchCommand(re, !1));
|
|
324
|
-
}, m), r.registerCommand(
|
|
311
|
+
}, m), r.registerCommand(pt, (e) => {
|
|
325
312
|
const t = p();
|
|
326
313
|
if (!g(t)) return !1;
|
|
327
314
|
if (ae(t), e !== null) {
|
|
328
|
-
if ((Se || $r ||
|
|
315
|
+
if ((Se || $r || Pr) && Lr) return !1;
|
|
329
316
|
if (e.preventDefault(), e.shiftKey) return r.dispatchCommand(me, !1);
|
|
330
317
|
}
|
|
331
318
|
return r.dispatchCommand(pe, void 0);
|
|
332
|
-
}, m), r.registerCommand(
|
|
319
|
+
}, m), r.registerCommand(mt, () => {
|
|
333
320
|
const e = p();
|
|
334
321
|
return !!g(e) && (r.blur(), !0);
|
|
335
|
-
}, m), r.registerCommand(
|
|
322
|
+
}, m), r.registerCommand(ut, (e) => {
|
|
336
323
|
const [, t] = Z(e);
|
|
337
324
|
if (t.length > 0) {
|
|
338
325
|
const a = _e(e.clientX, e.clientY);
|
|
339
326
|
if (a !== null) {
|
|
340
|
-
const { offset: n, node: s } = a, i =
|
|
327
|
+
const { offset: n, node: s } = a, i = ee(s);
|
|
341
328
|
if (i !== null) {
|
|
342
|
-
const l =
|
|
343
|
-
if (
|
|
329
|
+
const l = ct();
|
|
330
|
+
if (M(i)) l.anchor.set(i.getKey(), n, "text"), l.focus.set(i.getKey(), n, "text");
|
|
344
331
|
else {
|
|
345
|
-
const
|
|
346
|
-
l.anchor.set(
|
|
332
|
+
const u = i.getParentOrThrow().getKey(), d = i.getIndexWithinParent() + 1;
|
|
333
|
+
l.anchor.set(u, d, "element"), l.focus.set(u, d, "element");
|
|
347
334
|
}
|
|
348
|
-
const
|
|
349
|
-
|
|
335
|
+
const c = dt(l);
|
|
336
|
+
ft(c);
|
|
350
337
|
}
|
|
351
338
|
r.dispatchCommand(ke, t);
|
|
352
339
|
}
|
|
@@ -354,32 +341,32 @@ function Pr(r) {
|
|
|
354
341
|
}
|
|
355
342
|
const o = p();
|
|
356
343
|
return !!g(o);
|
|
357
|
-
}, m), r.registerCommand(
|
|
344
|
+
}, m), r.registerCommand(lt, (e) => {
|
|
358
345
|
const [t] = Z(e), o = p();
|
|
359
346
|
return !(t && !g(o));
|
|
360
|
-
}, m), r.registerCommand(
|
|
347
|
+
}, m), r.registerCommand(it, (e) => {
|
|
361
348
|
const [t] = Z(e), o = p();
|
|
362
349
|
if (t && !g(o)) return !1;
|
|
363
350
|
const a = _e(e.clientX, e.clientY);
|
|
364
351
|
if (a !== null) {
|
|
365
|
-
const n =
|
|
366
|
-
|
|
352
|
+
const n = ee(a.node);
|
|
353
|
+
H(n) && e.preventDefault();
|
|
367
354
|
}
|
|
368
355
|
return !0;
|
|
369
|
-
}, m), r.registerCommand(
|
|
356
|
+
}, m), r.registerCommand(at, () => (st(), !0), m), r.registerCommand(ot, (e) => (ye(r, A(e, ClipboardEvent) ? e : null), !0), m), r.registerCommand(nt, (e) => (async function(t, o) {
|
|
370
357
|
await ye(o, A(t, ClipboardEvent) ? t : null), o.update(() => {
|
|
371
358
|
const a = p();
|
|
372
359
|
g(a) ? a.removeText() : T(a) && a.getNodes().forEach((n) => n.remove());
|
|
373
360
|
});
|
|
374
|
-
}(e, r), !0), m), r.registerCommand(
|
|
361
|
+
}(e, r), !0), m), r.registerCommand(Oe, (e) => {
|
|
375
362
|
const [, t, o] = Z(e);
|
|
376
|
-
return t.length > 0 && !o ? (r.dispatchCommand(ke, t), !0) :
|
|
363
|
+
return t.length > 0 && !o ? (r.dispatchCommand(ke, t), !0) : Ke(e.target) && tt(e.target) ? !1 : p() !== null && (function(a, n) {
|
|
377
364
|
a.preventDefault(), n.update(() => {
|
|
378
365
|
const s = p(), i = A(a, InputEvent) || A(a, KeyboardEvent) ? null : a.clipboardData;
|
|
379
366
|
i != null && s !== null && Ce(i, s, n);
|
|
380
|
-
}, { tag:
|
|
367
|
+
}, { tag: rt });
|
|
381
368
|
}(e, r), !0);
|
|
382
|
-
}, m), r.registerCommand(
|
|
369
|
+
}, m), r.registerCommand(Qe, (e) => {
|
|
383
370
|
const t = p();
|
|
384
371
|
return g(t) && ae(t), !1;
|
|
385
372
|
}, m), r.registerCommand(Ze, (e) => {
|
|
@@ -387,89 +374,89 @@ function Pr(r) {
|
|
|
387
374
|
return g(t) && ae(t), !1;
|
|
388
375
|
}, m));
|
|
389
376
|
}
|
|
390
|
-
const ie = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ?
|
|
391
|
-
function
|
|
392
|
-
return r.getEditorState().read(
|
|
377
|
+
const ie = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? J : k;
|
|
378
|
+
function De(r) {
|
|
379
|
+
return r.getEditorState().read(Je(r.isComposing()));
|
|
393
380
|
}
|
|
394
|
-
function
|
|
395
|
-
const [o] =
|
|
396
|
-
const [i, l] =
|
|
397
|
-
return ie(() => n.registerDecoratorListener((
|
|
398
|
-
|
|
399
|
-
l(
|
|
381
|
+
function Mr({ contentEditable: r, placeholder: e = null, ErrorBoundary: t }) {
|
|
382
|
+
const [o] = I(), a = function(n, s) {
|
|
383
|
+
const [i, l] = O(() => n.getDecorators());
|
|
384
|
+
return ie(() => n.registerDecoratorListener((c) => {
|
|
385
|
+
jt(() => {
|
|
386
|
+
l(c);
|
|
400
387
|
});
|
|
401
|
-
}), [n]),
|
|
388
|
+
}), [n]), k(() => {
|
|
402
389
|
l(n.getDecorators());
|
|
403
|
-
}, [n]),
|
|
404
|
-
const
|
|
405
|
-
for (let d = 0; d <
|
|
406
|
-
const f =
|
|
407
|
-
C !== null &&
|
|
390
|
+
}, [n]), te(() => {
|
|
391
|
+
const c = [], u = Object.keys(i);
|
|
392
|
+
for (let d = 0; d < u.length; d++) {
|
|
393
|
+
const f = u[d], v = h(s, { onError: (w) => n._onError(w), children: h(At, { fallback: null, children: i[f] }) }), C = n.getElementByKey(f);
|
|
394
|
+
C !== null && c.push(Jt(v, C, f));
|
|
408
395
|
}
|
|
409
|
-
return
|
|
396
|
+
return c;
|
|
410
397
|
}, [s, i, n]);
|
|
411
398
|
}(o, t);
|
|
412
399
|
return function(n) {
|
|
413
|
-
ie(() =>
|
|
414
|
-
}(o),
|
|
400
|
+
ie(() => U(Rr(n), Nr(n)), [n]);
|
|
401
|
+
}(o), z(Re, { children: [r, h(Ir, { content: e }), a] });
|
|
415
402
|
}
|
|
416
|
-
function
|
|
417
|
-
const [e] =
|
|
418
|
-
const [n, s] =
|
|
403
|
+
function Ir({ content: r }) {
|
|
404
|
+
const [e] = I(), t = function(a) {
|
|
405
|
+
const [n, s] = O(() => De(a));
|
|
419
406
|
return ie(() => {
|
|
420
407
|
function i() {
|
|
421
|
-
const l =
|
|
408
|
+
const l = De(a);
|
|
422
409
|
s(l);
|
|
423
410
|
}
|
|
424
|
-
return i(),
|
|
411
|
+
return i(), U(a.registerUpdateListener(() => {
|
|
425
412
|
i();
|
|
426
413
|
}), a.registerEditableListener(() => {
|
|
427
414
|
i();
|
|
428
415
|
}));
|
|
429
416
|
}, [a]), n;
|
|
430
|
-
}(e), o =
|
|
417
|
+
}(e), o = Ut();
|
|
431
418
|
return t ? typeof r == "function" ? r(o) : r : null;
|
|
432
419
|
}
|
|
433
|
-
const
|
|
434
|
-
function
|
|
435
|
-
const [
|
|
436
|
-
|
|
437
|
-
}, [r]), B =
|
|
438
|
-
return (
|
|
439
|
-
|
|
440
|
-
typeof
|
|
420
|
+
const Xe = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? J : k;
|
|
421
|
+
function Or({ editor: r, ariaActiveDescendant: e, ariaAutoComplete: t, ariaControls: o, ariaDescribedBy: a, ariaErrorMessage: n, ariaExpanded: s, ariaInvalid: i, ariaLabel: l, ariaLabelledBy: c, ariaMultiline: u, ariaOwns: d, ariaRequired: f, autoCapitalize: v, className: C, id: w, role: x = "textbox", spellCheck: y = !0, style: E, tabIndex: _, "data-testid": N, ...b }, D) {
|
|
422
|
+
const [S, P] = O(r.isEditable()), K = Ft((L) => {
|
|
423
|
+
L && L.ownerDocument && L.ownerDocument.defaultView ? r.setRootElement(L) : r.setRootElement(null);
|
|
424
|
+
}, [r]), B = te(() => /* @__PURE__ */ function(...L) {
|
|
425
|
+
return (X) => {
|
|
426
|
+
L.forEach((q) => {
|
|
427
|
+
typeof q == "function" ? q(X) : q != null && (q.current = X);
|
|
441
428
|
});
|
|
442
429
|
};
|
|
443
|
-
}(
|
|
444
|
-
return
|
|
445
|
-
|
|
446
|
-
})), [r]), h("div", { "aria-activedescendant":
|
|
430
|
+
}(D, K), [K, D]);
|
|
431
|
+
return Xe(() => (P(r.isEditable()), r.registerEditableListener((L) => {
|
|
432
|
+
P(L);
|
|
433
|
+
})), [r]), h("div", { "aria-activedescendant": S ? e : void 0, "aria-autocomplete": S ? t : "none", "aria-controls": S ? o : void 0, "aria-describedby": a, ...n != null ? { "aria-errormessage": n } : {}, "aria-expanded": S && x === "combobox" ? !!s : void 0, ...i != null ? { "aria-invalid": i } : {}, "aria-label": l, "aria-labelledby": c, "aria-multiline": u, "aria-owns": S ? d : void 0, "aria-readonly": !S || void 0, "aria-required": f, autoCapitalize: v, className: C, contentEditable: S, "data-testid": N, id: w, ref: B, role: x, spellCheck: y, style: E, tabIndex: _, ...b });
|
|
447
434
|
}
|
|
448
|
-
const
|
|
449
|
-
function
|
|
450
|
-
return r.getEditorState().read(
|
|
435
|
+
const Kr = Ae(Or);
|
|
436
|
+
function Le(r) {
|
|
437
|
+
return r.getEditorState().read(Je(r.isComposing()));
|
|
451
438
|
}
|
|
452
|
-
const
|
|
453
|
-
function
|
|
454
|
-
const { placeholder: t, ...o } = r, [a] =
|
|
455
|
-
return
|
|
439
|
+
const zr = Ae(Ar);
|
|
440
|
+
function Ar(r, e) {
|
|
441
|
+
const { placeholder: t, ...o } = r, [a] = I();
|
|
442
|
+
return z(Re, { children: [h(Kr, { editor: a, ...o, ref: e }), t != null && h(Fr, { editor: a, content: t })] });
|
|
456
443
|
}
|
|
457
|
-
function
|
|
444
|
+
function Fr({ content: r, editor: e }) {
|
|
458
445
|
const t = function(s) {
|
|
459
|
-
const [i, l] =
|
|
460
|
-
return
|
|
461
|
-
function
|
|
462
|
-
const
|
|
463
|
-
l(
|
|
446
|
+
const [i, l] = O(() => Le(s));
|
|
447
|
+
return Xe(() => {
|
|
448
|
+
function c() {
|
|
449
|
+
const u = Le(s);
|
|
450
|
+
l(u);
|
|
464
451
|
}
|
|
465
|
-
return
|
|
466
|
-
|
|
452
|
+
return c(), U(s.registerUpdateListener(() => {
|
|
453
|
+
c();
|
|
467
454
|
}), s.registerEditableListener(() => {
|
|
468
|
-
|
|
455
|
+
c();
|
|
469
456
|
}));
|
|
470
457
|
}, [s]), i;
|
|
471
|
-
}(e), [o, a] =
|
|
472
|
-
if (
|
|
458
|
+
}(e), [o, a] = O(e.isEditable());
|
|
459
|
+
if (J(() => (a(e.isEditable()), e.registerEditableListener((s) => {
|
|
473
460
|
a(s);
|
|
474
461
|
})), [e]), !t) return null;
|
|
475
462
|
let n = null;
|
|
@@ -480,13 +467,13 @@ function le(r, e) {
|
|
|
480
467
|
return t.__proto__ = o, t;
|
|
481
468
|
}, le(r, e);
|
|
482
469
|
}
|
|
483
|
-
var
|
|
470
|
+
var $e = { error: null }, Br = function(r) {
|
|
484
471
|
var e, t;
|
|
485
472
|
function o() {
|
|
486
473
|
for (var n, s = arguments.length, i = new Array(s), l = 0; l < s; l++) i[l] = arguments[l];
|
|
487
|
-
return (n = r.call.apply(r, [this].concat(i)) || this).state =
|
|
488
|
-
for (var
|
|
489
|
-
n.props.onReset == null || (
|
|
474
|
+
return (n = r.call.apply(r, [this].concat(i)) || this).state = $e, n.resetErrorBoundary = function() {
|
|
475
|
+
for (var c, u = arguments.length, d = new Array(u), f = 0; f < u; f++) d[f] = arguments[f];
|
|
476
|
+
n.props.onReset == null || (c = n.props).onReset.apply(c, d), n.reset();
|
|
490
477
|
}, n;
|
|
491
478
|
}
|
|
492
479
|
t = r, (e = o).prototype = Object.create(t.prototype), e.prototype.constructor = e, le(e, t), o.getDerivedStateFromError = function(n) {
|
|
@@ -494,83 +481,83 @@ var De = { error: null }, zr = function(r) {
|
|
|
494
481
|
};
|
|
495
482
|
var a = o.prototype;
|
|
496
483
|
return a.reset = function() {
|
|
497
|
-
this.setState(
|
|
484
|
+
this.setState($e);
|
|
498
485
|
}, a.componentDidCatch = function(n, s) {
|
|
499
486
|
var i, l;
|
|
500
487
|
(i = (l = this.props).onError) == null || i.call(l, n, s);
|
|
501
488
|
}, a.componentDidUpdate = function(n, s) {
|
|
502
|
-
var i, l,
|
|
503
|
-
d !== null && s.error !== null && ((
|
|
504
|
-
return !Object.is(v,
|
|
489
|
+
var i, l, c, u, d = this.state.error, f = this.props.resetKeys;
|
|
490
|
+
d !== null && s.error !== null && ((c = n.resetKeys) === void 0 && (c = []), (u = f) === void 0 && (u = []), c.length !== u.length || c.some(function(v, C) {
|
|
491
|
+
return !Object.is(v, u[C]);
|
|
505
492
|
})) && ((i = (l = this.props).onResetKeysChange) == null || i.call(l, n.resetKeys, f), this.reset());
|
|
506
493
|
}, a.render = function() {
|
|
507
|
-
var n = this.state.error, s = this.props, i = s.fallbackRender, l = s.FallbackComponent,
|
|
494
|
+
var n = this.state.error, s = this.props, i = s.fallbackRender, l = s.FallbackComponent, c = s.fallback;
|
|
508
495
|
if (n !== null) {
|
|
509
|
-
var
|
|
510
|
-
if (ne.isValidElement(
|
|
511
|
-
if (typeof i == "function") return i(
|
|
512
|
-
if (l) return ne.createElement(l,
|
|
496
|
+
var u = { error: n, resetErrorBoundary: this.resetErrorBoundary };
|
|
497
|
+
if (ne.isValidElement(c)) return c;
|
|
498
|
+
if (typeof i == "function") return i(u);
|
|
499
|
+
if (l) return ne.createElement(l, u);
|
|
513
500
|
throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop");
|
|
514
501
|
}
|
|
515
502
|
return this.props.children;
|
|
516
503
|
}, o;
|
|
517
504
|
}(ne.Component);
|
|
518
|
-
function
|
|
519
|
-
return h(
|
|
505
|
+
function Ur({ children: r, onError: e }) {
|
|
506
|
+
return h(Br, { fallback: h("div", { style: { border: "1px solid #f00", color: "#f00", padding: "8px" }, children: "An error was thrown." }), onError: e, children: r });
|
|
520
507
|
}
|
|
521
|
-
const
|
|
508
|
+
const Wr = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? J : k;
|
|
522
509
|
function Hr({ ignoreHistoryMergeTagChange: r = !0, ignoreSelectionChange: e = !1, onChange: t }) {
|
|
523
|
-
const [o] =
|
|
524
|
-
return
|
|
510
|
+
const [o] = I();
|
|
511
|
+
return Wr(() => {
|
|
525
512
|
if (t) return o.registerUpdateListener(({ editorState: a, dirtyElements: n, dirtyLeaves: s, prevEditorState: i, tags: l }) => {
|
|
526
513
|
e && n.size === 0 && s.size === 0 || r && l.has(de) || i.isEmpty() || t(a, o, l);
|
|
527
514
|
});
|
|
528
515
|
}, [o, r, e, t]), null;
|
|
529
516
|
}
|
|
530
|
-
function
|
|
531
|
-
const [e] =
|
|
532
|
-
return
|
|
533
|
-
if (!e.hasNodes([
|
|
534
|
-
}, [e]),
|
|
535
|
-
if (r) return
|
|
517
|
+
function jr({ hasStrictIndent: r = !1 }) {
|
|
518
|
+
const [e] = I();
|
|
519
|
+
return k(() => {
|
|
520
|
+
if (!e.hasNodes([Fe, Be])) throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor");
|
|
521
|
+
}, [e]), k(() => {
|
|
522
|
+
if (r) return Gt(e);
|
|
536
523
|
}, [e, r]), function(t) {
|
|
537
|
-
|
|
524
|
+
k(() => Yt(t), [t]);
|
|
538
525
|
}(e), null;
|
|
539
526
|
}
|
|
540
|
-
function
|
|
541
|
-
const [t] =
|
|
542
|
-
return
|
|
543
|
-
if (!t.hasNodes([
|
|
544
|
-
return
|
|
527
|
+
function Jr({ validateUrl: r, attributes: e }) {
|
|
528
|
+
const [t] = I();
|
|
529
|
+
return k(() => {
|
|
530
|
+
if (!t.hasNodes([Ue])) throw new Error("LinkPlugin: LinkNode not registered on editor");
|
|
531
|
+
return U(t.registerCommand(be, (o) => {
|
|
545
532
|
if (o === null) return oe(o), !0;
|
|
546
533
|
if (typeof o == "string") return !(r !== void 0 && !r(o)) && (oe(o, e), !0);
|
|
547
534
|
{
|
|
548
535
|
const { url: a, target: n, rel: s, title: i } = o;
|
|
549
536
|
return oe(a, { ...e, rel: s, target: n, title: i }), !0;
|
|
550
537
|
}
|
|
551
|
-
}, ve), r !== void 0 ? t.registerCommand(
|
|
538
|
+
}, ve), r !== void 0 ? t.registerCommand(Oe, (o) => {
|
|
552
539
|
const a = p();
|
|
553
540
|
if (!g(a) || a.isCollapsed() || !A(o, ClipboardEvent) || o.clipboardData === null) return !1;
|
|
554
541
|
const n = o.clipboardData.getData("text");
|
|
555
|
-
return !!r(n) && !a.getNodes().some((s) =>
|
|
542
|
+
return !!r(n) && !a.getNodes().some((s) => j(s)) && (t.dispatchCommand(be, { ...e, url: n }), o.preventDefault(), !0);
|
|
556
543
|
}, ve) : () => {
|
|
557
544
|
});
|
|
558
545
|
}, [t, r, e]), null;
|
|
559
546
|
}
|
|
560
|
-
function
|
|
561
|
-
const [t] =
|
|
562
|
-
return
|
|
547
|
+
function Xr({ newTab: r = !0, disabled: e = !1 }) {
|
|
548
|
+
const [t] = I();
|
|
549
|
+
return k(() => {
|
|
563
550
|
const o = (n) => {
|
|
564
551
|
const s = n.target;
|
|
565
|
-
if (!
|
|
566
|
-
const i =
|
|
552
|
+
if (!Ke(s)) return;
|
|
553
|
+
const i = Pt(s);
|
|
567
554
|
if (i === null) return;
|
|
568
|
-
let l = null,
|
|
555
|
+
let l = null, c = null;
|
|
569
556
|
if (i.update(() => {
|
|
570
|
-
const f =
|
|
557
|
+
const f = ee(s);
|
|
571
558
|
if (f !== null) {
|
|
572
|
-
const v = fe(f,
|
|
573
|
-
if (!e) if (Vt(v)) l = v.sanitizeUrl(v.getURL()),
|
|
559
|
+
const v = fe(f, j);
|
|
560
|
+
if (!e) if (Vt(v)) l = v.sanitizeUrl(v.getURL()), c = v.getTarget();
|
|
574
561
|
else {
|
|
575
562
|
const C = function(w, x) {
|
|
576
563
|
let y = w;
|
|
@@ -579,15 +566,15 @@ function Jr({ newTab: r = !0, disabled: e = !1 }) {
|
|
|
579
566
|
y = y.parentNode;
|
|
580
567
|
}
|
|
581
568
|
return null;
|
|
582
|
-
}(s,
|
|
583
|
-
C !== null && (l = C.href,
|
|
569
|
+
}(s, Rt);
|
|
570
|
+
C !== null && (l = C.href, c = C.target);
|
|
584
571
|
}
|
|
585
572
|
}
|
|
586
573
|
}), l === null || l === "") return;
|
|
587
|
-
const
|
|
588
|
-
if (g(
|
|
574
|
+
const u = t.getEditorState().read(p);
|
|
575
|
+
if (g(u) && !u.isCollapsed()) return void n.preventDefault();
|
|
589
576
|
const d = n.type === "auxclick" && n.button === 1;
|
|
590
|
-
window.open(l, r || d || n.metaKey || n.ctrlKey ||
|
|
577
|
+
window.open(l, r || d || n.metaKey || n.ctrlKey || c === "_blank" ? "_blank" : "_self"), n.preventDefault();
|
|
591
578
|
}, a = (n) => {
|
|
592
579
|
n.button === 1 && o(n);
|
|
593
580
|
};
|
|
@@ -596,109 +583,109 @@ function Jr({ newTab: r = !0, disabled: e = !1 }) {
|
|
|
596
583
|
});
|
|
597
584
|
}, [t, r, e]), null;
|
|
598
585
|
}
|
|
599
|
-
const
|
|
600
|
-
function
|
|
601
|
-
if (r === null || t.size === 0 && o.size === 0 && !a) return
|
|
586
|
+
const Q = 0, ue = 1, ce = 2, $ = 0, qr = 1, Te = 2, Gr = 3, Yr = 4;
|
|
587
|
+
function Vr(r, e, t, o, a) {
|
|
588
|
+
if (r === null || t.size === 0 && o.size === 0 && !a) return $;
|
|
602
589
|
const n = e._selection, s = r._selection;
|
|
603
|
-
if (a) return
|
|
604
|
-
if (!(g(n) && g(s) && s.isCollapsed() && n.isCollapsed())) return
|
|
590
|
+
if (a) return qr;
|
|
591
|
+
if (!(g(n) && g(s) && s.isCollapsed() && n.isCollapsed())) return $;
|
|
605
592
|
const i = function(y, E, _) {
|
|
606
593
|
const N = y._nodeMap, b = [];
|
|
607
|
-
for (const
|
|
608
|
-
const
|
|
609
|
-
|
|
594
|
+
for (const D of E) {
|
|
595
|
+
const S = N.get(D);
|
|
596
|
+
S !== void 0 && b.push(S);
|
|
610
597
|
}
|
|
611
|
-
for (const [
|
|
612
|
-
if (!
|
|
613
|
-
const
|
|
614
|
-
|
|
598
|
+
for (const [D, S] of _) {
|
|
599
|
+
if (!S) continue;
|
|
600
|
+
const P = N.get(D);
|
|
601
|
+
P === void 0 || ze(P) || b.push(P);
|
|
615
602
|
}
|
|
616
603
|
return b;
|
|
617
604
|
}(e, t, o);
|
|
618
|
-
if (i.length === 0) return
|
|
605
|
+
if (i.length === 0) return $;
|
|
619
606
|
if (i.length > 1) {
|
|
620
607
|
const y = e._nodeMap, E = y.get(n.anchor.key), _ = y.get(s.anchor.key);
|
|
621
|
-
return E && _ && !r._nodeMap.has(E.__key) &&
|
|
608
|
+
return E && _ && !r._nodeMap.has(E.__key) && M(E) && E.__text.length === 1 && n.anchor.offset === 1 ? Te : $;
|
|
622
609
|
}
|
|
623
|
-
const l = i[0],
|
|
624
|
-
if (!
|
|
625
|
-
const
|
|
626
|
-
if (
|
|
610
|
+
const l = i[0], c = r._nodeMap.get(l.__key);
|
|
611
|
+
if (!M(c) || !M(l) || c.__mode !== l.__mode) return $;
|
|
612
|
+
const u = c.__text, d = l.__text;
|
|
613
|
+
if (u === d) return $;
|
|
627
614
|
const f = n.anchor, v = s.anchor;
|
|
628
|
-
if (f.key !== v.key || f.type !== "text") return
|
|
629
|
-
const C = f.offset, w = v.offset, x = d.length -
|
|
630
|
-
return x === 1 && w === C - 1 ? Te : x === -1 && w === C + 1 ?
|
|
631
|
-
}
|
|
632
|
-
function
|
|
633
|
-
let t = Date.now(), o =
|
|
634
|
-
return (a, n, s, i, l,
|
|
635
|
-
const
|
|
636
|
-
if (
|
|
637
|
-
const d =
|
|
638
|
-
const v = s === null || s.editor === r, C =
|
|
639
|
-
if (!C && v &&
|
|
615
|
+
if (f.key !== v.key || f.type !== "text") return $;
|
|
616
|
+
const C = f.offset, w = v.offset, x = d.length - u.length;
|
|
617
|
+
return x === 1 && w === C - 1 ? Te : x === -1 && w === C + 1 ? Gr : x === -1 && w === C ? Yr : $;
|
|
618
|
+
}
|
|
619
|
+
function Zr(r, e) {
|
|
620
|
+
let t = Date.now(), o = $;
|
|
621
|
+
return (a, n, s, i, l, c) => {
|
|
622
|
+
const u = Date.now();
|
|
623
|
+
if (c.has(se)) return o = $, t = u, ce;
|
|
624
|
+
const d = Vr(a, n, i, l, r.isComposing()), f = (() => {
|
|
625
|
+
const v = s === null || s.editor === r, C = c.has(zt);
|
|
626
|
+
if (!C && v && c.has(de)) return Q;
|
|
640
627
|
if (a === null) return ue;
|
|
641
628
|
const w = n._selection;
|
|
642
|
-
return i.size > 0 || l.size > 0 ? C === !1 && d !==
|
|
643
|
-
const _ = y._nodeMap.get(x), N = E._nodeMap.get(x), b = y._selection,
|
|
644
|
-
return !(g(b) && g(
|
|
645
|
-
}(Array.from(i)[0], a, n) ?
|
|
629
|
+
return i.size > 0 || l.size > 0 ? C === !1 && d !== $ && d === o && u < t + e && v || i.size === 1 && function(x, y, E) {
|
|
630
|
+
const _ = y._nodeMap.get(x), N = E._nodeMap.get(x), b = y._selection, D = E._selection;
|
|
631
|
+
return !(g(b) && g(D) && b.anchor.type === "element" && b.focus.type === "element" && D.anchor.type === "text" && D.focus.type === "text" || !M(_) || !M(N) || _.__parent !== N.__parent) && JSON.stringify(y.read(() => _.exportJSON())) === JSON.stringify(E.read(() => N.exportJSON()));
|
|
632
|
+
}(Array.from(i)[0], a, n) ? Q : ue : w !== null ? Q : ce;
|
|
646
633
|
})();
|
|
647
|
-
return t =
|
|
634
|
+
return t = u, o = d, f;
|
|
648
635
|
};
|
|
649
636
|
}
|
|
650
637
|
function Pe(r) {
|
|
651
638
|
r.undoStack = [], r.redoStack = [], r.current = null;
|
|
652
639
|
}
|
|
653
640
|
function Qr(r, e, t) {
|
|
654
|
-
const o =
|
|
655
|
-
return
|
|
641
|
+
const o = Zr(r, t);
|
|
642
|
+
return U(r.registerCommand(Kt, () => (function(n, s) {
|
|
656
643
|
const i = s.redoStack, l = s.undoStack;
|
|
657
644
|
if (l.length !== 0) {
|
|
658
|
-
const
|
|
659
|
-
|
|
645
|
+
const c = s.current, u = l.pop();
|
|
646
|
+
c !== null && (i.push(c), n.dispatchCommand(G, !0)), l.length === 0 && n.dispatchCommand(Y, !1), s.current = u || null, u && u.editor.setEditorState(u.editorState, { tag: se });
|
|
660
647
|
}
|
|
661
648
|
}(r, e), !0), m), r.registerCommand(Ot, () => (function(n, s) {
|
|
662
649
|
const i = s.redoStack, l = s.undoStack;
|
|
663
650
|
if (i.length !== 0) {
|
|
664
|
-
const
|
|
665
|
-
|
|
666
|
-
const
|
|
667
|
-
i.length === 0 && n.dispatchCommand(G, !1), s.current =
|
|
651
|
+
const c = s.current;
|
|
652
|
+
c !== null && (l.push(c), n.dispatchCommand(Y, !0));
|
|
653
|
+
const u = i.pop();
|
|
654
|
+
i.length === 0 && n.dispatchCommand(G, !1), s.current = u || null, u && u.editor.setEditorState(u.editorState, { tag: se });
|
|
668
655
|
}
|
|
669
|
-
}(r, e), !0), m), r.registerCommand(
|
|
670
|
-
const
|
|
671
|
-
if (
|
|
672
|
-
const C = o(s, n,
|
|
673
|
-
if (C === ue) d.length !== 0 && (e.redoStack = [], r.dispatchCommand(G, !1)),
|
|
656
|
+
}(r, e), !0), m), r.registerCommand(It, () => (Pe(e), !1), m), r.registerCommand(Mt, () => (Pe(e), r.dispatchCommand(G, !1), r.dispatchCommand(Y, !1), !0), m), r.registerUpdateListener(({ editorState: n, prevEditorState: s, dirtyLeaves: i, dirtyElements: l, tags: c }) => {
|
|
657
|
+
const u = e.current, d = e.redoStack, f = e.undoStack, v = u === null ? null : u.editorState;
|
|
658
|
+
if (u !== null && n === v) return;
|
|
659
|
+
const C = o(s, n, u, i, l, c);
|
|
660
|
+
if (C === ue) d.length !== 0 && (e.redoStack = [], r.dispatchCommand(G, !1)), u !== null && (f.push({ ...u }), r.dispatchCommand(Y, !0));
|
|
674
661
|
else if (C === ce) return;
|
|
675
662
|
e.current = { editor: r, editorState: n };
|
|
676
663
|
}));
|
|
677
664
|
}
|
|
678
|
-
function
|
|
665
|
+
function en() {
|
|
679
666
|
return { current: null, redoStack: [], undoStack: [] };
|
|
680
667
|
}
|
|
681
|
-
function
|
|
682
|
-
const [t] =
|
|
668
|
+
function tn({ delay: r, externalHistoryState: e }) {
|
|
669
|
+
const [t] = I();
|
|
683
670
|
return function(o, a, n = 1e3) {
|
|
684
|
-
const s =
|
|
685
|
-
|
|
671
|
+
const s = te(() => a || en(), [a]);
|
|
672
|
+
k(() => Qr(o, s, n), [n, o, s]);
|
|
686
673
|
}(t, e, r), null;
|
|
687
674
|
}
|
|
688
|
-
function
|
|
689
|
-
const [a] =
|
|
690
|
-
return
|
|
691
|
-
|
|
675
|
+
function rn({ hasCellMerge: r = !0, hasCellBackgroundColor: e = !0, hasTabHandler: t = !0, hasHorizontalScroll: o = !1 }) {
|
|
676
|
+
const [a] = I();
|
|
677
|
+
return k(() => {
|
|
678
|
+
Qt(a) !== o && (er(a, o), a.registerNodeTransform(We, () => {
|
|
692
679
|
})());
|
|
693
|
-
}, [a, o]),
|
|
694
|
-
if (!r) return
|
|
695
|
-
}, [a, r]),
|
|
696
|
-
if (!e) return a.registerNodeTransform(
|
|
680
|
+
}, [a, o]), k(() => tr(a), [a]), k(() => rr(a, t), [a, t]), k(() => {
|
|
681
|
+
if (!r) return nr(a);
|
|
682
|
+
}, [a, r]), k(() => {
|
|
683
|
+
if (!e) return a.registerNodeTransform(He, (n) => {
|
|
697
684
|
n.getBackgroundColor() !== null && n.setBackgroundColor(null);
|
|
698
685
|
});
|
|
699
686
|
}, [a, e, r]), null;
|
|
700
687
|
}
|
|
701
|
-
const
|
|
688
|
+
const qe = 200, nn = ({
|
|
702
689
|
currentLanguage: r = "NL",
|
|
703
690
|
initialValue: e = "",
|
|
704
691
|
placeholder: t = "",
|
|
@@ -707,67 +694,67 @@ const Ve = 200, rn = ({
|
|
|
707
694
|
required: n = !1,
|
|
708
695
|
notValidatedText: s = "",
|
|
709
696
|
maxHeightInRem: i = "20rem",
|
|
710
|
-
maxWords: l =
|
|
711
|
-
onChange:
|
|
697
|
+
maxWords: l = qe,
|
|
698
|
+
onChange: c
|
|
712
699
|
}) => {
|
|
713
|
-
const { switchLanguage:
|
|
700
|
+
const { switchLanguage: u } = Er(), d = pr(), [f] = O(() => Me()), [v, C] = O(0), [w, x] = O(0), y = Bt(null), E = {
|
|
714
701
|
html: {
|
|
715
|
-
export:
|
|
702
|
+
export: ur
|
|
716
703
|
},
|
|
717
704
|
namespace: "UvaRte",
|
|
718
705
|
editor: f,
|
|
719
|
-
theme:
|
|
706
|
+
theme: vr,
|
|
720
707
|
onError(b) {
|
|
721
708
|
throw b;
|
|
722
709
|
},
|
|
723
|
-
nodes: [Be, Ue,
|
|
710
|
+
nodes: [Fe, Be, Ue, Zt, He, or, We, wr],
|
|
724
711
|
editorState: (b) => {
|
|
725
|
-
const
|
|
726
|
-
if (
|
|
727
|
-
|
|
728
|
-
|
|
712
|
+
const S = new DOMParser().parseFromString(e, "text/html"), P = Xt(b, S), K = F();
|
|
713
|
+
if (K.clear(), cr(e))
|
|
714
|
+
P.forEach((B) => {
|
|
715
|
+
K.append(B);
|
|
729
716
|
});
|
|
730
717
|
else {
|
|
731
718
|
const B = Ie();
|
|
732
|
-
|
|
733
|
-
|
|
719
|
+
P.forEach((L, X) => {
|
|
720
|
+
X === 0 ? (B.append(L), K.append(B)) : K.append(L);
|
|
734
721
|
});
|
|
735
722
|
}
|
|
736
723
|
}
|
|
737
|
-
}, _ = (b) => b.trim().length === 0 ? 0 : b.split(" ").length, N = (b,
|
|
724
|
+
}, _ = (b) => b.trim().length === 0 ? 0 : b.split(" ").length, N = (b, D) => {
|
|
738
725
|
b.read(() => {
|
|
739
|
-
let
|
|
740
|
-
C(_(
|
|
726
|
+
let S = "";
|
|
727
|
+
C(_(F().getTextContent().replace(/\s+/g, " ").trim())), S = dr(qt(D)), S = fr(S), c(S);
|
|
741
728
|
});
|
|
742
729
|
};
|
|
743
|
-
return
|
|
744
|
-
|
|
745
|
-
}, [r,
|
|
730
|
+
return k(() => {
|
|
731
|
+
u(r.toLocaleLowerCase());
|
|
732
|
+
}, [r, u]), k(() => {
|
|
746
733
|
const b = e.replace(/<br\s*\/?>| /gi, " ").replace(/<\/?[^>]+(>|$)|&[a-z]+;/g, "").replace(/\s+/g, " ").trim();
|
|
747
734
|
C(_(b));
|
|
748
|
-
}, []), /* @__PURE__ */
|
|
749
|
-
/* @__PURE__ */
|
|
750
|
-
/* @__PURE__ */ h(
|
|
751
|
-
/* @__PURE__ */
|
|
752
|
-
/* @__PURE__ */ h("span", { className:
|
|
735
|
+
}, []), /* @__PURE__ */ z("div", { className: R.editor__container, children: [
|
|
736
|
+
/* @__PURE__ */ z("div", { className: R.editor__header, children: [
|
|
737
|
+
/* @__PURE__ */ h(Cr, { label: o, info: a, required: n }),
|
|
738
|
+
/* @__PURE__ */ z("div", { className: R["editor__header-word-count"], children: [
|
|
739
|
+
/* @__PURE__ */ h("span", { className: lr({ [R["editor__header-word-count--alert"]]: v > l }), children: v }),
|
|
753
740
|
" / ",
|
|
754
741
|
l
|
|
755
742
|
] })
|
|
756
743
|
] }),
|
|
757
|
-
/* @__PURE__ */ h("div", { className:
|
|
758
|
-
/* @__PURE__ */ h(
|
|
759
|
-
/* @__PURE__ */
|
|
744
|
+
/* @__PURE__ */ h("div", { className: R.editor, children: /* @__PURE__ */ z(_r, { initialConfig: E, children: [
|
|
745
|
+
/* @__PURE__ */ h(mr, { editorScrollPosition: w }),
|
|
746
|
+
/* @__PURE__ */ z("div", { className: R["editor__field-wrapper"], children: [
|
|
760
747
|
/* @__PURE__ */ h(
|
|
761
|
-
|
|
748
|
+
Mr,
|
|
762
749
|
{
|
|
763
750
|
contentEditable: /* @__PURE__ */ h(
|
|
764
|
-
|
|
751
|
+
zr,
|
|
765
752
|
{
|
|
766
|
-
className:
|
|
753
|
+
className: R.editor__field,
|
|
767
754
|
"aria-label": d.common.rteAriaLabel,
|
|
768
755
|
"aria-placeholder": t,
|
|
769
756
|
title: d.common.rteTitle,
|
|
770
|
-
placeholder: /* @__PURE__ */ h("div", { className:
|
|
757
|
+
placeholder: /* @__PURE__ */ h("div", { className: R.editor__placeholder, children: t }),
|
|
771
758
|
spellCheck: !1,
|
|
772
759
|
id: "rteEditor",
|
|
773
760
|
style: { height: `${i}`, maxHeight: `${i}` },
|
|
@@ -775,23 +762,24 @@ const Ve = 200, rn = ({
|
|
|
775
762
|
ref: y
|
|
776
763
|
}
|
|
777
764
|
),
|
|
778
|
-
placeholder: /* @__PURE__ */ h("div", { className:
|
|
779
|
-
ErrorBoundary:
|
|
765
|
+
placeholder: /* @__PURE__ */ h("div", { className: R.editor__placeholder, children: t }),
|
|
766
|
+
ErrorBoundary: Ur
|
|
780
767
|
}
|
|
781
768
|
),
|
|
769
|
+
/* @__PURE__ */ h(rn, {}),
|
|
770
|
+
/* @__PURE__ */ h(Wt, {}),
|
|
782
771
|
/* @__PURE__ */ h(tn, {}),
|
|
783
|
-
/* @__PURE__ */ h(
|
|
784
|
-
/* @__PURE__ */ h(
|
|
785
|
-
/* @__PURE__ */ h(
|
|
786
|
-
/* @__PURE__ */ h(
|
|
787
|
-
/* @__PURE__ */ h(Jr, {}),
|
|
772
|
+
/* @__PURE__ */ h(jr, {}),
|
|
773
|
+
/* @__PURE__ */ h(Jr, { validateUrl: ar }),
|
|
774
|
+
/* @__PURE__ */ h(sr, { matchers: ir }),
|
|
775
|
+
/* @__PURE__ */ h(Xr, {}),
|
|
788
776
|
/* @__PURE__ */ h(Hr, { onChange: N }),
|
|
789
|
-
/* @__PURE__ */ h(
|
|
777
|
+
/* @__PURE__ */ h(hr, {})
|
|
790
778
|
] })
|
|
791
779
|
] }) }),
|
|
792
|
-
s !== "" && /* @__PURE__ */ h(
|
|
780
|
+
s !== "" && /* @__PURE__ */ h(gr, { level: "error", feedback: s })
|
|
793
781
|
] });
|
|
794
|
-
},
|
|
782
|
+
}, Yn = ({
|
|
795
783
|
currentLanguage: r = "NL",
|
|
796
784
|
initialValue: e = "",
|
|
797
785
|
placeholder: t = "",
|
|
@@ -799,10 +787,10 @@ const Ve = 200, rn = ({
|
|
|
799
787
|
info: a = "",
|
|
800
788
|
required: n = !1,
|
|
801
789
|
notValidatedText: s = "",
|
|
802
|
-
maxWords: i =
|
|
790
|
+
maxWords: i = qe,
|
|
803
791
|
onChange: l
|
|
804
|
-
}) => /* @__PURE__ */ h(
|
|
805
|
-
|
|
792
|
+
}) => /* @__PURE__ */ h(yr, { children: /* @__PURE__ */ h(
|
|
793
|
+
nn,
|
|
806
794
|
{
|
|
807
795
|
currentLanguage: r,
|
|
808
796
|
initialValue: e,
|
|
@@ -816,7 +804,7 @@ const Ve = 200, rn = ({
|
|
|
816
804
|
}
|
|
817
805
|
) });
|
|
818
806
|
export {
|
|
819
|
-
|
|
820
|
-
|
|
807
|
+
nn as Rte,
|
|
808
|
+
Yn as RteEditor
|
|
821
809
|
};
|
|
822
810
|
//# sourceMappingURL=RteEditor.js.map
|