@uva-glass/component-library 3.33.1 → 3.33.3
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-B84LhBo3.js → Lexical.prod-BjpEXQJZ.js} +1440 -1365
- package/dist/Lexical.prod-BjpEXQJZ.js.map +1 -0
- package/dist/LexicalClipboard.prod-B4j0EyWx.js +276 -0
- package/dist/LexicalClipboard.prod-B4j0EyWx.js.map +1 -0
- package/dist/{LexicalLink.prod-DoU9RL94.js → LexicalLink.prod-CYNCWmMx.js} +38 -38
- package/dist/{LexicalLink.prod-DoU9RL94.js.map → LexicalLink.prod-CYNCWmMx.js.map} +1 -1
- package/dist/{LexicalList.prod-Cw2TK1jY.js → LexicalList.prod-BRwEushm.js} +189 -204
- package/dist/LexicalList.prod-BRwEushm.js.map +1 -0
- package/dist/{LexicalSelection.prod-TB5pn9xc.js → LexicalSelection.prod-DYo5_Y2k.js} +25 -25
- package/dist/{LexicalSelection.prod-TB5pn9xc.js.map → LexicalSelection.prod-DYo5_Y2k.js.map} +1 -1
- package/dist/{LexicalTable.prod-9xjyWB0C.js → LexicalTable.prod-BArw8Dt5.js} +458 -457
- package/dist/LexicalTable.prod-BArw8Dt5.js.map +1 -0
- package/dist/{LexicalUtils.prod-CD3xGFhm.js → LexicalUtils.prod-DJRX2pwP.js} +48 -48
- package/dist/{LexicalUtils.prod-CD3xGFhm.js.map → LexicalUtils.prod-DJRX2pwP.js.map} +1 -1
- package/dist/Sortable.module-B6I6E9un.js +26 -0
- package/dist/Sortable.module-B6I6E9un.js.map +1 -0
- package/dist/{SortableProvider-DisCfTTN.js → SortableProvider-l8-7ClBJ.js} +2 -2
- package/dist/{SortableProvider-DisCfTTN.js.map → SortableProvider-l8-7ClBJ.js.map} +1 -1
- package/dist/{TablePlugin-oF-gInNx.js → TablePlugin-BagQHe1w.js} +64 -64
- package/dist/{TablePlugin-oF-gInNx.js.map → TablePlugin-BagQHe1w.js.map} +1 -1
- package/dist/assets/Sortable.css +1 -1
- package/dist/components/CheckboxTree/CheckboxTree.js +2 -2
- package/dist/components/CheckboxTree/CheckboxTree.stories.js +1 -1
- package/dist/components/FormInput/FormInput.js +2 -2
- package/dist/components/InputField/InputField.stories.js +2 -2
- package/dist/components/MultiSelect/MultiSelect.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.stories.js +1 -1
- package/dist/components/MultiSelect/components/MultiSelectHeader.js +2 -2
- package/dist/components/MultiSelect/index.js +1 -1
- package/dist/components/PeriodSelector/PeriodSelector.js +2 -2
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +2 -2
- package/dist/components/RadioTabSelector/RadioTabSelector.js +2 -2
- package/dist/components/RteEditor/EditorHeader/EditorHeader.js +2 -2
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +9 -9
- package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +9 -9
- 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 +41 -41
- 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 +5 -5
- package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +2 -2
- package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +4 -4
- package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +8 -8
- 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 +172 -172
- package/dist/components/RteEditor/RteEditor.js.map +1 -1
- package/dist/components/RteEditor/helpers.js +6 -6
- package/dist/components/Sortable/Sortable.js +1 -1
- package/dist/components/Sortable/SortableProvider.js +1 -1
- package/dist/components/Sortable/components/SortableContainer.js +2 -2
- package/dist/components/Sortable/components/SortableHandle.js +1 -1
- package/dist/components/Sortable/components/SortableItem.js +2 -2
- package/dist/components/index.js +1 -1
- package/dist/{helpers-CMG0anwr.js → helpers-DM8qHaKY.js} +54 -54
- package/dist/helpers-DM8qHaKY.js.map +1 -0
- package/dist/{index-KJPw-7za.js → index-Ccsg2cb2.js} +285 -284
- package/dist/index-Ccsg2cb2.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/storybook__react.d.js +1 -1
- package/package.json +14 -14
- package/dist/Lexical.prod-B84LhBo3.js.map +0 -1
- package/dist/LexicalClipboard.prod-DLgWWXys.js +0 -255
- package/dist/LexicalClipboard.prod-DLgWWXys.js.map +0 -1
- package/dist/LexicalList.prod-Cw2TK1jY.js.map +0 -1
- package/dist/LexicalTable.prod-9xjyWB0C.js.map +0 -1
- package/dist/Sortable.module--kgnzOjW.js +0 -26
- package/dist/Sortable.module--kgnzOjW.js.map +0 -1
- package/dist/helpers-CMG0anwr.js.map +0 -1
- package/dist/index-KJPw-7za.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as S, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { l as d } from "../../index-C2E9FY6V.js";
|
|
3
3
|
import { useState as p } from "react";
|
|
4
|
-
import { M as e } from "../../TablePlugin-
|
|
4
|
+
import { M as e } from "../../TablePlugin-BagQHe1w.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-BagQHe1w.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-nrPtQ1dv.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-l8-7ClBJ.js";
|
|
27
27
|
export {
|
|
28
28
|
y as MultiSelectHeader
|
|
29
29
|
};
|
|
@@ -17,7 +17,7 @@ import "../Input/Input.js";
|
|
|
17
17
|
import "../InputField/InputField.js";
|
|
18
18
|
import { Label as B } from "../Label/Label.js";
|
|
19
19
|
import "react-router";
|
|
20
|
-
import "../../TablePlugin-
|
|
20
|
+
import "../../TablePlugin-BagQHe1w.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-nrPtQ1dv.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-l8-7ClBJ.js";
|
|
29
29
|
import '../../assets/PeriodSelector.css';const s = {
|
|
30
30
|
"period-selector__container": "_period-selector__container_d1p0j_1",
|
|
31
31
|
"period-selector__container--label-left": "_period-selector__container--label-left_d1p0j_6",
|
|
@@ -17,7 +17,7 @@ import "../GridRow/GridRow.js";
|
|
|
17
17
|
import "../IconButton/IconButton.js";
|
|
18
18
|
import "../Input/Input.js";
|
|
19
19
|
import "../InputField/InputField.js";
|
|
20
|
-
import "../../TablePlugin-
|
|
20
|
+
import "../../TablePlugin-BagQHe1w.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-nrPtQ1dv.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-l8-7ClBJ.js";
|
|
29
29
|
const p = "<ProgrammeCard key={key} header={header} details={details} href={href} />", J = {
|
|
30
30
|
title: "Atoms/ProgrammeCard",
|
|
31
31
|
component: o,
|
|
@@ -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-BagQHe1w.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-nrPtQ1dv.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-l8-7ClBJ.js";
|
|
29
29
|
import '../../assets/RadioTabSelector.css';const t = {
|
|
30
30
|
"radio-tab-selector-button-bar__container": "_radio-tab-selector-button-bar__container_a4wnc_1",
|
|
31
31
|
"radio-tab-selector-button-bar__container--label-left": "_radio-tab-selector-button-bar__container--label-left_a4wnc_6",
|
|
@@ -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-BagQHe1w.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-nrPtQ1dv.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-l8-7ClBJ.js";
|
|
26
26
|
import '../../../assets/EditorHeader.css';const t = {
|
|
27
27
|
"editor-header__container": "_editor-header__container_9khdz_1",
|
|
28
28
|
"editor-header__info": "_editor-header__info_9khdz_10"
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import { jsx as s } 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 {
|
|
4
|
+
import { D as _, g as p, Q as h } from "../../../../Lexical.prod-BjpEXQJZ.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-B_3uFnFu.js";
|
|
8
8
|
import { useTranslation as B } from "../../hooks/useTranslation.js";
|
|
9
|
-
const
|
|
9
|
+
const T = {
|
|
10
10
|
bold: "Bold",
|
|
11
11
|
italic: "Italic"
|
|
12
|
-
},
|
|
13
|
-
const t = B(), [i] = u(), [
|
|
12
|
+
}, g = ["bold", "italic"], D = () => {
|
|
13
|
+
const t = B(), [i] = u(), [e, c] = l(!1), [n, m] = l(!1), d = (o) => {
|
|
14
14
|
i.dispatchCommand(h, o);
|
|
15
15
|
};
|
|
16
16
|
return k(() => {
|
|
17
17
|
const o = i.registerUpdateListener(({ editorState: b }) => {
|
|
18
18
|
b.read(() => {
|
|
19
19
|
const r = _();
|
|
20
|
-
p(r) && (
|
|
20
|
+
p(r) && (c(r.hasFormat("bold")), m(r.hasFormat("italic")));
|
|
21
21
|
});
|
|
22
22
|
});
|
|
23
23
|
return () => {
|
|
24
24
|
o();
|
|
25
25
|
};
|
|
26
|
-
}, [i]), /* @__PURE__ */ s("div", { className: a["editor__toolbar-button-group"], children:
|
|
26
|
+
}, [i]), /* @__PURE__ */ s("div", { className: a["editor__toolbar-button-group"], children: g.map((o) => /* @__PURE__ */ s(
|
|
27
27
|
"button",
|
|
28
28
|
{
|
|
29
29
|
onClick: () => d(o),
|
|
@@ -31,18 +31,18 @@ const C = {
|
|
|
31
31
|
className: f(
|
|
32
32
|
a["editor__toolbar-button"],
|
|
33
33
|
a[`editor__toolbar-button--${o}`],
|
|
34
|
-
o === "bold" &&
|
|
34
|
+
o === "bold" && e && a["editor__toolbar-button--active"],
|
|
35
35
|
o === "italic" && n && a["editor__toolbar-button--active"]
|
|
36
36
|
),
|
|
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__ */ s(I, { name:
|
|
40
|
+
children: /* @__PURE__ */ s(I, { name: T[o], size: 24 })
|
|
41
41
|
},
|
|
42
42
|
o
|
|
43
43
|
)) });
|
|
44
44
|
};
|
|
45
45
|
export {
|
|
46
|
-
|
|
46
|
+
D 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
3
|
import { o as h } from "../../../../LexicalComposerContext.prod-DLlRM5wP.js";
|
|
4
|
-
import {
|
|
4
|
+
import { as as _, at as k, au as y, av as C } from "../../../../Lexical.prod-BjpEXQJZ.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,9 +17,9 @@ 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-BagQHe1w.js";
|
|
21
21
|
import { s as r } from "../../../../RteEditor.module-B_3uFnFu.js";
|
|
22
|
-
import { useTranslation as
|
|
22
|
+
import { useTranslation as g } from "../../hooks/useTranslation.js";
|
|
23
23
|
import "../LinkPlugin/LinkContextMenu/LinkContextMenu.js";
|
|
24
24
|
import "../../hooks/components/Flyout.js";
|
|
25
25
|
import "../../Providers/LanguageProvider.js";
|
|
@@ -27,19 +27,19 @@ import "../../../../index-nrPtQ1dv.js";
|
|
|
27
27
|
import "../../../SelectListbox/SelectListbox.js";
|
|
28
28
|
import "../../../SelectListbox/SelectProvider.js";
|
|
29
29
|
import "../../../Sortable/components/SortableItem.js";
|
|
30
|
-
import "../../../../SortableProvider-
|
|
31
|
-
const
|
|
32
|
-
const o =
|
|
30
|
+
import "../../../../SortableProvider-l8-7ClBJ.js";
|
|
31
|
+
const Y = () => {
|
|
32
|
+
const o = g(), [t] = h(), [p, d] = s(!1), [l, c] = s(!1), u = () => {
|
|
33
33
|
t.dispatchCommand(y, void 0);
|
|
34
34
|
}, b = () => {
|
|
35
|
-
t.dispatchCommand(
|
|
35
|
+
t.dispatchCommand(C, void 0);
|
|
36
36
|
};
|
|
37
37
|
return m(() => t.registerCommand(
|
|
38
38
|
_,
|
|
39
39
|
(e) => (d(e), !1),
|
|
40
40
|
1
|
|
41
41
|
), [t]), m(() => t.registerCommand(
|
|
42
|
-
|
|
42
|
+
k,
|
|
43
43
|
(e) => (c(e), !1),
|
|
44
44
|
1
|
|
45
45
|
), [t]), /* @__PURE__ */ f("div", { className: r["editor__toolbar-button-group"], children: [
|
|
@@ -72,6 +72,6 @@ const Z = () => {
|
|
|
72
72
|
] });
|
|
73
73
|
};
|
|
74
74
|
export {
|
|
75
|
-
|
|
75
|
+
Y as HistoryPlugin
|
|
76
76
|
};
|
|
77
77
|
//# sourceMappingURL=HistoryPlugin.js.map
|
|
@@ -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-BagQHe1w.js";
|
|
4
|
+
import "../../../../../helpers-DM8qHaKY.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-nrPtQ1dv.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-l8-7ClBJ.js";
|
|
31
31
|
export {
|
|
32
32
|
D as AddLinkForm
|
|
33
33
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as u, Fragment as L, jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as K, useState as d, 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-DM8qHaKY.js";
|
|
4
4
|
import { Icon as k } from "../../../../Icon/Icon.js";
|
|
5
5
|
import { useTranslation as R } from "../../../hooks/useTranslation.js";
|
|
6
6
|
import { Button as b } from "../../../../Buttons/Button.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsx as k, jsxs as
|
|
2
|
-
import { o as
|
|
3
|
-
import { c as
|
|
4
|
-
import { p as O, k as
|
|
1
|
+
import { jsx as k, jsxs as j } from "react/jsx-runtime";
|
|
2
|
+
import { o as Y } from "../../../../LexicalComposerContext.prod-DLlRM5wP.js";
|
|
3
|
+
import { c as Z } from "../../../../clsx-OuTLNxxd.js";
|
|
4
|
+
import { p as O, k as q, v as G } from "../../../../LexicalLink.prod-CYNCWmMx.js";
|
|
5
5
|
import { useRef as a, useState as J, useEffect as m } from "react";
|
|
6
|
-
import {
|
|
7
|
-
import { A as rt } from "../../../../TablePlugin-
|
|
8
|
-
import { e as nt } from "../../../../helpers-
|
|
6
|
+
import { Z as Q, D as f, l as X, ar as $, g as w, W as tt, E as et, r as ot } from "../../../../Lexical.prod-BjpEXQJZ.js";
|
|
7
|
+
import { A as rt } from "../../../../TablePlugin-BagQHe1w.js";
|
|
8
|
+
import { e as nt } from "../../../../helpers-DM8qHaKY.js";
|
|
9
9
|
import { LinkContextMenu as it } from "./LinkContextMenu/LinkContextMenu.js";
|
|
10
10
|
import { useFlyout as st } from "../../hooks/useFlyout.js";
|
|
11
11
|
import { Icon as ct } from "../../../Icon/Icon.js";
|
|
@@ -30,7 +30,7 @@ import "../../../../index-nrPtQ1dv.js";
|
|
|
30
30
|
import "../../../SelectListbox/SelectListbox.js";
|
|
31
31
|
import "../../../SelectListbox/SelectProvider.js";
|
|
32
32
|
import "../../../Sortable/components/SortableItem.js";
|
|
33
|
-
import "../../../../SortableProvider-
|
|
33
|
+
import "../../../../SortableProvider-l8-7ClBJ.js";
|
|
34
34
|
const ut = 200, z = (p) => {
|
|
35
35
|
let n = p;
|
|
36
36
|
for (; n; ) {
|
|
@@ -51,18 +51,18 @@ const ut = 200, z = (p) => {
|
|
|
51
51
|
n = n.getParent();
|
|
52
52
|
}
|
|
53
53
|
return !1;
|
|
54
|
-
},
|
|
55
|
-
const n = at(), [c] =
|
|
54
|
+
}, Wt = ({ parentScrollPosition: p }) => {
|
|
55
|
+
const n = at(), [c] = Y(), { flyout: U, showFlyout: _, hideFlyout: C, isVisible: u } = st(), d = a(void 0), N = a(!1), v = a(""), g = a(""), [y, A] = J({ active: !1, url: "", linktext: "" }), P = a(u), x = a(null), S = a(null), T = a(void 0), L = () => {
|
|
56
56
|
c.update(() => {
|
|
57
57
|
const o = f();
|
|
58
58
|
x.current = o;
|
|
59
59
|
});
|
|
60
|
-
},
|
|
60
|
+
}, D = () => {
|
|
61
61
|
c.update(() => {
|
|
62
62
|
x.current && et(x.current);
|
|
63
63
|
});
|
|
64
64
|
}, H = (o, t) => {
|
|
65
|
-
|
|
65
|
+
_({
|
|
66
66
|
position: t,
|
|
67
67
|
children: /* @__PURE__ */ k(
|
|
68
68
|
it,
|
|
@@ -70,31 +70,31 @@ const ut = 200, z = (p) => {
|
|
|
70
70
|
url: o,
|
|
71
71
|
onSave: (e) => K(e, ""),
|
|
72
72
|
onDelete: () => M(),
|
|
73
|
-
onClose:
|
|
73
|
+
onClose: R,
|
|
74
74
|
ref: T
|
|
75
75
|
}
|
|
76
76
|
)
|
|
77
77
|
});
|
|
78
|
-
},
|
|
79
|
-
T.current?.clearForm(), C(),
|
|
80
|
-
},
|
|
78
|
+
}, R = () => {
|
|
79
|
+
T.current?.clearForm(), C(), D();
|
|
80
|
+
}, E = () => {
|
|
81
81
|
const o = S.current?.getBoundingClientRect();
|
|
82
|
-
!
|
|
82
|
+
!N.current && o && (L(), _({ position: { top: o.bottom, left: o.left }, ...V }), setTimeout(() => d.current?.setDefaults("", g.current), 0));
|
|
83
83
|
}, b = () => {
|
|
84
|
-
C(),
|
|
84
|
+
C(), D();
|
|
85
85
|
}, K = (o, t) => {
|
|
86
86
|
c.update(() => {
|
|
87
87
|
const e = f();
|
|
88
|
-
if (
|
|
88
|
+
if (w(e)) {
|
|
89
89
|
const i = e.anchor.getNode(), s = z(i);
|
|
90
90
|
if (t && t !== "") {
|
|
91
91
|
if (s) {
|
|
92
92
|
const l = ot(t);
|
|
93
93
|
s.replace(l), l.select();
|
|
94
94
|
}
|
|
95
|
-
if (t !==
|
|
96
|
-
const { anchor: l, focus:
|
|
97
|
-
e.insertText(t), l.offset -= t.length,
|
|
95
|
+
if (t !== v.current && v.current === "") {
|
|
96
|
+
const { anchor: l, focus: F } = e;
|
|
97
|
+
e.insertText(t), l.offset -= t.length, F.offset = l.offset + t.length;
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
G(nt(o), { target: "_blank" });
|
|
@@ -102,12 +102,12 @@ const ut = 200, z = (p) => {
|
|
|
102
102
|
b();
|
|
103
103
|
});
|
|
104
104
|
}, M = () => {
|
|
105
|
-
c.dispatchCommand(
|
|
105
|
+
c.dispatchCommand(q, null), R();
|
|
106
106
|
}, V = {
|
|
107
107
|
children: /* @__PURE__ */ k(
|
|
108
108
|
rt,
|
|
109
109
|
{
|
|
110
|
-
isLink:
|
|
110
|
+
isLink: y,
|
|
111
111
|
onCloseHandler: b,
|
|
112
112
|
onSaveHandler: (o, t) => K(o, t),
|
|
113
113
|
ref: d
|
|
@@ -115,10 +115,10 @@ const ut = 200, z = (p) => {
|
|
|
115
115
|
)
|
|
116
116
|
};
|
|
117
117
|
return m(() => {
|
|
118
|
-
u ? (
|
|
118
|
+
u ? (N.current = !0, d.current?.focusFirstField()) : (d.current?.clearForm(), v.current = g.current = "", setTimeout(() => N.current = !1, ut));
|
|
119
119
|
}, [d, u]), m(() => {
|
|
120
120
|
const o = (r) => {
|
|
121
|
-
if (
|
|
121
|
+
if (w(r) && r.isCollapsed()) {
|
|
122
122
|
const i = I(r.anchor.getNode());
|
|
123
123
|
if (i) {
|
|
124
124
|
const s = c.getElementByKey(r.anchor.getNode().getKey()), l = s ? { top: s.getBoundingClientRect().bottom, left: s.getBoundingClientRect().left } : { top: 0, left: 0 };
|
|
@@ -134,10 +134,10 @@ const ut = 200, z = (p) => {
|
|
|
134
134
|
},
|
|
135
135
|
0
|
|
136
136
|
), e = c.registerCommand(
|
|
137
|
-
|
|
137
|
+
X,
|
|
138
138
|
(r) => {
|
|
139
139
|
const i = f();
|
|
140
|
-
return
|
|
140
|
+
return L(), r.preventDefault(), r.stopPropagation(), r.stopImmediatePropagation(), o(i), !1;
|
|
141
141
|
},
|
|
142
142
|
0
|
|
143
143
|
);
|
|
@@ -150,15 +150,15 @@ const ut = 200, z = (p) => {
|
|
|
150
150
|
(e) => {
|
|
151
151
|
if (e.ctrlKey && e.shiftKey && e.key === "U") {
|
|
152
152
|
const r = f();
|
|
153
|
-
if (
|
|
153
|
+
if (L(), !w(r))
|
|
154
154
|
return !1;
|
|
155
|
-
const i = I(r.anchor.getNode()), s = (
|
|
156
|
-
|
|
155
|
+
const i = I(r.anchor.getNode()), s = (F = "", W = "") => {
|
|
156
|
+
E(), setTimeout(() => d.current?.setDefaults(F, W), 0);
|
|
157
157
|
};
|
|
158
158
|
if (i)
|
|
159
|
-
return e.preventDefault(), e.stopPropagation(), e.stopImmediatePropagation(),
|
|
159
|
+
return e.preventDefault(), e.stopPropagation(), e.stopImmediatePropagation(), v.current = i.linktext, s(i.url, i.linktext), !0;
|
|
160
160
|
const l = r.getTextContent();
|
|
161
|
-
return l !== "" ? (g.current = l, s("", g.current), !0) : (
|
|
161
|
+
return l !== "" ? (g.current = l, s("", g.current), !0) : (E(), !0);
|
|
162
162
|
}
|
|
163
163
|
return !1;
|
|
164
164
|
},
|
|
@@ -167,7 +167,7 @@ const ut = 200, z = (p) => {
|
|
|
167
167
|
A(
|
|
168
168
|
e.read(() => {
|
|
169
169
|
const r = f();
|
|
170
|
-
if (
|
|
170
|
+
if (L(), w(r)) {
|
|
171
171
|
const i = r.anchor.getNode(), s = z(i);
|
|
172
172
|
if (s)
|
|
173
173
|
return {
|
|
@@ -192,8 +192,8 @@ const ut = 200, z = (p) => {
|
|
|
192
192
|
}, [u]), m(() => {
|
|
193
193
|
u && b();
|
|
194
194
|
}, [p]), m(() => {
|
|
195
|
-
|
|
196
|
-
}, [
|
|
195
|
+
y.active || C();
|
|
196
|
+
}, [y]), m(() => {
|
|
197
197
|
const o = (e) => (B(t), e.key === "Escape" && P.current && (e.preventDefault(), e.stopPropagation(), b()), !0);
|
|
198
198
|
window.addEventListener("keydown", o, { capture: !0 });
|
|
199
199
|
const t = () => {
|
|
@@ -202,16 +202,16 @@ const ut = 200, z = (p) => {
|
|
|
202
202
|
return B(t), window.addEventListener("scroll", t), window.addEventListener("resize", t), () => {
|
|
203
203
|
window.removeEventListener("keydown", o), window.removeEventListener("scroll", t), window.removeEventListener("resize", t), lt(t);
|
|
204
204
|
};
|
|
205
|
-
}, []), /* @__PURE__ */ k("div", { className: h["editor__toolbar-button-group"], children: /* @__PURE__ */
|
|
205
|
+
}, []), /* @__PURE__ */ k("div", { className: h["editor__toolbar-button-group"], children: /* @__PURE__ */ j("div", { className: h["editor__toolbar-button-flyoutwrapper"], children: [
|
|
206
206
|
/* @__PURE__ */ k(
|
|
207
207
|
"button",
|
|
208
208
|
{
|
|
209
|
-
onClick:
|
|
209
|
+
onClick: E,
|
|
210
210
|
title: n.links.linkTooltip,
|
|
211
|
-
className:
|
|
211
|
+
className: Z(
|
|
212
212
|
h["editor__toolbar-button"],
|
|
213
213
|
h["editor__toolbar-button--link"],
|
|
214
|
-
|
|
214
|
+
y.active && h["editor__toolbar-button--active"]
|
|
215
215
|
),
|
|
216
216
|
"aria-label": n.aria.labels.link,
|
|
217
217
|
"aria-keyshortcuts": n.aria.keyshortcuts.link,
|
|
@@ -224,7 +224,7 @@ const ut = 200, z = (p) => {
|
|
|
224
224
|
] }) });
|
|
225
225
|
};
|
|
226
226
|
export {
|
|
227
|
-
|
|
227
|
+
Wt as LinkPlugin,
|
|
228
228
|
I as getLinkNodeTag
|
|
229
229
|
};
|
|
230
230
|
//# sourceMappingURL=LinkPlugin.js.map
|
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
-
import { o as
|
|
3
|
-
import {
|
|
4
|
-
import { _ as x } from "../../../../LexicalSelection.prod-
|
|
5
|
-
import { useState as p, useEffect as
|
|
2
|
+
import { o as K } from "../../../../LexicalComposerContext.prod-DLlRM5wP.js";
|
|
3
|
+
import { T as N, C as v, y as D, n as I, a as f, c as S } from "../../../../LexicalList.prod-BRwEushm.js";
|
|
4
|
+
import { _ as x } from "../../../../LexicalSelection.prod-DYo5_Y2k.js";
|
|
5
|
+
import { useState as p, useEffect as P } from "react";
|
|
6
6
|
import { c as O } from "../../../../clsx-OuTLNxxd.js";
|
|
7
|
-
import {
|
|
8
|
-
import { Icon as
|
|
7
|
+
import { ar as U, W as w, X as B, D as b, g, J as E, R as J } from "../../../../Lexical.prod-BjpEXQJZ.js";
|
|
8
|
+
import { Icon as R } from "../../../Icon/Icon.js";
|
|
9
9
|
import { s as l } from "../../../../RteEditor.module-B_3uFnFu.js";
|
|
10
|
-
import { useTranslation as
|
|
11
|
-
const
|
|
10
|
+
import { useTranslation as T } from "../../hooks/useTranslation.js";
|
|
11
|
+
const W = {
|
|
12
12
|
bullet: "BulletList",
|
|
13
13
|
number: "NumberedList"
|
|
14
|
-
},
|
|
15
|
-
const u =
|
|
14
|
+
}, $ = ["bullet", "number"], Q = () => {
|
|
15
|
+
const u = T(), [e] = K(), [h, s] = p("paragraph"), [c, L] = p(!1), [m, _] = p(!1), k = () => {
|
|
16
16
|
e.update(() => {
|
|
17
17
|
const t = b();
|
|
18
|
-
|
|
18
|
+
g(t) && x(t, () => J());
|
|
19
19
|
});
|
|
20
|
-
},
|
|
21
|
-
t === "number" &&
|
|
20
|
+
}, y = (t) => {
|
|
21
|
+
t === "number" && h !== "number" ? (e.dispatchCommand(v, void 0), s("number")) : t === "bullet" && h !== "bullet" ? (e.dispatchCommand(D, void 0), s("bullet")) : (k(), s("paragraph"));
|
|
22
22
|
};
|
|
23
|
-
return
|
|
23
|
+
return P(() => {
|
|
24
24
|
const t = e.registerCommand(
|
|
25
25
|
U,
|
|
26
|
-
(r) => r.ctrlKey && r.shiftKey && r.code === "Digit7" ? (r.preventDefault(), m ? e.dispatchCommand(
|
|
26
|
+
(r) => r.ctrlKey && r.shiftKey && r.code === "Digit7" ? (r.preventDefault(), m ? e.dispatchCommand(N, void 0) : e.dispatchCommand(v, void 0), !0) : r.ctrlKey && r.shiftKey && r.code === "Digit8" ? (r.preventDefault(), c ? e.dispatchCommand(N, void 0) : e.dispatchCommand(D, void 0), !0) : !1,
|
|
27
27
|
w
|
|
28
28
|
);
|
|
29
29
|
return () => {
|
|
30
30
|
t();
|
|
31
31
|
};
|
|
32
|
-
}, [e, m, c]),
|
|
32
|
+
}, [e, m, c]), P(() => {
|
|
33
33
|
e.registerCommand(
|
|
34
34
|
B,
|
|
35
35
|
(r) => (r.preventDefault(), e.update(() => {
|
|
36
36
|
const n = b();
|
|
37
|
-
if (!
|
|
37
|
+
if (!g(n))
|
|
38
38
|
return;
|
|
39
39
|
const o = n.anchor.getNode(), i = o.getParent();
|
|
40
|
-
if (!
|
|
40
|
+
if (!I(i))
|
|
41
41
|
return;
|
|
42
42
|
const a = i.getParent();
|
|
43
43
|
if (f(a)) {
|
|
44
|
-
const
|
|
45
|
-
i.append(
|
|
44
|
+
const C = S(f(a) ? a.getListType() : "bullet");
|
|
45
|
+
i.append(C), C.append(o);
|
|
46
46
|
}
|
|
47
47
|
}), !0),
|
|
48
48
|
E
|
|
@@ -50,7 +50,7 @@ const q = {
|
|
|
50
50
|
const t = e.registerUpdateListener(({ editorState: r }) => {
|
|
51
51
|
r.read(() => {
|
|
52
52
|
const n = b();
|
|
53
|
-
if (
|
|
53
|
+
if (g(n)) {
|
|
54
54
|
let o = n.anchor.getNode();
|
|
55
55
|
for (; o !== null; ) {
|
|
56
56
|
if (f(o)) {
|
|
@@ -70,10 +70,10 @@ const q = {
|
|
|
70
70
|
return () => {
|
|
71
71
|
t();
|
|
72
72
|
};
|
|
73
|
-
}, [e]), /* @__PURE__ */ d("div", { className: l["editor__toolbar-button-group"], children:
|
|
73
|
+
}, [e]), /* @__PURE__ */ d("div", { className: l["editor__toolbar-button-group"], children: $.map((t) => /* @__PURE__ */ d(
|
|
74
74
|
"button",
|
|
75
75
|
{
|
|
76
|
-
onClick: () =>
|
|
76
|
+
onClick: () => y(t),
|
|
77
77
|
title: u.format[`${t}Tooltip`],
|
|
78
78
|
className: O(
|
|
79
79
|
l["editor__toolbar-button"],
|
|
@@ -84,12 +84,12 @@ const q = {
|
|
|
84
84
|
"aria-label": u.aria.labels[t],
|
|
85
85
|
"aria-keyshortcuts": u.aria.keyshortcuts[t],
|
|
86
86
|
type: "button",
|
|
87
|
-
children: /* @__PURE__ */ d(
|
|
87
|
+
children: /* @__PURE__ */ d(R, { name: W[t], size: 24 })
|
|
88
88
|
},
|
|
89
89
|
t
|
|
90
90
|
)) });
|
|
91
91
|
};
|
|
92
92
|
export {
|
|
93
|
-
|
|
93
|
+
Q as ListPlugin
|
|
94
94
|
};
|
|
95
95
|
//# sourceMappingURL=ListPlugin.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { o as m } from "../../../../LexicalComposerContext.prod-DLlRM5wP.js";
|
|
2
2
|
import { useEffect as c } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import { L as i } from "../../../../LexicalUtils.prod-
|
|
5
|
-
import {
|
|
3
|
+
import { af as f, U as p, D as u } from "../../../../Lexical.prod-BjpEXQJZ.js";
|
|
4
|
+
import { L as i } from "../../../../LexicalUtils.prod-DJRX2pwP.js";
|
|
5
|
+
import { A as d } from "../../../../LexicalClipboard.prod-B4j0EyWx.js";
|
|
6
6
|
import { d as D } from "../../../../index-nrPtQ1dv.js";
|
|
7
|
-
const
|
|
7
|
+
const P = () => {
|
|
8
8
|
const [e] = m(), l = (t) => {
|
|
9
9
|
t.preventDefault(), e.update(() => {
|
|
10
10
|
const r = u(), a = i(t, InputEvent) || i(t, KeyboardEvent) ? null : t.clipboardData;
|
|
@@ -26,6 +26,6 @@ const N = () => {
|
|
|
26
26
|
}, [e]), 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-BagQHe1w.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-nrPtQ1dv.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-l8-7ClBJ.js";
|
|
29
29
|
export {
|
|
30
30
|
B as AddTableForm
|
|
31
31
|
};
|