@gravity-ui/chartkit 1.3.0 → 1.4.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.4.0](https://github.com/gravity-ui/chartkit/compare/v1.3.0...v1.4.0) (2022-12-09)
4
+
5
+
6
+ ### Features
7
+
8
+ * update chartkit to new yagr ([#93](https://github.com/gravity-ui/chartkit/issues/93)) ([e89f0db](https://github.com/gravity-ui/chartkit/commit/e89f0db55fa792922b24ce23c562c35270de3722))
9
+
3
10
  ## [1.3.0](https://github.com/gravity-ui/chartkit/compare/v1.2.0...v1.3.0) (2022-12-09)
4
11
 
5
12
 
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import isEmpty from 'lodash/isEmpty';
3
- import YagrComponent from 'yagr/dist/react';
3
+ import YagrComponent from '@gravity-ui/yagr/dist/react';
4
4
  import { i18n } from '../../../i18n';
5
5
  import { CHARTKIT_ERROR_CODE, ChartKitError } from '../../../libs';
6
6
  import { useWidgetData } from './useWidgetData';
@@ -1,4 +1,4 @@
1
- import type { YagrChartProps } from 'yagr/dist/react';
1
+ import type { YagrChartProps } from '@gravity-ui/yagr/dist/react';
2
2
  import type { YagrWidgetData, MinimalValidConfig } from '../types';
3
3
  export declare const useWidgetData: (args: YagrWidgetData & {
4
4
  id: string;
@@ -1,6 +1,6 @@
1
1
  import moment from 'moment';
2
2
  import merge from 'lodash/merge';
3
- import { defaults } from 'yagr';
3
+ import { defaults } from '@gravity-ui/yagr';
4
4
  import { settings } from '../../../libs';
5
5
  import { renderTooltip } from './tooltip';
6
6
  const TOOLTIP_HEADER_CLASS_NAME = '_tooltip-header';
@@ -1,6 +1,6 @@
1
- import type { RawSerieData, YagrConfig } from 'yagr';
2
- export type { default as Yagr } from 'yagr';
3
- export * from 'yagr/dist/types';
1
+ import type { RawSerieData, YagrConfig } from '@gravity-ui/yagr';
2
+ export type { default as Yagr } from '@gravity-ui/yagr';
3
+ export * from '@gravity-ui/yagr/dist/types';
4
4
  export declare type YagrWidgetData = {
5
5
  data: {
6
6
  graphs: RawSerieData[];
@@ -1 +1 @@
1
- export * from 'yagr/dist/types';
1
+ export * from '@gravity-ui/yagr/dist/types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/chartkit",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
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,12 +13,12 @@
13
13
  "access": "public"
14
14
  },
15
15
  "dependencies": {
16
+ "@gravity-ui/yagr": "^2.2.1",
16
17
  "bem-cn-lite": "^4.1.0",
17
18
  "highcharts": "^8.2.2",
18
19
  "highcharts-react-official": "^3.0.0",
19
20
  "lodash": "^4.17.21",
20
- "react-split-pane": "^0.1.92",
21
- "yagr": "^2.1.0"
21
+ "react-split-pane": "^0.1.92"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@gravity-ui/eslint-config": "^1.0.2",