@mx-cartographer/experiences 6.25.0-alpha.sms3 → 6.25.0

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 (58) hide show
  1. package/CHANGELOG.md +70 -0
  2. package/dist/accounts/stores/AccountStore.d.ts +4 -12
  3. package/dist/categories/stores/CategoryStore.d.ts +1 -4
  4. package/dist/common/components/ListItemRow.d.ts +13 -0
  5. package/dist/common/components/charts/LineChart.d.ts +24 -5
  6. package/dist/common/components/charts/linechart/CustomLegend.d.ts +9 -2
  7. package/dist/common/components/charts/linechart/CustomMark.d.ts +3 -0
  8. package/dist/common/components/charts/linechart/CustomTooltip.d.ts +7 -0
  9. package/dist/common/components/listitems/CollapseExpandListItem.d.ts +7 -0
  10. package/dist/common/constants/Analytics.d.ts +12 -0
  11. package/dist/common/constants/FinStrong.d.ts +28 -0
  12. package/dist/common/context/hooks.d.ts +1 -0
  13. package/dist/common/context/index.d.ts +1 -1
  14. package/dist/common/stores/AppDataStore.d.ts +1 -1
  15. package/dist/common/stores/GlobalStore.d.ts +2 -17
  16. package/dist/common/stores/UserStore.d.ts +1 -1
  17. package/dist/common/types/Category.d.ts +9 -0
  18. package/dist/common/types/Client.d.ts +1 -1
  19. package/dist/common/types/Finstrong.d.ts +2 -0
  20. package/dist/common/types/index.d.ts +1 -1
  21. package/dist/common/types/localization/FinstrongCopy.d.ts +61 -1
  22. package/dist/common/types/localization/TrendsCopy.d.ts +12 -0
  23. package/dist/finstrong/components/CreditScoreGraph.d.ts +11 -0
  24. package/dist/finstrong/components/FinancialStrengthGraph.d.ts +9 -0
  25. package/dist/finstrong/components/KeyIndicatorsBorrowTab.d.ts +3 -0
  26. package/dist/finstrong/components/KeyIndicatorsSaveTab.d.ts +3 -0
  27. package/dist/finstrong/components/KeyIndicatorsSpendTab.d.ts +3 -0
  28. package/dist/finstrong/components/KeyIndicatorsTabItem.d.ts +10 -0
  29. package/dist/finstrong/components/KeyIndicatorsTabsWidget.d.ts +3 -0
  30. package/dist/finstrong/components/ManageCreditScore.d.ts +8 -0
  31. package/dist/finstrong/components/ManageDOB.d.ts +6 -0
  32. package/dist/finstrong/components/MissingData.d.ts +7 -0
  33. package/dist/finstrong/components/ProfileDrawer.d.ts +8 -0
  34. package/dist/finstrong/components/ProfileList.d.ts +20 -0
  35. package/dist/finstrong/components/ProfileProgressBar.d.ts +6 -0
  36. package/dist/finstrong/components/shared/CustomPieArc.d.ts +18 -0
  37. package/dist/finstrong/components/shared/DialScoreCard.d.ts +16 -0
  38. package/dist/finstrong/index.d.ts +3 -0
  39. package/dist/finstrong/stores/FinstrongStore.d.ts +7 -1
  40. package/dist/finstrong/util/finstrongUtils.d.ts +28 -0
  41. package/dist/finstrong/utils/Finstrong.d.ts +6 -0
  42. package/dist/index.d.ts +1 -0
  43. package/dist/index.es.js +7733 -6423
  44. package/dist/index.es.js.map +1 -1
  45. package/dist/transactions/stores/TransactionStore.d.ts +6 -13
  46. package/dist/trends/TrendsWidget.d.ts +5 -2
  47. package/dist/trends/components/CategoriesList.d.ts +7 -3
  48. package/dist/trends/components/CategoriesListItem.d.ts +3 -6
  49. package/dist/trends/components/CategoryDetailChart.d.ts +4 -0
  50. package/dist/trends/components/CategoryDetailDrawer.d.ts +7 -0
  51. package/dist/trends/components/DateRangeText.d.ts +9 -0
  52. package/dist/trends/components/TransactionsList.d.ts +7 -0
  53. package/dist/trends/components/TrendsChartTotals.d.ts +8 -0
  54. package/dist/trends/components/TrendsInsights.d.ts +5 -1
  55. package/dist/trends/components/TrendsViewToggle.d.ts +7 -0
  56. package/dist/trends/stores/TrendsStore.d.ts +15 -8
  57. package/package.json +1 -4
  58. package/dist/trends/mocks.d.ts +0 -80
