@uva-glass/component-library 3.2.0 → 3.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/dist/{Lexical.prod-Bu-Iw9VX.js → Lexical.prod-CniF7zEE.js} +670 -666
  2. package/dist/Lexical.prod-CniF7zEE.js.map +1 -0
  3. package/dist/{LexicalClipboard.prod-C5dHfEke.js → LexicalClipboard.prod-BXVNkwwS.js} +42 -42
  4. package/dist/{LexicalClipboard.prod-C5dHfEke.js.map → LexicalClipboard.prod-BXVNkwwS.js.map} +1 -1
  5. package/dist/{LexicalLink.prod-DdERpPPj.js → LexicalLink.prod-Du8ZoNsh.js} +3 -3
  6. package/dist/{LexicalLink.prod-DdERpPPj.js.map → LexicalLink.prod-Du8ZoNsh.js.map} +1 -1
  7. package/dist/{LexicalList.prod-CzJqqstH.js → LexicalList.prod-BUcoZhe4.js} +35 -35
  8. package/dist/{LexicalList.prod-CzJqqstH.js.map → LexicalList.prod-BUcoZhe4.js.map} +1 -1
  9. package/dist/{LexicalSelection.prod-CkM-3E0b.js → LexicalSelection.prod-BfAlhGGm.js} +25 -25
  10. package/dist/{LexicalSelection.prod-CkM-3E0b.js.map → LexicalSelection.prod-BfAlhGGm.js.map} +1 -1
  11. package/dist/{LexicalTable.prod-BsmIydKv.js → LexicalTable.prod-CYafu_j9.js} +458 -453
  12. package/dist/LexicalTable.prod-CYafu_j9.js.map +1 -0
  13. package/dist/{LexicalUtils.prod-BVZbsLIa.js → LexicalUtils.prod-DVr8VsHc.js} +36 -36
  14. package/dist/{LexicalUtils.prod-BVZbsLIa.js.map → LexicalUtils.prod-DVr8VsHc.js.map} +1 -1
  15. package/dist/{TablePlugin-DKzssVbg.js → TablePlugin-MjKuocl4.js} +53 -53
  16. package/dist/{TablePlugin-DKzssVbg.js.map → TablePlugin-MjKuocl4.js.map} +1 -1
  17. package/dist/components/Accordion/Accordion.test.js +2 -2
  18. package/dist/components/AccordionCard/AccordionCard.test.js +2 -2
  19. package/dist/components/ActionList/ActionList.test.js +2 -2
  20. package/dist/components/AppStatusBar/AppStatusBar.test.js +1 -1
  21. package/dist/components/Attention/Attention.test.js +1 -1
  22. package/dist/components/Backdrop/Backdrop.test.js +1 -1
  23. package/dist/components/Buttons/Button.stories.js +1 -1
  24. package/dist/components/Buttons/Button.test.js +1 -1
  25. package/dist/components/Buttons/LinkButton.stories.js +1 -1
  26. package/dist/components/Buttons/LinkButton.test.js +1 -1
  27. package/dist/components/Buttons/MenuButton.stories.js +1 -1
  28. package/dist/components/Buttons/MenuButton.test.js +1 -1
  29. package/dist/components/Card/Card.test.js +1 -1
  30. package/dist/components/Checkbox/Checkbox.stories.js +1 -1
  31. package/dist/components/Checkbox/Checkbox.test.js +1 -1
  32. package/dist/components/CheckboxButton/CheckboxButton.stories.js +1 -1
  33. package/dist/components/CheckboxButton/CheckboxButton.test.js +1 -1
  34. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +1 -1
  35. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js +1 -1
  36. package/dist/components/CheckboxTree/CheckboxTree.js +1 -1
  37. package/dist/components/CheckboxTree/CheckboxTree.stories.js +1 -1
  38. package/dist/components/Chip/Chip.stories.js +1 -1
  39. package/dist/components/Drawer/Drawer.stories.js +1 -1
  40. package/dist/components/FeedbackBar/FeedbackBar.test.js +1 -1
  41. package/dist/components/FormInput/FormInput.js +1 -1
  42. package/dist/components/FormInput/FormInput.stories.js +1 -1
  43. package/dist/components/IconButton/IconButton.stories.js +1 -1
  44. package/dist/components/InputField/InputField.stories.js +2 -2
  45. package/dist/components/Label/Label.test.js +1 -1
  46. package/dist/components/ModalDialog/ModalDialog.stories.js +1 -1
  47. package/dist/components/MultiSelect/MultiSelect.js +1 -1
  48. package/dist/components/MultiSelect/MultiSelect.stories.js +2 -2
  49. package/dist/components/MultiSelect/components/MultiSelectHeader.js +1 -1
  50. package/dist/components/MultiSelect/index.js +1 -1
  51. package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +1 -1
  52. package/dist/components/OverlayStepBar/OverlayStepBar.js +1 -1
  53. package/dist/components/PeriodSelector/PeriodSelector.js +1 -1
  54. package/dist/components/PeriodSelector/PeriodSelector.stories.js +1 -1
  55. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +2 -2
  56. package/dist/components/RteEditor/EditorHeader/EditorHeader.js +1 -1
  57. package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +11 -11
  58. package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +2 -2
  59. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +2 -2
  60. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +1 -1
  61. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +29 -29
  62. package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
  63. package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +26 -26
  64. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +5 -5
  65. package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +1 -1
  66. package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +3 -3
  67. package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +14 -14
  68. package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
  69. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +22 -22
  70. package/dist/components/RteEditor/Plugins/index.js +1 -1
  71. package/dist/components/RteEditor/RteEditor.js +116 -116
  72. package/dist/components/RteEditor/RteEditor.js.map +1 -1
  73. package/dist/components/RteEditor/helpers.js +4 -4
  74. package/dist/components/SelectListbox/SelectListBox.stories.js +1 -1
  75. package/dist/components/Sortable/Sortable.stories.js +1 -1
  76. package/dist/components/StatusBadge/StatusBadge.test.js +1 -1
  77. package/dist/components/Timeline/Timeline.test.js +2 -2
  78. package/dist/components/ToggleSwitch/ToggleSwitch.stories.js +1 -1
  79. package/dist/components/VarIndicator/VarIndicator.stories.js +1 -1
  80. package/dist/components/VarIndicator/VarIndicator.test.js +2 -2
  81. package/dist/components/index.js +1 -1
  82. package/dist/{helpers-D13uK95u.js → helpers-ChM6xtQG.js} +63 -63
  83. package/dist/{helpers-D13uK95u.js.map → helpers-ChM6xtQG.js.map} +1 -1
  84. package/dist/{index-DMVXQIB9.js → index-COab4Oy9.js} +2 -2
  85. package/dist/{index-DMVXQIB9.js.map → index-COab4Oy9.js.map} +1 -1
  86. package/dist/{index-C7jFUWYs.js → index-DXR-TB1d.js} +2155 -2135
  87. package/dist/index-DXR-TB1d.js.map +1 -0
  88. package/dist/index.js +1 -1
  89. package/dist/{react.esm-BOUd0cvD.js → react.esm-B8teOYlo.js} +2 -2
  90. package/dist/{react.esm-BOUd0cvD.js.map → react.esm-B8teOYlo.js.map} +1 -1
  91. package/dist/storybook__react.d.js +641 -637
  92. package/dist/storybook__react.d.js.map +1 -1
  93. package/dist/{test-utils-uaSbIYda.js → test-utils-Brqoydie.js} +279 -259
  94. package/dist/{test-utils-uaSbIYda.js.map → test-utils-Brqoydie.js.map} +1 -1
  95. package/package.json +18 -18
  96. package/dist/Lexical.prod-Bu-Iw9VX.js.map +0 -1
  97. package/dist/LexicalTable.prod-BsmIydKv.js.map +0 -1
  98. package/dist/index-C7jFUWYs.js.map +0 -1
