@lowdefy/plugin-aws 4.0.0-rc.5 → 4.0.0-rc.6
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.
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/ import React, { useEffect, useState } from 'react';
|
|
16
16
|
import { blockDefaultProps } from '@lowdefy/block-utils';
|
|
17
17
|
import { get } from '@lowdefy/helpers';
|
|
18
|
-
import {
|
|
18
|
+
import { Upload } from 'antd';
|
|
19
19
|
const makeFileValue = (file, s3Parameters)=>{
|
|
20
20
|
const { lastModified , name , percent , size , status , type , uid } = file;
|
|
21
21
|
const { bucket , key } = get(s3Parameters, uid, {
|
|
@@ -4,26 +4,6 @@
|
|
|
4
4
|
"type": "object",
|
|
5
5
|
"required": ["s3PostPolicyRequestId"],
|
|
6
6
|
"properties": {
|
|
7
|
-
"accept": {
|
|
8
|
-
"type": "string",
|
|
9
|
-
"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."
|
|
10
|
-
},
|
|
11
|
-
"button": {
|
|
12
|
-
"type": "object",
|
|
13
|
-
"description": "Button block properties.",
|
|
14
|
-
"default": {
|
|
15
|
-
"icon": "UploadOutlined",
|
|
16
|
-
"title": "Upload",
|
|
17
|
-
"type": "default"
|
|
18
|
-
},
|
|
19
|
-
"docs": {
|
|
20
|
-
"displayType": "button"
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
"disabled": {
|
|
24
|
-
"type": "boolean",
|
|
25
|
-
"description": "Disable the file input."
|
|
26
|
-
},
|
|
27
7
|
"s3PostPolicyRequestId": {
|
|
28
8
|
"type": "string",
|
|
29
9
|
"description": "Id of a request of type AwsS3PresignedPostPolicy that defines to which S3 bucket and how the file should be uploaded.",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lowdefy/plugin-aws",
|
|
3
|
-
"version": "4.0.0-rc.
|
|
3
|
+
"version": "4.0.0-rc.6",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "",
|
|
6
6
|
"homepage": "https://lowdefy.com",
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
"copyfiles": "copyfiles -u 1 \"./src/**/*\" dist -e \"./src/**/*.js\" -e \"./src/**/*.yaml\" -e \"./src/**/*.snap\""
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@lowdefy/block-utils": "4.0.0-rc.
|
|
49
|
-
"@lowdefy/blocks-antd": "4.0.0-rc.
|
|
50
|
-
"@lowdefy/helpers": "4.0.0-rc.
|
|
48
|
+
"@lowdefy/block-utils": "4.0.0-rc.6",
|
|
49
|
+
"@lowdefy/blocks-antd": "4.0.0-rc.6",
|
|
50
|
+
"@lowdefy/helpers": "4.0.0-rc.6",
|
|
51
51
|
"antd": "4.22.5",
|
|
52
52
|
"aws-sdk": "2.1286.0",
|
|
53
53
|
"react": "18.2.0",
|
|
@@ -55,9 +55,9 @@
|
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@emotion/jest": "11.10.5",
|
|
58
|
-
"@lowdefy/ajv": "4.0.0-rc.
|
|
59
|
-
"@lowdefy/block-dev": "4.0.0-rc.
|
|
60
|
-
"@lowdefy/jest-yaml-transform": "4.0.0-rc.
|
|
58
|
+
"@lowdefy/ajv": "4.0.0-rc.6",
|
|
59
|
+
"@lowdefy/block-dev": "4.0.0-rc.6",
|
|
60
|
+
"@lowdefy/jest-yaml-transform": "4.0.0-rc.6",
|
|
61
61
|
"@swc/cli": "0.1.59",
|
|
62
62
|
"@swc/core": "1.3.24",
|
|
63
63
|
"@swc/jest": "0.2.24",
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"publishConfig": {
|
|
73
73
|
"access": "public"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "8238145a9eb26c6f3dc48661ab6eca6e3aca4f83"
|
|
76
76
|
}
|