@superdoc-dev/mcp 0.6.0-next.16 → 0.6.0-next.17

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 +31 -31
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -155285,7 +155285,7 @@ var init_remark_stringify_6MMJfY0k_es = __esm(() => {
155285
155285
  eol = /\r?\n|\r/g;
155286
155286
  });
155287
155287
 
155288
- // ../../packages/superdoc/dist/chunks/detect-container-C6_bljPf.es.js
155288
+ // ../../packages/superdoc/dist/chunks/detect-container-B6sqy7HZ.es.js
155289
155289
  function matchesMagic(bytes, magic) {
155290
155290
  if (bytes.length < magic.length)
155291
155291
  return false;
@@ -155303,7 +155303,7 @@ function detectContainerType(data) {
155303
155303
  return "unknown";
155304
155304
  }
155305
155305
  var ZIP_MAGIC, CFB_MAGIC;
155306
- var init_detect_container_C6_bljPf_es = __esm(() => {
155306
+ var init_detect_container_B6sqy7HZ_es = __esm(() => {
155307
155307
  ZIP_MAGIC = [
155308
155308
  80,
155309
155309
  75,
@@ -155322,13 +155322,13 @@ var init_detect_container_C6_bljPf_es = __esm(() => {
155322
155322
  ];
155323
155323
  });
155324
155324
 
155325
- // ../../packages/superdoc/dist/chunks/detect-container-CK5AEj_z.es.js
155326
- var exports_detect_container_CK5AEj_z_es = {};
155327
- __export(exports_detect_container_CK5AEj_z_es, {
155325
+ // ../../packages/superdoc/dist/chunks/detect-container-Cs3KoJVc.es.js
155326
+ var exports_detect_container_Cs3KoJVc_es = {};
155327
+ __export(exports_detect_container_Cs3KoJVc_es, {
155328
155328
  detectContainerType: () => detectContainerType
155329
155329
  });
155330
- var init_detect_container_CK5AEj_z_es = __esm(() => {
155331
- init_detect_container_C6_bljPf_es();
155330
+ var init_detect_container_Cs3KoJVc_es = __esm(() => {
155331
+ init_detect_container_B6sqy7HZ_es();
155332
155332
  });
155333
155333
 
155334
155334
  // ../../packages/superdoc/dist/chunks/errors-CNaD6vcg.es.js
@@ -155381,9 +155381,9 @@ var init_errors_CNaD6vcg_es = __esm(() => {
155381
155381
  };
155382
155382
  });
155383
155383
 
155384
- // ../../packages/superdoc/dist/chunks/decrypt-docx-DaCAb_nX.es.js
155385
- var exports_decrypt_docx_DaCAb_nX_es = {};
155386
- __export(exports_decrypt_docx_DaCAb_nX_es, {
155384
+ // ../../packages/superdoc/dist/chunks/decrypt-docx-G2a7hkiV.es.js
155385
+ var exports_decrypt_docx_G2a7hkiV_es = {};
155386
+ __export(exports_decrypt_docx_G2a7hkiV_es, {
155387
155387
  decryptDocxIfNeeded: () => decryptDocxIfNeeded
155388
155388
  });
155389
155389
  function concatUint8Arrays(chunks) {
@@ -155924,10 +155924,10 @@ async function decryptDocxIfNeeded(data, options) {
155924
155924
  };
155925
155925
  }
155926
155926
  var CFB_SIGNATURE, CFB_END_OF_CHAIN = 4294967294, CFB_OBJECT_TYPE, utf16LeDecoder, AGILE_VERSION = 4, AGILE_RESERVED = 4, STANDARD_VERSION_3 = 3, STANDARD_VERSION_4 = 4, STANDARD_RESERVED = 3, MIN_HEADER_SIZE = 8, BLOCK_KEY_VERIFIER_INPUT, BLOCK_KEY_VERIFIER_VALUE, BLOCK_KEY_ENCRYPTED_KEY, BLOCK_KEY_HMAC_KEY, BLOCK_KEY_HMAC_VALUE, SEGMENT_SIZE = 4096, PACKAGE_HEADER_SIZE = 8;
155927
- var init_decrypt_docx_DaCAb_nX_es = __esm(() => {
155927
+ var init_decrypt_docx_G2a7hkiV_es = __esm(() => {
155928
155928
  init_dist_B8HfvhaK_es();
155929
155929
  init_errors_CNaD6vcg_es();
155930
- init_detect_container_C6_bljPf_es();
155930
+ init_detect_container_B6sqy7HZ_es();
155931
155931
  CFB_SIGNATURE = new Uint8Array([
155932
155932
  208,
155933
155933
  207,
@@ -155996,7 +155996,7 @@ var init_decrypt_docx_DaCAb_nX_es = __esm(() => {
155996
155996
  ]);
155997
155997
  });
155998
155998
 
155999
- // ../../packages/superdoc/dist/chunks/DocxZipper-DoY5OEjc.es.js
155999
+ // ../../packages/superdoc/dist/chunks/DocxZipper-CZMPWpOp.es.js
156000
156000
  function sniffEncoding(u8) {
156001
156001
  if (u8.length >= 2) {
156002
156002
  const b0 = u8[0], b1 = u8[1];
@@ -156312,11 +156312,11 @@ var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.docum
156312
156312
  return new Uint8Array(0);
156313
156313
  }
156314
156314
  async getDocxData(file2, isNode = false, options = {}) {
156315
- const { detectContainerType: detectContainerType2 } = await Promise.resolve().then(() => (init_detect_container_CK5AEj_z_es(), exports_detect_container_CK5AEj_z_es));
156315
+ const { detectContainerType: detectContainerType2 } = await Promise.resolve().then(() => (init_detect_container_Cs3KoJVc_es(), exports_detect_container_Cs3KoJVc_es));
156316
156316
  const containerType = detectContainerType2(await this.#peekBytes(file2, 8));
156317
156317
  let fileData = file2;
156318
156318
  if (containerType === "cfb") {
156319
- const { decryptDocxIfNeeded: decryptDocxIfNeeded2 } = await Promise.resolve().then(() => (init_decrypt_docx_DaCAb_nX_es(), exports_decrypt_docx_DaCAb_nX_es));
156319
+ const { decryptDocxIfNeeded: decryptDocxIfNeeded2 } = await Promise.resolve().then(() => (init_decrypt_docx_G2a7hkiV_es(), exports_decrypt_docx_G2a7hkiV_es));
156320
156320
  const result = await decryptDocxIfNeeded2(file2 instanceof Uint8Array ? file2 : file2 instanceof ArrayBuffer ? new Uint8Array(file2) : new Uint8Array(await file2.arrayBuffer()), { password: options.password });
156321
156321
  fileData = result.data;
156322
156322
  this.decryptedFileData = result.data;
@@ -156669,7 +156669,7 @@ var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.docum
156669
156669
  return `image/${MIME_TYPE_FOR_EXT[detectedType] || detectedType}`;
156670
156670
  }
156671
156671
  }, DocxZipper_default;
156672
- var init_DocxZipper_DoY5OEjc_es = __esm(() => {
156672
+ var init_DocxZipper_CZMPWpOp_es = __esm(() => {
156673
156673
  init_rolldown_runtime_Bg48TavK_es();
156674
156674
  init_jszip_C49i9kUs_es();
156675
156675
  init_xml_js_CqGKpaft_es();
@@ -198069,9 +198069,9 @@ var init_unified_vFnLRfAM_es = __esm(() => {
198069
198069
  init_unified_Dsuw2be5_es();
198070
198070
  });
198071
198071
 
198072
- // ../../packages/superdoc/dist/chunks/rehype-parse-CD6KGerH.es.js
198073
- var exports_rehype_parse_CD6KGerH_es = {};
198074
- __export(exports_rehype_parse_CD6KGerH_es, {
198072
+ // ../../packages/superdoc/dist/chunks/rehype-parse-q8NfsLv7.es.js
198073
+ var exports_rehype_parse_q8NfsLv7_es = {};
198074
+ __export(exports_rehype_parse_q8NfsLv7_es, {
198075
198075
  default: () => rehypeParse
198076
198076
  });
198077
198077
  function merge2(definitions, space) {
@@ -204020,7 +204020,7 @@ var Schema2 = class {
204020
204020
  }
204021
204021
  }
204022
204022
  }, TABLE_VOID_ELEMENTS, errors4, base2 = "https://html.spec.whatwg.org/multipage/parsing.html#parse-error-", dashToCamelRe, formatCRe, formatXRe, fatalities, emptyOptions3;
204023
- var init_rehype_parse_CD6KGerH_es = __esm(() => {
204023
+ var init_rehype_parse_q8NfsLv7_es = __esm(() => {
204024
204024
  init_rolldown_runtime_Bg48TavK_es();
204025
204025
  init_default_BqgWzMfR_es();
204026
204026
  init_lib_CYqLdG4z_es();
@@ -206765,9 +206765,9 @@ var init_rehype_parse_CD6KGerH_es = __esm(() => {
206765
206765
  emptyOptions3 = {};
206766
206766
  });
206767
206767
 
206768
- // ../../packages/superdoc/dist/chunks/rehype-remark-B1RWSuTX.es.js
206769
- var exports_rehype_remark_B1RWSuTX_es = {};
206770
- __export(exports_rehype_remark_B1RWSuTX_es, {
206768
+ // ../../packages/superdoc/dist/chunks/rehype-remark-CKg94dxK.es.js
206769
+ var exports_rehype_remark_CKg94dxK_es = {};
206770
+ __export(exports_rehype_remark_CKg94dxK_es, {
206771
206771
  default: () => rehypeRemark
206772
206772
  });
206773
206773
  function anyFactory2(tests) {
@@ -208387,7 +208387,7 @@ var env, deserializer = ($2, _2) => {
208387
208387
  if (is(parent.children[index2], index2, parent))
208388
208388
  return parent.children[index2];
208389
208389
  }, searchLineFeeds, searchTabOrSpaces, br$1, cell, p$1, row, notRendered, blockOrCaption, prefix = "language-", defaultChecked = "[x]", defaultUnchecked = "[ ]", own$12, list$1, basic, meta3, defaultQuotes, nodeHandlers, handlers2, own6, emptyOptions4, defaults;
208390
- var init_rehype_remark_B1RWSuTX_es = __esm(() => {
208390
+ var init_rehype_remark_CKg94dxK_es = __esm(() => {
208391
208391
  init_lib_DEff_P2k_es();
208392
208392
  env = typeof self === "object" ? self : globalThis;
208393
208393
  ({ toString: toString$1 } = {});
@@ -208781,7 +208781,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
208781
208781
  init_remark_gfm_BhnWr3yf_es();
208782
208782
  });
208783
208783
 
208784
- // ../../packages/superdoc/dist/chunks/src-D_jA08Jh.es.js
208784
+ // ../../packages/superdoc/dist/chunks/src-CbHUN3NA.es.js
208785
208785
  function deleteProps(obj, propOrProps) {
208786
208786
  const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
208787
208787
  const removeNested = (target, pathParts, index2 = 0) => {
@@ -297020,7 +297020,7 @@ menclose::after {
297020
297020
  return;
297021
297021
  console.log(...args$1);
297022
297022
  }, 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;
297023
- var init_src_D_jA08Jh_es = __esm(() => {
297023
+ var init_src_CbHUN3NA_es = __esm(() => {
297024
297024
  init_rolldown_runtime_Bg48TavK_es();
297025
297025
  init_SuperConverter_CzwJ7ds9_es();
297026
297026
  init_jszip_C49i9kUs_es();
@@ -297032,7 +297032,7 @@ var init_src_D_jA08Jh_es = __esm(() => {
297032
297032
  init_unified_Dsuw2be5_es();
297033
297033
  init_remark_gfm_BhnWr3yf_es();
297034
297034
  init_remark_stringify_6MMJfY0k_es();
297035
- init_DocxZipper_DoY5OEjc_es();
297035
+ init_DocxZipper_CZMPWpOp_es();
297036
297036
  init__plugin_vue_export_helper_5t5P5NuM_es();
297037
297037
  init_eventemitter3_BnGqBE_Q_es();
297038
297038
  init_errors_CNaD6vcg_es();
@@ -322383,8 +322383,8 @@ function print() { __p += __j.call(arguments, '') }
322383
322383
  try {
322384
322384
  const [{ unified: unified$1 }, { default: rehypeParse2 }, { default: rehypeRemark2 }, { default: remarkStringify$1 }, { default: remarkGfm$1 }] = await Promise.all([
322385
322385
  Promise.resolve().then(() => (init_unified_vFnLRfAM_es(), exports_unified_vFnLRfAM_es)),
322386
- Promise.resolve().then(() => (init_rehype_parse_CD6KGerH_es(), exports_rehype_parse_CD6KGerH_es)),
322387
- Promise.resolve().then(() => (init_rehype_remark_B1RWSuTX_es(), exports_rehype_remark_B1RWSuTX_es)),
322386
+ Promise.resolve().then(() => (init_rehype_parse_q8NfsLv7_es(), exports_rehype_parse_q8NfsLv7_es)),
322387
+ Promise.resolve().then(() => (init_rehype_remark_CKg94dxK_es(), exports_rehype_remark_CKg94dxK_es)),
322388
322388
  Promise.resolve().then(() => (init_remark_stringify_B_orWEvD_es(), exports_remark_stringify_B_orWEvD_es)),
322389
322389
  Promise.resolve().then(() => (init_remark_gfm_eZN6yzWQ_es(), exports_remark_gfm_eZN6yzWQ_es))
322390
322390
  ]);
@@ -334765,7 +334765,7 @@ var init_zipper_yaJVJ4z9_es = __esm(() => {
334765
334765
 
334766
334766
  // ../../packages/superdoc/dist/super-editor.es.js
334767
334767
  var init_super_editor_es = __esm(() => {
334768
- init_src_D_jA08Jh_es();
334768
+ init_src_CbHUN3NA_es();
334769
334769
  init_SuperConverter_CzwJ7ds9_es();
334770
334770
  init_jszip_C49i9kUs_es();
334771
334771
  init_xml_js_CqGKpaft_es();
@@ -334773,7 +334773,7 @@ var init_super_editor_es = __esm(() => {
334773
334773
  init_constants_DrU4EASo_es();
334774
334774
  init_dist_B8HfvhaK_es();
334775
334775
  init_unified_Dsuw2be5_es();
334776
- init_DocxZipper_DoY5OEjc_es();
334776
+ init_DocxZipper_CZMPWpOp_es();
334777
334777
  init_create_super_doc_ui_BNIXtF7U_es();
334778
334778
  init_ui_C5PAS9hY_es();
334779
334779
  init_eventemitter3_BnGqBE_Q_es();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc-dev/mcp",
3
- "version": "0.6.0-next.16",
3
+ "version": "0.6.0-next.17",
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/super-editor": "0.0.1",
22
+ "@superdoc/document-api": "0.0.1",
23
23
  "superdoc": "1.33.1",
24
- "@superdoc/document-api": "0.0.1"
24
+ "@superdoc/super-editor": "0.0.1"
25
25
  },
26
26
  "publishConfig": {
27
27
  "access": "public"