@ones-editor/editor 1.0.7 → 1.0.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.
|
@@ -66,6 +66,7 @@ export interface Box {
|
|
|
66
66
|
handleClickBox?: (editor: OnesEditor, box: BoxElement, event: MouseEvent) => void;
|
|
67
67
|
toStandardText?: (editor: OnesEditor, box: DocBox) => Promise<DocBlockText | undefined>;
|
|
68
68
|
getBoxProperties?: (editor: OnesEditor, boxElement: BoxElement) => BoxProperties;
|
|
69
|
+
getResources?: (editor: OnesEditor, box: DocBox) => string[];
|
|
69
70
|
}
|
|
70
71
|
export interface Insertion {
|
|
71
72
|
insertionType: string;
|
|
@@ -97,6 +98,7 @@ export interface Embed {
|
|
|
97
98
|
data?: DocBlockAttributes;
|
|
98
99
|
}) => ConvertBlockResult | null;
|
|
99
100
|
toStandardDoc?: (editor: OnesEditor, blockData: DocBlock, doc: DocObject, path: BlockPath) => Promise<DocObject | undefined>;
|
|
101
|
+
getResources?: (editor: OnesEditor, blockData: DocBlock) => string[];
|
|
100
102
|
}
|
|
101
103
|
export interface ConvertBlockResult {
|
|
102
104
|
blockData: DocBlock;
|
|
@@ -226,7 +228,7 @@ export interface Block {
|
|
|
226
228
|
toStandardDoc?: (editor: OnesEditor, blockData: DocBlock, doc: DocObject) => Promise<DocObject | undefined>;
|
|
227
229
|
getBlockStyles?: (editor: OnesEditor, block: BlockElement) => BlockStyles;
|
|
228
230
|
blockToDoc?: (srcDoc: DocObject, srcBlockData: DocBlock, childBlockConverter: (srcDoc: DocObject, srcBlockData: DocBlock) => DocObject) => DocObject;
|
|
229
|
-
getResources?: (data: DocBlock) => string[];
|
|
231
|
+
getResources?: (editor: OnesEditor, data: DocBlock) => string[];
|
|
230
232
|
replaceResources?: (data: DocBlock, resources: Map<string, string>) => void;
|
|
231
233
|
}
|
|
232
234
|
export type TextStyles = {
|