@uva-glass/component-library 3.47.5 → 3.47.7

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 (105) hide show
  1. package/dist/{Lexical.prod-nXWuyOKD.js → Lexical.prod-DBU6xTBY.js} +1397 -1279
  2. package/dist/Lexical.prod-DBU6xTBY.js.map +1 -0
  3. package/dist/LexicalClipboard.prod-CzGBnMdD.js +272 -0
  4. package/dist/LexicalClipboard.prod-CzGBnMdD.js.map +1 -0
  5. package/dist/LexicalLink.prod-DV9kT537.js +1027 -0
  6. package/dist/LexicalLink.prod-DV9kT537.js.map +1 -0
  7. package/dist/{LexicalList.prod--mkvX0uW.js → LexicalList.prod-2UfLUgO1.js} +159 -154
  8. package/dist/LexicalList.prod-2UfLUgO1.js.map +1 -0
  9. package/dist/LexicalSelection.prod-C1JYA_go.js +114 -0
  10. package/dist/LexicalSelection.prod-C1JYA_go.js.map +1 -0
  11. package/dist/LexicalTable.prod-CZ1mYUR-.js +1802 -0
  12. package/dist/LexicalTable.prod-CZ1mYUR-.js.map +1 -0
  13. package/dist/LexicalUtils.prod-C3vvQk50.js +114 -0
  14. package/dist/LexicalUtils.prod-C3vvQk50.js.map +1 -0
  15. package/dist/{TableCellResizerPlugin-Cpbankb8.js → TableCellResizerPlugin-CxFy7dbe.js} +53 -53
  16. package/dist/TableCellResizerPlugin-CxFy7dbe.js.map +1 -0
  17. package/dist/{TablePlugin-CfXPNfT8.js → TablePlugin-CfTWvWk1.js} +59 -59
  18. package/dist/{TablePlugin-CfXPNfT8.js.map → TablePlugin-CfTWvWk1.js.map} +1 -1
  19. package/dist/client--GsCJ9Up.js +27328 -0
  20. package/dist/client--GsCJ9Up.js.map +1 -0
  21. package/dist/components/Accordion/Accordion.test.js +3 -3
  22. package/dist/components/AccordionCard/AccordionCard.test.js +3 -3
  23. package/dist/components/ActionList/ActionList.test.js +3 -3
  24. package/dist/components/AppStatusBar/AppStatusBar.test.js +2 -2
  25. package/dist/components/Attention/Attention.test.js +2 -2
  26. package/dist/components/Backdrop/Backdrop.test.js +2 -2
  27. package/dist/components/Buttons/Button.test.js +2 -2
  28. package/dist/components/Buttons/LinkButton.test.js +2 -2
  29. package/dist/components/Buttons/MenuButton.test.js +2 -2
  30. package/dist/components/Card/Card.test.js +2 -2
  31. package/dist/components/Checkbox/Checkbox.test.js +3 -3
  32. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js +2 -2
  33. package/dist/components/CheckboxTree/CheckboxTree.js +1 -1
  34. package/dist/components/FeedbackBar/FeedbackBar.test.js +2 -2
  35. package/dist/components/FormInput/FormInput.js +1 -1
  36. package/dist/components/Icon/icons/index.d.ts +12 -0
  37. package/dist/components/Icon/icons/index.js +169 -159
  38. package/dist/components/Icon/icons/index.js.map +1 -1
  39. package/dist/components/InputField/InputField.stories.js +1 -1
  40. package/dist/components/Label/Label.test.js +2 -2
  41. package/dist/components/MultiSelect/MultiSelect.js +1 -1
  42. package/dist/components/MultiSelect/MultiSelect.stories.js +1 -1
  43. package/dist/components/MultiSelect/components/MultiSelectHeader.js +1 -1
  44. package/dist/components/MultiSelect/index.js +1 -1
  45. package/dist/components/MultiSelectBox/MultiSelectBox.test.js +2 -2
  46. package/dist/components/Notification/Notification.test.js +2 -2
  47. package/dist/components/PeriodSelector/PeriodSelector.js +1 -1
  48. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +1 -1
  49. package/dist/components/RadioGroup/Radiogroup.test.js +2 -2
  50. package/dist/components/RadioTabSelector/RadioTabSelector.js +1 -1
  51. package/dist/components/RteEditor/EditorHeader/EditorHeader.js +1 -1
  52. package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +7 -7
  53. package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +6 -6
  54. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +2 -2
  55. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +9 -9
  56. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +35 -35
  57. package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +9 -5
  58. package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js.map +1 -1
  59. package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +40 -40
  60. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +5 -5
  61. package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/TableCellResizerPlugin.js +4 -4
  62. package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/index.js +1 -1
  63. package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +1 -1
  64. package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +4 -4
  65. package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +25 -25
  66. package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
  67. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +19 -19
  68. package/dist/components/RteEditor/Plugins/index.js +2 -2
  69. package/dist/components/RteEditor/RteEditor.js +671 -627
  70. package/dist/components/RteEditor/RteEditor.js.map +1 -1
  71. package/dist/components/RteEditor/helpers.js +8 -8
  72. package/dist/components/RteEditor/nodes/TableWrapperNode/TableWrapperNode.js +19 -19
  73. package/dist/components/StatusBadge/StatusBadge.test.js +2 -2
  74. package/dist/components/TextArea/TextArea.test.js +2 -2
  75. package/dist/components/VarIndicator/VarIndicator.test.js +3 -3
  76. package/dist/components/index.js +1 -1
  77. package/dist/{index-iImjiPdB.js → index-Bf2LCbD1.js} +2 -2
  78. package/dist/{index-iImjiPdB.js.map → index-Bf2LCbD1.js.map} +1 -1
  79. package/dist/{index-B32mP_-H.js → index-JOHbZ4si.js} +1172 -1128
  80. package/dist/{index-B32mP_-H.js.map → index-JOHbZ4si.js.map} +1 -1
  81. package/dist/index.js +1 -1
  82. package/dist/{react-18-DXfB7ZX7.js → react-18-BHQltW8V.js} +2 -2
  83. package/dist/{react-18-DXfB7ZX7.js.map → react-18-BHQltW8V.js.map} +1 -1
  84. package/dist/{react.esm-WLX_DeH0.js → react.esm-Bg7Fh9lz.js} +3 -3
  85. package/dist/{react.esm-WLX_DeH0.js.map → react.esm-Bg7Fh9lz.js.map} +1 -1
  86. package/dist/setupTests.js +1 -1
  87. package/dist/storybook__react.d.js +1 -1
  88. package/package.json +24 -24
  89. package/dist/Lexical.prod-nXWuyOKD.js.map +0 -1
  90. package/dist/LexicalClipboard.prod-pXq91TBU.js +0 -276
  91. package/dist/LexicalClipboard.prod-pXq91TBU.js.map +0 -1
  92. package/dist/LexicalLink.prod-Brzpgs_K.js +0 -285
  93. package/dist/LexicalLink.prod-Brzpgs_K.js.map +0 -1
  94. package/dist/LexicalList.prod--mkvX0uW.js.map +0 -1
  95. package/dist/LexicalSelection.prod-Ct4PZOht.js +0 -119
  96. package/dist/LexicalSelection.prod-Ct4PZOht.js.map +0 -1
  97. package/dist/LexicalTable.prod-Bexd4dGG.js +0 -1763
  98. package/dist/LexicalTable.prod-Bexd4dGG.js.map +0 -1
  99. package/dist/LexicalUtils.prod-Ckfw0Hjt.js +0 -123
  100. package/dist/LexicalUtils.prod-Ckfw0Hjt.js.map +0 -1
  101. package/dist/TableCellResizerPlugin-Cpbankb8.js.map +0 -1
  102. package/dist/client-BK9NlSVR.js +0 -25208
  103. package/dist/client-BK9NlSVR.js.map +0 -1
  104. package/dist/helpers-mE437H2Y.js +0 -164
  105. package/dist/helpers-mE437H2Y.js.map +0 -1
