@superdoc-dev/mcp 0.12.0-next.41 → 0.12.0-next.42

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.
Files changed (2) hide show
  1. package/dist/index.js +244 -198
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -161888,157 +161888,6 @@ var __plugin_vue_export_helper_default = (sfc, props) => {
161888
161888
  };
161889
161889
  var init__plugin_vue_export_helper_HmhZBO0u_es = () => {};
161890
161890
 
161891
- // ../../packages/superdoc/dist/chunks/ui-BMYSpkne.es.js
161892
- function buildAnnotationSelector() {
161893
- return `.${DOM_CLASS_NAMES.ANNOTATION}[${DATA_ATTRS.PM_START}]`;
161894
- }
161895
- function findRenderedCommentElements(host, commentId, storyKey) {
161896
- if (!host || !commentId)
161897
- return [];
161898
- return Array.from(host.querySelectorAll("[data-comment-ids]")).filter((el) => {
161899
- const raw = el.dataset.commentIds;
161900
- if (!raw)
161901
- return false;
161902
- if (!raw.split(",").some((token) => token.trim() === commentId))
161903
- return false;
161904
- if (!storyKey)
161905
- return true;
161906
- const elStoryKey = el.dataset.storyKey;
161907
- if (elStoryKey)
161908
- return elStoryKey === storyKey;
161909
- return storyKey === BODY_STORY_KEY;
161910
- });
161911
- }
161912
- function findRenderedTrackedChangeElementsStrict(host, entityId, escapeAttrValue, storyKey) {
161913
- if (!host || !entityId)
161914
- return [];
161915
- const baseSelector = `[data-track-change-id="${escapeAttrValue(entityId)}"]`;
161916
- if (!storyKey)
161917
- return Array.from(host.querySelectorAll(baseSelector));
161918
- const storySelector = `${baseSelector}[data-story-key="${escapeAttrValue(storyKey)}"]`;
161919
- return Array.from(host.querySelectorAll(storySelector));
161920
- }
161921
- function findRenderedContentControlElements(host, entityId, escapeAttrValue, _storyKey) {
161922
- if (!host || !entityId)
161923
- return [];
161924
- const id = escapeAttrValue(entityId);
161925
- const selector = `.${DOM_CLASS_NAMES.INLINE_SDT_WRAPPER}[data-sdt-id="${id}"][data-sdt-type="structuredContent"],.${DOM_CLASS_NAMES.BLOCK_SDT}[data-sdt-id="${id}"][data-sdt-type="structuredContent"]`;
161926
- return Array.from(host.querySelectorAll(selector));
161927
- }
161928
- function elementsToRangeRects(elements) {
161929
- const result = [];
161930
- for (const element of elements) {
161931
- const rect = element.getBoundingClientRect();
161932
- if (![
161933
- rect.top,
161934
- rect.left,
161935
- rect.right,
161936
- rect.bottom,
161937
- rect.width,
161938
- rect.height
161939
- ].every(Number.isFinite))
161940
- continue;
161941
- const pageEl = element.closest(".superdoc-page");
161942
- const pageIndexAttr = Number(pageEl?.dataset?.pageIndex ?? 0);
161943
- result.push({
161944
- pageIndex: Number.isFinite(pageIndexAttr) ? pageIndexAttr : 0,
161945
- left: rect.left,
161946
- top: rect.top,
161947
- right: rect.right,
161948
- bottom: rect.bottom,
161949
- width: rect.width,
161950
- height: rect.height
161951
- });
161952
- }
161953
- return result;
161954
- }
161955
- var DOM_CLASS_NAMES, STRUCTURED_CONTENT_CHROME_LABEL_CLASS_NAMES, DATA_ATTRS, DATASET_KEYS, encodeLayoutStoryDataset = (story) => story.kind === "body" ? "body" : story.id ? `${story.kind}:${story.id}` : story.kind, decodeLayoutStoryDataset = (raw) => {
161956
- if (!raw)
161957
- return { kind: "unknown" };
161958
- if (raw === "body")
161959
- return { kind: "body" };
161960
- const idx = raw.indexOf(":");
161961
- const kind = idx === -1 ? raw : raw.slice(0, idx);
161962
- const id = idx === -1 ? undefined : raw.slice(idx + 1);
161963
- switch (kind) {
161964
- case "body":
161965
- case "header":
161966
- case "footer":
161967
- case "footnote":
161968
- case "endnote":
161969
- return id ? {
161970
- kind,
161971
- id
161972
- } : { kind };
161973
- default:
161974
- return { kind: "unknown" };
161975
- }
161976
- }, DRAGGABLE_SELECTOR;
161977
- var init_ui_BMYSpkne_es = __esm(() => {
161978
- init_SuperConverter_Du0apG1R_es();
161979
- DOM_CLASS_NAMES = {
161980
- PAGE: "superdoc-page",
161981
- FRAGMENT: "superdoc-fragment",
161982
- LINE: "superdoc-line",
161983
- INLINE_SDT_WRAPPER: "superdoc-structured-content-inline",
161984
- INLINE_SDT_LABEL: "superdoc-structured-content-inline__label",
161985
- BLOCK_SDT: "superdoc-structured-content-block",
161986
- BLOCK_SDT_LABEL: "superdoc-structured-content__label",
161987
- TABLE_FRAGMENT: "superdoc-table-fragment",
161988
- DOCUMENT_SECTION: "superdoc-document-section",
161989
- SDT_GROUP_HOVER: "sdt-group-hover",
161990
- TOC_ENTRY: "superdoc-toc-entry",
161991
- TOC_GROUP_HOVER: "toc-group-hover",
161992
- IMAGE_FRAGMENT: "superdoc-image-fragment",
161993
- INLINE_IMAGE: "superdoc-inline-image",
161994
- LIST_MARKER: "superdoc-list-marker",
161995
- INLINE_IMAGE_CLIP_WRAPPER: "superdoc-inline-image-clip-wrapper",
161996
- ANNOTATION: "annotation",
161997
- ANNOTATION_CONTENT: "annotation-content",
161998
- ANNOTATION_CARET_ANCHOR: "annotation-caret-anchor"
161999
- };
162000
- STRUCTURED_CONTENT_CHROME_LABEL_CLASS_NAMES = [DOM_CLASS_NAMES.INLINE_SDT_LABEL, DOM_CLASS_NAMES.BLOCK_SDT_LABEL];
162001
- DATA_ATTRS = {
162002
- PM_START: "data-pm-start",
162003
- PM_END: "data-pm-end",
162004
- LAYOUT_EPOCH: "data-layout-epoch",
162005
- TABLE_BOUNDARIES: "data-table-boundaries",
162006
- SDT_ID: "data-sdt-id",
162007
- SDT_TYPE: "data-sdt-type",
162008
- FIELD_ID: "data-field-id",
162009
- FIELD_TYPE: "data-field-type",
162010
- DRAGGABLE: "data-draggable",
162011
- DISPLAY_LABEL: "data-display-label",
162012
- VARIANT: "data-variant",
162013
- TYPE: "data-type",
162014
- LAYOUT_BOUNDARY_SCHEMA: "data-layout-boundary-schema",
162015
- LAYOUT_FRAGMENT_ID: "data-layout-fragment-id",
162016
- LAYOUT_STORY: "data-layout-story",
162017
- LAYOUT_BLOCK_REF: "data-layout-block-ref"
162018
- };
162019
- DATASET_KEYS = {
162020
- PM_START: "pmStart",
162021
- PM_END: "pmEnd",
162022
- LAYOUT_EPOCH: "layoutEpoch",
162023
- TABLE_BOUNDARIES: "tableBoundaries",
162024
- SDT_ID: "sdtId",
162025
- SDT_TYPE: "sdtType",
162026
- FIELD_ID: "fieldId",
162027
- FIELD_TYPE: "fieldType",
162028
- DRAGGABLE: "draggable",
162029
- DISPLAY_LABEL: "displayLabel",
162030
- VARIANT: "variant",
162031
- TYPE: "type",
162032
- LAYOUT_BOUNDARY_SCHEMA: "layoutBoundarySchema",
162033
- LAYOUT_FRAGMENT_ID: "layoutFragmentId",
162034
- LAYOUT_STORY: "layoutStory",
162035
- LAYOUT_BLOCK_REF: "layoutBlockRef"
162036
- };
162037
- `${DOM_CLASS_NAMES.BLOCK_SDT}${DATA_ATTRS.SDT_ID}`;
162038
- DRAGGABLE_SELECTOR = `[${DATA_ATTRS.DRAGGABLE}="true"]`;
162039
- DATA_ATTRS.LAYOUT_EPOCH;
162040
- });
162041
-
162042
161891
  // ../../packages/superdoc/dist/chunks/eventemitter3-UwU_CLPU.es.js
