@superdoc-dev/mcp 0.3.0-next.85 → 0.3.0-next.86
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/index.js +159 -32
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -51891,7 +51891,7 @@ var init_remark_gfm_BhnWr3yf_es = __esm(() => {
|
|
|
51891
51891
|
emptyOptions2 = {};
|
|
51892
51892
|
});
|
|
51893
51893
|
|
|
51894
|
-
// ../../packages/superdoc/dist/chunks/SuperConverter-
|
|
51894
|
+
// ../../packages/superdoc/dist/chunks/SuperConverter-5Idv4fhC.es.js
|
|
51895
51895
|
function getExtensionConfigField(extension$1, field, context = { name: "" }) {
|
|
51896
51896
|
const fieldValue = extension$1.config[field];
|
|
51897
51897
|
if (typeof fieldValue === "function")
|
|
@@ -70340,6 +70340,15 @@ function calculateResolvedParagraphProperties(editor, node2, $pos) {
|
|
|
70340
70340
|
resolvedParagraphPropertiesCache.set(node2, paragraphProperties);
|
|
70341
70341
|
return paragraphProperties;
|
|
70342
70342
|
}
|
|
70343
|
+
function resolveHypotheticalParagraphProperties(editor, $pos, inlineProps) {
|
|
70344
|
+
if (!editor?.converter)
|
|
70345
|
+
return inlineProps;
|
|
70346
|
+
const tableStyleId = findParentNodeClosestToPos($pos, (node2) => node2.type.name === "table")?.node.attrs.tableStyleId || null;
|
|
70347
|
+
return resolveParagraphProperties({
|
|
70348
|
+
translatedNumbering: editor.converter.translatedNumbering,
|
|
70349
|
+
translatedLinkedStyles: editor.converter.translatedLinkedStyles
|
|
70350
|
+
}, inlineProps, tableStyleId);
|
|
70351
|
+
}
|
|
70343
70352
|
function getRunContext($pos) {
|
|
70344
70353
|
let paragraphNode = null;
|
|
70345
70354
|
let paragraphDepth = -1;
|
|
@@ -105335,7 +105344,7 @@ var isRegExp = (value) => {
|
|
|
105335
105344
|
state.kern = kernNode.attributes["w:val"];
|
|
105336
105345
|
}
|
|
105337
105346
|
}, SuperConverter;
|
|
105338
|
-
var
|
|
105347
|
+
var init_SuperConverter_5Idv4fhC_es = __esm(() => {
|
|
105339
105348
|
init_rolldown_runtime_Bg48TavK_es();
|
|
105340
105349
|
init_jszip_C49i9kUs_es();
|
|
105341
105350
|
init_xml_js_CqGKpaft_es();
|
|
@@ -143204,7 +143213,7 @@ var init_SuperConverter_B1Huzhur_es = __esm(() => {
|
|
|
143204
143213
|
};
|
|
143205
143214
|
});
|
|
143206
143215
|
|
|
143207
|
-
// ../../packages/superdoc/dist/chunks/create-headless-toolbar-
|
|
143216
|
+
// ../../packages/superdoc/dist/chunks/create-headless-toolbar-CEUTigkM.es.js
|
|
143208
143217
|
function parseSizeUnit(val = "0") {
|
|
143209
143218
|
const length = val.toString() || "0";
|
|
143210
143219
|
const value = Number.parseFloat(length);
|
|
@@ -145457,6 +145466,27 @@ var CSS_DIMENSION_REGEX, DOM_SIZE_UNITS, Extension = class Extension2 {
|
|
|
145457
145466
|
}, getCurrentParagraphJustification = (context) => {
|
|
145458
145467
|
const paragraphProperties = getCurrentResolvedParagraphProperties(context);
|
|
145459
145468
|
return mapStoredJustificationToDisplayAlignment(paragraphProperties?.justification ?? null, paragraphProperties?.rightToLeft === true);
|
|
145469
|
+
}, createParagraphDirectionStateDeriver = (direction) => ({ context }) => {
|
|
145470
|
+
if (isCommandDisabled(context))
|
|
145471
|
+
return {
|
|
145472
|
+
active: false,
|
|
145473
|
+
disabled: true,
|
|
145474
|
+
value: null
|
|
145475
|
+
};
|
|
145476
|
+
const current = getCurrentResolvedParagraphProperties(context)?.rightToLeft ? "rtl" : "ltr";
|
|
145477
|
+
return {
|
|
145478
|
+
active: current === direction,
|
|
145479
|
+
disabled: false,
|
|
145480
|
+
value: current
|
|
145481
|
+
};
|
|
145482
|
+
}, createParagraphDirectionExecute = (direction) => ({ context }) => {
|
|
145483
|
+
const command = resolveStateEditor(context)?.commands.setParagraphDirection;
|
|
145484
|
+
if (typeof command !== "function")
|
|
145485
|
+
return false;
|
|
145486
|
+
return Boolean(command({
|
|
145487
|
+
direction,
|
|
145488
|
+
alignmentPolicy: "matchDirection"
|
|
145489
|
+
}));
|
|
145460
145490
|
}, createTextAlignStateDeriver = () => ({ context }) => {
|
|
145461
145491
|
if (isCommandDisabled(context))
|
|
145462
145492
|
return {
|
|
@@ -145696,6 +145726,18 @@ var CSS_DIMENSION_REGEX, DOM_SIZE_UNITS, Extension = class Extension2 {
|
|
|
145696
145726
|
state: createDisabledStateDeriver(),
|
|
145697
145727
|
execute: createIndentDecreaseExecute()
|
|
145698
145728
|
},
|
|
145729
|
+
"direction-ltr": {
|
|
145730
|
+
id: "direction-ltr",
|
|
145731
|
+
directCommandName: "setParagraphDirection",
|
|
145732
|
+
state: createParagraphDirectionStateDeriver("ltr"),
|
|
145733
|
+
execute: createParagraphDirectionExecute("ltr")
|
|
145734
|
+
},
|
|
145735
|
+
"direction-rtl": {
|
|
145736
|
+
id: "direction-rtl",
|
|
145737
|
+
directCommandName: "setParagraphDirection",
|
|
145738
|
+
state: createParagraphDirectionStateDeriver("rtl"),
|
|
145739
|
+
execute: createParagraphDirectionExecute("rtl")
|
|
145740
|
+
},
|
|
145699
145741
|
undo: {
|
|
145700
145742
|
id: "undo",
|
|
145701
145743
|
directCommandName: "undo",
|
|
@@ -145893,8 +145935,8 @@ var CSS_DIMENSION_REGEX, DOM_SIZE_UNITS, Extension = class Extension2 {
|
|
|
145893
145935
|
}
|
|
145894
145936
|
};
|
|
145895
145937
|
};
|
|
145896
|
-
var
|
|
145897
|
-
|
|
145938
|
+
var init_create_headless_toolbar_CEUTigkM_es = __esm(() => {
|
|
145939
|
+
init_SuperConverter_5Idv4fhC_es();
|
|
145898
145940
|
init_constants_DrU4EASo_es();
|
|
145899
145941
|
init_dist_B8HfvhaK_es();
|
|
145900
145942
|
CSS_DIMENSION_REGEX = /[\d-.]+(\w+)$/;
|
|
@@ -200112,7 +200154,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
|
|
|
200112
200154
|
init_remark_gfm_BhnWr3yf_es();
|
|
200113
200155
|
});
|
|
200114
200156
|
|
|
200115
|
-
// ../../packages/superdoc/dist/chunks/src-
|
|
200157
|
+
// ../../packages/superdoc/dist/chunks/src-VLFj9vqo.es.js
|
|
200116
200158
|
function deleteProps(obj, propOrProps) {
|
|
200117
200159
|
const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
|
|
200118
200160
|
const removeNested = (target, pathParts, index2 = 0) => {
|
|
@@ -200357,6 +200399,16 @@ function calculateTabWidth(params$1) {
|
|
|
200357
200399
|
tabStopPosUsed: nextStop.pos
|
|
200358
200400
|
};
|
|
200359
200401
|
}
|
|
200402
|
+
function getParagraphInlineDirection(attrs) {
|
|
200403
|
+
const fromContext = attrs?.directionContext?.inlineDirection;
|
|
200404
|
+
if (fromContext != null)
|
|
200405
|
+
return fromContext;
|
|
200406
|
+
const ppRtl = attrs?.paragraphProperties?.rightToLeft;
|
|
200407
|
+
if (attrs?.direction === "rtl" || attrs?.dir === "rtl" || attrs?.rtl === true || ppRtl === true)
|
|
200408
|
+
return "rtl";
|
|
200409
|
+
if (attrs?.direction === "ltr" || attrs?.dir === "ltr" || attrs?.rtl === false || ppRtl === false)
|
|
200410
|
+
return "ltr";
|
|
200411
|
+
}
|
|
200360
200412
|
function resolveTableWidthAttr(value) {
|
|
200361
200413
|
if (!value || typeof value !== "object")
|
|
200362
200414
|
return null;
|
|
@@ -202987,6 +203039,44 @@ function modifyIndentation(calcFunc, { resolveProps = false } = {}) {
|
|
|
202987
203039
|
return success2;
|
|
202988
203040
|
};
|
|
202989
203041
|
}
|
|
203042
|
+
function walkParagraphs$1(transform2) {
|
|
203043
|
+
return ({ editor, state, dispatch }) => {
|
|
203044
|
+
const { from: from$1, to } = state.selection;
|
|
203045
|
+
const tr = state.tr;
|
|
203046
|
+
let touched = false;
|
|
203047
|
+
state.doc.nodesBetween(from$1, to, (node2, pos) => {
|
|
203048
|
+
if (node2.type.name !== "paragraph")
|
|
203049
|
+
return true;
|
|
203050
|
+
const existing = node2.attrs.paragraphProperties || {};
|
|
203051
|
+
const updated = transform2(existing, {
|
|
203052
|
+
editor,
|
|
203053
|
+
node: node2,
|
|
203054
|
+
$pos: state.doc.resolve(pos)
|
|
203055
|
+
});
|
|
203056
|
+
if (shallowEqual$2(existing, updated))
|
|
203057
|
+
return false;
|
|
203058
|
+
tr.setNodeMarkup(pos, undefined, {
|
|
203059
|
+
...node2.attrs,
|
|
203060
|
+
paragraphProperties: updated
|
|
203061
|
+
});
|
|
203062
|
+
touched = true;
|
|
203063
|
+
return false;
|
|
203064
|
+
});
|
|
203065
|
+
if (touched && dispatch)
|
|
203066
|
+
dispatch(tr);
|
|
203067
|
+
return touched;
|
|
203068
|
+
};
|
|
203069
|
+
}
|
|
203070
|
+
function shallowEqual$2(a2, b$1) {
|
|
203071
|
+
const ka = Object.keys(a2);
|
|
203072
|
+
const kb = Object.keys(b$1);
|
|
203073
|
+
if (ka.length !== kb.length)
|
|
203074
|
+
return false;
|
|
203075
|
+
for (const k$1 of ka)
|
|
203076
|
+
if (a2[k$1] !== b$1[k$1])
|
|
203077
|
+
return false;
|
|
203078
|
+
return true;
|
|
203079
|
+
}
|
|
202990
203080
|
function deleteFromEndOfRun(state, dispatch, $pos) {
|
|
202991
203081
|
const rightRun = state.doc.nodeAt($pos.pos + 1);
|
|
202992
203082
|
const $afterRightRunPos = state.doc.resolve($pos.pos + 2 + rightRun.nodeSize);
|
|
@@ -203962,7 +204052,7 @@ function isListParagraph(node2) {
|
|
|
203962
204052
|
return node2?.type?.name === "paragraph" && node2.attrs?.paragraphProperties?.numberingProperties && node2.attrs?.listRendering;
|
|
203963
204053
|
}
|
|
203964
204054
|
function isRtlParagraph$1(node2) {
|
|
203965
|
-
return node2?.attrs
|
|
204055
|
+
return getParagraphInlineDirection(node2?.attrs) === "rtl";
|
|
203966
204056
|
}
|
|
203967
204057
|
function getParagraphContext$1($pos) {
|
|
203968
204058
|
for (let depth = $pos.depth;depth >= 0; depth--) {
|
|
@@ -258804,7 +258894,7 @@ function computeCaretLayoutRectGeometry({ layout, blocks: blocks2, measures, pai
|
|
|
258804
258894
|
});
|
|
258805
258895
|
const availableWidth = Math.max(0, fragment.width - (indentAdjust + indent2.right));
|
|
258806
258896
|
const charX = measureCharacterX(block, line, pmOffset, availableWidth);
|
|
258807
|
-
const resolvedCharX = block.attrs
|
|
258897
|
+
const resolvedCharX = getParagraphInlineDirection(block.attrs) === "rtl" ? Math.max(0, availableWidth - charX) : charX;
|
|
258808
258898
|
const localX = fragment.x + indentAdjust + resolvedCharX;
|
|
258809
258899
|
const lineOffset = lineHeightBeforeIndex(measure.lines, fragment.fromLine, index2);
|
|
258810
258900
|
const localY = fragment.y + lineOffset;
|
|
@@ -267518,7 +267608,32 @@ var Node$13 = class Node$14 {
|
|
|
267518
267608
|
});
|
|
267519
267609
|
}, unsetLineHeight = () => ({ commands: commands$1 }) => {
|
|
267520
267610
|
return commands$1.resetAttributes("paragraph", "paragraphProperties.spacing.line", "paragraphProperties.spacing.lineRule");
|
|
267521
|
-
},
|
|
267611
|
+
}, setParagraphDirection = ({ direction, alignmentPolicy } = {}) => {
|
|
267612
|
+
if (direction !== "ltr" && direction !== "rtl")
|
|
267613
|
+
return () => false;
|
|
267614
|
+
return walkParagraphs$1((pPr, { editor, $pos }) => {
|
|
267615
|
+
const next2 = { ...pPr };
|
|
267616
|
+
if (direction === "rtl")
|
|
267617
|
+
next2.rightToLeft = true;
|
|
267618
|
+
else {
|
|
267619
|
+
delete next2.rightToLeft;
|
|
267620
|
+
if (resolveHypotheticalParagraphProperties(editor, $pos, next2)?.rightToLeft === true)
|
|
267621
|
+
next2.rightToLeft = false;
|
|
267622
|
+
}
|
|
267623
|
+
if (alignmentPolicy === "matchDirection") {
|
|
267624
|
+
const j = pPr.justification;
|
|
267625
|
+
if (j === "left" && direction === "rtl")
|
|
267626
|
+
next2.justification = "right";
|
|
267627
|
+
else if (j === "right" && direction === "ltr")
|
|
267628
|
+
next2.justification = "left";
|
|
267629
|
+
}
|
|
267630
|
+
return next2;
|
|
267631
|
+
});
|
|
267632
|
+
}, clearParagraphDirection = () => walkParagraphs$1((pPr) => {
|
|
267633
|
+
const next2 = { ...pPr };
|
|
267634
|
+
delete next2.rightToLeft;
|
|
267635
|
+
return next2;
|
|
267636
|
+
}), backspaceEmptyRunParagraph = () => ({ state, dispatch }) => {
|
|
267522
267637
|
const { $from } = state.selection;
|
|
267523
267638
|
if (!state.selection.empty)
|
|
267524
267639
|
return false;
|
|
@@ -281571,7 +281686,7 @@ menclose::after {
|
|
|
281571
281686
|
y$1 += actualRowHeight + cellSpacingPx;
|
|
281572
281687
|
}
|
|
281573
281688
|
return container;
|
|
281574
|
-
}, isRtlParagraph = (attrs) => attrs
|
|
281689
|
+
}, isRtlParagraph = (attrs) => getParagraphInlineDirection(attrs) === "rtl", resolveTextAlign = (alignment$1, isRtl) => {
|
|
281575
281690
|
switch (alignment$1) {
|
|
281576
281691
|
case "center":
|
|
281577
281692
|
case "right":
|
|
@@ -282895,7 +283010,7 @@ menclose::after {
|
|
|
282895
283010
|
attrs.borders ? hashParagraphBorders$1(attrs.borders) : "",
|
|
282896
283011
|
attrs.shading?.fill ?? "",
|
|
282897
283012
|
attrs.shading?.color ?? "",
|
|
282898
|
-
attrs
|
|
283013
|
+
getParagraphInlineDirection(attrs) ?? "",
|
|
282899
283014
|
attrs.tabs?.length ? JSON.stringify(attrs.tabs) : ""
|
|
282900
283015
|
].join(":") : "";
|
|
282901
283016
|
const sdtAttrs = block.attrs?.sdt;
|
|
@@ -283023,7 +283138,7 @@ menclose::after {
|
|
|
283023
283138
|
hash$3 = hashNumber(hash$3, attrs.indent?.hanging ?? 0);
|
|
283024
283139
|
hash$3 = hashString(hash$3, attrs.shading?.fill ?? "");
|
|
283025
283140
|
hash$3 = hashString(hash$3, attrs.shading?.color ?? "");
|
|
283026
|
-
hash$3 = hashString(hash$3, attrs
|
|
283141
|
+
hash$3 = hashString(hash$3, getParagraphInlineDirection(attrs) ?? "");
|
|
283027
283142
|
if (attrs.borders)
|
|
283028
283143
|
hash$3 = hashString(hash$3, hashParagraphBorders$1(attrs.borders));
|
|
283029
283144
|
}
|
|
@@ -283739,8 +283854,9 @@ menclose::after {
|
|
|
283739
283854
|
if (sh.color)
|
|
283740
283855
|
parts.push(`shc:${sh.color}`);
|
|
283741
283856
|
}
|
|
283742
|
-
|
|
283743
|
-
|
|
283857
|
+
const cellDir = getParagraphInlineDirection(attrs);
|
|
283858
|
+
if (cellDir)
|
|
283859
|
+
parts.push(`dir:${cellDir}`);
|
|
283744
283860
|
if (parts.length > 0)
|
|
283745
283861
|
cellHashes.push(`pa:${parts.join(":")}`);
|
|
283746
283862
|
}
|
|
@@ -283846,8 +283962,9 @@ menclose::after {
|
|
|
283846
283962
|
const tabsHash = attrs.tabs.map((t) => `${t.val ?? ""}:${t.pos ?? ""}:${t.leader ?? ""}`).join(",");
|
|
283847
283963
|
parts.push(`tb:${tabsHash}`);
|
|
283848
283964
|
}
|
|
283849
|
-
|
|
283850
|
-
|
|
283965
|
+
const dir = getParagraphInlineDirection(attrs);
|
|
283966
|
+
if (dir)
|
|
283967
|
+
parts.push(`dir:${dir}`);
|
|
283851
283968
|
if (attrs.keepNext)
|
|
283852
283969
|
parts.push("kn");
|
|
283853
283970
|
if (attrs.keepLines)
|
|
@@ -293729,12 +293846,12 @@ menclose::after {
|
|
|
293729
293846
|
return;
|
|
293730
293847
|
console.log(...args$1);
|
|
293731
293848
|
}, HEADER_FOOTER_INIT_BUDGET_MS = 200, MAX_ZOOM_WARNING_THRESHOLD = 10, MAX_SELECTION_RECTS_PER_USER = 100, SEMANTIC_RESIZE_DEBOUNCE_MS = 120, MIN_SEMANTIC_CONTENT_WIDTH_PX = 1, GLOBAL_PERFORMANCE, PresentationEditor, ICONS, TEXTS, tableActionsOptions;
|
|
293732
|
-
var
|
|
293849
|
+
var init_src_VLFj9vqo_es = __esm(() => {
|
|
293733
293850
|
init_rolldown_runtime_Bg48TavK_es();
|
|
293734
|
-
|
|
293851
|
+
init_SuperConverter_5Idv4fhC_es();
|
|
293735
293852
|
init_jszip_C49i9kUs_es();
|
|
293736
293853
|
init_uuid_qzgm05fK_es();
|
|
293737
|
-
|
|
293854
|
+
init_create_headless_toolbar_CEUTigkM_es();
|
|
293738
293855
|
init_constants_DrU4EASo_es();
|
|
293739
293856
|
init_dist_B8HfvhaK_es();
|
|
293740
293857
|
init_unified_Dsuw2be5_es();
|
|
@@ -296496,6 +296613,7 @@ ${err.toString()}`);
|
|
|
296496
296613
|
backspaceSkipEmptyRun: () => backspaceSkipEmptyRun,
|
|
296497
296614
|
changeListLevel: () => changeListLevel,
|
|
296498
296615
|
clearNodes: () => clearNodes,
|
|
296616
|
+
clearParagraphDirection: () => clearParagraphDirection,
|
|
296499
296617
|
command: () => command,
|
|
296500
296618
|
createParagraphNear: () => createParagraphNear$1,
|
|
296501
296619
|
decreaseListIndent: () => decreaseListIndent,
|
|
@@ -296542,6 +296660,7 @@ ${err.toString()}`);
|
|
|
296542
296660
|
setMark: () => setMark,
|
|
296543
296661
|
setMeta: () => setMeta,
|
|
296544
296662
|
setNode: () => setNode,
|
|
296663
|
+
setParagraphDirection: () => setParagraphDirection,
|
|
296545
296664
|
setSectionHeaderFooterAtSelection: () => setSectionHeaderFooterAtSelection,
|
|
296546
296665
|
setSectionPageMarginsAtSelection: () => setSectionPageMarginsAtSelection,
|
|
296547
296666
|
setTextIndentation: () => setTextIndentation,
|
|
@@ -312705,6 +312824,10 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
312705
312824
|
numberedListLowerAlphaParen: list_lower_alpha_paren_solid_default,
|
|
312706
312825
|
indentLeft: outdent_solid_default,
|
|
312707
312826
|
indentRight: indent_solid_default,
|
|
312827
|
+
directionLtr: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M9 10v5h2V4h2v11h2V4h2V2H9C6.79 2 5 3.79 5 6s1.79 4 4 4zm12 8l-4-4v3H5v2h12v3l4-4z"/></svg>
|
|
312828
|
+
`,
|
|
312829
|
+
directionRtl: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M10 10v5h2V4h2v11h2V4h2V2h-8C7.79 2 6 3.79 6 6s1.79 4 4 4zm-2 7v-3l-4 4 4 4v-3h12v-2H8z"/></svg>
|
|
312830
|
+
`,
|
|
312708
312831
|
pageBreak: file_half_dashed_solid_default,
|
|
312709
312832
|
copyFormat: paint_roller_solid_default,
|
|
312710
312833
|
clearFormatting: text_slash_solid_default,
|
|
@@ -314000,6 +314123,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
314000
314123
|
linkedStyles: "linked-style",
|
|
314001
314124
|
indentleft: "indent-decrease",
|
|
314002
314125
|
indentright: "indent-increase",
|
|
314126
|
+
directionLtr: "direction-ltr",
|
|
314127
|
+
directionRtl: "direction-rtl",
|
|
314003
314128
|
clearFormatting: "clear-formatting",
|
|
314004
314129
|
copyFormat: "copy-format"
|
|
314005
314130
|
};
|
|
@@ -314990,7 +315115,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
314990
315115
|
emit("item-clicked");
|
|
314991
315116
|
emit("command", {
|
|
314992
315117
|
item,
|
|
314993
|
-
argument
|
|
315118
|
+
argument: argument ?? item.argument?.value ?? null
|
|
314994
315119
|
});
|
|
314995
315120
|
};
|
|
314996
315121
|
const handleToolbarButtonTextSubmit = (item, argument) => {
|
|
@@ -315281,7 +315406,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
315281
315406
|
}), 128))], 36);
|
|
315282
315407
|
};
|
|
315283
315408
|
}
|
|
315284
|
-
}, [["__scopeId", "data-v-
|
|
315409
|
+
}, [["__scopeId", "data-v-223b4fea"]]);
|
|
315285
315410
|
Toolbar_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
|
|
315286
315411
|
__name: "Toolbar",
|
|
315287
315412
|
emits: [
|
|
@@ -315458,6 +315583,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
315458
315583
|
numberedList: "Numbered list",
|
|
315459
315584
|
indentLeft: "Left indent",
|
|
315460
315585
|
indentRight: "Right indent",
|
|
315586
|
+
directionLtr: "Left-to-right",
|
|
315587
|
+
directionRtl: "Right-to-left",
|
|
315461
315588
|
zoom: "Zoom",
|
|
315462
315589
|
undo: "Undo",
|
|
315463
315590
|
redo: "Redo",
|
|
@@ -315871,7 +315998,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
315871
315998
|
this.#deactivateAll();
|
|
315872
315999
|
return;
|
|
315873
316000
|
}
|
|
315874
|
-
this.toolbarItems.forEach((item) => {
|
|
316001
|
+
[...this.toolbarItems, ...this.overflowItems].forEach((item) => {
|
|
315875
316002
|
item.resetDisabled();
|
|
315876
316003
|
this.#applyHeadlessState(item);
|
|
315877
316004
|
});
|
|
@@ -321784,7 +321911,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
321784
321911
|
const expandedRunsForBlock = expandRunsForInlineNewlines(block.runs);
|
|
321785
321912
|
content3.lines.forEach((resolvedLine) => {
|
|
321786
321913
|
const paragraphMarkLeftOffset = this.resolveResolvedListParagraphMarkOffset(resolvedLine.isListFirstLine ? resolvedMarker : undefined, fragment.markerTextWidth, resolvedLine.indentOffset);
|
|
321787
|
-
const isRtl = block.attrs
|
|
321914
|
+
const isRtl = getParagraphInlineDirection(block.attrs) === "rtl";
|
|
321788
321915
|
const lineEl = this.renderLine(block, resolvedLine.line, context, resolvedLine.availableWidth, resolvedLine.lineIndex, resolvedLine.skipJustify, expandedRunsForBlock, resolvedLine.resolvedListTextStartPx, resolvedLine.indentOffset, paragraphMarkLeftOffset);
|
|
321789
321916
|
if (!resolvedLine.isListFirstLine) {
|
|
321790
321917
|
if (resolvedLine.paddingLeftPx > 0)
|
|
@@ -321854,7 +321981,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
321854
321981
|
const paraIndent = block.attrs?.indent;
|
|
321855
321982
|
const paraIndentLeft = paraIndent?.left ?? 0;
|
|
321856
321983
|
const paraIndentRight = paraIndent?.right ?? 0;
|
|
321857
|
-
const isRtl = block.attrs
|
|
321984
|
+
const isRtl = getParagraphInlineDirection(block.attrs) === "rtl";
|
|
321858
321985
|
const { anchorIndentPx: paraMarkerAnchorIndent, firstLinePx: markerFirstLine, hangingPx: markerHanging } = resolveMarkerIndent(paraIndent, isRtl);
|
|
321859
321986
|
const firstLineOffset = block.attrs?.suppressFirstLineIndent === true ? 0 : (paraIndent?.firstLine ?? 0) - (paraIndent?.hanging ?? 0);
|
|
321860
321987
|
const expandedRunsForBlock = expandRunsForInlineNewlines(block.runs);
|
|
@@ -331765,11 +331892,11 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
331765
331892
|
];
|
|
331766
331893
|
});
|
|
331767
331894
|
|
|
331768
|
-
// ../../packages/superdoc/dist/chunks/create-super-doc-ui-
|
|
331895
|
+
// ../../packages/superdoc/dist/chunks/create-super-doc-ui-BGYHCZ5O.es.js
|
|
331769
331896
|
var MOD_ALIASES, ALT_ALIASES, CTRL_ALIASES, SHIFT_ALIASES, BUILTIN_CONTEXT_MENU_GROUPS, BUILTIN_GROUP_ORDER, RESERVED_PROXY_PROPERTY_NAMES, ALL_TOOLBAR_COMMAND_IDS, EMPTY_ACTIVE_IDS;
|
|
331770
|
-
var
|
|
331771
|
-
|
|
331772
|
-
|
|
331897
|
+
var init_create_super_doc_ui_BGYHCZ5O_es = __esm(() => {
|
|
331898
|
+
init_SuperConverter_5Idv4fhC_es();
|
|
331899
|
+
init_create_headless_toolbar_CEUTigkM_es();
|
|
331773
331900
|
MOD_ALIASES = new Set([
|
|
331774
331901
|
"Mod",
|
|
331775
331902
|
"Meta",
|
|
@@ -331811,16 +331938,16 @@ var init_zipper_BxRAi0_5_es = __esm(() => {
|
|
|
331811
331938
|
|
|
331812
331939
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
331813
331940
|
var init_super_editor_es = __esm(() => {
|
|
331814
|
-
|
|
331815
|
-
|
|
331941
|
+
init_src_VLFj9vqo_es();
|
|
331942
|
+
init_SuperConverter_5Idv4fhC_es();
|
|
331816
331943
|
init_jszip_C49i9kUs_es();
|
|
331817
331944
|
init_xml_js_CqGKpaft_es();
|
|
331818
|
-
|
|
331945
|
+
init_create_headless_toolbar_CEUTigkM_es();
|
|
331819
331946
|
init_constants_DrU4EASo_es();
|
|
331820
331947
|
init_dist_B8HfvhaK_es();
|
|
331821
331948
|
init_unified_Dsuw2be5_es();
|
|
331822
331949
|
init_DocxZipper_Dh4RtvcE_es();
|
|
331823
|
-
|
|
331950
|
+
init_create_super_doc_ui_BGYHCZ5O_es();
|
|
331824
331951
|
init_ui_CGB3qmy3_es();
|
|
331825
331952
|
init_eventemitter3_UwU_CLPU_es();
|
|
331826
331953
|
init_errors_C_DoKMoN_es();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superdoc-dev/mcp",
|
|
3
|
-
"version": "0.3.0-next.
|
|
3
|
+
"version": "0.3.0-next.86",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=20"
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"@types/bun": "^1.3.8",
|
|
20
20
|
"@types/node": "22.19.2",
|
|
21
21
|
"typescript": "^5.9.2",
|
|
22
|
+
"@superdoc/super-editor": "0.0.1",
|
|
22
23
|
"@superdoc/document-api": "0.0.1",
|
|
23
|
-
"superdoc": "1.32.0"
|
|
24
|
-
"@superdoc/super-editor": "0.0.1"
|
|
24
|
+
"superdoc": "1.32.0"
|
|
25
25
|
},
|
|
26
26
|
"publishConfig": {
|
|
27
27
|
"access": "public"
|