@uva-glass/component-library 3.53.12 → 3.53.14

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 (125) hide show
  1. package/dist/{Lexical.prod-Dgzi-S1E.js → Lexical.prod-YJ1n9pVJ.js} +1334 -1305
  2. package/dist/Lexical.prod-YJ1n9pVJ.js.map +1 -0
  3. package/dist/{LexicalClipboard.prod-Dxc8c2F_.js → LexicalClipboard.prod-CDPAGlNs.js} +52 -52
  4. package/dist/{LexicalClipboard.prod-Dxc8c2F_.js.map → LexicalClipboard.prod-CDPAGlNs.js.map} +1 -1
  5. package/dist/{LexicalExtension.prod-CNBWjmfs.js → LexicalExtension.prod-2-giLTv9.js} +87 -88
  6. package/dist/LexicalExtension.prod-2-giLTv9.js.map +1 -0
  7. package/dist/LexicalLink.prod-u8L4ioQd.js +528 -0
  8. package/dist/LexicalLink.prod-u8L4ioQd.js.map +1 -0
  9. package/dist/LexicalList.prod-DMU0XSLO.js +630 -0
  10. package/dist/LexicalList.prod-DMU0XSLO.js.map +1 -0
  11. package/dist/{LexicalSelection.prod-B0uiXGSS.js → LexicalSelection.prod-CpZE7Sey.js} +41 -41
  12. package/dist/{LexicalSelection.prod-B0uiXGSS.js.map → LexicalSelection.prod-CpZE7Sey.js.map} +1 -1
  13. package/dist/LexicalTable.prod-BOlKc5zf.js +1846 -0
  14. package/dist/LexicalTable.prod-BOlKc5zf.js.map +1 -0
  15. package/dist/LexicalUtils.prod-BQnuAaA9.js +92 -0
  16. package/dist/LexicalUtils.prod-BQnuAaA9.js.map +1 -0
  17. package/dist/{TableCellResizerPlugin-9kvw_LpH.js → TableCellResizerPlugin-BTfuE_kM.js} +53 -53
  18. package/dist/{TableCellResizerPlugin-9kvw_LpH.js.map → TableCellResizerPlugin-BTfuE_kM.js.map} +1 -1
  19. package/dist/{TablePlugin-BlXaQ0U6.js → TablePlugin-bFqq2Yd9.js} +75 -75
  20. package/dist/{TablePlugin-BlXaQ0U6.js.map → TablePlugin-bFqq2Yd9.js.map} +1 -1
  21. package/dist/{chunk-MDLQUVZN-Dk02kWJ8.js → chunk-2N4WE3KZ-DQvXvHLf.js} +534 -530
  22. package/dist/chunk-2N4WE3KZ-DQvXvHLf.js.map +1 -0
  23. package/dist/{client-3XNwBsl7.js → client-D5eE1v54.js} +90 -90
  24. package/dist/{client-3XNwBsl7.js.map → client-D5eE1v54.js.map} +1 -1
  25. package/dist/components/Accordion/Accordion.test.js +2 -2
  26. package/dist/components/AccordionCard/AccordionCard.test.js +2 -2
  27. package/dist/components/ActionList/ActionList.test.js +2 -2
  28. package/dist/components/AppStatusBar/AppStatusBar.test.js +1 -1
  29. package/dist/components/Attention/Attention.test.js +1 -1
  30. package/dist/components/Backdrop/Backdrop.test.js +1 -1
  31. package/dist/components/Buttons/Button.stories.js +1 -1
  32. package/dist/components/Buttons/Button.test.js +1 -1
  33. package/dist/components/Buttons/LinkButton.stories.js +1 -1
  34. package/dist/components/Buttons/LinkButton.test.js +1 -1
  35. package/dist/components/Buttons/MenuButton.stories.js +1 -1
  36. package/dist/components/Buttons/MenuButton.test.js +1 -1
  37. package/dist/components/Card/Card.test.js +1 -1
  38. package/dist/components/Checkbox/Checkbox.stories.js +1 -1
  39. package/dist/components/Checkbox/Checkbox.test.js +2 -2
  40. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +1 -1
  41. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js +1 -1
  42. package/dist/components/CheckboxTree/CheckboxTree.js +1 -1
  43. package/dist/components/CheckboxTree/CheckboxTree.stories.js +2 -2
  44. package/dist/components/Chip/Chip.stories.js +1 -1
  45. package/dist/components/ControlsButton/ControlsButton.stories.js +1 -1
  46. package/dist/components/Drawer/Drawer.stories.js +1 -1
  47. package/dist/components/FeedbackBar/FeedbackBar.test.js +1 -1
  48. package/dist/components/FormInput/FormInput.js +1 -1
  49. package/dist/components/FormInput/FormInput.stories.js +1 -1
  50. package/dist/components/IconButton/IconButton.stories.js +1 -1
  51. package/dist/components/InputField/InputField.stories.js +2 -2
  52. package/dist/components/Label/Label.test.js +1 -1
  53. package/dist/components/MetaDataBar/MetaDataBar.test.js +1 -1
  54. package/dist/components/ModalDialog/ModalDialog.stories.js +1 -1
  55. package/dist/components/MultiSelect/MultiSelect.js +1 -1
  56. package/dist/components/MultiSelect/MultiSelect.stories.js +2 -2
  57. package/dist/components/MultiSelect/components/MultiSelectHeader.js +1 -1
  58. package/dist/components/MultiSelect/index.js +1 -1
  59. package/dist/components/MultiSelectBox/MultiSelectBox.stories.js +1 -1
  60. package/dist/components/MultiSelectBox/MultiSelectBox.test.js +1 -1
  61. package/dist/components/Notification/Notification.stories.js +1 -1
  62. package/dist/components/Notification/Notification.test.js +1 -1
  63. package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +1 -1
  64. package/dist/components/PeriodSelector/PeriodSelector.js +1 -1
  65. package/dist/components/PeriodSelector/PeriodSelector.stories.js +1 -1
  66. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +1 -1
  67. package/dist/components/RadioGroup/RadioGroup.stories.js +1 -1
  68. package/dist/components/RadioGroup/Radiogroup.test.js +1 -1
  69. package/dist/components/RadioTabSelector/RadioTabSelector.js +1 -1
  70. package/dist/components/RadioTabSelector/RadioTabSelector.stories.js +1 -1
  71. package/dist/components/RteEditor/EditorHeader/EditorHeader.js +1 -1
  72. package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +8 -8
  73. package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/CourseCataloguePlugin.js +58 -58
  74. package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +4 -4
  75. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +1 -1
  76. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +61 -61
  77. package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
  78. package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +25 -25
  79. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +13 -13
  80. package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/TableCellResizerPlugin.js +4 -4
  81. package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/index.js +1 -1
  82. package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +1 -1
  83. package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +4 -4
  84. package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +24 -24
  85. package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
  86. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +29 -29
  87. package/dist/components/RteEditor/Plugins/index.js +2 -2
  88. package/dist/components/RteEditor/RteEditor.js +252 -252
  89. package/dist/components/RteEditor/RteEditor.js.map +1 -1
  90. package/dist/components/RteEditor/helpers.js +18 -18
  91. package/dist/components/RteEditor/nodes/CourseCatalogueNode/CourseCatalogueNode.js +19 -19
  92. package/dist/components/RteEditor/nodes/TableWrapperNode/TableWrapperNode.js +12 -12
  93. package/dist/components/SelectListbox/SelectListBox.stories.js +1 -1
  94. package/dist/components/Sortable/Sortable.stories.js +1 -1
  95. package/dist/components/StatusBadge/StatusBadge.test.js +1 -1
  96. package/dist/components/TextArea/TextArea.stories.js +1 -1
  97. package/dist/components/TextArea/TextArea.test.js +2 -2
  98. package/dist/components/ToggleSwitch/ToggleSwitch.stories.js +1 -1
  99. package/dist/components/VarIndicator/VarIndicator.stories.js +1 -1
  100. package/dist/components/VarIndicator/VarIndicator.test.js +2 -2
  101. package/dist/components/index.js +1 -1
  102. package/dist/{index-CdPMY4ux.js → index-1WwGCyua.js} +8847 -7067
  103. package/dist/index-1WwGCyua.js.map +1 -0
  104. package/dist/{index-CLNHDZVV.js → index-YdDr6J97.js} +2 -2
  105. package/dist/{index-CLNHDZVV.js.map → index-YdDr6J97.js.map} +1 -1
  106. package/dist/index.js +1 -1
  107. package/dist/{react-18-D3e2aqkg.js → react-18-CxCoNkIN.js} +2 -2
  108. package/dist/{react-18-D3e2aqkg.js.map → react-18-CxCoNkIN.js.map} +1 -1
  109. package/dist/{react.esm-QW7uOFDD.js → react.esm-C68fQMAi.js} +2 -2
  110. package/dist/{react.esm-QW7uOFDD.js.map → react.esm-C68fQMAi.js.map} +1 -1
  111. package/dist/storybook__react.d.js +281 -278
  112. package/dist/storybook__react.d.js.map +1 -1
  113. package/package.json +31 -31
  114. package/dist/Lexical.prod-Dgzi-S1E.js.map +0 -1
  115. package/dist/LexicalExtension.prod-CNBWjmfs.js.map +0 -1
  116. package/dist/LexicalLink.prod-EEOzXxej.js +0 -502
  117. package/dist/LexicalLink.prod-EEOzXxej.js.map +0 -1
  118. package/dist/LexicalList.prod-DADZlhem.js +0 -627
  119. package/dist/LexicalList.prod-DADZlhem.js.map +0 -1
  120. package/dist/LexicalTable.prod-QpQxZNNH.js +0 -1814
  121. package/dist/LexicalTable.prod-QpQxZNNH.js.map +0 -1
  122. package/dist/LexicalUtils.prod-D1mwAww-.js +0 -114
  123. package/dist/LexicalUtils.prod-D1mwAww-.js.map +0 -1
  124. package/dist/chunk-MDLQUVZN-Dk02kWJ8.js.map +0 -1
  125. package/dist/index-CdPMY4ux.js.map +0 -1
