@mx-cartographer/experiences 7.0.35 → 7.0.36

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 CHANGED
@@ -1,3 +1,7 @@
1
+ ## [7.0.36] - 10-01-2025
2
+
3
+ - **UPDATED** - Trends and Goals widgets empty states
4
+
1
5
  ## [7.0.35] - 10-01-2025
2
6
 
3
7
  - **REMOVED** - ThemeProvider and CSSBaseline wrapping InsightsMicroWidget preventing background transparency
@@ -14,7 +14,7 @@ import w from "@mui/material/ListItemText";
14
14
  import { u as D } from "./AccountDetailsHeader-BCW4d-j4.mjs";
15
15
  import { c as z, u as E, f as O, g as X } from "./hooks-BhSK6dal.mjs";
16
16
  import { A as at } from "./AccountListItem-DAF9c7_x.mjs";
17
- import { A as k } from "./WidgetContainer-CPBhSP3k.mjs";
17
+ import { A as k } from "./WidgetContainer-C6H2vwT9.mjs";
18
18
  import { a as V, f as B, D as j } from "./Dialog-CWW597AF.mjs";
19
19
  import { b as h } from "./Localization-2MODESHW.mjs";
20
20
  import { D as J } from "./Drawer-kEE73B87.mjs";
@@ -44,7 +44,7 @@ import yt from "@mui/material/AlertTitle";
44
44
  import xt from "@mui/material/Link";
45
45
  import wt from "@mui/material/Paper";
46
46
  import { subDays as kt, startOfToday as It, endOfToday as Mt } from "date-fns";
47
- import { T as vt, a as Lt } from "./TransactionDetails-BafSm7_T.mjs";
47
+ import { T as vt, a as Lt } from "./TransactionDetails-Fdf0sKuB.mjs";
48
48
  import { T as K } from "./TabContentContainer-j01JYR_7.mjs";
