@mx-cartographer/experiences 8.2.0-alpha.bb0 → 8.2.0

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 (64) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/{Account-BTOmbrEK.mjs → Account-BaJmiJAG.mjs} +2 -2
  3. package/dist/{Account-DC2d-cjn.mjs → Account-BxHMlV9R.mjs} +1 -1
  4. package/dist/{AccountDetailsHeader-IDZ6GTT0.mjs → AccountDetailsHeader-CfdnKyJK.mjs} +17 -17
  5. package/dist/{AccountFields-BRAl-Hro.mjs → AccountFields-CAy0x_4i.mjs} +6 -6
  6. package/dist/{AccountListItem-B8koowMf.mjs → AccountListItem-BYyeeCf6.mjs} +5 -5
  7. package/dist/{AccountUtils-Bc-SndzX.mjs → AccountUtils-T5_Odvos.mjs} +1 -1
  8. package/dist/{Analytics-vgPYa2Zt.mjs → Analytics-CkYXKvco.mjs} +1 -1
  9. package/dist/{BudgetUtil-CGchXaek.mjs → BudgetUtil-Bg2AQJpQ.mjs} +3 -3
  10. package/dist/{CategorySelectorDrawer-nHEBR24E.mjs → CategorySelectorDrawer-Cu1ohxeM.mjs} +1 -1
  11. package/dist/{CurrencyDialog-C7r7JqVu.mjs → CurrencyDialog-d4dL7vA5.mjs} +1 -1
  12. package/dist/{CurrencyInput-BUd8mAcE.mjs → CurrencyInput-B59ugxPN.mjs} +2 -2
  13. package/dist/{CurrencyText-Dd3NxFYY.mjs → CurrencyText-CCbE6MmF.mjs} +1 -1
  14. package/dist/{DateFormats-BSktnUw6.mjs → DateFormats-HudZ3Bjs.mjs} +1 -1
  15. package/dist/{DateUtil-Bdm-ZxFw.mjs → DateUtil-Bhq59ZVg.mjs} +1 -1
  16. package/dist/{DebtUtils-DPn1cXKG.mjs → DebtUtils-DD3186U-.mjs} +1 -1
  17. package/dist/{EmbeddedCard-CAY_HJjE.mjs → EmbeddedCard-BNl3quCs.mjs} +4 -4
  18. package/dist/{ExportCsvAction-DzeJOb_g.mjs → ExportCsvAction-hDprC41l.mjs} +2 -2
  19. package/dist/GlobalCopyApi-wcnDUzMV.mjs +128 -0
  20. package/dist/{GoalsUtil-B-Z6fq_t.mjs → GoalsUtil-C9EnLWvC.mjs} +3 -3
  21. package/dist/{Help-HoxJgoVt.mjs → Help-BSQm9o29.mjs} +1 -1
  22. package/dist/{LineChart-DNynWPGz.mjs → LineChart-CejWS_rh.mjs} +1 -1
  23. package/dist/Localization-DnoVyBNK.mjs +38 -0
  24. package/dist/{ManageIncome-C_FjST7B.mjs → ManageIncome-DwylSiWs.mjs} +41 -41
  25. package/dist/{NetWorthUtils-CyVz9bUn.mjs → NetWorthUtils-DilGN1nW.mjs} +2 -2
  26. package/dist/{NotificationSettings-B8pH9TOv.mjs → NotificationSettings-CCg-Tml2.mjs} +6 -6
  27. package/dist/{NumberFormatting-Dnk0YyfZ.mjs → NumberFormatting--XMeeBfr.mjs} +2 -1
  28. package/dist/{OriginalBalanceAction-BEBuqeS1.mjs → OriginalBalanceAction-CvDx0K6k.mjs} +2 -2
  29. package/dist/{RecurringSettings-eQb1AS5x.mjs → RecurringSettings-CPXLW6AR.mjs} +2 -2
  30. package/dist/{RecurringTransactionsUtil-DbMNqEu_.mjs → RecurringTransactionsUtil-B3rLEx_g.mjs} +6 -6
  31. package/dist/{SpendingData-CktOElG1.mjs → SpendingData-PKlh8caU.mjs} +1 -1
  32. package/dist/{SpendingLegend-CM5L_1Ka.mjs → SpendingLegend-BmkEr9Nh.mjs} +56 -56
  33. package/dist/{TransactionDetails-BP-sFltN.mjs → TransactionDetails-CbBSxdOi.mjs} +9 -9
  34. package/dist/{TransactionUtils-CvJW9wDu.mjs → TransactionUtils-BphBJBbU.mjs} +8 -8
  35. package/dist/UserStore-CRpKQjpP.mjs +3002 -0
  36. package/dist/{ViewMoreMicroCard-DWOpU5L8.mjs → ViewMoreMicroCard-K69RRs_b.mjs} +3 -3
  37. package/dist/{WidgetContainer-CAgbD0ZS.mjs → WidgetContainer-DalWyz5A.mjs} +1 -1
  38. package/dist/accounts/index.es.js +25 -25
  39. package/dist/budgets/index.es.js +11 -11
  40. package/dist/cashflow/index.es.js +12 -12
  41. package/dist/categories/index.es.js +1 -1
  42. package/dist/common/context/hooks.d.ts +1 -1
  43. package/dist/common/index.d.ts +3 -0
  44. package/dist/common/index.es.js +148 -136
  45. package/dist/core/index.es.js +104 -3061
  46. package/dist/core/utils/Localization.d.ts +1 -0
  47. package/dist/debts/index.es.js +9 -9
  48. package/dist/finstrong/index.es.js +13 -13
  49. package/dist/goals/index.es.js +8 -8
  50. package/dist/help/index.es.js +2 -2
  51. package/dist/insights/index.es.js +5 -5
  52. package/dist/investments/index.es.js +3 -3
  53. package/dist/microinsights/index.es.js +1 -1
  54. package/dist/networth/index.es.js +7 -7
  55. package/dist/notifications/index.es.js +2 -2
  56. package/dist/recurringtransactions/index.es.js +37 -37
  57. package/dist/settings/index.es.js +6 -6
  58. package/dist/spending/index.es.js +139 -139
  59. package/dist/transactions/index.es.js +12 -12
  60. package/dist/trends/index.es.js +12 -12
  61. package/package.json +1 -1
  62. package/dist/AnalyticsApi-DwgSyZ6m.mjs +0 -102
  63. package/dist/GlobalCopyApi-C75qVBk6.mjs +0 -30
  64. package/dist/Localization-Li21_krp.mjs +0 -37
