@uva-glass/component-library 3.26.0 → 3.26.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 (62) hide show
  1. package/dist/{Lexical.prod-DOV_uwol.js → Lexical.prod-m3GJsAAT.js} +4 -4
  2. package/dist/Lexical.prod-m3GJsAAT.js.map +1 -0
  3. package/dist/{LexicalClipboard.prod-DZgXdt_H.js → LexicalClipboard.prod-HyvHKdDm.js} +4 -4
  4. package/dist/{LexicalClipboard.prod-DZgXdt_H.js.map → LexicalClipboard.prod-HyvHKdDm.js.map} +1 -1
  5. package/dist/LexicalLink.prod-D0qasaVP.js +285 -0
  6. package/dist/LexicalLink.prod-D0qasaVP.js.map +1 -0
  7. package/dist/{LexicalList.prod-Dv48Tn54.js → LexicalList.prod-CQz14k_F.js} +193 -194
  8. package/dist/LexicalList.prod-CQz14k_F.js.map +1 -0
  9. package/dist/LexicalSelection.prod-Bh25dAig.js +101 -0
  10. package/dist/LexicalSelection.prod-Bh25dAig.js.map +1 -0
  11. package/dist/{LexicalTable.prod-M0HiIwBZ.js → LexicalTable.prod-BHKhA4PF.js} +5 -5
  12. package/dist/LexicalTable.prod-BHKhA4PF.js.map +1 -0
  13. package/dist/{LexicalUtils.prod-FOA8v2nU.js → LexicalUtils.prod-Vqqof-U-.js} +2 -2
  14. package/dist/{LexicalUtils.prod-FOA8v2nU.js.map → LexicalUtils.prod-Vqqof-U-.js.map} +1 -1
  15. package/dist/{TablePlugin-Bj5FObQ_.js → TablePlugin-CykqKW6X.js} +4 -4
  16. package/dist/{TablePlugin-Bj5FObQ_.js.map → TablePlugin-CykqKW6X.js.map} +1 -1
  17. package/dist/assets/CheckboxButtonBar.css +1 -1
  18. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.d.ts +3 -1
  19. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.js +38 -35
  20. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.js.map +1 -1
  21. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +5 -4
  22. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js.map +1 -1
  23. package/dist/components/CheckboxTree/CheckboxTree.js +1 -1
  24. package/dist/components/FormInput/FormInput.js +1 -1
  25. package/dist/components/InputField/InputField.stories.js +1 -1
  26. package/dist/components/MultiSelect/MultiSelect.js +1 -1
  27. package/dist/components/MultiSelect/MultiSelect.stories.js +1 -1
  28. package/dist/components/MultiSelect/components/MultiSelectHeader.js +1 -1
  29. package/dist/components/MultiSelect/index.js +1 -1
  30. package/dist/components/PeriodSelector/PeriodSelector.js +1 -1
  31. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +1 -1
  32. package/dist/components/RadioTabSelector/RadioTabSelector.js +1 -1
  33. package/dist/components/RteEditor/EditorHeader/EditorHeader.js +1 -1
  34. package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +1 -1
  35. package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +2 -2
  36. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +2 -2
  37. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +1 -1
  38. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +4 -4
  39. package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
  40. package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +18 -18
  41. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +3 -3
  42. package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +1 -1
  43. package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +3 -3
  44. package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +10 -10
  45. package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
  46. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +3 -3
  47. package/dist/components/RteEditor/Plugins/index.js +1 -1
  48. package/dist/components/RteEditor/RteEditor.js +73 -73
  49. package/dist/components/RteEditor/RteEditor.js.map +1 -1
  50. package/dist/components/RteEditor/helpers.js +4 -4
  51. package/dist/components/index.js +1 -1
  52. package/dist/{helpers-DxxBlpKs.js → helpers-5AryUrYu.js} +4 -4
  53. package/dist/{helpers-DxxBlpKs.js.map → helpers-5AryUrYu.js.map} +1 -1
  54. package/dist/index.js +1 -1
  55. package/package.json +10 -10
  56. package/dist/Lexical.prod-DOV_uwol.js.map +0 -1
  57. package/dist/LexicalLink.prod-XYC56-_H.js +0 -275
  58. package/dist/LexicalLink.prod-XYC56-_H.js.map +0 -1
  59. package/dist/LexicalList.prod-Dv48Tn54.js.map +0 -1
  60. package/dist/LexicalSelection.prod-DaoDqTxU.js +0 -97
  61. package/dist/LexicalSelection.prod-DaoDqTxU.js.map +0 -1
  62. package/dist/LexicalTable.prod-M0HiIwBZ.js.map +0 -1
