@superdoc-dev/cli 0.11.0-next.1 → 0.11.0-next.10

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 +353 -95
  2. package/package.json +8 -8
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-C1zjKeIM.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_C1zjKeIM_es = __esm(() => {
161630
+ var init_detect_container_C6_bljPf_es = __esm(() => {
161631
161631
  ZIP_MAGIC = [
161632
161632
  80,
161633
161633
  75,
@@ -161646,18 +161646,18 @@ var init_detect_container_C1zjKeIM_es = __esm(() => {
161646
161646
  ];
161647
161647
  });
161648
161648
 
161649
- // ../../packages/superdoc/dist/chunks/detect-container-Dpg_mpnM.es.js
161650
- var exports_detect_container_Dpg_mpnM_es = {};
161651
- __export(exports_detect_container_Dpg_mpnM_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_Dpg_mpnM_es = __esm(() => {
161655
- init_detect_container_C1zjKeIM_es();
161654
+ var init_detect_container_CK5AEj_z_es = __esm(() => {
161655
+ init_detect_container_C6_bljPf_es();
161656
161656
  });
161657
161657
 
161658
- // ../../packages/superdoc/dist/chunks/errors-C_DoKMoN.es.js
161658
+ // ../../packages/superdoc/dist/chunks/errors-CNaD6vcg.es.js
161659
161659
  var EditorError, InvalidStateError, NoSourcePathError, FileSystemNotAvailableError, DocumentLoadError, DocxEncryptionErrorCode, DocxEncryptionError;
161660
- var init_errors_C_DoKMoN_es = __esm(() => {
161660
+ var init_errors_CNaD6vcg_es = __esm(() => {
161661
161661
  EditorError = class extends Error {
161662
161662
  constructor(message) {
161663
161663
  super(message);
@@ -161705,9 +161705,9 @@ var init_errors_C_DoKMoN_es = __esm(() => {
161705
161705
  };
161706
161706
  });
161707
161707
 
161708
- // ../../packages/superdoc/dist/chunks/decrypt-docx-4kQ488M9.es.js
161709
- var exports_decrypt_docx_4kQ488M9_es = {};
161710
- __export(exports_decrypt_docx_4kQ488M9_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_4kQ488M9_es = __esm(() => {
162251
+ var init_decrypt_docx_DaCAb_nX_es = __esm(() => {
162252
162252
  init_dist_B8HfvhaK_es();
162253
- init_errors_C_DoKMoN_es();
162254
- init_detect_container_C1zjKeIM_es();
162253
+ init_errors_CNaD6vcg_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_4kQ488M9_es = __esm(() => {
162320
162320
  ]);
162321
162321
  });
162322
162322
 
162323
- // ../../packages/superdoc/dist/chunks/DocxZipper-Bphhij1P.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_Dpg_mpnM_es(), exports_detect_container_Dpg_mpnM_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_4kQ488M9_es(), exports_decrypt_docx_4kQ488M9_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_Bphhij1P_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();
@@ -163059,18 +163059,18 @@ var init_DocxZipper_Bphhij1P_es = __esm(() => {
163059
163059
  DocxZipper_default = DocxZipper;
163060
163060
  });
163061
163061
 
163062
- // ../../packages/superdoc/dist/chunks/_plugin-vue_export-helper-HmhZBO0u.es.js
163062
+ // ../../packages/superdoc/dist/chunks/_plugin-vue_export-helper-5t5P5NuM.es.js
163063
163063
  var __plugin_vue_export_helper_default = (sfc, props) => {
163064
163064
  const target = sfc.__vccOpts || sfc;
163065
163065
  for (const [key2, val] of props)
163066
163066
  target[key2] = val;
163067
163067
  return target;
163068
163068
  };
163069
- var init__plugin_vue_export_helper_HmhZBO0u_es = () => {};
163069
+ var init__plugin_vue_export_helper_5t5P5NuM_es = () => {};
163070
163070
 
163071
- // ../../packages/superdoc/dist/chunks/eventemitter3-UwU_CLPU.es.js
163071
+ // ../../packages/superdoc/dist/chunks/eventemitter3-BnGqBE-Q.es.js
163072
163072
  var import_eventemitter3;
163073
- var init_eventemitter3_UwU_CLPU_es = __esm(() => {
163073
+ var init_eventemitter3_BnGqBE_Q_es = __esm(() => {
163074
163074
  init_rolldown_runtime_Bg48TavK_es();
163075
163075
  import_eventemitter3 = /* @__PURE__ */ __toESM2((/* @__PURE__ */ __commonJSMin((exports, module) => {
163076
163076
  var has = Object.prototype.hasOwnProperty, prefix = "~";
@@ -163239,8 +163239,8 @@ var init_eventemitter3_UwU_CLPU_es = __esm(() => {
163239
163239
  }))(), 1);
163240
163240
  });
163241
163241
 
163242
- // ../../packages/superdoc/dist/chunks/blank-docx-CDDHd6CH.es.js
163243
- var init_blank_docx_CDDHd6CH_es = () => {};
163242
+ // ../../packages/superdoc/dist/chunks/blank-docx-1Y-uWgjm.es.js
163243
+ var init_blank_docx_1Y_uWgjm_es = () => {};
163244
163244
 
163245
163245
  // ../../node_modules/.pnpm/@vue+shared@3.5.32/node_modules/@vue/shared/dist/shared.cjs.js
163246
163246
  var require_shared_cjs = __commonJS((exports) => {
@@ -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-DyKLXYD2.es.js
198876
- var exports_rehype_parse_DyKLXYD2_es = {};
198877
- __export(exports_rehype_parse_DyKLXYD2_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_DyKLXYD2_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_DyKLXYD2_es = __esm(() => {
207568
207568
  emptyOptions3 = {};
207569
207569
  });
207570
207570
 
207571
- // ../../packages/superdoc/dist/chunks/rehype-remark-DYihe9nj.es.js
207572
- var exports_rehype_remark_DYihe9nj_es = {};
207573
- __export(exports_rehype_remark_DYihe9nj_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_DYihe9nj_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 } = {});
@@ -209566,12 +209566,12 @@ var init_rehype_remark_DYihe9nj_es = __esm(() => {
209566
209566
  defaults = { document: true };
209567
209567
  });
209568
209568
 
209569
- // ../../packages/superdoc/dist/chunks/remark-stringify-Cb9EtkyK.es.js
209570
- var exports_remark_stringify_Cb9EtkyK_es = {};
209571
- __export(exports_remark_stringify_Cb9EtkyK_es, {
209569
+ // ../../packages/superdoc/dist/chunks/remark-stringify-B-orWEvD.es.js
209570
+ var exports_remark_stringify_B_orWEvD_es = {};
209571
+ __export(exports_remark_stringify_B_orWEvD_es, {
209572
209572
  default: () => remarkStringify
209573
209573
  });
209574
- var init_remark_stringify_Cb9EtkyK_es = __esm(() => {
209574
+ var init_remark_stringify_B_orWEvD_es = __esm(() => {
209575
209575
  init_remark_stringify_6MMJfY0k_es();
209576
209576
  });
209577
209577
 
@@ -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-Jjjx6UC7.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) => {
@@ -219896,6 +219896,8 @@ function shouldProcessEqualAsModification$1(oldParagraph, newParagraph) {
219896
219896
  return JSON.stringify(oldNormalized) !== JSON.stringify(newNormalized);
219897
219897
  }
219898
219898
  function paragraphComparator(oldParagraph, newParagraph) {
219899
+ if (oldParagraph?.depth !== newParagraph?.depth)
219900
+ return false;
219899
219901
  const oldId = oldParagraph?.node?.attrs?.paraId;
219900
219902
  const newId = newParagraph?.node?.attrs?.paraId;
219901
219903
  if (oldId && newId && oldId === newId)
@@ -219938,6 +219940,8 @@ function buildModifiedParagraphDiff(oldParagraph, newParagraph) {
219938
219940
  };
219939
219941
  }
219940
219942
  function canTreatAsModification(oldParagraph, newParagraph) {
219943
+ if (oldParagraph?.depth !== newParagraph?.depth)
219944
+ return false;
219941
219945
  if (paragraphComparator(oldParagraph, newParagraph))
219942
219946
  return true;
219943
219947
  const oldText = oldParagraph.fullText;
@@ -267059,12 +267063,8 @@ function tableNodeToBlock(node3, { nextBlockId, positions, storyKey, trackedChan
267059
267063
  const tableProperties = node3.attrs?.tableProperties;
267060
267064
  if (tableProperties && typeof tableProperties === "object")
267061
267065
  tableAttrs.tableProperties = tableProperties;
267062
- const styleResolvedTableProps = effectiveStyleId && converterContext?.translatedLinkedStyles ? resolveTableProperties(effectiveStyleId, converterContext.translatedLinkedStyles) : undefined;
267063
267066
  const inlineProps = rawTableProperties;
267064
- const styleProps = styleResolvedTableProps;
267065
- const inlineVisual = inlineProps?.rightToLeft ?? inlineProps?.bidiVisual;
267066
- const styleVisual = styleProps?.rightToLeft ?? styleProps?.bidiVisual;
267067
- tableAttrs.tableDirectionContext = resolveTableDirection({ rightToLeft: inlineVisual ?? styleVisual }, converterContext?.sectionDirectionContext ?? resolveSectionDirection(undefined));
267067
+ tableAttrs.tableDirectionContext = resolveTableDirection({ rightToLeft: inlineProps?.rightToLeft ?? inlineProps?.bidiVisual }, converterContext?.sectionDirectionContext ?? resolveSectionDirection(undefined));
267068
267068
  let columnWidths = undefined;
267069
267069
  const twipsToPixels$2 = (twips) => {
267070
267070
  return twips / 1440 * 96;
@@ -269017,6 +269017,7 @@ function lineHeightBeforeIndex(lines, fromLine, targetIndex) {
269017
269017
  function computeCaretLayoutRectGeometry({ layout, blocks: blocks2, measures, painterHost, viewportHost, visibleHost, zoom }, pos, includeDomFallback = true) {
269018
269018
  if (!layout)
269019
269019
  return null;
269020
+ const originalPos = pos;
269020
269021
  let effectivePos = pos;
269021
269022
  let hit = getFragmentAtPosition(layout, blocks2, measures, pos);
269022
269023
  if (!hit) {
@@ -269088,28 +269089,105 @@ function computeCaretLayoutRectGeometry({ layout, blocks: blocks2, measures, pai
269088
269089
  };
269089
269090
  const pageEl = getPageElementByIndex(painterHost ?? null, hit.pageIndex);
269090
269091
  const pageRect = pageEl?.getBoundingClientRect();
269092
+ if (includeDomFallback && pageRect) {
269093
+ const selection = pageEl?.ownerDocument?.getSelection();
269094
+ if (selection?.rangeCount && selection.isCollapsed) {
269095
+ const nativeRange = selection.getRangeAt(0);
269096
+ if (typeof nativeRange.getBoundingClientRect === "function") {
269097
+ const nativeRect = nativeRange.getBoundingClientRect();
269098
+ const inPageBounds = Number.isFinite(nativeRect.left) && Number.isFinite(nativeRect.top) && Number.isFinite(nativeRect.height) && nativeRect.height > 0 && nativeRect.left >= pageRect.left - 2 && nativeRect.left <= pageRect.right + 2 && nativeRect.top >= pageRect.top - 2 && nativeRect.top <= pageRect.bottom + 2;
269099
+ const nativeX = (nativeRect.left - pageRect.left) / zoom;
269100
+ const nativeY = (nativeRect.top - pageRect.top) / zoom;
269101
+ const withinGeometrySanity = Math.abs(nativeX - result.x) <= 80;
269102
+ if (inPageBounds && withinGeometrySanity)
269103
+ return {
269104
+ pageIndex: hit.pageIndex,
269105
+ x: nativeX,
269106
+ y: nativeY,
269107
+ height: line.lineHeight
269108
+ };
269109
+ }
269110
+ }
269111
+ }
269091
269112
  let domCaretX = null;
269092
269113
  let domCaretY = null;
269093
- const spanEls = pageEl?.querySelectorAll("span[data-pm-start][data-pm-end]");
269094
- for (const spanEl of Array.from(spanEls ?? [])) {
269095
- const pmStart = Number(spanEl.dataset.pmStart);
269096
- const pmEnd = Number(spanEl.dataset.pmEnd);
269097
- if (effectivePos >= pmStart && effectivePos <= pmEnd && spanEl.firstChild?.nodeType === Node.TEXT_NODE) {
269098
- const textNode = spanEl.firstChild;
269099
- const charIndex = Math.min(effectivePos - pmStart, textNode.length);
269100
- const rangeObj = document.createRange();
269101
- rangeObj.setStart(textNode, charIndex);
269102
- rangeObj.setEnd(textNode, charIndex);
269103
- if (typeof rangeObj.getBoundingClientRect !== "function")
269104
- break;
269105
- const rangeRect = rangeObj.getBoundingClientRect();
269106
- if (pageRect) {
269107
- domCaretX = (rangeRect.left - pageRect.left) / zoom;
269108
- domCaretY = (rangeRect.top - pageRect.top) / zoom;
269109
- }
269114
+ const spanCandidates = [];
269115
+ const pushUnique = (el) => {
269116
+ if (!spanCandidates.includes(el))
269117
+ spanCandidates.push(el);
269118
+ };
269119
+ const collectSpans = (root3) => {
269120
+ if (!root3)
269121
+ return;
269122
+ const spans = root3.querySelectorAll("span[data-pm-start][data-pm-end]");
269123
+ for (const span of Array.from(spans))
269124
+ if (span instanceof HTMLElement)
269125
+ pushUnique(span);
269126
+ };
269127
+ const lineEls = pageEl?.querySelectorAll(".superdoc-line[data-pm-start][data-pm-end]");
269128
+ let localLineEl = null;
269129
+ for (const lineEl of Array.from(lineEls ?? [])) {
269130
+ if (!(lineEl instanceof HTMLElement))
269131
+ continue;
269132
+ const lineStart = Number(lineEl.dataset.pmStart);
269133
+ const lineEnd = Number(lineEl.dataset.pmEnd);
269134
+ if (!Number.isFinite(lineStart) || !Number.isFinite(lineEnd))
269135
+ continue;
269136
+ if (effectivePos >= lineStart && effectivePos <= lineEnd) {
269137
+ localLineEl = lineEl;
269110
269138
  break;
269111
269139
  }
269112
269140
  }
269141
+ collectSpans(localLineEl);
269142
+ if (spanCandidates.length === 0) {
269143
+ const MAX_PM_DISTANCE = 8;
269144
+ const pageSpans = pageEl?.querySelectorAll("span[data-pm-start][data-pm-end]");
269145
+ for (const span of Array.from(pageSpans ?? [])) {
269146
+ if (!(span instanceof HTMLElement))
269147
+ continue;
269148
+ const pmStart = Number(span.dataset.pmStart);
269149
+ const pmEnd = Number(span.dataset.pmEnd);
269150
+ if (!Number.isFinite(pmStart) || !Number.isFinite(pmEnd))
269151
+ continue;
269152
+ if (effectivePos >= pmStart && effectivePos <= pmEnd) {
269153
+ pushUnique(span);
269154
+ continue;
269155
+ }
269156
+ if (Math.abs(pmStart - effectivePos) <= MAX_PM_DISTANCE || Math.abs(pmEnd - effectivePos) <= MAX_PM_DISTANCE)
269157
+ pushUnique(span);
269158
+ }
269159
+ }
269160
+ const domProbePositions = Array.from(new Set([
269161
+ originalPos,
269162
+ effectivePos,
269163
+ originalPos - 1,
269164
+ originalPos + 1
269165
+ ])).filter((candidate) => candidate >= 0);
269166
+ let resolved = false;
269167
+ for (const probePos of domProbePositions) {
269168
+ for (const spanEl of spanCandidates) {
269169
+ const pmStart = Number(spanEl.dataset.pmStart);
269170
+ const pmEnd = Number(spanEl.dataset.pmEnd);
269171
+ if (probePos >= pmStart && probePos <= pmEnd && spanEl.firstChild?.nodeType === Node.TEXT_NODE) {
269172
+ const textNode = spanEl.firstChild;
269173
+ const charIndex = Math.min(probePos - pmStart, textNode.length);
269174
+ const rangeObj = document.createRange();
269175
+ rangeObj.setStart(textNode, charIndex);
269176
+ rangeObj.setEnd(textNode, charIndex);
269177
+ if (typeof rangeObj.getBoundingClientRect !== "function")
269178
+ continue;
269179
+ const rangeRect = rangeObj.getBoundingClientRect();
269180
+ if (pageRect) {
269181
+ domCaretX = (rangeRect.left - pageRect.left) / zoom;
269182
+ domCaretY = (rangeRect.top - pageRect.top) / zoom;
269183
+ resolved = true;
269184
+ break;
269185
+ }
269186
+ }
269187
+ }
269188
+ if (resolved)
269189
+ break;
269190
+ }
269113
269191
  if (includeDomFallback && domCaretX != null && domCaretY != null)
269114
269192
  return {
269115
269193
  pageIndex: hit.pageIndex,
@@ -284668,7 +284746,148 @@ var Node$13 = class Node$14 {
284668
284746
  if (!allowedRanges?.length)
284669
284747
  return false;
284670
284748
  return allowedRanges.some((allowed) => range.from >= allowed.from && range.to <= allowed.to);
284671
- }, PermissionRanges, Protection, DOM_CLASS_NAMES, DATA_ATTRS, DATASET_KEYS, DRAGGABLE_SELECTOR, VerticalNavigationPluginKey, createDefaultState = () => ({ goalX: null }), VerticalNavigation, createPermissionBlockMarkerNode = ({ name, attributes }) => Node$13.create({
284749
+ }, PermissionRanges, Protection, DOM_CLASS_NAMES, DATA_ATTRS, DATASET_KEYS, DRAGGABLE_SELECTOR, VerticalNavigationPluginKey, createDefaultState = () => ({ goalX: null }), VerticalNavigation, STRONG_RTL_CHAR_RE$1, STRONG_LTR_CHAR_RE, isStrongRtl = (char) => STRONG_RTL_CHAR_RE$1.test(char), isStrongLtr = (char) => STRONG_LTR_CHAR_RE.test(char), hasMixedDirectionBoundary = (leftChar, rightChar) => isStrongRtl(leftChar) && isStrongLtr(rightChar) || isStrongLtr(leftChar) && isStrongRtl(rightChar), resolveCaretPoint = (doc$12, range) => {
284750
+ const rect = range.getBoundingClientRect();
284751
+ if (rect && Number.isFinite(rect.left) && Number.isFinite(rect.top)) {
284752
+ if (rect.width === 0 && rect.height === 0)
284753
+ return null;
284754
+ const midY = rect.height > 0 ? rect.top + rect.height / 2 : rect.top;
284755
+ return {
284756
+ x: rect.left,
284757
+ y: midY
284758
+ };
284759
+ }
284760
+ const node3 = range.startContainer?.nodeType === Node.TEXT_NODE ? range.startContainer.parentElement : range.startContainer;
284761
+ if (!node3 || !(node3 instanceof HTMLElement))
284762
+ return null;
284763
+ const fallbackRect = node3.getBoundingClientRect();
284764
+ if (!fallbackRect)
284765
+ return null;
284766
+ return {
284767
+ x: fallbackRect.left,
284768
+ y: fallbackRect.top + fallbackRect.height / 2
284769
+ };
284770
+ }, resolveLineElement = (doc$12, point5) => {
284771
+ return doc$12.elementsFromPoint(point5.x, point5.y).find((el) => el instanceof HTMLElement ? el.classList.contains("superdoc-line") : false);
284772
+ }, collectVisualChars = (lineEl, view, targetX = null) => {
284773
+ const doc$12 = lineEl.ownerDocument;
284774
+ const nodeFilter = doc$12.defaultView?.NodeFilter;
284775
+ if (!nodeFilter)
284776
+ return [];
284777
+ const chars = [];
284778
+ const walker = doc$12.createTreeWalker(lineEl, nodeFilter.SHOW_TEXT);
284779
+ const RANGE_WINDOW_PX = 96;
284780
+ const hasTargetX = Number.isFinite(targetX);
284781
+ let node3 = walker.nextNode();
284782
+ while (node3) {
284783
+ const textNode = node3;
284784
+ const text5 = textNode.textContent ?? "";
284785
+ for (let i4 = 0;i4 < text5.length; i4 += 1) {
284786
+ const char = text5[i4];
284787
+ if (!char || /\s/.test(char))
284788
+ continue;
284789
+ let pmStart;
284790
+ let pmEnd;
284791
+ try {
284792
+ pmStart = view.posAtDOM(textNode, i4);
284793
+ pmEnd = view.posAtDOM(textNode, i4 + 1);
284794
+ } catch {
284795
+ continue;
284796
+ }
284797
+ if (!Number.isFinite(pmStart) || !Number.isFinite(pmEnd) || pmEnd <= pmStart)
284798
+ continue;
284799
+ const range = doc$12.createRange();
284800
+ range.setStart(textNode, i4);
284801
+ range.setEnd(textNode, i4 + 1);
284802
+ const rect = range.getBoundingClientRect();
284803
+ if (rect.width <= 0 || rect.height <= 0)
284804
+ continue;
284805
+ if (hasTargetX && rect.right < targetX - RANGE_WINDOW_PX)
284806
+ continue;
284807
+ if (hasTargetX && rect.left > targetX + RANGE_WINDOW_PX)
284808
+ continue;
284809
+ chars.push({
284810
+ char,
284811
+ pmStart,
284812
+ pmEnd,
284813
+ centerX: rect.left + rect.width / 2,
284814
+ centerY: rect.top + rect.height / 2
284815
+ });
284816
+ }
284817
+ node3 = walker.nextNode();
284818
+ }
284819
+ return chars;
284820
+ }, resolveBoundaryChars = (chars, caretPoint) => {
284821
+ if (chars.length === 0)
284822
+ return null;
284823
+ const sameBand = chars.filter((c) => Math.abs(c.centerY - caretPoint.y) <= 8);
284824
+ const band = sameBand.length > 0 ? sameBand : chars;
284825
+ band.sort((a2, b$1) => a2.centerX - b$1.centerX);
284826
+ let left$1 = null;
284827
+ let right$1 = null;
284828
+ for (const c of band) {
284829
+ if (c.centerX < caretPoint.x) {
284830
+ left$1 = c;
284831
+ continue;
284832
+ }
284833
+ right$1 = c;
284834
+ break;
284835
+ }
284836
+ if (!left$1 || !right$1)
284837
+ return null;
284838
+ return {
284839
+ left: left$1,
284840
+ right: right$1
284841
+ };
284842
+ }, resolveMixedBidiBackspaceRange = ({ state, view }) => {
284843
+ const { selection } = state;
284844
+ if (!selection?.empty)
284845
+ return null;
284846
+ const doc$12 = view?.dom?.ownerDocument;
284847
+ const nativeSelection = doc$12?.getSelection?.();
284848
+ if (!nativeSelection || nativeSelection.rangeCount === 0)
284849
+ return null;
284850
+ const range = nativeSelection.getRangeAt(0);
284851
+ if (!range.collapsed)
284852
+ return null;
284853
+ const caretPoint = resolveCaretPoint(doc$12, range);
284854
+ if (!caretPoint)
284855
+ return null;
284856
+ const lineEl = resolveLineElement(doc$12, caretPoint);
284857
+ if (!lineEl)
284858
+ return null;
284859
+ const lineText = lineEl.textContent ?? "";
284860
+ const hasRtl = STRONG_RTL_CHAR_RE$1.test(lineText);
284861
+ const hasLtr = STRONG_LTR_CHAR_RE.test(lineText);
284862
+ if (!hasRtl || !hasLtr)
284863
+ return null;
284864
+ let chars = collectVisualChars(lineEl, view, caretPoint.x);
284865
+ if (chars.length < 2)
284866
+ chars = collectVisualChars(lineEl, view, null);
284867
+ const boundary = resolveBoundaryChars(chars, caretPoint);
284868
+ if (!boundary)
284869
+ return null;
284870
+ if (!hasMixedDirectionBoundary(boundary.left.char, boundary.right.char))
284871
+ return null;
284872
+ if (selection.from !== boundary.right.pmStart && selection.from !== boundary.left.pmEnd)
284873
+ return null;
284874
+ return {
284875
+ from: boundary.left.pmStart,
284876
+ to: boundary.left.pmEnd
284877
+ };
284878
+ }, mixedBidiBackspace = () => ({ state, view, tr, dispatch }) => {
284879
+ const range = resolveMixedBidiBackspaceRange({
284880
+ state,
284881
+ view
284882
+ });
284883
+ if (!range)
284884
+ return false;
284885
+ if (dispatch) {
284886
+ tr.delete(range.from, range.to);
284887
+ tr.scrollIntoView();
284888
+ }
284889
+ return true;
284890
+ }, MixedBidiBackspace, createPermissionBlockMarkerNode = ({ name, attributes }) => Node$13.create({
284672
284891
  name,
284673
284892
  group: "block",
284674
284893
  inline: false,
@@ -284864,6 +285083,7 @@ var Node$13 = class Node$14 {
284864
285083
  Image,
284865
285084
  NodeResizer,
284866
285085
  CustomSelection,
285086
+ MixedBidiBackspace,
284867
285087
  MathInline,
284868
285088
  MathBlock,
284869
285089
  PassthroughInline,
@@ -284963,6 +285183,7 @@ var Node$13 = class Node$14 {
284963
285183
  PermissionRanges,
284964
285184
  Protection,
284965
285185
  VerticalNavigation,
285186
+ MixedBidiBackspace,
284966
285187
  MathInline,
284967
285188
  MathBlock,
284968
285189
  PassthroughInline,
@@ -286489,6 +286710,7 @@ var Node$13 = class Node$14 {
286489
286710
  () => commands$1.backspaceAtomBefore(),
286490
286711
  () => commands$1.backspaceNextToRun(),
286491
286712
  () => commands$1.backspaceAcrossRuns(),
286713
+ () => commands$1.mixedBidiBackspace?.() ?? false,
286492
286714
  () => commands$1.deleteSelection(),
286493
286715
  () => commands$1.removeNumberingProperties(),
286494
286716
  () => commands$1.joinBackward(),
@@ -291957,7 +292179,27 @@ menclose::after {
291957
292179
  }
291958
292180
  element3.style.textAlign = resolveTextAlign(attrs?.alignment, rtl);
291959
292181
  return rtl;
291960
- }, shouldUseSegmentPositioning = (hasExplicitPositioning, hasSegments, isRtl) => hasExplicitPositioning && hasSegments && !isRtl, MATHML_NS$19 = "http://www.w3.org/1998/Math/MathML", OPERATOR_CHARS, STY_TO_VARIANT, SCR_TO_VARIANT, convertMathRun = (node3, doc$12) => {
292182
+ }, shouldUseSegmentPositioning = (hasExplicitPositioning, hasSegments, isRtl) => hasExplicitPositioning && hasSegments && !isRtl, RTL_DATE_LIKE_TOKEN_RE, STRONG_RTL_CHAR_RE, LATIN_DIGIT_NEUTRAL_ONLY_RE, RLM = "‏", normalizeRtlDateTokenForWordParity = (text5) => {
292183
+ if (!RTL_DATE_LIKE_TOKEN_RE.test(text5))
292184
+ return text5;
292185
+ return text5.replace(/[./-]/g, (separator) => `${RLM}${separator}${RLM}`);
292186
+ }, resolveRunDirectionAttribute = (opts) => {
292187
+ if (opts.isRtlTagged) {
292188
+ const sample = (opts.runText ?? opts.effectiveText).trim();
292189
+ if (!sample)
292190
+ return "rtl";
292191
+ if (RTL_DATE_LIKE_TOKEN_RE.test(sample))
292192
+ return "rtl";
292193
+ if (STRONG_RTL_CHAR_RE.test(sample))
292194
+ return "rtl";
292195
+ if (LATIN_DIGIT_NEUTRAL_ONLY_RE.test(sample))
292196
+ return null;
292197
+ return "rtl";
292198
+ }
292199
+ if (typeof opts.runText === "string" && RTL_DATE_LIKE_TOKEN_RE.test(opts.runText))
292200
+ return "ltr";
292201
+ return null;
292202
+ }, MATHML_NS$19 = "http://www.w3.org/1998/Math/MathML", OPERATOR_CHARS, STY_TO_VARIANT, SCR_TO_VARIANT, convertMathRun = (node3, doc$12) => {
291961
292203
  const text5 = extractText(node3);
291962
292204
  if (!text5)
291963
292205
  return null;
@@ -292747,10 +292989,6 @@ menclose::after {
292747
292989
  if (runToken === "totalPageCount")
292748
292990
  return context.totalPages ? String(context.totalPages) : run2.text ?? "";
292749
292991
  return run2.text ?? "";
292750
- }, RTL_DATE_LIKE_TOKEN_RE, RLM = "‏", normalizeRtlDateTokenForWordParity = (text5) => {
292751
- if (!RTL_DATE_LIKE_TOKEN_RE.test(text5))
292752
- return text5;
292753
- return text5.replace(/[./-]/g, (separator) => `${RLM}${separator}${RLM}`);
292754
292992
  }, createDomPainter = (options) => {
292755
292993
  const painter = new DomPainter(options);
292756
292994
  return {
@@ -301569,7 +301807,13 @@ menclose::after {
301569
301807
  #isCompositionKeyboardEvent(event) {
301570
301808
  return event.isComposing || event.keyCode === 229 || event.key === "Dead" || event.key === "Compose";
301571
301809
  }
301572
- }, isObject2 = (value) => typeof value === "object" && value !== null, INTERNAL_OBJECT_MIME_TYPE = "application/x-superdoc-internal-object", INTERNAL_MIME_TYPE = "application/x-field-annotation", FIELD_ANNOTATION_DATA_TYPE = "fieldAnnotation", IMAGE_EXTENSIONS, DragDropManager = class {
301810
+ }, isObject2 = (value) => typeof value === "object" && value !== null, shouldUseNativeCaretFallback = (selection, pos) => {
301811
+ if (!selection)
301812
+ return false;
301813
+ if (!selection.empty)
301814
+ return false;
301815
+ return selection.head === pos;
301816
+ }, INTERNAL_OBJECT_MIME_TYPE = "application/x-superdoc-internal-object", INTERNAL_MIME_TYPE = "application/x-field-annotation", FIELD_ANNOTATION_DATA_TYPE = "fieldAnnotation", IMAGE_EXTENSIONS, DragDropManager = class {
301573
301817
  #deps = null;
301574
301818
  #dragOverRaf = null;
301575
301819
  #pendingDragOver = null;
@@ -304109,7 +304353,7 @@ menclose::after {
304109
304353
  return;
304110
304354
  console.log(...args$1);
304111
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;
304112
- var init_src_Jjjx6UC7_es = __esm(() => {
304356
+ var init_src_DnrLgjeO_es = __esm(() => {
304113
304357
  init_rolldown_runtime_Bg48TavK_es();
304114
304358
  init_SuperConverter_CnwfJPj6_es();
304115
304359
  init_jszip_C49i9kUs_es();
@@ -304121,11 +304365,11 @@ var init_src_Jjjx6UC7_es = __esm(() => {
304121
304365
  init_unified_Dsuw2be5_es();
304122
304366
  init_remark_gfm_BhnWr3yf_es();
304123
304367
  init_remark_stringify_6MMJfY0k_es();
304124
- init_DocxZipper_Bphhij1P_es();
304125
- init__plugin_vue_export_helper_HmhZBO0u_es();
304126
- init_eventemitter3_UwU_CLPU_es();
304127
- init_errors_C_DoKMoN_es();
304128
- init_blank_docx_CDDHd6CH_es();
304368
+ init_DocxZipper_DoY5OEjc_es();
304369
+ init__plugin_vue_export_helper_5t5P5NuM_es();
304370
+ init_eventemitter3_BnGqBE_Q_es();
304371
+ init_errors_CNaD6vcg_es();
304372
+ init_blank_docx_1Y_uWgjm_es();
304129
304373
  init_yjs();
304130
304374
  init_yjs();
304131
304375
  init_vue();
@@ -322675,6 +322919,14 @@ function print() { __p += __j.call(arguments, '') }
322675
322919
  })];
322676
322920
  }
322677
322921
  });
322922
+ STRONG_RTL_CHAR_RE$1 = /[\u0590-\u08FF\p{Script=Hebrew}\p{Script=Arabic}]/u;
322923
+ STRONG_LTR_CHAR_RE = /[A-Za-z\u00C0-\u024F]/;
322924
+ MixedBidiBackspace = Extension.create({
322925
+ name: "mixedBidiBackspace",
322926
+ addCommands() {
322927
+ return { mixedBidiBackspace };
322928
+ }
322929
+ });
322678
322930
  PermStart = Node$13.create({
322679
322931
  name: "permStart",
322680
322932
  group: "inline",
@@ -329940,9 +330192,9 @@ function print() { __p += __j.call(arguments, '') }
329940
330192
  try {
329941
330193
  const [{ unified: unified$1 }, { default: rehypeParse2 }, { default: rehypeRemark2 }, { default: remarkStringify$1 }, { default: remarkGfm$1 }] = await Promise.all([
329942
330194
  Promise.resolve().then(() => (init_unified_vFnLRfAM_es(), exports_unified_vFnLRfAM_es)),
329943
- Promise.resolve().then(() => (init_rehype_parse_DyKLXYD2_es(), exports_rehype_parse_DyKLXYD2_es)),
329944
- Promise.resolve().then(() => (init_rehype_remark_DYihe9nj_es(), exports_rehype_remark_DYihe9nj_es)),
329945
- Promise.resolve().then(() => (init_remark_stringify_Cb9EtkyK_es(), exports_remark_stringify_Cb9EtkyK_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
+ Promise.resolve().then(() => (init_remark_stringify_B_orWEvD_es(), exports_remark_stringify_B_orWEvD_es)),
329946
330198
  Promise.resolve().then(() => (init_remark_gfm_eZN6yzWQ_es(), exports_remark_gfm_eZN6yzWQ_es))
329947
330199
  ]);
329948
330200
  const html3 = this.getHTML();
@@ -330779,6 +331031,9 @@ function print() { __p += __j.call(arguments, '') }
330779
331031
  "wave",
330780
331032
  "doubleWave"
330781
331033
  ]);
331034
+ RTL_DATE_LIKE_TOKEN_RE = /^-?\d+(?:[./-]\d+)+$/;
331035
+ STRONG_RTL_CHAR_RE = /[\u0590-\u08FF\p{Script=Hebrew}\p{Script=Arabic}]/u;
331036
+ LATIN_DIGIT_NEUTRAL_ONLY_RE = /^[\s0-9A-Za-z./\-_:,+()]+$/;
330782
331037
  OPERATOR_CHARS = new Set([
330783
331038
  "+",
330784
331039
  "-",
@@ -333797,10 +334052,13 @@ function print() { __p += __j.call(arguments, '') }
333797
334052
  this.pendingTooltips.set(elem, linkData.tooltip);
333798
334053
  }
333799
334054
  applyRunStyles(elem, run2, isActiveLink);
333800
- if (textRun.bidi?.rtl === true)
333801
- elem.setAttribute("dir", "rtl");
333802
- else if (typeof textRun.text === "string" && RTL_DATE_LIKE_TOKEN_RE.test(textRun.text))
333803
- elem.setAttribute("dir", "ltr");
334055
+ const dirAttr = resolveRunDirectionAttribute({
334056
+ runText: textRun.text,
334057
+ effectiveText,
334058
+ isRtlTagged: textRun.bidi?.rtl === true
334059
+ });
334060
+ if (dirAttr)
334061
+ elem.setAttribute("dir", dirAttr);
333804
334062
  const commentAnnotations = textRun.comments;
333805
334063
  if (!!commentAnnotations?.length) {
333806
334064
  elem.dataset.commentIds = commentAnnotations.map((c) => c.commentId).join(",");
@@ -334916,7 +335174,6 @@ function print() { __p += __j.call(arguments, '') }
334916
335174
  "path(",
334917
335175
  "rect("
334918
335176
  ];
334919
- RTL_DATE_LIKE_TOKEN_RE = /^-?\d+(?:[./-]\d+)+$/;
334920
335177
  CLIP_PATH_PREFIXES = [
334921
335178
  "inset(",
334922
335179
  "polygon(",
@@ -341842,7 +342099,8 @@ function print() { __p += __j.call(arguments, '') }
341842
342099
  }, pos, includeDomFallback);
341843
342100
  }
341844
342101
  #computeCaretLayoutRect(pos) {
341845
- const geometry = this.#computeCaretLayoutRectGeometry(pos, true);
342102
+ const useNativeFallback = shouldUseNativeCaretFallback(this.editor?.state?.selection, pos);
342103
+ const geometry = this.#computeCaretLayoutRectGeometry(pos, useNativeFallback);
341846
342104
  let dom = null;
341847
342105
  try {
341848
342106
  dom = this.#computeDomCaretPageLocal(pos);
@@ -342268,9 +342526,9 @@ function print() { __p += __j.call(arguments, '') }
342268
342526
  ];
342269
342527
  });
342270
342528
 
342271
- // ../../packages/superdoc/dist/chunks/create-super-doc-ui-CkaOaJa5.es.js
342529
+ // ../../packages/superdoc/dist/chunks/create-super-doc-ui-BgATtiYQ.es.js
342272
342530
  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;
342273
- var init_create_super_doc_ui_CkaOaJa5_es = __esm(() => {
342531
+ var init_create_super_doc_ui_BgATtiYQ_es = __esm(() => {
342274
342532
  init_SuperConverter_CnwfJPj6_es();
342275
342533
  init_create_headless_toolbar_Btizo_Im_es();
342276
342534
  MOD_ALIASES = new Set([
@@ -342301,12 +342559,12 @@ var init_create_super_doc_ui_CkaOaJa5_es = __esm(() => {
342301
342559
  EMPTY_ACTIVE_IDS = Object.freeze([]);
342302
342560
  });
342303
342561
 
342304
- // ../../packages/superdoc/dist/chunks/ui-CGB3qmy3.es.js
342305
- var init_ui_CGB3qmy3_es = () => {};
342562
+ // ../../packages/superdoc/dist/chunks/ui-C5PAS9hY.es.js
342563
+ var init_ui_C5PAS9hY_es = () => {};
342306
342564
 
342307
- // ../../packages/superdoc/dist/chunks/zipper-BxRAi0-5.es.js
342565
+ // ../../packages/superdoc/dist/chunks/zipper-yaJVJ4z9.es.js
342308
342566
  var import_jszip_min2;
342309
- var init_zipper_BxRAi0_5_es = __esm(() => {
342567
+ var init_zipper_yaJVJ4z9_es = __esm(() => {
342310
342568
  init_rolldown_runtime_Bg48TavK_es();
342311
342569
  init_jszip_C49i9kUs_es();
342312
342570
  import_jszip_min2 = /* @__PURE__ */ __toESM2(require_jszip_min(), 1);
@@ -342314,7 +342572,7 @@ var init_zipper_BxRAi0_5_es = __esm(() => {
342314
342572
 
342315
342573
  // ../../packages/superdoc/dist/super-editor.es.js
342316
342574
  var init_super_editor_es = __esm(() => {
342317
- init_src_Jjjx6UC7_es();
342575
+ init_src_DnrLgjeO_es();
342318
342576
  init_SuperConverter_CnwfJPj6_es();
342319
342577
  init_jszip_C49i9kUs_es();
342320
342578
  init_xml_js_CqGKpaft_es();
@@ -342322,12 +342580,12 @@ var init_super_editor_es = __esm(() => {
342322
342580
  init_constants_DrU4EASo_es();
342323
342581
  init_dist_B8HfvhaK_es();
342324
342582
  init_unified_Dsuw2be5_es();
342325
- init_DocxZipper_Bphhij1P_es();
342326
- init_create_super_doc_ui_CkaOaJa5_es();
342327
- init_ui_CGB3qmy3_es();
342328
- init_eventemitter3_UwU_CLPU_es();
342329
- init_errors_C_DoKMoN_es();
342330
- init_zipper_BxRAi0_5_es();
342583
+ init_DocxZipper_DoY5OEjc_es();
342584
+ init_create_super_doc_ui_BgATtiYQ_es();
342585
+ init_ui_C5PAS9hY_es();
342586
+ init_eventemitter3_BnGqBE_Q_es();
342587
+ init_errors_CNaD6vcg_es();
342588
+ init_zipper_yaJVJ4z9_es();
342331
342589
  });
342332
342590
 
342333
342591
  // ../../node_modules/.pnpm/happy-dom@20.4.0/node_modules/happy-dom/lib/PropertySymbol.js
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc-dev/cli",
3
- "version": "0.11.0-next.1",
3
+ "version": "0.11.0-next.10",
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": "1.33.1",
28
+ "@superdoc/pm-adapter": "0.0.0",
29
29
  "@superdoc/super-editor": "0.0.1",
30
- "@superdoc/pm-adapter": "0.0.0"
30
+ "superdoc": "1.33.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.1",
38
- "@superdoc-dev/cli-darwin-x64": "0.11.0-next.1",
39
- "@superdoc-dev/cli-linux-x64": "0.11.0-next.1",
40
- "@superdoc-dev/cli-linux-arm64": "0.11.0-next.1",
41
- "@superdoc-dev/cli-windows-x64": "0.11.0-next.1"
37
+ "@superdoc-dev/cli-darwin-arm64": "0.11.0-next.10",
38
+ "@superdoc-dev/cli-darwin-x64": "0.11.0-next.10",
39
+ "@superdoc-dev/cli-linux-x64": "0.11.0-next.10",
40
+ "@superdoc-dev/cli-linux-arm64": "0.11.0-next.10",
41
+ "@superdoc-dev/cli-windows-x64": "0.11.0-next.10"
42
42
  },
43
43
  "scripts": {
44
44
  "predev": "node scripts/ensure-superdoc-build.js",