@gravity-ui/chartkit 4.20.0 → 5.0.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.css +20 -20
- package/build/components/ChartKit.d.ts +2 -2
- package/build/components/ErrorBoundary/ErrorBoundary.js +1 -1
- package/build/libs/settings/settings.d.ts +1 -1
- package/build/libs/settings/settings.js +1 -1
- package/build/plugins/d3/examples/area/PercentStacking.js +1 -1
- package/build/plugins/d3/examples/area/StackedArea.js +1 -1
- package/build/plugins/d3/examples/combined/LineAndBarX.js +1 -1
- package/build/plugins/d3/examples/pie/DonutWithTotals.js +1 -1
- package/build/plugins/d3/renderer/D3Widget.d.ts +1 -1
- package/build/plugins/d3/renderer/D3Widget.js +1 -1
- package/build/plugins/d3/renderer/components/AxisX.d.ts +1 -1
- package/build/plugins/d3/renderer/components/AxisX.js +2 -2
- package/build/plugins/d3/renderer/components/AxisY.js +1 -1
- package/build/plugins/d3/renderer/components/Chart.js +4 -4
- package/build/plugins/d3/renderer/components/Legend.d.ts +1 -1
- package/build/plugins/d3/renderer/components/Legend.js +2 -2
- package/build/plugins/d3/renderer/components/Tooltip/DefaultContent.js +1 -1
- package/build/plugins/d3/renderer/components/Tooltip/TooltipTriggerArea.js +2 -2
- package/build/plugins/d3/renderer/components/Tooltip/index.js +11 -40
- package/build/plugins/d3/renderer/components/styles.css +12 -3
- package/build/plugins/d3/renderer/hooks/useAxisScales/index.d.ts +1 -1
- package/build/plugins/d3/renderer/hooks/useAxisScales/index.js +2 -2
- package/build/plugins/d3/renderer/hooks/useChartOptions/types.d.ts +1 -1
- package/build/plugins/d3/renderer/hooks/useChartOptions/x-axis.d.ts +1 -1
- package/build/plugins/d3/renderer/hooks/useChartOptions/x-axis.js +1 -1
- package/build/plugins/d3/renderer/hooks/useChartOptions/y-axis.js +2 -2
- package/build/plugins/d3/renderer/hooks/useSeries/index.d.ts +1 -1
- package/build/plugins/d3/renderer/hooks/useSeries/index.js +2 -2
- package/build/plugins/d3/renderer/hooks/useSeries/prepare-area.d.ts +1 -1
- package/build/plugins/d3/renderer/hooks/useSeries/prepare-area.js +1 -1
- package/build/plugins/d3/renderer/hooks/useSeries/prepare-bar-x.js +1 -1
- package/build/plugins/d3/renderer/hooks/useSeries/prepare-bar-y.js +2 -2
- package/build/plugins/d3/renderer/hooks/useSeries/prepare-legend.d.ts +1 -1
- package/build/plugins/d3/renderer/hooks/useSeries/prepare-legend.js +1 -1
- package/build/plugins/d3/renderer/hooks/useSeries/prepare-line.d.ts +1 -1
- package/build/plugins/d3/renderer/hooks/useSeries/prepare-line.js +1 -1
- package/build/plugins/d3/renderer/hooks/useSeries/prepare-pie.js +4 -4
- package/build/plugins/d3/renderer/hooks/useSeries/prepare-scatter.d.ts +1 -1
- package/build/plugins/d3/renderer/hooks/useSeries/prepare-scatter.js +2 -2
- package/build/plugins/d3/renderer/hooks/useSeries/prepareSeries.js +2 -2
- package/build/plugins/d3/renderer/hooks/useSeries/types.d.ts +2 -2
- package/build/plugins/d3/renderer/hooks/useSeries/utils.d.ts +2 -2
- package/build/plugins/d3/renderer/hooks/useSeries/utils.js +1 -1
- package/build/plugins/d3/renderer/hooks/useShapes/area/index.js +2 -2
- package/build/plugins/d3/renderer/hooks/useShapes/area/prepare-data.d.ts +2 -2
- package/build/plugins/d3/renderer/hooks/useShapes/area/prepare-data.js +1 -1
- package/build/plugins/d3/renderer/hooks/useShapes/area/types.d.ts +1 -1
- package/build/plugins/d3/renderer/hooks/useShapes/bar-x/index.js +1 -1
- package/build/plugins/d3/renderer/hooks/useShapes/bar-x/types.d.ts +1 -1
- package/build/plugins/d3/renderer/hooks/useShapes/bar-y/index.js +1 -1
- package/build/plugins/d3/renderer/hooks/useShapes/index.d.ts +6 -6
- package/build/plugins/d3/renderer/hooks/useShapes/index.js +6 -6
- package/build/plugins/d3/renderer/hooks/useShapes/line/index.js +1 -1
- package/build/plugins/d3/renderer/hooks/useShapes/line/prepare-data.d.ts +2 -2
- package/build/plugins/d3/renderer/hooks/useShapes/line/prepare-data.js +1 -1
- package/build/plugins/d3/renderer/hooks/useShapes/line/types.d.ts +2 -2
- package/build/plugins/d3/renderer/hooks/useShapes/marker.d.ts +1 -1
- package/build/plugins/d3/renderer/hooks/useShapes/marker.js +2 -2
- package/build/plugins/d3/renderer/hooks/useShapes/pie/index.js +2 -3
- package/build/plugins/d3/renderer/hooks/useShapes/pie/types.d.ts +2 -2
- package/build/plugins/d3/renderer/hooks/useShapes/pie/utils.js +1 -1
- package/build/plugins/d3/renderer/hooks/useShapes/scatter/index.js +2 -2
- package/build/plugins/d3/renderer/hooks/useShapes/treemap/index.js +1 -1
- package/build/plugins/d3/renderer/hooks/useShapes/utils.d.ts +1 -1
- package/build/plugins/d3/renderer/hooks/useTooltip/index.d.ts +1 -1
- package/build/plugins/d3/renderer/utils/axis-generators/bottom.js +1 -1
- package/build/plugins/d3/renderer/utils/axis.d.ts +1 -1
- package/build/plugins/d3/renderer/utils/index.js +3 -3
- package/build/plugins/d3/renderer/utils/symbol.js +1 -1
- package/build/plugins/d3/renderer/validation/index.js +1 -1
- package/build/plugins/highcharts/renderer/components/HighchartsComponent.d.ts +1 -1
- package/build/plugins/highcharts/renderer/components/HighchartsComponent.js +2 -2
- package/build/plugins/highcharts/renderer/components/HighchartsReact.js +7 -1
- package/build/plugins/highcharts/renderer/components/StyledSplitPane/StyledSplitPane.css +1 -1
- package/build/plugins/highcharts/renderer/helpers/config/config.js +15 -15
- package/build/plugins/highcharts/renderer/helpers/config/handleLegendItemClick.js +1 -1
- package/build/plugins/highcharts/renderer/helpers/config/options.d.ts +98 -98
- package/build/plugins/highcharts/renderer/helpers/config/options.js +1 -1
- package/build/plugins/highcharts/renderer/helpers/config/utils/index.d.ts +39 -10
- package/build/plugins/highcharts/renderer/helpers/graph.css +4 -4
- package/build/plugins/highcharts/renderer/helpers/graph.d.ts +1 -1
- package/build/plugins/highcharts/renderer/helpers/graph.js +2 -2
- package/build/plugins/highcharts/renderer/helpers/highcharts/highcharts.js +2 -2
- package/build/plugins/highcharts/renderer/helpers/prepare-data.js +2 -2
- package/build/plugins/highcharts/renderer/helpers/tooltip/index.js +1 -1
- package/build/plugins/highcharts/renderer/helpers/tooltip/tooltip.css +6 -7
- package/build/plugins/highcharts/types/highcharts-extends.d.ts +1 -0
- package/build/plugins/highcharts/types/widget.d.ts +2 -2
- package/build/plugins/indicator/renderer/IndicatorWidget.css +1 -1
- package/build/plugins/indicator/renderer/IndicatorWidget.js +1 -1
- package/build/plugins/shared/format-number/format-number.d.ts +1 -1
- package/build/plugins/shared/format-number/format-number.js +2 -2
- package/build/plugins/shared/format-number/format-number.test.js +1 -1
- package/build/plugins/yagr/renderer/YagrWidget.css +1 -1
- package/build/plugins/yagr/renderer/YagrWidget.js +5 -3
- package/build/plugins/yagr/renderer/tooltip/tooltip.css +15 -16
- package/build/plugins/yagr/renderer/utils.d.ts +1 -1
- package/build/plugins/yagr/renderer/utils.js +1 -1
- package/build/types/index.d.ts +1 -1
- package/build/types/widget-data/bar-x.d.ts +1 -1
- package/build/types/widget-data/bar-y.d.ts +1 -1
- package/build/types/widget-data/line.d.ts +1 -1
- package/build/types/widget-data/series.d.ts +6 -6
- package/build/types/widget-data/tooltip.d.ts +3 -3
- package/build/types/widget.d.ts +2 -2
- package/package.json +23 -24
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { FormatNumberOptions, FormatOptions } from './types';
|
|
2
2
|
export declare const formatBytes: (value: number, options?: FormatOptions) => string;
|
|
3
3
|
export declare const formatDuration: (value: number, options?: FormatOptions) => string;
|
|
4
4
|
export declare const getNumberUnitRate: (value: number) => number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import ru from './i18n/ru.json';
|
|
2
|
-
import en from './i18n/en.json';
|
|
3
1
|
import { i18nInstance, makeInstance } from './i18n/i18n';
|
|
2
|
+
import en from './i18n/en.json';
|
|
3
|
+
import ru from './i18n/ru.json';
|
|
4
4
|
const i18n = makeInstance('chartkit-units', { ru, en });
|
|
5
5
|
function getUnitRate(value, exponent, unitsI18nKeys) {
|
|
6
6
|
let resultUnitRate = 1;
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import isEmpty from 'lodash/isEmpty';
|
|
3
2
|
import YagrComponent from '@gravity-ui/yagr/react';
|
|
3
|
+
import isEmpty from 'lodash/isEmpty';
|
|
4
4
|
import { i18n } from '../../../i18n';
|
|
5
5
|
import { CHARTKIT_ERROR_CODE, ChartKitError } from '../../../libs';
|
|
6
|
+
import './polyfills';
|
|
6
7
|
import { useWidgetData } from './useWidgetData';
|
|
7
8
|
import { checkFocus, detectClickOutside, synchronizeTooltipTablesCellsWidth } from './utils';
|
|
8
|
-
import './polyfills';
|
|
9
9
|
import '@gravity-ui/yagr/dist/index.css';
|
|
10
|
+
// We need to save order in such state
|
|
11
|
+
// eslint-disable-next-line import/order
|
|
10
12
|
import './YagrWidget.css';
|
|
11
|
-
const YagrWidget = React.forwardRef((props, forwardedRef)
|
|
13
|
+
const YagrWidget = React.forwardRef(function YagrWidget(props, forwardedRef) {
|
|
12
14
|
const { id, data: { data }, onLoad, onRender, onChartLoad, tooltip, } = props;
|
|
13
15
|
const yagrRef = React.useRef(null);
|
|
14
16
|
const [yagr, setYagr] = React.useState();
|
|
@@ -4,26 +4,26 @@
|
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
.chartkit-highcharts-tooltip-container._tooltip-with-scroll ._tooltip-header td:last-child {
|
|
7
|
-
padding-right: calc(18px + var(--
|
|
7
|
+
padding-right: calc(18px + var(--g-scrollbar-width, 15px));
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
.chartkit-highcharts-tooltip-container._tooltip-with-scroll ._tooltip-footer td:last-child {
|
|
11
|
-
padding-right: calc(18px + var(--
|
|
11
|
+
padding-right: calc(18px + var(--g-scrollbar-width, 15px));
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.chartkit-highcharts-tooltip-container._tooltip-with-scroll-in-safari ._tooltip-row td:last-child {
|
|
15
|
-
padding-right: calc(18px + var(--
|
|
15
|
+
padding-right: calc(18px + var(--g-scrollbar-width, 15px));
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
.chartkit-highcharts-tooltip-container._tooltip-with-scroll-in-safari ._tooltip-rows__summ-tr td:last-child {
|
|
19
|
-
padding-right: calc(18px + var(--
|
|
19
|
+
padding-right: calc(18px + var(--g-scrollbar-width, 15px));
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
._tooltip {
|
|
23
23
|
border-radius: 5px;
|
|
24
|
-
background: var(--
|
|
25
|
-
background-color: var(--
|
|
26
|
-
color: var(--
|
|
24
|
+
background: var(--g-color-infographics-tooltip-bg);
|
|
25
|
+
background-color: var(--g-color-infographics-tooltip-bg);
|
|
26
|
+
color: var(--g-color-text-primary);
|
|
27
27
|
font-size: 12px;
|
|
28
28
|
overflow: hidden;
|
|
29
29
|
box-sizing: border-box;
|
|
@@ -150,13 +150,12 @@
|
|
|
150
150
|
._tooltip-rows__table thead._tooltip-header tr:not(._tooltip-fake-row):first-child td {
|
|
151
151
|
padding-top: 6px;
|
|
152
152
|
padding-bottom: 6px;
|
|
153
|
-
border-bottom: 1px solid var(--
|
|
153
|
+
border-bottom: 1px solid var(--g-color-line-generic);
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
._tooltip-rows__table tbody {
|
|
157
157
|
display: block;
|
|
158
|
-
overflow
|
|
159
|
-
overflow-x: hidden;
|
|
158
|
+
overflow: hidden auto;
|
|
160
159
|
}
|
|
161
160
|
|
|
162
161
|
._tooltip-rows__table tbody._tooltip-footer {
|
|
@@ -169,11 +168,11 @@
|
|
|
169
168
|
}
|
|
170
169
|
|
|
171
170
|
._tooltip-rows__table tbody._tooltip-list ._tooltip-row-dark-bg {
|
|
172
|
-
background-color: var(--
|
|
171
|
+
background-color: var(--g-color-base-generic);
|
|
173
172
|
}
|
|
174
173
|
|
|
175
174
|
._tooltip-rows__table tbody ._hidden-rows-sum._hidden-rows-sum-dark-bg {
|
|
176
|
-
background-color: var(--
|
|
175
|
+
background-color: var(--g-color-base-generic);
|
|
177
176
|
}
|
|
178
177
|
|
|
179
178
|
._tooltip-rows__table tbody ._hidden-rows-sum td {
|
|
@@ -281,9 +280,9 @@
|
|
|
281
280
|
|
|
282
281
|
._tooltip-rows__summ-td {
|
|
283
282
|
padding: 6px 0 6px 3px;
|
|
284
|
-
color: var(--
|
|
283
|
+
color: var(--g-color-text-secondary);
|
|
285
284
|
font-size: 12px;
|
|
286
|
-
border-top: 1px solid var(--
|
|
285
|
+
border-top: 1px solid var(--g-color-line-generic);
|
|
287
286
|
}
|
|
288
287
|
|
|
289
288
|
._tooltip-rows__summ-td-value {
|
|
@@ -308,7 +307,7 @@
|
|
|
308
307
|
._tooltip-right__td {
|
|
309
308
|
vertical-align: top;
|
|
310
309
|
opacity: 0.9;
|
|
311
|
-
border-left: 1px solid var(--
|
|
310
|
+
border-left: 1px solid var(--g-color-line-generic);
|
|
312
311
|
white-space: normal;
|
|
313
312
|
font-size: 8pt;
|
|
314
313
|
position: relative;
|
|
@@ -348,7 +347,7 @@
|
|
|
348
347
|
}
|
|
349
348
|
|
|
350
349
|
._tooltip-right__traf-div_for-split-tooltip {
|
|
351
|
-
color: var(--
|
|
350
|
+
color: var(--g-color-text-secondary);
|
|
352
351
|
padding-left: 8px;
|
|
353
352
|
border-top: none;
|
|
354
353
|
border-left: 2px solid;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Yagr,
|
|
1
|
+
import type { MinimalValidConfig, Yagr, YagrChartOptions, YagrTheme, YagrWidgetData } from '../types';
|
|
2
2
|
type ShapeYagrConfigArgs = {
|
|
3
3
|
data: YagrWidgetData['data'];
|
|
4
4
|
libraryConfig: YagrWidgetData['libraryConfig'];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import merge from 'lodash/merge';
|
|
2
1
|
import { dateTime } from '@gravity-ui/date-utils';
|
|
3
2
|
import { defaults } from '@gravity-ui/yagr';
|
|
3
|
+
import merge from 'lodash/merge';
|
|
4
4
|
import { settings } from '../../../libs';
|
|
5
5
|
import { getRenderTooltip } from './tooltip';
|
|
6
6
|
const TOOLTIP_HEADER_CLASS_NAME = '_tooltip-header';
|
package/build/types/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { ChartKitWidget } from './widget';
|
|
3
2
|
import { ChartKitError } from '../libs';
|
|
3
|
+
import type { ChartKitWidget } from './widget';
|
|
4
4
|
export type { ChartKitHolidays } from './misc';
|
|
5
5
|
export * from './widget-data';
|
|
6
6
|
export type ChartKitLang = 'ru' | 'en';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SeriesType } from '../../constants';
|
|
2
2
|
import type { BaseSeries, BaseSeriesData } from './base';
|
|
3
|
-
import type { ChartKitWidgetSeriesOptions } from './series';
|
|
4
3
|
import { ChartKitWidgetLegend, RectLegendSymbolOptions } from './legend';
|
|
4
|
+
import type { ChartKitWidgetSeriesOptions } from './series';
|
|
5
5
|
export type BarXSeriesData<T = any> = BaseSeriesData<T> & {
|
|
6
6
|
/**
|
|
7
7
|
* The `x` value of the bar. Depending on the context , it may represents:
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SeriesType } from '../../constants';
|
|
2
2
|
import type { BaseSeries, BaseSeriesData } from './base';
|
|
3
|
-
import type { ChartKitWidgetSeriesOptions } from './series';
|
|
4
3
|
import { ChartKitWidgetLegend, RectLegendSymbolOptions } from './legend';
|
|
4
|
+
import type { ChartKitWidgetSeriesOptions } from './series';
|
|
5
5
|
export type BarYSeriesData<T = any> = BaseSeriesData<T> & {
|
|
6
6
|
/**
|
|
7
7
|
* The `x` value of the bar. Depending on the context , it may represents:
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { DashStyle, LineCap, SeriesType } from '../../constants';
|
|
1
2
|
import type { BaseSeries, BaseSeriesData } from './base';
|
|
2
3
|
import type { ChartKitWidgetLegend, RectLegendSymbolOptions } from './legend';
|
|
3
4
|
import type { PointMarkerOptions } from './marker';
|
|
4
|
-
import { DashStyle, LineCap, SeriesType } from '../../constants';
|
|
5
5
|
export type LineSeriesData<T = any> = BaseSeriesData<T> & {
|
|
6
6
|
/**
|
|
7
7
|
* The `x` value of the point. Depending on the context , it may represents:
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
3
|
-
import type {
|
|
2
|
+
import { DashStyle, LineCap } from '../../constants';
|
|
3
|
+
import type { AreaSeries, AreaSeriesData } from './area';
|
|
4
4
|
import type { BarXSeries, BarXSeriesData } from './bar-x';
|
|
5
|
-
import type { LineSeries, LineSeriesData } from './line';
|
|
6
5
|
import type { BarYSeries, BarYSeriesData } from './bar-y';
|
|
6
|
+
import type { Halo } from './halo';
|
|
7
|
+
import type { LineSeries, LineSeriesData } from './line';
|
|
7
8
|
import type { PointMarkerOptions } from './marker';
|
|
8
|
-
import type {
|
|
9
|
+
import type { PieSeries, PieSeriesData } from './pie';
|
|
10
|
+
import type { ScatterSeries, ScatterSeriesData } from './scatter';
|
|
9
11
|
import type { TreemapSeries, TreemapSeriesData } from './treemap';
|
|
10
|
-
import type { Halo } from './halo';
|
|
11
|
-
import { DashStyle, LineCap } from '../../constants';
|
|
12
12
|
export type ChartKitWidgetSeries<T = any> = ScatterSeries<T> | PieSeries<T> | BarXSeries<T> | BarYSeries<T> | LineSeries<T> | AreaSeries<T> | TreemapSeries<T>;
|
|
13
13
|
export type ChartKitWidgetSeriesData<T = any> = ScatterSeriesData<T> | PieSeriesData<T> | BarXSeriesData<T> | BarYSeriesData<T> | LineSeriesData<T> | AreaSeriesData<T> | TreemapSeriesData<T>;
|
|
14
14
|
export type DataLabelRendererData<T = any> = {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import type { AreaSeries, AreaSeriesData } from './area';
|
|
2
3
|
import type { BarXSeries, BarXSeriesData } from './bar-x';
|
|
4
|
+
import type { BarYSeries, BarYSeriesData } from './bar-y';
|
|
5
|
+
import type { LineSeries, LineSeriesData } from './line';
|
|
3
6
|
import type { PieSeries, PieSeriesData } from './pie';
|
|
4
7
|
import type { ScatterSeries, ScatterSeriesData } from './scatter';
|
|
5
|
-
import type { LineSeries, LineSeriesData } from './line';
|
|
6
|
-
import type { BarYSeries, BarYSeriesData } from './bar-y';
|
|
7
|
-
import type { AreaSeries, AreaSeriesData } from './area';
|
|
8
8
|
import type { TreemapSeries, TreemapSeriesData } from './treemap';
|
|
9
9
|
export type TooltipDataChunkBarX<T = any> = {
|
|
10
10
|
data: BarXSeriesData<T>;
|
package/build/types/widget.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { CustomTooltipProps, Yagr, YagrWidgetData } from '../plugins/yagr/types';
|
|
3
|
-
import type { IndicatorWidgetData } from '../plugins/indicator/types';
|
|
4
2
|
import type { Highcharts, HighchartsWidgetData, StringParams } from '../plugins/highcharts/types';
|
|
3
|
+
import type { IndicatorWidgetData } from '../plugins/indicator/types';
|
|
4
|
+
import type { CustomTooltipProps, Yagr, YagrWidgetData } from '../plugins/yagr/types';
|
|
5
5
|
import type { ChartKitWidgetData } from './widget-data';
|
|
6
6
|
export interface ChartKitWidget {
|
|
7
7
|
yagr: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gravity-ui/chartkit",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.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/date-utils": "^1.
|
|
50
|
+
"@gravity-ui/date-utils": "^2.1.0",
|
|
51
51
|
"@gravity-ui/yagr": "^4.2.3",
|
|
52
52
|
"afterframe": "^1.0.2",
|
|
53
53
|
"d3": "^7.8.5",
|
|
@@ -58,13 +58,15 @@
|
|
|
58
58
|
"@babel/preset-env": "^7.22.6",
|
|
59
59
|
"@babel/preset-react": "^7.22.5",
|
|
60
60
|
"@babel/preset-typescript": "^7.22.5",
|
|
61
|
-
"@gravity-ui/eslint-config": "^1.
|
|
61
|
+
"@gravity-ui/eslint-config": "^3.1.1",
|
|
62
62
|
"@gravity-ui/i18n": "^1.0.0",
|
|
63
|
-
"@gravity-ui/prettier-config": "^1.0
|
|
64
|
-
"@gravity-ui/stylelint-config": "^
|
|
63
|
+
"@gravity-ui/prettier-config": "^1.1.0",
|
|
64
|
+
"@gravity-ui/stylelint-config": "^4.0.1",
|
|
65
65
|
"@gravity-ui/tsconfig": "^1.0.0",
|
|
66
|
-
"@gravity-ui/uikit": "^
|
|
66
|
+
"@gravity-ui/uikit": "^6.0.0",
|
|
67
|
+
"@jest/types": "^29.6.3",
|
|
67
68
|
"@playwright/experimental-ct-react17": "^1.41.1",
|
|
69
|
+
"@storybook/addon-actions": "^7.6.14",
|
|
68
70
|
"@storybook/addon-essentials": "^7.0.26",
|
|
69
71
|
"@storybook/addon-knobs": "^7.0.2",
|
|
70
72
|
"@storybook/cli": "^7.0.26",
|
|
@@ -80,7 +82,7 @@
|
|
|
80
82
|
"@typescript-eslint/eslint-plugin": "^5.31.0",
|
|
81
83
|
"cross-env": "^7.0.3",
|
|
82
84
|
"css-loader": "^5.2.7",
|
|
83
|
-
"eslint": "^8.
|
|
85
|
+
"eslint": "^8.56.0",
|
|
84
86
|
"gulp": "^4.0.2",
|
|
85
87
|
"gulp-cli": "^2.3.0",
|
|
86
88
|
"gulp-dart-sass": "^1.0.2",
|
|
@@ -88,26 +90,26 @@
|
|
|
88
90
|
"gulp-typescript": "^5.0.1",
|
|
89
91
|
"highcharts": "^8.2.2",
|
|
90
92
|
"husky": "^4.2.5",
|
|
91
|
-
"jest": "^
|
|
92
|
-
"jest-environment-jsdom": "^
|
|
93
|
+
"jest": "^29.7.0",
|
|
94
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
93
95
|
"lint-staged": "^10.2.7",
|
|
94
96
|
"npm-run-all": "^4.1.5",
|
|
95
|
-
"prettier": "^2.
|
|
97
|
+
"prettier": "^3.2.5",
|
|
96
98
|
"react": "^17.0.2",
|
|
97
99
|
"react-docgen-typescript": "^2.2.2",
|
|
98
100
|
"react-dom": "^17.0.2",
|
|
99
|
-
"rimraf": "^
|
|
101
|
+
"rimraf": "^5.0.5",
|
|
100
102
|
"sass": "^1.56.2",
|
|
101
103
|
"sass-loader": "^10.2.1",
|
|
102
104
|
"storybook": "^7.0.26",
|
|
103
105
|
"style-loader": "^2.0.0",
|
|
104
|
-
"stylelint": "^
|
|
105
|
-
"ts-jest": "^
|
|
106
|
+
"stylelint": "^15.11.0",
|
|
107
|
+
"ts-jest": "^29.1.2",
|
|
106
108
|
"ts-node": "^10.2.1",
|
|
107
|
-
"typescript": "^
|
|
109
|
+
"typescript": "^5.3.3"
|
|
108
110
|
},
|
|
109
111
|
"peerDependencies": {
|
|
110
|
-
"@gravity-ui/uikit": "^
|
|
112
|
+
"@gravity-ui/uikit": "^6.0.0",
|
|
111
113
|
"react": "^16.0.0 || ^17.0.0 || ^18.0.0"
|
|
112
114
|
},
|
|
113
115
|
"scripts": {
|
|
@@ -116,17 +118,14 @@
|
|
|
116
118
|
"clean": "gulp clean",
|
|
117
119
|
"start": "storybook dev -p 7007",
|
|
118
120
|
"build": "gulp",
|
|
119
|
-
"lint:js": "eslint --
|
|
120
|
-
"lint:
|
|
121
|
-
"lint:
|
|
121
|
+
"lint:js": "eslint --ext .js,.jsx,.ts,.tsx .",
|
|
122
|
+
"lint:js:fix": "npm run lint:js -- --fix",
|
|
123
|
+
"lint:styles": "cross-env stylelint '{styles,src}/**/*.scss'",
|
|
124
|
+
"lint:styles:fix": "cross-env npm run lint:styles -- --fix",
|
|
125
|
+
"lint:prettier": "cross-env prettier --check '**/*.md'",
|
|
126
|
+
"lint:prettier:fix": "cross-env prettier --write '**/*.md'",
|
|
122
127
|
"lint": "run-p lint:*",
|
|
123
128
|
"typecheck": "tsc --noEmit",
|
|
124
|
-
"docs:deps": "cd ./documentation && npm ci",
|
|
125
|
-
"docs:start": "cd ./documentation && npm run start",
|
|
126
|
-
"docs:start:ru": "cd ./documentation && npm run start:ru",
|
|
127
|
-
"docs:build": "cd ./documentation && npm run build",
|
|
128
|
-
"docs:serve": "cd ./documentation && npm run serve",
|
|
129
|
-
"docs:deploy": "cd ./documentation && npm run deploy",
|
|
130
129
|
"prepublishOnly": "npm run build",
|
|
131
130
|
"test:playwright": "playwright test -c tests/playwright.config.ts"
|
|
132
131
|
},
|