@uva-glass/component-library 3.0.14 → 3.1.1
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-LIa6Q94i.js → Lexical.prod-Bu-Iw9VX.js} +1390 -1361
- package/dist/Lexical.prod-Bu-Iw9VX.js.map +1 -0
- package/dist/{LexicalClipboard.prod-LIoPcoQF.js → LexicalClipboard.prod-C5dHfEke.js} +18 -18
- package/dist/{LexicalClipboard.prod-LIoPcoQF.js.map → LexicalClipboard.prod-C5dHfEke.js.map} +1 -1
- package/dist/{LexicalLink.prod-N0i4wDOR.js → LexicalLink.prod-DdERpPPj.js} +14 -14
- package/dist/{LexicalLink.prod-N0i4wDOR.js.map → LexicalLink.prod-DdERpPPj.js.map} +1 -1
- package/dist/{LexicalList.prod-BKa7Tljk.js → LexicalList.prod-CzJqqstH.js} +91 -95
- package/dist/LexicalList.prod-CzJqqstH.js.map +1 -0
- package/dist/LexicalSelection.prod-CkM-3E0b.js +90 -0
- package/dist/{LexicalSelection.prod-Cid08b3Z.js.map → LexicalSelection.prod-CkM-3E0b.js.map} +1 -1
- package/dist/LexicalTable.prod-BsmIydKv.js +1550 -0
- package/dist/LexicalTable.prod-BsmIydKv.js.map +1 -0
- package/dist/LexicalUtils.prod-BVZbsLIa.js +107 -0
- package/dist/LexicalUtils.prod-BVZbsLIa.js.map +1 -0
- package/dist/{TablePlugin-DlTujN8R.js → TablePlugin-DKzssVbg.js} +41 -41
- package/dist/{TablePlugin-DlTujN8R.js.map → TablePlugin-DKzssVbg.js.map} +1 -1
- package/dist/assets/FeedbackBar.css +1 -0
- package/dist/components/Buttons/Button.stories.js +1 -1
- package/dist/components/Buttons/LinkButton.stories.js +1 -1
- package/dist/components/Buttons/MenuButton.stories.js +1 -1
- 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 +1 -1
- package/dist/components/CheckboxTree/CheckboxTree.stories.js +2 -2
- package/dist/components/Chip/Chip.stories.js +1 -1
- package/dist/components/Drawer/Drawer.stories.js +1 -1
- package/dist/components/FeedbackBar/FeedbackBar.d.ts +3 -0
- package/dist/components/FeedbackBar/FeedbackBar.js +30 -0
- package/dist/components/FeedbackBar/FeedbackBar.js.map +1 -0
- package/dist/components/FeedbackBar/FeedbackBar.stories.d.ts +7 -0
- package/dist/components/FeedbackBar/FeedbackBar.stories.js +33 -0
- package/dist/components/FeedbackBar/FeedbackBar.stories.js.map +1 -0
- package/dist/components/FeedbackBar/FeedbackBar.test.d.ts +0 -0
- package/dist/components/FeedbackBar/FeedbackBar.test.js +14 -0
- package/dist/components/FeedbackBar/FeedbackBar.test.js.map +1 -0
- package/dist/components/FeedbackBar/index.d.ts +1 -0
- package/dist/components/FeedbackBar/index.js +5 -0
- package/dist/components/FeedbackBar/index.js.map +1 -0
- package/dist/components/FormInput/FormInput.js +1 -1
- 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 +2 -2
- 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 +1 -1
- package/dist/components/MultiSelect/index.js +1 -1
- package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +1 -1
- package/dist/components/OverlayStepBar/OverlayStepBar.js +1 -1
- package/dist/components/PeriodSelector/PeriodSelector.js +1 -1
- package/dist/components/PeriodSelector/PeriodSelector.stories.js +1 -1
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +3 -3
- package/dist/components/RteEditor/EditorHeader/EditorHeader.js +1 -1
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +5 -5
- package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +2 -2
- package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +2 -2
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +4 -4
- package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +25 -25
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +8 -8
- package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +3 -3
- package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +18 -18
- package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +14 -14
- package/dist/components/RteEditor/Plugins/index.js +1 -1
- package/dist/components/RteEditor/RteEditor.js +132 -130
- package/dist/components/RteEditor/RteEditor.js.map +1 -1
- package/dist/components/RteEditor/helpers.js +11 -11
- package/dist/components/SelectListbox/SelectListBox.stories.js +1 -1
- package/dist/components/Sortable/Sortable.stories.js +1 -1
- package/dist/components/Timeline/Timeline.test.js +1 -1
- package/dist/components/ToggleSwitch/ToggleSwitch.stories.js +1 -1
- package/dist/components/VarIndicator/VarIndicator.stories.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +84 -82
- package/dist/components/index.js.map +1 -1
- package/dist/{helpers-BFkCPTTp.js → helpers-D13uK95u.js} +19 -19
- package/dist/{helpers-BFkCPTTp.js.map → helpers-D13uK95u.js.map} +1 -1
- package/dist/{index-DpyOH4wL.js → index-C7jFUWYs.js} +2 -2
- package/dist/{index-DpyOH4wL.js.map → index-C7jFUWYs.js.map} +1 -1
- package/dist/{index-BldK5xU9.js → index-DH9Vbk37.js} +3 -9
- package/dist/index-DH9Vbk37.js.map +1 -0
- package/dist/index.js +84 -82
- package/dist/index.js.map +1 -1
- package/dist/storybook__react.d.js +1887 -1874
- package/dist/storybook__react.d.js.map +1 -1
- package/package.json +20 -20
- package/dist/Lexical.prod-LIa6Q94i.js.map +0 -1
- package/dist/LexicalList.prod-BKa7Tljk.js.map +0 -1
- package/dist/LexicalSelection.prod-Cid08b3Z.js +0 -85
- package/dist/LexicalTable.prod-B1mw85mv.js +0 -1545
- package/dist/LexicalTable.prod-B1mw85mv.js.map +0 -1
- package/dist/LexicalUtils.prod-DstvN5hc.js +0 -109
- package/dist/LexicalUtils.prod-DstvN5hc.js.map +0 -1
- package/dist/index-BldK5xU9.js.map +0 -1
|
@@ -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 "../../TablePlugin-
|
|
19
|
+
import "../../TablePlugin-DKzssVbg.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,5 +1,5 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { fn as i } from "../../index-
|
|
2
|
+
import { fn as i } from "../../index-C7jFUWYs.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 { fn as r } from "../../index-
|
|
2
|
+
import { fn as r } from "../../index-C7jFUWYs.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 e } from "react/jsx-runtime";
|
|
2
2
|
import { useState as d, useRef as g } from "react";
|
|
3
|
-
import { fn as p } from "../../index-
|
|
3
|
+
import { fn as p } from "../../index-C7jFUWYs.js";
|
|
4
4
|
import { InputField as o } from "./InputField.js";
|
|
5
5
|
import { Container as u } from "../../storyComponents/Container/Container.js";
|
|
6
6
|
import { Icon as f } from "../Icon/Icon.js";
|
|
@@ -16,7 +16,7 @@ import "../GridRow/GridRow.js";
|
|
|
16
16
|
import "../IconButton/IconButton.js";
|
|
17
17
|
import "../Input/Input.js";
|
|
18
18
|
import "react-router";
|
|
19
|
-
import "../../TablePlugin-
|
|
19
|
+
import "../../TablePlugin-DKzssVbg.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,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 { fn as i } from "../../index-
|
|
3
|
+
import { fn as i } from "../../index-C7jFUWYs.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 { fn as d } from "../../index-
|
|
2
|
+
import { fn as d } from "../../index-C7jFUWYs.js";
|
|
3
3
|
import { useState as p } from "react";
|
|
4
|
-
import { M as e } from "../../TablePlugin-
|
|
4
|
+
import { M as e } from "../../TablePlugin-DKzssVbg.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-DKzssVbg.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";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { fn as a } from "../../index-
|
|
2
|
+
import { fn as a } from "../../index-C7jFUWYs.js";
|
|
3
3
|
import { OverlayCloseButton as o } from "./OverlayCloseButton.js";
|
|
4
4
|
import { Container as l } from "../../storyComponents/Container/Container.js";
|
|
5
5
|
const n = "<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-DKzssVbg.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";
|
|
@@ -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-DKzssVbg.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 r } from "react/jsx-runtime";
|
|
2
|
-
import { fn as t } from "../../index-
|
|
2
|
+
import { fn as t } from "../../index-C7jFUWYs.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
1
|
import { jsx as r, jsxs as e } from "react/jsx-runtime";
|
|
2
|
-
import { fn as a } from "../../index-
|
|
2
|
+
import { fn as a } from "../../index-C7jFUWYs.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";
|
|
@@ -12,13 +12,13 @@ import "@react-aria/dialog";
|
|
|
12
12
|
import "@react-aria/focus";
|
|
13
13
|
import "@react-aria/overlays";
|
|
14
14
|
import "../OverlayCloseButton/OverlayCloseButton.js";
|
|
15
|
+
import { Repeater as i } from "../Repeater/Repeater.js";
|
|
15
16
|
import "../GridRow/GridRow.js";
|
|
16
17
|
import "../IconButton/IconButton.js";
|
|
17
18
|
import "../Input/Input.js";
|
|
18
19
|
import "../InputField/InputField.js";
|
|
19
20
|
import "react-router";
|
|
20
|
-
import "../../TablePlugin-
|
|
21
|
-
import { Repeater as i } from "../Repeater/Repeater.js";
|
|
21
|
+
import "../../TablePlugin-DKzssVbg.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";
|
|
@@ -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-DKzssVbg.js";
|
|
18
18
|
import "../Providers/LanguageProvider.js";
|
|
19
19
|
import "../Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
|
|
20
20
|
import "../hooks/components/Flyout.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import { o as u } from "../../../../LexicalComposerContext.prod-DLlRM5wP.js";
|
|
3
3
|
import { c as f } from "../../../../clsx-OuTLNxxd.js";
|
|
4
|
-
import { a as _, l as p,
|
|
5
|
-
import { useState as s, useEffect as
|
|
6
|
-
import { Icon as
|
|
4
|
+
import { a as _, l as p, G as h } from "../../../../Lexical.prod-Bu-Iw9VX.js";
|
|
5
|
+
import { useState as s, useEffect as k } from "react";
|
|
6
|
+
import { Icon as I } from "../../../Icon/Icon.js";
|
|
7
7
|
import { s as a } from "../../../../RteEditor.module-oFMKEW6f.js";
|
|
8
8
|
import { useTranslation as B } from "../../hooks/useTranslation.js";
|
|
9
9
|
const T = {
|
|
@@ -13,7 +13,7 @@ const T = {
|
|
|
13
13
|
const t = B(), [i] = u(), [e, c] = s(!1), [n, m] = s(!1), d = (o) => {
|
|
14
14
|
i.dispatchCommand(h, o);
|
|
15
15
|
};
|
|
16
|
-
return
|
|
16
|
+
return k(() => {
|
|
17
17
|
const o = i.registerUpdateListener(({ editorState: b }) => {
|
|
18
18
|
b.read(() => {
|
|
19
19
|
const r = _();
|
|
@@ -37,7 +37,7 @@ const T = {
|
|
|
37
37
|
"aria-label": `${o === "bold" ? t.aria.labels.bold : t.aria.labels.italic}`,
|
|
38
38
|
"aria-keyshortcuts": `${o === "bold" ? t.aria.keyshortcuts.bold : t.aria.keyshortcuts.italic}`,
|
|
39
39
|
type: "button",
|
|
40
|
-
children: /* @__PURE__ */ l(
|
|
40
|
+
children: /* @__PURE__ */ l(I, { name: T[o], size: 24 })
|
|
41
41
|
},
|
|
42
42
|
o
|
|
43
43
|
)) });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as f, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { c as i } from "../../../../clsx-OuTLNxxd.js";
|
|
3
3
|
import { o as h } from "../../../../LexicalComposerContext.prod-DLlRM5wP.js";
|
|
4
|
-
import {
|
|
4
|
+
import { ap as _, aq as y, ar as C, as as k } from "../../../../Lexical.prod-Bu-Iw9VX.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-DKzssVbg.js";
|
|
21
21
|
import { s as r } from "../../../../RteEditor.module-oFMKEW6f.js";
|
|
22
22
|
import { useTranslation as x } from "../../hooks/useTranslation.js";
|
|
23
23
|
import "../LinkPlugin/LinkContextMenu/LinkContextMenu.js";
|
|
@@ -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-DKzssVbg.js";
|
|
4
|
+
import "../../../../../helpers-D13uK95u.js";
|
|
5
5
|
import "../../../../Icon/Icon.js";
|
|
6
6
|
import "../../../../Buttons/Button.js";
|
|
7
7
|
import "../../../../Buttons/LinkButton.js";
|
|
@@ -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-D13uK95u.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 W } from "react/jsx-runtime";
|
|
2
2
|
import { o as Y } from "../../../../LexicalComposerContext.prod-DLlRM5wP.js";
|
|
3
3
|
import { c as q } from "../../../../clsx-OuTLNxxd.js";
|
|
4
|
-
import { d as U, O as G, N as J } from "../../../../LexicalLink.prod-
|
|
4
|
+
import { d as U, O as G, N as J } from "../../../../LexicalLink.prod-DdERpPPj.js";
|
|
5
5
|
import { useRef as a, useState as X, useEffect as m } from "react";
|
|
6
|
-
import { S as Z, a as f, i as $,
|
|
7
|
-
import { A as nt } from "../../../../TablePlugin-
|
|
8
|
-
import { e as it } from "../../../../helpers-
|
|
6
|
+
import { S as Z, a as f, i as $, ao as tt, l as N, N as et, g as ot, Q as rt } from "../../../../Lexical.prod-Bu-Iw9VX.js";
|
|
7
|
+
import { A as nt } from "../../../../TablePlugin-DKzssVbg.js";
|
|
8
|
+
import { e as it } from "../../../../helpers-D13uK95u.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";
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import { jsx as d } from "react/jsx-runtime";
|
|
2
2
|
import { o as S } from "../../../../LexicalComposerContext.prod-DLlRM5wP.js";
|
|
3
|
-
import {
|
|
4
|
-
import { _ as O } from "../../../../LexicalSelection.prod-
|
|
3
|
+
import { s as C, r as P, e as k, H as y, t as f, Z as E } from "../../../../LexicalList.prod-CzJqqstH.js";
|
|
4
|
+
import { _ as O } from "../../../../LexicalSelection.prod-CkM-3E0b.js";
|
|
5
5
|
import { useState as p, useEffect as D } from "react";
|
|
6
6
|
import { c as x } from "../../../../clsx-OuTLNxxd.js";
|
|
7
|
-
import {
|
|
8
|
-
import { Icon as
|
|
7
|
+
import { ao as T, N as U, P as v, a as b, l as h, E as w, T as B } from "../../../../Lexical.prod-Bu-Iw9VX.js";
|
|
8
|
+
import { Icon as $ } from "../../../Icon/Icon.js";
|
|
9
9
|
import { s as u } from "../../../../RteEditor.module-oFMKEW6f.js";
|
|
10
|
-
import { useTranslation as
|
|
11
|
-
const
|
|
10
|
+
import { useTranslation as j } from "../../hooks/useTranslation.js";
|
|
11
|
+
const z = {
|
|
12
12
|
bullet: "BulletList",
|
|
13
13
|
number: "NumberedList"
|
|
14
|
-
},
|
|
15
|
-
const l =
|
|
14
|
+
}, H = ["bullet", "number"], V = () => {
|
|
15
|
+
const l = j(), [e] = S(), [g, s] = p("paragraph"), [c, L] = p(!1), [m, _] = p(!1), I = () => {
|
|
16
16
|
e.update(() => {
|
|
17
17
|
const t = b();
|
|
18
|
-
h(t) && O(t, () =>
|
|
18
|
+
h(t) && O(t, () => B());
|
|
19
19
|
});
|
|
20
20
|
}, K = (t) => {
|
|
21
|
-
t === "number" && g !== "number" ? (e.dispatchCommand(
|
|
21
|
+
t === "number" && g !== "number" ? (e.dispatchCommand(P, void 0), s("number")) : t === "bullet" && g !== "bullet" ? (e.dispatchCommand(k, void 0), s("bullet")) : (I(), s("paragraph"));
|
|
22
22
|
};
|
|
23
23
|
return D(() => {
|
|
24
24
|
const t = e.registerCommand(
|
|
25
25
|
T,
|
|
26
|
-
(r) => r.ctrlKey && r.shiftKey && r.code === "Digit7" ? (r.preventDefault(), m ? e.dispatchCommand(C, void 0) : e.dispatchCommand(
|
|
26
|
+
(r) => r.ctrlKey && r.shiftKey && r.code === "Digit7" ? (r.preventDefault(), m ? e.dispatchCommand(C, void 0) : e.dispatchCommand(P, void 0), !0) : r.ctrlKey && r.shiftKey && r.code === "Digit8" ? (r.preventDefault(), c ? e.dispatchCommand(C, void 0) : e.dispatchCommand(k, void 0), !0) : !1,
|
|
27
27
|
U
|
|
28
28
|
);
|
|
29
29
|
return () => {
|
|
@@ -31,21 +31,21 @@ const j = {
|
|
|
31
31
|
};
|
|
32
32
|
}, [e, m, c]), D(() => {
|
|
33
33
|
e.registerCommand(
|
|
34
|
-
|
|
34
|
+
v,
|
|
35
35
|
(r) => (r.preventDefault(), e.update(() => {
|
|
36
36
|
const i = b();
|
|
37
37
|
if (!h(i))
|
|
38
38
|
return;
|
|
39
|
-
const o = i.anchor.getNode(),
|
|
40
|
-
if (!y(
|
|
39
|
+
const o = i.anchor.getNode(), n = o.getParent();
|
|
40
|
+
if (!y(n))
|
|
41
41
|
return;
|
|
42
|
-
const a =
|
|
42
|
+
const a = n.getParent();
|
|
43
43
|
if (f(a)) {
|
|
44
44
|
const N = E(f(a) ? a.getListType() : "bullet");
|
|
45
|
-
|
|
45
|
+
n.append(N), N.append(o);
|
|
46
46
|
}
|
|
47
47
|
}), !0),
|
|
48
|
-
|
|
48
|
+
w
|
|
49
49
|
);
|
|
50
50
|
const t = e.registerUpdateListener(({ editorState: r }) => {
|
|
51
51
|
r.read(() => {
|
|
@@ -55,14 +55,14 @@ const j = {
|
|
|
55
55
|
for (; o !== null; ) {
|
|
56
56
|
if (f(o)) {
|
|
57
57
|
const a = o.getTag();
|
|
58
|
-
L(a === "ul"), _(a === "ol"), a === "ul" &&
|
|
58
|
+
L(a === "ul"), _(a === "ol"), a === "ul" && s("bullet"), a === "ol" && s("number");
|
|
59
59
|
return;
|
|
60
60
|
}
|
|
61
|
-
const
|
|
62
|
-
if (
|
|
63
|
-
o =
|
|
61
|
+
const n = o.getParent();
|
|
62
|
+
if (n === null) break;
|
|
63
|
+
o = n;
|
|
64
64
|
}
|
|
65
|
-
L(!1), _(!1),
|
|
65
|
+
L(!1), _(!1), s("paragraph");
|
|
66
66
|
}
|
|
67
67
|
return !1;
|
|
68
68
|
});
|
|
@@ -70,7 +70,7 @@ const j = {
|
|
|
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: H.map((t) => /* @__PURE__ */ d(
|
|
74
74
|
"button",
|
|
75
75
|
{
|
|
76
76
|
onClick: () => K(t),
|
|
@@ -84,12 +84,12 @@ const j = {
|
|
|
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($, { name: z[t], size: 24 })
|
|
88
88
|
},
|
|
89
89
|
t
|
|
90
90
|
)) });
|
|
91
91
|
};
|
|
92
92
|
export {
|
|
93
|
-
|
|
93
|
+
V as ListPlugin
|
|
94
94
|
};
|
|
95
95
|
//# sourceMappingURL=ListPlugin.js.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { o as m } from "../../../../LexicalComposerContext.prod-DLlRM5wP.js";
|
|
2
2
|
import { useEffect as c } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { D as
|
|
3
|
+
import { ad as f, y as d, a as p } from "../../../../Lexical.prod-Bu-Iw9VX.js";
|
|
4
|
+
import { L as i } from "../../../../LexicalUtils.prod-BVZbsLIa.js";
|
|
5
|
+
import { D as u } from "../../../../LexicalClipboard.prod-C5dHfEke.js";
|
|
6
6
|
import { d as D } from "../../../../index-B3c5pcHk.js";
|
|
7
|
-
const
|
|
7
|
+
const P = () => {
|
|
8
8
|
const [a] = m(), l = (t) => {
|
|
9
9
|
t.preventDefault(), a.update(() => {
|
|
10
|
-
const r =
|
|
10
|
+
const r = p(), n = i(t, InputEvent) || i(t, KeyboardEvent) ? null : t.clipboardData;
|
|
11
11
|
if (n != null && r !== null) {
|
|
12
12
|
const e = n.getData("text/html"), o = new DataTransfer(), s = new D.MSWordNormalizer();
|
|
13
|
-
o.setData("text/html", e), s.isActive(e) && o.setData("text/html", s.normalize(e)),
|
|
13
|
+
o.setData("text/html", e), s.isActive(e) && o.setData("text/html", s.normalize(e)), u(o, r, a);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
};
|
|
@@ -18,7 +18,7 @@ const z = () => {
|
|
|
18
18
|
const t = a.registerCommand(
|
|
19
19
|
f,
|
|
20
20
|
(r) => r instanceof ClipboardEvent ? (l(r), !0) : !1,
|
|
21
|
-
|
|
21
|
+
d
|
|
22
22
|
);
|
|
23
23
|
return () => {
|
|
24
24
|
t();
|
|
@@ -26,6 +26,6 @@ const z = () => {
|
|
|
26
26
|
}, [a]), null;
|
|
27
27
|
};
|
|
28
28
|
export {
|
|
29
|
-
|
|
29
|
+
P as PasteHandlerPlugin
|
|
30
30
|
};
|
|
31
31
|
//# sourceMappingURL=PasteHandlerPlugin.js.map
|
|
@@ -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-DKzssVbg.js";
|
|
4
4
|
import "../../../Buttons/Button.js";
|
|
5
5
|
import "../../../Buttons/LinkButton.js";
|
|
6
6
|
import "@react-aria/button";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "../../../../LexicalComposerContext.prod-DLlRM5wP.js";
|
|
3
3
|
import "../../../../clsx-OuTLNxxd.js";
|
|
4
|
-
import "../../../../LexicalTable.prod-
|
|
5
|
-
import "../../../../Lexical.prod-
|
|
4
|
+
import "../../../../LexicalTable.prod-BsmIydKv.js";
|
|
5
|
+
import "../../../../Lexical.prod-Bu-Iw9VX.js";
|
|
6
6
|
import "react";
|
|
7
|
-
import { T as F } from "../../../../TablePlugin-
|
|
7
|
+
import { T as F } from "../../../../TablePlugin-DKzssVbg.js";
|
|
8
8
|
import "./helpers.js";
|
|
9
9
|
import "../../hooks/useFlyout.js";
|
|
10
10
|
import "../../../Icon/Icon.js";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { T as u } from "../../../../Lexical.prod-
|
|
3
|
-
const
|
|
1
|
+
import { H as d, T as h, B as m, j as S, W as w, P as v, v as C, K as p, L as E } from "../../../../LexicalTable.prod-BsmIydKv.js";
|
|
2
|
+
import { T as u } from "../../../../Lexical.prod-Bu-Iw9VX.js";
|
|
3
|
+
const T = 100, A = (e, n) => {
|
|
4
4
|
const t = E(0, 0, !1);
|
|
5
5
|
for (let o = 0; o < e; o++) {
|
|
6
6
|
const r = p();
|
|
7
7
|
for (let l = 0; l < n; l++) {
|
|
8
|
-
const s = C(0, void 0,
|
|
8
|
+
const s = C(0, void 0, T / n);
|
|
9
9
|
s.append(u()), r.append(s);
|
|
10
10
|
}
|
|
11
11
|
t.append(r);
|
|
12
12
|
}
|
|
13
13
|
return t;
|
|
14
|
-
},
|
|
14
|
+
}, B = (e) => {
|
|
15
15
|
const n = w(e), t = n.getNextSibling() || n.getPreviousSibling(), o = n.getParentOrThrow();
|
|
16
16
|
if (o.getChildrenSize() > 1 ? n.remove() : o.remove(), t !== null) {
|
|
17
17
|
const r = t.getFirstDescendant();
|
|
@@ -19,7 +19,7 @@ const b = 100, D = (e, n) => {
|
|
|
19
19
|
}
|
|
20
20
|
}, I = (e) => {
|
|
21
21
|
d(e).remove();
|
|
22
|
-
},
|
|
22
|
+
}, L = (e, n) => {
|
|
23
23
|
const t = p(), o = w(e), r = o.getChildrenSize();
|
|
24
24
|
for (let s = 0; s < r; s++) {
|
|
25
25
|
const c = C(0);
|
|
@@ -28,27 +28,27 @@ const b = 100, D = (e, n) => {
|
|
|
28
28
|
n === "insertRowAbove" ? o.insertBefore(t) : o.insertAfter(t);
|
|
29
29
|
const l = t.getFirstDescendant();
|
|
30
30
|
l && l.select();
|
|
31
|
-
},
|
|
31
|
+
}, O = (e, n) => {
|
|
32
32
|
const t = w(e);
|
|
33
33
|
if (!h(e))
|
|
34
34
|
throw new Error("Selected node is not a TableCellNode");
|
|
35
35
|
const o = v(e), r = t.getChildren().length, l = d(e);
|
|
36
36
|
let s = m(e);
|
|
37
|
-
const c = l.getChildren(),
|
|
38
|
-
for (let i = 0; i <
|
|
37
|
+
const c = l.getChildren(), b = c.length;
|
|
38
|
+
for (let i = 0; i < b; i++) {
|
|
39
39
|
const a = C(0);
|
|
40
40
|
a.append(u());
|
|
41
41
|
const f = c[i].getChildren()[s];
|
|
42
|
-
f && (n === "insertColumnLeft" ? f.insertBefore(a) : f.insertAfter(a)), c.forEach((
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
f && (n === "insertColumnLeft" ? f.insertBefore(a) : f.insertAfter(a)), c.forEach((R) => {
|
|
43
|
+
R.getChildren().forEach((x) => {
|
|
44
|
+
x.setWidth(T / r);
|
|
45
45
|
});
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
48
|
s = n === "insertColumnLeft" ? s : s + 1;
|
|
49
49
|
const g = c[o].getChildren()[s];
|
|
50
50
|
g && g.select();
|
|
51
|
-
},
|
|
51
|
+
}, z = (e) => {
|
|
52
52
|
var r;
|
|
53
53
|
if (!h(e))
|
|
54
54
|
throw new Error("Selected node is not a TableCellNode");
|
|
@@ -56,11 +56,11 @@ const b = 100, D = (e, n) => {
|
|
|
56
56
|
t === 1 ? I(e) : S(n, o);
|
|
57
57
|
};
|
|
58
58
|
export {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
A as createTable,
|
|
60
|
+
z as deleteColumn,
|
|
61
|
+
B as deleteRow,
|
|
62
62
|
I as deleteTable,
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
O as insertColumn,
|
|
64
|
+
L as insertRow
|
|
65
65
|
};
|
|
66
66
|
//# sourceMappingURL=helpers.js.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { o as
|
|
3
|
-
import { a as g, l as h, g as
|
|
4
|
-
import { useState as
|
|
5
|
-
import {
|
|
1
|
+
import { jsxs as P, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { o as y } from "../../../../LexicalComposerContext.prod-DLlRM5wP.js";
|
|
3
|
+
import { a as g, l as h, g as C } from "../../../../Lexical.prod-Bu-Iw9VX.js";
|
|
4
|
+
import { useState as L, useRef as E, useCallback as T, useEffect as m } from "react";
|
|
5
|
+
import { z as b } from "../../../../LexicalTable.prod-BsmIydKv.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
|
-
import { HistoryPlugin as
|
|
10
|
-
import { T as
|
|
11
|
-
import { TableCellContextMenu as
|
|
9
|
+
import { HistoryPlugin as z } from "../HistoryPlugin/HistoryPlugin.js";
|
|
10
|
+
import { T as B } from "../../../../TablePlugin-DKzssVbg.js";
|
|
11
|
+
import { TableCellContextMenu as S } from "../TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
|
|
12
12
|
import { s as A } from "../../../../RteEditor.module-oFMKEW6f.js";
|
|
13
13
|
import { setScrollableContainers as w, removeScrollableContainers as K } from "../../helpers.js";
|
|
14
14
|
const Q = ({ editorScrollPosition: d }) => {
|
|
15
|
-
const [t] =
|
|
15
|
+
const [t] = y(), [i, s] = L(null), u = E(null), f = T(() => {
|
|
16
16
|
const e = g();
|
|
17
17
|
if (h(e)) {
|
|
18
18
|
const l = e.anchor.getNode(), a = b(l);
|
|
@@ -30,7 +30,7 @@ const Q = ({ editorScrollPosition: d }) => {
|
|
|
30
30
|
const e = g();
|
|
31
31
|
if (h(e)) {
|
|
32
32
|
const l = e.anchor.getNode();
|
|
33
|
-
b(l) && (
|
|
33
|
+
b(l) && (C(null), s(null));
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
36
|
};
|
|
@@ -49,12 +49,12 @@ const Q = ({ editorScrollPosition: d }) => {
|
|
|
49
49
|
return window.addEventListener("keydown", e, { capture: !0 }), () => {
|
|
50
50
|
window.removeEventListener("keydown", e);
|
|
51
51
|
};
|
|
52
|
-
}, []), /* @__PURE__ */
|
|
52
|
+
}, []), /* @__PURE__ */ P("div", { className: A.editor__toolbar, children: [
|
|
53
53
|
/* @__PURE__ */ n(N, {}),
|
|
54
54
|
/* @__PURE__ */ n(k, {}),
|
|
55
|
-
/* @__PURE__ */ n(
|
|
55
|
+
/* @__PURE__ */ n(B, { isActive: !!i, ref: u }),
|
|
56
56
|
i && /* @__PURE__ */ n(
|
|
57
|
-
|
|
57
|
+
S,
|
|
58
58
|
{
|
|
59
59
|
position: i,
|
|
60
60
|
parentScrollPosition: d,
|
|
@@ -62,7 +62,7 @@ const Q = ({ editorScrollPosition: d }) => {
|
|
|
62
62
|
}
|
|
63
63
|
),
|
|
64
64
|
/* @__PURE__ */ n(x, { parentScrollPosition: d }),
|
|
65
|
-
/* @__PURE__ */ n(
|
|
65
|
+
/* @__PURE__ */ n(z, {})
|
|
66
66
|
] });
|
|
67
67
|
};
|
|
68
68
|
export {
|
|
@@ -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-DKzssVbg.js";
|
|
7
7
|
import { TableCellContextMenu as T } from "./TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
|
|
8
8
|
export {
|
|
9
9
|
l as BlockFormatPlugin,
|