@mx-cartographer/experiences 7.11.20 → 7.11.21

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 (70) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/{AccountDetailsHeader-DCTCLB3K.mjs → AccountDetailsHeader-DkBNsLsI.mjs} +2 -2
  3. package/dist/{AccountListItem-CZk-bo6j.mjs → AccountListItem-BIVhda6q.mjs} +2 -2
  4. package/dist/{AccountStore-Cw54qb7Y.mjs → AccountStore-Brc0MNSF.mjs} +1 -1
  5. package/dist/BudgetUtil--_QXyszn.mjs +479 -0
  6. package/dist/{CategorySelectorDrawer-Blb22HWt.mjs → CategorySelectorDrawer-5n6Pil_E.mjs} +1 -1
  7. package/dist/{Connect-Df7iVTcV.mjs → Connect-eYIWqCEr.mjs} +1 -1
  8. package/dist/{ConnectDrawer-CVt-8rPJ.mjs → ConnectDrawer-CioFo6Wy.mjs} +2 -2
  9. package/dist/{ConnectionsDrawer-c7HaKeRj.mjs → ConnectionsDrawer-DqhSaMrJ.mjs} +2 -2
  10. package/dist/{CurrencyInput-bcKNJ22c.mjs → CurrencyInput-DuMktPu3.mjs} +1 -1
  11. package/dist/{ExportCsvAction-B5Mn5uyb.mjs → ExportCsvAction-Bg6gO_Cz.mjs} +3 -3
  12. package/dist/{GlobalAccountFilter-CbwySv6c.mjs → GlobalAccountFilter-B73Pw1hJ.mjs} +1 -1
  13. package/dist/{GoalStore-DXIP9dLt.mjs → GoalStore-0bd-Upkc.mjs} +1 -1
  14. package/dist/{Help-COWDMsJq.mjs → Help-CINT6-wG.mjs} +1 -1
  15. package/dist/{LineChart-DVn1AamK.mjs → LineChart-B1qbKR8q.mjs} +1 -1
  16. package/dist/{ListItemAction-5YhgdUZW.mjs → ListItemAction-CfXGuY7a.mjs} +1 -1
  17. package/dist/{ManageIncome-_ZP3uPwX.mjs → ManageIncome-C0ddaiMR.mjs} +10 -10
  18. package/dist/{MicroWidgetContainer-CMES42I1.mjs → MicroWidgetContainer-B_EnfvCq.mjs} +1 -1
  19. package/dist/{MiniWidgetContainer-DhEx4qKi.mjs → MiniWidgetContainer-Cu72GNsE.mjs} +1 -1
  20. package/dist/{NotificationSettings-D8uSK6m9.mjs → NotificationSettings-DCbMa5mg.mjs} +4 -4
  21. package/dist/{OriginalBalanceAction-DuVHcBdO.mjs → OriginalBalanceAction-CW_xOa6Z.mjs} +3 -3
  22. package/dist/{RecurringSettings-CSrJUzaC.mjs → RecurringSettings-CD1_vCES.mjs} +2 -2
  23. package/dist/{SpendingLegend-Cpd_jtoX.mjs → SpendingLegend-DHi0vx8B.mjs} +1 -1
  24. package/dist/StatusIndicator-wyBzyHJc.mjs +252 -0
  25. package/dist/{Transaction-BR682Yj5.mjs → Transaction-B_2AG36b.mjs} +1 -1
  26. package/dist/TransactionDetails-CgC3Qu7o.mjs +1474 -0
  27. package/dist/{TransactionStore-BbjZQa-N.mjs → TransactionStore-DIbZkSVI.mjs} +2 -2
  28. package/dist/{ViewMoreMicroCard-Bf1J0zYY.mjs → ViewMoreMicroCard-CLHlPWC-.mjs} +1 -1
  29. package/dist/{WidgetContainer-DSs6lJbr.mjs → WidgetContainer-BSCjBupR.mjs} +2 -2
  30. package/dist/accounts/index.es.js +13 -13
  31. package/dist/analytics/index.es.js +11 -11
  32. package/dist/budgets/api/BudgetsApi.d.ts +2 -0
  33. package/dist/budgets/components/MerchantBudgetDetailsDrawer.d.ts +17 -0
  34. package/dist/budgets/components/shared/BudgetDetailsTopSection.d.ts +13 -0
  35. package/dist/budgets/index.es.js +550 -609
  36. package/dist/budgets/store/BudgetsStore.d.ts +6 -0
  37. package/dist/budgets/utils/BudgetUtil.d.ts +5 -0
  38. package/dist/cashflow/index.es.js +8 -8
  39. package/dist/categories/index.es.js +1 -1
  40. package/dist/common/index.es.js +254 -224
  41. package/dist/common/types/localization/BudgetsCopy.d.ts +4 -0
  42. package/dist/dashboard/index.es.js +4 -4
  43. package/dist/debts/index.es.js +8 -8
  44. package/dist/{exportTransactionsToCSV-CKHt_UOp.mjs → exportTransactionsToCSV-EwhjfqsJ.mjs} +1 -1
  45. package/dist/finstrong/index.es.js +10 -10
  46. package/dist/goals/index.es.js +10 -10
  47. package/dist/help/index.es.js +4 -4
  48. package/dist/{hooks-zu7yblbi.mjs → hooks-BxkfR-Ff.mjs} +5 -5
  49. package/dist/insights/index.es.js +103 -104
  50. package/dist/investments/index.es.js +4 -4
  51. package/dist/merchants/index.es.js +1 -1
  52. package/dist/microinsights/index.es.js +1 -1
  53. package/dist/networth/index.es.js +6 -6
  54. package/dist/notifications/index.es.js +2 -2
  55. package/dist/recurringtransactions/index.es.js +9 -9
  56. package/dist/settings/index.es.js +7 -7
  57. package/dist/spending/index.es.js +8 -8
  58. package/dist/transactions/components/shared/transactiondetails/actions/AddMerchantBudgetAction.d.ts +5 -0
  59. package/dist/transactions/components/shared/transactiondetails/actions/index.d.ts +1 -0
  60. package/dist/transactions/index.es.js +16 -16
  61. package/dist/trends/index.es.js +12 -12
  62. package/dist/{useAccountDisplayName-CxYB0Wpw.mjs → useAccountDisplayName-DKwT1mWv.mjs} +1 -1
  63. package/dist/{useInsightsEnabled-CYLDtNYt.mjs → useInsightsEnabled-DL_oNyI0.mjs} +1 -1
  64. package/dist/{useWidgetLoadTimer-Bmgv_UeH.mjs → useWidgetLoadTimer-DgN1bTyu.mjs} +1 -1
  65. package/package.json +1 -1
  66. package/dist/BudgetUtil-QbRXtLKn.mjs +0 -101
  67. package/dist/StatusIndicator-0iX3Gnnu.mjs +0 -55
  68. package/dist/TransactionDetails-BEKQKH03.mjs +0 -1261
  69. package/dist/TransactionList-CXiLG0Ur.mjs +0 -204
  70. package/dist/User-BIgPTsU6.mjs +0 -372
