@oliasoft-open-source/charts-library 4.8.0-beta-8 → 4.8.1-beta-1

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 (30) hide show
  1. package/dist/index.d.ts +1 -1
  2. package/dist/index.js +314 -176
  3. package/dist/index.js.map +1 -1
  4. package/dist/src/components/bar-chart/bar-chart.stories.d.ts +2 -2
  5. package/dist/src/components/bar-chart/utils/use-bar-chart-options.d.ts +6 -6
  6. package/dist/src/components/common/common.interface.d.ts +2 -2
  7. package/dist/src/components/common/helpers/chart-consts.d.ts +1 -1
  8. package/dist/src/components/common/helpers/chart-utils.d.ts +2 -2
  9. package/dist/src/components/common/helpers/get-chart-annotation.d.ts +13 -13
  10. package/dist/src/components/common/hooks/use-legend-state.d.ts +3 -3
  11. package/dist/src/components/common/hooks/use-legend.d.ts +2 -3
  12. package/dist/src/components/common/legend-component/legend-panel.d.ts +1 -2
  13. package/dist/src/components/common/legend-component/state/legend-context.d.ts +1 -1
  14. package/dist/src/components/common/plugins/annotation-dragger-plugin/event-helpers.d.ts +2 -2
  15. package/dist/src/components/common/plugins/annotation-dragger-plugin/helpers.d.ts +2 -2
  16. package/dist/src/components/common/plugins/annotation-dragger-plugin/point-annotation-label.d.ts +1 -1
  17. package/dist/src/components/line-chart/line-chart.stories.d.ts +2 -2
  18. package/dist/src/components/line-chart/line-chart.test-case.stories.d.ts +1 -1
  19. package/dist/src/components/line-chart/utils/get-axes-ranges-from-chart.d.ts +1 -1
  20. package/dist/src/components/line-chart/utils/get-line-chart-data-labels.d.ts +1 -1
  21. package/dist/src/components/line-chart/utils/line-chart-utils.d.ts +1 -1
  22. package/dist/src/components/pie-chart/pie-chart.stories.d.ts +1 -1
  23. package/dist/src/components/pie-chart/use-pie-chart-config.d.ts +2 -2
  24. package/dist/src/components/scatter-chart/hooks/use-scatter-chart-config.d.ts +8 -8
  25. package/dist/src/components/scatter-chart/scatter-chart-get-default-props.d.ts +1 -1
  26. package/dist/src/components/scatter-chart/scatter-chart.d.ts +1 -1
  27. package/dist/src/components/scatter-chart/scatter-chart.stories.d.ts +1 -1
  28. package/dist/src/components/scatter-chart/utils/get-scales-config.d.ts +1 -1
  29. package/dist/src/components/scatter-chart/utils/get-tooltip-config.d.ts +2 -2
  30. package/package.json +10 -9
