@ones-editor/editor 2.9.8-beta.44 → 2.9.8-beta.46
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/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-base/src/command-bar/types.d.ts +1 -0
- package/dist/index.js +46 -11
- package/package.json +1 -1
|
@@ -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
|
}
|