@superdoc-dev/mcp 0.6.0 → 0.7.0-next.1
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 +28 -25
- 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-SvCYq2KK.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_SvCYq2KK_es = __esm(() => {
|
|
105871
105871
|
init_rolldown_runtime_Bg48TavK_es();
|
|
105872
105872
|
init_jszip_C49i9kUs_es();
|
|
105873
105873
|
init_xml_js_CqGKpaft_es();
|
|
@@ -144044,7 +144044,7 @@ var init_SuperConverter_CzwJ7ds9_es = __esm(() => {
|
|
|
144044
144044
|
};
|
|
144045
144045
|
});
|
|
144046
144046
|
|
|
144047
|
-
// ../../packages/superdoc/dist/chunks/create-headless-toolbar-
|
|
144047
|
+
// ../../packages/superdoc/dist/chunks/create-headless-toolbar-CAjlOJ3Q.es.js
|
|
144048
144048
|
function parseSizeUnit(val = "0") {
|
|
144049
144049
|
const length = val.toString() || "0";
|
|
144050
144050
|
const value = Number.parseFloat(length);
|
|
@@ -154054,8 +154054,8 @@ var CSS_DIMENSION_REGEX, DOM_SIZE_UNITS, Extension = class Extension2 {
|
|
|
154054
154054
|
}
|
|
154055
154055
|
};
|
|
154056
154056
|
};
|
|
154057
|
-
var
|
|
154058
|
-
|
|
154057
|
+
var init_create_headless_toolbar_CAjlOJ3Q_es = __esm(() => {
|
|
154058
|
+
init_SuperConverter_SvCYq2KK_es();
|
|
154059
154059
|
init_uuid_qzgm05fK_es();
|
|
154060
154060
|
init_constants_DrU4EASo_es();
|
|
154061
154061
|
init_dist_B8HfvhaK_es();
|
|
@@ -183505,8 +183505,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
183505
183505
|
patchFlag |= 2048;
|
|
183506
183506
|
}
|
|
183507
183507
|
root2.codegenNode = createVNodeCall(context, helper(FRAGMENT), undefined, root2.children, patchFlag, undefined, undefined, true, undefined, false);
|
|
183508
|
-
}
|
|
183509
|
-
;
|
|
183508
|
+
}
|
|
183510
183509
|
}
|
|
183511
183510
|
function traverseChildren(parent, context) {
|
|
183512
183511
|
let i4 = 0;
|
|
@@ -208782,7 +208781,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
|
|
|
208782
208781
|
init_remark_gfm_BhnWr3yf_es();
|
|
208783
208782
|
});
|
|
208784
208783
|
|
|
208785
|
-
// ../../packages/superdoc/dist/chunks/src-
|
|
208784
|
+
// ../../packages/superdoc/dist/chunks/src-5wVLGLjJ.es.js
|
|
208786
208785
|
function deleteProps(obj, propOrProps) {
|
|
208787
208786
|
const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
|
|
208788
208787
|
const removeNested = (target, pathParts, index2 = 0) => {
|
|
@@ -209565,7 +209564,7 @@ function prosemirrorToYXmlFragment(doc$12, xmlFragment) {
|
|
|
209565
209564
|
}
|
|
209566
209565
|
function getSuperdocVersion() {
|
|
209567
209566
|
try {
|
|
209568
|
-
return "1.
|
|
209567
|
+
return "1.34.0";
|
|
209569
209568
|
} catch {
|
|
209570
209569
|
return "unknown";
|
|
209571
209570
|
}
|
|
@@ -240422,6 +240421,8 @@ function metadataGetWrapper(editor, input2) {
|
|
|
240422
240421
|
return findEntry(getConvertedXml2(editor), input2.id);
|
|
240423
240422
|
}
|
|
240424
240423
|
function metadataResolveWrapper(editor, input2) {
|
|
240424
|
+
if (!hasPayloadEntry(getConvertedXml2(editor), input2.id))
|
|
240425
|
+
return null;
|
|
240425
240426
|
const target = resolveAnchorTarget(editor, input2.id);
|
|
240426
240427
|
return target ? {
|
|
240427
240428
|
id: input2.id,
|
|
@@ -280172,7 +280173,7 @@ var Node$13 = class Node$14 {
|
|
|
280172
280173
|
domAvailabilityCache = false;
|
|
280173
280174
|
return false;
|
|
280174
280175
|
}
|
|
280175
|
-
}, summaryVersion = "1.
|
|
280176
|
+
}, summaryVersion = "1.34.0", nodeKeys, markKeys, transformListsInCopiedContent = (html3) => {
|
|
280176
280177
|
const container = document.createElement("div");
|
|
280177
280178
|
container.innerHTML = html3;
|
|
280178
280179
|
const result = [];
|
|
@@ -281347,7 +281348,7 @@ var Node$13 = class Node$14 {
|
|
|
281347
281348
|
return () => {};
|
|
281348
281349
|
const handle3 = setInterval(callback, intervalMs);
|
|
281349
281350
|
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.
|
|
281351
|
+
}, 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
281352
|
const extensionLike = extension2;
|
|
281352
281353
|
const config3 = extensionLike?.config;
|
|
281353
281354
|
const ExtensionCtor = extensionLike?.constructor;
|
|
@@ -297169,13 +297170,13 @@ menclose::after {
|
|
|
297169
297170
|
return;
|
|
297170
297171
|
console.log(...args$1);
|
|
297171
297172
|
}, 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
|
|
297173
|
+
var init_src_5wVLGLjJ_es = __esm(() => {
|
|
297173
297174
|
init_rolldown_runtime_Bg48TavK_es();
|
|
297174
|
-
|
|
297175
|
+
init_SuperConverter_SvCYq2KK_es();
|
|
297175
297176
|
init_jszip_C49i9kUs_es();
|
|
297176
297177
|
init_xml_js_CqGKpaft_es();
|
|
297177
297178
|
init_uuid_qzgm05fK_es();
|
|
297178
|
-
|
|
297179
|
+
init_create_headless_toolbar_CAjlOJ3Q_es();
|
|
297179
297180
|
init_constants_DrU4EASo_es();
|
|
297180
297181
|
init_dist_B8HfvhaK_es();
|
|
297181
297182
|
init_unified_Dsuw2be5_es();
|
|
@@ -334891,11 +334892,11 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
334891
334892
|
];
|
|
334892
334893
|
});
|
|
334893
334894
|
|
|
334894
|
-
// ../../packages/superdoc/dist/chunks/create-super-doc-ui-
|
|
334895
|
+
// ../../packages/superdoc/dist/chunks/create-super-doc-ui-C2jsxhNG.es.js
|
|
334895
334896
|
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
|
-
|
|
334897
|
+
var init_create_super_doc_ui_C2jsxhNG_es = __esm(() => {
|
|
334898
|
+
init_SuperConverter_SvCYq2KK_es();
|
|
334899
|
+
init_create_headless_toolbar_CAjlOJ3Q_es();
|
|
334899
334900
|
MOD_ALIASES = new Set([
|
|
334900
334901
|
"Mod",
|
|
334901
334902
|
"Meta",
|
|
@@ -334937,16 +334938,16 @@ var init_zipper_yaJVJ4z9_es = __esm(() => {
|
|
|
334937
334938
|
|
|
334938
334939
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
334939
334940
|
var init_super_editor_es = __esm(() => {
|
|
334940
|
-
|
|
334941
|
-
|
|
334941
|
+
init_src_5wVLGLjJ_es();
|
|
334942
|
+
init_SuperConverter_SvCYq2KK_es();
|
|
334942
334943
|
init_jszip_C49i9kUs_es();
|
|
334943
334944
|
init_xml_js_CqGKpaft_es();
|
|
334944
|
-
|
|
334945
|
+
init_create_headless_toolbar_CAjlOJ3Q_es();
|
|
334945
334946
|
init_constants_DrU4EASo_es();
|
|
334946
334947
|
init_dist_B8HfvhaK_es();
|
|
334947
334948
|
init_unified_Dsuw2be5_es();
|
|
334948
334949
|
init_DocxZipper_CZMPWpOp_es();
|
|
334949
|
-
|
|
334950
|
+
init_create_super_doc_ui_C2jsxhNG_es();
|
|
334950
334951
|
init_ui_C5PAS9hY_es();
|
|
334951
334952
|
init_eventemitter3_BnGqBE_Q_es();
|
|
334952
334953
|
init_errors_CNaD6vcg_es();
|
|
@@ -464767,6 +464768,8 @@ function metadataGetWrapper2(editor, input2) {
|
|
|
464767
464768
|
return findEntry2(getConvertedXml5(editor), input2.id);
|
|
464768
464769
|
}
|
|
464769
464770
|
function metadataResolveWrapper2(editor, input2) {
|
|
464771
|
+
if (!hasPayloadEntry2(getConvertedXml5(editor), input2.id))
|
|
464772
|
+
return null;
|
|
464770
464773
|
const target = resolveAnchorTarget2(editor, input2.id);
|
|
464771
464774
|
return target ? { id: input2.id, target } : null;
|
|
464772
464775
|
}
|
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.1",
|
|
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"
|