@lowdefy/blocks-echarts 4.0.0-alpha.7 → 4.0.0-alpha.8

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 CHANGED
@@ -45,15 +45,16 @@ pages:
45
45
  type: line
46
46
  ```
47
47
 
48
+ <!-- TODO
48
49
  ## Other Lowdefy Blocks Packages
49
50
 
50
51
  - [@lowdefy/blocks-template](https://github.com/lowdefy/blocks-template): Lowdefy template for creating blocks.
51
52
  - [@lowdefy/blocks-basic](https://github.com/lowdefy/lowdefy/tree/main/packages/blocks/blocksBasic): Official Lowdefy blocks some basic Html elements.
52
53
  - [@lowdefy/blocks-antd](https://github.com/lowdefy/lowdefy/tree/main/packages/blocks/blocksAntd): Official Lowdefy blocks for [Antd design](https://ant.design/).
53
- - [@lowdefy/blocks-color-selectors](https://github.com/lowdefy/lowdefy/tree/main/packages/blocks/blocksColorSelectorsd): Official Lowdefy blocks for [react-color](https://casesandberg.github.io/react-color/).
54
+ - [@lowdefy/blocks-color-selectors](https://github.com/lowdefy/lowdefy/tree/main/packages/blocks/blocksColorSelectors): Official Lowdefy blocks for [react-colorful](https://casesandberg.github.io/react-colorful/).
54
55
  - [@lowdefy/blocks-markdown](https://github.com/lowdefy/lowdefy/tree/main/packages/blocks/blocksMarkdown): Official Lowdefy blocks to render Markdown.
55
56
  - [@lowdefy/blocks-amcharts](https://github.com/lowdefy/blocks-amcharts): Lowdefy blocks to render [AmCharts v4](https://www.amcharts.com/).
56
- - [@lowdefy/blocks-aggrid](https://github.com/lowdefy/blocks-aggrid): Lowdefy blocks to render [Ag-Grid](https://www.ag-grid.com/) tables.
57
+ - [@lowdefy/blocks-aggrid](https://github.com/lowdefy/blocks-aggrid): Lowdefy blocks to render [Ag-Grid](https://www.ag-grid.com/) tables. -->
57
58
 
58
59
  ## More Lowdefy resources
59
60
 
@@ -1,4 +1,3 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
1
  /*
3
2
  Copyright 2020-2021 Lowdefy, Inc
4
3
 
@@ -25,24 +24,23 @@ let EChart = class EChart extends React.Component {
25
24
  });
26
25
  }
27
26
  render() {
28
- return(/*#__PURE__*/ _jsx("div", {
27
+ return(/*#__PURE__*/ React.createElement("div", {
29
28
  style: {
30
29
  height: this.props.properties.height || 300,
31
30
  width: this.props.properties.width || '100%'
31
+ }
32
+ }, /*#__PURE__*/ React.createElement(ReactECharts, {
33
+ lazyUpdate: true,
34
+ notMerge: true,
35
+ onEvents: this.onEvents || {},
36
+ option: this.props.properties.option || {},
37
+ opts: {
38
+ height: this.props.properties.height || 300,
39
+ ...this.props.properties.init || {}
32
40
  },
33
- children: /*#__PURE__*/ _jsx(ReactECharts, {
34
- lazyUpdate: true,
35
- notMerge: true,
36
- onEvents: this.onEvents || {},
37
- option: this.props.properties.option || {},
38
- opts: {
39
- height: this.props.properties.height || 300,
40
- ...this.props.properties.init || {}
41
- },
42
- style: this.props.properties.style || {},
43
- theme: this.props.properties.theme && `custom_theme_${this.props.blockId}`
44
- })
45
- }));
41
+ style: this.props.properties.style || {},
42
+ theme: this.props.properties.theme && `custom_theme_${this.props.blockId}`
43
+ })));
46
44
  }
47
45
  constructor(props){
48
46
  super(props);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lowdefy/blocks-echarts",
3
- "version": "4.0.0-alpha.7",
3
+ "version": "4.0.0-alpha.8",
4
4
  "license": "Apache-2.0",
5
5
  "description": "ECharts Blocks for Lowdefy.",
6
6
  "homepage": "https://lowdefy.com",
@@ -51,15 +51,15 @@
51
51
  "test": "jest --coverage"
52
52
  },
53
53
  "dependencies": {
54
- "@lowdefy/block-utils": "4.0.0-alpha.7",
54
+ "@lowdefy/block-utils": "4.0.0-alpha.8",
55
55
  "echarts": "5.3.0",
56
56
  "echarts-for-react": "3.0.2",
57
- "react": "18.0.0-rc.0",
58
- "react-dom": "18.0.0-rc.0"
57
+ "react": "17.0.2",
58
+ "react-dom": "17.0.2"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@emotion/jest": "11.7.1",
62
- "@lowdefy/block-dev": "4.0.0-alpha.7",
62
+ "@lowdefy/block-dev": "4.0.0-alpha.8",
63
63
  "@swc/cli": "0.1.55",
64
64
  "@swc/core": "1.2.135",
65
65
  "@swc/jest": "0.2.17",
@@ -74,5 +74,5 @@
74
74
  "publishConfig": {
75
75
  "access": "public"
76
76
  },
77
- "gitHead": "52ec14639d00de910cf9b8ab25bf933ca891cff5"
77
+ "gitHead": "9d56b83cf45e868afe3a1eeba750fe826eb74c8c"
78
78
  }