@gravity-ui/chartkit 3.0.0-beta.4 → 3.0.0-beta.5

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.
Files changed (53) hide show
  1. package/build/components/ChartKit.d.ts +3 -3
  2. package/build/components/ErrorBoundary/ErrorBoundary.d.ts +2 -2
  3. package/build/components/Loader/Loader.d.ts +3 -3
  4. package/build/i18n/index.d.ts +2 -2
  5. package/build/libs/chartkit-error/chartkit-error.d.ts +1 -1
  6. package/build/libs/settings/settings.d.ts +1 -1
  7. package/build/plugins/highcharts/__stories__/Line.stories.d.ts +2 -3
  8. package/build/plugins/highcharts/__stories__/Pie.stories.d.ts +2 -3
  9. package/build/plugins/highcharts/__stories__/area/Range.stories.d.ts +2 -3
  10. package/build/plugins/highcharts/__stories__/area/Stacked.stories.d.ts +2 -3
  11. package/build/plugins/highcharts/__stories__/column/HorizontalStacked.stories.d.ts +2 -3
  12. package/build/plugins/highcharts/__stories__/column/Vertical.stories.d.ts +2 -3
  13. package/build/plugins/highcharts/__stories__/column/VerticalStacked.stories.d.ts +2 -3
  14. package/build/plugins/highcharts/__stories__/combined/ComboChartWithSameLegendValues.stories.d.ts +2 -3
  15. package/build/plugins/highcharts/__stories__/complex/TwoAxis.stories.d.ts +2 -3
  16. package/build/plugins/highcharts/__stories__/components/ChartStory.d.ts +1 -1
  17. package/build/plugins/highcharts/__stories__/custom-error-render/custom-error-render.stories.d.ts +2 -3
  18. package/build/plugins/highcharts/__stories__/no-data/no-data.stories.d.ts +2 -3
  19. package/build/plugins/highcharts/__stories__/pie/WithTotals.stories.d.ts +2 -3
  20. package/build/plugins/highcharts/renderer/components/HighchartsComponent.d.ts +3 -3
  21. package/build/plugins/highcharts/renderer/components/StyledSplitPane/StyledSplitPane.d.ts +3 -3
  22. package/build/plugins/highcharts/renderer/components/withSplitPane/withSplitPane.js +2 -5
  23. package/build/plugins/highcharts/renderer/helpers/config/config.d.ts +0 -1
  24. package/build/plugins/highcharts/renderer/helpers/config/types.d.ts +2 -2
  25. package/build/plugins/highcharts/renderer/helpers/config/utils/addShowInNavigatorToSeries.d.ts +1 -1
  26. package/build/plugins/highcharts/renderer/helpers/config/utils/buildNavigatorFallback.d.ts +1 -1
  27. package/build/plugins/highcharts/renderer/helpers/config/utils/calculatePrecision.d.ts +1 -1
  28. package/build/plugins/highcharts/renderer/helpers/config/utils/getFormatOptionsFromLine.d.ts +1 -1
  29. package/build/plugins/highcharts/renderer/helpers/config/utils/isNavigatorSeries.d.ts +1 -1
  30. package/build/plugins/highcharts/renderer/helpers/config/utils/numberFormat.d.ts +1 -1
  31. package/build/plugins/highcharts/renderer/helpers/config/utils/setNavigatorDefaultPeriod.d.ts +2 -2
  32. package/build/plugins/highcharts/renderer/helpers/graph.d.ts +1 -1
  33. package/build/plugins/highcharts/renderer/helpers/graph.js +2 -2
  34. package/build/plugins/highcharts/renderer/helpers/tooltip/index.d.ts +1 -1
  35. package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/types.d.ts +1 -1
  36. package/build/plugins/highcharts/renderer/helpers/tooltip/types.d.ts +3 -3
  37. package/build/plugins/highcharts/renderer/helpers/types.d.ts +2 -2
  38. package/build/plugins/highcharts/types/comments.d.ts +1 -1
  39. package/build/plugins/highcharts/types/misc.d.ts +4 -4
  40. package/build/plugins/highcharts/types/widget.d.ts +4 -4
  41. package/build/plugins/indicator/__stories__/Indicator.stories.d.ts +2 -2
  42. package/build/plugins/indicator/renderer/IndicatorItem.d.ts +2 -2
  43. package/build/plugins/indicator/types.d.ts +2 -2
  44. package/build/plugins/shared/format-number/i18n/i18n.d.ts +1 -1
  45. package/build/plugins/shared/format-number/types.d.ts +2 -2
  46. package/build/plugins/yagr/__stories__/Yagr.stories.d.ts +3 -4
  47. package/build/plugins/yagr/renderer/tooltip/types.d.ts +4 -4
  48. package/build/plugins/yagr/renderer/utils.d.ts +1 -1
  49. package/build/plugins/yagr/types.d.ts +1 -1
  50. package/build/types/index.d.ts +12 -12
  51. package/build/types/misc.d.ts +1 -1
  52. package/package.json +13 -7
  53. package/CHANGELOG.md +0 -503
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
2
  import type { ChartKitType, ChartKitRef, ChartKitProps } from '../types';
