@mx-cartographer/experiences 7.0.44-alpha.mega1 → 7.0.44

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 (66) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/dist/{Account-CYkoSG86.mjs → Account-DNtjr75t.mjs} +1 -1
  3. package/dist/{AccountDetailsContent-BuXTLptM.mjs → AccountDetailsContent-eODMVIVq.mjs} +16 -16
  4. package/dist/{AccountDetailsHeader-BWl2e21n.mjs → AccountDetailsHeader-C0qgTju7.mjs} +38 -37
  5. package/dist/{AccountFields-x4A7Loe5.mjs → AccountFields-DDHk35Ou.mjs} +2 -2
  6. package/dist/AccountListItem-BxmUd4j3.mjs +90 -0
  7. package/dist/{AccountStore-WQAkYgx1.mjs → AccountStore-CpjCeykS.mjs} +2 -2
  8. package/dist/{Accounts-CeeJag5-.mjs → Accounts-nXcS0QUR.mjs} +1 -1
  9. package/dist/{BudgetUtil-n3gEKIub.mjs → BudgetUtil-2EncZLBQ.mjs} +1 -1
  10. package/dist/{CategorySelectorDrawer-993LpETZ.mjs → CategorySelectorDrawer-BmenK5bu.mjs} +1 -1
  11. package/dist/ConnectDrawer-YIWwEzuN.mjs +521 -0
  12. package/dist/{ConnectionsDrawer-CcBzf4l5.mjs → ConnectionsDrawer-Bf2DNDCF.mjs} +2 -2
  13. package/dist/{CurrencyInput-pHmLzc_c.mjs → CurrencyInput-CRtdzs3o.mjs} +1 -1
  14. package/dist/{DebtsStore-EZh5aBxe.mjs → DebtsStore-Dy3YG1fX.mjs} +1 -1
  15. package/dist/{ExportCsvAction-BKxnEFRu.mjs → ExportCsvAction-CebIvl-V.mjs} +3 -3
  16. package/dist/{GoalStore-B9lVADw5.mjs → GoalStore-voP4QA5C.mjs} +3 -3
  17. package/dist/{Help-PP2i0N9Y.mjs → Help-CzBAsKA2.mjs} +1 -1
  18. package/dist/{LineChart-CHTf3RcN.mjs → LineChart-B2Y7zwMu.mjs} +1 -1
  19. package/dist/{ListItemAction-DXyHyJn0.mjs → ListItemAction-DSrYDGAP.mjs} +1 -1
  20. package/dist/{ManageIncome-D1XoZlqY.mjs → ManageIncome-kMsgLN3T.mjs} +38 -38
  21. package/dist/{MicroWidgetContainer-Dpu8VDSP.mjs → MicroWidgetContainer-C4QQHfD7.mjs} +1 -1
  22. package/dist/{MiniWidgetContainer-BhHaL8eb.mjs → MiniWidgetContainer-DSG6mwaW.mjs} +1 -1
  23. package/dist/{NetWorthStore-N5esR-KJ.mjs → NetWorthStore-C5RMjsMS.mjs} +2 -2
  24. package/dist/{NotificationSettings-CWZR6ki-.mjs → NotificationSettings-BCtanw2c.mjs} +4 -4
  25. package/dist/{OriginalBalanceAction-DSA8sk5b.mjs → OriginalBalanceAction-CEuIYsc_.mjs} +3 -3
  26. package/dist/{RecurringSettings-DA6qT8ai.mjs → RecurringSettings-CETLT79T.mjs} +8 -8
  27. package/dist/{RecurringTransactionsStore-Djo9IeDd.mjs → RecurringTransactionsStore-DeLXfuC4.mjs} +1 -1
  28. package/dist/{SettingsStore-BcgS_Ohv.mjs → SettingsStore-Dc34Tzx8.mjs} +1 -1
  29. package/dist/{TransactionDetails-DO_YihKP.mjs → TransactionDetails-B-rdHE3_.mjs} +5 -5
  30. package/dist/{TransactionStore-B2Vq95Fg.mjs → TransactionStore-CfQBEIsK.mjs} +2 -2
  31. package/dist/{TrendsStore-DWVFqEC-.mjs → TrendsStore-BKBnNQba.mjs} +1 -1
  32. package/dist/{User-Bfnq7dd4.mjs → User-8itAR7lR.mjs} +22 -21
  33. package/dist/{WidgetContainer-DfyV39Ru.mjs → WidgetContainer-p7NIdiNJ.mjs} +2 -2
  34. package/dist/accounts/index.es.js +123 -128
  35. package/dist/analytics/index.es.js +11 -11
  36. package/dist/budgets/index.es.js +10 -10
  37. package/dist/cashflow/index.es.js +26 -26
  38. package/dist/categories/index.es.js +1 -1
  39. package/dist/common/hooks/index.d.ts +1 -0
  40. package/dist/common/hooks/useAccountDisplayName.d.ts +3 -0
  41. package/dist/common/index.es.js +92 -90
  42. package/dist/common/utils/AccountDisplayName.d.ts +6 -0
  43. package/dist/common/utils/AccountFilter.d.ts +2 -6
  44. package/dist/dashboard/index.es.js +14 -14
  45. package/dist/debts/index.es.js +9 -9
  46. package/dist/{exportTransactionsToCSV-BgWQsGWy.mjs → exportTransactionsToCSV-CfylirZA.mjs} +1 -1
  47. package/dist/finstrong/index.es.js +6 -6
  48. package/dist/goals/index.es.js +529 -524
  49. package/dist/help/index.es.js +5 -5
  50. package/dist/{hooks-BAAimqdq.mjs → hooks-CE2TKk4a.mjs} +12 -12
  51. package/dist/investments/index.es.js +3 -3
  52. package/dist/merchants/index.es.js +1 -1
  53. package/dist/networth/index.es.js +7 -7
  54. package/dist/notifications/index.es.js +10 -10
  55. package/dist/recurringtransactions/index.es.js +11 -11
  56. package/dist/settings/index.es.js +7 -7
  57. package/dist/spending/index.es.js +4 -4
  58. package/dist/transactions/index.es.js +13 -13
  59. package/dist/trends/index.es.js +11 -11
  60. package/dist/useAccountDisplayName-DC1Lqjag.mjs +15 -0
  61. package/dist/{useInsightsEnabled-BwLaOKWW.mjs → useInsightsEnabled-DSnpkUq0.mjs} +1 -1
  62. package/package.json +1 -1
  63. package/dist/AccountListItem-D9mpJkCP.mjs +0 -89
  64. package/dist/ConnectDrawer-CNdzwKdX.mjs +0 -528
  65. package/dist/{ToggleListItem-r0Kx56wF.mjs → Notification-aGCHxikw.mjs} +1 -1
  66. package/dist/{RecurringTransactions-DTUx9VN1.mjs → RepeatingTransaction-BW4J-jeJ.mjs} +1 -1
