@uva-glass/component-library 1.64.4 → 1.64.6

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 (101) hide show
  1. package/dist/Lexical.prod-CFhL_6Md.js +4211 -0
  2. package/dist/Lexical.prod-CFhL_6Md.js.map +1 -0
  3. package/dist/LexicalClipboard.prod-BsGZ_U-F.js +258 -0
  4. package/dist/LexicalClipboard.prod-BsGZ_U-F.js.map +1 -0
  5. package/dist/{LexicalLink.prod-BvJo1BD4.js → LexicalLink.prod-DOD0hvjh.js} +41 -41
  6. package/dist/LexicalLink.prod-DOD0hvjh.js.map +1 -0
  7. package/dist/{LexicalList.prod-igdv32dp.js → LexicalList.prod-C66L7HSr.js} +50 -48
  8. package/dist/LexicalList.prod-C66L7HSr.js.map +1 -0
  9. package/dist/LexicalSelection.prod-mI1PjnKs.js +86 -0
  10. package/dist/{LexicalSelection.prod-CL_DfdL6.js.map → LexicalSelection.prod-mI1PjnKs.js.map} +1 -1
  11. package/dist/LexicalTable.prod-Dg8eGg1m.js +1338 -0
  12. package/dist/LexicalTable.prod-Dg8eGg1m.js.map +1 -0
  13. package/dist/LexicalUtils.prod-0Sd05E-o.js +94 -0
  14. package/dist/LexicalUtils.prod-0Sd05E-o.js.map +1 -0
  15. package/dist/{TablePlugin-BVkwu1Gt.js → TablePlugin-ChuaCSFq.js} +45 -45
  16. package/dist/{TablePlugin-BVkwu1Gt.js.map → TablePlugin-ChuaCSFq.js.map} +1 -1
  17. package/dist/assets/LinkContextMenu.css +1 -1
  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 +2 -2
  25. package/dist/components/CheckboxTree/CheckboxTree.stories.js +1 -1
  26. package/dist/components/Drawer/Drawer.stories.js +1 -1
  27. package/dist/components/FormInput/FormInput.js +2 -2
  28. package/dist/components/FormInput/FormInput.stories.js +1 -1
  29. package/dist/components/IconButton/IconButton.stories.js +1 -1
  30. package/dist/components/InputField/InputField.stories.js +3 -3
  31. package/dist/components/ModalDialog/ModalDialog.stories.js +1 -1
  32. package/dist/components/MultiSelect/MultiSelect.js +1 -1
  33. package/dist/components/MultiSelect/MultiSelect.stories.js +2 -2
  34. package/dist/components/MultiSelect/components/MultiSelectHeader.js +2 -2
  35. package/dist/components/MultiSelect/index.js +1 -1
  36. package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +1 -1
  37. package/dist/components/PeriodSelector/PeriodSelector.js +2 -2
  38. package/dist/components/PeriodSelector/PeriodSelector.stories.js +1 -1
  39. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +3 -3
  40. package/dist/components/RteEditor/EditorHeader/EditorHeader.js +2 -2
  41. package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +9 -9
  42. package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +5 -5
  43. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +3 -3
  44. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +85 -39
  45. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js.map +1 -1
  46. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +113 -112
  47. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js.map +1 -1
  48. package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
  49. package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +18 -18
  50. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +10 -10
  51. package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +2 -2
  52. package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +4 -4
  53. package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +28 -28
  54. package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
  55. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +26 -26
  56. package/dist/components/RteEditor/Plugins/index.js +1 -1
  57. package/dist/components/RteEditor/RteEditor.js +486 -485
  58. package/dist/components/RteEditor/RteEditor.js.map +1 -1
  59. package/dist/components/RteEditor/helpers.js +5 -5
  60. package/dist/components/RteEditor/hooks/useFlyout.d.ts +0 -1
  61. package/dist/components/RteEditor/hooks/useFlyout.js +1 -1
  62. package/dist/components/RteEditor/hooks/useFlyout.js.map +1 -1
  63. package/dist/components/RteEditor/hooks/useTranslation.d.ts +18 -0
  64. package/dist/components/RteEditor/translations.d.ts +18 -0
  65. package/dist/components/RteEditor/translations.js +21 -3
  66. package/dist/components/RteEditor/translations.js.map +1 -1
  67. package/dist/components/SelectListbox/SelectListBox.stories.js +1 -1
  68. package/dist/components/Sortable/Sortable.stories.js +1 -1
  69. package/dist/components/hooks/{useOnClickOuside.js → useOnClickOutside.js} +1 -1
  70. package/dist/components/hooks/useOnClickOutside.js.map +1 -0
  71. package/dist/components/index.js +1 -1
  72. package/dist/{helpers-BKqr9jXh.js → helpers-CnEW_8nD.js} +39 -39
  73. package/dist/{helpers-BKqr9jXh.js.map → helpers-CnEW_8nD.js.map} +1 -1
  74. package/dist/index-0wq-B7do.js +238 -0
  75. package/dist/{index-DPQ9bZx5.js.map → index-0wq-B7do.js.map} +1 -1
  76. package/dist/{index-DsprzSCj.js → index-B9BWML6P.js} +1025 -963
  77. package/dist/{index-DsprzSCj.js.map → index-B9BWML6P.js.map} +1 -1
  78. package/dist/{index-C9QoqAAt.js → index-DQyNeMuh.js} +66 -66
  79. package/dist/index-DQyNeMuh.js.map +1 -0
  80. package/dist/index.js +1 -1
  81. package/dist/react-18-BIqxBxbW.js +65 -0
  82. package/dist/{react-18-C0Aiha-e.js.map → react-18-BIqxBxbW.js.map} +1 -1
  83. package/dist/storybook__react.d.js +186 -183
  84. package/dist/storybook__react.d.js.map +1 -1
  85. package/package.json +19 -19
  86. package/dist/Lexical.prod-RJB8n7sC.js +0 -4072
  87. package/dist/Lexical.prod-RJB8n7sC.js.map +0 -1
  88. package/dist/LexicalClipboard.prod-DB_B0Sr6.js +0 -259
  89. package/dist/LexicalClipboard.prod-DB_B0Sr6.js.map +0 -1
  90. package/dist/LexicalLink.prod-BvJo1BD4.js.map +0 -1
  91. package/dist/LexicalList.prod-igdv32dp.js.map +0 -1
  92. package/dist/LexicalSelection.prod-CL_DfdL6.js +0 -86
  93. package/dist/LexicalTable.prod-CfgKmbyy.js +0 -1221
  94. package/dist/LexicalTable.prod-CfgKmbyy.js.map +0 -1
  95. package/dist/LexicalUtils.prod-mYf1cd8X.js +0 -94
  96. package/dist/LexicalUtils.prod-mYf1cd8X.js.map +0 -1
  97. package/dist/components/hooks/useOnClickOuside.js.map +0 -1
  98. package/dist/index-C9QoqAAt.js.map +0 -1
  99. package/dist/index-DPQ9bZx5.js +0 -231
  100. package/dist/react-18-C0Aiha-e.js +0 -52
  101. /package/dist/components/hooks/{useOnClickOuside.d.ts → useOnClickOutside.d.ts} +0 -0
