@superdoc-dev/mcp 0.3.0-next.93 → 0.3.0-next.94

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 +36 -28
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -51891,7 +51891,7 @@ var init_remark_gfm_BhnWr3yf_es = __esm(() => {
51891
51891
  emptyOptions2 = {};
51892
51892
  });
51893
51893
 
51894
- // ../../packages/superdoc/dist/chunks/SuperConverter-D-cFThyR.es.js
51894
+ // ../../packages/superdoc/dist/chunks/SuperConverter-B-EF8ijE.es.js
51895
51895
  function getExtensionConfigField(extension$1, field, context = { name: "" }) {
51896
51896
  const fieldValue = extension$1.config[field];
51897
51897
  if (typeof fieldValue === "function")
@@ -62915,6 +62915,12 @@ function extractAppearance(sdtPr) {
62915
62915
  function extractPlaceholder(sdtPr) {
62916
62916
  return sdtPr?.elements?.find((e) => e.name === "w:placeholder")?.elements?.find((e) => e.name === "w:docPart")?.attributes?.["w:val"] ?? null;
62917
62917
  }
62918
+ function extractTemporary(sdtPr) {
62919
+ const el = sdtPr?.elements?.find((e) => e.name === "w:temporary");
62920
+ if (!el)
62921
+ return;
62922
+ return parseStrictStOnOff(el.attributes?.["w:val"], "temporary", "w:temporary");
62923
+ }
62918
62924
  function handleStructuredContentNode(params) {
62919
62925
  const { nodes, nodeListHandler } = params;
62920
62926
  if (nodes.length === 0 || nodes[0].name !== "w:sdt")
@@ -62935,6 +62941,7 @@ function handleStructuredContentNode(params) {
62935
62941
  const controlType = detectControlType(sdtPr);
62936
62942
  const appearance = extractAppearance(sdtPr);
62937
62943
  const placeholder = extractPlaceholder(sdtPr);
62944
+ const temporary = extractTemporary(sdtPr);
62938
62945
  if (!sdtContent)
62939
62946
  return null;
62940
62947
  const paragraph2 = sdtContent.elements?.find((el) => el.name === "w:p");
@@ -62958,6 +62965,7 @@ function handleStructuredContentNode(params) {
62958
62965
  type: controlType,
62959
62966
  appearance,
62960
62967
  placeholder,
62968
+ ...temporary !== undefined ? { temporary } : {},
62961
62969
  sdtPr
62962
62970
  }
62963
62971
  };
@@ -105494,7 +105502,7 @@ var isRegExp = (value) => {
105494
105502
  state.kern = kernNode.attributes["w:val"];
105495
105503
  }
105496
105504
  }, SuperConverter;
105497
- var init_SuperConverter_D_cFThyR_es = __esm(() => {
105505
+ var init_SuperConverter_B_EF8ijE_es = __esm(() => {
105498
105506
  init_rolldown_runtime_Bg48TavK_es();
105499
105507
  init_jszip_C49i9kUs_es();
105500
105508
  init_xml_js_CqGKpaft_es();
@@ -143368,7 +143376,7 @@ var init_SuperConverter_D_cFThyR_es = __esm(() => {
143368
143376
  };
143369
143377
  });
143370
143378
 
143371
- // ../../packages/superdoc/dist/chunks/create-headless-toolbar-DkFBZ1T1.es.js
143379
+ // ../../packages/superdoc/dist/chunks/create-headless-toolbar-CAjt5qLD.es.js
143372
143380
  function parseSizeUnit(val = "0") {
143373
143381
  const length = val.toString() || "0";
143374
143382
  const value = Number.parseFloat(length);
@@ -146090,8 +146098,8 @@ var CSS_DIMENSION_REGEX, DOM_SIZE_UNITS, Extension = class Extension2 {
146090
146098
  }
146091
146099
  };
146092
146100
  };
146093
- var init_create_headless_toolbar_DkFBZ1T1_es = __esm(() => {
146094
- init_SuperConverter_D_cFThyR_es();
146101
+ var init_create_headless_toolbar_CAjt5qLD_es = __esm(() => {
146102
+ init_SuperConverter_B_EF8ijE_es();
146095
146103
  init_constants_DrU4EASo_es();
146096
146104
  init_dist_B8HfvhaK_es();
146097
146105
  CSS_DIMENSION_REGEX = /[\d-.]+(\w+)$/;
@@ -200310,7 +200318,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
200310
200318
  init_remark_gfm_BhnWr3yf_es();
200311
200319
  });
200312
200320
 
200313
- // ../../packages/superdoc/dist/chunks/src-CHVby7ed.es.js
200321
+ // ../../packages/superdoc/dist/chunks/src-CuD4BbTF.es.js
200314
200322
  function deleteProps(obj, propOrProps) {
200315
200323
  const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
200316
200324
  const removeNested = (target, pathParts, index2 = 0) => {
@@ -244927,7 +244935,7 @@ function resolveParagraphContent(fragment, block, measure) {
244927
244935
  const paraIndent = block.attrs?.indent;
244928
244936
  const paraIndentLeft = paraIndent?.left ?? 0;
244929
244937
  const paraIndentRight = paraIndent?.right ?? 0;
244930
- const { anchorIndentPx: paraMarkerAnchorIndent, firstLinePx: markerFirstLine, hangingPx: markerHanging } = resolveMarkerIndent(paraIndent, block.attrs?.direction === "rtl");
244938
+ const { anchorIndentPx: paraMarkerAnchorIndent, firstLinePx: markerFirstLine, hangingPx: markerHanging } = resolveMarkerIndent(paraIndent, getParagraphInlineDirection(block.attrs) === "rtl");
244931
244939
  const firstLineOffset = block.attrs?.suppressFirstLineIndent === true ? 0 : (paraIndent?.firstLine ?? 0) - (paraIndent?.hanging ?? 0);
244932
244940
  const paragraphEndsWithLineBreak = (block.runs.length > 0 ? block.runs[block.runs.length - 1] : null)?.kind === "lineBreak";
244933
244941
  const lines = fragment.lines ?? measure.lines.slice(fragment.fromLine, fragment.toLine);
@@ -285885,16 +285893,7 @@ menclose::after {
285885
285893
  }, isRtlBlock = (block) => {
285886
285894
  if (block.kind !== "paragraph")
285887
285895
  return false;
285888
- const attrs = block.attrs;
285889
- if (!attrs)
285890
- return false;
285891
- const directionContext = attrs.directionContext;
285892
- if (directionContext?.inlineDirection != null)
285893
- return directionContext.inlineDirection === "rtl";
285894
- const directionAttr = attrs.direction ?? attrs.dir;
285895
- if (typeof directionAttr === "string" && directionAttr.toLowerCase() === "rtl")
285896
- return true;
285897
- return false;
285896
+ return getParagraphInlineDirection(block.attrs) === "rtl";
285898
285897
  }, determineColumn = (layout, fragmentX) => {
285899
285898
  const columns = layout.columns;
285900
285899
  if (!columns || columns.count <= 1)
@@ -294133,12 +294132,12 @@ menclose::after {
294133
294132
  return;
294134
294133
  console.log(...args$1);
294135
294134
  }, 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;
294136
- var init_src_CHVby7ed_es = __esm(() => {
294135
+ var init_src_CuD4BbTF_es = __esm(() => {
294137
294136
  init_rolldown_runtime_Bg48TavK_es();
294138
- init_SuperConverter_D_cFThyR_es();
294137
+ init_SuperConverter_B_EF8ijE_es();
294139
294138
  init_jszip_C49i9kUs_es();
294140
294139
  init_uuid_qzgm05fK_es();
294141
- init_create_headless_toolbar_DkFBZ1T1_es();
294140
+ init_create_headless_toolbar_CAjt5qLD_es();
294142
294141
  init_constants_DrU4EASo_es();
294143
294142
  init_dist_B8HfvhaK_es();
294144
294143
  init_unified_Dsuw2be5_es();
@@ -332181,11 +332180,11 @@ function print() { __p += __j.call(arguments, '') }
332181
332180
  ];
332182
332181
  });
332183
332182
 
332184
- // ../../packages/superdoc/dist/chunks/create-super-doc-ui-0ZhHPCRD.es.js
332183
+ // ../../packages/superdoc/dist/chunks/create-super-doc-ui-DrS6dKfb.es.js
332185
332184
  var 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;
332186
- var init_create_super_doc_ui_0ZhHPCRD_es = __esm(() => {
332187
- init_SuperConverter_D_cFThyR_es();
332188
- init_create_headless_toolbar_DkFBZ1T1_es();
332185
+ var init_create_super_doc_ui_DrS6dKfb_es = __esm(() => {
332186
+ init_SuperConverter_B_EF8ijE_es();
332187
+ init_create_headless_toolbar_CAjt5qLD_es();
332189
332188
  MOD_ALIASES = new Set([
332190
332189
  "Mod",
332191
332190
  "Meta",
@@ -332227,16 +332226,16 @@ var init_zipper_BxRAi0_5_es = __esm(() => {
332227
332226
 
332228
332227
  // ../../packages/superdoc/dist/super-editor.es.js
332229
332228
  var init_super_editor_es = __esm(() => {
332230
- init_src_CHVby7ed_es();
332231
- init_SuperConverter_D_cFThyR_es();
332229
+ init_src_CuD4BbTF_es();
332230
+ init_SuperConverter_B_EF8ijE_es();
332232
332231
  init_jszip_C49i9kUs_es();
332233
332232
  init_xml_js_CqGKpaft_es();
332234
- init_create_headless_toolbar_DkFBZ1T1_es();
332233
+ init_create_headless_toolbar_CAjt5qLD_es();
332235
332234
  init_constants_DrU4EASo_es();
332236
332235
  init_dist_B8HfvhaK_es();
332237
332236
  init_unified_Dsuw2be5_es();
332238
332237
  init_DocxZipper_TPSo9G36_es();
332239
- init_create_super_doc_ui_0ZhHPCRD_es();
332238
+ init_create_super_doc_ui_DrS6dKfb_es();
332240
332239
  init_ui_CGB3qmy3_es();
332241
332240
  init_eventemitter3_UwU_CLPU_es();
332242
332241
  init_errors_C_DoKMoN_es();
@@ -396881,6 +396880,12 @@ function extractPlaceholder2(sdtPr) {
396881
396880
  const docPart = el?.elements?.find((e) => e.name === "w:docPart");
396882
396881
  return docPart?.attributes?.["w:val"] ?? null;
396883
396882
  }
396883
+ function extractTemporary2(sdtPr) {
396884
+ const el = sdtPr?.elements?.find((e) => e.name === "w:temporary");
396885
+ if (!el)
396886
+ return;
396887
+ return parseStrictStOnOff2(el.attributes?.["w:val"], "temporary", "w:temporary");
396888
+ }
396884
396889
  function handleStructuredContentNode2(params3) {
396885
396890
  const { nodes, nodeListHandler } = params3;
396886
396891
  if (nodes.length === 0 || nodes[0].name !== "w:sdt") {
@@ -396899,6 +396904,7 @@ function handleStructuredContentNode2(params3) {
396899
396904
  const controlType = detectControlType2(sdtPr);
396900
396905
  const appearance = extractAppearance2(sdtPr);
396901
396906
  const placeholder = extractPlaceholder2(sdtPr);
396907
+ const temporary = extractTemporary2(sdtPr);
396902
396908
  if (!sdtContent) {
396903
396909
  return null;
396904
396910
  }
@@ -396925,6 +396931,7 @@ function handleStructuredContentNode2(params3) {
396925
396931
  type: controlType,
396926
396932
  appearance,
396927
396933
  placeholder,
396934
+ ...temporary !== undefined ? { temporary } : {},
396928
396935
  sdtPr
396929
396936
  }
396930
396937
  };
@@ -396932,6 +396939,7 @@ function handleStructuredContentNode2(params3) {
396932
396939
  }
396933
396940
  var init_handle_structured_content_node = __esm(() => {
396934
396941
  init_handle_annotation_node();
396942
+ init_utils();
396935
396943
  });
396936
396944
 
396937
396945
  // ../../packages/super-editor/src/editors/v1/core/super-converter/v3/handlers/w/sdt/helpers/sdt-node-type-strategy.js
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc-dev/mcp",
3
- "version": "0.3.0-next.93",
3
+ "version": "0.3.0-next.94",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": ">=20"
@@ -19,8 +19,8 @@
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",
23
+ "@superdoc/document-api": "0.0.1",
24
24
  "superdoc": "1.32.0"
25
25
  },
26
26
  "publishConfig": {