@ones-editor/editor 2.9.8-beta.49 → 2.9.8-beta.50
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/file/src/file-embed/card/index.d.ts +6 -2
- package/@ones-editor/file/src/index.d.ts +2 -1
- package/@ones-editor/file/src/locale/en-us.d.ts +2 -0
- package/@ones-editor/file/src/locale/ja-jp.d.ts +2 -0
- package/@ones-editor/file/src/locale/zh-cn.d.ts +2 -0
- package/@ones-editor/file/src/locale/zh-hant-hk.d.ts +2 -0
- package/@ones-editor/file/src/types.d.ts +1 -0
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/@ones-editor/ui-base/src/icons/index.d.ts +2 -1
- package/dist/index.js +124 -17
- package/package.json +1 -1
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { OnesEditor, BlockContentElement } from '../../../../../@ones-editor/core';
|
|
2
2
|
import { FileEmbedData } from '../../types';
|
|
3
|
-
export declare function renderFileCard(editor: OnesEditor, content: BlockContentElement, data: FileEmbedData):
|
|
3
|
+
export declare function renderFileCard(editor: OnesEditor, content: BlockContentElement, data: FileEmbedData): {
|
|
4
4
|
card: HTMLDivElement;
|
|
5
5
|
downloadButton: HTMLElement | undefined;
|
|
6
6
|
copilotButton: HTMLButtonElement | undefined;
|
|
7
|
-
|
|
7
|
+
cancel: HTMLButtonElement;
|
|
8
|
+
retryUpload: HTMLButtonElement;
|
|
9
|
+
};
|
|
10
|
+
export declare function updateFileCardProgress(editor: OnesEditor, blockId: string, progressValue: number): void;
|
|
11
|
+
export declare function setFileCardUploadError(editor: OnesEditor, blockId: string): void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import FileBox from './file-box';
|
|
2
2
|
import FileEmbed from './file-embed';
|
|
3
3
|
import './locale';
|
|
4
|
+
import { updateFileCardProgress, setFileCardUploadError } from './file-embed/card';
|
|
4
5
|
export * from './types';
|
|
5
|
-
export { FileBox, FileEmbed };
|
|
6
|
+
export { FileBox, FileEmbed, updateFileCardProgress, setFileCardUploadError };
|
|
@@ -25,4 +25,5 @@ export interface FileOptions {
|
|
|
25
25
|
renderFileCardIcon?: (editor: OnesEditor, blockData: FileEmbedData) => Promise<false | HTMLImageElement>;
|
|
26
26
|
onGetFileDownloadUrl?: (editor: OnesEditor, data: FileBoxData | FileEmbedData) => Promise<string | undefined>;
|
|
27
27
|
newCardUI?: boolean;
|
|
28
|
+
retryUpload?: (editor: OnesEditor, block: BlockElement) => void;
|
|
28
29
|
}
|