@lowdefy/plugin-aws 4.0.0-alpha.12 → 4.0.0-alpha.15
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.
|
@@ -38,8 +38,7 @@ const makeOnChangeValue = (s3Parameters, changeEvent)=>{
|
|
|
38
38
|
const { file , fileList } = changeEvent;
|
|
39
39
|
return {
|
|
40
40
|
file: makeFileValue(file, s3Parameters),
|
|
41
|
-
fileList: fileList.map((fl)=>makeFileValue(fl, s3Parameters)
|
|
42
|
-
)
|
|
41
|
+
fileList: fileList.map((fl)=>makeFileValue(fl, s3Parameters))
|
|
43
42
|
};
|
|
44
43
|
};
|
|
45
44
|
const getDisabled = ({ properties , value })=>{
|
|
@@ -103,8 +102,7 @@ const getCustomRequest = ({ methods , setS3Parameters })=>async ({ file , onErr
|
|
|
103
102
|
console.error(error);
|
|
104
103
|
onError(error);
|
|
105
104
|
}
|
|
106
|
-
}
|
|
107
|
-
;
|
|
105
|
+
};
|
|
108
106
|
const S3UploadButtonBlock = ({ blockId , components , events , methods , properties , value })=>{
|
|
109
107
|
// Use state here because we need to set s3 bucket and key as block value
|
|
110
108
|
// The customRequest function does not have access to the updated block value,
|
|
@@ -137,7 +135,7 @@ const S3UploadButtonBlock = ({ blockId , components , events , methods , propert
|
|
|
137
135
|
properties,
|
|
138
136
|
value
|
|
139
137
|
});
|
|
140
|
-
return
|
|
138
|
+
return /*#__PURE__*/ React.createElement(Upload, {
|
|
141
139
|
accept: properties.accept,
|
|
142
140
|
customRequest: customRequest,
|
|
143
141
|
disabled: disabled,
|
|
@@ -162,7 +160,7 @@ const S3UploadButtonBlock = ({ blockId , components , events , methods , propert
|
|
|
162
160
|
...properties.button
|
|
163
161
|
},
|
|
164
162
|
methods: methods
|
|
165
|
-
}))
|
|
163
|
+
}));
|
|
166
164
|
};
|
|
167
165
|
S3UploadButtonBlock.defaultProps = blockDefaultProps;
|
|
168
166
|
S3UploadButtonBlock.meta = {
|
package/dist/types.js
CHANGED
|
@@ -15,6 +15,5 @@
|
|
|
15
15
|
*/ import * as connections from './connections.js';
|
|
16
16
|
export default {
|
|
17
17
|
connections: Object.keys(connections),
|
|
18
|
-
requests: Object.keys(connections).map((connection)=>Object.keys(connections[connection].requests)
|
|
19
|
-
).flat()
|
|
18
|
+
requests: Object.keys(connections).map((connection)=>Object.keys(connections[connection].requests)).flat()
|
|
20
19
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lowdefy/plugin-aws",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
4
|
-
"
|
|
3
|
+
"version": "4.0.0-alpha.15",
|
|
4
|
+
"license": "Apache-2.0",
|
|
5
5
|
"description": "",
|
|
6
6
|
"homepage": "https://lowdefy.com",
|
|
7
7
|
"keywords": [
|
|
@@ -42,31 +42,32 @@
|
|
|
42
42
|
"test": "jest --coverage"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@lowdefy/block-utils": "4.0.0-alpha.
|
|
46
|
-
"@lowdefy/blocks-antd": "4.0.0-alpha.
|
|
47
|
-
"@lowdefy/helpers": "4.0.0-alpha.
|
|
48
|
-
"antd": "4.
|
|
49
|
-
"aws-sdk": "2.
|
|
50
|
-
"react": "
|
|
51
|
-
"react-dom": "
|
|
45
|
+
"@lowdefy/block-utils": "4.0.0-alpha.15",
|
|
46
|
+
"@lowdefy/blocks-antd": "4.0.0-alpha.15",
|
|
47
|
+
"@lowdefy/helpers": "4.0.0-alpha.15",
|
|
48
|
+
"antd": "4.20.7",
|
|
49
|
+
"aws-sdk": "2.1145.0",
|
|
50
|
+
"react": "18.1.0",
|
|
51
|
+
"react-dom": "18.1.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@emotion/jest": "11.
|
|
55
|
-
"@lowdefy/ajv": "4.0.0-alpha.
|
|
56
|
-
"@lowdefy/block-dev": "4.0.0-alpha.
|
|
57
|
-
"@
|
|
58
|
-
"@swc/
|
|
59
|
-
"@swc/
|
|
60
|
-
"@
|
|
61
|
-
"@testing-library/
|
|
62
|
-
"@testing-library/
|
|
54
|
+
"@emotion/jest": "11.9.1",
|
|
55
|
+
"@lowdefy/ajv": "4.0.0-alpha.15",
|
|
56
|
+
"@lowdefy/block-dev": "4.0.0-alpha.15",
|
|
57
|
+
"@lowdefy/jest-yaml-transform": "4.0.0-alpha.15",
|
|
58
|
+
"@swc/cli": "0.1.57",
|
|
59
|
+
"@swc/core": "1.2.194",
|
|
60
|
+
"@swc/jest": "0.2.21",
|
|
61
|
+
"@testing-library/dom": "8.13.0",
|
|
62
|
+
"@testing-library/react": "13.3.0",
|
|
63
|
+
"@testing-library/user-event": "14.2.0",
|
|
63
64
|
"copyfiles": "2.4.1",
|
|
64
|
-
"jest": "
|
|
65
|
-
"jest-
|
|
66
|
-
"jest-
|
|
65
|
+
"jest": "28.1.0",
|
|
66
|
+
"jest-environment-jsdom": "28.1.0",
|
|
67
|
+
"jest-serializer-html": "7.1.0"
|
|
67
68
|
},
|
|
68
69
|
"publishConfig": {
|
|
69
70
|
"access": "public"
|
|
70
71
|
},
|
|
71
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "b4e4538475e997f95baa37f01f39689240e6f01c"
|
|
72
73
|
}
|