@mx-cartographer/experiences 7.2.15-alpha-ram17-finstrong-testing → 7.2.15-alpha-ram19-finstrong-testing

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.
@@ -11,8 +11,8 @@ import { C as gs, b as ps, L as ms, a as _s } from "../User-wXzDI4M8.mjs";
11
11
  import { H as ot } from "../Help-DhcC-C05.mjs";
12
12
  import { E as ys } from "../Help-DhcC-C05.mjs";
13
13
  import { M as bs } from "../MicroWidgetContainer-DEiRnYVa.mjs";
14
- import { M as Cs } from "../MiniWidgetContainer-CmXpTylX.mjs";
15
- import { A as Ds, D as vs, W as As } from "../WidgetContainer-6dsjtOVg.mjs";
14
+ import { M as xs } from "../MiniWidgetContainer-CmXpTylX.mjs";
15
+ import { A as vs, D as Ds, W as As } from "../WidgetContainer-6dsjtOVg.mjs";
16
16
  import { k as Ts, a as Bs, e as Is, h as Ns, A as Ms, f as ks, l as $s, d as Rs, n as Ps, E as Os, j as Us, N as Ls, i as Gs, P as Hs, o as Fs, S as Ws } from "../ConnectDrawer-CuUj16NH.mjs";
17
17
  import { C as Ys } from "../CurrencyInput-xH-hqry9.mjs";
18
18
  import { L as zs } from "../Loader-DUaFpDGv.mjs";
@@ -29,14 +29,14 @@ import { d as it } from "../GoalStore-Dcnj5pii.mjs";
29
29
  import { C as pr, G as mr, M as _r, T as fr } from "../GoalStore-Dcnj5pii.mjs";
30
30
  import { C as Sr } from "../CurrencyText-kyC1aseI.mjs";
31
31
  import { E as wr } from "../EmptyState-DoxNUae-.mjs";
32
- import { L as xr } from "../ListItemAction-uobBrm_a.mjs";
32
+ import { L as Cr } from "../ListItemAction-uobBrm_a.mjs";
33
33
  import { T as ct } from "../TrendsStore-BVNxGsE4.mjs";
34
- import { L as vr, S as Ar } from "../TrendsStore-BVNxGsE4.mjs";
34
+ import { L as Dr, S as Ar } from "../TrendsStore-BVNxGsE4.mjs";
35
35
  import { A as Tr, B as Br, I as Ir, N as Nr, T as Mr, a as kr } from "../ToggleListItem-r0Kx56wF.mjs";
36
36
  import { jsxs as y, jsx as n } from "react/jsx-runtime";
37
37
  import dt, { useRef as lt, useEffect as ut } from "react";
38
- import { css as C, keyframes as ht } from "@mxenabled/cssinjs";
39
- import { useTokens as x, Text as B } from "@mxenabled/mxui";
38
+ import { css as x, keyframes as ht } from "@mxenabled/cssinjs";
39
+ import { useTokens as C, Text as B } from "@mxenabled/mxui";
40
40
  import { D as Rr } from "../Donut-oaQFlbit.mjs";
41
41
  import { L as Or } from "../LineChart-Ct9DNmhS.mjs";
42
42
  import { S as Lr } from "../StatusBar-BK_uYHAB.mjs";
@@ -50,7 +50,7 @@ import { C as eo, c as so, a as ro, P as oo } from "../Category-CevNQ03n.mjs";
50
50
  import { C as no, f as io, b as co, a as lo, g as uo, i as ho } from "../NumberFormatting-Buh7u8Oi.mjs";
51
51
  import { R as mt } from "../RecurringTransactionsStore-C4RVULF8.mjs";
52
52
  import { S as po, T as mo } from "../RecurringTransactionsStore-C4RVULF8.mjs";
