@mx-cartographer/experiences 3.10.1-alpha.mm2 → 3.10.1-alpha.mm21

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,19 +10,6 @@ type DataPoint = {
10
10
  y: number;
11
11
  };
12
12
  type Dataset = DataPoint[];
13
- type CategoryTotalData = {
14
- top_level_category_guid: string;
15
- category_guid: string;
16
- category_name: string;
17
- total: number;
18
- date: Date;
19
- color: string;
20
- };
21
- type GroupedCategoryTotalData = {
22
- [topLevelCategory: string]: {
23
- [category: string]: CategoryTotalData[];
24
- };
25
- };
26
13
  export interface StackedLineChartData {
27
14
  top_level_category_guid: string;
28
15
  category_guid: string;
@@ -54,6 +41,12 @@ export declare const getSpendingTotals: (totals: MonthlyCategoryTotals[], range?
54
41
  }[];
55
42
  export declare const getTopLevelCategoryTotals: (totals: (MonthlyCategoryTotals | StackedLineChartData)[]) => (MonthlyCategoryTotals | StackedLineChartData)[];
56
43
  export declare const amountComparator: GridComparatorFn<string | number>;
57
- export declare const createGroupedCategoryTotals: (totals: MonthlyCategoryTotals[]) => GroupedCategoryTotalData;
58
- export declare const getStackedLineChartData: (groupedTotals: GroupedCategoryTotalData, datasetLength: number) => StackedLineChartData[];
44
+ export declare const getStackedLineChartData: (totals: MonthlyCategoryTotals[]) => StackedLineChartData[];
45
+ export declare const sliceStackedLineChartData: (data: StackedLineChartData[], limit: number) => {
46
+ dataset: DataPoint[];
47
+ top_level_category_guid: string;
48
+ category_guid: string;
49
+ category_name: string;
50
+ category_color: string;
51
+ }[];
59
52
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "3.10.1-alpha.mm2",
3
+ "version": "3.10.1-alpha.mm21",
4
4
  "description": "Library containing experience widgets",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",
@@ -122,4 +122,4 @@
122
122
  "README.md"
123
123
  ],
124
124
  "packageManager": "yarn@4.4.1"
125
- }
125
+ }