@@ -12,10 +12,10 @@ import { isBefore as V } from "date-fns/isBefore";
12
12
  import { startOfMonth as h } from "date-fns/startOfMonth";
13
13
  import { startOfToday as m } from "date-fns/startOfToday";
14
14
  import { subDays as v } from "date-fns/subDays";
15
- import { O as n, a as y, T as b } from "./Transaction-BR682Yj5.mjs";
15
+ import { O as n, a as y, T as b } from "./Transaction-B_2AG36b.mjs";
16
16
  import { T as D } from "./TransactionApi-Ck5Ua-7F.mjs";
17
17
  import { b as Y } from "./Category-CevNQ03n.mjs";
18
- import { f as F } from "./exportTransactionsToCSV-CKHt_UOp.mjs";
18
+ import { f as F } from "./exportTransactionsToCSV-EwhjfqsJ.mjs";
19
19
  import { format as W } from "date-fns/format";
20
20
  import { fromUnixTime as $ } from "date-fns/fromUnixTime";
21
21
  import { f as C, D as I, O as k } from "./DateFormats-BMpMrZpW.mjs";
@@ -17,7 +17,7 @@ import He from "@mui/material/CircularProgress";
17
17
  import { makeAutoObservable as se, runInAction as Oe } from "mobx";
18
18
  import { G as he, a as $e, u as je, b as Ye } from "./useCombineEvents-B5am53e-.mjs";
19
19
  import { B as me } from "./BeatApi-EFHXULDx.mjs";
