@mx-cartographer/experiences 7.0.32 → 7.0.34-alpha.sms1

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 (100) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/{Account-CK-DrCEa.mjs → Account-DeMa6XJz.mjs} +1 -1
  3. package/dist/{AccountDetailsContent-BGXM8acm.mjs → AccountDetailsContent-BwTOak3W.mjs} +8 -8
  4. package/dist/{AccountDetailsHeader-Dwk01nsY.mjs → AccountDetailsHeader-BCW4d-j4.mjs} +5 -5
  5. package/dist/{AccountFields-5i77eFJ6.mjs → AccountFields-B-igjxt-.mjs} +2 -2
  6. package/dist/{AccountListItem-BiST9IgK.mjs → AccountListItem-DAF9c7_x.mjs} +3 -3
  7. package/dist/{AccountStore-DiGbJBUT.mjs → AccountStore-Bzy6rKGo.mjs} +26 -26
  8. package/dist/{Accounts-BBkQjUmS.mjs → Accounts-DNMSlq9A.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-D5jO0box.mjs → BudgetUtil-Iw9hUxhI.mjs} +1 -1
  12. package/dist/{CategorySelectorDrawer-joMax4Fb.mjs → CategorySelectorDrawer-CMorcKFW.mjs} +1 -1
  13. package/dist/{CategoryStore-BOyzQjQp.mjs → CategoryStore-BCcpI3oJ.mjs} +4 -4
  14. package/dist/{ConnectDrawer-D86nRDxQ.mjs → ConnectDrawer-jeSmGg38.mjs} +1 -1
  15. package/dist/{ConnectionsDrawer-BkNr5Up0.mjs → ConnectionsDrawer-hdOVHICr.mjs} +2 -2
  16. package/dist/{CurrencyInput-BkflFU_-.mjs → CurrencyInput-C0wTgNV6.mjs} +1 -1
  17. package/dist/{DebtsStore-qrqY9Abz.mjs → DebtsStore-C2OfwE0t.mjs} +1 -1
  18. package/dist/{ExportCsvAction-DRfdZis1.mjs → ExportCsvAction-BlKpQTTL.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-BQRcowCN.mjs → GoalStore-D2A2Lqd5.mjs} +6 -6
  22. package/dist/{Help-B3dFeYi2.mjs → Help-DwKXfnqC.mjs} +1 -1
  23. package/dist/{LineChart-Dyps2sOy.mjs → LineChart-DNC5UEt4.mjs} +1 -1
  24. package/dist/{ListItemAction-BgKx_n6d.mjs → ListItemAction-Dt9A2GQk.mjs} +1 -1
  25. package/dist/{ManageIncome-Byw3lVtR.mjs → ManageIncome-C0CbczlY.mjs} +4 -4
  26. package/dist/MerchantStore-DrFvsUyy.mjs +37 -0
  27. package/dist/{MicroWidgetContainer-DPDsZIiS.mjs → MicroWidgetContainer-DVRe-MJs.mjs} +1 -1
  28. package/dist/{MiniWidgetContainer-BzW7V_04.mjs → MiniWidgetContainer-C_N1u9ad.mjs} +1 -1
  29. package/dist/{NetWorthStore-DWG9Mkuu.mjs → NetWorthStore-CD4WWdXC.mjs} +2 -2
  30. package/dist/{NotificationSettings-B9wNyWEL.mjs → NotificationSettings-CtbJFbrv.mjs} +3 -3
  31. package/dist/{NotificationStore-DHtSGySy.mjs → NotificationStore-C6PH6MKm.mjs} +8 -4
  32. package/dist/{OriginalBalanceAction-B--pIAF0.mjs → OriginalBalanceAction-CqQ5j4OW.mjs} +3 -3
  33. package/dist/{RecurringSettings-ClbdFNWX.mjs → RecurringSettings-DR9KuVEN.mjs} +3 -3
  34. package/dist/{RecurringTransactionsStore-D62XJtdL.mjs → RecurringTransactionsStore-DeLXfuC4.mjs} +20 -16
  35. package/dist/{SettingsStore-B0kRTFjD.mjs → SettingsStore-Dc34Tzx8.mjs} +33 -29
  36. package/dist/{TransactionApi-DbbcjI2L.mjs → TransactionApi-B3Tksf7L.mjs} +29 -29
  37. package/dist/{TransactionDetails-C4PW8SRL.mjs → TransactionDetails-BafSm7_T.mjs} +5 -5
  38. package/dist/{TransactionStore-CZOvxcSw.mjs → TransactionStore-C4LPHwzx.mjs} +29 -25
  39. package/dist/{TrendsStore-pvzHAX6B.mjs → TrendsStore-BM-JjAs5.mjs} +1 -1
  40. package/dist/{User-D-O9EHMb.mjs → User-BYkzrOdM.mjs} +1 -1
  41. package/dist/{ViewMoreMicroCard-DFAY0tA8.mjs → ViewMoreMicroCard-CXxtKHUM.mjs} +247 -244
  42. package/dist/{WidgetContainer-CBpf3h1Y.mjs → WidgetContainer-CPBhSP3k.mjs} +2 -2
  43. package/dist/accounts/api/AccountApi.d.ts +2 -2
  44. package/dist/accounts/index.es.js +13 -13
  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 +252 -246
  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-zyHeWfQo.mjs → exportTransactionsToCSV-21c0EV3t.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-BhSK6dal.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 +10 -10
  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 +11 -11
  96. package/dist/{useCombineEvents-DaDBSR_1.mjs → useCombineEvents-BUDIR1ba.mjs} +29 -29
  97. package/dist/{useInsightsEnabled-fGr6xrSj.mjs → useInsightsEnabled-DqM4sFO1.mjs} +1 -1
  98. package/package.json +1 -1
  99. package/dist/MerchantStore-DVH-QOf0.mjs +0 -37
  100. package/dist/hooks-DlI63qSB.mjs +0 -71