3
3
  import './ChartKit.css';
4
- declare type ChartKitComponentProps<T extends ChartKitType> = Omit<ChartKitProps<T>, 'onError'> & {
4
+ type ChartKitComponentProps<T extends ChartKitType> = Omit<ChartKitProps<T>, 'onError'> & {
5
5
  instanceRef?: React.ForwardedRef<ChartKitRef | undefined>;
6
6
  };
7
- declare const ChartKitComponent: <T extends keyof import("../types").ChartKitWidget>(props: ChartKitComponentProps<T>) => JSX.Element;
7
+ declare const ChartKitComponent: <T extends keyof import("../types").ChartKitWidget>(props: ChartKitComponentProps<T>) => React.JSX.Element;
8
8
  export declare const ChartKit: <T extends keyof import("../types").ChartKitWidget>(props: {
9
9
  type: T;
10
10
  data: import("../types").ChartKitWidget[T]["data"];
@@ -16,7 +16,7 @@ export declare const ChartKit: <T extends keyof import("../types").ChartKitWidge
16
16
  onError?: import("../types").ChartKitOnError | undefined;
17
17
  renderError?: import("../types").RenderError | undefined;
18
18
  renderPluginLoader?: (() => React.ReactNode) | undefined;
19
- } & { [key in keyof Omit<import("../types").ChartKitWidget[T], "widget" | "data">]: import("../types").ChartKitWidget[T][key]; } & {
19
+ } & (Omit<import("../types").ChartKitWidget[T], "widget" | "data"> extends infer T_1 ? { [key in keyof T_1]: import("../types").ChartKitWidget[T][key]; } : never) & {
20
20
  ref?: React.ForwardedRef<ChartKitRef | undefined> | undefined;
21
21
  }) => ReturnType<typeof ChartKitComponent>;
22
22
  export {};
@@ -1,12 +1,12 @@
1
1
  import React from 'react';
2
2
  import type { ChartKitError } from '../../libs';
3
3
  import type { ChartKitOnError, ChartKitType, ChartKitWidget, RenderError } from '../../types';
4
- declare type Props = {
4
+ type Props = {
5
5
  onError?: ChartKitOnError;
6
6
  data: ChartKitWidget[ChartKitType]['data'];
7
7
  renderError?: RenderError;
8
8
  };
9
- declare type State = {
9
+ type State = {
10
10
  error?: ChartKitError | Error;
11
11
  };
12
12
  export declare class ErrorBoundary extends React.Component<Props, State> {
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { LoaderProps as BaseLoaderProps } from '@gravity-ui/uikit';
3
3
  import './Loader.css';
4
- declare type LoaderProps = BaseLoaderProps;
5
- export declare const Loader: (props: LoaderProps) => JSX.Element;
4
+ type LoaderProps = BaseLoaderProps;
5
+ export declare const Loader: (props: LoaderProps) => React.JSX.Element;
6
6
  export {};
@@ -1,7 +1,7 @@
1
1
  import { I18N, I18NFn } from '@gravity-ui/i18n';
2
2
  import en from './keysets/en.json';
3
- declare type Keysets = typeof en;
4
- declare type TypedI18n = I18NFn<Keysets>;
3
+ type Keysets = typeof en;
4
+ type TypedI18n = I18NFn<Keysets>;
5
5
  declare const i18nFactory: I18N;
6
6
  declare const i18n: TypedI18n;
7
7
  export { i18nFactory, i18n };
@@ -1,4 +1,4 @@
1
- export declare type ChartKitErrorArgs = {
1
+ export type ChartKitErrorArgs = {
2
2
  code?: number | string;
3
3
  originalError?: Error;
4
4
  message?: string;
@@ -8,7 +8,7 @@ interface Settings {
8
8
  holidays?: ChartKitHolidays;
9
9
  };
10
10
  }
11
- declare type SettingKey = keyof Settings;
11
+ type SettingKey = keyof Settings;
12
12
  export declare const DEFAULT_LOCALE_SPECIFICATION: moment.LocaleSpecification;
13
13
  declare class ChartKitSettings {
14
14
  private settings;
@@ -1,4 +1,3 @@
1
- import { Meta, Story } from '@storybook/react';
2
- declare const _default: Meta<import("@storybook/react").Args>;
1
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
3
2
  export default _default;
4
- export declare const Line: Story<any>;
3
+ export declare const Line: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
@@ -1,4 +1,3 @@
1
- import { Meta, Story } from '@storybook/react';
2
- declare const _default: Meta<import("@storybook/react").Args>;
1
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
3
2
  export default _default;
4
- export declare const Pie: Story<any>;
3
+ export declare const Pie: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
@@ -1,4 +1,3 @@
1
- import { Meta, Story } from '@storybook/react';
2
- declare const _default: Meta<import("@storybook/react").Args>;
1
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
3
2
  export default _default;
4
- export declare const AreaRange: Story<any>;
3
+ export declare const AreaRange: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
@@ -1,4 +1,3 @@
1
- import { Meta, Story } from '@storybook/react';
2
- declare const _default: Meta<import("@storybook/react").Args>;
1
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
3
2
  export default _default;
4
- export declare const AreaStacked: Story<any>;
3
+ export declare const AreaStacked: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
@@ -1,4 +1,3 @@
1
- import { Story, Meta } from '@storybook/react';
2
- declare const _default: Meta<import("@storybook/react").Args>;
1
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
3
2
  export default _default;
4
- export declare const HorizontalStacked: Story<any>;
3
+ export declare const HorizontalStacked: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
@@ -1,4 +1,3 @@
1
- import { Story, Meta } from '@storybook/react';
2
- declare const _default: Meta<import("@storybook/react").Args>;
1
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
3
2
  export default _default;
4
- export declare const Vertical: Story<any>;
3
+ export declare const Vertical: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
@@ -1,4 +1,3 @@
1
- import { Story, Meta } from '@storybook/react';
2
- declare const _default: Meta<import("@storybook/react").Args>;
1
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
3
2
  export default _default;
4
- export declare const VerticalStacked: Story<any>;
3
+ export declare const VerticalStacked: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
@@ -1,4 +1,3 @@
1
- import { Story, Meta } from '@storybook/react';
2
- declare const _default: Meta<import("@storybook/react").Args>;
1
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
3
2
  export default _default;
4
- export declare const ComboChart: Story<any>;
3
+ export declare const ComboChart: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
@@ -1,4 +1,3 @@
1
- import { Meta, Story } from '@storybook/react';
2
- declare const _default: Meta<import("@storybook/react").Args>;
1
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
3
2
  export default _default;
4
- export declare const TwoAxis: Story<import("@storybook/react").Args>;
3
+ export declare const TwoAxis: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { RenderError } from '../../../../types';
3
3
  import { HighchartsWidgetData } from '../../types';
4
- export declare type ChartStoryProps = {
4
+ export type ChartStoryProps = {
5
5
  data: HighchartsWidgetData;
6
6
  withoutPlugin?: boolean;
7
7
  visible?: boolean;
@@ -1,4 +1,3 @@
1
- import { Meta, Story } from '@storybook/react';
2
- declare const _default: Meta<import("@storybook/react").Args>;
1
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
3
2
  export default _default;
4
- export declare const CustomErrorRender: Story<import("@storybook/react").Args>;
3
+ export declare const CustomErrorRender: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
@@ -1,4 +1,3 @@
1
- import { Meta, Story } from '@storybook/react';
2
- declare const _default: Meta<import("@storybook/react").Args>;
1
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
3
2
  export default _default;
4
- export declare const NoData: Story<import("@storybook/react").Args>;
3
+ export declare const NoData: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
@@ -1,4 +1,3 @@
1
- import { Meta, Story } from '@storybook/react';
2
- declare const _default: Meta<import("@storybook/react").Args>;
1
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
3
2
  export default _default;
4
- export declare const WithTotals: Story<any>;
3
+ export declare const WithTotals: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
@@ -3,8 +3,8 @@ import Highcharts, { ChartCallbackFunction, Options, Chart } from 'highcharts';
3
3
  import type { ChartKitProps } from '../../../../types';
4
4
  import type { HighchartsWidgetData, StringParams } from '../../types';
5
5
  import './HighchartsComponent.css';
6
- declare type Props = ChartKitProps<'highcharts'>;
7
- declare type State = {
6
+ type Props = ChartKitProps<'highcharts'>;
7
+ type State = {
8
8
  prevData: HighchartsWidgetData | null;
9
9
  options: (Options & {
10
10
  useHighStock: boolean;
@@ -576,7 +576,7 @@ export declare class HighchartsComponent extends React.PureComponent<Props, Stat
576
576
  private chartComponent;
577
577
  componentDidMount(): void;
578
578
  componentDidUpdate(): void;
579
- render(): JSX.Element | null;
579
+ render(): React.JSX.Element | null;
580
580
  reflow: () => void;
581
581
  extendChartInstance: (chart: Chart) => void;
582
582
  getParams: () => StringParams;
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
2
  import { Split, SplitPaneProps } from 'react-split-pane';
3
3
  import './StyledSplitPane.css';
4
- export declare type PaneSplit = Split;
5
- declare type Props = SplitPaneProps & {
4
+ export type PaneSplit = Split;
5
+ type Props = SplitPaneProps & {
6
6
  paneOneRender: () => React.ReactNode;
7
7
  paneTwoRender: () => React.ReactNode;
8
8
  };
9
- export declare const StyledSplitPane: ({ paneOneRender, paneTwoRender, ...splitPaneProps }: Props) => JSX.Element;
9
+ export declare const StyledSplitPane: ({ paneOneRender, paneTwoRender, ...splitPaneProps }: Props) => React.JSX.Element;
10
10
  export {};
@@ -1,7 +1,7 @@
1
1
  /* eslint callback-return: 0 */
2
2
  import React from 'react';
3
3
  import block from 'bem-cn-lite';
4
- import { get, debounce } from 'lodash';
4
+ import { debounce, get } from 'lodash';
5
5
  import { getRandomCKId } from '../../../../../utils';
6
6
  import { chartTypesWithoutCrosshair } from '../../helpers/config/config';
7
7
  import { StyledSplitPane } from '../StyledSplitPane/StyledSplitPane';
@@ -42,10 +42,7 @@ function getPointsForInitialRefresh(chart) {
42
42
  return points;
43
43
  }
44
44
  function forceHoverState(chart, activePoints) {
45
- const chartType = get(chart, 'userOptions.chart.type');
46
- if (!chartType) {
47
- return;
48
- }
45
+ const chartType = get(chart, 'userOptions.chart.type') || '';
49
46
  if (chartType === 'pie') {
50
47
  chart.tooltip.refresh(activePoints);
51
48
  chart.pointsForInitialRefresh = activePoints;
@@ -588,4 +588,3 @@ export function prepareConfig(data: any, options: any, isMobile: any, holidays:
588
588
  export const chartTypesWithoutCrosshair: string[];
589
589
  export const chartTypesWithoutYCrosshair: string[];
590
590
  export const chartTypesWithNativeTooltip: string[];
591
- import Highcharts from "highcharts";
@@ -1,6 +1,6 @@
1
- export declare type NavigatorPeriod = {
1
+ export type NavigatorPeriod = {
2
2
  type: string;
3
3
  value: string;
4
4
  period: Period;
5
5
  };
6
- export declare type Period = 'month' | 'year' | 'day' | 'hour' | 'week' | 'quarter';
6
+ export type Period = 'month' | 'year' | 'day' | 'hour' | 'week' | 'quarter';
@@ -1,5 +1,5 @@
1
1
  import { NavigatorLinesMode } from '../../constants';
2
- declare type AddShowInNavigatorToSeriesArgs = {
2
+ type AddShowInNavigatorToSeriesArgs = {
3
3
  linesMode: NavigatorLinesMode;
4
4
  graphs: Record<string, any>[];
5
5
  baseSeriesName: string;
@@ -1 +1 @@
1
- export declare const buildNavigatorFallback: (graphs: Record<string, any>[], baseSeriesName?: string | undefined) => void;
1
+ export declare const buildNavigatorFallback: (graphs: Record<string, any>[], baseSeriesName?: string) => void;
@@ -2,4 +2,4 @@ export declare const calculatePrecision: (alternativePrecision: number | null, o
2
2
  normalizeDiv: boolean;
3
3
  normalizeSub: boolean;
4
4
  precision?: number;
5
- }, originalValue?: number | undefined) => number | null | undefined;
5
+ }, originalValue?: number) => number | undefined;
@@ -1,3 +1,3 @@
1
1
  import type { FormatNumberOptions } from '../../../../../shared';
2
2
  import type { TooltipLine } from '../../tooltip/types';
3
- export declare const getFormatOptionsFromLine: (line?: Partial<TooltipLine> | undefined) => FormatNumberOptions | undefined;
3
+ export declare const getFormatOptionsFromLine: (line?: Partial<TooltipLine>) => FormatNumberOptions | undefined;
@@ -1,2 +1,2 @@
1
1
  import type { Highcharts } from '../../../../types';
2
- export declare const isNavigatorSeries: (series?: Highcharts.Point | Highcharts.Series | undefined) => boolean;
2
+ export declare const isNavigatorSeries: (series?: Highcharts.Series | Highcharts.Point) => boolean;
@@ -1,2 +1,2 @@
1
1
  import type { FormatNumberOptions } from '../../../../../shared';
2
- export declare const numberFormat: (val: number, round?: number | undefined, options?: FormatNumberOptions) => string | null;
2
+ export declare const numberFormat: (val: number, round?: number, options?: FormatNumberOptions) => string | null;
@@ -1,10 +1,10 @@
1
1
  import type { Highcharts } from '../../../../types';
2
2
  import type { NavigatorPeriod } from '../types';
3
- declare type SetNavigatorDefaultPeriod = {
3
+ type SetNavigatorDefaultPeriod = {
4
4
  params: Record<string, any>;
5
5
  periodSettings: NavigatorPeriod;
6
6
  };
7
- declare type NavigatorPeriodInMS = {
7
+ type NavigatorPeriodInMS = {
8
8
  minRange: number;
9
9
  range: number;
10
10
  };
@@ -2,7 +2,7 @@ import type { ChartKitHolidays } from '../../../../types';
2
2
  import type { Highcharts, HighchartsWidgetData, HighchartsComment, ExtendedHChart } from '../../types';
3
3
  import type { ConfigOptions } from './types';
4
4
  import './graph.css';
5
- declare type GetGraphArgs = {
5
+ type GetGraphArgs = {
6
6
  options: ConfigOptions;
7
7
  data: HighchartsWidgetData['data'];
8
8
  comments?: HighchartsComment[];
@@ -14,7 +14,7 @@ function getGraph({ options, data, comments, isMobile, holidays }) {
14
14
  return {
15
15
  config: Object.assign({ _externalComments: (!options.disableExternalComments && comments) || [], _internalComments: data.comments || [] }, prepareConfig(data, options, isMobile, holidays)),
16
16
  callback: (chart) => {
17
- var _a, _b, _c;
17
+ var _a, _b;
18
18
  if (!chart) {
19
19
  console.error('CHARTKIT_NO_CHART_CALLBACK');
20
20
  return;
@@ -63,7 +63,7 @@ function getGraph({ options, data, comments, isMobile, holidays }) {
63
63
  xAxis !== chart.navigator.xAxis) || ((_a = chart.navigator) === null || _a === void 0 ? void 0 : _a.xAxis);
64
64
  extmin = Math.max((_b = chart.xAxis[0]) === null || _b === void 0 ? void 0 : _b.dataMin, extmin);
65
65
  extmax = Math.min(chart.xAxis[0].dataMax, extmax);
66
- (_c = xAxis) === null || _c === void 0 ? void 0 : _c.setExtremes(extmin, extmax, false, false);
66
+ xAxis === null || xAxis === void 0 ? void 0 : xAxis.setExtremes(extmin, extmax, false, false);
67
67
  needRedraw = true;
68
68
  }
69
69
  }
@@ -9,5 +9,5 @@ export declare const TOOLTIP_ROW_CLASS_NAME = "_tooltip-row";
9
9
  export declare const TOOLTIP_HEADER_CLASS_NAME = "_tooltip-header";
10
10
  export declare const TOOLTIP_LIST_CLASS_NAME = "_tooltip-list";
11
11
  export declare const TOOLTIP_FOOTER_CLASS_NAME = "_tooltip-footer";
12
- export declare const formatTooltip: (data: TooltipData, tooltip: Highcharts.Tooltip, isMobile?: boolean | undefined) => string;
12
+ export declare const formatTooltip: (data: TooltipData, tooltip: Highcharts.Tooltip, isMobile?: boolean) => string;
13
13
  export default formatTooltip;
@@ -1,4 +1,4 @@
1
- export declare type CommonIconProps = {
1
+ export type CommonIconProps = {
2
2
  width: string;
3
3
  height: string;
4
4
  };
@@ -1,6 +1,6 @@
1
1
  import type { FormatNumberOptions } from '../../../../shared';
2
2
  import type { LineShapeType } from './constants';
3
- export declare type TooltipData = {
3
+ export type TooltipData = {
4
4
  /** Tooltip lines data */
5
5
  lines: Array<TooltipLine>;
6
6
  /** Tooltip comments */
@@ -48,7 +48,7 @@ export declare type TooltipData = {
48
48
  iteratee?: keyof TooltipLine | keyof TooltipLine[] | ((line: TooltipLine) => TooltipLine[keyof TooltipLine] | TooltipLine[keyof TooltipLine][]);
49
49
  };
50
50
  };
51
- export declare type TooltipLine = {
51
+ export type TooltipLine = {
52
52
  /** Color displayed in a separate cell */
53
53
  seriesColor: string;
54
54
  /** Series name */
@@ -84,7 +84,7 @@ export declare type TooltipLine = {
84
84
  chartKitShowRankDelimiter?: FormatNumberOptions['showRankDelimiter'];
85
85
  chartKitUnit?: FormatNumberOptions['unit'];
86
86
  };
87
- export declare type RowRenderingConfig = {
87
+ export type RowRenderingConfig = {
88
88
  cellsRenderers: Array<(line: TooltipLine) => string>;
89
89
  isSelectedLine?: boolean;
90
90
  allowComment?: boolean;
@@ -1,6 +1,6 @@
1
1
  import type { FormatNumberOptions } from '../../../shared';
2
2
  import type { DrillDownConfig, HighchartsWidgetData } from '../../types';
3
- export declare type ConfigOptions = {
3
+ export type ConfigOptions = {
4
4
  highcharts: HighchartsWidgetData['libraryConfig'];
5
5
  nonBodyScroll?: boolean;
6
6
  splitTooltip?: boolean;
@@ -10,7 +10,7 @@ export declare type ConfigOptions = {
10
10
  max?: number;
11
11
  };
12
12
  } & HighchartsWidgetData['config'];
13
- export declare type ChartKitFormatNumberSettings = {
13
+ export type ChartKitFormatNumberSettings = {
14
14
  chartKitFormatting?: boolean;
15
15
  chartKitFormat?: FormatNumberOptions['format'];
16
16
  chartKitPostfix?: FormatNumberOptions['postfix'];
@@ -47,5 +47,5 @@ interface CommentFlagX extends CommentBase {
47
47
  shape: string;
48
48
  };
49
49
  }
50
- export declare type HighchartsComment = CommentDotXY | CommentBandX | CommentLineX | CommentFlagX;
50
+ export type HighchartsComment = CommentDotXY | CommentBandX | CommentLineX | CommentFlagX;
51
51
  export {};
@@ -1,14 +1,14 @@
1
1
  import type { HighchartsComment } from './comments';
2
- export declare type StringParams = Record<string, string | string[]>;
3
- export declare type DrillDownConfig = {
2
+ export type StringParams = Record<string, string | string[]>;
3
+ export type DrillDownConfig = {
4
4
  breadcrumbs: string[];
5
5
  };
6
- export declare type XAxisItem = Highcharts.Axis & {
6
+ export type XAxisItem = Highcharts.Axis & {
7
7
  dataMin: number;
8
8
  dataMax: number;
9
9
  setExtremes: (...args: any[]) => void;
10
10
  };
11
- export declare type ExtendedHChart = Highcharts.Chart & {
11
+ export type ExtendedHChart = Highcharts.Chart & {
12
12
  userOptions: Highcharts.Options & {
13
13
  _internalComments: HighchartsComment[];
14
14
  _externalComments: HighchartsComment[];
@@ -2,12 +2,12 @@ import type { Highcharts } from './lib';
2
2
  import type { HighchartsComment } from './comments';
3
3
  import type { DrillDownConfig, StringParams } from './misc';
4
4
  import type { TooltipData, TooltipLine } from '../renderer/helpers/tooltip/types';
5
- export declare type CkHighchartsSeriesOptionsType = Highcharts.SeriesOptionsType & {
5
+ export type CkHighchartsSeriesOptionsType = Highcharts.SeriesOptionsType & {
6
6
  title?: string;
7
7
  sname?: string;
8
8
  fname?: string;
9
9
  };
10
- export declare type HighchartsManageTooltipConfigOptions = {
10
+ export type HighchartsManageTooltipConfigOptions = {
11
11
  count: number;
12
12
  lines: TooltipLine[];
13
13
  shared: boolean;
@@ -26,8 +26,8 @@ export declare type HighchartsManageTooltipConfigOptions = {
26
26
  withPercent?: boolean;
27
27
  xComments?: TooltipData['xComments'];
28
28
  };
29
- export declare type HighchartsManageTooltipConfig = (options: HighchartsManageTooltipConfigOptions, chart: Highcharts.Chart) => HighchartsManageTooltipConfigOptions;
30
- export declare type HighchartsWidgetData = {
29
+ export type HighchartsManageTooltipConfig = (options: HighchartsManageTooltipConfigOptions, chart: Highcharts.Chart) => HighchartsManageTooltipConfigOptions;
30
+ export type HighchartsWidgetData = {
31
31
  data: (CkHighchartsSeriesOptionsType[] | {
32
32
  graphs: CkHighchartsSeriesOptionsType[];
33
33
  categories_ms: number[];
@@ -1,4 +1,4 @@
1
- import { Meta, Story } from '@storybook/react';
2
- export declare const Showcase: Story<import("@storybook/react").Args>;
1
+ import { Meta } from '@storybook/react';
2
+ export declare const Showcase: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
3
3
  declare const meta: Meta;
4
4
  export default meta;
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import type { ChartKitProps } from '../../../types';
3
3
  import type { IndicatorWidgetDataItem } from '../types';
4
4
  export declare const IndicatorItem: (props: IndicatorWidgetDataItem & {
5
5
  defaultColor?: string;
6
6
  formatNumber?: ChartKitProps<'indicator'>['formatNumber'];
7
- }) => JSX.Element;
7
+ }) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- export declare type IndicatorWidgetDataItem = {
1
+ export type IndicatorWidgetDataItem = {
2
2
  content: {
3
3
  current: {
4
4
  value: string | number;
@@ -9,7 +9,7 @@ export declare type IndicatorWidgetDataItem = {
9
9
  title?: string;
10
10
  nowrap?: boolean;
11
11
  };
12
- export declare type IndicatorWidgetData = {
12
+ export type IndicatorWidgetData = {
13
13
  data?: IndicatorWidgetDataItem[];
14
14
  defaultColor?: string;
15
15
  };
@@ -1,5 +1,5 @@
1
1
  import { I18N } from '@gravity-ui/i18n';
2
- declare type KeysetData = Parameters<InstanceType<typeof I18N>['registerKeysets']>[1];
2
+ type KeysetData = Parameters<InstanceType<typeof I18N>['registerKeysets']>[1];
3
3
  declare const i18nInstance: I18N;
4
4
  declare const makeInstance: (keysetName: string, keysetsData: Record<string, KeysetData>) => (key: string, params?: import("@gravity-ui/i18n").Params | undefined) => string;
5
5
  export { i18nInstance, makeInstance };
@@ -1,11 +1,11 @@
1
- export declare type FormatOptions = {
1
+ export type FormatOptions = {
2
2
  precision?: number | 'auto';
3
3
  unitRate?: number;
4
4
  showRankDelimiter?: boolean;
5
5
  lang?: string;
6
6
  labelMode?: string;
7
7
  };
8
- export declare type FormatNumberOptions = FormatOptions & {
8
+ export type FormatNumberOptions = FormatOptions & {
9
9
  format?: 'number' | 'percent';
10
10
  multiplier?: number;
11
11
  prefix?: string;
@@ -1,6 +1,5 @@
1
- import { Meta, Story } from '@storybook/react';
2
1
  import '@gravity-ui/yagr/dist/index.css';
3
- declare const _default: Meta<import("@storybook/react").Args>;
2
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
4
3
  export default _default;
5
- export declare const Line: Story<any>;
6
- export declare const Updates: Story<any>;
4
+ export declare const Line: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
5
+ export declare const Updates: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
@@ -1,4 +1,4 @@
1
- export declare type TooltipData = {
1
+ export type TooltipData = {
2
2
  /** Tooltip lines data */
3
3
  lines: Array<TooltipLine>;
4
4
  /** Tooltip comments */
@@ -35,10 +35,10 @@ export declare type TooltipData = {
35
35
  /** Sum of the values of the hidden ("not fit" in the tooltip) rows */
36
36
  hiddenRowsSum?: number | string;
37
37
  };
38
- export declare type TooltipExtraData = {
38
+ export type TooltipExtraData = {
39
39
  lastVisibleRowIndex: number;
40
40
  };
41
- export declare type TooltipLine = {
41
+ export type TooltipLine = {
42
42
  /** Color displayed in a separate cell */
43
43
  seriesColor: string;
44
44
  /** Series name */
@@ -64,7 +64,7 @@ export declare type TooltipLine = {
64
64
  replaceCellAt?: Record<number, (line: TooltipLine) => string>;
65
65
  insertCellAt?: Record<number, (line: TooltipLine) => string>;
66
66
  };
67
- export declare type RowRenderingConfig = {
67
+ export type RowRenderingConfig = {
68
68
  cellsRenderers: Array<(line: TooltipLine) => string>;
69
69
  isSelectedLine?: boolean;
70
70
  allowComment?: boolean;
@@ -1,5 +1,5 @@
1
1
  import type { Yagr, YagrWidgetData, YagrTheme, MinimalValidConfig } from '../types';
2
- declare type ShapeYagrConfigArgs = {
2
+ type ShapeYagrConfigArgs = {
3
3
  data: YagrWidgetData['data'];
4
4
  libraryConfig: YagrWidgetData['libraryConfig'];
5
5
  theme: YagrTheme;
@@ -1,7 +1,7 @@
1
1
  import type { RawSerieData, YagrConfig } from '@gravity-ui/yagr';
2
2
  export type { default as Yagr } from '@gravity-ui/yagr';
3
3
  export * from '@gravity-ui/yagr/dist/types';
4
- export declare type YagrWidgetData = {
4
+ export type YagrWidgetData = {
5
5
  data: {
6
6
  graphs: RawSerieData[];
7
7
  timeline: number[];