@@ -1,22 +1,22 @@
1
- import { jsx as h, jsxs as A, Fragment as Pe } from "react/jsx-runtime";
1
+ import { jsx as h, jsxs as F, Fragment as Pe } from "react/jsx-runtime";
2
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";
3
+ import { aF as Te, ae as z, w as Re, a as p, al as W, h as q, N as Xe, Y as M, c as g, T as Ye, E as m, aG as Ge, ad as Ie, o as Qe, j as Me, aH as Ze, K as et, aE as P, aB as tt, aI as nt, aJ as rt, aK as ot, s as ne, aL as it, aM as st, a0 as at, C as lt, u as ut, y as ct, aN as dt, aO as fe, b as me, I as ft, F as re, G as mt, a1 as Oe, aP as pe, x as pt, v as gt, p as ht, aQ as ge, q as Ct, aR as yt, aS as Et, aT as wt, aA as vt, R as bt, O as St, aU as _t, S as kt, D as xt, z as Nt, g as Lt, P as he, aV as Dt, n as $t, aq as Y, ap as G, aW as Pt, aX as Tt, as as Rt, ar as It } from "../../Lexical.prod-CniF7zEE.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 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";
5
+ import { useMemo as J, useLayoutEffect as j, useEffect as k, useState as O, useRef as Ke, Suspense as Mt, forwardRef as Fe, useCallback as Ot } from "react";
6
+ import { j as U, L as A, y as Kt, w as de } from "../../LexicalUtils.prod-DVr8VsHc.js";
7
+ import { flushSync as Ft, createPortal as At } from "react-dom";
8
+ import { D as Ce, _ as ye, h as zt, m as Bt } from "../../LexicalClipboard.prod-BXVNkwwS.js";
9
+ import { W as Ee, G as we } from "../../LexicalSelection.prod-BfAlhGGm.js";
10
+ import { j as Ae, K as ze, i as jt } from "../../LexicalList.prod-BUcoZhe4.js";
11
+ import { h as Be, O as ve, N as ie, d as Ut, p as Ht } from "../../LexicalLink.prod-Du8ZoNsh.js";
12
+ import { Q as Wt, d as qt, h as Jt, u as Vt, y as je, O as Xt, Z as Yt } from "../../LexicalTable.prod-CYafu_j9.js";
13
+ import { a as Gt, w as Qt, M as Zt } from "../../helpers-ChM6xtQG.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
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-DKzssVbg.js";
19
+ import "../../TablePlugin-MjKuocl4.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 je = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, mn = je ? U : k, Y = { tag: "history-merge" };
44
+ const Ue = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, mn = Ue ? j : k, Q = { 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 = je ? document.activeElement : null;
55
+ const v = Ue ? document.activeElement : null;
56
56
  (p() !== null || v !== null && v === d.getRootElement()) && y.select();
57
57
  }