53
- import { G as fo, C as yo, D as So, W as bo, d as wo, a as Co, i as xo, v as Do, m as vo, x as Ao, y as Eo, g as To, z as Bo, u as Io, f as No, b as Mo, l as ko, A as $o, t as Ro, n as Po, c as Oo, r as Uo, o as Lo, B as Go, j as Ho, s as Fo, h as Wo, w as qo, p as Yo, q as Qo } from "../hooks-C41HAxM5.mjs";
53
+ import { G as fo, C as yo, D as So, W as bo, d as wo, a as xo, i as Co, v as vo, m as Do, x as Ao, y as Eo, g as To, z as Bo, u as Io, f as No, b as Mo, l as ko, A as $o, t as Ro, n as Po, c as Oo, r as Uo, o as Lo, B as Go, j as Ho, s as Fo, h as Wo, w as qo, p as Yo, q as Qo } from "../hooks-C41HAxM5.mjs";
54
54
  import { u as Xo } from "../useAccountDisplayName-CMMlIOXF.mjs";
55
55
  import { u as Ko } from "../useInsightsEnabled-CNjP5cfR.mjs";
56
56
  import { u as Zo } from "../useScreenSize-B6JyS_Lj.mjs";
@@ -63,9 +63,9 @@ import { startOfMonth as J } from "date-fns/startOfMonth";
63
63
  import { startOfToday as U } from "date-fns/startOfToday";
64
64
  import { f as bt, a as wt, b as L } from "../BudgetUtil-wjoNuj7B.mjs";
65
65
  import { g as ta, e as ea, c as sa, d as ra, i as oa } from "../BudgetUtil-wjoNuj7B.mjs";
66
- import { a as Ct } from "../DebtsStore-Bu8rRRSL.mjs";
67
- import { F as xt } from "../FinstrongStore-BbnA6Crl.mjs";
68
- import { A as Dt, m as vt, a as At, b as Et } from "../InvestmentUtil-jOyOgzIB.mjs";
66
+ import { a as xt } from "../DebtsStore-Bu8rRRSL.mjs";
67
+ import { F as Ct } from "../FinstrongStore-BbnA6Crl.mjs";
68
+ import { A as vt, m as Dt, a as At, b as Et } from "../InvestmentUtil-jOyOgzIB.mjs";
69
69
  import { M as Tt } from "../MerchantStore-DrFvsUyy.mjs";
70
70
  import { N as Bt } from "../NetWorthStore-CpL_kqvx.mjs";
71
71
  import { a as It } from "../SettingsStore-BcgS_Ohv.mjs";
@@ -249,7 +249,7 @@ const Ke = (s) => {
249
249
  t.current = s;
250
250
  }, [s]), t.current;
251
251
  }, Ft = ({ color: s, labelAverage: t, labelMain: e }) => {
252
- const r = x(), o = Wt(r, s);
252
+ const r = C(), o = Wt(r, s);
253
253
  return /* @__PURE__ */ y("div", { className: `mx-cmn-bar-chart-legend ${o}`, children: [
254
254
  /* @__PURE__ */ n("div", { "aria-label": e, className: "mx-cmn-color-square", role: "img" }),
255
255
  /* @__PURE__ */ n(B, { variant: "XSmall", children: e }),
@@ -260,7 +260,7 @@ const Ke = (s) => {
260
260
  ] }),
261
261
  /* @__PURE__ */ n(B, { variant: "XSmall", children: t })
262
262
  ] });
