@ones-editor/editor 2.0.7-beta.20 → 2.0.7-beta.22
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", () => {
|
|
@@ -82315,7 +82317,7 @@ ${data2.flowchartText}
|
|
|
82315
82317
|
}
|
|
82316
82318
|
}
|
|
82317
82319
|
});
|
|
82318
|
-
editor.version = "2.0.7-beta.
|
|
82320
|
+
editor.version = "2.0.7-beta.22";
|
|
82319
82321
|
if (Logger$2.level === LogLevel.DEBUG) {
|
|
82320
82322
|
window.setReauthFail = (fail) => {
|
|
82321
82323
|
window.isReauthError = fail;
|
|
@@ -82409,7 +82411,7 @@ ${data2.flowchartText}
|
|
|
82409
82411
|
if (!clientType.isMobile) {
|
|
82410
82412
|
OnesEditorToolbar.register(editor);
|
|
82411
82413
|
}
|
|
82412
|
-
editor.version = "2.0.7-beta.
|
|
82414
|
+
editor.version = "2.0.7-beta.22";
|
|
82413
82415
|
return editor;
|
|
82414
82416
|
}
|
|
82415
82417
|
async function showDocVersions(editor, options, serverUrl) {
|