@mx-space/cli 0.14.1 → 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/README.md +35 -11
- package/dist/{Lexical.dev-DTxuYHmG.mjs → Lexical.dev-Cck4n26y.mjs} +998 -584
- package/dist/{Lexical.node-BlCLnfA6.mjs → Lexical.node-D6wf2D5M.mjs} +15 -5
- package/dist/Lexical.prod-DCwS1oTq.mjs +7170 -0
- package/dist/{LexicalClipboard.dev-CdFkLR_D.mjs → LexicalClipboard.dev-CMkPHV7O.mjs} +6 -6
- package/dist/{LexicalClipboard.node-ktUajxsv.mjs → LexicalClipboard.node-m4nZ7IYw.mjs} +2 -2
- package/dist/{LexicalClipboard.prod-DliyLofW.mjs → LexicalClipboard.prod-B_rN1vE1.mjs} +10 -8
- package/dist/{LexicalCodeCore.dev-CL9tHWJX.mjs → LexicalCodeCore.dev-DyJw3i8V.mjs} +62 -72
- package/dist/{LexicalCodeCore.prod-BoMSJc29.mjs → LexicalCodeCore.prod-DPXLHQLF.mjs} +212 -213
- package/dist/{LexicalDragon.dev-CqW7Aq5H.mjs → LexicalDragon.dev-ZkNfMwrE.mjs} +3 -3
- package/dist/{LexicalDragon.node-DLXctJyy.mjs → LexicalDragon.node-Ds9oLUFh.mjs} +2 -2
- package/dist/{LexicalDragon.prod-DHI3T6n5.mjs → LexicalDragon.prod-B58ic2av.mjs} +5 -4
- package/dist/{LexicalExtension.dev-BP-18zns.mjs → LexicalExtension.dev-DvwHs1Xv.mjs} +79 -67
- package/dist/{LexicalExtension.node-BWH6xbzG.mjs → LexicalExtension.node-5OymZQfy.mjs} +4 -2
- package/dist/{LexicalExtension.prod-Cs6OgrDn.mjs → LexicalExtension.prod-Ce0T5smQ.mjs} +372 -358
- package/dist/{LexicalHeadless.dev-DJp__UcP.mjs → LexicalHeadless.dev-DA0WldSR.mjs} +2 -2
- package/dist/{LexicalHeadless.prod-o0v9cIu5.mjs → LexicalHeadless.prod-1kQgKB6c.mjs} +2 -2
- package/dist/{LexicalHtml.dev-DoymwFpG.mjs → LexicalHtml.dev-BDB7CUrx.mjs} +14 -12
- package/dist/{LexicalHtml.node-CVkbWtUA.mjs → LexicalHtml.node-DpVNt7It.mjs} +4 -4
- package/dist/{LexicalHtml.prod-C2b3z99k.mjs → LexicalHtml.prod-HkxM5scw.mjs} +331 -300
- package/dist/{LexicalLink.dev-7cgLOLIe.mjs → LexicalLink.dev-C5zNJlrm.mjs} +65 -59
- package/dist/{LexicalLink.prod-DWFgoXHR.mjs → LexicalLink.prod-Bkt9hQAt.mjs} +196 -201
- package/dist/{LexicalList.dev-Ci2iOxFx.mjs → LexicalList.dev-B7VgME-m.mjs} +55 -82
- package/dist/LexicalList.prod-B8c7TDjH.mjs +951 -0
- package/dist/{LexicalMarkdown.dev-C0ZYCyuR.mjs → LexicalMarkdown.dev-B5z9kLbV.mjs} +62 -42
- package/dist/{LexicalMarkdown.prod-0M-Nc-rh.mjs → LexicalMarkdown.prod-wKzw7FFH.mjs} +255 -202
- package/dist/{LexicalRichText.dev-Cnr1kDym.mjs → LexicalRichText.dev-CUd6Li5F.mjs} +399 -120
- package/dist/{LexicalRichText.node-BUJZAiap.mjs → LexicalRichText.node-BKfaQ-CH.mjs} +12 -8
- package/dist/LexicalRichText.prod-SBewjJHx.mjs +708 -0
- package/dist/{LexicalSelection.dev-C4L7l8OB.mjs → LexicalSelection.dev-D27JOCqj.mjs} +48 -17
- package/dist/{LexicalSelection.node-CLKroUMQ.mjs → LexicalSelection.node-DBEwPjBu.mjs} +5 -4
- package/dist/{LexicalSelection.prod-DzFqpTlw.mjs → LexicalSelection.prod-OaYhXHOL.mjs} +101 -92
- package/dist/{LexicalTable.dev-Cc9-zqKa.mjs → LexicalTable.dev-6IFFOAE0.mjs} +590 -259
- package/dist/LexicalTable.prod-2CaLZ7fH.mjs +2524 -0
- package/dist/{LexicalUtils.dev-BRgK0L6G.mjs → LexicalUtils.dev-DJA7J_7v.mjs} +15 -19
- package/dist/{LexicalUtils.node-BVAwOkL4.mjs → LexicalUtils.node-Df9oPTlA.mjs} +6 -6
- package/dist/{LexicalUtils.prod-C1gtvVDP.mjs → LexicalUtils.prod-Bb7V4Ewg.mjs} +155 -159
- package/dist/bin/mxs.mjs +1 -1
- package/dist/esm-CDcJmHkG.mjs +2 -0
- package/dist/{esm-BNu4sUWV.mjs → esm-DLzrv7gD.mjs} +1837 -6015
- package/dist/index.d.mts +57 -62
- package/dist/index.mjs +1 -1
- package/dist/{mxs-CMX2yklg.mjs → mxs-BIRW5Axj.mjs} +13579 -8682
- package/dist/rolldown-runtime-JspESFgx.mjs +35 -0
- package/dist/vendor/litexml/cli.mjs +7043 -6207
- package/dist/vendor/litexml/litexml-html-preview-client.css +80 -47
- package/dist/vendor/litexml/litexml-html-preview-client.js +14422 -10838
- package/dist/vendor/litexml/style.css +6 -2
- package/package.json +23 -23
- package/skills/commands-ai.md +45 -12
- package/skills/overview.md +1 -1
- package/dist/Lexical.prod-CeB9UQuo.mjs +0 -6816
- package/dist/LexicalList.prod-D0xX5d3G.mjs +0 -944
- package/dist/LexicalRichText.prod-BfbMQ9uM.mjs +0 -538
- package/dist/LexicalTable.prod-BgO4nCxy.mjs +0 -2336
- package/dist/esm-jbwcVZth.mjs +0 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import { o as createRectsFromDOMRange, t as $
|
|
3
|
-
//#region ../../node_modules/.pnpm/@lexical+utils@0.
|
|
1
|
+
import { $r as isHTMLElement, A as $getChildCaret, An as IS_APPLE_WEBKIT, At as $rewindSiblingCaret, Br as getRootOwnerDocument, Bt as $splitNode, Ct as $isTextPointCaret, D as $getCaretRange, Dn as IS_ANDROID, E as $getCaretInDirection, Et as $normalizeCaret, F as $getDOMTextNode, Fr as getDOMTextNode, Ft as $setSelection, G as $getSelection, In as IS_IOS, It as $setSelectionFromCaretRange, J as $getSlotFrame, K as $getSiblingCaret, Lt as $setState, M as $getChildCaretOrSelf, Mn as IS_CHROME, Mr as getDOMSelectionPoints, N as $getCollapsedCaretRange, O as $getCaretRangeInDirection, On as IS_ANDROID_CHROME, P as $getDOMSlot, Pn as IS_FIREFOX, Qr as isHTMLAnchorElement, Rn as IS_SAFARI, Rr as getParentElement, S as $fullReconcile, St as $isTextNode, T as $getAdjacentSiblingOrParentSiblingCaret, U as $getPreviousSelection, Ut as CAN_USE_BEFORE_INPUT, W as $getRoot, Wr as isBlockDomNode, Wt as CAN_USE_DOM, X as $getSlotNames, Y as $getSlotHost, Z as $getState, a as $caretRangeFromSelection, b as $findMatchingParent, bt as $isSlotHost, c as $comparePointCaretNext, ci as mergeRegister, et as $insertNodeToNearestRootAtCaret, fi as removeClassNamesFromElement, i as $caretFromPoint, kn as IS_APPLE, kt as $removeTextFromCaretRange, mt as $isRangeSelection, o as $cloneWithProperties, ot as $isElementNode, p as $createParagraphNode, q as $getSlot, rt as $isChildCaret, si as makeStepwiseIterator, ti as isInlineDomNode, ui as registerEventListener, vr as addClassNamesToElement, w as $getAdjacentChildCaret, yt as $isSiblingCaret, zt as $splitAtPointCaretNext } from "./Lexical.node-D6wf2D5M.mjs";
|
|
2
|
+
import { o as createRectsFromDOMRange, t as $isAtEdgeOfElement } from "./LexicalSelection.node-DBEwPjBu.mjs";
|
|
3
|
+
//#region ../../node_modules/.pnpm/@lexical+utils@0.49.0_typescript@6.0.3/node_modules/@lexical/utils/dist/LexicalUtils.dev.mjs
|
|
4
4
|
/**
|
|
5
5
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
6
|
*
|
|
@@ -109,7 +109,7 @@ function mlcPositionNodeOnRange(editor, range, onReposition) {
|
|
|
109
109
|
let parentDOMNode = null;
|
|
110
110
|
let observer = null;
|
|
111
111
|
let lastNodes = [];
|
|
112
|
-
const wrapperNode =
|
|
112
|
+
const wrapperNode = getRootOwnerDocument(editor.getRootElement()).createElement("div");
|
|
113
113
|
wrapperNode.style.position = "relative";
|
|
114
114
|
function position() {
|
|
115
115
|
if (!(rootDOMNode !== null)) formatDevErrorMessage(`Unexpected null rootDOMNode`);
|
|
@@ -120,7 +120,7 @@ function mlcPositionNodeOnRange(editor, range, onReposition) {
|
|
|
120
120
|
let hasRepositioned = false;
|
|
121
121
|
for (let i = 0; i < rects.length; i++) {
|
|
122
122
|
const rect = rects[i];
|
|
123
|
-
const rectNode = lastNodes[i] ||
|
|
123
|
+
const rectNode = lastNodes[i] || getRootOwnerDocument(rootDOMNode).createElement("div");
|
|
124
124
|
const rectNodeStyle = rectNode.style;
|
|
125
125
|
if (rectNodeStyle.position !== "absolute") {
|
|
126
126
|
rectNodeStyle.position = "absolute";
|
|
@@ -152,7 +152,10 @@ function mlcPositionNodeOnRange(editor, range, onReposition) {
|
|
|
152
152
|
}
|
|
153
153
|
lastNodes[i] = rectNode;
|
|
154
154
|
}
|
|
155
|
-
while (lastNodes.length > rects.length)
|
|
155
|
+
while (lastNodes.length > rects.length) {
|
|
156
|
+
const node = lastNodes.pop();
|
|
157
|
+
if (node != null) node.remove();
|
|
158
|
+
}
|
|
156
159
|
if (hasRepositioned) onReposition(lastNodes);
|
|
157
160
|
}
|
|
158
161
|
function stop() {
|
|
@@ -302,12 +305,11 @@ function selectionAlwaysOnDisplay(editor, onReposition) {
|
|
|
302
305
|
return editor.registerRootListener((rootElement) => {
|
|
303
306
|
if (rootElement) {
|
|
304
307
|
const document = rootElement.ownerDocument;
|
|
305
|
-
document
|
|
306
|
-
onSelectionChange();
|
|
307
|
-
return () => {
|
|
308
|
+
const cleanup = mergeRegister(registerEventListener(document, "selectionchange", onSelectionChange), () => {
|
|
308
309
|
if (removeSelectionMark !== null) removeSelectionMark();
|
|
309
|
-
|
|
310
|
-
|
|
310
|
+
});
|
|
311
|
+
onSelectionChange();
|
|
312
|
+
return cleanup;
|
|
311
313
|
}
|
|
312
314
|
});
|
|
313
315
|
}
|
|
@@ -1130,10 +1132,7 @@ function $onEscapeDown($isContainerNode, event) {
|
|
|
1130
1132
|
* container" test stays in one place.
|
|
1131
1133
|
*/
|
|
1132
1134
|
function $isAtStartOfNode(point, node) {
|
|
1133
|
-
|
|
1134
|
-
const first = node.getFirstDescendant() ?? node;
|
|
1135
|
-
const anchorNode = point.getNode();
|
|
1136
|
-
return anchorNode === first || $isElementNode(anchorNode) && anchorNode.getFirstDescendant() === first;
|
|
1135
|
+
return $isAtEdgeOfElement(point, node, "previous");
|
|
1137
1136
|
}
|
|
1138
1137
|
/**
|
|
1139
1138
|
* Whether the collapsed `point` sits at the very end of `node`'s content — on
|
|
@@ -1142,10 +1141,7 @@ function $isAtStartOfNode(point, node) {
|
|
|
1142
1141
|
* of a container" test stays in one place.
|
|
1143
1142
|
*/
|
|
1144
1143
|
function $isAtEndOfNode(point, node) {
|
|
1145
|
-
|
|
1146
|
-
const last = node.getLastDescendant() ?? node;
|
|
1147
|
-
const anchorNode = point.getNode();
|
|
1148
|
-
return anchorNode === last || $isElementNode(anchorNode) && anchorNode.getLastDescendant() === last;
|
|
1144
|
+
return $isAtEdgeOfElement(point, node, "next");
|
|
1149
1145
|
}
|
|
1150
1146
|
//#endregion
|
|
1151
1147
|
export { $descendantsMatching, $dfs, $dfsIterator, $dfsWithSlots, $dfsWithSlotsIterator, $filter, $findMatchingParent, $firstToLastIterator, $getAdjacentCaret, $getAdjacentSiblingOrParentSiblingCaret, $getDepth, $getNearestBlockElementAncestorOrThrow, $getNearestNodeOfType, $getNextRightPreorderNode, $getNextSiblingOrParentSibling, $handleIndentAndOutdent, $insertFirst, $insertNodeIntoLeaf, $insertNodeToNearestRoot, $insertNodeToNearestRootAtCaret, $isAtEndOfNode, $isAtStartOfNode, $isBlockFullySelected, $isEditorIsNestedEditor, $lastToFirstIterator, $onEscapeDown, $onEscapeUp, $restoreEditorState, $reverseDfs, $reverseDfsIterator, $reverseDfsWithSlots, $reverseDfsWithSlotsIterator, $splitNode, $unwrapAndFilterDescendants, $unwrapNode, $wrapNodeInElement, CAN_USE_BEFORE_INPUT, CAN_USE_DOM, IS_ANDROID, IS_ANDROID_CHROME, IS_APPLE, IS_APPLE_WEBKIT, IS_CHROME, IS_FIREFOX, IS_IOS, IS_SAFARI, addClassNamesToElement, calculateZoomLevel, dedupeSelectionRects, eventFiles, getScrollParent, isBlockDomNode, isHTMLAnchorElement, isHTMLElement, isInlineDomNode, isMimeType, makeStateWrapper, markSelection, mediaFileReader, mergeRegister, objectKlassEquals, mlcPositionNodeOnRange as positionNodeOnRange, registerNestedElementResolver, removeClassNamesFromElement, selectionAlwaysOnDisplay };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/@lexical+utils@0.
|
|
1
|
+
//#region ../../node_modules/.pnpm/@lexical+utils@0.49.0_typescript@6.0.3/node_modules/@lexical/utils/dist/LexicalUtils.node.mjs
|
|
2
2
|
/**
|
|
3
3
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
4
4
|
*
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*
|
|
8
8
|
*/
|
|
9
|
-
const mod = await (process.env.NODE_ENV !== "production" ? import("./LexicalUtils.dev-
|
|
9
|
+
const mod = await (process.env.NODE_ENV !== "production" ? import("./LexicalUtils.dev-DJA7J_7v.mjs") : import("./LexicalUtils.prod-Bb7V4Ewg.mjs"));
|
|
10
10
|
const $descendantsMatching = mod.$descendantsMatching;
|
|
11
|
-
mod.$dfs;
|
|
11
|
+
const $dfs = mod.$dfs;
|
|
12
12
|
mod.$dfsIterator;
|
|
13
|
-
|
|
13
|
+
mod.$dfsWithSlots;
|
|
14
14
|
mod.$dfsWithSlotsIterator;
|
|
15
15
|
mod.$filter;
|
|
16
16
|
mod.$findMatchingParent;
|
|
@@ -47,7 +47,7 @@ mod.CAN_USE_BEFORE_INPUT;
|
|
|
47
47
|
mod.CAN_USE_DOM;
|
|
48
48
|
mod.IS_ANDROID;
|
|
49
49
|
mod.IS_ANDROID_CHROME;
|
|
50
|
-
|
|
50
|
+
mod.IS_APPLE;
|
|
51
51
|
mod.IS_APPLE_WEBKIT;
|
|
52
52
|
mod.IS_CHROME;
|
|
53
53
|
mod.IS_FIREFOX;
|
|
@@ -73,4 +73,4 @@ mod.registerNestedElementResolver;
|
|
|
73
73
|
mod.removeClassNamesFromElement;
|
|
74
74
|
const selectionAlwaysOnDisplay = mod.selectionAlwaysOnDisplay;
|
|
75
75
|
//#endregion
|
|
76
|
-
export { $handleIndentAndOutdent as a, $isBlockFullySelected as c, $unwrapAndFilterDescendants as d,
|
|
76
|
+
export { $handleIndentAndOutdent as a, $isBlockFullySelected as c, $unwrapAndFilterDescendants as d, calculateZoomLevel as f, selectionAlwaysOnDisplay as h, $getNearestNodeOfType as i, $onEscapeDown as l, objectKlassEquals as m, $dfs as n, $insertFirst as o, eventFiles as p, $getNearestBlockElementAncestorOrThrow as r, $insertNodeToNearestRoot as s, $descendantsMatching as t, $onEscapeUp as u };
|