@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.
- package/@ones-editor/core/src/core/types.d.ts +1 -0
- package/@ones-editor/core/src/utils/dom.d.ts +1 -1
- package/@ones-editor/mobile-helper/src/fixed-toolbar/index.d.ts +3 -6
- package/@ones-editor/mobile-helper/src/fixed-toolbar/providers/insert-menu.d.ts +1 -1
- package/@ones-editor/mobile-helper/src/fixed-toolbar/toolbar-handler.d.ts +1 -0
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/@ones-editor/ui/src/link-popup/mobile-link-popup.d.ts +22 -0
- package/@ones-editor/ui/src/link-popup/types.d.ts +34 -0
- package/@ones-editor/ui/src/link-popup/web-link-popup.d.ts +19 -0
- package/@ones-editor/ui-base/src/command-bar/command-bar.d.ts +1 -0
- package/@ones-editor/ui-base/src/command-bar/fixed-toolbar.d.ts +1 -2
- package/@ones-editor/ui-base/src/command-bar/types.d.ts +2 -1
- package/@ones-editor/ui-base/src/index.d.ts +1 -0
- package/@ones-editor/ui-base/src/mobile-command-bar/mobile-bottom-menu.d.ts +0 -1
- package/@ones-editor/ui-base/src/mobile-command-bar/scroll-into-view.d.ts +3 -0
- package/dist/index.js +1194 -1094
- package/package.json +1 -1
|
@@ -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
|
|
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;
|