@ones-editor/editor 2.0.1 → 2.0.2-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 +4 -4
- package/@ones-editor/core/src/core/selection/actions/index.d.ts +2 -1
- package/@ones-editor/core/src/core/selection/index.d.ts +1 -0
- package/@ones-editor/core/src/core/types.d.ts +1 -1
- package/@ones-editor/core/src/utils/drag-drop.d.ts +8 -3
- package/@ones-editor/image-embed/src/splitter-resizer/index.d.ts +3 -3
- package/@ones-editor/mobile-helper/src/index.d.ts +2 -0
- package/@ones-editor/mobile-helper/src/selection-gripper/index.d.ts +19 -0
- package/@ones-editor/mobile-helper/src/selection-gripper/select-handle.d.ts +3 -0
- package/@ones-editor/table-block/src/table-block/table-resize/resize-drag-drop.d.ts +4 -4
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/@ones-editor/ui-base/src/command-bar/command-bar.d.ts +1 -1
- package/@ones-editor/ui-base/src/command-bar/types.d.ts +1 -1
- package/@ones-editor/ui-base/src/popup/popup.d.ts +1 -1
- package/dist/index.js +77440 -842
- package/dist/mobile/action.d.ts +3 -0
- package/dist/mobile/command-handler.d.ts +15 -0
- package/dist/mobile/command.d.ts +19 -0
- package/dist/mobile/commands/copy.d.ts +8 -0
- package/dist/mobile/layout.d.ts +9 -0
- package/package.json +1 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { OnesEditor } from '../../@ones-editor/core';
|
|
2
|
+
import './mobile.scss';
|
|
3
|
+
export declare class CommandHandler {
|
|
4
|
+
private editor;
|
|
5
|
+
private commandBar;
|
|
6
|
+
private showKeyboard;
|
|
7
|
+
private initViewportHeight;
|
|
8
|
+
constructor(editor: OnesEditor);
|
|
9
|
+
private get isKeyboardShow();
|
|
10
|
+
private get virtualViewportHeight();
|
|
11
|
+
toggle: () => void;
|
|
12
|
+
handleResize: () => void;
|
|
13
|
+
handleFocusIn: () => void;
|
|
14
|
+
handleFocusOut: (event: FocusEvent) => void;
|
|
15
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { CommandItem, OnesEditor } from '../../@ones-editor/core';
|
|
2
|
+
import { Layout } from './layout';
|
|
3
|
+
export declare class CommandBar {
|
|
4
|
+
private editor;
|
|
5
|
+
private options;
|
|
6
|
+
bar: HTMLElement;
|
|
7
|
+
private container;
|
|
8
|
+
private layoutMap;
|
|
9
|
+
constructor(editor: OnesEditor, options: {
|
|
10
|
+
commands: CommandItem[];
|
|
11
|
+
});
|
|
12
|
+
hidden: () => void;
|
|
13
|
+
createLayout: (parent: HTMLElement, children: HTMLElement[]) => Layout;
|
|
14
|
+
handleChildTouchStart: (item: {
|
|
15
|
+
name: string;
|
|
16
|
+
}) => void;
|
|
17
|
+
handleTouchStart: (event: TouchEvent, command: CommandItem) => void;
|
|
18
|
+
createCommands: (container: HTMLElement, commands: CommandItem[]) => void;
|
|
19
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BlockCommandItem, BlockElement, OnesEditor, OnesEditorCommandProvider, SelectionRange } from '../../../@ones-editor/core';
|
|
2
|
+
export default class CopyProvider implements OnesEditorCommandProvider {
|
|
3
|
+
private editor;
|
|
4
|
+
id: string;
|
|
5
|
+
constructor(editor: OnesEditor);
|
|
6
|
+
getAvailableCommands(editor: OnesEditor, block: BlockElement, range: SelectionRange): BlockCommandItem[];
|
|
7
|
+
executeCommand(editor: OnesEditor, block: BlockElement, range: SelectionRange, command: BlockCommandItem): boolean;
|
|
8
|
+
}
|