@@ -9,21 +9,21 @@ import D from "@mui/material/Divider";
9
9
  import r from "@mui/material/Stack";
10
10
  import ie from "@mui/material/styles/useTheme";
11
11
  import { Text as d, P as k, Icon as F, InstitutionLogo as xe, H1 as le, H2 as Xe } from "@mxenabled/mxui";
12
- import { G as Ye, t as de, u as O, p as re, c as Oe, a as Y, o as me, i as q, f as Ne, g as ke } from "../hooks-BAAimqdq.mjs";
12
+ import { G as Ye, t as de, u as O, p as re, d as Oe, b as Y, o as me, j as q, g as Ne, h as ke } from "../hooks-CE2TKk4a.mjs";
13
13
  import { C as L } from "../CurrencyText-YUhH2caW.mjs";
14
14
  import { u as ue } from "../useScreenSize-B6JyS_Lj.mjs";
15
15
  import { L as se } from "../Loader-DUaFpDGv.mjs";
16
16
  import { I as he } from "../CashflowStore-D9Dpuz7X.mjs";
17
17
  import { C as Wn } from "../CashflowStore-D9Dpuz7X.mjs";
18
18
  import { b as X } from "../Localization-2MODESHW.mjs";
19
- import { M as Qe } from "../MiniWidgetContainer-BhHaL8eb.mjs";
20
- import { R as Ve } from "../RecurringSettings-DA6qT8ai.mjs";
19
+ import { M as Qe } from "../MiniWidgetContainer-DSG6mwaW.mjs";
20
+ import { R as Ve } from "../RecurringSettings-CETLT79T.mjs";
21
21
  import Ke from "@mui/material/Tabs";
