@fanciers/echarts-react 0.0.2 → 0.0.3

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/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import { CanvasRenderer, SVGRenderer } from "echarts/renderers";
2
2
  import React from "react";
3
3
  import { LineSeriesOption, PieSeriesOption } from "echarts/charts";
4
4
  import * as echarts from "echarts/core";
5
- import { BarSeriesOption, BrushComponentOption, ComposeOption, DataZoomComponentOption, DatasetComponentOption, GeoComponentOption, GraphicComponentOption, GridComponentOption, LegendComponentOption, MarkAreaComponentOption, MarkLineComponentOption, MarkPointComponentOption, MatrixComponentOption, PolarComponentOption, TimelineComponentOption, TitleComponentOption, ToolboxComponentOption, TooltipComponentOption, VisualMapComponentOption } from "echarts";
5
+ import { BarSeriesOption, BrushComponentOption, CalendarComponentOption, ComposeOption, DataZoomComponentOption, DatasetComponentOption, GeoComponentOption, GraphicComponentOption, GridComponentOption, LegendComponentOption, MarkAreaComponentOption, MarkLineComponentOption, MarkPointComponentOption, MatrixComponentOption, PolarComponentOption, ScatterSeriesOption, TimelineComponentOption, TitleComponentOption, ToolboxComponentOption, TooltipComponentOption, VisualMapComponentOption } from "echarts";
6
6
  import { ComponentOption } from "echarts/types/src/util/types.js";
7
7
 
8
8
  //#region src/shared.d.ts
