@mx-cartographer/experiences 7.0.32 → 7.0.34-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.
Files changed (100) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/{Account-CK-DrCEa.mjs → Account-DeMa6XJz.mjs} +1 -1
  3. package/dist/{AccountDetailsContent-BGXM8acm.mjs → AccountDetailsContent-BwTOak3W.mjs} +8 -8
  4. package/dist/{AccountDetailsHeader-Dwk01nsY.mjs → AccountDetailsHeader-BCW4d-j4.mjs} +5 -5
  5. package/dist/{AccountFields-5i77eFJ6.mjs → AccountFields-B-igjxt-.mjs} +2 -2
  6. package/dist/{AccountListItem-BiST9IgK.mjs → AccountListItem-DAF9c7_x.mjs} +3 -3
  7. package/dist/{AccountStore-DiGbJBUT.mjs → AccountStore-Bzy6rKGo.mjs} +26 -26
  8. package/dist/{Accounts-BBkQjUmS.mjs → Accounts-DNMSlq9A.mjs} +1 -1
  9. package/dist/{BeatApi-DLu87ijw.mjs → BeatApi-DhJpgCLz.mjs} +3 -3
  10. package/dist/{BeatStore-By4aGoRM.mjs → BeatStore-IBnXd4YK.mjs} +17 -17
  11. package/dist/{BudgetUtil-D5jO0box.mjs → BudgetUtil-Iw9hUxhI.mjs} +1 -1
  12. package/dist/{CategorySelectorDrawer-joMax4Fb.mjs → CategorySelectorDrawer-CMorcKFW.mjs} +1 -1
  13. package/dist/{CategoryStore-BOyzQjQp.mjs → CategoryStore-BCcpI3oJ.mjs} +4 -4
  14. package/dist/{ConnectDrawer-D86nRDxQ.mjs → ConnectDrawer-jeSmGg38.mjs} +1 -1
  15. package/dist/{ConnectionsDrawer-BkNr5Up0.mjs → ConnectionsDrawer-hdOVHICr.mjs} +2 -2
  16. package/dist/{CurrencyInput-BkflFU_-.mjs → CurrencyInput-C0wTgNV6.mjs} +1 -1
  17. package/dist/{DebtsStore-qrqY9Abz.mjs → DebtsStore-C2OfwE0t.mjs} +1 -1
  18. package/dist/{ExportCsvAction-DRfdZis1.mjs → ExportCsvAction-BlKpQTTL.mjs} +3 -3
  19. package/dist/{Fetch-CkFKy79O.mjs → Fetch-87LIQbEA.mjs} +11 -10
  20. package/dist/{FinstrongStore-mkALvztw.mjs → FinstrongStore-F2c607dj.mjs} +4 -4
  21. package/dist/{GoalStore-BQRcowCN.mjs → GoalStore-D2A2Lqd5.mjs} +6 -6
  22. package/dist/{Help-B3dFeYi2.mjs → Help-DwKXfnqC.mjs} +1 -1
  23. package/dist/{LineChart-Dyps2sOy.mjs → LineChart-DNC5UEt4.mjs} +1 -1
  24. package/dist/{ListItemAction-BgKx_n6d.mjs → ListItemAction-Dt9A2GQk.mjs} +1 -1
  25. package/dist/{ManageIncome-Byw3lVtR.mjs → ManageIncome-C0CbczlY.mjs} +4 -4
  26. package/dist/MerchantStore-DrFvsUyy.mjs +37 -0
  27. package/dist/{MicroWidgetContainer-DPDsZIiS.mjs → MicroWidgetContainer-DVRe-MJs.mjs} +1 -1
  28. package/dist/{MiniWidgetContainer-BzW7V_04.mjs → MiniWidgetContainer-C_N1u9ad.mjs} +1 -1
  29. package/dist/{NetWorthStore-DWG9Mkuu.mjs → NetWorthStore-CD4WWdXC.mjs} +2 -2
  30. package/dist/{NotificationSettings-B9wNyWEL.mjs → NotificationSettings-CtbJFbrv.mjs} +3 -3
  31. package/dist/{NotificationStore-DHtSGySy.mjs → NotificationStore-C6PH6MKm.mjs} +8 -4
  32. package/dist/{OriginalBalanceAction-B--pIAF0.mjs → OriginalBalanceAction-CqQ5j4OW.mjs} +3 -3
  33. package/dist/{RecurringSettings-ClbdFNWX.mjs → RecurringSettings-DR9KuVEN.mjs} +3 -3
  34. package/dist/{RecurringTransactionsStore-D62XJtdL.mjs → RecurringTransactionsStore-DeLXfuC4.mjs} +20 -16
  35. package/dist/{SettingsStore-B0kRTFjD.mjs → SettingsStore-Dc34Tzx8.mjs} +33 -29
  36. package/dist/{TransactionApi-DbbcjI2L.mjs → TransactionApi-B3Tksf7L.mjs} +29 -29
  37. package/dist/{TransactionDetails-C4PW8SRL.mjs → TransactionDetails-BafSm7_T.mjs} +5 -5
  38. package/dist/{TransactionStore-CZOvxcSw.mjs → TransactionStore-C4LPHwzx.mjs} +29 -25
  39. package/dist/{TrendsStore-pvzHAX6B.mjs → TrendsStore-BM-JjAs5.mjs} +1 -1
  40. package/dist/{User-D-O9EHMb.mjs → User-BYkzrOdM.mjs} +1 -1
  41. package/dist/{ViewMoreMicroCard-DFAY0tA8.mjs → ViewMoreMicroCard-CXxtKHUM.mjs} +247 -244
  42. package/dist/{WidgetContainer-CBpf3h1Y.mjs → WidgetContainer-CPBhSP3k.mjs} +2 -2
  43. package/dist/accounts/api/AccountApi.d.ts +2 -2
  44. package/dist/accounts/index.es.js +13 -13
  45. package/dist/analytics/index.es.js +2 -2
  46. package/dist/budgets/api/BudgetsApi.d.ts +2 -2
  47. package/dist/budgets/index.es.js +10 -10
  48. package/dist/cashflow/api/CashflowApi.d.ts +3 -2
  49. package/dist/cashflow/index.es.js +10 -10
  50. package/dist/categories/index.es.js +2 -2
  51. package/dist/common/api/AnalyticsApi.d.ts +2 -2
  52. package/dist/common/api/AppDataApi.d.ts +2 -2
  53. package/dist/common/api/BeatApi.d.ts +2 -2
  54. package/dist/common/api/CategoryApi.d.ts +2 -3
  55. package/dist/common/api/GlobalCopyApi.d.ts +2 -1
  56. package/dist/common/api/LocalizedCopyApi.d.ts +2 -1
  57. package/dist/common/api/NotificationApi.d.ts +2 -2
  58. package/dist/common/api/ScheduledPaymentsApi.d.ts +3 -2
  59. package/dist/common/api/UserApi.d.ts +2 -2
  60. package/dist/common/context/GlobalDataProvider.d.ts +3 -2
  61. package/dist/common/context/hooks.d.ts +4 -1
  62. package/dist/common/context/index.d.ts +1 -1
  63. package/dist/common/index.es.js +252 -246
  64. package/dist/common/stores/GlobalStore.d.ts +3 -2
  65. package/dist/common/types/Handlers.d.ts +2 -0
  66. package/dist/common/types/index.d.ts +1 -0
  67. package/dist/common/utils/Fetch.d.ts +3 -1
  68. package/dist/dashboard/index.es.js +2 -2
  69. package/dist/debts/index.es.js +9 -9
  70. package/dist/{exportTransactionsToCSV-zyHeWfQo.mjs → exportTransactionsToCSV-21c0EV3t.mjs} +1 -1
  71. package/dist/finstrong/api/FinstrongApi.d.ts +2 -1
  72. package/dist/finstrong/index.es.js +7 -7
  73. package/dist/goals/api/GoalApi.d.ts +3 -2
  74. package/dist/goals/index.es.js +11 -11
  75. package/dist/help/api/HelpApi.d.ts +2 -2
  76. package/dist/help/index.es.js +3 -3
  77. package/dist/hooks-BhSK6dal.mjs +74 -0
  78. package/dist/insights/index.es.js +1 -1
  79. package/dist/investments/api/HoldingApi.d.ts +3 -2
  80. package/dist/investments/index.es.js +3 -3
  81. package/dist/merchants/api/MerchantApi.d.ts +2 -1
  82. package/dist/merchants/index.es.js +2 -2
  83. package/dist/microinsights/context/InsightsMicroWidgetDataProvider.d.ts +2 -1
  84. package/dist/microinsights/context/hooks.d.ts +1 -1
  85. package/dist/microinsights/index.es.js +1 -1
  86. package/dist/networth/index.es.js +7 -7
  87. package/dist/notifications/index.es.js +5 -5
  88. package/dist/recurringtransactions/api/RepeatingTransactionsApi.d.ts +2 -2
  89. package/dist/recurringtransactions/index.es.js +10 -10
  90. package/dist/settings/api/SettingsApi.d.ts +3 -2
  91. package/dist/settings/index.es.js +7 -7
  92. package/dist/spending/index.es.js +4 -4
  93. package/dist/transactions/api/TransactionApi.d.ts +3 -2
  94. package/dist/transactions/index.es.js +14 -14
  95. package/dist/trends/index.es.js +11 -11
  96. package/dist/{useCombineEvents-DaDBSR_1.mjs → useCombineEvents-BUDIR1ba.mjs} +29 -29
  97. package/dist/{useInsightsEnabled-fGr6xrSj.mjs → useInsightsEnabled-DqM4sFO1.mjs} +1 -1
  98. package/package.json +1 -1
  99. package/dist/MerchantStore-DVH-QOf0.mjs +0 -37
  100. package/dist/hooks-DlI63qSB.mjs +0 -71
