@uva-glass/component-library 3.52.4 → 3.52.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 (58) hide show
  1. package/dist/{Lexical.prod-BAE-wnll.js → Lexical.prod-sd_e2sqT.js} +648 -627
  2. package/dist/Lexical.prod-sd_e2sqT.js.map +1 -0
  3. package/dist/{LexicalClipboard.prod-BS4qAkmJ.js → LexicalClipboard.prod-Co2PF1UJ.js} +44 -42
  4. package/dist/LexicalClipboard.prod-Co2PF1UJ.js.map +1 -0
  5. package/dist/{LexicalLink.prod-C6Or2Yo6.js → LexicalLink.prod-BCE6Bg2N.js} +354 -334
  6. package/dist/LexicalLink.prod-BCE6Bg2N.js.map +1 -0
  7. package/dist/{LexicalList.prod-rTq41CO0.js → LexicalList.prod-CIB0K0ja.js} +141 -138
  8. package/dist/LexicalList.prod-CIB0K0ja.js.map +1 -0
  9. package/dist/{LexicalSelection.prod-fLzEGOT_.js → LexicalSelection.prod-CCmcTP6S.js} +41 -41
  10. package/dist/{LexicalSelection.prod-fLzEGOT_.js.map → LexicalSelection.prod-CCmcTP6S.js.map} +1 -1
  11. package/dist/{LexicalTable.prod-BBI7yaOy.js → LexicalTable.prod-Oa2YPHLl.js} +359 -359
  12. package/dist/LexicalTable.prod-Oa2YPHLl.js.map +1 -0
  13. package/dist/{LexicalUtils.prod-D8DAKg7O.js → LexicalUtils.prod-CjKjgnmx.js} +43 -43
  14. package/dist/{LexicalUtils.prod-D8DAKg7O.js.map → LexicalUtils.prod-CjKjgnmx.js.map} +1 -1
  15. package/dist/{TableCellResizerPlugin-HPo4ZkHo.js → TableCellResizerPlugin-DATbSzfg.js} +51 -51
  16. package/dist/{TableCellResizerPlugin-HPo4ZkHo.js.map → TableCellResizerPlugin-DATbSzfg.js.map} +1 -1
  17. package/dist/{TablePlugin-BLbsvcuu.js → TablePlugin-CqCjNBW_.js} +83 -83
  18. package/dist/{TablePlugin-BLbsvcuu.js.map → TablePlugin-CqCjNBW_.js.map} +1 -1
  19. package/dist/components/CheckboxTree/CheckboxTree.js +1 -1
  20. package/dist/components/FormInput/FormInput.js +1 -1
  21. package/dist/components/InputField/InputField.stories.js +1 -1
  22. package/dist/components/MultiSelect/MultiSelect.js +1 -1
  23. package/dist/components/MultiSelect/MultiSelect.stories.js +1 -1
  24. package/dist/components/MultiSelect/components/MultiSelectHeader.js +1 -1
  25. package/dist/components/MultiSelect/index.js +1 -1
  26. package/dist/components/PeriodSelector/PeriodSelector.js +1 -1
  27. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +1 -1
  28. package/dist/components/RadioTabSelector/RadioTabSelector.js +1 -1
  29. package/dist/components/RteEditor/EditorHeader/EditorHeader.js +1 -1
  30. package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +7 -7
  31. package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +2 -2
  32. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +1 -1
  33. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +52 -52
  34. package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
  35. package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +25 -25
  36. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +7 -7
  37. package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/TableCellResizerPlugin.js +4 -4
  38. package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/index.js +1 -1
  39. package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +1 -1
  40. package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +4 -4
  41. package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +27 -27
  42. package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
  43. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +16 -16
  44. package/dist/components/RteEditor/Plugins/index.js +2 -2
  45. package/dist/components/RteEditor/RteEditor.js +185 -185
  46. package/dist/components/RteEditor/RteEditor.js.map +1 -1
  47. package/dist/components/RteEditor/helpers.js +8 -8
  48. package/dist/components/RteEditor/nodes/TableWrapperNode/TableWrapperNode.js +11 -11
  49. package/dist/components/SelectListbox/components/SelectButton.js +17 -17
  50. package/dist/components/SelectListbox/components/SelectButton.js.map +1 -1
  51. package/dist/components/index.js +1 -1
  52. package/dist/index.js +1 -1
  53. package/package.json +6 -6
  54. package/dist/Lexical.prod-BAE-wnll.js.map +0 -1
  55. package/dist/LexicalClipboard.prod-BS4qAkmJ.js.map +0 -1
  56. package/dist/LexicalLink.prod-C6Or2Yo6.js.map +0 -1
  57. package/dist/LexicalList.prod-rTq41CO0.js.map +0 -1
  58. package/dist/LexicalTable.prod-BBI7yaOy.js.map +0 -1
