@uploadcare/file-uploader 1.9.0-alpha.0 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/abstract/ActivityBlock.d.ts +0 -1
- package/abstract/ActivityBlock.d.ts.map +1 -1
- package/abstract/ActivityBlock.js +0 -1
- package/blocks/CameraSource/CameraSource.js +7 -2
- package/blocks/ExternalSource/ExternalSource.js +7 -2
- package/blocks/FileItem/FileItem.d.ts.map +1 -1
- package/blocks/FileItem/FileItem.js +4 -7
- package/blocks/Icon/Icon.d.ts +0 -1
- package/blocks/Icon/Icon.d.ts.map +1 -1
- package/blocks/Icon/Icon.js +0 -3
- package/blocks/UrlSource/UrlSource.js +7 -2
- package/blocks/themes/uc-basic/index.css +0 -1
- package/blocks/themes/uc-basic/svg-sprite.d.ts +1 -1
- package/blocks/themes/uc-basic/svg-sprite.js +1 -1
- package/env.d.ts +1 -1
- package/env.js +1 -1
- package/index.d.ts +0 -1
- package/index.js +0 -1
- package/index.ssr.d.ts +1 -68
- package/index.ssr.d.ts.map +1 -1
- package/index.ssr.js +23 -75
- package/package.json +3 -6
- package/solutions/file-uploader/regular/FileUploaderRegular.js +0 -1
- package/web/file-uploader.iife.min.js +29 -392
- package/web/file-uploader.min.js +29 -392
- 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 +29 -392
- 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 +29 -392
- package/web/uc-img.min.js +1 -1
- package/blocks/LocalEditorImage/LocalEditorImage.d.ts +0 -22
- package/blocks/LocalEditorImage/LocalEditorImage.d.ts.map +0 -1
- package/blocks/LocalEditorImage/LocalEditorImage.js +0 -139
- package/blocks/LocalEditorImage/localEditorImage.css +0 -19
package/index.ssr.d.ts
CHANGED
|
@@ -8,7 +8,6 @@ export const ActivityBlock: {
|
|
|
8
8
|
URL: string;
|
|
9
9
|
CLOUD_IMG_EDIT: string;
|
|
10
10
|
EXTERNAL: string;
|
|
11
|
-
LOCAL_IMAGE_EDITOR: string;
|
|
12
11
|
};
|
|
13
12
|
reg: () => void;
|
|
14
13
|
styleAttrs: any[];
|
|
@@ -25,7 +24,6 @@ export const ActivityHeader: {
|
|
|
25
24
|
URL: string;
|
|
26
25
|
CLOUD_IMG_EDIT: string;
|
|
27
26
|
EXTERNAL: string;
|
|
28
|
-
LOCAL_IMAGE_EDITOR: string;
|
|
29
27
|
};
|
|
30
28
|
reg: () => void;
|
|
31
29
|
styleAttrs: any[];
|
|
@@ -98,7 +96,6 @@ export const CameraSource: {
|
|
|
98
96
|
URL: string;
|
|
99
97
|
CLOUD_IMG_EDIT: string;
|
|
100
98
|
EXTERNAL: string;
|
|
101
|
-
LOCAL_IMAGE_EDITOR: string;
|
|
102
99
|
};
|
|
103
100
|
reg: () => void;
|
|
104
101
|
styleAttrs: any[];
|
|
@@ -157,7 +154,6 @@ export const CloudImageEditorActivity: {
|
|
|
157
154
|
URL: string;
|
|
158
155
|
CLOUD_IMG_EDIT: string;
|
|
159
156
|
EXTERNAL: string;
|
|
160
|
-
LOCAL_IMAGE_EDITOR: string;
|
|
161
157
|
};
|
|
162
158
|
reg: () => void;
|
|
163
159
|
styleAttrs: any[];
|
|
@@ -260,7 +256,6 @@ export const DropArea: {
|
|
|
260
256
|
URL: string;
|
|
261
257
|
CLOUD_IMG_EDIT: string;
|
|
262
258
|
EXTERNAL: string;
|
|
263
|
-
LOCAL_IMAGE_EDITOR: string;
|
|
264
259
|
};
|
|
265
260
|
reg: () => void;
|
|
266
261
|
is: string;
|
|
@@ -373,7 +368,6 @@ export const ExternalSource: {
|
|
|
373
368
|
URL: string;
|
|
374
369
|
CLOUD_IMG_EDIT: string;
|
|
375
370
|
EXTERNAL: string;
|
|
376
|
-
LOCAL_IMAGE_EDITOR: string;
|
|
377
371
|
};
|
|
378
372
|
reg: () => void;
|
|
379
373
|
styleAttrs: any[];
|
|
@@ -438,7 +432,6 @@ export const FileItem: {
|
|
|
438
432
|
URL: string;
|
|
439
433
|
CLOUD_IMG_EDIT: string;
|
|
440
434
|
EXTERNAL: string;
|
|
441
|
-
LOCAL_IMAGE_EDITOR: string;
|
|
442
435
|
};
|
|
443
436
|
reg: () => void;
|
|
444
437
|
styleAttrs: any[];
|
|
@@ -510,7 +503,6 @@ export const FormInput: {
|
|
|
510
503
|
URL: string;
|
|
511
504
|
CLOUD_IMG_EDIT: string;
|
|
512
505
|
EXTERNAL: string;
|
|
513
|
-
LOCAL_IMAGE_EDITOR: string;
|
|
514
506
|
};
|
|
515
507
|
reg: () => void;
|
|
516
508
|
styleAttrs: any[];
|
|
@@ -541,57 +533,6 @@ export const LineLoaderUi: {
|
|
|
541
533
|
is: string;
|
|
542
534
|
bindAttributes: () => void;
|
|
543
535
|
};
|
|
544
|
-
export const LocalEditorImage: {
|
|
545
|
-
new (): {};
|
|
546
|
-
styleAttrs: any[];
|
|
547
|
-
template: string;
|
|
548
|
-
extSrcList: {
|
|
549
|
-
FACEBOOK: string;
|
|
550
|
-
DROPBOX: string;
|
|
551
|
-
GDRIVE: string;
|
|
552
|
-
GPHOTOS: string;
|
|
553
|
-
INSTAGRAM: string;
|
|
554
|
-
FLICKR: string;
|
|
555
|
-
VK: string;
|
|
556
|
-
EVERNOTE: string;
|
|
557
|
-
BOX: string;
|
|
558
|
-
ONEDRIVE: string;
|
|
559
|
-
HUDDLE: string;
|
|
560
|
-
};
|
|
561
|
-
sourceTypes: {
|
|
562
|
-
LOCAL: string;
|
|
563
|
-
DROP_AREA: string;
|
|
564
|
-
CAMERA: string;
|
|
565
|
-
EXTERNAL: string;
|
|
566
|
-
API: string;
|
|
567
|
-
URL: string;
|
|
568
|
-
DRAW: string;
|
|
569
|
-
FACEBOOK: string;
|
|
570
|
-
DROPBOX: string;
|
|
571
|
-
GDRIVE: string;
|
|
572
|
-
GPHOTOS: string;
|
|
573
|
-
INSTAGRAM: string;
|
|
574
|
-
FLICKR: string;
|
|
575
|
-
VK: string;
|
|
576
|
-
EVERNOTE: string;
|
|
577
|
-
BOX: string;
|
|
578
|
-
ONEDRIVE: string;
|
|
579
|
-
HUDDLE: string;
|
|
580
|
-
};
|
|
581
|
-
activities: {
|
|
582
|
-
START_FROM: string;
|
|
583
|
-
CAMERA: string;
|
|
584
|
-
DRAW: string;
|
|
585
|
-
UPLOAD_LIST: string;
|
|
586
|
-
URL: string;
|
|
587
|
-
CLOUD_IMG_EDIT: string;
|
|
588
|
-
EXTERNAL: string;
|
|
589
|
-
LOCAL_IMAGE_EDITOR: string;
|
|
590
|
-
};
|
|
591
|
-
reg: () => void;
|
|
592
|
-
is: string;
|
|
593
|
-
bindAttributes: () => void;
|
|
594
|
-
};
|
|
595
536
|
export const Modal: {
|
|
596
537
|
new (): {};
|
|
597
538
|
styleAttrs: any[];
|
|
@@ -602,7 +543,7 @@ export const Modal: {
|
|
|
602
543
|
bindAttributes: () => void;
|
|
603
544
|
};
|
|
604
545
|
export const PACKAGE_NAME: "blocks";
|
|
605
|
-
export const PACKAGE_VERSION: "1.
|
|
546
|
+
export const PACKAGE_VERSION: "1.9.0";
|
|
606
547
|
export const PresenceToggle: {
|
|
607
548
|
new (): {};
|
|
608
549
|
template: string;
|
|
@@ -663,7 +604,6 @@ export const ProgressBarCommon: {
|
|
|
663
604
|
URL: string;
|
|
664
605
|
CLOUD_IMG_EDIT: string;
|
|
665
606
|
EXTERNAL: string;
|
|
666
|
-
LOCAL_IMAGE_EDITOR: string;
|
|
667
607
|
};
|
|
668
608
|
reg: () => void;
|
|
669
609
|
styleAttrs: any[];
|
|
@@ -724,7 +664,6 @@ export const SimpleBtn: {
|
|
|
724
664
|
URL: string;
|
|
725
665
|
CLOUD_IMG_EDIT: string;
|
|
726
666
|
EXTERNAL: string;
|
|
727
|
-
LOCAL_IMAGE_EDITOR: string;
|
|
728
667
|
};
|
|
729
668
|
reg: () => void;
|
|
730
669
|
is: string;
|
|
@@ -790,7 +729,6 @@ export const SourceBtn: {
|
|
|
790
729
|
URL: string;
|
|
791
730
|
CLOUD_IMG_EDIT: string;
|
|
792
731
|
EXTERNAL: string;
|
|
793
|
-
LOCAL_IMAGE_EDITOR: string;
|
|
794
732
|
};
|
|
795
733
|
reg: () => void;
|
|
796
734
|
styleAttrs: any[];
|
|
@@ -815,7 +753,6 @@ export const StartFrom: {
|
|
|
815
753
|
URL: string;
|
|
816
754
|
CLOUD_IMG_EDIT: string;
|
|
817
755
|
EXTERNAL: string;
|
|
818
|
-
LOCAL_IMAGE_EDITOR: string;
|
|
819
756
|
};
|
|
820
757
|
reg: () => void;
|
|
821
758
|
styleAttrs: any[];
|
|
@@ -898,7 +835,6 @@ export const UploadCtxProvider: {
|
|
|
898
835
|
URL: string;
|
|
899
836
|
CLOUD_IMG_EDIT: string;
|
|
900
837
|
EXTERNAL: string;
|
|
901
|
-
LOCAL_IMAGE_EDITOR: string;
|
|
902
838
|
};
|
|
903
839
|
reg: () => void;
|
|
904
840
|
styleAttrs: any[];
|
|
@@ -949,7 +885,6 @@ export const UploadList: {
|
|
|
949
885
|
URL: string;
|
|
950
886
|
CLOUD_IMG_EDIT: string;
|
|
951
887
|
EXTERNAL: string;
|
|
952
|
-
LOCAL_IMAGE_EDITOR: string;
|
|
953
888
|
};
|
|
954
889
|
reg: () => void;
|
|
955
890
|
styleAttrs: any[];
|
|
@@ -1030,7 +965,6 @@ export const UploaderBlock: {
|
|
|
1030
965
|
URL: string;
|
|
1031
966
|
CLOUD_IMG_EDIT: string;
|
|
1032
967
|
EXTERNAL: string;
|
|
1033
|
-
LOCAL_IMAGE_EDITOR: string;
|
|
1034
968
|
};
|
|
1035
969
|
reg: () => void;
|
|
1036
970
|
styleAttrs: any[];
|
|
@@ -1081,7 +1015,6 @@ export const UrlSource: {
|
|
|
1081
1015
|
URL: string;
|
|
1082
1016
|
CLOUD_IMG_EDIT: string;
|
|
1083
1017
|
EXTERNAL: string;
|
|
1084
|
-
LOCAL_IMAGE_EDITOR: string;
|
|
1085
1018
|
};
|
|
1086
1019
|
reg: () => void;
|
|
1087
1020
|
styleAttrs: any[];
|
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
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0FE;AACF;;;;;;;;EAuCE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+CE;AACF;;;;;;;;EAuCE;AACF;;;;;;;EA0FE;AACF;;;;;;;EAaE;AACF;;;;;;;EAME;AACF;;;;;;;;;;;;;;;;EAeE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkEE;AACF;;;;;;;EAWE;AACF;;;;;;;EAWE;AACF;;;;;;;EASE;AACF;;;;;;EAKE;AACF;;;;;;;EAWE;AACF;;;;;;;EAME;AACF;;;;;;;EAWE;AACF;;;;;;;EA2IE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgFE;;;;;;;;;;;;;;AAcF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmFE;AACF;;;;;;EAKE;AACF;;;;;;EAKE;AACF;;;;;;;EAME;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+CE;AACF;;;;;;;;EAWE;AACF;;;;;;EAwBE;AACF;;;;;;;EAUE;AACF;;;;;;;;EAWE;AACF,oCAAqC;AACrC,sCAAuC;AACvC;;;;;;;EAME;AACF;;;;;;;EAME;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgDE;AACF;;;;;;;EAME;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0DE;AACF;;;;;;;EAeE;AACF;;;;;;EAKE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsDE;AACF;;;;;;EAKE;AACF;;;;;;;;;;;;;;;;EAeE;AACF;;;;;;;;;;;;EAWE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmEE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8FE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+CE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2EE;AACK,yCAAiC;AACjC,qCAA6B;AAC7B,6CAAqC;AACrC,oCAA4B"}
|
package/index.ssr.js
CHANGED
|
@@ -7,7 +7,6 @@ export const ActivityBlock = class {
|
|
|
7
7
|
URL: "url",
|
|
8
8
|
CLOUD_IMG_EDIT: "cloud-image-edit",
|
|
9
9
|
EXTERNAL: "external",
|
|
10
|
-
LOCAL_IMAGE_EDITOR: "local-image-editor",
|
|
11
10
|
};
|
|
12
11
|
static reg = () => {};
|
|
13
12
|
static styleAttrs = [];
|
|
@@ -23,7 +22,6 @@ export const ActivityHeader = class {
|
|
|
23
22
|
URL: "url",
|
|
24
23
|
CLOUD_IMG_EDIT: "cloud-image-edit",
|
|
25
24
|
EXTERNAL: "external",
|
|
26
|
-
LOCAL_IMAGE_EDITOR: "local-image-editor",
|
|
27
25
|
};
|
|
28
26
|
static reg = () => {};
|
|
29
27
|
static styleAttrs = [];
|
|
@@ -57,7 +55,7 @@ export const BtnUi = class {
|
|
|
57
55
|
export const CameraSource = class {
|
|
58
56
|
static template = `
|
|
59
57
|
<uc-activity-header>
|
|
60
|
-
<button type="button" class="uc-mini-btn" set="onclick: *historyBack">
|
|
58
|
+
<button type="button" class="uc-mini-btn" set="onclick: *historyBack" l10n="@title:back">
|
|
61
59
|
<uc-icon name="back"></uc-icon>
|
|
62
60
|
</button>
|
|
63
61
|
<div set="@hidden: !cameraSelectHidden">
|
|
@@ -69,7 +67,12 @@ export const CameraSource = class {
|
|
|
69
67
|
set="$.options: cameraSelectOptions; @hidden: cameraSelectHidden; onchange: onCameraSelectChange"
|
|
70
68
|
>
|
|
71
69
|
</uc-select>
|
|
72
|
-
<button
|
|
70
|
+
<button
|
|
71
|
+
type="button"
|
|
72
|
+
class="uc-mini-btn uc-close-btn"
|
|
73
|
+
set="onclick: *closeModal"
|
|
74
|
+
l10n="@title:a11y-activity-header-button-close"
|
|
75
|
+
>
|
|
73
76
|
<uc-icon name="close"></uc-icon>
|
|
74
77
|
</button>
|
|
75
78
|
</uc-activity-header>
|
|
@@ -134,7 +137,6 @@ export const CameraSource = class {
|
|
|
134
137
|
URL: "url",
|
|
135
138
|
CLOUD_IMG_EDIT: "cloud-image-edit",
|
|
136
139
|
EXTERNAL: "external",
|
|
137
|
-
LOCAL_IMAGE_EDITOR: "local-image-editor",
|
|
138
140
|
};
|
|
139
141
|
static reg = () => {};
|
|
140
142
|
static styleAttrs = [];
|
|
@@ -223,7 +225,6 @@ export const CloudImageEditorActivity = class {
|
|
|
223
225
|
URL: "url",
|
|
224
226
|
CLOUD_IMG_EDIT: "cloud-image-edit",
|
|
225
227
|
EXTERNAL: "external",
|
|
226
|
-
LOCAL_IMAGE_EDITOR: "local-image-editor",
|
|
227
228
|
};
|
|
228
229
|
static reg = () => {};
|
|
229
230
|
static styleAttrs = [];
|
|
@@ -460,7 +461,6 @@ export const DropArea = class {
|
|
|
460
461
|
URL: "url",
|
|
461
462
|
CLOUD_IMG_EDIT: "cloud-image-edit",
|
|
462
463
|
EXTERNAL: "external",
|
|
463
|
-
LOCAL_IMAGE_EDITOR: "local-image-editor",
|
|
464
464
|
};
|
|
465
465
|
static reg = () => {};
|
|
466
466
|
static is = `sym-1`;
|
|
@@ -680,14 +680,19 @@ export const EditorToolbar = class {
|
|
|
680
680
|
export const ExternalSource = class {
|
|
681
681
|
static template = `
|
|
682
682
|
<uc-activity-header>
|
|
683
|
-
<button type="button" class="uc-mini-btn" set="onclick: *historyBack">
|
|
683
|
+
<button type="button" class="uc-mini-btn" set="onclick: *historyBack" l10n="@title:back">
|
|
684
684
|
<uc-icon name="back"></uc-icon>
|
|
685
685
|
</button>
|
|
686
686
|
<div>
|
|
687
687
|
<uc-icon set="@name: activityIcon"></uc-icon>
|
|
688
688
|
<span>{{activityCaption}}</span>
|
|
689
689
|
</div>
|
|
690
|
-
<button
|
|
690
|
+
<button
|
|
691
|
+
type="button"
|
|
692
|
+
class="uc-mini-btn uc-close-btn"
|
|
693
|
+
set="onclick: *historyBack"
|
|
694
|
+
l10n="@title:a11y-activity-header-button-close"
|
|
695
|
+
>
|
|
691
696
|
<uc-icon name="close"></uc-icon>
|
|
692
697
|
</button>
|
|
693
698
|
</uc-activity-header>
|
|
@@ -747,7 +752,6 @@ export const ExternalSource = class {
|
|
|
747
752
|
URL: "url",
|
|
748
753
|
CLOUD_IMG_EDIT: "cloud-image-edit",
|
|
749
754
|
EXTERNAL: "external",
|
|
750
|
-
LOCAL_IMAGE_EDITOR: "local-image-editor",
|
|
751
755
|
};
|
|
752
756
|
static reg = () => {};
|
|
753
757
|
static styleAttrs = [];
|
|
@@ -845,7 +849,6 @@ export const FileItem = class {
|
|
|
845
849
|
URL: "url",
|
|
846
850
|
CLOUD_IMG_EDIT: "cloud-image-edit",
|
|
847
851
|
EXTERNAL: "external",
|
|
848
|
-
LOCAL_IMAGE_EDITOR: "local-image-editor",
|
|
849
852
|
};
|
|
850
853
|
static reg = () => {};
|
|
851
854
|
static styleAttrs = [];
|
|
@@ -913,7 +916,6 @@ export const FormInput = class {
|
|
|
913
916
|
URL: "url",
|
|
914
917
|
CLOUD_IMG_EDIT: "cloud-image-edit",
|
|
915
918
|
EXTERNAL: "external",
|
|
916
|
-
LOCAL_IMAGE_EDITOR: "local-image-editor",
|
|
917
919
|
};
|
|
918
920
|
static reg = () => {};
|
|
919
921
|
static styleAttrs = [];
|
|
@@ -923,11 +925,10 @@ export const FormInput = class {
|
|
|
923
925
|
export const Icon = class {
|
|
924
926
|
static template = `
|
|
925
927
|
<svg ref="svg" xmlns="http://www.w3.org/2000/svg">
|
|
926
|
-
<title>{{title}}</title>
|
|
927
928
|
<use set="@href: href;"></use>
|
|
928
929
|
</svg>
|
|
929
930
|
`;
|
|
930
|
-
static observedAttributes = ["name"
|
|
931
|
+
static observedAttributes = ["name"];
|
|
931
932
|
static reg = () => {};
|
|
932
933
|
static styleAttrs = [];
|
|
933
934
|
static is = `sym-1`;
|
|
@@ -969,56 +970,6 @@ export const LineLoaderUi = class {
|
|
|
969
970
|
static is = `sym-1`;
|
|
970
971
|
static bindAttributes = () => {};
|
|
971
972
|
};
|
|
972
|
-
export const LocalEditorImage = class {
|
|
973
|
-
static styleAttrs = [];
|
|
974
|
-
static template = `<div id="tui-image-editor-container"></div>`;
|
|
975
|
-
static extSrcList = {
|
|
976
|
-
FACEBOOK: "facebook",
|
|
977
|
-
DROPBOX: "dropbox",
|
|
978
|
-
GDRIVE: "gdrive",
|
|
979
|
-
GPHOTOS: "gphotos",
|
|
980
|
-
INSTAGRAM: "instagram",
|
|
981
|
-
FLICKR: "flickr",
|
|
982
|
-
VK: "vk",
|
|
983
|
-
EVERNOTE: "evernote",
|
|
984
|
-
BOX: "box",
|
|
985
|
-
ONEDRIVE: "onedrive",
|
|
986
|
-
HUDDLE: "huddle",
|
|
987
|
-
};
|
|
988
|
-
static sourceTypes = {
|
|
989
|
-
LOCAL: "local",
|
|
990
|
-
DROP_AREA: "drop-area",
|
|
991
|
-
CAMERA: "camera",
|
|
992
|
-
EXTERNAL: "external",
|
|
993
|
-
API: "js-api",
|
|
994
|
-
URL: "url",
|
|
995
|
-
DRAW: "draw",
|
|
996
|
-
FACEBOOK: "facebook",
|
|
997
|
-
DROPBOX: "dropbox",
|
|
998
|
-
GDRIVE: "gdrive",
|
|
999
|
-
GPHOTOS: "gphotos",
|
|
1000
|
-
INSTAGRAM: "instagram",
|
|
1001
|
-
FLICKR: "flickr",
|
|
1002
|
-
VK: "vk",
|
|
1003
|
-
EVERNOTE: "evernote",
|
|
1004
|
-
BOX: "box",
|
|
1005
|
-
ONEDRIVE: "onedrive",
|
|
1006
|
-
HUDDLE: "huddle",
|
|
1007
|
-
};
|
|
1008
|
-
static activities = {
|
|
1009
|
-
START_FROM: "start-from",
|
|
1010
|
-
CAMERA: "camera",
|
|
1011
|
-
DRAW: "draw",
|
|
1012
|
-
UPLOAD_LIST: "upload-list",
|
|
1013
|
-
URL: "url",
|
|
1014
|
-
CLOUD_IMG_EDIT: "cloud-image-edit",
|
|
1015
|
-
EXTERNAL: "external",
|
|
1016
|
-
LOCAL_IMAGE_EDITOR: "local-image-editor",
|
|
1017
|
-
};
|
|
1018
|
-
static reg = () => {};
|
|
1019
|
-
static is = `sym-1`;
|
|
1020
|
-
static bindAttributes = () => {};
|
|
1021
|
-
};
|
|
1022
973
|
export const Modal = class {
|
|
1023
974
|
static styleAttrs = [];
|
|
1024
975
|
static StateConsumerScope = `modal`;
|
|
@@ -1032,7 +983,7 @@ export const Modal = class {
|
|
|
1032
983
|
static bindAttributes = () => {};
|
|
1033
984
|
};
|
|
1034
985
|
export const PACKAGE_NAME = `blocks`;
|
|
1035
|
-
export const PACKAGE_VERSION = `1.
|
|
986
|
+
export const PACKAGE_VERSION = `1.9.0`;
|
|
1036
987
|
export const PresenceToggle = class {
|
|
1037
988
|
static template = `<slot></slot> `;
|
|
1038
989
|
static reg = () => {};
|
|
@@ -1090,7 +1041,6 @@ export const ProgressBarCommon = class {
|
|
|
1090
1041
|
URL: "url",
|
|
1091
1042
|
CLOUD_IMG_EDIT: "cloud-image-edit",
|
|
1092
1043
|
EXTERNAL: "external",
|
|
1093
|
-
LOCAL_IMAGE_EDITOR: "local-image-editor",
|
|
1094
1044
|
};
|
|
1095
1045
|
static reg = () => {};
|
|
1096
1046
|
static styleAttrs = [];
|
|
@@ -1158,7 +1108,6 @@ export const SimpleBtn = class {
|
|
|
1158
1108
|
URL: "url",
|
|
1159
1109
|
CLOUD_IMG_EDIT: "cloud-image-edit",
|
|
1160
1110
|
EXTERNAL: "external",
|
|
1161
|
-
LOCAL_IMAGE_EDITOR: "local-image-editor",
|
|
1162
1111
|
};
|
|
1163
1112
|
static reg = () => {};
|
|
1164
1113
|
static is = `sym-1`;
|
|
@@ -1235,7 +1184,6 @@ export const SourceBtn = class {
|
|
|
1235
1184
|
URL: "url",
|
|
1236
1185
|
CLOUD_IMG_EDIT: "cloud-image-edit",
|
|
1237
1186
|
EXTERNAL: "external",
|
|
1238
|
-
LOCAL_IMAGE_EDITOR: "local-image-editor",
|
|
1239
1187
|
};
|
|
1240
1188
|
static reg = () => {};
|
|
1241
1189
|
static styleAttrs = [];
|
|
@@ -1258,7 +1206,6 @@ export const StartFrom = class {
|
|
|
1258
1206
|
URL: "url",
|
|
1259
1207
|
CLOUD_IMG_EDIT: "cloud-image-edit",
|
|
1260
1208
|
EXTERNAL: "external",
|
|
1261
|
-
LOCAL_IMAGE_EDITOR: "local-image-editor",
|
|
1262
1209
|
};
|
|
1263
1210
|
static reg = () => {};
|
|
1264
1211
|
static styleAttrs = [];
|
|
@@ -1339,7 +1286,6 @@ export const UploadCtxProvider = class {
|
|
|
1339
1286
|
URL: "url",
|
|
1340
1287
|
CLOUD_IMG_EDIT: "cloud-image-edit",
|
|
1341
1288
|
EXTERNAL: "external",
|
|
1342
|
-
LOCAL_IMAGE_EDITOR: "local-image-editor",
|
|
1343
1289
|
};
|
|
1344
1290
|
static reg = () => {};
|
|
1345
1291
|
static styleAttrs = [];
|
|
@@ -1435,7 +1381,6 @@ export const UploadList = class {
|
|
|
1435
1381
|
URL: "url",
|
|
1436
1382
|
CLOUD_IMG_EDIT: "cloud-image-edit",
|
|
1437
1383
|
EXTERNAL: "external",
|
|
1438
|
-
LOCAL_IMAGE_EDITOR: "local-image-editor",
|
|
1439
1384
|
};
|
|
1440
1385
|
static reg = () => {};
|
|
1441
1386
|
static styleAttrs = [];
|
|
@@ -1504,7 +1449,6 @@ export const UploaderBlock = class {
|
|
|
1504
1449
|
URL: "url",
|
|
1505
1450
|
CLOUD_IMG_EDIT: "cloud-image-edit",
|
|
1506
1451
|
EXTERNAL: "external",
|
|
1507
|
-
LOCAL_IMAGE_EDITOR: "local-image-editor",
|
|
1508
1452
|
};
|
|
1509
1453
|
static reg = () => {};
|
|
1510
1454
|
static styleAttrs = [];
|
|
@@ -1514,14 +1458,19 @@ export const UploaderBlock = class {
|
|
|
1514
1458
|
export const UrlSource = class {
|
|
1515
1459
|
static template = `
|
|
1516
1460
|
<uc-activity-header>
|
|
1517
|
-
<button type="button" class="uc-mini-btn" set="onclick: *historyBack">
|
|
1461
|
+
<button type="button" class="uc-mini-btn" set="onclick: *historyBack" l10n="@title:back">
|
|
1518
1462
|
<uc-icon name="back"></uc-icon>
|
|
1519
1463
|
</button>
|
|
1520
1464
|
<div>
|
|
1521
1465
|
<uc-icon name="url"></uc-icon>
|
|
1522
1466
|
<span l10n="caption-from-url"></span>
|
|
1523
1467
|
</div>
|
|
1524
|
-
<button
|
|
1468
|
+
<button
|
|
1469
|
+
type="button"
|
|
1470
|
+
class="uc-mini-btn uc-close-btn"
|
|
1471
|
+
set="onclick: *closeModal"
|
|
1472
|
+
l10n="@title:a11y-activity-header-button-close"
|
|
1473
|
+
>
|
|
1525
1474
|
<uc-icon name="close"></uc-icon>
|
|
1526
1475
|
</button>
|
|
1527
1476
|
</uc-activity-header>
|
|
@@ -1576,7 +1525,6 @@ export const UrlSource = class {
|
|
|
1576
1525
|
URL: "url",
|
|
1577
1526
|
CLOUD_IMG_EDIT: "cloud-image-edit",
|
|
1578
1527
|
EXTERNAL: "external",
|
|
1579
|
-
LOCAL_IMAGE_EDITOR: "local-image-editor",
|
|
1580
1528
|
};
|
|
1581
1529
|
static reg = () => {};
|
|
1582
1530
|
static styleAttrs = [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uploadcare/file-uploader",
|
|
3
|
-
"version": "1.9.0
|
|
3
|
+
"version": "1.9.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
|
".": {
|
|
@@ -140,7 +138,6 @@
|
|
|
140
138
|
"@symbiotejs/symbiote": "^1.11.7",
|
|
141
139
|
"@uploadcare/image-shrink": "^6.14.1",
|
|
142
140
|
"@uploadcare/upload-client": "^6.14.1",
|
|
143
|
-
"keyux": "^0.7.1"
|
|
144
|
-
"tui-image-editor": "^3.15.3"
|
|
141
|
+
"keyux": "^0.7.1"
|
|
145
142
|
}
|
|
146
143
|
}
|
|
@@ -55,7 +55,6 @@ FileUploaderRegular.template = /* HTML */ `
|
|
|
55
55
|
<uc-url-source></uc-url-source>
|
|
56
56
|
<uc-external-source></uc-external-source>
|
|
57
57
|
<uc-cloud-image-editor-activity></uc-cloud-image-editor-activity>
|
|
58
|
-
<uc-local-editor-image></uc-local-editor-image>
|
|
59
58
|
</uc-modal>
|
|
60
59
|
`;
|
|
61
60
|
|