@ones-editor/editor 2.2.15-beta.4 → 2.2.16-beta.1

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,4 +1,3 @@
1
- import type { OnesEditor, BlockPath, BlockElement, BlockContentElement, DocBlock } from '../../../../@ones-editor/core';
1
+ import type { OnesEditor, BlockPath, BlockElement } from '../../../../@ones-editor/core';
2
2
  import type { DocCalloutBlockData } from './types';
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;
3
+ export declare function createCalloutBlockContent(editor: OnesEditor, path: BlockPath, blockElement: BlockElement, blockData: DocCalloutBlockData): import("@ones-editor/core").BlockContentElement;
@@ -1,6 +1,4 @@
1
- import { BlockElement, DocBlock, OnesEditor } from '../../../../@ones-editor/core';
2
- import { CalloutBlockPayload, ColorId } from './types';
1
+ import { DocBlock } from '../../../../@ones-editor/core';
2
+ import { ColorId } from './types';
3
3
  export declare function checkBlockAllowInCallout(block: DocBlock): boolean;
4
4
  export declare function getHexBackgroundColor(backgroundColor: ColorId): string;
5
- export declare function getCalloutBlockData(editor: OnesEditor, block: BlockElement): import("./types").DocCalloutBlockData;
6
- export declare function updateCalloutBlockData(editor: OnesEditor, block: BlockElement, blockPayload: Partial<CalloutBlockPayload>): void;
@@ -7,9 +7,6 @@ declare const _default: {
7
7
  clearEmoji: string;
8
8
  background: string;
9
9
  };
10
- icon: {
11
- toggleIcon: string;
12
- };
13
10
  };
14
11
  };
15
12
  export default _default;
@@ -7,9 +7,6 @@ declare const _default: {
7
7
  clearEmoji: string;
8
8
  background: string;
9
9
  };
10
- icon: {
11
- toggleIcon: string;
12
- };
13
10
  };
14
11
  };
15
12
  export default _default;
@@ -7,9 +7,6 @@ declare const _default: {
7
7
  clearEmoji: string;
8
8
  background: string;
9
9
  };
10
- icon: {
11
- toggleIcon: string;
12
- };
13
10
  };
14
11
  };
15
12
  export default _default;
@@ -1,3 +1,9 @@
1
1
  export declare const isEmptyImage: (svg: HTMLImageElement) => boolean;
2
2
  export declare const isEmptySvg: (svg: Element) => boolean;
3
3
  export declare const getTextContent: (node: any) => any;
4
+ interface LoopCheckResourceWasLoadedOptions {
5
+ checker: () => boolean;
6
+ maxRetryTime: number;
7
+ }
8
+ export declare function loopCheckResourceWasLoaded(options: LoopCheckResourceWasLoadedOptions): Promise<void>;
9
+ export {};
@@ -1,6 +1,6 @@
1
- import { OnesEditor, OnesEditorInputHandler, OnesEditorUndoAction, OnesEditorDocs, DocObject, BlockPosition } from '../../../@ones-editor/core';
1
+ import { OnesEditor, OnesEditorInputHandler, OnesEditorUndoAction, OnesEditorDocs, DocObject, BlockPosition, OnesEditorCustom } from '../../../@ones-editor/core';
2
2
  import PasteSpecialButton from './paste-special-button';
3
- export default class PasteSpecialHandler implements OnesEditorInputHandler {
3
+ export default class PasteSpecialHandler implements OnesEditorInputHandler, OnesEditorCustom {
4
4
  private editor;
5
5
  button: PasteSpecialButton;
6
6
  lastUndoAction: OnesEditorUndoAction | null;