@lowdefy/plugin-aws 5.0.0 → 5.2.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/dist/blocks/S3Download/S3Download.js +17 -5
- package/dist/blocks/S3Download/meta.js +15 -36
- package/dist/blocks/S3UploadButton/S3UploadButton.js +19 -7
- package/dist/blocks/S3UploadButton/meta.js +37 -4
- package/dist/blocks/S3UploadDragger/S3UploadDragger.js +28 -8
- package/dist/blocks/S3UploadDragger/meta.js +43 -7
- package/dist/blocks/S3UploadDragger/style.module.css +30 -0
- package/dist/blocks/S3UploadPhoto/S3UploadPhoto.js +24 -25
- package/dist/blocks/S3UploadPhoto/meta.js +45 -6
- package/dist/connections/AwsS3Bucket/AwsS3PresignedPostPolicy/AwsS3PresignedPostPolicy.js +4 -1
- package/dist/schemas/uploadTheme.js +53 -0
- package/package.json +8 -7
- package/dist/blocks/S3Download/schema.js +0 -107
- package/dist/blocks/S3UploadButton/__snapshots__/S3UploadButton.mock.test.js.snap +0 -1597
- package/dist/blocks/S3UploadButton/__snapshots__/S3UploadButton.test.js.snap +0 -281
- package/dist/blocks/S3UploadButton/schema.js +0 -121
- package/dist/blocks/S3UploadButton/tests.yaml +0 -44
- package/dist/blocks/S3UploadDragger/schema.js +0 -119
- package/dist/blocks/S3UploadPhoto/schema.js +0 -113
|
@@ -1,281 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`Render default - value[0] 1`] = `
|
|
4
|
-
<span
|
|
5
|
-
class=""
|
|
6
|
-
>
|
|
7
|
-
<div
|
|
8
|
-
class="ant-upload ant-upload-select ant-upload-select-text"
|
|
9
|
-
>
|
|
10
|
-
<span
|
|
11
|
-
class="ant-upload"
|
|
12
|
-
role="button"
|
|
13
|
-
tabindex="0"
|
|
14
|
-
>
|
|
15
|
-
<input
|
|
16
|
-
accept=""
|
|
17
|
-
id="default"
|
|
18
|
-
multiple=""
|
|
19
|
-
style="display: none;"
|
|
20
|
-
type="file"
|
|
21
|
-
/>
|
|
22
|
-
<button
|
|
23
|
-
class="ant-btn emotion-0"
|
|
24
|
-
id="default_button"
|
|
25
|
-
type="button"
|
|
26
|
-
>
|
|
27
|
-
<svg
|
|
28
|
-
class="emotion-1"
|
|
29
|
-
data-testid="AiOutlineExclamationCircle"
|
|
30
|
-
id="default_button_icon"
|
|
31
|
-
/>
|
|
32
|
-
<span
|
|
33
|
-
class="emotion-1"
|
|
34
|
-
>
|
|
35
|
-
Upload
|
|
36
|
-
</span>
|
|
37
|
-
</button>
|
|
38
|
-
</span>
|
|
39
|
-
</div>
|
|
40
|
-
<div
|
|
41
|
-
class="ant-upload-list ant-upload-list-text"
|
|
42
|
-
/>
|
|
43
|
-
</span>
|
|
44
|
-
`;
|
|
45
|
-
|
|
46
|
-
exports[`Render properties.accept - value[0] 1`] = `
|
|
47
|
-
<span
|
|
48
|
-
class=""
|
|
49
|
-
>
|
|
50
|
-
<div
|
|
51
|
-
class="ant-upload ant-upload-select ant-upload-select-text"
|
|
52
|
-
>
|
|
53
|
-
<span
|
|
54
|
-
class="ant-upload"
|
|
55
|
-
role="button"
|
|
56
|
-
tabindex="0"
|
|
57
|
-
>
|
|
58
|
-
<input
|
|
59
|
-
accept=".png,.jpg"
|
|
60
|
-
id="properties.accept"
|
|
61
|
-
multiple=""
|
|
62
|
-
style="display: none;"
|
|
63
|
-
type="file"
|
|
64
|
-
/>
|
|
65
|
-
<button
|
|
66
|
-
class="ant-btn emotion-0"
|
|
67
|
-
id="properties.accept_button"
|
|
68
|
-
type="button"
|
|
69
|
-
>
|
|
70
|
-
<svg
|
|
71
|
-
class="emotion-1"
|
|
72
|
-
data-testid="AiOutlineExclamationCircle"
|
|
73
|
-
id="properties.accept_button_icon"
|
|
74
|
-
/>
|
|
75
|
-
<span
|
|
76
|
-
class="emotion-1"
|
|
77
|
-
>
|
|
78
|
-
Upload
|
|
79
|
-
</span>
|
|
80
|
-
</button>
|
|
81
|
-
</span>
|
|
82
|
-
</div>
|
|
83
|
-
<div
|
|
84
|
-
class="ant-upload-list ant-upload-list-text"
|
|
85
|
-
/>
|
|
86
|
-
</span>
|
|
87
|
-
`;
|
|
88
|
-
|
|
89
|
-
exports[`Render properties.button - value[0] 1`] = `
|
|
90
|
-
<span
|
|
91
|
-
class=""
|
|
92
|
-
>
|
|
93
|
-
<div
|
|
94
|
-
class="ant-upload ant-upload-select ant-upload-select-text"
|
|
95
|
-
>
|
|
96
|
-
<span
|
|
97
|
-
class="ant-upload"
|
|
98
|
-
role="button"
|
|
99
|
-
tabindex="0"
|
|
100
|
-
>
|
|
101
|
-
<input
|
|
102
|
-
accept=""
|
|
103
|
-
id="properties.button"
|
|
104
|
-
multiple=""
|
|
105
|
-
style="display: none;"
|
|
106
|
-
type="file"
|
|
107
|
-
/>
|
|
108
|
-
<button
|
|
109
|
-
class="ant-btn ant-btn-primary emotion-0"
|
|
110
|
-
id="properties.button_button"
|
|
111
|
-
type="button"
|
|
112
|
-
>
|
|
113
|
-
<svg
|
|
114
|
-
class="emotion-1"
|
|
115
|
-
data-testid="AiOutlineExclamationCircle"
|
|
116
|
-
id="properties.button_button_icon"
|
|
117
|
-
/>
|
|
118
|
-
<span
|
|
119
|
-
class="emotion-1"
|
|
120
|
-
>
|
|
121
|
-
Upload
|
|
122
|
-
</span>
|
|
123
|
-
</button>
|
|
124
|
-
</span>
|
|
125
|
-
</div>
|
|
126
|
-
<div
|
|
127
|
-
class="ant-upload-list ant-upload-list-text"
|
|
128
|
-
/>
|
|
129
|
-
</span>
|
|
130
|
-
`;
|
|
131
|
-
|
|
132
|
-
exports[`Render properties.disabled - value[0] 1`] = `
|
|
133
|
-
<span
|
|
134
|
-
class=""
|
|
135
|
-
>
|
|
136
|
-
<div
|
|
137
|
-
class="ant-upload ant-upload-select ant-upload-select-text ant-upload-disabled"
|
|
138
|
-
>
|
|
139
|
-
<span
|
|
140
|
-
class="ant-upload ant-upload-disabled"
|
|
141
|
-
role="button"
|
|
142
|
-
>
|
|
143
|
-
<input
|
|
144
|
-
accept=""
|
|
145
|
-
multiple=""
|
|
146
|
-
style="display: none;"
|
|
147
|
-
type="file"
|
|
148
|
-
/>
|
|
149
|
-
<button
|
|
150
|
-
class="ant-btn emotion-0"
|
|
151
|
-
disabled=""
|
|
152
|
-
id="properties.disabled_button"
|
|
153
|
-
type="button"
|
|
154
|
-
>
|
|
155
|
-
<svg
|
|
156
|
-
class="emotion-1"
|
|
157
|
-
data-testid="AiOutlineExclamationCircle"
|
|
158
|
-
id="properties.disabled_button_icon"
|
|
159
|
-
/>
|
|
160
|
-
<span
|
|
161
|
-
class="emotion-1"
|
|
162
|
-
>
|
|
163
|
-
Upload
|
|
164
|
-
</span>
|
|
165
|
-
</button>
|
|
166
|
-
</span>
|
|
167
|
-
</div>
|
|
168
|
-
<div
|
|
169
|
-
class="ant-upload-list ant-upload-list-text"
|
|
170
|
-
/>
|
|
171
|
-
</span>
|
|
172
|
-
`;
|
|
173
|
-
|
|
174
|
-
exports[`Render properties.showUploadList - value[0] 1`] = `
|
|
175
|
-
<span
|
|
176
|
-
class=""
|
|
177
|
-
>
|
|
178
|
-
<div
|
|
179
|
-
class="ant-upload ant-upload-select ant-upload-select-text"
|
|
180
|
-
>
|
|
181
|
-
<span
|
|
182
|
-
class="ant-upload"
|
|
183
|
-
role="button"
|
|
184
|
-
tabindex="0"
|
|
185
|
-
>
|
|
186
|
-
<input
|
|
187
|
-
accept=""
|
|
188
|
-
id="properties.showUploadList"
|
|
189
|
-
multiple=""
|
|
190
|
-
style="display: none;"
|
|
191
|
-
type="file"
|
|
192
|
-
/>
|
|
193
|
-
<button
|
|
194
|
-
class="ant-btn emotion-0"
|
|
195
|
-
id="properties.showUploadList_button"
|
|
196
|
-
type="button"
|
|
197
|
-
>
|
|
198
|
-
<svg
|
|
199
|
-
class="emotion-1"
|
|
200
|
-
data-testid="AiOutlineExclamationCircle"
|
|
201
|
-
id="properties.showUploadList_button_icon"
|
|
202
|
-
/>
|
|
203
|
-
<span
|
|
204
|
-
class="emotion-1"
|
|
205
|
-
>
|
|
206
|
-
Upload
|
|
207
|
-
</span>
|
|
208
|
-
</button>
|
|
209
|
-
</span>
|
|
210
|
-
</div>
|
|
211
|
-
<div
|
|
212
|
-
class="ant-upload-list ant-upload-list-text"
|
|
213
|
-
/>
|
|
214
|
-
</span>
|
|
215
|
-
`;
|
|
216
|
-
|
|
217
|
-
exports[`Render properties.singleFile - value[0] 1`] = `
|
|
218
|
-
<span
|
|
219
|
-
class=""
|
|
220
|
-
>
|
|
221
|
-
<div
|
|
222
|
-
class="ant-upload ant-upload-select ant-upload-select-text"
|
|
223
|
-
>
|
|
224
|
-
<span
|
|
225
|
-
class="ant-upload"
|
|
226
|
-
role="button"
|
|
227
|
-
tabindex="0"
|
|
228
|
-
>
|
|
229
|
-
<input
|
|
230
|
-
accept=""
|
|
231
|
-
id="properties.singleFile"
|
|
232
|
-
style="display: none;"
|
|
233
|
-
type="file"
|
|
234
|
-
/>
|
|
235
|
-
<button
|
|
236
|
-
class="ant-btn emotion-0"
|
|
237
|
-
id="properties.singleFile_button"
|
|
238
|
-
type="button"
|
|
239
|
-
>
|
|
240
|
-
<svg
|
|
241
|
-
class="emotion-1"
|
|
242
|
-
data-testid="AiOutlineExclamationCircle"
|
|
243
|
-
id="properties.singleFile_button_icon"
|
|
244
|
-
/>
|
|
245
|
-
<span
|
|
246
|
-
class="emotion-1"
|
|
247
|
-
>
|
|
248
|
-
Upload
|
|
249
|
-
</span>
|
|
250
|
-
</button>
|
|
251
|
-
</span>
|
|
252
|
-
</div>
|
|
253
|
-
<div
|
|
254
|
-
class="ant-upload-list ant-upload-list-text"
|
|
255
|
-
/>
|
|
256
|
-
</span>
|
|
257
|
-
`;
|
|
258
|
-
|
|
259
|
-
exports[`Test Schema default 1`] = `true`;
|
|
260
|
-
|
|
261
|
-
exports[`Test Schema default 2`] = `null`;
|
|
262
|
-
|
|
263
|
-
exports[`Test Schema properties.accept 1`] = `true`;
|
|
264
|
-
|
|
265
|
-
exports[`Test Schema properties.accept 2`] = `null`;
|
|
266
|
-
|
|
267
|
-
exports[`Test Schema properties.button 1`] = `true`;
|
|
268
|
-
|
|
269
|
-
exports[`Test Schema properties.button 2`] = `null`;
|
|
270
|
-
|
|
271
|
-
exports[`Test Schema properties.disabled 1`] = `true`;
|
|
272
|
-
|
|
273
|
-
exports[`Test Schema properties.disabled 2`] = `null`;
|
|
274
|
-
|
|
275
|
-
exports[`Test Schema properties.showUploadList 1`] = `true`;
|
|
276
|
-
|
|
277
|
-
exports[`Test Schema properties.showUploadList 2`] = `null`;
|
|
278
|
-
|
|
279
|
-
exports[`Test Schema properties.singleFile 1`] = `true`;
|
|
280
|
-
|
|
281
|
-
exports[`Test Schema properties.singleFile 2`] = `null`;
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Copyright 2020-2026 Lowdefy, Inc
|
|
3
|
-
|
|
4
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
you may not use this file except in compliance with the License.
|
|
6
|
-
You may obtain a copy of the License at
|
|
7
|
-
|
|
8
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
|
|
10
|
-
Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
See the License for the specific language governing permissions and
|
|
14
|
-
limitations under the License.
|
|
15
|
-
*/ export default {
|
|
16
|
-
type: 'object',
|
|
17
|
-
properties: {
|
|
18
|
-
type: 'object',
|
|
19
|
-
required: [
|
|
20
|
-
's3PostPolicyRequestId'
|
|
21
|
-
],
|
|
22
|
-
properties: {
|
|
23
|
-
accept: {
|
|
24
|
-
type: 'string',
|
|
25
|
-
description: 'File types accepted by the input. See html file type input accept property at https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#accept.'
|
|
26
|
-
},
|
|
27
|
-
button: {
|
|
28
|
-
type: 'object',
|
|
29
|
-
description: 'Button block properties.',
|
|
30
|
-
default: {
|
|
31
|
-
icon: 'UploadOutlined',
|
|
32
|
-
title: 'Upload',
|
|
33
|
-
type: 'default'
|
|
34
|
-
},
|
|
35
|
-
docs: {
|
|
36
|
-
displayType: 'button'
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
disabled: {
|
|
40
|
-
type: 'boolean',
|
|
41
|
-
description: 'Disable the file input.'
|
|
42
|
-
},
|
|
43
|
-
maxCount: {
|
|
44
|
-
type: 'number',
|
|
45
|
-
description: 'Maximum number of files that can be uploaded.'
|
|
46
|
-
},
|
|
47
|
-
s3PostPolicyRequestId: {
|
|
48
|
-
type: 'string',
|
|
49
|
-
description: 'Id of a request of type AwsS3PresignedPostPolicy that defines to which S3 bucket and how the file should be uploaded.',
|
|
50
|
-
docs: {
|
|
51
|
-
displayType: 'manual',
|
|
52
|
-
block: {
|
|
53
|
-
id: 'block_properties_s3PostPolicyRequestId',
|
|
54
|
-
layout: {
|
|
55
|
-
_global: 'settings_input_layout'
|
|
56
|
-
},
|
|
57
|
-
type: 'Label',
|
|
58
|
-
required: true,
|
|
59
|
-
properties: {
|
|
60
|
-
title: 's3PostPolicyRequestId',
|
|
61
|
-
span: 8,
|
|
62
|
-
align: 'right'
|
|
63
|
-
},
|
|
64
|
-
blocks: [
|
|
65
|
-
{
|
|
66
|
-
id: 'block_properties_s3PostPolicyRequestId_text',
|
|
67
|
-
type: 'Markdown',
|
|
68
|
-
style: {
|
|
69
|
-
color: '#8c8c8c'
|
|
70
|
-
},
|
|
71
|
-
properties: {
|
|
72
|
-
content: 'Id of a request of type AwsS3PresignedPostPolicy that defines to which S3 bucket and how the file should be uploaded.'
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
]
|
|
76
|
-
},
|
|
77
|
-
getter: {}
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
showUploadList: {
|
|
81
|
-
type: 'boolean',
|
|
82
|
-
default: true,
|
|
83
|
-
description: 'Whether to show default upload list.'
|
|
84
|
-
},
|
|
85
|
-
singleFile: {
|
|
86
|
-
type: 'boolean',
|
|
87
|
-
default: false,
|
|
88
|
-
description: 'Only allow a single file to be uploaded. Only one file can be selected in the prompt.'
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
events: {
|
|
93
|
-
type: 'object',
|
|
94
|
-
properties: {
|
|
95
|
-
onChange: {
|
|
96
|
-
type: 'array',
|
|
97
|
-
description: 'Triggered when the upload state is changing.'
|
|
98
|
-
},
|
|
99
|
-
onProgress: {
|
|
100
|
-
type: 'array',
|
|
101
|
-
description: 'Triggered when the upload state is in progress.'
|
|
102
|
-
},
|
|
103
|
-
onSuccess: {
|
|
104
|
-
type: 'array',
|
|
105
|
-
description: 'Triggered when the upload state is done uploading.'
|
|
106
|
-
},
|
|
107
|
-
onRemove: {
|
|
108
|
-
type: 'array',
|
|
109
|
-
description: 'Triggered when the upload has been removed.'
|
|
110
|
-
},
|
|
111
|
-
onError: {
|
|
112
|
-
type: 'array',
|
|
113
|
-
description: 'Triggered when the upload has failed.'
|
|
114
|
-
},
|
|
115
|
-
onClick: {
|
|
116
|
-
type: 'array',
|
|
117
|
-
description: 'Triggered when the upload button is clicked.'
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
# Copyright 2020-2026 Lowdefy, Inc
|
|
2
|
-
|
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
# you may not use this file except in compliance with the License.
|
|
5
|
-
# You may obtain a copy of the License at
|
|
6
|
-
|
|
7
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
|
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
# See the License for the specific language governing permissions and
|
|
13
|
-
# limitations under the License.
|
|
14
|
-
|
|
15
|
-
- id: default
|
|
16
|
-
type: S3UploadButton
|
|
17
|
-
properties:
|
|
18
|
-
s3PostPolicyRequestId: s3PostPolicyRequestId
|
|
19
|
-
- id: properties.accept
|
|
20
|
-
type: S3UploadButton
|
|
21
|
-
properties:
|
|
22
|
-
accept: '.png,.jpg'
|
|
23
|
-
s3PostPolicyRequestId: s3PostPolicyRequestId
|
|
24
|
-
- id: properties.button
|
|
25
|
-
type: S3UploadButton
|
|
26
|
-
properties:
|
|
27
|
-
button:
|
|
28
|
-
type: primary
|
|
29
|
-
s3PostPolicyRequestId: s3PostPolicyRequestId
|
|
30
|
-
- id: properties.disabled
|
|
31
|
-
type: S3UploadButton
|
|
32
|
-
properties:
|
|
33
|
-
disabled: true
|
|
34
|
-
s3PostPolicyRequestId: s3PostPolicyRequestId
|
|
35
|
-
- id: properties.showUploadList
|
|
36
|
-
type: S3UploadButton
|
|
37
|
-
properties:
|
|
38
|
-
s3PostPolicyRequestId: s3PostPolicyRequestId
|
|
39
|
-
showUploadList: true
|
|
40
|
-
- id: properties.singleFile
|
|
41
|
-
type: S3UploadButton
|
|
42
|
-
properties:
|
|
43
|
-
s3PostPolicyRequestId: s3PostPolicyRequestId
|
|
44
|
-
singleFile: true
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Copyright 2020-2026 Lowdefy, Inc
|
|
3
|
-
|
|
4
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
you may not use this file except in compliance with the License.
|
|
6
|
-
You may obtain a copy of the License at
|
|
7
|
-
|
|
8
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
|
|
10
|
-
Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
See the License for the specific language governing permissions and
|
|
14
|
-
limitations under the License.
|
|
15
|
-
*/ export default {
|
|
16
|
-
type: 'object',
|
|
17
|
-
properties: {
|
|
18
|
-
type: 'object',
|
|
19
|
-
required: [
|
|
20
|
-
's3PostPolicyRequestId'
|
|
21
|
-
],
|
|
22
|
-
properties: {
|
|
23
|
-
height: {
|
|
24
|
-
type: 'number',
|
|
25
|
-
description: 'Height of the dragger area in pixels. Defaults to the antd control height. Overridden by style .element height if set.'
|
|
26
|
-
},
|
|
27
|
-
title: {
|
|
28
|
-
type: 'string',
|
|
29
|
-
description: 'Title of the file input to be displayed on the draggable area.'
|
|
30
|
-
},
|
|
31
|
-
accept: {
|
|
32
|
-
type: 'string',
|
|
33
|
-
description: 'File types accepted by the input. See html file type input accept property at https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#accept.'
|
|
34
|
-
},
|
|
35
|
-
disabled: {
|
|
36
|
-
type: 'boolean',
|
|
37
|
-
description: 'Disable the file input.'
|
|
38
|
-
},
|
|
39
|
-
maxCount: {
|
|
40
|
-
type: 'number',
|
|
41
|
-
description: 'Maximum number of files that can be uploaded.'
|
|
42
|
-
},
|
|
43
|
-
s3PostPolicyRequestId: {
|
|
44
|
-
type: 'string',
|
|
45
|
-
description: 'Id of a request of type AwsS3PresignedPostPolicy that defines to which S3 bucket and how the file should be uploaded.',
|
|
46
|
-
docs: {
|
|
47
|
-
displayType: 'manual',
|
|
48
|
-
block: {
|
|
49
|
-
id: 'block_properties_s3PostPolicyRequestId',
|
|
50
|
-
layout: {
|
|
51
|
-
_global: 'settings_input_layout'
|
|
52
|
-
},
|
|
53
|
-
type: 'Label',
|
|
54
|
-
required: true,
|
|
55
|
-
properties: {
|
|
56
|
-
title: 's3PostPolicyRequestId',
|
|
57
|
-
span: 8,
|
|
58
|
-
align: 'right'
|
|
59
|
-
},
|
|
60
|
-
blocks: [
|
|
61
|
-
{
|
|
62
|
-
id: 'block_properties_s3PostPolicyRequestId_text',
|
|
63
|
-
type: 'Markdown',
|
|
64
|
-
style: {
|
|
65
|
-
color: '#8c8c8c'
|
|
66
|
-
},
|
|
67
|
-
properties: {
|
|
68
|
-
content: 'Id of a request of type AwsS3PresignedPostPolicy that defines to which S3 bucket and how the file should be uploaded.'
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
]
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
showUploadList: {
|
|
76
|
-
type: 'boolean',
|
|
77
|
-
default: true,
|
|
78
|
-
description: 'Whether to show default upload list.'
|
|
79
|
-
},
|
|
80
|
-
singleFile: {
|
|
81
|
-
type: 'boolean',
|
|
82
|
-
default: false,
|
|
83
|
-
description: 'Only allow a single file to be uploaded. Only one file can be selected in the prompt.'
|
|
84
|
-
},
|
|
85
|
-
style: {
|
|
86
|
-
type: 'object',
|
|
87
|
-
description: 'Css style object to applied to draggable area.',
|
|
88
|
-
docs: {
|
|
89
|
-
displayType: 'yaml'
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
events: {
|
|
95
|
-
type: 'object',
|
|
96
|
-
properties: {
|
|
97
|
-
onChange: {
|
|
98
|
-
type: 'array',
|
|
99
|
-
description: 'Triggered when the upload state is changing.'
|
|
100
|
-
},
|
|
101
|
-
onProgress: {
|
|
102
|
-
type: 'array',
|
|
103
|
-
description: 'Triggered when the upload state is in progress.'
|
|
104
|
-
},
|
|
105
|
-
onSuccess: {
|
|
106
|
-
type: 'array',
|
|
107
|
-
description: 'Triggered when the upload state is done uploading.'
|
|
108
|
-
},
|
|
109
|
-
onRemove: {
|
|
110
|
-
type: 'array',
|
|
111
|
-
description: 'Triggered when the upload has been removed.'
|
|
112
|
-
},
|
|
113
|
-
onError: {
|
|
114
|
-
type: 'array',
|
|
115
|
-
description: 'Triggered when the upload has failed.'
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
};
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Copyright 2020-2026 Lowdefy, Inc
|
|
3
|
-
|
|
4
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
you may not use this file except in compliance with the License.
|
|
6
|
-
You may obtain a copy of the License at
|
|
7
|
-
|
|
8
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
|
|
10
|
-
Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
See the License for the specific language governing permissions and
|
|
14
|
-
limitations under the License.
|
|
15
|
-
*/ export default {
|
|
16
|
-
type: 'object',
|
|
17
|
-
properties: {
|
|
18
|
-
type: 'object',
|
|
19
|
-
required: [
|
|
20
|
-
's3PostPolicyRequestId'
|
|
21
|
-
],
|
|
22
|
-
properties: {
|
|
23
|
-
title: {
|
|
24
|
-
type: 'string',
|
|
25
|
-
description: "Title of the file input to be displayed instead of 'Upload image'.",
|
|
26
|
-
default: 'Upload image'
|
|
27
|
-
},
|
|
28
|
-
disabled: {
|
|
29
|
-
type: 'boolean',
|
|
30
|
-
description: 'Disable the file input.'
|
|
31
|
-
},
|
|
32
|
-
maxCount: {
|
|
33
|
-
type: 'number',
|
|
34
|
-
description: 'Maximum number of files that can be uploaded.'
|
|
35
|
-
},
|
|
36
|
-
s3PostPolicyRequestId: {
|
|
37
|
-
type: 'string',
|
|
38
|
-
description: 'Id of a request of type AwsS3PresignedPostPolicy that defines to which S3 bucket and how the file should be uploaded.',
|
|
39
|
-
docs: {
|
|
40
|
-
displayType: 'manual',
|
|
41
|
-
block: {
|
|
42
|
-
id: 'block_properties_s3PostPolicyRequestId',
|
|
43
|
-
layout: {
|
|
44
|
-
_global: 'settings_input_layout'
|
|
45
|
-
},
|
|
46
|
-
type: 'Label',
|
|
47
|
-
required: true,
|
|
48
|
-
properties: {
|
|
49
|
-
title: 's3PostPolicyRequestId',
|
|
50
|
-
span: 8,
|
|
51
|
-
align: 'right'
|
|
52
|
-
},
|
|
53
|
-
blocks: [
|
|
54
|
-
{
|
|
55
|
-
id: 'block_properties_s3PostPolicyRequestId_text',
|
|
56
|
-
type: 'Markdown',
|
|
57
|
-
style: {
|
|
58
|
-
color: '#8c8c8c'
|
|
59
|
-
},
|
|
60
|
-
properties: {
|
|
61
|
-
content: 'Id of a request of type AwsS3PresignedPostPolicy that defines to which S3 bucket and how the file should be uploaded.'
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
]
|
|
65
|
-
},
|
|
66
|
-
getter: {}
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
showUploadList: {
|
|
70
|
-
type: 'boolean',
|
|
71
|
-
default: true,
|
|
72
|
-
description: 'Whether to show default upload list.'
|
|
73
|
-
},
|
|
74
|
-
singleFile: {
|
|
75
|
-
type: 'boolean',
|
|
76
|
-
default: false,
|
|
77
|
-
description: 'Only allow a single file to be uploaded. Only one file can be selected in the prompt.'
|
|
78
|
-
},
|
|
79
|
-
style: {
|
|
80
|
-
type: 'object',
|
|
81
|
-
description: 'Css style object to applied to draggable area.',
|
|
82
|
-
docs: {
|
|
83
|
-
displayType: 'yaml'
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
events: {
|
|
89
|
-
type: 'object',
|
|
90
|
-
properties: {
|
|
91
|
-
onChange: {
|
|
92
|
-
type: 'array',
|
|
93
|
-
description: 'Triggered when the upload state is changing.'
|
|
94
|
-
},
|
|
95
|
-
onProgress: {
|
|
96
|
-
type: 'array',
|
|
97
|
-
description: 'Triggered when the upload state is in progress.'
|
|
98
|
-
},
|
|
99
|
-
onSuccess: {
|
|
100
|
-
type: 'array',
|
|
101
|
-
description: 'Triggered when the upload state is done uploading.'
|
|
102
|
-
},
|
|
103
|
-
onRemove: {
|
|
104
|
-
type: 'array',
|
|
105
|
-
description: 'Triggered when the upload has been removed.'
|
|
106
|
-
},
|
|
107
|
-
onError: {
|
|
108
|
-
type: 'array',
|
|
109
|
-
description: 'Triggered when the upload has failed.'
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
};
|