@@ -1,62 +1,62 @@
1
1
  import { jsx as d } from "react/jsx-runtime";
2
- import { o as y } from "../../../../LexicalComposerContext.prod-DOyoZx0P.js";
3
- import { T as f, C as _, y as N, n as D, a as b, c as P } from "../../../../LexicalList.prod--mkvX0uW.js";
4
- import { useState as p, useEffect as v } from "react";
5
- import { c as S } from "../../../../clsx-OuTLNxxd.js";
6
- import { as as w, I as x, a0 as O, w as I, a as K, K as U } from "../../../../Lexical.prod-nXWuyOKD.js";
7
- import { Icon as B } from "../../../Icon/Icon.js";
2
+ import { o as x } from "../../../../LexicalComposerContext.prod-DOyoZx0P.js";
3
+ import { k as f, x as C, S as N, o as D, d as b, h as I } from "../../../../LexicalList.prod-2UfLUgO1.js";
4
+ import { useState as p, useEffect as k } from "react";
5
+ import { c as K } from "../../../../clsx-OuTLNxxd.js";
6
+ import { ar as y, A as O, Y as U, a as v, f as P, P as w } from "../../../../Lexical.prod-DBU6xTBY.js";
7
+ import { Icon as A } from "../../../Icon/Icon.js";
8
8
  import { s as l } from "../../../../RteEditor.module-CovRFt0S.js";
