@ones-editor/editor 2.0.2-beta.2 → 2.0.3-beta.2
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/comments/src/comments-list/mini-comment/mini-comments-list.d.ts +1 -1
- package/@ones-editor/core/src/core/composition/editor-input.d.ts +5 -4
- package/@ones-editor/core/src/core/containers/container.d.ts +1 -0
- package/@ones-editor/core/src/core/doc/apply-data-delta.d.ts +1 -0
- package/@ones-editor/core/src/core/doc/doc.d.ts +21 -0
- package/@ones-editor/core/src/core/selection/actions/index.d.ts +1 -2
- package/@ones-editor/core/src/core/selection/index.d.ts +0 -1
- package/@ones-editor/core/src/core/types.d.ts +1 -1
- package/@ones-editor/core/src/utils/drag-drop.d.ts +3 -8
- package/@ones-editor/file/src/file-embed/card/index.d.ts +1 -1
- package/@ones-editor/file/src/types.d.ts +1 -0
- package/@ones-editor/image-embed/src/splitter-resizer/index.d.ts +3 -3
- package/@ones-editor/mobile-helper/src/index.d.ts +0 -2
- 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 +842 -77444
- package/package.json +1 -1
- package/@ones-editor/mobile-helper/src/selection-gripper/index.d.ts +0 -19
- package/@ones-editor/mobile-helper/src/selection-gripper/select-handle.d.ts +0 -3
- package/dist/mobile/action.d.ts +0 -3
- package/dist/mobile/command-handler.d.ts +0 -15
- package/dist/mobile/command.d.ts +0 -19
- package/dist/mobile/commands/copy.d.ts +0 -8
- package/dist/mobile/layout.d.ts +0 -9
package/package.json
CHANGED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { DragDrop, OnesEditor } from '../../../../@ones-editor/core';
|
|
2
|
-
interface DragData {
|
|
3
|
-
type: 'start' | 'end';
|
|
4
|
-
}
|
|
5
|
-
export default class SelectionGripper {
|
|
6
|
-
private editor;
|
|
7
|
-
private startGripper;
|
|
8
|
-
private endGripper;
|
|
9
|
-
private dragDropStart;
|
|
10
|
-
private dragDropEnd;
|
|
11
|
-
constructor(editor: OnesEditor);
|
|
12
|
-
destroy(): void;
|
|
13
|
-
handleDragStart: (drag: DragDrop<DragData>, event: MouseEvent | TouchEvent, elem: HTMLElement) => void;
|
|
14
|
-
handleDragging: (drag: DragDrop<DragData>, event: MouseEvent | TouchEvent, elem: HTMLElement) => void;
|
|
15
|
-
handleDragEnd: (drag: DragDrop<DragData>, event: MouseEvent | TouchEvent, elem: HTMLElement) => void;
|
|
16
|
-
update(): void;
|
|
17
|
-
close(): void;
|
|
18
|
-
}
|
|
19
|
-
export {};
|
package/dist/mobile/action.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
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
|
-
}
|
package/dist/mobile/command.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
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
|
-
}
|