@superdoc-dev/mcp 0.6.0 → 0.7.0-next.4
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 +46 -35
- 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-BAucJwkS.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];
|
|
@@ -154054,8 +154058,8 @@ var CSS_DIMENSION_REGEX, DOM_SIZE_UNITS, Extension = class Extension2 {
|
|
|
154054
154058
|
}
|
|
154055
154059
|
};
|
|
154056
154060
|
};
|
|
154057
|
-
var
|
|
154058
|
-
|
|
154061
|
+
var init_create_headless_toolbar_BAucJwkS_es = __esm(() => {
|
|
154062
|
+
init_SuperConverter_UqLu6KQU_es();
|
|
154059
154063
|
init_uuid_qzgm05fK_es();
|
|
154060
154064
|
init_constants_DrU4EASo_es();
|
|
154061
154065
|
init_dist_B8HfvhaK_es();
|
|
@@ -183505,8 +183509,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
183505
183509
|
patchFlag |= 2048;
|
|
183506
183510
|
}
|
|
183507
183511
|
root2.codegenNode = createVNodeCall(context, helper(FRAGMENT), undefined, root2.children, patchFlag, undefined, undefined, true, undefined, false);
|
|
183508
|
-
}
|
|
183509
|
-
;
|
|
183512
|
+
}
|
|
183510
183513
|
}
|
|
183511
183514
|
function traverseChildren(parent, context) {
|
|
183512
183515
|
let i4 = 0;
|
|
@@ -208782,7 +208785,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
|
|
|
208782
208785
|
init_remark_gfm_BhnWr3yf_es();
|
|
208783
208786
|
});
|
|
208784
208787
|
|
|
208785
|
-
// ../../packages/superdoc/dist/chunks/src-
|
|
208788
|
+
// ../../packages/superdoc/dist/chunks/src-BfBC9M6d.es.js
|
|
208786
208789
|
function deleteProps(obj, propOrProps) {
|
|
208787
208790
|
const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
|
|
208788
208791
|
const removeNested = (target, pathParts, index2 = 0) => {
|
|
@@ -209565,7 +209568,7 @@ function prosemirrorToYXmlFragment(doc$12, xmlFragment) {
|
|
|
209565
209568
|
}
|
|
209566
209569
|
function getSuperdocVersion() {
|
|
209567
209570
|
try {
|
|
209568
|
-
return "1.
|
|
209571
|
+
return "1.34.0";
|
|
209569
209572
|
} catch {
|
|
209570
209573
|
return "unknown";
|
|
209571
209574
|
}
|
|
@@ -240422,6 +240425,8 @@ function metadataGetWrapper(editor, input2) {
|
|
|
240422
240425
|
return findEntry(getConvertedXml2(editor), input2.id);
|
|
240423
240426
|
}
|
|
240424
240427
|
function metadataResolveWrapper(editor, input2) {
|
|
240428
|
+
if (!hasPayloadEntry(getConvertedXml2(editor), input2.id))
|
|
240429
|
+
return null;
|
|
240425
240430
|
const target = resolveAnchorTarget(editor, input2.id);
|
|
240426
240431
|
return target ? {
|
|
240427
240432
|
id: input2.id,
|
|
@@ -280172,7 +280177,7 @@ var Node$13 = class Node$14 {
|
|
|
280172
280177
|
domAvailabilityCache = false;
|
|
280173
280178
|
return false;
|
|
280174
280179
|
}
|
|
280175
|
-
}, summaryVersion = "1.
|
|
280180
|
+
}, summaryVersion = "1.34.0", nodeKeys, markKeys, transformListsInCopiedContent = (html3) => {
|
|
280176
280181
|
const container = document.createElement("div");
|
|
280177
280182
|
container.innerHTML = html3;
|
|
280178
280183
|
const result = [];
|
|
@@ -281347,7 +281352,7 @@ var Node$13 = class Node$14 {
|
|
|
281347
281352
|
return () => {};
|
|
281348
281353
|
const handle3 = setInterval(callback, intervalMs);
|
|
281349
281354
|
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.
|
|
281355
|
+
}, 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
281356
|
const extensionLike = extension2;
|
|
281352
281357
|
const config3 = extensionLike?.config;
|
|
281353
281358
|
const ExtensionCtor = extensionLike?.constructor;
|
|
@@ -297169,13 +297174,13 @@ menclose::after {
|
|
|
297169
297174
|
return;
|
|
297170
297175
|
console.log(...args$1);
|
|
297171
297176
|
}, 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
|
|
297177
|
+
var init_src_BfBC9M6d_es = __esm(() => {
|
|
297173
297178
|
init_rolldown_runtime_Bg48TavK_es();
|
|
297174
|
-
|
|
297179
|
+
init_SuperConverter_UqLu6KQU_es();
|
|
297175
297180
|
init_jszip_C49i9kUs_es();
|
|
297176
297181
|
init_xml_js_CqGKpaft_es();
|
|
297177
297182
|
init_uuid_qzgm05fK_es();
|
|
297178
|
-
|
|
297183
|
+
init_create_headless_toolbar_BAucJwkS_es();
|
|
297179
297184
|
init_constants_DrU4EASo_es();
|
|
297180
297185
|
init_dist_B8HfvhaK_es();
|
|
297181
297186
|
init_unified_Dsuw2be5_es();
|
|
@@ -334891,11 +334896,11 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
334891
334896
|
];
|
|
334892
334897
|
});
|
|
334893
334898
|
|
|
334894
|
-
// ../../packages/superdoc/dist/chunks/create-super-doc-ui-
|
|
334899
|
+
// ../../packages/superdoc/dist/chunks/create-super-doc-ui-D9Dr5djW.es.js
|
|
334895
334900
|
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
|
-
|
|
334901
|
+
var init_create_super_doc_ui_D9Dr5djW_es = __esm(() => {
|
|
334902
|
+
init_SuperConverter_UqLu6KQU_es();
|
|
334903
|
+
init_create_headless_toolbar_BAucJwkS_es();
|
|
334899
334904
|
MOD_ALIASES = new Set([
|
|
334900
334905
|
"Mod",
|
|
334901
334906
|
"Meta",
|
|
@@ -334937,16 +334942,16 @@ var init_zipper_yaJVJ4z9_es = __esm(() => {
|
|
|
334937
334942
|
|
|
334938
334943
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
334939
334944
|
var init_super_editor_es = __esm(() => {
|
|
334940
|
-
|
|
334941
|
-
|
|
334945
|
+
init_src_BfBC9M6d_es();
|
|
334946
|
+
init_SuperConverter_UqLu6KQU_es();
|
|
334942
334947
|
init_jszip_C49i9kUs_es();
|
|
334943
334948
|
init_xml_js_CqGKpaft_es();
|
|
334944
|
-
|
|
334949
|
+
init_create_headless_toolbar_BAucJwkS_es();
|
|
334945
334950
|
init_constants_DrU4EASo_es();
|
|
334946
334951
|
init_dist_B8HfvhaK_es();
|
|
334947
334952
|
init_unified_Dsuw2be5_es();
|
|
334948
334953
|
init_DocxZipper_CZMPWpOp_es();
|
|
334949
|
-
|
|
334954
|
+
init_create_super_doc_ui_D9Dr5djW_es();
|
|
334950
334955
|
init_ui_C5PAS9hY_es();
|
|
334951
334956
|
init_eventemitter3_BnGqBE_Q_es();
|
|
334952
334957
|
init_errors_CNaD6vcg_es();
|
|
@@ -337544,7 +337549,7 @@ More content with **bold** and *italic*.`
|
|
|
337544
337549
|
},
|
|
337545
337550
|
"format.paragraph.setAlignment": {
|
|
337546
337551
|
memberPath: "format.paragraph.setAlignment",
|
|
337547
|
-
description: "Set paragraph alignment
|
|
337552
|
+
description: "Set visual paragraph alignment on a paragraph-like block. For RTL paragraphs, left/right are translated to Word-compatible stored justification values.",
|
|
337548
337553
|
expectedResult: "Returns a ParagraphMutationResult; reports NO_OP if the alignment already matches.",
|
|
337549
337554
|
requiresDocumentContext: true,
|
|
337550
337555
|
metadata: mutationOperation2({
|
|
@@ -345558,10 +345563,13 @@ var init_schemas4 = __esm(() => {
|
|
|
345558
345563
|
failure: paragraphMutationFailureSchemaFor2("format.paragraph.resetDirectFormatting")
|
|
345559
345564
|
},
|
|
345560
345565
|
"format.paragraph.setAlignment": {
|
|
345561
|
-
input: objectSchema2({
|
|
345562
|
-
|
|
345563
|
-
|
|
345564
|
-
|
|
345566
|
+
input: objectSchema2({
|
|
345567
|
+
target: paragraphTargetSchema2,
|
|
345568
|
+
alignment: {
|
|
345569
|
+
enum: [...PARAGRAPH_ALIGNMENTS2],
|
|
345570
|
+
description: "Visual paragraph alignment. In RTL paragraphs, 'left' stores w:jc='right' and 'right' stores w:jc='left' so Word displays the requested side."
|
|
345571
|
+
}
|
|
345572
|
+
}, ["target", "alignment"]),
|
|
345565
345573
|
output: paragraphMutationResultSchemaFor2("format.paragraph.setAlignment"),
|
|
345566
345574
|
success: paragraphMutationSuccessSchema2,
|
|
345567
345575
|
failure: paragraphMutationFailureSchemaFor2("format.paragraph.setAlignment")
|
|
@@ -438642,6 +438650,7 @@ function getWordChanges2(oldText, newText) {
|
|
|
438642
438650
|
i5++;
|
|
438643
438651
|
continue;
|
|
438644
438652
|
}
|
|
438653
|
+
const groupStart = i5;
|
|
438645
438654
|
let deleteStart = -1;
|
|
438646
438655
|
let deleteEnd = -1;
|
|
438647
438656
|
let insertText2 = "";
|
|
@@ -438662,7 +438671,7 @@ function getWordChanges2(oldText, newText) {
|
|
|
438662
438671
|
} else if (deleteStart !== -1) {
|
|
438663
438672
|
result.push({ type: "delete", oldFrom: deleteStart, oldTo: deleteEnd });
|
|
438664
438673
|
} else if (insertText2.length > 0) {
|
|
438665
|
-
const prevStep =
|
|
438674
|
+
const prevStep = groupStart > 0 ? steps[groupStart - 1] : null;
|
|
438666
438675
|
let insertAt = 0;
|
|
438667
438676
|
if (prevStep && prevStep.type === "equal") {
|
|
438668
438677
|
const prevToken = oldTokens[prevStep.oldIdx];
|
|
@@ -464767,6 +464776,8 @@ function metadataGetWrapper2(editor, input2) {
|
|
|
464767
464776
|
return findEntry2(getConvertedXml5(editor), input2.id);
|
|
464768
464777
|
}
|
|
464769
464778
|
function metadataResolveWrapper2(editor, input2) {
|
|
464779
|
+
if (!hasPayloadEntry2(getConvertedXml5(editor), input2.id))
|
|
464780
|
+
return null;
|
|
464770
464781
|
const target = resolveAnchorTarget2(editor, input2.id);
|
|
464771
464782
|
return target ? { id: input2.id, target } : null;
|
|
464772
464783
|
}
|
|
@@ -470833,7 +470844,7 @@ var init_catalog = __esm(() => {
|
|
|
470833
470844
|
"right",
|
|
470834
470845
|
"justify"
|
|
470835
470846
|
],
|
|
470836
|
-
description: "Required for action 'set_alignment'."
|
|
470847
|
+
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
470848
|
},
|
|
470838
470849
|
left: {
|
|
470839
470850
|
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.4",
|
|
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"
|