superdoc 1.10.0 → 1.10.1-next.2

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 (23) hide show
  1. package/dist/chunks/{PdfViewer-BzSAVtWI.cjs → PdfViewer-CN4THM_I.cjs} +2 -2
  2. package/dist/chunks/{PdfViewer-BI8OMt4P.es.js → PdfViewer-CjE0_aEl.es.js} +2 -2
  3. package/dist/chunks/{SuperConverter-CHu0w432.es.js → SuperConverter-Buvf52mD.es.js} +33 -11
  4. package/dist/chunks/{SuperConverter-BftYT973.cjs → SuperConverter-gDB4Zq1W.cjs} +33 -11
  5. package/dist/chunks/{index-CBjCnAXy.es.js → index-11NYNSGT.es.js} +4 -4
  6. package/dist/chunks/{index-BlHbGLfl.cjs → index-BKZ-0Tft.cjs} +4 -4
  7. package/dist/chunks/{index-BN3GuVpx.es.js → index-C4Z2Bufk.es.js} +273 -20
  8. package/dist/chunks/{index-RxNDF_V7.cjs → index-Cfz-7lhK.cjs} +273 -20
  9. package/dist/super-editor/components/toolbar/super-toolbar.d.ts.map +1 -1
  10. package/dist/super-editor/converter.cjs +1 -1
  11. package/dist/super-editor/converter.es.js +1 -1
  12. package/dist/super-editor/core/presentation-editor/PresentationEditor.d.ts.map +1 -1
  13. package/dist/super-editor/core/presentation-editor/pointer-events/EditorInputManager.d.ts +2 -0
  14. package/dist/super-editor/core/presentation-editor/pointer-events/EditorInputManager.d.ts.map +1 -1
  15. package/dist/super-editor/core/super-converter/v3/handlers/wp/helpers/textbox-content-helpers.d.ts.map +1 -1
  16. package/dist/super-editor/core/super-converter/v3/handlers/wp/helpers/vector-shape-helpers.d.ts.map +1 -1
  17. package/dist/super-editor.cjs +2 -2
  18. package/dist/super-editor.es.js +3 -3
  19. package/dist/superdoc.cjs +3 -3
  20. package/dist/superdoc.es.js +3 -3
  21. package/dist/superdoc.umd.js +306 -31
  22. package/dist/superdoc.umd.js.map +1 -1
  23. package/package.json +1 -1
