@ones-editor/editor 1.2.0-beta.1 → 1.2.0-beta.10
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/containers/container.d.ts +1 -0
- package/@ones-editor/core/src/core/containers/root-container.d.ts +3 -3
- package/@ones-editor/core/src/core/selection/select-handler.d.ts +2 -2
- package/@ones-editor/core/src/core/types.d.ts +1 -1
- package/@ones-editor/core/src/utils/dom.d.ts +3 -0
- package/@ones-editor/mobile-helper/src/index.d.ts +2 -0
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/dist/index.js +1804 -1382
- package/dist/mobile/action.d.ts +10 -2
- package/dist/mobile/align-popup.d.ts +13 -0
- package/dist/mobile/command-handler.d.ts +4 -1
- package/dist/mobile/command.d.ts +4 -1
- package/dist/mobile/layout.d.ts +1 -1
- package/dist/mobile/top-command-bar.d.ts +12 -0
- package/package.json +1 -1
package/dist/mobile/action.d.ts
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
-
import { OnesEditor } from '../../@ones-editor/core';
|
|
2
|
-
export declare const insertHeading: (editor: OnesEditor) => void;
|
|
1
|
+
import { CommandItem, OnesEditor } from '../../@ones-editor/core';
|
|
2
|
+
export declare const insertHeading: (editor: OnesEditor, num: number) => void;
|
|
3
3
|
export declare const changeColor: (editor: OnesEditor) => void;
|
|
4
|
+
export declare const insertQuote: (editor: OnesEditor) => void;
|
|
5
|
+
export declare const insertOrderedList: (editor: OnesEditor) => void;
|
|
6
|
+
export declare const insertUnorderedList: (editor: OnesEditor) => void;
|
|
7
|
+
export declare const insertUncheckedList: (editor: OnesEditor) => void;
|
|
8
|
+
export declare function editorUndo(editor: OnesEditor): boolean;
|
|
9
|
+
export declare function editorRedo(editor: OnesEditor): boolean;
|
|
10
|
+
export declare function align(editor: OnesEditor, item: CommandItem): void;
|
|
11
|
+
export declare function insertImage(editor: OnesEditor, item: CommandItem): Promise<void>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CommandItem, OnesEditor } from '../../@ones-editor/core';
|
|
2
|
+
declare class AlignMenu {
|
|
3
|
+
private editor;
|
|
4
|
+
private menu;
|
|
5
|
+
constructor(editor: OnesEditor);
|
|
6
|
+
private handleClose;
|
|
7
|
+
private onShow;
|
|
8
|
+
handleMenuClick: (bar: any, item: CommandItem) => void;
|
|
9
|
+
show(target: Element): void;
|
|
10
|
+
destroy(): void;
|
|
11
|
+
}
|
|
12
|
+
export declare const getAlignMenu: (editor: OnesEditor) => AlignMenu;
|
|
13
|
+
export {};
|
|
@@ -3,13 +3,16 @@ import './mobile.scss';
|
|
|
3
3
|
export declare class CommandHandler {
|
|
4
4
|
private editor;
|
|
5
5
|
private commandBar;
|
|
6
|
+
private topCommandBar;
|
|
6
7
|
private showKeyboard;
|
|
7
8
|
private initViewportHeight;
|
|
8
9
|
constructor(editor: OnesEditor);
|
|
9
10
|
private get isKeyboardShow();
|
|
10
11
|
private get virtualViewportHeight();
|
|
12
|
+
private get virtualViewportOffsetTop();
|
|
13
|
+
private setDebugInfo;
|
|
11
14
|
toggle: () => void;
|
|
12
|
-
|
|
15
|
+
handleViewportScroll: () => void;
|
|
13
16
|
handleFocusIn: () => void;
|
|
14
17
|
handleFocusOut: (event: FocusEvent) => void;
|
|
15
18
|
}
|
package/dist/mobile/command.d.ts
CHANGED
|
@@ -10,7 +10,10 @@ export declare class CommandBar {
|
|
|
10
10
|
commands: CommandItem[];
|
|
11
11
|
});
|
|
12
12
|
hidden: () => void;
|
|
13
|
-
|
|
13
|
+
hideContainer: () => void;
|
|
14
|
+
showContainer: () => void;
|
|
15
|
+
handleLayoutClose: () => void;
|
|
16
|
+
createLayout: (parent: HTMLElement, children: HTMLElement[], float: 'menu' | 'card') => Layout;
|
|
14
17
|
handleChildTouchStart: (item: {
|
|
15
18
|
name: string;
|
|
16
19
|
}) => void;
|
package/dist/mobile/layout.d.ts
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CommandItem, OnesEditor } from '../../@ones-editor/core';
|
|
2
|
+
export declare class TopCommandBar {
|
|
3
|
+
private editor;
|
|
4
|
+
private options;
|
|
5
|
+
bar: HTMLElement;
|
|
6
|
+
private container;
|
|
7
|
+
constructor(editor: OnesEditor, options: {
|
|
8
|
+
commands: CommandItem[];
|
|
9
|
+
});
|
|
10
|
+
handleTouchStart: (event: TouchEvent, command: CommandItem) => void;
|
|
11
|
+
createCommands: (container: HTMLElement, commands: CommandItem[]) => void;
|
|
12
|
+
}
|