@@ -17,30 +17,30 @@ import tt from "@mui/material/Card";
17
17
  import ot from "@mui/material/CardContent";
18
18
  import Ne from "@mui/material/Divider";
19
19
  import ze from "@mui/material/Grid";
20
- import { b as nt } from "../Localization-Li21_krp.mjs";
20
+ import { b as nt } from "../Localization-DnoVyBNK.mjs";
21
21
  import { u as R, l as Q, g as $, b as fe, h as ve, d as De, B as ye, D as st, f as Be, a as rt } from "../hooks-BaO_gOI6.mjs";
22
- import { C as xe } from "../CurrencyText-Dd3NxFYY.mjs";
22
+ import { C as xe } from "../CurrencyText-CCbE6MmF.mjs";
23
23
  import { a as Re, C as $e, b as Wt } from "../Category-DEKZGLYe.mjs";
24
- import { f as X, D as G } from "../DateFormats-BSktnUw6.mjs";
25
- import { f as se, a as Ot } from "../NumberFormatting-Dnk0YyfZ.mjs";
24
+ import { f as X, D as G } from "../DateFormats-HudZ3Bjs.mjs";
25
+ import { f as se, a as Ot } from "../NumberFormatting--XMeeBfr.mjs";
26
26
  import { a as Ke, c as Gt, g as Bt } from "../TrendsUtil-D9z3kIj_.mjs";
27
- import { c as Pt, i as Vt, d as Ft, e as zt, g as at, b as it, f as Ye } from "../SpendingData-CktOElG1.mjs";
27
+ import { c as Pt, i as Vt, d as Ft, e as zt, g as at, b as it, f as Ye } from "../SpendingData-PKlh8caU.mjs";
28
28
  import $t from "@mui/material/ToggleButton";
29
29
  import Kt from "@mui/material/ToggleButtonGroup";
30
30
  import { parseISO as lt } from "date-fns/parseISO";
31
31
  import { H as ke } from "../HeaderCell-P8w6CmfO.mjs";
32
- import { T as W, a as Yt } from "../ViewMoreMicroCard-DWOpU5L8.mjs";
32
+ import { T as W, a as Yt } from "../ViewMoreMicroCard-K69RRs_b.mjs";
33
33
  import { useGridApiContext as jt, useGridRootProps as Ut, DataGridPro as Xt } from "@mui/x-data-grid-pro";
34
34
  import Zt from "@mui/material/Badge";
35
35
  import Qt from "@mui/material/IconButton";
36
36
  import { A as v } from "../Analytics-CzGzz_sE.mjs";
37
- import { T as ct } from "../EmbeddedCard-CAY_HJjE.mjs";
38
- import { T as dt } from "../TransactionDetails-BP-sFltN.mjs";
37
+ import { T as ct } from "../EmbeddedCard-BNl3quCs.mjs";
38
+ import { T as dt } from "../TransactionDetails-CbBSxdOi.mjs";
39
39
  import { D as Pe } from "../Drawer-XPaLYjiO.mjs";