@@ -1,37 +1,37 @@
1
1
  import { jsx as d } from "react/jsx-runtime";
2
2
  import { u as K } from "../../../../LexicalComposerContext.prod-Dyvim1tK.js";
3
- import { Y as N, Q as v, G as D, V as S, H as f, q as y } from "../../../../LexicalList.prod-igdv32dp.js";
4
- import { b as O } from "../../../../LexicalSelection.prod-CL_DfdL6.js";
5
- import { useState as p, useEffect as I } from "react";
3
+ import { Y as N, Q as k, G as v, V as S, H as f, q as y } from "../../../../LexicalList.prod-C66L7HSr.js";
4
+ import { b as B } from "../../../../LexicalSelection.prod-mI1PjnKs.js";
5
+ import { useState as p, useEffect as P } from "react";
6
6
  import { c as x } from "../../../../clsx-OuTLNxxd.js";
7
- import { a2 as U, a3 as w, N as B, M as b, v as h, I as E, D as M } from "../../../../Lexical.prod-RJB8n7sC.js";
7
+ import { a5 as O, a6 as R, N as U, c as b, a as h, R as w, B as E } from "../../../../Lexical.prod-CFhL_6Md.js";
8
8
  import { Icon as Y } from "../../../Icon/Icon.js";
9
9
  import { s as l } from "../../../../RteEditor.module-oFMKEW6f.js";
