@uva-glass/component-library 3.10.0 → 3.11.0

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 (143) hide show
  1. package/dist/{Lexical.prod-CWyHQUEM.js → Lexical.prod-D8x7Ii0F.js} +469 -469
  2. package/dist/{Lexical.prod-CWyHQUEM.js.map → Lexical.prod-D8x7Ii0F.js.map} +1 -1
  3. package/dist/{LexicalClipboard.prod-DbqSWANZ.js → LexicalClipboard.prod-D5GjiArS.js} +16 -16
  4. package/dist/{LexicalClipboard.prod-DbqSWANZ.js.map → LexicalClipboard.prod-D5GjiArS.js.map} +1 -1
  5. package/dist/{LexicalLink.prod-DbxnRszt.js → LexicalLink.prod-CkldFE8u.js} +60 -60
  6. package/dist/{LexicalLink.prod-DbxnRszt.js.map → LexicalLink.prod-CkldFE8u.js.map} +1 -1
  7. package/dist/{LexicalList.prod-pZmYrwOC.js → LexicalList.prod-CsVDXdmw.js} +215 -215
  8. package/dist/LexicalList.prod-CsVDXdmw.js.map +1 -0
  9. package/dist/LexicalSelection.prod-JQDTaUpX.js +90 -0
  10. package/dist/{LexicalSelection.prod-DkvWlcln.js.map → LexicalSelection.prod-JQDTaUpX.js.map} +1 -1
  11. package/dist/{LexicalTable.prod-C6duSS2P.js → LexicalTable.prod-rZbTmo9K.js} +125 -125
  12. package/dist/{LexicalTable.prod-C6duSS2P.js.map → LexicalTable.prod-rZbTmo9K.js.map} +1 -1
  13. package/dist/{LexicalUtils.prod-Dny9Fu94.js → LexicalUtils.prod-CpMJ4I9h.js} +6 -6
  14. package/dist/{LexicalUtils.prod-Dny9Fu94.js.map → LexicalUtils.prod-CpMJ4I9h.js.map} +1 -1
  15. package/dist/{SelectListbox.module-BD2qbcmZ.js → SelectListbox.module-ignbxWNU.js} +21 -21
  16. package/dist/SelectListbox.module-ignbxWNU.js.map +1 -0
  17. package/dist/{SortableProvider-Ck_XnBVq.js → SortableProvider-DZggDO3M.js} +20 -20
  18. package/dist/{SortableProvider-Ck_XnBVq.js.map → SortableProvider-DZggDO3M.js.map} +1 -1
  19. package/dist/{TablePlugin-Ba6PaBhf.js → TablePlugin-WOgWan8s.js} +36 -36
  20. package/dist/{TablePlugin-Ba6PaBhf.js.map → TablePlugin-WOgWan8s.js.map} +1 -1
  21. package/dist/assets/MultiSelectBox.css +1 -0
  22. package/dist/assets/SelectListbox.css +1 -1
  23. package/dist/components/Accordion/Accordion.test.js +3 -3
  24. package/dist/components/AccordionCard/AccordionCard.test.js +3 -3
  25. package/dist/components/ActionList/ActionList.test.js +3 -3
  26. package/dist/components/AppStatusBar/AppStatusBar.test.js +2 -2
  27. package/dist/components/Attention/Attention.test.js +2 -2
  28. package/dist/components/Backdrop/Backdrop.test.js +2 -2
  29. package/dist/components/Buttons/Button.stories.js +1 -1
  30. package/dist/components/Buttons/Button.test.js +2 -2
  31. package/dist/components/Buttons/LinkButton.stories.js +1 -1
  32. package/dist/components/Buttons/LinkButton.test.js +2 -2
  33. package/dist/components/Buttons/MenuButton.stories.js +1 -1
  34. package/dist/components/Buttons/MenuButton.test.js +2 -2
  35. package/dist/components/Card/Card.test.js +2 -2
  36. package/dist/components/Checkbox/Checkbox.stories.js +1 -1
  37. package/dist/components/Checkbox/Checkbox.test.js +2 -2
  38. package/dist/components/CheckboxButton/CheckboxButton.stories.js +1 -1
  39. package/dist/components/CheckboxButton/CheckboxButton.test.js +2 -2
  40. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +1 -1
  41. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js +2 -2
  42. package/dist/components/CheckboxTree/CheckboxTree.js +3 -3
  43. package/dist/components/CheckboxTree/CheckboxTree.stories.js +1 -1
  44. package/dist/components/Chip/Chip.stories.js +1 -1
  45. package/dist/components/Drawer/Drawer.stories.js +1 -1
  46. package/dist/components/FeedbackBar/FeedbackBar.test.js +2 -2
  47. package/dist/components/FormInput/FormInput.js +3 -3
  48. package/dist/components/FormInput/FormInput.stories.js +1 -1
  49. package/dist/components/IconButton/IconButton.stories.js +1 -1
  50. package/dist/components/InputField/InputField.js +17 -17
  51. package/dist/components/InputField/InputField.stories.js +17 -17
  52. package/dist/components/Label/Label.test.js +2 -2
  53. package/dist/components/ModalDialog/ModalDialog.stories.js +1 -1
  54. package/dist/components/MultiSelect/MultiSelect.js +1 -1
  55. package/dist/components/MultiSelect/MultiSelect.stories.js +2 -2
  56. package/dist/components/MultiSelect/components/MultiSelectHeader.js +3 -3
  57. package/dist/components/MultiSelect/index.js +1 -1
  58. package/dist/components/MultiSelectBox/MultiSelectBox.d.ts +16 -0
  59. package/dist/components/MultiSelectBox/MultiSelectBox.js +191 -0
  60. package/dist/components/MultiSelectBox/MultiSelectBox.js.map +1 -0
  61. package/dist/components/MultiSelectBox/MultiSelectBox.stories.d.ts +5 -0
  62. package/dist/components/MultiSelectBox/MultiSelectBox.stories.js +31 -0
  63. package/dist/components/MultiSelectBox/MultiSelectBox.stories.js.map +1 -0
  64. package/dist/components/MultiSelectBox/MultiSelectBox.test.d.ts +0 -0
  65. package/dist/components/MultiSelectBox/MultiSelectBox.test.js +26 -0
  66. package/dist/components/MultiSelectBox/MultiSelectBox.test.js.map +1 -0
  67. package/dist/components/MultiSelectBox/index.d.ts +1 -0
  68. package/dist/components/MultiSelectBox/index.js +5 -0
  69. package/dist/components/MultiSelectBox/index.js.map +1 -0
  70. package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +1 -1
  71. package/dist/components/OverlayStepBar/OverlayStepBar.js +3 -3
  72. package/dist/components/PeriodSelector/PeriodSelector.js +3 -3
  73. package/dist/components/PeriodSelector/PeriodSelector.stories.js +1 -1
  74. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +3 -3
  75. package/dist/components/RadioButton/RadioButton.js +3 -3
  76. package/dist/components/RadioGroup/RadioGroup.stories.js +1 -1
  77. package/dist/components/RadioGroup/Radiogroup.test.js +2 -2
  78. package/dist/components/RteEditor/EditorHeader/EditorHeader.js +3 -3
  79. package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +1 -1
  80. package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +14 -14
  81. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +4 -4
  82. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +1 -1
  83. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +23 -23
  84. package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
  85. package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +40 -40
  86. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +4 -4
  87. package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +3 -3
  88. package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +5 -5
  89. package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +2 -2
  90. package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
  91. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +3 -3
  92. package/dist/components/RteEditor/Plugins/index.js +1 -1
  93. package/dist/components/RteEditor/Providers/LanguageProvider.js +7 -7
  94. package/dist/components/RteEditor/RteEditor.js +327 -327
  95. package/dist/components/RteEditor/RteEditor.js.map +1 -1
  96. package/dist/components/RteEditor/helpers.js +4 -4
  97. package/dist/components/SelectListbox/SelectListBox.stories.js +1 -1
  98. package/dist/components/SelectListbox/SelectProvider.js +10 -10
  99. package/dist/components/SelectListbox/components/SelectButton.js +1 -1
  100. package/dist/components/SelectListbox/components/SelectContainer.js +1 -1
  101. package/dist/components/SelectListbox/components/SelectOption.js +1 -1
  102. package/dist/components/SelectListbox/components/SelectOptionBox.js +1 -1
  103. package/dist/components/Sortable/Sortable.js +1 -1
  104. package/dist/components/Sortable/Sortable.stories.js +1 -1
  105. package/dist/components/Sortable/SortableProvider.js +1 -1
  106. package/dist/components/Sortable/components/SortableContainer.js +1 -1
  107. package/dist/components/Sortable/components/SortableItem.js +15 -15
  108. package/dist/components/Sortable/sortableReducer.js +21 -21
  109. package/dist/components/StatusBadge/StatusBadge.test.js +2 -2
  110. package/dist/components/TextArea/TextArea.js +2 -2
  111. package/dist/components/TextArea/TextArea.stories.js +1 -1
  112. package/dist/components/TextArea/TextArea.test.js +3 -3
  113. package/dist/components/Timeline/Timeline.test.js +5 -5
  114. package/dist/components/ToggleSwitch/ToggleSwitch.stories.js +1 -1
  115. package/dist/components/Tooltip/Tooltip.js +22 -22
  116. package/dist/components/VarIndicator/VarIndicator.stories.js +1 -1
  117. package/dist/components/VarIndicator/VarIndicator.test.js +3 -3
  118. package/dist/components/hooks/useDebounce.js +4 -4
  119. package/dist/components/index.d.ts +1 -0
  120. package/dist/components/index.js +53 -51
  121. package/dist/components/index.js.map +1 -1
  122. package/dist/{helpers-BUwfVZhW.js → helpers-E_SsILnP.js} +10 -10
  123. package/dist/{helpers-BUwfVZhW.js.map → helpers-E_SsILnP.js.map} +1 -1
  124. package/dist/{index-DXR-TB1d.js → index-BCvy9BiK.js} +1886 -1886
  125. package/dist/{index-DXR-TB1d.js.map → index-BCvy9BiK.js.map} +1 -1
  126. package/dist/{index-dmBn99rF.js → index-BqLi4tOb.js} +908 -908
  127. package/dist/{index-dmBn99rF.js.map → index-BqLi4tOb.js.map} +1 -1
  128. package/dist/{index-B3c5pcHk.js → index-DllfJcv4.js} +32 -32
  129. package/dist/{index-B3c5pcHk.js.map → index-DllfJcv4.js.map} +1 -1
  130. package/dist/{index-Ck15_vKo.js → index-xaEX581l.js} +481 -481
  131. package/dist/{index-Ck15_vKo.js.map → index-xaEX581l.js.map} +1 -1
  132. package/dist/index.js +53 -51
  133. package/dist/index.js.map +1 -1
  134. package/dist/{react.esm-CMg7bmSn.js → react.esm-PmLHNn73.js} +3 -3
  135. package/dist/{react.esm-CMg7bmSn.js.map → react.esm-PmLHNn73.js.map} +1 -1
  136. package/dist/setupTests.js +1 -1
  137. package/dist/storybook__react.d.js +2 -2
  138. package/dist/{test-utils-B2AIdiiO.js → test-utils-grX3FDss.js} +157 -157
  139. package/dist/{test-utils-B2AIdiiO.js.map → test-utils-grX3FDss.js.map} +1 -1
  140. package/package.json +6 -6
  141. package/dist/LexicalList.prod-pZmYrwOC.js.map +0 -1
  142. package/dist/LexicalSelection.prod-DkvWlcln.js +0 -90
  143. package/dist/SelectListbox.module-BD2qbcmZ.js.map +0 -1
