@uploadcare/file-uploader 1.13.1 → 1.13.3-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 +1 -0
- package/abstract/UploaderBlock.d.ts.map +1 -1
- package/abstract/UploaderPublicApi.d.ts +2 -1
- package/abstract/UploaderPublicApi.d.ts.map +1 -1
- package/abstract/UploaderPublicApi.js +12 -4
- package/abstract/l10nProcessor.d.ts.map +1 -1
- package/abstract/l10nProcessor.js +71 -58
- package/blocks/CameraSource/CameraSource.js +1 -1
- package/blocks/CameraSource/calcCameraModes.d.ts +5 -0
- package/blocks/CameraSource/calcCameraModes.d.ts.map +1 -0
- package/blocks/CameraSource/calcCameraModes.js +11 -0
- package/blocks/CameraSource/constants.d.ts +1 -0
- package/blocks/CameraSource/constants.d.ts.map +1 -1
- package/blocks/CameraSource/constants.js +2 -0
- package/blocks/CloudImageEditor/src/EditorButtonControl.js +1 -1
- package/blocks/CloudImageEditor/src/EditorFilterControl.js +1 -1
- package/blocks/CloudImageEditor/src/EditorToolbar.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/EditorToolbar.js +4 -0
- package/blocks/CloudImageEditor/src/css/common.css +4 -3
- package/blocks/CloudImageEditor/src/elements/button/BtnUi.js +5 -1
- package/blocks/Copyright/copyright.css +1 -0
- package/blocks/ExternalSource/ExternalSource.js +1 -1
- package/blocks/FileItem/FileItem.js +4 -4
- package/blocks/Icon/Icon.d.ts.map +1 -1
- package/blocks/Icon/Icon.js +2 -0
- package/blocks/SourceBtn/SourceBtn.d.ts +1 -1
- package/blocks/SourceBtn/SourceBtn.d.ts.map +1 -1
- package/blocks/SourceBtn/SourceBtn.js +13 -1
- package/blocks/SourceList/SourceList.d.ts.map +1 -1
- package/blocks/SourceList/SourceList.js +15 -1
- package/blocks/UploadList/UploadList.js +1 -1
- package/blocks/UrlSource/UrlSource.js +2 -2
- package/blocks/utils/UploadSource.d.ts +1 -0
- package/blocks/utils/UploadSource.d.ts.map +1 -1
- package/blocks/utils/UploadSource.js +1 -0
- package/blocks/utils/checkDevice.d.ts +9 -0
- package/blocks/utils/checkDevice.d.ts.map +1 -0
- package/blocks/utils/checkDevice.js +34 -0
- package/env.d.ts +1 -1
- package/env.js +1 -1
- package/index.ssr.d.ts +15 -1
- package/index.ssr.d.ts.map +1 -1
- package/index.ssr.js +32 -14
- package/locales/file-uploader/en.d.ts +1 -0
- package/locales/file-uploader/en.js +1 -0
- package/package.json +4 -9
- package/solutions/file-uploader/inline/FileUploaderInline.js +1 -1
- package/solutions/file-uploader/regular/FileUploaderRegular.js +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 +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
package/index.ssr.d.ts
CHANGED
|
@@ -71,6 +71,7 @@ export const CameraSource: {
|
|
|
71
71
|
LOCAL: string;
|
|
72
72
|
DROP_AREA: string;
|
|
73
73
|
CAMERA: string;
|
|
74
|
+
VIDEO_CAMERA: string;
|
|
74
75
|
EXTERNAL: string;
|
|
75
76
|
API: string;
|
|
76
77
|
URL: string;
|
|
@@ -127,6 +128,7 @@ export const CloudImageEditorActivity: {
|
|
|
127
128
|
LOCAL: string;
|
|
128
129
|
DROP_AREA: string;
|
|
129
130
|
CAMERA: string;
|
|
131
|
+
VIDEO_CAMERA: string;
|
|
130
132
|
EXTERNAL: string;
|
|
131
133
|
API: string;
|
|
132
134
|
URL: string;
|
|
@@ -227,6 +229,7 @@ export const DropArea: {
|
|
|
227
229
|
LOCAL: string;
|
|
228
230
|
DROP_AREA: string;
|
|
229
231
|
CAMERA: string;
|
|
232
|
+
VIDEO_CAMERA: string;
|
|
230
233
|
EXTERNAL: string;
|
|
231
234
|
API: string;
|
|
232
235
|
URL: string;
|
|
@@ -337,6 +340,7 @@ export const ExternalSource: {
|
|
|
337
340
|
LOCAL: string;
|
|
338
341
|
DROP_AREA: string;
|
|
339
342
|
CAMERA: string;
|
|
343
|
+
VIDEO_CAMERA: string;
|
|
340
344
|
EXTERNAL: string;
|
|
341
345
|
API: string;
|
|
342
346
|
URL: string;
|
|
@@ -398,6 +402,7 @@ export const FileItem: {
|
|
|
398
402
|
LOCAL: string;
|
|
399
403
|
DROP_AREA: string;
|
|
400
404
|
CAMERA: string;
|
|
405
|
+
VIDEO_CAMERA: string;
|
|
401
406
|
EXTERNAL: string;
|
|
402
407
|
API: string;
|
|
403
408
|
URL: string;
|
|
@@ -467,6 +472,7 @@ export const FormInput: {
|
|
|
467
472
|
LOCAL: string;
|
|
468
473
|
DROP_AREA: string;
|
|
469
474
|
CAMERA: string;
|
|
475
|
+
VIDEO_CAMERA: string;
|
|
470
476
|
EXTERNAL: string;
|
|
471
477
|
API: string;
|
|
472
478
|
URL: string;
|
|
@@ -530,7 +536,7 @@ export const Modal: {
|
|
|
530
536
|
bindAttributes: () => void;
|
|
531
537
|
};
|
|
532
538
|
export const PACKAGE_NAME: "blocks";
|
|
533
|
-
export const PACKAGE_VERSION: "1.13.
|
|
539
|
+
export const PACKAGE_VERSION: "1.13.2";
|
|
534
540
|
export const PresenceToggle: {
|
|
535
541
|
new (): {};
|
|
536
542
|
template: string;
|
|
@@ -566,6 +572,7 @@ export const ProgressBarCommon: {
|
|
|
566
572
|
LOCAL: string;
|
|
567
573
|
DROP_AREA: string;
|
|
568
574
|
CAMERA: string;
|
|
575
|
+
VIDEO_CAMERA: string;
|
|
569
576
|
EXTERNAL: string;
|
|
570
577
|
API: string;
|
|
571
578
|
URL: string;
|
|
@@ -624,6 +631,7 @@ export const SimpleBtn: {
|
|
|
624
631
|
LOCAL: string;
|
|
625
632
|
DROP_AREA: string;
|
|
626
633
|
CAMERA: string;
|
|
634
|
+
VIDEO_CAMERA: string;
|
|
627
635
|
EXTERNAL: string;
|
|
628
636
|
API: string;
|
|
629
637
|
URL: string;
|
|
@@ -687,6 +695,7 @@ export const SourceBtn: {
|
|
|
687
695
|
LOCAL: string;
|
|
688
696
|
DROP_AREA: string;
|
|
689
697
|
CAMERA: string;
|
|
698
|
+
VIDEO_CAMERA: string;
|
|
690
699
|
EXTERNAL: string;
|
|
691
700
|
API: string;
|
|
692
701
|
URL: string;
|
|
@@ -798,6 +807,7 @@ export const UploadCtxProvider: {
|
|
|
798
807
|
LOCAL: string;
|
|
799
808
|
DROP_AREA: string;
|
|
800
809
|
CAMERA: string;
|
|
810
|
+
VIDEO_CAMERA: string;
|
|
801
811
|
EXTERNAL: string;
|
|
802
812
|
API: string;
|
|
803
813
|
URL: string;
|
|
@@ -846,6 +856,7 @@ export const UploadList: {
|
|
|
846
856
|
LOCAL: string;
|
|
847
857
|
DROP_AREA: string;
|
|
848
858
|
CAMERA: string;
|
|
859
|
+
VIDEO_CAMERA: string;
|
|
849
860
|
EXTERNAL: string;
|
|
850
861
|
API: string;
|
|
851
862
|
URL: string;
|
|
@@ -879,6 +890,7 @@ export namespace UploadSource {
|
|
|
879
890
|
export let LOCAL: string;
|
|
880
891
|
export let DROP_AREA: string;
|
|
881
892
|
export let CAMERA: string;
|
|
893
|
+
export let VIDEO_CAMERA: string;
|
|
882
894
|
export let EXTERNAL: string;
|
|
883
895
|
export let API: string;
|
|
884
896
|
export let URL: string;
|
|
@@ -922,6 +934,7 @@ export const UploaderBlock: {
|
|
|
922
934
|
LOCAL: string;
|
|
923
935
|
DROP_AREA: string;
|
|
924
936
|
CAMERA: string;
|
|
937
|
+
VIDEO_CAMERA: string;
|
|
925
938
|
EXTERNAL: string;
|
|
926
939
|
API: string;
|
|
927
940
|
URL: string;
|
|
@@ -970,6 +983,7 @@ export const UrlSource: {
|
|
|
970
983
|
LOCAL: string;
|
|
971
984
|
DROP_AREA: string;
|
|
972
985
|
CAMERA: string;
|
|
986
|
+
VIDEO_CAMERA: string;
|
|
973
987
|
EXTERNAL: string;
|
|
974
988
|
API: string;
|
|
975
989
|
URL: 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;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.ssr.d.ts","sourceRoot":"","sources":["index.ssr.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;EAcE;AACF;;;;;;;;;;;;;;;EAcE;AACF;;;;;EAIE;AACF;;;;;;EAKE;AACF;;;;;;;;EAgBE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2IE;AACF;;;;;;;;EAuCE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8CE;AACF;;;;;;;;EAuCE;AACF;;;;;;;EAsGE;AACF;;;;;;;EAaE;AACF;;;;;;;EAME;AACF;;;;;;;;;;;;;;;;EAeE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiEE;AACF;;;;;;;EAWE;AACF;;;;;;;EAWE;AACF;;;;;;;EASE;AACF;;;;;;EAKE;AACF;;;;;;;EAWE;AACF;;;;;;;EAME;AACF;;;;;;;EAWE;AACF;;;;;;;EA2IE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyEE;;;;;;;;;;;;;AAaF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmFE;AACF;;;;;;EAKE;AACF;;;;;;EAKE;AACF;;;;;;;EAME;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8CE;AACF;;;;;;;;EAWE;AACF;;;;;;EAwBE;AACF;;;;;;;EAUE;AACF;;;;;;;;EAWE;AACF,oCAAqC;AACrC,uCAAwC;AACxC;;;;;;;EAME;AACF;;;;;;;EASE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+CE;AACF;;;;;;;EAME;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyDE;AACF;;;;;;;EAeE;AACF;;;;;;EAKE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqDE;AACF;;;;;;EAKE;AACF;;;;;;EAKE;AACF;;;;;;;;;;;;;;;;EAeE;AACF;;;;;;;;;;;;EAWE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkEE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6FE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8CE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0EE;AACK,yCAAiC;AACjC,qCAA6B;AAC7B,6CAAqC;AACrC,oCAA4B"}
|
package/index.ssr.js
CHANGED
|
@@ -42,7 +42,11 @@ export const Block = class {
|
|
|
42
42
|
export const BtnUi = class {
|
|
43
43
|
static observedAttributes = ["text", "icon", "reverse", "theme"];
|
|
44
44
|
static template = `
|
|
45
|
-
<button
|
|
45
|
+
<button
|
|
46
|
+
type="button"
|
|
47
|
+
set="@role:aria-role; @aria-controls: aria-controls; @aria-label:title-prop"
|
|
48
|
+
l10n="@title:title-prop;"
|
|
49
|
+
>
|
|
46
50
|
<uc-icon set="className: iconCss; @name: icon; @hidden: !icon"></uc-icon>
|
|
47
51
|
<div class="uc-text">{{text}}</div>
|
|
48
52
|
</button>
|
|
@@ -71,7 +75,7 @@ export const CameraSource = class {
|
|
|
71
75
|
type="button"
|
|
72
76
|
class="uc-mini-btn uc-close-btn"
|
|
73
77
|
set="onclick: *closeModal"
|
|
74
|
-
l10n="@title:a11y-activity-header-button-close"
|
|
78
|
+
l10n="@title:a11y-activity-header-button-close;@aria-label:a11y-activity-header-button-close"
|
|
75
79
|
>
|
|
76
80
|
<uc-icon name="close"></uc-icon>
|
|
77
81
|
</button>
|
|
@@ -162,6 +166,7 @@ export const CameraSource = class {
|
|
|
162
166
|
LOCAL: "local",
|
|
163
167
|
DROP_AREA: "drop-area",
|
|
164
168
|
CAMERA: "camera",
|
|
169
|
+
VIDEO_CAMERA: "video-camera",
|
|
165
170
|
EXTERNAL: "external",
|
|
166
171
|
API: "js-api",
|
|
167
172
|
URL: "url",
|
|
@@ -248,6 +253,7 @@ export const CloudImageEditorActivity = class {
|
|
|
248
253
|
LOCAL: "local",
|
|
249
254
|
DROP_AREA: "drop-area",
|
|
250
255
|
CAMERA: "camera",
|
|
256
|
+
VIDEO_CAMERA: "video-camera",
|
|
251
257
|
EXTERNAL: "external",
|
|
252
258
|
API: "js-api",
|
|
253
259
|
URL: "url",
|
|
@@ -494,6 +500,7 @@ export const DropArea = class {
|
|
|
494
500
|
LOCAL: "local",
|
|
495
501
|
DROP_AREA: "drop-area",
|
|
496
502
|
CAMERA: "camera",
|
|
503
|
+
VIDEO_CAMERA: "video-camera",
|
|
497
504
|
EXTERNAL: "external",
|
|
498
505
|
API: "js-api",
|
|
499
506
|
URL: "url",
|
|
@@ -524,7 +531,7 @@ export const DropArea = class {
|
|
|
524
531
|
};
|
|
525
532
|
export const EditorCropButtonControl = class {
|
|
526
533
|
static template = `
|
|
527
|
-
<button type="button"
|
|
534
|
+
<button role="option" type="button" set="@aria-label:title-prop;" l10n="@title:title-prop;">
|
|
528
535
|
<uc-icon set="@name: icon;"></uc-icon>
|
|
529
536
|
<div class="uc-title" ref="title-el">{{title}}</div>
|
|
530
537
|
</button>
|
|
@@ -536,7 +543,7 @@ export const EditorCropButtonControl = class {
|
|
|
536
543
|
};
|
|
537
544
|
export const EditorFilterControl = class {
|
|
538
545
|
static template = `
|
|
539
|
-
<button type="button"
|
|
546
|
+
<button role="option" type="button" set="@aria-label:title-prop;" l10n="@title:title-prop;">
|
|
540
547
|
<uc-icon set="@name: icon;"></uc-icon>
|
|
541
548
|
<div class="uc-title" ref="title-el">{{title}}</div>
|
|
542
549
|
</button>
|
|
@@ -564,7 +571,7 @@ export const EditorImageFader = class {
|
|
|
564
571
|
};
|
|
565
572
|
export const EditorOperationControl = class {
|
|
566
573
|
static template = `
|
|
567
|
-
<button type="button"
|
|
574
|
+
<button role="option" type="button" set="@aria-label:title-prop;" l10n="@title:title-prop;">
|
|
568
575
|
<uc-icon set="@name: icon;"></uc-icon>
|
|
569
576
|
<div class="uc-title" ref="title-el">{{title}}</div>
|
|
570
577
|
</button>
|
|
@@ -740,7 +747,7 @@ export const ExternalSource = class {
|
|
|
740
747
|
type="button"
|
|
741
748
|
class="uc-mini-btn uc-close-btn"
|
|
742
749
|
set="onclick: *historyBack"
|
|
743
|
-
l10n="@title:a11y-activity-header-button-close"
|
|
750
|
+
l10n="@title:a11y-activity-header-button-close;@aria-label:a11y-activity-header-button-close"
|
|
744
751
|
>
|
|
745
752
|
<uc-icon name="close"></uc-icon>
|
|
746
753
|
</button>
|
|
@@ -777,6 +784,7 @@ export const ExternalSource = class {
|
|
|
777
784
|
LOCAL: "local",
|
|
778
785
|
DROP_AREA: "drop-area",
|
|
779
786
|
CAMERA: "camera",
|
|
787
|
+
VIDEO_CAMERA: "video-camera",
|
|
780
788
|
EXTERNAL: "external",
|
|
781
789
|
API: "js-api",
|
|
782
790
|
URL: "url",
|
|
@@ -826,15 +834,15 @@ export const FileItem = class {
|
|
|
826
834
|
<uc-icon set="@name: badgeIcon"></uc-icon>
|
|
827
835
|
</div>
|
|
828
836
|
</div>
|
|
829
|
-
<div aria-live="polite" class="uc-file-name-wrapper" set="@aria-label:ariaLabelStatusFile;">
|
|
830
|
-
<span class="uc-file-name"
|
|
837
|
+
<div aria-atomic="true" aria-live="polite" class="uc-file-name-wrapper" set="@aria-label:ariaLabelStatusFile;">
|
|
838
|
+
<span class="uc-file-name">{{itemName}}</span>
|
|
831
839
|
<span class="uc-file-error" set="@hidden: !errorText">{{errorText}}</span>
|
|
832
840
|
<span class="uc-file-hint" set="@hidden: !hint">{{hint}}</span>
|
|
833
841
|
</div>
|
|
834
842
|
<div class="uc-file-actions">
|
|
835
843
|
<button
|
|
836
844
|
type="button"
|
|
837
|
-
l10n="@title:file-item-edit-button"
|
|
845
|
+
l10n="@title:file-item-edit-button;@aria-label:file-item-edit-button"
|
|
838
846
|
class="uc-edit-btn uc-mini-btn"
|
|
839
847
|
set="onclick: onEdit; @hidden: !isEditable"
|
|
840
848
|
>
|
|
@@ -842,7 +850,7 @@ export const FileItem = class {
|
|
|
842
850
|
</button>
|
|
843
851
|
<button
|
|
844
852
|
type="button"
|
|
845
|
-
l10n="@title:file-item-remove-button"
|
|
853
|
+
l10n="@title:file-item-remove-button;@aria-label:file-item-remove-button"
|
|
846
854
|
class="uc-remove-btn uc-mini-btn"
|
|
847
855
|
set="onclick: onRemove;"
|
|
848
856
|
>
|
|
@@ -872,6 +880,7 @@ export const FileItem = class {
|
|
|
872
880
|
LOCAL: "local",
|
|
873
881
|
DROP_AREA: "drop-area",
|
|
874
882
|
CAMERA: "camera",
|
|
883
|
+
VIDEO_CAMERA: "video-camera",
|
|
875
884
|
EXTERNAL: "external",
|
|
876
885
|
API: "js-api",
|
|
877
886
|
URL: "url",
|
|
@@ -937,6 +946,7 @@ export const FormInput = class {
|
|
|
937
946
|
LOCAL: "local",
|
|
938
947
|
DROP_AREA: "drop-area",
|
|
939
948
|
CAMERA: "camera",
|
|
949
|
+
VIDEO_CAMERA: "video-camera",
|
|
940
950
|
EXTERNAL: "external",
|
|
941
951
|
API: "js-api",
|
|
942
952
|
URL: "url",
|
|
@@ -1027,7 +1037,7 @@ export const Modal = class {
|
|
|
1027
1037
|
static bindAttributes = () => {};
|
|
1028
1038
|
};
|
|
1029
1039
|
export const PACKAGE_NAME = `blocks`;
|
|
1030
|
-
export const PACKAGE_VERSION = `1.13.
|
|
1040
|
+
export const PACKAGE_VERSION = `1.13.2`;
|
|
1031
1041
|
export const PresenceToggle = class {
|
|
1032
1042
|
static template = `<slot></slot> `;
|
|
1033
1043
|
static reg = () => {};
|
|
@@ -1063,6 +1073,7 @@ export const ProgressBarCommon = class {
|
|
|
1063
1073
|
LOCAL: "local",
|
|
1064
1074
|
DROP_AREA: "drop-area",
|
|
1065
1075
|
CAMERA: "camera",
|
|
1076
|
+
VIDEO_CAMERA: "video-camera",
|
|
1066
1077
|
EXTERNAL: "external",
|
|
1067
1078
|
API: "js-api",
|
|
1068
1079
|
URL: "url",
|
|
@@ -1128,6 +1139,7 @@ export const SimpleBtn = class {
|
|
|
1128
1139
|
LOCAL: "local",
|
|
1129
1140
|
DROP_AREA: "drop-area",
|
|
1130
1141
|
CAMERA: "camera",
|
|
1142
|
+
VIDEO_CAMERA: "video-camera",
|
|
1131
1143
|
EXTERNAL: "external",
|
|
1132
1144
|
API: "js-api",
|
|
1133
1145
|
URL: "url",
|
|
@@ -1202,6 +1214,7 @@ export const SourceBtn = class {
|
|
|
1202
1214
|
LOCAL: "local",
|
|
1203
1215
|
DROP_AREA: "drop-area",
|
|
1204
1216
|
CAMERA: "camera",
|
|
1217
|
+
VIDEO_CAMERA: "video-camera",
|
|
1205
1218
|
EXTERNAL: "external",
|
|
1206
1219
|
API: "js-api",
|
|
1207
1220
|
URL: "url",
|
|
@@ -1308,6 +1321,7 @@ export const UploadCtxProvider = class {
|
|
|
1308
1321
|
LOCAL: "local",
|
|
1309
1322
|
DROP_AREA: "drop-area",
|
|
1310
1323
|
CAMERA: "camera",
|
|
1324
|
+
VIDEO_CAMERA: "video-camera",
|
|
1311
1325
|
EXTERNAL: "external",
|
|
1312
1326
|
API: "js-api",
|
|
1313
1327
|
URL: "url",
|
|
@@ -1345,7 +1359,7 @@ export const UploadList = class {
|
|
|
1345
1359
|
type="button"
|
|
1346
1360
|
class="uc-mini-btn uc-close-btn"
|
|
1347
1361
|
set="onclick: *closeModal"
|
|
1348
|
-
l10n="@title:a11y-activity-header-button-close"
|
|
1362
|
+
l10n="@title:a11y-activity-header-button-close;@aria-label:a11y-activity-header-button-close"
|
|
1349
1363
|
>
|
|
1350
1364
|
<uc-icon name="close"></uc-icon>
|
|
1351
1365
|
</button>
|
|
@@ -1401,6 +1415,7 @@ export const UploadList = class {
|
|
|
1401
1415
|
LOCAL: "local",
|
|
1402
1416
|
DROP_AREA: "drop-area",
|
|
1403
1417
|
CAMERA: "camera",
|
|
1418
|
+
VIDEO_CAMERA: "video-camera",
|
|
1404
1419
|
EXTERNAL: "external",
|
|
1405
1420
|
API: "js-api",
|
|
1406
1421
|
URL: "url",
|
|
@@ -1434,6 +1449,7 @@ export const UploadSource = {
|
|
|
1434
1449
|
LOCAL: "local",
|
|
1435
1450
|
DROP_AREA: "drop-area",
|
|
1436
1451
|
CAMERA: "camera",
|
|
1452
|
+
VIDEO_CAMERA: "video-camera",
|
|
1437
1453
|
EXTERNAL: "external",
|
|
1438
1454
|
API: "js-api",
|
|
1439
1455
|
URL: "url",
|
|
@@ -1466,6 +1482,7 @@ export const UploaderBlock = class {
|
|
|
1466
1482
|
LOCAL: "local",
|
|
1467
1483
|
DROP_AREA: "drop-area",
|
|
1468
1484
|
CAMERA: "camera",
|
|
1485
|
+
VIDEO_CAMERA: "video-camera",
|
|
1469
1486
|
EXTERNAL: "external",
|
|
1470
1487
|
API: "js-api",
|
|
1471
1488
|
URL: "url",
|
|
@@ -1498,7 +1515,7 @@ export const UploaderBlock = class {
|
|
|
1498
1515
|
export const UrlSource = class {
|
|
1499
1516
|
static template = `
|
|
1500
1517
|
<uc-activity-header>
|
|
1501
|
-
<button type="button" class="uc-mini-btn" set="onclick: *historyBack" l10n="@title:back">
|
|
1518
|
+
<button type="button" class="uc-mini-btn" set="onclick: *historyBack" l10n="@title:back;@aria-label:back">
|
|
1502
1519
|
<uc-icon name="back"></uc-icon>
|
|
1503
1520
|
</button>
|
|
1504
1521
|
<div>
|
|
@@ -1509,7 +1526,7 @@ export const UrlSource = class {
|
|
|
1509
1526
|
type="button"
|
|
1510
1527
|
class="uc-mini-btn uc-close-btn"
|
|
1511
1528
|
set="onclick: *closeModal"
|
|
1512
|
-
l10n="@title:a11y-activity-header-button-close"
|
|
1529
|
+
l10n="@title:a11y-activity-header-button-close;@aria-label:a11y-activity-header-button-close"
|
|
1513
1530
|
>
|
|
1514
1531
|
<uc-icon name="close"></uc-icon>
|
|
1515
1532
|
</button>
|
|
@@ -1540,6 +1557,7 @@ export const UrlSource = class {
|
|
|
1540
1557
|
LOCAL: "local",
|
|
1541
1558
|
DROP_AREA: "drop-area",
|
|
1542
1559
|
CAMERA: "camera",
|
|
1560
|
+
VIDEO_CAMERA: "video-camera",
|
|
1543
1561
|
EXTERNAL: "external",
|
|
1544
1562
|
API: "js-api",
|
|
1545
1563
|
URL: "url",
|
|
@@ -45,6 +45,7 @@ export default {
|
|
|
45
45
|
'src-type-local': 'From device',
|
|
46
46
|
'src-type-from-url': 'From link',
|
|
47
47
|
'src-type-camera': 'Camera',
|
|
48
|
+
'src-type-video-camera': 'Camera Video',
|
|
48
49
|
'src-type-draw': 'Draw',
|
|
49
50
|
'src-type-facebook': 'Facebook',
|
|
50
51
|
'src-type-dropbox': 'Dropbox',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uploadcare/file-uploader",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.3-alpha.0",
|
|
4
4
|
"description": "Building blocks for Uploadcare products integration",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web components",
|
|
@@ -97,32 +97,27 @@
|
|
|
97
97
|
"@babel/eslint-parser": "^7.23.3",
|
|
98
98
|
"@babel/preset-env": "^7.21.4",
|
|
99
99
|
"@esm-bundle/chai": "^4.3.4-fix.0",
|
|
100
|
-
"@happy-dom/global-registrator": "^
|
|
101
|
-
"@jam-do/jam-tools": "^0.0.4",
|
|
100
|
+
"@happy-dom/global-registrator": "^16.8.1",
|
|
102
101
|
"@total-typescript/ts-reset": "^0.5.1",
|
|
103
102
|
"@types/chai": "^4.3.4",
|
|
104
103
|
"@types/mocha": "^10.0.1",
|
|
105
104
|
"@types/node": "^18.15.11",
|
|
106
105
|
"@types/react": "^18.2.34",
|
|
107
|
-
"@web/
|
|
108
|
-
"@web/test-runner": "^0.15.3",
|
|
106
|
+
"@web/test-runner": "^0.19.0",
|
|
109
107
|
"esbuild": "^0.19.9",
|
|
110
108
|
"eslint": "^8.56.0",
|
|
111
109
|
"eslint-config-prettier": "^9.1.0",
|
|
112
110
|
"eslint-plugin-import": "^2.29.1",
|
|
113
|
-
"highlight.js": "^11.7.0",
|
|
114
111
|
"husky": "^8.0.3",
|
|
115
112
|
"lint-staged": "^13.2.1",
|
|
116
|
-
"marked": "^4.3.0",
|
|
117
113
|
"node-watch": "^0.7.3",
|
|
118
114
|
"npm-run-all": "^4.1.5",
|
|
119
115
|
"playwright": "^1.49.1",
|
|
120
116
|
"postcss": "^8.4.21",
|
|
121
117
|
"prettier": "^3.2.4",
|
|
122
118
|
"prettier-plugin-jsdoc": "1.3.0",
|
|
123
|
-
"puppeteer": "^19.8.5",
|
|
124
119
|
"rimraf": "^5.0.0",
|
|
125
|
-
"shipjs": "^0.
|
|
120
|
+
"shipjs": "^0.27.0",
|
|
126
121
|
"sinon": "^16.1.0",
|
|
127
122
|
"stylelint": "^15.4.0",
|
|
128
123
|
"stylelint-config-standard": "^32.0.0",
|
|
@@ -59,7 +59,7 @@ export class FileUploaderInline extends SolutionBlock {
|
|
|
59
59
|
FileUploaderInline.template = /* HTML */ `
|
|
60
60
|
<uc-start-from>
|
|
61
61
|
<uc-drop-area with-icon clickable></uc-drop-area>
|
|
62
|
-
<uc-source-list wrap></uc-source-list>
|
|
62
|
+
<uc-source-list role="list" wrap></uc-source-list>
|
|
63
63
|
<button
|
|
64
64
|
type="button"
|
|
65
65
|
l10n="start-from-cancel"
|
|
@@ -46,7 +46,7 @@ FileUploaderRegular.template = /* HTML */ `
|
|
|
46
46
|
<uc-modal strokes block-body-scrolling>
|
|
47
47
|
<uc-start-from>
|
|
48
48
|
<uc-drop-area with-icon clickable></uc-drop-area>
|
|
49
|
-
<uc-source-list wrap></uc-source-list>
|
|
49
|
+
<uc-source-list role="list" wrap></uc-source-list>
|
|
50
50
|
<button type="button" l10n="start-from-cancel" class="uc-secondary-btn" set="onclick: *historyBack"></button>
|
|
51
51
|
<uc-copyright></uc-copyright>
|
|
52
52
|
</uc-start-from>
|