@mx-space/cli 0.14.2 → 0.15.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/LICENSE +33 -0
- package/README.md +35 -11
- package/dist/{Lexical.dev-CtGmYDoh.mjs → Lexical.dev-Cck4n26y.mjs} +240 -325
- package/dist/{Lexical.node-8sRFmq2X.mjs → Lexical.node-D6wf2D5M.mjs} +2 -2
- package/dist/{Lexical.prod-D-VfeKDz.mjs → Lexical.prod-DCwS1oTq.mjs} +1753 -1783
- package/dist/{LexicalClipboard.dev-CzQ15z6E.mjs → LexicalClipboard.dev-CMkPHV7O.mjs} +6 -6
- package/dist/{LexicalClipboard.node-D4gMGws6.mjs → LexicalClipboard.node-m4nZ7IYw.mjs} +2 -2
- package/dist/{LexicalClipboard.prod-CltkQpzS.mjs → LexicalClipboard.prod-B_rN1vE1.mjs} +6 -6
- package/dist/{LexicalCodeCore.dev-DkYBZRGB.mjs → LexicalCodeCore.dev-DyJw3i8V.mjs} +56 -68
- package/dist/{LexicalCodeCore.prod-COc3_QL8.mjs → LexicalCodeCore.prod-DPXLHQLF.mjs} +144 -156
- package/dist/{LexicalDragon.dev-Dv5_WUae.mjs → LexicalDragon.dev-ZkNfMwrE.mjs} +3 -3
- package/dist/{LexicalDragon.node-DgjrmWkd.mjs → LexicalDragon.node-Ds9oLUFh.mjs} +2 -2
- package/dist/{LexicalDragon.prod-DnpbDe-_.mjs → LexicalDragon.prod-B58ic2av.mjs} +3 -3
- package/dist/{LexicalExtension.dev-JMH_6-OZ.mjs → LexicalExtension.dev-DvwHs1Xv.mjs} +10 -19
- package/dist/{LexicalExtension.node-BUozzx4t.mjs → LexicalExtension.node-5OymZQfy.mjs} +2 -2
- package/dist/{LexicalExtension.prod-UiyDgmou.mjs → LexicalExtension.prod-Ce0T5smQ.mjs} +73 -82
- package/dist/{LexicalHeadless.dev-BfLGciiX.mjs → LexicalHeadless.dev-DA0WldSR.mjs} +2 -2
- package/dist/{LexicalHeadless.prod-CWF7edmQ.mjs → LexicalHeadless.prod-1kQgKB6c.mjs} +2 -2
- package/dist/{LexicalHtml.dev-D5EF5PGW.mjs → LexicalHtml.dev-BDB7CUrx.mjs} +6 -6
- package/dist/{LexicalHtml.node-BYbzHNVe.mjs → LexicalHtml.node-DpVNt7It.mjs} +2 -2
- package/dist/{LexicalHtml.prod-D_FfkvVD.mjs → LexicalHtml.prod-HkxM5scw.mjs} +6 -6
- package/dist/{LexicalLink.dev-D3Pgh6ik.mjs → LexicalLink.dev-C5zNJlrm.mjs} +17 -41
- package/dist/{LexicalLink.prod-XZoAYVYD.mjs → LexicalLink.prod-Bkt9hQAt.mjs} +113 -137
- package/dist/{LexicalList.dev-B5d3ObhB.mjs → LexicalList.dev-B7VgME-m.mjs} +15 -47
- package/dist/{LexicalList.prod-OQDpVAEb.mjs → LexicalList.prod-B8c7TDjH.mjs} +208 -224
- package/dist/{LexicalMarkdown.dev-BkM8G3DG.mjs → LexicalMarkdown.dev-B5z9kLbV.mjs} +5 -4
- package/dist/{LexicalMarkdown.prod-DcVXCex6.mjs → LexicalMarkdown.prod-wKzw7FFH.mjs} +5 -4
- package/dist/{LexicalRichText.dev-DppD7IrA.mjs → LexicalRichText.dev-CUd6Li5F.mjs} +76 -82
- package/dist/{LexicalRichText.node-CPSn7dkg.mjs → LexicalRichText.node-BKfaQ-CH.mjs} +8 -8
- package/dist/{LexicalRichText.prod-h7JPxFNp.mjs → LexicalRichText.prod-SBewjJHx.mjs} +86 -96
- package/dist/{LexicalSelection.dev-CD0SLbxP.mjs → LexicalSelection.dev-D27JOCqj.mjs} +2 -2
- package/dist/{LexicalSelection.node-CGlJgUlZ.mjs → LexicalSelection.node-DBEwPjBu.mjs} +2 -2
- package/dist/{LexicalSelection.prod-DbVZN5AV.mjs → LexicalSelection.prod-OaYhXHOL.mjs} +2 -2
- package/dist/{LexicalTable.dev-D0HU14UV.mjs → LexicalTable.dev-6IFFOAE0.mjs} +260 -131
- package/dist/{LexicalTable.prod-BcPNSrxP.mjs → LexicalTable.prod-2CaLZ7fH.mjs} +686 -630
- package/dist/{LexicalUtils.dev-iKy_TrRT.mjs → LexicalUtils.dev-DJA7J_7v.mjs} +3 -3
- package/dist/{LexicalUtils.node-CIgMS8cG.mjs → LexicalUtils.node-Df9oPTlA.mjs} +2 -2
- package/dist/{LexicalUtils.prod-DIAsKJzu.mjs → LexicalUtils.prod-Bb7V4Ewg.mjs} +3 -3
- package/dist/bin/mxs.mjs +1 -1
- package/dist/esm-CDcJmHkG.mjs +2 -0
- package/dist/{esm-CwXl1N0a.mjs → esm-DLzrv7gD.mjs} +165 -131
- package/dist/index.d.mts +16 -16
- package/dist/index.mjs +1 -1
- package/dist/{mxs-iW9DgqSZ.mjs → mxs-BIRW5Axj.mjs} +1434 -2233
- package/dist/vendor/litexml/cli.mjs +2462 -2557
- package/dist/vendor/litexml/litexml-html-preview-client.css +80 -47
- package/dist/vendor/litexml/litexml-html-preview-client.js +5276 -4906
- package/dist/vendor/litexml/style.css +6 -2
- package/package.json +31 -32
- package/skills/commands-ai.md +45 -12
- package/skills/overview.md +1 -1
- package/dist/esm-CH7CrOvh.mjs +0 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { f as namedSignals, l as effect } from "./LexicalExtension.node-
|
|
2
|
-
import { $t as COMMAND_PRIORITY_LOW, A as $getChildCaret, At as $rewindSiblingCaret, Dt as $normalizeSelection__EXPERIMENTAL, Et as $normalizeCaret, Ft as $setSelection, G as $getSelection, I as $getDocument, Lr as getNearestEditorFromDOMNode, Pt as $setPointFromCaret, Qr as isHTMLAnchorElement, St as $isTextNode, Tr as defineExtension, Zt as COMMAND_PRIORITY_EDITOR, _i as shallowMergeConfig, _r as TextNode, b as $findMatchingParent, br as configExtension, ci as mergeRegister, di as registerEventListeners, dt as $isLineBreakNode, et as $insertNodeToNearestRootAtCaret, ft as $isNodeSelection, hn as ElementNode, i as $caretFromPoint, l as $copyNode, mt as $isRangeSelection, n as $applyNodeReplacement, ot as $isElementNode, pi as safeCast, qr as isDOMNode, rr as PASTE_COMMAND, v as $createTextNode, vr as addClassNamesToElement, xr as createCommand, yt as $isSiblingCaret, z as $getNearestNodeFromDOMNode } from "./Lexical.node-
|
|
3
|
-
import { c as CoreImportExtension, g as defineImportRule, l as DOMImportExtension, t as $distributeInlineWrapper, y as sel } from "./LexicalHtml.node-
|
|
4
|
-
import { m as objectKlassEquals } from "./LexicalUtils.node-
|
|
5
|
-
//#region ../../node_modules/.pnpm/@lexical+link@0.
|
|
1
|
+
import { f as namedSignals, l as effect } from "./LexicalExtension.node-5OymZQfy.mjs";
|
|
2
|
+
import { $t as COMMAND_PRIORITY_LOW, A as $getChildCaret, At as $rewindSiblingCaret, Dt as $normalizeSelection__EXPERIMENTAL, Et as $normalizeCaret, Ft as $setSelection, G as $getSelection, I as $getDocument, Lr as getNearestEditorFromDOMNode, Pt as $setPointFromCaret, Qr as isHTMLAnchorElement, St as $isTextNode, Tr as defineExtension, Zt as COMMAND_PRIORITY_EDITOR, _i as shallowMergeConfig, _r as TextNode, b as $findMatchingParent, br as configExtension, ci as mergeRegister, di as registerEventListeners, dt as $isLineBreakNode, et as $insertNodeToNearestRootAtCaret, ft as $isNodeSelection, hn as ElementNode, i as $caretFromPoint, l as $copyNode, mt as $isRangeSelection, n as $applyNodeReplacement, ot as $isElementNode, pi as safeCast, qr as isDOMNode, rr as PASTE_COMMAND, v as $createTextNode, vr as addClassNamesToElement, xr as createCommand, yt as $isSiblingCaret, z as $getNearestNodeFromDOMNode } from "./Lexical.node-D6wf2D5M.mjs";
|
|
3
|
+
import { c as CoreImportExtension, g as defineImportRule, l as DOMImportExtension, t as $distributeInlineWrapper, y as sel } from "./LexicalHtml.node-DpVNt7It.mjs";
|
|
4
|
+
import { m as objectKlassEquals } from "./LexicalUtils.node-Df9oPTlA.mjs";
|
|
5
|
+
//#region ../../node_modules/.pnpm/@lexical+link@0.49.0_typescript@6.0.3/node_modules/@lexical/link/dist/LexicalLink.dev.mjs
|
|
6
6
|
/**
|
|
7
7
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
8
8
|
*
|
|
@@ -28,7 +28,7 @@ const SUPPORTED_URL_PROTOCOLS = /* @__PURE__ */ new Set([
|
|
|
28
28
|
"tel:"
|
|
29
29
|
]);
|
|
30
30
|
/** @noInheritDoc */
|
|
31
|
-
var LinkNode = class
|
|
31
|
+
var LinkNode = class extends ElementNode {
|
|
32
32
|
/** @internal */
|
|
33
33
|
__url;
|
|
34
34
|
/** @internal */
|
|
@@ -37,15 +37,14 @@ var LinkNode = class LinkNode extends ElementNode {
|
|
|
37
37
|
__rel;
|
|
38
38
|
/** @internal */
|
|
39
39
|
__title;
|
|
40
|
-
|
|
41
|
-
return "link"
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}, node.__key);
|
|
40
|
+
$config() {
|
|
41
|
+
return this.config("link", {
|
|
42
|
+
extends: ElementNode,
|
|
43
|
+
importDOM: { a: () => ({
|
|
44
|
+
conversion: $convertAnchorElement,
|
|
45
|
+
priority: 1
|
|
46
|
+
}) }
|
|
47
|
+
});
|
|
49
48
|
}
|
|
50
49
|
constructor(url = "", attributes = {}, key) {
|
|
51
50
|
super(key);
|
|
@@ -87,15 +86,6 @@ var LinkNode = class LinkNode extends ElementNode {
|
|
|
87
86
|
this.updateLinkDOM(prevNode, anchor, config);
|
|
88
87
|
return false;
|
|
89
88
|
}
|
|
90
|
-
static importDOM() {
|
|
91
|
-
return { a: (node) => ({
|
|
92
|
-
conversion: $convertAnchorElement,
|
|
93
|
-
priority: 1
|
|
94
|
-
}) };
|
|
95
|
-
}
|
|
96
|
-
static importJSON(serializedNode) {
|
|
97
|
-
return $createLinkNode().updateFromJSON(serializedNode);
|
|
98
|
-
}
|
|
99
89
|
updateFromJSON(serializedNode) {
|
|
100
90
|
return super.updateFromJSON(serializedNode).setURL(serializedNode.url).setRel(serializedNode.rel || null).setTarget(serializedNode.target || null).setTitle(serializedNode.title || null);
|
|
101
91
|
}
|
|
@@ -292,7 +282,7 @@ function $createLinkNode(url = "", attributes) {
|
|
|
292
282
|
function $isLinkNode(node) {
|
|
293
283
|
return node instanceof LinkNode;
|
|
294
284
|
}
|
|
295
|
-
var AutoLinkNode = class
|
|
285
|
+
var AutoLinkNode = class extends LinkNode {
|
|
296
286
|
/** @internal */
|
|
297
287
|
/** Indicates whether the autolink was ever unlinked. **/
|
|
298
288
|
__isUnlinked;
|
|
@@ -304,16 +294,8 @@ var AutoLinkNode = class AutoLinkNode extends LinkNode {
|
|
|
304
294
|
super.afterCloneFrom(prevNode);
|
|
305
295
|
this.__isUnlinked = prevNode.__isUnlinked;
|
|
306
296
|
}
|
|
307
|
-
|
|
308
|
-
return "autolink";
|
|
309
|
-
}
|
|
310
|
-
static clone(node) {
|
|
311
|
-
return new AutoLinkNode(node.__url, {
|
|
312
|
-
isUnlinked: node.__isUnlinked,
|
|
313
|
-
rel: node.__rel,
|
|
314
|
-
target: node.__target,
|
|
315
|
-
title: node.__title
|
|
316
|
-
}, node.__key);
|
|
297
|
+
$config() {
|
|
298
|
+
return this.config("autolink", { extends: LinkNode });
|
|
317
299
|
}
|
|
318
300
|
shouldMergeAdjacentLink(_otherLink) {
|
|
319
301
|
return false;
|
|
@@ -333,15 +315,9 @@ var AutoLinkNode = class AutoLinkNode extends LinkNode {
|
|
|
333
315
|
updateDOM(prevNode, anchor, config) {
|
|
334
316
|
return super.updateDOM(prevNode, anchor, config) || prevNode.__isUnlinked !== this.__isUnlinked;
|
|
335
317
|
}
|
|
336
|
-
static importJSON(serializedNode) {
|
|
337
|
-
return $createAutoLinkNode().updateFromJSON(serializedNode);
|
|
338
|
-
}
|
|
339
318
|
updateFromJSON(serializedNode) {
|
|
340
319
|
return super.updateFromJSON(serializedNode).setIsUnlinked(serializedNode.isUnlinked || false);
|
|
341
320
|
}
|
|
342
|
-
static importDOM() {
|
|
343
|
-
return null;
|
|
344
|
-
}
|
|
345
321
|
exportJSON() {
|
|
346
322
|
return {
|
|
347
323
|
...super.exportJSON(),
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { f as namedSignals, l as effect } from "./LexicalExtension.node-
|
|
2
|
-
import { $t as COMMAND_PRIORITY_LOW, A as $getChildCaret, At as $rewindSiblingCaret, Dt as $normalizeSelection__EXPERIMENTAL, Et as $normalizeCaret, Ft as $setSelection, G as $getSelection, I as $getDocument, Lr as getNearestEditorFromDOMNode, Pt as $setPointFromCaret, Qr as isHTMLAnchorElement, St as $isTextNode, Tr as defineExtension, Zt as COMMAND_PRIORITY_EDITOR, _i as shallowMergeConfig, _r as TextNode, b as $findMatchingParent, br as configExtension, ci as mergeRegister, di as registerEventListeners, dt as $isLineBreakNode, et as $insertNodeToNearestRootAtCaret, ft as $isNodeSelection, hn as ElementNode, i as $caretFromPoint, l as $copyNode, mt as $isRangeSelection, n as $applyNodeReplacement, ot as $isElementNode, pi as safeCast, qr as isDOMNode, rr as PASTE_COMMAND, v as $createTextNode, vr as addClassNamesToElement, xr as createCommand, yt as $isSiblingCaret, z as $getNearestNodeFromDOMNode } from "./Lexical.node-
|
|
3
|
-
import { c as CoreImportExtension, g as defineImportRule, l as DOMImportExtension, t as $distributeInlineWrapper, y as sel } from "./LexicalHtml.node-
|
|
4
|
-
import { m as objectKlassEquals } from "./LexicalUtils.node-
|
|
5
|
-
//#region ../../node_modules/.pnpm/@lexical+link@0.
|
|
1
|
+
import { f as namedSignals, l as effect } from "./LexicalExtension.node-5OymZQfy.mjs";
|
|
2
|
+
import { $t as COMMAND_PRIORITY_LOW, A as $getChildCaret, At as $rewindSiblingCaret, Dt as $normalizeSelection__EXPERIMENTAL, Et as $normalizeCaret, Ft as $setSelection, G as $getSelection, I as $getDocument, Lr as getNearestEditorFromDOMNode, Pt as $setPointFromCaret, Qr as isHTMLAnchorElement, St as $isTextNode, Tr as defineExtension, Zt as COMMAND_PRIORITY_EDITOR, _i as shallowMergeConfig, _r as TextNode, b as $findMatchingParent, br as configExtension, ci as mergeRegister, di as registerEventListeners, dt as $isLineBreakNode, et as $insertNodeToNearestRootAtCaret, ft as $isNodeSelection, hn as ElementNode, i as $caretFromPoint, l as $copyNode, mt as $isRangeSelection, n as $applyNodeReplacement, ot as $isElementNode, pi as safeCast, qr as isDOMNode, rr as PASTE_COMMAND, v as $createTextNode, vr as addClassNamesToElement, xr as createCommand, yt as $isSiblingCaret, z as $getNearestNodeFromDOMNode } from "./Lexical.node-D6wf2D5M.mjs";
|
|
3
|
+
import { c as CoreImportExtension, g as defineImportRule, l as DOMImportExtension, t as $distributeInlineWrapper, y as sel } from "./LexicalHtml.node-DpVNt7It.mjs";
|
|
4
|
+
import { m as objectKlassEquals } from "./LexicalUtils.node-Df9oPTlA.mjs";
|
|
5
|
+
//#region ../../node_modules/.pnpm/@lexical+link@0.49.0_typescript@6.0.3/node_modules/@lexical/link/dist/LexicalLink.prod.mjs
|
|
6
6
|
/**
|
|
7
7
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
8
8
|
*
|
|
@@ -17,25 +17,24 @@ const j = /* @__PURE__ */ new Set([
|
|
|
17
17
|
"sms:",
|
|
18
18
|
"tel:"
|
|
19
19
|
]);
|
|
20
|
-
var Z = class
|
|
20
|
+
var Z = class extends ElementNode {
|
|
21
21
|
__url;
|
|
22
22
|
__target;
|
|
23
23
|
__rel;
|
|
24
24
|
__title;
|
|
25
|
-
|
|
26
|
-
return "link"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}, t.__key);
|
|
25
|
+
$config() {
|
|
26
|
+
return this.config("link", {
|
|
27
|
+
extends: ElementNode,
|
|
28
|
+
importDOM: { a: () => ({
|
|
29
|
+
conversion: Q,
|
|
30
|
+
priority: 1
|
|
31
|
+
}) }
|
|
32
|
+
});
|
|
34
33
|
}
|
|
35
34
|
constructor(t = "", e = {}, n) {
|
|
36
35
|
super(n);
|
|
37
|
-
const { target: r = null, rel: i = null, title:
|
|
38
|
-
this.__url = t, this.__target = r, this.__rel = i, this.__title =
|
|
36
|
+
const { target: r = null, rel: i = null, title: s = null } = e;
|
|
37
|
+
this.__url = t, this.__target = r, this.__rel = i, this.__title = s;
|
|
39
38
|
}
|
|
40
39
|
afterCloneFrom(t) {
|
|
41
40
|
super.afterCloneFrom(t), this.__url = t.__url, this.__rel = t.__rel, this.__target = t.__target, this.__title = t.__title;
|
|
@@ -60,23 +59,14 @@ var Z = class Z extends ElementNode {
|
|
|
60
59
|
updateDOM(t, e, n) {
|
|
61
60
|
return this.updateLinkDOM(t, e, n), !1;
|
|
62
61
|
}
|
|
63
|
-
static importDOM() {
|
|
64
|
-
return { a: (t) => ({
|
|
65
|
-
conversion: Q,
|
|
66
|
-
priority: 1
|
|
67
|
-
}) };
|
|
68
|
-
}
|
|
69
|
-
static importJSON(t) {
|
|
70
|
-
return V().updateFromJSON(t);
|
|
71
|
-
}
|
|
72
62
|
updateFromJSON(t) {
|
|
73
63
|
return super.updateFromJSON(t).setURL(t.url).setRel(t.rel || null).setTarget(t.target || null).setTitle(t.title || null);
|
|
74
64
|
}
|
|
75
65
|
sanitizeUrl(t) {
|
|
76
66
|
const e = t;
|
|
77
|
-
t =
|
|
67
|
+
t = lt(t);
|
|
78
68
|
try {
|
|
79
|
-
const e = new URL(
|
|
69
|
+
const e = new URL(lt(t));
|
|
80
70
|
if (!j.has(e.protocol)) return "about:blank";
|
|
81
71
|
} catch (t) {
|
|
82
72
|
const n = e.replace(/[\u0000-\u001F\u007F\s]/g, "").match(/^([a-z][a-z0-9+.-]*):/i);
|
|
@@ -169,31 +159,31 @@ function q(t) {
|
|
|
169
159
|
$isRangeSelection(e) && (G(e.anchor, n), G(e.focus, r), $normalizeSelection__EXPERIMENTAL(e));
|
|
170
160
|
}
|
|
171
161
|
$isRangeSelection(e) && (n = H(e.anchor), r = H(e.focus));
|
|
172
|
-
let
|
|
162
|
+
let s = !1;
|
|
173
163
|
for (const e of $getChildCaret(t, "next")) {
|
|
174
164
|
const n = e.origin;
|
|
175
165
|
if ($isElementNode(n) && !n.isInline()) {
|
|
176
166
|
const r = n.getChildren();
|
|
177
167
|
if (r.length > 0) {
|
|
178
168
|
const e = $copyNode(t);
|
|
179
|
-
e.append(...r), n.append(e),
|
|
169
|
+
e.append(...r), n.append(e), s = !0;
|
|
180
170
|
}
|
|
181
171
|
$insertNodeToNearestRootAtCaret(n, $rewindSiblingCaret(e), { $shouldSplit: () => !1 });
|
|
182
172
|
}
|
|
183
173
|
}
|
|
184
174
|
function u(t, e, n) {
|
|
185
|
-
const [r, i] = t,
|
|
186
|
-
if (!
|
|
187
|
-
const
|
|
188
|
-
return [
|
|
175
|
+
const [r, i] = t, s = (t) => $isSiblingCaret(t) && t.origin.is(e);
|
|
176
|
+
if (!s(r) && !s(i)) return t;
|
|
177
|
+
const l = $normalizeCaret($getChildCaret(n, "next"));
|
|
178
|
+
return [l, l.getFlipped()];
|
|
189
179
|
}
|
|
190
180
|
if (t.isAttached()) {
|
|
191
181
|
const e = t.getPreviousSibling();
|
|
192
182
|
if (X(e) && e.shouldMergeAdjacentLink(t)) return n && (n = u(n, e, t)), r && (r = u(r, e, t)), e.append(...t.getChildren()), t.remove(), void i();
|
|
193
|
-
const
|
|
194
|
-
X(
|
|
183
|
+
const l = t.getNextSibling();
|
|
184
|
+
X(l) && t.shouldMergeAdjacentLink(l) && (n && (n = u(n, t, l)), r && (r = u(r, t, l)), t.append(...l.getChildren()), l.remove(), s = !0);
|
|
195
185
|
}
|
|
196
|
-
if (
|
|
186
|
+
if (s) {
|
|
197
187
|
if (!t.canBeEmpty() && t.isEmpty()) {
|
|
198
188
|
const e = t.getParent();
|
|
199
189
|
t.remove(), e && e.isEmpty() && e.remove();
|
|
@@ -219,7 +209,7 @@ function V(t = "", e) {
|
|
|
219
209
|
function X(t) {
|
|
220
210
|
return t instanceof Z;
|
|
221
211
|
}
|
|
222
|
-
var Y = class
|
|
212
|
+
var Y = class extends Z {
|
|
223
213
|
__isUnlinked;
|
|
224
214
|
constructor(t = "", e = {}, n) {
|
|
225
215
|
super(t, e, n), this.__isUnlinked = void 0 !== e.isUnlinked && null !== e.isUnlinked && e.isUnlinked;
|
|
@@ -227,16 +217,8 @@ var Y = class Y extends Z {
|
|
|
227
217
|
afterCloneFrom(t) {
|
|
228
218
|
super.afterCloneFrom(t), this.__isUnlinked = t.__isUnlinked;
|
|
229
219
|
}
|
|
230
|
-
|
|
231
|
-
return "autolink";
|
|
232
|
-
}
|
|
233
|
-
static clone(t) {
|
|
234
|
-
return new Y(t.__url, {
|
|
235
|
-
isUnlinked: t.__isUnlinked,
|
|
236
|
-
rel: t.__rel,
|
|
237
|
-
target: t.__target,
|
|
238
|
-
title: t.__title
|
|
239
|
-
}, t.__key);
|
|
220
|
+
$config() {
|
|
221
|
+
return this.config("autolink", { extends: Z });
|
|
240
222
|
}
|
|
241
223
|
shouldMergeAdjacentLink(t) {
|
|
242
224
|
return !1;
|
|
@@ -254,15 +236,9 @@ var Y = class Y extends Z {
|
|
|
254
236
|
updateDOM(t, e, n) {
|
|
255
237
|
return super.updateDOM(t, e, n) || t.__isUnlinked !== this.__isUnlinked;
|
|
256
238
|
}
|
|
257
|
-
static importJSON(t) {
|
|
258
|
-
return tt().updateFromJSON(t);
|
|
259
|
-
}
|
|
260
239
|
updateFromJSON(t) {
|
|
261
240
|
return super.updateFromJSON(t).setIsUnlinked(t.isUnlinked || !1);
|
|
262
241
|
}
|
|
263
|
-
static importDOM() {
|
|
264
|
-
return null;
|
|
265
|
-
}
|
|
266
242
|
exportJSON() {
|
|
267
243
|
return {
|
|
268
244
|
...super.exportJSON(),
|
|
@@ -308,7 +284,7 @@ function it(t, e = {}) {
|
|
|
308
284
|
...e
|
|
309
285
|
};
|
|
310
286
|
} else n = t;
|
|
311
|
-
const { target: r, title: i } = e,
|
|
287
|
+
const { target: r, title: i } = e, s = void 0 === e.rel ? "noreferrer" : e.rel, u = $getSelection();
|
|
312
288
|
if (null === u || !$isRangeSelection(u) && !$isNodeSelection(u)) return;
|
|
313
289
|
if ($isNodeSelection(u)) {
|
|
314
290
|
const t = u.getNodes();
|
|
@@ -319,10 +295,10 @@ function it(t, e = {}) {
|
|
|
319
295
|
e && (e.insertBefore(t), 0 === e.getChildren().length && e.remove());
|
|
320
296
|
} else {
|
|
321
297
|
const e = $findMatchingParent(t, (t) => !et(t) && X(t));
|
|
322
|
-
if (e) e.setURL(n), void 0 !== r && e.setTarget(r), void 0 !==
|
|
298
|
+
if (e) e.setURL(n), void 0 !== r && e.setTarget(r), void 0 !== s && e.setRel(s);
|
|
323
299
|
else {
|
|
324
300
|
const e = V(n, {
|
|
325
|
-
rel:
|
|
301
|
+
rel: s,
|
|
326
302
|
target: r
|
|
327
303
|
});
|
|
328
304
|
t.insertBefore(e), e.append(t);
|
|
@@ -345,17 +321,17 @@ function it(t, e = {}) {
|
|
|
345
321
|
const e = n.getKey();
|
|
346
322
|
if (t.has(e)) return;
|
|
347
323
|
(function(t, e) {
|
|
348
|
-
const n = new Set(e.filter((e) => t.isParentOf(e)).map((t) => t.getKey())), r = t.getChildren(), i = (r) => n.has(r.getKey()) || $isElementNode(r) && e.some((e) => t.isParentOf(e) && r.isParentOf(e)),
|
|
349
|
-
if (
|
|
324
|
+
const n = new Set(e.filter((e) => t.isParentOf(e)).map((t) => t.getKey())), r = t.getChildren(), i = (r) => n.has(r.getKey()) || $isElementNode(r) && e.some((e) => t.isParentOf(e) && r.isParentOf(e)), s = r.filter(i);
|
|
325
|
+
if (s.length === r.length) return r.forEach((e) => t.insertBefore(e)), void t.remove();
|
|
350
326
|
const o = r.findIndex(i), u = r.findLastIndex(i), a = 0 === o, c = u === r.length - 1;
|
|
351
|
-
if (a)
|
|
352
|
-
else if (c) for (let e =
|
|
327
|
+
if (a) s.forEach((e) => t.insertBefore(e));
|
|
328
|
+
else if (c) for (let e = s.length - 1; e >= 0; e--) t.insertAfter(s[e]);
|
|
353
329
|
else {
|
|
354
|
-
for (let e =
|
|
330
|
+
for (let e = s.length - 1; e >= 0; e--) t.insertAfter(s[e]);
|
|
355
331
|
const e = r.slice(u + 1);
|
|
356
332
|
if (e.length > 0) {
|
|
357
333
|
const n = $copyNode(t);
|
|
358
|
-
|
|
334
|
+
s[s.length - 1].insertAfter(n), e.forEach((t) => n.append(t));
|
|
359
335
|
}
|
|
360
336
|
}
|
|
361
337
|
})(n, a), t.add(e);
|
|
@@ -364,7 +340,7 @@ function it(t, e = {}) {
|
|
|
364
340
|
return;
|
|
365
341
|
}
|
|
366
342
|
const p = /* @__PURE__ */ new Set(), m = (t) => {
|
|
367
|
-
p.has(t.getKey()) || (p.add(t.getKey()), t.setURL(n), void 0 !== r && t.setTarget(r), void 0 !==
|
|
343
|
+
p.has(t.getKey()) || (p.add(t.getKey()), t.setURL(n), void 0 !== r && t.setTarget(r), void 0 !== s && t.setRel(s), void 0 !== i && t.setTitle(i));
|
|
368
344
|
};
|
|
369
345
|
if (1 === a.length) {
|
|
370
346
|
const t = a[0], e = $findMatchingParent(t, X);
|
|
@@ -373,9 +349,9 @@ function it(t, e = {}) {
|
|
|
373
349
|
(function(t) {
|
|
374
350
|
const e = $getSelection();
|
|
375
351
|
if (!$isRangeSelection(e)) return t();
|
|
376
|
-
const n = $normalizeSelection__EXPERIMENTAL(e), r = n.isBackward(), i = rt(n.anchor, r ? -1 : 0),
|
|
352
|
+
const n = $normalizeSelection__EXPERIMENTAL(e), r = n.isBackward(), i = rt(n.anchor, r ? -1 : 0), s = rt(n.focus, r ? 0 : -1);
|
|
377
353
|
t();
|
|
378
|
-
if (i ||
|
|
354
|
+
if (i || s) {
|
|
379
355
|
const t = $getSelection();
|
|
380
356
|
if ($isRangeSelection(t)) {
|
|
381
357
|
const e = t.clone();
|
|
@@ -383,9 +359,9 @@ function it(t, e = {}) {
|
|
|
383
359
|
const t = i.getParent();
|
|
384
360
|
t && e.anchor.set(t.getKey(), i.getIndexWithinParent() + (r ? 1 : 0), "element");
|
|
385
361
|
}
|
|
386
|
-
if (
|
|
387
|
-
const t =
|
|
388
|
-
t && e.focus.set(t.getKey(),
|
|
362
|
+
if (s) {
|
|
363
|
+
const t = s.getParent();
|
|
364
|
+
t && e.focus.set(t.getKey(), s.getIndexWithinParent() + (r ? 0 : 1), "element");
|
|
389
365
|
}
|
|
390
366
|
$setSelection($normalizeSelection__EXPERIMENTAL(e));
|
|
391
367
|
}
|
|
@@ -394,9 +370,9 @@ function it(t, e = {}) {
|
|
|
394
370
|
let t = null;
|
|
395
371
|
for (const e of a) {
|
|
396
372
|
if (!e.isAttached()) continue;
|
|
397
|
-
const
|
|
398
|
-
if (
|
|
399
|
-
m(
|
|
373
|
+
const l = $findMatchingParent(e, X);
|
|
374
|
+
if (l) {
|
|
375
|
+
m(l);
|
|
400
376
|
continue;
|
|
401
377
|
}
|
|
402
378
|
if ($isElementNode(e)) {
|
|
@@ -413,16 +389,16 @@ function it(t, e = {}) {
|
|
|
413
389
|
}
|
|
414
390
|
const o = e.getPreviousSibling();
|
|
415
391
|
X(o) && o.is(t) ? o.append(e) : (t = V(n, {
|
|
416
|
-
rel:
|
|
392
|
+
rel: s,
|
|
417
393
|
target: r,
|
|
418
394
|
title: i
|
|
419
395
|
}), e.insertAfter(t), t.append(e));
|
|
420
396
|
}
|
|
421
397
|
});
|
|
422
398
|
}
|
|
423
|
-
const
|
|
424
|
-
function
|
|
425
|
-
return t.match(/^[a-z][a-z0-9+.-]*:/i) || t.match(/^[/#.]/) ? t : t.includes("@") ? `mailto:${t}` :
|
|
399
|
+
const st = /^\+?[0-9\s()-]{5,}$/;
|
|
400
|
+
function lt(t) {
|
|
401
|
+
return t.match(/^[a-z][a-z0-9+.-]*:/i) || t.match(/^[/#.]/) ? t : t.includes("@") ? `mailto:${t}` : st.test(t) ? `tel:${t}` : `https://${t}`;
|
|
426
402
|
}
|
|
427
403
|
const ot = [/* @__PURE__ */ defineImportRule({
|
|
428
404
|
$import: (t, e) => {
|
|
@@ -443,12 +419,12 @@ function ut(t, n) {
|
|
|
443
419
|
if (null === t) return it(null), !0;
|
|
444
420
|
if ("string" == typeof t) return !(void 0 !== e && !e(t)) && (it(t, r), !0);
|
|
445
421
|
{
|
|
446
|
-
const { url: e, target: n, rel: i, title:
|
|
422
|
+
const { url: e, target: n, rel: i, title: s } = t;
|
|
447
423
|
return it(e, {
|
|
448
424
|
...r,
|
|
449
425
|
rel: i,
|
|
450
426
|
target: n,
|
|
451
|
-
title:
|
|
427
|
+
title: s
|
|
452
428
|
}), !0;
|
|
453
429
|
}
|
|
454
430
|
}, COMMAND_PRIORITY_EDITOR), effect(() => {
|
|
@@ -459,11 +435,11 @@ function ut(t, n) {
|
|
|
459
435
|
const i = $getSelection();
|
|
460
436
|
if (!$isRangeSelection(i) || i.isCollapsed() || !objectKlassEquals(n, ClipboardEvent)) return !1;
|
|
461
437
|
if (null === n.clipboardData) return !1;
|
|
462
|
-
const
|
|
463
|
-
if (!e(
|
|
438
|
+
const s = n.clipboardData.getData("text");
|
|
439
|
+
if (!e(s)) return !1;
|
|
464
440
|
return !i.getNodes().some((t) => $isElementNode(t) || $isTextNode(t) && !t.isSimpleText()) && (t.dispatchCommand(nt, {
|
|
465
441
|
...r,
|
|
466
|
-
url:
|
|
442
|
+
url: s
|
|
467
443
|
}), n.preventDefault(), !0);
|
|
468
444
|
}, COMMAND_PRIORITY_LOW);
|
|
469
445
|
}));
|
|
@@ -493,12 +469,12 @@ function gt(t, e, n = {}) {
|
|
|
493
469
|
if (!isDOMNode(r)) return;
|
|
494
470
|
const i = getNearestEditorFromDOMNode(r);
|
|
495
471
|
if (null === i) return;
|
|
496
|
-
let
|
|
472
|
+
let l = null, u = null, a = !1;
|
|
497
473
|
if (i.update(() => {
|
|
498
474
|
const t = $getNearestNodeFromDOMNode(r);
|
|
499
475
|
if (null !== t) {
|
|
500
476
|
const n = $findMatchingParent(t, $isElementNode);
|
|
501
|
-
if (!e.disabled.peek()) if (X(n)) a = et(n) && n.getIsUnlinked(),
|
|
477
|
+
if (!e.disabled.peek()) if (X(n)) a = et(n) && n.getIsUnlinked(), l = n.sanitizeUrl(n.getURL()), u = n.getTarget();
|
|
502
478
|
else {
|
|
503
479
|
const t = function(t, e) {
|
|
504
480
|
let n = t;
|
|
@@ -508,14 +484,14 @@ function gt(t, e, n = {}) {
|
|
|
508
484
|
}
|
|
509
485
|
return null;
|
|
510
486
|
}(r, isHTMLAnchorElement);
|
|
511
|
-
null !== t && (
|
|
487
|
+
null !== t && (l = t.href, u = t.target);
|
|
512
488
|
}
|
|
513
489
|
}
|
|
514
|
-
}), null ===
|
|
490
|
+
}), null === l || "" === l || a) return;
|
|
515
491
|
const g = t.read("latest", $getSelection);
|
|
516
492
|
if ($isRangeSelection(g) && !g.isCollapsed()) return void n.preventDefault();
|
|
517
493
|
const d = "auxclick" === n.type && 1 === n.button;
|
|
518
|
-
window.open(
|
|
494
|
+
window.open(l, e.newTab.peek() || d || n.metaKey || n.ctrlKey || "_blank" === u ? "_blank" : "_self"), n.preventDefault();
|
|
519
495
|
}, i = (t) => {
|
|
520
496
|
1 === t.button && r(t);
|
|
521
497
|
};
|
|
@@ -592,56 +568,56 @@ function Ct(t, e, n, r, i) {
|
|
|
592
568
|
return e < r.length ? bt(r[e], n) : Tt(i[i.length - 1], n);
|
|
593
569
|
}
|
|
594
570
|
function Lt(t, e, n) {
|
|
595
|
-
const r = [], i = [],
|
|
596
|
-
let
|
|
571
|
+
const r = [], i = [], s = [];
|
|
572
|
+
let l = 0, o = 0;
|
|
597
573
|
const u = [...t];
|
|
598
574
|
for (; u.length > 0;) {
|
|
599
575
|
const t = u[0], a = t.getTextContent().length, c = o;
|
|
600
|
-
o + a <= e ? (r.push(t),
|
|
576
|
+
o + a <= e ? (r.push(t), l += a) : c >= n ? s.push(t) : i.push(t), o += a, u.shift();
|
|
601
577
|
}
|
|
602
578
|
return [
|
|
603
|
-
|
|
579
|
+
l,
|
|
604
580
|
r,
|
|
605
581
|
i,
|
|
606
|
-
|
|
582
|
+
s
|
|
607
583
|
];
|
|
608
584
|
}
|
|
609
585
|
function St(t, e, n, r) {
|
|
610
586
|
const i = tt(r.url, r.attributes);
|
|
611
587
|
if (1 === t.length) {
|
|
612
|
-
let
|
|
613
|
-
0 === e ? [
|
|
588
|
+
let s, l = t[0];
|
|
589
|
+
0 === e ? [s, l] = l.splitText(n) : [, s, l] = l.splitText(e, n);
|
|
614
590
|
const o = $createTextNode(r.text);
|
|
615
|
-
return o.setFormat(
|
|
591
|
+
return o.setFormat(s.getFormat()), o.setDetail(s.getDetail()), o.setStyle(s.getStyle()), i.append(o), s.replace(i), l;
|
|
616
592
|
}
|
|
617
593
|
if (t.length > 1) {
|
|
618
594
|
const r = t[0];
|
|
619
|
-
let
|
|
620
|
-
0 === e ?
|
|
595
|
+
let s, l = r.getTextContent().length;
|
|
596
|
+
0 === e ? s = r : [, s] = r.splitText(e);
|
|
621
597
|
const u = [];
|
|
622
598
|
let a;
|
|
623
599
|
for (let e = 1; e < t.length; e++) {
|
|
624
|
-
const r = t[e], i = r.getTextContent().length,
|
|
625
|
-
if (
|
|
600
|
+
const r = t[e], i = r.getTextContent().length, s = l;
|
|
601
|
+
if (s < n) if (l + i <= n) u.push(r);
|
|
626
602
|
else {
|
|
627
|
-
const [t, e] = r.splitText(n -
|
|
603
|
+
const [t, e] = r.splitText(n - s);
|
|
628
604
|
u.push(t), a = e;
|
|
629
605
|
}
|
|
630
|
-
|
|
606
|
+
l += i;
|
|
631
607
|
}
|
|
632
|
-
const f = $getSelection(), d = f ? f.getNodes().find($isTextNode) : void 0, h = $createTextNode(
|
|
633
|
-
return h.setFormat(
|
|
608
|
+
const f = $getSelection(), d = f ? f.getNodes().find($isTextNode) : void 0, h = $createTextNode(s.getTextContent());
|
|
609
|
+
return h.setFormat(s.getFormat()), h.setDetail(s.getDetail()), h.setStyle(s.getStyle()), i.append(h, ...u), d && d === s && ($isRangeSelection(f) ? h.select(f.anchor.offset, f.focus.offset) : $isNodeSelection(f) && h.select(0, h.getTextContent().length)), s.replace(i), a;
|
|
634
610
|
}
|
|
635
611
|
}
|
|
636
|
-
function
|
|
637
|
-
const i = t.getChildren(),
|
|
638
|
-
for (let e = 0; e <
|
|
612
|
+
function At(t, e, n, r) {
|
|
613
|
+
const i = t.getChildren(), s = i.length;
|
|
614
|
+
for (let e = 0; e < s; e++) {
|
|
639
615
|
const r = i[e];
|
|
640
|
-
if (!$isTextNode(r) || !r.isSimpleText()) return
|
|
616
|
+
if (!$isTextNode(r) || !r.isSimpleText()) return Pt(t), void n(null, t.getURL());
|
|
641
617
|
}
|
|
642
|
-
const
|
|
643
|
-
if (null === o || o.text !==
|
|
644
|
-
if (!vt(t, r) || !Tt(t, r)) return
|
|
618
|
+
const l = t.getTextContent(), o = mt(l, e);
|
|
619
|
+
if (null === o || o.text !== l) return Pt(t), void n(null, t.getURL());
|
|
620
|
+
if (!vt(t, r) || !Tt(t, r)) return Pt(t), void n(null, t.getURL());
|
|
645
621
|
const u = t.getURL();
|
|
646
622
|
if (u !== o.url && (t.setURL(o.url), n(o.url, u)), o.attributes) {
|
|
647
623
|
const e = t.getRel();
|
|
@@ -650,39 +626,39 @@ function Nt(t, e, n, r) {
|
|
|
650
626
|
r !== o.attributes.target && (t.setTarget(o.attributes.target || null), n(o.attributes.target || null, r));
|
|
651
627
|
}
|
|
652
628
|
}
|
|
653
|
-
function
|
|
629
|
+
function Pt(t) {
|
|
654
630
|
const e = t.getChildren();
|
|
655
631
|
for (let n = e.length - 1; n >= 0; n--) t.insertAfter(e[n]);
|
|
656
632
|
return t.remove(), e.map((t) => t.getLatest());
|
|
657
633
|
}
|
|
658
|
-
const
|
|
634
|
+
const Nt = {
|
|
659
635
|
changeHandlers: [],
|
|
660
636
|
excludeParents: [],
|
|
661
637
|
matchers: [],
|
|
662
638
|
separatorRegex: xt
|
|
663
639
|
};
|
|
664
|
-
function
|
|
665
|
-
const { matchers: n, changeHandlers: r, excludeParents: i, separatorRegex:
|
|
640
|
+
function Rt(t, e = Nt) {
|
|
641
|
+
const { matchers: n, changeHandlers: r, excludeParents: i, separatorRegex: s = xt } = e, l = (t, e) => {
|
|
666
642
|
for (const n of r) n(t, e);
|
|
667
643
|
};
|
|
668
644
|
return mergeRegister(t.registerNodeTransform(TextNode, (t) => {
|
|
669
645
|
const e = t.getParentOrThrow(), r = t.getPreviousSibling();
|
|
670
|
-
if (et(e))
|
|
646
|
+
if (et(e)) At(e, n, l, s);
|
|
671
647
|
else if (!X(e) && !i.some((t) => t(e))) {
|
|
672
|
-
if (t.isSimpleText() && (Ut(t.getTextContent(),
|
|
648
|
+
if (t.isSimpleText() && (Ut(t.getTextContent(), s) || !et(r))) (function(t, e, n, r) {
|
|
673
649
|
for (const e of t) {
|
|
674
650
|
const t = e.getParent();
|
|
675
651
|
if (et(t) && !t.getIsUnlinked()) return;
|
|
676
652
|
}
|
|
677
653
|
let i = [...t];
|
|
678
|
-
const
|
|
679
|
-
let
|
|
680
|
-
for (; (
|
|
681
|
-
const t =
|
|
682
|
-
if (Ct(u + t, u + e, r,
|
|
683
|
-
const [r, ,
|
|
654
|
+
const s = i.map((t) => t.getTextContent()).join("");
|
|
655
|
+
let l, o = s, u = 0;
|
|
656
|
+
for (; (l = mt(o, e)) && null !== l;) {
|
|
657
|
+
const t = l.index, e = t + l.length;
|
|
658
|
+
if (Ct(u + t, u + e, r, s, i)) {
|
|
659
|
+
const [r, , s, a] = Lt(i, u + t, u + e);
|
|
684
660
|
let c = !1;
|
|
685
|
-
for (const t of
|
|
661
|
+
for (const t of s) {
|
|
686
662
|
const e = t.getParent();
|
|
687
663
|
if (et(e) && !e.getIsUnlinked()) {
|
|
688
664
|
c = !0;
|
|
@@ -693,8 +669,8 @@ function Pt(t, e = At) {
|
|
|
693
669
|
u += e, o = o.substring(e);
|
|
694
670
|
continue;
|
|
695
671
|
}
|
|
696
|
-
const g = St(
|
|
697
|
-
i = g ? [g, ...a] : a, n(
|
|
672
|
+
const g = St(s, u + t - r, u + e - r, l);
|
|
673
|
+
i = g ? [g, ...a] : a, n(l.url, null), u = 0;
|
|
698
674
|
} else u += e;
|
|
699
675
|
o = o.substring(e);
|
|
700
676
|
}
|
|
@@ -703,21 +679,21 @@ function Pt(t, e = At) {
|
|
|
703
679
|
let n = t.getNextSibling();
|
|
704
680
|
for (; null !== n && $isTextNode(n) && n.isSimpleText() && (e.push(n), !/[\s]/.test(n.getTextContent()));) n = n.getNextSibling();
|
|
705
681
|
return e;
|
|
706
|
-
}(t), n,
|
|
682
|
+
}(t), n, l, s);
|
|
707
683
|
(function(t, e, n, r) {
|
|
708
|
-
const i = t.getParent(),
|
|
684
|
+
const i = t.getParent(), s = t.getPreviousSibling(), l = t.getNextSibling(), o = t.getTextContent();
|
|
709
685
|
if (!et(i) || i.getIsUnlinked()) {
|
|
710
|
-
if (et(
|
|
711
|
-
if (!Ut(o, r)) return
|
|
712
|
-
if (u = o,
|
|
713
|
-
const i =
|
|
714
|
-
null !==
|
|
686
|
+
if (et(s) && !s.getIsUnlinked() && s.is(t.getPreviousSibling()) && t.getParent() === s.getParent()) {
|
|
687
|
+
if (!Ut(o, r)) return Pt(s), void n(null, s.getURL());
|
|
688
|
+
if (u = o, s.isEmailURI() ? /^\.[a-zA-Z]{2,}/.test(u) : /^\.[a-zA-Z0-9]{1,}/.test(u)) {
|
|
689
|
+
const i = s.getTextContent() + o, l = mt(i, e);
|
|
690
|
+
null !== l && l.text === i && (s.append(t), At(s, e, n, r), n(null, s.getURL()));
|
|
715
691
|
}
|
|
716
692
|
}
|
|
717
693
|
var u;
|
|
718
|
-
!et(
|
|
694
|
+
!et(l) || l.getIsUnlinked() || kt(o, r) || l.is(t.getNextSibling()) && t.getParent() === l.getParent() && (Pt(l), n(null, l.getURL()));
|
|
719
695
|
}
|
|
720
|
-
})(t, n,
|
|
696
|
+
})(t, n, l, s);
|
|
721
697
|
}
|
|
722
698
|
}), t.registerCommand(nt, (t) => {
|
|
723
699
|
const e = $getSelection();
|
|
@@ -728,8 +704,8 @@ function Pt(t, e = At) {
|
|
|
728
704
|
}), !1;
|
|
729
705
|
}, COMMAND_PRIORITY_LOW));
|
|
730
706
|
}
|
|
731
|
-
const
|
|
732
|
-
config:
|
|
707
|
+
const Ot = /* @__PURE__ */ defineExtension({
|
|
708
|
+
config: Nt,
|
|
733
709
|
dependencies: [at],
|
|
734
710
|
mergeConfig(t, e) {
|
|
735
711
|
const n = shallowMergeConfig(t, e);
|
|
@@ -745,7 +721,7 @@ const yt = /* @__PURE__ */ defineExtension({
|
|
|
745
721
|
},
|
|
746
722
|
name: "@lexical/link/AutoLink",
|
|
747
723
|
nodes: [Y],
|
|
748
|
-
register:
|
|
724
|
+
register: Rt
|
|
749
725
|
});
|
|
750
726
|
//#endregion
|
|
751
|
-
export { tt as $createAutoLinkNode, V as $createLinkNode, et as $isAutoLinkNode, X as $isLinkNode, it as $toggleLink,
|
|
727
|
+
export { tt as $createAutoLinkNode, V as $createLinkNode, et as $isAutoLinkNode, X as $isLinkNode, it as $toggleLink, Ot as AutoLinkExtension, Y as AutoLinkNode, ft as ClickableLinkExtension, at as LinkExtension, ct as LinkImportExtension, ot as LinkImportRules, Z as LinkNode, nt as TOGGLE_LINK_COMMAND, _t as autoLinkEmailMatcher, pt as autoLinkUrlMatcher, dt as createLinkMatcherWithRegExp, lt as formatUrl, Rt as registerAutoLink, gt as registerClickableLink, ut as registerLink };
|