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

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,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;