@@ -29,9 +29,11 @@ interface ChartComponentType<T extends ComponentOption> {
29
29
  declare const BarChart: ChartComponentType<BarSeriesOption | GridComponentOption>;
30
30
  declare const LineChart: ChartComponentType<GridComponentOption | LineSeriesOption>;
31
31
  declare const PieChart: ChartComponentType<PieSeriesOption>;
32
+ declare const ScatterChart: ChartComponentType<ScatterSeriesOption>;
32
33
  //#endregion
33
34
  //#region src/components.d.ts
34
35
  declare const Brush: (props: ComposeOption<BrushComponentOption>) => null;
36
+ declare const Calendar: (props: ComposeOption<CalendarComponentOption>) => null;
35
37
  declare const Dataset: (props: ComposeOption<DatasetComponentOption>) => null;
36
38
  declare const DataZoom: (props: ComposeOption<DataZoomComponentOption>) => null;
37
39
  declare const Geo: (props: ComposeOption<GeoComponentOption>) => null;
@@ -51,4 +53,4 @@ declare const VisualMap: (props: ComposeOption<VisualMapComponentOption>) => nul
51
53
  //#region src/features.d.ts
52
54
  declare function AxisBreak(): null;
53
55
  //#endregion
54
- export { AxisBreak, BarChart, Brush, CanvasRenderer, DataZoom, Dataset, Geo, Graphic, Legend, LineChart, MarkArea, MarkLine, MarkPoint, Matrix, PieChart, Polar, SVGRenderer, Timeline, Title, Toolbox, Tooltip, VisualMap, echarts };
56
+ export { AxisBreak, BarChart, Brush, Calendar, CanvasRenderer, DataZoom, Dataset, Geo, Graphic, Legend, LineChart, MarkArea, MarkLine, MarkPoint, Matrix, PieChart, Polar, SVGRenderer, ScatterChart, Timeline, Title, Toolbox, Tooltip, VisualMap, echarts };
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { CanvasRenderer, SVGRenderer } from "echarts/renderers";
2
2
  import React from "react";
3
- import { BarChart as BarChart$1, LineChart as LineChart$1, PieChart as PieChart$1 } from "echarts/charts";
4
- import { BrushComponent, DataZoomComponent, DatasetComponent, GeoComponent, GraphicComponent, GridComponent, LegendComponent, MarkAreaComponent, MarkLineComponent, MarkPointComponent, MatrixComponent, PolarComponent, TimelineComponent, TitleComponent, ToolboxComponent, TooltipComponent, TransformComponent, VisualMapComponent } from "echarts/components";
3
+ import { BarChart as BarChart$1, LineChart as LineChart$1, PieChart as PieChart$1, ScatterChart as ScatterChart$1 } from "echarts/charts";
4
+ import { BrushComponent, CalendarComponent, DataZoomComponent, DatasetComponent, GeoComponent, GraphicComponent, GridComponent, LegendComponent, MarkAreaComponent, MarkLineComponent, MarkPointComponent, MatrixComponent, PolarComponent, TimelineComponent, TitleComponent, ToolboxComponent, TooltipComponent, TransformComponent, VisualMapComponent } from "echarts/components";
5
5
  import * as echarts from "echarts/core";
6
6
  import { jsx, jsxs } from "react/jsx-runtime";
7
7
  import { AxisBreak as AxisBreak$1 } from "echarts/features";
@@ -79,6 +79,7 @@ function defineChart(ext) {
79
79
  const BarChart = /* @__PURE__ */ defineChart([BarChart$1, GridComponent]);
80
80
  const LineChart = /* @__PURE__ */ defineChart([LineChart$1, GridComponent]);
81
81
  const PieChart = /* @__PURE__ */ defineChart([PieChart$1]);
82
+ const ScatterChart = /* @__PURE__ */ defineChart([ScatterChart$1]);
82
83
 
83
84
  //#endregion
84
85
  //#region src/components.tsx
@@ -95,6 +96,7 @@ function defineComponent(ext) {
95
96
  };
96
97
  }
97
98
  const Brush = /* @__PURE__ */ defineComponent([BrushComponent]);
99
+ const Calendar = /* @__PURE__ */ defineComponent([CalendarComponent]);
98
100
  const Dataset = /* @__PURE__ */ defineComponent([DatasetComponent, TransformComponent]);
99
101
  const DataZoom = /* @__PURE__ */ defineComponent([DataZoomComponent]);
100
102
  const Geo = /* @__PURE__ */ defineComponent([GeoComponent]);
@@ -121,4 +123,4 @@ function AxisBreak() {
121
123
  }
122
124
 
123
125
  //#endregion
124
- export { AxisBreak, BarChart, Brush, CanvasRenderer, DataZoom, Dataset, Geo, Graphic, Legend, LineChart, MarkArea, MarkLine, MarkPoint, Matrix, PieChart, Polar, SVGRenderer, Timeline, Title, Toolbox, Tooltip, VisualMap, echarts };
126
+ export { AxisBreak, BarChart, Brush, Calendar, CanvasRenderer, DataZoom, Dataset, Geo, Graphic, Legend, LineChart, MarkArea, MarkLine, MarkPoint, Matrix, PieChart, Polar, SVGRenderer, ScatterChart, Timeline, Title, Toolbox, Tooltip, VisualMap, echarts };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fanciers/echarts-react",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "ECharts <3 React",
5
5
  "author": "Tmk <i@tmk.im>",
6
6
  "keywords": [
@@ -27,17 +27,17 @@
27
27
  "url": "https://github.com/tmkx/echarts-react.git"
28
28
  },
29
29
  "devDependencies": {
30
- "@rsbuild/core": "^1.5.1",
31
- "@rsbuild/plugin-react": "^1.3.5",
32
- "@storybook/addon-docs": "^9.1.3",
33
- "@storybook/react": "^9.1.3",
34
- "@types/node": "^24.3.0",
30
+ "@rsbuild/core": "^1.5.3",
31
+ "@rsbuild/plugin-react": "^1.4.0",
32
+ "@storybook/addon-docs": "^9.1.4",
33
+ "@storybook/react": "^9.1.4",
34
+ "@types/node": "^24.3.1",
35
35
  "@types/react": "^19.1.12",
36
- "@types/react-dom": "^19.1.8",
36
+ "@types/react-dom": "^19.1.9",
37
37
  "echarts": "^6.0.0",
38
38
  "react": "^19.1.1",
39
39
  "react-dom": "^19.1.1",
40
- "storybook": "^9.1.3",
40
+ "storybook": "^9.1.4",
41
41
  "storybook-react-rsbuild": "^2.1.0",
42
42
  "swr": "^2.3.6",
43
43
  "tsdown": "^0.14.2",