@harbour-enterprises/superdoc 0.6.112 → 0.7.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/{super-editor.es-B8fXoY6P.js → super-editor.es-C3EfxPkJ.js} +27 -15
- package/dist/chunks/super-editor.es-C3EfxPkJ.js.map +1 -0
- package/dist/super-editor/chunks/{converter-s9yhBEHO.js → converter-ei3PNE_E.js} +24 -13
- package/dist/super-editor/chunks/{converter-s9yhBEHO.js.map → converter-ei3PNE_E.js.map} +1 -1
- package/dist/super-editor/chunks/{docx-zipper-DEE6oGA6.js → docx-zipper-B7uIfmYn.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-DEE6oGA6.js.map → docx-zipper-B7uIfmYn.js.map} +1 -1
- package/dist/super-editor/chunks/{editor-BkJfSOly.js → editor-Bggv0Jux.js} +6 -5
- package/dist/super-editor/chunks/editor-Bggv0Jux.js.map +1 -0
- package/dist/super-editor/chunks/{toolbar-Ib-MW1xa.js → toolbar-DLqRjwsa.js} +3 -3
- package/dist/super-editor/chunks/{toolbar-Ib-MW1xa.js.map → toolbar-DLqRjwsa.js.map} +1 -1
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/core/super-converter/exporter.d.ts.map +1 -1
- package/dist/super-editor/core/super-converter/helpers.d.ts +1 -0
- package/dist/super-editor/core/super-converter/helpers.d.ts.map +1 -1
- package/dist/super-editor/core/super-converter/v2/exporter/commentsExporter.d.ts.map +1 -1
- package/dist/super-editor/core/super-converter/v2/importer/documentCommentsImporter.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/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 +27 -15
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/super-editor.es-B8fXoY6P.js.map +0 -1
- package/dist/super-editor/chunks/editor-BkJfSOly.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exporter.d.ts","sourceRoot":"","sources":["../../../src/core/super-converter/exporter.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"exporter.d.ts","sourceRoot":"","sources":["../../../src/core/super-converter/exporter.js"],"names":[],"mappings":"AAmBA;;;;;GAKG;AAEH;;;;;;;;;;;;GAYG;AAEH;;;GAGG;AAEH;;;GAGG;AAEH;;;;GAIG;AAEH;;;;;GAKG;AACH,2CAHW,YAAY,GACV,YAAY,CAkCxB;AA8BD;;;;;GAKG;AACH,qDAFa,YAAY,CAyBxB;AA+6CD;;;;;;;;;EASC;AAED;IACE,4BAEC;IADC,eAA0B;IAG5B,gDAIC;;CA4DF;;;;;;;;;;;;;mBAjoDa,KAAQ;;;;;;UAKR,MAAM;;;;aACN,KAAK,CAAC,UAAU,CAAC;;;;;;;;;;;;;UAMjB,MAAM;;;;cACN,KAAK,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;UAgBnB,MAAM"}
|
|
@@ -15,4 +15,5 @@ export function getArrayBufferFromUrl(url: any): Promise<ArrayBuffer>;
|
|
|
15
15
|
export function getContentTypesFromXml(contentTypesXml: any): string[];
|
|
16
16
|
export function getHexColorFromDocxSystem(docxColor: any): string;
|
|
17
17
|
export function isValidHexColor(color: any): boolean;
|
|
18
|
+
export function rgbToHex(rgb: any): string;
|
|
18
19
|
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/core/super-converter/helpers.js"],"names":[],"mappings":"AAAA,mDAIC;AAED,kDAIC;AAED,kDAIC;AAED,mDAIC;AAED,iDAGC;AAED,iDAGC;AAED,2DAGC;AAOD,8CAKC;AAED,6CAIC;AAED,wDAGC;AArBD,2DAGC;AAoBD,8DAKC;AAED,yDAGC;AAED,sEAIC;AAED,uEAKC;AAED,kEAoBC;AAED,qDASC"}
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/core/super-converter/helpers.js"],"names":[],"mappings":"AAAA,mDAIC;AAED,kDAIC;AAED,kDAIC;AAED,mDAIC;AAED,iDAGC;AAED,iDAGC;AAED,2DAGC;AAOD,8CAKC;AAED,6CAIC;AAED,wDAGC;AArBD,2DAGC;AAoBD,8DAKC;AAED,yDAGC;AAED,sEAIC;AAED,uEAKC;AAED,kEAoBC;AAED,qDASC;AAOD,2CAKC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commentsExporter.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/v2/exporter/commentsExporter.js"],"names":[],"mappings":"AAKA;;;;;GAKG;AACH,kEAoCC;AA0BM,yDAMN;AAWM,8DAHI,MAAM,
|
|
1
|
+
{"version":3,"file":"commentsExporter.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/v2/exporter/commentsExporter.js"],"names":[],"mappings":"AAKA;;;;;GAKG;AACH,kEAoCC;AA0BM,yDAMN;AAWM,8DAHI,MAAM,yBA6BhB;AASM,kCAHI,MAAM,GACJ,MAAM,GAAG,IAAI,CAQzB;AAQM,8CAHI,MAAM,GACJ,MAAM,CAKlB;AAUM,+CAJI,KAAQ,yBA2BlB;AAUM,wFAyBN;AAYM,sGAkCN;AAQM,0CAEN;AASM,6EAQN;AASM,kFAeN;AAQM,4EASN;AASM,0DAIN;AASM;;;EAiDN"}
|
package/dist/super-editor/core/super-converter/v2/importer/documentCommentsImporter.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"documentCommentsImporter.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/v2/importer/documentCommentsImporter.js"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AACH,4CANG;IAA2B,IAAI,EAAvB,UAAU;IACc,eAAe,EAAvC,eAAe;IACQ,SAAS,EAAhC,cAAc;IACC,MAAM,EAArB,MAAM;CACd,
|
|
1
|
+
{"version":3,"file":"documentCommentsImporter.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/v2/importer/documentCommentsImporter.js"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AACH,4CANG;IAA2B,IAAI,EAAvB,UAAU;IACc,eAAe,EAAvC,eAAe;IACQ,SAAS,EAAhC,cAAc;IACC,MAAM,EAArB,MAAM;CACd,SAgDF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { E } from "./chunks/editor-
|
|
2
|
-
import "./chunks/converter-
|
|
3
|
-
import "./chunks/docx-zipper-
|
|
1
|
+
import { E } from "./chunks/editor-Bggv0Jux.js";
|
|
2
|
+
import "./chunks/converter-ei3PNE_E.js";
|
|
3
|
+
import "./chunks/docx-zipper-B7uIfmYn.js";
|
|
4
4
|
export {
|
|
5
5
|
E as Editor
|
|
6
6
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"comments-helpers.d.ts","sourceRoot":"","sources":["../../../src/extensions/comment/comments-helpers.js"],"names":[],"mappings":"AAcO,uEANJ;IAAuB,SAAS,EAAxB,MAAM;CACd,GAGU,IAAI,CAUhB;AAUM,gEAHI,OAAO,mBAAmB,EAAE,IAAI,SAkB1C;AAWM,8CANI,OAAO,mBAAmB,EAAE,IAAI,MAChC,OAAO,mBAAmB,EAAE,WAAW,UACvC,OAAO,mBAAmB,EAAE,MAAM,mBAEhC,IAAI,
|
|
1
|
+
{"version":3,"file":"comments-helpers.d.ts","sourceRoot":"","sources":["../../../src/extensions/comment/comments-helpers.js"],"names":[],"mappings":"AAcO,uEANJ;IAAuB,SAAS,EAAxB,MAAM;CACd,GAGU,IAAI,CAUhB;AAUM,gEAHI,OAAO,mBAAmB,EAAE,IAAI,SAkB1C;AAWM,8CANI,OAAO,mBAAmB,EAAE,IAAI,MAChC,OAAO,mBAAmB,EAAE,WAAW,UACvC,OAAO,mBAAmB,EAAE,MAAM,mBAEhC,IAAI,CA0EhB;AASM,oDAMN;AAWM,8CALI,OAAO,mBAAmB,EAAE,IAAI,MAChC,OAAO,mBAAmB,EAAE,WAAW,UACvC,OAAO,mBAAmB,EAAE,MAAM,mBAChC,IAAI,CA0DhB;AAUM,qEA2DN;AAYM,oFANJ;IAAuB,cAAc;IACd,QAAQ;IACP,UAAU;IACP,MAAM,EAAzB,UAAU;CAClB,UAQF"}
|
|
@@ -9,13 +9,13 @@ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read fr
|
|
|
9
9
|
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
10
10
|
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
11
11
|
var _interceptedCommands, _SuperToolbar_instances, makeToolbarItems_fn, initDefaultFonts_fn, updateHighlightColors_fn, deactivateAll_fn, updateToolbarHistory_fn, runCommandWithArgumentOnly_fn;
|
|
12
|
-
import { _ as _export_sfc, a as getQuickFormatList, b as generateLinkedStyleString, I as ImagePlaceholderPluginKey, f as findPlaceholder, c as findParentNode, d as getActiveFormatting, i as isInTable, u as undoDepth, r as redoDepth, E as Editor, e as getStarterExtensions, P as Placeholder, h as getRichTextExtensions } from "./chunks/editor-
|
|
13
|
-
import { k, m, j, l } from "./chunks/editor-
|
|
14
|
-
import { O as getDefaultExportFromCjs, v as v4, T as TextSelection, U as vClickOutside } from "./chunks/converter-
|
|
15
|
-
import { C } from "./chunks/converter-
|
|
12
|
+
import { _ as _export_sfc, a as getQuickFormatList, b as generateLinkedStyleString, I as ImagePlaceholderPluginKey, f as findPlaceholder, c as findParentNode, d as getActiveFormatting, i as isInTable, u as undoDepth, r as redoDepth, E as Editor, e as getStarterExtensions, P as Placeholder, h as getRichTextExtensions } from "./chunks/editor-Bggv0Jux.js";
|
|
13
|
+
import { k, m, j, l } from "./chunks/editor-Bggv0Jux.js";
|
|
14
|
+
import { O as getDefaultExportFromCjs, v as v4, T as TextSelection, U as vClickOutside } from "./chunks/converter-ei3PNE_E.js";
|
|
15
|
+
import { C } from "./chunks/converter-ei3PNE_E.js";
|
|
16
16
|
import { ref, createElementBlock, openBlock, createElementVNode, unref, getCurrentInstance, computed, watch, onMounted, createCommentVNode, withDirectives, withKeys, normalizeClass, withModifiers, vModelText, createTextVNode, toDisplayString, Fragment, renderList, normalizeStyle, createVNode, h, createApp, reactive, onUnmounted, shallowRef, onBeforeUnmount, createBlock } from "vue";
|
|
17
|
-
import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, N as NSkeleton } from "./chunks/toolbar-
|
|
18
|
-
import { D } from "./chunks/docx-zipper-
|
|
17
|
+
import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, N as NSkeleton } from "./chunks/toolbar-DLqRjwsa.js";
|
|
18
|
+
import { D } from "./chunks/docx-zipper-B7uIfmYn.js";
|
|
19
19
|
import { createZip } from "./file-zipper.es.js";
|
|
20
20
|
var eventemitter3 = { exports: {} };
|
|
21
21
|
(function(module) {
|
package/dist/super-editor.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _, D, E, S, a, b, c, T, d, i, g, e, f, h, j, k, l } from "./chunks/super-editor.es-
|
|
1
|
+
import { _, D, E, S, a, b, c, T, d, i, g, e, f, h, j, k, l } from "./chunks/super-editor.es-C3EfxPkJ.js";
|
|
2
2
|
import "./chunks/vue-BjMDYCe1.js";
|
|
3
3
|
export {
|
|
4
4
|
_ as BasicUpload,
|
package/dist/superdoc.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { E as Editor, h as getRichTextExtensions, b as SuperInput, a as SuperEditor, c as SuperToolbar, d as createZip } from "./chunks/super-editor.es-
|
|
2
|
-
import { S, i, k, l } from "./chunks/super-editor.es-
|
|
1
|
+
import { E as Editor, h as getRichTextExtensions, b as SuperInput, a as SuperEditor, c as SuperToolbar, d as createZip } from "./chunks/super-editor.es-C3EfxPkJ.js";
|
|
2
|
+
import { S, i, k, l } from "./chunks/super-editor.es-C3EfxPkJ.js";
|
|
3
3
|
import { Y as effectScope, r as ref, Z as markRaw, p as process$1, _ as toRaw, a as computed, $ as isRef, a0 as isReactive, C as toRef, i as inject, q as getCurrentInstance, l as watch, x as unref, a1 as hasInjectionContext, L as reactive, R as nextTick, a2 as getCurrentScope, a3 as onScopeDispose, a4 as toRefs, g as global$1, N as shallowRef, M as readonly, j as onMounted, k as onBeforeUnmount, h as onBeforeMount, U as onActivated, s as onDeactivated, z as createTextVNode, F as Fragment, Q as Comment, m as defineComponent, D as provide, G as withDirectives, B as h, V as Teleport, S as renderSlot, W as isVNode, K as watchEffect, O as Transition, E as mergeProps, P as vShow, J as cloneVNode, T as Text, b as createElementBlock, o as openBlock, t as toDisplayString, v as createVNode, y as withCtx, f as createBaseVNode, A as normalizeStyle, e as createCommentVNode, u as createBlock, w as withModifiers, n as normalizeClass, a5 as resolveDirective, d as renderList, c as createApp, a6 as resolveDynamicComponent } from "./chunks/vue-BjMDYCe1.js";
|
|
4
4
|
import { B as Buffer$2 } from "./chunks/jszip-Df6uKve1.js";
|
|
5
5
|
import { b } from "./chunks/blank-docx-BagxM198.js";
|
|
@@ -45823,7 +45823,7 @@ class SuperDoc extends EventEmitter {
|
|
|
45823
45823
|
this.config.colors = shuffleArray(this.config.colors);
|
|
45824
45824
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
45825
45825
|
this.colorIndex = 0;
|
|
45826
|
-
this.version = "0.
|
|
45826
|
+
this.version = "0.7.1";
|
|
45827
45827
|
console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
45828
45828
|
this.superdocId = config.superdocId || v4();
|
|
45829
45829
|
this.colors = this.config.colors;
|
package/dist/superdoc.umd.js
CHANGED
|
@@ -23296,6 +23296,13 @@
|
|
|
23296
23296
|
return false;
|
|
23297
23297
|
}
|
|
23298
23298
|
}
|
|
23299
|
+
const componentToHex = (val) => {
|
|
23300
|
+
const a = Number(val).toString(16);
|
|
23301
|
+
return a.length === 1 ? "0" + a : a;
|
|
23302
|
+
};
|
|
23303
|
+
const rgbToHex = (rgb) => {
|
|
23304
|
+
return "#" + rgb.match(/\d+/g).map(componentToHex).join("");
|
|
23305
|
+
};
|
|
23299
23306
|
function generateDocxRandomId(length = 8) {
|
|
23300
23307
|
const characters = "0123456789abcdef";
|
|
23301
23308
|
let id = [];
|
|
@@ -24588,7 +24595,8 @@
|
|
|
24588
24595
|
"w:date": toIsoNoFractional(comment.createdTime),
|
|
24589
24596
|
"w:initials": getInitials(comment.creatorName),
|
|
24590
24597
|
"w:done": comment.resolvedTime ? "1" : "0",
|
|
24591
|
-
"w15:paraId": comment.commentParaId
|
|
24598
|
+
"w15:paraId": comment.commentParaId,
|
|
24599
|
+
"custom:internalId": comment.commentId || comment.internalId
|
|
24592
24600
|
};
|
|
24593
24601
|
if (comment?.parentCommentId) {
|
|
24594
24602
|
const parentComment = allComments.find((c2) => c2.commentId === comment.parentCommentId);
|
|
@@ -24622,7 +24630,9 @@
|
|
|
24622
24630
|
"w:id": commentDef.attributes["w:id"],
|
|
24623
24631
|
"w:author": commentDef.attributes["w:author"],
|
|
24624
24632
|
"w:date": commentDef.attributes["w:date"],
|
|
24625
|
-
"w:initials": commentDef.attributes["w:initials"]
|
|
24633
|
+
"w:initials": commentDef.attributes["w:initials"],
|
|
24634
|
+
"custom:internalId": commentDef.attributes["custom:internalId"],
|
|
24635
|
+
"xmlns:custom": "http://schemas.openxmlformats.org/wordprocessingml/2006/main"
|
|
24626
24636
|
};
|
|
24627
24637
|
});
|
|
24628
24638
|
newCommentsXml.elements[0].elements = commentDefs;
|
|
@@ -24638,8 +24648,7 @@
|
|
|
24638
24648
|
const parentId = comment.parentCommentId;
|
|
24639
24649
|
if (parentId) {
|
|
24640
24650
|
const parentComment = comments.find((c2) => c2.commentId === parentId);
|
|
24641
|
-
|
|
24642
|
-
attributes["w15:paraIdParent"] = parentParaId;
|
|
24651
|
+
attributes["w15:paraIdParent"] = parentComment.commentParaId;
|
|
24643
24652
|
}
|
|
24644
24653
|
return {
|
|
24645
24654
|
type: "element",
|
|
@@ -25450,6 +25459,9 @@
|
|
|
25450
25459
|
break;
|
|
25451
25460
|
case "color":
|
|
25452
25461
|
let processedColor = attrs.color.replace(/^#/, "").replace(/;$/, "");
|
|
25462
|
+
if (processedColor.startsWith("rgb")) {
|
|
25463
|
+
processedColor = rgbToHex(processedColor);
|
|
25464
|
+
}
|
|
25453
25465
|
markElement.attributes["w:val"] = processedColor;
|
|
25454
25466
|
break;
|
|
25455
25467
|
case "textAlign":
|
|
@@ -27540,6 +27552,7 @@
|
|
|
27540
27552
|
const authorEmail = attributes["w:email"];
|
|
27541
27553
|
const initials = attributes["w:initials"];
|
|
27542
27554
|
const createdDate = attributes["w:date"];
|
|
27555
|
+
const internalId = attributes["custom:internalId"];
|
|
27543
27556
|
const date = new Date(createdDate);
|
|
27544
27557
|
const unixTimestampMs = date.getTime();
|
|
27545
27558
|
const { elements: elements2 } = el;
|
|
@@ -27553,7 +27566,7 @@
|
|
|
27553
27566
|
const { attrs } = parsedComment[0];
|
|
27554
27567
|
const paraId = attrs["w14:paraId"];
|
|
27555
27568
|
return {
|
|
27556
|
-
commentId: v4$1(),
|
|
27569
|
+
commentId: internalId || v4$1(),
|
|
27557
27570
|
importedId,
|
|
27558
27571
|
creatorName: authorName,
|
|
27559
27572
|
creatorEmail: authorEmail,
|
|
@@ -27575,14 +27588,13 @@
|
|
|
27575
27588
|
return comments.map((comment) => {
|
|
27576
27589
|
const extendedDef = commentEx.find((ce) => ce.attributes["w15:paraId"] === comment.paraId);
|
|
27577
27590
|
if (!extendedDef) return { ...comment };
|
|
27578
|
-
const { isDone, paraIdParent
|
|
27591
|
+
const { isDone, paraIdParent } = getExtendedDetails(extendedDef);
|
|
27579
27592
|
let parentComment;
|
|
27580
27593
|
if (paraIdParent) parentComment = comments.find((c2) => c2.paraId === paraIdParent);
|
|
27581
27594
|
const newComment = {
|
|
27582
27595
|
...comment,
|
|
27583
|
-
commentId: superdocCommentId || v4$1(),
|
|
27584
27596
|
isDone,
|
|
27585
|
-
parentCommentId: parentComment?.
|
|
27597
|
+
parentCommentId: parentComment?.commentId
|
|
27586
27598
|
};
|
|
27587
27599
|
return newComment;
|
|
27588
27600
|
});
|
|
@@ -27592,8 +27604,7 @@
|
|
|
27592
27604
|
const paraId = attributes["w15:paraId"];
|
|
27593
27605
|
const isDone = attributes["w15:done"] === "1" ? true : false;
|
|
27594
27606
|
const paraIdParent = attributes["w15:paraIdParent"];
|
|
27595
|
-
|
|
27596
|
-
return { paraId, isDone, paraIdParent, superdocCommentId };
|
|
27607
|
+
return { paraId, isDone, paraIdParent };
|
|
27597
27608
|
};
|
|
27598
27609
|
const createDocumentJson = (docx, converter, editor) => {
|
|
27599
27610
|
const json = carbonCopy(getInitialJSON(docx));
|
|
@@ -27967,7 +27978,7 @@
|
|
|
27967
27978
|
return;
|
|
27968
27979
|
}
|
|
27969
27980
|
}
|
|
27970
|
-
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.
|
|
27981
|
+
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.7.1") {
|
|
27971
27982
|
const customLocation = "docProps/custom.xml";
|
|
27972
27983
|
if (!docx[customLocation]) {
|
|
27973
27984
|
docx[customLocation] = generateCustomXml();
|
|
@@ -28240,7 +28251,7 @@
|
|
|
28240
28251
|
function generateCustomXml() {
|
|
28241
28252
|
return DEFAULT_CUSTOM_XML;
|
|
28242
28253
|
}
|
|
28243
|
-
function generateSuperdocVersion(pid = 2, version2 = "0.
|
|
28254
|
+
function generateSuperdocVersion(pid = 2, version2 = "0.7.1") {
|
|
28244
28255
|
return {
|
|
28245
28256
|
type: "element",
|
|
28246
28257
|
name: "property",
|
|
@@ -41288,10 +41299,11 @@
|
|
|
41288
41299
|
});
|
|
41289
41300
|
const parentId = commentId;
|
|
41290
41301
|
if (parentId) {
|
|
41291
|
-
const childComments = comments.filter((c2) => c2.parentCommentId
|
|
41302
|
+
const childComments = comments.filter((c2) => c2.parentCommentId === parentId).sort((a, b) => a.createdTime - b.createdTime);
|
|
41292
41303
|
childComments.forEach((c2) => {
|
|
41293
41304
|
const childMark = getPreparedComment(c2);
|
|
41294
41305
|
const childStartNode = schema.nodes.commentRangeStart.create(childMark);
|
|
41306
|
+
seen.add(c2.commentId);
|
|
41295
41307
|
startNodes.push({
|
|
41296
41308
|
pos,
|
|
41297
41309
|
node: childStartNode
|
|
@@ -42467,7 +42479,7 @@
|
|
|
42467
42479
|
* @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
|
|
42468
42480
|
*/
|
|
42469
42481
|
processCollaborationMigrations() {
|
|
42470
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.
|
|
42482
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.7.1");
|
|
42471
42483
|
if (!this.options.ydoc) return;
|
|
42472
42484
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
42473
42485
|
let docVersion = metaMap.get("version");
|
|
@@ -110769,7 +110781,7 @@ ${style2}
|
|
|
110769
110781
|
this.config.colors = shuffleArray(this.config.colors);
|
|
110770
110782
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
110771
110783
|
this.colorIndex = 0;
|
|
110772
|
-
this.version = "0.
|
|
110784
|
+
this.version = "0.7.1";
|
|
110773
110785
|
console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
110774
110786
|
this.superdocId = config.superdocId || v4();
|
|
110775
110787
|
this.colors = this.config.colors;
|