@superdoc-dev/mcp 0.3.0-next.84 → 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 +169 -33
- package/package.json +2 -2
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;
|
|
@@ -101889,6 +101898,12 @@ var isRegExp = (value) => {
|
|
|
101889
101898
|
commentSchema = [commentSchema, {
|
|
101890
101899
|
name: "w:r",
|
|
101891
101900
|
elements: [{
|
|
101901
|
+
name: "w:rPr",
|
|
101902
|
+
elements: [{
|
|
101903
|
+
name: "w:rStyle",
|
|
101904
|
+
attributes: { "w:val": "CommentReference" }
|
|
101905
|
+
}]
|
|
101906
|
+
}, {
|
|
101892
101907
|
name: "w:commentReference",
|
|
101893
101908
|
attributes: { "w:id": String(commentIndex) }
|
|
101894
101909
|
}]
|
|
@@ -105329,7 +105344,7 @@ var isRegExp = (value) => {
|
|
|
105329
105344
|
state.kern = kernNode.attributes["w:val"];
|
|
105330
105345
|
}
|
|
105331
105346
|
}, SuperConverter;
|
|
105332
|
-
var
|
|
105347
|
+
var init_SuperConverter_5Idv4fhC_es = __esm(() => {
|
|
105333
105348
|
init_rolldown_runtime_Bg48TavK_es();
|
|
105334
105349
|
init_jszip_C49i9kUs_es();
|
|
105335
105350
|
init_xml_js_CqGKpaft_es();
|
|
@@ -143198,7 +143213,7 @@ var init_SuperConverter_CHgmKFZo_es = __esm(() => {
|
|
|
143198
143213
|
};
|
|
143199
143214
|
});
|
|
143200
143215
|
|
|
143201
|
-
// ../../packages/superdoc/dist/chunks/create-headless-toolbar-
|
|
143216
|
+
// ../../packages/superdoc/dist/chunks/create-headless-toolbar-CEUTigkM.es.js
|
|
143202
143217
|
function parseSizeUnit(val = "0") {
|
|
143203
143218
|
const length = val.toString() || "0";
|
|
143204
143219
|
const value = Number.parseFloat(length);
|
|
@@ -145451,6 +145466,27 @@ var CSS_DIMENSION_REGEX, DOM_SIZE_UNITS, Extension = class Extension2 {
|
|
|
145451
145466
|
}, getCurrentParagraphJustification = (context) => {
|
|
145452
145467
|
const paragraphProperties = getCurrentResolvedParagraphProperties(context);
|
|
145453
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
|
+
}));
|
|
145454
145490
|
}, createTextAlignStateDeriver = () => ({ context }) => {
|
|
145455
145491
|
if (isCommandDisabled(context))
|
|
145456
145492
|
return {
|
|
@@ -145690,6 +145726,18 @@ var CSS_DIMENSION_REGEX, DOM_SIZE_UNITS, Extension = class Extension2 {
|
|
|
145690
145726
|
state: createDisabledStateDeriver(),
|
|
145691
145727
|
execute: createIndentDecreaseExecute()
|
|
145692
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
|
+
},
|
|
145693
145741
|
undo: {
|
|
145694
145742
|
id: "undo",
|
|
145695
145743
|
directCommandName: "undo",
|
|
@@ -145887,8 +145935,8 @@ var CSS_DIMENSION_REGEX, DOM_SIZE_UNITS, Extension = class Extension2 {
|
|
|
145887
145935
|
}
|
|
145888
145936
|
};
|
|
145889
145937
|
};
|
|
145890
|
-
var
|
|
145891
|
-
|
|
145938
|
+
var init_create_headless_toolbar_CEUTigkM_es = __esm(() => {
|
|
145939
|
+
init_SuperConverter_5Idv4fhC_es();
|
|
145892
145940
|
init_constants_DrU4EASo_es();
|
|
145893
145941
|
init_dist_B8HfvhaK_es();
|
|
145894
145942
|
CSS_DIMENSION_REGEX = /[\d-.]+(\w+)$/;
|
|
@@ -200106,7 +200154,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
|
|
|
200106
200154
|
init_remark_gfm_BhnWr3yf_es();
|
|
200107
200155
|
});
|
|
200108
200156
|
|
|
200109
|
-
// ../../packages/superdoc/dist/chunks/src-
|
|
200157
|
+
// ../../packages/superdoc/dist/chunks/src-VLFj9vqo.es.js
|
|
200110
200158
|
function deleteProps(obj, propOrProps) {
|
|
200111
200159
|
const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
|
|
200112
200160
|
const removeNested = (target, pathParts, index2 = 0) => {
|
|
@@ -200351,6 +200399,16 @@ function calculateTabWidth(params$1) {
|
|
|
200351
200399
|
tabStopPosUsed: nextStop.pos
|
|
200352
200400
|
};
|
|
200353
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
|
+
}
|
|
200354
200412
|
function resolveTableWidthAttr(value) {
|
|
200355
200413
|
if (!value || typeof value !== "object")
|
|
200356
200414
|
return null;
|
|
@@ -202981,6 +203039,44 @@ function modifyIndentation(calcFunc, { resolveProps = false } = {}) {
|
|
|
202981
203039
|
return success2;
|
|
202982
203040
|
};
|
|
202983
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
|
+
}
|
|
202984
203080
|
function deleteFromEndOfRun(state, dispatch, $pos) {
|
|
202985
203081
|
const rightRun = state.doc.nodeAt($pos.pos + 1);
|
|
202986
203082
|
const $afterRightRunPos = state.doc.resolve($pos.pos + 2 + rightRun.nodeSize);
|
|
@@ -203956,7 +204052,7 @@ function isListParagraph(node2) {
|
|
|
203956
204052
|
return node2?.type?.name === "paragraph" && node2.attrs?.paragraphProperties?.numberingProperties && node2.attrs?.listRendering;
|
|
203957
204053
|
}
|
|
203958
204054
|
function isRtlParagraph$1(node2) {
|
|
203959
|
-
return node2?.attrs
|
|
204055
|
+
return getParagraphInlineDirection(node2?.attrs) === "rtl";
|
|
203960
204056
|
}
|
|
203961
204057
|
function getParagraphContext$1($pos) {
|
|
203962
204058
|
for (let depth = $pos.depth;depth >= 0; depth--) {
|
|
@@ -258798,7 +258894,7 @@ function computeCaretLayoutRectGeometry({ layout, blocks: blocks2, measures, pai
|
|
|
258798
258894
|
});
|
|
258799
258895
|
const availableWidth = Math.max(0, fragment.width - (indentAdjust + indent2.right));
|
|
258800
258896
|
const charX = measureCharacterX(block, line, pmOffset, availableWidth);
|
|
258801
|
-
const resolvedCharX = block.attrs
|
|
258897
|
+
const resolvedCharX = getParagraphInlineDirection(block.attrs) === "rtl" ? Math.max(0, availableWidth - charX) : charX;
|
|
258802
258898
|
const localX = fragment.x + indentAdjust + resolvedCharX;
|
|
258803
258899
|
const lineOffset = lineHeightBeforeIndex(measure.lines, fragment.fromLine, index2);
|
|
258804
258900
|
const localY = fragment.y + lineOffset;
|
|
@@ -267512,7 +267608,32 @@ var Node$13 = class Node$14 {
|
|
|
267512
267608
|
});
|
|
267513
267609
|
}, unsetLineHeight = () => ({ commands: commands$1 }) => {
|
|
267514
267610
|
return commands$1.resetAttributes("paragraph", "paragraphProperties.spacing.line", "paragraphProperties.spacing.lineRule");
|
|
267515
|
-
},
|
|
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 }) => {
|
|
267516
267637
|
const { $from } = state.selection;
|
|
267517
267638
|
if (!state.selection.empty)
|
|
267518
267639
|
return false;
|
|
@@ -281565,7 +281686,7 @@ menclose::after {
|
|
|
281565
281686
|
y$1 += actualRowHeight + cellSpacingPx;
|
|
281566
281687
|
}
|
|
281567
281688
|
return container;
|
|
281568
|
-
}, isRtlParagraph = (attrs) => attrs
|
|
281689
|
+
}, isRtlParagraph = (attrs) => getParagraphInlineDirection(attrs) === "rtl", resolveTextAlign = (alignment$1, isRtl) => {
|
|
281569
281690
|
switch (alignment$1) {
|
|
281570
281691
|
case "center":
|
|
281571
281692
|
case "right":
|
|
@@ -282889,7 +283010,7 @@ menclose::after {
|
|
|
282889
283010
|
attrs.borders ? hashParagraphBorders$1(attrs.borders) : "",
|
|
282890
283011
|
attrs.shading?.fill ?? "",
|
|
282891
283012
|
attrs.shading?.color ?? "",
|
|
282892
|
-
attrs
|
|
283013
|
+
getParagraphInlineDirection(attrs) ?? "",
|
|
282893
283014
|
attrs.tabs?.length ? JSON.stringify(attrs.tabs) : ""
|
|
282894
283015
|
].join(":") : "";
|
|
282895
283016
|
const sdtAttrs = block.attrs?.sdt;
|
|
@@ -283017,7 +283138,7 @@ menclose::after {
|
|
|
283017
283138
|
hash$3 = hashNumber(hash$3, attrs.indent?.hanging ?? 0);
|
|
283018
283139
|
hash$3 = hashString(hash$3, attrs.shading?.fill ?? "");
|
|
283019
283140
|
hash$3 = hashString(hash$3, attrs.shading?.color ?? "");
|
|
283020
|
-
hash$3 = hashString(hash$3, attrs
|
|
283141
|
+
hash$3 = hashString(hash$3, getParagraphInlineDirection(attrs) ?? "");
|
|
283021
283142
|
if (attrs.borders)
|
|
283022
283143
|
hash$3 = hashString(hash$3, hashParagraphBorders$1(attrs.borders));
|
|
283023
283144
|
}
|
|
@@ -283733,8 +283854,9 @@ menclose::after {
|
|
|
283733
283854
|
if (sh.color)
|
|
283734
283855
|
parts.push(`shc:${sh.color}`);
|
|
283735
283856
|
}
|
|
283736
|
-
|
|
283737
|
-
|
|
283857
|
+
const cellDir = getParagraphInlineDirection(attrs);
|
|
283858
|
+
if (cellDir)
|
|
283859
|
+
parts.push(`dir:${cellDir}`);
|
|
283738
283860
|
if (parts.length > 0)
|
|
283739
283861
|
cellHashes.push(`pa:${parts.join(":")}`);
|
|
283740
283862
|
}
|
|
@@ -283840,8 +283962,9 @@ menclose::after {
|
|
|
283840
283962
|
const tabsHash = attrs.tabs.map((t) => `${t.val ?? ""}:${t.pos ?? ""}:${t.leader ?? ""}`).join(",");
|
|
283841
283963
|
parts.push(`tb:${tabsHash}`);
|
|
283842
283964
|
}
|
|
283843
|
-
|
|
283844
|
-
|
|
283965
|
+
const dir = getParagraphInlineDirection(attrs);
|
|
283966
|
+
if (dir)
|
|
283967
|
+
parts.push(`dir:${dir}`);
|
|
283845
283968
|
if (attrs.keepNext)
|
|
283846
283969
|
parts.push("kn");
|
|
283847
283970
|
if (attrs.keepLines)
|
|
@@ -293723,12 +293846,12 @@ menclose::after {
|
|
|
293723
293846
|
return;
|
|
293724
293847
|
console.log(...args$1);
|
|
293725
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;
|
|
293726
|
-
var
|
|
293849
|
+
var init_src_VLFj9vqo_es = __esm(() => {
|
|
293727
293850
|
init_rolldown_runtime_Bg48TavK_es();
|
|
293728
|
-
|
|
293851
|
+
init_SuperConverter_5Idv4fhC_es();
|
|
293729
293852
|
init_jszip_C49i9kUs_es();
|
|
293730
293853
|
init_uuid_qzgm05fK_es();
|
|
293731
|
-
|
|
293854
|
+
init_create_headless_toolbar_CEUTigkM_es();
|
|
293732
293855
|
init_constants_DrU4EASo_es();
|
|
293733
293856
|
init_dist_B8HfvhaK_es();
|
|
293734
293857
|
init_unified_Dsuw2be5_es();
|
|
@@ -296490,6 +296613,7 @@ ${err.toString()}`);
|
|
|
296490
296613
|
backspaceSkipEmptyRun: () => backspaceSkipEmptyRun,
|
|
296491
296614
|
changeListLevel: () => changeListLevel,
|
|
296492
296615
|
clearNodes: () => clearNodes,
|
|
296616
|
+
clearParagraphDirection: () => clearParagraphDirection,
|
|
296493
296617
|
command: () => command,
|
|
296494
296618
|
createParagraphNear: () => createParagraphNear$1,
|
|
296495
296619
|
decreaseListIndent: () => decreaseListIndent,
|
|
@@ -296536,6 +296660,7 @@ ${err.toString()}`);
|
|
|
296536
296660
|
setMark: () => setMark,
|
|
296537
296661
|
setMeta: () => setMeta,
|
|
296538
296662
|
setNode: () => setNode,
|
|
296663
|
+
setParagraphDirection: () => setParagraphDirection,
|
|
296539
296664
|
setSectionHeaderFooterAtSelection: () => setSectionHeaderFooterAtSelection,
|
|
296540
296665
|
setSectionPageMarginsAtSelection: () => setSectionPageMarginsAtSelection,
|
|
296541
296666
|
setTextIndentation: () => setTextIndentation,
|
|
@@ -312699,6 +312824,10 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
312699
312824
|
numberedListLowerAlphaParen: list_lower_alpha_paren_solid_default,
|
|
312700
312825
|
indentLeft: outdent_solid_default,
|
|
312701
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
|
+
`,
|
|
312702
312831
|
pageBreak: file_half_dashed_solid_default,
|
|
312703
312832
|
copyFormat: paint_roller_solid_default,
|
|
312704
312833
|
clearFormatting: text_slash_solid_default,
|
|
@@ -313994,6 +314123,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
313994
314123
|
linkedStyles: "linked-style",
|
|
313995
314124
|
indentleft: "indent-decrease",
|
|
313996
314125
|
indentright: "indent-increase",
|
|
314126
|
+
directionLtr: "direction-ltr",
|
|
314127
|
+
directionRtl: "direction-rtl",
|
|
313997
314128
|
clearFormatting: "clear-formatting",
|
|
313998
314129
|
copyFormat: "copy-format"
|
|
313999
314130
|
};
|
|
@@ -314984,7 +315115,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
314984
315115
|
emit("item-clicked");
|
|
314985
315116
|
emit("command", {
|
|
314986
315117
|
item,
|
|
314987
|
-
argument
|
|
315118
|
+
argument: argument ?? item.argument?.value ?? null
|
|
314988
315119
|
});
|
|
314989
315120
|
};
|
|
314990
315121
|
const handleToolbarButtonTextSubmit = (item, argument) => {
|
|
@@ -315275,7 +315406,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
315275
315406
|
}), 128))], 36);
|
|
315276
315407
|
};
|
|
315277
315408
|
}
|
|
315278
|
-
}, [["__scopeId", "data-v-
|
|
315409
|
+
}, [["__scopeId", "data-v-223b4fea"]]);
|
|
315279
315410
|
Toolbar_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
|
|
315280
315411
|
__name: "Toolbar",
|
|
315281
315412
|
emits: [
|
|
@@ -315452,6 +315583,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
315452
315583
|
numberedList: "Numbered list",
|
|
315453
315584
|
indentLeft: "Left indent",
|
|
315454
315585
|
indentRight: "Right indent",
|
|
315586
|
+
directionLtr: "Left-to-right",
|
|
315587
|
+
directionRtl: "Right-to-left",
|
|
315455
315588
|
zoom: "Zoom",
|
|
315456
315589
|
undo: "Undo",
|
|
315457
315590
|
redo: "Redo",
|
|
@@ -315865,7 +315998,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
315865
315998
|
this.#deactivateAll();
|
|
315866
315999
|
return;
|
|
315867
316000
|
}
|
|
315868
|
-
this.toolbarItems.forEach((item) => {
|
|
316001
|
+
[...this.toolbarItems, ...this.overflowItems].forEach((item) => {
|
|
315869
316002
|
item.resetDisabled();
|
|
315870
316003
|
this.#applyHeadlessState(item);
|
|
315871
316004
|
});
|
|
@@ -321778,7 +321911,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
321778
321911
|
const expandedRunsForBlock = expandRunsForInlineNewlines(block.runs);
|
|
321779
321912
|
content3.lines.forEach((resolvedLine) => {
|
|
321780
321913
|
const paragraphMarkLeftOffset = this.resolveResolvedListParagraphMarkOffset(resolvedLine.isListFirstLine ? resolvedMarker : undefined, fragment.markerTextWidth, resolvedLine.indentOffset);
|
|
321781
|
-
const isRtl = block.attrs
|
|
321914
|
+
const isRtl = getParagraphInlineDirection(block.attrs) === "rtl";
|
|
321782
321915
|
const lineEl = this.renderLine(block, resolvedLine.line, context, resolvedLine.availableWidth, resolvedLine.lineIndex, resolvedLine.skipJustify, expandedRunsForBlock, resolvedLine.resolvedListTextStartPx, resolvedLine.indentOffset, paragraphMarkLeftOffset);
|
|
321783
321916
|
if (!resolvedLine.isListFirstLine) {
|
|
321784
321917
|
if (resolvedLine.paddingLeftPx > 0)
|
|
@@ -321848,7 +321981,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
321848
321981
|
const paraIndent = block.attrs?.indent;
|
|
321849
321982
|
const paraIndentLeft = paraIndent?.left ?? 0;
|
|
321850
321983
|
const paraIndentRight = paraIndent?.right ?? 0;
|
|
321851
|
-
const isRtl = block.attrs
|
|
321984
|
+
const isRtl = getParagraphInlineDirection(block.attrs) === "rtl";
|
|
321852
321985
|
const { anchorIndentPx: paraMarkerAnchorIndent, firstLinePx: markerFirstLine, hangingPx: markerHanging } = resolveMarkerIndent(paraIndent, isRtl);
|
|
321853
321986
|
const firstLineOffset = block.attrs?.suppressFirstLineIndent === true ? 0 : (paraIndent?.firstLine ?? 0) - (paraIndent?.hanging ?? 0);
|
|
321854
321987
|
const expandedRunsForBlock = expandRunsForInlineNewlines(block.runs);
|
|
@@ -331759,11 +331892,11 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
331759
331892
|
];
|
|
331760
331893
|
});
|
|
331761
331894
|
|
|
331762
|
-
// ../../packages/superdoc/dist/chunks/create-super-doc-ui-
|
|
331895
|
+
// ../../packages/superdoc/dist/chunks/create-super-doc-ui-BGYHCZ5O.es.js
|
|
331763
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;
|
|
331764
|
-
var
|
|
331765
|
-
|
|
331766
|
-
|
|
331897
|
+
var init_create_super_doc_ui_BGYHCZ5O_es = __esm(() => {
|
|
331898
|
+
init_SuperConverter_5Idv4fhC_es();
|
|
331899
|
+
init_create_headless_toolbar_CEUTigkM_es();
|
|
331767
331900
|
MOD_ALIASES = new Set([
|
|
331768
331901
|
"Mod",
|
|
331769
331902
|
"Meta",
|
|
@@ -331805,16 +331938,16 @@ var init_zipper_BxRAi0_5_es = __esm(() => {
|
|
|
331805
331938
|
|
|
331806
331939
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
331807
331940
|
var init_super_editor_es = __esm(() => {
|
|
331808
|
-
|
|
331809
|
-
|
|
331941
|
+
init_src_VLFj9vqo_es();
|
|
331942
|
+
init_SuperConverter_5Idv4fhC_es();
|
|
331810
331943
|
init_jszip_C49i9kUs_es();
|
|
331811
331944
|
init_xml_js_CqGKpaft_es();
|
|
331812
|
-
|
|
331945
|
+
init_create_headless_toolbar_CEUTigkM_es();
|
|
331813
331946
|
init_constants_DrU4EASo_es();
|
|
331814
331947
|
init_dist_B8HfvhaK_es();
|
|
331815
331948
|
init_unified_Dsuw2be5_es();
|
|
331816
331949
|
init_DocxZipper_Dh4RtvcE_es();
|
|
331817
|
-
|
|
331950
|
+
init_create_super_doc_ui_BGYHCZ5O_es();
|
|
331818
331951
|
init_ui_CGB3qmy3_es();
|
|
331819
331952
|
init_eventemitter3_UwU_CLPU_es();
|
|
331820
331953
|
init_errors_C_DoKMoN_es();
|
|
@@ -417128,7 +417261,10 @@ var XML_NODE_NAME23 = "w:commentRange", SD_NODE_NAME17 = "commentRange", decode5
|
|
|
417128
417261
|
if (type === "commentRangeEnd") {
|
|
417129
417262
|
const commentReference = {
|
|
417130
417263
|
name: "w:r",
|
|
417131
|
-
elements: [
|
|
417264
|
+
elements: [
|
|
417265
|
+
{ name: "w:rPr", elements: [{ name: "w:rStyle", attributes: { "w:val": "CommentReference" } }] },
|
|
417266
|
+
{ name: "w:commentReference", attributes: { "w:id": String(commentIndex) } }
|
|
417267
|
+
]
|
|
417132
417268
|
};
|
|
417133
417269
|
commentSchema = [commentSchema, commentReference];
|
|
417134
417270
|
}
|
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,8 +19,8 @@
|
|
|
19
19
|
"@types/bun": "^1.3.8",
|
|
20
20
|
"@types/node": "22.19.2",
|
|
21
21
|
"typescript": "^5.9.2",
|
|
22
|
-
"@superdoc/document-api": "0.0.1",
|
|
23
22
|
"@superdoc/super-editor": "0.0.1",
|
|
23
|
+
"@superdoc/document-api": "0.0.1",
|
|
24
24
|
"superdoc": "1.32.0"
|
|
25
25
|
},
|
|
26
26
|
"publishConfig": {
|