@oliasoft-open-source/charts-library 5.1.1 → 5.1.2-beta-2

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 (46) hide show
  1. package/dist/assets/{Color-YHDXOIA2-BMZgyHAN.js → Color-YHDXOIA2-D1T4LLq8.js} +1 -1
  2. package/dist/assets/{DocsRenderer-CFRXHY34-CbvfojdO.js → DocsRenderer-CFRXHY34-D6Q7Fl4L.js} +4 -4
  3. package/dist/assets/bar-chart.stories-5CuN6VFG.js +136 -0
  4. package/dist/assets/chunk-XP5HYGXS-D5tuasO7.js +1 -0
  5. package/dist/assets/{client-9BU5HM4U.js → client-DnE3718B.js} +1 -1
  6. package/dist/assets/entry-preview-D2nZ6Uy3.js +2 -0
  7. package/dist/assets/{entry-preview-docs-z3mMcuG4.js → entry-preview-docs-Cet2djRm.js} +1 -1
  8. package/dist/assets/{get-draggableData-6sYCK0Sg.js → get-draggableData-eD2Xdq-6.js} +2 -2
  9. package/dist/assets/{iframe-BMP-xuj2.js → iframe-BRmCfBZj.js} +15 -15
  10. package/dist/assets/{index-D3-0uUTW.js → index-BhTLYoCu.js} +1 -1
  11. package/dist/assets/{index-B-BONL6g.js → index-CgYGpm1H.js} +1 -1
  12. package/dist/assets/index-DHw5ixvP.js +1 -0
  13. package/dist/assets/index-YTOF1_EJ.js +9 -0
  14. package/dist/assets/{index-CVdx34fM.js → index-uDG1oqxT.js} +1 -1
  15. package/dist/assets/jsx-runtime-W3oueGCa.js +9 -0
  16. package/dist/assets/legend-Cgq98xea.js +1367 -0
  17. package/dist/assets/{legend-context-CuYQJx0k.js → legend-context-PSa8HhGj.js} +22 -22
  18. package/dist/assets/line-chart-DQPiqg-c.js +1 -0
  19. package/dist/assets/{line-chart.stories-CCmSDSVh.js → line-chart.stories-yZbOjEZw.js} +16 -13
  20. package/dist/assets/{line-chart.test-case.stories-tBreUWeJ.js → line-chart.test-case.stories-KRbhVyto.js} +1 -1
  21. package/dist/assets/{pie-chart.stories-cGmfyrjX.js → pie-chart.stories-C3l9VGYJ.js} +1 -1
  22. package/dist/assets/{preview-DjxCxm3j.js → preview-OTEdgn42.js} +2 -2
  23. package/dist/assets/{preview-cjTsgsnd.js → preview-THptAU8l.js} +1 -1
  24. package/dist/assets/{react-18-DZY5LW1V.js → react-18-BdgjDjvZ.js} +1 -1
  25. package/dist/assets/{scatter-chart.stories-BK0zwTCK.js → scatter-chart.stories-U-tLziOZ.js} +6 -6
  26. package/dist/assets/test-utils-BBHUGUfi.js +9 -0
  27. package/dist/iframe.html +1 -1
  28. package/dist/index.js +34 -110
  29. package/dist/line-chart/hooks/use-chart-state.d.ts +1 -5
  30. package/dist/line-chart/state/initial-state.d.ts +0 -3
  31. package/dist/line-chart/utils/axis-scales/axis-scales.d.ts +1 -3
  32. package/dist/line-chart/utils/line-chart-utils.d.ts +6 -1
  33. package/dist/project.json +1 -1
  34. package/dist/sb-manager/globals-runtime.js +1 -1
  35. package/dist/src/components/line-chart/hooks/use-chart-state.d.ts +1 -5
  36. package/dist/src/components/line-chart/utils/axis-scales/axis-scales.d.ts +1 -3
  37. package/dist/src/components/line-chart/utils/line-chart-utils.d.ts +6 -1
  38. package/package.json +1 -1
  39. package/dist/assets/bar-chart.stories-BxoeoHbp.js +0 -153
  40. package/dist/assets/entry-preview-BsyjCx5f.js +0 -10
  41. package/dist/assets/index-BGqSdrBK.js +0 -1
  42. package/dist/assets/index-eCxJ45ll.js +0 -9
  43. package/dist/assets/jsx-runtime-Y5Ju2SGo.js +0 -9
  44. package/dist/assets/legend-DOpGXAxK.js +0 -1346
  45. package/dist/assets/line-chart-BWgI7lqL.js +0 -1
  46. package/dist/assets/react-CxVRKATl.js +0 -1
@@ -1,5 +1,6 @@
1
- import { ILineRange } from '../line-chart.interface';
1
+ import { ILineChartOptions, ILineRange } from '../line-chart.interface';
2
2
  import { TPrimitive } from '../../common/common.interface';
3
+ import { IState } from '../state/state.interfaces';
3
4
  export declare const toNum: (value: string | number) => any;
4
5
  export declare const isLessThanMax: (value: string | number, max: string | number) => boolean;
5
6
  export declare const isGreaterThanMin: (value: string | number, min: string | number) => boolean;
@@ -30,3 +31,7 @@ export declare const isPrimitiveValue: (value: TPrimitive) => value is string |
30
31
  * Validates a range object to ensure none of its properties are null, undefined, or empty strings.
31
32
  */
32
33
  export declare const isRangeValid: (r?: ILineRange) => boolean;
