@superdoc-dev/mcp 0.7.0-next.1 → 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 +35 -27
- package/package.json +1 -1
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-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")
|
|
@@ -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_SvCYq2KK_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_SvCYq2KK_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_SvCYq2KK_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();
|
|
@@ -208781,7 +208785,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
|
|
|
208781
208785
|
init_remark_gfm_BhnWr3yf_es();
|
|
208782
208786
|
});
|
|
208783
208787
|
|
|
208784
|
-
// ../../packages/superdoc/dist/chunks/src-
|
|
208788
|
+
// ../../packages/superdoc/dist/chunks/src-BfBC9M6d.es.js
|
|
208785
208789
|
function deleteProps(obj, propOrProps) {
|
|
208786
208790
|
const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
|
|
208787
208791
|
const removeNested = (target, pathParts, index2 = 0) => {
|
|
@@ -297170,13 +297174,13 @@ menclose::after {
|
|
|
297170
297174
|
return;
|
|
297171
297175
|
console.log(...args$1);
|
|
297172
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;
|
|
297173
|
-
var
|
|
297177
|
+
var init_src_BfBC9M6d_es = __esm(() => {
|
|
297174
297178
|
init_rolldown_runtime_Bg48TavK_es();
|
|
297175
|
-
|
|
297179
|
+
init_SuperConverter_UqLu6KQU_es();
|
|
297176
297180
|
init_jszip_C49i9kUs_es();
|
|
297177
297181
|
init_xml_js_CqGKpaft_es();
|
|
297178
297182
|
init_uuid_qzgm05fK_es();
|
|
297179
|
-
|
|
297183
|
+
init_create_headless_toolbar_BAucJwkS_es();
|
|
297180
297184
|
init_constants_DrU4EASo_es();
|
|
297181
297185
|
init_dist_B8HfvhaK_es();
|
|
297182
297186
|
init_unified_Dsuw2be5_es();
|
|
@@ -334892,11 +334896,11 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
334892
334896
|
];
|
|
334893
334897
|
});
|
|
334894
334898
|
|
|
334895
|
-
// ../../packages/superdoc/dist/chunks/create-super-doc-ui-
|
|
334899
|
+
// ../../packages/superdoc/dist/chunks/create-super-doc-ui-D9Dr5djW.es.js
|
|
334896
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;
|
|
334897
|
-
var
|
|
334898
|
-
|
|
334899
|
-
|
|
334901
|
+
var init_create_super_doc_ui_D9Dr5djW_es = __esm(() => {
|
|
334902
|
+
init_SuperConverter_UqLu6KQU_es();
|
|
334903
|
+
init_create_headless_toolbar_BAucJwkS_es();
|
|
334900
334904
|
MOD_ALIASES = new Set([
|
|
334901
334905
|
"Mod",
|
|
334902
334906
|
"Meta",
|
|
@@ -334938,16 +334942,16 @@ var init_zipper_yaJVJ4z9_es = __esm(() => {
|
|
|
334938
334942
|
|
|
334939
334943
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
334940
334944
|
var init_super_editor_es = __esm(() => {
|
|
334941
|
-
|
|
334942
|
-
|
|
334945
|
+
init_src_BfBC9M6d_es();
|
|
334946
|
+
init_SuperConverter_UqLu6KQU_es();
|
|
334943
334947
|
init_jszip_C49i9kUs_es();
|
|
334944
334948
|
init_xml_js_CqGKpaft_es();
|
|
334945
|
-
|
|
334949
|
+
init_create_headless_toolbar_BAucJwkS_es();
|
|
334946
334950
|
init_constants_DrU4EASo_es();
|
|
334947
334951
|
init_dist_B8HfvhaK_es();
|
|
334948
334952
|
init_unified_Dsuw2be5_es();
|
|
334949
334953
|
init_DocxZipper_CZMPWpOp_es();
|
|
334950
|
-
|
|
334954
|
+
init_create_super_doc_ui_D9Dr5djW_es();
|
|
334951
334955
|
init_ui_C5PAS9hY_es();
|
|
334952
334956
|
init_eventemitter3_BnGqBE_Q_es();
|
|
334953
334957
|
init_errors_CNaD6vcg_es();
|
|
@@ -337545,7 +337549,7 @@ More content with **bold** and *italic*.`
|
|
|
337545
337549
|
},
|
|
337546
337550
|
"format.paragraph.setAlignment": {
|
|
337547
337551
|
memberPath: "format.paragraph.setAlignment",
|
|
337548
|
-
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.",
|
|
337549
337553
|
expectedResult: "Returns a ParagraphMutationResult; reports NO_OP if the alignment already matches.",
|
|
337550
337554
|
requiresDocumentContext: true,
|
|
337551
337555
|
metadata: mutationOperation2({
|
|
@@ -345559,10 +345563,13 @@ var init_schemas4 = __esm(() => {
|
|
|
345559
345563
|
failure: paragraphMutationFailureSchemaFor2("format.paragraph.resetDirectFormatting")
|
|
345560
345564
|
},
|
|
345561
345565
|
"format.paragraph.setAlignment": {
|
|
345562
|
-
input: objectSchema2({
|
|
345563
|
-
|
|
345564
|
-
|
|
345565
|
-
|
|
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"]),
|
|
345566
345573
|
output: paragraphMutationResultSchemaFor2("format.paragraph.setAlignment"),
|
|
345567
345574
|
success: paragraphMutationSuccessSchema2,
|
|
345568
345575
|
failure: paragraphMutationFailureSchemaFor2("format.paragraph.setAlignment")
|
|
@@ -438643,6 +438650,7 @@ function getWordChanges2(oldText, newText) {
|
|
|
438643
438650
|
i5++;
|
|
438644
438651
|
continue;
|
|
438645
438652
|
}
|
|
438653
|
+
const groupStart = i5;
|
|
438646
438654
|
let deleteStart = -1;
|
|
438647
438655
|
let deleteEnd = -1;
|
|
438648
438656
|
let insertText2 = "";
|
|
@@ -438663,7 +438671,7 @@ function getWordChanges2(oldText, newText) {
|
|
|
438663
438671
|
} else if (deleteStart !== -1) {
|
|
438664
438672
|
result.push({ type: "delete", oldFrom: deleteStart, oldTo: deleteEnd });
|
|
438665
438673
|
} else if (insertText2.length > 0) {
|
|
438666
|
-
const prevStep =
|
|
438674
|
+
const prevStep = groupStart > 0 ? steps[groupStart - 1] : null;
|
|
438667
438675
|
let insertAt = 0;
|
|
438668
438676
|
if (prevStep && prevStep.type === "equal") {
|
|
438669
438677
|
const prevToken = oldTokens[prevStep.oldIdx];
|
|
@@ -470836,7 +470844,7 @@ var init_catalog = __esm(() => {
|
|
|
470836
470844
|
"right",
|
|
470837
470845
|
"justify"
|
|
470838
470846
|
],
|
|
470839
|
-
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'."
|
|
470840
470848
|
},
|
|
470841
470849
|
left: {
|
|
470842
470850
|
type: "integer",
|