@@ -1,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { A as D } from "../../../../../TablePlugin-Bj5FObQ_.js";
4
- import "../../../../../helpers-DxxBlpKs.js";
3
+ import { A as D } from "../../../../../TablePlugin-CykqKW6X.js";
4
+ import "../../../../../helpers-5AryUrYu.js";
5
5
  import "../../../../Icon/Icon.js";
6
6
  import "../../../../Buttons/Button.js";
7
7
  import "../../../../Buttons/LinkButton.js";
@@ -1,6 +1,6 @@
1
1
  import { jsxs as k, Fragment as K, jsx as n } from "react/jsx-runtime";
2
2
  import { forwardRef as N, useState as b, useRef as T, useImperativeHandle as g, useLayoutEffect as E } from "react";
3
- import { e as R } from "../../../../../helpers-DxxBlpKs.js";
3
+ import { e as R } from "../../../../../helpers-5AryUrYu.js";
4
4
  import { Icon as m } from "../../../../Icon/Icon.js";
5
5
  import { useTranslation as S } 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 { o as W } from "../../../../LexicalComposerContext.prod-DLlRM5wP.js";
3
3
  import { c as q } from "../../../../clsx-OuTLNxxd.js";
4
- import { p as U, k as G, N as J } from "../../../../LexicalLink.prod-XYC56-_H.js";
4
+ import { p as U, k as G, v as J } from "../../../../LexicalLink.prod-D0qasaVP.js";
5
5
  import { useRef as a, useState as Q, useEffect as m } from "react";
6
- import { Y as Z, N as f, n as $, ap as tt, c as N, L as et, y as ot, X as rt } from "../../../../Lexical.prod-DOV_uwol.js";
7
- import { A as nt } from "../../../../TablePlugin-Bj5FObQ_.js";
8
- import { e as it } from "../../../../helpers-DxxBlpKs.js";
6
+ import { Y as Z, N as f, n as $, ap as tt, c as N, L as et, y as ot, X as rt } from "../../../../Lexical.prod-m3GJsAAT.js";
7
+ import { A as nt } from "../../../../TablePlugin-CykqKW6X.js";
8
+ import { e as it } from "../../../../helpers-5AryUrYu.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";
@@ -1,4 +1,4 @@
1
- import { M as e, e as r, a as s, v as l } from "../../../../helpers-DxxBlpKs.js";
1
+ import { M as e, e as r, a as s, v as l } from "../../../../helpers-5AryUrYu.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
- 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-Dv48Tn54.js";
4
- import { _ as x } from "../../../../LexicalSelection.prod-DaoDqTxU.js";
2
+ import { o as D } from "../../../../LexicalComposerContext.prod-DLlRM5wP.js";
3
+ import { m as C, p as P, f as v, Z as K, o as f, s as y } from "../../../../LexicalList.prod-CQz14k_F.js";
4
+ import { _ as x } from "../../../../LexicalSelection.prod-Bh25dAig.js";
5
5
  import { useState as p, useEffect as I } from "react";
6
6
  import { c as O } from "../../../../clsx-OuTLNxxd.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-DOV_uwol.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-m3GJsAAT.js";
8
8
  import { Icon as j } from "../../../Icon/Icon.js";
9
9
  import { s as l } from "../../../../RteEditor.module-B_3uFnFu.js";
10
10
  import { useTranslation as z } from "../../hooks/useTranslation.js";