@@ -1,7 +1,7 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
2
  import { o as u } from "../../../../LexicalComposerContext.prod-DOyoZx0P.js";
3
3
  import { c as f } from "../../../../clsx-OuTLNxxd.js";
4
- import { a as _, h, U as p } from "../../../../Lexical.prod-BAE-wnll.js";
4
+ import { b as _, y as p, _ as h } from "../../../../Lexical.prod-sd_e2sqT.js";
5
5
  import { useState as l, useEffect as k } from "react";
6
6
  import { Icon as I } from "../../../Icon/Icon.js";
7
7
  import { s as a } from "../../../../RteEditor.module-CUi7Vqe8.js";
@@ -10,14 +10,14 @@ const C = {
10
10
  bold: "Bold",
11
11
  italic: "Italic"
12
12
  }, T = ["bold", "italic"], E = () => {
13
- const t = B(), [i] = u(), [e, c] = l(!1), [n, m] = l(!1), d = (o) => {
14
- i.dispatchCommand(p, o);
13
+ const t = B(), [i] = u(), [e, c] = l(!1), [n, m] = l(!1), b = (o) => {
14
+ i.dispatchCommand(h, o);
15
15
  };
16
16
  return k(() => {
17
- const o = i.registerUpdateListener(({ editorState: b }) => {
18
- b.read(() => {
17
+ const o = i.registerUpdateListener(({ editorState: d }) => {
18
+ d.read(() => {
19
19
  const r = _();
20
- h(r) && (c(r.hasFormat("bold")), m(r.hasFormat("italic")));
20
+ p(r) && (c(r.hasFormat("bold")), m(r.hasFormat("italic")));
21
21
  });
22
22
  });
23
23
  return () => {
@@ -26,7 +26,7 @@ const C = {
26
26
  }, [i]), /* @__PURE__ */ s("div", { className: a["editor__toolbar-button-group"], children: T.map((o) => /* @__PURE__ */ s(
27
27
  "button",
28
28
  {
29
- onClick: () => d(o),
29
+ onClick: () => b(o),
30
30
  title: o === "bold" ? t.format.boldTooltip : t.format.italicTooltip,
31
31
  className: f(
32
32
  a["editor__toolbar-button"],
@@ -1,7 +1,7 @@
1
1
  import { jsxs as f, jsx as i } from "react/jsx-runtime";
2
2
  import { c as e } from "../../../../clsx-OuTLNxxd.js";
3
3
  import { o as h } from "../../../../LexicalComposerContext.prod-DOyoZx0P.js";
4
- import { at as _, au as y, av as C, aw as k } from "../../../../Lexical.prod-BAE-wnll.js";
4
+ import { at as _, au as y, av as C, aw as k } from "../../../../Lexical.prod-sd_e2sqT.js";
5
5
  import { useState as m, useEffect as s } from "react";
6
6
  import "../../../Accordion/Accordion.js";
7
7
  import { Icon as n } from "../../../Icon/Icon.js";
@@ -18,7 +18,7 @@ import "../../../IconButton/IconButton.js";
18
18
  import "../../../Input/Input.js";
19
19
  import "../../../InputField/InputField.js";
20
20
  import "react-router";
21
- import "../../../../TablePlugin-BLbsvcuu.js";
21
+ import "../../../../TablePlugin-CqCjNBW_.js";
22
22
  import { s as r } from "../../../../RteEditor.module-CUi7Vqe8.js";
23
23
  import { useTranslation as g } from "../../hooks/useTranslation.js";
24
24
  import "../LinkPlugin/LinkContextMenu/LinkContextMenu.js";
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { A as I } from "../../../../../TablePlugin-BLbsvcuu.js";
3
+ import { A as I } from "../../../../../TablePlugin-CqCjNBW_.js";
4
4
  import "../helpers.js";
5
5
  import "../../../../Accordion/Accordion.js";
6
6
  import "../../../../Icon/Icon.js";
@@ -1,10 +1,10 @@
1
- import { jsx as h, jsxs as q } from "react/jsx-runtime";
2
- import { o as J } from "../../../../LexicalComposerContext.prod-DOyoZx0P.js";
3
- import { c as W } from "../../../../clsx-OuTLNxxd.js";
4
- import { w as I, P as Y, J as G } from "../../../../LexicalLink.prod-C6Or2Yo6.js";
5
- import { useRef as a, useState as Q, useEffect as m } from "react";
6
- import { a0 as X, a as p, q as Z, as as $, h as w, D as tt, a1 as et, n as ot } from "../../../../Lexical.prod-BAE-wnll.js";
7
- import { A as rt } from "../../../../TablePlugin-BLbsvcuu.js";
1
+ import { jsx as k, jsxs as J } from "react/jsx-runtime";
2
+ import { o as W } from "../../../../LexicalComposerContext.prod-DOyoZx0P.js";
3
+ import { c as Y } from "../../../../clsx-OuTLNxxd.js";
4
+ import { w as O, P as $, J as q } from "../../../../LexicalLink.prod-BCE6Bg2N.js";
5
+ import { useRef as a, useState as G, useEffect as m } from "react";
6
+ import { $ as Q, b as p, p as X, as as Z, y as w, K as tt, a0 as et, s as ot } from "../../../../Lexical.prod-sd_e2sqT.js";
7
+ import { A as rt } from "../../../../TablePlugin-CqCjNBW_.js";
8
8
  import { ensureHttps as nt } from "./helpers.js";
9
9
  import { LinkContextMenu as it } from "./LinkContextMenu/LinkContextMenu.js";
10
10
  import { useFlyout as st } from "../../hooks/useFlyout.js";
@@ -24,7 +24,7 @@ import "../../../Input/Input.js";
24
24
  import "../../../InputField/InputField.js";
25
25
  import "react-router";
26
26
  import { setScrollableContainers as B, removeScrollableContainers as lt } from "../../helpers.js";
27
- import { s as k } from "../../../../RteEditor.module-CUi7Vqe8.js";
27
+ import { s as h } from "../../../../RteEditor.module-CUi7Vqe8.js";
28
28
  import { useTranslation as at } from "../../hooks/useTranslation.js";
29
29
  import "react-dom";
30
30
  import "../../../../index-yEhaxKq-.js";
@@ -38,15 +38,15 @@ import "../../../WeekSelector/components/WeekSelectorOptionContainer.js";
38
38
  const ut = 200, z = (f) => {
39
39
  let n = f;
40
40
  for (; n; ) {
41
- if (I(n))
41
+ if (O(n))
42
42
  return n;
43
43
  n = n.getParent();
44
44
  }
45
45
  return null;
46
- }, A = (f) => {
46
+ }, I = (f) => {
47
47
  let n = f;
48
48
  for (; n; ) {
49
- if (I(n))
49
+ if (O(n))
50
50
  return {
51
51
  active: !0,
52
52
  url: n.getURL(),
@@ -55,37 +55,37 @@ const ut = 200, z = (f) => {
55
55
  n = n.getParent();
56
56
  }
57
57
  return !1;
58
- }, Yt = ({ parentScrollPosition: f }) => {
59
- const n = at(), [c] = J(), { flyout: O, showFlyout: P, hideFlyout: C, isVisible: u } = st(), d = a(void 0), N = a(!1), y = a(""), g = a(""), [L, U] = Q({ active: !1, url: "", linktext: "" }), _ = a(u), x = a(null), S = a(null), T = a(void 0), v = () => {
58
+ }, $t = ({ parentScrollPosition: f }) => {
59
+ const n = at(), [c] = W(), { flyout: U, showFlyout: P, hideFlyout: y, isVisible: u } = st(), d = a(void 0), N = a(!1), C = a(""), g = a(""), [L, A] = G({ active: !1, url: "", linktext: "" }), _ = a(u), x = a(null), S = a(null), T = a(void 0), b = () => {
60
60
  c.update(() => {
61
61
  const o = p();
62
62
  x.current = o;
63
63
  });
64
- }, D = () => {
64
+ }, R = () => {
65
65
  c.update(() => {
66
66
  x.current && et(x.current);
67
67
  });
68
68
  }, H = (o, t) => {
69
69
  P({
70
70
  position: t,
71
- children: /* @__PURE__ */ h(
71
+ children: /* @__PURE__ */ k(
72
72
  it,
73
73
  {
74
74
  url: o,
75
75
  onSave: (e) => K(e, ""),
76
76
  onDelete: () => M(),
77
- onClose: R,
77
+ onClose: D,
78
78
  ref: T
79
79
  }
80
80
  )
81
81
  });
82
- }, R = () => {
83
- T.current?.clearForm(), C(), D();
82
+ }, D = () => {
83
+ T.current?.clearForm(), y(), R();
84
84
  }, F = () => {
85
85
  const o = S.current?.getBoundingClientRect();
86
- !N.current && o && (v(), P({ position: { top: o.bottom, left: o.left }, ...V }), setTimeout(() => d.current?.setDefaults("", g.current), 0));
87
- }, b = () => {
88
- C(), D();
86
+ !N.current && o && (b(), P({ position: { top: o.bottom, left: o.left }, ...V }), setTimeout(() => d.current?.setDefaults("", g.current), 0));
87
+ }, v = () => {
88
+ y(), R();
89
89
  }, K = (o, t) => {
90
90
  c.update(() => {
91
91
  const e = p();
@@ -96,34 +96,34 @@ const ut = 200, z = (f) => {
96
96
  const l = ot(t);
97
97
  s.replace(l), l.select();
98
98
  }
99
- if (t !== y.current && y.current === "") {
99
+ if (t !== C.current && C.current === "") {
100
100
  const { anchor: l, focus: E } = e;
101
101
  e.insertText(t), l.offset -= t.length, E.offset = l.offset + t.length;
102
102
  }
103
103
  }
104
- G(nt(o), { target: "_blank" });
104
+ q(nt(o), { target: "_blank" });
105
105
  }
106
- b();
106
+ v();
107
107
  });
108
108
  }, M = () => {
109
- c.dispatchCommand(Y, null), R();
109
+ c.dispatchCommand($, null), D();
110
110
  }, V = {
111
- children: /* @__PURE__ */ h(
111
+ children: /* @__PURE__ */ k(
112
112
  rt,
113
113
  {
114
114
  isLink: L,
115
- onCloseHandler: b,
115
+ onCloseHandler: v,
116
116
  onSaveHandler: (o, t) => K(o, t),
117
117
  ref: d
118
118
  }
119
119
  )
120
120
  };
121
121
  return m(() => {
122
- u ? (N.current = !0, d.current?.focusFirstField()) : (d.current?.clearForm(), y.current = g.current = "", setTimeout(() => N.current = !1, ut));
122
+ u ? (N.current = !0, d.current?.focusFirstField()) : (d.current?.clearForm(), C.current = g.current = "", setTimeout(() => N.current = !1, ut));
123
123
  }, [d, u]), m(() => {
124
124
  const o = (r) => {
125
125
  if (w(r) && r.isCollapsed()) {
126
- const i = A(r.anchor.getNode());
126
+ const i = I(r.anchor.getNode());
127
127
  if (i) {
128
128
  const s = c.getElementByKey(r.anchor.getNode().getKey()), l = s ? { top: s.getBoundingClientRect().bottom, left: s.getBoundingClientRect().left } : { top: 0, left: 0 };
129
129
  return H(i.url, l), !0;
@@ -131,17 +131,17 @@ const ut = 200, z = (f) => {
131
131
  }
132
132
  return !1;
133
133
  }, t = c.registerCommand(
134
- X,
134
+ Q,
135
135
  () => {
136
136
  const r = p();
137
137
  return g.current = r?.getTextContent() ?? "", o(r), !1;
138
138
  },
139
139
  0
140
140
  ), e = c.registerCommand(
141
- Z,
141
+ X,
142
142
  (r) => {
143
143
  const i = p();
144
- return v(), r.preventDefault(), r.stopPropagation(), r.stopImmediatePropagation(), o(i), !1;
144
+ return b(), r.preventDefault(), r.stopPropagation(), r.stopImmediatePropagation(), o(i), !1;
145
145
  },
146
146
  0
147
147
  );
@@ -150,17 +150,17 @@ const ut = 200, z = (f) => {
150
150
  };
151
151
  }, [c]), m(() => {
152
152
  const o = c.registerCommand(
153
- $,
153
+ Z,
154
154
  (e) => {
155
155
  if (e.ctrlKey && e.shiftKey && e.key === "U") {
156
156
  const r = p();
157
- if (v(), !w(r))
157
+ if (b(), !w(r))
158
158
  return !1;
159
- const i = A(r.anchor.getNode()), s = (E = "", j = "") => {
159
+ const i = I(r.anchor.getNode()), s = (E = "", j = "") => {
160
160
  F(), setTimeout(() => d.current?.setDefaults(E, j), 0);
161
161
  };
162
162
  if (i)
163
- return e.preventDefault(), e.stopPropagation(), e.stopImmediatePropagation(), y.current = i.linktext, s(i.url, i.linktext), !0;
163
+ return e.preventDefault(), e.stopPropagation(), e.stopImmediatePropagation(), C.current = i.linktext, s(i.url, i.linktext), !0;
164
164
  const l = r.getTextContent();
165
165
  return l !== "" ? (g.current = l, s("", g.current), !0) : (F(), !0);
166
166
  }
@@ -168,10 +168,10 @@ const ut = 200, z = (f) => {
168
168
  },
169
169
  tt
170
170
  ), t = c.registerUpdateListener(({ editorState: e }) => {
171
- U(
171
+ A(
172
172
  e.read(() => {
173
173
  const r = p();
174
- if (v(), w(r)) {
174
+ if (b(), w(r)) {
175
175
  const i = r.anchor.getNode(), s = z(i);
176
176
  if (s)
177
177
  return {
@@ -194,41 +194,41 @@ const ut = 200, z = (f) => {
194
194
  }, [c]), m(() => {
195
195
  _.current = u, u || T.current?.clearForm();
196
196
  }, [u]), m(() => {
197
- u && b();
197
+ u && v();
198
198
  }, [f]), m(() => {
199
- L.active || C();
199
+ L.active || y();
200
200
  }, [L]), m(() => {
201
- const o = (e) => (B(t), e.key === "Escape" && _.current && (e.preventDefault(), e.stopPropagation(), b()), !0);
201
+ const o = (e) => (B(t), e.key === "Escape" && _.current && (e.preventDefault(), e.stopPropagation(), v()), !0);
202
202
  window.addEventListener("keydown", o, { capture: !0 });
203
203
  const t = () => {
204
- C();
204
+ y();
205
205
  };
206
206
  return B(t), window.addEventListener("scroll", t), window.addEventListener("resize", t), () => {
207
207
  window.removeEventListener("keydown", o), window.removeEventListener("scroll", t), window.removeEventListener("resize", t), lt(t);
208
208
  };
209
- }, []), /* @__PURE__ */ h("div", { className: k["editor__toolbar-button-group"], children: /* @__PURE__ */ q("div", { className: k["editor__toolbar-button-flyoutwrapper"], children: [
210
- /* @__PURE__ */ h(
209
+ }, []), /* @__PURE__ */ k("div", { className: h["editor__toolbar-button-group"], children: /* @__PURE__ */ J("div", { className: h["editor__toolbar-button-flyoutwrapper"], children: [
210
+ /* @__PURE__ */ k(
211
211
  "button",
212
212
  {
213
213
  onClick: F,
214
214
  title: n.links.linkTooltip,
215
- className: W(
216
- k["editor__toolbar-button"],
217
- k["editor__toolbar-button--link"],
218
- L.active && k["editor__toolbar-button--active"]
215
+ className: Y(
216
+ h["editor__toolbar-button"],
217
+ h["editor__toolbar-button--link"],
218
+ L.active && h["editor__toolbar-button--active"]
219
219
  ),
220
220
  "aria-label": n.aria.labels.link,
221
221
  "aria-keyshortcuts": n.aria.keyshortcuts.link,
222
222
  type: "button",
223
223
  ref: S,
224
- children: /* @__PURE__ */ h(ct, { name: "Link", size: 20 })
224
+ children: /* @__PURE__ */ k(ct, { name: "Link", size: 20 })
225
225
  }
226
226
  ),
227
- O
227
+ U
228
228
  ] }) });
229
229
  };
230
230
  export {
231
- Yt as LinkPlugin,
232
- A as getLinkNodeTag
231
+ $t as LinkPlugin,
232
+ I as getLinkNodeTag
233
233
  };
234
234
  //# sourceMappingURL=LinkPlugin.js.map
@@ -1,4 +1,4 @@
1
- import { H as w } from "../../../../LexicalLink.prod-C6Or2Yo6.js";
1
+ import { H as w } from "../../../../LexicalLink.prod-BCE6Bg2N.js";
2
2
  const a = /^(http|https):\/\//, s = /(https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|www\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9]+\.[^\s]{2,}|www\.[a-zA-Z0-9]+\.[^\s]{2,})/, A = /(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))/, z = /^(https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|www\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9]+\.[^\s]{2,}|www\.[a-zA-Z0-9]+\.[^\s]{2,})?$/, n = (t) => t === "https://" || s.test(t), o = (t) => t === "https://" || z.test(t), r = [
3
3
  w(s, (t) => a.test(t) ? t : `//${t}`),
4
4
  w(A, (t) => `mailto:${t}`)
@@ -1,50 +1,50 @@
1
1
  import { jsx as d } from "react/jsx-runtime";
2
- import { o as P } from "../../../../LexicalComposerContext.prod-DOyoZx0P.js";
3
- import { k as f, x as C, S as N, o as x, d as b, h as I } from "../../../../LexicalList.prod-rTq41CO0.js";
2
+ import { o as y } from "../../../../LexicalComposerContext.prod-DOyoZx0P.js";
3
+ import { k as f, x as C, S as N, o as P, d as b, h as x } from "../../../../LexicalList.prod-CIB0K0ja.js";
4
4
  import { useState as p, useEffect as k } from "react";
5
- import { c as K } from "../../../../clsx-OuTLNxxd.js";
6
- import { as as y, D as O, X as U, a as v, h as D, F as w } from "../../../../Lexical.prod-BAE-wnll.js";
7
- import { Icon as B } from "../../../Icon/Icon.js";
5
+ import { c as D } from "../../../../clsx-OuTLNxxd.js";
6
+ import { as as I, K as z, Y as O, b as v, y as K, z as U } from "../../../../Lexical.prod-sd_e2sqT.js";
7
+ import { Icon as w } from "../../../Icon/Icon.js";
8
8
  import { s as l } from "../../../../RteEditor.module-CUi7Vqe8.js";
9
- import { useTranslation as E } from "../../hooks/useTranslation.js";
10
- const F = {
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] = P(), [h, a] = p(null), [c, g] = p(!1), [m, L] = p(!1), S = (t) => {
13
+ }, Y = ["bullet", "number"], Q = () => {
14
+ const u = B(), [e] = y(), [h, a] = p(null), [m, g] = p(!1), [c, L] = p(!1), S = (t) => {
15
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
17
  return k(() => {
18
18
  const t = e.registerCommand(
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
19
+ I,
20
+ (o) => o.ctrlKey && o.shiftKey && o.code === "Digit7" ? (o.preventDefault(), c ? e.dispatchCommand(f, void 0) : e.dispatchCommand(C, void 0), !0) : o.ctrlKey && o.shiftKey && o.code === "Digit8" ? (o.preventDefault(), m ? e.dispatchCommand(f, void 0) : e.dispatchCommand(N, void 0), !0) : !1,
21
+ z
22
22
  );
23
23
  return () => {
24
24
  t();
25
25
  };
26
- }, [e, m, c]), k(() => {
26
+ }, [e, c, m]), k(() => {
27
27
  e.registerCommand(
28
- U,
28
+ O,
29
29
  (o) => (o.preventDefault(), e.update(() => {
30
30
  const n = v();
31
- if (!D(n))
31
+ if (!K(n))
32
32
  return;
33
33
  const r = n.anchor.getNode(), i = r.getParent();
34
- if (!x(i))
34
+ if (!P(i))
35
35
  return;
36
36
  const s = i.getParent();
37
37
  if (b(s)) {
38
- const _ = I(b(s) ? s.getListType() : "bullet");
38
+ const _ = x(b(s) ? s.getListType() : "bullet");
39
39
  i.append(_), _.append(r);
40
40
  }
41
41
  }), !0),
42
- w
42
+ U
43
43
  );
44
44
  const t = e.registerUpdateListener(({ editorState: o }) => {
45
45
  o.read(() => {
46
46
  const n = v();
47
- if (D(n)) {
47
+ if (K(n)) {
48
48
  let r = n.anchor.getNode();
49
49
  for (; r !== null; ) {
50
50
  if (b(r)) {
@@ -64,26 +64,26 @@ const F = {
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
70
  onClick: () => S(t),
71
71
  title: u.format[`${t}Tooltip`],
72
- className: K(
72
+ className: D(
73
73
  l["editor__toolbar-button"],
74
74
  l[`editor__toolbar-button--${t}`],
75
- t === "bullet" && c && l["editor__toolbar-button--active"],
76
- t === "number" && m && l["editor__toolbar-button--active"]
75
+ t === "bullet" && m && l["editor__toolbar-button--active"],
76
+ t === "number" && c && l["editor__toolbar-button--active"]
77
77
  ),
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: F[t], size: 24 })
81
+ children: /* @__PURE__ */ d(w, { 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,16 +1,16 @@
1
1
  import { o as m } from "../../../../LexicalComposerContext.prod-DOyoZx0P.js";
2
2
  import { useEffect as c } from "react";
3
- import { ae as f, N as p, a as u } from "../../../../Lexical.prod-BAE-wnll.js";
4
- import { L as i } from "../../../../LexicalUtils.prod-D8DAKg7O.js";
5
- import { R as d } from "../../../../LexicalClipboard.prod-BS4qAkmJ.js";
3
+ import { ad as f, ae as p, b as d } from "../../../../Lexical.prod-sd_e2sqT.js";
4
+ import { L as i } from "../../../../LexicalUtils.prod-CjKjgnmx.js";
5
+ import { R as u } from "../../../../LexicalClipboard.prod-Co2PF1UJ.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
- const r = u(), a = i(t, InputEvent) || i(t, KeyboardEvent) ? null : t.clipboardData;
10
+ const r = d(), a = i(t, InputEvent) || i(t, KeyboardEvent) ? null : t.clipboardData;
11
11
  if (a != null && r !== null) {
12
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);
13
+ n.setData("text/html", o), s.isActive(o) && n.setData("text/html", s.normalize(o)), u(n, r, e);
14
14
  }
15
15
  });
16
16
  };
@@ -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-HPo4ZkHo.js";
5
- import "../../../../LexicalTable.prod-BBI7yaOy.js";
6
- import "../../../../LexicalUtils.prod-D8DAKg7O.js";
7
- import "../../../../Lexical.prod-BAE-wnll.js";
4
+ import { T as b } from "../../../../TableCellResizerPlugin-DATbSzfg.js";
5
+ import "../../../../LexicalTable.prod-Oa2YPHLl.js";
6
+ import "../../../../LexicalUtils.prod-CjKjgnmx.js";
7
+ import "../../../../Lexical.prod-sd_e2sqT.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-HPo4ZkHo.js";
1
+ import { T as r } from "../../../../TableCellResizerPlugin-DATbSzfg.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-BLbsvcuu.js";
3
+ import { b as G } from "../../../../TablePlugin-CqCjNBW_.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-BBI7yaOy.js";
5
- import "../../../../Lexical.prod-BAE-wnll.js";
6
- import "../../../../LexicalUtils.prod-D8DAKg7O.js";
4
+ import "../../../../LexicalTable.prod-Oa2YPHLl.js";
5
+ import "../../../../Lexical.prod-sd_e2sqT.js";
6
+ import "../../../../LexicalUtils.prod-CjKjgnmx.js";
7
7
  import "react";
8
- import { T as L } from "../../../../TablePlugin-BLbsvcuu.js";
8
+ import { T as L } from "../../../../TablePlugin-CqCjNBW_.js";
9
9
  import "./helpers.js";
10
10
  import "../../nodes/TableWrapperNode/TableWrapperNode.js";
11
11
  import "../../hooks/useFlyout.js";
@@ -1,37 +1,37 @@
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-BBI7yaOy.js";
2
- import { A as S } from "../../../../Lexical.prod-BAE-wnll.js";
3
- import { TableWrapperNode as N } from "../../nodes/TableWrapperNode/TableWrapperNode.js";
4
- const v = 32, a = 48, W = 1, A = 200, F = 320, B = (t, e) => {
1
+ import { Q as T, O as i, D as w, l as p, U as u, I as b, Z as E, P as D, M as g, j as I, L as R, F as x } from "../../../../LexicalTable.prod-Oa2YPHLl.js";
2
+ import { L } from "../../../../Lexical.prod-sd_e2sqT.js";
3
+ import { TableWrapperNode as S } from "../../nodes/TableWrapperNode/TableWrapperNode.js";
4
+ const y = 32, a = 48, N = 1, P = 200, v = 320, M = (t, e) => {
5
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++) {
9
9
  const l = x(0, void 0, void 0);
10
- l.append(S()), r.append(l);
10
+ l.append(L()), r.append(l);
11
11
  }
12
12
  n.append(r);
13
13
  }
14
14
  return n;
15
- }, P = (t) => {
15
+ }, H = (t) => {
16
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
- }, O = (t) => {
21
+ }, W = (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
- n instanceof N ? n.remove() : e.remove();
27
- }, H = (t, e) => {
26
+ n instanceof S ? n.remove() : e.remove();
27
+ }, U = (t, e) => {
28
28
  if (!i(t))
29
29
  throw new Error("Selected node is not a TableCellNode");
30
30
  const n = g();
31
31
  I(e === "insertRowBelow");
32
32
  const o = n.getFirstDescendant();
33
33
  o && o.select();
34
- }, U = (t, e) => {
34
+ }, B = (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,11 +48,11 @@ const v = 32, a = 48, W = 1, A = 200, F = 320, B = (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
+ }, A = (t) => {
52
52
  if (!i(t))
53
53
  throw new Error("Selected node is not a TableCellNode");
54
- (w(t).getFirstChild()?.getChildrenSize() || 0) === 1 ? O(t) : p();
55
- }, V = (t) => {
54
+ (w(t).getFirstChild()?.getChildrenSize() || 0) === 1 ? W(t) : p();
55
+ }, j = (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;
@@ -62,8 +62,8 @@ const v = 32, a = 48, W = 1, A = 200, F = 320, B = (t, e) => {
62
62
  const o = n.getElementByKey(t.getKey());
63
63
  if (!o) return 0;
64
64
  const r = window.getComputedStyle(o);
65
- return parseInt(r.width) - e * W - 1;
66
- }, J = (t) => {
65
+ return parseInt(r.width) - e * N - 1;
66
+ }, K = (t) => {
67
67
  const e = t.getChildren();
68
68
  for (const n of e) {
69
69
  const o = n.getChildren();
@@ -74,19 +74,19 @@ const v = 32, a = 48, W = 1, A = 200, F = 320, B = (t, e) => {
74
74
  return !1;
75
75
  };
76
76
  export {
77
- W as BORDER_WIDTHS,
77
+ N as BORDER_WIDTHS,
78
78
  a as DEFAULT_COL_WIDTH,
79
- F as DEFAULT_EDITOR_WIDTH,
80
- v as MIN_COLUMN_WIDTH,
81
- A as PREVENT_OPEN_DELAY,
82
- B as createTable,
83
- M as deleteColumn,
84
- P as deleteRow,
85
- O as deleteTable,
86
- V as getEditorContentWidth,
79
+ v as DEFAULT_EDITOR_WIDTH,
80
+ y as MIN_COLUMN_WIDTH,
81
+ P as PREVENT_OPEN_DELAY,
82
+ M as createTable,
83
+ A as deleteColumn,
84
+ H as deleteRow,
85
+ W as deleteTable,
86
+ j as getEditorContentWidth,
87
87
  z as getEditorParrentCellWidth,
88
- U as insertColumn,
89
- H as insertRow,
90
- J as tableHasContent
88
+ B as insertColumn,
89
+ U as insertRow,
90
+ K as tableHasContent
91
91
  };
92
92
  //# sourceMappingURL=helpers.js.map
@@ -1,4 +1,4 @@
1
- import { T as o } from "../../../../TablePlugin-BLbsvcuu.js";
1
+ import { T as o } from "../../../../TablePlugin-CqCjNBW_.js";
2
2
  import { TableCellContextMenu as t } from "./TableCellContextMenu/TableCellContextMenu.js";
3
3
  export {
4
4
  t as TableCellContextMenu,