@ones-editor/editor 2.0.5-beta.7 → 2.0.5-beta.9

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,11 @@
1
+ import { OnesEditor, OnesEditorCustom } from '../../../../@ones-editor/core';
1
2
  import { CalloutBlockPayload } from './types';
2
3
  export declare function getLastCalloutData(): CalloutBlockPayload;
3
4
  export declare function updateLastCalloutData(payload: Partial<CalloutBlockPayload>): void;
5
+ export declare class CalloutLastUpdateData implements OnesEditorCustom {
6
+ private lastCalloutBlockPayload;
7
+ get(): CalloutBlockPayload;
8
+ update(payload: Partial<CalloutBlockPayload>): void;
9
+ destroy(): void;
10
+ static init(editor: OnesEditor): CalloutLastUpdateData;
11
+ }
@@ -1,2 +1,4 @@
1
1
  import { DocBlock } from '../../../../@ones-editor/core';
2
+ import { ColorId } from './types';
2
3
  export declare function checkBlockAllowInCallout(block: DocBlock): boolean;
4
+ export declare function getHexBackgroundColor(backgroundColor: ColorId): string;
@@ -13,3 +13,9 @@ export declare function styleBackgroundColorToHex(color: string | undefined): "f
13
13
  * #RRGGBB 转为 RRGGBB
14
14
  */
15
15
  export declare function colorToHex(color: any): string | undefined;
16
+ /**
17
+ * 判断是否是合法的 Hex 格式颜色值
18
+ * @param color
19
+ * @returns
20
+ */
21
+ export declare function isValidHexColor(color: string): boolean;