22
22
  import ye from "@mui/material/Tab";
23
23
  import { getUnixTime as U } from "date-fns/getUnixTime";
24
24
  import ee from "@mui/material/List";
25
25
  import te from "@mui/material/ListItem";
26
- import { A as Je } from "../AccountListItem-D9mpJkCP.mjs";
26
+ import { A as Je } from "../AccountListItem-BxmUd4j3.mjs";
27
27
  import { f as Q, D as V } from "../Dialog-CWW597AF.mjs";
28
28
  import Ze from "@mui/material/ListSubheader";
29
29
  import { f as Z } from "../NumberFormatting-CtWHhyBX.mjs";
@@ -34,17 +34,17 @@ import { addDays as Ce } from "date-fns/addDays";
34
34
  import { alpha as et, keyframes as tt } from "@mui/material/styles";
35
35
  import { DataGridPro as nt } from "@mui/x-data-grid-pro";
36
36
  import { T as Se } from "../TabContentContainer-j01JYR_7.mjs";
37
- import { M as ot, S as at, i as it, d as _e, c as rt } from "../ManageIncome-D1XoZlqY.mjs";
37
+ import { M as ot, S as at, i as it, d as _e, c as rt } from "../ManageIncome-kMsgLN3T.mjs";
38
38
  import { D as $e } from "../Drawer-kEE73B87.mjs";
39
39
  import { formatISO as st } from "date-fns/formatISO";
40
40
  import { fromUnixTime as we } from "date-fns/fromUnixTime";
41
41
  import { startOfMonth as ct } from "date-fns/startOfMonth";
42
42
  import { subDays as Me } from "date-fns/subDays";
43
- import { S as lt, b as dt } from "../TransactionDetails-DO_YihKP.mjs";
44
- import { F as mt, R as Ie, e as De } from "../RecurringTransactions-DTUx9VN1.mjs";
43
+ import { S as lt, b as dt } from "../TransactionDetails-B-rdHE3_.mjs";
44
+ import { F as mt, R as Ie, e as De } from "../RepeatingTransaction-BW4J-jeJ.mjs";
45
45
  import { h as ut } from "../DateUtil-BcuH7ErC.mjs";
46
46
  import { endOfToday as ht } from "date-fns/endOfToday";
47
- import { W as ve, A as Ae } from "../WidgetContainer-DfyV39Ru.mjs";
47
+ import { W as ve, A as Ae } from "../WidgetContainer-p7NIdiNJ.mjs";
48
48
  import { F as pt, A as B } from "../Fetch-87LIQbEA.mjs";
49
49
  const K = () => {
50
50
  if (!u.useContext(Ye))
@@ -75,7 +75,7 @@ const K = () => {
75
75
  setNextIncome: S,
76
76
  setSelectedCashAccounts: v,
77
77
  setUpcomingExpenses: p
78
- } = K(), { isDataLoaded: N, nextIncomeRecurrence: _, upcomingExpenses: z } = q();
78
+ } = K(), { isDataLoaded: N, nextIncomeRecurrence: _, upcomingExpenses: j } = q();
79
79
  u.useEffect(() => {
80
80
  y(c);
81
81
  }, [c]), u.useEffect(() => {
@@ -83,15 +83,15 @@ const K = () => {
83
83
  c.filter((R) => b.includes(R.guid))
84
84
  );
85
85
  }, [c, m]), u.useEffect(() => {
86
- _ && S(_), p(z);
87
- }, [_, z]);
86
+ _ && S(_), p(j);
87
+ }, [_, j]);
88
88
  const G = u.useMemo(
89
89
  () => c.filter((R) => b.includes(R.guid)).reduce((R, w) => R + (w?.balance || 0), 0),
90
- [b, z]
90
+ [b, j]
91
91
  ), W = u.useMemo(
92
92
  () => h.filter((R) => b.includes(R.accountGuid || "")).reduce((R, w) => R + w.amount, 0),
93
93
  [b, h]
94
- ), j = u.useMemo(
94
+ ), z = u.useMemo(
95
95
  () => G - W,
96
96
  [G, W]
97
97
  ), A = g?.has_completed_cash_flow_onboarding && !!a;
