@mx-cartographer/experiences 7.12.16 → 7.12.17

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 CHANGED
@@ -1,3 +1,7 @@
1
+ ## [7.12.17] - 03-24-2026
2
+
3
+ - **UPDATED** - Respect exclude held accounts in client widget profile
4
+
1
5
  ## [7.12.16] - 03-24-2026
2
6
 
3
7
  - **UPDATED** - MXUI -> 1.5.14 | button text error color when hovered/pressed
@@ -4,7 +4,7 @@ import a from "@mui/material/Stack";
4
4
  import { H3 as T, InstitutionLogo as x, Text as l, H2 as D } from "@mxenabled/mxui";
5
5
  import p from "react";
6
6
  import { G as N, d as _, l as P, f as G, u as O } from "./hooks-BxkfR-Ff.mjs";
7
- import { g as R } from "./AccountFields-DeZSQOuM.mjs";
7
+ import { g as R } from "./AccountFields-C_dcdCM7.mjs";
8
8
  import { A as r } from "./Account-BiB1F8lL.mjs";
9
9
  import w from "@mui/material/Card";
10
10
  import v from "@mui/material/CardContent";
@@ -1,7 +1,7 @@
1
1
  import { jsx as u } from "react/jsx-runtime";
2
2
  import { Icon as p, Text as y } from "@mxenabled/mxui";
3
3
  import { A as d, a as v, P as h, b as F } from "./Account-BiB1F8lL.mjs";
4
- import { i as T, u as D, a as A, b as g, c as O } from "./Accounts-M-LTzStv.mjs";
4
+ import { i as T, u as D, a as A, b as g, c as O } from "./Accounts-o7ohkngR.mjs";
5
5
  import { F as m } from "./Accounts-CseLC3lL.mjs";
6
6
  import { f as _, i as b, a as N, b as S } from "./NumberFormatting-QCaNwbjv.mjs";
7
7
  import { b as i } from "./Localization-CPkpIwIx.mjs";
@@ -10,7 +10,7 @@ import B from "@mui/material/styles/useTheme";
10
10
  import { InstitutionLogo as L, Text as o } from "@mxenabled/mxui";
11
11
  import { Error as A } from "@mxenabled/mx-icons";
12
12
  import { I as j } from "./IconBacking-B9oC6uL2.mjs";
13
- import { g as T } from "./AccountFields-DeZSQOuM.mjs";
13
+ import { g as T } from "./AccountFields-C_dcdCM7.mjs";
14
14
  import { u as X } from "./useAccountDisplayName-DKwT1mWv.mjs";
15
15
  import { u as $ } from "./hooks-BxkfR-Ff.mjs";
16
16
  import { C as d } from "./Account-BiB1F8lL.mjs";
@@ -1,9 +1,9 @@
1
1
  import { makeAutoObservable as h, runInAction as a } from "mobx";
2
2
  import { i as g } from "./BudgetUtil--_QXyszn.mjs";
3
3
  import { A as d } from "./AccountApi-ChQr5PAZ.mjs";
4
- import { d as m } from "./Accounts-M-LTzStv.mjs";
4
+ import { d as p } from "./Accounts-o7ohkngR.mjs";
5
5
  import { A as s, d as u } from "./Account-BiB1F8lL.mjs";
