@uploadcare/file-uploader 1.15.0-alpha.12 → 1.15.0-alpha.13
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/abstract/ActivityBlock.d.ts +5 -5
- package/abstract/ActivityBlock.d.ts.map +1 -1
- package/abstract/Block.d.ts +3 -9
- package/abstract/Block.d.ts.map +1 -1
- package/abstract/CTX.d.ts +6 -6
- package/abstract/CTX.d.ts.map +1 -1
- package/abstract/LocaleManager.d.ts +3 -3
- package/abstract/LocaleManager.d.ts.map +1 -1
- package/abstract/ModalManager.d.ts +13 -18
- package/abstract/ModalManager.d.ts.map +1 -1
- package/abstract/ModalManager.js +19 -10
- package/abstract/SecureUploadsManager.d.ts +2 -2
- package/abstract/SecureUploadsManager.d.ts.map +1 -1
- package/abstract/SolutionBlock.d.ts +2 -2
- package/abstract/SolutionBlock.d.ts.map +1 -1
- package/abstract/TypedCollection.d.ts +44 -44
- package/abstract/TypedCollection.d.ts.map +1 -1
- package/abstract/TypedCollection.js +53 -33
- package/abstract/TypedData.d.ts +71 -25
- package/abstract/TypedData.d.ts.map +1 -1
- package/abstract/TypedData.js +74 -17
- package/abstract/UploaderBlock.d.ts +10 -10
- package/abstract/UploaderBlock.d.ts.map +1 -1
- package/abstract/UploaderBlock.js +22 -10
- package/abstract/UploaderPublicApi.d.ts +24 -23
- package/abstract/UploaderPublicApi.d.ts.map +1 -1
- package/abstract/UploaderPublicApi.js +21 -10
- package/abstract/ValidationManager.d.ts +121 -6
- package/abstract/ValidationManager.d.ts.map +1 -1
- package/abstract/ValidationManager.js +1 -1
- package/abstract/a11y.d.ts +2 -2
- package/abstract/a11y.d.ts.map +1 -1
- package/abstract/buildOutputCollectionState.d.ts +1 -1
- package/abstract/buildOutputCollectionState.d.ts.map +1 -1
- package/abstract/defineComponents.d.ts.map +1 -1
- package/abstract/l10nProcessor.d.ts.map +1 -1
- package/abstract/loadFileUploaderFrom.d.ts +1 -1
- package/abstract/loadFileUploaderFrom.d.ts.map +1 -1
- package/abstract/localeRegistry.d.ts.map +1 -1
- package/abstract/sharedConfigKey.d.ts.map +1 -1
- package/abstract/uploadEntrySchema.d.ts +119 -63
- package/abstract/uploadEntrySchema.d.ts.map +1 -1
- package/abstract/uploadEntrySchema.js +62 -81
- package/blocks/CameraSource/CameraSource.d.ts +9 -9
- package/blocks/CameraSource/CameraSource.d.ts.map +1 -1
- package/blocks/CameraSource/calcCameraModes.d.ts +1 -1
- package/blocks/CameraSource/constants.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/CloudImageEditorBlock.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/CropFrame.d.ts +1 -1
- package/blocks/CloudImageEditor/src/EditorImageCropper.d.ts +3 -3
- package/blocks/CloudImageEditor/src/EditorImageFader.d.ts +1 -1
- package/blocks/CloudImageEditor/src/EditorImageFader.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/EditorSlider.d.ts +1 -1
- package/blocks/CloudImageEditor/src/EditorSlider.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/EditorToolbar.d.ts +1 -1
- package/blocks/CloudImageEditor/src/crop-utils.d.ts +14 -14
- package/blocks/CloudImageEditor/src/crop-utils.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/cropper-constants.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/lib/applyFocusVisiblePolyfill.d.ts +1 -1
- package/blocks/CloudImageEditor/src/lib/applyFocusVisiblePolyfill.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/lib/parseCropPreset.d.ts +1 -1
- package/blocks/CloudImageEditor/src/lib/transformationUtils.d.ts +3 -3
- package/blocks/CloudImageEditor/src/lib/transformationUtils.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/state.d.ts +4 -4
- package/blocks/CloudImageEditor/src/svg-sprite.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/types.d.ts +8 -58
- package/blocks/CloudImageEditor/src/types.d.ts.map +1 -1
- package/blocks/CloudImageEditorActivity/CloudImageEditorActivity.d.ts +5 -2
- package/blocks/CloudImageEditorActivity/CloudImageEditorActivity.d.ts.map +1 -1
- package/blocks/CloudImageEditorActivity/CloudImageEditorActivity.js +7 -3
- package/blocks/Config/Config.d.ts +3 -12
- package/blocks/Config/Config.d.ts.map +1 -1
- package/blocks/Config/assertions.d.ts +1 -1
- package/blocks/Config/initialConfig.d.ts +1 -1
- package/blocks/Config/initialConfig.d.ts.map +1 -1
- package/blocks/Config/initialConfig.js +1 -1
- package/blocks/Config/normalizeConfigValue.d.ts.map +1 -1
- package/blocks/Config/side-effects.d.ts.map +1 -1
- package/blocks/Config/validatorsType.d.ts +1 -1
- package/blocks/Config/validatorsType.d.ts.map +1 -1
- package/blocks/DropArea/DropArea.d.ts +2 -2
- package/blocks/DropArea/DropArea.d.ts.map +1 -1
- package/blocks/DropArea/addDropzone.d.ts.map +1 -1
- package/blocks/DropArea/drop-area.css +4 -2
- package/blocks/DropArea/getDropItems.d.ts +2 -2
- package/blocks/DropArea/getDropItems.d.ts.map +1 -1
- package/blocks/ExternalSource/ExternalSource.d.ts +3 -3
- package/blocks/ExternalSource/ExternalSource.d.ts.map +1 -1
- package/blocks/ExternalSource/MessageBridge.d.ts +3 -3
- package/blocks/ExternalSource/MessageBridge.d.ts.map +1 -1
- package/blocks/ExternalSource/query-string.d.ts.map +1 -1
- package/blocks/ExternalSource/types.d.ts +64 -64
- package/blocks/ExternalSource/types.d.ts.map +1 -1
- package/blocks/FileItem/FileItem.d.ts +20 -24
- package/blocks/FileItem/FileItem.d.ts.map +1 -1
- package/blocks/FileItem/FileItem.js +120 -121
- package/blocks/FileItem/file-item.css +29 -6
- package/blocks/Img/ImgBase.d.ts +3 -3
- package/blocks/Img/ImgBase.d.ts.map +1 -1
- package/blocks/Img/ImgBase.js +9 -9
- package/blocks/Img/ImgConfig.d.ts.map +1 -1
- package/blocks/Img/configurations.d.ts.map +1 -1
- package/blocks/Modal/Modal.d.ts +4 -4
- package/blocks/Modal/Modal.d.ts.map +1 -1
- package/blocks/ProgressBar/ProgressBar.d.ts +6 -1
- package/blocks/ProgressBar/ProgressBar.d.ts.map +1 -1
- package/blocks/ProgressBar/ProgressBar.js +44 -42
- package/blocks/Range/Range.d.ts.map +1 -1
- package/blocks/SimpleBtn/SimpleBtn.d.ts +2 -2
- package/blocks/SimpleBtn/SimpleBtn.d.ts.map +1 -1
- package/blocks/SourceBtn/SourceBtn.d.ts +2 -5
- package/blocks/SourceBtn/SourceBtn.d.ts.map +1 -1
- package/blocks/SourceBtn/SourceBtn.js +5 -5
- package/blocks/SourceList/SourceList.js +2 -2
- package/blocks/Spinner/Spinner.d.ts.map +1 -1
- package/blocks/Thumb/Thumb.d.ts +22 -6
- package/blocks/Thumb/Thumb.d.ts.map +1 -1
- package/blocks/Thumb/Thumb.js +73 -21
- package/blocks/UploadCtxProvider/EventEmitter.d.ts +20 -20
- package/blocks/UploadCtxProvider/EventEmitter.d.ts.map +1 -1
- package/blocks/UploadCtxProvider/UploadCtxProvider.d.ts +4 -4
- package/blocks/UploadCtxProvider/UploadCtxProvider.d.ts.map +1 -1
- package/blocks/UploadList/UploadList.d.ts +3 -3
- package/blocks/UploadList/UploadList.d.ts.map +1 -1
- package/blocks/svg-backgrounds/svg-backgrounds.d.ts +3 -3
- package/blocks/svg-backgrounds/svg-backgrounds.d.ts.map +1 -1
- package/blocks/themes/uc-basic/svg-sprite.d.ts.map +1 -1
- package/blocks/utils/UploadSource.d.ts.map +1 -1
- package/blocks/utils/debounce.d.ts +3 -1
- package/blocks/utils/debounce.d.ts.map +1 -1
- package/blocks/utils/resizeImage.d.ts +1 -1
- package/blocks/utils/resizeImage.d.ts.map +1 -1
- package/blocks/utils/throttle.d.ts +3 -1
- package/blocks/utils/throttle.d.ts.map +1 -1
- package/blocks/utils/userAgent.d.ts +1 -1
- package/blocks/utils/userAgent.d.ts.map +1 -1
- package/env.d.ts.map +1 -1
- package/index.ssr.js +1 -1
- package/package.json +6 -5
- package/solutions/file-uploader/inline/FileUploaderInline.d.ts +2 -2
- package/solutions/file-uploader/inline/FileUploaderInline.d.ts.map +1 -1
- package/solutions/file-uploader/minimal/FileUploaderMinimal.d.ts +10 -10
- package/solutions/file-uploader/minimal/FileUploaderMinimal.d.ts.map +1 -1
- package/solutions/file-uploader/minimal/index.css +5 -0
- package/solutions/file-uploader/regular/FileUploaderRegular.d.ts +2 -2
- package/solutions/file-uploader/regular/FileUploaderRegular.d.ts.map +1 -1
- package/types/jsx.d.ts +1 -1
- package/utils/browser-info.d.ts +13 -0
- package/utils/browser-info.d.ts.map +1 -0
- package/utils/browser-info.js +22 -0
- package/utils/browser-info.test.d.ts +2 -0
- package/utils/browser-info.test.d.ts.map +1 -0
- package/utils/browser-info.test.js +109 -0
- package/utils/cdn-utils.d.ts +3 -3
- package/utils/cdn-utils.d.ts.map +1 -1
- package/utils/fileTypes.d.ts +5 -1
- package/utils/fileTypes.d.ts.map +1 -1
- package/utils/fileTypes.js +18 -2
- package/utils/getPluralForm.d.ts.map +1 -1
- package/utils/isSecureTokenExpired.d.ts +1 -1
- package/utils/memoize.d.ts.map +1 -1
- package/utils/mixinClass.d.ts +3 -1
- package/utils/mixinClass.d.ts.map +1 -1
- package/utils/prettyBytes.d.ts.map +1 -1
- package/utils/template-utils.d.ts +1 -1
- package/utils/template-utils.d.ts.map +1 -1
- package/utils/toKebabCase.d.ts.map +1 -1
- package/utils/transparentPixelSrc.d.ts.map +1 -1
- package/utils/uniqueArray.d.ts.map +1 -1
- package/utils/validators/collection/validateCollectionUploadError.d.ts +1 -1
- package/utils/validators/collection/validateMultiple.d.ts +1 -1
- package/utils/validators/file/validateFileType.d.ts +1 -1
- package/utils/validators/file/validateIsImage.d.ts +1 -1
- package/utils/validators/file/validateMaxSizeLimit.d.ts +1 -1
- package/utils/validators/file/validateUploadError.d.ts +1 -1
- package/utils/waitForAttribute.d.ts +1 -1
- package/utils/waitForAttribute.d.ts.map +1 -1
- package/web/file-uploader.iife.min.js +4 -4
- package/web/file-uploader.min.js +4 -4
- package/web/uc-basic.min.css +1 -1
- package/web/uc-cloud-image-editor.min.js +2 -2
- package/web/uc-file-uploader-inline.min.css +1 -1
- package/web/uc-file-uploader-inline.min.js +4 -4
- package/web/uc-file-uploader-minimal.min.css +1 -1
- package/web/uc-file-uploader-minimal.min.js +4 -4
- package/web/uc-file-uploader-regular.min.css +1 -1
- package/web/uc-file-uploader-regular.min.js +4 -4
- package/web/uc-img.min.js +1 -1
- package/blocks/utils/supportCapture.d.ts +0 -2
- package/blocks/utils/supportCapture.d.ts.map +0 -1
- package/blocks/utils/supportCapture.js +0 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export class UploaderPublicApi {
|
|
2
2
|
/** @param {import('./UploaderBlock.js').UploaderBlock} ctx */
|
|
3
|
-
constructor(ctx: import(
|
|
3
|
+
constructor(ctx: import("./UploaderBlock.js").UploaderBlock);
|
|
4
4
|
/**
|
|
5
5
|
* @private
|
|
6
6
|
* @type {import('./UploaderBlock.js').UploaderBlock}
|
|
@@ -20,41 +20,41 @@ export class UploaderPublicApi {
|
|
|
20
20
|
* @returns {import('../types').OutputFileEntry<'idle'>}
|
|
21
21
|
*/
|
|
22
22
|
addFileFromUrl: (url: string, { silent, fileName, source }?: {
|
|
23
|
-
silent?: boolean
|
|
24
|
-
fileName?: string
|
|
25
|
-
source?: string
|
|
26
|
-
}
|
|
23
|
+
silent?: boolean;
|
|
24
|
+
fileName?: string;
|
|
25
|
+
source?: string;
|
|
26
|
+
}) => import("../types").OutputFileEntry<"idle">;
|
|
27
27
|
/**
|
|
28
28
|
* @param {string} uuid
|
|
29
29
|
* @param {{ silent?: boolean; fileName?: string; source?: string }} [options]
|
|
30
30
|
* @returns {import('../types').OutputFileEntry<'idle'>}
|
|
31
31
|
*/
|
|
32
32
|
addFileFromUuid: (uuid: string, { silent, fileName, source }?: {
|
|
33
|
-
silent?: boolean
|
|
34
|
-
fileName?: string
|
|
35
|
-
source?: string
|
|
36
|
-
}
|
|
33
|
+
silent?: boolean;
|
|
34
|
+
fileName?: string;
|
|
35
|
+
source?: string;
|
|
36
|
+
}) => import("../types").OutputFileEntry<"idle">;
|
|
37
37
|
/**
|
|
38
38
|
* @param {string} cdnUrl
|
|
39
39
|
* @param {{ silent?: boolean; fileName?: string; source?: string }} [options]
|
|
40
40
|
* @returns {import('../types').OutputFileEntry<'idle'>}
|
|
41
41
|
*/
|
|
42
42
|
addFileFromCdnUrl: (cdnUrl: string, { silent, fileName, source }?: {
|
|
43
|
-
silent?: boolean
|
|
44
|
-
fileName?: string
|
|
45
|
-
source?: string
|
|
46
|
-
}
|
|
43
|
+
silent?: boolean;
|
|
44
|
+
fileName?: string;
|
|
45
|
+
source?: string;
|
|
46
|
+
}) => import("../types").OutputFileEntry<"idle">;
|
|
47
47
|
/**
|
|
48
48
|
* @param {File} file
|
|
49
49
|
* @param {{ silent?: boolean; fileName?: string; source?: string; fullPath?: string }} [options]
|
|
50
50
|
* @returns {import('../types').OutputFileEntry<'idle'>}
|
|
51
51
|
*/
|
|
52
52
|
addFileFromObject: (file: File, { silent, fileName, source, fullPath }?: {
|
|
53
|
-
silent?: boolean
|
|
54
|
-
fileName?: string
|
|
55
|
-
source?: string
|
|
56
|
-
fullPath?: string
|
|
57
|
-
}
|
|
53
|
+
silent?: boolean;
|
|
54
|
+
fileName?: string;
|
|
55
|
+
source?: string;
|
|
56
|
+
fullPath?: string;
|
|
57
|
+
}) => import("../types").OutputFileEntry<"idle">;
|
|
58
58
|
/** @param {string} internalId */
|
|
59
59
|
removeFileByInternalId: (internalId: string) => void;
|
|
60
60
|
removeAllFiles(): void;
|
|
@@ -62,18 +62,18 @@ export class UploaderPublicApi {
|
|
|
62
62
|
/** @param {{ captureCamera?: boolean; modeCamera?: import('../blocks/CameraSource/constants.js').ModeCameraType }} options */
|
|
63
63
|
openSystemDialog: (options?: {
|
|
64
64
|
captureCamera?: boolean;
|
|
65
|
-
modeCamera?: import(
|
|
65
|
+
modeCamera?: import("../blocks/CameraSource/constants.js").ModeCameraType;
|
|
66
66
|
}) => void;
|
|
67
67
|
/**
|
|
68
68
|
* @template {import('../types').OutputFileStatus} TStatus
|
|
69
69
|
* @param {string} entryId
|
|
70
70
|
* @returns {import('../types/exported.js').OutputFileEntry<TStatus>}
|
|
71
71
|
*/
|
|
72
|
-
getOutputItem:
|
|
72
|
+
getOutputItem: (entryId: string) => import("../types/exported.js").OutputFileEntry<TStatus>;
|
|
73
73
|
/** @template {import('../types').OutputCollectionStatus} TStatus */
|
|
74
|
-
getOutputCollectionState:
|
|
74
|
+
getOutputCollectionState: () => ReturnType<typeof buildOutputCollectionState<TStatus>>;
|
|
75
75
|
/** @param {Boolean} [force] */
|
|
76
|
-
initFlow: (force?: boolean
|
|
76
|
+
initFlow: (force?: boolean) => void;
|
|
77
77
|
doneFlow: () => void;
|
|
78
78
|
/**
|
|
79
79
|
* @type {<T extends import('./ActivityBlock.js').ActivityType>(
|
|
@@ -87,7 +87,7 @@ export class UploaderPublicApi {
|
|
|
87
87
|
*/
|
|
88
88
|
setCurrentActivity: <T extends import("./ActivityBlock.js").ActivityType>(activityType: T, ...params: T extends keyof import("./ActivityBlock.js").ActivityParamsMap ? [import("./ActivityBlock.js").ActivityParamsMap[T]] : T extends import("./ActivityBlock.js").RegisteredActivityType ? [undefined?] : [any?]) => void;
|
|
89
89
|
/** @returns {import('./ActivityBlock.js').ActivityType} */
|
|
90
|
-
getCurrentActivity: () => import(
|
|
90
|
+
getCurrentActivity: () => import("./ActivityBlock.js").ActivityType;
|
|
91
91
|
/** @param {boolean} opened */
|
|
92
92
|
setModalState: (opened: boolean) => void;
|
|
93
93
|
/**
|
|
@@ -96,4 +96,5 @@ export class UploaderPublicApi {
|
|
|
96
96
|
*/
|
|
97
97
|
private get _sourceList();
|
|
98
98
|
}
|
|
99
|
+
import { buildOutputCollectionState } from './buildOutputCollectionState.js';
|
|
99
100
|
//# sourceMappingURL=UploaderPublicApi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UploaderPublicApi.d.ts","sourceRoot":"","sources":["UploaderPublicApi.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UploaderPublicApi.d.ts","sourceRoot":"","sources":["UploaderPublicApi.js"],"names":[],"mappings":"AAqBA;IAOE,8DAA8D;IAC9D,iBADY,OAAO,oBAAoB,EAAE,aAAa,EAGrD;IATD;;;OAGG;IACH,aAAK;IAOL,eAAe;IACf,gCAEC;IAED,yCAEC;IAED;;iBAEC;IAED;;;;;;OAMG;IACH,iBAAkB,KAJP,MAIU,EAAE,+BAHZ;QAAE,MAAM,CAAC,EAAE,OAAO,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAGT,KAF3C,OAAO,UAAU,EAAE,eAAe,CAAC,MAAM,CAAC,CAUrD;IAEF;;;;OAIG;IACH,kBAAmB,MAJR,MAIY,EAAE,+BAHd;QAAE,MAAM,CAAC,EAAE,OAAO,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAGP,KAF7C,OAAO,UAAU,EAAE,eAAe,CAAC,MAAM,CAAC,CAUrD;IAEF;;;;OAIG;IACH,oBAAqB,QAJV,MAIgB,EAAE,+BAHlB;QAAE,MAAM,CAAC,EAAE,OAAO,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAGH,KAFjD,OAAO,UAAU,EAAE,eAAe,CAAC,MAAM,CAAC,CAgBrD;IAEF;;;;OAIG;IACH,oBAAqB,MAJV,IAIc,EAAE,yCAHhB;QAAE,MAAM,CAAC,EAAE,OAAO,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAGd,KAFzD,OAAO,UAAU,EAAE,eAAe,CAAC,MAAM,CAAC,CAcrD;IAEF,iCAAiC;IACjC,yBAA0B,YADd,MACwB,UAKlC;IAEF,uBAEC;IAED,sBAgBE;IAEF,8HAA8H;IAC9H,mBAAoB,UADR;QAAE,aAAa,CAAC,EAAE,OAAO,CAAC;QAAC,UAAU,CAAC,EAAE,OAAO,qCAAqC,EAAE,cAAc,CAAA;KAChF,UA0D9B;IAEF;;;;OAIG;IACH,gBAAiB,SAHN,MAGa,KAFX,OAAO,sBAAsB,EAAE,eAAe,CAAC,OAAO,CAAC,CA+ClE;IAEF,oEAAoE;IACpE,gCACoB,UAAU,CAAC,OAAO,0BAA0B,CAAC,OAAO,CAAC,CAAC,CAGxE;IAEF,+BAA+B;IAC/B,WAAY,eAAa,UA6DvB;IAEF,qBAQE;IAEF;;;;;;;;;OASG;IACH,oBATU,CAAC,CAAC,SAAS,OAAO,oBAAoB,EAAE,YAAY,EACzD,YAAY,EAAE,CAAC,EACnB,GAAO,MAAM,EAAE,CAAC,SAAS,MAAM,OAAO,oBAAoB,EAAE,iBAAiB,GACrE,CAAC,OAAO,oBAAoB,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC,GACnD,CAAC,SAAS,OAAO,oBAAoB,EAAE,sBAAsB,GAC3D,CAAC,SAAS,CAAC,CAAC,GACZ,CAAC,GAAG,CAAC,CAAC,KACT,IAAI,CAWV;IAEF,2DAA2D;IAC3D,0BADc,OAAO,oBAAoB,EAAE,YAAY,CAGrD;IAEF,8BAA8B;IAC9B,gBAAiB,QADL,OACW,UAYrB;IAEF;;;OAGG;IACH,0BAOC;CACF;2CAxX0C,iCAAiC"}
|
|
@@ -2,16 +2,22 @@
|
|
|
2
2
|
import { ActivityBlock } from './ActivityBlock.js';
|
|
3
3
|
|
|
4
4
|
import { applyStyles, Data } from '@symbiotejs/symbiote';
|
|
5
|
+
import { calcCameraModes } from '../blocks/CameraSource/calcCameraModes.js';
|
|
6
|
+
import { CameraSourceTypes } from '../blocks/CameraSource/constants.js';
|
|
5
7
|
import { EventType } from '../blocks/UploadCtxProvider/EventEmitter.js';
|
|
6
8
|
import { UploadSource } from '../blocks/utils/UploadSource.js';
|
|
7
9
|
import { serializeCsv } from '../blocks/utils/comma-separated.js';
|
|
8
|
-
import {
|
|
10
|
+
import { browserFeatures } from '../utils/browser-info.js';
|
|
11
|
+
import {
|
|
12
|
+
BASIC_IMAGE_WILDCARD,
|
|
13
|
+
BASIC_VIDEO_WILDCARD,
|
|
14
|
+
fileIsImage,
|
|
15
|
+
IMAGE_ACCEPT_LIST,
|
|
16
|
+
mergeFileTypes,
|
|
17
|
+
} from '../utils/fileTypes.js';
|
|
9
18
|
import { parseCdnUrl } from '../utils/parseCdnUrl.js';
|
|
10
|
-
import { buildOutputCollectionState } from './buildOutputCollectionState.js';
|
|
11
19
|
import { stringToArray } from '../utils/stringToArray.js';
|
|
12
|
-
import {
|
|
13
|
-
import { CameraSourceTypes } from '../blocks/CameraSource/constants.js';
|
|
14
|
-
import { isSupportCapture } from '../blocks/utils/supportCapture.js';
|
|
20
|
+
import { buildOutputCollectionState } from './buildOutputCollectionState.js';
|
|
15
21
|
|
|
16
22
|
export class UploaderPublicApi {
|
|
17
23
|
/**
|
|
@@ -125,6 +131,7 @@ export class UploaderPublicApi {
|
|
|
125
131
|
uploadAll = () => {
|
|
126
132
|
const itemsToUpload = this._uploadCollection.items().filter((id) => {
|
|
127
133
|
const entry = this._uploadCollection.read(id);
|
|
134
|
+
if (!entry) return false;
|
|
128
135
|
return !entry.getValue('isRemoved') && !entry.getValue('isUploading') && !entry.getValue('fileInfo');
|
|
129
136
|
});
|
|
130
137
|
|
|
@@ -160,11 +167,13 @@ export class UploaderPublicApi {
|
|
|
160
167
|
const { isPhotoEnabled, isVideoRecordingEnabled } = calcCameraModes(this.cfg);
|
|
161
168
|
|
|
162
169
|
if (options.modeCamera === CameraSourceTypes.PHOTO && isPhotoEnabled) {
|
|
163
|
-
fileInput.accept =
|
|
170
|
+
fileInput.accept = BASIC_IMAGE_WILDCARD;
|
|
164
171
|
} else if (options.modeCamera === CameraSourceTypes.VIDEO && isVideoRecordingEnabled) {
|
|
165
|
-
fileInput.accept =
|
|
172
|
+
fileInput.accept = BASIC_VIDEO_WILDCARD;
|
|
166
173
|
} else {
|
|
167
|
-
fileInput.accept = [
|
|
174
|
+
fileInput.accept = [BASIC_IMAGE_WILDCARD, isVideoRecordingEnabled && BASIC_VIDEO_WILDCARD]
|
|
175
|
+
.filter(Boolean)
|
|
176
|
+
.join(',');
|
|
168
177
|
}
|
|
169
178
|
} else {
|
|
170
179
|
fileInput.accept = accept;
|
|
@@ -204,7 +213,9 @@ export class UploaderPublicApi {
|
|
|
204
213
|
* @returns {import('../types/exported.js').OutputFileEntry<TStatus>}
|
|
205
214
|
*/
|
|
206
215
|
getOutputItem = (entryId) => {
|
|
207
|
-
const uploadEntryData = /** @type {import('./uploadEntrySchema.js').
|
|
216
|
+
const uploadEntryData = /** @type {import('./uploadEntrySchema.js').UploadEntryData} */ (
|
|
217
|
+
Data.getCtx(entryId).store
|
|
218
|
+
);
|
|
208
219
|
|
|
209
220
|
/** @type {import('@uploadcare/upload-client').UploadcareFile?} */
|
|
210
221
|
const fileInfo = uploadEntryData.fileInfo;
|
|
@@ -273,7 +284,7 @@ export class UploaderPublicApi {
|
|
|
273
284
|
return;
|
|
274
285
|
}
|
|
275
286
|
|
|
276
|
-
if (srcKey === 'camera' &&
|
|
287
|
+
if (srcKey === 'camera' && browserFeatures.htmlMediaCapture) {
|
|
277
288
|
const { isPhotoEnabled, isVideoRecordingEnabled } = calcCameraModes(this.cfg);
|
|
278
289
|
|
|
279
290
|
if (isPhotoEnabled && isVideoRecordingEnabled) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export class ValidationManager {
|
|
2
2
|
/** @param {import('./UploaderBlock.js').UploaderBlock} blockInstance */
|
|
3
|
-
constructor(blockInstance: import(
|
|
3
|
+
constructor(blockInstance: import("./UploaderBlock.js").UploaderBlock);
|
|
4
4
|
/**
|
|
5
5
|
* @private
|
|
6
6
|
* @type {import('./UploaderBlock.js').UploaderBlock}
|
|
@@ -10,13 +10,128 @@ export class ValidationManager {
|
|
|
10
10
|
_fileValidators: FuncFileValidator[];
|
|
11
11
|
/** @type {FuncCollectionValidator[]} */
|
|
12
12
|
_collectionValidators: FuncCollectionValidator[];
|
|
13
|
-
_uploadCollection: import("./TypedCollection.js").TypedCollection
|
|
13
|
+
_uploadCollection: import("./TypedCollection.js").TypedCollection<Readonly<{
|
|
14
|
+
file: Readonly<{
|
|
15
|
+
type: {
|
|
16
|
+
new (fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File;
|
|
17
|
+
prototype: File;
|
|
18
|
+
};
|
|
19
|
+
value: null;
|
|
20
|
+
nullable: true;
|
|
21
|
+
}>;
|
|
22
|
+
externalUrl: Readonly<{
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
value: null;
|
|
25
|
+
nullable: true;
|
|
26
|
+
}>;
|
|
27
|
+
fileName: Readonly<{
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
value: null;
|
|
30
|
+
nullable: true;
|
|
31
|
+
}>;
|
|
32
|
+
fileSize: Readonly<{
|
|
33
|
+
type: NumberConstructor;
|
|
34
|
+
value: null;
|
|
35
|
+
nullable: true;
|
|
36
|
+
}>;
|
|
37
|
+
lastModified: Readonly<{
|
|
38
|
+
type: NumberConstructor;
|
|
39
|
+
value: number;
|
|
40
|
+
}>;
|
|
41
|
+
uploadProgress: Readonly<{
|
|
42
|
+
type: NumberConstructor;
|
|
43
|
+
value: 0;
|
|
44
|
+
}>;
|
|
45
|
+
uuid: Readonly<{
|
|
46
|
+
type: StringConstructor;
|
|
47
|
+
value: null;
|
|
48
|
+
nullable: true;
|
|
49
|
+
}>;
|
|
50
|
+
isImage: Readonly<{
|
|
51
|
+
type: BooleanConstructor;
|
|
52
|
+
value: false;
|
|
53
|
+
}>;
|
|
54
|
+
mimeType: Readonly<{
|
|
55
|
+
type: StringConstructor;
|
|
56
|
+
value: null;
|
|
57
|
+
nullable: true;
|
|
58
|
+
}>;
|
|
59
|
+
ctxName: Readonly<{
|
|
60
|
+
type: StringConstructor;
|
|
61
|
+
value: null;
|
|
62
|
+
nullable: true;
|
|
63
|
+
}>;
|
|
64
|
+
cdnUrl: Readonly<{
|
|
65
|
+
type: StringConstructor;
|
|
66
|
+
value: null;
|
|
67
|
+
nullable: true;
|
|
68
|
+
}>;
|
|
69
|
+
cdnUrlModifiers: Readonly<{
|
|
70
|
+
type: StringConstructor;
|
|
71
|
+
value: null;
|
|
72
|
+
nullable: true;
|
|
73
|
+
}>;
|
|
74
|
+
fileInfo: Readonly<{
|
|
75
|
+
type: typeof import("@uploadcare/upload-client").UploadcareFile;
|
|
76
|
+
value: null;
|
|
77
|
+
nullable: true;
|
|
78
|
+
}>;
|
|
79
|
+
isUploading: Readonly<{
|
|
80
|
+
type: BooleanConstructor;
|
|
81
|
+
value: false;
|
|
82
|
+
}>;
|
|
83
|
+
abortController: Readonly<{
|
|
84
|
+
type: {
|
|
85
|
+
new (): AbortController;
|
|
86
|
+
prototype: AbortController;
|
|
87
|
+
};
|
|
88
|
+
value: null;
|
|
89
|
+
nullable: true;
|
|
90
|
+
}>;
|
|
91
|
+
thumbUrl: Readonly<{
|
|
92
|
+
type: StringConstructor;
|
|
93
|
+
value: null;
|
|
94
|
+
nullable: true;
|
|
95
|
+
}>;
|
|
96
|
+
silent: Readonly<{
|
|
97
|
+
type: BooleanConstructor;
|
|
98
|
+
value: false;
|
|
99
|
+
}>;
|
|
100
|
+
source: Readonly<{
|
|
101
|
+
type: StringConstructor;
|
|
102
|
+
value: null;
|
|
103
|
+
nullable: true;
|
|
104
|
+
}>;
|
|
105
|
+
fullPath: Readonly<{
|
|
106
|
+
type: StringConstructor;
|
|
107
|
+
value: null;
|
|
108
|
+
nullable: true;
|
|
109
|
+
}>;
|
|
110
|
+
metadata: Readonly<{
|
|
111
|
+
type: ObjectConstructor;
|
|
112
|
+
value: null;
|
|
113
|
+
nullable: true;
|
|
114
|
+
}>;
|
|
115
|
+
errors: Readonly<{
|
|
116
|
+
type: ArrayConstructor;
|
|
117
|
+
value: Error[];
|
|
118
|
+
}>;
|
|
119
|
+
uploadError: Readonly<{
|
|
120
|
+
type: ErrorConstructor;
|
|
121
|
+
value: null;
|
|
122
|
+
nullable: true;
|
|
123
|
+
}>;
|
|
124
|
+
isRemoved: Readonly<{
|
|
125
|
+
type: BooleanConstructor;
|
|
126
|
+
value: false;
|
|
127
|
+
}>;
|
|
128
|
+
}>>;
|
|
14
129
|
/** @param {string[]} [entryIds] */
|
|
15
|
-
runFileValidators(entryIds?: string[]
|
|
130
|
+
runFileValidators(entryIds?: string[]): void;
|
|
16
131
|
runCollectionValidators(): void;
|
|
17
132
|
/**
|
|
18
133
|
* @private
|
|
19
|
-
* @param {import('./TypedData.js').TypedData} entry
|
|
134
|
+
* @param {import('./TypedData.js').TypedData<typeof import('./uploadEntrySchema.js').uploadEntrySchema>} entry
|
|
20
135
|
*/
|
|
21
136
|
private _runFileValidatorsForEntry;
|
|
22
137
|
/**
|
|
@@ -26,6 +141,6 @@ export class ValidationManager {
|
|
|
26
141
|
*/
|
|
27
142
|
_addCustomTypeToValidators<T>(validators: T[]): T[];
|
|
28
143
|
}
|
|
29
|
-
export type FuncFileValidator = (outputEntry: import(
|
|
30
|
-
export type FuncCollectionValidator = (collection: ReturnType<typeof import(
|
|
144
|
+
export type FuncFileValidator = (outputEntry: import("../types").OutputFileEntry, api: import("./UploaderPublicApi.js").UploaderPublicApi) => undefined | import("../types").OutputErrorFile;
|
|
145
|
+
export type FuncCollectionValidator = (collection: ReturnType<typeof import("./buildOutputCollectionState.js").buildOutputCollectionState<import("../types").OutputCollectionStatus>>, api: import("./UploaderPublicApi.js").UploaderPublicApi) => undefined | import("../types").OutputErrorCollection;
|
|
31
146
|
//# sourceMappingURL=ValidationManager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ValidationManager.d.ts","sourceRoot":"","sources":["ValidationManager.js"],"names":[],"mappings":"AAkCA;IAaE,wEAAwE;IACxE,2BADY,OAAO,oBAAoB,EAAE,aAAa,EAiBrD;IA7BD;;;OAGG;IACH,uBAAe;IAEf,kCAAkC;IAClC,iBADW,iBAAiB,EAAE,CACmE;IAEjG,wCAAwC;IACxC,uBADW,uBAAuB,EAAE,CACsC;IAMxE
|
|
1
|
+
{"version":3,"file":"ValidationManager.d.ts","sourceRoot":"","sources":["ValidationManager.js"],"names":[],"mappings":"AAkCA;IAaE,wEAAwE;IACxE,2BADY,OAAO,oBAAoB,EAAE,aAAa,EAiBrD;IA7BD;;;OAGG;IACH,uBAAe;IAEf,kCAAkC;IAClC,iBADW,iBAAiB,EAAE,CACmE;IAEjG,wCAAwC;IACxC,uBADW,uBAAuB,EAAE,CACsC;IAMxE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAA6D;IAe/D,mCAAmC;IACnC,6BADY,MAAM,EAAE,QASnB;IAED,gCAqCC;IAED;;;OAGG;IACH,mCAyBC;IAED;;;;OAIG;IACH,2BAJa,CAAC,cACH,CAAC,EAAE,GACD,CAAC,EAAE,CAUf;CACF;gCAtJY,CACR,WAAW,EAAE,OAAO,UAAU,EAAE,eAAe,EAC/C,GAAG,EAAE,OAAO,wBAAwB,EAAE,iBAAiB,KACpD,SAAS,GAAG,OAAO,UAAU,EAAE,eAAe;sCAIzC,CACR,UAAU,EAAE,UAAU,CAC1B,cAAoB,iCAAiC,EAAE,0BAA0B,CACjF,OAAe,UAAU,EAAE,sBAAsB,CAC1C,CACF,EACD,GAAG,EAAE,OAAO,wBAAwB,EAAE,iBAAiB,KACpD,SAAS,GAAG,OAAO,UAAU,EAAE,qBAAqB"}
|
|
@@ -116,7 +116,7 @@ export class ValidationManager {
|
|
|
116
116
|
|
|
117
117
|
/**
|
|
118
118
|
* @private
|
|
119
|
-
* @param {import('./TypedData.js').TypedData} entry
|
|
119
|
+
* @param {import('./TypedData.js').TypedData<typeof import('./uploadEntrySchema.js').uploadEntrySchema>} entry
|
|
120
120
|
*/
|
|
121
121
|
_runFileValidatorsForEntry(entry) {
|
|
122
122
|
const outputEntry = this._blockInstance.api.getOutputItem(entry.uid);
|
package/abstract/a11y.d.ts
CHANGED
|
@@ -10,11 +10,11 @@ export class A11y {
|
|
|
10
10
|
*/
|
|
11
11
|
private _scopedWindow;
|
|
12
12
|
/** @param {import('./Block.js').Block} scope */
|
|
13
|
-
registerBlock(scope: import(
|
|
13
|
+
registerBlock(scope: import("./Block.js").Block): void;
|
|
14
14
|
destroy(): void;
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
17
|
* MinimalWindow interface is not exported by keyux, so we import it here using tricky way.
|
|
18
18
|
*/
|
|
19
|
-
export type MinimalWindow = Parameters<import(
|
|
19
|
+
export type MinimalWindow = Parameters<import("keyux").KeyUXModule>[0];
|
|
20
20
|
//# sourceMappingURL=a11y.d.ts.map
|
package/abstract/a11y.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"a11y.d.ts","sourceRoot":"","sources":["a11y.js"],"names":[],"mappings":"AAqFA;IACE;;;OAGG;IACH,sBAAc;IAEd;;;OAGG;IACH,sBAAc;IAYd,gDAAgD;IAChD,qBADY,OAAO,YAAY,EAAE,KAAK,QAGrC;IAED,gBAGC;CACF;;;;4BA/GY,
|
|
1
|
+
{"version":3,"file":"a11y.d.ts","sourceRoot":"","sources":["a11y.js"],"names":[],"mappings":"AAqFA;IACE;;;OAGG;IACH,sBAAc;IAEd;;;OAGG;IACH,sBAAc;IAYd,gDAAgD;IAChD,qBADY,OAAO,YAAY,EAAE,KAAK,QAGrC;IAED,gBAGC;CACF;;;;4BA/GY,UAAU,CAAC,OAAO,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
* @param {import('./UploaderBlock.js').UploaderBlock} uploaderBlock
|
|
5
5
|
* @returns {import('../index.js').OutputCollectionState<TCollectionStatus, TGroupFlag>}
|
|
6
6
|
*/
|
|
7
|
-
export function buildOutputCollectionState<TCollectionStatus extends import("../index.js").OutputCollectionStatus, TGroupFlag extends import("../index.js").GroupFlag = "maybe-has-group">(uploaderBlock: import(
|
|
7
|
+
export function buildOutputCollectionState<TCollectionStatus extends import("../index.js").OutputCollectionStatus, TGroupFlag extends import("../index.js").GroupFlag = "maybe-has-group">(uploaderBlock: import("./UploaderBlock.js").UploaderBlock): import("../index.js").OutputCollectionState<TCollectionStatus, TGroupFlag>;
|
|
8
8
|
//# sourceMappingURL=buildOutputCollectionState.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildOutputCollectionState.d.ts","sourceRoot":"","sources":["buildOutputCollectionState.js"],"names":[],"mappings":"AAiCA;;;;;GAKG;AACH,
|
|
1
|
+
{"version":3,"file":"buildOutputCollectionState.d.ts","sourceRoot":"","sources":["buildOutputCollectionState.js"],"names":[],"mappings":"AAiCA;;;;;GAKG;AACH,2CAL4D,iBAAiB,SAAhE,OAAQ,aAAa,EAAE,sBAAuB,EACX,UAAU,SAA7C,OAAQ,aAAa,EAAE,SAAU,qCACnC,OAAO,oBAAoB,EAAE,aAAa,GACxC,OAAO,aAAa,EAAE,qBAAqB,CAAC,iBAAiB,EAAE,UAAU,CAAC,CAkGtF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defineComponents.d.ts","sourceRoot":"","sources":["defineComponents.js"],"names":[],"mappings":"AAAA,gDAAgD;AAChD
|
|
1
|
+
{"version":3,"file":"defineComponents.d.ts","sourceRoot":"","sources":["defineComponents.js"],"names":[],"mappings":"AAAA,gDAAgD;AAChD;;SAmBC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"l10nProcessor.d.ts","sourceRoot":"","sources":["l10nProcessor.js"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,
|
|
1
|
+
{"version":3,"file":"l10nProcessor.d.ts","sourceRoot":"","sources":["l10nProcessor.js"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,8BAJ0C,CAAC,SAA9B,OAAQ,YAAY,EAAE,KAAM,MAC9B,gBAAgB,SAChB,CAAC,QAcX"}
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
* @param {Boolean} [register] Register connected package, if it not registered yet
|
|
4
4
|
* @returns {Promise<import('../index.js')>}
|
|
5
5
|
*/
|
|
6
|
-
export function loadFileUploaderFrom(url: string, register?: boolean
|
|
6
|
+
export function loadFileUploaderFrom(url: string, register?: boolean): Promise<typeof import("../index.js")>;
|
|
7
7
|
export const UC_WINDOW_KEY: "UC";
|
|
8
8
|
//# sourceMappingURL=loadFileUploaderFrom.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loadFileUploaderFrom.d.ts","sourceRoot":"","sources":["loadFileUploaderFrom.js"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,
|
|
1
|
+
{"version":3,"file":"loadFileUploaderFrom.d.ts","sourceRoot":"","sources":["loadFileUploaderFrom.js"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,uEAFa,OAAO,CAAC,4BAAqB,CAAC,CA0B1C;AA/BD,4BAA6B,IAAI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localeRegistry.d.ts","sourceRoot":"","sources":["localeRegistry.js"],"names":[],"mappings":"AAoCO,yCAHI,MAAM,wBACN,gBAAgB,GAAG,wBAAwB,QAQrD;AAMM,oDAHI,MAAM,GACJ,
|
|
1
|
+
{"version":3,"file":"localeRegistry.d.ts","sourceRoot":"","sources":["localeRegistry.js"],"names":[],"mappings":"AAoCO,yCAHI,MAAM,wBACN,gBAAgB,GAAG,wBAAwB,QAQrD;AAMM,oDAHI,MAAM,GACJ,OAAO,CAAC,gBAAgB,CAAC,CAcrC;+BAnDa,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;uCACtB,MAAM,OAAO,CAAC,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sharedConfigKey.d.ts","sourceRoot":"","sources":["sharedConfigKey.js"],"names":[],"mappings":"AAOO,
|
|
1
|
+
{"version":3,"file":"sharedConfigKey.d.ts","sourceRoot":"","sources":["sharedConfigKey.js"],"names":[],"mappings":"AAOO,gCAJ4C,CAAC,SAAvC,MAAO,OAAO,UAAU,EAAE,UAAW,OACvC,CAAC,GACC,QAAQ,CAAC,EAAE,CAE6B"}
|
|
@@ -1,66 +1,122 @@
|
|
|
1
|
-
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
1
|
+
/** @constant */
|
|
2
|
+
export const uploadEntrySchema: Readonly<{
|
|
3
|
+
file: Readonly<{
|
|
4
|
+
type: {
|
|
5
|
+
new (fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File;
|
|
6
|
+
prototype: File;
|
|
7
|
+
};
|
|
8
|
+
value: null;
|
|
9
|
+
nullable: true;
|
|
10
|
+
}>;
|
|
11
|
+
externalUrl: Readonly<{
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
value: null;
|
|
14
|
+
nullable: true;
|
|
15
|
+
}>;
|
|
16
|
+
fileName: Readonly<{
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
value: null;
|
|
19
|
+
nullable: true;
|
|
20
|
+
}>;
|
|
21
|
+
fileSize: Readonly<{
|
|
22
|
+
type: NumberConstructor;
|
|
23
|
+
value: null;
|
|
24
|
+
nullable: true;
|
|
25
|
+
}>;
|
|
26
|
+
lastModified: Readonly<{
|
|
27
|
+
type: NumberConstructor;
|
|
28
|
+
value: number;
|
|
29
|
+
}>;
|
|
30
|
+
uploadProgress: Readonly<{
|
|
31
|
+
type: NumberConstructor;
|
|
32
|
+
value: 0;
|
|
33
|
+
}>;
|
|
34
|
+
uuid: Readonly<{
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
value: null;
|
|
37
|
+
nullable: true;
|
|
38
|
+
}>;
|
|
39
|
+
isImage: Readonly<{
|
|
40
|
+
type: BooleanConstructor;
|
|
41
|
+
value: false;
|
|
42
|
+
}>;
|
|
43
|
+
mimeType: Readonly<{
|
|
44
|
+
type: StringConstructor;
|
|
45
|
+
value: null;
|
|
46
|
+
nullable: true;
|
|
47
|
+
}>;
|
|
48
|
+
ctxName: Readonly<{
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
value: null;
|
|
51
|
+
nullable: true;
|
|
52
|
+
}>;
|
|
53
|
+
cdnUrl: Readonly<{
|
|
54
|
+
type: StringConstructor;
|
|
55
|
+
value: null;
|
|
56
|
+
nullable: true;
|
|
57
|
+
}>;
|
|
58
|
+
cdnUrlModifiers: Readonly<{
|
|
59
|
+
type: StringConstructor;
|
|
60
|
+
value: null;
|
|
61
|
+
nullable: true;
|
|
62
|
+
}>;
|
|
63
|
+
fileInfo: Readonly<{
|
|
64
|
+
type: typeof UploadcareFile;
|
|
65
|
+
value: null;
|
|
66
|
+
nullable: true;
|
|
67
|
+
}>;
|
|
68
|
+
isUploading: Readonly<{
|
|
69
|
+
type: BooleanConstructor;
|
|
70
|
+
value: false;
|
|
71
|
+
}>;
|
|
72
|
+
abortController: Readonly<{
|
|
73
|
+
type: {
|
|
74
|
+
new (): AbortController;
|
|
75
|
+
prototype: AbortController;
|
|
76
|
+
};
|
|
77
|
+
value: null;
|
|
78
|
+
nullable: true;
|
|
79
|
+
}>;
|
|
80
|
+
thumbUrl: Readonly<{
|
|
81
|
+
type: StringConstructor;
|
|
82
|
+
value: null;
|
|
83
|
+
nullable: true;
|
|
84
|
+
}>;
|
|
85
|
+
silent: Readonly<{
|
|
86
|
+
type: BooleanConstructor;
|
|
87
|
+
value: false;
|
|
88
|
+
}>;
|
|
89
|
+
source: Readonly<{
|
|
90
|
+
type: StringConstructor;
|
|
91
|
+
value: null;
|
|
92
|
+
nullable: true;
|
|
93
|
+
}>;
|
|
94
|
+
fullPath: Readonly<{
|
|
95
|
+
type: StringConstructor;
|
|
96
|
+
value: null;
|
|
97
|
+
nullable: true;
|
|
98
|
+
}>;
|
|
99
|
+
metadata: Readonly<{
|
|
100
|
+
type: ObjectConstructor;
|
|
101
|
+
value: null;
|
|
102
|
+
nullable: true;
|
|
103
|
+
}>;
|
|
104
|
+
errors: Readonly<{
|
|
105
|
+
type: ArrayConstructor;
|
|
106
|
+
value: Error[];
|
|
107
|
+
}>;
|
|
108
|
+
uploadError: Readonly<{
|
|
109
|
+
type: ErrorConstructor;
|
|
110
|
+
value: null;
|
|
111
|
+
nullable: true;
|
|
112
|
+
}>;
|
|
113
|
+
isRemoved: Readonly<{
|
|
114
|
+
type: BooleanConstructor;
|
|
115
|
+
value: false;
|
|
116
|
+
}>;
|
|
37
117
|
}>;
|
|
38
|
-
export type
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
fileName: string;
|
|
42
|
-
fileSize: number;
|
|
43
|
-
lastModified: number;
|
|
44
|
-
uploadProgress: number;
|
|
45
|
-
uuid: string;
|
|
46
|
-
isImage: boolean;
|
|
47
|
-
mimeType: string;
|
|
48
|
-
ctxName: string;
|
|
49
|
-
cdnUrl: string;
|
|
50
|
-
cdnUrlModifiers: string;
|
|
51
|
-
fileInfo: UploadcareFile;
|
|
52
|
-
isUploading: boolean;
|
|
53
|
-
thumbUrl: string;
|
|
54
|
-
silent: boolean;
|
|
55
|
-
errors: ({
|
|
56
|
-
type: import('..').OutputFileErrorType | import('..').OutputCollectionErrorType;
|
|
57
|
-
message: string;
|
|
58
|
-
} & Record<string, unknown>)[];
|
|
59
|
-
uploadError: Error | null;
|
|
60
|
-
fullPath: string | null;
|
|
61
|
-
metadata: import('@uploadcare/upload-client').Metadata | null;
|
|
62
|
-
isRemoved: boolean;
|
|
63
|
-
source: string;
|
|
64
|
-
};
|
|
118
|
+
export type UploadEntryData = import("./TypedData").ExtractDataFromSchema<typeof uploadEntrySchema>;
|
|
119
|
+
export type UploadEntryTypedData = import("./TypedData.js").TypedData<typeof uploadEntrySchema>;
|
|
120
|
+
export type UploadEntryKeys = import("./TypedData.js").ExtractKeysFromSchema<typeof uploadEntrySchema>;
|
|
65
121
|
import { UploadcareFile } from '@uploadcare/upload-client';
|
|
66
122
|
//# sourceMappingURL=uploadEntrySchema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploadEntrySchema.d.ts","sourceRoot":"","sources":["uploadEntrySchema.js"],"names":[],"mappings":"AAGA
|
|
1
|
+
{"version":3,"file":"uploadEntrySchema.d.ts","sourceRoot":"","sources":["uploadEntrySchema.js"],"names":[],"mappings":"AAGA,gBAAgB;AAChB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAkGsB,KAAK,EAAE;;;;;;;;;;;GAW1B;8BAEW,OAAO,aAAa,EAAE,qBAAqB,CAAC,OAAO,iBAAiB,CAAC;mCAErE,OAAO,gBAAgB,EAAE,SAAS,CAAC,OAAO,iBAAiB,CAAC;8BAE5D,OAAO,gBAAgB,EAAE,qBAAqB,CAAC,OAAO,iBAAiB,CAAC;+BAtHvD,2BAA2B"}
|