@@ -1,3 +1,4 @@
1
+ import { BarChart } from './bar-chart';
1
2
  declare namespace _default {
2
3
  export let title: string;
3
4
  export { BarChart as component };
@@ -178,7 +179,7 @@ export namespace CustomLegend {
178
179
  export namespace legend {
179
180
  namespace customLegend {
180
181
  export let customLegendPlugin: {
181
- afterUpdate(chart: import("chart.js").Chart<keyof import("chart.js").ChartTypeRegistry, (number | [number, number] | import("chart.js").Point | import("chart.js").BubbleDataPoint | null)[], unknown>, _args: import("chart.js").Plugin<keyof import("chart.js").ChartTypeRegistry, import("node_modules/chart.js/dist/types/basic").AnyObject>, _options: import("chart.js").ChartConfiguration<keyof import("chart.js").ChartTypeRegistry, (number | [number, number] | import("chart.js").Point | import("chart.js").BubbleDataPoint | null)[], unknown>): void;
182
+ afterUpdate(chart: import("chart.js").Chart, _args: import("chart.js").Plugin, _options: import("chart.js").ChartConfiguration): void;
182
183
  };
183
184
  export { customLegendContainerID };
184
185
  }
@@ -224,7 +225,6 @@ export namespace WaterfallChart {
224
225
  export { args_28 as args };
225
226
  }
226
227
  export function ControlsPortal(): import("react/jsx-runtime").JSX.Element;
227
- import { BarChart } from './bar-chart';
228
228
  declare namespace singleChart { }
229
229
  declare namespace customColorsChart {
230
230
  export namespace data_1 {
@@ -7,8 +7,8 @@ export interface IUseBarChartOptionsProps {
7
7
  chartRef: MutableRefObject<Chart | null>;
8
8
  }
9
9
  export declare const useBarChartOptions: ({ chart, chartRef, }: IUseBarChartOptionsProps) => {
10
- onClick: (_evt: import("chart.js").ChartEvent, _elements: import("chart.js").ActiveElement[], chartInstance: Chart<keyof import("chart.js").ChartTypeRegistry, (number | [number, number] | import("chart.js").Point | import("chart.js").BubbleDataPoint | null)[], unknown>) => void;
11
- onHover: (evt: import("chart.js").ChartEvent, hoveredItems: import("../../common/common.interface").ICommonHoveredItems[]) => void;
10
+ onClick: (_evt: import('chart.js').ChartEvent, _elements: import('chart.js').ActiveElement[], chartInstance: Chart) => void;
11
+ onHover: (evt: import('chart.js').ChartEvent, hoveredItems: import('../../common/common.interface').ICommonHoveredItems[]) => void;
12
12
  indexAxis: AxisType;
13
13
  maintainAspectRatio: boolean | undefined;
14
14
  animation: false | {
@@ -27,7 +27,7 @@ export declare const useBarChartOptions: ({ chart, chartRef, }: IUseBarChartOpti
27
27
  display?: undefined;
28
28
  text?: undefined;
29
29
  };
30
- datalabels: import("./get-bar-chart-data-labels").IExtendedDataLabelsOptions;
30
+ datalabels: import('./get-bar-chart-data-labels').IExtendedDataLabelsOptions;
31
31
  annotation: {
32
32
  annotations: {};
33
33
  };
@@ -36,13 +36,13 @@ export declare const useBarChartOptions: ({ chart, chartRef, }: IUseBarChartOpti
36
36
  display: boolean;
37
37
  events: never[];
38
38
  position: any;
39
- align: "end" | "start" | "center";
39
+ align: "center" | "start" | "end";
40
40
  labels: {
41
41
  boxHeight: number;
42
42
  boxWidth: number | undefined;
43
43
  usePointStyle: boolean | undefined;
44
44
  };
45
- onClick: (_: any, legendItem: import("chart.js").LegendItem) => void;
45
+ onClick: (_: import('../../common/common.interface').UnusedParameter, legendItem: import('chart.js').LegendItem) => void;
46
46
  };
47
47
  customLegendPlugin: {
48
48
  htmlLegend: any;
@@ -50,6 +50,6 @@ export declare const useBarChartOptions: ({ chart, chartRef, }: IUseBarChartOpti
50
50
  chartAreaBorder: {
51
51
  borderColor: string;
52
52
  };
53
- dragData: false | object | import("../../common/helpers/get-draggableData").IDraggableData | undefined;
53
+ dragData: false | object | import('../../common/helpers/get-draggableData').IDraggableData | undefined;
54
54
  };
55
55
  };
@@ -1,7 +1,7 @@
1
1
  import { ChartEvent, ChartTypeRegistry, LinearScaleOptions, Plugin } from 'chart.js';
2
2
  import { LabelOptions } from 'chartjs-plugin-annotation';
3
- import { GradientDirection } from '../common/plugins/gradient-background-plugin/enums';
4
- import { AnnotationType, DragAxis } from '../common/plugins/annotation-dragger-plugin/enums';
3
+ import { GradientDirection } from './plugins/gradient-background-plugin/enums';
4
+ import { AnnotationType, DragAxis } from './plugins/annotation-dragger-plugin/enums';
5
5
  import { AlignOptions, Position } from './helpers/enums';
6
6
  export type TAxisPosition = 'top' | 'bottom' | 'left' | 'right';
7
7
  export interface ICommonDataValue {
@@ -1,4 +1,4 @@
1
- import { ICommonGradientColor } from '../../common/common.interface';
1
+ import { ICommonGradientColor } from '../common.interface';
2
2
  export declare const BORDER_WIDTH: {
3
3
  ZERO: number;
4
4
  INITIAL: number;
@@ -52,7 +52,7 @@ export declare const getTitle: (options: IOptions) => {
52
52
  /**
53
53
  * @function isVertical
54
54
  */
55
- export declare const isVertical: (direction: 'vertical' | 'horizontal') => boolean;
55
+ export declare const isVertical: (direction: "vertical" | "horizontal") => direction is "vertical";
56
56
  /**
57
57
  * @param {'x'|'y'} axisType
58
58
  * @param {number} i - index
@@ -68,7 +68,7 @@ export declare const getClassName: (chartStyling: IStyling, styles: Record<strin
68
68
  export declare const getLegend: (options: IOptions, clickHandler: (_: UnusedParameter, legendItem: LegendItem) => void) => {
69
69
  position: any;
70
70
  display: boolean | undefined;
71
- align: "end" | "start" | "center";
71
+ align: "center" | "start" | "end";
72
72
  labels: {
73
73
  boxHeight: number;
74
74
  boxWidth: number | undefined;
@@ -1,5 +1,5 @@
1
1
  import { Chart } from 'chart.js';
2
- import { AnnotationType } from '../../common/plugins/annotation-dragger-plugin/enums';
2
+ import { AnnotationType } from '../plugins/annotation-dragger-plugin/enums';
3
3
  import { Position } from './enums';
4
4
  import { ICommonAnnotationElement, ICommonAnnotationsData, ICoordinates } from '../common.interface';
5
5
  export interface IGetAnnotationsProps {
@@ -65,26 +65,26 @@ declare const getAnnotation: ({ showAnnotations, annotationsData, }: IGetAnnotat
65
65
  pointStyle: string;
66
66
  resizable: boolean;
67
67
  displayDragCoordinates: boolean;
68
- hideLegend?: boolean | undefined;
68
+ hideLegend?: boolean;
69
69
  annotationAxis: "x" | "y";
70
70
  color: string;
71
71
  endValue: number;
72
- labelConfig?: Record<string, any> | undefined;
72
+ labelConfig?: Record<string, any>;
73
73
  value: number;
74
74
  xMin: number;
75
75
  xMax: number;
76
76
  yMin: number;
77
77
  yMax: number;
78
- xValue?: number | undefined;
79
- yValue?: number | undefined;
80
- radius?: number | undefined;
81
- enableDrag?: boolean | undefined;
82
- dragAxis?: import('../../common/plugins/annotation-dragger-plugin/enums').DragAxis | undefined;
78
+ xValue?: number;
79
+ yValue?: number;
80
+ radius?: number;
81
+ enableDrag?: boolean;
82
+ dragAxis?: import('../plugins/annotation-dragger-plugin/enums').DragAxis;
83
83
  dragRange?: {
84
- x?: [number, number] | undefined;
85
- y?: [number, number] | undefined;
86
- } | undefined;
87
- xScaleID?: string | undefined;
88
- yScaleID?: string | undefined;
84
+ x?: [number, number];
85
+ y?: [number, number];
86
+ };
87
+ xScaleID?: string;
88
+ yScaleID?: string;
89
89
  }[];
90
90
  export default getAnnotation;
@@ -10,17 +10,17 @@ export interface IUseLegendStateProps {
10
10
  */
11
11
  export declare const useLegendState: ({ chartRef, options }: IUseLegendStateProps) => {
12
12
  legendClick: (_: UnusedParameter, legendItem: LegendItem) => void;
13
- annotation: import("../common.interface").ICommonAnnotationElement[];
13
+ annotation: import('../common.interface').ICommonAnnotationElement[];
14
14
  legend: {
15
15
  position: any;
16
16
  display: boolean | undefined;
17
- align: "end" | "start" | "center";
17
+ align: "center" | "start" | "end";
18
18
  labels: {
19
19
  boxHeight: number;
20
20
  boxWidth: number | undefined;
21
21
  usePointStyle: boolean | undefined;
22
22
  };
23
- onClick: (_: any, legendItem: LegendItem) => void;
23
+ onClick: (_: UnusedParameter, legendItem: LegendItem) => void;
24
24
  };
25
25
  customLegendPlugin: {
26
26
  htmlLegend: any;
@@ -1,5 +1,4 @@
1
- /// <reference types="react" />
2
1
  export declare const useLegend: () => {
3
- state: import("../legend-component/state/legend-state-reducer").ILegendState;
4
- dispatch: import("react").Dispatch<any>;
2
+ state: import('../legend-component/state/legend-state-reducer').ILegendState;
3
+ dispatch: React.Dispatch<any>;
5
4
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ILegendPanel } from './legend-interface';
3
- declare const LegendPanel: import("react").ForwardRefExoticComponent<ILegendPanel & import("react").RefAttributes<HTMLDivElement>>;
2
+ declare const LegendPanel: import('react').ForwardRefExoticComponent<ILegendPanel & import('react').RefAttributes<HTMLDivElement>>;
4
3
  export default LegendPanel;
@@ -1,4 +1,4 @@
1
- import React, { ReactNode } from 'react';
1
+ import { default as React, ReactNode } from 'react';
2
2
  import { ILegendState } from './legend-state-reducer';
3
3
  import { TChartsOption } from '../legend-interface';
4
4
  export declare const LegendContext: React.Context<{
@@ -1,6 +1,6 @@
1
1
  import { Chart } from 'chart.js';
2
- import { IScales } from '../../../common/plugins/annotation-dragger-plugin/annotation-dragger-plugin';
3
- import { ICommonAnnotationsData } from '../../../common/common.interface';
2
+ import { IScales } from './annotation-dragger-plugin';
3
+ import { ICommonAnnotationsData } from '../../common.interface';
4
4
  export declare const handleAnnotationMouseDown: (event: MouseEvent, canvas: HTMLCanvasElement, scales: IScales, annotations: Record<string, ICommonAnnotationsData>, setDraggingState: (isDragging: boolean, annotation: ICommonAnnotationsData | null, dragStartX: number, dragStartY: number) => void, hoveredAnnotationId: string | null) => void;
5
5
  export declare const handleAnnotationMouseMove: (event: MouseEvent, canvas: HTMLCanvasElement, scales: IScales, isDragging: boolean, activeAnnotation: ICommonAnnotationsData | null, dragStartX: number, dragStartY: number, chart: Chart) => void;
6
6
  export declare const handleAnnotationMouseUp: (isDragging: boolean, activeAnnotation: ICommonAnnotationsData | null, chart: Chart, canvas: HTMLCanvasElement, setDraggingState: (isDragging: boolean, annotation: ICommonAnnotationsData | null) => void) => void;
@@ -1,6 +1,6 @@
1
1
  import { Chart } from 'chart.js';
2
- import { ICommonAnnotationsData } from '../../../common/common.interface';
3
- import { IScales } from '../../../common/plugins/annotation-dragger-plugin/annotation-dragger-plugin';
2
+ import { ICommonAnnotationsData } from '../../common.interface';
3
+ import { IScales } from './annotation-dragger-plugin';
4
4
  import { AnnotationType, DragAxis } from './enums';
5
5
  export declare const getMousePosition: (event: MouseEvent, canvas: HTMLCanvasElement) => {
6
6
  x: number;
@@ -1,4 +1,4 @@
1
- import { IScales } from '../../../common/plugins/annotation-dragger-plugin/annotation-dragger-plugin';
1
+ import { IScales } from './annotation-dragger-plugin';
2
2
  import { ICommonAnnotationsData } from '../../common.interface';
3
3
  export declare const annotationLabel: (ctx: CanvasRenderingContext2D, annotations: Record<string, ICommonAnnotationsData & {
4
4
  label: Record<string, any>;
@@ -1,3 +1,4 @@
1
+ import { LineChart } from './line-chart';
1
2
  declare namespace _default {
2
3
  export let title: string;
3
4
  export { LineChart as component };
@@ -705,7 +706,7 @@ export namespace CustomLegend {
705
706
  export namespace legend_4 {
706
707
  namespace customLegend {
707
708
  export let customLegendPlugin: {
708
- afterUpdate(chart: import("chart.js").Chart<keyof import("chart.js").ChartTypeRegistry, (number | [number, number] | import("chart.js").Point | import("chart.js").BubbleDataPoint | null)[], unknown>, _args: import("chart.js").Plugin<keyof import("chart.js").ChartTypeRegistry, import("node_modules/chart.js/dist/types/basic").AnyObject>, _options: import("chart.js").ChartConfiguration<keyof import("chart.js").ChartTypeRegistry, (number | [number, number] | import("chart.js").Point | import("chart.js").BubbleDataPoint | null)[], unknown>): void;
709
+ afterUpdate(chart: import("chart.js").Chart, _args: import("chart.js").Plugin, _options: import("chart.js").ChartConfiguration): void;
709
710
  };
710
711
  export { customLegendContainerID };
711
712
  }
@@ -1723,7 +1724,6 @@ export namespace ChartFillerPlugin {
1723
1724
  }
1724
1725
  export { args_48 as args };
1725
1726
  }
1726
- import { LineChart } from './line-chart';
1727
1727
  declare namespace basicChart { }
1728
1728
  declare const customLegendContainerID: "custom-legend-container";
1729
1729
  declare const testComponent: import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,4 @@
1
+ import { LineChart } from './line-chart';
1
2
  declare namespace _default {
2
3
  export let title: string;
3
4
  export { LineChart as component };
@@ -7,7 +8,6 @@ declare namespace _default {
7
8
  }
8
9
  export default _default;
9
10
  export function TestLegendDropzoneResizing(): import("react/jsx-runtime").JSX.Element;
10
- import { LineChart } from './line-chart';
11
11
  declare namespace basicChart {
12
12
  namespace data {
13
13
  let datasets: {
@@ -2,7 +2,7 @@ import { Chart } from 'chart.js';
2
2
  import { RefObject } from 'react';
3
3
  import { ILineChartAxes } from '../line-chart.interface';
4
4
  export declare const getAxesRangesFromChart: (chartRef: RefObject<Chart>, axes: ILineChartAxes) => {
5
- unit?: import("../line-chart.interface").IUnitOptions | undefined;
5
+ unit?: import('../line-chart.interface').IUnitOptions | undefined;
6
6
  id: string;
7
7
  min: number;
8
8
  max: number;
@@ -9,7 +9,7 @@ import { UnusedParameter } from '../../common/common.interface';
9
9
  */
10
10
  declare const getLineChartDataLabels: (options: ILineChartOptions) => {
11
11
  display: string;
12
- align: (context: import("./datalabels-alignment/datalabels-alignment.interface").IAlignmentContext) => import("../../../..").AlignOptions.End | import("../../../..").AlignOptions.Start | import("../../../..").AlignOptions.Right | import("../../../..").AlignOptions.Left;
12
+ align: (context: import('./datalabels-alignment/datalabels-alignment.interface').IAlignmentContext) => import("../../../..").AlignOptions.End | import("../../../..").AlignOptions.Start | import("../../../..").AlignOptions.Right | import("../../../..").AlignOptions.Left;
13
13
  formatter: (_: UnusedParameter, context: TooltipItem<any>) => any;
14
14
  } | {
15
15
  display: boolean;
@@ -25,7 +25,7 @@ export declare const generateKey: (values: Array<any>) => string;
25
25
  /**
26
26
  * Checks if a value is a primitive value (which includes strings, numbers, booleans, and null).
27
27
  */
28
- export declare const isPrimitiveValue: (value: TPrimitive) => boolean;
28
+ export declare const isPrimitiveValue: (value: TPrimitive) => value is string | number | boolean | null;
29
29
  /**
30
30
  * Validates a range object to ensure none of its properties are null, undefined, or empty strings.
31
31
  */
@@ -1,3 +1,4 @@
1
+ import { PieChart } from './pie-chart';
1
2
  declare namespace _default {
2
3
  export let title: string;
3
4
  export { PieChart as component };
@@ -97,7 +98,6 @@ export namespace HoverOffset {
97
98
  export { args_9 as args };
98
99
  }
99
100
  export function SegmentOffset(args: any): import("react/jsx-runtime").JSX.Element;
100
- import { PieChart } from './pie-chart';
101
101
  declare namespace singleChart {
102
102
  namespace data {
103
103
  export { labels1 as labels };
@@ -11,8 +11,8 @@ export declare const usePieChartConfig: (chart: IPieChartDefaultProps) => {
11
11
  borderColor: string;
12
12
  backgroundColor: string | string[];
13
13
  data: IPieDataValue[];
14
- hideLegend?: boolean | undefined;
15
- label?: string | undefined;
14
+ hideLegend?: boolean;
15
+ label?: string;
16
16
  }[];
17
17
  getTitle: () => {
18
18
  display: boolean;
@@ -1,5 +1,5 @@
1
1
  import { ActiveElement, AnimationSpec, Chart, ChartEvent } from 'chart.js';
2
- import { IScatterChartDefaultProps } from '../../scatter-chart/scatter-chart-default-props.interface';
2
+ import { IScatterChartDefaultProps } from '../scatter-chart-default-props.interface';
3
3
  import { MutableRefObject } from 'react';
4
4
  import { ICommonHoveredItems } from '../../common/common.interface';
5
5
  import { TGeneratedScatterChartDatasets } from '../scatter-chart.interface';
@@ -7,7 +7,7 @@ export declare const useScatterChartConfig: (chart: IScatterChartDefaultProps, c
7
7
  generatedDatasets: TGeneratedScatterChartDatasets;
8
8
  scatterOptions: {
9
9
  interactions: {
10
- onLegendClick: (_: any, legendItem: import("chart.js").LegendItem) => void;
10
+ onLegendClick: (_: import('../../common/common.interface').UnusedParameter, legendItem: import('chart.js').LegendItem) => void;
11
11
  onHover: (evt: ChartEvent, hoveredItems: ICommonHoveredItems[]) => void;
12
12
  };
13
13
  scales: {
@@ -64,13 +64,13 @@ export declare const useScatterChartConfig: (chart: IScatterChartDefaultProps, c
64
64
  display: boolean;
65
65
  events: never[];
66
66
  position: any;
67
- align: "end" | "start" | "center";
67
+ align: "center" | "start" | "end";
68
68
  labels: {
69
69
  boxHeight: number;
70
70
  boxWidth: number | undefined;
71
71
  usePointStyle: boolean | undefined;
72
72
  };
73
- onClick: (_: any, legendItem: import("chart.js").LegendItem) => void;
73
+ onClick: (_: import('../../common/common.interface').UnusedParameter, legendItem: import('chart.js').LegendItem) => void;
74
74
  };
75
75
  customLegendPlugin: {
76
76
  htmlLegend: any;
@@ -94,16 +94,16 @@ export declare const useScatterChartConfig: (chart: IScatterChartDefaultProps, c
94
94
  tooltip: {
95
95
  enabled: boolean;
96
96
  callbacks: {
97
- title: (tooltipItems: import("chart.js").TooltipItem<"scatter">[]) => string | undefined;
98
- label: (tooltipItems: import('../../scatter-chart/utils/get-tooltip-config').IScatterTooltipItem) => string;
97
+ title: (tooltipItems: import('chart.js').TooltipItem<"scatter">[]) => string | undefined;
98
+ label: (tooltipItems: import('../utils/get-tooltip-config').IScatterTooltipItem) => string;
99
99
  };
100
100
  backgroundColor: string;
101
101
  displayColors: boolean;
102
102
  padding: number;
103
103
  };
104
104
  };
105
- width?: string | number | undefined;
106
- height?: string | number | undefined;
105
+ width?: number | string;
106
+ height?: number | string;
107
107
  maintainAspectRatio: boolean;
108
108
  staticChartHeight: boolean;
109
109
  performanceMode: boolean;
@@ -1,3 +1,3 @@
1
- import { IScatterChartDefaultProps } from '../scatter-chart/scatter-chart-default-props.interface';
1
+ import { IScatterChartDefaultProps } from './scatter-chart-default-props.interface';
2
2
  import { IScatterChartProps } from './scatter-chart.interface';
3
3
  export declare const getDefaultProps: (props: IScatterChartProps) => IScatterChartDefaultProps;
@@ -1,3 +1,3 @@
1
- import { IScatterChartProps } from '../scatter-chart/scatter-chart.interface';
1
+ import { IScatterChartProps } from './scatter-chart.interface';
2
2
  declare const ScatterChartWithLegend: (props: IScatterChartProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export { ScatterChartWithLegend as ScatterChart };
@@ -1,3 +1,4 @@
1
+ import { ScatterChart } from './scatter-chart';
1
2
  declare namespace _default {
2
3
  export let title: string;
3
4
  export { ScatterChart as component };
@@ -76,7 +77,6 @@ export namespace CustomPointColor {
76
77
  }
77
78
  export { args_10 as args };
78
79
  }
79
- import { ScatterChart } from './scatter-chart';
80
80
  declare namespace singleScatterChart {
81
81
  namespace data {
82
82
  export { labels1 as labels };
@@ -1,4 +1,4 @@
1
- import { IDefaultScatterOptions } from '../../scatter-chart/scatter-chart-default-props.interface';
1
+ import { IDefaultScatterOptions } from '../scatter-chart-default-props.interface';
2
2
  export declare const getScatterChartScales: (options: IDefaultScatterOptions) => {
3
3
  x: {
4
4
  type: "linear";
@@ -1,5 +1,5 @@
1
1
  import { TooltipItem } from 'chart.js';
2
- import { IDefaultScatterOptions } from '../../scatter-chart/scatter-chart-default-props.interface';
2
+ import { IDefaultScatterOptions } from '../scatter-chart-default-props.interface';
3
3
  interface IRawData {
4
4
  x: number;
5
5
  y: number;
@@ -11,7 +11,7 @@ export interface IScatterTooltipItem extends TooltipItem<'scatter'> {
11
11
  export declare const getTooltipsConfig: (options: IDefaultScatterOptions) => {
12
12
  enabled: boolean;
13
13
  callbacks: {
14
- title: (tooltipItems: TooltipItem<'scatter'>[]) => string | undefined;
14
+ title: (tooltipItems: TooltipItem<"scatter">[]) => string | undefined;
15
15
  label: (tooltipItems: IScatterTooltipItem) => string;
16
16
  };
17
17
  backgroundColor: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/charts-library",
3
- "version": "4.8.0-beta-8",
3
+ "version": "4.8.1-beta-1",
4
4
  "description": "React Chart Library (based on Chart.js and react-chart-js-2)",
5
5
  "homepage": "https://gitlab.com/oliasoft-open-source/charts-library",
6
6
  "resolutions": {
@@ -50,17 +50,17 @@
50
50
  "chartjs-plugin-dragdata": "2.2.5",
51
51
  "chartjs-plugin-zoom": "^2.0.1",
52
52
  "fast-deep-equal": "^3.1.3",
53
- "html-to-image": "^1.11.11",
53
+ "html-to-image": "^1.11.12",
54
54
  "react-base64-downloader": "^2.1.7",
55
55
  "react-chartjs-2": "^5.3.0",
56
56
  "react-dnd": "^16.0.1",
57
57
  "react-dnd-html5-backend": "^16.0.1",
58
- "react-icons": "^4",
59
- "react-use": "^17.4.0"
58
+ "react-icons": "^4.12.0",
59
+ "react-use": "^17.6.0"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@oliasoft-open-source/react-ui-library": "^4.20.8",
63
- "@oliasoft-open-source/units": "^4.2.2",
63
+ "@oliasoft-open-source/units": "^4.2.4",
64
64
  "@storybook/addon-actions": "^7.0.18",
65
65
  "@storybook/addon-docs": "^7.0.18",
66
66
  "@storybook/addon-mdx-gfm": "^7.0.23",
@@ -92,8 +92,9 @@
92
92
  "immer": "^10",
93
93
  "jsdom": "^22.1.0",
94
94
  "less": "^4.1.3",
95
- "lint-staged": "^14.0.1",
95
+ "lint-staged": "^15.4.3",
96
96
  "lodash": "^4.17.21",
97
+ "micromatch": "^4",
97
98
  "prettier": "3.0.3",
98
99
  "prop-types": "^15",
99
100
  "react": "^18.2.0",
@@ -103,14 +104,14 @@
103
104
  "storybook-dark-mode": "^3.0.0",
104
105
  "vite": "^5.4.11",
105
106
  "vite-plugin-css-injected-by-js": "^3.1.1",
106
- "vite-plugin-dts": "3.6.0",
107
+ "vite-plugin-dts": "^4.5.0",
107
108
  "vite-plugin-svgr": "^4.2.0",
108
109
  "vite-tsconfig-paths": "^4.2.0",
109
110
  "vitest": "^2.1.4"
110
111
  },
111
112
  "peerDependencies": {
112
- "@oliasoft-open-source/react-ui-library": "^4.18.3",
113
- "@oliasoft-open-source/units": "^4.2.2",
113
+ "@oliasoft-open-source/react-ui-library": "^4.20.8",
114
+ "@oliasoft-open-source/units": "^4.2.4",
114
115
  "ajv": "^8.12.0",
115
116
  "ajv-errors": "^3.0.0",
116
117
  "ajv-keywords": "^5.1.0",