11
11
  const V = {
12
12
  bullet: "BulletList",
13
13
  number: "NumberedList"
14
- }, Y = ["bullet", "number"], W = () => {
15
- const c = z(), [e] = S(), [g, s] = p("paragraph"), [u, L] = p(!1), [m, _] = p(!1), k = () => {
14
+ }, Y = ["bullet", "number"], T = () => {
15
+ const u = z(), [e] = D(), [g, s] = p("paragraph"), [c, L] = p(!1), [m, _] = p(!1), k = () => {
16
16
  e.update(() => {
17
17
  const t = b();
18
18
  h(t) && x(t, () => $());
19
19
  });
20
- }, y = (t) => {
20
+ }, S = (t) => {
21
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
23
  return I(() => {
24
24
  const t = e.registerCommand(
25
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,
26
+ (r) => r.ctrlKey && r.shiftKey && r.code === "Digit7" ? (r.preventDefault(), m ? e.dispatchCommand(C, void 0) : e.dispatchCommand(P, void 0), !0) : r.ctrlKey && r.shiftKey && r.code === "Digit8" ? (r.preventDefault(), c ? e.dispatchCommand(C, void 0) : e.dispatchCommand(v, void 0), !0) : !1,
27
27
  w
28
28
  );
29
29
  return () => {
30
30
  t();
31
31
  };
32
- }, [e, m, u]), I(() => {
32
+ }, [e, m, c]), I(() => {
33
33
  e.registerCommand(
34
34
  B,
35
35
  (r) => (r.preventDefault(), e.update(() => {
@@ -37,12 +37,12 @@ const V = {
37
37
  if (!h(n))
38
38
  return;
39
39
  const o = n.anchor.getNode(), i = o.getParent();
40
- if (!D(i))
40
+ if (!K(i))
41
41
  return;
42
42
  const a = i.getParent();
43
43
  if (f(a)) {
44
- const C = K(f(a) ? a.getListType() : "bullet");
45
- i.append(C), C.append(o);
44
+ const N = y(f(a) ? a.getListType() : "bullet");
45
+ i.append(N), N.append(o);
46
46
  }
47
47
  }), !0),
48
48
  E
@@ -73,16 +73,16 @@ const V = {
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: () => y(t),
77
- title: c.format[`${t}Tooltip`],
76
+ onClick: () => S(t),
77
+ title: u.format[`${t}Tooltip`],
78
78
  className: O(
79
79
  l["editor__toolbar-button"],
80
80
  l[`editor__toolbar-button--${t}`],
81
- t === "bullet" && u && l["editor__toolbar-button--active"],
81
+ t === "bullet" && c && l["editor__toolbar-button--active"],
82
82
  t === "number" && m && l["editor__toolbar-button--active"]
83
83
  ),
84
- "aria-label": c.aria.labels[t],
85
- "aria-keyshortcuts": c.aria.keyshortcuts[t],
84
+ "aria-label": u.aria.labels[t],
85
+ "aria-keyshortcuts": u.aria.keyshortcuts[t],
86
86
  type: "button",
87
87
  children: /* @__PURE__ */ d(j, { name: V[t], size: 24 })
88
88
  },
@@ -90,6 +90,6 @@ const V = {
90
90
  )) });
91
91
  };
92
92
  export {
93
- W as ListPlugin
93
+ T as ListPlugin
94
94
  };
95
95
  //# sourceMappingURL=ListPlugin.js.map
@@ -1,8 +1,8 @@
1
1
  import { o as m } from "../../../../LexicalComposerContext.prod-DLlRM5wP.js";
2
2
  import { useEffect as c } from "react";
3
- import { ae as f, E as p, N as u } from "../../../../Lexical.prod-DOV_uwol.js";
4
- import { L as i } from "../../../../LexicalUtils.prod-FOA8v2nU.js";
5
- import { D as d } from "../../../../LexicalClipboard.prod-DZgXdt_H.js";
3
+ import { ae as f, E as p, N as u } from "../../../../Lexical.prod-m3GJsAAT.js";
4
+ import { L as i } from "../../../../LexicalUtils.prod-Vqqof-U-.js";
5
+ import { D as d } from "../../../../LexicalClipboard.prod-HyvHKdDm.js";
6
6
  import { d as D } from "../../../../index-DllfJcv4.js";
7
7
  const N = () => {
8
8
  const [e] = m(), l = (t) => {
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { b as B } from "../../../../TablePlugin-Bj5FObQ_.js";
3
+ import { b as B } from "../../../../TablePlugin-CykqKW6X.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-M0HiIwBZ.js";
5
- import "../../../../Lexical.prod-DOV_uwol.js";
4
+ import "../../../../LexicalTable.prod-BHKhA4PF.js";
5
+ import "../../../../Lexical.prod-m3GJsAAT.js";
6
6
  import "react";
7
- import { T as F } from "../../../../TablePlugin-Bj5FObQ_.js";
7
+ import { T as F } from "../../../../TablePlugin-CykqKW6X.js";
8
8
  import "./helpers.js";
9
9
  import "../../hooks/useFlyout.js";
10
10
  import "../../../Icon/Icon.js";
@@ -1,7 +1,7 @@
1
- import { H as d, R as h, B as m, Z as S, z as w, P as E, x as C, K as p, L as I } from "../../../../LexicalTable.prod-M0HiIwBZ.js";
2
- import { P as u } from "../../../../Lexical.prod-DOV_uwol.js";
1
+ import { H as d, R as h, B as m, Z as x, z as w, P as S, v as C, K as p, L as E } from "../../../../LexicalTable.prod-BHKhA4PF.js";
2
+ import { P as u } from "../../../../Lexical.prod-m3GJsAAT.js";
3
3
  const b = 100, D = (e, n) => {
4
- const t = I(0, 0, !1);
4
+ const t = E(0, 0, !1);
5
5
  for (let o = 0; o < e; o++) {
6
6
  const r = p();
7
7
  for (let l = 0; l < n; l++) {
@@ -17,7 +17,7 @@ const b = 100, D = (e, n) => {
17
17
  const r = t.getFirstDescendant();
18
18
  r && r.select();
19
19
  }
20
- }, P = (e) => {
20
+ }, I = (e) => {
21
21
  d(e).remove();
22
22
  }, B = (e, n) => {
23
23
  const t = p(), o = w(e), r = o.getChildrenSize();
@@ -32,16 +32,16 @@ const b = 100, D = (e, n) => {
32
32
  const t = w(e);
33
33
  if (!h(e))
34
34
  throw new Error("Selected node is not a TableCellNode");
35
- const o = E(e), r = t.getChildren().length, l = d(e);
35
+ const o = S(e), r = t.getChildren().length, l = d(e);
36
36
  let s = m(e);
37
37
  const c = l.getChildren(), R = c.length;
38
38
  for (let i = 0; i < R; i++) {
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((x) => {
43
- x.getChildren().forEach((T) => {
44
- T.setWidth(b / r);
42
+ f && (n === "insertColumnLeft" ? f.insertBefore(a) : f.insertAfter(a)), c.forEach((T) => {
43
+ T.getChildren().forEach((v) => {
44
+ v.setWidth(b / r);
45
45
  });
46
46
  });
47
47
  }
@@ -53,13 +53,13 @@ const b = 100, D = (e, n) => {
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 ? P(e) : S(n, o);
56
+ t === 1 ? I(e) : x(n, o);
57
57
  };
58
58
  export {
59
59
  D as createTable,
60
60
  O as deleteColumn,
61
61
  A as deleteRow,
62
- P as deleteTable,
62
+ I as deleteTable,
63
63
  L as insertColumn,
64
64
  B as insertRow
65
65
  };
@@ -1,4 +1,4 @@
1
- import { T as o } from "../../../../TablePlugin-Bj5FObQ_.js";
1
+ import { T as o } from "../../../../TablePlugin-CykqKW6X.js";
2
2
  import { TableCellContextMenu as t } from "./TableCellContextMenu/TableCellContextMenu.js";
3
3
  export {
4
4
  t as TableCellContextMenu,
@@ -1,13 +1,13 @@
1
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 { N as h, c as g, y as C } from "../../../../Lexical.prod-DOV_uwol.js";
3
+ import { N as h, c as g, y as C } from "../../../../Lexical.prod-m3GJsAAT.js";
4
4
  import { useState as L, useRef as E, useCallback as N, useEffect as m } from "react";
5
- import { W as b } from "../../../../LexicalTable.prod-M0HiIwBZ.js";
5
+ import { W as b } from "../../../../LexicalTable.prod-BHKhA4PF.js";
6
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-Bj5FObQ_.js";
10
+ import { T as S } from "../../../../TablePlugin-CykqKW6X.js";
11
11
  import { TableCellContextMenu as z } from "../TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
12
12
  import { s as A } from "../../../../RteEditor.module-B_3uFnFu.js";
13
13
  import { setScrollableContainers as w, removeScrollableContainers as K } from "../../helpers.js";
@@ -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-Bj5FObQ_.js";
6
+ import { T as a } from "../../../TablePlugin-CykqKW6X.js";
7
7
  import { TableCellContextMenu as T } from "./TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
8
8
  export {
9
9
  l as BlockFormatPlugin,