20
- import { u as Xe } from "./useWidgetLoadTimer-Bmgv_UeH.mjs";
20
+ import { u as Xe } from "./useWidgetLoadTimer-DgN1bTyu.mjs";
21
21
  import Ze from "@mui/material/Card";
22
22
  import Qe from "@mui/material/CardActionArea";
23
23
  import qe from "@mui/material/Avatar";
@@ -12,9 +12,9 @@ import F from "@mui/material/Stack";
12
12
  import { ChevronLeft as ie } from "@mxenabled/mx-icons";
13
13
  import { Icon as f, Text as $, DateRangePicker as q, H2 as se, H3 as le } from "@mxenabled/mxui";
14
14
  import { u as de } from "./useDimensions-CeDR9V8N.mjs";
15
- import { G as me } from "./GlobalAccountFilter-CbwySv6c.mjs";
15
+ import { G as me } from "./GlobalAccountFilter-B73Pw1hJ.mjs";
16
16
  import { L as ce } from "./Loader-D3rjKx72.mjs";
17
- import { g as pe, b as ue, u as ge, a as he, W as fe } from "./hooks-zu7yblbi.mjs";
17
+ import { g as pe, b as ue, u as ge, a as he, W as fe } from "./hooks-BxkfR-Ff.mjs";
18
18
  import { u as te } from "./useScreenSize-B6JyS_Lj.mjs";
19
19
  import { addMonths as J } from "date-fns/addMonths";
20
20
  import { addDays as be } from "date-fns/addDays";
@@ -10,15 +10,15 @@ import E from "@mui/material/List";
10
10
  import B from "@mui/material/ListSubheader";
11
11
  import W from "@mui/system/Stack";
12
12
  import { useTheme as M1, alpha as y1 } from "@mui/material/styles";
13
- import { u as R, A as x1 } from "../AccountDetailsHeader-DCTCLB3K.mjs";
14
- import { L as w1 } from "../LineChart-DVn1AamK.mjs";
13
+ import { u as R, A as x1 } from "../AccountDetailsHeader-DkBNsLsI.mjs";
14
+ import { L as w1 } from "../LineChart-B1qbKR8q.mjs";
15
15
  import { g as b1, a as S1, b as R1 } from "../SpendingData-Bz1bCWAs.mjs";
16
- import { m as T1, u as y, d as k, g as I, h as m1, b as G, a as E1 } from "../hooks-zu7yblbi.mjs";
16
+ import { l as T1, u as y, d as k, g as I, h as m1, b as G, a as E1 } from "../hooks-BxkfR-Ff.mjs";
17
17
  import { A as N, g as L, N as p1 } from "../Account-BiB1F8lL.mjs";
18
18
  import { I as _1, P as L1, S as f1 } from "../Account-DuOz1a27.mjs";
19
19
  import { a as D1, b as k1 } from "../AccountFields-DeZSQOuM.mjs";
20
20
  import { g as i2 } from "../AccountFields-DeZSQOuM.mjs";
21
- import { A as U } from "../AccountListItem-CZk-bo6j.mjs";
21
+ import { A as U } from "../AccountListItem-BIVhda6q.mjs";
22
22
  import a1 from "@mui/material/Tab";
23
23
  import I1 from "@mui/material/Tabs";
24
24
  import Z1 from "@mui/material/Switch";
@@ -32,7 +32,7 @@ import { D as t1 } from "../Drawer-DV4NTsFg.mjs";
32
32
  import Y from "@mui/material/ListItemAvatar";
33
33
  import N1 from "@mui/material/styles/useTheme";
34
34
  import { Error as g1, CheckCircle as O1, Language as F1 } from "@mxenabled/mx-icons";
35
- import { C as z } from "../ConnectDrawer-CVt-8rPJ.mjs";
35
+ import { C as z } from "../ConnectDrawer-CioFo6Wy.mjs";
36
36
  import { fromUnixTime as P1 } from "date-fns/fromUnixTime";
37
37
  import { isToday as W1 } from "date-fns/isToday";
38
38
  import { isYesterday as B1 } from "date-fns/isYesterday";
@@ -49,24 +49,24 @@ import X1 from "@mui/material/Select";
49
49
  import J1 from "@mui/material/TextField";
50
50
  import { F as X } from "../Accounts-CseLC3lL.mjs";
51
51
  import { M as a2 } from "../Accounts-CseLC3lL.mjs";
