@gravity-ui/chartkit 4.0.0-beta.3 → 4.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.
@@ -6,7 +6,6 @@ import { settings } from '../../../../libs';
6
6
  import { settingsEventEmitter } from '../../../../libs/settings/settings';
7
7
  import { markChartPerformance, getChartPerformanceDuration, getRandomCKId } from '../../../../utils';
8
8
  import { getGraph } from '../helpers/graph';
9
- import { initHighchartsModules } from '../helpers/init-highcharts-modules';
10
9
  import { initHighchartsLangOptions } from '../helpers/highcharts/highcharts';
11
10
  import { withSplitPane } from './withSplitPane/withSplitPane';
12
11
  import './HighchartsComponent.css';
@@ -15,7 +14,6 @@ settingsEventEmitter.on('change-lang', {
15
14
  id: 'hc-lang-handler',
16
15
  action: initHighchartsLangOptions,
17
16
  });
18
- initHighchartsModules();
19
17
  export class HighchartsComponent extends React.PureComponent {
20
18
  constructor() {
21
19
  super(...arguments);
@@ -16,6 +16,7 @@ export const HighchartsReact = React.memo(React.forwardRef(function HighchartsRe
16
16
  'required module is not imported.');
17
17
  }
18
18
  else if (props.options) {
19
+ // @ts-expect-error
19
20
  chartRef.current = HighchartsComponent[constructorType](containerRef.current, props.options, props.callback);
20
21
  }
21
22
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/chartkit",
3
- "version": "4.0.0-beta.3",
3
+ "version": "4.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",
@@ -75,7 +75,6 @@
75
75
  },
76
76
  "peerDependencies": {
77
77
  "@gravity-ui/uikit": "^5.0.0",
78
- "highcharts": "^8.2.2",
79
78
  "react": "^16.0.0 || ^17.0.0 || ^18.0.0"
80
79
  },
81
80
  "scripts": {
@@ -1 +0,0 @@
1
- export function initHighchartsModules(): void;
@@ -1,49 +0,0 @@
1
- import Highcharts from 'highcharts';
2
- import highchartsMore from 'highcharts/highcharts-more';
3
- import stock from 'highcharts/modules/stock';
4
- import solidGauge from 'highcharts/modules/solid-gauge';
5
- import funnel from 'highcharts/modules/funnel';
6
- import histogramBellcurve from 'highcharts/modules/histogram-bellcurve';
7
- import sankey from 'highcharts/modules/sankey';
8
- import heatmap from 'highcharts/modules/heatmap';
9
- import treemap from 'highcharts/modules/treemap';
10
- import variwide from 'highcharts/modules/variwide';
11
- import streamgraph from 'highcharts/modules/streamgraph';
12
- import drilldown from 'highcharts/modules/drilldown';
13
- import parallelCoordinates from 'highcharts/modules/parallel-coordinates';
14
- import patternFill from 'highcharts/modules/pattern-fill';
15
- import wordcloud from 'highcharts/modules/wordcloud';
16
- import xrange from 'highcharts/modules/xrange';
17
- import networkgraph from 'highcharts/modules/networkgraph';
18
- import timeline from 'highcharts/modules/timeline';
19
- import bullet from 'highcharts/modules/bullet';
20
- import annotations from 'highcharts/modules/annotations';
21
- import seriesLabel from 'highcharts/modules/series-label';
22
- import indicators from 'highcharts/indicators/indicators';
23
- import ema from 'highcharts/indicators/ema';
24
- import venn from 'highcharts/modules/venn';
25
- export function initHighchartsModules() {
26
- highchartsMore(Highcharts);
27
- stock(Highcharts);
28
- solidGauge(Highcharts);
29
- funnel(Highcharts);
30
- histogramBellcurve(Highcharts);
31
- sankey(Highcharts);
32
- heatmap(Highcharts);
33
- treemap(Highcharts);
34
- variwide(Highcharts);
35
- streamgraph(Highcharts);
36
- drilldown(Highcharts);
37
- annotations(Highcharts);
38
- seriesLabel(Highcharts);
39
- parallelCoordinates(Highcharts);
40
- patternFill(Highcharts);
41
- wordcloud(Highcharts);
42
- xrange(Highcharts);
43
- networkgraph(Highcharts);
44
- timeline(Highcharts);
45
- bullet(Highcharts);
46
- venn(Highcharts);
47
- indicators(Highcharts);
48
- ema(Highcharts);
49
- }