@harbour-enterprises/superdoc 0.30.0-next.6 → 0.30.0-next.7

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 (35) hide show
  1. package/dist/chunks/{PdfViewer-CUTMj5RE.es.js → PdfViewer-CBfKTlkO.es.js} +1 -1
  2. package/dist/chunks/{PdfViewer-Br3uLtct.cjs → PdfViewer-DAfhpENU.cjs} +1 -1
  3. package/dist/chunks/{index-BKpU3J9C.es.js → index-D11q4Kk4.es.js} +3 -3
  4. package/dist/chunks/{index-BDHxhYs7.cjs → index-D6ktUpVF.cjs} +3 -3
  5. package/dist/chunks/{index-Cl-cHAOX-B0b2FNkc.es.js → index-K8x_ZMJI-BhsVHeXy.es.js} +1 -1
  6. package/dist/chunks/{index-Cl-cHAOX-KFl7ZmMz.cjs → index-K8x_ZMJI-BrnvF8W6.cjs} +1 -1
  7. package/dist/chunks/{super-editor.es-C5HSjMYm.cjs → super-editor.es-DKjs4Vsm.cjs} +44 -20
  8. package/dist/chunks/{super-editor.es-BHj2Pdqj.es.js → super-editor.es-DgBDoeNs.es.js} +44 -20
  9. package/dist/style.css +1 -0
  10. package/dist/super-editor/ai-writer.es.js +2 -2
  11. package/dist/super-editor/chunks/{converter-B2Oi2KIq.js → converter-CV0ojpfw.js} +7 -9
  12. package/dist/super-editor/chunks/{docx-zipper-D26IydiB.js → docx-zipper-OIsx4R0Z.js} +1 -1
  13. package/dist/super-editor/chunks/{editor-Dvy9zQYS.js → editor-Dj784nAk.js} +39 -13
  14. package/dist/super-editor/chunks/{index-Cl-cHAOX.js → index-K8x_ZMJI.js} +1 -1
  15. package/dist/super-editor/chunks/{toolbar-C38kG3xU.js → toolbar-B9Usxj75.js} +2 -2
  16. package/dist/super-editor/converter.es.js +1 -1
  17. package/dist/super-editor/docx-zipper.es.js +2 -2
  18. package/dist/super-editor/editor.es.js +3 -3
  19. package/dist/super-editor/file-zipper.es.js +1 -1
  20. package/dist/super-editor/style.css +1 -0
  21. package/dist/super-editor/super-editor/src/core/helpers/list-numbering-helpers.d.ts.map +1 -1
  22. package/dist/super-editor/super-editor/src/core/helpers/orderedListUtils.d.ts.map +1 -1
  23. package/dist/super-editor/super-editor/src/extensions/paragraph/ParagraphNodeView.d.ts.map +1 -1
  24. package/dist/super-editor/super-editor/src/extensions/paragraph/numberingPlugin.d.ts.map +1 -1
  25. package/dist/super-editor/super-editor/src/extensions/tab/helpers/tabDecorations.d.ts +1 -0
  26. package/dist/super-editor/super-editor/src/extensions/tab/helpers/tabDecorations.d.ts.map +1 -1
  27. package/dist/super-editor/super-editor.es.js +6 -6
  28. package/dist/super-editor/toolbar.es.js +2 -2
  29. package/dist/super-editor.cjs +1 -1
  30. package/dist/super-editor.es.js +1 -1
  31. package/dist/superdoc.cjs +2 -2
  32. package/dist/superdoc.es.js +2 -2
  33. package/dist/superdoc.umd.js +46 -22
  34. package/dist/superdoc.umd.js.map +1 -1
  35. package/package.json +1 -1
@@ -12,8 +12,8 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
12
12
  var _Attribute_static, getGlobalAttributes_fn, getNodeAndMarksAttributes_fn, _Schema_static, createNodesSchema_fn, createMarksSchema_fn, _events, _ExtensionService_instances, setupExtensions_fn, attachEditorEvents_fn, _editor, _stateValidators, _xmlValidators, _requiredNodeTypes, _requiredMarkTypes, _SuperValidator_instances, initializeValidators_fn, collectValidatorRequirements_fn, analyzeDocument_fn, _commandService, _Editor_instances, initContainerElement_fn, init_fn, initRichText_fn, onFocus_fn, checkHeadless_fn, registerCopyHandler_fn, insertNewFileData_fn, createExtensionService_fn, createCommandService_fn, createConverter_fn, initMedia_fn, initFonts_fn, checkFonts_fn, determineUnsupportedFonts_fn, createSchema_fn, generatePmData_fn, createView_fn, onCollaborationReady_fn, initComments_fn, initPagination_fn, dispatchTransaction_fn, handleNodeSelection_fn, prepareDocumentForImport_fn, prepareDocumentForExport_fn, endCollaboration_fn, validateDocumentInit_fn, validateDocumentExport_fn, initDevTools_fn, _DocumentSectionView_instances, init_fn2, addToolTip_fn, _ParagraphNodeView_instances, updateHTMLAttributes_fn, updateListStyles_fn, initList_fn, checkIsList_fn, createMarker_fn, createSeparator_fn, calculateTabSeparatorStyle_fn, calculateMarkerStyle_fn, removeList_fn, getParagraphContext_fn, scheduleAnimation_fn, cancelScheduledAnimation_fn, _FieldAnnotationView_instances, createAnnotation_fn, _AutoPageNumberNodeView_instances, renderDom_fn, scheduleUpdateNodeStyle_fn;
13
13
  import * as Y from "yjs";
14
14
  import { UndoManager, Item as Item$1, ContentType, Text as Text$1, XmlElement, encodeStateAsUpdate } from "yjs";
