@mx-cartographer/experiences 7.2.22 → 7.2.23-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 +6 -0
- package/dist/{AccountDetailsContent-DIGzsjAD.mjs → AccountDetailsContent-B6ZFRZ8l.mjs} +1 -1
- package/dist/{ManageIncome-B7RqkNz5.mjs → ManageIncome-CXeJPfjE.mjs} +1 -1
- package/dist/{RecurringSettings-CaQJvUPQ.mjs → RecurringSettings-D7476j-N.mjs} +1 -1
- package/dist/{SettingsStore-BcgS_Ohv.mjs → SettingsStore-DneARj4W.mjs} +1 -1
- package/dist/TransactionApi-C4V0XJEk.mjs +86 -0
- package/dist/{TransactionDetails-gdzlKeDG.mjs → TransactionDetails-Cscyr17P.mjs} +286 -285
- package/dist/{TransactionStore-hfOsBbDt.mjs → TransactionStore-FeuQE_RH.mjs} +1 -1
- package/dist/accounts/index.es.js +2 -2
- package/dist/budgets/index.es.js +2 -2
- package/dist/cashflow/index.es.js +3 -3
- package/dist/common/index.es.js +261 -251
- package/dist/common/stores/GlobalStore.d.ts +7 -1
- package/dist/finstrong/index.es.js +1 -1
- package/dist/goals/index.es.js +1 -1
- package/dist/recurringtransactions/index.es.js +4 -4
- package/dist/settings/index.es.js +1 -1
- package/dist/spending/index.es.js +1 -1
- package/dist/transactions/components/shared/TransactionDetails.d.ts +1 -0
- package/dist/transactions/index.es.js +5 -5
- package/dist/trends/index.es.js +1 -1
- package/package.json +1 -1
- package/dist/TransactionApi-B3Tksf7L.mjs +0 -86
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## [7.2.23] - 12-03-2025
|
|
2
|
+
|
|
3
|
+
- **UPDATED** - `GlobalStore` emits an update when a subscribed-to variable changes. Good for external libraries like Pulse.
|
|
4
|
+
- **UPDATED** - Ability to hide flag with prop `canFlagTransactions` in `TransactionDetails`
|
|
5
|
+
- **FIXED** - Lonely `Actions` header if no bottom actions in `TransactionDetails`
|
|
6
|
+
|
|
1
7
|
## [7.2.22] - 12-03-2025
|
|
2
8
|
|
|
3
9
|
- **FIXED** - Aria annoounce for split row error messages
|
|
@@ -44,7 +44,7 @@ import yt from "@mui/material/AlertTitle";
|
|
|
44
44
|
import xt from "@mui/material/Link";
|
|
45
45
|
import wt from "@mui/material/Paper";
|
|
46
46
|
import { subDays as kt, startOfToday as It, endOfToday as Mt } from "date-fns";
|
|
47
|
-
import { T as vt, a as Lt } from "./TransactionDetails-
|
|
47
|
+
import { T as vt, a as Lt } from "./TransactionDetails-Cscyr17P.mjs";
|
|
48
48
|
import { T as j } from "./TabContentContainer-j01JYR_7.mjs";
|
|
49
49
|
const U = ({
|
|
50
50
|
children: e,
|
|
@@ -17,7 +17,7 @@ import { endOfMonth as _e } from "date-fns/endOfMonth";
|
|
|
17
17
|
import { parseISO as me } from "date-fns/parseISO";
|
|
18
18
|
import $ from "@mui/material/Button";
|
|
19
19
|
import { Delete as pe, Add as he, ReceiptLong as ye } from "@mxenabled/mx-icons";
|
|
20
|
-
import { T as X, a as ge, u as fe, S as Ce, b as be } from "./TransactionDetails-
|
|
20
|
+
import { T as X, a as ge, u as fe, S as Ce, b as be } from "./TransactionDetails-Cscyr17P.mjs";
|
|
21
21
|
import { getDayOfYear as xe } from "date-fns/getDayOfYear";
|
|
22
22
|
import { setDayOfYear as Se } from "date-fns/setDayOfYear";
|
|
23
23
|
import { AdapterDateFns as ve } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
@@ -7,7 +7,7 @@ import b from "@mui/material/Tabs";
|
|
|
7
7
|
import d from "@mui/material/Divider";
|
|
8
8
|
import R from "@mui/material/List";
|
|
9
9
|
import T from "@mui/material/Stack";
|
|
10
|
-
import { R as C, A as S, a as E, M as v } from "./ManageIncome-
|
|
10
|
+
import { R as C, A as S, a as E, M as v } from "./ManageIncome-CXeJPfjE.mjs";
|
|
11
11
|
import { u as _, j as A, g as f } from "./hooks-D6XlXHf4.mjs";
|
|
12
12
|
import { R as y, F as N } from "./RecurringTransactions-ej39mgA6.mjs";
|
|
13
13
|
import { A as m } from "./WidgetContainer-EbrN1oIo.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { makeAutoObservable as N, runInAction as l } from "mobx";
|
|
2
2
|
import { F as D, A as r } from "./Fetch-87LIQbEA.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-C4V0XJEk.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-87LIQbEA.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
|
+
};
|