@ones-editor/editor 1.1.32 → 1.1.33-beta.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 +3 -3
- package/@ones-editor/core/src/core/types.d.ts +2 -2
- package/@ones-editor/core/src/utils/index.d.ts +1 -0
- package/@ones-editor/core/src/utils/md5.d.ts +1 -0
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/dist/index.js +158 -158
- package/package.json +1 -1
|
@@ -25,12 +25,12 @@ export declare class EditorInput implements OnesEditorInput {
|
|
|
25
25
|
editor: OnesEditor;
|
|
26
26
|
composing: boolean;
|
|
27
27
|
callbacks: EditorInputCallbacks;
|
|
28
|
-
inputElement:
|
|
28
|
+
inputElement: HTMLTextAreaElement;
|
|
29
29
|
constructor(editor: OnesEditor, callbacks: EditorInputCallbacks);
|
|
30
30
|
private isInCommandBar;
|
|
31
31
|
destroy(): void;
|
|
32
|
-
getInput():
|
|
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:
|
|
586
|
+
readonly inputElement: HTMLTextAreaElement;
|
|
587
587
|
destroy: () => void;
|
|
588
588
|
focus: () => void;
|
|
589
589
|
handleDocumentSelectionChange: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const md5: (src: string) => string;
|