@@ -1,70 +1,70 @@
1
1
  import { jsx as b, jsxs as O } from "react/jsx-runtime";
2
- import { useState as k, useRef as _, useEffect as x } from "react";
2
+ import { useState as k, useRef as L, useEffect as E } from "react";
3
3
  import { c as z } from "../../../../clsx-OuTLNxxd.js";
4
- import { o as J } from "../../../../LexicalComposerContext.prod-DOyoZx0P.js";
5
- import { aF as I, ah as U, c as E, b as T, p as F, _ as S, aG as Q, Y as X, a7 as Z, l as ee } from "../../../../Lexical.prod-Dgzi-S1E.js";
6
- import { x as A } from "../../../../LexicalUtils.prod-D1mwAww-.js";
4
+ import { o as Q } from "../../../../LexicalComposerContext.prod-DOyoZx0P.js";
5
+ import { aK as I, an as U, a as T, N as x, _ as P, g as S, aL as X, V as Y, ad as Z, r as ee } from "../../../../Lexical.prod-YJ1n9pVJ.js";
6
+ import { v } from "../../../../LexicalUtils.prod-BQnuAaA9.js";
7
7
  import { AddCatalogueLinkForm as te } from "./AddCatalogueLinkForm/AddCatalogueLinkForm.js";
