@ones-editor/editor 2.0.7-beta.21 → 2.0.7-beta.23
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 +11 -9
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11938,8 +11938,8 @@ var __publicField = (obj, key, value) => {
|
|
|
11938
11938
|
continue;
|
|
11939
11939
|
}
|
|
11940
11940
|
const rect = elem.getBoundingClientRect();
|
|
11941
|
-
if (
|
|
11942
|
-
if (rect.left +
|
|
11941
|
+
if (rect.width && rect.top && i === 0) {
|
|
11942
|
+
if (rect.left + rect.width < x || rect.top + rect.height < y) {
|
|
11943
11943
|
logger$42.debug("click on scrollbar, out of element rect");
|
|
11944
11944
|
return null;
|
|
11945
11945
|
}
|
|
@@ -23903,12 +23903,14 @@ var __publicField = (obj, key, value) => {
|
|
|
23903
23903
|
setTimeout(() => {
|
|
23904
23904
|
var _a;
|
|
23905
23905
|
const focusNode = (_a = document.getSelection()) == null ? void 0 : _a.focusNode;
|
|
23906
|
-
if (focusNode && (this.editor.contains(focusNode) || this.isInDisableScrollMask(focusNode) || this.isInCommandBar(focusNode)))
|
|
23907
|
-
;
|
|
23908
|
-
else {
|
|
23909
|
-
this.editor.emit("blur", this.editor);
|
|
23910
|
-
this.callbacks.onBlur();
|
|
23906
|
+
if (focusNode && (this.editor.contains(focusNode) || this.isInDisableScrollMask(focusNode) || this.isInCommandBar(focusNode))) {
|
|
23907
|
+
return;
|
|
23911
23908
|
}
|
|
23909
|
+
if (clientType.isSafari && !focusNode) {
|
|
23910
|
+
return;
|
|
23911
|
+
}
|
|
23912
|
+
this.editor.emit("blur", this.editor);
|
|
23913
|
+
this.callbacks.onBlur();
|
|
23912
23914
|
}, 100);
|
|
23913
23915
|
});
|
|
23914
23916
|
__publicField(this, "handleEditorSelectionChanged", () => {
|
|
@@ -82344,7 +82346,7 @@ ${data2.flowchartText}
|
|
|
82344
82346
|
}
|
|
82345
82347
|
}
|
|
82346
82348
|
});
|
|
82347
|
-
editor.version = "2.0.7-beta.
|
|
82349
|
+
editor.version = "2.0.7-beta.23";
|
|
82348
82350
|
if (Logger$2.level === LogLevel.DEBUG) {
|
|
82349
82351
|
window.setReauthFail = (fail) => {
|
|
82350
82352
|
window.isReauthError = fail;
|
|
@@ -82438,7 +82440,7 @@ ${data2.flowchartText}
|
|
|
82438
82440
|
if (!clientType.isMobile) {
|
|
82439
82441
|
OnesEditorToolbar.register(editor);
|
|
82440
82442
|
}
|
|
82441
|
-
editor.version = "2.0.7-beta.
|
|
82443
|
+
editor.version = "2.0.7-beta.23";
|
|
82442
82444
|
return editor;
|
|
82443
82445
|
}
|
|
82444
82446
|
async function showDocVersions(editor, options, serverUrl) {
|