@uva-glass/component-library 2.6.1 → 2.6.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 (61) hide show
  1. package/dist/Lexical.prod-BAr6tzpa.js +4236 -0
  2. package/dist/Lexical.prod-BAr6tzpa.js.map +1 -0
  3. package/dist/{LexicalClipboard.prod-Dg23ixPD.js → LexicalClipboard.prod-CLCBYtDj.js} +56 -56
  4. package/dist/LexicalClipboard.prod-CLCBYtDj.js.map +1 -0
  5. package/dist/LexicalLink.prod-CBgZ4B3x.js +263 -0
  6. package/dist/LexicalLink.prod-CBgZ4B3x.js.map +1 -0
  7. package/dist/LexicalList.prod-haeqjypw.js +576 -0
  8. package/dist/LexicalList.prod-haeqjypw.js.map +1 -0
  9. package/dist/{LexicalSelection.prod-CNWFGVlh.js → LexicalSelection.prod-C8x7KK4L.js} +38 -38
  10. package/dist/LexicalSelection.prod-C8x7KK4L.js.map +1 -0
  11. package/dist/LexicalTable.prod-8RqiGUG-.js +1447 -0
  12. package/dist/LexicalTable.prod-8RqiGUG-.js.map +1 -0
  13. package/dist/LexicalUtils.prod-Dsec_Kl-.js +122 -0
  14. package/dist/LexicalUtils.prod-Dsec_Kl-.js.map +1 -0
  15. package/dist/{TablePlugin-E6UFlCgy.js → TablePlugin-sPSGmCno.js} +69 -69
  16. package/dist/{TablePlugin-E6UFlCgy.js.map → TablePlugin-sPSGmCno.js.map} +1 -1
  17. package/dist/components/CheckboxTree/CheckboxTree.js +1 -1
  18. package/dist/components/FormInput/FormInput.js +1 -1
  19. package/dist/components/InputField/InputField.stories.js +1 -1
  20. package/dist/components/MultiSelect/MultiSelect.js +1 -1
  21. package/dist/components/MultiSelect/MultiSelect.stories.js +1 -1
  22. package/dist/components/MultiSelect/components/MultiSelectHeader.js +1 -1
  23. package/dist/components/MultiSelect/index.js +1 -1
  24. package/dist/components/OverlayStepBar/OverlayStepBar.js +1 -1
  25. package/dist/components/PeriodSelector/PeriodSelector.js +1 -1
  26. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +1 -1
  27. package/dist/components/RteEditor/EditorHeader/EditorHeader.js +1 -1
  28. package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +3 -3
  29. package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +2 -2
  30. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +2 -2
  31. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +1 -1
  32. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +37 -37
  33. package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
  34. package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +23 -23
  35. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +13 -13
  36. package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +1 -1
  37. package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +3 -3
  38. package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +26 -26
  39. package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
  40. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +17 -17
  41. package/dist/components/RteEditor/Plugins/index.js +1 -1
  42. package/dist/components/RteEditor/RteEditor.js +501 -557
  43. package/dist/components/RteEditor/RteEditor.js.map +1 -1
  44. package/dist/components/RteEditor/helpers.js +11 -11
  45. package/dist/components/index.js +1 -1
  46. package/dist/{helpers-BVGma1u6.js → helpers-DHHQR5ys.js} +44 -44
  47. package/dist/{helpers-BVGma1u6.js.map → helpers-DHHQR5ys.js.map} +1 -1
  48. package/dist/index.js +1 -1
  49. package/package.json +14 -14
  50. package/dist/Lexical.prod-Bzma_w4s.js +0 -4216
  51. package/dist/Lexical.prod-Bzma_w4s.js.map +0 -1
  52. package/dist/LexicalClipboard.prod-Dg23ixPD.js.map +0 -1
  53. package/dist/LexicalLink.prod-C1RDJLfo.js +0 -208
  54. package/dist/LexicalLink.prod-C1RDJLfo.js.map +0 -1
  55. package/dist/LexicalList.prod-BGzfDPU0.js +0 -568
  56. package/dist/LexicalList.prod-BGzfDPU0.js.map +0 -1
  57. package/dist/LexicalSelection.prod-CNWFGVlh.js.map +0 -1
  58. package/dist/LexicalTable.prod-D-4NN9o5.js +0 -1366
  59. package/dist/LexicalTable.prod-D-4NN9o5.js.map +0 -1
  60. package/dist/LexicalUtils.prod-Cg2siy-c.js +0 -94
  61. package/dist/LexicalUtils.prod-Cg2siy-c.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import { jsxs as k, Fragment as v, jsx as n } from "react/jsx-runtime";