40
40
  import { u as Ie } from "../useWidgetLoadTimer-CJb-RELP.mjs";
41
41
  import { L as Le } from "../Loader-CxeBwuPG.mjs";
42
- import { W as ut } from "../WidgetContainer-CAgbD0ZS.mjs";
43
- import { L as Ve } from "../LineChart-DNynWPGz.mjs";
42
+ import { W as ut } from "../WidgetContainer-DalWyz5A.mjs";
43
+ import { L as Ve } from "../LineChart-CejWS_rh.mjs";
44
44
  import { M as qt } from "../MiniWidgetContainer-BdPiUU-u.mjs";
45
45
  import { subMonths as Jt } from "date-fns";
46
46
  import { TrendingUp as eo, TrendingDown as to, MultilineChart as oo, ExpandLess as no, ExpandMore as so, ChevronRight as ro, ArrowBack as ao } from "@mxenabled/mx-icons";
@@ -52,11 +52,11 @@ import co from "@mui/material/ListItemButton";
52
52
  import uo from "@mui/material/ListItemIcon";
53
53
  import ht from "@mui/material/ListItemText";
54
54
  import gt from "@mui/material/styles/useTheme";
55
- import { g as Oe } from "../TransactionUtils-CvJW9wDu.mjs";
55
+ import { g as Oe } from "../TransactionUtils-BphBJBbU.mjs";
56
56
  import { L as mo } from "../ListItemRow-kH1rn8Xu.mjs";
57
57
  import { Stack as ho } from "@mui/material";
58
58
  import go from "@mui/material/ListItemAvatar";
59
- import { E as po } from "../ExportCsvAction-DzeJOb_g.mjs";
59
+ import { E as po } from "../ExportCsvAction-hDprC41l.mjs";
60
60
  import { u as fo } from "../useInsightsEnabled-DaNLPmUU.mjs";
61
61
  import { E as yo } from "../EmptyState-DHAkGsjk.mjs";
62
62
  import { C as Co } from "../ConnectDrawer-DgfsTpyW.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "8.2.0-alpha.bb0",
