@mx-cartographer/experiences 7.0.27-alpha-recurring-transactions-css-bug-ram7 → 7.0.27-alpha.mm0

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.
Files changed (99) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/dist/{Account-BW3-oYEs.mjs → Account-DJ7VG5hs.mjs} +1 -1
  3. package/dist/{AccountDetailsContent-UxSEMBo_.mjs → AccountDetailsContent-YtqGgQmV.mjs} +8 -8
  4. package/dist/{AccountDetailsHeader-Eb3WvBGm.mjs → AccountDetailsHeader-DJk0hheh.mjs} +5 -5
  5. package/dist/{AccountFields-CIz-r3gP.mjs → AccountFields-BJfIdeay.mjs} +2 -2
  6. package/dist/{AccountListItem-B-ZjJ4Gp.mjs → AccountListItem-CkDTN1Bi.mjs} +3 -3
  7. package/dist/{AccountStore-BaMynkQT.mjs → AccountStore-CJl0ld02.mjs} +26 -26
  8. package/dist/{Accounts-CA-nqAjT.mjs → Accounts-BYGu-bN1.mjs} +1 -1
  9. package/dist/{BeatApi-DLu87ijw.mjs → BeatApi-DhJpgCLz.mjs} +3 -3
  10. package/dist/{BeatStore-By4aGoRM.mjs → BeatStore-IBnXd4YK.mjs} +17 -17
  11. package/dist/{BudgetUtil-CeSLAcsl.mjs → BudgetUtil-BB9gMyLW.mjs} +1 -1
  12. package/dist/{CategorySelectorDrawer-BJ9jlCyt.mjs → CategorySelectorDrawer-B-W3eXHU.mjs} +1 -1
  13. package/dist/{CategoryStore-BOyzQjQp.mjs → CategoryStore-BCcpI3oJ.mjs} +4 -4
  14. package/dist/{ConnectDrawer-phFH6OHt.mjs → ConnectDrawer-COy3Xwqv.mjs} +1 -1
  15. package/dist/{ConnectionsDrawer-ihxkAi1P.mjs → ConnectionsDrawer-B36W8Qvy.mjs} +2 -2
  16. package/dist/{CurrencyInput-bEx2Mbd0.mjs → CurrencyInput-B6gF46iv.mjs} +1 -1
  17. package/dist/{DebtsStore-VkyMADzd.mjs → DebtsStore-2yxA32_7.mjs} +1 -1
  18. package/dist/{ExportCsvAction-CbdFfDV5.mjs → ExportCsvAction-C3s1m5os.mjs} +3 -3
  19. package/dist/{Fetch-CkFKy79O.mjs → Fetch-87LIQbEA.mjs} +11 -10
  20. package/dist/{FinstrongStore-mkALvztw.mjs → FinstrongStore-F2c607dj.mjs} +4 -4
  21. package/dist/{GoalStore-eSOkI6uE.mjs → GoalStore-dBJBsl-g.mjs} +6 -6
  22. package/dist/{Help-KAAMEubC.mjs → Help-CWsL8d5P.mjs} +1 -1
  23. package/dist/{LineChart-BWWmmJxV.mjs → LineChart-CBKadOFA.mjs} +1 -1
  24. package/dist/{ListItemAction-DNZZ5fSa.mjs → ListItemAction-CpYlo5Sh.mjs} +1 -1
  25. package/dist/{ManageIncome-DbsiKUoO.mjs → ManageIncome-CGoLh7xs.mjs} +4 -4
  26. package/dist/MerchantStore-DrFvsUyy.mjs +37 -0
  27. package/dist/{MicroWidgetContainer-Dxz8uBN9.mjs → MicroWidgetContainer-DQXTwO5i.mjs} +1 -1
  28. package/dist/{MiniWidgetContainer-CTyjmE1h.mjs → MiniWidgetContainer-BF2Qwhh-.mjs} +1 -1
  29. package/dist/{NetWorthStore-B6xF9eGH.mjs → NetWorthStore-CrQtq5rq.mjs} +2 -2
  30. package/dist/{NotificationSettings-BJFyyZYE.mjs → NotificationSettings-gz1XBCBs.mjs} +2 -2
  31. package/dist/{NotificationStore-DHtSGySy.mjs → NotificationStore-C6PH6MKm.mjs} +8 -4
  32. package/dist/{OriginalBalanceAction-DepsKiJz.mjs → OriginalBalanceAction-C3afa-mq.mjs} +3 -3
  33. package/dist/{RecurringSettings-Dj29piAQ.mjs → RecurringSettings-fjYVNmPp.mjs} +3 -3
  34. package/dist/{RecurringTransactionsStore-D62XJtdL.mjs → RecurringTransactionsStore-DeLXfuC4.mjs} +20 -16
  35. package/dist/{SettingsStore-B4gi6oOw.mjs → SettingsStore-0aHfHlOE.mjs} +33 -29
  36. package/dist/{TransactionApi-DbbcjI2L.mjs → TransactionApi-B3Tksf7L.mjs} +29 -29
  37. package/dist/{TransactionDetails-C-z3HGTT.mjs → TransactionDetails--DPYM8la.mjs} +5 -5
  38. package/dist/{TransactionStore-Cep_Eeql.mjs → TransactionStore-Cd25G0gH.mjs} +29 -25
  39. package/dist/{TrendsStore-WrHxzdbQ.mjs → TrendsStore-ReCVjB8o.mjs} +1 -1
  40. package/dist/{User-Dq9Qj764.mjs → User-DD7Pb2ze.mjs} +1 -1
  41. package/dist/{ViewMoreMicroCard-DFAY0tA8.mjs → ViewMoreMicroCard-C66pzgfS.mjs} +5 -2
  42. package/dist/{WidgetContainer-CdBs9WOZ.mjs → WidgetContainer-C1NlG0pd.mjs} +2 -2
  43. package/dist/accounts/api/AccountApi.d.ts +2 -2
  44. package/dist/accounts/index.es.js +12 -12
  45. package/dist/analytics/index.es.js +2 -2
  46. package/dist/budgets/api/BudgetsApi.d.ts +2 -2
  47. package/dist/budgets/index.es.js +10 -10
  48. package/dist/cashflow/api/CashflowApi.d.ts +3 -2
  49. package/dist/cashflow/index.es.js +10 -10
  50. package/dist/categories/index.es.js +2 -2
  51. package/dist/common/api/AnalyticsApi.d.ts +2 -2
  52. package/dist/common/api/AppDataApi.d.ts +2 -2
  53. package/dist/common/api/BeatApi.d.ts +2 -2
  54. package/dist/common/api/CategoryApi.d.ts +2 -3
  55. package/dist/common/api/GlobalCopyApi.d.ts +2 -1
  56. package/dist/common/api/LocalizedCopyApi.d.ts +2 -1
  57. package/dist/common/api/NotificationApi.d.ts +2 -2
  58. package/dist/common/api/ScheduledPaymentsApi.d.ts +3 -2
  59. package/dist/common/api/UserApi.d.ts +2 -2
  60. package/dist/common/context/GlobalDataProvider.d.ts +3 -2
  61. package/dist/common/context/hooks.d.ts +4 -1
  62. package/dist/common/context/index.d.ts +1 -1
  63. package/dist/common/index.es.js +316 -310
  64. package/dist/common/stores/GlobalStore.d.ts +3 -2
  65. package/dist/common/types/Handlers.d.ts +2 -0
  66. package/dist/common/types/index.d.ts +1 -0
  67. package/dist/common/utils/Fetch.d.ts +3 -1
  68. package/dist/dashboard/index.es.js +2 -2
  69. package/dist/debts/index.es.js +9 -9
  70. package/dist/{exportTransactionsToCSV-B5qAKd6C.mjs → exportTransactionsToCSV-Ch_T5Xhk.mjs} +1 -1
  71. package/dist/finstrong/api/FinstrongApi.d.ts +2 -1
  72. package/dist/finstrong/index.es.js +7 -7
  73. package/dist/goals/api/GoalApi.d.ts +3 -2
  74. package/dist/goals/index.es.js +11 -11
  75. package/dist/help/api/HelpApi.d.ts +2 -2
  76. package/dist/help/index.es.js +3 -3
  77. package/dist/hooks-CTieq90n.mjs +74 -0
  78. package/dist/insights/index.es.js +1 -1
  79. package/dist/investments/api/HoldingApi.d.ts +3 -2
  80. package/dist/investments/index.es.js +3 -3
  81. package/dist/merchants/api/MerchantApi.d.ts +2 -1
  82. package/dist/merchants/index.es.js +2 -2
  83. package/dist/microinsights/context/InsightsMicroWidgetDataProvider.d.ts +2 -1
  84. package/dist/microinsights/context/hooks.d.ts +1 -1
  85. package/dist/microinsights/index.es.js +1 -1
  86. package/dist/networth/index.es.js +7 -7
  87. package/dist/notifications/index.es.js +5 -5
  88. package/dist/recurringtransactions/api/RepeatingTransactionsApi.d.ts +2 -2
  89. package/dist/recurringtransactions/index.es.js +339 -351
  90. package/dist/settings/api/SettingsApi.d.ts +3 -2
  91. package/dist/settings/index.es.js +7 -7
  92. package/dist/spending/index.es.js +4 -4
  93. package/dist/transactions/api/TransactionApi.d.ts +3 -2
  94. package/dist/transactions/index.es.js +14 -14
  95. package/dist/trends/index.es.js +10 -10
  96. package/dist/{useCombineEvents-DaDBSR_1.mjs → useCombineEvents-BUDIR1ba.mjs} +29 -29
  97. package/package.json +1 -1
  98. package/dist/MerchantStore-DVH-QOf0.mjs +0 -37
  99. package/dist/hooks-DkUqN6JE.mjs +0 -71
