@uva-glass/component-library 1.63.0 → 1.64.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-DSqOWcE1.js +4072 -0
- package/dist/Lexical.prod-DSqOWcE1.js.map +1 -0
- package/dist/{LexicalClipboard.prod-C6LsK5E6.js → LexicalClipboard.prod-DP0us-xV.js} +107 -107
- package/dist/{LexicalClipboard.prod-C6LsK5E6.js.map → LexicalClipboard.prod-DP0us-xV.js.map} +1 -1
- package/dist/LexicalLink.prod-DWrTW8iE.js +208 -0
- package/dist/LexicalLink.prod-DWrTW8iE.js.map +1 -0
- package/dist/LexicalList.prod-Cg8npow-.js +564 -0
- package/dist/LexicalList.prod-Cg8npow-.js.map +1 -0
- package/dist/LexicalTable.prod-DEA4KRzX.js +1221 -0
- package/dist/LexicalTable.prod-DEA4KRzX.js.map +1 -0
- package/dist/{LexicalUtils.prod-BTFNWAMw.js → LexicalUtils.prod-CicP_X7u.js} +44 -35
- package/dist/{LexicalUtils.prod-BTFNWAMw.js.map → LexicalUtils.prod-CicP_X7u.js.map} +1 -1
- package/dist/{TablePlugin-BLzR0g93.js → TablePlugin-BBOjr3TX.js} +56 -58
- package/dist/{TablePlugin-BLzR0g93.js.map → TablePlugin-BBOjr3TX.js.map} +1 -1
- package/dist/assets/AccordionCard.css +1 -0
- package/dist/components/AccordionCard/AccordionCard.d.ts +10 -0
- package/dist/components/AccordionCard/AccordionCard.js +58 -0
- package/dist/components/AccordionCard/AccordionCard.js.map +1 -0
- package/dist/components/AccordionCard/AccordionCard.stories.d.ts +5 -0
- package/dist/components/AccordionCard/AccordionCard.stories.js +33 -0
- package/dist/components/AccordionCard/AccordionCard.stories.js.map +1 -0
- package/dist/components/AccordionCard/index.d.ts +1 -0
- package/dist/components/AccordionCard/index.js +5 -0
- package/dist/components/AccordionCard/index.js.map +1 -0
- package/dist/components/CheckboxTree/CheckboxTree.js +18 -21
- package/dist/components/CheckboxTree/CheckboxTree.js.map +1 -1
- package/dist/components/FormInput/FormInput.js +12 -15
- package/dist/components/FormInput/FormInput.js.map +1 -1
- package/dist/components/InputField/InputField.stories.js +13 -16
- 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 -6
- package/dist/components/MultiSelect/components/MultiSelectHeader.js.map +1 -1
- package/dist/components/MultiSelect/index.js +1 -1
- package/dist/components/PeriodSelector/PeriodSelector.js +19 -22
- package/dist/components/PeriodSelector/PeriodSelector.js.map +1 -1
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +17 -20
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js.map +1 -1
- package/dist/components/RteEditor/EditorHeader/EditorHeader.js +4 -7
- package/dist/components/RteEditor/EditorHeader/EditorHeader.js.map +1 -1
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +16 -16
- package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +26 -28
- package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js.map +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +4 -7
- 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 +100 -101
- 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 +35 -35
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js.map +1 -1
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +15 -15
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js.map +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +3 -6
- package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js.map +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +5 -7
- package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js.map +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +12 -12
- package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +34 -34
- package/dist/components/RteEditor/Plugins/index.js +1 -1
- package/dist/components/RteEditor/RteEditor.js +354 -354
- package/dist/components/RteEditor/RteEditor.js.map +1 -1
- package/dist/components/RteEditor/helpers.js +27 -27
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +98 -96
- package/dist/components/index.js.map +1 -1
- package/dist/helpers-BuSJOvGF.js +168 -0
- package/dist/{helpers-B-pdj8pq.js.map → helpers-BuSJOvGF.js.map} +1 -1
- package/dist/index-DPQ9bZx5.js +231 -0
- package/dist/index-DPQ9bZx5.js.map +1 -0
- package/dist/index.js +98 -96
- package/dist/index.js.map +1 -1
- package/package.json +8 -6
- package/dist/LexicalTable.prod-DqzrJuYr.js +0 -1221
- package/dist/LexicalTable.prod-DqzrJuYr.js.map +0 -1
- package/dist/helpers-B-pdj8pq.js +0 -168
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { l as
|
|
3
|
-
import {
|
|
1
|
+
import { jsx as y, jsxs as K, Fragment as Oe } from "react/jsx-runtime";
|
|
2
|
+
import { l as Ye, o as Ze, u as P } from "../../LexicalComposerContext.prod-Dyvim1tK.js";
|
|
3
|
+
import { am as Fe, O as z, D as me, M as v, T as q, x as J, L as Ge, b as T, v as C, Y as Ke, an as Qe, a0 as p, n as et, a6 as F, aj as tt, ao as nt, ap as rt, aq as ot, C as ie, ar as it, as as st, K as at, P as lt, F as ct, i as dt, at as ut, au as ge, o as he, w as ft, s as se, l as mt, a9 as Ae, av as ve, p as pt, h as gt, e as ht, a8 as Ce, g as vt, aw as Ct, ax as yt, ay as wt, ah as Et, r as bt, q as $t, az as St, y as _t, k as xt, j as kt, a1 as Lt, t as Nt, I as ye, aA as Dt, a as Tt, a3 as Y, a2 as Z, aB as Pt, aC as Rt, a5 as Mt, a4 as It, H as Ot } from "../../Lexical.prod-DSqOWcE1.js";
|
|
4
4
|
import * as ae from "react";
|
|
5
|
-
import { useMemo as
|
|
6
|
-
import { L as B, i as
|
|
7
|
-
import { r as
|
|
8
|
-
import { _ as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { u as re, e as oe, c as
|
|
12
|
-
import { a as tn, F as nn, M as rn } from "../../helpers-
|
|
5
|
+
import { useMemo as W, useLayoutEffect as j, useEffect as x, useRef as ze, useState as I, Suspense as Ft, forwardRef as Be, useCallback as Kt } from "react";
|
|
6
|
+
import { L as B, i as A, e as At, t as pe, r as zt, u as Bt } from "../../LexicalUtils.prod-CicP_X7u.js";
|
|
7
|
+
import { r as we } from "../../index-DsprzSCj.js";
|
|
8
|
+
import { _ as Ee, O as be, L as $e, $ as Se, h as Ut, m as jt } from "../../LexicalClipboard.prod-DP0us-xV.js";
|
|
9
|
+
import { J as Ue, D as je, Z as Ht } from "../../LexicalList.prod-Cg8npow-.js";
|
|
10
|
+
import { a as He, U as _e, m as le, g as qt, f as Jt } from "../../LexicalLink.prod-DWrTW8iE.js";
|
|
11
|
+
import { u as re, e as oe, c as qe, K as Wt, n as xe, r as Vt, d as Xt, b as Yt, k as Zt, F as Gt, h as ke, o as Qt, U as en } from "../../LexicalTable.prod-DEA4KRzX.js";
|
|
12
|
+
import { a as tn, F as nn, M as rn } from "../../helpers-BuSJOvGF.js";
|
|
13
13
|
import { c as on } from "../../clsx-OuTLNxxd.js";
|
|
14
14
|
import { exportMap as sn, isStartingWithHtmlTag as an, mergeBoldStrongTags as ln } from "./helpers.js";
|
|
15
|
-
import { s as
|
|
15
|
+
import { s as M } from "../../RteEditor.module-DcvGRx3a.js";
|
|
16
16
|
import { ToolBarPlugin as cn } from "./Plugins/ToolbarPlugin/ToolbarPlugin.js";
|
|
17
17
|
import { useTranslation as dn } from "./hooks/useTranslation.js";
|
|
18
|
-
import "../../TablePlugin-
|
|
18
|
+
import "../../TablePlugin-BBOjr3TX.js";
|
|
19
19
|
import "./Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
|
|
20
20
|
import "./hooks/components/Flyout.js";
|
|
21
21
|
import "../Buttons/Button.js";
|
|
@@ -39,97 +39,97 @@ import { UvaTheme as fn } from "./UvaTheme/UvaTheme.js";
|
|
|
39
39
|
import { EditorHeader as mn } from "./EditorHeader/EditorHeader.js";
|
|
40
40
|
import { useLanguage as pn, LanguageProvider as gn } from "./Providers/LanguageProvider.js";
|
|
41
41
|
import { PasteHandlerPlugin as hn } from "./Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js";
|
|
42
|
-
const
|
|
43
|
-
function
|
|
44
|
-
const n =
|
|
45
|
-
const { theme: r, namespace: i, nodes: o, onError: s, editorState: a, html: l } = t, c =
|
|
42
|
+
const Je = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, vn = Je ? j : x, G = { tag: "history-merge" };
|
|
43
|
+
function Cn({ initialConfig: t, children: e }) {
|
|
44
|
+
const n = W(() => {
|
|
45
|
+
const { theme: r, namespace: i, nodes: o, onError: s, editorState: a, html: l } = t, c = Ze(null, r), d = Fe({ editable: t.editable, html: l, namespace: i, nodes: o, onError: (u) => s(u, d), theme: r });
|
|
46
46
|
return function(u, f) {
|
|
47
47
|
if (f !== null) {
|
|
48
48
|
if (f === void 0) u.update(() => {
|
|
49
|
-
const m =
|
|
49
|
+
const m = z();
|
|
50
50
|
if (m.isEmpty()) {
|
|
51
51
|
const g = me();
|
|
52
52
|
m.append(g);
|
|
53
|
-
const h =
|
|
54
|
-
(
|
|
53
|
+
const h = Je ? document.activeElement : null;
|
|
54
|
+
(v() !== null || h !== null && h === u.getRootElement()) && g.select();
|
|
55
55
|
}
|
|
56
|
-
},
|
|
56
|
+
}, G);
|
|
57
57
|
else if (f !== null) switch (typeof f) {
|
|
58
58
|
case "string": {
|
|
59
59
|
const m = u.parseEditorState(f);
|
|
60
|
-
u.setEditorState(m,
|
|
60
|
+
u.setEditorState(m, G);
|
|
61
61
|
break;
|
|
62
62
|
}
|
|
63
63
|
case "object":
|
|
64
|
-
u.setEditorState(f,
|
|
64
|
+
u.setEditorState(f, G);
|
|
65
65
|
break;
|
|
66
66
|
case "function":
|
|
67
67
|
u.update(() => {
|
|
68
|
-
|
|
69
|
-
},
|
|
68
|
+
z().isEmpty() && f(u);
|
|
69
|
+
}, G);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
}(d, a), [d, c];
|
|
73
73
|
}, []);
|
|
74
|
-
return
|
|
74
|
+
return vn(() => {
|
|
75
75
|
const r = t.editable, [i] = n;
|
|
76
76
|
i.setEditable(r === void 0 || r);
|
|
77
|
-
}, []),
|
|
77
|
+
}, []), y(Ye.Provider, { value: n, children: e });
|
|
78
78
|
}
|
|
79
|
-
const
|
|
80
|
-
function
|
|
79
|
+
const yn = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? j : x;
|
|
80
|
+
function wn(t) {
|
|
81
81
|
return { initialValueFn: () => t.isEditable(), subscribe: (e) => t.registerEditableListener(e) };
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function En() {
|
|
84
84
|
return function(t) {
|
|
85
|
-
const [e] =
|
|
86
|
-
return
|
|
85
|
+
const [e] = P(), n = W(() => t(e), [e, t]), r = ze(n.initialValueFn()), [i, o] = I(r.current);
|
|
86
|
+
return yn(() => {
|
|
87
87
|
const { initialValueFn: s, subscribe: a } = n, l = s();
|
|
88
88
|
return r.current !== l && (r.current = l, o(l)), a((c) => {
|
|
89
89
|
r.current = c, o(c);
|
|
90
90
|
});
|
|
91
91
|
}, [n, t]), i;
|
|
92
|
-
}(
|
|
92
|
+
}(wn);
|
|
93
93
|
}
|
|
94
|
-
function
|
|
95
|
-
return
|
|
94
|
+
function bn() {
|
|
95
|
+
return z().getTextContent();
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function $n(t, e = !0) {
|
|
98
98
|
if (t) return !1;
|
|
99
|
-
let n =
|
|
99
|
+
let n = bn();
|
|
100
100
|
return e && (n = n.trim()), n === "";
|
|
101
101
|
}
|
|
102
|
-
function
|
|
103
|
-
if (
|
|
104
|
-
const e =
|
|
102
|
+
function Sn(t) {
|
|
103
|
+
if (!$n(t, !1)) return !1;
|
|
104
|
+
const e = z().getChildren(), n = e.length;
|
|
105
105
|
if (n > 1) return !1;
|
|
106
106
|
for (let r = 0; r < n; r++) {
|
|
107
107
|
const i = e[r];
|
|
108
|
-
if (
|
|
109
|
-
if (
|
|
110
|
-
if (!
|
|
108
|
+
if (q(i)) return !1;
|
|
109
|
+
if (J(i)) {
|
|
110
|
+
if (!Ge(i) || i.__indent !== 0) return !1;
|
|
111
111
|
const o = i.getChildren(), s = o.length;
|
|
112
112
|
for (let a = 0; a < s; a++) {
|
|
113
113
|
const l = o[r];
|
|
114
|
-
if (!
|
|
114
|
+
if (!T(l)) return !1;
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
return !0;
|
|
119
119
|
}
|
|
120
|
-
function
|
|
121
|
-
return () =>
|
|
120
|
+
function We(t) {
|
|
121
|
+
return () => Sn(t);
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function _n(t) {
|
|
124
124
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
125
125
|
}
|
|
126
|
-
|
|
126
|
+
_n(function(t) {
|
|
127
127
|
const e = new URLSearchParams();
|
|
128
128
|
e.append("code", t);
|
|
129
129
|
for (let n = 1; n < arguments.length; n++) e.append("v", arguments[n]);
|
|
130
130
|
throw Error(`Minified Lexical error #${t}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`);
|
|
131
131
|
});
|
|
132
|
-
function
|
|
132
|
+
function xn(t) {
|
|
133
133
|
const e = window.location.origin, n = (r) => {
|
|
134
134
|
if (r.origin !== e) return;
|
|
135
135
|
const i = t.getRootElement();
|
|
@@ -149,14 +149,14 @@ function On(t) {
|
|
|
149
149
|
if (l) {
|
|
150
150
|
const [c, d, u, f, m, g] = l;
|
|
151
151
|
t.update(() => {
|
|
152
|
-
const h =
|
|
153
|
-
if (
|
|
154
|
-
const
|
|
155
|
-
let
|
|
156
|
-
if (
|
|
157
|
-
|
|
158
|
-
const
|
|
159
|
-
|
|
152
|
+
const h = v();
|
|
153
|
+
if (C(h)) {
|
|
154
|
+
const S = h.anchor;
|
|
155
|
+
let w = S.getNode(), E = 0, $ = 0;
|
|
156
|
+
if (T(w) && c >= 0 && d >= 0 && (E = c, $ = c + d, h.setTextNodeRange(w, E, w, $)), E === $ && u === "" || (h.insertRawText(u), w = S.getNode()), T(w)) {
|
|
157
|
+
E = f, $ = f + m;
|
|
158
|
+
const k = w.getTextContentSize();
|
|
159
|
+
E = E > k ? k : E, $ = $ > k ? k : $, h.setTextNodeRange(w, E, w, $);
|
|
160
160
|
}
|
|
161
161
|
r.stopImmediatePropagation();
|
|
162
162
|
}
|
|
@@ -170,7 +170,7 @@ function On(t) {
|
|
|
170
170
|
window.removeEventListener("message", n, !0);
|
|
171
171
|
};
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function Le(t, e) {
|
|
174
174
|
if (document.caretRangeFromPoint !== void 0) {
|
|
175
175
|
const n = document.caretRangeFromPoint(t, e);
|
|
176
176
|
return n === null ? null : { node: n.startContainer, offset: n.startOffset };
|
|
@@ -181,21 +181,21 @@ function be(t, e) {
|
|
|
181
181
|
}
|
|
182
182
|
return null;
|
|
183
183
|
}
|
|
184
|
-
const H = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0,
|
|
185
|
-
function
|
|
184
|
+
const H = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, kn = H && "documentMode" in document ? document.documentMode : null, Ln = !(!H || !("InputEvent" in window) || kn) && "getTargetRanges" in new window.InputEvent("input"), Nn = H && /Version\/[\d.]+.*Safari/.test(navigator.userAgent), Dn = H && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, Tn = H && /^(?=.*Chrome).*/i.test(navigator.userAgent), Pn = H && /AppleWebKit\/[\d.]+/.test(navigator.userAgent) && !Tn, Ne = Nt();
|
|
185
|
+
function Q(t) {
|
|
186
186
|
let e = null;
|
|
187
|
-
if (
|
|
187
|
+
if (A(t, DragEvent) ? e = t.dataTransfer : A(t, ClipboardEvent) && (e = t.clipboardData), e === null) return [!1, [], !1];
|
|
188
188
|
const n = e.types, r = n.includes("Files"), i = n.includes("text/html") || n.includes("text/plain");
|
|
189
189
|
return [r, Array.from(e.files), i];
|
|
190
190
|
}
|
|
191
|
-
function
|
|
192
|
-
const e =
|
|
193
|
-
if (!
|
|
191
|
+
function De(t) {
|
|
192
|
+
const e = v();
|
|
193
|
+
if (!C(e)) return !1;
|
|
194
194
|
const n = /* @__PURE__ */ new Set(), r = e.getNodes();
|
|
195
195
|
for (let i = 0; i < r.length; i++) {
|
|
196
196
|
const o = r[i], s = o.getKey();
|
|
197
197
|
if (n.has(s)) continue;
|
|
198
|
-
const a = pe(o, (c) =>
|
|
198
|
+
const a = pe(o, (c) => J(c) && !c.isInline());
|
|
199
199
|
if (a === null) continue;
|
|
200
200
|
const l = a.getKey();
|
|
201
201
|
a.canIndent() && !n.has(l) && (n.add(l), t(a));
|
|
@@ -204,209 +204,209 @@ function Te(t) {
|
|
|
204
204
|
}
|
|
205
205
|
function ee(t) {
|
|
206
206
|
const e = ie(t);
|
|
207
|
-
return
|
|
207
|
+
return q(e);
|
|
208
208
|
}
|
|
209
|
-
function
|
|
210
|
-
return B(t.registerCommand(
|
|
211
|
-
const n =
|
|
212
|
-
return !!
|
|
209
|
+
function Rn(t) {
|
|
210
|
+
return B(t.registerCommand(Lt, (e) => {
|
|
211
|
+
const n = v();
|
|
212
|
+
return !!F(n) && (n.clear(), !0);
|
|
213
213
|
}, 0), t.registerCommand(se, (e) => {
|
|
214
|
-
const n =
|
|
215
|
-
return !!
|
|
216
|
-
}, p), t.registerCommand(
|
|
217
|
-
const n =
|
|
218
|
-
return !!
|
|
219
|
-
}, p), t.registerCommand(
|
|
220
|
-
const n =
|
|
221
|
-
return !!
|
|
222
|
-
}, p), t.registerCommand(
|
|
223
|
-
const n =
|
|
214
|
+
const n = v();
|
|
215
|
+
return !!C(n) && (n.deleteCharacter(e), !0);
|
|
216
|
+
}, p), t.registerCommand(kt, (e) => {
|
|
217
|
+
const n = v();
|
|
218
|
+
return !!C(n) && (n.deleteWord(e), !0);
|
|
219
|
+
}, p), t.registerCommand(xt, (e) => {
|
|
220
|
+
const n = v();
|
|
221
|
+
return !!C(n) && (n.deleteLine(e), !0);
|
|
222
|
+
}, p), t.registerCommand(_t, (e) => {
|
|
223
|
+
const n = v();
|
|
224
224
|
if (typeof e == "string") n !== null && n.insertText(e);
|
|
225
225
|
else {
|
|
226
226
|
if (n === null) return !1;
|
|
227
227
|
const r = e.dataTransfer;
|
|
228
|
-
if (r != null)
|
|
229
|
-
else if (
|
|
228
|
+
if (r != null) Ee(r, n, t);
|
|
229
|
+
else if (C(n)) {
|
|
230
230
|
const i = e.data;
|
|
231
231
|
return i && n.insertText(i), !0;
|
|
232
232
|
}
|
|
233
233
|
}
|
|
234
234
|
return !0;
|
|
235
|
-
}, p), t.registerCommand(
|
|
236
|
-
const e =
|
|
237
|
-
return !!
|
|
238
|
-
}, p), t.registerCommand(
|
|
239
|
-
const n =
|
|
240
|
-
return !!
|
|
241
|
-
}, p), t.registerCommand(
|
|
242
|
-
const n =
|
|
243
|
-
if (!
|
|
235
|
+
}, p), t.registerCommand(St, () => {
|
|
236
|
+
const e = v();
|
|
237
|
+
return !!C(e) && (e.removeText(), !0);
|
|
238
|
+
}, p), t.registerCommand($t, (e) => {
|
|
239
|
+
const n = v();
|
|
240
|
+
return !!C(n) && (n.formatText(e), !0);
|
|
241
|
+
}, p), t.registerCommand(bt, (e) => {
|
|
242
|
+
const n = v();
|
|
243
|
+
if (!C(n) && !F(n)) return !1;
|
|
244
244
|
const r = n.getNodes();
|
|
245
245
|
for (const i of r) {
|
|
246
|
-
const o = pe(i, (s) =>
|
|
246
|
+
const o = pe(i, (s) => J(s) && !s.isInline());
|
|
247
247
|
o !== null && o.setFormat(e);
|
|
248
248
|
}
|
|
249
249
|
return !0;
|
|
250
250
|
}, p), t.registerCommand(ge, (e) => {
|
|
251
|
-
const n =
|
|
252
|
-
return !!
|
|
251
|
+
const n = v();
|
|
252
|
+
return !!C(n) && (n.insertLineBreak(e), !0);
|
|
253
253
|
}, p), t.registerCommand(he, () => {
|
|
254
|
-
const e =
|
|
255
|
-
return !!
|
|
256
|
-
}, p), t.registerCommand(
|
|
254
|
+
const e = v();
|
|
255
|
+
return !!C(e) && (e.insertParagraph(), !0);
|
|
256
|
+
}, p), t.registerCommand(yt, () => (wt([Et()]), !0), p), t.registerCommand(Ct, () => De((e) => {
|
|
257
257
|
const n = e.getIndent();
|
|
258
258
|
e.setIndent(n + 1);
|
|
259
|
-
}), p), t.registerCommand(
|
|
259
|
+
}), p), t.registerCommand(ve, () => De((e) => {
|
|
260
260
|
const n = e.getIndent();
|
|
261
261
|
n > 0 && e.setIndent(n - 1);
|
|
262
|
-
}), p), t.registerCommand(
|
|
263
|
-
const n =
|
|
264
|
-
if (
|
|
262
|
+
}), p), t.registerCommand(vt, (e) => {
|
|
263
|
+
const n = v();
|
|
264
|
+
if (F(n) && !ee(e.target)) {
|
|
265
265
|
const r = n.getNodes();
|
|
266
266
|
if (r.length > 0) return r[0].selectPrevious(), !0;
|
|
267
|
-
} else if (
|
|
268
|
-
const r =
|
|
269
|
-
if (!e.shiftKey &&
|
|
267
|
+
} else if (C(n)) {
|
|
268
|
+
const r = Ce(n.focus, !0);
|
|
269
|
+
if (!e.shiftKey && q(r) && !r.isIsolated() && !r.isInline()) return r.selectPrevious(), e.preventDefault(), !0;
|
|
270
270
|
}
|
|
271
271
|
return !1;
|
|
272
|
-
}, p), t.registerCommand(
|
|
273
|
-
const n =
|
|
274
|
-
if (
|
|
272
|
+
}, p), t.registerCommand(ht, (e) => {
|
|
273
|
+
const n = v();
|
|
274
|
+
if (F(n)) {
|
|
275
275
|
const r = n.getNodes();
|
|
276
276
|
if (r.length > 0) return r[0].selectNext(0, 0), !0;
|
|
277
|
-
} else if (
|
|
277
|
+
} else if (C(n)) {
|
|
278
278
|
if (function(i) {
|
|
279
279
|
const o = i.focus;
|
|
280
|
-
return o.key === "root" && o.offset ===
|
|
280
|
+
return o.key === "root" && o.offset === z().getChildrenSize();
|
|
281
281
|
}(n)) return e.preventDefault(), !0;
|
|
282
|
-
const r =
|
|
283
|
-
if (!e.shiftKey &&
|
|
282
|
+
const r = Ce(n.focus, !1);
|
|
283
|
+
if (!e.shiftKey && q(r) && !r.isIsolated() && !r.isInline()) return r.selectNext(), e.preventDefault(), !0;
|
|
284
284
|
}
|
|
285
285
|
return !1;
|
|
286
|
-
}, p), t.registerCommand(
|
|
287
|
-
const n =
|
|
288
|
-
if (
|
|
286
|
+
}, p), t.registerCommand(gt, (e) => {
|
|
287
|
+
const n = v();
|
|
288
|
+
if (F(n)) {
|
|
289
289
|
const r = n.getNodes();
|
|
290
290
|
if (r.length > 0) return e.preventDefault(), r[0].selectPrevious(), !0;
|
|
291
291
|
}
|
|
292
|
-
if (!
|
|
293
|
-
if (
|
|
292
|
+
if (!C(n)) return !1;
|
|
293
|
+
if ($e(n, !0)) {
|
|
294
294
|
const r = e.shiftKey;
|
|
295
|
-
return e.preventDefault(),
|
|
295
|
+
return e.preventDefault(), Se(n, r, !0), !0;
|
|
296
296
|
}
|
|
297
297
|
return !1;
|
|
298
|
-
}, p), t.registerCommand(
|
|
299
|
-
const n =
|
|
300
|
-
if (
|
|
298
|
+
}, p), t.registerCommand(pt, (e) => {
|
|
299
|
+
const n = v();
|
|
300
|
+
if (F(n) && !ee(e.target)) {
|
|
301
301
|
const i = n.getNodes();
|
|
302
302
|
if (i.length > 0) return e.preventDefault(), i[0].selectNext(0, 0), !0;
|
|
303
303
|
}
|
|
304
|
-
if (!
|
|
304
|
+
if (!C(n)) return !1;
|
|
305
305
|
const r = e.shiftKey;
|
|
306
|
-
return
|
|
307
|
-
}, p), t.registerCommand(
|
|
306
|
+
return !!$e(n, !1) && (e.preventDefault(), Se(n, r, !1), !0);
|
|
307
|
+
}, p), t.registerCommand(mt, (e) => {
|
|
308
308
|
if (ee(e.target)) return !1;
|
|
309
|
-
const n =
|
|
310
|
-
if (!
|
|
309
|
+
const n = v();
|
|
310
|
+
if (!C(n)) return !1;
|
|
311
311
|
e.preventDefault();
|
|
312
312
|
const { anchor: r } = n, i = r.getNode();
|
|
313
|
-
return n.isCollapsed() && r.offset === 0 && !
|
|
314
|
-
}, p), t.registerCommand(mt, (e) => {
|
|
315
|
-
if (ee(e.target)) return !1;
|
|
316
|
-
const n = C();
|
|
317
|
-
return !!E(n) && (e.preventDefault(), t.dispatchCommand(se, !1));
|
|
313
|
+
return n.isCollapsed() && r.offset === 0 && !Ae(i) && At(i).getIndent() > 0 ? t.dispatchCommand(ve, void 0) : t.dispatchCommand(se, !0);
|
|
318
314
|
}, p), t.registerCommand(ft, (e) => {
|
|
319
|
-
|
|
320
|
-
|
|
315
|
+
if (ee(e.target)) return !1;
|
|
316
|
+
const n = v();
|
|
317
|
+
return !!C(n) && (e.preventDefault(), t.dispatchCommand(se, !1));
|
|
318
|
+
}, p), t.registerCommand(ut, (e) => {
|
|
319
|
+
const n = v();
|
|
320
|
+
if (!C(n)) return !1;
|
|
321
321
|
if (e !== null) {
|
|
322
|
-
if ((
|
|
322
|
+
if ((Dn || Nn || Pn) && Ln) return !1;
|
|
323
323
|
if (e.preventDefault(), e.shiftKey) return t.dispatchCommand(ge, !1);
|
|
324
324
|
}
|
|
325
325
|
return t.dispatchCommand(he, void 0);
|
|
326
|
-
}, p), t.registerCommand(
|
|
327
|
-
const e =
|
|
328
|
-
return !!
|
|
329
|
-
}, p), t.registerCommand(
|
|
330
|
-
const [, n] =
|
|
326
|
+
}, p), t.registerCommand(dt, () => {
|
|
327
|
+
const e = v();
|
|
328
|
+
return !!C(e) && (t.blur(), !0);
|
|
329
|
+
}, p), t.registerCommand(st, (e) => {
|
|
330
|
+
const [, n] = Q(e);
|
|
331
331
|
if (n.length > 0) {
|
|
332
|
-
const i =
|
|
332
|
+
const i = Le(e.clientX, e.clientY);
|
|
333
333
|
if (i !== null) {
|
|
334
334
|
const { offset: o, node: s } = i, a = ie(s);
|
|
335
335
|
if (a !== null) {
|
|
336
|
-
const l =
|
|
337
|
-
if (
|
|
336
|
+
const l = at();
|
|
337
|
+
if (T(a)) l.anchor.set(a.getKey(), o, "text"), l.focus.set(a.getKey(), o, "text");
|
|
338
338
|
else {
|
|
339
339
|
const d = a.getParentOrThrow().getKey(), u = a.getIndexWithinParent() + 1;
|
|
340
340
|
l.anchor.set(d, u, "element"), l.focus.set(d, u, "element");
|
|
341
341
|
}
|
|
342
|
-
const c =
|
|
343
|
-
|
|
342
|
+
const c = lt(l);
|
|
343
|
+
ct(c);
|
|
344
344
|
}
|
|
345
|
-
t.dispatchCommand(
|
|
345
|
+
t.dispatchCommand(Ne, n);
|
|
346
346
|
}
|
|
347
347
|
return e.preventDefault(), !0;
|
|
348
348
|
}
|
|
349
|
-
const r =
|
|
350
|
-
return !!
|
|
351
|
-
}, p), t.registerCommand(st, (e) => {
|
|
352
|
-
const [n] = Z(e), r = C();
|
|
353
|
-
return !(n && !E(r));
|
|
349
|
+
const r = v();
|
|
350
|
+
return !!C(r);
|
|
354
351
|
}, p), t.registerCommand(it, (e) => {
|
|
355
|
-
const [n] =
|
|
356
|
-
|
|
357
|
-
|
|
352
|
+
const [n] = Q(e), r = v();
|
|
353
|
+
return !(n && !C(r));
|
|
354
|
+
}, p), t.registerCommand(ot, (e) => {
|
|
355
|
+
const [n] = Q(e), r = v();
|
|
356
|
+
if (n && !C(r)) return !1;
|
|
357
|
+
const i = Le(e.clientX, e.clientY);
|
|
358
358
|
if (i !== null) {
|
|
359
359
|
const o = ie(i.node);
|
|
360
|
-
|
|
360
|
+
q(o) && e.preventDefault();
|
|
361
361
|
}
|
|
362
362
|
return !0;
|
|
363
|
-
}, p), t.registerCommand(
|
|
364
|
-
await
|
|
365
|
-
const i =
|
|
366
|
-
|
|
363
|
+
}, p), t.registerCommand(nt, () => (rt(), !0), p), t.registerCommand(tt, (e) => (be(t, A(e, ClipboardEvent) ? e : null), !0), p), t.registerCommand(et, (e) => (async function(n, r) {
|
|
364
|
+
await be(r, A(n, ClipboardEvent) ? n : null), r.update(() => {
|
|
365
|
+
const i = v();
|
|
366
|
+
C(i) ? i.removeText() : F(i) && i.getNodes().forEach((o) => o.remove());
|
|
367
367
|
});
|
|
368
368
|
}(e, t), !0), p), t.registerCommand(Ke, (e) => {
|
|
369
|
-
const [, n, r] =
|
|
370
|
-
return n.length > 0 && !r ? (t.dispatchCommand(
|
|
369
|
+
const [, n, r] = Q(e);
|
|
370
|
+
return n.length > 0 && !r ? (t.dispatchCommand(Ne, n), !0) : Qe(e.target) ? !1 : v() !== null && (function(i, o) {
|
|
371
371
|
i.preventDefault(), o.update(() => {
|
|
372
|
-
const s =
|
|
373
|
-
a != null && s !== null &&
|
|
372
|
+
const s = v(), a = A(i, InputEvent) || A(i, KeyboardEvent) ? null : i.clipboardData;
|
|
373
|
+
a != null && s !== null && Ee(a, s, o);
|
|
374
374
|
}, { tag: "paste" });
|
|
375
375
|
}(e, t), !0);
|
|
376
376
|
}, p));
|
|
377
377
|
}
|
|
378
|
-
const ce = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ?
|
|
379
|
-
function
|
|
380
|
-
return t.getEditorState().read(
|
|
378
|
+
const ce = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? j : x;
|
|
379
|
+
function Te(t) {
|
|
380
|
+
return t.getEditorState().read(We(t.isComposing()));
|
|
381
381
|
}
|
|
382
|
-
function
|
|
383
|
-
const [r] =
|
|
384
|
-
const [a, l] =
|
|
382
|
+
function Mn({ contentEditable: t, placeholder: e = null, ErrorBoundary: n }) {
|
|
383
|
+
const [r] = P(), i = function(o, s) {
|
|
384
|
+
const [a, l] = I(() => o.getDecorators());
|
|
385
385
|
return ce(() => o.registerDecoratorListener((c) => {
|
|
386
|
-
|
|
386
|
+
we.flushSync(() => {
|
|
387
387
|
l(c);
|
|
388
388
|
});
|
|
389
|
-
}), [o]),
|
|
389
|
+
}), [o]), x(() => {
|
|
390
390
|
l(o.getDecorators());
|
|
391
|
-
}, [o]),
|
|
391
|
+
}, [o]), W(() => {
|
|
392
392
|
const c = [], d = Object.keys(a);
|
|
393
393
|
for (let u = 0; u < d.length; u++) {
|
|
394
|
-
const f = d[u], m =
|
|
395
|
-
g !== null && c.push(
|
|
394
|
+
const f = d[u], m = y(s, { onError: (h) => o._onError(h), children: y(Ft, { fallback: null, children: a[f] }) }), g = o.getElementByKey(f);
|
|
395
|
+
g !== null && c.push(we.createPortal(m, g, f));
|
|
396
396
|
}
|
|
397
397
|
return c;
|
|
398
398
|
}, [s, a, o]);
|
|
399
399
|
}(r, n);
|
|
400
400
|
return function(o) {
|
|
401
|
-
ce(() => B(
|
|
402
|
-
}(r), K(
|
|
401
|
+
ce(() => B(Rn(o), xn(o)), [o]);
|
|
402
|
+
}(r), K(Oe, { children: [t, y(In, { content: e }), i] });
|
|
403
403
|
}
|
|
404
|
-
function
|
|
405
|
-
const [e] =
|
|
406
|
-
const [o, s] =
|
|
404
|
+
function In({ content: t }) {
|
|
405
|
+
const [e] = P(), n = function(i) {
|
|
406
|
+
const [o, s] = I(() => Te(i));
|
|
407
407
|
return ce(() => {
|
|
408
408
|
function a() {
|
|
409
|
-
const l =
|
|
409
|
+
const l = Te(i);
|
|
410
410
|
s(l);
|
|
411
411
|
}
|
|
412
412
|
return a(), B(i.registerUpdateListener(() => {
|
|
@@ -415,39 +415,39 @@ function xn({ content: t }) {
|
|
|
415
415
|
a();
|
|
416
416
|
}));
|
|
417
417
|
}, [i]), o;
|
|
418
|
-
}(e), r =
|
|
418
|
+
}(e), r = En();
|
|
419
419
|
return n ? typeof t == "function" ? t(r) : t : null;
|
|
420
420
|
}
|
|
421
|
-
const
|
|
422
|
-
function
|
|
423
|
-
const [
|
|
424
|
-
|
|
425
|
-
}, [t]),
|
|
426
|
-
return (
|
|
427
|
-
|
|
428
|
-
typeof
|
|
421
|
+
const Ve = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? j : x;
|
|
422
|
+
function On({ editor: t, ariaActiveDescendant: e, ariaAutoComplete: n, ariaControls: r, ariaDescribedBy: i, ariaErrorMessage: o, ariaExpanded: s, ariaInvalid: a, ariaLabel: l, ariaLabelledBy: c, ariaMultiline: d, ariaOwns: u, ariaRequired: f, autoCapitalize: m, className: g, id: h, role: S = "textbox", spellCheck: w = !0, style: E, tabIndex: $, "data-testid": k, ...b }, L) {
|
|
423
|
+
const [_, R] = I(t.isEditable()), O = Kt((N) => {
|
|
424
|
+
N && N.ownerDocument && N.ownerDocument.defaultView ? t.setRootElement(N) : t.setRootElement(null);
|
|
425
|
+
}, [t]), U = W(() => /* @__PURE__ */ function(...N) {
|
|
426
|
+
return (V) => {
|
|
427
|
+
N.forEach((X) => {
|
|
428
|
+
typeof X == "function" ? X(V) : X != null && (X.current = V);
|
|
429
429
|
});
|
|
430
430
|
};
|
|
431
|
-
}(
|
|
432
|
-
return
|
|
433
|
-
|
|
434
|
-
})), [t]),
|
|
431
|
+
}(L, O), [O, L]);
|
|
432
|
+
return Ve(() => (R(t.isEditable()), t.registerEditableListener((N) => {
|
|
433
|
+
R(N);
|
|
434
|
+
})), [t]), y("div", { ...b, "aria-activedescendant": _ ? e : void 0, "aria-autocomplete": _ ? n : "none", "aria-controls": _ ? r : void 0, "aria-describedby": i, ...o != null ? { "aria-errormessage": o } : {}, "aria-expanded": _ && S === "combobox" ? !!s : void 0, ...a != null ? { "aria-invalid": a } : {}, "aria-label": l, "aria-labelledby": c, "aria-multiline": d, "aria-owns": _ ? u : void 0, "aria-readonly": !_ || void 0, "aria-required": f, autoCapitalize: m, className: g, contentEditable: _, "data-testid": k, id: h, ref: U, role: _ ? S : void 0, spellCheck: w, style: E, tabIndex: $ });
|
|
435
435
|
}
|
|
436
|
-
const
|
|
437
|
-
function
|
|
438
|
-
return t.getEditorState().read(
|
|
436
|
+
const Fn = Be(On);
|
|
437
|
+
function Pe(t) {
|
|
438
|
+
return t.getEditorState().read(We(t.isComposing()));
|
|
439
439
|
}
|
|
440
|
-
const Kn = Be(
|
|
441
|
-
function
|
|
442
|
-
const { placeholder: n, ...r } = t, [i] =
|
|
443
|
-
return K(
|
|
440
|
+
const Kn = Be(An);
|
|
441
|
+
function An(t, e) {
|
|
442
|
+
const { placeholder: n, ...r } = t, [i] = P();
|
|
443
|
+
return K(Oe, { children: [y(Fn, { editor: i, ...r, ref: e }), n != null && y(zn, { editor: i, content: n })] });
|
|
444
444
|
}
|
|
445
|
-
function
|
|
445
|
+
function zn({ content: t, editor: e }) {
|
|
446
446
|
const n = function(s) {
|
|
447
|
-
const [a, l] =
|
|
448
|
-
return
|
|
447
|
+
const [a, l] = I(() => Pe(s));
|
|
448
|
+
return Ve(() => {
|
|
449
449
|
function c() {
|
|
450
|
-
const d =
|
|
450
|
+
const d = Pe(s);
|
|
451
451
|
l(d);
|
|
452
452
|
}
|
|
453
453
|
return c(), B(s.registerUpdateListener(() => {
|
|
@@ -456,23 +456,23 @@ function Un({ content: t, editor: e }) {
|
|
|
456
456
|
c();
|
|
457
457
|
}));
|
|
458
458
|
}, [s]), a;
|
|
459
|
-
}(e), [r, i] =
|
|
460
|
-
if (
|
|
459
|
+
}(e), [r, i] = I(e.isEditable());
|
|
460
|
+
if (j(() => (i(e.isEditable()), e.registerEditableListener((s) => {
|
|
461
461
|
i(s);
|
|
462
462
|
})), [e]), !n) return null;
|
|
463
463
|
let o = null;
|
|
464
|
-
return typeof t == "function" ? o = t(r) : t !== null && (o = t), o === null ? null :
|
|
464
|
+
return typeof t == "function" ? o = t(r) : t !== null && (o = t), o === null ? null : y("div", { "aria-hidden": !0, children: o });
|
|
465
465
|
}
|
|
466
466
|
function de(t, e) {
|
|
467
467
|
return de = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, r) {
|
|
468
468
|
return n.__proto__ = r, n;
|
|
469
469
|
}, de(t, e);
|
|
470
470
|
}
|
|
471
|
-
var
|
|
471
|
+
var Re = { error: null }, Bn = function(t) {
|
|
472
472
|
var e, n;
|
|
473
473
|
function r() {
|
|
474
474
|
for (var o, s = arguments.length, a = new Array(s), l = 0; l < s; l++) a[l] = arguments[l];
|
|
475
|
-
return (o = t.call.apply(t, [this].concat(a)) || this).state =
|
|
475
|
+
return (o = t.call.apply(t, [this].concat(a)) || this).state = Re, o.resetErrorBoundary = function() {
|
|
476
476
|
for (var c, d = arguments.length, u = new Array(d), f = 0; f < d; f++) u[f] = arguments[f];
|
|
477
477
|
o.props.onReset == null || (c = o.props).onReset.apply(c, u), o.reset();
|
|
478
478
|
}, o;
|
|
@@ -482,7 +482,7 @@ var $e = { error: null }, Bn = function(t) {
|
|
|
482
482
|
};
|
|
483
483
|
var i = r.prototype;
|
|
484
484
|
return i.reset = function() {
|
|
485
|
-
this.setState(
|
|
485
|
+
this.setState(Re);
|
|
486
486
|
}, i.componentDidCatch = function(o, s) {
|
|
487
487
|
var a, l;
|
|
488
488
|
(a = (l = this.props).onError) == null || a.call(l, o, s);
|
|
@@ -503,77 +503,77 @@ var $e = { error: null }, Bn = function(t) {
|
|
|
503
503
|
return this.props.children;
|
|
504
504
|
}, r;
|
|
505
505
|
}(ae.Component);
|
|
506
|
-
function
|
|
507
|
-
return
|
|
506
|
+
function Un({ children: t, onError: e }) {
|
|
507
|
+
return y(Bn, { fallback: y("div", { style: { border: "1px solid #f00", color: "#f00", padding: "8px" }, children: "An error was thrown." }), onError: e, children: t });
|
|
508
508
|
}
|
|
509
|
-
const
|
|
509
|
+
const jn = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? j : x;
|
|
510
510
|
function Hn({ ignoreHistoryMergeTagChange: t = !0, ignoreSelectionChange: e = !1, onChange: n }) {
|
|
511
|
-
const [r] =
|
|
512
|
-
return
|
|
511
|
+
const [r] = P();
|
|
512
|
+
return jn(() => {
|
|
513
513
|
if (n) return r.registerUpdateListener(({ editorState: i, dirtyElements: o, dirtyLeaves: s, prevEditorState: a, tags: l }) => {
|
|
514
514
|
e && o.size === 0 && s.size === 0 || t && l.has("history-merge") || a.isEmpty() || n(i, r, l);
|
|
515
515
|
});
|
|
516
516
|
}, [r, t, e, n]), null;
|
|
517
517
|
}
|
|
518
|
-
function
|
|
519
|
-
const [t] =
|
|
520
|
-
return
|
|
521
|
-
if (!t.hasNodes([
|
|
518
|
+
function qn() {
|
|
519
|
+
const [t] = P();
|
|
520
|
+
return x(() => {
|
|
521
|
+
if (!t.hasNodes([Ue, je])) throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor");
|
|
522
522
|
}, [t]), function(e) {
|
|
523
|
-
|
|
523
|
+
x(() => Ht(e), [e]);
|
|
524
524
|
}(t), null;
|
|
525
525
|
}
|
|
526
|
-
function
|
|
527
|
-
const [n] =
|
|
528
|
-
return
|
|
526
|
+
function Jn({ validateUrl: t, attributes: e }) {
|
|
527
|
+
const [n] = P();
|
|
528
|
+
return x(() => {
|
|
529
529
|
if (!n.hasNodes([He])) throw new Error("LinkPlugin: LinkNode not registered on editor");
|
|
530
|
-
return B(n.registerCommand(
|
|
530
|
+
return B(n.registerCommand(_e, (r) => {
|
|
531
531
|
if (r === null) return le(r), !0;
|
|
532
532
|
if (typeof r == "string") return !(t !== void 0 && !t(r)) && (le(r, e), !0);
|
|
533
533
|
{
|
|
534
534
|
const { url: i, target: o, rel: s, title: a } = r;
|
|
535
535
|
return le(i, { ...e, rel: s, target: o, title: a }), !0;
|
|
536
536
|
}
|
|
537
|
-
},
|
|
538
|
-
const i =
|
|
539
|
-
if (!
|
|
537
|
+
}, ye), t !== void 0 ? n.registerCommand(Ke, (r) => {
|
|
538
|
+
const i = v();
|
|
539
|
+
if (!C(i) || i.isCollapsed() || !A(r, ClipboardEvent)) return !1;
|
|
540
540
|
const o = r;
|
|
541
541
|
if (o.clipboardData === null) return !1;
|
|
542
542
|
const s = o.clipboardData.getData("text");
|
|
543
|
-
return !!t(s) && !i.getNodes().some((a) =>
|
|
544
|
-
},
|
|
543
|
+
return !!t(s) && !i.getNodes().some((a) => J(a)) && (n.dispatchCommand(_e, { ...e, url: s }), r.preventDefault(), !0);
|
|
544
|
+
}, ye) : () => {
|
|
545
545
|
});
|
|
546
546
|
}, [n, t, e]), null;
|
|
547
547
|
}
|
|
548
|
-
function
|
|
549
|
-
const [n] =
|
|
550
|
-
return
|
|
548
|
+
function Wn({ newTab: t = !0, disabled: e = !1 }) {
|
|
549
|
+
const [n] = P();
|
|
550
|
+
return x(() => {
|
|
551
551
|
const r = (o) => {
|
|
552
552
|
const s = o.target;
|
|
553
553
|
if (!(s instanceof Node)) return;
|
|
554
|
-
const a =
|
|
554
|
+
const a = Dt(s);
|
|
555
555
|
if (a === null) return;
|
|
556
556
|
let l = null, c = null;
|
|
557
557
|
if (a.update(() => {
|
|
558
558
|
const f = ie(s);
|
|
559
559
|
if (f !== null) {
|
|
560
|
-
const m = pe(f,
|
|
561
|
-
if (!e) if (
|
|
560
|
+
const m = pe(f, J);
|
|
561
|
+
if (!e) if (qt(m)) l = m.sanitizeUrl(m.getURL()), c = m.getTarget();
|
|
562
562
|
else {
|
|
563
|
-
const g = function(h,
|
|
564
|
-
let
|
|
565
|
-
for (;
|
|
566
|
-
if (
|
|
567
|
-
|
|
563
|
+
const g = function(h, S) {
|
|
564
|
+
let w = h;
|
|
565
|
+
for (; w != null; ) {
|
|
566
|
+
if (S(w)) return w;
|
|
567
|
+
w = w.parentNode;
|
|
568
568
|
}
|
|
569
569
|
return null;
|
|
570
|
-
}(s,
|
|
570
|
+
}(s, Tt);
|
|
571
571
|
g !== null && (l = g.href, c = g.target);
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
574
|
}), l === null || l === "") return;
|
|
575
|
-
const d = n.getEditorState().read(
|
|
576
|
-
if (
|
|
575
|
+
const d = n.getEditorState().read(v);
|
|
576
|
+
if (C(d) && !d.isCollapsed()) return void o.preventDefault();
|
|
577
577
|
const u = o.type === "auxclick" && o.button === 1;
|
|
578
578
|
window.open(l, t || u || o.metaKey || o.ctrlKey || c === "_blank" ? "_blank" : "_self"), o.preventDefault();
|
|
579
579
|
}, i = (o) => {
|
|
@@ -584,81 +584,81 @@ function Gn({ newTab: t = !0, disabled: e = !1 }) {
|
|
|
584
584
|
});
|
|
585
585
|
}, [n, t, e]), null;
|
|
586
586
|
}
|
|
587
|
-
const te = 0, ue = 1, fe = 2,
|
|
588
|
-
function
|
|
589
|
-
if (t === null || n.size === 0 && r.size === 0 && !i) return
|
|
587
|
+
const te = 0, ue = 1, fe = 2, D = 0, Vn = 1, Me = 2, Xn = 3, Yn = 4;
|
|
588
|
+
function Zn(t, e, n, r, i) {
|
|
589
|
+
if (t === null || n.size === 0 && r.size === 0 && !i) return D;
|
|
590
590
|
const o = e._selection, s = t._selection;
|
|
591
|
-
if (i) return
|
|
592
|
-
if (!(
|
|
593
|
-
const a = function(
|
|
594
|
-
const
|
|
595
|
-
for (const
|
|
596
|
-
const
|
|
597
|
-
|
|
591
|
+
if (i) return Vn;
|
|
592
|
+
if (!(C(o) && C(s) && s.isCollapsed() && o.isCollapsed())) return D;
|
|
593
|
+
const a = function(w, E, $) {
|
|
594
|
+
const k = w._nodeMap, b = [];
|
|
595
|
+
for (const L of E) {
|
|
596
|
+
const _ = k.get(L);
|
|
597
|
+
_ !== void 0 && b.push(_);
|
|
598
598
|
}
|
|
599
|
-
for (const [
|
|
600
|
-
if (!
|
|
601
|
-
const
|
|
602
|
-
|
|
599
|
+
for (const [L, _] of $) {
|
|
600
|
+
if (!_) continue;
|
|
601
|
+
const R = k.get(L);
|
|
602
|
+
R === void 0 || Ae(R) || b.push(R);
|
|
603
603
|
}
|
|
604
|
-
return
|
|
604
|
+
return b;
|
|
605
605
|
}(e, n, r);
|
|
606
|
-
if (a.length === 0) return
|
|
606
|
+
if (a.length === 0) return D;
|
|
607
607
|
if (a.length > 1) {
|
|
608
|
-
const
|
|
609
|
-
return
|
|
608
|
+
const w = e._nodeMap, E = w.get(o.anchor.key), $ = w.get(s.anchor.key);
|
|
609
|
+
return E && $ && !t._nodeMap.has(E.__key) && T(E) && E.__text.length === 1 && o.anchor.offset === 1 ? Me : D;
|
|
610
610
|
}
|
|
611
611
|
const l = a[0], c = t._nodeMap.get(l.__key);
|
|
612
|
-
if (!
|
|
612
|
+
if (!T(c) || !T(l) || c.__mode !== l.__mode) return D;
|
|
613
613
|
const d = c.__text, u = l.__text;
|
|
614
|
-
if (d === u) return
|
|
614
|
+
if (d === u) return D;
|
|
615
615
|
const f = o.anchor, m = s.anchor;
|
|
616
|
-
if (f.key !== m.key || f.type !== "text") return
|
|
617
|
-
const g = f.offset, h = m.offset,
|
|
618
|
-
return
|
|
616
|
+
if (f.key !== m.key || f.type !== "text") return D;
|
|
617
|
+
const g = f.offset, h = m.offset, S = u.length - d.length;
|
|
618
|
+
return S === 1 && h === g - 1 ? Me : S === -1 && h === g + 1 ? Xn : S === -1 && h === g ? Yn : D;
|
|
619
619
|
}
|
|
620
|
-
function
|
|
621
|
-
let n = Date.now(), r =
|
|
620
|
+
function Gn(t, e) {
|
|
621
|
+
let n = Date.now(), r = D;
|
|
622
622
|
return (i, o, s, a, l, c) => {
|
|
623
623
|
const d = Date.now();
|
|
624
|
-
if (c.has("historic")) return r =
|
|
625
|
-
const u =
|
|
624
|
+
if (c.has("historic")) return r = D, n = d, fe;
|
|
625
|
+
const u = Zn(i, o, a, l, t.isComposing()), f = (() => {
|
|
626
626
|
const m = s === null || s.editor === t, g = c.has("history-push");
|
|
627
627
|
if (!g && m && c.has("history-merge")) return te;
|
|
628
628
|
if (i === null) return ue;
|
|
629
629
|
const h = o._selection;
|
|
630
|
-
return a.size > 0 || l.size > 0 ? g === !1 && u !==
|
|
631
|
-
const
|
|
632
|
-
return !(
|
|
630
|
+
return a.size > 0 || l.size > 0 ? g === !1 && u !== D && u === r && d < n + e && m || a.size === 1 && function(S, w, E) {
|
|
631
|
+
const $ = w._nodeMap.get(S), k = E._nodeMap.get(S), b = w._selection, L = E._selection;
|
|
632
|
+
return !(C(b) && C(L) && b.anchor.type === "element" && b.focus.type === "element" && L.anchor.type === "text" && L.focus.type === "text" || !T($) || !T(k) || $.__parent !== k.__parent) && JSON.stringify(w.read(() => $.exportJSON())) === JSON.stringify(E.read(() => k.exportJSON()));
|
|
633
633
|
}(Array.from(a)[0], i, o) ? te : ue : h !== null ? te : fe;
|
|
634
634
|
})();
|
|
635
635
|
return n = d, r = u, f;
|
|
636
636
|
};
|
|
637
637
|
}
|
|
638
|
-
function
|
|
638
|
+
function Ie(t) {
|
|
639
639
|
t.undoStack = [], t.redoStack = [], t.current = null;
|
|
640
640
|
}
|
|
641
|
-
function
|
|
642
|
-
const r =
|
|
643
|
-
return B(t.registerCommand(
|
|
641
|
+
function Qn(t, e, n) {
|
|
642
|
+
const r = Gn(t, n);
|
|
643
|
+
return B(t.registerCommand(It, () => (function(o, s) {
|
|
644
644
|
const a = s.redoStack, l = s.undoStack;
|
|
645
645
|
if (l.length !== 0) {
|
|
646
646
|
const c = s.current, d = l.pop();
|
|
647
|
-
c !== null && (a.push(c), o.dispatchCommand(
|
|
647
|
+
c !== null && (a.push(c), o.dispatchCommand(Y, !0)), l.length === 0 && o.dispatchCommand(Z, !1), s.current = d || null, d && d.editor.setEditorState(d.editorState, { tag: "historic" });
|
|
648
648
|
}
|
|
649
|
-
}(t, e), !0), p), t.registerCommand(
|
|
649
|
+
}(t, e), !0), p), t.registerCommand(Mt, () => (function(o, s) {
|
|
650
650
|
const a = s.redoStack, l = s.undoStack;
|
|
651
651
|
if (a.length !== 0) {
|
|
652
652
|
const c = s.current;
|
|
653
|
-
c !== null && (l.push(c), o.dispatchCommand(
|
|
653
|
+
c !== null && (l.push(c), o.dispatchCommand(Z, !0));
|
|
654
654
|
const d = a.pop();
|
|
655
|
-
a.length === 0 && o.dispatchCommand(
|
|
655
|
+
a.length === 0 && o.dispatchCommand(Y, !1), s.current = d || null, d && d.editor.setEditorState(d.editorState, { tag: "historic" });
|
|
656
656
|
}
|
|
657
|
-
}(t, e), !0), p), t.registerCommand(
|
|
657
|
+
}(t, e), !0), p), t.registerCommand(Rt, () => (Ie(e), !1), p), t.registerCommand(Pt, () => (Ie(e), t.dispatchCommand(Y, !1), t.dispatchCommand(Z, !1), !0), p), t.registerUpdateListener(({ editorState: o, prevEditorState: s, dirtyLeaves: a, dirtyElements: l, tags: c }) => {
|
|
658
658
|
const d = e.current, u = e.redoStack, f = e.undoStack, m = d === null ? null : d.editorState;
|
|
659
659
|
if (d !== null && o === m) return;
|
|
660
660
|
const g = r(s, o, d, a, l, c);
|
|
661
|
-
if (g === ue) u.length !== 0 && (e.redoStack = [], t.dispatchCommand(
|
|
661
|
+
if (g === ue) u.length !== 0 && (e.redoStack = [], t.dispatchCommand(Y, !1)), d !== null && (f.push({ ...d }), t.dispatchCommand(Z, !0));
|
|
662
662
|
else if (g === fe) return;
|
|
663
663
|
e.current = { editor: t, editorState: o };
|
|
664
664
|
}));
|
|
@@ -667,10 +667,10 @@ function er() {
|
|
|
667
667
|
return { current: null, redoStack: [], undoStack: [] };
|
|
668
668
|
}
|
|
669
669
|
function tr({ delay: t, externalHistoryState: e }) {
|
|
670
|
-
const [n] =
|
|
670
|
+
const [n] = P();
|
|
671
671
|
return function(r, i, o = 1e3) {
|
|
672
|
-
const s =
|
|
673
|
-
|
|
672
|
+
const s = W(() => i || er(), [i]);
|
|
673
|
+
x(() => Qn(r, s, o), [o, r, s]);
|
|
674
674
|
}(n, e, t), null;
|
|
675
675
|
}
|
|
676
676
|
function nr(t) {
|
|
@@ -683,24 +683,24 @@ var ne = nr(function(t) {
|
|
|
683
683
|
throw Error(`Minified Lexical error #${t}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`);
|
|
684
684
|
});
|
|
685
685
|
function rr({ hasCellMerge: t = !0, hasCellBackgroundColor: e = !0, hasTabHandler: n = !0 }) {
|
|
686
|
-
const [r] =
|
|
687
|
-
return
|
|
688
|
-
const a =
|
|
689
|
-
|
|
686
|
+
const [r] = P();
|
|
687
|
+
return x(() => (r.hasNodes([re, oe, qe]) || ne(10), B(r.registerCommand(Vt, ({ columns: i, rows: o, includeHeaders: s }) => {
|
|
688
|
+
const a = Xt(Number(o), Number(i), s);
|
|
689
|
+
zt(a);
|
|
690
690
|
const l = a.getFirstDescendant();
|
|
691
|
-
return
|
|
691
|
+
return T(l) && l.select(), !0;
|
|
692
692
|
}, p), r.registerNodeTransform(re, (i) => {
|
|
693
|
-
const [o] =
|
|
693
|
+
const [o] = Wt(i, null, null), s = o.reduce((l, c) => Math.max(l, c.length), 0), a = i.getChildren();
|
|
694
694
|
for (let l = 0; l < o.length; ++l) {
|
|
695
695
|
const c = a[l];
|
|
696
696
|
if (!c) continue;
|
|
697
697
|
const d = o[l].reduce((u, f) => f ? 1 + u : u, 0);
|
|
698
698
|
if (d !== s) for (let u = d; u < s; ++u) {
|
|
699
|
-
const f =
|
|
699
|
+
const f = xe(0);
|
|
700
700
|
f.append(me()), c.append(f);
|
|
701
701
|
}
|
|
702
702
|
}
|
|
703
|
-
}))), [r]),
|
|
703
|
+
}))), [r]), x(() => {
|
|
704
704
|
const i = /* @__PURE__ */ new Map(), o = (a, l, c) => {
|
|
705
705
|
const d = c, u = en(a, d, r, n);
|
|
706
706
|
i.set(l, [u, d]);
|
|
@@ -708,8 +708,8 @@ function rr({ hasCellMerge: t = !0, hasCellBackgroundColor: e = !0, hasTabHandle
|
|
|
708
708
|
for (const [l, c] of a) if (c === "created" || c === "updated") {
|
|
709
709
|
const d = i.get(l), u = r.getElementByKey(l);
|
|
710
710
|
d && u === d[1] || (d && (d[0].removeListeners(), i.delete(l)), u !== null && r.getEditorState().read(() => {
|
|
711
|
-
const f =
|
|
712
|
-
|
|
711
|
+
const f = Ot(l);
|
|
712
|
+
Yt(f) && o(f, l, u);
|
|
713
713
|
}));
|
|
714
714
|
} else if (c === "destroyed") {
|
|
715
715
|
const d = i.get(l);
|
|
@@ -720,36 +720,36 @@ function rr({ hasCellMerge: t = !0, hasCellBackgroundColor: e = !0, hasTabHandle
|
|
|
720
720
|
s();
|
|
721
721
|
for (const [, [a]] of i) a.removeListeners();
|
|
722
722
|
};
|
|
723
|
-
}, [r, n]),
|
|
723
|
+
}, [r, n]), x(() => {
|
|
724
724
|
if (!t) return r.registerNodeTransform(oe, (i) => {
|
|
725
725
|
if (i.getColSpan() > 1 || i.getRowSpan() > 1) {
|
|
726
|
-
const [, , o] =
|
|
726
|
+
const [, , o] = Zt(i), [s] = Gt(o, i, i), a = s.length, l = s[0].length;
|
|
727
727
|
let c = o.getFirstChild();
|
|
728
|
-
|
|
728
|
+
ke(c) || ne(175);
|
|
729
729
|
const d = [];
|
|
730
730
|
for (let u = 0; u < a; u++) {
|
|
731
|
-
u !== 0 && (c = c.getNextSibling(),
|
|
731
|
+
u !== 0 && (c = c.getNextSibling(), ke(c) || ne(175));
|
|
732
732
|
let f = null;
|
|
733
733
|
for (let m = 0; m < l; m++) {
|
|
734
734
|
const g = s[u][m], h = g.cell;
|
|
735
735
|
if (g.startRow === u && g.startColumn === m) f = h, d.push(h);
|
|
736
736
|
else if (h.getColSpan() > 1 || h.getRowSpan() > 1) {
|
|
737
|
-
|
|
738
|
-
const
|
|
739
|
-
f !== null ? f.insertAfter(
|
|
737
|
+
Qt(h) || ne(176);
|
|
738
|
+
const S = xe(h.__headerState);
|
|
739
|
+
f !== null ? f.insertAfter(S) : Bt(c, S);
|
|
740
740
|
}
|
|
741
741
|
}
|
|
742
742
|
}
|
|
743
743
|
for (const u of d) u.setColSpan(1), u.setRowSpan(1);
|
|
744
744
|
}
|
|
745
745
|
});
|
|
746
|
-
}, [r, t]),
|
|
746
|
+
}, [r, t]), x(() => {
|
|
747
747
|
if (!e) return r.registerNodeTransform(oe, (i) => {
|
|
748
748
|
i.getBackgroundColor() !== null && i.setBackgroundColor(null);
|
|
749
749
|
});
|
|
750
750
|
}, [r, e, t]), null;
|
|
751
751
|
}
|
|
752
|
-
const
|
|
752
|
+
const Xe = 200, or = ({
|
|
753
753
|
currentLanguage: t = "NL",
|
|
754
754
|
initialValue: e = "",
|
|
755
755
|
placeholder: n = "",
|
|
@@ -758,91 +758,91 @@ const Ve = 200, or = ({
|
|
|
758
758
|
required: o = !1,
|
|
759
759
|
notValidatedText: s = "",
|
|
760
760
|
maxHeightInRem: a = "20rem",
|
|
761
|
-
maxWords: l =
|
|
761
|
+
maxWords: l = Xe,
|
|
762
762
|
onChange: c
|
|
763
763
|
}) => {
|
|
764
|
-
const { switchLanguage: d } = pn(), u = dn(), [f] =
|
|
764
|
+
const { switchLanguage: d } = pn(), u = dn(), [f] = I(() => Fe()), [m, g] = I(0), [h, S] = I(0), w = ze(null), E = {
|
|
765
765
|
html: {
|
|
766
766
|
export: sn
|
|
767
767
|
},
|
|
768
768
|
namespace: "UvaRte",
|
|
769
769
|
editor: f,
|
|
770
770
|
theme: fn,
|
|
771
|
-
onError(
|
|
772
|
-
throw
|
|
771
|
+
onError(b) {
|
|
772
|
+
throw b;
|
|
773
773
|
},
|
|
774
|
-
nodes: [
|
|
775
|
-
editorState: (
|
|
776
|
-
const
|
|
777
|
-
if (
|
|
778
|
-
|
|
779
|
-
|
|
774
|
+
nodes: [Ue, je, He, Jt, oe, qe, re],
|
|
775
|
+
editorState: (b) => {
|
|
776
|
+
const _ = new DOMParser().parseFromString(e, "text/html"), R = Ut(b, _), O = z();
|
|
777
|
+
if (O.clear(), an(e))
|
|
778
|
+
R.forEach((U) => {
|
|
779
|
+
O.append(U);
|
|
780
780
|
});
|
|
781
781
|
else {
|
|
782
|
-
const
|
|
783
|
-
|
|
784
|
-
|
|
782
|
+
const U = me();
|
|
783
|
+
R.forEach((N, V) => {
|
|
784
|
+
V === 0 ? (U.append(N), O.append(U)) : O.append(N);
|
|
785
785
|
});
|
|
786
786
|
}
|
|
787
787
|
}
|
|
788
|
-
},
|
|
789
|
-
|
|
790
|
-
let
|
|
791
|
-
g(
|
|
788
|
+
}, $ = (b) => b.trim().length === 0 ? 0 : b.split(" ").length, k = (b, L) => {
|
|
789
|
+
b.read(() => {
|
|
790
|
+
let _ = "";
|
|
791
|
+
g($(z().getTextContent().replace(/\s+/g, " ").trim())), _ = ln(jt(L)), c(_);
|
|
792
792
|
});
|
|
793
793
|
};
|
|
794
|
-
return
|
|
794
|
+
return x(() => {
|
|
795
795
|
d(t.toLocaleLowerCase());
|
|
796
|
-
}, [t, d]),
|
|
797
|
-
const
|
|
798
|
-
g(
|
|
799
|
-
}, []), /* @__PURE__ */ K("div", { className:
|
|
800
|
-
/* @__PURE__ */ K("div", { className:
|
|
801
|
-
/* @__PURE__ */
|
|
802
|
-
/* @__PURE__ */ K("div", { className:
|
|
803
|
-
/* @__PURE__ */
|
|
796
|
+
}, [t, d]), x(() => {
|
|
797
|
+
const b = e.replace(/<br\s*\/?>| /gi, " ").replace(/<\/?[^>]+(>|$)|&[a-z]+;/g, "").replace(/\s+/g, " ").trim();
|
|
798
|
+
g($(b));
|
|
799
|
+
}, []), /* @__PURE__ */ K("div", { className: M.editor__container, children: [
|
|
800
|
+
/* @__PURE__ */ K("div", { className: M.editor__header, children: [
|
|
801
|
+
/* @__PURE__ */ y(mn, { label: r, info: i, required: o }),
|
|
802
|
+
/* @__PURE__ */ K("div", { className: M["editor__header-word-count"], children: [
|
|
803
|
+
/* @__PURE__ */ y("span", { className: on({ [M["editor__header-word-count--alert"]]: m > l }), children: m }),
|
|
804
804
|
" / ",
|
|
805
805
|
l
|
|
806
806
|
] })
|
|
807
807
|
] }),
|
|
808
|
-
/* @__PURE__ */
|
|
809
|
-
/* @__PURE__ */
|
|
810
|
-
/* @__PURE__ */ K("div", { className:
|
|
811
|
-
/* @__PURE__ */
|
|
812
|
-
|
|
808
|
+
/* @__PURE__ */ y("div", { className: M.editor, children: /* @__PURE__ */ K(Cn, { initialConfig: E, children: [
|
|
809
|
+
/* @__PURE__ */ y(cn, { editorScrollPosition: h }),
|
|
810
|
+
/* @__PURE__ */ K("div", { className: M["editor__field-wrapper"], children: [
|
|
811
|
+
/* @__PURE__ */ y(
|
|
812
|
+
Mn,
|
|
813
813
|
{
|
|
814
|
-
contentEditable: /* @__PURE__ */
|
|
814
|
+
contentEditable: /* @__PURE__ */ y(
|
|
815
815
|
Kn,
|
|
816
816
|
{
|
|
817
|
-
className:
|
|
817
|
+
className: M.editor__field,
|
|
818
818
|
"aria-label": u.common.rteAriaLabel,
|
|
819
819
|
"aria-placeholder": n,
|
|
820
820
|
title: u.common.rteTitle,
|
|
821
|
-
placeholder: /* @__PURE__ */
|
|
821
|
+
placeholder: /* @__PURE__ */ y("div", { className: M.editor__placeholder, children: n }),
|
|
822
822
|
spellCheck: !1,
|
|
823
823
|
id: "rteEditor",
|
|
824
824
|
style: { height: `${a}`, maxHeight: `${a}` },
|
|
825
|
-
onScroll: (
|
|
826
|
-
ref:
|
|
825
|
+
onScroll: (b) => S(b.currentTarget.scrollTop),
|
|
826
|
+
ref: w
|
|
827
827
|
}
|
|
828
828
|
),
|
|
829
|
-
placeholder: /* @__PURE__ */
|
|
830
|
-
ErrorBoundary:
|
|
829
|
+
placeholder: /* @__PURE__ */ y("div", { className: M.editor__placeholder, children: n }),
|
|
830
|
+
ErrorBoundary: Un
|
|
831
831
|
}
|
|
832
832
|
),
|
|
833
|
-
/* @__PURE__ */
|
|
834
|
-
/* @__PURE__ */
|
|
835
|
-
/* @__PURE__ */
|
|
836
|
-
/* @__PURE__ */
|
|
837
|
-
/* @__PURE__ */
|
|
838
|
-
/* @__PURE__ */
|
|
839
|
-
/* @__PURE__ */
|
|
840
|
-
/* @__PURE__ */
|
|
833
|
+
/* @__PURE__ */ y(rr, {}),
|
|
834
|
+
/* @__PURE__ */ y(tr, {}),
|
|
835
|
+
/* @__PURE__ */ y(qn, {}),
|
|
836
|
+
/* @__PURE__ */ y(Jn, { validateUrl: tn }),
|
|
837
|
+
/* @__PURE__ */ y(nn, { matchers: rn }),
|
|
838
|
+
/* @__PURE__ */ y(Wn, {}),
|
|
839
|
+
/* @__PURE__ */ y(Hn, { onChange: k }),
|
|
840
|
+
/* @__PURE__ */ y(hn, {})
|
|
841
841
|
] })
|
|
842
842
|
] }) }),
|
|
843
|
-
s !== "" && /* @__PURE__ */
|
|
843
|
+
s !== "" && /* @__PURE__ */ y(un, { level: "error", feedback: s })
|
|
844
844
|
] });
|
|
845
|
-
},
|
|
845
|
+
}, qr = ({
|
|
846
846
|
currentLanguage: t = "NL",
|
|
847
847
|
initialValue: e = "",
|
|
848
848
|
placeholder: n = "",
|
|
@@ -850,9 +850,9 @@ const Ve = 200, or = ({
|
|
|
850
850
|
info: i = "",
|
|
851
851
|
required: o = !1,
|
|
852
852
|
notValidatedText: s = "",
|
|
853
|
-
maxWords: a =
|
|
853
|
+
maxWords: a = Xe,
|
|
854
854
|
onChange: l
|
|
855
|
-
}) => /* @__PURE__ */
|
|
855
|
+
}) => /* @__PURE__ */ y(gn, { children: /* @__PURE__ */ y(
|
|
856
856
|
or,
|
|
857
857
|
{
|
|
858
858
|
currentLanguage: t,
|
|
@@ -868,6 +868,6 @@ const Ve = 200, or = ({
|
|
|
868
868
|
) });
|
|
869
869
|
export {
|
|
870
870
|
or as Rte,
|
|
871
|
-
|
|
871
|
+
qr as RteEditor
|
|
872
872
|
};
|
|
873
873
|
//# sourceMappingURL=RteEditor.js.map
|