@superdoc-dev/mcp 0.12.0-next.19 → 0.12.0-next.20
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 +86 -21
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -52172,7 +52172,7 @@ var init_remark_gfm_BhnWr3yf_es = __esm(() => {
|
|
|
52172
52172
|
emptyOptions2 = {};
|
|
52173
52173
|
});
|
|
52174
52174
|
|
|
52175
|
-
// ../../packages/superdoc/dist/chunks/SuperConverter-
|
|
52175
|
+
// ../../packages/superdoc/dist/chunks/SuperConverter-CLuVUp7o.es.js
|
|
52176
52176
|
function getExtensionConfigField(extension$1, field, context = { name: "" }) {
|
|
52177
52177
|
const fieldValue = extension$1.config[field];
|
|
52178
52178
|
if (typeof fieldValue === "function")
|
|
@@ -68467,6 +68467,7 @@ function handleImageNode$1(node2, params, isAnchor) {
|
|
|
68467
68467
|
...Number.isFinite(rawBright) ? { bright: rawBright } : {},
|
|
68468
68468
|
...Number.isFinite(rawContrast) ? { contrast: rawContrast } : {}
|
|
68469
68469
|
} : undefined;
|
|
68470
|
+
const alphaModFix = extractAlphaModFix(blip);
|
|
68470
68471
|
const stretch = findChildByLocalName(blipFill?.elements, "stretch");
|
|
68471
68472
|
const fillRect = findChildByLocalName(stretch?.elements, "fillRect");
|
|
68472
68473
|
const srcRect = findChildByLocalName(blipFill?.elements, "srcRect");
|
|
@@ -68620,7 +68621,8 @@ function handleImageNode$1(node2, params, isAnchor) {
|
|
|
68620
68621
|
...order2.length ? { drawingChildOrder: order2 } : {},
|
|
68621
68622
|
...originalChildren.length ? { originalDrawingChildren: originalChildren } : {},
|
|
68622
68623
|
...hasGrayscale ? { grayscale: true } : {},
|
|
68623
|
-
...lum ? { lum } : {}
|
|
68624
|
+
...lum ? { lum } : {},
|
|
68625
|
+
...alphaModFix ? { alphaModFix } : {}
|
|
68624
68626
|
}
|
|
68625
68627
|
};
|
|
68626
68628
|
}
|
|
@@ -90111,6 +90113,9 @@ function imageNodeToRun({ node: node2, positions, sdtMetadata }) {
|
|
|
90111
90113
|
...bright != null ? { bright } : {},
|
|
90112
90114
|
...contrast != null ? { contrast } : {}
|
|
90113
90115
|
};
|
|
90116
|
+
const alphaModFixAmt = pickNumber((isPlainObject4(attrs.alphaModFix) ? attrs.alphaModFix : undefined)?.amt);
|
|
90117
|
+
if (alphaModFixAmt != null)
|
|
90118
|
+
run$1.alphaModFix = { amt: alphaModFixAmt };
|
|
90114
90119
|
const hyperlink = readImageHyperlink(attrs.hyperlink);
|
|
90115
90120
|
if (hyperlink)
|
|
90116
90121
|
run$1.hyperlink = hyperlink;
|
|
@@ -90540,6 +90545,7 @@ function imageNodeToBlock(node2, nextBlockId, positions, _trackedMeta, _trackedC
|
|
|
90540
90545
|
const lum = isPlainObject$1(attrs.lum) ? attrs.lum : undefined;
|
|
90541
90546
|
const lumBright = pickNumber(lum?.bright);
|
|
90542
90547
|
const lumContrast = pickNumber(lum?.contrast);
|
|
90548
|
+
const alphaModFixAmt = pickNumber((isPlainObject$1(attrs.alphaModFix) ? attrs.alphaModFix : undefined)?.amt);
|
|
90543
90549
|
const objectFit = isAllowedObjectFit(explicitObjectFit) ? explicitObjectFit : shouldCover ? "cover" : display === "inline" ? "scale-down" : isAnchor ? "contain" : "contain";
|
|
90544
90550
|
const zIndexFromRelativeHeight = normalizeZIndex(attrs.originalAttributes);
|
|
90545
90551
|
const zIndex = resolveFloatingZIndex(anchor?.behindDoc === true, zIndexFromRelativeHeight);
|
|
@@ -90571,6 +90577,7 @@ function imageNodeToBlock(node2, nextBlockId, positions, _trackedMeta, _trackedC
|
|
|
90571
90577
|
...lumBright != null ? { bright: lumBright } : {},
|
|
90572
90578
|
...lumContrast != null ? { contrast: lumContrast } : {}
|
|
90573
90579
|
} : undefined,
|
|
90580
|
+
alphaModFix: alphaModFixAmt != null ? { amt: alphaModFixAmt } : undefined,
|
|
90574
90581
|
...rotation !== undefined && { rotation },
|
|
90575
90582
|
...flipH !== undefined && { flipH },
|
|
90576
90583
|
...flipV !== undefined && { flipV },
|
|
@@ -106349,6 +106356,10 @@ var isRegExp = (value) => {
|
|
|
106349
106356
|
if (!hasValue || !hasPositive)
|
|
106350
106357
|
return null;
|
|
106351
106358
|
return `inset(${percentEdges.top ?? 0}% ${percentEdges.right ?? 0}% ${percentEdges.bottom ?? 0}% ${percentEdges.left ?? 0}%)`;
|
|
106359
|
+
}, extractAlphaModFix = (blip) => {
|
|
106360
|
+
const alphaModFix = findChildByLocalName(blip?.elements, "alphaModFix");
|
|
106361
|
+
const amt = Number(alphaModFix?.attributes?.amt);
|
|
106362
|
+
return Number.isFinite(amt) ? { amt } : undefined;
|
|
106352
106363
|
}, mergeAnchorPaddingIntoWrapDistances = (wrap$1, padding) => {
|
|
106353
106364
|
if (!wrap$1?.attrs || !padding)
|
|
106354
106365
|
return;
|
|
@@ -106557,6 +106568,7 @@ var isRegExp = (value) => {
|
|
|
106557
106568
|
const blip = findChildByLocalName(blipFill?.elements, "blip");
|
|
106558
106569
|
if (!blip)
|
|
106559
106570
|
return null;
|
|
106571
|
+
const alphaModFix = extractAlphaModFix(blip);
|
|
106560
106572
|
const rEmbed = blip.attributes?.["r:embed"];
|
|
106561
106573
|
if (!rEmbed)
|
|
106562
106574
|
return null;
|
|
@@ -106581,7 +106593,8 @@ var isRegExp = (value) => {
|
|
|
106581
106593
|
height,
|
|
106582
106594
|
src: path2,
|
|
106583
106595
|
imageId: picId,
|
|
106584
|
-
imageName: picName
|
|
106596
|
+
imageName: picName,
|
|
106597
|
+
...alphaModFix ? { alphaModFix } : {}
|
|
106585
106598
|
}
|
|
106586
106599
|
};
|
|
106587
106600
|
}).filter(Boolean), ...shapes];
|
|
@@ -110666,6 +110679,11 @@ var isRegExp = (value) => {
|
|
|
110666
110679
|
...Number.isFinite(attrs.lum.contrast) ? { contrast: Math.round(attrs.lum.contrast) } : {}
|
|
110667
110680
|
}
|
|
110668
110681
|
});
|
|
110682
|
+
if (attrs.alphaModFix && Number.isFinite(attrs.alphaModFix.amt))
|
|
110683
|
+
blipEffects.push({
|
|
110684
|
+
name: "a:alphaModFix",
|
|
110685
|
+
attributes: { amt: Math.round(attrs.alphaModFix.amt) }
|
|
110686
|
+
});
|
|
110669
110687
|
const hlinkRId = resolveHyperlinkRId(attrs, params);
|
|
110670
110688
|
const drawingId = attrs.id && Number(attrs.id) > 0 ? attrs.id : Math.max(1, parseInt(generateDocxRandomId(), 16));
|
|
110671
110689
|
return {
|
|
@@ -118738,7 +118756,7 @@ var isRegExp = (value) => {
|
|
|
118738
118756
|
state.kern = kernNode.attributes["w:val"];
|
|
118739
118757
|
}
|
|
118740
118758
|
}, SuperConverter;
|
|
118741
|
-
var
|
|
118759
|
+
var init_SuperConverter_CLuVUp7o_es = __esm(() => {
|
|
118742
118760
|
init_rolldown_runtime_Bg48TavK_es();
|
|
118743
118761
|
init_jszip_C49i9kUs_es();
|
|
118744
118762
|
init_xml_js_CqGKpaft_es();
|
|
@@ -159022,7 +159040,7 @@ var init_SuperConverter_Ck_bD6Ne_es = __esm(() => {
|
|
|
159022
159040
|
};
|
|
159023
159041
|
});
|
|
159024
159042
|
|
|
159025
|
-
// ../../packages/superdoc/dist/chunks/create-headless-toolbar-
|
|
159043
|
+
// ../../packages/superdoc/dist/chunks/create-headless-toolbar-Dga1mSBS.es.js
|
|
159026
159044
|
function parseSizeUnit(val = "0") {
|
|
159027
159045
|
const length = val.toString() || "0";
|
|
159028
159046
|
const value = Number.parseFloat(length);
|
|
@@ -169417,8 +169435,8 @@ var CSS_DIMENSION_REGEX, DOM_SIZE_UNITS, normalizeActorId = (value) => {
|
|
|
169417
169435
|
}
|
|
169418
169436
|
};
|
|
169419
169437
|
};
|
|
169420
|
-
var
|
|
169421
|
-
|
|
169438
|
+
var init_create_headless_toolbar_Dga1mSBS_es = __esm(() => {
|
|
169439
|
+
init_SuperConverter_CLuVUp7o_es();
|
|
169422
169440
|
init_uuid_B2wVPhPi_es();
|
|
169423
169441
|
init_constants_D9qj59G2_es();
|
|
169424
169442
|
init_dist_B8HfvhaK_es();
|
|
@@ -224108,7 +224126,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
|
|
|
224108
224126
|
init_remark_gfm_BhnWr3yf_es();
|
|
224109
224127
|
});
|
|
224110
224128
|
|
|
224111
|
-
// ../../packages/superdoc/dist/chunks/src-
|
|
224129
|
+
// ../../packages/superdoc/dist/chunks/src-CZrGc1We.es.js
|
|
224112
224130
|
function deleteProps(obj, propOrProps) {
|
|
224113
224131
|
const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
|
|
224114
224132
|
const removeNested = (target, pathParts, index2 = 0) => {
|
|
@@ -305547,6 +305565,12 @@ menclose::after {
|
|
|
305547
305565
|
}
|
|
305548
305566
|
}
|
|
305549
305567
|
return filters;
|
|
305568
|
+
}, resolveImageOpacity = (source) => {
|
|
305569
|
+
const amt = source.alphaModFix?.amt;
|
|
305570
|
+
if (typeof amt !== "number" || !Number.isFinite(amt))
|
|
305571
|
+
return null;
|
|
305572
|
+
const opacity = Math.max(0, Math.min(1e5, amt)) / 1e5;
|
|
305573
|
+
return opacity === 1 ? null : String(opacity);
|
|
305550
305574
|
}, renderImageRun = (run2, context) => {
|
|
305551
305575
|
if (!run2.src)
|
|
305552
305576
|
return null;
|
|
@@ -305633,6 +305657,9 @@ menclose::after {
|
|
|
305633
305657
|
const filters = buildImageFilters(run2);
|
|
305634
305658
|
if (filters.length > 0)
|
|
305635
305659
|
img2.style.filter = filters.join(" ");
|
|
305660
|
+
const opacity = resolveImageOpacity(run2);
|
|
305661
|
+
if (opacity != null)
|
|
305662
|
+
img2.style.opacity = opacity;
|
|
305636
305663
|
assertPmPositions(run2, "inline image run");
|
|
305637
305664
|
if (useWrapper) {
|
|
305638
305665
|
const wrapper = context.doc.createElement("span");
|
|
@@ -305735,6 +305762,9 @@ menclose::after {
|
|
|
305735
305762
|
const filters = buildImageFilters(block);
|
|
305736
305763
|
if (filters.length > 0)
|
|
305737
305764
|
img2.style.filter = filters.join(" ");
|
|
305765
|
+
const opacity = resolveImageOpacity(block);
|
|
305766
|
+
if (opacity != null)
|
|
305767
|
+
img2.style.opacity = opacity;
|
|
305738
305768
|
return buildImageHyperlinkAnchor$1?.(img2, block.hyperlink, hyperlinkDisplay) ?? img2;
|
|
305739
305769
|
}, buildImageHyperlinkAnchor = (doc$12, imageEl, hyperlink, display) => {
|
|
305740
305770
|
if (!hyperlink?.url)
|
|
@@ -309874,6 +309904,9 @@ menclose::after {
|
|
|
309874
309904
|
img2.style.objectFit = "contain";
|
|
309875
309905
|
img2.style.display = "block";
|
|
309876
309906
|
applyImageClipPath(img2, attrs.clipPath);
|
|
309907
|
+
const opacity = resolveImageOpacity(attrs);
|
|
309908
|
+
if (opacity != null)
|
|
309909
|
+
img2.style.opacity = opacity;
|
|
309877
309910
|
return img2;
|
|
309878
309911
|
}, createShapeTextImageElement = (doc$12, part) => {
|
|
309879
309912
|
const img2 = doc$12.createElement("img");
|
|
@@ -312588,6 +312621,10 @@ menclose::after {
|
|
|
312588
312621
|
block.textContent ?? null,
|
|
312589
312622
|
textboxContentBlocks
|
|
312590
312623
|
]);
|
|
312624
|
+
}, imageAlphaModFixVersion = (alphaModFix) => {
|
|
312625
|
+
if (!alphaModFix)
|
|
312626
|
+
return "";
|
|
312627
|
+
return String(alphaModFix.amt ?? "");
|
|
312591
312628
|
}, renderedBlockImageVersion = (image2) => [
|
|
312592
312629
|
image2.src ?? "",
|
|
312593
312630
|
image2.width ?? "",
|
|
@@ -312600,6 +312637,7 @@ menclose::after {
|
|
|
312600
312637
|
image2.blacklevel ?? "",
|
|
312601
312638
|
image2.grayscale ? 1 : 0,
|
|
312602
312639
|
imageLuminanceVersion(image2.lum),
|
|
312640
|
+
imageAlphaModFixVersion(image2.alphaModFix),
|
|
312603
312641
|
image2.rotation ?? "",
|
|
312604
312642
|
image2.flipH ? 1 : 0,
|
|
312605
312643
|
image2.flipV ? 1 : 0,
|
|
@@ -312622,6 +312660,7 @@ menclose::after {
|
|
|
312622
312660
|
image2.blacklevel ?? "",
|
|
312623
312661
|
image2.grayscale ? 1 : 0,
|
|
312624
312662
|
imageLuminanceVersion(image2.lum),
|
|
312663
|
+
imageAlphaModFixVersion(image2.alphaModFix),
|
|
312625
312664
|
image2.rotation ?? "",
|
|
312626
312665
|
image2.flipH ? 1 : 0,
|
|
312627
312666
|
image2.flipV ? 1 : 0,
|
|
@@ -321960,13 +321999,13 @@ menclose::after {
|
|
|
321960
321999
|
return;
|
|
321961
322000
|
console.log(...args$1);
|
|
321962
322001
|
}, 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, TRACKED_MARK_NAMES;
|
|
321963
|
-
var
|
|
322002
|
+
var init_src_CZrGc1We_es = __esm(() => {
|
|
321964
322003
|
init_rolldown_runtime_Bg48TavK_es();
|
|
321965
|
-
|
|
322004
|
+
init_SuperConverter_CLuVUp7o_es();
|
|
321966
322005
|
init_jszip_C49i9kUs_es();
|
|
321967
322006
|
init_xml_js_CqGKpaft_es();
|
|
321968
322007
|
init_uuid_B2wVPhPi_es();
|
|
321969
|
-
|
|
322008
|
+
init_create_headless_toolbar_Dga1mSBS_es();
|
|
321970
322009
|
init_constants_D9qj59G2_es();
|
|
321971
322010
|
init_dist_B8HfvhaK_es();
|
|
321972
322011
|
init_unified_Dsuw2be5_es();
|
|
@@ -328200,6 +328239,10 @@ ${err.toString()}`);
|
|
|
328200
328239
|
default: null,
|
|
328201
328240
|
rendered: false
|
|
328202
328241
|
},
|
|
328242
|
+
alphaModFix: {
|
|
328243
|
+
default: null,
|
|
328244
|
+
rendered: false
|
|
328245
|
+
},
|
|
328203
328246
|
gain: {
|
|
328204
328247
|
default: null,
|
|
328205
328248
|
rendered: false
|
|
@@ -357734,11 +357777,11 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
357734
357777
|
]);
|
|
357735
357778
|
});
|
|
357736
357779
|
|
|
357737
|
-
// ../../packages/superdoc/dist/chunks/create-super-doc-ui-
|
|
357780
|
+
// ../../packages/superdoc/dist/chunks/create-super-doc-ui-DUbQUqo3.es.js
|
|
357738
357781
|
var DEFAULT_TEXT_ALIGN_OPTIONS, DEFAULT_LINE_HEIGHT_OPTIONS, DEFAULT_ZOOM_OPTIONS, DEFAULT_DOCUMENT_MODE_OPTIONS, DEFAULT_FONT_SIZE_OPTIONS, headlessToolbarConstants, 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, FONT_SIZE_OPTIONS;
|
|
357739
|
-
var
|
|
357740
|
-
|
|
357741
|
-
|
|
357782
|
+
var init_create_super_doc_ui_DUbQUqo3_es = __esm(() => {
|
|
357783
|
+
init_SuperConverter_CLuVUp7o_es();
|
|
357784
|
+
init_create_headless_toolbar_Dga1mSBS_es();
|
|
357742
357785
|
DEFAULT_TEXT_ALIGN_OPTIONS = [
|
|
357743
357786
|
{
|
|
357744
357787
|
label: "Left",
|
|
@@ -358029,16 +358072,16 @@ var init_zipper_yaJVJ4z9_es = __esm(() => {
|
|
|
358029
358072
|
|
|
358030
358073
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
358031
358074
|
var init_super_editor_es = __esm(() => {
|
|
358032
|
-
|
|
358033
|
-
|
|
358075
|
+
init_src_CZrGc1We_es();
|
|
358076
|
+
init_SuperConverter_CLuVUp7o_es();
|
|
358034
358077
|
init_jszip_C49i9kUs_es();
|
|
358035
358078
|
init_xml_js_CqGKpaft_es();
|
|
358036
|
-
|
|
358079
|
+
init_create_headless_toolbar_Dga1mSBS_es();
|
|
358037
358080
|
init_constants_D9qj59G2_es();
|
|
358038
358081
|
init_dist_B8HfvhaK_es();
|
|
358039
358082
|
init_unified_Dsuw2be5_es();
|
|
358040
358083
|
init_DocxZipper_FUsfThjV_es();
|
|
358041
|
-
|
|
358084
|
+
init_create_super_doc_ui_DUbQUqo3_es();
|
|
358042
358085
|
init_ui_C5PAS9hY_es();
|
|
358043
358086
|
init_eventemitter3_BnGqBE_Q_es();
|
|
358044
358087
|
init_errors_CNaD6vcg_es();
|
|
@@ -389265,6 +389308,11 @@ function imageNodeToRun2({ node: node3, positions, sdtMetadata }) {
|
|
|
389265
389308
|
...contrast != null ? { contrast } : {}
|
|
389266
389309
|
};
|
|
389267
389310
|
}
|
|
389311
|
+
const alphaModFix = isPlainObject8(attrs.alphaModFix) ? attrs.alphaModFix : undefined;
|
|
389312
|
+
const alphaModFixAmt = pickNumber2(alphaModFix?.amt);
|
|
389313
|
+
if (alphaModFixAmt != null) {
|
|
389314
|
+
run2.alphaModFix = { amt: alphaModFixAmt };
|
|
389315
|
+
}
|
|
389268
389316
|
const hyperlink = readImageHyperlink2(attrs.hyperlink);
|
|
389269
389317
|
if (hyperlink) {
|
|
389270
389318
|
run2.hyperlink = hyperlink;
|
|
@@ -389876,6 +389924,8 @@ function imageNodeToBlock2(node3, nextBlockId, positions, _trackedMeta, _tracked
|
|
|
389876
389924
|
const lum = isPlainObject10(attrs.lum) ? attrs.lum : undefined;
|
|
389877
389925
|
const lumBright = pickNumber2(lum?.bright);
|
|
389878
389926
|
const lumContrast = pickNumber2(lum?.contrast);
|
|
389927
|
+
const alphaModFix = isPlainObject10(attrs.alphaModFix) ? attrs.alphaModFix : undefined;
|
|
389928
|
+
const alphaModFixAmt = pickNumber2(alphaModFix?.amt);
|
|
389879
389929
|
const objectFit = isAllowedObjectFit2(explicitObjectFit) ? explicitObjectFit : shouldCover ? "cover" : display === "inline" ? "scale-down" : isAnchor ? "contain" : "contain";
|
|
389880
389930
|
const zIndexFromRelativeHeight = normalizeZIndex2(attrs.originalAttributes);
|
|
389881
389931
|
const zIndex = resolveFloatingZIndex2(anchor?.behindDoc === true, zIndexFromRelativeHeight);
|
|
@@ -389907,6 +389957,7 @@ function imageNodeToBlock2(node3, nextBlockId, positions, _trackedMeta, _tracked
|
|
|
389907
389957
|
...lumBright != null ? { bright: lumBright } : {},
|
|
389908
389958
|
...lumContrast != null ? { contrast: lumContrast } : {}
|
|
389909
389959
|
} : undefined,
|
|
389960
|
+
alphaModFix: alphaModFixAmt != null ? { amt: alphaModFixAmt } : undefined,
|
|
389910
389961
|
...rotation !== undefined && { rotation },
|
|
389911
389962
|
...flipH !== undefined && { flipH },
|
|
389912
389963
|
...flipV !== undefined && { flipV },
|
|
@@ -446681,6 +446732,7 @@ function handleImageNode3(node4, params3, isAnchor) {
|
|
|
446681
446732
|
...Number.isFinite(rawBright) ? { bright: rawBright } : {},
|
|
446682
446733
|
...Number.isFinite(rawContrast) ? { contrast: rawContrast } : {}
|
|
446683
446734
|
} : undefined;
|
|
446735
|
+
const alphaModFix = extractAlphaModFix2(blip);
|
|
446684
446736
|
const stretch = findChildByLocalName2(blipFill?.elements, "stretch");
|
|
446685
446737
|
const fillRect = findChildByLocalName2(stretch?.elements, "fillRect");
|
|
446686
446738
|
const srcRect = findChildByLocalName2(blipFill?.elements, "srcRect");
|
|
@@ -446840,7 +446892,8 @@ function handleImageNode3(node4, params3, isAnchor) {
|
|
|
446840
446892
|
...order4.length ? { drawingChildOrder: order4 } : {},
|
|
446841
446893
|
...originalChildren.length ? { originalDrawingChildren: originalChildren } : {},
|
|
446842
446894
|
...hasGrayscale ? { grayscale: true } : {},
|
|
446843
|
-
...lum ? { lum } : {}
|
|
446895
|
+
...lum ? { lum } : {},
|
|
446896
|
+
...alphaModFix ? { alphaModFix } : {}
|
|
446844
446897
|
};
|
|
446845
446898
|
return {
|
|
446846
446899
|
type: "image",
|
|
@@ -447272,6 +447325,10 @@ var DRAWING_XML_TAG2 = "w:drawing", SHAPE_URI2 = "http://schemas.microsoft.com/o
|
|
|
447272
447325
|
const bottom2 = percentEdges.bottom ?? 0;
|
|
447273
447326
|
const left2 = percentEdges.left ?? 0;
|
|
447274
447327
|
return `inset(${top}% ${right2}% ${bottom2}% ${left2}%)`;
|
|
447328
|
+
}, extractAlphaModFix2 = (blip) => {
|
|
447329
|
+
const alphaModFix = findChildByLocalName2(blip?.elements, "alphaModFix");
|
|
447330
|
+
const amt = Number(alphaModFix?.attributes?.amt);
|
|
447331
|
+
return Number.isFinite(amt) ? { amt } : undefined;
|
|
447275
447332
|
}, mergeAnchorPaddingIntoWrapDistances2 = (wrap6, padding) => {
|
|
447276
447333
|
if (!wrap6?.attrs || !padding)
|
|
447277
447334
|
return;
|
|
@@ -447497,6 +447554,7 @@ var DRAWING_XML_TAG2 = "w:drawing", SHAPE_URI2 = "http://schemas.microsoft.com/o
|
|
|
447497
447554
|
const blip = findChildByLocalName2(blipFill?.elements, "blip");
|
|
447498
447555
|
if (!blip)
|
|
447499
447556
|
return null;
|
|
447557
|
+
const alphaModFix = extractAlphaModFix2(blip);
|
|
447500
447558
|
const rEmbed = blip.attributes?.["r:embed"];
|
|
447501
447559
|
if (!rEmbed)
|
|
447502
447560
|
return null;
|
|
@@ -447524,7 +447582,8 @@ var DRAWING_XML_TAG2 = "w:drawing", SHAPE_URI2 = "http://schemas.microsoft.com/o
|
|
|
447524
447582
|
height,
|
|
447525
447583
|
src: path3,
|
|
447526
447584
|
imageId: picId,
|
|
447527
|
-
imageName: picName
|
|
447585
|
+
imageName: picName,
|
|
447586
|
+
...alphaModFix ? { alphaModFix } : {}
|
|
447528
447587
|
}
|
|
447529
447588
|
};
|
|
447530
447589
|
}).filter(Boolean);
|
|
@@ -448203,6 +448262,12 @@ var DECORATIVE_EXT_URI2 = "{C183D7F6-B498-43B3-948B-1728B52AA6E4}", DECORATIVE_N
|
|
|
448203
448262
|
}
|
|
448204
448263
|
});
|
|
448205
448264
|
}
|
|
448265
|
+
if (attrs.alphaModFix && Number.isFinite(attrs.alphaModFix.amt)) {
|
|
448266
|
+
blipEffects.push({
|
|
448267
|
+
name: "a:alphaModFix",
|
|
448268
|
+
attributes: { amt: Math.round(attrs.alphaModFix.amt) }
|
|
448269
|
+
});
|
|
448270
|
+
}
|
|
448206
448271
|
const hlinkRId = resolveHyperlinkRId2(attrs, params3);
|
|
448207
448272
|
const drawingId = attrs.id && Number(attrs.id) > 0 ? attrs.id : Math.max(1, parseInt(generateDocxRandomId2(), 16));
|
|
448208
448273
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superdoc-dev/mcp",
|
|
3
|
-
"version": "0.12.0-next.
|
|
3
|
+
"version": "0.12.0-next.20",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=20"
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"@types/node": "22.19.2",
|
|
21
21
|
"typescript": "^5.9.2",
|
|
22
22
|
"@superdoc/document-api": "0.0.1",
|
|
23
|
-
"superdoc": "
|
|
24
|
-
"
|
|
23
|
+
"@superdoc/super-editor": "0.0.1",
|
|
24
|
+
"superdoc": "1.39.0"
|
|
25
25
|
},
|
|
26
26
|
"publishConfig": {
|
|
27
27
|
"access": "public"
|