@uploadcare/file-uploader 1.25.0-alpha.8 → 1.25.0-alpha.9
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 +52 -46
- package/dist/index.js +4 -4
- package/dist/index.layered.css +2 -2
- package/dist/index.ssr.js +31 -20
- 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 +52 -46
- package/web/file-uploader.iife.min.js +4 -4
- package/web/file-uploader.min.d.ts +52 -46
- 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 +50 -45
- 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 +52 -46
- 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 +52 -46
- 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 +52 -46
- package/web/uc-file-uploader-regular.min.js +4 -4
- package/web/uc-img.min.js +3 -3
|
@@ -46,9 +46,9 @@ declare class LocaleManager {
|
|
|
46
46
|
declare class Modal extends LitBlock {
|
|
47
47
|
static styleAttrs: string[];
|
|
48
48
|
private _mouseDownTarget;
|
|
49
|
-
/** WARNING: Do not this, it's used in dashboard */
|
|
49
|
+
/** WARNING: Do not rename/change this, it's used in dashboard */
|
|
50
50
|
protected dialogEl: lit_html_directives_ref_js.Ref<HTMLDialogElement>;
|
|
51
|
-
/** WARNING: Do not this, it's used in dashboard */
|
|
51
|
+
/** WARNING: Do not rename/change this, it's used in dashboard */
|
|
52
52
|
protected closeDialog: () => void;
|
|
53
53
|
private _handleDialogClose;
|
|
54
54
|
private _handleDialogMouseDown;
|
|
@@ -172,7 +172,7 @@ declare class TypedData<T extends Record<string, unknown>> {
|
|
|
172
172
|
setMultipleValues(updObj: Partial<T>): void;
|
|
173
173
|
getValue<K extends keyof T>(prop: K): T[K];
|
|
174
174
|
subscribe<K extends keyof T>(prop: K, handler: (newVal: T[K]) => void): Subscription;
|
|
175
|
-
|
|
175
|
+
destroy(): void;
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
type FuncFileValidator = (outputEntry: OutputFileEntry, api: UploaderPublicApi, options?: {
|
|
@@ -266,6 +266,51 @@ declare const UploadSource: Readonly<{
|
|
|
266
266
|
}>;
|
|
267
267
|
type SourceTypes = (typeof UploadSource)[keyof typeof UploadSource];
|
|
268
268
|
|
|
269
|
+
type ChangeMap<T extends Record<string, unknown>> = Record<keyof T, Set<Uid>>;
|
|
270
|
+
type TypedCollectionPropertyObserver<T extends Record<string, unknown>> = (changeMap: ChangeMap<T>) => void;
|
|
271
|
+
type TypedCollectionObserverHandler<T extends Record<string, unknown>> = (list: Uid[], added: Set<TypedData<T>>, removed: Set<TypedData<T>>) => void;
|
|
272
|
+
type TypedCollectionOptions<T extends Record<string, unknown>> = {
|
|
273
|
+
initialValue: T;
|
|
274
|
+
watchList?: (keyof T)[];
|
|
275
|
+
handler?: TypedCollectionObserverHandler<T>;
|
|
276
|
+
};
|
|
277
|
+
declare class TypedCollection<T extends Record<string, unknown>> {
|
|
278
|
+
private static readonly _destroyDelayMs;
|
|
279
|
+
private _ctxId;
|
|
280
|
+
private _data;
|
|
281
|
+
private _watchList;
|
|
282
|
+
private _subsMap;
|
|
283
|
+
private _propertyObservers;
|
|
284
|
+
private _collectionObservers;
|
|
285
|
+
private _items;
|
|
286
|
+
private _removed;
|
|
287
|
+
private _added;
|
|
288
|
+
private _markedToDestroy;
|
|
289
|
+
private _observeTimeout?;
|
|
290
|
+
private _notifyTimeout?;
|
|
291
|
+
private _destroyTimeout?;
|
|
292
|
+
private _notifyObservers;
|
|
293
|
+
private _initialValue;
|
|
294
|
+
constructor(options: TypedCollectionOptions<T>);
|
|
295
|
+
private _notify;
|
|
296
|
+
private _scheduleDestroyMarkedItems;
|
|
297
|
+
observeCollection(handler: TypedCollectionObserverHandler<T>): () => void;
|
|
298
|
+
unobserveCollection(handler: TypedCollectionObserverHandler<T>): void;
|
|
299
|
+
add(init: Partial<T>): Uid;
|
|
300
|
+
hasItem(id: Uid): boolean;
|
|
301
|
+
read(id: Uid): TypedData<T> | null;
|
|
302
|
+
readProp<K extends keyof T>(id: Uid, propName: K): T[K];
|
|
303
|
+
publishProp<K extends keyof T>(id: Uid, propName: K, value: T[K]): void;
|
|
304
|
+
remove(id: Uid): void;
|
|
305
|
+
clearAll(): void;
|
|
306
|
+
observeProperties(handler: TypedCollectionPropertyObserver<T>): () => void;
|
|
307
|
+
unobserveProperties(handler: TypedCollectionPropertyObserver<T>): void;
|
|
308
|
+
findItems(checkFn: (item: TypedData<T>) => boolean): Uid[];
|
|
309
|
+
items(): Uid[];
|
|
310
|
+
get size(): number;
|
|
311
|
+
destroy(): void;
|
|
312
|
+
}
|
|
313
|
+
|
|
269
314
|
declare const CameraSourceTypes: Readonly<{
|
|
270
315
|
PHOTO: "photo";
|
|
271
316
|
VIDEO: "video";
|
|
@@ -280,7 +325,7 @@ type ApiAddFileCommonOptions = {
|
|
|
280
325
|
declare class UploaderPublicApi {
|
|
281
326
|
private _ctx;
|
|
282
327
|
constructor(ctx: LitUploaderBlock);
|
|
283
|
-
|
|
328
|
+
get _uploadCollection(): TypedCollection<UploadEntryData>;
|
|
284
329
|
get cfg(): ConfigType;
|
|
285
330
|
get l10n(): (str: string, variables?: Record<string, string | number>) => string;
|
|
286
331
|
/**
|
|
@@ -815,46 +860,6 @@ declare class SecureUploadsManager {
|
|
|
815
860
|
getSecureToken(): Promise<SecureUploadsSignatureAndExpire | null>;
|
|
816
861
|
}
|
|
817
862
|
|
|
818
|
-
type ChangeMap<T extends Record<string, unknown>> = Record<keyof T, Set<Uid>>;
|
|
819
|
-
type TypedCollectionPropertyObserver<T extends Record<string, unknown>> = (changeMap: ChangeMap<T>) => void;
|
|
820
|
-
type TypedCollectionObserverHandler<T extends Record<string, unknown>> = (list: Uid[], added: Set<TypedData<T>>, removed: Set<TypedData<T>>) => void;
|
|
821
|
-
type TypedCollectionOptions<T extends Record<string, unknown>> = {
|
|
822
|
-
initialValue: T;
|
|
823
|
-
watchList?: (keyof T)[];
|
|
824
|
-
handler?: TypedCollectionObserverHandler<T>;
|
|
825
|
-
};
|
|
826
|
-
declare class TypedCollection<T extends Record<string, unknown>> {
|
|
827
|
-
private _ctxId;
|
|
828
|
-
private _data;
|
|
829
|
-
private _watchList;
|
|
830
|
-
private _subsMap;
|
|
831
|
-
private _propertyObservers;
|
|
832
|
-
private _collectionObservers;
|
|
833
|
-
private _items;
|
|
834
|
-
private _removed;
|
|
835
|
-
private _added;
|
|
836
|
-
private _observeTimeout?;
|
|
837
|
-
private _notifyTimeout?;
|
|
838
|
-
private _notifyObservers;
|
|
839
|
-
private _initialValue;
|
|
840
|
-
constructor(options: TypedCollectionOptions<T>);
|
|
841
|
-
private _notify;
|
|
842
|
-
observeCollection(handler: TypedCollectionObserverHandler<T>): () => void;
|
|
843
|
-
unobserveCollection(handler: TypedCollectionObserverHandler<T>): void;
|
|
844
|
-
add(init: Partial<T>): string;
|
|
845
|
-
read(id: Uid): TypedData<T> | null;
|
|
846
|
-
readProp<K extends keyof T>(id: Uid, propName: K): T[K];
|
|
847
|
-
publishProp<K extends keyof T>(id: Uid, propName: K, value: T[K]): void;
|
|
848
|
-
remove(id: Uid): void;
|
|
849
|
-
clearAll(): void;
|
|
850
|
-
observeProperties(handler: TypedCollectionPropertyObserver<T>): () => void;
|
|
851
|
-
unobserveProperties(handler: TypedCollectionPropertyObserver<T>): void;
|
|
852
|
-
findItems(checkFn: (item: TypedData<T>) => boolean): Uid[];
|
|
853
|
-
items(): Uid[];
|
|
854
|
-
get size(): number;
|
|
855
|
-
destroy(): void;
|
|
856
|
-
}
|
|
857
|
-
|
|
858
863
|
declare class LitUploaderBlock extends LitActivityBlock {
|
|
859
864
|
static extSrcList: Readonly<typeof ExternalUploadSource>;
|
|
860
865
|
static sourceTypes: Readonly<typeof UploadSource>;
|
|
@@ -1341,6 +1346,7 @@ declare class CloudImageEditorBlock extends LitBlock {
|
|
|
1341
1346
|
declare class CropFrame extends LitBlock {
|
|
1342
1347
|
private _backdropMask?;
|
|
1343
1348
|
private _backdropMaskInner?;
|
|
1349
|
+
private readonly _backdropMaskId;
|
|
1344
1350
|
private _frameThumbs?;
|
|
1345
1351
|
private _frameGuides?;
|
|
1346
1352
|
private _draggingThumb?;
|
|
@@ -1658,7 +1664,6 @@ type Theme = string | null;
|
|
|
1658
1664
|
declare class BtnUi extends LitBlock {
|
|
1659
1665
|
text: string;
|
|
1660
1666
|
icon: string;
|
|
1661
|
-
active: boolean;
|
|
1662
1667
|
reverse: boolean;
|
|
1663
1668
|
theme: Theme;
|
|
1664
1669
|
ariaRole: string;
|