@uva-glass/component-library 1.64.6 → 1.65.0

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.
Files changed (55) hide show
  1. package/dist/{Lexical.prod-CFhL_6Md.js → Lexical.prod-DeeCy7Xd.js} +260 -255
  2. package/dist/Lexical.prod-DeeCy7Xd.js.map +1 -0
  3. package/dist/{LexicalClipboard.prod-BsGZ_U-F.js → LexicalClipboard.prod-CayrMfkI.js} +26 -26
  4. package/dist/LexicalClipboard.prod-CayrMfkI.js.map +1 -0
  5. package/dist/{LexicalLink.prod-DOD0hvjh.js → LexicalLink.prod-Biaqry-c.js} +5 -5
  6. package/dist/{LexicalLink.prod-DOD0hvjh.js.map → LexicalLink.prod-Biaqry-c.js.map} +1 -1
  7. package/dist/{LexicalList.prod-C66L7HSr.js → LexicalList.prod-Uk8UObU7.js} +17 -17
  8. package/dist/{LexicalList.prod-C66L7HSr.js.map → LexicalList.prod-Uk8UObU7.js.map} +1 -1
  9. package/dist/{LexicalSelection.prod-mI1PjnKs.js → LexicalSelection.prod-C1TEIGhq.js} +4 -4
  10. package/dist/{LexicalSelection.prod-mI1PjnKs.js.map → LexicalSelection.prod-C1TEIGhq.js.map} +1 -1
  11. package/dist/{LexicalTable.prod-Dg8eGg1m.js → LexicalTable.prod-hx6rW3fc.js} +85 -85
  12. package/dist/{LexicalTable.prod-Dg8eGg1m.js.map → LexicalTable.prod-hx6rW3fc.js.map} +1 -1
  13. package/dist/{LexicalUtils.prod-0Sd05E-o.js → LexicalUtils.prod-CCjlRAc-.js} +10 -10
  14. package/dist/{LexicalUtils.prod-0Sd05E-o.js.map → LexicalUtils.prod-CCjlRAc-.js.map} +1 -1
  15. package/dist/{TablePlugin-ChuaCSFq.js → TablePlugin-BbiBRjod.js} +4 -4
  16. package/dist/{TablePlugin-ChuaCSFq.js.map → TablePlugin-BbiBRjod.js.map} +1 -1
  17. package/dist/assets/Label.css +1 -1
  18. package/dist/components/CheckboxTree/CheckboxTree.js +1 -1
  19. package/dist/components/FormInput/FormInput.d.ts +3 -1
  20. package/dist/components/FormInput/FormInput.js +23 -22
  21. package/dist/components/FormInput/FormInput.js.map +1 -1
  22. package/dist/components/InputField/InputField.stories.js +1 -1
  23. package/dist/components/Label/Label.d.ts +3 -1
  24. package/dist/components/Label/Label.js +14 -12
  25. package/dist/components/Label/Label.js.map +1 -1
  26. package/dist/components/MultiSelect/MultiSelect.js +1 -1
  27. package/dist/components/MultiSelect/MultiSelect.stories.js +1 -1
  28. package/dist/components/MultiSelect/components/MultiSelectHeader.js +1 -1
  29. package/dist/components/MultiSelect/index.js +1 -1
  30. package/dist/components/PeriodSelector/PeriodSelector.js +1 -1
  31. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +1 -1
  32. package/dist/components/RteEditor/EditorHeader/EditorHeader.js +1 -1
  33. package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +4 -4
  34. package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +2 -2
  35. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +2 -2
  36. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +1 -1
  37. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +9 -9
  38. package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
  39. package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +21 -21
  40. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +6 -6
  41. package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +1 -1
  42. package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +3 -3
  43. package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +10 -10
  44. package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
  45. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +3 -3
  46. package/dist/components/RteEditor/Plugins/index.js +1 -1
  47. package/dist/components/RteEditor/RteEditor.js +94 -94
  48. package/dist/components/RteEditor/helpers.js +8 -8
  49. package/dist/components/index.js +1 -1
  50. package/dist/{helpers-CnEW_8nD.js → helpers-CgzuKnuq.js} +7 -7
  51. package/dist/{helpers-CnEW_8nD.js.map → helpers-CgzuKnuq.js.map} +1 -1
  52. package/dist/index.js +1 -1
  53. package/package.json +6 -6
  54. package/dist/Lexical.prod-CFhL_6Md.js.map +0 -1
  55. package/dist/LexicalClipboard.prod-BsGZ_U-F.js.map +0 -1
@@ -1,22 +1,22 @@
1
1
  import { jsx as y, jsxs as A, Fragment as Ie } from "react/jsx-runtime";
2
- import { l as Qe, o as Ze, u as R } from "../../LexicalComposerContext.prod-Dyvim1tK.js";
3
- import { ao as Ae, w as B, B as me, c as v, E as W, b as q, z as Ge, h as P, a as C, a0 as ze, ap as et, a6 as g, m as tt, an as I, al as nt, aq as rt, ar as ot, as as it, i as ie, at as st, au as at, A as lt, W as ct, F as dt, l as ut, av as ft, aw as ge, o as he, U as mt, O as se, Q as pt, a4 as Be, ax as ve, H as gt, y as ht, S as vt, a3 as Ce, x as Ct, ay as yt, az as Et, aA as wt, aj as bt, D as St, n as $t, aB as _t, q as xt, M as kt, L as Nt, a7 as Lt, e as Dt, R as ye, aC as Pt, C as Rt, a9 as Y, a8 as Q, aD as Tt, aE as Mt, ab as Ft, aa as Ot } from "../../Lexical.prod-CFhL_6Md.js";
2
+ import { l as Ze, o as Ge, u as R } from "../../LexicalComposerContext.prod-Dyvim1tK.js";
3
+ import { ao as Ae, 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 Ke, ap as et, a6 as g, B as tt, an as I, 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 Ft, aa as Ot } from "../../Lexical.prod-DeeCy7Xd.js";
4
4
  import * as ae from "react";
