@mx-space/cli 0.7.8 → 0.8.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.dev-rcxzwpir.mjs → Lexical.dev-By5dOKBN.mjs} +1486 -356
- package/dist/{Lexical.node-BUsI9gWr.mjs → Lexical.node-fXM8Jp7p.mjs} +39 -17
- package/dist/{Lexical.prod-C8HtkSD6.mjs → Lexical.prod-BlCvXPGa.mjs} +2279 -1768
- package/dist/LexicalClipboard.dev--HxGoSkO.mjs +915 -0
- package/dist/{LexicalClipboard.node-CO-MCKx5.mjs → LexicalClipboard.node-C3mRbrmW.mjs} +10 -3
- package/dist/LexicalClipboard.prod-DNJzFMcT.mjs +371 -0
- package/dist/LexicalCodeCore.dev-DjSrd4A4.mjs +1109 -0
- package/dist/LexicalCodeCore.prod-DTDShkR3.mjs +642 -0
- package/dist/{LexicalDragon.dev-gBP8WSRS.mjs → LexicalDragon.dev-DwprRH0z.mjs} +3 -3
- package/dist/{LexicalDragon.node-OG6G55nl.mjs → LexicalDragon.node-BVhw4C7s.mjs} +2 -2
- package/dist/{LexicalDragon.prod-DP-_Q8cv.mjs → LexicalDragon.prod-nh4J-8vn.mjs} +3 -3
- package/dist/{LexicalExtension.dev-DVbjljrm.mjs → LexicalExtension.dev-BPNyvGqe.mjs} +335 -6
- package/dist/{LexicalExtension.node-CF3EAPN7.mjs → LexicalExtension.node-BVlcrgOx.mjs} +15 -8
- package/dist/{LexicalExtension.prod-DklHHErZ.mjs → LexicalExtension.prod-DFKbiNt-.mjs} +375 -265
- package/dist/{LexicalHeadless.dev-DdWLM7Nl.mjs → LexicalHeadless.dev-B-cj7Pr5.mjs} +2 -2
- package/dist/{LexicalHeadless.prod-CoiiTDzR.mjs → LexicalHeadless.prod-Byp1vNzT.mjs} +2 -2
- package/dist/LexicalHtml.dev-prBAwszN.mjs +2424 -0
- package/dist/LexicalHtml.node-BvNF96jZ.mjs +56 -0
- package/dist/LexicalHtml.prod-Sz3CW1ht.mjs +1207 -0
- package/dist/{LexicalLink.dev-BS1Bf-yD.mjs → LexicalLink.dev-NySTYhVR.mjs} +42 -8
- package/dist/{LexicalLink.prod-B_crkoHP.mjs → LexicalLink.prod-BuCM8gts.mjs} +209 -191
- package/dist/{LexicalList.dev-OMqmcnQ-.mjs → LexicalList.dev-DIMOvSFD.mjs} +252 -80
- package/dist/{LexicalList.prod-CpL1s8vS.mjs → LexicalList.prod-MVqfA6Vo.mjs} +364 -278
- package/dist/{LexicalMarkdown.dev-BHSdx_Gr.mjs → LexicalMarkdown.dev-C7aylvCG.mjs} +729 -552
- package/dist/LexicalMarkdown.prod-CfQSM406.mjs +868 -0
- package/dist/{LexicalRichText.dev-Bz9A_WbM.mjs → LexicalRichText.dev-DfICq6lU.mjs} +272 -77
- package/dist/{LexicalRichText.node-DDpwfE-P.mjs → LexicalRichText.node-Bg9jND3Q.mjs} +21 -8
- package/dist/LexicalRichText.prod-GsFzCK-o.mjs +550 -0
- package/dist/{LexicalSelection.dev-CQ380fnD.mjs → LexicalSelection.dev-DGjj12wW.mjs} +50 -38
- package/dist/{LexicalSelection.node-DesBMjIE.mjs → LexicalSelection.node-BU5L4193.mjs} +4 -4
- package/dist/{LexicalSelection.prod-D2jivCDB.mjs → LexicalSelection.prod-D-PwRbyK.mjs} +158 -140
- package/dist/{LexicalTable.dev-Ca7mQ7Jk.mjs → LexicalTable.dev-ChP7cugd.mjs} +215 -53
- package/dist/{LexicalTable.prod-DyPAcC7y.mjs → LexicalTable.prod-Bpr9YRXp.mjs} +668 -573
- package/dist/{LexicalUtils.dev-HxM8F0g6.mjs → LexicalUtils.dev-BiFU3789.mjs} +10 -47
- package/dist/{LexicalUtils.node-lCWjRjoG.mjs → LexicalUtils.node-j3Llm7Y3.mjs} +2 -2
- package/dist/{LexicalUtils.prod-Bti5w4ki.mjs → LexicalUtils.prod-DCvrA78p.mjs} +103 -105
- package/dist/bin/mxs.d.mts +1 -1
- package/dist/bin/mxs.mjs +1 -1
- package/dist/esm-By7trG9K.mjs +2 -0
- package/dist/{esm-CK9m5JKX.mjs → esm-Dg-WhPCe.mjs} +989 -989
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{mxs-BZt1cLW9.mjs → mxs-DT0oYk6U.mjs} +11935 -11866
- package/package.json +15 -14
- package/dist/LexicalClipboard.dev-BpqRwTLP.mjs +0 -494
- package/dist/LexicalClipboard.prod-B_xdeiAC.mjs +0 -291
- package/dist/LexicalCodeCore.dev-7_cexm39.mjs +0 -537
- package/dist/LexicalCodeCore.prod-Bd6WFHcO.mjs +0 -381
- package/dist/LexicalHtml.dev-C3ZSWBFZ.mjs +0 -684
- package/dist/LexicalHtml.node-D0TD152E.mjs +0 -24
- package/dist/LexicalHtml.prod-CX47X0zl.mjs +0 -430
- package/dist/LexicalMarkdown.prod-C-S7Ii6-.mjs +0 -754
- package/dist/LexicalRichText.prod-C8qXACDL.mjs +0 -427
- package/dist/esm-DRbkkY3r.mjs +0 -2
- /package/dist/{mxs-CM8-6uAr.d.mts → mxs-iqJBopvE.d.mts} +0 -0
|
@@ -1,291 +0,0 @@
|
|
|
1
|
-
import { i as getExtensionDependencyFromEditor, n as LexicalBuilder } from "./LexicalExtension.node-CF3EAPN7.mjs";
|
|
2
|
-
import { $n as safeCast, A as $getCollapsedCaretRange, D as $getChildCaret, Dt as COMMAND_PRIORITY_CRITICAL, H as $getTextPointCaret, Jn as isSelectionWithinEditor, Mn as defineExtension, Mt as COPY_COMMAND, N as $getNearestNodeFromDOMNode, Nn as getDOMSelection, O as $getChildCaretAtIndex, R as $getRoot, T as $getCaretRangeInDirection, Y as $isElementNode, ct as $isTextNode, g as $createTabNode, i as $caretRangeFromSelection, j as $getEditor, lt as $isTextPointCaret, pt as $parseSerializedNode, r as $caretFromPoint, rr as shallowMergeConfig, rt as $isRangeSelection, s as $comparePointCaretNext, vn as SELECTION_INSERT_CLIPBOARD_NODES_COMMAND, w as $getCaretRange, xt as $splitAtPointCaretNext, yt as $setSelectionFromCaretRange, z as $getSelection } from "./Lexical.node-BUsI9gWr.mjs";
|
|
3
|
-
import { n as $generateNodesFromDOM, t as $generateHtmlFromNodes } from "./LexicalHtml.node-D0TD152E.mjs";
|
|
4
|
-
import { a as $sliceSelectedTextNodeContent, t as $addNodeStyle } from "./LexicalSelection.node-DesBMjIE.mjs";
|
|
5
|
-
import { g as objectKlassEquals } from "./LexicalUtils.node-lCWjRjoG.mjs";
|
|
6
|
-
//#region ../../node_modules/.pnpm/@lexical+clipboard@0.44.0/node_modules/@lexical/clipboard/LexicalClipboard.prod.mjs
|
|
7
|
-
/**
|
|
8
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
9
|
-
*
|
|
10
|
-
* This source code is licensed under the MIT license found in the
|
|
11
|
-
* LICENSE file in the root directory of this source tree.
|
|
12
|
-
*
|
|
13
|
-
*/
|
|
14
|
-
function _(t, ...e) {
|
|
15
|
-
const n = new URL("https://lexical.dev/docs/error"), r = new URLSearchParams();
|
|
16
|
-
r.append("code", t);
|
|
17
|
-
for (const t of e) r.append("v", t);
|
|
18
|
-
throw n.search = r.toString(), Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`);
|
|
19
|
-
}
|
|
20
|
-
function J(t, e = $getSelection()) {
|
|
21
|
-
return e ?? _(166), $isRangeSelection(e) && e.isCollapsed() || 0 === e.getNodes().length ? "" : $generateHtmlFromNodes(t, e);
|
|
22
|
-
}
|
|
23
|
-
function L(t, e = $getSelection()) {
|
|
24
|
-
return e ?? _(166), $isRangeSelection(e) && e.isCollapsed() || 0 === e.getNodes().length ? null : JSON.stringify(X(t, e));
|
|
25
|
-
}
|
|
26
|
-
function j(t, e) {
|
|
27
|
-
const n = t.getData("text/plain") || t.getData("text/uri-list");
|
|
28
|
-
null != n && e.insertRawText(n);
|
|
29
|
-
}
|
|
30
|
-
function I(t, e, n) {
|
|
31
|
-
const o = t.getData("application/x-lexical-editor");
|
|
32
|
-
if (o) try {
|
|
33
|
-
const t = JSON.parse(o);
|
|
34
|
-
if (t.namespace === n._config.namespace && Array.isArray(t.nodes)) return z(n, Y(t.nodes), e);
|
|
35
|
-
} catch (t) {
|
|
36
|
-
console.error(t);
|
|
37
|
-
}
|
|
38
|
-
const i = t.getData("text/html"), l = t.getData("text/plain");
|
|
39
|
-
if (i && l !== i) try {
|
|
40
|
-
return z(n, $generateNodesFromDOM(n, new DOMParser().parseFromString(function(t) {
|
|
41
|
-
if (window.trustedTypes && window.trustedTypes.createPolicy) return window.trustedTypes.createPolicy("lexical", { createHTML: (t) => t }).createHTML(t);
|
|
42
|
-
return t;
|
|
43
|
-
}(i), "text/html")), e);
|
|
44
|
-
} catch (t) {
|
|
45
|
-
console.error(t);
|
|
46
|
-
}
|
|
47
|
-
const u = l || t.getData("text/uri-list");
|
|
48
|
-
if (null != u) if ($isRangeSelection(e)) {
|
|
49
|
-
const t = u.split(/(\r?\n|\t)/);
|
|
50
|
-
"" === t[t.length - 1] && t.pop();
|
|
51
|
-
for (let e = 0; e < t.length; e++) {
|
|
52
|
-
const n = $getSelection();
|
|
53
|
-
if ($isRangeSelection(n)) {
|
|
54
|
-
const r = t[e];
|
|
55
|
-
"\n" === r || "\r\n" === r ? n.insertParagraph() : " " === r ? n.insertNodes([$createTabNode()]) : n.insertText(r);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
} else e.insertRawText(u);
|
|
59
|
-
}
|
|
60
|
-
const k = "application/x-lexical-drag";
|
|
61
|
-
function B(t, e) {
|
|
62
|
-
const n = { editorKey: e.getKey() };
|
|
63
|
-
t.setData(k, JSON.stringify(n));
|
|
64
|
-
}
|
|
65
|
-
function H(t) {
|
|
66
|
-
const e = function(t, e) {
|
|
67
|
-
if (void 0 !== document.caretRangeFromPoint) {
|
|
68
|
-
const n = document.caretRangeFromPoint(t, e);
|
|
69
|
-
return null === n ? null : {
|
|
70
|
-
node: n.startContainer,
|
|
71
|
-
offset: n.startOffset
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
if ("undefined" !== document.caretPositionFromPoint) {
|
|
75
|
-
const n = document.caretPositionFromPoint(t, e);
|
|
76
|
-
return null === n ? null : {
|
|
77
|
-
node: n.offsetNode,
|
|
78
|
-
offset: n.offset
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
return null;
|
|
82
|
-
}(t.clientX, t.clientY);
|
|
83
|
-
if (null === e) return null;
|
|
84
|
-
const n = $getNearestNodeFromDOMNode(e.node);
|
|
85
|
-
if (null === n) return null;
|
|
86
|
-
if ($isTextNode(n)) return $getTextPointCaret(n, "next", e.offset);
|
|
87
|
-
if ($isElementNode(n)) return $getChildCaretAtIndex(n, e.offset, "next");
|
|
88
|
-
const r = n.getParent();
|
|
89
|
-
return null === r ? null : $getChildCaretAtIndex(r, n.getIndexWithinParent() + 1, "next");
|
|
90
|
-
}
|
|
91
|
-
function U(t, e, n) {
|
|
92
|
-
const r = t.dataTransfer;
|
|
93
|
-
if (null === r) return !1;
|
|
94
|
-
const o = function(t) {
|
|
95
|
-
const e = t.getData(k);
|
|
96
|
-
if (!e) return null;
|
|
97
|
-
let n;
|
|
98
|
-
try {
|
|
99
|
-
n = JSON.parse(e);
|
|
100
|
-
} catch (t) {
|
|
101
|
-
return null;
|
|
102
|
-
}
|
|
103
|
-
return null !== (r = n) && "object" == typeof r && "editorKey" in r && "string" == typeof r.editorKey ? n : null;
|
|
104
|
-
var r;
|
|
105
|
-
}(r);
|
|
106
|
-
if (null === o) return !1;
|
|
107
|
-
const i = H(t);
|
|
108
|
-
if (null === i) return !1;
|
|
109
|
-
const l = $splitAtPointCaretNext(i);
|
|
110
|
-
if (null === l) return !1;
|
|
111
|
-
const a = o.editorKey === e.getKey(), u = $getSelection();
|
|
112
|
-
if (a) {
|
|
113
|
-
if (!$isRangeSelection(u) || u.isCollapsed()) return !1;
|
|
114
|
-
if (function(t, e) {
|
|
115
|
-
const { anchor: n, focus: r } = $getCaretRangeInDirection($caretRangeFromSelection(e), "next");
|
|
116
|
-
return $comparePointCaretNext(n, t) < 0 && $comparePointCaretNext(t, r) < 0;
|
|
117
|
-
}(i, u)) return t.preventDefault(), !0;
|
|
118
|
-
u.removeText();
|
|
119
|
-
}
|
|
120
|
-
if (!l.origin.isAttached()) return t.preventDefault(), !0;
|
|
121
|
-
if (n(r, $setSelectionFromCaretRange($getCollapsedCaretRange(l)), e), !a) {
|
|
122
|
-
const t = e.getRootElement(), n = t ? t.ownerDocument : null, r = n ? function(t, e) {
|
|
123
|
-
const n = e.querySelectorAll("[data-lexical-editor=\"true\"]");
|
|
124
|
-
for (const e of Array.from(n)) {
|
|
125
|
-
const n = e.__lexicalEditor;
|
|
126
|
-
if (n && n.getKey() === t) return e;
|
|
127
|
-
}
|
|
128
|
-
return null;
|
|
129
|
-
}(o.editorKey, n) : null;
|
|
130
|
-
null !== r && r.dispatchEvent(new InputEvent("beforeinput", {
|
|
131
|
-
bubbles: !0,
|
|
132
|
-
cancelable: !0,
|
|
133
|
-
inputType: "deleteByDrag"
|
|
134
|
-
}));
|
|
135
|
-
}
|
|
136
|
-
return t.preventDefault(), !0;
|
|
137
|
-
}
|
|
138
|
-
function W(t, e) {
|
|
139
|
-
return U(t, e, I);
|
|
140
|
-
}
|
|
141
|
-
function q(t, e) {
|
|
142
|
-
return U(t, e, (t, e) => j(t, e));
|
|
143
|
-
}
|
|
144
|
-
function z(t, e, n) {
|
|
145
|
-
t.dispatchCommand(SELECTION_INSERT_CLIPBOARD_NODES_COMMAND, {
|
|
146
|
-
nodes: e,
|
|
147
|
-
selection: n
|
|
148
|
-
}) || (n.insertNodes(e), function(t) {
|
|
149
|
-
if ($isRangeSelection(t) && t.isCollapsed()) {
|
|
150
|
-
const e = t.anchor;
|
|
151
|
-
let n = null;
|
|
152
|
-
const r = $caretFromPoint(e, "previous");
|
|
153
|
-
if (r) if ($isTextPointCaret(r)) n = r.origin;
|
|
154
|
-
else {
|
|
155
|
-
const t = $getCaretRange(r, $getChildCaret($getRoot(), "next").getFlipped());
|
|
156
|
-
for (const e of t) {
|
|
157
|
-
if ($isTextNode(e.origin)) {
|
|
158
|
-
n = e.origin;
|
|
159
|
-
break;
|
|
160
|
-
}
|
|
161
|
-
if ($isElementNode(e.origin) && !e.origin.isInline()) break;
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
if (n && $isTextNode(n)) {
|
|
165
|
-
const e = n.getFormat(), r = n.getStyle();
|
|
166
|
-
t.format === e && t.style === r || (t.format = e, t.style = r, t.dirty = !0);
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
}(n));
|
|
170
|
-
}
|
|
171
|
-
function G(t, e, n, r = []) {
|
|
172
|
-
let o = null === e || n.isSelected(e);
|
|
173
|
-
const l = $isElementNode(n) && n.excludeFromCopy("html");
|
|
174
|
-
let c = n;
|
|
175
|
-
null !== e && $isTextNode(c) && (c = $sliceSelectedTextNodeContent(e, c, "clone"));
|
|
176
|
-
const s = $isElementNode(c) ? c.getChildren() : [], a = function(t) {
|
|
177
|
-
const e = t.exportJSON(), n = t.constructor;
|
|
178
|
-
if (e.type !== n.getType() && _(58, n.name), $isElementNode(t)) {
|
|
179
|
-
const t = e.children;
|
|
180
|
-
Array.isArray(t) || _(59, n.name);
|
|
181
|
-
}
|
|
182
|
-
return e;
|
|
183
|
-
}(c);
|
|
184
|
-
$isTextNode(c) && 0 === c.getTextContentSize() && (o = !1);
|
|
185
|
-
for (let r = 0; r < s.length; r++) {
|
|
186
|
-
const i = s[r], l = G(t, e, i, a.children);
|
|
187
|
-
!o && $isElementNode(n) && l && n.extractWithChild(i, e, "clone") && (o = !0);
|
|
188
|
-
}
|
|
189
|
-
if (o && !l) r.push(a);
|
|
190
|
-
else if (Array.isArray(a.children)) for (let t = 0; t < a.children.length; t++) {
|
|
191
|
-
const e = a.children[t];
|
|
192
|
-
r.push(e);
|
|
193
|
-
}
|
|
194
|
-
return o;
|
|
195
|
-
}
|
|
196
|
-
function X(t, e) {
|
|
197
|
-
const n = [], r = $getRoot().getChildren();
|
|
198
|
-
for (let o = 0; o < r.length; o++) G(t, e, r[o], n);
|
|
199
|
-
return {
|
|
200
|
-
namespace: t._config.namespace,
|
|
201
|
-
nodes: n
|
|
202
|
-
};
|
|
203
|
-
}
|
|
204
|
-
function Y(t) {
|
|
205
|
-
const e = [];
|
|
206
|
-
for (let n = 0; n < t.length; n++) {
|
|
207
|
-
const r = t[n], i = $parseSerializedNode(r);
|
|
208
|
-
$isTextNode(i) && $addNodeStyle(i), e.push(i);
|
|
209
|
-
}
|
|
210
|
-
return e;
|
|
211
|
-
}
|
|
212
|
-
let Q = null;
|
|
213
|
-
async function V(t, e, n) {
|
|
214
|
-
if (null !== Q) return !1;
|
|
215
|
-
if (null !== e) return new Promise((r, o) => {
|
|
216
|
-
t.update(() => {
|
|
217
|
-
r(Z(t, e, n));
|
|
218
|
-
});
|
|
219
|
-
});
|
|
220
|
-
const r = t.getRootElement(), o = t._window || window, i = o.document, c = getDOMSelection(o);
|
|
221
|
-
if (null === r || null === c) return !1;
|
|
222
|
-
const s = i.createElement("span");
|
|
223
|
-
s.style.position = "fixed", s.style.top = "-1000px", s.append(i.createTextNode("#")), r.append(s);
|
|
224
|
-
const a = new Range();
|
|
225
|
-
return a.setStart(s, 0), a.setEnd(s, 1), c.removeAllRanges(), c.addRange(a), new Promise((e, r) => {
|
|
226
|
-
const c = t.registerCommand(COPY_COMMAND, (r) => (objectKlassEquals(r, ClipboardEvent) && (c(), null !== Q && (o.clearTimeout(Q), Q = null), e(Z(t, r, n))), !0), COMMAND_PRIORITY_CRITICAL);
|
|
227
|
-
Q = o.setTimeout(() => {
|
|
228
|
-
c(), Q = null, e(!1);
|
|
229
|
-
}, 50), i.execCommand("copy"), s.remove();
|
|
230
|
-
});
|
|
231
|
-
}
|
|
232
|
-
function Z(t, e, n) {
|
|
233
|
-
if (void 0 === n) {
|
|
234
|
-
const e = getDOMSelection(t._window), r = $getSelection();
|
|
235
|
-
if (!r || r.isCollapsed()) return !1;
|
|
236
|
-
if (!e) return !1;
|
|
237
|
-
const o = e.anchorNode, i = e.focusNode;
|
|
238
|
-
if (null !== o && null !== i && !isSelectionWithinEditor(t, o, i)) return !1;
|
|
239
|
-
n = et(r);
|
|
240
|
-
}
|
|
241
|
-
e.preventDefault();
|
|
242
|
-
const r = e.clipboardData;
|
|
243
|
-
return null !== r && (nt(r, n), !0);
|
|
244
|
-
}
|
|
245
|
-
const tt = [["text/html", J], ["application/x-lexical-editor", L]];
|
|
246
|
-
function et(n = $getSelection()) {
|
|
247
|
-
return function(t, e) {
|
|
248
|
-
const n = { "text/plain": "" };
|
|
249
|
-
for (const [r, o] of Object.entries(t)) {
|
|
250
|
-
const t = ot(o, e);
|
|
251
|
-
null !== t && (n[r] = t);
|
|
252
|
-
}
|
|
253
|
-
return n;
|
|
254
|
-
}(function() {
|
|
255
|
-
const n = $getEditor(), r = LexicalBuilder.maybeFromEditor(n);
|
|
256
|
-
if (r && r.hasExtensionByName(it.name)) return getExtensionDependencyFromEditor(n, it).output;
|
|
257
|
-
return rt;
|
|
258
|
-
}(), n);
|
|
259
|
-
}
|
|
260
|
-
function nt(t, e) {
|
|
261
|
-
for (const [n] of tt) void 0 === e[n] && t.setData(n, "");
|
|
262
|
-
for (const n in e) {
|
|
263
|
-
const r = e[n];
|
|
264
|
-
void 0 !== r && t.setData(n, r);
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
const rt = {
|
|
268
|
-
"application/x-lexical-editor": [(t, e) => t ? L($getEditor(), t) : e()],
|
|
269
|
-
"text/html": [(t, e) => t ? J($getEditor(), t) : e()],
|
|
270
|
-
"text/plain": [(t, e) => t ? t.getTextContent() : e()]
|
|
271
|
-
};
|
|
272
|
-
function ot(t, e) {
|
|
273
|
-
const n = (r) => t[r] ? t[r](e, n.bind(null, r - 1)) : null;
|
|
274
|
-
return n(t.length - 1);
|
|
275
|
-
}
|
|
276
|
-
const it = defineExtension({
|
|
277
|
-
build: (t, e, n) => e.$exportMimeType,
|
|
278
|
-
config: safeCast({ $exportMimeType: rt }),
|
|
279
|
-
mergeConfig(t, e) {
|
|
280
|
-
const n = shallowMergeConfig(t, e);
|
|
281
|
-
if (e.$exportMimeType) {
|
|
282
|
-
const r = { ...t.$exportMimeType };
|
|
283
|
-
for (const [t, n] of Object.entries(e.$exportMimeType)) r[t] = [...r[t], ...n];
|
|
284
|
-
n.$exportMimeType = r;
|
|
285
|
-
}
|
|
286
|
-
return n;
|
|
287
|
-
},
|
|
288
|
-
name: "@lexical/clipboard/GetClipboardData"
|
|
289
|
-
});
|
|
290
|
-
//#endregion
|
|
291
|
-
export { X as $generateJSONFromSelectedNodes, Y as $generateNodesFromSerializedNodes, et as $getClipboardDataFromSelection, J as $getHtmlContent, L as $getLexicalContent, q as $handlePlainTextDrop, W as $handleRichTextDrop, j as $insertDataTransferForPlainText, I as $insertDataTransferForRichText, z as $insertGeneratedNodes, B as $writeDragSourceToDataTransfer, V as copyToClipboard, nt as setLexicalClipboardDataTransfer };
|