@ones-editor/editor 2.1.1-beta.61 → 2.1.1-beta.63

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.
@@ -640,6 +640,7 @@ export type PasteOptions = {
640
640
  };
641
641
  export interface OnesEditorInput {
642
642
  readonly inputElement: HTMLTextAreaElement;
643
+ getInput: () => HTMLTextAreaElement;
643
644
  destroy: () => void;
644
645
  focus: () => void;
645
646
  handleDocumentSelectionChange: () => void;
@@ -39,5 +39,5 @@ export declare function getElementFromPoint(x: number, y: number, options?: {
39
39
  }): Element;
40
40
  export declare function ensureIsMobileEvent(events: MouseEvent | TouchEvent): events is TouchEvent;
41
41
  export declare function createMouseEventFromTouchEvent(event: TouchEvent, type: 'mousedown' | 'mousemove' | 'mouseup' | 'click'): MouseEvent;
42
- export declare function bindTouchEnd(elem: HTMLElement | Document, callback: (e: any) => void): void;
42
+ export declare function bindTouchEnd(elem: HTMLElement | Document, callback: (e: any) => void): () => void;
43
43
  export {};
@@ -6,17 +6,14 @@ export declare class MobileCommandHandler {
6
6
  private commandBar;
7
7
  private observer;
8
8
  constructor(editor: OnesEditor);
9
- destroy(): void;
10
9
  private showKeyboard;
11
- private initViewportHeight;
12
- private get isKeyboardShow();
10
+ private get window();
13
11
  private get virtualViewportHeight();
14
12
  private get clientHeight();
15
- private get virtualViewportOffsetTop();
16
- private get window();
17
- private setDebugInfo;
18
13
  private toggleDelay;
19
14
  toggle: import("lodash").DebouncedFunc<() => void>;
15
+ handScroll: import("lodash").DebouncedFunc<() => void>;
16
+ destroy(): void;
20
17
  handleFocusIn: () => void;
21
18
  handleFocusOut: () => void;
22
19
  }
@@ -8,7 +8,7 @@ export default class InsertMenuProvider extends ProxyProvider {
8
8
  constructor(editor: OnesEditor);
9
9
  getNextBlock(container: ContainerElement, block: BlockElement): number;
10
10
  getInsertCommands: () => CommandItem[];
11
- getAvailableCommands: (editor: OnesEditor, block: BlockElement, range: SelectionRange) => CommandItem[];
11
+ getAvailableCommands: (editor: OnesEditor, block: BlockElement, range: SelectionRange, params?: CommandParams) => CommandItem[];
12
12
  executeInsertCommand: () => boolean;
13
13
  getNextBlockIndex: (container: ContainerElement, block: BlockElement) => number;
14
14
  executeCommand: (editor: OnesEditor, block: BlockElement, range: SelectionRange, item: CommandItem, params: CommandParams) => boolean;
@@ -5,6 +5,7 @@ export declare class MobileToolbarHandler {
5
5
  private fixedProviders;
6
6
  bar: HTMLElement;
7
7
  constructor(editor: OnesEditor, parent: HTMLElement);
8
+ private handleSubBarShow;
8
9
  private handleSelectionChange;
9
10
  handleClick: (_: any, item: CommandItem) => void;
10
11
  destroy(): void;