@ones-editor/editor 2.1.2-beta.22 → 2.1.2-beta.24
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);
|
|
@@ -88123,7 +88135,7 @@ ${data2.flowchartText}
|
|
|
88123
88135
|
}
|
|
88124
88136
|
}
|
|
88125
88137
|
});
|
|
88126
|
-
editor.version = "2.1.2-beta.
|
|
88138
|
+
editor.version = "2.1.2-beta.24";
|
|
88127
88139
|
if (Logger$2.level === LogLevel.DEBUG) {
|
|
88128
88140
|
window.setReauthFail = (fail) => {
|
|
88129
88141
|
window.isReauthError = fail;
|
|
@@ -88224,7 +88236,7 @@ ${data2.flowchartText}
|
|
|
88224
88236
|
});
|
|
88225
88237
|
editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
|
|
88226
88238
|
OnesEditorToolbar.register(editor);
|
|
88227
|
-
editor.version = "2.1.2-beta.
|
|
88239
|
+
editor.version = "2.1.2-beta.24";
|
|
88228
88240
|
return editor;
|
|
88229
88241
|
}
|
|
88230
88242
|
async function showDocVersions(editor, options, serverUrl) {
|