@uploadcare/file-uploader 1.13.3-alpha.0 → 1.15.0-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/ActivityBlock.d.ts.map +1 -1
- package/abstract/ActivityBlock.js +10 -15
- package/abstract/Block.d.ts +6 -0
- package/abstract/Block.d.ts.map +1 -1
- package/abstract/Block.js +15 -0
- package/abstract/CTX.d.ts.map +1 -1
- package/abstract/CTX.js +3 -1
- package/abstract/ModalManager.d.ts +113 -0
- package/abstract/ModalManager.d.ts.map +1 -0
- package/abstract/ModalManager.js +220 -0
- package/abstract/UploaderBlock.d.ts +2 -1
- package/abstract/UploaderBlock.d.ts.map +1 -1
- package/abstract/UploaderBlock.js +1 -8
- package/abstract/UploaderPublicApi.d.ts.map +1 -1
- package/abstract/UploaderPublicApi.js +38 -9
- package/blocks/CameraSource/CameraSource.d.ts.map +1 -1
- package/blocks/CameraSource/CameraSource.js +1 -0
- package/blocks/CloudImageEditorActivity/CloudImageEditorActivity.d.ts.map +1 -1
- package/blocks/CloudImageEditorActivity/CloudImageEditorActivity.js +2 -0
- package/blocks/Config/Config.d.ts +1 -1
- package/blocks/Config/Config.d.ts.map +1 -1
- package/blocks/Config/initialConfig.d.ts.map +1 -1
- package/blocks/Config/initialConfig.js +3 -0
- package/blocks/Config/normalizeConfigValue.d.ts.map +1 -1
- package/blocks/Config/normalizeConfigValue.js +4 -0
- package/blocks/DropArea/DropArea.d.ts.map +1 -1
- package/blocks/DropArea/DropArea.js +2 -1
- package/blocks/ExternalSource/ExternalSource.d.ts.map +1 -1
- package/blocks/ExternalSource/ExternalSource.js +3 -1
- package/blocks/FileItem/FileItem.d.ts +2 -0
- package/blocks/FileItem/FileItem.d.ts.map +1 -1
- package/blocks/FileItem/FileItem.js +18 -3
- package/blocks/FileItem/file-item.css +60 -0
- package/blocks/Modal/Modal.d.ts.map +1 -1
- package/blocks/Modal/Modal.js +28 -17
- package/blocks/SourceBtn/SourceBtn.d.ts +5 -2
- package/blocks/SourceBtn/SourceBtn.d.ts.map +1 -1
- package/blocks/SourceBtn/SourceBtn.js +29 -15
- package/blocks/SourceList/SourceList.d.ts.map +1 -1
- package/blocks/SourceList/SourceList.js +17 -11
- package/blocks/StartFrom/StartFrom.js +1 -1
- package/blocks/UploadList/UploadList.d.ts.map +1 -1
- package/blocks/UploadList/UploadList.js +14 -1
- package/blocks/UploadList/upload-list.css +22 -0
- package/blocks/UrlSource/UrlSource.d.ts.map +1 -1
- package/blocks/UrlSource/UrlSource.js +1 -0
- package/blocks/themes/uc-basic/svg-sprite.d.ts +1 -1
- package/blocks/themes/uc-basic/svg-sprite.js +1 -1
- package/blocks/themes/uc-basic/theme.css +13 -0
- package/blocks/utils/UploadSource.d.ts +6 -1
- package/blocks/utils/UploadSource.d.ts.map +1 -1
- package/blocks/utils/UploadSource.js +7 -1
- package/blocks/utils/supportCapture.d.ts +2 -0
- package/blocks/utils/supportCapture.d.ts.map +1 -0
- package/blocks/utils/supportCapture.js +3 -0
- package/env.d.ts +1 -1
- package/env.js +1 -1
- package/index.ssr.d.ts +29 -15
- package/index.ssr.d.ts.map +1 -1
- package/index.ssr.js +45 -18
- package/locales/file-uploader/ar.d.ts +2 -0
- package/locales/file-uploader/ar.js +2 -0
- package/locales/file-uploader/az.d.ts +2 -0
- package/locales/file-uploader/az.js +2 -0
- package/locales/file-uploader/ca.d.ts +2 -0
- package/locales/file-uploader/ca.js +2 -0
- package/locales/file-uploader/cs.d.ts +2 -0
- package/locales/file-uploader/cs.js +2 -0
- package/locales/file-uploader/da.d.ts +2 -0
- package/locales/file-uploader/da.js +2 -0
- package/locales/file-uploader/de.d.ts +2 -0
- package/locales/file-uploader/de.js +2 -0
- package/locales/file-uploader/el.d.ts +2 -0
- package/locales/file-uploader/el.js +2 -0
- package/locales/file-uploader/en.d.ts +2 -1
- package/locales/file-uploader/en.js +2 -1
- package/locales/file-uploader/es.d.ts +2 -0
- package/locales/file-uploader/es.js +2 -0
- package/locales/file-uploader/et.d.ts +2 -0
- package/locales/file-uploader/et.js +2 -0
- package/locales/file-uploader/fi.d.ts +2 -0
- package/locales/file-uploader/fi.js +2 -0
- package/locales/file-uploader/fr.d.ts +2 -0
- package/locales/file-uploader/fr.js +2 -0
- package/locales/file-uploader/he.d.ts +2 -0
- package/locales/file-uploader/he.js +2 -0
- package/locales/file-uploader/hy.d.ts +2 -0
- package/locales/file-uploader/hy.js +2 -0
- package/locales/file-uploader/is.d.ts +2 -0
- package/locales/file-uploader/is.js +2 -0
- package/locales/file-uploader/it.d.ts +2 -0
- package/locales/file-uploader/it.js +2 -0
- package/locales/file-uploader/ja.d.ts +2 -0
- package/locales/file-uploader/ja.js +2 -0
- package/locales/file-uploader/ka.d.ts +2 -0
- package/locales/file-uploader/ka.js +2 -0
- package/locales/file-uploader/kk.d.ts +2 -0
- package/locales/file-uploader/kk.js +2 -0
- package/locales/file-uploader/ko.d.ts +2 -0
- package/locales/file-uploader/ko.js +2 -0
- package/locales/file-uploader/lv.d.ts +2 -0
- package/locales/file-uploader/lv.js +2 -0
- package/locales/file-uploader/nb.d.ts +2 -0
- package/locales/file-uploader/nb.js +2 -0
- package/locales/file-uploader/nl.d.ts +2 -0
- package/locales/file-uploader/nl.js +2 -0
- package/locales/file-uploader/pl.d.ts +2 -0
- package/locales/file-uploader/pl.js +2 -0
- package/locales/file-uploader/pt.d.ts +2 -0
- package/locales/file-uploader/pt.js +2 -0
- package/locales/file-uploader/ro.d.ts +2 -0
- package/locales/file-uploader/ro.js +2 -0
- package/locales/file-uploader/ru.d.ts +2 -0
- package/locales/file-uploader/ru.js +2 -0
- package/locales/file-uploader/sk.d.ts +2 -0
- package/locales/file-uploader/sk.js +2 -0
- package/locales/file-uploader/sr.d.ts +2 -0
- package/locales/file-uploader/sr.js +2 -0
- package/locales/file-uploader/sv.d.ts +2 -0
- package/locales/file-uploader/sv.js +2 -0
- package/locales/file-uploader/tr.d.ts +2 -0
- package/locales/file-uploader/tr.js +2 -0
- package/locales/file-uploader/uk.d.ts +2 -0
- package/locales/file-uploader/uk.js +2 -0
- package/locales/file-uploader/vi.d.ts +2 -0
- package/locales/file-uploader/vi.js +2 -0
- package/locales/file-uploader/zh-TW.d.ts +2 -0
- package/locales/file-uploader/zh-TW.js +2 -0
- package/locales/file-uploader/zh.d.ts +2 -0
- package/locales/file-uploader/zh.js +2 -0
- package/package.json +4 -2
- package/solutions/file-uploader/minimal/FileUploaderMinimal.d.ts.map +1 -1
- package/solutions/file-uploader/minimal/FileUploaderMinimal.js +23 -0
- package/solutions/file-uploader/minimal/index.css +20 -1
- package/solutions/file-uploader/minimal/index.d.ts +3 -0
- package/solutions/file-uploader/minimal/index.js +5 -0
- package/solutions/file-uploader/regular/FileUploaderRegular.d.ts +2 -2
- package/solutions/file-uploader/regular/FileUploaderRegular.d.ts.map +1 -1
- package/solutions/file-uploader/regular/FileUploaderRegular.js +16 -1
- package/types/exported.d.ts +4 -0
- package/web/file-uploader.iife.min.js +4 -4
- package/web/file-uploader.min.js +4 -4
- package/web/uc-basic.min.css +1 -1
- package/web/uc-cloud-image-editor.min.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 +4 -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/blocks/utils/checkDevice.d.ts +0 -9
- package/blocks/utils/checkDevice.d.ts.map +0 -1
- package/blocks/utils/checkDevice.js +0 -34
|
@@ -55,6 +55,8 @@ export default {
|
|
|
55
55
|
'src-type-onedrive': 'Onedrive',
|
|
56
56
|
'src-type-huddle': 'Huddle',
|
|
57
57
|
'src-type-other': '기타',
|
|
58
|
+
'src-type-mobile-video-camera': '비디오',
|
|
59
|
+
'src-type-mobile-photo-camera': '사진',
|
|
58
60
|
'caption-from-url': '링크에서 가져오기',
|
|
59
61
|
'caption-camera': '카메라',
|
|
60
62
|
'caption-draw': '그리기',
|
|
@@ -57,6 +57,8 @@ declare const _default: {
|
|
|
57
57
|
'src-type-onedrive': string;
|
|
58
58
|
'src-type-huddle': string;
|
|
59
59
|
'src-type-other': string;
|
|
60
|
+
'src-type-mobile-video-camera': string;
|
|
61
|
+
'src-type-mobile-photo-camera': string;
|
|
60
62
|
'caption-from-url': string;
|
|
61
63
|
'caption-camera': string;
|
|
62
64
|
'caption-draw': string;
|
|
@@ -57,6 +57,8 @@ export default {
|
|
|
57
57
|
'src-type-onedrive': 'Onedrive',
|
|
58
58
|
'src-type-huddle': 'Huddle',
|
|
59
59
|
'src-type-other': 'Cits',
|
|
60
|
+
'src-type-mobile-video-camera': 'Video',
|
|
61
|
+
'src-type-mobile-photo-camera': 'Foto',
|
|
60
62
|
'caption-from-url': 'Importēt no saites',
|
|
61
63
|
'caption-camera': 'Kamera',
|
|
62
64
|
'caption-draw': 'Zīmēt',
|
|
@@ -55,6 +55,8 @@ declare const _default: {
|
|
|
55
55
|
'src-type-onedrive': string;
|
|
56
56
|
'src-type-huddle': string;
|
|
57
57
|
'src-type-other': string;
|
|
58
|
+
'src-type-mobile-video-camera': string;
|
|
59
|
+
'src-type-mobile-photo-camera': string;
|
|
58
60
|
'caption-from-url': string;
|
|
59
61
|
'caption-camera': string;
|
|
60
62
|
'caption-draw': string;
|
|
@@ -55,6 +55,8 @@ export default {
|
|
|
55
55
|
'src-type-onedrive': 'Onedrive',
|
|
56
56
|
'src-type-huddle': 'Huddle',
|
|
57
57
|
'src-type-other': 'Annet',
|
|
58
|
+
'src-type-mobile-video-camera': 'Video',
|
|
59
|
+
'src-type-mobile-photo-camera': 'Foto',
|
|
58
60
|
'caption-from-url': 'Importer fra lenke',
|
|
59
61
|
'caption-camera': 'Kamera',
|
|
60
62
|
'caption-draw': 'Tegn',
|
|
@@ -55,6 +55,8 @@ declare const _default: {
|
|
|
55
55
|
'src-type-onedrive': string;
|
|
56
56
|
'src-type-huddle': string;
|
|
57
57
|
'src-type-other': string;
|
|
58
|
+
'src-type-mobile-video-camera': string;
|
|
59
|
+
'src-type-mobile-photo-camera': string;
|
|
58
60
|
'caption-from-url': string;
|
|
59
61
|
'caption-camera': string;
|
|
60
62
|
'caption-draw': string;
|
|
@@ -55,6 +55,8 @@ export default {
|
|
|
55
55
|
'src-type-onedrive': 'Onedrive',
|
|
56
56
|
'src-type-huddle': 'Huddle',
|
|
57
57
|
'src-type-other': 'Andere',
|
|
58
|
+
'src-type-mobile-video-camera': 'Video',
|
|
59
|
+
'src-type-mobile-photo-camera': 'Foto',
|
|
58
60
|
'caption-from-url': 'Importeren van link',
|
|
59
61
|
'caption-camera': 'Camera',
|
|
60
62
|
'caption-draw': 'Tekenen',
|
|
@@ -59,6 +59,8 @@ declare const _default: {
|
|
|
59
59
|
'src-type-onedrive': string;
|
|
60
60
|
'src-type-huddle': string;
|
|
61
61
|
'src-type-other': string;
|
|
62
|
+
'src-type-mobile-video-camera': string;
|
|
63
|
+
'src-type-mobile-photo-camera': string;
|
|
62
64
|
'caption-from-url': string;
|
|
63
65
|
'caption-camera': string;
|
|
64
66
|
'caption-draw': string;
|
|
@@ -59,6 +59,8 @@ export default {
|
|
|
59
59
|
'src-type-onedrive': 'Onedrive',
|
|
60
60
|
'src-type-huddle': 'Huddle',
|
|
61
61
|
'src-type-other': 'Inne',
|
|
62
|
+
'src-type-mobile-video-camera': 'Wideo',
|
|
63
|
+
'src-type-mobile-photo-camera': 'Zdjęcie',
|
|
62
64
|
'caption-from-url': 'Import z linku',
|
|
63
65
|
'caption-camera': 'Aparat',
|
|
64
66
|
'caption-draw': 'Rysuj',
|
|
@@ -57,6 +57,8 @@ declare const _default: {
|
|
|
57
57
|
'src-type-onedrive': string;
|
|
58
58
|
'src-type-huddle': string;
|
|
59
59
|
'src-type-other': string;
|
|
60
|
+
'src-type-mobile-video-camera': string;
|
|
61
|
+
'src-type-mobile-photo-camera': string;
|
|
60
62
|
'caption-from-url': string;
|
|
61
63
|
'caption-camera': string;
|
|
62
64
|
'caption-draw': string;
|
|
@@ -57,6 +57,8 @@ export default {
|
|
|
57
57
|
'src-type-onedrive': 'Onedrive',
|
|
58
58
|
'src-type-huddle': 'Huddle',
|
|
59
59
|
'src-type-other': 'Outro',
|
|
60
|
+
'src-type-mobile-video-camera': 'Vídeo',
|
|
61
|
+
'src-type-mobile-photo-camera': 'Foto',
|
|
60
62
|
'caption-from-url': 'Importar do link',
|
|
61
63
|
'caption-camera': 'Câmera',
|
|
62
64
|
'caption-draw': 'Desenhar',
|
|
@@ -57,6 +57,8 @@ declare const _default: {
|
|
|
57
57
|
'src-type-onedrive': string;
|
|
58
58
|
'src-type-huddle': string;
|
|
59
59
|
'src-type-other': string;
|
|
60
|
+
'src-type-mobile-video-camera': string;
|
|
61
|
+
'src-type-mobile-photo-camera': string;
|
|
60
62
|
'caption-from-url': string;
|
|
61
63
|
'caption-camera': string;
|
|
62
64
|
'caption-draw': string;
|
|
@@ -57,6 +57,8 @@ export default {
|
|
|
57
57
|
'src-type-onedrive': 'Onedrive',
|
|
58
58
|
'src-type-huddle': 'Huddle',
|
|
59
59
|
'src-type-other': 'Altele',
|
|
60
|
+
'src-type-mobile-video-camera': 'Video',
|
|
61
|
+
'src-type-mobile-photo-camera': 'Foto',
|
|
60
62
|
'caption-from-url': 'Import din link',
|
|
61
63
|
'caption-camera': 'Cameră',
|
|
62
64
|
'caption-draw': 'Desenați',
|
|
@@ -59,6 +59,8 @@ declare const _default: {
|
|
|
59
59
|
'src-type-onedrive': string;
|
|
60
60
|
'src-type-huddle': string;
|
|
61
61
|
'src-type-other': string;
|
|
62
|
+
'src-type-mobile-video-camera': string;
|
|
63
|
+
'src-type-mobile-photo-camera': string;
|
|
62
64
|
'caption-from-url': string;
|
|
63
65
|
'caption-camera': string;
|
|
64
66
|
'caption-draw': string;
|
|
@@ -59,6 +59,8 @@ export default {
|
|
|
59
59
|
'src-type-onedrive': 'Onedrive',
|
|
60
60
|
'src-type-huddle': 'Huddle',
|
|
61
61
|
'src-type-other': 'Другое',
|
|
62
|
+
'src-type-mobile-video-camera': 'Видео',
|
|
63
|
+
'src-type-mobile-photo-camera': 'Фото',
|
|
62
64
|
'caption-from-url': 'Импорт из ссылки',
|
|
63
65
|
'caption-camera': 'Камера',
|
|
64
66
|
'caption-draw': 'Рисование',
|
|
@@ -59,6 +59,8 @@ declare const _default: {
|
|
|
59
59
|
'src-type-onedrive': string;
|
|
60
60
|
'src-type-huddle': string;
|
|
61
61
|
'src-type-other': string;
|
|
62
|
+
'src-type-mobile-video-camera': string;
|
|
63
|
+
'src-type-mobile-photo-camera': string;
|
|
62
64
|
'caption-from-url': string;
|
|
63
65
|
'caption-camera': string;
|
|
64
66
|
'caption-draw': string;
|
|
@@ -59,6 +59,8 @@ export default {
|
|
|
59
59
|
'src-type-onedrive': 'Onedrive',
|
|
60
60
|
'src-type-huddle': 'Huddle',
|
|
61
61
|
'src-type-other': 'Iné',
|
|
62
|
+
'src-type-mobile-video-camera': 'Video',
|
|
63
|
+
'src-type-mobile-photo-camera': 'Foto',
|
|
62
64
|
'caption-from-url': 'Import z odkazu',
|
|
63
65
|
'caption-camera': 'Kamera',
|
|
64
66
|
'caption-draw': 'Kresliť',
|
|
@@ -57,6 +57,8 @@ declare const _default: {
|
|
|
57
57
|
'src-type-onedrive': string;
|
|
58
58
|
'src-type-huddle': string;
|
|
59
59
|
'src-type-other': string;
|
|
60
|
+
'src-type-mobile-video-camera': string;
|
|
61
|
+
'src-type-mobile-photo-camera': string;
|
|
60
62
|
'caption-from-url': string;
|
|
61
63
|
'caption-camera': string;
|
|
62
64
|
'caption-draw': string;
|
|
@@ -57,6 +57,8 @@ export default {
|
|
|
57
57
|
'src-type-onedrive': 'Onedrive',
|
|
58
58
|
'src-type-huddle': 'Huddle',
|
|
59
59
|
'src-type-other': 'Остало',
|
|
60
|
+
'src-type-mobile-video-camera': 'Видео',
|
|
61
|
+
'src-type-mobile-photo-camera': 'Фотографија',
|
|
60
62
|
'caption-from-url': 'Увези са везе',
|
|
61
63
|
'caption-camera': 'Камера',
|
|
62
64
|
'caption-draw': 'Цртај',
|
|
@@ -55,6 +55,8 @@ declare const _default: {
|
|
|
55
55
|
'src-type-onedrive': string;
|
|
56
56
|
'src-type-huddle': string;
|
|
57
57
|
'src-type-other': string;
|
|
58
|
+
'src-type-mobile-video-camera': string;
|
|
59
|
+
'src-type-mobile-photo-camera': string;
|
|
58
60
|
'caption-from-url': string;
|
|
59
61
|
'caption-camera': string;
|
|
60
62
|
'caption-draw': string;
|
|
@@ -55,6 +55,8 @@ export default {
|
|
|
55
55
|
'src-type-onedrive': 'Onedrive',
|
|
56
56
|
'src-type-huddle': 'Huddle',
|
|
57
57
|
'src-type-other': 'Annat',
|
|
58
|
+
'src-type-mobile-video-camera': 'Video',
|
|
59
|
+
'src-type-mobile-photo-camera': 'Foto',
|
|
58
60
|
'caption-from-url': 'Importera från länk',
|
|
59
61
|
'caption-camera': 'Kamera',
|
|
60
62
|
'caption-draw': 'Rita',
|
|
@@ -55,6 +55,8 @@ declare const _default: {
|
|
|
55
55
|
'src-type-onedrive': string;
|
|
56
56
|
'src-type-huddle': string;
|
|
57
57
|
'src-type-other': string;
|
|
58
|
+
'src-type-mobile-video-camera': string;
|
|
59
|
+
'src-type-mobile-photo-camera': string;
|
|
58
60
|
'caption-from-url': string;
|
|
59
61
|
'caption-camera': string;
|
|
60
62
|
'caption-draw': string;
|
|
@@ -55,6 +55,8 @@ export default {
|
|
|
55
55
|
'src-type-onedrive': 'Onedrive',
|
|
56
56
|
'src-type-huddle': 'Huddle',
|
|
57
57
|
'src-type-other': 'Diğer',
|
|
58
|
+
'src-type-mobile-video-camera': 'Video',
|
|
59
|
+
'src-type-mobile-photo-camera': 'Fotoğraf',
|
|
58
60
|
'caption-from-url': 'Bağlantıdan İçe Aktar',
|
|
59
61
|
'caption-camera': 'Kamera',
|
|
60
62
|
'caption-draw': 'Çiz',
|
|
@@ -59,6 +59,8 @@ declare const _default: {
|
|
|
59
59
|
'src-type-onedrive': string;
|
|
60
60
|
'src-type-huddle': string;
|
|
61
61
|
'src-type-other': string;
|
|
62
|
+
'src-type-mobile-video-camera': string;
|
|
63
|
+
'src-type-mobile-photo-camera': string;
|
|
62
64
|
'caption-from-url': string;
|
|
63
65
|
'caption-camera': string;
|
|
64
66
|
'caption-draw': string;
|
|
@@ -59,6 +59,8 @@ export default {
|
|
|
59
59
|
'src-type-onedrive': 'Onedrive',
|
|
60
60
|
'src-type-huddle': 'Huddle',
|
|
61
61
|
'src-type-other': 'Інше',
|
|
62
|
+
'src-type-mobile-video-camera': 'Відео',
|
|
63
|
+
'src-type-mobile-photo-camera': 'Фото',
|
|
62
64
|
'caption-from-url': 'Імпортувати з посилання',
|
|
63
65
|
'caption-camera': 'Камера',
|
|
64
66
|
'caption-draw': 'Малювати',
|
|
@@ -55,6 +55,8 @@ declare const _default: {
|
|
|
55
55
|
'src-type-onedrive': string;
|
|
56
56
|
'src-type-huddle': string;
|
|
57
57
|
'src-type-other': string;
|
|
58
|
+
'src-type-mobile-video-camera': string;
|
|
59
|
+
'src-type-mobile-photo-camera': string;
|
|
58
60
|
'caption-from-url': string;
|
|
59
61
|
'caption-camera': string;
|
|
60
62
|
'caption-draw': string;
|
|
@@ -55,6 +55,8 @@ export default {
|
|
|
55
55
|
'src-type-onedrive': 'Onedrive',
|
|
56
56
|
'src-type-huddle': 'Huddle',
|
|
57
57
|
'src-type-other': 'Khác',
|
|
58
|
+
'src-type-mobile-video-camera': 'Video',
|
|
59
|
+
'src-type-mobile-photo-camera': 'Ảnh',
|
|
58
60
|
'caption-from-url': 'Nhập khẩu từ liên kết',
|
|
59
61
|
'caption-camera': 'Máy ảnh',
|
|
60
62
|
'caption-draw': 'Vẽ',
|
|
@@ -55,6 +55,8 @@ declare const _default: {
|
|
|
55
55
|
'src-type-onedrive': string;
|
|
56
56
|
'src-type-huddle': string;
|
|
57
57
|
'src-type-other': string;
|
|
58
|
+
'src-type-mobile-video-camera': string;
|
|
59
|
+
'src-type-mobile-photo-camera': string;
|
|
58
60
|
'caption-from-url': string;
|
|
59
61
|
'caption-camera': string;
|
|
60
62
|
'caption-draw': string;
|
|
@@ -55,6 +55,8 @@ export default {
|
|
|
55
55
|
'src-type-onedrive': 'Onedrive',
|
|
56
56
|
'src-type-huddle': 'Huddle',
|
|
57
57
|
'src-type-other': '其他',
|
|
58
|
+
'src-type-mobile-video-camera': '影片',
|
|
59
|
+
'src-type-mobile-photo-camera': '照片',
|
|
58
60
|
'caption-from-url': '從連結匯入',
|
|
59
61
|
'caption-camera': '相機',
|
|
60
62
|
'caption-draw': '繪圖',
|
|
@@ -55,6 +55,8 @@ declare const _default: {
|
|
|
55
55
|
'src-type-onedrive': string;
|
|
56
56
|
'src-type-huddle': string;
|
|
57
57
|
'src-type-other': string;
|
|
58
|
+
'src-type-mobile-video-camera': string;
|
|
59
|
+
'src-type-mobile-photo-camera': string;
|
|
58
60
|
'caption-from-url': string;
|
|
59
61
|
'caption-camera': string;
|
|
60
62
|
'caption-draw': string;
|
|
@@ -55,6 +55,8 @@ export default {
|
|
|
55
55
|
'src-type-onedrive': 'Onedrive',
|
|
56
56
|
'src-type-huddle': 'Huddle',
|
|
57
57
|
'src-type-other': '其他',
|
|
58
|
+
'src-type-mobile-video-camera': '视频',
|
|
59
|
+
'src-type-mobile-photo-camera': '照片',
|
|
58
60
|
'caption-from-url': '从链接导入',
|
|
59
61
|
'caption-camera': '相机',
|
|
60
62
|
'caption-draw': '绘制',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uploadcare/file-uploader",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.15.0-alpha.0",
|
|
4
4
|
"description": "Building blocks for Uploadcare products integration",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web components",
|
|
@@ -35,7 +35,9 @@
|
|
|
35
35
|
"MIT"
|
|
36
36
|
],
|
|
37
37
|
"type": "module",
|
|
38
|
-
"sideEffects": [
|
|
38
|
+
"sideEffects": [
|
|
39
|
+
"*.css"
|
|
40
|
+
],
|
|
39
41
|
"module": "./index.js",
|
|
40
42
|
"exports": {
|
|
41
43
|
".": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileUploaderMinimal.d.ts","sourceRoot":"","sources":["FileUploaderMinimal.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FileUploaderMinimal.d.ts","sourceRoot":"","sources":["FileUploaderMinimal.js"],"names":[],"mappings":"AAIA;CAoDC;;;;8BAvD6B,oCAAoC"}
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import { ActivityBlock } from '../../../abstract/ActivityBlock.js';
|
|
2
2
|
import { SolutionBlock } from '../../../abstract/SolutionBlock.js';
|
|
3
|
+
import { ModalEvents } from '../../../abstract/ModalManager.js';
|
|
3
4
|
|
|
4
5
|
export class FileUploaderMinimal extends SolutionBlock {
|
|
5
6
|
static styleAttrs = [...super.styleAttrs, 'uc-file-uploader-minimal'];
|
|
6
7
|
|
|
8
|
+
constructor() {
|
|
9
|
+
super();
|
|
10
|
+
|
|
11
|
+
this.init$ = {
|
|
12
|
+
...this.init$,
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
|
|
7
16
|
initCallback() {
|
|
8
17
|
super.initCallback();
|
|
9
18
|
|
|
@@ -34,6 +43,16 @@ export class FileUploaderMinimal extends SolutionBlock {
|
|
|
34
43
|
this.cfg.confirmUpload = false;
|
|
35
44
|
}
|
|
36
45
|
});
|
|
46
|
+
|
|
47
|
+
this.subConfigValue('displayUploadList', (mode) => {
|
|
48
|
+
this.setAttribute('mode', mode);
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
this.modalManager.subscribe(ModalEvents.CLOSE, (e) => {
|
|
52
|
+
if (e.id === ActivityBlock.activities.CLOUD_IMG_EDIT) {
|
|
53
|
+
this.$['*currentActivity'] = ActivityBlock.activities.UPLOAD_LIST;
|
|
54
|
+
}
|
|
55
|
+
});
|
|
37
56
|
}
|
|
38
57
|
}
|
|
39
58
|
|
|
@@ -43,4 +62,8 @@ FileUploaderMinimal.template = /* HTML */ `
|
|
|
43
62
|
<uc-copyright></uc-copyright>
|
|
44
63
|
</uc-start-from>
|
|
45
64
|
<uc-upload-list ref="uBlock"></uc-upload-list>
|
|
65
|
+
|
|
66
|
+
<uc-modal id="cloud-image-edit" strokes block-body-scrolling>
|
|
67
|
+
<uc-cloud-image-editor-activity></uc-cloud-image-editor-activity>
|
|
68
|
+
</uc-modal>
|
|
46
69
|
`;
|
|
@@ -14,6 +14,9 @@
|
|
|
14
14
|
@import url('../../../blocks/Icon/icon.css');
|
|
15
15
|
@import url('../../../blocks/ProgressBar/progress-bar.css');
|
|
16
16
|
@import url('../../../blocks/Copyright/copyright.css');
|
|
17
|
+
@import url('../../../blocks/Modal/modal.css');
|
|
18
|
+
@import url('../../../blocks/CloudImageEditor/index.css');
|
|
19
|
+
@import url('../../../blocks/CloudImageEditorActivity/index.css');
|
|
17
20
|
|
|
18
21
|
/* ICONS: */
|
|
19
22
|
:where([uc-file-uploader-minimal]) {
|
|
@@ -112,7 +115,7 @@
|
|
|
112
115
|
}
|
|
113
116
|
|
|
114
117
|
[uc-file-uploader-minimal] uc-file-item .uc-edit-btn {
|
|
115
|
-
display: none;
|
|
118
|
+
/* display: none; */
|
|
116
119
|
}
|
|
117
120
|
|
|
118
121
|
[uc-file-uploader-minimal] uc-file-item uc-progress-bar {
|
|
@@ -139,3 +142,19 @@
|
|
|
139
142
|
[uc-file-uploader-minimal] uc-copyright .uc-credits {
|
|
140
143
|
position: static;
|
|
141
144
|
}
|
|
145
|
+
|
|
146
|
+
[uc-file-uploader-minimal][mode='grid'] uc-upload-list .uc-toolbar .uc-add-more-btn {
|
|
147
|
+
display: none;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
[uc-file-uploader-minimal][mode='grid'] uc-upload-list .uc-files .uc-add-more-btn {
|
|
151
|
+
display: flex;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
[uc-file-uploader-minimal][mode='grid'] uc-upload-list .uc-files .uc-add-more-btn > span {
|
|
155
|
+
display: none;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
[uc-file-uploader-minimal][mode='grid'] uc-upload-list .uc-files .uc-add-more-btn > uc-icon {
|
|
159
|
+
display: flex;
|
|
160
|
+
}
|
|
@@ -11,4 +11,7 @@ export { Copyright } from "../../../blocks/Copyright/Copyright.js";
|
|
|
11
11
|
export { FormInput } from "../../../blocks/FormInput/FormInput.js";
|
|
12
12
|
export { Config } from "../../../blocks/Config/Config.js";
|
|
13
13
|
export { UploadCtxProvider } from "../../../blocks/UploadCtxProvider/UploadCtxProvider.js";
|
|
14
|
+
export { Modal } from "../../../blocks/Modal/Modal.js";
|
|
15
|
+
export * from "../../../blocks/CloudImageEditor/index.js";
|
|
16
|
+
export { CloudImageEditorActivity } from "../../../blocks/CloudImageEditorActivity/CloudImageEditorActivity.js";
|
|
14
17
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -11,3 +11,8 @@ export { Copyright } from '../../../blocks/Copyright/Copyright.js';
|
|
|
11
11
|
export { FormInput } from '../../../blocks/FormInput/FormInput.js';
|
|
12
12
|
export { Config } from '../../../blocks/Config/Config.js';
|
|
13
13
|
export { UploadCtxProvider } from '../../../blocks/UploadCtxProvider/UploadCtxProvider.js';
|
|
14
|
+
|
|
15
|
+
export { Modal } from '../../../blocks/Modal/Modal.js';
|
|
16
|
+
|
|
17
|
+
export * from '../../../blocks/CloudImageEditor/index.js';
|
|
18
|
+
export { CloudImageEditorActivity } from '../../../blocks/CloudImageEditorActivity/CloudImageEditorActivity.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export class FileUploaderRegular extends SolutionBlock {
|
|
2
2
|
init$: {
|
|
3
3
|
isHidden: boolean;
|
|
4
|
-
'*commonProgress': number;
|
|
4
|
+
/** @param {unknown} value */ '*commonProgress': number;
|
|
5
5
|
'*uploadList': never[];
|
|
6
6
|
'*uploadQueue': import("@uploadcare/upload-client").Queue;
|
|
7
7
|
'*collectionErrors': any[];
|
|
8
8
|
'*collectionState': import("./index.js").OutputCollectionState<import("./index.js").OutputCollectionStatus, "maybe-has-group"> | null;
|
|
9
|
-
'*groupInfo': import("@uploadcare/upload-client").UploadcareGroup | null;
|
|
9
|
+
'*groupInfo': import("@uploadcare/upload-client").UploadcareGroup | null;
|
|
10
10
|
'*uploadTrigger': Set<string>;
|
|
11
11
|
'*secureUploadsManager': import("../../../abstract/SecureUploadsManager.js").SecureUploadsManager | null;
|
|
12
12
|
'*currentActivity': null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileUploaderRegular.d.ts","sourceRoot":"","sources":["FileUploaderRegular.js"],"names":[],"mappings":"AAKA;IAMI
|
|
1
|
+
{"version":3,"file":"FileUploaderRegular.d.ts","sourceRoot":"","sources":["FileUploaderRegular.js"],"names":[],"mappings":"AAKA;IAMI;;QAWE,6BAA6B;;;;;;;;;;;;;MAR9B;IAoBG,eAAe;IACf,yBAAmC;CAK1C;;;;8BAvC6B,oCAAoC"}
|
|
@@ -43,17 +43,32 @@ export class FileUploaderRegular extends SolutionBlock {
|
|
|
43
43
|
FileUploaderRegular.template = /* HTML */ `
|
|
44
44
|
<uc-simple-btn set="@hidden: isHidden"></uc-simple-btn>
|
|
45
45
|
|
|
46
|
-
<uc-modal strokes block-body-scrolling>
|
|
46
|
+
<uc-modal id="start-from" strokes block-body-scrolling>
|
|
47
47
|
<uc-start-from>
|
|
48
48
|
<uc-drop-area with-icon clickable></uc-drop-area>
|
|
49
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>
|
|
53
|
+
</uc-modal>
|
|
54
|
+
|
|
55
|
+
<uc-modal id="upload-list" strokes block-body-scrolling>
|
|
53
56
|
<uc-upload-list></uc-upload-list>
|
|
57
|
+
</uc-modal>
|
|
58
|
+
|
|
59
|
+
<uc-modal id="camera" strokes block-body-scrolling>
|
|
54
60
|
<uc-camera-source></uc-camera-source>
|
|
61
|
+
</uc-modal>
|
|
62
|
+
|
|
63
|
+
<uc-modal id="url" strokes block-body-scrolling>
|
|
55
64
|
<uc-url-source></uc-url-source>
|
|
65
|
+
</uc-modal>
|
|
66
|
+
|
|
67
|
+
<uc-modal id="external" strokes block-body-scrolling>
|
|
56
68
|
<uc-external-source></uc-external-source>
|
|
69
|
+
</uc-modal>
|
|
70
|
+
|
|
71
|
+
<uc-modal id="cloud-image-edit" strokes block-body-scrolling>
|
|
57
72
|
<uc-cloud-image-editor-activity></uc-cloud-image-editor-activity>
|
|
58
73
|
</uc-modal>
|
|
59
74
|
`;
|
package/types/exported.d.ts
CHANGED
|
@@ -278,6 +278,10 @@ export type ConfigType = {
|
|
|
278
278
|
* the following properties from MediaRecorderOptions
|
|
279
279
|
*/
|
|
280
280
|
mediaRecorderOptions: MediaRecorderOptions | null;
|
|
281
|
+
|
|
282
|
+
displayUploadList: string;
|
|
283
|
+
|
|
284
|
+
enableFileName: boolean;
|
|
281
285
|
};
|
|
282
286
|
export type ConfigComplexType = Pick<ConfigType, (typeof complexConfigKeys)[number]>;
|
|
283
287
|
export type ConfigPlainType = Omit<ConfigType, keyof ConfigComplexType>;
|