@lowdefy/blocks-echarts 4.0.0-alpha.4 → 4.0.0-alpha.5

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.
@@ -134,4 +134,14 @@ let EChart = class EChart extends React.Component {
134
134
  }
135
135
  };
136
136
  EChart.defaultProps = blockDefaultProps;
137
+ EChart.meta = {
138
+ category: 'display',
139
+ loading: {
140
+ type: 'Skeleton',
141
+ properties: {
142
+ height: 300
143
+ }
144
+ }
145
+ };
146
+ EChart.styles = [];
137
147
  export default EChart;
@@ -12,12 +12,4 @@
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
- */ import EChart from './blocks/EChart';
16
- export default {
17
- blocks: {
18
- EChart
19
- },
20
- import: {
21
- styles: []
22
- }
23
- };
15
+ */ export { default as EChart } from './blocks/EChart/EChart.js';
@@ -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,16 @@
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
- import: {
17
- block: 'blocks/EChart/EChart.js',
18
- styles: []
19
- },
20
- meta: {
21
- category: 'display',
22
- loading: {
23
- type: 'Skeleton',
24
- properties: {
25
- height: 300
26
- }
27
- }
15
+ */ import * as blocks from './blocks.js';
16
+ const styles = {
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
28
26
  }
29
27
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lowdefy/blocks-echarts",
3
- "version": "4.0.0-alpha.4",
3
+ "version": "4.0.0-alpha.5",
4
4
  "license": "Apache-2.0",
5
5
  "description": "ECharts Blocks for Lowdefy.",
6
6
  "homepage": "https://lowdefy.com",
@@ -28,7 +28,11 @@
28
28
  "url": "https://github.com/lowdefy/lowdefy.git"
29
29
  },
30
30
  "type": "module",
31
- "exports": "./dist/index.js",
31
+ "exports": {
32
+ "./*": "./dist/*",
33
+ "./blocks": "./dist/blocks.js",
34
+ "./types": "./dist/types.js"
35
+ },
32
36
  "files": [
33
37
  "dist/*"
34
38
  ],
@@ -42,7 +46,7 @@
42
46
  "test": "jest --coverage"
43
47
  },
44
48
  "dependencies": {
45
- "@lowdefy/block-utils": "4.0.0-alpha.4",
49
+ "@lowdefy/block-utils": "4.0.0-alpha.5",
46
50
  "echarts": "5.2.1",
47
51
  "echarts-for-react": "3.0.1",
48
52
  "react": "18.0.0-alpha-327d5c484-20211106",
@@ -51,7 +55,7 @@
51
55
  "devDependencies": {
52
56
  "@babel/preset-react": "7.16.0",
53
57
  "@emotion/jest": "11.5.0",
54
- "@lowdefy/block-dev": "4.0.0-alpha.4",
58
+ "@lowdefy/block-dev": "4.0.0-alpha.5",
55
59
  "@swc/cli": "0.1.52",
56
60
  "@swc/core": "1.2.112",
57
61
  "@swc/jest": "0.2.9",
@@ -66,5 +70,5 @@
66
70
  "publishConfig": {
67
71
  "access": "public"
68
72
  },
69
- "gitHead": "537d166ba3f6e017b8a61c2a7e5c12fd0a48bf67"
73
+ "gitHead": "995fcdb020927f3cdc626fc99c15a2e4137bd962"
70
74
  }