@gravity-ui/chartkit 2.4.1 → 2.6.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,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.6.0](https://github.com/gravity-ui/chartkit/compare/v2.5.0...v2.6.0) (2023-05-04)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add React@18 as peer dependency ([#158](https://github.com/gravity-ui/chartkit/issues/158)) ([2991c11](https://github.com/gravity-ui/chartkit/commit/2991c1138781692451582e99d8f9c7eb51a8c9aa))
|
|
9
|
+
|
|
10
|
+
## [2.5.0](https://github.com/gravity-ui/chartkit/compare/v2.4.1...v2.5.0) (2023-05-03)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* **Highcharts plugin:** add config.tooltip property ([#156](https://github.com/gravity-ui/chartkit/issues/156)) ([8a8229e](https://github.com/gravity-ui/chartkit/commit/8a8229e4ee8401a8cfce4d0689a047e830d1a5e9))
|
|
16
|
+
|
|
3
17
|
## [2.4.1](https://github.com/gravity-ui/chartkit/compare/v2.4.0...v2.4.1) (2023-04-19)
|
|
4
18
|
|
|
5
19
|
|
|
@@ -898,7 +898,8 @@ export function hideFixedTooltip(tooltip, isMobile) {
|
|
|
898
898
|
}
|
|
899
899
|
}
|
|
900
900
|
function fixTooltip(tooltip, options, event) {
|
|
901
|
-
|
|
901
|
+
const pinable = get(options, 'tooltip.pinable', true);
|
|
902
|
+
if (options.splitTooltip || !pinable) {
|
|
902
903
|
return false;
|
|
903
904
|
}
|
|
904
905
|
if (tooltip.fixed) {
|
|
@@ -83,6 +83,12 @@ export declare type HighchartsWidgetData = {
|
|
|
83
83
|
* Used to modify tooltip data
|
|
84
84
|
*/
|
|
85
85
|
manageTooltipConfig?: HighchartsManageTooltipConfig;
|
|
86
|
+
/**
|
|
87
|
+
* Tooltip config
|
|
88
|
+
*/
|
|
89
|
+
tooltip?: {
|
|
90
|
+
pinable?: boolean;
|
|
91
|
+
};
|
|
86
92
|
};
|
|
87
93
|
libraryConfig: Highcharts.Options;
|
|
88
94
|
params?: StringParams;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gravity-ui/chartkit",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.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",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"typescript": "^4.2.3"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
|
-
"react": "^16.0.0 || ^17.0.0",
|
|
68
|
+
"react": "^16.0.0 || ^17.0.0 || ^18.0.0",
|
|
69
69
|
"moment": "^2.19.3",
|
|
70
70
|
"@gravity-ui/uikit": "^4.0.0"
|
|
71
71
|
},
|