@lowdefy/blocks-basic 4.0.0-alpha.1 → 4.0.0-alpha.4

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.
Files changed (2) hide show
  1. package/dist/types.js +16 -15
  2. package/package.json +6 -5
package/dist/types.js CHANGED
@@ -1,4 +1,4 @@
1
- /*
1
+ /* eslint-disable import/namespace */ /*
2
2
  Copyright 2020-2021 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
@@ -12,18 +12,19 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ export default {
16
- blocks: [
17
- 'Anchor',
18
- 'Box',
19
- 'DangerousHtml',
20
- 'Html',
21
- 'Icon',
22
- 'Img',
23
- 'List',
24
- 'Span'
25
- ],
26
- styles: [
27
- 'style.less'
28
- ]
15
+ */ import * as blocks from './blocks.js';
16
+ const styles = {
29
17
  };
18
+ Object.keys(blocks).forEach((block)=>{
19
+ styles[block] = blocks[block].styles || [];
20
+ });
21
+ export default {
22
+ blocks: Object.keys(blocks),
23
+ styles: {
24
+ default: [],
25
+ ...styles
26
+ }
27
+ }; // export default {
28
+ // blocks: ['Anchor', 'Box', 'DangerousHtml', 'Html', 'Icon', 'Img', 'List', 'Span'],
29
+ // styles: { default: ['style.less'], Anchor: ['blocks/Anchor/style.less'] },
30
+ // };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lowdefy/blocks-basic",
3
- "version": "4.0.0-alpha.1",
3
+ "version": "4.0.0-alpha.4",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Basic html Lowdefy blocks.",
6
6
  "homepage": "https://lowdefy.com",
@@ -27,6 +27,7 @@
27
27
  },
28
28
  "type": "module",
29
29
  "exports": {
30
+ "./*": "./dist/*",
30
31
  "./blocks": "./dist/blocks.js",
31
32
  "./types": "./dist/types.js"
32
33
  },
@@ -43,8 +44,8 @@
43
44
  "test": "jest --coverage"
44
45
  },
45
46
  "dependencies": {
46
- "@lowdefy/block-utils": "4.0.0-alpha.1",
47
- "@lowdefy/helpers": "4.0.0-alpha.1",
47
+ "@lowdefy/block-utils": "4.0.0-alpha.4",
48
+ "@lowdefy/helpers": "4.0.0-alpha.4",
48
49
  "dompurify": "2.3.3",
49
50
  "react": "18.0.0-alpha-327d5c484-20211106",
50
51
  "react-dom": "18.0.0-alpha-327d5c484-20211106"
@@ -52,7 +53,7 @@
52
53
  "devDependencies": {
53
54
  "@babel/preset-react": "7.16.0",
54
55
  "@emotion/jest": "11.5.0",
55
- "@lowdefy/block-dev": "4.0.0-alpha.1",
56
+ "@lowdefy/block-dev": "4.0.0-alpha.4",
56
57
  "@swc/cli": "0.1.52",
57
58
  "@swc/core": "1.2.112",
58
59
  "@swc/jest": "0.2.9",
@@ -67,5 +68,5 @@
67
68
  "publishConfig": {
68
69
  "access": "public"
69
70
  },
70
- "gitHead": "c97a8fa6b5a641e7d50df09f5601a9c586eeb65a"
71
+ "gitHead": "537d166ba3f6e017b8a61c2a7e5c12fd0a48bf67"
71
72
  }