52
- import { C as q1 } from "../CurrencyInput-bcKNJ22c.mjs";
52
+ import { C as q1 } from "../CurrencyInput-DuMktPu3.mjs";
53
53
  import Q1 from "@mui/material/Alert";
54
54
  import e3 from "@mui/material/AlertTitle";
55
55
  import t3 from "@mui/material/Link";
56
56
  import n3 from "@mui/material/Paper";
57
57
  import { subDays as o3, startOfToday as i3, endOfToday as c3 } from "date-fns";
58
- import { T as a3 } from "../TransactionList-CXiLG0Ur.mjs";
59
- import { T as s3 } from "../TransactionDetails-BEKQKH03.mjs";
58
+ import { T as a3 } from "../StatusIndicator-wyBzyHJc.mjs";
59
+ import { T as s3 } from "../TransactionDetails-CgC3Qu7o.mjs";
60
60
  import { T as r1 } from "../TabContentContainer-j01JYR_7.mjs";
61
61
  import { f as d1 } from "../NumberFormatting-QCaNwbjv.mjs";
62
- import { C as l3 } from "../ConnectionsDrawer-c7HaKeRj.mjs";
62
+ import { C as l3 } from "../ConnectionsDrawer-DqhSaMrJ.mjs";
63
63
  import { u as H1 } from "../useScreenSize-B6JyS_Lj.mjs";
64
- import { u as n1 } from "../useWidgetLoadTimer-Bmgv_UeH.mjs";
64
+ import { u as n1 } from "../useWidgetLoadTimer-DgN1bTyu.mjs";
65
65
  import { L as o1 } from "../Loader-D3rjKx72.mjs";
66
- import { W as r3 } from "../WidgetContainer-DSs6lJbr.mjs";
67
- import { M as A1 } from "../MiniWidgetContainer-DhEx4qKi.mjs";
66
+ import { W as r3 } from "../WidgetContainer-BSCjBupR.mjs";
67
+ import { M as A1 } from "../MiniWidgetContainer-Cu72GNsE.mjs";
68
68
  import { A as l2 } from "../AccountApi-ChQr5PAZ.mjs";