34
+ /**
35
+ * Generates a unique key for the LineChart component based on dynamic chart state and language.
36
+ */
37
+ export declare const getChartKey: (state: IState, options: ILineChartOptions, languageKey: string) => string;
package/dist/project.json CHANGED
@@ -1 +1 @@
1
- {"generatedAt":1746549065563,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":false,"hasStorybookEslint":true,"refCount":0,"testPackages":{"@storybook/testing-library":"0.2.2","eslint-plugin-vitest":null,"eslint-plugin-vitest-globals":"1.5.0","vitest":"3.0.9"},"hasRouterPackage":false,"packageManager":{"type":"yarn","version":"1.22.22"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/react-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/react","portableStoriesFileCount":0,"applicationFileCount":0,"storybookVersion":"8.6.7","storybookVersionSpecifier":"^8.6.7","language":"javascript","storybookPackages":{"@storybook/blocks":{"version":"8.6.7"},"@storybook/react":{"version":"8.6.7"},"@storybook/react-vite":{"version":"8.6.7"},"@storybook/testing-library":{"version":"0.2.2"},"eslint-plugin-storybook":{"version":"0.11.6"},"storybook":{"version":"8.6.7"}},"addons":{"@storybook/addon-actions":{"version":"8.6.7"},"@storybook/addon-docs":{"version":"8.6.7"},"storybook-dark-mode":{"version":"4.0.2"},"@storybook/addon-mdx-gfm":{"version":"8.6.7"}}}
1
+ {"generatedAt":1747128220814,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":false,"hasStorybookEslint":true,"refCount":0,"testPackages":{"@storybook/testing-library":"0.2.2","eslint-plugin-vitest":null,"eslint-plugin-vitest-globals":"1.5.0","vitest":"3.1.3"},"hasRouterPackage":false,"packageManager":{"type":"yarn","agent":"yarn"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/react-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/react","portableStoriesFileCount":0,"applicationFileCount":0,"storybookVersion":"8.6.12","storybookVersionSpecifier":"^8.6.12","language":"javascript","storybookPackages":{"@storybook/blocks":{"version":"8.6.12"},"@storybook/react":{"version":"8.6.12"},"@storybook/react-vite":{"version":"8.6.12"},"@storybook/testing-library":{"version":"0.2.2"},"eslint-plugin-storybook":{"version":"0.12.0"},"storybook":{"version":"8.6.12"}},"addons":{"@storybook/addon-actions":{"version":"8.6.12"},"@storybook/addon-docs":{"version":"8.6.12"},"storybook-dark-mode":{"version":"4.0.2"},"@storybook/addon-mdx-gfm":{"version":"8.6.12"}}}
@@ -41018,7 +41018,7 @@ qe();
41018
41018
  var UM = P(Kn(), 1), mn = P($M(), 1);
41019
41019
 
41020
41020
  // src/manager-api/version.ts
41021
- var jM = "8.6.7";
41021
+ var jM = "8.6.12";
41022
41022
 
41023
41023
  // src/manager-api/modules/versions.ts
41024
41024
  var { VERSIONCHECK: Bde } = z, VM = (0, UM.default)(1)(() => {
@@ -1,16 +1,12 @@
1
- import { Dispatch, RefObject } from 'react';
2
- import { Chart } from 'chart.js';
3
1
  import { IState } from '../state/state.interfaces';
4
2
  import { ILineChartOptions } from '../line-chart.interface';
5
3
  interface IUseChartState {
6
- chartRef: RefObject<Chart>;
7
4
  options: ILineChartOptions;
8
5
  state: IState;
9
- dispatch: Dispatch<any>;
10
6
  persistenceId?: string;
11
7
  }
12
8
  /**
13
9
  * Hook for managing the state of the chart.
14
10
  */
15
- export declare const useChartState: ({ chartRef, options, state, dispatch, persistenceId, }: IUseChartState) => void;
11
+ export declare const useChartState: ({ options, state, persistenceId, }: IUseChartState) => void;
16
12
  export {};
@@ -1,5 +1,3 @@
1
- import { RefObject } from 'react';
2
- import { Chart } from 'chart.js';
3
1
  import { ILineChartOptions, TGeneratedLineChartDatasets } from '../../line-chart.interface';
4
2
  import { IState } from '../../state/state.interfaces';
5
3
  /**
@@ -8,4 +6,4 @@ import { IState } from '../../state/state.interfaces';
8
6
  * - supports optional padding when `autoAxisPadding` is set
9
7
  * - otherwise does not set min/max (falls back to chart.js default)
10
8
  */
11
- export declare const autoScale: (options: ILineChartOptions, state: IState, generatedDatasets: TGeneratedLineChartDatasets, chartRef: RefObject<Chart>) => {};
9
+ export declare const autoScale: (options: ILineChartOptions, state: IState, generatedDatasets: TGeneratedLineChartDatasets) => {};
@@ -1,5 +1,6 @@
1
- import { ILineRange } from '../line-chart.interface';
1
+ import { ILineChartOptions, ILineRange } from '../line-chart.interface';
2
2
  import { TPrimitive } from '../../common/common.interface';
3
+ import { IState } from '../state/state.interfaces';
3
4
  export declare const toNum: (value: string | number) => any;
4
5
  export declare const isLessThanMax: (value: string | number, max: string | number) => boolean;
5
6
  export declare const isGreaterThanMin: (value: string | number, min: string | number) => boolean;
@@ -30,3 +31,7 @@ export declare const isPrimitiveValue: (value: TPrimitive) => value is string |
30
31
  * Validates a range object to ensure none of its properties are null, undefined, or empty strings.
31
32
  */
32
33
  export declare const isRangeValid: (r?: ILineRange) => boolean;
34
+ /**
35
+ * Generates a unique key for the LineChart component based on dynamic chart state and language.
36
+ */
37
+ export declare const getChartKey: (state: IState, options: ILineChartOptions, languageKey: string) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/charts-library",
3
- "version": "5.1.1",
3
+ "version": "5.1.2-beta-2",
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": {