@mx-cartographer/experiences 6.25.4 → 6.25.6-alpha.al0

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/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## [6.25.6] - 08-25-2025
2
+
3
+ - **CHANGED** - new Trends Widget to use Detailed Categories
4
+
5
+ ## [6.25.5] - 08-25-2025
6
+
7
+ - **ADDED** - `Mini Goals Widget` | Padding updated for empty state
8
+
1
9
  ## [6.25.4] - 08-22-2025
2
10
 
3
11
  - **ADDED** - Key Indicators section for `Finstrong`
@@ -14,7 +22,7 @@
14
22
 
15
23
  - **ADDED** - `Profile` drawer with API for `Finstrong` widget
16
24
 
17
- ## [6.25.00] - 08-20-2025
25
+ ## [6.25.0] - 08-20-2025
18
26
 
19
27
  - **ADDED** - (new) TrendsWidget, TrendsStore, TrendsChartTotals, TrendsInsights
20
28
  - **ADDED** - CategoryList, CategoryDetailDrawer, CategoryDetailChart
@@ -1,11 +1,12 @@
1
1
  import { Theme } from '@mui/material';
2
- import { Category, DateRangeCategoryTotals, DetailedCategory, MonthlyCategoryTotals } from '../../common';
2
+ import { Category, DateRangeCategoryTotals, DetailedCategory, MonthlyCategoryTotals, Transaction } from '../../common';
3
3
  /**
4
4
  * Augment categories
5
5
  * @param categories - Categories to augment
6
6
  * @param monthlyCategoryTotals - Monthly category totals
7
7
  * @param currentCategoryTotals - Current month category totals
8
+ * @param transactions - Transactions to be filtered by category
8
9
  */
9
- export declare const augmentCategories: (categories: Category[], currentCategoryTotals: DateRangeCategoryTotals[], monthlyCategoryTotals: MonthlyCategoryTotals[]) => DetailedCategory[];
10
+ export declare const augmentCategories: (categories: Category[], currentCategoryTotals: DateRangeCategoryTotals[], monthlyCategoryTotals: MonthlyCategoryTotals[], transactions?: Transaction[]) => DetailedCategory[];
10
11
  export declare const getCategoryColor: (guid: string, theme: Theme) => string;
11
12
  export declare const getCategoryIcon: (guid: string) => string | undefined;
@@ -1,7 +1,8 @@
1
- import { LineChartLabel } from '../LineChart';
1
+ import { LineChartLabel, LineChartDataset } from '../LineChart';
2
2
  interface CustomTooltipProps {
3
3
  labels?: LineChartLabel[];
4
4
  valueFormatterString?: string;
5
+ datasets?: LineChartDataset[];
5
6
  }
6
- export declare function CustomTooltip({ labels, valueFormatterString }: CustomTooltipProps): import("react/jsx-runtime").JSX.Element;
7
+ export declare function CustomTooltip({ labels, valueFormatterString, datasets, }: CustomTooltipProps): import("react/jsx-runtime").JSX.Element;
7
8
  export {};
@@ -31,6 +31,15 @@ export interface MonthlyAmount {
31
31
  isoDate: string;
32
32
  label: string;
33
33
  }
34
+ export interface MonthlySubcategoryBreakdown {
35
+ isoDate: string;
36
+ label: string;
37
+ subcategories: Array<{
38
+ guid: string;
39
+ name: string;
40
+ amount: number;
41
+ }>;
42
+ }
34
43
  /**
35
44
  * @averageAmount - The average amount for this category
36
45
  * @color - Color to represent this category
@@ -42,26 +51,21 @@ export interface MonthlyAmount {
42
51
  * @totalAmount - The total amount (including subcategories) for the current month
43
52
  * @totalAverageAmount - The total average amount (including subcategories) for this category
44
53
  * @totalMonthlyAmounts - The past 12 total monthly amounts (including subcategories)
54
+ * @transactions - The transactions for this category
45
55
  */
46
56
  export interface DetailedCategory extends Category {
47
57
  averageAmount: number;
48
58
  color: string;
49
59
  currentAmount: number;
50
60
  monthlyAmounts: MonthlyAmount[];
61
+ monthlySubcategoryBreakdowns: MonthlySubcategoryBreakdown[];
51
62
  icon: string;
52
63
  isTransfer: boolean;
53
64
  subCategories: DetailedCategory[];
54
65
  totalAmount: number;
55
66
  totalAverageAmount: number;
56
67
  totalMonthlyAmounts: MonthlyAmount[];
57
- }
58
- export interface CategoryListItem {
59
- guid: string;
60
- name: string;
61
- amount: number;
62
- transactions?: Transaction[];
63
- color?: string;
64
- chartLabel?: string;
68
+ transactions: Transaction[];
65
69
  }
66
70
  export interface CategoryTotal {
67
71
  amount: number;
@@ -6,7 +6,7 @@ export type { Beat, DataSeries } from './Beat';
6
6
  export { UserVerification } from './Beat';
7
7
  export type { Budget, BudgetColors, DetailedBudget } from './Budget';
8
8
  export type { CashflowEvent, CashflowSequence, RepeatDay, RepeatInterval, RepeatMonth, RepeatWeekday, } from './Cashflow';
9
- export type { Category, CategoryListItem, CategoryTotal, DateRangeCategoryTotals, DetailedCategory, MonthlyAmount, MonthlyCategoryTotals, } from './Category';
9
+ export type { Category, CategoryTotal, DateRangeCategoryTotals, DetailedCategory, MonthlyAmount, MonthlyCategoryTotals, MonthlySubcategoryBreakdown, } from './Category';
10
10
  export type { Client, ClientColorScheme, ClientCommunicationProfile, ClientInsightProfile, ClientProfile, ClientStyleProfile, } from './Client';
11
11
  export type { DateType, DateRange } from './Date';
12
12
  export type { Expense } from './Expense';