@superdoc-dev/mcp 0.12.0-next.6 → 0.12.0-next.7

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 +30 -9
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -222864,7 +222864,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
222864
222864
  init_remark_gfm_BhnWr3yf_es();
222865
222865
  });
222866
222866
 
222867
- // ../../packages/superdoc/dist/chunks/src-jCy2h55W.es.js
222867
+ // ../../packages/superdoc/dist/chunks/src-BKOC1-8-.es.js
222868
222868
  function deleteProps(obj, propOrProps) {
222869
222869
  const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
222870
222870
  const removeNested = (target, pathParts, index2 = 0) => {
@@ -320192,7 +320192,7 @@ menclose::after {
320192
320192
  return;
320193
320193
  console.log(...args$1);
320194
320194
  }, 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;
320195
- var init_src_jCy2h55W_es = __esm(() => {
320195
+ var init_src_BKOC1_8_es = __esm(() => {
320196
320196
  init_rolldown_runtime_Bg48TavK_es();
320197
320197
  init_SuperConverter_BaKhr4cp_es();
320198
320198
  init_jszip_C49i9kUs_es();
@@ -341441,7 +341441,8 @@ function print() { __p += __j.call(arguments, '') }
341441
341441
  const menuRef = exports_vue.ref(null);
341442
341442
  const menuPosition = exports_vue.ref({
341443
341443
  top: "0px",
341444
- left: "0px"
341444
+ left: "0px",
341445
+ maxHeight: "none"
341445
341446
  });
341446
341447
  const optionRefs = exports_vue.ref([]);
341447
341448
  const keyboardIndex = exports_vue.ref(-1);
@@ -341478,6 +341479,7 @@ function print() { __p += __j.call(arguments, '') }
341478
341479
  position: "fixed",
341479
341480
  top: menuPosition.value.top,
341480
341481
  left: menuPosition.value.left,
341482
+ maxHeight: menuPosition.value.maxHeight,
341481
341483
  zIndex: 2000
341482
341484
  };
341483
341485
  });
@@ -341493,17 +341495,30 @@ function print() { __p += __j.call(arguments, '') }
341493
341495
  if (!triggerRef.value)
341494
341496
  return;
341495
341497
  const rect = triggerRef.value.getBoundingClientRect();
341496
- const menuWidth = menuRef.value?.offsetWidth ?? 0;
341498
+ const menuEl = menuRef.value;
341499
+ const menuWidth = menuEl?.offsetWidth ?? 0;
341500
+ const menuHeight = menuEl?.scrollHeight ?? menuEl?.offsetHeight ?? 0;
341497
341501
  const viewportWidth = window.innerWidth || document.documentElement.clientWidth || 0;
341502
+ const viewportHeight = window.innerHeight || document.documentElement.clientHeight || 0;
341498
341503
  const gutter = 8;
341504
+ const gap = 4;
341505
+ const belowTop = rect.bottom + gap;
341506
+ const aboveBottom = rect.top - gap;
341507
+ const availableBelow = Math.max(0, viewportHeight - belowTop - gutter);
341508
+ const availableAbove = Math.max(0, aboveBottom - gutter);
341509
+ const openAbove = availableBelow < menuHeight && availableAbove > availableBelow;
341510
+ const maxHeight = openAbove ? availableAbove : availableBelow;
341511
+ const menuRenderHeight = menuHeight ? Math.min(menuHeight, maxHeight) : maxHeight;
341512
+ const top$1 = openAbove ? Math.max(gutter, aboveBottom - menuRenderHeight) : belowTop;
341499
341513
  let left$1 = rect.left;
341500
341514
  if (props.placement === "bottom-end")
341501
341515
  left$1 = rect.right - menuWidth;
341502
341516
  const maxLeft = Math.max(gutter, viewportWidth - menuWidth - gutter);
341503
341517
  left$1 = Math.min(Math.max(gutter, left$1), maxLeft);
341504
341518
  menuPosition.value = {
341505
- top: `${rect.bottom + 4}px`,
341506
- left: `${left$1}px`
341519
+ top: `${top$1}px`,
341520
+ left: `${left$1}px`,
341521
+ maxHeight: `${maxHeight}px`
341507
341522
  };
341508
341523
  };
341509
341524
  const onTriggerClick = () => {
@@ -341569,8 +341584,13 @@ function print() { __p += __j.call(arguments, '') }
341569
341584
  el.setAttribute("tabindex", index2 === keyboardIndex.value ? "0" : "-1");
341570
341585
  });
341571
341586
  const target = optionRefs.value[keyboardIndex.value];
341572
- if (target && typeof target.focus === "function")
341587
+ if (target && typeof target.focus === "function") {
341573
341588
  target.focus();
341589
+ target.scrollIntoView?.({
341590
+ block: "nearest",
341591
+ inline: "nearest"
341592
+ });
341593
+ }
341574
341594
  };
341575
341595
  const moveKeyboardIndex = (direction) => {
341576
341596
  const navigableIndexes = getNavigableIndexes();
@@ -341705,6 +341725,7 @@ function print() { __p += __j.call(arguments, '') }
341705
341725
  if (hasRenderOptions.value)
341706
341726
  return;
341707
341727
  keyboardIndex.value = getInitialKeyboardIndex();
341728
+ await exports_vue.nextTick();
341708
341729
  focusKeyboardIndex();
341709
341730
  }, { immediate: true });
341710
341731
  exports_vue.watch(isOpen, (open) => {
@@ -341768,7 +341789,7 @@ function print() { __p += __j.call(arguments, '') }
341768
341789
  })]))]);
341769
341790
  };
341770
341791
  }
341771
- }, [["__scopeId", "data-v-302f7d86"]]);
341792
+ }, [["__scopeId", "data-v-69732782"]]);
341772
341793
  SdTooltip_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
341773
341794
  __name: "SdTooltip",
341774
341795
  props: {
@@ -355445,7 +355466,7 @@ var init_zipper_yaJVJ4z9_es = __esm(() => {
355445
355466
 
355446
355467
  // ../../packages/superdoc/dist/super-editor.es.js
355447
355468
  var init_super_editor_es = __esm(() => {
355448
- init_src_jCy2h55W_es();
355469
+ init_src_BKOC1_8_es();
355449
355470
  init_SuperConverter_BaKhr4cp_es();
355450
355471
  init_jszip_C49i9kUs_es();
355451
355472
  init_xml_js_CqGKpaft_es();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc-dev/mcp",
3
- "version": "0.12.0-next.6",
3
+ "version": "0.12.0-next.7",
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
- "@superdoc/super-editor": "0.0.1",
24
- "superdoc": "1.39.0"
23
+ "superdoc": "1.39.0",
24
+ "@superdoc/super-editor": "0.0.1"
25
25
  },
26
26
  "publishConfig": {
27
27
  "access": "public"