2
2
  import { forwardRef as K, useState as b, useRef as N, useImperativeHandle as T, useLayoutEffect as g } from "react";
3
- import { e as E } from "../../../../../helpers-BVGma1u6.js";
3
+ import { e as E } from "../../../../../helpers-DHHQR5ys.js";
4
4
  import { Icon as m } from "../../../../Icon/Icon.js";
5
5
  import { useTranslation as R } from "../../../hooks/useTranslation.js";
6
6
  import { Button as y } from "../../../../Buttons/Button.js";
@@ -1,11 +1,11 @@
1
1
  import { jsx as k, jsxs as Y } from "react/jsx-runtime";
2
2
  import { u as $ } from "../../../../LexicalComposerContext.prod-Dyvim1tK.js";
3
3
  import { c as q } from "../../../../clsx-OuTLNxxd.js";
4
- import { g as O, m as G, U as J } from "../../../../LexicalLink.prod-C1RDJLfo.js";
4
+ import { m as z, x as G, N as J } from "../../../../LexicalLink.prod-CBgZ4B3x.js";
5
5
  import { useRef as a, useState as Q, useEffect as m } from "react";
6
- import { t as X, R as f, a7 as Z, a5 as tt, a as w, a6 as et, F as ot, d as rt } from "../../../../Lexical.prod-Bzma_w4s.js";
7
- import { A as nt } from "../../../../TablePlugin-E6UFlCgy.js";
8
- import { e as it } from "../../../../helpers-BVGma1u6.js";
6
+ import { t as X, H as f, a8 as Z, a7 as tt, a as w, f as et, M as ot, b as rt } from "../../../../Lexical.prod-BAr6tzpa.js";
7
+ import { A as nt } from "../../../../TablePlugin-sPSGmCno.js";
8
+ import { e as it } from "../../../../helpers-DHHQR5ys.js";
9
9
  import { LinkContextMenu as st } from "./LinkContextMenu/LinkContextMenu.js";
10
10
  import { useFlyout as ct } from "../../hooks/useFlyout.js";
11
11
  import { Icon as lt } from "../../../Icon/Icon.js";
@@ -21,7 +21,7 @@ import "../../../IconButton/IconButton.js";
21
21
  import "../../../Input/Input.js";
22
22
  import "../../../InputField/InputField.js";
23
23
  import "react-router";
24
- import { setScrollableContainers as U, removeScrollableContainers as at } from "../../helpers.js";
24
+ import { setScrollableContainers as B, removeScrollableContainers as at } from "../../helpers.js";
25
25
  import { s as h } from "../../../../RteEditor.module-oFMKEW6f.js";
26
26
  import { useTranslation as ut } from "../../hooks/useTranslation.js";
27
27
  import "../../Providers/LanguageProvider.js";
@@ -30,18 +30,18 @@ import "../../../SelectListbox/SelectListbox.js";
30
30
  import "../../../SelectListbox/SelectProvider.js";
31
31
  import "../../../Sortable/components/SortableItem.js";
32
32
  import "../../../../SortableProvider-BUsvniX7.js";
