@ones-editor/editor 2.8.28-beta.4 → 2.8.28-beta.5
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
|
@@ -4451,6 +4451,15 @@ div.editor-root.readonly div.editor-content div[data-type=editor-container] div[
|
|
|
4451
4451
|
color: #87888A;
|
|
4452
4452
|
margin-top: 10px;
|
|
4453
4453
|
}
|
|
4454
|
+
.editor-web-comment-root .comment-groups-container .comment-group-item-root .comment-item-footer .comment-resolved {
|
|
4455
|
+
font-size: 12px;
|
|
4456
|
+
color: #87888a;
|
|
4457
|
+
flex-grow: 1;
|
|
4458
|
+
display: block;
|
|
4459
|
+
white-space: nowrap;
|
|
4460
|
+
overflow: hidden;
|
|
4461
|
+
text-overflow: ellipsis;
|
|
4462
|
+
}
|
|
4454
4463
|
.editor-web-comment-root .comment-groups-container .comment-group-item-root .comment-item-footer .comment-actions {
|
|
4455
4464
|
display: flex;
|
|
4456
4465
|
align-items: center;
|
|
@@ -4690,6 +4699,15 @@ div.editor-root.readonly div.editor-content div[data-type=editor-container] div[
|
|
|
4690
4699
|
}
|
|
4691
4700
|
.resolved-comment-list .resolved-comment-group-item-root .comment-children-container .resolved-comment-item-root:last-child::before {
|
|
4692
4701
|
display: none;
|
|
4702
|
+
}
|
|
4703
|
+
.resolved-comment-list .resolved-comment-group-item-root .comment-item-footer .comment-resolved {
|
|
4704
|
+
margin-left: 10px;
|
|
4705
|
+
font-size: 12px;
|
|
4706
|
+
color: #87888a;
|
|
4707
|
+
flex-grow: 1;
|
|
4708
|
+
white-space: nowrap;
|
|
4709
|
+
overflow: hidden;
|
|
4710
|
+
text-overflow: ellipsis;
|
|
4693
4711
|
}div[data-type=editor-block].table-block {
|
|
4694
4712
|
--table-bar-width: 6px;
|
|
4695
4713
|
--table-bar-left: -6px;
|
|
@@ -69853,12 +69871,12 @@ ${codeText}
|
|
|
69853
69871
|
return null;
|
|
69854
69872
|
}
|
|
69855
69873
|
const footer = createElement("div", ["comment-item-footer"], this.root);
|
|
69856
|
-
const
|
|
69874
|
+
const resolved = createElement("span", ["comment-resolved"], footer);
|
|
69857
69875
|
const date = new Date(this.comment.modified);
|
|
69858
69876
|
const resolver = this.comment.resolver;
|
|
69859
69877
|
assert(logger$1h, resolver, "resolver should not be null");
|
|
69860
69878
|
const text2 = i18n$1.t("comment.resolvedBy", { name: resolver.displayName, date: fromNowString(date) });
|
|
69861
|
-
|
|
69879
|
+
resolved.innerText = text2;
|
|
69862
69880
|
const actions2 = createElement("div", ["comment-actions"], footer);
|
|
69863
69881
|
createElement("span", ["comment-date"], actions2, fromNowString(new Date(resolver.date)));
|
|
69864
69882
|
if (this.comment.removedFromDoc) {
|
|
@@ -70832,6 +70850,7 @@ ${codeText}
|
|
|
70832
70850
|
__publicField(this, "switcherBar");
|
|
70833
70851
|
__publicField(this, "noResolvedCommentTip", null);
|
|
70834
70852
|
__publicField(this, "handleSwitchType", (bar2, item) => {
|
|
70853
|
+
var _a, _b;
|
|
70835
70854
|
if (item.id === "current-comment") {
|
|
70836
70855
|
this.listType = "current";
|
|
70837
70856
|
} else {
|
|
@@ -70850,6 +70869,7 @@ ${codeText}
|
|
|
70850
70869
|
renderer.changeType(this.editor, this.listType);
|
|
70851
70870
|
}
|
|
70852
70871
|
this.updateNoResolvedCommentTip();
|
|
70872
|
+
(_b = (_a = this.commentOptions) == null ? void 0 : _a.onCommentListTypeChange) == null ? void 0 : _b.call(_a, this.editor, this.listType);
|
|
70853
70873
|
});
|
|
70854
70874
|
__publicField(this, "handleSelectionOnComment", () => {
|
|
70855
70875
|
this.emit("onSelectComment");
|
|
@@ -70995,6 +71015,9 @@ ${codeText}
|
|
|
70995
71015
|
setFirstEditingCommentActive() {
|
|
70996
71016
|
this.list.setFirstEditingCommentActive();
|
|
70997
71017
|
}
|
|
71018
|
+
getListType() {
|
|
71019
|
+
return this.listType;
|
|
71020
|
+
}
|
|
70998
71021
|
setListType(type) {
|
|
70999
71022
|
var _a, _b;
|
|
71000
71023
|
if (type === "resolved") {
|
|
@@ -71886,7 +71909,7 @@ ${codeText}
|
|
|
71886
71909
|
comment: "\u6DFB\u52A0\u6279\u6CE8",
|
|
71887
71910
|
command: "\u6DFB\u52A0\u6279\u6CE8",
|
|
71888
71911
|
quickMenuCommand: "\u6DFB\u52A0\u6279\u6CE8",
|
|
71889
|
-
resolvedBy: "\u5DF2\u7531 {name} \
|
|
71912
|
+
resolvedBy: "\u5DF2\u7531 {name} \u89E3\u51B3",
|
|
71890
71913
|
reopen: "\u91CD\u65B0\u6253\u5F00",
|
|
71891
71914
|
currentComment: "\u5F53\u524D\u6279\u6CE8",
|
|
71892
71915
|
resolvedComment: "\u5DF2\u89E3\u51B3\u6279\u6CE8",
|
|
@@ -94584,7 +94607,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
94584
94607
|
}
|
|
94585
94608
|
}
|
|
94586
94609
|
});
|
|
94587
|
-
editor.version = "2.8.28-beta.
|
|
94610
|
+
editor.version = "2.8.28-beta.5";
|
|
94588
94611
|
return editor;
|
|
94589
94612
|
}
|
|
94590
94613
|
function isDoc(doc2) {
|
|
@@ -94698,7 +94721,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
94698
94721
|
}
|
|
94699
94722
|
});
|
|
94700
94723
|
OnesEditorToolbar.register(editor);
|
|
94701
|
-
editor.version = "2.8.28-beta.
|
|
94724
|
+
editor.version = "2.8.28-beta.5";
|
|
94702
94725
|
return editor;
|
|
94703
94726
|
}
|
|
94704
94727
|
async function showDocVersions(editor, options, serverUrl) {
|