@mx-cartographer/experiences 7.0.27-alpha-recurring-transactions-css-bug-ram8 → 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.
- package/CHANGELOG.md +1 -1
- package/dist/{Account-BW3-oYEs.mjs → Account-DJ7VG5hs.mjs} +1 -1
- package/dist/{AccountDetailsContent-UxSEMBo_.mjs → AccountDetailsContent-YtqGgQmV.mjs} +8 -8
- package/dist/{AccountDetailsHeader-Eb3WvBGm.mjs → AccountDetailsHeader-DJk0hheh.mjs} +5 -5
- package/dist/{AccountFields-CIz-r3gP.mjs → AccountFields-BJfIdeay.mjs} +2 -2
- package/dist/{AccountListItem-B-ZjJ4Gp.mjs → AccountListItem-CkDTN1Bi.mjs} +3 -3
- package/dist/{AccountStore-BaMynkQT.mjs → AccountStore-CJl0ld02.mjs} +26 -26
- package/dist/{Accounts-CA-nqAjT.mjs → Accounts-BYGu-bN1.mjs} +1 -1
- package/dist/{BeatApi-DLu87ijw.mjs → BeatApi-DhJpgCLz.mjs} +3 -3
- package/dist/{BeatStore-By4aGoRM.mjs → BeatStore-IBnXd4YK.mjs} +17 -17
- package/dist/{BudgetUtil-CeSLAcsl.mjs → BudgetUtil-BB9gMyLW.mjs} +1 -1
- package/dist/{CategorySelectorDrawer-BJ9jlCyt.mjs → CategorySelectorDrawer-B-W3eXHU.mjs} +1 -1
- package/dist/{CategoryStore-BOyzQjQp.mjs → CategoryStore-BCcpI3oJ.mjs} +4 -4
- package/dist/{ConnectDrawer-phFH6OHt.mjs → ConnectDrawer-COy3Xwqv.mjs} +1 -1
- package/dist/{ConnectionsDrawer-ihxkAi1P.mjs → ConnectionsDrawer-B36W8Qvy.mjs} +2 -2
- package/dist/{CurrencyInput-bEx2Mbd0.mjs → CurrencyInput-B6gF46iv.mjs} +1 -1
- package/dist/{DebtsStore-VkyMADzd.mjs → DebtsStore-2yxA32_7.mjs} +1 -1
- package/dist/{ExportCsvAction-CbdFfDV5.mjs → ExportCsvAction-C3s1m5os.mjs} +3 -3
- package/dist/{Fetch-CkFKy79O.mjs → Fetch-87LIQbEA.mjs} +11 -10
- package/dist/{FinstrongStore-mkALvztw.mjs → FinstrongStore-F2c607dj.mjs} +4 -4
- package/dist/{GoalStore-eSOkI6uE.mjs → GoalStore-dBJBsl-g.mjs} +6 -6
- package/dist/{Help-KAAMEubC.mjs → Help-CWsL8d5P.mjs} +1 -1
- package/dist/{LineChart-BWWmmJxV.mjs → LineChart-CBKadOFA.mjs} +1 -1
- package/dist/{ListItemAction-DNZZ5fSa.mjs → ListItemAction-CpYlo5Sh.mjs} +1 -1
- package/dist/{ManageIncome-DbsiKUoO.mjs → ManageIncome-CGoLh7xs.mjs} +4 -4
- package/dist/MerchantStore-DrFvsUyy.mjs +37 -0
- package/dist/{MicroWidgetContainer-Dxz8uBN9.mjs → MicroWidgetContainer-DQXTwO5i.mjs} +1 -1
- package/dist/{MiniWidgetContainer-CTyjmE1h.mjs → MiniWidgetContainer-BF2Qwhh-.mjs} +1 -1
- package/dist/{NetWorthStore-B6xF9eGH.mjs → NetWorthStore-CrQtq5rq.mjs} +2 -2
- package/dist/{NotificationSettings-BJFyyZYE.mjs → NotificationSettings-gz1XBCBs.mjs} +2 -2
- package/dist/{NotificationStore-DHtSGySy.mjs → NotificationStore-C6PH6MKm.mjs} +8 -4
- package/dist/{OriginalBalanceAction-DepsKiJz.mjs → OriginalBalanceAction-C3afa-mq.mjs} +3 -3
- package/dist/{RecurringSettings-Dj29piAQ.mjs → RecurringSettings-fjYVNmPp.mjs} +3 -3
- package/dist/{RecurringTransactionsStore-D62XJtdL.mjs → RecurringTransactionsStore-DeLXfuC4.mjs} +20 -16
- package/dist/{SettingsStore-B4gi6oOw.mjs → SettingsStore-0aHfHlOE.mjs} +33 -29
- package/dist/{TransactionApi-DbbcjI2L.mjs → TransactionApi-B3Tksf7L.mjs} +29 -29
- package/dist/{TransactionDetails-C-z3HGTT.mjs → TransactionDetails--DPYM8la.mjs} +5 -5
- package/dist/{TransactionStore-Cep_Eeql.mjs → TransactionStore-Cd25G0gH.mjs} +29 -25
- package/dist/{TrendsStore-WrHxzdbQ.mjs → TrendsStore-ReCVjB8o.mjs} +1 -1
- package/dist/{User-Dq9Qj764.mjs → User-DD7Pb2ze.mjs} +1 -1
- package/dist/{ViewMoreMicroCard-DFAY0tA8.mjs → ViewMoreMicroCard-C66pzgfS.mjs} +5 -2
- package/dist/{WidgetContainer-CdBs9WOZ.mjs → WidgetContainer-C1NlG0pd.mjs} +2 -2
- package/dist/accounts/api/AccountApi.d.ts +2 -2
- package/dist/accounts/index.es.js +12 -12
- package/dist/analytics/index.es.js +2 -2
- package/dist/budgets/api/BudgetsApi.d.ts +2 -2
- package/dist/budgets/index.es.js +10 -10
- package/dist/cashflow/api/CashflowApi.d.ts +3 -2
- package/dist/cashflow/index.es.js +10 -10
- package/dist/categories/index.es.js +2 -2
- package/dist/common/api/AnalyticsApi.d.ts +2 -2
- package/dist/common/api/AppDataApi.d.ts +2 -2
- package/dist/common/api/BeatApi.d.ts +2 -2
- package/dist/common/api/CategoryApi.d.ts +2 -3
- package/dist/common/api/GlobalCopyApi.d.ts +2 -1
- package/dist/common/api/LocalizedCopyApi.d.ts +2 -1
- package/dist/common/api/NotificationApi.d.ts +2 -2
- package/dist/common/api/ScheduledPaymentsApi.d.ts +3 -2
- package/dist/common/api/UserApi.d.ts +2 -2
- package/dist/common/context/GlobalDataProvider.d.ts +3 -2
- package/dist/common/context/hooks.d.ts +4 -1
- package/dist/common/context/index.d.ts +1 -1
- package/dist/common/index.es.js +316 -310
- package/dist/common/stores/GlobalStore.d.ts +3 -2
- package/dist/common/types/Handlers.d.ts +2 -0
- package/dist/common/types/index.d.ts +1 -0
- package/dist/common/utils/Fetch.d.ts +3 -1
- package/dist/dashboard/index.es.js +2 -2
- package/dist/debts/index.es.js +9 -9
- package/dist/{exportTransactionsToCSV-B5qAKd6C.mjs → exportTransactionsToCSV-Ch_T5Xhk.mjs} +1 -1
- package/dist/finstrong/api/FinstrongApi.d.ts +2 -1
- package/dist/finstrong/index.es.js +7 -7
- package/dist/goals/api/GoalApi.d.ts +3 -2
- package/dist/goals/index.es.js +11 -11
- package/dist/help/api/HelpApi.d.ts +2 -2
- package/dist/help/index.es.js +3 -3
- package/dist/hooks-CTieq90n.mjs +74 -0
- package/dist/insights/index.es.js +1 -1
- package/dist/investments/api/HoldingApi.d.ts +3 -2
- package/dist/investments/index.es.js +3 -3
- package/dist/merchants/api/MerchantApi.d.ts +2 -1
- package/dist/merchants/index.es.js +2 -2
- package/dist/microinsights/context/InsightsMicroWidgetDataProvider.d.ts +2 -1
- package/dist/microinsights/context/hooks.d.ts +1 -1
- package/dist/microinsights/index.es.js +1 -1
- package/dist/networth/index.es.js +7 -7
- package/dist/notifications/index.es.js +5 -5
- package/dist/recurringtransactions/api/RepeatingTransactionsApi.d.ts +2 -2
- package/dist/recurringtransactions/index.es.js +339 -349
- package/dist/settings/api/SettingsApi.d.ts +3 -2
- package/dist/settings/index.es.js +7 -7
- package/dist/spending/index.es.js +4 -4
- package/dist/transactions/api/TransactionApi.d.ts +3 -2
- package/dist/transactions/index.es.js +14 -14
- package/dist/trends/index.es.js +10 -10
- package/dist/{useCombineEvents-DaDBSR_1.mjs → useCombineEvents-BUDIR1ba.mjs} +29 -29
- package/package.json +1 -1
- package/dist/MerchantStore-DVH-QOf0.mjs +0 -37
- package/dist/hooks-DkUqN6JE.mjs +0 -71
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import M, { useState as J, useEffect as K, useRef as vt } from "react";
|
|
2
|
-
import { l as St, u as _t, k as Q } from "./hooks-
|
|
2
|
+
import { l as St, u as _t, k as Q } from "./hooks-CTieq90n.mjs";
|
|
3
3
|
import { jsxs as f, jsx as s } from "react/jsx-runtime";
|
|
4
4
|
import L from "@mui/material/Box";
|
|
5
5
|
import T from "@mui/material/Stack";
|
|
@@ -22,7 +22,7 @@ import { isWithinInterval as Q } from "date-fns/isWithinInterval";
|
|
|
22
22
|
import nn from "@mui/material/styles/useTheme";
|
|
23
23
|
import k from "@mui/material/ListItem";
|
|
24
24
|
import an from "@mui/material/ListItemButton";
|
|
25
|
-
import { e as tn } from "./hooks-
|
|
25
|
+
import { e as tn } from "./hooks-CTieq90n.mjs";
|
|
26
26
|
const on = ({ copy: n, date: a, onNextClick: o, onPreviousClick: r }) => {
|
|
27
27
|
const c = v(), l = en(c);
|
|
28
28
|
return /* @__PURE__ */ h("div", { className: `mx-cmn-calendar-header ${l}`, children: [
|
|
@@ -18,8 +18,8 @@ import { css as qe } from "@mxenabled/cssinjs";
|
|
|
18
18
|
import { b as Je } from "./Localization-2MODESHW.mjs";
|
|
19
19
|
import et from "@mui/material/CircularProgress";
|
|
20
20
|
import { makeAutoObservable as se, runInAction as Te } from "mobx";
|
|
21
|
-
import { G as _e, a as tt, u as it, b as ot } from "./useCombineEvents-
|
|
22
|
-
import { B as Ce } from "./BeatApi-
|
|
21
|
+
import { G as _e, a as tt, u as it, b as ot } from "./useCombineEvents-BUDIR1ba.mjs";
|
|
22
|
+
import { B as Ce } from "./BeatApi-DhJpgCLz.mjs";
|
|
23
23
|
import rt from "@mui/material/Card";
|
|
24
24
|
import lt from "@mui/material/CardActions";
|
|
25
25
|
import nt from "@mui/material/CardContent";
|
|
@@ -35,6 +35,9 @@ class ct {
|
|
|
35
35
|
constructor() {
|
|
36
36
|
se(this);
|
|
37
37
|
}
|
|
38
|
+
// NOTE: Not sure if this is special case, but other stores have this deprecation todo
|
|
39
|
+
// DEPRECATED: Initialize api in constructor and use loadCopy instead
|
|
40
|
+
// TODO: Remove this function
|
|
38
41
|
initialize = async (o, t) => {
|
|
39
42
|
this.copyApi = new _e(o, t), await this.loadCopy();
|
|
40
43
|
};
|
|
@@ -12,7 +12,7 @@ import Y from "@mui/material/Stack";
|
|
|
12
12
|
import { Icon as s, Text as z, DateRangePicker as q, H1 as se, H3 as le } from "@mxenabled/mxui";
|
|
13
13
|
import { u as Ce } from "./useDimensions-27p2evRx.mjs";
|
|
14
14
|
import { L as de } from "./Loader-DUaFpDGv.mjs";
|
|
15
|
-
import { e as Te, a as Ie, u as Ee, W as Re } from "./hooks-
|
|
15
|
+
import { e as Te, a as Ie, u as Ee, W as Re } from "./hooks-CTieq90n.mjs";
|
|
16
16
|
import { u as ae } from "./useScreenSize-B6JyS_Lj.mjs";
|
|
17
17
|
import { addMonths as J } from "date-fns/addMonths";
|
|
18
18
|
import { addDays as ge } from "date-fns/addDays";
|
|
@@ -35,7 +35,7 @@ import Oe from "@mui/material/ToggleButtonGroup";
|
|
|
35
35
|
import fe from "@mui/material/styles/useTheme";
|
|
36
36
|
import { f as K, D as G, a as be } from "./Dialog-CWW597AF.mjs";
|
|
37
37
|
import { D as we } from "./Drawer-kEE73B87.mjs";
|
|
38
|
-
import { i as Ke, j as Ge } from "./ConnectDrawer-
|
|
38
|
+
import { i as Ke, j as Ge } from "./ConnectDrawer-COy3Xwqv.mjs";
|
|
39
39
|
const Me = {
|
|
40
40
|
ACCOUNTS_CLICK_ACCOUNT: "accounts_widget_click_account",
|
|
41
41
|
ACCOUNTS_CLICK_CONNECT: "accounts_widget_click_connect_accounts",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { default as Fetch } from '../../common/utils/Fetch';
|
|
2
|
-
import { Account } from '../../common';
|
|
2
|
+
import { Account, GlobalErrorHandler } from '../../common';
|
|
3
3
|
export declare class AccountApi {
|
|
4
4
|
fetchInstance: Fetch;
|
|
5
|
-
constructor(endpoint: string, token: string);
|
|
5
|
+
constructor(endpoint: string, token: string, onError?: GlobalErrorHandler);
|
|
6
6
|
createAccount: (account: Account) => Promise<any>;
|
|
7
7
|
deleteAccount: (accountGuid: string) => Promise<any>;
|
|
8
8
|
getAccounts: () => Promise<any>;
|
|
@@ -7,24 +7,24 @@ import E from "@mui/material/List";
|
|
|
7
7
|
import T from "@mui/material/ListSubheader";
|
|
8
8
|
import x from "@mui/system/Stack";
|
|
9
9
|
import { Text as v } from "@mxenabled/mxui";
|
|
10
|
-
import { A as G } from "../AccountDetailsContent-
|
|
11
|
-
import { u as O1 } from "../AccountDetailsContent-
|
|
12
|
-
import { u as K, A as z } from "../AccountDetailsHeader-
|
|
13
|
-
import { A as W } from "../AccountListItem-
|
|
14
|
-
import { u as g, a as y, c as O, e as N, m as P } from "../hooks-
|
|
10
|
+
import { A as G } from "../AccountDetailsContent-YtqGgQmV.mjs";
|
|
11
|
+
import { u as O1 } from "../AccountDetailsContent-YtqGgQmV.mjs";
|
|
12
|
+
import { u as K, A as z } from "../AccountDetailsHeader-DJk0hheh.mjs";
|
|
13
|
+
import { A as W } from "../AccountListItem-CkDTN1Bi.mjs";
|
|
14
|
+
import { u as g, a as y, c as O, e as N, m as P } from "../hooks-CTieq90n.mjs";
|
|
15
15
|
import { f as I } from "../NumberFormatting-CtWHhyBX.mjs";
|
|
16
16
|
import { D as Y } from "../Drawer-kEE73B87.mjs";
|
|
17
|
-
import { A, W as q } from "../WidgetContainer-
|
|
18
|
-
import { C as J } from "../ConnectionsDrawer-
|
|
17
|
+
import { A, W as q } from "../WidgetContainer-C1NlG0pd.mjs";
|
|
18
|
+
import { C as J } from "../ConnectionsDrawer-B36W8Qvy.mjs";
|
|
19
19
|
import { u as Q } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
20
20
|
import { L as R } from "../Loader-DUaFpDGv.mjs";
|
|
21
|
-
import { j as D } from "../ConnectDrawer-
|
|
22
|
-
import { F as I1, M as N1 } from "../ConnectDrawer-
|
|
21
|
+
import { j as D } from "../ConnectDrawer-COy3Xwqv.mjs";
|
|
22
|
+
import { F as I1, M as N1 } from "../ConnectDrawer-COy3Xwqv.mjs";
|
|
23
23
|
import X from "@mui/material/ListItem";
|
|
24
|
-
import { M as U } from "../MiniWidgetContainer-
|
|
24
|
+
import { M as U } from "../MiniWidgetContainer-BF2Qwhh-.mjs";
|
|
25
25
|
import e1 from "@mui/material/Stack";
|
|
26
|
-
import { g as U1, a as j1 } from "../AccountFields-
|
|
27
|
-
import { A as G1, a as K1 } from "../AccountStore-
|
|
26
|
+
import { g as U1, a as j1 } from "../AccountFields-BJfIdeay.mjs";
|
|
27
|
+
import { A as G1, a as K1 } from "../AccountStore-CJl0ld02.mjs";
|
|
28
28
|
const t1 = () => {
|
|
29
29
|
const [c, L] = d.useState(""), { accounts: o } = g(), { selectedAccounts: l } = y(), { setSelectedAccount: u, setSelectedMember: r } = K(), { members: s } = O(), { onEvent: p } = N(), a = [...new Set(l.map((t) => t.account_type))], H = l.find((t) => c === t.guid), h = d.useMemo(
|
|
30
30
|
() => l.filter((t) => t.is_hidden),
|
|
@@ -8,8 +8,8 @@ import a from "@mui/material/Stack";
|
|
|
8
8
|
import _ from "@mui/material/styles/useTheme";
|
|
9
9
|
import { Text as u, TextField as L } from "@mxenabled/mxui";
|
|
10
10
|
import { L as W } from "../Loader-DUaFpDGv.mjs";
|
|
11
|
-
import { M as j } from "../MiniWidgetContainer-
|
|
12
|
-
import { i as f, u as b, e as q, a as E } from "../hooks-
|
|
11
|
+
import { M as j } from "../MiniWidgetContainer-BF2Qwhh-.mjs";
|
|
12
|
+
import { i as f, u as b, e as q, a as E } from "../hooks-CTieq90n.mjs";
|
|
13
13
|
import Q from "@mui/material/ToggleButton";
|
|
14
14
|
import G from "@mui/material/ToggleButtonGroup";
|
|
15
15
|
const O = () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Budget, Category
|
|
1
|
+
import { Fetch, GlobalErrorHandler, Budget, Category } from '../../common';
|
|
2
2
|
export declare class BudgetsApi {
|
|
3
3
|
fetchInstance: Fetch;
|
|
4
|
-
constructor(endpoint: string, token: string);
|
|
4
|
+
constructor(endpoint: string, token: string, onError?: GlobalErrorHandler);
|
|
5
5
|
addBudget: (category: Category, amount: number, parentGuid?: string | null) => Promise<any>;
|
|
6
6
|
deleteBudget: (guid: string) => Promise<any>;
|
|
7
7
|
getBudgets: () => Promise<any>;
|
package/dist/budgets/index.es.js
CHANGED
|
@@ -7,15 +7,15 @@ import W from "@mui/material/Box";
|
|
|
7
7
|
import _ from "@mui/material/Stack";
|
|
8
8
|
import Q from "@mui/material/styles/useTheme";
|
|
9
9
|
import { Icon as $, Text as g, CategoryIcon as H, H1 as Ge, H3 as Be } from "@mxenabled/mxui";
|
|
10
|
-
import { u as Pe } from "../BudgetUtil-
|
|
11
|
-
import { C as Ne } from "../ConnectionsDrawer-
|
|
10
|
+
import { u as Pe } from "../BudgetUtil-BB9gMyLW.mjs";
|
|
11
|
+
import { C as Ne } from "../ConnectionsDrawer-B36W8Qvy.mjs";
|
|
12
12
|
import * as E from "d3";
|
|
13
13
|
import je from "@mui/material/Tooltip";
|
|
14
|
-
import { g as w, k as j, u as D, e as X, a as ee, p as ze, h as te, f as ne, m as Ue, c as Se } from "../hooks-
|
|
14
|
+
import { g as w, k as j, u as D, e as X, a as ee, p as ze, h as te, f as ne, m as Ue, c as Se } from "../hooks-CTieq90n.mjs";
|
|
15
15
|
import { L as P } from "../Loader-DUaFpDGv.mjs";
|
|
16
16
|
import { E as ce } from "../EmptyState-C0lr9E5T.mjs";
|
|
17
17
|
import { u as me } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
18
|
-
import { A as k, W as Fe } from "../WidgetContainer-
|
|
18
|
+
import { A as k, W as Fe } from "../WidgetContainer-C1NlG0pd.mjs";
|
|
19
19
|
import K from "@mui/material/List";
|
|
20
20
|
import { f as T } from "../NumberFormatting-CtWHhyBX.mjs";
|
|
21
21
|
import Ae from "@mui/material/Button";
|
|
@@ -27,26 +27,26 @@ import Z from "@mui/material/ListItemText";
|
|
|
27
27
|
import { b as L } from "../Localization-2MODESHW.mjs";
|
|
28
28
|
import { D as M } from "../Drawer-kEE73B87.mjs";
|
|
29
29
|
import We from "@mui/material/ListItemSecondaryAction";
|
|
30
|
-
import { C as He } from "../CurrencyInput-
|
|
30
|
+
import { C as He } from "../CurrencyInput-B6gF46iv.mjs";
|
|
31
31
|
import { a as N } from "../Dialog-CWW597AF.mjs";
|
|
32
|
-
import { M as Xe } from "../MiniWidgetContainer-
|
|
32
|
+
import { M as Xe } from "../MiniWidgetContainer-BF2Qwhh-.mjs";
|
|
33
33
|
import { isAfter as Ke } from "date-fns/isAfter";
|
|
34
34
|
import { startOfToday as q } from "date-fns/startOfToday";
|
|
35
35
|
import Ve from "@mui/material/Alert";
|
|
36
36
|
import Ye from "@mui/material/Snackbar";
|
|
37
37
|
import be from "@mui/material/Tab";
|
|
38
38
|
import Ze from "@mui/material/Tabs";
|
|
39
|
-
import { e as qe } from "../exportTransactionsToCSV-
|
|
40
|
-
import { T as xe, a as Je } from "../TransactionDetails
|
|
39
|
+
import { e as qe } from "../exportTransactionsToCSV-Ch_T5Xhk.mjs";
|
|
40
|
+
import { T as xe, a as Je } from "../TransactionDetails--DPYM8la.mjs";
|
|
41
41
|
import ge from "@mui/material/Card";
|
|
42
42
|
import pe from "@mui/material/CardContent";
|
|
43
43
|
import { S as ue } from "../StatusBar-BK_uYHAB.mjs";
|
|
44
44
|
import { S as ve } from "../SingleSegmentDonut-BgbLgwHi.mjs";
|
|
45
|
-
import { u as Qe, b as et } from "../CategorySelectorDrawer-
|
|
45
|
+
import { u as Qe, b as et } from "../CategorySelectorDrawer-B-W3eXHU.mjs";
|
|
46
46
|
import Te from "@mui/material/CardHeader";
|
|
47
47
|
import { subDays as tt } from "date-fns/subDays";
|
|
48
48
|
import nt from "@mui/material/IconButton";
|
|
49
|
-
import { M as ot } from "../ManageIncome-
|
|
49
|
+
import { M as ot } from "../ManageIncome-CGoLh7xs.mjs";
|
|
50
50
|
const ye = 5, at = 100, rt = 25, st = (t) => {
|
|
51
51
|
const o = (a) => {
|
|
52
52
|
a.active || t.alphaTarget(0.3).restart(), a.subject.fx = a.subject.x, a.subject.fy = a.subject.y;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { Fetch
|
|
1
|
+
import { Fetch } from '../../common';
|
|
2
|
+
import { GlobalErrorHandler, CashflowEvent, CashflowSequence } from '../../common/types';
|
|
2
3
|
export declare class CashflowApi {
|
|
3
4
|
fetchInstance: Fetch;
|
|
4
|
-
constructor(endpoint: string, token: string);
|
|
5
|
+
constructor(endpoint: string, token: string, onError?: GlobalErrorHandler);
|
|
5
6
|
addCashflowEvent: (cashflowEvent: CashflowEvent) => Promise<any>;
|
|
6
7
|
addCashflowSequence: (cashflowSequence: CashflowSequence) => Promise<any>;
|
|
7
8
|
getCashflowSequences: () => Promise<CashflowSequence[]>;
|
|
@@ -9,21 +9,21 @@ import D from "@mui/material/Divider";
|
|
|
9
9
|
import r from "@mui/material/Stack";
|
|
10
10
|
import ae from "@mui/material/styles/useTheme";
|
|
11
11
|
import { Text as h, P as k, Icon as F, InstitutionLogo as xe, H1 as le, H2 as Xe } from "@mxenabled/mxui";
|
|
12
|
-
import { G as Ye, t as de, u as O, p as re, c as Oe, a as Y, o as me, h as q, e as Ne, f as ke } from "../hooks-
|
|
12
|
+
import { G as Ye, t as de, u as O, p as re, c as Oe, a as Y, o as me, h as q, e as Ne, f as ke } from "../hooks-CTieq90n.mjs";
|
|
13
13
|
import { C as L } from "../CurrencyText-YUhH2caW.mjs";
|
|
14
14
|
import { u as ue } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
15
15
|
import { L as se } from "../Loader-DUaFpDGv.mjs";
|
|
16
16
|
import { I as he } from "../CashflowStore-D9Dpuz7X.mjs";
|
|
17
17
|
import { C as Wn } from "../CashflowStore-D9Dpuz7X.mjs";
|
|
18
18
|
import { b as X } from "../Localization-2MODESHW.mjs";
|
|
19
|
-
import { M as Qe } from "../MiniWidgetContainer-
|
|
20
|
-
import { R as Ve } from "../RecurringSettings-
|
|
19
|
+
import { M as Qe } from "../MiniWidgetContainer-BF2Qwhh-.mjs";
|
|
20
|
+
import { R as Ve } from "../RecurringSettings-fjYVNmPp.mjs";
|
|
21
21
|
import Ke from "@mui/material/Tabs";
|
|
22
22
|
import Ce from "@mui/material/Tab";
|
|
23
23
|
import { getUnixTime as U } from "date-fns/getUnixTime";
|
|
24
24
|
import ee from "@mui/material/List";
|
|
25
25
|
import te from "@mui/material/ListItem";
|
|
26
|
-
import { A as Je } from "../AccountListItem-
|
|
26
|
+
import { A as Je } from "../AccountListItem-CkDTN1Bi.mjs";
|
|
27
27
|
import { f as Q, D as V } from "../Dialog-CWW597AF.mjs";
|
|
28
28
|
import Ze from "@mui/material/ListSubheader";
|
|
29
29
|
import { f as Z } from "../NumberFormatting-CtWHhyBX.mjs";
|
|
@@ -34,18 +34,18 @@ import { addDays as _e } from "date-fns/addDays";
|
|
|
34
34
|
import { alpha as et, keyframes as tt } from "@mui/material/styles";
|
|
35
35
|
import { DataGridPro as nt } from "@mui/x-data-grid-pro";
|
|
36
36
|
import { T as we } from "../TabContentContainer-j01JYR_7.mjs";
|
|
37
|
-
import { M as ot, S as it, i as at, d as Se, c as rt } from "../ManageIncome-
|
|
37
|
+
import { M as ot, S as it, i as at, d as Se, c as rt } from "../ManageIncome-CGoLh7xs.mjs";
|
|
38
38
|
import { D as $e } from "../Drawer-kEE73B87.mjs";
|
|
39
39
|
import { formatISO as st } from "date-fns/formatISO";
|
|
40
40
|
import { fromUnixTime as ye } from "date-fns/fromUnixTime";
|
|
41
41
|
import { startOfMonth as ct } from "date-fns/startOfMonth";
|
|
42
42
|
import { subDays as Me } from "date-fns/subDays";
|
|
43
|
-
import { S as lt, b as dt } from "../TransactionDetails
|
|
43
|
+
import { S as lt, b as dt } from "../TransactionDetails--DPYM8la.mjs";
|
|
44
44
|
import { F as mt, R as Ie, e as De } from "../RepeatingTransaction-BW4J-jeJ.mjs";
|
|
45
45
|
import { h as ut } from "../DateUtil-BcuH7ErC.mjs";
|
|
46
46
|
import { endOfToday as ht } from "date-fns/endOfToday";
|
|
47
|
-
import { W as ve, A as Ae } from "../WidgetContainer-
|
|
48
|
-
import { F as pt, A as B } from "../Fetch-
|
|
47
|
+
import { W as ve, A as Ae } from "../WidgetContainer-C1NlG0pd.mjs";
|
|
48
|
+
import { F as pt, A as B } from "../Fetch-87LIQbEA.mjs";
|
|
49
49
|
const K = () => {
|
|
50
50
|
if (!m.useContext(Ye))
|
|
51
51
|
throw new Error("useCashflowUiStore() must be used within the GlobalDataContext");
|
|
@@ -1075,8 +1075,8 @@ const _t = ({ recurrence: i }) => /* @__PURE__ */ o(P, { children: [
|
|
|
1075
1075
|
}, Nn = T(Wt);
|
|
1076
1076
|
class kn {
|
|
1077
1077
|
fetchInstance;
|
|
1078
|
-
constructor(n, t) {
|
|
1079
|
-
this.fetchInstance = new pt(n, t);
|
|
1078
|
+
constructor(n, t, s) {
|
|
1079
|
+
this.fetchInstance = new pt(n, t, void 0, s);
|
|
1080
1080
|
}
|
|
1081
1081
|
addCashflowEvent = async (n) => this.fetchInstance.post(B.CASHFLOW_EVENTS, { ...n }).then((t) => t);
|
|
1082
1082
|
addCashflowSequence = async (n) => this.fetchInstance.post(B.CASHFLOW_SEQUENCES, { ...n }).then((t) => t.cashflow_sequence);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as o, C as a, a as t, u as C } from "../CategorySelectorDrawer-
|
|
2
|
-
import { C as g } from "../CategoryStore-
|
|
1
|
+
import { b as o, C as a, a as t, u as C } from "../CategorySelectorDrawer-B-W3eXHU.mjs";
|
|
2
|
+
import { C as g } from "../CategoryStore-BCcpI3oJ.mjs";
|
|
3
3
|
export {
|
|
4
4
|
o as CategoryRow,
|
|
5
5
|
a as CategorySelector,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Fetch } from '../utils';
|
|
2
|
-
import { AnalyticsEvent } from '../types';
|
|
2
|
+
import { AnalyticsEvent, GlobalErrorHandler } from '../types';
|
|
3
3
|
export declare class AnalyticsApi {
|
|
4
4
|
fetchInstance: Fetch;
|
|
5
|
-
constructor(endpoint: string, token: string);
|
|
5
|
+
constructor(endpoint: string, token: string, onError?: GlobalErrorHandler);
|
|
6
6
|
initializeAnalyticsSession: (version: string, featureName?: string) => Promise<{
|
|
7
7
|
analytics_session: any;
|
|
8
8
|
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as Fetch } from '../utils/Fetch';
|
|
2
|
-
import { AppData } from '../types';
|
|
2
|
+
import { AppData, GlobalErrorHandler } from '../types';
|
|
3
3
|
export declare class AppDataApi {
|
|
4
4
|
fetchInstance: Fetch;
|
|
5
|
-
constructor(endpoint: string, token: string);
|
|
5
|
+
constructor(endpoint: string, token: string, onError?: GlobalErrorHandler);
|
|
6
6
|
getAppData: () => Promise<AppData>;
|
|
7
7
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { default as Fetch } from '../utils/Fetch';
|
|
2
|
-
import { Beat } from '../types';
|
|
2
|
+
import { Beat, GlobalErrorHandler } from '../types';
|
|
3
3
|
export declare class BeatApi {
|
|
4
4
|
fetchInstance: Fetch;
|
|
5
|
-
constructor(endpoint: string, token: string);
|
|
5
|
+
constructor(endpoint: string, token: string, onError?: GlobalErrorHandler);
|
|
6
6
|
getBeats: (pageNum?: number, perPage?: number) => Promise<any>;
|
|
7
7
|
getBeatsWithAssociatedTransaction: (fromDate?: string) => Promise<any>;
|
|
8
8
|
getOffers: () => Promise<any>;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { default as Fetch } from '../utils/Fetch';
|
|
2
|
-
import { Account } from '../types
|
|
3
|
-
import { Category } from '../types/Category';
|
|
2
|
+
import { Account, Category, GlobalErrorHandler } from '../types';
|
|
4
3
|
export declare class CategoryApi {
|
|
5
4
|
fetchInstance: Fetch;
|
|
6
|
-
constructor(endpoint: string, token: string);
|
|
5
|
+
constructor(endpoint: string, token: string, onError?: GlobalErrorHandler);
|
|
7
6
|
addCategory: (category: Category) => Promise<any>;
|
|
8
7
|
getCategories: () => Promise<any>;
|
|
9
8
|
getDateRangeCategoryTotals: (startDate: number, endDate: number, accounts: Account[]) => Promise<any>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { default as Fetch } from '../utils/Fetch';
|
|
2
|
+
import { GlobalErrorHandler } from '../types';
|
|
2
3
|
export declare class GlobalCopyApi {
|
|
3
4
|
fetchInstance: Fetch;
|
|
4
|
-
constructor(endpoint: string, token: string);
|
|
5
|
+
constructor(endpoint: string, token: string, onError?: GlobalErrorHandler);
|
|
5
6
|
getGlobalCopy: (namespace: string, translationKey: string) => Promise<any>;
|
|
6
7
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { default as Fetch } from '../utils/Fetch';
|
|
2
|
+
import { GlobalErrorHandler } from '../types';
|
|
2
3
|
export declare class LocalizedCopyApi {
|
|
3
4
|
fetchInstance: Fetch;
|
|
4
|
-
constructor(endpoint: string, token: string);
|
|
5
|
+
constructor(endpoint: string, token: string, onError?: GlobalErrorHandler);
|
|
5
6
|
getLocalizedCopy: (req: any) => Promise<any>;
|
|
6
7
|
getLocalizedContent: (namespace: string) => Promise<any>;
|
|
7
8
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { default as Fetch } from '../utils/Fetch';
|
|
2
|
-
import { Notification } from '../types';
|
|
2
|
+
import { Notification, GlobalErrorHandler } from '../types';
|
|
3
3
|
export declare class NotificationApi {
|
|
4
4
|
fetchInstance: Fetch;
|
|
5
|
-
constructor(endpoint: string, token: string);
|
|
5
|
+
constructor(endpoint: string, token: string, onError?: GlobalErrorHandler);
|
|
6
6
|
getNotifications: () => Promise<any>;
|
|
7
7
|
updateNotification: (notification: Notification) => Promise<any>;
|
|
8
8
|
markAllAsViewed: (channel?: number) => Promise<any>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { Fetch
|
|
1
|
+
import { Fetch } from '../../common';
|
|
2
|
+
import { ScheduledPayment, GlobalErrorHandler } from '../types';
|
|
2
3
|
export declare class ScheduledPaymentsApi {
|
|
3
4
|
fetchInstance: Fetch;
|
|
4
|
-
constructor(endpoint: string, token: string);
|
|
5
|
+
constructor(endpoint: string, token: string, onError?: GlobalErrorHandler);
|
|
5
6
|
addScheduledPayment: (scheduledPayment: ScheduledPayment) => Promise<any>;
|
|
6
7
|
getScheduledPayments: () => Promise<any>;
|
|
7
8
|
updateScheduledPayment: (scheduledPayment: ScheduledPayment) => Promise<any>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { default as Fetch } from '../utils/Fetch';
|
|
2
|
-
import { User, UserProfile } from '../types';
|
|
2
|
+
import { GlobalErrorHandler, User, UserProfile } from '../types';
|
|
3
3
|
export declare class UserApi {
|
|
4
4
|
fetchInstance: Fetch;
|
|
5
|
-
constructor(endpoint: string, token: string);
|
|
5
|
+
constructor(endpoint: string, token: string, onError?: GlobalErrorHandler);
|
|
6
6
|
getUserFeatures: () => Promise<any>;
|
|
7
7
|
updateUser: (user: User) => Promise<any>;
|
|
8
8
|
updateUserProfile: (userProfile: UserProfile) => Promise<any>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { GlobalStore } from '..';
|
|
2
|
+
import { GlobalErrorHandler, GlobalEventHandler, GlobalStore } from '..';
|
|
3
3
|
export interface GlobalStoreContextTypes {
|
|
4
4
|
children: React.ReactNode;
|
|
5
|
-
|
|
5
|
+
onError: GlobalErrorHandler;
|
|
6
|
+
onEvent: GlobalEventHandler;
|
|
6
7
|
onPageView: (pageViewEvent: string) => void;
|
|
7
8
|
globalStore: GlobalStore;
|
|
8
9
|
}
|
|
@@ -22,8 +22,11 @@ export declare const useSettingsStore: () => import('../../settings').SettingsSt
|
|
|
22
22
|
export declare const useTransactionStore: () => import('../../transactions').TransactionStore;
|
|
23
23
|
export declare const useTrendsStore: () => import('../../trends').TrendsStore;
|
|
24
24
|
export declare const useUserStore: () => import('..').UserStore;
|
|
25
|
+
export declare const useError: () => {
|
|
26
|
+
onError: import('..').GlobalErrorHandler;
|
|
27
|
+
};
|
|
25
28
|
export declare const useEvent: () => {
|
|
26
|
-
onEvent: (
|
|
29
|
+
onEvent: import('..').GlobalEventHandler;
|
|
27
30
|
};
|
|
28
31
|
export declare const usePageView: () => {
|
|
29
32
|
onPageView: (pageViewEvent: string) => void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { useAccountStore, useAppConfig, useBudgetsStore, useCashflowStore, useCategoryStore, useDebtStore, useEvent, useFinstrongStore, useGlobalStore, useGlobalUiStore, useGlobalCopyStore, useGoalStore, useHelpStore, useHoldingStore, useMerchantStore, useNetWorthStore, useNotificationStore, usePageView, useRecurringTransactionsStore, useSettingsStore, useTransactionStore, useTrendsStore, useUserStore, useWidgetContainerProvider, } from './hooks';
|
|
1
|
+
export { useAccountStore, useAppConfig, useBudgetsStore, useCashflowStore, useCategoryStore, useDebtStore, useError, useEvent, useFinstrongStore, useGlobalStore, useGlobalUiStore, useGlobalCopyStore, useGoalStore, useHelpStore, useHoldingStore, useMerchantStore, useNetWorthStore, useNotificationStore, usePageView, useRecurringTransactionsStore, useSettingsStore, useTransactionStore, useTrendsStore, useUserStore, useWidgetContainerProvider, } from './hooks';
|
|
2
2
|
export { GlobalDataContext, GlobalDataProvider } from './GlobalDataProvider';
|
|
3
3
|
export { WidgetContainerContext, WidgetContainerProvider } from './WidgetContainerProvider';
|