@@ -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-BlHbGLfl.cjs");
5
- const index = require("./index-RxNDF_V7.cjs");
4
+ const superdoc = require("./index-BKZ-0Tft.cjs");
5
+ const index = require("./index-Cfz-7lhK.cjs");
6
6
  function self(vars) {
7
7
  const {
8
8
  opacityDisabled,
@@ -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-CBjCnAXy.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-BN3GuVpx.es.js";
2
+ import { N as NBaseLoading, u as useSuperdocStore, s as storeToRefs, a as useSelection } from "./index-11NYNSGT.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-C4Z2Bufk.es.js";
4
4
  function self(vars) {
5
5
  const {
6
6
  opacityDisabled,
@@ -13765,7 +13765,9 @@ function extractStrokeColor(spPr, style) {
13765
13765
  const ln = spPr?.elements?.find((el) => el.name === "a:ln");
13766
13766
  if (ln) {
13767
13767
  const noFill = ln.elements?.find((el) => el.name === "a:noFill");
13768
- if (noFill) return null;
13768
+ if (noFill) {
13769
+ return null;
13770
+ }
13769
13771
  const solidFill = ln.elements?.find((el) => el.name === "a:solidFill");
13770
13772
  if (solidFill) {
13771
13773
  const schemeClr2 = solidFill.elements?.find((el) => el.name === "a:schemeClr");
@@ -13790,11 +13792,21 @@ function extractStrokeColor(spPr, style) {
13790
13792
  }
13791
13793
  }
13792
13794
  }
13793
- if (!style) return "#000000";
13795
+ if (!style) {
13796
+ return null;
13797
+ }
13794
13798
  const lnRef = style.elements?.find((el) => el.name === "a:lnRef");
13795
- if (!lnRef) return "#000000";
13799
+ if (!lnRef) {
13800
+ return null;
13801
+ }
13802
+ const lnRefIdx = lnRef.attributes?.["idx"];
13803
+ if (lnRefIdx === "0") {
13804
+ return null;
13805
+ }
13796
13806
  const schemeClr = lnRef.elements?.find((el) => el.name === "a:schemeClr");
13797
- if (!schemeClr) return "#000000";
13807
+ if (!schemeClr) {
13808
+ return null;
13809
+ }
13798
13810
  const themeName = schemeClr.attributes?.["val"];
13799
13811
  let color = getThemeColor(themeName);
13800
13812
  const modifiers = schemeClr.elements || [];
@@ -13813,7 +13825,9 @@ function extractStrokeColor(spPr, style) {
13813
13825
  }
13814
13826
  function extractFillColor(spPr, style) {
13815
13827
  const noFill = spPr?.elements?.find((el) => el.name === "a:noFill");
13816
- if (noFill) return null;
13828
+ if (noFill) {
13829
+ return null;
13830
+ }
13817
13831
  const solidFill = spPr?.elements?.find((el) => el.name === "a:solidFill");
13818
13832
  if (solidFill) {
13819
13833
  const schemeClr2 = solidFill.elements?.find((el) => el.name === "a:schemeClr");
@@ -13862,13 +13876,21 @@ function extractFillColor(spPr, style) {
13862
13876
  if (blipFill) {
13863
13877
  return "#cccccc";
13864
13878
  }
13865
- if (!style) return "#5b9bd5";
13879
+ if (!style) {
13880
+ return null;
13881
+ }
13866
13882
  const fillRef = style.elements?.find((el) => el.name === "a:fillRef");
13867
- if (!fillRef) return "#5b9bd5";
13883
+ if (!fillRef) {
13884
+ return null;
13885
+ }
13868
13886
  const fillRefIdx = fillRef.attributes?.["idx"];
13869
- if (fillRefIdx === "0") return null;
13887
+ if (fillRefIdx === "0") {
13888
+ return null;
13889
+ }
13870
13890
  const schemeClr = fillRef.elements?.find((el) => el.name === "a:schemeClr");
13871
- if (!schemeClr) return "#5b9bd5";
13891
+ if (!schemeClr) {
13892
+ return null;
13893
+ }
13872
13894
  const themeName = schemeClr.attributes?.["val"];
13873
13895
  let color = getThemeColor(themeName);
13874
13896
  const modifiers = schemeClr.elements || [];
@@ -19901,7 +19923,7 @@ function extractParagraphAlignment(paragraph) {
19901
19923
  }
19902
19924
  function extractBodyPrProperties(bodyPr) {
19903
19925
  const bodyPrAttrs = bodyPr?.attributes || {};
19904
- let verticalAlign = "center";
19926
+ let verticalAlign = "top";
19905
19927
  const anchorAttr = bodyPrAttrs["anchor"];
19906
19928
  if (anchorAttr === "t") verticalAlign = "top";
19907
19929
  else if (anchorAttr === "ctr") verticalAlign = "center";
@@ -33735,7 +33757,7 @@ class SuperConverter {
33735
33757
  static getStoredSuperdocVersion(docx) {
33736
33758
  return SuperConverter.getStoredCustomProperty(docx, "SuperdocVersion");
33737
33759
  }
33738
- static setStoredSuperdocVersion(docx = this.convertedXml, version = "1.10.0") {
33760
+ static setStoredSuperdocVersion(docx = this.convertedXml, version = "1.10.1-next.2") {
33739
33761
  return SuperConverter.setStoredCustomProperty(docx, "SuperdocVersion", version, false);
33740
33762
  }
33741
33763
  /**
@@ -13766,7 +13766,9 @@ function extractStrokeColor(spPr, style) {
13766
13766
  const ln = spPr?.elements?.find((el) => el.name === "a:ln");
13767
13767
  if (ln) {
13768
13768
  const noFill = ln.elements?.find((el) => el.name === "a:noFill");
13769
- if (noFill) return null;
13769
+ if (noFill) {
13770
+ return null;
13771
+ }
13770
13772
  const solidFill = ln.elements?.find((el) => el.name === "a:solidFill");
13771
13773
  if (solidFill) {
13772
13774
  const schemeClr2 = solidFill.elements?.find((el) => el.name === "a:schemeClr");
@@ -13791,11 +13793,21 @@ function extractStrokeColor(spPr, style) {
13791
13793
  }
13792
13794
  }
13793
13795
  }
13794
- if (!style) return "#000000";
13796
+ if (!style) {
13797
+ return null;
13798
+ }
13795
13799
  const lnRef = style.elements?.find((el) => el.name === "a:lnRef");
13796
- if (!lnRef) return "#000000";
13800
+ if (!lnRef) {
13801
+ return null;
13802
+ }
13803
+ const lnRefIdx = lnRef.attributes?.["idx"];
13804
+ if (lnRefIdx === "0") {
13805
+ return null;
13806
+ }
13797
13807
  const schemeClr = lnRef.elements?.find((el) => el.name === "a:schemeClr");
13798
- if (!schemeClr) return "#000000";
13808
+ if (!schemeClr) {
13809
+ return null;
13810
+ }
13799
13811
  const themeName = schemeClr.attributes?.["val"];
13800
13812
  let color = getThemeColor(themeName);
13801
13813
  const modifiers = schemeClr.elements || [];
@@ -13814,7 +13826,9 @@ function extractStrokeColor(spPr, style) {
13814
13826
  }
13815
13827
  function extractFillColor(spPr, style) {
13816
13828
  const noFill = spPr?.elements?.find((el) => el.name === "a:noFill");
13817
- if (noFill) return null;
13829
+ if (noFill) {
13830
+ return null;
13831
+ }
13818
13832
  const solidFill = spPr?.elements?.find((el) => el.name === "a:solidFill");
13819
13833
  if (solidFill) {
13820
13834
  const schemeClr2 = solidFill.elements?.find((el) => el.name === "a:schemeClr");
@@ -13863,13 +13877,21 @@ function extractFillColor(spPr, style) {
13863
13877
  if (blipFill) {
13864
13878
  return "#cccccc";
13865
13879
  }
13866
- if (!style) return "#5b9bd5";
13880
+ if (!style) {
13881
+ return null;
13882
+ }
13867
13883
  const fillRef = style.elements?.find((el) => el.name === "a:fillRef");
13868
- if (!fillRef) return "#5b9bd5";
13884
+ if (!fillRef) {
13885
+ return null;
13886
+ }
13869
13887
  const fillRefIdx = fillRef.attributes?.["idx"];
13870
- if (fillRefIdx === "0") return null;
13888
+ if (fillRefIdx === "0") {
13889
+ return null;
13890
+ }
13871
13891
  const schemeClr = fillRef.elements?.find((el) => el.name === "a:schemeClr");
13872
- if (!schemeClr) return "#5b9bd5";
13892
+ if (!schemeClr) {
13893
+ return null;
13894
+ }
13873
13895
  const themeName = schemeClr.attributes?.["val"];
13874
13896
  let color = getThemeColor(themeName);
13875
13897
  const modifiers = schemeClr.elements || [];
@@ -19902,7 +19924,7 @@ function extractParagraphAlignment(paragraph) {
19902
19924
  }
19903
19925
  function extractBodyPrProperties(bodyPr) {
19904
19926
  const bodyPrAttrs = bodyPr?.attributes || {};
19905
- let verticalAlign = "center";
19927
+ let verticalAlign = "top";
19906
19928
  const anchorAttr = bodyPrAttrs["anchor"];
19907
19929
  if (anchorAttr === "t") verticalAlign = "top";
19908
19930
  else if (anchorAttr === "ctr") verticalAlign = "center";
@@ -33736,7 +33758,7 @@ class SuperConverter {
33736
33758
  static getStoredSuperdocVersion(docx) {
33737
33759
  return SuperConverter.getStoredCustomProperty(docx, "SuperdocVersion");
33738
33760
  }
33739
- static setStoredSuperdocVersion(docx = this.convertedXml, version = "1.10.0") {
33761
+ static setStoredSuperdocVersion(docx = this.convertedXml, version = "1.10.1-next.2") {
33740
33762
  return SuperConverter.setStoredCustomProperty(docx, "SuperdocVersion", version, false);
33741
33763
  }
33742
33764
  /**
@@ -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-BN3GuVpx.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-C4Z2Bufk.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-CHu0w432.es.js";
5
+ import "./SuperConverter-Buvf52mD.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";
@@ -7743,7 +7743,7 @@ const _sfc_main = {
7743
7743
  __name: "SuperDoc",
7744
7744
  emits: ["selection-update"],
7745
7745
  setup(__props, { emit: __emit }) {
7746
- const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-BI8OMt4P.es.js"));
7746
+ const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-CjE0_aEl.es.js"));
7747
7747
  const superdocStore = useSuperdocStore();
7748
7748
  const commentsStore = useCommentsStore();
7749
7749
  const {
@@ -8728,7 +8728,7 @@ class SuperDoc extends EventEmitter {
8728
8728
  this.config.colors = shuffleArray(this.config.colors);
8729
8729
  this.userColorMap = /* @__PURE__ */ new Map();
8730
8730
  this.colorIndex = 0;
8731
- this.version = "1.10.0";
8731
+ this.version = "1.10.1-next.2";
8732
8732
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
8733
8733
  this.superdocId = config.superdocId || v4();
8734
8734
  this.colors = this.config.colors;
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
- const index = require("./index-RxNDF_V7.cjs");
2
+ const index = require("./index-Cfz-7lhK.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-BftYT973.cjs");
6
+ require("./SuperConverter-gDB4Zq1W.cjs");
7
7
  const eventemitter3 = require("./eventemitter3-BQuRcMPI.cjs");
8
8
  const vue = require("./vue-De9wkgLl.cjs");
9
9
  require("./jszip.min-BPh2MMAa.cjs");
@@ -7760,7 +7760,7 @@ const _sfc_main = {
7760
7760
  __name: "SuperDoc",
7761
7761
  emits: ["selection-update"],
7762
7762
  setup(__props, { emit: __emit }) {
7763
- const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-BzSAVtWI.cjs")));
7763
+ const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-CN4THM_I.cjs")));
7764
7764
  const superdocStore = useSuperdocStore();
7765
7765
  const commentsStore = useCommentsStore();
7766
7766
  const {
@@ -8745,7 +8745,7 @@ class SuperDoc extends eventemitter3.EventEmitter {
8745
8745
  this.config.colors = shuffleArray(this.config.colors);
8746
8746
  this.userColorMap = /* @__PURE__ */ new Map();
8747
8747
  this.colorIndex = 0;
8748
- this.version = "1.10.0";
8748
+ this.version = "1.10.1-next.2";
8749
8749
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
8750
8750
  this.superdocId = config.superdocId || uuid.v4();
8751
8751
  this.colors = this.config.colors;