@gravity-ui/chartkit
Advanced tools
Comparing version 2.3.1 to 2.4.0
import React from 'react'; | ||
import { useThemeType } from '@gravity-ui/uikit'; | ||
import { useThemeValue } from '@gravity-ui/uikit'; | ||
import { shapeYagrConfig } from './utils'; | ||
export const useWidgetData = (args) => { | ||
const { id, data, sources, libraryConfig } = args; | ||
const theme = useThemeType(); | ||
const theme = useThemeValue(); | ||
const config = React.useMemo(() => shapeYagrConfig({ data, libraryConfig, theme }), [data, libraryConfig, theme]); | ||
@@ -8,0 +8,0 @@ const debug = React.useMemo(() => { |
# Changelog | ||
## [2.4.0](https://github.com/gravity-ui/chartkit/compare/v2.3.1...v2.4.0) (2023-04-13) | ||
### Features | ||
* **Yagr:** update to v2.2.4 ([#150](https://github.com/gravity-ui/chartkit/issues/150)) ([7b7ab46](https://github.com/gravity-ui/chartkit/commit/7b7ab4632f6ece68dc05e1bec5949283e4307f88)) | ||
## [2.3.1](https://github.com/gravity-ui/chartkit/compare/v2.3.0...v2.3.1) (2023-04-12) | ||
@@ -4,0 +11,0 @@ |
{ | ||
"name": "@gravity-ui/chartkit", | ||
"version": "2.3.1", | ||
"version": "2.4.0", | ||
"description": "React component used to render charts based on any sources you need", | ||
@@ -16,3 +16,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"@gravity-ui/yagr": "^2.2.2", | ||
"@gravity-ui/yagr": "^2.2.4", | ||
"bem-cn-lite": "^4.1.0", | ||
@@ -19,0 +19,0 @@ "highcharts": "^8.2.2", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
921790
Updated@gravity-ui/yagr@^2.2.4