@harbour-enterprises/superdoc 0.10.19 → 0.10.21
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/{super-editor.es-DRh_g0Fr.es.js → super-editor.es-BQjOA2NF.es.js} +7 -5
- package/dist/chunks/{super-editor.es-CUfMXMsJ.cjs → super-editor.es-C1QGjXix.cjs} +10 -10
- package/dist/super-editor/chunks/{converter-BCeb2-D7.js → converter-BOz2wTVM.js} +6 -4
- package/dist/super-editor/chunks/{docx-zipper-DIG-WaYc.js → docx-zipper-BcsVZrOX.js} +1 -1
- package/dist/super-editor/chunks/{editor-Bs_Uq4bv.js → editor-XIR3NpyI.js} +3 -3
- package/dist/super-editor/chunks/{toolbar-BGwS09QD.js → toolbar-C-HTWKUi.js} +2 -2
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/core/super-converter/SuperConverter.d.ts.map +1 -1
- package/dist/super-editor/docx-zipper.es.js +2 -2
- package/dist/super-editor/editor.es.js +3 -3
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/super-editor.es.js +6 -6
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +1 -1
- package/dist/super-editor.es.js +1 -1
- package/dist/superdoc.cjs +2 -2
- package/dist/superdoc.es.js +3 -3
- package/dist/superdoc.umd.js +8 -6
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -15459,7 +15459,7 @@ const TT = [
|
|
|
15459
15459
|
};
|
|
15460
15460
|
function MT(t, e, n) {
|
|
15461
15461
|
if (!t) return;
|
|
15462
|
-
const { attributes: r } = t, { paragraphProperties: o = {} } = r, { elements: i = [] } = o, s = t.elements.find((w) => w.name === "w:pPr")?.elements?.find((w) => w.name === "w:pStyle")?.attributes["w:val"], a = ac({ node: t, styleId: s, docx: n });
|
|
15462
|
+
const { attributes: r = {} } = t, { paragraphProperties: o = {} } = r, { elements: i = [] } = o, s = t.elements.find((w) => w.name === "w:pPr")?.elements?.find((w) => w.name === "w:pStyle")?.attributes["w:val"], a = ac({ node: t, styleId: s, docx: n });
|
|
15463
15463
|
if (!a) return {};
|
|
15464
15464
|
const l = a?.elements.find((w) => w.name === "w:numId")?.attributes["w:val"], c = a?.elements.find((w) => w.name === "w:ilvl")?.attributes["w:val"] || u1(s, n), u = i.find((w) => w.name === "w:pStyle")?.attributes["w:val"], {
|
|
15465
15465
|
start: d,
|
|
@@ -16255,7 +16255,7 @@ const fs = class v1 {
|
|
|
16255
16255
|
return;
|
|
16256
16256
|
}
|
|
16257
16257
|
}
|
|
16258
|
-
static updateDocumentVersion(e = this.convertedXml, n = "0.10.
|
|
16258
|
+
static updateDocumentVersion(e = this.convertedXml, n = "0.10.21") {
|
|
16259
16259
|
const r = "docProps/custom.xml";
|
|
16260
16260
|
e[r] || (e[r] = x1());
|
|
16261
16261
|
const o = e["docProps/custom.xml"];
|
|
@@ -16274,7 +16274,9 @@ const fs = class v1 {
|
|
|
16274
16274
|
getDocumentDefaultStyles() {
|
|
16275
16275
|
const e = this.convertedXml["word/styles.xml"];
|
|
16276
16276
|
if (!e) return {};
|
|
16277
|
-
const n = e.elements[0].elements.find((i) => i.name === "w:docDefaults").elements.find((i) => i.name === "w:rPrDefault")
|
|
16277
|
+
const n = e.elements[0].elements.find((i) => i.name === "w:docDefaults").elements.find((i) => i.name === "w:rPrDefault");
|
|
16278
|
+
if (!n.elements) return {};
|
|
16279
|
+
const r = n.elements[0].elements, o = r?.find((i) => i.name === "w:rFonts");
|
|
16278
16280
|
if ("elements" in n) {
|
|
16279
16281
|
const i = r.find((u) => u.name === "w:rFonts")?.attributes["w:asciiTheme"];
|
|
16280
16282
|
let s, a;
|
|
@@ -16480,7 +16482,7 @@ function p6(t) {
|
|
|
16480
16482
|
function x1() {
|
|
16481
16483
|
return GE;
|
|
16482
16484
|
}
|
|
16483
|
-
function k1(t = 2, e = "0.10.
|
|
16485
|
+
function k1(t = 2, e = "0.10.21") {
|
|
16484
16486
|
return {
|
|
16485
16487
|
type: "element",
|
|
16486
16488
|
name: "property",
|
|
@@ -28936,7 +28938,7 @@ const XD = class wx extends J5 {
|
|
|
28936
28938
|
* @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
|
|
28937
28939
|
*/
|
|
28938
28940
|
processCollaborationMigrations() {
|
|
28939
|
-
if (console.debug("[checkVersionMigrations] Current editor version", "0.10.
|
|
28941
|
+
if (console.debug("[checkVersionMigrations] Current editor version", "0.10.21"), !this.options.ydoc) return;
|
|
28940
28942
|
let e = this.options.ydoc.getMap("meta").get("version");
|
|
28941
28943
|
e || (e = "initial"), console.debug("[checkVersionMigrations] Document version", e);
|
|
28942
28944
|
const n = ew(e) || [], r = this.state.plugins.find((i) => i.key.startsWith("y-sync"));
|