@mx-cartographer/experiences 7.3.0-alpha.sms1 → 7.3.0

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 (104) hide show
  1. package/CHANGELOG.md +71 -0
  2. package/dist/{Account-Bxw0_4FU.mjs → Account-YwUMFz93.mjs} +1 -1
  3. package/dist/{AccountDetailsContent-CAM9y39M.mjs → AccountDetailsContent-BgCST7mK.mjs} +8 -8
  4. package/dist/AccountDetailsHeader-jAFWoHj7.mjs +87 -0
  5. package/dist/{AccountFields-C9FlatNb.mjs → AccountFields-DPxMPBF0.mjs} +2 -2
  6. package/dist/{AccountListItem-JFMZROh7.mjs → AccountListItem-D6rWAreC.mjs} +8 -8
  7. package/dist/{AccountStore-BgNOyMdp.mjs → AccountStore-B5E98oM1.mjs} +100 -74
  8. package/dist/Accounts-UIlYCmHb.mjs +9 -0
  9. package/dist/{BeatApi-DhJpgCLz.mjs → BeatApi-De2IaqH2.mjs} +1 -1
  10. package/dist/{BeatStore-IBnXd4YK.mjs → BeatStore-D_NYuBSz.mjs} +1 -1
  11. package/dist/{BudgetUtil-B2ZXyw-g.mjs → BudgetUtil-CXvenbdN.mjs} +1 -1
  12. package/dist/{CategorySelectorDrawer-DUe4lH5-.mjs → CategorySelectorDrawer-Buy70Y3V.mjs} +21 -19
  13. package/dist/CategoryStore-BEdFs69_.mjs +183 -0
  14. package/dist/CategoryUtil-BR3H5i6n.mjs +78 -0
  15. package/dist/{ConnectDrawer-BQNs-hjk.mjs → ConnectDrawer-CbxHKlRv.mjs} +10 -10
  16. package/dist/{ConnectionsDrawer-ByGQE7D5.mjs → ConnectionsDrawer-C6kanU7I.mjs} +4 -4
  17. package/dist/{CurrencyInput-DUsQbkXb.mjs → CurrencyInput-lSC7oPDg.mjs} +1 -1
  18. package/dist/{DebtsStore-C9bblOgW.mjs → DebtsStore-DgIcphe_.mjs} +1 -1
  19. package/dist/{ExportCsvAction-sX8Rg4Ov.mjs → ExportCsvAction-DZ10CbWd.mjs} +3 -3
  20. package/dist/{Fetch-87LIQbEA.mjs → Fetch-DecPFeGU.mjs} +24 -22
  21. package/dist/{FinstrongStore-F2c607dj.mjs → FinstrongStore-CL7t5lBL.mjs} +1 -1
  22. package/dist/{GoalStore-D-aB35SY.mjs → GoalStore-CAlmSu4U.mjs} +112 -152
  23. package/dist/{Help-B6dIcujh.mjs → Help-hi9I9EYP.mjs} +1 -1
  24. package/dist/{LineChart-D4GI7nVh.mjs → LineChart-eK4IQImU.mjs} +2 -2
  25. package/dist/{ListItemAction-DHa3KJPs.mjs → ListItemAction-BmL5buOf.mjs} +1 -1
  26. package/dist/{ManageIncome-1s_q5W4X.mjs → ManageIncome-Cypo9qY4.mjs} +66 -65
  27. package/dist/{MerchantStore-DrFvsUyy.mjs → MerchantStore-WvZ4gnQe.mjs} +1 -1
  28. package/dist/{MicroWidgetContainer-DpeqN9n3.mjs → MicroWidgetContainer-CFdMGJKg.mjs} +1 -1
  29. package/dist/{MiniWidgetContainer-D0gfmbaF.mjs → MiniWidgetContainer-BdgBvpga.mjs} +1 -1
  30. package/dist/{NetWorthStore-DCsTZpuS.mjs → NetWorthStore-CxqIxAgN.mjs} +2 -2
  31. package/dist/{NotificationSettings-DqrkNMod.mjs → NotificationSettings-DxytNHlN.mjs} +240 -237
  32. package/dist/{NotificationStore-BxP_P2dA.mjs → NotificationStore-CDX_kqHa.mjs} +7 -15
  33. package/dist/{OriginalBalanceAction-CWuVvRq9.mjs → OriginalBalanceAction-V6FEoIDe.mjs} +3 -3
  34. package/dist/{RecurringSettings-A_rAGCTP.mjs → RecurringSettings-iIupYxJW.mjs} +4 -4
  35. package/dist/{RecurringTransactions-DK8dWldr.mjs → RecurringTransactions-ej39mgA6.mjs} +3 -3
  36. package/dist/{RecurringTransactionsStore-C4YOD7_D.mjs → RecurringTransactionsStore-BiwCzScZ.mjs} +26 -29
  37. package/dist/{SettingsStore-BcgS_Ohv.mjs → SettingsStore-krIRNwHK.mjs} +3 -3
  38. package/dist/{ToggleListItem-r0Kx56wF.mjs → ToggleListItem-ciFTiqRS.mjs} +19 -14
  39. package/dist/TransactionApi-CjBoLleL.mjs +86 -0
  40. package/dist/{TransactionDetails-oP1eSuiS.mjs → TransactionDetails-BUoNbsu-.mjs} +402 -367
  41. package/dist/TransactionStore-C1oyQCZK.mjs +677 -0
  42. package/dist/TrendsStore-5PvDT_o6.mjs +182 -0
  43. package/dist/{User-BQUxBeZV.mjs → User-Bj34_i8g.mjs} +1 -1
  44. package/dist/{ViewMoreMicroCard-SCn2wt4i.mjs → ViewMoreMicroCard-lihSDk2J.mjs} +517 -493
  45. package/dist/{WidgetContainer-BHWANqT4.mjs → WidgetContainer-BnTgAfQn.mjs} +2 -2
  46. package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.d.ts +4 -1
  47. package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsHeader.d.ts +2 -1
  48. package/dist/accounts/index.es.js +241 -203
  49. package/dist/accounts/stores/AccountStore.d.ts +22 -25
  50. package/dist/accounts/utils/Accounts.d.ts +1 -2
  51. package/dist/analytics/index.es.js +2 -2
  52. package/dist/budgets/index.es.js +500 -507
  53. package/dist/budgets/store/BudgetsStore.d.ts +0 -1
  54. package/dist/cashflow/index.es.js +384 -382
  55. package/dist/categories/index.es.js +2 -2
  56. package/dist/categories/stores/CategoryStore.d.ts +1 -5
  57. package/dist/categories/util/CategoryUtil.d.ts +2 -3
  58. package/dist/common/components/charts/index.d.ts +0 -2
  59. package/dist/common/index.es.js +391 -376
  60. package/dist/common/stores/AppDataStore.d.ts +1 -3
  61. package/dist/common/stores/GlobalCopyStore.d.ts +1 -0
  62. package/dist/common/stores/GlobalStore.d.ts +10 -4
  63. package/dist/common/stores/UserStore.d.ts +2 -3
  64. package/dist/common/types/Account.d.ts +6 -9
  65. package/dist/common/types/Global.d.ts +1 -0
  66. package/dist/dashboard/index.es.js +2 -2
  67. package/dist/debts/index.es.js +506 -498
  68. package/dist/{exportTransactionsToCSV-7bVS7KXf.mjs → exportTransactionsToCSV-B8qpk5MU.mjs} +14 -13
  69. package/dist/finstrong/index.es.js +417 -415
  70. package/dist/goals/index.es.js +559 -557
  71. package/dist/goals/stores/GoalStore.d.ts +4 -17
  72. package/dist/help/index.es.js +3 -3
  73. package/dist/{hooks-D6XlXHf4.mjs → hooks-Cy8JnjCg.mjs} +2 -2
  74. package/dist/insights/index.es.js +1 -1
  75. package/dist/investments/index.es.js +437 -435
  76. package/dist/investments/stores/HoldingStore.d.ts +0 -1
  77. package/dist/merchants/index.es.js +2 -2
  78. package/dist/microinsights/carousel/BeatList.d.ts +10 -0
  79. package/dist/microinsights/carousel/CarouselControls.d.ts +1 -1
  80. package/dist/microinsights/index.es.js +1 -1
  81. package/dist/microinsights/interfaces.d.ts +0 -1
  82. package/dist/networth/index.es.js +176 -174
  83. package/dist/notifications/index.es.js +23 -23
  84. package/dist/notifications/stores/NotificationStore.d.ts +1 -3
  85. package/dist/recurringtransactions/index.es.js +175 -173
  86. package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +2 -3
  87. package/dist/settings/index.es.js +285 -279
  88. package/dist/spending/index.es.js +282 -281
  89. package/dist/transactions/components/shared/TransactionDetails.d.ts +1 -0
  90. package/dist/transactions/index.es.js +63 -64
  91. package/dist/transactions/stores/TransactionStore.d.ts +77 -21
  92. package/dist/trends/index.es.js +948 -583
  93. package/dist/{useAccountDisplayName-BUAApBIb.mjs → useAccountDisplayName-D6sQsNNQ.mjs} +2 -2
  94. package/dist/{useCombineEvents-BUDIR1ba.mjs → useCombineEvents-CRwX-qWE.mjs} +1 -1
  95. package/dist/{useInsightsEnabled-DBpwEq10.mjs → useInsightsEnabled-BxytCjq5.mjs} +1 -1
  96. package/package.json +4 -4
  97. package/dist/AccountDetailsHeader-JtSX6Uf9.mjs +0 -120
  98. package/dist/Accounts-BRf_YeTf.mjs +0 -27
  99. package/dist/CategoryStore-yHI0hWmK.mjs +0 -174
  100. package/dist/CategoryUtil-pZRIYOgN.mjs +0 -80
  101. package/dist/TransactionApi-B3Tksf7L.mjs +0 -86
  102. package/dist/TransactionStore-ai3uII_r.mjs +0 -690
  103. package/dist/TrendsStore-DCYbpXPO.mjs +0 -559
  104. package/dist/useAriaLive-B3_pRUio.mjs +0 -35
