@uploadcare/file-uploader 1.32.0-alpha.1 → 1.32.0-alpha.2
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/dist/abstract/loadFileUploaderFrom.js +2 -2
- package/dist/env.js +3 -3
- package/dist/index.css +2 -2
- package/dist/index.d.ts +17 -14
- package/dist/index.js +4 -4
- package/dist/index.layered.css +2 -2
- package/dist/index.ssr.js +1 -1
- package/dist/locales/file-uploader/ar.js +2 -2
- package/dist/locales/file-uploader/az.js +2 -2
- package/dist/locales/file-uploader/ca.js +2 -2
- package/dist/locales/file-uploader/cs.js +2 -2
- package/dist/locales/file-uploader/da.js +2 -2
- package/dist/locales/file-uploader/de.js +2 -2
- package/dist/locales/file-uploader/el.js +2 -2
- package/dist/locales/file-uploader/en.js +2 -2
- package/dist/locales/file-uploader/es.js +2 -2
- package/dist/locales/file-uploader/et.js +2 -2
- package/dist/locales/file-uploader/fi.js +2 -2
- package/dist/locales/file-uploader/fr.js +2 -2
- package/dist/locales/file-uploader/he.js +2 -2
- package/dist/locales/file-uploader/hy.js +2 -2
- package/dist/locales/file-uploader/is.js +2 -2
- package/dist/locales/file-uploader/it.js +2 -2
- package/dist/locales/file-uploader/ja.js +2 -2
- package/dist/locales/file-uploader/ka.js +2 -2
- package/dist/locales/file-uploader/kk.js +2 -2
- package/dist/locales/file-uploader/ko.js +2 -2
- package/dist/locales/file-uploader/lv.js +2 -2
- package/dist/locales/file-uploader/nb.js +2 -2
- package/dist/locales/file-uploader/nl.js +2 -2
- package/dist/locales/file-uploader/pl.js +2 -2
- package/dist/locales/file-uploader/pt.js +2 -2
- package/dist/locales/file-uploader/ro.js +2 -2
- package/dist/locales/file-uploader/ru.js +2 -2
- package/dist/locales/file-uploader/sk.js +2 -2
- package/dist/locales/file-uploader/sr.js +2 -2
- package/dist/locales/file-uploader/sv.js +2 -2
- package/dist/locales/file-uploader/tr.js +2 -2
- package/dist/locales/file-uploader/uk.js +2 -2
- package/dist/locales/file-uploader/vi.js +2 -2
- package/dist/locales/file-uploader/zh-TW.js +2 -2
- package/dist/locales/file-uploader/zh.js +2 -2
- package/package.json +1 -1
- package/web/file-uploader.iife.min.d.ts +17 -14
- package/web/file-uploader.iife.min.js +4 -4
- package/web/file-uploader.min.d.ts +17 -14
- package/web/file-uploader.min.js +4 -4
- package/web/uc-basic.layered.min.css +2 -2
- package/web/uc-basic.min.css +2 -2
- package/web/uc-cloud-image-editor.layered.min.css +2 -2
- package/web/uc-cloud-image-editor.min.css +2 -2
- package/web/uc-cloud-image-editor.min.d.ts +17 -14
- package/web/uc-cloud-image-editor.min.js +4 -4
- package/web/uc-file-uploader-inline.layered.min.css +2 -2
- package/web/uc-file-uploader-inline.min.css +2 -2
- package/web/uc-file-uploader-inline.min.d.ts +17 -14
- package/web/uc-file-uploader-inline.min.js +4 -4
- package/web/uc-file-uploader-minimal.layered.min.css +2 -2
- package/web/uc-file-uploader-minimal.min.css +2 -2
- package/web/uc-file-uploader-minimal.min.d.ts +17 -14
- package/web/uc-file-uploader-minimal.min.js +4 -4
- package/web/uc-file-uploader-regular.layered.min.css +2 -2
- package/web/uc-file-uploader-regular.min.css +2 -2
- package/web/uc-file-uploader-regular.min.d.ts +17 -14
- package/web/uc-file-uploader-regular.min.js +4 -4
- package/web/uc-img.min.js +3 -3
|
@@ -1363,6 +1363,20 @@ declare class UploaderPublicApi extends SharedInstance {
|
|
|
1363
1363
|
fullPath?: string;
|
|
1364
1364
|
}) => OutputFileEntry<"idle">;
|
|
1365
1365
|
addFileFromUploadcareFile: (file: UploadcareFile, { silent, fileName, source }?: ApiAddFileCommonOptions) => OutputFileEntry<"success">;
|
|
1366
|
+
/**
|
|
1367
|
+
* Replace an existing entry with an already-uploaded Uploadcare file, keeping
|
|
1368
|
+
* its position in the list. The original entry is removed and a fresh one is
|
|
1369
|
+
* added in its place, so the replacement goes through the full add pipeline
|
|
1370
|
+
* (validators, events) like any newly added file.
|
|
1371
|
+
*
|
|
1372
|
+
* The original entry's `source`, `metadata`, `fullPath` and `silent` are
|
|
1373
|
+
* preserved by default; `silent`, `fileName` and `source` can be overridden
|
|
1374
|
+
* via `options`.
|
|
1375
|
+
*
|
|
1376
|
+
* Returns the new entry. Note: it has a NEW `internalId` — use the returned
|
|
1377
|
+
* entry to reference the replacement going forward.
|
|
1378
|
+
*/
|
|
1379
|
+
replaceFile: (internalId: string, file: UploadcareFile, { silent, fileName, source }?: ApiAddFileCommonOptions) => OutputFileEntry<"success">;
|
|
1366
1380
|
removeFileByInternalId: (internalId: string) => void;
|
|
1367
1381
|
removeAllFiles(): void;
|
|
1368
1382
|
uploadAll: () => void;
|
|
@@ -2583,22 +2597,11 @@ type PluginFilesApi = {
|
|
|
2583
2597
|
/**
|
|
2584
2598
|
* Update mutable properties of a file entry by its internalId.
|
|
2585
2599
|
* `fileSize` is recalculated automatically when `file` is provided.
|
|
2586
|
-
*/
|
|
2587
|
-
update: (internalId: string, changes: PluginFileEntryUpdate) => void;
|
|
2588
|
-
/**
|
|
2589
|
-
* Replace an existing entry with an already-uploaded Uploadcare file, keeping
|
|
2590
|
-
* its position in the list. The original entry is removed and a fresh one is
|
|
2591
|
-
* added in its place, so the replacement goes through the full add pipeline
|
|
2592
|
-
* (validators, events) like any newly added file.
|
|
2593
2600
|
*
|
|
2594
|
-
*
|
|
2595
|
-
*
|
|
2596
|
-
* via `options`.
|
|
2597
|
-
*
|
|
2598
|
-
* Returns the new entry. Note: it has a NEW `internalId` — use the returned
|
|
2599
|
-
* entry to reference the replacement going forward.
|
|
2601
|
+
* Other file operations (add / remove / `replaceFile`) live on the public
|
|
2602
|
+
* uploader API, which plugins receive as `uploaderApi` in `setup`.
|
|
2600
2603
|
*/
|
|
2601
|
-
|
|
2604
|
+
update: (internalId: string, changes: PluginFileEntryUpdate) => void;
|
|
2602
2605
|
};
|
|
2603
2606
|
type PluginApi = {
|
|
2604
2607
|
registry: PluginRegistryApi;
|