@harbour-enterprises/superdoc 1.0.0-beta.91 → 1.0.0-beta.92

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 (27) hide show
  1. package/dist/chunks/{PdfViewer-D7lP-5Q1.cjs → PdfViewer-BYKB8fT_.cjs} +1 -1
  2. package/dist/chunks/{PdfViewer-SGaot_Xd.es.js → PdfViewer-CrMwuKcn.es.js} +1 -1
  3. package/dist/chunks/{index-BGhI0Tn-.cjs → index-BZloH4nq.cjs} +3 -3
  4. package/dist/chunks/{index-DyRYxNDJ.es.js → index-CUUqzJ4M.es.js} +3 -3
  5. package/dist/chunks/{index-CJTzjw3v-BbD6ZDSJ.es.js → index-CqnVFwjL-DJT5AqWq.es.js} +1 -1
  6. package/dist/chunks/{index-CJTzjw3v-BQGgIJSs.cjs → index-CqnVFwjL-zbanjw1O.cjs} +1 -1
  7. package/dist/chunks/{super-editor.es-CTUuTH0r.es.js → super-editor.es-ALp2ApyE.es.js} +18 -11
  8. package/dist/chunks/{super-editor.es-BA4fESs2.cjs → super-editor.es-DvpDTsC4.cjs} +18 -11
  9. package/dist/super-editor/ai-writer.es.js +2 -2
  10. package/dist/super-editor/chunks/{converter-O4-ONmMv.js → converter-CpOA_SSA.js} +1 -1
  11. package/dist/super-editor/chunks/{docx-zipper-CiUku8wa.js → docx-zipper-zilXqAq6.js} +1 -1
  12. package/dist/super-editor/chunks/{editor-Aj9ko-SB.js → editor-DvF9Gp0h.js} +19 -12
  13. package/dist/super-editor/chunks/{index-CJTzjw3v.js → index-CqnVFwjL.js} +1 -1
  14. package/dist/super-editor/chunks/{toolbar-D0AIe1Gv.js → toolbar-BVOTlKFf.js} +2 -2
  15. package/dist/super-editor/converter.es.js +1 -1
  16. package/dist/super-editor/docx-zipper.es.js +2 -2
  17. package/dist/super-editor/editor.es.js +3 -3
  18. package/dist/super-editor/file-zipper.es.js +1 -1
  19. package/dist/super-editor/super-editor.es.js +6 -6
  20. package/dist/super-editor/toolbar.es.js +2 -2
  21. package/dist/super-editor.cjs +1 -1
  22. package/dist/super-editor.es.js +1 -1
  23. package/dist/superdoc.cjs +2 -2
  24. package/dist/superdoc.es.js +2 -2
  25. package/dist/superdoc.umd.js +20 -13
  26. package/dist/superdoc.umd.js.map +1 -1
  27. package/package.json +1 -1
@@ -42398,7 +42398,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
42398
42398
  static getStoredSuperdocVersion(docx) {
42399
42399
  return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
42400
42400
  }
42401
- static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "1.0.0-beta.91") {
42401
+ static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "1.0.0-beta.92") {
42402
42402
  return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
42403
42403
  }
42404
42404
  /**
@@ -67461,7 +67461,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
67461
67461
  const shouldSkipNodeView = (editor) => {
67462
67462
  return isHeadless(editor);
67463
67463
  };
67464
- const summaryVersion = "1.0.0-beta.91";
67464
+ const summaryVersion = "1.0.0-beta.92";
67465
67465
  const nodeKeys = ["group", "content", "marks", "inline", "atom", "defining", "code", "tableRole", "summary"];
67466
67466
  const markKeys = ["group", "inclusive", "excludes", "spanning", "code"];
67467
67467
  function mapAttributes(attrs) {
@@ -68250,7 +68250,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
68250
68250
  { default: remarkStringify2 },
68251
68251
  { default: remarkGfm2 }
68252
68252
  ] = await Promise.all([
68253
- Promise.resolve().then(() => indexCJTzjw3v),
68253
+ Promise.resolve().then(() => indexCqnVFwjL),
68254
68254
  Promise.resolve().then(() => indexDRCvimau),
68255
68255
  Promise.resolve().then(() => indexC_x_N6Uh),
68256
68256
  Promise.resolve().then(() => indexD_sWOSiG),
@@ -68455,7 +68455,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
68455
68455
  * Process collaboration migrations
68456
68456
  */
68457
68457
  processCollaborationMigrations() {
68458
- console.debug("[checkVersionMigrations] Current editor version", "1.0.0-beta.91");
68458
+ console.debug("[checkVersionMigrations] Current editor version", "1.0.0-beta.92");
68459
68459
  if (!this.options.ydoc) return;
68460
68460
  const metaMap = this.options.ydoc.getMap("meta");
68461
68461
  let docVersion = metaMap.get("version");
@@ -76197,16 +76197,20 @@ Please report this to https://github.com/markedjs/marked.`, e) {
76197
76197
  paragraphAttrs.spacing = spacing;
76198
76198
  }