263
- }, Wt = (s, t) => C({
263
+ }, Wt = (s, t) => x({
264
264
  alignItems: "center",
265
265
  display: "flex",
266
266
  gap: s.Spacing.XSmall,
@@ -296,7 +296,7 @@ const Ke = (s) => {
296
296
  selectedIndex: c,
297
297
  value: d
298
298
  }) => {
299
- const u = x(), l = qt(u, t, e), g = (_) => {
299
+ const u = C(), l = qt(u, t, e), g = (_) => {
300
300
  a && (_.key === " " || _.key === "Enter") && a(r);
301
301
  }, m = c === void 0 || c === r ? "primary" : "secondary", i = () => /* @__PURE__ */ n(
302
302
  B,
@@ -327,7 +327,7 @@ const Ke = (s) => {
327
327
  ] });
328
328
  }, qt = (s, t, e) => {
329
329
  const r = `expandBar-${Math.round(e)}`, o = ht(r, { from: { height: 0 }, to: { height: e } });
330
- return C({
330
+ return x({
331
331
  display: "flex",
332
332
  flexDirection: "column",
333
333
  justifyContent: "flex-end",
@@ -373,14 +373,14 @@ const Ke = (s) => {
373
373
  width: m,
374
374
  xAxisLabel: i = ""
375
375
  }) => {
376
- const _ = x(), b = Yt(_, m), D = l / c * u, v = Math.abs(l) / c * e, A = d === void 0 || d === o ? "primary" : "secondary";
376
+ const _ = C(), b = Yt(_, m), v = l / c * u, D = Math.abs(l) / c * e, A = d === void 0 || d === o ? "primary" : "secondary";
377
377
  return /* @__PURE__ */ y("div", { className: `mx-cmn-barchart-bar-column ${b}`, children: [
378
378
  /* @__PURE__ */ n("div", { style: { height: u }, children: l >= 0 && /* @__PURE__ */ n(
379
379
  q,
380
380
  {
381
381
  ariaLabel: s,
382
382
  color: r,
383
- height: D,
383
+ height: v,
384
384
  index: o,
385
385
  label: g,
386
386
  onClick: a,
@@ -395,7 +395,7 @@ const Ke = (s) => {
395
395
  {
396
396
  ariaLabel: s,
397
397
  color: r,
398
- height: v,
398
+ height: D,
399
399
  index: o,
400
400
  label: g,
401
401
  onClick: a,
@@ -411,7 +411,7 @@ const Ke = (s) => {
411
411
  }
412
412
  )
413
413
  ] });
414
- }, Yt = (s, t) => C({
414
+ }, Yt = (s, t) => x({
415
415
  display: "flex",
416
416
  flexDirection: "column",
417
417
  flexGrow: t === void 0 ? 1 : 0,
@@ -451,13 +451,13 @@ const Ke = (s) => {
451
451
  selectedIndex: u,
452
452
  valueFormatter: l = (g) => `${g}`
453
453
  }) => {
454
- const g = x(), m = Vt(g), i = r.reduce(Xt, []), _ = s !== void 0 ? s : i.reduce(Qt, 0) / i.length, b = Math.max(...i), D = Math.min(...i), v = i.reduce(zt, 0), A = b >= 0, R = D < 0, I = Q(A, R, o), N = Q(R, A, o), P = jt(_, b, D, I || N), tt = (w) => u === void 0 || w === u ? e : `${e}80`, O = () => /* @__PURE__ */ n(
454
+ const g = C(), m = Vt(g), i = r.reduce(Xt, []), _ = s !== void 0 ? s : i.reduce(Qt, 0) / i.length, b = Math.max(...i), v = Math.min(...i), D = i.reduce(zt, 0), A = b >= 0, R = v < 0, I = Q(A, R, o), N = Q(R, A, o), P = jt(_, b, v, I || N), tt = (w) => u === void 0 || w === u ? e : `${e}80`, O = () => /* @__PURE__ */ n(
455
455
  Y,
456
456
  {
457
457
  averageLineHeight: P,
458
458
  bottomHeight: N,
459
459
  color: "",
460
- range: v,
460
+ range: D,
461
461
  topHeight: I,
462
462
  value: 0,
463
463
  width: void 0
@@ -476,7 +476,7 @@ const Ke = (s) => {
476
476
  color: tt(M),
477
477
  index: M,
478
478
  onClick: d,
479
- range: v,
479
+ range: D,
480
480
  selectedIndex: u,
481
481
  topHeight: I,
482
482
  value: w.value,
@@ -490,7 +490,7 @@ const Ke = (s) => {
490
490
  ] }),
491
491
  /* @__PURE__ */ n(Ft, { color: e, labelAverage: a, labelMain: c })
492
492
  ] });
493
- }, Vt = (s) => C({
493
+ }, Vt = (s) => x({
494
494
  "& .mx-cmn-chart-container": {
495
495
  alignItems: "flex-end",
496
496
  display: "flex",
@@ -505,7 +505,7 @@ const Ke = (s) => {
505
505
  strokeWidth: r = pt,
506
506
  children: o
507
507
  }) => {
508
- const a = x(), c = Jt(a, e), d = (e - r) / 2, u = e / 2;
508
+ const a = C(), c = Jt(a, e), d = (e - r) / 2, u = e / 2;
509
509
  let l = -90 - (s ? 1 : 0), g = 0;
510
510
  return /* @__PURE__ */ y("div", { className: `mx-cmn-multi-segment-donut ${c}`, children: [
511
511
  /* @__PURE__ */ y("svg", { height: e, width: e, children: [
@@ -538,7 +538,7 @@ const Ke = (s) => {
538
538
  ] }),
539
539
  /* @__PURE__ */ n("div", { className: "mx-cmn-multi-segment-donut-children", children: o })
540
540
  ] });
541
- }, Jt = (s, t) => C({
541
+ }, Jt = (s, t) => x({
542
542
  height: t,
543
543
  marginTop: `-${s.Spacing.XSmall}px`,
544
544
  position: "relative",
@@ -853,7 +853,7 @@ class j {
853
853
  updateHoldings = async (t) => this.fetchInstance.put(`${h.HOLDINGS}/${t.guid}`, t).then((e) => e.holding);
854
854
  }
855
855
  class ne {
856
- analysisType = Dt.Stocks;
856
+ analysisType = vt.Stocks;
857
857
  api = new j("/", "");
858
858
  holdings = [];
859
859
  holdingsLoaded = !1;
@@ -863,7 +863,7 @@ class ne {
863
863
  this.globalStore = t, this.api = new j(t.endpoint, t.sessionToken, t.onError), f(this);
864
864
  }
865
865
  get analysisChartData() {
866
- return vt(At(this.visibleHoldings), this.analysisType);
866
+ return Dt(At(this.visibleHoldings), this.analysisType);
867
867
  }
868
868
  get analysisDetails() {
869
869
  return Et(this.visibleHoldings)[this.analysisType] || {};
@@ -1099,7 +1099,7 @@ class de {
1099
1099
  // if excluded from 1 widget, excluded from all
1100
1100
  setSelectedAccounts = (t) => {
1101
1101
  this.selectedAccounts = t.filter(
1102
- (e) => !e.is_excluded_from_accounts
1102
+ (e) => !(e.is_excluded_from_accounts || e.is_excluded_from_budgets || e.is_excluded_from_cash_flow || e.is_excluded_from_debts || e.is_excluded_from_goals || e.is_excluded_from_investments || e.is_excluded_from_net_worth || e.is_excluded_from_spending || e.is_excluded_from_transactions || e.is_excluded_from_trends)
1103
1103
  ), this.selectedAccountGuids = this.selectedAccounts.map((e) => e.guid);
1104
1104
  };
1105
1105
  // Sets an array of selected account guids for the AccountFilter component
@@ -1199,7 +1199,7 @@ class Je {
1199
1199
  // UI Stores
1200
1200
  globalUiStore;
1201
1201
  constructor(t = K, e = "/", r) {
1202
- this.appConfig = t, this.endpoint = e, this.sessionToken = t.options.session_token ?? "", this.onError = r, this.accountStore = new ft(this), this.appDataStore = new ie(this), this.analyticsStore = new ee(this), this.beatStore = new St(this), this.budgetsStore = new se(this), this.cashflowStore = new nt(this), this.categoryStore = new et(this), this.connectStore = new ce(this), this.copyStore = new te(this), this.debtsStore = new Ct(this), this.finstrongStore = new xt(this), this.goalStore = new it(this), this.helpStore = new ae(this), this.holdingStore = new ne(this), this.merchantStore = new Tt(this), this.netWorthStore = new Bt(this), this.notificationStore = new st(this), this.recurringTransactionsStore = new mt(this), this.settingsStore = new It(this), this.transactionStore = new at(this), this.trendsStore = new ct(this), this.userStore = new le(this), this.globalUiStore = new de(this), f(this);
1202
+ this.appConfig = t, this.endpoint = e, this.sessionToken = t.options.session_token ?? "", this.onError = r, this.accountStore = new ft(this), this.appDataStore = new ie(this), this.analyticsStore = new ee(this), this.beatStore = new St(this), this.budgetsStore = new se(this), this.cashflowStore = new nt(this), this.categoryStore = new et(this), this.connectStore = new ce(this), this.copyStore = new te(this), this.debtsStore = new xt(this), this.finstrongStore = new Ct(this), this.goalStore = new it(this), this.helpStore = new ae(this), this.holdingStore = new ne(this), this.merchantStore = new Tt(this), this.netWorthStore = new Bt(this), this.notificationStore = new st(this), this.recurringTransactionsStore = new mt(this), this.settingsStore = new It(this), this.transactionStore = new at(this), this.trendsStore = new ct(this), this.userStore = new le(this), this.globalUiStore = new de(this), f(this);
1203
1203
  }
1204
1204
  get isInitialized() {
1205
1205
  return this.globalUiStore.isInitialized;
@@ -1231,7 +1231,7 @@ class Je {
1231
1231
  };
1232
1232
  }
1233
1233
  export {
1234
- Ds as ANALYTICS_EVENTS,
1234
+ vs as ANALYTICS_EVENTS,
1235
1235
  Ts as AccountFilter,
1236
1236
  Bs as AccountIcon,
1237
1237
  Is as AccountIconVariants,
@@ -1263,7 +1263,7 @@ export {
1263
1263
  gt as DEFAULT_DONUT_SIZE,
1264
1264
  pt as DEFAULT_STROKE_WIDTH,
1265
1265
  ar as DataRow,
1266
- vs as DateRangeSelector,
1266
+ Ds as DateRangeSelector,
1267
1267
  Fr as Dialog,
1268
1268
  Rr as Donut,
1269
1269
  jr as Drawer,
@@ -1286,15 +1286,15 @@ export {
1286
1286
  Rt as IterationItemTypes,
1287
1287
  Qe as LOADING_STATUS,
1288
1288
  Or as LineChart,
1289
- xr as ListItemAction,
1290
- vr as ListItemRow,
1289
+ Cr as ListItemAction,
1290
+ Dr as ListItemRow,
1291
1291
  ms as ListItemWrapper,
1292
1292
  zs as Loader,
1293
1293
  Xe as LocalizedCopyApi,
1294
1294
  _r as MetaType,
1295
1295
  Us as MfaStatuses,
1296
1296
  bs as MicroWidgetContainer,
1297
- Cs as MiniWidgetContainer,
1297
+ xs as MiniWidgetContainer,
1298
1298
  Ze as MultiSegmentDonut,
1299
1299
  Ls as NonConnectedStatuses,
1300
1300
  us as NotificationApi,
@@ -1358,10 +1358,10 @@ export {
1358
1358
  ho as isValidNumber,
1359
1359
  Xo as useAccountDisplayName,
1360
1360
  wo as useAccountStore,
1361
- Co as useAppConfig,
1362
- xo as useBudgetsStore,
1363
- Do as useCashflowStore,
1364
- vo as useCategoryStore,
1361
+ xo as useAppConfig,
1362
+ Co as useBudgetsStore,
1363
+ vo as useCashflowStore,
1364
+ Do as useCategoryStore,
1365
1365
  os as useCombineEvents,
1366
1366
  as as useCombinePageviews,
1367
1367
  Ao as useDebtStore,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "7.2.15-alpha-ram17-finstrong-testing",
3
+ "version": "7.2.15-alpha-ram19-finstrong-testing",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",