@oliasoft-open-source/charts-library 4.4.0-beta-1 → 4.4.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.
Files changed (21) hide show
  1. package/dist/index.js +308 -289
  2. package/dist/index.js.map +1 -1
  3. package/dist/src/components/bar-chart/bar-chart.interface.d.ts +2 -0
  4. package/dist/src/components/bar-chart/bar-chart.stories.d.ts +32 -1
  5. package/dist/src/components/bar-chart/utils/get-bar-chart-data-labels.d.ts +1 -1
  6. package/dist/src/components/bar-chart/utils/use-bar-chart-options.d.ts +54 -0
  7. package/dist/src/components/common/common.interface.d.ts +11 -2
  8. package/dist/src/components/common/helpers/chart-consts.d.ts +2 -0
  9. package/dist/src/components/common/helpers/get-chart-annotation.d.ts +1 -1
  10. package/dist/src/components/common/helpers/get-draggableData.d.ts +2 -2
  11. package/dist/src/components/common/plugins/gradient-background-plugin/enums.d.ts +10 -0
  12. package/dist/src/components/common/plugins/gradient-background-plugin/gradient-background-plugin.d.ts +2 -0
  13. package/dist/src/components/line-chart/line-chart.stories.d.ts +1 -66
  14. package/dist/src/components/pie-chart/pie-chart-defalut-props.interface.d.ts +1 -1
  15. package/dist/src/components/scatter-chart/hooks/use-scatter-chart-config.d.ts +112 -0
  16. package/dist/src/components/scatter-chart/scatter-chart-default-props.interface.d.ts +3 -2
  17. package/dist/src/components/scatter-chart/scatter-chart.stories.d.ts +20 -0
  18. package/dist/src/components/scatter-chart/utils/get-tooltip-config.d.ts +1 -1
  19. package/package.json +10 -4
  20. package/dist/src/components/common/plugins/ellipsis-annotation-plugin/ellipsis-annotation-plugin.d.ts +0 -5
  21. /package/dist/src/components/{line-chart/controls → common}/controls-portal.d.ts +0 -0
@@ -51,6 +51,7 @@ export interface IBarChartBaseData {
51
51
  }
52
52
  export interface IBarChartData extends ICommonData {
53
53
  testId?: string;
54
+ controlsPortalId?: string;
54
55
  data: IBarChartBaseData;
55
56
  options: IBarOptions;
56
57
  }
@@ -59,6 +60,7 @@ export interface IBarChartProps {
59
60
  }
