@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.
- package/@ones-editor/callout-block/src/callout-block/callout-last-callout-payload.d.ts +8 -0
- package/@ones-editor/callout-block/src/callout-block/helper.d.ts +2 -0
- package/@ones-editor/to-docx/src/doc2other/colors.d.ts +6 -0
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/dist/index.js +68 -68
- package/package.json +1 -1
|
@@ -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
|
+
}
|
|
@@ -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;
|