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

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-SGaot_Xd.es.js → PdfViewer-DDlUqq8s.es.js} +1 -1
  2. package/dist/chunks/{PdfViewer-D7lP-5Q1.cjs → PdfViewer-DbMCgjlc.cjs} +1 -1
  3. package/dist/chunks/{index-BGhI0Tn-.cjs → index-CIyFPdjr.cjs} +3 -3
  4. package/dist/chunks/{index-CJTzjw3v-BQGgIJSs.cjs → index-Cyp2JwAE-BDSzsvVr.cjs} +1 -1
  5. package/dist/chunks/{index-CJTzjw3v-BbD6ZDSJ.es.js → index-Cyp2JwAE-C4V2XscX.es.js} +1 -1
  6. package/dist/chunks/{index-DyRYxNDJ.es.js → index-D1G3HZnw.es.js} +3 -3
  7. package/dist/chunks/{super-editor.es-CTUuTH0r.es.js → super-editor.es-BLW0IRfr.es.js} +188 -13
  8. package/dist/chunks/{super-editor.es-BA4fESs2.cjs → super-editor.es-CZ_EMz2h.cjs} +188 -13
  9. package/dist/super-editor/ai-writer.es.js +2 -2
  10. package/dist/super-editor/chunks/{converter-O4-ONmMv.js → converter-CvPb50HR.js} +1 -1
  11. package/dist/super-editor/chunks/{docx-zipper-CiUku8wa.js → docx-zipper-BWUuyGDp.js} +1 -1
  12. package/dist/super-editor/chunks/{editor-Aj9ko-SB.js → editor-CsWOz21v.js} +189 -14
  13. package/dist/super-editor/chunks/{index-CJTzjw3v.js → index-Cyp2JwAE.js} +1 -1
  14. package/dist/super-editor/chunks/{toolbar-D0AIe1Gv.js → toolbar-DjWypz4_.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 +190 -15
  26. package/dist/superdoc.umd.js.map +1 -1
  27. package/package.json +1 -1
@@ -42397,7 +42397,7 @@ const _SuperConverter = class _SuperConverter2 {
42397
42397
  static getStoredSuperdocVersion(docx) {
42398
42398
  return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
42399
42399
  }
42400
- static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "1.0.0-beta.91") {
42400
+ static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "1.0.0-beta.93") {
42401
42401
  return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
42402
42402
  }
42403
42403
  /**
@@ -59603,7 +59603,7 @@ const isHeadless = (editor) => {
59603
59603
  const shouldSkipNodeView = (editor) => {
59604
59604
  return isHeadless(editor);
59605
59605
  };
59606
- const summaryVersion = "1.0.0-beta.91";
59606
+ const summaryVersion = "1.0.0-beta.93";
59607
59607
  const nodeKeys = ["group", "content", "marks", "inline", "atom", "defining", "code", "tableRole", "summary"];
59608
59608
  const markKeys = ["group", "inclusive", "excludes", "spanning", "code"];
59609
59609
  function mapAttributes(attrs) {
@@ -60392,7 +60392,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
60392
60392
  { default: remarkStringify },
60393
60393
  { default: remarkGfm }
60394
60394
  ] = await Promise.all([
60395
- Promise.resolve().then(() => require("./index-CJTzjw3v-BQGgIJSs.cjs")),
60395
+ Promise.resolve().then(() => require("./index-Cyp2JwAE-BDSzsvVr.cjs")),
60396
60396
  Promise.resolve().then(() => require("./index-DRCvimau-H4Ck3S9a.cjs")),
60397
60397
  Promise.resolve().then(() => require("./index-C_x_N6Uh-Db3CUJMX.cjs")),
60398
60398
  Promise.resolve().then(() => require("./index-D_sWOSiG-BtDZzJ6I.cjs")),
@@ -60597,7 +60597,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
60597
60597
  * Process collaboration migrations
60598
60598
  */
60599
60599
  processCollaborationMigrations() {
60600
- console.debug("[checkVersionMigrations] Current editor version", "1.0.0-beta.91");
60600
+ console.debug("[checkVersionMigrations] Current editor version", "1.0.0-beta.93");
60601
60601
  if (!this.options.ydoc) return;
60602
60602
  const metaMap = this.options.ydoc.getMap("meta");
60603
60603
  let docVersion = metaMap.get("version");
@@ -68339,16 +68339,20 @@ function paragraphToFlowBlocks$1(para, nextBlockId, positions, defaultFont, defa
68339
68339
  paragraphAttrs.spacing = spacing;
68340
68340
  }
68341
68341
  if (paragraphAttrs?.numberingProperties && paragraphAttrs?.wordLayout) {
68342
+ const numberingProps = paragraphAttrs.numberingProperties;
68343
+ const resolvedMarkerRpr = numberingProps.resolvedMarkerRpr;
68344
+ const hasExplicitMarkerFont = resolvedMarkerRpr?.fontFamily != null;
68345
+ const hasExplicitMarkerSize = resolvedMarkerRpr?.fontSize != null;
68342
68346
  const firstRunFont = extractFirstTextRunFont(para);
68343
68347
  if (firstRunFont) {
68344
68348
  const wordLayout = paragraphAttrs.wordLayout;
68345
68349
  const marker = wordLayout.marker;
68346
68350
  if (marker?.run) {
68347
68351
  const markerRun = marker.run;
68348
- if (firstRunFont.fontSizePx != null && Number.isFinite(firstRunFont.fontSizePx)) {
68352
+ if (!hasExplicitMarkerSize && firstRunFont.fontSizePx != null && Number.isFinite(firstRunFont.fontSizePx)) {
68349
68353
  markerRun.fontSize = firstRunFont.fontSizePx;
68350
68354
  }
68351
- if (firstRunFont.fontFamily) {
68355
+ if (!hasExplicitMarkerFont && firstRunFont.fontFamily) {
68352
68356
  markerRun.fontFamily = firstRunFont.fontFamily;
68353
68357
  }
68354
68358
  }
@@ -73276,7 +73280,7 @@ function renderListMarker(params2) {
73276
73280
  markerEl.classList.add("superdoc-paragraph-marker");
73277
73281
  markerEl.textContent = markerLayout?.markerText ?? "";
73278
73282
  markerEl.style.display = "inline-block";
73279
- markerEl.style.fontFamily = markerLayout?.run?.fontFamily ?? "";
73283
+ markerEl.style.fontFamily = toCssFontFamily(markerLayout?.run?.fontFamily) ?? markerLayout?.run?.fontFamily ?? "";
73280
73284
  if (markerLayout?.run?.fontSize != null) {
73281
73285
  markerEl.style.fontSize = `${markerLayout.run.fontSize}px`;
73282
73286
  }
@@ -74415,6 +74419,9 @@ function isMinimalWordLayout(value) {
74415
74419
  return false;
74416
74420
  }
74417
74421
  const marker = obj.marker;
74422
+ if (marker.markerText !== void 0 && typeof marker.markerText !== "string") {
74423
+ return false;
74424
+ }
74418
74425
  if (marker.markerX !== void 0 && typeof marker.markerX !== "number") {
74419
74426
  return false;
74420
74427
  }
@@ -75400,7 +75407,7 @@ const _DomPainter = class _DomPainter2 {
75400
75407
  markerContainer.style.left = `${markerLeftX}px`;
75401
75408
  markerContainer.style.top = "0";
75402
75409
  }
75403
- markerEl.style.fontFamily = wordLayout.marker.run.fontFamily;
75410
+ markerEl.style.fontFamily = toCssFontFamily(wordLayout.marker.run.fontFamily) ?? wordLayout.marker.run.fontFamily;
75404
75411
  markerEl.style.fontSize = `${wordLayout.marker.run.fontSize}px`;
75405
75412
  markerEl.style.fontWeight = wordLayout.marker.run.bold ? "bold" : "";
75406
75413
  markerEl.style.fontStyle = wordLayout.marker.run.italic ? "italic" : "";
@@ -75597,7 +75604,7 @@ const _DomPainter = class _DomPainter2 {
75597
75604
  markerEl.style.width = `${Math.max(0, fragment.markerWidth - LIST_MARKER_GAP$1)}px`;
75598
75605
  markerEl.style.paddingRight = `${LIST_MARKER_GAP$1}px`;
75599
75606
  markerEl.style.textAlign = marker.justification ?? "left";
75600
- markerEl.style.fontFamily = marker.run.fontFamily;
75607
+ markerEl.style.fontFamily = toCssFontFamily(marker.run.fontFamily) ?? marker.run.fontFamily;
75601
75608
  markerEl.style.fontSize = `${marker.run.fontSize}px`;
75602
75609
  if (marker.run.bold) markerEl.style.fontWeight = "bold";
75603
75610
  if (marker.run.italic) markerEl.style.fontStyle = "italic";
@@ -77470,7 +77477,26 @@ const deriveBlockVersion = (block) => {
77470
77477
  textRun.token ?? ""
77471
77478
  ].join(",");
77472
77479
  }).join("|");
77473
- return markerVersion ? `${markerVersion}|${runsVersion}` : runsVersion;
77480
+ const attrs = block.attrs;
77481
+ const paragraphAttrsVersion = attrs ? [
77482
+ attrs.alignment ?? "",
77483
+ attrs.spacing?.before ?? "",
77484
+ attrs.spacing?.after ?? "",
77485
+ attrs.spacing?.line ?? "",
77486
+ attrs.spacing?.lineRule ?? "",
77487
+ attrs.indent?.left ?? "",
77488
+ attrs.indent?.right ?? "",
77489
+ attrs.indent?.firstLine ?? "",
77490
+ attrs.indent?.hanging ?? "",
77491
+ attrs.borders ? JSON.stringify(attrs.borders) : "",
77492
+ attrs.shading?.fill ?? "",
77493
+ attrs.shading?.color ?? "",
77494
+ attrs.direction ?? "",
77495
+ attrs.rtl ? "1" : "",
77496
+ attrs.tabs?.length ? JSON.stringify(attrs.tabs) : ""
77497
+ ].join(":") : "";
77498
+ const parts = [markerVersion, runsVersion, paragraphAttrsVersion].filter(Boolean);
77499
+ return parts.join("|");
77474
77500
  }
77475
77501
  if (block.kind === "list") {
77476
77502
  return block.items.map((item) => `${item.id}:${item.marker.text}:${deriveBlockVersion(item.paragraph)}`).join("|");
@@ -81217,6 +81243,33 @@ const MAX_CACHE_SIZE$1 = 1e4;
81217
81243
  const BYTES_PER_ENTRY_ESTIMATE = 5e3;
81218
81244
  const NORMALIZED_WHITESPACE = /\s+/g;
81219
81245
  const normalizeText = (text) => text.replace(NORMALIZED_WHITESPACE, " ");
81246
+ const hashParagraphBorder = (border) => {
81247
+ const parts = [];
81248
+ if (border.style !== void 0) parts.push(`s:${border.style}`);
81249
+ if (border.width !== void 0) parts.push(`w:${border.width}`);
81250
+ if (border.color !== void 0) parts.push(`c:${border.color}`);
81251
+ if (border.space !== void 0) parts.push(`sp:${border.space}`);
81252
+ return parts.join(",");
81253
+ };
81254
+ const hashParagraphBorders = (borders) => {
81255
+ const parts = [];
81256
+ if (borders.top) parts.push(`t:[${hashParagraphBorder(borders.top)}]`);
81257
+ if (borders.right) parts.push(`r:[${hashParagraphBorder(borders.right)}]`);
81258
+ if (borders.bottom) parts.push(`b:[${hashParagraphBorder(borders.bottom)}]`);
81259
+ if (borders.left) parts.push(`l:[${hashParagraphBorder(borders.left)}]`);
81260
+ return parts.join(";");
81261
+ };
81262
+ const hashParagraphFrame = (frame) => {
81263
+ const parts = [];
81264
+ if (frame.wrap !== void 0) parts.push(`w:${frame.wrap}`);
81265
+ if (frame.x !== void 0) parts.push(`x:${frame.x}`);
81266
+ if (frame.y !== void 0) parts.push(`y:${frame.y}`);
81267
+ if (frame.xAlign !== void 0) parts.push(`xa:${frame.xAlign}`);
81268
+ if (frame.yAlign !== void 0) parts.push(`ya:${frame.yAlign}`);
81269
+ if (frame.hAnchor !== void 0) parts.push(`ha:${frame.hAnchor}`);
81270
+ if (frame.vAnchor !== void 0) parts.push(`va:${frame.vAnchor}`);
81271
+ return parts.join(",");
81272
+ };
81220
81273
  const hashRuns = (block) => {
81221
81274
  if (block.kind === "table") {
81222
81275
  const tableBlock = block;
@@ -81312,7 +81365,59 @@ const hashRuns = (block) => {
81312
81365
  numberingKey = `|num:${np.numId ?? ""}:${np.ilvl ?? 0}:${markerTextKey}`;
81313
81366
  }
81314
81367
  }
81315
- return `${trackedMode}:${trackedEnabled ? "on" : "off"}|${runsHash}${numberingKey}`;
81368
+ let paragraphAttrsKey = "";
81369
+ if (block.attrs) {
81370
+ const attrs = block.attrs;
81371
+ const parts = [];
81372
+ if (attrs.alignment) parts.push(`al:${attrs.alignment}`);
81373
+ if (attrs.spacing) {
81374
+ const s2 = attrs.spacing;
81375
+ if (s2.before !== void 0) parts.push(`sb:${s2.before}`);
81376
+ if (s2.after !== void 0) parts.push(`sa:${s2.after}`);
81377
+ if (s2.line !== void 0) parts.push(`sl:${s2.line}`);
81378
+ if (s2.lineRule) parts.push(`sr:${s2.lineRule}`);
81379
+ }
81380
+ if (attrs.indent) {
81381
+ const ind = attrs.indent;
81382
+ if (ind.left !== void 0) parts.push(`il:${ind.left}`);
81383
+ if (ind.right !== void 0) parts.push(`ir:${ind.right}`);
81384
+ if (ind.firstLine !== void 0) parts.push(`if:${ind.firstLine}`);
81385
+ if (ind.hanging !== void 0) parts.push(`ih:${ind.hanging}`);
81386
+ }
81387
+ if (attrs.borders) {
81388
+ parts.push(`br:${hashParagraphBorders(attrs.borders)}`);
81389
+ }
81390
+ if (attrs.shading) {
81391
+ const sh = attrs.shading;
81392
+ if (sh.fill) parts.push(`shf:${sh.fill}`);
81393
+ if (sh.color) parts.push(`shc:${sh.color}`);
81394
+ }
81395
+ if (attrs.tabs && attrs.tabs.length > 0) {
81396
+ const tabsHash = attrs.tabs.map((t) => `${t.val ?? ""}:${t.pos ?? ""}:${t.leader ?? ""}`).join(",");
81397
+ parts.push(`tb:${tabsHash}`);
81398
+ }
81399
+ if (attrs.direction) parts.push(`dir:${attrs.direction}`);
81400
+ if (attrs.rtl) parts.push("rtl");
81401
+ if (attrs.keepNext) parts.push("kn");
81402
+ if (attrs.keepLines) parts.push("kl");
81403
+ if (attrs.floatAlignment) parts.push(`fa:${attrs.floatAlignment}`);
81404
+ if (attrs.contextualSpacing) parts.push("cs");
81405
+ if (attrs.suppressFirstLineIndent) parts.push("sfi");
81406
+ if (attrs.dropCap) parts.push(`dc:${attrs.dropCap}`);
81407
+ if (attrs.dropCapDescriptor) {
81408
+ const dcd = attrs.dropCapDescriptor;
81409
+ parts.push(`dcd:${dcd.mode ?? ""}:${dcd.lines ?? ""}`);
81410
+ }
81411
+ if (attrs.frame) {
81412
+ parts.push(`fr:${hashParagraphFrame(attrs.frame)}`);
81413
+ }
81414
+ if (attrs.tabIntervalTwips !== void 0) parts.push(`ti:${attrs.tabIntervalTwips}`);
81415
+ if (attrs.decimalSeparator) parts.push(`ds:${attrs.decimalSeparator}`);
81416
+ if (parts.length > 0) {
81417
+ paragraphAttrsKey = `|pa:${parts.join(":")}`;
81418
+ }
81419
+ }
81420
+ return `${trackedMode}:${trackedEnabled ? "on" : "off"}|${runsHash}${numberingKey}${paragraphAttrsKey}`;
81316
81421
  };
81317
81422
  const createStats = () => ({
81318
81423
  hits: 0,
@@ -82197,6 +82302,75 @@ const getTrackedChangeKey = (run2) => {
82197
82302
  }
82198
82303
  return "";
82199
82304
  };
82305
+ const paragraphSpacingEqual = (a, b2) => {
82306
+ if (a === b2) return true;
82307
+ if (!a || !b2) return !a && !b2;
82308
+ return a.before === b2.before && a.after === b2.after && a.line === b2.line && a.lineRule === b2.lineRule && a.beforeAutospacing === b2.beforeAutospacing && a.afterAutospacing === b2.afterAutospacing;
82309
+ };
82310
+ const paragraphIndentEqual = (a, b2) => {
82311
+ if (a === b2) return true;
82312
+ if (!a || !b2) return !a && !b2;
82313
+ return a.left === b2.left && a.right === b2.right && a.firstLine === b2.firstLine && a.hanging === b2.hanging;
82314
+ };
82315
+ const paragraphBorderEqual = (a, b2) => {
82316
+ if (a === b2) return true;
82317
+ if (!a || !b2) return !a && !b2;
82318
+ return a.style === b2.style && a.width === b2.width && a.color === b2.color && a.space === b2.space;
82319
+ };
82320
+ const paragraphBordersEqual = (a, b2) => {
82321
+ if (a === b2) return true;
82322
+ if (!a || !b2) return !a && !b2;
82323
+ return paragraphBorderEqual(a.top, b2.top) && paragraphBorderEqual(a.right, b2.right) && paragraphBorderEqual(a.bottom, b2.bottom) && paragraphBorderEqual(a.left, b2.left);
82324
+ };
82325
+ const paragraphShadingEqual = (a, b2) => {
82326
+ if (a === b2) return true;
82327
+ if (!a || !b2) return !a && !b2;
82328
+ return a.fill === b2.fill && a.color === b2.color && a.val === b2.val && a.themeColor === b2.themeColor && a.themeFill === b2.themeFill && a.themeFillShade === b2.themeFillShade && a.themeFillTint === b2.themeFillTint && a.themeShade === b2.themeShade && a.themeTint === b2.themeTint;
82329
+ };
82330
+ const tabStopEqual = (a, b2) => {
82331
+ return a.val === b2.val && a.pos === b2.pos && a.leader === b2.leader;
82332
+ };
82333
+ const tabStopsEqual = (a, b2) => {
82334
+ if (a === b2) return true;
82335
+ if (!a || !b2) return !a && !b2;
82336
+ if (a.length !== b2.length) return false;
82337
+ for (let i = 0; i < a.length; i += 1) {
82338
+ if (!tabStopEqual(a[i], b2[i])) return false;
82339
+ }
82340
+ return true;
82341
+ };
82342
+ const paragraphFrameEqual = (a, b2) => {
82343
+ if (a === b2) return true;
82344
+ if (!a || !b2) return !a && !b2;
82345
+ return a.wrap === b2.wrap && a.x === b2.x && a.y === b2.y && a.xAlign === b2.xAlign && a.yAlign === b2.yAlign && a.hAnchor === b2.hAnchor && a.vAnchor === b2.vAnchor;
82346
+ };
82347
+ const dropCapDescriptorEqual = (a, b2) => {
82348
+ if (a === b2) return true;
82349
+ if (!a || !b2) return !a && !b2;
82350
+ if (a.mode !== b2.mode || a.lines !== b2.lines) return false;
82351
+ const runA = a.run;
82352
+ const runB = b2.run;
82353
+ if (!runA || !runB) return !runA && !runB;
82354
+ if (runA.text !== runB.text || runA.fontFamily !== runB.fontFamily || runA.fontSize !== runB.fontSize || runA.bold !== runB.bold || runA.italic !== runB.italic || runA.color !== runB.color) {
82355
+ return false;
82356
+ }
82357
+ return true;
82358
+ };
82359
+ const paragraphAttrsEqual = (a, b2) => {
82360
+ if (a === b2) return true;
82361
+ if (!a || !b2) return !a && !b2;
82362
+ if (a.alignment !== b2.alignment || a.contextualSpacing !== b2.contextualSpacing || a.suppressFirstLineIndent !== b2.suppressFirstLineIndent || a.dropCap !== b2.dropCap || a.decimalSeparator !== b2.decimalSeparator || a.tabIntervalTwips !== b2.tabIntervalTwips || a.keepNext !== b2.keepNext || a.keepLines !== b2.keepLines || a.direction !== b2.direction || a.rtl !== b2.rtl || a.floatAlignment !== b2.floatAlignment) {
82363
+ return false;
82364
+ }
82365
+ if (!paragraphSpacingEqual(a.spacing, b2.spacing)) return false;
82366
+ if (!paragraphIndentEqual(a.indent, b2.indent)) return false;
82367
+ if (!paragraphBordersEqual(a.borders, b2.borders)) return false;
82368
+ if (!paragraphShadingEqual(a.shading, b2.shading)) return false;
82369
+ if (!tabStopsEqual(a.tabs, b2.tabs)) return false;
82370
+ if (!paragraphFrameEqual(a.frame, b2.frame)) return false;
82371
+ if (!dropCapDescriptorEqual(a.dropCapDescriptor, b2.dropCapDescriptor)) return false;
82372
+ return true;
82373
+ };
82200
82374
  const paragraphBlocksEqual = (a, b2) => {
82201
82375
  const aMode = a.attrs?.trackedChangesMode ?? "review";
82202
82376
  const bMode = b2.attrs?.trackedChangesMode ?? "review";
@@ -82204,6 +82378,7 @@ const paragraphBlocksEqual = (a, b2) => {
82204
82378
  const aEnabled = resolveTrackedChangesEnabled(a.attrs, true);
82205
82379
  const bEnabled = resolveTrackedChangesEnabled(b2.attrs, true);
82206
82380
  if (aEnabled !== bEnabled) return false;
82381
+ if (!paragraphAttrsEqual(a.attrs, b2.attrs)) return false;
82207
82382
  if (a.runs.length !== b2.runs.length) return false;
82208
82383
  for (let i = 0; i < a.runs.length; i += 1) {
82209
82384
  const runA = a.runs[i];
@@ -85051,7 +85226,7 @@ async function measureParagraphBlock(block, maxWidth) {
85051
85226
  let markerInfo;
85052
85227
  if (wordLayout?.marker) {
85053
85228
  const markerRun = {
85054
- fontFamily: wordLayout.marker.run.fontFamily,
85229
+ fontFamily: toCssFontFamily(wordLayout.marker.run.fontFamily) ?? wordLayout.marker.run.fontFamily,
85055
85230
  fontSize: wordLayout.marker.run.fontSize,
85056
85231
  bold: wordLayout.marker.run.bold,
85057
85232
  italic: wordLayout.marker.run.italic
@@ -85379,7 +85554,7 @@ async function measureListBlock(block, constraints) {
85379
85554
  const marker = wordLayout.marker;
85380
85555
  const markerFontRun = {
85381
85556
  text: marker.markerText,
85382
- fontFamily: marker.run.fontFamily,
85557
+ fontFamily: toCssFontFamily(marker.run.fontFamily) ?? marker.run.fontFamily,
85383
85558
  fontSize: marker.run.fontSize,
85384
85559
  bold: marker.run.bold,
85385
85560
  italic: marker.run.italic,
@@ -1,6 +1,6 @@
1
1
  import { ref, onMounted, onUnmounted, computed, createElementBlock, openBlock, withModifiers, createElementVNode, withDirectives, unref, vModelText, createCommentVNode, nextTick } from "vue";
2
- import { T as TextSelection } from "./chunks/converter-O4-ONmMv.js";
3
- import { _ as _export_sfc } from "./chunks/editor-Aj9ko-SB.js";
2
+ import { T as TextSelection } from "./chunks/converter-CvPb50HR.js";
3
+ import { _ as _export_sfc } from "./chunks/editor-CsWOz21v.js";
4
4
  const DEFAULT_API_ENDPOINT = "https://sd-dev-express-gateway-i6xtm.ondigitalocean.app/insights";
5
5
  const SYSTEM_PROMPT = "You are an expert copywriter and you are immersed in a document editor. You are to provide document related text responses based on the user prompts. Only write what is asked for. Do not provide explanations. Try to keep placeholders as short as possible. Do not output your prompt. Your instructions are: ";
6
6
  async function baseInsightsFetch(payload, options = {}) {
@@ -42697,7 +42697,7 @@ const _SuperConverter = class _SuperConverter {
42697
42697
  static getStoredSuperdocVersion(docx) {
42698
42698
  return _SuperConverter.getStoredCustomProperty(docx, "SuperdocVersion");
42699
42699
  }
42700
- static setStoredSuperdocVersion(docx = this.convertedXml, version = "1.0.0-beta.91") {
42700
+ static setStoredSuperdocVersion(docx = this.convertedXml, version = "1.0.0-beta.93") {
42701
42701
  return _SuperConverter.setStoredCustomProperty(docx, "SuperdocVersion", version, false);
42702
42702
  }
42703
42703
  /**
@@ -1,4 +1,4 @@
1
- import { p as process$1, aJ as commonjsGlobal, B as Buffer, aK as getDefaultExportFromCjs, aL as getContentTypesFromXml, aM as xmljs } from "./converter-O4-ONmMv.js";
1
+ import { p as process$1, aJ as commonjsGlobal, B as Buffer, aK as getDefaultExportFromCjs, aL as getContentTypesFromXml, aM as xmljs } from "./converter-CvPb50HR.js";
2
2
  function commonjsRequire(path) {
3
3
  throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
4
4
  }