5
- import { useMemo as J, useLayoutEffect as H, useEffect as x, useState as F, useRef as Ke, Suspense as It, forwardRef as Ue, useCallback as At } from "react";
6
- import { N as K, u as z, n as zt, o as pe, i as Bt, d as Kt } from "../../LexicalUtils.prod-0Sd05E-o.js";
5
+ import { useMemo as q, useLayoutEffect as j, useEffect as x, useState as F, useRef as Be, Suspense as It, forwardRef as Ue, useCallback as At } from "react";
6
+ import { N as B, u as K, n as Kt, o as pe, i as zt, d as Bt } from "../../LexicalUtils.prod-CCjlRAc-.js";
7
7
  import { r as Ut } from "../../index-B9BWML6P.js";
8
- import { N as Ee, O as we, h as Ht, m as jt } from "../../LexicalClipboard.prod-BsGZ_U-F.js";
9
- import { L as be, $ as Se } from "../../LexicalSelection.prod-mI1PjnKs.js";
10
- import { J as He, I as je, Z as Wt } from "../../LexicalList.prod-C66L7HSr.js";
11
- import { a as We, U as $e, m as le, g as qt, f as Jt } from "../../LexicalLink.prod-DOD0hvjh.js";
12
- import { F as Vt, k as re, o as oe, g as qe, B as Xt, l as _e, i as Yt, C as Qt, X as Zt, H as Gt, P as en, p as xe, s as tn, j as nn, t as rn } from "../../LexicalTable.prod-Dg8eGg1m.js";
13
- import { a as on, F as sn, M as an } from "../../helpers-CnEW_8nD.js";
8
+ import { N as Ee, O as we, h as jt, m as Ht } from "../../LexicalClipboard.prod-CayrMfkI.js";
9
+ import { L as be, $ as Se } from "../../LexicalSelection.prod-C1TEIGhq.js";
10
+ import { J as je, I as He, Z as Wt } from "../../LexicalList.prod-Uk8UObU7.js";
11
+ import { a as We, U as $e, m as le, g as Jt, f as qt } from "../../LexicalLink.prod-Biaqry-c.js";
12
+ import { F as Vt, k as re, o as oe, g as Je, B as Xt, l as _e, i as Yt, C as Zt, X as Gt, H as Qt, P as en, p as xe, s as tn, j as nn, t as rn } from "../../LexicalTable.prod-hx6rW3fc.js";
13
+ import { a as on, F as sn, M as an } from "../../helpers-CgzuKnuq.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-ChuaCSFq.js";
19
+ import "../../TablePlugin-BbiBRjod.js";
20
20
  import "./Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
21
21
  import "./hooks/components/Flyout.js";
22
22
  import "../Buttons/Button.js";
@@ -40,34 +40,34 @@ import { UvaTheme as gn } from "./UvaTheme/UvaTheme.js";
40
40
  import { EditorHeader as hn } from "./EditorHeader/EditorHeader.js";
41
41
  import { useLanguage as vn, LanguageProvider as Cn } from "./Providers/LanguageProvider.js";
42
42
  import { PasteHandlerPlugin as yn } from "./Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js";
43
- const Je = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, En = Je ? H : x, Z = { tag: "history-merge" };
43
+ const qe = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, En = qe ? j : x, G = { tag: "history-merge" };
44
44
  function wn({ initialConfig: t, children: e }) {
45
- const n = J(() => {
46
- const { theme: o, namespace: i, nodes: r, onError: s, editorState: a, html: l } = t, c = Ze(null, o), d = Ae({ editable: t.editable, html: l, namespace: i, nodes: r, onError: (f) => s(f, d), theme: o });
45
+ const n = q(() => {
46
+ const { theme: o, namespace: i, nodes: r, onError: s, editorState: a, html: l } = t, c = Ge(null, o), d = Ae({ editable: t.editable, html: l, namespace: i, nodes: r, onError: (f) => s(f, d), theme: o });
47
47
  return function(f, u) {
48
48
  if (u !== null) {
49
49
  if (u === void 0) f.update(() => {
50
- const m = B();
50
+ const m = z();
51
51
  if (m.isEmpty()) {
52
52
  const p = me();
53
53
  m.append(p);
54
- const E = Je ? document.activeElement : null;
54
+ const E = qe ? document.activeElement : null;
55
55
  (v() !== null || E !== null && E === f.getRootElement()) && p.select();
56
56
  }
57
- }, Z);
57
+ }, G);
58
58
  else if (u !== null) switch (typeof u) {
59
59
  case "string": {
60
60
  const m = f.parseEditorState(u);
61
- f.setEditorState(m, Z);
61
+ f.setEditorState(m, G);
62
62
  break;
63
63
  }
64
64
  case "object":
65
- f.setEditorState(u, Z);
65
+ f.setEditorState(u, G);
66
66
  break;
67
67
  case "function":
68
68
  f.update(() => {
69
- B().isEmpty() && u(f);
70
- }, Z);
69
+ z().isEmpty() && u(f);
70
+ }, G);
71
71
  }
72
72
  }
73
73
  }(d, a), [d, c];
@@ -75,15 +75,15 @@ function wn({ initialConfig: t, children: e }) {
75
75
  return En(() => {
76
76
  const o = t.editable, [i] = n;
77
77
  i.setEditable(o === void 0 || o);
78
- }, []), y(Qe.Provider, { value: n, children: e });
78
+ }, []), y(Ze.Provider, { value: n, children: e });
79
79
  }
