@uva-glass/component-library 3.0.14 → 3.1.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.
Files changed (98) hide show
  1. package/dist/{Lexical.prod-LIa6Q94i.js → Lexical.prod-Bu-Iw9VX.js} +1390 -1361
  2. package/dist/Lexical.prod-Bu-Iw9VX.js.map +1 -0
  3. package/dist/{LexicalClipboard.prod-LIoPcoQF.js → LexicalClipboard.prod-C5dHfEke.js} +18 -18
  4. package/dist/{LexicalClipboard.prod-LIoPcoQF.js.map → LexicalClipboard.prod-C5dHfEke.js.map} +1 -1
  5. package/dist/{LexicalLink.prod-N0i4wDOR.js → LexicalLink.prod-DdERpPPj.js} +14 -14
  6. package/dist/{LexicalLink.prod-N0i4wDOR.js.map → LexicalLink.prod-DdERpPPj.js.map} +1 -1
  7. package/dist/{LexicalList.prod-BKa7Tljk.js → LexicalList.prod-CzJqqstH.js} +91 -95
  8. package/dist/LexicalList.prod-CzJqqstH.js.map +1 -0
  9. package/dist/LexicalSelection.prod-CkM-3E0b.js +90 -0
  10. package/dist/{LexicalSelection.prod-Cid08b3Z.js.map → LexicalSelection.prod-CkM-3E0b.js.map} +1 -1
  11. package/dist/LexicalTable.prod-BsmIydKv.js +1550 -0
  12. package/dist/LexicalTable.prod-BsmIydKv.js.map +1 -0
  13. package/dist/LexicalUtils.prod-BVZbsLIa.js +107 -0
  14. package/dist/LexicalUtils.prod-BVZbsLIa.js.map +1 -0
  15. package/dist/{TablePlugin-DlTujN8R.js → TablePlugin-DKzssVbg.js} +41 -41
  16. package/dist/{TablePlugin-DlTujN8R.js.map → TablePlugin-DKzssVbg.js.map} +1 -1
  17. package/dist/assets/FeedbackBar.css +1 -0
  18. package/dist/components/Buttons/Button.stories.js +1 -1
  19. package/dist/components/Buttons/LinkButton.stories.js +1 -1
  20. package/dist/components/Buttons/MenuButton.stories.js +1 -1
  21. package/dist/components/Checkbox/Checkbox.stories.js +1 -1
  22. package/dist/components/CheckboxButton/CheckboxButton.stories.js +1 -1
  23. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +1 -1
  24. package/dist/components/CheckboxTree/CheckboxTree.js +1 -1
  25. package/dist/components/CheckboxTree/CheckboxTree.stories.js +2 -2
  26. package/dist/components/Chip/Chip.stories.js +1 -1
  27. package/dist/components/Drawer/Drawer.stories.js +1 -1
  28. package/dist/components/FeedbackBar/FeedbackBar.d.ts +3 -0
  29. package/dist/components/FeedbackBar/FeedbackBar.js +30 -0
  30. package/dist/components/FeedbackBar/FeedbackBar.js.map +1 -0
  31. package/dist/components/FeedbackBar/FeedbackBar.stories.d.ts +7 -0
  32. package/dist/components/FeedbackBar/FeedbackBar.stories.js +33 -0
  33. package/dist/components/FeedbackBar/FeedbackBar.stories.js.map +1 -0
  34. package/dist/components/FeedbackBar/FeedbackBar.test.d.ts +0 -0
  35. package/dist/components/FeedbackBar/FeedbackBar.test.js +14 -0
  36. package/dist/components/FeedbackBar/FeedbackBar.test.js.map +1 -0
  37. package/dist/components/FeedbackBar/index.d.ts +1 -0
  38. package/dist/components/FeedbackBar/index.js +5 -0
  39. package/dist/components/FeedbackBar/index.js.map +1 -0
  40. package/dist/components/FormInput/FormInput.js +1 -1
  41. package/dist/components/FormInput/FormInput.stories.js +1 -1
  42. package/dist/components/IconButton/IconButton.stories.js +1 -1
  43. package/dist/components/InputField/InputField.stories.js +2 -2
  44. package/dist/components/ModalDialog/ModalDialog.stories.js +1 -1
  45. package/dist/components/MultiSelect/MultiSelect.js +1 -1
  46. package/dist/components/MultiSelect/MultiSelect.stories.js +2 -2
  47. package/dist/components/MultiSelect/components/MultiSelectHeader.js +1 -1
  48. package/dist/components/MultiSelect/index.js +1 -1
  49. package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +1 -1
  50. package/dist/components/OverlayStepBar/OverlayStepBar.js +1 -1
  51. package/dist/components/PeriodSelector/PeriodSelector.js +1 -1
  52. package/dist/components/PeriodSelector/PeriodSelector.stories.js +1 -1
  53. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +3 -3
  54. package/dist/components/RteEditor/EditorHeader/EditorHeader.js +1 -1
  55. package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +5 -5
  56. package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +2 -2
  57. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +2 -2
  58. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +1 -1
  59. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +4 -4
  60. package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
  61. package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +25 -25
  62. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +8 -8
  63. package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +1 -1
  64. package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +3 -3
  65. package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +18 -18
  66. package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
  67. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +14 -14
  68. package/dist/components/RteEditor/Plugins/index.js +1 -1
  69. package/dist/components/RteEditor/RteEditor.js +132 -130
  70. package/dist/components/RteEditor/RteEditor.js.map +1 -1
  71. package/dist/components/RteEditor/helpers.js +11 -11
  72. package/dist/components/SelectListbox/SelectListBox.stories.js +1 -1
  73. package/dist/components/Sortable/Sortable.stories.js +1 -1
  74. package/dist/components/Timeline/Timeline.test.js +1 -1
  75. package/dist/components/ToggleSwitch/ToggleSwitch.stories.js +1 -1
  76. package/dist/components/VarIndicator/VarIndicator.stories.js +1 -1
  77. package/dist/components/index.d.ts +1 -0
  78. package/dist/components/index.js +84 -82
  79. package/dist/components/index.js.map +1 -1
  80. package/dist/{helpers-BFkCPTTp.js → helpers-D13uK95u.js} +19 -19
  81. package/dist/{helpers-BFkCPTTp.js.map → helpers-D13uK95u.js.map} +1 -1
  82. package/dist/{index-DpyOH4wL.js → index-C7jFUWYs.js} +2 -2
  83. package/dist/{index-DpyOH4wL.js.map → index-C7jFUWYs.js.map} +1 -1
  84. package/dist/{index-BldK5xU9.js → index-DH9Vbk37.js} +3 -9
  85. package/dist/index-DH9Vbk37.js.map +1 -0
  86. package/dist/index.js +84 -82
  87. package/dist/index.js.map +1 -1
  88. package/dist/storybook__react.d.js +1887 -1874
  89. package/dist/storybook__react.d.js.map +1 -1
  90. package/package.json +20 -20
  91. package/dist/Lexical.prod-LIa6Q94i.js.map +0 -1
  92. package/dist/LexicalList.prod-BKa7Tljk.js.map +0 -1
  93. package/dist/LexicalSelection.prod-Cid08b3Z.js +0 -85
  94. package/dist/LexicalTable.prod-B1mw85mv.js +0 -1545
  95. package/dist/LexicalTable.prod-B1mw85mv.js.map +0 -1
  96. package/dist/LexicalUtils.prod-DstvN5hc.js +0 -109
  97. package/dist/LexicalUtils.prod-DstvN5hc.js.map +0 -1
  98. package/dist/index-BldK5xU9.js.map +0 -1
