echarts-for-react 3.0.0 → 3.0.1

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/esm/types.d.ts CHANGED
@@ -6,6 +6,7 @@ export declare type Opts = {
6
6
  readonly renderer?: 'canvas' | 'svg';
7
7
  readonly width?: number | null | undefined | 'auto';
8
8
  readonly height?: number | null | undefined | 'auto';
9
+ readonly locale?: string;
9
10
  };
10
11
  export declare type EChartsReactProps = {
11
12
  /**
package/esm/types.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"","sourcesContent":["import { CSSProperties } from 'react';\n\nexport type EChartsOption = any;\n\nexport type EChartsInstance = any;\n\nexport type Opts = {\n readonly devicePixelRatio?: number;\n readonly renderer?: 'canvas' | 'svg';\n readonly width?: number | null | undefined | 'auto';\n readonly height?: number | null | undefined | 'auto';\n};\n\nexport type EChartsReactProps = {\n /**\n * echarts library entry, use it for import necessary.\n */\n readonly echarts?: any;\n /**\n * `className` for container\n */\n readonly className?: string;\n /**\n * `style` for container\n */\n readonly style?: CSSProperties;\n /**\n * echarts option\n */\n readonly option: EChartsOption;\n /**\n * echarts theme config, can be:\n * 1. theme name string\n * 2. theme object\n */\n readonly theme?: string | Record<string, any>;\n /**\n * notMerge config for echarts, default is `false`\n */\n readonly notMerge?: boolean;\n /**\n * lazyUpdate config for echarts, default is `false`\n */\n readonly lazyUpdate?: boolean;\n /**\n * showLoading config for echarts, default is `false`\n */\n readonly showLoading?: boolean;\n /**\n * loadingOption config for echarts, default is `null`\n */\n readonly loadingOption?: any;\n /**\n * echarts opts config, default is `{}`\n */\n readonly opts?: Opts;\n /**\n * when after chart reander, do the callback widht echarts instance\n */\n readonly onChartReady?: (instance: EChartsInstance) => void;\n /**\n * bind events, default is `{}`\n */\n readonly onEvents?: Record<string, Function>;\n /**\n * should update echarts options\n */\n readonly shouldSetOption?: (prevProps: EChartsReactProps, props: EChartsReactProps) => boolean;\n};\n"]}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"","sourcesContent":["import { CSSProperties } from 'react';\n\nexport type EChartsOption = any;\n\nexport type EChartsInstance = any;\n\nexport type Opts = {\n readonly devicePixelRatio?: number;\n readonly renderer?: 'canvas' | 'svg';\n readonly width?: number | null | undefined | 'auto';\n readonly height?: number | null | undefined | 'auto';\n readonly locale?: string;\n};\n\nexport type EChartsReactProps = {\n /**\n * echarts library entry, use it for import necessary.\n */\n readonly echarts?: any;\n /**\n * `className` for container\n */\n readonly className?: string;\n /**\n * `style` for container\n */\n readonly style?: CSSProperties;\n /**\n * echarts option\n */\n readonly option: EChartsOption;\n /**\n * echarts theme config, can be:\n * 1. theme name string\n * 2. theme object\n */\n readonly theme?: string | Record<string, any>;\n /**\n * notMerge config for echarts, default is `false`\n */\n readonly notMerge?: boolean;\n /**\n * lazyUpdate config for echarts, default is `false`\n */\n readonly lazyUpdate?: boolean;\n /**\n * showLoading config for echarts, default is `false`\n */\n readonly showLoading?: boolean;\n /**\n * loadingOption config for echarts, default is `null`\n */\n readonly loadingOption?: any;\n /**\n * echarts opts config, default is `{}`\n */\n readonly opts?: Opts;\n /**\n * when after chart reander, do the callback widht echarts instance\n */\n readonly onChartReady?: (instance: EChartsInstance) => void;\n /**\n * bind events, default is `{}`\n */\n readonly onEvents?: Record<string, Function>;\n /**\n * should update echarts options\n */\n readonly shouldSetOption?: (prevProps: EChartsReactProps, props: EChartsReactProps) => boolean;\n};\n"]}
package/lib/types.d.ts CHANGED
@@ -6,6 +6,7 @@ export declare type Opts = {
6
6
  readonly renderer?: 'canvas' | 'svg';
7
7
  readonly width?: number | null | undefined | 'auto';
8
8
  readonly height?: number | null | undefined | 'auto';
9
+ readonly locale?: string;
9
10
  };
