@ones-editor/editor 2.1.2-beta.28 → 2.1.2-beta.29
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.
|
@@ -25,6 +25,7 @@ export declare class ReadonlyToolbar implements OnesEditorCustom {
|
|
|
25
25
|
handleSelectionChange: import("lodash").DebouncedFunc<(editor: OnesEditor) => void>;
|
|
26
26
|
private handleHoveringBlockChildChange;
|
|
27
27
|
groupCommands: (allCommands: CommandItem[]) => CommandItem[];
|
|
28
|
+
hideToolbar(editor: OnesEditor): void;
|
|
28
29
|
showTextToolbar(reason: string): void;
|
|
29
30
|
static isVisible(): boolean;
|
|
30
31
|
}
|
package/dist/index.js
CHANGED
|
@@ -51594,8 +51594,13 @@ ${codeText}
|
|
|
51594
51594
|
unbindEvents() {
|
|
51595
51595
|
document.removeEventListener("mousedown", this.handleDocumentMouseDown);
|
|
51596
51596
|
}
|
|
51597
|
+
hideToolbar(editor) {
|
|
51598
|
+
const toolbar2 = editor.findCustom("toolbar-handler");
|
|
51599
|
+
toolbar2 == null ? void 0 : toolbar2.hide();
|
|
51600
|
+
}
|
|
51597
51601
|
showTextToolbar(reason) {
|
|
51598
51602
|
var _a, _b;
|
|
51603
|
+
this.hideToolbar(this.editor);
|
|
51599
51604
|
let commands = [];
|
|
51600
51605
|
const range = this.editor.selection.range;
|
|
51601
51606
|
this.providers.forEach((provider) => {
|
|
@@ -88152,7 +88157,7 @@ ${data2.flowchartText}
|
|
|
88152
88157
|
}
|
|
88153
88158
|
}
|
|
88154
88159
|
});
|
|
88155
|
-
editor.version = "2.1.2-beta.
|
|
88160
|
+
editor.version = "2.1.2-beta.29";
|
|
88156
88161
|
if (Logger$2.level === LogLevel.DEBUG) {
|
|
88157
88162
|
window.setReauthFail = (fail) => {
|
|
88158
88163
|
window.isReauthError = fail;
|
|
@@ -88253,7 +88258,7 @@ ${data2.flowchartText}
|
|
|
88253
88258
|
});
|
|
88254
88259
|
editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
|
|
88255
88260
|
OnesEditorToolbar.register(editor);
|
|
88256
|
-
editor.version = "2.1.2-beta.
|
|
88261
|
+
editor.version = "2.1.2-beta.29";
|
|
88257
88262
|
return editor;
|
|
88258
88263
|
}
|
|
88259
88264
|
async function showDocVersions(editor, options, serverUrl) {
|