@uva-glass/component-library 3.53.12 → 3.53.14

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 (125) hide show
  1. package/dist/{Lexical.prod-Dgzi-S1E.js → Lexical.prod-YJ1n9pVJ.js} +1334 -1305
  2. package/dist/Lexical.prod-YJ1n9pVJ.js.map +1 -0
  3. package/dist/{LexicalClipboard.prod-Dxc8c2F_.js → LexicalClipboard.prod-CDPAGlNs.js} +52 -52
  4. package/dist/{LexicalClipboard.prod-Dxc8c2F_.js.map → LexicalClipboard.prod-CDPAGlNs.js.map} +1 -1
  5. package/dist/{LexicalExtension.prod-CNBWjmfs.js → LexicalExtension.prod-2-giLTv9.js} +87 -88
  6. package/dist/LexicalExtension.prod-2-giLTv9.js.map +1 -0
  7. package/dist/LexicalLink.prod-u8L4ioQd.js +528 -0
  8. package/dist/LexicalLink.prod-u8L4ioQd.js.map +1 -0
  9. package/dist/LexicalList.prod-DMU0XSLO.js +630 -0
  10. package/dist/LexicalList.prod-DMU0XSLO.js.map +1 -0
  11. package/dist/{LexicalSelection.prod-B0uiXGSS.js → LexicalSelection.prod-CpZE7Sey.js} +41 -41
  12. package/dist/{LexicalSelection.prod-B0uiXGSS.js.map → LexicalSelection.prod-CpZE7Sey.js.map} +1 -1
  13. package/dist/LexicalTable.prod-BOlKc5zf.js +1846 -0
  14. package/dist/LexicalTable.prod-BOlKc5zf.js.map +1 -0
  15. package/dist/LexicalUtils.prod-BQnuAaA9.js +92 -0
  16. package/dist/LexicalUtils.prod-BQnuAaA9.js.map +1 -0
  17. package/dist/{TableCellResizerPlugin-9kvw_LpH.js → TableCellResizerPlugin-BTfuE_kM.js} +53 -53
  18. package/dist/{TableCellResizerPlugin-9kvw_LpH.js.map → TableCellResizerPlugin-BTfuE_kM.js.map} +1 -1
  19. package/dist/{TablePlugin-BlXaQ0U6.js → TablePlugin-bFqq2Yd9.js} +75 -75
  20. package/dist/{TablePlugin-BlXaQ0U6.js.map → TablePlugin-bFqq2Yd9.js.map} +1 -1
  21. package/dist/{chunk-MDLQUVZN-Dk02kWJ8.js → chunk-2N4WE3KZ-DQvXvHLf.js} +534 -530
  22. package/dist/chunk-2N4WE3KZ-DQvXvHLf.js.map +1 -0
  23. package/dist/{client-3XNwBsl7.js → client-D5eE1v54.js} +90 -90
  24. package/dist/{client-3XNwBsl7.js.map → client-D5eE1v54.js.map} +1 -1
  25. package/dist/components/Accordion/Accordion.test.js +2 -2
  26. package/dist/components/AccordionCard/AccordionCard.test.js +2 -2
  27. package/dist/components/ActionList/ActionList.test.js +2 -2
  28. package/dist/components/AppStatusBar/AppStatusBar.test.js +1 -1
  29. package/dist/components/Attention/Attention.test.js +1 -1
  30. package/dist/components/Backdrop/Backdrop.test.js +1 -1
  31. package/dist/components/Buttons/Button.stories.js +1 -1
  32. package/dist/components/Buttons/Button.test.js +1 -1
  33. package/dist/components/Buttons/LinkButton.stories.js +1 -1
  34. package/dist/components/Buttons/LinkButton.test.js +1 -1
  35. package/dist/components/Buttons/MenuButton.stories.js +1 -1
  36. package/dist/components/Buttons/MenuButton.test.js +1 -1
  37. package/dist/components/Card/Card.test.js +1 -1
  38. package/dist/components/Checkbox/Checkbox.stories.js +1 -1
  39. package/dist/components/Checkbox/Checkbox.test.js +2 -2
  40. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +1 -1
  41. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js +1 -1
  42. package/dist/components/CheckboxTree/CheckboxTree.js +1 -1
  43. package/dist/components/CheckboxTree/CheckboxTree.stories.js +2 -2
  44. package/dist/components/Chip/Chip.stories.js +1 -1
  45. package/dist/components/ControlsButton/ControlsButton.stories.js +1 -1
  46. package/dist/components/Drawer/Drawer.stories.js +1 -1
  47. package/dist/components/FeedbackBar/FeedbackBar.test.js +1 -1
  48. package/dist/components/FormInput/FormInput.js +1 -1
  49. package/dist/components/FormInput/FormInput.stories.js +1 -1
  50. package/dist/components/IconButton/IconButton.stories.js +1 -1
  51. package/dist/components/InputField/InputField.stories.js +2 -2
  52. package/dist/components/Label/Label.test.js +1 -1
  53. package/dist/components/MetaDataBar/MetaDataBar.test.js +1 -1
  54. package/dist/components/ModalDialog/ModalDialog.stories.js +1 -1
  55. package/dist/components/MultiSelect/MultiSelect.js +1 -1
  56. package/dist/components/MultiSelect/MultiSelect.stories.js +2 -2
  57. package/dist/components/MultiSelect/components/MultiSelectHeader.js +1 -1
  58. package/dist/components/MultiSelect/index.js +1 -1
  59. package/dist/components/MultiSelectBox/MultiSelectBox.stories.js +1 -1
  60. package/dist/components/MultiSelectBox/MultiSelectBox.test.js +1 -1
  61. package/dist/components/Notification/Notification.stories.js +1 -1
  62. package/dist/components/Notification/Notification.test.js +1 -1
  63. package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +1 -1
  64. package/dist/components/PeriodSelector/PeriodSelector.js +1 -1
  65. package/dist/components/PeriodSelector/PeriodSelector.stories.js +1 -1
  66. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +1 -1
  67. package/dist/components/RadioGroup/RadioGroup.stories.js +1 -1
  68. package/dist/components/RadioGroup/Radiogroup.test.js +1 -1
  69. package/dist/components/RadioTabSelector/RadioTabSelector.js +1 -1
  70. package/dist/components/RadioTabSelector/RadioTabSelector.stories.js +1 -1
  71. package/dist/components/RteEditor/EditorHeader/EditorHeader.js +1 -1
  72. package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +8 -8
  73. package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/CourseCataloguePlugin.js +58 -58
  74. package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +4 -4
  75. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +1 -1
  76. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +61 -61
  77. package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
  78. package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +25 -25
  79. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +13 -13
  80. package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/TableCellResizerPlugin.js +4 -4
  81. package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/index.js +1 -1
  82. package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +1 -1
  83. package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +4 -4
  84. package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +24 -24
  85. package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
  86. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +29 -29
  87. package/dist/components/RteEditor/Plugins/index.js +2 -2
  88. package/dist/components/RteEditor/RteEditor.js +252 -252
  89. package/dist/components/RteEditor/RteEditor.js.map +1 -1
  90. package/dist/components/RteEditor/helpers.js +18 -18
  91. package/dist/components/RteEditor/nodes/CourseCatalogueNode/CourseCatalogueNode.js +19 -19
  92. package/dist/components/RteEditor/nodes/TableWrapperNode/TableWrapperNode.js +12 -12
  93. package/dist/components/SelectListbox/SelectListBox.stories.js +1 -1
  94. package/dist/components/Sortable/Sortable.stories.js +1 -1
  95. package/dist/components/StatusBadge/StatusBadge.test.js +1 -1
  96. package/dist/components/TextArea/TextArea.stories.js +1 -1
  97. package/dist/components/TextArea/TextArea.test.js +2 -2
  98. package/dist/components/ToggleSwitch/ToggleSwitch.stories.js +1 -1
  99. package/dist/components/VarIndicator/VarIndicator.stories.js +1 -1
  100. package/dist/components/VarIndicator/VarIndicator.test.js +2 -2
  101. package/dist/components/index.js +1 -1
  102. package/dist/{index-CdPMY4ux.js → index-1WwGCyua.js} +8847 -7067
  103. package/dist/index-1WwGCyua.js.map +1 -0
  104. package/dist/{index-CLNHDZVV.js → index-YdDr6J97.js} +2 -2
  105. package/dist/{index-CLNHDZVV.js.map → index-YdDr6J97.js.map} +1 -1
  106. package/dist/index.js +1 -1
  107. package/dist/{react-18-D3e2aqkg.js → react-18-CxCoNkIN.js} +2 -2
  108. package/dist/{react-18-D3e2aqkg.js.map → react-18-CxCoNkIN.js.map} +1 -1
  109. package/dist/{react.esm-QW7uOFDD.js → react.esm-C68fQMAi.js} +2 -2
  110. package/dist/{react.esm-QW7uOFDD.js.map → react.esm-C68fQMAi.js.map} +1 -1
  111. package/dist/storybook__react.d.js +281 -278
  112. package/dist/storybook__react.d.js.map +1 -1
  113. package/package.json +31 -31
  114. package/dist/Lexical.prod-Dgzi-S1E.js.map +0 -1
  115. package/dist/LexicalExtension.prod-CNBWjmfs.js.map +0 -1
  116. package/dist/LexicalLink.prod-EEOzXxej.js +0 -502
  117. package/dist/LexicalLink.prod-EEOzXxej.js.map +0 -1
  118. package/dist/LexicalList.prod-DADZlhem.js +0 -627
  119. package/dist/LexicalList.prod-DADZlhem.js.map +0 -1
  120. package/dist/LexicalTable.prod-QpQxZNNH.js +0 -1814
  121. package/dist/LexicalTable.prod-QpQxZNNH.js.map +0 -1
  122. package/dist/LexicalUtils.prod-D1mwAww-.js +0 -114
  123. package/dist/LexicalUtils.prod-D1mwAww-.js.map +0 -1
  124. package/dist/chunk-MDLQUVZN-Dk02kWJ8.js.map +0 -1
  125. package/dist/index-CdPMY4ux.js.map +0 -1
