@uva-glass/component-library 3.26.0 → 3.26.2
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-DOV_uwol.js → Lexical.prod-m3GJsAAT.js} +4 -4
- package/dist/Lexical.prod-m3GJsAAT.js.map +1 -0
- package/dist/{LexicalClipboard.prod-DZgXdt_H.js → LexicalClipboard.prod-HyvHKdDm.js} +4 -4
- package/dist/{LexicalClipboard.prod-DZgXdt_H.js.map → LexicalClipboard.prod-HyvHKdDm.js.map} +1 -1
- package/dist/LexicalLink.prod-D0qasaVP.js +285 -0
- package/dist/LexicalLink.prod-D0qasaVP.js.map +1 -0
- package/dist/{LexicalList.prod-Dv48Tn54.js → LexicalList.prod-CQz14k_F.js} +193 -194
- package/dist/LexicalList.prod-CQz14k_F.js.map +1 -0
- package/dist/LexicalSelection.prod-Bh25dAig.js +101 -0
- package/dist/LexicalSelection.prod-Bh25dAig.js.map +1 -0
- package/dist/{LexicalTable.prod-M0HiIwBZ.js → LexicalTable.prod-BHKhA4PF.js} +5 -5
- package/dist/LexicalTable.prod-BHKhA4PF.js.map +1 -0
- package/dist/{LexicalUtils.prod-FOA8v2nU.js → LexicalUtils.prod-Vqqof-U-.js} +2 -2
- package/dist/{LexicalUtils.prod-FOA8v2nU.js.map → LexicalUtils.prod-Vqqof-U-.js.map} +1 -1
- package/dist/{TablePlugin-Bj5FObQ_.js → TablePlugin-CykqKW6X.js} +4 -4
- package/dist/{TablePlugin-Bj5FObQ_.js.map → TablePlugin-CykqKW6X.js.map} +1 -1
- package/dist/assets/CheckboxButtonBar.css +1 -1
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.d.ts +3 -1
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.js +38 -35
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.js.map +1 -1
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +5 -4
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js.map +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/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/RadioTabSelector/RadioTabSelector.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 +18 -18
- 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 +3 -3
- package/dist/components/RteEditor/Plugins/index.js +1 -1
- package/dist/components/RteEditor/RteEditor.js +73 -73
- package/dist/components/RteEditor/RteEditor.js.map +1 -1
- package/dist/components/RteEditor/helpers.js +4 -4
- package/dist/components/index.js +1 -1
- package/dist/{helpers-DxxBlpKs.js → helpers-5AryUrYu.js} +4 -4
- package/dist/{helpers-DxxBlpKs.js.map → helpers-5AryUrYu.js.map} +1 -1
- package/dist/index.js +1 -1
- package/package.json +10 -10
- package/dist/Lexical.prod-DOV_uwol.js.map +0 -1
- package/dist/LexicalLink.prod-XYC56-_H.js +0 -275
- package/dist/LexicalLink.prod-XYC56-_H.js.map +0 -1
- package/dist/LexicalList.prod-Dv48Tn54.js.map +0 -1
- package/dist/LexicalSelection.prod-DaoDqTxU.js +0 -97
- package/dist/LexicalSelection.prod-DaoDqTxU.js.map +0 -1
- package/dist/LexicalTable.prod-M0HiIwBZ.js.map +0 -1
|
@@ -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-CykqKW6X.js";
|
|
4
|
+
import "../../../../../helpers-5AryUrYu.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 K, jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as N, useState as b, useRef as T, useImperativeHandle as g, useLayoutEffect as E } from "react";
|
|
3
|
-
import { e as R } from "../../../../../helpers-
|
|
3
|
+
import { e as R } from "../../../../../helpers-5AryUrYu.js";
|
|
4
4
|
import { Icon as m } from "../../../../Icon/Icon.js";
|
|
5
5
|
import { useTranslation as S } 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 { o as W } from "../../../../LexicalComposerContext.prod-DLlRM5wP.js";
|
|
3
3
|
import { c as q } from "../../../../clsx-OuTLNxxd.js";
|
|
4
|
-
import { p as U, k as G,
|
|
4
|
+
import { p as U, k as G, v as J } from "../../../../LexicalLink.prod-D0qasaVP.js";
|
|
5
5
|
import { useRef as a, useState as Q, useEffect as m } from "react";
|
|
6
|
-
import { Y as Z, N as f, n as $, ap as tt, c as N, L as et, y as ot, X as rt } from "../../../../Lexical.prod-
|
|
7
|
-
import { A as nt } from "../../../../TablePlugin-
|
|
8
|
-
import { e as it } from "../../../../helpers-
|
|
6
|
+
import { Y as Z, N as f, n as $, ap as tt, c as N, L as et, y as ot, X as rt } from "../../../../Lexical.prod-m3GJsAAT.js";
|
|
7
|
+
import { A as nt } from "../../../../TablePlugin-CykqKW6X.js";
|
|
8
|
+
import { e as it } from "../../../../helpers-5AryUrYu.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,35 +1,35 @@
|
|
|
1
1
|
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
-
import { o as
|
|
3
|
-
import {
|
|
4
|
-
import { _ as x } from "../../../../LexicalSelection.prod-
|
|
2
|
+
import { o as D } from "../../../../LexicalComposerContext.prod-DLlRM5wP.js";
|
|
3
|
+
import { m as C, p as P, f as v, Z as K, o as f, s as y } from "../../../../LexicalList.prod-CQz14k_F.js";
|
|
4
|
+
import { _ as x } from "../../../../LexicalSelection.prod-Bh25dAig.js";
|
|
5
5
|
import { useState as p, useEffect as I } from "react";
|
|
6
6
|
import { c as O } from "../../../../clsx-OuTLNxxd.js";
|
|
7
|
-
import { ap as U, L as w, V as B, N as b, c as h, I as E, P as $ } from "../../../../Lexical.prod-
|
|
7
|
+
import { ap as U, L as w, V as B, N as b, c as h, I as E, P as $ } from "../../../../Lexical.prod-m3GJsAAT.js";
|
|
8
8
|
import { Icon as j } from "../../../Icon/Icon.js";
|
|
9
9
|
import { s as l } from "../../../../RteEditor.module-B_3uFnFu.js";
|
|
10
10
|
import { useTranslation as z } from "../../hooks/useTranslation.js";
|
|
11
11
|
const V = {
|
|
12
12
|
bullet: "BulletList",
|
|
13
13
|
number: "NumberedList"
|
|
14
|
-
}, Y = ["bullet", "number"],
|
|
15
|
-
const
|
|
14
|
+
}, Y = ["bullet", "number"], T = () => {
|
|
15
|
+
const u = z(), [e] = D(), [g, s] = p("paragraph"), [c, L] = p(!1), [m, _] = p(!1), k = () => {
|
|
16
16
|
e.update(() => {
|
|
17
17
|
const t = b();
|
|
18
18
|
h(t) && x(t, () => $());
|
|
19
19
|
});
|
|
20
|
-
},
|
|
20
|
+
}, S = (t) => {
|
|
21
21
|
t === "number" && g !== "number" ? (e.dispatchCommand(P, void 0), s("number")) : t === "bullet" && g !== "bullet" ? (e.dispatchCommand(v, void 0), s("bullet")) : (k(), s("paragraph"));
|
|
22
22
|
};
|
|
23
23
|
return I(() => {
|
|
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(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(v, void 0), !0) : !1,
|
|
27
27
|
w
|
|
28
28
|
);
|
|
29
29
|
return () => {
|
|
30
30
|
t();
|
|
31
31
|
};
|
|
32
|
-
}, [e, m,
|
|
32
|
+
}, [e, m, c]), I(() => {
|
|
33
33
|
e.registerCommand(
|
|
34
34
|
B,
|
|
35
35
|
(r) => (r.preventDefault(), e.update(() => {
|
|
@@ -37,12 +37,12 @@ const V = {
|
|
|
37
37
|
if (!h(n))
|
|
38
38
|
return;
|
|
39
39
|
const o = n.anchor.getNode(), i = o.getParent();
|
|
40
|
-
if (!
|
|
40
|
+
if (!K(i))
|
|
41
41
|
return;
|
|
42
42
|
const a = i.getParent();
|
|
43
43
|
if (f(a)) {
|
|
44
|
-
const
|
|
45
|
-
i.append(
|
|
44
|
+
const N = y(f(a) ? a.getListType() : "bullet");
|
|
45
|
+
i.append(N), N.append(o);
|
|
46
46
|
}
|
|
47
47
|
}), !0),
|
|
48
48
|
E
|
|
@@ -73,16 +73,16 @@ const V = {
|
|
|
73
73
|
}, [e]), /* @__PURE__ */ d("div", { className: l["editor__toolbar-button-group"], children: Y.map((t) => /* @__PURE__ */ d(
|
|
74
74
|
"button",
|
|
75
75
|
{
|
|
76
|
-
onClick: () =>
|
|
77
|
-
title:
|
|
76
|
+
onClick: () => S(t),
|
|
77
|
+
title: u.format[`${t}Tooltip`],
|
|
78
78
|
className: O(
|
|
79
79
|
l["editor__toolbar-button"],
|
|
80
80
|
l[`editor__toolbar-button--${t}`],
|
|
81
|
-
t === "bullet" &&
|
|
81
|
+
t === "bullet" && c && l["editor__toolbar-button--active"],
|
|
82
82
|
t === "number" && m && l["editor__toolbar-button--active"]
|
|
83
83
|
),
|
|
84
|
-
"aria-label":
|
|
85
|
-
"aria-keyshortcuts":
|
|
84
|
+
"aria-label": u.aria.labels[t],
|
|
85
|
+
"aria-keyshortcuts": u.aria.keyshortcuts[t],
|
|
86
86
|
type: "button",
|
|
87
87
|
children: /* @__PURE__ */ d(j, { name: V[t], size: 24 })
|
|
88
88
|
},
|
|
@@ -90,6 +90,6 @@ const V = {
|
|
|
90
90
|
)) });
|
|
91
91
|
};
|
|
92
92
|
export {
|
|
93
|
-
|
|
93
|
+
T as ListPlugin
|
|
94
94
|
};
|
|
95
95
|
//# sourceMappingURL=ListPlugin.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { o as m } from "../../../../LexicalComposerContext.prod-DLlRM5wP.js";
|
|
2
2
|
import { useEffect as c } from "react";
|
|
3
|
-
import { ae as f, E as p, N as u } from "../../../../Lexical.prod-
|
|
4
|
-
import { L as i } from "../../../../LexicalUtils.prod-
|
|
5
|
-
import { D as d } from "../../../../LexicalClipboard.prod-
|
|
3
|
+
import { ae as f, E as p, N as u } from "../../../../Lexical.prod-m3GJsAAT.js";
|
|
4
|
+
import { L as i } from "../../../../LexicalUtils.prod-Vqqof-U-.js";
|
|
5
|
+
import { D as d } from "../../../../LexicalClipboard.prod-HyvHKdDm.js";
|
|
6
6
|
import { d as D } from "../../../../index-DllfJcv4.js";
|
|
7
7
|
const N = () => {
|
|
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 B } from "../../../../TablePlugin-
|
|
3
|
+
import { b as B } from "../../../../TablePlugin-CykqKW6X.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-BHKhA4PF.js";
|
|
5
|
+
import "../../../../Lexical.prod-m3GJsAAT.js";
|
|
6
6
|
import "react";
|
|
7
|
-
import { T as F } from "../../../../TablePlugin-
|
|
7
|
+
import { T as F } from "../../../../TablePlugin-CykqKW6X.js";
|
|
8
8
|
import "./helpers.js";
|
|
9
9
|
import "../../hooks/useFlyout.js";
|
|
10
10
|
import "../../../Icon/Icon.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { H as d, R as h, B as m, Z as
|
|
2
|
-
import { P as u } from "../../../../Lexical.prod-
|
|
1
|
+
import { H as d, R as h, B as m, Z as x, z as w, P as S, v as C, K as p, L as E } from "../../../../LexicalTable.prod-BHKhA4PF.js";
|
|
2
|
+
import { P as u } from "../../../../Lexical.prod-m3GJsAAT.js";
|
|
3
3
|
const b = 100, D = (e, n) => {
|
|
4
|
-
const t =
|
|
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++) {
|
|
@@ -17,7 +17,7 @@ const b = 100, D = (e, n) => {
|
|
|
17
17
|
const r = t.getFirstDescendant();
|
|
18
18
|
r && r.select();
|
|
19
19
|
}
|
|
20
|
-
},
|
|
20
|
+
}, I = (e) => {
|
|
21
21
|
d(e).remove();
|
|
22
22
|
}, B = (e, n) => {
|
|
23
23
|
const t = p(), o = w(e), r = o.getChildrenSize();
|
|
@@ -32,16 +32,16 @@ const b = 100, D = (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
|
-
const o =
|
|
35
|
+
const o = S(e), r = t.getChildren().length, l = d(e);
|
|
36
36
|
let s = m(e);
|
|
37
37
|
const c = l.getChildren(), R = c.length;
|
|
38
38
|
for (let i = 0; i < R; 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((T) => {
|
|
43
|
+
T.getChildren().forEach((v) => {
|
|
44
|
+
v.setWidth(b / r);
|
|
45
45
|
});
|
|
46
46
|
});
|
|
47
47
|
}
|
|
@@ -53,13 +53,13 @@ const b = 100, D = (e, n) => {
|
|
|
53
53
|
if (!h(e))
|
|
54
54
|
throw new Error("Selected node is not a TableCellNode");
|
|
55
55
|
const n = d(e), t = ((r = n.getFirstChild()) == null ? void 0 : r.getChildrenSize()) || 0, o = m(e);
|
|
56
|
-
t === 1 ?
|
|
56
|
+
t === 1 ? I(e) : x(n, o);
|
|
57
57
|
};
|
|
58
58
|
export {
|
|
59
59
|
D as createTable,
|
|
60
60
|
O as deleteColumn,
|
|
61
61
|
A as deleteRow,
|
|
62
|
-
|
|
62
|
+
I as deleteTable,
|
|
63
63
|
L as insertColumn,
|
|
64
64
|
B as insertRow
|
|
65
65
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsxs as y, jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { o as P } from "../../../../LexicalComposerContext.prod-DLlRM5wP.js";
|
|
3
|
-
import { N as h, c as g, y as C } from "../../../../Lexical.prod-
|
|
3
|
+
import { N as h, c as g, y as C } from "../../../../Lexical.prod-m3GJsAAT.js";
|
|
4
4
|
import { useState as L, useRef as E, useCallback as N, useEffect as m } from "react";
|
|
5
|
-
import { W as b } from "../../../../LexicalTable.prod-
|
|
5
|
+
import { W as b } from "../../../../LexicalTable.prod-BHKhA4PF.js";
|
|
6
6
|
import { BlockFormatPlugin as T } 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-CykqKW6X.js";
|
|
11
11
|
import { TableCellContextMenu as z } from "../TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
|
|
12
12
|
import { s as A } from "../../../../RteEditor.module-B_3uFnFu.js";
|
|
13
13
|
import { setScrollableContainers as w, removeScrollableContainers as K } 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-CykqKW6X.js";
|
|
7
7
|
import { TableCellContextMenu as T } from "./TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
|
|
8
8
|
export {
|
|
9
9
|
l as BlockFormatPlugin,
|