@uploadcare/file-uploader 0.50.1 → 1.1.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/README.md +16 -16
- package/abstract/Block.d.ts.map +1 -1
- package/abstract/Block.js +4 -2
- package/abstract/SolutionBlock.js +2 -2
- package/abstract/connectBlocksFrom.d.ts +1 -1
- package/abstract/connectBlocksFrom.js +4 -4
- package/abstract/registerBlocks.d.ts.map +1 -1
- package/abstract/registerBlocks.js +3 -2
- package/blocks/ActivityHeader/activity-header.css +2 -2
- package/blocks/CameraSource/CameraSource.js +8 -8
- package/blocks/CameraSource/camera-source.css +14 -14
- package/blocks/CloudImageEditor/src/CloudImageEditorBlock.js +1 -1
- package/blocks/CloudImageEditor/src/EditorButtonControl.js +1 -1
- package/blocks/CloudImageEditor/src/EditorFilterControl.js +1 -1
- package/blocks/CloudImageEditor/src/EditorImageCropper.js +1 -1
- package/blocks/CloudImageEditor/src/EditorSlider.js +2 -2
- package/blocks/CloudImageEditor/src/EditorToolbar.js +20 -20
- package/blocks/CloudImageEditor/src/css/common.css +142 -142
- package/blocks/CloudImageEditor/src/css/icons.css +2 -2
- package/blocks/CloudImageEditor/src/elements/button/{LrBtnUi.d.ts → BtnUi.d.ts} +3 -3
- package/blocks/CloudImageEditor/src/elements/button/BtnUi.d.ts.map +1 -0
- package/blocks/CloudImageEditor/src/elements/button/{LrBtnUi.js → BtnUi.js} +4 -4
- package/blocks/CloudImageEditor/src/index.d.ts +1 -1
- package/blocks/CloudImageEditor/src/index.js +1 -1
- package/blocks/CloudImageEditor/src/template.js +8 -8
- package/blocks/CloudImageEditor/src/util.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/util.js +2 -0
- package/blocks/CloudImageEditorActivity/index.css +2 -2
- package/blocks/Config/Config.d.ts +1 -1
- package/blocks/Config/Config.js +7 -7
- package/blocks/Config/config.css +1 -1
- package/blocks/Copyright/copyright.css +4 -4
- package/blocks/DropArea/DropArea.d.ts +1 -1
- package/blocks/DropArea/DropArea.js +4 -4
- package/blocks/DropArea/drop-area.css +34 -34
- package/blocks/ExternalSource/ExternalSource.js +5 -5
- package/blocks/ExternalSource/external-source.css +9 -9
- package/blocks/FileItem/FileItem.js +5 -5
- package/blocks/FileItem/file-item.css +22 -22
- package/blocks/Icon/icon.css +2 -2
- package/blocks/Img/ImgConfig.js +1 -1
- package/blocks/Img/configurations.d.ts +1 -1
- package/blocks/Img/configurations.js +1 -1
- package/blocks/Img/test.css +5 -5
- package/blocks/Modal/Modal.js +1 -1
- package/blocks/Modal/modal.css +15 -15
- package/blocks/ProgressBar/progress-bar.css +3 -3
- package/blocks/ProgressBarCommon/ProgressBarCommon.js +1 -1
- package/blocks/ProgressBarCommon/progress-bar-common.css +2 -2
- package/blocks/Range/range.css +8 -8
- package/blocks/Select/select.css +2 -2
- package/blocks/SimpleBtn/SimpleBtn.js +4 -4
- package/blocks/SimpleBtn/simple-btn.css +11 -11
- package/blocks/SourceBtn/SourceBtn.js +1 -1
- package/blocks/SourceBtn/source-btn.css +5 -5
- package/blocks/SourceList/SourceList.js +1 -1
- package/blocks/StartFrom/start-from.css +5 -5
- package/blocks/UploadList/UploadList.js +6 -6
- package/blocks/UploadList/upload-list.css +10 -10
- package/blocks/UrlSource/UrlSource.js +5 -5
- package/blocks/UrlSource/url-source.css +4 -4
- package/blocks/themes/{lr-basic → uc-basic}/common.css +19 -19
- package/blocks/themes/{lr-basic → uc-basic}/config.css +1 -1
- package/blocks/themes/{lr-basic → uc-basic}/theme.css +7 -7
- package/env.d.ts +1 -1
- package/env.d.ts.map +1 -1
- package/env.js +1 -1
- package/index.ssr.d.ts +10 -10
- package/index.ssr.d.ts.map +1 -1
- package/index.ssr.js +108 -108
- package/package.json +1 -1
- package/solutions/adaptive-image/index.js +1 -1
- package/solutions/cloud-image-editor/CloudImageEditor.js +1 -1
- package/solutions/cloud-image-editor/index.css +1 -1
- package/solutions/file-uploader/inline/FileUploaderInline.js +12 -12
- package/solutions/file-uploader/inline/index.css +12 -12
- package/solutions/file-uploader/minimal/FileUploaderMinimal.js +6 -6
- package/solutions/file-uploader/minimal/index.css +25 -25
- package/solutions/file-uploader/regular/FileUploaderRegular.js +15 -15
- package/solutions/file-uploader/regular/index.css +1 -1
- package/types/global.d.ts +2 -2
- package/types/jsx.d.ts +37 -37
- package/utils/cdn-utils.d.ts.map +1 -1
- package/utils/cdn-utils.js +0 -2
- package/web/blocks.iife.min.js +4 -4
- package/web/blocks.min.js +4 -4
- package/web/{lr-file-uploader-regular.min.css → uc-basic.min.css} +1 -1
- package/web/{lr-cloud-image-editor.min.css → uc-cloud-image-editor.min.css} +1 -1
- package/web/uc-cloud-image-editor.min.js +29 -0
- package/web/{lr-file-uploader-inline.min.css → uc-file-uploader-inline.min.css} +1 -1
- package/web/uc-file-uploader-inline.min.js +29 -0
- package/web/{lr-file-uploader-minimal.min.css → uc-file-uploader-minimal.min.css} +1 -1
- package/web/uc-file-uploader-minimal.min.js +28 -0
- package/web/{lr-basic.min.css → uc-file-uploader-regular.min.css} +1 -1
- package/web/uc-file-uploader-regular.min.js +29 -0
- package/web/uc-img.min.js +28 -0
- package/blocks/CloudImageEditor/src/elements/button/LrBtnUi.d.ts.map +0 -1
- package/web/lr-cloud-image-editor.min.js +0 -29
- package/web/lr-file-uploader-inline.min.js +0 -29
- package/web/lr-file-uploader-minimal.min.js +0 -28
- package/web/lr-file-uploader-regular.min.js +0 -29
- package/web/lr-img.min.js +0 -28
- /package/blocks/themes/{lr-basic → uc-basic}/index.css +0 -0
- /package/blocks/themes/{lr-basic → uc-basic}/svg-sprite.d.ts +0 -0
- /package/blocks/themes/{lr-basic → uc-basic}/svg-sprite.d.ts.map +0 -0
- /package/blocks/themes/{lr-basic → uc-basic}/svg-sprite.js +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@import url('../../blocks/themes/
|
|
1
|
+
@import url('../../blocks/themes/uc-basic/theme.css');
|
|
2
2
|
@import url('../../blocks/CloudImageEditor/index.css');
|
|
@@ -3,7 +3,7 @@ import { ActivityBlock } from '../../../abstract/ActivityBlock.js';
|
|
|
3
3
|
import { SolutionBlock } from '../../../abstract/SolutionBlock.js';
|
|
4
4
|
|
|
5
5
|
export class FileUploaderInline extends SolutionBlock {
|
|
6
|
-
static styleAttrs = [...super.styleAttrs, '
|
|
6
|
+
static styleAttrs = [...super.styleAttrs, 'uc-file-uploader-inline'];
|
|
7
7
|
|
|
8
8
|
constructor() {
|
|
9
9
|
super();
|
|
@@ -56,20 +56,20 @@ export class FileUploaderInline extends SolutionBlock {
|
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
FileUploaderInline.template = /* HTML */ ` <
|
|
60
|
-
<
|
|
61
|
-
<
|
|
59
|
+
FileUploaderInline.template = /* HTML */ ` <uc-start-from>
|
|
60
|
+
<uc-drop-area with-icon clickable></uc-drop-area>
|
|
61
|
+
<uc-source-list wrap></uc-source-list>
|
|
62
62
|
<button
|
|
63
63
|
type="button"
|
|
64
64
|
l10n="start-from-cancel"
|
|
65
65
|
class="uc-cancel-btn uc-secondary-btn"
|
|
66
66
|
set="onclick: cancel; @hidden: !couldCancel"
|
|
67
67
|
></button>
|
|
68
|
-
<
|
|
69
|
-
</
|
|
70
|
-
<
|
|
71
|
-
<
|
|
72
|
-
<
|
|
73
|
-
<
|
|
74
|
-
<
|
|
75
|
-
<
|
|
68
|
+
<uc-copyright></uc-copyright>
|
|
69
|
+
</uc-start-from>
|
|
70
|
+
<uc-upload-list ref="uBlock"></uc-upload-list>
|
|
71
|
+
<uc-camera-source></uc-camera-source>
|
|
72
|
+
<uc-url-source></uc-url-source>
|
|
73
|
+
<uc-external-source></uc-external-source>
|
|
74
|
+
<uc-progress-bar></uc-progress-bar>
|
|
75
|
+
<uc-cloud-image-editor-activity></uc-cloud-image-editor-activity>`;
|
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
@import url('../../../blocks/themes/
|
|
1
|
+
@import url('../../../blocks/themes/uc-basic/index.css');
|
|
2
2
|
|
|
3
|
-
[
|
|
3
|
+
[uc-file-uploader-inline] uc-start-from {
|
|
4
4
|
height: 100%;
|
|
5
5
|
container-type: inline-size;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
[
|
|
8
|
+
[uc-file-uploader-inline] {
|
|
9
9
|
--cfg-done-activity: 'start-from';
|
|
10
10
|
--cfg-init-activity: 'start-from';
|
|
11
11
|
|
|
12
12
|
flex: 1;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
[
|
|
15
|
+
[uc-file-uploader-inline] uc-activity-header::after {
|
|
16
16
|
width: var(--uc-button-size);
|
|
17
17
|
height: var(--uc-button-size);
|
|
18
18
|
content: '';
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
[
|
|
21
|
+
[uc-file-uploader-inline] uc-activity-header .uc-close-btn {
|
|
22
22
|
display: none;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
[
|
|
25
|
+
[uc-file-uploader-inline] uc-copyright .uc-credits {
|
|
26
26
|
position: static;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
@container (min-width: 500px) {
|
|
30
|
-
[
|
|
30
|
+
[uc-file-uploader-inline] uc-start-from .uc-content {
|
|
31
31
|
grid-template-columns: 1fr max-content;
|
|
32
32
|
height: 100%;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
[
|
|
35
|
+
[uc-file-uploader-inline] uc-start-from uc-copyright {
|
|
36
36
|
grid-column: 2;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
[
|
|
39
|
+
[uc-file-uploader-inline] uc-start-from uc-drop-area {
|
|
40
40
|
grid-row: span 3;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
[
|
|
43
|
+
[uc-file-uploader-inline] uc-start-from:has(uc-copyright[hidden]) uc-drop-area {
|
|
44
44
|
grid-row: span 2;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
[
|
|
47
|
+
[uc-file-uploader-inline] uc-start-from:has(.uc-cancel-btn[hidden]) uc-drop-area {
|
|
48
48
|
grid-row: span 2;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
[
|
|
51
|
+
[uc-file-uploader-inline] uc-start-from:has(uc-copyright[hidden]):has(.uc-cancel-btn[hidden]) uc-drop-area {
|
|
52
52
|
grid-row: span 1;
|
|
53
53
|
}
|
|
54
54
|
}
|
|
@@ -2,7 +2,7 @@ import { ActivityBlock } from '../../../abstract/ActivityBlock.js';
|
|
|
2
2
|
import { SolutionBlock } from '../../../abstract/SolutionBlock.js';
|
|
3
3
|
|
|
4
4
|
export class FileUploaderMinimal extends SolutionBlock {
|
|
5
|
-
static styleAttrs = [...super.styleAttrs, '
|
|
5
|
+
static styleAttrs = [...super.styleAttrs, 'uc-file-uploader-minimal'];
|
|
6
6
|
|
|
7
7
|
initCallback() {
|
|
8
8
|
super.initCallback();
|
|
@@ -38,9 +38,9 @@ export class FileUploaderMinimal extends SolutionBlock {
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
FileUploaderMinimal.template = /* HTML */ `
|
|
41
|
-
<
|
|
42
|
-
<
|
|
43
|
-
<
|
|
44
|
-
</
|
|
45
|
-
<
|
|
41
|
+
<uc-start-from>
|
|
42
|
+
<uc-drop-area tabindex="0" clickable l10n="choose-file"></uc-drop-area>
|
|
43
|
+
<uc-copyright></uc-copyright>
|
|
44
|
+
</uc-start-from>
|
|
45
|
+
<uc-upload-list ref="uBlock"></uc-upload-list>
|
|
46
46
|
`;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
@import url('../../../blocks/themes/
|
|
1
|
+
@import url('../../../blocks/themes/uc-basic/config.css');
|
|
2
2
|
|
|
3
3
|
/* COMMON STYLES */
|
|
4
|
-
@import url('../../../blocks/themes/
|
|
4
|
+
@import url('../../../blocks/themes/uc-basic/common.css');
|
|
5
5
|
|
|
6
6
|
/* THEME */
|
|
7
|
-
@import url('../../../blocks/themes/
|
|
7
|
+
@import url('../../../blocks/themes/uc-basic/theme.css');
|
|
8
8
|
|
|
9
9
|
/* BLOCKS: */
|
|
10
10
|
@import url('../../../blocks/StartFrom/start-from.css');
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
@import url('../../../blocks/Copyright/copyright.css');
|
|
17
17
|
|
|
18
18
|
/* ICONS: */
|
|
19
|
-
:where([
|
|
19
|
+
:where([uc-file-uploader-minimal]) {
|
|
20
20
|
--cfg-init-activity: 'start-from';
|
|
21
21
|
--cfg-done-activity: 'upload-list';
|
|
22
22
|
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
display: block;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
[
|
|
27
|
+
[uc-file-uploader-minimal] uc-start-from .uc-content {
|
|
28
28
|
display: flex;
|
|
29
29
|
flex-direction: column;
|
|
30
30
|
gap: 4px;
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
background-color: transparent;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
:where([
|
|
37
|
+
:where([uc-file-uploader-minimal] uc-drop-area) {
|
|
38
38
|
display: flex;
|
|
39
39
|
position: relative;
|
|
40
40
|
align-items: center;
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
/* hack to make transparent :hover colors work in any conditions */
|
|
51
|
-
:where([
|
|
51
|
+
:where([uc-file-uploader-minimal] uc-drop-area)::before {
|
|
52
52
|
content: '';
|
|
53
53
|
z-index: -1;
|
|
54
54
|
width: 100%;
|
|
@@ -57,15 +57,15 @@
|
|
|
57
57
|
background-color: var(--uc-background);
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
[
|
|
60
|
+
[uc-file-uploader-minimal] uc-upload-list uc-activity-header {
|
|
61
61
|
display: none;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
[
|
|
64
|
+
[uc-file-uploader-minimal] uc-upload-list > .uc-toolbar {
|
|
65
65
|
background-color: transparent;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
[
|
|
68
|
+
[uc-file-uploader-minimal] uc-upload-list {
|
|
69
69
|
width: 100%;
|
|
70
70
|
height: unset;
|
|
71
71
|
padding: 4px;
|
|
@@ -74,64 +74,64 @@
|
|
|
74
74
|
border-radius: calc(var(--uc-radius) * 1.75);
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
[
|
|
77
|
+
[uc-file-uploader-minimal] uc-upload-list .uc-files {
|
|
78
78
|
padding: 0;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
[
|
|
81
|
+
[uc-file-uploader-minimal] uc-upload-list .uc-toolbar {
|
|
82
82
|
display: block;
|
|
83
83
|
padding: 0;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
[
|
|
87
|
-
[
|
|
88
|
-
[
|
|
86
|
+
[uc-file-uploader-minimal] uc-upload-list .uc-toolbar .uc-cancel-btn,
|
|
87
|
+
[uc-file-uploader-minimal] uc-upload-list .uc-toolbar .uc-upload-btn,
|
|
88
|
+
[uc-file-uploader-minimal] uc-upload-list .uc-toolbar .uc-done-btn {
|
|
89
89
|
display: none;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
[
|
|
92
|
+
[uc-file-uploader-minimal] uc-upload-list .uc-toolbar .uc-add-more-btn {
|
|
93
93
|
width: 100%;
|
|
94
94
|
height: calc(var(--uc-preview-size) + var(--uc-padding) * 2);
|
|
95
95
|
margin-top: 4px;
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
[
|
|
98
|
+
[uc-file-uploader-minimal] uc-upload-list .uc-toolbar .uc-add-more-btn[disabled] {
|
|
99
99
|
display: none;
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
[
|
|
102
|
+
[uc-file-uploader-minimal] uc-upload-list .uc-toolbar .uc-add-more-btn > span {
|
|
103
103
|
display: none;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
[
|
|
106
|
+
[uc-file-uploader-minimal] uc-upload-list .uc-toolbar .uc-add-more-btn > uc-icon {
|
|
107
107
|
display: flex;
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
-
[
|
|
110
|
+
[uc-file-uploader-minimal] uc-file-item .uc-edit-btn {
|
|
111
111
|
display: none;
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
-
[
|
|
114
|
+
[uc-file-uploader-minimal] uc-file-item uc-progress-bar {
|
|
115
115
|
top: 0 !important;
|
|
116
116
|
height: 100% !important;
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
[
|
|
119
|
+
[uc-file-uploader-minimal] uc-file-item uc-progress-bar .uc-progress {
|
|
120
120
|
background-color: var(--uc-primary-transparent);
|
|
121
121
|
border-radius: var(--uc-radius);
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
-
[
|
|
124
|
+
[uc-file-uploader-minimal] uc-upload-list uc-drop-area {
|
|
125
125
|
width: 100%;
|
|
126
126
|
height: 100%;
|
|
127
127
|
margin: 0;
|
|
128
128
|
border-radius: calc(var(--uc-radius) * 1.75);
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
-
[
|
|
131
|
+
[uc-file-uploader-minimal] uc-upload-list .uc-common-error {
|
|
132
132
|
margin: 4px 0 0;
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
-
[
|
|
135
|
+
[uc-file-uploader-minimal] uc-copyright .uc-credits {
|
|
136
136
|
position: static;
|
|
137
137
|
}
|
|
@@ -4,7 +4,7 @@ import { asBoolean } from '../../../blocks/Config/normalizeConfigValue.js';
|
|
|
4
4
|
import { EventType } from '../../../blocks/UploadCtxProvider/EventEmitter.js';
|
|
5
5
|
|
|
6
6
|
export class FileUploaderRegular extends SolutionBlock {
|
|
7
|
-
static styleAttrs = [...super.styleAttrs, '
|
|
7
|
+
static styleAttrs = [...super.styleAttrs, 'uc-file-uploader-regular'];
|
|
8
8
|
|
|
9
9
|
constructor() {
|
|
10
10
|
super();
|
|
@@ -41,23 +41,23 @@ export class FileUploaderRegular extends SolutionBlock {
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
FileUploaderRegular.template = /* HTML */ `
|
|
44
|
-
<
|
|
44
|
+
<uc-simple-btn set="@hidden: isHidden"></uc-simple-btn>
|
|
45
45
|
|
|
46
|
-
<
|
|
47
|
-
<
|
|
48
|
-
<
|
|
49
|
-
<
|
|
46
|
+
<uc-modal strokes block-body-scrolling>
|
|
47
|
+
<uc-start-from>
|
|
48
|
+
<uc-drop-area with-icon clickable></uc-drop-area>
|
|
49
|
+
<uc-source-list wrap></uc-source-list>
|
|
50
50
|
<button type="button" l10n="start-from-cancel" class="uc-secondary-btn" set="onclick: *historyBack"></button>
|
|
51
|
-
<
|
|
52
|
-
</
|
|
53
|
-
<
|
|
54
|
-
<
|
|
55
|
-
<
|
|
56
|
-
<
|
|
57
|
-
<
|
|
58
|
-
</
|
|
51
|
+
<uc-copyright></uc-copyright>
|
|
52
|
+
</uc-start-from>
|
|
53
|
+
<uc-upload-list></uc-upload-list>
|
|
54
|
+
<uc-camera-source></uc-camera-source>
|
|
55
|
+
<uc-url-source></uc-url-source>
|
|
56
|
+
<uc-external-source></uc-external-source>
|
|
57
|
+
<uc-cloud-image-editor-activity></uc-cloud-image-editor-activity>
|
|
58
|
+
</uc-modal>
|
|
59
59
|
|
|
60
|
-
<
|
|
60
|
+
<uc-progress-bar-common></uc-progress-bar-common>
|
|
61
61
|
`;
|
|
62
62
|
|
|
63
63
|
FileUploaderRegular.bindAttributes({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@import url('../../../blocks/themes/
|
|
1
|
+
@import url('../../../blocks/themes/uc-basic/index.css');
|
package/types/global.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UC_WINDOW_KEY } from '../abstract/connectBlocksFrom.js';
|
|
2
2
|
import * as blocks from '../index.js';
|
|
3
3
|
|
|
4
4
|
declare global {
|
|
5
5
|
interface Window {
|
|
6
|
-
[
|
|
6
|
+
[UC_WINDOW_KEY]?: typeof blocks;
|
|
7
7
|
}
|
|
8
8
|
}
|
package/types/jsx.d.ts
CHANGED
|
@@ -19,45 +19,45 @@ type CustomElement<C, A = {}> = React.DetailedHTMLProps<CommonHtmlAttributes<C>,
|
|
|
19
19
|
|
|
20
20
|
declare namespace JSX {
|
|
21
21
|
interface IntrinsicElements {
|
|
22
|
-
'
|
|
23
|
-
'
|
|
24
|
-
'
|
|
25
|
-
'
|
|
26
|
-
'
|
|
27
|
-
'
|
|
28
|
-
'
|
|
29
|
-
'
|
|
30
|
-
'
|
|
31
|
-
'
|
|
32
|
-
'
|
|
33
|
-
'
|
|
34
|
-
'
|
|
35
|
-
'
|
|
36
|
-
'
|
|
37
|
-
'
|
|
38
|
-
'
|
|
39
|
-
'
|
|
40
|
-
'
|
|
41
|
-
'
|
|
42
|
-
'
|
|
43
|
-
'
|
|
44
|
-
'
|
|
45
|
-
'
|
|
46
|
-
'
|
|
47
|
-
'
|
|
48
|
-
'
|
|
49
|
-
'
|
|
50
|
-
'
|
|
51
|
-
'
|
|
22
|
+
'uc-crop-frame': any;
|
|
23
|
+
'uc-editor-crop-button-control': any;
|
|
24
|
+
'uc-editor-filter-control': any;
|
|
25
|
+
'uc-editor-operation-control': any;
|
|
26
|
+
'uc-editor-image-cropper': any;
|
|
27
|
+
'uc-editor-image-fader': any;
|
|
28
|
+
'uc-editor-scroller': any;
|
|
29
|
+
'uc-editor-slider': any;
|
|
30
|
+
'uc-editor-toolbar': any;
|
|
31
|
+
'uc-btn-ui': any;
|
|
32
|
+
'uc-line-loader-ui': any;
|
|
33
|
+
'uc-presence-toggle': any;
|
|
34
|
+
'uc-slider-ui': any;
|
|
35
|
+
'uc-icon': any;
|
|
36
|
+
'uc-img': any;
|
|
37
|
+
'uc-simple-btn': any;
|
|
38
|
+
'uc-start-from': any;
|
|
39
|
+
'uc-drop-area': any;
|
|
40
|
+
'uc-source-btn': any;
|
|
41
|
+
'uc-source-list': any;
|
|
42
|
+
'uc-file-item': any;
|
|
43
|
+
'uc-modal': any;
|
|
44
|
+
'uc-upload-list': any;
|
|
45
|
+
'uc-url-source': any;
|
|
46
|
+
'uc-camera-source': any;
|
|
47
|
+
'uc-progress-bar-common': any;
|
|
48
|
+
'uc-progress-bar': any;
|
|
49
|
+
'uc-external-source': any;
|
|
50
|
+
'uc-cloud-image-editor-activity': any;
|
|
51
|
+
'uc-cloud-image-editor-block': CustomElement<
|
|
52
52
|
CloudImageEditorBlock,
|
|
53
53
|
CtxAttributes & ({ uuid: string } | { 'cdn-url': string }) & Partial<{ tabs: string; 'crop-preset': string }>
|
|
54
54
|
>;
|
|
55
|
-
'
|
|
56
|
-
'
|
|
57
|
-
'
|
|
58
|
-
'
|
|
59
|
-
'
|
|
60
|
-
'
|
|
61
|
-
'
|
|
55
|
+
'uc-cloud-image-editor': CustomElement<CloudImageEditorBlock, JSX.IntrinsicElements['uc-cloud-image-editor-block']>;
|
|
56
|
+
'uc-form-input': CustomElement<FormInput, CtxAttributes>;
|
|
57
|
+
'uc-file-uploader-regular': CustomElement<FileUploaderRegular, CtxAttributes>;
|
|
58
|
+
'uc-file-uploader-minimal': CustomElement<FileUploaderMinimal, CtxAttributes>;
|
|
59
|
+
'uc-file-uploader-inline': CustomElement<FileUploaderInline, CtxAttributes>;
|
|
60
|
+
'uc-upload-ctx-provider': CustomElement<InstanceType<UploadCtxProvider>, CtxAttributes>;
|
|
61
|
+
'uc-config': CustomElement<InstanceType<Config>, CtxAttributes & Partial<ConfigPlainType>>;
|
|
62
62
|
}
|
|
63
63
|
}
|
package/utils/cdn-utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cdn-utils.d.ts","sourceRoot":"","sources":["cdn-utils.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cdn-utils.d.ts","sourceRoot":"","sources":["cdn-utils.js"],"names":[],"mappings":"AAgDA;;;;;GAKG;AACH,wDAcC;AAED;;;;;GAKG;AACH,oCAHW,MAAM,GACJ,MAAM,CAQlB;AAED;;;;;GAKG;AACH,+CAHW,MAAM,GACJ,MAAM,CAYlB;AAED;;;;;GAKG;AACH,0CAHW,MAAM,GACJ,MAAM,EAAE,CASpB;AAED;;;;;GAKG;AACH,qDASC;AAED;;;;;GAKG;AACH,qDAEC;AAED;;;;;GAKG;AACH,+CAFa;IAAE,QAAQ,SAAS;IAAC,MAAM,SAAS;IAAC,IAAI,SAAQ;CAAE,CAS9D;AAvJM,kDAHI,SAAS,OAAO,UAkB1B;AAQM,iFAKN;AASM,wFAGN;AA2HM,2HAgBN;AASM,wEAIN"}
|