@mx-cartographer/experiences 8.2.3 → 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,11 @@
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
+
5
+ ## [8.2.4] - 05-13-2026
6
+
7
+ - **UPDATED** - Removed deprecated `variant` and `showBorder` props from Insights Micro Widget after `cardStyle` migration, reduce type duplication for micro insight `cards`
8
+
1
9
  ## [8.2.3] - 05-11-2026
2
10
 
3
11
  - **UPDATED** - Adds suppport for `cardStyle` batcave setting for Insights Micro Widget
@@ -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";