15
- import { P as PluginKey, a as Plugin, M as Mapping, N as NodeSelection, S as Selection, T as TextSelection, b as Slice, D as DOMSerializer, F as Fragment, c as DOMParser$1, d as Mark$1, e as dropPoint, A as AllSelection, p as process$1, B as Buffer2, f as callOrGet, g as getExtensionConfigField, h as getMarkType, i as getMarksFromSelection, j as getNodeType, k as getSchemaTypeNameByName, l as Schema$1, m as cleanSchemaItem, n as canSplit, o as defaultBlockAt$1, q as liftTarget, r as canJoin, s as joinPoint, t as replaceStep$1, R as ReplaceAroundStep$1, u as isTextSelection, v as getMarkRange, w as isMarkActive, x as isNodeActive, y as deleteProps, z as processContent, C as htmlHandler, E as ReplaceStep, L as ListHelpers, G as updateNumberingProperties, H as changeListLevel, I as findParentNode, J as isList, K as isMacOS, O as isIOS, Q as getSchemaTypeByName, U as inputRulesPlugin, V as TrackDeleteMarkName, W as TrackInsertMarkName, X as v4, Y as TrackFormatMarkName, Z as comments_module_events, _ as findMark, $ as objectIncludes, a0 as AddMarkStep, a1 as RemoveMarkStep, a2 as twipsToLines, a3 as pixelsToTwips, a4 as helpers, a5 as posToDOMRect, a6 as CommandService, a7 as SuperConverter, a8 as createDocument, a9 as createDocFromMarkdown, aa as createDocFromHTML, ab as EditorState, ac as hasSomeParentWithClass, ad as isActive, ae as unflattenListsInHtml, af as parseSizeUnit, ag as minMax, ah as getLineHeightValueString, ai as updateDOMAttributes, aj as findChildren$5, ak as generateRandomSigned32BitIntStrId, al as kebabCase, am as twipsToPixels, an as halfPointToPixels, ao as getUnderlineCssString, ap as findParentNodeClosestToPos, aq as resolveRunProperties, ar as encodeCSSFromRPr, as as docxNumberingHelpers, at as InputRule, au as resolveParagraphProperties, av as eighthPointsToPixels, aw as linesToTwips, ax as PIXELS_PER_INCH, ay as SelectionRange, az as Transform, aA as isInTable$1, aB as generateDocxRandomId, aC as insertNewRelationship, aD as inchesToPixels } from "./converter-B2Oi2KIq.js";
16
- import { D as DocxZipper } from "./docx-zipper-D26IydiB.js";
15
+ import { P as PluginKey, a as Plugin, M as Mapping, N as NodeSelection, S as Selection, T as TextSelection, b as Slice, D as DOMSerializer, F as Fragment, c as DOMParser$1, d as Mark$1, e as dropPoint, A as AllSelection, p as process$1, B as Buffer2, f as callOrGet, g as getExtensionConfigField, h as getMarkType, i as getMarksFromSelection, j as getNodeType, k as getSchemaTypeNameByName, l as Schema$1, m as cleanSchemaItem, n as canSplit, o as defaultBlockAt$1, q as liftTarget, r as canJoin, s as joinPoint, t as replaceStep$1, R as ReplaceAroundStep$1, u as isTextSelection, v as getMarkRange, w as isMarkActive, x as isNodeActive, y as deleteProps, z as processContent, C as htmlHandler, E as ReplaceStep, L as ListHelpers, G as updateNumberingProperties, H as changeListLevel, I as findParentNode, J as isList, K as isMacOS, O as isIOS, Q as getSchemaTypeByName, U as inputRulesPlugin, V as TrackDeleteMarkName, W as TrackInsertMarkName, X as v4, Y as TrackFormatMarkName, Z as comments_module_events, _ as findMark, $ as objectIncludes, a0 as AddMarkStep, a1 as RemoveMarkStep, a2 as twipsToLines, a3 as pixelsToTwips, a4 as helpers, a5 as posToDOMRect, a6 as CommandService, a7 as SuperConverter, a8 as createDocument, a9 as createDocFromMarkdown, aa as createDocFromHTML, ab as EditorState, ac as hasSomeParentWithClass, ad as isActive, ae as unflattenListsInHtml, af as parseSizeUnit, ag as minMax, ah as getLineHeightValueString, ai as updateDOMAttributes, aj as findChildren$5, ak as generateRandomSigned32BitIntStrId, al as kebabCase, am as twipsToPixels, an as halfPointToPixels, ao as getUnderlineCssString, ap as findParentNodeClosestToPos, aq as resolveRunProperties, ar as encodeCSSFromRPr, as as docxNumberingHelpers, at as InputRule, au as resolveParagraphProperties, av as eighthPointsToPixels, aw as linesToTwips, ax as PIXELS_PER_INCH, ay as SelectionRange, az as Transform, aA as isInTable$1, aB as generateDocxRandomId, aC as insertNewRelationship, aD as inchesToPixels } from "./converter-CV0ojpfw.js";
16
+ import { D as DocxZipper } from "./docx-zipper-OIsx4R0Z.js";
17
17
  import { ref, computed, createElementBlock, openBlock, withModifiers, Fragment as Fragment$1, renderList, normalizeClass, createCommentVNode, toDisplayString, createElementVNode, createApp } from "vue";
18
18
  var GOOD_LEAF_SIZE = 200;