76199
76199
  if (paragraphAttrs?.numberingProperties && paragraphAttrs?.wordLayout) {
76200
+ const numberingProps = paragraphAttrs.numberingProperties;
76201
+ const resolvedMarkerRpr = numberingProps.resolvedMarkerRpr;
76202
+ const hasExplicitMarkerFont = resolvedMarkerRpr?.fontFamily != null;
76203
+ const hasExplicitMarkerSize = resolvedMarkerRpr?.fontSize != null;
76200
76204
  const firstRunFont = extractFirstTextRunFont(para);
76201
76205
  if (firstRunFont) {
76202
76206
  const wordLayout = paragraphAttrs.wordLayout;
76203
76207
  const marker = wordLayout.marker;
76204
76208
  if (marker?.run) {
76205
76209
  const markerRun = marker.run;
76206
- if (firstRunFont.fontSizePx != null && Number.isFinite(firstRunFont.fontSizePx)) {
76210
+ if (!hasExplicitMarkerSize && firstRunFont.fontSizePx != null && Number.isFinite(firstRunFont.fontSizePx)) {
76207
76211
  markerRun.fontSize = firstRunFont.fontSizePx;
76208
76212
  }
76209
- if (firstRunFont.fontFamily) {
76213
+ if (!hasExplicitMarkerFont && firstRunFont.fontFamily) {
76210
76214
  markerRun.fontFamily = firstRunFont.fontFamily;
76211
76215
  }
76212
76216
  }
@@ -81134,7 +81138,7 @@ ${l}
81134
81138
  markerEl.classList.add("superdoc-paragraph-marker");
81135
81139
  markerEl.textContent = markerLayout?.markerText ?? "";
81136
81140
  markerEl.style.display = "inline-block";
81137
- markerEl.style.fontFamily = markerLayout?.run?.fontFamily ?? "";
81141
+ markerEl.style.fontFamily = toCssFontFamily(markerLayout?.run?.fontFamily) ?? markerLayout?.run?.fontFamily ?? "";
81138
81142
  if (markerLayout?.run?.fontSize != null) {
81139
81143
  markerEl.style.fontSize = `${markerLayout.run.fontSize}px`;
81140
81144
  }
@@ -82273,6 +82277,9 @@ ${l}
82273
82277
  return false;
82274
82278
  }
82275
82279
  const marker = obj.marker;
82280
+ if (marker.markerText !== void 0 && typeof marker.markerText !== "string") {
82281
+ return false;
82282
+ }
82276
82283
  if (marker.markerX !== void 0 && typeof marker.markerX !== "number") {
82277
82284
  return false;
82278
82285
  }
@@ -83258,7 +83265,7 @@ ${l}
83258
83265
  markerContainer.style.left = `${markerLeftX}px`;
83259
83266
  markerContainer.style.top = "0";
83260
83267
  }
83261
- markerEl.style.fontFamily = wordLayout.marker.run.fontFamily;
83268
+ markerEl.style.fontFamily = toCssFontFamily(wordLayout.marker.run.fontFamily) ?? wordLayout.marker.run.fontFamily;
83262
83269
  markerEl.style.fontSize = `${wordLayout.marker.run.fontSize}px`;
83263
83270
  markerEl.style.fontWeight = wordLayout.marker.run.bold ? "bold" : "";
83264
83271
  markerEl.style.fontStyle = wordLayout.marker.run.italic ? "italic" : "";
@@ -83455,7 +83462,7 @@ ${l}
83455
83462
  markerEl.style.width = `${Math.max(0, fragment.markerWidth - LIST_MARKER_GAP$1)}px`;
83456
83463
  markerEl.style.paddingRight = `${LIST_MARKER_GAP$1}px`;
83457
83464
  markerEl.style.textAlign = marker.justification ?? "left";
83458
- markerEl.style.fontFamily = marker.run.fontFamily;
83465
+ markerEl.style.fontFamily = toCssFontFamily(marker.run.fontFamily) ?? marker.run.fontFamily;
83459
83466
  markerEl.style.fontSize = `${marker.run.fontSize}px`;
83460
83467
  if (marker.run.bold) markerEl.style.fontWeight = "bold";
83461
83468
  if (marker.run.italic) markerEl.style.fontStyle = "italic";
@@ -92909,7 +92916,7 @@ ${l}
92909
92916
  let markerInfo;
92910
92917
  if (wordLayout?.marker) {
92911
92918
  const markerRun = {
92912
- fontFamily: wordLayout.marker.run.fontFamily,
92919
+ fontFamily: toCssFontFamily(wordLayout.marker.run.fontFamily) ?? wordLayout.marker.run.fontFamily,
92913
92920
  fontSize: wordLayout.marker.run.fontSize,
92914
92921
  bold: wordLayout.marker.run.bold,
92915
92922
  italic: wordLayout.marker.run.italic
@@ -93237,7 +93244,7 @@ ${l}
93237
93244
  const marker = wordLayout.marker;
93238
93245
  const markerFontRun = {
93239
93246
  text: marker.markerText,
93240
- fontFamily: marker.run.fontFamily,
93247
+ fontFamily: toCssFontFamily(marker.run.fontFamily) ?? marker.run.fontFamily,
93241
93248
  fontSize: marker.run.fontSize,
93242
93249
  bold: marker.run.bold,
93243
93250
  italic: marker.run.italic,
@@ -151610,7 +151617,7 @@ ${style2}
151610
151617
  this.config.colors = shuffleArray(this.config.colors);
151611
151618
  this.userColorMap = /* @__PURE__ */ new Map();
151612
151619
  this.colorIndex = 0;
151613
- this.version = "1.0.0-beta.91";
151620
+ this.version = "1.0.0-beta.92";
151614
151621
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
151615
151622
  this.superdocId = config2.superdocId || v4();
151616
151623
  this.colors = this.config.colors;
@@ -154082,7 +154089,7 @@ ${style2}
154082
154089
  value && typeof value === "object" && "byteLength" in value && "byteOffset" in value
154083
154090
  );
154084
154091
  }
154085
- const indexCJTzjw3v = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
154092
+ const indexCqnVFwjL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
154086
154093
  __proto__: null,
154087
154094
  unified
154088
154095
  }, Symbol.toStringTag, { value: "Module" }));