@ones-editor/editor 2.8.28-beta.3 → 2.8.28-beta.4
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/index.js
CHANGED
|
@@ -70562,6 +70562,12 @@ ${codeText}
|
|
|
70562
70562
|
this.deleteItem(item.comment.id);
|
|
70563
70563
|
}
|
|
70564
70564
|
}
|
|
70565
|
+
removeGroupItem(comment) {
|
|
70566
|
+
const item = this.findItem(comment.id) || this.findItem(comment.groupId);
|
|
70567
|
+
if (item) {
|
|
70568
|
+
this.deleteItem(item.comment.id);
|
|
70569
|
+
}
|
|
70570
|
+
}
|
|
70565
70571
|
handleUpdateComment(comment) {
|
|
70566
70572
|
const group = this.findItemAsGroupId(comment.groupId);
|
|
70567
70573
|
if (group && group.comment.id !== comment.id) {
|
|
@@ -70963,7 +70969,7 @@ ${codeText}
|
|
|
70963
70969
|
if (type === "add") {
|
|
70964
70970
|
this.list.handleCreateComment(commentWithChildren, local);
|
|
70965
70971
|
} else {
|
|
70966
|
-
this.list.
|
|
70972
|
+
this.list.removeGroupItem(comment);
|
|
70967
70973
|
}
|
|
70968
70974
|
this.updateCommentCount();
|
|
70969
70975
|
}, 300);
|
|
@@ -94578,7 +94584,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
94578
94584
|
}
|
|
94579
94585
|
}
|
|
94580
94586
|
});
|
|
94581
|
-
editor.version = "2.8.28-beta.
|
|
94587
|
+
editor.version = "2.8.28-beta.4";
|
|
94582
94588
|
return editor;
|
|
94583
94589
|
}
|
|
94584
94590
|
function isDoc(doc2) {
|
|
@@ -94692,7 +94698,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
94692
94698
|
}
|
|
94693
94699
|
});
|
|
94694
94700
|
OnesEditorToolbar.register(editor);
|
|
94695
|
-
editor.version = "2.8.28-beta.
|
|
94701
|
+
editor.version = "2.8.28-beta.4";
|
|
94696
94702
|
return editor;
|
|
94697
94703
|
}
|
|
94698
94704
|
async function showDocVersions(editor, options, serverUrl) {
|