@ones-editor/editor 2.9.8-beta.45 → 2.9.8-beta.47
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/context-menu/src/helper/command-items.d.ts +3 -1
- package/@ones-editor/context-menu/src/menu/index.d.ts +1 -0
- package/@ones-editor/find-dialog/src/highlights/highlight-dom.d.ts +2 -0
- package/@ones-editor/main-toolbar/src/items/paragraph.d.ts +2 -1
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/@ones-editor/ui/src/quick-menu/index.d.ts +3 -3
- package/@ones-editor/ui-base/src/command-bar/types.d.ts +1 -0
- package/dist/index.js +80 -12
- package/package.json +1 -1
|
@@ -5,6 +5,7 @@ export default class ContextMenuCommandItems {
|
|
|
5
5
|
private clipboardPermission;
|
|
6
6
|
private isSecureContext;
|
|
7
7
|
private externalActionHandleMap;
|
|
8
|
+
private target;
|
|
8
9
|
constructor(editor: OnesEditor);
|
|
9
10
|
get hasClipboardReadPermission(): boolean;
|
|
10
11
|
get hasClipboardWritePermission(): boolean;
|
|
@@ -18,10 +19,11 @@ export default class ContextMenuCommandItems {
|
|
|
18
19
|
destroy(): void;
|
|
19
20
|
handleActionByExternal: (item: CommandItem) => unknown;
|
|
20
21
|
getPasteCommandItem: () => Promise<CommandItem>;
|
|
21
|
-
getCommandItems: () => Promise<CommandItem[]>;
|
|
22
|
+
getCommandItems: (target?: HTMLElement | null) => Promise<CommandItem[]>;
|
|
22
23
|
private getExternalContextMenuOptions;
|
|
23
24
|
private secureEnvTips;
|
|
24
25
|
private isFocusImageBlock;
|
|
26
|
+
private getFocusImageBlock;
|
|
25
27
|
private isFocusImageTypeEmbed;
|
|
26
28
|
private isEmptyImageTypeEmbed;
|
|
27
29
|
}
|
|
@@ -11,8 +11,10 @@ export declare function getHighlightInfo(editor: OnesEditor): {
|
|
|
11
11
|
type: 'text' | 'box';
|
|
12
12
|
}[];
|
|
13
13
|
export declare function getHighlightByIndex(editor: OnesEditor, index: number): HTMLElement | null;
|
|
14
|
+
export declare function updateHighlight(editor: OnesEditor, block: BlockElement, elem: HTMLElement): void;
|
|
14
15
|
export declare function createFindHighlight(editor: OnesEditor, block: BlockElement, start: number, end: number): void;
|
|
15
16
|
export declare function createReplaceResultHighligh(editor: OnesEditor, block: BlockElement, start: number, end: number): void;
|
|
16
17
|
export declare function setCurrentHighlight(editor: OnesEditor, elem: HTMLElement): void;
|
|
17
18
|
export declare function getCurrentHighligh(editor: OnesEditor): HTMLElement | null;
|
|
19
|
+
export declare function removeBlockHighlight(elem: HTMLElement): void;
|
|
18
20
|
export declare function isReadonlyHighlight(elem: HTMLElement): boolean;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AbstractCommandBar } from '../../../../@ones-editor/ui-base';
|
|
1
2
|
import { CommandItemChildrenPlacement, CommandItemState, OnesEditor } from '../../../../@ones-editor/core';
|
|
2
3
|
import { ToolbarItem } from '../types';
|
|
3
4
|
export declare class ParagraphItem implements ToolbarItem {
|
|
@@ -10,5 +11,5 @@ export declare class ParagraphItem implements ToolbarItem {
|
|
|
10
11
|
childrenPlacement: CommandItemChildrenPlacement;
|
|
11
12
|
constructor();
|
|
12
13
|
updateState(editor: OnesEditor): void;
|
|
13
|
-
onClick(editor: OnesEditor, item: ToolbarItem): void;
|
|
14
|
+
onClick(editor: OnesEditor, item: ToolbarItem, bar: AbstractCommandBar): void;
|
|
14
15
|
}
|