@gravity-ui/chartkit 1.2.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 +19 -0
- package/build/plugins/highcharts/types/index.d.ts +1 -1
- package/build/plugins/highcharts/types/widget.d.ts +9 -7
- package/build/plugins/index.d.ts +1 -1
- package/build/plugins/index.js +1 -0
- package/build/plugins/yagr/renderer/YagrWidget.js +1 -1
- package/build/plugins/yagr/renderer/useWidgetData.d.ts +1 -1
- package/build/plugins/yagr/renderer/utils.js +1 -1
- package/build/plugins/yagr/types.d.ts +3 -3
- package/build/plugins/yagr/types.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
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
|
+
|
|
10
|
+
## [1.3.0](https://github.com/gravity-ui/chartkit/compare/v1.2.0...v1.3.0) (2022-12-09)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* **Highcharts:** add CkHighchartsSeriesOptionsType type ([#92](https://github.com/gravity-ui/chartkit/issues/92)) ([36b9d75](https://github.com/gravity-ui/chartkit/commit/36b9d75779fdde4ef98e8de5db3fbb515dc44662))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* **Highcharts:** fix widget config type ([#89](https://github.com/gravity-ui/chartkit/issues/89)) ([988c074](https://github.com/gravity-ui/chartkit/commit/988c074ead25027e9d7e2c5ec0443c8d428ae35c))
|
|
21
|
+
|
|
3
22
|
## [1.2.0](https://github.com/gravity-ui/chartkit/compare/v1.1.0...v1.2.0) (2022-12-09)
|
|
4
23
|
|
|
5
24
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export type { Highcharts } from './lib';
|
|
2
|
-
export type { HighchartsWidgetData } from './widget';
|
|
2
|
+
export type { HighchartsWidgetData, CkHighchartsSeriesOptionsType } from './widget';
|
|
3
3
|
export type { DrillDownConfig, ExtendedHChart, StringParams, XAxisItem } from './misc';
|
|
4
4
|
export type { HighchartsComment } from './comments';
|
|
@@ -1,28 +1,31 @@
|
|
|
1
1
|
import type { Highcharts } from './lib';
|
|
2
2
|
import type { HighchartsComment } from './comments';
|
|
3
3
|
import type { DrillDownConfig, StringParams } from './misc';
|
|
4
|
-
declare type
|
|
4
|
+
export declare type CkHighchartsSeriesOptionsType = Highcharts.SeriesOptionsType & {
|
|
5
5
|
title?: string;
|
|
6
6
|
sname?: string;
|
|
7
7
|
fname?: string;
|
|
8
8
|
};
|
|
9
9
|
export declare type HighchartsWidgetData = {
|
|
10
|
-
data: (
|
|
11
|
-
graphs:
|
|
10
|
+
data: (CkHighchartsSeriesOptionsType[] | {
|
|
11
|
+
graphs: CkHighchartsSeriesOptionsType[];
|
|
12
12
|
categories_ms: number[];
|
|
13
13
|
} | {
|
|
14
|
-
graphs:
|
|
14
|
+
graphs: CkHighchartsSeriesOptionsType[];
|
|
15
15
|
categories: string[];
|
|
16
16
|
} | {
|
|
17
|
-
graphs:
|
|
17
|
+
graphs: CkHighchartsSeriesOptionsType[];
|
|
18
18
|
}) & {
|
|
19
19
|
comments?: HighchartsComment[];
|
|
20
20
|
};
|
|
21
21
|
config: {
|
|
22
22
|
hideComments?: boolean;
|
|
23
23
|
hideHolidaysBands?: boolean;
|
|
24
|
-
disableExternalComments?: boolean;
|
|
25
24
|
hideHolidays?: boolean;
|
|
25
|
+
hideLegend?: boolean;
|
|
26
|
+
/** @deprecated use `hideLegend` instead */
|
|
27
|
+
showLegend?: boolean;
|
|
28
|
+
disableExternalComments?: boolean;
|
|
26
29
|
normalizeDiv?: boolean;
|
|
27
30
|
normalizeSub?: boolean;
|
|
28
31
|
withoutLineLimit?: boolean;
|
|
@@ -44,4 +47,3 @@ export declare type HighchartsWidgetData = {
|
|
|
44
47
|
comments?: HighchartsComment[];
|
|
45
48
|
sideMarkdown?: string;
|
|
46
49
|
};
|
|
47
|
-
export {};
|
package/build/plugins/index.d.ts
CHANGED
|
@@ -3,4 +3,4 @@ export * from './yagr/types';
|
|
|
3
3
|
export { IndicatorPlugin } from './indicator';
|
|
4
4
|
export type { IndicatorWidgetData } from './indicator/types';
|
|
5
5
|
export { HighchartsPlugin } from './highcharts';
|
|
6
|
-
export
|
|
6
|
+
export * from './highcharts/types';
|
package/build/plugins/index.js
CHANGED
|
@@ -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,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
|
+
"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",
|