49
49
  const U = ({
50
50
  children: e,
@@ -16,7 +16,7 @@ import { startOfToday as z } from "date-fns/startOfToday";
16
16
  import { endOfMonth as _e } from "date-fns/endOfMonth";
17
17
  import H from "@mui/material/Button";
18
18
  import { Delete as me, Add as ye, ReceiptLong as pe } from "@mxenabled/mx-icons";
19
- import { T as X, a as he, u as ge, S as fe, b as Ce } from "./TransactionDetails-BafSm7_T.mjs";
19
+ import { T as X, a as he, u as ge, S as fe, b as Ce } from "./TransactionDetails-Fdf0sKuB.mjs";
20
20
  import { getDayOfYear as be } from "date-fns/getDayOfYear";
21
21
  import { setDayOfYear as Se } from "date-fns/setDayOfYear";
22
22
  import { AdapterDateFns as ve } from "@mui/x-date-pickers/AdapterDateFnsV3";
@@ -25,7 +25,7 @@ import { LocalizationProvider as we } from "@mui/x-date-pickers/LocalizationProv
25
25
  import { u as w, i as M, f as F, a as Ae, g as Z, o as De } from "./hooks-BhSK6dal.mjs";
26
26
  import { b as Ie, f as J } from "./NumberFormatting-CtWHhyBX.mjs";
27
27
  import { D as O } from "./Drawer-kEE73B87.mjs";
28
- import { A as R } from "./WidgetContainer-CPBhSP3k.mjs";
28
+ import { A as R } from "./WidgetContainer-C6H2vwT9.mjs";
29
29
  import { f as Ee, D as Re, a as Te } from "./Dialog-CWW597AF.mjs";
30
30
  import { formatISO as Le } from "date-fns/formatISO";
31
31
  import { fromUnixTime as Oe } from "date-fns/fromUnixTime";
@@ -7,10 +7,10 @@ import R from "@mui/material/Tabs";
7
7
  import l from "@mui/material/Divider";
8
8
  import T from "@mui/material/List";
9
9
  import C from "@mui/material/Stack";
10
- import { R as x, A as S, a as E, M as A } from "./ManageIncome-C0CbczlY.mjs";
10
+ import { R as x, A as S, a as E, M as A } from "./ManageIncome-BDAuo2eh.mjs";
11
11
  import { u as h, i as y, f as _ } from "./hooks-BhSK6dal.mjs";
12
12
  import { R as v, F as N } from "./RepeatingTransaction-BW4J-jeJ.mjs";
13
- import { A as d } from "./WidgetContainer-CPBhSP3k.mjs";
13
+ import { A as d } from "./WidgetContainer-C6H2vwT9.mjs";
14
14
  const I = u(() => {
15
15
  const { recurring: r } = h(), { repeatingTransactions: s } = y(), { onEvent: o } = _(), a = (n) => {
16
16
  o(d.RECURRING_TRANSACTIONS_CLICK_EXPENSE, {
@@ -17,7 +17,7 @@ import { fromUnixTime as W } from "date-fns/fromUnixTime";
17
17
  import { isSameDay as Ne } from "date-fns/isSameDay";
18
18
  import { h as Ye } from "./DateUtil-BcuH7ErC.mjs";
19
19
  import { L as Ie } from "./Loader-DUaFpDGv.mjs";
20
- import { A as P } from "./WidgetContainer-CPBhSP3k.mjs";
20
+ import { A as P } from "./WidgetContainer-C6H2vwT9.mjs";
21
21
  import ne from "@mui/material/Paper";
22
22
  import ce from "@mui/material/Button";
23
23
  import je from "@mui/material/FormGroup";
@@ -30,8 +30,8 @@ import { subDays as De } from "date-fns/subDays";
30
30
  import { subYears as te } from "date-fns/subYears";
31
31
  import pe from "@mui/material/ButtonGroup";
32
32
  import ke from "@mui/material/Tab";
33
- import he from "@mui/material/Tabs";
34
- import Oe from "@mui/material/ToggleButton";
33
+ import Oe from "@mui/material/Tabs";
34
+ import he from "@mui/material/ToggleButton";
35
35
  import fe from "@mui/material/ToggleButtonGroup";
36
36
  import be from "@mui/material/styles/useTheme";
37
37
  import { f as K, D as G, a as we } from "./Dialog-CWW597AF.mjs";
@@ -140,6 +140,7 @@ const We = {
140
140
  TRENDS_CLICK_ALL_CATEGORIES: "trends_click_allCategories",
141
141
  TRENDS_CLICK_BACK: "trends_click_back",
142
142
  TRENDS_CLICK_CHART: "trends_click_chart",
143
+ TRENDS_CLICK_CONNECT_ACCOUNTS: "trends_click_connectAccounts",
143
144
  TRENDS_CLICK_EXPORT_CSV: "trends_click_exportCSV",
144
145
  TRENDS_CLICK_FILTER: "trends_click_filter",
145
146
  TRENDS_CLICK_GET_STARTED: "trends_click_getStarted",
@@ -164,7 +165,7 @@ const We = {
164
165
  shouldShrinkToIcon: L = !0,
165
166
  variant: n = "outlined"
166
167
  }) => {
167
- const W = be(), { isMobile: D } = ae(), [l, f] = o.useState(m), [c, H] = o.useState(_.dateRangePickerCopy.dateRangeThisMonth), [r, b] = o.useState(l), [p, k] = o.useState(!1), [F, y] = o.useState(!0), [h, C] = o.useState(6), d = {
168
+ const W = be(), { isMobile: D } = ae(), [l, f] = o.useState(m), [c, H] = o.useState(_.dateRangePickerCopy.dateRangeThisMonth), [r, b] = o.useState(l), [p, k] = o.useState(!1), [F, y] = o.useState(!0), [O, C] = o.useState(6), d = {
168
169
  buttons: [
169
170
  { label: "3M", value: 3 },
170
171
  { label: "6M", value: 6 },
@@ -182,10 +183,10 @@ const We = {
182
183
  f(m), b(m);
183
184
  }, [m]), o.useEffect(() => {
184
185
  (n === "timeframebuttons" || n === "timeframetabs") && a.onRangeChanged(I());
185
- }, [h]);
186
+ }, [O]);
186
187
  const I = () => {
187
188
  const e = V(ee());
188
- return [V(X(e, h)), e];
189
+ return [V(X(e, O)), e];
189
190
  }, w = (e) => {
190
191
  const [i, E] = l, u = e === "previous";
191
192
  let R;
@@ -209,11 +210,11 @@ const We = {
209
210
  f(r), y(
210
211
  c === _.dateRangePickerCopy.dateRangeThisMonth || c === _.dateRangePickerCopy.dateRangeLastMonth
211
212
  ), a.onRangeChanged(r);
212
- }, v = (e, i) => {
213
+ }, U = (e, i) => {
213
214
  e[1] = e[1] ?? e[0];
214
215
  const E = [e[0], e[1] ? Se(e[1]) : e[1]];
215
216
  b(E), H(i);
216
- }, P = (e) => {
217
+ }, v = (e) => {
217
218
  C(e);
218
219
  };
219
220
  return /* @__PURE__ */ T($, { className: "mx-cmn-date-range-selector", m: 4, children: [
@@ -296,11 +297,11 @@ const We = {
296
297
  color: N,
297
298
  exclusive: !0,
298
299
  orientation: "horizontal",
299
- value: h,
300
+ value: O,
300
301
  children: d.buttons.map((e) => /* @__PURE__ */ t(
301
- Oe,
302
+ he,
302
303
  {
303
- onClick: () => P(e.value),
304
+ onClick: () => v(e.value),
304
305
  sx: { width: 56 },
305
306
  value: e.value,
306
307
  children: e.label
@@ -310,12 +311,12 @@ const We = {
310
311
  }
311
312
  ),
312
313
  n === "timeframetabs" && /* @__PURE__ */ t(
313
- he,
314
+ Oe,
314
315
  {
315
316
  indicatorColor: "primary",
316
- onChange: (e, i) => P(i),
317
+ onChange: (e, i) => v(i),
317
318
  textColor: "primary",
318
- value: h,
319
+ value: O,
319
320
  variant: "fullWidth",
320
321
  children: d.tabs.map((e) => /* @__PURE__ */ t(
321
322
  ke,
@@ -347,7 +348,7 @@ const We = {
347
348
  {
348
349
  copy: _.dateRangePickerCopy,
349
350
  dateRange: r,
350
- onRangeChanged: v,
351
+ onRangeChanged: U,
351
352
  selectedShortcut: c,
352
353
  sx: { p: 16 }
353
354
  }
@@ -372,7 +373,7 @@ const We = {
372
373
  {
373
374
  copy: _.dateRangePickerCopy,
374
375
  dateRange: r,
375
- onRangeChanged: v,
376
+ onRangeChanged: U,
376
377
  selectedShortcut: c,
377
378
  sx: {
378
379
  pt: 0,
@@ -400,8 +401,8 @@ const We = {
400
401
  sx: H = {},
401
402
  title: r = ""
402
403
  }) => {
403
- const [b, p] = o.useState(!1), [k, { height: F, width: y }] = Ce(), { onEvent: h } = Te(), { isDesktop: C, isMobile: d, isTablet: I } = ae(y), { displayedDateRange: w, isCopyLoaded: x, selectedAccountGuids: v, setSelectedAccountGuids: P } = Ie(), { common: e, connect: i } = Ee(), E = () => {
404
- l && (l(), h(We.WIDGET_BACK_CLICK));
404
+ const [b, p] = o.useState(!1), [k, { height: F, width: y }] = Ce(), { onEvent: O } = Te(), { isDesktop: C, isMobile: d, isTablet: I } = ae(y), { displayedDateRange: w, isCopyLoaded: x, selectedAccountGuids: U, setSelectedAccountGuids: v } = Ie(), { common: e, connect: i } = Ee(), E = () => {
405
+ l && (l(), O(We.WIDGET_BACK_CLICK));
405
406
  };
406
407
  if (!x)
407
408
  return /* @__PURE__ */ t(de, {});
@@ -470,36 +471,36 @@ const We = {
470
471
  accounts: a,
471
472
  copy: u,
472
473
  onConnectAccountClick: () => p(!0),
473
- onFilterClick: (O) => {
474
- P(O), f?.(O);
474
+ onFilterClick: (h) => {
475
+ v(h), f?.(h);
475
476
  },
476
- selectedAccountGuids: v,
477
+ selectedAccountGuids: U,
477
478
  showAccountNumbers: !1,
478
479
  variant: "text"
479
480
  }
480
481
  ),
481
- N?.map((O) => {
482
- if (o.isValidElement(O)) return O;
483
- const { iconName: S, onClick: U, label: B } = O;
482
+ N?.map((h) => {
483
+ if (o.isValidElement(h)) return h;
484
+ const { iconName: S, onClick: P, label: B } = h;
484
485
  return ie ? C || I ? /* @__PURE__ */ t(
485
486
  M,
486
487
  {
487
- onClick: U,
488
+ onClick: P,
488
489
  startIcon: /* @__PURE__ */ t(s, { name: S, size: 24 }),
489
490
  sx: { my: 4 },
490
491
  children: B
491
492
  },
492
493
  S
493
- ) : /* @__PURE__ */ t(z, { "aria-label": B, color: "primary", onClick: U, children: /* @__PURE__ */ t(s, { name: S, size: 24 }) }, S) : C || I ? /* @__PURE__ */ t(
494
+ ) : /* @__PURE__ */ t(z, { "aria-label": B, color: "primary", onClick: P, children: /* @__PURE__ */ t(s, { name: S, size: 24 }) }, S) : C || I ? /* @__PURE__ */ t(
494
495
  M,
495
496
  {
496
- onClick: U,
497
+ onClick: P,
497
498
  startIcon: /* @__PURE__ */ t(s, { name: S, size: 24 }),
498
499
  sx: { my: 4 },
499
500
  children: B
500
501
  },
501
502
  S
502
- ) : /* @__PURE__ */ t(z, { "aria-label": B, color: "primary", onClick: U, children: /* @__PURE__ */ t(s, { name: S, size: 24 }) }, S);
503
+ ) : /* @__PURE__ */ t(z, { "aria-label": B, color: "primary", onClick: P, children: /* @__PURE__ */ t(s, { name: S, size: 24 }) }, S);
503
504
  })
504
505
  ] }),
505
506
  sx: {
@@ -7,8 +7,8 @@ import E from "@mui/material/List";
7
7
  import O 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-BwTOak3W.mjs";
11
- import { u as I1 } from "../AccountDetailsContent-BwTOak3W.mjs";
10
+ import { A as G } from "../AccountDetailsContent-r2edUIO6.mjs";
11
+ import { u as I1 } from "../AccountDetailsContent-r2edUIO6.mjs";
12
12
  import { u as K, A as z } from "../AccountDetailsHeader-BCW4d-j4.mjs";
13
13
  import { A as W } from "../AccountListItem-DAF9c7_x.mjs";
14
14
  import { a as P } from "../AccountFields-B-igjxt-.mjs";
@@ -16,7 +16,7 @@ import { g as D1, b as U1 } from "../AccountFields-B-igjxt-.mjs";
16
16
  import { u as g, a as y, c as T, f as N, m as Y } from "../hooks-BhSK6dal.mjs";
17
17
  import { f as I } from "../NumberFormatting-CtWHhyBX.mjs";
18
18
  import { D as q } from "../Drawer-kEE73B87.mjs";
19
- import { A, W as J } from "../WidgetContainer-CPBhSP3k.mjs";
19
+ import { A, W as J } from "../WidgetContainer-C6H2vwT9.mjs";
20
20
  import { C as Q } from "../ConnectionsDrawer-hdOVHICr.mjs";
21
21
  import { u as X } from "../useScreenSize-B6JyS_Lj.mjs";
22
22
  import { L as R } from "../Loader-DUaFpDGv.mjs";
@@ -15,7 +15,7 @@ import { h as w, l as j, u as D, f as X, a as ee, p as ze, i as te, g as ne, m a
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-CPBhSP3k.mjs";
18
+ import { A as k, W as Fe } from "../WidgetContainer-C6H2vwT9.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";
@@ -37,7 +37,7 @@ import Ye from "@mui/material/Snackbar";
37
37
  import be from "@mui/material/Tab";
38
38
  import Ze from "@mui/material/Tabs";
39
39
  import { e as qe } from "../exportTransactionsToCSV-21c0EV3t.mjs";
40
- import { T as xe, a as Je } from "../TransactionDetails-BafSm7_T.mjs";
40
+ import { T as xe, a as Je } from "../TransactionDetails-Fdf0sKuB.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";
@@ -46,7 +46,7 @@ import { u as Qe, b as et } from "../CategorySelectorDrawer-CMorcKFW.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-C0CbczlY.mjs";
49
+ import { M as ot } from "../ManageIncome-BDAuo2eh.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;
@@ -17,7 +17,7 @@ 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
19
  import { M as Qe } from "../MiniWidgetContainer-C_N1u9ad.mjs";
20
- import { R as Ve } from "../RecurringSettings-DR9KuVEN.mjs";
20
+ import { R as Ve } from "../RecurringSettings-DlZ8qeDR.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";
@@ -34,17 +34,17 @@ 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-C0CbczlY.mjs";
37
+ import { M as ot, S as it, i as at, d as Se, c as rt } from "../ManageIncome-BDAuo2eh.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-BafSm7_T.mjs";
43
+ import { S as lt, b as dt } from "../TransactionDetails-Fdf0sKuB.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-CPBhSP3k.mjs";
47
+ import { W as ve, A as Ae } from "../WidgetContainer-C6H2vwT9.mjs";
48
48
  import { F as pt, A as B } from "../Fetch-87LIQbEA.mjs";
49
49
  const K = () => {
50
50
  if (!m.useContext(Ye))
@@ -99,6 +99,7 @@ export declare const ANALYTICS_EVENTS: {
99
99
  TRENDS_CLICK_ALL_CATEGORIES: string;
100
100
  TRENDS_CLICK_BACK: string;
101
101
  TRENDS_CLICK_CHART: string;
102
+ TRENDS_CLICK_CONNECT_ACCOUNTS: string;
102
103
  TRENDS_CLICK_EXPORT_CSV: string;
103
104
  TRENDS_CLICK_FILTER: string;
104
105
  TRENDS_CLICK_GET_STARTED: string;
@@ -12,7 +12,7 @@ import { H as ot } from "../Help-DhcC-C05.mjs";
12
12
  import { E as ys } from "../Help-DhcC-C05.mjs";
13
13
  import { M as bs } from "../MicroWidgetContainer-DVRe-MJs.mjs";
14
14
  import { M as xs } from "../MiniWidgetContainer-C_N1u9ad.mjs";
15
- import { A as vs, D as Ds, W as Es } from "../WidgetContainer-CPBhSP3k.mjs";
15
+ import { A as vs, D as Ds, W as Es } from "../WidgetContainer-C6H2vwT9.mjs";
16
16
  import { i as Ts, a as Bs, e as Is, l as Ns, A as Ms, f as ks, j as $s, d as Rs, k as Ps, E as Os, h as Us, N as Ls, g as Gs, P as Hs, m as Fs, S as Ws } from "../ConnectDrawer-jeSmGg38.mjs";
17
17
  import { C as Ys } from "../CurrencyInput-C0wTgNV6.mjs";
18
18
  import { L as zs } from "../Loader-DUaFpDGv.mjs";
@@ -23,7 +23,7 @@ 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-CPBhSP3k.mjs";
26
+ import { A as T, W as Oe } from "../WidgetContainer-C6H2vwT9.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,7 +30,7 @@ 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
32
  import { C as qe } from "../ConnectionsDrawer-hdOVHICr.mjs";
33
- import { R as Je } from "../RecurringSettings-DR9KuVEN.mjs";
33
+ import { R as Je } from "../RecurringSettings-DlZ8qeDR.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-CPBhSP3k.mjs";
51
+ import { W as mt } from "../WidgetContainer-C6H2vwT9.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,