@gravity-ui/chartkit 1.2.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,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
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
|
+
|
|
3
15
|
## [1.2.0](https://github.com/gravity-ui/chartkit/compare/v1.1.0...v1.2.0) (2022-12-09)
|
|
4
16
|
|
|
5
17
|
|
|
@@ -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
package/package.json
CHANGED