@superdoc-dev/mcp 0.12.0-next.31 → 0.12.0-next.33
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 +99 -36
- 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-DmNlxqix.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")
|
|
@@ -75124,13 +75124,23 @@ function findOrCreateRelationship(editor, source, options) {
|
|
|
75124
75124
|
function maybeAddProtocol(text$2) {
|
|
75125
75125
|
return /^www\./i.test(text$2) ? `https://${text$2}` : text$2;
|
|
75126
75126
|
}
|
|
75127
|
+
function hasExplicitUrlIntent(text$2) {
|
|
75128
|
+
if (/^www\./i.test(text$2))
|
|
75129
|
+
return true;
|
|
75130
|
+
if (/^(mailto|tel|sms):/i.test(text$2))
|
|
75131
|
+
return true;
|
|
75132
|
+
return /^https?:\/\//i.test(text$2);
|
|
75133
|
+
}
|
|
75127
75134
|
function detectPasteUrl(text$2, protocols = []) {
|
|
75128
75135
|
const trimmed = text$2?.trim();
|
|
75129
75136
|
if (!trimmed)
|
|
75130
75137
|
return null;
|
|
75131
75138
|
if (/\s/.test(trimmed))
|
|
75132
75139
|
return null;
|
|
75133
|
-
const
|
|
75140
|
+
const allowedProtocols = buildAllowedProtocols2(protocols);
|
|
75141
|
+
if (!hasExplicitUrlIntent(trimmed))
|
|
75142
|
+
return null;
|
|
75143
|
+
const result = sanitizeHref(maybeAddProtocol(trimmed), { allowedProtocols });
|
|
75134
75144
|
return result ? { href: result.href } : null;
|
|
75135
75145
|
}
|
|
75136
75146
|
function canAllocateRels(editor) {
|
|
@@ -87069,7 +87079,9 @@ function bundledAssetSignature(resolve) {
|
|
|
87069
87079
|
});
|
|
87070
87080
|
}
|
|
87071
87081
|
function installBundledSubstitutes(registry2, options = {}) {
|
|
87072
|
-
const
|
|
87082
|
+
const baseResolve = (context) => joinUrl(options.assetBaseUrl ?? defaultAssetBase, context.file);
|
|
87083
|
+
const candidate = options.resolveAssetUrl;
|
|
87084
|
+
const resolve = typeof candidate === "function" ? candidate : baseResolve;
|
|
87073
87085
|
const signature = bundledAssetSignature(resolve);
|
|
87074
87086
|
const installed = installedRegistries.get(registry2);
|
|
87075
87087
|
if (installed !== undefined) {
|
|
@@ -87078,6 +87090,8 @@ function installBundledSubstitutes(registry2, options = {}) {
|
|
|
87078
87090
|
return;
|
|
87079
87091
|
}
|
|
87080
87092
|
installedRegistries.set(registry2, signature);
|
|
87093
|
+
if (candidate != null && typeof candidate !== "function")
|
|
87094
|
+
console.warn("[superdoc] fonts.resolveAssetUrl must be a function (context) => string; ignoring it and falling back to fonts.assetBaseUrl. Prefer @superdoc-dev/fonts, which wires it correctly.");
|
|
87081
87095
|
for (const family$1 of BUNDLED_MANIFEST)
|
|
87082
87096
|
for (const face of family$1.faces) {
|
|
87083
87097
|
const context = {
|
|
@@ -87109,8 +87123,9 @@ function normalizeList(families) {
|
|
|
87109
87123
|
function createBundledActivation(input) {
|
|
87110
87124
|
if (!input.packConfigured)
|
|
87111
87125
|
return BASELINE_BUNDLED;
|
|
87126
|
+
const includeProvided = input.include != null;
|
|
87112
87127
|
const include = normalizeList(input.include);
|
|
87113
|
-
const exclude =
|
|
87128
|
+
const exclude = includeProvided ? undefined : normalizeList(input.exclude);
|
|
87114
87129
|
if (!include && !exclude)
|
|
87115
87130
|
return FULLY_ACTIVE_BUNDLED;
|
|
87116
87131
|
if (include) {
|
|
@@ -87501,12 +87516,14 @@ function coerceCurationList(value, field) {
|
|
|
87501
87516
|
function warnUnknownBundledSelection(selection) {
|
|
87502
87517
|
if (!selection)
|
|
87503
87518
|
return;
|
|
87519
|
+
const includeProvided = selection.include != null;
|
|
87504
87520
|
const include = coerceCurationList(selection.include, "include");
|
|
87505
87521
|
const exclude = coerceCurationList(selection.exclude, "exclude");
|
|
87506
|
-
if (
|
|
87522
|
+
if (includeProvided && exclude.length > 0)
|
|
87507
87523
|
console.warn("[superdoc] fonts.bundled: set `include` OR `exclude`, not both. Using `include` (the allow-list) and ignoring `exclude`. Prefer createSuperDocFonts(), which rejects this.");
|
|
87524
|
+
const effective = includeProvided ? include : exclude;
|
|
87508
87525
|
const seen = /* @__PURE__ */ new Set;
|
|
87509
|
-
for (const name of
|
|
87526
|
+
for (const name of effective) {
|
|
87510
87527
|
const trimmed = typeof name === "string" ? name.trim() : "";
|
|
87511
87528
|
if (!trimmed)
|
|
87512
87529
|
continue;
|
|
@@ -87518,6 +87535,29 @@ function warnUnknownBundledSelection(selection) {
|
|
|
87518
87535
|
console.warn(`[superdoc] fonts.bundled: "${trimmed}" is not a bundled font, so curating it has no effect${suggestion ? ` (did you mean "${suggestion}"?)` : ""}. Curate by Word family name, e.g. Calibri, Cambria, Times New Roman. Docs: https://docs.superdoc.dev/getting-started/fonts`);
|
|
87519
87536
|
}
|
|
87520
87537
|
}
|
|
87538
|
+
function sanitizeBundledSelection(selection) {
|
|
87539
|
+
if (!selection)
|
|
87540
|
+
return selection;
|
|
87541
|
+
const known = (value) => {
|
|
87542
|
+
if (!Array.isArray(value))
|
|
87543
|
+
return [];
|
|
87544
|
+
return value.filter((n) => typeof n === "string").filter((n) => BUNDLED_LOGICAL_KEYS.has(normalizeFamilyKey(n)));
|
|
87545
|
+
};
|
|
87546
|
+
const result = {};
|
|
87547
|
+
if (selection.include != null)
|
|
87548
|
+
result.include = known(selection.include);
|
|
87549
|
+
if (selection.exclude != null)
|
|
87550
|
+
result.exclude = known(selection.exclude);
|
|
87551
|
+
return result;
|
|
87552
|
+
}
|
|
87553
|
+
function deriveBundledActivationForConfig(config$43) {
|
|
87554
|
+
if (!config$43)
|
|
87555
|
+
return deriveBundledActivation(config$43);
|
|
87556
|
+
return deriveBundledActivation({
|
|
87557
|
+
...config$43,
|
|
87558
|
+
bundled: sanitizeBundledSelection(config$43.bundled)
|
|
87559
|
+
});
|
|
87560
|
+
}
|
|
87521
87561
|
function normalizeKey(family$1) {
|
|
87522
87562
|
return family$1.trim().replace(/^["']|["']$/g, "").toLowerCase();
|
|
87523
87563
|
}
|
|
@@ -119181,7 +119221,7 @@ Docs: https://docs.superdoc.dev/getting-started/fonts`);
|
|
|
119181
119221
|
sourceId: stringOf(primary.sourceId),
|
|
119182
119222
|
revisionGroupId: stringOf(primary.revisionGroupId) || representativeRevisionId
|
|
119183
119223
|
});
|
|
119184
|
-
}, stringOf = (value) => typeof value === "string" ? value : value == null ? "" : String(value), 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.
|
|
119224
|
+
}, stringOf = (value) => typeof value === "string" ? value : value == null ? "" : String(value), 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.41.0", SUPERDOC_DOCUMENT_ORIGIN_PROPERTY = "SuperdocDocumentOrigin", STORED_DOCUMENT_ORIGINS, collectRunDefaultProperties = (runProps, { allowOverrideTypeface = true, allowOverrideSize = true, themeResolver, state }) => {
|
|
119185
119225
|
if (!runProps?.elements?.length || !state)
|
|
119186
119226
|
return;
|
|
119187
119227
|
const fontsNode = runProps.elements.find((el) => el.name === "w:rFonts");
|
|
@@ -119215,7 +119255,7 @@ Docs: https://docs.superdoc.dev/getting-started/fonts`);
|
|
|
119215
119255
|
state.kern = kernNode.attributes["w:val"];
|
|
119216
119256
|
}
|
|
119217
119257
|
}, SuperConverter;
|
|
119218
|
-
var
|
|
119258
|
+
var init_SuperConverter_DmNlxqix_es = __esm(() => {
|
|
119219
119259
|
init_rolldown_runtime_Bg48TavK_es();
|
|
119220
119260
|
init_jszip_C49i9kUs_es();
|
|
119221
119261
|
init_xml_js_CqGKpaft_es();
|
|
@@ -159977,7 +160017,7 @@ var init_SuperConverter_cG5SxcH9_es = __esm(() => {
|
|
|
159977
160017
|
};
|
|
159978
160018
|
});
|
|
159979
160019
|
|
|
159980
|
-
// ../../packages/superdoc/dist/chunks/create-headless-toolbar-
|
|
160020
|
+
// ../../packages/superdoc/dist/chunks/create-headless-toolbar-ADxgin57.es.js
|
|
159981
160021
|
function parseSizeUnit(val = "0") {
|
|
159982
160022
|
const length = val.toString() || "0";
|
|
159983
160023
|
const value = Number.parseFloat(length);
|
|
@@ -170626,8 +170666,8 @@ var CSS_DIMENSION_REGEX, DOM_SIZE_UNITS, normalizeActorId = (value) => {
|
|
|
170626
170666
|
}
|
|
170627
170667
|
};
|
|
170628
170668
|
};
|
|
170629
|
-
var
|
|
170630
|
-
|
|
170669
|
+
var init_create_headless_toolbar_ADxgin57_es = __esm(() => {
|
|
170670
|
+
init_SuperConverter_DmNlxqix_es();
|
|
170631
170671
|
init_uuid_B2wVPhPi_es();
|
|
170632
170672
|
init_constants_D9qj59G2_es();
|
|
170633
170673
|
init_dist_B8HfvhaK_es();
|
|
@@ -225317,7 +225357,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
|
|
|
225317
225357
|
init_remark_gfm_BhnWr3yf_es();
|
|
225318
225358
|
});
|
|
225319
225359
|
|
|
225320
|
-
// ../../packages/superdoc/dist/chunks/src-
|
|
225360
|
+
// ../../packages/superdoc/dist/chunks/src-DRDbpTHt.es.js
|
|
225321
225361
|
function deleteProps(obj, propOrProps) {
|
|
225322
225362
|
const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
|
|
225323
225363
|
const removeNested = (target, pathParts, index2 = 0) => {
|
|
@@ -225391,7 +225431,7 @@ function prosemirrorToYXmlFragment(doc$12, xmlFragment) {
|
|
|
225391
225431
|
}
|
|
225392
225432
|
function getSuperdocVersion() {
|
|
225393
225433
|
try {
|
|
225394
|
-
return "1.
|
|
225434
|
+
return "1.41.0";
|
|
225395
225435
|
} catch {
|
|
225396
225436
|
return "unknown";
|
|
225397
225437
|
}
|
|
@@ -296487,6 +296527,17 @@ var Node$13 = class Node$14 {
|
|
|
296487
296527
|
} catch {
|
|
296488
296528
|
return step2;
|
|
296489
296529
|
}
|
|
296530
|
+
}, sliceHasInlineLeafContent = (slice2) => {
|
|
296531
|
+
let found2 = false;
|
|
296532
|
+
slice2.content.descendants((node2) => {
|
|
296533
|
+
if (found2)
|
|
296534
|
+
return false;
|
|
296535
|
+
if (node2.isInline && (node2.isText || node2.isLeaf)) {
|
|
296536
|
+
found2 = true;
|
|
296537
|
+
return false;
|
|
296538
|
+
}
|
|
296539
|
+
});
|
|
296540
|
+
return found2;
|
|
296490
296541
|
}, replaceStep2 = ({ state, tr, step: step2, newTr, map: map$12, user, date: date6, originalStep, originalStepIndex, replacements = "paired" }) => {
|
|
296491
296542
|
const originalRange = {
|
|
296492
296543
|
from: step2.from,
|
|
@@ -296673,6 +296724,7 @@ var Node$13 = class Node$14 {
|
|
|
296673
296724
|
if (!hasInlineContent)
|
|
296674
296725
|
return { handled: false };
|
|
296675
296726
|
}
|
|
296727
|
+
const isStructuralShellDelete = step2.from !== step2.to && step2.slice.content.size > 0 && !sliceHasInlineLeafContent(step2.slice);
|
|
296676
296728
|
let intent;
|
|
296677
296729
|
try {
|
|
296678
296730
|
const preserveExistingReviewState = tr.getMeta("protectTrackedReviewState") === true;
|
|
@@ -296686,7 +296738,7 @@ var Node$13 = class Node$14 {
|
|
|
296686
296738
|
source,
|
|
296687
296739
|
preserveExistingReviewState
|
|
296688
296740
|
});
|
|
296689
|
-
else if (step2.from !== step2.to && step2.slice.content.size === 0)
|
|
296741
|
+
else if (step2.from !== step2.to && (step2.slice.content.size === 0 || isStructuralShellDelete))
|
|
296690
296742
|
intent = makeTextDeleteIntent({
|
|
296691
296743
|
from: step2.from,
|
|
296692
296744
|
to: step2.to,
|
|
@@ -296742,7 +296794,10 @@ var Node$13 = class Node$14 {
|
|
|
296742
296794
|
map$12.appendMap(invertStep.getMap());
|
|
296743
296795
|
const mirrorIndex = map$12.maps.length - 1;
|
|
296744
296796
|
for (let i4 = beforeSteps;i4 < newTr.steps.length; i4 += 1)
|
|
296745
|
-
|
|
296797
|
+
if (isStructuralShellDelete)
|
|
296798
|
+
map$12.appendMap(newTr.steps[i4].getMap());
|
|
296799
|
+
else
|
|
296800
|
+
map$12.appendMap(newTr.steps[i4].getMap(), mirrorIndex);
|
|
296746
296801
|
} else
|
|
296747
296802
|
for (let i4 = beforeSteps;i4 < newTr.steps.length; i4 += 1)
|
|
296748
296803
|
map$12.appendMap(newTr.steps[i4].getMap());
|
|
@@ -296761,7 +296816,7 @@ var Node$13 = class Node$14 {
|
|
|
296761
296816
|
meta4.step = result.insertedStep;
|
|
296762
296817
|
else if (result.insertedMark && result.insertedNodes?.length)
|
|
296763
296818
|
meta4.step = { slice: { content: { content: result.insertedNodes } } };
|
|
296764
|
-
if (result.selection?.kind === "near" && stepWasNormalized && !result.insertedMark)
|
|
296819
|
+
if (result.selection?.kind === "near" && (stepWasNormalized || isStructuralShellDelete) && !result.insertedMark)
|
|
296765
296820
|
meta4.selectionPos = result.selection.pos;
|
|
296766
296821
|
newTr.setMeta(TrackChangesBasePluginKey, meta4);
|
|
296767
296822
|
newTr.setMeta(CommentsPluginKey, { type: "force" });
|
|
@@ -298761,7 +298816,10 @@ var Node$13 = class Node$14 {
|
|
|
298761
298816
|
originalId: event.changeId
|
|
298762
298817
|
}).some(({ mark: mark2 }) => mark2.attrs?.splitFromId === event.changeId))
|
|
298763
298818
|
continue;
|
|
298764
|
-
editor.emit("commentsUpdate",
|
|
298819
|
+
editor.emit("commentsUpdate", {
|
|
298820
|
+
...event,
|
|
298821
|
+
decision
|
|
298822
|
+
});
|
|
298765
298823
|
}
|
|
298766
298824
|
const touched = result.touchedChangeIds instanceof Set ? result.touchedChangeIds : new Set(result.touchedChangeIds || []);
|
|
298767
298825
|
const emittedFor = /* @__PURE__ */ new Set;
|
|
@@ -302847,7 +302905,7 @@ var Node$13 = class Node$14 {
|
|
|
302847
302905
|
domAvailabilityCache = false;
|
|
302848
302906
|
return false;
|
|
302849
302907
|
}
|
|
302850
|
-
}, summaryVersion = "1.
|
|
302908
|
+
}, summaryVersion = "1.41.0", nodeKeys, markKeys, transformListsInCopiedContent = (html3) => {
|
|
302851
302909
|
const container = document.createElement("div");
|
|
302852
302910
|
container.innerHTML = html3;
|
|
302853
302911
|
const result = [];
|
|
@@ -304033,7 +304091,7 @@ var Node$13 = class Node$14 {
|
|
|
304033
304091
|
return () => {};
|
|
304034
304092
|
const handle3 = setInterval(callback, intervalMs);
|
|
304035
304093
|
return () => clearInterval(handle3);
|
|
304036
|
-
}, 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.
|
|
304094
|
+
}, 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.41.0", PIXELS_PER_INCH2 = 96, MAX_HEIGHT_BUFFER_PX = 50, MAX_WIDTH_BUFFER_PX = 20, TRACKED_REVIEW_MARK_NAMES2, isTrackedReviewMark = (mark2) => Boolean(mark2?.type?.name && TRACKED_REVIEW_MARK_NAMES2.has(mark2.type.name)), trackedReviewMarkKey = (mark2) => {
|
|
304037
304095
|
if (!isTrackedReviewMark(mark2))
|
|
304038
304096
|
return null;
|
|
304039
304097
|
const id2 = typeof mark2.attrs?.id === "string" ? mark2.attrs.id : "";
|
|
@@ -323349,7 +323407,7 @@ menclose::after {
|
|
|
323349
323407
|
applyInitialConfig(config3) {
|
|
323350
323408
|
this.#cancelPendingRuntimeReflow();
|
|
323351
323409
|
warnUnknownBundledSelection(config3?.bundled);
|
|
323352
|
-
this.#resolver.setActivation(
|
|
323410
|
+
this.#resolver.setActivation(deriveBundledActivationForConfig(config3));
|
|
323353
323411
|
if (!config3)
|
|
323354
323412
|
return;
|
|
323355
323413
|
const registered$1 = this.#registerFamilies(config3.families);
|
|
@@ -323575,13 +323633,13 @@ menclose::after {
|
|
|
323575
323633
|
return;
|
|
323576
323634
|
console.log(...args$1);
|
|
323577
323635
|
}, 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;
|
|
323578
|
-
var
|
|
323636
|
+
var init_src_DRDbpTHt_es = __esm(() => {
|
|
323579
323637
|
init_rolldown_runtime_Bg48TavK_es();
|
|
323580
|
-
|
|
323638
|
+
init_SuperConverter_DmNlxqix_es();
|
|
323581
323639
|
init_jszip_C49i9kUs_es();
|
|
323582
323640
|
init_xml_js_CqGKpaft_es();
|
|
323583
323641
|
init_uuid_B2wVPhPi_es();
|
|
323584
|
-
|
|
323642
|
+
init_create_headless_toolbar_ADxgin57_es();
|
|
323585
323643
|
init_constants_D9qj59G2_es();
|
|
323586
323644
|
init_dist_B8HfvhaK_es();
|
|
323587
323645
|
init_unified_Dsuw2be5_es();
|
|
@@ -334362,6 +334420,7 @@ ${err.toString()}`);
|
|
|
334362
334420
|
atom: true,
|
|
334363
334421
|
selectable: false,
|
|
334364
334422
|
draggable: false,
|
|
334423
|
+
leafText: (node2) => node2.attrs.resolvedText || node2.attrs.target || "",
|
|
334365
334424
|
addOptions() {
|
|
334366
334425
|
return { htmlAttributes: {
|
|
334367
334426
|
contenteditable: false,
|
|
@@ -346979,7 +347038,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
346979
347038
|
this.overflowItems = overflowItems.filter((item) => allConfigItems.includes(item.name.value));
|
|
346980
347039
|
}
|
|
346981
347040
|
#resolveToolbarFonts(configFonts) {
|
|
346982
|
-
return composeToolbarFontOptions(this.superdoc?.fonts?.getDocumentFontOptions?.() ?? [], configFonts,
|
|
347041
|
+
return composeToolbarFontOptions(this.superdoc?.fonts?.getDocumentFontOptions?.() ?? [], configFonts, deriveBundledActivationForConfig(this.superdoc?.config?.fonts));
|
|
346983
347042
|
}
|
|
346984
347043
|
#rebuildToolbarItems() {
|
|
346985
347044
|
this.#makeToolbarItems({
|
|
@@ -353067,10 +353126,14 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
353067
353126
|
getRequiredFaces: () => this.#fontPlan?.requiredFaces ?? [],
|
|
353068
353127
|
getUsedFaces: () => this.#fontPlan?.usedFaces ?? [],
|
|
353069
353128
|
fontResolver: this.#fontResolver,
|
|
353070
|
-
onRegistryResolved: (registry3) =>
|
|
353071
|
-
|
|
353072
|
-
|
|
353073
|
-
|
|
353129
|
+
onRegistryResolved: (registry3) => {
|
|
353130
|
+
if (!deriveBundledActivation(this.#options.fontAssets).packConfigured)
|
|
353131
|
+
return;
|
|
353132
|
+
installBundledSubstitutes(registry3, {
|
|
353133
|
+
assetBaseUrl: this.#options.fontAssets?.assetBaseUrl,
|
|
353134
|
+
resolveAssetUrl: this.#options.fontAssets?.resolveAssetUrl
|
|
353135
|
+
});
|
|
353136
|
+
},
|
|
353074
353137
|
getFontEnvironment: () => {
|
|
353075
353138
|
const ownerDoc = this.#visibleHost?.ownerDocument ?? (typeof document !== "undefined" ? document : null);
|
|
353076
353139
|
const view = ownerDoc?.defaultView ?? (typeof window !== "undefined" ? window : null);
|
|
@@ -359360,11 +359423,11 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
359360
359423
|
]);
|
|
359361
359424
|
});
|
|
359362
359425
|
|
|
359363
|
-
// ../../packages/superdoc/dist/chunks/create-super-doc-ui-
|
|
359426
|
+
// ../../packages/superdoc/dist/chunks/create-super-doc-ui-DHGYvHO3.es.js
|
|
359364
359427
|
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;
|
|
359365
|
-
var
|
|
359366
|
-
|
|
359367
|
-
|
|
359428
|
+
var init_create_super_doc_ui_DHGYvHO3_es = __esm(() => {
|
|
359429
|
+
init_SuperConverter_DmNlxqix_es();
|
|
359430
|
+
init_create_headless_toolbar_ADxgin57_es();
|
|
359368
359431
|
DEFAULT_TEXT_ALIGN_OPTIONS = [
|
|
359369
359432
|
{
|
|
359370
359433
|
label: "Left",
|
|
@@ -359655,16 +359718,16 @@ var init_zipper_yaJVJ4z9_es = __esm(() => {
|
|
|
359655
359718
|
|
|
359656
359719
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
359657
359720
|
var init_super_editor_es = __esm(() => {
|
|
359658
|
-
|
|
359659
|
-
|
|
359721
|
+
init_src_DRDbpTHt_es();
|
|
359722
|
+
init_SuperConverter_DmNlxqix_es();
|
|
359660
359723
|
init_jszip_C49i9kUs_es();
|
|
359661
359724
|
init_xml_js_CqGKpaft_es();
|
|
359662
|
-
|
|
359725
|
+
init_create_headless_toolbar_ADxgin57_es();
|
|
359663
359726
|
init_constants_D9qj59G2_es();
|
|
359664
359727
|
init_dist_B8HfvhaK_es();
|
|
359665
359728
|
init_unified_Dsuw2be5_es();
|
|
359666
359729
|
init_DocxZipper_FUsfThjV_es();
|
|
359667
|
-
|
|
359730
|
+
init_create_super_doc_ui_DHGYvHO3_es();
|
|
359668
359731
|
init_ui_C5PAS9hY_es();
|
|
359669
359732
|
init_eventemitter3_BnGqBE_Q_es();
|
|
359670
359733
|
init_errors_CNaD6vcg_es();
|
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.33",
|
|
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",
|
|
23
22
|
"@superdoc/super-editor": "0.0.1",
|
|
24
|
-
"superdoc": "1.
|
|
23
|
+
"superdoc": "1.41.0",
|
|
24
|
+
"@superdoc/document-api": "0.0.1"
|
|
25
25
|
},
|
|
26
26
|
"publishConfig": {
|
|
27
27
|
"access": "public"
|