@uploadcare/file-uploader 1.25.0-alpha.2 → 1.25.0-alpha.4
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 -79
- package/dist/env.js +4 -33
- package/dist/index.css +5 -2664
- package/dist/index.d.ts +933 -927
- package/dist/index.js +6 -13594
- package/dist/index.layered.css +4 -2720
- package/dist/index.ssr.js +34 -29
- 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 +12 -11
- package/types/jsx.d.ts +75 -48
- package/web/file-uploader.iife.min.d.ts +935 -929
- package/web/file-uploader.iife.min.js +6 -31
- package/web/file-uploader.iife.min.js.LEGAL.txt +71 -0
- package/web/file-uploader.min.d.ts +935 -929
- package/web/file-uploader.min.js +5 -29
- 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 +489 -494
- package/web/uc-cloud-image-editor.min.js +5 -29
- 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 +935 -929
- package/web/uc-file-uploader-inline.min.js +5 -29
- 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 +935 -929
- package/web/uc-file-uploader-minimal.min.js +5 -29
- 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 +935 -929
- package/web/uc-file-uploader-regular.min.js +5 -29
- package/web/uc-file-uploader-regular.min.js.LEGAL.txt +71 -0
- package/web/uc-img.min.d.ts +28 -38
- package/web/uc-img.min.js +5 -25
- package/web/uc-img.min.js.LEGAL.txt +24 -0
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
|
}
|