@mx-cartographer/experiences 7.0.20-alpha.mm6 → 7.0.20-alpha.mm8
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/dist/common/index.es.js
CHANGED
|
@@ -12,7 +12,7 @@ import { H as at } from "../Help-DhcC-C05.mjs";
|
|
|
12
12
|
import { E as _s } from "../Help-DhcC-C05.mjs";
|
|
13
13
|
import { M as fs } from "../MicroWidgetContainer-DVbtJbSQ.mjs";
|
|
14
14
|
import { M as bs } from "../MiniWidgetContainer-DrGaNvh9.mjs";
|
|
15
|
-
import { A as xs, D as Cs, W as
|
|
15
|
+
import { A as xs, D as Cs, W as Ds } from "../WidgetContainer-DJ34Wj6k.mjs";
|
|
16
16
|
import { i as Es, a as As, e as Ts, l as Bs, A as Is, f as Ns, j as Fs, d as Ms, k as $s, E as Rs, h as Us, N as ks, g as Ls, P as Os, m as Gs, S as Hs } from "../ConnectDrawer-BKTWEqme.mjs";
|
|
17
17
|
import { C as qs } from "../CurrencyInput-tMqXd3KG.mjs";
|
|
18
18
|
import { L as Qs } from "../Loader-DUaFpDGv.mjs";
|
|
@@ -31,7 +31,7 @@ import { C as yr } from "../CurrencyText-YUhH2caW.mjs";
|
|
|
31
31
|
import { E as Sr } from "../EmptyState-C0lr9E5T.mjs";
|
|
32
32
|
import { L as wr } from "../ListItemAction-CdgLl2l2.mjs";
|
|
33
33
|
import { T as ct } from "../TrendsStore-B7tM8VCn.mjs";
|
|
34
|
-
import { L as Cr, S as
|
|
34
|
+
import { L as Cr, S as Dr, u as vr } from "../TrendsStore-B7tM8VCn.mjs";
|
|
35
35
|
import { A as Ar, B as Tr, I as Br, N as Ir, T as Nr, a as Fr } from "../Notification-ByMBpJ5u.mjs";
|
|
36
36
|
import { jsxs as _, jsx as c } from "react/jsx-runtime";
|
|
37
37
|
import dt, { useRef as ut, useEffect as lt } from "react";
|
|
@@ -50,7 +50,7 @@ import { C as ta, c as ea, a as sa, P as ra } from "../Category-CevNQ03n.mjs";
|
|
|
50
50
|
import { C as oa, f as na, b as ia, a as ca, g as da, i as ua } from "../NumberFormatting-CtWHhyBX.mjs";
|
|
51
51
|
import { R as mt } from "../RecurringTransactionsStore-BMqPhzmZ.mjs";
|
|
52
52
|
import { S as ha, T as ga } from "../RecurringTransactionsStore-BMqPhzmZ.mjs";
|
|
53
|
-
import { G as ma, B as _a, C as ya, W as fa, c as Sa, m as ba, g as wa, t as xa, k as Ca, x as
|
|
53
|
+
import { G as ma, B as _a, C as ya, W as fa, c as Sa, m as ba, g as wa, t as xa, k as Ca, x as Da, y as va, e as Ea, w as Aa, u as Ta, l as Ba, a as Ia, j as Na, z as Fa, s as Ma, b as $a, q as Ra, n as Ua, A as ka, h as La, r as Oa, f as Ga, v as Ha, o as Pa, p as qa } from "../hooks-DgdCFkB7.mjs";
|
|
54
54
|
import { u as Qa } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
55
55
|
import { makeAutoObservable as m, runInAction as p, reaction as _t } from "mobx";
|
|
56
56
|
import { a as yt } from "../AccountStore-n9WNXu-u.mjs";
|
|
@@ -63,7 +63,7 @@ import { f as bt, a as wt, b as O } from "../BudgetUtil-CtWXckgv.mjs";
|
|
|
63
63
|
import { g as za, e as Xa, c as Ka, d as ja, i as Va } from "../BudgetUtil-CtWXckgv.mjs";
|
|
64
64
|
import { a as xt } from "../DebtsStore-BteGAanL.mjs";
|
|
65
65
|
import { a as Ct } from "../FinstrongStore-CwtJyBp-.mjs";
|
|
66
|
-
import { A as
|
|
66
|
+
import { A as Dt, m as vt, a as Et, b as At } from "../InvestmentUtil-jOyOgzIB.mjs";
|
|
67
67
|
import { M as Tt } from "../MerchantStore-C9c7IGVH.mjs";
|
|
68
68
|
import { N as Bt } from "../NetWorthStore-DlsAqRCg.mjs";
|
|
69
69
|
import { a as It } from "../SettingsStore-SO5fm8No.mjs";
|
|
@@ -405,14 +405,14 @@ const Xe = (s) => {
|
|
|
405
405
|
width: f,
|
|
406
406
|
xAxisLabel: g = ""
|
|
407
407
|
}) => {
|
|
408
|
-
const S = x(), C = Ot(S, f),
|
|
408
|
+
const S = x(), C = Ot(S, f), D = l / d * n, v = Math.abs(l) / d * e, E = i === void 0 || i === a ? "primary" : "secondary";
|
|
409
409
|
return /* @__PURE__ */ _("div", { className: `mx-cmn-barchart-bar-column ${C}`, children: [
|
|
410
410
|
/* @__PURE__ */ c("div", { style: { height: n }, children: l >= 0 && /* @__PURE__ */ c(
|
|
411
411
|
W,
|
|
412
412
|
{
|
|
413
413
|
ariaLabel: s,
|
|
414
414
|
color: r,
|
|
415
|
-
height:
|
|
415
|
+
height: D,
|
|
416
416
|
index: a,
|
|
417
417
|
label: h,
|
|
418
418
|
onClick: o,
|
|
@@ -427,7 +427,7 @@ const Xe = (s) => {
|
|
|
427
427
|
{
|
|
428
428
|
ariaLabel: s,
|
|
429
429
|
color: r,
|
|
430
|
-
height:
|
|
430
|
+
height: v,
|
|
431
431
|
index: a,
|
|
432
432
|
label: h,
|
|
433
433
|
onClick: o,
|
|
@@ -483,13 +483,13 @@ const Xe = (s) => {
|
|
|
483
483
|
selectedIndex: n,
|
|
484
484
|
valueFormatter: l = (h) => `${h}`
|
|
485
485
|
}) => {
|
|
486
|
-
const h = x(), f = Qt(h), g = r.reduce(Pt, []), S = s !== void 0 ? s : g.reduce(Gt, 0) / g.length, C = Math.max(...g),
|
|
486
|
+
const h = x(), f = Qt(h), g = r.reduce(Pt, []), S = s !== void 0 ? s : g.reduce(Gt, 0) / g.length, C = Math.max(...g), D = Math.min(...g), v = g.reduce(Ht, 0), E = C >= 0, R = D < 0, I = Y(E, R, a), N = Y(R, E, a), U = qt(S, C, D, I || N), tt = (b) => n === void 0 || b === n ? e : `${e}80`, k = () => /* @__PURE__ */ c(
|
|
487
487
|
Q,
|
|
488
488
|
{
|
|
489
489
|
averageLineHeight: U,
|
|
490
490
|
bottomHeight: N,
|
|
491
491
|
color: "",
|
|
492
|
-
range:
|
|
492
|
+
range: v,
|
|
493
493
|
topHeight: I,
|
|
494
494
|
value: 0,
|
|
495
495
|
width: void 0
|
|
@@ -508,7 +508,7 @@ const Xe = (s) => {
|
|
|
508
508
|
color: tt(F),
|
|
509
509
|
index: F,
|
|
510
510
|
onClick: i,
|
|
511
|
-
range:
|
|
511
|
+
range: v,
|
|
512
512
|
selectedIndex: n,
|
|
513
513
|
topHeight: I,
|
|
514
514
|
value: b.value,
|
|
@@ -886,7 +886,7 @@ class K {
|
|
|
886
886
|
updateHoldings = async (t) => this.fetchInstance.put(`${u.HOLDINGS}/${t.guid}`, t).then((e) => e.holding);
|
|
887
887
|
}
|
|
888
888
|
class ae {
|
|
889
|
-
analysisType =
|
|
889
|
+
analysisType = Dt.Stocks;
|
|
890
890
|
api = new K("/", "");
|
|
891
891
|
holdings = [];
|
|
892
892
|
holdingsLoaded = !1;
|
|
@@ -896,7 +896,7 @@ class ae {
|
|
|
896
896
|
this.globalStore = t, this.api = new K(t.endpoint, t.sessionToken, t.onError), m(this);
|
|
897
897
|
}
|
|
898
898
|
get analysisChartData() {
|
|
899
|
-
return
|
|
899
|
+
return vt(Et(this.visibleHoldings), this.analysisType);
|
|
900
900
|
}
|
|
901
901
|
get analysisDetails() {
|
|
902
902
|
return At(this.visibleHoldings)[this.analysisType] || {};
|
|
@@ -1229,8 +1229,8 @@ class Ve {
|
|
|
1229
1229
|
userStore;
|
|
1230
1230
|
// UI Stores
|
|
1231
1231
|
globalUiStore;
|
|
1232
|
-
constructor(t = j, e = "/") {
|
|
1233
|
-
this.appConfig = t, this.endpoint = e, this.sessionToken = t.options.session_token ?? "", this.onError =
|
|
1232
|
+
constructor(t = j, e = "/", r) {
|
|
1233
|
+
this.appConfig = t, this.endpoint = e, this.sessionToken = t.options.session_token ?? "", this.onError = r, this.accountStore = new yt(this), this.appDataStore = new oe(this), this.analyticsStore = new Kt(this), this.beatStore = new St(this), this.budgetsStore = new jt(this), this.cashflowStore = new nt(this), this.categoryStore = new et(this), this.connectStore = new ne(this), this.copyStore = new Xt(this), this.debtsStore = new xt(this), this.finstrongStore = new Ct(this), this.goalStore = new it(this), this.helpStore = new re(this), this.holdingStore = new ae(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 ot(this), this.trendsStore = new ct(this), this.userStore = new ce(this), this.globalUiStore = new ie(this), m(this);
|
|
1234
1234
|
}
|
|
1235
1235
|
get isInitialized() {
|
|
1236
1236
|
return this.globalUiStore.isInitialized;
|
|
@@ -1353,7 +1353,7 @@ export {
|
|
|
1353
1353
|
Vs as SelectionBox,
|
|
1354
1354
|
Yr as SingleSegmentDonut,
|
|
1355
1355
|
ha as Sizes,
|
|
1356
|
-
|
|
1356
|
+
Dr as StackedLineChart,
|
|
1357
1357
|
Lr as StatusBar,
|
|
1358
1358
|
Hs as StatusName,
|
|
1359
1359
|
ga as TOUCH_TARGET,
|
|
@@ -1367,7 +1367,7 @@ export {
|
|
|
1367
1367
|
ce as UserStore,
|
|
1368
1368
|
Vt as UserVerification,
|
|
1369
1369
|
q as WidgetApi,
|
|
1370
|
-
|
|
1370
|
+
Ds as WidgetContainer,
|
|
1371
1371
|
ya as WidgetContainerContext,
|
|
1372
1372
|
fa as WidgetContainerProvider,
|
|
1373
1373
|
es as analyticsSession,
|
|
@@ -1394,8 +1394,8 @@ export {
|
|
|
1394
1394
|
Ca as useCategoryStore,
|
|
1395
1395
|
ss as useCombineEvents,
|
|
1396
1396
|
rs as useCombinePageviews,
|
|
1397
|
-
|
|
1398
|
-
|
|
1397
|
+
Da as useDebtStore,
|
|
1398
|
+
va as useError,
|
|
1399
1399
|
Ea as useEvent,
|
|
1400
1400
|
Aa as useFinstrongStore,
|
|
1401
1401
|
Ta as useGlobalCopyStore,
|
|
@@ -1404,7 +1404,7 @@ export {
|
|
|
1404
1404
|
Na as useGoalStore,
|
|
1405
1405
|
Fa as useHelpStore,
|
|
1406
1406
|
Ma as useHoldingStore,
|
|
1407
|
-
|
|
1407
|
+
vr as useInsightsEnabled,
|
|
1408
1408
|
$a as useMerchantStore,
|
|
1409
1409
|
Ra as useNetWorthStore,
|
|
1410
1410
|
Ua as useNotificationStore,
|
|
@@ -64,7 +64,7 @@ export declare class GlobalStore {
|
|
|
64
64
|
trendsStore: TrendsStore;
|
|
65
65
|
userStore: UserStore;
|
|
66
66
|
globalUiStore: GlobalUiStore;
|
|
67
|
-
constructor(appConfig?: AppConfig, endpoint?: string);
|
|
67
|
+
constructor(appConfig?: AppConfig, endpoint?: string, onError?: GlobalErrorHandler);
|
|
68
68
|
get isInitialized(): boolean;
|
|
69
69
|
loadData: ({ accounts, appData, associatedBeats, categories, institutions, transactionRules, transactions, userFeatures, }?: LoadDataProps) => Promise<void>;
|
|
70
70
|
}
|