@@ -11,29 +11,29 @@ import { fromUnixTime as u } from "date-fns/fromUnixTime";
11
11
  import { getUnixTime as h } from "date-fns/getUnixTime";
12
12
  import { isBefore as B } from "date-fns/isBefore";
13
13
  import { startOfMonth as R } from "date-fns/startOfMonth";
14
- import { startOfToday as b } from "date-fns/startOfToday";
14
+ import { startOfToday as G } from "date-fns/startOfToday";
15
15
  import { subDays as Y } from "date-fns/subDays";
16
- import { O as n, a as G, T as F } from "./User-D-O9EHMb.mjs";
17
- import { T as p } from "./TransactionApi-DbbcjI2L.mjs";
16
+ import { O as n, a as b, T as F } from "./User-BYkzrOdM.mjs";
17
+ import { T as p } from "./TransactionApi-B3Tksf7L.mjs";
18
18
  import { b as W } from "./Category-CevNQ03n.mjs";
19
- import { f as z } from "./exportTransactionsToCSV-zyHeWfQo.mjs";
19
+ import { f as z } from "./exportTransactionsToCSV-21c0EV3t.mjs";
20
20
  import { format as k } from "date-fns/format";
21
21
  import { f as g, D as O, O as $ } from "./Dialog-CWW597AF.mjs";
