@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/adapters/DataSourceProxyBase.d.ts +1 -1
- package/{file-manager-IconsTab-BHfR46Fs.js → file-manager-IconsTab-CpDNFgOG.js} +2 -2
- package/{file-manager-ImageCodeGenerator-BJBjgcM1.js → file-manager-ImageCodeGenerator-BEN0Q89z.js} +2 -2
- package/{file-manager-JsBarcode-YVRMhiYN.js → file-manager-JsBarcode-Doi0kSN7.js} +2 -2
- package/{file-manager-browser-DoxVdNgE.js → file-manager-browser-0JPlv5xy.js} +2 -2
- package/{file-manager-index-DrkEBKW2.js → file-manager-index-6WE8OVI9.js} +2 -2
- package/file-manager.css +142 -142
- package/file-manager.esm.js +1 -1
- package/file-manager.js +761 -687
- package/package.json +1 -1
- package/types.d.ts +5 -0
- package/utils/mapWithConcurrency.d.ts +1 -0
package/package.json
CHANGED
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[]>;
|