8
8
  import { s as l } from "../../../../RteEditor.module-DaBh86FK.js";
9
9
  import { useTranslation as oe } from "../../hooks/useTranslation.js";
10
- import { CourseCatalogueNode as y, $getLinkTypeFromNode as P, REMOVE_COURSE_CATALOGUE_LINK as re, INSERT_COURSE_CATALOGUE_LINK as ne } from "../../nodes/CourseCatalogueNode/CourseCatalogueNode.js";
10
+ import { CourseCatalogueNode as y, $getLinkTypeFromNode as F, REMOVE_COURSE_CATALOGUE_LINK as re, INSERT_COURSE_CATALOGUE_LINK as ne } from "../../nodes/CourseCatalogueNode/CourseCatalogueNode.js";
11
11
  import { useOnClickOutside as se } from "../../../hooks/useOnClickOutside.js";
12
- import { setScrollableContainers as G, removeScrollableContainers as ae } from "../../helpers.js";
12
+ import { setScrollableContainers as H, removeScrollableContainers as ae } from "../../helpers.js";
13
13
  const ke = ({
14
- onSearch: v,
15
- searchResponse: H,
14
+ onSearch: A,
15
+ searchResponse: V,
16
16
  parentScrollPosition: j
17
17
  }) => {
18
- const [s] = J(), m = oe(), [M, L] = k(!1), [V, h] = k(!1), D = _(null), K = _(null), R = _(null), [d, w] = k(null), [B, Y] = k("course"), $ = _(d !== null), C = (c) => {
19
- Y(c);
20
- const r = c === "course" ? D.current?.getBoundingClientRect() : K.current?.getBoundingClientRect();
21
- r && w({ top: r.bottom, left: r.left });
18
+ const [s] = Q(), d = oe(), [G, _] = k(!1), [M, h] = k(!1), K = L(null), R = L(null), D = L(null), [m, N] = k(null), [B, J] = k("course"), W = L(m !== null), C = (c) => {
19
+ J(c);
20
+ const r = c === "course" ? K.current?.getBoundingClientRect() : R.current?.getBoundingClientRect();
21
+ r && N({ top: r.bottom, left: r.left });
22
22
  }, p = () => {
23
- v("", B), w(null);
23
+ A("", B), N(null);
24
24
  };
25
- return x(() => {
25
+ return E(() => {
26
26
  const c = s.registerCommand(
27
27
  I,
28
28
  (e) => e.ctrlKey && e.shiftKey && e.altKey && e.key === "C" ? (e.preventDefault(), C("course"), !0) : e.ctrlKey && e.shiftKey && e.altKey && e.key === "P" ? (e.preventDefault(), C("programme"), !0) : !1,
29
29
  U
30
30
  ), r = s.registerUpdateListener(({ editorState: e }) => {
31
31
  e.read(() => {
32
- const n = E();
33
- if (T(n)) {
32
+ const n = T();
33
+ if (x(n)) {
34
34
  const t = n.anchor.getNode(), a = n.anchor.offset;
35
- if (F(t) && a === t.getTextContentSize() && t.getNextSibling() instanceof y) {
35
+ if (P(t) && a === t.getTextContentSize() && t.getNextSibling() instanceof y) {
36
36
  const o = t.getNextSibling();
37
37
  if (o) {
38
- const g = P(o);
39
- L(g === "course"), h(g === "programme");
38
+ const g = F(o);
39
+ _(g === "course"), h(g === "programme");
40
40
  return;
41
41
  }
42
42
  }
43
- const i = A(t, y);
43
+ const i = v(t, y);
44
44
  if (i) {
45
- const o = P(i);
46
- L(o === "course"), h(o === "programme");
45
+ const o = F(i);
46
+ _(o === "course"), h(o === "programme");
47
47
  return;
48
48
  }
49
- L(!1), h(!1);
49
+ _(!1), h(!1);
50
50
  }
51
51
  });
52
52
  }), u = (e) => {
53
53
  const n = Z(), t = e.getTextContentSize();
54
54
  n.setTextNodeRange(e, t, e, t), ee(n);
55
- }, N = (e, n) => F(e) && n === e.getTextContentSize() && e.getNextSibling() instanceof y, W = s.registerCommand(
55
+ }, w = (e, n) => P(e) && n === e.getTextContentSize() && e.getNextSibling() instanceof y, $ = s.registerCommand(
56
56
  I,
57
57
  (e) => {
58
- const n = E();
59
- if (T(n)) {
58
+ const n = T();
59
+ if (x(n)) {
60
60
  const t = e.key, a = n.anchor.getNode(), i = n.anchor.offset;
61
- let o = A(a, y);
62
- if (N(a, i) && (o = a.getNextSibling()), !o)
61
+ let o = v(a, y);
62
+ if (w(a, i) && (o = a.getNextSibling()), !o)
63
63
  return !1;
64
64
  const g = o?.getTextContentSize();
65
65
  if (o && e.key === "Enter")
66
66
  return e.preventDefault(), s.update(() => {
67
- if (N(a, i)) {
67
+ if (w(a, i)) {
68
68
  const f = S(`
69
69
  `);
70
70
  o.insertBefore(f);
@@ -78,7 +78,7 @@ const ke = ({
78
78
  if (o && (t === " " || e.code === "Space"))
79
79
  return e.preventDefault(), s.update(() => {
80
80
  const f = S(" ");
81
- N(a, i) && (o.insertBefore(f), u(f)), i === g && (o.insertAfter(f), u(f));
81
+ w(a, i) && (o.insertBefore(f), u(f)), i === g && (o.insertAfter(f), u(f));
82
82
  }), !0;
83
83
  if (o && (t === "Backspace" || t === "Delete"))
84
84
  return e.preventDefault(), s.update(
@@ -94,11 +94,11 @@ const ke = ({
94
94
  },
95
95
  U
96
96
  ), q = s.registerCommand(
97
- Q,
97
+ X,
98
98
  (e) => {
99
- const n = E();
100
- if (T(n)) {
101
- const t = n.anchor.getNode(), a = A(t, y);
99
+ const n = T();
100
+ if (x(n)) {
101
+ const t = n.anchor.getNode(), a = v(t, y);
102
102
  if (a) {
103
103
  e.preventDefault();
104
104
  const i = s.getElementByKey(a.getKey());
@@ -107,72 +107,72 @@ const ke = ({
107
107
  }
108
108
  return !1;
109
109
  },
110
- X
110
+ Y
111
111
  );
112
112
  return () => {
113
- c(), r(), W(), q();
113
+ c(), r(), $(), q();
114
114
  };
115
- }, [s]), se(R, () => w(null)), x(() => {
116
- const c = (u) => (G(r), u.key === "Escape" && $.current && (u.preventDefault(), u.stopPropagation(), p()), !0);
115
+ }, [s]), se(D, () => N(null)), E(() => {
116
+ const c = (u) => (H(r), u.key === "Escape" && W.current && (u.preventDefault(), u.stopPropagation(), p()), !0);
117
117
  window.addEventListener("keydown", c, { capture: !0 });
118
118
  const r = () => {
119
119
  p();
120
120
  };
121
- return G(r), window.addEventListener("scroll", r), window.addEventListener("resize", r), () => {
121
+ return H(r), window.addEventListener("scroll", r), window.addEventListener("resize", r), () => {
122
122
  window.removeEventListener("keydown", c), window.removeEventListener("scroll", r), window.removeEventListener("resize", r), ae(r);
123
123
  };
124
- }, []), x(() => {
125
- d && p();
124
+ }, []), E(() => {
125
+ m && p();
126
126
  }, [j]), /* @__PURE__ */ b("div", { className: l["editor__toolbar-button-group"], children: /* @__PURE__ */ O("div", { className: l["editor__toolbar-button-flyoutwrapper"], children: [
127
127
  /* @__PURE__ */ O("div", { className: l["editor__toolbar-button-group--text"], children: [
128
128
  /* @__PURE__ */ b(
129
129
  "button",
130
130
  {
131
131
  onClick: () => C("course"),
132
- title: m.cataloguelinks.courseTooltip,
132
+ title: d.cataloguelinks.courseTooltip,
133
133
  className: z(
134
134
  l["editor__toolbar-button"],
135
135
  l["editor__toolbar-button--text"],
136
- M && l["editor__toolbar-button--active"]
136
+ G && l["editor__toolbar-button--active"]
137
137
  ),
138
- "aria-label": m.aria.labels.courselink,
139
- "aria-keyshortcuts": m.aria.keyshortcuts.courselink,
138
+ "aria-label": d.aria.labels.courselink,
139
+ "aria-keyshortcuts": d.aria.keyshortcuts.courselink,
140
140
  type: "button",
141
- ref: D,
142
- children: m.cataloguelinks.courseButtonLabel
141
+ ref: K,
142
+ children: d.cataloguelinks.courseButtonLabel
143
143
  }
144
144
  ),
145
145
  /* @__PURE__ */ b(
146
146
  "button",
147
147
  {
148
148
  onClick: () => C("programme"),
149
- title: m.cataloguelinks.programmeTooltip,
149
+ title: d.cataloguelinks.programmeTooltip,
150
150
  className: z(
151
151
  l["editor__toolbar-button"],
152
152
  l["editor__toolbar-button--text"],
153
- V && l["editor__toolbar-button--active"]
153
+ M && l["editor__toolbar-button--active"]
154
154
  ),
155
- "aria-label": m.aria.labels.programmelink,
156
- "aria-keyshortcuts": m.aria.keyshortcuts.programmelink,
155
+ "aria-label": d.aria.labels.programmelink,
156
+ "aria-keyshortcuts": d.aria.keyshortcuts.programmelink,
157
157
  type: "button",
158
- ref: K,
159
- children: m.cataloguelinks.programmeButtonLabel
158
+ ref: R,
159
+ children: d.cataloguelinks.programmeButtonLabel
160
160
  }
161
161
  )
162
162
  ] }),
163
- d && /* @__PURE__ */ b(
163
+ m && /* @__PURE__ */ b(
164
164
  "div",
165
165
  {
166
166
  className: l["editor__toolbar-flyout-wrapper"],
167
- style: { top: d.top, left: d.left },
168
- ref: R,
167
+ style: { top: m.top, left: m.left },
168
+ ref: D,
169
169
  children: /* @__PURE__ */ b(
170
170
  te,
171
171
  {
172
172
  linkType: B,
173
173
  onCloseHandler: p,
174
- onSearchHandler: v,
175
- searchResponse: H,
174
+ onSearchHandler: A,
175
+ searchResponse: V,
176
176
  onSelect: (c, r, u) => {
177
177
  s.dispatchCommand(ne, {
178
178
  linkType: u,
@@ -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 { aH as _, aI as C, aJ as y, aK as k } from "../../../../Lexical.prod-Dgzi-S1E.js";
4
+ import { aM as _, aN as C, aO as y, aP as k } from "../../../../Lexical.prod-YJ1n9pVJ.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,9 +18,9 @@ import "../../../IconButton/IconButton.js";
18
18
  import "../../../Input/Input.js";
19
19
  import "../../../InputField/InputField.js";
20
20
  import "react-router";
21
- import "../../../../TablePlugin-BlXaQ0U6.js";
21
+ import "../../../../TablePlugin-bFqq2Yd9.js";
22
22
  import { s as r } from "../../../../RteEditor.module-DaBh86FK.js";
23
- import { useTranslation as g } from "../../hooks/useTranslation.js";
23
+ import { useTranslation as x } from "../../hooks/useTranslation.js";
24
24
  import "../../Providers/LanguageProvider.js";
25
25
  import "../LinkPlugin/LinkContextMenu/LinkContextMenu.js";
26
26
  import "../../hooks/components/Flyout.js";
@@ -33,7 +33,7 @@ import "../../../Sortable/components/SortableItem.js";
33
33
  import "../../../../SortableProvider-BbwlEPIr.js";
34
34
  import "../../../WeekSelector/components/WeekSelectorOptionContainer.js";
35
35
  const ro = () => {
36
- const o = g(), [t] = h(), [p, d] = m(!1), [l, c] = m(!1), u = () => {
36
+ const o = x(), [t] = h(), [p, d] = m(!1), [l, c] = m(!1), u = () => {
37
37
  t.dispatchCommand(y, void 0);
38
38
  }, b = () => {
39
39
  t.dispatchCommand(k, void 0);
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { A as I } from "../../../../../TablePlugin-BlXaQ0U6.js";
3
+ import { A as I } from "../../../../../TablePlugin-bFqq2Yd9.js";
4
4
  import "../helpers.js";
5
5
  import "../../../../Accordion/Accordion.js";
6
6
  import "../../../../Icon/Icon.js";
@@ -1,11 +1,11 @@
1
- import { jsx as f, jsxs as G } 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 { y as L, P as Y, J as $ } from "../../../../LexicalLink.prod-EEOzXxej.js";
5
- import { useRef as a, useState as q, useEffect as u } from "react";
6
- import { a4 as Q, c as p, u as X, aF as Z, b as w, ah as tt, l as et, _ as ot } from "../../../../Lexical.prod-Dgzi-S1E.js";
7
- import { x as N } from "../../../../LexicalUtils.prod-D1mwAww-.js";
8
- import { A as rt } from "../../../../TablePlugin-BlXaQ0U6.js";
1
+ import { jsx as f, 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 { N as b, E as q, J as G } from "../../../../LexicalLink.prod-u8L4ioQd.js";
5
+ import { useRef as a, useState as Q, useEffect as u } from "react";
6
+ import { aa as X, a as p, x as Z, aK as $, N, an as tt, r as et, g as ot } from "../../../../Lexical.prod-YJ1n9pVJ.js";
7
+ import { v as w } from "../../../../LexicalUtils.prod-BQnuAaA9.js";
8
+ import { A as rt } from "../../../../TablePlugin-bFqq2Yd9.js";
9
9
  import { ensureHttps as nt } from "./helpers.js";
10
10
  import { LinkContextMenu as it } from "./LinkContextMenu/LinkContextMenu.js";
11
11
  import { useFlyout as st } from "../../hooks/useFlyout.js";
@@ -24,7 +24,7 @@ import "../../../IconButton/IconButton.js";
24
24
  import "../../../Input/Input.js";
25
25
  import "../../../InputField/InputField.js";
26
26
  import "react-router";
27
- import { setScrollableContainers as I, removeScrollableContainers as at } from "../../helpers.js";
27
+ import { setScrollableContainers as U, removeScrollableContainers as at } from "../../helpers.js";
28
28
  import { s as g } from "../../../../RteEditor.module-DaBh86FK.js";
29
29
  import { useTranslation as lt } from "../../hooks/useTranslation.js";
30
30
  import "../../Providers/LanguageProvider.js";
@@ -36,42 +36,42 @@ import "../../../SelectListbox/SelectProvider.js";
36
36
  import "../../../Sortable/components/SortableItem.js";
37
37
  import "../../../../SortableProvider-BbwlEPIr.js";
38
38
  import "../../../WeekSelector/components/WeekSelectorOptionContainer.js";
39
- const ut = 200, $t = ({ parentScrollPosition: U }) => {
40
- const x = lt(), [i] = J(), { flyout: z, showFlyout: P, hideFlyout: h, isVisible: l } = st(), m = a(void 0), T = a(!1), C = a(""), d = a(""), [k, O] = q({ active: !1, url: "", linktext: "" }), R = a(l), F = a(null), S = a(null), _ = a(void 0), y = () => {
39
+ const ut = 200, Gt = ({ parentScrollPosition: z }) => {
40
+ const T = lt(), [i] = W(), { flyout: H, showFlyout: S, hideFlyout: h, isVisible: l } = st(), m = a(void 0), x = a(!1), C = a(""), d = a(""), [k, I] = Q({ active: !1, url: "", linktext: "" }), R = a(l), E = a(null), P = a(null), F = a(void 0), v = () => {
41
41
  i.update(() => {
42
42
  const r = p();
43
- F.current = r;
43
+ E.current = r;
44
44
  });
45
45
  }, D = () => {
46
46
  i.update(() => {
47
- F.current && et(F.current);
47
+ E.current && et(E.current);
48
48
  });
49
- }, A = (r, t) => {
50
- P({
49
+ }, O = (r, t) => {
50
+ S({
51
51
  position: t,
52
52
  children: /* @__PURE__ */ f(
53
53
  it,
54
54
  {
55
55
  url: r,
56
56
  onSave: (e) => B(e, ""),
57
- onDelete: () => H(),
57
+ onDelete: () => j(),
58
58
  onClose: K,
59
- ref: _
59
+ ref: F
60
60
  }
61
61
  )
62
62
  });
63
63
  }, K = () => {
64
- _.current?.clearForm(), h(), D();
65
- }, E = () => {
66
- const r = S.current?.getBoundingClientRect();
67
- !T.current && r && (y(), P({ position: { top: r.bottom, left: r.left }, ...M }), setTimeout(() => m.current?.setDefaults("", d.current), 0));
68
- }, b = () => {
64
+ F.current?.clearForm(), h(), D();
65
+ }, _ = () => {
66
+ const r = P.current?.getBoundingClientRect();
67
+ !x.current && r && (v(), S({ position: { top: r.bottom, left: r.left }, ...A }), setTimeout(() => m.current?.setDefaults("", d.current), 0));
68
+ }, y = () => {
69
69
  h(), D();
70
70
  }, B = (r, t) => {
71
71
  i.update(() => {
72
72
  const e = p();
73
- if (w(e)) {
74
- const o = e.anchor.getNode(), s = N(o, L);
73
+ if (N(e)) {
74
+ const o = e.anchor.getNode(), s = w(o, b);
75
75
  if (t && t !== "") {
76
76
  if (s) {
77
77
  const n = ot(t);
@@ -82,47 +82,47 @@ const ut = 200, $t = ({ parentScrollPosition: U }) => {
82
82
  e.insertText(t), n.offset -= t.length, c.offset = n.offset + t.length;
83
83
  }
84
84
  }
85
- $(nt(r), { target: "_blank" });
85
+ G(nt(r), { target: "_blank" });
86
86
  }
87
- b();
87
+ y();
88
88
  });
89
- }, H = () => {
90
- i.dispatchCommand(Y, null), K();
91
- }, M = {
89
+ }, j = () => {
90
+ i.dispatchCommand(q, null), K();
91
+ }, A = {
92
92
  children: /* @__PURE__ */ f(
93
93
  rt,
94
94
  {
95
95
  isLink: k,
96
- onCloseHandler: b,
96
+ onCloseHandler: y,
97
97
  onSaveHandler: (r, t) => B(r, t),
98
98
  ref: m
99
99
  }
100
100
  )
101
101
  };
102
102
  return u(() => {
103
- l ? (T.current = !0, m.current?.focusFirstField()) : (m.current?.clearForm(), C.current = d.current = "", setTimeout(() => T.current = !1, ut));
103
+ l ? (x.current = !0, m.current?.focusFirstField()) : (m.current?.clearForm(), C.current = d.current = "", setTimeout(() => x.current = !1, ut));
104
104
  }, [m, l]), u(() => {
105
105
  const r = (o) => {
106
- if (w(o) && o.isCollapsed()) {
107
- const s = o.anchor.getNode(), n = N(s, L);
106
+ if (N(o) && o.isCollapsed()) {
107
+ const s = o.anchor.getNode(), n = w(s, b);
108
108
  if (n) {
109
- const c = i.getElementByKey(o.anchor.getNode().getKey()), v = c ? { top: c.getBoundingClientRect().bottom, left: c.getBoundingClientRect().left } : { top: 0, left: 0 };
110
- return A(n.getURL(), v), !0;
109
+ const c = i.getElementByKey(o.anchor.getNode().getKey()), L = c ? { top: c.getBoundingClientRect().bottom, left: c.getBoundingClientRect().left } : { top: 0, left: 0 };
110
+ return O(n.getURL(), L), !0;
111
111
  }
112
112
  }
113
113
  return !1;
114
114
  }, t = i.registerCommand(
115
- Q,
115
+ X,
116
116
  () => {
117
117
  const o = p();
118
118
  return d.current = o?.getTextContent() ?? "", r(o), !1;
119
119
  },
120
120
  0
121
121
  ), e = i.registerCommand(
122
- X,
122
+ Z,
123
123
  (o) => {
124
124
  const s = p();
125
- return y(), o.preventDefault(), o.stopPropagation(), o.stopImmediatePropagation(), r(s), !1;
125
+ return v(), o.preventDefault(), o.stopPropagation(), o.stopImmediatePropagation(), r(s), !1;
126
126
  },
127
127
  0
128
128
  );
@@ -131,29 +131,29 @@ const ut = 200, $t = ({ parentScrollPosition: U }) => {
131
131
  };
132
132
  }, [i]), u(() => {
133
133
  const r = i.registerCommand(
134
- Z,
134
+ $,
135
135
  (e) => {
136
136
  if (e.ctrlKey && e.shiftKey && e.key === "U") {
137
137
  const o = p();
138
- if (y(), !w(o))
138
+ if (v(), !N(o))
139
139
  return !1;
140
- const s = o.anchor.getNode(), n = N(s, L), c = (V = "", j = "") => {
141
- E(), setTimeout(() => m.current?.setDefaults(V, j), 0);
140
+ const s = o.anchor.getNode(), n = w(s, b), c = (M = "", V = "") => {
141
+ _(), setTimeout(() => m.current?.setDefaults(M, V), 0);
142
142
  };
143
143
  if (n)
144
144
  return e.preventDefault(), e.stopPropagation(), e.stopImmediatePropagation(), C.current = n.getTextContent(), c(n.getURL(), n.getTextContent()), !0;
145
- const v = o.getTextContent();
146
- return v !== "" ? (d.current = v, c("", d.current), !0) : (E(), !0);
145
+ const L = o.getTextContent();
146
+ return L !== "" ? (d.current = L, c("", d.current), !0) : (_(), !0);
147
147
  }
148
148
  return !1;
149
149
  },
150
150
  tt
151
151
  ), t = i.registerUpdateListener(({ editorState: e }) => {
152
- O(
152
+ I(
153
153
  e.read(() => {
154
154
  const o = p();
155
- if (y(), w(o)) {
156
- const s = o.anchor.getNode(), n = N(s, L);
155
+ if (v(), N(o)) {
156
+ const s = o.anchor.getNode(), n = w(s, b);
157
157
  if (n)
158
158
  return {
159
159
  active: !0,
@@ -173,42 +173,42 @@ const ut = 200, $t = ({ parentScrollPosition: U }) => {
173
173
  r(), t();
174
174
  };
175
175
  }, [i]), u(() => {
176
- R.current = l, l || _.current?.clearForm();
176
+ R.current = l, l || F.current?.clearForm();
177
177
  }, [l]), u(() => {
178
- l && b();
179
- }, [U]), u(() => {
178
+ l && y();
179
+ }, [z]), u(() => {
180
180
  k.active || h();
181
181
  }, [k]), u(() => {
182
- const r = (e) => (I(t), e.key === "Escape" && R.current && (e.preventDefault(), e.stopPropagation(), b()), !0);
182
+ const r = (e) => (U(t), e.key === "Escape" && R.current && (e.preventDefault(), e.stopPropagation(), y()), !0);
183
183
  window.addEventListener("keydown", r, { capture: !0 });
184
184
  const t = () => {
185
185
  h();
186
186
  };
187
- return I(t), window.addEventListener("scroll", t), window.addEventListener("resize", t), () => {
187
+ return U(t), window.addEventListener("scroll", t), window.addEventListener("resize", t), () => {
188
188
  window.removeEventListener("keydown", r), window.removeEventListener("scroll", t), window.removeEventListener("resize", t), at(t);
189
189
  };
190
- }, []), /* @__PURE__ */ f("div", { className: g["editor__toolbar-button-group"], children: /* @__PURE__ */ G("div", { className: g["editor__toolbar-button-flyoutwrapper"], children: [
190
+ }, []), /* @__PURE__ */ f("div", { className: g["editor__toolbar-button-group"], children: /* @__PURE__ */ J("div", { className: g["editor__toolbar-button-flyoutwrapper"], children: [
191
191
  /* @__PURE__ */ f(
192
192
  "button",
193
193
  {
194
- onClick: E,
195
- title: x.links.linkTooltip,
196
- className: W(
194
+ onClick: _,
195
+ title: T.links.linkTooltip,
196
+ className: Y(
197
197
  g["editor__toolbar-button"],
198
198
  g["editor__toolbar-button--link"],
199
199
  k.active && g["editor__toolbar-button--active"]
200
200
  ),
201
- "aria-label": x.aria.labels.link,
202
- "aria-keyshortcuts": x.aria.keyshortcuts.link,
201
+ "aria-label": T.aria.labels.link,
202
+ "aria-keyshortcuts": T.aria.keyshortcuts.link,
203
203
  type: "button",
204
- ref: S,
204
+ ref: P,
205
205
  children: /* @__PURE__ */ f(ct, { name: "Link", size: 20 })
206
206
  }
207
207
  ),
208
- z
208
+ H
209
209
  ] }) });
210
210
  };
211
211
  export {
212
- $t as LinkPlugin
212
+ Gt as LinkPlugin
213
213
  };
214
214
  //# sourceMappingURL=LinkPlugin.js.map
@@ -1,4 +1,4 @@
1
- import { H as w } from "../../../../LexicalLink.prod-EEOzXxej.js";
1
+ import { H as w } from "../../../../LexicalLink.prod-u8L4ioQd.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,38 +1,38 @@
1
1
  import { jsx as f } from "react/jsx-runtime";
2
- import { o as I } from "../../../../LexicalComposerContext.prod-DOyoZx0P.js";
3
- import { k as b, x as _, S as v, o as K, d as N, h as P, l as y } from "../../../../LexicalList.prod-DADZlhem.js";
4
- import { useState as p, useEffect as k } from "react";
5
- import { c as $ } from "../../../../clsx-OuTLNxxd.js";
6
- import { aF as O, ah as U, a2 as Y, c as x, b as S, Y as B } from "../../../../Lexical.prod-Dgzi-S1E.js";
7
- import { x as E } from "../../../../LexicalUtils.prod-D1mwAww-.js";
8
- import { Icon as F } from "../../../Icon/Icon.js";
2
+ import { o as x } from "../../../../LexicalComposerContext.prod-DOyoZx0P.js";
3
+ import { k as b, x as _, S as v, o as I, d as N, h as P, l as y } from "../../../../LexicalList.prod-DMU0XSLO.js";
4
+ import { useState as p, useEffect as S } from "react";
5
+ import { c as O } from "../../../../clsx-OuTLNxxd.js";
6
+ import { aK as U, an as $, a8 as j, a as k, N as D, V as B } from "../../../../Lexical.prod-YJ1n9pVJ.js";
7
+ import { v as E } from "../../../../LexicalUtils.prod-BQnuAaA9.js";
8
+ import { Icon as V } from "../../../Icon/Icon.js";
9
9
  import { s as n } from "../../../../RteEditor.module-DaBh86FK.js";
10
- import { useTranslation as j } from "../../hooks/useTranslation.js";
11
- const w = {
10
+ import { useTranslation as w } from "../../hooks/useTranslation.js";
11
+ const z = {
12
12
  bullet: "BulletList",
13
13
  number: "NumberedList"
14
- }, z = ["bullet", "number"], W = () => {
15
- const m = j(), [e] = I(), [h, s] = p(null), [u, g] = p(!1), [c, L] = p(!1), D = (t) => {
14
+ }, H = ["bullet", "number"], W = () => {
15
+ const m = w(), [e] = x(), [h, s] = p(null), [u, g] = p(!1), [c, L] = p(!1), K = (t) => {
16
16
  t === "number" && h !== "number" ? (e.dispatchCommand(_, void 0), s("number")) : t === "bullet" && h !== "bullet" ? (e.dispatchCommand(v, void 0), s("bullet")) : (e.dispatchCommand(b, void 0), s(null));
17
17
  };
18
- return k(() => {
18
+ return S(() => {
19
19
  const t = e.registerCommand(
20
- O,
20
+ U,
21
21
  (o) => o.ctrlKey && o.shiftKey && o.code === "Digit7" ? (o.preventDefault(), c ? e.dispatchCommand(b, void 0) : e.dispatchCommand(_, void 0), !0) : o.ctrlKey && o.shiftKey && o.code === "Digit8" ? (o.preventDefault(), u ? e.dispatchCommand(b, void 0) : e.dispatchCommand(v, void 0), !0) : !1,
22
- U
22
+ $
23
23
  );
24
24
  return () => {
25
25
  t();
26
26
  };
27
- }, [e, c, u]), k(() => {
27
+ }, [e, c, u]), S(() => {
28
28
  const t = e.registerCommand(
29
- Y,
29
+ j,
30
30
  (d) => (d.preventDefault(), e.update(() => {
31
- const i = x();
32
- if (!S(i))
31
+ const i = k();
32
+ if (!D(i))
33
33
  return;
34
34
  const l = i.anchor.getNode(), a = l.getParent();
35
- if (!K(a))
35
+ if (!I(a))
36
36
  return;
37
37
  const r = a.getParent();
38
38
  if (N(r)) {
@@ -43,8 +43,8 @@ const w = {
43
43
  B
44
44
  ), o = e.registerUpdateListener(({ editorState: d }) => {
45
45
  d.read(() => {
46
- const i = x();
47
- if (S(i)) {
46
+ const i = k();
47
+ if (D(i)) {
48
48
  const l = i.anchor.getNode(), a = E(l, y);
49
49
  if (a) {
50
50
  const r = a.getTag();
@@ -59,12 +59,12 @@ const w = {
59
59
  return () => {
60
60
  o(), t();
61
61
  };
62
- }, [e]), /* @__PURE__ */ f("div", { className: n["editor__toolbar-button-group"], children: z.map((t) => /* @__PURE__ */ f(
62
+ }, [e]), /* @__PURE__ */ f("div", { className: n["editor__toolbar-button-group"], children: H.map((t) => /* @__PURE__ */ f(
63
63
  "button",
64
64
  {
65
- onClick: () => D(t),
65
+ onClick: () => K(t),
66
66
  title: m.format[`${t}Tooltip`],
67
- className: $(
67
+ className: O(
68
68
  n["editor__toolbar-button"],
69
69
  n[`editor__toolbar-button--${t}`],
70
70
  t === "bullet" && u && n["editor__toolbar-button--active"],
@@ -73,7 +73,7 @@ const w = {
73
73
  "aria-label": m.aria.labels[t],
74
74
  "aria-keyshortcuts": m.aria.keyshortcuts[t],
75
75
  type: "button",
76
- children: /* @__PURE__ */ f(F, { name: w[t], size: 24 })
76
+ children: /* @__PURE__ */ f(V, { name: z[t], size: 24 })
77
77
  },
78
78
  t
79
79
  )) });