33
- const mt = 200, z = (p) => {
33
+ const mt = 200, M = (p) => {
34
34
  let n = p;
35
35
  for (; n; ) {
36
- if (O(n))
36
+ if (z(n))
37
37
  return n;
38
38
  n = n.getParent();
39
39
  }
40
40
  return null;
41
- }, I = (p) => {
41
+ }, O = (p) => {
42
42
  let n = p;
43
43
  for (; n; ) {
44
- if (O(n))
44
+ if (z(n))
45
45
  return {
46
46
  active: !0,
47
47
  url: n.getURL(),
@@ -51,46 +51,46 @@ const mt = 200, z = (p) => {
51
51
  }
52
52
  return !1;
53
53
  }, jt = ({ parentScrollPosition: p }) => {
54
- const n = ut(), [c] = $(), { flyout: A, showFlyout: E, hideFlyout: C, isVisible: u } = ct(), d = a(), N = a(!1), y = a(""), g = a(""), [L, H] = Q({ active: !1, url: "", linktext: "" }), R = a(u), x = a(null), P = a(null), F = a(), b = () => {
54
+ const n = ut(), [c] = $(), { flyout: I, showFlyout: E, hideFlyout: C, isVisible: u } = ct(), d = a(), N = a(!1), y = a(""), g = a(""), [L, U] = Q({ active: !1, url: "", linktext: "" }), P = a(u), x = a(null), S = a(null), T = a(), b = () => {
55
55
  c.update(() => {
56
56
  const e = f();
57
57
  x.current = e;
58
58
  });
59
- }, S = () => {
59
+ }, R = () => {
60
60
  c.update(() => {
61
61
  x.current && ot(x.current);
62
62
  });
63
- }, M = (e, t) => {
63
+ }, A = (e, t) => {
64
64
  E({
65
65
  position: t,
66
66
  children: /* @__PURE__ */ k(
67
67
  st,
68
68
  {
69
69
  url: e,
70
- onSave: (o) => K(o, ""),
70
+ onSave: (o) => H(o, ""),
71
71
  onDelete: () => V(),
72
72
  onClose: D,
73
- ref: F
73
+ ref: T
74
74
  }
75
75
  )
76
76
  });
77
77
  }, D = () => {
78
78
  var e;
79
- (e = F.current) == null || e.clearForm(), C(), S();
80
- }, T = () => {
79
+ (e = T.current) == null || e.clearForm(), C(), R();
80
+ }, F = () => {
81
81
  var t;
82
- const e = (t = P.current) == null ? void 0 : t.getBoundingClientRect();
82
+ const e = (t = S.current) == null ? void 0 : t.getBoundingClientRect();
83
83
  !N.current && e && (b(), E({ position: { top: e.bottom, left: e.left }, ...j }), setTimeout(() => {
84
84
  var o;
85
85
  return (o = d.current) == null ? void 0 : o.setDefaults("", g.current);
86
86
  }, 0));
87
87
  }, v = () => {
88
- C(), S();
89
- }, K = (e, t) => {
88
+ C(), R();
89
+ }, H = (e, t) => {
90
90
  c.update(() => {
91
91
  const o = f();
92
92
  if (w(o)) {
93
- const i = o.anchor.getNode(), s = z(i);
93
+ const i = o.anchor.getNode(), s = M(i);
94
94
  if (t && t !== "") {
95
95
  if (s) {
96
96
  const l = rt(t);
@@ -113,7 +113,7 @@ const mt = 200, z = (p) => {
113
113
  {
114
114
  isLink: L,
115
115
  onCloseHandler: v,
116
- onSaveHandler: (e, t) => K(e, t),
116
+ onSaveHandler: (e, t) => H(e, t),
117
117
  ref: d
118
118
  }
119
119
  )
@@ -124,10 +124,10 @@ const mt = 200, z = (p) => {
124
124
  }, [d, u]), m(() => {
125
125
  const e = (r) => {
126
126
  if (w(r) && r.isCollapsed()) {
127
- const i = I(r.anchor.getNode());
127
+ const i = O(r.anchor.getNode());
128
128
  if (i) {
129
129
  const s = c.getElementByKey(r.anchor.getNode().getKey()), l = s ? { top: s.getBoundingClientRect().bottom, left: s.getBoundingClientRect().left } : { top: 0, left: 0 };
130
- return M(i.url, l), !0;
130
+ return A(i.url, l), !0;
131
131
  }
132
132
  }
133
133
  return !1;
@@ -157,26 +157,26 @@ const mt = 200, z = (p) => {
157
157
  const r = f();
158
158
  if (b(), !w(r))
159
159
  return !1;
160
- const i = I(r.anchor.getNode()), s = (_ = "", W = "") => {
161
- T(), setTimeout(() => {
162
- var B;
163
- return (B = d.current) == null ? void 0 : B.setDefaults(_, W);
160
+ const i = O(r.anchor.getNode()), s = (_ = "", W = "") => {
161
+ F(), setTimeout(() => {
162
+ var K;
163
+ return (K = d.current) == null ? void 0 : K.setDefaults(_, W);
164
164
  }, 0);
165
165
  };
166
166
  if (i)
167
167
  return o.preventDefault(), o.stopPropagation(), o.stopImmediatePropagation(), y.current = i.linktext, s(i.url, i.linktext), !0;
168
168
  const l = r.getTextContent();
169
- return l !== "" ? (g.current = l, s("", g.current), !0) : (T(), !0);
169
+ return l !== "" ? (g.current = l, s("", g.current), !0) : (F(), !0);
170
170
  }
171
171
  return !1;
172
172
  },
173
173
  et
174
174
  ), t = c.registerUpdateListener(({ editorState: o }) => {
175
- H(
175
+ U(
176
176
  o.read(() => {
177
177
  const r = f();
178
178
  if (b(), w(r)) {
179
- const i = r.anchor.getNode(), s = z(i);
179
+ const i = r.anchor.getNode(), s = M(i);
180
180
  if (s)
181
181
  return {
182
182
  active: !0,
@@ -197,25 +197,25 @@ const mt = 200, z = (p) => {
197
197
  };
198
198
  }, [c]), m(() => {
199
199
  var e;
200
- R.current = u, u || (e = F.current) == null || e.clearForm();
200
+ P.current = u, u || (e = T.current) == null || e.clearForm();
201
201
  }, [u]), m(() => {
202
202
  u && v();
203
203
  }, [p]), m(() => {
204
204
  L.active || C();
205
205
  }, [L]), m(() => {
206
- const e = (o) => (U(t), o.key === "Escape" && R.current && (o.preventDefault(), o.stopPropagation(), v()), !0);
206
+ const e = (o) => (B(t), o.key === "Escape" && P.current && (o.preventDefault(), o.stopPropagation(), v()), !0);
207
207
  window.addEventListener("keydown", e, { capture: !0 });
208
208
  const t = () => {
209
209
  C();
210
210
  };
211
- return U(t), window.addEventListener("scroll", t), window.addEventListener("resize", t), () => {
211
+ return B(t), window.addEventListener("scroll", t), window.addEventListener("resize", t), () => {
212
212
  window.removeEventListener("keydown", e), window.removeEventListener("scroll", t), window.removeEventListener("resize", t), at(t);
213
213
  };
214
214
  }, []), /* @__PURE__ */ k("div", { className: h["editor__toolbar-button-group"], children: /* @__PURE__ */ Y("div", { className: h["editor__toolbar-button-flyoutwrapper"], children: [
215
215
  /* @__PURE__ */ k(
216
216
  "button",
217
217
  {
218
- onClick: T,
218
+ onClick: F,
219
219
  title: n.links.linkTooltip,
220
220
  className: q(
221
221
  h["editor__toolbar-button"],
@@ -225,15 +225,15 @@ const mt = 200, z = (p) => {
225
225
  "aria-label": n.aria.labels.link,
226
226
  "aria-keyshortcuts": n.aria.keyshortcuts.link,
227
227
  type: "button",
228
- ref: P,
228
+ ref: S,
229
229
  children: /* @__PURE__ */ k(lt, { name: "Link", size: 20 })
230
230
  }
231
231
  ),
232
- A
232
+ I
233
233
  ] }) });
234
234
  };
235
235
  export {
236
236
  jt as LinkPlugin,
237
- I as getLinkNodeTag
237
+ O as getLinkNodeTag
238
238
  };
239
239
  //# sourceMappingURL=LinkPlugin.js.map
@@ -1,4 +1,4 @@
1
- import { M as e, e as r, a as s, v as l } from "../../../../helpers-BVGma1u6.js";
1
+ import { M as e, e as r, a as s, v as l } from "../../../../helpers-DHHQR5ys.js";
2
2
  export {
3
3
  e as MATCHERS,
4
4
  r as ensureHttps,
@@ -1,35 +1,35 @@
1
1
  import { jsx as d } from "react/jsx-runtime";
2
2
  import { u as I } from "../../../../LexicalComposerContext.prod-Dyvim1tK.js";
3
- import { Y as N, Q as k, G as v, V as S, H as f, q as y } from "../../../../LexicalList.prod-BGzfDPU0.js";
4
- import { b as x } from "../../../../LexicalSelection.prod-CNWFGVlh.js";
5
- import { useState as p, useEffect as K } from "react";
6
- import { c as z } from "../../../../clsx-OuTLNxxd.js";
7
- import { a5 as O, a6 as R, N as U, R as b, a as h, K as w, z as B } from "../../../../Lexical.prod-Bzma_w4s.js";
8
- import { Icon as E } from "../../../Icon/Icon.js";
3
+ import { Y as N, Q as v, G as P, K as S, H as f, q as y } from "../../../../LexicalList.prod-haeqjypw.js";
4
+ import { _ as H } from "../../../../LexicalSelection.prod-C8x7KK4L.js";
5
+ import { useState as p, useEffect as k } from "react";
6
+ import { c as O } from "../../../../clsx-OuTLNxxd.js";
7
+ import { a7 as q, f as x, N as U, H as b, a as h, q as $, V as w } from "../../../../Lexical.prod-BAr6tzpa.js";
8
+ import { Icon as B } from "../../../Icon/Icon.js";
9
9
  import { s as l } from "../../../../RteEditor.module-oFMKEW6f.js";
10
- import { useTranslation as Y } from "../../hooks/useTranslation.js";
11
- const $ = {
10
+ import { useTranslation as E } from "../../hooks/useTranslation.js";
11
+ const V = {
12
12
  bullet: "BulletList",
13
13
  number: "NumberedList"
14
- }, j = ["bullet", "number"], W = () => {
15
- const u = Y(), [e] = I(), [g, s] = p("paragraph"), [c, L] = p(!1), [m, _] = p(!1), P = () => {
14
+ }, Y = ["bullet", "number"], W = () => {
15
+ const u = E(), [e] = I(), [g, s] = p("paragraph"), [c, _] = p(!1), [m, L] = p(!1), K = () => {
16
16
  e.update(() => {
17
17
  const t = b();
18
- h(t) && x(t, () => B());
18
+ h(t) && H(t, () => w());
19
19
  });
20
20
  }, D = (t) => {
21
- t === "number" && g !== "number" ? (e.dispatchCommand(k, void 0), s("number")) : t === "bullet" && g !== "bullet" ? (e.dispatchCommand(v, void 0), s("bullet")) : (P(), s("paragraph"));
21
+ t === "number" && g !== "number" ? (e.dispatchCommand(v, void 0), s("number")) : t === "bullet" && g !== "bullet" ? (e.dispatchCommand(P, void 0), s("bullet")) : (K(), s("paragraph"));
22
22
  };
23
- return K(() => {
23
+ return k(() => {
24
24
  const t = e.registerCommand(
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
25
+ q,
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(P, void 0), !0) : !1,
27
+ x
28
28
  );
29
29
  return () => {
30
30
  t();
31
31
  };
32
- }, [e, m, c]), K(() => {
32
+ }, [e, m, c]), k(() => {
33
33
  e.registerCommand(
34
34
  U,
35
35
  (r) => (r.preventDefault(), e.update(() => {
@@ -45,7 +45,7 @@ const $ = {
45
45
  i.append(C), C.append(o);
46
46
  }
47
47
  }), !0),
48
- w
48
+ $
49
49
  );
50
50
  const t = e.registerUpdateListener(({ editorState: r }) => {
51
51
  r.read(() => {
@@ -55,14 +55,14 @@ const $ = {
55
55
  for (; o !== null; ) {
56
56
  if (f(o)) {
57
57
  const a = o.getTag();
58
- L(a === "ul"), _(a === "ol"), a === "ul" && s("bullet"), a === "ol" && s("number");
58
+ _(a === "ul"), L(a === "ol"), a === "ul" && s("bullet"), a === "ol" && s("number");
59
59
  return;
60
60
  }
61
61
  const i = o.getParent();
62
62
  if (i === null) break;
63
63
  o = i;
64
64
  }
65
- L(!1), _(!1), s("paragraph");
65
+ _(!1), L(!1), s("paragraph");
66
66
  }
67
67
  return !1;
68
68
  });
@@ -70,12 +70,12 @@ const $ = {
70
70
  return () => {
71
71
  t();
72
72
  };
73
- }, [e]), /* @__PURE__ */ d("div", { className: l["editor__toolbar-button-group"], children: j.map((t) => /* @__PURE__ */ d(
73
+ }, [e]), /* @__PURE__ */ d("div", { className: l["editor__toolbar-button-group"], children: Y.map((t) => /* @__PURE__ */ d(
74
74
  "button",
75
75
  {
76
76
  onClick: () => D(t),
77
77
  title: u.format[`${t}Tooltip`],
78
- className: z(
78
+ className: O(
79
79
  l["editor__toolbar-button"],
80
80
  l[`editor__toolbar-button--${t}`],
81
81
  t === "bullet" && c && l["editor__toolbar-button--active"],
@@ -84,7 +84,7 @@ const $ = {
84
84
  "aria-label": u.aria.labels[t],
85
85
  "aria-keyshortcuts": u.aria.keyshortcuts[t],
86
86
  type: "button",
87
- children: /* @__PURE__ */ d(E, { name: $[t], size: 24 })
87
+ children: /* @__PURE__ */ d(B, { name: V[t], size: 24 })
88
88
  },
89
89
  t
90
90
  )) });
@@ -1,29 +1,29 @@
1
1
  import { u as m } from "../../../../LexicalComposerContext.prod-Dyvim1tK.js";
2
- import { useEffect as u } from "react";
3
- import { a0 as c, U as f, R as p } from "../../../../Lexical.prod-Bzma_w4s.js";
4
- import { u as i } from "../../../../LexicalUtils.prod-Cg2siy-c.js";
5
- import { N as d } from "../../../../LexicalClipboard.prod-Dg23ixPD.js";
2
+ import { useEffect as c } from "react";
3
+ import { a1 as f, X as u, H as p } from "../../../../Lexical.prod-BAr6tzpa.js";
4
+ import { c as i } from "../../../../LexicalUtils.prod-Dsec_Kl-.js";
5
+ import { N as d } from "../../../../LexicalClipboard.prod-CLCBYtDj.js";
6
6
  import { d as D } from "../../../../index-0wq-B7do.js";
7
7
  const g = () => {
8
- const [e] = m(), l = (t) => {
9
- t.preventDefault(), e.update(() => {
8
+ const [a] = m(), l = (t) => {
9
+ t.preventDefault(), a.update(() => {
10
10
  const r = p(), n = i(t, InputEvent) || i(t, KeyboardEvent) ? null : t.clipboardData;
11
11
  if (n != null && r !== null) {
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)), d(o, r, e);
12
+ const e = n.getData("text/html"), o = new DataTransfer(), s = new D.MSWordNormalizer();
13
+ o.setData("text/html", e), s.isActive(e) && o.setData("text/html", s.normalize(e)), d(o, r, a);
14
14
  }
15
15
  });
16
16
  };
17
- return u(() => {
18
- const t = e.registerCommand(
19
- c,
17
+ return c(() => {
18
+ const t = a.registerCommand(
19
+ f,
20
20
  (r) => r instanceof ClipboardEvent ? (l(r), !0) : !1,
21
- f
21
+ u
22
22
  );
23
23
  return () => {
24
24
  t();
25
25
  };
26
- }, [e]), null;
26
+ }, [a]), null;
27
27
  };
28
28
  export {
29
29
  g as PasteHandlerPlugin
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { b as z } from "../../../../TablePlugin-E6UFlCgy.js";
3
+ import { b as z } from "../../../../TablePlugin-sPSGmCno.js";
4
4
  import "../../../Buttons/Button.js";
5
5
  import "../../../Buttons/LinkButton.js";
6
6
  import "@react-aria/button";
@@ -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-D-4NN9o5.js";
5
- import "../../../../Lexical.prod-Bzma_w4s.js";
4
+ import "../../../../LexicalTable.prod-8RqiGUG-.js";
5
+ import "../../../../Lexical.prod-BAr6tzpa.js";
6
6
  import "react";
7
- import { T as E } from "../../../../TablePlugin-E6UFlCgy.js";
7
+ import { T as E } from "../../../../TablePlugin-sPSGmCno.js";
8
8
  import "./helpers.js";
9
9
  import "../../hooks/useFlyout.js";
10
10
  import "../../../Icon/Icon.js";
@@ -1,17 +1,17 @@
1
- import { S as x, p as h, s as d, w, b as C, i as p, y as E, N as b, a as I } from "../../../../LexicalTable.prod-D-4NN9o5.js";
2
- import { z as u } from "../../../../Lexical.prod-Bzma_w4s.js";
3
- const m = 100, A = (e, n) => {
4
- const t = x(0, 0, !1);
1
+ import { x as S, _ as h, d, T as w, R as C, g as m, O as E, F as p, L as I } from "../../../../LexicalTable.prod-8RqiGUG-.js";
2
+ import { V as g } from "../../../../Lexical.prod-BAr6tzpa.js";
3
+ const b = 100, F = (e, n) => {
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, m / n);
9
- s.append(u()), r.append(s);
8
+ const s = d(0, void 0, b / n);
9
+ s.append(g()), r.append(s);
10
10
  }
11
11
  t.append(r);
12
12
  }
13
13
  return t;
14
- }, O = (e) => {
14
+ }, A = (e) => {
15
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();
@@ -19,48 +19,48 @@ const m = 100, A = (e, n) => {
19
19
  }
20
20
  }, v = (e) => {
21
21
  C(e).remove();
22
- }, F = (e, n) => {
22
+ }, L = (e, n) => {
23
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
- c.append(u()), t.append(c);
26
+ c.append(g()), t.append(c);
27
27
  }
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) => {
31
+ }, z = (e, n) => {
32
32
  const t = w(e);
33
- if (!p(e))
33
+ if (!m(e))
34
34
  throw new Error("Selected node is not a TableCellNode");
35
35
  const o = E(e), r = t.getChildren().length, l = C(e);
36
- let s = b(e);
36
+ let s = p(e);
37
37
  const c = l.getChildren(), R = c.length;
38
38
  for (let i = 0; i < R; i++) {
39
39
  const a = d(0);
40
- a.append(u());
40
+ a.append(g());
41
41
  const f = c[i].getChildren()[s];
42
- f && (n === "insertColumnLeft" ? f.insertBefore(a) : f.insertAfter(a)), c.forEach((S) => {
43
- S.getChildren().forEach((T) => {
44
- T.setWidth(m / r);
42
+ f && (n === "insertColumnLeft" ? f.insertBefore(a) : f.insertAfter(a)), c.forEach((T) => {
43
+ T.getChildren().forEach((x) => {
44
+ x.setWidth(b / r);
45
45
  });
46
46
  });
47
47
  }
48
48
  s = n === "insertColumnLeft" ? s : s + 1;
49
- const g = c[o].getChildren()[s];
50
- g && g.select();
51
- }, y = (e) => {
49
+ const u = c[o].getChildren()[s];
50
+ u && u.select();
51
+ }, P = (e) => {
52
52
  var r;
53
- if (!p(e))
53
+ if (!m(e))
54
54
  throw new Error("Selected node is not a TableCellNode");
55
- const n = C(e), t = ((r = n.getFirstChild()) == null ? void 0 : r.getChildrenSize()) || 0, o = b(e);
55
+ const n = C(e), t = ((r = n.getFirstChild()) == null ? void 0 : r.getChildrenSize()) || 0, o = p(e);
56
56
  t === 1 ? v(e) : I(n, o);
57
57
  };
58
58
  export {
59
- A as createTable,
60
- y as deleteColumn,
61
- O as deleteRow,
59
+ F as createTable,
60
+ P as deleteColumn,
61
+ A as deleteRow,
62
62
  v as deleteTable,
63
- P as insertColumn,
64
- F as insertRow
63
+ z as insertColumn,
64
+ L as insertRow
65
65
  };
66
66
  //# sourceMappingURL=helpers.js.map
@@ -1,4 +1,4 @@
1
- import { T as o } from "../../../../TablePlugin-E6UFlCgy.js";
1
+ import { T as o } from "../../../../TablePlugin-sPSGmCno.js";
2
2
  import { TableCellContextMenu as t } from "./TableCellContextMenu/TableCellContextMenu.js";
3
3
  export {
4
4
  t as TableCellContextMenu,
@@ -1,16 +1,16 @@
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 { R as h, a as g, F as C } from "../../../../Lexical.prod-Bzma_w4s.js";
3
+ import { H as h, a as g, M as C } from "../../../../Lexical.prod-BAr6tzpa.js";
4
4
  import { useState as L, useRef as E, useCallback as T, useEffect as m } from "react";
5
- import { _ as b } from "../../../../LexicalTable.prod-D-4NN9o5.js";
6
- import { BlockFormatPlugin as k } from "../BlockFormatPlugin/BlockFormatPlugin.js";
7
- import { ListPlugin as N } from "../ListPlugin/ListPlugin.js";
5
+ import { v as b } from "../../../../LexicalTable.prod-8RqiGUG-.js";
6
+ import { BlockFormatPlugin as N } from "../BlockFormatPlugin/BlockFormatPlugin.js";
7
+ import { ListPlugin as k } from "../ListPlugin/ListPlugin.js";
8
8
  import { LinkPlugin as x } from "../LinkPlugin/LinkPlugin.js";
9
9
  import { HistoryPlugin as B } from "../HistoryPlugin/HistoryPlugin.js";
10
- import { T as R } from "../../../../TablePlugin-E6UFlCgy.js";
11
- import { TableCellContextMenu as S } from "../TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
12
- import { s as _ } from "../../../../RteEditor.module-oFMKEW6f.js";
13
- import { setScrollableContainers as w, removeScrollableContainers as z } from "../../helpers.js";
10
+ import { T as S } from "../../../../TablePlugin-sPSGmCno.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 H } from "../../helpers.js";
14
14
  const Q = ({ editorScrollPosition: d }) => {
15
15
  const [t] = y(), [i, s] = L(null), u = E(null), f = T(() => {
16
16
  const e = h();
@@ -22,7 +22,7 @@ const Q = ({ editorScrollPosition: d }) => {
22
22
  } else
23
23
  s(null);
24
24
  }
25
- }, [t]), v = (e) => {
25
+ }, [t]), w = (e) => {
26
26
  var r;
27
27
  (r = u.current) == null || r.mutateTable(e);
28
28
  }, o = () => {
@@ -40,25 +40,25 @@ const Q = ({ editorScrollPosition: d }) => {
40
40
  f();
41
41
  });
42
42
  });
43
- }, [t, f]), m(() => (w(o), window.addEventListener("scroll", o), window.addEventListener("resize", o), () => {
44
- window.removeEventListener("scroll", o), window.removeEventListener("resize", o), z(o);
43
+ }, [t, f]), m(() => (v(o), window.addEventListener("scroll", o), window.addEventListener("resize", o), () => {
44
+ window.removeEventListener("scroll", o), window.removeEventListener("resize", o), H(o);
45
45
  }), [t]), m(() => {
46
46
  const e = () => {
47
- w(o);
47
+ v(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: _.editor__toolbar, children: [
53
- /* @__PURE__ */ n(k, {}),
52
+ }, []), /* @__PURE__ */ P("div", { className: A.editor__toolbar, children: [
54
53
  /* @__PURE__ */ n(N, {}),
55
- /* @__PURE__ */ n(R, { isActive: !!i, ref: u }),
54
+ /* @__PURE__ */ n(k, {}),
55
+ /* @__PURE__ */ n(S, { isActive: !!i, ref: u }),
56
56
  i && /* @__PURE__ */ n(
57
- S,
57
+ z,
58
58
  {
59
59
  position: i,
60
60
  parentScrollPosition: d,
61
- onAction: v
61
+ onAction: w
62
62
  }
63
63
  ),
64
64
  /* @__PURE__ */ n(x, { parentScrollPosition: d }),
@@ -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-E6UFlCgy.js";
6
+ import { T as a } from "../../../TablePlugin-sPSGmCno.js";
7
7
  import { TableCellContextMenu as T } from "./TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
8
8
  export {
9
9
  l as BlockFormatPlugin,