@uva-glass/component-library 3.14.1 → 3.14.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 (56) hide show
  1. package/dist/{Lexical.prod-D8x7Ii0F.js → Lexical.prod-qoFV025v.js} +1831 -1858
  2. package/dist/Lexical.prod-qoFV025v.js.map +1 -0
  3. package/dist/LexicalClipboard.prod-BFJoO5qv.js +255 -0
  4. package/dist/LexicalClipboard.prod-BFJoO5qv.js.map +1 -0
  5. package/dist/{LexicalLink.prod-CkldFE8u.js → LexicalLink.prod-BIN12UMz.js} +47 -47
  6. package/dist/{LexicalLink.prod-CkldFE8u.js.map → LexicalLink.prod-BIN12UMz.js.map} +1 -1
  7. package/dist/{LexicalList.prod-CsVDXdmw.js → LexicalList.prod-WlGaeo0L.js} +71 -71
  8. package/dist/LexicalList.prod-WlGaeo0L.js.map +1 -0
  9. package/dist/LexicalSelection.prod-B5grbYgk.js +97 -0
  10. package/dist/LexicalSelection.prod-B5grbYgk.js.map +1 -0
  11. package/dist/{LexicalTable.prod-rZbTmo9K.js → LexicalTable.prod-osQj1CQX.js} +551 -550
  12. package/dist/LexicalTable.prod-osQj1CQX.js.map +1 -0
  13. package/dist/{LexicalUtils.prod-CpMJ4I9h.js → LexicalUtils.prod-BpZsS7jD.js} +29 -29
  14. package/dist/{LexicalUtils.prod-CpMJ4I9h.js.map → LexicalUtils.prod-BpZsS7jD.js.map} +1 -1
  15. package/dist/{TablePlugin-WOgWan8s.js → TablePlugin-6tDdOCQy.js} +10 -10
  16. package/dist/{TablePlugin-WOgWan8s.js.map → TablePlugin-6tDdOCQy.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/PeriodSelector/PeriodSelector.js +1 -1
  25. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +1 -1
  26. package/dist/components/RteEditor/EditorHeader/EditorHeader.js +1 -1
  27. package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +4 -4
  28. package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +4 -4
  29. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +2 -2
  30. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +1 -1
  31. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +33 -33
  32. package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
  33. package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +24 -24
  34. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +5 -5
  35. package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +1 -1
  36. package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +3 -3
  37. package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +14 -14
  38. package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
  39. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +20 -20
  40. package/dist/components/RteEditor/Plugins/index.js +1 -1
  41. package/dist/components/RteEditor/RteEditor.js +451 -450
  42. package/dist/components/RteEditor/RteEditor.js.map +1 -1
  43. package/dist/components/RteEditor/helpers.js +4 -4
  44. package/dist/components/Timeline/Timeline.test.js +1 -1
  45. package/dist/components/index.js +1 -1
  46. package/dist/{helpers-E_SsILnP.js → helpers-5RvdadYU.js} +25 -25
  47. package/dist/{helpers-E_SsILnP.js.map → helpers-5RvdadYU.js.map} +1 -1
  48. package/dist/index.js +1 -1
  49. package/package.json +6 -6
  50. package/dist/Lexical.prod-D8x7Ii0F.js.map +0 -1
  51. package/dist/LexicalClipboard.prod-D5GjiArS.js +0 -255
  52. package/dist/LexicalClipboard.prod-D5GjiArS.js.map +0 -1
  53. package/dist/LexicalList.prod-CsVDXdmw.js.map +0 -1
  54. package/dist/LexicalSelection.prod-JQDTaUpX.js +0 -90
  55. package/dist/LexicalSelection.prod-JQDTaUpX.js.map +0 -1
  56. package/dist/LexicalTable.prod-rZbTmo9K.js.map +0 -1
@@ -1,43 +1,43 @@
1
1
  import { jsx as d } from "react/jsx-runtime";
2
- import { o as D } from "../../../../LexicalComposerContext.prod-DLlRM5wP.js";
3
- import { C as N, y as v, _ as P, n as I, a as f, c as K } from "../../../../LexicalList.prod-CsVDXdmw.js";
4
- import { _ as E } from "../../../../LexicalSelection.prod-JQDTaUpX.js";
5
- import { useState as p, useEffect as k } from "react";
2
+ import { o as S } from "../../../../LexicalComposerContext.prod-DLlRM5wP.js";
3
+ import { C as N, y as P, _ as v, n as D, a as f, c as K } from "../../../../LexicalList.prod-WlGaeo0L.js";
4
+ import { _ as x } from "../../../../LexicalSelection.prod-B5grbYgk.js";
5
+ import { useState as p, useEffect as I } from "react";
6
6
  import { c as O } from "../../../../clsx-OuTLNxxd.js";
7
- import { ap as w, N as x, S as U, a as b, c as h, E as B, T } from "../../../../Lexical.prod-D8x7Ii0F.js";
8
- import { Icon as $ } from "../../../Icon/Icon.js";
7
+ import { ap as U, L as w, V as B, N as b, c as h, I as E, P as $ } from "../../../../Lexical.prod-qoFV025v.js";
8
+ import { Icon as j } from "../../../Icon/Icon.js";
9
9
  import { s as l } from "../../../../RteEditor.module-oFMKEW6f.js";
10
- import { useTranslation as j } from "../../hooks/useTranslation.js";
11
- const z = {
10
+ import { useTranslation as z } from "../../hooks/useTranslation.js";
11
+ const V = {
12
12
  bullet: "BulletList",
13
13
  number: "NumberedList"
14
14
  }, Y = ["bullet", "number"], W = () => {
15
- const c = j(), [e] = D(), [g, s] = p("paragraph"), [u, _] = p(!1), [m, L] = p(!1), y = () => {
15
+ const c = z(), [e] = S(), [g, s] = p("paragraph"), [u, L] = p(!1), [m, _] = p(!1), k = () => {
16
16
  e.update(() => {
17
17
  const t = b();
18
- h(t) && E(t, () => T());
18
+ h(t) && x(t, () => $());
19
19
  });
20
- }, S = (t) => {
21
- t === "number" && g !== "number" ? (e.dispatchCommand(v, void 0), s("number")) : t === "bullet" && g !== "bullet" ? (e.dispatchCommand(P, void 0), s("bullet")) : (y(), s("paragraph"));
20
+ }, y = (t) => {
21
+ t === "number" && g !== "number" ? (e.dispatchCommand(P, void 0), s("number")) : t === "bullet" && g !== "bullet" ? (e.dispatchCommand(v, void 0), s("bullet")) : (k(), s("paragraph"));
22
22
  };
23
- return k(() => {
23
+ return I(() => {
24
24
  const t = e.registerCommand(
25
- w,
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(), u ? e.dispatchCommand(N, void 0) : e.dispatchCommand(P, void 0), !0) : !1,
27
- x
25
+ U,
26
+ (r) => r.ctrlKey && r.shiftKey && r.code === "Digit7" ? (r.preventDefault(), m ? e.dispatchCommand(N, void 0) : e.dispatchCommand(P, void 0), !0) : r.ctrlKey && r.shiftKey && r.code === "Digit8" ? (r.preventDefault(), u ? e.dispatchCommand(N, void 0) : e.dispatchCommand(v, void 0), !0) : !1,
27
+ w
28
28
  );
29
29
  return () => {
30
30
  t();
31
31
  };
32
- }, [e, m, u]), k(() => {
32
+ }, [e, m, u]), I(() => {
33
33
  e.registerCommand(
34
- U,
34
+ B,
35
35
  (r) => (r.preventDefault(), e.update(() => {
36
36
  const n = b();
37
37
  if (!h(n))
38
38
  return;
39
39
  const o = n.anchor.getNode(), i = o.getParent();
40
- if (!I(i))
40
+ if (!D(i))
41
41
  return;
42
42
  const a = i.getParent();
43
43
  if (f(a)) {
@@ -45,7 +45,7 @@ const z = {
45
45
  i.append(C), C.append(o);
46
46
  }
47
47
  }), !0),
48
- B
48
+ E
49
49
  );
50
50
  const t = e.registerUpdateListener(({ editorState: r }) => {
51
51
  r.read(() => {
@@ -55,14 +55,14 @@ const z = {
55
55
  for (; o !== null; ) {
56
56
  if (f(o)) {
57
57
  const a = o.getTag();
58
- _(a === "ul"), L(a === "ol"), a === "ul" && s("bullet"), a === "ol" && s("number");
58
+ L(a === "ul"), _(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
- _(!1), L(!1), s("paragraph");
65
+ L(!1), _(!1), s("paragraph");
66
66
  }
67
67
  return !1;
68
68
  });
@@ -73,7 +73,7 @@ const z = {
73
73
  }, [e]), /* @__PURE__ */ d("div", { className: l["editor__toolbar-button-group"], children: Y.map((t) => /* @__PURE__ */ d(
74
74
  "button",
75
75
  {
76
- onClick: () => S(t),
76
+ onClick: () => y(t),
77
77
  title: c.format[`${t}Tooltip`],
78
78
  className: O(
79
79
  l["editor__toolbar-button"],
@@ -84,7 +84,7 @@ const z = {
84
84
  "aria-label": c.aria.labels[t],
85
85
  "aria-keyshortcuts": c.aria.keyshortcuts[t],
86
86
  type: "button",
87
- children: /* @__PURE__ */ d($, { name: z[t], size: 24 })
87
+ children: /* @__PURE__ */ d(j, { name: V[t], size: 24 })
88
88
  },
89
89
  t
90
90
  )) });
@@ -1,10 +1,10 @@
1
1
  import { o as m } from "../../../../LexicalComposerContext.prod-DLlRM5wP.js";
2
2
  import { useEffect as c } from "react";
3
- import { ae as f, H as p, a as u } from "../../../../Lexical.prod-D8x7Ii0F.js";
4
- import { L as i } from "../../../../LexicalUtils.prod-CpMJ4I9h.js";
5
- import { D as d } from "../../../../LexicalClipboard.prod-D5GjiArS.js";
3
+ import { ae as f, E as p, N as u } from "../../../../Lexical.prod-qoFV025v.js";
4
+ import { L as i } from "../../../../LexicalUtils.prod-BpZsS7jD.js";
5
+ import { D as d } from "../../../../LexicalClipboard.prod-BFJoO5qv.js";
6
6
  import { d as D } from "../../../../index-DllfJcv4.js";
7
- const L = () => {
7
+ const N = () => {
8
8
  const [e] = m(), l = (t) => {
9
9
  t.preventDefault(), e.update(() => {
10
10
  const r = u(), n = i(t, InputEvent) || i(t, KeyboardEvent) ? null : t.clipboardData;
@@ -26,6 +26,6 @@ const L = () => {
26
26
  }, [e]), null;
27
27
  };
28
28
  export {
29
- L as PasteHandlerPlugin
29
+ N 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 B } from "../../../../TablePlugin-WOgWan8s.js";
3
+ import { b as B } from "../../../../TablePlugin-6tDdOCQy.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-DLlRM5wP.js";
3
3
  import "../../../../clsx-OuTLNxxd.js";
4
- import "../../../../LexicalTable.prod-rZbTmo9K.js";
5
- import "../../../../Lexical.prod-D8x7Ii0F.js";
4
+ import "../../../../LexicalTable.prod-osQj1CQX.js";
5
+ import "../../../../Lexical.prod-qoFV025v.js";
6
6
  import "react";
7
- import { T as F } from "../../../../TablePlugin-WOgWan8s.js";
7
+ import { T as F } from "../../../../TablePlugin-6tDdOCQy.js";
8
8
  import "./helpers.js";
9
9
  import "../../hooks/useFlyout.js";
10
10
  import "../../../Icon/Icon.js";
@@ -1,6 +1,6 @@
1
- import { z as d, R as h, B as m, Z as S, H as w, P as E, x as C, K as p, W as I } from "../../../../LexicalTable.prod-rZbTmo9K.js";
2
- import { T as u } from "../../../../Lexical.prod-D8x7Ii0F.js";
3
- const b = 100, P = (e, n) => {
1
+ import { z as d, R as h, B as m, Z as S, H as w, P as E, x as C, K as p, L as I } from "../../../../LexicalTable.prod-osQj1CQX.js";
2
+ import { P as u } from "../../../../Lexical.prod-qoFV025v.js";
3
+ const b = 100, D = (e, n) => {
4
4
  const t = I(0, 0, !1);
5
5
  for (let o = 0; o < e; o++) {
6
6
  const r = p();
@@ -17,7 +17,7 @@ const b = 100, P = (e, n) => {
17
17
  const r = t.getFirstDescendant();
18
18
  r && r.select();
19
19
  }
20
- }, v = (e) => {
20
+ }, P = (e) => {
21
21
  d(e).remove();
22
22
  }, B = (e, n) => {
23
23
  const t = p(), o = w(e), r = o.getChildrenSize();
@@ -28,7 +28,7 @@ const b = 100, P = (e, n) => {
28
28
  n === "insertRowAbove" ? o.insertBefore(t) : o.insertAfter(t);
29
29
  const l = t.getFirstDescendant();
30
30
  l && l.select();
31
- }, O = (e, n) => {
31
+ }, L = (e, n) => {
32
32
  const t = w(e);
33
33
  if (!h(e))
34
34
  throw new Error("Selected node is not a TableCellNode");
@@ -39,28 +39,28 @@ const b = 100, P = (e, n) => {
39
39
  const a = C(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((T) => {
43
- T.getChildren().forEach((x) => {
44
- x.setWidth(b / r);
42
+ f && (n === "insertColumnLeft" ? f.insertBefore(a) : f.insertAfter(a)), c.forEach((x) => {
43
+ x.getChildren().forEach((T) => {
44
+ T.setWidth(b / 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
- }, F = (e) => {
51
+ }, O = (e) => {
52
52
  var r;
53
53
  if (!h(e))
54
54
  throw new Error("Selected node is not a TableCellNode");
55
55
  const n = d(e), t = ((r = n.getFirstChild()) == null ? void 0 : r.getChildrenSize()) || 0, o = m(e);
56
- t === 1 ? v(e) : S(n, o);
56
+ t === 1 ? P(e) : S(n, o);
57
57
  };
58
58
  export {
59
- P as createTable,
60
- F as deleteColumn,
59
+ D as createTable,
60
+ O as deleteColumn,
61
61
  A as deleteRow,
62
- v as deleteTable,
63
- O as insertColumn,
62
+ P as deleteTable,
63
+ L as insertColumn,
64
64
  B as insertRow
65
65
  };
66
66
  //# sourceMappingURL=helpers.js.map
@@ -1,4 +1,4 @@
1
- import { T as o } from "../../../../TablePlugin-WOgWan8s.js";
1
+ import { T as o } from "../../../../TablePlugin-6tDdOCQy.js";
2
2
  import { TableCellContextMenu as t } from "./TableCellContextMenu/TableCellContextMenu.js";
3
3
  export {
4
4
  t as TableCellContextMenu,
@@ -1,21 +1,21 @@
1
- import { jsxs as L, jsx as n } from "react/jsx-runtime";
1
+ import { jsxs as y, jsx as n } from "react/jsx-runtime";
2
2
  import { o as P } from "../../../../LexicalComposerContext.prod-DLlRM5wP.js";
3
- import { a as g, c as h, g as y } from "../../../../Lexical.prod-D8x7Ii0F.js";
4
- import { useState as C, useRef as E, useCallback as T, useEffect as m } from "react";
5
- import { L as w } from "../../../../LexicalTable.prod-rZbTmo9K.js";
6
- import { BlockFormatPlugin as N } from "../BlockFormatPlugin/BlockFormatPlugin.js";
3
+ import { N as h, c as g, y as C } from "../../../../Lexical.prod-qoFV025v.js";
4
+ import { useState as L, useRef as E, useCallback as N, useEffect as m } from "react";
5
+ import { W as b } from "../../../../LexicalTable.prod-osQj1CQX.js";
6
+ import { BlockFormatPlugin as T } from "../BlockFormatPlugin/BlockFormatPlugin.js";
7
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 S } from "../../../../TablePlugin-WOgWan8s.js";
10
+ import { T as S } from "../../../../TablePlugin-6tDdOCQy.js";
11
11
  import { TableCellContextMenu as z } from "../TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
12
12
  import { s as A } from "../../../../RteEditor.module-oFMKEW6f.js";
13
- import { setScrollableContainers as b, removeScrollableContainers as K } from "../../helpers.js";
14
- const Q = ({ editorScrollPosition: d }) => {
15
- const [t] = P(), [i, s] = C(null), u = E(null), f = T(() => {
16
- const e = g();
17
- if (h(e)) {
18
- const l = e.anchor.getNode(), a = w(l);
13
+ import { setScrollableContainers as w, removeScrollableContainers as K } from "../../helpers.js";
14
+ const O = ({ editorScrollPosition: d }) => {
15
+ const [t] = P(), [i, s] = L(null), u = E(null), f = N(() => {
16
+ const e = h();
17
+ if (g(e)) {
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 };
21
21
  s({ xPos: c.right, yPos: c.bottom, height: c.height });
@@ -27,10 +27,10 @@ const Q = ({ editorScrollPosition: d }) => {
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
- w(l) && (y(null), s(null));
33
+ b(l) && (C(null), s(null));
34
34
  }
35
35
  });
36
36
  };
@@ -40,17 +40,17 @@ const Q = ({ editorScrollPosition: d }) => {
40
40
  f();
41
41
  });
42
42
  });
43
- }, [t, f]), m(() => (b(o), window.addEventListener("scroll", o), window.addEventListener("resize", o), () => {
43
+ }, [t, f]), m(() => (w(o), window.addEventListener("scroll", o), window.addEventListener("resize", o), () => {
44
44
  window.removeEventListener("scroll", o), window.removeEventListener("resize", o), K(o);
45
45
  }), [t]), m(() => {
46
46
  const e = () => {
47
- b(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__ */ L("div", { className: A.editor__toolbar, children: [
53
- /* @__PURE__ */ n(N, {}),
52
+ }, []), /* @__PURE__ */ y("div", { className: A.editor__toolbar, children: [
53
+ /* @__PURE__ */ n(T, {}),
54
54
  /* @__PURE__ */ n(k, {}),
55
55
  /* @__PURE__ */ n(S, { isActive: !!i, ref: u }),
56
56
  i && /* @__PURE__ */ n(
@@ -66,6 +66,6 @@ const Q = ({ editorScrollPosition: d }) => {
66
66
  ] });
67
67
  };
68
68
  export {
69
- Q as ToolBarPlugin
69
+ O as ToolBarPlugin
70
70
  };
71
71
  //# sourceMappingURL=ToolbarPlugin.js.map
@@ -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-WOgWan8s.js";
6
+ import { T as a } from "../../../TablePlugin-6tDdOCQy.js";
7
7
  import { TableCellContextMenu as T } from "./TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
8
8
  export {
9
9
  l as BlockFormatPlugin,