@lowdefy/blocks-echarts 4.5.2 → 4.7.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.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2024 Lowdefy, Inc
2
+ Copyright 2020-2026 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.
@@ -0,0 +1,99 @@
1
+ /*
2
+ Copyright 2020-2026 Lowdefy, Inc
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ */ export default {
16
+ type: 'object',
17
+ properties: {
18
+ type: 'object',
19
+ additionalProperties: false,
20
+ properties: {
21
+ option: {
22
+ type: 'object',
23
+ description: 'EChart settings object.',
24
+ docs: {
25
+ displayType: 'yaml'
26
+ }
27
+ },
28
+ theme: {
29
+ type: 'object',
30
+ description: 'EChart theme object.',
31
+ docs: {
32
+ displayType: 'yaml'
33
+ }
34
+ },
35
+ width: {
36
+ type: [
37
+ 'number',
38
+ 'string'
39
+ ],
40
+ default: 'auto',
41
+ description: 'Specify chart width explicitly, in pixel.',
42
+ docs: {
43
+ displayType: 'string'
44
+ }
45
+ },
46
+ height: {
47
+ type: [
48
+ 'number',
49
+ 'string'
50
+ ],
51
+ default: 'auto',
52
+ description: 'Specify chart height explicitly, in pixel.',
53
+ docs: {
54
+ displayType: 'string'
55
+ }
56
+ },
57
+ init: {
58
+ type: 'object',
59
+ description: 'EChart init object.',
60
+ properties: {
61
+ renderer: {
62
+ type: 'string',
63
+ enum: [
64
+ 'canvas',
65
+ 'svg'
66
+ ],
67
+ default: 'canvas',
68
+ description: 'Chart renderer.'
69
+ },
70
+ locale: {
71
+ type: 'string',
72
+ enum: [
73
+ 'EN',
74
+ 'ZH'
75
+ ],
76
+ default: 'EN',
77
+ description: 'Specify the locale.'
78
+ }
79
+ }
80
+ },
81
+ style: {
82
+ type: 'object',
83
+ description: 'Css style object to apply to EChart div.',
84
+ docs: {
85
+ displayType: 'yaml'
86
+ }
87
+ }
88
+ }
89
+ },
90
+ events: {
91
+ type: 'object',
92
+ properties: {
93
+ click: {
94
+ type: 'array',
95
+ description: 'Trigger actions when the element is clicked.'
96
+ }
97
+ }
98
+ }
99
+ };
package/dist/blocks.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2024 Lowdefy, Inc
2
+ Copyright 2020-2026 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.
@@ -0,0 +1,15 @@
1
+ /*
2
+ Copyright 2020-2026 Lowdefy, Inc
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ */ export { default as EChart } from './blocks/EChart/schema.js';
package/dist/types.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable import/namespace */ /*
2
- Copyright 2020-2024 Lowdefy, Inc
2
+ Copyright 2020-2026 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lowdefy/blocks-echarts",
3
- "version": "4.5.2",
3
+ "version": "4.7.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "ECharts Blocks for Lowdefy.",
6
6
  "homepage": "https://lowdefy.com",
@@ -36,32 +36,23 @@
36
36
  "exports": {
37
37
  "./*": "./dist/*",
38
38
  "./blocks": "./dist/blocks.js",
39
+ "./schemas": "./dist/schemas.js",
39
40
  "./types": "./dist/types.js"
40
41
  },
41
42
  "files": [
42
43
  "dist/*"
43
44
  ],
44
45
  "dependencies": {
45
- "@lowdefy/block-utils": "4.5.2",
46
+ "@lowdefy/block-utils": "4.7.0",
46
47
  "echarts": "5.5.1",
47
48
  "echarts-for-react": "3.0.2",
48
49
  "react": "18.2.0",
49
50
  "react-dom": "18.2.0"
50
51
  },
51
52
  "devDependencies": {
52
- "@emotion/jest": "11.10.5",
53
- "@lowdefy/block-dev": "4.5.2",
54
- "@lowdefy/jest-yaml-transform": "4.5.2",
55
53
  "@swc/cli": "0.1.63",
56
54
  "@swc/core": "1.3.99",
57
- "@swc/jest": "0.2.29",
58
- "@testing-library/dom": "8.19.1",
59
- "@testing-library/react": "13.4.0",
60
- "@testing-library/user-event": "14.4.3",
61
- "copyfiles": "2.4.1",
62
- "jest": "28.1.3",
63
- "jest-environment-jsdom": "28.1.3",
64
- "jest-serializer-html": "7.1.0"
55
+ "copyfiles": "2.4.1"
65
56
  },
66
57
  "publishConfig": {
67
58
  "access": "public"
@@ -69,7 +60,6 @@
69
60
  "scripts": {
70
61
  "build": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start && pnpm copyfiles",
71
62
  "clean": "rm -rf dist",
72
- "copyfiles": "copyfiles -u 1 \"./src/**/*\" dist -e \"./src/**/*.js\" -e \"./src/**/*.yaml\" -e \"./src/**/*.snap\"",
73
- "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js"
63
+ "copyfiles": "copyfiles -u 1 \"./src/**/*\" dist -e \"./src/**/*.js\" -e \"./src/**/*.yaml\" -e \"./src/**/*.snap\""
74
64
  }
75
65
  }