@gravity-ui/chartkit 1.1.0 → 1.3.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,11 +1,33 @@
1
1
  # Changelog
2
2
 
3
- ## [1.1.0](https://github.com/gravity-ui/chartkit/compare/v1.0.0...v1.1.0) (2022-12-08)
3
+ ## [1.3.0](https://github.com/gravity-ui/chartkit/compare/v1.2.0...v1.3.0) (2022-12-09)
4
+
5
+
6
+ ### Features
7
+
8
+ * **Highcharts:** add CkHighchartsSeriesOptionsType type ([#92](https://github.com/gravity-ui/chartkit/issues/92)) ([36b9d75](https://github.com/gravity-ui/chartkit/commit/36b9d75779fdde4ef98e8de5db3fbb515dc44662))
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **Highcharts:** fix widget config type ([#89](https://github.com/gravity-ui/chartkit/issues/89)) ([988c074](https://github.com/gravity-ui/chartkit/commit/988c074ead25027e9d7e2c5ec0443c8d428ae35c))
14
+
15
+ ## [1.2.0](https://github.com/gravity-ui/chartkit/compare/v1.1.0...v1.2.0) (2022-12-09)
4
16
 
5
17
 
6
18
  ### Features
7
19
 
8
- * useWidgetData fixes ([54c47af](https://github.com/gravity-ui/chartkit/commit/54c47afb0c519fe8d500d993069e4c660c04550e))
20
+ * update yagr to 2.1.0 ([#87](https://github.com/gravity-ui/chartkit/issues/87)) ([5dfd6d0](https://github.com/gravity-ui/chartkit/commit/5dfd6d0098729b4813f6a783457e40203e269272))
21
+
22
+ ## [1.1.0](https://github.com/gravity-ui/chartkit/compare/v1.0.0...v1.1.0) (2022-12-08)
23
+
24
+ ### Features
25
+
26
+ - add export of all yagr lib types to yagr plugin
27
+
28
+ ### Bug Fixes
29
+
30
+ - fix config object merging in `useWidgetData` yagr plugin hook
9
31
 
10
32
  ## [1.0.0](https://github.com/gravity-ui/chartkit/compare/v0.13.0...v1.0.0) (2022-12-07)
11
33
 
@@ -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 GraphWidgetSeriesOptions = Highcharts.SeriesOptionsType & {
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: (GraphWidgetSeriesOptions[] | {
11
- graphs: GraphWidgetSeriesOptions[];
10
+ data: (CkHighchartsSeriesOptionsType[] | {
11
+ graphs: CkHighchartsSeriesOptionsType[];
12
12
  categories_ms: number[];
13
13
  } | {
14
- graphs: GraphWidgetSeriesOptions[];
14
+ graphs: CkHighchartsSeriesOptionsType[];
15
15
  categories: string[];
16
16
  } | {
17
- graphs: GraphWidgetSeriesOptions[];
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 {};
@@ -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 type { Highcharts, HighchartsWidgetData, HighchartsComment } from './highcharts/types';
6
+ export * from './highcharts/types';
@@ -2,3 +2,4 @@ export { YagrPlugin } from './yagr';
2
2
  export * from './yagr/types';
3
3
  export { IndicatorPlugin } from './indicator';
4
4
  export { HighchartsPlugin } from './highcharts';
5
+ export * from './highcharts/types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/chartkit",
3
- "version": "1.1.0",
3
+ "version": "1.3.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",
@@ -18,7 +18,7 @@
18
18
  "highcharts-react-official": "^3.0.0",
19
19
  "lodash": "^4.17.21",
20
20
  "react-split-pane": "^0.1.92",
21
- "yagr": "^2.0.1"
21
+ "yagr": "^2.1.0"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@gravity-ui/eslint-config": "^1.0.2",