@ones-editor/editor 2.2.15-beta.1 → 2.2.15-beta.2

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.
@@ -1,3 +1,4 @@
1
- import type { OnesEditor, BlockPath, BlockElement } from '../../../../@ones-editor/core';
1
+ import type { OnesEditor, BlockPath, BlockElement, BlockContentElement, DocBlock } from '../../../../@ones-editor/core';
2
2
  import type { DocCalloutBlockData } from './types';
3
- export declare function createCalloutBlockContent(editor: OnesEditor, path: BlockPath, blockElement: BlockElement, blockData: DocCalloutBlockData): import("@ones-editor/core").BlockContentElement;
3
+ export declare function createCalloutBlockContent(editor: OnesEditor, path: BlockPath, blockElement: BlockElement, blockData: DocCalloutBlockData): BlockContentElement;
4
+ export declare function handleUpdateCalloutBlock(editor: OnesEditor, block: BlockElement, blockData: DocBlock): boolean;
@@ -1,19 +1,14 @@
1
1
  import { OnesEditor, OnesEditorCustom } from '../../../../@ones-editor/core';
2
- interface CalloutIconOptions {
3
- parent: HTMLDivElement;
4
- icon: string;
5
- blockId: string;
6
- }
7
2
  export declare class CalloutIcon implements OnesEditorCustom {
8
3
  private editor;
9
- private options;
4
+ private blockId;
10
5
  private iconElement;
6
+ private emojiPopup;
11
7
  private constructor();
12
8
  private handleSelectEmoji;
13
9
  private handleIconClick;
14
- private bindEvent;
10
+ render(parent: HTMLElement, icon: string): void;
15
11
  updateIcon(icon: string): void;
16
12
  destroy(): void;
17
- static create(editor: OnesEditor, options: CalloutIconOptions): CalloutIcon;
13
+ static get(editor: OnesEditor, blockId: string): CalloutIcon;
18
14
  }
19
- export {};