@ones-editor/editor 2.1.2-beta.14 → 2.1.2-beta.16
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 +15 -4
- 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);
|
|
@@ -69047,7 +69052,8 @@ ${codeText}
|
|
|
69047
69052
|
const selectedBlock = range.getSelectedBlocks()[0];
|
|
69048
69053
|
if (selectedBlock) {
|
|
69049
69054
|
editor.readonly = false;
|
|
69050
|
-
|
|
69055
|
+
const editorComments = editor.getCustom("editor-comments");
|
|
69056
|
+
addCommentToBlock$1(editor, selectedBlock.block, editorComments.commentProvider);
|
|
69051
69057
|
setTimeout(() => {
|
|
69052
69058
|
editor.readonly = true;
|
|
69053
69059
|
}, 100);
|
|
@@ -83106,6 +83112,11 @@ ${content}
|
|
|
83106
83112
|
beforeInsertDoc(editor, container, insertDoc) {
|
|
83107
83113
|
flattenLayoutBlockIfExists(insertDoc);
|
|
83108
83114
|
return insertDoc;
|
|
83115
|
+
},
|
|
83116
|
+
getBlockProperties() {
|
|
83117
|
+
return {
|
|
83118
|
+
abstract: `${i18n$1.t("layout.title")}`
|
|
83119
|
+
};
|
|
83109
83120
|
}
|
|
83110
83121
|
};
|
|
83111
83122
|
const loadingIcon = '<svg width="24" height="25" viewBox="0 0 24 25" fill="none" xmlns="http://www.w3.org/2000/svg">\n<g>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M12 7.61719C11.4477 7.61719 11 7.16947 11 6.61719V3.61719C11 3.0649 11.4477 2.61719 12 2.61719C12.5523 2.61719 13 3.0649 13 3.61719V6.61719C13 7.16947 12.5523 7.61719 12 7.61719ZM4.92893 5.54612C5.31946 5.15559 5.95262 5.1556 6.34315 5.54612L8.46447 7.66744C8.85499 8.05796 8.85499 8.69113 8.46447 9.08165C8.07394 9.47218 7.44078 9.47218 7.05025 9.08165L4.92893 6.96033C4.53841 6.56981 4.53841 5.93664 4.92893 5.54612ZM15.5355 9.08165C15.145 8.69113 15.145 8.05796 15.5355 7.66744L17.6569 5.54612C18.0474 5.1556 18.6805 5.1556 19.0711 5.54612C19.4616 5.93664 19.4616 6.56981 19.0711 6.96033L16.9497 9.08165C16.5592 9.47218 15.9261 9.47218 15.5355 9.08165ZM2 12.6172C2 12.0649 2.44772 11.6172 3 11.6172L6 11.6172C6.55229 11.6172 7 12.0649 7 12.6172C7 13.1695 6.55228 13.6172 6 13.6172L3 13.6172C2.44772 13.6172 2 13.1695 2 12.6172ZM17 12.6172C17 12.0649 17.4477 11.6172 18 11.6172L21 11.6172C21.5523 11.6172 22 12.0649 22 12.6172C22 13.1695 21.5523 13.6172 21 13.6172L18 13.6172C17.4477 13.6172 17 13.1695 17 12.6172ZM15.5355 16.1527C15.9261 15.7622 16.5592 15.7622 16.9497 16.1527L19.0711 18.274C19.4616 18.6646 19.4616 19.2977 19.0711 19.6883C18.6805 20.0788 18.0474 20.0788 17.6569 19.6883L15.5355 17.5669C15.145 17.1764 15.145 16.5432 15.5355 16.1527ZM4.92893 19.6883C4.53841 19.2977 4.53841 18.6646 4.92893 18.274L7.05025 16.1527C7.44078 15.7622 8.07394 15.7622 8.46447 16.1527C8.85499 16.5432 8.85499 17.1764 8.46447 17.5669L6.34315 19.6883C5.95262 20.0788 5.31946 20.0788 4.92893 19.6883ZM12 22.6172C11.4477 22.6172 11 22.1695 11 21.6172V18.6172C11 18.0649 11.4477 17.6172 12 17.6172C12.5523 17.6172 13 18.0649 13 18.6172V21.6172C13 22.1695 12.5523 22.6172 12 22.6172Z" fill="#5587F0"/>\n<animateTransform attributeType="xml" attributeName="transform" type="rotate" values="0 12 12.5;360 12 12.5" dur="2s" repeatCount="indefinite" />\n</g>\n</svg>';
|
|
@@ -88111,7 +88122,7 @@ ${data2.flowchartText}
|
|
|
88111
88122
|
}
|
|
88112
88123
|
}
|
|
88113
88124
|
});
|
|
88114
|
-
editor.version = "2.1.2-beta.
|
|
88125
|
+
editor.version = "2.1.2-beta.16";
|
|
88115
88126
|
if (Logger$2.level === LogLevel.DEBUG) {
|
|
88116
88127
|
window.setReauthFail = (fail) => {
|
|
88117
88128
|
window.isReauthError = fail;
|
|
@@ -88212,7 +88223,7 @@ ${data2.flowchartText}
|
|
|
88212
88223
|
});
|
|
88213
88224
|
editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
|
|
88214
88225
|
OnesEditorToolbar.register(editor);
|
|
88215
|
-
editor.version = "2.1.2-beta.
|
|
88226
|
+
editor.version = "2.1.2-beta.16";
|
|
88216
88227
|
return editor;
|
|
88217
88228
|
}
|
|
88218
88229
|
async function showDocVersions(editor, options, serverUrl) {
|