@@ -1,22 +1,22 @@
1
- import { jsx as h, jsxs as O, Fragment as Pe } from "react/jsx-runtime";
2
- import { t as Je, r as Ve, o as P } from "../../LexicalComposerContext.prod-DLlRM5wP.js";
3
- import { aB as Te, ad as z, T as Re, a as p, ah as j, d as q, w as Xe, X as I, l as g, M as Ge, N as m, aC as Ye, ac as Ie, o as Qe, n as Me, aD as Ze, G as et, aA as K, ax as tt, aE as nt, aF as rt, aG as ot, r as ne, aH as it, aI as st, Z as at, C as lt, g as ut, L as ct, aJ as dt, aK as fe, b as me, B as ft, y as re, A as mt, a0 as Fe, aL as pe, u as pt, q as gt, m as ht, aM as ge, p as Ct, aN as yt, aO as Et, aP as wt, aw as vt, J as bt, I as _t, aQ as St, K as kt, x as xt, v as Nt, i as Lt, E as he, aR as Dt, t as $t, am as G, al as Y, aS as Pt, aT as Tt, ao as Rt, an as It } from "../../Lexical.prod-LIa6Q94i.js";
1
+ import { jsx as h, jsxs as A, Fragment as Pe } from "react/jsx-runtime";
2
+ import { t as Je, r as Ve, o as T } from "../../LexicalComposerContext.prod-DLlRM5wP.js";
3
+ import { aF as Te, ae as z, T as Re, a as p, al as W, d as q, w as Xe, X as O, l as g, P as Ge, N as m, aG as Qe, ad as Ie, o as Ye, n as Oe, aH as Ze, B as et, aE as P, aB as tt, aI as nt, aJ as rt, aK as ot, r as ne, aL as it, aM as st, a0 as at, C as lt, g as ut, A as ct, aN as dt, aO as fe, b as me, L as ft, x as re, z as mt, a1 as Me, aP as pe, s as pt, q as gt, m as ht, aQ as ge, p as Ct, aR as yt, aS as Et, aT as wt, aA as vt, I as bt, G as _t, aU as St, M as kt, v as xt, u as Nt, i as Lt, E as he, aV as Dt, t as $t, aq as G, ap as Q, aW as Pt, aX as Tt, as as Rt, ar as It } from "../../Lexical.prod-Bu-Iw9VX.js";
4
4
  import * as oe from "react";
5
- import { useMemo as J, useLayoutEffect as U, useEffect as k, useState as M, useRef as Ke, Suspense as Mt, forwardRef as Oe, useCallback as Ft } from "react";
6
- import { $ as H, E as A, m as Kt, h as de } from "../../LexicalUtils.prod-DstvN5hc.js";
7
- import { flushSync as Ot, createPortal as At } from "react-dom";
8
- import { D as Ce, _ as ye, h as zt, m as Bt } from "../../LexicalClipboard.prod-LIoPcoQF.js";
9
- import { W as Ee, G as we } from "../../LexicalSelection.prod-Cid08b3Z.js";
10
- import { q as Ae, W as ze, n as Ut } from "../../LexicalList.prod-BKa7Tljk.js";
11
- import { h as Be, O as ve, N as ie, d as Ht, p as Wt } from "../../LexicalLink.prod-N0i4wDOR.js";
12
- import { e as jt, g as qt, f as Jt, d as Vt, b as Ue, F as Xt, t as Gt } from "../../LexicalTable.prod-B1mw85mv.js";
13
- import { a as Yt, w as Qt, M as Zt } from "../../helpers-BFkCPTTp.js";
5
+ import { useMemo as J, useLayoutEffect as U, useEffect as k, useState as M, useRef as Ke, Suspense as Ot, forwardRef as Ae, useCallback as Mt } from "react";
6
+ import { j, L as F, y as Kt, w as de } from "../../LexicalUtils.prod-BVZbsLIa.js";
7
+ import { flushSync as At, createPortal as Ft } from "react-dom";
8
+ import { D as Ce, _ as ye, h as zt, m as Bt } from "../../LexicalClipboard.prod-C5dHfEke.js";
9
+ import { W as Ee, G as we } from "../../LexicalSelection.prod-CkM-3E0b.js";
10
+ import { j as Fe, K as ze, i as Ut } from "../../LexicalList.prod-CzJqqstH.js";
11
+ import { h as Be, O as ve, N as ie, d as jt, p as Ht } from "../../LexicalLink.prod-DdERpPPj.js";
12
+ import { Q as Wt, d as qt, h as Jt, u as Vt, y as Ue, O as Xt, Z as Gt } from "../../LexicalTable.prod-BsmIydKv.js";
13
+ import { a as Qt, w as Yt, M as Zt } from "../../helpers-D13uK95u.js";
14
14
  import { c as en } from "../../clsx-OuTLNxxd.js";
15
15
  import { exportMap as tn, isStartingWithHtmlTag as nn, mergeBoldStrongTags as rn } from "./helpers.js";
16
- import { s as R } from "../../RteEditor.module-oFMKEW6f.js";
16
+ import { s as I } from "../../RteEditor.module-oFMKEW6f.js";
17
17
  import { ToolBarPlugin as on } from "./Plugins/ToolbarPlugin/ToolbarPlugin.js";
18
18
  import { useTranslation as sn } from "./hooks/useTranslation.js";
19
- import "../../TablePlugin-DlTujN8R.js";
19
+ import "../../TablePlugin-DKzssVbg.js";
20
20
  import "./Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
21
21
  import "./hooks/components/Flyout.js";
22
22
  import "../Buttons/Button.js";
@@ -41,7 +41,7 @@ import { UvaTheme as ln } from "./UvaTheme/UvaTheme.js";
41
41
  import { EditorHeader as un } from "./EditorHeader/EditorHeader.js";
