@mx-cartographer/experiences 7.10.18 → 7.10.19

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.10.19] - 02-13-2026
2
+
3
+ - **FIXED** - Bug causing Investment widget analysis to crash MD.
4
+
1
5
  ## [7.10.18] - 02-13-2026
2
6
 
3
7
  - **FIXED** - Deep link parameters for date range in Spending widget
@@ -49,23 +49,23 @@ const V = {
49
49
  for (let e = 0; e < a.length; e += s)
50
50
  o.push(a.slice(e, e + s).map((c) => t[c]));
51
51
  return o;
52
- }, W = A(O), h = A(L), w = (t) => {
52
+ }, W = A(O), h = A(L), S = (t) => {
53
53
  const s = M(t, g), a = M(t, f), o = (c, i) => {
54
- const _ = c.reduce((n, r) => n + T(r), 0), u = c.reduce((n, r) => {
55
- const l = i(r);
56
- return Object.keys(l).forEach((E) => n[E] = (n[E] || 0) + l[E]), n;
54
+ const _ = c.reduce((n, r) => n + T(r), 0), l = c.reduce((n, r) => {
55
+ const u = i(r);
56
+ return Object.keys(u).forEach((E) => n[E] = (n[E] || 0) + u[E]), n;
57
57
  }, {});
58
58
  return Object.fromEntries(
59
- Object.entries(u).map(([n, r]) => [n, r / _ * 100])
59
+ Object.entries(l).map(([n, r]) => [n, r / _ * 100])
60
60
  );
61
61
  };
62
62
  return {
63
63
  stocks: o(s, D),
64
64
  bonds: o(a, R)
65
65
  };
66
- }, S = (t) => {
67
- const s = t.filter((e) => !isNaN(e.equity_classification)), a = t.filter((e) => !isNaN(e.fixed_income_classification)), o = (e, c, i) => e.reduce((_, u) => {
68
- const n = c(u);
66
+ }, w = (t) => {
67
+ const s = t.filter((e) => !isNaN(e.equity_classification)), a = t.filter((e) => !isNaN(e.fixed_income_classification)), o = (e, c, i) => e.reduce((_, l) => {
68
+ const n = c(l);
69
69
  return Object.keys(i).forEach((r) => {
70
70
  _[r] = (_[r] || 0) + (n[r] || 0);
71
71
  }), _;
@@ -90,10 +90,10 @@ const V = {
90
90
  mid_growth_weight: c,
91
91
  mid_value_weight: i,
92
92
  small_core_weight: _,
93
- small_growth_weight: u,
93
+ small_growth_weight: l,
94
94
  small_value_weight: n,
95
95
  unknown_weight: r,
96
- equity_classification: l
96
+ equity_classification: u
97
97
  } = t, E = {
98
98
  LARGE_CORE: s ?? 0,
99
99
  LARGE_GROWTH: a ?? 0,
@@ -102,20 +102,20 @@ const V = {
102
102
  MID_GROWTH: c ?? 0,
103
103
  MID_VALUE: i ?? 0,
104
104
  SMALL_CORE: _ ?? 0,
105
- SMALL_GROWTH: u ?? 0,
105
+ SMALL_GROWTH: l ?? 0,
106
106
  SMALL_VALUE: n ?? 0,
107
107
  UNKNOWN: r ?? 0
108
108
  };
109
- return I(E) === 0 && l !== void 0 ? { [L[l]]: 100 } : E;
109
+ return I(E) === 0 && u !== void 0 ? { [L[u]]: 100 } : E;
110
110
  }, G = (t, s, a) => {
111
111
  const o = s(t), e = T(t), c = H(o, e);
112
112
  if (I(c) === 0) {
113
113
  const i = String(
114
114
  t.equity_classification ?? t.fixed_income_classification
115
115
  );
116
- if (!(i in a))
117
- throw new Error(`Invalid classification key: ${i}`);
118
- return { [a[i]]: e };
116
+ if (i in a)
117
+ return { [a[i]]: e };
118
+ console.error(`Invalid classification key: ${i}`);
119
119
  }
120
120
  return c;
121
121
  }, b = (t) => t.split("_").map((s) => s.charAt(0).toUpperCase() + s.slice(1).toLowerCase()).join(" "), p = (t) => t >= 1 ? `${d(t).format("0")}%` : "< 1%", T = (t) => t.calculated_market_value ?? t.market_value, M = (t, s) => t.filter((a) => {
@@ -127,8 +127,8 @@ const V = {
127
127
  }, I = (t) => Object.values(t).reduce((s, a) => s + a, 0);
128
128
  export {
129
129
  m as A,
130
- w as a,
131
- S as b,
130
+ S as a,
131
+ w as b,
132
132
  b as f,
133
133
  C as m
134
134
  };
@@ -65,7 +65,7 @@ import { f as wt, a as Ct, b as O } from "../BudgetUtil-CrAD2kHT.mjs";
65
65
  import { g as Po, e as Fo, c as Ho, d as Go, i as Wo } from "../BudgetUtil-CrAD2kHT.mjs";
66
66
  import { a as xt } from "../DebtsStore-BIbOVCPe.mjs";
67
67
  import { F as Dt } from "../FinstrongStore-DBSoLGSE.mjs";
68
- import { A as At, m as vt, a as Et, b as Tt } from "../InvestmentUtil-jOyOgzIB.mjs";
68
+ import { A as At, m as vt, a as Et, b as Tt } from "../InvestmentUtil-BItV7uEs.mjs";
69
69
  import { M as Bt } from "../MerchantStore-WvZ4gnQe.mjs";
70
70
  import { N as It } from "../NetWorthStore-yV43kJro.mjs";
71
71
  import { a as Nt } from "../SettingsStore-uQ4s2d0P.mjs";
@@ -24,7 +24,7 @@ import ce from "@mui/material/styles/useTheme";
24
24
  import { Icon as k } from "@mxenabled/mx-icons";
25
25
  import { D as ze } from "../Donut-DKY8mL3P.mjs";
26
26
  import { useTheme as Oe } from "@mui/material/styles";
27
- import { f as Ve, A as V } from "../InvestmentUtil-jOyOgzIB.mjs";
27
+ import { f as Ve, A as V } from "../InvestmentUtil-BItV7uEs.mjs";
28
28
  import Re from "@mui/material/ListItemText";
29
29
  import de from "@mui/material/IconButton";
30
30
  import Pe from "@mui/material/Tooltip";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "7.10.18",
3
+ "version": "7.10.19",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",