@ones-editor/editor 0.0.7-beta.40 → 0.0.7-beta.42
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.
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="lodash" />
|
|
2
1
|
import { OnesEditorInput, OnesEditor, OnesEditorInputHandler, OnesEditorUndoAction, RemoteChangeType, PasteOptions } from '../types';
|
|
3
2
|
import { DocObject } from '../doc';
|
|
4
3
|
export interface EditorInputCallbacks {
|
|
@@ -25,10 +24,8 @@ export interface EditorInputCallbacks {
|
|
|
25
24
|
export declare class EditorInput implements OnesEditorInput {
|
|
26
25
|
editor: OnesEditor;
|
|
27
26
|
composing: boolean;
|
|
28
|
-
composeJustEnd: boolean;
|
|
29
27
|
callbacks: EditorInputCallbacks;
|
|
30
28
|
inputElement: HTMLInputElement;
|
|
31
|
-
clearComposeJustEnd: import("lodash").DebouncedFunc<() => void>;
|
|
32
29
|
constructor(editor: OnesEditor, callbacks: EditorInputCallbacks);
|
|
33
30
|
destroy(): void;
|
|
34
31
|
getInput(): HTMLInputElement;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { TypedEmitter } from 'tiny-typed-emitter';
|
|
2
|
-
import { DebouncedFunc } from 'lodash';
|
|
3
2
|
import { DocBlock, DocBlockAttributes, DocBlocks, DocBlockText, DocBlockTextAttributes, DocBox, DocEmbedBlock, DocEmbedData, DocInsertion, DocObject, InsertBlockOptions, OnesEditorDoc, OnesEditorDocRange } from './doc';
|
|
4
3
|
export type ContainerElement = HTMLDivElement & {
|
|
5
4
|
__neverUse: 'ContainerElement';
|
|
@@ -568,7 +567,6 @@ export type PasteOptions = {
|
|
|
568
567
|
};
|
|
569
568
|
export interface OnesEditorInput {
|
|
570
569
|
readonly inputElement: HTMLInputElement;
|
|
571
|
-
composeJustEnd: boolean;
|
|
572
570
|
destroy: () => void;
|
|
573
571
|
focus: () => void;
|
|
574
572
|
handleDocumentSelectionChange: () => void;
|
|
@@ -584,7 +582,6 @@ export interface OnesEditorInput {
|
|
|
584
582
|
forEach: (cb: (handler: OnesEditorInputHandler) => void) => void;
|
|
585
583
|
defaultInsertText: (editor: OnesEditor, containerId: string, blockIndex: number, offset: number, text: string) => void;
|
|
586
584
|
defaultHandleKeydown: (editor: OnesEditor, event: KeyboardEvent) => boolean;
|
|
587
|
-
clearComposeJustEnd: DebouncedFunc<() => void>;
|
|
588
585
|
}
|
|
589
586
|
export interface OnesEditorSelectionHandler {
|
|
590
587
|
isSelecting: () => boolean;
|