@harbour-enterprises/superdoc 0.29.0-next.15 → 0.29.0-next.16

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 (31) hide show
  1. package/dist/chunks/{PdfViewer-B7X4xur3.cjs → PdfViewer-B14Psbm5.cjs} +1 -1
  2. package/dist/chunks/{PdfViewer-BL9hLN-A.es.js → PdfViewer-CpbPbmhH.es.js} +1 -1
  3. package/dist/chunks/{index-CCTDIDk7.es.js → index-BAB9eQRg.es.js} +3 -3
  4. package/dist/chunks/{index-x0B8ORNX--SLHZ7wS.es.js → index-BE8ctcJ1-BVHEZaEv.es.js} +1 -1
  5. package/dist/chunks/{index-x0B8ORNX-D9kjqjf9.cjs → index-BE8ctcJ1-BsFfsr_5.cjs} +1 -1
  6. package/dist/chunks/{index-CCVmXx2r.cjs → index-BRloVMt4.cjs} +3 -3
  7. package/dist/chunks/{super-editor.es-BkV-6f5K.cjs → super-editor.es-hL-1R4Qv.cjs} +13 -8
  8. package/dist/chunks/{super-editor.es-LUVoGFZl.es.js → super-editor.es-soAIWbdF.es.js} +13 -8
  9. package/dist/style.css +6 -6
  10. package/dist/super-editor/ai-writer.es.js +2 -2
  11. package/dist/super-editor/chunks/{converter-Bt0gPwYj.js → converter-Dw2FWHjz.js} +1 -1
  12. package/dist/super-editor/chunks/{docx-zipper-JVCnlDBn.js → docx-zipper-B-OgBQQi.js} +1 -1
  13. package/dist/super-editor/chunks/{editor-BF7w_sd7.js → editor-CtEAROku.js} +4 -4
  14. package/dist/super-editor/chunks/{index-x0B8ORNX.js → index-BE8ctcJ1.js} +1 -1
  15. package/dist/super-editor/chunks/{toolbar-CI9lB3KI.js → toolbar-Bya4b9Yv.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 +6 -6
  21. package/dist/super-editor/super-editor/src/components/toolbar/defaultItems.d.ts.map +1 -1
  22. package/dist/super-editor/super-editor/src/components/toolbar/super-toolbar.d.ts.map +1 -1
  23. package/dist/super-editor/super-editor.es.js +16 -11
  24. package/dist/super-editor/toolbar.es.js +2 -2
  25. package/dist/super-editor.cjs +1 -1
  26. package/dist/super-editor.es.js +1 -1
  27. package/dist/superdoc.cjs +2 -2
  28. package/dist/superdoc.es.js +2 -2
  29. package/dist/superdoc.umd.js +15 -10
  30. package/dist/superdoc.umd.js.map +1 -1
  31. package/package.json +1 -1
@@ -35782,7 +35782,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
35782
35782
  static getStoredSuperdocVersion(docx) {
35783
35783
  return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
35784
35784
  }
35785
- static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.29.0-next.15") {
35785
+ static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.29.0-next.16") {
35786
35786
  return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
35787
35787
  }
35788
35788
  /**
@@ -61712,7 +61712,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
61712
61712
  { default: remarkStringify2 },
61713
61713
  { default: remarkGfm2 }
61714
61714
  ] = await Promise.all([
61715
- Promise.resolve().then(() => indexX0B8ORNX),
61715
+ Promise.resolve().then(() => indexBE8ctcJ1),
61716
61716
  Promise.resolve().then(() => indexDRCvimau),
61717
61717
  Promise.resolve().then(() => indexC_x_N6Uh),
61718
61718
  Promise.resolve().then(() => indexD_sWOSiG),
@@ -61930,7 +61930,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
61930
61930
  * @returns {Object | void} Migration results
61931
61931
  */
61932
61932
  processCollaborationMigrations() {
61933
- console.debug("[checkVersionMigrations] Current editor version", "0.29.0-next.15");
61933
+ console.debug("[checkVersionMigrations] Current editor version", "0.29.0-next.16");
61934
61934
  if (!this.options.ydoc) return;
61935
61935
  const metaMap = this.options.ydoc.getMap("meta");
61936
61936
  let docVersion = metaMap.get("version");
@@ -96308,7 +96308,7 @@ ${style2}
96308
96308
  key: 0,
96309
96309
  class: "linked-style-buttons"
96310
96310
  };