@@ -1,7 +1,7 @@
1
- import { A as f, B as b } from "../ToggleListItem-r0Kx56wF.mjs";
2
- import { A as _ } from "../Fetch-87LIQbEA.mjs";
3
- import { s as L } from "../NotificationStore-BxP_P2dA.mjs";
4
- import { N as Nt, f as St } from "../NotificationStore-BxP_P2dA.mjs";
1
+ import { A as f, B as b } from "../ToggleListItem-ciFTiqRS.mjs";
2
+ import { A as _ } from "../Fetch-DecPFeGU.mjs";
3
+ import { s as L } from "../NotificationStore-CDX_kqHa.mjs";
4
+ import { N as Nt, f as St } from "../NotificationStore-CDX_kqHa.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";
@@ -11,13 +11,13 @@ import B from "@mui/material/List";
11
11
  import { Text as m, InstitutionLogo as T, CategoryIcon as R } from "@mxenabled/mxui";
12
12
  import { h as I } from "../DateUtil-BcuH7ErC.mjs";
13
13
  import { useTheme as O, Card as G } from "@mui/material";
14
- import { d as E, i as j, u as g, o as N, b as S, a as z } from "../hooks-D6XlXHf4.mjs";
14
+ import { d as E, i as j, u as g, o as N, b as S, a as z } from "../hooks-Cy8JnjCg.mjs";
15
15
  import { Icon as U, Settings as F } from "@mxenabled/mx-icons";
