@uva-glass/component-library 3.53.13 → 3.53.15

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 (95) 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/assets/variables.css +4 -4
  22. package/dist/{chunk-2N4WE3KZ-DQvXvHLf.js → chunk-2N4WE3KZ-DiBZ4E0Z.js} +2 -2
  23. package/dist/{chunk-2N4WE3KZ-DQvXvHLf.js.map → chunk-2N4WE3KZ-DiBZ4E0Z.js.map} +1 -1
  24. package/dist/components/Buttons/Button.stories.js +1 -1
  25. package/dist/components/Buttons/LinkButton.stories.js +1 -1
  26. package/dist/components/Buttons/MenuButton.stories.js +1 -1
  27. package/dist/components/Checkbox/Checkbox.stories.js +1 -1
  28. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +1 -1
  29. package/dist/components/CheckboxTree/CheckboxTree.js +1 -1
  30. package/dist/components/CheckboxTree/CheckboxTree.stories.js +2 -2
  31. package/dist/components/Chip/Chip.stories.js +1 -1
  32. package/dist/components/ControlsButton/ControlsButton.stories.js +1 -1
  33. package/dist/components/Drawer/Drawer.stories.js +1 -1
  34. package/dist/components/FormInput/FormInput.js +1 -1
  35. package/dist/components/FormInput/FormInput.stories.js +1 -1
  36. package/dist/components/IconButton/IconButton.stories.js +1 -1
  37. package/dist/components/InputField/InputField.stories.js +2 -2
  38. package/dist/components/ModalDialog/ModalDialog.stories.js +1 -1
  39. package/dist/components/MultiSelect/MultiSelect.js +1 -1
  40. package/dist/components/MultiSelect/MultiSelect.stories.js +2 -2
  41. package/dist/components/MultiSelect/components/MultiSelectHeader.js +1 -1
  42. package/dist/components/MultiSelect/index.js +1 -1
  43. package/dist/components/MultiSelectBox/MultiSelectBox.stories.js +1 -1
  44. package/dist/components/Notification/Notification.stories.js +1 -1
  45. package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +1 -1
  46. package/dist/components/PeriodSelector/PeriodSelector.js +1 -1
  47. package/dist/components/PeriodSelector/PeriodSelector.stories.js +1 -1
  48. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +1 -1
  49. package/dist/components/RadioGroup/RadioGroup.stories.js +1 -1
  50. package/dist/components/RadioTabSelector/RadioTabSelector.js +1 -1
  51. package/dist/components/RadioTabSelector/RadioTabSelector.stories.js +1 -1
  52. package/dist/components/RteEditor/EditorHeader/EditorHeader.js +1 -1
  53. package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +8 -8
  54. package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/CourseCataloguePlugin.js +58 -58
  55. package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +4 -4
  56. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +1 -1
  57. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +61 -61
  58. package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
  59. package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +25 -25
  60. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +13 -13
  61. package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/TableCellResizerPlugin.js +4 -4
  62. package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/index.js +1 -1
  63. package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +1 -1
  64. package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +4 -4
  65. package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +24 -24
  66. package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
  67. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +29 -29
  68. package/dist/components/RteEditor/Plugins/index.js +2 -2
  69. package/dist/components/RteEditor/RteEditor.js +252 -252
  70. package/dist/components/RteEditor/RteEditor.js.map +1 -1
  71. package/dist/components/RteEditor/helpers.js +18 -18
  72. package/dist/components/RteEditor/nodes/CourseCatalogueNode/CourseCatalogueNode.js +19 -19
  73. package/dist/components/RteEditor/nodes/TableWrapperNode/TableWrapperNode.js +12 -12
  74. package/dist/components/SelectListbox/SelectListBox.stories.js +1 -1
  75. package/dist/components/Sortable/Sortable.stories.js +1 -1
  76. package/dist/components/TextArea/TextArea.stories.js +1 -1
  77. package/dist/components/ToggleSwitch/ToggleSwitch.stories.js +1 -1
  78. package/dist/components/VarIndicator/VarIndicator.stories.js +1 -1
  79. package/dist/components/index.js +1 -1
  80. package/dist/{index-1WwGCyua.js → index-B_q_4aBT.js} +89 -81
  81. package/dist/index-B_q_4aBT.js.map +1 -0
  82. package/dist/index.js +1 -1
  83. package/dist/storybook__react.d.js +2 -2
  84. package/package.json +30 -30
  85. package/dist/Lexical.prod-Dgzi-S1E.js.map +0 -1
  86. package/dist/LexicalExtension.prod-CNBWjmfs.js.map +0 -1
  87. package/dist/LexicalLink.prod-EEOzXxej.js +0 -502
  88. package/dist/LexicalLink.prod-EEOzXxej.js.map +0 -1
  89. package/dist/LexicalList.prod-DADZlhem.js +0 -627
  90. package/dist/LexicalList.prod-DADZlhem.js.map +0 -1
  91. package/dist/LexicalTable.prod-QpQxZNNH.js +0 -1814
  92. package/dist/LexicalTable.prod-QpQxZNNH.js.map +0 -1
  93. package/dist/LexicalUtils.prod-D1mwAww-.js +0 -114
  94. package/dist/LexicalUtils.prod-D1mwAww-.js.map +0 -1
  95. package/dist/index-1WwGCyua.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import { jsx as t, jsxs as a, Fragment as s } from "react/jsx-runtime";
