@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.
@@ -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): Promise<{
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 };
@@ -10,6 +10,8 @@ declare const _default: {
10
10
  };
11
11
  uploadedTime: string;
12
12
  askAi: string;
13
+ uploadFailed: string;
14
+ retryUpload: string;
13
15
  };
14
16
  };
15
17
  export default _default;
@@ -10,6 +10,8 @@ declare const _default: {
10
10
  };
11
11
  uploadedTime: string;
12
12
  askAi: string;
13
+ uploadFailed: string;
14
+ retryUpload: string;
13
15
  };
14
16
  };
15
17
  export default _default;
@@ -10,6 +10,8 @@ declare const _default: {
10
10
  };
11
11
  uploadedTime: string;
12
12
  askAi: string;
13
+ uploadFailed: string;
14
+ retryUpload: string;
13
15
  };
14
16
  };
15
17
  export default _default;
@@ -10,6 +10,8 @@ declare const _default: {
10
10
  };
11
11
  uploadedTime: string;
12
12
  askAi: string;
13
+ uploadFailed: string;
14
+ retryUpload: string;
13
15
  };
14
16
  };
15
17
  export default _default;
@@ -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
  }