16
16
  import P from "@mui/material/Button";
17
17
  import W from "@mui/material/Stack";
18
18
  import { L as w } from "../Loader-DUaFpDGv.mjs";
19
19
  import $ from "@mui/material/IconButton";
20
- import { N as H } from "../NotificationSettings-DqrkNMod.mjs";
20
+ import { N as H } from "../NotificationSettings-DxytNHlN.mjs";
21
21
  import { D as C } from "../Drawer-kEE73B87.mjs";
22
22
  const yt = (e) => {
23
23
  switch (e) {
@@ -36,7 +36,7 @@ const yt = (e) => {
36
36
  return null;
37
37
  }
38
38
  }, M = ({ date: e }) => /* @__PURE__ */ t(y, { sx: { display: "flex", justifyContent: "center", mt: 12, py: 8 }, children: /* @__PURE__ */ t(m, { bold: !0, variant: "Small", children: I(e) }) }), V = ({ notification: e }) => {
39
- const { accounts: o } = E(), { budgets: a } = j(), { accounts: s } = g(), i = o.find((l) => l.guid === e.entity_guid), r = a.find((l) => l.guid === e.entity_guid), u = e.entity_guid.includes("GOL"), c = {
39
+ const { accounts: o } = E(), { budgets: s } = j(), { accounts: a } = g(), i = o.find((l) => l.guid === e.entity_guid), r = s.find((l) => l.guid === e.entity_guid), u = e.entity_guid.includes("GOL"), c = {
40
40
  badge: {
41
41
  display: "flex",
42
42
  alignItems: "center",
@@ -48,13 +48,13 @@ const yt = (e) => {
48
48
  return i || u ? /* @__PURE__ */ t("div", { style: c.badge, children: /* @__PURE__ */ t(
49
49
  T,
50
50
  {
51
- alt: i?.institutionName || s.institution_logo_alt,
51
+ alt: i?.institutionName || a.institution_logo_alt,
52
52
  institutionGuid: i?.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
56
  }, X = p(V), Y = ({ notification: e, onClick: o }) => {
57
- const { updateNotification: a } = N(), s = O(), i = {
57
+ const { updateNotification: s } = N(), a = O(), i = {
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: s.palette.background.default
66
+ backgroundColor: a.palette.background.default
67
67
  },
68
68
  "&:hover": {
69
- backgroundColor: s.palette.background.default
69
+ backgroundColor: a.palette.background.default
70
70
  }
71
71
  },
72
72
  dot: {
73
- backgroundColor: s.palette.primary.main,
73
+ backgroundColor: a.palette.primary.main,
74
74
  borderRadius: "100%",
75
75
  flex: "0 0 auto",
76
76
  marginLeft: -8,
@@ -80,7 +80,7 @@ const yt = (e) => {
80
80
  }
81
81
  };
82
82
  return /* @__PURE__ */ d(G, { onClick: () => {
83
- o(e), a({ ...e, has_been_viewed: !0 }).finally();
83
+ o(e), s({ ...e, has_been_viewed: !0 }).finally();
84
84
  }, sx: i.card, children: [
85
85
  e.has_been_viewed ? null : /* @__PURE__ */ t("div", { "data-testid": "new-message-dot", style: i.dot }),
86
86
  /* @__PURE__ */ t(X, { notification: e }),
@@ -110,15 +110,15 @@ const yt = (e) => {
110
110
  ] });
111
111
  }
112
112
  ), J = ({ onClick: e, onManageNotifications: o }) => {
113
- const { isLoading: a, loadNotifications: s, recentNotifications: i, markAllAsViewed: r } = N(), { notifications: u } = g(), { isCopyLoaded: c } = S(), l = (n) => {
113
+ const { isLoading: s, loadNotifications: a, newNotifications: i, markAllAsViewed: r } = N(), { notifications: u } = g(), { isCopyLoaded: c } = S(), l = (n) => {
114
114
  e?.(n);
115
115
  };
116
- return A(() => (s().finally(), () => {
117
- r().finally();
118
- }), []), /* @__PURE__ */ d(x, { children: [
119
- (!c || a) && /* @__PURE__ */ t(w, { label: u?.loading, size: 40 }),
120
- c && !a && i.length === 0 && /* @__PURE__ */ t(q, { onManageNotifications: o }),
121
- /* @__PURE__ */ t(B, { sx: { p: 16 }, children: c && !a && i.slice().sort((n, h) => h.delivered_at - n.delivered_at).map((n, h) => {
116
+ return A(() => {
117
+ a().then(() => r()).finally();
118
+ }, [a, r]), /* @__PURE__ */ d(x, { children: [
119
+ (!c || s) && /* @__PURE__ */ t(w, { label: u?.loading, size: 40 }),
120
+ c && !s && i.length === 0 && /* @__PURE__ */ t(q, { onManageNotifications: o }),
121
+ /* @__PURE__ */ t(B, { sx: { p: 16 }, children: c && !s && i.slice().sort((n, h) => h.delivered_at - n.delivered_at).map((n, h) => {
122
122
  const v = L(h, i);
123
123
  return /* @__PURE__ */ d(y, { sx: { mb: 12 }, children: [
124
124
  v && /* @__PURE__ */ d(y, { sx: { mb: 12 }, children: [
@@ -130,7 +130,7 @@ const yt = (e) => {
130
130
  }) })
131
131
  ] });
132
132
  }, K = p(J), bt = p(
133
- ({ notificationTypes: e, isOpen: o, onClose: a, onNotificationClick: s }) => {
133
+ ({ notificationTypes: e, isOpen: o, onClose: s, onNotificationClick: a }) => {
134
134
  const { config: i } = 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(
@@ -138,7 +138,7 @@ const yt = (e) => {
138
138
  {
139
139
  ariaLabelClose: r.close_notifications,
140
140
  isOpen: o,
141
- onClose: a,
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: s,
160
+ onClick: a,
161
161
  onManageNotifications: () => n(!0)
162
162
  }
163
163
  )
@@ -4,11 +4,9 @@ export declare class NotificationStore {
4
4
  api: NotificationApi;
5
5
  isLoading: boolean;
6
6
  notifications: Notification[];
7
- notificationsLoaded: boolean;
7
+ recentNotifications: Notification[];
8
8
  constructor(globalStore: GlobalStore);
9
9
  get newNotifications(): Notification[];
10
- get recentNotifications(): Notification[];
11
- setNotifications: (notifications: Notification[]) => void;
12
10
  loadNotifications: () => Promise<void>;
13
11
  markAllAsViewed: () => Promise<void>;
14
12
  updateNotification: (notification: Notification) => Promise<void>;