@@ -1,7 +1,7 @@
1
- import { jsxs as f, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as f, jsx as a } from "react/jsx-runtime";
2
2
  import { c as i } from "../../../../clsx-OuTLNxxd.js";
3
3
  import { o as h } from "../../../../LexicalComposerContext.prod-DLlRM5wP.js";
4
- import { aq as _, ar as y, as as C, at as k } from "../../../../Lexical.prod-CWyHQUEM.js";
4
+ import { aq as _, ar as y, as as C, at as k } from "../../../../Lexical.prod-D8x7Ii0F.js";
5
5
  import { useState as s, useEffect as m } from "react";
6
6
  import { Icon as n } from "../../../Icon/Icon.js";
7
7
  import "../../../Buttons/Button.js";
@@ -17,46 +17,46 @@ import "../../../IconButton/IconButton.js";
17
17
  import "../../../Input/Input.js";
18
18
  import "../../../InputField/InputField.js";
19
19
  import "react-router";
20
- import "../../../../TablePlugin-Ba6PaBhf.js";
20
+ import "../../../../TablePlugin-WOgWan8s.js";
21
21
  import { s as r } from "../../../../RteEditor.module-oFMKEW6f.js";
22
22
  import { useTranslation as x } from "../../hooks/useTranslation.js";