3
+ "version": "8.2.0",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",
@@ -1,102 +0,0 @@
1
- import h from "bowser";
2
- import { g as a } from "./Localization-Li21_krp.mjs";
3
- import { A as i } from "./ApiEndpoints-DXwIYNUV.mjs";
4
- class c {
5
- endpoint = "/";
6
- headers;
7
- onError;
8
- constructor(s, n, t, r) {
9
- this.endpoint = s;
10
- const e = {
11
- Accept: "application/json",
12
- "Accept-Language": a(),
13
- "Content-Type": "application/json",
14
- "MD-Session-Token": n
15
- };
16
- this.headers = t || e, this.onError = r;
17
- }
18
- get = async (s) => {
19
- const n = {
20
- method: "GET",
21
- headers: this.headers
22
- };
23
- return fetch(`${this.endpoint}${s}`, n).then((t) => {
24
- if (t.ok)
25
- return t.text();
26
- throw t;
27
- }).then((t) => t.length ? JSON.parse(t) : {}).then((t) => t).catch((t) => {
28
- throw this.onError?.(t, void 0, "ApiGetRequestError"), t;
29
- });
30
- };
31
- post = async (s, n) => {
32
- const t = n ? JSON.stringify(n) : void 0, r = {
33
- method: "POST",
34
- headers: this.headers,
35
- body: t
36
- };
37
- return fetch(`${this.endpoint}${s}`, r).then((e) => {
38
- if (!e.ok)
39
- throw e;
40
- return e.text();
41
- }).then((e) => e.length ? JSON.parse(e) : {}).then((e) => e).catch((e) => {
42
- throw e;
43
- });
44
- };
45
- put = async (s, n) => {
46
- const t = JSON.stringify(n), r = {
47
- method: "PUT",
48
- headers: this.headers,
49
- body: t
50
- };
51
- return fetch(`${this.endpoint}${s}`, r).then((e) => {
52
- if (e.ok)
53
- return e.text();
54
- throw new Error(`${e.status}`);
55
- }).then((e) => e.length ? JSON.parse(e) : {}).then((e) => e).catch((e) => {
56
- throw window?.app?.config?.type === "pulse" && this.onError?.(e.message), e.message;
57
- });
58
- };
59
- delete = async (s) => {
60
- const n = {
61
- method: "DELETE",
62
- headers: this.headers
63
- };
64
- return fetch(`${this.endpoint}${s}`, n).then((t) => t.ok ? t.text() : t.text().then((r) => {
65
- throw new Error(r);
66
- })).then((t) => t.length ? JSON.parse(t) : {}).then((t) => t).catch((t) => {
67
- throw t;
68
- });
69
- };
70
- }
71
- class f {
72
- fetchInstance;
73
- constructor(s, n, t) {
74
- this.fetchInstance = new c(s, n, void 0, t);
75
- }
76
- initializeAnalyticsSession = async (s, n) => {
77
- const t = h.getParser(window.navigator.userAgent), { analytics_session: r } = await this.fetchInstance.post(i.ANALYTICS_SESSION, {
78
- browser_name: t.getBrowserName() || "Unknown",
79
- browser_version: t.getBrowserVersion() || "0.0.0",
80
- is_first_visit: !1,
81
- product_name: "Individual Widget",
82
- product_version: s
83
- });
84
- return r ? (this.fetchInstance.post(i.ANALYTICS_FEATURE_VISITS, {
85
- feature_visit: {
86
- analytics_session_guid: r.guid,
87
- feature_name: n || "Experiences",
88
- is_first_visit: r.is_first_visit
89
- }
90
- }), { analytics_session: r }) : { analytics_session: null };
91
- };
92
- sendAnalyticEvent = async (s) => this.fetchInstance.post(i.ANALYTICS_EVENTS, s).catch((n) => {
93
- throw n;
94
- });
95
- sendAnalyticsPageview = async (s) => this.fetchInstance.post(i.ANALYTICS_PAGEVIEWS, s).catch((n) => {
96
- throw n;
97
- });
98
- }
99
- export {
100
- f as A,
101
- c as F
102
- };
@@ -1,30 +0,0 @@
1
- import { F as a } from "./AnalyticsApi-DwgSyZ6m.mjs";
2
- import { A as n } from "./ApiEndpoints-DXwIYNUV.mjs";
3
- class o {
4
- fetchInstance;
5
- constructor(t, e, s) {
6
- this.fetchInstance = new a(t, e, void 0, s);
7
- }
8
- getBeats = async (t, e) => {
9
- const s = `page=${t || 1}&per_page=${e || 5}`;
10
- return this.fetchInstance.get(`${n.BEATS}?${s}`).then((r) => r.beats);
11
- };
12
- getBeatsWithAssociatedTransaction = async (t) => {
13
- let e = "has_associated_transaction_guid=true";
14
- return e += t ? `&from_date=${t}` : "", this.fetchInstance.get(`${n.BEATS}?${e}`).then((s) => s.beats);
15
- };
16
- getOffers = async () => this.fetchInstance.get(`${n.OFFERS}/${n.PULSE_COMMUNICATIONS}`).then((t) => t.pulse_communications);
17
- updateBeat = async (t) => this.fetchInstance.put(`${n.BEATS}/${t.guid}`, t).then((e) => e.beat);
18
- updateOffer = async (t) => this.fetchInstance.put(`${n.OFFERS}/${t.guid}`, t).then((e) => e.beat);
19
- }
20
- class u {
21
- fetchInstance;
22
- constructor(t, e, s) {
23
- this.fetchInstance = new a(t, e, void 0, s);
24
- }
25
- getGlobalCopy = async (t, e) => this.fetchInstance.post(`${n.LOCALIZED_CONTENT}/${t}`, { translation_key: e }).then((s) => s);
26
- }
27
- export {
28
- o as B,
29
- u as G
30
- };
@@ -1,37 +0,0 @@
1
- import l from "react";
2
- const d = {
3
- EN_US: "en-us",
4
- EN_CA: "en-ca",
5
- FR: "fr",
6
- FR_CA: "fr-ca",
7
- ES: "es"
8
- }, u = Object.values(d), b = () => {
9
- const s = d.EN_US, t = window?.app?.options?.language?.toLowerCase() ?? "", c = window.navigator.language.toLowerCase();
10
- return t === "browser" && u.includes(c) ? c : u.includes(t) ? t : s;
11
- }, y = /(?<static>.*?)(?<dynamic>(?:_\d+{(?:.*?)}))|(?<staticEnd>.+)/g, w = (s, ...t) => {
12
- if (!s) return "";
13
- const c = t.some((a) => typeof a != "string"), i = [...s.matchAll(y)].reduce(
14
- (a, m, p) => {
15
- const n = [...a], e = m.groups;
16
- if (e?.static && n.push(e.static), e?.dynamic) {
17
- const r = e.dynamic.indexOf("{"), f = e.dynamic.substring(r + 1, e.dynamic.length - 1), o = Number(e.dynamic.substring(1, r));
18
- if (l.isValidElement(t[o - 1])) {
19
- const g = t[o - 1], E = l.cloneElement(g, {
20
- key: `${f}-${p}`
21
- });
22
- n.push(E);
23
- } else
24
- n.push(t[o - 1]);
25
- }
26
- return e?.staticEnd && n.push(e.staticEnd), n;
27
- },
28
- []
29
- );
30
- return c ? i : i.join("");
31
- };
32
- export {
33
- d as L,
34
- u as V,
35
- w as b,
36
- b as g
37
- };