@mx-cartographer/experiences 8.2.4 → 8.2.5

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
+ ## [8.2.5] - 05-14-2026
2
+
3
+ - **FIXED** - Payment due date logic in account details to ensure consistent UTC-based date rendering
4
+
1
5
  ## [8.2.4] - 05-13-2026
2
6
 
3
7
  - **UPDATED** - Removed deprecated `variant` and `showBorder` props from Insights Micro Widget after `cardStyle` migration, reduce type duplication for micro insight `cards`
@@ -5,7 +5,7 @@ import { H3 as x, InstitutionLogo as D, Text as d, H2 as N } from "@mxenabled/mx
5
5
  import { f as P } from "./NumberFormatting--XMeeBfr.mjs";
6
6
  import p from "react";
7
7
  import { G, d as f, l as O, f as R, a as v, u as w } from "./hooks-BaO_gOI6.mjs";
8
- import { g as L } from "./AccountFields-CAy0x_4i.mjs";
8
+ import { g as L } from "./AccountFields-mwJ8NXsX.mjs";
9
9
  import { A as i } from "./Account-BaJmiJAG.mjs";
10
10
  import H from "@mui/material/Card";
11
11
  import M from "@mui/material/CardContent";
@@ -1,12 +1,12 @@
1
1
  import { jsx as p } from "react/jsx-runtime";
2
- import { Text as v, Icon as b } from "@mxenabled/mxui";
3
- import { A as d, a as h, P as F, b as T } from "./Account-BaJmiJAG.mjs";
4
- import { i as A, u as D, a as g, b as O, c as C } from "./AccountUtils-T5_Odvos.mjs";
2
+ import { Text as h, Icon as b } from "@mxenabled/mxui";
3
+ import { A as d, a as F, P as T, b as A } from "./Account-BaJmiJAG.mjs";
4
+ import { i as D, u as g, a as O, b as C, c as N } from "./AccountUtils-T5_Odvos.mjs";
5
5
  import { F as m } from "./Accounts-CseLC3lL.mjs";
6
- import { f as N } from "./DateUtil-Bhq59ZVg.mjs";
6
+ import { f } from "./DateUtil-Bhq59ZVg.mjs";
7
7
  import { f as s, i as o, a as S, b as I } from "./NumberFormatting--XMeeBfr.mjs";
8
8
  import { b as i } from "./Localization-DnoVyBNK.mjs";
