@uva-glass/component-library 1.64.6 → 1.65.0
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-CFhL_6Md.js → Lexical.prod-DeeCy7Xd.js} +260 -255
- package/dist/Lexical.prod-DeeCy7Xd.js.map +1 -0
- package/dist/{LexicalClipboard.prod-BsGZ_U-F.js → LexicalClipboard.prod-CayrMfkI.js} +26 -26
- package/dist/LexicalClipboard.prod-CayrMfkI.js.map +1 -0
- package/dist/{LexicalLink.prod-DOD0hvjh.js → LexicalLink.prod-Biaqry-c.js} +5 -5
- package/dist/{LexicalLink.prod-DOD0hvjh.js.map → LexicalLink.prod-Biaqry-c.js.map} +1 -1
- package/dist/{LexicalList.prod-C66L7HSr.js → LexicalList.prod-Uk8UObU7.js} +17 -17
- package/dist/{LexicalList.prod-C66L7HSr.js.map → LexicalList.prod-Uk8UObU7.js.map} +1 -1
- package/dist/{LexicalSelection.prod-mI1PjnKs.js → LexicalSelection.prod-C1TEIGhq.js} +4 -4
- package/dist/{LexicalSelection.prod-mI1PjnKs.js.map → LexicalSelection.prod-C1TEIGhq.js.map} +1 -1
- package/dist/{LexicalTable.prod-Dg8eGg1m.js → LexicalTable.prod-hx6rW3fc.js} +85 -85
- package/dist/{LexicalTable.prod-Dg8eGg1m.js.map → LexicalTable.prod-hx6rW3fc.js.map} +1 -1
- package/dist/{LexicalUtils.prod-0Sd05E-o.js → LexicalUtils.prod-CCjlRAc-.js} +10 -10
- package/dist/{LexicalUtils.prod-0Sd05E-o.js.map → LexicalUtils.prod-CCjlRAc-.js.map} +1 -1
- package/dist/{TablePlugin-ChuaCSFq.js → TablePlugin-BbiBRjod.js} +4 -4
- package/dist/{TablePlugin-ChuaCSFq.js.map → TablePlugin-BbiBRjod.js.map} +1 -1
- package/dist/assets/Label.css +1 -1
- package/dist/components/CheckboxTree/CheckboxTree.js +1 -1
- package/dist/components/FormInput/FormInput.d.ts +3 -1
- package/dist/components/FormInput/FormInput.js +23 -22
- package/dist/components/FormInput/FormInput.js.map +1 -1
- package/dist/components/InputField/InputField.stories.js +1 -1
- package/dist/components/Label/Label.d.ts +3 -1
- package/dist/components/Label/Label.js +14 -12
- package/dist/components/Label/Label.js.map +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 +4 -4
- 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 +9 -9
- package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +21 -21
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +6 -6
- 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 +94 -94
- package/dist/components/RteEditor/helpers.js +8 -8
- package/dist/components/index.js +1 -1
- package/dist/{helpers-CnEW_8nD.js → helpers-CgzuKnuq.js} +7 -7
- package/dist/{helpers-CnEW_8nD.js.map → helpers-CgzuKnuq.js.map} +1 -1
- package/dist/index.js +1 -1
- package/package.json +6 -6
- package/dist/Lexical.prod-CFhL_6Md.js.map +0 -1
- package/dist/LexicalClipboard.prod-BsGZ_U-F.js.map +0 -1
|
@@ -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-Biaqry-c.js";
|
|
5
5
|
import { useRef as a, useState as Q, useEffect as m } from "react";
|
|
6
|
-
import { t as X,
|
|
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-DeeCy7Xd.js";
|
|
7
|
+
import { A as nt } from "../../../../TablePlugin-BbiBRjod.js";
|
|
8
|
+
import { e as it } from "../../../../helpers-CgzuKnuq.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";
|
|
@@ -51,7 +51,7 @@ const mt = 200, z = (p) => {
|
|
|
51
51
|
}
|
|
52
52
|
return !1;
|
|
53
53
|
}, jt = ({ parentScrollPosition: p }) => {
|
|
54
|
-
const n = ut(), [c] = $(), { flyout: A, showFlyout: E, hideFlyout: C, isVisible: u } = ct(), d = a(), N = a(!1), y = a(""), g = a(""), [L, H] = Q({ active: !1, url: "", linktext: "" }),
|
|
54
|
+
const n = ut(), [c] = $(), { flyout: A, showFlyout: E, hideFlyout: C, isVisible: u } = ct(), d = a(), N = a(!1), y = a(""), g = a(""), [L, H] = Q({ active: !1, url: "", linktext: "" }), R = a(u), x = a(null), P = a(null), F = a(), b = () => {
|
|
55
55
|
c.update(() => {
|
|
56
56
|
const e = f();
|
|
57
57
|
x.current = e;
|
|
@@ -79,7 +79,7 @@ const mt = 200, z = (p) => {
|
|
|
79
79
|
(e = F.current) == null || e.clearForm(), C(), S();
|
|
80
80
|
}, T = () => {
|
|
81
81
|
var t;
|
|
82
|
-
const e = (t =
|
|
82
|
+
const e = (t = P.current) == null ? void 0 : t.getBoundingClientRect();
|
|
83
83
|
!N.current && e && (b(), E({ position: { top: e.bottom, left: e.left }, ...j }), setTimeout(() => {
|
|
84
84
|
var o;
|
|
85
85
|
return (o = d.current) == null ? void 0 : o.setDefaults("", g.current);
|
|
@@ -197,13 +197,13 @@ const mt = 200, z = (p) => {
|
|
|
197
197
|
};
|
|
198
198
|
}, [c]), m(() => {
|
|
199
199
|
var e;
|
|
200
|
-
|
|
200
|
+
R.current = u, u || (e = F.current) == null || e.clearForm();
|
|
201
201
|
}, [u]), m(() => {
|
|
202
202
|
u && v();
|
|
203
203
|
}, [p]), m(() => {
|
|
204
204
|
L.active || C();
|
|
205
205
|
}, [L]), m(() => {
|
|
206
|
-
const e = (o) => (U(t), o.key === "Escape" &&
|
|
206
|
+
const e = (o) => (U(t), o.key === "Escape" && R.current && (o.preventDefault(), o.stopPropagation(), v()), !0);
|
|
207
207
|
window.addEventListener("keydown", e, { capture: !0 });
|
|
208
208
|
const t = () => {
|
|
209
209
|
C();
|
|
@@ -225,7 +225,7 @@ const mt = 200, z = (p) => {
|
|
|
225
225
|
"aria-label": n.aria.labels.link,
|
|
226
226
|
"aria-keyshortcuts": n.aria.keyshortcuts.link,
|
|
227
227
|
type: "button",
|
|
228
|
-
ref:
|
|
228
|
+
ref: P,
|
|
229
229
|
children: /* @__PURE__ */ k(lt, { name: "Link", size: 20 })
|
|
230
230
|
}
|
|
231
231
|
),
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
-
import { u as
|
|
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
|
|
5
|
-
import { useState as p, useEffect as
|
|
6
|
-
import { c as
|
|
7
|
-
import { a5 as O, a6 as R, N as U,
|
|
8
|
-
import { Icon as
|
|
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-Uk8UObU7.js";
|
|
4
|
+
import { b as x } from "../../../../LexicalSelection.prod-C1TEIGhq.js";
|
|
5
|
+
import { useState as p, useEffect as K } from "react";
|
|
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-DeeCy7Xd.js";
|
|
8
|
+
import { Icon as E } from "../../../Icon/Icon.js";
|
|
9
9
|
import { s as l } from "../../../../RteEditor.module-oFMKEW6f.js";
|
|
10
|
-
import { useTranslation as
|
|
11
|
-
const
|
|
10
|
+
import { useTranslation as Y } from "../../hooks/useTranslation.js";
|
|
11
|
+
const $ = {
|
|
12
12
|
bullet: "BulletList",
|
|
13
13
|
number: "NumberedList"
|
|
14
|
-
},
|
|
15
|
-
const u =
|
|
14
|
+
}, j = ["bullet", "number"], W = () => {
|
|
15
|
+
const u = Y(), [e] = I(), [g, s] = p("paragraph"), [c, L] = p(!1), [m, _] = p(!1), P = () => {
|
|
16
16
|
e.update(() => {
|
|
17
17
|
const t = b();
|
|
18
|
-
h(t) &&
|
|
18
|
+
h(t) && x(t, () => B());
|
|
19
19
|
});
|
|
20
|
-
},
|
|
21
|
-
t === "number" && g !== "number" ? (e.dispatchCommand(k, void 0), s("number")) : t === "bullet" && g !== "bullet" ? (e.dispatchCommand(v, void 0), s("bullet")) : (
|
|
20
|
+
}, D = (t) => {
|
|
21
|
+
t === "number" && g !== "number" ? (e.dispatchCommand(k, void 0), s("number")) : t === "bullet" && g !== "bullet" ? (e.dispatchCommand(v, void 0), s("bullet")) : (P(), s("paragraph"));
|
|
22
22
|
};
|
|
23
|
-
return
|
|
23
|
+
return K(() => {
|
|
24
24
|
const t = e.registerCommand(
|
|
25
25
|
O,
|
|
26
26
|
(r) => r.ctrlKey && r.shiftKey && r.code === "Digit7" ? (r.preventDefault(), m ? e.dispatchCommand(N, void 0) : e.dispatchCommand(k, void 0), !0) : r.ctrlKey && r.shiftKey && r.code === "Digit8" ? (r.preventDefault(), c ? e.dispatchCommand(N, void 0) : e.dispatchCommand(v, void 0), !0) : !1,
|
|
@@ -29,7 +29,7 @@ const j = {
|
|
|
29
29
|
return () => {
|
|
30
30
|
t();
|
|
31
31
|
};
|
|
32
|
-
}, [e, m, c]),
|
|
32
|
+
}, [e, m, c]), K(() => {
|
|
33
33
|
e.registerCommand(
|
|
34
34
|
U,
|
|
35
35
|
(r) => (r.preventDefault(), e.update(() => {
|
|
@@ -70,12 +70,12 @@ const j = {
|
|
|
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: j.map((t) => /* @__PURE__ */ d(
|
|
74
74
|
"button",
|
|
75
75
|
{
|
|
76
|
-
onClick: () =>
|
|
76
|
+
onClick: () => D(t),
|
|
77
77
|
title: u.format[`${t}Tooltip`],
|
|
78
|
-
className:
|
|
78
|
+
className: z(
|
|
79
79
|
l["editor__toolbar-button"],
|
|
80
80
|
l[`editor__toolbar-button--${t}`],
|
|
81
81
|
t === "bullet" && c && l["editor__toolbar-button--active"],
|
|
@@ -84,12 +84,12 @@ const j = {
|
|
|
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(E, { name: $[t], size: 24 })
|
|
88
88
|
},
|
|
89
89
|
t
|
|
90
90
|
)) });
|
|
91
91
|
};
|
|
92
92
|
export {
|
|
93
|
-
|
|
93
|
+
W as ListPlugin
|
|
94
94
|
};
|
|
95
95
|
//# sourceMappingURL=ListPlugin.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { u as m } from "../../../../LexicalComposerContext.prod-Dyvim1tK.js";
|
|
2
|
-
import { useEffect as
|
|
3
|
-
import { a0 as
|
|
4
|
-
import { u as i } from "../../../../LexicalUtils.prod-
|
|
5
|
-
import { N as d } from "../../../../LexicalClipboard.prod-
|
|
2
|
+
import { useEffect as u } from "react";
|
|
3
|
+
import { a0 as c, U as f, R as p } from "../../../../Lexical.prod-DeeCy7Xd.js";
|
|
4
|
+
import { u as i } from "../../../../LexicalUtils.prod-CCjlRAc-.js";
|
|
5
|
+
import { N as d } from "../../../../LexicalClipboard.prod-CayrMfkI.js";
|
|
6
6
|
import { d as D } from "../../../../index-0wq-B7do.js";
|
|
7
7
|
const g = () => {
|
|
8
8
|
const [e] = m(), l = (t) => {
|
|
@@ -14,9 +14,9 @@ const g = () => {
|
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
};
|
|
17
|
-
return
|
|
17
|
+
return u(() => {
|
|
18
18
|
const t = e.registerCommand(
|
|
19
|
-
|
|
19
|
+
c,
|
|
20
20
|
(r) => r instanceof ClipboardEvent ? (l(r), !0) : !1,
|
|
21
21
|
f
|
|
22
22
|
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { b as z } from "../../../../TablePlugin-
|
|
3
|
+
import { b as z } from "../../../../TablePlugin-BbiBRjod.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-hx6rW3fc.js";
|
|
5
|
+
import "../../../../Lexical.prod-DeeCy7Xd.js";
|
|
6
6
|
import "react";
|
|
7
|
-
import { T as E } from "../../../../TablePlugin-
|
|
7
|
+
import { T as E } from "../../../../TablePlugin-BbiBRjod.js";
|
|
8
8
|
import "./helpers.js";
|
|
9
9
|
import "../../hooks/useFlyout.js";
|
|
10
10
|
import "../../../Icon/Icon.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as S, m as h, l as d, _ as w, w as C, s as m, b as E, y as b, a as I } from "../../../../LexicalTable.prod-
|
|
2
|
-
import {
|
|
3
|
-
const p = 100,
|
|
1
|
+
import { C as S, m as h, l as d, _ as w, w as C, s as m, b as E, y as b, a as I } from "../../../../LexicalTable.prod-hx6rW3fc.js";
|
|
2
|
+
import { z as u } from "../../../../Lexical.prod-DeeCy7Xd.js";
|
|
3
|
+
const p = 100, A = (e, n) => {
|
|
4
4
|
const t = S(0, 0, !1);
|
|
5
5
|
for (let o = 0; o < e; o++) {
|
|
6
6
|
const r = h();
|
|
@@ -19,7 +19,7 @@ const p = 100, B = (e, n) => {
|
|
|
19
19
|
}
|
|
20
20
|
}, v = (e) => {
|
|
21
21
|
C(e).remove();
|
|
22
|
-
},
|
|
22
|
+
}, F = (e, n) => {
|
|
23
23
|
const t = h(), o = w(e), r = o.getChildrenSize();
|
|
24
24
|
for (let s = 0; s < r; s++) {
|
|
25
25
|
const c = d(0);
|
|
@@ -28,7 +28,7 @@ const p = 100, B = (e, n) => {
|
|
|
28
28
|
n === "insertRowAbove" ? o.insertBefore(t) : o.insertAfter(t);
|
|
29
29
|
const l = t.getFirstDescendant();
|
|
30
30
|
l && l.select();
|
|
31
|
-
},
|
|
31
|
+
}, P = (e, n) => {
|
|
32
32
|
const t = w(e);
|
|
33
33
|
if (!m(e))
|
|
34
34
|
throw new Error("Selected node is not a TableCellNode");
|
|
@@ -48,7 +48,7 @@ const p = 100, B = (e, n) => {
|
|
|
48
48
|
s = n === "insertColumnLeft" ? s : s + 1;
|
|
49
49
|
const g = c[o].getChildren()[s];
|
|
50
50
|
g && g.select();
|
|
51
|
-
},
|
|
51
|
+
}, y = (e) => {
|
|
52
52
|
var r;
|
|
53
53
|
if (!m(e))
|
|
54
54
|
throw new Error("Selected node is not a TableCellNode");
|
|
@@ -56,11 +56,11 @@ const p = 100, B = (e, n) => {
|
|
|
56
56
|
t === 1 ? v(e) : I(n, o);
|
|
57
57
|
};
|
|
58
58
|
export {
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
A as createTable,
|
|
60
|
+
y as deleteColumn,
|
|
61
61
|
O as deleteRow,
|
|
62
62
|
v as deleteTable,
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
P as insertColumn,
|
|
64
|
+
F as insertRow
|
|
65
65
|
};
|
|
66
66
|
//# sourceMappingURL=helpers.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
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 {
|
|
3
|
+
import { R as h, a as g, F as C } from "../../../../Lexical.prod-DeeCy7Xd.js";
|
|
4
4
|
import { useState as L, useRef as E, useCallback as S, useEffect as m } from "react";
|
|
5
|
-
import { S as b } from "../../../../LexicalTable.prod-
|
|
5
|
+
import { S as b } from "../../../../LexicalTable.prod-hx6rW3fc.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 N } from "../LinkPlugin/LinkPlugin.js";
|
|
9
9
|
import { HistoryPlugin as x } from "../HistoryPlugin/HistoryPlugin.js";
|
|
10
|
-
import { T as B } from "../../../../TablePlugin-
|
|
10
|
+
import { T as B } from "../../../../TablePlugin-BbiBRjod.js";
|
|
11
11
|
import { TableCellContextMenu as R } from "../TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
|
|
12
12
|
import { s as z } from "../../../../RteEditor.module-oFMKEW6f.js";
|
|
13
13
|
import { setScrollableContainers as w, removeScrollableContainers as A } 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-BbiBRjod.js";
|
|
7
7
|
import { TableCellContextMenu as T } from "./TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
|
|
8
8
|
export {
|
|
9
9
|
l as BlockFormatPlugin,
|