10
10
  import { useTranslation as $ } from "../../hooks/useTranslation.js";
11
11
  const j = {
12
12
  bullet: "BulletList",
13
13
  number: "NumberedList"
14
- }, q = ["bullet", "number"], W = () => {
15
- const u = $(), [e] = K(), [g, s] = p("paragraph"), [c, L] = p(!1), [m, _] = p(!1), P = () => {
14
+ }, q = ["bullet", "number"], T = () => {
15
+ const u = $(), [e] = K(), [g, s] = p("paragraph"), [c, L] = p(!1), [m, _] = p(!1), D = () => {
16
16
  e.update(() => {
17
17
  const t = b();
18
- h(t) && O(t, () => M());
18
+ h(t) && B(t, () => E());
19
19
  });
20
- }, k = (t) => {
21
- t === "number" && g !== "number" ? (e.dispatchCommand(v, void 0), s("number")) : t === "bullet" && g !== "bullet" ? (e.dispatchCommand(D, void 0), s("bullet")) : (P(), s("paragraph"));
20
+ }, I = (t) => {
21
+ t === "number" && g !== "number" ? (e.dispatchCommand(k, void 0), s("number")) : t === "bullet" && g !== "bullet" ? (e.dispatchCommand(v, void 0), s("bullet")) : (D(), s("paragraph"));
22
22
  };
23
- return I(() => {
23
+ return P(() => {
24
24
  const t = e.registerCommand(
25
- U,
26
- (r) => r.ctrlKey && r.shiftKey && r.code === "Digit7" ? (r.preventDefault(), m ? e.dispatchCommand(N, void 0) : e.dispatchCommand(v, void 0), !0) : r.ctrlKey && r.shiftKey && r.code === "Digit8" ? (r.preventDefault(), c ? e.dispatchCommand(N, void 0) : e.dispatchCommand(D, void 0), !0) : !1,
27
- w
25
+ O,
26
+ (r) => r.ctrlKey && r.shiftKey && r.code === "Digit7" ? (r.preventDefault(), m ? e.dispatchCommand(N, void 0) : e.dispatchCommand(k, void 0), !0) : r.ctrlKey && r.shiftKey && r.code === "Digit8" ? (r.preventDefault(), c ? e.dispatchCommand(N, void 0) : e.dispatchCommand(v, void 0), !0) : !1,
27
+ R
28
28
  );
29
29
  return () => {
30
30
  t();
31
31
  };
32
- }, [e, m, c]), I(() => {
32
+ }, [e, m, c]), P(() => {
33
33
  e.registerCommand(
34
- B,
34
+ U,
35
35
  (r) => (r.preventDefault(), e.update(() => {
36
36
  const n = b();
37
37
  if (!h(n))
@@ -45,7 +45,7 @@ const j = {
45
45
  i.append(C), C.append(o);
46
46
  }
47
47
  }), !0),
48
- E
48
+ w
49
49
  );
50
50
  const t = e.registerUpdateListener(({ editorState: r }) => {
51
51
  r.read(() => {
@@ -73,7 +73,7 @@ const j = {
73
73
  }, [e]), /* @__PURE__ */ d("div", { className: l["editor__toolbar-button-group"], children: q.map((t) => /* @__PURE__ */ d(
74
74
  "button",
75
75
  {
76
- onClick: () => k(t),
76
+ onClick: () => I(t),
77
77
  title: u.format[`${t}Tooltip`],
78
78
  className: x(
79
79
  l["editor__toolbar-button"],
@@ -90,6 +90,6 @@ const j = {
90
90
  )) });
91
91
  };
92
92
  export {
93
- W as ListPlugin
93
+ T as ListPlugin
94
94
  };
95
95
  //# sourceMappingURL=ListPlugin.js.map
@@ -1,24 +1,24 @@
1
1
  import { u as m } from "../../../../LexicalComposerContext.prod-Dyvim1tK.js";
2
2
  import { useEffect as c } from "react";
3
- import { Y as f, z as u, M as d } from "../../../../Lexical.prod-RJB8n7sC.js";
4
- import { i } from "../../../../LexicalUtils.prod-mYf1cd8X.js";
5
- import { _ as p } from "../../../../LexicalClipboard.prod-DB_B0Sr6.js";
6
- import { d as D } from "../../../../index-DPQ9bZx5.js";
7
- const P = () => {
3
+ import { a0 as u, $ as f, c as p } from "../../../../Lexical.prod-CFhL_6Md.js";
4
+ import { u as i } from "../../../../LexicalUtils.prod-0Sd05E-o.js";
5
+ import { N as d } from "../../../../LexicalClipboard.prod-BsGZ_U-F.js";
6
+ import { d as D } from "../../../../index-0wq-B7do.js";
7
+ const g = () => {
8
8
  const [e] = m(), l = (t) => {
9
9
  t.preventDefault(), e.update(() => {
10
- const r = d(), n = i(t, InputEvent) || i(t, KeyboardEvent) ? null : t.clipboardData;
10
+ const r = p(), n = i(t, InputEvent) || i(t, KeyboardEvent) ? null : t.clipboardData;
11
11
  if (n != null && r !== null) {
12
12
  const a = n.getData("text/html"), o = new DataTransfer(), s = new D.MSWordNormalizer();
13
- o.setData("text/html", a), s.isActive(a) && o.setData("text/html", s.normalize(a)), p(o, r, e);
13
+ o.setData("text/html", a), s.isActive(a) && o.setData("text/html", s.normalize(a)), d(o, r, e);
14
14
  }
15
15
  });
16
16
  };
17
17
  return c(() => {
18
18
  const t = e.registerCommand(
19
- f,
19
+ u,
20
20
  (r) => r instanceof ClipboardEvent ? (l(r), !0) : !1,
21
- u
21
+ f
22
22
  );
23
23
  return () => {
24
24
  t();
@@ -26,6 +26,6 @@ const P = () => {
26
26
  }, [e]), null;
27
27
  };
28
28
  export {
29
- P as PasteHandlerPlugin
29
+ g as PasteHandlerPlugin
30
30
  };
31
31
  //# sourceMappingURL=PasteHandlerPlugin.js.map
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { b as z } from "../../../../TablePlugin-BVkwu1Gt.js";
3
+ import { b as z } from "../../../../TablePlugin-ChuaCSFq.js";
4
4
  import "../../../Buttons/Button.js";
5
5
  import "../../../Buttons/LinkButton.js";
6
6
  import "@react-aria/button";
@@ -20,7 +20,7 @@ import "../../hooks/useTranslation.js";
20
20
  import "../LinkPlugin/LinkContextMenu/LinkContextMenu.js";
21
21
  import "../../hooks/components/Flyout.js";
22
22
  import "../../Providers/LanguageProvider.js";
23
- import "../../../../index-DPQ9bZx5.js";
23
+ import "../../../../index-0wq-B7do.js";
24
24
  import "../../../SelectListbox/SelectListbox.js";
25
25
  import "../../../SelectListbox/SelectProvider.js";
26
26
  import "../../../Sortable/components/SortableItem.js";
@@ -1,10 +1,10 @@
1
1
  import "react/jsx-runtime";
2
2
  import "../../../../LexicalComposerContext.prod-Dyvim1tK.js";
3
3
  import "../../../../clsx-OuTLNxxd.js";
4
- import "../../../../LexicalTable.prod-CfgKmbyy.js";
5
- import "../../../../Lexical.prod-RJB8n7sC.js";
4
+ import "../../../../LexicalTable.prod-Dg8eGg1m.js";
5
+ import "../../../../Lexical.prod-CFhL_6Md.js";
6
6
  import "react";
7
- import { T as E } from "../../../../TablePlugin-BVkwu1Gt.js";
7
+ import { T as E } from "../../../../TablePlugin-ChuaCSFq.js";
8
8
  import "./helpers.js";
9
9
  import "../../hooks/useFlyout.js";
10
10
  import "../../../Icon/Icon.js";
@@ -24,7 +24,7 @@ import "../../../../RteEditor.module-oFMKEW6f.js";
24
24
  import "../../hooks/useTranslation.js";
25
25
  import "../LinkPlugin/LinkContextMenu/LinkContextMenu.js";
26
26
  import "../../Providers/LanguageProvider.js";
27
- import "../../../../index-DPQ9bZx5.js";
27
+ import "../../../../index-0wq-B7do.js";
28
28
  import "../../../SelectListbox/SelectListbox.js";
29
29
  import "../../../SelectListbox/SelectProvider.js";
30
30
  import "../../../Sortable/components/SortableItem.js";
@@ -1,26 +1,26 @@
1
- import { d as S, a as h, n as d, f as C, p as w, o as m, m as D, C as p, T as E } from "../../../../LexicalTable.prod-CfgKmbyy.js";
2
- import { D as u } from "../../../../Lexical.prod-RJB8n7sC.js";
3
- const b = 100, O = (e, n) => {
1
+ import { C as S, m as h, l as d, _ as w, w as C, s as m, b as E, y as b, a as I } from "../../../../LexicalTable.prod-Dg8eGg1m.js";
2
+ import { B as u } from "../../../../Lexical.prod-CFhL_6Md.js";
3
+ const p = 100, B = (e, n) => {
4
4
  const t = S(0, 0, !1);
5
5
  for (let o = 0; o < e; o++) {
6
6
  const r = h();
7
7
  for (let l = 0; l < n; l++) {
8
- const s = d(0, void 0, b / n);
8
+ const s = d(0, void 0, p / n);
9
9
  s.append(u()), r.append(s);
10
10
  }
11
11
  t.append(r);
12
12
  }
13
13
  return t;
14
- }, z = (e) => {
15
- const n = C(e), t = n.getNextSibling() || n.getPreviousSibling(), o = n.getParentOrThrow();
14
+ }, O = (e) => {
15
+ const n = w(e), t = n.getNextSibling() || n.getPreviousSibling(), o = n.getParentOrThrow();
16
16
  if (o.getChildrenSize() > 1 ? n.remove() : o.remove(), t !== null) {
17
17
  const r = t.getFirstDescendant();
18
18
  r && r.select();
19
19
  }
20
- }, I = (e) => {
21
- w(e).remove();
22
- }, F = (e, n) => {
23
- const t = h(), o = C(e), r = o.getChildrenSize();
20
+ }, v = (e) => {
21
+ C(e).remove();
22
+ }, z = (e, n) => {
23
+ const t = h(), o = w(e), r = o.getChildrenSize();
24
24
  for (let s = 0; s < r; s++) {
25
25
  const c = d(0);
26
26
  c.append(u()), t.append(c);
@@ -28,39 +28,39 @@ const b = 100, O = (e, n) => {
28
28
  n === "insertRowAbove" ? o.insertBefore(t) : o.insertAfter(t);
29
29
  const l = t.getFirstDescendant();
30
30
  l && l.select();
31
- }, P = (e, n) => {
32
- const t = C(e);
31
+ }, F = (e, n) => {
32
+ const t = w(e);
33
33
  if (!m(e))
34
34
  throw new Error("Selected node is not a TableCellNode");
35
- const o = D(e), r = t.getChildren().length, l = w(e);
36
- let s = p(e);
37
- const c = l.getChildren(), T = c.length;
38
- for (let i = 0; i < T; i++) {
35
+ const o = E(e), r = t.getChildren().length, l = C(e);
36
+ let s = b(e);
37
+ const c = l.getChildren(), R = c.length;
38
+ for (let i = 0; i < R; i++) {
39
39
  const a = d(0);
40
40
  a.append(u());
41
41
  const f = c[i].getChildren()[s];
42
- f && (n === "insertColumnLeft" ? f.insertBefore(a) : f.insertAfter(a)), c.forEach((R) => {
43
- R.getChildren().forEach((x) => {
44
- x.setWidth(b / r);
42
+ f && (n === "insertColumnLeft" ? f.insertBefore(a) : f.insertAfter(a)), c.forEach((T) => {
43
+ T.getChildren().forEach((x) => {
44
+ x.setWidth(p / r);
45
45
  });
46
46
  });
47
47
  }
48
48
  s = n === "insertColumnLeft" ? s : s + 1;
49
49
  const g = c[o].getChildren()[s];
50
50
  g && g.select();
51
- }, B = (e) => {
51
+ }, P = (e) => {
52
52
  var r;
53
53
  if (!m(e))
54
54
  throw new Error("Selected node is not a TableCellNode");
55
- const n = w(e), t = ((r = n.getFirstChild()) == null ? void 0 : r.getChildrenSize()) || 0, o = p(e);
56
- t === 1 ? I(e) : E(n, o);
55
+ const n = C(e), t = ((r = n.getFirstChild()) == null ? void 0 : r.getChildrenSize()) || 0, o = b(e);
56
+ t === 1 ? v(e) : I(n, o);
57
57
  };
58
58
  export {
59
- O as createTable,
60
- B as deleteColumn,
61
- z as deleteRow,
62
- I as deleteTable,
63
- P as insertColumn,
64
- F as insertRow
59
+ B as createTable,
60
+ P as deleteColumn,
61
+ O as deleteRow,
62
+ v as deleteTable,
63
+ F as insertColumn,
64
+ z as insertRow
65
65
  };
66
66
  //# sourceMappingURL=helpers.js.map
@@ -1,4 +1,4 @@
1
- import { T as o } from "../../../../TablePlugin-BVkwu1Gt.js";
1
+ import { T as o } from "../../../../TablePlugin-ChuaCSFq.js";
2
2
  import { TableCellContextMenu as t } from "./TableCellContextMenu/TableCellContextMenu.js";
3
3
  export {
4
4
  t as TableCellContextMenu,
@@ -1,20 +1,20 @@
1
1
  import { jsxs as P, jsx as n } from "react/jsx-runtime";
2
2
  import { u as y } from "../../../../LexicalComposerContext.prod-Dyvim1tK.js";
3
- import { M as g, v as h, F as C } from "../../../../Lexical.prod-RJB8n7sC.js";
4
- import { useState as E, useRef as L, useCallback as T, useEffect as m } from "react";
5
- import { g as b } from "../../../../LexicalTable.prod-CfgKmbyy.js";
6
- import { BlockFormatPlugin as N } from "../BlockFormatPlugin/BlockFormatPlugin.js";
3
+ import { c as h, a as g, F as C } from "../../../../Lexical.prod-CFhL_6Md.js";
4
+ import { useState as L, useRef as E, useCallback as S, useEffect as m } from "react";
5
+ import { S as b } from "../../../../LexicalTable.prod-Dg8eGg1m.js";
6
+ import { BlockFormatPlugin as T } from "../BlockFormatPlugin/BlockFormatPlugin.js";
7
7
  import { ListPlugin as k } from "../ListPlugin/ListPlugin.js";
8
- import { LinkPlugin as x } from "../LinkPlugin/LinkPlugin.js";
9
- import { HistoryPlugin as B } from "../HistoryPlugin/HistoryPlugin.js";
10
- import { T as S } from "../../../../TablePlugin-BVkwu1Gt.js";
11
- import { TableCellContextMenu as z } from "../TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
12
- import { s as A } from "../../../../RteEditor.module-oFMKEW6f.js";
13
- import { setScrollableContainers as v, removeScrollableContainers as K } from "../../helpers.js";
8
+ import { LinkPlugin as N } from "../LinkPlugin/LinkPlugin.js";
9
+ import { HistoryPlugin as x } from "../HistoryPlugin/HistoryPlugin.js";
10
+ import { T as B } from "../../../../TablePlugin-ChuaCSFq.js";
11
+ import { TableCellContextMenu as R } from "../TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
12
+ import { s as z } from "../../../../RteEditor.module-oFMKEW6f.js";
13
+ import { setScrollableContainers as w, removeScrollableContainers as A } from "../../helpers.js";
14
14
  const Q = ({ editorScrollPosition: d }) => {
15
- const [t] = y(), [i, s] = E(null), u = L(null), f = T(() => {
16
- const e = g();
17
- if (h(e)) {
15
+ const [t] = y(), [i, s] = L(null), u = E(null), f = S(() => {
16
+ const e = h();
17
+ if (g(e)) {
18
18
  const l = e.anchor.getNode(), a = b(l);
19
19
  if (a) {
20
20
  const p = t.getElementByKey(a.getKey()), c = p ? p.getBoundingClientRect() : { right: 0, bottom: 0, height: 0 };
@@ -22,13 +22,13 @@ const Q = ({ editorScrollPosition: d }) => {
22
22
  } else
23
23
  s(null);
24
24
  }
25
- }, [t]), w = (e) => {
25
+ }, [t]), v = (e) => {
26
26
  var r;
27
27
  (r = u.current) == null || r.mutateTable(e);
28
28
  }, o = () => {
29
29
  t.update(() => {
30
- const e = g();
31
- if (h(e)) {
30
+ const e = h();
31
+ if (g(e)) {
32
32
  const l = e.anchor.getNode();
33
33
  b(l) && (C(null), s(null));
34
34
  }
@@ -40,29 +40,29 @@ const Q = ({ editorScrollPosition: d }) => {
40
40
  f();
41
41
  });
42
42
  });
43
- }, [t, f]), m(() => (v(o), window.addEventListener("scroll", o), window.addEventListener("resize", o), () => {
44
- window.removeEventListener("scroll", o), window.removeEventListener("resize", o), K(o);
43
+ }, [t, f]), m(() => (w(o), window.addEventListener("scroll", o), window.addEventListener("resize", o), () => {
44
+ window.removeEventListener("scroll", o), window.removeEventListener("resize", o), A(o);
45
45
  }), [t]), m(() => {
46
46
  const e = () => {
47
- v(o);
47
+ w(o);
48
48
  };
49
49
  return window.addEventListener("keydown", e, { capture: !0 }), () => {
50
50
  window.removeEventListener("keydown", e);
51
51
  };
52
- }, []), /* @__PURE__ */ P("div", { className: A.editor__toolbar, children: [
53
- /* @__PURE__ */ n(N, {}),
52
+ }, []), /* @__PURE__ */ P("div", { className: z.editor__toolbar, children: [
53
+ /* @__PURE__ */ n(T, {}),
54
54
  /* @__PURE__ */ n(k, {}),
55
- /* @__PURE__ */ n(S, { isActive: !!i, ref: u }),
55
+ /* @__PURE__ */ n(B, { isActive: !!i, ref: u }),
56
56
  i && /* @__PURE__ */ n(
57
- z,
57
+ R,
58
58
  {
59
59
  position: i,
60
60
  parentScrollPosition: d,
61
- onAction: w
61
+ onAction: v
62
62
  }
63
63
  ),
64
- /* @__PURE__ */ n(x, { parentScrollPosition: d }),
65
- /* @__PURE__ */ n(B, {})
64
+ /* @__PURE__ */ n(N, { parentScrollPosition: d }),
65
+ /* @__PURE__ */ n(x, {})
66
66
  ] });
67
67
  };
68
68
  export {
@@ -3,7 +3,7 @@ import { BlockFormatPlugin as l } from "./BlockFormatPlugin/BlockFormatPlugin.js
3
3
  import { ListPlugin as n } from "./ListPlugin/ListPlugin.js";
4
4
  import { LinkPlugin as m, getLinkNodeTag as x } from "./LinkPlugin/LinkPlugin.js";
5
5
  import { HistoryPlugin as p } from "./HistoryPlugin/HistoryPlugin.js";
6
- import { T as a } from "../../../TablePlugin-BVkwu1Gt.js";
6
+ import { T as a } from "../../../TablePlugin-ChuaCSFq.js";
7
7
  import { TableCellContextMenu as T } from "./TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
8
8
  export {
9
9
  l as BlockFormatPlugin,