@superdoc-dev/mcp 0.6.0 → 0.7.0-next.10
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 +62 -39
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -14569,7 +14569,7 @@ function finalize(ctx, schema) {
|
|
|
14569
14569
|
result.$schema = "http://json-schema.org/draft-07/schema#";
|
|
14570
14570
|
} else if (ctx.target === "draft-04") {
|
|
14571
14571
|
result.$schema = "http://json-schema.org/draft-04/schema#";
|
|
14572
|
-
} else if (ctx.target === "openapi-3.0") {}
|
|
14572
|
+
} else if (ctx.target === "openapi-3.0") {}
|
|
14573
14573
|
if (ctx.external?.uri) {
|
|
14574
14574
|
const id = ctx.external.registry.get(schema)?.id;
|
|
14575
14575
|
if (!id)
|
|
@@ -14834,7 +14834,7 @@ var formatMap, stringProcessor = (schema, ctx, _json, _params) => {
|
|
|
14834
14834
|
if (val === undefined) {
|
|
14835
14835
|
if (ctx.unrepresentable === "throw") {
|
|
14836
14836
|
throw new Error("Literal `undefined` cannot be represented in JSON Schema");
|
|
14837
|
-
}
|
|
14837
|
+
}
|
|
14838
14838
|
} else if (typeof val === "bigint") {
|
|
14839
14839
|
if (ctx.unrepresentable === "throw") {
|
|
14840
14840
|
throw new Error("BigInt literals cannot be represented in JSON Schema");
|
|
@@ -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-UqLu6KQU.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")
|
|
@@ -105833,7 +105833,7 @@ var isRegExp = (value) => {
|
|
|
105833
105833
|
if (id)
|
|
105834
105834
|
return trackedChanges.filter(({ mark }) => mark.attrs.id === id);
|
|
105835
105835
|
return trackedChanges;
|
|
105836
|
-
}, DERIVED_ID_LENGTH = 24, groupedCache, SDT_NODE_NAMES, SDT_BLOCK_NAME = "structuredContentBlock", SDT_INLINE_NAME = "structuredContent", SDT_NODE_TYPES, VALID_CONTROL_TYPES, VALID_LOCK_MODES, VALID_APPEARANCES, FIELD_LIKE_SDT_TYPES, liveDocumentCountsCache, BIBLIOGRAPHY_NAMESPACE_URI = "http://schemas.openxmlformats.org/officeDocument/2006/bibliography", CUSTOM_XML_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml", CUSTOM_XML_PROPS_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps", DEFAULT_SELECTED_STYLE = "/APA.XSL", DEFAULT_STYLE_NAME = "APA", DEFAULT_VERSION = "6", API_TO_OOXML_SOURCE_TYPE, OOXML_TO_API_SOURCE_TYPE, SIMPLE_FIELD_TO_XML_TAG, XML_TAG_TO_SIMPLE_FIELD, import_lib2, FONT_FAMILY_FALLBACKS, DEFAULT_GENERIC_FALLBACK = "sans-serif", DEFAULT_FONT_SIZE_PT = 10, CURRENT_APP_VERSION = "1.
|
|
105836
|
+
}, DERIVED_ID_LENGTH = 24, groupedCache, SDT_NODE_NAMES, SDT_BLOCK_NAME = "structuredContentBlock", SDT_INLINE_NAME = "structuredContent", SDT_NODE_TYPES, VALID_CONTROL_TYPES, VALID_LOCK_MODES, VALID_APPEARANCES, FIELD_LIKE_SDT_TYPES, liveDocumentCountsCache, BIBLIOGRAPHY_NAMESPACE_URI = "http://schemas.openxmlformats.org/officeDocument/2006/bibliography", CUSTOM_XML_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml", CUSTOM_XML_PROPS_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps", DEFAULT_SELECTED_STYLE = "/APA.XSL", DEFAULT_STYLE_NAME = "APA", DEFAULT_VERSION = "6", API_TO_OOXML_SOURCE_TYPE, OOXML_TO_API_SOURCE_TYPE, SIMPLE_FIELD_TO_XML_TAG, XML_TAG_TO_SIMPLE_FIELD, import_lib2, FONT_FAMILY_FALLBACKS, DEFAULT_GENERIC_FALLBACK = "sans-serif", DEFAULT_FONT_SIZE_PT = 10, CURRENT_APP_VERSION = "1.34.0", collectRunDefaultProperties = (runProps, { allowOverrideTypeface = true, allowOverrideSize = true, themeResolver, state }) => {
|
|
105837
105837
|
if (!runProps?.elements?.length || !state)
|
|
105838
105838
|
return;
|
|
105839
105839
|
const fontsNode = runProps.elements.find((el) => el.name === "w:rFonts");
|
|
@@ -105867,7 +105867,7 @@ var isRegExp = (value) => {
|
|
|
105867
105867
|
state.kern = kernNode.attributes["w:val"];
|
|
105868
105868
|
}
|
|
105869
105869
|
}, SuperConverter;
|
|
105870
|
-
var
|
|
105870
|
+
var init_SuperConverter_UqLu6KQU_es = __esm(() => {
|
|
105871
105871
|
init_rolldown_runtime_Bg48TavK_es();
|
|
105872
105872
|
init_jszip_C49i9kUs_es();
|
|
105873
105873
|
init_xml_js_CqGKpaft_es();
|
|
@@ -109686,7 +109686,7 @@ var init_SuperConverter_CzwJ7ds9_es = __esm(() => {
|
|
|
109686
109686
|
},
|
|
109687
109687
|
"format.paragraph.setAlignment": {
|
|
109688
109688
|
memberPath: "format.paragraph.setAlignment",
|
|
109689
|
-
description: "Set paragraph alignment
|
|
109689
|
+
description: "Set visual paragraph alignment on a paragraph-like block. For RTL paragraphs, left/right are translated to Word-compatible stored justification values.",
|
|
109690
109690
|
expectedResult: "Returns a ParagraphMutationResult; reports NO_OP if the alignment already matches.",
|
|
109691
109691
|
requiresDocumentContext: true,
|
|
109692
109692
|
metadata: mutationOperation({
|
|
@@ -117616,7 +117616,10 @@ var init_SuperConverter_CzwJ7ds9_es = __esm(() => {
|
|
|
117616
117616
|
}
|
|
117617
117617
|
}, ["target", "styleId"]), paragraphMutationResultSchemaFor("styles.paragraph.setStyle"), paragraphMutationFailureSchemaFor("styles.paragraph.setStyle"), objectSchema({ target: paragraphTargetSchema }, ["target"]), paragraphMutationResultSchemaFor("styles.paragraph.clearStyle"), paragraphMutationFailureSchemaFor("styles.paragraph.clearStyle"), objectSchema({ target: paragraphTargetSchema }, ["target"]), paragraphMutationResultSchemaFor("format.paragraph.resetDirectFormatting"), paragraphMutationFailureSchemaFor("format.paragraph.resetDirectFormatting"), objectSchema({
|
|
117618
117618
|
target: paragraphTargetSchema,
|
|
117619
|
-
alignment: {
|
|
117619
|
+
alignment: {
|
|
117620
|
+
enum: [...PARAGRAPH_ALIGNMENTS],
|
|
117621
|
+
description: "Visual paragraph alignment. In RTL paragraphs, 'left' stores w:jc='right' and 'right' stores w:jc='left' so Word displays the requested side."
|
|
117622
|
+
}
|
|
117620
117623
|
}, ["target", "alignment"]), paragraphMutationResultSchemaFor("format.paragraph.setAlignment"), paragraphMutationFailureSchemaFor("format.paragraph.setAlignment"), objectSchema({ target: paragraphTargetSchema }, ["target"]), paragraphMutationResultSchemaFor("format.paragraph.clearAlignment"), paragraphMutationFailureSchemaFor("format.paragraph.clearAlignment"), { ...objectSchema({
|
|
117621
117624
|
target: paragraphTargetSchema,
|
|
117622
117625
|
left: {
|
|
@@ -144044,7 +144047,7 @@ var init_SuperConverter_CzwJ7ds9_es = __esm(() => {
|
|
|
144044
144047
|
};
|
|
144045
144048
|
});
|
|
144046
144049
|
|
|
144047
|
-
// ../../packages/superdoc/dist/chunks/create-headless-toolbar-
|
|
144050
|
+
// ../../packages/superdoc/dist/chunks/create-headless-toolbar-QcQvy-nD.es.js
|
|
144048
144051
|
function parseSizeUnit(val = "0") {
|
|
144049
144052
|
const length = val.toString() || "0";
|
|
144050
144053
|
const value = Number.parseFloat(length);
|
|
@@ -147327,6 +147330,7 @@ function getWordChanges(oldText, newText) {
|
|
|
147327
147330
|
i4++;
|
|
147328
147331
|
continue;
|
|
147329
147332
|
}
|
|
147333
|
+
const groupStart = i4;
|
|
147330
147334
|
let deleteStart = -1;
|
|
147331
147335
|
let deleteEnd = -1;
|
|
147332
147336
|
let insertText = "";
|
|
@@ -147355,7 +147359,7 @@ function getWordChanges(oldText, newText) {
|
|
|
147355
147359
|
oldTo: deleteEnd
|
|
147356
147360
|
});
|
|
147357
147361
|
else if (insertText.length > 0) {
|
|
147358
|
-
const prevStep =
|
|
147362
|
+
const prevStep = groupStart > 0 ? steps[groupStart - 1] : null;
|
|
147359
147363
|
let insertAt = 0;
|
|
147360
147364
|
if (prevStep && prevStep.type === "equal") {
|
|
147361
147365
|
const prevToken = oldTokens[prevStep.oldIdx];
|
|
@@ -152950,6 +152954,8 @@ var CSS_DIMENSION_REGEX, DOM_SIZE_UNITS, Extension = class Extension2 {
|
|
|
152950
152954
|
const documentId = activeEditor?.options?.documentId;
|
|
152951
152955
|
if (!documentId)
|
|
152952
152956
|
return null;
|
|
152957
|
+
if (typeof superdoc.getPresentationEditorForDocument === "function")
|
|
152958
|
+
return superdoc.getPresentationEditorForDocument(documentId);
|
|
152953
152959
|
return (superdoc.superdocStore?.documents ?? []).find((doc3) => doc3.getEditor?.()?.options?.documentId === documentId)?.getPresentationEditor?.() ?? null;
|
|
152954
152960
|
}, resolveToolbarSources = (superdoc) => {
|
|
152955
152961
|
const presentationEditor = resolvePresentationEditor(superdoc);
|
|
@@ -153696,17 +153702,21 @@ var CSS_DIMENSION_REGEX, DOM_SIZE_UNITS, Extension = class Extension2 {
|
|
|
153696
153702
|
active: false,
|
|
153697
153703
|
disabled: isCommandDisabled(context) || !inTable
|
|
153698
153704
|
};
|
|
153705
|
+
}, lookupCommentByCommentId = (superdoc, commentId) => {
|
|
153706
|
+
if (typeof superdoc?.getComment === "function")
|
|
153707
|
+
return superdoc.getComment(commentId) ?? null;
|
|
153708
|
+
const store = superdoc?.commentsStore;
|
|
153709
|
+
if (typeof store?.getComment === "function")
|
|
153710
|
+
return store.getComment(commentId) ?? null;
|
|
153711
|
+
return null;
|
|
153699
153712
|
}, enrichTrackedChanges = (trackedChanges = [], superdoc) => {
|
|
153700
153713
|
if (!trackedChanges.length)
|
|
153701
153714
|
return trackedChanges;
|
|
153702
|
-
const store = superdoc?.commentsStore;
|
|
153703
|
-
if (!store?.getComment)
|
|
153704
|
-
return trackedChanges;
|
|
153705
153715
|
return trackedChanges.map((change) => {
|
|
153706
153716
|
const commentId = change.id;
|
|
153707
153717
|
if (!commentId)
|
|
153708
153718
|
return change;
|
|
153709
|
-
const storeComment =
|
|
153719
|
+
const storeComment = lookupCommentByCommentId(superdoc, commentId);
|
|
153710
153720
|
if (!storeComment)
|
|
153711
153721
|
return change;
|
|
153712
153722
|
const comment = typeof storeComment.getValues === "function" ? storeComment.getValues() : storeComment;
|
|
@@ -154054,8 +154064,8 @@ var CSS_DIMENSION_REGEX, DOM_SIZE_UNITS, Extension = class Extension2 {
|
|
|
154054
154064
|
}
|
|
154055
154065
|
};
|
|
154056
154066
|
};
|
|
154057
|
-
var
|
|
154058
|
-
|
|
154067
|
+
var init_create_headless_toolbar_QcQvy_nD_es = __esm(() => {
|
|
154068
|
+
init_SuperConverter_UqLu6KQU_es();
|
|
154059
154069
|
init_uuid_qzgm05fK_es();
|
|
154060
154070
|
init_constants_DrU4EASo_es();
|
|
154061
154071
|
init_dist_B8HfvhaK_es();
|
|
@@ -183505,8 +183515,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
183505
183515
|
patchFlag |= 2048;
|
|
183506
183516
|
}
|
|
183507
183517
|
root2.codegenNode = createVNodeCall(context, helper(FRAGMENT), undefined, root2.children, patchFlag, undefined, undefined, true, undefined, false);
|
|
183508
|
-
}
|
|
183509
|
-
;
|
|
183518
|
+
}
|
|
183510
183519
|
}
|
|
183511
183520
|
function traverseChildren(parent, context) {
|
|
183512
183521
|
let i4 = 0;
|
|
@@ -208782,7 +208791,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
|
|
|
208782
208791
|
init_remark_gfm_BhnWr3yf_es();
|
|
208783
208792
|
});
|
|
208784
208793
|
|
|
208785
|
-
// ../../packages/superdoc/dist/chunks/src-
|
|
208794
|
+
// ../../packages/superdoc/dist/chunks/src-DXlYP0an.es.js
|
|
208786
208795
|
function deleteProps(obj, propOrProps) {
|
|
208787
208796
|
const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
|
|
208788
208797
|
const removeNested = (target, pathParts, index2 = 0) => {
|
|
@@ -209565,7 +209574,7 @@ function prosemirrorToYXmlFragment(doc$12, xmlFragment) {
|
|
|
209565
209574
|
}
|
|
209566
209575
|
function getSuperdocVersion() {
|
|
209567
209576
|
try {
|
|
209568
|
-
return "1.
|
|
209577
|
+
return "1.34.0";
|
|
209569
209578
|
} catch {
|
|
209570
209579
|
return "unknown";
|
|
209571
209580
|
}
|
|
@@ -240422,6 +240431,8 @@ function metadataGetWrapper(editor, input2) {
|
|
|
240422
240431
|
return findEntry(getConvertedXml2(editor), input2.id);
|
|
240423
240432
|
}
|
|
240424
240433
|
function metadataResolveWrapper(editor, input2) {
|
|
240434
|
+
if (!hasPayloadEntry(getConvertedXml2(editor), input2.id))
|
|
240435
|
+
return null;
|
|
240425
240436
|
const target = resolveAnchorTarget(editor, input2.id);
|
|
240426
240437
|
return target ? {
|
|
240427
240438
|
id: input2.id,
|
|
@@ -280172,7 +280183,7 @@ var Node$13 = class Node$14 {
|
|
|
280172
280183
|
domAvailabilityCache = false;
|
|
280173
280184
|
return false;
|
|
280174
280185
|
}
|
|
280175
|
-
}, summaryVersion = "1.
|
|
280186
|
+
}, summaryVersion = "1.34.0", nodeKeys, markKeys, transformListsInCopiedContent = (html3) => {
|
|
280176
280187
|
const container = document.createElement("div");
|
|
280177
280188
|
container.innerHTML = html3;
|
|
280178
280189
|
const result = [];
|
|
@@ -281347,7 +281358,7 @@ var Node$13 = class Node$14 {
|
|
|
281347
281358
|
return () => {};
|
|
281348
281359
|
const handle3 = setInterval(callback, intervalMs);
|
|
281349
281360
|
return () => clearInterval(handle3);
|
|
281350
|
-
}, HISTORY_UNSAFE_OPS, CANONICAL_COMMENT_IGNORED_KEYS, INITIAL_HASH, ROUND_CONSTANTS, V1_COVERAGE, V2_COVERAGE, SNAPSHOT_VERSION_V2 = "sd-diff-snapshot/v2", PAYLOAD_VERSION_V1 = "sd-diff-payload/v1", PAYLOAD_VERSION_V2 = "sd-diff-payload/v2", ENGINE_ID = "super-editor", STAGED_CONVERTER_KEYS, DiffServiceError, TC_LEVEL_MIN = 1, TC_LEVEL_MAX = 9, ALLOWED_WRAP_ATTRS, WRAP_TYPES_SUPPORTING_SIDE, WRAP_TYPES_SUPPORTING_DISTANCES, RELATIVE_HEIGHT_MIN = 0, RELATIVE_HEIGHT_MAX = 4294967295, FORBIDDEN_RAW_PATCH_NAMES, CONTROL_TYPE_SDT_PR_ELEMENTS, DEFAULT_CHECKBOX_SYMBOL_FONT2 = "MS Gothic", DEFAULT_CHECKBOX_CHECKED_HEX2 = "2612", DEFAULT_CHECKBOX_UNCHECKED_HEX2 = "2610", VARIANT_ORDER, KIND_ORDER, HEADER_RELATIONSHIP_TYPE3 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header", FOOTER_RELATIONSHIP_TYPE3 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer", DOCUMENT_RELS_PATH2 = "word/_rels/document.xml.rels", HEADER_FILE_PATTERN2, FOOTER_FILE_PATTERN2, SPECIAL_NOTE_TYPES, BOOKMARK_SCAN_REVISION_PREFIX = "bookmark-scan:", import_lib4, CUSTOM_XML_DATA_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml", CUSTOM_XML_PROPS_RELATIONSHIP_TYPE2 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps", CUSTOM_XML_DATASTORE_NAMESPACE = "http://schemas.openxmlformats.org/officeDocument/2006/customXml", SETTINGS_PART, RESTART_POLICY_TO_OOXML, VALID_DISPLAYS, REFERENCE_BLOCK_PREFIX, CAPTION_STYLE_NAMES, CAPTION_PARAGRAPH_STYLE_ID = "Caption", CAPTION_FORMAT_TO_OOXML, DOCUMENT_STAT_FIELD_TYPES, TOA_LEADER_REVERSE_MAP, EDGE_NODE_TYPES, CONTENT_TYPES_PART_ID = "[Content_Types].xml", CONTENT_TYPES_NS = "http://schemas.openxmlformats.org/package/2006/content-types", contentTypesPartDescriptor, empty_exports, init_empty, CURRENT_APP_VERSION2 = "1.
|
|
281361
|
+
}, HISTORY_UNSAFE_OPS, CANONICAL_COMMENT_IGNORED_KEYS, INITIAL_HASH, ROUND_CONSTANTS, V1_COVERAGE, V2_COVERAGE, SNAPSHOT_VERSION_V2 = "sd-diff-snapshot/v2", PAYLOAD_VERSION_V1 = "sd-diff-payload/v1", PAYLOAD_VERSION_V2 = "sd-diff-payload/v2", ENGINE_ID = "super-editor", STAGED_CONVERTER_KEYS, DiffServiceError, TC_LEVEL_MIN = 1, TC_LEVEL_MAX = 9, ALLOWED_WRAP_ATTRS, WRAP_TYPES_SUPPORTING_SIDE, WRAP_TYPES_SUPPORTING_DISTANCES, RELATIVE_HEIGHT_MIN = 0, RELATIVE_HEIGHT_MAX = 4294967295, FORBIDDEN_RAW_PATCH_NAMES, CONTROL_TYPE_SDT_PR_ELEMENTS, DEFAULT_CHECKBOX_SYMBOL_FONT2 = "MS Gothic", DEFAULT_CHECKBOX_CHECKED_HEX2 = "2612", DEFAULT_CHECKBOX_UNCHECKED_HEX2 = "2610", VARIANT_ORDER, KIND_ORDER, HEADER_RELATIONSHIP_TYPE3 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header", FOOTER_RELATIONSHIP_TYPE3 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer", DOCUMENT_RELS_PATH2 = "word/_rels/document.xml.rels", HEADER_FILE_PATTERN2, FOOTER_FILE_PATTERN2, SPECIAL_NOTE_TYPES, BOOKMARK_SCAN_REVISION_PREFIX = "bookmark-scan:", import_lib4, CUSTOM_XML_DATA_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml", CUSTOM_XML_PROPS_RELATIONSHIP_TYPE2 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps", CUSTOM_XML_DATASTORE_NAMESPACE = "http://schemas.openxmlformats.org/officeDocument/2006/customXml", SETTINGS_PART, RESTART_POLICY_TO_OOXML, VALID_DISPLAYS, REFERENCE_BLOCK_PREFIX, CAPTION_STYLE_NAMES, CAPTION_PARAGRAPH_STYLE_ID = "Caption", CAPTION_FORMAT_TO_OOXML, DOCUMENT_STAT_FIELD_TYPES, TOA_LEADER_REVERSE_MAP, EDGE_NODE_TYPES, CONTENT_TYPES_PART_ID = "[Content_Types].xml", CONTENT_TYPES_NS = "http://schemas.openxmlformats.org/package/2006/content-types", contentTypesPartDescriptor, empty_exports, init_empty, CURRENT_APP_VERSION2 = "1.34.0", PIXELS_PER_INCH2 = 96, MAX_HEIGHT_BUFFER_PX = 50, MAX_WIDTH_BUFFER_PX = 20, cloneExtensionInstance = (extension2) => {
|
|
281351
281362
|
const extensionLike = extension2;
|
|
281352
281363
|
const config3 = extensionLike?.config;
|
|
281353
281364
|
const ExtensionCtor = extensionLike?.constructor;
|
|
@@ -297169,13 +297180,13 @@ menclose::after {
|
|
|
297169
297180
|
return;
|
|
297170
297181
|
console.log(...args$1);
|
|
297171
297182
|
}, 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;
|
|
297172
|
-
var
|
|
297183
|
+
var init_src_DXlYP0an_es = __esm(() => {
|
|
297173
297184
|
init_rolldown_runtime_Bg48TavK_es();
|
|
297174
|
-
|
|
297185
|
+
init_SuperConverter_UqLu6KQU_es();
|
|
297175
297186
|
init_jszip_C49i9kUs_es();
|
|
297176
297187
|
init_xml_js_CqGKpaft_es();
|
|
297177
297188
|
init_uuid_qzgm05fK_es();
|
|
297178
|
-
|
|
297189
|
+
init_create_headless_toolbar_QcQvy_nD_es();
|
|
297179
297190
|
init_constants_DrU4EASo_es();
|
|
297180
297191
|
init_dist_B8HfvhaK_es();
|
|
297181
297192
|
init_unified_Dsuw2be5_es();
|
|
@@ -319058,6 +319069,12 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
319058
319069
|
customButtons: [],
|
|
319059
319070
|
showFormattingMarksButton: false
|
|
319060
319071
|
};
|
|
319072
|
+
toolbarItems = [];
|
|
319073
|
+
overflowItems = [];
|
|
319074
|
+
isDev = false;
|
|
319075
|
+
role = "editor";
|
|
319076
|
+
superdoc;
|
|
319077
|
+
toolbarContainer = null;
|
|
319061
319078
|
constructor(config3) {
|
|
319062
319079
|
super();
|
|
319063
319080
|
this.config = {
|
|
@@ -334891,11 +334908,11 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
334891
334908
|
];
|
|
334892
334909
|
});
|
|
334893
334910
|
|
|
334894
|
-
// ../../packages/superdoc/dist/chunks/create-super-doc-ui-
|
|
334911
|
+
// ../../packages/superdoc/dist/chunks/create-super-doc-ui-BuJIur0F.es.js
|
|
334895
334912
|
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;
|
|
334896
|
-
var
|
|
334897
|
-
|
|
334898
|
-
|
|
334913
|
+
var init_create_super_doc_ui_BuJIur0F_es = __esm(() => {
|
|
334914
|
+
init_SuperConverter_UqLu6KQU_es();
|
|
334915
|
+
init_create_headless_toolbar_QcQvy_nD_es();
|
|
334899
334916
|
MOD_ALIASES = new Set([
|
|
334900
334917
|
"Mod",
|
|
334901
334918
|
"Meta",
|
|
@@ -334937,16 +334954,16 @@ var init_zipper_yaJVJ4z9_es = __esm(() => {
|
|
|
334937
334954
|
|
|
334938
334955
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
334939
334956
|
var init_super_editor_es = __esm(() => {
|
|
334940
|
-
|
|
334941
|
-
|
|
334957
|
+
init_src_DXlYP0an_es();
|
|
334958
|
+
init_SuperConverter_UqLu6KQU_es();
|
|
334942
334959
|
init_jszip_C49i9kUs_es();
|
|
334943
334960
|
init_xml_js_CqGKpaft_es();
|
|
334944
|
-
|
|
334961
|
+
init_create_headless_toolbar_QcQvy_nD_es();
|
|
334945
334962
|
init_constants_DrU4EASo_es();
|
|
334946
334963
|
init_dist_B8HfvhaK_es();
|
|
334947
334964
|
init_unified_Dsuw2be5_es();
|
|
334948
334965
|
init_DocxZipper_CZMPWpOp_es();
|
|
334949
|
-
|
|
334966
|
+
init_create_super_doc_ui_BuJIur0F_es();
|
|
334950
334967
|
init_ui_C5PAS9hY_es();
|
|
334951
334968
|
init_eventemitter3_BnGqBE_Q_es();
|
|
334952
334969
|
init_errors_CNaD6vcg_es();
|
|
@@ -337544,7 +337561,7 @@ More content with **bold** and *italic*.`
|
|
|
337544
337561
|
},
|
|
337545
337562
|
"format.paragraph.setAlignment": {
|
|
337546
337563
|
memberPath: "format.paragraph.setAlignment",
|
|
337547
|
-
description: "Set paragraph alignment
|
|
337564
|
+
description: "Set visual paragraph alignment on a paragraph-like block. For RTL paragraphs, left/right are translated to Word-compatible stored justification values.",
|
|
337548
337565
|
expectedResult: "Returns a ParagraphMutationResult; reports NO_OP if the alignment already matches.",
|
|
337549
337566
|
requiresDocumentContext: true,
|
|
337550
337567
|
metadata: mutationOperation2({
|
|
@@ -345558,10 +345575,13 @@ var init_schemas4 = __esm(() => {
|
|
|
345558
345575
|
failure: paragraphMutationFailureSchemaFor2("format.paragraph.resetDirectFormatting")
|
|
345559
345576
|
},
|
|
345560
345577
|
"format.paragraph.setAlignment": {
|
|
345561
|
-
input: objectSchema2({
|
|
345562
|
-
|
|
345563
|
-
|
|
345564
|
-
|
|
345578
|
+
input: objectSchema2({
|
|
345579
|
+
target: paragraphTargetSchema2,
|
|
345580
|
+
alignment: {
|
|
345581
|
+
enum: [...PARAGRAPH_ALIGNMENTS2],
|
|
345582
|
+
description: "Visual paragraph alignment. In RTL paragraphs, 'left' stores w:jc='right' and 'right' stores w:jc='left' so Word displays the requested side."
|
|
345583
|
+
}
|
|
345584
|
+
}, ["target", "alignment"]),
|
|
345565
345585
|
output: paragraphMutationResultSchemaFor2("format.paragraph.setAlignment"),
|
|
345566
345586
|
success: paragraphMutationSuccessSchema2,
|
|
345567
345587
|
failure: paragraphMutationFailureSchemaFor2("format.paragraph.setAlignment")
|
|
@@ -438642,6 +438662,7 @@ function getWordChanges2(oldText, newText) {
|
|
|
438642
438662
|
i5++;
|
|
438643
438663
|
continue;
|
|
438644
438664
|
}
|
|
438665
|
+
const groupStart = i5;
|
|
438645
438666
|
let deleteStart = -1;
|
|
438646
438667
|
let deleteEnd = -1;
|
|
438647
438668
|
let insertText2 = "";
|
|
@@ -438662,7 +438683,7 @@ function getWordChanges2(oldText, newText) {
|
|
|
438662
438683
|
} else if (deleteStart !== -1) {
|
|
438663
438684
|
result.push({ type: "delete", oldFrom: deleteStart, oldTo: deleteEnd });
|
|
438664
438685
|
} else if (insertText2.length > 0) {
|
|
438665
|
-
const prevStep =
|
|
438686
|
+
const prevStep = groupStart > 0 ? steps[groupStart - 1] : null;
|
|
438666
438687
|
let insertAt = 0;
|
|
438667
438688
|
if (prevStep && prevStep.type === "equal") {
|
|
438668
438689
|
const prevToken = oldTokens[prevStep.oldIdx];
|
|
@@ -464767,6 +464788,8 @@ function metadataGetWrapper2(editor, input2) {
|
|
|
464767
464788
|
return findEntry2(getConvertedXml5(editor), input2.id);
|
|
464768
464789
|
}
|
|
464769
464790
|
function metadataResolveWrapper2(editor, input2) {
|
|
464791
|
+
if (!hasPayloadEntry2(getConvertedXml5(editor), input2.id))
|
|
464792
|
+
return null;
|
|
464770
464793
|
const target = resolveAnchorTarget2(editor, input2.id);
|
|
464771
464794
|
return target ? { id: input2.id, target } : null;
|
|
464772
464795
|
}
|
|
@@ -470833,7 +470856,7 @@ var init_catalog = __esm(() => {
|
|
|
470833
470856
|
"right",
|
|
470834
470857
|
"justify"
|
|
470835
470858
|
],
|
|
470836
|
-
description: "Required for action 'set_alignment'."
|
|
470859
|
+
description: "Visual paragraph alignment. In RTL paragraphs, 'left' stores w:jc='right' and 'right' stores w:jc='left' so Word displays the requested side. Required for action 'set_alignment'."
|
|
470837
470860
|
},
|
|
470838
470861
|
left: {
|
|
470839
470862
|
type: "integer",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superdoc-dev/mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0-next.10",
|
|
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/document-api": "0.0.1",
|
|
22
23
|
"@superdoc/super-editor": "0.0.1",
|
|
23
|
-
"superdoc": "1.
|
|
24
|
-
"@superdoc/document-api": "0.0.1"
|
|
24
|
+
"superdoc": "1.34.0"
|
|
25
25
|
},
|
|
26
26
|
"publishConfig": {
|
|
27
27
|
"access": "public"
|