@lowdefy/plugin-aws 4.0.0-alpha.8 → 4.0.0-rc.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 +332 -0
- package/dist/blocks/S3UploadButton/S3UploadButton.js +49 -12
- package/dist/blocks/S3UploadButton/__snapshots__/S3UploadButton.mock.test.js.snap +1597 -0
- package/dist/blocks/S3UploadButton/__snapshots__/S3UploadButton.test.js.snap +281 -0
- package/dist/blocks/S3UploadButton/examples.yaml +44 -0
- package/dist/blocks/S3UploadButton/style.less +2 -2
- package/dist/blocks/S3UploadPhoto/S3UploadPhoto.js +220 -0
- package/dist/blocks/S3UploadPhoto/schema.json +83 -0
- package/dist/blocks/S3UploadPhoto/style.less +17 -0
- package/dist/blocks.js +16 -0
- package/dist/connections/AwsS3Bucket/AwsS3Bucket.js +1 -1
- package/dist/connections/AwsS3Bucket/AwsS3PresignedGetObject/AwsS3PresignedGetObject.js +1 -1
- package/dist/connections/AwsS3Bucket/AwsS3PresignedGetObject/schema.js +1 -1
- package/dist/connections/AwsS3Bucket/AwsS3PresignedPostPolicy/AwsS3PresignedPostPolicy.js +1 -1
- package/dist/connections/AwsS3Bucket/AwsS3PresignedPostPolicy/schema.js +1 -1
- package/dist/connections/AwsS3Bucket/schema.js +1 -1
- package/dist/connections.js +1 -1
- package/dist/types.js +15 -3
- package/package.json +33 -28
package/dist/connections.js
CHANGED
package/dist/types.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable import/namespace */ /*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2022 Lowdefy, Inc
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
you may not use this file except in compliance with the License.
|
|
@@ -13,8 +13,20 @@
|
|
|
13
13
|
See the License for the specific language governing permissions and
|
|
14
14
|
limitations under the License.
|
|
15
15
|
*/ import * as connections from './connections.js';
|
|
16
|
+
import * as blocks from './blocks.js';
|
|
17
|
+
const icons = {};
|
|
18
|
+
const styles = {};
|
|
19
|
+
Object.keys(blocks).forEach((block)=>{
|
|
20
|
+
icons[block] = blocks[block].meta.icons || [];
|
|
21
|
+
styles[block] = blocks[block].meta.styles || [];
|
|
22
|
+
});
|
|
16
23
|
export default {
|
|
24
|
+
blocks: Object.keys(blocks),
|
|
25
|
+
icons,
|
|
26
|
+
styles: {
|
|
27
|
+
default: [],
|
|
28
|
+
...styles
|
|
29
|
+
},
|
|
17
30
|
connections: Object.keys(connections),
|
|
18
|
-
requests: Object.keys(connections).map((connection)=>Object.keys(connections[connection].requests)
|
|
19
|
-
).flat()
|
|
31
|
+
requests: Object.keys(connections).map((connection)=>Object.keys(connections[connection].requests)).flat()
|
|
20
32
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lowdefy/plugin-aws",
|
|
3
|
-
"version": "4.0.0-
|
|
4
|
-
"
|
|
3
|
+
"version": "4.0.0-rc.0",
|
|
4
|
+
"license": "Apache-2.0",
|
|
5
5
|
"description": "",
|
|
6
6
|
"homepage": "https://lowdefy.com",
|
|
7
7
|
"keywords": [
|
|
@@ -19,6 +19,10 @@
|
|
|
19
19
|
{
|
|
20
20
|
"name": "Gerrie van Wyk",
|
|
21
21
|
"url": "https://github.com/Gervwyk"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "Stephanie Smit",
|
|
25
|
+
"url": "https://github.com/StephanieJKS"
|
|
22
26
|
}
|
|
23
27
|
],
|
|
24
28
|
"repository": {
|
|
@@ -27,46 +31,47 @@
|
|
|
27
31
|
},
|
|
28
32
|
"type": "module",
|
|
29
33
|
"exports": {
|
|
30
|
-
"
|
|
31
|
-
"./connections/*": "./dist/connections/*"
|
|
34
|
+
"./*": "./dist/*",
|
|
35
|
+
"./connections/*": "./dist/connections/*",
|
|
36
|
+
"./blocks": "./dist/blocks.js",
|
|
37
|
+
"./types": "./dist/types.js"
|
|
32
38
|
},
|
|
33
39
|
"files": [
|
|
34
40
|
"dist/*"
|
|
35
41
|
],
|
|
36
42
|
"scripts": {
|
|
37
|
-
"build": "
|
|
43
|
+
"build": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start --copy-files",
|
|
38
44
|
"clean": "rm -rf dist",
|
|
39
45
|
"copyfiles": "copyfiles -u 1 \"./src/**/*\" dist -e \"./src/**/*.js\" -e \"./src/**/*.yaml\" -e \"./src/**/*.snap\"",
|
|
40
|
-
"prepare": "
|
|
41
|
-
"swc": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start && yarn copyfiles",
|
|
42
|
-
"test": "jest --coverage"
|
|
46
|
+
"prepare": "pnpm build"
|
|
43
47
|
},
|
|
44
48
|
"dependencies": {
|
|
45
|
-
"@lowdefy/block-utils": "4.0.0-
|
|
46
|
-
"@lowdefy/blocks-antd": "4.0.0-
|
|
47
|
-
"@lowdefy/helpers": "4.0.0-
|
|
48
|
-
"antd": "4.
|
|
49
|
-
"aws-sdk": "2.
|
|
50
|
-
"react": "
|
|
51
|
-
"react-dom": "
|
|
49
|
+
"@lowdefy/block-utils": "4.0.0-rc.0",
|
|
50
|
+
"@lowdefy/blocks-antd": "4.0.0-rc.0",
|
|
51
|
+
"@lowdefy/helpers": "4.0.0-rc.0",
|
|
52
|
+
"antd": "4.22.5",
|
|
53
|
+
"aws-sdk": "2.1145.0",
|
|
54
|
+
"react": "18.2.0",
|
|
55
|
+
"react-dom": "18.2.0"
|
|
52
56
|
},
|
|
53
57
|
"devDependencies": {
|
|
54
|
-
"@emotion/jest": "11.
|
|
55
|
-
"@lowdefy/ajv": "4.0.0-
|
|
56
|
-
"@lowdefy/block-dev": "4.0.0-
|
|
57
|
-
"@
|
|
58
|
-
"@swc/
|
|
59
|
-
"@swc/
|
|
60
|
-
"@
|
|
61
|
-
"@testing-library/
|
|
62
|
-
"@testing-library/
|
|
58
|
+
"@emotion/jest": "11.9.1",
|
|
59
|
+
"@lowdefy/ajv": "4.0.0-rc.0",
|
|
60
|
+
"@lowdefy/block-dev": "4.0.0-rc.0",
|
|
61
|
+
"@lowdefy/jest-yaml-transform": "4.0.0-rc.0",
|
|
62
|
+
"@swc/cli": "0.1.57",
|
|
63
|
+
"@swc/core": "1.2.194",
|
|
64
|
+
"@swc/jest": "0.2.21",
|
|
65
|
+
"@testing-library/dom": "8.13.0",
|
|
66
|
+
"@testing-library/react": "13.3.0",
|
|
67
|
+
"@testing-library/user-event": "14.2.0",
|
|
63
68
|
"copyfiles": "2.4.1",
|
|
64
|
-
"jest": "
|
|
65
|
-
"jest-
|
|
66
|
-
"jest-
|
|
69
|
+
"jest": "28.1.0",
|
|
70
|
+
"jest-environment-jsdom": "28.1.0",
|
|
71
|
+
"jest-serializer-html": "7.1.0"
|
|
67
72
|
},
|
|
68
73
|
"publishConfig": {
|
|
69
74
|
"access": "public"
|
|
70
75
|
},
|
|
71
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "f6872d7ff6da421710096536fce7b2016ef8f35c"
|
|
72
77
|
}
|