@mx-cartographer/experiences 7.2.9-alpha.san4 → 7.2.10
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 +4 -0
- package/dist/{Account-CBQnFO6w.mjs → Account-B-CuHOYf.mjs} +1 -1
- package/dist/{AccountDetailsContent-CmdOOZw1.mjs → AccountDetailsContent-DfzPOeMI.mjs} +10 -10
- package/dist/{AccountDetailsHeader-CaIoP_2Q.mjs → AccountDetailsHeader-vcy67tuH.mjs} +8 -8
- package/dist/{AccountFields-CLbLAhLf.mjs → AccountFields-cUP-9Hm6.mjs} +5 -5
- package/dist/{AccountListItem-CPm3572e.mjs → AccountListItem-DChcf3SN.mjs} +4 -4
- package/dist/{AccountStore-DttEGFeu.mjs → AccountStore-D6KiXA1B.mjs} +29 -40
- package/dist/{Accounts-B5Yr0e_o.mjs → Accounts-IeEtQjzA.mjs} +1 -1
- package/dist/{BudgetUtil-wjoNuj7B.mjs → BudgetUtil-B2ZXyw-g.mjs} +1 -1
- package/dist/{CategorySelectorDrawer-ZO9N26Kx.mjs → CategorySelectorDrawer-DUe4lH5-.mjs} +3 -3
- package/dist/{CategoryStore-C1IfDPCE.mjs → CategoryStore-BCcpI3oJ.mjs} +1 -1
- package/dist/{CategoryUtil-DUM8NuGO.mjs → CategoryUtil-BR3H5i6n.mjs} +1 -1
- package/dist/{ConnectDrawer-FyY0AWYQ.mjs → ConnectDrawer-DaFRU5st.mjs} +2 -2
- package/dist/{ConnectionsDrawer-Cd_rztVC.mjs → ConnectionsDrawer-DHJ7qdWL.mjs} +3 -3
- package/dist/{CurrencyInput-CBOkNlNP.mjs → CurrencyInput-CsCy7uaS.mjs} +1 -1
- package/dist/{DateUtil-CBdcsyuk.mjs → DateUtil-BcuH7ErC.mjs} +3 -3
- package/dist/{DebtsStore-DB5U2WMC.mjs → DebtsStore-z3VARSO6.mjs} +1 -1
- package/dist/{Dialog-BPTr3qHE.mjs → Dialog-CWW597AF.mjs} +2 -2
- package/dist/Drawer-kEE73B87.mjs +113 -0
- package/dist/{ExportCsvAction-DlGZfm4y.mjs → ExportCsvAction-sX8Rg4Ov.mjs} +3 -3
- package/dist/FinstrongStore-F2c607dj.mjs +101 -0
- package/dist/{GoalStore-deVLYr7n.mjs → GoalStore-TD0BfzWX.mjs} +3 -3
- package/dist/{Help-BnPXM_N2.mjs → Help-B6dIcujh.mjs} +2 -2
- package/dist/{LineChart-Ct9DNmhS.mjs → LineChart-D4GI7nVh.mjs} +181 -209
- package/dist/{ListItemAction-uobBrm_a.mjs → ListItemAction-DHa3KJPs.mjs} +10 -10
- package/dist/{ManageIncome-DB_lKOIy.mjs → ManageIncome-D3n1EWxe.mjs} +61 -63
- package/dist/{MicroWidgetContainer-DEiRnYVa.mjs → MicroWidgetContainer-DpeqN9n3.mjs} +1 -1
- package/dist/{MiniWidgetContainer-CmXpTylX.mjs → MiniWidgetContainer-D0gfmbaF.mjs} +1 -1
- package/dist/{NetWorthStore-CUz0bwVm.mjs → NetWorthStore-B_1oulrt.mjs} +2 -2
- package/dist/{NotificationSettings-Bfb3T7nN.mjs → NotificationSettings-BRm_EJZV.mjs} +5 -5
- package/dist/{OriginalBalanceAction-BLiU-7Lf.mjs → OriginalBalanceAction-CAaVbVMO.mjs} +3 -3
- package/dist/{RecurringSettings-dJJxtLyU.mjs → RecurringSettings-C28GrQcP.mjs} +4 -4
- package/dist/{RecurringTransactions-CngsRZ3K.mjs → RecurringTransactions-ej39mgA6.mjs} +44 -45
- package/dist/{RecurringTransactionsStore-C4RVULF8.mjs → RecurringTransactionsStore-DrzS1LmF.mjs} +1 -1
- package/dist/{SpendingData-BuJ03S9d.mjs → SpendingData-D5vsfYKo.mjs} +16 -16
- package/dist/{TransactionDetails-CJvE4LNC.mjs → TransactionDetails-BWffqew4.mjs} +8 -11
- package/dist/{TransactionStore-DvOEbOzL.mjs → TransactionStore-DxPLdF3B.mjs} +3 -3
- package/dist/{TrendsStore-BVNxGsE4.mjs → TrendsStore-DCYbpXPO.mjs} +14 -14
- package/dist/{User-wXzDI4M8.mjs → User-BQUxBeZV.mjs} +2 -2
- package/dist/{WidgetContainer-GoNq8wwm.mjs → WidgetContainer-C88Ecu2W.mjs} +4 -4
- package/dist/accounts/index.es.js +14 -14
- package/dist/accounts/stores/AccountStore.d.ts +0 -2
- package/dist/analytics/index.es.js +2 -2
- package/dist/budgets/index.es.js +12 -12
- package/dist/cashflow/index.es.js +44 -44
- package/dist/categories/index.es.js +2 -2
- package/dist/common/components/Select.d.ts +2 -4
- package/dist/common/components/charts/LineChart.d.ts +2 -8
- package/dist/common/components/charts/linechart/CustomMark.d.ts +0 -4
- package/dist/common/components/drawer/Drawer.d.ts +0 -3
- package/dist/common/hooks/useAriaLive.d.ts +8 -0
- package/dist/common/index.es.js +33 -33
- package/dist/common/types/Finstrong.d.ts +0 -50
- package/dist/common/types/index.d.ts +1 -1
- package/dist/common/types/localization/FinstrongCopy.d.ts +1 -58
- package/dist/common/types/localization/TransactionsCopy.d.ts +1 -0
- package/dist/dashboard/index.es.js +2 -2
- package/dist/debts/index.es.js +11 -11
- package/dist/{exportTransactionsToCSV-hrNpJ77n.mjs → exportTransactionsToCSV-7bVS7KXf.mjs} +2 -2
- package/dist/finstrong/api/FinstrongApi.d.ts +0 -5
- package/dist/finstrong/components/ConnectMoreAccountsCard.d.ts +1 -3
- package/dist/finstrong/components/KeyIndicatorsBorrowTab.d.ts +2 -2
- package/dist/finstrong/components/KeyIndicatorsDrawer.d.ts +1 -4
- package/dist/finstrong/components/KeyIndicatorsSaveTab.d.ts +2 -2
- package/dist/finstrong/components/KeyIndicatorsSpendTab.d.ts +2 -2
- package/dist/finstrong/components/KeyIndicatorsTabItem.d.ts +3 -4
- package/dist/finstrong/components/KeyIndicatorsTabsWidget.d.ts +2 -2
- package/dist/finstrong/index.es.js +1055 -3130
- package/dist/finstrong/stores/FinstrongStore.d.ts +1 -9
- package/dist/finstrong/util/finstrongUtils.d.ts +1 -58
- package/dist/finstrong/utils/Finstrong.d.ts +6 -0
- package/dist/goals/index.es.js +14 -14
- package/dist/help/index.es.js +3 -3
- package/dist/{hooks-C41HAxM5.mjs → hooks-D6XlXHf4.mjs} +3 -3
- package/dist/investments/index.es.js +4 -4
- package/dist/merchants/index.es.js +1 -1
- package/dist/networth/index.es.js +34 -34
- package/dist/notifications/index.es.js +4 -4
- package/dist/recurringtransactions/index.es.js +13 -13
- package/dist/settings/index.es.js +8 -8
- package/dist/spending/index.es.js +373 -222
- package/dist/transactions/index.es.js +307 -271
- package/dist/trends/index.es.js +94 -94
- package/dist/{useAccountDisplayName-B5O6hQ1B.mjs → useAccountDisplayName-BcRqfar8.mjs} +2 -2
- package/dist/{useInsightsEnabled-CNjP5cfR.mjs → useInsightsEnabled-DBpwEq10.mjs} +1 -1
- package/package.json +1 -1
- package/dist/Drawer-BEtCk82g.mjs +0 -163
- package/dist/FinstrongStore-rVhw737g.mjs +0 -432
- package/dist/SpendingLegend-squvjEhu.mjs +0 -170
- package/dist/accounts/components/AccountsListCompact.d.ts +0 -10
- package/dist/common/components/drawer/Footer.d.ts +0 -17
- package/dist/finstrong/components/CreditScore/CreditScoreContent.d.ts +0 -4
- package/dist/finstrong/components/CreditScore/CreditScoreHeader.d.ts +0 -4
- package/dist/finstrong/components/HaveManageableDebt/DebtPaymentTabContent.d.ts +0 -3
- package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtComponent.d.ts +0 -3
- package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtProgressBar.d.ts +0 -4
- package/dist/finstrong/components/HaveManageableDebt/IncomeTabContent.d.ts +0 -3
- package/dist/finstrong/components/KeyIndicatorsTabItemDrawer.d.ts +0 -10
- package/dist/finstrong/components/MaintainingEmergencySavings/EstimatedContributionCalculator.d.ts +0 -6
- package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsContent.d.ts +0 -4
- package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsSticky.d.ts +0 -4
- package/dist/finstrong/components/ProgressBar.d.ts +0 -15
- package/dist/finstrong/components/SaveEnoughToLiveOn/AvailableTabContent.d.ts +0 -3
- package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnDrawerContent.d.ts +0 -3
- package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnProgressBar.d.ts +0 -4
- package/dist/finstrong/components/SaveEnoughToLiveOn/SpendingTabContent.d.ts +0 -3
- package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeComponent.d.ts +0 -3
- package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeProgressBar.d.ts +0 -4
- package/dist/finstrong/components/StatusChip.d.ts +0 -5
- package/dist/finstrong/components/onboarding/Onboarding.d.ts +0 -2
- package/dist/finstrong/components/onboarding/OnboardingAddMonthlyIncome.d.ts +0 -11
- package/dist/finstrong/components/onboarding/OnboardingBirthday.d.ts +0 -8
- package/dist/finstrong/components/onboarding/OnboardingCreditScore.d.ts +0 -8
- package/dist/finstrong/components/onboarding/OnboardingStepsDrawer.d.ts +0 -14
- package/dist/finstrong/components/onboarding/OnboardingStepsHeader.d.ts +0 -8
- package/dist/finstrong/components/paybillsontime/PayBillsOnTimeDrawerComponent.d.ts +0 -4
- package/dist/finstrong/components/paybillsontime/PayBillsOnTimeStickyComponent.d.ts +0 -4
- package/dist/finstrong/components/shared/Accounts.d.ts +0 -8
- package/dist/finstrong/components/shared/CustomDoubleBarPlot.d.ts +0 -25
- package/dist/finstrong/components/shared/DoubleBarChart.d.ts +0 -28
- package/dist/finstrong/components/shared/LineGraph.d.ts +0 -7
- package/dist/finstrong/components/shared/TotalCard.d.ts +0 -8
- package/dist/finstrong/components/shared/TransactionList.d.ts +0 -15
- package/dist/finstrong/components/shared/Transactions.d.ts +0 -11
- package/dist/finstrong/constants/index.d.ts +0 -8
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { makeAutoObservable as l, runInAction as r } from "mobx";
|
|
2
|
+
import { format as i } from "date-fns/format";
|
|
3
|
+
import { fromUnixTime as g } from "date-fns/fromUnixTime";
|
|
4
|
+
import { getUnixTime as s } from "date-fns/getUnixTime";
|
|
5
|
+
import { subMonths as S } from "date-fns/subMonths";
|
|
6
|
+
import { F as m, A as o } from "./Fetch-87LIQbEA.mjs";
|
|
7
|
+
import { f as p, D as u } from "./Dialog-CWW597AF.mjs";
|
|
8
|
+
class n {
|
|
9
|
+
fetchInstance;
|
|
10
|
+
constructor(e, t, a) {
|
|
11
|
+
this.fetchInstance = new m(e, t, void 0, a);
|
|
12
|
+
}
|
|
13
|
+
calculateHealthScore = async () => this.fetchInstance.post(`${o.HEALTH_SCORES}/calculate`).then((e) => e.health_score);
|
|
14
|
+
getAverageHealthScores = async () => this.fetchInstance.get(`${o.HEALTH_SCORES}/monthly_averages`).then((e) => e);
|
|
15
|
+
getHealthScoreChangeReports = async (e, t) => this.fetchInstance.get(`${o.HEALTH_SCORES}/change_report/from/${e}/to/${t}`).then((a) => a);
|
|
16
|
+
getPeerScore = async (e) => this.fetchInstance.get(`${o.HEALTH_SCORES}/average/${e}`).then((t) => t.average_health_score);
|
|
17
|
+
}
|
|
18
|
+
const y = (h) => h?.health_scores.map((e) => {
|
|
19
|
+
const t = e.monthly_health_score_average, a = new Date(0, t.month - 1, 1);
|
|
20
|
+
return {
|
|
21
|
+
x: p(a, u.MONTH_SHORT),
|
|
22
|
+
y: t.average_health_score,
|
|
23
|
+
month: t.month
|
|
24
|
+
// Keep original month for sorting
|
|
25
|
+
};
|
|
26
|
+
}).sort((e, t) => e.month - t.month).map((e) => ({ x: e.x, y: e.y }));
|
|
27
|
+
class v {
|
|
28
|
+
api = new n("/", "");
|
|
29
|
+
augmentedChartData = [];
|
|
30
|
+
averageHealthScores = [];
|
|
31
|
+
globalStore;
|
|
32
|
+
healthScore = {};
|
|
33
|
+
healthScoreChange;
|
|
34
|
+
healthScoreChangeReports = [];
|
|
35
|
+
peerScore = null;
|
|
36
|
+
constructor(e) {
|
|
37
|
+
this.globalStore = e, this.api = new n(e.endpoint, e.sessionToken, e.onError), l(this);
|
|
38
|
+
}
|
|
39
|
+
calculateHealthScore = async () => {
|
|
40
|
+
try {
|
|
41
|
+
const e = await this.api.calculateHealthScore();
|
|
42
|
+
let t = 0;
|
|
43
|
+
await this.loadHealthScoreChangeReports();
|
|
44
|
+
const a = e?.health_score || 0, c = this.healthScoreChangeReports.at(-1)?.older_health_score || 0;
|
|
45
|
+
t = a - c, r(() => {
|
|
46
|
+
this.healthScore = e, this.healthScoreChange = t;
|
|
47
|
+
});
|
|
48
|
+
} catch (e) {
|
|
49
|
+
console.error("Error calculating health score:", e);
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
loadAverageHealthScores = async () => {
|
|
53
|
+
try {
|
|
54
|
+
const e = await this.api.getAverageHealthScores();
|
|
55
|
+
r(() => {
|
|
56
|
+
this.averageHealthScores = e;
|
|
57
|
+
});
|
|
58
|
+
} catch (e) {
|
|
59
|
+
console.error("Error loading average health scores:", e);
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
loadHealthScoreChangeReports = async () => {
|
|
63
|
+
const e = s(S(/* @__PURE__ */ new Date(), 2)), t = s(/* @__PURE__ */ new Date());
|
|
64
|
+
try {
|
|
65
|
+
const a = await this.api.getHealthScoreChangeReports(
|
|
66
|
+
e,
|
|
67
|
+
t
|
|
68
|
+
);
|
|
69
|
+
r(() => {
|
|
70
|
+
this.healthScoreChangeReports = a;
|
|
71
|
+
});
|
|
72
|
+
} catch (a) {
|
|
73
|
+
console.error("Error loading health score change reports:", a);
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
loadPeerScore = async () => {
|
|
77
|
+
const e = i(g(this.globalStore.appDataStore.user.birthday), "yyyy");
|
|
78
|
+
try {
|
|
79
|
+
const t = await this.api.getPeerScore(e);
|
|
80
|
+
r(() => {
|
|
81
|
+
this.peerScore = t;
|
|
82
|
+
});
|
|
83
|
+
} catch (t) {
|
|
84
|
+
console.error("Error loading peer score:", t);
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
loadAugmentedChartData = async () => {
|
|
88
|
+
try {
|
|
89
|
+
const e = await this.api.getAverageHealthScores();
|
|
90
|
+
r(() => {
|
|
91
|
+
this.augmentedChartData = y(e);
|
|
92
|
+
});
|
|
93
|
+
} catch (e) {
|
|
94
|
+
console.error(`Error occurred while getting augmented chart data: ${e}`);
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
export {
|
|
99
|
+
n as F,
|
|
100
|
+
v as a
|
|
101
|
+
};
|
|
@@ -7,8 +7,8 @@ import O from "@mui/material/CardHeader";
|
|
|
7
7
|
import S from "@mui/material/Stack";
|
|
8
8
|
import { AccountBalance as w, ChevronRight as L } from "@mxenabled/mx-icons";
|
|
9
9
|
import { Text as A } from "@mxenabled/mxui";
|
|
10
|
-
import { l as b } from "./ConnectDrawer-
|
|
11
|
-
import { a as y } from "./hooks-
|
|
10
|
+
import { l as b } from "./ConnectDrawer-DaFRU5st.mjs";
|
|
11
|
+
import { a as y } from "./hooks-D6XlXHf4.mjs";
|
|
12
12
|
import { makeAutoObservable as D, runInAction as c } from "mobx";
|
|
13
13
|
import { F as v, A as i } from "./Fetch-87LIQbEA.mjs";
|
|
14
14
|
import { fromUnixTime as G } from "date-fns/fromUnixTime";
|
|
@@ -16,7 +16,7 @@ import { addYears as x } from "date-fns/addYears";
|
|
|
16
16
|
import { getUnixTime as K } from "date-fns/getUnixTime";
|
|
17
17
|
import { b as E } from "./Localization-2MODESHW.mjs";
|
|
18
18
|
import { a as F } from "./NumberFormatting-Buh7u8Oi.mjs";
|
|
19
|
-
import { f as B,
|
|
19
|
+
import { f as B, D as U } from "./Dialog-CWW597AF.mjs";
|
|
20
20
|
var a = /* @__PURE__ */ ((e) => (e[e.DEBT_TRACK = 1] = "DEBT_TRACK", e[e.SAVINGS_TRACK = 2] = "SAVINGS_TRACK", e[e.RETIREMENT_TRACK = 3] = "RETIREMENT_TRACK", e[e.EMERGENCY_FUND_TRACK = 4] = "EMERGENCY_FUND_TRACK", e))(a || {}), $ = /* @__PURE__ */ ((e) => (e[e.SAVE_AMOUNT = 1] = "SAVE_AMOUNT", e[e.KEEP_BALANCE_BELOW = 2] = "KEEP_BALANCE_BELOW", e[e.KEEP_BALANCE_ABOVE = 3] = "KEEP_BALANCE_ABOVE", e[e.ACTION = 4] = "ACTION", e))($ || {}), l = /* @__PURE__ */ ((e) => (e[e.AUTOMOBILE = 1] = "AUTOMOBILE", e[e.COLLEGE = 2] = "COLLEGE", e[e.HOUSE = 3] = "HOUSE", e[e.RECREATIONAL_VEHICLE = 4] = "RECREATIONAL_VEHICLE", e[e.VACATION = 5] = "VACATION", e[e.ELECTRONIC = 6] = "ELECTRONIC", e[e.OTHER = 7] = "OTHER", e[e.RETIREMENT = 8] = "RETIREMENT", e[e.EMERGENCY_FUND = 9] = "EMERGENCY_FUND", e[e.SETUP_BUDGETS = 10] = "SETUP_BUDGETS", e[e.START_MONEY_MANAGEMENT = 11] = "START_MONEY_MANAGEMENT", e[e.CREDIT_CARD = 12] = "CREDIT_CARD", e[e.LINE_OF_CREDIT = 13] = "LINE_OF_CREDIT", e[e.LOANS = 14] = "LOANS", e))(l || {});
|
|
21
21
|
const at = ({ description: e, label: t, title: o }) => {
|
|
22
22
|
const { config: r } = y(), [n, s] = u.useState(!1);
|
|
@@ -13,7 +13,7 @@ import E from "@mui/material/Stack";
|
|
|
13
13
|
import { H3 as y, P as H, Icon as X, Text as T, H2 as _t, InstitutionLogo as bt } from "@mxenabled/mxui";
|
|
14
14
|
import { ExpandMore as ot, ChevronRight as wt } from "@mxenabled/mx-icons";
|
|
15
15
|
import xt from "@mui/material/Breadcrumbs";
|
|
16
|
-
import { u as V, A as tt, d as ft, p as St, b as It, a as Tt } from "./hooks-
|
|
16
|
+
import { u as V, A as tt, d as ft, p as St, b as It, a as Tt } from "./hooks-D6XlXHf4.mjs";
|
|
17
17
|
import { useTheme as Z } from "@mui/material/styles";
|
|
18
18
|
import { b as s } from "./Localization-2MODESHW.mjs";
|
|
19
19
|
import { E as Et, a as Ct, P as At } from "./Help-DhcC-C05.mjs";
|
|
@@ -21,7 +21,7 @@ import { observer as rt } from "mobx-react-lite";
|
|
|
21
21
|
import at from "@mui/material/Alert";
|
|
22
22
|
import ct from "@mui/material/Snackbar";
|
|
23
23
|
import lt from "@mui/material/TextField";
|
|
24
|
-
import { D as U } from "./Drawer-
|
|
24
|
+
import { D as U } from "./Drawer-kEE73B87.mjs";
|
|
25
25
|
import { L as dt } from "./Loader-DUaFpDGv.mjs";
|
|
26
26
|
import Ot from "@mui/material/ListItemAvatar";
|
|
27
27
|
import Nt from "@mui/material/ListItem";
|