42
42
  import { LanguageProvider as cn, useLanguage as dn } from "./Providers/LanguageProvider.js";
43
43
  import { PasteHandlerPlugin as fn } from "./Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js";
44
- const He = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, mn = He ? U : k, Q = { tag: "history-merge" };
44
+ const je = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, mn = je ? U : k, Y = { tag: "history-merge" };
45
45
  function pn({ initialConfig: n, children: e }) {
46
46
  const t = J(() => {
47
47
  const { theme: o, namespace: i, nodes: r, onError: s, editorState: a, html: l } = n, u = Je(null, o), c = Te({ editable: n.editable, html: l, namespace: i, nodes: r, onError: (d) => s(d, c), theme: o });
@@ -52,23 +52,23 @@ function pn({ initialConfig: n, children: e }) {
52
52
  if (C.isEmpty()) {
53
53
  const y = Re();
54
54
  C.append(y);
55
- const v = He ? document.activeElement : null;
55
+ const v = je ? document.activeElement : null;
56
56
  (p() !== null || v !== null && v === d.getRootElement()) && y.select();
57
57
  }
58
- }, Q);
58
+ }, Y);
59
59
  else if (f !== null) switch (typeof f) {
60
60
  case "string": {
61
61
  const C = d.parseEditorState(f);
62
- d.setEditorState(C, Q);
62
+ d.setEditorState(C, Y);
63
63
  break;
64
64
  }
65
65
  case "object":
66
- d.setEditorState(f, Q);
66
+ d.setEditorState(f, Y);
67
67
  break;
68
68
  case "function":
69
69
  d.update(() => {
70
70
  z().isEmpty() && f(d);
71
- }, Q);
71
+ }, Y);
72
72
  }
73
73
  }
74
74
  }(c, a), [c, u];
@@ -84,7 +84,7 @@ function hn(n) {
84
84
  }