9
- import { f, D as c } from "./DateFormats-HudZ3Bjs.mjs";
9
+ import { f as c, D as y } from "./DateFormats-HudZ3Bjs.mjs";
10
10
  const Y = (l, e) => {
11
11
  const n = [
12
12
  {
@@ -19,7 +19,7 @@ const Y = (l, e) => {
19
19
  valueFormatter: (a) => a
20
20
  }
21
21
  ];
22
- if (A(l)) {
22
+ if (D(l)) {
23
23
  n.unshift({
24
24
  label: e.account_balance,
25
25
  name: "balance",
@@ -30,7 +30,7 @@ const Y = (l, e) => {
30
30
  const a = Object.keys(d).filter((t) => Number(t)).map((t) => ({
31
31
  label: e.account_types[t],
32
32
  value: Number(t),
33
- icon: /* @__PURE__ */ p(b, { name: h[t] })
33
+ icon: /* @__PURE__ */ p(b, { name: F[t] })
34
34
  }));
35
35
  n.push({
36
36
  label: e.account_type,
@@ -42,10 +42,10 @@ const Y = (l, e) => {
42
42
  });
43
43
  }
44
44
  if (l.account_type === d.PROPERTY) {
45
- const a = Object.keys(F).filter((t) => Number(t)).map((t) => ({
45
+ const a = Object.keys(T).filter((t) => Number(t)).map((t) => ({
46
46
  label: e.property_types[t],
47
47
  value: Number(t),
48
- icon: /* @__PURE__ */ p(b, { name: T[t] })
48
+ icon: /* @__PURE__ */ p(b, { name: A[t] })
49
49
  }));
50
50
  n.push({
51
51
  label: e.property_type,
@@ -56,7 +56,7 @@ const Y = (l, e) => {
56
56
  valueFormatter: (t) => a.find((r) => r.value === t)?.label
57
57
  });
58
58
  }
59
- if (D(l)) {
59
+ if (g(l)) {
60
60
  let a = e.interest_rate, t = "interest_rate";
61
61
  l.is_manual || (typeof l.apr == "number" && (a = e.apr, t = "apr"), typeof l.apy == "number" && (a = e.apy, t = "apy")), n.push({
62
62
  event: "account_details_click_interest_rate",
@@ -68,7 +68,7 @@ const Y = (l, e) => {
68
68
  valueFormatter: (r) => o(r) ? S(r / 100) : r
69
69
  });
70
70
  }
71
- return g(l) && (n.push({
71
+ return O(l) && (n.push({
72
72
  label: e.minimum_payment,
73
73
  name: "minimum_payment",
74
74
  placeholder: i(e.enter_value, e.minimum_payment),
@@ -79,8 +79,8 @@ const Y = (l, e) => {
79
79
  name: "payment_due_at",
80
80
  type: m.Date,
81
81
  valueFormatter: (a) => {
82
- const t = typeof a == "number" ? new Date(a * 1e3) : a;
83
- return f(t, c.MED_MONTH_SHORT_DAY_FULL_YEAR);
82
+ const t = typeof a == "number" ? f(a) : a;
83
+ return c(t, y.MED_MONTH_SHORT_DAY_FULL_YEAR);
84
84
  }
85
85
  }) : n.push({
86
86
  label: e.day_payment_due,
@@ -91,13 +91,13 @@ const Y = (l, e) => {
91
91
  e.day_of_every_month,
92
92
  I(a <= 31 ? a : new Date(a).getDate())
93
93
  )
94
- })), O(l) && n.push({
94
+ })), C(l) && n.push({
95
95
  label: e.credit_limit,
96
96
  name: "credit_limit",
97
97
  placeholder: i(e.enter_value, e.credit_limit),
98
98
  type: m.Currency,
99
99
  valueFormatter: (a) => s(a, "0,0.00")
100
- }), C(l) && n.push({
100
+ }), N(l) && n.push({
101
101
  label: e.original_balance,
102
102
  minAmount: 1,
103
103
  name: "original_balance",
@@ -115,11 +115,11 @@ const Y = (l, e) => {
115
115
  }
116
116
  default:
117
117
  if (a = e.current_balance, t = l.balance, l.minimum_payment && l.payment_due_at) {
118
- const y = N(l.payment_due_at);
119
- r = /* @__PURE__ */ p(v, { component: "strong", variant: "caption", children: i(
118
+ const v = f(l.payment_due_at);
119
+ r = /* @__PURE__ */ p(h, { component: "strong", variant: "caption", children: i(
120
120
  e.payment_due_on,
121
121
  s(l.minimum_payment, "0,0.00"),
122
- f(y, c.FULL_MONTH_DAY)
122
+ c(v, y.FULL_MONTH_DAY)
123
123
  ) });
124
124
  } else l.credit_limit && (r = e.available_credit, _ = s(l.credit_limit - (l?.balance ?? 0), "0,0.00"));
125
125
  }
@@ -11,7 +11,7 @@ import { InstitutionLogo as B, Text as r } from "@mxenabled/mxui";
11
11
  import { Error as j } from "@mxenabled/mx-icons";
12
12
  import { I as T } from "./IconBacking-DgT8DCeh.mjs";
13
13
  import { f as $ } from "./NumberFormatting--XMeeBfr.mjs";
14
- import { g as k } from "./AccountFields-CAy0x_4i.mjs";
14
+ import { g as k } from "./AccountFields-mwJ8NXsX.mjs";
15
15
  import { u as w } from "./useAccountDisplayName-CFa_MrS6.mjs";
16
16
  import { a as E, u as M } from "./hooks-BaO_gOI6.mjs";
17
17
  import { C as d } from "./Account-BaJmiJAG.mjs";
@@ -11,15 +11,15 @@ import B from "@mui/material/ListSubheader";
11
11
  import P from "@mui/system/Stack";
12
12
  import { f as s1 } from "../NumberFormatting--XMeeBfr.mjs";
13
13
  import { useTheme as y1, alpha as w1 } from "@mui/material/styles";
14
- import { u as R, A as x1 } from "../AccountDetailsHeader-CfdnKyJK.mjs";
14
+ import { u as R, A as x1 } from "../AccountDetailsHeader-DIysk_4w.mjs";
15
15
  import { L as R1 } from "../LineChart-CejWS_rh.mjs";
16
16
  import { g as S1, a as T1, b as E1 } from "../SpendingData-PKlh8caU.mjs";
17
17
  import { l as D1, u as A, d as D, g as k, h as p1, a as _1, b as G } from "../hooks-BaO_gOI6.mjs";
18
18
  import { A as I, g as f, N as L1 } from "../Account-BaJmiJAG.mjs";
19
19
  import { I as f1, P as g1, S as H1 } from "../Account-BxHMlV9R.mjs";
20
- import { a as k1, b as I1 } from "../AccountFields-CAy0x_4i.mjs";
21
- import { g as c2 } from "../AccountFields-CAy0x_4i.mjs";
22
- import { A as U } from "../AccountListItem-BYyeeCf6.mjs";
20
+ import { a as k1, b as I1 } from "../AccountFields-mwJ8NXsX.mjs";
21
+ import { g as c2 } from "../AccountFields-mwJ8NXsX.mjs";
22
+ import { A as U } from "../AccountListItem-CU-oWLRi.mjs";
23
23
  import l1 from "@mui/material/Tab";
24
24
  import Z1 from "@mui/material/Tabs";
25
25
  import N1 from "@mui/material/Switch";
@@ -23,7 +23,7 @@ import ye from "@mui/material/Tab";
23
23
  import { getUnixTime as le } from "date-fns/getUnixTime";
24
24
  import Q from "@mui/material/List";
25
25
  import ee from "@mui/material/ListItem";
26
- import { A as tt } from "../AccountListItem-BYyeeCf6.mjs";
26
+ import { A as tt } from "../AccountListItem-CU-oWLRi.mjs";
27
27
  import { f as U, D as Y } from "../DateFormats-HudZ3Bjs.mjs";
28
28
  import nt from "@mui/material/ListSubheader";
29
29
  import { f as J } from "../NumberFormatting--XMeeBfr.mjs";
@@ -12,7 +12,7 @@ import { G as Ge, q as ee, u as w, k as V, g as k, d as te, a as He, b as ze } f
12
12
  import { u as ae } from "../useScreenSize-CeFhWTt_.mjs";
13
13
  import { b as T } from "../Localization-DnoVyBNK.mjs";
14
14
  import { D as ie } from "../Drawer-XPaLYjiO.mjs";
15
- import { A as je, u as Ve } from "../AccountDetailsHeader-CfdnKyJK.mjs";
15
+ import { A as je, u as Ve } from "../AccountDetailsHeader-DIysk_4w.mjs";
16
16
  import Ye from "@mui/material/Card";
17
17
  import Ke from "@mui/material/CardContent";
18
18
  import Ue from "@mui/material/CardHeader";
@@ -43,7 +43,7 @@ import { E as Be } from "../EmptyState-DHAkGsjk.mjs";
43
43
  import $n from "@mui/material/Chip";
44
44
  import { D as ie } from "../Drawer-XPaLYjiO.mjs";
45
45
  import { g as kt } from "../AccountDisplayName-CO7z3v99.mjs";
46
- import { g as Mt } from "../AccountFields-CAy0x_4i.mjs";
46
+ import { g as Mt } from "../AccountFields-mwJ8NXsX.mjs";
47
47
  import Nn from "@mui/material/ListSubheader";
48
48
  import { S as dt } from "../Select-BZRUpOib.mjs";
49
49
  import { A as je } from "../Account-BaJmiJAG.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "8.2.4",
3
+ "version": "8.2.5",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",