@@ -22,7 +22,7 @@ import { GlobalCopyStore } from './GlobalCopyStore';
22
22
  import { GlobalUiStore } from './GlobalUiStore';
23
23
  import { UserStore } from './UserStore';
24
24
  import { Account, Category, Institution, Member } from '../../common';
25
- import { AppConfig, AppData, Beat, Tag, Tagging, Transaction, TransactionRule, UserFeature } from '../types';
25
+ import { AppConfig, AppData, Beat, GlobalErrorHandler, Tag, Tagging, Transaction, TransactionRule, UserFeature } from '../types';
26
26
  interface LoadDataProps {
27
27
  accounts?: Account[];
28
28
  appData?: AppData;
@@ -40,6 +40,7 @@ export declare class GlobalStore {
40
40
  appConfig: AppConfig;
41
41
  endpoint: string;
42
42
  sessionToken: string;
43
+ onError?: GlobalErrorHandler;
43
44
  accountStore: AccountStore;
44
45
  appDataStore: AppDataStore;
45
46
  analyticsStore: AnalyticsStore;
@@ -63,7 +64,7 @@ export declare class GlobalStore {
63
64
  trendsStore: TrendsStore;
64
65
  userStore: UserStore;
65
66
  globalUiStore: GlobalUiStore;
66
- constructor(appConfig?: AppConfig, endpoint?: string);
67
+ constructor(appConfig?: AppConfig, endpoint?: string, onError?: GlobalErrorHandler);
67
68
  get isInitialized(): boolean;
68
69
  loadData: ({ accounts, appData, associatedBeats, categories, institutions, transactionRules, transactions, userFeatures, }?: LoadDataProps) => Promise<void>;
69
70
  }
@@ -0,0 +1,2 @@
1
+ export type GlobalErrorHandler = (error: Error, props?: object, errorActionType?: string) => void;
2
+ export type GlobalEventHandler = (event: string, props?: object) => void;
@@ -15,6 +15,7 @@ export type { DynamicCopyElement, GlobalCopy } from './GlobalCopy';
15
15
  export { GoalType, MetaType, TrackType } from './Goal';
16
16
  export type { Goal, MonthlyCashFlowProfile, RetirementGoalAccount } from './Goal';
17
17
  export type { Debt } from './Debt';
18
+ export type { GlobalErrorHandler, GlobalEventHandler } from './Handlers';
18
19
  export type { HealthScore, HealthScoreReport, MonthlyHealthScore } from './Finstrong';
19
20
  export type { HelpAlertProps, HelpCategory, HelpContentProps, HelpTopic, HelpType, ImageContentProps, InstitutionData, NoImageContentProps, SectionProps, SelectedTopic, Ticket, } from './Help';
20
21
  export type { Institution } from './Institution';
@@ -1,7 +1,9 @@
1
+ import { GlobalErrorHandler } from '../types';
1
2
  export declare class Fetch {
2
3
  endpoint: string;
3
4
  headers: Record<string, string>;
4
- constructor(endpoint: string, token: string, headers?: Record<string, string>);
5
+ onError?: GlobalErrorHandler;
6
+ constructor(endpoint: string, token: string, headers?: Record<string, string>, onError?: GlobalErrorHandler);
5
7
  get: (url: string) => Promise<any>;
6
8
  post: (url: string, data?: any) => Promise<any>;
7
9
  put: (url: string, data: any) => Promise<any>;
@@ -5,7 +5,7 @@ import p from "@mui/material/Unstable_Grid2";
5
5
  import u from "@mui/material/Skeleton";
6
6
  import s from "@mui/material/Stack";
7
7
  import B from "@mui/material/styles/useTheme";
8
- import { l as A, u as v, c as C, a as M, m as D } from "../hooks-DkUqN6JE.mjs";
8
+ import { l as A, u as v, c as C, a as M, m as D } from "../hooks-CTieq90n.mjs";
9
9
  import G from "@mui/material/Paper";
10
10
  import { Icon as S, H1 as k, P as F } from "@mxenabled/mxui";
11
11
  import { useMediaQuery as W } from "@mui/system";
@@ -14,7 +14,7 @@ import T from "@mui/material/Button";
14
14
  import $ from "@mui/material/IconButton";
15
15
  import j from "@mui/material/Tooltip";
16
16
  import H from "@mui/material/useMediaQuery";
17
- import { i as R, j as Q } from "../ConnectDrawer-phFH6OHt.mjs";
17
+ import { i as R, j as Q } from "../ConnectDrawer-COy3Xwqv.mjs";
18
18
  import { u as z } from "../useScreenSize-B6JyS_Lj.mjs";
19
19
  const E = f(() => {
20
20
  const e = B(), {
@@ -8,30 +8,30 @@ import { intervalToDuration as Te, formatDuration as Ae } from "date-fns";
8
8
  import { addMonths as le } from "date-fns/addMonths";
9
9
  import { fromUnixTime as se } from "date-fns/fromUnixTime";
10
10
  import { getUnixTime as ce } from "date-fns/getUnixTime";
11
- import { D as M, M as Ee, I as Ie } from "../DebtsStore-VkyMADzd.mjs";
12
- import { a as Nr } from "../DebtsStore-VkyMADzd.mjs";
11
+ import { D as M, M as Ee, I as Ie } from "../DebtsStore-2yxA32_7.mjs";
12
+ import { a as Nr } from "../DebtsStore-2yxA32_7.mjs";
13
13
  import { f as P, a as Be } from "../NumberFormatting-CtWHhyBX.mjs";
14
14
  import { f as K, D as U } from "../Dialog-CWW597AF.mjs";
15
- import { G as Me, x as q, u as C, j as z, e as k, c as Z, a as Pe } from "../hooks-DkUqN6JE.mjs";
15
+ import { G as Me, x as q, u as C, j as z, e as k, c as Z, a as Pe } from "../hooks-CTieq90n.mjs";
16
16
  import { u as X } from "../useScreenSize-B6JyS_Lj.mjs";
17
17
  import { D as te } from "../Drawer-kEE73B87.mjs";
18
18
  import { b as A } from "../Localization-2MODESHW.mjs";
19
- import { A as ke, u as Fe } from "../AccountDetailsHeader-Eb3WvBGm.mjs";
19
+ import { A as ke, u as Fe } from "../AccountDetailsHeader-DJk0hheh.mjs";
20
20
  import Ne from "@mui/material/Card";
21
21
  import Re from "@mui/material/CardContent";
22
22
  import Le from "@mui/material/CardHeader";
23
23
  import { LineChart as $e } from "@mui/x-charts";
24
24
  import re from "@mui/material/Box";
25
25
  import { useTheme as He } from "@mui/material/styles";
26
- import { A as T, W as Oe } from "../WidgetContainer-CdBs9WOZ.mjs";
26
+ import { A as T, W as Oe } from "../WidgetContainer-C1NlG0pd.mjs";
27
27
  import de from "@mui/material/Tab";
28
28
  import We from "@mui/material/Tabs";
29
29
  import _e from "@mui/material/List";
30
30
  import W from "@mui/material/Divider";
31
- import { M as Ge, I as je, O as ze } from "../OriginalBalanceAction-DepsKiJz.mjs";
31
+ import { M as Ge, I as je, O as ze } from "../OriginalBalanceAction-C3afa-mq.mjs";
32
32
  import Xe from "@mui/material/TextField";
33
- import { L as J } from "../ListItemAction-DNZZ5fSa.mjs";
34
- import { C as ae } from "../CurrencyInput-bEx2Mbd0.mjs";
33
+ import { L as J } from "../ListItemAction-CpYlo5Sh.mjs";
34
+ import { C as ae } from "../CurrencyInput-B6gF46iv.mjs";
35
35
  import pe from "@mui/material/Alert";
36
36
  import me from "@mui/material/AlertTitle";
37
37
  import he from "@mui/material/Paper";
@@ -39,7 +39,7 @@ import { Error as Ve, CheckCircle as ye } from "@mxenabled/mx-icons";
39
39
  import { T as ue } from "../TabContentContainer-j01JYR_7.mjs";
40
40
  import { DataGridPro as Ye } from "@mui/x-data-grid-pro";
41
41
  import { H as G } from "../HeaderCell-DjuifqHJ.mjs";
42
- import { f as Ke } from "../ConnectDrawer-phFH6OHt.mjs";
42
+ import { f as Ke } from "../ConnectDrawer-COy3Xwqv.mjs";
43
43
  import fe from "@mui/material/Button";
44
44
  import Ue from "@mui/material/IconButton";
45
45
  import qe from "@mui/material/ListItem";
@@ -1,7 +1,7 @@
1
1
  import { fromUnixTime as d } from "date-fns/fromUnixTime";
2
2
  import { c as u } from "./Category-CevNQ03n.mjs";
3
3
  import { f as p, D as m } from "./Dialog-CWW597AF.mjs";
4
- import { T as g } from "./User-Dq9Qj764.mjs";
4
+ import { T as g } from "./User-DD7Pb2ze.mjs";
5
5
  function f(e) {
6
6
  return new Set(
7
7
  e.filter((n) => n.parent_guid !== void 0).map((n) => n.parent_guid)
@@ -1,7 +1,8 @@
1
1
  import { Fetch } from '../../common';
2
+ import { GlobalErrorHandler } from '../../common/types';
2
3
  export declare class FinstrongApi {
3
4
  fetchInstance: Fetch;
4
- constructor(endpoint: string, token: string);
5
+ constructor(endpoint: string, token: string, onError?: GlobalErrorHandler);
5
6
  calculateHealthScore: () => Promise<any>;
6
7
  getAverageHealthScores: () => Promise<any>;
7
8
  getHealthScoreChangeReports: (startDate: number, endDate: number) => Promise<any>;
@@ -17,20 +17,20 @@ import Ne from "@mui/material/ListItemText";
17
17
  import { b } from "../Localization-2MODESHW.mjs";
18
18
  import * as ce from "d3";
19
19
  import { observer as I } from "mobx-react-lite";
20
- import { u as S, a as z, w as $, o as Y, c as fe, g as ye, k as Ke } from "../hooks-DkUqN6JE.mjs";
20
+ import { u as S, a as z, w as $, o as Y, c as fe, g as ye, k as Ke } from "../hooks-CTieq90n.mjs";
21
21
  import { L as N } from "../Loader-DUaFpDGv.mjs";
22
- import { F as No, a as Ko } from "../FinstrongStore-mkALvztw.mjs";
22
+ import { F as No, a as Ko } from "../FinstrongStore-F2c607dj.mjs";
23
23
  import q from "@mui/material/Button";
24
24
  import J from "@mui/material/Card";
25
- import { L as be } from "../LineChart-BWWmmJxV.mjs";
26
- import { j as xe } from "../ConnectDrawer-phFH6OHt.mjs";
25
+ import { L as be } from "../LineChart-CBKadOFA.mjs";
26
+ import { j as xe } from "../ConnectDrawer-COy3Xwqv.mjs";
27
27
  import Xe from "@mui/material/Accordion";
28
28
  import je from "@mui/material/AccordionDetails";
29
29
  import Ue from "@mui/material/AccordionSummary";
30
30
  import Ve from "@mui/material/CardHeader";
31
31
  import { u as Ye } from "../useDimensions-27p2evRx.mjs";
32
- import { C as qe } from "../ConnectionsDrawer-ihxkAi1P.mjs";
33
- import { R as Je } from "../RecurringSettings-Dj29piAQ.mjs";
32
+ import { C as qe } from "../ConnectionsDrawer-B36W8Qvy.mjs";
33
+ import { R as Je } from "../RecurringSettings-fjYVNmPp.mjs";
34
34
  import Qe from "@mui/material/TextField";
35
35
  import { u as Ce } from "../useScreenSize-B6JyS_Lj.mjs";
36
36
  import { a as Ze } from "../Dialog-CWW597AF.mjs";
@@ -48,7 +48,7 @@ import ct from "@mui/lab/TimelineConnector";
48
48
  import lt from "@mui/lab/TimelineContent";
49
49
  import dt from "@mui/lab/TimelineDot";
50
50
  import pt from "@mui/lab/TimelineSeparator";
51
- import { W as mt } from "../WidgetContainer-CdBs9WOZ.mjs";
51
+ import { W as mt } from "../WidgetContainer-C1NlG0pd.mjs";
52
52
  var A = /* @__PURE__ */ ((n) => (n.Connections = "connections", n.CreditScore = "credit_score", n.DateOfBirth = "date_of_birth", n.MonthlyIncome = "monthly_income", n))(A || {});
53
53
  const ut = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ e(
54
54
  Be,
@@ -1,7 +1,8 @@
1
- import { Fetch, Goal, MonthlyCashFlowProfile, RetirementGoalAccount } from '../../common';
1
+ import { Fetch, MonthlyCashFlowProfile, RetirementGoalAccount } from '../../common';
2
+ import { GlobalErrorHandler, Goal } from '../../common/types';
2
3
  export declare class GoalApi {
3
4
  fetchInstance: Fetch;
4
- constructor(endpoint: string, token: string);
5
+ constructor(endpoint: string, token: string, onError?: GlobalErrorHandler);
5
6
  addGoal: (goal: Goal) => Promise<any>;
6
7
  addRetirementGoal: (goal: Goal) => Promise<any>;
7
8
  addRetirementGoalAccount: (retirementAccount: RetirementGoalAccount) => Promise<any>;
@@ -1,5 +1,5 @@
1
- import { g as ue, T as m, G as _e, a as We, M as q, C as Ae, b as Ve } from "../GoalStore-eSOkI6uE.mjs";
2
- import { c as Un, d as Yn } from "../GoalStore-eSOkI6uE.mjs";
1
+ import { g as ue, T as m, G as _e, a as We, M as q, C as Ae, b as Ve } from "../GoalStore-dBJBsl-g.mjs";
2
+ import { c as Un, d as Yn } from "../GoalStore-dBJBsl-g.mjs";
3
3
  import { jsxs as i, jsx as e, Fragment as U } from "react/jsx-runtime";
4
4
  import y from "react";
5
5
  import { observer as K } from "mobx-react-lite";
@@ -17,14 +17,14 @@ import ge from "@mui/material/Unstable_Grid2";
17
17
  import ae from "@mui/material/Avatar";
18
18
  import $e from "@mui/material/CardHeader";
19
19
  import { Payments as Re, NoteStack as Ee, Person as ve, ChevronRight as M, DragHandle as Xe, CheckCircle as Ue, Icon as fe, ExpandLess as Ye, ExpandMore as Ze, AddBox as xe, Trophy as qe } from "@mxenabled/mx-icons";
20
- import { u as T, j as x, c as j, o as Ie, e as Ge, m as Je, a as Ne } from "../hooks-DkUqN6JE.mjs";
20
+ import { u as T, j as x, c as j, o as Ie, e as Ge, m as Je, a as Ne } from "../hooks-CTieq90n.mjs";
21
21
  import { u as be } from "../useScreenSize-B6JyS_Lj.mjs";
22
22
  import { f as v } from "../NumberFormatting-CtWHhyBX.mjs";
23
23
  import { S as Qe } from "../StatusBar-BK_uYHAB.mjs";
24
24
  import E from "@mui/material/Divider";
25
25
  import L from "@mui/material/List";
26
- import { L as Q } from "../ListItemAction-DNZZ5fSa.mjs";
27
- import { C as ke } from "../CurrencyInput-bEx2Mbd0.mjs";
26
+ import { L as Q } from "../ListItemAction-CpYlo5Sh.mjs";
27
+ import { C as ke } from "../CurrencyInput-B6gF46iv.mjs";
28
28
  import { fromUnixTime as J } from "date-fns/fromUnixTime";
29
29
  import N from "@mui/material/ListItem";
30
30
  import k from "@mui/material/ListItemButton";
@@ -37,24 +37,24 @@ import P from "@mui/material/ListItemAvatar";
37
37
  import nt from "@mui/material/Collapse";
38
38
  import ot from "@mui/material/ListItemIcon";
39
39
  import at from "@mui/material/Checkbox";
40
- import { A as ye } from "../ConnectDrawer-phFH6OHt.mjs";
41
- import { u as rt, A as it } from "../AccountDetailsHeader-Eb3WvBGm.mjs";
42
- import { A as st } from "../AccountDetailsContent-UxSEMBo_.mjs";
40
+ import { A as ye } from "../ConnectDrawer-COy3Xwqv.mjs";
41
+ import { u as rt, A as it } from "../AccountDetailsHeader-DJk0hheh.mjs";
42
+ import { A as st } from "../AccountDetailsContent-YtqGgQmV.mjs";
43
43
  import we from "@mui/material/TextField";
44
- import { M as lt, I as ct, O as dt } from "../OriginalBalanceAction-DepsKiJz.mjs";
44
+ import { M as lt, I as ct, O as dt } from "../OriginalBalanceAction-C3afa-mq.mjs";
45
45
  import { getUnixTime as mt } from "date-fns/getUnixTime";
46
46
  import { isValid as _t } from "date-fns/isValid";
47
47
  import { AdapterDateFns as ut } from "@mui/x-date-pickers/AdapterDateFnsV3";
48
48
  import { DatePicker as pt } from "@mui/x-date-pickers";
49
49
  import { LocalizationProvider as ht } from "@mui/x-date-pickers/LocalizationProvider";
50
50
  import { E as bt } from "../EmptyState-C0lr9E5T.mjs";
51
- import { A as Y, W as gt } from "../WidgetContainer-CdBs9WOZ.mjs";
51
+ import { A as Y, W as gt } from "../WidgetContainer-C1NlG0pd.mjs";
52
52
  import { L as Ke } from "../Loader-DUaFpDGv.mjs";
53
53
  import ft from "@mui/material/Stack/Stack";
54
54
  import yt from "@mui/material/Box";
55
55
  import At from "@mui/material/styles/useTheme";
56
56
  import { S as Tt } from "../SingleSegmentDonut-BgbLgwHi.mjs";
57
- import { M as Ct } from "../MicroWidgetContainer-Dxz8uBN9.mjs";
57
+ import { M as Ct } from "../MicroWidgetContainer-DQXTwO5i.mjs";
58
58
  function de({ title: t, subtitle: n }) {
59
59
  return /* @__PURE__ */ i(g, { children: [
60
60
  /* @__PURE__ */ e(A, { bold: !0, variant: "Body", children: t }),
@@ -1,7 +1,7 @@
1
1
  import { Fetch } from '../../common';
2
- import { Ticket } from '../../common/types/Help';
2
+ import { GlobalErrorHandler, Ticket } from '../../common/types';
3
3
  export declare class HelpApi {
4
4
  fetchInstance: Fetch;
5
- constructor(endpoint: string, token: string);
5
+ constructor(endpoint: string, token: string, onError?: GlobalErrorHandler);
6
6
  createSupportTicket: (ticket: Ticket) => Promise<any>;
7
7
  }
@@ -1,9 +1,9 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
2
  import { observer as t } from "mobx-react-lite";
3
- import { H as m } from "../Help-KAAMEubC.mjs";
4
- import { a as s } from "../hooks-DkUqN6JE.mjs";
3
+ import { H as m } from "../Help-CWsL8d5P.mjs";
4
+ import { a as s } from "../hooks-CTieq90n.mjs";
5
5
  import { L as p } from "../Loader-DUaFpDGv.mjs";
6
- import { W as a } from "../WidgetContainer-CdBs9WOZ.mjs";
6
+ import { W as a } from "../WidgetContainer-C1NlG0pd.mjs";
7
7
  const x = t(({ sx: o }) => {
8
8
  const { isCopyLoaded: i, isInitialized: e } = s();
9
9
  return !i || !e ? /* @__PURE__ */ r(p, {}) : /* @__PURE__ */ r(a, { sx: { p: 16 }, children: /* @__PURE__ */ r(m, { sx: o }) });
@@ -0,0 +1,74 @@
1
+ import r from "react";
2
+ import { jsx as n } from "react/jsx-runtime";
3
+ const a = r.createContext(null), b = ({
4
+ children: t,
5
+ globalStore: e,
6
+ onError: s,
7
+ onEvent: l,
8
+ onPageView: u
9
+ }) => /* @__PURE__ */ n(
10
+ a.Provider,
11
+ {
12
+ value: {
13
+ globalStore: e,
14
+ onError: s,
15
+ onEvent: l,
16
+ onPageView: u,
17
+ children: t
18
+ },
19
+ children: t
20
+ }
21
+ ), S = r.createContext(null), C = ({ children: t, availableHeight: e, availableWidth: s }) => /* @__PURE__ */ n(
22
+ S.Provider,
23
+ {
24
+ value: {
25
+ availableHeight: e,
26
+ availableWidth: s,
27
+ children: t
28
+ },
29
+ children: t
30
+ }
31
+ ), o = (t = "useGlobalStore") => {
32
+ const e = r.useContext(a);
33
+ if (!e)
34
+ throw new Error(`${t}() must be used within the GlobalDataContext`);
35
+ return e;
36
+ }, d = () => o("useAccountStore").globalStore.accountStore, p = () => o("useAppConfig").globalStore.appDataStore.appConfig, h = () => o("useAnalyticsStore").globalStore.analyticsStore, x = () => o("useBudgetsStore").globalStore.budgetsStore, f = () => o("useCashflowStore").globalStore.cashflowStore, w = () => o("useCategoryStore").globalStore.categoryStore, G = () => o("useConnectStore").globalStore.connectStore, v = () => o("useDebtsStore").globalStore.debtsStore, y = () => o("useFinstrongStore").globalStore.finstrongStore, W = () => o("useGlobalStore").globalStore, m = () => o("useGlobalUiStore").globalStore.globalUiStore, E = () => o("globalCopyStore").globalStore.copyStore.copy, P = () => o("useGoalStore").globalStore.goalStore, A = () => o("useHelpStore").globalStore.helpStore, D = () => o("useHoldingStore").globalStore.holdingStore, T = () => o("useMerchantStore").globalStore.merchantStore, U = () => o("useNetWorthStore").globalStore.netWorthStore, H = () => o("useNotificationStore").globalStore.notificationStore, N = () => o("useRecurringTransactionsStore").globalStore.recurringTransactionsStore, B = () => o("useSettingsStore").globalStore.settingsStore, R = () => o("useTransactionStore").globalStore.transactionStore, V = () => o("useTrendsStore").globalStore.trendsStore, j = () => o("useUserStore").globalStore.userStore, F = () => ({ onError: o().onError }), M = () => ({ onEvent: o().onEvent }), $ = () => ({ onPageView: o().onPageView }), c = (t = "useWidgetContainerContext") => {
37
+ const e = r.useContext(S);
38
+ if (!e)
39
+ throw new Error(`${t}() must be used within the WidgetContainerContext`);
40
+ return e;
41
+ }, k = () => c();
42
+ export {
43
+ $ as A,
44
+ b as B,
45
+ S as C,
46
+ a as G,
47
+ C as W,
48
+ m as a,
49
+ T as b,
50
+ d as c,
51
+ G as d,
52
+ M as e,
53
+ R as f,
54
+ x as g,
55
+ N as h,
56
+ h as i,
57
+ P as j,
58
+ w as k,
59
+ W as l,
60
+ p as m,
61
+ H as n,
62
+ j as o,
63
+ k as p,
64
+ U as q,
65
+ B as r,
66
+ D as s,
67
+ f as t,
68
+ E as u,
69
+ V as v,
70
+ y as w,
71
+ v as x,
72
+ F as y,
73
+ A as z
74
+ };
@@ -1,4 +1,4 @@
1
- import { B as r } from "../BeatStore-By4aGoRM.mjs";
1
+ import { B as r } from "../BeatStore-IBnXd4YK.mjs";
2
2
  export {
3
3
  r as BeatStore
4
4
  };
@@ -1,7 +1,8 @@
1
- import { Fetch, Holding } from '../../common';
1
+ import { Fetch } from '../../common';
2
+ import { GlobalErrorHandler, Holding } from '../../common/types';
2
3
  export declare class HoldingApi {
3
4
  fetchInstance: Fetch;
4
- constructor(endpoint: string, token: string);
5
+ constructor(endpoint: string, token: string, onError?: GlobalErrorHandler);
5
6
  getHoldings: () => Promise<any>;
6
7
  updateHoldings: (holding: Holding) => Promise<any>;
7
8
  }
@@ -4,7 +4,7 @@ import { observer as P } from "mobx-react-lite";
4
4
  import _ from "@mui/material/Stack";
5
5
  import Ee from "@mui/material/Tab";
6
6
  import Ge from "@mui/material/Tabs";
7
- import { C as ge } from "../ConnectionsDrawer-ihxkAi1P.mjs";
7
+ import { C as ge } from "../ConnectionsDrawer-B36W8Qvy.mjs";
8
8
  import pe from "@mui/material/useMediaQuery";
9
9
  import Me from "@mui/material/Box";
10
10
  import Ne from "@mui/material/Collapse";
@@ -16,8 +16,8 @@ import xe from "@mui/material/ToggleButton";
16
16
  import ye from "@mui/material/ToggleButtonGroup";
17
17
  import { Text as r, H1 as fe, P as ve, InstitutionLogo as ne } from "@mxenabled/mxui";
18
18
  import Ue from "@mui/material/Button";
19
- import { u as E, e as be, s as H, a as Q, c as se } from "../hooks-DkUqN6JE.mjs";
20
- import { A as z, W as je } from "../WidgetContainer-CdBs9WOZ.mjs";
19
+ import { u as E, e as be, s as H, a as Q, c as se } from "../hooks-CTieq90n.mjs";
20
+ import { A as z, W as je } from "../WidgetContainer-C1NlG0pd.mjs";
21
21
  import { a as ze, f as oe } from "../NumberFormatting-CtWHhyBX.mjs";
22
22
  import { u as U } from "../useScreenSize-B6JyS_Lj.mjs";
23
23
  import le from "@mui/material/styles/useTheme";
@@ -1,7 +1,8 @@
1
1
  import { Fetch } from '../../common';
2
+ import { GlobalErrorHandler } from '../../common/types';
2
3
  export declare class MerchantApi {
3
4
  fetchInstance: Fetch;
4
- constructor(endpoint: string, token: string);
5
+ constructor(endpoint: string, token: string, onError?: GlobalErrorHandler);
5
6
  getMerchants: (searchValues?: string[], guids?: string[], page?: number, perPage?: number) => Promise<any>;
6
7
  getMerchantByGuid: (guid: string) => Promise<any>;
7
8
  }
@@ -12,10 +12,10 @@ import k from "@mui/material/ListItemText";
12
12
  import A from "@mui/material/Paper";
13
13
  import d from "@mui/material/Stack";
14
14
  import { MerchantLogo as V, Text as R } from "@mxenabled/mxui";
15
- import { b as v, u as w, a as C } from "../hooks-DkUqN6JE.mjs";
15
+ import { b as v, u as w, a as C } from "../hooks-CTieq90n.mjs";
16
16
  import { L as p } from "../Loader-DUaFpDGv.mjs";
17
17
  import { S as N } from "../SearchBox-B2_zLv8-.mjs";
18
- import { M as ne } from "../MerchantStore-DVH-QOf0.mjs";
18
+ import { M as ne } from "../MerchantStore-DrFvsUyy.mjs";
19
19
  const B = /^[ a-zA-ZÀ-ÿ0-9]+$/, H = 50, u = 65, P = ({
20
20
  height: f = "calc(100dvh - 120px)",
21
21
  onSelect: g
@@ -1,8 +1,9 @@
1
1
  import { default as React } from 'react';
2
+ import { GlobalEventHandler } from '../../common';
2
3
  import { AppStore } from '../stores/AppStore';
3
4
  export interface InsightsMicroWidgetContextTypes {
4
5
  children: React.ReactNode;
5
- onEvent: (event: string, props?: object) => void;
6
+ onEvent: GlobalEventHandler;
6
7
  onPageview: (page: string) => void;
7
8
  store: AppStore;
8
9
  }
@@ -3,7 +3,7 @@ export declare const useStore: () => import('..').AppStore;
3
3
  export declare const useCopyStore: () => import('../stores/CopyStore').CopyStore;
4
4
  export declare const useInsightsMicroWidgetStore: () => import('../stores/InsightsMicroWidgetStore').InsightsMicroWidgetStore;
5
5
  export declare const useEvent: () => {
6
- onEvent: (event: string, props?: object) => void;
6
+ onEvent: import('../../common').GlobalEventHandler;
7
7
  };
8
8
  export declare const usePageview: () => {
9
9
  onPageview: (page: string) => void;
@@ -1,4 +1,4 @@
1
- import { A as s, B as e, C as o, c as t, b as i, I as d, M as n, a as C, d as c, N as I, V as M, Z as g, e as h } from "../ViewMoreMicroCard-DFAY0tA8.mjs";
1
+ import { A as s, B as e, C as o, c as t, b as i, I as d, M as n, a as C, d as c, N as I, V as M, Z as g, e as h } from "../ViewMoreMicroCard-C66pzgfS.mjs";
2
2
  export {
3
3
  s as AppStore,
4
4
  e as BeatCard,
@@ -3,9 +3,9 @@ import { fromUnixTime as Se } from "date-fns/fromUnixTime";
3
3
  import { observer as w } from "mobx-react-lite";
4
4
  import { useTheme as z } from "@mui/material/styles";
5
5
  import { u as Z } from "../useScreenSize-B6JyS_Lj.mjs";
6
- import { p as _e, u as T, c as J, e as Q, a as P, q as ee } from "../hooks-DkUqN6JE.mjs";
6
+ import { p as _e, u as T, c as J, e as Q, a as P, q as ee } from "../hooks-CTieq90n.mjs";
7
7
  import { f as we, D as be } from "../Dialog-CWW597AF.mjs";
8
- import { L as We } from "../LineChart-BWWmmJxV.mjs";
8
+ import { L as We } from "../LineChart-CBKadOFA.mjs";
9
9
  import W from "@mui/material/Divider";
10
10
  import B from "@mui/material/List";
11
11
  import E from "@mui/material/ListSubheader";
@@ -19,15 +19,15 @@ import { i as ne } from "../DateUtil-BcuH7ErC.mjs";
19
19
  import { C as y } from "../CurrencyText-YUhH2caW.mjs";
20
20
  import { Button as Te, Stack as Le } from "@mui/material";
21
21
  import { format as Ne, fromUnixTime as De, differenceInMonths as Ee } from "date-fns";
22
- import { g as K } from "../NetWorthStore-B6xF9eGH.mjs";
23
- import { N as Ot } from "../NetWorthStore-B6xF9eGH.mjs";
22
+ import { g as K } from "../NetWorthStore-CrQtq5rq.mjs";
23
+ import { N as Ot } from "../NetWorthStore-CrQtq5rq.mjs";
24
24
  import { Icon as oe } from "@mxenabled/mx-icons";
25
25
  import { f as U } from "../NumberFormatting-CtWHhyBX.mjs";
26
- import { A as b, W as ke } from "../WidgetContainer-CdBs9WOZ.mjs";
26
+ import { A as b, W as ke } from "../WidgetContainer-C1NlG0pd.mjs";
27
27
  import { L as O } from "../Loader-DUaFpDGv.mjs";
28
- import { M as Ae } from "../MicroWidgetContainer-Dxz8uBN9.mjs";
28
+ import { M as Ae } from "../MicroWidgetContainer-DQXTwO5i.mjs";
29
29
  import re from "@mui/material/Box";
30
- import { C as Me } from "../ConnectionsDrawer-ihxkAi1P.mjs";
30
+ import { C as Me } from "../ConnectionsDrawer-B36W8Qvy.mjs";
31
31
  import He from "@mui/material/Collapse";
32
32
  import V from "@mui/material/ListItemIcon";
33
33
  import ie from "@mui/material/styles/useTheme";
@@ -1,7 +1,7 @@
1
1
  import { A as f, B as C } from "../Notification-ByMBpJ5u.mjs";
2
- import { A as _ } from "../Fetch-CkFKy79O.mjs";
3
- import { s as L } from "../NotificationStore-DHtSGySy.mjs";
4
- import { N as Nt, f as St } from "../NotificationStore-DHtSGySy.mjs";
2
+ import { A as _ } from "../Fetch-87LIQbEA.mjs";
3
+ import { s as L } from "../NotificationStore-C6PH6MKm.mjs";
4
+ import { N as Nt, f as St } from "../NotificationStore-C6PH6MKm.mjs";
5
5
  import { jsx as t, jsxs as d, Fragment as x } from "react/jsx-runtime";
6
6
  import k, { useEffect as A } from "react";
7
7
  import { observer as p } from "mobx-react-lite";
@@ -11,13 +11,13 @@ import B from "@mui/material/List";
11
11
  import { Text as m, InstitutionLogo as T, CategoryIcon as R } from "@mxenabled/mxui";
12
12
  import { h as I } from "../DateUtil-BcuH7ErC.mjs";
13
13
  import { useTheme as O, Card as G } from "@mui/material";
14
- import { c as E, g as j, u as g, n as N, a as S, m as z } from "../hooks-DkUqN6JE.mjs";
14
+ import { c as E, g as j, u as g, n as N, a as S, m as z } from "../hooks-CTieq90n.mjs";
15
15
  import { Icon as U, Settings as F } from "@mxenabled/mx-icons";
16
16
  import P from "@mui/material/Button";
17
17
  import W from "@mui/material/Stack";
18
18
  import { L as w } from "../Loader-DUaFpDGv.mjs";
19
19
  import $ from "@mui/material/IconButton";
20
- import { N as H } from "../NotificationSettings-BJFyyZYE.mjs";
20
+ import { N as H } from "../NotificationSettings-gz1XBCBs.mjs";
21
21
  import { D as b } from "../Drawer-kEE73B87.mjs";
22
22
  const yt = (e) => {
23
23
  switch (e) {
@@ -1,7 +1,7 @@
1
- import { Fetch, RepeatingTransaction } from '../../common';
1
+ import { Fetch, GlobalErrorHandler, RepeatingTransaction } from '../../common';
2
2
  export declare class RepeatingTransactionsApi {
3
3
  fetchInstance: Fetch;
4
- constructor(endpoint: string, token: string);
4
+ constructor(endpoint: string, token: string, onError?: GlobalErrorHandler);
5
5
  addRepeatingTransaction: (repeatingTransaction: RepeatingTransaction) => Promise<any>;
6
6
  getRepeatingTransactions: () => Promise<any>;
7
7
  updateRepeatingTransaction: (repeatingTransaction: RepeatingTransaction) => Promise<any>;