@uva-glass/component-library 2.0.0 → 2.0.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-DeeCy7Xd.js → Lexical.prod-Bzma_w4s.js} +2 -2
- package/dist/{Lexical.prod-DeeCy7Xd.js.map → Lexical.prod-Bzma_w4s.js.map} +1 -1
- package/dist/{LexicalClipboard.prod-CayrMfkI.js → LexicalClipboard.prod-Dg23ixPD.js} +4 -4
- package/dist/{LexicalClipboard.prod-CayrMfkI.js.map → LexicalClipboard.prod-Dg23ixPD.js.map} +1 -1
- package/dist/{LexicalLink.prod-Biaqry-c.js → LexicalLink.prod-C1RDJLfo.js} +3 -3
- package/dist/{LexicalLink.prod-Biaqry-c.js.map → LexicalLink.prod-C1RDJLfo.js.map} +1 -1
- package/dist/{LexicalList.prod-Uk8UObU7.js → LexicalList.prod-BGzfDPU0.js} +3 -3
- package/dist/{LexicalList.prod-Uk8UObU7.js.map → LexicalList.prod-BGzfDPU0.js.map} +1 -1
- package/dist/{LexicalSelection.prod-C1TEIGhq.js → LexicalSelection.prod-CNWFGVlh.js} +2 -2
- package/dist/{LexicalSelection.prod-C1TEIGhq.js.map → LexicalSelection.prod-CNWFGVlh.js.map} +1 -1
- package/dist/{LexicalTable.prod-hx6rW3fc.js → LexicalTable.prod-D-4NN9o5.js} +500 -472
- package/dist/LexicalTable.prod-D-4NN9o5.js.map +1 -0
- package/dist/{LexicalUtils.prod-CCjlRAc-.js → LexicalUtils.prod-Cg2siy-c.js} +2 -2
- package/dist/{LexicalUtils.prod-CCjlRAc-.js.map → LexicalUtils.prod-Cg2siy-c.js.map} +1 -1
- package/dist/{TablePlugin-ByeOn0Zf.js → TablePlugin-DDlrU-7e.js} +27 -27
- package/dist/{TablePlugin-ByeOn0Zf.js.map → TablePlugin-DDlrU-7e.js.map} +1 -1
- package/dist/{chunk-7R3XDUXW-C-tvzxWq.js → chunk-D52XG6IA-CQ2nAQyC.js} +472 -456
- package/dist/chunk-D52XG6IA-CQ2nAQyC.js.map +1 -0
- package/dist/components/Buttons/LinkButton.js +1 -1
- package/dist/components/Buttons/LinkButton.stories.js +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/MenuLink/MenuLink.js +1 -1
- package/dist/components/MenuLink/MenuLink.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/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 +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 +4 -4
- package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +3 -3
- 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 +10 -10
- package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +19 -19
- package/dist/components/RteEditor/Plugins/index.js +1 -1
- package/dist/components/RteEditor/RteEditor.js +75 -75
- package/dist/components/RteEditor/helpers.js +4 -4
- package/dist/components/index.js +1 -1
- package/dist/{helpers-CgzuKnuq.js → helpers-BVGma1u6.js} +4 -4
- package/dist/{helpers-CgzuKnuq.js.map → helpers-BVGma1u6.js.map} +1 -1
- package/dist/index.js +1 -1
- package/package.json +6 -6
- package/dist/LexicalTable.prod-hx6rW3fc.js.map +0 -1
- package/dist/chunk-7R3XDUXW-C-tvzxWq.js.map +0 -1
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { jsx as y, jsxs as
|
|
1
|
+
import { jsx as y, jsxs as F, Fragment as Ke } from "react/jsx-runtime";
|
|
2
2
|
import { l as Ze, o as Ge, u as R } from "../../LexicalComposerContext.prod-Dyvim1tK.js";
|
|
3
|
-
import { ao as
|
|
3
|
+
import { ao as Fe, u as z, z as me, R as v, E as W, b as J, W as Qe, h as P, a as C, a0 as Ae, ap as et, a6 as g, B as tt, an as K, al as nt, aq as rt, ar as ot, as as it, f as ie, at as st, au as at, A as lt, V as ct, F as dt, l as ut, av as ft, aw as ge, o as he, M as mt, J as se, L as pt, a4 as ze, ax as ve, y as gt, x as ht, S as vt, a3 as Ce, w as Ct, ay as yt, az as Et, aA as wt, aj as bt, O as St, m as $t, aB as _t, n as xt, H as kt, D as Nt, a7 as Lt, e as Dt, K as ye, aC as Pt, C as Rt, a9 as Y, a8 as Z, aD as Tt, aE as Mt, ab as Ot, aa as It } from "../../Lexical.prod-Bzma_w4s.js";
|
|
4
4
|
import * as ae from "react";
|
|
5
|
-
import { useMemo as q, useLayoutEffect as
|
|
6
|
-
import { N as B, u as
|
|
5
|
+
import { useMemo as q, useLayoutEffect as H, useEffect as x, useState as O, useRef as Be, Suspense as Kt, forwardRef as Ue, useCallback as Ft } from "react";
|
|
6
|
+
import { N as B, u as A, n as At, o as pe, i as zt, d as Bt } from "../../LexicalUtils.prod-Cg2siy-c.js";
|
|
7
7
|
import { r as Ut } from "../../index-B9BWML6P.js";
|
|
8
|
-
import { N as Ee, O as we, h as
|
|
9
|
-
import { L as be, $ as Se } from "../../LexicalSelection.prod-
|
|
10
|
-
import { J as
|
|
11
|
-
import { a as We, U as $e, m as le, g as Jt, f as qt } from "../../LexicalLink.prod-
|
|
12
|
-
import {
|
|
13
|
-
import { a as on, F as sn, M as an } from "../../helpers-
|
|
8
|
+
import { N as Ee, O as we, h as Ht, m as jt } from "../../LexicalClipboard.prod-Dg23ixPD.js";
|
|
9
|
+
import { L as be, $ as Se } from "../../LexicalSelection.prod-CNWFGVlh.js";
|
|
10
|
+
import { J as He, I as je, Z as Wt } from "../../LexicalList.prod-BGzfDPU0.js";
|
|
11
|
+
import { a as We, U as $e, m as le, g as Jt, f as qt } from "../../LexicalLink.prod-C1RDJLfo.js";
|
|
12
|
+
import { k as Vt, K as re, r as oe, f as Je, P as Xt, s as _e, c as Yt, S as Zt, X as Gt, B as Qt, H as en, C as xe, i as tn, V as nn, n as rn } from "../../LexicalTable.prod-D-4NN9o5.js";
|
|
13
|
+
import { a as on, F as sn, M as an } from "../../helpers-BVGma1u6.js";
|
|
14
14
|
import { c as ln } from "../../clsx-OuTLNxxd.js";
|
|
15
15
|
import { exportMap as cn, isStartingWithHtmlTag as dn, mergeBoldStrongTags as un } from "./helpers.js";
|
|
16
16
|
import { s as M } from "../../RteEditor.module-oFMKEW6f.js";
|
|
17
17
|
import { ToolBarPlugin as fn } from "./Plugins/ToolbarPlugin/ToolbarPlugin.js";
|
|
18
18
|
import { useTranslation as mn } from "./hooks/useTranslation.js";
|
|
19
|
-
import "../../TablePlugin-
|
|
19
|
+
import "../../TablePlugin-DDlrU-7e.js";
|
|
20
20
|
import "./Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
|
|
21
21
|
import "./hooks/components/Flyout.js";
|
|
22
22
|
import "../Buttons/Button.js";
|
|
@@ -39,10 +39,10 @@ import { UvaTheme as gn } from "./UvaTheme/UvaTheme.js";
|
|
|
39
39
|
import { EditorHeader as hn } from "./EditorHeader/EditorHeader.js";
|
|
40
40
|
import { useLanguage as vn, LanguageProvider as Cn } from "./Providers/LanguageProvider.js";
|
|
41
41
|
import { PasteHandlerPlugin as yn } from "./Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js";
|
|
42
|
-
const qe = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, En = qe ?
|
|
42
|
+
const qe = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, En = qe ? H : x, G = { tag: "history-merge" };
|
|
43
43
|
function wn({ initialConfig: t, children: e }) {
|
|
44
44
|
const n = q(() => {
|
|
45
|
-
const { theme: o, namespace: i, nodes: r, onError: s, editorState: a, html: l } = t, c = Ge(null, o), d =
|
|
45
|
+
const { theme: o, namespace: i, nodes: r, onError: s, editorState: a, html: l } = t, c = Ge(null, o), d = Fe({ editable: t.editable, html: l, namespace: i, nodes: r, onError: (f) => s(f, d), theme: o });
|
|
46
46
|
return function(f, u) {
|
|
47
47
|
if (u !== null) {
|
|
48
48
|
if (u === void 0) f.update(() => {
|
|
@@ -76,13 +76,13 @@ function wn({ initialConfig: t, children: e }) {
|
|
|
76
76
|
i.setEditable(o === void 0 || o);
|
|
77
77
|
}, []), y(Ze.Provider, { value: n, children: e });
|
|
78
78
|
}
|
|
79
|
-
const bn = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ?
|
|
79
|
+
const bn = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? H : x;
|
|
80
80
|
function Sn(t) {
|
|
81
81
|
return { initialValueFn: () => t.isEditable(), subscribe: (e) => t.registerEditableListener(e) };
|
|
82
82
|
}
|
|
83
83
|
function $n() {
|
|
84
84
|
return function(t) {
|
|
85
|
-
const [e] = R(), n = q(() => t(e), [e, t]), [o, i] =
|
|
85
|
+
const [e] = R(), n = q(() => t(e), [e, t]), [o, i] = O(() => n.initialValueFn()), r = Be(o);
|
|
86
86
|
return bn(() => {
|
|
87
87
|
const { initialValueFn: s, subscribe: a } = n, l = s();
|
|
88
88
|
return r.current !== l && (r.current = l, i(l)), a((c) => {
|
|
@@ -182,10 +182,10 @@ function Ne(t, e) {
|
|
|
182
182
|
}
|
|
183
183
|
return null;
|
|
184
184
|
}
|
|
185
|
-
const
|
|
185
|
+
const j = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, Dn = j && "documentMode" in document ? document.documentMode : null, Pn = !(!j || !("InputEvent" in window) || Dn) && "getTargetRanges" in new window.InputEvent("input"), Rn = j && /Version\/[\d.]+.*Safari/.test(navigator.userAgent), Le = j && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, Tn = j && /^(?=.*Chrome).*/i.test(navigator.userAgent), Mn = j && /AppleWebKit\/[\d.]+/.test(navigator.userAgent) && !Tn, De = Dt();
|
|
186
186
|
function Q(t) {
|
|
187
187
|
let e = null;
|
|
188
|
-
if (
|
|
188
|
+
if (A(t, DragEvent) ? e = t.dataTransfer : A(t, ClipboardEvent) && (e = t.clipboardData), e === null) return [!1, [], !1];
|
|
189
189
|
const n = e.types, o = n.includes("Files"), i = n.includes("text/html") || n.includes("text/plain");
|
|
190
190
|
return [o, Array.from(e.files), i];
|
|
191
191
|
}
|
|
@@ -207,10 +207,10 @@ function ee(t) {
|
|
|
207
207
|
const e = ie(t);
|
|
208
208
|
return W(e);
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function On(t) {
|
|
211
211
|
return B(t.registerCommand(Lt, (e) => {
|
|
212
212
|
const n = v();
|
|
213
|
-
return !!
|
|
213
|
+
return !!K(n) && (n.clear(), !0);
|
|
214
214
|
}, 0), t.registerCommand(se, (e) => {
|
|
215
215
|
const n = v();
|
|
216
216
|
return !!C(n) && (n.deleteCharacter(e), !0);
|
|
@@ -241,7 +241,7 @@ function Fn(t) {
|
|
|
241
241
|
return !!C(n) && (n.formatText(e), !0);
|
|
242
242
|
}, g), t.registerCommand(St, (e) => {
|
|
243
243
|
const n = v();
|
|
244
|
-
if (!C(n) && !
|
|
244
|
+
if (!C(n) && !K(n)) return !1;
|
|
245
245
|
const o = n.getNodes();
|
|
246
246
|
for (const i of o) {
|
|
247
247
|
const r = pe(i, (s) => J(s) && !s.isInline());
|
|
@@ -262,7 +262,7 @@ function Fn(t) {
|
|
|
262
262
|
n > 0 && e.setIndent(n - 1);
|
|
263
263
|
}), g), t.registerCommand(Ct, (e) => {
|
|
264
264
|
const n = v();
|
|
265
|
-
if (
|
|
265
|
+
if (K(n) && !ee(e.target)) {
|
|
266
266
|
const o = n.getNodes();
|
|
267
267
|
if (o.length > 0) return o[0].selectPrevious(), !0;
|
|
268
268
|
} else if (C(n)) {
|
|
@@ -272,7 +272,7 @@ function Fn(t) {
|
|
|
272
272
|
return !1;
|
|
273
273
|
}, g), t.registerCommand(vt, (e) => {
|
|
274
274
|
const n = v();
|
|
275
|
-
if (
|
|
275
|
+
if (K(n)) {
|
|
276
276
|
const o = n.getNodes();
|
|
277
277
|
if (o.length > 0) return o[0].selectNext(0, 0), !0;
|
|
278
278
|
} else if (C(n)) {
|
|
@@ -286,7 +286,7 @@ function Fn(t) {
|
|
|
286
286
|
return !1;
|
|
287
287
|
}, g), t.registerCommand(ht, (e) => {
|
|
288
288
|
const n = v();
|
|
289
|
-
if (
|
|
289
|
+
if (K(n)) {
|
|
290
290
|
const o = n.getNodes();
|
|
291
291
|
if (o.length > 0) return e.preventDefault(), o[0].selectPrevious(), !0;
|
|
292
292
|
}
|
|
@@ -298,7 +298,7 @@ function Fn(t) {
|
|
|
298
298
|
return !1;
|
|
299
299
|
}, g), t.registerCommand(gt, (e) => {
|
|
300
300
|
const n = v();
|
|
301
|
-
if (
|
|
301
|
+
if (K(n) && !ee(e.target)) {
|
|
302
302
|
const i = n.getNodes();
|
|
303
303
|
if (i.length > 0) return e.preventDefault(), i[0].selectNext(0, 0), !0;
|
|
304
304
|
}
|
|
@@ -310,7 +310,7 @@ function Fn(t) {
|
|
|
310
310
|
const n = v();
|
|
311
311
|
if (!C(n)) return !1;
|
|
312
312
|
const { anchor: o } = n, i = o.getNode();
|
|
313
|
-
return n.isCollapsed() && o.offset === 0 && !ze(i) &&
|
|
313
|
+
return n.isCollapsed() && o.offset === 0 && !ze(i) && At(i).getIndent() > 0 ? (e.preventDefault(), t.dispatchCommand(ve, void 0)) : (!Le || navigator.language !== "ko-KR") && (e.preventDefault(), t.dispatchCommand(se, !0));
|
|
314
314
|
}, g), t.registerCommand(mt, (e) => {
|
|
315
315
|
if (ee(e.target)) return !1;
|
|
316
316
|
const n = v();
|
|
@@ -360,28 +360,28 @@ function Fn(t) {
|
|
|
360
360
|
W(r) && e.preventDefault();
|
|
361
361
|
}
|
|
362
362
|
return !0;
|
|
363
|
-
}, g), t.registerCommand(rt, () => (ot(), !0), g), t.registerCommand(nt, (e) => (we(t,
|
|
364
|
-
await we(o,
|
|
363
|
+
}, g), t.registerCommand(rt, () => (ot(), !0), g), t.registerCommand(nt, (e) => (we(t, A(e, ClipboardEvent) ? e : null), !0), g), t.registerCommand(tt, (e) => (async function(n, o) {
|
|
364
|
+
await we(o, A(n, ClipboardEvent) ? n : null), o.update(() => {
|
|
365
365
|
const i = v();
|
|
366
|
-
C(i) ? i.removeText() :
|
|
366
|
+
C(i) ? i.removeText() : K(i) && i.getNodes().forEach((r) => r.remove());
|
|
367
367
|
});
|
|
368
|
-
}(e, t), !0), g), t.registerCommand(
|
|
368
|
+
}(e, t), !0), g), t.registerCommand(Ae, (e) => {
|
|
369
369
|
const [, n, o] = Q(e);
|
|
370
370
|
return n.length > 0 && !o ? (t.dispatchCommand(De, n), !0) : et(e.target) ? !1 : v() !== null && (function(i, r) {
|
|
371
371
|
i.preventDefault(), r.update(() => {
|
|
372
|
-
const s = v(), a =
|
|
372
|
+
const s = v(), a = A(i, InputEvent) || A(i, KeyboardEvent) ? null : i.clipboardData;
|
|
373
373
|
a != null && s !== null && Ee(a, s, r);
|
|
374
374
|
}, { tag: "paste" });
|
|
375
375
|
}(e, t), !0);
|
|
376
376
|
}, g));
|
|
377
377
|
}
|
|
378
|
-
const ce = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ?
|
|
378
|
+
const ce = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? H : x;
|
|
379
379
|
function Re(t) {
|
|
380
380
|
return t.getEditorState().read(Ve(t.isComposing()));
|
|
381
381
|
}
|
|
382
|
-
function
|
|
382
|
+
function In({ contentEditable: t, placeholder: e = null, ErrorBoundary: n }) {
|
|
383
383
|
const [o] = R(), i = function(r, s) {
|
|
384
|
-
const [a, l] =
|
|
384
|
+
const [a, l] = O(() => r.getDecorators());
|
|
385
385
|
return ce(() => r.registerDecoratorListener((c) => {
|
|
386
386
|
ke.flushSync(() => {
|
|
387
387
|
l(c);
|
|
@@ -391,19 +391,19 @@ function On({ contentEditable: t, placeholder: e = null, ErrorBoundary: n }) {
|
|
|
391
391
|
}, [r]), q(() => {
|
|
392
392
|
const c = [], d = Object.keys(a);
|
|
393
393
|
for (let f = 0; f < d.length; f++) {
|
|
394
|
-
const u = d[f], m = y(s, { onError: (E) => r._onError(E), children: y(
|
|
394
|
+
const u = d[f], m = y(s, { onError: (E) => r._onError(E), children: y(Kt, { fallback: null, children: a[u] }) }), p = r.getElementByKey(u);
|
|
395
395
|
p !== null && c.push(ke.createPortal(m, p, u));
|
|
396
396
|
}
|
|
397
397
|
return c;
|
|
398
398
|
}, [s, a, r]);
|
|
399
399
|
}(o, n);
|
|
400
400
|
return function(r) {
|
|
401
|
-
ce(() => B(
|
|
402
|
-
}(o),
|
|
401
|
+
ce(() => B(On(r), Ln(r)), [r]);
|
|
402
|
+
}(o), F(Ke, { children: [t, y(Kn, { content: e }), i] });
|
|
403
403
|
}
|
|
404
|
-
function
|
|
404
|
+
function Kn({ content: t }) {
|
|
405
405
|
const [e] = R(), n = function(i) {
|
|
406
|
-
const [r, s] =
|
|
406
|
+
const [r, s] = O(() => Re(i));
|
|
407
407
|
return ce(() => {
|
|
408
408
|
function a() {
|
|
409
409
|
const l = Re(i);
|
|
@@ -418,9 +418,9 @@ function In({ content: t }) {
|
|
|
418
418
|
}(e), o = $n();
|
|
419
419
|
return n ? typeof t == "function" ? t(o) : t : null;
|
|
420
420
|
}
|
|
421
|
-
const Xe = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ?
|
|
422
|
-
function
|
|
423
|
-
const [_, T] =
|
|
421
|
+
const Xe = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? H : x;
|
|
422
|
+
function Fn({ editor: t, ariaActiveDescendant: e, ariaAutoComplete: n, ariaControls: o, ariaDescribedBy: i, ariaErrorMessage: r, ariaExpanded: s, ariaInvalid: a, ariaLabel: l, ariaLabelledBy: c, ariaMultiline: d, ariaOwns: f, ariaRequired: u, autoCapitalize: m, className: p, id: E, role: w = "textbox", spellCheck: h = !0, style: b, tabIndex: $, "data-testid": k, ...S }, N) {
|
|
423
|
+
const [_, T] = O(t.isEditable()), I = Ft((L) => {
|
|
424
424
|
L && L.ownerDocument && L.ownerDocument.defaultView ? t.setRootElement(L) : t.setRootElement(null);
|
|
425
425
|
}, [t]), U = q(() => /* @__PURE__ */ function(...L) {
|
|
426
426
|
return (V) => {
|
|
@@ -428,23 +428,23 @@ function An({ editor: t, ariaActiveDescendant: e, ariaAutoComplete: n, ariaContr
|
|
|
428
428
|
typeof X == "function" ? X(V) : X != null && (X.current = V);
|
|
429
429
|
});
|
|
430
430
|
};
|
|
431
|
-
}(N,
|
|
431
|
+
}(N, I), [I, N]);
|
|
432
432
|
return Xe(() => (T(t.isEditable()), t.registerEditableListener((L) => {
|
|
433
433
|
T(L);
|
|
434
434
|
})), [t]), y("div", { "aria-activedescendant": _ ? e : void 0, "aria-autocomplete": _ ? n : "none", "aria-controls": _ ? o : void 0, "aria-describedby": i, ...r != null ? { "aria-errormessage": r } : {}, "aria-expanded": _ && w === "combobox" ? !!s : void 0, ...a != null ? { "aria-invalid": a } : {}, "aria-label": l, "aria-labelledby": c, "aria-multiline": d, "aria-owns": _ ? f : void 0, "aria-readonly": !_ || void 0, "aria-required": u, autoCapitalize: m, className: p, contentEditable: _, "data-testid": k, id: E, ref: U, role: _ ? w : void 0, spellCheck: h, style: b, tabIndex: $, ...S });
|
|
435
435
|
}
|
|
436
|
-
const
|
|
436
|
+
const An = Ue(Fn);
|
|
437
437
|
function Te(t) {
|
|
438
438
|
return t.getEditorState().read(Ve(t.isComposing()));
|
|
439
439
|
}
|
|
440
440
|
const zn = Ue(Bn);
|
|
441
441
|
function Bn(t, e) {
|
|
442
442
|
const { placeholder: n, ...o } = t, [i] = R();
|
|
443
|
-
return
|
|
443
|
+
return F(Ke, { children: [y(An, { editor: i, ...o, ref: e }), n != null && y(Un, { editor: i, content: n })] });
|
|
444
444
|
}
|
|
445
445
|
function Un({ content: t, editor: e }) {
|
|
446
446
|
const n = function(s) {
|
|
447
|
-
const [a, l] =
|
|
447
|
+
const [a, l] = O(() => Te(s));
|
|
448
448
|
return Xe(() => {
|
|
449
449
|
function c() {
|
|
450
450
|
const d = Te(s);
|
|
@@ -456,8 +456,8 @@ function Un({ content: t, editor: e }) {
|
|
|
456
456
|
c();
|
|
457
457
|
}));
|
|
458
458
|
}, [s]), a;
|
|
459
|
-
}(e), [o, i] =
|
|
460
|
-
if (
|
|
459
|
+
}(e), [o, i] = O(e.isEditable());
|
|
460
|
+
if (H(() => (i(e.isEditable()), e.registerEditableListener((s) => {
|
|
461
461
|
i(s);
|
|
462
462
|
})), [e]), !n) return null;
|
|
463
463
|
let r = null;
|
|
@@ -468,7 +468,7 @@ function de(t, e) {
|
|
|
468
468
|
return n.__proto__ = o, n;
|
|
469
469
|
}, de(t, e);
|
|
470
470
|
}
|
|
471
|
-
var Me = { error: null },
|
|
471
|
+
var Me = { error: null }, Hn = function(t) {
|
|
472
472
|
var e, n;
|
|
473
473
|
function o() {
|
|
474
474
|
for (var r, s = arguments.length, a = new Array(s), l = 0; l < s; l++) a[l] = arguments[l];
|
|
@@ -503,10 +503,10 @@ var Me = { error: null }, jn = function(t) {
|
|
|
503
503
|
return this.props.children;
|
|
504
504
|
}, o;
|
|
505
505
|
}(ae.Component);
|
|
506
|
-
function
|
|
507
|
-
return y(
|
|
506
|
+
function jn({ children: t, onError: e }) {
|
|
507
|
+
return y(Hn, { 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 Wn = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ?
|
|
509
|
+
const Wn = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? H : x;
|
|
510
510
|
function Jn({ ignoreHistoryMergeTagChange: t = !0, ignoreSelectionChange: e = !1, onChange: n }) {
|
|
511
511
|
const [o] = R();
|
|
512
512
|
return Wn(() => {
|
|
@@ -518,7 +518,7 @@ function Jn({ ignoreHistoryMergeTagChange: t = !0, ignoreSelectionChange: e = !1
|
|
|
518
518
|
function qn() {
|
|
519
519
|
const [t] = R();
|
|
520
520
|
return x(() => {
|
|
521
|
-
if (!t.hasNodes([
|
|
521
|
+
if (!t.hasNodes([He, je])) throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor");
|
|
522
522
|
}, [t]), function(e) {
|
|
523
523
|
x(() => Wt(e), [e]);
|
|
524
524
|
}(t), null;
|
|
@@ -534,9 +534,9 @@ function Vn({ validateUrl: t, attributes: e }) {
|
|
|
534
534
|
const { url: i, target: r, rel: s, title: a } = o;
|
|
535
535
|
return le(i, { ...e, rel: s, target: r, title: a }), !0;
|
|
536
536
|
}
|
|
537
|
-
}, ye), t !== void 0 ? n.registerCommand(
|
|
537
|
+
}, ye), t !== void 0 ? n.registerCommand(Ae, (o) => {
|
|
538
538
|
const i = v();
|
|
539
|
-
if (!C(i) || i.isCollapsed() || !
|
|
539
|
+
if (!C(i) || i.isCollapsed() || !A(o, ClipboardEvent)) return !1;
|
|
540
540
|
const r = o;
|
|
541
541
|
if (r.clipboardData === null) return !1;
|
|
542
542
|
const s = r.clipboardData.getData("text");
|
|
@@ -584,7 +584,7 @@ function Xn({ newTab: t = !0, disabled: e = !1 }) {
|
|
|
584
584
|
});
|
|
585
585
|
}, [n, t, e]), null;
|
|
586
586
|
}
|
|
587
|
-
const te = 0, ue = 1, fe = 2, D = 0, Yn = 1,
|
|
587
|
+
const te = 0, ue = 1, fe = 2, D = 0, Yn = 1, Oe = 2, Zn = 3, Gn = 4;
|
|
588
588
|
function Qn(t, e, n, o, i) {
|
|
589
589
|
if (t === null || n.size === 0 && o.size === 0 && !i) return D;
|
|
590
590
|
const r = e._selection, s = t._selection;
|
|
@@ -606,7 +606,7 @@ function Qn(t, e, n, o, i) {
|
|
|
606
606
|
if (a.length === 0) return D;
|
|
607
607
|
if (a.length > 1) {
|
|
608
608
|
const h = e._nodeMap, b = h.get(r.anchor.key), $ = h.get(s.anchor.key);
|
|
609
|
-
return b && $ && !t._nodeMap.has(b.__key) && P(b) && b.__text.length === 1 && r.anchor.offset === 1 ?
|
|
609
|
+
return b && $ && !t._nodeMap.has(b.__key) && P(b) && b.__text.length === 1 && r.anchor.offset === 1 ? Oe : D;
|
|
610
610
|
}
|
|
611
611
|
const l = a[0], c = t._nodeMap.get(l.__key);
|
|
612
612
|
if (!P(c) || !P(l) || c.__mode !== l.__mode) return D;
|
|
@@ -615,7 +615,7 @@ function Qn(t, e, n, o, i) {
|
|
|
615
615
|
const u = r.anchor, m = s.anchor;
|
|
616
616
|
if (u.key !== m.key || u.type !== "text") return D;
|
|
617
617
|
const p = u.offset, E = m.offset, w = f.length - d.length;
|
|
618
|
-
return w === 1 && E === p - 1 ?
|
|
618
|
+
return w === 1 && E === p - 1 ? Oe : w === -1 && E === p + 1 ? Zn : w === -1 && E === p ? Gn : D;
|
|
619
619
|
}
|
|
620
620
|
function er(t, e) {
|
|
621
621
|
let n = Date.now(), o = D;
|
|
@@ -635,18 +635,18 @@ function er(t, e) {
|
|
|
635
635
|
return n = d, o = f, u;
|
|
636
636
|
};
|
|
637
637
|
}
|
|
638
|
-
function
|
|
638
|
+
function Ie(t) {
|
|
639
639
|
t.undoStack = [], t.redoStack = [], t.current = null;
|
|
640
640
|
}
|
|
641
641
|
function tr(t, e, n) {
|
|
642
642
|
const o = er(t, n);
|
|
643
|
-
return B(t.registerCommand(
|
|
643
|
+
return B(t.registerCommand(It, () => (function(r, 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
647
|
c !== null && (a.push(c), r.dispatchCommand(Y, !0)), l.length === 0 && r.dispatchCommand(Z, !1), s.current = d || null, d && d.editor.setEditorState(d.editorState, { tag: "historic" });
|
|
648
648
|
}
|
|
649
|
-
}(t, e), !0), g), t.registerCommand(
|
|
649
|
+
}(t, e), !0), g), t.registerCommand(Ot, () => (function(r, s) {
|
|
650
650
|
const a = s.redoStack, l = s.undoStack;
|
|
651
651
|
if (a.length !== 0) {
|
|
652
652
|
const c = s.current;
|
|
@@ -654,7 +654,7 @@ function tr(t, e, n) {
|
|
|
654
654
|
const d = a.pop();
|
|
655
655
|
a.length === 0 && r.dispatchCommand(Y, !1), s.current = d || null, d && d.editor.setEditorState(d.editorState, { tag: "historic" });
|
|
656
656
|
}
|
|
657
|
-
}(t, e), !0), g), t.registerCommand(Mt, () => (
|
|
657
|
+
}(t, e), !0), g), t.registerCommand(Mt, () => (Ie(e), !1), g), t.registerCommand(Tt, () => (Ie(e), t.dispatchCommand(Y, !1), t.dispatchCommand(Z, !1), !0), g), t.registerUpdateListener(({ editorState: r, prevEditorState: s, dirtyLeaves: a, dirtyElements: l, tags: c }) => {
|
|
658
658
|
const d = e.current, f = e.redoStack, u = e.undoStack, m = d === null ? null : d.editorState;
|
|
659
659
|
if (d !== null && r === m) return;
|
|
660
660
|
const p = o(s, r, d, a, l, c);
|
|
@@ -762,7 +762,7 @@ const Ye = 200, sr = ({
|
|
|
762
762
|
maxWords: l = Ye,
|
|
763
763
|
onChange: c
|
|
764
764
|
}) => {
|
|
765
|
-
const { switchLanguage: d } = vn(), f = mn(), [u] =
|
|
765
|
+
const { switchLanguage: d } = vn(), f = mn(), [u] = O(() => Fe()), [m, p] = O(0), [E, w] = O(0), h = Be(null), b = {
|
|
766
766
|
html: {
|
|
767
767
|
export: cn
|
|
768
768
|
},
|
|
@@ -772,24 +772,24 @@ const Ye = 200, sr = ({
|
|
|
772
772
|
onError(S) {
|
|
773
773
|
throw S;
|
|
774
774
|
},
|
|
775
|
-
nodes: [
|
|
775
|
+
nodes: [He, je, We, qt, oe, Je, re],
|
|
776
776
|
editorState: (S) => {
|
|
777
|
-
const _ = new DOMParser().parseFromString(e, "text/html"), T =
|
|
778
|
-
if (
|
|
777
|
+
const _ = new DOMParser().parseFromString(e, "text/html"), T = Ht(S, _), I = z();
|
|
778
|
+
if (I.clear(), dn(e))
|
|
779
779
|
T.forEach((U) => {
|
|
780
|
-
|
|
780
|
+
I.append(U);
|
|
781
781
|
});
|
|
782
782
|
else {
|
|
783
783
|
const U = me();
|
|
784
784
|
T.forEach((L, V) => {
|
|
785
|
-
V === 0 ? (U.append(L),
|
|
785
|
+
V === 0 ? (U.append(L), I.append(U)) : I.append(L);
|
|
786
786
|
});
|
|
787
787
|
}
|
|
788
788
|
}
|
|
789
789
|
}, $ = (S) => S.trim().length === 0 ? 0 : S.split(" ").length, k = (S, N) => {
|
|
790
790
|
S.read(() => {
|
|
791
791
|
let _ = "";
|
|
792
|
-
p($(z().getTextContent().replace(/\s+/g, " ").trim())), _ = un(
|
|
792
|
+
p($(z().getTextContent().replace(/\s+/g, " ").trim())), _ = un(jt(N)), c(_);
|
|
793
793
|
});
|
|
794
794
|
};
|
|
795
795
|
return x(() => {
|
|
@@ -797,20 +797,20 @@ const Ye = 200, sr = ({
|
|
|
797
797
|
}, [t, d]), x(() => {
|
|
798
798
|
const S = e.replace(/<br\s*\/?>| /gi, " ").replace(/<\/?[^>]+(>|$)|&[a-z]+;/g, "").replace(/\s+/g, " ").trim();
|
|
799
799
|
p($(S));
|
|
800
|
-
}, []), /* @__PURE__ */
|
|
801
|
-
/* @__PURE__ */
|
|
800
|
+
}, []), /* @__PURE__ */ F("div", { className: M.editor__container, children: [
|
|
801
|
+
/* @__PURE__ */ F("div", { className: M.editor__header, children: [
|
|
802
802
|
/* @__PURE__ */ y(hn, { label: o, info: i, required: r }),
|
|
803
|
-
/* @__PURE__ */
|
|
803
|
+
/* @__PURE__ */ F("div", { className: M["editor__header-word-count"], children: [
|
|
804
804
|
/* @__PURE__ */ y("span", { className: ln({ [M["editor__header-word-count--alert"]]: m > l }), children: m }),
|
|
805
805
|
" / ",
|
|
806
806
|
l
|
|
807
807
|
] })
|
|
808
808
|
] }),
|
|
809
|
-
/* @__PURE__ */ y("div", { className: M.editor, children: /* @__PURE__ */
|
|
809
|
+
/* @__PURE__ */ y("div", { className: M.editor, children: /* @__PURE__ */ F(wn, { initialConfig: b, children: [
|
|
810
810
|
/* @__PURE__ */ y(fn, { editorScrollPosition: E }),
|
|
811
|
-
/* @__PURE__ */
|
|
811
|
+
/* @__PURE__ */ F("div", { className: M["editor__field-wrapper"], children: [
|
|
812
812
|
/* @__PURE__ */ y(
|
|
813
|
-
|
|
813
|
+
In,
|
|
814
814
|
{
|
|
815
815
|
contentEditable: /* @__PURE__ */ y(
|
|
816
816
|
zn,
|
|
@@ -828,7 +828,7 @@ const Ye = 200, sr = ({
|
|
|
828
828
|
}
|
|
829
829
|
),
|
|
830
830
|
placeholder: /* @__PURE__ */ y("div", { className: M.editor__placeholder, children: n }),
|
|
831
|
-
ErrorBoundary:
|
|
831
|
+
ErrorBoundary: jn
|
|
832
832
|
}
|
|
833
833
|
),
|
|
834
834
|
/* @__PURE__ */ y(ir, {}),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as s } from "../../LexicalLink.prod-
|
|
2
|
-
import { J as n, I as i } from "../../LexicalList.prod-
|
|
3
|
-
import { Z as a, _ as c } from "../../Lexical.prod-
|
|
4
|
-
import {
|
|
1
|
+
import { a as s } from "../../LexicalLink.prod-C1RDJLfo.js";
|
|
2
|
+
import { J as n, I as i } from "../../LexicalList.prod-BGzfDPU0.js";
|
|
3
|
+
import { Z as a, _ as c } from "../../Lexical.prod-Bzma_w4s.js";
|
|
4
|
+
import { K as m, f as g, r as u } from "../../LexicalTable.prod-D-4NN9o5.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()), A = (e) => {
|
|
6
6
|
let r = e.replace(/<b><strong>/gi, "<strong>");
|
|
7
7
|
return r = r.replace(/<\/strong><\/b>/gi, "</strong>"), r;
|
package/dist/components/index.js
CHANGED
|
@@ -31,7 +31,7 @@ import { Label as mo } from "./Label/Label.js";
|
|
|
31
31
|
import { MenuLink as io } from "./MenuLink/MenuLink.js";
|
|
32
32
|
import { MetaDataList as no } from "./MetaDataList/MetaDataList.js";
|
|
33
33
|
import { ModalDialog as co } from "./ModalDialog/ModalDialog.js";
|
|
34
|
-
import { M as so } from "../TablePlugin-
|
|
34
|
+
import { M as so } from "../TablePlugin-DDlrU-7e.js";
|
|
35
35
|
import { OverlayCloseButton as So } from "./OverlayCloseButton/OverlayCloseButton.js";
|
|
36
36
|
import { PageOverlay as ko } from "./PageOverlay/PageOverlay.js";
|
|
37
37
|
import { Periods as Fo } from "./Periods/Periods.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { f as F, U as G, p as x, g as $, d as M } from "./LexicalLink.prod-
|
|
1
|
+
import { f as F, U as G, p as x, g as $, d as M } from "./LexicalLink.prod-C1RDJLfo.js";
|
|
2
2
|
import { u as X } from "./LexicalComposerContext.prod-Dyvim1tK.js";
|
|
3
|
-
import { N as K } from "./LexicalUtils.prod-
|
|
4
|
-
import { R as S, a as E, K as j, _ as H, h as T, d as C, an as B, b as N, G as P } from "./Lexical.prod-
|
|
3
|
+
import { N as K } from "./LexicalUtils.prod-Cg2siy-c.js";
|
|
4
|
+
import { R as S, a as E, K as j, _ as H, h as T, d as C, an as B, b as N, G as P } from "./Lexical.prod-Bzma_w4s.js";
|
|
5
5
|
import { useEffect as W } from "react";
|
|
6
6
|
function q(t) {
|
|
7
7
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
@@ -165,4 +165,4 @@ export {
|
|
|
165
165
|
pt as e,
|
|
166
166
|
ft as v
|
|
167
167
|
};
|
|
168
|
-
//# sourceMappingURL=helpers-
|
|
168
|
+
//# sourceMappingURL=helpers-BVGma1u6.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers-CgzuKnuq.js","sources":["../node_modules/@lexical/react/LexicalAutoLinkPlugin.prod.mjs","../src/components/RteEditor/Plugins/LinkPlugin/helpers.ts"],"sourcesContent":["/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport{AutoLinkNode as t,$isAutoLinkNode as e,$isLinkNode as n,TOGGLE_LINK_COMMAND as r,$createAutoLinkNode as l}from\"@lexical/link\";import{useLexicalComposerContext as o}from\"@lexical/react/LexicalComposerContext\";import{mergeRegister as i}from\"@lexical/utils\";import{TextNode as s,$getSelection as u,$isRangeSelection as g,COMMAND_PRIORITY_LOW as c,$isTextNode as a,$isElementNode as f,$isLineBreakNode as h,$createTextNode as x,$isNodeSelection as p}from\"lexical\";import{useEffect as d}from\"react\";function m(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,\"default\")?t.default:t}var T=m((function(t){const e=new URLSearchParams;e.append(\"code\",t);for(let t=1;t<arguments.length;t++)e.append(\"v\",arguments[t]);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.`)}));function C(t,e=(t=>t)){return n=>{const r=t.exec(n);return null===r?null:{index:r.index,length:r[0].length,text:r[0],url:e(r[0])}}}function b(t,e){for(let n=0;n<e.length;n++){const r=e[n](t);if(r)return r}return null}const v=/[.,;\\s]/;function S(t){return v.test(t)}function U(t){return S(t[t.length-1])}function L(t){return S(t[0])}function R(t){let e=t.getPreviousSibling();return f(e)&&(e=e.getLastDescendant()),null===e||h(e)||a(e)&&U(e.getTextContent())}function k(t){let e=t.getNextSibling();return f(e)&&(e=e.getFirstDescendant()),null===e||h(e)||a(e)&&L(e.getTextContent())}function y(t,e,n,r){if(!(t>0?S(n[t-1]):R(r[0])))return!1;return e<n.length?S(n[e]):k(r[r.length-1])}function D(t,e,n){const r=[],l=[],o=[];let i=0,s=0;const u=[...t];for(;u.length>0;){const t=u[0],g=t.getTextContent().length,c=s;s+g<=e?(r.push(t),i+=g):c>=n?o.push(t):l.push(t),s+=g,u.shift()}return[i,r,l,o]}function N(t,e,n,r){const o=l(r.url,r.attributes);if(1===t.length){let l,i=t[0];0===e?[l,i]=i.splitText(n):[,l,i]=i.splitText(e,n);const s=x(r.text);return s.setFormat(l.getFormat()),s.setDetail(l.getDetail()),s.setStyle(l.getStyle()),o.append(s),l.replace(o),i}if(t.length>1){const r=t[0];let l,i=r.getTextContent().length;0===e?l=r:[,l]=r.splitText(e);const s=[];let c;for(let e=1;e<t.length;e++){const r=t[e],l=r.getTextContent().length,o=i;if(o<n)if(i+l<=n)s.push(r);else{const[t,e]=r.splitText(n-o);s.push(t),c=e}i+=l}const f=u(),h=f?f.getNodes().find(a):void 0,d=x(l.getTextContent());return d.setFormat(l.getFormat()),d.setDetail(l.getDetail()),d.setStyle(l.getStyle()),o.append(d,...s),h&&h===l&&(g(f)?d.select(f.anchor.offset,f.focus.offset):p(f)&&d.select(0,d.getTextContent().length)),l.replace(o),c}}function P(t,e,n){const r=t.getChildren(),l=r.length;for(let e=0;e<l;e++){const l=r[e];if(!a(l)||!l.isSimpleText())return I(t),void n(null,t.getURL())}const o=t.getTextContent(),i=b(o,e);if(null===i||i.text!==o)return I(t),void n(null,t.getURL());if(!R(t)||!k(t))return I(t),void n(null,t.getURL());const s=t.getURL();if(s!==i.url&&(t.setURL(i.url),n(i.url,s)),i.attributes){const e=t.getRel();e!==i.attributes.rel&&(t.setRel(i.attributes.rel||null),n(i.attributes.rel||null,e));const r=t.getTarget();r!==i.attributes.target&&(t.setTarget(i.attributes.target||null),n(i.attributes.target||null,r))}}function I(t){const e=t.getChildren();for(let n=e.length-1;n>=0;n--)t.insertAfter(e[n]);return t.remove(),e.map((t=>t.getLatest()))}function w(l,o,f){d((()=>{l.hasNodes([t])||T(77);const h=(t,e)=>{f&&f(t,e)};return i(l.registerNodeTransform(s,(t=>{const r=t.getParentOrThrow(),l=t.getPreviousSibling();if(e(r)&&!r.getIsUnlinked())P(r,o,h);else if(!n(r)){if(t.isSimpleText()&&(L(t.getTextContent())||!e(l))){const e=function(t){const e=[t];let n=t.getNextSibling();for(;null!==n&&a(n)&&n.isSimpleText()&&(e.push(n),!/[\\s]/.test(n.getTextContent()));)n=n.getNextSibling();return e}(t);!function(t,e,n){let r=[...t];const l=r.map((t=>t.getTextContent())).join(\"\");let o,i=l,s=0;for(;(o=b(i,e))&&null!==o;){const t=o.index,e=t+o.length;if(y(s+t,s+e,l,r)){const[l,,i,u]=D(r,s+t,s+e),g=N(i,s+t-l,s+e-l,o);r=g?[g,...u]:u,n(o.url,null),s=0}else s+=e;i=i.substring(e)}}(e,o,h)}!function(t,n,r){const l=t.getPreviousSibling(),o=t.getNextSibling(),i=t.getTextContent();var s;!e(l)||l.getIsUnlinked()||L(i)&&(s=i,!(l.isEmailURI()?/^\\.[a-zA-Z]{2,}/.test(s):/^\\.[a-zA-Z0-9]{1,}/.test(s)))||(l.append(t),P(l,n,r),r(null,l.getURL())),!e(o)||o.getIsUnlinked()||U(i)||(I(o),P(o,n,r),r(null,o.getURL()))}(t,o,h)}})),l.registerCommand(r,(t=>{const n=u();if(null!==t||!g(n))return!1;return n.extract().forEach((t=>{const n=t.getParent();if(e(n))return n.setIsUnlinked(!n.getIsUnlinked()),n.markDirty(),!0})),!1}),c))}),[l,o,f])}function F({matchers:t,onChange:e}){const[n]=o();return w(n,t,e),null}export{F as AutoLinkPlugin,C as createLinkMatcherWithRegExp};\n","import { createLinkMatcherWithRegExp } from '@lexical/react/LexicalAutoLinkPlugin';\n\nconst PROTOCOL_REGEX = /^(http|https):\\/\\//;\n\nconst URL_REGEX =\n /(https?:\\/\\/(?:www\\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\\.[^\\s]{2,}|www\\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\\.[^\\s]{2,}|https?:\\/\\/(?:www\\.|(?!www))[a-zA-Z0-9]+\\.[^\\s]{2,}|www\\.[a-zA-Z0-9]+\\.[^\\s]{2,})/;\n\nconst EMAIL_REGEX =\n /(([^<>()[\\]\\\\.,;:\\s@\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))/;\n\nconst URL_REGEX_OR_BLANK =\n /^(https?:\\/\\/(?:www\\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\\.[^\\s]{2,}|www\\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\\.[^\\s]{2,}|https?:\\/\\/(?:www\\.|(?!www))[a-zA-Z0-9]+\\.[^\\s]{2,}|www\\.[a-zA-Z0-9]+\\.[^\\s]{2,})?$/;\n\nexport const validateUrl = (url: string): boolean => {\n return url === 'https://' || URL_REGEX.test(url);\n};\n\nexport const validateUrlWithProtocol = (url: string): boolean => {\n return url === 'https://' || URL_REGEX_OR_BLANK.test(url);\n};\n\nexport const MATCHERS = [\n createLinkMatcherWithRegExp(URL_REGEX, (text: string): string => {\n return !PROTOCOL_REGEX.test(text) ? `//${text}` : text;\n }),\n createLinkMatcherWithRegExp(EMAIL_REGEX, (text) => {\n return `mailto:${text}`;\n }),\n];\n\nexport const ensureHttps = (url: string) => {\n if (!/^https?:\\/\\//i.test(url)) {\n return `https://${url}`;\n }\n return url;\n};\n"],"names":["m","T","t","C","r","b","v","S","U","L","R","f","h","a","k","y","D","l","o","i","s","g","N","x","c","e","u","d","p","P","I","w","n","F","PROTOCOL_REGEX","URL_REGEX","EMAIL_REGEX","URL_REGEX_OR_BLANK","validateUrl","url","validateUrlWithProtocol","MATCHERS","createLinkMatcherWithRegExp","text","ensureHttps"],"mappings":";;;;;AAQqf,SAASA,EAAE,GAAE;AAAC,SAAO,KAAG,EAAE,cAAY,OAAO,UAAU,eAAe,KAAK,GAAE,SAAS,IAAE,EAAE,UAAQ;AAAC;AAAC,IAAIC,IAAED,EAAG,SAAS,GAAE;AAAC,QAAM,IAAE,IAAI;AAAgB,IAAE,OAAO,QAAO,CAAC;AAAE,WAAQE,IAAE,GAAEA,IAAE,UAAU,QAAOA,IAAI,GAAE,OAAO,KAAI,UAAUA,CAAC,CAAC;AAAE,QAAM,MAAM,2BAA2B,CAAC,0CAA0C,CAAC,gHAAgH;AAAC,CAAC;AAAG,SAASC,EAAE,GAAE,IAAG,CAAAD,MAAGA,GAAG;AAAC,SAAO,OAAG;AAAC,UAAME,IAAE,EAAE,KAAK,CAAC;AAAE,WAAcA,MAAP,OAAS,OAAK,EAAC,OAAMA,EAAE,OAAM,QAAOA,EAAE,CAAC,EAAE,QAAO,MAAKA,EAAE,CAAC,GAAE,KAAI,EAAEA,EAAE,CAAC,CAAC,EAAC;AAAA,EAAC;AAAC;AAAC,SAASC,EAAE,GAAE,GAAE;AAAC,WAAQ,IAAE,GAAE,IAAE,EAAE,QAAO,KAAI;AAAC,UAAMD,IAAE,EAAE,CAAC,EAAE,CAAC;AAAE,QAAGA,EAAE,QAAOA;AAAA,EAAC;AAAC,SAAO;AAAI;A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W,CAACQ,MAC9BT,GAAe,KAAKS,CAAI,IAAkBA,IAAd,KAAKA,CAAI,EAC9C;AAAA,EACDD,EAA4BN,IAAa,CAACO,MACjC,UAAUA,CAAI,EACtB;AACH,GAEaC,KAAc,CAACL,MACrB,gBAAgB,KAAKA,CAAG,IAGtBA,IAFE,WAAWA,CAAG;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"helpers-BVGma1u6.js","sources":["../node_modules/@lexical/react/LexicalAutoLinkPlugin.prod.mjs","../src/components/RteEditor/Plugins/LinkPlugin/helpers.ts"],"sourcesContent":["/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport{AutoLinkNode as t,$isAutoLinkNode as e,$isLinkNode as n,TOGGLE_LINK_COMMAND as r,$createAutoLinkNode as l}from\"@lexical/link\";import{useLexicalComposerContext as o}from\"@lexical/react/LexicalComposerContext\";import{mergeRegister as i}from\"@lexical/utils\";import{TextNode as s,$getSelection as u,$isRangeSelection as g,COMMAND_PRIORITY_LOW as c,$isTextNode as a,$isElementNode as f,$isLineBreakNode as h,$createTextNode as x,$isNodeSelection as p}from\"lexical\";import{useEffect as d}from\"react\";function m(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,\"default\")?t.default:t}var T=m((function(t){const e=new URLSearchParams;e.append(\"code\",t);for(let t=1;t<arguments.length;t++)e.append(\"v\",arguments[t]);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.`)}));function C(t,e=(t=>t)){return n=>{const r=t.exec(n);return null===r?null:{index:r.index,length:r[0].length,text:r[0],url:e(r[0])}}}function b(t,e){for(let n=0;n<e.length;n++){const r=e[n](t);if(r)return r}return null}const v=/[.,;\\s]/;function S(t){return v.test(t)}function U(t){return S(t[t.length-1])}function L(t){return S(t[0])}function R(t){let e=t.getPreviousSibling();return f(e)&&(e=e.getLastDescendant()),null===e||h(e)||a(e)&&U(e.getTextContent())}function k(t){let e=t.getNextSibling();return f(e)&&(e=e.getFirstDescendant()),null===e||h(e)||a(e)&&L(e.getTextContent())}function y(t,e,n,r){if(!(t>0?S(n[t-1]):R(r[0])))return!1;return e<n.length?S(n[e]):k(r[r.length-1])}function D(t,e,n){const r=[],l=[],o=[];let i=0,s=0;const u=[...t];for(;u.length>0;){const t=u[0],g=t.getTextContent().length,c=s;s+g<=e?(r.push(t),i+=g):c>=n?o.push(t):l.push(t),s+=g,u.shift()}return[i,r,l,o]}function N(t,e,n,r){const o=l(r.url,r.attributes);if(1===t.length){let l,i=t[0];0===e?[l,i]=i.splitText(n):[,l,i]=i.splitText(e,n);const s=x(r.text);return s.setFormat(l.getFormat()),s.setDetail(l.getDetail()),s.setStyle(l.getStyle()),o.append(s),l.replace(o),i}if(t.length>1){const r=t[0];let l,i=r.getTextContent().length;0===e?l=r:[,l]=r.splitText(e);const s=[];let c;for(let e=1;e<t.length;e++){const r=t[e],l=r.getTextContent().length,o=i;if(o<n)if(i+l<=n)s.push(r);else{const[t,e]=r.splitText(n-o);s.push(t),c=e}i+=l}const f=u(),h=f?f.getNodes().find(a):void 0,d=x(l.getTextContent());return d.setFormat(l.getFormat()),d.setDetail(l.getDetail()),d.setStyle(l.getStyle()),o.append(d,...s),h&&h===l&&(g(f)?d.select(f.anchor.offset,f.focus.offset):p(f)&&d.select(0,d.getTextContent().length)),l.replace(o),c}}function P(t,e,n){const r=t.getChildren(),l=r.length;for(let e=0;e<l;e++){const l=r[e];if(!a(l)||!l.isSimpleText())return I(t),void n(null,t.getURL())}const o=t.getTextContent(),i=b(o,e);if(null===i||i.text!==o)return I(t),void n(null,t.getURL());if(!R(t)||!k(t))return I(t),void n(null,t.getURL());const s=t.getURL();if(s!==i.url&&(t.setURL(i.url),n(i.url,s)),i.attributes){const e=t.getRel();e!==i.attributes.rel&&(t.setRel(i.attributes.rel||null),n(i.attributes.rel||null,e));const r=t.getTarget();r!==i.attributes.target&&(t.setTarget(i.attributes.target||null),n(i.attributes.target||null,r))}}function I(t){const e=t.getChildren();for(let n=e.length-1;n>=0;n--)t.insertAfter(e[n]);return t.remove(),e.map((t=>t.getLatest()))}function w(l,o,f){d((()=>{l.hasNodes([t])||T(77);const h=(t,e)=>{f&&f(t,e)};return i(l.registerNodeTransform(s,(t=>{const r=t.getParentOrThrow(),l=t.getPreviousSibling();if(e(r)&&!r.getIsUnlinked())P(r,o,h);else if(!n(r)){if(t.isSimpleText()&&(L(t.getTextContent())||!e(l))){const e=function(t){const e=[t];let n=t.getNextSibling();for(;null!==n&&a(n)&&n.isSimpleText()&&(e.push(n),!/[\\s]/.test(n.getTextContent()));)n=n.getNextSibling();return e}(t);!function(t,e,n){let r=[...t];const l=r.map((t=>t.getTextContent())).join(\"\");let o,i=l,s=0;for(;(o=b(i,e))&&null!==o;){const t=o.index,e=t+o.length;if(y(s+t,s+e,l,r)){const[l,,i,u]=D(r,s+t,s+e),g=N(i,s+t-l,s+e-l,o);r=g?[g,...u]:u,n(o.url,null),s=0}else s+=e;i=i.substring(e)}}(e,o,h)}!function(t,n,r){const l=t.getPreviousSibling(),o=t.getNextSibling(),i=t.getTextContent();var s;!e(l)||l.getIsUnlinked()||L(i)&&(s=i,!(l.isEmailURI()?/^\\.[a-zA-Z]{2,}/.test(s):/^\\.[a-zA-Z0-9]{1,}/.test(s)))||(l.append(t),P(l,n,r),r(null,l.getURL())),!e(o)||o.getIsUnlinked()||U(i)||(I(o),P(o,n,r),r(null,o.getURL()))}(t,o,h)}})),l.registerCommand(r,(t=>{const n=u();if(null!==t||!g(n))return!1;return n.extract().forEach((t=>{const n=t.getParent();if(e(n))return n.setIsUnlinked(!n.getIsUnlinked()),n.markDirty(),!0})),!1}),c))}),[l,o,f])}function F({matchers:t,onChange:e}){const[n]=o();return w(n,t,e),null}export{F as AutoLinkPlugin,C as createLinkMatcherWithRegExp};\n","import { createLinkMatcherWithRegExp } from '@lexical/react/LexicalAutoLinkPlugin';\n\nconst PROTOCOL_REGEX = /^(http|https):\\/\\//;\n\nconst URL_REGEX =\n /(https?:\\/\\/(?:www\\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\\.[^\\s]{2,}|www\\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\\.[^\\s]{2,}|https?:\\/\\/(?:www\\.|(?!www))[a-zA-Z0-9]+\\.[^\\s]{2,}|www\\.[a-zA-Z0-9]+\\.[^\\s]{2,})/;\n\nconst EMAIL_REGEX =\n /(([^<>()[\\]\\\\.,;:\\s@\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))/;\n\nconst URL_REGEX_OR_BLANK =\n /^(https?:\\/\\/(?:www\\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\\.[^\\s]{2,}|www\\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\\.[^\\s]{2,}|https?:\\/\\/(?:www\\.|(?!www))[a-zA-Z0-9]+\\.[^\\s]{2,}|www\\.[a-zA-Z0-9]+\\.[^\\s]{2,})?$/;\n\nexport const validateUrl = (url: string): boolean => {\n return url === 'https://' || URL_REGEX.test(url);\n};\n\nexport const validateUrlWithProtocol = (url: string): boolean => {\n return url === 'https://' || URL_REGEX_OR_BLANK.test(url);\n};\n\nexport const MATCHERS = [\n createLinkMatcherWithRegExp(URL_REGEX, (text: string): string => {\n return !PROTOCOL_REGEX.test(text) ? `//${text}` : text;\n }),\n createLinkMatcherWithRegExp(EMAIL_REGEX, (text) => {\n return `mailto:${text}`;\n }),\n];\n\nexport const ensureHttps = (url: string) => {\n if (!/^https?:\\/\\//i.test(url)) {\n return `https://${url}`;\n }\n return url;\n};\n"],"names":["m","T","t","C","r","b","v","S","U","L","R","f","h","a","k","y","D","l","o","i","s","g","N","x","c","e","u","d","p","P","I","w","n","F","PROTOCOL_REGEX","URL_REGEX","EMAIL_REGEX","URL_REGEX_OR_BLANK","validateUrl","url","validateUrlWithProtocol","MATCHERS","createLinkMatcherWithRegExp","text","ensureHttps"],"mappings":";;;;;AAQqf,SAASA,EAAE,GAAE;AAAC,SAAO,KAAG,EAAE,cAAY,OAAO,UAAU,eAAe,KAAK,GAAE,SAAS,IAAE,EAAE,UAAQ;AAAC;AAAC,IAAIC,IAAED,EAAG,SAAS,GAAE;AAAC,QAAM,IAAE,IAAI;AAAgB,IAAE,OAAO,QAAO,CAAC;AAAE,WAAQE,IAAE,GAAEA,IAAE,UAAU,QAAOA,IAAI,GAAE,OAAO,KAAI,UAAUA,CAAC,CAAC;AAAE,QAAM,MAAM,2BAA2B,CAAC,0CAA0C,CAAC,gHAAgH;AAAC,CAAC;AAAG,SAASC,EAAE,GAAE,IAAG,CAAAD,MAAGA,GAAG;AAAC,SAAO,OAAG;AAAC,UAAME,IAAE,EAAE,KAAK,CAAC;AAAE,WAAcA,MAAP,OAAS,OAAK,EAAC,OAAMA,EAAE,OAAM,QAAOA,EAAE,CAAC,EAAE,QAAO,MAAKA,EAAE,CAAC,GAAE,KAAI,EAAEA,EAAE,CAAC,CAAC,EAAC;AAAA,EAAC;AAAC;AAAC,SAASC,EAAE,GAAE,GAAE;AAAC,WAAQ,IAAE,GAAE,IAAE,EAAE,QAAO,KAAI;AAAC,UAAMD,IAAE,EAAE,CAAC,EAAE,CAAC;AAAE,QAAGA,EAAE,QAAOA;AAAA,EAAC;AAAC,SAAO;AAAI;AAAC,MAAME,IAAE;AAAU,SAASC,EAAE,GAAE;AAAC,SAAOD,EAAE,KAAK,CAAC;AAAC;AAAC,SAASE,EAAE,GAAE;AAAC,SAAOD,EAAE,EAAE,EAAE,SAAO,CAAC,CAAC;AAAC;AAAC,SAASE,EAAE,GAAE;AAAC,SAAOF,EAAE,EAAE,C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;","x_google_ignoreList":[0]}
|
package/dist/index.js
CHANGED
|
@@ -31,7 +31,7 @@ import { Label as mo } from "./components/Label/Label.js";
|
|
|
31
31
|
import { MenuLink as io } from "./components/MenuLink/MenuLink.js";
|
|
32
32
|
import { MetaDataList as no } from "./components/MetaDataList/MetaDataList.js";
|
|
33
33
|
import { ModalDialog as co } from "./components/ModalDialog/ModalDialog.js";
|
|
34
|
-
import { M as so } from "./TablePlugin-
|
|
34
|
+
import { M as so } from "./TablePlugin-DDlrU-7e.js";
|
|
35
35
|
import { OverlayCloseButton as So } from "./components/OverlayCloseButton/OverlayCloseButton.js";
|
|
36
36
|
import { PageOverlay as ko } from "./components/PageOverlay/PageOverlay.js";
|
|
37
37
|
import { Periods as Fo } from "./components/Periods/Periods.js";
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@uva-glass/component-library",
|
|
3
3
|
"author": "Team Glass - Frontend vrienden",
|
|
4
4
|
"private": false,
|
|
5
|
-
"version": "2.0.
|
|
5
|
+
"version": "2.0.1",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"types": "dist/index.d.ts",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"jsdom": "^25.0.1",
|
|
78
78
|
"npm-run-all2": "^7.0.1",
|
|
79
79
|
"react-dom": "^18.3.1",
|
|
80
|
-
"react-router": "^7.0.
|
|
80
|
+
"react-router": "^7.0.2",
|
|
81
81
|
"react": "^18.3.1",
|
|
82
82
|
"semantic-release": "^24.2.0",
|
|
83
83
|
"storybook": "^8.4.6",
|
|
@@ -95,10 +95,10 @@
|
|
|
95
95
|
"vite": "^6.0.2"
|
|
96
96
|
},
|
|
97
97
|
"dependencies": {
|
|
98
|
-
"@lexical/link": "^0.
|
|
99
|
-
"@lexical/list": "^0.
|
|
100
|
-
"@lexical/react": "^0.
|
|
98
|
+
"@lexical/link": "^0.21.0",
|
|
99
|
+
"@lexical/list": "^0.21.0",
|
|
100
|
+
"@lexical/react": "^0.21.0",
|
|
101
101
|
"@staartwind.nl/lexical-paste-from-word": "^1.0.2",
|
|
102
|
-
"lexical": "^0.
|
|
102
|
+
"lexical": "^0.21.0"
|
|
103
103
|
}
|
|
104
104
|
}
|