96311
- const _hoisted_2$8$1 = ["onClick", "onKeydown"];
96311
+ const _hoisted_2$8$1 = ["onClick", "onKeydown", "aria-label"];
96312
96312
  const _sfc_main$c$1 = {
96313
96313
  __name: "LinkedStyle",
96314
96314
  props: {
@@ -96353,7 +96353,6 @@ ${style2}
96353
96353
  moveToPreviousStyle(index2);
96354
96354
  break;
96355
96355
  case "Enter":
96356
- console.log("style", style2);
96357
96356
  select2(style2);
96358
96357
  break;
96359
96358
  }
@@ -96369,6 +96368,7 @@ ${style2}
96369
96368
  class: normalizeClass(["style-item", { selected: __props.selectedOption === style2.id }]),
96370
96369
  onClick: ($event) => select2(style2),
96371
96370
  onKeydown: (event) => handleKeyDown2(event, index2, style2),
96371
+ "aria-label": `Linked style - ${style2.id}`,
96372
96372
  ref_for: true,
96373
96373
  ref_key: "styleRefs",
96374
96374
  ref: styleRefs
@@ -96384,7 +96384,7 @@ ${style2}
96384
96384
  };
96385
96385
  }
96386
96386
  };
96387
- const LinkedStyle = /* @__PURE__ */ _export_sfc$1(_sfc_main$c$1, [["__scopeId", "data-v-698bdb8e"]]);
96387
+ const LinkedStyle = /* @__PURE__ */ _export_sfc$1(_sfc_main$c$1, [["__scopeId", "data-v-9c96d4a1"]]);
96388
96388
  const _hoisted_1$a$1 = {
96389
96389
  key: 0,
96390
96390
  class: "link-title"
@@ -98104,11 +98104,15 @@ ${style2}
98104
98104
  }
98105
98105
  }
98106
98106
  ],
98107
- onActivate: () => {
98107
+ onActivate: ({ linkedStyleMark }) => {
98108
+ const styles = getQuickFormatList(superToolbar.activeEditor);
98109
+ const selectedStyle = styles?.find((style2) => style2.id === linkedStyleMark?.attrs?.styleId);
98110
+ linkedStyles.label.value = selectedStyle ? selectedStyle.definition.attrs.name : toolbarTexts2.formatText;
98108
98111
  linkedStyles.disabled.value = false;
98109
98112
  },
98110
98113
  onDeactivate: () => {
98111
98114
  linkedStyles.disabled.value = true;
98115
+ linkedStyles.label.value = toolbarTexts2.formatText;
98112
98116
  }
98113
98117
  });
98114
98118
  const renderIcon = (value, selectedValue) => {
@@ -98813,10 +98817,11 @@ ${style2}
98813
98817
  item.setDisabled(!canRejectTrackedChanges);
98814
98818
  }
98815
98819
  if (item.name.value === "linkedStyles") {
98820
+ const linkedStyleMark = marks.find((mark2) => mark2.name === "styleId");
98816
98821
  if (this.activeEditor && !getQuickFormatList(this.activeEditor).length) {
98817
98822
  return item.deactivate();
98818
98823
  } else {
98819
- return item.activate();
98824
+ return item.activate({ linkedStyleMark });
98820
98825
  }
98821
98826
  }
98822
98827
  const rawActiveMark = marks.find((mark2) => mark2.name === item.name.value);
@@ -118161,7 +118166,7 @@ ${style2}
118161
118166
  this.config.colors = shuffleArray(this.config.colors);
118162
118167
  this.userColorMap = /* @__PURE__ */ new Map();
118163
118168
  this.colorIndex = 0;
118164
- this.version = "0.29.0-next.15";
118169
+ this.version = "0.29.0-next.16";
118165
118170
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
118166
118171
  this.superdocId = config2.superdocId || v4();
118167
118172
  this.colors = this.config.colors;
@@ -120561,7 +120566,7 @@ ${style2}
120561
120566
  value && typeof value === "object" && "byteLength" in value && "byteOffset" in value
120562
120567
  );
120563
120568
  }
120564
- const indexX0B8ORNX = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
120569
+ const indexBE8ctcJ1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
120565
120570
  __proto__: null,
120566
120571
  unified
120567
120572
  }, Symbol.toStringTag, { value: "Module" }));