@uploadcare/file-uploader 1.12.0-alpha.0 → 1.12.1-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/UploaderBlock.d.ts +0 -2
- package/abstract/UploaderBlock.d.ts.map +1 -1
- package/blocks/CameraSource/CameraSource.d.ts.map +1 -1
- package/blocks/CameraSource/CameraSource.js +11 -10
- package/blocks/Config/Config.d.ts +1 -1
- package/blocks/Config/Config.d.ts.map +1 -1
- package/blocks/Config/initialConfig.d.ts.map +1 -1
- package/blocks/Config/initialConfig.js +1 -0
- package/blocks/Config/normalizeConfigValue.d.ts.map +1 -1
- package/blocks/Config/normalizeConfigValue.js +1 -0
- package/blocks/ExternalSource/ExternalSource.d.ts +8 -2
- package/blocks/ExternalSource/ExternalSource.d.ts.map +1 -1
- package/blocks/ExternalSource/ExternalSource.js +27 -16
- package/blocks/ExternalSource/external-source.css +14 -0
- package/blocks/ExternalSource/types.d.ts +1 -12
- package/blocks/ExternalSource/types.d.ts.map +1 -1
- package/blocks/ExternalSource/types.js +1 -15
- package/blocks/FileItem/FileItem.d.ts +4 -0
- package/blocks/FileItem/FileItem.d.ts.map +1 -1
- package/blocks/FileItem/FileItem.js +22 -2
- package/blocks/ProgressBar/ProgressBar.d.ts.map +1 -1
- package/blocks/ProgressBar/ProgressBar.js +30 -6
- package/blocks/ProgressBar/progress-bar.css +35 -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/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.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/env.d.ts +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 +18 -36
- package/locales/file-uploader/ar.d.ts +1 -1
- package/locales/file-uploader/ar.js +1 -1
- package/locales/file-uploader/az.d.ts +1 -1
- package/locales/file-uploader/az.js +1 -1
- package/locales/file-uploader/ca.d.ts +1 -1
- package/locales/file-uploader/ca.js +1 -1
- package/locales/file-uploader/cs.d.ts +1 -1
- package/locales/file-uploader/cs.js +1 -1
- package/locales/file-uploader/da.d.ts +1 -1
- package/locales/file-uploader/da.js +1 -1
- package/locales/file-uploader/de.d.ts +1 -1
- package/locales/file-uploader/de.js +1 -1
- package/locales/file-uploader/el.d.ts +1 -1
- package/locales/file-uploader/el.js +1 -1
- package/locales/file-uploader/en.d.ts +1 -1
- package/locales/file-uploader/en.js +2 -2
- package/locales/file-uploader/es.d.ts +1 -1
- package/locales/file-uploader/es.js +1 -1
- package/locales/file-uploader/et.d.ts +1 -1
- package/locales/file-uploader/et.js +1 -1
- package/locales/file-uploader/fi.d.ts +1 -1
- package/locales/file-uploader/fi.js +1 -1
- package/locales/file-uploader/fr.d.ts +1 -1
- package/locales/file-uploader/fr.js +1 -1
- package/locales/file-uploader/he.d.ts +1 -1
- package/locales/file-uploader/he.js +1 -1
- package/locales/file-uploader/hy.d.ts +1 -1
- package/locales/file-uploader/hy.js +1 -1
- package/locales/file-uploader/is.d.ts +1 -1
- package/locales/file-uploader/is.js +1 -1
- package/locales/file-uploader/it.d.ts +1 -1
- package/locales/file-uploader/it.js +1 -1
- package/locales/file-uploader/ja.d.ts +1 -1
- package/locales/file-uploader/ja.js +1 -1
- package/locales/file-uploader/ka.d.ts +1 -1
- package/locales/file-uploader/ka.js +1 -1
- package/locales/file-uploader/kk.d.ts +1 -1
- package/locales/file-uploader/kk.js +1 -1
- package/locales/file-uploader/ko.d.ts +1 -1
- package/locales/file-uploader/ko.js +1 -1
- package/locales/file-uploader/lv.d.ts +1 -1
- package/locales/file-uploader/lv.js +1 -1
- package/locales/file-uploader/nb.d.ts +1 -1
- package/locales/file-uploader/nb.js +1 -1
- package/locales/file-uploader/nl.d.ts +1 -1
- package/locales/file-uploader/nl.js +1 -1
- package/locales/file-uploader/pl.d.ts +1 -1
- package/locales/file-uploader/pl.js +1 -1
- package/locales/file-uploader/pt.d.ts +1 -1
- package/locales/file-uploader/pt.js +1 -1
- package/locales/file-uploader/ro.d.ts +1 -1
- package/locales/file-uploader/ro.js +1 -1
- package/locales/file-uploader/ru.d.ts +1 -1
- package/locales/file-uploader/ru.js +1 -1
- package/locales/file-uploader/sk.d.ts +1 -1
- package/locales/file-uploader/sk.js +1 -1
- package/locales/file-uploader/sr.d.ts +1 -1
- package/locales/file-uploader/sr.js +1 -1
- package/locales/file-uploader/sv.d.ts +1 -1
- package/locales/file-uploader/sv.js +1 -1
- package/locales/file-uploader/tr.d.ts +1 -1
- package/locales/file-uploader/tr.js +1 -1
- package/locales/file-uploader/uk.d.ts +1 -1
- package/locales/file-uploader/uk.js +1 -1
- package/locales/file-uploader/vi.d.ts +1 -1
- package/locales/file-uploader/vi.js +1 -1
- package/locales/file-uploader/zh-TW.d.ts +1 -1
- package/locales/file-uploader/zh-TW.js +1 -1
- package/locales/file-uploader/zh.d.ts +1 -1
- package/locales/file-uploader/zh.js +1 -1
- package/package.json +2 -4
- package/types/exported.d.ts +168 -0
- 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 +1 -1
- 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 +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 +1 -1
|
@@ -48,7 +48,6 @@ export default {
|
|
|
48
48
|
'src-type-dropbox': 'Dropbox',
|
|
49
49
|
'src-type-gdrive': 'Google Drive',
|
|
50
50
|
'src-type-gphotos': 'Google Photos',
|
|
51
|
-
'src-type-instagram': 'Instagram',
|
|
52
51
|
'src-type-flickr': 'Flickr',
|
|
53
52
|
'src-type-vk': 'VK',
|
|
54
53
|
'src-type-evernote': 'Evernote',
|
|
@@ -118,4 +117,5 @@ export default {
|
|
|
118
117
|
'a11y-file-item-status': 'Tệp {{fileName}} ở trạng thái {{status}}',
|
|
119
118
|
'select-all': 'Chọn tất cả',
|
|
120
119
|
'deselect-all': 'Bỏ chọn tất cả',
|
|
120
|
+
'waiting-for': 'Đang chờ {{source}}',
|
|
121
121
|
};
|
|
@@ -48,7 +48,6 @@ declare const _default: {
|
|
|
48
48
|
'src-type-dropbox': string;
|
|
49
49
|
'src-type-gdrive': string;
|
|
50
50
|
'src-type-gphotos': string;
|
|
51
|
-
'src-type-instagram': string;
|
|
52
51
|
'src-type-flickr': string;
|
|
53
52
|
'src-type-vk': string;
|
|
54
53
|
'src-type-evernote': string;
|
|
@@ -117,6 +116,7 @@ declare const _default: {
|
|
|
117
116
|
'a11y-file-item-status': string;
|
|
118
117
|
'select-all': string;
|
|
119
118
|
'deselect-all': string;
|
|
119
|
+
'waiting-for': string;
|
|
120
120
|
};
|
|
121
121
|
export default _default;
|
|
122
122
|
//# sourceMappingURL=zh-TW.d.ts.map
|
|
@@ -48,7 +48,6 @@ export default {
|
|
|
48
48
|
'src-type-dropbox': 'Dropbox',
|
|
49
49
|
'src-type-gdrive': 'Google Drive',
|
|
50
50
|
'src-type-gphotos': 'Google Photos',
|
|
51
|
-
'src-type-instagram': 'Instagram',
|
|
52
51
|
'src-type-flickr': 'Flickr',
|
|
53
52
|
'src-type-vk': 'VK',
|
|
54
53
|
'src-type-evernote': 'Evernote',
|
|
@@ -118,4 +117,5 @@ export default {
|
|
|
118
117
|
'a11y-file-item-status': '檔案 {{fileName}} 的狀態是 {{status}}',
|
|
119
118
|
'select-all': '全選',
|
|
120
119
|
'deselect-all': '取消全選',
|
|
120
|
+
'waiting-for': '等待 {{source}}',
|
|
121
121
|
};
|
|
@@ -48,7 +48,6 @@ declare const _default: {
|
|
|
48
48
|
'src-type-dropbox': string;
|
|
49
49
|
'src-type-gdrive': string;
|
|
50
50
|
'src-type-gphotos': string;
|
|
51
|
-
'src-type-instagram': string;
|
|
52
51
|
'src-type-flickr': string;
|
|
53
52
|
'src-type-vk': string;
|
|
54
53
|
'src-type-evernote': string;
|
|
@@ -117,6 +116,7 @@ declare const _default: {
|
|
|
117
116
|
'a11y-file-item-status': string;
|
|
118
117
|
'select-all': string;
|
|
119
118
|
'deselect-all': string;
|
|
119
|
+
'waiting-for': string;
|
|
120
120
|
};
|
|
121
121
|
export default _default;
|
|
122
122
|
//# sourceMappingURL=zh.d.ts.map
|
|
@@ -48,7 +48,6 @@ export default {
|
|
|
48
48
|
'src-type-dropbox': 'Dropbox',
|
|
49
49
|
'src-type-gdrive': 'Google Drive',
|
|
50
50
|
'src-type-gphotos': 'Google Photos',
|
|
51
|
-
'src-type-instagram': 'Instagram',
|
|
52
51
|
'src-type-flickr': 'Flickr',
|
|
53
52
|
'src-type-vk': 'VK',
|
|
54
53
|
'src-type-evernote': 'Evernote',
|
|
@@ -118,4 +117,5 @@ export default {
|
|
|
118
117
|
'a11y-file-item-status': '文件 {{fileName}} 的状态是 {{status}}',
|
|
119
118
|
'select-all': '全选',
|
|
120
119
|
'deselect-all': '取消全选',
|
|
120
|
+
'waiting-for': '等待 {{source}}',
|
|
121
121
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uploadcare/file-uploader",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.1-alpha.0",
|
|
4
4
|
"description": "Building blocks for Uploadcare products integration",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web components",
|
|
@@ -35,9 +35,7 @@
|
|
|
35
35
|
"MIT"
|
|
36
36
|
],
|
|
37
37
|
"type": "module",
|
|
38
|
-
"sideEffects": [
|
|
39
|
-
"*.css"
|
|
40
|
-
],
|
|
38
|
+
"sideEffects": ["*.css"],
|
|
41
39
|
"module": "./index.js",
|
|
42
40
|
"exports": {
|
|
43
41
|
".": {
|
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
|
/**
|