@harbour-enterprises/superdoc 1.9.0-next.2 → 1.9.0-next.3

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.
@@ -1,6 +1,6 @@
1
1
  import { d as defineComponent, h, T as Transition, p as process$1, w as watchEffect, b as computed, r as ref, e as onMounted, f as onUnmounted, c as createElementBlock, o as openBlock, a as createBaseVNode, g as createCommentVNode, i as createVNode, u as unref } from "./vue-DI6_Tcq0.es.js";
2
- import { N as NBaseLoading, u as useSuperdocStore, s as storeToRefs, a as useSelection } from "./index-8bXKgm-B.es.js";
3
- import { o as derived, p as c, q as cB, r as fadeInTransition, s as cM, w as warnOnce, u as useConfig, t as useTheme, v as pxfy, x as createKey, y as useThemeClass, z as useCompitable, B as _export_sfc } from "./index-DiUW7bID.es.js";
2
+ import { N as NBaseLoading, u as useSuperdocStore, s as storeToRefs, a as useSelection } from "./index-CBIJRKOM.es.js";
3
+ import { o as derived, p as c, q as cB, r as fadeInTransition, s as cM, w as warnOnce, u as useConfig, t as useTheme, v as pxfy, x as createKey, y as useThemeClass, z as useCompitable, B as _export_sfc } from "./index-DIwuhOVn.es.js";
4
4
  function self(vars) {
5
5
  const {
6
6
  opacityDisabled,
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const vue = require("./vue-De9wkgLl.cjs");
4
- const superdoc = require("./index-BMDhz8nE.cjs");
5
- const index = require("./index-BatuLfZq.cjs");
4
+ const superdoc = require("./index-BZ_MkYMx.cjs");
5
+ const index = require("./index-C5ctDTOg.cjs");
6
6
  function self(vars) {
7
7
  const {
8
8
  opacityDisabled,
@@ -33573,7 +33573,7 @@ class SuperConverter {
33573
33573
  static getStoredSuperdocVersion(docx) {
33574
33574
  return SuperConverter.getStoredCustomProperty(docx, "SuperdocVersion");
33575
33575
  }
33576
- static setStoredSuperdocVersion(docx = this.convertedXml, version = "1.9.0-next.2") {
33576
+ static setStoredSuperdocVersion(docx = this.convertedXml, version = "1.9.0-next.3") {
33577
33577
  return SuperConverter.setStoredCustomProperty(docx, "SuperdocVersion", version, false);
33578
33578
  }
33579
33579
  /**
@@ -33574,7 +33574,7 @@ class SuperConverter {
33574
33574
  static getStoredSuperdocVersion(docx) {
33575
33575
  return SuperConverter.getStoredCustomProperty(docx, "SuperdocVersion");
33576
33576
  }
33577
- static setStoredSuperdocVersion(docx = this.convertedXml, version = "1.9.0-next.2") {
33577
+ static setStoredSuperdocVersion(docx = this.convertedXml, version = "1.9.0-next.3") {
33578
33578
  return SuperConverter.setStoredCustomProperty(docx, "SuperdocVersion", version, false);
33579
33579
  }
33580
33580
  /**
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
- const index = require("./index-BatuLfZq.cjs");
2
+ const index = require("./index-C5ctDTOg.cjs");
3
3
  const blankDocx = require("./blank-docx-DfW3Eeh2.cjs");
4
4
  require("./jszip-C8_CqJxM.cjs");
5
5
  require("./helpers-C7_u3NNJ.cjs");
6
- require("./SuperConverter-DaAlf5ZE.cjs");
6
+ require("./SuperConverter-RNn1f5gz.cjs");
7
7
  const eventemitter3 = require("./eventemitter3-BQuRcMPI.cjs");
8
8
  const vue = require("./vue-De9wkgLl.cjs");
9
9
  require("./jszip.min-BPh2MMAa.cjs");
@@ -7709,7 +7709,7 @@ const _sfc_main = {
7709
7709
  __name: "SuperDoc",
7710
7710
  emits: ["selection-update"],
7711
7711
  setup(__props, { emit: __emit }) {
7712
- const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-CLlDWxAK.cjs")));
7712
+ const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-CDknYF_v.cjs")));
7713
7713
  const superdocStore = useSuperdocStore();
7714
7714
  const commentsStore = useCommentsStore();
7715
7715
  const {
@@ -8694,7 +8694,7 @@ class SuperDoc extends eventemitter3.EventEmitter {
8694
8694
  this.config.colors = shuffleArray(this.config.colors);
8695
8695
  this.userColorMap = /* @__PURE__ */ new Map();
8696
8696
  this.colorIndex = 0;
8697
- this.version = "1.9.0-next.2";
8697
+ this.version = "1.9.0-next.3";
8698
8698
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
8699
8699
  this.superdocId = config.superdocId || uuid.v4();
8700
8700
  this.colors = this.config.colors;
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const superEditor_converter = require("./SuperConverter-DaAlf5ZE.cjs");
2
+ const superEditor_converter = require("./SuperConverter-RNn1f5gz.cjs");
3
3
  const jszip = require("./jszip-C8_CqJxM.cjs");
4
4
  const helpers$1 = require("./helpers-C7_u3NNJ.cjs");
5
5
  const vue = require("./vue-De9wkgLl.cjs");
@@ -15790,7 +15790,7 @@ const canUseDOM = () => {
15790
15790
  return false;
15791
15791
  }
15792
15792
  };
15793
- const summaryVersion = "1.9.0-next.2";
15793
+ const summaryVersion = "1.9.0-next.3";
15794
15794
  const nodeKeys = ["group", "content", "marks", "inline", "atom", "defining", "code", "tableRole", "summary"];
15795
15795
  const markKeys = ["group", "inclusive", "excludes", "spanning", "code"];
15796
15796
  function mapAttributes(attrs) {
@@ -18513,7 +18513,7 @@ class Editor extends EventEmitter {
18513
18513
  * Process collaboration migrations
18514
18514
  */
18515
18515
  processCollaborationMigrations() {
18516
- console.debug("[checkVersionMigrations] Current editor version", "1.9.0-next.2");
18516
+ console.debug("[checkVersionMigrations] Current editor version", "1.9.0-next.3");
18517
18517
  if (!this.options.ydoc) return;
18518
18518
  const metaMap = this.options.ydoc.getMap("meta");
18519
18519
  let docVersion = metaMap.get("version");
@@ -26183,6 +26183,9 @@ const getRunBooleanProp = (run, prop) => {
26183
26183
  return false;
26184
26184
  };
26185
26185
  const getRunUnderlineStyle = (run) => {
26186
+ if ("underline" in run && typeof run.underline === "boolean") {
26187
+ return run.underline ? "single" : "";
26188
+ }
26186
26189
  if ("underline" in run && run.underline && typeof run.underline === "object") {
26187
26190
  return run.underline.style ?? "";
26188
26191
  }
@@ -35185,9 +35188,12 @@ function fieldAnnotationNodeToRun(node, positions, fieldMetadata) {
35185
35188
  const textHighlight = attrs.textHighlight ?? fieldMetadata?.textHighlight;
35186
35189
  if (typeof textHighlight === "string") run.textHighlight = textHighlight;
35187
35190
  const formatting = fieldMetadata?.formatting;
35188
- if (attrs.bold === true || formatting?.bold === true) run.bold = true;
35189
- if (attrs.italic === true || formatting?.italic === true) run.italic = true;
35190
- if (attrs.underline === true || formatting?.underline === true) run.underline = true;
35191
+ if (attrs.bold === true) run.bold = true;
35192
+ else if (attrs.bold !== false && formatting?.bold === true) run.bold = true;
35193
+ if (attrs.italic === true) run.italic = true;
35194
+ else if (attrs.italic !== false && formatting?.italic === true) run.italic = true;
35195
+ if (attrs.underline === true) run.underline = true;
35196
+ else if (attrs.underline !== false && formatting?.underline === true) run.underline = true;
35191
35197
  const pos = positions.get(node);
35192
35198
  if (pos) {
35193
35199
  run.pmStart = pos.start;
@@ -1,8 +1,8 @@
1
- import { D as BIT8, F as MAX_SAFE_INTEGER, G as create, H as BITS7, I as utf8TextDecoder, J as create$1, K as setIfUndefined, L as create$2, O as from, Q as floor$1, R as equalityDeep, U as writeVarUint, V as writeVarString, W as toUint8Array, X as createEncoder, Y as createInjectionKey, Z as toString, $ as throwError, a0 as useSsrAdapter, a1 as configProviderInjectionKey, a2 as cssrAnchorMetaName, a3 as globalStyle, q as cB, p as c, a4 as isMounted, a5 as commonVariables$2, s as cM, a6 as cNotM, a7 as cE, o as derived, a8 as changeColor, a9 as insideModal, aa as insidePopover, ab as resolveWrappedSlot, ac as on, w as warnOnce, u as useConfig, ad as useMergedState, ae as useMemo, t as useTheme, af as useRtl, x as createKey, y as useThemeClass, ag as createId, ah as call, ai as render, aj as messageProviderInjectionKey, ak as messageApiInjectionKey, j as getStarterExtensions, k as getRichTextExtensions, E as Editor, al as fromBase64, am as onChange, an as varStorage, ao as toBase64, ap as createUint8ArrayFromArrayBuffer, aq as offChange, ar as writeVarUint8Array, as as map, at as length, au as isNode, av as min, aw as pow, ax as comments_module_events, ay as getFileObject, az as getTrackChanges, C as CommentsPluginKey, n as TrackChangesBasePluginKey, aA as ellipsisVerticalSvg, aB as xmarkIconSvg, aC as checkIconSvg, aD as caretDownIconSvg, aE as commentIconSvg, B as _export_sfc, aF as NDropdown, b as SuperInput, aG as vClickOutside, P as PresentationEditor, a as SuperEditor, A as AIWriter, aH as NConfigProvider, S as SuperToolbar } from "./index-DiUW7bID.es.js";
1
+ import { D as BIT8, F as MAX_SAFE_INTEGER, G as create, H as BITS7, I as utf8TextDecoder, J as create$1, K as setIfUndefined, L as create$2, O as from, Q as floor$1, R as equalityDeep, U as writeVarUint, V as writeVarString, W as toUint8Array, X as createEncoder, Y as createInjectionKey, Z as toString, $ as throwError, a0 as useSsrAdapter, a1 as configProviderInjectionKey, a2 as cssrAnchorMetaName, a3 as globalStyle, q as cB, p as c, a4 as isMounted, a5 as commonVariables$2, s as cM, a6 as cNotM, a7 as cE, o as derived, a8 as changeColor, a9 as insideModal, aa as insidePopover, ab as resolveWrappedSlot, ac as on, w as warnOnce, u as useConfig, ad as useMergedState, ae as useMemo, t as useTheme, af as useRtl, x as createKey, y as useThemeClass, ag as createId, ah as call, ai as render, aj as messageProviderInjectionKey, ak as messageApiInjectionKey, j as getStarterExtensions, k as getRichTextExtensions, E as Editor, al as fromBase64, am as onChange, an as varStorage, ao as toBase64, ap as createUint8ArrayFromArrayBuffer, aq as offChange, ar as writeVarUint8Array, as as map, at as length, au as isNode, av as min, aw as pow, ax as comments_module_events, ay as getFileObject, az as getTrackChanges, C as CommentsPluginKey, n as TrackChangesBasePluginKey, aA as ellipsisVerticalSvg, aB as xmarkIconSvg, aC as checkIconSvg, aD as caretDownIconSvg, aE as commentIconSvg, B as _export_sfc, aF as NDropdown, b as SuperInput, aG as vClickOutside, P as PresentationEditor, a as SuperEditor, A as AIWriter, aH as NConfigProvider, S as SuperToolbar } from "./index-DIwuhOVn.es.js";
2
2
  import { B as BlankDOCX } from "./blank-docx-ABm6XYAA.es.js";
3
3
  import "./jszip-BjHgpFjf.es.js";
4
4
  import "./helpers-BsvIMOxu.es.js";
5
- import "./SuperConverter-uJeWdfqF.es.js";
5
+ import "./SuperConverter-4c_J1ZUZ.es.js";
6
6
  import { E as EventEmitter } from "./eventemitter3-B9iqx_uA.es.js";
7
7
  import { j as inject, k as provide, b as computed, l as onBeforeUnmount, p as process$1, m as onBeforeMount, d as defineComponent, h, t as toRef, T as Transition, n as TransitionGroup, w as watchEffect, r as ref, e as onMounted, q as Teleport, F as Fragment, s as reactive, v as effectScope, x as markRaw, y as toRaw, z as isRef, A as isReactive, B as getCurrentInstance, C as watch, u as unref, D as hasInjectionContext, E as nextTick, G as getCurrentScope, H as onScopeDispose, I as toRefs, J as global, K as shallowRef, c as createElementBlock, o as openBlock, L as toDisplayString, i as createVNode, M as withCtx, a as createBaseVNode, N as normalizeStyle, g as createCommentVNode, O as createBlock, P as withModifiers, Q as normalizeClass, R as resolveDirective, S as withDirectives, U as renderList, V as createApp, W as resolveDynamicComponent, X as defineAsyncComponent } from "./vue-DI6_Tcq0.es.js";
8
8
  import "./jszip.min-BWx74pG_.es.js";
@@ -7692,7 +7692,7 @@ const _sfc_main = {
7692
7692
  __name: "SuperDoc",
7693
7693
  emits: ["selection-update"],
7694
7694
  setup(__props, { emit: __emit }) {
7695
- const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-N9y6ySeI.es.js"));
7695
+ const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-BrD3Cd8B.es.js"));
7696
7696
  const superdocStore = useSuperdocStore();
7697
7697
  const commentsStore = useCommentsStore();
7698
7698
  const {
@@ -8677,7 +8677,7 @@ class SuperDoc extends EventEmitter {
8677
8677
  this.config.colors = shuffleArray(this.config.colors);
8678
8678
  this.userColorMap = /* @__PURE__ */ new Map();
8679
8679
  this.colorIndex = 0;
8680
- this.version = "1.9.0-next.2";
8680
+ this.version = "1.9.0-next.3";
8681
8681
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
8682
8682
  this.superdocId = config.superdocId || v4();
8683
8683
  this.colors = this.config.colors;
@@ -1,4 +1,4 @@
1
- import { g as generateDocxRandomId, T as TextSelection$1, o as objectIncludes, w as wrapTextsInRuns, D as DOMParser$1, c as createDocFromMarkdown, a as createDocFromHTML, F as Fragment, b as chainableEditorState, d as convertMarkdownToHTML, f as findParentNode, e as findParentNodeClosestToPos, h as generateRandom32BitHex, i as generateRandomSigned32BitIntStrId, P as PluginKey, j as Plugin, M as Mapping, N as NodeSelection, k as Selection, l as Slice, m as DOMSerializer, n as Mark$1, p as dropPoint, A as AllSelection, q as Schema$1, s as canSplit, t as resolveRunProperties, u as encodeMarksFromRPr, v as liftTarget, x as canJoin, y as joinPoint, z as replaceStep$1, R as ReplaceAroundStep$1, B as htmlHandler, C as ReplaceStep, E as getResolvedParagraphProperties, G as changeListLevel, H as isList$1, I as updateNumberingProperties, L as ListHelpers, J as inputRulesPlugin, K as TrackDeleteMarkName, O as TrackInsertMarkName, Q as TrackFormatMarkName, U as AddMarkStep, V as RemoveMarkStep, W as CommandService, S as SuperConverter, X as EditorState, Y as unflattenListsInHtml, Z as SelectionRange, _ as Transform, $ as resolveParagraphProperties, a0 as resolveDocxFontFamily, a1 as _getReferencedTableStyles, a2 as decodeRPrFromMarks, a3 as calculateResolvedParagraphProperties, a4 as encodeCSSFromPPr, a5 as encodeCSSFromRPr, a6 as generateOrderedListIndex, a7 as docxNumberingHelpers, a8 as InputRule, a9 as insertNewRelationship, aa as kebabCase$1, ab as getUnderlineCssString } from "./SuperConverter-uJeWdfqF.es.js";
1
+ import { g as generateDocxRandomId, T as TextSelection$1, o as objectIncludes, w as wrapTextsInRuns, D as DOMParser$1, c as createDocFromMarkdown, a as createDocFromHTML, F as Fragment, b as chainableEditorState, d as convertMarkdownToHTML, f as findParentNode, e as findParentNodeClosestToPos, h as generateRandom32BitHex, i as generateRandomSigned32BitIntStrId, P as PluginKey, j as Plugin, M as Mapping, N as NodeSelection, k as Selection, l as Slice, m as DOMSerializer, n as Mark$1, p as dropPoint, A as AllSelection, q as Schema$1, s as canSplit, t as resolveRunProperties, u as encodeMarksFromRPr, v as liftTarget, x as canJoin, y as joinPoint, z as replaceStep$1, R as ReplaceAroundStep$1, B as htmlHandler, C as ReplaceStep, E as getResolvedParagraphProperties, G as changeListLevel, H as isList$1, I as updateNumberingProperties, L as ListHelpers, J as inputRulesPlugin, K as TrackDeleteMarkName, O as TrackInsertMarkName, Q as TrackFormatMarkName, U as AddMarkStep, V as RemoveMarkStep, W as CommandService, S as SuperConverter, X as EditorState, Y as unflattenListsInHtml, Z as SelectionRange, _ as Transform, $ as resolveParagraphProperties, a0 as resolveDocxFontFamily, a1 as _getReferencedTableStyles, a2 as decodeRPrFromMarks, a3 as calculateResolvedParagraphProperties, a4 as encodeCSSFromPPr, a5 as encodeCSSFromRPr, a6 as generateOrderedListIndex, a7 as docxNumberingHelpers, a8 as InputRule, a9 as insertNewRelationship, aa as kebabCase$1, ab as getUnderlineCssString } from "./SuperConverter-4c_J1ZUZ.es.js";
2
2
  import { B as Buffer$2 } from "./jszip-BjHgpFjf.es.js";
3
3
  import { j as twipsToInches, m as inchesToTwips, p as ptToTwips, d as linesToTwips, f as twipsToLines, k as pixelsToTwips, z as resolveOpcTargetPath, h as halfPointToPoints, c as twipsToPixels$2, D as convertSizeToCSS, E as inchesToPixels } from "./helpers-BsvIMOxu.es.js";
4
4
  import { p as process$1, r as ref, J as global$1, b as computed, c as createElementBlock, F as Fragment$1, U as renderList, P as withModifiers, o as openBlock, Q as normalizeClass, g as createCommentVNode, L as toDisplayString, a as createBaseVNode, V as createApp, e as onMounted, f as onUnmounted, S as withDirectives, u as unref, Y as vModelText, E as nextTick, N as normalizeStyle, C as watch, Z as withKeys, _ as createTextVNode, i as createVNode, h as h$1, $ as readonly, B as getCurrentInstance, l as onBeforeUnmount, s as reactive, m as onBeforeMount, j as inject, a0 as onActivated, a1 as onDeactivated, a2 as Comment, d as defineComponent, k as provide, q as Teleport, t as toRef, a3 as renderSlot, a4 as isVNode, K as shallowRef, w as watchEffect, T as Transition, a5 as mergeProps, a6 as vShow, a7 as cloneVNode, a8 as Text$2, x as markRaw, O as createBlock, M as withCtx, a9 as useCssVars, W as resolveDynamicComponent, aa as normalizeProps, ab as guardReactiveProps } from "./vue-DI6_Tcq0.es.js";
@@ -15773,7 +15773,7 @@ const canUseDOM = () => {
15773
15773
  return false;
15774
15774
  }
15775
15775
  };
15776
- const summaryVersion = "1.9.0-next.2";
15776
+ const summaryVersion = "1.9.0-next.3";
15777
15777
  const nodeKeys = ["group", "content", "marks", "inline", "atom", "defining", "code", "tableRole", "summary"];
15778
15778
  const markKeys = ["group", "inclusive", "excludes", "spanning", "code"];
15779
15779
  function mapAttributes(attrs) {
@@ -18496,7 +18496,7 @@ class Editor extends EventEmitter {
18496
18496
  * Process collaboration migrations
18497
18497
  */
18498
18498
  processCollaborationMigrations() {
18499
- console.debug("[checkVersionMigrations] Current editor version", "1.9.0-next.2");
18499
+ console.debug("[checkVersionMigrations] Current editor version", "1.9.0-next.3");
18500
18500
  if (!this.options.ydoc) return;
18501
18501
  const metaMap = this.options.ydoc.getMap("meta");
18502
18502
  let docVersion = metaMap.get("version");
@@ -26166,6 +26166,9 @@ const getRunBooleanProp = (run, prop) => {
26166
26166
  return false;
26167
26167
  };
26168
26168
  const getRunUnderlineStyle = (run) => {
26169
+ if ("underline" in run && typeof run.underline === "boolean") {
26170
+ return run.underline ? "single" : "";
26171
+ }
26169
26172
  if ("underline" in run && run.underline && typeof run.underline === "object") {
26170
26173
  return run.underline.style ?? "";
26171
26174
  }
@@ -35168,9 +35171,12 @@ function fieldAnnotationNodeToRun(node, positions, fieldMetadata) {
35168
35171
  const textHighlight = attrs.textHighlight ?? fieldMetadata?.textHighlight;
35169
35172
  if (typeof textHighlight === "string") run.textHighlight = textHighlight;
35170
35173
  const formatting = fieldMetadata?.formatting;
35171
- if (attrs.bold === true || formatting?.bold === true) run.bold = true;
35172
- if (attrs.italic === true || formatting?.italic === true) run.italic = true;
35173
- if (attrs.underline === true || formatting?.underline === true) run.underline = true;
35174
+ if (attrs.bold === true) run.bold = true;
35175
+ else if (attrs.bold !== false && formatting?.bold === true) run.bold = true;
35176
+ if (attrs.italic === true) run.italic = true;
35177
+ else if (attrs.italic !== false && formatting?.italic === true) run.italic = true;
35178
+ if (attrs.underline === true) run.underline = true;
35179
+ else if (attrs.underline !== false && formatting?.underline === true) run.underline = true;
35174
35180
  const pos = positions.get(node);
35175
35181
  if (pos) {
35176
35182
  run.pmStart = pos.start;
@@ -2,6 +2,6 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  require("../chunks/jszip-C8_CqJxM.cjs");
4
4
  require("../chunks/helpers-C7_u3NNJ.cjs");
5
- const superEditor_converter = require("../chunks/SuperConverter-DaAlf5ZE.cjs");
5
+ const superEditor_converter = require("../chunks/SuperConverter-RNn1f5gz.cjs");
6
6
  require("../chunks/uuid-R7L08bOx.cjs");
7
7
  exports.SuperConverter = superEditor_converter.SuperConverter;
@@ -1,6 +1,6 @@
1
1
  import "../chunks/jszip-BjHgpFjf.es.js";
2
2
  import "../chunks/helpers-BsvIMOxu.es.js";
3
- import { S } from "../chunks/SuperConverter-uJeWdfqF.es.js";
3
+ import { S } from "../chunks/SuperConverter-4c_J1ZUZ.es.js";
4
4
  import "../chunks/uuid-CjlX8hrF.es.js";
5
5
  export {
6
6
  S as SuperConverter
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("./chunks/index-BatuLfZq.cjs");
3
+ const index = require("./chunks/index-C5ctDTOg.cjs");
4
4
  const superEditor_docxZipper = require("./super-editor/docx-zipper.cjs");
5
5
  const superEditor_fileZipper = require("./super-editor/file-zipper.cjs");
6
6
  const vue = require("./chunks/vue-De9wkgLl.cjs");
7
- const superEditor_converter = require("./chunks/SuperConverter-DaAlf5ZE.cjs");
7
+ const superEditor_converter = require("./chunks/SuperConverter-RNn1f5gz.cjs");
8
8
  function isNodeType(node, name) {
9
9
  return node.type.name === name;
10
10
  }
@@ -1,9 +1,9 @@
1
- import { N as Node, M as Mark } from "./chunks/index-DiUW7bID.es.js";
2
- import { A, d, C, E, m, P, e, _, a, b, S, T, n, i, f, l, g, k, j, h, c } from "./chunks/index-DiUW7bID.es.js";
1
+ import { N as Node, M as Mark } from "./chunks/index-DIwuhOVn.es.js";
2
+ import { A, d, C, E, m, P, e, _, a, b, S, T, n, i, f, l, g, k, j, h, c } from "./chunks/index-DIwuhOVn.es.js";
3
3
  import { default as default2 } from "./super-editor/docx-zipper.es.js";
4
4
  import { createZip } from "./super-editor/file-zipper.es.js";
5
5
  import { d as defineComponent, c as createElementBlock, o as openBlock, a as createBaseVNode } from "./chunks/vue-DI6_Tcq0.es.js";
6
- import { S as S2, r } from "./chunks/SuperConverter-uJeWdfqF.es.js";
6
+ import { S as S2, r } from "./chunks/SuperConverter-4c_J1ZUZ.es.js";
7
7
  function isNodeType(node, name) {
8
8
  return node.type.name === name;
9
9
  }
package/dist/superdoc.cjs CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("./chunks/index-BatuLfZq.cjs");
4
- const superdoc = require("./chunks/index-BMDhz8nE.cjs");
3
+ const index = require("./chunks/index-C5ctDTOg.cjs");
4
+ const superdoc = require("./chunks/index-BZ_MkYMx.cjs");
5
5
  const blankDocx = require("./chunks/blank-docx-DfW3Eeh2.cjs");
6
- const superEditor_converter = require("./chunks/SuperConverter-DaAlf5ZE.cjs");
6
+ const superEditor_converter = require("./chunks/SuperConverter-RNn1f5gz.cjs");
7
7
  require("./chunks/jszip-C8_CqJxM.cjs");
8
8
  require("./chunks/helpers-C7_u3NNJ.cjs");
9
9
  require("./chunks/jszip.min-BPh2MMAa.cjs");
@@ -1,7 +1,7 @@
1
- import { d, E, m, e, i, ay, k, h, c } from "./chunks/index-DiUW7bID.es.js";
2
- import { D, H, P, S, c as c2, g } from "./chunks/index-8bXKgm-B.es.js";
1
+ import { d, E, m, e, i, ay, k, h, c } from "./chunks/index-DIwuhOVn.es.js";
2
+ import { D, H, P, S, c as c2, g } from "./chunks/index-CBIJRKOM.es.js";
3
3
  import { B } from "./chunks/blank-docx-ABm6XYAA.es.js";
4
- import { S as S2, r } from "./chunks/SuperConverter-uJeWdfqF.es.js";
4
+ import { S as S2, r } from "./chunks/SuperConverter-4c_J1ZUZ.es.js";
5
5
  import "./chunks/jszip-BjHgpFjf.es.js";
6
6
  import "./chunks/helpers-BsvIMOxu.es.js";
7
7
  import "./chunks/jszip.min-BWx74pG_.es.js";
@@ -39128,7 +39128,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
39128
39128
  static getStoredSuperdocVersion(docx) {
39129
39129
  return SuperConverter.getStoredCustomProperty(docx, "SuperdocVersion");
39130
39130
  }
39131
- static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "1.9.0-next.2") {
39131
+ static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "1.9.0-next.3") {
39132
39132
  return SuperConverter.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
39133
39133
  }
39134
39134
  /**
@@ -65518,7 +65518,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
65518
65518
  return false;
65519
65519
  }
65520
65520
  };
65521
- const summaryVersion = "1.9.0-next.2";
65521
+ const summaryVersion = "1.9.0-next.3";
65522
65522
  const nodeKeys = ["group", "content", "marks", "inline", "atom", "defining", "code", "tableRole", "summary"];
65523
65523
  const markKeys = ["group", "inclusive", "excludes", "spanning", "code"];
65524
65524
  function mapAttributes(attrs) {
@@ -68242,7 +68242,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
68242
68242
  * Process collaboration migrations
68243
68243
  */
68244
68244
  processCollaborationMigrations() {
68245
- console.debug("[checkVersionMigrations] Current editor version", "1.9.0-next.2");
68245
+ console.debug("[checkVersionMigrations] Current editor version", "1.9.0-next.3");
68246
68246
  if (!this.options.ydoc) return;
68247
68247
  const metaMap = this.options.ydoc.getMap("meta");
68248
68248
  let docVersion = metaMap.get("version");
@@ -75914,6 +75914,9 @@ ${o}
75914
75914
  return false;
75915
75915
  };
75916
75916
  const getRunUnderlineStyle = (run2) => {
75917
+ if ("underline" in run2 && typeof run2.underline === "boolean") {
75918
+ return run2.underline ? "single" : "";
75919
+ }
75917
75920
  if ("underline" in run2 && run2.underline && typeof run2.underline === "object") {
75918
75921
  return run2.underline.style ?? "";
75919
75922
  }
@@ -84867,9 +84870,12 @@ ${o}
84867
84870
  const textHighlight = attrs.textHighlight ?? fieldMetadata?.textHighlight;
84868
84871
  if (typeof textHighlight === "string") run2.textHighlight = textHighlight;
84869
84872
  const formatting = fieldMetadata?.formatting;
84870
- if (attrs.bold === true || formatting?.bold === true) run2.bold = true;
84871
- if (attrs.italic === true || formatting?.italic === true) run2.italic = true;
84872
- if (attrs.underline === true || formatting?.underline === true) run2.underline = true;
84873
+ if (attrs.bold === true) run2.bold = true;
84874
+ else if (attrs.bold !== false && formatting?.bold === true) run2.bold = true;
84875
+ if (attrs.italic === true) run2.italic = true;
84876
+ else if (attrs.italic !== false && formatting?.italic === true) run2.italic = true;
84877
+ if (attrs.underline === true) run2.underline = true;
84878
+ else if (attrs.underline !== false && formatting?.underline === true) run2.underline = true;
84873
84879
  const pos = positions.get(node2);
84874
84880
  if (pos) {
84875
84881
  run2.pmStart = pos.start;
@@ -152271,7 +152277,7 @@ ${reason}`);
152271
152277
  this.config.colors = shuffleArray(this.config.colors);
152272
152278
  this.userColorMap = /* @__PURE__ */ new Map();
152273
152279
  this.colorIndex = 0;
152274
- this.version = "1.9.0-next.2";
152280
+ this.version = "1.9.0-next.3";
152275
152281
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
152276
152282
  this.superdocId = config2.superdocId || v4();
152277
152283
  this.colors = this.config.colors;