@uva-glass/component-library 3.55.2 → 3.55.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-DCGjHGxG.js → Lexical.prod-DIglXatJ.js} +958 -947
- package/dist/Lexical.prod-DIglXatJ.js.map +1 -0
- package/dist/LexicalClipboard.prod-Bnzu0sh_.js +248 -0
- package/dist/{LexicalClipboard.prod-CGG14aoP.js.map → LexicalClipboard.prod-Bnzu0sh_.js.map} +1 -1
- package/dist/{LexicalExtension.prod-DWt1IjPF.js → LexicalExtension.prod-COPHoPpX.js} +320 -288
- package/dist/LexicalExtension.prod-COPHoPpX.js.map +1 -0
- package/dist/{LexicalLink.prod-Dy1gE75H.js → LexicalLink.prod-Bf9JUdMv.js} +216 -198
- package/dist/LexicalLink.prod-Bf9JUdMv.js.map +1 -0
- package/dist/{LexicalList.prod-D9R0L7cu.js → LexicalList.prod-DRz8vsM9.js} +247 -241
- package/dist/LexicalList.prod-DRz8vsM9.js.map +1 -0
- package/dist/{LexicalTable.prod-C2FP47Lm.js → LexicalTable.prod-D16GW-aZ.js} +741 -729
- package/dist/LexicalTable.prod-D16GW-aZ.js.map +1 -0
- package/dist/LexicalUtils.prod-BBTLliac.js +360 -0
- package/dist/LexicalUtils.prod-BBTLliac.js.map +1 -0
- package/dist/{LinkContextMenu-DZlKfbg1.js → LinkContextMenu-m_CGQEiX.js} +2 -2
- package/dist/{LinkContextMenu-DZlKfbg1.js.map → LinkContextMenu-m_CGQEiX.js.map} +1 -1
- package/dist/{PasteHandlerPlugin-DUdocSHB.js → PasteHandlerPlugin-DjD1wryY.js} +4 -4
- package/dist/{PasteHandlerPlugin-DUdocSHB.js.map → PasteHandlerPlugin-DjD1wryY.js.map} +1 -1
- package/dist/{TableCellResizerPlugin-BGolbi44.js → TableCellResizerPlugin-CgYsYsuY.js} +41 -41
- package/dist/{TableCellResizerPlugin-BGolbi44.js.map → TableCellResizerPlugin-CgYsYsuY.js.map} +1 -1
- package/dist/{chunk-OPOZOKLO-CXKdjnjn.js → chunk-SZQXB3JV-D0XG4Tlp.js} +5 -5
- package/dist/chunk-SZQXB3JV-D0XG4Tlp.js.map +1 -0
- package/dist/{client-C0JVBgoR.js → client-UU-mS47K.js} +6 -6
- package/dist/{client-C0JVBgoR.js.map → client-UU-mS47K.js.map} +1 -1
- package/dist/components/Accordion/Accordion.test.js +4 -4
- package/dist/components/AccordionCard/AccordionCard.test.js +4 -4
- package/dist/components/ActionList/ActionList.test.js +4 -4
- package/dist/components/AppStatusBar/AppStatusBar.test.js +3 -3
- package/dist/components/Attention/Attention.test.js +3 -3
- package/dist/components/Backdrop/Backdrop.test.js +3 -3
- package/dist/components/Buttons/Button.stories.js +1 -1
- package/dist/components/Buttons/Button.test.js +3 -3
- package/dist/components/Buttons/LinkButton.stories.js +1 -1
- package/dist/components/Buttons/LinkButton.test.js +3 -3
- package/dist/components/Buttons/MenuButton.stories.js +1 -1
- package/dist/components/Buttons/MenuButton.test.js +3 -3
- package/dist/components/Card/Card.test.js +3 -3
- package/dist/components/Checkbox/Checkbox.stories.js +1 -1
- package/dist/components/Checkbox/Checkbox.test.js +4 -4
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +1 -1
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js +3 -3
- package/dist/components/CheckboxTree/CheckboxTree.js +2 -2
- package/dist/components/CheckboxTree/CheckboxTree.stories.js +4 -4
- package/dist/components/CheckboxTree/index.js +2 -2
- package/dist/components/Chip/Chip.stories.js +1 -1
- package/dist/components/ControlsButton/ControlsButton.stories.js +1 -1
- package/dist/components/Drawer/Drawer.stories.js +1 -1
- package/dist/components/FeedbackBar/FeedbackBar.test.js +3 -3
- package/dist/components/FormInput/FormInput.js +2 -2
- package/dist/components/FormInput/FormInput.stories.js +3 -3
- package/dist/components/FormInput/index.js +2 -2
- package/dist/components/IconButton/IconButton.stories.js +1 -1
- package/dist/components/InputField/InputField.stories.js +3 -3
- package/dist/components/Label/Label.test.js +3 -3
- package/dist/components/MetaDataBar/MetaDataBar.test.js +2 -2
- package/dist/components/ModalDialog/ModalDialog.stories.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.js +2 -2
- package/dist/components/MultiSelect/MultiSelect.stories.js +3 -3
- package/dist/components/MultiSelect/components/MultiSelectHeader.js +2 -2
- package/dist/components/MultiSelect/index.js +2 -2
- package/dist/components/MultiSelectBox/MultiSelectBox.stories.js +1 -1
- package/dist/components/MultiSelectBox/MultiSelectBox.test.js +3 -3
- package/dist/components/Notification/Notification.stories.js +1 -1
- package/dist/components/Notification/Notification.test.js +3 -3
- package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +1 -1
- package/dist/components/PeriodSelector/PeriodSelector.js +2 -2
- package/dist/components/PeriodSelector/PeriodSelector.stories.js +3 -3
- package/dist/components/PeriodSelector/index.js +2 -2
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +2 -2
- package/dist/components/RadioGroup/RadioGroup.stories.js +1 -1
- package/dist/components/RadioGroup/Radiogroup.test.js +3 -3
- package/dist/components/RadioTabSelector/RadioTabSelector.js +2 -2
- package/dist/components/RadioTabSelector/RadioTabSelector.stories.js +3 -3
- package/dist/components/RadioTabSelector/index.js +2 -2
- package/dist/components/RteEditor/EditorHeader/EditorHeader.js +2 -2
- package/dist/components/RteEditor/EditorHeader/index.js +2 -2
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +3 -3
- package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/CourseCataloguePlugin.js +32 -32
- package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +2 -2
- package/dist/components/RteEditor/Plugins/HistoryPlugin/index.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 +2 -2
- package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/index.js +2 -2
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +15 -15
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +1 -1
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/TableCellResizerPlugin.js +1 -1
- package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +2 -2
- package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +2 -2
- package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +32 -32
- package/dist/components/RteEditor/Plugins/TablePlugin/index.js +2 -2
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +2 -2
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/index.js +2 -2
- package/dist/components/RteEditor/Plugins/index.js +3 -3
- package/dist/components/RteEditor/RteEditor.js +2 -2
- package/dist/components/RteEditor/RteEditor.stories.js +2 -2
- package/dist/components/RteEditor/helpers.js +4 -4
- package/dist/components/RteEditor/index.js +2 -2
- package/dist/components/RteEditor/nodes/CourseCatalogueNode/CourseCatalogueNode.js +17 -17
- package/dist/components/RteEditor/nodes/TableWrapperNode/TableWrapperNode.js +13 -13
- package/dist/components/SelectListbox/SelectListBox.stories.js +1 -1
- package/dist/components/Sortable/Sortable.stories.js +1 -1
- package/dist/components/StatusBadge/StatusBadge.test.js +3 -3
- package/dist/components/TextArea/TextArea.stories.js +1 -1
- package/dist/components/TextArea/TextArea.test.js +4 -4
- package/dist/components/ToggleSwitch/ToggleSwitch.stories.js +1 -1
- package/dist/components/VarIndicator/VarIndicator.stories.js +1 -1
- package/dist/components/VarIndicator/VarIndicator.test.js +4 -4
- package/dist/components/index.js +2 -2
- package/dist/{components-DVUYdcHS.js → components-C4MCdrDH.js} +456 -453
- package/dist/components-C4MCdrDH.js.map +1 -0
- package/dist/{dist-D6qYwmKD.js → dist-2TKCXdYZ.js} +315 -315
- package/dist/{dist-D6qYwmKD.js.map → dist-2TKCXdYZ.js.map} +1 -1
- package/dist/{esm-Cmy7DlsJ.js → esm-UNe_gmRA.js} +2 -2
- package/dist/{esm-Cmy7DlsJ.js.map → esm-UNe_gmRA.js.map} +1 -1
- package/dist/{helpers-DcFTH1J1.js → helpers-BBSxTGRl.js} +7 -7
- package/dist/{helpers-DcFTH1J1.js.map → helpers-BBSxTGRl.js.map} +1 -1
- package/dist/index.js +2 -2
- package/dist/{react-18-PI4Gvl2f.js → react-18-CRbkdI-3.js} +2 -2
- package/dist/{react-18-PI4Gvl2f.js.map → react-18-CRbkdI-3.js.map} +1 -1
- package/dist/{react.esm-Cev8dB-E.js → react.esm-CzIhAqlo.js} +479 -479
- package/dist/{react.esm-Cev8dB-E.js.map → react.esm-CzIhAqlo.js.map} +1 -1
- package/dist/setupTests.js +1 -1
- package/dist/storybook__react.d.js +3 -3
- package/dist/{test-CPFNM-bL.js → test-DQruvi8i.js} +3704 -5824
- package/dist/test-DQruvi8i.js.map +1 -0
- package/package.json +16 -16
- package/dist/Lexical.prod-DCGjHGxG.js.map +0 -1
- package/dist/LexicalClipboard.prod-CGG14aoP.js +0 -248
- package/dist/LexicalExtension.prod-DWt1IjPF.js.map +0 -1
- package/dist/LexicalLink.prod-Dy1gE75H.js.map +0 -1
- package/dist/LexicalList.prod-D9R0L7cu.js.map +0 -1
- package/dist/LexicalTable.prod-C2FP47Lm.js.map +0 -1
- package/dist/LexicalUtils.prod-BzrjMu6t.js +0 -242
- package/dist/LexicalUtils.prod-BzrjMu6t.js.map +0 -1
- package/dist/chunk-OPOZOKLO-CXKdjnjn.js.map +0 -1
- package/dist/components-DVUYdcHS.js.map +0 -1
- package/dist/test-CPFNM-bL.js.map +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { A as e, Bn as t, Cn as n, F as r, Gt as i, Mt as a, Nn as o, Nt as s, O as c, Vt as l, b as u, d, et as f, fn as p, g as m, in as h, jn as g, l as _, nt as v, o as ee, on as y, ot as b, p as te, q as ne, r as x, rt as re, s as ie, vn as ae, yn as S, zn as oe } from "./Lexical.prod-DIglXatJ.js";
|
|
2
|
+
import { a as se, o as ce } from "./LexicalUtils.prod-BBTLliac.js";
|
|
3
|
+
import { a as C, o as w } from "./LexicalExtension.prod-COPHoPpX.js";
|
|
4
4
|
//#region node_modules/@lexical/link/LexicalLink.prod.mjs
|
|
5
|
-
var
|
|
5
|
+
var le = new Set([
|
|
6
6
|
"http:",
|
|
7
7
|
"https:",
|
|
8
8
|
"mailto:",
|
|
9
9
|
"sms:",
|
|
10
10
|
"tel:"
|
|
11
|
-
]),
|
|
11
|
+
]), T = class e extends ee {
|
|
12
12
|
__url;
|
|
13
13
|
__target;
|
|
14
14
|
__rel;
|
|
@@ -28,12 +28,15 @@ var T = new Set([
|
|
|
28
28
|
let { target: r = null, rel: i = null, title: a = null } = t;
|
|
29
29
|
this.__url = e, this.__target = r, this.__rel = i, this.__title = a;
|
|
30
30
|
}
|
|
31
|
+
afterCloneFrom(e) {
|
|
32
|
+
super.afterCloneFrom(e), this.__url = e.__url, this.__rel = e.__rel, this.__target = e.__target, this.__title = e.__title;
|
|
33
|
+
}
|
|
31
34
|
createDOM(e) {
|
|
32
35
|
let t = document.createElement("a");
|
|
33
|
-
return this.updateLinkDOM(null, t, e),
|
|
36
|
+
return this.updateLinkDOM(null, t, e), l(t, e.theme.link), t;
|
|
34
37
|
}
|
|
35
38
|
updateLinkDOM(e, t, n) {
|
|
36
|
-
if (
|
|
39
|
+
if (_(t)) {
|
|
37
40
|
e && e.__url === this.__url || (t.href = this.sanitizeUrl(this.__url));
|
|
38
41
|
for (let n of [
|
|
39
42
|
"target",
|
|
@@ -50,12 +53,12 @@ var T = new Set([
|
|
|
50
53
|
}
|
|
51
54
|
static importDOM() {
|
|
52
55
|
return { a: (e) => ({
|
|
53
|
-
conversion:
|
|
56
|
+
conversion: k,
|
|
54
57
|
priority: 1
|
|
55
58
|
}) };
|
|
56
59
|
}
|
|
57
60
|
static importJSON(e) {
|
|
58
|
-
return
|
|
61
|
+
return A().updateFromJSON(e);
|
|
59
62
|
}
|
|
60
63
|
updateFromJSON(e) {
|
|
61
64
|
return super.updateFromJSON(e).setURL(e.url).setRel(e.rel || null).setTarget(e.target || null).setTitle(e.title || null);
|
|
@@ -64,7 +67,7 @@ var T = new Set([
|
|
|
64
67
|
e = z(e);
|
|
65
68
|
try {
|
|
66
69
|
let t = new URL(z(e));
|
|
67
|
-
if (!
|
|
70
|
+
if (!le.has(t.protocol)) return "about:blank";
|
|
68
71
|
} catch {
|
|
69
72
|
return e;
|
|
70
73
|
}
|
|
@@ -108,11 +111,7 @@ var T = new Set([
|
|
|
108
111
|
return t.__title = e, t;
|
|
109
112
|
}
|
|
110
113
|
insertNewAfter(e, t = !0) {
|
|
111
|
-
let n =
|
|
112
|
-
rel: this.__rel,
|
|
113
|
-
target: this.__target,
|
|
114
|
-
title: this.__title
|
|
115
|
-
});
|
|
114
|
+
let n = g(this);
|
|
116
115
|
return this.insertAfter(n, t), n;
|
|
117
116
|
}
|
|
118
117
|
canInsertTextBefore() {
|
|
@@ -128,7 +127,7 @@ var T = new Set([
|
|
|
128
127
|
return !0;
|
|
129
128
|
}
|
|
130
129
|
extractWithChild(e, t, n) {
|
|
131
|
-
if (!
|
|
130
|
+
if (!o(t)) return !1;
|
|
132
131
|
let r = t.anchor.getNode(), i = t.focus.getNode();
|
|
133
132
|
return this.isParentOf(r) && this.isParentOf(i) && t.getTextContent().length > 0;
|
|
134
133
|
}
|
|
@@ -138,42 +137,57 @@ var T = new Set([
|
|
|
138
137
|
isWebSiteURI() {
|
|
139
138
|
return this.__url.startsWith("https://") || this.__url.startsWith("http://");
|
|
140
139
|
}
|
|
140
|
+
shouldMergeAdjacentLink(e) {
|
|
141
|
+
return this.getType() === e.getType() && this.__url === e.__url && this.__target === e.__target && this.__rel === e.__rel && this.__title === e.__title;
|
|
142
|
+
}
|
|
141
143
|
};
|
|
142
|
-
function
|
|
143
|
-
let t =
|
|
144
|
+
function E(e) {
|
|
145
|
+
let t = ie(e, "next");
|
|
144
146
|
return [t, t.getFlipped()];
|
|
145
147
|
}
|
|
146
|
-
function
|
|
148
|
+
function D(e, t) {
|
|
147
149
|
for (let n of t) if (n.origin.isAttached()) {
|
|
148
|
-
|
|
150
|
+
re(e, d(n));
|
|
149
151
|
return;
|
|
150
152
|
}
|
|
151
153
|
}
|
|
152
|
-
function
|
|
153
|
-
let
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
154
|
+
function O(e) {
|
|
155
|
+
let t = x(), n = null, i = null;
|
|
156
|
+
function a() {
|
|
157
|
+
o(t) && (D(t.anchor, n), D(t.focus, i), m(t));
|
|
158
|
+
}
|
|
159
|
+
o(t) && (n = E(t.anchor), i = E(t.focus));
|
|
160
|
+
let s = !1;
|
|
161
|
+
for (let t of ae(e, "next")) {
|
|
162
|
+
let n = t.origin;
|
|
163
|
+
if (v(n) && !n.isInline()) {
|
|
164
|
+
let i = n.getChildren();
|
|
159
165
|
if (i.length > 0) {
|
|
160
|
-
let
|
|
161
|
-
|
|
166
|
+
let t = g(e);
|
|
167
|
+
t.append(...i), n.append(t), s = !0;
|
|
162
168
|
}
|
|
163
|
-
|
|
169
|
+
se(n, r(t), { $shouldSplit: () => !1 });
|
|
164
170
|
}
|
|
165
171
|
}
|
|
166
|
-
if (
|
|
167
|
-
let
|
|
168
|
-
t.
|
|
172
|
+
if (e.isAttached()) {
|
|
173
|
+
let t = e.getPreviousSibling();
|
|
174
|
+
if (j(t) && t.shouldMergeAdjacentLink(e)) return t.append(...e.getChildren()), e.remove(), void a();
|
|
175
|
+
let n = e.getNextSibling();
|
|
176
|
+
j(n) && e.shouldMergeAdjacentLink(n) && (e.append(...n.getChildren()), n.remove(), s = !0);
|
|
177
|
+
}
|
|
178
|
+
if (s) {
|
|
179
|
+
if (!e.canBeEmpty() && e.isEmpty()) {
|
|
180
|
+
let t = e.getParent();
|
|
181
|
+
e.remove(), t && t.isEmpty() && t.remove();
|
|
182
|
+
}
|
|
183
|
+
a();
|
|
169
184
|
}
|
|
170
|
-
v(n) && (O(n.anchor, r), O(n.focus, i), h(n));
|
|
171
185
|
}
|
|
172
|
-
function
|
|
186
|
+
function k(e) {
|
|
173
187
|
let t = null;
|
|
174
|
-
if (
|
|
188
|
+
if (_(e)) {
|
|
175
189
|
let n = e.textContent;
|
|
176
|
-
(n !== null && n !== "" || e.children.length > 0) && (t =
|
|
190
|
+
(n !== null && n !== "" || e.children.length > 0) && (t = A(e.getAttribute("href") || "", {
|
|
177
191
|
rel: e.getAttribute("rel"),
|
|
178
192
|
target: e.getAttribute("target"),
|
|
179
193
|
title: e.getAttribute("title")
|
|
@@ -181,17 +195,20 @@ function A(e) {
|
|
|
181
195
|
}
|
|
182
196
|
return { node: t };
|
|
183
197
|
}
|
|
184
|
-
function
|
|
185
|
-
return
|
|
198
|
+
function A(e = "", t) {
|
|
199
|
+
return h(new T(e, t));
|
|
186
200
|
}
|
|
187
|
-
function
|
|
188
|
-
return e instanceof
|
|
201
|
+
function j(e) {
|
|
202
|
+
return e instanceof T;
|
|
189
203
|
}
|
|
190
|
-
var
|
|
204
|
+
var M = class e extends T {
|
|
191
205
|
__isUnlinked;
|
|
192
206
|
constructor(e = "", t = {}, n) {
|
|
193
207
|
super(e, t, n), this.__isUnlinked = t.isUnlinked !== void 0 && t.isUnlinked !== null && t.isUnlinked;
|
|
194
208
|
}
|
|
209
|
+
afterCloneFrom(e) {
|
|
210
|
+
super.afterCloneFrom(e), this.__isUnlinked = e.__isUnlinked;
|
|
211
|
+
}
|
|
195
212
|
static getType() {
|
|
196
213
|
return "autolink";
|
|
197
214
|
}
|
|
@@ -203,6 +220,9 @@ var N = class e extends E {
|
|
|
203
220
|
title: t.__title
|
|
204
221
|
}, t.__key);
|
|
205
222
|
}
|
|
223
|
+
shouldMergeAdjacentLink(e) {
|
|
224
|
+
return !1;
|
|
225
|
+
}
|
|
206
226
|
getIsUnlinked() {
|
|
207
227
|
return this.__isUnlinked;
|
|
208
228
|
}
|
|
@@ -217,7 +237,7 @@ var N = class e extends E {
|
|
|
217
237
|
return super.updateDOM(e, t, n) || e.__isUnlinked !== this.__isUnlinked;
|
|
218
238
|
}
|
|
219
239
|
static importJSON(e) {
|
|
220
|
-
return
|
|
240
|
+
return N().updateFromJSON(e);
|
|
221
241
|
}
|
|
222
242
|
updateFromJSON(e) {
|
|
223
243
|
return super.updateFromJSON(e).setIsUnlinked(e.isUnlinked || !1);
|
|
@@ -232,7 +252,7 @@ var N = class e extends E {
|
|
|
232
252
|
};
|
|
233
253
|
}
|
|
234
254
|
insertNewAfter(e, t = !0) {
|
|
235
|
-
let n =
|
|
255
|
+
let n = N(this.__url, {
|
|
236
256
|
isUnlinked: this.__isUnlinked,
|
|
237
257
|
rel: this.__rel,
|
|
238
258
|
target: this.__target,
|
|
@@ -241,17 +261,17 @@ var N = class e extends E {
|
|
|
241
261
|
return this.insertAfter(n, t), n;
|
|
242
262
|
}
|
|
243
263
|
};
|
|
244
|
-
function
|
|
245
|
-
return
|
|
264
|
+
function N(e = "", t) {
|
|
265
|
+
return h(new M(e, t));
|
|
246
266
|
}
|
|
247
|
-
function
|
|
248
|
-
return e instanceof
|
|
267
|
+
function P(e) {
|
|
268
|
+
return e instanceof M;
|
|
249
269
|
}
|
|
250
|
-
var
|
|
251
|
-
function
|
|
270
|
+
var F = p("TOGGLE_LINK_COMMAND");
|
|
271
|
+
function I(e, t) {
|
|
252
272
|
if (e.type === "element") {
|
|
253
273
|
let n = e.getNode();
|
|
254
|
-
return
|
|
274
|
+
return v(n) || function(e, ...t) {
|
|
255
275
|
let n = new URL("https://lexical.dev/docs/error"), r = new URLSearchParams();
|
|
256
276
|
r.append("code", e);
|
|
257
277
|
for (let e of t) r.append("v", e);
|
|
@@ -260,31 +280,31 @@ function L(e, t) {
|
|
|
260
280
|
}
|
|
261
281
|
return null;
|
|
262
282
|
}
|
|
263
|
-
function
|
|
264
|
-
let
|
|
283
|
+
function L(e, t = {}) {
|
|
284
|
+
let n;
|
|
265
285
|
if (e && typeof e == "object") {
|
|
266
|
-
let { url:
|
|
267
|
-
|
|
286
|
+
let { url: r, ...i } = e;
|
|
287
|
+
n = r, t = {
|
|
268
288
|
...i,
|
|
269
289
|
...t
|
|
270
290
|
};
|
|
271
|
-
} else
|
|
272
|
-
let { target:
|
|
273
|
-
if (s === null || !
|
|
274
|
-
if (
|
|
291
|
+
} else n = e;
|
|
292
|
+
let { target: r, title: i } = t, a = t.rel === void 0 ? "noreferrer" : t.rel, s = x();
|
|
293
|
+
if (s === null || !o(s) && !f(s)) return;
|
|
294
|
+
if (f(s)) {
|
|
275
295
|
let e = s.getNodes();
|
|
276
296
|
if (e.length === 0) return;
|
|
277
297
|
e.forEach((e) => {
|
|
278
|
-
if (
|
|
279
|
-
let t =
|
|
298
|
+
if (n === null) {
|
|
299
|
+
let t = c(e, (e) => !P(e) && j(e));
|
|
280
300
|
t && (t.insertBefore(e), t.getChildren().length === 0 && t.remove());
|
|
281
301
|
} else {
|
|
282
|
-
let t =
|
|
283
|
-
if (t) t.setURL(
|
|
302
|
+
let t = c(e, (e) => !P(e) && j(e));
|
|
303
|
+
if (t) t.setURL(n), r !== void 0 && t.setTarget(r), a !== void 0 && t.setRel(a);
|
|
284
304
|
else {
|
|
285
|
-
let t =
|
|
286
|
-
rel:
|
|
287
|
-
target:
|
|
305
|
+
let t = A(n, {
|
|
306
|
+
rel: a,
|
|
307
|
+
target: r
|
|
288
308
|
});
|
|
289
309
|
e.insertBefore(t), t.append(e);
|
|
290
310
|
}
|
|
@@ -292,36 +312,32 @@ function R(e, t = {}) {
|
|
|
292
312
|
});
|
|
293
313
|
return;
|
|
294
314
|
}
|
|
295
|
-
if (s.isCollapsed() &&
|
|
296
|
-
let t =
|
|
315
|
+
if (s.isCollapsed() && n === null) for (let e of s.getNodes()) {
|
|
316
|
+
let t = c(e, (e) => !P(e) && j(e));
|
|
297
317
|
t !== null && (t.getChildren().forEach((e) => {
|
|
298
318
|
t.insertBefore(e);
|
|
299
319
|
}), t.remove());
|
|
300
320
|
return;
|
|
301
321
|
}
|
|
302
322
|
let l = s.extract();
|
|
303
|
-
if (
|
|
323
|
+
if (n === null) {
|
|
304
324
|
let e = /* @__PURE__ */ new Set();
|
|
305
325
|
l.forEach((t) => {
|
|
306
|
-
let n =
|
|
326
|
+
let n = c(t, (e) => !P(e) && j(e));
|
|
307
327
|
if (n !== null) {
|
|
308
328
|
let t = n.getKey();
|
|
309
329
|
if (e.has(t)) return;
|
|
310
330
|
(function(e, t) {
|
|
311
|
-
let n = new Set(t.filter((t) => e.isParentOf(t)).map((e) => e.getKey())), r = e.getChildren(), i = (r) => n.has(r.getKey()) ||
|
|
331
|
+
let n = new Set(t.filter((t) => e.isParentOf(t)).map((e) => e.getKey())), r = e.getChildren(), i = (r) => n.has(r.getKey()) || v(r) && t.some((t) => e.isParentOf(t) && r.isParentOf(t)), a = r.filter(i);
|
|
312
332
|
if (a.length === r.length) return r.forEach((t) => e.insertBefore(t)), void e.remove();
|
|
313
|
-
let o = r.findIndex(i), s = r.findLastIndex(i),
|
|
314
|
-
if (
|
|
315
|
-
else if (
|
|
333
|
+
let o = r.findIndex(i), s = r.findLastIndex(i), c = o === 0, l = s === r.length - 1;
|
|
334
|
+
if (c) a.forEach((t) => e.insertBefore(t));
|
|
335
|
+
else if (l) for (let t = a.length - 1; t >= 0; t--) e.insertAfter(a[t]);
|
|
316
336
|
else {
|
|
317
337
|
for (let t = a.length - 1; t >= 0; t--) e.insertAfter(a[t]);
|
|
318
338
|
let t = r.slice(s + 1);
|
|
319
339
|
if (t.length > 0) {
|
|
320
|
-
let n =
|
|
321
|
-
rel: e.getRel(),
|
|
322
|
-
target: e.getTarget(),
|
|
323
|
-
title: e.getTitle()
|
|
324
|
-
});
|
|
340
|
+
let n = g(e);
|
|
325
341
|
a[a.length - 1].insertAfter(n), t.forEach((e) => n.append(e));
|
|
326
342
|
}
|
|
327
343
|
}
|
|
@@ -331,44 +347,44 @@ function R(e, t = {}) {
|
|
|
331
347
|
return;
|
|
332
348
|
}
|
|
333
349
|
let u = /* @__PURE__ */ new Set(), d = (e) => {
|
|
334
|
-
u.has(e.getKey()) || (u.add(e.getKey()), e.setURL(
|
|
350
|
+
u.has(e.getKey()) || (u.add(e.getKey()), e.setURL(n), r !== void 0 && e.setTarget(r), a !== void 0 && e.setRel(a), i !== void 0 && e.setTitle(i));
|
|
335
351
|
};
|
|
336
352
|
if (l.length === 1) {
|
|
337
|
-
let e = l[0], t =
|
|
353
|
+
let e = l[0], t = c(e, j);
|
|
338
354
|
if (t !== null) return d(t);
|
|
339
355
|
}
|
|
340
356
|
(function(e) {
|
|
341
|
-
let t =
|
|
342
|
-
if (!
|
|
343
|
-
let
|
|
344
|
-
if (e(),
|
|
345
|
-
let e =
|
|
346
|
-
if (
|
|
357
|
+
let t = x();
|
|
358
|
+
if (!o(t)) return e();
|
|
359
|
+
let n = m(t), r = n.isBackward(), i = I(n.anchor, r ? -1 : 0), a = I(n.focus, r ? 0 : -1);
|
|
360
|
+
if (e(), i || a) {
|
|
361
|
+
let e = x();
|
|
362
|
+
if (o(e)) {
|
|
347
363
|
let t = e.clone();
|
|
364
|
+
if (i) {
|
|
365
|
+
let e = i.getParent();
|
|
366
|
+
e && t.anchor.set(e.getKey(), i.getIndexWithinParent() + (r ? 1 : 0), "element");
|
|
367
|
+
}
|
|
348
368
|
if (a) {
|
|
349
369
|
let e = a.getParent();
|
|
350
|
-
e && t.
|
|
351
|
-
}
|
|
352
|
-
if (o) {
|
|
353
|
-
let e = o.getParent();
|
|
354
|
-
e && t.focus.set(e.getKey(), o.getIndexWithinParent() + (i ? 0 : 1), "element");
|
|
370
|
+
e && t.focus.set(e.getKey(), a.getIndexWithinParent() + (r ? 0 : 1), "element");
|
|
355
371
|
}
|
|
356
|
-
|
|
372
|
+
te(m(t));
|
|
357
373
|
}
|
|
358
374
|
}
|
|
359
375
|
})(() => {
|
|
360
376
|
let e = null;
|
|
361
377
|
for (let t of l) {
|
|
362
378
|
if (!t.isAttached()) continue;
|
|
363
|
-
let
|
|
364
|
-
if (
|
|
365
|
-
d(
|
|
379
|
+
let o = c(t, j);
|
|
380
|
+
if (o) {
|
|
381
|
+
d(o);
|
|
366
382
|
continue;
|
|
367
383
|
}
|
|
368
|
-
if (
|
|
384
|
+
if (v(t)) {
|
|
369
385
|
if (!t.isInline()) continue;
|
|
370
|
-
if (
|
|
371
|
-
if (!(
|
|
386
|
+
if (j(t)) {
|
|
387
|
+
if (!(P(t) || e !== null && e.getParentOrThrow().isParentOf(t))) {
|
|
372
388
|
d(t), e = t;
|
|
373
389
|
continue;
|
|
374
390
|
}
|
|
@@ -378,73 +394,73 @@ function R(e, t = {}) {
|
|
|
378
394
|
}
|
|
379
395
|
}
|
|
380
396
|
let s = t.getPreviousSibling();
|
|
381
|
-
|
|
382
|
-
rel:
|
|
383
|
-
target:
|
|
384
|
-
title:
|
|
397
|
+
j(s) && s.is(e) ? s.append(t) : (e = A(n, {
|
|
398
|
+
rel: a,
|
|
399
|
+
target: r,
|
|
400
|
+
title: i
|
|
385
401
|
}), t.insertAfter(e), e.append(t));
|
|
386
402
|
}
|
|
387
403
|
});
|
|
388
404
|
}
|
|
389
|
-
var
|
|
405
|
+
var R = /^\+?[0-9\s()-]{5,}$/;
|
|
390
406
|
function z(e) {
|
|
391
|
-
return e.match(/^[a-z][a-z0-9+.-]*:/i) || e.match(/^[/#.]/) ? e : e.includes("@") ? `mailto:${e}` :
|
|
407
|
+
return e.match(/^[a-z][a-z0-9+.-]*:/i) || e.match(/^[/#.]/) ? e : e.includes("@") ? `mailto:${e}` : R.test(e) ? `tel:${e}` : `https://${e}`;
|
|
392
408
|
}
|
|
393
409
|
function B(e, t) {
|
|
394
|
-
return
|
|
410
|
+
return n(e.registerNodeTransform(T, O), e.registerCommand(F, (e) => {
|
|
395
411
|
let n = t.validateUrl.peek(), r = t.attributes.peek();
|
|
396
|
-
if (e === null) return
|
|
397
|
-
if (typeof e == "string") return !(n !== void 0 && !n(e)) && (
|
|
412
|
+
if (e === null) return L(null), !0;
|
|
413
|
+
if (typeof e == "string") return !(n !== void 0 && !n(e)) && (L(e, r), !0);
|
|
398
414
|
{
|
|
399
415
|
let { url: t, target: n, rel: i, title: a } = e;
|
|
400
|
-
return
|
|
416
|
+
return L(t, {
|
|
401
417
|
...r,
|
|
402
418
|
rel: i,
|
|
403
419
|
target: n,
|
|
404
420
|
title: a
|
|
405
421
|
}), !0;
|
|
406
422
|
}
|
|
407
|
-
},
|
|
423
|
+
}, 0), C(() => {
|
|
408
424
|
let n = t.validateUrl.value;
|
|
409
425
|
if (!n) return;
|
|
410
426
|
let r = t.attributes.value;
|
|
411
427
|
return e.registerCommand(i, (t) => {
|
|
412
|
-
let i =
|
|
413
|
-
if (!
|
|
428
|
+
let i = x();
|
|
429
|
+
if (!o(i) || i.isCollapsed() || !ce(t, ClipboardEvent) || t.clipboardData === null) return !1;
|
|
414
430
|
let a = t.clipboardData.getData("text");
|
|
415
|
-
return !!n(a) && !i.getNodes().some((e) =>
|
|
431
|
+
return !!n(a) && !i.getNodes().some((e) => v(e)) && (e.dispatchCommand(F, {
|
|
416
432
|
...r,
|
|
417
433
|
url: a
|
|
418
434
|
}), t.preventDefault(), !0);
|
|
419
435
|
}, 1);
|
|
420
436
|
}));
|
|
421
437
|
}
|
|
422
|
-
var V =
|
|
438
|
+
var V = e({
|
|
423
439
|
build: (e, t, n) => w(t),
|
|
424
440
|
config: {
|
|
425
441
|
attributes: void 0,
|
|
426
442
|
validateUrl: void 0
|
|
427
443
|
},
|
|
428
444
|
mergeConfig(e, t) {
|
|
429
|
-
let n =
|
|
430
|
-
return e.attributes && (n.attributes =
|
|
445
|
+
let n = a(e, t);
|
|
446
|
+
return e.attributes && (n.attributes = a(e.attributes, n.attributes)), n;
|
|
431
447
|
},
|
|
432
448
|
name: "@lexical/link/Link",
|
|
433
|
-
nodes: () => [
|
|
449
|
+
nodes: () => [T],
|
|
434
450
|
register: (e, t, n) => B(e, n.getOutput())
|
|
435
451
|
});
|
|
436
|
-
function H(e,
|
|
437
|
-
let
|
|
438
|
-
let
|
|
439
|
-
if (!
|
|
440
|
-
let
|
|
441
|
-
if (
|
|
442
|
-
let
|
|
443
|
-
if (
|
|
444
|
-
let e =
|
|
452
|
+
function H(e, t, n = {}) {
|
|
453
|
+
let r = (n) => {
|
|
454
|
+
let r = n.target;
|
|
455
|
+
if (!u(r)) return;
|
|
456
|
+
let i = oe(r);
|
|
457
|
+
if (i === null) return;
|
|
458
|
+
let a = null, s = null;
|
|
459
|
+
if (i.update(() => {
|
|
460
|
+
let e = ne(r);
|
|
445
461
|
if (e !== null) {
|
|
446
|
-
let
|
|
447
|
-
if (!
|
|
462
|
+
let n = c(e, v);
|
|
463
|
+
if (!t.disabled.peek()) if (j(n)) a = n.sanitizeUrl(n.getURL()), s = n.getTarget();
|
|
448
464
|
else {
|
|
449
465
|
let e = function(e, t) {
|
|
450
466
|
let n = e;
|
|
@@ -453,25 +469,27 @@ function H(e, n, r = {}) {
|
|
|
453
469
|
n = n.parentNode;
|
|
454
470
|
}
|
|
455
471
|
return null;
|
|
456
|
-
}(
|
|
457
|
-
e !== null && (
|
|
472
|
+
}(r, _);
|
|
473
|
+
e !== null && (a = e.href, s = e.target);
|
|
458
474
|
}
|
|
459
475
|
}
|
|
460
|
-
}),
|
|
461
|
-
let l = e.getEditorState().read(
|
|
462
|
-
if (
|
|
463
|
-
let
|
|
464
|
-
window.open(
|
|
465
|
-
},
|
|
466
|
-
e.button === 1 &&
|
|
476
|
+
}), a === null || a === "") return;
|
|
477
|
+
let l = e.getEditorState().read(x);
|
|
478
|
+
if (o(l) && !l.isCollapsed()) return void n.preventDefault();
|
|
479
|
+
let d = n.type === "auxclick" && n.button === 1;
|
|
480
|
+
window.open(a, t.newTab.peek() || d || n.metaKey || n.ctrlKey || s === "_blank" ? "_blank" : "_self"), n.preventDefault();
|
|
481
|
+
}, i = (e) => {
|
|
482
|
+
e.button === 1 && r(e);
|
|
467
483
|
};
|
|
468
|
-
return e.registerRootListener((e
|
|
469
|
-
|
|
484
|
+
return e.registerRootListener((e) => {
|
|
485
|
+
if (e) return e.addEventListener("click", r, n), e.addEventListener("mouseup", i, n), () => {
|
|
486
|
+
e.removeEventListener("click", r), e.removeEventListener("mouseup", i);
|
|
487
|
+
};
|
|
470
488
|
});
|
|
471
489
|
}
|
|
472
|
-
|
|
490
|
+
e({
|
|
473
491
|
build: (e, t, n) => w(t),
|
|
474
|
-
config:
|
|
492
|
+
config: b({
|
|
475
493
|
disabled: !1,
|
|
476
494
|
newTab: !1
|
|
477
495
|
}),
|
|
@@ -508,12 +526,12 @@ function q(e) {
|
|
|
508
526
|
return G(e[0]);
|
|
509
527
|
}
|
|
510
528
|
function J(e) {
|
|
511
|
-
let
|
|
512
|
-
return
|
|
529
|
+
let n = e.getPreviousSibling();
|
|
530
|
+
return v(n) && (n = n.getLastDescendant()), n === null || s(n) || t(n) && K(n.getTextContent());
|
|
513
531
|
}
|
|
514
532
|
function Y(e) {
|
|
515
|
-
let
|
|
516
|
-
return
|
|
533
|
+
let n = e.getNextSibling();
|
|
534
|
+
return v(n) && (n = n.getFirstDescendant()), n === null || s(n) || t(n) && q(n.getTextContent());
|
|
517
535
|
}
|
|
518
536
|
function de(e, t, n, r) {
|
|
519
537
|
return (e > 0 ? G(n[e - 1]) : J(r[0])) ? t < n.length ? G(n[t]) : Y(r[r.length - 1]) : !1;
|
|
@@ -531,45 +549,45 @@ function fe(e, t, n) {
|
|
|
531
549
|
a
|
|
532
550
|
];
|
|
533
551
|
}
|
|
534
|
-
function pe(e,
|
|
535
|
-
let
|
|
552
|
+
function pe(e, n, r, i) {
|
|
553
|
+
let a = N(i.url, i.attributes);
|
|
536
554
|
if (e.length === 1) {
|
|
537
|
-
let
|
|
538
|
-
|
|
539
|
-
let s =
|
|
540
|
-
return s.setFormat(
|
|
555
|
+
let t, o = e[0];
|
|
556
|
+
n === 0 ? [t, o] = o.splitText(r) : [, t, o] = o.splitText(n, r);
|
|
557
|
+
let s = S(i.text);
|
|
558
|
+
return s.setFormat(t.getFormat()), s.setDetail(t.getDetail()), s.setStyle(t.getStyle()), a.append(s), t.replace(a), o;
|
|
541
559
|
}
|
|
542
560
|
if (e.length > 1) {
|
|
543
|
-
let
|
|
544
|
-
|
|
545
|
-
let
|
|
561
|
+
let i = e[0], s, c = i.getTextContent().length;
|
|
562
|
+
n === 0 ? s = i : [, s] = i.splitText(n);
|
|
563
|
+
let l = [], u;
|
|
546
564
|
for (let t = 1; t < e.length; t++) {
|
|
547
|
-
let
|
|
548
|
-
if (a <
|
|
565
|
+
let n = e[t], i = n.getTextContent().length, a = c;
|
|
566
|
+
if (a < r) if (c + i <= r) l.push(n);
|
|
549
567
|
else {
|
|
550
|
-
let [e, t] =
|
|
551
|
-
|
|
568
|
+
let [e, t] = n.splitText(r - a);
|
|
569
|
+
l.push(e), u = t;
|
|
552
570
|
}
|
|
553
|
-
|
|
571
|
+
c += i;
|
|
554
572
|
}
|
|
555
|
-
let
|
|
556
|
-
return
|
|
573
|
+
let d = x(), p = d ? d.getNodes().find(t) : void 0, m = S(s.getTextContent());
|
|
574
|
+
return m.setFormat(s.getFormat()), m.setDetail(s.getDetail()), m.setStyle(s.getStyle()), a.append(m, ...l), p && p === s && (o(d) ? m.select(d.anchor.offset, d.focus.offset) : f(d) && m.select(0, m.getTextContent().length)), s.replace(a), u;
|
|
557
575
|
}
|
|
558
576
|
}
|
|
559
|
-
function X(e,
|
|
560
|
-
let
|
|
561
|
-
for (let
|
|
562
|
-
let
|
|
563
|
-
if (!a
|
|
564
|
-
}
|
|
565
|
-
let o = e.getTextContent(), s = W(o,
|
|
566
|
-
if (s === null || s.text !== o || !J(e) || !Y(e)) return Z(e), void
|
|
577
|
+
function X(e, n, r) {
|
|
578
|
+
let i = e.getChildren(), a = i.length;
|
|
579
|
+
for (let n = 0; n < a; n++) {
|
|
580
|
+
let a = i[n];
|
|
581
|
+
if (!t(a) || !a.isSimpleText()) return Z(e), void r(null, e.getURL());
|
|
582
|
+
}
|
|
583
|
+
let o = e.getTextContent(), s = W(o, n);
|
|
584
|
+
if (s === null || s.text !== o || !J(e) || !Y(e)) return Z(e), void r(null, e.getURL());
|
|
567
585
|
let c = e.getURL();
|
|
568
|
-
if (c !== s.url && (e.setURL(s.url),
|
|
586
|
+
if (c !== s.url && (e.setURL(s.url), r(s.url, c)), s.attributes) {
|
|
569
587
|
let t = e.getRel();
|
|
570
|
-
t !== s.attributes.rel && (e.setRel(s.attributes.rel || null),
|
|
571
|
-
let
|
|
572
|
-
|
|
588
|
+
t !== s.attributes.rel && (e.setRel(s.attributes.rel || null), r(s.attributes.rel || null, t));
|
|
589
|
+
let n = e.getTarget();
|
|
590
|
+
n !== s.attributes.target && (e.setTarget(s.attributes.target || null), r(s.attributes.target || null, n));
|
|
573
591
|
}
|
|
574
592
|
}
|
|
575
593
|
function Z(e) {
|
|
@@ -582,16 +600,16 @@ var Q = {
|
|
|
582
600
|
excludeParents: [],
|
|
583
601
|
matchers: []
|
|
584
602
|
};
|
|
585
|
-
function $(e,
|
|
586
|
-
let { matchers:
|
|
587
|
-
for (let n of
|
|
603
|
+
function $(e, r = Q) {
|
|
604
|
+
let { matchers: i, changeHandlers: a, excludeParents: s } = r, c = (e, t) => {
|
|
605
|
+
for (let n of a) n(e, t);
|
|
588
606
|
};
|
|
589
|
-
return
|
|
590
|
-
let
|
|
591
|
-
|
|
607
|
+
return n(e.registerNodeTransform(y, (e) => {
|
|
608
|
+
let n = e.getParentOrThrow(), r = e.getPreviousSibling();
|
|
609
|
+
P(n) ? X(n, i, c) : !j(n) && !s.some((e) => e(n)) && (e.isSimpleText() && (q(e.getTextContent()) || !P(r)) && (function(e, t, n) {
|
|
592
610
|
for (let t of e) {
|
|
593
611
|
let e = t.getParent();
|
|
594
|
-
if (
|
|
612
|
+
if (P(e) && !e.getIsUnlinked()) return;
|
|
595
613
|
}
|
|
596
614
|
let r = [...e], i = r.map((e) => e.getTextContent()).join(""), a, o = i, s = 0;
|
|
597
615
|
for (; (a = W(o, t)) && a !== null;) {
|
|
@@ -600,7 +618,7 @@ function $(e, t = Q) {
|
|
|
600
618
|
let [i, , c, l] = fe(r, s + e, s + t), u = !1;
|
|
601
619
|
for (let e of c) {
|
|
602
620
|
let t = e.getParent();
|
|
603
|
-
if (
|
|
621
|
+
if (P(t) && !t.getIsUnlinked()) {
|
|
604
622
|
u = !0;
|
|
605
623
|
break;
|
|
606
624
|
}
|
|
@@ -615,13 +633,13 @@ function $(e, t = Q) {
|
|
|
615
633
|
o = o.substring(t);
|
|
616
634
|
}
|
|
617
635
|
})(function(e) {
|
|
618
|
-
let
|
|
619
|
-
for (;
|
|
620
|
-
return
|
|
621
|
-
}(e),
|
|
636
|
+
let n = [e], r = e.getNextSibling();
|
|
637
|
+
for (; r !== null && t(r) && r.isSimpleText() && (n.push(r), !/[\s]/.test(r.getTextContent()));) r = r.getNextSibling();
|
|
638
|
+
return n;
|
|
639
|
+
}(e), i, c), (function(e, t, n) {
|
|
622
640
|
let r = e.getParent(), i = e.getPreviousSibling(), a = e.getNextSibling(), o = e.getTextContent();
|
|
623
|
-
if (!
|
|
624
|
-
if (
|
|
641
|
+
if (!P(r) || r.getIsUnlinked()) {
|
|
642
|
+
if (P(i) && !i.getIsUnlinked() && i.is(e.getPreviousSibling()) && e.getParent() === i.getParent()) {
|
|
625
643
|
if (!q(o)) return Z(i), void n(null, i.getURL());
|
|
626
644
|
if (s = o, i.isEmailURI() ? /^\.[a-zA-Z]{2,}/.test(s) : /^\.[a-zA-Z0-9]{1,}/.test(s)) {
|
|
627
645
|
let r = i.getTextContent() + o, a = W(r, t);
|
|
@@ -629,22 +647,22 @@ function $(e, t = Q) {
|
|
|
629
647
|
}
|
|
630
648
|
}
|
|
631
649
|
var s;
|
|
632
|
-
!
|
|
650
|
+
!P(a) || a.getIsUnlinked() || K(o) || a.is(e.getNextSibling()) && e.getParent() === a.getParent() && (Z(a), n(null, a.getURL()));
|
|
633
651
|
}
|
|
634
|
-
})(e,
|
|
635
|
-
}), e.registerCommand(
|
|
636
|
-
let t =
|
|
637
|
-
return e !== null || !
|
|
652
|
+
})(e, i, c));
|
|
653
|
+
}), e.registerCommand(F, (e) => {
|
|
654
|
+
let t = x();
|
|
655
|
+
return e !== null || !o(t) || t.extract().forEach((e) => {
|
|
638
656
|
let t = e.getParent();
|
|
639
|
-
|
|
657
|
+
P(t) && (t.setIsUnlinked(!t.getIsUnlinked()), t.markDirty());
|
|
640
658
|
}), !1;
|
|
641
659
|
}, 1));
|
|
642
660
|
}
|
|
643
|
-
|
|
661
|
+
e({
|
|
644
662
|
config: Q,
|
|
645
663
|
dependencies: [V],
|
|
646
664
|
mergeConfig(e, t) {
|
|
647
|
-
let n =
|
|
665
|
+
let n = a(e, t);
|
|
648
666
|
for (let r of [
|
|
649
667
|
"matchers",
|
|
650
668
|
"changeHandlers",
|
|
@@ -656,10 +674,10 @@ s({
|
|
|
656
674
|
return n;
|
|
657
675
|
},
|
|
658
676
|
name: "@lexical/link/AutoLink",
|
|
659
|
-
nodes: [
|
|
677
|
+
nodes: [M],
|
|
660
678
|
register: $
|
|
661
679
|
});
|
|
662
680
|
//#endregion
|
|
663
|
-
export {
|
|
681
|
+
export { $ as a, M as c, U as i, T as n, L as o, B as r, H as s, F as t };
|
|
664
682
|
|
|
665
|
-
//# sourceMappingURL=LexicalLink.prod-
|
|
683
|
+
//# sourceMappingURL=LexicalLink.prod-Bf9JUdMv.js.map
|