@ones-editor/editor 2.0.4-beta.8 → 2.0.4-beta.9
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/block-menu/src/block-menu-button/index.d.ts +0 -1
- package/@ones-editor/block-menu/src/block-menu-button/menu-button/index.d.ts +2 -11
- package/@ones-editor/layout-block/src/index.d.ts +1 -0
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +61 -61
- package/package.json +1 -1
|
@@ -1,26 +1,17 @@
|
|
|
1
1
|
import { BlockElement, OnesEditor } from '../../../../../@ones-editor/core';
|
|
2
2
|
import EmptyBlockMenu from '../../empty-block-menu';
|
|
3
3
|
import BlockMenu from '../../block-menu';
|
|
4
|
-
export declare enum MenuButtonType {
|
|
5
|
-
ROOT = "root",
|
|
6
|
-
PARENT = "parent"
|
|
7
|
-
}
|
|
8
4
|
export default class OnesEditorBlockMenuButton {
|
|
9
5
|
private editor;
|
|
10
|
-
private menuType;
|
|
11
6
|
buttonElement: HTMLButtonElement;
|
|
12
7
|
emptyBlockMenu: EmptyBlockMenu;
|
|
13
8
|
blockMenu: BlockMenu;
|
|
14
9
|
private dragHandler;
|
|
15
|
-
|
|
16
|
-
private removeButtonDelay;
|
|
17
|
-
private shouldRemoveParentButton;
|
|
18
|
-
private removeTimer;
|
|
19
|
-
constructor(editor: OnesEditor, menuType: MenuButtonType);
|
|
10
|
+
constructor(editor: OnesEditor);
|
|
20
11
|
destroy(): void;
|
|
21
12
|
handleHoverBlock: (hoverBlock: BlockElement | null, oldBlock: BlockElement | null, event: MouseEvent) => void;
|
|
22
13
|
showRootButton(hoverBlock: BlockElement): void;
|
|
23
|
-
showParentButton(hoverBlock: BlockElement):
|
|
14
|
+
showParentButton(hoverBlock: BlockElement): boolean;
|
|
24
15
|
removeParentButton: () => void;
|
|
25
16
|
addButtonToView(block: BlockElement): void;
|
|
26
17
|
handleButtonClick: () => void;
|