23
23
  import "../LinkPlugin/LinkContextMenu/LinkContextMenu.js";
24
24
  import "../../hooks/components/Flyout.js";
25
25
  import "../../Providers/LanguageProvider.js";
26
- import "../../../../index-B3c5pcHk.js";
26
+ import "../../../../index-DllfJcv4.js";
27
27
  import "../../../SelectListbox/SelectListbox.js";
28
28
  import "../../../SelectListbox/SelectProvider.js";
29
29
  import "../../../Sortable/components/SortableItem.js";
30
- import "../../../../SortableProvider-Ck_XnBVq.js";
30
+ import "../../../../SortableProvider-DZggDO3M.js";
31
31
  const Z = () => {
32
- const o = x(), [t] = h(), [d, p] = s(!1), [l, u] = s(!1), c = () => {
32
+ const o = x(), [t] = h(), [p, d] = s(!1), [l, c] = s(!1), u = () => {
33
33
  t.dispatchCommand(C, void 0);
34
34
  }, b = () => {
35
35
  t.dispatchCommand(k, void 0);
36
36
  };
37
37
  return m(() => t.registerCommand(
38
38
  _,
39
- (a) => (p(a), !1),
39
+ (e) => (d(e), !1),
40
40
  1
41
41
  ), [t]), m(() => t.registerCommand(
42
42
  y,
43
- (a) => (u(a), !1),
43
+ (e) => (c(e), !1),
44
44
  1
45
45
  ), [t]), /* @__PURE__ */ f("div", { className: r["editor__toolbar-button-group"], children: [
46
- /* @__PURE__ */ e(
46
+ /* @__PURE__ */ a(
47
47
  "button",
48
48
  {
49
- onClick: c,
49
+ onClick: u,
50
50
  className: i(r["editor__toolbar-button"], r["editor__toolbar-button--undo"]),
51
51
  "aria-label": o.aria.labels.undo,
52
52
  "aria-keyshortcuts": o.aria.keyshortcuts.undo,
53
- disabled: !d,
53
+ disabled: !p,
54
54
  title: o.format.undoTooltip,
55
55
  type: "button",
56
- children: /* @__PURE__ */ e(n, { name: "StepBack", size: 24 })
56
+ children: /* @__PURE__ */ a(n, { name: "StepBack", size: 24 })
57
57
  }
58
58
  ),
59
- /* @__PURE__ */ e(
59
+ /* @__PURE__ */ a(
60
60
  "button",
61
61
  {
62
62
  onClick: b,
@@ -66,7 +66,7 @@ const Z = () => {
66
66
  disabled: !l,
67
67
  title: o.format.redoTooltip,
68
68
  type: "button",
69
- children: /* @__PURE__ */ e(n, { name: "StepForwards", size: 24 })
69
+ children: /* @__PURE__ */ a(n, { name: "StepForwards", size: 24 })
70
70
  }
71
71
  )
72
72
  ] });
@@ -1,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { A as D } from "../../../../../TablePlugin-Ba6PaBhf.js";
4
- import "../../../../../helpers-BUwfVZhW.js";
3
+ import { A as D } from "../../../../../TablePlugin-WOgWan8s.js";
4
+ import "../../../../../helpers-E_SsILnP.js";
5
5
  import "../../../../Icon/Icon.js";
6
6
  import "../../../../Buttons/Button.js";
7
7
  import "../../../../Buttons/LinkButton.js";
@@ -23,11 +23,11 @@ import "../../../hooks/useTranslation.js";
23
23
  import "../LinkContextMenu/LinkContextMenu.js";
24
24
  import "../../../hooks/components/Flyout.js";
25
25
  import "../../../Providers/LanguageProvider.js";
26
- import "../../../../../index-B3c5pcHk.js";
26
+ import "../../../../../index-DllfJcv4.js";
27
27
  import "../../../../SelectListbox/SelectListbox.js";
28
28
  import "../../../../SelectListbox/SelectProvider.js";
29
29
  import "../../../../Sortable/components/SortableItem.js";
30
- import "../../../../../SortableProvider-Ck_XnBVq.js";
30
+ import "../../../../../SortableProvider-DZggDO3M.js";
31
31
  export {
32
32
  D as AddLinkForm
33
33
  };
@@ -1,6 +1,6 @@
1
1
  import { jsxs as k, Fragment as v, jsx as n } from "react/jsx-runtime";
2
2
  import { forwardRef as K, useState as b, useRef as N, useImperativeHandle as T, useLayoutEffect as g } from "react";
3
- import { e as E } from "../../../../../helpers-BUwfVZhW.js";
3
+ import { e as E } from "../../../../../helpers-E_SsILnP.js";
4
4
  import { Icon as m } from "../../../../Icon/Icon.js";
5
5
  import { useTranslation as R } 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 X } from "react/jsx-runtime";
2
2
  import { o as Y } 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-DbxnRszt.js";
4
+ import { p as U, k as G, N as J } from "../../../../LexicalLink.prod-CkldFE8u.js";
5
5
  import { useRef as a, useState as Q, useEffect as m } from "react";
6
- import { W as Z, a as f, j as $, ap as tt, c as N, N as et, g as ot, X as rt } from "../../../../Lexical.prod-CWyHQUEM.js";
7
- import { A as nt } from "../../../../TablePlugin-Ba6PaBhf.js";
8
- import { e as it } from "../../../../helpers-BUwfVZhW.js";
6
+ import { W as Z, a as f, j as $, ap as tt, c as N, N as et, g as ot, X as rt } from "../../../../Lexical.prod-D8x7Ii0F.js";
7
+ import { A as nt } from "../../../../TablePlugin-WOgWan8s.js";
8
+ import { e as it } from "../../../../helpers-E_SsILnP.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";
@@ -26,11 +26,11 @@ import { setScrollableContainers as z, removeScrollableContainers as at } from "
26
26
  import { s as h } from "../../../../RteEditor.module-oFMKEW6f.js";
27
27
  import { useTranslation as ut } from "../../hooks/useTranslation.js";
28
28
  import "../../Providers/LanguageProvider.js";
29
- import "../../../../index-B3c5pcHk.js";
29
+ import "../../../../index-DllfJcv4.js";
30
30
  import "../../../SelectListbox/SelectListbox.js";
31
31
  import "../../../SelectListbox/SelectProvider.js";
32
32
  import "../../../Sortable/components/SortableItem.js";
33
- import "../../../../SortableProvider-Ck_XnBVq.js";
33
+ import "../../../../SortableProvider-DZggDO3M.js";
34
34
  const mt = 200, I = (p) => {
35
35
  let n = p;
36
36
  for (; n; ) {
@@ -52,7 +52,7 @@ const mt = 200, I = (p) => {
52
52
  }
53
53
  return !1;
54
54
  }, Wt = ({ parentScrollPosition: p }) => {
55
- const n = ut(), [c] = Y(), { flyout: j, showFlyout: _, hideFlyout: C, isVisible: u } = ct(), d = a(void 0), w = a(!1), y = a(""), g = a(""), [L, A] = Q({ active: !1, url: "", linktext: "" }), P = a(u), x = a(null), S = a(null), T = a(void 0), b = () => {
55
+ const n = ut(), [c] = Y(), { flyout: j, showFlyout: _, hideFlyout: C, isVisible: u } = ct(), d = a(void 0), w = a(!1), v = a(""), g = a(""), [y, A] = Q({ active: !1, url: "", linktext: "" }), P = a(u), x = a(null), S = a(null), T = a(void 0), L = () => {
56
56
  c.update(() => {
57
57
  const e = f();
58
58
  x.current = e;
@@ -81,11 +81,11 @@ const mt = 200, I = (p) => {
81
81
  }, F = () => {
82
82
  var t;
83
83
  const e = (t = S.current) == null ? void 0 : t.getBoundingClientRect();
84
- !w.current && e && (b(), _({ position: { top: e.bottom, left: e.left }, ...V }), setTimeout(() => {
84
+ !w.current && e && (L(), _({ position: { top: e.bottom, left: e.left }, ...V }), setTimeout(() => {
85
85
  var o;
86
86
  return (o = d.current) == null ? void 0 : o.setDefaults("", g.current);
87
87
  }, 0));
88
- }, v = () => {
88
+ }, b = () => {
89
89
  C(), R();
90
90
  }, K = (e, t) => {
91
91
  c.update(() => {
@@ -97,14 +97,14 @@ const mt = 200, I = (p) => {
97
97
  const l = rt(t);
98
98
  s.replace(l), l.select();
99
99
  }
100
- if (t !== y.current && y.current === "") {
100
+ if (t !== v.current && v.current === "") {
101
101
  const { anchor: l, focus: E } = o;
102
102
  o.insertText(t), l.offset -= t.length, E.offset = l.offset + t.length;
103
103
  }
104
104
  }
105
105
  J(it(e), { target: "_blank" });
106
106
  }
107
- v();
107
+ b();
108
108
  });
109
109
  }, M = () => {
110
110
  c.dispatchCommand(G, null), D();
@@ -112,8 +112,8 @@ const mt = 200, I = (p) => {
112
112
  children: /* @__PURE__ */ k(
113
113
  nt,
114
114
  {
115
- isLink: L,
116
- onCloseHandler: v,
115
+ isLink: y,
116
+ onCloseHandler: b,
117
117
  onSaveHandler: (e, t) => K(e, t),
118
118
  ref: d
119
119
  }
@@ -121,7 +121,7 @@ const mt = 200, I = (p) => {
121
121
  };
122
122
  return m(() => {
123
123
  var e, t;
124
- u ? (w.current = !0, (t = d.current) == null || t.focusFirstField()) : ((e = d.current) == null || e.clearForm(), y.current = g.current = "", setTimeout(() => w.current = !1, mt));
124
+ u ? (w.current = !0, (t = d.current) == null || t.focusFirstField()) : ((e = d.current) == null || e.clearForm(), v.current = g.current = "", setTimeout(() => w.current = !1, mt));
125
125
  }, [d, u]), m(() => {
126
126
  const e = (r) => {
127
127
  if (N(r) && r.isCollapsed()) {
@@ -143,7 +143,7 @@ const mt = 200, I = (p) => {
143
143
  $,
144
144
  (r) => {
145
145
  const i = f();
146
- return b(), r.preventDefault(), r.stopPropagation(), r.stopImmediatePropagation(), e(i), !1;
146
+ return L(), r.preventDefault(), r.stopPropagation(), r.stopImmediatePropagation(), e(i), !1;
147
147
  },
148
148
  0
149
149
  );
@@ -156,7 +156,7 @@ const mt = 200, I = (p) => {
156
156
  (o) => {
157
157
  if (o.ctrlKey && o.shiftKey && o.key === "U") {
158
158
  const r = f();
159
- if (b(), !N(r))
159
+ if (L(), !N(r))
160
160
  return !1;
161
161
  const i = O(r.anchor.getNode()), s = (E = "", W = "") => {
162
162
  F(), setTimeout(() => {
@@ -165,7 +165,7 @@ const mt = 200, I = (p) => {
165
165
  }, 0);
166
166
  };
167
167
  if (i)
168
- return o.preventDefault(), o.stopPropagation(), o.stopImmediatePropagation(), y.current = i.linktext, s(i.url, i.linktext), !0;
168
+ return o.preventDefault(), o.stopPropagation(), o.stopImmediatePropagation(), v.current = i.linktext, s(i.url, i.linktext), !0;
169
169
  const l = r.getTextContent();
170
170
  return l !== "" ? (g.current = l, s("", g.current), !0) : (F(), !0);
171
171
  }
@@ -176,7 +176,7 @@ const mt = 200, I = (p) => {
176
176
  A(
177
177
  o.read(() => {
178
178
  const r = f();
179
- if (b(), N(r)) {
179
+ if (L(), N(r)) {
180
180
  const i = r.anchor.getNode(), s = I(i);
181
181
  if (s)
182
182
  return {
@@ -200,11 +200,11 @@ const mt = 200, I = (p) => {
200
200
  var e;
201
201
  P.current = u, u || (e = T.current) == null || e.clearForm();
202
202
  }, [u]), m(() => {
203
- u && v();
203
+ u && b();
204
204
  }, [p]), m(() => {
205
- L.active || C();
206
- }, [L]), m(() => {
207
- const e = (o) => (z(t), o.key === "Escape" && P.current && (o.preventDefault(), o.stopPropagation(), v()), !0);
205
+ y.active || C();
206
+ }, [y]), m(() => {
207
+ const e = (o) => (z(t), o.key === "Escape" && P.current && (o.preventDefault(), o.stopPropagation(), b()), !0);
208
208
  window.addEventListener("keydown", e, { capture: !0 });
209
209
  const t = () => {
210
210
  C();
@@ -221,7 +221,7 @@ const mt = 200, I = (p) => {
221
221
  className: q(
222
222
  h["editor__toolbar-button"],
223
223
  h["editor__toolbar-button--link"],
224
- L.active && h["editor__toolbar-button--active"]
224
+ y.active && h["editor__toolbar-button--active"]
225
225
  ),
226
226
  "aria-label": n.aria.labels.link,
227
227
  "aria-keyshortcuts": n.aria.keyshortcuts.link,
@@ -1,4 +1,4 @@
1
- import { M as e, e as r, a as s, v as l } from "../../../../helpers-BUwfVZhW.js";
1
+ import { M as e, e as r, a as s, v as l } from "../../../../helpers-E_SsILnP.js";
2
2
  export {
3
3
  e as MATCHERS,
4
4
  r as ensureHttps,
@@ -1,66 +1,66 @@
1
1
  import { jsx as d } from "react/jsx-runtime";
2
- import { o as I } from "../../../../LexicalComposerContext.prod-DLlRM5wP.js";
3
- import { C as N, y as P, _ as k, n as K, a as f, c as E } from "../../../../LexicalList.prod-pZmYrwOC.js";
4
- import { _ as O } from "../../../../LexicalSelection.prod-DkvWlcln.js";
5
- import { useState as p, useEffect as y } from "react";
6
- import { c as w } from "../../../../clsx-OuTLNxxd.js";
7
- import { ap as x, N as U, S as v, a as b, c as h, E as B, T } from "../../../../Lexical.prod-CWyHQUEM.js";
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";
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
8
  import { Icon as $ } from "../../../Icon/Icon.js";
9
- import { s as u } from "../../../../RteEditor.module-oFMKEW6f.js";
9
+ import { s as l } from "../../../../RteEditor.module-oFMKEW6f.js";
10
10
  import { useTranslation as j } from "../../hooks/useTranslation.js";
11
11
  const z = {
12
12
  bullet: "BulletList",
13
13
  number: "NumberedList"
14
14
  }, Y = ["bullet", "number"], W = () => {
15
- const l = j(), [e] = I(), [g, s] = p("paragraph"), [c, _] = p(!1), [m, L] = p(!1), S = () => {
15
+ const c = j(), [e] = D(), [g, s] = p("paragraph"), [u, _] = p(!1), [m, L] = p(!1), y = () => {
16
16
  e.update(() => {
17
17
  const t = b();
18
- h(t) && O(t, () => T());
18
+ h(t) && E(t, () => T());
19
19
  });
20
- }, D = (t) => {
21
- t === "number" && g !== "number" ? (e.dispatchCommand(P, void 0), s("number")) : t === "bullet" && g !== "bullet" ? (e.dispatchCommand(k, void 0), s("bullet")) : (S(), s("paragraph"));
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"));
22
22
  };
23
- return y(() => {
23
+ return k(() => {
24
24
  const t = e.registerCommand(
25
- x,
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(), c ? e.dispatchCommand(N, void 0) : e.dispatchCommand(k, void 0), !0) : !1,
27
- U
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
28
28
  );
29
29
  return () => {
30
30
  t();
31
31
  };
32
- }, [e, m, c]), y(() => {
32
+ }, [e, m, u]), k(() => {
33
33
  e.registerCommand(
34
- v,
34
+ U,
35
35
  (r) => (r.preventDefault(), e.update(() => {
36
- const i = b();
37
- if (!h(i))
36
+ const n = b();
37
+ if (!h(n))
38
38
  return;
39
- const o = i.anchor.getNode(), n = o.getParent();
40
- if (!K(n))
39
+ const o = n.anchor.getNode(), i = o.getParent();
40
+ if (!I(i))
41
41
  return;
42
- const a = n.getParent();
42
+ const a = i.getParent();
43
43
  if (f(a)) {
44
- const C = E(f(a) ? a.getListType() : "bullet");
45
- n.append(C), C.append(o);
44
+ const C = K(f(a) ? a.getListType() : "bullet");
45
+ i.append(C), C.append(o);
46
46
  }
47
47
  }), !0),
48
48
  B
49
49
  );
50
50
  const t = e.registerUpdateListener(({ editorState: r }) => {
51
51
  r.read(() => {
52
- const i = b();
53
- if (h(i)) {
54
- let o = i.anchor.getNode();
52
+ const n = b();
53
+ if (h(n)) {
54
+ let o = n.anchor.getNode();
55
55
  for (; o !== null; ) {
56
56
  if (f(o)) {
57
57
  const a = o.getTag();
58
58
  _(a === "ul"), L(a === "ol"), a === "ul" && s("bullet"), a === "ol" && s("number");
59
59
  return;
60
60
  }
61
- const n = o.getParent();
62
- if (n === null) break;
63
- o = n;
61
+ const i = o.getParent();
62
+ if (i === null) break;
63
+ o = i;
64
64
  }
65
65
  _(!1), L(!1), s("paragraph");
66
66
  }
@@ -70,19 +70,19 @@ const z = {
70
70
  return () => {
71
71
  t();
72
72
  };
73
- }, [e]), /* @__PURE__ */ d("div", { className: u["editor__toolbar-button-group"], children: Y.map((t) => /* @__PURE__ */ d(
73
+ }, [e]), /* @__PURE__ */ d("div", { className: l["editor__toolbar-button-group"], children: Y.map((t) => /* @__PURE__ */ d(
74
74
  "button",
75
75
  {
76
- onClick: () => D(t),
77
- title: l.format[`${t}Tooltip`],
78
- className: w(
79
- u["editor__toolbar-button"],
80
- u[`editor__toolbar-button--${t}`],
81
- t === "bullet" && c && u["editor__toolbar-button--active"],
82
- t === "number" && m && u["editor__toolbar-button--active"]
76
+ onClick: () => S(t),
77
+ title: c.format[`${t}Tooltip`],
78
+ className: O(
79
+ l["editor__toolbar-button"],
80
+ l[`editor__toolbar-button--${t}`],
81
+ t === "bullet" && u && l["editor__toolbar-button--active"],
82
+ t === "number" && m && l["editor__toolbar-button--active"]
83
83
  ),
84
- "aria-label": l.aria.labels[t],
85
- "aria-keyshortcuts": l.aria.keyshortcuts[t],
84
+ "aria-label": c.aria.labels[t],
85
+ "aria-keyshortcuts": c.aria.keyshortcuts[t],
86
86
  type: "button",
87
87
  children: /* @__PURE__ */ d($, { name: z[t], size: 24 })
88
88
  },
@@ -1,9 +1,9 @@
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-CWyHQUEM.js";
4
- import { L as i } from "../../../../LexicalUtils.prod-Dny9Fu94.js";
5
- import { D as d } from "../../../../LexicalClipboard.prod-DbqSWANZ.js";
6
- import { d as D } from "../../../../index-B3c5pcHk.js";
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";
6
+ import { d as D } from "../../../../index-DllfJcv4.js";
7
7
  const L = () => {
8
8
  const [e] = m(), l = (t) => {
9
9
  t.preventDefault(), e.update(() => {
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { b as B } from "../../../../TablePlugin-Ba6PaBhf.js";
3
+ import { b as B } from "../../../../TablePlugin-WOgWan8s.js";
4
4
  import "../../../Buttons/Button.js";
5
5
  import "../../../Buttons/LinkButton.js";
6
6
  import "@react-aria/button";
@@ -21,11 +21,11 @@ import "../../hooks/useTranslation.js";
21
21
  import "../LinkPlugin/LinkContextMenu/LinkContextMenu.js";
22
22
  import "../../hooks/components/Flyout.js";
23
23
  import "../../Providers/LanguageProvider.js";
24
- import "../../../../index-B3c5pcHk.js";
24
+ import "../../../../index-DllfJcv4.js";
25
25
  import "../../../SelectListbox/SelectListbox.js";
26
26
  import "../../../SelectListbox/SelectProvider.js";
27
27
  import "../../../Sortable/components/SortableItem.js";
28
- import "../../../../SortableProvider-Ck_XnBVq.js";
28
+ import "../../../../SortableProvider-DZggDO3M.js";
29
29
  export {
30
30
  B as AddTableForm
31
31
  };
@@ -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-C6duSS2P.js";
5
- import "../../../../Lexical.prod-CWyHQUEM.js";
4
+ import "../../../../LexicalTable.prod-rZbTmo9K.js";
5
+ import "../../../../Lexical.prod-D8x7Ii0F.js";
6
6
  import "react";
7
- import { T as F } from "../../../../TablePlugin-Ba6PaBhf.js";
7
+ import { T as F } from "../../../../TablePlugin-WOgWan8s.js";
8
8
  import "./helpers.js";
9
9
  import "../../hooks/useFlyout.js";
10
10
  import "../../../Icon/Icon.js";
@@ -25,11 +25,11 @@ import "../../../../RteEditor.module-oFMKEW6f.js";
25
25
  import "../../hooks/useTranslation.js";
26
26
  import "../LinkPlugin/LinkContextMenu/LinkContextMenu.js";
27
27
  import "../../Providers/LanguageProvider.js";
28
- import "../../../../index-B3c5pcHk.js";
28
+ import "../../../../index-DllfJcv4.js";
29
29
  import "../../../SelectListbox/SelectListbox.js";
30
30
  import "../../../SelectListbox/SelectProvider.js";
31
31
  import "../../../Sortable/components/SortableItem.js";
32
- import "../../../../SortableProvider-Ck_XnBVq.js";
32
+ import "../../../../SortableProvider-DZggDO3M.js";
33
33
  export {
34
34
  F as TablePlugin
35
35
  };
@@ -1,5 +1,5 @@
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-C6duSS2P.js";
2
- import { T as u } from "../../../../Lexical.prod-CWyHQUEM.js";
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
3
  const b = 100, P = (e, n) => {
4
4
  const t = I(0, 0, !1);
5
5
  for (let o = 0; o < e; o++) {
@@ -1,4 +1,4 @@
1
- import { T as o } from "../../../../TablePlugin-Ba6PaBhf.js";
1
+ import { T as o } from "../../../../TablePlugin-WOgWan8s.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 L, 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-CWyHQUEM.js";
3
+ import { a as g, c as h, g as y } from "../../../../Lexical.prod-D8x7Ii0F.js";
4
4
  import { useState as C, useRef as E, useCallback as T, useEffect as m } from "react";
5
- import { L as w } from "../../../../LexicalTable.prod-C6duSS2P.js";
5
+ import { L as w } from "../../../../LexicalTable.prod-rZbTmo9K.js";
6
6
  import { BlockFormatPlugin as N } 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-Ba6PaBhf.js";
10
+ import { T as S } from "../../../../TablePlugin-WOgWan8s.js";
11
11
  import { TableCellContextMenu as z } from "../TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
12
12
  import { s as A } from "../../../../RteEditor.module-oFMKEW6f.js";
13
13
  import { setScrollableContainers as b, 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-Ba6PaBhf.js";
6
+ import { T as a } from "../../../TablePlugin-WOgWan8s.js";
7
7
  import { TableCellContextMenu as T } from "./TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
8
8
  export {
9
9
  l as BlockFormatPlugin,
@@ -1,18 +1,18 @@
1
1
  import { jsx as u } from "react/jsx-runtime";
2
2
  import { createContext as g, useContext as s, useState as i } from "react";
3
- const t = g(void 0), d = ({ children: e }) => {
4
- const [n, a] = i("en"), o = (r) => {
5
- a(r);
3
+ const t = g(void 0), x = ({ children: e }) => {
4
+ const [n, o] = i("en"), a = (r) => {
5
+ o(r);
6
6
  };
7
- return /* @__PURE__ */ u(t.Provider, { value: { language: n, switchLanguage: o }, children: e });
8
- }, x = () => {
7
+ return /* @__PURE__ */ u(t.Provider, { value: { language: n, switchLanguage: a }, children: e });
8
+ }, d = () => {
9
9
  const e = s(t);
10
10
  if (!e)
11
11
  throw new Error("useLanguage must be used within a LanguageProvider");
12
12
  return e;
13
13
  };
14
14
  export {
15
- d as LanguageProvider,
16
- x as useLanguage
15
+ x as LanguageProvider,
16
+ d as useLanguage
17
17
  };
18
18
  //# sourceMappingURL=LanguageProvider.js.map