@uva-glass/component-library 2.0.0 → 2.0.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-DeeCy7Xd.js → Lexical.prod-Bzma_w4s.js} +2 -2
- package/dist/{Lexical.prod-DeeCy7Xd.js.map → Lexical.prod-Bzma_w4s.js.map} +1 -1
- package/dist/{LexicalClipboard.prod-CayrMfkI.js → LexicalClipboard.prod-Dg23ixPD.js} +4 -4
- package/dist/{LexicalClipboard.prod-CayrMfkI.js.map → LexicalClipboard.prod-Dg23ixPD.js.map} +1 -1
- package/dist/{LexicalLink.prod-Biaqry-c.js → LexicalLink.prod-C1RDJLfo.js} +3 -3
- package/dist/{LexicalLink.prod-Biaqry-c.js.map → LexicalLink.prod-C1RDJLfo.js.map} +1 -1
- package/dist/{LexicalList.prod-Uk8UObU7.js → LexicalList.prod-BGzfDPU0.js} +3 -3
- package/dist/{LexicalList.prod-Uk8UObU7.js.map → LexicalList.prod-BGzfDPU0.js.map} +1 -1
- package/dist/{LexicalSelection.prod-C1TEIGhq.js → LexicalSelection.prod-CNWFGVlh.js} +2 -2
- package/dist/{LexicalSelection.prod-C1TEIGhq.js.map → LexicalSelection.prod-CNWFGVlh.js.map} +1 -1
- package/dist/{LexicalTable.prod-hx6rW3fc.js → LexicalTable.prod-D-4NN9o5.js} +500 -472
- package/dist/LexicalTable.prod-D-4NN9o5.js.map +1 -0
- package/dist/{LexicalUtils.prod-CCjlRAc-.js → LexicalUtils.prod-Cg2siy-c.js} +2 -2
- package/dist/{LexicalUtils.prod-CCjlRAc-.js.map → LexicalUtils.prod-Cg2siy-c.js.map} +1 -1
- package/dist/{TablePlugin-ByeOn0Zf.js → TablePlugin-DDlrU-7e.js} +27 -27
- package/dist/{TablePlugin-ByeOn0Zf.js.map → TablePlugin-DDlrU-7e.js.map} +1 -1
- package/dist/{chunk-7R3XDUXW-C-tvzxWq.js → chunk-D52XG6IA-CQ2nAQyC.js} +472 -456
- package/dist/chunk-D52XG6IA-CQ2nAQyC.js.map +1 -0
- package/dist/components/Buttons/LinkButton.js +1 -1
- package/dist/components/Buttons/LinkButton.stories.js +1 -1
- package/dist/components/CheckboxTree/CheckboxTree.js +1 -1
- package/dist/components/FormInput/FormInput.js +1 -1
- package/dist/components/InputField/InputField.stories.js +1 -1
- package/dist/components/MenuLink/MenuLink.js +1 -1
- package/dist/components/MenuLink/MenuLink.stories.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.stories.js +1 -1
- package/dist/components/MultiSelect/components/MultiSelectHeader.js +1 -1
- package/dist/components/MultiSelect/index.js +1 -1
- package/dist/components/PeriodSelector/PeriodSelector.js +1 -1
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +1 -1
- package/dist/components/RteEditor/EditorHeader/EditorHeader.js +1 -1
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +1 -1
- 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 +3 -3
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +3 -3
- 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 +10 -10
- package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +19 -19
- package/dist/components/RteEditor/Plugins/index.js +1 -1
- package/dist/components/RteEditor/RteEditor.js +75 -75
- package/dist/components/RteEditor/helpers.js +4 -4
- package/dist/components/index.js +1 -1
- package/dist/{helpers-CgzuKnuq.js → helpers-BVGma1u6.js} +4 -4
- package/dist/{helpers-CgzuKnuq.js.map → helpers-BVGma1u6.js.map} +1 -1
- package/dist/index.js +1 -1
- package/package.json +6 -6
- package/dist/LexicalTable.prod-hx6rW3fc.js.map +0 -1
- package/dist/chunk-7R3XDUXW-C-tvzxWq.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as f } from "react";
|
|
3
|
-
import { L as i } from "../../chunk-
|
|
3
|
+
import { L as i } from "../../chunk-D52XG6IA-CQ2nAQyC.js";
|
|
4
4
|
import { c as n } from "../../clsx-OuTLNxxd.js";
|
|
5
5
|
import { s as o } from "../../Button.module-FL3-CODh.js";
|
|
6
6
|
const l = f(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as a, Fragment as s, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { fn as l } from "../../index-DWzkl4aY.js";
|
|
3
|
-
import { B as c } from "../../chunk-
|
|
3
|
+
import { B as c } from "../../chunk-D52XG6IA-CQ2nAQyC.js";
|
|
4
4
|
import { LinkButton as n } from "./LinkButton.js";
|
|
5
5
|
const d = `
|
|
6
6
|
// Has all HTMLAnchorElement props available except "className" and "style"
|
|
@@ -16,7 +16,7 @@ import "../GridRow/GridRow.js";
|
|
|
16
16
|
import "../IconButton/IconButton.js";
|
|
17
17
|
import "../Input/Input.js";
|
|
18
18
|
import "../InputField/InputField.js";
|
|
19
|
-
import "../../TablePlugin-
|
|
19
|
+
import "../../TablePlugin-DDlrU-7e.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";
|
|
@@ -14,7 +14,7 @@ import "../GridRow/GridRow.js";
|
|
|
14
14
|
import "../IconButton/IconButton.js";
|
|
15
15
|
import "../Input/Input.js";
|
|
16
16
|
import "../InputField/InputField.js";
|
|
17
|
-
import "../../TablePlugin-
|
|
17
|
+
import "../../TablePlugin-DDlrU-7e.js";
|
|
18
18
|
import "../RteEditor/Providers/LanguageProvider.js";
|
|
19
19
|
import "../RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
|
|
20
20
|
import "../RteEditor/hooks/components/Flyout.js";
|
|
@@ -14,7 +14,7 @@ import "../OverlayCloseButton/OverlayCloseButton.js";
|
|
|
14
14
|
import "../GridRow/GridRow.js";
|
|
15
15
|
import "../IconButton/IconButton.js";
|
|
16
16
|
import "../Input/Input.js";
|
|
17
|
-
import "../../TablePlugin-
|
|
17
|
+
import "../../TablePlugin-DDlrU-7e.js";
|
|
18
18
|
import "../RteEditor/Providers/LanguageProvider.js";
|
|
19
19
|
import "../RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
|
|
20
20
|
import "../RteEditor/hooks/components/Flyout.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import { c as u } from "../../clsx-OuTLNxxd.js";
|
|
3
|
-
import { u as k, N as h } from "../../chunk-
|
|
3
|
+
import { u as k, N as h } from "../../chunk-D52XG6IA-CQ2nAQyC.js";
|
|
4
4
|
import '../../assets/MenuLink.css';const i = {
|
|
5
5
|
"menu-link": "_menu-link_8gjhh_1",
|
|
6
6
|
"menu-link--active": "_menu-link--active_8gjhh_8"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { M as o } from "../../chunk-
|
|
2
|
+
import { M as o } from "../../chunk-D52XG6IA-CQ2nAQyC.js";
|
|
3
3
|
import { MenuLink as t } from "./MenuLink.js";
|
|
4
4
|
import '../../assets/MenuLink2.css';const r = `
|
|
5
5
|
// Can only be used wrapped in a 'react-router-dom' <MemoryRouter />
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as S, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { fn as d } from "../../index-DWzkl4aY.js";
|
|
3
3
|
import { useState as p } from "react";
|
|
4
|
-
import { M as e } from "../../TablePlugin-
|
|
4
|
+
import { M as e } from "../../TablePlugin-DDlrU-7e.js";
|
|
5
5
|
import { Container as M } from "../../storyComponents/Container/Container.js";
|
|
6
6
|
const C = `
|
|
7
7
|
// MultiSelectHeader can be added optionally
|
|
@@ -13,7 +13,7 @@ import "../../GridRow/GridRow.js";
|
|
|
13
13
|
import "../../IconButton/IconButton.js";
|
|
14
14
|
import "../../Input/Input.js";
|
|
15
15
|
import "../../InputField/InputField.js";
|
|
16
|
-
import { a as v } from "../../../TablePlugin-
|
|
16
|
+
import { a as v } from "../../../TablePlugin-DDlrU-7e.js";
|
|
17
17
|
import "../../RteEditor/Providers/LanguageProvider.js";
|
|
18
18
|
import "../../RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
|
|
19
19
|
import "../../RteEditor/hooks/components/Flyout.js";
|
|
@@ -15,7 +15,7 @@ import "../IconButton/IconButton.js";
|
|
|
15
15
|
import "../Input/Input.js";
|
|
16
16
|
import "../InputField/InputField.js";
|
|
17
17
|
import { Label as D } from "../Label/Label.js";
|
|
18
|
-
import "../../TablePlugin-
|
|
18
|
+
import "../../TablePlugin-DDlrU-7e.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";
|
|
@@ -15,7 +15,7 @@ import "../GridRow/GridRow.js";
|
|
|
15
15
|
import "../IconButton/IconButton.js";
|
|
16
16
|
import "../Input/Input.js";
|
|
17
17
|
import "../InputField/InputField.js";
|
|
18
|
-
import "../../TablePlugin-
|
|
18
|
+
import "../../TablePlugin-DDlrU-7e.js";
|
|
19
19
|
import { Repeater as i } from "../Repeater/Repeater.js";
|
|
20
20
|
import "../RteEditor/Providers/LanguageProvider.js";
|
|
21
21
|
import "../RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
|
|
@@ -12,7 +12,7 @@ import "../../GridRow/GridRow.js";
|
|
|
12
12
|
import "../../IconButton/IconButton.js";
|
|
13
13
|
import "../../Input/Input.js";
|
|
14
14
|
import "../../InputField/InputField.js";
|
|
15
|
-
import "../../../TablePlugin-
|
|
15
|
+
import "../../../TablePlugin-DDlrU-7e.js";
|
|
16
16
|
import "../Providers/LanguageProvider.js";
|
|
17
17
|
import "../Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
|
|
18
18
|
import "../hooks/components/Flyout.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { u } from "../../../../LexicalComposerContext.prod-Dyvim1tK.js";
|
|
3
3
|
import { c as f } from "../../../../clsx-OuTLNxxd.js";
|
|
4
|
-
import { R as _, a as p, m as h } from "../../../../Lexical.prod-
|
|
4
|
+
import { R as _, a as p, m as h } from "../../../../Lexical.prod-Bzma_w4s.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 e } from "../../../../clsx-OuTLNxxd.js";
|
|
3
3
|
import { u as h } from "../../../../LexicalComposerContext.prod-Dyvim1tK.js";
|
|
4
|
-
import { a8 as _, a9 as y, aa as C, ab as k } from "../../../../Lexical.prod-
|
|
4
|
+
import { a8 as _, a9 as y, aa as C, ab as k } from "../../../../Lexical.prod-Bzma_w4s.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";
|
|
@@ -15,7 +15,7 @@ import "../../../GridRow/GridRow.js";
|
|
|
15
15
|
import "../../../IconButton/IconButton.js";
|
|
16
16
|
import "../../../Input/Input.js";
|
|
17
17
|
import "../../../InputField/InputField.js";
|
|
18
|
-
import "../../../../TablePlugin-
|
|
18
|
+
import "../../../../TablePlugin-DDlrU-7e.js";
|
|
19
19
|
import { s as r } from "../../../../RteEditor.module-oFMKEW6f.js";
|
|
20
20
|
import { useTranslation as g } from "../../hooks/useTranslation.js";
|
|
21
21
|
import "../LinkPlugin/LinkContextMenu/LinkContextMenu.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { A as B } from "../../../../../TablePlugin-
|
|
4
|
-
import "../../../../../helpers-
|
|
3
|
+
import { A as B } from "../../../../../TablePlugin-DDlrU-7e.js";
|
|
4
|
+
import "../../../../../helpers-BVGma1u6.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-BVGma1u6.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
2
|
import { u as $ } from "../../../../LexicalComposerContext.prod-Dyvim1tK.js";
|
|
3
3
|
import { c as q } from "../../../../clsx-OuTLNxxd.js";
|
|
4
|
-
import { g as O, m as G, U as J } from "../../../../LexicalLink.prod-
|
|
4
|
+
import { g as O, m as G, U as J } from "../../../../LexicalLink.prod-C1RDJLfo.js";
|
|
5
5
|
import { useRef as a, useState as Q, useEffect as m } from "react";
|
|
6
|
-
import { t as X, R as f, a7 as Z, a5 as tt, a as w, a6 as et, F as ot, d as rt } from "../../../../Lexical.prod-
|
|
7
|
-
import { A as nt } from "../../../../TablePlugin-
|
|
8
|
-
import { e as it } from "../../../../helpers-
|
|
6
|
+
import { t as X, R as f, a7 as Z, a5 as tt, a as w, a6 as et, F as ot, d as rt } from "../../../../Lexical.prod-Bzma_w4s.js";
|
|
7
|
+
import { A as nt } from "../../../../TablePlugin-DDlrU-7e.js";
|
|
8
|
+
import { e as it } from "../../../../helpers-BVGma1u6.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,10 +1,10 @@
|
|
|
1
1
|
import { jsx as d } from "react/jsx-runtime";
|
|
2
2
|
import { u as I } from "../../../../LexicalComposerContext.prod-Dyvim1tK.js";
|
|
3
|
-
import { Y as N, Q as k, G as v, V as S, H as f, q as y } from "../../../../LexicalList.prod-
|
|
4
|
-
import { b as x } from "../../../../LexicalSelection.prod-
|
|
3
|
+
import { Y as N, Q as k, G as v, V as S, H as f, q as y } from "../../../../LexicalList.prod-BGzfDPU0.js";
|
|
4
|
+
import { b as x } from "../../../../LexicalSelection.prod-CNWFGVlh.js";
|
|
5
5
|
import { useState as p, useEffect as K } from "react";
|
|
6
6
|
import { c as z } from "../../../../clsx-OuTLNxxd.js";
|
|
7
|
-
import { a5 as O, a6 as R, N as U, R as b, a as h, K as w, z as B } from "../../../../Lexical.prod-
|
|
7
|
+
import { a5 as O, a6 as R, N as U, R as b, a as h, K as w, z as B } from "../../../../Lexical.prod-Bzma_w4s.js";
|
|
8
8
|
import { Icon as E } from "../../../Icon/Icon.js";
|
|
9
9
|
import { s as l } from "../../../../RteEditor.module-oFMKEW6f.js";
|
|
10
10
|
import { useTranslation as Y } from "../../hooks/useTranslation.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { u as m } from "../../../../LexicalComposerContext.prod-Dyvim1tK.js";
|
|
2
2
|
import { useEffect as u } from "react";
|
|
3
|
-
import { a0 as c, U as f, R as p } from "../../../../Lexical.prod-
|
|
4
|
-
import { u as i } from "../../../../LexicalUtils.prod-
|
|
5
|
-
import { N as d } from "../../../../LexicalClipboard.prod-
|
|
3
|
+
import { a0 as c, U as f, R as p } from "../../../../Lexical.prod-Bzma_w4s.js";
|
|
4
|
+
import { u as i } from "../../../../LexicalUtils.prod-Cg2siy-c.js";
|
|
5
|
+
import { N as d } from "../../../../LexicalClipboard.prod-Dg23ixPD.js";
|
|
6
6
|
import { d as D } from "../../../../index-0wq-B7do.js";
|
|
7
7
|
const g = () => {
|
|
8
8
|
const [e] = m(), l = (t) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { b as y } from "../../../../TablePlugin-
|
|
3
|
+
import { b as y } from "../../../../TablePlugin-DDlrU-7e.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-Dyvim1tK.js";
|
|
3
3
|
import "../../../../clsx-OuTLNxxd.js";
|
|
4
|
-
import "../../../../LexicalTable.prod-
|
|
5
|
-
import "../../../../Lexical.prod-
|
|
4
|
+
import "../../../../LexicalTable.prod-D-4NN9o5.js";
|
|
5
|
+
import "../../../../Lexical.prod-Bzma_w4s.js";
|
|
6
6
|
import "react";
|
|
7
|
-
import { T as D } from "../../../../TablePlugin-
|
|
7
|
+
import { T as D } from "../../../../TablePlugin-DDlrU-7e.js";
|
|
8
8
|
import "./helpers.js";
|
|
9
9
|
import "../../hooks/useFlyout.js";
|
|
10
10
|
import "../../../Icon/Icon.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { z as u } from "../../../../Lexical.prod-
|
|
3
|
-
const
|
|
4
|
-
const t =
|
|
1
|
+
import { S as x, p as h, s as d, w, b as C, i as p, y as E, N as b, a as I } from "../../../../LexicalTable.prod-D-4NN9o5.js";
|
|
2
|
+
import { z as u } from "../../../../Lexical.prod-Bzma_w4s.js";
|
|
3
|
+
const m = 100, A = (e, n) => {
|
|
4
|
+
const t = x(0, 0, !1);
|
|
5
5
|
for (let o = 0; o < e; o++) {
|
|
6
6
|
const r = h();
|
|
7
7
|
for (let l = 0; l < n; l++) {
|
|
8
|
-
const s = d(0, void 0,
|
|
8
|
+
const s = d(0, void 0, m / n);
|
|
9
9
|
s.append(u()), r.append(s);
|
|
10
10
|
}
|
|
11
11
|
t.append(r);
|
|
@@ -30,7 +30,7 @@ const p = 100, A = (e, n) => {
|
|
|
30
30
|
l && l.select();
|
|
31
31
|
}, P = (e, n) => {
|
|
32
32
|
const t = w(e);
|
|
33
|
-
if (!
|
|
33
|
+
if (!p(e))
|
|
34
34
|
throw new Error("Selected node is not a TableCellNode");
|
|
35
35
|
const o = E(e), r = t.getChildren().length, l = C(e);
|
|
36
36
|
let s = b(e);
|
|
@@ -39,9 +39,9 @@ const p = 100, A = (e, n) => {
|
|
|
39
39
|
const a = d(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((S) => {
|
|
43
|
+
S.getChildren().forEach((T) => {
|
|
44
|
+
T.setWidth(m / r);
|
|
45
45
|
});
|
|
46
46
|
});
|
|
47
47
|
}
|
|
@@ -50,7 +50,7 @@ const p = 100, A = (e, n) => {
|
|
|
50
50
|
g && g.select();
|
|
51
51
|
}, y = (e) => {
|
|
52
52
|
var r;
|
|
53
|
-
if (!
|
|
53
|
+
if (!p(e))
|
|
54
54
|
throw new Error("Selected node is not a TableCellNode");
|
|
55
55
|
const n = C(e), t = ((r = n.getFirstChild()) == null ? void 0 : r.getChildrenSize()) || 0, o = b(e);
|
|
56
56
|
t === 1 ? v(e) : I(n, o);
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsxs as P, jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { u as y } from "../../../../LexicalComposerContext.prod-Dyvim1tK.js";
|
|
3
|
-
import { R as h, a as g, F as C } from "../../../../Lexical.prod-
|
|
4
|
-
import { useState as L, useRef as E, useCallback as
|
|
5
|
-
import {
|
|
6
|
-
import { BlockFormatPlugin as
|
|
7
|
-
import { ListPlugin as
|
|
8
|
-
import { LinkPlugin as
|
|
9
|
-
import { HistoryPlugin as
|
|
10
|
-
import { T as
|
|
11
|
-
import { TableCellContextMenu as
|
|
12
|
-
import { s as
|
|
13
|
-
import { setScrollableContainers as w, removeScrollableContainers as
|
|
3
|
+
import { R as h, a as g, F as C } from "../../../../Lexical.prod-Bzma_w4s.js";
|
|
4
|
+
import { useState as L, useRef as E, useCallback as T, useEffect as m } from "react";
|
|
5
|
+
import { _ as b } from "../../../../LexicalTable.prod-D-4NN9o5.js";
|
|
6
|
+
import { BlockFormatPlugin as k } from "../BlockFormatPlugin/BlockFormatPlugin.js";
|
|
7
|
+
import { ListPlugin as N } from "../ListPlugin/ListPlugin.js";
|
|
8
|
+
import { LinkPlugin as x } from "../LinkPlugin/LinkPlugin.js";
|
|
9
|
+
import { HistoryPlugin as B } from "../HistoryPlugin/HistoryPlugin.js";
|
|
10
|
+
import { T as R } from "../../../../TablePlugin-DDlrU-7e.js";
|
|
11
|
+
import { TableCellContextMenu as S } from "../TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
|
|
12
|
+
import { s as _ } from "../../../../RteEditor.module-oFMKEW6f.js";
|
|
13
|
+
import { setScrollableContainers as w, removeScrollableContainers as z } from "../../helpers.js";
|
|
14
14
|
const Q = ({ editorScrollPosition: d }) => {
|
|
15
|
-
const [t] = y(), [i, s] = L(null), u = E(null), f =
|
|
15
|
+
const [t] = y(), [i, s] = L(null), u = E(null), f = T(() => {
|
|
16
16
|
const e = h();
|
|
17
17
|
if (g(e)) {
|
|
18
18
|
const l = e.anchor.getNode(), a = b(l);
|
|
@@ -41,7 +41,7 @@ const Q = ({ editorScrollPosition: d }) => {
|
|
|
41
41
|
});
|
|
42
42
|
});
|
|
43
43
|
}, [t, f]), m(() => (w(o), window.addEventListener("scroll", o), window.addEventListener("resize", o), () => {
|
|
44
|
-
window.removeEventListener("scroll", o), window.removeEventListener("resize", o),
|
|
44
|
+
window.removeEventListener("scroll", o), window.removeEventListener("resize", o), z(o);
|
|
45
45
|
}), [t]), m(() => {
|
|
46
46
|
const e = () => {
|
|
47
47
|
w(o);
|
|
@@ -49,20 +49,20 @@ const Q = ({ editorScrollPosition: d }) => {
|
|
|
49
49
|
return window.addEventListener("keydown", e, { capture: !0 }), () => {
|
|
50
50
|
window.removeEventListener("keydown", e);
|
|
51
51
|
};
|
|
52
|
-
}, []), /* @__PURE__ */ P("div", { className:
|
|
53
|
-
/* @__PURE__ */ n(T, {}),
|
|
52
|
+
}, []), /* @__PURE__ */ P("div", { className: _.editor__toolbar, children: [
|
|
54
53
|
/* @__PURE__ */ n(k, {}),
|
|
55
|
-
/* @__PURE__ */ n(
|
|
54
|
+
/* @__PURE__ */ n(N, {}),
|
|
55
|
+
/* @__PURE__ */ n(R, { isActive: !!i, ref: u }),
|
|
56
56
|
i && /* @__PURE__ */ n(
|
|
57
|
-
|
|
57
|
+
S,
|
|
58
58
|
{
|
|
59
59
|
position: i,
|
|
60
60
|
parentScrollPosition: d,
|
|
61
61
|
onAction: v
|
|
62
62
|
}
|
|
63
63
|
),
|
|
64
|
-
/* @__PURE__ */ n(
|
|
65
|
-
/* @__PURE__ */ n(
|
|
64
|
+
/* @__PURE__ */ n(x, { parentScrollPosition: d }),
|
|
65
|
+
/* @__PURE__ */ n(B, {})
|
|
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-DDlrU-7e.js";
|
|
7
7
|
import { TableCellContextMenu as T } from "./TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
|
|
8
8
|
export {
|
|
9
9
|
l as BlockFormatPlugin,
|