@ones-editor/editor 2.1.2-beta.13 → 2.1.2-beta.15
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/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/dist/index.js +17 -24
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -65954,6 +65954,10 @@ ${codeText}
|
|
|
65954
65954
|
continue;
|
|
65955
65955
|
}
|
|
65956
65956
|
if (commands.group === "block-comment-actions") {
|
|
65957
|
+
const command = commands.commands[0];
|
|
65958
|
+
if (!command) {
|
|
65959
|
+
continue;
|
|
65960
|
+
}
|
|
65957
65961
|
commands.executeCommand(editor, block, commands.commands[0], null);
|
|
65958
65962
|
return true;
|
|
65959
65963
|
}
|
|
@@ -69010,7 +69014,8 @@ ${codeText}
|
|
|
69010
69014
|
}
|
|
69011
69015
|
editor2.selection.selectBlock(block, 0, getBlockTextLength$6(editor2, block), { noScroll: true });
|
|
69012
69016
|
editor2.readonly = false;
|
|
69013
|
-
|
|
69017
|
+
const editorComments = editor2.getCustom("editor-comments");
|
|
69018
|
+
addCommentToBlock$1(editor2, block, editorComments.commentProvider);
|
|
69014
69019
|
setTimeout(() => {
|
|
69015
69020
|
editor2.readonly = true;
|
|
69016
69021
|
}, 100);
|
|
@@ -69026,26 +69031,13 @@ ${codeText}
|
|
|
69026
69031
|
if (!isTextKindBlock(editor, focusedBlock) && !isAllContainersSelected(editor)) {
|
|
69027
69032
|
return [];
|
|
69028
69033
|
}
|
|
69029
|
-
|
|
69030
|
-
|
|
69031
|
-
|
|
69032
|
-
|
|
69033
|
-
|
|
69034
|
-
|
|
69035
|
-
|
|
69036
|
-
}];
|
|
69037
|
-
}
|
|
69038
|
-
const selectedBlock = range.getSelectedBlocks()[0];
|
|
69039
|
-
if (selectedBlock && getBlockType(selectedBlock.block) === "table") {
|
|
69040
|
-
return [{
|
|
69041
|
-
id: "add-comment-to-old-doc/text",
|
|
69042
|
-
name: i18n$1.t("comment.quickMenuCommand"),
|
|
69043
|
-
icon: CommentIcon$1,
|
|
69044
|
-
groupOrder: 200,
|
|
69045
|
-
order: 110
|
|
69046
|
-
}];
|
|
69047
|
-
}
|
|
69048
|
-
return [];
|
|
69034
|
+
return [{
|
|
69035
|
+
id: "add-comment-to-old-doc/text",
|
|
69036
|
+
name: i18n$1.t("comment.quickMenuCommand"),
|
|
69037
|
+
icon: CommentIcon$1,
|
|
69038
|
+
groupOrder: 200,
|
|
69039
|
+
order: 110
|
|
69040
|
+
}];
|
|
69049
69041
|
}
|
|
69050
69042
|
executeCommand(editor, command, options) {
|
|
69051
69043
|
if (command.id === "add-comment-to-old-doc/text") {
|
|
@@ -69060,7 +69052,8 @@ ${codeText}
|
|
|
69060
69052
|
const selectedBlock = range.getSelectedBlocks()[0];
|
|
69061
69053
|
if (selectedBlock) {
|
|
69062
69054
|
editor.readonly = false;
|
|
69063
|
-
|
|
69055
|
+
const editorComments = editor.getCustom("editor-comments");
|
|
69056
|
+
addCommentToBlock$1(editor, selectedBlock.block, editorComments.commentProvider);
|
|
69064
69057
|
setTimeout(() => {
|
|
69065
69058
|
editor.readonly = true;
|
|
69066
69059
|
}, 100);
|
|
@@ -88124,7 +88117,7 @@ ${data2.flowchartText}
|
|
|
88124
88117
|
}
|
|
88125
88118
|
}
|
|
88126
88119
|
});
|
|
88127
|
-
editor.version = "2.1.2-beta.
|
|
88120
|
+
editor.version = "2.1.2-beta.15";
|
|
88128
88121
|
if (Logger$2.level === LogLevel.DEBUG) {
|
|
88129
88122
|
window.setReauthFail = (fail) => {
|
|
88130
88123
|
window.isReauthError = fail;
|
|
@@ -88225,7 +88218,7 @@ ${data2.flowchartText}
|
|
|
88225
88218
|
});
|
|
88226
88219
|
editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
|
|
88227
88220
|
OnesEditorToolbar.register(editor);
|
|
88228
|
-
editor.version = "2.1.2-beta.
|
|
88221
|
+
editor.version = "2.1.2-beta.15";
|
|
88229
88222
|
return editor;
|
|
88230
88223
|
}
|
|
88231
88224
|
async function showDocVersions(editor, options, serverUrl) {
|