@uva-glass/component-library 2.6.2 → 2.6.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-BAr6tzpa.js → Lexical.prod-sR6tW7N6.js} +894 -894
- package/dist/Lexical.prod-sR6tW7N6.js.map +1 -0
- package/dist/{LexicalClipboard.prod-CLCBYtDj.js → LexicalClipboard.prod-BbRoaXo6.js} +93 -93
- package/dist/LexicalClipboard.prod-BbRoaXo6.js.map +1 -0
- package/dist/{LexicalComposerContext.prod-Dyvim1tK.js → LexicalComposerContext.prod-DxxjdrXB.js} +2 -2
- package/dist/{LexicalComposerContext.prod-Dyvim1tK.js.map → LexicalComposerContext.prod-DxxjdrXB.js.map} +1 -1
- package/dist/{LexicalLink.prod-CBgZ4B3x.js → LexicalLink.prod-iDKxtfCF.js} +42 -42
- package/dist/LexicalLink.prod-iDKxtfCF.js.map +1 -0
- package/dist/{LexicalList.prod-haeqjypw.js → LexicalList.prod-ywkx7SnO.js} +56 -56
- package/dist/LexicalList.prod-ywkx7SnO.js.map +1 -0
- package/dist/LexicalSelection.prod-mYXylG1z.js +86 -0
- package/dist/{LexicalSelection.prod-C8x7KK4L.js.map → LexicalSelection.prod-mYXylG1z.js.map} +1 -1
- package/dist/LexicalTable.prod-XN7avk7R.js +1447 -0
- package/dist/LexicalTable.prod-XN7avk7R.js.map +1 -0
- package/dist/{LexicalUtils.prod-Dsec_Kl-.js → LexicalUtils.prod-DnFLi0Ww.js} +24 -24
- package/dist/{LexicalUtils.prod-Dsec_Kl-.js.map → LexicalUtils.prod-DnFLi0Ww.js.map} +1 -1
- package/dist/{SortableProvider-BUsvniX7.js → SortableProvider-RaH_ZXB3.js} +20 -20
- package/dist/{SortableProvider-BUsvniX7.js.map → SortableProvider-RaH_ZXB3.js.map} +1 -1
- package/dist/{TablePlugin-sPSGmCno.js → TablePlugin-5Cs2F_co.js} +12 -11
- package/dist/{TablePlugin-sPSGmCno.js.map → TablePlugin-5Cs2F_co.js.map} +1 -1
- 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.d.ts +1 -1
- package/dist/components/Checkbox/Checkbox.js +6 -5
- package/dist/components/Checkbox/Checkbox.js.map +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.d.ts +2 -2
- package/dist/components/CheckboxTree/CheckboxTree.js +110 -74
- package/dist/components/CheckboxTree/CheckboxTree.js.map +1 -1
- package/dist/components/CheckboxTree/CheckboxTree.stories.d.ts +2 -1
- package/dist/components/CheckboxTree/CheckboxTree.stories.js +121 -31
- package/dist/components/CheckboxTree/CheckboxTree.stories.js.map +1 -1
- package/dist/components/Chip/Chip.stories.js +1 -1
- package/dist/components/Drawer/Drawer.stories.js +1 -1
- package/dist/components/FormInput/FormInput.js +14 -13
- package/dist/components/FormInput/FormInput.js.map +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.js +17 -17
- package/dist/components/InputField/InputField.stories.js +17 -16
- package/dist/components/InputField/InputField.stories.js.map +1 -1
- 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 +5 -4
- package/dist/components/MultiSelect/components/MultiSelectHeader.js.map +1 -1
- package/dist/components/MultiSelect/index.js +1 -1
- package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +4 -4
- package/dist/components/OverlayStepBar/OverlayStepBar.js +13 -12
- package/dist/components/OverlayStepBar/OverlayStepBar.js.map +1 -1
- package/dist/components/PeriodSelector/PeriodSelector.js +15 -14
- package/dist/components/PeriodSelector/PeriodSelector.js.map +1 -1
- package/dist/components/PeriodSelector/PeriodSelector.stories.js +1 -1
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +11 -10
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js.map +1 -1
- package/dist/components/RadioButton/RadioButton.js +3 -3
- package/dist/components/RteEditor/EditorHeader/EditorHeader.js +6 -5
- package/dist/components/RteEditor/EditorHeader/EditorHeader.js.map +1 -1
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +2 -2
- package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +15 -14
- package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js.map +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +6 -5
- package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js.map +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +10 -9
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js.map +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +48 -48
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +5 -5
- package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +5 -4
- package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js.map +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/TableCellContextMenu/TableCellContextMenu.js +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +8 -7
- package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js.map +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +5 -5
- 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 +7 -7
- package/dist/components/RteEditor/RteEditor.js +473 -472
- package/dist/components/RteEditor/RteEditor.js.map +1 -1
- package/dist/components/RteEditor/helpers.js +4 -4
- package/dist/components/SelectListbox/SelectListBox.stories.js +1 -1
- package/dist/components/SelectListbox/SelectProvider.js +10 -10
- package/dist/components/Sortable/Sortable.js +1 -1
- package/dist/components/Sortable/Sortable.stories.js +7 -7
- package/dist/components/Sortable/SortableProvider.js +1 -1
- package/dist/components/Sortable/components/SortableContainer.js +1 -1
- package/dist/components/Sortable/components/SortableItem.js +15 -15
- package/dist/components/Sortable/sortableReducer.js +21 -21
- package/dist/components/ToggleSwitch/ToggleSwitch.stories.js +5 -5
- package/dist/components/Tooltip/Tooltip.js +22 -22
- package/dist/components/index.js +1 -1
- package/dist/{helpers-DHHQR5ys.js → helpers-BpqX-Lj3.js} +26 -26
- package/dist/helpers-BpqX-Lj3.js.map +1 -0
- package/dist/{index-0wq-B7do.js → index-B3c5pcHk.js} +22 -22
- package/dist/{index-0wq-B7do.js.map → index-B3c5pcHk.js.map} +1 -1
- package/dist/{index-B9BWML6P.js → index-BpZ8v2ye.js} +7088 -7092
- package/dist/{index-B9BWML6P.js.map → index-BpZ8v2ye.js.map} +1 -1
- package/dist/index-CHX1d9_A.js +21922 -0
- package/dist/{index-DWzkl4aY.js.map → index-CHX1d9_A.js.map} +1 -1
- package/dist/index.js +1 -1
- package/dist/{react-18-BIqxBxbW.js → react-18-CT6mjea2.js} +2 -2
- package/dist/{react-18-BIqxBxbW.js.map → react-18-CT6mjea2.js.map} +1 -1
- package/dist/storybook__react.d.js +510 -510
- package/dist/storybook__react.d.js.map +1 -1
- package/package.json +1 -1
- package/dist/Lexical.prod-BAr6tzpa.js.map +0 -1
- package/dist/LexicalClipboard.prod-CLCBYtDj.js.map +0 -1
- package/dist/LexicalLink.prod-CBgZ4B3x.js.map +0 -1
- package/dist/LexicalList.prod-haeqjypw.js.map +0 -1
- package/dist/LexicalSelection.prod-C8x7KK4L.js +0 -86
- package/dist/LexicalTable.prod-8RqiGUG-.js +0 -1447
- package/dist/LexicalTable.prod-8RqiGUG-.js.map +0 -1
- package/dist/helpers-DHHQR5ys.js.map +0 -1
- package/dist/index-DWzkl4aY.js +0 -21915
|
@@ -1,68 +1,68 @@
|
|
|
1
1
|
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
-
import { u as
|
|
3
|
-
import { Y as N, Q as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { useState as p, useEffect as
|
|
6
|
-
import { c as
|
|
7
|
-
import { a7 as
|
|
8
|
-
import { Icon as
|
|
9
|
-
import { s as
|
|
10
|
-
import { useTranslation as
|
|
11
|
-
const
|
|
2
|
+
import { u as S } from "../../../../LexicalComposerContext.prod-DxxjdrXB.js";
|
|
3
|
+
import { Y as N, Q as P, G as k, K as y, H as f, q as H } from "../../../../LexicalList.prod-ywkx7SnO.js";
|
|
4
|
+
import { _ as O } from "../../../../LexicalSelection.prod-mYXylG1z.js";
|
|
5
|
+
import { useState as p, useEffect as K } from "react";
|
|
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-sR6tW7N6.js";
|
|
8
|
+
import { Icon as E } from "../../../Icon/Icon.js";
|
|
9
|
+
import { s as u } from "../../../../RteEditor.module-oFMKEW6f.js";
|
|
10
|
+
import { useTranslation as V } from "../../hooks/useTranslation.js";
|
|
11
|
+
const Y = {
|
|
12
12
|
bullet: "BulletList",
|
|
13
13
|
number: "NumberedList"
|
|
14
|
-
},
|
|
15
|
-
const
|
|
14
|
+
}, j = ["bullet", "number"], W = () => {
|
|
15
|
+
const l = V(), [e] = S(), [g, n] = p("paragraph"), [c, _] = p(!1), [m, L] = p(!1), D = () => {
|
|
16
16
|
e.update(() => {
|
|
17
17
|
const t = b();
|
|
18
|
-
h(t) &&
|
|
18
|
+
h(t) && O(t, () => B());
|
|
19
19
|
});
|
|
20
|
-
},
|
|
21
|
-
t === "number" && g !== "number" ? (e.dispatchCommand(
|
|
20
|
+
}, I = (t) => {
|
|
21
|
+
t === "number" && g !== "number" ? (e.dispatchCommand(P, void 0), n("number")) : t === "bullet" && g !== "bullet" ? (e.dispatchCommand(k, void 0), n("bullet")) : (D(), n("paragraph"));
|
|
22
22
|
};
|
|
23
|
-
return
|
|
23
|
+
return K(() => {
|
|
24
24
|
const t = e.registerCommand(
|
|
25
|
-
|
|
26
|
-
(r) => r.ctrlKey && r.shiftKey && r.code === "Digit7" ? (r.preventDefault(), m ? e.dispatchCommand(N, void 0) : e.dispatchCommand(
|
|
27
|
-
|
|
25
|
+
x,
|
|
26
|
+
(r) => r.ctrlKey && r.shiftKey && r.code === "Digit7" ? (r.preventDefault(), m ? e.dispatchCommand(N, void 0) : e.dispatchCommand(P, void 0), !0) : r.ctrlKey && r.shiftKey && r.code === "Digit8" ? (r.preventDefault(), c ? e.dispatchCommand(N, void 0) : e.dispatchCommand(k, void 0), !0) : !1,
|
|
27
|
+
U
|
|
28
28
|
);
|
|
29
29
|
return () => {
|
|
30
30
|
t();
|
|
31
31
|
};
|
|
32
|
-
}, [e, m, c]),
|
|
32
|
+
}, [e, m, c]), K(() => {
|
|
33
33
|
e.registerCommand(
|
|
34
|
-
|
|
34
|
+
$,
|
|
35
35
|
(r) => (r.preventDefault(), e.update(() => {
|
|
36
|
-
const
|
|
37
|
-
if (!h(
|
|
36
|
+
const i = b();
|
|
37
|
+
if (!h(i))
|
|
38
38
|
return;
|
|
39
|
-
const o =
|
|
40
|
-
if (!
|
|
39
|
+
const o = i.anchor.getNode(), s = o.getParent();
|
|
40
|
+
if (!y(s))
|
|
41
41
|
return;
|
|
42
|
-
const a =
|
|
42
|
+
const a = s.getParent();
|
|
43
43
|
if (f(a)) {
|
|
44
|
-
const C =
|
|
45
|
-
|
|
44
|
+
const C = H(f(a) ? a.getListType() : "bullet");
|
|
45
|
+
s.append(C), C.append(o);
|
|
46
46
|
}
|
|
47
47
|
}), !0),
|
|
48
|
-
|
|
48
|
+
w
|
|
49
49
|
);
|
|
50
50
|
const t = e.registerUpdateListener(({ editorState: r }) => {
|
|
51
51
|
r.read(() => {
|
|
52
|
-
const
|
|
53
|
-
if (h(
|
|
54
|
-
let o =
|
|
52
|
+
const i = b();
|
|
53
|
+
if (h(i)) {
|
|
54
|
+
let o = i.anchor.getNode();
|
|
55
55
|
for (; o !== null; ) {
|
|
56
56
|
if (f(o)) {
|
|
57
57
|
const a = o.getTag();
|
|
58
|
-
_(a === "ul"), L(a === "ol"), a === "ul" &&
|
|
58
|
+
_(a === "ul"), L(a === "ol"), a === "ul" && n("bullet"), a === "ol" && n("number");
|
|
59
59
|
return;
|
|
60
60
|
}
|
|
61
|
-
const
|
|
62
|
-
if (
|
|
63
|
-
o =
|
|
61
|
+
const s = o.getParent();
|
|
62
|
+
if (s === null) break;
|
|
63
|
+
o = s;
|
|
64
64
|
}
|
|
65
|
-
_(!1), L(!1),
|
|
65
|
+
_(!1), L(!1), n("paragraph");
|
|
66
66
|
}
|
|
67
67
|
return !1;
|
|
68
68
|
});
|
|
@@ -70,21 +70,21 @@ const V = {
|
|
|
70
70
|
return () => {
|
|
71
71
|
t();
|
|
72
72
|
};
|
|
73
|
-
}, [e]), /* @__PURE__ */ d("div", { className:
|
|
73
|
+
}, [e]), /* @__PURE__ */ d("div", { className: u["editor__toolbar-button-group"], children: j.map((t) => /* @__PURE__ */ d(
|
|
74
74
|
"button",
|
|
75
75
|
{
|
|
76
|
-
onClick: () =>
|
|
77
|
-
title:
|
|
78
|
-
className:
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
t === "bullet" && c &&
|
|
82
|
-
t === "number" && m &&
|
|
76
|
+
onClick: () => I(t),
|
|
77
|
+
title: l.format[`${t}Tooltip`],
|
|
78
|
+
className: q(
|
|
79
|
+
u["editor__toolbar-button"],
|
|
80
|
+
u[`editor__toolbar-button--${t}`],
|
|
81
|
+
t === "bullet" && c && u["editor__toolbar-button--active"],
|
|
82
|
+
t === "number" && m && u["editor__toolbar-button--active"]
|
|
83
83
|
),
|
|
84
|
-
"aria-label":
|
|
85
|
-
"aria-keyshortcuts":
|
|
84
|
+
"aria-label": l.aria.labels[t],
|
|
85
|
+
"aria-keyshortcuts": l.aria.keyshortcuts[t],
|
|
86
86
|
type: "button",
|
|
87
|
-
children: /* @__PURE__ */ d(
|
|
87
|
+
children: /* @__PURE__ */ d(E, { name: Y[t], size: 24 })
|
|
88
88
|
},
|
|
89
89
|
t
|
|
90
90
|
)) });
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { u as m } from "../../../../LexicalComposerContext.prod-
|
|
1
|
+
import { u as m } from "../../../../LexicalComposerContext.prod-DxxjdrXB.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-
|
|
6
|
-
import { d as D } from "../../../../index-
|
|
3
|
+
import { a1 as f, X as u, H as p } from "../../../../Lexical.prod-sR6tW7N6.js";
|
|
4
|
+
import { c as i } from "../../../../LexicalUtils.prod-DnFLi0Ww.js";
|
|
5
|
+
import { N as d } from "../../../../LexicalClipboard.prod-BbRoaXo6.js";
|
|
6
|
+
import { d as D } from "../../../../index-B3c5pcHk.js";
|
|
7
7
|
const g = () => {
|
|
8
8
|
const [a] = m(), l = (t) => {
|
|
9
9
|
t.preventDefault(), a.update(() => {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { b as
|
|
3
|
+
import { b as B } from "../../../../TablePlugin-5Cs2F_co.js";
|
|
4
4
|
import "../../../Buttons/Button.js";
|
|
5
5
|
import "../../../Buttons/LinkButton.js";
|
|
6
6
|
import "@react-aria/button";
|
|
7
|
+
import "../../../Checkbox/Checkbox.js";
|
|
7
8
|
import "../../../Label/Label.js";
|
|
8
9
|
import "@react-aria/dialog";
|
|
9
10
|
import "@react-aria/focus";
|
|
@@ -20,12 +21,12 @@ import "../../hooks/useTranslation.js";
|
|
|
20
21
|
import "../LinkPlugin/LinkContextMenu/LinkContextMenu.js";
|
|
21
22
|
import "../../hooks/components/Flyout.js";
|
|
22
23
|
import "../../Providers/LanguageProvider.js";
|
|
23
|
-
import "../../../../index-
|
|
24
|
+
import "../../../../index-B3c5pcHk.js";
|
|
24
25
|
import "../../../SelectListbox/SelectListbox.js";
|
|
25
26
|
import "../../../SelectListbox/SelectProvider.js";
|
|
26
27
|
import "../../../Sortable/components/SortableItem.js";
|
|
27
|
-
import "../../../../SortableProvider-
|
|
28
|
+
import "../../../../SortableProvider-RaH_ZXB3.js";
|
|
28
29
|
export {
|
|
29
|
-
|
|
30
|
+
B as AddTableForm
|
|
30
31
|
};
|
|
31
32
|
//# sourceMappingURL=AddTableFrom.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddTableFrom.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AddTableFrom.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
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-DxxjdrXB.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,16 +1,17 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import "../../../../LexicalComposerContext.prod-
|
|
2
|
+
import "../../../../LexicalComposerContext.prod-DxxjdrXB.js";
|
|
3
3
|
import "../../../../clsx-OuTLNxxd.js";
|
|
4
|
-
import "../../../../LexicalTable.prod-
|
|
5
|
-
import "../../../../Lexical.prod-
|
|
4
|
+
import "../../../../LexicalTable.prod-XN7avk7R.js";
|
|
5
|
+
import "../../../../Lexical.prod-sR6tW7N6.js";
|
|
6
6
|
import "react";
|
|
7
|
-
import { T as
|
|
7
|
+
import { T as F } from "../../../../TablePlugin-5Cs2F_co.js";
|
|
8
8
|
import "./helpers.js";
|
|
9
9
|
import "../../hooks/useFlyout.js";
|
|
10
10
|
import "../../../Icon/Icon.js";
|
|
11
11
|
import "../../../Buttons/Button.js";
|
|
12
12
|
import "../../../Buttons/LinkButton.js";
|
|
13
13
|
import "@react-aria/button";
|
|
14
|
+
import "../../../Checkbox/Checkbox.js";
|
|
14
15
|
import "@react-aria/dialog";
|
|
15
16
|
import "@react-aria/focus";
|
|
16
17
|
import "@react-aria/overlays";
|
|
@@ -24,12 +25,12 @@ import "../../../../RteEditor.module-oFMKEW6f.js";
|
|
|
24
25
|
import "../../hooks/useTranslation.js";
|
|
25
26
|
import "../LinkPlugin/LinkContextMenu/LinkContextMenu.js";
|
|
26
27
|
import "../../Providers/LanguageProvider.js";
|
|
27
|
-
import "../../../../index-
|
|
28
|
+
import "../../../../index-B3c5pcHk.js";
|
|
28
29
|
import "../../../SelectListbox/SelectListbox.js";
|
|
29
30
|
import "../../../SelectListbox/SelectProvider.js";
|
|
30
31
|
import "../../../Sortable/components/SortableItem.js";
|
|
31
|
-
import "../../../../SortableProvider-
|
|
32
|
+
import "../../../../SortableProvider-RaH_ZXB3.js";
|
|
32
33
|
export {
|
|
33
|
-
|
|
34
|
+
F as TablePlugin
|
|
34
35
|
};
|
|
35
36
|
//# sourceMappingURL=TablePlugin.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TablePlugin.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TablePlugin.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { x as S, _ as h, d, T as w, R as C, g as m, O as E, F as p, L as I } from "../../../../LexicalTable.prod-
|
|
2
|
-
import { V as g } from "../../../../Lexical.prod-
|
|
1
|
+
import { x as S, _ as h, d, T as w, R as C, g as m, O as E, F as p, L as I } from "../../../../LexicalTable.prod-XN7avk7R.js";
|
|
2
|
+
import { V as g } from "../../../../Lexical.prod-sR6tW7N6.js";
|
|
3
3
|
const b = 100, F = (e, n) => {
|
|
4
4
|
const t = S(0, 0, !1);
|
|
5
5
|
for (let o = 0; o < e; o++) {
|
|
@@ -17,7 +17,7 @@ const b = 100, F = (e, n) => {
|
|
|
17
17
|
const r = t.getFirstDescendant();
|
|
18
18
|
r && r.select();
|
|
19
19
|
}
|
|
20
|
-
},
|
|
20
|
+
}, O = (e) => {
|
|
21
21
|
C(e).remove();
|
|
22
22
|
}, L = (e, n) => {
|
|
23
23
|
const t = h(), o = w(e), r = o.getChildrenSize();
|
|
@@ -53,13 +53,13 @@ const b = 100, F = (e, n) => {
|
|
|
53
53
|
if (!m(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 = p(e);
|
|
56
|
-
t === 1 ?
|
|
56
|
+
t === 1 ? O(e) : I(n, o);
|
|
57
57
|
};
|
|
58
58
|
export {
|
|
59
59
|
F as createTable,
|
|
60
60
|
P as deleteColumn,
|
|
61
61
|
A as deleteRow,
|
|
62
|
-
|
|
62
|
+
O as deleteTable,
|
|
63
63
|
z as insertColumn,
|
|
64
64
|
L as insertRow
|
|
65
65
|
};
|
|
@@ -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-DxxjdrXB.js";
|
|
3
|
+
import { H as h, a as g, M as C } from "../../../../Lexical.prod-sR6tW7N6.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-XN7avk7R.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-5Cs2F_co.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-5Cs2F_co.js";
|
|
7
7
|
import { TableCellContextMenu as T } from "./TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
|
|
8
8
|
export {
|
|
9
9
|
l as BlockFormatPlugin,
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsx as u } from "react/jsx-runtime";
|
|
2
2
|
import { createContext as g, useState as s, useContext as i } from "react";
|
|
3
|
-
const t = g(void 0),
|
|
4
|
-
const [n,
|
|
5
|
-
|
|
3
|
+
const t = g(void 0), d = ({ children: e }) => {
|
|
4
|
+
const [n, a] = s("en"), o = (r) => {
|
|
5
|
+
a(r);
|
|
6
6
|
};
|
|
7
|
-
return /* @__PURE__ */ u(t.Provider, { value: { language: n, switchLanguage:
|
|
8
|
-
},
|
|
7
|
+
return /* @__PURE__ */ u(t.Provider, { value: { language: n, switchLanguage: o }, children: e });
|
|
8
|
+
}, x = () => {
|
|
9
9
|
const e = i(t);
|
|
10
10
|
if (!e)
|
|
11
11
|
throw new Error("useLanguage must be used within a LanguageProvider");
|
|
12
12
|
return e;
|
|
13
13
|
};
|
|
14
14
|
export {
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
d as LanguageProvider,
|
|
16
|
+
x as useLanguage
|
|
17
17
|
};
|
|
18
18
|
//# sourceMappingURL=LanguageProvider.js.map
|