10
11
  export declare type EChartsReactProps = {
11
12
  /**
package/lib/types.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"","sourcesContent":["import { CSSProperties } from 'react';\n\nexport type EChartsOption = any;\n\nexport type EChartsInstance = any;\n\nexport type Opts = {\n readonly devicePixelRatio?: number;\n readonly renderer?: 'canvas' | 'svg';\n readonly width?: number | null | undefined | 'auto';\n readonly height?: number | null | undefined | 'auto';\n};\n\nexport type EChartsReactProps = {\n /**\n * echarts library entry, use it for import necessary.\n */\n readonly echarts?: any;\n /**\n * `className` for container\n */\n readonly className?: string;\n /**\n * `style` for container\n */\n readonly style?: CSSProperties;\n /**\n * echarts option\n */\n readonly option: EChartsOption;\n /**\n * echarts theme config, can be:\n * 1. theme name string\n * 2. theme object\n */\n readonly theme?: string | Record<string, any>;\n /**\n * notMerge config for echarts, default is `false`\n */\n readonly notMerge?: boolean;\n /**\n * lazyUpdate config for echarts, default is `false`\n */\n readonly lazyUpdate?: boolean;\n /**\n * showLoading config for echarts, default is `false`\n */\n readonly showLoading?: boolean;\n /**\n * loadingOption config for echarts, default is `null`\n */\n readonly loadingOption?: any;\n /**\n * echarts opts config, default is `{}`\n */\n readonly opts?: Opts;\n /**\n * when after chart reander, do the callback widht echarts instance\n */\n readonly onChartReady?: (instance: EChartsInstance) => void;\n /**\n * bind events, default is `{}`\n */\n readonly onEvents?: Record<string, Function>;\n /**\n * should update echarts options\n */\n readonly shouldSetOption?: (prevProps: EChartsReactProps, props: EChartsReactProps) => boolean;\n};\n"]}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"","sourcesContent":["import { CSSProperties } from 'react';\n\nexport type EChartsOption = any;\n\nexport type EChartsInstance = any;\n\nexport type Opts = {\n readonly devicePixelRatio?: number;\n readonly renderer?: 'canvas' | 'svg';\n readonly width?: number | null | undefined | 'auto';\n readonly height?: number | null | undefined | 'auto';\n readonly locale?: string;\n};\n\nexport type EChartsReactProps = {\n /**\n * echarts library entry, use it for import necessary.\n */\n readonly echarts?: any;\n /**\n * `className` for container\n */\n readonly className?: string;\n /**\n * `style` for container\n */\n readonly style?: CSSProperties;\n /**\n * echarts option\n */\n readonly option: EChartsOption;\n /**\n * echarts theme config, can be:\n * 1. theme name string\n * 2. theme object\n */\n readonly theme?: string | Record<string, any>;\n /**\n * notMerge config for echarts, default is `false`\n */\n readonly notMerge?: boolean;\n /**\n * lazyUpdate config for echarts, default is `false`\n */\n readonly lazyUpdate?: boolean;\n /**\n * showLoading config for echarts, default is `false`\n */\n readonly showLoading?: boolean;\n /**\n * loadingOption config for echarts, default is `null`\n */\n readonly loadingOption?: any;\n /**\n * echarts opts config, default is `{}`\n */\n readonly opts?: Opts;\n /**\n * when after chart reander, do the callback widht echarts instance\n */\n readonly onChartReady?: (instance: EChartsInstance) => void;\n /**\n * bind events, default is `{}`\n */\n readonly onEvents?: Record<string, Function>;\n /**\n * should update echarts options\n */\n readonly shouldSetOption?: (prevProps: EChartsReactProps, props: EChartsReactProps) => boolean;\n};\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "echarts-for-react",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": " Apache Echarts components for React.",
5
5
  "main": "lib/index.js",
6
6
  "module": "esm/index.js",
@@ -46,24 +46,24 @@
46
46
  },
47
47
  "homepage": "https://github.com/hustcc/echarts-for-react",
48
48
  "devDependencies": {
49
- "@commitlint/cli": "^11.0.0",
50
- "@commitlint/config-angular": "^11.0.0",
49
+ "@commitlint/cli": "^12.0.0",
50
+ "@commitlint/config-angular": "^12.0.0",
51
51
  "@types/jest": "^26.0.20",
52
- "@types/node": "^14.14.30",
52
+ "@types/node": "^14.14.31",
53
53
  "@types/react": "^17.0.2",
54
- "@typescript-eslint/eslint-plugin": "^4.15.1",
55
- "@typescript-eslint/parser": "^4.15.1",
54
+ "@typescript-eslint/eslint-plugin": "^4.15.2",
55
+ "@typescript-eslint/parser": "^4.15.2",
56
56
  "cross-env": "^7.0.3",
57
- "dumi": "^1.1.4",
58
- "dumi-theme-default": "^1.0.4",
57
+ "dumi": "^1.1.6",
58
+ "dumi-theme-default": "^1.0.6",
59
59
  "echarts": "^5.0.2",
60
60
  "echarts-gl": "^2.0.2",
61
61
  "eslint": "^7.20.0",
62
- "eslint-config-prettier": "^7.2.0",
62
+ "eslint-config-prettier": "^8.1.0",
63
63
  "eslint-plugin-import": "^2.22.1",
64
64
  "eslint-plugin-prettier": "^3.3.1",
65
65
  "gh-pages": "^3.1.0",
66
- "husky": "^5.0.9",
66
+ "husky": "^5.1.1",
67
67
  "jest": "^26.6.3",
68
68
  "jest-canvas-mock": "^2.3.1",
69
69
  "jest-electron": "^0.1.11",
@@ -74,9 +74,9 @@
74
74
  "npm-run-all": "^4.1.5",
75
75
  "prettier": "^2.2.1",
76
76
  "rimraf": "^3.0.2",
77
- "ts-jest": "^26.5.1",
77
+ "ts-jest": "^26.5.2",
78
78
  "ts-loader": "^8.0.17",
79
- "typescript": "^4.1.5"
79
+ "typescript": "^4.2.2"
80
80
  },
81
81
  "dependencies": {
82
82
  "size-sensor": "^1.0.1",
package/src/types.ts CHANGED
@@ -9,6 +9,7 @@ export type Opts = {
9
9
  readonly renderer?: 'canvas' | 'svg';
10
10
  readonly width?: number | null | undefined | 'auto';
11
11
  readonly height?: number | null | undefined | 'auto';
12
+ readonly locale?: string;
12
13
  };
13
14
 
14
15
  export type EChartsReactProps = {