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

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 +23 -4
  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-Btvk6jT1.es.js
222867
+ // ../../packages/superdoc/dist/chunks/src-jCy2h55W.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) => {
@@ -274908,9 +274908,28 @@ function computeDomCaretPageLocal(options, pos) {
274908
274908
  const boundary = resolveTextBoundaryInElement(targetEl, pos, entry.pmStart, entry.pmEnd, "forward");
274909
274909
  if (!boundary) {
274910
274910
  const elRect = targetEl.getBoundingClientRect();
274911
+ if (targetEl.classList.contains("superdoc-line")) {
274912
+ const paddingLeft = parseFloat(targetEl.style.paddingLeft) || 0;
274913
+ const paddingRight = parseFloat(targetEl.style.paddingRight) || 0;
274914
+ const lineLeft = (elRect.left - pageRect.left) / zoom + paddingLeft;
274915
+ const lineRight = (elRect.right - pageRect.left) / zoom - paddingRight;
274916
+ const textAlign = targetEl.style.textAlign;
274917
+ let x;
274918
+ if (textAlign === "center")
274919
+ x = (lineLeft + lineRight) / 2;
274920
+ else if (textAlign === "right")
274921
+ x = lineRight;
274922
+ else
274923
+ x = lineLeft;
274924
+ return {
274925
+ pageIndex: Number(page.dataset.pageIndex ?? "0"),
274926
+ x,
274927
+ y: (elRect.top - pageRect.top) / zoom
274928
+ };
274929
+ }
274911
274930
  const isEmptySdtPlaceholder = targetEl.classList.contains("superdoc-empty-sdt-placeholder") || targetEl.classList.contains("superdoc-empty-inline-sdt-placeholder") || targetEl.classList.contains("superdoc-empty-block-sdt-placeholder");
274912
274931
  const atEnd = isEmptySdtPlaceholder ? pos > entry.pmEnd : pos >= entry.pmEnd;
274913
- const yRect = (isEmptySdtPlaceholder ? targetEl.closest(".superdoc-line") : null)?.getBoundingClientRect() ?? elRect;
274932
+ const yRect = (isEmptySdtPlaceholder || targetEl.classList.contains("superdoc-tab") ? targetEl.closest(".superdoc-line") : null)?.getBoundingClientRect() ?? elRect;
274914
274933
  return {
274915
274934
  pageIndex: Number(page.dataset.pageIndex ?? "0"),
274916
274935
  x: ((atEnd ? elRect.right : elRect.left) - pageRect.left) / zoom,
@@ -320173,7 +320192,7 @@ menclose::after {
320173
320192
  return;
320174
320193
  console.log(...args$1);
320175
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;
320176
- var init_src_Btvk6jT1_es = __esm(() => {
320195
+ var init_src_jCy2h55W_es = __esm(() => {
320177
320196
  init_rolldown_runtime_Bg48TavK_es();
320178
320197
  init_SuperConverter_BaKhr4cp_es();
320179
320198
  init_jszip_C49i9kUs_es();
@@ -355426,7 +355445,7 @@ var init_zipper_yaJVJ4z9_es = __esm(() => {
355426
355445
 
355427
355446
  // ../../packages/superdoc/dist/super-editor.es.js
355428
355447
  var init_super_editor_es = __esm(() => {
355429
- init_src_Btvk6jT1_es();
355448
+ init_src_jCy2h55W_es();
355430
355449
  init_SuperConverter_BaKhr4cp_es();
355431
355450
  init_jszip_C49i9kUs_es();
355432
355451
  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.5",
3
+ "version": "0.12.0-next.6",
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": "1.39.0",
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"