@mx-cartographer/experiences 7.9.2 → 7.9.4
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 +8 -0
- package/dist/{GoalStore-B4LVt_kH.mjs → GoalStore-qiNsUwJa.mjs} +40 -41
- package/dist/{SettingsStore-BHpuyujx.mjs → SettingsStore-uQ4s2d0P.mjs} +1 -1
- package/dist/budgets/index.es.js +293 -293
- package/dist/common/index.es.js +3 -3
- package/dist/common/types/Client.d.ts +1 -0
- package/dist/goals/index.es.js +341 -341
- package/dist/settings/index.es.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## [7.9.4] - 02-04-2026
|
|
2
|
+
|
|
3
|
+
- **UPDATED** - Connect Accounts CTA copy and display condition
|
|
4
|
+
|
|
5
|
+
## [7.9.3] - 02-03-2026
|
|
6
|
+
|
|
7
|
+
- **ADDED** - Client Communications Profile flag for large deposit notification posted
|
|
8
|
+
|
|
1
9
|
## [7.9.2] - 02-04-2026
|
|
2
10
|
|
|
3
11
|
- **FIXED** - Goals name fix in Manage Goals Drawer
|
|
@@ -1,41 +1,40 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as _, jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import E from "react";
|
|
3
3
|
import T from "@mui/material/Button";
|
|
4
4
|
import I from "@mui/material/Card";
|
|
5
5
|
import N from "@mui/material/CardContent";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
6
|
+
import O from "@mui/material/CardHeader";
|
|
7
|
+
import w from "@mui/material/Stack";
|
|
8
8
|
import { AccountBalance as L, ChevronRight as S } from "@mxenabled/mx-icons";
|
|
9
9
|
import { Text as g } from "@mxenabled/mxui";
|
|
10
10
|
import { b as y } from "./GlobalAccountFilter-DQCPNc95.mjs";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { F, A as i } from "./Fetch-DecPFeGU.mjs";
|
|
11
|
+
import { makeAutoObservable as b, runInAction as u } from "mobx";
|
|
12
|
+
import { F as D, A as i } from "./Fetch-DecPFeGU.mjs";
|
|
14
13
|
import { fromUnixTime as R } from "date-fns/fromUnixTime";
|
|
15
|
-
import { addYears as
|
|
16
|
-
import { getUnixTime as
|
|
14
|
+
import { addYears as F } from "date-fns/addYears";
|
|
15
|
+
import { getUnixTime as v } from "date-fns/getUnixTime";
|
|
17
16
|
import { b as d } from "./Localization-2MODESHW.mjs";
|
|
18
|
-
import { a as
|
|
19
|
-
import { f as
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
return /* @__PURE__ */
|
|
23
|
-
/* @__PURE__ */
|
|
17
|
+
import { a as x } from "./NumberFormatting-DjTD0t3W.mjs";
|
|
18
|
+
import { f as K, D as P } from "./Dialog-B4PI-_bL.mjs";
|
|
19
|
+
const rt = ({ description: o, label: t, title: e }) => {
|
|
20
|
+
const [r, a] = E.useState(!1);
|
|
21
|
+
return /* @__PURE__ */ _(E.Fragment, { children: [
|
|
22
|
+
/* @__PURE__ */ _(I, { sx: { m: 24 }, children: [
|
|
24
23
|
/* @__PURE__ */ l(
|
|
25
|
-
|
|
24
|
+
O,
|
|
26
25
|
{
|
|
27
26
|
avatar: /* @__PURE__ */ l(L, {}),
|
|
28
27
|
sx: { ".MuiCardHeader-avatar": { mr: 8 } },
|
|
29
28
|
title: /* @__PURE__ */ l(g, { bold: !0, variant: "Body", children: e })
|
|
30
29
|
}
|
|
31
30
|
),
|
|
32
|
-
/* @__PURE__ */ l(N, { sx: { ":last-child": { pb: 4 }, ml: 28, py: 0 }, children: /* @__PURE__ */
|
|
31
|
+
/* @__PURE__ */ l(N, { sx: { ":last-child": { pb: 4 }, ml: 28, py: 0 }, children: /* @__PURE__ */ _(w, { alignItems: "flex-start", spacing: 2, children: [
|
|
33
32
|
/* @__PURE__ */ l(g, { color: "text.secondary", sx: { textWrap: "wrap" }, variant: "ParagraphSmall", children: o }),
|
|
34
|
-
|
|
33
|
+
/* @__PURE__ */ l(
|
|
35
34
|
T,
|
|
36
35
|
{
|
|
37
36
|
endIcon: /* @__PURE__ */ l(S, {}),
|
|
38
|
-
onClick: () =>
|
|
37
|
+
onClick: () => a(!0),
|
|
39
38
|
sx: {
|
|
40
39
|
pl: 0,
|
|
41
40
|
":hover": {
|
|
@@ -51,18 +50,18 @@ const nt = ({ description: o, label: t, title: e }) => {
|
|
|
51
50
|
/* @__PURE__ */ l(
|
|
52
51
|
y,
|
|
53
52
|
{
|
|
54
|
-
onClose: () =>
|
|
55
|
-
showConnectWidget:
|
|
53
|
+
onClose: () => a(!1),
|
|
54
|
+
showConnectWidget: r,
|
|
56
55
|
title: t
|
|
57
56
|
}
|
|
58
57
|
)
|
|
59
58
|
] });
|
|
60
59
|
};
|
|
61
|
-
var n = /* @__PURE__ */ ((o) => (o[o.DEBT_TRACK = 1] = "DEBT_TRACK", o[o.SAVINGS_TRACK = 2] = "SAVINGS_TRACK", o[o.RETIREMENT_TRACK = 3] = "RETIREMENT_TRACK", o[o.EMERGENCY_FUND_TRACK = 4] = "EMERGENCY_FUND_TRACK", o))(n || {}),
|
|
60
|
+
var n = /* @__PURE__ */ ((o) => (o[o.DEBT_TRACK = 1] = "DEBT_TRACK", o[o.SAVINGS_TRACK = 2] = "SAVINGS_TRACK", o[o.RETIREMENT_TRACK = 3] = "RETIREMENT_TRACK", o[o.EMERGENCY_FUND_TRACK = 4] = "EMERGENCY_FUND_TRACK", o))(n || {}), B = /* @__PURE__ */ ((o) => (o[o.SAVE_AMOUNT = 1] = "SAVE_AMOUNT", o[o.KEEP_BALANCE_BELOW = 2] = "KEEP_BALANCE_BELOW", o[o.KEEP_BALANCE_ABOVE = 3] = "KEEP_BALANCE_ABOVE", o[o.ACTION = 4] = "ACTION", o))(B || {}), c = /* @__PURE__ */ ((o) => (o[o.AUTOMOBILE = 1] = "AUTOMOBILE", o[o.COLLEGE = 2] = "COLLEGE", o[o.HOUSE = 3] = "HOUSE", o[o.RECREATIONAL_VEHICLE = 4] = "RECREATIONAL_VEHICLE", o[o.VACATION = 5] = "VACATION", o[o.ELECTRONIC = 6] = "ELECTRONIC", o[o.OTHER = 7] = "OTHER", o[o.RETIREMENT = 8] = "RETIREMENT", o[o.EMERGENCY_FUND = 9] = "EMERGENCY_FUND", o[o.SETUP_BUDGETS = 10] = "SETUP_BUDGETS", o[o.START_MONEY_MANAGEMENT = 11] = "START_MONEY_MANAGEMENT", o[o.CREDIT_CARD = 12] = "CREDIT_CARD", o[o.LINE_OF_CREDIT = 13] = "LINE_OF_CREDIT", o[o.LOANS = 14] = "LOANS", o))(c || {});
|
|
62
61
|
class A {
|
|
63
62
|
fetchInstance;
|
|
64
63
|
constructor(t, e, r) {
|
|
65
|
-
this.fetchInstance = new
|
|
64
|
+
this.fetchInstance = new D(t, e, void 0, r);
|
|
66
65
|
}
|
|
67
66
|
addGoal = async (t) => this.fetchInstance.post(i.GOALS, t).then((e) => e.goal);
|
|
68
67
|
addRetirementGoal = async (t) => this.fetchInstance.post(i.RETIREMENT_GOALS, t).then((e) => e.retirement_goal);
|
|
@@ -80,7 +79,7 @@ class A {
|
|
|
80
79
|
updateMonthlyCashFlowProfile = async (t) => this.fetchInstance.put(`${i.MONTHLY_CASH_FLOW_PROFILE}`, t).then((e) => e.monthly_cash_flow_profile);
|
|
81
80
|
updateRetirementGoal = async (t) => this.fetchInstance.put(`${i.RETIREMENT_GOALS}/${t.guid}`, t).then((e) => e.retirement_goal);
|
|
82
81
|
}
|
|
83
|
-
function
|
|
82
|
+
function at(o, t) {
|
|
84
83
|
const e = t.track_type === n.DEBT_TRACK ? t.initial_amount : t.amount;
|
|
85
84
|
let r = t.current_amount / e;
|
|
86
85
|
r > 1 && (r = 1), r = t.track_type === n.DEBT_TRACK ? 1 - r : r, isNaN(r) && (r = 1);
|
|
@@ -92,10 +91,10 @@ function it(o, t) {
|
|
|
92
91
|
maximumFractionDigits: 0
|
|
93
92
|
}, m = t.is_complete ? t.completed_at : t.projected_to_complete_at, f = m ? R(m) : /* @__PURE__ */ new Date(), C = d(
|
|
94
93
|
o.goal_percentage,
|
|
95
|
-
|
|
94
|
+
x(r, h)
|
|
96
95
|
), p = d(
|
|
97
96
|
t.is_complete ? o.completed_label : o.goal_projection,
|
|
98
|
-
|
|
97
|
+
K(f, P.MONTH_SHORT_YEAR)
|
|
99
98
|
);
|
|
100
99
|
return {
|
|
101
100
|
backgroundColor: a,
|
|
@@ -105,7 +104,7 @@ function it(o, t) {
|
|
|
105
104
|
projectedText: p
|
|
106
105
|
};
|
|
107
106
|
}
|
|
108
|
-
function
|
|
107
|
+
function nt(o) {
|
|
109
108
|
return [
|
|
110
109
|
{
|
|
111
110
|
bgcolor: "chart.chart1",
|
|
@@ -158,7 +157,7 @@ function st(o) {
|
|
|
158
157
|
}
|
|
159
158
|
];
|
|
160
159
|
}
|
|
161
|
-
const
|
|
160
|
+
const it = (o, t) => {
|
|
162
161
|
switch (o) {
|
|
163
162
|
case n.DEBT_TRACK:
|
|
164
163
|
return d(t.zero_state_ongoing, "debt");
|
|
@@ -168,10 +167,10 @@ const ct = (o, t) => {
|
|
|
168
167
|
return d(t.zero_state_ongoing, "retirement");
|
|
169
168
|
}
|
|
170
169
|
}, G = (o, t) => {
|
|
171
|
-
const e = R(t), r =
|
|
172
|
-
return
|
|
170
|
+
const e = R(t), r = F(e, o);
|
|
171
|
+
return v(r);
|
|
173
172
|
};
|
|
174
|
-
class
|
|
173
|
+
class st {
|
|
175
174
|
globalStore;
|
|
176
175
|
api = new A("/", "");
|
|
177
176
|
goals = [];
|
|
@@ -186,7 +185,7 @@ class lt {
|
|
|
186
185
|
alert = "";
|
|
187
186
|
selectedGoal = void 0;
|
|
188
187
|
constructor(t) {
|
|
189
|
-
this.globalStore = t, this.api = new A(t.endpoint, t.sessionToken, t.onError),
|
|
188
|
+
this.globalStore = t, this.api = new A(t.endpoint, t.sessionToken, t.onError), b(this);
|
|
190
189
|
}
|
|
191
190
|
get allGoals() {
|
|
192
191
|
if (!this.isAllGoalDataLoaded) return [];
|
|
@@ -318,7 +317,7 @@ class lt {
|
|
|
318
317
|
addRetirementGoalAccount = async (t) => {
|
|
319
318
|
try {
|
|
320
319
|
const e = await this.api.addRetirementGoalAccount(t);
|
|
321
|
-
|
|
320
|
+
u(() => {
|
|
322
321
|
this.retirementGoalAccounts = [...this.retirementGoalAccounts, e];
|
|
323
322
|
});
|
|
324
323
|
} catch (e) {
|
|
@@ -360,7 +359,7 @@ class lt {
|
|
|
360
359
|
reorderGoals = async (t) => {
|
|
361
360
|
try {
|
|
362
361
|
const e = await this.api.reorderGoals(t);
|
|
363
|
-
|
|
362
|
+
u(() => {
|
|
364
363
|
for (const r of e) {
|
|
365
364
|
const a = this.goals.findIndex((s) => s.guid === r.guid);
|
|
366
365
|
a >= 0 && (this.goals[a].position = r.position);
|
|
@@ -378,7 +377,7 @@ class lt {
|
|
|
378
377
|
updateGoal = async (t) => {
|
|
379
378
|
try {
|
|
380
379
|
const e = await this.api.updateGoal(t);
|
|
381
|
-
|
|
380
|
+
u(() => {
|
|
382
381
|
const r = this.goals.findIndex((a) => a.guid === t.guid);
|
|
383
382
|
r >= 0 && (this.goals[r] = e), this.selectedGoal?.guid === t.guid && this.setSelectedGoal(e);
|
|
384
383
|
});
|
|
@@ -392,7 +391,7 @@ class lt {
|
|
|
392
391
|
...t,
|
|
393
392
|
target_amount: t.amount
|
|
394
393
|
});
|
|
395
|
-
|
|
394
|
+
u(() => {
|
|
396
395
|
const r = this.retirementGoals.findIndex((a) => a.guid === t.guid);
|
|
397
396
|
r >= 0 && (this.retirementGoals[r] = e), this.selectedGoal?.guid === t.guid && this.setSelectedGoal(this.allGoals.find((a) => a.guid === t.guid));
|
|
398
397
|
});
|
|
@@ -410,13 +409,13 @@ class lt {
|
|
|
410
409
|
};
|
|
411
410
|
}
|
|
412
411
|
export {
|
|
413
|
-
|
|
414
|
-
|
|
412
|
+
rt as C,
|
|
413
|
+
B as G,
|
|
415
414
|
c as M,
|
|
416
415
|
n as T,
|
|
417
|
-
|
|
418
|
-
|
|
416
|
+
it as a,
|
|
417
|
+
nt as b,
|
|
419
418
|
A as c,
|
|
420
|
-
|
|
421
|
-
|
|
419
|
+
st as d,
|
|
420
|
+
at as g
|
|
422
421
|
};
|
|
@@ -99,7 +99,7 @@ class x {
|
|
|
99
99
|
get accountProfiles() {
|
|
100
100
|
const e = this.globalStore.appDataStore.clientCommunicationProfile;
|
|
101
101
|
return this.detailedNotificationProfiles.filter(
|
|
102
|
-
(t) => t.notification_type === n.DebtPaymentReminder && e.debt_payment_reminder_notifications_enabled || t.notification_type === n.AccountBalanceLow && e.low_balance_notifications_enabled || t.notification_type === n.AccountDepositLarge && e.large_deposit_notifications_enabled || t.notification_type === n.TransactionExpenseLarge && e.large_expense_notifications_enabled || t.notification_type === n.TransactionFeeCharge && e.transaction_fee_notifications_enabled || t.notification_type === n.InternationalTransaction && e.transaction_is_international_notifications_enabled || t.notification_type === n.AccountDepositLargePosted && e.
|
|
102
|
+
(t) => t.notification_type === n.DebtPaymentReminder && e.debt_payment_reminder_notifications_enabled || t.notification_type === n.AccountBalanceLow && e.low_balance_notifications_enabled || t.notification_type === n.AccountDepositLarge && e.large_deposit_notifications_enabled || t.notification_type === n.TransactionExpenseLarge && e.large_expense_notifications_enabled || t.notification_type === n.TransactionFeeCharge && e.transaction_fee_notifications_enabled || t.notification_type === n.InternationalTransaction && e.transaction_is_international_notifications_enabled || t.notification_type === n.AccountDepositLargePosted && e.large_deposit_posted_notifications_enabled
|
|
103
103
|
);
|
|
104
104
|
}
|
|
105
105
|
get budgetProfiles() {
|