@gravity-ui/chartkit 3.0.0-beta.3 → 3.0.0-beta.4

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.
@@ -43,6 +43,9 @@ function getPointsForInitialRefresh(chart) {
43
43
  }
44
44
  function forceHoverState(chart, activePoints) {
45
45
  const chartType = get(chart, 'userOptions.chart.type');
46
+ if (!chartType) {
47
+ return;
48
+ }
46
49
  if (chartType === 'pie') {
47
50
  chart.tooltip.refresh(activePoints);
48
51
  chart.pointsForInitialRefresh = activePoints;
@@ -205,6 +208,6 @@ export const withSplitPane = (ComposedComponent) => {
205
208
  }
206
209
  }
207
210
  return React.forwardRef((props, ref) => {
208
- return React.createElement(WithSplitPane, Object.assign({ forwardedRef: ref }, props));
211
+ return React.createElement(WithSplitPane, Object.assign({}, props, { forwardedRef: ref }));
209
212
  });
210
213
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/chartkit",
3
- "version": "3.0.0-beta.3",
3
+ "version": "3.0.0-beta.4",
4
4
  "description": "React component used to render charts based on any sources you need",
5
5
  "license": "MIT",
6
6
  "repository": "git@github.com:gravity-ui/ChartKit.git",
@@ -13,7 +13,7 @@
13
13
  "access": "public"
14
14
  },
15
15
  "dependencies": {
16
- "@gravity-ui/yagr": "^3.3.1",
16
+ "@gravity-ui/yagr": "^3.3.2",
17
17
  "bem-cn-lite": "^4.1.0",
18
18
  "highcharts": "^8.2.2",
19
19
  "highcharts-react-official": "^3.0.0",