@superdoc-dev/mcp 0.3.0-next.18 → 0.3.0-next.19

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 +13 -6
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -198739,7 +198739,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
198739
198739
  init_remark_gfm_BhnWr3yf_es();
198740
198740
  });
198741
198741
 
198742
- // ../../packages/superdoc/dist/chunks/src-Dinif16O.es.js
198742
+ // ../../packages/superdoc/dist/chunks/src-DAF1K-X-.es.js
198743
198743
  function deleteProps(obj, propOrProps) {
198744
198744
  const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
198745
198745
  const removeNested = (target, pathParts, index2 = 0) => {
@@ -200578,6 +200578,7 @@ function createStructuredContentSelectPlugin(editor) {
200578
200578
  return false;
200579
200579
  const { state } = view;
200580
200580
  const { selection } = state;
200581
+ const isEditableSlotText = (text5) => text5.replace(/\u200B/g, "").length === 0;
200581
200582
  const resolveBoundaryExit = ($pos) => {
200582
200583
  for (let depth = $pos.depth;depth > 0; depth -= 1) {
200583
200584
  const node2 = $pos.node(depth);
@@ -200589,9 +200590,13 @@ function createStructuredContentSelectPlugin(editor) {
200589
200590
  const beforePos = nodePos;
200590
200591
  const afterPos = nodePos + node2.nodeSize;
200591
200592
  if (selection.empty) {
200592
- if (event.key === "ArrowRight" && selection.from >= contentTo - 1)
200593
+ const trailingSlice = state.doc.textBetween(selection.from, contentTo, "", INLINE_LEAF_TEXT);
200594
+ const leadingSlice = state.doc.textBetween(contentFrom, selection.from, "", INLINE_LEAF_TEXT);
200595
+ const onlyTrailingEditableSlots = trailingSlice.length > 0 && isEditableSlotText(trailingSlice);
200596
+ const onlyLeadingEditableSlots = leadingSlice.length > 0 && isEditableSlotText(leadingSlice);
200597
+ if (event.key === "ArrowRight" && (selection.from >= contentTo - 1 || onlyTrailingEditableSlots))
200593
200598
  return afterPos;
200594
- if (event.key === "ArrowLeft" && selection.from <= contentFrom + 1)
200599
+ if (event.key === "ArrowLeft" && (selection.from <= contentFrom + 1 || onlyLeadingEditableSlots))
200595
200600
  return beforePos;
200596
200601
  return null;
200597
200602
  }
@@ -262724,7 +262729,7 @@ var Node$13 = class Node$14 {
262724
262729
  const transaction = view.state.tr.setSelection(selection);
262725
262730
  view.dispatch(transaction);
262726
262731
  }
262727
- }, StructuredContentInlineView, STRUCTURED_CONTENT_LOCK_KEY, structuredContentClass = "sd-structured-content", structuredContentInnerClass = "sd-structured-content__content", StructuredContent, StructuredContentBlockView, structuredContentBlockClass = "sd-structured-content-block", structuredContentBlockInnerClass = "sd-structured-content-block__content", StructuredContentBlock, structuredContentHelpers_exports, STRUCTURED_CONTENT_NAMES, findFirstTextNode$1 = (node2) => {
262732
+ }, StructuredContentInlineView, STRUCTURED_CONTENT_LOCK_KEY, INLINE_LEAF_TEXT = "", structuredContentClass = "sd-structured-content", structuredContentInnerClass = "sd-structured-content__content", StructuredContent, StructuredContentBlockView, structuredContentBlockClass = "sd-structured-content-block", structuredContentBlockInnerClass = "sd-structured-content-block__content", StructuredContentBlock, structuredContentHelpers_exports, STRUCTURED_CONTENT_NAMES, findFirstTextNode$1 = (node2) => {
262728
262733
  let firstTextNode = null;
262729
262734
  node2.descendants((child) => {
262730
262735
  if (child.isText) {
@@ -276108,6 +276113,8 @@ var Node$13 = class Node$14 {
276108
276113
  border: 1px solid transparent;
276109
276114
  position: relative;
276110
276115
  display: inline;
276116
+ font-size: initial;
276117
+ line-height: normal;
276111
276118
  z-index: 10;
276112
276119
  }
276113
276120
 
@@ -289614,7 +289621,7 @@ menclose::after {
289614
289621
  return;
289615
289622
  console.log(...args$1);
289616
289623
  }, 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;
289617
- var init_src_Dinif16O_es = __esm(() => {
289624
+ var init_src_DAF1K_X_es = __esm(() => {
289618
289625
  init_rolldown_runtime_Bg48TavK_es();
289619
289626
  init_SuperConverter_Dchjy0My_es();
289620
289627
  init_jszip_C49i9kUs_es();
@@ -326862,7 +326869,7 @@ var init_zipper_BxRAi0_5_es = __esm(() => {
326862
326869
 
326863
326870
  // ../../packages/superdoc/dist/super-editor.es.js
326864
326871
  var init_super_editor_es = __esm(() => {
326865
- init_src_Dinif16O_es();
326872
+ init_src_DAF1K_X_es();
326866
326873
  init_SuperConverter_Dchjy0My_es();
326867
326874
  init_jszip_C49i9kUs_es();
326868
326875
  init_xml_js_CqGKpaft_es();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc-dev/mcp",
3
- "version": "0.3.0-next.18",
3
+ "version": "0.3.0-next.19",
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",
22
+ "@superdoc/super-editor": "0.0.1",
23
23
  "superdoc": "1.29.1",
24
- "@superdoc/super-editor": "0.0.1"
24
+ "@superdoc/document-api": "0.0.1"
25
25
  },
26
26
  "publishConfig": {
27
27
  "access": "public"