@harbour-enterprises/superdoc 0.11.29 → 0.11.30
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/{index-Y7BlAr93.es.js → index-BIKukPks.es.js} +2 -2
- package/dist/chunks/{index-CqRwYOdx.cjs → index-BJQ3rSJD.cjs} +1 -1
- package/dist/chunks/{index-CPZ-IxHT.es.js → index-D5LUU_DK.es.js} +1 -1
- package/dist/chunks/{index-BXKGjuVW.cjs → index-D8Qchtwe.cjs} +1 -1
- package/dist/chunks/{super-editor.es-CsEQg4xc.es.js → super-editor.es-B9zU4phN.es.js} +3 -3
- package/dist/chunks/{super-editor.es-Bl9myfzE.cjs → super-editor.es-DR8TyHgu.cjs} +3 -3
- package/dist/chunks/{url-t15h9onH.es.js → url-ChEJem8_.es.js} +1 -1
- package/dist/chunks/{url-6Xu7gR4T.cjs → url-lfePTVJU.cjs} +1 -1
- package/dist/chunks/xml-js-BXHFNveP.cjs +10 -0
- package/dist/chunks/{xml-js-kwrvzyhm.es.js → xml-js-Dq803VXB.es.js} +739 -753
- package/dist/core/SuperDoc.d.ts +3 -2
- package/dist/core/SuperDoc.d.ts.map +1 -1
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-CJL8YHIz.js → converter-69UAZ0Ft.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-Bdd3jp6o.js → docx-zipper-CvLDRHYT.js} +1 -1
- package/dist/super-editor/chunks/{editor-DE58B9UE.js → editor-Br7gJJbN.js} +3 -3
- package/dist/super-editor/chunks/{toolbar-lfYkRb7A.js → toolbar-BX3EQkLT.js} +2 -2
- package/dist/super-editor/converter.es.js +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 +26 -26
- package/dist/superdoc.es.js +736 -735
- package/dist/superdoc.umd.js +9 -8
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/xml-js-zhwNEV5e.cjs +0 -10
package/dist/superdoc.umd.js
CHANGED
|
@@ -24080,7 +24080,7 @@ Actual: ` + p3.attribValue
|
|
|
24080
24080
|
return;
|
|
24081
24081
|
}
|
|
24082
24082
|
}
|
|
24083
|
-
static updateDocumentVersion(e = this.convertedXml, t = "0.11.
|
|
24083
|
+
static updateDocumentVersion(e = this.convertedXml, t = "0.11.30") {
|
|
24084
24084
|
const n = "docProps/custom.xml";
|
|
24085
24085
|
e[n] || (e[n] = Fu$2());
|
|
24086
24086
|
const i3 = e["docProps/custom.xml"];
|
|
@@ -24343,7 +24343,7 @@ Actual: ` + p3.attribValue
|
|
|
24343
24343
|
function Fu$2() {
|
|
24344
24344
|
return Gf$1;
|
|
24345
24345
|
}
|
|
24346
|
-
function Bu$2(r22 = 2, e = "0.11.
|
|
24346
|
+
function Bu$2(r22 = 2, e = "0.11.30") {
|
|
24347
24347
|
return {
|
|
24348
24348
|
type: "element",
|
|
24349
24349
|
name: "property",
|
|
@@ -36983,7 +36983,7 @@ Actual: ` + p3.attribValue
|
|
|
36983
36983
|
* @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
|
|
36984
36984
|
*/
|
|
36985
36985
|
processCollaborationMigrations() {
|
|
36986
|
-
if (console.debug("[checkVersionMigrations] Current editor version", "0.11.
|
|
36986
|
+
if (console.debug("[checkVersionMigrations] Current editor version", "0.11.30"), !this.options.ydoc) return;
|
|
36987
36987
|
let r = this.options.ydoc.getMap("meta").get("version");
|
|
36988
36988
|
r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
|
|
36989
36989
|
const i3 = hl$1(r) || [], s = this.state.plugins.find((c3) => c3.key.startsWith("y-sync"));
|
|
@@ -70949,7 +70949,7 @@ ${style2}
|
|
|
70949
70949
|
this.config.colors = shuffleArray(this.config.colors);
|
|
70950
70950
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
70951
70951
|
this.colorIndex = 0;
|
|
70952
|
-
this.version = "0.11.
|
|
70952
|
+
this.version = "0.11.30";
|
|
70953
70953
|
console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
70954
70954
|
this.superdocId = config.superdocId || v4();
|
|
70955
70955
|
this.colors = this.config.colors;
|
|
@@ -71273,10 +71273,11 @@ ${style2}
|
|
|
71273
71273
|
commentsType,
|
|
71274
71274
|
exportedName,
|
|
71275
71275
|
additionalFiles = [],
|
|
71276
|
-
additionalFileNames = []
|
|
71276
|
+
additionalFileNames = [],
|
|
71277
|
+
isFinalDoc = false
|
|
71277
71278
|
} = {}) {
|
|
71278
71279
|
const baseFileName = exportedName ? cleanName(exportedName) : cleanName(this.config.title);
|
|
71279
|
-
const docxFiles = await this.exportEditorsToDOCX({ commentsType });
|
|
71280
|
+
const docxFiles = await this.exportEditorsToDOCX({ commentsType, isFinalDoc });
|
|
71280
71281
|
const blobsToZip = [...additionalFiles];
|
|
71281
71282
|
const filenames = [...additionalFileNames];
|
|
71282
71283
|
if (exportType.includes("docx")) {
|
|
@@ -71292,7 +71293,7 @@ ${style2}
|
|
|
71292
71293
|
createDownload(zip, baseFileName, "zip");
|
|
71293
71294
|
}
|
|
71294
71295
|
}
|
|
71295
|
-
async exportEditorsToDOCX({ commentsType } = {}) {
|
|
71296
|
+
async exportEditorsToDOCX({ commentsType, isFinalDoc } = {}) {
|
|
71296
71297
|
const comments = [];
|
|
71297
71298
|
if (commentsType !== "clean") {
|
|
71298
71299
|
comments.push(...this.commentsStore?.translateCommentsForExport());
|
|
@@ -71301,7 +71302,7 @@ ${style2}
|
|
|
71301
71302
|
this.superdocStore.documents.forEach((doc2) => {
|
|
71302
71303
|
const editor = doc2.getEditor();
|
|
71303
71304
|
if (editor) {
|
|
71304
|
-
docxPromises.push(editor.exportDocx({ comments, commentsType }));
|
|
71305
|
+
docxPromises.push(editor.exportDocx({ isFinalDoc, comments, commentsType }));
|
|
71305
71306
|
}
|
|
71306
71307
|
});
|
|
71307
71308
|
return await Promise.all(docxPromises);
|