@superdoc-dev/cli 0.11.0-next.16 → 0.11.0-next.18

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 +8 -8
package/dist/index.js CHANGED
@@ -169952,7 +169952,7 @@ var init_remark_stringify_6MMJfY0k_es = __esm(() => {
169952
169952
  eol = /\r?\n|\r/g;
169953
169953
  });
169954
169954
 
169955
- // ../../packages/superdoc/dist/chunks/detect-container-C6_bljPf.es.js
169955
+ // ../../packages/superdoc/dist/chunks/detect-container-B6sqy7HZ.es.js
169956
169956
  function matchesMagic(bytes, magic) {
169957
169957
  if (bytes.length < magic.length)
169958
169958
  return false;
@@ -169970,7 +169970,7 @@ function detectContainerType(data) {
169970
169970
  return "unknown";
169971
169971
  }
169972
169972
  var ZIP_MAGIC, CFB_MAGIC;
169973
- var init_detect_container_C6_bljPf_es = __esm(() => {
169973
+ var init_detect_container_B6sqy7HZ_es = __esm(() => {
169974
169974
  ZIP_MAGIC = [
169975
169975
  80,
169976
169976
  75,
@@ -169989,13 +169989,13 @@ var init_detect_container_C6_bljPf_es = __esm(() => {
169989
169989
  ];
169990
169990
  });
169991
169991
 
169992
- // ../../packages/superdoc/dist/chunks/detect-container-CK5AEj_z.es.js
169993
- var exports_detect_container_CK5AEj_z_es = {};
169994
- __export(exports_detect_container_CK5AEj_z_es, {
169992
+ // ../../packages/superdoc/dist/chunks/detect-container-Cs3KoJVc.es.js
169993
+ var exports_detect_container_Cs3KoJVc_es = {};
169994
+ __export(exports_detect_container_Cs3KoJVc_es, {
169995
169995
  detectContainerType: () => detectContainerType
169996
169996
  });
169997
- var init_detect_container_CK5AEj_z_es = __esm(() => {
169998
- init_detect_container_C6_bljPf_es();
169997
+ var init_detect_container_Cs3KoJVc_es = __esm(() => {
169998
+ init_detect_container_B6sqy7HZ_es();
169999
169999
  });
170000
170000
 
170001
170001
  // ../../packages/superdoc/dist/chunks/errors-CNaD6vcg.es.js
@@ -170048,9 +170048,9 @@ var init_errors_CNaD6vcg_es = __esm(() => {
170048
170048
  };
170049
170049
  });
170050
170050
 
170051
- // ../../packages/superdoc/dist/chunks/decrypt-docx-DaCAb_nX.es.js
170052
- var exports_decrypt_docx_DaCAb_nX_es = {};
170053
- __export(exports_decrypt_docx_DaCAb_nX_es, {
170051
+ // ../../packages/superdoc/dist/chunks/decrypt-docx-G2a7hkiV.es.js
170052
+ var exports_decrypt_docx_G2a7hkiV_es = {};
170053
+ __export(exports_decrypt_docx_G2a7hkiV_es, {
170054
170054
  decryptDocxIfNeeded: () => decryptDocxIfNeeded
170055
170055
  });
170056
170056
  function concatUint8Arrays(chunks) {
@@ -170591,10 +170591,10 @@ async function decryptDocxIfNeeded(data, options) {
170591
170591
  };
170592
170592
  }
170593
170593
  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;
170594
- var init_decrypt_docx_DaCAb_nX_es = __esm(() => {
170594
+ var init_decrypt_docx_G2a7hkiV_es = __esm(() => {
170595
170595
  init_dist_B8HfvhaK_es();
170596
170596
  init_errors_CNaD6vcg_es();
170597
- init_detect_container_C6_bljPf_es();
170597
+ init_detect_container_B6sqy7HZ_es();
170598
170598
  CFB_SIGNATURE = new Uint8Array([
170599
170599
  208,
170600
170600
  207,
@@ -170663,7 +170663,7 @@ var init_decrypt_docx_DaCAb_nX_es = __esm(() => {
170663
170663
  ]);
170664
170664
  });
170665
170665
 
170666
- // ../../packages/superdoc/dist/chunks/DocxZipper-DoY5OEjc.es.js
170666
+ // ../../packages/superdoc/dist/chunks/DocxZipper-CZMPWpOp.es.js
170667
170667
  function sniffEncoding(u8) {
170668
170668
  if (u8.length >= 2) {
170669
170669
  const b0 = u8[0], b1 = u8[1];
@@ -170979,11 +170979,11 @@ var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.docum
170979
170979
  return new Uint8Array(0);
170980
170980
  }
170981
170981
  async getDocxData(file, isNode3 = false, options = {}) {
170982
- const { detectContainerType: detectContainerType2 } = await Promise.resolve().then(() => (init_detect_container_CK5AEj_z_es(), exports_detect_container_CK5AEj_z_es));
170982
+ const { detectContainerType: detectContainerType2 } = await Promise.resolve().then(() => (init_detect_container_Cs3KoJVc_es(), exports_detect_container_Cs3KoJVc_es));
170983
170983
  const containerType = detectContainerType2(await this.#peekBytes(file, 8));
170984
170984
  let fileData = file;
170985
170985
  if (containerType === "cfb") {
170986
- const { decryptDocxIfNeeded: decryptDocxIfNeeded2 } = await Promise.resolve().then(() => (init_decrypt_docx_DaCAb_nX_es(), exports_decrypt_docx_DaCAb_nX_es));
170986
+ const { decryptDocxIfNeeded: decryptDocxIfNeeded2 } = await Promise.resolve().then(() => (init_decrypt_docx_G2a7hkiV_es(), exports_decrypt_docx_G2a7hkiV_es));
170987
170987
  const result = await decryptDocxIfNeeded2(file instanceof Uint8Array ? file : file instanceof ArrayBuffer ? new Uint8Array(file) : new Uint8Array(await file.arrayBuffer()), { password: options.password });
170988
170988
  fileData = result.data;
170989
170989
  this.decryptedFileData = result.data;
@@ -171336,7 +171336,7 @@ var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.docum
171336
171336
  return `image/${MIME_TYPE_FOR_EXT[detectedType] || detectedType}`;
171337
171337
  }
171338
171338
  }, DocxZipper_default;
171339
- var init_DocxZipper_DoY5OEjc_es = __esm(() => {
171339
+ var init_DocxZipper_CZMPWpOp_es = __esm(() => {
171340
171340
  init_rolldown_runtime_Bg48TavK_es();
171341
171341
  init_jszip_C49i9kUs_es();
171342
171342
  init_xml_js_CqGKpaft_es();
@@ -207215,9 +207215,9 @@ var init_unified_vFnLRfAM_es = __esm(() => {
207215
207215
  init_unified_Dsuw2be5_es();
207216
207216
  });
207217
207217
 
207218
- // ../../packages/superdoc/dist/chunks/rehype-parse-CD6KGerH.es.js
207219
- var exports_rehype_parse_CD6KGerH_es = {};
207220
- __export(exports_rehype_parse_CD6KGerH_es, {
207218
+ // ../../packages/superdoc/dist/chunks/rehype-parse-q8NfsLv7.es.js
207219
+ var exports_rehype_parse_q8NfsLv7_es = {};
207220
+ __export(exports_rehype_parse_q8NfsLv7_es, {
207221
207221
  default: () => rehypeParse
207222
207222
  });
207223
207223
  function merge2(definitions, space) {
@@ -213166,7 +213166,7 @@ var Schema2 = class {
213166
213166
  }
213167
213167
  }
213168
213168
  }, TABLE_VOID_ELEMENTS, errors, base3 = "https://html.spec.whatwg.org/multipage/parsing.html#parse-error-", dashToCamelRe, formatCRe, formatXRe, fatalities, emptyOptions3;
213169
- var init_rehype_parse_CD6KGerH_es = __esm(() => {
213169
+ var init_rehype_parse_q8NfsLv7_es = __esm(() => {
213170
213170
  init_rolldown_runtime_Bg48TavK_es();
213171
213171
  init_default_BqgWzMfR_es();
213172
213172
  init_lib_CYqLdG4z_es();
@@ -215911,9 +215911,9 @@ var init_rehype_parse_CD6KGerH_es = __esm(() => {
215911
215911
  emptyOptions3 = {};
215912
215912
  });
215913
215913
 
215914
- // ../../packages/superdoc/dist/chunks/rehype-remark-B1RWSuTX.es.js
215915
- var exports_rehype_remark_B1RWSuTX_es = {};
215916
- __export(exports_rehype_remark_B1RWSuTX_es, {
215914
+ // ../../packages/superdoc/dist/chunks/rehype-remark-CKg94dxK.es.js
215915
+ var exports_rehype_remark_CKg94dxK_es = {};
215916
+ __export(exports_rehype_remark_CKg94dxK_es, {
215917
215917
  default: () => rehypeRemark
215918
215918
  });
215919
215919
  function anyFactory2(tests) {
@@ -217533,7 +217533,7 @@ var env, deserializer = ($2, _2) => {
217533
217533
  if (is(parent.children[index2], index2, parent))
217534
217534
  return parent.children[index2];
217535
217535
  }, 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;
217536
- var init_rehype_remark_B1RWSuTX_es = __esm(() => {
217536
+ var init_rehype_remark_CKg94dxK_es = __esm(() => {
217537
217537
  init_lib_DEff_P2k_es();
217538
217538
  env = typeof self === "object" ? self : globalThis;
217539
217539
  ({ toString: toString$1 } = {});
@@ -217927,7 +217927,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
217927
217927
  init_remark_gfm_BhnWr3yf_es();
217928
217928
  });
217929
217929
 
217930
- // ../../packages/superdoc/dist/chunks/src-D_jA08Jh.es.js
217930
+ // ../../packages/superdoc/dist/chunks/src-CbHUN3NA.es.js
217931
217931
  function deleteProps(obj, propOrProps) {
217932
217932
  const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
217933
217933
  const removeNested = (target, pathParts, index2 = 0) => {
@@ -306166,7 +306166,7 @@ menclose::after {
306166
306166
  return;
306167
306167
  console.log(...args$1);
306168
306168
  }, 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;
306169
- var init_src_D_jA08Jh_es = __esm(() => {
306169
+ var init_src_CbHUN3NA_es = __esm(() => {
306170
306170
  init_rolldown_runtime_Bg48TavK_es();
306171
306171
  init_SuperConverter_CzwJ7ds9_es();
306172
306172
  init_jszip_C49i9kUs_es();
@@ -306178,7 +306178,7 @@ var init_src_D_jA08Jh_es = __esm(() => {
306178
306178
  init_unified_Dsuw2be5_es();
306179
306179
  init_remark_gfm_BhnWr3yf_es();
306180
306180
  init_remark_stringify_6MMJfY0k_es();
306181
- init_DocxZipper_DoY5OEjc_es();
306181
+ init_DocxZipper_CZMPWpOp_es();
306182
306182
  init__plugin_vue_export_helper_5t5P5NuM_es();
306183
306183
  init_eventemitter3_BnGqBE_Q_es();
306184
306184
  init_errors_CNaD6vcg_es();
@@ -331529,8 +331529,8 @@ function print() { __p += __j.call(arguments, '') }
331529
331529
  try {
331530
331530
  const [{ unified: unified$1 }, { default: rehypeParse2 }, { default: rehypeRemark2 }, { default: remarkStringify$1 }, { default: remarkGfm$1 }] = await Promise.all([
331531
331531
  Promise.resolve().then(() => (init_unified_vFnLRfAM_es(), exports_unified_vFnLRfAM_es)),
331532
- Promise.resolve().then(() => (init_rehype_parse_CD6KGerH_es(), exports_rehype_parse_CD6KGerH_es)),
331533
- Promise.resolve().then(() => (init_rehype_remark_B1RWSuTX_es(), exports_rehype_remark_B1RWSuTX_es)),
331532
+ Promise.resolve().then(() => (init_rehype_parse_q8NfsLv7_es(), exports_rehype_parse_q8NfsLv7_es)),
331533
+ Promise.resolve().then(() => (init_rehype_remark_CKg94dxK_es(), exports_rehype_remark_CKg94dxK_es)),
331534
331534
  Promise.resolve().then(() => (init_remark_stringify_B_orWEvD_es(), exports_remark_stringify_B_orWEvD_es)),
331535
331535
  Promise.resolve().then(() => (init_remark_gfm_eZN6yzWQ_es(), exports_remark_gfm_eZN6yzWQ_es))
331536
331536
  ]);
@@ -343911,7 +343911,7 @@ var init_zipper_yaJVJ4z9_es = __esm(() => {
343911
343911
 
343912
343912
  // ../../packages/superdoc/dist/super-editor.es.js
343913
343913
  var init_super_editor_es = __esm(() => {
343914
- init_src_D_jA08Jh_es();
343914
+ init_src_CbHUN3NA_es();
343915
343915
  init_SuperConverter_CzwJ7ds9_es();
343916
343916
  init_jszip_C49i9kUs_es();
343917
343917
  init_xml_js_CqGKpaft_es();
@@ -343919,7 +343919,7 @@ var init_super_editor_es = __esm(() => {
343919
343919
  init_constants_DrU4EASo_es();
343920
343920
  init_dist_B8HfvhaK_es();
343921
343921
  init_unified_Dsuw2be5_es();
343922
- init_DocxZipper_DoY5OEjc_es();
343922
+ init_DocxZipper_CZMPWpOp_es();
343923
343923
  init_create_super_doc_ui_BNIXtF7U_es();
343924
343924
  init_ui_C5PAS9hY_es();
343925
343925
  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.16",
3
+ "version": "0.11.0-next.18",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "superdoc": "./dist/index.js"
@@ -25,20 +25,20 @@
25
25
  "@types/ws": "^8.5.13",
26
26
  "typescript": "^5.9.2",
27
27
  "@superdoc/document-api": "0.0.1",
28
- "@superdoc/super-editor": "0.0.1",
28
+ "@superdoc/pm-adapter": "0.0.0",
29
29
  "superdoc": "1.33.1",
30
- "@superdoc/pm-adapter": "0.0.0"
30
+ "@superdoc/super-editor": "0.0.1"
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.16",
38
- "@superdoc-dev/cli-darwin-x64": "0.11.0-next.16",
39
- "@superdoc-dev/cli-linux-x64": "0.11.0-next.16",
40
- "@superdoc-dev/cli-windows-x64": "0.11.0-next.16",
41
- "@superdoc-dev/cli-linux-arm64": "0.11.0-next.16"
37
+ "@superdoc-dev/cli-darwin-arm64": "0.11.0-next.18",
38
+ "@superdoc-dev/cli-darwin-x64": "0.11.0-next.18",
39
+ "@superdoc-dev/cli-linux-x64": "0.11.0-next.18",
40
+ "@superdoc-dev/cli-windows-x64": "0.11.0-next.18",
41
+ "@superdoc-dev/cli-linux-arm64": "0.11.0-next.18"
42
42
  },
43
43
  "scripts": {
44
44
  "predev": "node scripts/ensure-superdoc-build.js",