@@ -1,21 +1,21 @@
1
1
  import { o as m } from "../../../../LexicalComposerContext.prod-DOyoZx0P.js";
2
2
  import { useEffect as c } from "react";
3
- import { n as f, ah as p, c as u } from "../../../../Lexical.prod-Dgzi-S1E.js";
4
- import { P as i } from "../../../../LexicalUtils.prod-D1mwAww-.js";
5
- import { R as d } from "../../../../LexicalClipboard.prod-Dxc8c2F_.js";
3
+ import { s as f, an as p, a as u } from "../../../../Lexical.prod-YJ1n9pVJ.js";
4
+ import { A as i } from "../../../../LexicalUtils.prod-BQnuAaA9.js";
5
+ import { R as d } from "../../../../LexicalClipboard.prod-CDPAGlNs.js";
6
6
  import { d as D } from "../../../../index-yEhaxKq-.js";
7
- const w = () => {
8
- const [e] = m(), l = (t) => {
9
- t.preventDefault(), e.update(() => {
10
- const r = u(), a = i(t, InputEvent) || i(t, KeyboardEvent) ? null : t.clipboardData;
11
- if (a != null && r !== null) {
12
- const o = a.getData("text/html") || a.getData("text/plain"), n = new DataTransfer(), s = new D.MSWordNormalizer();
13
- n.setData("text/html", o), s.isActive(o) && n.setData("text/html", s.normalize(o)), d(n, r, e);
7
+ const P = () => {
8
+ const [a] = m(), l = (t) => {
9
+ t.preventDefault(), a.update(() => {
10
+ const r = u(), e = i(t, InputEvent) || i(t, KeyboardEvent) ? null : t.clipboardData;
11
+ if (e != null && r !== null) {
12
+ const o = e.getData("text/html") || e.getData("text/plain"), n = new DataTransfer(), s = new D.MSWordNormalizer();
13
+ n.setData("text/html", o), s.isActive(o) && n.setData("text/html", s.normalize(o)), d(n, r, a);
14
14
  }
15
15
  });
16
16
  };
17
17
  return c(() => {
18
- const t = e.registerCommand(
18
+ const t = a.registerCommand(
19
19
  f,
20
20
  (r) => r instanceof ClipboardEvent ? (l(r), !0) : !1,
21
21
  p
@@ -23,9 +23,9 @@ const w = () => {
23
23
  return () => {
24
24
  t();
25
25
  };
26
- }, [e]), null;
26
+ }, [a]), null;
27
27
  };
28
28
  export {
29
- w as PasteHandlerPlugin
29
+ P 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-9kvw_LpH.js";
5
- import "../../../../LexicalTable.prod-QpQxZNNH.js";
6
- import "../../../../LexicalUtils.prod-D1mwAww-.js";
7
- import "../../../../Lexical.prod-Dgzi-S1E.js";
4
+ import { T as b } from "../../../../TableCellResizerPlugin-BTfuE_kM.js";
5
+ import "../../../../LexicalTable.prod-BOlKc5zf.js";
6
+ import "../../../../LexicalUtils.prod-BQnuAaA9.js";
7
+ import "../../../../Lexical.prod-YJ1n9pVJ.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-9kvw_LpH.js";
1
+ import { T as r } from "../../../../TableCellResizerPlugin-BTfuE_kM.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-BlXaQ0U6.js";
3
+ import { b as G } from "../../../../TablePlugin-bFqq2Yd9.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-QpQxZNNH.js";
5
- import "../../../../Lexical.prod-Dgzi-S1E.js";
6
- import "../../../../LexicalUtils.prod-D1mwAww-.js";
4
+ import "../../../../LexicalTable.prod-BOlKc5zf.js";
5
+ import "../../../../Lexical.prod-YJ1n9pVJ.js";
6
+ import "../../../../LexicalUtils.prod-BQnuAaA9.js";
7
7
  import "react";
8
- import { T as L } from "../../../../TablePlugin-BlXaQ0U6.js";
8
+ import { T as L } from "../../../../TablePlugin-bFqq2Yd9.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 { Z as p, A as i, I as w, s as T, J as u, U as b, e as E, D, $ as g, V as I, B as R, O as x } from "../../../../LexicalTable.prod-QpQxZNNH.js";
2
- import { $ as S } from "../../../../Lexical.prod-Dgzi-S1E.js";
1
+ import { n as p, E as i, Y as w, a as T, q as u, X as b, o as E, J as I, H as g, Z as D, I as R, k as x } from "../../../../LexicalTable.prod-BOlKc5zf.js";
2
+ import { j as S } from "../../../../Lexical.prod-YJ1n9pVJ.js";
3
3
  import { TableWrapperNode as N } from "../../nodes/TableWrapperNode/TableWrapperNode.js";
4
4
  import "react";
5
- const F = 32, a = 48, W = 1, B = 200, P = 320, A = (t, e) => {
5
+ const F = 32, a = 48, W = 1, H = 200, P = 320, B = (t, e) => {
6
6
  const n = R(0, 0, !1);
7
7
  for (let o = 0; o < t; o++) {
8
8
  const r = g();
@@ -13,26 +13,26 @@ const F = 32, a = 48, W = 1, B = 200, P = 320, A = (t, e) => {
13
13
  n.append(r);
14
14
  }
15
15
  return n;
16
- }, H = (t) => {
17
- const e = D(t), n = e.getNextSibling() || e.getPreviousSibling(), o = e.getParentOrThrow();
16
+ }, M = (t) => {
17
+ const e = I(t), n = e.getNextSibling() || e.getPreviousSibling(), o = e.getParentOrThrow();
18
18
  if (o.getChildrenSize() > 1 ? e.remove() : o.remove(), n !== null) {
19
19
  const r = n.getFirstDescendant();
20
20
  r && r.select();
21
21
  }
22
- }, O = (t) => {
22
+ }, _ = (t) => {
23
23
  const e = p(t);
24
24
  if (!e)
25
25
  throw new Error("Selected node is not a TableCellNode");
26
26
  const n = e.getParent();
27
27
  n instanceof N ? n.remove() : e.remove();
28
- }, U = (t, e) => {
28
+ }, A = (t, e) => {
29
29
  if (!i(t))
30
30
  throw new Error("Selected node is not a TableCellNode");
31
31
  const n = g();
32
- I(e === "insertRowBelow");
32
+ D(e === "insertRowBelow");
33
33
  const o = n.getFirstDescendant();
34
34
  o && o.select();
35
- }, M = (t, e) => {
35
+ }, U = (t, e) => {
36
36
  if (!i(t))
37
37
  throw new Error("Selected node is not a TableCellNode");
38
38
  const n = w(t);
@@ -49,22 +49,22 @@ const F = 32, a = 48, W = 1, B = 200, P = 320, A = (t, e) => {
49
49
  n.setColWidths(C), o = e === "insertColumnLeft" ? o : o + 1;
50
50
  const f = r[s].getChildren()[o];
51
51
  f && f.select();
52
- }, $ = (t) => {
52
+ }, X = (t) => {
53
53
  if (!i(t))
54
54
  throw new Error("Selected node is not a TableCellNode");
55
- (w(t).getFirstChild()?.getChildrenSize() || 0) === 1 ? O(t) : T();
56
- }, V = (t) => {
55
+ (w(t).getFirstChild()?.getChildrenSize() || 0) === 1 ? _(t) : T();
56
+ }, Y = (t) => {
57
57
  const e = t.getRootElement();
58
58
  if (!e || typeof window > "u") return 0;
59
59
  const n = e.getBoundingClientRect(), o = window.getComputedStyle(e), r = parseFloat(o.paddingLeft || "0") + parseFloat(o.paddingRight || "0") + a;
60
60
  return Math.max(0, n.width - r);
61
- }, z = (t, e, n) => {
61
+ }, j = (t, e, n) => {
62
62
  if (!t) return 0;
63
63
  const o = n.getElementByKey(t.getKey());
64
64
  if (!o) return 0;
65
65
  const r = window.getComputedStyle(o);
66
66
  return parseInt(r.width) - e * W - 1;
67
- }, J = (t) => {
67
+ }, k = (t) => {
68
68
  const e = t.getChildren();
69
69
  for (const n of e) {
70
70
  const o = n.getChildren();
@@ -79,15 +79,15 @@ export {
79
79
  a as DEFAULT_COL_WIDTH,
80
80
  P as DEFAULT_EDITOR_WIDTH,
81
81
  F as MIN_COLUMN_WIDTH,
82
- B as PREVENT_OPEN_DELAY,
83
- A as createTable,
84
- $ as deleteColumn,
85
- H as deleteRow,
86
- O as deleteTable,
87
- V as getEditorContentWidth,
88
- z as getEditorParrentCellWidth,
89
- M as insertColumn,
90
- U as insertRow,
91
- J as tableHasContent
82
+ H as PREVENT_OPEN_DELAY,
83
+ B as createTable,
84
+ X as deleteColumn,
85
+ M as deleteRow,
86
+ _ as deleteTable,
87
+ Y as getEditorContentWidth,
88
+ j as getEditorParrentCellWidth,
89
+ U as insertColumn,
90
+ A as insertRow,
91
+ k as tableHasContent
92
92
  };
93
93
  //# sourceMappingURL=helpers.js.map
@@ -1,4 +1,4 @@
1
- import { T as o } from "../../../../TablePlugin-BlXaQ0U6.js";
1
+ import { T as o } from "../../../../TablePlugin-bFqq2Yd9.js";
2
2
  import { TableCellContextMenu as t } from "./TableCellContextMenu/TableCellContextMenu.js";
3
3
  export {
4
4
  t as TableCellContextMenu,
@@ -1,85 +1,85 @@
1
1
  import { jsxs as y, jsx as t } from "react/jsx-runtime";
2
- import { o as E } from "../../../../LexicalComposerContext.prod-DOyoZx0P.js";
3
- import { c as g, b, l as L } from "../../../../Lexical.prod-Dgzi-S1E.js";
4
- import { useState as T, useRef as N, useCallback as x, useEffect as m } from "react";
5
- import { P as w } from "../../../../LexicalTable.prod-QpQxZNNH.js";
2
+ import { o as L } from "../../../../LexicalComposerContext.prod-DOyoZx0P.js";
3
+ import { a as g, N as b, r as E } from "../../../../Lexical.prod-YJ1n9pVJ.js";
4
+ import { useState as N, useRef as T, useCallback as x, useEffect as m } from "react";
5
+ import { U as w } from "../../../../LexicalTable.prod-BOlKc5zf.js";
6
6
  import { CourseCataloguePlugin as B } from "../CourseCataloguePlugin/CourseCataloguePlugin.js";
7
7
  import { BlockFormatPlugin as k } from "../BlockFormatPlugin/BlockFormatPlugin.js";
8
8
  import { ListPlugin as S } from "../ListPlugin/ListPlugin.js";
9
- import { LinkPlugin as z } from "../LinkPlugin/LinkPlugin.js";
10
- import { HistoryPlugin as A } from "../HistoryPlugin/HistoryPlugin.js";
11
- import { T as K } from "../../../../TablePlugin-BlXaQ0U6.js";
12
- import { TableCellContextMenu as R } from "../TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
9
+ import { LinkPlugin as j } from "../LinkPlugin/LinkPlugin.js";
10
+ import { HistoryPlugin as z } from "../HistoryPlugin/HistoryPlugin.js";
11
+ import { T as A } from "../../../../TablePlugin-bFqq2Yd9.js";
12
+ import { TableCellContextMenu as K } from "../TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
13
13
  import "react-dom";
14
14
  import "../../../../index-yEhaxKq-.js";
15
- import { s as j } from "../../../../RteEditor.module-DaBh86FK.js";
16
- import { setScrollableContainers as v, removeScrollableContainers as _ } from "../../helpers.js";
17
- const Z = ({
18
- editorScrollPosition: r,
15
+ import { s as R } from "../../../../RteEditor.module-DaBh86FK.js";
16
+ import { setScrollableContainers as v, removeScrollableContainers as U } from "../../helpers.js";
17
+ const $ = ({
18
+ editorScrollPosition: n,
19
19
  onCatalogueLinkSearch: d,
20
20
  catalogueSearchResponse: u
21
21
  }) => {
22
- const [n] = E(), [i, s] = T(null), p = N(null), f = x(() => {
22
+ const [r] = L(), [i, s] = N(null), p = T(null), f = x(() => {
23
23
  const o = g();
24
24
  if (b(o)) {
25
25
  const l = o.anchor.getNode(), a = w(l);
26
26
  if (a) {
27
- const h = n.getElementByKey(a.getKey()), c = h ? h.getBoundingClientRect() : { right: 0, bottom: 0, height: 0 };
27
+ const h = r.getElementByKey(a.getKey()), c = h ? h.getBoundingClientRect() : { right: 0, bottom: 0, height: 0 };
28
28
  s({ xPos: c.right, yPos: c.bottom, height: c.height });
29
29
  } else
30
30
  s(null);
31
31
  }
32
- }, [n]), P = (o) => {
32
+ }, [r]), P = (o) => {
33
33
  p.current?.mutateTable(o);
34
34
  }, e = () => {
35
- n.update(() => {
35
+ r.update(() => {
36
36
  const o = g();
37
37
  if (b(o)) {
38
38
  const l = o.anchor.getNode();
39
- w(l) && (L(null), s(null));
39
+ w(l) && (E(null), s(null));
40
40
  }
41
41
  });
42
42
  };
43
43
  return m(() => {
44
- n.registerUpdateListener(({ editorState: o }) => {
44
+ r.registerUpdateListener(({ editorState: o }) => {
45
45
  o.read(() => {
46
46
  f();
47
47
  });
48
48
  });
49
- }, [n, f]), m(() => (v(e), window.addEventListener("scroll", e), window.addEventListener("resize", e), () => {
50
- window.removeEventListener("scroll", e), window.removeEventListener("resize", e), _(e);
51
- }), [n]), m(() => {
49
+ }, [r, f]), m(() => (v(e), window.addEventListener("scroll", e), window.addEventListener("resize", e), () => {
50
+ window.removeEventListener("scroll", e), window.removeEventListener("resize", e), U(e);
51
+ }), [r]), m(() => {
52
52
  const o = () => {
53
53
  v(e);
54
54
  };
55
55
  return window.addEventListener("keydown", o, { capture: !0 }), () => {
56
56
  window.removeEventListener("keydown", o);
57
57
  };
58
- }, []), /* @__PURE__ */ y("div", { className: j.editor__toolbar, children: [
58
+ }, []), /* @__PURE__ */ y("div", { className: R.editor__toolbar, children: [
59
59
  /* @__PURE__ */ t(k, {}),
60
60
  /* @__PURE__ */ t(S, {}),
61
- /* @__PURE__ */ t(K, { isActive: !!i, ref: p }),
61
+ /* @__PURE__ */ t(A, { isActive: !!i, ref: p }),
62
62
  i && /* @__PURE__ */ t(
63
- R,
63
+ K,
64
64
  {
65
65
  position: i,
66
- parentScrollPosition: r,
66
+ parentScrollPosition: n,
67
67
  onAction: P
68
68
  }
69
69
  ),
70
- /* @__PURE__ */ t(z, { parentScrollPosition: r }),
70
+ /* @__PURE__ */ t(j, { parentScrollPosition: n }),
71
71
  d && u && /* @__PURE__ */ t(
72
72
  B,
73
73
  {
74
- parentScrollPosition: r,
74
+ parentScrollPosition: n,
75
75
  onSearch: d,
76
76
  searchResponse: u
77
77
  }
78
78
  ),
79
- /* @__PURE__ */ t(A, {})
79
+ /* @__PURE__ */ t(z, {})
80
80
  ] });
81
81
  };
82
82
  export {
83
- Z as ToolBarPlugin
83
+ $ as ToolBarPlugin
84
84
  };
85
85
  //# 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 x } from "./LinkPlugin/LinkPlugin.js";
5
5
  import { HistoryPlugin as f } from "./HistoryPlugin/HistoryPlugin.js";
6
- import { T as u } from "../../../TablePlugin-BlXaQ0U6.js";
6
+ import { T as u } from "../../../TablePlugin-bFqq2Yd9.js";
7
7
  import { TableCellContextMenu as g } from "./TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
8
- import { T } from "../../../TableCellResizerPlugin-9kvw_LpH.js";
8
+ import { T } from "../../../TableCellResizerPlugin-BTfuE_kM.js";
9
9
  import { PasteHandlerPlugin as C } from "./PasteHandlerPlugin/PasteHandlerPlugin.js";
10
10
  export {
11
11
  t as BlockFormatPlugin,