@uploadcare/file-uploader 1.24.0 → 1.24.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/env.js +1 -1
- package/dist/index.d.ts +9 -6
- package/dist/index.js +258 -119
- package/dist/index.ssr.js +1 -3
- package/package.json +1 -1
- package/web/file-uploader.iife.min.d.ts +9 -6
- package/web/file-uploader.iife.min.js +4 -4
- package/web/file-uploader.min.d.ts +9 -6
- package/web/file-uploader.min.js +4 -4
- package/web/uc-cloud-image-editor.min.d.ts +9 -4
- package/web/uc-cloud-image-editor.min.js +4 -4
- package/web/uc-file-uploader-inline.min.d.ts +9 -6
- package/web/uc-file-uploader-inline.min.js +4 -4
- package/web/uc-file-uploader-minimal.min.d.ts +9 -6
- package/web/uc-file-uploader-minimal.min.js +4 -4
- package/web/uc-file-uploader-regular.min.d.ts +9 -6
- package/web/uc-file-uploader-regular.min.js +4 -4
- package/web/uc-img.min.js +1 -1
|
@@ -206,6 +206,7 @@ declare class Config extends Block {
|
|
|
206
206
|
_assertSameValueDifferentReference(key: string, previousValue: unknown, nextValue: unknown): void;
|
|
207
207
|
initCallback(): void;
|
|
208
208
|
attributeChangedCallback(name: keyof typeof attrStateMapping, oldVal: string, newVal: string): void;
|
|
209
|
+
get computationControllers(): any;
|
|
209
210
|
}
|
|
210
211
|
interface Config extends ConfigType {
|
|
211
212
|
}
|
|
@@ -1012,9 +1013,13 @@ declare class ModalManager {
|
|
|
1012
1013
|
destroy(): void;
|
|
1013
1014
|
}
|
|
1014
1015
|
|
|
1015
|
-
declare const
|
|
1016
|
+
declare const InternalEventType: Readonly<{
|
|
1016
1017
|
readonly INIT_SOLUTION: "init-solution";
|
|
1017
1018
|
readonly CHANGE_CONFIG: "change-config";
|
|
1019
|
+
readonly ACTION_EVENT: "action-event";
|
|
1020
|
+
readonly ERROR_EVENT: "error-event";
|
|
1021
|
+
}>;
|
|
1022
|
+
declare const EventType: Readonly<{
|
|
1018
1023
|
readonly FILE_ADDED: "file-added";
|
|
1019
1024
|
readonly FILE_REMOVED: "file-removed";
|
|
1020
1025
|
readonly FILE_UPLOAD_START: "file-upload-start";
|
|
@@ -1035,6 +1040,7 @@ declare const EventType: Readonly<{
|
|
|
1035
1040
|
readonly GROUP_CREATED: "group-created";
|
|
1036
1041
|
}>;
|
|
1037
1042
|
type EventKey = (typeof EventType)[keyof typeof EventType];
|
|
1043
|
+
type InternalEventKey = (typeof InternalEventType)[keyof typeof InternalEventType];
|
|
1038
1044
|
type EventPayload = {
|
|
1039
1045
|
[EventType.FILE_ADDED]: OutputFileEntry<'idle'>;
|
|
1040
1046
|
[EventType.FILE_REMOVED]: OutputFileEntry<'removed'>;
|
|
@@ -1061,8 +1067,6 @@ type EventPayload = {
|
|
|
1061
1067
|
[EventType.COMMON_UPLOAD_FAILED]: OutputCollectionState<'failed'>;
|
|
1062
1068
|
[EventType.CHANGE]: OutputCollectionState;
|
|
1063
1069
|
[EventType.GROUP_CREATED]: OutputCollectionState<'success', 'has-group'>;
|
|
1064
|
-
[EventType.INIT_SOLUTION]: void;
|
|
1065
|
-
[EventType.CHANGE_CONFIG]: void;
|
|
1066
1070
|
};
|
|
1067
1071
|
declare class EventEmitter {
|
|
1068
1072
|
private _timeoutStore;
|
|
@@ -1098,12 +1102,13 @@ declare class LocaleManager {
|
|
|
1098
1102
|
destroy(): void;
|
|
1099
1103
|
}
|
|
1100
1104
|
|
|
1105
|
+
type CommonEventType = InternalEventKey | EventKey;
|
|
1101
1106
|
type TelemetryState = TelemetryRequest & {
|
|
1102
1107
|
eventTimestamp: number;
|
|
1103
1108
|
};
|
|
1104
1109
|
type TelemetryEventBody = Partial<Pick<TelemetryState, 'payload' | 'config'>> & {
|
|
1105
1110
|
modalId?: string;
|
|
1106
|
-
eventType?:
|
|
1111
|
+
eventType?: CommonEventType;
|
|
1107
1112
|
};
|
|
1108
1113
|
declare class TelemetryManager {
|
|
1109
1114
|
private readonly _sessionId;
|