@ones-editor/editor 3.1.7-beta.ONES22302172.4 → 3.1.7-beta.ONES22302592.1
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/core/src/core/composition/editor-input.d.ts +0 -1
- package/@ones-editor/core/src/core/composition/index.d.ts +0 -2
- package/@ones-editor/main-toolbar/src/index.d.ts +0 -2
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/@ones-editor/ui/package.json +0 -3
- package/@ones-editor/ui/src/toolbar/toolbar-handler.d.ts +1 -2
- package/@ones-editor/ui-base/src/auto-suggest/editor-auto-suggest-menu.d.ts +0 -2
- package/@ones-editor/ui-base/src/command-bar/manual-command-bar.d.ts +4 -1
- package/@ones-editor/ui-base/src/command-bar/types.d.ts +1 -0
- package/dist/index.js +137 -293
- package/package.json +1 -1
- package/@ones-editor/core/src/core/composition/focus-restoration.d.ts +0 -22
package/package.json
CHANGED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { OnesEditor } from '../types';
|
|
2
|
-
export type CancelFocusRestoration = () => void;
|
|
3
|
-
/** Owns both restoration timers and the native focus tasks for one editor input. */
|
|
4
|
-
export declare class FocusRestoration {
|
|
5
|
-
private input;
|
|
6
|
-
private restore;
|
|
7
|
-
private generation;
|
|
8
|
-
private owner;
|
|
9
|
-
private destroyed;
|
|
10
|
-
private timers;
|
|
11
|
-
constructor(input: HTMLTextAreaElement, restore: () => void);
|
|
12
|
-
canFocus(): boolean;
|
|
13
|
-
private hasOtherInput;
|
|
14
|
-
schedule(callback: () => void, delay?: number, protectUserFocus?: boolean): CancelFocusRestoration;
|
|
15
|
-
request(delay?: number): CancelFocusRestoration;
|
|
16
|
-
private cancelPending;
|
|
17
|
-
acquire(): CancelFocusRestoration;
|
|
18
|
-
destroy(): void;
|
|
19
|
-
}
|
|
20
|
-
export declare function requestInputFocus(input: HTMLTextAreaElement, delay?: number): CancelFocusRestoration;
|
|
21
|
-
export declare function requestEditorFocus(editor: OnesEditor, delay?: number): CancelFocusRestoration;
|
|
22
|
-
export declare function acquireEditorFocus(editor: OnesEditor): CancelFocusRestoration;
|