@mx-cartographer/experiences 7.0.11-alpha.al0 → 7.0.11-alpha.mega1
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 +8 -0
- package/dist/{Account-D_kRKI6x.mjs → Account-BW3-oYEs.mjs} +1 -1
- package/dist/{AccountDetailsContent-Dfja2v8K.mjs → AccountDetailsContent-Tm7IjJIc.mjs} +16 -16
- package/dist/{AccountDetailsHeader-nc5mqlHm.mjs → AccountDetailsHeader-sum_Bgdy.mjs} +5 -5
- package/dist/{AccountFields-DeebSePp.mjs → AccountFields-CIz-r3gP.mjs} +2 -2
- package/dist/{AccountListItem-dh03tivj.mjs → AccountListItem-B-ZjJ4Gp.mjs} +3 -3
- package/dist/{AccountStore-Cp7xWX8n.mjs → AccountStore-BaMynkQT.mjs} +11 -11
- package/dist/{Accounts-DppzmFak.mjs → Accounts-CA-nqAjT.mjs} +1 -1
- package/dist/{BeatApi-D0WcLW3O.mjs → BeatApi-DLu87ijw.mjs} +3 -3
- package/dist/{BeatStore-y6WVs07e.mjs → BeatStore-By4aGoRM.mjs} +17 -17
- package/dist/{BudgetUtil-DmWvHV7C.mjs → BudgetUtil-CeSLAcsl.mjs} +1 -1
- package/dist/{CategorySelectorDrawer-uTU7Nwn2.mjs → CategorySelectorDrawer-BPvjZ-Xo.mjs} +1 -1
- package/dist/{CategoryStore-BfYppD3g.mjs → CategoryStore-BOyzQjQp.mjs} +4 -4
- package/dist/{ConnectDrawer-BfYwIgKa.mjs → ConnectDrawer-phFH6OHt.mjs} +5 -5
- package/dist/{ConnectionsDrawer-BKG07Loi.mjs → ConnectionsDrawer-ihxkAi1P.mjs} +2 -2
- package/dist/{CurrencyInput-BtrNBP3z.mjs → CurrencyInput-bEx2Mbd0.mjs} +1 -1
- package/dist/{DebtsStore-BR1o55kk.mjs → DebtsStore-Dp-CraCD.mjs} +1 -1
- package/dist/{ExportCsvAction-BH369hls.mjs → ExportCsvAction-CbMfQ2Wa.mjs} +3 -3
- package/dist/{Fetch-CJ9cgjgV.mjs → Fetch-CkFKy79O.mjs} +8 -9
- package/dist/{FinstrongStore-rC2F4Tq3.mjs → FinstrongStore-mkALvztw.mjs} +4 -4
- package/dist/{GoalStore-rZKi2YjE.mjs → GoalStore-BWHkOQ8o.mjs} +21 -21
- package/dist/{Help-t24Ldz-O.mjs → Help-B3oENhkG.mjs} +1 -1
- package/dist/{LineChart-CfEEnHUy.mjs → LineChart-BWWmmJxV.mjs} +204 -183
- package/dist/{ListItemAction-Cwadpg85.mjs → ListItemAction-DNZZ5fSa.mjs} +1 -1
- package/dist/{ManageIncome-xksS_sWM.mjs → ManageIncome-Bef4VWt7.mjs} +4 -4
- package/dist/MerchantStore-DVH-QOf0.mjs +37 -0
- package/dist/{MicroWidgetContainer-DwTAjSdX.mjs → MicroWidgetContainer-Dxz8uBN9.mjs} +1 -1
- package/dist/{MiniWidgetContainer-CxggrnHk.mjs → MiniWidgetContainer-CTyjmE1h.mjs} +1 -1
- package/dist/{NetWorthStore-5qSDIglU.mjs → NetWorthStore-B6xF9eGH.mjs} +2 -2
- package/dist/{NotificationSettings-Cny7J1hO.mjs → NotificationSettings-uXVwpIa1.mjs} +2 -2
- package/dist/{NotificationStore-DpV9hXSE.mjs → NotificationStore-DHtSGySy.mjs} +4 -8
- package/dist/{OriginalBalanceAction-DDMRgIBU.mjs → OriginalBalanceAction-DepsKiJz.mjs} +3 -3
- package/dist/{RecurringSettings-DXQ64A8U.mjs → RecurringSettings-1EOh67IT.mjs} +3 -3
- package/dist/{RecurringTransactionsStore-CXhnipfd.mjs → RecurringTransactionsStore-D62XJtdL.mjs} +16 -20
- package/dist/{SettingsStore-CLLqNa_S.mjs → SettingsStore-B4gi6oOw.mjs} +29 -33
- package/dist/{TransactionApi-C0HMGDBV.mjs → TransactionApi-DbbcjI2L.mjs} +29 -29
- package/dist/TransactionDetails-DYF-P762.mjs +1337 -0
- package/dist/{TransactionStore-Cu_KM_J9.mjs → TransactionStore-0tLtBEIC.mjs} +25 -29
- package/dist/TrendsStore-WrHxzdbQ.mjs +565 -0
- package/dist/{Transaction-CXMMfhz-.mjs → User-Dq9Qj764.mjs} +48 -46
- package/dist/{ViewMoreMicroCard-DJoNOqkD.mjs → ViewMoreMicroCard-BZI5VMNW.mjs} +2 -5
- package/dist/{WidgetContainer-QcfqagZD.mjs → WidgetContainer-C2NBfpDg.mjs} +2 -2
- package/dist/accounts/api/AccountApi.d.ts +2 -2
- package/dist/accounts/index.es.js +17 -17
- package/dist/analytics/index.es.js +2 -2
- package/dist/budgets/api/BudgetsApi.d.ts +2 -2
- package/dist/budgets/index.es.js +10 -10
- package/dist/cashflow/api/CashflowApi.d.ts +2 -3
- package/dist/cashflow/index.es.js +10 -10
- package/dist/categories/index.es.js +2 -2
- package/dist/common/api/AnalyticsApi.d.ts +2 -2
- package/dist/common/api/AppDataApi.d.ts +2 -2
- package/dist/common/api/BeatApi.d.ts +2 -2
- package/dist/common/api/CategoryApi.d.ts +3 -2
- package/dist/common/api/GlobalCopyApi.d.ts +1 -2
- package/dist/common/api/LocalizedCopyApi.d.ts +1 -2
- package/dist/common/api/NotificationApi.d.ts +2 -2
- package/dist/common/api/ScheduledPaymentsApi.d.ts +2 -3
- package/dist/common/api/UserApi.d.ts +2 -2
- package/dist/common/context/GlobalDataProvider.d.ts +2 -3
- package/dist/common/context/hooks.d.ts +1 -4
- package/dist/common/context/index.d.ts +1 -1
- package/dist/common/index.es.js +315 -321
- package/dist/common/stores/GlobalStore.d.ts +1 -2
- package/dist/common/types/index.d.ts +0 -1
- package/dist/common/utils/Fetch.d.ts +1 -3
- package/dist/dashboard/index.es.js +7 -7
- package/dist/debts/index.es.js +197 -180
- package/dist/{exportTransactionsToCSV-DpP_a1g8.mjs → exportTransactionsToCSV-BDlt8u0n.mjs} +1 -1
- package/dist/finstrong/api/FinstrongApi.d.ts +1 -2
- package/dist/finstrong/index.es.js +7 -7
- package/dist/goals/api/GoalApi.d.ts +2 -3
- package/dist/goals/index.es.js +11 -11
- package/dist/help/api/HelpApi.d.ts +2 -2
- package/dist/help/index.es.js +3 -3
- package/dist/hooks-DkUqN6JE.mjs +71 -0
- package/dist/insights/index.es.js +1 -1
- package/dist/investments/api/HoldingApi.d.ts +2 -3
- package/dist/investments/index.es.js +3 -3
- package/dist/merchants/api/MerchantApi.d.ts +1 -2
- package/dist/merchants/index.es.js +2 -2
- package/dist/microinsights/context/InsightsMicroWidgetDataProvider.d.ts +1 -2
- package/dist/microinsights/context/hooks.d.ts +1 -1
- package/dist/microinsights/index.es.js +1 -1
- package/dist/networth/index.es.js +7 -7
- package/dist/notifications/index.es.js +5 -5
- package/dist/recurringtransactions/api/RepeatingTransactionsApi.d.ts +2 -2
- package/dist/recurringtransactions/index.es.js +10 -10
- package/dist/settings/api/SettingsApi.d.ts +2 -3
- package/dist/settings/index.es.js +7 -7
- package/dist/spending/index.es.js +4 -4
- package/dist/transactions/api/TransactionApi.d.ts +2 -3
- package/dist/transactions/components/shared/transactiondetails/Description.d.ts +1 -0
- package/dist/transactions/components/shared/transactiondetails/TransactionDetailsView.d.ts +8 -0
- package/dist/transactions/index.es.js +121 -120
- package/dist/trends/index.es.js +10 -10
- package/dist/{useCombineEvents-Dbjzfwvo.mjs → useCombineEvents-DaDBSR_1.mjs} +29 -29
- package/package.json +1 -1
- package/dist/MerchantStore-h96aTml7.mjs +0 -37
- package/dist/TransactionDetails-v77agHHP.mjs +0 -1280
- package/dist/TrendsStore-B4Q-iLX0.mjs +0 -547
- package/dist/common/types/Handlers.d.ts +0 -2
- package/dist/hooks-DcS6DyRl.mjs +0 -74
|
@@ -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
|
|
14
|
+
import { startOfToday as b } from "date-fns/startOfToday";
|
|
15
15
|
import { subDays as Y } from "date-fns/subDays";
|
|
16
|
-
import { O as n, a as
|
|
17
|
-
import { T as p } from "./TransactionApi-
|
|
16
|
+
import { O as n, a as G, T as F } from "./User-Dq9Qj764.mjs";
|
|
17
|
+
import { T as p } from "./TransactionApi-DbbcjI2L.mjs";
|
|
18
18
|
import { b as W } from "./Category-CevNQ03n.mjs";
|
|
19
|
-
import { f as z } from "./exportTransactionsToCSV-
|
|
19
|
+
import { f as z } from "./exportTransactionsToCSV-BDlt8u0n.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-
|
|
23
|
+
import { B as f } from "./BeatApi-DLu87ijw.mjs";
|
|
24
24
|
const j = ({
|
|
25
|
-
checked:
|
|
25
|
+
checked: S = !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 =
|
|
31
|
+
const _ = K(), i = _.palette.mode === "light" ? _.palette.grey[400] : _.palette.grey[700], c = S ? _.palette.action.active : i;
|
|
32
32
|
return /* @__PURE__ */ C(
|
|
33
33
|
H,
|
|
34
34
|
{
|
|
35
35
|
bgcolor: "background.paper",
|
|
36
|
-
border: `${
|
|
36
|
+
border: `${S ? 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 (
|
|
325
|
+
}, Z = async (S, t) => !t || !m[S] ? null : t.sendAnalyticEvent(m[S]), 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 = (
|
|
332
|
+
}, q = (S, 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
|
|
346
|
+
return S.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 ===
|
|
355
|
+
isPending: c.feed_status === G.PENDING,
|
|
356
356
|
number: s?.account_number || "",
|
|
357
357
|
payee: c.description,
|
|
358
358
|
tags: I
|
|
359
359
|
};
|
|
360
360
|
});
|
|
361
|
-
}, J = "uncategorized", Q = (
|
|
362
|
-
const i = tt(
|
|
361
|
+
}, J = "uncategorized", Q = (S, t, a, e, A, _) => {
|
|
362
|
+
const i = tt(S, 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 = (
|
|
367
|
+
}, tt = (S, t, a) => {
|
|
368
368
|
const {
|
|
369
369
|
accounts: e = [],
|
|
370
|
-
dateRange: A = { start: R(
|
|
370
|
+
dateRange: A = { start: R(b()), end: D() },
|
|
371
371
|
custom: _ = () => !0,
|
|
372
372
|
searchTerm: i = "",
|
|
373
373
|
showSplits: c = !1
|
|
374
|
-
} =
|
|
374
|
+
} = S;
|
|
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) =>
|
|
381
|
+
(x) => N(i, t.find((M) => M.guid === x)?.name)
|
|
382
382
|
), E = u(s.date);
|
|
383
|
-
return
|
|
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;
|
|
384
384
|
});
|
|
385
|
-
}, at = (
|
|
385
|
+
}, at = (S, t, a) => [...S].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
|
-
}),
|
|
390
|
-
const a =
|
|
389
|
+
}), N = (S, t) => {
|
|
390
|
+
const a = S.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:
|
|
400
|
+
feed_status: G.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(
|
|
468
|
+
cachedStartDate = Y(b(), 90);
|
|
469
469
|
filter = {};
|
|
470
470
|
isLoading = !0;
|
|
471
471
|
rawTransactions = [];
|
|
@@ -476,11 +476,7 @@ 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(
|
|
480
|
-
t.endpoint,
|
|
481
|
-
t.sessionToken,
|
|
482
|
-
t.onError
|
|
483
|
-
), this.beatApi = new f(t.endpoint, t.sessionToken, t.onError), y(this);
|
|
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);
|
|
484
480
|
}
|
|
485
481
|
loadTransactionData = async ({
|
|
486
482
|
associatedBeats: t,
|