@ones-editor/editor 2.0.2-beta.2 → 2.0.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ones-editor/editor",
3
- "version": "2.0.2-beta.2",
3
+ "version": "2.0.3",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -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 {};
@@ -1,3 +0,0 @@
1
- export declare const HANDLE_CIRCLE_SIZE = 12;
2
- export declare const HANDLE_WIDTH = 12;
3
- export declare function createSelectHandle(type: 'start' | 'end'): HTMLDivElement;
@@ -1,3 +0,0 @@
1
- import { OnesEditor } from '../../@ones-editor/core';
2
- export declare const insertHeading: (editor: OnesEditor) => void;
3
- export declare const changeColor: (editor: OnesEditor) => void;
@@ -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
- }
@@ -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
- }
@@ -1,9 +0,0 @@
1
- export declare class Layout {
2
- private layout;
3
- constructor(children: HTMLElement[]);
4
- appendTo(parent: HTMLElement): void;
5
- remove(): void;
6
- get isShow(): boolean;
7
- hidden(): void;
8
- show(): void;
9
- }