6
- class p {
6
+ class m {
7
7
  isLoading = !1;
8
8
  selectedAccount = {};
9
9
  selectedMember = {};
@@ -28,7 +28,7 @@ class E {
28
28
  membersLoading = !1;
29
29
  uiStore;
30
30
  constructor(t) {
31
- this.globalStore = t, this.uiStore = new p(), this.api = new d(t.endpoint, t.sessionToken, t.onError), h(this);
31
+ this.globalStore = t, this.uiStore = new m(), this.api = new d(t.endpoint, t.sessionToken, t.onError), h(this);
32
32
  }
33
33
  loadAccountData = async () => {
34
34
  await Promise.all([this.loadAccounts(), this.loadMembers(), this.loadInstitutions()]);
@@ -37,8 +37,14 @@ class E {
37
37
  return this.accountsLoaded && this.membersLoaded && this.institutionsLoaded;
38
38
  }
39
39
  get detailedAccounts() {
40
- const t = this.globalStore.userStore.userFeatures, e = g(t, "MD_EXCLUDE_EXTERNAL_ACCOUNTS");
41
- return m(this.accounts, this.institutions, this.members, e);
40
+ const t = this.globalStore.userStore.userFeatures, e = g(t, "MD_EXCLUDE_EXTERNAL_ACCOUNTS"), c = this.globalStore.appConfig.config.display_only_external_accounts_in_accounts && this.globalStore.appConfig.options.subtype === "accounts";
41
+ return p(
42
+ this.accounts,
43
+ this.institutions,
44
+ this.members,
45
+ e,
46
+ c
47
+ );
42
48
  }
43
49
  get accountsByTypeMap() {
44
50
  return this.detailedAccounts.reduce((t, e) => {
@@ -0,0 +1,27 @@
1
+ import { A as e, C as u, E as p, c as y, M as d } from "./Account-BiB1F8lL.mjs";
2
+ const m = (t) => t && (t.account_type === e.CREDIT_CARD || t.account_type === e.LOAN || t.account_type === e.MORTGAGE || t.account_type === e.LINE_OF_CREDIT || t.account_type === e.CHECKING_LINE_OF_CREDIT), I = (t) => t.is_manual || !t.guid, f = (t) => t.account_type === e.LINE_OF_CREDIT || t.account_type === e.CREDIT_CARD || t.account_type === e.CHECKING_LINE_OF_CREDIT, R = (t) => t.account_type === e.SAVINGS || t.account_type === e.CHECKING || t.account_type === e.LINE_OF_CREDIT || t.account_type === e.CREDIT_CARD || t.account_type === e.LOAN || t.account_type === e.MORTGAGE, A = (t) => t.account_type === e.LOAN || t.account_type === e.MORTGAGE, N = (t, n, s, _, a) => t.filter((i) => !(i.member_is_managed_by_user && _)).filter((i) => !(!i.member_is_managed_by_user && a)).sort(C).map((i) => {
3
+ const r = n.find((c) => c.guid === i.institution_guid), o = s.find((c) => c.guid === i.member_guid);
4
+ return E(i, r, o);
5
+ }), E = (t, n, s) => {
6
+ let _ = u.Connected;
7
+ s && (p.includes(s.connection_status) ? _ = u.Error : y.includes(s.connection_status) ? _ = u.Processing : d.includes(s.connection_status) && (_ = u.RequiresMfa));
8
+ const a = [
9
+ t.user_name || t.feed_name || "",
10
+ t.account_number ? `*${t.account_number}` : ""
11
+ ].join(" ").trim();
12
+ return {
13
+ ...t,
14
+ connectionStatus: _,
15
+ displayName: a,
16
+ institution: n,
17
+ member: s
18
+ };
19
+ }, C = (t, n) => t.account_type > n.account_type ? 1 : t.account_type < n.account_type ? -1 : (t.name || "") > (n.name || "") ? 1 : (t.name || "") < (n.name || "") ? -1 : 0;
20
+ export {
21
+ m as a,
22
+ f as b,
23
+ A as c,
24
+ N as d,
25
+ I as i,
26
+ R as u
27
+ };
@@ -4,7 +4,7 @@ import { format as B } from "date-fns/format";
4
4
  import { fromUnixTime as W } from "date-fns/fromUnixTime";
5
5
  import { startOfMonth as D } from "date-fns/startOfMonth";
6
6
  import { subMonths as _ } from "date-fns/subMonths";
7
- import { a as f } from "./Accounts-M-LTzStv.mjs";
7
+ import { a as f } from "./Accounts-o7ohkngR.mjs";
8
8
  import { e as L, a as M, f as v } from "./Account-BiB1F8lL.mjs";
9
9
  const A = 13, I = (n, t) => n.filter((e) => {
10
10
  const { is_closed: o, is_deleted: s, is_hidden: a, is_manual: c } = e;
@@ -10,15 +10,15 @@ import E from "@mui/material/List";
10
10
  import B from "@mui/material/ListSubheader";
11
11
  import W from "@mui/system/Stack";
12
12
  import { useTheme as M1, alpha as y1 } from "@mui/material/styles";
13
- import { u as R, A as x1 } from "../AccountDetailsHeader-DkBNsLsI.mjs";
13
+ import { u as R, A as x1 } from "../AccountDetailsHeader-BkEF1gO-.mjs";
14
14
  import { L as w1 } from "../LineChart-B1qbKR8q.mjs";
15
15
  import { g as b1, a as S1, b as R1 } from "../SpendingData-Bz1bCWAs.mjs";
16
16
  import { l as T1, u as y, d as k, g as I, h as m1, b as G, a as E1 } from "../hooks-BxkfR-Ff.mjs";
17
17
  import { A as N, g as L, N as p1 } from "../Account-BiB1F8lL.mjs";
18
18
  import { I as _1, P as L1, S as f1 } from "../Account-DuOz1a27.mjs";
19
- import { a as D1, b as k1 } from "../AccountFields-DeZSQOuM.mjs";
20
- import { g as i2 } from "../AccountFields-DeZSQOuM.mjs";
21
- import { A as U } from "../AccountListItem-BIVhda6q.mjs";
19
+ import { a as D1, b as k1 } from "../AccountFields-C_dcdCM7.mjs";
20
+ import { g as i2 } from "../AccountFields-C_dcdCM7.mjs";
21
+ import { A as U } from "../AccountListItem-BAf03YhK.mjs";
22
22
  import a1 from "@mui/material/Tab";
23
23
  import I1 from "@mui/material/Tabs";
24
24
  import Z1 from "@mui/material/Switch";
@@ -66,7 +66,7 @@ import { L as o1 } from "../Loader-D3rjKx72.mjs";
66
66
  import { W as r3 } from "../WidgetContainer-B0ncgABX.mjs";
67
67
  import { M as A1 } from "../MiniWidgetContainer-Cu72GNsE.mjs";
68
68
  import { A as l2 } from "../AccountApi-ChQr5PAZ.mjs";
69
- import { A as d2 } from "../AccountStore-Brc0MNSF.mjs";
69
+ import { A as d2 } from "../AccountStore-ypdfueW9.mjs";
70
70
  const d3 = (t, o) => {
71
71
  const n = _1.includes(o) ? b1(t) : [], i = L1.includes(o) ? S1(t) : [], c = f1.includes(o) ? R1(t) : [];
72
72
  return [n, i, c].filter((l) => l.length > 0);
@@ -4,4 +4,4 @@ export declare const isManual: (account: Account) => boolean;
4
4
  export declare const usesCreditLimitField: (account: Account) => boolean;
5
5
  export declare const usesInterestRateField: (account: Account) => boolean;
6
6
  export declare const usesOriginalBalanceField: (account: Account) => boolean;
7
- export declare const augmentAccounts: (accounts: Account[], institutions: Institution[], members: Member[], shouldExcludeExternalAccounts: boolean) => DetailedAccount[];
7
+ export declare const augmentAccounts: (accounts: Account[], institutions: Institution[], members: Member[], shouldExcludeExternalAccounts: boolean, shouldExcludeHeldAccounts: boolean) => DetailedAccount[];
@@ -24,7 +24,7 @@ import ye from "@mui/material/Tab";
24
24
  import { getUnixTime as z } from "date-fns/getUnixTime";
25
25
  import J from "@mui/material/List";
26
26
  import ee from "@mui/material/ListItem";
27
- import { A as nt } from "../AccountListItem-BIVhda6q.mjs";
27
+ import { A as nt } from "../AccountListItem-BAf03YhK.mjs";
28
28
  import { f as q, D as X } from "../DateFormats-BMpMrZpW.mjs";
29
29
  import ot from "@mui/material/ListSubheader";
30
30
  import { f as K } from "../NumberFormatting-QCaNwbjv.mjs";
@@ -59,7 +59,7 @@ import { u as fo } from "../useScreenSize-B6JyS_Lj.mjs";
59
59
  import { useRef as J, useEffect as tt } from "react";
60
60
  import { u as yo } from "../useWidgetLoadTimer-DgN1bTyu.mjs";
61
61
  import { makeAutoObservable as h, runInAction as l, reaction as L, autorun as et } from "mobx";
62
- import { A as st } from "../AccountStore-Brc0MNSF.mjs";
62
+ import { A as st } from "../AccountStore-ypdfueW9.mjs";
63
63
  import rt from "posthog-js";
64
64
  import { B as ot } from "../BeatStore-C6CAT-ce.mjs";
65
65
  import { endOfMonth as O } from "date-fns/endOfMonth";
@@ -69,7 +69,7 @@ import { D as at } from "../DebtsStore-BZqNLaqd.mjs";
69
69
  import { F as nt } from "../FinstrongStore-BQxXxxYD.mjs";
70
70
  import { A as it, m as ct, a as ut, b as dt } from "../InvestmentUtil-BItV7uEs.mjs";
71
71
  import { M as lt } from "../MerchantStore-BzGi4JAZ.mjs";
72
- import { N as ht } from "../NetWorthStore-DP78lgZ0.mjs";
72
+ import { N as ht } from "../NetWorthStore-BqZ44-4M.mjs";
73
73
  import { a as gt } from "../SettingsStore-Cax1fzsz.mjs";
74
74
  import { addMonths as pt } from "date-fns/addMonths";
75
75
  import { getMonth as m } from "date-fns/getMonth";
@@ -16,7 +16,7 @@ import { G as je, v as te, u as C, k as V, g as R, d as re, a as ze, b as Xe } f
16
16
  import { u as K } from "../useScreenSize-B6JyS_Lj.mjs";
17
17
  import { D as ie } from "../Drawer-DV4NTsFg.mjs";
18
18
  import { b as E } from "../Localization-CPkpIwIx.mjs";
19
- import { A as Ye, u as Ve } from "../AccountDetailsHeader-DkBNsLsI.mjs";
19
+ import { A as Ye, u as Ve } from "../AccountDetailsHeader-BkEF1gO-.mjs";
20
20
  import Ke from "@mui/material/Card";
21
21
  import Ue from "@mui/material/CardContent";
22
22
  import qe from "@mui/material/CardHeader";
@@ -31,7 +31,7 @@ import be from "@mui/material/ListItem";
31
31
  import vt from "@mui/material/ListItemAvatar";
32
32
  import fe from "@mui/material/ListItemText";
33
33
  import { g as wt } from "../AccountDisplayName-CO7z3v99.mjs";
34
- import { g as kt } from "../AccountFields-DeZSQOuM.mjs";
34
+ import { g as kt } from "../AccountFields-C_dcdCM7.mjs";
35
35
  import Ge from "@mui/material/List";
36
36
  import $n from "@mui/material/ListItemButton";
37
37
  import En from "@mui/material/ListSubheader";
@@ -24,8 +24,8 @@ import { Stack as he } from "@mui/material";
24
24
  import ee from "@mui/material/Box";
25
25
  import pe from "@mui/material/Collapse";
26
26
  import X from "@mui/material/ListItemIcon";
27
- import { g as F } from "../NetWorthStore-DP78lgZ0.mjs";
28
- import { N as Wt } from "../NetWorthStore-DP78lgZ0.mjs";
27
+ import { g as F } from "../NetWorthStore-BqZ44-4M.mjs";
28
+ import { N as Wt } from "../NetWorthStore-BqZ44-4M.mjs";
29
29
  import { D as K } from "../Drawer-DV4NTsFg.mjs";
30
30
  import { A as v } from "../Analytics-BYItVAe-.mjs";
31
31
  import { format as ue, fromUnixTime as fe, differenceInMonths as xe } from "date-fns";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "7.12.16",
3
+ "version": "7.12.17",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",
@@ -1,27 +0,0 @@
1
- import { A as e, C as u, E as r, c as p, M as y } from "./Account-BiB1F8lL.mjs";
2
- const l = (t) => t && (t.account_type === e.CREDIT_CARD || t.account_type === e.LOAN || t.account_type === e.MORTGAGE || t.account_type === e.LINE_OF_CREDIT || t.account_type === e.CHECKING_LINE_OF_CREDIT), I = (t) => t.is_manual || !t.guid, R = (t) => t.account_type === e.LINE_OF_CREDIT || t.account_type === e.CREDIT_CARD || t.account_type === e.CHECKING_LINE_OF_CREDIT, f = (t) => t.account_type === e.SAVINGS || t.account_type === e.CHECKING || t.account_type === e.LINE_OF_CREDIT || t.account_type === e.CREDIT_CARD || t.account_type === e.LOAN || t.account_type === e.MORTGAGE, m = (t) => t.account_type === e.LOAN || t.account_type === e.MORTGAGE, A = (t, n, s, _) => t.filter((i) => !(i.member_is_managed_by_user && _)).sort(d).map((i) => {
3
- const c = n.find((a) => a.guid === i.institution_guid), o = s.find((a) => a.guid === i.member_guid);
4
- return E(i, c, o);
5
- }), E = (t, n, s) => {
6
- let _ = u.Connected;
7
- s && (r.includes(s.connection_status) ? _ = u.Error : p.includes(s.connection_status) ? _ = u.Processing : y.includes(s.connection_status) && (_ = u.RequiresMfa));
8
- const i = [
9
- t.user_name || t.feed_name || "",
10
- t.account_number ? `*${t.account_number}` : ""
11
- ].join(" ").trim();
12
- return {
13
- ...t,
14
- connectionStatus: _,
15
- displayName: i,
16
- institution: n,
17
- member: s
18
- };
19
- }, d = (t, n) => t.account_type > n.account_type ? 1 : t.account_type < n.account_type ? -1 : (t.name || "") > (n.name || "") ? 1 : (t.name || "") < (n.name || "") ? -1 : 0;
20
- export {
21
- l as a,
22
- R as b,
23
- m as c,
24
- A as d,
25
- I as i,
26
- f as u
27
- };