@uva-glass/component-library 3.0.3 → 3.0.4
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-CZAqLAjm.js} +32 -32
- package/dist/Lexical.prod-CZAqLAjm.js.map +1 -0
- package/dist/{LexicalClipboard.prod-C48GDxiy.js → LexicalClipboard.prod-B0GrUtzr.js} +16 -16
- package/dist/{LexicalClipboard.prod-C48GDxiy.js.map → LexicalClipboard.prod-B0GrUtzr.js.map} +1 -1
- 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-kqeQGYSo.js} +13 -13
- package/dist/LexicalLink.prod-kqeQGYSo.js.map +1 -0
- package/dist/{LexicalList.prod-B4_DTbPB.js → LexicalList.prod-BEKqHUO2.js} +10 -10
- package/dist/LexicalList.prod-BEKqHUO2.js.map +1 -0
- package/dist/{LexicalSelection.prod-BU3GAQB4.js → LexicalSelection.prod-B1DTqn9H.js} +14 -14
- package/dist/{LexicalSelection.prod-BU3GAQB4.js.map → LexicalSelection.prod-B1DTqn9H.js.map} +1 -1
- package/dist/{LexicalTable.prod-BvJxbarH.js → LexicalTable.prod-DtAMjSWg.js} +24 -24
- package/dist/{LexicalTable.prod-BvJxbarH.js.map → LexicalTable.prod-DtAMjSWg.js.map} +1 -1
- package/dist/{LexicalUtils.prod-D9KKqgU7.js → LexicalUtils.prod-C-NXnTzK.js} +3 -3
- package/dist/{LexicalUtils.prod-D9KKqgU7.js.map → LexicalUtils.prod-C-NXnTzK.js.map} +1 -1
- 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-DkL40qIf.js} +54 -55
- package/dist/{TablePlugin-CPEwD-wi.js.map → TablePlugin-DkL40qIf.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 +2 -2
- 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 +19 -19
- package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +4 -4
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +4 -4
- 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 +15 -15
- package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +4 -4
- package/dist/components/RteEditor/Plugins/index.js +1 -1
- package/dist/components/RteEditor/Providers/LanguageProvider.js +3 -3
- package/dist/components/RteEditor/RteEditor.js +408 -408
- 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-DYmWlhgC.js} +15 -15
- package/dist/{helpers-C_Mib4v3.js.map → helpers-DYmWlhgC.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 +47 -28
- package/dist/Lexical.prod-CQl7J8uU.js.map +0 -1
- package/dist/LexicalLink.prod-D8-zZW0o.js.map +0 -1
- package/dist/LexicalList.prod-B4_DTbPB.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-DkL40qIf.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-DkL40qIf.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-DkL40qIf.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-DkL40qIf.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-DkL40qIf.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-DkL40qIf.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 { H as _, a as p,
|
|
4
|
+
import { H as _, a as p, z as h } from "../../../../Lexical.prod-CZAqLAjm.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";
|
|
@@ -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 { a9 as _, aa as y, ab as C, ac as k } from "../../../../Lexical.prod-
|
|
3
|
+
import { u as h } from "../../../../LexicalComposerContext.prod-BCXERl09.js";
|
|
4
|
+
import { a9 as _, aa as y, ab as C, ac as k } from "../../../../Lexical.prod-CZAqLAjm.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-DkL40qIf.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-DkL40qIf.js";
|
|
4
|
+
import "../../../../../helpers-DYmWlhgC.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-DYmWlhgC.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 Y } from "react/jsx-runtime";
|
|
2
|
-
import { u as $ } from "../../../../LexicalComposerContext.prod-
|
|
2
|
+
import { u as $ } from "../../../../LexicalComposerContext.prod-BCXERl09.js";
|
|
3
3
|
import { c as q } from "../../../../clsx-OuTLNxxd.js";
|
|
4
|
-
import { m as
|
|
4
|
+
import { m as O, N as G, x as J } from "../../../../LexicalLink.prod-kqeQGYSo.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 { I as X, H as f, a8 as Z, a7 as tt, a as w, f as et, M as ot, x as rt } from "../../../../Lexical.prod-CZAqLAjm.js";
|
|
7
|
+
import { A as nt } from "../../../../TablePlugin-DkL40qIf.js";
|
|
8
|
+
import { e as it } from "../../../../helpers-DYmWlhgC.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";
|
|
@@ -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, I = (p) => {
|
|
35
35
|
let n = p;
|
|
36
36
|
for (; n; ) {
|
|
37
|
-
if (
|
|
37
|
+
if (O(n))
|
|
38
38
|
return n;
|
|
39
39
|
n = n.getParent();
|
|
40
40
|
}
|
|
41
41
|
return null;
|
|
42
|
-
},
|
|
42
|
+
}, M = (p) => {
|
|
43
43
|
let n = p;
|
|
44
44
|
for (; n; ) {
|
|
45
|
-
if (
|
|
45
|
+
if (O(n))
|
|
46
46
|
return {
|
|
47
47
|
active: !0,
|
|
48
48
|
url: n.getURL(),
|
|
@@ -52,7 +52,7 @@ const mt = 200, M = (p) => {
|
|
|
52
52
|
}
|
|
53
53
|
return !1;
|
|
54
54
|
}, Wt = ({ parentScrollPosition: p }) => {
|
|
55
|
-
const n = ut(), [c] = $(), { flyout:
|
|
55
|
+
const n = ut(), [c] = $(), { flyout: z, showFlyout: E, hideFlyout: C, isVisible: u } = ct(), d = a(void 0), N = a(!1), y = a(""), g = a(""), [L, U] = Q({ active: !1, url: "", linktext: "" }), P = a(u), x = a(null), S = a(null), T = a(void 0), b = () => {
|
|
56
56
|
c.update(() => {
|
|
57
57
|
const e = f();
|
|
58
58
|
x.current = e;
|
|
@@ -91,7 +91,7 @@ const mt = 200, M = (p) => {
|
|
|
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 = I(i);
|
|
95
95
|
if (t && t !== "") {
|
|
96
96
|
if (s) {
|
|
97
97
|
const l = rt(t);
|
|
@@ -102,12 +102,12 @@ const mt = 200, M = (p) => {
|
|
|
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
109
|
}, V = () => {
|
|
110
|
-
c.dispatchCommand(
|
|
110
|
+
c.dispatchCommand(G, null), D();
|
|
111
111
|
}, j = {
|
|
112
112
|
children: /* @__PURE__ */ k(
|
|
113
113
|
nt,
|
|
@@ -125,7 +125,7 @@ const mt = 200, M = (p) => {
|
|
|
125
125
|
}, [d, u]), m(() => {
|
|
126
126
|
const e = (r) => {
|
|
127
127
|
if (w(r) && r.isCollapsed()) {
|
|
128
|
-
const i =
|
|
128
|
+
const i = M(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,7 +158,7 @@ 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 = M(r.anchor.getNode()), s = (_ = "", W = "") => {
|
|
162
162
|
F(), setTimeout(() => {
|
|
163
163
|
var K;
|
|
164
164
|
return (K = d.current) == null ? void 0 : K.setDefaults(_, W);
|
|
@@ -177,7 +177,7 @@ const mt = 200, M = (p) => {
|
|
|
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 = I(i);
|
|
181
181
|
if (s)
|
|
182
182
|
return {
|
|
183
183
|
active: !0,
|
|
@@ -230,11 +230,11 @@ const mt = 200, M = (p) => {
|
|
|
230
230
|
children: /* @__PURE__ */ k(lt, { name: "Link", size: 20 })
|
|
231
231
|
}
|
|
232
232
|
),
|
|
233
|
-
|
|
233
|
+
z
|
|
234
234
|
] }) });
|
|
235
235
|
};
|
|
236
236
|
export {
|
|
237
237
|
Wt as LinkPlugin,
|
|
238
|
-
|
|
238
|
+
M as getLinkNodeTag
|
|
239
239
|
};
|
|
240
240
|
//# sourceMappingURL=LinkPlugin.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
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 y, H as f, q as H } from "../../../../LexicalList.prod-
|
|
4
|
-
import { _ as O } from "../../../../LexicalSelection.prod-
|
|
2
|
+
import { u as S } from "../../../../LexicalComposerContext.prod-BCXERl09.js";
|
|
3
|
+
import { Y as N, Q as P, G as k, K as y, H as f, q as H } from "../../../../LexicalList.prod-BEKqHUO2.js";
|
|
4
|
+
import { _ as O } from "../../../../LexicalSelection.prod-B1DTqn9H.js";
|
|
5
5
|
import { useState as p, useEffect as K } from "react";
|
|
6
6
|
import { c as q } from "../../../../clsx-OuTLNxxd.js";
|
|
7
|
-
import { a7 as x, f as U, N as $, H as b, a as h, q as w, V as B } from "../../../../Lexical.prod-
|
|
7
|
+
import { a7 as x, f as U, N as $, H as b, a as h, q as w, V as B } from "../../../../Lexical.prod-CZAqLAjm.js";
|
|
8
8
|
import { Icon as E } from "../../../Icon/Icon.js";
|
|
9
9
|
import { s as u } from "../../../../RteEditor.module-oFMKEW6f.js";
|
|
10
10
|
import { useTranslation as V } from "../../hooks/useTranslation.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { u as m } from "../../../../LexicalComposerContext.prod-
|
|
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-
|
|
4
|
-
import { c as i } from "../../../../LexicalUtils.prod-
|
|
5
|
-
import { N as d } from "../../../../LexicalClipboard.prod-
|
|
3
|
+
import { a1 as f, X as u, H as p } from "../../../../Lexical.prod-CZAqLAjm.js";
|
|
4
|
+
import { c as i } from "../../../../LexicalUtils.prod-C-NXnTzK.js";
|
|
5
|
+
import { N as d } from "../../../../LexicalClipboard.prod-B0GrUtzr.js";
|
|
6
6
|
import { d as D } from "../../../../index-B3c5pcHk.js";
|
|
7
7
|
const g = () => {
|
|
8
8
|
const [a] = m(), l = (t) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { b as B } from "../../../../TablePlugin-
|
|
3
|
+
import { b as B } from "../../../../TablePlugin-DkL40qIf.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-
|
|
28
|
+
import "../../../../SortableProvider-Ck_XnBVq.js";
|
|
29
29
|
export {
|
|
30
30
|
B as AddTableForm
|
|
31
31
|
};
|
package/dist/components/RteEditor/Plugins/TablePlugin/TableCellContextMenu/TableCellContextMenu.js
CHANGED
|
@@ -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-
|
|
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-
|
|
2
|
+
import "../../../../LexicalComposerContext.prod-BCXERl09.js";
|
|
3
3
|
import "../../../../clsx-OuTLNxxd.js";
|
|
4
|
-
import "../../../../LexicalTable.prod-
|
|
5
|
-
import "../../../../Lexical.prod-
|
|
4
|
+
import "../../../../LexicalTable.prod-DtAMjSWg.js";
|
|
5
|
+
import "../../../../Lexical.prod-CZAqLAjm.js";
|
|
6
6
|
import "react";
|
|
7
|
-
import { T as F } from "../../../../TablePlugin-
|
|
7
|
+
import { T as F } from "../../../../TablePlugin-DkL40qIf.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-
|
|
32
|
+
import "../../../../SortableProvider-Ck_XnBVq.js";
|
|
33
33
|
export {
|
|
34
34
|
F as TablePlugin
|
|
35
35
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { V as g } from "../../../../Lexical.prod-
|
|
1
|
+
import { R as d, g as h, F as m, L as S, T as w, O as E, d as C, _ as p, x as I } from "../../../../LexicalTable.prod-DtAMjSWg.js";
|
|
2
|
+
import { V as g } from "../../../../Lexical.prod-CZAqLAjm.js";
|
|
3
3
|
const b = 100, F = (e, n) => {
|
|
4
|
-
const t =
|
|
4
|
+
const t = I(0, 0, !1);
|
|
5
5
|
for (let o = 0; o < e; o++) {
|
|
6
|
-
const r =
|
|
6
|
+
const r = p();
|
|
7
7
|
for (let l = 0; l < n; l++) {
|
|
8
|
-
const s =
|
|
8
|
+
const s = C(0, void 0, b / n);
|
|
9
9
|
s.append(g()), r.append(s);
|
|
10
10
|
}
|
|
11
11
|
t.append(r);
|
|
@@ -18,11 +18,11 @@ const b = 100, F = (e, n) => {
|
|
|
18
18
|
r && r.select();
|
|
19
19
|
}
|
|
20
20
|
}, O = (e) => {
|
|
21
|
-
|
|
21
|
+
d(e).remove();
|
|
22
22
|
}, L = (e, n) => {
|
|
23
|
-
const t =
|
|
23
|
+
const t = p(), o = w(e), r = o.getChildrenSize();
|
|
24
24
|
for (let s = 0; s < r; s++) {
|
|
25
|
-
const c =
|
|
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,13 +30,13 @@ const b = 100, F = (e, n) => {
|
|
|
30
30
|
l && l.select();
|
|
31
31
|
}, z = (e, n) => {
|
|
32
32
|
const t = w(e);
|
|
33
|
-
if (!
|
|
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 =
|
|
36
|
-
let s =
|
|
35
|
+
const o = E(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 =
|
|
39
|
+
const a = C(0);
|
|
40
40
|
a.append(g());
|
|
41
41
|
const f = c[i].getChildren()[s];
|
|
42
42
|
f && (n === "insertColumnLeft" ? f.insertBefore(a) : f.insertAfter(a)), c.forEach((T) => {
|
|
@@ -50,10 +50,10 @@ const b = 100, F = (e, n) => {
|
|
|
50
50
|
u && u.select();
|
|
51
51
|
}, P = (e) => {
|
|
52
52
|
var r;
|
|
53
|
-
if (!
|
|
53
|
+
if (!h(e))
|
|
54
54
|
throw new Error("Selected node is not a TableCellNode");
|
|
55
|
-
const n =
|
|
56
|
-
t === 1 ? O(e) :
|
|
55
|
+
const n = d(e), t = ((r = n.getFirstChild()) == null ? void 0 : r.getChildrenSize()) || 0, o = m(e);
|
|
56
|
+
t === 1 ? O(e) : S(n, o);
|
|
57
57
|
};
|
|
58
58
|
export {
|
|
59
59
|
F as createTable,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsxs as P, jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { u as y } from "../../../../LexicalComposerContext.prod-
|
|
3
|
-
import { H as h, a as g, M as C } from "../../../../Lexical.prod-
|
|
2
|
+
import { u as y } from "../../../../LexicalComposerContext.prod-BCXERl09.js";
|
|
3
|
+
import { H as h, a as g, M as C } from "../../../../Lexical.prod-CZAqLAjm.js";
|
|
4
4
|
import { useState as L, useRef as E, useCallback as T, useEffect as m } from "react";
|
|
5
|
-
import { v as b } from "../../../../LexicalTable.prod-
|
|
5
|
+
import { v as b } from "../../../../LexicalTable.prod-DtAMjSWg.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-
|
|
10
|
+
import { T as S } from "../../../../TablePlugin-DkL40qIf.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 v, removeScrollableContainers as H } 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-
|
|
6
|
+
import { T as a } from "../../../TablePlugin-DkL40qIf.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,
|
|
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] =
|
|
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 =
|
|
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;
|