@uva-glass/component-library 3.27.0 → 3.27.2
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-m3GJsAAT.js → Lexical.prod-UwAbgYpF.js} +1043 -1036
- package/dist/Lexical.prod-UwAbgYpF.js.map +1 -0
- package/dist/{LexicalClipboard.prod-HyvHKdDm.js → LexicalClipboard.prod-DHIGjydG.js} +25 -25
- package/dist/{LexicalClipboard.prod-HyvHKdDm.js.map → LexicalClipboard.prod-DHIGjydG.js.map} +1 -1
- package/dist/{LexicalLink.prod-D0qasaVP.js → LexicalLink.prod-Bsa9J7L-.js} +13 -13
- package/dist/{LexicalLink.prod-D0qasaVP.js.map → LexicalLink.prod-Bsa9J7L-.js.map} +1 -1
- package/dist/{LexicalList.prod-CQz14k_F.js → LexicalList.prod-jxGuZd4b.js} +26 -26
- package/dist/{LexicalList.prod-CQz14k_F.js.map → LexicalList.prod-jxGuZd4b.js.map} +1 -1
- package/dist/LexicalSelection.prod-xk5MiZnZ.js +101 -0
- package/dist/LexicalSelection.prod-xk5MiZnZ.js.map +1 -0
- package/dist/{LexicalTable.prod-BHKhA4PF.js → LexicalTable.prod-BSjs04iE.js} +164 -164
- package/dist/{LexicalTable.prod-BHKhA4PF.js.map → LexicalTable.prod-BSjs04iE.js.map} +1 -1
- package/dist/{LexicalUtils.prod-Vqqof-U-.js → LexicalUtils.prod-cQutjKA3.js} +43 -43
- package/dist/{LexicalUtils.prod-Vqqof-U-.js.map → LexicalUtils.prod-cQutjKA3.js.map} +1 -1
- package/dist/{TablePlugin-CykqKW6X.js → TablePlugin-NmJsn2fm.js} +4 -4
- package/dist/{TablePlugin-CykqKW6X.js.map → TablePlugin-NmJsn2fm.js.map} +1 -1
- package/dist/assets/MultiSelectBox.css +1 -1
- package/dist/assets/TextArea.css +1 -1
- package/dist/components/CheckboxTree/CheckboxTree.js +1 -1
- package/dist/components/FormInput/FormInput.js +1 -1
- package/dist/components/InputField/InputField.stories.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.stories.js +1 -1
- package/dist/components/MultiSelect/components/MultiSelectHeader.js +1 -1
- package/dist/components/MultiSelect/index.js +1 -1
- package/dist/components/MultiSelectBox/MultiSelectBox.d.ts +3 -1
- package/dist/components/MultiSelectBox/MultiSelectBox.js +82 -78
- package/dist/components/MultiSelectBox/MultiSelectBox.js.map +1 -1
- package/dist/components/PeriodSelector/PeriodSelector.js +1 -1
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +1 -1
- package/dist/components/RadioTabSelector/RadioTabSelector.js +1 -1
- package/dist/components/RteEditor/EditorHeader/EditorHeader.js +1 -1
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +1 -1
- package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +2 -2
- package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +2 -2
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +30 -30
- package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +12 -12
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +3 -3
- package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +3 -3
- package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +2 -2
- package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +7 -7
- package/dist/components/RteEditor/Plugins/index.js +1 -1
- package/dist/components/RteEditor/RteEditor.js +74 -74
- package/dist/components/RteEditor/helpers.js +4 -4
- package/dist/components/SelectListbox/SelectListBox.stories.js +5 -0
- package/dist/components/SelectListbox/SelectListBox.stories.js.map +1 -1
- package/dist/components/SelectListbox/SelectProvider.js +24 -33
- package/dist/components/SelectListbox/SelectProvider.js.map +1 -1
- package/dist/components/TextArea/TextArea.js +14 -14
- package/dist/components/index.js +1 -1
- package/dist/{helpers-5AryUrYu.js → helpers-DZIm3MiJ.js} +4 -4
- package/dist/{helpers-5AryUrYu.js.map → helpers-DZIm3MiJ.js.map} +1 -1
- package/dist/index.js +1 -1
- package/package.json +6 -6
- package/dist/Lexical.prod-m3GJsAAT.js.map +0 -1
- package/dist/LexicalSelection.prod-Bh25dAig.js +0 -101
- package/dist/LexicalSelection.prod-Bh25dAig.js.map +0 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { jsx as d } from "react/jsx-runtime";
|
|
2
2
|
import { o as D } from "../../../../LexicalComposerContext.prod-DLlRM5wP.js";
|
|
3
|
-
import { m as C, p as P, f as v, Z as K, o as f, s as y } from "../../../../LexicalList.prod-
|
|
4
|
-
import { _ as x } from "../../../../LexicalSelection.prod-
|
|
3
|
+
import { m as C, p as P, f as v, Z as K, o as f, s as y } from "../../../../LexicalList.prod-jxGuZd4b.js";
|
|
4
|
+
import { _ as x } from "../../../../LexicalSelection.prod-xk5MiZnZ.js";
|
|
5
5
|
import { useState as p, useEffect as I } from "react";
|
|
6
6
|
import { c as O } from "../../../../clsx-OuTLNxxd.js";
|
|
7
|
-
import {
|
|
8
|
-
import { Icon as
|
|
7
|
+
import { aq as U, L as w, Y as B, N as b, c as h, I as E, P as Y } from "../../../../Lexical.prod-UwAbgYpF.js";
|
|
8
|
+
import { Icon as $ } from "../../../Icon/Icon.js";
|
|
9
9
|
import { s as l } from "../../../../RteEditor.module-B_3uFnFu.js";
|
|
10
|
-
import { useTranslation as
|
|
11
|
-
const
|
|
10
|
+
import { useTranslation as j } from "../../hooks/useTranslation.js";
|
|
11
|
+
const q = {
|
|
12
12
|
bullet: "BulletList",
|
|
13
13
|
number: "NumberedList"
|
|
14
|
-
},
|
|
15
|
-
const u =
|
|
14
|
+
}, z = ["bullet", "number"], V = () => {
|
|
15
|
+
const u = j(), [e] = D(), [g, s] = p("paragraph"), [c, L] = p(!1), [m, _] = p(!1), k = () => {
|
|
16
16
|
e.update(() => {
|
|
17
17
|
const t = b();
|
|
18
|
-
h(t) && x(t, () =>
|
|
18
|
+
h(t) && x(t, () => Y());
|
|
19
19
|
});
|
|
20
20
|
}, S = (t) => {
|
|
21
21
|
t === "number" && g !== "number" ? (e.dispatchCommand(P, void 0), s("number")) : t === "bullet" && g !== "bullet" ? (e.dispatchCommand(v, void 0), s("bullet")) : (k(), s("paragraph"));
|
|
@@ -70,7 +70,7 @@ const V = {
|
|
|
70
70
|
return () => {
|
|
71
71
|
t();
|
|
72
72
|
};
|
|
73
|
-
}, [e]), /* @__PURE__ */ d("div", { className: l["editor__toolbar-button-group"], children:
|
|
73
|
+
}, [e]), /* @__PURE__ */ d("div", { className: l["editor__toolbar-button-group"], children: z.map((t) => /* @__PURE__ */ d(
|
|
74
74
|
"button",
|
|
75
75
|
{
|
|
76
76
|
onClick: () => S(t),
|
|
@@ -84,12 +84,12 @@ const V = {
|
|
|
84
84
|
"aria-label": u.aria.labels[t],
|
|
85
85
|
"aria-keyshortcuts": u.aria.keyshortcuts[t],
|
|
86
86
|
type: "button",
|
|
87
|
-
children: /* @__PURE__ */ d(
|
|
87
|
+
children: /* @__PURE__ */ d($, { name: q[t], size: 24 })
|
|
88
88
|
},
|
|
89
89
|
t
|
|
90
90
|
)) });
|
|
91
91
|
};
|
|
92
92
|
export {
|
|
93
|
-
|
|
93
|
+
V as ListPlugin
|
|
94
94
|
};
|
|
95
95
|
//# sourceMappingURL=ListPlugin.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { o as m } from "../../../../LexicalComposerContext.prod-DLlRM5wP.js";
|
|
2
2
|
import { useEffect as c } from "react";
|
|
3
|
-
import { ae as f,
|
|
4
|
-
import { L as i } from "../../../../LexicalUtils.prod-
|
|
5
|
-
import { D as d } from "../../../../LexicalClipboard.prod-
|
|
3
|
+
import { ae as f, G as p, N as u } from "../../../../Lexical.prod-UwAbgYpF.js";
|
|
4
|
+
import { L as i } from "../../../../LexicalUtils.prod-cQutjKA3.js";
|
|
5
|
+
import { D as d } from "../../../../LexicalClipboard.prod-DHIGjydG.js";
|
|
6
6
|
import { d as D } from "../../../../index-DllfJcv4.js";
|
|
7
7
|
const N = () => {
|
|
8
8
|
const [e] = m(), l = (t) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { b as B } from "../../../../TablePlugin-
|
|
3
|
+
import { b as B } from "../../../../TablePlugin-NmJsn2fm.js";
|
|
4
4
|
import "../../../Buttons/Button.js";
|
|
5
5
|
import "../../../Buttons/LinkButton.js";
|
|
6
6
|
import "@react-aria/button";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "../../../../LexicalComposerContext.prod-DLlRM5wP.js";
|
|
3
3
|
import "../../../../clsx-OuTLNxxd.js";
|
|
4
|
-
import "../../../../LexicalTable.prod-
|
|
5
|
-
import "../../../../Lexical.prod-
|
|
4
|
+
import "../../../../LexicalTable.prod-BSjs04iE.js";
|
|
5
|
+
import "../../../../Lexical.prod-UwAbgYpF.js";
|
|
6
6
|
import "react";
|
|
7
|
-
import { T as F } from "../../../../TablePlugin-
|
|
7
|
+
import { T as F } from "../../../../TablePlugin-NmJsn2fm.js";
|
|
8
8
|
import "./helpers.js";
|
|
9
9
|
import "../../hooks/useFlyout.js";
|
|
10
10
|
import "../../../Icon/Icon.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { H as d, R as h, B as m, Z as x, z as w, P as S, v as C, K as p, L as E } from "../../../../LexicalTable.prod-
|
|
2
|
-
import { P as u } from "../../../../Lexical.prod-
|
|
1
|
+
import { H as d, R as h, B as m, Z as x, z as w, P as S, v as C, K as p, L as E } from "../../../../LexicalTable.prod-BSjs04iE.js";
|
|
2
|
+
import { P as u } from "../../../../Lexical.prod-UwAbgYpF.js";
|
|
3
3
|
const b = 100, D = (e, n) => {
|
|
4
4
|
const t = E(0, 0, !1);
|
|
5
5
|
for (let o = 0; o < e; o++) {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { o as
|
|
3
|
-
import { N as h, c as g,
|
|
1
|
+
import { jsxs as P, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { o as y } from "../../../../LexicalComposerContext.prod-DLlRM5wP.js";
|
|
3
|
+
import { N as h, c as g, m as C } from "../../../../Lexical.prod-UwAbgYpF.js";
|
|
4
4
|
import { useState as L, useRef as E, useCallback as N, useEffect as m } from "react";
|
|
5
|
-
import { W as b } from "../../../../LexicalTable.prod-
|
|
5
|
+
import { W as b } from "../../../../LexicalTable.prod-BSjs04iE.js";
|
|
6
6
|
import { BlockFormatPlugin as T } from "../BlockFormatPlugin/BlockFormatPlugin.js";
|
|
7
7
|
import { ListPlugin as k } from "../ListPlugin/ListPlugin.js";
|
|
8
8
|
import { LinkPlugin as x } from "../LinkPlugin/LinkPlugin.js";
|
|
9
9
|
import { HistoryPlugin as B } from "../HistoryPlugin/HistoryPlugin.js";
|
|
10
|
-
import { T as S } from "../../../../TablePlugin-
|
|
10
|
+
import { T as S } from "../../../../TablePlugin-NmJsn2fm.js";
|
|
11
11
|
import { TableCellContextMenu as z } from "../TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
|
|
12
12
|
import { s as A } from "../../../../RteEditor.module-B_3uFnFu.js";
|
|
13
13
|
import { setScrollableContainers as w, removeScrollableContainers as K } from "../../helpers.js";
|
|
14
14
|
const O = ({ editorScrollPosition: d }) => {
|
|
15
|
-
const [t] =
|
|
15
|
+
const [t] = y(), [i, s] = L(null), u = E(null), f = N(() => {
|
|
16
16
|
const e = h();
|
|
17
17
|
if (g(e)) {
|
|
18
18
|
const l = e.anchor.getNode(), a = b(l);
|
|
@@ -49,7 +49,7 @@ const O = ({ editorScrollPosition: d }) => {
|
|
|
49
49
|
return window.addEventListener("keydown", e, { capture: !0 }), () => {
|
|
50
50
|
window.removeEventListener("keydown", e);
|
|
51
51
|
};
|
|
52
|
-
}, []), /* @__PURE__ */
|
|
52
|
+
}, []), /* @__PURE__ */ P("div", { className: A.editor__toolbar, children: [
|
|
53
53
|
/* @__PURE__ */ n(T, {}),
|
|
54
54
|
/* @__PURE__ */ n(k, {}),
|
|
55
55
|
/* @__PURE__ */ n(S, { isActive: !!i, ref: u }),
|
|
@@ -3,7 +3,7 @@ import { BlockFormatPlugin as l } from "./BlockFormatPlugin/BlockFormatPlugin.js
|
|
|
3
3
|
import { ListPlugin as n } from "./ListPlugin/ListPlugin.js";
|
|
4
4
|
import { LinkPlugin as m, getLinkNodeTag as x } from "./LinkPlugin/LinkPlugin.js";
|
|
5
5
|
import { HistoryPlugin as p } from "./HistoryPlugin/HistoryPlugin.js";
|
|
6
|
-
import { T as a } from "../../../TablePlugin-
|
|
6
|
+
import { T as a } from "../../../TablePlugin-NmJsn2fm.js";
|
|
7
7
|
import { TableCellContextMenu as T } from "./TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
|
|
8
8
|
export {
|
|
9
9
|
l as BlockFormatPlugin,
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { jsx as h, jsxs as K, Fragment as Re } from "react/jsx-runtime";
|
|
2
|
-
import { t as
|
|
3
|
-
import {
|
|
2
|
+
import { t as Xe, r as Ge, o as T } from "../../LexicalComposerContext.prod-DLlRM5wP.js";
|
|
3
|
+
import { aG as Ie, af as A, P as Fe, N as p, aH as de, am as W, d as J, F as Qe, Q as F, c as g, Y as Ze, L as m, aI as et, ae as Me, o as tt, s as Oe, aJ as rt, aK as nt, U as ot, g as P, aD as at, aL as st, aM as it, aN as lt, l as te, aO as ut, aP as ct, a1 as dt, v as ft, m as mt, O as pt, aQ as gt, aR as me, b as pe, M as ht, E as re, H as vt, a2 as Ke, aS as ge, B as Ct, T as yt, z as Et, aT as he, A as wt, aU as bt, aV as _t, aW as St, aC as kt, S as xt, R as Nt, aX as Lt, W as Dt, D as $t, C as Pt, q as Tt, I as ve, aY as Rt, u as It, as as X, ar as G, aZ as Ft, a_ as Mt, au as Ot, a$ as se, at as Kt, b0 as zt } from "../../Lexical.prod-UwAbgYpF.js";
|
|
4
4
|
import * as ne from "react";
|
|
5
5
|
import { useMemo as q, useLayoutEffect as U, useEffect as S, useState as M, useRef as ze, Suspense as At, forwardRef as Ae, useCallback as Bt } from "react";
|
|
6
|
-
import { j, L as z, y as Ut, w as fe } from "../../LexicalUtils.prod-
|
|
6
|
+
import { j, L as z, y as Ut, w as fe } from "../../LexicalUtils.prod-cQutjKA3.js";
|
|
7
7
|
import { flushSync as jt, createPortal as Ht } from "react-dom";
|
|
8
|
-
import { D as Ce, _ as ye, h as
|
|
9
|
-
import { X as Ee, J as we } from "../../LexicalSelection.prod-
|
|
10
|
-
import { t as Be, j as Ue, y as qt, _ as Vt } from "../../LexicalList.prod-
|
|
11
|
-
import { g as je, k as be, v as oe, p as
|
|
12
|
-
import { s as Gt, c as Qt, a as He, b as Zt, w as er, S as tr, y as
|
|
13
|
-
import { a as nr, w as or, M as ar } from "../../helpers-
|
|
8
|
+
import { D as Ce, _ as ye, h as Wt, m as Jt } from "../../LexicalClipboard.prod-DHIGjydG.js";
|
|
9
|
+
import { X as Ee, J as we } from "../../LexicalSelection.prod-xk5MiZnZ.js";
|
|
10
|
+
import { t as Be, j as Ue, y as qt, _ as Vt } from "../../LexicalList.prod-jxGuZd4b.js";
|
|
11
|
+
import { g as je, k as be, v as oe, p as Yt, m as Xt } from "../../LexicalLink.prod-Bsa9J7L-.js";
|
|
12
|
+
import { s as Gt, c as Qt, a as He, b as Zt, w as er, S as tr, y as We, O as rr } from "../../LexicalTable.prod-BSjs04iE.js";
|
|
13
|
+
import { a as nr, w as or, M as ar } from "../../helpers-DZIm3MiJ.js";
|
|
14
14
|
import { c as sr } from "../../clsx-OuTLNxxd.js";
|
|
15
15
|
import { exportMap as ir, isStartingWithHtmlTag as lr, mergeBoldStrongTags as ur } from "./helpers.js";
|
|
16
16
|
import { s as I } from "../../RteEditor.module-B_3uFnFu.js";
|
|
17
17
|
import { ToolBarPlugin as cr } from "./Plugins/ToolbarPlugin/ToolbarPlugin.js";
|
|
18
18
|
import { useTranslation as dr } from "./hooks/useTranslation.js";
|
|
19
|
-
import "../../TablePlugin-
|
|
19
|
+
import "../../TablePlugin-NmJsn2fm.js";
|
|
20
20
|
import "./Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
|
|
21
21
|
import "./hooks/components/Flyout.js";
|
|
22
22
|
import "../Buttons/Button.js";
|
|
@@ -41,10 +41,10 @@ import { UvaTheme as mr } from "./UvaTheme/UvaTheme.js";
|
|
|
41
41
|
import { EditorHeader as pr } from "./EditorHeader/EditorHeader.js";
|
|
42
42
|
import { LanguageProvider as gr, useLanguage as hr } from "./Providers/LanguageProvider.js";
|
|
43
43
|
import { PasteHandlerPlugin as vr } from "./Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js";
|
|
44
|
-
const
|
|
44
|
+
const Je = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, Cr = Je ? U : S, Q = { tag: de };
|
|
45
45
|
function yr({ initialConfig: r, children: e }) {
|
|
46
46
|
const t = q(() => {
|
|
47
|
-
const { theme: o, namespace: a, nodes: n, onError: s, editorState: i, html: l } = r, u =
|
|
47
|
+
const { theme: o, namespace: a, nodes: n, onError: s, editorState: i, html: l } = r, u = Xe(null, o), c = Ie({ editable: r.editable, html: l, namespace: a, nodes: n, onError: (d) => s(d, c), theme: o });
|
|
48
48
|
return function(d, f) {
|
|
49
49
|
if (f !== null) {
|
|
50
50
|
if (f === void 0) d.update(() => {
|
|
@@ -52,7 +52,7 @@ function yr({ initialConfig: r, children: e }) {
|
|
|
52
52
|
if (v.isEmpty()) {
|
|
53
53
|
const C = Fe();
|
|
54
54
|
v.append(C);
|
|
55
|
-
const w =
|
|
55
|
+
const w = Je ? document.activeElement : null;
|
|
56
56
|
(p() !== null || w !== null && w === d.getRootElement()) && C.select();
|
|
57
57
|
}
|
|
58
58
|
}, Q);
|
|
@@ -107,8 +107,8 @@ function kr(r) {
|
|
|
107
107
|
if (t > 1) return !1;
|
|
108
108
|
for (let o = 0; o < t; o++) {
|
|
109
109
|
const a = e[o];
|
|
110
|
-
if (
|
|
111
|
-
if (
|
|
110
|
+
if (W(a)) return !1;
|
|
111
|
+
if (J(a)) {
|
|
112
112
|
if (!Qe(a) || a.__indent !== 0) return !1;
|
|
113
113
|
const n = a.getChildren(), s = n.length;
|
|
114
114
|
for (let i = 0; i < s; i++) {
|
|
@@ -174,7 +174,7 @@ function _e(r, e) {
|
|
|
174
174
|
}
|
|
175
175
|
return null;
|
|
176
176
|
}
|
|
177
|
-
const H = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, Nr = H && "documentMode" in document ? document.documentMode : null, Lr = !(!H || !("InputEvent" in window) || Nr) && "getTargetRanges" in new window.InputEvent("input"),
|
|
177
|
+
const H = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, Nr = H && "documentMode" in document ? document.documentMode : null, Lr = !(!H || !("InputEvent" in window) || Nr) && "getTargetRanges" in new window.InputEvent("input"), Dr = H && /Version\/[\d.]+.*Safari/.test(navigator.userAgent), Se = H && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, $r = H && /^(?=.*Chrome).*/i.test(navigator.userAgent), Pr = H && /AppleWebKit\/[\d.]+/.test(navigator.userAgent) && !$r, ke = tt("DRAG_DROP_PASTE_FILE");
|
|
178
178
|
function Z(r) {
|
|
179
179
|
let e = null;
|
|
180
180
|
if (z(r, DragEvent) ? e = r.dataTransfer : z(r, ClipboardEvent) && (e = r.clipboardData), e === null) return [!1, [], !1];
|
|
@@ -188,7 +188,7 @@ function xe(r) {
|
|
|
188
188
|
for (let a = 0; a < o.length; a++) {
|
|
189
189
|
const n = o[a], s = n.getKey();
|
|
190
190
|
if (t.has(s)) continue;
|
|
191
|
-
const i = fe(n, (u) =>
|
|
191
|
+
const i = fe(n, (u) => J(u) && !u.isInline());
|
|
192
192
|
if (i === null) continue;
|
|
193
193
|
const l = i.getKey();
|
|
194
194
|
i.canIndent() && !t.has(l) && (t.add(l), r(i));
|
|
@@ -197,7 +197,7 @@ function xe(r) {
|
|
|
197
197
|
}
|
|
198
198
|
function Ne(r) {
|
|
199
199
|
const e = te(r);
|
|
200
|
-
return
|
|
200
|
+
return W(e);
|
|
201
201
|
}
|
|
202
202
|
function ae(r) {
|
|
203
203
|
for (const e of ["lowercase", "uppercase", "capitalize"]) r.hasFormat(e) && r.toggleFormat(e);
|
|
@@ -212,10 +212,10 @@ function Tr(r) {
|
|
|
212
212
|
}, m), r.registerCommand(Pt, (e) => {
|
|
213
213
|
const t = p();
|
|
214
214
|
return !!g(t) && (t.deleteWord(e), !0);
|
|
215
|
-
}, m), r.registerCommand(
|
|
215
|
+
}, m), r.registerCommand($t, (e) => {
|
|
216
216
|
const t = p();
|
|
217
217
|
return !!g(t) && (t.deleteLine(e), !0);
|
|
218
|
-
}, m), r.registerCommand(
|
|
218
|
+
}, m), r.registerCommand(Dt, (e) => {
|
|
219
219
|
const t = p();
|
|
220
220
|
if (typeof e == "string") t !== null && t.insertText(e);
|
|
221
221
|
else {
|
|
@@ -239,7 +239,7 @@ function Tr(r) {
|
|
|
239
239
|
if (!g(t) && !P(t)) return !1;
|
|
240
240
|
const o = t.getNodes();
|
|
241
241
|
for (const a of o) {
|
|
242
|
-
const n = fe(a, (s) =>
|
|
242
|
+
const n = fe(a, (s) => J(s) && !s.isInline());
|
|
243
243
|
n !== null && n.setFormat(e);
|
|
244
244
|
}
|
|
245
245
|
return !0;
|
|
@@ -262,7 +262,7 @@ function Tr(r) {
|
|
|
262
262
|
if (o.length > 0) return o[0].selectPrevious(), !0;
|
|
263
263
|
} else if (g(t)) {
|
|
264
264
|
const o = he(t.focus, !0);
|
|
265
|
-
if (!e.shiftKey &&
|
|
265
|
+
if (!e.shiftKey && W(o) && !o.isIsolated() && !o.isInline()) return o.selectPrevious(), e.preventDefault(), !0;
|
|
266
266
|
}
|
|
267
267
|
return !1;
|
|
268
268
|
}, m), r.registerCommand(Et, (e) => {
|
|
@@ -276,7 +276,7 @@ function Tr(r) {
|
|
|
276
276
|
return n.key === "root" && n.offset === A().getChildrenSize();
|
|
277
277
|
}(t)) return e.preventDefault(), !0;
|
|
278
278
|
const o = he(t.focus, !1);
|
|
279
|
-
if (!e.shiftKey &&
|
|
279
|
+
if (!e.shiftKey && W(o) && !o.isIsolated() && !o.isInline()) return o.selectNext(), e.preventDefault(), !0;
|
|
280
280
|
}
|
|
281
281
|
return !1;
|
|
282
282
|
}, m), r.registerCommand(yt, (e) => {
|
|
@@ -324,7 +324,7 @@ function Tr(r) {
|
|
|
324
324
|
const t = p();
|
|
325
325
|
if (!g(t)) return !1;
|
|
326
326
|
if (ae(t), e !== null) {
|
|
327
|
-
if ((Se ||
|
|
327
|
+
if ((Se || Dr || Pr) && Lr) return !1;
|
|
328
328
|
if (e.preventDefault(), e.shiftKey) return r.dispatchCommand(me, !1);
|
|
329
329
|
}
|
|
330
330
|
return r.dispatchCommand(pe, void 0);
|
|
@@ -362,7 +362,7 @@ function Tr(r) {
|
|
|
362
362
|
const a = _e(e.clientX, e.clientY);
|
|
363
363
|
if (a !== null) {
|
|
364
364
|
const n = te(a.node);
|
|
365
|
-
|
|
365
|
+
W(n) && e.preventDefault();
|
|
366
366
|
}
|
|
367
367
|
return !0;
|
|
368
368
|
}, m), r.registerCommand(st, () => (it(), !0), m), r.registerCommand(at, (e) => (ye(r, z(e, ClipboardEvent) ? e : null), !0), m), r.registerCommand(ot, (e) => (async function(t, o) {
|
|
@@ -431,21 +431,21 @@ function Ir({ content: r }) {
|
|
|
431
431
|
}
|
|
432
432
|
const Ve = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? U : S;
|
|
433
433
|
function Fr({ editor: r, ariaActiveDescendant: e, ariaAutoComplete: t, ariaControls: o, ariaDescribedBy: a, ariaErrorMessage: n, ariaExpanded: s, ariaInvalid: i, ariaLabel: l, ariaLabelledBy: u, ariaMultiline: c, ariaOwns: d, ariaRequired: f, autoCapitalize: v, className: C, id: w, role: x = "textbox", spellCheck: y = !0, style: E, tabIndex: _, "data-testid": N, ...b }, L) {
|
|
434
|
-
const [k, R] = M(r.isEditable()), O = Bt((
|
|
435
|
-
|
|
436
|
-
}, [r]), B = q(() => /* @__PURE__ */ function(
|
|
434
|
+
const [k, R] = M(r.isEditable()), O = Bt((D) => {
|
|
435
|
+
D && D.ownerDocument && D.ownerDocument.defaultView ? r.setRootElement(D) : r.setRootElement(null);
|
|
436
|
+
}, [r]), B = q(() => /* @__PURE__ */ function(...D) {
|
|
437
437
|
return (V) => {
|
|
438
|
-
|
|
439
|
-
typeof
|
|
438
|
+
D.forEach((Y) => {
|
|
439
|
+
typeof Y == "function" ? Y(V) : Y != null && (Y.current = V);
|
|
440
440
|
});
|
|
441
441
|
};
|
|
442
442
|
}(L, O), [O, L]);
|
|
443
|
-
return Ve(() => (R(r.isEditable()), r.registerEditableListener((
|
|
444
|
-
R(
|
|
443
|
+
return Ve(() => (R(r.isEditable()), r.registerEditableListener((D) => {
|
|
444
|
+
R(D);
|
|
445
445
|
})), [r]), h("div", { "aria-activedescendant": k ? e : void 0, "aria-autocomplete": k ? t : "none", "aria-controls": k ? o : void 0, "aria-describedby": a, ...n != null ? { "aria-errormessage": n } : {}, "aria-expanded": k && x === "combobox" ? !!s : void 0, ...i != null ? { "aria-invalid": i } : {}, "aria-label": l, "aria-labelledby": u, "aria-multiline": c, "aria-owns": k ? d : void 0, "aria-readonly": !k || void 0, "aria-required": f, autoCapitalize: v, className: C, contentEditable: k, "data-testid": N, id: w, ref: B, role: k ? x : void 0, spellCheck: y, style: E, tabIndex: _, ...b });
|
|
446
446
|
}
|
|
447
447
|
const Mr = Ae(Fr);
|
|
448
|
-
function
|
|
448
|
+
function De(r) {
|
|
449
449
|
return r.getEditorState().read(qe(r.isComposing()));
|
|
450
450
|
}
|
|
451
451
|
const Or = Ae(Kr);
|
|
@@ -455,10 +455,10 @@ function Kr(r, e) {
|
|
|
455
455
|
}
|
|
456
456
|
function zr({ content: r, editor: e }) {
|
|
457
457
|
const t = function(s) {
|
|
458
|
-
const [i, l] = M(() =>
|
|
458
|
+
const [i, l] = M(() => De(s));
|
|
459
459
|
return Ve(() => {
|
|
460
460
|
function u() {
|
|
461
|
-
const c =
|
|
461
|
+
const c = De(s);
|
|
462
462
|
l(c);
|
|
463
463
|
}
|
|
464
464
|
return u(), j(s.registerUpdateListener(() => {
|
|
@@ -479,11 +479,11 @@ function le(r, e) {
|
|
|
479
479
|
return t.__proto__ = o, t;
|
|
480
480
|
}, le(r, e);
|
|
481
481
|
}
|
|
482
|
-
var
|
|
482
|
+
var $e = { error: null }, Ar = function(r) {
|
|
483
483
|
var e, t;
|
|
484
484
|
function o() {
|
|
485
485
|
for (var n, s = arguments.length, i = new Array(s), l = 0; l < s; l++) i[l] = arguments[l];
|
|
486
|
-
return (n = r.call.apply(r, [this].concat(i)) || this).state =
|
|
486
|
+
return (n = r.call.apply(r, [this].concat(i)) || this).state = $e, n.resetErrorBoundary = function() {
|
|
487
487
|
for (var u, c = arguments.length, d = new Array(c), f = 0; f < c; f++) d[f] = arguments[f];
|
|
488
488
|
n.props.onReset == null || (u = n.props).onReset.apply(u, d), n.reset();
|
|
489
489
|
}, n;
|
|
@@ -493,7 +493,7 @@ var De = { error: null }, Ar = function(r) {
|
|
|
493
493
|
};
|
|
494
494
|
var a = o.prototype;
|
|
495
495
|
return a.reset = function() {
|
|
496
|
-
this.setState(
|
|
496
|
+
this.setState($e);
|
|
497
497
|
}, a.componentDidCatch = function(n, s) {
|
|
498
498
|
var i, l;
|
|
499
499
|
(i = (l = this.props).onError) == null || i.call(l, n, s);
|
|
@@ -536,7 +536,7 @@ function Hr({ hasStrictIndent: r = !1 }) {
|
|
|
536
536
|
S(() => Vt(t), [t]);
|
|
537
537
|
}(e), null;
|
|
538
538
|
}
|
|
539
|
-
function
|
|
539
|
+
function Wr({ validateUrl: r, attributes: e }) {
|
|
540
540
|
const [t] = T();
|
|
541
541
|
return S(() => {
|
|
542
542
|
if (!t.hasNodes([je])) throw new Error("LinkPlugin: LinkNode not registered on editor");
|
|
@@ -551,12 +551,12 @@ function Jr({ validateUrl: r, attributes: e }) {
|
|
|
551
551
|
const a = p();
|
|
552
552
|
if (!g(a) || a.isCollapsed() || !z(o, ClipboardEvent) || o.clipboardData === null) return !1;
|
|
553
553
|
const n = o.clipboardData.getData("text");
|
|
554
|
-
return !!r(n) && !a.getNodes().some((s) =>
|
|
554
|
+
return !!r(n) && !a.getNodes().some((s) => J(s)) && (t.dispatchCommand(be, { ...e, url: n }), o.preventDefault(), !0);
|
|
555
555
|
}, ve) : () => {
|
|
556
556
|
});
|
|
557
557
|
}, [t, r, e]), null;
|
|
558
558
|
}
|
|
559
|
-
function
|
|
559
|
+
function Jr({ newTab: r = !0, disabled: e = !1 }) {
|
|
560
560
|
const [t] = T();
|
|
561
561
|
return S(() => {
|
|
562
562
|
const o = (n) => {
|
|
@@ -568,8 +568,8 @@ function Wr({ newTab: r = !0, disabled: e = !1 }) {
|
|
|
568
568
|
if (i.update(() => {
|
|
569
569
|
const f = te(s);
|
|
570
570
|
if (f !== null) {
|
|
571
|
-
const v = fe(f,
|
|
572
|
-
if (!e) if (
|
|
571
|
+
const v = fe(f, J);
|
|
572
|
+
if (!e) if (Yt(v)) l = v.sanitizeUrl(v.getURL()), u = v.getTarget();
|
|
573
573
|
else {
|
|
574
574
|
const C = function(w, x) {
|
|
575
575
|
let y = w;
|
|
@@ -595,12 +595,12 @@ function Wr({ newTab: r = !0, disabled: e = !1 }) {
|
|
|
595
595
|
});
|
|
596
596
|
}, [t, r, e]), null;
|
|
597
597
|
}
|
|
598
|
-
const ee = 0, ue = 1, ce = 2,
|
|
599
|
-
function
|
|
600
|
-
if (r === null || t.size === 0 && o.size === 0 && !a) return
|
|
598
|
+
const ee = 0, ue = 1, ce = 2, $ = 0, qr = 1, Pe = 2, Vr = 3, Yr = 4;
|
|
599
|
+
function Xr(r, e, t, o, a) {
|
|
600
|
+
if (r === null || t.size === 0 && o.size === 0 && !a) return $;
|
|
601
601
|
const n = e._selection, s = r._selection;
|
|
602
602
|
if (a) return qr;
|
|
603
|
-
if (!(g(n) && g(s) && s.isCollapsed() && n.isCollapsed())) return
|
|
603
|
+
if (!(g(n) && g(s) && s.isCollapsed() && n.isCollapsed())) return $;
|
|
604
604
|
const i = function(y, E, _) {
|
|
605
605
|
const N = y._nodeMap, b = [];
|
|
606
606
|
for (const L of E) {
|
|
@@ -614,31 +614,31 @@ function Yr(r, e, t, o, a) {
|
|
|
614
614
|
}
|
|
615
615
|
return b;
|
|
616
616
|
}(e, t, o);
|
|
617
|
-
if (i.length === 0) return
|
|
617
|
+
if (i.length === 0) return $;
|
|
618
618
|
if (i.length > 1) {
|
|
619
619
|
const y = e._nodeMap, E = y.get(n.anchor.key), _ = y.get(s.anchor.key);
|
|
620
|
-
return E && _ && !r._nodeMap.has(E.__key) && F(E) && E.__text.length === 1 && n.anchor.offset === 1 ? Pe :
|
|
620
|
+
return E && _ && !r._nodeMap.has(E.__key) && F(E) && E.__text.length === 1 && n.anchor.offset === 1 ? Pe : $;
|
|
621
621
|
}
|
|
622
622
|
const l = i[0], u = r._nodeMap.get(l.__key);
|
|
623
|
-
if (!F(u) || !F(l) || u.__mode !== l.__mode) return
|
|
623
|
+
if (!F(u) || !F(l) || u.__mode !== l.__mode) return $;
|
|
624
624
|
const c = u.__text, d = l.__text;
|
|
625
|
-
if (c === d) return
|
|
625
|
+
if (c === d) return $;
|
|
626
626
|
const f = n.anchor, v = s.anchor;
|
|
627
|
-
if (f.key !== v.key || f.type !== "text") return
|
|
627
|
+
if (f.key !== v.key || f.type !== "text") return $;
|
|
628
628
|
const C = f.offset, w = v.offset, x = d.length - c.length;
|
|
629
|
-
return x === 1 && w === C - 1 ? Pe : x === -1 && w === C + 1 ? Vr : x === -1 && w === C ?
|
|
629
|
+
return x === 1 && w === C - 1 ? Pe : x === -1 && w === C + 1 ? Vr : x === -1 && w === C ? Yr : $;
|
|
630
630
|
}
|
|
631
631
|
function Gr(r, e) {
|
|
632
|
-
let t = Date.now(), o =
|
|
632
|
+
let t = Date.now(), o = $;
|
|
633
633
|
return (a, n, s, i, l, u) => {
|
|
634
634
|
const c = Date.now();
|
|
635
|
-
if (u.has(se)) return o =
|
|
636
|
-
const d =
|
|
635
|
+
if (u.has(se)) return o = $, t = c, ce;
|
|
636
|
+
const d = Xr(a, n, i, l, r.isComposing()), f = (() => {
|
|
637
637
|
const v = s === null || s.editor === r, C = u.has(zt);
|
|
638
638
|
if (!C && v && u.has(de)) return ee;
|
|
639
639
|
if (a === null) return ue;
|
|
640
640
|
const w = n._selection;
|
|
641
|
-
return i.size > 0 || l.size > 0 ? C === !1 && d !==
|
|
641
|
+
return i.size > 0 || l.size > 0 ? C === !1 && d !== $ && d === o && c < t + e && v || i.size === 1 && function(x, y, E) {
|
|
642
642
|
const _ = y._nodeMap.get(x), N = E._nodeMap.get(x), b = y._selection, L = E._selection;
|
|
643
643
|
return !(g(b) && g(L) && b.anchor.type === "element" && b.focus.type === "element" && L.anchor.type === "text" && L.focus.type === "text" || !F(_) || !F(N) || _.__parent !== N.__parent) && JSON.stringify(y.read(() => _.exportJSON())) === JSON.stringify(E.read(() => N.exportJSON()));
|
|
644
644
|
}(Array.from(i)[0], a, n) ? ee : ue : w !== null ? ee : ce;
|
|
@@ -655,7 +655,7 @@ function Qr(r, e, t) {
|
|
|
655
655
|
const i = s.redoStack, l = s.undoStack;
|
|
656
656
|
if (l.length !== 0) {
|
|
657
657
|
const u = s.current, c = l.pop();
|
|
658
|
-
u !== null && (i.push(u), n.dispatchCommand(
|
|
658
|
+
u !== null && (i.push(u), n.dispatchCommand(X, !0)), l.length === 0 && n.dispatchCommand(G, !1), s.current = c || null, c && c.editor.setEditorState(c.editorState, { tag: se });
|
|
659
659
|
}
|
|
660
660
|
}(r, e), !0), m), r.registerCommand(Ot, () => (function(n, s) {
|
|
661
661
|
const i = s.redoStack, l = s.undoStack;
|
|
@@ -663,13 +663,13 @@ function Qr(r, e, t) {
|
|
|
663
663
|
const u = s.current;
|
|
664
664
|
u !== null && (l.push(u), n.dispatchCommand(G, !0));
|
|
665
665
|
const c = i.pop();
|
|
666
|
-
i.length === 0 && n.dispatchCommand(
|
|
666
|
+
i.length === 0 && n.dispatchCommand(X, !1), s.current = c || null, c && c.editor.setEditorState(c.editorState, { tag: se });
|
|
667
667
|
}
|
|
668
|
-
}(r, e), !0), m), r.registerCommand(Mt, () => (Te(e), !1), m), r.registerCommand(Ft, () => (Te(e), r.dispatchCommand(
|
|
668
|
+
}(r, e), !0), m), r.registerCommand(Mt, () => (Te(e), !1), m), r.registerCommand(Ft, () => (Te(e), r.dispatchCommand(X, !1), r.dispatchCommand(G, !1), !0), m), r.registerUpdateListener(({ editorState: n, prevEditorState: s, dirtyLeaves: i, dirtyElements: l, tags: u }) => {
|
|
669
669
|
const c = e.current, d = e.redoStack, f = e.undoStack, v = c === null ? null : c.editorState;
|
|
670
670
|
if (c !== null && n === v) return;
|
|
671
671
|
const C = o(s, n, c, i, l, u);
|
|
672
|
-
if (C === ue) d.length !== 0 && (e.redoStack = [], r.dispatchCommand(
|
|
672
|
+
if (C === ue) d.length !== 0 && (e.redoStack = [], r.dispatchCommand(X, !1)), c !== null && (f.push({ ...c }), r.dispatchCommand(G, !0));
|
|
673
673
|
else if (C === ce) return;
|
|
674
674
|
e.current = { editor: r, editorState: n };
|
|
675
675
|
}));
|
|
@@ -692,12 +692,12 @@ function tn({ hasCellMerge: r = !0, hasCellBackgroundColor: e = !0, hasTabHandle
|
|
|
692
692
|
}, [a, o]), S(() => Zt(a), [a]), S(() => er(a, t), [a, t]), S(() => {
|
|
693
693
|
if (!r) return tr(a);
|
|
694
694
|
}, [a, r]), S(() => {
|
|
695
|
-
if (!e) return a.registerNodeTransform(
|
|
695
|
+
if (!e) return a.registerNodeTransform(We, (n) => {
|
|
696
696
|
n.getBackgroundColor() !== null && n.setBackgroundColor(null);
|
|
697
697
|
});
|
|
698
698
|
}, [a, e, r]), null;
|
|
699
699
|
}
|
|
700
|
-
const
|
|
700
|
+
const Ye = 200, rn = ({
|
|
701
701
|
currentLanguage: r = "NL",
|
|
702
702
|
initialValue: e = "",
|
|
703
703
|
placeholder: t = "",
|
|
@@ -706,7 +706,7 @@ const Xe = 200, rn = ({
|
|
|
706
706
|
required: n = !1,
|
|
707
707
|
notValidatedText: s = "",
|
|
708
708
|
maxHeightInRem: i = "20rem",
|
|
709
|
-
maxWords: l =
|
|
709
|
+
maxWords: l = Ye,
|
|
710
710
|
onChange: u
|
|
711
711
|
}) => {
|
|
712
712
|
const { switchLanguage: c } = hr(), d = dr(), [f] = M(() => Ie()), [v, C] = M(0), [w, x] = M(0), y = ze(null), E = {
|
|
@@ -719,24 +719,24 @@ const Xe = 200, rn = ({
|
|
|
719
719
|
onError(b) {
|
|
720
720
|
throw b;
|
|
721
721
|
},
|
|
722
|
-
nodes: [Be, Ue, je,
|
|
722
|
+
nodes: [Be, Ue, je, Xt, We, rr, He],
|
|
723
723
|
editorState: (b) => {
|
|
724
|
-
const k = new DOMParser().parseFromString(e, "text/html"), R =
|
|
724
|
+
const k = new DOMParser().parseFromString(e, "text/html"), R = Wt(b, k), O = A();
|
|
725
725
|
if (O.clear(), lr(e))
|
|
726
726
|
R.forEach((B) => {
|
|
727
727
|
O.append(B);
|
|
728
728
|
});
|
|
729
729
|
else {
|
|
730
730
|
const B = Fe();
|
|
731
|
-
R.forEach((
|
|
732
|
-
V === 0 ? (B.append(
|
|
731
|
+
R.forEach((D, V) => {
|
|
732
|
+
V === 0 ? (B.append(D), O.append(B)) : O.append(D);
|
|
733
733
|
});
|
|
734
734
|
}
|
|
735
735
|
}
|
|
736
736
|
}, _ = (b) => b.trim().length === 0 ? 0 : b.split(" ").length, N = (b, L) => {
|
|
737
737
|
b.read(() => {
|
|
738
738
|
let k = "";
|
|
739
|
-
C(_(A().getTextContent().replace(/\s+/g, " ").trim())), k = ur(
|
|
739
|
+
C(_(A().getTextContent().replace(/\s+/g, " ").trim())), k = ur(Jt(L)), u(k);
|
|
740
740
|
});
|
|
741
741
|
};
|
|
742
742
|
return S(() => {
|
|
@@ -781,16 +781,16 @@ const Xe = 200, rn = ({
|
|
|
781
781
|
/* @__PURE__ */ h(tn, {}),
|
|
782
782
|
/* @__PURE__ */ h(en, {}),
|
|
783
783
|
/* @__PURE__ */ h(Hr, {}),
|
|
784
|
-
/* @__PURE__ */ h(
|
|
784
|
+
/* @__PURE__ */ h(Wr, { validateUrl: nr }),
|
|
785
785
|
/* @__PURE__ */ h(or, { matchers: ar }),
|
|
786
|
-
/* @__PURE__ */ h(
|
|
786
|
+
/* @__PURE__ */ h(Jr, {}),
|
|
787
787
|
/* @__PURE__ */ h(jr, { onChange: N }),
|
|
788
788
|
/* @__PURE__ */ h(vr, {})
|
|
789
789
|
] })
|
|
790
790
|
] }) }),
|
|
791
791
|
s !== "" && /* @__PURE__ */ h(fr, { level: "error", feedback: s })
|
|
792
792
|
] });
|
|
793
|
-
},
|
|
793
|
+
}, Jn = ({
|
|
794
794
|
currentLanguage: r = "NL",
|
|
795
795
|
initialValue: e = "",
|
|
796
796
|
placeholder: t = "",
|
|
@@ -798,7 +798,7 @@ const Xe = 200, rn = ({
|
|
|
798
798
|
info: a = "",
|
|
799
799
|
required: n = !1,
|
|
800
800
|
notValidatedText: s = "",
|
|
801
|
-
maxWords: i =
|
|
801
|
+
maxWords: i = Ye,
|
|
802
802
|
onChange: l
|
|
803
803
|
}) => /* @__PURE__ */ h(gr, { children: /* @__PURE__ */ h(
|
|
804
804
|
rn,
|
|
@@ -816,6 +816,6 @@ const Xe = 200, rn = ({
|
|
|
816
816
|
) });
|
|
817
817
|
export {
|
|
818
818
|
rn as Rte,
|
|
819
|
-
|
|
819
|
+
Jn as RteEditor
|
|
820
820
|
};
|
|
821
821
|
//# sourceMappingURL=RteEditor.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { g as s } from "../../LexicalLink.prod-
|
|
2
|
-
import { t as n, j as i } from "../../LexicalList.prod-
|
|
3
|
-
import { ad as a, J as c } from "../../Lexical.prod-
|
|
4
|
-
import { a as m, O as g, y as u } from "../../LexicalTable.prod-
|
|
1
|
+
import { g as s } from "../../LexicalLink.prod-Bsa9J7L-.js";
|
|
2
|
+
import { t as n, j as i } from "../../LexicalList.prod-jxGuZd4b.js";
|
|
3
|
+
import { ad as a, J as c } from "../../Lexical.prod-UwAbgYpF.js";
|
|
4
|
+
import { a as m, O as g, y as u } from "../../LexicalTable.prod-BSjs04iE.js";
|
|
5
5
|
const h = (e) => /^<(b|i|u|strong|em|mark|small|del|ins|sub|sup|div|p|span|h[1-6]|a|img|table|tr|td|th|ul|ol|li|blockquote|pre|code|br)(\s+[^>]*)?>/i.test(e.trim()), y = (e) => {
|
|
6
6
|
let r = e.replace(/<b><strong>/gi, "<strong>");
|
|
7
7
|
return r = r.replace(/<\/strong><\/b>/gi, "</strong>"), r;
|