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