85
85
  function Cn() {
86
86
  return function(n) {
87
- const [e] = P(), t = J(() => n(e), [e, n]), [o, i] = M(() => t.initialValueFn()), r = Ke(o);
87
+ const [e] = T(), t = J(() => n(e), [e, n]), [o, i] = M(() => t.initialValueFn()), r = Ke(o);
88
88
  return gn(() => {
89
89
  const { initialValueFn: s, subscribe: a } = t, l = s();
90
90
  return r.current !== l && (r.current = l, i(l)), a((u) => {
@@ -107,19 +107,19 @@ function wn(n) {
107
107
  if (t > 1) return !1;
108
108
  for (let o = 0; o < t; o++) {
109
109
  const i = e[o];
110
- if (j(i)) return !1;
110
+ if (W(i)) return !1;
111
111
  if (q(i)) {
112
112
  if (!Xe(i) || i.__indent !== 0) return !1;
113
113
  const r = i.getChildren(), s = r.length;
114
114
  for (let a = 0; a < s; a++) {
115
115
  const l = r[o];
116
- if (!I(l)) return !1;
116
+ if (!O(l)) return !1;
117
117
  }
118
118
  }
119
119
  }
120
120
  return !0;
121
121
  }
122
- function We(n) {
122
+ function He(n) {
123
123
  return () => wn(n);
124
124
  }
125
125
  function vn(n) {
@@ -146,7 +146,7 @@ function vn(n) {
146
146
  if (g(v)) {
147
147
  const x = v.anchor;
148
148
  let E = x.getNode(), w = 0, _ = 0;
149
- if (I(E) && u >= 0 && c >= 0 && (w = u, _ = u + c, v.setTextNodeRange(E, w, E, _)), w === _ && d === "" || (v.insertRawText(d), E = x.getNode()), I(E)) {
149
+ if (O(E) && u >= 0 && c >= 0 && (w = u, _ = u + c, v.setTextNodeRange(E, w, E, _)), w === _ && d === "" || (v.insertRawText(d), E = x.getNode()), O(E)) {
150
150
  w = f, _ = f + C;
151
151
  const N = E.getTextContentSize();
152
152
  w = w > N ? N : w, _ = _ > N ? N : _, v.setTextNodeRange(E, w, E, _);
@@ -174,10 +174,10 @@ function be(n, e) {
174
174
  }
175
175
  return null;
176
176
  }
177
- const W = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, bn = W && "documentMode" in document ? document.documentMode : null, _n = !(!W || !("InputEvent" in window) || bn) && "getTargetRanges" in new window.InputEvent("input"), Sn = W && /Version\/[\d.]+.*Safari/.test(navigator.userAgent), _e = W && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, kn = W && /^(?=.*Chrome).*/i.test(navigator.userAgent), xn = W && /AppleWebKit\/[\d.]+/.test(navigator.userAgent) && !kn, Se = Qe();
177
+ const H = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, bn = H && "documentMode" in document ? document.documentMode : null, _n = !(!H || !("InputEvent" in window) || bn) && "getTargetRanges" in new window.InputEvent("input"), Sn = H && /Version\/[\d.]+.*Safari/.test(navigator.userAgent), _e = H && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, kn = H && /^(?=.*Chrome).*/i.test(navigator.userAgent), xn = H && /AppleWebKit\/[\d.]+/.test(navigator.userAgent) && !kn, Se = Ye();
178
178
  function Z(n) {
179
179
  let e = null;
180
- if (A(n, DragEvent) ? e = n.dataTransfer : A(n, ClipboardEvent) && (e = n.clipboardData), e === null) return [!1, [], !1];
180
+ if (F(n, DragEvent) ? e = n.dataTransfer : F(n, ClipboardEvent) && (e = n.clipboardData), e === null) return [!1, [], !1];
181
181
  const t = e.types, o = t.includes("Files"), i = t.includes("text/html") || t.includes("text/plain");
182
182
  return [o, Array.from(e.files), i];
183
183
  }
@@ -197,18 +197,18 @@ function ke(n) {
197
197
  }
198
198
  function ee(n) {
199
199
  const e = ne(n);
200
- return j(e);
200
+ return W(e);
201
201
  }
202
202
  function se(n) {
203
203
  for (const e of ["lowercase", "uppercase", "capitalize"]) n.hasFormat(e) && n.toggleFormat(e);
204
204
  }
205
205
  function Nn(n) {
206
- return H(n.registerCommand(Lt, (e) => {
206
+ return j(n.registerCommand(Lt, (e) => {
207
207
  const t = p();
208
- return !!K(t) && (t.clear(), !0);
208
+ return !!P(t) && (t.clear(), !0);
209
209
  }, 0), n.registerCommand(re, (e) => {
210
210
  const t = p();
211
- return !!g(t) && (t.deleteCharacter(e), !0);
211
+ return g(t) ? (t.deleteCharacter(e), !0) : !!P(t) && (t.deleteNodes(), !0);
212
212
  }, m), n.registerCommand(Nt, (e) => {
213
213
  const t = p();
214
214
  return !!g(t) && (t.deleteWord(e), !0);
@@ -236,7 +236,7 @@ function Nn(n) {
236
236
  return !!g(t) && (t.formatText(e), !0);
237
237
  }, m), n.registerCommand(bt, (e) => {
238
238
  const t = p();
239
- if (!g(t) && !K(t)) return !1;
239
+ if (!g(t) && !P(t)) return !1;
240
240
  const o = t.getNodes();
241
241
  for (const i of o) {
242
242
  const r = de(i, (s) => q(s) && !s.isInline());
@@ -257,17 +257,17 @@ function Nn(n) {
257
257
  t > 0 && e.setIndent(t - 1);
258
258
  }), m), n.registerCommand(Ct, (e) => {
259
259
  const t = p();
260
- if (K(t) && !ee(e.target)) {
260
+ if (P(t) && !ee(e.target)) {
261
261
  const o = t.getNodes();
262
262
  if (o.length > 0) return o[0].selectPrevious(), !0;
263
263
  } else if (g(t)) {
264
264
  const o = ge(t.focus, !0);
265
- if (!e.shiftKey && j(o) && !o.isIsolated() && !o.isInline()) return o.selectPrevious(), e.preventDefault(), !0;
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), n.registerCommand(ht, (e) => {
269
269
  const t = p();
270
- if (K(t)) {
270
+ if (P(t)) {
271
271
  const o = t.getNodes();
272
272
  if (o.length > 0) return o[0].selectNext(0, 0), !0;
273
273
  } else if (g(t)) {
@@ -276,12 +276,12 @@ function Nn(n) {
276
276
  return r.key === "root" && r.offset === z().getChildrenSize();
277
277
  }(t)) return e.preventDefault(), !0;
278
278
  const o = ge(t.focus, !1);
279
- if (!e.shiftKey && j(o) && !o.isIsolated() && !o.isInline()) return o.selectNext(), e.preventDefault(), !0;
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), n.registerCommand(gt, (e) => {
283
283
  const t = p();
284
- if (K(t)) {
284
+ if (P(t)) {
285
285
  const o = t.getNodes();
286
286
  if (o.length > 0) return e.preventDefault(), o[0].selectPrevious(), !0;
287
287
  }
@@ -293,7 +293,7 @@ function Nn(n) {
293
293
  return !1;
294
294
  }, m), n.registerCommand(pt, (e) => {
295
295
  const t = p();
296
- if (K(t) && !ee(e.target)) {
296
+ if (P(t) && !ee(e.target)) {
297
297
  const i = t.getNodes();
298
298
  if (i.length > 0) return e.preventDefault(), i[0].selectNext(0, 0), !0;
299
299
  }
@@ -303,13 +303,17 @@ function Nn(n) {
303
303
  }, m), n.registerCommand(mt, (e) => {
304
304
  if (ee(e.target)) return !1;
305
305
  const t = p();
306
- if (!g(t)) return !1;
307
- const { anchor: o } = t, i = o.getNode();
308
- return t.isCollapsed() && o.offset === 0 && !Fe(i) && Kt(i).getIndent() > 0 ? (e.preventDefault(), n.dispatchCommand(pe, void 0)) : (!_e || navigator.language !== "ko-KR") && (e.preventDefault(), n.dispatchCommand(re, !0));
306
+ if (g(t)) {
307
+ const { anchor: o } = t, i = o.getNode();
308
+ if (t.isCollapsed() && o.offset === 0 && !Me(i) && Kt(i).getIndent() > 0)
309
+ return e.preventDefault(), n.dispatchCommand(pe, void 0);
310
+ if (_e && navigator.language === "ko-KR") return !1;
311
+ } else if (!P(t)) return !1;
312
+ return e.preventDefault(), n.dispatchCommand(re, !0);
309
313
  }, m), n.registerCommand(ft, (e) => {
310
314
  if (ee(e.target)) return !1;
311
315
  const t = p();
312
- return !!g(t) && (e.preventDefault(), n.dispatchCommand(re, !1));
316
+ return !(!g(t) && !P(t)) && (e.preventDefault(), n.dispatchCommand(re, !1));
313
317
  }, m), n.registerCommand(dt, (e) => {
314
318
  const t = p();
315
319
  if (!g(t)) return !1;
@@ -329,7 +333,7 @@ function Nn(n) {
329
333
  const { offset: r, node: s } = i, a = ne(s);
330
334
  if (a !== null) {
331
335
  const l = at();
332
- if (I(a)) l.anchor.set(a.getKey(), r, "text"), l.focus.set(a.getKey(), r, "text");
336
+ if (O(a)) l.anchor.set(a.getKey(), r, "text"), l.focus.set(a.getKey(), r, "text");
333
337
  else {
334
338
  const c = a.getParentOrThrow().getKey(), d = a.getIndexWithinParent() + 1;
335
339
  l.anchor.set(c, d, "element"), l.focus.set(c, d, "element");
@@ -352,23 +356,23 @@ function Nn(n) {
352
356
  const i = be(e.clientX, e.clientY);
353
357
  if (i !== null) {
354
358
  const r = ne(i.node);
355
- j(r) && e.preventDefault();
359
+ W(r) && e.preventDefault();
356
360
  }
357
361
  return !0;
358
- }, m), n.registerCommand(nt, () => (rt(), !0), m), n.registerCommand(tt, (e) => (ye(n, A(e, ClipboardEvent) ? e : null), !0), m), n.registerCommand(et, (e) => (async function(t, o) {
359
- await ye(o, A(t, ClipboardEvent) ? t : null), o.update(() => {
362
+ }, m), n.registerCommand(nt, () => (rt(), !0), m), n.registerCommand(tt, (e) => (ye(n, F(e, ClipboardEvent) ? e : null), !0), m), n.registerCommand(et, (e) => (async function(t, o) {
363
+ await ye(o, F(t, ClipboardEvent) ? t : null), o.update(() => {
360
364
  const i = p();
361
- g(i) ? i.removeText() : K(i) && i.getNodes().forEach((r) => r.remove());
365
+ g(i) ? i.removeText() : P(i) && i.getNodes().forEach((r) => r.remove());
362
366
  });
363
367
  }(e, n), !0), m), n.registerCommand(Ie, (e) => {
364
368
  const [, t, o] = Z(e);
365
- return t.length > 0 && !o ? (n.dispatchCommand(Se, t), !0) : Me(e.target) && Ze(e.target) ? !1 : p() !== null && (function(i, r) {
369
+ return t.length > 0 && !o ? (n.dispatchCommand(Se, t), !0) : Oe(e.target) && Ze(e.target) ? !1 : p() !== null && (function(i, r) {
366
370
  i.preventDefault(), r.update(() => {
367
- const s = p(), a = A(i, InputEvent) || A(i, KeyboardEvent) ? null : i.clipboardData;
371
+ const s = p(), a = F(i, InputEvent) || F(i, KeyboardEvent) ? null : i.clipboardData;
368
372
  a != null && s !== null && Ce(a, s, r);
369
373
  }, { tag: "paste" });
370
374
  }(e, n), !0);
371
- }, m), n.registerCommand(Ye, (e) => {
375
+ }, m), n.registerCommand(Qe, (e) => {
372
376
  const t = p();
373
377
  return g(t) && se(t), !1;
374
378
  }, m), n.registerCommand(Ge, (e) => {
@@ -378,13 +382,13 @@ function Nn(n) {
378
382
  }
379
383
  const ae = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? U : k;
380
384
  function xe(n) {
381
- return n.getEditorState().read(We(n.isComposing()));
385
+ return n.getEditorState().read(He(n.isComposing()));
382
386
  }
383
387
  function Ln({ contentEditable: n, placeholder: e = null, ErrorBoundary: t }) {
384
- const [o] = P(), i = function(r, s) {
388
+ const [o] = T(), i = function(r, s) {
385
389
  const [a, l] = M(() => r.getDecorators());
386
390
  return ae(() => r.registerDecoratorListener((u) => {
387
- Ot(() => {
391
+ At(() => {
388
392
  l(u);
389
393
  });
390
394
  }), [r]), k(() => {
@@ -392,25 +396,25 @@ function Ln({ contentEditable: n, placeholder: e = null, ErrorBoundary: t }) {
392
396
  }, [r]), J(() => {
393
397
  const u = [], c = Object.keys(a);
394
398
  for (let d = 0; d < c.length; d++) {
395
- const f = c[d], C = h(s, { onError: (v) => r._onError(v), children: h(Mt, { fallback: null, children: a[f] }) }), y = r.getElementByKey(f);
396
- y !== null && u.push(At(C, y, f));
399
+ const f = c[d], C = h(s, { onError: (v) => r._onError(v), children: h(Ot, { fallback: null, children: a[f] }) }), y = r.getElementByKey(f);
400
+ y !== null && u.push(Ft(C, y, f));
397
401
  }
398
402
  return u;
399
403
  }, [s, a, r]);
400
404
  }(o, t);
401
405
  return function(r) {
402
- ae(() => H(Nn(r), vn(r)), [r]);
403
- }(o), O(Pe, { children: [n, h(Dn, { content: e }), i] });
406
+ ae(() => j(Nn(r), vn(r)), [r]);
407
+ }(o), A(Pe, { children: [n, h(Dn, { content: e }), i] });
404
408
  }
405
409
  function Dn({ content: n }) {
406
- const [e] = P(), t = function(i) {
410
+ const [e] = T(), t = function(i) {
407
411
  const [r, s] = M(() => xe(i));
408
412
  return ae(() => {
409
413
  function a() {
410
414
  const l = xe(i);
411
415
  s(l);
412
416
  }
413
- return a(), H(i.registerUpdateListener(() => {
417
+ return a(), j(i.registerUpdateListener(() => {
414
418
  a();
415
419
  }), i.registerEditableListener(() => {
416
420
  a();
@@ -419,9 +423,9 @@ function Dn({ content: n }) {
419
423
  }(e), o = Cn();
420
424
  return t ? typeof n == "function" ? n(o) : n : null;
421
425
  }
422
- const je = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? U : k;
426
+ const We = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? U : k;
423
427
  function $n({ editor: n, ariaActiveDescendant: e, ariaAutoComplete: t, ariaControls: o, ariaDescribedBy: i, ariaErrorMessage: r, ariaExpanded: s, ariaInvalid: a, ariaLabel: l, ariaLabelledBy: u, ariaMultiline: c, ariaOwns: d, ariaRequired: f, autoCapitalize: C, className: y, id: v, role: x = "textbox", spellCheck: E = !0, style: w, tabIndex: _, "data-testid": N, ...b }, L) {
424
- const [S, T] = M(n.isEditable()), F = Ft((D) => {
428
+ const [S, R] = M(n.isEditable()), K = Mt((D) => {
425
429
  D && D.ownerDocument && D.ownerDocument.defaultView ? n.setRootElement(D) : n.setRootElement(null);
426
430
  }, [n]), B = J(() => /* @__PURE__ */ function(...D) {
427
431
  return (V) => {
@@ -429,29 +433,29 @@ function $n({ editor: n, ariaActiveDescendant: e, ariaAutoComplete: t, ariaContr
429
433
  typeof X == "function" ? X(V) : X != null && (X.current = V);
430
434
  });
431
435
  };
432
- }(L, F), [F, L]);
433
- return je(() => (T(n.isEditable()), n.registerEditableListener((D) => {
434
- T(D);
436
+ }(L, K), [K, L]);
437
+ return We(() => (R(n.isEditable()), n.registerEditableListener((D) => {
438
+ R(D);
435
439
  })), [n]), h("div", { "aria-activedescendant": S ? e : void 0, "aria-autocomplete": S ? t : "none", "aria-controls": S ? o : void 0, "aria-describedby": i, ...r != null ? { "aria-errormessage": r } : {}, "aria-expanded": S && x === "combobox" ? !!s : void 0, ...a != null ? { "aria-invalid": a } : {}, "aria-label": l, "aria-labelledby": u, "aria-multiline": c, "aria-owns": S ? d : void 0, "aria-readonly": !S || void 0, "aria-required": f, autoCapitalize: C, className: y, contentEditable: S, "data-testid": N, id: v, ref: B, role: S ? x : void 0, spellCheck: E, style: w, tabIndex: _, ...b });
436
440
  }
437
- const Pn = Oe($n);
441
+ const Pn = Ae($n);
438
442
  function Ne(n) {
439
- return n.getEditorState().read(We(n.isComposing()));
443
+ return n.getEditorState().read(He(n.isComposing()));
440
444
  }
441
- const Tn = Oe(Rn);
445
+ const Tn = Ae(Rn);
442
446
  function Rn(n, e) {
443
- const { placeholder: t, ...o } = n, [i] = P();
444
- return O(Pe, { children: [h(Pn, { editor: i, ...o, ref: e }), t != null && h(In, { editor: i, content: t })] });
447
+ const { placeholder: t, ...o } = n, [i] = T();
448
+ return A(Pe, { children: [h(Pn, { editor: i, ...o, ref: e }), t != null && h(In, { editor: i, content: t })] });
445
449
  }
446
450
  function In({ content: n, editor: e }) {
447
451
  const t = function(s) {
448
452
  const [a, l] = M(() => Ne(s));
449
- return je(() => {
453
+ return We(() => {
450
454
  function u() {
451
455
  const c = Ne(s);
452
456
  l(c);
453
457
  }
454
- return u(), H(s.registerUpdateListener(() => {
458
+ return u(), j(s.registerUpdateListener(() => {
455
459
  u();
456
460
  }), s.registerEditableListener(() => {
457
461
  u();
@@ -469,7 +473,7 @@ function le(n, e) {
469
473
  return t.__proto__ = o, t;
470
474
  }, le(n, e);
471
475
  }
472
- var Le = { error: null }, Mn = function(n) {
476
+ var Le = { error: null }, On = function(n) {
473
477
  var e, t;
474
478
  function o() {
475
479
  for (var r, s = arguments.length, a = new Array(s), l = 0; l < s; l++) a[l] = arguments[l];
@@ -504,31 +508,31 @@ var Le = { error: null }, Mn = function(n) {
504
508
  return this.props.children;
505
509
  }, o;
506
510
  }(oe.Component);
507
- function Fn({ children: n, onError: e }) {
508
- return h(Mn, { fallback: h("div", { style: { border: "1px solid #f00", color: "#f00", padding: "8px" }, children: "An error was thrown." }), onError: e, children: n });
511
+ function Mn({ children: n, onError: e }) {
512
+ return h(On, { fallback: h("div", { style: { border: "1px solid #f00", color: "#f00", padding: "8px" }, children: "An error was thrown." }), onError: e, children: n });
509
513
  }
510
514
  const Kn = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? U : k;
511
- function On({ ignoreHistoryMergeTagChange: n = !0, ignoreSelectionChange: e = !1, onChange: t }) {
512
- const [o] = P();
515
+ function An({ ignoreHistoryMergeTagChange: n = !0, ignoreSelectionChange: e = !1, onChange: t }) {
516
+ const [o] = T();
513
517
  return Kn(() => {
514
518
  if (t) return o.registerUpdateListener(({ editorState: i, dirtyElements: r, dirtyLeaves: s, prevEditorState: a, tags: l }) => {
515
519
  e && r.size === 0 && s.size === 0 || n && l.has("history-merge") || a.isEmpty() || t(i, o, l);
516
520
  });
517
521
  }, [o, n, e, t]), null;
518
522
  }
519
- function An() {
520
- const [n] = P();
523
+ function Fn() {
524
+ const [n] = T();
521
525
  return k(() => {
522
- if (!n.hasNodes([Ae, ze])) throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor");
526
+ if (!n.hasNodes([Fe, ze])) throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor");
523
527
  }, [n]), function(e) {
524
528
  k(() => Ut(e), [e]);
525
529
  }(n), null;
526
530
  }
527
531
  function zn({ validateUrl: n, attributes: e }) {
528
- const [t] = P();
532
+ const [t] = T();
529
533
  return k(() => {
530
534
  if (!t.hasNodes([Be])) throw new Error("LinkPlugin: LinkNode not registered on editor");
531
- return H(t.registerCommand(ve, (o) => {
535
+ return j(t.registerCommand(ve, (o) => {
532
536
  if (o === null) return ie(o), !0;
533
537
  if (typeof o == "string") return !(n !== void 0 && !n(o)) && (ie(o, e), !0);
534
538
  {
@@ -537,21 +541,19 @@ function zn({ validateUrl: n, attributes: e }) {
537
541
  }
538
542
  }, he), n !== void 0 ? t.registerCommand(Ie, (o) => {
539
543
  const i = p();
540
- if (!g(i) || i.isCollapsed() || !A(o, ClipboardEvent)) return !1;
541
- const r = o;
542
- if (r.clipboardData === null) return !1;
543
- const s = r.clipboardData.getData("text");
544
- return !!n(s) && !i.getNodes().some((a) => q(a)) && (t.dispatchCommand(ve, { ...e, url: s }), o.preventDefault(), !0);
544
+ if (!g(i) || i.isCollapsed() || !F(o, ClipboardEvent) || o.clipboardData === null) return !1;
545
+ const r = o.clipboardData.getData("text");
546
+ return !!n(r) && !i.getNodes().some((s) => q(s)) && (t.dispatchCommand(ve, { ...e, url: r }), o.preventDefault(), !0);
545
547
  }, he) : () => {
546
548
  });
547
549
  }, [t, n, e]), null;
548
550
  }
549
551
  function Bn({ newTab: n = !0, disabled: e = !1 }) {
550
- const [t] = P();
552
+ const [t] = T();
551
553
  return k(() => {
552
554
  const o = (r) => {
553
555
  const s = r.target;
554
- if (!Me(s)) return;
556
+ if (!Oe(s)) return;
555
557
  const a = Dt(s);
556
558
  if (a === null) return;
557
559
  let l = null, u = null;
@@ -559,7 +561,7 @@ function Bn({ newTab: n = !0, disabled: e = !1 }) {
559
561
  const f = ne(s);
560
562
  if (f !== null) {
561
563
  const C = de(f, q);
562
- if (!e) if (Ht(C)) l = C.sanitizeUrl(C.getURL()), u = C.getTarget();
564
+ if (!e) if (jt(C)) l = C.sanitizeUrl(C.getURL()), u = C.getTarget();
563
565
  else {
564
566
  const y = function(v, x) {
565
567
  let E = v;
@@ -585,8 +587,8 @@ function Bn({ newTab: n = !0, disabled: e = !1 }) {
585
587
  });
586
588
  }, [t, n, e]), null;
587
589
  }
588
- const te = 0, ue = 1, ce = 2, $ = 0, Un = 1, De = 2, Hn = 3, Wn = 4;
589
- function jn(n, e, t, o, i) {
590
+ const te = 0, ue = 1, ce = 2, $ = 0, Un = 1, De = 2, jn = 3, Hn = 4;
591
+ function Wn(n, e, t, o, i) {
590
592
  if (n === null || t.size === 0 && o.size === 0 && !i) return $;
591
593
  const r = e._selection, s = n._selection;
592
594
  if (i) return Un;
@@ -599,38 +601,38 @@ function jn(n, e, t, o, i) {
599
601
  }
600
602
  for (const [L, S] of _) {
601
603
  if (!S) continue;
602
- const T = N.get(L);
603
- T === void 0 || Fe(T) || b.push(T);
604
+ const R = N.get(L);
605
+ R === void 0 || Me(R) || b.push(R);
604
606
  }
605
607
  return b;
606
608
  }(e, t, o);
607
609
  if (a.length === 0) return $;
608
610
  if (a.length > 1) {
609
611
  const E = e._nodeMap, w = E.get(r.anchor.key), _ = E.get(s.anchor.key);
610
- return w && _ && !n._nodeMap.has(w.__key) && I(w) && w.__text.length === 1 && r.anchor.offset === 1 ? De : $;
612
+ return w && _ && !n._nodeMap.has(w.__key) && O(w) && w.__text.length === 1 && r.anchor.offset === 1 ? De : $;
611
613
  }
612
614
  const l = a[0], u = n._nodeMap.get(l.__key);
613
- if (!I(u) || !I(l) || u.__mode !== l.__mode) return $;
615
+ if (!O(u) || !O(l) || u.__mode !== l.__mode) return $;
614
616
  const c = u.__text, d = l.__text;
615
617
  if (c === d) return $;
616
618
  const f = r.anchor, C = s.anchor;
617
619
  if (f.key !== C.key || f.type !== "text") return $;
618
620
  const y = f.offset, v = C.offset, x = d.length - c.length;
619
- return x === 1 && v === y - 1 ? De : x === -1 && v === y + 1 ? Hn : x === -1 && v === y ? Wn : $;
621
+ return x === 1 && v === y - 1 ? De : x === -1 && v === y + 1 ? jn : x === -1 && v === y ? Hn : $;
620
622
  }
621
623
  function qn(n, e) {
622
624
  let t = Date.now(), o = $;
623
625
  return (i, r, s, a, l, u) => {
624
626
  const c = Date.now();
625
627
  if (u.has("historic")) return o = $, t = c, ce;
626
- const d = jn(i, r, a, l, n.isComposing()), f = (() => {
628
+ const d = Wn(i, r, a, l, n.isComposing()), f = (() => {
627
629
  const C = s === null || s.editor === n, y = u.has("history-push");
628
630
  if (!y && C && u.has("history-merge")) return te;
629
631
  if (i === null) return ue;
630
632
  const v = r._selection;
631
633
  return a.size > 0 || l.size > 0 ? y === !1 && d !== $ && d === o && c < t + e && C || a.size === 1 && function(x, E, w) {
632
634
  const _ = E._nodeMap.get(x), N = w._nodeMap.get(x), b = E._selection, L = w._selection;
633
- return !(g(b) && g(L) && b.anchor.type === "element" && b.focus.type === "element" && L.anchor.type === "text" && L.focus.type === "text" || !I(_) || !I(N) || _.__parent !== N.__parent) && JSON.stringify(E.read(() => _.exportJSON())) === JSON.stringify(w.read(() => N.exportJSON()));
635
+ return !(g(b) && g(L) && b.anchor.type === "element" && b.focus.type === "element" && L.anchor.type === "text" && L.focus.type === "text" || !O(_) || !O(N) || _.__parent !== N.__parent) && JSON.stringify(E.read(() => _.exportJSON())) === JSON.stringify(w.read(() => N.exportJSON()));
634
636
  }(Array.from(a)[0], i, r) ? te : ue : v !== null ? te : ce;
635
637
  })();
636
638
  return t = c, o = d, f;
@@ -641,25 +643,25 @@ function $e(n) {
641
643
  }
642
644
  function Jn(n, e, t) {
643
645
  const o = qn(n, t);
644
- return H(n.registerCommand(It, () => (function(r, s) {
646
+ return j(n.registerCommand(It, () => (function(r, s) {
645
647
  const a = s.redoStack, l = s.undoStack;
646
648
  if (l.length !== 0) {
647
649
  const u = s.current, c = l.pop();
648
- u !== null && (a.push(u), r.dispatchCommand(G, !0)), l.length === 0 && r.dispatchCommand(Y, !1), s.current = c || null, c && c.editor.setEditorState(c.editorState, { tag: "historic" });
650
+ u !== null && (a.push(u), r.dispatchCommand(G, !0)), l.length === 0 && r.dispatchCommand(Q, !1), s.current = c || null, c && c.editor.setEditorState(c.editorState, { tag: "historic" });
649
651
  }
650
652
  }(n, e), !0), m), n.registerCommand(Rt, () => (function(r, s) {
651
653
  const a = s.redoStack, l = s.undoStack;
652
654
  if (a.length !== 0) {
653
655
  const u = s.current;
654
- u !== null && (l.push(u), r.dispatchCommand(Y, !0));
656
+ u !== null && (l.push(u), r.dispatchCommand(Q, !0));
655
657
  const c = a.pop();
656
658
  a.length === 0 && r.dispatchCommand(G, !1), s.current = c || null, c && c.editor.setEditorState(c.editorState, { tag: "historic" });
657
659
  }
658
- }(n, e), !0), m), n.registerCommand(Tt, () => ($e(e), !1), m), n.registerCommand(Pt, () => ($e(e), n.dispatchCommand(G, !1), n.dispatchCommand(Y, !1), !0), m), n.registerUpdateListener(({ editorState: r, prevEditorState: s, dirtyLeaves: a, dirtyElements: l, tags: u }) => {
660
+ }(n, e), !0), m), n.registerCommand(Tt, () => ($e(e), !1), m), n.registerCommand(Pt, () => ($e(e), n.dispatchCommand(G, !1), n.dispatchCommand(Q, !1), !0), m), n.registerUpdateListener(({ editorState: r, prevEditorState: s, dirtyLeaves: a, dirtyElements: l, tags: u }) => {
659
661
  const c = e.current, d = e.redoStack, f = e.undoStack, C = c === null ? null : c.editorState;
660
662
  if (c !== null && r === C) return;
661
663
  const y = o(s, r, c, a, l, u);
662
- if (y === ue) d.length !== 0 && (e.redoStack = [], n.dispatchCommand(G, !1)), c !== null && (f.push({ ...c }), n.dispatchCommand(Y, !0));
664
+ if (y === ue) d.length !== 0 && (e.redoStack = [], n.dispatchCommand(G, !1)), c !== null && (f.push({ ...c }), n.dispatchCommand(Q, !0));
663
665
  else if (y === ce) return;
664
666
  e.current = { editor: n, editorState: r };
665
667
  }));
@@ -668,16 +670,16 @@ function Vn() {
668
670
  return { current: null, redoStack: [], undoStack: [] };
669
671
  }
670
672
  function Xn({ delay: n, externalHistoryState: e }) {
671
- const [t] = P();
673
+ const [t] = T();
672
674
  return function(o, i, r = 1e3) {
673
675
  const s = J(() => i || Vn(), [i]);
674
676
  k(() => Jn(o, s, r), [r, o, s]);
675
677
  }(t, e, n), null;
676
678
  }
677
679
  function Gn({ hasCellMerge: n = !0, hasCellBackgroundColor: e = !0, hasTabHandler: t = !0, hasHorizontalScroll: o = !1 }) {
678
- const [i] = P();
680
+ const [i] = T();
679
681
  return k(() => {
680
- jt(i, o);
682
+ Wt(i, o);
681
683
  }, [i, o]), k(() => qt(i), [i]), k(() => Jt(i, t), [i, t]), k(() => {
682
684
  if (!n) return Vt(i);
683
685
  }, [i, n]), k(() => {
@@ -686,7 +688,7 @@ function Gn({ hasCellMerge: n = !0, hasCellBackgroundColor: e = !0, hasTabHandle
686
688
  });
687
689
  }, [i, e, n]), null;
688
690
  }
689
- const qe = 200, Yn = ({
691
+ const qe = 200, Qn = ({
690
692
  currentLanguage: n = "NL",
691
693
  initialValue: e = "",
692
694
  placeholder: t = "",
@@ -708,17 +710,17 @@ const qe = 200, Yn = ({
708
710
  onError(b) {
709
711
  throw b;
710
712
  },
711
- nodes: [Ae, ze, Be, Wt, Ue, Xt, Gt],
713
+ nodes: [Fe, ze, Be, Ht, Ue, Xt, Gt],
712
714
  editorState: (b) => {
713
- const S = new DOMParser().parseFromString(e, "text/html"), T = zt(b, S), F = z();
714
- if (F.clear(), nn(e))
715
- T.forEach((B) => {
716
- F.append(B);
715
+ const S = new DOMParser().parseFromString(e, "text/html"), R = zt(b, S), K = z();
716
+ if (K.clear(), nn(e))
717
+ R.forEach((B) => {
718
+ K.append(B);
717
719
  });
718
720
  else {
719
721
  const B = Re();
720
- T.forEach((D, V) => {
721
- V === 0 ? (B.append(D), F.append(B)) : F.append(D);
722
+ R.forEach((D, V) => {
723
+ V === 0 ? (B.append(D), K.append(B)) : K.append(D);
722
724
  });
723
725
  }
724
726
  }
@@ -733,29 +735,29 @@ const qe = 200, Yn = ({
733
735
  }, [n, c]), k(() => {
734
736
  const b = e.replace(/<br\s*\/?>|&nbsp;/gi, " ").replace(/<\/?[^>]+(>|$)|&[a-z]+;/g, "").replace(/\s+/g, " ").trim();
735
737
  y(_(b));
736
- }, []), /* @__PURE__ */ O("div", { className: R.editor__container, children: [
737
- /* @__PURE__ */ O("div", { className: R.editor__header, children: [
738
+ }, []), /* @__PURE__ */ A("div", { className: I.editor__container, children: [
739
+ /* @__PURE__ */ A("div", { className: I.editor__header, children: [
738
740
  /* @__PURE__ */ h(un, { label: o, info: i, required: r }),
739
- /* @__PURE__ */ O("div", { className: R["editor__header-word-count"], children: [
740
- /* @__PURE__ */ h("span", { className: en({ [R["editor__header-word-count--alert"]]: C > l }), children: C }),
741
+ /* @__PURE__ */ A("div", { className: I["editor__header-word-count"], children: [
742
+ /* @__PURE__ */ h("span", { className: en({ [I["editor__header-word-count--alert"]]: C > l }), children: C }),
741
743
  " / ",
742
744
  l
743
745
  ] })
744
746
  ] }),
745
- /* @__PURE__ */ h("div", { className: R.editor, children: /* @__PURE__ */ O(pn, { initialConfig: w, children: [
747
+ /* @__PURE__ */ h("div", { className: I.editor, children: /* @__PURE__ */ A(pn, { initialConfig: w, children: [
746
748
  /* @__PURE__ */ h(on, { editorScrollPosition: v }),
747
- /* @__PURE__ */ O("div", { className: R["editor__field-wrapper"], children: [
749
+ /* @__PURE__ */ A("div", { className: I["editor__field-wrapper"], children: [
748
750
  /* @__PURE__ */ h(
749
751
  Ln,
750
752
  {
751
753
  contentEditable: /* @__PURE__ */ h(
752
754
  Tn,
753
755
  {
754
- className: R.editor__field,
756
+ className: I.editor__field,
755
757
  "aria-label": d.common.rteAriaLabel,
756
758
  "aria-placeholder": t,
757
759
  title: d.common.rteTitle,
758
- placeholder: /* @__PURE__ */ h("div", { className: R.editor__placeholder, children: t }),
760
+ placeholder: /* @__PURE__ */ h("div", { className: I.editor__placeholder, children: t }),
759
761
  spellCheck: !1,
760
762
  id: "rteEditor",
761
763
  style: { height: `${a}`, maxHeight: `${a}` },
@@ -763,17 +765,17 @@ const qe = 200, Yn = ({
763
765
  ref: E
764
766
  }
765
767
  ),
766
- placeholder: /* @__PURE__ */ h("div", { className: R.editor__placeholder, children: t }),
767
- ErrorBoundary: Fn
768
+ placeholder: /* @__PURE__ */ h("div", { className: I.editor__placeholder, children: t }),
769
+ ErrorBoundary: Mn
768
770
  }
769
771
  ),
770
772
  /* @__PURE__ */ h(Gn, {}),
771
773
  /* @__PURE__ */ h(Xn, {}),
772
- /* @__PURE__ */ h(An, {}),
773
- /* @__PURE__ */ h(zn, { validateUrl: Yt }),
774
- /* @__PURE__ */ h(Qt, { matchers: Zt }),
774
+ /* @__PURE__ */ h(Fn, {}),
775
+ /* @__PURE__ */ h(zn, { validateUrl: Qt }),
776
+ /* @__PURE__ */ h(Yt, { matchers: Zt }),
775
777
  /* @__PURE__ */ h(Bn, {}),
776
- /* @__PURE__ */ h(On, { onChange: N }),
778
+ /* @__PURE__ */ h(An, { onChange: N }),
777
779
  /* @__PURE__ */ h(fn, {})
778
780
  ] })
779
781
  ] }) }),
@@ -790,7 +792,7 @@ const qe = 200, Yn = ({
790
792
  maxWords: a = qe,
791
793
  onChange: l
792
794
  }) => /* @__PURE__ */ h(cn, { children: /* @__PURE__ */ h(
793
- Yn,
795
+ Qn,
794
796
  {
795
797
  currentLanguage: n,
796
798
  initialValue: e,
@@ -804,7 +806,7 @@ const qe = 200, Yn = ({
804
806
  }
805
807
  ) });
806
808
  export {
807
- Yn as Rte,
809
+ Qn as Rte,
808
810
  zr as RteEditor
809
811
  };
810
812
  //# sourceMappingURL=RteEditor.js.map