@ones-editor/editor 1.1.32 → 1.1.33

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.
@@ -25,12 +25,12 @@ export declare class EditorInput implements OnesEditorInput {
25
25
  editor: OnesEditor;
26
26
  composing: boolean;
27
27
  callbacks: EditorInputCallbacks;
28
- inputElement: HTMLInputElement;
28
+ inputElement: HTMLTextAreaElement;
29
29
  constructor(editor: OnesEditor, callbacks: EditorInputCallbacks);
30
30
  private isInCommandBar;
31
31
  destroy(): void;
32
- getInput(): HTMLInputElement;
33
- focus(): void;
32
+ getInput(): HTMLTextAreaElement;
33
+ focus(options?: FocusOptions): void;
34
34
  isInDisableScrollMask(target: Node): boolean;
35
35
  handleWindowBlur: () => void;
36
36
  handleWindowFocus: () => void;
@@ -499,7 +499,7 @@ export interface OnesEditor extends TypedEmitter<OnesEditorEvents> {
499
499
  createBox: (blockContent: BlockContentElement, box: DocBox) => BoxElement;
500
500
  createInsertion: (blockContent: BlockContentElement, insertion: DocInsertion) => InsertionElement;
501
501
  destroy: () => void;
502
- focus: () => void;
502
+ focus: (options?: FocusOptions) => void;
503
503
  focusToBlock: (block: BlockElement, options?: {
504
504
  tryFocusToChildSimpleBlock?: boolean;
505
505
  }) => void;
@@ -583,7 +583,7 @@ export type PasteOptions = {
583
583
  toPlainText?: boolean;
584
584
  };
585
585
  export interface OnesEditorInput {
586
- readonly inputElement: HTMLInputElement;
586
+ readonly inputElement: HTMLTextAreaElement;
587
587
  destroy: () => void;
588
588
  focus: () => void;
589
589
  handleDocumentSelectionChange: () => void;