@ones-editor/editor 2.0.7-beta.16 → 2.0.7-beta.17
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 +13 -9
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -23883,17 +23883,21 @@ var __publicField = (obj, key, value) => {
|
|
|
23883
23883
|
const isInDisableScrollMask = this.isInDisableScrollMask(target);
|
|
23884
23884
|
if (target && (isInDisableScrollMask || rootContainer.contains(target))) {
|
|
23885
23885
|
if (!isInDisableScrollMask && !isInBlockTools(target)) {
|
|
23886
|
-
|
|
23887
|
-
|
|
23888
|
-
|
|
23886
|
+
setTimeout(() => {
|
|
23887
|
+
this.editor.emit("focus", this.editor);
|
|
23888
|
+
this.callbacks.onFocus();
|
|
23889
|
+
this.editor.input.focus();
|
|
23890
|
+
});
|
|
23889
23891
|
}
|
|
23890
23892
|
return;
|
|
23891
23893
|
}
|
|
23892
23894
|
if (this.isInCommandBar(target)) {
|
|
23893
23895
|
return;
|
|
23894
23896
|
}
|
|
23895
|
-
|
|
23896
|
-
|
|
23897
|
+
setTimeout(() => {
|
|
23898
|
+
this.editor.emit("blur", this.editor);
|
|
23899
|
+
this.callbacks.onBlur();
|
|
23900
|
+
});
|
|
23897
23901
|
});
|
|
23898
23902
|
__publicField(this, "handleDocumentSelectionChange", () => {
|
|
23899
23903
|
setTimeout(() => {
|
|
@@ -24010,7 +24014,7 @@ var __publicField = (obj, key, value) => {
|
|
|
24010
24014
|
input2.addEventListener("compositionstart", this.handleCompositionstart);
|
|
24011
24015
|
input2.addEventListener("compositionend", this.handleCompositionend);
|
|
24012
24016
|
this.inputElement = input2;
|
|
24013
|
-
document.addEventListener("click", this.handleDocumentClick);
|
|
24017
|
+
document.addEventListener("click", this.handleDocumentClick, { capture: true });
|
|
24014
24018
|
document.addEventListener("selectionchange", this.handleDocumentSelectionChange);
|
|
24015
24019
|
this.editor.addListener("selectionChanged", this.handleEditorSelectionChanged);
|
|
24016
24020
|
this.editor.addListener("readonlyChanged", this.handleReadonlyChanged);
|
|
@@ -24029,7 +24033,7 @@ var __publicField = (obj, key, value) => {
|
|
|
24029
24033
|
}
|
|
24030
24034
|
destroy() {
|
|
24031
24035
|
this.callbacks.destroy();
|
|
24032
|
-
document.removeEventListener("click", this.handleDocumentClick);
|
|
24036
|
+
document.removeEventListener("click", this.handleDocumentClick, { capture: true });
|
|
24033
24037
|
document.removeEventListener("selectionchange", this.handleDocumentSelectionChange);
|
|
24034
24038
|
this.editor.removeListener("selectionChanged", this.handleEditorSelectionChanged);
|
|
24035
24039
|
this.editor.removeListener("readonlyChanged", this.handleReadonlyChanged);
|
|
@@ -82301,7 +82305,7 @@ ${data2.flowchartText}
|
|
|
82301
82305
|
}
|
|
82302
82306
|
}
|
|
82303
82307
|
});
|
|
82304
|
-
editor.version = "2.0.7-beta.
|
|
82308
|
+
editor.version = "2.0.7-beta.17";
|
|
82305
82309
|
if (Logger$2.level === LogLevel.DEBUG) {
|
|
82306
82310
|
window.setReauthFail = (fail) => {
|
|
82307
82311
|
window.isReauthError = fail;
|
|
@@ -82395,7 +82399,7 @@ ${data2.flowchartText}
|
|
|
82395
82399
|
if (!clientType.isMobile) {
|
|
82396
82400
|
OnesEditorToolbar.register(editor);
|
|
82397
82401
|
}
|
|
82398
|
-
editor.version = "2.0.7-beta.
|
|
82402
|
+
editor.version = "2.0.7-beta.17";
|
|
82399
82403
|
return editor;
|
|
82400
82404
|
}
|
|
82401
82405
|
async function showDocVersions(editor, options, serverUrl) {
|