@harbour-enterprises/superdoc 1.10.0 → 1.10.1-next.1
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.
- package/dist/chunks/{PdfViewer-BI8OMt4P.es.js → PdfViewer-BOODwUAm.es.js} +2 -2
- package/dist/chunks/{PdfViewer-BzSAVtWI.cjs → PdfViewer-BVV6s1Am.cjs} +2 -2
- package/dist/chunks/{SuperConverter-BftYT973.cjs → SuperConverter-5LUR3VV_.cjs} +33 -11
- package/dist/chunks/{SuperConverter-CHu0w432.es.js → SuperConverter-9B_xwMKY.es.js} +33 -11
- package/dist/chunks/{index-BN3GuVpx.es.js → index-BkL5b0bb.es.js} +8 -7
- package/dist/chunks/{index-RxNDF_V7.cjs → index-CRvUPNmW.cjs} +8 -7
- package/dist/chunks/{index-CBjCnAXy.es.js → index-DqGSxMW3.es.js} +4 -4
- package/dist/chunks/{index-BlHbGLfl.cjs → index-eF2m8JAp.cjs} +4 -4
- package/dist/super-editor/converter.cjs +1 -1
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/core/super-converter/v3/handlers/wp/helpers/textbox-content-helpers.d.ts.map +1 -1
- package/dist/super-editor/core/super-converter/v3/handlers/wp/helpers/vector-shape-helpers.d.ts.map +1 -1
- package/dist/super-editor.cjs +2 -2
- package/dist/super-editor.es.js +3 -3
- package/dist/superdoc.cjs +3 -3
- package/dist/superdoc.es.js +3 -3
- package/dist/superdoc.umd.js +41 -18
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +3 -3
|
@@ -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-
|
|
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-
|
|
2
|
+
import { N as NBaseLoading, u as useSuperdocStore, s as storeToRefs, a as useSelection } from "./index-DqGSxMW3.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-BkL5b0bb.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-
|
|
5
|
-
const index = require("./index-
|
|
4
|
+
const superdoc = require("./index-eF2m8JAp.cjs");
|
|
5
|
+
const index = require("./index-CRvUPNmW.cjs");
|
|
6
6
|
function self(vars) {
|
|
7
7
|
const {
|
|
8
8
|
opacityDisabled,
|
|
@@ -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)
|
|
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)
|
|
13796
|
+
if (!style) {
|
|
13797
|
+
return null;
|
|
13798
|
+
}
|
|
13795
13799
|
const lnRef = style.elements?.find((el) => el.name === "a:lnRef");
|
|
13796
|
-
if (!lnRef)
|
|
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)
|
|
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)
|
|
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)
|
|
13880
|
+
if (!style) {
|
|
13881
|
+
return null;
|
|
13882
|
+
}
|
|
13867
13883
|
const fillRef = style.elements?.find((el) => el.name === "a:fillRef");
|
|
13868
|
-
if (!fillRef)
|
|
13884
|
+
if (!fillRef) {
|
|
13885
|
+
return null;
|
|
13886
|
+
}
|
|
13869
13887
|
const fillRefIdx = fillRef.attributes?.["idx"];
|
|
13870
|
-
if (fillRefIdx === "0")
|
|
13888
|
+
if (fillRefIdx === "0") {
|
|
13889
|
+
return null;
|
|
13890
|
+
}
|
|
13871
13891
|
const schemeClr = fillRef.elements?.find((el) => el.name === "a:schemeClr");
|
|
13872
|
-
if (!schemeClr)
|
|
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 = "
|
|
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.
|
|
33761
|
+
static setStoredSuperdocVersion(docx = this.convertedXml, version = "1.10.1-next.1") {
|
|
33740
33762
|
return SuperConverter.setStoredCustomProperty(docx, "SuperdocVersion", version, false);
|
|
33741
33763
|
}
|
|
33742
33764
|
/**
|
|
@@ -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)
|
|
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)
|
|
13795
|
+
if (!style) {
|
|
13796
|
+
return null;
|
|
13797
|
+
}
|
|
13794
13798
|
const lnRef = style.elements?.find((el) => el.name === "a:lnRef");
|
|
13795
|
-
if (!lnRef)
|
|
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)
|
|
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)
|
|
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)
|
|
13879
|
+
if (!style) {
|
|
13880
|
+
return null;
|
|
13881
|
+
}
|
|
13866
13882
|
const fillRef = style.elements?.find((el) => el.name === "a:fillRef");
|
|
13867
|
-
if (!fillRef)
|
|
13883
|
+
if (!fillRef) {
|
|
13884
|
+
return null;
|
|
13885
|
+
}
|
|
13868
13886
|
const fillRefIdx = fillRef.attributes?.["idx"];
|
|
13869
|
-
if (fillRefIdx === "0")
|
|
13887
|
+
if (fillRefIdx === "0") {
|
|
13888
|
+
return null;
|
|
13889
|
+
}
|
|
13870
13890
|
const schemeClr = fillRef.elements?.find((el) => el.name === "a:schemeClr");
|
|
13871
|
-
if (!schemeClr)
|
|
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 = "
|
|
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.
|
|
33760
|
+
static setStoredSuperdocVersion(docx = this.convertedXml, version = "1.10.1-next.1") {
|
|
33739
33761
|
return SuperConverter.setStoredCustomProperty(docx, "SuperdocVersion", version, false);
|
|
33740
33762
|
}
|
|
33741
33763
|
/**
|
|
@@ -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 carbonCopy, a4 as calculateResolvedParagraphProperties, a5 as encodeCSSFromPPr, a6 as encodeCSSFromRPr, a7 as generateOrderedListIndex, a8 as docxNumberingHelpers, a9 as InputRule, aa as insertNewRelationship, ab as kebabCase$1, ac as getUnderlineCssString } from "./SuperConverter-
|
|
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 carbonCopy, a4 as calculateResolvedParagraphProperties, a5 as encodeCSSFromPPr, a6 as encodeCSSFromRPr, a7 as generateOrderedListIndex, a8 as docxNumberingHelpers, a9 as InputRule, aa as insertNewRelationship, ab as kebabCase$1, ac as getUnderlineCssString } from "./SuperConverter-9B_xwMKY.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, C as getArrayBufferFromUrl, 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";
|
|
@@ -15798,7 +15798,7 @@ const canUseDOM = () => {
|
|
|
15798
15798
|
return false;
|
|
15799
15799
|
}
|
|
15800
15800
|
};
|
|
15801
|
-
const summaryVersion = "1.10.
|
|
15801
|
+
const summaryVersion = "1.10.1-next.1";
|
|
15802
15802
|
const nodeKeys = ["group", "content", "marks", "inline", "atom", "defining", "code", "tableRole", "summary"];
|
|
15803
15803
|
const markKeys = ["group", "inclusive", "excludes", "spanning", "code"];
|
|
15804
15804
|
function mapAttributes(attrs) {
|
|
@@ -18549,7 +18549,7 @@ class Editor extends EventEmitter {
|
|
|
18549
18549
|
* Process collaboration migrations
|
|
18550
18550
|
*/
|
|
18551
18551
|
processCollaborationMigrations() {
|
|
18552
|
-
console.debug("[checkVersionMigrations] Current editor version", "1.10.
|
|
18552
|
+
console.debug("[checkVersionMigrations] Current editor version", "1.10.1-next.1");
|
|
18553
18553
|
if (!this.options.ydoc) return;
|
|
18554
18554
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
18555
18555
|
let docVersion = metaMap.get("version");
|
|
@@ -27941,7 +27941,7 @@ class DomPainter {
|
|
|
27941
27941
|
textDiv.style.height = "100%";
|
|
27942
27942
|
textDiv.style.display = "flex";
|
|
27943
27943
|
textDiv.style.flexDirection = "column";
|
|
27944
|
-
const verticalAlign = textVerticalAlign ?? "
|
|
27944
|
+
const verticalAlign = textVerticalAlign ?? "top";
|
|
27945
27945
|
if (verticalAlign === "top") {
|
|
27946
27946
|
textDiv.style.justifyContent = "flex-start";
|
|
27947
27947
|
} else if (verticalAlign === "bottom") {
|
|
@@ -69925,14 +69925,14 @@ const VectorShape = Node$1.create({
|
|
|
69925
69925
|
}
|
|
69926
69926
|
},
|
|
69927
69927
|
fillColor: {
|
|
69928
|
-
default:
|
|
69928
|
+
default: null,
|
|
69929
69929
|
renderDOM: (attrs) => {
|
|
69930
69930
|
if (!attrs.fillColor) return {};
|
|
69931
69931
|
return { "data-fill-color": attrs.fillColor };
|
|
69932
69932
|
}
|
|
69933
69933
|
},
|
|
69934
69934
|
strokeColor: {
|
|
69935
|
-
default:
|
|
69935
|
+
default: null,
|
|
69936
69936
|
renderDOM: (attrs) => {
|
|
69937
69937
|
if (!attrs.strokeColor) return {};
|
|
69938
69938
|
return { "data-stroke-color": attrs.strokeColor };
|
|
@@ -70008,7 +70008,8 @@ const VectorShape = Node$1.create({
|
|
|
70008
70008
|
rendered: false
|
|
70009
70009
|
},
|
|
70010
70010
|
textVerticalAlign: {
|
|
70011
|
-
default: "
|
|
70011
|
+
default: "top",
|
|
70012
|
+
// Per OOXML spec, text box defaults to top alignment
|
|
70012
70013
|
rendered: false
|
|
70013
70014
|
},
|
|
70014
70015
|
textInsets: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const superEditor_converter = require("./SuperConverter-
|
|
2
|
+
const superEditor_converter = require("./SuperConverter-5LUR3VV_.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");
|
|
@@ -15815,7 +15815,7 @@ const canUseDOM = () => {
|
|
|
15815
15815
|
return false;
|
|
15816
15816
|
}
|
|
15817
15817
|
};
|
|
15818
|
-
const summaryVersion = "1.10.
|
|
15818
|
+
const summaryVersion = "1.10.1-next.1";
|
|
15819
15819
|
const nodeKeys = ["group", "content", "marks", "inline", "atom", "defining", "code", "tableRole", "summary"];
|
|
15820
15820
|
const markKeys = ["group", "inclusive", "excludes", "spanning", "code"];
|
|
15821
15821
|
function mapAttributes(attrs) {
|
|
@@ -18566,7 +18566,7 @@ class Editor extends EventEmitter {
|
|
|
18566
18566
|
* Process collaboration migrations
|
|
18567
18567
|
*/
|
|
18568
18568
|
processCollaborationMigrations() {
|
|
18569
|
-
console.debug("[checkVersionMigrations] Current editor version", "1.10.
|
|
18569
|
+
console.debug("[checkVersionMigrations] Current editor version", "1.10.1-next.1");
|
|
18570
18570
|
if (!this.options.ydoc) return;
|
|
18571
18571
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
18572
18572
|
let docVersion = metaMap.get("version");
|
|
@@ -27958,7 +27958,7 @@ class DomPainter {
|
|
|
27958
27958
|
textDiv.style.height = "100%";
|
|
27959
27959
|
textDiv.style.display = "flex";
|
|
27960
27960
|
textDiv.style.flexDirection = "column";
|
|
27961
|
-
const verticalAlign = textVerticalAlign ?? "
|
|
27961
|
+
const verticalAlign = textVerticalAlign ?? "top";
|
|
27962
27962
|
if (verticalAlign === "top") {
|
|
27963
27963
|
textDiv.style.justifyContent = "flex-start";
|
|
27964
27964
|
} else if (verticalAlign === "bottom") {
|
|
@@ -69942,14 +69942,14 @@ const VectorShape = Node$1.create({
|
|
|
69942
69942
|
}
|
|
69943
69943
|
},
|
|
69944
69944
|
fillColor: {
|
|
69945
|
-
default:
|
|
69945
|
+
default: null,
|
|
69946
69946
|
renderDOM: (attrs) => {
|
|
69947
69947
|
if (!attrs.fillColor) return {};
|
|
69948
69948
|
return { "data-fill-color": attrs.fillColor };
|
|
69949
69949
|
}
|
|
69950
69950
|
},
|
|
69951
69951
|
strokeColor: {
|
|
69952
|
-
default:
|
|
69952
|
+
default: null,
|
|
69953
69953
|
renderDOM: (attrs) => {
|
|
69954
69954
|
if (!attrs.strokeColor) return {};
|
|
69955
69955
|
return { "data-stroke-color": attrs.strokeColor };
|
|
@@ -70025,7 +70025,8 @@ const VectorShape = Node$1.create({
|
|
|
70025
70025
|
rendered: false
|
|
70026
70026
|
},
|
|
70027
70027
|
textVerticalAlign: {
|
|
70028
|
-
default: "
|
|
70028
|
+
default: "top",
|
|
70029
|
+
// Per OOXML spec, text box defaults to top alignment
|
|
70029
70030
|
rendered: false
|
|
70030
70031
|
},
|
|
70031
70032
|
textInsets: {
|
|
@@ -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-
|
|
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-BkL5b0bb.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-
|
|
5
|
+
import "./SuperConverter-9B_xwMKY.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-
|
|
7746
|
+
const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-BOODwUAm.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.
|
|
8731
|
+
this.version = "1.10.1-next.1";
|
|
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-
|
|
2
|
+
const index = require("./index-CRvUPNmW.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-
|
|
6
|
+
require("./SuperConverter-5LUR3VV_.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-
|
|
7763
|
+
const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-BVV6s1Am.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.
|
|
8748
|
+
this.version = "1.10.1-next.1";
|
|
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;
|
|
@@ -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-
|
|
5
|
+
const superEditor_converter = require("../chunks/SuperConverter-5LUR3VV_.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-
|
|
3
|
+
import { S } from "../chunks/SuperConverter-9B_xwMKY.es.js";
|
|
4
4
|
import "../chunks/uuid-CjlX8hrF.es.js";
|
|
5
5
|
export {
|
|
6
6
|
S as SuperConverter
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textbox-content-helpers.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/super-converter/v3/handlers/wp/helpers/textbox-content-helpers.js"],"names":[],"mappings":"AAeA;;;;;;;;;;;;;;;;;;GAkBG;AACH,gDAfW,KAAK,KAAQ,eACb,KAAK,KAAQ,GACX,KAAK,KAAQ,CA0BzB;AAED;;;;;;;;;;;;GAYG;AACH,uEAJG;IAAwB,IAAI;IACJ,QAAQ,GAAxB,MAAM;CACd,OAiBF;AAED;;;;;;;GAOG;AACH,+CAHW,MAAM,GAAC,MAAM,GAAC,IAAI,GAAC,SAAS,GAC1B,MAAM,GAAC,SAAS,CAU5B;AAED;;;;;;GAMG;AACH,wDAJW,MAAM,SAAQ,IAAI,GAAC,SAAS,eAE1B,MAAM,GAAC,SAAS,CAQ5B;AAED;;;;;;GAMG;AACH,uFAIC;AAED;;;;;;;GAOG;AACH,0CALW,MAAO,IAAI,GAAC,SAAS,8CA0B/B;AAED;;;;;GAKG;AACH,2DAFa,MAAM,GAAC,IAAI,CAYvB;AAED;;;;;GAKG;AACH,gDAHW,MAAO,IAAI,GAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"textbox-content-helpers.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/super-converter/v3/handlers/wp/helpers/textbox-content-helpers.js"],"names":[],"mappings":"AAeA;;;;;;;;;;;;;;;;;;GAkBG;AACH,gDAfW,KAAK,KAAQ,eACb,KAAK,KAAQ,GACX,KAAK,KAAQ,CA0BzB;AAED;;;;;;;;;;;;GAYG;AACH,uEAJG;IAAwB,IAAI;IACJ,QAAQ,GAAxB,MAAM;CACd,OAiBF;AAED;;;;;;;GAOG;AACH,+CAHW,MAAM,GAAC,MAAM,GAAC,IAAI,GAAC,SAAS,GAC1B,MAAM,GAAC,SAAS,CAU5B;AAED;;;;;;GAMG;AACH,wDAJW,MAAM,SAAQ,IAAI,GAAC,SAAS,eAE1B,MAAM,GAAC,SAAS,CAQ5B;AAED;;;;;;GAMG;AACH,uFAIC;AAED;;;;;;;GAOG;AACH,0CALW,MAAO,IAAI,GAAC,SAAS,8CA0B/B;AAED;;;;;GAKG;AACH,2DAFa,MAAM,GAAC,IAAI,CAYvB;AAED;;;;;GAKG;AACH,gDAHW,MAAO,IAAI,GAAC,SAAS,OAsC/B"}
|
package/dist/super-editor/core/super-converter/v3/handlers/wp/helpers/vector-shape-helpers.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vector-shape-helpers.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/super-converter/v3/handlers/wp/helpers/vector-shape-helpers.js"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,oCAHW,MAAM,GACJ,MAAM,CAuBlB;AAED;;;;;;;GAOG;AACH,6CALW,MAAM,YACN,OAAO,GAAC,MAAM,GAAC,QAAQ,GAAC,QAAQ,SAChC,MAAM,GAAC,MAAM,GACX,MAAM,CAmClB;AAED;;;;GAIG;AACH,+CAFa,MAAM,CAalB;AAED;;;;;GAKG;AACH,4CAHa;IAAE,IAAI,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAAC,IAAI,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,GAAC,IAAI,CAsBzI;AAED;;;;;;GAMG;AACH,2DAFa,MAAM,GAAC,IAAI,
|
|
1
|
+
{"version":3,"file":"vector-shape-helpers.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/super-converter/v3/handlers/wp/helpers/vector-shape-helpers.js"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,oCAHW,MAAM,GACJ,MAAM,CAuBlB;AAED;;;;;;;GAOG;AACH,6CALW,MAAM,YACN,OAAO,GAAC,MAAM,GAAC,QAAQ,GAAC,QAAQ,SAChC,MAAM,GAAC,MAAM,GACX,MAAM,CAmClB;AAED;;;;GAIG;AACH,+CAFa,MAAM,CAalB;AAED;;;;;GAKG;AACH,4CAHa;IAAE,IAAI,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAAC,IAAI,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,GAAC,IAAI,CAsBzI;AAED;;;;;;GAMG;AACH,2DAFa,MAAM,GAAC,IAAI,CAgFvB;AAED;;;;;;GAMG;AACH,yDAFa,MAAM,GAAC,IAAI,CAyGvB"}
|
package/dist/super-editor.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index = require("./chunks/index-
|
|
3
|
+
const index = require("./chunks/index-CRvUPNmW.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-
|
|
7
|
+
const superEditor_converter = require("./chunks/SuperConverter-5LUR3VV_.cjs");
|
|
8
8
|
function isNodeType(node, name) {
|
|
9
9
|
return node.type.name === name;
|
|
10
10
|
}
|
package/dist/super-editor.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { N as Node, M as Mark } from "./chunks/index-
|
|
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-
|
|
1
|
+
import { N as Node, M as Mark } from "./chunks/index-BkL5b0bb.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-BkL5b0bb.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-
|
|
6
|
+
import { S as S2, r } from "./chunks/SuperConverter-9B_xwMKY.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-
|
|
4
|
-
const superdoc = require("./chunks/index-
|
|
3
|
+
const index = require("./chunks/index-CRvUPNmW.cjs");
|
|
4
|
+
const superdoc = require("./chunks/index-eF2m8JAp.cjs");
|
|
5
5
|
const blankDocx = require("./chunks/blank-docx-DfW3Eeh2.cjs");
|
|
6
|
-
const superEditor_converter = require("./chunks/SuperConverter-
|
|
6
|
+
const superEditor_converter = require("./chunks/SuperConverter-5LUR3VV_.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");
|
package/dist/superdoc.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { d, E, m, e, i, ay, k, h, c } from "./chunks/index-
|
|
2
|
-
import { D, H, P, S, c as c2, g } from "./chunks/index-
|
|
1
|
+
import { d, E, m, e, i, ay, k, h, c } from "./chunks/index-BkL5b0bb.es.js";
|
|
2
|
+
import { D, H, P, S, c as c2, g } from "./chunks/index-DqGSxMW3.es.js";
|
|
3
3
|
import { B } from "./chunks/blank-docx-ABm6XYAA.es.js";
|
|
4
|
-
import { S as S2, r } from "./chunks/SuperConverter-
|
|
4
|
+
import { S as S2, r } from "./chunks/SuperConverter-9B_xwMKY.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";
|
package/dist/superdoc.umd.js
CHANGED
|
@@ -18509,7 +18509,9 @@
|
|
|
18509
18509
|
const ln = spPr?.elements?.find((el) => el.name === "a:ln");
|
|
18510
18510
|
if (ln) {
|
|
18511
18511
|
const noFill = ln.elements?.find((el) => el.name === "a:noFill");
|
|
18512
|
-
if (noFill)
|
|
18512
|
+
if (noFill) {
|
|
18513
|
+
return null;
|
|
18514
|
+
}
|
|
18513
18515
|
const solidFill = ln.elements?.find((el) => el.name === "a:solidFill");
|
|
18514
18516
|
if (solidFill) {
|
|
18515
18517
|
const schemeClr2 = solidFill.elements?.find((el) => el.name === "a:schemeClr");
|
|
@@ -18534,11 +18536,21 @@
|
|
|
18534
18536
|
}
|
|
18535
18537
|
}
|
|
18536
18538
|
}
|
|
18537
|
-
if (!style2)
|
|
18539
|
+
if (!style2) {
|
|
18540
|
+
return null;
|
|
18541
|
+
}
|
|
18538
18542
|
const lnRef = style2.elements?.find((el) => el.name === "a:lnRef");
|
|
18539
|
-
if (!lnRef)
|
|
18543
|
+
if (!lnRef) {
|
|
18544
|
+
return null;
|
|
18545
|
+
}
|
|
18546
|
+
const lnRefIdx = lnRef.attributes?.["idx"];
|
|
18547
|
+
if (lnRefIdx === "0") {
|
|
18548
|
+
return null;
|
|
18549
|
+
}
|
|
18540
18550
|
const schemeClr = lnRef.elements?.find((el) => el.name === "a:schemeClr");
|
|
18541
|
-
if (!schemeClr)
|
|
18551
|
+
if (!schemeClr) {
|
|
18552
|
+
return null;
|
|
18553
|
+
}
|
|
18542
18554
|
const themeName = schemeClr.attributes?.["val"];
|
|
18543
18555
|
let color2 = getThemeColor(themeName);
|
|
18544
18556
|
const modifiers2 = schemeClr.elements || [];
|
|
@@ -18557,7 +18569,9 @@
|
|
|
18557
18569
|
}
|
|
18558
18570
|
function extractFillColor(spPr, style2) {
|
|
18559
18571
|
const noFill = spPr?.elements?.find((el) => el.name === "a:noFill");
|
|
18560
|
-
if (noFill)
|
|
18572
|
+
if (noFill) {
|
|
18573
|
+
return null;
|
|
18574
|
+
}
|
|
18561
18575
|
const solidFill = spPr?.elements?.find((el) => el.name === "a:solidFill");
|
|
18562
18576
|
if (solidFill) {
|
|
18563
18577
|
const schemeClr2 = solidFill.elements?.find((el) => el.name === "a:schemeClr");
|
|
@@ -18606,13 +18620,21 @@
|
|
|
18606
18620
|
if (blipFill) {
|
|
18607
18621
|
return "#cccccc";
|
|
18608
18622
|
}
|
|
18609
|
-
if (!style2)
|
|
18623
|
+
if (!style2) {
|
|
18624
|
+
return null;
|
|
18625
|
+
}
|
|
18610
18626
|
const fillRef = style2.elements?.find((el) => el.name === "a:fillRef");
|
|
18611
|
-
if (!fillRef)
|
|
18627
|
+
if (!fillRef) {
|
|
18628
|
+
return null;
|
|
18629
|
+
}
|
|
18612
18630
|
const fillRefIdx = fillRef.attributes?.["idx"];
|
|
18613
|
-
if (fillRefIdx === "0")
|
|
18631
|
+
if (fillRefIdx === "0") {
|
|
18632
|
+
return null;
|
|
18633
|
+
}
|
|
18614
18634
|
const schemeClr = fillRef.elements?.find((el) => el.name === "a:schemeClr");
|
|
18615
|
-
if (!schemeClr)
|
|
18635
|
+
if (!schemeClr) {
|
|
18636
|
+
return null;
|
|
18637
|
+
}
|
|
18616
18638
|
const themeName = schemeClr.attributes?.["val"];
|
|
18617
18639
|
let color2 = getThemeColor(themeName);
|
|
18618
18640
|
const modifiers2 = schemeClr.elements || [];
|
|
@@ -24645,7 +24667,7 @@
|
|
|
24645
24667
|
}
|
|
24646
24668
|
function extractBodyPrProperties(bodyPr) {
|
|
24647
24669
|
const bodyPrAttrs = bodyPr?.attributes || {};
|
|
24648
|
-
let verticalAlign = "
|
|
24670
|
+
let verticalAlign = "top";
|
|
24649
24671
|
const anchorAttr = bodyPrAttrs["anchor"];
|
|
24650
24672
|
if (anchorAttr === "t") verticalAlign = "top";
|
|
24651
24673
|
else if (anchorAttr === "ctr") verticalAlign = "center";
|
|
@@ -39290,7 +39312,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
39290
39312
|
static getStoredSuperdocVersion(docx) {
|
|
39291
39313
|
return SuperConverter.getStoredCustomProperty(docx, "SuperdocVersion");
|
|
39292
39314
|
}
|
|
39293
|
-
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "1.10.
|
|
39315
|
+
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "1.10.1-next.1") {
|
|
39294
39316
|
return SuperConverter.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
|
|
39295
39317
|
}
|
|
39296
39318
|
/**
|
|
@@ -65705,7 +65727,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
65705
65727
|
return false;
|
|
65706
65728
|
}
|
|
65707
65729
|
};
|
|
65708
|
-
const summaryVersion = "1.10.
|
|
65730
|
+
const summaryVersion = "1.10.1-next.1";
|
|
65709
65731
|
const nodeKeys = ["group", "content", "marks", "inline", "atom", "defining", "code", "tableRole", "summary"];
|
|
65710
65732
|
const markKeys = ["group", "inclusive", "excludes", "spanning", "code"];
|
|
65711
65733
|
function mapAttributes(attrs) {
|
|
@@ -68457,7 +68479,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
68457
68479
|
* Process collaboration migrations
|
|
68458
68480
|
*/
|
|
68459
68481
|
processCollaborationMigrations() {
|
|
68460
|
-
console.debug("[checkVersionMigrations] Current editor version", "1.10.
|
|
68482
|
+
console.debug("[checkVersionMigrations] Current editor version", "1.10.1-next.1");
|
|
68461
68483
|
if (!this.options.ydoc) return;
|
|
68462
68484
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
68463
68485
|
let docVersion = metaMap.get("version");
|
|
@@ -77851,7 +77873,7 @@ ${o}
|
|
|
77851
77873
|
textDiv.style.height = "100%";
|
|
77852
77874
|
textDiv.style.display = "flex";
|
|
77853
77875
|
textDiv.style.flexDirection = "column";
|
|
77854
|
-
const verticalAlign = textVerticalAlign ?? "
|
|
77876
|
+
const verticalAlign = textVerticalAlign ?? "top";
|
|
77855
77877
|
if (verticalAlign === "top") {
|
|
77856
77878
|
textDiv.style.justifyContent = "flex-start";
|
|
77857
77879
|
} else if (verticalAlign === "bottom") {
|
|
@@ -119742,14 +119764,14 @@ ${o}
|
|
|
119742
119764
|
}
|
|
119743
119765
|
},
|
|
119744
119766
|
fillColor: {
|
|
119745
|
-
default:
|
|
119767
|
+
default: null,
|
|
119746
119768
|
renderDOM: (attrs) => {
|
|
119747
119769
|
if (!attrs.fillColor) return {};
|
|
119748
119770
|
return { "data-fill-color": attrs.fillColor };
|
|
119749
119771
|
}
|
|
119750
119772
|
},
|
|
119751
119773
|
strokeColor: {
|
|
119752
|
-
default:
|
|
119774
|
+
default: null,
|
|
119753
119775
|
renderDOM: (attrs) => {
|
|
119754
119776
|
if (!attrs.strokeColor) return {};
|
|
119755
119777
|
return { "data-stroke-color": attrs.strokeColor };
|
|
@@ -119825,7 +119847,8 @@ ${o}
|
|
|
119825
119847
|
rendered: false
|
|
119826
119848
|
},
|
|
119827
119849
|
textVerticalAlign: {
|
|
119828
|
-
default: "
|
|
119850
|
+
default: "top",
|
|
119851
|
+
// Per OOXML spec, text box defaults to top alignment
|
|
119829
119852
|
rendered: false
|
|
119830
119853
|
},
|
|
119831
119854
|
textInsets: {
|
|
@@ -152576,7 +152599,7 @@ ${reason}`);
|
|
|
152576
152599
|
this.config.colors = shuffleArray(this.config.colors);
|
|
152577
152600
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
152578
152601
|
this.colorIndex = 0;
|
|
152579
|
-
this.version = "1.10.
|
|
152602
|
+
this.version = "1.10.1-next.1";
|
|
152580
152603
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
152581
152604
|
this.superdocId = config2.superdocId || v4();
|
|
152582
152605
|
this.colors = this.config.colors;
|