@uploadcare/file-uploader 1.13.0-alpha.3 → 1.13.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/UploaderPublicApi.d.ts.map +1 -1
- package/abstract/UploaderPublicApi.js +4 -11
- package/blocks/CameraSource/CameraSource.d.ts +12 -22
- package/blocks/CameraSource/CameraSource.d.ts.map +1 -1
- package/blocks/CameraSource/CameraSource.js +81 -83
- package/blocks/CameraSource/camera-source.css +1 -0
- package/blocks/CameraSource/constants.d.ts +15 -0
- package/blocks/CameraSource/constants.d.ts.map +1 -0
- package/blocks/CameraSource/constants.js +17 -0
- package/blocks/CloudImageEditor/src/CropFrame.d.ts +0 -7
- package/blocks/CloudImageEditor/src/CropFrame.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/CropFrame.js +0 -50
- package/blocks/CloudImageEditor/src/css/common.css +0 -4
- package/blocks/CloudImageEditor/src/lib/parseTabs.js +2 -2
- package/blocks/Config/Config.d.ts +3 -3
- package/blocks/Config/Config.d.ts.map +1 -1
- package/blocks/Config/Config.js +13 -3
- package/blocks/Config/assertions.d.ts +5 -0
- package/blocks/Config/assertions.d.ts.map +1 -0
- package/blocks/Config/assertions.js +37 -0
- package/blocks/Config/initialConfig.d.ts.map +1 -1
- package/blocks/Config/initialConfig.js +4 -5
- package/blocks/Config/normalizeConfigValue.d.ts.map +1 -1
- package/blocks/Config/normalizeConfigValue.js +20 -8
- package/blocks/Config/side-effects.d.ts +7 -0
- package/blocks/Config/side-effects.d.ts.map +1 -0
- package/blocks/Config/side-effects.js +32 -0
- 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 +2 -0
- package/blocks/ProgressBar/ProgressBar.d.ts.map +1 -1
- package/blocks/ProgressBar/ProgressBar.js +37 -9
- package/blocks/ProgressBar/progress-bar.css +35 -1
- package/blocks/UploadList/upload-list.css +1 -0
- package/blocks/utils/comma-separated.d.ts +1 -1
- package/blocks/utils/comma-separated.d.ts.map +1 -1
- package/blocks/utils/comma-separated.js +5 -2
- package/env.d.ts +1 -1
- package/env.js +1 -1
- package/index.ssr.d.ts +1 -15
- package/index.ssr.d.ts.map +1 -1
- package/index.ssr.js +11 -18
- package/locales/file-uploader/ar.d.ts +1 -0
- package/locales/file-uploader/ar.js +1 -0
- package/locales/file-uploader/az.d.ts +1 -0
- package/locales/file-uploader/az.js +1 -0
- package/locales/file-uploader/ca.d.ts +1 -0
- package/locales/file-uploader/ca.js +1 -0
- package/locales/file-uploader/cs.d.ts +1 -0
- package/locales/file-uploader/cs.js +1 -0
- package/locales/file-uploader/da.d.ts +1 -0
- package/locales/file-uploader/da.js +1 -0
- package/locales/file-uploader/de.d.ts +1 -0
- package/locales/file-uploader/de.js +1 -0
- package/locales/file-uploader/el.d.ts +1 -0
- package/locales/file-uploader/el.js +1 -0
- package/locales/file-uploader/en.d.ts +1 -0
- package/locales/file-uploader/en.js +2 -1
- package/locales/file-uploader/es.d.ts +1 -0
- package/locales/file-uploader/es.js +1 -0
- package/locales/file-uploader/et.d.ts +1 -0
- package/locales/file-uploader/et.js +1 -0
- package/locales/file-uploader/fi.d.ts +1 -0
- package/locales/file-uploader/fi.js +1 -0
- package/locales/file-uploader/fr.d.ts +1 -0
- package/locales/file-uploader/fr.js +1 -0
- package/locales/file-uploader/he.d.ts +1 -0
- package/locales/file-uploader/he.js +1 -0
- package/locales/file-uploader/hy.d.ts +1 -0
- package/locales/file-uploader/hy.js +1 -0
- package/locales/file-uploader/is.d.ts +1 -0
- package/locales/file-uploader/is.js +1 -0
- package/locales/file-uploader/it.d.ts +1 -0
- package/locales/file-uploader/it.js +1 -0
- package/locales/file-uploader/ja.d.ts +1 -0
- package/locales/file-uploader/ja.js +1 -0
- package/locales/file-uploader/ka.d.ts +1 -0
- package/locales/file-uploader/ka.js +1 -0
- package/locales/file-uploader/kk.d.ts +1 -0
- package/locales/file-uploader/kk.js +1 -0
- package/locales/file-uploader/ko.d.ts +1 -0
- package/locales/file-uploader/ko.js +1 -0
- package/locales/file-uploader/lv.d.ts +1 -0
- package/locales/file-uploader/lv.js +1 -0
- package/locales/file-uploader/nb.d.ts +1 -0
- package/locales/file-uploader/nb.js +1 -0
- package/locales/file-uploader/nl.d.ts +1 -0
- package/locales/file-uploader/nl.js +1 -0
- package/locales/file-uploader/pl.d.ts +1 -0
- package/locales/file-uploader/pl.js +1 -0
- package/locales/file-uploader/pt.d.ts +1 -0
- package/locales/file-uploader/pt.js +1 -0
- package/locales/file-uploader/ro.d.ts +1 -0
- package/locales/file-uploader/ro.js +1 -0
- package/locales/file-uploader/ru.d.ts +1 -0
- package/locales/file-uploader/ru.js +1 -0
- package/locales/file-uploader/sk.d.ts +1 -0
- package/locales/file-uploader/sk.js +1 -0
- package/locales/file-uploader/sr.d.ts +1 -0
- package/locales/file-uploader/sr.js +1 -0
- package/locales/file-uploader/sv.d.ts +1 -0
- package/locales/file-uploader/sv.js +1 -0
- package/locales/file-uploader/tr.d.ts +1 -0
- package/locales/file-uploader/tr.js +1 -0
- package/locales/file-uploader/uk.d.ts +1 -0
- package/locales/file-uploader/uk.js +1 -0
- package/locales/file-uploader/vi.d.ts +1 -0
- package/locales/file-uploader/vi.js +1 -0
- package/locales/file-uploader/zh-TW.d.ts +1 -0
- package/locales/file-uploader/zh-TW.js +1 -0
- package/locales/file-uploader/zh.d.ts +1 -0
- package/locales/file-uploader/zh.js +1 -0
- package/package.json +3 -5
- package/types/exported.d.ts +81 -66
- 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.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
package/index.ssr.d.ts
CHANGED
|
@@ -54,20 +54,6 @@ export const BtnUi: {
|
|
|
54
54
|
};
|
|
55
55
|
export const CameraSource: {
|
|
56
56
|
new (): {};
|
|
57
|
-
types: {
|
|
58
|
-
PHOTO: string;
|
|
59
|
-
VIDEO: string;
|
|
60
|
-
};
|
|
61
|
-
events: {
|
|
62
|
-
IDLE: string;
|
|
63
|
-
SHOT: string;
|
|
64
|
-
PLAY: string;
|
|
65
|
-
PAUSE: string;
|
|
66
|
-
RESUME: string;
|
|
67
|
-
STOP: string;
|
|
68
|
-
RETAKE: string;
|
|
69
|
-
ACCEPT: string;
|
|
70
|
-
};
|
|
71
57
|
template: string;
|
|
72
58
|
extSrcList: {
|
|
73
59
|
FACEBOOK: string;
|
|
@@ -544,7 +530,7 @@ export const Modal: {
|
|
|
544
530
|
bindAttributes: () => void;
|
|
545
531
|
};
|
|
546
532
|
export const PACKAGE_NAME: "blocks";
|
|
547
|
-
export const PACKAGE_VERSION: "1.
|
|
533
|
+
export const PACKAGE_VERSION: "1.13.0";
|
|
548
534
|
export const PresenceToggle: {
|
|
549
535
|
new (): {};
|
|
550
536
|
template: string;
|
package/index.ssr.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.ssr.d.ts","sourceRoot":"","sources":["index.ssr.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;EAcE;AACF;;;;;;;;;;;;;;;EAcE;AACF;;;;;EAIE;AACF;;;;;;EAKE;AACF;;;;;;;;EAYE;AACF
|
|
1
|
+
{"version":3,"file":"index.ssr.d.ts","sourceRoot":"","sources":["index.ssr.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;EAcE;AACF;;;;;;;;;;;;;;;EAcE;AACF;;;;;EAIE;AACF;;;;;;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;;;EAWE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiEE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4FE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoBF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6CE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyEE;AACK,yCAAiC;AACjC,qCAA6B;AAC7B,6CAAqC;AACrC,oCAA4B"}
|
package/index.ssr.js
CHANGED
|
@@ -53,17 +53,6 @@ export const BtnUi = class {
|
|
|
53
53
|
static bindAttributes = () => {};
|
|
54
54
|
};
|
|
55
55
|
export const CameraSource = class {
|
|
56
|
-
static types = { PHOTO: "photo", VIDEO: "video" };
|
|
57
|
-
static events = {
|
|
58
|
-
IDLE: "idle",
|
|
59
|
-
SHOT: "shot",
|
|
60
|
-
PLAY: "play",
|
|
61
|
-
PAUSE: "pause",
|
|
62
|
-
RESUME: "resume",
|
|
63
|
-
STOP: "stop",
|
|
64
|
-
RETAKE: "retake",
|
|
65
|
-
ACCEPT: "accept",
|
|
66
|
-
};
|
|
67
56
|
static template = `
|
|
68
57
|
<uc-activity-header>
|
|
69
58
|
<button type="button" class="uc-mini-btn" set="onclick: *historyBack" l10n="@title:back">
|
|
@@ -118,7 +107,7 @@ export const CameraSource = class {
|
|
|
118
107
|
<button
|
|
119
108
|
data-id="video"
|
|
120
109
|
type="button"
|
|
121
|
-
class="uc-switch
|
|
110
|
+
class="uc-switch uc-mini-btn"
|
|
122
111
|
set="onclick: onClickTab; @hidden: tabVideoHidden"
|
|
123
112
|
>
|
|
124
113
|
<uc-icon name="video-camera"></uc-icon>
|
|
@@ -145,8 +134,8 @@ export const CameraSource = class {
|
|
|
145
134
|
</button>
|
|
146
135
|
|
|
147
136
|
<div class="uc-select">
|
|
148
|
-
<button class="uc-mini-btn uc-btn-microphone" set="onclick: onToggleAudio; @hidden:
|
|
149
|
-
<uc-icon set="@name:
|
|
137
|
+
<button class="uc-mini-btn uc-btn-microphone" set="onclick: onToggleAudio; @hidden: audioToggleMicrophoneHidden;">
|
|
138
|
+
<uc-icon set="@name:toggleMicrophoneIcon"></uc-icon>
|
|
150
139
|
</button>
|
|
151
140
|
|
|
152
141
|
<uc-select
|
|
@@ -375,11 +364,11 @@ export const Config = class {
|
|
|
375
364
|
"user-agent-integration",
|
|
376
365
|
"locale-name",
|
|
377
366
|
"secure-uploads-expire-threshold",
|
|
367
|
+
"camera-modes",
|
|
378
368
|
"default-camera-mode",
|
|
379
369
|
"enable-audio-recording",
|
|
380
370
|
"enable-video-recording",
|
|
381
371
|
"max-video-recording-duration",
|
|
382
|
-
"cloud-image-editor-mask-href",
|
|
383
372
|
"multiplemin",
|
|
384
373
|
"multiplemax",
|
|
385
374
|
"confirmupload",
|
|
@@ -420,11 +409,11 @@ export const Config = class {
|
|
|
420
409
|
"useragentintegration",
|
|
421
410
|
"localename",
|
|
422
411
|
"secureuploadsexpirethreshold",
|
|
412
|
+
"cameramodes",
|
|
423
413
|
"defaultcameramode",
|
|
424
414
|
"enableaudiorecording",
|
|
425
415
|
"enablevideorecording",
|
|
426
416
|
"maxvideorecordingduration",
|
|
427
|
-
"cloudimageeditormaskhref",
|
|
428
417
|
];
|
|
429
418
|
static reg = () => {};
|
|
430
419
|
static styleAttrs = [];
|
|
@@ -840,6 +829,7 @@ export const FileItem = class {
|
|
|
840
829
|
<div aria-live="polite" class="uc-file-name-wrapper" set="@aria-label:ariaLabelStatusFile;">
|
|
841
830
|
<span class="uc-file-name" set="@title: itemName">{{itemName}}</span>
|
|
842
831
|
<span class="uc-file-error" set="@hidden: !errorText">{{errorText}}</span>
|
|
832
|
+
<span class="uc-file-hint" set="@hidden: !hint">{{hint}}</span>
|
|
843
833
|
</div>
|
|
844
834
|
<div class="uc-file-actions">
|
|
845
835
|
<button
|
|
@@ -1037,7 +1027,7 @@ export const Modal = class {
|
|
|
1037
1027
|
static bindAttributes = () => {};
|
|
1038
1028
|
};
|
|
1039
1029
|
export const PACKAGE_NAME = `blocks`;
|
|
1040
|
-
export const PACKAGE_VERSION = `1.
|
|
1030
|
+
export const PACKAGE_VERSION = `1.13.0`;
|
|
1041
1031
|
export const PresenceToggle = class {
|
|
1042
1032
|
static template = `<slot></slot> `;
|
|
1043
1033
|
static reg = () => {};
|
|
@@ -1046,7 +1036,10 @@ export const PresenceToggle = class {
|
|
|
1046
1036
|
static bindAttributes = () => {};
|
|
1047
1037
|
};
|
|
1048
1038
|
export const ProgressBar = class {
|
|
1049
|
-
static template = `
|
|
1039
|
+
static template = `
|
|
1040
|
+
<div ref="fakeProgressLine" class="uc-fake-progress"></div>
|
|
1041
|
+
<div ref="realProgressLine" class="uc-progress"></div>
|
|
1042
|
+
`;
|
|
1050
1043
|
static reg = () => {};
|
|
1051
1044
|
static styleAttrs = [];
|
|
1052
1045
|
static is = `sym-1`;
|
|
@@ -97,7 +97,7 @@ export default {
|
|
|
97
97
|
'You’ve chosen {{total}} {{plural:file(total)}}. At least {{min}} {{plural:file(min)}} required.',
|
|
98
98
|
'files-count-limit-error-too-many': 'You’ve chosen too many files. {{max}} {{plural:file(max)}} is maximum.',
|
|
99
99
|
'files-max-size-limit-error': 'File is too big. Max file size is {{maxFileSize}}.',
|
|
100
|
-
'has-validation-errors': 'File validation error
|
|
100
|
+
'has-validation-errors': 'File validation error occurred. Please, check your files before upload.',
|
|
101
101
|
'images-only-accepted': 'Only image files are accepted.',
|
|
102
102
|
'file-type-not-allowed': 'Uploading of these file types is not allowed.',
|
|
103
103
|
'some-files-were-not-uploaded': 'Some files were not uploaded.',
|
|
@@ -117,4 +117,5 @@ export default {
|
|
|
117
117
|
uploading: 'Uploading',
|
|
118
118
|
idle: 'Idle',
|
|
119
119
|
'a11y-file-item-status': 'File {{fileName}} in status {{status}}',
|
|
120
|
+
'waiting-for': 'Waiting for {{source}}',
|
|
120
121
|
};
|