@@ -14,20 +14,20 @@ import { Text as f, CategoryIcon as ht, CategoryIconVariants as ft } from "@mxen
14
14
  import { f as A } from "../NumberFormatting-CtWHhyBX.mjs";
15
15
  import yt from "@mui/material/Button";
16
16
  import { useTheme as it } from "@mui/material";
17
- import { u as w, a as R, l as z, c as rt, m as st, g as Ct, f as _t } from "../hooks-DlI63qSB.mjs";
17
+ import { u as w, a as R, l as z, c as rt, m as st, g as Ct, f as _t } from "../hooks-BhSK6dal.mjs";
18
18
  import { u as ct } from "../useScreenSize-B6JyS_Lj.mjs";
19
19
  import { D as bt } from "../Donut-1UMNcG67.mjs";
20
20
  import { L as F } from "../Loader-DUaFpDGv.mjs";
21
- import { M as St } from "../MiniWidgetContainer-BzW7V_04.mjs";
21
+ import { M as St } from "../MiniWidgetContainer-C_N1u9ad.mjs";
22
22
  import { startOfToday as U } from "date-fns/startOfToday";
23
- import { T as Tt, a as Mt } from "../TransactionDetails-C4PW8SRL.mjs";
23
+ import { T as Tt, a as Mt } from "../TransactionDetails-BafSm7_T.mjs";
24
24
  import Dt from "@mui/material/Collapse";
25
25
  import B from "@mui/material/Divider";
26
26
  import q from "@mui/material/List";
27
27
  import J from "@mui/material/ListItem";
28
28
  import xt from "@mui/material/ListItemButton";
29
29
  import { D as Q } from "../Drawer-kEE73B87.mjs";
