@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 { $r as isHTMLElement, $t as COMMAND_PRIORITY_LOW, A as $getChildCaret, At as $rewindSiblingCaret, B as $getNodeByKey, Et as $normalizeCaret, G as $getSelection, Hr as getStyleObjectFromCSS, I as $getDocument, K as $getSiblingCaret, Kn as KEY_ARROW_UP_COMMAND, Lr as getNearestEditorFromDOMNode, Mt as $setDirectionFromDOM, Nt as $setFormatFromDOM, Or as getActiveElement, Pt as $setPointFromCaret, St as $isTextNode, Tr as defineExtension, Un as KEY_ARROW_DOWN_COMMAND, Wn as KEY_ARROW_LEFT_COMMAND, Xn as KEY_ESCAPE_COMMAND, Yt as COMMAND_PRIORITY_BEFORE_EDITOR, Zn as KEY_SPACE_COMMAND, _r as TextNode, b as $findMatchingParent, br as configExtension, ci as mergeRegister, d as $createLineBreakNode, di as registerEventListeners, et as $insertNodeToNearestRootAtCaret, fi as removeClassNamesFromElement, fr as SKIP_DOM_SELECTION_TAG, gt as $isRootOrShadowRoot, hn as ElementNode,
|
|
3
|
-
import { a as $isBlockLevel, c as CoreImportExtension, g as defineImportRule, l as DOMImportExtension, o as $propagateTextAlignToBlockChildren, v as isElementOfTag, y as sel } from "./LexicalHtml.node-
|
|
4
|
-
import { f as calculateZoomLevel, i as $getNearestNodeOfType } from "./LexicalUtils.node-
|
|
5
|
-
//#region ../../node_modules/.pnpm/@lexical+list@0.
|
|
1
|
+
import { f as namedSignals, l as effect } from "./LexicalExtension.node-5OymZQfy.mjs";
|
|
2
|
+
import { $r as isHTMLElement, $t as COMMAND_PRIORITY_LOW, A as $getChildCaret, At as $rewindSiblingCaret, B as $getNodeByKey, Et as $normalizeCaret, G as $getSelection, Hr as getStyleObjectFromCSS, I as $getDocument, K as $getSiblingCaret, Kn as KEY_ARROW_UP_COMMAND, Lr as getNearestEditorFromDOMNode, Mt as $setDirectionFromDOM, Nt as $setFormatFromDOM, Or as getActiveElement, Pt as $setPointFromCaret, St as $isTextNode, Tr as defineExtension, Un as KEY_ARROW_DOWN_COMMAND, Wn as KEY_ARROW_LEFT_COMMAND, Xn as KEY_ESCAPE_COMMAND, Yt as COMMAND_PRIORITY_BEFORE_EDITOR, Zn as KEY_SPACE_COMMAND, _r as TextNode, b as $findMatchingParent, br as configExtension, ci as mergeRegister, d as $createLineBreakNode, di as registerEventListeners, et as $insertNodeToNearestRootAtCaret, fi as removeClassNamesFromElement, fr as SKIP_DOM_SELECTION_TAG, gt as $isRootOrShadowRoot, hn as ElementNode, l as $copyNode, li as normalizeClassNames, lt as $isLeafNode, mi as setDOMStyleFromCSS, mr as SKIP_SELECTION_FOCUS_TAG, mt as $isRangeSelection, n as $applyNodeReplacement, ot as $isElementNode, p as $createParagraphNode, pi as safeCast, pt as $isParagraphNode, qn as KEY_BACKSPACE_COMMAND, t as $addUpdateTag, ui as registerEventListener, v as $createTextNode, vr as addClassNamesToElement, wn as INSERT_PARAGRAPH_COMMAND, xr as createCommand, yr as buildImportMap, z as $getNearestNodeFromDOMNode } from "./Lexical.node-D6wf2D5M.mjs";
|
|
3
|
+
import { a as $isBlockLevel, c as CoreImportExtension, g as defineImportRule, l as DOMImportExtension, o as $propagateTextAlignToBlockChildren, v as isElementOfTag, y as sel } from "./LexicalHtml.node-DpVNt7It.mjs";
|
|
4
|
+
import { f as calculateZoomLevel, i as $getNearestNodeOfType } from "./LexicalUtils.node-Df9oPTlA.mjs";
|
|
5
|
+
//#region ../../node_modules/.pnpm/@lexical+list@0.49.0_typescript@6.0.3/node_modules/@lexical/list/dist/LexicalList.dev.mjs
|
|
6
6
|
/**
|
|
7
7
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
8
8
|
*
|
|
@@ -80,7 +80,7 @@ function $getAllListItems(node) {
|
|
|
80
80
|
* @param node - The node to be checked.
|
|
81
81
|
* @returns true if the node is a ListItemNode and has a ListNode child, false otherwise.
|
|
82
82
|
*/
|
|
83
|
-
function isNestedListNode(node) {
|
|
83
|
+
function $isNestedListNode(node) {
|
|
84
84
|
return $isListItemNode(node) && $isListNode(node.getFirstChild());
|
|
85
85
|
}
|
|
86
86
|
/**
|
|
@@ -227,7 +227,7 @@ function $createListOrMerge(node, listType) {
|
|
|
227
227
|
function mergeLists(list1, list2) {
|
|
228
228
|
const listItem1 = list1.getLastChild();
|
|
229
229
|
const listItem2 = list2.getFirstChild();
|
|
230
|
-
if (listItem1 && listItem2 && isNestedListNode(listItem1) && isNestedListNode(listItem2)) {
|
|
230
|
+
if (listItem1 && listItem2 && $isNestedListNode(listItem1) && $isNestedListNode(listItem2)) {
|
|
231
231
|
mergeLists(listItem1.getFirstChild(), listItem2.getFirstChild());
|
|
232
232
|
listItem2.remove();
|
|
233
233
|
}
|
|
@@ -303,11 +303,11 @@ function mergeNextSiblingListIfSameType(list) {
|
|
|
303
303
|
*/
|
|
304
304
|
function $handleIndent(listItemNode) {
|
|
305
305
|
const removed = /* @__PURE__ */ new Set();
|
|
306
|
-
if (isNestedListNode(listItemNode) || removed.has(listItemNode.getKey())) return;
|
|
306
|
+
if ($isNestedListNode(listItemNode) || removed.has(listItemNode.getKey())) return;
|
|
307
307
|
const parent = listItemNode.getParent();
|
|
308
308
|
const nextSibling = listItemNode.getNextSibling();
|
|
309
309
|
const previousSibling = listItemNode.getPreviousSibling();
|
|
310
|
-
if (isNestedListNode(nextSibling) && isNestedListNode(previousSibling)) {
|
|
310
|
+
if ($isNestedListNode(nextSibling) && $isNestedListNode(previousSibling)) {
|
|
311
311
|
const innerList = previousSibling.getFirstChild();
|
|
312
312
|
if ($isListNode(innerList)) {
|
|
313
313
|
innerList.append(listItemNode);
|
|
@@ -318,13 +318,13 @@ function $handleIndent(listItemNode) {
|
|
|
318
318
|
removed.add(nextSibling.getKey());
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
|
-
} else if (isNestedListNode(nextSibling)) {
|
|
321
|
+
} else if ($isNestedListNode(nextSibling)) {
|
|
322
322
|
const innerList = nextSibling.getFirstChild();
|
|
323
323
|
if ($isListNode(innerList)) {
|
|
324
324
|
const firstChild = innerList.getFirstChild();
|
|
325
325
|
if (firstChild !== null) firstChild.insertBefore(listItemNode);
|
|
326
326
|
}
|
|
327
|
-
} else if (isNestedListNode(previousSibling)) {
|
|
327
|
+
} else if ($isNestedListNode(previousSibling)) {
|
|
328
328
|
const innerList = previousSibling.getFirstChild();
|
|
329
329
|
if ($isListNode(innerList)) innerList.append(listItemNode);
|
|
330
330
|
} else if ($isListNode(parent)) {
|
|
@@ -344,7 +344,7 @@ function $handleIndent(listItemNode) {
|
|
|
344
344
|
* @param listItemNode - The ListItemNode to remove the indent (outdent).
|
|
345
345
|
*/
|
|
346
346
|
function $handleOutdent(listItemNode) {
|
|
347
|
-
if (isNestedListNode(listItemNode)) return;
|
|
347
|
+
if ($isNestedListNode(listItemNode)) return;
|
|
348
348
|
const parentList = listItemNode.getParent();
|
|
349
349
|
const grandparentListItem = parentList ? parentList.getParent() : void 0;
|
|
350
350
|
if ($isListNode(grandparentListItem ? grandparentListItem.getParent() : void 0) && $isListItemNode(grandparentListItem) && $isListNode(parentList)) {
|
|
@@ -508,7 +508,7 @@ var ListItemNode = class extends ElementNode {
|
|
|
508
508
|
if (formatType) element.style.textAlign = formatType;
|
|
509
509
|
const direction = this.getDirection();
|
|
510
510
|
if (direction) element.dir = direction;
|
|
511
|
-
if (isNestedListNode(this)) return {
|
|
511
|
+
if ($isNestedListNode(this)) return {
|
|
512
512
|
after(containerElement) {
|
|
513
513
|
if (isHTMLElement(containerElement)) {
|
|
514
514
|
const prevSibling = containerElement.previousElementSibling;
|
|
@@ -593,7 +593,7 @@ var ListItemNode = class extends ElementNode {
|
|
|
593
593
|
const prevSibling = this.getPreviousSibling();
|
|
594
594
|
const nextSibling = this.getNextSibling();
|
|
595
595
|
super.remove(preserveEmptyParent);
|
|
596
|
-
if (prevSibling && nextSibling && isNestedListNode(prevSibling) && isNestedListNode(nextSibling)) {
|
|
596
|
+
if (prevSibling && nextSibling && $isNestedListNode(prevSibling) && $isNestedListNode(nextSibling)) {
|
|
597
597
|
mergeLists(prevSibling.getFirstChild(), nextSibling.getFirstChild());
|
|
598
598
|
nextSibling.remove();
|
|
599
599
|
}
|
|
@@ -608,7 +608,7 @@ var ListItemNode = class extends ElementNode {
|
|
|
608
608
|
return newElement;
|
|
609
609
|
}
|
|
610
610
|
collapseAtStart(selection) {
|
|
611
|
-
if (isNestedListNode(this)) return false;
|
|
611
|
+
if ($isNestedListNode(this)) return false;
|
|
612
612
|
const listNode = this.getParentOrThrow();
|
|
613
613
|
if ($isListItemNode(listNode.getParentOrThrow())) {
|
|
614
614
|
$handleOutdent(this);
|
|
@@ -1403,10 +1403,6 @@ function registerList(editor, options) {
|
|
|
1403
1403
|
}, COMMAND_PRIORITY_LOW), editor.registerCommand(INSERT_PARAGRAPH_COMMAND, () => {
|
|
1404
1404
|
return $handleListInsertParagraph(!!(options && options.restoreNumbering));
|
|
1405
1405
|
}, COMMAND_PRIORITY_LOW), editor.registerCommand(KEY_BACKSPACE_COMMAND, (event) => {
|
|
1406
|
-
if ($handleListItemBackspaceAdjacentToDecorator()) {
|
|
1407
|
-
event.preventDefault();
|
|
1408
|
-
return true;
|
|
1409
|
-
}
|
|
1410
1406
|
const selection = $getSelection();
|
|
1411
1407
|
if (!$isRangeSelection(selection) || !selection.isCollapsed()) return false;
|
|
1412
1408
|
const { anchor } = selection;
|
|
@@ -1490,34 +1486,6 @@ function $findChildrenEndListItemNode(listItemNode) {
|
|
|
1490
1486
|
return current;
|
|
1491
1487
|
}
|
|
1492
1488
|
/**
|
|
1493
|
-
* #5072: When the first list item of a top-level list is adjacent to a
|
|
1494
|
-
* non-isolated decorator that is either keyboard-selectable or a block, and
|
|
1495
|
-
* the caret sits at the start of that list item, Backspace previously fell
|
|
1496
|
-
* through `deleteCharacter`'s merge-block path and deleted the decorator
|
|
1497
|
-
* outright. Convert the first list item into a paragraph inserted before the
|
|
1498
|
-
* list instead, keeping the decorator and the list item's content intact.
|
|
1499
|
-
*/
|
|
1500
|
-
function $handleListItemBackspaceAdjacentToDecorator() {
|
|
1501
|
-
const selection = $getSelection();
|
|
1502
|
-
if (!$isRangeSelection(selection) || !selection.isCollapsed() || selection.anchor.offset !== 0) return false;
|
|
1503
|
-
const anchorNode = selection.anchor.getNode();
|
|
1504
|
-
const listItem = $findMatchingParent(anchorNode, $isListItemNode);
|
|
1505
|
-
if (!$isListItemNode(listItem)) return false;
|
|
1506
|
-
const firstDescendant = listItem.getFirstDescendant();
|
|
1507
|
-
if (firstDescendant === null) return false;
|
|
1508
|
-
if (!listItem.is(anchorNode) && !firstDescendant.is(anchorNode)) return false;
|
|
1509
|
-
const list = listItem.getParent();
|
|
1510
|
-
if (!$isListNode(list) || !listItem.is(list.getFirstChild())) return false;
|
|
1511
|
-
const previousBlock = list.getPreviousSibling();
|
|
1512
|
-
if (!$isDecoratorNode(previousBlock) || previousBlock.isIsolated() || !(previousBlock.isKeyboardSelectable() || !previousBlock.isInline())) return false;
|
|
1513
|
-
const paragraph = $createParagraphNode().append(...listItem.getChildren());
|
|
1514
|
-
list.insertBefore(paragraph);
|
|
1515
|
-
listItem.remove();
|
|
1516
|
-
if (list.isEmpty()) list.remove();
|
|
1517
|
-
paragraph.selectStart();
|
|
1518
|
-
return true;
|
|
1519
|
-
}
|
|
1520
|
-
/**
|
|
1521
1489
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
1522
1490
|
*
|
|
1523
1491
|
* This source code is licensed under the MIT license found in the
|