@mx-cartographer/experiences 6.24.15-alpha-ram1-financialStrengthCardSection → 6.24.15-alpha.al1

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 (35) hide show
  1. package/dist/common/components/ListItemRow.d.ts +13 -0
  2. package/dist/common/components/charts/LineChart.d.ts +15 -5
  3. package/dist/common/components/charts/linechart/CustomLegend.d.ts +7 -2
  4. package/dist/common/components/charts/linechart/CustomTooltip.d.ts +7 -0
  5. package/dist/common/components/listitems/CollapseExpandListItem.d.ts +7 -0
  6. package/dist/common/context/hooks.d.ts +0 -1
  7. package/dist/common/types/Category.d.ts +15 -0
  8. package/dist/common/types/index.d.ts +1 -1
  9. package/dist/common/types/localization/FinstrongCopy.d.ts +0 -21
  10. package/dist/finstrong/components/ConnectMoreAccountsCard.d.ts +1 -5
  11. package/dist/finstrong/index.d.ts +0 -3
  12. package/dist/finstrong/stores/FinstrongStore.d.ts +1 -2
  13. package/dist/index.d.ts +0 -1
  14. package/dist/index.es.js +8234 -8280
  15. package/dist/index.es.js.map +1 -1
  16. package/dist/trends/TrendsWidget.d.ts +5 -2
  17. package/dist/trends/components/CategoriesList.d.ts +6 -3
  18. package/dist/trends/components/CategoriesListItem.d.ts +3 -6
  19. package/dist/trends/components/CategoryDetailChart.d.ts +4 -0
  20. package/dist/trends/components/CategoryDetailDrawer.d.ts +7 -0
  21. package/dist/trends/components/DateRangeText.d.ts +9 -0
  22. package/dist/trends/components/TransactionsList.d.ts +7 -0
  23. package/dist/trends/components/TrendsChartTotals.d.ts +8 -0
  24. package/dist/trends/components/TrendsInsights.d.ts +5 -1
  25. package/dist/trends/components/TrendsViewToggle.d.ts +7 -0
  26. package/dist/trends/stores/TrendsStore.d.ts +15 -12
  27. package/dist/trends/utils/TrendsData.d.ts +2 -1
  28. package/package.json +1 -1
  29. package/dist/finstrong/FinancialStrengthCard.d.ts +0 -8
  30. package/dist/finstrong/components/CreditScoreGraph.d.ts +0 -11
  31. package/dist/finstrong/components/FinancialStrengthGraph.d.ts +0 -9
  32. package/dist/finstrong/components/shared/CustomPieArc.d.ts +0 -18
  33. package/dist/finstrong/components/shared/DialScoreCard.d.ts +0 -16
  34. package/dist/finstrong/util/finstrongUtils.d.ts +0 -28
  35. package/dist/trends/mocks.d.ts +0 -80
@@ -0,0 +1,13 @@
1
+ import { default as React } from 'react';
2
+ interface ListItemRowProps {
3
+ onClick?: () => void;
4
+ leftIcon?: React.ReactNode;
5
+ rightIcon?: React.ReactNode;
6
+ title?: string;
7
+ subtitle?: string;
8
+ rightContent?: React.ReactNode;
9
+ titleBold?: boolean;
10
+ rightContentBold?: boolean;
11
+ }
12
+ export declare const ListItemRow: React.FC<ListItemRowProps>;
13
+ export {};
@@ -1,14 +1,20 @@
1
1
  import { default as React, CSSProperties } from 'react';
2
2
  import { MarkHandlers } from './linechart/CustomMark';
