@mx-cartographer/experiences 7.10.29 → 7.10.31

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 (32) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/{BudgetUtil-DKNyjCWc.mjs → BudgetUtil-CHDuDNhl.mjs} +69 -71
  3. package/dist/{ExportCsvAction-8uWKc_e2.mjs → ExportCsvAction-BqNTIBjm.mjs} +2 -2
  4. package/dist/{ManageIncome-BtOMmeKb.mjs → ManageIncome-D4cGc1Cf.mjs} +3 -3
  5. package/dist/{NotificationStore-Ck2KdNmT.mjs → NotificationStore-CA8WNgcR.mjs} +5 -5
  6. package/dist/{RecurringSettings-DOgdSycO.mjs → RecurringSettings-ByBydHsL.mjs} +1 -1
  7. package/dist/StatusIndicator-0iX3Gnnu.mjs +55 -0
  8. package/dist/{Transaction-RmKYEKSk.mjs → Transaction-BiOMLCAA.mjs} +4 -3
  9. package/dist/{TransactionDetails-BYKl7pix.mjs → TransactionDetails-B0nANRl-.mjs} +2 -2
  10. package/dist/{TransactionList-Dxi733-M.mjs → TransactionList-CmZSDhKW.mjs} +1 -1
  11. package/dist/{TransactionStore-B-fc3CsB.mjs → TransactionStore-DoBXsvqm.mjs} +2 -2
  12. package/dist/accounts/index.es.js +2 -2
  13. package/dist/budgets/components/BudgetDetailsDrawerV2.d.ts +2 -1
  14. package/dist/budgets/index.es.js +759 -740
  15. package/dist/cashflow/index.es.js +3 -3
  16. package/dist/common/components/CurrencyDialog.d.ts +1 -1
  17. package/dist/common/index.es.js +8 -8
  18. package/dist/common/types/localization/BudgetsCopy.d.ts +1 -0
  19. package/dist/{exportTransactionsToCSV-RUWymyA3.mjs → exportTransactionsToCSV-YO3xewit.mjs} +1 -1
  20. package/dist/finstrong/index.es.js +3 -3
  21. package/dist/insights/components/insights/CategorySpendingV2/types/CategorySpendingV2.d.ts +1 -0
  22. package/dist/insights/components/shared/ChartDrawerTemplate/ChartDrawerTemplate.d.ts +2 -1
  23. package/dist/insights/components/shared/ChartTransactionWithDrillDown.d.ts +2 -1
  24. package/dist/insights/components/shared/StatusIndicator.d.ts +1 -1
  25. package/dist/insights/index.es.js +698 -690
  26. package/dist/notifications/index.es.js +33 -33
  27. package/dist/recurringtransactions/index.es.js +4 -4
  28. package/dist/spending/index.es.js +3 -3
  29. package/dist/transactions/index.es.js +10 -10
  30. package/dist/trends/index.es.js +3 -3
  31. package/package.json +1 -1
  32. package/dist/StatusIndicator-yCwjN_ky.mjs +0 -55
@@ -1,7 +1,7 @@
1
1
  import { A as f, B as y } from "../Notification-Bs1fdbzI.mjs";
2
2
  import { A as g } from "../Fetch-DecPFeGU.mjs";
3
- import { s as k } from "../NotificationStore-Ck2KdNmT.mjs";
4
- import { N as xt, f as Nt } from "../NotificationStore-Ck2KdNmT.mjs";
3
+ import { s as k } from "../NotificationStore-CA8WNgcR.mjs";
4
+ import { N as xt, f as Nt } from "../NotificationStore-CA8WNgcR.mjs";
5
5
  import { jsx as t, jsxs as l, Fragment as C } from "react/jsx-runtime";
6
6
  import v, { useEffect as L } from "react";
7
7
  import { observer as p } from "mobx-react-lite";
@@ -36,7 +36,7 @@ const _t = (e) => {
36
36
  return null;
37
37
  }