9
- import { useTranslation as E } from "../../hooks/useTranslation.js";
10
- const T = {
9
+ import { useTranslation as B } from "../../hooks/useTranslation.js";
10
+ const E = {
11
11
  bullet: "BulletList",
12
12
  number: "NumberedList"
13
- }, $ = ["bullet", "number"], M = () => {
14
- const u = E(), [e] = y(), [h, s] = p(null), [c, g] = p(!1), [m, L] = p(!1), k = (t) => {
15
- t === "number" && h !== "number" ? (e.dispatchCommand(_, void 0), s("number")) : t === "bullet" && h !== "bullet" ? (e.dispatchCommand(N, void 0), s("bullet")) : (e.dispatchCommand(f, void 0), s(null));
13
+ }, Y = ["bullet", "number"], Q = () => {
14
+ const u = B(), [e] = x(), [h, a] = p(null), [c, g] = p(!1), [m, L] = p(!1), S = (t) => {
15
+ t === "number" && h !== "number" ? (e.dispatchCommand(C, void 0), a("number")) : t === "bullet" && h !== "bullet" ? (e.dispatchCommand(N, void 0), a("bullet")) : (e.dispatchCommand(f, void 0), a(null));
16
16
  };
17
- return v(() => {
17
+ return k(() => {
18
18
  const t = e.registerCommand(
19
- w,
20
- (o) => o.ctrlKey && o.shiftKey && o.code === "Digit7" ? (o.preventDefault(), m ? e.dispatchCommand(f, void 0) : e.dispatchCommand(_, void 0), !0) : o.ctrlKey && o.shiftKey && o.code === "Digit8" ? (o.preventDefault(), c ? e.dispatchCommand(f, void 0) : e.dispatchCommand(N, void 0), !0) : !1,
21
- x
19
+ y,
20
+ (o) => o.ctrlKey && o.shiftKey && o.code === "Digit7" ? (o.preventDefault(), m ? e.dispatchCommand(f, void 0) : e.dispatchCommand(C, void 0), !0) : o.ctrlKey && o.shiftKey && o.code === "Digit8" ? (o.preventDefault(), c ? e.dispatchCommand(f, void 0) : e.dispatchCommand(N, void 0), !0) : !1,
21
+ O
22
22
  );
23
23
  return () => {
24
24
  t();
25
25
  };
26
- }, [e, m, c]), v(() => {
26
+ }, [e, m, c]), k(() => {
27
27
  e.registerCommand(
28
- O,
28
+ U,
29
29
  (o) => (o.preventDefault(), e.update(() => {
30
- const i = I();
31
- if (!K(i))
30
+ const n = v();
31
+ if (!P(n))
32
32
  return;
33
- const r = i.anchor.getNode(), n = r.getParent();
34
- if (!D(n))
33
+ const r = n.anchor.getNode(), i = r.getParent();
34
+ if (!D(i))
35
35
  return;
36
- const a = n.getParent();
37
- if (b(a)) {
38
- const C = P(b(a) ? a.getListType() : "bullet");
39
- n.append(C), C.append(r);
36
+ const s = i.getParent();
37
+ if (b(s)) {
38
+ const _ = I(b(s) ? s.getListType() : "bullet");
39
+ i.append(_), _.append(r);
40
40
  }
41
41
  }), !0),
42
- U
42
+ w
43
43
  );
44
44
  const t = e.registerUpdateListener(({ editorState: o }) => {
45
45
  o.read(() => {
46
- const i = I();
47
- if (K(i)) {
48
- let r = i.anchor.getNode();
46
+ const n = v();
47
+ if (P(n)) {
48
+ let r = n.anchor.getNode();
49
49
  for (; r !== null; ) {
50
50
  if (b(r)) {
51
- const a = r.getTag();
52
- g(a === "ul"), L(a === "ol"), a === "ul" && s("bullet"), a === "ol" && s("number");
51
+ const s = r.getTag();
52
+ g(s === "ul"), L(s === "ol"), s === "ul" && a("bullet"), s === "ol" && a("number");
53
53
  return;
54
54
  }
55
- const n = r.getParent();
56
- if (n === null) break;
57
- r = n;
55
+ const i = r.getParent();
56
+ if (i === null) break;
57
+ r = i;
58
58
  }
59
- g(!1), L(!1), s(null);
59
+ g(!1), L(!1), a(null);
60
60
  }
61
61
  return !1;
62
62
  });
@@ -64,12 +64,12 @@ const T = {
64
64
  return () => {
65
65
  t();
66
66
  };
67
- }, [e]), /* @__PURE__ */ d("div", { className: l["editor__toolbar-button-group"], children: $.map((t) => /* @__PURE__ */ d(
67
+ }, [e]), /* @__PURE__ */ d("div", { className: l["editor__toolbar-button-group"], children: Y.map((t) => /* @__PURE__ */ d(
68
68
  "button",
69
69
  {
70
- onClick: () => k(t),
70
+ onClick: () => S(t),
71
71
  title: u.format[`${t}Tooltip`],
72
- className: S(
72
+ className: K(
73
73
  l["editor__toolbar-button"],
74
74
  l[`editor__toolbar-button--${t}`],
75
75
  t === "bullet" && c && l["editor__toolbar-button--active"],
@@ -78,12 +78,12 @@ const T = {
78
78
  "aria-label": u.aria.labels[t],
79
79
  "aria-keyshortcuts": u.aria.keyshortcuts[t],
80
80
  type: "button",
81
- children: /* @__PURE__ */ d(B, { name: T[t], size: 24 })
81
+ children: /* @__PURE__ */ d(A, { name: E[t], size: 24 })
82
82
  },
83
83
  t
84
84
  )) });
85
85
  };
86
86
  export {
87
- M as ListPlugin
87
+ Q as ListPlugin
88
88
  };
89
89
  //# sourceMappingURL=ListPlugin.js.map
@@ -1,10 +1,10 @@
1
1
  import { o as m } from "../../../../LexicalComposerContext.prod-DOyoZx0P.js";
2
2
  import { useEffect as c } from "react";
3
- import { af as f, R as p, w as u } from "../../../../Lexical.prod-nXWuyOKD.js";
4
- import { L as i } from "../../../../LexicalUtils.prod-Ckfw0Hjt.js";
5
- import { A as d } from "../../../../LexicalClipboard.prod-pXq91TBU.js";
3
+ import { ae as f, N as p, a as u } from "../../../../Lexical.prod-DBU6xTBY.js";
4
+ import { L as i } from "../../../../LexicalUtils.prod-C3vvQk50.js";
5
+ import { A as d } from "../../../../LexicalClipboard.prod-CzGBnMdD.js";
6
6
  import { d as D } from "../../../../index-yEhaxKq-.js";
7
- const P = () => {
7
+ const L = () => {
8
8
  const [e] = m(), l = (t) => {
9
9
  t.preventDefault(), e.update(() => {
10
10
  const r = u(), a = i(t, InputEvent) || i(t, KeyboardEvent) ? null : t.clipboardData;
@@ -26,6 +26,6 @@ const P = () => {
26
26
  }, [e]), null;
27
27
  };
28
28
  export {
29
- P as PasteHandlerPlugin
29
+ L as PasteHandlerPlugin
30
30
  };
31
31
  //# sourceMappingURL=PasteHandlerPlugin.js.map
@@ -1,10 +1,10 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "../../../../LexicalComposerContext.prod-DOyoZx0P.js";
4
- import { T as b } from "../../../../TableCellResizerPlugin-Cpbankb8.js";
5
- import "../../../../LexicalTable.prod-Bexd4dGG.js";
6
- import "../../../../LexicalUtils.prod-Ckfw0Hjt.js";
7
- import "../../../../Lexical.prod-nXWuyOKD.js";
4
+ import { T as b } from "../../../../TableCellResizerPlugin-CxFy7dbe.js";
5
+ import "../../../../LexicalTable.prod-CZ1mYUR-.js";
6
+ import "../../../../LexicalUtils.prod-C3vvQk50.js";
7
+ import "../../../../Lexical.prod-DBU6xTBY.js";
8
8
  import "react-dom";
9
9
  import "../TablePlugin/helpers.js";
10
10
  import "../../nodes/TableWrapperNode/TableWrapperNode.js";
@@ -1,4 +1,4 @@
1
- import { T as r } from "../../../../TableCellResizerPlugin-Cpbankb8.js";
1
+ import { T as r } from "../../../../TableCellResizerPlugin-CxFy7dbe.js";
2
2
  export {
3
3
  r as TableCellResizerPlugin
4
4
  };
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { b as G } from "../../../../TablePlugin-CfXPNfT8.js";
3
+ import { b as G } from "../../../../TablePlugin-CfTWvWk1.js";
4
4
  import "../../../Accordion/Accordion.js";
5
5
  import "../../../Buttons/Button.js";
6
6
  import "../../../Buttons/LinkButton.js";
@@ -1,11 +1,11 @@
1
1
  import "react/jsx-runtime";
2
2
  import "../../../../LexicalComposerContext.prod-DOyoZx0P.js";
3
3
  import "../../../../clsx-OuTLNxxd.js";
4
- import "../../../../LexicalTable.prod-Bexd4dGG.js";
5
- import "../../../../Lexical.prod-nXWuyOKD.js";
6
- import "../../../../LexicalUtils.prod-Ckfw0Hjt.js";
4
+ import "../../../../LexicalTable.prod-CZ1mYUR-.js";
5
+ import "../../../../Lexical.prod-DBU6xTBY.js";
6
+ import "../../../../LexicalUtils.prod-C3vvQk50.js";
7
7
  import "react";
8
- import { T as L } from "../../../../TablePlugin-CfXPNfT8.js";
8
+ import { T as L } from "../../../../TablePlugin-CfTWvWk1.js";
9
9
  import "./helpers.js";
10
10
  import "../../nodes/TableWrapperNode/TableWrapperNode.js";
11
11
  import "../../hooks/useFlyout.js";
@@ -1,8 +1,8 @@
1
- import { V as T, R as i, H as w, n as p, B as u, P as b, a as E, z as R, K as g, Y as D, L as I, v as x } from "../../../../LexicalTable.prod-Bexd4dGG.js";
2
- import { F as S } from "../../../../Lexical.prod-nXWuyOKD.js";
1
+ import { Z as T, A as i, I as w, s as p, J as u, U as b, e as E, D, $ as g, V as I, B as R, O as x } from "../../../../LexicalTable.prod-CZ1mYUR-.js";
2
+ import { M as S } from "../../../../Lexical.prod-DBU6xTBY.js";
3
3
  import { TableWrapperNode as N } from "../../nodes/TableWrapperNode/TableWrapperNode.js";
4
- const y = 32, a = 48, W = 1, O = 200, P = 320, H = (t, e) => {
5
- const n = I(0, 0, !1);
4
+ const v = 32, a = 48, W = 1, F = 200, B = 320, M = (t, e) => {
5
+ const n = R(0, 0, !1);
6
6
  for (let o = 0; o < t; o++) {
7
7
  const r = g();
8
8
  for (let s = 0; s < e; s++) {
@@ -12,26 +12,26 @@ const y = 32, a = 48, W = 1, O = 200, P = 320, H = (t, e) => {
12
12
  n.append(r);
13
13
  }
14
14
  return n;
15
- }, B = (t) => {
16
- const e = R(t), n = e.getNextSibling() || e.getPreviousSibling(), o = e.getParentOrThrow();
15
+ }, P = (t) => {
16
+ const e = D(t), n = e.getNextSibling() || e.getPreviousSibling(), o = e.getParentOrThrow();
17
17
  if (o.getChildrenSize() > 1 ? e.remove() : o.remove(), n !== null) {
18
18
  const r = n.getFirstDescendant();
19
19
  r && r.select();
20
20
  }
21
- }, L = (t) => {
21
+ }, O = (t) => {
22
22
  const e = T(t);
23
23
  if (!e)
24
24
  throw new Error("Selected node is not a TableCellNode");
25
25
  const n = e.getParent();
26
26
  n instanceof N ? n.remove() : e.remove();
27
- }, z = (t, e) => {
27
+ }, A = (t, e) => {
28
28
  if (!i(t))
29
29
  throw new Error("Selected node is not a TableCellNode");
30
30
  const n = g();
31
- D(e === "insertRowBelow");
31
+ I(e === "insertRowBelow");
32
32
  const o = n.getFirstDescendant();
33
33
  o && o.select();
34
- }, K = (t, e) => {
34
+ }, H = (t, e) => {
35
35
  if (!i(t))
36
36
  throw new Error("Selected node is not a TableCellNode");
37
37
  const n = w(t);
@@ -48,22 +48,22 @@ const y = 32, a = 48, W = 1, O = 200, P = 320, H = (t, e) => {
48
48
  n.setColWidths(C), o = e === "insertColumnLeft" ? o : o + 1;
49
49
  const f = r[s].getChildren()[o];
50
50
  f && f.select();
51
- }, M = (t) => {
51
+ }, U = (t) => {
52
52
  if (!i(t))
53
53
  throw new Error("Selected node is not a TableCellNode");
54
- (w(t).getFirstChild()?.getChildrenSize() || 0) === 1 ? L(t) : p();
54
+ (w(t).getFirstChild()?.getChildrenSize() || 0) === 1 ? O(t) : p();
55
55
  }, V = (t) => {
56
56
  const e = t.getRootElement();
57
57
  if (!e || typeof window > "u") return 0;
58
58
  const n = e.getBoundingClientRect(), o = window.getComputedStyle(e), r = parseFloat(o.paddingLeft || "0") + parseFloat(o.paddingRight || "0") + a;
59
59
  return Math.max(0, n.width - r);
60
- }, A = (t, e, n) => {
60
+ }, z = (t, e, n) => {
61
61
  if (!t) return 0;
62
62
  const o = n.getElementByKey(t.getKey());
63
63
  if (!o) return 0;
64
64
  const r = window.getComputedStyle(o);
65
65
  return parseInt(r.width) - e * W - 1;
66
- }, U = (t) => {
66
+ }, J = (t) => {
67
67
  const e = t.getChildren();
68
68
  for (const n of e) {
69
69
  const o = n.getChildren();
@@ -76,17 +76,17 @@ const y = 32, a = 48, W = 1, O = 200, P = 320, H = (t, e) => {
76
76
  export {
77
77
  W as BORDER_WIDTHS,
78
78
  a as DEFAULT_COL_WIDTH,
79
- P as DEFAULT_EDITOR_WIDTH,
80
- y as MIN_COLUMN_WIDTH,
81
- O as PREVENT_OPEN_DELAY,
82
- H as createTable,
83
- M as deleteColumn,
84
- B as deleteRow,
85
- L as deleteTable,
79
+ B as DEFAULT_EDITOR_WIDTH,
80
+ v as MIN_COLUMN_WIDTH,
81
+ F as PREVENT_OPEN_DELAY,
82
+ M as createTable,
83
+ U as deleteColumn,
84
+ P as deleteRow,
85
+ O as deleteTable,
86
86
  V as getEditorContentWidth,
87
- A as getEditorParrentCellWidth,
88
- K as insertColumn,
89
- z as insertRow,
90
- U as tableHasContent
87
+ z as getEditorParrentCellWidth,
88
+ H as insertColumn,
89
+ A as insertRow,
90
+ J as tableHasContent
91
91
  };
92
92
  //# sourceMappingURL=helpers.js.map
@@ -1,4 +1,4 @@
1
- import { T as o } from "../../../../TablePlugin-CfXPNfT8.js";
1
+ import { T as o } from "../../../../TablePlugin-CfTWvWk1.js";
2
2
  import { TableCellContextMenu as t } from "./TableCellContextMenu/TableCellContextMenu.js";
3
3
  export {
4
4
  t as TableCellContextMenu,
@@ -1,34 +1,34 @@
1
1
  import { jsxs as P, jsx as n } from "react/jsx-runtime";
2
2
  import { o as y } from "../../../../LexicalComposerContext.prod-DOyoZx0P.js";
3
- import { w as f, a as h, k as C } from "../../../../Lexical.prod-nXWuyOKD.js";
4
- import { useState as L, useRef as E, useCallback as k, useEffect as c } from "react";
5
- import { W as g } from "../../../../LexicalTable.prod-Bexd4dGG.js";
6
- import { BlockFormatPlugin as T } from "../BlockFormatPlugin/BlockFormatPlugin.js";
3
+ import { a as p, f as h, a1 as C } from "../../../../Lexical.prod-DBU6xTBY.js";
4
+ import { useState as L, useRef as E, useCallback as T, useEffect as c } from "react";
5
+ import { P as g } from "../../../../LexicalTable.prod-CZ1mYUR-.js";
6
+ import { BlockFormatPlugin as x } from "../BlockFormatPlugin/BlockFormatPlugin.js";
7
7
  import { ListPlugin as N } from "../ListPlugin/ListPlugin.js";
8
- import { LinkPlugin as x } from "../LinkPlugin/LinkPlugin.js";
8
+ import { LinkPlugin as k } from "../LinkPlugin/LinkPlugin.js";
9
9
  import { HistoryPlugin as B } from "../HistoryPlugin/HistoryPlugin.js";
10
- import { T as S } from "../../../../TablePlugin-CfXPNfT8.js";
10
+ import { T as S } from "../../../../TablePlugin-CfTWvWk1.js";
11
11
  import { TableCellContextMenu as z } from "../TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
12
12
  import "react-dom";
13
13
  import "../../../../index-yEhaxKq-.js";
14
14
  import { s as A } from "../../../../RteEditor.module-CovRFt0S.js";
15
- import { setScrollableContainers as w, removeScrollableContainers as K } from "../../helpers.js";
16
- const V = ({ editorScrollPosition: m }) => {
17
- const [t] = y(), [r, i] = L(null), d = E(null), u = k(() => {
18
- const e = f();
15
+ import { setScrollableContainers as b, removeScrollableContainers as K } from "../../helpers.js";
16
+ const W = ({ editorScrollPosition: m }) => {
17
+ const [t] = y(), [r, i] = L(null), d = E(null), u = T(() => {
18
+ const e = p();
19
19
  if (h(e)) {
20
20
  const s = e.anchor.getNode(), l = g(s);
21
21
  if (l) {
22
- const p = t.getElementByKey(l.getKey()), a = p ? p.getBoundingClientRect() : { right: 0, bottom: 0, height: 0 };
22
+ const f = t.getElementByKey(l.getKey()), a = f ? f.getBoundingClientRect() : { right: 0, bottom: 0, height: 0 };
23
23
  i({ xPos: a.right, yPos: a.bottom, height: a.height });
24
24
  } else
25
25
  i(null);
26
26
  }
27
- }, [t]), b = (e) => {
27
+ }, [t]), w = (e) => {
28
28
  d.current?.mutateTable(e);
29
29
  }, o = () => {
30
30
  t.update(() => {
31
- const e = f();
31
+ const e = p();
32
32
  if (h(e)) {
33
33
  const s = e.anchor.getNode();
34
34
  g(s) && (C(null), i(null));
@@ -41,17 +41,17 @@ const V = ({ editorScrollPosition: m }) => {
41
41
  u();
42
42
  });
43
43
  });
44
- }, [t, u]), c(() => (w(o), window.addEventListener("scroll", o), window.addEventListener("resize", o), () => {
44
+ }, [t, u]), c(() => (b(o), window.addEventListener("scroll", o), window.addEventListener("resize", o), () => {
45
45
  window.removeEventListener("scroll", o), window.removeEventListener("resize", o), K(o);
46
46
  }), [t]), c(() => {
47
47
  const e = () => {
48
- w(o);
48
+ b(o);
49
49
  };
50
50
  return window.addEventListener("keydown", e, { capture: !0 }), () => {
51
51
  window.removeEventListener("keydown", e);
52
52
  };
53
53
  }, []), /* @__PURE__ */ P("div", { className: A.editor__toolbar, children: [
54
- /* @__PURE__ */ n(T, {}),
54
+ /* @__PURE__ */ n(x, {}),
55
55
  /* @__PURE__ */ n(N, {}),
56
56
  /* @__PURE__ */ n(S, { isActive: !!r, ref: d }),
57
57
  r && /* @__PURE__ */ n(
@@ -59,14 +59,14 @@ const V = ({ editorScrollPosition: m }) => {
59
59
  {
60
60
  position: r,
61
61
  parentScrollPosition: m,
62
- onAction: b
62
+ onAction: w
63
63
  }
64
64
  ),
65
- /* @__PURE__ */ n(x, { parentScrollPosition: m }),
65
+ /* @__PURE__ */ n(k, { parentScrollPosition: m }),
66
66
  /* @__PURE__ */ n(B, {})
67
67
  ] });
68
68
  };
69
69
  export {
70
- V as ToolBarPlugin
70
+ W as ToolBarPlugin
71
71
  };
72
72
  //# sourceMappingURL=ToolbarPlugin.js.map
@@ -3,9 +3,9 @@ import { BlockFormatPlugin as t } from "./BlockFormatPlugin/BlockFormatPlugin.js
3
3
  import { ListPlugin as n } from "./ListPlugin/ListPlugin.js";
4
4
  import { LinkPlugin as g, getLinkNodeTag as m } from "./LinkPlugin/LinkPlugin.js";
5
5
  import { HistoryPlugin as f } from "./HistoryPlugin/HistoryPlugin.js";
6
- import { T as u } from "../../../TablePlugin-CfXPNfT8.js";
6
+ import { T as u } from "../../../TablePlugin-CfTWvWk1.js";
7
7
  import { TableCellContextMenu as T } from "./TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
8
- import { T as b } from "../../../TableCellResizerPlugin-Cpbankb8.js";
8
+ import { T as b } from "../../../TableCellResizerPlugin-CxFy7dbe.js";
9
9
  import { PasteHandlerPlugin as C } from "./PasteHandlerPlugin/PasteHandlerPlugin.js";
10
10
  export {
11
11
  t as BlockFormatPlugin,