@harbour-enterprises/superdoc 0.6.19 → 0.6.20

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.
@@ -53363,6 +53363,9 @@ const createNodeListHandler = (nodeHandlers) => {
53363
53363
  converter?.docHiglightColors.add(hasHighlightMark.attrs.color.toUpperCase());
53364
53364
  }
53365
53365
  }
53366
+ if (consumed > 0) {
53367
+ index2 += consumed - 1;
53368
+ }
53366
53369
  if (nodes) {
53367
53370
  nodes.forEach((node2) => {
53368
53371
  if (node2?.type && !["runProperties"].includes(node2.type)) {
@@ -53582,7 +53585,7 @@ const _SuperConverter = class _SuperConverter2 {
53582
53585
  return;
53583
53586
  }
53584
53587
  }
53585
- static updateDocumentVersion(docx = this.convertedXml, version2 = "0.6.19") {
53588
+ static updateDocumentVersion(docx = this.convertedXml, version2 = "0.6.20") {
53586
53589
  const customLocation = "docProps/custom.xml";
53587
53590
  if (!docx[customLocation]) {
53588
53591
  docx[customLocation] = generateCustomXml();
@@ -53823,7 +53826,7 @@ function storeSuperdocVersion(docx) {
53823
53826
  function generateCustomXml() {
53824
53827
  return DEFAULT_CUSTOM_XML;
53825
53828
  }
53826
- function generateSuperdocVersion(version2 = "0.6.19") {
53829
+ function generateSuperdocVersion(version2 = "0.6.20") {
53827
53830
  return {
53828
53831
  type: "element",
53829
53832
  name: "property",
@@ -67648,7 +67651,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
67648
67651
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
67649
67652
  */
67650
67653
  processCollaborationMigrations() {
67651
- console.debug("[checkVersionMigrations] Current editor version", "0.6.19");
67654
+ console.debug("[checkVersionMigrations] Current editor version", "0.6.20");
67652
67655
  if (!this.options.ydoc) return;
67653
67656
  const metaMap = this.options.ydoc.getMap("meta");
67654
67657
  let docVersion = metaMap.get("version");
@@ -88010,4 +88013,4 @@ export {
88010
88013
  helpers as k,
88011
88014
  index as l
88012
88015
  };
88013
- //# sourceMappingURL=super-editor.es-DmGfaaob.js.map
88016
+ //# sourceMappingURL=super-editor.es-BP2pRc_o.js.map