30
- import { A as Z, W as wt } from "../WidgetContainer-CBpf3h1Y.mjs";
30
+ import { A as Z, W as wt } from "../WidgetContainer-CPBhSP3k.mjs";
31
31
  const j = 5, vt = (n, l, r) => r.reduce((i, c) => {
32
32
  if (c.total > 0) {
33
33
  const a = n.find((s) => s.guid === c.category_guid);
@@ -1,7 +1,8 @@
1
- import { Fetch, Tag, Tagging, Transaction, TransactionRule } from '../../common';
1
+ import { Fetch } from '../../common';
2
+ import { GlobalErrorHandler, Tag, Tagging, Transaction, TransactionRule } from '../../common/types';
2
3
  export declare class TransactionApi {
3
4
  fetchInstance: Fetch;
4
- constructor(endpoint: string, token: string);
5
+ constructor(endpoint: string, token: string, onError?: GlobalErrorHandler);
5
6
  addTag: (tag: Tag) => Promise<any>;
6
7
  addTagging: (tagging: Tagging) => Promise<any>;
7
8
  addTransaction: (transaction: Transaction) => Promise<any>;
@@ -1,12 +1,12 @@
1
- import { T as Ca } from "../TransactionApi-DbbcjI2L.mjs";
2
- import { u as P, C as He, D as Be, M as Pe, c as $e, T as Ve, a as We } from "../TransactionDetails-C4PW8SRL.mjs";
3
- import { B as ba, d as Ta, b as Aa } from "../TransactionDetails-C4PW8SRL.mjs";
4
- import { T as M } from "../User-D-O9EHMb.mjs";
5
- import { O as xa } from "../User-D-O9EHMb.mjs";
6
- import { S as ee, D as Ge } from "../TransactionStore-CZOvxcSw.mjs";
7
- import { T as Ia } from "../TransactionStore-CZOvxcSw.mjs";
8
- import { e as Ue } from "../exportTransactionsToCSV-zyHeWfQo.mjs";
9
- import { E as Da } from "../ExportCsvAction-DRfdZis1.mjs";
1
+ import { T as Ca } from "../TransactionApi-B3Tksf7L.mjs";
2
+ import { u as P, C as He, D as Be, M as Pe, c as $e, T as Ve, a as We } from "../TransactionDetails-BafSm7_T.mjs";
3
+ import { B as ba, d as Ta, b as Aa } from "../TransactionDetails-BafSm7_T.mjs";
4
+ import { T as M } from "../User-BYkzrOdM.mjs";
5
+ import { O as xa } from "../User-BYkzrOdM.mjs";
6
+ import { S as ee, D as Ge } from "../TransactionStore-C4LPHwzx.mjs";
7
+ import { T as Ia } from "../TransactionStore-C4LPHwzx.mjs";
8
+ import { e as Ue } from "../exportTransactionsToCSV-21c0EV3t.mjs";
9
+ import { E as Da } from "../ExportCsvAction-BlKpQTTL.mjs";
10
10
  import { jsxs as _, jsx as e } from "react/jsx-runtime";
11
11
  import m from "react";
12
12
  import { observer as S } from "mobx-react-lite";
@@ -15,7 +15,7 @@ import { DataGridPro as ze } from "@mui/x-data-grid-pro";
15
15
  import A from "@mui/material/Box";
16
16
  import { useTheme as Ke } from "@mui/material/styles";
17
17
  import { Text as C, Icon as B, MerchantLogo as qe, TextField as te, P as je } from "@mxenabled/mxui";
18
- import { g as $, u as x, a as K, c as re, l as Xe, m as Ye, f as Je, o as Qe } from "../hooks-DlI63qSB.mjs";
18
+ import { g as $, u as x, a as K, c as re, l as Xe, m as Ye, f as Je, o as Qe } from "../hooks-BhSK6dal.mjs";
19
19
  import { fromUnixTime as Ze } from "date-fns/fromUnixTime";
20
20
  import { f as et, D as tt, a as se } from "../Dialog-CWW597AF.mjs";
21
21
  import D from "@mui/material/Stack";
@@ -26,15 +26,15 @@ import { getUnixTime as nt } from "date-fns/getUnixTime";
26
26
  import { startOfMonth as ot } from "date-fns/startOfMonth";
27
27
  import { startOfToday as z } from "date-fns/startOfToday";
28
28
  import rt from "@mui/material/styles/useTheme";
29
- import { j as st } from "../ConnectDrawer-D86nRDxQ.mjs";
29
+ import { j as st } from "../ConnectDrawer-jeSmGg38.mjs";
30
30
  import it from "@mui/material/Divider";
31
31
  import ct from "@mui/material/MenuItem";
32
32
  import lt from "@mui/material/RadioGroup";
33
33
  import { ExpandMore as dt } from "@mxenabled/mx-icons";
34
- import { C as ut } from "../CurrencyInput-BkflFU_-.mjs";
35
- import { a as mt, u as _t } from "../CategorySelectorDrawer-joMax4Fb.mjs";
34
+ import { C as ut } from "../CurrencyInput-C0wTgNV6.mjs";
35
+ import { a as mt, u as _t } from "../CategorySelectorDrawer-CMorcKFW.mjs";
36
36
  import { b as ae } from "../Localization-2MODESHW.mjs";
37
- import { A as T, W as pt } from "../WidgetContainer-CBpf3h1Y.mjs";
37
+ import { A as T, W as pt } from "../WidgetContainer-CPBhSP3k.mjs";
38
38
  import { u as gt } from "../useScreenSize-B6JyS_Lj.mjs";
39
39
  import { S as ht } from "../SearchBox-B2_zLv8-.mjs";
40
40
  import { D as ne } from "../Drawer-kEE73B87.mjs";
@@ -7,12 +7,12 @@ import _ from "@mui/material/Stack";
7
7
  import pe from "@mui/material/Button";
8
8
  import { addSeconds as Ie } from "date-fns/addSeconds";
9
9
  import { differenceInCalendarMonths as Ce } from "date-fns/differenceInCalendarMonths";
10
- import { a as Ke, g as $e, S as je, L as Ee } from "../TrendsStore-pvzHAX6B.mjs";
11
- import { T as to } from "../TrendsStore-pvzHAX6B.mjs";
10
+ import { a as Ke, g as $e, S as je, L as Ee } from "../TrendsStore-BM-JjAs5.mjs";
11
+ import { T as to } from "../TrendsStore-BM-JjAs5.mjs";
12
12
  import { i as Ye, c as Ue, d as Xe, e as Ze, f as Qe, h as qe, b as Le, g as xe, j as _e } from "../SpendingData-D5vsfYKo.mjs";
13
13
  import Je from "@mui/material/ToggleButton";
14
14
  import et from "@mui/material/ToggleButtonGroup";
15
- import { u as R, l as F, f as H, a as P, g as re, c as ae, v as q, e as ve, p as tt, m as nt } from "../hooks-DlI63qSB.mjs";
15
+ import { u as R, l as F, f as H, a as P, g as re, c as ae, v as q, e as ve, p as tt, m as nt } from "../hooks-BhSK6dal.mjs";
16
16
  import { u as K } from "../useScreenSize-B6JyS_Lj.mjs";
17
17
  import { f as Z, D as B } from "../Dialog-CWW597AF.mjs";
18
18
  import { DataGridPro as ot } from "@mui/x-data-grid-pro";
@@ -20,18 +20,18 @@ import { C as st } from "../CurrencyText-YUhH2caW.mjs";
20
20
  import { c as Me } from "../Category-CevNQ03n.mjs";
21
21
  import { b as rt } from "../Localization-2MODESHW.mjs";
22
22
  import { H as be } from "../HeaderCell-DjuifqHJ.mjs";
23
- import { T as A, b as at } from "../ViewMoreMicroCard-DFAY0tA8.mjs";
24
- import { A as y, W as Ae } from "../WidgetContainer-CBpf3h1Y.mjs";
25
- import { a as Re, T as ke } from "../TransactionDetails-C4PW8SRL.mjs";
23
+ import { T as A, b as at } from "../ViewMoreMicroCard-CXxtKHUM.mjs";
24
+ import { A as y, W as Ae } from "../WidgetContainer-CPBhSP3k.mjs";
25
+ import { a as Re, T as ke } from "../TransactionDetails-BafSm7_T.mjs";
26
26
  import { D as fe } from "../Drawer-kEE73B87.mjs";
27
27
  import { L as Q } from "../Loader-DUaFpDGv.mjs";
28
28
  import { useTheme as He } from "@mui/material/styles";
29
- import { L as ye } from "../LineChart-Dyps2sOy.mjs";
30
- import { M as it } from "../MiniWidgetContainer-BzW7V_04.mjs";
29
+ import { L as ye } from "../LineChart-DNC5UEt4.mjs";
30
+ import { M as it } from "../MiniWidgetContainer-C_N1u9ad.mjs";
31
31
  import { subMonths as ct } from "date-fns";
32
32
  import { TrendingUp as lt, TrendingDown as dt, MultilineChart as ht, ExpandLess as ut, ExpandMore as mt } from "@mxenabled/mx-icons";
33
33
  import { a as gt, f as U } from "../NumberFormatting-CtWHhyBX.mjs";
34
- import { M as pt } from "../MicroWidgetContainer-DPDsZIiS.mjs";
34
+ import { M as pt } from "../MicroWidgetContainer-DVRe-MJs.mjs";
35
35
  import Ct from "@mui/material/Collapse";
36
36
  import ft from "@mui/material/List";
37
37
  import Tt from "@mui/material/ListItem";
@@ -43,8 +43,8 @@ import St from "@mui/material/Divider";
43
43
  import { useTheme as wt, Stack as Dt } from "@mui/material";
44
44
  import It from "@mui/material/Paper";
45
45
  import { b as Et } from "../CategoryUtil-BR3H5i6n.mjs";
46
- import { E as Lt } from "../ExportCsvAction-DRfdZis1.mjs";
47
- import { u as xt } from "../useInsightsEnabled-fGr6xrSj.mjs";
46
+ import { E as Lt } from "../ExportCsvAction-BlKpQTTL.mjs";
47
+ import { u as xt } from "../useInsightsEnabled-DqM4sFO1.mjs";
48
48
  import { E as vt } from "../EmptyState-C0lr9E5T.mjs";
49
49
  const We = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
50
50
  et,
@@ -1,33 +1,33 @@
1
1
  import { getUnixTime as l } from "date-fns/getUnixTime";
2
2
  import A from "bowser";
3
- import { F as u, A as r } from "./Fetch-CkFKy79O.mjs";
3
+ import { F as u, A as r } from "./Fetch-87LIQbEA.mjs";
4
4
  import y from "react";
5
- const d = async (o, t, n = "1.0.0", a = "Experiences") => {
6
- const i = new _(o, t), { analytics_session: s } = await i.initializeAnalyticsSession(
5
+ const g = async (o, t, n = "1.0.0", s = "Experiences") => {
6
+ const a = new _(o, t), { analytics_session: i } = await a.initializeAnalyticsSession(
7
7
  n,
8
- a
8
+ s
9
9
  ), e = window.location.hostname;
10
10
  return {
11
- sendAnalyticEvent: async (c) => await i.sendAnalyticEvent({
11
+ sendAnalyticEvent: async (c) => await a.sendAnalyticEvent({
12
12
  analytics_event: {
13
13
  ...c,
14
14
  app_version: "widgets-v2",
15
15
  created_at: l(/* @__PURE__ */ new Date()).toString(),
16
16
  host: e,
17
17
  name: c?.label || "",
18
- session_id: s.guid,
18
+ session_id: i.guid,
19
19
  user_agent: navigator.userAgent || "",
20
20
  version: 2
21
21
  }
22
22
  }),
23
- sendAnalyticsPageview: async (c) => await i.sendAnalyticsPageview({
23
+ sendAnalyticsPageview: async (c) => await a.sendAnalyticsPageview({
24
24
  analytics_pageview: {
25
25
  ...c,
26
26
  app_version: "widgets-v2",
27
27
  created_at: l(/* @__PURE__ */ new Date()).toString(),
28
28
  host: e,
29
29
  name: c.name,
30
- session_id: s.guid,
30
+ session_id: i.guid,
31
31
  user_agent: navigator.userAgent || ""
32
32
  }
33
33
  })
@@ -35,24 +35,24 @@ const d = async (o, t, n = "1.0.0", a = "Experiences") => {
35
35
  };
36
36
  class _ {
37
37
  fetchInstance;
38
- constructor(t, n) {
39
- this.fetchInstance = new u(t, n);
38
+ constructor(t, n, s) {
39
+ this.fetchInstance = new u(t, n, void 0, s);
40
40
  }
41
41
  initializeAnalyticsSession = async (t, n) => {
42
- const a = A.getParser(window.navigator.userAgent), { analytics_session: i } = await this.fetchInstance.post(r.ANALYTICS_SESSION, {
43
- browser_name: a.getBrowserName() || "Unknown",
44
- browser_version: a.getBrowserVersion() || "0.0.0",
42
+ const s = A.getParser(window.navigator.userAgent), { analytics_session: a } = await this.fetchInstance.post(r.ANALYTICS_SESSION, {
43
+ browser_name: s.getBrowserName() || "Unknown",
44
+ browser_version: s.getBrowserVersion() || "0.0.0",
45
45
  is_first_visit: !1,
46
46
  product_name: "Individual Widget",
47
47
  product_version: t
48
48
  });
49
- return i ? (this.fetchInstance.post(r.ANALYTICS_FEATURE_VISITS, {
49
+ return a ? (this.fetchInstance.post(r.ANALYTICS_FEATURE_VISITS, {
50
50
  feature_visit: {
51
- analytics_session_guid: i.guid,
51
+ analytics_session_guid: a.guid,
52
52
  feature_name: n || "Experiences",
53
- is_first_visit: i.is_first_visit
53
+ is_first_visit: a.is_first_visit
54
54
  }
55
- }), { analytics_session: i }) : { analytics_session: null };
55
+ }), { analytics_session: a }) : { analytics_session: null };
56
56
  };
57
57
  sendAnalyticEvent = async (t) => this.fetchInstance.post(r.ANALYTICS_EVENTS, t).catch((n) => {
58
58
  throw n;
@@ -63,30 +63,30 @@ class _ {
63
63
  }
64
64
  class h {
65
65
  fetchInstance;
66
- constructor(t, n) {
67
- this.fetchInstance = new u(t, n);
66
+ constructor(t, n, s) {
67
+ this.fetchInstance = new u(t, n, void 0, s);
68
68
  }
69
- getGlobalCopy = async (t, n) => this.fetchInstance.post(`${r.LOCALIZED_CONTENT}/${t}`, { translation_key: n }).then((a) => a);
69
+ getGlobalCopy = async (t, n) => this.fetchInstance.post(`${r.LOCALIZED_CONTENT}/${t}`, { translation_key: n }).then((s) => s);
70
70
  }
71
71
  const p = (o, t) => {
72
- const { session: n } = t, a = Object.values(t).reduce((s, e) => n && e?.onAnalyticEvent && typeof e?.onAnalyticEvent == "function" ? [...s, e.onAnalyticEvent] : s, []), i = [...o, ...a];
73
- return y.useMemo(() => (s) => {
74
- i.forEach((e) => {
75
- n ? e(s, n) : e(s);
72
+ const { session: n } = t, s = Object.values(t).reduce((i, e) => n && e?.onAnalyticEvent && typeof e?.onAnalyticEvent == "function" ? [...i, e.onAnalyticEvent] : i, []), a = [...o, ...s];
73
+ return y.useMemo(() => (i) => {
74
+ a.forEach((e) => {
75
+ n ? e(i, n) : e(i);
76
76
  });
77
77
  }, [o, n]);
78
78
  }, E = (o, t) => {
79
- const { session: n } = t, a = Object.values(t).reduce((s, e) => n && e?.onAnalyticPageView && typeof e?.onAnalyticPageView == "function" ? [...s, e.onAnalyticPageView] : s, []), i = [...o, ...a];
80
- return y.useMemo(() => (s) => {
81
- i.forEach((e) => {
82
- n ? e(s, n) : e(s);
79
+ const { session: n } = t, s = Object.values(t).reduce((i, e) => n && e?.onAnalyticPageView && typeof e?.onAnalyticPageView == "function" ? [...i, e.onAnalyticPageView] : i, []), a = [...o, ...s];
80
+ return y.useMemo(() => (i) => {
81
+ a.forEach((e) => {
82
+ n ? e(i, n) : e(i);
83
83
  });
84
84
  }, [o, n]);
85
85
  };
86
86
  export {
87
87
  _ as A,
88
88
  h as G,
89
- d as a,
89
+ g as a,
90
90
  E as b,
91
91
  p as u
92
92
  };
@@ -1,5 +1,5 @@
1
1
  import { useState as n, useEffect as a } from "react";
2
- import { e as o } from "./hooks-DlI63qSB.mjs";
2
+ import { e as o } from "./hooks-BhSK6dal.mjs";
3
3
  const f = () => {
4
4
  const { isInitialized: e, appDataStore: t } = o(), [s, i] = n(!1);
5
5
  return a(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "7.0.32",
3
+ "version": "7.0.34-alpha.sms1",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",
@@ -1,37 +0,0 @@
1
- import { makeAutoObservable as m, runInAction as s } from "mobx";
2
- import { F as p, A as c } from "./Fetch-CkFKy79O.mjs";
3
- class h {
4
- fetchInstance;
5
- constructor(t, n) {
6
- this.fetchInstance = new p(t, n);
7
- }
8
- getMerchants = async (t = [], n = [], r = 1, o = 25) => {
9
- let a = c.MERCHANTS;
10
- return a += `?page=${r}&per_page=${o}`, t.length && t.forEach((e) => a += `&fuzzy_name[]=${e}`), n.length && n.forEach((e) => a += `&guid[]=${e}`), this.fetchInstance.get(a).then((e) => e.merchants);
11
- };
12
- getMerchantByGuid = async (t) => this.fetchInstance.get(`${c.MERCHANTS}/${t}`).then((n) => n.merchant);
13
- }
14
- class l {
15
- globalStore;
16
- api = new h("/", "");
17
- merchant = null;
18
- merchants = [];
19
- isLoading = !1;
20
- constructor(t) {
21
- this.globalStore = t, this.api = new h(t.endpoint, t.sessionToken), m(this);
22
- }
23
- loadMerchants = async (t = "") => {
24
- this.isLoading = !0;
25
- const n = await this.api.getMerchants([t]);
26
- s(() => {
27
- this.merchants = n, this.isLoading = !1;
28
- });
29
- };
30
- loadMerchantByGuid = async (t) => {
31
- const n = await this.api.getMerchantByGuid(t);
32
- s(() => this.merchant = n);
33
- };
34
- }
35
- export {
36
- l as M
37
- };
@@ -1,71 +0,0 @@
1
- import r from "react";
2
- import { jsx as n } from "react/jsx-runtime";
3
- const a = r.createContext(null), g = ({
4
- children: t,
5
- globalStore: e,
6
- onEvent: s,
7
- onPageView: l
8
- }) => /* @__PURE__ */ n(
9
- a.Provider,
10
- {
11
- value: {
12
- globalStore: e,
13
- onEvent: s,
14
- onPageView: l,
15
- children: t
16
- },
17
- children: t
18
- }
19
- ), S = r.createContext(null), b = ({ children: t, availableHeight: e, availableWidth: s }) => /* @__PURE__ */ n(
20
- S.Provider,
21
- {
22
- value: {
23
- availableHeight: e,
24
- availableWidth: s,
25
- children: t
26
- },
27
- children: t
28
- }
29
- ), o = (t = "useGlobalStore") => {
30
- const e = r.useContext(a);
31
- if (!e)
32
- throw new Error(`${t}() must be used within the GlobalDataContext`);
33
- return e;
34
- }, C = () => o("useAccountStore").globalStore.accountStore, d = () => o("useAppConfig").globalStore.appDataStore.appConfig, p = () => o("useAnalyticsStore").globalStore.analyticsStore, h = () => o("useBudgetsStore").globalStore.budgetsStore, x = () => o("useCashflowStore").globalStore.cashflowStore, f = () => o("useCategoryStore").globalStore.categoryStore, w = () => o("useConnectStore").globalStore.connectStore, G = () => o("useDebtsStore").globalStore.debtsStore, v = () => o("useFinstrongStore").globalStore.finstrongStore, y = () => o("useGlobalStore").globalStore, W = () => o("useGlobalUiStore").globalStore.globalUiStore, m = () => 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, E = () => o("useNetWorthStore").globalStore.netWorthStore, U = () => o("useNotificationStore").globalStore.notificationStore, H = () => o("useRecurringTransactionsStore").globalStore.recurringTransactionsStore, N = () => o("useSettingsStore").globalStore.settingsStore, B = () => o("useTransactionStore").globalStore.transactionStore, R = () => o("useTrendsStore").globalStore.trendsStore, V = () => o("useUserStore").globalStore.userStore, j = () => ({ onEvent: o().onEvent }), F = () => ({ onPageView: o().onPageView }), u = (t = "useWidgetContainerContext") => {
35
- const e = r.useContext(S);
36
- if (!e)
37
- throw new Error(`${t}() must be used within the WidgetContainerContext`);
38
- return e;
39
- }, M = () => u();
40
- export {
41
- g as A,
42
- S as B,
43
- a as G,
44
- b as W,
45
- W as a,
46
- T as b,
47
- C as c,
48
- w as d,
49
- y as e,
50
- j as f,
51
- B as g,
52
- h,
53
- H as i,
54
- p as j,
55
- P as k,
56
- f as l,
57
- d as m,
58
- U as n,
59
- V as o,
60
- M as p,
61
- E as q,
62
- N as r,
63
- D as s,
64
- x as t,
65
- m as u,
66
- R as v,
67
- v as w,
68
- G as x,
69
- A as y,
70
- F as z
71
- };