@superdoc-dev/mcp 0.12.0-next.10 → 0.12.0-next.11
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 +65 -19
- 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-DJyHekqW.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")
|
|
@@ -95546,6 +95546,7 @@ function groupTrackedChanges(editor) {
|
|
|
95546
95546
|
return cached2.grouped;
|
|
95547
95547
|
const marks = getRawTrackedMarks(editor);
|
|
95548
95548
|
const byRawId = /* @__PURE__ */ new Map;
|
|
95549
|
+
const segmentsByRawId = /* @__PURE__ */ new Map;
|
|
95549
95550
|
for (const item of marks) {
|
|
95550
95551
|
const attrs = item.mark?.attrs ?? {};
|
|
95551
95552
|
const id = toNonEmptyString(attrs.id);
|
|
@@ -95561,6 +95562,17 @@ function groupTrackedChanges(editor) {
|
|
|
95561
95562
|
const wordRevisionIdKey = getWordRevisionIdKey(markType);
|
|
95562
95563
|
const excerptText = !wordRevisionId || !hasChildTrackedMarkOnNode(item, id) ? getTrackedMarkText(editor, item) : "";
|
|
95563
95564
|
const range = [item.from, item.to];
|
|
95565
|
+
const priorSegments = segmentsByRawId.get(groupKey);
|
|
95566
|
+
if (priorSegments)
|
|
95567
|
+
priorSegments.push({
|
|
95568
|
+
from: item.from,
|
|
95569
|
+
to: item.to
|
|
95570
|
+
});
|
|
95571
|
+
else
|
|
95572
|
+
segmentsByRawId.set(groupKey, [{
|
|
95573
|
+
from: item.from,
|
|
95574
|
+
to: item.to
|
|
95575
|
+
}]);
|
|
95564
95576
|
if (!existing) {
|
|
95565
95577
|
byRawId.set(groupKey, {
|
|
95566
95578
|
rawId: groupKey,
|
|
@@ -95608,7 +95620,23 @@ function groupTrackedChanges(editor) {
|
|
|
95608
95620
|
return a.id.localeCompare(b.id);
|
|
95609
95621
|
});
|
|
95610
95622
|
attachOverlapMetadata(grouped);
|
|
95611
|
-
|
|
95623
|
+
const structuralChanges = enumerateStructuralRowChanges(editor.state);
|
|
95624
|
+
const wholeTableRanges = structuralChanges.filter((structural) => structural.decidable && structural.wholeTable).map((structural) => ({
|
|
95625
|
+
from: structural.tableFrom,
|
|
95626
|
+
to: structural.tableTo
|
|
95627
|
+
}));
|
|
95628
|
+
if (wholeTableRanges.length > 0) {
|
|
95629
|
+
const segmentInsideSomeTable = (segment) => wholeTableRanges.some((range) => segment.from >= range.from && segment.to <= range.to);
|
|
95630
|
+
for (let i$1 = grouped.length - 1;i$1 >= 0; i$1 -= 1) {
|
|
95631
|
+
const change = grouped[i$1];
|
|
95632
|
+
if ((segmentsByRawId.get(change.rawId) ?? [{
|
|
95633
|
+
from: change.from,
|
|
95634
|
+
to: change.to
|
|
95635
|
+
}]).every(segmentInsideSomeTable))
|
|
95636
|
+
grouped.splice(i$1, 1);
|
|
95637
|
+
}
|
|
95638
|
+
}
|
|
95639
|
+
for (const structural of structuralChanges) {
|
|
95612
95640
|
const excerpt = normalizeExcerpt(editor.state.doc.textBetween(structural.tableFrom, structural.tableTo, " ", ""));
|
|
95613
95641
|
const stableRawId = structural.sourceId ? `word:structural:${structural.sourceId}` : structural.id;
|
|
95614
95642
|
grouped.push({
|
|
@@ -118129,7 +118157,7 @@ var isRegExp = (value) => {
|
|
|
118129
118157
|
state.kern = kernNode.attributes["w:val"];
|
|
118130
118158
|
}
|
|
118131
118159
|
}, SuperConverter;
|
|
118132
|
-
var
|
|
118160
|
+
var init_SuperConverter_DJyHekqW_es = __esm(() => {
|
|
118133
118161
|
init_rolldown_runtime_Bg48TavK_es();
|
|
118134
118162
|
init_jszip_C49i9kUs_es();
|
|
118135
118163
|
init_xml_js_CqGKpaft_es();
|
|
@@ -158161,7 +158189,7 @@ var init_SuperConverter_BSDZ3hYr_es = __esm(() => {
|
|
|
158161
158189
|
};
|
|
158162
158190
|
});
|
|
158163
158191
|
|
|
158164
|
-
// ../../packages/superdoc/dist/chunks/create-headless-toolbar-
|
|
158192
|
+
// ../../packages/superdoc/dist/chunks/create-headless-toolbar-Jmx2i-9i.es.js
|
|
158165
158193
|
function parseSizeUnit(val = "0") {
|
|
158166
158194
|
const length = val.toString() || "0";
|
|
158167
158195
|
const value = Number.parseFloat(length);
|
|
@@ -168519,8 +168547,8 @@ var CSS_DIMENSION_REGEX, DOM_SIZE_UNITS, normalizeActorId = (value) => {
|
|
|
168519
168547
|
}
|
|
168520
168548
|
};
|
|
168521
168549
|
};
|
|
168522
|
-
var
|
|
168523
|
-
|
|
168550
|
+
var init_create_headless_toolbar_Jmx2i_9i_es = __esm(() => {
|
|
168551
|
+
init_SuperConverter_DJyHekqW_es();
|
|
168524
168552
|
init_uuid_B2wVPhPi_es();
|
|
168525
168553
|
init_constants_D9qj59G2_es();
|
|
168526
168554
|
init_dist_B8HfvhaK_es();
|
|
@@ -223204,7 +223232,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
|
|
|
223204
223232
|
init_remark_gfm_BhnWr3yf_es();
|
|
223205
223233
|
});
|
|
223206
223234
|
|
|
223207
|
-
// ../../packages/superdoc/dist/chunks/src-
|
|
223235
|
+
// ../../packages/superdoc/dist/chunks/src-BB_FFFud.es.js
|
|
223208
223236
|
function deleteProps(obj, propOrProps) {
|
|
223209
223237
|
const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
|
|
223210
223238
|
const removeNested = (target, pathParts, index2 = 0) => {
|
|
@@ -320662,13 +320690,13 @@ menclose::after {
|
|
|
320662
320690
|
return;
|
|
320663
320691
|
console.log(...args$1);
|
|
320664
320692
|
}, 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;
|
|
320665
|
-
var
|
|
320693
|
+
var init_src_BB_FFFud_es = __esm(() => {
|
|
320666
320694
|
init_rolldown_runtime_Bg48TavK_es();
|
|
320667
|
-
|
|
320695
|
+
init_SuperConverter_DJyHekqW_es();
|
|
320668
320696
|
init_jszip_C49i9kUs_es();
|
|
320669
320697
|
init_xml_js_CqGKpaft_es();
|
|
320670
320698
|
init_uuid_B2wVPhPi_es();
|
|
320671
|
-
|
|
320699
|
+
init_create_headless_toolbar_Jmx2i_9i_es();
|
|
320672
320700
|
init_constants_D9qj59G2_es();
|
|
320673
320701
|
init_dist_B8HfvhaK_es();
|
|
320674
320702
|
init_unified_Dsuw2be5_es();
|
|
@@ -355633,11 +355661,11 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
355633
355661
|
]);
|
|
355634
355662
|
});
|
|
355635
355663
|
|
|
355636
|
-
// ../../packages/superdoc/dist/chunks/create-super-doc-ui
|
|
355664
|
+
// ../../packages/superdoc/dist/chunks/create-super-doc-ui-Cjo_Z85j.es.js
|
|
355637
355665
|
var 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;
|
|
355638
|
-
var
|
|
355639
|
-
|
|
355640
|
-
|
|
355666
|
+
var init_create_super_doc_ui_Cjo_Z85j_es = __esm(() => {
|
|
355667
|
+
init_SuperConverter_DJyHekqW_es();
|
|
355668
|
+
init_create_headless_toolbar_Jmx2i_9i_es();
|
|
355641
355669
|
headlessToolbarConstants = {
|
|
355642
355670
|
DEFAULT_TEXT_ALIGN_OPTIONS: [
|
|
355643
355671
|
{
|
|
@@ -355919,16 +355947,16 @@ var init_zipper_yaJVJ4z9_es = __esm(() => {
|
|
|
355919
355947
|
|
|
355920
355948
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
355921
355949
|
var init_super_editor_es = __esm(() => {
|
|
355922
|
-
|
|
355923
|
-
|
|
355950
|
+
init_src_BB_FFFud_es();
|
|
355951
|
+
init_SuperConverter_DJyHekqW_es();
|
|
355924
355952
|
init_jszip_C49i9kUs_es();
|
|
355925
355953
|
init_xml_js_CqGKpaft_es();
|
|
355926
|
-
|
|
355954
|
+
init_create_headless_toolbar_Jmx2i_9i_es();
|
|
355927
355955
|
init_constants_D9qj59G2_es();
|
|
355928
355956
|
init_dist_B8HfvhaK_es();
|
|
355929
355957
|
init_unified_Dsuw2be5_es();
|
|
355930
355958
|
init_DocxZipper_FUsfThjV_es();
|
|
355931
|
-
|
|
355959
|
+
init_create_super_doc_ui_Cjo_Z85j_es();
|
|
355932
355960
|
init_ui_C5PAS9hY_es();
|
|
355933
355961
|
init_eventemitter3_BnGqBE_Q_es();
|
|
355934
355962
|
init_errors_CNaD6vcg_es();
|
|
@@ -459960,6 +459988,7 @@ function groupTrackedChanges2(editor) {
|
|
|
459960
459988
|
return cached2.grouped;
|
|
459961
459989
|
const marks = getRawTrackedMarks2(editor);
|
|
459962
459990
|
const byRawId = new Map;
|
|
459991
|
+
const segmentsByRawId = new Map;
|
|
459963
459992
|
for (const item of marks) {
|
|
459964
459993
|
const attrs = item.mark?.attrs ?? {};
|
|
459965
459994
|
const id2 = toNonEmptyString2(attrs.id);
|
|
@@ -459976,6 +460005,11 @@ function groupTrackedChanges2(editor) {
|
|
|
459976
460005
|
const contributesToExcerpt = !wordRevisionId || !hasChildTrackedMarkOnNode2(item, id2);
|
|
459977
460006
|
const excerptText = contributesToExcerpt ? getTrackedMarkText2(editor, item) : "";
|
|
459978
460007
|
const range = [item.from, item.to];
|
|
460008
|
+
const priorSegments = segmentsByRawId.get(groupKey);
|
|
460009
|
+
if (priorSegments)
|
|
460010
|
+
priorSegments.push({ from: item.from, to: item.to });
|
|
460011
|
+
else
|
|
460012
|
+
segmentsByRawId.set(groupKey, [{ from: item.from, to: item.to }]);
|
|
459979
460013
|
if (!existing) {
|
|
459980
460014
|
byRawId.set(groupKey, {
|
|
459981
460015
|
rawId: groupKey,
|
|
@@ -460025,7 +460059,19 @@ function groupTrackedChanges2(editor) {
|
|
|
460025
460059
|
return a2.id.localeCompare(b2.id);
|
|
460026
460060
|
});
|
|
460027
460061
|
attachOverlapMetadata2(grouped);
|
|
460028
|
-
|
|
460062
|
+
const structuralChanges = enumerateStructuralRowChanges2(editor.state);
|
|
460063
|
+
const wholeTableRanges = structuralChanges.filter((structural) => structural.decidable && structural.wholeTable).map((structural) => ({ from: structural.tableFrom, to: structural.tableTo }));
|
|
460064
|
+
if (wholeTableRanges.length > 0) {
|
|
460065
|
+
const segmentInsideSomeTable = (segment) => wholeTableRanges.some((range) => segment.from >= range.from && segment.to <= range.to);
|
|
460066
|
+
for (let i5 = grouped.length - 1;i5 >= 0; i5 -= 1) {
|
|
460067
|
+
const change = grouped[i5];
|
|
460068
|
+
const segments = segmentsByRawId.get(change.rawId) ?? [{ from: change.from, to: change.to }];
|
|
460069
|
+
const ownedByTable = segments.every(segmentInsideSomeTable);
|
|
460070
|
+
if (ownedByTable)
|
|
460071
|
+
grouped.splice(i5, 1);
|
|
460072
|
+
}
|
|
460073
|
+
}
|
|
460074
|
+
for (const structural of structuralChanges) {
|
|
460029
460075
|
const excerpt = normalizeExcerpt2(editor.state.doc.textBetween(structural.tableFrom, structural.tableTo, " ", ""));
|
|
460030
460076
|
const stableRawId = structural.sourceId ? `word:structural:${structural.sourceId}` : structural.id;
|
|
460031
460077
|
grouped.push({
|
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.11",
|
|
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": "1.39.0",
|
|
23
22
|
"@superdoc/document-api": "0.0.1",
|
|
24
|
-
"@superdoc/super-editor": "0.0.1"
|
|
23
|
+
"@superdoc/super-editor": "0.0.1",
|
|
24
|
+
"superdoc": "1.39.0"
|
|
25
25
|
},
|
|
26
26
|
"publishConfig": {
|
|
27
27
|
"access": "public"
|