38
38
  }, H = ({ date: e }) => /* @__PURE__ */ t(h, { sx: { display: "flex", justifyContent: "center", mt: 12, py: 8 }, children: /* @__PURE__ */ t(m, { bold: !0, variant: "Small", children: I(e) }) }), M = ({ notification: e }) => {
39
- const { accounts: n } = G(), { budgets: r } = E(), { accounts: a } = _(), o = n.find((i) => i.guid === e.entity_guid), s = r.find((i) => i.guid === e.entity_guid), d = e.entity_guid.includes("GOL"), u = {
39
+ const { accounts: o } = G(), { budgets: r } = E(), { accounts: s } = _(), n = o.find((i) => i.guid === e.entity_guid), a = r.find((i) => i.guid === e.entity_guid), d = e.entity_guid.includes("GOL"), u = {
40
40
  badge: {
41
41
  display: "flex",
42
42
  alignItems: "center",
@@ -45,16 +45,16 @@ const _t = (e) => {
45
45
  marginRight: 12
46
46
  }
47
47
  };
48
- return o || d ? /* @__PURE__ */ t("div", { style: u.badge, children: /* @__PURE__ */ t(
48
+ return n || d ? /* @__PURE__ */ t("div", { style: u.badge, children: /* @__PURE__ */ t(
49
49
  B,
50
50
  {
51
- alt: o?.institutionName || a.institution_logo_alt,
52
- institutionGuid: o?.institution_guid ?? "",
51
+ alt: n?.institutionName || s.institution_logo_alt,
52
+ institutionGuid: n?.institution_guid ?? "",
53
53
  size: 33
54
54
  }
55
- ) }) : /* @__PURE__ */ t("div", { style: u.badge, children: /* @__PURE__ */ t(T, { categoryGuid: s?.category_guid, size: 36 }) });
56
- }, V = p(M), X = ({ notification: e, onClick: n }) => {
57
- const { updateNotification: r } = x(), a = R(), o = {
55
+ ) }) : /* @__PURE__ */ t("div", { style: u.badge, children: /* @__PURE__ */ t(T, { categoryGuid: a?.category_guid, size: 36 }) });
56
+ }, V = p(M), X = ({ notification: e, onClick: o }) => {
57
+ const { updateNotification: r } = x(), s = R(), n = {
58
58
  card: {
59
59
  alignItems: "center",
60
60
  cursor: "pointer",
@@ -63,14 +63,14 @@ const _t = (e) => {
63
63
  paddingX: 24,
64
64
  paddingY: 12,
65
65
  "&:focus": {
66
- backgroundColor: a.palette.background.default
66
+ backgroundColor: s.palette.background.default
67
67
  },
68
68
  "&:hover": {
69
- backgroundColor: a.palette.background.default
69
+ backgroundColor: s.palette.background.default
70
70
  }
71
71
  },
72
72
  dot: {
73
- backgroundColor: a.palette.primary.main,
73
+ backgroundColor: s.palette.primary.main,
74
74
  borderRadius: "100%",
75
75
  flex: "0 0 auto",
76
76
  marginLeft: -8,
@@ -80,18 +80,18 @@ const _t = (e) => {
80
80
  }
81
81
  };
82
82
  return /* @__PURE__ */ l(O, { onClick: () => {
83
- n(e), r({ ...e, has_been_viewed: !0 }).finally();
84
- }, sx: o.card, children: [
85
- e.has_been_viewed ? null : /* @__PURE__ */ t("div", { "data-testid": "new-message-dot", style: o.dot }),
83
+ o(e), r({ ...e, has_been_viewed: !0 }).finally();
84
+ }, sx: n.card, children: [
85
+ e.has_been_viewed ? null : /* @__PURE__ */ t("div", { "data-testid": "new-message-dot", style: n.dot }),
86
86
  /* @__PURE__ */ t(V, { notification: e }),
87
87
  /* @__PURE__ */ t(m, { bold: !e.has_been_viewed, truncate: !1, variant: "Small", children: e.content })
88
88
  ] });
89
89
  }, Y = p(
90
90
  ({ onManageNotifications: e }) => {
91
- const { notifications: n } = _();
91
+ const { notifications: o } = _();
92
92
  return /* @__PURE__ */ l(P, { sx: { alignItems: "center", height: "95%", justifyContent: "center" }, children: [
93
93
  /* @__PURE__ */ t(z, { name: "notifications", size: 32 }),
94
- /* @__PURE__ */ t(m, { sx: { pt: 32 }, variant: "H3", children: n.notification_empty_state.no_new_notifications }),
94
+ /* @__PURE__ */ t(m, { sx: { pt: 32 }, variant: "H3", children: o.notification_empty_state.no_new_notifications }),
95
95
  /* @__PURE__ */ t(
96
96
  m,
97
97
  {
@@ -103,22 +103,22 @@ const _t = (e) => {
103
103
  whiteSpace: "normal"
104
104
  },
105
105
  variant: "subtitle1",
106
- children: n.notification_empty_state.notification_description
106
+ children: o.notification_empty_state.notification_description
107
107
  }
108
108
  ),
109
- /* @__PURE__ */ t(F, { onClick: e, sx: { p: "12px 16px" }, variant: "outlined", children: n.notification_empty_state.manage_notifications })
109
+ /* @__PURE__ */ t(F, { onClick: e, sx: { p: "12px 16px" }, variant: "outlined", children: o.notification_empty_state.manage_notifications })
110
110
  ] });
111
111
  }
112
- ), q = ({ onClick: e, onManageNotifications: n }) => {
113
- const { isLoading: r, loadNotifications: a, newNotifications: o, markAllAsViewed: s } = x(), { isInitialized: d } = N(), u = (i) => {
112
+ ), q = ({ onClick: e, onManageNotifications: o }) => {
113
+ const { isLoading: r, loadNotifications: s, markAllAsViewed: n, recentNotifications: a } = x(), { isInitialized: d } = N(), u = (i) => {
114
114
  e?.(i);
115
115
  };
116
116
  return L(() => {
117
- a().then(() => s()).finally();
117
+ s().then(() => n()).finally();
118
118
  }, []), !d || r ? /* @__PURE__ */ t(S, {}) : /* @__PURE__ */ l(C, { children: [
119
- o.length === 0 && /* @__PURE__ */ t(Y, { onManageNotifications: n }),
120
- /* @__PURE__ */ t(D, { sx: { p: 16 }, children: o.slice().sort((i, c) => c.delivered_at - i.delivered_at).map((i, c) => {
121
- const w = k(c, o);
119
+ a.length === 0 && /* @__PURE__ */ t(Y, { onManageNotifications: o }),
120
+ /* @__PURE__ */ t(D, { sx: { p: 16 }, children: a.slice().sort((i, c) => c.delivered_at - i.delivered_at).map((i, c) => {
121
+ const w = k(c, a);
122
122
  return /* @__PURE__ */ l(h, { sx: { mb: 12 }, children: [
123
123
  w && /* @__PURE__ */ l(h, { sx: { mb: 12 }, children: [
124
124
  /* @__PURE__ */ t(H, { date: i.delivered_at }),
@@ -129,16 +129,16 @@ const _t = (e) => {
129
129
  }) })
130
130
  ] });
131
131
  }, J = p(q), yt = p(
132
- ({ notificationTypes: e, isOpen: n, onClose: r, onNotificationClick: a }) => {
133
- const { config: o } = j(), { notifications: s, settings: d } = _(), { isCopyLoaded: u } = N(), [i, c] = v.useState(!1);
132
+ ({ notificationTypes: e, isOpen: o, onClose: r, onNotificationClick: s }) => {
133
+ const { config: n } = j(), { notifications: a, settings: d } = _(), { isCopyLoaded: u } = N(), [i, c] = v.useState(!1);
134
134
  return u ? /* @__PURE__ */ l(C, { children: [
135
135
  /* @__PURE__ */ l(
136
136
  b,
137
137
  {
138
- ariaLabelClose: s.close_notifications,
139
- isOpen: n,
138
+ ariaLabelClose: a.close_notifications,
139
+ isOpen: o,
140
140
  onClose: r,
141
- title: s.notifications_title,
141
+ title: a.notifications_title,
142
142
  children: [
143
143
  /* @__PURE__ */ t(
144
144
  W,
@@ -156,7 +156,7 @@ const _t = (e) => {
156
156
  /* @__PURE__ */ t(
157
157
  J,
158
158
  {
159
- onClick: a,
159
+ onClick: s,
160
160
  onManageNotifications: () => c(!0)
161
161
  }
162
162
  )
@@ -166,7 +166,7 @@ const _t = (e) => {
166
166
  /* @__PURE__ */ t(
167
167
  b,
168
168
  {
169
- ariaLabelClose: s.close_notification_settings,
169
+ ariaLabelClose: a.close_notification_settings,
170
170
  isOpen: i,
171
171
  onClose: () => c(!1),
172
172
  title: d.notification_settings_title,
@@ -174,7 +174,7 @@ const _t = (e) => {
174
174
  $,
175
175
  {
176
176
  notificationTypes: e,
177
- showPersonalDetails: !o.display_user_profile_in_settings
177
+ showPersonalDetails: !n.display_user_profile_in_settings
178
178
  }
179
179
  )
180
180
  }
@@ -6,8 +6,8 @@ import { endOfToday as Z } from "date-fns/endOfToday";
6
6
  import { startOfMonth as G } from "date-fns/startOfMonth";
7
7
  import { startOfToday as J } from "date-fns/startOfToday";
8
8
  import { subDays as Q } from "date-fns/subDays";
9
- import { R as Te } from "../RecurringSettings-DOgdSycO.mjs";
10
- import { M as Ln } from "../RecurringSettings-DOgdSycO.mjs";
9
+ import { R as Te } from "../RecurringSettings-ByBydHsL.mjs";
10
+ import { M as Ln } from "../RecurringSettings-ByBydHsL.mjs";
11
11
  import { addMonths as We } from "date-fns/addMonths";
12
12
  import { subMonths as $e } from "date-fns/subMonths";
13
13
  import { isBefore as Be } from "date-fns/isBefore";
@@ -40,8 +40,8 @@ import nt from "@mui/material/ListSubheader";
40
40
  import it from "@mui/material/ListItemAvatar";
41
41
  import rt from "@mui/material/ListItemButton";
42
42
  import ot from "@mui/material/ListItemText";
43
- import { b as at } from "../ManageIncome-BtOMmeKb.mjs";
44
- import { c as Gn, M as On, S as kn } from "../ManageIncome-BtOMmeKb.mjs";
43
+ import { b as at } from "../ManageIncome-D4cGc1Cf.mjs";
44
+ import { c as Gn, M as On, S as kn } from "../ManageIncome-D4cGc1Cf.mjs";
45
45
  import { f as M } from "../NumberFormatting-DjTD0t3W.mjs";
46
46
  import { D as ie } from "../Drawer-DV4NTsFg.mjs";
47
47
  import { b as E } from "../Localization-2MODESHW.mjs";
@@ -18,9 +18,9 @@ import { M as St } from "../MiniWidgetContainer-BPuE3cfO.mjs";
18
18
  import { startOfToday as q } from "date-fns/startOfToday";
19
19
  import Tt from "@mui/material/Button";
20
20
  import { useTheme as Mt } from "@mui/material";
21
- import { e as Dt } from "../exportTransactionsToCSV-RUWymyA3.mjs";
22
- import { T as xt } from "../TransactionList-Dxi733-M.mjs";
23
- import { T as wt } from "../TransactionDetails-BYKl7pix.mjs";
21
+ import { e as Dt } from "../exportTransactionsToCSV-YO3xewit.mjs";
22
+ import { T as xt } from "../TransactionList-CmZSDhKW.mjs";
23
+ import { T as wt } from "../TransactionDetails-B0nANRl-.mjs";
24
24
  import Lt from "@mui/material/Collapse";
25
25
  import F from "@mui/material/Divider";
26
26
  import J from "@mui/material/List";
@@ -1,14 +1,14 @@
1
1
  import { T as Sa } from "../TransactionApi-CjBoLleL.mjs";
2
- import { C as Le, D as Me, M as Re, a as He, T as Pe } from "../TransactionDetails-BYKl7pix.mjs";
3
- import { B as Da, b as Ia } from "../TransactionDetails-BYKl7pix.mjs";
4
- import { T as E } from "../Transaction-RmKYEKSk.mjs";
5
- import { O as Na } from "../Transaction-RmKYEKSk.mjs";
6
- import { S as Z, D as Be } from "../TransactionStore-B-fc3CsB.mjs";
7
- import { T as Oa } from "../TransactionStore-B-fc3CsB.mjs";
8
- import { u as R, T as $e } from "../TransactionList-Dxi733-M.mjs";
9
- import { a as La } from "../TransactionList-Dxi733-M.mjs";
10
- import { e as Ve } from "../exportTransactionsToCSV-RUWymyA3.mjs";
11
- import { E as Ra } from "../ExportCsvAction-8uWKc_e2.mjs";
2
+ import { C as Le, D as Me, M as Re, a as He, T as Pe } from "../TransactionDetails-B0nANRl-.mjs";
3
+ import { B as Da, b as Ia } from "../TransactionDetails-B0nANRl-.mjs";
4
+ import { T as E } from "../Transaction-BiOMLCAA.mjs";
5
+ import { O as Na } from "../Transaction-BiOMLCAA.mjs";
6
+ import { S as Z, D as Be } from "../TransactionStore-DoBXsvqm.mjs";
7
+ import { T as Oa } from "../TransactionStore-DoBXsvqm.mjs";
8
+ import { u as R, T as $e } from "../TransactionList-CmZSDhKW.mjs";
9
+ import { a as La } from "../TransactionList-CmZSDhKW.mjs";
10
+ import { e as Ve } from "../exportTransactionsToCSV-YO3xewit.mjs";
11
+ import { E as Ra } from "../ExportCsvAction-BqNTIBjm.mjs";
12
12
  import { jsxs as _, jsx as e } from "react/jsx-runtime";
13
13
  import m from "react";
14
14
  import { observer as w } from "mobx-react-lite";
@@ -33,8 +33,8 @@ import { H as ke } from "../HeaderCell-DjuifqHJ.mjs";
33
33
  import { T as G, b as Ft } from "../ViewMoreMicroCard-DTZOxZ6a.mjs";
34
34
  import { DataGridPro as zt } from "@mui/x-data-grid-pro";
35
35
  import { A as v } from "../Analytics-i5h6BxR1.mjs";
36
- import { T as lt } from "../TransactionList-Dxi733-M.mjs";
37
- import { T as ct } from "../TransactionDetails-BYKl7pix.mjs";
36
+ import { T as lt } from "../TransactionList-CmZSDhKW.mjs";
37
+ import { T as ct } from "../TransactionDetails-B0nANRl-.mjs";
38
38
  import { D as We } from "../Drawer-DV4NTsFg.mjs";
39
39
  import { u as Ie } from "../useWidgetLoadTimer-BbV8q0k6.mjs";
40
40
  import { L as Ee } from "../Loader-D3rjKx72.mjs";
@@ -54,7 +54,7 @@ import ut from "@mui/material/styles/useTheme";
54
54
  import { Stack as ro } from "@mui/material";
55
55
  import ao from "@mui/material/Paper";
56
56
  import { b as io } from "../CategoryUtil-Cufq3fxg.mjs";
57
- import { E as lo } from "../ExportCsvAction-8uWKc_e2.mjs";
57
+ import { E as lo } from "../ExportCsvAction-BqNTIBjm.mjs";
58
58
  import { u as co } from "../useInsightsEnabled-B4AlxgOP.mjs";
59
59
  import { E as uo } from "../EmptyState-DHAkGsjk.mjs";
60
60
  import { b as ho } from "../GlobalAccountFilter-CjTLppI0.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "7.10.29",
3
+ "version": "7.10.31",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",
@@ -1,55 +0,0 @@
1
- import { jsx as i, jsxs as t } from "react/jsx-runtime";
2
- import { P as m, H2 as f, Text as n } from "@mxenabled/mxui";
3
- import o from "@mui/material/Box";
4
- import r from "@mui/material/Stack";
5
- const g = ({
6
- amount: c,
7
- borderRadius: e = "2px",
8
- completeColor: d = "success.main",
9
- icon: s,
10
- label: h,
11
- leftLabel: a,
12
- percentComplete: l = 0,
13
- rightLabel: x,
14
- sx: p
15
- }) => /* @__PURE__ */ i(r, { sx: { p: 24, width: "100%", ...p }, children: /* @__PURE__ */ t(r, { sx: { gap: 8 }, children: [
16
- /* @__PURE__ */ t(r, { sx: { flexDirection: "row", gap: 12 }, children: [
17
- /* @__PURE__ */ i(o, { children: s }),
18
- /* @__PURE__ */ t(r, { sx: { gap: 2 }, children: [
19
- /* @__PURE__ */ i(m, { variant: "body2", children: h }),
20
- /* @__PURE__ */ i(f, { children: c })
21
- ] })
22
- ] }),
23
- /* @__PURE__ */ t(r, { sx: { gap: 8 }, children: [
24
- /* @__PURE__ */ i(
25
- r,
26
- {
27
- sx: {
28
- bgcolor: "divider",
29
- borderRadius: e,
30
- flexDirection: "row",
31
- height: 16,
32
- width: "100%"
33
- },
34
- children: /* @__PURE__ */ i(
35
- o,
36
- {
37
- sx: {
38
- bgcolor: d,
39
- borderRadius: e,
40
- height: 16,
41
- width: `${l}%`
42
- }
43
- }
44
- )
45
- }
46
- ),
47
- /* @__PURE__ */ t(r, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
48
- /* @__PURE__ */ i(n, { variant: "body2", children: a }),
49
- /* @__PURE__ */ i(n, { variant: "body2", children: x })
50
- ] })
51
- ] })
52
- ] }) }), y = g;
53
- export {
54
- y as S
55
- };