@oliasoft-open-source/charts-library 4.1.2 → 4.1.3-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.
- package/dist/index.js +18 -1
- package/dist/index.js.map +1 -1
- package/dist/src/components/common/hooks/use-reset.d.ts +3 -0
- package/dist/src/components/common/legend-component/state/legend-action-types.d.ts +1 -0
- package/dist/src/components/common/legend-component/state/legend-state-reducer.d.ts +4 -1
- package/dist/src/components/line-chart/line-chart.stories.d.ts +1 -0
- package/package.json +3 -3
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export declare const UPSERT_HIDDEN_STATE = "UPSERT_HIDDEN_STATE";
|
|
2
2
|
export declare const CLEAR_NON_EXISTENT_DATASETS = "CLEAR_NON_EXISTENT_DATASETS";
|
|
3
3
|
export declare const TOGGLE_ANNOTATION_VISIBILITY = "TOGGLE_ANNOTATION_VISIBILITY";
|
|
4
|
+
export declare const RESET_STATE = "RESET_STATE";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CLEAR_NON_EXISTENT_DATASETS, TOGGLE_ANNOTATION_VISIBILITY, UPSERT_HIDDEN_STATE } from './legend-action-types';
|
|
1
|
+
import { CLEAR_NON_EXISTENT_DATASETS, RESET_STATE, TOGGLE_ANNOTATION_VISIBILITY, UPSERT_HIDDEN_STATE } from './legend-action-types';
|
|
2
2
|
import { ICommonAnnotationElement } from '../../common.interface';
|
|
3
3
|
import { THiddenState } from '../../hooks/use-legend-state';
|
|
4
4
|
export interface ILegendState {
|
|
@@ -21,6 +21,9 @@ export type TLegendAction = {
|
|
|
21
21
|
} | {
|
|
22
22
|
type: typeof TOGGLE_ANNOTATION_VISIBILITY;
|
|
23
23
|
payload: number;
|
|
24
|
+
} | {
|
|
25
|
+
type: typeof RESET_STATE;
|
|
26
|
+
payload: ILegendState;
|
|
24
27
|
};
|
|
25
28
|
export declare const legendInitialState: ILegendState;
|
|
26
29
|
export declare const legendReducer: (state: ILegendState, action: TLegendAction) => ILegendState;
|
|
@@ -1198,6 +1198,7 @@ export namespace TestCustomLinePointsLogic {
|
|
|
1198
1198
|
}
|
|
1199
1199
|
export { args_43 as args };
|
|
1200
1200
|
}
|
|
1201
|
+
export function ManageAnnotationExternally(): import("react/jsx-runtime").JSX.Element;
|
|
1201
1202
|
import { LineChart } from './line-chart';
|
|
1202
1203
|
declare namespace basicChart { }
|
|
1203
1204
|
declare const customLegendContainerID: "custom-legend-container";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oliasoft-open-source/charts-library",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.3-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": {
|
|
@@ -110,8 +110,8 @@
|
|
|
110
110
|
"@oliasoft-open-source/units": "^3.4.2",
|
|
111
111
|
"classnames": "^2.3.2",
|
|
112
112
|
"immer": "^10.0.2",
|
|
113
|
+
"lodash": "^4.17.21",
|
|
113
114
|
"react": "^17",
|
|
114
|
-
"react-dom": "^17"
|
|
115
|
-
"lodash": "^4.17.21"
|
|
115
|
+
"react-dom": "^17"
|
|
116
116
|
}
|
|
117
117
|
}
|