@uva-glass/component-library 2.6.0 → 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 (62) 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/assets/CheckboxTree.css +1 -1
  18. package/dist/components/CheckboxTree/CheckboxTree.js +42 -42
  19. package/dist/components/FormInput/FormInput.js +1 -1
  20. package/dist/components/InputField/InputField.stories.js +1 -1
  21. package/dist/components/MultiSelect/MultiSelect.js +1 -1
  22. package/dist/components/MultiSelect/MultiSelect.stories.js +1 -1
  23. package/dist/components/MultiSelect/components/MultiSelectHeader.js +1 -1
  24. package/dist/components/MultiSelect/index.js +1 -1
  25. package/dist/components/OverlayStepBar/OverlayStepBar.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/RteEditor/EditorHeader/EditorHeader.js +1 -1
  29. package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +3 -3
  30. package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +2 -2
  31. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +2 -2
  32. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +1 -1
  33. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +37 -37
  34. package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
  35. package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +23 -23
  36. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +13 -13
  37. package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +1 -1
  38. package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +3 -3
  39. package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +26 -26
  40. package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
  41. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +17 -17
  42. package/dist/components/RteEditor/Plugins/index.js +1 -1
  43. package/dist/components/RteEditor/RteEditor.js +501 -557
  44. package/dist/components/RteEditor/RteEditor.js.map +1 -1
  45. package/dist/components/RteEditor/helpers.js +11 -11
  46. package/dist/components/index.js +1 -1
  47. package/dist/{helpers-BVGma1u6.js → helpers-DHHQR5ys.js} +44 -44
  48. package/dist/{helpers-BVGma1u6.js.map → helpers-DHHQR5ys.js.map} +1 -1
  49. package/dist/index.js +1 -1
  50. package/package.json +16 -16
  51. package/dist/Lexical.prod-Bzma_w4s.js +0 -4216
  52. package/dist/Lexical.prod-Bzma_w4s.js.map +0 -1
  53. package/dist/LexicalClipboard.prod-Dg23ixPD.js.map +0 -1
  54. package/dist/LexicalLink.prod-C1RDJLfo.js +0 -208
  55. package/dist/LexicalLink.prod-C1RDJLfo.js.map +0 -1
  56. package/dist/LexicalList.prod-BGzfDPU0.js +0 -568
  57. package/dist/LexicalList.prod-BGzfDPU0.js.map +0 -1
  58. package/dist/LexicalSelection.prod-CNWFGVlh.js.map +0 -1
  59. package/dist/LexicalTable.prod-D-4NN9o5.js +0 -1366
  60. package/dist/LexicalTable.prod-D-4NN9o5.js.map +0 -1
  61. package/dist/LexicalUtils.prod-Cg2siy-c.js +0 -94
  62. package/dist/LexicalUtils.prod-Cg2siy-c.js.map +0 -1
@@ -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,