22
22
  import { endOfMonth as X } from "date-fns/endOfMonth";
23
- import { B as f } from "./BeatApi-DLu87ijw.mjs";
23
+ import { B as f } from "./BeatApi-DhJpgCLz.mjs";
24
24
  const j = ({
25
- checked: S = !1,
25
+ checked: N = !1,
26
26
  label: t,
27
27
  sx: a = {},
28
28
  tooltip: e = "",
29
29
  value: A
30
30
  }) => {
31
- const _ = K(), i = _.palette.mode === "light" ? _.palette.grey[400] : _.palette.grey[700], c = S ? _.palette.action.active : i;
31
+ const _ = K(), i = _.palette.mode === "light" ? _.palette.grey[400] : _.palette.grey[700], c = N ? _.palette.action.active : i;
32
32
  return /* @__PURE__ */ C(
33
33
  H,
34
34
  {
35
35
  bgcolor: "background.paper",
36
- border: `${S ? 3 : 1}px solid`,
36
+ border: `${N ? 3 : 1}px solid`,
37
37
  borderColor: c,
38
38
  borderRadius: 2,
39
39
  mt: -2,
@@ -322,14 +322,14 @@ const j = ({
322
322
  category: o.TRANSACTIONS_WIDGET,
323
323
  label: r.DELETE_TRANSACTION
324
324
  }
325
- }, Z = async (S, t) => !t || !m[S] ? null : t.sendAnalyticEvent(m[S]), L = {
325
+ }, Z = async (N, t) => !t || !m[N] ? null : t.sendAnalyticEvent(m[N]), L = {
326
326
  FLAG: "flag",
327
327
  DATE: "date",
328
328
  PAYEE: "payee",
329
329
  CATEGORY: "category",
330
330
  ACCOUNT: "account",
331
331
  AMOUNT: "amount"
332
- }, q = (S, t, a, e = []) => {
332
+ }, q = (N, t, a, e = []) => {
333
333
  const A = t.reduce((c, s) => ({ ...c, [s.guid]: s }), {}), _ = a.reduce((c, s) => ({ ...c, [s.guid]: s }), {}), i = e.reduce((c, s) => {
334
334
  const { transaction_guid: l, tag_guid: I } = s;
335
335
  if (!c[l])
@@ -343,7 +343,7 @@ const j = ({
343
343
  [l]: E
344
344
  };
345
345
  }, {});
346
- return S.map((c) => {
346
+ return N.map((c) => {
347
347
  const s = A[c.account_guid], l = c.category_guid ? _[c.category_guid] : null, I = i[c.guid] ?? [];
348
348
  return {
349
349
  ...c,
@@ -352,42 +352,42 @@ const j = ({
352
352
  accountIsHidden: s?.is_hidden,
353
353
  category: l?.name || "Uncategorized",
354
354
  isIncome: c.top_level_category_guid === W.INCOME,
355
- isPending: c.feed_status === G.PENDING,
355
+ isPending: c.feed_status === b.PENDING,
356
356
  number: s?.account_number || "",
357
357
  payee: c.description,
358
358
  tags: I
359
359
  };
360
360
  });
361
- }, J = "uncategorized", Q = (S, t, a, e, A, _) => {
362
- const i = tt(S, A, _), c = at(i, a, e);
361
+ }, J = "uncategorized", Q = (N, t, a, e, A, _) => {
362
+ const i = tt(N, A, _), c = at(i, a, e);
363
363
  return t.forEach((s) => {
364
364
  const l = c.findIndex((E) => E.guid === s), I = _.filter((E) => E.parent_guid === s);
365
365
  c.splice(l + 1, 0, ...I);
366
366
  }), c;
367
- }, tt = (S, t, a) => {
367
+ }, tt = (N, t, a) => {
368
368
  const {
369
369
  accounts: e = [],
370
- dateRange: A = { start: R(b()), end: D() },
370
+ dateRange: A = { start: R(G()), end: D() },
371
371
  custom: _ = () => !0,
372
372
  searchTerm: i = "",
373
373
  showSplits: c = !1
374
- } = S;
374
+ } = N;
375
375
  return a.filter((s) => c ? !s.has_been_split : !s.parent_guid).filter((s) => !!e.find((l) => l === s.account_guid)).filter((s) => s.date >= h(A.start) && s.date <= h(A.end)).filter(_).filter((s) => {
376
376
  if (i === J && s.has_been_split)
377
377
  return !1;
378
378
  if (/^spl/i.test(i) && (s.has_been_split || s.parent_guid))
379
379
  return !0;
380
380
  const I = s.tags.some(
381
- (x) => N(i, t.find((M) => M.guid === x)?.name)
381
+ (x) => S(i, t.find((M) => M.guid === x)?.name)
382
382
  ), E = u(s.date);
383
- return N(i, s.payee) || N(i, s.feed_description) || N(i, s.category) || N(i, g(E, O.MONTH)) || N(i, g(E, O.DAY)) || N(i, g(E, O.FULL_MONTH_DAY)) || N(i, g(E, O.MONTH_DAY_YEAR)) || N(i, k(E, $)) || N(i, s.account) || N(i, `${s.amount}`) || N(i, s.memo) || I;
383
+ return S(i, s.payee) || S(i, s.feed_description) || S(i, s.category) || S(i, g(E, O.MONTH)) || S(i, g(E, O.DAY)) || S(i, g(E, O.FULL_MONTH_DAY)) || S(i, g(E, O.MONTH_DAY_YEAR)) || S(i, k(E, $)) || S(i, s.account) || S(i, `${s.amount}`) || S(i, s.memo) || I;
384
384
  });
385
- }, at = (S, t, a) => [...S].sort((e, A) => {
385
+ }, at = (N, t, a) => [...N].sort((e, A) => {
386
386
  const _ = t, i = (e[_] || "") > (A[_] || "");
387
387
  let c = i ? -1 : 1, s = i ? 1 : -1;
388
388
  return (t === L.DATE || t === L.AMOUNT) && (c = i ? 1 : -1, s = i ? -1 : 1), a === w.ASC ? c : s;
389
- }), N = (S, t) => {
390
- const a = S.toLowerCase().split(" "), e = t?.toString().toLowerCase() ?? "";
389
+ }), S = (N, t) => {
390
+ const a = N.toLowerCase().split(" "), e = t?.toString().toLowerCase() ?? "";
391
391
  return a.every((A) => e.indexOf(A) > -1);
392
392
  }, et = {
393
393
  account_guid: "",
@@ -397,7 +397,7 @@ const j = ({
397
397
  description: "",
398
398
  duplicate: !1,
399
399
  feed_description: "",
400
- feed_status: G.POSTED,
400
+ feed_status: b.POSTED,
401
401
  feed_transaction_date: 0,
402
402
  has_been_split: !1,
403
403
  has_been_viewed: !1,
@@ -465,7 +465,7 @@ class mt {
465
465
  api = new p("/", "");
466
466
  beatApi = new f("/", "");
467
467
  associatedBeats = [];
468
- cachedStartDate = Y(b(), 90);
468
+ cachedStartDate = Y(G(), 90);
469
469
  filter = {};
470
470
  isLoading = !0;
471
471
  rawTransactions = [];
@@ -476,7 +476,11 @@ class mt {
476
476
  transactionRules = [];
477
477
  onAnalyticEvent = Z;
478
478
  constructor(t) {
479
- this.globalStore = t, this.uiStore = new it(), this.api = new p(t.endpoint, t.sessionToken), this.beatApi = new f(t.endpoint, t.sessionToken), y(this);
479
+ this.globalStore = t, this.uiStore = new it(), this.api = new p(
480
+ t.endpoint,
481
+ t.sessionToken,
482
+ t.onError
483
+ ), this.beatApi = new f(t.endpoint, t.sessionToken, t.onError), y(this);
480
484
  }
481
485
  loadTransactionData = async ({
482
486
  associatedBeats: t,
@@ -12,7 +12,7 @@ import Dt from "@mui/material/CardContent";
12
12
  import P from "@mui/material/Divider";
13
13
  import X from "@mui/material/Grid";
14
14
  import { CategoryIcon as At, Text as S } from "@mxenabled/mxui";
15
- import { u as Lt, l as Q } from "./hooks-DlI63qSB.mjs";
15
+ import { u as Lt, l as Q } from "./hooks-BhSK6dal.mjs";
16
16
  import { b as Rt } from "./Localization-2MODESHW.mjs";
17
17
  import { C as O } from "./CurrencyText-YUhH2caW.mjs";
18
18
  import { useTheme as wt, Card as Ht, CardContent as It, Box as kt } from "@mui/material";
@@ -22,7 +22,7 @@ import { isWithinInterval as Q } from "date-fns/isWithinInterval";
22
22
  import nn from "@mui/material/styles/useTheme";
23
23
  import k from "@mui/material/ListItem";
24
24
  import an from "@mui/material/ListItemButton";
25
- import { f as tn } from "./hooks-DlI63qSB.mjs";
25
+ import { f as tn } from "./hooks-BhSK6dal.mjs";
26
26
  const on = ({ copy: n, date: a, onNextClick: o, onPreviousClick: r }) => {
27
27
  const c = v(), l = en(c);
28
28
  return /* @__PURE__ */ h("div", { className: `mx-cmn-calendar-header ${l}`, children: [