@@ -0,0 +1,16 @@
1
+ import { PieValueType } from '@mui/x-charts';
2
+ export interface DialScoreCardProps {
3
+ arcRadius: number;
4
+ healthScore: number;
5
+ size: 'L' | 'M' | 'SM';
6
+ dialScoreData: PieValueType[];
7
+ minValue?: number;
8
+ maxValue?: number;
9
+ markerColor?: string;
10
+ healthScoreStatus: string;
11
+ footerCenterContent?: string | number;
12
+ footerLeftContent?: number;
13
+ footerRightContent?: number;
14
+ isFinacialStrengthGraph?: boolean;
15
+ }
16
+ export declare const DialScoreCard: ({ arcRadius, healthScore, size, dialScoreData, minValue, maxValue, markerColor, healthScoreStatus, footerCenterContent, footerLeftContent, footerRightContent, isFinacialStrengthGraph, }: DialScoreCardProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,6 @@
1
+ export { DialScoreCard } from './components/shared/DialScoreCard';
2
+ export { FinancialStrengthGraph } from './components/FinancialStrengthGraph';
3
+ export { CreditScoreGraph } from './components/CreditScoreGraph';
1
4
  export { FinstrongApi } from './api/FinstrongApi';
2
5
  export { FinstrongStore } from './stores/FinstrongStore';
3
6
  export { default as FinstrongWidget } from './FinstrongWidget';
@@ -2,14 +2,20 @@ import { GlobalStore, HealthScore, HealthScoreReport, MonthlyHealthScore } from
2
2
  import { FinstrongApi } from '../api/FinstrongApi';
3
3
  export declare class FinstrongStore {
4
4
  api: FinstrongApi;
5
+ augmentedChartData: {
6
+ x: string;
7
+ y: number;
8
+ }[];
5
9
  averageHealthScores: MonthlyHealthScore[];
6
10
  globalStore: GlobalStore;
7
- healthScore: HealthScore | null;
11
+ healthScore: HealthScore;
8
12
  healthScoreChangeReports: HealthScoreReport[];
9
13
  peerScore: number | null;
10
14
  constructor(globalStore: GlobalStore);
15
+ get getHealthScore(): HealthScore;
11
16
  calculateHealthScore: () => Promise<void>;
12
17
  loadAverageHealthScores: () => Promise<void>;
13
18
  loadHealthScoreChangeReports: () => Promise<void>;
14
19
  loadPeerScore: () => Promise<void>;
20
+ loadAugmentedChartData: () => Promise<void>;
15
21
  }
@@ -0,0 +1,28 @@
1
+ import { PieValueType } from '@mui/x-charts';
2
+ import { CreditScoreStatusCopy, FinstrongCopy } from '../../common/types/localization/FinstrongCopy';
3
+ export declare const radiansToDegrees: (radians: number) => number;
4
+ export declare const calculateFinstrongScoreStatus: (healthScore: number, copy: FinstrongCopy) => string;
5
+ export declare const CreditScoreLightColors: {
6
+ POOR: string;
7
+ FAIR: string;
8
+ GOOD: string;
9
+ VERY_GOOD: string;
10
+ EXCEPTIONAL: string;
11
+ };
12
+ export declare const CreditScoreDarkColors: {
13
+ POOR: string;
14
+ FAIR: string;
15
+ GOOD: string;
16
+ VERY_GOOD: string;
17
+ EXCEPTIONAL: string;
18
+ };
19
+ export declare const getCreditScoreDetails: (healthScore: number, isDarkMode: boolean, copy: CreditScoreStatusCopy) => {
20
+ status: string;
21
+ color: string;
22
+ } | {
23
+ status: string;
24
+ color?: undefined;
25
+ };
26
+ export declare const getOutterArcStartEndAngle: (healthScoreData: PieValueType[], totalAngularSpan: number, arcStartAngle: number, dataIndex: number) => number[];
27
+ export declare const getFilledArcStartEndAngle: (outterArcStartAngle: number, outterArcEndAngle: number, dataIndex: number, unitsPerSegment: number, progressEndAngle: number) => number[];
28
+ export declare const getMarkerXYCoordinates: (markerRadius: number, progressEndAngle: number, angleOffset?: number) => number[];
@@ -0,0 +1,6 @@
1
+ export declare const augmentChartData: (averageHealthScores: {
2
+ health_scores: any[];
3
+ }) => {
4
+ x: string;
5
+ y: any;
6
+ }[];
package/dist/index.d.ts CHANGED
@@ -19,3 +19,4 @@ export * from './spending';
19
19
  export * from './settings';
20
20
  export * from './transactions';
21
21
  export * from './trends';
22
+ export * from './finstrong';