80
- const bn = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? H : x;
80
+ const bn = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? j : x;
81
81
  function Sn(t) {
82
82
  return { initialValueFn: () => t.isEditable(), subscribe: (e) => t.registerEditableListener(e) };
83
83
  }
84
84
  function $n() {
85
85
  return function(t) {
86
- const [e] = R(), n = J(() => t(e), [e, t]), [o, i] = F(() => n.initialValueFn()), r = Ke(o);
86
+ const [e] = R(), n = q(() => t(e), [e, t]), [o, i] = F(() => n.initialValueFn()), r = Be(o);
87
87
  return bn(() => {
88
88
  const { initialValueFn: s, subscribe: a } = n, l = s();
89
89
  return r.current !== l && (r.current = l, i(l)), a((c) => {
@@ -93,7 +93,7 @@ function $n() {
93
93
  }(Sn);
94
94
  }
95
95
  function _n() {
96
- return B().getTextContent();
96
+ return z().getTextContent();
97
97
  }
98
98
  function xn(t, e = !0) {
99
99
  if (t) return !1;
@@ -102,13 +102,13 @@ function xn(t, e = !0) {
102
102
  }
103
103
  function kn(t) {
104
104
  if (!xn(t, !1)) return !1;
105
- const e = B().getChildren(), n = e.length;
105
+ const e = z().getChildren(), n = e.length;
106
106
  if (n > 1) return !1;
107
107
  for (let o = 0; o < n; o++) {
108
108
  const i = e[o];
109
109
  if (W(i)) return !1;
110
- if (q(i)) {
111
- if (!Ge(i) || i.__indent !== 0) return !1;
110
+ if (J(i)) {
111
+ if (!Qe(i) || i.__indent !== 0) return !1;
112
112
  const r = i.getChildren(), s = r.length;
113
113
  for (let a = 0; a < s; a++) {
114
114
  const l = r[o];
@@ -183,10 +183,10 @@ function Ne(t, e) {
183
183
  }
184
184
  return null;
185
185
  }
186
- 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();
187
- function G(t) {
186
+ const H = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, Dn = H && "documentMode" in document ? document.documentMode : null, Pn = !(!H || !("InputEvent" in window) || Dn) && "getTargetRanges" in new window.InputEvent("input"), Rn = H && /Version\/[\d.]+.*Safari/.test(navigator.userAgent), Le = H && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, Tn = H && /^(?=.*Chrome).*/i.test(navigator.userAgent), Mn = H && /AppleWebKit\/[\d.]+/.test(navigator.userAgent) && !Tn, De = Dt();
187
+ function Q(t) {
188
188
  let e = null;
189
- if (z(t, DragEvent) ? e = t.dataTransfer : z(t, ClipboardEvent) && (e = t.clipboardData), e === null) return [!1, [], !1];
189
+ if (K(t, DragEvent) ? e = t.dataTransfer : K(t, ClipboardEvent) && (e = t.clipboardData), e === null) return [!1, [], !1];
190
190
  const n = e.types, o = n.includes("Files"), i = n.includes("text/html") || n.includes("text/plain");
191
191
  return [o, Array.from(e.files), i];
192
192
  }
@@ -197,7 +197,7 @@ function Pe(t) {
197
197
  for (let i = 0; i < o.length; i++) {
198
198
  const r = o[i], s = r.getKey();
199
199
  if (n.has(s)) continue;
200
- const a = pe(r, (c) => q(c) && !c.isInline());
200
+ const a = pe(r, (c) => J(c) && !c.isInline());
201
201
  if (a === null) continue;
202
202
  const l = a.getKey();
203
203
  a.canIndent() && !n.has(l) && (n.add(l), t(a));
@@ -209,7 +209,7 @@ function ee(t) {
209
209
  return W(e);
210
210
  }
211
211
  function Fn(t) {
212
- return K(t.registerCommand(Lt, (e) => {
212
+ return B(t.registerCommand(Lt, (e) => {
213
213
  const n = v();
214
214
  return !!I(n) && (n.clear(), !0);
215
215
  }, 0), t.registerCommand(se, (e) => {
@@ -245,7 +245,7 @@ function Fn(t) {
245
245
  if (!C(n) && !I(n)) return !1;
246
246
  const o = n.getNodes();
247
247
  for (const i of o) {
248
- const r = pe(i, (s) => q(s) && !s.isInline());
248
+ const r = pe(i, (s) => J(s) && !s.isInline());
249
249
  r !== null && r.setFormat(e);
250
250
  }
251
251
  return !0;
@@ -279,7 +279,7 @@ function Fn(t) {
279
279
  } else if (C(n)) {
280
280
  if (function(i) {
281
281
  const r = i.focus;
282
- return r.key === "root" && r.offset === B().getChildrenSize();
282
+ return r.key === "root" && r.offset === z().getChildrenSize();
283
283
  }(n)) return e.preventDefault(), !0;
284
284
  const o = Ce(n.focus, !1);
285
285
  if (!e.shiftKey && W(o) && !o.isIsolated() && !o.isInline()) return o.selectNext(), e.preventDefault(), !0;
@@ -311,7 +311,7 @@ function Fn(t) {
311
311
  const n = v();
312
312
  if (!C(n)) return !1;
313
313
  const { anchor: o } = n, i = o.getNode();
314
- return n.isCollapsed() && o.offset === 0 && !Be(i) && zt(i).getIndent() > 0 ? (e.preventDefault(), t.dispatchCommand(ve, void 0)) : (!Le || navigator.language !== "ko-KR") && (e.preventDefault(), t.dispatchCommand(se, !0));
314
+ return n.isCollapsed() && o.offset === 0 && !ze(i) && Kt(i).getIndent() > 0 ? (e.preventDefault(), t.dispatchCommand(ve, void 0)) : (!Le || navigator.language !== "ko-KR") && (e.preventDefault(), t.dispatchCommand(se, !0));
315
315
  }, g), t.registerCommand(mt, (e) => {
316
316
  if (ee(e.target)) return !1;
317
317
  const n = v();
@@ -328,7 +328,7 @@ function Fn(t) {
328
328
  const e = v();
329
329
  return !!C(e) && (t.blur(), !0);
330
330
  }, g), t.registerCommand(at, (e) => {
331
- const [, n] = G(e);
331
+ const [, n] = Q(e);
332
332
  if (n.length > 0) {
333
333
  const i = Ne(e.clientX, e.clientY);
334
334
  if (i !== null) {
@@ -350,10 +350,10 @@ function Fn(t) {
350
350
  const o = v();
351
351
  return !!C(o);
352
352
  }, g), t.registerCommand(st, (e) => {
353
- const [n] = G(e), o = v();
353
+ const [n] = Q(e), o = v();
354
354
  return !(n && !C(o));
355
355
  }, g), t.registerCommand(it, (e) => {
356
- const [n] = G(e), o = v();
356
+ const [n] = Q(e), o = v();
357
357
  if (n && !C(o)) return !1;
358
358
  const i = Ne(e.clientX, e.clientY);
359
359
  if (i !== null) {
@@ -361,22 +361,22 @@ function Fn(t) {
361
361
  W(r) && e.preventDefault();
362
362
  }
363
363
  return !0;
364
- }, g), t.registerCommand(rt, () => (ot(), !0), g), t.registerCommand(nt, (e) => (we(t, z(e, ClipboardEvent) ? e : null), !0), g), t.registerCommand(tt, (e) => (async function(n, o) {
365
- await we(o, z(n, ClipboardEvent) ? n : null), o.update(() => {
364
+ }, g), t.registerCommand(rt, () => (ot(), !0), g), t.registerCommand(nt, (e) => (we(t, K(e, ClipboardEvent) ? e : null), !0), g), t.registerCommand(tt, (e) => (async function(n, o) {
365
+ await we(o, K(n, ClipboardEvent) ? n : null), o.update(() => {
366
366
  const i = v();
367
367
  C(i) ? i.removeText() : I(i) && i.getNodes().forEach((r) => r.remove());
368
368
  });
369
- }(e, t), !0), g), t.registerCommand(ze, (e) => {
370
- const [, n, o] = G(e);
369
+ }(e, t), !0), g), t.registerCommand(Ke, (e) => {
370
+ const [, n, o] = Q(e);
371
371
  return n.length > 0 && !o ? (t.dispatchCommand(De, n), !0) : et(e.target) ? !1 : v() !== null && (function(i, r) {
372
372
  i.preventDefault(), r.update(() => {
373
- const s = v(), a = z(i, InputEvent) || z(i, KeyboardEvent) ? null : i.clipboardData;
373
+ const s = v(), a = K(i, InputEvent) || K(i, KeyboardEvent) ? null : i.clipboardData;
374
374
  a != null && s !== null && Ee(a, s, r);
375
375
  }, { tag: "paste" });
376
376
  }(e, t), !0);
377
377
  }, g));
378
378
  }
379
- const ce = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? H : x;
379
+ const ce = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? j : x;
380
380
  function Re(t) {
381
381
  return t.getEditorState().read(Ve(t.isComposing()));
382
382
  }
@@ -389,7 +389,7 @@ function On({ contentEditable: t, placeholder: e = null, ErrorBoundary: n }) {
389
389
  });
390
390
  }), [r]), x(() => {
391
391
  l(r.getDecorators());
392
- }, [r]), J(() => {
392
+ }, [r]), q(() => {
393
393
  const c = [], d = Object.keys(a);
394
394
  for (let f = 0; f < d.length; f++) {
395
395
  const u = d[f], m = y(s, { onError: (E) => r._onError(E), children: y(It, { fallback: null, children: a[u] }) }), p = r.getElementByKey(u);
@@ -399,7 +399,7 @@ function On({ contentEditable: t, placeholder: e = null, ErrorBoundary: n }) {
399
399
  }, [s, a, r]);
400
400
  }(o, n);
401
401
  return function(r) {
402
- ce(() => K(Fn(r), Ln(r)), [r]);
402
+ ce(() => B(Fn(r), Ln(r)), [r]);
403
403
  }(o), A(Ie, { children: [t, y(In, { content: e }), i] });
404
404
  }
405
405
  function In({ content: t }) {
@@ -410,7 +410,7 @@ function In({ content: t }) {
410
410
  const l = Re(i);
411
411
  s(l);
412
412
  }
413
- return a(), K(i.registerUpdateListener(() => {
413
+ return a(), B(i.registerUpdateListener(() => {
414
414
  a();
415
415
  }), i.registerEditableListener(() => {
416
416
  a();
@@ -419,11 +419,11 @@ function In({ content: t }) {
419
419
  }(e), o = $n();
420
420
  return n ? typeof t == "function" ? t(o) : t : null;
421
421
  }
422
- const Xe = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? H : x;
422
+ const Xe = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? j : x;
423
423
  function An({ 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) {
424
424
  const [_, T] = F(t.isEditable()), O = At((L) => {
425
425
  L && L.ownerDocument && L.ownerDocument.defaultView ? t.setRootElement(L) : t.setRootElement(null);
426
- }, [t]), U = J(() => /* @__PURE__ */ function(...L) {
426
+ }, [t]), U = q(() => /* @__PURE__ */ function(...L) {
427
427
  return (V) => {
428
428
  L.forEach((X) => {
429
429
  typeof X == "function" ? X(V) : X != null && (X.current = V);
@@ -434,14 +434,14 @@ function An({ editor: t, ariaActiveDescendant: e, ariaAutoComplete: n, ariaContr
434
434
  T(L);
435
435
  })), [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 });
436
436
  }
437
- const zn = Ue(An);
437
+ const Kn = Ue(An);
438
438
  function Te(t) {
439
439
  return t.getEditorState().read(Ve(t.isComposing()));
440
440
  }
441
- const Bn = Ue(Kn);
442
- function Kn(t, e) {
441
+ const zn = Ue(Bn);
442
+ function Bn(t, e) {
443
443
  const { placeholder: n, ...o } = t, [i] = R();
444
- return A(Ie, { children: [y(zn, { editor: i, ...o, ref: e }), n != null && y(Un, { editor: i, content: n })] });
444
+ return A(Ie, { children: [y(Kn, { editor: i, ...o, ref: e }), n != null && y(Un, { editor: i, content: n })] });
445
445
  }
446
446
  function Un({ content: t, editor: e }) {
447
447
  const n = function(s) {
@@ -451,14 +451,14 @@ function Un({ content: t, editor: e }) {
451
451
  const d = Te(s);
452
452
  l(d);
453
453
  }
454
- return c(), K(s.registerUpdateListener(() => {
454
+ return c(), B(s.registerUpdateListener(() => {
455
455
  c();
456
456
  }), s.registerEditableListener(() => {
457
457
  c();
458
458
  }));
459
459
  }, [s]), a;
460
460
  }(e), [o, i] = F(e.isEditable());
461
- if (H(() => (i(e.isEditable()), e.registerEditableListener((s) => {
461
+ if (j(() => (i(e.isEditable()), e.registerEditableListener((s) => {
462
462
  i(s);
463
463
  })), [e]), !n) return null;
464
464
  let r = null;
@@ -469,7 +469,7 @@ function de(t, e) {
469
469
  return n.__proto__ = o, n;
470
470
  }, de(t, e);
471
471
  }
472
- var Me = { error: null }, Hn = function(t) {
472
+ var Me = { error: null }, jn = function(t) {
473
473
  var e, n;
474
474
  function o() {
475
475
  for (var r, s = arguments.length, a = new Array(s), l = 0; l < s; l++) a[l] = arguments[l];
@@ -504,11 +504,11 @@ var Me = { error: null }, Hn = function(t) {
504
504
  return this.props.children;
505
505
  }, o;
506
506
  }(ae.Component);
507
- function jn({ children: t, onError: e }) {
508
- return y(Hn, { fallback: y("div", { style: { border: "1px solid #f00", color: "#f00", padding: "8px" }, children: "An error was thrown." }), onError: e, children: t });
507
+ function Hn({ children: t, onError: e }) {
508
+ return y(jn, { fallback: y("div", { style: { border: "1px solid #f00", color: "#f00", padding: "8px" }, children: "An error was thrown." }), onError: e, children: t });
509
509
  }
510
- const Wn = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? H : x;
511
- function qn({ ignoreHistoryMergeTagChange: t = !0, ignoreSelectionChange: e = !1, onChange: n }) {
510
+ const Wn = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? j : x;
511
+ function Jn({ ignoreHistoryMergeTagChange: t = !0, ignoreSelectionChange: e = !1, onChange: n }) {
512
512
  const [o] = R();
513
513
  return Wn(() => {
514
514
  if (n) return o.registerUpdateListener(({ editorState: i, dirtyElements: r, dirtyLeaves: s, prevEditorState: a, tags: l }) => {
@@ -516,10 +516,10 @@ function qn({ ignoreHistoryMergeTagChange: t = !0, ignoreSelectionChange: e = !1
516
516
  });
517
517
  }, [o, t, e, n]), null;
518
518
  }
519
- function Jn() {
519
+ function qn() {
520
520
  const [t] = R();
521
521
  return x(() => {
522
- if (!t.hasNodes([He, je])) throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor");
522
+ if (!t.hasNodes([je, He])) throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor");
523
523
  }, [t]), function(e) {
524
524
  x(() => Wt(e), [e]);
525
525
  }(t), null;
@@ -528,20 +528,20 @@ function Vn({ validateUrl: t, attributes: e }) {
528
528
  const [n] = R();
529
529
  return x(() => {
530
530
  if (!n.hasNodes([We])) throw new Error("LinkPlugin: LinkNode not registered on editor");
531
- return K(n.registerCommand($e, (o) => {
531
+ return B(n.registerCommand($e, (o) => {
532
532
  if (o === null) return le(o), !0;
533
533
  if (typeof o == "string") return !(t !== void 0 && !t(o)) && (le(o, e), !0);
534
534
  {
535
535
  const { url: i, target: r, rel: s, title: a } = o;
536
536
  return le(i, { ...e, rel: s, target: r, title: a }), !0;
537
537
  }
538
- }, ye), t !== void 0 ? n.registerCommand(ze, (o) => {
538
+ }, ye), t !== void 0 ? n.registerCommand(Ke, (o) => {
539
539
  const i = v();
540
- if (!C(i) || i.isCollapsed() || !z(o, ClipboardEvent)) return !1;
540
+ if (!C(i) || i.isCollapsed() || !K(o, ClipboardEvent)) return !1;
541
541
  const r = o;
542
542
  if (r.clipboardData === null) return !1;
543
543
  const s = r.clipboardData.getData("text");
544
- return !!t(s) && !i.getNodes().some((a) => q(a)) && (n.dispatchCommand($e, { ...e, url: s }), o.preventDefault(), !0);
544
+ return !!t(s) && !i.getNodes().some((a) => J(a)) && (n.dispatchCommand($e, { ...e, url: s }), o.preventDefault(), !0);
545
545
  }, ye) : () => {
546
546
  });
547
547
  }, [n, t, e]), null;
@@ -558,8 +558,8 @@ function Xn({ newTab: t = !0, disabled: e = !1 }) {
558
558
  if (a.update(() => {
559
559
  const u = ie(s);
560
560
  if (u !== null) {
561
- const m = pe(u, q);
562
- if (!e) if (qt(m)) l = m.sanitizeUrl(m.getURL()), c = m.getTarget();
561
+ const m = pe(u, J);
562
+ if (!e) if (Jt(m)) l = m.sanitizeUrl(m.getURL()), c = m.getTarget();
563
563
  else {
564
564
  const p = function(E, w) {
565
565
  let h = E;
@@ -585,8 +585,8 @@ function Xn({ newTab: t = !0, disabled: e = !1 }) {
585
585
  });
586
586
  }, [n, t, e]), null;
587
587
  }
588
- const te = 0, ue = 1, fe = 2, D = 0, Yn = 1, Fe = 2, Qn = 3, Zn = 4;
589
- function Gn(t, e, n, o, i) {
588
+ const te = 0, ue = 1, fe = 2, D = 0, Yn = 1, Fe = 2, Zn = 3, Gn = 4;
589
+ function Qn(t, e, n, o, i) {
590
590
  if (t === null || n.size === 0 && o.size === 0 && !i) return D;
591
591
  const r = e._selection, s = t._selection;
592
592
  if (i) return Yn;
@@ -600,7 +600,7 @@ function Gn(t, e, n, o, i) {
600
600
  for (const [N, _] of $) {
601
601
  if (!_) continue;
602
602
  const T = k.get(N);
603
- T === void 0 || Be(T) || S.push(T);
603
+ T === void 0 || ze(T) || S.push(T);
604
604
  }
605
605
  return S;
606
606
  }(e, n, o);
@@ -616,14 +616,14 @@ function Gn(t, e, n, o, i) {
616
616
  const u = r.anchor, m = s.anchor;
617
617
  if (u.key !== m.key || u.type !== "text") return D;
618
618
  const p = u.offset, E = m.offset, w = f.length - d.length;
619
- return w === 1 && E === p - 1 ? Fe : w === -1 && E === p + 1 ? Qn : w === -1 && E === p ? Zn : D;
619
+ return w === 1 && E === p - 1 ? Fe : w === -1 && E === p + 1 ? Zn : w === -1 && E === p ? Gn : D;
620
620
  }
621
621
  function er(t, e) {
622
622
  let n = Date.now(), o = D;
623
623
  return (i, r, s, a, l, c) => {
624
624
  const d = Date.now();
625
625
  if (c.has("historic")) return o = D, n = d, fe;
626
- const f = Gn(i, r, a, l, t.isComposing()), u = (() => {
626
+ const f = Qn(i, r, a, l, t.isComposing()), u = (() => {
627
627
  const m = s === null || s.editor === t, p = c.has("history-push");
628
628
  if (!p && m && c.has("history-merge")) return te;
629
629
  if (i === null) return ue;
@@ -641,25 +641,25 @@ function Oe(t) {
641
641
  }
642
642
  function tr(t, e, n) {
643
643
  const o = er(t, n);
644
- return K(t.registerCommand(Ot, () => (function(r, s) {
644
+ return B(t.registerCommand(Ot, () => (function(r, s) {
645
645
  const a = s.redoStack, l = s.undoStack;
646
646
  if (l.length !== 0) {
647
647
  const c = s.current, d = l.pop();
648
- c !== null && (a.push(c), r.dispatchCommand(Y, !0)), l.length === 0 && r.dispatchCommand(Q, !1), s.current = d || null, d && d.editor.setEditorState(d.editorState, { tag: "historic" });
648
+ 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" });
649
649
  }
650
650
  }(t, e), !0), g), t.registerCommand(Ft, () => (function(r, s) {
651
651
  const a = s.redoStack, l = s.undoStack;
652
652
  if (a.length !== 0) {
653
653
  const c = s.current;
654
- c !== null && (l.push(c), r.dispatchCommand(Q, !0));
654
+ c !== null && (l.push(c), r.dispatchCommand(Z, !0));
655
655
  const d = a.pop();
656
656
  a.length === 0 && r.dispatchCommand(Y, !1), s.current = d || null, d && d.editor.setEditorState(d.editorState, { tag: "historic" });
657
657
  }
658
- }(t, e), !0), g), t.registerCommand(Mt, () => (Oe(e), !1), g), t.registerCommand(Tt, () => (Oe(e), t.dispatchCommand(Y, !1), t.dispatchCommand(Q, !1), !0), g), t.registerUpdateListener(({ editorState: r, prevEditorState: s, dirtyLeaves: a, dirtyElements: l, tags: c }) => {
658
+ }(t, e), !0), g), t.registerCommand(Mt, () => (Oe(e), !1), g), t.registerCommand(Tt, () => (Oe(e), t.dispatchCommand(Y, !1), t.dispatchCommand(Z, !1), !0), g), t.registerUpdateListener(({ editorState: r, prevEditorState: s, dirtyLeaves: a, dirtyElements: l, tags: c }) => {
659
659
  const d = e.current, f = e.redoStack, u = e.undoStack, m = d === null ? null : d.editorState;
660
660
  if (d !== null && r === m) return;
661
661
  const p = o(s, r, d, a, l, c);
662
- if (p === ue) f.length !== 0 && (e.redoStack = [], t.dispatchCommand(Y, !1)), d !== null && (u.push({ ...d }), t.dispatchCommand(Q, !0));
662
+ if (p === ue) f.length !== 0 && (e.redoStack = [], t.dispatchCommand(Y, !1)), d !== null && (u.push({ ...d }), t.dispatchCommand(Z, !0));
663
663
  else if (p === fe) return;
664
664
  e.current = { editor: t, editorState: r };
665
665
  }));
@@ -670,7 +670,7 @@ function nr() {
670
670
  function rr({ delay: t, externalHistoryState: e }) {
671
671
  const [n] = R();
672
672
  return function(o, i, r = 1e3) {
673
- const s = J(() => i || nr(), [i]);
673
+ const s = q(() => i || nr(), [i]);
674
674
  x(() => tr(o, s, r), [r, o, s]);
675
675
  }(n, e, t), null;
676
676
  }
@@ -687,9 +687,9 @@ function ir({ hasCellMerge: t = !0, hasCellBackgroundColor: e = !0, hasTabHandle
687
687
  const [i] = R();
688
688
  return x(() => {
689
689
  Vt(i, o);
690
- }, [i, o]), x(() => (i.hasNodes([re, oe, qe]) || ne(10), K(i.registerCommand(Yt, ({ columns: r, rows: s, includeHeaders: a }) => {
691
- const l = Qt(Number(s), Number(r), a);
692
- Bt(l);
690
+ }, [i, o]), x(() => (i.hasNodes([re, oe, Je]) || ne(10), B(i.registerCommand(Yt, ({ columns: r, rows: s, includeHeaders: a }) => {
691
+ const l = Zt(Number(s), Number(r), a);
692
+ zt(l);
693
693
  const c = l.getFirstDescendant();
694
694
  return P(c) && c.select(), !0;
695
695
  }, g), i.registerNodeTransform(re, (r) => {
@@ -712,7 +712,7 @@ function ir({ hasCellMerge: t = !0, hasCellBackgroundColor: e = !0, hasTabHandle
712
712
  for (const [c, d] of l) {
713
713
  const f = r.get(c);
714
714
  if (d === "created" || d === "updated") {
715
- const { tableNode: u, tableElement: m } = Zt(c);
715
+ const { tableNode: u, tableElement: m } = Gt(c);
716
716
  f === void 0 ? s(u, c, m) : m !== f[1] && (f[0].removeListeners(), r.delete(c), s(u, c, m));
717
717
  } else d === "destroyed" && f !== void 0 && (f[0].removeListeners(), r.delete(c));
718
718
  }
@@ -725,7 +725,7 @@ function ir({ hasCellMerge: t = !0, hasCellBackgroundColor: e = !0, hasTabHandle
725
725
  }, [i, n]), x(() => {
726
726
  if (!t) return i.registerNodeTransform(oe, (r) => {
727
727
  if (r.getColSpan() > 1 || r.getRowSpan() > 1) {
728
- const [, , s] = Gt(r), [a] = en(s, r, r), l = a.length, c = a[0].length;
728
+ const [, , s] = Qt(r), [a] = en(s, r, r), l = a.length, c = a[0].length;
729
729
  let d = s.getFirstChild();
730
730
  xe(d) || ne(175);
731
731
  const f = [];
@@ -738,7 +738,7 @@ function ir({ hasCellMerge: t = !0, hasCellBackgroundColor: e = !0, hasTabHandle
738
738
  else if (w.getColSpan() > 1 || w.getRowSpan() > 1) {
739
739
  tn(w) || ne(176);
740
740
  const h = _e(w.__headerState);
741
- m !== null ? m.insertAfter(h) : Kt(d, h);
741
+ m !== null ? m.insertAfter(h) : Bt(d, h);
742
742
  }
743
743
  }
744
744
  }
@@ -763,7 +763,7 @@ const Ye = 200, sr = ({
763
763
  maxWords: l = Ye,
764
764
  onChange: c
765
765
  }) => {
766
- const { switchLanguage: d } = vn(), f = mn(), [u] = F(() => Ae()), [m, p] = F(0), [E, w] = F(0), h = Ke(null), b = {
766
+ const { switchLanguage: d } = vn(), f = mn(), [u] = F(() => Ae()), [m, p] = F(0), [E, w] = F(0), h = Be(null), b = {
767
767
  html: {
768
768
  export: cn
769
769
  },
@@ -773,9 +773,9 @@ const Ye = 200, sr = ({
773
773
  onError(S) {
774
774
  throw S;
775
775
  },
776
- nodes: [He, je, We, Jt, oe, qe, re],
776
+ nodes: [je, He, We, qt, oe, Je, re],
777
777
  editorState: (S) => {
778
- const _ = new DOMParser().parseFromString(e, "text/html"), T = Ht(S, _), O = B();
778
+ const _ = new DOMParser().parseFromString(e, "text/html"), T = jt(S, _), O = z();
779
779
  if (O.clear(), dn(e))
780
780
  T.forEach((U) => {
781
781
  O.append(U);
@@ -790,7 +790,7 @@ const Ye = 200, sr = ({
790
790
  }, $ = (S) => S.trim().length === 0 ? 0 : S.split(" ").length, k = (S, N) => {
791
791
  S.read(() => {
792
792
  let _ = "";
793
- p($(B().getTextContent().replace(/\s+/g, " ").trim())), _ = un(jt(N)), c(_);
793
+ p($(z().getTextContent().replace(/\s+/g, " ").trim())), _ = un(Ht(N)), c(_);
794
794
  });
795
795
  };
796
796
  return x(() => {
@@ -814,7 +814,7 @@ const Ye = 200, sr = ({
814
814
  On,
815
815
  {
816
816
  contentEditable: /* @__PURE__ */ y(
817
- Bn,
817
+ zn,
818
818
  {
819
819
  className: M.editor__field,
820
820
  "aria-label": f.common.rteAriaLabel,
@@ -829,16 +829,16 @@ const Ye = 200, sr = ({
829
829
  }
830
830
  ),
831
831
  placeholder: /* @__PURE__ */ y("div", { className: M.editor__placeholder, children: n }),
832
- ErrorBoundary: jn
832
+ ErrorBoundary: Hn
833
833
  }
834
834
  ),
835
835
  /* @__PURE__ */ y(ir, {}),
836
836
  /* @__PURE__ */ y(rr, {}),
837
- /* @__PURE__ */ y(Jn, {}),
837
+ /* @__PURE__ */ y(qn, {}),
838
838
  /* @__PURE__ */ y(Vn, { validateUrl: on }),
839
839
  /* @__PURE__ */ y(sn, { matchers: an }),
840
840
  /* @__PURE__ */ y(Xn, {}),
841
- /* @__PURE__ */ y(qn, { onChange: k }),
841
+ /* @__PURE__ */ y(Jn, { onChange: k }),
842
842
  /* @__PURE__ */ y(yn, {})
843
843
  ] })
844
844
  ] }) }),
@@ -1,8 +1,8 @@
1
- import { a as s } from "../../LexicalLink.prod-DOD0hvjh.js";
2
- import { J as n, I as i } from "../../LexicalList.prod-C66L7HSr.js";
3
- import { Z as a, _ as c } from "../../Lexical.prod-CFhL_6Md.js";
4
- import { k as m, g, o as u } from "../../LexicalTable.prod-Dg8eGg1m.js";
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()), v = (e) => {
1
+ import { a as s } from "../../LexicalLink.prod-Biaqry-c.js";
2
+ import { J as n, I as i } from "../../LexicalList.prod-Uk8UObU7.js";
3
+ import { Z as a, _ as c } from "../../Lexical.prod-DeeCy7Xd.js";
4
+ import { k as m, g, o as u } from "../../LexicalTable.prod-hx6rW3fc.js";
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;
8
8
  }, l = (e, r) => {
@@ -11,7 +11,7 @@ const h = (e) => /^<(b|i|u|strong|em|mark|small|del|ins|sub|sup|div|p|span|h[1-6
11
11
  for (const o of [t.element, ...t.element.querySelectorAll('[style],[class],[dir="ltr"]')])
12
12
  o.removeAttribute("class"), o.getAttribute("style") && (o.setAttribute("style", ""), o.removeAttribute("style")), o.getAttribute("dir") === "ltr" && o.removeAttribute("dir");
13
13
  return t;
14
- }, A = /* @__PURE__ */ new Map([
14
+ }, v = /* @__PURE__ */ new Map([
15
15
  [a, l],
16
16
  [c, l],
17
17
  [n, l],
@@ -30,9 +30,9 @@ const h = (e) => /^<(b|i|u|strong|em|mark|small|del|ins|sub|sup|div|p|span|h[1-6
30
30
  });
31
31
  };
32
32
  export {
33
- A as exportMap,
33
+ v as exportMap,
34
34
  h as isStartingWithHtmlTag,
35
- v as mergeBoldStrongTags,
35
+ A as mergeBoldStrongTags,
36
36
  S as removeScrollableContainers,
37
37
  l as removeStylesExportDOM,
38
38
  y as setScrollableContainers
@@ -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-ChuaCSFq.js";
34
+ import { M as so } from "../TablePlugin-BbiBRjod.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-DOD0hvjh.js";
1
+ import { f as F, U as G, p as x, g as $, d as M } from "./LexicalLink.prod-Biaqry-c.js";
2
2
  import { u as X } from "./LexicalComposerContext.prod-Dyvim1tK.js";
3
- import { N as j } from "./LexicalUtils.prod-0Sd05E-o.js";
4
- import { c as S, a as E, R as H, _ as B, h as T, d as C, an as K, b as N, G as P } from "./Lexical.prod-CFhL_6Md.js";
3
+ import { N as K } from "./LexicalUtils.prod-CCjlRAc-.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-DeeCy7Xd.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;
@@ -80,7 +80,7 @@ function tt(t, e, n, o) {
80
80
  r += p;
81
81
  }
82
82
  const l = S(), c = l ? l.getNodes().find(T) : void 0, f = C(s.getTextContent());
83
- return f.setFormat(s.getFormat()), f.setDetail(s.getDetail()), f.setStyle(s.getStyle()), g.append(f, ...u), c && c === s && (E(l) ? f.select(l.anchor.offset, l.focus.offset) : K(l) && f.select(0, f.getTextContent().length)), s.replace(g), a;
83
+ return f.setFormat(s.getFormat()), f.setDetail(s.getDetail()), f.setStyle(s.getStyle()), g.append(f, ...u), c && c === s && (E(l) ? f.select(l.anchor.offset, l.focus.offset) : B(l) && f.select(0, f.getTextContent().length)), s.replace(g), a;
84
84
  }
85
85
  }
86
86
  function b(t, e, n) {
@@ -110,7 +110,7 @@ function et(t, e, n) {
110
110
  const o = (g, i) => {
111
111
  n && n(g, i);
112
112
  };
113
- return j(t.registerNodeTransform(B, (g) => {
113
+ return K(t.registerNodeTransform(H, (g) => {
114
114
  const i = g.getParentOrThrow(), s = g.getPreviousSibling();
115
115
  if (x(i) && !i.getIsUnlinked()) b(i, e, o);
116
116
  else if (!$(i)) {
@@ -147,7 +147,7 @@ function et(t, e, n) {
147
147
  const r = s.getParent();
148
148
  if (x(r)) return r.setIsUnlinked(!r.getIsUnlinked()), r.markDirty(), !0;
149
149
  }), !1;
150
- }, H));
150
+ }, j));
151
151
  }, [t, e, n]);
152
152
  }
153
153
  function gt({ matchers: t, onChange: e }) {
@@ -165,4 +165,4 @@ export {
165
165
  pt as e,
166
166
  ft as v
167
167
  };
168
- //# sourceMappingURL=helpers-CnEW_8nD.js.map
168
+ //# sourceMappingURL=helpers-CgzuKnuq.js.map