@mx-cartographer/experiences 7.2.24 → 7.2.25-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.
- package/CHANGELOG.md +4 -0
- package/dist/{AccountStore-BkoLK9Tq.mjs → AccountStore-DBR3yHZj.mjs} +1 -1
- package/dist/{BeatApi-DhJpgCLz.mjs → BeatApi-CPRqC_fW.mjs} +1 -1
- package/dist/{BeatStore-IBnXd4YK.mjs → BeatStore-D-NluJ_K.mjs} +1 -1
- package/dist/{CategoryStore-BCcpI3oJ.mjs → CategoryStore-CKWr4NqT.mjs} +1 -1
- package/dist/{Fetch-87LIQbEA.mjs → Fetch-BPlNre0K.mjs} +24 -22
- package/dist/{FinstrongStore-F2c607dj.mjs → FinstrongStore-CQu63kfy.mjs} +1 -1
- package/dist/{GoalStore-DZ_Jvsa_.mjs → GoalStore-C94epcja.mjs} +1 -1
- package/dist/{MerchantStore-DrFvsUyy.mjs → MerchantStore-CMRVStpv.mjs} +1 -1
- package/dist/{NotificationStore-86g0bKKR.mjs → NotificationStore-DW2WMonK.mjs} +1 -1
- package/dist/{RecurringTransactionsStore-DrzS1LmF.mjs → RecurringTransactionsStore-BewTpk5R.mjs} +1 -1
- package/dist/{SettingsStore-BcgS_Ohv.mjs → SettingsStore-CqwQAKU7.mjs} +2 -2
- package/dist/TransactionApi-DRRkE2ks.mjs +86 -0
- package/dist/{TransactionStore-hfOsBbDt.mjs → TransactionStore-BcxF9tiX.mjs} +2 -2
- package/dist/{ViewMoreMicroCard-SCn2wt4i.mjs → ViewMoreMicroCard-BqEfwQtE.mjs} +2 -2
- package/dist/accounts/index.es.js +1 -1
- package/dist/cashflow/index.es.js +1 -1
- package/dist/categories/index.es.js +1 -1
- package/dist/common/index.es.js +19 -19
- package/dist/finstrong/index.es.js +1 -1
- package/dist/goals/index.es.js +2 -2
- package/dist/insights/index.es.js +1 -1
- package/dist/merchants/index.es.js +1 -1
- package/dist/microinsights/index.es.js +1 -1
- package/dist/notifications/index.es.js +3 -3
- package/dist/recurringtransactions/index.es.js +2 -2
- package/dist/settings/index.es.js +1 -1
- package/dist/transactions/index.es.js +3 -3
- package/dist/trends/index.es.js +1 -1
- package/dist/{useCombineEvents-BUDIR1ba.mjs → useCombineEvents-D8QtjV3s.mjs} +1 -1
- package/package.json +1 -1
- package/dist/TransactionApi-B3Tksf7L.mjs +0 -86
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
## [7.2.25] - 12-04-2025
|
|
2
|
+
|
|
3
|
+
- **UPDATED** - `Fetch` to throw 401 error on `PUT` so that Insights can handle logging user out
|
|
4
|
+
|
|
1
5
|
## [7.2.24] - 12-05-2025
|
|
2
6
|
|
|
3
7
|
- **FIXED** - `mark_all_as_viewd` API called after getting `notifications` api response in `Notifications List`.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { makeAutoObservable as A, runInAction as a } from "mobx";
|
|
2
2
|
import { i as f } from "./User-BQUxBeZV.mjs";
|
|
3
|
-
import { F as p, A as i } from "./Fetch-
|
|
3
|
+
import { F as p, A as i } from "./Fetch-BPlNre0K.mjs";
|
|
4
4
|
import { A as c, h as d, d as h, E as y, i as I, j as b } from "./ConnectDrawer-Bw5s6Dw1.mjs";
|
|
5
5
|
class _ {
|
|
6
6
|
fetchInstance;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { makeAutoObservable as c, runInAction as r } from "mobx";
|
|
2
|
-
import { B as l } from "./BeatApi-
|
|
2
|
+
import { B as l } from "./BeatApi-CPRqC_fW.mjs";
|
|
3
3
|
function d(t, e, s, i = "asc") {
|
|
4
4
|
const a = i === "desc" ? -1 : 1;
|
|
5
5
|
return [...t, ...e].sort((_, n) => _[s] < n[s] ? -1 * a : _[s] > n[s] ? 1 * a : 0);
|
|
@@ -4,7 +4,7 @@ import { subMonths as g } from "date-fns/subMonths";
|
|
|
4
4
|
import { startOfMonth as h } from "date-fns/startOfMonth";
|
|
5
5
|
import { endOfMonth as d } from "date-fns/endOfMonth";
|
|
6
6
|
import { a as T, g as m } from "./CategoryUtil-BR3H5i6n.mjs";
|
|
7
|
-
import { F as p, A as i } from "./Fetch-
|
|
7
|
+
import { F as p, A as i } from "./Fetch-BPlNre0K.mjs";
|
|
8
8
|
import { b as f, c as w } from "./Category-CevNQ03n.mjs";
|
|
9
9
|
class y {
|
|
10
10
|
fetchInstance;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as
|
|
1
|
+
import { g as i } from "./Localization-2MODESHW.mjs";
|
|
2
2
|
const E = {
|
|
3
3
|
ACCOUNTS: "accounts",
|
|
4
4
|
ANALYTICS_EVENTS: "analytics_events",
|
|
@@ -46,26 +46,26 @@ const E = {
|
|
|
46
46
|
USER_PROFILES: "user_profiles",
|
|
47
47
|
WIDGET_URLS: "widget_urls"
|
|
48
48
|
};
|
|
49
|
-
class
|
|
49
|
+
class _ {
|
|
50
50
|
endpoint = "/";
|
|
51
51
|
headers;
|
|
52
52
|
onError;
|
|
53
|
-
constructor(
|
|
54
|
-
this.endpoint =
|
|
53
|
+
constructor(n, s, t, o) {
|
|
54
|
+
this.endpoint = n;
|
|
55
55
|
const e = {
|
|
56
56
|
Accept: "application/json",
|
|
57
|
-
"Accept-Language":
|
|
57
|
+
"Accept-Language": i(),
|
|
58
58
|
"Content-Type": "application/json",
|
|
59
|
-
"MD-Session-Token":
|
|
59
|
+
"MD-Session-Token": s
|
|
60
60
|
};
|
|
61
61
|
this.headers = t || e, this.onError = o;
|
|
62
62
|
}
|
|
63
|
-
get = async (
|
|
64
|
-
const
|
|
63
|
+
get = async (n) => {
|
|
64
|
+
const s = {
|
|
65
65
|
method: "GET",
|
|
66
66
|
headers: this.headers
|
|
67
67
|
};
|
|
68
|
-
return fetch(`${this.endpoint}${
|
|
68
|
+
return fetch(`${this.endpoint}${n}`, s).then((t) => {
|
|
69
69
|
if (t.ok)
|
|
70
70
|
return t.text();
|
|
71
71
|
throw t;
|
|
@@ -73,13 +73,13 @@ class S {
|
|
|
73
73
|
throw this.onError?.(t, void 0, "ApiGetRequestError"), t;
|
|
74
74
|
});
|
|
75
75
|
};
|
|
76
|
-
post = async (
|
|
77
|
-
const t =
|
|
76
|
+
post = async (n, s) => {
|
|
77
|
+
const t = s ? JSON.stringify(s) : void 0, o = {
|
|
78
78
|
method: "POST",
|
|
79
79
|
headers: this.headers,
|
|
80
80
|
body: t
|
|
81
81
|
};
|
|
82
|
-
return fetch(`${this.endpoint}${
|
|
82
|
+
return fetch(`${this.endpoint}${n}`, o).then((e) => {
|
|
83
83
|
if (!e.ok)
|
|
84
84
|
throw e;
|
|
85
85
|
return e.text();
|
|
@@ -87,24 +87,26 @@ class S {
|
|
|
87
87
|
throw e;
|
|
88
88
|
});
|
|
89
89
|
};
|
|
90
|
-
put = async (
|
|
91
|
-
const t = JSON.stringify(
|
|
90
|
+
put = async (n, s) => {
|
|
91
|
+
const t = JSON.stringify(s), o = {
|
|
92
92
|
method: "PUT",
|
|
93
93
|
headers: this.headers,
|
|
94
94
|
body: t
|
|
95
95
|
};
|
|
96
|
-
return fetch(`${this.endpoint}${
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
throw e;
|
|
96
|
+
return fetch(`${this.endpoint}${n}`, o).then((e) => {
|
|
97
|
+
if (e.ok)
|
|
98
|
+
return e.text();
|
|
99
|
+
throw new Error(`${e.status}`);
|
|
100
|
+
}).then((e) => e.length ? JSON.parse(e) : {}).then((e) => e).catch((e) => {
|
|
101
|
+
throw console.log("made it! 1"), e.message === 401 && (console.log("made it! 2"), this.onError?.(e.message)), e.message;
|
|
100
102
|
});
|
|
101
103
|
};
|
|
102
|
-
delete = async (
|
|
103
|
-
const
|
|
104
|
+
delete = async (n) => {
|
|
105
|
+
const s = {
|
|
104
106
|
method: "DELETE",
|
|
105
107
|
headers: this.headers
|
|
106
108
|
};
|
|
107
|
-
return fetch(`${this.endpoint}${
|
|
109
|
+
return fetch(`${this.endpoint}${n}`, s).then((t) => t.ok ? t.text() : t.text().then((o) => {
|
|
108
110
|
throw new Error(o);
|
|
109
111
|
})).then((t) => t.length ? JSON.parse(t) : {}).then((t) => t).catch((t) => {
|
|
110
112
|
throw t;
|
|
@@ -113,5 +115,5 @@ class S {
|
|
|
113
115
|
}
|
|
114
116
|
export {
|
|
115
117
|
E as A,
|
|
116
|
-
|
|
118
|
+
_ as F
|
|
117
119
|
};
|
|
@@ -3,7 +3,7 @@ import { format as i } from "date-fns/format";
|
|
|
3
3
|
import { fromUnixTime as g } from "date-fns/fromUnixTime";
|
|
4
4
|
import { getUnixTime as s } from "date-fns/getUnixTime";
|
|
5
5
|
import { subMonths as S } from "date-fns/subMonths";
|
|
6
|
-
import { F as m, A as o } from "./Fetch-
|
|
6
|
+
import { F as m, A as o } from "./Fetch-BPlNre0K.mjs";
|
|
7
7
|
import { f as p, D as u } from "./Dialog-CWW597AF.mjs";
|
|
8
8
|
class n {
|
|
9
9
|
fetchInstance;
|
|
@@ -10,7 +10,7 @@ import { Text as A } from "@mxenabled/mxui";
|
|
|
10
10
|
import { l as b } from "./ConnectDrawer-Bw5s6Dw1.mjs";
|
|
11
11
|
import { a as y } from "./hooks-D6XlXHf4.mjs";
|
|
12
12
|
import { makeAutoObservable as D, runInAction as c } from "mobx";
|
|
13
|
-
import { F as v, A as i } from "./Fetch-
|
|
13
|
+
import { F as v, A as i } from "./Fetch-BPlNre0K.mjs";
|
|
14
14
|
import { fromUnixTime as G } from "date-fns/fromUnixTime";
|
|
15
15
|
import { addYears as x } from "date-fns/addYears";
|
|
16
16
|
import { getUnixTime as K } from "date-fns/getUnixTime";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { makeAutoObservable as c, observable as f, runInAction as h } from "mobx";
|
|
2
2
|
import { fromUnixTime as o, isSameDay as d } from "date-fns";
|
|
3
|
-
import { F as l, A as a } from "./Fetch-
|
|
3
|
+
import { F as l, A as a } from "./Fetch-BPlNre0K.mjs";
|
|
4
4
|
class s {
|
|
5
5
|
fetchInstance;
|
|
6
6
|
constructor(t, i, n) {
|
package/dist/{RecurringTransactionsStore-DrzS1LmF.mjs → RecurringTransactionsStore-BewTpk5R.mjs}
RENAMED
|
@@ -7,7 +7,7 @@ import { isWithinInterval as m } from "date-fns/isWithinInterval";
|
|
|
7
7
|
import { startOfMonth as S } from "date-fns/startOfMonth";
|
|
8
8
|
import { startOfToday as c } from "date-fns/startOfToday";
|
|
9
9
|
import { subDays as y } from "date-fns/subDays";
|
|
10
|
-
import { F as x, A as o } from "./Fetch-
|
|
10
|
+
import { F as x, A as o } from "./Fetch-BPlNre0K.mjs";
|
|
11
11
|
import { b as E, a, c as d, d as u } from "./RecurringTransactions-ej39mgA6.mjs";
|
|
12
12
|
var A = /* @__PURE__ */ ((r) => (r.Small = "small", r.Medium = "medium", r.Large = "large", r))(A || {});
|
|
13
13
|
const U = 44;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { makeAutoObservable as N, runInAction as l } from "mobx";
|
|
2
|
-
import { F as D, A as r } from "./Fetch-
|
|
2
|
+
import { F as D, A as r } from "./Fetch-BPlNre0K.mjs";
|
|
3
3
|
import { B as f, A as n, I as i } from "./ToggleListItem-r0Kx56wF.mjs";
|
|
4
|
-
import { T as m } from "./TransactionApi-
|
|
4
|
+
import { T as m } from "./TransactionApi-DRRkE2ks.mjs";
|
|
5
5
|
class y {
|
|
6
6
|
fetchInstance;
|
|
7
7
|
constructor(e, t, o) {
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { F as g, A as e } from "./Fetch-BPlNre0K.mjs";
|
|
2
|
+
class u {
|
|
3
|
+
fetchInstance;
|
|
4
|
+
constructor(n, t, a) {
|
|
5
|
+
this.fetchInstance = new g(n, t, void 0, a);
|
|
6
|
+
}
|
|
7
|
+
addTag = async (n) => this.fetchInstance.post(e.TAGS, n).then((t) => t.tag).catch((t) => t);
|
|
8
|
+
addTagging = async (n) => this.fetchInstance.post(e.TAGGINGS, n).then((t) => t.tagging).catch((t) => t);
|
|
9
|
+
addTransaction = async (n) => this.fetchInstance.post(e.TRANSACTIONS, n).then((t) => t.transaction).catch((t) => t);
|
|
10
|
+
addTransactionRule = async (n) => this.fetchInstance.post(e.TRANSACTION_RULES, n).then((t) => t).catch((t) => t);
|
|
11
|
+
getTaggings = async () => this.fetchInstance.get(e.TAGGINGS).then((n) => n.map((t) => t.tagging));
|
|
12
|
+
getTags = async () => this.fetchInstance.get(e.TAGS).then((n) => n.map((t) => t.tag));
|
|
13
|
+
getTransactionRules = async () => this.fetchInstance.get(e.TRANSACTION_RULES).then((n) => n.transaction_rules);
|
|
14
|
+
getTransactionsByDateRange = async (n, t) => this.fetchInstance.get(`${e.TRANSACTIONS}/by_date/${n}/${t}`).then((a) => a.map((c) => c.transaction));
|
|
15
|
+
// DEPRECATED
|
|
16
|
+
getTransactionsByAccountsAndDateRange = async (n, t, a) => {
|
|
17
|
+
console.warn("DEPRECATED: getTransactionsByAccountsAndDateRange will be removed");
|
|
18
|
+
const c = n.reduce(
|
|
19
|
+
(o, s, r) => `${o}account_guids[]=${s}${r !== n.length - 1 ? "&" : ""}`,
|
|
20
|
+
""
|
|
21
|
+
);
|
|
22
|
+
return this.fetchInstance.get(`${e.TRANSACTIONS}/by_date/${t}/${a}?${c}`).then((o) => o.map((s) => s.transaction));
|
|
23
|
+
};
|
|
24
|
+
// DEPRECATED
|
|
25
|
+
getTransactionsByGuids = async (n) => (console.warn("DEPRECATED: getTransactionsByGuids will be removed"), this.fetchInstance.post(`${e.TRANSACTIONS}/by_guids`, { guids: n.join("+") }).then((t) => t.map((a) => a.transaction)));
|
|
26
|
+
// DEPRECATED
|
|
27
|
+
getTransactionsByCategoryAndDate = async (n, t, a) => (console.warn("DEPRECATED: getTransactionsByCategoryAndDate will be removed"), this.fetchInstance.get(
|
|
28
|
+
`${e.TRANSACTIONS}/by_category_guid/${n}/by_date/${t}/${a}`
|
|
29
|
+
).then((c) => c.map((o) => o.transaction)));
|
|
30
|
+
// DEPRECATED
|
|
31
|
+
getTransactionsByCategoryDateAndAccounts = async (n, t, a, c) => {
|
|
32
|
+
console.warn("DEPRECATED: getTransactionsByCategoryDateAndAccounts will be removed");
|
|
33
|
+
const o = c.reduce(
|
|
34
|
+
(s, r, i) => `${s}account_guids[]=${r}${i !== c.length - 1 ? "&" : ""}`,
|
|
35
|
+
""
|
|
36
|
+
);
|
|
37
|
+
return this.fetchInstance.get(
|
|
38
|
+
`${e.TRANSACTIONS}/by_category_guid/${n}/by_date/${t}/${a}?${o}`
|
|
39
|
+
).then((s) => s.map((r) => r.transaction));
|
|
40
|
+
};
|
|
41
|
+
// DEPRECATED
|
|
42
|
+
getTransactionsByCategoriesDateAndAccounts = async (n, t, a, c) => {
|
|
43
|
+
console.warn("DEPRECATED: getTransactionsByCategoriesDateAndAccounts will be removed");
|
|
44
|
+
const o = c.reduce(
|
|
45
|
+
(s, r, i) => `${s}account_guids[]=${r}${i !== c.length - 1 ? "&" : ""}`,
|
|
46
|
+
""
|
|
47
|
+
);
|
|
48
|
+
return this.fetchInstance.get(
|
|
49
|
+
`${e.TRANSACTIONS}/by_category_guids/${n.join(
|
|
50
|
+
"+"
|
|
51
|
+
)}/by_date/${t}/${a}?${o}`
|
|
52
|
+
).then((s) => s.map((r) => r.transaction));
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* DEPRECATED
|
|
56
|
+
* Get all transactions by the top level category, between begin date and end date, and optionally
|
|
57
|
+
* filtered by accounts
|
|
58
|
+
* @param categoryGuid The top level category guid
|
|
59
|
+
* @param beginDate the start date
|
|
60
|
+
* @param endDate the end date
|
|
61
|
+
* @param accountGuids an optional list of account guids
|
|
62
|
+
*/
|
|
63
|
+
getTransactionsByTopLevelCategoryAndDate = async (n, t, a, c = []) => {
|
|
64
|
+
console.warn("DEPRECATED: getTransactionsByTopLevelCategoryAndDate will be removed");
|
|
65
|
+
let o = `${e.TRANSACTIONS}/by_top_level_category_guid/${n}/by_date/${t}/${a}`;
|
|
66
|
+
if (c.length > 0) {
|
|
67
|
+
const s = c.reduce(
|
|
68
|
+
(r, i, h) => `${r}account_guids[]=${i}${h !== c.length - 1 ? "&" : ""}`,
|
|
69
|
+
""
|
|
70
|
+
);
|
|
71
|
+
o += `?${s}`;
|
|
72
|
+
}
|
|
73
|
+
return this.fetchInstance.get(o).then((s) => s.map((r) => r.transaction));
|
|
74
|
+
};
|
|
75
|
+
removeTag = async (n) => this.fetchInstance.delete(`${e.TAGS}/${n}`).then((t) => t).catch((t) => t);
|
|
76
|
+
removeTagging = async (n) => this.fetchInstance.delete(`${e.TAGGINGS}/${n}`).then((t) => t).catch((t) => t);
|
|
77
|
+
removeTransaction = async (n) => this.fetchInstance.delete(`${e.TRANSACTIONS}/${n}`).then((t) => t);
|
|
78
|
+
removeTransactionRule = async (n) => this.fetchInstance.delete(`${e.TRANSACTION_RULES}/${n}`).catch((t) => t);
|
|
79
|
+
removeTransactionSplit = async (n) => this.fetchInstance.delete(`${e.TRANSACTIONS}/${n}/unsplit`).then((t) => t).catch((t) => t);
|
|
80
|
+
updateTransactionRule = async (n) => this.fetchInstance.put(`${e.TRANSACTION_RULES}/${n.guid}`, n).then((t) => t).catch((t) => t);
|
|
81
|
+
updateTag = async (n) => this.fetchInstance.put(`${e.TAGS}/${n.guid}`, n).then((t) => t.tag).catch((t) => t);
|
|
82
|
+
updateTransaction = async (n) => this.fetchInstance.put(`${e.TRANSACTIONS}/${n.guid}`, n).then((t) => t.transaction).catch((t) => t);
|
|
83
|
+
}
|
|
84
|
+
export {
|
|
85
|
+
u as T
|
|
86
|
+
};
|
|
@@ -14,13 +14,13 @@ import { startOfMonth as R } from "date-fns/startOfMonth";
|
|
|
14
14
|
import { startOfToday as b } from "date-fns/startOfToday";
|
|
15
15
|
import { subDays as F } from "date-fns/subDays";
|
|
16
16
|
import { O as n, a as G, T as w } from "./User-BQUxBeZV.mjs";
|
|
17
|
-
import { T as p } from "./TransactionApi-
|
|
17
|
+
import { T as p } from "./TransactionApi-DRRkE2ks.mjs";
|
|
18
18
|
import { b as W } from "./Category-CevNQ03n.mjs";
|
|
19
19
|
import { f as z } from "./exportTransactionsToCSV-BwwmL4pM.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-CPRqC_fW.mjs";
|
|
24
24
|
const j = ({
|
|
25
25
|
checked: S = !1,
|
|
26
26
|
label: t,
|
|
@@ -17,8 +17,8 @@ import { css as Xe } from "@mxenabled/cssinjs";
|
|
|
17
17
|
import { b as Qe } from "./Localization-2MODESHW.mjs";
|
|
18
18
|
import qe from "@mui/material/CircularProgress";
|
|
19
19
|
import { makeAutoObservable as de, runInAction as Oe } from "mobx";
|
|
20
|
-
import { G as _e, a as Je, u as et, b as tt } from "./useCombineEvents-
|
|
21
|
-
import { B as Ce } from "./BeatApi-
|
|
20
|
+
import { G as _e, a as Je, u as et, b as tt } from "./useCombineEvents-D8QtjV3s.mjs";
|
|
21
|
+
import { B as Ce } from "./BeatApi-CPRqC_fW.mjs";
|
|
22
22
|
import it from "@mui/material/Card";
|
|
23
23
|
import ot from "@mui/material/CardActions";
|
|
24
24
|
import rt from "@mui/material/CardContent";
|
|
@@ -25,7 +25,7 @@ import { F as K1, M as z1 } from "../ConnectDrawer-Bw5s6Dw1.mjs";
|
|
|
25
25
|
import l1 from "@mui/material/ListItem";
|
|
26
26
|
import { M as $ } from "../MiniWidgetContainer-D0gfmbaF.mjs";
|
|
27
27
|
import i1 from "@mui/material/Stack";
|
|
28
|
-
import { A as Y1, a as q1 } from "../AccountStore-
|
|
28
|
+
import { A as Y1, a as q1 } from "../AccountStore-DBR3yHZj.mjs";
|
|
29
29
|
const n1 = () => {
|
|
30
30
|
const [c, h] = d.useState(""), { accounts: C } = Z(), { selectedAccounts: l } = b(), { setSelectedAccount: p, setSelectedMember: u } = z(), { members: H } = T(), { onEvent: f } = D(), a = [...new Set(l.map((t) => t.account_type))], r = l.find((t) => c === t.guid), s = d.useMemo(
|
|
31
31
|
() => l.filter((t) => t.is_hidden),
|
|
@@ -46,7 +46,7 @@ import { F as ft, R as De, e as ve } from "../RecurringTransactions-ej39mgA6.mjs
|
|
|
46
46
|
import { h as gt } from "../DateUtil-BcuH7ErC.mjs";
|
|
47
47
|
import { endOfToday as bt } from "date-fns/endOfToday";
|
|
48
48
|
import { W as Ae, A as Ee } from "../WidgetContainer-EbrN1oIo.mjs";
|
|
49
|
-
import { F as xt, A as z } from "../Fetch-
|
|
49
|
+
import { F as xt, A as z } from "../Fetch-BPlNre0K.mjs";
|
|
50
50
|
const K = () => {
|
|
51
51
|
if (!p.useContext(Qe))
|
|
52
52
|
throw new Error("useCashflowUiStore() must be used within the GlobalDataContext");
|
package/dist/common/index.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { G as k } from "../useCombineEvents-
|
|
2
|
-
import { A as rs, a as os, u as as, b as ns } from "../useCombineEvents-
|
|
3
|
-
import { F as S, A as h } from "../Fetch-
|
|
4
|
-
import { B as cs } from "../BeatApi-
|
|
5
|
-
import { C as et } from "../CategoryStore-
|
|
6
|
-
import { a as ls } from "../CategoryStore-
|
|
7
|
-
import { N as st } from "../NotificationStore-
|
|
8
|
-
import { a as hs } from "../NotificationStore-
|
|
1
|
+
import { G as k } from "../useCombineEvents-D8QtjV3s.mjs";
|
|
2
|
+
import { A as rs, a as os, u as as, b as ns } from "../useCombineEvents-D8QtjV3s.mjs";
|
|
3
|
+
import { F as S, A as h } from "../Fetch-BPlNre0K.mjs";
|
|
4
|
+
import { B as cs } from "../BeatApi-CPRqC_fW.mjs";
|
|
5
|
+
import { C as et } from "../CategoryStore-CKWr4NqT.mjs";
|
|
6
|
+
import { a as ls } from "../CategoryStore-CKWr4NqT.mjs";
|
|
7
|
+
import { N as st } from "../NotificationStore-DW2WMonK.mjs";
|
|
8
|
+
import { a as hs } from "../NotificationStore-DW2WMonK.mjs";
|
|
9
9
|
import { T as rt } from "../User-BQUxBeZV.mjs";
|
|
10
10
|
import { C as ps, b as ms, L as _s, a as fs } from "../User-BQUxBeZV.mjs";
|
|
11
11
|
import { H as ot } from "../Help-DhcC-C05.mjs";
|
|
@@ -18,15 +18,15 @@ import { C as Qs } from "../CurrencyInput-DUsQbkXb.mjs";
|
|
|
18
18
|
import { L as Xs } from "../Loader-DUaFpDGv.mjs";
|
|
19
19
|
import { R as Ks } from "../ResponsiveButton-DZFp78fJ.mjs";
|
|
20
20
|
import { S as Zs } from "../SearchBox-B2_zLv8-.mjs";
|
|
21
|
-
import { T as at } from "../TransactionStore-
|
|
22
|
-
import { S as tr } from "../TransactionStore-
|
|
21
|
+
import { T as at } from "../TransactionStore-BcxF9tiX.mjs";
|
|
22
|
+
import { S as tr } from "../TransactionStore-BcxF9tiX.mjs";
|
|
23
23
|
import { T as sr } from "../TabContentContainer-j01JYR_7.mjs";
|
|
24
24
|
import { I as or } from "../IconBacking-B9oC6uL2.mjs";
|
|
25
25
|
import { D as nr, F as ir, a as cr, c as dr, R as lr, S as ur } from "../RecurringTransactions-ej39mgA6.mjs";
|
|
26
26
|
import { C as nt } from "../CashflowStore-D9Dpuz7X.mjs";
|
|
27
27
|
import { I as gr } from "../CashflowStore-D9Dpuz7X.mjs";
|
|
28
|
-
import { d as it } from "../GoalStore-
|
|
29
|
-
import { C as mr, G as _r, M as fr, T as yr } from "../GoalStore-
|
|
28
|
+
import { d as it } from "../GoalStore-C94epcja.mjs";
|
|
29
|
+
import { C as mr, G as _r, M as fr, T as yr } from "../GoalStore-C94epcja.mjs";
|
|
30
30
|
import { C as br } from "../CurrencyText-kyC1aseI.mjs";
|
|
31
31
|
import { E as xr } from "../EmptyState-DA_lfRBv.mjs";
|
|
32
32
|
import { L as vr } from "../ListItemAction-DHa3KJPs.mjs";
|
|
@@ -48,27 +48,27 @@ import { I as Zr, P as Jr, S as to } from "../Account-vp_TAbGt.mjs";
|
|
|
48
48
|
import { b as E } from "../Category-CevNQ03n.mjs";
|
|
49
49
|
import { C as so, c as ro, a as oo, P as ao } from "../Category-CevNQ03n.mjs";
|
|
50
50
|
import { C as io, f as co, b as lo, a as uo, g as ho, i as go } from "../NumberFormatting-Buh7u8Oi.mjs";
|
|
51
|
-
import { R as mt } from "../RecurringTransactionsStore-
|
|
52
|
-
import { S as mo, T as _o } from "../RecurringTransactionsStore-
|
|
51
|
+
import { R as mt } from "../RecurringTransactionsStore-BewTpk5R.mjs";
|
|
52
|
+
import { S as mo, T as _o } from "../RecurringTransactionsStore-BewTpk5R.mjs";
|
|
53
53
|
import { G as yo, C as So, D as bo, W as wo, d as xo, a as Co, i as vo, v as Do, m as Ao, y as Eo, z as To, g as Bo, x as Io, u as No, f as Mo, b as ko, l as $o, A as Ro, t as Uo, n as Po, c as Oo, r as Lo, o as Go, B as Ho, j as Fo, s as Wo, h as qo, w as Yo, p as Qo, q as zo } from "../hooks-D6XlXHf4.mjs";
|
|
54
54
|
import { u as jo } from "../useAccountDisplayName-jS05A6-6.mjs";
|
|
55
55
|
import { u as Vo } from "../useInsightsEnabled-DBpwEq10.mjs";
|
|
56
56
|
import { u as Jo } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
57
57
|
import { makeAutoObservable as f, runInAction as p, reaction as _t, autorun as ft } from "mobx";
|
|
58
|
-
import { a as yt } from "../AccountStore-
|
|
58
|
+
import { a as yt } from "../AccountStore-DBR3yHZj.mjs";
|
|
59
59
|
import St from "posthog-js";
|
|
60
|
-
import { B as bt } from "../BeatStore-
|
|
60
|
+
import { B as bt } from "../BeatStore-D-NluJ_K.mjs";
|
|
61
61
|
import { endOfMonth as Z } from "date-fns/endOfMonth";
|
|
62
62
|
import { startOfMonth as J } from "date-fns/startOfMonth";
|
|
63
63
|
import { startOfToday as O } from "date-fns/startOfToday";
|
|
64
64
|
import { f as wt, a as xt, b as L } from "../BudgetUtil-B2ZXyw-g.mjs";
|
|
65
65
|
import { g as ea, e as sa, c as ra, d as oa, i as aa } from "../BudgetUtil-B2ZXyw-g.mjs";
|
|
66
66
|
import { a as Ct } from "../DebtsStore-BD_XwsI7.mjs";
|
|
67
|
-
import { a as vt } from "../FinstrongStore-
|
|
67
|
+
import { a as vt } from "../FinstrongStore-CQu63kfy.mjs";
|
|
68
68
|
import { A as Dt, m as At, a as Et, b as Tt } from "../InvestmentUtil-jOyOgzIB.mjs";
|
|
69
|
-
import { M as Bt } from "../MerchantStore-
|
|
69
|
+
import { M as Bt } from "../MerchantStore-CMRVStpv.mjs";
|
|
70
70
|
import { N as It } from "../NetWorthStore-D1NiDUcc.mjs";
|
|
71
|
-
import { a as Nt } from "../SettingsStore-
|
|
71
|
+
import { a as Nt } from "../SettingsStore-CqwQAKU7.mjs";
|
|
72
72
|
import { addMonths as Mt } from "date-fns/addMonths";
|
|
73
73
|
import { getMonth as T } from "date-fns/getMonth";
|
|
74
74
|
import { i as ia } from "../DateUtil-BcuH7ErC.mjs";
|
|
@@ -19,7 +19,7 @@ import * as le from "d3";
|
|
|
19
19
|
import { observer as I } from "mobx-react-lite";
|
|
20
20
|
import { u as S, b as z, x as $, p as Y, d as ye, i as be, n as Ke, m as Xe } from "../hooks-D6XlXHf4.mjs";
|
|
21
21
|
import { L as N } from "../Loader-DUaFpDGv.mjs";
|
|
22
|
-
import { F as Ko, a as Xo } from "../FinstrongStore-
|
|
22
|
+
import { F as Ko, a as Xo } from "../FinstrongStore-CQu63kfy.mjs";
|
|
23
23
|
import q from "@mui/material/Button";
|
|
24
24
|
import J from "@mui/material/Card";
|
|
25
25
|
import { L as xe } from "../LineChart-4Zi8Z8PR.mjs";
|
package/dist/goals/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as _e, T as m, G as ue, a as Pe, M as q, C as Ae, b as Ve } from "../GoalStore-
|
|
2
|
-
import { c as qn, d as Jn } from "../GoalStore-
|
|
1
|
+
import { g as _e, T as m, G as ue, a as Pe, M as q, C as Ae, b as Ve } from "../GoalStore-C94epcja.mjs";
|
|
2
|
+
import { c as qn, d as Jn } from "../GoalStore-C94epcja.mjs";
|
|
3
3
|
import { jsxs as i, jsx as e, Fragment as U } from "react/jsx-runtime";
|
|
4
4
|
import y from "react";
|
|
5
5
|
import { observer as D } from "mobx-react-lite";
|
|
@@ -15,7 +15,7 @@ import { MerchantLogo as V, Text as R } from "@mxenabled/mxui";
|
|
|
15
15
|
import { c as v, u as w, b as C } from "../hooks-D6XlXHf4.mjs";
|
|
16
16
|
import { L as p } from "../Loader-DUaFpDGv.mjs";
|
|
17
17
|
import { S as N } from "../SearchBox-B2_zLv8-.mjs";
|
|
18
|
-
import { M as ne } from "../MerchantStore-
|
|
18
|
+
import { M as ne } from "../MerchantStore-CMRVStpv.mjs";
|
|
19
19
|
const B = /^[ a-zA-ZÀ-ÿ0-9]+$/, H = 50, u = 65, P = ({
|
|
20
20
|
height: f = "calc(100dvh - 120px)",
|
|
21
21
|
onSelect: g
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as s, B as e, C as o, c as t, b as i, I as d, M as n, a as C, d as c, N as I, V as M, Z as g, e as h } from "../ViewMoreMicroCard-
|
|
1
|
+
import { A as s, B as e, C as o, c as t, b as i, I as d, M as n, a as C, d as c, N as I, V as M, Z as g, e as h } from "../ViewMoreMicroCard-BqEfwQtE.mjs";
|
|
2
2
|
export {
|
|
3
3
|
s as AppStore,
|
|
4
4
|
e as BeatCard,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { A as f, B as b } from "../ToggleListItem-r0Kx56wF.mjs";
|
|
2
|
-
import { A as _ } from "../Fetch-
|
|
3
|
-
import { s as L } from "../NotificationStore-
|
|
4
|
-
import { N as Nt, f as St } from "../NotificationStore-
|
|
2
|
+
import { A as _ } from "../Fetch-BPlNre0K.mjs";
|
|
3
|
+
import { s as L } from "../NotificationStore-DW2WMonK.mjs";
|
|
4
|
+
import { N as Nt, f as St } from "../NotificationStore-DW2WMonK.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";
|
|
@@ -30,8 +30,8 @@ import { PickersDay as rt } from "@mui/x-date-pickers/PickersDay";
|
|
|
30
30
|
import { I as q } from "../IconBacking-B9oC6uL2.mjs";
|
|
31
31
|
import { u as T, b as Z, j as v, g as J, q as Oe, d as he, h as fe, n as ot } from "../hooks-D6XlXHf4.mjs";
|
|
32
32
|
import { c as L, a as S, g as Ie, f as at } from "../RecurringTransactions-ej39mgA6.mjs";
|
|
33
|
-
import { T as B } from "../RecurringTransactionsStore-
|
|
34
|
-
import { R as On } from "../RecurringTransactionsStore-
|
|
33
|
+
import { T as B } from "../RecurringTransactionsStore-BewTpk5R.mjs";
|
|
34
|
+
import { R as On } from "../RecurringTransactionsStore-BewTpk5R.mjs";
|
|
35
35
|
import { A as I, W as st } from "../WidgetContainer-EbrN1oIo.mjs";
|
|
36
36
|
import ct from "@mui/material/Button";
|
|
37
37
|
import le from "@mui/material/Divider";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as Kt, a as Xt } from "../SettingsStore-
|
|
1
|
+
import { S as Kt, a as Xt } from "../SettingsStore-CqwQAKU7.mjs";
|
|
2
2
|
import { jsxs as c, Fragment as q, jsx as e } from "react/jsx-runtime";
|
|
3
3
|
import u from "react";
|
|
4
4
|
import { observer as D } from "mobx-react-lite";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { T as Ta } from "../TransactionApi-
|
|
1
|
+
import { T as Ta } from "../TransactionApi-DRRkE2ks.mjs";
|
|
2
2
|
import { u as P, C as Pe, D as $e, M as Ve, d as We, c as Ge, T as Ue, a as Fe } from "../TransactionDetails-Cscyr17P.mjs";
|
|
3
3
|
import { B as Sa, e as xa, b as wa } from "../TransactionDetails-Cscyr17P.mjs";
|
|
4
4
|
import { T as M } from "../User-BQUxBeZV.mjs";
|
|
5
5
|
import { O as va } from "../User-BQUxBeZV.mjs";
|
|
6
|
-
import { S as ae, D as ze } from "../TransactionStore-
|
|
7
|
-
import { T as Na } from "../TransactionStore-
|
|
6
|
+
import { S as ae, D as ze } from "../TransactionStore-BcxF9tiX.mjs";
|
|
7
|
+
import { T as Na } from "../TransactionStore-BcxF9tiX.mjs";
|
|
8
8
|
import { e as Ke } from "../exportTransactionsToCSV-BwwmL4pM.mjs";
|
|
9
9
|
import { E as Oa } from "../ExportCsvAction-DTO_UotC.mjs";
|
|
10
10
|
import { jsxs as _, jsx as e } from "react/jsx-runtime";
|
package/dist/trends/index.es.js
CHANGED
|
@@ -19,7 +19,7 @@ import { DataGridPro as mt } from "@mui/x-data-grid-pro";
|
|
|
19
19
|
import { C as pt } from "../CurrencyText-kyC1aseI.mjs";
|
|
20
20
|
import { b as Ct } from "../Localization-2MODESHW.mjs";
|
|
21
21
|
import { H as Ie } from "../HeaderCell-DjuifqHJ.mjs";
|
|
22
|
-
import { T as M, b as ft } from "../ViewMoreMicroCard-
|
|
22
|
+
import { T as M, b as ft } from "../ViewMoreMicroCard-BqEfwQtE.mjs";
|
|
23
23
|
import { A as _, W as ke } from "../WidgetContainer-EbrN1oIo.mjs";
|
|
24
24
|
import { c as Tt } from "../Category-CevNQ03n.mjs";
|
|
25
25
|
import { a as Ne, T as He } from "../TransactionDetails-Cscyr17P.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getUnixTime as l } from "date-fns/getUnixTime";
|
|
2
2
|
import A from "bowser";
|
|
3
|
-
import { F as u, A as r } from "./Fetch-
|
|
3
|
+
import { F as u, A as r } from "./Fetch-BPlNre0K.mjs";
|
|
4
4
|
import y from "react";
|
|
5
5
|
const g = async (o, t, n = "1.0.0", s = "Experiences") => {
|
|
6
6
|
const a = new _(o, t), { analytics_session: i } = await a.initializeAnalyticsSession(
|
package/package.json
CHANGED
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { F as T, A as e } from "./Fetch-87LIQbEA.mjs";
|
|
2
|
-
class u {
|
|
3
|
-
fetchInstance;
|
|
4
|
-
constructor(t, n, a) {
|
|
5
|
-
this.fetchInstance = new T(t, n, void 0, a);
|
|
6
|
-
}
|
|
7
|
-
addTag = async (t) => this.fetchInstance.post(e.TAGS, t).then((n) => n.tag);
|
|
8
|
-
addTagging = async (t) => this.fetchInstance.post(e.TAGGINGS, t).then((n) => n.tagging);
|
|
9
|
-
addTransaction = async (t) => this.fetchInstance.post(e.TRANSACTIONS, t).then((n) => n.transaction);
|
|
10
|
-
addTransactionRule = async (t) => this.fetchInstance.post(e.TRANSACTION_RULES, t).then((n) => n);
|
|
11
|
-
getTaggings = async () => this.fetchInstance.get(e.TAGGINGS).then((t) => t.map((n) => n.tagging));
|
|
12
|
-
getTags = async () => this.fetchInstance.get(e.TAGS).then((t) => t.map((n) => n.tag));
|
|
13
|
-
getTransactionRules = async () => this.fetchInstance.get(e.TRANSACTION_RULES).then((t) => t.transaction_rules);
|
|
14
|
-
getTransactionsByDateRange = async (t, n) => this.fetchInstance.get(`${e.TRANSACTIONS}/by_date/${t}/${n}`).then((a) => a.map((s) => s.transaction));
|
|
15
|
-
// DEPRECATED
|
|
16
|
-
getTransactionsByAccountsAndDateRange = async (t, n, a) => {
|
|
17
|
-
console.warn("DEPRECATED: getTransactionsByAccountsAndDateRange will be removed");
|
|
18
|
-
const s = t.reduce(
|
|
19
|
-
(o, c, r) => `${o}account_guids[]=${c}${r !== t.length - 1 ? "&" : ""}`,
|
|
20
|
-
""
|
|
21
|
-
);
|
|
22
|
-
return this.fetchInstance.get(`${e.TRANSACTIONS}/by_date/${n}/${a}?${s}`).then((o) => o.map((c) => c.transaction));
|
|
23
|
-
};
|
|
24
|
-
// DEPRECATED
|
|
25
|
-
getTransactionsByGuids = async (t) => (console.warn("DEPRECATED: getTransactionsByGuids will be removed"), this.fetchInstance.post(`${e.TRANSACTIONS}/by_guids`, { guids: t.join("+") }).then((n) => n.map((a) => a.transaction)));
|
|
26
|
-
// DEPRECATED
|
|
27
|
-
getTransactionsByCategoryAndDate = async (t, n, a) => (console.warn("DEPRECATED: getTransactionsByCategoryAndDate will be removed"), this.fetchInstance.get(
|
|
28
|
-
`${e.TRANSACTIONS}/by_category_guid/${t}/by_date/${n}/${a}`
|
|
29
|
-
).then((s) => s.map((o) => o.transaction)));
|
|
30
|
-
// DEPRECATED
|
|
31
|
-
getTransactionsByCategoryDateAndAccounts = async (t, n, a, s) => {
|
|
32
|
-
console.warn("DEPRECATED: getTransactionsByCategoryDateAndAccounts will be removed");
|
|
33
|
-
const o = s.reduce(
|
|
34
|
-
(c, r, i) => `${c}account_guids[]=${r}${i !== s.length - 1 ? "&" : ""}`,
|
|
35
|
-
""
|
|
36
|
-
);
|
|
37
|
-
return this.fetchInstance.get(
|
|
38
|
-
`${e.TRANSACTIONS}/by_category_guid/${t}/by_date/${n}/${a}?${o}`
|
|
39
|
-
).then((c) => c.map((r) => r.transaction));
|
|
40
|
-
};
|
|
41
|
-
// DEPRECATED
|
|
42
|
-
getTransactionsByCategoriesDateAndAccounts = async (t, n, a, s) => {
|
|
43
|
-
console.warn("DEPRECATED: getTransactionsByCategoriesDateAndAccounts will be removed");
|
|
44
|
-
const o = s.reduce(
|
|
45
|
-
(c, r, i) => `${c}account_guids[]=${r}${i !== s.length - 1 ? "&" : ""}`,
|
|
46
|
-
""
|
|
47
|
-
);
|
|
48
|
-
return this.fetchInstance.get(
|
|
49
|
-
`${e.TRANSACTIONS}/by_category_guids/${t.join(
|
|
50
|
-
"+"
|
|
51
|
-
)}/by_date/${n}/${a}?${o}`
|
|
52
|
-
).then((c) => c.map((r) => r.transaction));
|
|
53
|
-
};
|
|
54
|
-
/**
|
|
55
|
-
* DEPRECATED
|
|
56
|
-
* Get all transactions by the top level category, between begin date and end date, and optionally
|
|
57
|
-
* filtered by accounts
|
|
58
|
-
* @param categoryGuid The top level category guid
|
|
59
|
-
* @param beginDate the start date
|
|
60
|
-
* @param endDate the end date
|
|
61
|
-
* @param accountGuids an optional list of account guids
|
|
62
|
-
*/
|
|
63
|
-
getTransactionsByTopLevelCategoryAndDate = async (t, n, a, s = []) => {
|
|
64
|
-
console.warn("DEPRECATED: getTransactionsByTopLevelCategoryAndDate will be removed");
|
|
65
|
-
let o = `${e.TRANSACTIONS}/by_top_level_category_guid/${t}/by_date/${n}/${a}`;
|
|
66
|
-
if (s.length > 0) {
|
|
67
|
-
const c = s.reduce(
|
|
68
|
-
(r, i, g) => `${r}account_guids[]=${i}${g !== s.length - 1 ? "&" : ""}`,
|
|
69
|
-
""
|
|
70
|
-
);
|
|
71
|
-
o += `?${c}`;
|
|
72
|
-
}
|
|
73
|
-
return this.fetchInstance.get(o).then((c) => c.map((r) => r.transaction));
|
|
74
|
-
};
|
|
75
|
-
removeTag = async (t) => this.fetchInstance.delete(`${e.TAGS}/${t}`).then((n) => n);
|
|
76
|
-
removeTagging = async (t) => this.fetchInstance.delete(`${e.TAGGINGS}/${t}`).then((n) => n);
|
|
77
|
-
removeTransaction = async (t) => this.fetchInstance.delete(`${e.TRANSACTIONS}/${t}`).then((n) => n);
|
|
78
|
-
removeTransactionRule = async (t) => this.fetchInstance.delete(`${e.TRANSACTION_RULES}/${t}`);
|
|
79
|
-
removeTransactionSplit = async (t) => this.fetchInstance.delete(`${e.TRANSACTIONS}/${t}/unsplit`).then((n) => n);
|
|
80
|
-
updateTransactionRule = async (t) => this.fetchInstance.put(`${e.TRANSACTION_RULES}/${t.guid}`, t).then((n) => n);
|
|
81
|
-
updateTag = async (t) => this.fetchInstance.put(`${e.TAGS}/${t.guid}`, t).then((n) => n.tag);
|
|
82
|
-
updateTransaction = async (t) => this.fetchInstance.put(`${e.TRANSACTIONS}/${t.guid}`, t).then((n) => n.transaction);
|
|
83
|
-
}
|
|
84
|
-
export {
|
|
85
|
-
u as T
|
|
86
|
-
};
|