@superdoc-dev/cli 0.11.0-next.7 → 0.11.0-next.9

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 +9 -9
package/dist/index.js CHANGED
@@ -161609,7 +161609,7 @@ var init_remark_stringify_6MMJfY0k_es = __esm(() => {
161609
161609
  eol = /\r?\n|\r/g;
161610
161610
  });
161611
161611
 
161612
- // ../../packages/superdoc/dist/chunks/detect-container-F9mvzfM4.es.js
161612
+ // ../../packages/superdoc/dist/chunks/detect-container-C6_bljPf.es.js
161613
161613
  function matchesMagic(bytes, magic) {
161614
161614
  if (bytes.length < magic.length)
161615
161615
  return false;
@@ -161627,7 +161627,7 @@ function detectContainerType(data) {
161627
161627
  return "unknown";
161628
161628
  }
161629
161629
  var ZIP_MAGIC, CFB_MAGIC;
161630
- var init_detect_container_F9mvzfM4_es = __esm(() => {
161630
+ var init_detect_container_C6_bljPf_es = __esm(() => {
161631
161631
  ZIP_MAGIC = [
161632
161632
  80,
161633
161633
  75,
@@ -161646,13 +161646,13 @@ var init_detect_container_F9mvzfM4_es = __esm(() => {
161646
161646
  ];
161647
161647
  });
161648
161648
 
161649
- // ../../packages/superdoc/dist/chunks/detect-container-CkAleP2M.es.js
161650
- var exports_detect_container_CkAleP2M_es = {};
161651
- __export(exports_detect_container_CkAleP2M_es, {
161649
+ // ../../packages/superdoc/dist/chunks/detect-container-CK5AEj_z.es.js
161650
+ var exports_detect_container_CK5AEj_z_es = {};
161651
+ __export(exports_detect_container_CK5AEj_z_es, {
161652
161652
  detectContainerType: () => detectContainerType
161653
161653
  });
161654
- var init_detect_container_CkAleP2M_es = __esm(() => {
161655
- init_detect_container_F9mvzfM4_es();
161654
+ var init_detect_container_CK5AEj_z_es = __esm(() => {
161655
+ init_detect_container_C6_bljPf_es();
161656
161656
  });
161657
161657
 
161658
161658
  // ../../packages/superdoc/dist/chunks/errors-CNaD6vcg.es.js
@@ -161705,9 +161705,9 @@ var init_errors_CNaD6vcg_es = __esm(() => {
161705
161705
  };
161706
161706
  });
161707
161707
 
161708
- // ../../packages/superdoc/dist/chunks/decrypt-docx-qHyNrqvz.es.js
161709
- var exports_decrypt_docx_qHyNrqvz_es = {};
161710
- __export(exports_decrypt_docx_qHyNrqvz_es, {
161708
+ // ../../packages/superdoc/dist/chunks/decrypt-docx-DaCAb_nX.es.js
161709
+ var exports_decrypt_docx_DaCAb_nX_es = {};
161710
+ __export(exports_decrypt_docx_DaCAb_nX_es, {
161711
161711
  decryptDocxIfNeeded: () => decryptDocxIfNeeded
161712
161712
  });
161713
161713
  function concatUint8Arrays(chunks) {
@@ -162248,10 +162248,10 @@ async function decryptDocxIfNeeded(data, options) {
162248
162248
  };
162249
162249
  }
162250
162250
  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;
162251
- var init_decrypt_docx_qHyNrqvz_es = __esm(() => {
162251
+ var init_decrypt_docx_DaCAb_nX_es = __esm(() => {
162252
162252
  init_dist_B8HfvhaK_es();
162253
162253
  init_errors_CNaD6vcg_es();
162254
- init_detect_container_F9mvzfM4_es();
162254
+ init_detect_container_C6_bljPf_es();
162255
162255
  CFB_SIGNATURE = new Uint8Array([
162256
162256
  208,
162257
162257
  207,
@@ -162320,7 +162320,7 @@ var init_decrypt_docx_qHyNrqvz_es = __esm(() => {
162320
162320
  ]);
162321
162321
  });
162322
162322
 
162323
- // ../../packages/superdoc/dist/chunks/DocxZipper-CU4X_-2c.es.js
162323
+ // ../../packages/superdoc/dist/chunks/DocxZipper-DoY5OEjc.es.js
162324
162324
  function sniffEncoding(u8) {
162325
162325
  if (u8.length >= 2) {
162326
162326
  const b0 = u8[0], b1 = u8[1];
@@ -162636,11 +162636,11 @@ var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.docum
162636
162636
  return new Uint8Array(0);
162637
162637
  }
162638
162638
  async getDocxData(file, isNode3 = false, options = {}) {
162639
- const { detectContainerType: detectContainerType2 } = await Promise.resolve().then(() => (init_detect_container_CkAleP2M_es(), exports_detect_container_CkAleP2M_es));
162639
+ const { detectContainerType: detectContainerType2 } = await Promise.resolve().then(() => (init_detect_container_CK5AEj_z_es(), exports_detect_container_CK5AEj_z_es));
162640
162640
  const containerType = detectContainerType2(await this.#peekBytes(file, 8));
162641
162641
  let fileData = file;
162642
162642
  if (containerType === "cfb") {
162643
- const { decryptDocxIfNeeded: decryptDocxIfNeeded2 } = await Promise.resolve().then(() => (init_decrypt_docx_qHyNrqvz_es(), exports_decrypt_docx_qHyNrqvz_es));
162643
+ const { decryptDocxIfNeeded: decryptDocxIfNeeded2 } = await Promise.resolve().then(() => (init_decrypt_docx_DaCAb_nX_es(), exports_decrypt_docx_DaCAb_nX_es));
162644
162644
  const result = await decryptDocxIfNeeded2(file instanceof Uint8Array ? file : file instanceof ArrayBuffer ? new Uint8Array(file) : new Uint8Array(await file.arrayBuffer()), { password: options.password });
162645
162645
  fileData = result.data;
162646
162646
  this.decryptedFileData = result.data;
@@ -162993,7 +162993,7 @@ var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.docum
162993
162993
  return `image/${MIME_TYPE_FOR_EXT[detectedType] || detectedType}`;
162994
162994
  }
162995
162995
  }, DocxZipper_default;
162996
- var init_DocxZipper_CU4X__2c_es = __esm(() => {
162996
+ var init_DocxZipper_DoY5OEjc_es = __esm(() => {
162997
162997
  init_rolldown_runtime_Bg48TavK_es();
162998
162998
  init_jszip_C49i9kUs_es();
162999
162999
  init_xml_js_CqGKpaft_es();
@@ -198872,9 +198872,9 @@ var init_unified_vFnLRfAM_es = __esm(() => {
198872
198872
  init_unified_Dsuw2be5_es();
198873
198873
  });
198874
198874
 
198875
- // ../../packages/superdoc/dist/chunks/rehype-parse-BI-WIfXl.es.js
198876
- var exports_rehype_parse_BI_WIfXl_es = {};
198877
- __export(exports_rehype_parse_BI_WIfXl_es, {
198875
+ // ../../packages/superdoc/dist/chunks/rehype-parse-CD6KGerH.es.js
198876
+ var exports_rehype_parse_CD6KGerH_es = {};
198877
+ __export(exports_rehype_parse_CD6KGerH_es, {
198878
198878
  default: () => rehypeParse
198879
198879
  });
198880
198880
  function merge2(definitions, space) {
@@ -204823,7 +204823,7 @@ var Schema2 = class {
204823
204823
  }
204824
204824
  }
204825
204825
  }, TABLE_VOID_ELEMENTS, errors, base3 = "https://html.spec.whatwg.org/multipage/parsing.html#parse-error-", dashToCamelRe, formatCRe, formatXRe, fatalities, emptyOptions3;
204826
- var init_rehype_parse_BI_WIfXl_es = __esm(() => {
204826
+ var init_rehype_parse_CD6KGerH_es = __esm(() => {
204827
204827
  init_rolldown_runtime_Bg48TavK_es();
204828
204828
  init_default_BqgWzMfR_es();
204829
204829
  init_lib_CYqLdG4z_es();
@@ -207568,9 +207568,9 @@ var init_rehype_parse_BI_WIfXl_es = __esm(() => {
207568
207568
  emptyOptions3 = {};
207569
207569
  });
207570
207570
 
207571
- // ../../packages/superdoc/dist/chunks/rehype-remark-CjZ9Q9bL.es.js
207572
- var exports_rehype_remark_CjZ9Q9bL_es = {};
207573
- __export(exports_rehype_remark_CjZ9Q9bL_es, {
207571
+ // ../../packages/superdoc/dist/chunks/rehype-remark-B1RWSuTX.es.js
207572
+ var exports_rehype_remark_B1RWSuTX_es = {};
207573
+ __export(exports_rehype_remark_B1RWSuTX_es, {
207574
207574
  default: () => rehypeRemark
207575
207575
  });
207576
207576
  function anyFactory2(tests) {
@@ -209190,7 +209190,7 @@ var env, deserializer = ($2, _2) => {
209190
209190
  if (is(parent.children[index2], index2, parent))
209191
209191
  return parent.children[index2];
209192
209192
  }, searchLineFeeds, searchTabOrSpaces, br$1, cell, p$1, row, notRendered, blockOrCaption, prefix = "language-", defaultChecked = "[x]", defaultUnchecked = "[ ]", own$12, list$1, basic, meta, defaultQuotes, nodeHandlers, handlers2, own6, emptyOptions4, defaults;
209193
- var init_rehype_remark_CjZ9Q9bL_es = __esm(() => {
209193
+ var init_rehype_remark_B1RWSuTX_es = __esm(() => {
209194
209194
  init_lib_DEff_P2k_es();
209195
209195
  env = typeof self === "object" ? self : globalThis;
209196
209196
  ({ toString: toString$1 } = {});
@@ -209584,7 +209584,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
209584
209584
  init_remark_gfm_BhnWr3yf_es();
209585
209585
  });
209586
209586
 
209587
- // ../../packages/superdoc/dist/chunks/src-DlI-vUrR.es.js
209587
+ // ../../packages/superdoc/dist/chunks/src-DnrLgjeO.es.js
209588
209588
  function deleteProps(obj, propOrProps) {
209589
209589
  const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
209590
209590
  const removeNested = (target, pathParts, index2 = 0) => {
@@ -304353,7 +304353,7 @@ menclose::after {
304353
304353
  return;
304354
304354
  console.log(...args$1);
304355
304355
  }, 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;
304356
- var init_src_DlI_vUrR_es = __esm(() => {
304356
+ var init_src_DnrLgjeO_es = __esm(() => {
304357
304357
  init_rolldown_runtime_Bg48TavK_es();
304358
304358
  init_SuperConverter_CnwfJPj6_es();
304359
304359
  init_jszip_C49i9kUs_es();
@@ -304365,7 +304365,7 @@ var init_src_DlI_vUrR_es = __esm(() => {
304365
304365
  init_unified_Dsuw2be5_es();
304366
304366
  init_remark_gfm_BhnWr3yf_es();
304367
304367
  init_remark_stringify_6MMJfY0k_es();
304368
- init_DocxZipper_CU4X__2c_es();
304368
+ init_DocxZipper_DoY5OEjc_es();
304369
304369
  init__plugin_vue_export_helper_5t5P5NuM_es();
304370
304370
  init_eventemitter3_BnGqBE_Q_es();
304371
304371
  init_errors_CNaD6vcg_es();
@@ -330192,8 +330192,8 @@ function print() { __p += __j.call(arguments, '') }
330192
330192
  try {
330193
330193
  const [{ unified: unified$1 }, { default: rehypeParse2 }, { default: rehypeRemark2 }, { default: remarkStringify$1 }, { default: remarkGfm$1 }] = await Promise.all([
330194
330194
  Promise.resolve().then(() => (init_unified_vFnLRfAM_es(), exports_unified_vFnLRfAM_es)),
330195
- Promise.resolve().then(() => (init_rehype_parse_BI_WIfXl_es(), exports_rehype_parse_BI_WIfXl_es)),
330196
- Promise.resolve().then(() => (init_rehype_remark_CjZ9Q9bL_es(), exports_rehype_remark_CjZ9Q9bL_es)),
330195
+ Promise.resolve().then(() => (init_rehype_parse_CD6KGerH_es(), exports_rehype_parse_CD6KGerH_es)),
330196
+ Promise.resolve().then(() => (init_rehype_remark_B1RWSuTX_es(), exports_rehype_remark_B1RWSuTX_es)),
330197
330197
  Promise.resolve().then(() => (init_remark_stringify_B_orWEvD_es(), exports_remark_stringify_B_orWEvD_es)),
330198
330198
  Promise.resolve().then(() => (init_remark_gfm_eZN6yzWQ_es(), exports_remark_gfm_eZN6yzWQ_es))
330199
330199
  ]);
@@ -342572,7 +342572,7 @@ var init_zipper_yaJVJ4z9_es = __esm(() => {
342572
342572
 
342573
342573
  // ../../packages/superdoc/dist/super-editor.es.js
342574
342574
  var init_super_editor_es = __esm(() => {
342575
- init_src_DlI_vUrR_es();
342575
+ init_src_DnrLgjeO_es();
342576
342576
  init_SuperConverter_CnwfJPj6_es();
342577
342577
  init_jszip_C49i9kUs_es();
342578
342578
  init_xml_js_CqGKpaft_es();
@@ -342580,7 +342580,7 @@ var init_super_editor_es = __esm(() => {
342580
342580
  init_constants_DrU4EASo_es();
342581
342581
  init_dist_B8HfvhaK_es();
342582
342582
  init_unified_Dsuw2be5_es();
342583
- init_DocxZipper_CU4X__2c_es();
342583
+ init_DocxZipper_DoY5OEjc_es();
342584
342584
  init_create_super_doc_ui_BgATtiYQ_es();
342585
342585
  init_ui_C5PAS9hY_es();
342586
342586
  init_eventemitter3_BnGqBE_Q_es();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc-dev/cli",
3
- "version": "0.11.0-next.7",
3
+ "version": "0.11.0-next.9",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "superdoc": "./dist/index.js"
@@ -24,21 +24,21 @@
24
24
  "@types/node": "22.19.2",
25
25
  "@types/ws": "^8.5.13",
26
26
  "typescript": "^5.9.2",
27
- "@superdoc/document-api": "0.0.1",
28
- "@superdoc/pm-adapter": "0.0.0",
29
27
  "@superdoc/super-editor": "0.0.1",
30
- "superdoc": "1.33.1"
28
+ "@superdoc/document-api": "0.0.1",
29
+ "superdoc": "1.33.1",
30
+ "@superdoc/pm-adapter": "0.0.0"
31
31
  },
32
32
  "module": "src/index.ts",
33
33
  "publishConfig": {
34
34
  "access": "public"
35
35
  },
36
36
  "optionalDependencies": {
37
- "@superdoc-dev/cli-darwin-arm64": "0.11.0-next.7",
38
- "@superdoc-dev/cli-darwin-x64": "0.11.0-next.7",
39
- "@superdoc-dev/cli-linux-x64": "0.11.0-next.7",
40
- "@superdoc-dev/cli-linux-arm64": "0.11.0-next.7",
41
- "@superdoc-dev/cli-windows-x64": "0.11.0-next.7"
37
+ "@superdoc-dev/cli-darwin-arm64": "0.11.0-next.9",
38
+ "@superdoc-dev/cli-darwin-x64": "0.11.0-next.9",
39
+ "@superdoc-dev/cli-linux-x64": "0.11.0-next.9",
40
+ "@superdoc-dev/cli-linux-arm64": "0.11.0-next.9",
41
+ "@superdoc-dev/cli-windows-x64": "0.11.0-next.9"
42
42
  },
43
43
  "scripts": {
44
44
  "predev": "node scripts/ensure-superdoc-build.js",