@gravity-ui/chartkit 7.58.0 → 7.59.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/build/components/ChartKit.js +1 -1
- package/build/components/ErrorBoundary/ErrorBoundary.d.ts +1 -1
- package/build/hooks/misc.js +1 -1
- package/build/plugins/highcharts/renderer/components/HighchartsReact.d.ts +1 -1
- package/build/plugins/highcharts/renderer/components/HighchartsReact.js +1 -1
- package/package.json +7 -7
|
@@ -9,7 +9,7 @@ import { Loader } from './Loader/Loader';
|
|
|
9
9
|
import './ChartKit.css';
|
|
10
10
|
const b = cn('chartkit');
|
|
11
11
|
const ChartKitComponent = (props) => {
|
|
12
|
-
const widgetRef = React.useRef();
|
|
12
|
+
const widgetRef = React.useRef(undefined);
|
|
13
13
|
const { instanceRef, id: propsId, type, isMobile, renderPluginLoader } = props, restProps = __rest(props, ["instanceRef", "id", "type", "isMobile", "renderPluginLoader"]);
|
|
14
14
|
const ckId = React.useMemo(() => getRandomCKId(), []);
|
|
15
15
|
const id = propsId || ckId;
|
|
@@ -17,7 +17,7 @@ export declare class ErrorBoundary extends React.Component<Props, State> {
|
|
|
17
17
|
state: State;
|
|
18
18
|
componentDidUpdate(prevProps: Readonly<Props>): void;
|
|
19
19
|
componentDidCatch(): void;
|
|
20
|
-
render(): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
|
|
20
|
+
render(): string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | React.JSX.Element | null | undefined;
|
|
21
21
|
resetError: () => void;
|
|
22
22
|
}
|
|
23
23
|
export {};
|
package/build/hooks/misc.js
CHANGED
|
@@ -3,7 +3,7 @@ import Highcharts from 'highcharts';
|
|
|
3
3
|
import type { ChartKitProps } from '../../../../types';
|
|
4
4
|
interface HighchartsReactRefObject {
|
|
5
5
|
chart: Highcharts.Chart | null | undefined;
|
|
6
|
-
container: React.RefObject<HTMLDivElement |
|
|
6
|
+
container: React.RefObject<HTMLDivElement | null>;
|
|
7
7
|
}
|
|
8
8
|
interface HighchartsReactProps {
|
|
9
9
|
[key: string]: any;
|
|
@@ -7,7 +7,7 @@ const useIsomorphicLayoutEffect = typeof window === 'undefined' ? React.useEffec
|
|
|
7
7
|
export const HighchartsReact = React.memo(React.forwardRef(function HighchartsReact(props, ref) {
|
|
8
8
|
const { onRender } = props;
|
|
9
9
|
const containerRef = React.useRef(null);
|
|
10
|
-
const chartRef = React.useRef();
|
|
10
|
+
const chartRef = React.useRef(null);
|
|
11
11
|
const { width, height } = useElementSize(containerRef);
|
|
12
12
|
const performanceMeasure = React.useRef(measurePerformance());
|
|
13
13
|
useIsomorphicLayoutEffect(() => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gravity-ui/chartkit",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.59.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",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
],
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@bem-react/classname": "^1.6.0",
|
|
50
|
-
"@gravity-ui/charts": "^1.55.
|
|
50
|
+
"@gravity-ui/charts": "^1.55.1",
|
|
51
51
|
"@gravity-ui/date-utils": "^2.1.0",
|
|
52
52
|
"@gravity-ui/i18n": "^1.0.0",
|
|
53
53
|
"@gravity-ui/yagr": "^4.13.4",
|
|
@@ -69,8 +69,8 @@
|
|
|
69
69
|
"@types/d3-selection": "^3.0.10",
|
|
70
70
|
"@types/lodash": "^4.14.177",
|
|
71
71
|
"@types/node": "^18.0.0",
|
|
72
|
-
"@types/react": "^
|
|
73
|
-
"@types/react-dom": "^
|
|
72
|
+
"@types/react": "^19.2.16",
|
|
73
|
+
"@types/react-dom": "^19.2.3",
|
|
74
74
|
"@vitejs/plugin-react": "^5.1.4",
|
|
75
75
|
"@vitest/browser-playwright": "^4.0.18",
|
|
76
76
|
"@vitest/coverage-v8": "^4.0.18",
|
|
@@ -92,8 +92,8 @@
|
|
|
92
92
|
"npm-run-all": "^4.1.5",
|
|
93
93
|
"playwright": "^1.58.2",
|
|
94
94
|
"prettier": "^3.2.5",
|
|
95
|
-
"react": "^
|
|
96
|
-
"react-dom": "^
|
|
95
|
+
"react": "^19.2.7",
|
|
96
|
+
"react-dom": "^19.2.7",
|
|
97
97
|
"rimraf": "^5.0.5",
|
|
98
98
|
"sass": "^1.56.2",
|
|
99
99
|
"storybook": "^10.2.0",
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
},
|
|
107
107
|
"peerDependencies": {
|
|
108
108
|
"@gravity-ui/uikit": "^7.0.0",
|
|
109
|
-
"react": "^16.0.0 || ^17.0.0 || ^18.0.0"
|
|
109
|
+
"react": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
|
|
110
110
|
},
|
|
111
111
|
"scripts": {
|
|
112
112
|
"test": "vitest run --project unit",
|