@ones-editor/editor 2.1.2-beta.21 → 2.1.2-beta.23
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
|
@@ -4066,6 +4066,9 @@ div.editor-root.readonly div.editor-content div[data-type=editor-container] div[
|
|
|
4066
4066
|
.editor-web-comment-root .comment-groups-container .comment-group-item-root.active .item-head-switch {
|
|
4067
4067
|
visibility: visible;
|
|
4068
4068
|
}
|
|
4069
|
+
.editor-web-comment-root .comment-groups-container .comment-group-item-root.readonly .comment-quick-reply.invisible {
|
|
4070
|
+
display: none;
|
|
4071
|
+
}
|
|
4069
4072
|
.editor-mobile-comments-root {
|
|
4070
4073
|
position: fixed;
|
|
4071
4074
|
left: 0;
|
|
@@ -66994,11 +66997,20 @@ ${codeText}
|
|
|
66994
66997
|
this.root = createElement("div", ["comment-quick-reply"], null);
|
|
66995
66998
|
this.components = this.createQuickReply();
|
|
66996
66999
|
}
|
|
67000
|
+
get commentOptions() {
|
|
67001
|
+
const commentOptions = this.mainEditor.getComponentOptions("comment");
|
|
67002
|
+
return commentOptions;
|
|
67003
|
+
}
|
|
66997
67004
|
createQuickReply() {
|
|
67005
|
+
var _a;
|
|
66998
67006
|
const { commentsProvider } = this;
|
|
66999
67007
|
const replyTextButton = createTextButton(this.root, GroupItemActions.QuickReply, t$3("comment.placeholder"));
|
|
67000
67008
|
addGroupActionToElement(replyTextButton, GroupItemActions.QuickReply);
|
|
67001
67009
|
replyTextButton.classList.add("quick-reply-button");
|
|
67010
|
+
const disableReply = !((_a = this.commentOptions) == null ? void 0 : _a.disableReply);
|
|
67011
|
+
if (disableReply) {
|
|
67012
|
+
replyTextButton.classList.add("invisible");
|
|
67013
|
+
}
|
|
67002
67014
|
const replyEditorContainer = createElement("div", ["quick-reply-editor"], this.root);
|
|
67003
67015
|
const doc2 = createEmptyDoc$1();
|
|
67004
67016
|
const replyEditor = new CommentEditor(this.mainEditor, commentsProvider, doc2);
|
|
@@ -68499,7 +68511,6 @@ ${codeText}
|
|
|
68499
68511
|
}
|
|
68500
68512
|
};
|
|
68501
68513
|
}
|
|
68502
|
-
return void 0;
|
|
68503
68514
|
}
|
|
68504
68515
|
const types2 = ["embed", "code", "callout"];
|
|
68505
68516
|
const type = getBlockType(blockElement);
|
|
@@ -88124,7 +88135,7 @@ ${data2.flowchartText}
|
|
|
88124
88135
|
}
|
|
88125
88136
|
}
|
|
88126
88137
|
});
|
|
88127
|
-
editor.version = "2.1.2-beta.
|
|
88138
|
+
editor.version = "2.1.2-beta.23";
|
|
88128
88139
|
if (Logger$2.level === LogLevel.DEBUG) {
|
|
88129
88140
|
window.setReauthFail = (fail) => {
|
|
88130
88141
|
window.isReauthError = fail;
|
|
@@ -88225,7 +88236,7 @@ ${data2.flowchartText}
|
|
|
88225
88236
|
});
|
|
88226
88237
|
editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
|
|
88227
88238
|
OnesEditorToolbar.register(editor);
|
|
88228
|
-
editor.version = "2.1.2-beta.
|
|
88239
|
+
editor.version = "2.1.2-beta.23";
|
|
88229
88240
|
return editor;
|
|
88230
88241
|
}
|
|
88231
88242
|
async function showDocVersions(editor, options, serverUrl) {
|