60
61
  export interface IBarDefaultProps {
61
62
  testId: string;
63
+ controlsPortalId: string;
62
64
  data: IBarChartBaseData;
63
65
  options: {
64
66
  title?: string | string[];
@@ -157,7 +157,7 @@ export namespace CustomLegend {
157
157
  export namespace legend {
158
158
  namespace customLegend {
159
159
  export const customLegendPlugin: {
160
- 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;
160
+ afterUpdate(chart: import("chart.js").Chart<keyof import("chart.js").ChartTypeRegistry, (number | import("chart.js").Point | [number, number] | 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 | import("chart.js").Point | [number, number] | import("chart.js").BubbleDataPoint | null)[], unknown>): void;
161
161
  };
162
162
  export { customLegendContainerID };
163
163
  }
@@ -195,6 +195,14 @@ export namespace StackedSelectedAxis {
195
195
  }
196
196
  export { args_24 as args };
197
197
  }
198
+ export function WaterfallChart(args: any): import("react/jsx-runtime").JSX.Element;
199
+ export namespace WaterfallChart {
200
+ export namespace args_25 {
201
+ export { waterfallChart as chart };
202
+ }
203
+ export { args_25 as args };
204
+ }
205
+ export function ControlsPortal(): import("react/jsx-runtime").JSX.Element;
198
206
  import { BarChart } from './bar-chart';
199
207
  declare namespace singleChart { }
200
208
  declare namespace multipleBarData {
@@ -715,3 +723,26 @@ declare namespace stackedData {
715
723
  }
716
724
  export { options_21 as options };
717
725
  }
726
+ declare namespace waterfallChart {
727
+ export namespace data_24 {
728
+ const labels_1: string[];
729
+ export { labels_1 as labels };
730
+ const datasets_24: {
731
+ label: string;
732
+ data: (number | number[])[];
733
+ backgroundColor: string[];
734
+ }[];
735
+ export { datasets_24 as datasets };
736
+ }
737
+ export { data_24 as data };
738
+ export namespace options_22 {
739
+ const title_21: string;
740
+ export { title_21 as title };
741
+ export namespace graph_1 {
742
+ const showDataLabels_1: boolean;
743
+ export { showDataLabels_1 as showDataLabels };
744
+ }
745
+ export { graph_1 as graph };
746
+ }
747
+ export { options_22 as options };
748
+ }
@@ -1,6 +1,6 @@
1
1
  import { IBarOptions } from '../bar-chart.interface.ts';
2
2
  type ExtendedDisplayOptions = 'auto' | boolean;
3
- interface IExtendedDataLabelsOptions {
3
+ export interface IExtendedDataLabelsOptions {
4
4
  display: ExtendedDisplayOptions;
5
5
  }
6
6
  /**
@@ -0,0 +1,54 @@
1
+ import { MutableRefObject } from 'react';
2
+ import { Chart } from 'chart.js';
3
+ import { AxisType, ChartHoverMode } from '../../common/helpers/enums';
4
+ import { IBarDefaultProps } from '../bar-chart.interface';
5
+ export interface IUseBarChartOptionsProps {
6
+ chart: IBarDefaultProps;
7
+ chartRef: MutableRefObject<Chart | null>;
8
+ }
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 | import("chart.js").Point | [number, number] | import("chart.js").BubbleDataPoint | null)[], unknown>) => void;
11
+ onHover: (evt: import("chart.js").ChartEvent, hoveredItems: import("../../common/common.interface").ICommonHoveredItems[]) => void;
12
+ indexAxis: AxisType;
13
+ maintainAspectRatio: boolean | undefined;
14
+ animation: false | {
15
+ duration: number;
16
+ } | undefined;
17
+ hover: {
18
+ mode: ChartHoverMode;
19
+ intersect: boolean;
20
+ };
21
+ scales: any;
22
+ plugins: {
23
+ title: {
24
+ display: boolean;
25
+ text: string | string[] | undefined;
26
+ } | {
27
+ display?: undefined;
28
+ text?: undefined;
29
+ };
30
+ datalabels: import("./get-bar-chart-data-labels").IExtendedDataLabelsOptions;
31
+ annotation: {
32
+ annotations: {};
33
+ };
34
+ tooltip: Record<string, any>;
35
+ legend: {
36
+ display: boolean;
37
+ position: any;
38
+ align: "end" | "start" | "center";
39
+ labels: {
40
+ boxHeight: number;
41
+ boxWidth: number | undefined;
42
+ usePointStyle: boolean | undefined;
43
+ };
44
+ onClick: (_: any, legendItem: import("chart.js").LegendItem) => void;
45
+ };
46
+ customLegendPlugin: {
47
+ htmlLegend: any;
48
+ };
49
+ chartAreaBorder: {
50
+ borderColor: string;
51
+ };
52
+ dragData: false | object | import("../../common/helpers/get-draggableData").IDraggableData | undefined;
53
+ };
54
+ };
@@ -1,5 +1,6 @@
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';
3
4
  import { AlignOptions, Position } from './helpers/enums';
4
5
  export type TAxisPosition = 'top' | 'bottom' | 'left' | 'right';
5
6
  export interface ICommonDataValue {
@@ -51,8 +52,6 @@ export interface ICommonAnnotationsData {
51
52
  annotationAxis: 'x' | 'y';
52
53
  color: string;
53
54
  endValue: number;
54
- borderWidth?: number;
55
- backgroundColor?: string;
56
55
  label: string;
57
56
  labelConfig?: Record<string, any>;
58
57
  type: string;
@@ -69,12 +68,22 @@ export interface ICommonAnnotationsData {
69
68
  onDrag?: (coordinates: ICoordinates, annotation: ICommonAnnotationsData) => void;
70
69
  onDragEnd?: (coordinates: ICoordinates, annotation: ICommonAnnotationsData) => void;
71
70
  }
71
+ export interface ICommonGradientColor {
72
+ offset: number;
73
+ color: string;
74
+ }
75
+ export interface ICommonGradient {
76
+ display: boolean;
77
+ gradientColors?: ICommonGradientColor[];
78
+ direction?: GradientDirection;
79
+ }
72
80
  export interface ICommonStyling {
73
81
  width?: number | string;
74
82
  height?: number | string;
75
83
  maintainAspectRatio?: boolean;
76
84
  staticChartHeight?: boolean;
77
85
  performanceMode?: boolean;
86
+ gradient?: ICommonGradient;
78
87
  }
79
88
  export interface ICommonLegend {
80
89
  display: boolean;
@@ -1,3 +1,4 @@
1
+ import { ICommonGradientColor } from '../../common/common.interface';
1
2
  export declare const BORDER_WIDTH: {
2
3
  INITIAL: number;
3
4
  HOVERED: number;
@@ -34,3 +35,4 @@ export declare const DEFAULT_CHART_NAME = "new_chart";
34
35
  export declare const CUSTOM_LEGEND_PLUGIN_NAME = "htmlLegend";
35
36
  export declare const DECIMAL_POINT_TOLERANCE = 9;
36
37
  export declare const MAX_DECIMAL_DIFF: number;
38
+ export declare const GRADIENT_COLORS: ICommonGradientColor[];
@@ -34,7 +34,7 @@ declare const getAnnotation: ({ showAnnotations, annotationsData, }: IGetAnnotat
34
34
  } | {
35
35
  backgroundColor: any;
36
36
  content: string;
37
- display: boolean;
37
+ display: any;
38
38
  position: any;
39
39
  color: any;
40
40
  font: any;
@@ -1,5 +1,5 @@
1
1
  import { ICommonOptions } from '../common.interface';
2
- interface IDraggableDataOptions {
2
+ export interface IDraggableDataOptions {
3
3
  dragX: boolean;
4
4
  dragY: boolean;
5
5
  round: boolean;
@@ -8,7 +8,7 @@ interface IDraggableDataOptions {
8
8
  onDrag: () => void;
9
9
  onDragEnd: () => void;
10
10
  }
11
- interface IDraggableData {
11
+ export interface IDraggableData {
12
12
  dragData: IDraggableDataOptions;
13
13
  }
14
14
  /**
@@ -0,0 +1,10 @@
1
+ export declare enum GradientDirection {
2
+ TopToBottom = 0,
3
+ BottomToTop = 1,
4
+ LeftToRight = 2,
5
+ RightToLeft = 3,
6
+ TopLeftToBottomRight = 4,
7
+ BottomRightToTopLeft = 5,
8
+ BottomLeftToTopRight = 6,
9
+ TopRightToBottomLeft = 7
10
+ }
@@ -0,0 +1,2 @@
1
+ import { Plugin } from 'chart.js';
2
+ export declare const gradientBackgroundPlugin: Plugin<'bubble'>;
@@ -679,7 +679,7 @@ export namespace CustomLegend {
679
679
  export namespace legend_4 {
680
680
  namespace customLegend {
681
681
  export const customLegendPlugin: {
682
- 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;
682
+ afterUpdate(chart: import("chart.js").Chart<keyof import("chart.js").ChartTypeRegistry, (number | import("chart.js").Point | [number, number] | 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 | import("chart.js").Point | [number, number] | import("chart.js").BubbleDataPoint | null)[], unknown>): void;
683
683
  };
684
684
  export { customLegendContainerID };
685
685
  }
@@ -1328,71 +1328,6 @@ export namespace DragAnnotations {
1328
1328
  }
1329
1329
  export { args_45 as args };
1330
1330
  }
1331
- export function EllipsisAnnotations(args: any): import("react/jsx-runtime").JSX.Element;
1332
- export namespace EllipsisAnnotations {
1333
- export namespace args_46 {
1334
- export namespace chart_44 {
1335
- export namespace data_24 {
1336
- const datasets_24: {
1337
- label: string;
1338
- data: {
1339
- x: number;
1340
- y: number;
1341
- }[];
1342
- }[];
1343
- export { datasets_24 as datasets };
1344
- }
1345
- export { data_24 as data };
1346
- export namespace options_37 {
1347
- export namespace additionalAxesOptions_6 {
1348
- export namespace range_3 {
1349
- export namespace x_8 {
1350
- const min_5: number;
1351
- export { min_5 as min };
1352
- const max_5: number;
1353
- export { max_5 as max };
1354
- }
1355
- export { x_8 as x };
1356
- export namespace y_7 {
1357
- const min_6: number;
1358
- export { min_6 as min };
1359
- const max_6: number;
1360
- export { max_6 as max };
1361
- }
1362
- export { y_7 as y };
1363
- }
1364
- export { range_3 as range };
1365
- }
1366
- export { additionalAxesOptions_6 as additionalAxesOptions };
1367
- export namespace legend_6 {
1368
- const display_3: boolean;
1369
- export { display_3 as display };
1370
- }
1371
- export { legend_6 as legend };
1372
- export namespace annotations_6 {
1373
- const showAnnotations_6: boolean;
1374
- export { showAnnotations_6 as showAnnotations };
1375
- const annotationsData_6: {
1376
- type: string;
1377
- xMin: number;
1378
- xMax: number;
1379
- yMin: number;
1380
- yMax: number;
1381
- backgroundColor: string;
1382
- rotation: number;
1383
- borderWidth: number;
1384
- color: string;
1385
- }[];
1386
- export { annotationsData_6 as annotationsData };
1387
- }
1388
- export { annotations_6 as annotations };
1389
- }
1390
- export { options_37 as options };
1391
- }
1392
- export { chart_44 as chart };
1393
- }
1394
- export { args_46 as args };
1395
- }
1396
1331
  import { LineChart } from './line-chart';
1397
1332
  declare namespace basicChart { }
1398
1333
  declare const customLegendContainerID: "custom-legend-container";
@@ -1,7 +1,7 @@
1
1
  import { ChartEvent } from 'chart.js';
2
2
  import { IPieChartDataset, IPieOptions } from './pie-chart.interface';
3
3
  import { AlignOptions, Position } from '../common/helpers/enums';
4
- interface IDefaultChartStyling {
4
+ export interface IDefaultChartStyling {
5
5
  width?: number | string;
6
6
  height?: number | string;
7
7
  maintainAspectRatio: boolean;
@@ -0,0 +1,112 @@
1
+ import { ActiveElement, AnimationSpec, Chart, ChartEvent } from 'chart.js';
2
+ import { IScatterChartDefaultProps } from '../../scatter-chart/scatter-chart-default-props.interface';
3
+ import { MutableRefObject } from 'react';
4
+ import { ICommonHoveredItems } from '../../common/common.interface';
5
+ import { TGeneratedScatterChartDatasets } from '../scatter-chart.interface';
6
+ export declare const useScatterChartConfig: (chart: IScatterChartDefaultProps, chartRef: MutableRefObject<Chart | null>) => {
7
+ generatedDatasets: TGeneratedScatterChartDatasets;
8
+ scatterOptions: {
9
+ interactions: {
10
+ onLegendClick: (_: any, legendItem: import("chart.js").LegendItem) => void;
11
+ onHover: (evt: ChartEvent, hoveredItems: ICommonHoveredItems[]) => void;
12
+ };
13
+ scales: {
14
+ x: {
15
+ type: "linear";
16
+ position: any;
17
+ beginAtZero: boolean;
18
+ reverse: boolean;
19
+ suggestedMax: number | undefined;
20
+ suggestedMin: number | undefined;
21
+ min: number | undefined;
22
+ max: number | undefined;
23
+ title: {
24
+ display: boolean;
25
+ text: string | undefined;
26
+ padding: number;
27
+ };
28
+ ticks: {
29
+ includeBounds: boolean;
30
+ font: {
31
+ size: number;
32
+ };
33
+ stepSize: number | undefined;
34
+ };
35
+ grid: {};
36
+ };
37
+ y: {
38
+ type: "linear";
39
+ position: any;
40
+ beginAtZero: boolean;
41
+ reverse: boolean;
42
+ suggestedMax: number | undefined;
43
+ suggestedMin: number | undefined;
44
+ min: number | undefined;
45
+ max: number | undefined;
46
+ title: {
47
+ display: boolean;
48
+ text: string | undefined;
49
+ padding: number;
50
+ };
51
+ ticks: {
52
+ includeBounds: boolean;
53
+ font: {
54
+ size: number;
55
+ };
56
+ stepSize: number | undefined;
57
+ };
58
+ grid: {};
59
+ };
60
+ };
61
+ animation: Partial<AnimationSpec<"scatter">>;
62
+ plugins: {
63
+ legend: {
64
+ display: boolean;
65
+ position: any;
66
+ align: "end" | "start" | "center";
67
+ labels: {
68
+ boxHeight: number;
69
+ boxWidth: number | undefined;
70
+ usePointStyle: boolean | undefined;
71
+ };
72
+ onClick: (_: any, legendItem: import("chart.js").LegendItem) => void;
73
+ };
74
+ customLegendPlugin: {
75
+ htmlLegend: any;
76
+ };
77
+ title: {
78
+ display: boolean;
79
+ text: string | string[] | undefined;
80
+ } | {
81
+ display?: undefined;
82
+ text?: undefined;
83
+ };
84
+ annotation: {
85
+ annotations: {};
86
+ };
87
+ chartAreaBorder: {
88
+ borderColor: string;
89
+ };
90
+ datalabels: {
91
+ display: boolean;
92
+ };
93
+ tooltip: {
94
+ enabled: boolean;
95
+ callbacks: {
96
+ title: (tooltipItems: import("chart.js").TooltipItem<"scatter">[]) => string | undefined;
97
+ label: (tooltipItem: import('../../scatter-chart/utils/get-tooltip-config').IScatterTooltipItem) => string;
98
+ };
99
+ backgroundColor: string;
100
+ displayColors: boolean;
101
+ padding: number;
102
+ };
103
+ };
104
+ width?: string | number | undefined;
105
+ height?: string | number | undefined;
106
+ maintainAspectRatio: boolean;
107
+ staticChartHeight: boolean;
108
+ performanceMode: boolean;
109
+ onClick: (_evt: ChartEvent, _elements: ActiveElement[], chartInstance: Chart) => void;
110
+ onHover: (evt: ChartEvent, hoveredItems: ICommonHoveredItems[]) => void;
111
+ };
112
+ };
@@ -2,7 +2,7 @@ import { ChartEvent } from 'chart.js';
2
2
  import { ICommonAdditionalAxesOptions, ICommonAnnotations, ICommonCustomLegend, ICommonLegend } from '../common/common.interface';
3
3
  import { ChartDirection } from '../common/enums';
4
4
  import { IScatterAxes, IScatterChartDataset } from './scatter-chart.interface';
5
- interface IDefaultChartStyling {
5
+ export interface IDefaultChartStyling {
6
6
  width?: number | string;
7
7
  height?: number | string;
8
8
  maintainAspectRatio: boolean;
@@ -27,10 +27,11 @@ interface IDefaultChartOptions {
27
27
  enableZoom: boolean;
28
28
  enablePan: boolean;
29
29
  }
30
- interface IDefaultInteractions {
30
+ export interface IDefaultInteractions {
31
31
  onLegendClick?: (text: string, hidden: boolean) => void;
32
32
  onHover?: (event?: ChartEvent, datasetIndex?: number, index?: number, generatedDataset?: IScatterChartDataset[]) => void;
33
33
  onUnhover?: (event?: ChartEvent, datasetIndex?: number, index?: number, generatedDataset?: any[]) => void;
34
+ onAnimationComplete?: () => void;
34
35
  }
35
36
  interface IDefaultChartData {
36
37
  labels: string[];
@@ -55,6 +55,13 @@ export namespace WithAxesLabels {
55
55
  }
56
56
  export { args_7 as args };
57
57
  }
58
+ export function WithGradient(args: any): import("react/jsx-runtime").JSX.Element;
59
+ export namespace WithGradient {
60
+ export namespace args_8 {
61
+ export { scatterWithGradient as chart };
62
+ }
63
+ export { args_8 as args };
64
+ }
58
65
  import { ScatterChart } from './scatter-chart';
59
66
  declare namespace singleScatterChart {
60
67
  namespace data {
@@ -202,4 +209,17 @@ declare namespace scatterWithAxesLabels {
202
209
  }
203
210
  export { options_4 as options };
204
211
  }
212
+ declare namespace scatterWithGradient {
213
+ export namespace options_5 {
214
+ const title_6: string;
215
+ export { title_6 as title };
216
+ export namespace chartStyling_1 {
217
+ namespace gradient {
218
+ const display: boolean;
219
+ }
220
+ }
221
+ export { chartStyling_1 as chartStyling };
222
+ }
223
+ export { options_5 as options };
224
+ }
205
225
  declare const labels1: string[];
@@ -4,7 +4,7 @@ interface IRawData {
4
4
  x: number;
5
5
  y: number;
6
6
  }
7
- interface IScatterTooltipItem extends TooltipItem<'scatter'> {
7
+ export interface IScatterTooltipItem extends TooltipItem<'scatter'> {
8
8
  raw: IRawData;
9
9
  }
10
10
  export declare const getTooltipsConfig: (options: IDefaultScatterOptions) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/charts-library",
3
- "version": "4.4.0-beta-1",
3
+ "version": "4.4.0",
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": {
@@ -59,7 +59,7 @@
59
59
  "react-use": "^17.4.0"
60
60
  },
61
61
  "devDependencies": {
62
- "@oliasoft-open-source/react-ui-library": "^4.0.0",
62
+ "@oliasoft-open-source/react-ui-library": "^4.6.16",
63
63
  "@oliasoft-open-source/units": "^3.4.2",
64
64
  "@storybook/addon-actions": "^7.0.18",
65
65
  "@storybook/addon-docs": "^7.0.18",
@@ -89,12 +89,13 @@
89
89
  "eslint-plugin-vitest-globals": "^1.3.1",
90
90
  "http-server": "^14.1.1",
91
91
  "husky": "^8.0.1",
92
- "immer": "^10.0.2",
92
+ "immer": "^9",
93
93
  "jsdom": "^22.1.0",
94
94
  "less": "^4.1.3",
95
95
  "lint-staged": "^14.0.1",
96
96
  "lodash": "^4.17.21",
97
97
  "prettier": "3.0.3",
98
+ "prop-types": "^15",
98
99
  "react": "^18.2.0",
99
100
  "react-dom": "^18.2.0",
100
101
  "rollup-plugin-peer-deps-external": "^2.2.4",
@@ -103,15 +104,20 @@
103
104
  "vite": "^4.3.9",
104
105
  "vite-plugin-css-injected-by-js": "^3.1.1",
105
106
  "vite-plugin-dts": "3.6.0",
107
+ "vite-plugin-svgr": "^4.2.0",
106
108
  "vite-tsconfig-paths": "^4.2.0",
107
109
  "vitest": "^0.34.6"
108
110
  },
109
111
  "peerDependencies": {
110
112
  "@oliasoft-open-source/react-ui-library": "^4.0.0",
111
113
  "@oliasoft-open-source/units": "^3.4.2",
114
+ "ajv": "^8.12.0",
115
+ "ajv-errors": "^3.0.0",
116
+ "ajv-keywords": "^5.1.0",
112
117
  "classnames": "^2.3.2",
113
- "immer": "^10.0.2",
118
+ "immer": "^9",
114
119
  "lodash": "^4.17.21",
120
+ "prop-types": "^15",
115
121
  "react": "^17",
116
122
  "react-dom": "^17"
117
123
  }
@@ -1,5 +0,0 @@
1
- import { Chart } from 'chart.js';
2
- export declare const ellipsisAnnotationPlugin: {
3
- id: string;
4
- afterDraw: (chart: Chart<any>) => void;
5
- };