3
+ export type LineChartDataset = {
4
+ x: string;
5
+ y: number;
6
+ }[];
7
+ export type LineChartLabel = string | {
8
+ label: string;
9
+ amount: number;
10
+ };
3
11
  interface LineChartProps {
4
12
  baseline?: string;
5
13
  colors: (string | undefined)[];
6
- datasets: {
7
- x: string;
8
- y: number;
9
- }[][];
14
+ curve?: 'catmullRom' | 'linear' | 'monotoneX' | 'monotoneY' | 'natural' | 'step' | 'stepBefore' | 'stepAfter' | 'bump' | 'bumpX' | 'bumpY';
15
+ datasets: LineChartDataset[];
10
16
  height?: number;
11
- labels: string[];
17
+ labels: LineChartLabel[];
12
18
  margin?: {
13
19
  top?: number;
14
20
  right?: number;
@@ -19,8 +25,12 @@ interface LineChartProps {
19
25
  markStyles?: (markIndex: number) => CSSProperties;
20
26
  showArea?: boolean;
21
27
  showAverage?: boolean;
28
+ showAxis?: boolean;
29
+ showAxisHighlight?: boolean;
22
30
  showBars?: boolean;
31
+ showLegend?: boolean;
23
32
  showMarkLabel?: boolean;
33
+ showTooltip?: boolean;
24
34
  useCustomMark?: boolean;
25
35
  valueFormatterString?: string;
26
36
  width?: number;
@@ -1,5 +1,10 @@
1
- declare const _default: (({ series, average, style, }: {
2
- average: number;
1
+ import { LineChartLabel } from '../LineChart';
2
+ export declare const CustomLegendLabel: ({ label }: {
3
+ label: LineChartLabel;
4
+ }) => import("react/jsx-runtime").JSX.Element | null;
5
+ declare const _default: (({ average, labels, series, style, }: {
6
+ average?: number;
7
+ labels?: LineChartLabel[];
3
8
  series: any[];
4
9
  style: any;
5
10
  }) => import("react/jsx-runtime").JSX.Element) & {
@@ -0,0 +1,7 @@
1
+ import { LineChartLabel } from '../LineChart';
2
+ interface CustomTooltipProps {
3
+ labels?: LineChartLabel[];
4
+ valueFormatterString?: string;
5
+ }
6
+ export declare function CustomTooltip({ labels, valueFormatterString }: CustomTooltipProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ interface CollapseExpandListItemProps {
3
+ isExpanded: boolean;
4
+ onClick: () => void;
5
+ }
6
+ export declare const CollapseExpandListItem: React.FC<CollapseExpandListItemProps>;
7
+ export {};
@@ -7,7 +7,6 @@ export declare const useCashflowStore: () => import('../..').CashflowStore;
7
7
  export declare const useCategoryStore: () => import('../..').CategoryStore;
8
8
  export declare const useConnectStore: () => import('../stores/ConnectStore').ConnectStore;
9
9
  export declare const useDebtStore: () => import('../..').DebtsStore;
10
- export declare const useFinstrongStore: () => import('../..').FinstrongStore;
11
10
  export declare const useGlobalStore: () => import('..').GlobalStore;
12
11
  export declare const useGlobalUiStore: () => import('../stores/GlobalUiStore').GlobalUiStore;
13
12
  export declare const useGlobalCopyStore: () => import('..').GlobalCopy;
@@ -1,3 +1,4 @@
1
+ import { Transaction } from './Transaction';
1
2
  export interface Category {
2
3
  guid: string;
3
4
  income: boolean;
@@ -54,6 +55,20 @@ export interface DetailedCategory extends Category {
54
55
  totalAverageAmount: number;
55
56
  totalMonthlyAmounts: MonthlyAmount[];
56
57
  }
58
+ export interface CategoryListItem {
59
+ guid: string;
60
+ name: string;
61
+ amount: number;
62
+ subcategories?: CategoryListItem[];
63
+ monthlyTotals?: {
64
+ month: number;
65
+ total: number;
66
+ }[];
67
+ transactions?: Transaction[];
68
+ transactionCount?: number;
69
+ color?: string;
70
+ chartLabel?: string;
71
+ }
57
72
  export interface CategoryTotal {
58
73
  amount: number;
59
74
  category: Category;
@@ -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, CategoryTotal, DateRangeCategoryTotals, DetailedCategory, MonthlyAmount, MonthlyCategoryTotals, } from './Category';
9
+ export type { Category, CategoryListItem, CategoryTotal, DateRangeCategoryTotals, DetailedCategory, MonthlyAmount, MonthlyCategoryTotals, } 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';
@@ -1,33 +1,12 @@
1
- export interface CreditScoreStatusCopy {
2
- poor: string;
3
- fair: string;
4
- good: string;
5
- very_good: string;
6
- exceptional: string;
7
- missing_data: string;
8
- }
9
- export interface HealthScoreStatuDetailsCopy {
10
- building: string;
11
- stable: string;
12
- strong: string;
13
- vulnerable: string;
14
- }
15
1
  export interface FinstrongCopy {
16
- accordion_details_text: HealthScoreStatuDetailsCopy;
17
- accordion_title_text: string;
18
2
  building: string;
19
3
  connect_more_accounts_button: string;
20
4
  connect_more_accounts_description: string;
21
5
  connect_more_accounts_title: string;
22
6
  connect_more_accounts_to_view_more_accurate_financial_picture: string;
23
- credit_score_status: CreditScoreStatusCopy;
24
7
  dont_see_all_your_accounts: string;
25
- footer_center_content_updated_just_now: string;
26
8
  finstrong_freedom_description: string;
27
- health_score_zero_title: string;
28
- health_score_zero_description: string;
29
9
  how_do_we_do_this: string;
30
- insufficient_data: string;
31
10
  key_indicators: string;
32
11
  see_whats_possible: string;
33
12
  see_whats_possible_description: string;
@@ -1,11 +1,7 @@
1
- import { SxProps } from '@mui/material/styles';
2
1
  interface ConnectMoreAccountsCardProps {
3
2
  isDashboard?: boolean;
4
- hasIcon?: boolean;
5
- buttonText?: string;
6
3
  title?: string;
7
4
  description?: string;
8
- sx?: SxProps;
9
5
  }
10
- export declare const ConnectMoreAccountsCard: ({ isDashboard, hasIcon, buttonText, title, description, sx, }: ConnectMoreAccountsCardProps) => import("react/jsx-runtime").JSX.Element;
6
+ export declare const ConnectMoreAccountsCard: ({ isDashboard, title, description, }: ConnectMoreAccountsCardProps) => import("react/jsx-runtime").JSX.Element;
11
7
  export {};
@@ -1,6 +1,3 @@
1
- export { DialScoreCard } from './components/shared/DialScoreCard';
2
- export { FinancialStrengthGraph } from './components/FinancialStrengthGraph';
3
- export { CreditScoreGraph } from './components/CreditScoreGraph';
4
1
  export { FinstrongApi } from './api/FinstrongApi';
5
2
  export { FinstrongStore } from './stores/FinstrongStore';
6
3
  export { default as FinstrongWidget } from './FinstrongWidget';
@@ -5,11 +5,10 @@ export declare class FinstrongStore {
5
5
  averageHealthScores: MonthlyHealthScore[];
6
6
  globalStore: GlobalStore;
7
7
  healthScore: HealthScore | null;
8
- healthScoreChange?: number;
9
8
  healthScoreChangeReports: HealthScoreReport[];
10
9
  peerScore: number | null;
11
10
  constructor(globalStore: GlobalStore);
12
- calculateHealthScore: (needHealthScoreChangeReports?: boolean) => Promise<void>;
11
+ calculateHealthScore: () => Promise<void>;
13
12
  loadAverageHealthScores: () => Promise<void>;
14
13
  loadHealthScoreChangeReports: () => Promise<void>;
15
14
  loadPeerScore: () => Promise<void>;
package/dist/index.d.ts CHANGED
@@ -19,4 +19,3 @@ export * from './spending';
19
19
  export * from './settings';
20
20
  export * from './transactions';
21
21
  export * from './trends';
22
- export * from './finstrong';