@mx-cartographer/experiences 7.2.22 → 7.2.23-alpha.sms10

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 (40) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/{AccountDetailsContent-DIGzsjAD.mjs → AccountDetailsContent-B6ZFRZ8l.mjs} +1 -1
  3. package/dist/{AccountStore-BkoLK9Tq.mjs → AccountStore-CQq_wjS5.mjs} +1 -1
  4. package/dist/{BeatApi-DhJpgCLz.mjs → BeatApi-DPdX5vY1.mjs} +1 -1
  5. package/dist/{BeatStore-IBnXd4YK.mjs → BeatStore-Djk0ejxo.mjs} +1 -1
  6. package/dist/{CategoryStore-BCcpI3oJ.mjs → CategoryStore-kLwSKX0v.mjs} +1 -1
  7. package/dist/{Fetch-87LIQbEA.mjs → Fetch-Dvrk8r_y.mjs} +25 -20
  8. package/dist/{FinstrongStore-F2c607dj.mjs → FinstrongStore-CA_w8Yx6.mjs} +1 -1
  9. package/dist/{GoalStore-DZ_Jvsa_.mjs → GoalStore-CUgc_8Us.mjs} +1 -1
  10. package/dist/{ManageIncome-B7RqkNz5.mjs → ManageIncome-CXeJPfjE.mjs} +1 -1
  11. package/dist/{MerchantStore-DrFvsUyy.mjs → MerchantStore-Ca0snF85.mjs} +1 -1
  12. package/dist/{NotificationStore-86g0bKKR.mjs → NotificationStore-DpA4IVq9.mjs} +1 -1
  13. package/dist/{RecurringSettings-CaQJvUPQ.mjs → RecurringSettings-D7476j-N.mjs} +1 -1
  14. package/dist/{RecurringTransactionsStore-DrzS1LmF.mjs → RecurringTransactionsStore-CXTYd5u7.mjs} +1 -1
  15. package/dist/{SettingsStore-BcgS_Ohv.mjs → SettingsStore-BmgZgoX1.mjs} +2 -2
  16. package/dist/TransactionApi-CFXvaV0r.mjs +86 -0
  17. package/dist/{TransactionDetails-gdzlKeDG.mjs → TransactionDetails-Cscyr17P.mjs} +286 -285
  18. package/dist/{TransactionStore-hfOsBbDt.mjs → TransactionStore-ZXqYJfC_.mjs} +2 -2
  19. package/dist/{ViewMoreMicroCard-SCn2wt4i.mjs → ViewMoreMicroCard-CFsRDIBi.mjs} +2 -2
  20. package/dist/accounts/index.es.js +3 -3
  21. package/dist/budgets/index.es.js +2 -2
  22. package/dist/cashflow/index.es.js +4 -4
  23. package/dist/categories/index.es.js +1 -1
  24. package/dist/common/index.es.js +267 -257
  25. package/dist/common/stores/GlobalStore.d.ts +7 -1
  26. package/dist/finstrong/index.es.js +2 -2
  27. package/dist/goals/index.es.js +3 -3
  28. package/dist/insights/index.es.js +1 -1
  29. package/dist/merchants/index.es.js +1 -1
  30. package/dist/microinsights/index.es.js +1 -1
  31. package/dist/notifications/index.es.js +3 -3
  32. package/dist/recurringtransactions/index.es.js +6 -6
  33. package/dist/settings/index.es.js +1 -1
  34. package/dist/spending/index.es.js +1 -1
  35. package/dist/transactions/components/shared/TransactionDetails.d.ts +1 -0
  36. package/dist/transactions/index.es.js +5 -5
  37. package/dist/trends/index.es.js +2 -2
  38. package/dist/{useCombineEvents-BUDIR1ba.mjs → useCombineEvents-BNicKW7e.mjs} +1 -1
  39. package/package.json +1 -1
  40. 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-gdzlKeDG.mjs";
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,
@@ -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-87LIQbEA.mjs";
3
+ import { F as p, A as i } from "./Fetch-Dvrk8r_y.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,4 +1,4 @@
1
- import { F as c, A as s } from "./Fetch-87LIQbEA.mjs";
1
+ import { F as c, A as s } from "./Fetch-Dvrk8r_y.mjs";
2
2
  class i {
3
3
  fetchInstance;
4
4
  constructor(t, e, n) {
@@ -1,5 +1,5 @@
1
1
  import { makeAutoObservable as c, runInAction as r } from "mobx";
2
- import { B as l } from "./BeatApi-DhJpgCLz.mjs";
2
+ import { B as l } from "./BeatApi-DPdX5vY1.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-87LIQbEA.mjs";
7
+ import { F as p, A as i } from "./Fetch-Dvrk8r_y.mjs";
8
8
  import { b as f, c as w } from "./Category-CevNQ03n.mjs";
9
9
  class y {
10
10
  fetchInstance;
@@ -46,26 +46,26 @@ const E = {
46
46
  USER_PROFILES: "user_profiles",
47
47
  WIDGET_URLS: "widget_urls"
48
48
  };
49
- class S {
49
+ class _ {
50
50
  endpoint = "/";
51
51
  headers;
52
52
  onError;
53
- constructor(s, n, t, o) {
54
- this.endpoint = s;
53
+ constructor(n, s, t, o) {
54
+ this.endpoint = n;
55
55
  const e = {
56
56
  Accept: "application/json",
57
57
  "Accept-Language": r(),
58
58
  "Content-Type": "application/json",
59
- "MD-Session-Token": n
59
+ "MD-Session-Token": s
60
60
  };
61
61
  this.headers = t || e, this.onError = o;
62
62
  }
63
- get = async (s) => {
64
- const n = {
63
+ get = async (n) => {
64
+ const s = {
65
65
  method: "GET",
66
66
  headers: this.headers
67
67
  };
68
- return fetch(`${this.endpoint}${s}`, n).then((t) => {
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 (s, n) => {
77
- const t = n ? JSON.stringify(n) : void 0, o = {
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}${s}`, o).then((e) => {
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,29 @@ class S {
87
87
  throw e;
88
88
  });
89
89
  };
90
- put = async (s, n) => {
91
- const t = JSON.stringify(n), o = {
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}${s}`, o).then((e) => e.ok ? e.text() : e.text().then((i) => {
97
- throw new Error(i);
98
- })).then((e) => e.length ? JSON.parse(e) : {}).then((e) => e).catch((e) => {
99
- throw e;
96
+ return fetch(`${this.endpoint}${n}`, o).then(async (e) => {
97
+ if (e.ok)
98
+ return e.text();
99
+ {
100
+ const i = await e.text();
101
+ throw console.log("err else", i), new Error(i);
102
+ }
103
+ }).then((e) => e.length ? JSON.parse(e) : {}).then((e) => e).catch((e) => {
104
+ throw console.log("err from exp", e), console.log("err msg?", e.message), this.onError?.(e), e;
100
105
  });
101
106
  };
102
- delete = async (s) => {
103
- const n = {
107
+ delete = async (n) => {
108
+ const s = {
104
109
  method: "DELETE",
105
110
  headers: this.headers
106
111
  };
107
- return fetch(`${this.endpoint}${s}`, n).then((t) => t.ok ? t.text() : t.text().then((o) => {
112
+ return fetch(`${this.endpoint}${n}`, s).then((t) => t.ok ? t.text() : t.text().then((o) => {
108
113
  throw new Error(o);
109
114
  })).then((t) => t.length ? JSON.parse(t) : {}).then((t) => t).catch((t) => {
110
115
  throw t;
@@ -113,5 +118,5 @@ class S {
113
118
  }
114
119
  export {
115
120
  E as A,
116
- S as F
121
+ _ as F
117
122
  };
@@ -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-87LIQbEA.mjs";
6
+ import { F as m, A as o } from "./Fetch-Dvrk8r_y.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-87LIQbEA.mjs";
13
+ import { F as v, A as i } from "./Fetch-Dvrk8r_y.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";
@@ -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-gdzlKeDG.mjs";
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";
@@ -1,5 +1,5 @@
1
1
  import { makeAutoObservable as m, runInAction as c } from "mobx";
2
- import { F as p, A as h } from "./Fetch-87LIQbEA.mjs";
2
+ import { F as p, A as h } from "./Fetch-Dvrk8r_y.mjs";
3
3
  class i {
4
4
  fetchInstance;
5
5
  constructor(t, n, s) {
@@ -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-87LIQbEA.mjs";
3
+ import { F as l, A as a } from "./Fetch-Dvrk8r_y.mjs";
4
4
  class s {
5
5
  fetchInstance;
6
6
  constructor(t, i, n) {
@@ -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-B7RqkNz5.mjs";
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";
@@ -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-87LIQbEA.mjs";
10
+ import { F as x, A as o } from "./Fetch-Dvrk8r_y.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-87LIQbEA.mjs";
2
+ import { F as D, A as r } from "./Fetch-Dvrk8r_y.mjs";
3
3
  import { B as f, A as n, I as i } from "./ToggleListItem-r0Kx56wF.mjs";
4
- import { T as m } from "./TransactionApi-B3Tksf7L.mjs";
4
+ import { T as m } from "./TransactionApi-CFXvaV0r.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-Dvrk8r_y.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
+ };