@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.
- package/dist/{Lexical.prod-CQl7J8uU.js → Lexical.prod-DTADK2yJ.js} +1498 -1471
- package/dist/Lexical.prod-DTADK2yJ.js.map +1 -0
- package/dist/LexicalClipboard.prod-Dx5Fm6e5.js +258 -0
- package/dist/LexicalClipboard.prod-Dx5Fm6e5.js.map +1 -0
- package/dist/{LexicalComposerContext.prod-DxxjdrXB.js → LexicalComposerContext.prod-BCXERl09.js} +6 -7
- package/dist/{LexicalComposerContext.prod-DxxjdrXB.js.map → LexicalComposerContext.prod-BCXERl09.js.map} +1 -1
- package/dist/{LexicalLink.prod-D8-zZW0o.js → LexicalLink.prod-JpC4y56U.js} +25 -25
- package/dist/LexicalLink.prod-JpC4y56U.js.map +1 -0
- package/dist/LexicalList.prod-w0kSq9sB.js +579 -0
- package/dist/LexicalList.prod-w0kSq9sB.js.map +1 -0
- package/dist/LexicalSelection.prod-DQLHaigk.js +78 -0
- package/dist/LexicalSelection.prod-DQLHaigk.js.map +1 -0
- package/dist/{LexicalTable.prod-BvJxbarH.js → LexicalTable.prod-DjfZc87j.js} +352 -334
- package/dist/LexicalTable.prod-DjfZc87j.js.map +1 -0
- package/dist/{LexicalUtils.prod-D9KKqgU7.js → LexicalUtils.prod-BBwue2Aj.js} +39 -39
- package/dist/LexicalUtils.prod-BBwue2Aj.js.map +1 -0
- package/dist/{SortableProvider-RaH_ZXB3.js → SortableProvider-Ck_XnBVq.js} +10 -10
- package/dist/{SortableProvider-RaH_ZXB3.js.map → SortableProvider-Ck_XnBVq.js.map} +1 -1
- package/dist/{TablePlugin-CPEwD-wi.js → TablePlugin-Co5vgBHF.js} +87 -88
- package/dist/{TablePlugin-CPEwD-wi.js.map → TablePlugin-Co5vgBHF.js.map} +1 -1
- package/dist/__mocks__/fileMock.d.ts +2 -0
- package/dist/__mocks__/svgrMock.d.ts +3 -0
- package/dist/__mocks__/svgrMock.js +10 -0
- package/dist/__mocks__/svgrMock.js.map +1 -0
- package/dist/client-CTOhtEms.js +33 -0
- package/dist/client-CTOhtEms.js.map +1 -0
- package/dist/components/AccordionCard/AccordionCard.stories.js +1 -1
- package/dist/components/Buttons/Button.stories.js +2 -2
- package/dist/components/Buttons/LinkButton.stories.js +2 -2
- package/dist/components/Buttons/MenuButton.stories.js +2 -2
- package/dist/components/Checkbox/Checkbox.stories.js +1 -1
- package/dist/components/CheckboxButton/CheckboxButton.stories.js +1 -1
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +1 -1
- package/dist/components/CheckboxTree/CheckboxTree.js +2 -2
- package/dist/components/CheckboxTree/CheckboxTree.stories.js +11 -11
- package/dist/components/Chip/Chip.stories.js +1 -1
- package/dist/components/Drawer/Drawer.stories.js +1 -1
- package/dist/components/FormInput/FormInput.js +3 -3
- package/dist/components/FormInput/FormInput.stories.js +1 -1
- package/dist/components/IconButton/IconButton.stories.js +1 -1
- package/dist/components/InputField/InputField.stories.js +3 -3
- package/dist/components/Label/Label.test.d.ts +0 -0
- package/dist/components/Label/Label.test.js +4257 -0
- package/dist/components/Label/Label.test.js.map +1 -0
- package/dist/components/ModalDialog/ModalDialog.stories.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.stories.js +2 -2
- package/dist/components/MultiSelect/components/MultiSelectHeader.js +2 -2
- package/dist/components/MultiSelect/index.js +1 -1
- package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +1 -1
- package/dist/components/OverlayStepBar/OverlayStepBar.js +2 -2
- package/dist/components/PeriodSelector/PeriodSelector.js +2 -2
- package/dist/components/PeriodSelector/PeriodSelector.stories.js +1 -1
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +4 -4
- package/dist/components/Repeater/Repeater.stories.js +1 -1
- package/dist/components/RteEditor/EditorHeader/EditorHeader.js +2 -2
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +4 -4
- package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +4 -4
- package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +3 -3
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +48 -48
- package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +28 -28
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +8 -8
- package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +2 -2
- package/dist/components/RteEditor/Plugins/TablePlugin/TableCellContextMenu/TableCellContextMenu.js +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +5 -5
- package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +20 -20
- package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +15 -15
- package/dist/components/RteEditor/Plugins/index.js +1 -1
- package/dist/components/RteEditor/Providers/LanguageProvider.js +3 -3
- package/dist/components/RteEditor/RteEditor.js +454 -454
- package/dist/components/RteEditor/RteEditor.js.map +1 -1
- package/dist/components/RteEditor/helpers.js +4 -4
- package/dist/components/RteEditor/hooks/components/Flyout.js +12 -13
- package/dist/components/RteEditor/hooks/components/Flyout.js.map +1 -1
- package/dist/components/SelectListbox/SelectListBox.stories.js +1 -1
- package/dist/components/SelectListbox/SelectListbox.js +8 -9
- package/dist/components/SelectListbox/SelectListbox.js.map +1 -1
- package/dist/components/SelectListbox/SelectProvider.js +3 -3
- package/dist/components/Sortable/Sortable.js +1 -1
- package/dist/components/Sortable/Sortable.stories.js +1 -1
- package/dist/components/Sortable/SortableProvider.js +1 -1
- package/dist/components/Sortable/actions.js +8 -8
- package/dist/components/Sortable/components/SortableContainer.js +1 -1
- package/dist/components/Sortable/components/SortableItem.js +1 -1
- package/dist/components/Spinner/Spinner.js +11 -12
- package/dist/components/Spinner/Spinner.js.map +1 -1
- package/dist/components/ToggleSwitch/ToggleSwitch.stories.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/{helpers-C_Mib4v3.js → helpers-DgTW1vIO.js} +33 -33
- package/dist/{helpers-C_Mib4v3.js.map → helpers-DgTW1vIO.js.map} +1 -1
- package/dist/index-BqHyOZsF.js +10322 -0
- package/dist/index-BqHyOZsF.js.map +1 -0
- package/dist/{index-Sh2oo6_C.js → index-DkNZhwJb.js} +399 -392
- package/dist/index-DkNZhwJb.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/react-18-CcyoHPTJ.js +38 -0
- package/dist/react-18-CcyoHPTJ.js.map +1 -0
- package/dist/setupTests.d.ts +0 -0
- package/dist/setupTests.js +1573 -0
- package/dist/setupTests.js.map +1 -0
- package/dist/storybook__react.d.js +538 -1657
- package/dist/storybook__react.d.js.map +1 -1
- package/dist/test-utils-CTqdUiUm.js +1126 -0
- package/dist/test-utils-CTqdUiUm.js.map +1 -0
- package/package.json +52 -33
- package/dist/Lexical.prod-CQl7J8uU.js.map +0 -1
- package/dist/LexicalClipboard.prod-C48GDxiy.js +0 -258
- package/dist/LexicalClipboard.prod-C48GDxiy.js.map +0 -1
- package/dist/LexicalLink.prod-D8-zZW0o.js.map +0 -1
- package/dist/LexicalList.prod-B4_DTbPB.js +0 -576
- package/dist/LexicalList.prod-B4_DTbPB.js.map +0 -1
- package/dist/LexicalSelection.prod-BU3GAQB4.js +0 -86
- package/dist/LexicalSelection.prod-BU3GAQB4.js.map +0 -1
- package/dist/LexicalTable.prod-BvJxbarH.js.map +0 -1
- package/dist/LexicalUtils.prod-D9KKqgU7.js.map +0 -1
- package/dist/index-Sh2oo6_C.js.map +0 -1
- package/dist/react-18-C9Y1Flwa.js +0 -65
- package/dist/react-18-C9Y1Flwa.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { ModalProvider as l } from "@react-aria/overlays";
|
|
3
|
-
import { f as i } from "../../index-
|
|
3
|
+
import { f as i } from "../../index-DkNZhwJb.js";
|
|
4
4
|
import { ModalDialog as t } from "./ModalDialog.js";
|
|
5
5
|
import { Button as n } from "../Buttons/Button.js";
|
|
6
6
|
import "../Buttons/LinkButton.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as S, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { f as d } from "../../index-
|
|
2
|
+
import { f as d } from "../../index-DkNZhwJb.js";
|
|
3
3
|
import { useState as p } from "react";
|
|
4
|
-
import { M as e } from "../../TablePlugin-
|
|
4
|
+
import { M as e } from "../../TablePlugin-Co5vgBHF.js";
|
|
5
5
|
import { Container as M } from "../../storyComponents/Container/Container.js";
|
|
6
6
|
const C = `
|
|
7
7
|
// MultiSelectHeader can be added optionally
|
|
@@ -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 { a as y } from "../../../TablePlugin-
|
|
18
|
+
import { a as y } from "../../../TablePlugin-Co5vgBHF.js";
|
|
19
19
|
import "../../RteEditor/Providers/LanguageProvider.js";
|
|
20
20
|
import "../../RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
|
|
21
21
|
import "../../RteEditor/hooks/components/Flyout.js";
|
|
@@ -23,7 +23,7 @@ import "../../../index-B3c5pcHk.js";
|
|
|
23
23
|
import "../../SelectListbox/SelectListbox.js";
|
|
24
24
|
import "../../SelectListbox/SelectProvider.js";
|
|
25
25
|
import "../../Sortable/components/SortableItem.js";
|
|
26
|
-
import "../../../SortableProvider-
|
|
26
|
+
import "../../../SortableProvider-Ck_XnBVq.js";
|
|
27
27
|
export {
|
|
28
28
|
y as MultiSelectHeader
|
|
29
29
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { f as a } from "../../index-
|
|
2
|
+
import { f as a } from "../../index-DkNZhwJb.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 = {
|
|
@@ -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-
|
|
18
|
+
import "../../TablePlugin-Co5vgBHF.js";
|
|
19
19
|
import "../RteEditor/Providers/LanguageProvider.js";
|
|
20
20
|
import "../RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
|
|
21
21
|
import "../RteEditor/hooks/components/Flyout.js";
|
|
@@ -23,7 +23,7 @@ import "../../index-B3c5pcHk.js";
|
|
|
23
23
|
import "../SelectListbox/SelectListbox.js";
|
|
24
24
|
import "../SelectListbox/SelectProvider.js";
|
|
25
25
|
import "../Sortable/components/SortableItem.js";
|
|
26
|
-
import "../../SortableProvider-
|
|
26
|
+
import "../../SortableProvider-Ck_XnBVq.js";
|
|
27
27
|
import '../../assets/OverlayStepBar.css';const r = {
|
|
28
28
|
"overlay-step-bar__container": "_overlay-step-bar__container_u2k5r_1",
|
|
29
29
|
"overlay-step-bar__separator": "_overlay-step-bar__separator_u2k5r_10",
|
|
@@ -17,7 +17,7 @@ import "../Input/Input.js";
|
|
|
17
17
|
import "../InputField/InputField.js";
|
|
18
18
|
import { Label as D } from "../Label/Label.js";
|
|
19
19
|
import "react-router";
|
|
20
|
-
import "../../TablePlugin-
|
|
20
|
+
import "../../TablePlugin-Co5vgBHF.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";
|
|
@@ -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-
|
|
28
|
+
import "../../SortableProvider-Ck_XnBVq.js";
|
|
29
29
|
import '../../assets/PeriodSelector.css';const l = {
|
|
30
30
|
"period-selector__container": "_period-selector__container_10t7p_1",
|
|
31
31
|
"period-selector__container--label-left": "_period-selector__container--label-left_10t7p_6",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { f as t } from "../../index-
|
|
2
|
+
import { f as t } from "../../index-DkNZhwJb.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",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { f as a } from "../../index-
|
|
1
|
+
import { jsx as r, jsxs as e } from "react/jsx-runtime";
|
|
2
|
+
import { f as a } from "../../index-DkNZhwJb.js";
|
|
3
3
|
import { ProgrammeCard as o } from "./ProgrammeCard.js";
|
|
4
4
|
import { Container as n } from "../../storyComponents/Container/Container.js";
|
|
5
5
|
import "react";
|
|
@@ -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-
|
|
20
|
+
import "../../TablePlugin-Co5vgBHF.js";
|
|
21
21
|
import { Repeater as i } from "../Repeater/Repeater.js";
|
|
22
22
|
import "../RteEditor/Providers/LanguageProvider.js";
|
|
23
23
|
import "../RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
|
|
@@ -26,7 +26,7 @@ import "../../index-B3c5pcHk.js";
|
|
|
26
26
|
import "../SelectListbox/SelectListbox.js";
|
|
27
27
|
import "../SelectListbox/SelectProvider.js";
|
|
28
28
|
import "../Sortable/components/SortableItem.js";
|
|
29
|
-
import "../../SortableProvider-
|
|
29
|
+
import "../../SortableProvider-Ck_XnBVq.js";
|
|
30
30
|
const p = "<ProgrammeCard key={key} header={header} details={details} onClick={onClickFunction} />", K = {
|
|
31
31
|
title: "Atoms/ProgrammeCard",
|
|
32
32
|
component: o,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx as e, jsxs as i, Fragment as n } from "react/jsx-runtime";
|
|
2
2
|
import { Repeater as t } from "./Repeater.js";
|
|
3
3
|
import { Container as o } from "../../storyComponents/Container/Container.js";
|
|
4
4
|
const l = "<Repeater flexDirection={flexDirection} gap={gap}>{children}</Repeater>", d = {
|
|
@@ -14,7 +14,7 @@ import "../../IconButton/IconButton.js";
|
|
|
14
14
|
import "../../Input/Input.js";
|
|
15
15
|
import "../../InputField/InputField.js";
|
|
16
16
|
import "react-router";
|
|
17
|
-
import "../../../TablePlugin-
|
|
17
|
+
import "../../../TablePlugin-Co5vgBHF.js";
|
|
18
18
|
import "../Providers/LanguageProvider.js";
|
|
19
19
|
import "../Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
|
|
20
20
|
import "../hooks/components/Flyout.js";
|
|
@@ -22,7 +22,7 @@ import "../../../index-B3c5pcHk.js";
|
|
|
22
22
|
import "../../SelectListbox/SelectListbox.js";
|
|
23
23
|
import "../../SelectListbox/SelectProvider.js";
|
|
24
24
|
import "../../Sortable/components/SortableItem.js";
|
|
25
|
-
import "../../../SortableProvider-
|
|
25
|
+
import "../../../SortableProvider-Ck_XnBVq.js";
|
|
26
26
|
import '../../../assets/EditorHeader.css';const t = {
|
|
27
27
|
"editor-header__container": "_editor-header__container_nsi6h_1",
|
|
28
28
|
"editor-header__info": "_editor-header__info_nsi6h_10"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { u } from "../../../../LexicalComposerContext.prod-
|
|
2
|
+
import { u } from "../../../../LexicalComposerContext.prod-BCXERl09.js";
|
|
3
3
|
import { c as f } from "../../../../clsx-OuTLNxxd.js";
|
|
4
|
-
import {
|
|
4
|
+
import { q as _, a as p, w as h } from "../../../../Lexical.prod-DTADK2yJ.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-oFMKEW6f.js";
|
|
@@ -9,7 +9,7 @@ import { useTranslation as B } from "../../hooks/useTranslation.js";
|
|
|
9
9
|
const C = {
|
|
10
10
|
bold: "Bold",
|
|
11
11
|
italic: "Italic"
|
|
12
|
-
}, T = ["bold", "italic"],
|
|
12
|
+
}, T = ["bold", "italic"], q = () => {
|
|
13
13
|
const t = B(), [i] = u(), [e, c] = l(!1), [n, m] = l(!1), d = (o) => {
|
|
14
14
|
i.dispatchCommand(h, o);
|
|
15
15
|
};
|
|
@@ -43,6 +43,6 @@ const C = {
|
|
|
43
43
|
)) });
|
|
44
44
|
};
|
|
45
45
|
export {
|
|
46
|
-
|
|
46
|
+
q as BlockFormatPlugin
|
|
47
47
|
};
|
|
48
48
|
//# sourceMappingURL=BlockFormatPlugin.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as f, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { c as i } from "../../../../clsx-OuTLNxxd.js";
|
|
3
|
-
import { u as h } from "../../../../LexicalComposerContext.prod-
|
|
4
|
-
import {
|
|
3
|
+
import { u as h } from "../../../../LexicalComposerContext.prod-BCXERl09.js";
|
|
4
|
+
import { aa as _, ab as y, ac as C, ad as k } from "../../../../Lexical.prod-DTADK2yJ.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,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-
|
|
20
|
+
import "../../../../TablePlugin-Co5vgBHF.js";
|
|
21
21
|
import { s as r } from "../../../../RteEditor.module-oFMKEW6f.js";
|
|
22
22
|
import { useTranslation as g } from "../../hooks/useTranslation.js";
|
|
23
23
|
import "../LinkPlugin/LinkContextMenu/LinkContextMenu.js";
|
|
@@ -27,7 +27,7 @@ import "../../../../index-B3c5pcHk.js";
|
|
|
27
27
|
import "../../../SelectListbox/SelectListbox.js";
|
|
28
28
|
import "../../../SelectListbox/SelectProvider.js";
|
|
29
29
|
import "../../../Sortable/components/SortableItem.js";
|
|
30
|
-
import "../../../../SortableProvider-
|
|
30
|
+
import "../../../../SortableProvider-Ck_XnBVq.js";
|
|
31
31
|
const Z = () => {
|
|
32
32
|
const o = g(), [t] = h(), [d, p] = s(!1), [l, u] = s(!1), c = () => {
|
|
33
33
|
t.dispatchCommand(C, void 0);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { A as D } from "../../../../../TablePlugin-
|
|
4
|
-
import "../../../../../helpers-
|
|
3
|
+
import { A as D } from "../../../../../TablePlugin-Co5vgBHF.js";
|
|
4
|
+
import "../../../../../helpers-DgTW1vIO.js";
|
|
5
5
|
import "../../../../Icon/Icon.js";
|
|
6
6
|
import "../../../../Buttons/Button.js";
|
|
7
7
|
import "../../../../Buttons/LinkButton.js";
|
|
@@ -27,7 +27,7 @@ import "../../../../../index-B3c5pcHk.js";
|
|
|
27
27
|
import "../../../../SelectListbox/SelectListbox.js";
|
|
28
28
|
import "../../../../SelectListbox/SelectProvider.js";
|
|
29
29
|
import "../../../../Sortable/components/SortableItem.js";
|
|
30
|
-
import "../../../../../SortableProvider-
|
|
30
|
+
import "../../../../../SortableProvider-Ck_XnBVq.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-
|
|
3
|
+
import { e as E } from "../../../../../helpers-DgTW1vIO.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
|
-
import { jsx as k, jsxs as
|
|
2
|
-
import { u as
|
|
3
|
-
import { c as
|
|
4
|
-
import { m as
|
|
1
|
+
import { jsx as k, jsxs as W } from "react/jsx-runtime";
|
|
2
|
+
import { u as Y } from "../../../../LexicalComposerContext.prod-BCXERl09.js";
|
|
3
|
+
import { c as $ } from "../../../../clsx-OuTLNxxd.js";
|
|
4
|
+
import { m as M, N as G, x as J } from "../../../../LexicalLink.prod-JpC4y56U.js";
|
|
5
5
|
import { useRef as a, useState as Q, useEffect as m } from "react";
|
|
6
|
-
import {
|
|
7
|
-
import { A as nt } from "../../../../TablePlugin-
|
|
8
|
-
import { e as it } from "../../../../helpers-
|
|
6
|
+
import { O as X, q as f, a9 as Z, a8 as tt, a as w, g as et, c as ot, S as rt } from "../../../../Lexical.prod-DTADK2yJ.js";
|
|
7
|
+
import { A as nt } from "../../../../TablePlugin-Co5vgBHF.js";
|
|
8
|
+
import { e as it } from "../../../../helpers-DgTW1vIO.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";
|
|
@@ -22,7 +22,7 @@ import "../../../IconButton/IconButton.js";
|
|
|
22
22
|
import "../../../Input/Input.js";
|
|
23
23
|
import "../../../InputField/InputField.js";
|
|
24
24
|
import "react-router";
|
|
25
|
-
import { setScrollableContainers as
|
|
25
|
+
import { setScrollableContainers as O, removeScrollableContainers as at } from "../../helpers.js";
|
|
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";
|
|
@@ -30,19 +30,19 @@ import "../../../../index-B3c5pcHk.js";
|
|
|
30
30
|
import "../../../SelectListbox/SelectListbox.js";
|
|
31
31
|
import "../../../SelectListbox/SelectProvider.js";
|
|
32
32
|
import "../../../Sortable/components/SortableItem.js";
|
|
33
|
-
import "../../../../SortableProvider-
|
|
34
|
-
const mt = 200,
|
|
33
|
+
import "../../../../SortableProvider-Ck_XnBVq.js";
|
|
34
|
+
const mt = 200, z = (p) => {
|
|
35
35
|
let n = p;
|
|
36
36
|
for (; n; ) {
|
|
37
|
-
if (
|
|
37
|
+
if (M(n))
|
|
38
38
|
return n;
|
|
39
39
|
n = n.getParent();
|
|
40
40
|
}
|
|
41
41
|
return null;
|
|
42
|
-
},
|
|
42
|
+
}, I = (p) => {
|
|
43
43
|
let n = p;
|
|
44
44
|
for (; n; ) {
|
|
45
|
-
if (
|
|
45
|
+
if (M(n))
|
|
46
46
|
return {
|
|
47
47
|
active: !0,
|
|
48
48
|
url: n.getURL(),
|
|
@@ -51,8 +51,8 @@ const mt = 200, M = (p) => {
|
|
|
51
51
|
n = n.getParent();
|
|
52
52
|
}
|
|
53
53
|
return !1;
|
|
54
|
-
},
|
|
55
|
-
const n = ut(), [c] =
|
|
54
|
+
}, jt = ({ parentScrollPosition: p }) => {
|
|
55
|
+
const n = ut(), [c] = Y(), { flyout: U, showFlyout: E, hideFlyout: C, isVisible: u } = ct(), d = a(void 0), N = a(!1), L = a(""), g = a(""), [y, q] = Q({ active: !1, url: "", linktext: "" }), S = a(u), x = a(null), P = a(null), T = a(void 0), b = () => {
|
|
56
56
|
c.update(() => {
|
|
57
57
|
const e = f();
|
|
58
58
|
x.current = e;
|
|
@@ -68,8 +68,8 @@ const mt = 200, M = (p) => {
|
|
|
68
68
|
st,
|
|
69
69
|
{
|
|
70
70
|
url: e,
|
|
71
|
-
onSave: (o) =>
|
|
72
|
-
onDelete: () =>
|
|
71
|
+
onSave: (o) => K(o, ""),
|
|
72
|
+
onDelete: () => H(),
|
|
73
73
|
onClose: D,
|
|
74
74
|
ref: T
|
|
75
75
|
}
|
|
@@ -80,52 +80,52 @@ const mt = 200, M = (p) => {
|
|
|
80
80
|
(e = T.current) == null || e.clearForm(), C(), R();
|
|
81
81
|
}, F = () => {
|
|
82
82
|
var t;
|
|
83
|
-
const e = (t =
|
|
84
|
-
!N.current && e && (b(), E({ position: { top: e.bottom, left: e.left }, ...
|
|
83
|
+
const e = (t = P.current) == null ? void 0 : t.getBoundingClientRect();
|
|
84
|
+
!N.current && e && (b(), E({ 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
88
|
}, v = () => {
|
|
89
89
|
C(), R();
|
|
90
|
-
},
|
|
90
|
+
}, K = (e, t) => {
|
|
91
91
|
c.update(() => {
|
|
92
92
|
const o = f();
|
|
93
93
|
if (w(o)) {
|
|
94
|
-
const i = o.anchor.getNode(), s =
|
|
94
|
+
const i = o.anchor.getNode(), s = z(i);
|
|
95
95
|
if (t && t !== "") {
|
|
96
96
|
if (s) {
|
|
97
97
|
const l = rt(t);
|
|
98
98
|
s.replace(l), l.select();
|
|
99
99
|
}
|
|
100
|
-
if (t !==
|
|
100
|
+
if (t !== L.current && L.current === "") {
|
|
101
101
|
const { anchor: l, focus: _ } = o;
|
|
102
102
|
o.insertText(t), l.offset -= t.length, _.offset = l.offset + t.length;
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
|
-
|
|
105
|
+
J(it(e), { target: "_blank" });
|
|
106
106
|
}
|
|
107
107
|
v();
|
|
108
108
|
});
|
|
109
|
-
},
|
|
110
|
-
c.dispatchCommand(
|
|
111
|
-
},
|
|
109
|
+
}, H = () => {
|
|
110
|
+
c.dispatchCommand(G, null), D();
|
|
111
|
+
}, V = {
|
|
112
112
|
children: /* @__PURE__ */ k(
|
|
113
113
|
nt,
|
|
114
114
|
{
|
|
115
|
-
isLink:
|
|
115
|
+
isLink: y,
|
|
116
116
|
onCloseHandler: v,
|
|
117
|
-
onSaveHandler: (e, t) =>
|
|
117
|
+
onSaveHandler: (e, t) => K(e, t),
|
|
118
118
|
ref: d
|
|
119
119
|
}
|
|
120
120
|
)
|
|
121
121
|
};
|
|
122
122
|
return m(() => {
|
|
123
123
|
var e, t;
|
|
124
|
-
u ? (N.current = !0, (t = d.current) == null || t.focusFirstField()) : ((e = d.current) == null || e.clearForm(),
|
|
124
|
+
u ? (N.current = !0, (t = d.current) == null || t.focusFirstField()) : ((e = d.current) == null || e.clearForm(), L.current = g.current = "", setTimeout(() => N.current = !1, mt));
|
|
125
125
|
}, [d, u]), m(() => {
|
|
126
126
|
const e = (r) => {
|
|
127
127
|
if (w(r) && r.isCollapsed()) {
|
|
128
|
-
const i =
|
|
128
|
+
const i = I(r.anchor.getNode());
|
|
129
129
|
if (i) {
|
|
130
130
|
const s = c.getElementByKey(r.anchor.getNode().getKey()), l = s ? { top: s.getBoundingClientRect().bottom, left: s.getBoundingClientRect().left } : { top: 0, left: 0 };
|
|
131
131
|
return A(i.url, l), !0;
|
|
@@ -158,14 +158,14 @@ const mt = 200, M = (p) => {
|
|
|
158
158
|
const r = f();
|
|
159
159
|
if (b(), !w(r))
|
|
160
160
|
return !1;
|
|
161
|
-
const i =
|
|
161
|
+
const i = I(r.anchor.getNode()), s = (_ = "", j = "") => {
|
|
162
162
|
F(), setTimeout(() => {
|
|
163
|
-
var
|
|
164
|
-
return (
|
|
163
|
+
var B;
|
|
164
|
+
return (B = d.current) == null ? void 0 : B.setDefaults(_, j);
|
|
165
165
|
}, 0);
|
|
166
166
|
};
|
|
167
167
|
if (i)
|
|
168
|
-
return o.preventDefault(), o.stopPropagation(), o.stopImmediatePropagation(),
|
|
168
|
+
return o.preventDefault(), o.stopPropagation(), o.stopImmediatePropagation(), L.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
|
}
|
|
@@ -173,11 +173,11 @@ const mt = 200, M = (p) => {
|
|
|
173
173
|
},
|
|
174
174
|
et
|
|
175
175
|
), t = c.registerUpdateListener(({ editorState: o }) => {
|
|
176
|
-
|
|
176
|
+
q(
|
|
177
177
|
o.read(() => {
|
|
178
178
|
const r = f();
|
|
179
179
|
if (b(), w(r)) {
|
|
180
|
-
const i = r.anchor.getNode(), s =
|
|
180
|
+
const i = r.anchor.getNode(), s = z(i);
|
|
181
181
|
if (s)
|
|
182
182
|
return {
|
|
183
183
|
active: !0,
|
|
@@ -198,43 +198,43 @@ const mt = 200, M = (p) => {
|
|
|
198
198
|
};
|
|
199
199
|
}, [c]), m(() => {
|
|
200
200
|
var e;
|
|
201
|
-
|
|
201
|
+
S.current = u, u || (e = T.current) == null || e.clearForm();
|
|
202
202
|
}, [u]), m(() => {
|
|
203
203
|
u && v();
|
|
204
204
|
}, [p]), m(() => {
|
|
205
|
-
|
|
206
|
-
}, [
|
|
207
|
-
const e = (o) => (
|
|
205
|
+
y.active || C();
|
|
206
|
+
}, [y]), m(() => {
|
|
207
|
+
const e = (o) => (O(t), o.key === "Escape" && S.current && (o.preventDefault(), o.stopPropagation(), v()), !0);
|
|
208
208
|
window.addEventListener("keydown", e, { capture: !0 });
|
|
209
209
|
const t = () => {
|
|
210
210
|
C();
|
|
211
211
|
};
|
|
212
|
-
return
|
|
212
|
+
return O(t), window.addEventListener("scroll", t), window.addEventListener("resize", t), () => {
|
|
213
213
|
window.removeEventListener("keydown", e), window.removeEventListener("scroll", t), window.removeEventListener("resize", t), at(t);
|
|
214
214
|
};
|
|
215
|
-
}, []), /* @__PURE__ */ k("div", { className: h["editor__toolbar-button-group"], children: /* @__PURE__ */
|
|
215
|
+
}, []), /* @__PURE__ */ k("div", { className: h["editor__toolbar-button-group"], children: /* @__PURE__ */ W("div", { className: h["editor__toolbar-button-flyoutwrapper"], children: [
|
|
216
216
|
/* @__PURE__ */ k(
|
|
217
217
|
"button",
|
|
218
218
|
{
|
|
219
219
|
onClick: F,
|
|
220
220
|
title: n.links.linkTooltip,
|
|
221
|
-
className:
|
|
221
|
+
className: $(
|
|
222
222
|
h["editor__toolbar-button"],
|
|
223
223
|
h["editor__toolbar-button--link"],
|
|
224
|
-
|
|
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,
|
|
228
228
|
type: "button",
|
|
229
|
-
ref:
|
|
229
|
+
ref: P,
|
|
230
230
|
children: /* @__PURE__ */ k(lt, { name: "Link", size: 20 })
|
|
231
231
|
}
|
|
232
232
|
),
|
|
233
|
-
|
|
233
|
+
U
|
|
234
234
|
] }) });
|
|
235
235
|
};
|
|
236
236
|
export {
|
|
237
|
-
|
|
238
|
-
|
|
237
|
+
jt as LinkPlugin,
|
|
238
|
+
I as getLinkNodeTag
|
|
239
239
|
};
|
|
240
240
|
//# sourceMappingURL=LinkPlugin.js.map
|
|
@@ -1,68 +1,68 @@
|
|
|
1
1
|
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
-
import { u as S } from "../../../../LexicalComposerContext.prod-
|
|
3
|
-
import { Y as N, Q as P, G as k, K as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { useState as p, useEffect as
|
|
6
|
-
import { c as
|
|
7
|
-
import {
|
|
8
|
-
import { Icon as
|
|
2
|
+
import { u as S } from "../../../../LexicalComposerContext.prod-BCXERl09.js";
|
|
3
|
+
import { Y as N, Q as P, G as k, K as q, H as f, q as y } from "../../../../LexicalList.prod-w0kSq9sB.js";
|
|
4
|
+
import { _ as j } from "../../../../LexicalSelection.prod-DQLHaigk.js";
|
|
5
|
+
import { useState as p, useEffect as I } from "react";
|
|
6
|
+
import { c as w } from "../../../../clsx-OuTLNxxd.js";
|
|
7
|
+
import { a8 as x, g as G, I as O, q as b, a as g, G as U, j as $ } from "../../../../Lexical.prod-DTADK2yJ.js";
|
|
8
|
+
import { Icon as B } from "../../../Icon/Icon.js";
|
|
9
9
|
import { s as u } from "../../../../RteEditor.module-oFMKEW6f.js";
|
|
10
|
-
import { useTranslation as
|
|
10
|
+
import { useTranslation as E } from "../../hooks/useTranslation.js";
|
|
11
11
|
const Y = {
|
|
12
12
|
bullet: "BulletList",
|
|
13
13
|
number: "NumberedList"
|
|
14
|
-
},
|
|
15
|
-
const l =
|
|
14
|
+
}, v = ["bullet", "number"], W = () => {
|
|
15
|
+
const l = E(), [e] = S(), [h, n] = p("paragraph"), [c, L] = p(!1), [m, _] = p(!1), K = () => {
|
|
16
16
|
e.update(() => {
|
|
17
17
|
const t = b();
|
|
18
|
-
|
|
18
|
+
g(t) && j(t, () => $());
|
|
19
19
|
});
|
|
20
|
-
},
|
|
21
|
-
t === "number" &&
|
|
20
|
+
}, D = (t) => {
|
|
21
|
+
t === "number" && h !== "number" ? (e.dispatchCommand(P, void 0), n("number")) : t === "bullet" && h !== "bullet" ? (e.dispatchCommand(k, void 0), n("bullet")) : (K(), n("paragraph"));
|
|
22
22
|
};
|
|
23
|
-
return
|
|
23
|
+
return I(() => {
|
|
24
24
|
const t = e.registerCommand(
|
|
25
25
|
x,
|
|
26
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
|
-
|
|
27
|
+
G
|
|
28
28
|
);
|
|
29
29
|
return () => {
|
|
30
30
|
t();
|
|
31
31
|
};
|
|
32
|
-
}, [e, m, c]),
|
|
32
|
+
}, [e, m, c]), I(() => {
|
|
33
33
|
e.registerCommand(
|
|
34
|
-
|
|
34
|
+
O,
|
|
35
35
|
(r) => (r.preventDefault(), e.update(() => {
|
|
36
36
|
const i = b();
|
|
37
|
-
if (!
|
|
37
|
+
if (!g(i))
|
|
38
38
|
return;
|
|
39
39
|
const o = i.anchor.getNode(), s = o.getParent();
|
|
40
|
-
if (!
|
|
40
|
+
if (!q(s))
|
|
41
41
|
return;
|
|
42
42
|
const a = s.getParent();
|
|
43
43
|
if (f(a)) {
|
|
44
|
-
const C =
|
|
44
|
+
const C = y(f(a) ? a.getListType() : "bullet");
|
|
45
45
|
s.append(C), C.append(o);
|
|
46
46
|
}
|
|
47
47
|
}), !0),
|
|
48
|
-
|
|
48
|
+
U
|
|
49
49
|
);
|
|
50
50
|
const t = e.registerUpdateListener(({ editorState: r }) => {
|
|
51
51
|
r.read(() => {
|
|
52
52
|
const i = b();
|
|
53
|
-
if (
|
|
53
|
+
if (g(i)) {
|
|
54
54
|
let o = i.anchor.getNode();
|
|
55
55
|
for (; o !== null; ) {
|
|
56
56
|
if (f(o)) {
|
|
57
57
|
const a = o.getTag();
|
|
58
|
-
|
|
58
|
+
L(a === "ul"), _(a === "ol"), a === "ul" && n("bullet"), a === "ol" && n("number");
|
|
59
59
|
return;
|
|
60
60
|
}
|
|
61
61
|
const s = o.getParent();
|
|
62
62
|
if (s === null) break;
|
|
63
63
|
o = s;
|
|
64
64
|
}
|
|
65
|
-
|
|
65
|
+
L(!1), _(!1), n("paragraph");
|
|
66
66
|
}
|
|
67
67
|
return !1;
|
|
68
68
|
});
|
|
@@ -70,12 +70,12 @@ const Y = {
|
|
|
70
70
|
return () => {
|
|
71
71
|
t();
|
|
72
72
|
};
|
|
73
|
-
}, [e]), /* @__PURE__ */ d("div", { className: u["editor__toolbar-button-group"], children:
|
|
73
|
+
}, [e]), /* @__PURE__ */ d("div", { className: u["editor__toolbar-button-group"], children: v.map((t) => /* @__PURE__ */ d(
|
|
74
74
|
"button",
|
|
75
75
|
{
|
|
76
|
-
onClick: () =>
|
|
76
|
+
onClick: () => D(t),
|
|
77
77
|
title: l.format[`${t}Tooltip`],
|
|
78
|
-
className:
|
|
78
|
+
className: w(
|
|
79
79
|
u["editor__toolbar-button"],
|
|
80
80
|
u[`editor__toolbar-button--${t}`],
|
|
81
81
|
t === "bullet" && c && u["editor__toolbar-button--active"],
|
|
@@ -84,7 +84,7 @@ const Y = {
|
|
|
84
84
|
"aria-label": l.aria.labels[t],
|
|
85
85
|
"aria-keyshortcuts": l.aria.keyshortcuts[t],
|
|
86
86
|
type: "button",
|
|
87
|
-
children: /* @__PURE__ */ d(
|
|
87
|
+
children: /* @__PURE__ */ d(B, { name: Y[t], size: 24 })
|
|
88
88
|
},
|
|
89
89
|
t
|
|
90
90
|
)) });
|