Skip to content

Commit

Permalink
feat: update chartkit to new yagr (#93)
Browse files Browse the repository at this point in the history
* feat: update chartkit to new yagr

* fix paths

Co-authored-by: Anton Standrik <astandrik@yandex-team.ru>
  • Loading branch information
astandrik and Anton Standrik authored Dec 9, 2022
1 parent 6f6c2de commit e89f0db
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
"access": "public"
},
"dependencies": {
"@gravity-ui/yagr": "^2.2.1",
"bem-cn-lite": "^4.1.0",
"highcharts": "^8.2.2",
"highcharts-react-official": "^3.0.0",
"lodash": "^4.17.21",
"react-split-pane": "^0.1.92",
"yagr": "^2.1.0"
"react-split-pane": "^0.1.92"
},
"devDependencies": {
"@gravity-ui/eslint-config": "^1.0.2",
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/yagr/renderer/YagrWidget.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import isEmpty from 'lodash/isEmpty';
import YagrComponent, {YagrChartProps} from 'yagr/dist/react';
import YagrComponent, {YagrChartProps} from '@gravity-ui/yagr/dist/react';
import {i18n} from '../../../i18n';
import type {ChartKitWidgetRef, ChartKitProps} from '../../../types';
import {CHARTKIT_ERROR_CODE, ChartKitError} from '../../../libs';
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/yagr/renderer/useWidgetData.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import {useThemeType} from '@gravity-ui/uikit';
import type {YagrChartProps} from 'yagr/dist/react';
import type {YagrChartProps} from '@gravity-ui/yagr/dist/react';
import type {YagrWidgetData, YagrTheme, MinimalValidConfig} from '../types';
import {shapeYagrConfig} from './utils';

Expand Down
2 changes: 1 addition & 1 deletion src/plugins/yagr/renderer/utils.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import moment from 'moment';
import merge from 'lodash/merge';
import {defaults} from 'yagr';
import {defaults} from '@gravity-ui/yagr';
import {settings} from '../../../libs';
import type {Yagr, YagrWidgetData, YagrTheme, YagrChartOptions, MinimalValidConfig} from '../types';
import {renderTooltip} from './tooltip';
Expand Down
6 changes: 3 additions & 3 deletions src/plugins/yagr/types.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type {RawSerieData, YagrConfig} from 'yagr';
import type {RawSerieData, YagrConfig} from '@gravity-ui/yagr';

export type {default as Yagr} from 'yagr';
export * from 'yagr/dist/types';
export type {default as Yagr} from '@gravity-ui/yagr';
export * from '@gravity-ui/yagr/dist/types';

export type YagrWidgetData = {
data: {
Expand Down

0 comments on commit e89f0db

Please sign in to comment.