162043
161892
  var import_eventemitter3;
162044
161893
  var init_eventemitter3_UwU_CLPU_es = __esm(() => {
@@ -214076,7 +213925,7 @@ var init_remark_gfm_DCND_V_3_es = __esm(() => {
214076
213925
  init_remark_gfm_BUJjZJLy_es();
214077
213926
  });
214078
213927
 
214079
- // ../../packages/superdoc/dist/chunks/src-bGJhSgx_.es.js
213928
+ // ../../packages/superdoc/dist/chunks/src-DfMY3HP9.es.js
214080
213929
  function deleteProps(obj, propOrProps) {
214081
213930
  const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
214082
213931
  const removeNested = (target, pathParts, index2 = 0) => {
@@ -223526,6 +223375,9 @@ function replaceCommand(wrap4, moveForward) {
223526
223375
  return true;
223527
223376
  };
223528
223377
  }
223378
+ function buildAnnotationSelector() {
223379
+ return `.${DOM_CLASS_NAMES.ANNOTATION}[${DATA_ATTRS.PM_START}]`;
223380
+ }
223529
223381
  function isPresenting(editor) {
223530
223382
  const presentationCtx = editor?.presentationEditor;
223531
223383
  if (!presentationCtx)
@@ -261815,7 +261667,7 @@ function getMeasurementContext() {
261815
261667
  function getRunFontString(run2) {
261816
261668
  if (run2.kind === "tab" || run2.kind === "lineBreak" || run2.kind === "break" || run2.kind === "fieldAnnotation" || run2.kind === "math" || "src" in run2)
261817
261669
  return "normal normal 16px Arial";
261818
- return `${run2.italic ? "italic" : "normal"} ${run2.bold ? "bold" : "normal"} ${run2.fontSize ?? 16}px ${DEFAULT_FONT_MEASURE_CONTEXT.resolvePhysical(run2.fontFamily ?? "Arial", faceOf$1(run2))}`;
261670
+ return `${run2.italic ? "italic" : "normal"} ${run2.bold ? "bold" : "normal"} ${run2.fontSize ?? 16}px ${run2.fontFamily ?? "Arial"}`;
261819
261671
  }
261820
261672
  function measureCharacterX(block, line, charOffset, availableWidthOverride, alignmentOverride) {
261821
261673
  const ctx$1 = getMeasurementContext();
@@ -261955,43 +261807,97 @@ function charOffsetToPm(block, line, charOffset, fallbackPmStart) {
261955
261807
  return lastPm;
261956
261808
  }
261957
261809
  function findCharacterAtX(block, line, x, pmStart, availableWidthOverride, alignmentOverride) {
261958
- const maxOffset = lineCharLength(block, line);
261959
- const xAtOffset = (offset$1) => measureCharacterX(block, line, offset$1, availableWidthOverride, alignmentOverride);
261960
- const charOffset = nearestOffsetToX(x, maxOffset, xAtOffset);
261961
- return {
261962
- charOffset,
261963
- pmPosition: charOffsetToPm(block, line, charOffset, pmStart)
261964
- };
261965
- }
261966
- function lineCharLength(block, line) {
261967
- let length$1 = 0;
261968
- for (const run2 of sliceRunsForLine(block, line)) {
261810
+ const ctx$1 = getMeasurementContext();
261811
+ const availableWidth = availableWidthOverride ?? line.maxWidth ?? line.width;
261812
+ const justify = getJustifyAdjustment({
261813
+ block,
261814
+ line,
261815
+ availableWidthOverride: availableWidth,
261816
+ alignmentOverride
261817
+ });
261818
+ const alignment$1 = alignmentOverride ?? (block.kind === "paragraph" ? block.attrs?.alignment : undefined);
261819
+ const renderedLineWidth = alignment$1 === "justify" ? line.width + Math.max(0, availableWidth - line.width) : line.width;
261820
+ const hasExplicitPositioning = line.segments?.some((seg) => seg.x !== undefined);
261821
+ const alignmentOffset = !hasExplicitPositioning && alignment$1 === "center" ? Math.max(0, (availableWidth - renderedLineWidth) / 2) : !hasExplicitPositioning && alignment$1 === "right" ? Math.max(0, availableWidth - renderedLineWidth) : 0;
261822
+ if (!ctx$1) {
261823
+ const runs$1 = sliceRunsForLine(block, line);
261824
+ const charsInLine = Math.max(1, runs$1.reduce((sum, run2) => {
261825
+ if (isTabRun$1(run2))
261826
+ return sum + TAB_CHAR_LENGTH;
261827
+ if ("src" in run2 || run2.kind === "lineBreak" || run2.kind === "break" || run2.kind === "fieldAnnotation" || run2.kind === "math")
261828
+ return sum;
261829
+ return sum + (run2.text ?? "").length;
261830
+ }, 0));
261831
+ const ratio = Math.max(0, Math.min(1, (x - alignmentOffset) / renderedLineWidth));
261832
+ const charOffset = Math.round(ratio * charsInLine);
261833
+ return {
261834
+ charOffset,
261835
+ pmPosition: charOffsetToPm(block, line, charOffset, pmStart)
261836
+ };
261837
+ }
261838
+ const runs2 = sliceRunsForLine(block, line);
261839
+ const safeX = Math.max(0, Math.min(renderedLineWidth, x - alignmentOffset));
261840
+ let currentX = 0;
261841
+ let currentCharOffset = 0;
261842
+ let spaceTally = 0;
261843
+ for (const run2 of runs2) {
261969
261844
  if (isTabRun$1(run2)) {
261970
- length$1 += TAB_CHAR_LENGTH;
261845
+ const tabWidth = run2.width ?? 0;
261846
+ const startX = currentX;
261847
+ const endX = currentX + tabWidth;
261848
+ if (safeX <= endX) {
261849
+ const offsetInRun = safeX < startX + tabWidth / 2 ? 0 : TAB_CHAR_LENGTH;
261850
+ const charOffset = currentCharOffset + offsetInRun;
261851
+ return {
261852
+ charOffset,
261853
+ pmPosition: charOffsetToPm(block, line, charOffset, pmStart)
261854
+ };
261855
+ }
261856
+ currentX = endX;
261857
+ currentCharOffset += TAB_CHAR_LENGTH;
261971
261858
  continue;
261972
261859
  }
261973
- if ("src" in run2 || run2.kind === "lineBreak" || run2.kind === "break" || run2.kind === "fieldAnnotation" || run2.kind === "math")
261860
+ const text5 = "src" in run2 || run2.kind === "lineBreak" || run2.kind === "break" || run2.kind === "fieldAnnotation" || run2.kind === "math" ? "" : run2.text ?? "";
261861
+ const runLength = text5.length;
261862
+ const displayText = applyTextTransform$3(text5, isTabRun$1(run2) || "src" in run2 || run2.kind === "lineBreak" || run2.kind === "break" || run2.kind === "fieldAnnotation" || run2.kind === "math" ? undefined : run2.textTransform);
261863
+ if (runLength === 0)
261974
261864
  continue;
261975
- length$1 += (run2.text ?? "").length;
261976
- }
261977
- return length$1;
261978
- }
261979
- function nearestOffsetToX(x, maxOffset, xAtOffset) {
261980
- if (maxOffset <= 0 || x <= xAtOffset(0))
261981
- return 0;
261982
- if (x >= xAtOffset(maxOffset))
261983
- return maxOffset;
261984
- let lo = 0;
261985
- let hi = maxOffset;
261986
- while (lo < hi) {
261987
- const mid = lo + hi + 1 >> 1;
261988
- if (xAtOffset(mid) <= x)
261989
- lo = mid;
261990
- else
261991
- hi = mid - 1;
261865
+ ctx$1.font = getRunFontString(run2);
261866
+ for (let i3 = 0;i3 <= runLength; i3++) {
261867
+ const textUpToChar = displayText.slice(0, i3);
261868
+ const measured$1 = ctx$1.measureText(textUpToChar);
261869
+ const spacesInPortion = justify.extraPerSpace > 0 ? countSpaces(text5.slice(0, i3)) : 0;
261870
+ const charX = currentX + measured$1.width + computeLetterSpacingWidth(run2, i3, runLength) + justify.extraPerSpace * (spaceTally + spacesInPortion);
261871
+ if (charX >= safeX) {
261872
+ if (i3 === 0) {
261873
+ const pmPosition$1 = charOffsetToPm(block, line, currentCharOffset, pmStart);
261874
+ return {
261875
+ charOffset: currentCharOffset,
261876
+ pmPosition: pmPosition$1
261877
+ };
261878
+ }
261879
+ const prevText = displayText.slice(0, i3 - 1);
261880
+ const prevMeasured = ctx$1.measureText(prevText);
261881
+ const prevX = currentX + prevMeasured.width + computeLetterSpacingWidth(run2, i3 - 1, runLength);
261882
+ const charOffset = Math.abs(safeX - prevX) < Math.abs(safeX - charX) ? currentCharOffset + i3 - 1 : currentCharOffset + i3;
261883
+ return {
261884
+ charOffset,
261885
+ pmPosition: charOffsetToPm(block, line, charOffset, pmStart)
261886
+ };
261887
+ }
261888
+ }
261889
+ const measured = ctx$1.measureText(displayText);
261890
+ const runLetterSpacing = computeLetterSpacingWidth(run2, runLength, runLength);
261891
+ const spacesInRun = justify.extraPerSpace > 0 ? countSpaces(text5) : 0;
261892
+ currentX += measured.width + runLetterSpacing + justify.extraPerSpace * spacesInRun;
261893
+ spaceTally += spacesInRun;
261894
+ currentCharOffset += runLength;
261992
261895
  }
261993
- const upper = Math.min(lo + 1, maxOffset);
261994
- return x - xAtOffset(lo) < xAtOffset(upper) - x ? lo : upper;
261896
+ const pmPosition = charOffsetToPm(block, line, currentCharOffset, pmStart);
261897
+ return {
261898
+ charOffset: currentCharOffset,
261899
+ pmPosition
261900
+ };
261995
261901
  }
261996
261902
  function getWordLayoutConfig(block) {
261997
261903
  if (!block || block.kind !== "paragraph")
@@ -267648,6 +267554,66 @@ function createHiddenHost(doc$12, widthPx) {
267648
267554
  host
267649
267555
  };
267650
267556
  }
267557
+ function findRenderedCommentElements(host, commentId, storyKey) {
267558
+ if (!host || !commentId)
267559
+ return [];
267560
+ return Array.from(host.querySelectorAll("[data-comment-ids]")).filter((el) => {
267561
+ const raw = el.dataset.commentIds;
267562
+ if (!raw)
267563
+ return false;
267564
+ if (!raw.split(",").some((token$1) => token$1.trim() === commentId))
267565
+ return false;
267566
+ if (!storyKey)
267567
+ return true;
267568
+ const elStoryKey = el.dataset.storyKey;
267569
+ if (elStoryKey)
267570
+ return elStoryKey === storyKey;
267571
+ return storyKey === BODY_STORY_KEY;
267572
+ });
267573
+ }
267574
+ function findRenderedTrackedChangeElementsStrict(host, entityId, escapeAttrValue$1, storyKey) {
267575
+ if (!host || !entityId)
267576
+ return [];
267577
+ const baseSelector = `[data-track-change-id="${escapeAttrValue$1(entityId)}"]`;
267578
+ if (!storyKey)
267579
+ return Array.from(host.querySelectorAll(baseSelector));
267580
+ const storySelector = `${baseSelector}[data-story-key="${escapeAttrValue$1(storyKey)}"]`;
267581
+ return Array.from(host.querySelectorAll(storySelector));
267582
+ }
267583
+ function findRenderedContentControlElements(host, entityId, escapeAttrValue$1, _storyKey) {
267584
+ if (!host || !entityId)
267585
+ return [];
267586
+ const id2 = escapeAttrValue$1(entityId);
267587
+ const selector = `.${DOM_CLASS_NAMES.INLINE_SDT_WRAPPER}[data-sdt-id="${id2}"][data-sdt-type="structuredContent"],.${DOM_CLASS_NAMES.BLOCK_SDT}[data-sdt-id="${id2}"][data-sdt-type="structuredContent"]`;
267588
+ return Array.from(host.querySelectorAll(selector));
267589
+ }
267590
+ function elementsToRangeRects(elements) {
267591
+ const result = [];
267592
+ for (const element3 of elements) {
267593
+ const rect = element3.getBoundingClientRect();
267594
+ if (![
267595
+ rect.top,
267596
+ rect.left,
267597
+ rect.right,
267598
+ rect.bottom,
267599
+ rect.width,
267600
+ rect.height
267601
+ ].every(Number.isFinite))
267602
+ continue;
267603
+ const pageEl = element3.closest(".superdoc-page");
267604
+ const pageIndexAttr = Number(pageEl?.dataset?.pageIndex ?? 0);
267605
+ result.push({
267606
+ pageIndex: Number.isFinite(pageIndexAttr) ? pageIndexAttr : 0,
267607
+ left: rect.left,
267608
+ top: rect.top,
267609
+ right: rect.right,
267610
+ bottom: rect.bottom,
267611
+ width: rect.width,
267612
+ height: rect.height
267613
+ });
267614
+ }
267615
+ return result;
267616
+ }
267651
267617
  function getFallbackCursorColor(clientId, fallbackColors) {
267652
267618
  return fallbackColors[clientId % fallbackColors.length];
267653
267619
  }
@@ -289226,7 +289192,28 @@ var Node$13 = class Node$14 {
289226
289192
  if (!allowedRanges?.length)
289227
289193
  return false;
289228
289194
  return allowedRanges.some((allowed) => range.from >= allowed.from && range.to <= allowed.to);
289229
- }, PermissionRanges, Protection, VerticalNavigationPluginKey, createDefaultState = () => ({
289195
+ }, PermissionRanges, Protection, DOM_CLASS_NAMES, STRUCTURED_CONTENT_CHROME_LABEL_CLASS_NAMES, DATA_ATTRS, DATASET_KEYS, encodeLayoutStoryDataset = (story) => story.kind === "body" ? "body" : story.id ? `${story.kind}:${story.id}` : story.kind, decodeLayoutStoryDataset = (raw) => {
289196
+ if (!raw)
289197
+ return { kind: "unknown" };
289198
+ if (raw === "body")
289199
+ return { kind: "body" };
289200
+ const idx = raw.indexOf(":");
289201
+ const kind = idx === -1 ? raw : raw.slice(0, idx);
289202
+ const id2 = idx === -1 ? undefined : raw.slice(idx + 1);
289203
+ switch (kind) {
289204
+ case "body":
289205
+ case "header":
289206
+ case "footer":
289207
+ case "footnote":
289208
+ case "endnote":
289209
+ return id2 ? {
289210
+ kind,
289211
+ id: id2
289212
+ } : { kind };
289213
+ default:
289214
+ return { kind: "unknown" };
289215
+ }
289216
+ }, DRAGGABLE_SELECTOR, VerticalNavigationPluginKey, createDefaultState = () => ({
289230
289217
  goalX: null,
289231
289218
  goalClientX: null
289232
289219
  }), VerticalNavigation, STRONG_RTL_CHAR_RE$1, STRONG_LTR_CHAR_RE, isStrongRtl = (char) => STRONG_RTL_CHAR_RE$1.test(char), isStrongLtr = (char) => STRONG_LTR_CHAR_RE.test(char), hasMixedDirectionBoundary = (leftChar, rightChar) => isStrongRtl(leftChar) && isStrongLtr(rightChar) || isStrongLtr(leftChar) && isStrongRtl(rightChar), resolveCaretPoint = (doc$12, range) => {
@@ -301382,7 +301369,7 @@ menclose::after {
301382
301369
  container.style.width = `${Math.max(0, data.contentWidth)}px`;
301383
301370
  else
301384
301371
  container.style.width = `calc(100% - ${marginLeft + marginRight}px)`;
301385
- container.style.pointerEvents = "auto";
301372
+ container.style.pointerEvents = "none";
301386
301373
  container.style.height = `${effectiveHeight}px`;
301387
301374
  container.style.top = `${Math.max(0, effectiveOffset)}px`;
301388
301375
  container.style.zIndex = "1";
@@ -303752,10 +303739,7 @@ menclose::after {
303752
303739
  return run2.text?.length ?? 0;
303753
303740
  }, isVisualOnlyRun = (run2) => {
303754
303741
  return getRunDataAttrs(run2)?.[FOOTNOTE_MARKER_DATA_ATTR$1] === "true";
303755
- }, SPACE_CHARS$1, isTabRun$1 = (run2) => run2?.kind === "tab", faceOf$1 = (run2) => ({
303756
- weight: run2.bold ? "700" : "400",
303757
- style: run2.italic ? "italic" : "normal"
303758
- }), isWordChar$3 = (char) => {
303742
+ }, SPACE_CHARS$1, isTabRun$1 = (run2) => run2?.kind === "tab", isWordChar$3 = (char) => {
303759
303743
  if (!char)
303760
303744
  return false;
303761
303745
  const code6 = char.charCodeAt(0);
@@ -312926,7 +312910,7 @@ menclose::after {
312926
312910
  return;
312927
312911
  console.log(...args$1);
312928
312912
  }, 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;
312929
- var init_src_bGJhSgx__es = __esm(() => {
312913
+ var init_src_DfMY3HP9_es = __esm(() => {
312930
312914
  init_rolldown_runtime_Bg48TavK_es();
312931
312915
  init_SuperConverter_Du0apG1R_es();
312932
312916
  init_jszip_C49i9kUs_es();
@@ -312939,7 +312923,6 @@ var init_src_bGJhSgx__es = __esm(() => {
312939
312923
  init_remark_stringify_BZvKOjUX_es();
312940
312924
  init_DocxZipper_BzS208BW_es();
312941
312925
  init__plugin_vue_export_helper_HmhZBO0u_es();
312942
- init_ui_BMYSpkne_es();
312943
312926
  init_eventemitter3_UwU_CLPU_es();
312944
312927
  init_errors_C_DoKMoN_es();
312945
312928
  init_blank_docx_CDDHd6CH_es();
@@ -338113,6 +338096,66 @@ function print() { __p += __j.call(arguments, '') }
338113
338096
  };
338114
338097
  }
338115
338098
  });
338099
+ DOM_CLASS_NAMES = {
338100
+ PAGE: "superdoc-page",
338101
+ FRAGMENT: "superdoc-fragment",
338102
+ LINE: "superdoc-line",
338103
+ INLINE_SDT_WRAPPER: "superdoc-structured-content-inline",
338104
+ INLINE_SDT_LABEL: "superdoc-structured-content-inline__label",
338105
+ BLOCK_SDT: "superdoc-structured-content-block",
338106
+ BLOCK_SDT_LABEL: "superdoc-structured-content__label",
338107
+ TABLE_FRAGMENT: "superdoc-table-fragment",
338108
+ DOCUMENT_SECTION: "superdoc-document-section",
338109
+ SDT_GROUP_HOVER: "sdt-group-hover",
338110
+ TOC_ENTRY: "superdoc-toc-entry",
338111
+ TOC_GROUP_HOVER: "toc-group-hover",
338112
+ IMAGE_FRAGMENT: "superdoc-image-fragment",
338113
+ INLINE_IMAGE: "superdoc-inline-image",
338114
+ LIST_MARKER: "superdoc-list-marker",
338115
+ INLINE_IMAGE_CLIP_WRAPPER: "superdoc-inline-image-clip-wrapper",
338116
+ ANNOTATION: "annotation",
338117
+ ANNOTATION_CONTENT: "annotation-content",
338118
+ ANNOTATION_CARET_ANCHOR: "annotation-caret-anchor"
338119
+ };
338120
+ STRUCTURED_CONTENT_CHROME_LABEL_CLASS_NAMES = [DOM_CLASS_NAMES.INLINE_SDT_LABEL, DOM_CLASS_NAMES.BLOCK_SDT_LABEL];
338121
+ DATA_ATTRS = {
338122
+ PM_START: "data-pm-start",
338123
+ PM_END: "data-pm-end",
338124
+ LAYOUT_EPOCH: "data-layout-epoch",
338125
+ TABLE_BOUNDARIES: "data-table-boundaries",
338126
+ SDT_ID: "data-sdt-id",
338127
+ SDT_TYPE: "data-sdt-type",
338128
+ FIELD_ID: "data-field-id",
338129
+ FIELD_TYPE: "data-field-type",
338130
+ DRAGGABLE: "data-draggable",
338131
+ DISPLAY_LABEL: "data-display-label",
338132
+ VARIANT: "data-variant",
338133
+ TYPE: "data-type",
338134
+ LAYOUT_BOUNDARY_SCHEMA: "data-layout-boundary-schema",
338135
+ LAYOUT_FRAGMENT_ID: "data-layout-fragment-id",
338136
+ LAYOUT_STORY: "data-layout-story",
338137
+ LAYOUT_BLOCK_REF: "data-layout-block-ref"
338138
+ };
338139
+ DATASET_KEYS = {
338140
+ PM_START: "pmStart",
338141
+ PM_END: "pmEnd",
338142
+ LAYOUT_EPOCH: "layoutEpoch",
338143
+ TABLE_BOUNDARIES: "tableBoundaries",
338144
+ SDT_ID: "sdtId",
338145
+ SDT_TYPE: "sdtType",
338146
+ FIELD_ID: "fieldId",
338147
+ FIELD_TYPE: "fieldType",
338148
+ DRAGGABLE: "draggable",
338149
+ DISPLAY_LABEL: "displayLabel",
338150
+ VARIANT: "variant",
338151
+ TYPE: "type",
338152
+ LAYOUT_BOUNDARY_SCHEMA: "layoutBoundarySchema",
338153
+ LAYOUT_FRAGMENT_ID: "layoutFragmentId",
338154
+ LAYOUT_STORY: "layoutStory",
338155
+ LAYOUT_BLOCK_REF: "layoutBlockRef"
338156
+ };
338157
+ `${DOM_CLASS_NAMES.BLOCK_SDT}${DATA_ATTRS.SDT_ID}`;
338158
+ DRAGGABLE_SELECTOR = `[${DATA_ATTRS.DRAGGABLE}="true"]`;
338116
338159
  VerticalNavigationPluginKey = new PluginKey("verticalNavigation");
338117
338160
  VerticalNavigation = Extension.create({
338118
338161
  name: "verticalNavigation",
@@ -355121,9 +355164,9 @@ function print() { __p += __j.call(arguments, '') }
355121
355164
  ]);
355122
355165
  });
355123
355166
 
355124
- // ../../packages/superdoc/dist/chunks/create-super-doc-ui-NCPalg_h.es.js
355167
+ // ../../packages/superdoc/dist/chunks/create-super-doc-ui-oSlpT6HI.es.js
355125
355168
  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;
355126
- var init_create_super_doc_ui_NCPalg_h_es = __esm(() => {
355169
+ var init_create_super_doc_ui_oSlpT6HI_es = __esm(() => {
355127
355170
  init_SuperConverter_Du0apG1R_es();
355128
355171
  init_create_headless_toolbar_BNcguDpP_es();
355129
355172
  DEFAULT_TEXT_ALIGN_OPTIONS = [
@@ -355403,6 +355446,9 @@ var init_create_super_doc_ui_NCPalg_h_es = __esm(() => {
355403
355446
  }));
355404
355447
  });
355405
355448
 
355449
+ // ../../packages/superdoc/dist/chunks/ui-CGB3qmy3.es.js
355450
+ var init_ui_CGB3qmy3_es = () => {};
355451
+
355406
355452
  // ../../packages/superdoc/dist/chunks/zipper-BxRAi0-5.es.js
355407
355453
  var import_jszip_min3;
355408
355454
  var init_zipper_BxRAi0_5_es = __esm(() => {
@@ -355413,7 +355459,7 @@ var init_zipper_BxRAi0_5_es = __esm(() => {
355413
355459
 
355414
355460
  // ../../packages/superdoc/dist/super-editor.es.js
355415
355461
  var init_super_editor_es = __esm(() => {
355416
- init_src_bGJhSgx__es();
355462
+ init_src_DfMY3HP9_es();
355417
355463
  init_SuperConverter_Du0apG1R_es();
355418
355464
  init_jszip_C49i9kUs_es();
355419
355465
  init_xml_js_CqGKpaft_es();
@@ -355421,8 +355467,8 @@ var init_super_editor_es = __esm(() => {
355421
355467
  init_constants_D9qj59G2_es();
355422
355468
  init_unified_BDuVPlMu_es();
355423
355469
  init_DocxZipper_BzS208BW_es();
355424
- init_ui_BMYSpkne_es();
355425
- init_create_super_doc_ui_NCPalg_h_es();
355470
+ init_create_super_doc_ui_oSlpT6HI_es();
355471
+ init_ui_CGB3qmy3_es();
355426
355472
  init_eventemitter3_UwU_CLPU_es();
355427
355473
  init_errors_C_DoKMoN_es();
355428
355474
  init_zipper_BxRAi0_5_es();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc-dev/mcp",
3
- "version": "0.12.0-next.41",
3
+ "version": "0.12.0-next.42",
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.1.0-alpha.0",
23
22
  "superdoc": "1.41.0",
24
- "@superdoc/super-editor": "0.0.1"
23
+ "@superdoc/super-editor": "0.0.1",
24
+ "@superdoc/document-api": "0.1.0-alpha.0"
25
25
  },
26
26
  "publishConfig": {
27
27
  "access": "public"