19
19
  var RopeSequence = function RopeSequence2() {
@@ -14202,7 +14202,7 @@ const _Editor = class _Editor extends EventEmitter {
14202
14202
  { default: remarkStringify },
14203
14203
  { default: remarkGfm }
14204
14204
  ] = await Promise.all([
14205
- import("./index-Cl-cHAOX.js"),
14205
+ import("./index-K8x_ZMJI.js"),
14206
14206
  import("./index-DRCvimau.js"),
14207
14207
  import("./index-C_x_N6Uh.js"),
14208
14208
  import("./index-D_sWOSiG.js"),
@@ -14420,7 +14420,7 @@ const _Editor = class _Editor extends EventEmitter {
14420
14420
  * @returns {Object | void} Migration results
14421
14421
  */
14422
14422
  processCollaborationMigrations() {
14423
- console.debug("[checkVersionMigrations] Current editor version", "0.30.0-next.6");
14423
+ console.debug("[checkVersionMigrations] Current editor version", "0.30.0-next.7");
14424
14424
  if (!this.options.ydoc) return;
14425
14425
  const metaMap = this.options.ydoc.getMap("meta");
14426
14426
  let docVersion = metaMap.get("version");
@@ -18761,6 +18761,9 @@ function calculateTabStyle(nodeSize2, view, pos, blockParent2, paragraphContext,
18761
18761
  if (paragraphContext.tabHeight === void 0) {
18762
18762
  paragraphContext.tabHeight = calcTabHeight(blockParent2);
18763
18763
  }
18764
+ if (paragraphContext.paragraphWidth === void 0) {
18765
+ paragraphContext.paragraphWidth = getBlockNodeWidth(view, startPos);
18766
+ }
18764
18767
  const indentWidth = paragraphContext.indentWidth;
18765
18768
  const hanging = twipsToPixels(Number(paragraphContext.indent.hanging) || 0);
18766
18769
  if (hanging > 0) {
@@ -18772,7 +18775,7 @@ function calculateTabStyle(nodeSize2, view, pos, blockParent2, paragraphContext,
18772
18775
  if (tabStops.length) {
18773
18776
  const tabStop = tabStops.find((stop) => stop.pos > currentWidth && stop.val !== "clear");
18774
18777
  if (tabStop) {
18775
- tabWidth = tabStop.pos - currentWidth;
18778
+ tabWidth = Math.min(tabStop.pos, paragraphContext.paragraphWidth) - currentWidth;
18776
18779
  let val = tabStop.val;
18777
18780
  const aliases = { left: "start", right: "end" };
18778
18781
  if (aliases[val]) val = aliases[val];
@@ -18940,6 +18943,15 @@ function getIndentWidth(view, paragraphStartPos, indentAttrs = {}, coordCache =
18940
18943
  }
18941
18944
  return calculateIndentFallback(indentAttrs);
18942
18945
  }
18946
+ function getBlockNodeWidth(view, blockStartPos) {
18947
+ const blockDom = view.nodeDOM(blockStartPos - 1);
18948
+ if (blockDom instanceof HTMLElement) {
18949
+ const styles = window.getComputedStyle(blockDom);
18950
+ const width = blockDom.clientWidth + parseFloat(styles.marginLeft || "0") + parseFloat(styles.marginRight || "0") + parseFloat(styles.borderLeftWidth || "0") + parseFloat(styles.borderRightWidth || "0") + parseFloat(styles.paddingLeft || "0") + parseFloat(styles.paddingRight || "0");
18951
+ return width;
18952
+ }
18953
+ return defaultLineLength;
18954
+ }
18943
18955
  function calculateIndentFallback(indentAttrs = {}) {
18944
18956
  if (!indentAttrs) return 0;
18945
18957
  const left2 = twipsToPixels(Number(indentAttrs.left) || 0);
@@ -19068,6 +19080,20 @@ class ParagraphNodeView {
19068
19080
  if (mutation.type === "attributes" && mutation.target === this.dom && mutation.attributeName === "style") {
19069
19081
  return true;
19070
19082
  }
19083
+ if (mutation.type === "childList") {
19084
+ if (this.marker && Array.from(mutation.removedNodes).includes(this.marker)) {
19085
+ return true;
19086
+ }
19087
+ if (this.marker && Array.from(mutation.addedNodes).includes(this.marker)) {
19088
+ return true;
19089
+ }
19090
+ if (this.separator && Array.from(mutation.removedNodes).includes(this.separator)) {
19091
+ return true;
19092
+ }
19093
+ if (this.separator && Array.from(mutation.addedNodes).includes(this.separator)) {
19094
+ return true;
19095
+ }
19096
+ }
19071
19097
  return false;
19072
19098
  }
19073
19099
  destroy() {
@@ -19113,10 +19139,10 @@ checkIsList_fn = function() {
19113
19139
  createMarker_fn = function(markerText) {
19114
19140
  if (!this.marker) {
19115
19141
  this.marker = document.createElement("span");
19142
+ this.dom.insertBefore(this.marker, this.contentDOM);
19116
19143
  }
19117
19144
  this.marker.contentEditable = "false";
19118
19145
  this.marker.className = "list-marker";
19119
- this.dom.insertBefore(this.marker, this.contentDOM);
19120
19146
  this.marker.textContent = markerText;
19121
19147
  };
19122
19148
  /**
@@ -19127,7 +19153,7 @@ createSeparator_fn = function(suffix) {
19127
19153
  if (this.separator == null || this.separator.tagName?.toLowerCase() !== "span") {
19128
19154
  this.separator?.parentNode?.removeChild(this.separator);
19129
19155
  this.separator = document.createElement("span");
19130
- this.dom.insertBefore(this.separator, this.contentDOM);
19156
+ this.marker.after(this.separator);
19131
19157
  }
19132
19158
  this.separator.className = "sd-editor-tab";
19133
19159
  this.separator.contentEditable = "false";
@@ -19135,14 +19161,14 @@ createSeparator_fn = function(suffix) {
19135
19161
  if (this.separator == null || this.separator.nodeType !== Node.TEXT_NODE) {
19136
19162
  this.separator?.parentNode?.removeChild(this.separator);
19137
19163
  this.separator = document.createTextNode(" ");
19138
- this.dom.insertBefore(this.separator, this.contentDOM);
19164
+ this.marker.after(this.separator);
19139
19165
  }
19140
19166
  this.separator.textContent = " ";
19141
19167
  } else if (suffix === "nothing") {
19142
19168
  if (this.separator == null || this.separator.nodeType !== Node.TEXT_NODE) {
19143
19169
  this.separator?.parentNode?.removeChild(this.separator);
19144
19170
  this.separator = document.createTextNode("");
19145
- this.dom.insertBefore(this.separator, this.contentDOM);
19171
+ this.marker.after(this.separator);
19146
19172
  }
19147
19173
  this.separator.textContent = "";
19148
19174
  }
@@ -19384,7 +19410,7 @@ function NumberingManager() {
19384
19410
  abstractIdMap[numId] = abstractId;
19385
19411
  const restartSetting = startsMap?.[numId]?.[level]?.restart;
19386
19412
  const startValue = startsMap?.[numId]?.[level]?.start ?? 1;
19387
- const levelData = countersMap?.[numId]?.[level] || {};
19413
+ const levelData = abstractCountersMap?.[abstractId]?.[level] || {};
19388
19414
  let previousPos = null;
19389
19415
  let previousCount = startValue - 1;
19390
19416
  if (cacheEnabled) {
@@ -19556,13 +19582,12 @@ const ordinalFormatter = (level) => {
19556
19582
  return p;
19557
19583
  };
19558
19584
  const generateFromCustom = (path, lvlText, customFormat) => {
19559
- if (customFormat !== "001, 002, 003, ...") return generateNumbering(path, lvlText, String);
19585
+ if (customFormat.match(/(?:[0]+\d,\s){3}\.{3}/) == null) return generateNumbering(path, lvlText, String);
19560
19586
  const match = customFormat.match(/(\d+)/);
19561
19587
  if (!match) throw new Error("Invalid format string: no numeric pattern found");
19562
19588
  const sample = match[1];
19563
19589
  const digitCount = sample.length;
19564
- const index2 = path.pop();
19565
- return String(index2).padStart(digitCount, "0");
19590
+ return generateNumbering(path, lvlText, (p) => String(p).padStart(digitCount, "0"));
19566
19591
  };
19567
19592
  const intToRoman = (num) => {
19568
19593
  const romanNumeralMap = [
@@ -19687,6 +19712,7 @@ function createNumberingPlugin(editor) {
19687
19712
  }
19688
19713
  let { lvlText, customFormat, listNumberingType, suffix, justification, abstractId } = definitionDetails;
19689
19714
  let markerText = "";
19715
+ listNumberingType = listNumberingType || "decimal";
19690
19716
  const count = numberingManager.calculateCounter(numId, level, pos, abstractId);
19691
19717
  numberingManager.setCounter(numId, level, pos, count, abstractId);
19692
19718
  const path = numberingManager.calculatePath(numId, level, pos);
@@ -1,4 +1,4 @@
1
- import { aF as getDefaultExportFromCjs } from "./converter-B2Oi2KIq.js";
1
+ import { aF as getDefaultExportFromCjs } from "./converter-CV0ojpfw.js";
2
2
  import { V as VFile } from "./index-CvBqQJbG.js";
3
3
  function bail(error) {
4
4
  if (error) {
@@ -1,6 +1,6 @@
1
1
  import { computed, createElementBlock, openBlock, createElementVNode, createCommentVNode, normalizeClass, normalizeStyle, ref, withKeys, unref, withModifiers, createBlock, toDisplayString, withDirectives, vModelText, nextTick, getCurrentInstance, createVNode, readonly, watch, onMounted, onBeforeUnmount, reactive, onBeforeMount, inject, onActivated, onDeactivated, createTextVNode, Fragment, Comment, defineComponent, provide, h, Teleport, toRef, renderSlot, isVNode, shallowRef, watchEffect, mergeProps, Transition, vShow, cloneVNode, Text, renderList, withCtx } from "vue";
2
- import { p as process$1 } from "./converter-B2Oi2KIq.js";
3
- import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-Dvy9zQYS.js";
2
+ import { p as process$1 } from "./converter-CV0ojpfw.js";
3
+ import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-Dj784nAk.js";
4
4
  const sanitizeNumber = (value, defaultNumber) => {
5
5
  let sanitized = value.replace(/[^0-9.]/g, "");
6
6
  sanitized = parseFloat(sanitized);
@@ -1,4 +1,4 @@
1
- import { a7 } from "./chunks/converter-B2Oi2KIq.js";
1
+ import { a7 } from "./chunks/converter-CV0ojpfw.js";
2
2
  export {
3
3
  a7 as SuperConverter
4
4
  };
@@ -1,5 +1,5 @@
1
- import "./chunks/converter-B2Oi2KIq.js";
2
- import { D } from "./chunks/docx-zipper-D26IydiB.js";
1
+ import "./chunks/converter-CV0ojpfw.js";
2
+ import { D } from "./chunks/docx-zipper-OIsx4R0Z.js";
3
3
  export {
4
4
  D as default
5
5
  };
@@ -1,6 +1,6 @@
1
- import { E } from "./chunks/editor-Dvy9zQYS.js";
2
- import "./chunks/converter-B2Oi2KIq.js";
3
- import "./chunks/docx-zipper-D26IydiB.js";
1
+ import { E } from "./chunks/editor-Dj784nAk.js";
2
+ import "./chunks/converter-CV0ojpfw.js";
3
+ import "./chunks/docx-zipper-OIsx4R0Z.js";
4
4
  export {
5
5
  E as Editor
6
6
  };
@@ -1,4 +1,4 @@
1
- import { J as JSZip } from "./chunks/docx-zipper-D26IydiB.js";
1
+ import { J as JSZip } from "./chunks/docx-zipper-OIsx4R0Z.js";
2
2
  async function createZip(blobs, fileNames) {
3
3
  const zip = new JSZip();
4
4
  blobs.forEach((blob, index) => {
@@ -458,6 +458,7 @@ a {
458
458
  }
459
459
  .super-editor a {
460
460
  color: initial;
461
+ text-decoration: auto;
461
462
  }
462
463
  /**
463
464
  * Basic ProseMirror styles.
@@ -1 +1 @@
1
- {"version":3,"file":"list-numbering-helpers.d.ts","sourceRoot":"","sources":["../../../../../src/core/helpers/list-numbering-helpers.js"],"names":[],"mappings":"AAoBO,gGATJ;IAAuB,KAAK,EAApB,MAAM;IACS,QAAQ;IACP,KAAK,GAArB,MAAM;IACU,KAAK,GAArB,MAAM;IACU,IAAI,GAApB,MAAM;IACU,GAAG,GAAnB,MAAM;IAC6B,MAAM,EAAzC,OAAO,WAAW,EAAE,MAAM;CAClC,OA+EF;AAEM,+EAYN;AAUM,+CANI,MAAM,SACN,MAAM,YACN,OAAO,mBAAmB,EAAE,QAAQ,UACpC,OAAO,WAAW,EAAE,MAAM,GACxB,MAAM,CA+BlB;AAQM,wCAJI,MAAM,cACN,MAAM,OAYhB;AASM,qCAHI,OAAO,WAAW,EAAE,MAAM,sBACxB,MAAM,CASlB;AAeM,oFAPJ;IAAuB,KAAK,EAApB,MAAM;IACS,KAAK,EAApB,MAAM;IACwC,QAAQ,GAAtD,OAAO,mBAAmB,EAAE,QAAQ;IACrB,MAAM;IACL,KAAK,GAArB,MAAM;CACd,OAwGF;AAOM,8CAHI,OAAO,WAAW,EAAE,MAAM,GACxB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE;IAAC,KAAK,EAAE,MAAM,GAAC,IAAI,CAAC;IAAC,MAAM,EAAE,MAAM,GAAC,IAAI,CAAC;IAAC,OAAO,EAAE,MAAM,GAAC,IAAI,CAAC;IAAC,MAAM,EAAE,MAAM,GAAC,IAAI,CAAC;IAAC,iBAAiB,EAAE,MAAM,GAAC,IAAI,CAAC;IAAC,YAAY,EAAE,MAAM,GAAC,IAAI,CAAC;IAAC,QAAQ,EAAE,MAAO,IAAI,CAAC;IAAC,UAAU,EAAE,MAAM,GAAC,SAAS,CAAA;CAAC,CAAC,CAAC,CA+ChP;AAUM,8CAJI,MAAM,UACN,OAAO,WAAW,EAAE,MAAM,GACxB,IAAI,CAehB;AAYM,sEALJ;IAAuB,KAAK,EAApB,MAAM;IACS,KAAK,EAApB,MAAM;IACS,WAAW;CAClC,OAsBF;AAaM,mFANJ;IAAuB,KAAK,EAApB,MAAM;IACS,KAAK,EAApB,MAAM;IAC6B,MAAM,EAAzC,OAAO,WAAW,EAAE,MAAM;IACX,WAAW;CAClC,OAQF;AAUM,wDALJ;IAA8B,QAAQ,EAA9B,MAAM,MAAO;IACsB,MAAM,EAAzC,OAAO,WAAW,EAAE,MAAM;IACsB,EAAE,EAAlD,OAAO,mBAAmB,EAAE,WAAW;CAC/C,WAyBF;AAWM,+DANJ;IAAuB,EAAE;IACF,IAAI,EAAnB,MAAM;IACS,EAAE,EAAjB,MAAM;IACO,OAAO,EAApB,IAAI;CACZ,GAAU,IAAI,CAIhB;;;;;;;;;;;;;;;;;mCAtdkD,uBAAuB;+BAAvB,uBAAuB"}
1
+ {"version":3,"file":"list-numbering-helpers.d.ts","sourceRoot":"","sources":["../../../../../src/core/helpers/list-numbering-helpers.js"],"names":[],"mappings":"AAoBO,gGATJ;IAAuB,KAAK,EAApB,MAAM;IACS,QAAQ;IACP,KAAK,GAArB,MAAM;IACU,KAAK,GAArB,MAAM;IACU,IAAI,GAApB,MAAM;IACU,GAAG,GAAnB,MAAM;IAC6B,MAAM,EAAzC,OAAO,WAAW,EAAE,MAAM;CAClC,OA+EF;AAEM,+EAYN;AAUM,+CANI,MAAM,SACN,MAAM,YACN,OAAO,mBAAmB,EAAE,QAAQ,UACpC,OAAO,WAAW,EAAE,MAAM,GACxB,MAAM,CA+BlB;AAQM,wCAJI,MAAM,cACN,MAAM,OAYhB;AASM,qCAHI,OAAO,WAAW,EAAE,MAAM,sBACxB,MAAM,CASlB;AAeM,oFAPJ;IAAuB,KAAK,EAApB,MAAM;IACS,KAAK,EAApB,MAAM;IACwC,QAAQ,GAAtD,OAAO,mBAAmB,EAAE,QAAQ;IACrB,MAAM;IACL,KAAK,GAArB,MAAM;CACd,OA6GF;AAOM,8CAHI,OAAO,WAAW,EAAE,MAAM,GACxB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE;IAAC,KAAK,EAAE,MAAM,GAAC,IAAI,CAAC;IAAC,MAAM,EAAE,MAAM,GAAC,IAAI,CAAC;IAAC,OAAO,EAAE,MAAM,GAAC,IAAI,CAAC;IAAC,MAAM,EAAE,MAAM,GAAC,IAAI,CAAC;IAAC,iBAAiB,EAAE,MAAM,GAAC,IAAI,CAAC;IAAC,YAAY,EAAE,MAAM,GAAC,IAAI,CAAC;IAAC,QAAQ,EAAE,MAAO,IAAI,CAAC;IAAC,UAAU,EAAE,MAAM,GAAC,SAAS,CAAA;CAAC,CAAC,CAAC,CA+ChP;AAUM,8CAJI,MAAM,UACN,OAAO,WAAW,EAAE,MAAM,GACxB,IAAI,CAehB;AAYM,sEALJ;IAAuB,KAAK,EAApB,MAAM;IACS,KAAK,EAApB,MAAM;IACS,WAAW;CAClC,OAsBF;AAaM,mFANJ;IAAuB,KAAK,EAApB,MAAM;IACS,KAAK,EAApB,MAAM;IAC6B,MAAM,EAAzC,OAAO,WAAW,EAAE,MAAM;IACX,WAAW;CAClC,OAQF;AAUM,wDALJ;IAA8B,QAAQ,EAA9B,MAAM,MAAO;IACsB,MAAM,EAAzC,OAAO,WAAW,EAAE,MAAM;IACsB,EAAE,EAAlD,OAAO,mBAAmB,EAAE,WAAW;CAC/C,WAyBF;AAWM,+DANJ;IAAuB,EAAE;IACF,IAAI,EAAnB,MAAM;IACS,EAAE,EAAjB,MAAM;IACO,OAAO,EAApB,IAAI;CACZ,GAAU,IAAI,CAIhB;;;;;;;;;;;;;;;;;mCA3dkD,uBAAuB;+BAAvB,uBAAuB"}
@@ -1 +1 @@
1
- {"version":3,"file":"orderedListUtils.d.ts","sourceRoot":"","sources":["../../../../../src/core/helpers/orderedListUtils.js"],"names":[],"mappings":"AAAO;;;;;QAGN;AA0GM,2CAHI,MAAM,GACJ,MAAM,CAqClB"}
1
+ {"version":3,"file":"orderedListUtils.d.ts","sourceRoot":"","sources":["../../../../../src/core/helpers/orderedListUtils.js"],"names":[],"mappings":"AAAO;;;;;QAGN;AAyGM,2CAHI,MAAM,GACJ,MAAM,CAqClB"}
@@ -1 +1 @@
1
- {"version":3,"file":"ParagraphNodeView.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/paragraph/ParagraphNodeView.js"],"names":[],"mappings":"AAMA;;;;GAIG;AACH;IACE;;;;;;OAMG;IACH,kBANW,OAAO,mBAAmB,EAAE,IAAI,UAChC,OAAO,mBAAmB,EAAE,MAAM,UAClC,MAAM,MAAM,eACZ,OAAO,kBAAkB,EAAE,UAAU,EAAE,kBACvC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAuBjC;IApBC,uCAAgB;IAChB,wCAAoB;IACpB,cAPe,MAAM,CAOD;IACpB,qDAA8B;IAC9B,wCAAoC;IACpC,4BAAkC;IAElC,0BAAsC;IACtC,4BAAgD;IAclD;;;OAGG;IACH,aAHW,OAAO,mBAAmB,EAAE,IAAI,eAChC,OAAO,kBAAkB,EAAE,UAAU,EAAE,WAwBjD;IA2BD;;OAEG;IACH,yBAFW,cAAc,WAexB;IAmBG,wBAA4C;IAe1C,kCAA+C;IA2LrD,gBAEC;;CACF"}
1
+ {"version":3,"file":"ParagraphNodeView.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/paragraph/ParagraphNodeView.js"],"names":[],"mappings":"AAMA;;;;GAIG;AACH;IACE;;;;;;OAMG;IACH,kBANW,OAAO,mBAAmB,EAAE,IAAI,UAChC,OAAO,mBAAmB,EAAE,MAAM,UAClC,MAAM,MAAM,eACZ,OAAO,kBAAkB,EAAE,UAAU,EAAE,kBACvC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAuBjC;IApBC,uCAAgB;IAChB,wCAAoB;IACpB,cAPe,MAAM,CAOD;IACpB,qDAA8B;IAC9B,wCAAoC;IACpC,4BAAkC;IAElC,0BAAsC;IACtC,4BAAgD;IAclD;;;OAGG;IACH,aAHW,OAAO,mBAAmB,EAAE,IAAI,eAChC,OAAO,kBAAkB,EAAE,UAAU,EAAE,WAwBjD;IA2BD;;OAEG;IACH,yBAFW,cAAc,WA+BxB;IAmBG,wBAA4C;IAe1C,kCAA+C;IA2LrD,gBAEC;;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"numberingPlugin.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/paragraph/numberingPlugin.js"],"names":[],"mappings":"AAMA;;;;;;GAMG;AACH,8CAHW,OAAO,mBAAmB,EAAE,MAAM,GAChC,OAAO,mBAAmB,EAAE,MAAM,CA0H9C"}
1
+ {"version":3,"file":"numberingPlugin.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/paragraph/numberingPlugin.js"],"names":[],"mappings":"AAMA;;;;;;GAMG;AACH,8CAHW,OAAO,mBAAmB,EAAE,MAAM,GAChC,OAAO,mBAAmB,EAAE,MAAM,CA2H9C"}
@@ -18,6 +18,7 @@ export function findNextTabIndex(flattened: any, fromIndex: any): any;
18
18
  export function findDecimalBreakPos(flattened: any, startIndex: any, breakChar: any): any;
19
19
  export function measureRangeWidth(view: any, from: any, to: any, coordCache?: any, domPosCache?: any): number;
20
20
  export function getIndentWidth(view: any, paragraphStartPos: any, indentAttrs?: {}, coordCache?: any, domPosCache?: any): number;
21
+ export function getBlockNodeWidth(view: any, blockStartPos: any): number;
21
22
  export function calculateIndentFallback(indentAttrs?: {}): number;
22
23
  export function getLeftCoord(view: any, pos: any, coordCache?: any, domPosCache?: any): any;
23
24
  export function getCachedDomAtPos(view: any, pos: any, domPosCache?: any): any;
@@ -1 +1 @@
1
- {"version":3,"file":"tabDecorations.d.ts","sourceRoot":"","sources":["../../../../../../src/extensions/tab/helpers/tabDecorations.js"],"names":[],"mappings":"AAoCA,4JA+FC;AAED,+EAaC;AAED;;;;;;;;;EA+BC;AAED;;;EAyBC;AAED,sEAOC;AAED,0FAcC;AAED,8GAiBC;AAED,iIAUC;AAED,kEAmBC;AAED,4FA+BC;AAED,+EAYC;AAED,wDAUC;AAnVD,iCAAkC,EAAE,CAAC;AACrC,gCAAiC,GAAG,CAAC;AAE9B,qGA4BN"}
1
+ {"version":3,"file":"tabDecorations.d.ts","sourceRoot":"","sources":["../../../../../../src/extensions/tab/helpers/tabDecorations.js"],"names":[],"mappings":"AAoCA,4JAkGC;AAED,+EAaC;AAED;;;;;;;;;EA+BC;AAED;;;EAyBC;AAED,sEAOC;AAED,0FAcC;AAED,8GAiBC;AAED,iIAUC;AAED,yEAgBC;AAED,kEAmBC;AAED,4FA+BC;AAED,+EAYC;AAED,wDAUC;AAxWD,iCAAkC,EAAE,CAAC;AACrC,gCAAiC,GAAG,CAAC;AAE9B,qGA4BN"}
@@ -9,14 +9,14 @@ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read fr
9
9
  var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
10
10
  var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
11
11
  var _SuperToolbar_instances, initToolbarGroups_fn, _interceptedCommands, makeToolbarItems_fn, initDefaultFonts_fn, updateHighlightColors_fn, deactivateAll_fn, updateToolbarHistory_fn, enrichTrackedChanges_fn, runCommandWithArgumentOnly_fn;
12
- import { aF as getDefaultExportFromCjs, X as v4, T as TextSelection$1, v as getMarkRange, aI as vClickOutside, aJ as getActiveFormatting, aA as isInTable, I as findParentNode, J as isList, aK as readFromClipboard, aL as handleClipboardPaste, aM as getFileObject, aN as translator, aO as translator$1, aP as translator$2, aQ as translator$3, aR as translator$4, aS as translator$5, aT as translator$6, aU as translator$7, aV as translator$8, aW as translator$9, aX as translator$a, aY as translator$b, aZ as translator$c, a_ as translator$d, a$ as translator$e, b0 as commentRangeEndTranslator, b1 as commentRangeStartTranslator, b2 as translator$f, b3 as translator$g, b4 as translator$h, b5 as translator$i, b6 as translator$j, b7 as translator$k, b8 as translator$l, b9 as translator$m, ba as translator$n, bb as translator$o, bc as translator$p, bd as translator$q, be as translator$r, bf as translator$s, bg as translator$t, bh as translator$u, bi as translator$v, bj as translator$w, bk as translator$x, bl as translator$y, bm as translator$z, bn as translator$A, bo as translator$B, bp as translator$C, bq as translator$D, br as translator$E, bs as translator$F, bt as translator$G, bu as translator$H, bv as translator$I, bw as translator$J, bx as translator$K, by as translator$L, bz as translator$M, bA as translator$N, bB as translator$O, bC as translator$P, bD as translator$Q, bE as translator$R, bF as translator$S, bG as translator$T, bH as translator$U, bI as translator$V, bJ as translator$W, bK as translator$X, bL as translator$Y, bM as translator$Z, bN as translator$_, bO as translator$$, bP as translator$10, bQ as translator$11, bR as translator$12, bS as translator$13, bT as translator$14, bU as translator$15, bV as translator$16, bW as translator$17, bX as translator$18, bY as translator$19, bZ as translator$1a, b_ as translator$1b, b$ as translator$1c, c0 as translator$1d, c1 as translator$1e, c2 as translator$1f, c3 as translator$1g, c4 as translator$1h, c5 as translator$1i, c6 as translator$1j, P as PluginKey, a as Plugin } from "./chunks/converter-B2Oi2KIq.js";
13
- import { a7, i, a4 } from "./chunks/converter-B2Oi2KIq.js";
14
- import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as getFileOpener, d as checkAndProcessImage, r as replaceSelectionWithImagePlaceholder, e as uploadAndInsertImage, f as collectTrackedChanges, i as isTrackedChangeActionAllowed, y as yUndoPluginKey, h as undoDepth, j as redoDepth, k as collectTrackedChangesForContext, s as shouldBypassContextMenu, S as SlashMenuPluginKey, l as isHeadless, E as Editor, m as getStarterExtensions, P as Placeholder, n as getRichTextExtensions, D as DecorationSet, o as Decoration, M as Mark, p as Extension, A as Attribute, N as Node } from "./chunks/editor-Dvy9zQYS.js";
15
- import { v, C, w, T, q, x, t } from "./chunks/editor-Dvy9zQYS.js";
12
+ import { aF as getDefaultExportFromCjs, X as v4, T as TextSelection$1, v as getMarkRange, aI as vClickOutside, aJ as getActiveFormatting, aA as isInTable, I as findParentNode, J as isList, aK as readFromClipboard, aL as handleClipboardPaste, aM as getFileObject, aN as translator, aO as translator$1, aP as translator$2, aQ as translator$3, aR as translator$4, aS as translator$5, aT as translator$6, aU as translator$7, aV as translator$8, aW as translator$9, aX as translator$a, aY as translator$b, aZ as translator$c, a_ as translator$d, a$ as translator$e, b0 as commentRangeEndTranslator, b1 as commentRangeStartTranslator, b2 as translator$f, b3 as translator$g, b4 as translator$h, b5 as translator$i, b6 as translator$j, b7 as translator$k, b8 as translator$l, b9 as translator$m, ba as translator$n, bb as translator$o, bc as translator$p, bd as translator$q, be as translator$r, bf as translator$s, bg as translator$t, bh as translator$u, bi as translator$v, bj as translator$w, bk as translator$x, bl as translator$y, bm as translator$z, bn as translator$A, bo as translator$B, bp as translator$C, bq as translator$D, br as translator$E, bs as translator$F, bt as translator$G, bu as translator$H, bv as translator$I, bw as translator$J, bx as translator$K, by as translator$L, bz as translator$M, bA as translator$N, bB as translator$O, bC as translator$P, bD as translator$Q, bE as translator$R, bF as translator$S, bG as translator$T, bH as translator$U, bI as translator$V, bJ as translator$W, bK as translator$X, bL as translator$Y, bM as translator$Z, bN as translator$_, bO as translator$$, bP as translator$10, bQ as translator$11, bR as translator$12, bS as translator$13, bT as translator$14, bU as translator$15, bV as translator$16, bW as translator$17, bX as translator$18, bY as translator$19, bZ as translator$1a, b_ as translator$1b, b$ as translator$1c, c0 as translator$1d, c1 as translator$1e, c2 as translator$1f, c3 as translator$1g, c4 as translator$1h, c5 as translator$1i, c6 as translator$1j, P as PluginKey, a as Plugin } from "./chunks/converter-CV0ojpfw.js";
13
+ import { a7, i, a4 } from "./chunks/converter-CV0ojpfw.js";
14
+ import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as getFileOpener, d as checkAndProcessImage, r as replaceSelectionWithImagePlaceholder, e as uploadAndInsertImage, f as collectTrackedChanges, i as isTrackedChangeActionAllowed, y as yUndoPluginKey, h as undoDepth, j as redoDepth, k as collectTrackedChangesForContext, s as shouldBypassContextMenu, S as SlashMenuPluginKey, l as isHeadless, E as Editor, m as getStarterExtensions, P as Placeholder, n as getRichTextExtensions, D as DecorationSet, o as Decoration, M as Mark, p as Extension, A as Attribute, N as Node } from "./chunks/editor-Dj784nAk.js";
15
+ import { v, C, w, T, q, x, t } from "./chunks/editor-Dj784nAk.js";
16
16
  import { ref, onMounted, createElementBlock, openBlock, normalizeClass, unref, Fragment, renderList, createElementVNode, withModifiers, toDisplayString, createCommentVNode, normalizeStyle, computed, watch, withDirectives, withKeys, vModelText, createTextVNode, createVNode, h, createApp, markRaw, nextTick, onBeforeUnmount, defineComponent, reactive, onUnmounted, renderSlot, shallowRef, createBlock, withCtx, resolveDynamicComponent, normalizeProps, guardReactiveProps } from "vue";
17
- import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, p as plusIconSvg, a as trashIconSvg, b as borderNoneIconSvg, c as arrowsToDotIconSvg, d as arrowsLeftRightIconSvg, w as wrenchIconSvg, m as magicWandIcon, e as checkIconSvg$1, x as xMarkIconSvg, l as linkIconSvg, f as tableIconSvg, g as scissorsIconSvg, h as copyIconSvg, i as pasteIconSvg, u as useMessage, N as NSkeleton } from "./chunks/toolbar-C38kG3xU.js";
17
+ import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, p as plusIconSvg, a as trashIconSvg, b as borderNoneIconSvg, c as arrowsToDotIconSvg, d as arrowsLeftRightIconSvg, w as wrenchIconSvg, m as magicWandIcon, e as checkIconSvg$1, x as xMarkIconSvg, l as linkIconSvg, f as tableIconSvg, g as scissorsIconSvg, h as copyIconSvg, i as pasteIconSvg, u as useMessage, N as NSkeleton } from "./chunks/toolbar-B9Usxj75.js";
18
18
  import AIWriter from "./ai-writer.es.js";
19
- import { D } from "./chunks/docx-zipper-D26IydiB.js";
19
+ import { D } from "./chunks/docx-zipper-OIsx4R0Z.js";
20
20
  import { createZip } from "./file-zipper.es.js";
21
21
  var eventemitter3 = { exports: {} };
22
22
  var hasRequiredEventemitter3;
@@ -1,6 +1,6 @@
1
1
  import "vue";
2
- import { T } from "./chunks/toolbar-C38kG3xU.js";
3
- import "./chunks/editor-Dvy9zQYS.js";
2
+ import { T } from "./chunks/toolbar-B9Usxj75.js";
3
+ import "./chunks/editor-Dj784nAk.js";
4
4
  export {
5
5
  T as default
6
6
  };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const superEditor_es = require("./chunks/super-editor.es-C5HSjMYm.cjs");
3
+ const superEditor_es = require("./chunks/super-editor.es-DKjs4Vsm.cjs");
4
4
  require("./chunks/vue-Cwv-wUpm.cjs");
5
5
  exports.AIWriter = superEditor_es.AIWriter;
6
6
  exports.AnnotatorHelpers = superEditor_es.AnnotatorHelpers;
@@ -1,4 +1,4 @@
1
- import { A, a, _, C, D, E, b, S, c, d, e, f, g, T, h, i, j, k, l, m, n, o, p, r, q } from "./chunks/super-editor.es-BHj2Pdqj.es.js";
1
+ import { A, a, _, C, D, E, b, S, c, d, e, f, g, T, h, i, j, k, l, m, n, o, p, r, q } from "./chunks/super-editor.es-DgBDoeNs.es.js";
2
2
  import "./chunks/vue-CKmzTNVs.es.js";
3
3
  export {
4
4
  A as AIWriter,
package/dist/superdoc.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const superEditor_es = require("./chunks/super-editor.es-C5HSjMYm.cjs");
4
- const superdoc = require("./chunks/index-BDHxhYs7.cjs");
3
+ const superEditor_es = require("./chunks/super-editor.es-DKjs4Vsm.cjs");
4
+ const superdoc = require("./chunks/index-D6ktUpVF.cjs");
5
5
  const blankDocx = require("./chunks/blank-docx-DfW3Eeh2.cjs");
6
6
  exports.AnnotatorHelpers = superEditor_es.AnnotatorHelpers;
7
7
  exports.Editor = superEditor_es.Editor;
@@ -1,5 +1,5 @@
1
- import { a, E, b, S, d, i, j, n, r, p, q } from "./chunks/super-editor.es-BHj2Pdqj.es.js";
2
- import { D, H, P, S as S2, m, l } from "./chunks/index-BKpU3J9C.es.js";
1
+ import { a, E, b, S, d, i, j, n, r, p, q } from "./chunks/super-editor.es-DgBDoeNs.es.js";
2
+ import { D, H, P, S as S2, m, l } from "./chunks/index-D11q4Kk4.es.js";
3
3
  import { B } from "./chunks/blank-docx-ABm6XYAA.es.js";
4
4
  export {
5
5
  a as AnnotatorHelpers,
@@ -27483,7 +27483,12 @@
27483
27483
  }
27484
27484
  const findElement = (name) => listDefinition.elements?.find((item) => item.name === name);
27485
27485
  const startElement = findElement("w:start");
27486
- const numFmtElement = findElement("w:numFmt");
27486
+ let numFmtElement = findElement("w:numFmt");
27487
+ if (!numFmtElement) {
27488
+ const mcAlternate = listDefinition.elements?.find((item) => item.name === "mc:AlternateContent");
27489
+ const choice = mcAlternate?.elements?.find((el) => el.name === "mc:Choice");
27490
+ numFmtElement = choice?.elements?.find((item) => item.name === "w:numFmt");
27491
+ }
27487
27492
  const lvlTextElement = findElement("w:lvlText");
27488
27493
  const suffixElement = findElement("w:suff");
27489
27494
  const lvlJcElement = findElement("w:lvlJc");
@@ -33953,13 +33958,6 @@ Please report this to https://github.com/markedjs/marked.`, e) {
33953
33958
  importListDefs[numericKey] = value;
33954
33959
  }
33955
33960
  });
33956
- const listDefsEntries = Object.entries(importListDefs);
33957
- const foundByDurableId = listDefsEntries.filter(([, def2]) => def2.attributes?.["w16cid:durableId"] === "485517411");
33958
- if (foundByDurableId.length > 1) {
33959
- importListDefs = Object.fromEntries(
33960
- listDefsEntries.filter(([, def2]) => def2.attributes?.["w16cid:durableId"] !== "485517411")
33961
- );
33962
- }
33963
33961
  return {
33964
33962
  abstracts: abstractDefinitions,
33965
33963
  definitions: importListDefs
@@ -35267,7 +35265,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
35267
35265
  static getStoredSuperdocVersion(docx) {
35268
35266
  return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
35269
35267
  }
35270
- static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.30.0-next.6") {
35268
+ static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.30.0-next.7") {
35271
35269
  return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
35272
35270
  }
35273
35271
  /**
@@ -60330,7 +60328,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
60330
60328
  { default: remarkStringify2 },
60331
60329
  { default: remarkGfm2 }
60332
60330
  ] = await Promise.all([
60333
- Promise.resolve().then(() => indexClCHAOX),
60331
+ Promise.resolve().then(() => indexK8x_ZMJI),
60334
60332
  Promise.resolve().then(() => indexDRCvimau),
60335
60333
  Promise.resolve().then(() => indexC_x_N6Uh),
60336
60334
  Promise.resolve().then(() => indexD_sWOSiG),
@@ -60548,7 +60546,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
60548
60546
  * @returns {Object | void} Migration results
60549
60547
  */
60550
60548
  processCollaborationMigrations() {
60551
- console.debug("[checkVersionMigrations] Current editor version", "0.30.0-next.6");
60549
+ console.debug("[checkVersionMigrations] Current editor version", "0.30.0-next.7");
60552
60550
  if (!this.options.ydoc) return;
60553
60551
  const metaMap = this.options.ydoc.getMap("meta");
60554
60552
  let docVersion = metaMap.get("version");
@@ -64768,6 +64766,9 @@ Please report this to https://github.com/markedjs/marked.`, e) {
64768
64766
  if (paragraphContext.tabHeight === void 0) {
64769
64767
  paragraphContext.tabHeight = calcTabHeight(blockParent2);
64770
64768
  }
64769
+ if (paragraphContext.paragraphWidth === void 0) {
64770
+ paragraphContext.paragraphWidth = getBlockNodeWidth(view, startPos);
64771
+ }
64771
64772
  const indentWidth = paragraphContext.indentWidth;
64772
64773
  const hanging = twipsToPixels(Number(paragraphContext.indent.hanging) || 0);
64773
64774
  if (hanging > 0) {
@@ -64779,7 +64780,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
64779
64780
  if (tabStops.length) {
64780
64781
  const tabStop = tabStops.find((stop) => stop.pos > currentWidth && stop.val !== "clear");
64781
64782
  if (tabStop) {
64782
- tabWidth = tabStop.pos - currentWidth;
64783
+ tabWidth = Math.min(tabStop.pos, paragraphContext.paragraphWidth) - currentWidth;
64783
64784
  let val = tabStop.val;
64784
64785
  const aliases = { left: "start", right: "end" };
64785
64786
  if (aliases[val]) val = aliases[val];
@@ -64947,6 +64948,15 @@ Please report this to https://github.com/markedjs/marked.`, e) {
64947
64948
  }
64948
64949
  return calculateIndentFallback(indentAttrs);
64949
64950
  }
64951
+ function getBlockNodeWidth(view, blockStartPos) {
64952
+ const blockDom = view.nodeDOM(blockStartPos - 1);
64953
+ if (blockDom instanceof HTMLElement) {
64954
+ const styles = window.getComputedStyle(blockDom);
64955
+ const width = blockDom.clientWidth + parseFloat(styles.marginLeft || "0") + parseFloat(styles.marginRight || "0") + parseFloat(styles.borderLeftWidth || "0") + parseFloat(styles.borderRightWidth || "0") + parseFloat(styles.paddingLeft || "0") + parseFloat(styles.paddingRight || "0");
64956
+ return width;
64957
+ }
64958
+ return defaultLineLength;
64959
+ }
64950
64960
  function calculateIndentFallback(indentAttrs = {}) {
64951
64961
  if (!indentAttrs) return 0;
64952
64962
  const left2 = twipsToPixels(Number(indentAttrs.left) || 0);
@@ -65075,6 +65085,20 @@ Please report this to https://github.com/markedjs/marked.`, e) {
65075
65085
  if (mutation.type === "attributes" && mutation.target === this.dom && mutation.attributeName === "style") {
65076
65086
  return true;
65077
65087
  }
65088
+ if (mutation.type === "childList") {
65089
+ if (this.marker && Array.from(mutation.removedNodes).includes(this.marker)) {
65090
+ return true;
65091
+ }
65092
+ if (this.marker && Array.from(mutation.addedNodes).includes(this.marker)) {
65093
+ return true;
65094
+ }
65095
+ if (this.separator && Array.from(mutation.removedNodes).includes(this.separator)) {
65096
+ return true;
65097
+ }
65098
+ if (this.separator && Array.from(mutation.addedNodes).includes(this.separator)) {
65099
+ return true;
65100
+ }
65101
+ }
65078
65102
  return false;
65079
65103
  }
65080
65104
  destroy() {
@@ -65114,10 +65138,10 @@ Please report this to https://github.com/markedjs/marked.`, e) {
65114
65138
  createMarker_fn = function(markerText) {
65115
65139
  if (!this.marker) {
65116
65140
  this.marker = document.createElement("span");
65141
+ this.dom.insertBefore(this.marker, this.contentDOM);
65117
65142
  }
65118
65143
  this.marker.contentEditable = "false";
65119
65144
  this.marker.className = "list-marker";
65120
- this.dom.insertBefore(this.marker, this.contentDOM);
65121
65145
  this.marker.textContent = markerText;
65122
65146
  };
65123
65147
  createSeparator_fn = function(suffix2) {
@@ -65125,7 +65149,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
65125
65149
  if (this.separator == null || this.separator.tagName?.toLowerCase() !== "span") {
65126
65150
  this.separator?.parentNode?.removeChild(this.separator);
65127
65151
  this.separator = document.createElement("span");
65128
- this.dom.insertBefore(this.separator, this.contentDOM);
65152
+ this.marker.after(this.separator);
65129
65153
  }
65130
65154
  this.separator.className = "sd-editor-tab";
65131
65155
  this.separator.contentEditable = "false";
@@ -65133,14 +65157,14 @@ Please report this to https://github.com/markedjs/marked.`, e) {
65133
65157
  if (this.separator == null || this.separator.nodeType !== Node.TEXT_NODE) {
65134
65158
  this.separator?.parentNode?.removeChild(this.separator);
65135
65159
  this.separator = document.createTextNode(" ");
65136
- this.dom.insertBefore(this.separator, this.contentDOM);
65160
+ this.marker.after(this.separator);
65137
65161
  }
65138
65162
  this.separator.textContent = " ";
65139
65163
  } else if (suffix2 === "nothing") {
65140
65164
  if (this.separator == null || this.separator.nodeType !== Node.TEXT_NODE) {
65141
65165
  this.separator?.parentNode?.removeChild(this.separator);
65142
65166
  this.separator = document.createTextNode("");
65143
- this.dom.insertBefore(this.separator, this.contentDOM);
65167
+ this.marker.after(this.separator);
65144
65168
  }
65145
65169
  this.separator.textContent = "";
65146
65170
  }
@@ -65343,7 +65367,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
65343
65367
  abstractIdMap[numId] = abstractId;
65344
65368
  const restartSetting = startsMap?.[numId]?.[level]?.restart;
65345
65369
  const startValue = startsMap?.[numId]?.[level]?.start ?? 1;
65346
- const levelData = countersMap?.[numId]?.[level] || {};
65370
+ const levelData = abstractCountersMap?.[abstractId]?.[level] || {};
65347
65371
  let previousPos = null;
65348
65372
  let previousCount = startValue - 1;
65349
65373
  if (cacheEnabled) {
@@ -65515,13 +65539,12 @@ Please report this to https://github.com/markedjs/marked.`, e) {
65515
65539
  return p2;
65516
65540
  };
65517
65541
  const generateFromCustom = (path2, lvlText, customFormat) => {
65518
- if (customFormat !== "001, 002, 003, ...") return generateNumbering(path2, lvlText, String);
65542
+ if (customFormat.match(/(?:[0]+\d,\s){3}\.{3}/) == null) return generateNumbering(path2, lvlText, String);
65519
65543
  const match = customFormat.match(/(\d+)/);
65520
65544
  if (!match) throw new Error("Invalid format string: no numeric pattern found");
65521
65545
  const sample = match[1];
65522
65546
  const digitCount = sample.length;
65523
- const index2 = path2.pop();
65524
- return String(index2).padStart(digitCount, "0");
65547
+ return generateNumbering(path2, lvlText, (p2) => String(p2).padStart(digitCount, "0"));
65525
65548
  };
65526
65549
  const intToRoman = (num) => {
65527
65550
  const romanNumeralMap = [
@@ -65646,6 +65669,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
65646
65669
  }
65647
65670
  let { lvlText, customFormat, listNumberingType, suffix: suffix2, justification, abstractId } = definitionDetails;
65648
65671
  let markerText = "";
65672
+ listNumberingType = listNumberingType || "decimal";
65649
65673
  const count = numberingManager.calculateCounter(numId, level, pos, abstractId);
65650
65674
  numberingManager.setCounter(numId, level, pos, count, abstractId);
65651
65675
  const path2 = numberingManager.calculatePath(numId, level, pos);
@@ -116626,7 +116650,7 @@ ${style2}
116626
116650
  this.config.colors = shuffleArray(this.config.colors);
116627
116651
  this.userColorMap = /* @__PURE__ */ new Map();
116628
116652
  this.colorIndex = 0;
116629
- this.version = "0.30.0-next.6";
116653
+ this.version = "0.30.0-next.7";
116630
116654
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
116631
116655
  this.superdocId = config2.superdocId || v4();
116632
116656
  this.colors = this.config.colors;
@@ -119026,7 +119050,7 @@ ${style2}
119026
119050
  value && typeof value === "object" && "byteLength" in value && "byteOffset" in value
119027
119051
  );
119028
119052
  }
119029
- const indexClCHAOX = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
119053
+ const indexK8x_ZMJI = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
119030
119054
  __proto__: null,
119031
119055
  unified
119032
119056
  }, Symbol.toStringTag, { value: "Module" }));