@ones-editor/editor 1.1.8-beta.16 → 1.1.8-beta.18

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.
@@ -8,7 +8,7 @@ export declare function getImageDim(obj: ImageObject, buffer: ArrayBuffer): Prom
8
8
  width: number;
9
9
  height: number;
10
10
  buffer: ArrayBuffer;
11
- }>;
11
+ } | undefined>;
12
12
  export declare function reCalculateImageDims(dims: (ImageDimWithBuffer | undefined)[], maxWidth: number): {
13
13
  width: number;
14
14
  height: number;
@@ -64,7 +64,7 @@ export type BlockObject = {
64
64
  border: boolean;
65
65
  };
66
66
  export type CodeObject = BlockObject[][];
67
- export type ReadImageFunc = (appId: string, docId: string, image: string) => Promise<ArrayBuffer | undefined>;
67
+ export type ReadImageFunc = (appId: string, docId: string, image: string) => Promise<[ArrayBuffer | undefined, string]>;
68
68
  export type GetDocByBlockFunc = (appId: string, docId: string, block: DocBlock) => Promise<DocObject | undefined>;
69
69
  export type GetTextsByBoxFunc = (box: DocBlockTextOp) => Promise<DocBlockText | undefined>;
70
70
  export type MD5Func = (s: string) => string;