@@ -118,7 +118,7 @@ const K = () => {
118
118
  ] }),
119
119
  /* @__PURE__ */ e(r, { pt: 18, children: /* @__PURE__ */ e(F, { name: "equal" }) }),
120
120
  /* @__PURE__ */ o(r, { pb: 14, pr: 24, pt: 12, children: [
121
- /* @__PURE__ */ e(L, { amount: j, variant: "H2" }),
121
+ /* @__PURE__ */ e(L, { amount: z, variant: "H2" }),
122
122
  /* @__PURE__ */ o(r, { alignItems: "center", direction: "row", gap: 8, children: [
123
123
  /* @__PURE__ */ e(k, { variant: "XSmall", whiteSpace: "nowrap", children: i.available_to_spend }),
124
124
  /* @__PURE__ */ e(he, { body: i.tooltip_body, title: i.tooltip_title })
@@ -163,7 +163,7 @@ const K = () => {
163
163
  justifyContent: "space-between",
164
164
  px: 16,
165
165
  sx: { borderBottomLeftRadius: 4, borderBottomRightRadius: 4 },
166
- children: /* @__PURE__ */ e(pe, { remaining: j })
166
+ children: /* @__PURE__ */ e(pe, { remaining: z })
167
167
  }
168
168
  ),
169
169
  /* @__PURE__ */ e(D, {}),
@@ -829,10 +829,10 @@ const Ct = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
829
829
  transform: rotate(360deg);
830
830
  }
831
831
  `, Ht = () => {
832
- const { addRepeatingTransaction: a, repeatingTransactions: n } = q(), { cashflow: t, common: s } = O(), { completeOnboarding: c } = de(), { isDirty: f } = K(), { isMobile: m } = ue(), { isCopyLoaded: b, setDisplayedDate: y } = Y(), { filter: i, setFilter: g, transactions: l } = ke(), h = ie(), [C, S] = J(!0), [v, p] = u.useState(mt.EveryMonth), [N, _] = u.useState(1), [z, G] = u.useState(15), [W, j] = J(!1), [A, R] = J(1), [w, ze] = J([]), [fe, ce] = J(""), $ = u.useMemo(
832
+ const { addRepeatingTransaction: a, repeatingTransactions: n } = q(), { cashflow: t, common: s } = O(), { completeOnboarding: c } = de(), { isDirty: f } = K(), { isMobile: m } = ue(), { isCopyLoaded: b, setDisplayedDate: y } = Y(), { filter: i, setFilter: g, transactions: l } = ke(), h = ie(), [C, S] = J(!0), [v, p] = u.useState(mt.EveryMonth), [N, _] = u.useState(1), [j, G] = u.useState(15), [W, z] = J(!1), [A, R] = J(1), [w, je] = J([]), [fe, ce] = J(""), $ = u.useMemo(
833
833
  () => l.find((x) => x.guid === fe),
834
834
  [fe, l]
835
- ), je = !!n.filter(
835
+ ), ze = !!n.filter(
836
836
  (x) => x.repeating_transaction_type === Ie.Income
837
837
  ).length, ge = async () => {
838
838
  R(2), y(
@@ -842,7 +842,7 @@ const Ct = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
842
842
  ), g({ ...i, custom: _e }), R(3);
843
843
  }, Be = async () => {
844
844
  if (!(w.length < 1)) {
845
- j(!0);
845
+ z(!0);
846
846
  for (let x = 0; x < w.length; x++) {
847
847
  const E = w[x], be = De(v, we(E.date)), Pe = {
848
848
  account_guid: E.account_guid,
@@ -934,7 +934,7 @@ const Ct = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
934
934
  }
935
935
  }
936
936
  ),
937
- !je && f && /* @__PURE__ */ e(k, { color: "error", mt: 16, children: t.confirm_error }),
937
+ !ze && f && /* @__PURE__ */ e(k, { color: "error", mt: 16, children: t.confirm_error }),
938
938
  $ && /* @__PURE__ */ o(P, { children: [
939
939
  /* @__PURE__ */ e(
940
940
  rt,
@@ -945,7 +945,7 @@ const Ct = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
945
945
  onFirstDayChange: _,
946
946
  onFrequencyChange: p,
947
947
  onSecondDayChange: G,
948
- secondDay: z,
948
+ secondDay: j,
949
949
  transaction: $
950
950
  }
951
951
  ),
@@ -960,7 +960,7 @@ const Ct = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
960
960
  ...$,
961
961
  nextDate: De(v, we($.date)),
962
962
  frequency: v
963
- }), ze(x), ce("");
963
+ }), je(x), ce("");
964
964
  },
965
965
  variant: "contained",
966
966
  children: s.confirm_button
@@ -1012,18 +1012,18 @@ const Ct = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
1012
1012
  setSelectedAccounts: c,
1013
1013
  shouldDisableNextDate: f,
1014
1014
  shouldDisablePrevDate: m
1015
- } = Y(), { onEvent: b } = Ne(), { visibleCashAccounts: y } = Oe(), { setFilter: i } = ke(), { userProfile: g } = me(), { dateRange: l, setSelectedCashAccounts: h } = K(), { loadRepeatingTransactions: C, setDateRange: S } = q(), { cashflow: v, recurring: p } = O(), { isCopyLoaded: N, isInitialized: _ } = Y(), [z, G] = u.useState(!1);
1015
+ } = Y(), { onEvent: b } = Ne(), { visibleCashAccounts: y } = Oe(), { setFilter: i } = ke(), { userProfile: g } = me(), { dateRange: l, setSelectedCashAccounts: h } = K(), { loadRepeatingTransactions: C, setDateRange: S } = q(), { cashflow: v, recurring: p } = O(), { isCopyLoaded: N, isInitialized: _ } = Y(), [j, G] = u.useState(!1);
1016
1016
  return u.useEffect(() => {
1017
1017
  _ && (S(l), C().finally());
1018
1018
  }, [_]), u.useEffect(() => {
1019
1019
  c(y);
1020
1020
  }, [y]), u.useEffect(() => {
1021
- const W = y.map((A) => A.guid), j = t.filter(
1021
+ const W = y.map((A) => A.guid), z = t.filter(
1022
1022
  (A) => s.includes(A.guid) && W.includes(A.guid)
1023
1023
  );
1024
- h(j), i({
1024
+ h(z), i({
1025
1025
  dateRange: { start: Me(M(), 90), end: ht() },
1026
- accounts: j.map((A) => A.guid)
1026
+ accounts: z.map((A) => A.guid)
1027
1027
  });
1028
1028
  }, [y, t]), !N || !_ ? /* @__PURE__ */ e(se, {}) : g?.has_completed_cash_flow_onboarding ? /* @__PURE__ */ o(
1029
1029
  ve,
@@ -1058,7 +1058,7 @@ const Ct = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
1058
1058
  $e,
1059
1059
  {
1060
1060
  ariaLabelClose: v.close_settings_aria,
1061
- isOpen: z,
1061
+ isOpen: j,
1062
1062
  onClose: () => G(!1),
1063
1063
  shouldShowHeaderBorders: !1,
1064
1064
  title: p.action_title,
@@ -1,4 +1,4 @@
1
- import { b as o, C as a, a as t, u as C } from "../CategorySelectorDrawer-993LpETZ.mjs";
1
+ import { b as o, C as a, a as t, u as C } from "../CategorySelectorDrawer-BmenK5bu.mjs";
2
2
  import { C as g } from "../CategoryStore-BCcpI3oJ.mjs";
3
3
  export {
4
4
  o as CategoryRow,
@@ -1,3 +1,4 @@
1
+ export { useAccountDisplayName } from './useAccountDisplayName';
1
2
  export { useCombineEvents, useCombinePageviews } from './useCombineEvents';
2
3
  export { useInsightsEnabled } from './useInsightsEnabled';
3
4
  export { useScreenSize } from './useScreenSize';
@@ -0,0 +1,3 @@
1
+ import { Account } from '../types';
2
+ export declare const useAccountDisplayName: (account: Account) => string;
3
+ export default useAccountDisplayName;