@harbour-enterprises/superdoc 0.6.45 → 0.6.46
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-oxGmJoDr.js → super-editor.es-DuHNfcMJ.js} +9 -8
- package/dist/chunks/super-editor.es-DuHNfcMJ.js.map +1 -0
- package/dist/super-editor/chunks/{converter-BdP8QDs2.js → converter-dVflwKUy.js} +3 -3
- package/dist/super-editor/chunks/{converter-BdP8QDs2.js.map → converter-dVflwKUy.js.map} +1 -1
- package/dist/super-editor/chunks/{docx-zipper-C_rx6KHO.js → docx-zipper-Co5Kj5Y8.js} +7 -6
- package/dist/super-editor/chunks/docx-zipper-Co5Kj5Y8.js.map +1 -0
- package/dist/super-editor/chunks/{editor-l2eNM1kh.js → editor-CvcoDtGI.js} +4 -4
- package/dist/super-editor/chunks/{editor-l2eNM1kh.js.map → editor-CvcoDtGI.js.map} +1 -1
- package/dist/super-editor/chunks/{toolbar-Cct-ap6j.js → toolbar-CY_a4I-4.js} +3 -3
- package/dist/super-editor/chunks/{toolbar-Cct-ap6j.js.map → toolbar-CY_a4I-4.js.map} +1 -1
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/core/DocxZipper.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.es.js +1 -1
- package/dist/superdoc.es.js +3 -3
- package/dist/superdoc.umd.js +9 -8
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/super-editor.es-oxGmJoDr.js.map +0 -1
- package/dist/super-editor/chunks/docx-zipper-C_rx6KHO.js.map +0 -1
|
@@ -20570,7 +20570,7 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
20570
20570
|
return;
|
|
20571
20571
|
}
|
|
20572
20572
|
}
|
|
20573
|
-
static updateDocumentVersion(docx = this.convertedXml, version = "0.6.
|
|
20573
|
+
static updateDocumentVersion(docx = this.convertedXml, version = "0.6.46") {
|
|
20574
20574
|
const customLocation = "docProps/custom.xml";
|
|
20575
20575
|
if (!docx[customLocation]) {
|
|
20576
20576
|
docx[customLocation] = generateCustomXml();
|
|
@@ -20828,7 +20828,7 @@ function storeSuperdocVersion(docx) {
|
|
|
20828
20828
|
function generateCustomXml() {
|
|
20829
20829
|
return DEFAULT_CUSTOM_XML;
|
|
20830
20830
|
}
|
|
20831
|
-
function generateSuperdocVersion(version = "0.6.
|
|
20831
|
+
function generateSuperdocVersion(version = "0.6.46") {
|
|
20832
20832
|
return {
|
|
20833
20833
|
type: "element",
|
|
20834
20834
|
name: "property",
|
|
@@ -23274,12 +23274,13 @@ class DocxZipper {
|
|
|
23274
23274
|
async exportFromCollaborativeDocx(docx, updatedDocs, media, fonts) {
|
|
23275
23275
|
const zip = new JSZip();
|
|
23276
23276
|
for (const file of docx) {
|
|
23277
|
-
|
|
23278
|
-
if (file.name in updatedDocs) {
|
|
23279
|
-
content = updatedDocs[file.name];
|
|
23280
|
-
}
|
|
23277
|
+
const content = file.content;
|
|
23281
23278
|
zip.file(file.name, content);
|
|
23282
23279
|
}
|
|
23280
|
+
Object.keys(updatedDocs).forEach((key) => {
|
|
23281
|
+
const content = updatedDocs[key];
|
|
23282
|
+
zip.file(key, content);
|
|
23283
|
+
});
|
|
23283
23284
|
Object.keys(media).forEach((name) => {
|
|
23284
23285
|
const binaryData = Buffer2.from(media[name], "base64");
|
|
23285
23286
|
zip.file(`word/media/${name}`, binaryData);
|
|
@@ -34854,7 +34855,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
34854
34855
|
* @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
|
|
34855
34856
|
*/
|
|
34856
34857
|
processCollaborationMigrations() {
|
|
34857
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.6.
|
|
34858
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.6.46");
|
|
34858
34859
|
if (!this.options.ydoc) return;
|
|
34859
34860
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
34860
34861
|
let docVersion = metaMap.get("version");
|
|
@@ -58297,4 +58298,4 @@ export {
|
|
|
58297
58298
|
helpers as k,
|
|
58298
58299
|
index as l
|
|
58299
58300
|
};
|
|
58300
|
-
//# sourceMappingURL=super-editor.es-
|
|
58301
|
+
//# sourceMappingURL=super-editor.es-DuHNfcMJ.js.map
|