@ones-editor/editor 2.1.2-beta.6 → 2.1.2-beta.8
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/block-hook/block-comment-hook.d.ts +10 -0
- package/@ones-editor/image-embed/src/hovering-toolbar/index.d.ts +0 -11
- package/@ones-editor/media-embed/src/core/hovering-toolbar/index.d.ts +2 -20
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/dist/index.js +1169 -1123
- package/package.json +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BlockCommands, BlockElement, CommandItem, OnesEditor, OnesEditorBlockHook, TextBlockContentChild } from '../../../../@ones-editor/core';
|
|
2
|
+
import type { OnesEditorComments } from '../comments';
|
|
3
|
+
import { OnesEditorCommentsProvider } from '../types';
|
|
4
|
+
export default class HoveringCommentBlockHook implements OnesEditorBlockHook {
|
|
5
|
+
private provider;
|
|
6
|
+
private editorComments;
|
|
7
|
+
constructor(provider: OnesEditorCommentsProvider, editorComments: OnesEditorComments);
|
|
8
|
+
commands(editor: OnesEditor, blockElement: BlockElement, child: TextBlockContentChild | null): BlockCommands | undefined;
|
|
9
|
+
executeCommand: (editor: OnesEditor, block: BlockElement, item: CommandItem) => void;
|
|
10
|
+
}
|
|
@@ -10,22 +10,11 @@ export default class ImageHoveringToolbarCommands implements BlockCommands {
|
|
|
10
10
|
name: string;
|
|
11
11
|
icon: string;
|
|
12
12
|
type?: undefined;
|
|
13
|
-
groupOrder?: undefined;
|
|
14
|
-
order?: undefined;
|
|
15
13
|
} | {
|
|
16
14
|
id: string;
|
|
17
15
|
name: string;
|
|
18
16
|
type: CommandItemType;
|
|
19
17
|
icon?: undefined;
|
|
20
|
-
groupOrder?: undefined;
|
|
21
|
-
order?: undefined;
|
|
22
|
-
} | {
|
|
23
|
-
id: string;
|
|
24
|
-
name: string;
|
|
25
|
-
icon: string;
|
|
26
|
-
groupOrder: number;
|
|
27
|
-
order: number;
|
|
28
|
-
type?: undefined;
|
|
29
18
|
})[];
|
|
30
19
|
isHoveringImageEmpty: () => boolean;
|
|
31
20
|
get commands(): CommandItem[];
|
|
@@ -1,32 +1,14 @@
|
|
|
1
1
|
import { BlockCommands, BlockElement, CommandItem, OnesEditor } from '../../../../../@ones-editor/core';
|
|
2
|
-
import type { CommandItemType } from '../../../../../@ones-editor/core';
|
|
3
2
|
export default class ImageHoveringToolbarCommands implements BlockCommands {
|
|
4
3
|
protected editor: OnesEditor;
|
|
5
4
|
protected block: BlockElement;
|
|
6
5
|
group: string;
|
|
7
6
|
constructor(editor: OnesEditor, block: BlockElement);
|
|
8
|
-
_commands:
|
|
7
|
+
_commands: {
|
|
9
8
|
id: string;
|
|
10
9
|
name: string;
|
|
11
10
|
icon: string;
|
|
12
|
-
|
|
13
|
-
order: number;
|
|
14
|
-
type?: undefined;
|
|
15
|
-
} | {
|
|
16
|
-
id: string;
|
|
17
|
-
name: string;
|
|
18
|
-
type: CommandItemType;
|
|
19
|
-
icon?: undefined;
|
|
20
|
-
groupOrder?: undefined;
|
|
21
|
-
order?: undefined;
|
|
22
|
-
} | {
|
|
23
|
-
id: string;
|
|
24
|
-
name: string;
|
|
25
|
-
icon: string;
|
|
26
|
-
groupOrder?: undefined;
|
|
27
|
-
order?: undefined;
|
|
28
|
-
type?: undefined;
|
|
29
|
-
})[];
|
|
11
|
+
}[];
|
|
30
12
|
isHoveringImageEmpty: () => boolean;
|
|
31
13
|
get commands(): CommandItem[];
|
|
32
14
|
executeCommand(editor: OnesEditor, block: BlockElement, item: CommandItem): void;
|