@uploadcare/file-uploader 1.25.0 → 1.26.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/dist/abstract/loadFileUploaderFrom.js +4 -75
- package/dist/env.js +4 -33
- package/dist/index.css +5 -2660
- package/dist/index.d.ts +2326 -1670
- package/dist/index.js +6 -12012
- package/dist/index.layered.css +4 -2716
- package/dist/index.ssr.js +532 -768
- package/dist/locales/file-uploader/ar.js +4 -165
- package/dist/locales/file-uploader/az.js +4 -157
- package/dist/locales/file-uploader/ca.js +4 -159
- package/dist/locales/file-uploader/cs.js +4 -161
- package/dist/locales/file-uploader/da.js +4 -157
- package/dist/locales/file-uploader/de.js +4 -157
- package/dist/locales/file-uploader/el.js +4 -157
- package/dist/locales/file-uploader/en.js +4 -157
- package/dist/locales/file-uploader/es.js +4 -159
- package/dist/locales/file-uploader/et.js +4 -157
- package/dist/locales/file-uploader/fi.js +4 -157
- package/dist/locales/file-uploader/fr.js +4 -159
- package/dist/locales/file-uploader/he.js +4 -159
- package/dist/locales/file-uploader/hy.js +4 -157
- package/dist/locales/file-uploader/is.js +4 -157
- package/dist/locales/file-uploader/it.js +4 -159
- package/dist/locales/file-uploader/ja.js +4 -157
- package/dist/locales/file-uploader/ka.js +4 -157
- package/dist/locales/file-uploader/kk.js +4 -157
- package/dist/locales/file-uploader/ko.js +4 -157
- package/dist/locales/file-uploader/lv.js +4 -159
- package/dist/locales/file-uploader/nb.js +4 -157
- package/dist/locales/file-uploader/nl.js +4 -157
- package/dist/locales/file-uploader/pl.js +4 -161
- package/dist/locales/file-uploader/pt.js +4 -159
- package/dist/locales/file-uploader/ro.js +4 -159
- package/dist/locales/file-uploader/ru.js +4 -161
- package/dist/locales/file-uploader/sk.js +4 -161
- package/dist/locales/file-uploader/sr.js +4 -159
- package/dist/locales/file-uploader/sv.js +4 -157
- package/dist/locales/file-uploader/tr.js +4 -157
- package/dist/locales/file-uploader/uk.js +4 -161
- package/dist/locales/file-uploader/vi.js +4 -157
- package/dist/locales/file-uploader/zh-TW.js +4 -157
- package/dist/locales/file-uploader/zh.js +4 -157
- package/package.json +44 -32
- package/types/jsx.d.ts +75 -48
- package/web/file-uploader.iife.min.d.ts +2619 -1833
- package/web/file-uploader.iife.min.js +6 -27
- package/web/file-uploader.iife.min.js.LEGAL.txt +71 -0
- package/web/file-uploader.min.d.ts +2619 -1833
- package/web/file-uploader.min.js +5 -26
- package/web/file-uploader.min.js.LEGAL.txt +71 -0
- package/web/uc-basic.layered.min.css +4 -23
- package/web/uc-basic.min.css +4 -23
- package/web/uc-cloud-image-editor.layered.min.css +4 -23
- package/web/uc-cloud-image-editor.min.css +4 -23
- package/web/uc-cloud-image-editor.min.d.ts +1835 -580
- package/web/uc-cloud-image-editor.min.js +5 -26
- package/web/uc-cloud-image-editor.min.js.LEGAL.txt +70 -0
- package/web/uc-file-uploader-inline.layered.min.css +4 -23
- package/web/uc-file-uploader-inline.min.css +4 -23
- package/web/uc-file-uploader-inline.min.d.ts +2619 -1833
- package/web/uc-file-uploader-inline.min.js +5 -26
- package/web/uc-file-uploader-inline.min.js.LEGAL.txt +71 -0
- package/web/uc-file-uploader-minimal.layered.min.css +4 -23
- package/web/uc-file-uploader-minimal.min.css +4 -23
- package/web/uc-file-uploader-minimal.min.d.ts +2619 -1833
- package/web/uc-file-uploader-minimal.min.js +5 -26
- package/web/uc-file-uploader-minimal.min.js.LEGAL.txt +71 -0
- package/web/uc-file-uploader-regular.layered.min.css +4 -23
- package/web/uc-file-uploader-regular.min.css +4 -23
- package/web/uc-file-uploader-regular.min.d.ts +2619 -1833
- package/web/uc-file-uploader-regular.min.js +5 -26
- package/web/uc-file-uploader-regular.min.js.LEGAL.txt +71 -0
- package/web/uc-img.min.d.ts +60 -100
- package/web/uc-img.min.js +5 -25
- package/web/uc-img.min.js.LEGAL.txt +24 -0
|
@@ -1,160 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* MIT
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
9
|
-
* in the Software without restriction, including without limitation the rights
|
|
10
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
12
|
-
* furnished to do so, subject to the following conditions:
|
|
13
|
-
*
|
|
14
|
-
* The above copyright notice and this permission notice shall be included in all
|
|
15
|
-
* copies or substantial portions of the Software.
|
|
16
|
-
*
|
|
17
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
23
|
-
* SOFTWARE.
|
|
24
|
-
*
|
|
3
|
+
* Package: @uploadcare/file-uploader@1.26.0 (MIT)
|
|
4
|
+
* License: https://github.com/uploadcare/file-uploader/blob/main/LICENSE
|
|
5
|
+
* Built: 2026-01-27T15:05:08.073Z
|
|
25
6
|
*/
|
|
26
|
-
|
|
27
|
-
// src/locales/file-uploader/zh-TW.js
|
|
28
|
-
var zh_TW_default = {
|
|
29
|
-
"locale-id": "zh-TW",
|
|
30
|
-
"social-source-lang": "zh-TW",
|
|
31
|
-
"upload-file": "\u4E0A\u50B3\u6A94\u6848",
|
|
32
|
-
"upload-files": "\u4E0A\u50B3\u591A\u500B\u6A94\u6848",
|
|
33
|
-
"choose-file": "\u9078\u64C7\u6A94\u6848",
|
|
34
|
-
"choose-files": "\u9078\u64C7\u591A\u500B\u6A94\u6848",
|
|
35
|
-
"drop-files-here": "\u5C07\u6A94\u6848\u62D6\u66F3\u81F3\u6B64",
|
|
36
|
-
"select-file-source": "\u9078\u64C7\u6A94\u6848\u4F86\u6E90",
|
|
37
|
-
selected: "\u5DF2\u9078\u64C7",
|
|
38
|
-
upload: "\u4E0A\u50B3",
|
|
39
|
-
"add-more": "\u65B0\u589E\u66F4\u591A",
|
|
40
|
-
cancel: "\u53D6\u6D88",
|
|
41
|
-
"start-from-cancel": "\u53D6\u6D88",
|
|
42
|
-
clear: "\u6E05\u9664",
|
|
43
|
-
"camera-shot": "\u62CD\u651D",
|
|
44
|
-
"upload-url": "\u532F\u5165",
|
|
45
|
-
"upload-url-placeholder": "\u8CBC\u4E0A\u9023\u7D50",
|
|
46
|
-
"edit-image": "\u7DE8\u8F2F\u5716\u7247",
|
|
47
|
-
"edit-detail": "\u7DE8\u8F2F\u8A73\u60C5",
|
|
48
|
-
back: "\u8FD4\u56DE",
|
|
49
|
-
done: "\u5B8C\u6210",
|
|
50
|
-
ok: "\u78BA\u5B9A",
|
|
51
|
-
"remove-from-list": "\u79FB\u9664",
|
|
52
|
-
no: "\u5426",
|
|
53
|
-
yes: "\u662F",
|
|
54
|
-
"confirm-your-action": "\u78BA\u8A8D\u60A8\u7684\u64CD\u4F5C",
|
|
55
|
-
"are-you-sure": "\u60A8\u78BA\u5B9A\u55CE\uFF1F",
|
|
56
|
-
"selected-count": "\u5DF2\u9078\u64C7\uFF1A",
|
|
57
|
-
"upload-error": "\u4E0A\u50B3\u932F\u8AA4",
|
|
58
|
-
"validation-error": "\u9A57\u8B49\u932F\u8AA4",
|
|
59
|
-
"no-files": "\u672A\u9078\u64C7\u4EFB\u4F55\u6A94\u6848",
|
|
60
|
-
browse: "\u700F\u89BD",
|
|
61
|
-
"not-uploaded-yet": "\u5C1A\u672A\u4E0A\u50B3...",
|
|
62
|
-
file__one: "\u500B\u6A94\u6848",
|
|
63
|
-
file__other: "\u500B\u6A94\u6848",
|
|
64
|
-
error__one: "\u500B\u932F\u8AA4",
|
|
65
|
-
error__other: "\u500B\u932F\u8AA4",
|
|
66
|
-
"header-uploading": "\u6B63\u5728\u4E0A\u50B3 {{count}} {{plural:file(count)}}",
|
|
67
|
-
"header-failed": "{{count}} {{plural:error(count)}}",
|
|
68
|
-
"header-succeed": "\u5DF2\u4E0A\u50B3 {{count}} {{plural:file(count)}}",
|
|
69
|
-
"header-total": "\u5DF2\u9078\u64C7 {{count}} {{plural:file(count)}}",
|
|
70
|
-
"src-type-local": "\u5F9E\u88DD\u7F6E",
|
|
71
|
-
"src-type-from-url": "\u5F9E\u9023\u7D50",
|
|
72
|
-
"src-type-camera": "\u76F8\u6A5F",
|
|
73
|
-
"src-type-draw": "\u7E6A\u5716",
|
|
74
|
-
"src-type-facebook": "Facebook",
|
|
75
|
-
"src-type-dropbox": "Dropbox",
|
|
76
|
-
"src-type-gdrive": "Google Drive",
|
|
77
|
-
"src-type-ngdrive": "Google Drive",
|
|
78
|
-
"src-type-gphotos": "Google Photos",
|
|
79
|
-
"src-type-flickr": "Flickr",
|
|
80
|
-
"src-type-vk": "VK",
|
|
81
|
-
"src-type-evernote": "Evernote",
|
|
82
|
-
"src-type-box": "Box",
|
|
83
|
-
"src-type-onedrive": "OneDrive",
|
|
84
|
-
"src-type-huddle": "Huddle",
|
|
85
|
-
"src-type-other": "\u5176\u4ED6",
|
|
86
|
-
"src-type-mobile-video-camera": "\u5F71\u7247",
|
|
87
|
-
"src-type-mobile-photo-camera": "\u7167\u7247",
|
|
88
|
-
"caption-from-url": "\u5F9E\u9023\u7D50\u532F\u5165",
|
|
89
|
-
"caption-camera": "\u76F8\u6A5F",
|
|
90
|
-
"caption-draw": "\u7E6A\u5716",
|
|
91
|
-
"caption-edit-file": "\u7DE8\u8F2F\u6A94\u6848",
|
|
92
|
-
"file-no-name": "\u7121\u540D\u7A31...",
|
|
93
|
-
"toggle-fullscreen": "\u5207\u63DB\u5168\u87A2\u5E55",
|
|
94
|
-
"toggle-guides": "\u5207\u63DB\u6307\u5357",
|
|
95
|
-
rotate: "\u65CB\u8F49",
|
|
96
|
-
"flip-vertical": "\u5782\u76F4\u7FFB\u8F49",
|
|
97
|
-
"flip-horizontal": "\u6C34\u5E73\u7FFB\u8F49",
|
|
98
|
-
apply: "\u61C9\u7528",
|
|
99
|
-
brightness: "\u4EAE\u5EA6",
|
|
100
|
-
contrast: "\u5C0D\u6BD4",
|
|
101
|
-
saturation: "\u98FD\u548C\u5EA6",
|
|
102
|
-
exposure: "\u66DD\u5149",
|
|
103
|
-
gamma: "\u4F3D\u746A",
|
|
104
|
-
vibrance: "\u6D3B\u529B",
|
|
105
|
-
warmth: "\u6EAB\u6696",
|
|
106
|
-
enhance: "\u589E\u5F37",
|
|
107
|
-
original: "\u539F\u59CB",
|
|
108
|
-
resize: "\u8ABF\u6574\u5716\u7247\u5927\u5C0F",
|
|
109
|
-
crop: "\u88C1\u526A",
|
|
110
|
-
"select-color": "\u9078\u64C7\u984F\u8272",
|
|
111
|
-
text: "\u6587\u5B57",
|
|
112
|
-
draw: "\u7E6A\u5716",
|
|
113
|
-
"cancel-edit": "\u53D6\u6D88\u7DE8\u8F2F",
|
|
114
|
-
"tab-view": "\u9810\u89BD",
|
|
115
|
-
"tab-details": "\u8A73\u60C5",
|
|
116
|
-
"file-name": "\u540D\u7A31",
|
|
117
|
-
"file-size": "\u5927\u5C0F",
|
|
118
|
-
"cdn-url": "CDN \u7DB2\u5740",
|
|
119
|
-
"file-size-unknown": "\u672A\u77E5",
|
|
120
|
-
"camera-permissions-denied": "\u76F8\u6A5F\u8A2A\u554F\u88AB\u62D2\u7D55",
|
|
121
|
-
"camera-permissions-prompt": "\u8ACB\u5141\u8A31\u8A2A\u554F\u76F8\u6A5F",
|
|
122
|
-
"camera-permissions-request": "\u8ACB\u6C42\u8A2A\u554F",
|
|
123
|
-
"files-count-limit-error-title": "\u6A94\u6848\u6578\u91CF\u8D85\u51FA\u9650\u5236",
|
|
124
|
-
"files-count-limit-error-too-few": "\u60A8\u9078\u64C7\u4E86 {{total}} {{plural:file(total)}}\u3002\u81F3\u5C11\u9700\u8981 {{min}} {{plural:file(min)}}\u3002",
|
|
125
|
-
"files-count-limit-error-too-many": "\u60A8\u9078\u64C7\u7684\u6A94\u6848\u592A\u591A\u3002\u6700\u591A {{max}} {{plural:file(max)}}\u3002",
|
|
126
|
-
"files-max-size-limit-error": "\u6A94\u6848\u904E\u5927\u3002\u6700\u5927\u6A94\u6848\u5927\u5C0F\u70BA {{maxFileSize}}\u3002",
|
|
127
|
-
"has-validation-errors": "\u6A94\u6848\u9A57\u8B49\u932F\u8AA4\u767C\u751F\u3002\u8ACB\u5728\u4E0A\u50B3\u524D\u6AA2\u67E5\u60A8\u7684\u6A94\u6848\u3002",
|
|
128
|
-
"images-only-accepted": "\u50C5\u63A5\u53D7\u5716\u7247\u6A94\u6848\u3002",
|
|
129
|
-
"file-type-not-allowed": "\u4E0D\u5141\u8A31\u4E0A\u50B3\u9019\u4E9B\u6A94\u6848\u985E\u578B\u3002",
|
|
130
|
-
"some-files-were-not-uploaded": "\u90E8\u5206\u6A94\u6848\u672A\u4E0A\u50B3\u3002",
|
|
131
|
-
"file-item-edit-button": "\u7DE8\u8F2F",
|
|
132
|
-
"file-item-remove-button": "\u79FB\u9664",
|
|
133
|
-
"a11y-activity-header-button-close": "\u95DC\u9589",
|
|
134
|
-
"a11y-editor-tab-filters": "\u7BE9\u9078\u5668",
|
|
135
|
-
"a11y-editor-tab-tuning": "\u8ABF\u6574",
|
|
136
|
-
"a11y-editor-tab-crop": "\u88C1\u526A",
|
|
137
|
-
flip: "\u7FFB\u8F49",
|
|
138
|
-
mirror: "\u93E1\u50CF",
|
|
139
|
-
"a11y-cloud-editor-apply-filter": "\u61C9\u7528 {{name}} \u7BE9\u9078\u5668",
|
|
140
|
-
"a11y-cloud-editor-apply-crop": "\u61C9\u7528 {{name}} \u64CD\u4F5C",
|
|
141
|
-
"a11y-cloud-editor-apply-tuning": "\u61C9\u7528 {{name}} \u8ABF\u6574",
|
|
142
|
-
finished: "\u5B8C\u6210",
|
|
143
|
-
failed: "\u5931\u6557",
|
|
144
|
-
uploading: "\u4E0A\u50B3\u4E2D",
|
|
145
|
-
idle: "\u9592\u7F6E",
|
|
146
|
-
"a11y-file-item-status": "\u6A94\u6848 {{fileName}} \u7684\u72C0\u614B\u662F {{status}}",
|
|
147
|
-
"select-all": "\u5168\u9078",
|
|
148
|
-
"deselect-all": "\u53D6\u6D88\u5168\u9078",
|
|
149
|
-
"waiting-for": "\u7B49\u5F85 {{source}}",
|
|
150
|
-
"queued-uploading": "\u6392\u968A\u7B49\u5F85\u4E0A\u50B3",
|
|
151
|
-
"queued-validation": "\u6392\u968A\u7B49\u5F85\u9A57\u8B49",
|
|
152
|
-
validation: "\u9A57\u8B49\u4E2D",
|
|
153
|
-
"a11y-cloud-editor-apply-aspect-ratio": "\u5957\u7528\u64CD\u4F5C {{name}} {{value}}",
|
|
154
|
-
"crop-to-shape": "\u88C1\u526A\u70BA {{value}}",
|
|
155
|
-
custom: "\u81EA\u7531\u5F62\u5F0F",
|
|
156
|
-
"freeform-crop": "\u81EA\u7531\u88C1\u526A"
|
|
157
|
-
};
|
|
158
|
-
export {
|
|
159
|
-
zh_TW_default as default
|
|
160
|
-
};
|
|
7
|
+
var e={"locale-id":"zh-TW","social-source-lang":"zh-TW","upload-file":"\u4E0A\u50B3\u6A94\u6848","upload-files":"\u4E0A\u50B3\u591A\u500B\u6A94\u6848","choose-file":"\u9078\u64C7\u6A94\u6848","choose-files":"\u9078\u64C7\u591A\u500B\u6A94\u6848","drop-files-here":"\u5C07\u6A94\u6848\u62D6\u66F3\u81F3\u6B64","select-file-source":"\u9078\u64C7\u6A94\u6848\u4F86\u6E90",selected:"\u5DF2\u9078\u64C7",upload:"\u4E0A\u50B3","add-more":"\u65B0\u589E\u66F4\u591A",cancel:"\u53D6\u6D88","start-from-cancel":"\u53D6\u6D88",clear:"\u6E05\u9664","camera-shot":"\u62CD\u651D","upload-url":"\u532F\u5165","upload-url-placeholder":"\u8CBC\u4E0A\u9023\u7D50","edit-image":"\u7DE8\u8F2F\u5716\u7247","edit-detail":"\u7DE8\u8F2F\u8A73\u60C5",back:"\u8FD4\u56DE",done:"\u5B8C\u6210",ok:"\u78BA\u5B9A","remove-from-list":"\u79FB\u9664",no:"\u5426",yes:"\u662F","confirm-your-action":"\u78BA\u8A8D\u60A8\u7684\u64CD\u4F5C","are-you-sure":"\u60A8\u78BA\u5B9A\u55CE\uFF1F","selected-count":"\u5DF2\u9078\u64C7\uFF1A","upload-error":"\u4E0A\u50B3\u932F\u8AA4","validation-error":"\u9A57\u8B49\u932F\u8AA4","no-files":"\u672A\u9078\u64C7\u4EFB\u4F55\u6A94\u6848",browse:"\u700F\u89BD","not-uploaded-yet":"\u5C1A\u672A\u4E0A\u50B3...",file__one:"\u500B\u6A94\u6848",file__other:"\u500B\u6A94\u6848",error__one:"\u500B\u932F\u8AA4",error__other:"\u500B\u932F\u8AA4","header-uploading":"\u6B63\u5728\u4E0A\u50B3 {{count}} {{plural:file(count)}}","header-failed":"{{count}} {{plural:error(count)}}","header-succeed":"\u5DF2\u4E0A\u50B3 {{count}} {{plural:file(count)}}","header-total":"\u5DF2\u9078\u64C7 {{count}} {{plural:file(count)}}","src-type-local":"\u5F9E\u88DD\u7F6E","src-type-from-url":"\u5F9E\u9023\u7D50","src-type-camera":"\u76F8\u6A5F","src-type-draw":"\u7E6A\u5716","src-type-facebook":"Facebook","src-type-dropbox":"Dropbox","src-type-gdrive":"Google Drive","src-type-ngdrive":"Google Drive","src-type-gphotos":"Google Photos","src-type-flickr":"Flickr","src-type-vk":"VK","src-type-evernote":"Evernote","src-type-box":"Box","src-type-onedrive":"OneDrive","src-type-huddle":"Huddle","src-type-other":"\u5176\u4ED6","src-type-mobile-video-camera":"\u5F71\u7247","src-type-mobile-photo-camera":"\u7167\u7247","caption-from-url":"\u5F9E\u9023\u7D50\u532F\u5165","caption-camera":"\u76F8\u6A5F","caption-draw":"\u7E6A\u5716","caption-edit-file":"\u7DE8\u8F2F\u6A94\u6848","file-no-name":"\u7121\u540D\u7A31...","toggle-fullscreen":"\u5207\u63DB\u5168\u87A2\u5E55","toggle-guides":"\u5207\u63DB\u6307\u5357",rotate:"\u65CB\u8F49","flip-vertical":"\u5782\u76F4\u7FFB\u8F49","flip-horizontal":"\u6C34\u5E73\u7FFB\u8F49",apply:"\u61C9\u7528",brightness:"\u4EAE\u5EA6",contrast:"\u5C0D\u6BD4",saturation:"\u98FD\u548C\u5EA6",exposure:"\u66DD\u5149",gamma:"\u4F3D\u746A",vibrance:"\u6D3B\u529B",warmth:"\u6EAB\u6696",enhance:"\u589E\u5F37",original:"\u539F\u59CB",resize:"\u8ABF\u6574\u5716\u7247\u5927\u5C0F",crop:"\u88C1\u526A","select-color":"\u9078\u64C7\u984F\u8272",text:"\u6587\u5B57",draw:"\u7E6A\u5716","cancel-edit":"\u53D6\u6D88\u7DE8\u8F2F","tab-view":"\u9810\u89BD","tab-details":"\u8A73\u60C5","file-name":"\u540D\u7A31","file-size":"\u5927\u5C0F","cdn-url":"CDN \u7DB2\u5740","file-size-unknown":"\u672A\u77E5","camera-permissions-denied":"\u76F8\u6A5F\u8A2A\u554F\u88AB\u62D2\u7D55","camera-permissions-prompt":"\u8ACB\u5141\u8A31\u8A2A\u554F\u76F8\u6A5F","camera-permissions-request":"\u8ACB\u6C42\u8A2A\u554F","files-count-limit-error-title":"\u6A94\u6848\u6578\u91CF\u8D85\u51FA\u9650\u5236","files-count-limit-error-too-few":"\u60A8\u9078\u64C7\u4E86 {{total}} {{plural:file(total)}}\u3002\u81F3\u5C11\u9700\u8981 {{min}} {{plural:file(min)}}\u3002","files-count-limit-error-too-many":"\u60A8\u9078\u64C7\u7684\u6A94\u6848\u592A\u591A\u3002\u6700\u591A {{max}} {{plural:file(max)}}\u3002","files-max-size-limit-error":"\u6A94\u6848\u904E\u5927\u3002\u6700\u5927\u6A94\u6848\u5927\u5C0F\u70BA {{maxFileSize}}\u3002","has-validation-errors":"\u6A94\u6848\u9A57\u8B49\u932F\u8AA4\u767C\u751F\u3002\u8ACB\u5728\u4E0A\u50B3\u524D\u6AA2\u67E5\u60A8\u7684\u6A94\u6848\u3002","images-only-accepted":"\u50C5\u63A5\u53D7\u5716\u7247\u6A94\u6848\u3002","file-type-not-allowed":"\u4E0D\u5141\u8A31\u4E0A\u50B3\u9019\u4E9B\u6A94\u6848\u985E\u578B\u3002","some-files-were-not-uploaded":"\u90E8\u5206\u6A94\u6848\u672A\u4E0A\u50B3\u3002","file-item-edit-button":"\u7DE8\u8F2F","file-item-remove-button":"\u79FB\u9664","a11y-activity-header-button-close":"\u95DC\u9589","a11y-editor-tab-filters":"\u7BE9\u9078\u5668","a11y-editor-tab-tuning":"\u8ABF\u6574","a11y-editor-tab-crop":"\u88C1\u526A",flip:"\u7FFB\u8F49",mirror:"\u93E1\u50CF","a11y-cloud-editor-apply-filter":"\u61C9\u7528 {{name}} \u7BE9\u9078\u5668","a11y-cloud-editor-apply-crop":"\u61C9\u7528 {{name}} \u64CD\u4F5C","a11y-cloud-editor-apply-tuning":"\u61C9\u7528 {{name}} \u8ABF\u6574",finished:"\u5B8C\u6210",failed:"\u5931\u6557",uploading:"\u4E0A\u50B3\u4E2D",idle:"\u9592\u7F6E","a11y-file-item-status":"\u6A94\u6848 {{fileName}} \u7684\u72C0\u614B\u662F {{status}}","select-all":"\u5168\u9078","deselect-all":"\u53D6\u6D88\u5168\u9078","waiting-for":"\u7B49\u5F85 {{source}}","queued-uploading":"\u6392\u968A\u7B49\u5F85\u4E0A\u50B3","queued-validation":"\u6392\u968A\u7B49\u5F85\u9A57\u8B49",validation:"\u9A57\u8B49\u4E2D","a11y-cloud-editor-apply-aspect-ratio":"\u5957\u7528\u64CD\u4F5C {{name}} {{value}}","crop-to-shape":"\u88C1\u526A\u70BA {{value}}",custom:"\u81EA\u7531\u5F62\u5F0F","freeform-crop":"\u81EA\u7531\u88C1\u526A"};export{e as default};
|
|
@@ -1,160 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* MIT
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
9
|
-
* in the Software without restriction, including without limitation the rights
|
|
10
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
12
|
-
* furnished to do so, subject to the following conditions:
|
|
13
|
-
*
|
|
14
|
-
* The above copyright notice and this permission notice shall be included in all
|
|
15
|
-
* copies or substantial portions of the Software.
|
|
16
|
-
*
|
|
17
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
23
|
-
* SOFTWARE.
|
|
24
|
-
*
|
|
3
|
+
* Package: @uploadcare/file-uploader@1.26.0 (MIT)
|
|
4
|
+
* License: https://github.com/uploadcare/file-uploader/blob/main/LICENSE
|
|
5
|
+
* Built: 2026-01-27T15:05:08.073Z
|
|
25
6
|
*/
|
|
26
|
-
|
|
27
|
-
// src/locales/file-uploader/zh.js
|
|
28
|
-
var zh_default = {
|
|
29
|
-
"locale-id": "zh",
|
|
30
|
-
"social-source-lang": "zh",
|
|
31
|
-
"upload-file": "\u4E0A\u4F20\u6587\u4EF6",
|
|
32
|
-
"upload-files": "\u4E0A\u4F20\u591A\u4E2A\u6587\u4EF6",
|
|
33
|
-
"choose-file": "\u9009\u62E9\u6587\u4EF6",
|
|
34
|
-
"choose-files": "\u9009\u62E9\u591A\u4E2A\u6587\u4EF6",
|
|
35
|
-
"drop-files-here": "\u5C06\u6587\u4EF6\u62D6\u5230\u6B64\u5904",
|
|
36
|
-
"select-file-source": "\u9009\u62E9\u6587\u4EF6\u6E90",
|
|
37
|
-
selected: "\u5DF2\u9009\u62E9",
|
|
38
|
-
upload: "\u4E0A\u4F20",
|
|
39
|
-
"add-more": "\u6DFB\u52A0\u66F4\u591A",
|
|
40
|
-
cancel: "\u53D6\u6D88",
|
|
41
|
-
"start-from-cancel": "\u5F00\u59CB\u4ECE\u53D6\u6D88",
|
|
42
|
-
clear: "\u6E05\u9664",
|
|
43
|
-
"camera-shot": "\u62CD\u6444",
|
|
44
|
-
"upload-url": "\u5BFC\u5165",
|
|
45
|
-
"upload-url-placeholder": "\u5728\u6B64\u5904\u7C98\u8D34\u94FE\u63A5",
|
|
46
|
-
"edit-image": "\u7F16\u8F91\u56FE\u7247",
|
|
47
|
-
"edit-detail": "\u8BE6\u60C5",
|
|
48
|
-
back: "\u8FD4\u56DE",
|
|
49
|
-
done: "\u5B8C\u6210",
|
|
50
|
-
ok: "\u786E\u5B9A",
|
|
51
|
-
"remove-from-list": "\u79FB\u9664",
|
|
52
|
-
no: "\u5426",
|
|
53
|
-
yes: "\u662F",
|
|
54
|
-
"confirm-your-action": "\u786E\u8BA4\u60A8\u7684\u64CD\u4F5C",
|
|
55
|
-
"are-you-sure": "\u60A8\u786E\u5B9A\u5417\uFF1F",
|
|
56
|
-
"selected-count": "\u5DF2\u9009\u62E9\uFF1A",
|
|
57
|
-
"upload-error": "\u4E0A\u4F20\u9519\u8BEF",
|
|
58
|
-
"validation-error": "\u9A8C\u8BC1\u9519\u8BEF",
|
|
59
|
-
"no-files": "\u672A\u9009\u62E9\u6587\u4EF6",
|
|
60
|
-
browse: "\u6D4F\u89C8",
|
|
61
|
-
"not-uploaded-yet": "\u5C1A\u672A\u4E0A\u4F20...",
|
|
62
|
-
file__one: "\u6587\u4EF6",
|
|
63
|
-
file__other: "\u6587\u4EF6",
|
|
64
|
-
error__one: "\u9519\u8BEF",
|
|
65
|
-
error__other: "\u9519\u8BEF",
|
|
66
|
-
"header-uploading": "\u6B63\u5728\u4E0A\u4F20 {{count}} {{plural:file(count)}}",
|
|
67
|
-
"header-failed": "{{count}} {{plural:error(count)}}",
|
|
68
|
-
"header-succeed": "{{count}} {{plural:file(count)}} \u5DF2\u4E0A\u4F20",
|
|
69
|
-
"header-total": "{{count}} {{plural:file(count)}} \u5DF2\u9009\u62E9",
|
|
70
|
-
"src-type-local": "\u4ECE\u8BBE\u5907",
|
|
71
|
-
"src-type-from-url": "\u4ECE\u94FE\u63A5",
|
|
72
|
-
"src-type-camera": "\u76F8\u673A",
|
|
73
|
-
"src-type-draw": "\u7ED8\u5236",
|
|
74
|
-
"src-type-facebook": "Facebook",
|
|
75
|
-
"src-type-dropbox": "Dropbox",
|
|
76
|
-
"src-type-gdrive": "Google Drive",
|
|
77
|
-
"src-type-ngdrive": "Google Drive",
|
|
78
|
-
"src-type-gphotos": "Google Photos",
|
|
79
|
-
"src-type-flickr": "Flickr",
|
|
80
|
-
"src-type-vk": "VK",
|
|
81
|
-
"src-type-evernote": "Evernote",
|
|
82
|
-
"src-type-box": "Box",
|
|
83
|
-
"src-type-onedrive": "OneDrive",
|
|
84
|
-
"src-type-huddle": "Huddle",
|
|
85
|
-
"src-type-other": "\u5176\u4ED6",
|
|
86
|
-
"src-type-mobile-video-camera": "\u89C6\u9891",
|
|
87
|
-
"src-type-mobile-photo-camera": "\u7167\u7247",
|
|
88
|
-
"caption-from-url": "\u4ECE\u94FE\u63A5\u5BFC\u5165",
|
|
89
|
-
"caption-camera": "\u76F8\u673A",
|
|
90
|
-
"caption-draw": "\u7ED8\u5236",
|
|
91
|
-
"caption-edit-file": "\u7F16\u8F91\u6587\u4EF6",
|
|
92
|
-
"file-no-name": "\u65E0\u540D\u79F0...",
|
|
93
|
-
"toggle-fullscreen": "\u5207\u6362\u5168\u5C4F",
|
|
94
|
-
"toggle-guides": "\u5207\u6362\u6307\u5357",
|
|
95
|
-
rotate: "\u65CB\u8F6C",
|
|
96
|
-
"flip-vertical": "\u5782\u76F4\u7FFB\u8F6C",
|
|
97
|
-
"flip-horizontal": "\u6C34\u5E73\u7FFB\u8F6C",
|
|
98
|
-
apply: "\u5E94\u7528",
|
|
99
|
-
brightness: "\u4EAE\u5EA6",
|
|
100
|
-
contrast: "\u5BF9\u6BD4",
|
|
101
|
-
saturation: "\u9971\u548C\u5EA6",
|
|
102
|
-
exposure: "\u66DD\u5149",
|
|
103
|
-
gamma: "\u4F3D\u9A6C",
|
|
104
|
-
vibrance: "\u6D3B\u529B",
|
|
105
|
-
warmth: "\u6E29\u6696",
|
|
106
|
-
enhance: "\u589E\u5F3A",
|
|
107
|
-
original: "\u539F\u59CB",
|
|
108
|
-
resize: "\u8C03\u6574\u56FE\u7247\u5927\u5C0F",
|
|
109
|
-
crop: "\u88C1\u526A",
|
|
110
|
-
"select-color": "\u9009\u62E9\u989C\u8272",
|
|
111
|
-
text: "\u6587\u672C",
|
|
112
|
-
draw: "\u7ED8\u5236",
|
|
113
|
-
"cancel-edit": "\u53D6\u6D88\u7F16\u8F91",
|
|
114
|
-
"tab-view": "\u9884\u89C8",
|
|
115
|
-
"tab-details": "\u8BE6\u60C5",
|
|
116
|
-
"file-name": "\u540D\u79F0",
|
|
117
|
-
"file-size": "\u5927\u5C0F",
|
|
118
|
-
"cdn-url": "CDN URL",
|
|
119
|
-
"file-size-unknown": "\u672A\u77E5",
|
|
120
|
-
"camera-permissions-denied": "\u76F8\u673A\u8BBF\u95EE\u88AB\u62D2\u7EDD",
|
|
121
|
-
"camera-permissions-prompt": "\u8BF7\u5141\u8BB8\u8BBF\u95EE\u76F8\u673A",
|
|
122
|
-
"camera-permissions-request": "\u8BF7\u6C42\u8BBF\u95EE",
|
|
123
|
-
"files-count-limit-error-title": "\u6587\u4EF6\u6570\u91CF\u9650\u5236\u8D85\u51FA",
|
|
124
|
-
"files-count-limit-error-too-few": "\u60A8\u9009\u62E9\u4E86 {{total}} {{plural:file(total)}}\u3002\u81F3\u5C11\u9700\u8981 {{min}} {{plural:file(min)}}\u3002",
|
|
125
|
-
"files-count-limit-error-too-many": "\u60A8\u9009\u62E9\u7684\u6587\u4EF6\u592A\u591A\u4E86\u3002\u6700\u591A {{max}} {{plural:file(max)}}\u3002",
|
|
126
|
-
"files-max-size-limit-error": "\u6587\u4EF6\u592A\u5927\u3002\u6700\u5927\u6587\u4EF6\u5927\u5C0F\u4E3A {{maxFileSize}}\u3002",
|
|
127
|
-
"has-validation-errors": "\u6587\u4EF6\u9A8C\u8BC1\u9519\u8BEF\u53D1\u751F\u3002\u8BF7\u5728\u4E0A\u4F20\u524D\u68C0\u67E5\u60A8\u7684\u6587\u4EF6\u3002",
|
|
128
|
-
"images-only-accepted": "\u53EA\u63A5\u53D7\u56FE\u50CF\u6587\u4EF6\u3002",
|
|
129
|
-
"file-type-not-allowed": "\u4E0D\u5141\u8BB8\u4E0A\u4F20\u8FD9\u4E9B\u6587\u4EF6\u7C7B\u578B\u3002",
|
|
130
|
-
"some-files-were-not-uploaded": "\u6709\u4E9B\u6587\u4EF6\u672A\u4E0A\u4F20\u3002",
|
|
131
|
-
"file-item-edit-button": "\u7F16\u8F91",
|
|
132
|
-
"file-item-remove-button": "\u79FB\u9664",
|
|
133
|
-
"a11y-activity-header-button-close": "\u5173\u95ED",
|
|
134
|
-
"a11y-editor-tab-filters": "\u8FC7\u6EE4\u5668",
|
|
135
|
-
"a11y-editor-tab-tuning": "\u8C03\u6574",
|
|
136
|
-
"a11y-editor-tab-crop": "\u88C1\u526A",
|
|
137
|
-
flip: "\u7FFB\u8F6C",
|
|
138
|
-
mirror: "\u955C\u50CF",
|
|
139
|
-
"a11y-cloud-editor-apply-filter": "\u5E94\u7528 {{name}} \u8FC7\u6EE4\u5668",
|
|
140
|
-
"a11y-cloud-editor-apply-crop": "\u5E94\u7528 {{name}} \u64CD\u4F5C",
|
|
141
|
-
"a11y-cloud-editor-apply-tuning": "\u5E94\u7528 {{name}} \u8C03\u6574",
|
|
142
|
-
finished: "\u5DF2\u5B8C\u6210",
|
|
143
|
-
failed: "\u5931\u8D25",
|
|
144
|
-
uploading: "\u4E0A\u4F20\u4E2D",
|
|
145
|
-
idle: "\u7A7A\u95F2",
|
|
146
|
-
"a11y-file-item-status": "\u6587\u4EF6 {{fileName}} \u7684\u72B6\u6001\u662F {{status}}",
|
|
147
|
-
"select-all": "\u5168\u9009",
|
|
148
|
-
"deselect-all": "\u53D6\u6D88\u5168\u9009",
|
|
149
|
-
"waiting-for": "\u7B49\u5F85 {{source}}",
|
|
150
|
-
"queued-uploading": "\u6392\u961F\u7B49\u5F85\u4E0A\u4F20",
|
|
151
|
-
"queued-validation": "\u6392\u961F\u7B49\u5F85\u9A8C\u8BC1",
|
|
152
|
-
validation: "\u6B63\u5728\u9A8C\u8BC1",
|
|
153
|
-
"a11y-cloud-editor-apply-aspect-ratio": "\u5E94\u7528\u64CD\u4F5C {{name}} {{value}}",
|
|
154
|
-
"crop-to-shape": "\u88C1\u526A\u4E3A {{value}}",
|
|
155
|
-
custom: "\u81EA\u7531\u5F62\u5F0F",
|
|
156
|
-
"freeform-crop": "\u81EA\u7531\u88C1\u526A"
|
|
157
|
-
};
|
|
158
|
-
export {
|
|
159
|
-
zh_default as default
|
|
160
|
-
};
|
|
7
|
+
var e={"locale-id":"zh","social-source-lang":"zh","upload-file":"\u4E0A\u4F20\u6587\u4EF6","upload-files":"\u4E0A\u4F20\u591A\u4E2A\u6587\u4EF6","choose-file":"\u9009\u62E9\u6587\u4EF6","choose-files":"\u9009\u62E9\u591A\u4E2A\u6587\u4EF6","drop-files-here":"\u5C06\u6587\u4EF6\u62D6\u5230\u6B64\u5904","select-file-source":"\u9009\u62E9\u6587\u4EF6\u6E90",selected:"\u5DF2\u9009\u62E9",upload:"\u4E0A\u4F20","add-more":"\u6DFB\u52A0\u66F4\u591A",cancel:"\u53D6\u6D88","start-from-cancel":"\u5F00\u59CB\u4ECE\u53D6\u6D88",clear:"\u6E05\u9664","camera-shot":"\u62CD\u6444","upload-url":"\u5BFC\u5165","upload-url-placeholder":"\u5728\u6B64\u5904\u7C98\u8D34\u94FE\u63A5","edit-image":"\u7F16\u8F91\u56FE\u7247","edit-detail":"\u8BE6\u60C5",back:"\u8FD4\u56DE",done:"\u5B8C\u6210",ok:"\u786E\u5B9A","remove-from-list":"\u79FB\u9664",no:"\u5426",yes:"\u662F","confirm-your-action":"\u786E\u8BA4\u60A8\u7684\u64CD\u4F5C","are-you-sure":"\u60A8\u786E\u5B9A\u5417\uFF1F","selected-count":"\u5DF2\u9009\u62E9\uFF1A","upload-error":"\u4E0A\u4F20\u9519\u8BEF","validation-error":"\u9A8C\u8BC1\u9519\u8BEF","no-files":"\u672A\u9009\u62E9\u6587\u4EF6",browse:"\u6D4F\u89C8","not-uploaded-yet":"\u5C1A\u672A\u4E0A\u4F20...",file__one:"\u6587\u4EF6",file__other:"\u6587\u4EF6",error__one:"\u9519\u8BEF",error__other:"\u9519\u8BEF","header-uploading":"\u6B63\u5728\u4E0A\u4F20 {{count}} {{plural:file(count)}}","header-failed":"{{count}} {{plural:error(count)}}","header-succeed":"{{count}} {{plural:file(count)}} \u5DF2\u4E0A\u4F20","header-total":"{{count}} {{plural:file(count)}} \u5DF2\u9009\u62E9","src-type-local":"\u4ECE\u8BBE\u5907","src-type-from-url":"\u4ECE\u94FE\u63A5","src-type-camera":"\u76F8\u673A","src-type-draw":"\u7ED8\u5236","src-type-facebook":"Facebook","src-type-dropbox":"Dropbox","src-type-gdrive":"Google Drive","src-type-ngdrive":"Google Drive","src-type-gphotos":"Google Photos","src-type-flickr":"Flickr","src-type-vk":"VK","src-type-evernote":"Evernote","src-type-box":"Box","src-type-onedrive":"OneDrive","src-type-huddle":"Huddle","src-type-other":"\u5176\u4ED6","src-type-mobile-video-camera":"\u89C6\u9891","src-type-mobile-photo-camera":"\u7167\u7247","caption-from-url":"\u4ECE\u94FE\u63A5\u5BFC\u5165","caption-camera":"\u76F8\u673A","caption-draw":"\u7ED8\u5236","caption-edit-file":"\u7F16\u8F91\u6587\u4EF6","file-no-name":"\u65E0\u540D\u79F0...","toggle-fullscreen":"\u5207\u6362\u5168\u5C4F","toggle-guides":"\u5207\u6362\u6307\u5357",rotate:"\u65CB\u8F6C","flip-vertical":"\u5782\u76F4\u7FFB\u8F6C","flip-horizontal":"\u6C34\u5E73\u7FFB\u8F6C",apply:"\u5E94\u7528",brightness:"\u4EAE\u5EA6",contrast:"\u5BF9\u6BD4",saturation:"\u9971\u548C\u5EA6",exposure:"\u66DD\u5149",gamma:"\u4F3D\u9A6C",vibrance:"\u6D3B\u529B",warmth:"\u6E29\u6696",enhance:"\u589E\u5F3A",original:"\u539F\u59CB",resize:"\u8C03\u6574\u56FE\u7247\u5927\u5C0F",crop:"\u88C1\u526A","select-color":"\u9009\u62E9\u989C\u8272",text:"\u6587\u672C",draw:"\u7ED8\u5236","cancel-edit":"\u53D6\u6D88\u7F16\u8F91","tab-view":"\u9884\u89C8","tab-details":"\u8BE6\u60C5","file-name":"\u540D\u79F0","file-size":"\u5927\u5C0F","cdn-url":"CDN URL","file-size-unknown":"\u672A\u77E5","camera-permissions-denied":"\u76F8\u673A\u8BBF\u95EE\u88AB\u62D2\u7EDD","camera-permissions-prompt":"\u8BF7\u5141\u8BB8\u8BBF\u95EE\u76F8\u673A","camera-permissions-request":"\u8BF7\u6C42\u8BBF\u95EE","files-count-limit-error-title":"\u6587\u4EF6\u6570\u91CF\u9650\u5236\u8D85\u51FA","files-count-limit-error-too-few":"\u60A8\u9009\u62E9\u4E86 {{total}} {{plural:file(total)}}\u3002\u81F3\u5C11\u9700\u8981 {{min}} {{plural:file(min)}}\u3002","files-count-limit-error-too-many":"\u60A8\u9009\u62E9\u7684\u6587\u4EF6\u592A\u591A\u4E86\u3002\u6700\u591A {{max}} {{plural:file(max)}}\u3002","files-max-size-limit-error":"\u6587\u4EF6\u592A\u5927\u3002\u6700\u5927\u6587\u4EF6\u5927\u5C0F\u4E3A {{maxFileSize}}\u3002","has-validation-errors":"\u6587\u4EF6\u9A8C\u8BC1\u9519\u8BEF\u53D1\u751F\u3002\u8BF7\u5728\u4E0A\u4F20\u524D\u68C0\u67E5\u60A8\u7684\u6587\u4EF6\u3002","images-only-accepted":"\u53EA\u63A5\u53D7\u56FE\u50CF\u6587\u4EF6\u3002","file-type-not-allowed":"\u4E0D\u5141\u8BB8\u4E0A\u4F20\u8FD9\u4E9B\u6587\u4EF6\u7C7B\u578B\u3002","some-files-were-not-uploaded":"\u6709\u4E9B\u6587\u4EF6\u672A\u4E0A\u4F20\u3002","file-item-edit-button":"\u7F16\u8F91","file-item-remove-button":"\u79FB\u9664","a11y-activity-header-button-close":"\u5173\u95ED","a11y-editor-tab-filters":"\u8FC7\u6EE4\u5668","a11y-editor-tab-tuning":"\u8C03\u6574","a11y-editor-tab-crop":"\u88C1\u526A",flip:"\u7FFB\u8F6C",mirror:"\u955C\u50CF","a11y-cloud-editor-apply-filter":"\u5E94\u7528 {{name}} \u8FC7\u6EE4\u5668","a11y-cloud-editor-apply-crop":"\u5E94\u7528 {{name}} \u64CD\u4F5C","a11y-cloud-editor-apply-tuning":"\u5E94\u7528 {{name}} \u8C03\u6574",finished:"\u5DF2\u5B8C\u6210",failed:"\u5931\u8D25",uploading:"\u4E0A\u4F20\u4E2D",idle:"\u7A7A\u95F2","a11y-file-item-status":"\u6587\u4EF6 {{fileName}} \u7684\u72B6\u6001\u662F {{status}}","select-all":"\u5168\u9009","deselect-all":"\u53D6\u6D88\u5168\u9009","waiting-for":"\u7B49\u5F85 {{source}}","queued-uploading":"\u6392\u961F\u7B49\u5F85\u4E0A\u4F20","queued-validation":"\u6392\u961F\u7B49\u5F85\u9A8C\u8BC1",validation:"\u6B63\u5728\u9A8C\u8BC1","a11y-cloud-editor-apply-aspect-ratio":"\u5E94\u7528\u64CD\u4F5C {{name}} {{value}}","crop-to-shape":"\u88C1\u526A\u4E3A {{value}}",custom:"\u81EA\u7531\u5F62\u5F0F","freeform-crop":"\u81EA\u7531\u88C1\u526A"};export{e as default};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uploadcare/file-uploader",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.26.0",
|
|
4
4
|
"description": "Building blocks for Uploadcare products integration",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web components",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
},
|
|
68
68
|
"homepage": "https://uploadcare.com/",
|
|
69
69
|
"files": [
|
|
70
|
-
"{dist,web,types}/**/*.{js,css,d.ts,d.ts.map}",
|
|
70
|
+
"{dist,web,types}/**/*.{js,css,d.ts,d.ts.map,txt}",
|
|
71
71
|
"README.md",
|
|
72
72
|
"LICENSE"
|
|
73
73
|
],
|
|
@@ -96,11 +96,12 @@
|
|
|
96
96
|
"tsc:e2e": "tsc --project tsconfig.e2e-test.json",
|
|
97
97
|
"tsc:node": "tsc --project tsconfig.node.json",
|
|
98
98
|
"lint:size": "size-limit",
|
|
99
|
-
"lint:js": "biome lint",
|
|
99
|
+
"lint:js": "biome lint && eslint .",
|
|
100
100
|
"lint:js:fix": "biome lint --write",
|
|
101
101
|
"lint:css": "stylelint './**/*.css'",
|
|
102
102
|
"lint:css:fix": "stylelint './**/*.css' --fix",
|
|
103
|
-
"lint": "
|
|
103
|
+
"lint:lit-analyzer": "lit-analyzer './src/**/*.ts' --strict",
|
|
104
|
+
"lint": "run-s lint:js lint:css lint:lit-analyzer",
|
|
104
105
|
"clean:web": "rimraf './web/'",
|
|
105
106
|
"clean:dist": "rimraf './dist/'",
|
|
106
107
|
"clean": "run-s clean:*",
|
|
@@ -110,52 +111,63 @@
|
|
|
110
111
|
},
|
|
111
112
|
"devDependencies": {
|
|
112
113
|
"@arethetypeswrong/cli": "^0.18.2",
|
|
113
|
-
"@biomejs/biome": "2.
|
|
114
|
-
"@biomejs/js-api": "^
|
|
115
|
-
"@biomejs/wasm-nodejs": "^2.
|
|
114
|
+
"@biomejs/biome": "2.3.13",
|
|
115
|
+
"@biomejs/js-api": "^4.0.0",
|
|
116
|
+
"@biomejs/wasm-nodejs": "^2.3.13",
|
|
116
117
|
"@csstools/postcss-cascade-layers": "^5.0.2",
|
|
117
|
-
"@happy-dom/global-registrator": "^20.
|
|
118
|
+
"@happy-dom/global-registrator": "^20.0.10",
|
|
118
119
|
"@size-limit/esbuild-why": "^11.2.0",
|
|
119
120
|
"@size-limit/preset-small-lib": "^11.2.0",
|
|
120
121
|
"@total-typescript/ts-reset": "^0.6.1",
|
|
121
|
-
"@types/node": "^
|
|
122
|
-
"@types/react": "^18.
|
|
122
|
+
"@types/node": "^24",
|
|
123
|
+
"@types/react": "^18.0.0",
|
|
123
124
|
"@types/svg-sprite": "^0.0.39",
|
|
124
|
-
"@vitest/browser": "^
|
|
125
|
-
"@vitest/
|
|
126
|
-
"
|
|
127
|
-
"
|
|
128
|
-
"
|
|
129
|
-
"
|
|
125
|
+
"@vitest/browser": "^4.0.15",
|
|
126
|
+
"@vitest/browser-playwright": "^4.0.15",
|
|
127
|
+
"@vitest/coverage-v8": "^4.0.15",
|
|
128
|
+
"esbuild": "^0.25.12",
|
|
129
|
+
"esbuild-minify-templates": "^0.13.1",
|
|
130
|
+
"eslint": "^9.39.2",
|
|
131
|
+
"eslint-plugin-lit": "^2.1.1",
|
|
132
|
+
"eslint-plugin-wc": "^3.0.2",
|
|
133
|
+
"husky": "^9.1.7",
|
|
134
|
+
"lint-staged": "^16.2.6",
|
|
135
|
+
"lit-analyzer": "^2.0.3",
|
|
136
|
+
"node-watch": "^0.7.4",
|
|
130
137
|
"npm-run-all": "^4.1.5",
|
|
131
|
-
"playwright": "^1.
|
|
138
|
+
"playwright": "^1.56.1",
|
|
132
139
|
"postcss": "^8.5.6",
|
|
133
|
-
"publint": "^0.3.
|
|
140
|
+
"publint": "^0.3.15",
|
|
134
141
|
"render-jsx": "^0.2.4",
|
|
135
|
-
"rimraf": "^
|
|
142
|
+
"rimraf": "^6.1.0",
|
|
136
143
|
"shipjs": "^0.27.0",
|
|
137
144
|
"size-limit": "^11.2.0",
|
|
138
|
-
"stylelint": "^
|
|
139
|
-
"stylelint-config-standard": "^
|
|
140
|
-
"stylelint-declaration-block-no-ignored-properties": "^2.
|
|
141
|
-
"stylelint-order": "^
|
|
145
|
+
"stylelint": "^16.25.0",
|
|
146
|
+
"stylelint-config-standard": "^39.0.1",
|
|
147
|
+
"stylelint-declaration-block-no-ignored-properties": "^2.8.0",
|
|
148
|
+
"stylelint-order": "^7.0.0",
|
|
142
149
|
"svg-sprite": "^2.0.4",
|
|
143
|
-
"
|
|
150
|
+
"ts-lit-plugin": "^2.0.2",
|
|
151
|
+
"tsd": "^0.33.0",
|
|
144
152
|
"tsup": "^8.5.0",
|
|
145
153
|
"tsx": "^4.20.6",
|
|
146
154
|
"typescript": "^5.9.3",
|
|
147
|
-
"
|
|
148
|
-
"
|
|
155
|
+
"typescript-eslint": "^8.53.0",
|
|
156
|
+
"vite": "8.0.0-beta.0",
|
|
157
|
+
"vitest": "^4.0.15",
|
|
158
|
+
"vitest-browser-lit": "^1.0.1"
|
|
149
159
|
},
|
|
150
160
|
"author": "Uploadcare Inc.",
|
|
151
161
|
"license": "MIT",
|
|
152
162
|
"dependencies": {
|
|
153
|
-
"@
|
|
154
|
-
"@uploadcare/cname-prefix": "^6.18.
|
|
155
|
-
"@uploadcare/image-shrink": "^6.18.
|
|
156
|
-
"@uploadcare/quality-insights": "^6.18.
|
|
157
|
-
"@uploadcare/upload-client": "^6.18.
|
|
158
|
-
"keyux": "^0.7.1"
|
|
163
|
+
"@lit/context": "^1.1.6",
|
|
164
|
+
"@uploadcare/cname-prefix": "^6.18.2",
|
|
165
|
+
"@uploadcare/image-shrink": "^6.18.2",
|
|
166
|
+
"@uploadcare/quality-insights": "^6.18.2",
|
|
167
|
+
"@uploadcare/upload-client": "^6.18.2",
|
|
168
|
+
"keyux": "^0.7.1",
|
|
169
|
+
"lit": "^3.3.1",
|
|
170
|
+
"nanostores": "^1.1.0"
|
|
159
171
|
},
|
|
160
172
|
"size-limit": [
|
|
161
173
|
{
|
package/types/jsx.d.ts
CHANGED
|
@@ -1,66 +1,93 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
|
|
3
|
-
type
|
|
3
|
+
type LitElement = import('lit').LitElement;
|
|
4
4
|
type UploadCtxProvider = import('../dist/index.ts').UploadCtxProvider;
|
|
5
5
|
type Config = import('../dist/index.ts').Config;
|
|
6
6
|
type FileUploaderInline = import('../dist/index.ts').FileUploaderInline;
|
|
7
7
|
type FileUploaderRegular = import('../dist/index.ts').FileUploaderRegular;
|
|
8
8
|
type FileUploaderMinimal = import('../dist/index.ts').FileUploaderMinimal;
|
|
9
|
+
type BtnUi = import('../dist/index.ts').BtnUi;
|
|
10
|
+
type LineLoaderUi = import('../dist/index.ts').LineLoaderUi;
|
|
11
|
+
type PresenceToggle = import('../dist/index.ts').PresenceToggle;
|
|
12
|
+
type SliderUi = import('../dist/index.ts').SliderUi;
|
|
13
|
+
type CropFrame = import('../dist/index.ts').CropFrame;
|
|
14
|
+
type EditorCropButtonControl = import('../dist/index.ts').EditorCropButtonControl;
|
|
15
|
+
type EditorAspectRatioButtonControl = import('../dist/index.ts').EditorAspectRatioButtonControl;
|
|
16
|
+
type EditorFreeformButtonControl = import('../dist/index.ts').EditorFreeformButtonControl;
|
|
17
|
+
type EditorFilterControl = import('../dist/index.ts').EditorFilterControl;
|
|
18
|
+
type EditorOperationControl = import('../dist/index.ts').EditorOperationControl;
|
|
19
|
+
type EditorImageCropper = import('../dist/index.ts').EditorImageCropper;
|
|
20
|
+
type EditorImageFader = import('../dist/index.ts').EditorImageFader;
|
|
21
|
+
type EditorScroller = import('../dist/index.ts').EditorScroller;
|
|
22
|
+
type EditorSlider = import('../dist/index.ts').EditorSlider;
|
|
23
|
+
type EditorToolbar = import('../dist/index.ts').EditorToolbar;
|
|
24
|
+
type Icon = import('../dist/index.ts').Icon;
|
|
25
|
+
type Img = import('../dist/index.ts').Img;
|
|
26
|
+
type SimpleBtn = import('../dist/index.ts').SimpleBtn;
|
|
27
|
+
type StartFrom = import('../dist/index.ts').StartFrom;
|
|
28
|
+
type DropArea = import('../dist/index.ts').DropArea;
|
|
29
|
+
type SourceBtn = import('../dist/index.ts').SourceBtn;
|
|
30
|
+
type SourceList = import('../dist/index.ts').SourceList;
|
|
31
|
+
type FileItem = import('../dist/index.ts').FileItem;
|
|
32
|
+
type Modal = import('../dist/index.ts').Modal;
|
|
33
|
+
type UploadList = import('../dist/index.ts').UploadList;
|
|
34
|
+
type UrlSource = import('../dist/index.ts').UrlSource;
|
|
35
|
+
type CameraSource = import('../dist/index.ts').CameraSource;
|
|
36
|
+
type ProgressBarCommon = import('../dist/index.ts').ProgressBarCommon;
|
|
37
|
+
type ProgressBar = import('../dist/index.ts').ProgressBar;
|
|
38
|
+
type ExternalSource = import('../dist/index.ts').ExternalSource;
|
|
39
|
+
type CloudImageEditorActivity = import('../dist/index.ts').CloudImageEditorActivity;
|
|
9
40
|
type FormInput = import('../dist/index.ts').FormInput;
|
|
10
41
|
type CloudImageEditorBlock = import('../dist/index.ts').CloudImageEditorBlock;
|
|
11
|
-
|
|
12
|
-
'ctx-name': string;
|
|
13
|
-
testMode?: boolean;
|
|
14
|
-
};
|
|
42
|
+
|
|
15
43
|
type CommonHtmlAttributes<T> = Partial<
|
|
16
44
|
Pick<React.HTMLAttributes<T>, 'id' | 'children' | 'hidden'> & { class: React.HTMLAttributes<T>['className'] }
|
|
17
45
|
>;
|
|
18
46
|
|
|
19
|
-
type
|
|
47
|
+
type ReflectAttributes<T extends LitElement & { attributesMeta?: Record<string, unknown> }> = T['attributesMeta'];
|
|
48
|
+
|
|
49
|
+
type CustomElement<C extends LitElement> = React.DetailedHTMLProps<CommonHtmlAttributes<C>, C> & ReflectAttributes<C>;
|
|
20
50
|
|
|
21
51
|
declare namespace JSX {
|
|
22
52
|
interface IntrinsicElements {
|
|
23
|
-
'uc-crop-frame':
|
|
24
|
-
'uc-editor-crop-button-control':
|
|
25
|
-
'uc-editor-aspect-ratio-button-control':
|
|
26
|
-
'uc-editor-freeform-button-control':
|
|
27
|
-
'uc-editor-filter-control':
|
|
28
|
-
'uc-editor-operation-control':
|
|
29
|
-
'uc-editor-image-cropper':
|
|
30
|
-
'uc-editor-image-fader':
|
|
31
|
-
'uc-editor-scroller':
|
|
32
|
-
'uc-editor-slider':
|
|
33
|
-
'uc-editor-toolbar':
|
|
34
|
-
'uc-btn-ui':
|
|
35
|
-
'uc-line-loader-ui':
|
|
36
|
-
'uc-presence-toggle':
|
|
37
|
-
'uc-slider-ui':
|
|
38
|
-
'uc-icon':
|
|
39
|
-
'uc-img':
|
|
40
|
-
'uc-simple-btn':
|
|
41
|
-
'uc-start-from':
|
|
42
|
-
'uc-drop-area':
|
|
43
|
-
'uc-source-btn':
|
|
44
|
-
'uc-source-list':
|
|
45
|
-
'uc-file-item':
|
|
46
|
-
'uc-modal':
|
|
47
|
-
'uc-upload-list':
|
|
48
|
-
'uc-url-source':
|
|
49
|
-
'uc-camera-source':
|
|
50
|
-
'uc-progress-bar-common':
|
|
51
|
-
'uc-progress-bar':
|
|
52
|
-
'uc-external-source':
|
|
53
|
-
'uc-cloud-image-editor-activity':
|
|
54
|
-
'uc-cloud-image-editor-block': CustomElement<
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
>;
|
|
58
|
-
'uc-
|
|
59
|
-
'uc-
|
|
60
|
-
'uc-
|
|
61
|
-
'uc-
|
|
62
|
-
'uc-file-uploader-inline': CustomElement<FileUploaderInline, CtxAttributes>;
|
|
63
|
-
'uc-upload-ctx-provider': CustomElement<UploadCtxProvider, CtxAttributes>;
|
|
64
|
-
'uc-config': CustomElement<Config, CtxAttributes & Partial<ConfigPlainType>>;
|
|
53
|
+
'uc-crop-frame': CustomElement<CropFrame>;
|
|
54
|
+
'uc-editor-crop-button-control': CustomElement<EditorCropButtonControl>;
|
|
55
|
+
'uc-editor-aspect-ratio-button-control': CustomElement<EditorAspectRatioButtonControl>;
|
|
56
|
+
'uc-editor-freeform-button-control': CustomElement<EditorFreeformButtonControl>;
|
|
57
|
+
'uc-editor-filter-control': CustomElement<EditorFilterControl>;
|
|
58
|
+
'uc-editor-operation-control': CustomElement<EditorOperationControl>;
|
|
59
|
+
'uc-editor-image-cropper': CustomElement<EditorImageCropper>;
|
|
60
|
+
'uc-editor-image-fader': CustomElement<EditorImageFader>;
|
|
61
|
+
'uc-editor-scroller': CustomElement<EditorScroller>;
|
|
62
|
+
'uc-editor-slider': CustomElement<EditorSlider>;
|
|
63
|
+
'uc-editor-toolbar': CustomElement<EditorToolbar>;
|
|
64
|
+
'uc-btn-ui': CustomElement<BtnUi>;
|
|
65
|
+
'uc-line-loader-ui': CustomElement<LineLoaderUi>;
|
|
66
|
+
'uc-presence-toggle': CustomElement<PresenceToggle>;
|
|
67
|
+
'uc-slider-ui': CustomElement<SliderUi>;
|
|
68
|
+
'uc-icon': CustomElement<Icon>;
|
|
69
|
+
'uc-img': CustomElement<Img> & React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>;
|
|
70
|
+
'uc-simple-btn': CustomElement<SimpleBtn>;
|
|
71
|
+
'uc-start-from': CustomElement<StartFrom>;
|
|
72
|
+
'uc-drop-area': CustomElement<DropArea>;
|
|
73
|
+
'uc-source-btn': CustomElement<SourceBtn>;
|
|
74
|
+
'uc-source-list': CustomElement<SourceList>;
|
|
75
|
+
'uc-file-item': CustomElement<FileItem>;
|
|
76
|
+
'uc-modal': CustomElement<Modal>;
|
|
77
|
+
'uc-upload-list': CustomElement<UploadList>;
|
|
78
|
+
'uc-url-source': CustomElement<UrlSource>;
|
|
79
|
+
'uc-camera-source': CustomElement<CameraSource>;
|
|
80
|
+
'uc-progress-bar-common': CustomElement<ProgressBarCommon>;
|
|
81
|
+
'uc-progress-bar': CustomElement<ProgressBar>;
|
|
82
|
+
'uc-external-source': CustomElement<ExternalSource>;
|
|
83
|
+
'uc-cloud-image-editor-activity': CustomElement<CloudImageEditorActivity>;
|
|
84
|
+
'uc-cloud-image-editor-block': CustomElement<CloudImageEditorBlock>;
|
|
85
|
+
'uc-cloud-image-editor': CustomElement<CloudImageEditorBlock>;
|
|
86
|
+
'uc-form-input': CustomElement<FormInput>;
|
|
87
|
+
'uc-file-uploader-regular': CustomElement<FileUploaderRegular>;
|
|
88
|
+
'uc-file-uploader-minimal': CustomElement<FileUploaderMinimal>;
|
|
89
|
+
'uc-file-uploader-inline': CustomElement<FileUploaderInline>;
|
|
90
|
+
'uc-upload-ctx-provider': CustomElement<UploadCtxProvider>;
|
|
91
|
+
'uc-config': CustomElement<Config>;
|
|
65
92
|
}
|
|
66
93
|
}
|