@harbour-enterprises/superdoc 0.6.46 → 0.6.47
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-DuHNfcMJ.js → super-editor.es-BimqHKz4.js} +10 -13
- package/dist/chunks/{super-editor.es-DuHNfcMJ.js.map → super-editor.es-BimqHKz4.js.map} +1 -1
- package/dist/super-editor/chunks/{converter-dVflwKUy.js → converter-RUbkHvVA.js} +3 -3
- package/dist/super-editor/chunks/{converter-dVflwKUy.js.map → converter-RUbkHvVA.js.map} +1 -1
- package/dist/super-editor/chunks/{docx-zipper-Co5Kj5Y8.js → docx-zipper-BbeRnWFQ.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-Co5Kj5Y8.js.map → docx-zipper-BbeRnWFQ.js.map} +1 -1
- package/dist/super-editor/chunks/{editor-CvcoDtGI.js → editor-n0njCfa5.js} +10 -13
- package/dist/super-editor/chunks/editor-n0njCfa5.js.map +1 -0
- package/dist/super-editor/chunks/{toolbar-CY_a4I-4.js → toolbar-CMCaGLDm.js} +3 -3
- package/dist/super-editor/chunks/{toolbar-CY_a4I-4.js.map → toolbar-CMCaGLDm.js.map} +1 -1
- 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/extensions/comment/comments-helpers.d.ts.map +1 -1
- 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 +10 -13
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/super-editor/chunks/editor-CvcoDtGI.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.47") {
|
|
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.47") {
|
|
20832
20832
|
return {
|
|
20833
20833
|
type: "element",
|
|
20834
20834
|
name: "property",
|
|
@@ -34056,19 +34056,18 @@ const prepareCommentsForImport = (doc2, tr, schema) => {
|
|
|
34056
34056
|
doc2.descendants((node2, pos) => {
|
|
34057
34057
|
const { type: type2 } = node2;
|
|
34058
34058
|
if (type2.name === "commentRangeStart") {
|
|
34059
|
-
|
|
34059
|
+
toMark.push({
|
|
34060
34060
|
"w:id": node2.attrs["w:id"],
|
|
34061
34061
|
internal: node2.attrs.internal,
|
|
34062
34062
|
start: pos
|
|
34063
|
-
};
|
|
34064
|
-
|
|
34065
|
-
toDelete.push({ start: pos - 1, end: pos });
|
|
34063
|
+
});
|
|
34064
|
+
toDelete.push({ start: pos, end: pos + 1 });
|
|
34066
34065
|
} else if (type2.name === "commentRangeEnd") {
|
|
34067
34066
|
const itemToMark = toMark.find((p) => p["w:id"] === node2.attrs["w:id"]);
|
|
34068
34067
|
if (!itemToMark) return;
|
|
34069
34068
|
const { start: start2 } = itemToMark;
|
|
34070
34069
|
const markAttrs = {
|
|
34071
|
-
importedId:
|
|
34070
|
+
importedId: node2.attrs["w:id"],
|
|
34072
34071
|
internal: itemToMark.internal
|
|
34073
34072
|
};
|
|
34074
34073
|
tr.addMark(start2, pos + 1, schema.marks[CommentMarkName].create(markAttrs));
|
|
@@ -34077,10 +34076,8 @@ const prepareCommentsForImport = (doc2, tr, schema) => {
|
|
|
34077
34076
|
toDelete.push({ start: pos, end: pos + 1 });
|
|
34078
34077
|
}
|
|
34079
34078
|
});
|
|
34080
|
-
toDelete.sort((a, b) => b.
|
|
34081
|
-
|
|
34082
|
-
tr.delete(end2, end2 + 1);
|
|
34083
|
-
tr.delete(start2, start2 + 1);
|
|
34079
|
+
toDelete.sort((a, b) => b.start - a.start).forEach(({ start: start2, end: end2 }) => {
|
|
34080
|
+
tr.delete(start2, end2);
|
|
34084
34081
|
});
|
|
34085
34082
|
};
|
|
34086
34083
|
const CommentsPluginKey = new PluginKey("comments");
|
|
@@ -34855,7 +34852,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
34855
34852
|
* @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
|
|
34856
34853
|
*/
|
|
34857
34854
|
processCollaborationMigrations() {
|
|
34858
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.6.
|
|
34855
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.6.47");
|
|
34859
34856
|
if (!this.options.ydoc) return;
|
|
34860
34857
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
34861
34858
|
let docVersion = metaMap.get("version");
|
|
@@ -58298,4 +58295,4 @@ export {
|
|
|
58298
58295
|
helpers as k,
|
|
58299
58296
|
index as l
|
|
58300
58297
|
};
|
|
58301
|
-
//# sourceMappingURL=super-editor.es-
|
|
58298
|
+
//# sourceMappingURL=super-editor.es-BimqHKz4.js.map
|