@lowdefy/plugin-aws 4.0.0-alpha.11 → 4.0.0-alpha.14

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(/*#__PURE__*/ React.createElement(Upload, {
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.11",
4
- "licence": "Apache-2.0",
3
+ "version": "4.0.0-alpha.14",
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.11",
46
- "@lowdefy/blocks-antd": "4.0.0-alpha.11",
47
- "@lowdefy/helpers": "4.0.0-alpha.11",
48
- "antd": "4.18.2",
49
- "aws-sdk": "2.1066.0",
50
- "react": "17.0.2",
51
- "react-dom": "17.0.2"
45
+ "@lowdefy/block-utils": "4.0.0-alpha.14",
46
+ "@lowdefy/blocks-antd": "4.0.0-alpha.14",
47
+ "@lowdefy/helpers": "4.0.0-alpha.14",
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.7.1",
55
- "@lowdefy/ajv": "4.0.0-alpha.11",
56
- "@lowdefy/block-dev": "4.0.0-alpha.11",
57
- "@swc/cli": "0.1.55",
58
- "@swc/core": "1.2.135",
59
- "@swc/jest": "0.2.17",
60
- "@testing-library/dom": "8.11.3",
61
- "@testing-library/react": "13.0.0-alpha.4",
62
- "@testing-library/user-event": "14.0.0-alpha.14",
54
+ "@emotion/jest": "11.9.1",
55
+ "@lowdefy/ajv": "4.0.0-alpha.14",
56
+ "@lowdefy/block-dev": "4.0.0-alpha.14",
57
+ "@lowdefy/jest-yaml-transform": "4.0.0-alpha.14",
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": "27.5.1",
65
- "jest-serializer-html": "7.1.0",
66
- "jest-transform-yaml": "1.0.0"
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": "810fb2d8cb9ee8b0586b55fbbf26a5a5a0da3b2a"
72
+ "gitHead": "9cc0b7280c82a16689c31aaf71be278f3a40edc6"
72
73
  }