@emailmaker/filemanager 0.10.91 → 0.10.93

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emailmaker/filemanager",
3
- "version": "0.10.91",
3
+ "version": "0.10.93",
4
4
  "main": "./file-manager.js",
5
5
  "module": "./file-manager.esm.js",
6
6
  "types": "./index.d.ts",
package/types.d.ts CHANGED
@@ -214,6 +214,9 @@ export interface UploadFileResultData {
214
214
  id?: string;
215
215
  name?: string;
216
216
  folderId?: string | null;
217
+ url?: string;
218
+ thumbnailUrl?: string;
219
+ thumbnail?: string;
217
220
  }
218
221
  export interface UploadFilesRequest {
219
222
  /**
@@ -235,6 +238,8 @@ export interface FileManagerDataProviders {
235
238
  * Опционально; для уведомлений и подписей в UI.
236
239
  */
237
240
  getItem?: (id: string) => Promise<FileManagerItemMeta | null> | FileManagerItemMeta | null;
241
+ /** Метаданные файла по id (кэш хоста, затем pathMode). */
242
+ getFileById?: (fileId: string) => Promise<File | null>;
238
243
  getFileData: (fileId: string) => Promise<Blob>;
239
244
  findFileByUrl?: (url: string) => Promise<File | null>;
240
245
  getFolders?: (options?: {
@@ -0,0 +1 @@
1
+ export declare function mapWithConcurrency<T, R>(items: readonly T[], limit: number, fn: (item: T, index: number) => Promise<R>): Promise<R[]>;