@mx-cartographer/experiences 7.2.17 → 7.2.19-alpha.sms1
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 +14 -0
- package/dist/{AccountDetailsContent-CsH1w_GZ.mjs → AccountDetailsContent-lnLfEC2C.mjs} +1 -1
- package/dist/{ManageIncome-CsCM4rNt.mjs → ManageIncome-Dk25_VxX.mjs} +1 -1
- package/dist/{NotificationStore-C6PH6MKm.mjs → NotificationStore-86g0bKKR.mjs} +11 -11
- package/dist/{RecurringSettings-DZu2hw1r.mjs → RecurringSettings-kt3yHC1m.mjs} +1 -1
- package/dist/{TransactionDetails-CDtya0KS.mjs → TransactionDetails-CFKOzFKe.mjs} +1 -1
- package/dist/accounts/index.es.js +2 -2
- package/dist/budgets/index.es.js +3 -12
- package/dist/cashflow/index.es.js +3 -3
- package/dist/common/index.es.js +261 -251
- package/dist/common/stores/GlobalStore.d.ts +4 -1
- package/dist/finstrong/index.es.js +1 -1
- package/dist/goals/index.es.js +1 -1
- package/dist/notifications/index.es.js +37 -37
- package/dist/recurringtransactions/index.es.js +4 -4
- package/dist/spending/index.es.js +1 -1
- package/dist/transactions/index.es.js +2 -2
- package/dist/trends/index.es.js +1 -1
- package/package.json +1 -1
|
@@ -36,11 +36,13 @@ interface LoadDataProps {
|
|
|
36
36
|
transactions?: Transaction[];
|
|
37
37
|
userFeatures?: UserFeature[];
|
|
38
38
|
}
|
|
39
|
+
type OnStoreUpdate = (update: any) => void;
|
|
39
40
|
export declare class GlobalStore {
|
|
40
41
|
appConfig: AppConfig;
|
|
41
42
|
endpoint: string;
|
|
42
43
|
sessionToken: string;
|
|
43
44
|
onError?: GlobalErrorHandler;
|
|
45
|
+
onStoreUpdate?: OnStoreUpdate;
|
|
44
46
|
accountStore: AccountStore;
|
|
45
47
|
appDataStore: AppDataStore;
|
|
46
48
|
analyticsStore: AnalyticsStore;
|
|
@@ -64,8 +66,9 @@ export declare class GlobalStore {
|
|
|
64
66
|
trendsStore: TrendsStore;
|
|
65
67
|
userStore: UserStore;
|
|
66
68
|
globalUiStore: GlobalUiStore;
|
|
67
|
-
constructor(appConfig?: AppConfig, endpoint?: string, onError?: GlobalErrorHandler);
|
|
69
|
+
constructor(appConfig?: AppConfig, endpoint?: string, onError?: GlobalErrorHandler, onStoreUpdate?: OnStoreUpdate);
|
|
68
70
|
get isInitialized(): boolean;
|
|
71
|
+
emitUpdate: (change: any) => void;
|
|
69
72
|
loadData: ({ accounts, appData, associatedBeats, categories, institutions, transactionRules, transactions, userFeatures, }?: LoadDataProps) => Promise<void>;
|
|
70
73
|
}
|
|
71
74
|
export {};
|
|
@@ -30,7 +30,7 @@ import Ve from "@mui/material/AccordionSummary";
|
|
|
30
30
|
import Ye from "@mui/material/CardHeader";
|
|
31
31
|
import { u as qe } from "../useDimensions-27p2evRx.mjs";
|
|
32
32
|
import { C as Je } from "../ConnectionsDrawer-BDvVuJQf.mjs";
|
|
33
|
-
import { R as Qe } from "../RecurringSettings-
|
|
33
|
+
import { R as Qe } from "../RecurringSettings-kt3yHC1m.mjs";
|
|
34
34
|
import Ze from "@mui/material/TextField";
|
|
35
35
|
import { u as Se } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
36
36
|
import { a as et } from "../Dialog-CWW597AF.mjs";
|
package/dist/goals/index.es.js
CHANGED
|
@@ -39,7 +39,7 @@ import ot from "@mui/material/Collapse";
|
|
|
39
39
|
import at from "@mui/material/ListItemIcon";
|
|
40
40
|
import rt from "@mui/material/Checkbox";
|
|
41
41
|
import { u as it, A as st } from "../AccountDetailsHeader-Df1JkzYi.mjs";
|
|
42
|
-
import { A as lt } from "../AccountDetailsContent-
|
|
42
|
+
import { A as lt } from "../AccountDetailsContent-lnLfEC2C.mjs";
|
|
43
43
|
import { u as ct } from "../useAccountDisplayName-jS05A6-6.mjs";
|
|
44
44
|
import Ke from "@mui/material/TextField";
|
|
45
45
|
import { M as dt, I as mt, O as ut } from "../OriginalBalanceAction-CWuVvRq9.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { A as f, B as b } from "../ToggleListItem-r0Kx56wF.mjs";
|
|
2
2
|
import { A as _ } from "../Fetch-87LIQbEA.mjs";
|
|
3
|
-
import { s as L } from "../NotificationStore-
|
|
4
|
-
import { N as Nt, f as St } from "../NotificationStore-
|
|
3
|
+
import { s as L } from "../NotificationStore-86g0bKKR.mjs";
|
|
4
|
+
import { N as Nt, f as St } from "../NotificationStore-86g0bKKR.mjs";
|
|
5
5
|
import { jsx as t, jsxs as d, Fragment as x } from "react/jsx-runtime";
|
|
6
6
|
import k, { useEffect as A } from "react";
|
|
7
7
|
import { observer as p } from "mobx-react-lite";
|
|
@@ -19,8 +19,8 @@ import { L as w } from "../Loader-DUaFpDGv.mjs";
|
|
|
19
19
|
import $ from "@mui/material/IconButton";
|
|
20
20
|
import { N as H } from "../NotificationSettings-5i3IywCi.mjs";
|
|
21
21
|
import { D as C } from "../Drawer-kEE73B87.mjs";
|
|
22
|
-
const yt = (
|
|
23
|
-
switch (
|
|
22
|
+
const yt = (i) => {
|
|
23
|
+
switch (i) {
|
|
24
24
|
case b.BudgetExceeded:
|
|
25
25
|
case b.BudgetOffTarget:
|
|
26
26
|
return _.BUDGETS;
|
|
@@ -35,8 +35,8 @@ const yt = (e) => {
|
|
|
35
35
|
default:
|
|
36
36
|
return null;
|
|
37
37
|
}
|
|
38
|
-
}, M = ({ date:
|
|
39
|
-
const { accounts: o } = E(), { budgets:
|
|
38
|
+
}, M = ({ date: i }) => /* @__PURE__ */ t(y, { sx: { display: "flex", justifyContent: "center", mt: 12, py: 8 }, children: /* @__PURE__ */ t(m, { bold: !0, variant: "Small", children: I(i) }) }), V = ({ notification: i }) => {
|
|
39
|
+
const { accounts: o } = E(), { budgets: s } = j(), { accounts: a } = g(), e = o.find((l) => l.guid === i.entity_guid), r = s.find((l) => l.guid === i.entity_guid), u = i.entity_guid.includes("GOL"), c = {
|
|
40
40
|
badge: {
|
|
41
41
|
display: "flex",
|
|
42
42
|
alignItems: "center",
|
|
@@ -45,16 +45,16 @@ const yt = (e) => {
|
|
|
45
45
|
marginRight: 12
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
|
-
return
|
|
48
|
+
return e || u ? /* @__PURE__ */ t("div", { style: c.badge, children: /* @__PURE__ */ t(
|
|
49
49
|
T,
|
|
50
50
|
{
|
|
51
|
-
alt:
|
|
52
|
-
institutionGuid:
|
|
51
|
+
alt: e?.institutionName || a.institution_logo_alt,
|
|
52
|
+
institutionGuid: e?.institution_guid ?? "",
|
|
53
53
|
size: 33
|
|
54
54
|
}
|
|
55
55
|
) }) : /* @__PURE__ */ t("div", { style: c.badge, children: /* @__PURE__ */ t(R, { categoryGuid: r?.category_guid, size: 36 }) });
|
|
56
|
-
}, X = p(V), Y = ({ notification:
|
|
57
|
-
const { updateNotification:
|
|
56
|
+
}, X = p(V), Y = ({ notification: i, onClick: o }) => {
|
|
57
|
+
const { updateNotification: s } = N(), a = O(), e = {
|
|
58
58
|
card: {
|
|
59
59
|
alignItems: "center",
|
|
60
60
|
cursor: "pointer",
|
|
@@ -63,14 +63,14 @@ const yt = (e) => {
|
|
|
63
63
|
paddingX: 24,
|
|
64
64
|
paddingY: 12,
|
|
65
65
|
"&:focus": {
|
|
66
|
-
backgroundColor:
|
|
66
|
+
backgroundColor: a.palette.background.default
|
|
67
67
|
},
|
|
68
68
|
"&:hover": {
|
|
69
|
-
backgroundColor:
|
|
69
|
+
backgroundColor: a.palette.background.default
|
|
70
70
|
}
|
|
71
71
|
},
|
|
72
72
|
dot: {
|
|
73
|
-
backgroundColor:
|
|
73
|
+
backgroundColor: a.palette.primary.main,
|
|
74
74
|
borderRadius: "100%",
|
|
75
75
|
flex: "0 0 auto",
|
|
76
76
|
marginLeft: -8,
|
|
@@ -80,14 +80,14 @@ const yt = (e) => {
|
|
|
80
80
|
}
|
|
81
81
|
};
|
|
82
82
|
return /* @__PURE__ */ d(G, { onClick: () => {
|
|
83
|
-
o(
|
|
84
|
-
}, sx:
|
|
85
|
-
|
|
86
|
-
/* @__PURE__ */ t(X, { notification:
|
|
87
|
-
/* @__PURE__ */ t(m, { bold: !
|
|
83
|
+
o(i), s({ ...i, has_been_viewed: !0 }).finally();
|
|
84
|
+
}, sx: e.card, children: [
|
|
85
|
+
i.has_been_viewed ? null : /* @__PURE__ */ t("div", { "data-testid": "new-message-dot", style: e.dot }),
|
|
86
|
+
/* @__PURE__ */ t(X, { notification: i }),
|
|
87
|
+
/* @__PURE__ */ t(m, { bold: !i.has_been_viewed, truncate: !1, variant: "Small", children: i.content })
|
|
88
88
|
] });
|
|
89
89
|
}, q = p(
|
|
90
|
-
({ onManageNotifications:
|
|
90
|
+
({ onManageNotifications: i }) => {
|
|
91
91
|
const { notifications: o } = g();
|
|
92
92
|
return /* @__PURE__ */ d(W, { sx: { alignItems: "center", height: "95%", justifyContent: "center" }, children: [
|
|
93
93
|
/* @__PURE__ */ t(U, { name: "notifications", size: 32 }),
|
|
@@ -106,20 +106,20 @@ const yt = (e) => {
|
|
|
106
106
|
children: o.notification_empty_state.notification_description
|
|
107
107
|
}
|
|
108
108
|
),
|
|
109
|
-
/* @__PURE__ */ t(P, { onClick:
|
|
109
|
+
/* @__PURE__ */ t(P, { onClick: i, sx: { p: "12px 16px" }, variant: "outlined", children: o.notification_empty_state.manage_notifications })
|
|
110
110
|
] });
|
|
111
111
|
}
|
|
112
|
-
), J = ({ onClick:
|
|
113
|
-
const { isLoading:
|
|
114
|
-
|
|
112
|
+
), J = ({ onClick: i, onManageNotifications: o }) => {
|
|
113
|
+
const { isLoading: s, loadNotifications: a, newNotifications: e, markAllAsViewed: r } = N(), { notifications: u } = g(), { isCopyLoaded: c } = S(), l = (n) => {
|
|
114
|
+
i?.(n);
|
|
115
115
|
};
|
|
116
|
-
return A(() =>
|
|
117
|
-
r().finally();
|
|
118
|
-
}
|
|
119
|
-
(!c ||
|
|
120
|
-
c && !
|
|
121
|
-
/* @__PURE__ */ t(B, { sx: { p: 16 }, children: c && !
|
|
122
|
-
const v = L(h,
|
|
116
|
+
return A(() => {
|
|
117
|
+
a().finally(), r().finally();
|
|
118
|
+
}, [a, r]), /* @__PURE__ */ d(x, { children: [
|
|
119
|
+
(!c || s) && /* @__PURE__ */ t(w, { label: u?.loading, size: 40 }),
|
|
120
|
+
c && !s && e.length === 0 && /* @__PURE__ */ t(q, { onManageNotifications: o }),
|
|
121
|
+
/* @__PURE__ */ t(B, { sx: { p: 16 }, children: c && !s && e.slice().sort((n, h) => h.delivered_at - n.delivered_at).map((n, h) => {
|
|
122
|
+
const v = L(h, e);
|
|
123
123
|
return /* @__PURE__ */ d(y, { sx: { mb: 12 }, children: [
|
|
124
124
|
v && /* @__PURE__ */ d(y, { sx: { mb: 12 }, children: [
|
|
125
125
|
/* @__PURE__ */ t(M, { date: n.delivered_at }),
|
|
@@ -130,15 +130,15 @@ const yt = (e) => {
|
|
|
130
130
|
}) })
|
|
131
131
|
] });
|
|
132
132
|
}, K = p(J), bt = p(
|
|
133
|
-
({ notificationTypes:
|
|
134
|
-
const { config:
|
|
133
|
+
({ notificationTypes: i, isOpen: o, onClose: s, onNotificationClick: a }) => {
|
|
134
|
+
const { config: e } = z(), { notifications: r, settings: u } = g(), { isCopyLoaded: c } = S(), [l, n] = k.useState(!1);
|
|
135
135
|
return c ? /* @__PURE__ */ d(x, { children: [
|
|
136
136
|
/* @__PURE__ */ d(
|
|
137
137
|
C,
|
|
138
138
|
{
|
|
139
139
|
ariaLabelClose: r.close_notifications,
|
|
140
140
|
isOpen: o,
|
|
141
|
-
onClose:
|
|
141
|
+
onClose: s,
|
|
142
142
|
title: r.notifications_title,
|
|
143
143
|
children: [
|
|
144
144
|
/* @__PURE__ */ t(
|
|
@@ -157,7 +157,7 @@ const yt = (e) => {
|
|
|
157
157
|
/* @__PURE__ */ t(
|
|
158
158
|
K,
|
|
159
159
|
{
|
|
160
|
-
onClick:
|
|
160
|
+
onClick: a,
|
|
161
161
|
onManageNotifications: () => n(!0)
|
|
162
162
|
}
|
|
163
163
|
)
|
|
@@ -174,8 +174,8 @@ const yt = (e) => {
|
|
|
174
174
|
children: /* @__PURE__ */ t(
|
|
175
175
|
H,
|
|
176
176
|
{
|
|
177
|
-
notificationTypes:
|
|
178
|
-
showPersonalDetails: !
|
|
177
|
+
notificationTypes: i,
|
|
178
|
+
showPersonalDetails: !e.display_user_profile_in_settings
|
|
179
179
|
}
|
|
180
180
|
)
|
|
181
181
|
}
|
|
@@ -8,8 +8,8 @@ import { startOfToday as ue } from "date-fns/startOfToday";
|
|
|
8
8
|
import { subDays as me } from "date-fns/subDays";
|
|
9
9
|
import ae from "@mui/material/Skeleton";
|
|
10
10
|
import c from "@mui/material/Stack";
|
|
11
|
-
import { R as Ee } from "../RecurringSettings-
|
|
12
|
-
import { M as Gn } from "../RecurringSettings-
|
|
11
|
+
import { R as Ee } from "../RecurringSettings-kt3yHC1m.mjs";
|
|
12
|
+
import { M as Gn } from "../RecurringSettings-kt3yHC1m.mjs";
|
|
13
13
|
import { addMonths as ze } from "date-fns/addMonths";
|
|
14
14
|
import { subMonths as Fe } from "date-fns/subMonths";
|
|
15
15
|
import { isBefore as Ue } from "date-fns/isBefore";
|
|
@@ -41,8 +41,8 @@ import lt from "@mui/material/ListSubheader";
|
|
|
41
41
|
import dt from "@mui/material/ListItemAvatar";
|
|
42
42
|
import ut from "@mui/material/ListItemButton";
|
|
43
43
|
import mt from "@mui/material/ListItemText";
|
|
44
|
-
import { b as pt } from "../ManageIncome-
|
|
45
|
-
import { c as Wn, M as $n, S as Pn } from "../ManageIncome-
|
|
44
|
+
import { b as pt } from "../ManageIncome-Dk25_VxX.mjs";
|
|
45
|
+
import { c as Wn, M as $n, S as Pn } from "../ManageIncome-Dk25_VxX.mjs";
|
|
46
46
|
import { f as A } from "../NumberFormatting-Buh7u8Oi.mjs";
|
|
47
47
|
import { D as xe } from "../Drawer-kEE73B87.mjs";
|
|
48
48
|
import { b as O } from "../Localization-2MODESHW.mjs";
|
|
@@ -21,7 +21,7 @@ import { D as Dt } from "../Donut-oaQFlbit.mjs";
|
|
|
21
21
|
import { L as F } from "../Loader-DUaFpDGv.mjs";
|
|
22
22
|
import { M as xt } from "../MiniWidgetContainer-D0gfmbaF.mjs";
|
|
23
23
|
import { startOfToday as q } from "date-fns/startOfToday";
|
|
24
|
-
import { T as wt, a as vt } from "../TransactionDetails-
|
|
24
|
+
import { T as wt, a as vt } from "../TransactionDetails-CFKOzFKe.mjs";
|
|
25
25
|
import It from "@mui/material/Collapse";
|
|
26
26
|
import B from "@mui/material/Divider";
|
|
27
27
|
import J from "@mui/material/List";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { T as Aa } from "../TransactionApi-B3Tksf7L.mjs";
|
|
2
|
-
import { u as P, C as Pe, D as $e, M as Ve, c as We, T as Ge, a as Ue } from "../TransactionDetails-
|
|
3
|
-
import { B as xa, d as wa, b as Ia } from "../TransactionDetails-
|
|
2
|
+
import { u as P, C as Pe, D as $e, M as Ve, c as We, T as Ge, a as Ue } from "../TransactionDetails-CFKOzFKe.mjs";
|
|
3
|
+
import { B as xa, d as wa, b as Ia } from "../TransactionDetails-CFKOzFKe.mjs";
|
|
4
4
|
import { T as M } from "../User-BQUxBeZV.mjs";
|
|
5
5
|
import { O as Da } from "../User-BQUxBeZV.mjs";
|
|
6
6
|
import { S as ae, D as Fe } from "../TransactionStore-hfOsBbDt.mjs";
|
package/dist/trends/index.es.js
CHANGED
|
@@ -22,7 +22,7 @@ import { H as Ie } from "../HeaderCell-DjuifqHJ.mjs";
|
|
|
22
22
|
import { T as M, b as ft } from "../ViewMoreMicroCard-SCn2wt4i.mjs";
|
|
23
23
|
import { A as _, W as ke } from "../WidgetContainer-EbrN1oIo.mjs";
|
|
24
24
|
import { c as Tt } from "../Category-CevNQ03n.mjs";
|
|
25
|
-
import { a as Ne, T as He } from "../TransactionDetails-
|
|
25
|
+
import { a as Ne, T as He } from "../TransactionDetails-CFKOzFKe.mjs";
|
|
26
26
|
import { D as Ce } from "../Drawer-kEE73B87.mjs";
|
|
27
27
|
import { L as Q } from "../Loader-DUaFpDGv.mjs";
|
|
28
28
|
import { useTheme as We } from "@mui/material/styles";
|