@uva-glass/component-library 3.0.3 → 3.0.5

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 (121) hide show
  1. package/dist/{Lexical.prod-CQl7J8uU.js → Lexical.prod-DTADK2yJ.js} +1498 -1471
  2. package/dist/Lexical.prod-DTADK2yJ.js.map +1 -0
  3. package/dist/LexicalClipboard.prod-Dx5Fm6e5.js +258 -0
  4. package/dist/LexicalClipboard.prod-Dx5Fm6e5.js.map +1 -0
  5. package/dist/{LexicalComposerContext.prod-DxxjdrXB.js → LexicalComposerContext.prod-BCXERl09.js} +6 -7
  6. package/dist/{LexicalComposerContext.prod-DxxjdrXB.js.map → LexicalComposerContext.prod-BCXERl09.js.map} +1 -1
  7. package/dist/{LexicalLink.prod-D8-zZW0o.js → LexicalLink.prod-JpC4y56U.js} +25 -25
  8. package/dist/LexicalLink.prod-JpC4y56U.js.map +1 -0
  9. package/dist/LexicalList.prod-w0kSq9sB.js +579 -0
  10. package/dist/LexicalList.prod-w0kSq9sB.js.map +1 -0
  11. package/dist/LexicalSelection.prod-DQLHaigk.js +78 -0
  12. package/dist/LexicalSelection.prod-DQLHaigk.js.map +1 -0
  13. package/dist/{LexicalTable.prod-BvJxbarH.js → LexicalTable.prod-DjfZc87j.js} +352 -334
  14. package/dist/LexicalTable.prod-DjfZc87j.js.map +1 -0
  15. package/dist/{LexicalUtils.prod-D9KKqgU7.js → LexicalUtils.prod-BBwue2Aj.js} +39 -39
  16. package/dist/LexicalUtils.prod-BBwue2Aj.js.map +1 -0
  17. package/dist/{SortableProvider-RaH_ZXB3.js → SortableProvider-Ck_XnBVq.js} +10 -10
  18. package/dist/{SortableProvider-RaH_ZXB3.js.map → SortableProvider-Ck_XnBVq.js.map} +1 -1
  19. package/dist/{TablePlugin-CPEwD-wi.js → TablePlugin-Co5vgBHF.js} +87 -88
  20. package/dist/{TablePlugin-CPEwD-wi.js.map → TablePlugin-Co5vgBHF.js.map} +1 -1
  21. package/dist/__mocks__/fileMock.d.ts +2 -0
  22. package/dist/__mocks__/svgrMock.d.ts +3 -0
  23. package/dist/__mocks__/svgrMock.js +10 -0
  24. package/dist/__mocks__/svgrMock.js.map +1 -0
  25. package/dist/client-CTOhtEms.js +33 -0
  26. package/dist/client-CTOhtEms.js.map +1 -0
  27. package/dist/components/AccordionCard/AccordionCard.stories.js +1 -1
  28. package/dist/components/Buttons/Button.stories.js +2 -2
  29. package/dist/components/Buttons/LinkButton.stories.js +2 -2
  30. package/dist/components/Buttons/MenuButton.stories.js +2 -2
  31. package/dist/components/Checkbox/Checkbox.stories.js +1 -1
  32. package/dist/components/CheckboxButton/CheckboxButton.stories.js +1 -1
  33. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +1 -1
  34. package/dist/components/CheckboxTree/CheckboxTree.js +2 -2
  35. package/dist/components/CheckboxTree/CheckboxTree.stories.js +11 -11
  36. package/dist/components/Chip/Chip.stories.js +1 -1
  37. package/dist/components/Drawer/Drawer.stories.js +1 -1
  38. package/dist/components/FormInput/FormInput.js +3 -3
  39. package/dist/components/FormInput/FormInput.stories.js +1 -1
  40. package/dist/components/IconButton/IconButton.stories.js +1 -1
  41. package/dist/components/InputField/InputField.stories.js +3 -3
  42. package/dist/components/Label/Label.test.d.ts +0 -0
  43. package/dist/components/Label/Label.test.js +4257 -0
  44. package/dist/components/Label/Label.test.js.map +1 -0
  45. package/dist/components/ModalDialog/ModalDialog.stories.js +1 -1
  46. package/dist/components/MultiSelect/MultiSelect.js +1 -1
  47. package/dist/components/MultiSelect/MultiSelect.stories.js +2 -2
  48. package/dist/components/MultiSelect/components/MultiSelectHeader.js +2 -2
  49. package/dist/components/MultiSelect/index.js +1 -1
  50. package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +1 -1
  51. package/dist/components/OverlayStepBar/OverlayStepBar.js +2 -2
  52. package/dist/components/PeriodSelector/PeriodSelector.js +2 -2
  53. package/dist/components/PeriodSelector/PeriodSelector.stories.js +1 -1
  54. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +4 -4
  55. package/dist/components/Repeater/Repeater.stories.js +1 -1
  56. package/dist/components/RteEditor/EditorHeader/EditorHeader.js +2 -2
  57. package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +4 -4
  58. package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +4 -4
  59. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +3 -3
  60. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +1 -1
  61. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +48 -48
  62. package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
  63. package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +28 -28
  64. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +8 -8
  65. package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +2 -2
  66. package/dist/components/RteEditor/Plugins/TablePlugin/TableCellContextMenu/TableCellContextMenu.js +1 -1
  67. package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +5 -5
  68. package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +20 -20
  69. package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
  70. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +15 -15
  71. package/dist/components/RteEditor/Plugins/index.js +1 -1
  72. package/dist/components/RteEditor/Providers/LanguageProvider.js +3 -3
  73. package/dist/components/RteEditor/RteEditor.js +454 -454
  74. package/dist/components/RteEditor/RteEditor.js.map +1 -1
  75. package/dist/components/RteEditor/helpers.js +4 -4
  76. package/dist/components/RteEditor/hooks/components/Flyout.js +12 -13
  77. package/dist/components/RteEditor/hooks/components/Flyout.js.map +1 -1
  78. package/dist/components/SelectListbox/SelectListBox.stories.js +1 -1
  79. package/dist/components/SelectListbox/SelectListbox.js +8 -9
  80. package/dist/components/SelectListbox/SelectListbox.js.map +1 -1
  81. package/dist/components/SelectListbox/SelectProvider.js +3 -3
  82. package/dist/components/Sortable/Sortable.js +1 -1
  83. package/dist/components/Sortable/Sortable.stories.js +1 -1
  84. package/dist/components/Sortable/SortableProvider.js +1 -1
  85. package/dist/components/Sortable/actions.js +8 -8
  86. package/dist/components/Sortable/components/SortableContainer.js +1 -1
  87. package/dist/components/Sortable/components/SortableItem.js +1 -1
  88. package/dist/components/Spinner/Spinner.js +11 -12
  89. package/dist/components/Spinner/Spinner.js.map +1 -1
  90. package/dist/components/ToggleSwitch/ToggleSwitch.stories.js +1 -1
  91. package/dist/components/index.js +1 -1
  92. package/dist/{helpers-C_Mib4v3.js → helpers-DgTW1vIO.js} +33 -33
  93. package/dist/{helpers-C_Mib4v3.js.map → helpers-DgTW1vIO.js.map} +1 -1
  94. package/dist/index-BqHyOZsF.js +10322 -0
  95. package/dist/index-BqHyOZsF.js.map +1 -0
  96. package/dist/{index-Sh2oo6_C.js → index-DkNZhwJb.js} +399 -392
  97. package/dist/index-DkNZhwJb.js.map +1 -0
  98. package/dist/index.js +1 -1
  99. package/dist/react-18-CcyoHPTJ.js +38 -0
  100. package/dist/react-18-CcyoHPTJ.js.map +1 -0
  101. package/dist/setupTests.d.ts +0 -0
  102. package/dist/setupTests.js +1573 -0
  103. package/dist/setupTests.js.map +1 -0
  104. package/dist/storybook__react.d.js +538 -1657
  105. package/dist/storybook__react.d.js.map +1 -1
  106. package/dist/test-utils-CTqdUiUm.js +1126 -0
  107. package/dist/test-utils-CTqdUiUm.js.map +1 -0
  108. package/package.json +52 -33
  109. package/dist/Lexical.prod-CQl7J8uU.js.map +0 -1
  110. package/dist/LexicalClipboard.prod-C48GDxiy.js +0 -258
  111. package/dist/LexicalClipboard.prod-C48GDxiy.js.map +0 -1
  112. package/dist/LexicalLink.prod-D8-zZW0o.js.map +0 -1
  113. package/dist/LexicalList.prod-B4_DTbPB.js +0 -576
  114. package/dist/LexicalList.prod-B4_DTbPB.js.map +0 -1
  115. package/dist/LexicalSelection.prod-BU3GAQB4.js +0 -86
  116. package/dist/LexicalSelection.prod-BU3GAQB4.js.map +0 -1
  117. package/dist/LexicalTable.prod-BvJxbarH.js.map +0 -1
  118. package/dist/LexicalUtils.prod-D9KKqgU7.js.map +0 -1
  119. package/dist/index-Sh2oo6_C.js.map +0 -1
  120. package/dist/react-18-C9Y1Flwa.js +0 -65
  121. package/dist/react-18-C9Y1Flwa.js.map +0 -1
