@mx-cartographer/experiences 7.2.15-alpha.sms25 → 7.2.15-alpha.sms27
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 ot } from "../Help-DhcC-C05.mjs";
|
|
|
12
12
|
import { E as Ss } from "../Help-DhcC-C05.mjs";
|
|
13
13
|
import { M as ws } from "../MicroWidgetContainer-DpeqN9n3.mjs";
|
|
14
14
|
import { M as Cs } from "../MiniWidgetContainer-D0gfmbaF.mjs";
|
|
15
|
-
import { A as Ds, D as
|
|
15
|
+
import { A as Ds, D as Es, W as As } from "../WidgetContainer-EbrN1oIo.mjs";
|
|
16
16
|
import { k as Bs, a as Is, e as Ns, h as Ms, A as ks, f as $s, l as Rs, d as Ps, n as Os, E as Us, j as Ls, N as Gs, i as Hs, P as Fs, o as Ws, S as qs } from "../ConnectDrawer-Bw5s6Dw1.mjs";
|
|
17
17
|
import { C as Qs } from "../CurrencyInput-DUsQbkXb.mjs";
|
|
18
18
|
import { L as Xs } from "../Loader-DUaFpDGv.mjs";
|
|
@@ -31,7 +31,7 @@ import { C as br } from "../CurrencyText-kyC1aseI.mjs";
|
|
|
31
31
|
import { E as xr } from "../EmptyState-DA_lfRBv.mjs";
|
|
32
32
|
import { L as vr } from "../ListItemAction-DHa3KJPs.mjs";
|
|
33
33
|
import { T as ct } from "../TrendsStore-DCYbpXPO.mjs";
|
|
34
|
-
import { L as
|
|
34
|
+
import { L as Er, S as Ar } from "../TrendsStore-DCYbpXPO.mjs";
|
|
35
35
|
import { A as Br, B as Ir, I as Nr, N as Mr, T as kr, a as $r } 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";
|
|
@@ -45,12 +45,12 @@ import { D as gt, a as pt } from "../SingleSegmentDonut-BgbLgwHi.mjs";
|
|
|
45
45
|
import { S as Xr } from "../SingleSegmentDonut-BgbLgwHi.mjs";
|
|
46
46
|
import { D as Kr } from "../Drawer-kEE73B87.mjs";
|
|
47
47
|
import { I as Zr, P as Jr, S as to } from "../Account-vp_TAbGt.mjs";
|
|
48
|
-
import { b as
|
|
48
|
+
import { b as A } from "../Category-CevNQ03n.mjs";
|
|
49
49
|
import { C as so, c as ro, a as oo, P as ao } from "../Category-CevNQ03n.mjs";
|
|
50
50
|
import { C as io, f as co, b as lo, a as uo, g as ho, i as go } from "../NumberFormatting-Buh7u8Oi.mjs";
|
|
51
51
|
import { R as mt } from "../RecurringTransactionsStore-DrzS1LmF.mjs";
|
|
52
52
|
import { S as mo, T as _o } from "../RecurringTransactionsStore-DrzS1LmF.mjs";
|
|
53
|
-
import { G as yo, C as So, D as bo, W as wo, d as xo, a as Co, i as vo, v as Do, m as
|
|
53
|
+
import { G as yo, C as So, D as bo, W as wo, d as xo, a as Co, i as vo, v as Do, m as Eo, y as Ao, z as To, g as Bo, x as Io, u as No, f as Mo, b as ko, l as $o, A as Ro, t as Po, n as Oo, c as Uo, r as Lo, o as Go, B as Ho, j as Fo, s as Wo, h as qo, w as Yo, p as Qo, q as zo } from "../hooks-D6XlXHf4.mjs";
|
|
54
54
|
import { u as jo } from "../useAccountDisplayName-jS05A6-6.mjs";
|
|
55
55
|
import { u as Vo } from "../useInsightsEnabled-DBpwEq10.mjs";
|
|
56
56
|
import { u as Jo } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
@@ -65,7 +65,7 @@ import { f as wt, a as xt, b as L } from "../BudgetUtil-B2ZXyw-g.mjs";
|
|
|
65
65
|
import { g as ea, e as sa, c as ra, d as oa, i as aa } from "../BudgetUtil-B2ZXyw-g.mjs";
|
|
66
66
|
import { a as Ct } from "../DebtsStore-BD_XwsI7.mjs";
|
|
67
67
|
import { a as vt } from "../FinstrongStore-F2c607dj.mjs";
|
|
68
|
-
import { A as Dt, m as
|
|
68
|
+
import { A as Dt, m as Et, a as At, b as Tt } from "../InvestmentUtil-jOyOgzIB.mjs";
|
|
69
69
|
import { M as Bt } from "../MerchantStore-DrFvsUyy.mjs";
|
|
70
70
|
import { N as It } from "../NetWorthStore-D1NiDUcc.mjs";
|
|
71
71
|
import { a as Nt } from "../SettingsStore-BcgS_Ohv.mjs";
|
|
@@ -373,7 +373,7 @@ const Ve = (s) => {
|
|
|
373
373
|
width: m,
|
|
374
374
|
xAxisLabel: i = ""
|
|
375
375
|
}) => {
|
|
376
|
-
const _ = C(), b = Qt(_, m), v = l / c * u, D = Math.abs(l) / c * e,
|
|
376
|
+
const _ = C(), b = Qt(_, m), v = l / c * u, D = Math.abs(l) / c * e, E = 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,
|
|
@@ -407,7 +407,7 @@ const Ve = (s) => {
|
|
|
407
407
|
{
|
|
408
408
|
className: `mx-cmn-bar-label ${a ? "mx-cmn-clickable" : ""}`,
|
|
409
409
|
onClick: a ? () => a(o) : void 0,
|
|
410
|
-
children: /* @__PURE__ */ n(B, { bold: d === o, color:
|
|
410
|
+
children: /* @__PURE__ */ n(B, { bold: d === o, color: E, variant: "Small", children: i })
|
|
411
411
|
}
|
|
412
412
|
)
|
|
413
413
|
] });
|
|
@@ -451,7 +451,7 @@ const Ve = (s) => {
|
|
|
451
451
|
selectedIndex: u,
|
|
452
452
|
valueFormatter: l = (g) => `${g}`
|
|
453
453
|
}) => {
|
|
454
|
-
const g = C(), m = Zt(g), i = r.reduce(jt, []), _ = s !== void 0 ? s : i.reduce(zt, 0) / i.length, b = Math.max(...i), v = Math.min(...i), D = i.reduce(Xt, 0),
|
|
454
|
+
const g = C(), m = Zt(g), i = r.reduce(jt, []), _ = s !== void 0 ? s : i.reduce(zt, 0) / i.length, b = Math.max(...i), v = Math.min(...i), D = i.reduce(Xt, 0), E = b >= 0, R = v < 0, I = Q(E, R, o), N = Q(R, E, o), P = Kt(_, 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,
|
|
@@ -688,7 +688,7 @@ class re {
|
|
|
688
688
|
get detailedBudgets() {
|
|
689
689
|
return L(
|
|
690
690
|
this.budgets.filter(
|
|
691
|
-
(t) => t.category_guid !==
|
|
691
|
+
(t) => t.category_guid !== A.INCOME && t.category_guid !== A.TRANSFER && t.category_guid !== A.INVESTMENTS
|
|
692
692
|
),
|
|
693
693
|
this.globalStore.categoryStore.detailedCategories,
|
|
694
694
|
this.globalStore.copyStore.copy.budgets,
|
|
@@ -702,7 +702,7 @@ class re {
|
|
|
702
702
|
this.globalStore.copyStore.copy.budgets,
|
|
703
703
|
this.theme
|
|
704
704
|
).reduce(
|
|
705
|
-
(r, o) => o.category_guid !==
|
|
705
|
+
(r, o) => o.category_guid !== A.INCOME ? r : !r || o.percentage > r.percentage ? o : r,
|
|
706
706
|
void 0
|
|
707
707
|
)?.amount;
|
|
708
708
|
}
|
|
@@ -863,7 +863,7 @@ class ie {
|
|
|
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 At(
|
|
866
|
+
return Et(At(this.visibleHoldings), this.analysisType);
|
|
867
867
|
}
|
|
868
868
|
get analysisDetails() {
|
|
869
869
|
return Tt(this.visibleHoldings)[this.analysisType] || {};
|
|
@@ -1173,7 +1173,7 @@ class ts {
|
|
|
1173
1173
|
endpoint = "/";
|
|
1174
1174
|
sessionToken = "";
|
|
1175
1175
|
onError;
|
|
1176
|
-
listeners =
|
|
1176
|
+
listeners = /* @__PURE__ */ new Set();
|
|
1177
1177
|
// Data Stores
|
|
1178
1178
|
accountStore;
|
|
1179
1179
|
appDataStore;
|
|
@@ -1213,17 +1213,12 @@ class ts {
|
|
|
1213
1213
|
// for external libraries like Pulse to subscribe
|
|
1214
1214
|
// to global store snapshots, like `getTransactionStoreSnapshot` below
|
|
1215
1215
|
// using `useSyncExternalStore` https://react.dev/reference/react/useSyncExternalStore
|
|
1216
|
-
subscribe = (t) => (this.listeners
|
|
1217
|
-
this.listeners = this.listeners.filter((e) => e !== t);
|
|
1218
|
-
});
|
|
1216
|
+
subscribe = (t) => (this.listeners.add(t), () => this.listeners.delete(t));
|
|
1219
1217
|
// returns change subscribed to in the autorun (found in the constructor)
|
|
1220
|
-
getTransactionStoreSnapshot = () =>
|
|
1221
|
-
transactions: this.transactionStore.transactions
|
|
1222
|
-
});
|
|
1218
|
+
getTransactionStoreSnapshot = () => this.transactionStore;
|
|
1223
1219
|
// emits change triggered in the autorun
|
|
1224
1220
|
emitChange = () => {
|
|
1225
|
-
|
|
1226
|
-
t();
|
|
1221
|
+
this.listeners.forEach((t) => t());
|
|
1227
1222
|
};
|
|
1228
1223
|
loadData = async ({
|
|
1229
1224
|
accounts: t,
|
|
@@ -1271,7 +1266,7 @@ export {
|
|
|
1271
1266
|
ls as CategoryApi,
|
|
1272
1267
|
so as CategoryColors,
|
|
1273
1268
|
ro as CategoryGuidToName,
|
|
1274
|
-
|
|
1269
|
+
A as CategoryGuids,
|
|
1275
1270
|
oo as CategoryIcon,
|
|
1276
1271
|
mr as ConnectCard,
|
|
1277
1272
|
Rs as ConnectDrawer,
|
|
@@ -1284,7 +1279,7 @@ export {
|
|
|
1284
1279
|
gt as DEFAULT_DONUT_SIZE,
|
|
1285
1280
|
pt as DEFAULT_STROKE_WIDTH,
|
|
1286
1281
|
nr as DataRow,
|
|
1287
|
-
|
|
1282
|
+
Es as DateRangeSelector,
|
|
1288
1283
|
Wr as Dialog,
|
|
1289
1284
|
Pr as Donut,
|
|
1290
1285
|
Kr as Drawer,
|
|
@@ -1308,7 +1303,7 @@ export {
|
|
|
1308
1303
|
ze as LOADING_STATUS,
|
|
1309
1304
|
Ur as LineChart,
|
|
1310
1305
|
vr as ListItemAction,
|
|
1311
|
-
|
|
1306
|
+
Er as ListItemRow,
|
|
1312
1307
|
_s as ListItemWrapper,
|
|
1313
1308
|
Xs as Loader,
|
|
1314
1309
|
je as LocalizedCopyApi,
|
|
@@ -1343,7 +1338,7 @@ export {
|
|
|
1343
1338
|
tr as SelectionBox,
|
|
1344
1339
|
Xr as SingleSegmentDonut,
|
|
1345
1340
|
mo as Sizes,
|
|
1346
|
-
|
|
1341
|
+
Ar as StackedLineChart,
|
|
1347
1342
|
Gr as StatusBar,
|
|
1348
1343
|
qs as StatusName,
|
|
1349
1344
|
_o as TOUCH_TARGET,
|
|
@@ -1357,7 +1352,7 @@ export {
|
|
|
1357
1352
|
ue as UserStore,
|
|
1358
1353
|
Lt as UserVerification,
|
|
1359
1354
|
W as WidgetApi,
|
|
1360
|
-
|
|
1355
|
+
As as WidgetContainer,
|
|
1361
1356
|
bo as WidgetContainerContext,
|
|
1362
1357
|
wo as WidgetContainerProvider,
|
|
1363
1358
|
os as analyticsSession,
|
|
@@ -1382,10 +1377,10 @@ export {
|
|
|
1382
1377
|
Co as useAppConfig,
|
|
1383
1378
|
vo as useBudgetsStore,
|
|
1384
1379
|
Do as useCashflowStore,
|
|
1385
|
-
|
|
1380
|
+
Eo as useCategoryStore,
|
|
1386
1381
|
as as useCombineEvents,
|
|
1387
1382
|
ns as useCombinePageviews,
|
|
1388
|
-
|
|
1383
|
+
Ao as useDebtStore,
|
|
1389
1384
|
To as useError,
|
|
1390
1385
|
Bo as useEvent,
|
|
1391
1386
|
Io as useFinstrongStore,
|
|
@@ -36,13 +36,12 @@ interface LoadDataProps {
|
|
|
36
36
|
transactions?: Transaction[];
|
|
37
37
|
userFeatures?: UserFeature[];
|
|
38
38
|
}
|
|
39
|
-
type Listener = () => void;
|
|
40
39
|
export declare class GlobalStore {
|
|
41
40
|
appConfig: AppConfig;
|
|
42
41
|
endpoint: string;
|
|
43
42
|
sessionToken: string;
|
|
44
43
|
onError?: GlobalErrorHandler;
|
|
45
|
-
listeners:
|
|
44
|
+
listeners: Set<unknown>;
|
|
46
45
|
accountStore: AccountStore;
|
|
47
46
|
appDataStore: AppDataStore;
|
|
48
47
|
analyticsStore: AnalyticsStore;
|
|
@@ -68,10 +67,8 @@ export declare class GlobalStore {
|
|
|
68
67
|
globalUiStore: GlobalUiStore;
|
|
69
68
|
constructor(appConfig?: AppConfig, endpoint?: string, onError?: GlobalErrorHandler);
|
|
70
69
|
get isInitialized(): boolean;
|
|
71
|
-
subscribe: (listener: any) => () =>
|
|
72
|
-
getTransactionStoreSnapshot: () =>
|
|
73
|
-
transactions: Transaction[];
|
|
74
|
-
};
|
|
70
|
+
subscribe: (listener: any) => () => boolean;
|
|
71
|
+
getTransactionStoreSnapshot: () => TransactionStore;
|
|
75
72
|
emitChange: () => void;
|
|
76
73
|
loadData: ({ accounts, appData, associatedBeats, categories, institutions, transactionRules, transactions, userFeatures, }?: LoadDataProps) => Promise<void>;
|
|
77
74
|
}
|