58
- }, Y);
58
+ }, Q);
59
59
  else if (f !== null) switch (typeof f) {
60
60
  case "string": {
61
61
  const C = d.parseEditorState(f);
62
- d.setEditorState(C, Y);
62
+ d.setEditorState(C, Q);
63
63
  break;
64
64
  }
65
65
  case "object":
66
- d.setEditorState(f, Y);
66
+ d.setEditorState(f, Q);
67
67
  break;
68
68
  case "function":
69
69
  d.update(() => {
70
70
  z().isEmpty() && f(d);
71
- }, Y);
71
+ }, Q);
72
72
  }
73
73
  }
74
74
  }(c, a), [c, u];
@@ -78,13 +78,13 @@ function pn({ initialConfig: n, children: e }) {
78
78
  i.setEditable(o === void 0 || o);
79
79
  }, []), h(Ve.Provider, { value: t, children: e });
80
80
  }
81
- const gn = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? U : k;
81
+ const gn = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? j : k;
82
82
  function hn(n) {
83
83
  return { initialValueFn: () => n.isEditable(), subscribe: (e) => n.registerEditableListener(e) };
84
84
  }
85
85
  function Cn() {
86
86
  return function(n) {
87
- const [e] = T(), 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] = O(() => 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) => {
@@ -113,7 +113,7 @@ function wn(n) {
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 (!O(l)) return !1;
116
+ if (!M(l)) return !1;
117
117
  }
118
118
  }
119
119
  }
