@uploadcare/file-uploader 1.12.0-alpha.0 → 1.13.0-alpha.0
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/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.map +1 -1
- package/abstract/TypedData.d.ts +1 -1
- package/abstract/TypedData.d.ts.map +1 -1
- package/abstract/UploaderBlock.d.ts +5 -7
- package/abstract/UploaderBlock.d.ts.map +1 -1
- package/abstract/UploaderPublicApi.d.ts +23 -22
- package/abstract/UploaderPublicApi.d.ts.map +1 -1
- package/abstract/ValidationManager.d.ts +4 -4
- package/abstract/ValidationManager.d.ts.map +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 +2 -2
- package/abstract/uploadEntrySchema.d.ts.map +1 -1
- package/blocks/CameraSource/CameraSource.d.ts +9 -9
- package/blocks/CameraSource/CameraSource.d.ts.map +1 -1
- package/blocks/CameraSource/CameraSource.js +11 -10
- package/blocks/CloudImageEditor/src/CloudImageEditorBlock.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/CropFrame.d.ts +8 -1
- package/blocks/CloudImageEditor/src/CropFrame.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/CropFrame.js +45 -0
- 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/css/common.css +4 -0
- 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 +1 -1
- package/blocks/CloudImageEditorActivity/CloudImageEditorActivity.d.ts.map +1 -1
- package/blocks/Config/Config.d.ts +4 -12
- package/blocks/Config/Config.d.ts.map +1 -1
- package/blocks/Config/Config.js +2 -0
- package/blocks/Config/initialConfig.d.ts +1 -1
- package/blocks/Config/initialConfig.d.ts.map +1 -1
- package/blocks/Config/initialConfig.js +3 -0
- package/blocks/Config/normalizeConfigValue.d.ts.map +1 -1
- package/blocks/Config/normalizeConfigValue.js +2 -0
- 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/getDropItems.d.ts +2 -2
- package/blocks/DropArea/getDropItems.d.ts.map +1 -1
- package/blocks/ExternalSource/ExternalSource.d.ts +11 -5
- package/blocks/ExternalSource/ExternalSource.d.ts.map +1 -1
- package/blocks/ExternalSource/ExternalSource.js +27 -16
- package/blocks/ExternalSource/MessageBridge.d.ts +3 -3
- package/blocks/ExternalSource/MessageBridge.d.ts.map +1 -1
- package/blocks/ExternalSource/external-source.css +14 -0
- package/blocks/ExternalSource/query-string.d.ts.map +1 -1
- package/blocks/ExternalSource/types.d.ts +65 -76
- package/blocks/ExternalSource/types.d.ts.map +1 -1
- package/blocks/ExternalSource/types.js +1 -15
- package/blocks/FileItem/FileItem.d.ts +2 -2
- package/blocks/FileItem/FileItem.d.ts.map +1 -1
- package/blocks/Img/ImgBase.d.ts +3 -3
- package/blocks/Img/ImgBase.d.ts.map +1 -1
- package/blocks/Img/ImgConfig.d.ts.map +1 -1
- package/blocks/Img/configurations.d.ts.map +1 -1
- 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 -2
- package/blocks/SourceBtn/SourceBtn.d.ts.map +1 -1
- package/blocks/SourceList/SourceList.d.ts.map +1 -1
- package/blocks/SourceList/SourceList.js +11 -0
- package/blocks/Spinner/Spinner.d.ts +8 -0
- package/blocks/Spinner/Spinner.d.ts.map +1 -0
- package/blocks/Spinner/Spinner.js +5 -0
- package/blocks/Spinner/spinner.css +18 -0
- 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 +2 -2
- 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/index.css +1 -0
- package/blocks/themes/uc-basic/svg-sprite.d.ts +1 -1
- package/blocks/themes/uc-basic/svg-sprite.d.ts.map +1 -1
- package/blocks/themes/uc-basic/svg-sprite.js +1 -1
- package/blocks/utils/UploadSource.d.ts +0 -2
- package/blocks/utils/UploadSource.d.ts.map +1 -1
- package/blocks/utils/UploadSource.js +0 -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 +1 -1
- package/env.d.ts.map +1 -1
- package/env.js +1 -1
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/index.ssr.d.ts +8 -30
- package/index.ssr.d.ts.map +1 -1
- package/index.ssr.js +13 -35
- package/locales/file-uploader/ar.d.ts +0 -1
- package/locales/file-uploader/ar.js +0 -1
- package/locales/file-uploader/az.d.ts +0 -1
- package/locales/file-uploader/az.js +0 -1
- package/locales/file-uploader/ca.d.ts +0 -1
- package/locales/file-uploader/ca.js +0 -1
- package/locales/file-uploader/cs.d.ts +0 -1
- package/locales/file-uploader/cs.js +0 -1
- package/locales/file-uploader/da.d.ts +0 -1
- package/locales/file-uploader/da.js +0 -1
- package/locales/file-uploader/de.d.ts +0 -1
- package/locales/file-uploader/de.js +0 -1
- package/locales/file-uploader/el.d.ts +0 -1
- package/locales/file-uploader/el.js +0 -1
- package/locales/file-uploader/en.d.ts +0 -1
- package/locales/file-uploader/en.js +0 -1
- package/locales/file-uploader/es.d.ts +0 -1
- package/locales/file-uploader/es.js +0 -1
- package/locales/file-uploader/et.d.ts +0 -1
- package/locales/file-uploader/et.js +0 -1
- package/locales/file-uploader/fi.d.ts +0 -1
- package/locales/file-uploader/fi.js +0 -1
- package/locales/file-uploader/fr.d.ts +0 -1
- package/locales/file-uploader/fr.js +0 -1
- package/locales/file-uploader/he.d.ts +0 -1
- package/locales/file-uploader/he.js +0 -1
- package/locales/file-uploader/hy.d.ts +0 -1
- package/locales/file-uploader/hy.js +0 -1
- package/locales/file-uploader/is.d.ts +0 -1
- package/locales/file-uploader/is.js +0 -1
- package/locales/file-uploader/it.d.ts +0 -1
- package/locales/file-uploader/it.js +0 -1
- package/locales/file-uploader/ja.d.ts +0 -1
- package/locales/file-uploader/ja.js +0 -1
- package/locales/file-uploader/ka.d.ts +0 -1
- package/locales/file-uploader/ka.js +0 -1
- package/locales/file-uploader/kk.d.ts +0 -1
- package/locales/file-uploader/kk.js +0 -1
- package/locales/file-uploader/ko.d.ts +0 -1
- package/locales/file-uploader/ko.js +0 -1
- package/locales/file-uploader/lv.d.ts +0 -1
- package/locales/file-uploader/lv.js +0 -1
- package/locales/file-uploader/nb.d.ts +0 -1
- package/locales/file-uploader/nb.js +0 -1
- package/locales/file-uploader/nl.d.ts +0 -1
- package/locales/file-uploader/nl.js +0 -1
- package/locales/file-uploader/pl.d.ts +0 -1
- package/locales/file-uploader/pl.js +0 -1
- package/locales/file-uploader/pt.d.ts +0 -1
- package/locales/file-uploader/pt.js +0 -1
- package/locales/file-uploader/ro.d.ts +0 -1
- package/locales/file-uploader/ro.js +0 -1
- package/locales/file-uploader/ru.d.ts +0 -1
- package/locales/file-uploader/ru.js +0 -1
- package/locales/file-uploader/sk.d.ts +0 -1
- package/locales/file-uploader/sk.js +0 -1
- package/locales/file-uploader/sr.d.ts +0 -1
- package/locales/file-uploader/sr.js +0 -1
- package/locales/file-uploader/sv.d.ts +0 -1
- package/locales/file-uploader/sv.js +0 -1
- package/locales/file-uploader/tr.d.ts +0 -1
- package/locales/file-uploader/tr.js +0 -1
- package/locales/file-uploader/uk.d.ts +0 -1
- package/locales/file-uploader/uk.js +0 -1
- package/locales/file-uploader/vi.d.ts +0 -1
- package/locales/file-uploader/vi.js +0 -1
- package/locales/file-uploader/zh-TW.d.ts +0 -1
- package/locales/file-uploader/zh-TW.js +0 -1
- package/locales/file-uploader/zh.d.ts +0 -1
- package/locales/file-uploader/zh.js +0 -1
- package/package.json +1 -1
- 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/regular/FileUploaderRegular.d.ts +3 -3
- package/solutions/file-uploader/regular/FileUploaderRegular.d.ts.map +1 -1
- package/types/exported.d.ts +170 -0
- package/utils/cdn-utils.d.ts +3 -3
- package/utils/cdn-utils.d.ts.map +1 -1
- package/utils/fileTypes.d.ts +1 -1
- package/utils/fileTypes.d.ts.map +1 -1
- 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.css +1 -1
- package/web/uc-cloud-image-editor.min.js +4 -4
- 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.js +3 -3
- 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 +2 -2
package/types/exported.d.ts
CHANGED
|
@@ -24,59 +24,219 @@ export type CollectionValidators = FuncCollectionValidator[];
|
|
|
24
24
|
export type SourceTypes = import('../blocks/utils/UploadSource').SourceTypes
|
|
25
25
|
|
|
26
26
|
export type ConfigType = {
|
|
27
|
+
/**
|
|
28
|
+
* Your project’s Public Key.
|
|
29
|
+
*/
|
|
27
30
|
pubkey: string;
|
|
31
|
+
/**
|
|
32
|
+
* Allow multiple file uploads.
|
|
33
|
+
*/
|
|
28
34
|
multiple: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Minimum number of files to upload.
|
|
37
|
+
*/
|
|
29
38
|
multipleMin: number;
|
|
39
|
+
/**
|
|
40
|
+
* Maximum number of files to upload.
|
|
41
|
+
*/
|
|
30
42
|
multipleMax: number;
|
|
43
|
+
/**
|
|
44
|
+
* Require user confirmation before uploading.
|
|
45
|
+
*/
|
|
31
46
|
confirmUpload: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Allow only image files.
|
|
49
|
+
*/
|
|
32
50
|
imgOnly: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Native file input accept attribute value. Also affects client validation settings.
|
|
53
|
+
*/
|
|
33
54
|
accept: string;
|
|
55
|
+
/**
|
|
56
|
+
* Preferred types for external sources.
|
|
57
|
+
* See [here](https://uploadcare.com/docs/file-uploader/options/#external-sources-preferred-types)
|
|
58
|
+
*/
|
|
34
59
|
externalSourcesPreferredTypes: string;
|
|
60
|
+
/**
|
|
61
|
+
* Provide custom CSS to the social sources iframe
|
|
62
|
+
*/
|
|
63
|
+
externalSourcesEmbedCss: string;
|
|
64
|
+
/**
|
|
65
|
+
* Store uploaded files.
|
|
66
|
+
*/
|
|
35
67
|
store: boolean | 'auto';
|
|
68
|
+
/**
|
|
69
|
+
* Mirror the camera view.
|
|
70
|
+
*/
|
|
36
71
|
cameraMirror: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Default camera capture mode.
|
|
74
|
+
*/
|
|
37
75
|
cameraCapture: 'user' | 'environment' | '';
|
|
76
|
+
/**
|
|
77
|
+
* List of sources for file uploads.
|
|
78
|
+
*/
|
|
38
79
|
sourceList: string;
|
|
80
|
+
/**
|
|
81
|
+
* Maximum size of local files in bytes.
|
|
82
|
+
*/
|
|
39
83
|
maxLocalFileSizeBytes: number;
|
|
84
|
+
/**
|
|
85
|
+
* Thumbnail size.
|
|
86
|
+
*/
|
|
40
87
|
thumbSize: number;
|
|
88
|
+
/**
|
|
89
|
+
* Show the upload list even if it is empty.
|
|
90
|
+
*/
|
|
41
91
|
showEmptyList: boolean;
|
|
92
|
+
/**
|
|
93
|
+
* Use local image editor.
|
|
94
|
+
*/
|
|
42
95
|
useLocalImageEditor: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* Enable cloud image editing.
|
|
98
|
+
*/
|
|
43
99
|
useCloudImageEditor: boolean;
|
|
100
|
+
/**
|
|
101
|
+
* Tabs to show in the cloud image editor.
|
|
102
|
+
*
|
|
103
|
+
* @default 'crop, tuning, filters'
|
|
104
|
+
*/
|
|
44
105
|
cloudImageEditorTabs: string;
|
|
106
|
+
/**
|
|
107
|
+
* Remove copyright information.
|
|
108
|
+
*/
|
|
45
109
|
removeCopyright: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* Defines the crop behavior. When uploading images, your users can select a crop area with a defined aspect ratio.
|
|
112
|
+
*/
|
|
46
113
|
cropPreset: string;
|
|
114
|
+
/**
|
|
115
|
+
* Image shrink options.
|
|
116
|
+
*/
|
|
47
117
|
imageShrink: string;
|
|
118
|
+
/**
|
|
119
|
+
* Lock scroll when modal is open.
|
|
120
|
+
*/
|
|
48
121
|
modalScrollLock: boolean;
|
|
122
|
+
/**
|
|
123
|
+
* Show strokes on modal backdrop.
|
|
124
|
+
*/
|
|
49
125
|
modalBackdropStrokes: boolean;
|
|
126
|
+
/**
|
|
127
|
+
* Wrap the source list.
|
|
128
|
+
*/
|
|
50
129
|
sourceListWrap: boolean;
|
|
130
|
+
/**
|
|
131
|
+
* Key to revoke Custom OAuth access. See [OAuth docs](https://uploadcare.com/docs/upload-sources/#oauth) for details.
|
|
132
|
+
*/
|
|
51
133
|
remoteTabSessionKey: string;
|
|
134
|
+
/**
|
|
135
|
+
* Set custom CNAME.
|
|
136
|
+
*/
|
|
52
137
|
cdnCname: string;
|
|
138
|
+
/**
|
|
139
|
+
* Set a custom upload URL.
|
|
140
|
+
*/
|
|
53
141
|
baseUrl: string;
|
|
142
|
+
/**
|
|
143
|
+
* Set a custom social sources URL.
|
|
144
|
+
*/
|
|
54
145
|
socialBaseUrl: string;
|
|
146
|
+
/**
|
|
147
|
+
* Secure signature for uploads.
|
|
148
|
+
*/
|
|
55
149
|
secureSignature: string;
|
|
150
|
+
/**
|
|
151
|
+
* Expiry time for secure uploads.
|
|
152
|
+
*/
|
|
56
153
|
secureExpire: string;
|
|
154
|
+
/**
|
|
155
|
+
* Proxy URL for secure delivery.
|
|
156
|
+
*/
|
|
57
157
|
secureDeliveryProxy: string;
|
|
158
|
+
/**
|
|
159
|
+
* Maximum number of retry attempts for throttled requests.
|
|
160
|
+
*/
|
|
58
161
|
retryThrottledRequestMaxTimes: number;
|
|
162
|
+
/**
|
|
163
|
+
* Minimum file size for multipart uploads.
|
|
164
|
+
*/
|
|
59
165
|
multipartMinFileSize: number;
|
|
166
|
+
/**
|
|
167
|
+
* Chunk size for multipart uploads.
|
|
168
|
+
*/
|
|
60
169
|
multipartChunkSize: number;
|
|
170
|
+
/**
|
|
171
|
+
* Maximum number of concurrent requests.
|
|
172
|
+
*/
|
|
61
173
|
maxConcurrentRequests: number;
|
|
174
|
+
/**
|
|
175
|
+
* Maximum number of concurrent multipart requests.
|
|
176
|
+
*/
|
|
62
177
|
multipartMaxConcurrentRequests: number;
|
|
178
|
+
/**
|
|
179
|
+
* Maximum number of attempts for multipart uploads.
|
|
180
|
+
*/
|
|
63
181
|
multipartMaxAttempts: number;
|
|
182
|
+
/**
|
|
183
|
+
* Check for URL duplicates.
|
|
184
|
+
*/
|
|
64
185
|
checkForUrlDuplicates: boolean;
|
|
186
|
+
/**
|
|
187
|
+
* Save URL for recurrent uploads.
|
|
188
|
+
*/
|
|
65
189
|
saveUrlForRecurrentUploads: boolean;
|
|
190
|
+
/**
|
|
191
|
+
* Group output files.
|
|
192
|
+
*/
|
|
66
193
|
groupOutput: boolean;
|
|
194
|
+
/**
|
|
195
|
+
* User agent integration string.
|
|
196
|
+
*/
|
|
67
197
|
userAgentIntegration: string;
|
|
198
|
+
/**
|
|
199
|
+
* Enable debug mode.
|
|
200
|
+
*/
|
|
68
201
|
debug: boolean;
|
|
202
|
+
/**
|
|
203
|
+
* Locale name for the uploader.
|
|
204
|
+
*/
|
|
69
205
|
localeName: string;
|
|
206
|
+
/**
|
|
207
|
+
* Expiry threshold for secure uploads.
|
|
208
|
+
*/
|
|
70
209
|
secureUploadsExpireThreshold: number;
|
|
71
210
|
|
|
72
211
|
// Complex types
|
|
212
|
+
/**
|
|
213
|
+
* Metadata for the file.
|
|
214
|
+
*/
|
|
73
215
|
metadata: Metadata | MetadataCallback | null;
|
|
216
|
+
/**
|
|
217
|
+
* Override locale definitions.
|
|
218
|
+
*/
|
|
74
219
|
localeDefinitionOverride: LocaleDefinitionOverride | null;
|
|
220
|
+
/**
|
|
221
|
+
* Resolver for secure uploads signature.
|
|
222
|
+
*/
|
|
75
223
|
secureUploadsSignatureResolver: SecureUploadsSignatureResolver | null;
|
|
224
|
+
/**
|
|
225
|
+
* Resolver for secure delivery proxy URL.
|
|
226
|
+
*/
|
|
76
227
|
secureDeliveryProxyUrlResolver: SecureDeliveryProxyUrlResolver | null;
|
|
228
|
+
/**
|
|
229
|
+
* Resolver for icon href.
|
|
230
|
+
*/
|
|
77
231
|
iconHrefResolver: IconHrefResolver | null;
|
|
78
232
|
|
|
233
|
+
/**
|
|
234
|
+
* Validators for individual files.
|
|
235
|
+
*/
|
|
79
236
|
fileValidators: FileValidators;
|
|
237
|
+
/**
|
|
238
|
+
* Validators for file collections.
|
|
239
|
+
*/
|
|
80
240
|
collectionValidators: CollectionValidators;
|
|
81
241
|
|
|
82
242
|
/**
|
|
@@ -85,7 +245,15 @@ export type ConfigType = {
|
|
|
85
245
|
* @default 'photo'
|
|
86
246
|
*/
|
|
87
247
|
defaultCameraMode: 'photo' | 'video';
|
|
248
|
+
/**
|
|
249
|
+
* Enable audio recording.
|
|
250
|
+
* @default true
|
|
251
|
+
*/
|
|
88
252
|
enableAudioRecording: boolean;
|
|
253
|
+
/**
|
|
254
|
+
* Enable video recording.
|
|
255
|
+
* @default true
|
|
256
|
+
*/
|
|
89
257
|
enableVideoRecording: boolean;
|
|
90
258
|
|
|
91
259
|
/**
|
|
@@ -99,6 +267,8 @@ export type ConfigType = {
|
|
|
99
267
|
* the following properties from MediaRecorderOptions
|
|
100
268
|
*/
|
|
101
269
|
mediaRecorerOptions: MediaRecorderOptions | null
|
|
270
|
+
|
|
271
|
+
maskHrefCloudEditor: string | null;
|
|
102
272
|
};
|
|
103
273
|
export type ConfigComplexType = Pick<ConfigType, (typeof complexConfigKeys)[number]>;
|
|
104
274
|
export type ConfigPlainType = Omit<ConfigType, keyof ConfigComplexType>;
|
package/utils/cdn-utils.d.ts
CHANGED
|
@@ -52,8 +52,8 @@ export function splitFileUrl(fileUrl: string): {
|
|
|
52
52
|
hash: string;
|
|
53
53
|
};
|
|
54
54
|
export function normalizeCdnOperation(operation?: string | unknown): string;
|
|
55
|
-
export function joinCdnOperations(...operations?:
|
|
56
|
-
export function createCdnUrlModifiers(...cdnOperations?:
|
|
57
|
-
export function createCdnUrl(baseCdnUrl: string, cdnModifiers?: string
|
|
55
|
+
export function joinCdnOperations(...operations?: (string | unknown)[]): string;
|
|
56
|
+
export function createCdnUrlModifiers(...cdnOperations?: (string | unknown)[]): string;
|
|
57
|
+
export function createCdnUrl(baseCdnUrl: string, cdnModifiers?: string, filename?: string): string;
|
|
58
58
|
export function createOriginalUrl(cdnUrl: string, uuid: string): string;
|
|
59
59
|
//# sourceMappingURL=cdn-utils.d.ts.map
|
package/utils/cdn-utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cdn-utils.d.ts","sourceRoot":"","sources":["cdn-utils.js"],"names":[],"mappings":"AAgDA;;;;;GAKG;AACH,wDAcC;AAED;;;;;GAKG;AACH,oCAHW,MAAM,GACJ,MAAM,CAQlB;AAED;;;;;GAKG;AACH,+CAHW,MAAM,GACJ,MAAM,CAYlB;AAED;;;;;GAKG;AACH,0CAHW,MAAM,GACJ,MAAM,EAAE,CASpB;AAED;;;;;GAKG;AACH,qDASC;AAED;;;;;GAKG;AACH,qDAEC;AAED;;;;;GAKG;AACH,+CAFa;IAAE,QAAQ,SAAS;IAAC,MAAM,SAAS;IAAC,IAAI,SAAQ;CAAE,CAS9D;AAvJM,kDAHI,SAAS,OAAO,UAkB1B;AAQM,
|
|
1
|
+
{"version":3,"file":"cdn-utils.d.ts","sourceRoot":"","sources":["cdn-utils.js"],"names":[],"mappings":"AAgDA;;;;;GAKG;AACH,wDAcC;AAED;;;;;GAKG;AACH,oCAHW,MAAM,GACJ,MAAM,CAQlB;AAED;;;;;GAKG;AACH,+CAHW,MAAM,GACJ,MAAM,CAYlB;AAED;;;;;GAKG;AACH,0CAHW,MAAM,GACJ,MAAM,EAAE,CASpB;AAED;;;;;GAKG;AACH,qDASC;AAED;;;;;GAKG;AACH,qDAEC;AAED;;;;;GAKG;AACH,+CAFa;IAAE,QAAQ,SAAS;IAAC,MAAM,SAAS;IAAC,IAAI,SAAQ;CAAE,CAS9D;AAvJM,kDAHI,SAAS,OAAO,UAkB1B;AAQM,kDAHO,CAAC,SAAS,OAAO,CAAC,EAAA,UAQ/B;AASM,yDAHO,CAAC,SAAS,OAAO,CAAC,EAAA,UAM/B;AA2HM,mGAgBN;AASM,wEAIN"}
|
package/utils/fileTypes.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export const IMAGE_ACCEPT_LIST: string[];
|
|
2
|
-
export function mergeFileTypes(fileTypes?: string[]
|
|
2
|
+
export function mergeFileTypes(fileTypes?: string[]): string[];
|
|
3
3
|
export function matchMimeType(mimeType: string, allowedFileTypes: string[]): boolean;
|
|
4
4
|
export function matchExtension(fileName: string, allowedFileTypes: string[]): boolean;
|
|
5
5
|
export function fileIsImage(file: File | Blob): boolean;
|
package/utils/fileTypes.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fileTypes.d.ts","sourceRoot":"","sources":["fileTypes.js"],"names":[],"mappings":"AAGA,yCAcE;AAMK,
|
|
1
|
+
{"version":3,"file":"fileTypes.d.ts","sourceRoot":"","sources":["fileTypes.js"],"names":[],"mappings":"AAGA,yCAcE;AAMK,2CAHI,MAAM,EAAE,GACN,MAAM,EAAE,CAUpB;AAOM,kEAHI,QAAQ,WAYlB;AAOM,mEAHI,QAAQ,WAWlB;AAMM,kCAHI,IAAI,GAAG,IAAI,WASrB;AAQM,6BAHI,OAAO,GACL,OAAO,CAInB;AAQM,6BAHI,OAAO,GACL,OAAO,CAInB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getPluralForm.d.ts","sourceRoot":"","sources":["getPluralForm.js"],"names":[],"mappings":"AASO,sCAJI,MAAM,SACN,MAAM,GACJ,UAAU,CAKtB;yBAVa,
|
|
1
|
+
{"version":3,"file":"getPluralForm.d.ts","sourceRoot":"","sources":["getPluralForm.js"],"names":[],"mappings":"AASO,sCAJI,MAAM,SACN,MAAM,GACJ,UAAU,CAKtB;yBAVa,IAAI,CAAC,cAAc"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function isSecureTokenExpired(secureToken: import(
|
|
1
|
+
export function isSecureTokenExpired(secureToken: import("../types").SecureUploadsSignatureAndExpire, { threshold }: {
|
|
2
2
|
threshold?: number;
|
|
3
3
|
}): boolean;
|
|
4
4
|
//# sourceMappingURL=isSecureTokenExpired.d.ts.map
|
package/utils/memoize.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memoize.d.ts","sourceRoot":"","sources":["memoize.js"],"names":[],"mappings":"AASO,
|
|
1
|
+
{"version":3,"file":"memoize.d.ts","sourceRoot":"","sources":["memoize.js"],"names":[],"mappings":"AASO,wBANc,KAAK,SAAZ,GAAG,EAAG,EACD,OAAO,kBACiB,CAAC,SAA/B,CAAE,GAAG,IAAI,EAAE,KAAK,KAAK,OAAQ,MAC/B,CAAC,GACC,CAAC,CAeb"}
|
package/utils/mixinClass.d.ts
CHANGED
|
@@ -4,5 +4,7 @@ export type GConstructor<T> = new (...args: any[]) => T;
|
|
|
4
4
|
* are some dynamic generated properties or native overrides in the class. We're use it to define dynamic access
|
|
5
5
|
* properties and events to subscribe to.
|
|
6
6
|
*/
|
|
7
|
-
export type MixinClass<Base extends GConstructor<HTMLElement>, InstanceProperties extends Record<string, any> = {}> =
|
|
7
|
+
export type MixinClass<Base extends GConstructor<HTMLElement>, InstanceProperties extends Record<string, any> = {}> = {
|
|
8
|
+
new (...args: ConstructorParameters<Base>): InstanceProperties & InstanceType<Base>;
|
|
9
|
+
} & Omit<Base, "new">;
|
|
8
10
|
//# sourceMappingURL=mixinClass.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mixinClass.d.ts","sourceRoot":"","sources":["mixinClass.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mixinClass.d.ts","sourceRoot":"","sources":["mixinClass.js"],"names":[],"mappings":"yBACa,CAAC,IACD,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC;;;;;;uBAQG,IAAI,SAA/B,YAAY,CAAC,WAAW,CAAE,EACJ,kBAAkB,SAAxC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAE,SACrB;IACZ,KAAS,GAAG,IAAI,EAAE,qBAAqB,CAAC,IAAI,CAAC,GAAG,kBAAkB,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;CACrF,GAAG,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prettyBytes.d.ts","sourceRoot":"","sources":["prettyBytes.js"],"names":[],"mappings":"AAKA;;;;;;;;GAQG;AAiBI,mCAJI,MAAM,SACN,CAAC,
|
|
1
|
+
{"version":3,"file":"prettyBytes.d.ts","sourceRoot":"","sources":["prettyBytes.js"],"names":[],"mappings":"AAKA;;;;;;;;GAQG;AAiBI,mCAJI,MAAM,SACN,CAAC,OAAO,YAAY,EAAE,MAAM,OAAO,YAAY,CAAC,GAC9C,MAAM,CAmClB"}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* @param {Options} [options={}] Default is `{}`
|
|
11
11
|
* @returns {String}
|
|
12
12
|
*/
|
|
13
|
-
export function applyTemplateData(template: string, data?: InputData
|
|
13
|
+
export function applyTemplateData(template: string, data?: InputData, options?: Options): string;
|
|
14
14
|
/**
|
|
15
15
|
* @param {String} template
|
|
16
16
|
* @returns {{ variable: string; pluralKey: string; countVariable: string }[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-utils.d.ts","sourceRoot":"","sources":["template-utils.js"],"names":[],"mappings":"AAOA;;;;;GAKG;AAEH;;;;;GAKG;AACH,
|
|
1
|
+
{"version":3,"file":"template-utils.d.ts","sourceRoot":"","sources":["template-utils.js"],"names":[],"mappings":"AAOA;;;;;GAKG;AAEH;;;;;GAKG;AACH,2DAJW,SAAS,YACT,OAAO,UAWjB;AAED;;;GAGG;AACH,oDAFa;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,CAAA;CAAE,EAAE,CAiB5E;;;;;;;;;;;;;;;wBAjDa;IAAE,CAAC,GAAG,QAAQ,GAAG,4BAA4B,SAAS,CAAA;CAAE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toKebabCase.d.ts","sourceRoot":"","sources":["toKebabCase.js"],"names":[],"mappings":"AAUO,
|
|
1
|
+
{"version":3,"file":"toKebabCase.d.ts","sourceRoot":"","sources":["toKebabCase.js"],"names":[],"mappings":"AAUO,4BAJe,CAAC,SAAV,MAAQ,OACV,CAAC,GACC,SAAS,CAAC,CAAC,CAAC,CAMX;sBAbQ,CAAC,SAAV,MAAQ,IACR,CAAC,SAAS,GAAG,MAAM,IAAI,IAAI,MAAM,IAAI,EAAE,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,IAAI,SAAS,CAAC,IAAI,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transparentPixelSrc.d.ts","sourceRoot":"","sources":["transparentPixelSrc.js"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"transparentPixelSrc.d.ts","sourceRoot":"","sources":["transparentPixelSrc.js"],"names":[],"mappings":"AAAA,oCACE,oHAAoH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uniqueArray.d.ts","sourceRoot":"","sources":["uniqueArray.js"],"names":[],"mappings":"AAKO,
|
|
1
|
+
{"version":3,"file":"uniqueArray.d.ts","sourceRoot":"","sources":["uniqueArray.js"],"names":[],"mappings":"AAKO,4BAJM,CAAC,OACH,CAAC,EAAE,GACD,CAAC,EAAE,CAIf"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/** @type {import('../../../abstract/ValidationManager.js').FuncCollectionValidator} */
|
|
2
|
-
export const validateCollectionUploadError: import(
|
|
2
|
+
export const validateCollectionUploadError: import("../../../abstract/ValidationManager.js").FuncCollectionValidator;
|
|
3
3
|
//# sourceMappingURL=validateCollectionUploadError.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/** @type {import('../../../abstract/ValidationManager.js').FuncCollectionValidator} */
|
|
2
|
-
export const validateMultiple: import(
|
|
2
|
+
export const validateMultiple: import("../../../abstract/ValidationManager.js").FuncCollectionValidator;
|
|
3
3
|
//# sourceMappingURL=validateMultiple.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/** @type {import('../../../abstract/ValidationManager.js').FuncFileValidator} */
|
|
2
|
-
export const validateFileType: import(
|
|
2
|
+
export const validateFileType: import("../../../abstract/ValidationManager.js").FuncFileValidator;
|
|
3
3
|
//# sourceMappingURL=validateFileType.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/** @type {import('../../../abstract/ValidationManager.js').FuncFileValidator} */
|
|
2
|
-
export const validateIsImage: import(
|
|
2
|
+
export const validateIsImage: import("../../../abstract/ValidationManager.js").FuncFileValidator;
|
|
3
3
|
//# sourceMappingURL=validateIsImage.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/** @type {import('../../../abstract/ValidationManager.js').FuncFileValidator} */
|
|
2
|
-
export const validateMaxSizeLimit: import(
|
|
2
|
+
export const validateMaxSizeLimit: import("../../../abstract/ValidationManager.js").FuncFileValidator;
|
|
3
3
|
//# sourceMappingURL=validateMaxSizeLimit.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/** @type {import('../../../abstract/ValidationManager.js').FuncFileValidator} */
|
|
2
|
-
export const validateUploadError: import(
|
|
2
|
+
export const validateUploadError: import("../../../abstract/ValidationManager.js").FuncFileValidator;
|
|
3
3
|
//# sourceMappingURL=validateUploadError.d.ts.map
|
|
@@ -3,6 +3,6 @@ export function waitForAttribute({ element, attribute, onSuccess, onTimeout, tim
|
|
|
3
3
|
attribute: string;
|
|
4
4
|
onSuccess: (value: string) => void;
|
|
5
5
|
onTimeout: () => void;
|
|
6
|
-
timeout?: number
|
|
6
|
+
timeout?: number;
|
|
7
7
|
}): void;
|
|
8
8
|
//# sourceMappingURL=waitForAttribute.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"waitForAttribute.d.ts","sourceRoot":"","sources":["waitForAttribute.js"],"names":[],"mappings":"AAWO;
|
|
1
|
+
{"version":3,"file":"waitForAttribute.d.ts","sourceRoot":"","sources":["waitForAttribute.js"],"names":[],"mappings":"AAWO,wFARI;IACN,OAAO,EAAE,WAAW,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,QAiCH"}
|