@@ -1,24 +1,24 @@
1
- import { u as m } from "../../../../LexicalComposerContext.prod-DxxjdrXB.js";
1
+ import { u as m } from "../../../../LexicalComposerContext.prod-BCXERl09.js";
2
2
  import { useEffect as c } from "react";
3
- import { a1 as f, X as u, H as p } from "../../../../Lexical.prod-CQl7J8uU.js";
4
- import { c as i } from "../../../../LexicalUtils.prod-D9KKqgU7.js";
5
- import { N as d } from "../../../../LexicalClipboard.prod-C48GDxiy.js";
3
+ import { a1 as d, Y as f, q as u } from "../../../../Lexical.prod-DTADK2yJ.js";
4
+ import { d as i } from "../../../../LexicalUtils.prod-BBwue2Aj.js";
5
+ import { N as p } from "../../../../LexicalClipboard.prod-Dx5Fm6e5.js";
6
6
  import { d as D } from "../../../../index-B3c5pcHk.js";
7
7
  const g = () => {
8
8
  const [a] = m(), l = (t) => {
9
9
  t.preventDefault(), a.update(() => {
10
- const r = p(), n = i(t, InputEvent) || i(t, KeyboardEvent) ? null : t.clipboardData;
10
+ const r = u(), n = i(t, InputEvent) || i(t, KeyboardEvent) ? null : t.clipboardData;
11
11
  if (n != null && r !== null) {
12
12
  const e = n.getData("text/html"), o = new DataTransfer(), s = new D.MSWordNormalizer();
13
- o.setData("text/html", e), s.isActive(e) && o.setData("text/html", s.normalize(e)), d(o, r, a);
13
+ o.setData("text/html", e), s.isActive(e) && o.setData("text/html", s.normalize(e)), p(o, r, a);
14
14
  }
15
15
  });
16
16
  };
17
17
  return c(() => {
18
18
  const t = a.registerCommand(
19
- f,
19
+ d,
20
20
  (r) => r instanceof ClipboardEvent ? (l(r), !0) : !1,
21
- u
21
+ f
22
22
  );
23
23
  return () => {
24
24
  t();
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { b as B } from "../../../../TablePlugin-CPEwD-wi.js";
3
+ import { b as B } from "../../../../TablePlugin-Co5vgBHF.js";
4
4
  import "../../../Buttons/Button.js";
5
5
  import "../../../Buttons/LinkButton.js";
6
6
  import "@react-aria/button";
@@ -25,7 +25,7 @@ import "../../../../index-B3c5pcHk.js";
25
25
  import "../../../SelectListbox/SelectListbox.js";
26
26
  import "../../../SelectListbox/SelectProvider.js";
27
27
  import "../../../Sortable/components/SortableItem.js";
28
- import "../../../../SortableProvider-RaH_ZXB3.js";
28
+ import "../../../../SortableProvider-Ck_XnBVq.js";
29
29
  export {
30
30
  B as AddTableForm
31
31
  };
@@ -1,7 +1,7 @@
1
1
  import { jsxs as y, jsx as e } from "react/jsx-runtime";
2
2
  import { useState as _, useRef as b, useEffect as R } from "react";
3
3
  import { c as w } from "../../../../../clsx-OuTLNxxd.js";
4
- import { u as P } from "../../../../../LexicalComposerContext.prod-DxxjdrXB.js";
4
+ import { u as P } from "../../../../../LexicalComposerContext.prod-BCXERl09.js";
5
5
  import { Icon as $ } from "../../../../Icon/Icon.js";
6
6
  import { useTranslation as H } from "../../../hooks/useTranslation.js";
7
7
  import '../../../../../assets/TableCellContextMenu.css';const n = {
@@ -1,10 +1,10 @@
1
1
  import "react/jsx-runtime";
2
- import "../../../../LexicalComposerContext.prod-DxxjdrXB.js";
2
+ import "../../../../LexicalComposerContext.prod-BCXERl09.js";
3
3
  import "../../../../clsx-OuTLNxxd.js";
4
- import "../../../../LexicalTable.prod-BvJxbarH.js";
5
- import "../../../../Lexical.prod-CQl7J8uU.js";
4
+ import "../../../../LexicalTable.prod-DjfZc87j.js";
5
+ import "../../../../Lexical.prod-DTADK2yJ.js";
6
6
  import "react";
7
- import { T as F } from "../../../../TablePlugin-CPEwD-wi.js";
7
+ import { T as F } from "../../../../TablePlugin-Co5vgBHF.js";
8
8
  import "./helpers.js";
9
9
  import "../../hooks/useFlyout.js";
10
10
  import "../../../Icon/Icon.js";
@@ -29,7 +29,7 @@ import "../../../../index-B3c5pcHk.js";
29
29
  import "../../../SelectListbox/SelectListbox.js";
30
30
  import "../../../SelectListbox/SelectProvider.js";
31
31
  import "../../../Sortable/components/SortableItem.js";
32
- import "../../../../SortableProvider-RaH_ZXB3.js";
32
+ import "../../../../SortableProvider-Ck_XnBVq.js";
33
33
  export {
34
34
  F as TablePlugin
35
35
  };
@@ -1,11 +1,11 @@
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-BvJxbarH.js";
2
- import { V as g } from "../../../../Lexical.prod-CQl7J8uU.js";
1
+ import { R as d, g as h, F as m, L as S, v as w, O as v, d as C, _ as p, x as E } from "../../../../LexicalTable.prod-DjfZc87j.js";
2
+ import { j as g } from "../../../../Lexical.prod-DTADK2yJ.js";
3
3
  const b = 100, F = (e, n) => {
4
- const t = S(0, 0, !1);
4
+ const t = E(0, 0, !1);
5
5
  for (let o = 0; o < e; o++) {
6
- const r = h();
6
+ const r = p();
7
7
  for (let l = 0; l < n; l++) {
8
- const s = d(0, void 0, b / n);
8
+ const s = C(0, void 0, b / n);
9
9
  s.append(g()), r.append(s);
10
10
  }
11
11
  t.append(r);
@@ -17,12 +17,12 @@ const b = 100, F = (e, n) => {
17
17
  const r = t.getFirstDescendant();
18
18
  r && r.select();
19
19
  }
20
- }, O = (e) => {
21
- C(e).remove();
20
+ }, I = (e) => {
21
+ d(e).remove();
22
22
  }, L = (e, n) => {
23
- const t = h(), o = w(e), r = o.getChildrenSize();
23
+ const t = p(), o = w(e), r = o.getChildrenSize();
24
24
  for (let s = 0; s < r; s++) {
25
- const c = d(0);
25
+ const c = C(0);
26
26
  c.append(g()), t.append(c);
27
27
  }
28
28
  n === "insertRowAbove" ? o.insertBefore(t) : o.insertAfter(t);
@@ -30,18 +30,18 @@ const b = 100, F = (e, n) => {
30
30
  l && l.select();
31
31
  }, z = (e, n) => {
32
32
  const t = w(e);
33
- if (!m(e))
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 = C(e);
36
- let s = p(e);
35
+ const o = v(e), r = t.getChildren().length, l = d(e);
36
+ let s = m(e);
37
37
  const c = l.getChildren(), R = c.length;
38
38
  for (let i = 0; i < R; i++) {
39
- const a = d(0);
39
+ const a = C(0);
40
40
  a.append(g());
41
41
  const f = c[i].getChildren()[s];
42
- f && (n === "insertColumnLeft" ? f.insertBefore(a) : f.insertAfter(a)), c.forEach((T) => {
43
- T.getChildren().forEach((x) => {
44
- x.setWidth(b / r);
42
+ f && (n === "insertColumnLeft" ? f.insertBefore(a) : f.insertAfter(a)), c.forEach((x) => {
43
+ x.getChildren().forEach((T) => {
44
+ T.setWidth(b / r);
45
45
  });
46
46
  });
47
47
  }
@@ -50,16 +50,16 @@ const b = 100, F = (e, n) => {
50
50
  u && u.select();
51
51
  }, P = (e) => {
52
52
  var r;
53
- if (!m(e))
53
+ if (!h(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 = p(e);
56
- t === 1 ? O(e) : I(n, o);
55
+ const n = d(e), t = ((r = n.getFirstChild()) == null ? void 0 : r.getChildrenSize()) || 0, o = m(e);
56
+ t === 1 ? I(e) : S(n, o);
57
57
  };
58
58
  export {
59
59
  F as createTable,
60
60
  P as deleteColumn,
61
61
  A as deleteRow,
62
- O as deleteTable,
62
+ I as deleteTable,
63
63
  z as insertColumn,
64
64
  L as insertRow
65
65
  };
@@ -1,4 +1,4 @@
1
- import { T as o } from "../../../../TablePlugin-CPEwD-wi.js";
1
+ import { T as o } from "../../../../TablePlugin-Co5vgBHF.js";
2
2
  import { TableCellContextMenu as t } from "./TableCellContextMenu/TableCellContextMenu.js";
3
3
  export {
4
4
  t as TableCellContextMenu,
@@ -1,18 +1,18 @@
1
- import { jsxs as P, jsx as n } from "react/jsx-runtime";
2
- import { u as y } from "../../../../LexicalComposerContext.prod-DxxjdrXB.js";
3
- import { H as h, a as g, M as C } from "../../../../Lexical.prod-CQl7J8uU.js";
4
- import { useState as L, useRef as E, useCallback as T, useEffect as m } from "react";
5
- import { v as b } from "../../../../LexicalTable.prod-BvJxbarH.js";
1
+ import { jsxs as L, jsx as n } from "react/jsx-runtime";
2
+ import { u as P } from "../../../../LexicalComposerContext.prod-BCXERl09.js";
3
+ import { q as h, a as g, c as y } from "../../../../Lexical.prod-DTADK2yJ.js";
4
+ import { useState as C, useRef as T, useCallback as E, useEffect as m } from "react";
5
+ import { T as b } from "../../../../LexicalTable.prod-DjfZc87j.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-CPEwD-wi.js";
10
+ import { T as S } from "../../../../TablePlugin-Co5vgBHF.js";
11
11
  import { TableCellContextMenu as z } from "../TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
12
12
  import { s as A } from "../../../../RteEditor.module-oFMKEW6f.js";
13
- import { setScrollableContainers as v, removeScrollableContainers as H } from "../../helpers.js";
13
+ import { setScrollableContainers as w, removeScrollableContainers as K } from "../../helpers.js";
14
14
  const Q = ({ editorScrollPosition: d }) => {
15
- const [t] = y(), [i, s] = L(null), u = E(null), f = T(() => {
15
+ const [t] = P(), [i, s] = C(null), u = T(null), f = E(() => {
16
16
  const e = h();
17
17
  if (g(e)) {
18
18
  const l = e.anchor.getNode(), a = b(l);
@@ -22,7 +22,7 @@ const Q = ({ editorScrollPosition: d }) => {
22
22
  } else
23
23
  s(null);
24
24
  }
25
- }, [t]), w = (e) => {
25
+ }, [t]), v = (e) => {
26
26
  var r;
27
27
  (r = u.current) == null || r.mutateTable(e);
28
28
  }, o = () => {
@@ -30,7 +30,7 @@ const Q = ({ editorScrollPosition: d }) => {
30
30
  const e = h();
31
31
  if (g(e)) {
32
32
  const l = e.anchor.getNode();
33
- b(l) && (C(null), s(null));
33
+ b(l) && (y(null), s(null));
34
34
  }
35
35
  });
36
36
  };
@@ -40,16 +40,16 @@ const Q = ({ editorScrollPosition: d }) => {
40
40
  f();
41
41
  });
42
42
  });
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);
43
+ }, [t, f]), m(() => (w(o), window.addEventListener("scroll", o), window.addEventListener("resize", o), () => {
44
+ window.removeEventListener("scroll", o), window.removeEventListener("resize", o), K(o);
45
45
  }), [t]), m(() => {
46
46
  const e = () => {
47
- v(o);
47
+ w(o);
48
48
  };
49
49
  return window.addEventListener("keydown", e, { capture: !0 }), () => {
50
50
  window.removeEventListener("keydown", e);
51
51
  };
52
- }, []), /* @__PURE__ */ P("div", { className: A.editor__toolbar, children: [
52
+ }, []), /* @__PURE__ */ L("div", { className: A.editor__toolbar, children: [
53
53
  /* @__PURE__ */ n(N, {}),
54
54
  /* @__PURE__ */ n(k, {}),
55
55
  /* @__PURE__ */ n(S, { isActive: !!i, ref: u }),
@@ -58,7 +58,7 @@ const Q = ({ editorScrollPosition: d }) => {
58
58
  {
59
59
  position: i,
60
60
  parentScrollPosition: d,
61
- onAction: w
61
+ onAction: v
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-CPEwD-wi.js";
6
+ import { T as a } from "../../../TablePlugin-Co5vgBHF.js";
7
7
  import { TableCellContextMenu as T } from "./TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
8
8
  export {
9
9
  l as BlockFormatPlugin,
@@ -1,12 +1,12 @@
1
1
  import { jsx as u } from "react/jsx-runtime";
2
- import { createContext as g, useState as s, useContext as i } from "react";
2
+ import { createContext as g, useContext as s, useState as i } from "react";
3
3
  const t = g(void 0), d = ({ children: e }) => {
4
- const [n, a] = s("en"), o = (r) => {
4
+ const [n, a] = i("en"), o = (r) => {
5
5
  a(r);
6
6
  };
7
7
  return /* @__PURE__ */ u(t.Provider, { value: { language: n, switchLanguage: o }, children: e });
8
8
  }, x = () => {
9
- const e = i(t);
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;