@superdoc-dev/mcp 0.3.0-next.82 → 0.3.0-next.83
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 +32 -29
- 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-b41pKAPh.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")
|
|
@@ -73389,15 +73389,21 @@ function bodySectPrShouldEmbed(bodySectPr) {
|
|
|
73389
73389
|
const cols = getSectPrColumns(bodySectPr);
|
|
73390
73390
|
return !!(cols?.count && cols.count > 1);
|
|
73391
73391
|
}
|
|
73392
|
+
function hiddenClipboardPayload(attr, base643) {
|
|
73393
|
+
return `<div ${attr}="${base643}" style="display:none"></div>`;
|
|
73394
|
+
}
|
|
73395
|
+
function readClipboardPayload(el, attr) {
|
|
73396
|
+
return el.getAttribute(attr)?.trim() || el.textContent?.trim() || "";
|
|
73397
|
+
}
|
|
73392
73398
|
function embedSliceInHtml(html2, sliceJson, bodySectPrJson = "", mediaJson = "") {
|
|
73393
73399
|
let out = html2;
|
|
73394
73400
|
if (bodySectPrJson)
|
|
73395
|
-
out =
|
|
73401
|
+
out = `${hiddenClipboardPayload(SUPERDOC_BODY_SECT_PR_ATTR, encodeUtf8Base64(bodySectPrJson))}${out}`;
|
|
73396
73402
|
if (mediaJson)
|
|
73397
|
-
out =
|
|
73403
|
+
out = `${hiddenClipboardPayload(SUPERDOC_MEDIA_ATTR, encodeUtf8Base64(mediaJson))}${out}`;
|
|
73398
73404
|
if (!sliceJson)
|
|
73399
73405
|
return out;
|
|
73400
|
-
return
|
|
73406
|
+
return `${hiddenClipboardPayload(SUPERDOC_SLICE_ATTR, encodeUtf8Base64(sliceJson))}${out}`;
|
|
73401
73407
|
}
|
|
73402
73408
|
function extractSliceFromHtml(html2) {
|
|
73403
73409
|
if (!html2 || !html2.includes("data-superdoc-slice"))
|
|
@@ -73408,9 +73414,7 @@ function extractSliceFromHtml(html2) {
|
|
|
73408
73414
|
const el = new DOMParser().parseFromString(html2, "text/html").querySelector(`[${SUPERDOC_SLICE_ATTR}]`);
|
|
73409
73415
|
if (!el)
|
|
73410
73416
|
return null;
|
|
73411
|
-
|
|
73412
|
-
if (!b64)
|
|
73413
|
-
b64 = el.getAttribute("data-superdoc-slice")?.trim() ?? "";
|
|
73417
|
+
const b64 = readClipboardPayload(el, SUPERDOC_SLICE_ATTR);
|
|
73414
73418
|
if (!b64)
|
|
73415
73419
|
return null;
|
|
73416
73420
|
return decodeUtf8Base64(b64) || null;
|
|
@@ -73439,7 +73443,7 @@ function extractMediaFromHtml(html2) {
|
|
|
73439
73443
|
const el = new DOMParser().parseFromString(html2, "text/html").querySelector(`[${SUPERDOC_MEDIA_ATTR}]`);
|
|
73440
73444
|
if (!el)
|
|
73441
73445
|
return null;
|
|
73442
|
-
const b64 = el
|
|
73446
|
+
const b64 = readClipboardPayload(el, SUPERDOC_MEDIA_ATTR);
|
|
73443
73447
|
if (!b64)
|
|
73444
73448
|
return null;
|
|
73445
73449
|
return decodeUtf8Base64(b64) || null;
|
|
@@ -73456,7 +73460,7 @@ function extractBodySectPrFromHtml(html2) {
|
|
|
73456
73460
|
const el = new DOMParser().parseFromString(html2, "text/html").querySelector(`[${SUPERDOC_BODY_SECT_PR_ATTR}]`);
|
|
73457
73461
|
if (!el)
|
|
73458
73462
|
return null;
|
|
73459
|
-
const b64 = el
|
|
73463
|
+
const b64 = readClipboardPayload(el, SUPERDOC_BODY_SECT_PR_ATTR);
|
|
73460
73464
|
if (!b64)
|
|
73461
73465
|
return null;
|
|
73462
73466
|
return JSON.parse(decodeUtf8Base64(b64));
|
|
@@ -105323,7 +105327,7 @@ var isRegExp = (value) => {
|
|
|
105323
105327
|
state.kern = kernNode.attributes["w:val"];
|
|
105324
105328
|
}
|
|
105325
105329
|
}, SuperConverter;
|
|
105326
|
-
var
|
|
105330
|
+
var init_SuperConverter_b41pKAPh_es = __esm(() => {
|
|
105327
105331
|
init_rolldown_runtime_Bg48TavK_es();
|
|
105328
105332
|
init_jszip_C49i9kUs_es();
|
|
105329
105333
|
init_xml_js_CqGKpaft_es();
|
|
@@ -143192,7 +143196,7 @@ var init_SuperConverter_VRDgcp1i_es = __esm(() => {
|
|
|
143192
143196
|
};
|
|
143193
143197
|
});
|
|
143194
143198
|
|
|
143195
|
-
// ../../packages/superdoc/dist/chunks/create-headless-toolbar-
|
|
143199
|
+
// ../../packages/superdoc/dist/chunks/create-headless-toolbar-D5DGnv93.es.js
|
|
143196
143200
|
function parseSizeUnit(val = "0") {
|
|
143197
143201
|
const length = val.toString() || "0";
|
|
143198
143202
|
const value = Number.parseFloat(length);
|
|
@@ -145881,8 +145885,8 @@ var CSS_DIMENSION_REGEX, DOM_SIZE_UNITS, Extension = class Extension2 {
|
|
|
145881
145885
|
}
|
|
145882
145886
|
};
|
|
145883
145887
|
};
|
|
145884
|
-
var
|
|
145885
|
-
|
|
145888
|
+
var init_create_headless_toolbar_D5DGnv93_es = __esm(() => {
|
|
145889
|
+
init_SuperConverter_b41pKAPh_es();
|
|
145886
145890
|
init_constants_DrU4EASo_es();
|
|
145887
145891
|
init_dist_B8HfvhaK_es();
|
|
145888
145892
|
CSS_DIMENSION_REGEX = /[\d-.]+(\w+)$/;
|
|
@@ -174824,8 +174828,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
174824
174828
|
patchFlag |= 2048;
|
|
174825
174829
|
}
|
|
174826
174830
|
root2.codegenNode = createVNodeCall(context, helper(FRAGMENT), undefined, root2.children, patchFlag, undefined, undefined, true, undefined, false);
|
|
174827
|
-
}
|
|
174828
|
-
;
|
|
174831
|
+
}
|
|
174829
174832
|
}
|
|
174830
174833
|
function traverseChildren(parent, context) {
|
|
174831
174834
|
let i4 = 0;
|
|
@@ -200101,7 +200104,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
|
|
|
200101
200104
|
init_remark_gfm_BhnWr3yf_es();
|
|
200102
200105
|
});
|
|
200103
200106
|
|
|
200104
|
-
// ../../packages/superdoc/dist/chunks/src-
|
|
200107
|
+
// ../../packages/superdoc/dist/chunks/src-BM2rQG5r.es.js
|
|
200105
200108
|
function deleteProps(obj, propOrProps) {
|
|
200106
200109
|
const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
|
|
200107
200110
|
const removeNested = (target, pathParts, index2 = 0) => {
|
|
@@ -293718,12 +293721,12 @@ menclose::after {
|
|
|
293718
293721
|
return;
|
|
293719
293722
|
console.log(...args$1);
|
|
293720
293723
|
}, 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;
|
|
293721
|
-
var
|
|
293724
|
+
var init_src_BM2rQG5r_es = __esm(() => {
|
|
293722
293725
|
init_rolldown_runtime_Bg48TavK_es();
|
|
293723
|
-
|
|
293726
|
+
init_SuperConverter_b41pKAPh_es();
|
|
293724
293727
|
init_jszip_C49i9kUs_es();
|
|
293725
293728
|
init_uuid_qzgm05fK_es();
|
|
293726
|
-
|
|
293729
|
+
init_create_headless_toolbar_D5DGnv93_es();
|
|
293727
293730
|
init_constants_DrU4EASo_es();
|
|
293728
293731
|
init_dist_B8HfvhaK_es();
|
|
293729
293732
|
init_unified_Dsuw2be5_es();
|
|
@@ -331754,11 +331757,11 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
331754
331757
|
];
|
|
331755
331758
|
});
|
|
331756
331759
|
|
|
331757
|
-
// ../../packages/superdoc/dist/chunks/create-super-doc-ui-
|
|
331760
|
+
// ../../packages/superdoc/dist/chunks/create-super-doc-ui-B2YfE2qW.es.js
|
|
331758
331761
|
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;
|
|
331759
|
-
var
|
|
331760
|
-
|
|
331761
|
-
|
|
331762
|
+
var init_create_super_doc_ui_B2YfE2qW_es = __esm(() => {
|
|
331763
|
+
init_SuperConverter_b41pKAPh_es();
|
|
331764
|
+
init_create_headless_toolbar_D5DGnv93_es();
|
|
331762
331765
|
MOD_ALIASES = new Set([
|
|
331763
331766
|
"Mod",
|
|
331764
331767
|
"Meta",
|
|
@@ -331800,16 +331803,16 @@ var init_zipper_BxRAi0_5_es = __esm(() => {
|
|
|
331800
331803
|
|
|
331801
331804
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
331802
331805
|
var init_super_editor_es = __esm(() => {
|
|
331803
|
-
|
|
331804
|
-
|
|
331806
|
+
init_src_BM2rQG5r_es();
|
|
331807
|
+
init_SuperConverter_b41pKAPh_es();
|
|
331805
331808
|
init_jszip_C49i9kUs_es();
|
|
331806
331809
|
init_xml_js_CqGKpaft_es();
|
|
331807
|
-
|
|
331810
|
+
init_create_headless_toolbar_D5DGnv93_es();
|
|
331808
331811
|
init_constants_DrU4EASo_es();
|
|
331809
331812
|
init_dist_B8HfvhaK_es();
|
|
331810
331813
|
init_unified_Dsuw2be5_es();
|
|
331811
331814
|
init_DocxZipper_Dh4RtvcE_es();
|
|
331812
|
-
|
|
331815
|
+
init_create_super_doc_ui_B2YfE2qW_es();
|
|
331813
331816
|
init_ui_CGB3qmy3_es();
|
|
331814
331817
|
init_eventemitter3_UwU_CLPU_es();
|
|
331815
331818
|
init_errors_C_DoKMoN_es();
|
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.83",
|
|
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
|
-
"
|
|
24
|
-
"superdoc": "
|
|
23
|
+
"superdoc": "1.32.0",
|
|
24
|
+
"@superdoc/super-editor": "0.0.1"
|
|
25
25
|
},
|
|
26
26
|
"publishConfig": {
|
|
27
27
|
"access": "public"
|