@@ -145,11 +145,11 @@ function vn(n) {
145
145
  const v = p();
146
146
  if (g(v)) {
147
147
  const x = v.anchor;
148
- let E = x.getNode(), w = 0, _ = 0;
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
- w = f, _ = f + C;
148
+ let E = x.getNode(), w = 0, S = 0;
149
+ if (M(E) && u >= 0 && c >= 0 && (w = u, S = u + c, v.setTextNodeRange(E, w, E, S)), w === S && d === "" || (v.insertRawText(d), E = x.getNode()), M(E)) {
150
+ w = f, S = f + C;
151
151
  const N = E.getTextContentSize();
152
- w = w > N ? N : w, _ = _ > N ? N : _, v.setTextNodeRange(E, w, E, _);
152
+ w = w > N ? N : w, S = S > N ? N : S, v.setTextNodeRange(E, w, E, S);
153
153
  }
154
154
  o.stopImmediatePropagation();
155
155
  }
@@ -174,10 +174,10 @@ function be(n, e) {
174
174
  }
175
175
  return null;
176
176
  }
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();
177
+ const H = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, bn = H && "documentMode" in document ? document.documentMode : null, Sn = !(!H || !("InputEvent" in window) || bn) && "getTargetRanges" in new window.InputEvent("input"), _n = H && /Version\/[\d.]+.*Safari/.test(navigator.userAgent), Se = H && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, kn = H && /^(?=.*Chrome).*/i.test(navigator.userAgent), xn = H && /AppleWebKit\/[\d.]+/.test(navigator.userAgent) && !kn, _e = Qe();
178
178
  function Z(n) {
179
179
  let e = null;
180
- if (F(n, DragEvent) ? e = n.dataTransfer : F(n, ClipboardEvent) && (e = n.clipboardData), e === null) return [!1, [], !1];
180
+ if (A(n, DragEvent) ? e = n.dataTransfer : A(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
  }
@@ -203,7 +203,7 @@ 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 j(n.registerCommand(Lt, (e) => {
206
+ return U(n.registerCommand(Lt, (e) => {
207
207
  const t = p();
208
208
  return !!P(t) && (t.clear(), !0);
209
209
  }, 0), n.registerCommand(re, (e) => {
@@ -228,10 +228,10 @@ function Nn(n) {
228
228
  }
229
229
  }
230
230
  return !0;
231
- }, m), n.registerCommand(St, () => {
231
+ }, m), n.registerCommand(_t, () => {
232
232
  const e = p();
233
233
  return !!g(e) && (e.removeText(), !0);
234
- }, m), n.registerCommand(_t, (e) => {
234
+ }, m), n.registerCommand(St, (e) => {
235
235
  const t = p();
236
236
  return !!g(t) && (t.formatText(e), !0);
237
237
  }, m), n.registerCommand(bt, (e) => {
@@ -305,9 +305,9 @@ function Nn(n) {
305
305
  const t = p();
306
306
  if (g(t)) {
307
307
  const { anchor: o } = t, i = o.getNode();
308
- if (t.isCollapsed() && o.offset === 0 && !Me(i) && Kt(i).getIndent() > 0)
308
+ if (t.isCollapsed() && o.offset === 0 && !Oe(i) && Kt(i).getIndent() > 0)
309
309
  return e.preventDefault(), n.dispatchCommand(pe, void 0);
310
- if (_e && navigator.language === "ko-KR") return !1;
310
+ if (Se && navigator.language === "ko-KR") return !1;
311
311
  } else if (!P(t)) return !1;
312
312
  return e.preventDefault(), n.dispatchCommand(re, !0);
313
313
  }, m), n.registerCommand(ft, (e) => {
@@ -318,7 +318,7 @@ function Nn(n) {
318
318
  const t = p();
319
319
  if (!g(t)) return !1;
320
320
  if (se(t), e !== null) {
321
- if ((_e || Sn || xn) && _n) return !1;
321
+ if ((Se || _n || xn) && Sn) return !1;
322
322
  if (e.preventDefault(), e.shiftKey) return n.dispatchCommand(fe, !1);
323
323
  }
324
324
  return n.dispatchCommand(me, void 0);
@@ -333,7 +333,7 @@ function Nn(n) {
333
333
  const { offset: r, node: s } = i, a = ne(s);
334
334
  if (a !== null) {
335
335
  const l = at();
336
- if (O(a)) l.anchor.set(a.getKey(), r, "text"), l.focus.set(a.getKey(), r, "text");
336
+ if (M(a)) l.anchor.set(a.getKey(), r, "text"), l.focus.set(a.getKey(), r, "text");
337
337
  else {
338
338
  const c = a.getParentOrThrow().getKey(), d = a.getIndexWithinParent() + 1;
339
339
  l.anchor.set(c, d, "element"), l.focus.set(c, d, "element");
@@ -341,7 +341,7 @@ function Nn(n) {
341
341
  const u = lt(l);
342
342
  ut(u);
343
343
  }
344
- n.dispatchCommand(Se, t);
344
+ n.dispatchCommand(_e, t);
345
345
  }
346
346
  return e.preventDefault(), !0;
347
347
  }
@@ -359,36 +359,36 @@ function Nn(n) {
359
359
  W(r) && e.preventDefault();
360
360
  }
361
361
  return !0;
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(() => {
362
+ }, 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) {
363
+ await ye(o, A(t, ClipboardEvent) ? t : null), o.update(() => {
364
364
  const i = p();
365
365
  g(i) ? i.removeText() : P(i) && i.getNodes().forEach((r) => r.remove());
366
366
  });
367
367
  }(e, n), !0), m), n.registerCommand(Ie, (e) => {
368
368
  const [, t, o] = Z(e);
369
- return t.length > 0 && !o ? (n.dispatchCommand(Se, t), !0) : Oe(e.target) && Ze(e.target) ? !1 : p() !== null && (function(i, r) {
369
+ return t.length > 0 && !o ? (n.dispatchCommand(_e, t), !0) : Me(e.target) && Ze(e.target) ? !1 : p() !== null && (function(i, r) {
370
370
  i.preventDefault(), r.update(() => {
371
- const s = p(), a = F(i, InputEvent) || F(i, KeyboardEvent) ? null : i.clipboardData;
371
+ const s = p(), a = A(i, InputEvent) || A(i, KeyboardEvent) ? null : i.clipboardData;
372
372
  a != null && s !== null && Ce(a, s, r);
373
373
  }, { tag: "paste" });
374
374
  }(e, n), !0);
375
- }, m), n.registerCommand(Qe, (e) => {
375
+ }, m), n.registerCommand(Ge, (e) => {
376
376
  const t = p();
377
377
  return g(t) && se(t), !1;
378
- }, m), n.registerCommand(Ge, (e) => {
378
+ }, m), n.registerCommand(Ye, (e) => {
379
379
  const t = p();
380
380
  return g(t) && se(t), !1;
381
381
  }, m));
382
382
  }
383
- const ae = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? U : k;
383
+ const ae = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? j : k;
384
384
  function xe(n) {
385
385
  return n.getEditorState().read(He(n.isComposing()));
386
386
  }
387
387
  function Ln({ contentEditable: n, placeholder: e = null, ErrorBoundary: t }) {
388
388
  const [o] = T(), i = function(r, s) {
389
- const [a, l] = M(() => r.getDecorators());
389
+ const [a, l] = O(() => r.getDecorators());
390
390
  return ae(() => r.registerDecoratorListener((u) => {
391
- At(() => {
391
+ Ft(() => {
392
392
  l(u);
393
393
  });
394
394
  }), [r]), k(() => {
@@ -396,25 +396,25 @@ function Ln({ contentEditable: n, placeholder: e = null, ErrorBoundary: t }) {
396
396
  }, [r]), J(() => {
397
397
  const u = [], c = Object.keys(a);
398
398
  for (let d = 0; d < c.length; d++) {
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));
399
+ const f = c[d], C = h(s, { onError: (v) => r._onError(v), children: h(Mt, { fallback: null, children: a[f] }) }), y = r.getElementByKey(f);
400
+ y !== null && u.push(At(C, y, f));
401
401
  }
402
402
  return u;
403
403
  }, [s, a, r]);
404
404
  }(o, t);
405
405
  return function(r) {
406
- ae(() => j(Nn(r), vn(r)), [r]);
407
- }(o), A(Pe, { children: [n, h(Dn, { content: e }), i] });
406
+ ae(() => U(Nn(r), vn(r)), [r]);
407
+ }(o), F(Pe, { children: [n, h(Dn, { content: e }), i] });
408
408
  }
409
409
  function Dn({ content: n }) {
410
410
  const [e] = T(), t = function(i) {
411
- const [r, s] = M(() => xe(i));
411
+ const [r, s] = O(() => xe(i));
412
412
  return ae(() => {
413
413
  function a() {
414
414
  const l = xe(i);
415
415
  s(l);
416
416
  }
417
- return a(), j(i.registerUpdateListener(() => {
417
+ return a(), U(i.registerUpdateListener(() => {
418
418
  a();
419
419
  }), i.registerEditableListener(() => {
420
420
  a();
@@ -423,9 +423,9 @@ function Dn({ content: n }) {
423
423
  }(e), o = Cn();
424
424
  return t ? typeof n == "function" ? n(o) : n : null;
425
425
  }
426
- const We = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? U : k;
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) {
428
- const [S, R] = M(n.isEditable()), K = Mt((D) => {
426
+ const We = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? j : k;
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: S, "data-testid": N, ...b }, L) {
428
+ const [_, R] = O(n.isEditable()), K = Ot((D) => {
429
429
  D && D.ownerDocument && D.ownerDocument.defaultView ? n.setRootElement(D) : n.setRootElement(null);
430
430
  }, [n]), B = J(() => /* @__PURE__ */ function(...D) {
431
431
  return (V) => {
@@ -436,33 +436,33 @@ function $n({ editor: n, ariaActiveDescendant: e, ariaAutoComplete: t, ariaContr
436
436
  }(L, K), [K, L]);
437
437
  return We(() => (R(n.isEditable()), n.registerEditableListener((D) => {
438
438
  R(D);
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 });
439
+ })), [n]), h("div", { "aria-activedescendant": _ ? e : void 0, "aria-autocomplete": _ ? t : "none", "aria-controls": _ ? o : void 0, "aria-describedby": i, ...r != null ? { "aria-errormessage": r } : {}, "aria-expanded": _ && x === "combobox" ? !!s : void 0, ...a != null ? { "aria-invalid": a } : {}, "aria-label": l, "aria-labelledby": u, "aria-multiline": c, "aria-owns": _ ? d : void 0, "aria-readonly": !_ || void 0, "aria-required": f, autoCapitalize: C, className: y, contentEditable: _, "data-testid": N, id: v, ref: B, role: _ ? x : void 0, spellCheck: E, style: w, tabIndex: S, ...b });
440
440
  }
441
- const Pn = Ae($n);
441
+ const Pn = Fe($n);
442
442
  function Ne(n) {
443
443
  return n.getEditorState().read(He(n.isComposing()));
444
444
  }
445
- const Tn = Ae(Rn);
445
+ const Tn = Fe(Rn);
446
446
  function Rn(n, e) {
447
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 })] });
448
+ return F(Pe, { children: [h(Pn, { editor: i, ...o, ref: e }), t != null && h(In, { editor: i, content: t })] });
449
449
  }
450
450
  function In({ content: n, editor: e }) {
451
451
  const t = function(s) {
452
- const [a, l] = M(() => Ne(s));
452
+ const [a, l] = O(() => Ne(s));
453
453
  return We(() => {
454
454
  function u() {
455
455
  const c = Ne(s);
456
456
  l(c);
457
457
  }
458
- return u(), j(s.registerUpdateListener(() => {
458
+ return u(), U(s.registerUpdateListener(() => {
459
459
  u();
460
460
  }), s.registerEditableListener(() => {
461
461
  u();
462
462
  }));
463
463
  }, [s]), a;
464
- }(e), [o, i] = M(e.isEditable());
465
- if (U(() => (i(e.isEditable()), e.registerEditableListener((s) => {
464
+ }(e), [o, i] = O(e.isEditable());
465
+ if (j(() => (i(e.isEditable()), e.registerEditableListener((s) => {
466
466
  i(s);
467
467
  })), [e]), !t) return null;
468
468
  let r = null;
@@ -473,7 +473,7 @@ function le(n, e) {
473
473
  return t.__proto__ = o, t;
474
474
  }, le(n, e);
475
475
  }
476
- var Le = { error: null }, On = function(n) {
476
+ var Le = { error: null }, Mn = function(n) {
477
477
  var e, t;
478
478
  function o() {
479
479
  for (var r, s = arguments.length, a = new Array(s), l = 0; l < s; l++) a[l] = arguments[l];
@@ -508,11 +508,11 @@ var Le = { error: null }, On = function(n) {
508
508
  return this.props.children;
509
509
  }, o;
510
510
  }(oe.Component);
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 });
511
+ function On({ children: n, onError: e }) {
512
+ return h(Mn, { fallback: h("div", { style: { border: "1px solid #f00", color: "#f00", padding: "8px" }, children: "An error was thrown." }), onError: e, children: n });
513
513
  }
514
- const Kn = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? U : k;
515
- function An({ ignoreHistoryMergeTagChange: n = !0, ignoreSelectionChange: e = !1, onChange: t }) {
514
+ const Kn = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? j : k;
515
+ function Fn({ ignoreHistoryMergeTagChange: n = !0, ignoreSelectionChange: e = !1, onChange: t }) {
516
516
  const [o] = T();
517
517
  return Kn(() => {
518
518
  if (t) return o.registerUpdateListener(({ editorState: i, dirtyElements: r, dirtyLeaves: s, prevEditorState: a, tags: l }) => {
@@ -520,19 +520,19 @@ function An({ ignoreHistoryMergeTagChange: n = !0, ignoreSelectionChange: e = !1
520
520
  });
521
521
  }, [o, n, e, t]), null;
522
522
  }
523
- function Fn() {
523
+ function An() {
524
524
  const [n] = T();
525
525
  return k(() => {
526
- if (!n.hasNodes([Fe, ze])) throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor");
526
+ if (!n.hasNodes([Ae, ze])) throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor");
527
527
  }, [n]), function(e) {
528
- k(() => Ut(e), [e]);
528
+ k(() => jt(e), [e]);
529
529
  }(n), null;
530
530
  }
531
531
  function zn({ validateUrl: n, attributes: e }) {
532
532
  const [t] = T();
533
533
  return k(() => {
534
534
  if (!t.hasNodes([Be])) throw new Error("LinkPlugin: LinkNode not registered on editor");
535
- return j(t.registerCommand(ve, (o) => {
535
+ return U(t.registerCommand(ve, (o) => {
536
536
  if (o === null) return ie(o), !0;
537
537
  if (typeof o == "string") return !(n !== void 0 && !n(o)) && (ie(o, e), !0);
538
538
  {
@@ -541,7 +541,7 @@ function zn({ validateUrl: n, attributes: e }) {
541
541
  }
542
542
  }, he), n !== void 0 ? t.registerCommand(Ie, (o) => {
543
543
  const i = p();
544
- if (!g(i) || i.isCollapsed() || !F(o, ClipboardEvent) || o.clipboardData === null) return !1;
544
+ if (!g(i) || i.isCollapsed() || !A(o, ClipboardEvent) || o.clipboardData === null) return !1;
545
545
  const r = o.clipboardData.getData("text");
546
546
  return !!n(r) && !i.getNodes().some((s) => q(s)) && (t.dispatchCommand(ve, { ...e, url: r }), o.preventDefault(), !0);
547
547
  }, he) : () => {
@@ -553,7 +553,7 @@ function Bn({ newTab: n = !0, disabled: e = !1 }) {
553
553
  return k(() => {
554
554
  const o = (r) => {
555
555
  const s = r.target;
556
- if (!Oe(s)) return;
556
+ if (!Me(s)) return;
557
557
  const a = Dt(s);
558
558
  if (a === null) return;
559
559
  let l = null, u = null;
@@ -561,7 +561,7 @@ function Bn({ newTab: n = !0, disabled: e = !1 }) {
561
561
  const f = ne(s);
562
562
  if (f !== null) {
563
563
  const C = de(f, q);
564
- if (!e) if (jt(C)) l = C.sanitizeUrl(C.getURL()), u = C.getTarget();
564
+ if (!e) if (Ut(C)) l = C.sanitizeUrl(C.getURL()), u = C.getTarget();
565
565
  else {
566
566
  const y = function(v, x) {
567
567
  let E = v;
@@ -587,38 +587,38 @@ function Bn({ newTab: n = !0, disabled: e = !1 }) {
587
587
  });
588
588
  }, [t, n, e]), null;
589
589
  }
590
- const te = 0, ue = 1, ce = 2, $ = 0, Un = 1, De = 2, jn = 3, Hn = 4;
590
+ const te = 0, ue = 1, ce = 2, $ = 0, jn = 1, De = 2, Un = 3, Hn = 4;
591
591
  function Wn(n, e, t, o, i) {
592
592
  if (n === null || t.size === 0 && o.size === 0 && !i) return $;
593
593
  const r = e._selection, s = n._selection;
594
- if (i) return Un;
594
+ if (i) return jn;
595
595
  if (!(g(r) && g(s) && s.isCollapsed() && r.isCollapsed())) return $;
596
- const a = function(E, w, _) {
596
+ const a = function(E, w, S) {
597
597
  const N = E._nodeMap, b = [];
598
598
  for (const L of w) {
599
- const S = N.get(L);
600
- S !== void 0 && b.push(S);
599
+ const _ = N.get(L);
600
+ _ !== void 0 && b.push(_);
601
601
  }
602
- for (const [L, S] of _) {
603
- if (!S) continue;
602
+ for (const [L, _] of S) {
603
+ if (!_) continue;
604
604
  const R = N.get(L);
605
- R === void 0 || Me(R) || b.push(R);
605
+ R === void 0 || Oe(R) || b.push(R);
606
606
  }
607
607
  return b;
608
608
  }(e, t, o);
609
609
  if (a.length === 0) return $;
610
610
  if (a.length > 1) {
611
- const E = e._nodeMap, w = E.get(r.anchor.key), _ = E.get(s.anchor.key);
612
- return w && _ && !n._nodeMap.has(w.__key) && O(w) && w.__text.length === 1 && r.anchor.offset === 1 ? De : $;
611
+ const E = e._nodeMap, w = E.get(r.anchor.key), S = E.get(s.anchor.key);
612
+ return w && S && !n._nodeMap.has(w.__key) && M(w) && w.__text.length === 1 && r.anchor.offset === 1 ? De : $;
613
613
  }
614
614
  const l = a[0], u = n._nodeMap.get(l.__key);
615
- if (!O(u) || !O(l) || u.__mode !== l.__mode) return $;
615
+ if (!M(u) || !M(l) || u.__mode !== l.__mode) return $;
616
616
  const c = u.__text, d = l.__text;
617
617
  if (c === d) return $;
618
618
  const f = r.anchor, C = s.anchor;
619
619
  if (f.key !== C.key || f.type !== "text") return $;
620
620
  const y = f.offset, v = C.offset, x = d.length - c.length;
621
- return x === 1 && v === y - 1 ? De : x === -1 && v === y + 1 ? jn : x === -1 && v === y ? Hn : $;
621
+ return x === 1 && v === y - 1 ? De : x === -1 && v === y + 1 ? Un : x === -1 && v === y ? Hn : $;
622
622
  }
623
623
  function qn(n, e) {
624
624
  let t = Date.now(), o = $;
@@ -631,8 +631,8 @@ function qn(n, e) {
631
631
  if (i === null) return ue;
632
632
  const v = r._selection;
633
633
  return a.size > 0 || l.size > 0 ? y === !1 && d !== $ && d === o && c < t + e && C || a.size === 1 && function(x, E, w) {
634
- const _ = E._nodeMap.get(x), N = w._nodeMap.get(x), b = E._selection, L = w._selection;
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
+ const S = E._nodeMap.get(x), N = w._nodeMap.get(x), b = E._selection, L = w._selection;
635
+ return !(g(b) && g(L) && b.anchor.type === "element" && b.focus.type === "element" && L.anchor.type === "text" && L.focus.type === "text" || !M(S) || !M(N) || S.__parent !== N.__parent) && JSON.stringify(E.read(() => S.exportJSON())) === JSON.stringify(w.read(() => N.exportJSON()));
636
636
  }(Array.from(a)[0], i, r) ? te : ue : v !== null ? te : ce;
637
637
  })();
638
638
  return t = c, o = d, f;
@@ -643,25 +643,25 @@ function $e(n) {
643
643
  }
644
644
  function Jn(n, e, t) {
645
645
  const o = qn(n, t);
646
- return j(n.registerCommand(It, () => (function(r, s) {
646
+ return U(n.registerCommand(It, () => (function(r, s) {
647
647
  const a = s.redoStack, l = s.undoStack;
648
648
  if (l.length !== 0) {
649
649
  const u = s.current, c = l.pop();
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" });
650
+ u !== null && (a.push(u), r.dispatchCommand(Y, !0)), l.length === 0 && r.dispatchCommand(G, !1), s.current = c || null, c && c.editor.setEditorState(c.editorState, { tag: "historic" });
651
651
  }
652
652
  }(n, e), !0), m), n.registerCommand(Rt, () => (function(r, s) {
653
653
  const a = s.redoStack, l = s.undoStack;
654
654
  if (a.length !== 0) {
655
655
  const u = s.current;
656
- u !== null && (l.push(u), r.dispatchCommand(Q, !0));
656
+ u !== null && (l.push(u), r.dispatchCommand(G, !0));
657
657
  const c = a.pop();
658
- a.length === 0 && r.dispatchCommand(G, !1), s.current = c || null, c && c.editor.setEditorState(c.editorState, { tag: "historic" });
658
+ a.length === 0 && r.dispatchCommand(Y, !1), s.current = c || null, c && c.editor.setEditorState(c.editorState, { tag: "historic" });
659
659
  }
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 }) => {
660
+ }(n, e), !0), m), n.registerCommand(Tt, () => ($e(e), !1), m), n.registerCommand(Pt, () => ($e(e), n.dispatchCommand(Y, !1), n.dispatchCommand(G, !1), !0), m), n.registerUpdateListener(({ editorState: r, prevEditorState: s, dirtyLeaves: a, dirtyElements: l, tags: u }) => {
661
661
  const c = e.current, d = e.redoStack, f = e.undoStack, C = c === null ? null : c.editorState;
662
662
  if (c !== null && r === C) return;
663
663
  const y = o(s, r, c, a, l, u);
664
- if (y === ue) d.length !== 0 && (e.redoStack = [], n.dispatchCommand(G, !1)), c !== null && (f.push({ ...c }), n.dispatchCommand(Q, !0));
664
+ if (y === ue) d.length !== 0 && (e.redoStack = [], n.dispatchCommand(Y, !1)), c !== null && (f.push({ ...c }), n.dispatchCommand(G, !0));
665
665
  else if (y === ce) return;
666
666
  e.current = { editor: n, editorState: r };
667
667
  }));
@@ -676,19 +676,19 @@ function Xn({ delay: n, externalHistoryState: e }) {
676
676
  k(() => Jn(o, s, r), [r, o, s]);
677
677
  }(t, e, n), null;
678
678
  }
679
- function Gn({ hasCellMerge: n = !0, hasCellBackgroundColor: e = !0, hasTabHandler: t = !0, hasHorizontalScroll: o = !1 }) {
679
+ function Yn({ hasCellMerge: n = !0, hasCellBackgroundColor: e = !0, hasTabHandler: t = !0, hasHorizontalScroll: o = !1 }) {
680
680
  const [i] = T();
681
681
  return k(() => {
682
682
  Wt(i, o);
683
683
  }, [i, o]), k(() => qt(i), [i]), k(() => Jt(i, t), [i, t]), k(() => {
684
684
  if (!n) return Vt(i);
685
685
  }, [i, n]), k(() => {
686
- if (!e) return i.registerNodeTransform(Ue, (r) => {
686
+ if (!e) return i.registerNodeTransform(je, (r) => {
687
687
  r.getBackgroundColor() !== null && r.setBackgroundColor(null);
688
688
  });
689
689
  }, [i, e, n]), null;
690
690
  }
691
- const qe = 200, Qn = ({
691
+ const qe = 200, Gn = ({
692
692
  currentLanguage: n = "NL",
693
693
  initialValue: e = "",
694
694
  placeholder: t = "",
@@ -700,7 +700,7 @@ const qe = 200, Qn = ({
700
700
  maxWords: l = qe,
701
701
  onChange: u
702
702
  }) => {
703
- const { switchLanguage: c } = dn(), d = sn(), [f] = M(() => Te()), [C, y] = M(0), [v, x] = M(0), E = Ke(null), w = {
703
+ const { switchLanguage: c } = dn(), d = sn(), [f] = O(() => Te()), [C, y] = O(0), [v, x] = O(0), E = Ke(null), w = {
704
704
  html: {
705
705
  export: tn
706
706
  },
@@ -710,9 +710,9 @@ const qe = 200, Qn = ({
710
710
  onError(b) {
711
711
  throw b;
712
712
  },
713
- nodes: [Fe, ze, Be, Ht, Ue, Xt, Gt],
713
+ nodes: [Ae, ze, Be, Ht, je, Xt, Yt],
714
714
  editorState: (b) => {
715
- const S = new DOMParser().parseFromString(e, "text/html"), R = zt(b, S), K = z();
715
+ const _ = new DOMParser().parseFromString(e, "text/html"), R = zt(b, _), K = z();
716
716
  if (K.clear(), nn(e))
717
717
  R.forEach((B) => {
718
718
  K.append(B);
@@ -724,29 +724,29 @@ const qe = 200, Qn = ({
724
724
  });
725
725
  }
726
726
  }
727
- }, _ = (b) => b.trim().length === 0 ? 0 : b.split(" ").length, N = (b, L) => {
727
+ }, S = (b) => b.trim().length === 0 ? 0 : b.split(" ").length, N = (b, L) => {
728
728
  b.read(() => {
729
- let S = "";
730
- y(_(z().getTextContent().replace(/\s+/g, " ").trim())), S = rn(Bt(L)), u(S);
729
+ let _ = "";
730
+ y(S(z().getTextContent().replace(/\s+/g, " ").trim())), _ = rn(Bt(L)), u(_);
731
731
  });
732
732
  };
733
733
  return k(() => {
734
734
  c(n.toLocaleLowerCase());
735
735
  }, [n, c]), k(() => {
736
736
  const b = e.replace(/<br\s*\/?>|&nbsp;/gi, " ").replace(/<\/?[^>]+(>|$)|&[a-z]+;/g, "").replace(/\s+/g, " ").trim();
737
- y(_(b));
738
- }, []), /* @__PURE__ */ A("div", { className: I.editor__container, children: [
739
- /* @__PURE__ */ A("div", { className: I.editor__header, children: [
737
+ y(S(b));
738
+ }, []), /* @__PURE__ */ F("div", { className: I.editor__container, children: [
739
+ /* @__PURE__ */ F("div", { className: I.editor__header, children: [
740
740
  /* @__PURE__ */ h(un, { label: o, info: i, required: r }),
741
- /* @__PURE__ */ A("div", { className: I["editor__header-word-count"], children: [
741
+ /* @__PURE__ */ F("div", { className: I["editor__header-word-count"], children: [
742
742
  /* @__PURE__ */ h("span", { className: en({ [I["editor__header-word-count--alert"]]: C > l }), children: C }),
743
743
  " / ",
744
744
  l
745
745
  ] })
746
746
  ] }),
747
- /* @__PURE__ */ h("div", { className: I.editor, children: /* @__PURE__ */ A(pn, { initialConfig: w, children: [
747
+ /* @__PURE__ */ h("div", { className: I.editor, children: /* @__PURE__ */ F(pn, { initialConfig: w, children: [
748
748
  /* @__PURE__ */ h(on, { editorScrollPosition: v }),
749
- /* @__PURE__ */ A("div", { className: I["editor__field-wrapper"], children: [
749
+ /* @__PURE__ */ F("div", { className: I["editor__field-wrapper"], children: [
750
750
  /* @__PURE__ */ h(
751
751
  Ln,
752
752
  {
@@ -766,16 +766,16 @@ const qe = 200, Qn = ({
766
766
  }
767
767
  ),
768
768
  placeholder: /* @__PURE__ */ h("div", { className: I.editor__placeholder, children: t }),
769
- ErrorBoundary: Mn
769
+ ErrorBoundary: On
770
770
  }
771
771
  ),
772
- /* @__PURE__ */ h(Gn, {}),
772
+ /* @__PURE__ */ h(Yn, {}),
773
773
  /* @__PURE__ */ h(Xn, {}),
774
- /* @__PURE__ */ h(Fn, {}),
775
- /* @__PURE__ */ h(zn, { validateUrl: Qt }),
776
- /* @__PURE__ */ h(Yt, { matchers: Zt }),
774
+ /* @__PURE__ */ h(An, {}),
775
+ /* @__PURE__ */ h(zn, { validateUrl: Gt }),
776
+ /* @__PURE__ */ h(Qt, { matchers: Zt }),
777
777
  /* @__PURE__ */ h(Bn, {}),
778
- /* @__PURE__ */ h(An, { onChange: N }),
778
+ /* @__PURE__ */ h(Fn, { onChange: N }),
779
779
  /* @__PURE__ */ h(fn, {})
780
780
  ] })
781
781
  ] }) }),
@@ -792,7 +792,7 @@ const qe = 200, Qn = ({
792
792
  maxWords: a = qe,
793
793
  onChange: l
794
794
  }) => /* @__PURE__ */ h(cn, { children: /* @__PURE__ */ h(
795
- Qn,
795
+ Gn,
796
796
  {
797
797
  currentLanguage: n,
798
798
  initialValue: e,
@@ -806,7 +806,7 @@ const qe = 200, Qn = ({
806
806
  }
807
807
  ) });
808
808
  export {
809
- Qn as Rte,
809
+ Gn as Rte,
810
810
  zr as RteEditor
811
811
  };
812
812
  //# sourceMappingURL=RteEditor.js.map