2
- import { f as l } from "../../index-1WwGCyua.js";
2
+ import { f as l } from "../../index-B_q_4aBT.js";
3
3
  import { Button as n } from "./Button.js";
4
4
  const c = "<Button variant={variant} onClick={onClictFunction}>{children}</Button>", h = {
5
5
  title: "Atoms/Buttons/Button",
@@ -1,5 +1,5 @@
1
1
  import { jsx as t, jsxs as a, Fragment as l } from "react/jsx-runtime";
2
- import { f as s } from "../../index-1WwGCyua.js";
2
+ import { f as s } from "../../index-B_q_4aBT.js";
3
3
  import { BrowserRouter as c } from "react-router";
4
4
  import { LinkButton as n } from "./LinkButton.js";
5
5
  const d = `
@@ -1,5 +1,5 @@
1
1
  import { jsx as n, jsxs as s, Fragment as l } from "react/jsx-runtime";
2
- import { f as c } from "../../index-1WwGCyua.js";
2
+ import { f as c } from "../../index-B_q_4aBT.js";
3
3
  import { MenuButton as t } from "./MenuButton.js";
4
4
  const d = `
5
5
  // Has all LabelHTMLAttributes props available except "className" and "style"
@@ -1,5 +1,5 @@
1
1
  import { jsxs as g, jsx as o } from "react/jsx-runtime";
2
- import { f as e } from "../../index-1WwGCyua.js";
2
+ import { f as e } from "../../index-B_q_4aBT.js";
3
3
  import { Checkbox as n } from "./Checkbox.js";
4
4
  import { FormField as t } from "../FormField/FormField.js";
5
5
  import { Label as i } from "../Label/Label.js";
@@ -1,5 +1,5 @@
1
1
  import { jsx as e, jsxs as t, Fragment as l } from "react/jsx-runtime";
2
- import { f as o } from "../../index-1WwGCyua.js";
2
+ import { f as o } from "../../index-B_q_4aBT.js";
3
3
  import { CheckboxButtonBar as i } from "./CheckboxButtonBar.js";
4
4
  import { Periods as r } from "../Periods/Periods.js";
5
5
  const u = "<CheckboxButtonBar checkboxes={} defaultValues={} label={} labelPosition={} required={} notValidatedText={} disableGroup={} onSetValues={} />", B = {
@@ -18,7 +18,7 @@ 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 "../RteEditor/Providers/LanguageProvider.js";
23
23
  import "../RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
24
24
  import "../RteEditor/hooks/components/Flyout.js";
@@ -1,6 +1,6 @@
1
1
  import { jsx as d, jsxs as y } from "react/jsx-runtime";
2
- import { s as O, f as _ } from "../../index-1WwGCyua.js";
3
- import { I as C, a as v } from "../../chunk-2N4WE3KZ-DQvXvHLf.js";
2
+ import { s as O, f as _ } from "../../index-B_q_4aBT.js";
3
+ import { I as C, a as v } from "../../chunk-2N4WE3KZ-DiBZ4E0Z.js";
4
4
  import { useState as R } from "react";
5
5
  import { CheckboxTree as u } from "./CheckboxTree.js";
6
6
  import { Chip as w } from "../Chip/Chip.js";
@@ -1,5 +1,5 @@
1
1
  import { jsx as l } from "react/jsx-runtime";
2
- import { f as t } from "../../index-1WwGCyua.js";
2
+ import { f as t } from "../../index-B_q_4aBT.js";
3
3
  import { Chip as e } from "./Chip.js";
4
4
  const s = "<Chip label={string} onDelete={onDeleteFunction(label)}/>", b = {
5
5
  title: "Atoms/Chip",
@@ -1,5 +1,5 @@
1
1
  import { jsx as r, jsxs as l, Fragment as s } from "react/jsx-runtime";
2
- import { f as e } from "../../index-1WwGCyua.js";
2
+ import { f as e } from "../../index-B_q_4aBT.js";
3
3
  import { ControlsButton as t } from "./ControlsButton.js";
4
4
  import { Icons as a } from "../Icon/icons/index.js";
5
5
  import { Periods as i } from "../Periods/Periods.js";
@@ -1,6 +1,6 @@
1
1
  import { jsxs as a, jsx as e } from "react/jsx-runtime";
2
2
  import { OverlayProvider as p } from "@react-aria/overlays";
3
- import { f as m } from "../../index-1WwGCyua.js";
3
+ import { f as m } from "../../index-B_q_4aBT.js";
4
4
  import { useState as c } from "react";
5
5
  import { Drawer as r } from "./Drawer.js";
6
6
  import { Button as o } from "../Buttons/Button.js";
@@ -17,7 +17,7 @@ import "../IconButton/IconButton.js";
17
17
  import "../Input/Input.js";
18
18
  import "../InputField/InputField.js";
19
19
  import "react-router";
20
- import "../../TablePlugin-BlXaQ0U6.js";
20
+ import "../../TablePlugin-bFqq2Yd9.js";
21
21
  import "../RteEditor/Providers/LanguageProvider.js";
22
22
  import "../RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
23
23
  import "../RteEditor/hooks/components/Flyout.js";
@@ -1,5 +1,5 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
- import { f as i } from "../../index-1WwGCyua.js";
2
+ import { f as i } from "../../index-B_q_4aBT.js";
3
3
  import { FormInput as a } from "./FormInput.js";
4
4
  import { SelectListbox as o } from "../SelectListbox/SelectListbox.js";
5
5
  const m = `
@@ -1,5 +1,5 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
- import { f as r } from "../../index-1WwGCyua.js";
2
+ import { f as r } from "../../index-B_q_4aBT.js";
3
3
  import { IconButton as t } from "./IconButton.js";
4
4
  import { Icon as i } from "../Icon/Icon.js";
5
5
  const l = `<IconButton variant={variant} aria-label={aria-label} onClick={onClickFunction}>
@@ -1,6 +1,6 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
2
  import { useState as d, useRef as g } from "react";
3
- import { f as p } from "../../index-1WwGCyua.js";
3
+ import { f as p } from "../../index-B_q_4aBT.js";
4
4
  import { InputField as e } from "./InputField.js";
5
5
  import { Container as u } from "../../storyComponents/Container/Container.js";
6
6
  import "../Accordion/Accordion.js";
@@ -17,7 +17,7 @@ import "../GridRow/GridRow.js";
17
17
  import "../IconButton/IconButton.js";
18
18
  import "../Input/Input.js";
19
19
  import "react-router";
20
- import "../../TablePlugin-BlXaQ0U6.js";
20
+ import "../../TablePlugin-bFqq2Yd9.js";
21
21
  import "../RteEditor/Providers/LanguageProvider.js";
22
22
  import "../RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
23
23
  import "../RteEditor/hooks/components/Flyout.js";
@@ -1,6 +1,6 @@
1
1
  import { jsxs as a, jsx as e } from "react/jsx-runtime";
2
2
  import { ModalProvider as r } from "@react-aria/overlays";
3
- import { f as i } from "../../index-1WwGCyua.js";
3
+ import { f as i } from "../../index-B_q_4aBT.js";
4
4
  import { ModalDialog as t } from "./ModalDialog.js";
5
5
  import { Button as s } from "../Buttons/Button.js";
6
6
  import "../Buttons/LinkButton.js";
@@ -1,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
2
  import "../../clsx-OuTLNxxd.js";
3
3
  import "../../MultiSelectItem-BzBmsKof.js";
4
- import { M as p } from "../../TablePlugin-BlXaQ0U6.js";
4
+ import { M as p } from "../../TablePlugin-bFqq2Yd9.js";
5
5
  export {
6
6
  p as MultiSelect
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import { jsxs as S, jsx as r } from "react/jsx-runtime";
2
- import { f as d } from "../../index-1WwGCyua.js";
2
+ import { f as d } from "../../index-B_q_4aBT.js";
3
3
  import { useState as p } from "react";
4
- import { M as e } from "../../TablePlugin-BlXaQ0U6.js";
4
+ import { M as e } from "../../TablePlugin-bFqq2Yd9.js";
5
5
  import { Container as M } from "../../storyComponents/Container/Container.js";
6
6
  const C = `
7
7
  // MultiSelectHeader can be added optionally
@@ -16,7 +16,7 @@ import "../../IconButton/IconButton.js";
16
16
  import "../../Input/Input.js";
17
17
  import "../../InputField/InputField.js";
18
18
  import "react-router";
19
- import { a as C } from "../../../TablePlugin-BlXaQ0U6.js";
19
+ import { a as C } from "../../../TablePlugin-bFqq2Yd9.js";
20
20
  import "../../RteEditor/Providers/LanguageProvider.js";
21
21
  import "../../RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
22
22
  import "../../RteEditor/hooks/components/Flyout.js";
@@ -1,4 +1,4 @@
1
- import { M as l } from "../../TablePlugin-BlXaQ0U6.js";
1
+ import { M as l } from "../../TablePlugin-bFqq2Yd9.js";
2
2
  export {
3
3
  l as MultiSelect
4
4
  };
@@ -1,5 +1,5 @@
1
1
  import { jsxs as m, jsx as a } from "react/jsx-runtime";
2
- import { f as u } from "../../index-1WwGCyua.js";
2
+ import { f as u } from "../../index-B_q_4aBT.js";
3
3
  import { useState as r } from "react";
4
4
  import { MultiSelectBox as l } from "./MultiSelectBox.js";
5
5
  const d = "<MultiSelectBox selectData={[{label, value}]} onChange={fn} labelSuffix={string} />", S = {
@@ -1,5 +1,5 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
- import { f as a } from "../../index-1WwGCyua.js";
2
+ import { f as a } from "../../index-B_q_4aBT.js";
3
3
  import { Notification as t } from "./Notification.js";
4
4
  const r = `<Notification title={title} subtitle={subtitle} action={action}
5
5
  level={level} variant={variant} onClose={() => {}} />`, p = {
@@ -1,5 +1,5 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { f as a } from "../../index-1WwGCyua.js";
2
+ import { f as a } from "../../index-B_q_4aBT.js";
3
3
  import { OverlayCloseButton as o } from "./OverlayCloseButton.js";
4
4
  import { Container as l } from "../../storyComponents/Container/Container.js";
5
5
  const r = "<OverlayCloseButton aria-label={aria-label} onClick={onClickFunction} />", c = {
@@ -18,7 +18,7 @@ import "../Input/Input.js";
18
18
  import "../InputField/InputField.js";
19
19
  import { Label as I } from "../Label/Label.js";
20
20
  import "react-router";
21
- import "../../TablePlugin-BlXaQ0U6.js";
21
+ import "../../TablePlugin-bFqq2Yd9.js";
22
22
  import "../RteEditor/Providers/LanguageProvider.js";
23
23
  import "../RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
24
24
  import "../RteEditor/hooks/components/Flyout.js";
@@ -1,5 +1,5 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import { f as t } from "../../index-1WwGCyua.js";
2
+ import { f as t } from "../../index-B_q_4aBT.js";
3
3
  import { PeriodSelector as e } from "./PeriodSelector.js";
4
4
  const i = "<PeriodSelector maxPeriods={} defaultValues={} label={} labelPosition={} required={} onChange={} />", m = {
5
5
  title: "Organisms/PeriodSelector",
@@ -18,7 +18,7 @@ import "../GridRow/GridRow.js";
18
18
  import "../IconButton/IconButton.js";
19
19
  import "../Input/Input.js";
20
20
  import "../InputField/InputField.js";
21
- import "../../TablePlugin-BlXaQ0U6.js";
21
+ import "../../TablePlugin-bFqq2Yd9.js";
22
22
  import "../RteEditor/Providers/LanguageProvider.js";
23
23
  import "../RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
24
24
  import "../RteEditor/hooks/components/Flyout.js";
@@ -1,5 +1,5 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
- import { f as a } from "../../index-1WwGCyua.js";
2
+ import { f as a } from "../../index-B_q_4aBT.js";
3
3
  import { RadioGroup as o } from "./RadioGroup.js";
4
4
  const l = `
5
5
  <RadioGroup label={label} options={options}
@@ -18,7 +18,7 @@ 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 "../RteEditor/Providers/LanguageProvider.js";
23
23
  import "../RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
24
24
  import "../RteEditor/hooks/components/Flyout.js";
@@ -1,5 +1,5 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { f as t } from "../../index-1WwGCyua.js";
2
+ import { f as t } from "../../index-B_q_4aBT.js";
3
3
  import { RadioTabSelector as e } from "./RadioTabSelector.js";
4
4
  const i = "<RadioTabSelector radioButtons={} defaultValue={} label={} labelPosition={} required={} notValidatedText={} onSetValue={} />", b = {
5
5
  title: "Molecules/RadioTabSelector",
@@ -15,7 +15,7 @@ import "../../IconButton/IconButton.js";
15
15
  import "../../Input/Input.js";
16
16
  import "../../InputField/InputField.js";
17
17
  import "react-router";
18
- import "../../../TablePlugin-BlXaQ0U6.js";
18
+ import "../../../TablePlugin-bFqq2Yd9.js";
19
19
  import "../Providers/LanguageProvider.js";
20
20
  import "../Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
21
21
  import "../hooks/components/Flyout.js";
@@ -1,7 +1,7 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
2
  import { o as u } from "../../../../LexicalComposerContext.prod-DOyoZx0P.js";
3
3
  import { c as f } from "../../../../clsx-OuTLNxxd.js";
4
- import { c as _, b as p, Z as h } from "../../../../Lexical.prod-Dgzi-S1E.js";
4
+ import { a as _, N as p, a5 as h } from "../../../../Lexical.prod-YJ1n9pVJ.js";
5
5
  import { useState as l, useEffect as k } from "react";
6
6
  import { Icon as I } from "../../../Icon/Icon.js";
7
7
  import { s as a } from "../../../../RteEditor.module-DaBh86FK.js";
@@ -9,13 +9,13 @@ import { useTranslation as B } from "../../hooks/useTranslation.js";
9
9
  const C = {
10
10
  bold: "Bold",
11
11
  italic: "Italic"
12
- }, T = ["bold", "italic"], E = () => {
13
- const t = B(), [i] = u(), [e, c] = l(!1), [n, m] = l(!1), b = (o) => {
12
+ }, N = ["bold", "italic"], j = () => {
13
+ const t = B(), [i] = u(), [e, c] = l(!1), [n, m] = l(!1), d = (o) => {
14
14
  i.dispatchCommand(h, o);
15
15
  };
16
16
  return k(() => {
17
- const o = i.registerUpdateListener(({ editorState: d }) => {
18
- d.read(() => {
17
+ const o = i.registerUpdateListener(({ editorState: b }) => {
18
+ b.read(() => {
19
19
  const r = _();
20
20
  p(r) && (c(r.hasFormat("bold")), m(r.hasFormat("italic")));
21
21
  });
@@ -23,10 +23,10 @@ const C = {
23
23
  return () => {
24
24
  o();
25
25
  };
26
- }, [i]), /* @__PURE__ */ s("div", { className: a["editor__toolbar-button-group"], children: T.map((o) => /* @__PURE__ */ s(
26
+ }, [i]), /* @__PURE__ */ s("div", { className: a["editor__toolbar-button-group"], children: N.map((o) => /* @__PURE__ */ s(
27
27
  "button",
28
28
  {
29
- onClick: () => b(o),
29
+ onClick: () => d(o),
30
30
  title: o === "bold" ? t.format.boldTooltip : t.format.italicTooltip,
31
31
  className: f(
32
32
  a["editor__toolbar-button"],
@@ -43,6 +43,6 @@ const C = {
43
43
  )) });
44
44
  };
45
45
  export {
46
- E as BlockFormatPlugin
46
+ j as BlockFormatPlugin
47
47
  };
48
48
  //# sourceMappingURL=BlockFormatPlugin.js.map
@@ -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";