@ones-editor/editor 2.1.1-beta.46 → 2.1.1-beta.49
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.
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type Options = {
|
|
2
|
+
onFocused: () => void;
|
|
3
|
+
onBlurred: () => void;
|
|
4
|
+
};
|
|
5
|
+
export declare class ActiveElementObserver {
|
|
6
|
+
private options;
|
|
7
|
+
constructor(options: Options);
|
|
8
|
+
handleFocusIn: (event: FocusEvent) => void;
|
|
9
|
+
handleFocusOut: (event: FocusEvent) => void;
|
|
10
|
+
isFormElement(element: Element): element is HTMLInputElement | HTMLTextAreaElement;
|
|
11
|
+
destroy(): void;
|
|
12
|
+
}
|
|
@@ -1,18 +1,21 @@
|
|
|
1
|
+
/// <reference types="lodash" />
|
|
1
2
|
import { OnesEditor } from '../../../../@ones-editor/core';
|
|
2
3
|
import './mobile.scss';
|
|
3
4
|
export declare class MobileCommandHandler {
|
|
4
5
|
private editor;
|
|
5
6
|
private commandBar;
|
|
6
|
-
private
|
|
7
|
-
private initViewportHeight;
|
|
7
|
+
private observer;
|
|
8
8
|
constructor(editor: OnesEditor);
|
|
9
9
|
destroy(): void;
|
|
10
|
+
private showKeyboard;
|
|
11
|
+
private initViewportHeight;
|
|
10
12
|
private get isKeyboardShow();
|
|
11
13
|
private get virtualViewportHeight();
|
|
14
|
+
private get clientHeight();
|
|
12
15
|
private get virtualViewportOffsetTop();
|
|
16
|
+
private get window();
|
|
13
17
|
private setDebugInfo;
|
|
14
|
-
toggle: () => void
|
|
15
|
-
handleViewportScroll: () => void;
|
|
18
|
+
toggle: import("lodash").DebouncedFunc<() => void>;
|
|
16
19
|
handleFocusIn: () => void;
|
|
17
|
-
handleFocusOut: (
|
|
20
|
+
handleFocusOut: () => void;
|
|
18
21
|
}
|