69
- import { A as d2 } from "../AccountStore-Cw54qb7Y.mjs";
69
+ import { A as d2 } from "../AccountStore-Brc0MNSF.mjs";
70
70
  const d3 = (t, o) => {
71
71
  const n = _1.includes(o) ? b1(t) : [], i = L1.includes(o) ? S1(t) : [], c = f1.includes(o) ? R1(t) : [];
72
72
  return [n, i, c].filter((l) => l.length > 0);
@@ -2,14 +2,14 @@ import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
2
  import d from "react";
3
3
  import { observer as y } from "mobx-react-lite";
4
4
  import { SurveyQuestionType as S } from "posthog-js";
5
- import A from "@mui/material/Alert";
6
- import B from "@mui/material/Button";
5
+ import j from "@mui/material/Alert";
6
+ import A from "@mui/material/Button";
7
7
  import a from "@mui/material/Stack";
8
8
  import _ from "@mui/material/styles/useTheme";
9
- import { Text as u, TextField as L } from "@mxenabled/mxui";
10
- import { L as W } from "../Loader-D3rjKx72.mjs";
11
- import { M as j } from "../MiniWidgetContainer-DhEx4qKi.mjs";
12
- import { k as f, u as b, g as q, b as E } from "../hooks-zu7yblbi.mjs";
9
+ import { Text as u, TextField as B } from "@mxenabled/mxui";
10
+ import { L } from "../Loader-D3rjKx72.mjs";
11
+ import { M as W } from "../MiniWidgetContainer-Cu72GNsE.mjs";
12
+ import { j as f, u as b, g as q, b as E } from "../hooks-BxkfR-Ff.mjs";
13
13
  import Q from "@mui/material/ToggleButton";
14
14
  import G from "@mui/material/ToggleButtonGroup";
15
15
  const O = () => {
@@ -70,7 +70,7 @@ const O = () => {
70
70
  }, X = y(O), z = () => {
71
71
  const { response: s, setResponse: o } = f(), { analytics: i } = b();
72
72
  return /* @__PURE__ */ e(
73
- L,
73
+ B,
74
74
  {
75
75
  label: i.feedback,
76
76
  multiline: !0,
@@ -112,7 +112,7 @@ const O = () => {
112
112
  s("survey sent", k), g(), C(!0);
113
113
  };
114
114
  return T ? !r && !x ? null : /* @__PURE__ */ l(
115
- j,
115
+ W,
116
116
  {
117
117
  closeLabel: M.close_aria,
118
118
  onClose: $,
@@ -141,7 +141,7 @@ const O = () => {
141
141
  r.type === S.Open && /* @__PURE__ */ e(H, {})
142
142
  ] }),
143
143
  /* @__PURE__ */ e(a, { sx: { px: 24, py: 16 }, children: /* @__PURE__ */ e(
144
- B,
144
+ A,
145
145
  {
146
146
  disabled: !t && !n,
147
147
  onClick: t ? R : F,
@@ -160,11 +160,11 @@ const O = () => {
160
160
  ] }),
161
161
  x && /* @__PURE__ */ l(d.Fragment, { children: [
162
162
  /* @__PURE__ */ e(a, { sx: { px: 24, py: 24 }, children: /* @__PURE__ */ e(u, { bold: !0, truncate: !1, children: c.thank_you }) }),
163
- /* @__PURE__ */ e(a, { sx: { px: 24, pb: 24 }, children: /* @__PURE__ */ e(A, { severity: "success", variant: "filled", children: c.feedback_sent_successfully }) })
163
+ /* @__PURE__ */ e(a, { sx: { px: 24, pb: 24 }, children: /* @__PURE__ */ e(j, { severity: "success", variant: "filled", children: c.feedback_sent_successfully }) })
164
164
  ] })
165
165
  ]
166
166
  }
167
- ) : /* @__PURE__ */ e(W, {});
167
+ ) : /* @__PURE__ */ e(L, {});
168
168
  }, ie = y(I);
169
169
  export {
170
170
  ie as SurveyMiniWidget
@@ -7,4 +7,6 @@ export declare class BudgetsApi {
7
7
  getBudgets: () => Promise<any>;
8
8
  updateBudget: (budget: Budget) => Promise<any>;
9
9
  addMerchantBudget: (merchantGuid: string, amount: number) => Promise<any>;
10
+ updateMerchantBudget: (merchantBudgetGuid: string, amount: number) => Promise<any>;
11
+ deleteMerchantBudget: (merchantBudgetGuid: string) => Promise<any>;
10
12
  }
@@ -0,0 +1,17 @@
1
+ import { default as React } from 'react';
2
+ import { Transaction } from '../../common';
3
+ import { MerchantBudget } from '../../common/types/Budget';
4
+ import { CurrencyDialogAction } from '../../transactions/components/shared/transactiondetails/actions/AddMerchantBudgetAction';
5
+ interface MerchantBudgetDetailsDrawerProps {
6
+ merchantBudget: MerchantBudget;
7
+ transaction: Transaction;
8
+ onClose: () => void;
9
+ isOpen: boolean;
10
+ setCurrencyDialogAction: (action: CurrencyDialogAction) => void;
11
+ renderingToast?: () => React.ReactNode;
12
+ }
13
+ export declare const MerchantBudgetDetailsDrawer: ({ merchantBudget, transaction, onClose, isOpen, setCurrencyDialogAction, renderingToast, }: MerchantBudgetDetailsDrawerProps) => import("react/jsx-runtime").JSX.Element;
14
+ declare const _default: (({ merchantBudget, transaction, onClose, isOpen, setCurrencyDialogAction, renderingToast, }: MerchantBudgetDetailsDrawerProps) => import("react/jsx-runtime").JSX.Element) & {
15
+ displayName: string;
16
+ };
17
+ export default _default;
@@ -0,0 +1,13 @@
1
+ import { default as React } from 'react';
2
+ interface BudgetDetailsTopAndMiddleSectionProps {
3
+ startDate: number;
4
+ onViewHistory?: () => void;
5
+ totalTransaction: number;
6
+ amount: number;
7
+ spentPercentage: number;
8
+ remainingAmount: number;
9
+ iconColor?: string;
10
+ icon: React.ReactNode;
11
+ }
12
+ export declare const BudgetDetailsTopSection: ({ startDate, onViewHistory, totalTransaction, amount, spentPercentage, remainingAmount, iconColor, icon, }: BudgetDetailsTopAndMiddleSectionProps) => import("react/jsx-runtime").JSX.Element;
13
+ export {};