@mx-space/cli 0.14.0 → 0.14.2
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-DTxuYHmG.mjs → Lexical.dev-CtGmYDoh.mjs} +770 -271
- package/dist/{Lexical.node-BlCLnfA6.mjs → Lexical.node-8sRFmq2X.mjs} +15 -5
- package/dist/Lexical.prod-D-VfeKDz.mjs +7200 -0
- package/dist/{LexicalClipboard.dev-CdFkLR_D.mjs → LexicalClipboard.dev-CzQ15z6E.mjs} +6 -6
- package/dist/{LexicalClipboard.node-ktUajxsv.mjs → LexicalClipboard.node-D4gMGws6.mjs} +2 -2
- package/dist/{LexicalClipboard.prod-DliyLofW.mjs → LexicalClipboard.prod-CltkQpzS.mjs} +10 -8
- package/dist/{LexicalCodeCore.dev-CL9tHWJX.mjs → LexicalCodeCore.dev-DkYBZRGB.mjs} +11 -9
- package/dist/{LexicalCodeCore.prod-BoMSJc29.mjs → LexicalCodeCore.prod-COc3_QL8.mjs} +178 -167
- package/dist/{LexicalDragon.dev-CqW7Aq5H.mjs → LexicalDragon.dev-Dv5_WUae.mjs} +3 -3
- package/dist/{LexicalDragon.node-DLXctJyy.mjs → LexicalDragon.node-DgjrmWkd.mjs} +2 -2
- package/dist/{LexicalDragon.prod-DHI3T6n5.mjs → LexicalDragon.prod-DnpbDe-_.mjs} +5 -4
- package/dist/{LexicalExtension.dev-BP-18zns.mjs → LexicalExtension.dev-JMH_6-OZ.mjs} +73 -52
- package/dist/{LexicalExtension.node-BWH6xbzG.mjs → LexicalExtension.node-BUozzx4t.mjs} +4 -2
- package/dist/{LexicalExtension.prod-Cs6OgrDn.mjs → LexicalExtension.prod-UiyDgmou.mjs} +370 -347
- package/dist/{LexicalHeadless.dev-DJp__UcP.mjs → LexicalHeadless.dev-BfLGciiX.mjs} +2 -2
- package/dist/{LexicalHeadless.prod-o0v9cIu5.mjs → LexicalHeadless.prod-CWF7edmQ.mjs} +2 -2
- package/dist/{LexicalHtml.dev-DoymwFpG.mjs → LexicalHtml.dev-D5EF5PGW.mjs} +13 -11
- package/dist/{LexicalHtml.node-CVkbWtUA.mjs → LexicalHtml.node-BYbzHNVe.mjs} +4 -4
- package/dist/{LexicalHtml.prod-C2b3z99k.mjs → LexicalHtml.prod-D_FfkvVD.mjs} +330 -299
- package/dist/{LexicalLink.dev-7cgLOLIe.mjs → LexicalLink.dev-D3Pgh6ik.mjs} +53 -23
- package/dist/{LexicalLink.prod-DWFgoXHR.mjs → LexicalLink.prod-XZoAYVYD.mjs} +217 -198
- package/dist/{LexicalList.dev-Ci2iOxFx.mjs → LexicalList.dev-B5d3ObhB.mjs} +49 -44
- package/dist/LexicalList.prod-OQDpVAEb.mjs +967 -0
- package/dist/{LexicalMarkdown.dev-C0ZYCyuR.mjs → LexicalMarkdown.dev-BkM8G3DG.mjs} +61 -42
- package/dist/{LexicalMarkdown.prod-0M-Nc-rh.mjs → LexicalMarkdown.prod-DcVXCex6.mjs} +254 -202
- package/dist/{LexicalRichText.dev-Cnr1kDym.mjs → LexicalRichText.dev-DppD7IrA.mjs} +337 -52
- package/dist/{LexicalRichText.node-BUJZAiap.mjs → LexicalRichText.node-CPSn7dkg.mjs} +12 -8
- package/dist/LexicalRichText.prod-h7JPxFNp.mjs +718 -0
- package/dist/{LexicalSelection.dev-C4L7l8OB.mjs → LexicalSelection.dev-CD0SLbxP.mjs} +48 -17
- package/dist/{LexicalSelection.node-CLKroUMQ.mjs → LexicalSelection.node-CGlJgUlZ.mjs} +5 -4
- package/dist/{LexicalSelection.prod-DzFqpTlw.mjs → LexicalSelection.prod-DbVZN5AV.mjs} +101 -92
- package/dist/{LexicalTable.dev-Cc9-zqKa.mjs → LexicalTable.dev-D0HU14UV.mjs} +340 -138
- package/dist/LexicalTable.prod-BcPNSrxP.mjs +2468 -0
- package/dist/{LexicalUtils.dev-BRgK0L6G.mjs → LexicalUtils.dev-iKy_TrRT.mjs} +15 -19
- package/dist/{LexicalUtils.node-BVAwOkL4.mjs → LexicalUtils.node-CIgMS8cG.mjs} +6 -6
- package/dist/{LexicalUtils.prod-C1gtvVDP.mjs → LexicalUtils.prod-DIAsKJzu.mjs} +155 -159
- package/dist/bin/mxs.mjs +1 -1
- package/dist/esm-CH7CrOvh.mjs +2 -0
- package/dist/{esm-BNu4sUWV.mjs → esm-CwXl1N0a.mjs} +1801 -6013
- package/dist/index.d.mts +57 -62
- package/dist/index.mjs +1 -1
- package/dist/{mxs-BUqt-N3N.mjs → mxs-iW9DgqSZ.mjs} +14960 -9235
- package/dist/rolldown-runtime-JspESFgx.mjs +35 -0
- package/dist/vendor/litexml/cli.mjs +6693 -5762
- package/dist/vendor/litexml/litexml-html-preview-client.js +11912 -8698
- package/package.json +31 -30
- package/LICENSE +0 -33
- 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,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
//#region ../../node_modules/.pnpm/@lexical+headless@0.
|
|
1
|
+
import { Sr as createEditor } from "./Lexical.node-8sRFmq2X.mjs";
|
|
2
|
+
//#region ../../node_modules/.pnpm/@lexical+headless@0.48.0_typescript@6.0.3/node_modules/@lexical/headless/dist/LexicalHeadless.dev.mjs
|
|
3
3
|
/**
|
|
4
4
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
5
5
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
//#region ../../node_modules/.pnpm/@lexical+headless@0.
|
|
1
|
+
import { Sr as createEditor } from "./Lexical.node-8sRFmq2X.mjs";
|
|
2
|
+
//#region ../../node_modules/.pnpm/@lexical+headless@0.48.0_typescript@6.0.3/node_modules/@lexical/headless/dist/LexicalHeadless.prod.mjs
|
|
3
3
|
/**
|
|
4
4
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
5
5
|
*
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as HorizontalRuleNode, d as getPeerDependencyFromEditor, i as HorizontalRuleExtension, n as $getExtensionOutput, t as $createHorizontalRuleNode, u as getKnownTypesAndNodes } from "./LexicalExtension.node-
|
|
2
|
-
import {
|
|
3
|
-
import { a as $sliceSelectedTextNodeContent } from "./LexicalSelection.node-
|
|
4
|
-
import {
|
|
5
|
-
//#region ../../node_modules/.pnpm/@lexical+html@0.
|
|
1
|
+
import { a as HorizontalRuleNode, d as getPeerDependencyFromEditor, i as HorizontalRuleExtension, n as $getExtensionOutput, t as $createHorizontalRuleNode, u as getKnownTypesAndNodes } from "./LexicalExtension.node-BUozzx4t.mjs";
|
|
2
|
+
import { $r as isHTMLElement, Bn as IS_SUBSCRIPT, C as $generateNodesFromRawText, Cr as createState, Fn as IS_HIGHLIGHT, Hn as IS_UNDERLINE, Ht as ArtificialNode__DO_NOT_USE, I as $getDocument, J as $getSlotFrame, Kr as isDOMDocumentNode, L as $getEditor, Ln as IS_ITALIC, Mt as $setDirectionFromDOM, Nn as IS_CODE, Nt as $setFormatFromDOM, R as $getEditorDOMRenderConfig, S as $fullReconcile, St as $isTextNode, Tr as defineExtension, Vn as IS_SUPERSCRIPT, W as $getRoot, Wr as isBlockDomNode, Xr as isDocumentFragment, Yr as isDOMTextNode, _i as shallowMergeConfig, br as configExtension, d as $createLineBreakNode, dt as $isLineBreakNode, ft as $isNodeSelection, gi as setNodeIndentFromDOM, gt as $isRootOrShadowRoot, ii as isOnlyChildInBlockNode, it as $isDecoratorNode, jn as IS_BOLD, mt as $isRangeSelection, ni as isLastChildInBlockNode, nt as $isBlockElementNode, oi as iterStaticNodeConfigChain, ot as $isElementNode, p as $createParagraphNode, r as $assumeActiveEditor, sn as DEFAULT_EDITOR_DOM_CONFIG, sr as RootNode, ti as isInlineDomNode, ut as $isLexicalNode, v as $createTextNode, zn as IS_STRIKETHROUGH, zr as getRegisteredSubtypeMap } from "./Lexical.node-8sRFmq2X.mjs";
|
|
3
|
+
import { a as $sliceSelectedTextNodeContent } from "./LexicalSelection.node-CGlJgUlZ.mjs";
|
|
4
|
+
import { m as objectKlassEquals } from "./LexicalUtils.node-CIgMS8cG.mjs";
|
|
5
|
+
//#region ../../node_modules/.pnpm/@lexical+html@0.48.0_typescript@6.0.3/node_modules/@lexical/html/dist/LexicalHtml.dev.mjs
|
|
6
6
|
/**
|
|
7
7
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
8
8
|
*
|
|
@@ -708,7 +708,7 @@ const DOMRenderExtension = /* @__PURE__ */ defineExtension({
|
|
|
708
708
|
overrides: []
|
|
709
709
|
},
|
|
710
710
|
html: { export: /* @__PURE__ */ new Map([[RootNode, () => {
|
|
711
|
-
const element =
|
|
711
|
+
const element = $getDocument().createElement("div");
|
|
712
712
|
element.role = "textbox";
|
|
713
713
|
return { element };
|
|
714
714
|
}]]) },
|
|
@@ -2177,8 +2177,9 @@ const DOMImportExtension = /* @__PURE__ */ defineExtension({
|
|
|
2177
2177
|
const configPreprocess = config.preprocess;
|
|
2178
2178
|
return {
|
|
2179
2179
|
$generateNodesFromDOM: (dom, options) => {
|
|
2180
|
-
const
|
|
2181
|
-
const
|
|
2180
|
+
const parentRecord = getContextRecord(DOMImportContextSymbol, editor) || defaults;
|
|
2181
|
+
const fromOpts = options && options.context ? contextFromPairs(options.context, parentRecord) : parentRecord;
|
|
2182
|
+
const sessionRecord = fromOpts !== void 0 && fromOpts !== parentRecord ? fromOpts : Object.create(parentRecord || null);
|
|
2182
2183
|
const session = new ImportSessionImpl(sessionRecord);
|
|
2183
2184
|
const preprocessCtx = { session };
|
|
2184
2185
|
$runPreprocessStack(options && options.preprocess ? [...configPreprocess, ...options.preprocess] : configPreprocess, dom, preprocessCtx);
|
|
@@ -2339,7 +2340,8 @@ function $generateDOMFromRoot(container, root = $getRoot()) {
|
|
|
2339
2340
|
return $withRenderContext([contextValue(RenderContextExport, true), contextValue(RenderContextRoot, true)], editor)(() => {
|
|
2340
2341
|
const selection = null;
|
|
2341
2342
|
const domConfig = $getSessionDOMRenderConfig(editor);
|
|
2342
|
-
|
|
2343
|
+
const parentElementAppend = container.append.bind(container);
|
|
2344
|
+
$appendNodesToHTML(editor, root, parentElementAppend, selection, domConfig);
|
|
2343
2345
|
return container;
|
|
2344
2346
|
});
|
|
2345
2347
|
}
|
|
@@ -2356,7 +2358,7 @@ function $generateDOMFromRoot(container, root = $getRoot()) {
|
|
|
2356
2358
|
function $generateHtmlFromNodes(editor, selection = null) {
|
|
2357
2359
|
if (typeof document === "undefined" || typeof window === "undefined" && typeof global.window === "undefined") formatDevErrorMessage(`To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom or use withDOM from @lexical/headless/dom before calling this function.`);
|
|
2358
2360
|
$assumeActiveEditor(editor);
|
|
2359
|
-
return $generateDOMFromNodes(
|
|
2361
|
+
return $generateDOMFromNodes($getDocument().createElement("div"), selection, editor).innerHTML;
|
|
2360
2362
|
}
|
|
2361
2363
|
function $appendNodesToHTML(editor, currentNode, parentElementAppend, selection = null, domConfig = $getEditorDOMRenderConfig(editor)) {
|
|
2362
2364
|
let shouldInclude = domConfig.$shouldInclude(currentNode, selection, editor);
|
|
@@ -2365,7 +2367,7 @@ function $appendNodesToHTML(editor, currentNode, parentElementAppend, selection
|
|
|
2365
2367
|
if (selection !== null && $isTextNode(currentNode)) target = $sliceSelectedTextNodeContent(selection, currentNode, "clone");
|
|
2366
2368
|
const { element, after, append, $getChildNodes } = domConfig.$exportDOM(target, editor);
|
|
2367
2369
|
if (!element) return false;
|
|
2368
|
-
const fragment =
|
|
2370
|
+
const fragment = $getDocument().createDocumentFragment();
|
|
2369
2371
|
const children = $getChildNodes ? $getChildNodes() : $isElementNode(target) ? target.getChildren() : [];
|
|
2370
2372
|
const childSelection = shouldInclude && $isNodeSelection(selection) && $isElementNode(currentNode) ? null : selection;
|
|
2371
2373
|
const fragmentAppend = fragment.append.bind(fragment);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/@lexical+html@0.
|
|
1
|
+
//#region ../../node_modules/.pnpm/@lexical+html@0.48.0_typescript@6.0.3/node_modules/@lexical/html/dist/LexicalHtml.node.mjs
|
|
2
2
|
/**
|
|
3
3
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
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("./LexicalHtml.dev-
|
|
9
|
+
const mod = await (process.env.NODE_ENV !== "production" ? import("./LexicalHtml.dev-D5EF5PGW.mjs") : import("./LexicalHtml.prod-D_FfkvVD.mjs"));
|
|
10
10
|
mod.$appendNodeToHTML;
|
|
11
11
|
const $distributeInlineWrapper = mod.$distributeInlineWrapper;
|
|
12
12
|
mod.$generateDOMFromNodes;
|
|
@@ -24,7 +24,7 @@ mod.$setRenderContextValue;
|
|
|
24
24
|
mod.$updateRenderContextValue;
|
|
25
25
|
mod.$withImportContext;
|
|
26
26
|
mod.$withRenderContext;
|
|
27
|
-
mod.BlockSchema;
|
|
27
|
+
const BlockSchema = mod.BlockSchema;
|
|
28
28
|
const CoreImportExtension = mod.CoreImportExtension;
|
|
29
29
|
mod.CoreImportRules;
|
|
30
30
|
const DOMImportExtension = mod.DOMImportExtension;
|
|
@@ -55,4 +55,4 @@ const isElementOfTag = mod.isElementOfTag;
|
|
|
55
55
|
mod.parseSelector;
|
|
56
56
|
const sel = mod.sel;
|
|
57
57
|
//#endregion
|
|
58
|
-
export {
|
|
58
|
+
export { defineOverlayRules as _, $isBlockLevel as a, CoreImportExtension as c, ImportSource as d, ImportSourceDataTransfer as f, defineImportRule as g, contextValue as h, $generateNodesFromDOMViaExtension as i, DOMImportExtension as l, ImportTextStyle as m, $generateHtmlFromNodes as n, $propagateTextAlignToBlockChildren as o, ImportTextFormat as p, $generateNodesFromDOM as r, BlockSchema as s, $distributeInlineWrapper as t, ImportOverlays as u, isElementOfTag as v, sel as y };
|