@mx-cartographer/experiences 8.2.0 → 8.2.2

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,11 @@
1
+ ## [8.2.2] - 05-08-2026
2
+
3
+ - **UPDATED** - Narrowed microinsights component prop types and removed unused type exports
4
+
5
+ ## [8.2.1] - 05-07-2026
6
+
7
+ - **FIXED** - Widget scrolling behavior
8
+
1
9
  ## [8.2.0] - 05-05-2026
2
10
 
3
11
  - **UPDATED** - Moved all MobX stores into src/core/stores
@@ -1121,14 +1121,15 @@ const Y = h.createContext(null), lt = ({
1121
1121
  ), Ae = {
1122
1122
  featureVersion: "spendVsIncomeTrends"
1123
1123
  }, V = new ct(), Lt = ({
1124
- allowSingleCardPeeking: t,
1125
- areBeatsLoading: e,
1124
+ allowSingleCardPeeking: t = !0,
1125
+ areBeatsLoading: e = !1,
1126
1126
  beats: n = [],
1127
1127
  // This also determines the length of the carousel controls (beat.length + 1)
1128
1128
  endpoint: r = "/",
1129
1129
  heightOverrides: i,
1130
1130
  headerSx: l,
1131
- logOutUser: a,
1131
+ logOutUser: a = () => {
1132
+ },
1132
1133
  onCardClick: u = () => {
1133
1134
  },
1134
1135
  onEvent: I = () => {
@@ -32,18 +32,18 @@ import Me from "@mui/material/ButtonGroup";
32
32
  import Pe from "@mui/material/Tab";
33
33
  import Se from "@mui/material/Tabs";
34
34
  import Ee from "@mui/material/ToggleButton";
35
- import Le from "@mui/material/ToggleButtonGroup";
36
- import Ye from "@mui/material/styles/useTheme";
35
+ import Ye from "@mui/material/ToggleButtonGroup";
36
+ import Le from "@mui/material/styles/useTheme";
37
37
  import { u as Ae } from "./useAriaLive-MkYebyUR.mjs";
38
38
  import { D as Be } from "./Dialog-iLlBR8TG.mjs";
39
- import { D as Ne } from "./Drawer-XPaLYjiO.mjs";
39
+ import { D as we } from "./Drawer-XPaLYjiO.mjs";
40
40
  import { u as le } from "./useScreenSize-CeFhWTt_.mjs";
41
41
  import { f as P, D as S } from "./DateFormats-HudZ3Bjs.mjs";
42
- import { L as Oe } from "./Loader-CxeBwuPG.mjs";
43
- import we from "@mui/material/useMediaQuery";
42
+ import { L as Ne } from "./Loader-CxeBwuPG.mjs";
43
+ import Oe from "@mui/material/useMediaQuery";
44
44
  import { A as oe } from "./Analytics-CzGzz_sE.mjs";
45
45
  const Ie = (n) => {
46
- const { isDesktop: d, isMobile: a, isSmallTablet: m, isTablet: r } = le(n), i = we("(min-width:900px)"), _ = 24;
46
+ const { isDesktop: d, isMobile: a, isSmallTablet: m, isTablet: r } = le(n), i = Oe("(min-width:900px)"), _ = 24;
47
47
  let s = 48, y = 32, h = 0, c = "h1", R = !1;
48
48
  const o = a || m;
49
49
  r && !m ? (s = 24, y = 24, c = "h2") : o && (s = 8, y = 10, h = 10, c = "h3", R = !0);
@@ -79,7 +79,7 @@ const Ie = (n) => {
79
79
  shouldShrinkToIcon: r = !0,
80
80
  variant: i = "outlined"
81
81
  }) => {
82
- const _ = Ye(), { isMobile: s } = le(), { announce: y, ariaLive: h } = Ae(), [c, R] = u.useState(m), [o, A] = u.useState(a.dateRangePickerCopy.dateRangeThisMonth), [C, N] = u.useState(c), [k, x] = u.useState(!1), [O, F] = u.useState(!0), [E, j] = u.useState(6), w = {
82
+ const _ = Le(), { isMobile: s } = le(), { announce: y, ariaLive: h } = Ae(), [c, R] = u.useState(m), [o, A] = u.useState(a.dateRangePickerCopy.dateRangeThisMonth), [C, w] = u.useState(c), [k, x] = u.useState(!1), [N, F] = u.useState(!0), [E, j] = u.useState(6), O = {
83
83
  buttons: [
84
84
  { ariaLabel: "3 Months", label: "3M", value: 3 },
85
85
  { ariaLabel: "6 Months", label: "6M", value: 6 },
@@ -94,7 +94,7 @@ const Ie = (n) => {
94
94
  ]
95
95
  };
96
96
  u.useEffect(() => {
97
- R(m), N(m);
97
+ R(m), w(m);
98
98
  }, [m]), u.useEffect(() => {
99
99
  (i === "timeframebuttons" || i === "timeframetabs") && n.onRangeChanged(V());
100
100
  }, [E]);
@@ -120,15 +120,15 @@ const Ie = (n) => {
120
120
  b = [M(l, v), M(p, v)];
121
121
  }
122
122
  R(b), n.onRangeChanged(b);
123
- }, L = () => {
123
+ }, Y = () => {
124
124
  R(C), F(
125
125
  o === a.dateRangePickerCopy.dateRangeThisMonth || o === a.dateRangePickerCopy.dateRangeLastMonth
126
126
  ), n.onRangeChanged(C);
127
127
  }, T = (t, l) => {
128
128
  t[1] = t[1] ?? t[0];
129
129
  const p = [t[0], t[1] ? xe(t[1]) : t[1]], f = P(p[0], S.MONTH_DAY_YEAR), b = P(p[1], S.MONTH_DAY_YEAR);
130
- N(p), A(l), y(`${a.dateRangePickerCopy}: ${f} - ${b}`);
131
- }, Y = (t) => {
130
+ w(p), A(l), y(`${a.dateRangePickerCopy}: ${f} - ${b}`);
131
+ }, L = (t) => {
132
132
  j(t);
133
133
  };
134
134
  return /* @__PURE__ */ g(re, { className: "mx-cmn-date-range-selector", m: 4, children: [
@@ -184,7 +184,7 @@ const Ie = (n) => {
184
184
  sx: {
185
185
  p: s ? 0 : 8
186
186
  },
187
- children: O ? P(c[0], S.MONTH_YEAR) : /* @__PURE__ */ g("span", { children: [
187
+ children: N ? P(c[0], S.MONTH_YEAR) : /* @__PURE__ */ g("span", { children: [
188
188
  P(c[0], S.MONTH_DAY_YEAR),
189
189
  " -",
190
190
  " ",
@@ -206,18 +206,18 @@ const Ie = (n) => {
206
206
  }
207
207
  ),
208
208
  i === "timeframebuttons" && /* @__PURE__ */ e(
209
- Le,
209
+ Ye,
210
210
  {
211
211
  "aria-label": a.dateRangeEditTitle,
212
212
  color: d,
213
213
  exclusive: !0,
214
214
  orientation: "horizontal",
215
215
  value: E,
216
- children: w.buttons.map((t) => /* @__PURE__ */ e(
216
+ children: O.buttons.map((t) => /* @__PURE__ */ e(
217
217
  Ee,
218
218
  {
219
219
  "aria-label": t.ariaLabel,
220
- onClick: () => Y(t.value),
220
+ onClick: () => L(t.value),
221
221
  sx: { width: 56 },
222
222
  value: t.value,
223
223
  children: t.label
@@ -230,11 +230,11 @@ const Ie = (n) => {
230
230
  Se,
231
231
  {
232
232
  indicatorColor: "primary",
233
- onChange: (t, l) => Y(l),
233
+ onChange: (t, l) => L(l),
234
234
  textColor: "primary",
235
235
  value: E,
236
236
  variant: "fullWidth",
237
- children: w.tabs.map((t) => /* @__PURE__ */ e(
237
+ children: O.tabs.map((t) => /* @__PURE__ */ e(
238
238
  Pe,
239
239
  {
240
240
  label: /* @__PURE__ */ e(W, { bold: !0, variant: "body1", children: t.label }),
@@ -249,13 +249,13 @@ const Ie = (n) => {
249
249
  }
250
250
  ),
251
251
  k && s && /* @__PURE__ */ g(
252
- Ne,
252
+ we,
253
253
  {
254
254
  ariaLabelClose: a.dateRangeCloseAria,
255
255
  isOpen: k,
256
256
  onClose: () => x(!1),
257
257
  onPrimaryAction: () => {
258
- L(), x(!1);
258
+ Y(), x(!1);
259
259
  },
260
260
  primaryText: a.dateRangeEditApply,
261
261
  title: a.dateRangeEditTitle,
@@ -280,7 +280,7 @@ const Ie = (n) => {
280
280
  copy: { title: a.dateRangeEditTitle },
281
281
  isOpen: !0,
282
282
  onClose: () => x(!1),
283
- onPrimaryAction: () => L(),
283
+ onPrimaryAction: () => Y(),
284
284
  primaryText: a.dateRangeEditApply,
285
285
  sx: {
286
286
  "& .MuiDialogContent-root": {
@@ -340,7 +340,7 @@ const Ie = (n) => {
340
340
  }
341
341
  );
342
342
  }
343
- ), Lt = ne(
343
+ ), Yt = ne(
344
344
  ({
345
345
  actions: n,
346
346
  allowedAccountTypes: d,
@@ -358,28 +358,28 @@ const Ie = (n) => {
358
358
  sx: A = {},
359
359
  title: C = ""
360
360
  }) => {
361
- const [N, { height: k, width: x }] = ge(), { onEvent: O } = fe(), {
361
+ const [w, { height: k, width: x }] = ge(), { onEvent: N } = fe(), {
362
362
  actionsFlex: F,
363
363
  containerSquareCorners: E,
364
364
  headerHeadingLevel: j,
365
- headerPaddingBottom: w,
365
+ headerPaddingBottom: O,
366
366
  headerPaddingTop: V,
367
367
  headerPaddingX: I,
368
- iconSize: L,
368
+ iconSize: Y,
369
369
  isCompact: T,
370
- isDesktop: Y,
370
+ isDesktop: L,
371
371
  isViewportAbove900: t,
372
372
  slotSx: l
373
373
  } = Ie(x), { isCopyLoaded: p } = ie(), { common: f } = se(), {
374
374
  config: { display_widget_headings: b }
375
375
  } = be(), v = () => {
376
- h && (h(), O(oe.WIDGET_BACK_CLICK));
376
+ h && (h(), N(oe.WIDGET_BACK_CLICK));
377
377
  };
378
378
  if (u.useEffect(() => {
379
- O(oe.WIDGET_SIZE_CHANGED, { height: k, width: x });
379
+ N(oe.WIDGET_SIZE_CHANGED, { height: k, width: x });
380
380
  }, [k]), !p)
381
- return /* @__PURE__ */ e(Oe, {});
382
- const M = () => c && T && !t ? /* @__PURE__ */ e($, { color: "primary", onClick: c, sx: { p: 10 }, children: /* @__PURE__ */ e(D, { name: "menu_open", size: L, sx: { transform: "rotate(180deg)" } }) }) : h ? /* @__PURE__ */ e(
381
+ return /* @__PURE__ */ e(Ne, {});
382
+ const M = () => c && T && !t ? /* @__PURE__ */ e($, { color: "primary", onClick: c, sx: { p: 10 }, children: /* @__PURE__ */ e(D, { name: "menu_open", size: Y, sx: { transform: "rotate(180deg)" } }) }) : h ? /* @__PURE__ */ e(
383
383
  $,
384
384
  {
385
385
  "aria-label": f.back_to_dashboard,
@@ -401,9 +401,16 @@ const Ie = (n) => {
401
401
  {
402
402
  className: r,
403
403
  elevation: 1,
404
- ref: N,
404
+ ref: w,
405
405
  square: E,
406
- sx: { borderBottomLeftRadius: 0, borderBottomRightRadius: 0, margin: 0, ...A },
406
+ sx: {
407
+ borderBottomLeftRadius: 0,
408
+ borderBottomRightRadius: 0,
409
+ margin: 0,
410
+ overflowY: "auto",
411
+ height: "100%",
412
+ ...A
413
+ },
407
414
  children: /* @__PURE__ */ g(de, { children: [
408
415
  /* @__PURE__ */ g(
409
416
  B,
@@ -413,7 +420,7 @@ const Ie = (n) => {
413
420
  direction: "row",
414
421
  justifyContent: "space-between",
415
422
  sx: {
416
- pb: w,
423
+ pb: O,
417
424
  pt: V,
418
425
  px: I
419
426
  },
@@ -433,23 +440,23 @@ const Ie = (n) => {
433
440
  he,
434
441
  {
435
442
  allowedAccountTypes: d,
436
- isDesktop: Y,
443
+ isDesktop: L,
437
444
  onAccountFilterClick: y
438
445
  }
439
446
  ),
440
447
  n?.map((q) => {
441
448
  if (u.isValidElement(q))
442
- return u.cloneElement(q, { isDesktop: Y });
449
+ return u.cloneElement(q, { isDesktop: L });
443
450
  const { iconName: G, onClick: Q, label: U } = q;
444
- return Y ? /* @__PURE__ */ e(
451
+ return L ? /* @__PURE__ */ e(
445
452
  H,
446
453
  {
447
454
  onClick: Q,
448
- startIcon: /* @__PURE__ */ e(D, { name: G, size: L }),
455
+ startIcon: /* @__PURE__ */ e(D, { name: G, size: Y }),
449
456
  children: U
450
457
  },
451
458
  G
452
- ) : /* @__PURE__ */ e($, { "aria-label": U, color: "primary", onClick: Q, children: /* @__PURE__ */ e(D, { name: G, size: L }) }, G);
459
+ ) : /* @__PURE__ */ e($, { "aria-label": U, color: "primary", onClick: Q, children: /* @__PURE__ */ e(D, { name: G, size: Y }) }, G);
453
460
  })
454
461
  ]
455
462
  }
@@ -459,7 +466,7 @@ const Ie = (n) => {
459
466
  ),
460
467
  T && (o || X),
461
468
  T && s && /* @__PURE__ */ e(ce, {}),
462
- /* @__PURE__ */ e(me, { children: /* @__PURE__ */ e(_e, { availableHeight: k, availableWidth: x, children: m }) })
469
+ /* @__PURE__ */ e(me, { sx: { p: 0 }, children: /* @__PURE__ */ e(_e, { availableHeight: k, availableWidth: x, children: m }) })
463
470
  ] })
464
471
  }
465
472
  );
@@ -467,6 +474,6 @@ const Ie = (n) => {
467
474
  );
468
475
  export {
469
476
  Ge as D,
470
- Lt as W,
477
+ Yt as W,
471
478
  Ie as u
472
479
  };
@@ -63,7 +63,7 @@ import { C as r3 } from "../ConnectionsDrawer-D7IXAza2.mjs";
63
63
  import { u as b1 } from "../useScreenSize-CeFhWTt_.mjs";
64
64
  import { u as o1 } from "../useWidgetLoadTimer-CJb-RELP.mjs";
65
65
  import { L as i1 } from "../Loader-CxeBwuPG.mjs";
66
- import { W as d3 } from "../WidgetContainer-DalWyz5A.mjs";
66
+ import { W as d3 } from "../WidgetContainer-CYcmwsSu.mjs";
67
67
  import { M as V1 } from "../MiniWidgetContainer-BdPiUU-u.mjs";
68
68
  const u3 = (t, o) => {
69
69
  const n = f1.includes(o) ? S1(t) : [], c = g1.includes(o) ? T1(t) : [], i = H1.includes(o) ? E1(t) : [];
@@ -48,7 +48,7 @@ import { subDays as st } from "date-fns/subDays";
48
48
  import it from "@mui/material/IconButton";
49
49
  import { M as ct } from "../ManageIncome-DwylSiWs.mjs";
50
50
  import { u as ze } from "../useWidgetLoadTimer-CJb-RELP.mjs";
51
- import { W as lt } from "../WidgetContainer-DalWyz5A.mjs";
51
+ import { W as lt } from "../WidgetContainer-CYcmwsSu.mjs";
52
52
  import { g as dt, a as ut } from "../BudgetUtil-Bg2AQJpQ.mjs";
53
53
  import { M as mt } from "../MiniWidgetContainer-BdPiUU-u.mjs";
54
54
  import { b as gt } from "../CurrencyDialog-d4dL7vA5.mjs";
@@ -39,7 +39,7 @@ import { M as rt, S as st, i as ct, b as we, c as lt } from "../ManageIncome-Dwy
39
39
  import { D as He } from "../Drawer-XPaLYjiO.mjs";
40
40
  import { subDays as We } from "date-fns/subDays";
41
41
  import { endOfToday as dt } from "date-fns/endOfToday";
42
- import { W as mt } from "../WidgetContainer-DalWyz5A.mjs";
42
+ import { W as mt } from "../WidgetContainer-CYcmwsSu.mjs";
43
43
  import { A as X } from "../Account-BaJmiJAG.mjs";
44
44
  import { A as Se } from "../Analytics-CzGzz_sE.mjs";
45
45
  import { formatISO as ut } from "date-fns/formatISO";
@@ -4,7 +4,7 @@ import { f as Q, b as j, a as V, c as K, g as Z, d as J } from "../NumberFormatt
4
4
  import { C as z, a as rr, b as er } from "../CurrencyDialog-d4dL7vA5.mjs";
5
5
  import { C as tr } from "../CurrencyInput-B59ugxPN.mjs";
6
6
  import { D as sr, S as nr } from "../Select-BZRUpOib.mjs";
7
- import { D as ur, W as lr, u as mr } from "../WidgetContainer-DalWyz5A.mjs";
7
+ import { D as ur, W as lr, u as mr } from "../WidgetContainer-CYcmwsSu.mjs";
8
8
  import { D as cr } from "../Dialog-iLlBR8TG.mjs";
9
9
  import { D as pr } from "../Donut-SzzfZDHF.mjs";
10
10
  import { D as gr } from "../Drawer-XPaLYjiO.mjs";
@@ -42,7 +42,7 @@ import it from "@mui/material/ListItem";
42
42
  import lt from "@mui/material/Popover";
43
43
  import { u as st } from "../useWidgetLoadTimer-CJb-RELP.mjs";
44
44
  import { L as ct } from "../Loader-CxeBwuPG.mjs";
45
- import { W as dt } from "../WidgetContainer-DalWyz5A.mjs";
45
+ import { W as dt } from "../WidgetContainer-CYcmwsSu.mjs";
46
46
  import { E as pt } from "../EmptyState-DHAkGsjk.mjs";
47
47
  import { C as ht } from "../ConnectDrawer-DgfsTpyW.mjs";
48
48
  function ut(r, n, o = 0) {
@@ -78,7 +78,7 @@ import So from "@mui/material/Accordion";
78
78
  import vo from "@mui/material/AccordionDetails";
79
79
  import wo from "@mui/material/AccordionSummary";
80
80
  import { u as ko } from "../useWidgetLoadTimer-CJb-RELP.mjs";
81
- import { W as Mo } from "../WidgetContainer-DalWyz5A.mjs";
81
+ import { W as Mo } from "../WidgetContainer-CYcmwsSu.mjs";
82
82
  const Ae = {
83
83
  creditScore: {
84
84
  poor: 600,
@@ -51,7 +51,7 @@ import { D as pt } from "../Dialog-iLlBR8TG.mjs";
51
51
  import { u as Me } from "../useWidgetLoadTimer-CJb-RELP.mjs";
52
52
  import { A as $ } from "../Analytics-CzGzz_sE.mjs";
53
53
  import { L as Le } from "../Loader-CxeBwuPG.mjs";
54
- import { W as ht } from "../WidgetContainer-DalWyz5A.mjs";
54
+ import { W as ht } from "../WidgetContainer-CYcmwsSu.mjs";
55
55
  import { E as bt } from "../EmptyState-DHAkGsjk.mjs";
56
56
  import ft from "@mui/material/Stack/Stack";
57
57
  import yt from "@mui/material/Box";
@@ -4,7 +4,7 @@ import { H as s } from "../Help-BSQm9o29.mjs";
4
4
  import { b as a } from "../hooks-BaO_gOI6.mjs";
5
5
  import { u as p } from "../useWidgetLoadTimer-CJb-RELP.mjs";
6
6
  import { L as d } from "../Loader-CxeBwuPG.mjs";
7
- import { W as f } from "../WidgetContainer-DalWyz5A.mjs";
7
+ import { W as f } from "../WidgetContainer-CYcmwsSu.mjs";
8
8
  const L = m(({ onBackClick: e, onMenuClick: i, sx: t }) => {
9
9
  const { isInitialized: o } = a();
10
10
  return p({
@@ -39,7 +39,7 @@ import { DataGridPro as Pe } from "@mui/x-data-grid-pro";
39
39
  import { Stack as qe } from "@mui/material";
40
40
  import { L as De } from "../Loader-CxeBwuPG.mjs";
41
41
  import { u as Ke } from "../useWidgetLoadTimer-CJb-RELP.mjs";
42
- import { W as Ye } from "../WidgetContainer-DalWyz5A.mjs";
42
+ import { W as Ye } from "../WidgetContainer-CYcmwsSu.mjs";
43
43
  import { A as Qe } from "../Account-BaJmiJAG.mjs";
44
44
  import { E as Je } from "../EmptyState-DHAkGsjk.mjs";
45
45
  const me = ({ sx: t = {} }) => {
@@ -1,19 +1,4 @@
1
1
  import { default as React } from 'react';
2
- import { Beat } from '../core';
3
2
  import { MicroWidgetProps } from './interfaces';
4
- import { SxProps } from '@mui/material/styles';
5
- export interface InsightsMicroWidgetProps extends MicroWidgetProps {
6
- allowSingleCardPeeking?: boolean;
7
- areBeatsLoading: boolean;
8
- beats: Beat[];
9
- endpoint: string;
10
- logOutUser: () => void;
11
- onEvent?: (event?: string | undefined) => void;
12
- onPageview?: (event?: string | undefined) => void;
13
- token: string;
14
- userHasFullInsightFeedBeats?: boolean;
15
- visibleCardsCount?: number;
16
- headerSx?: SxProps;
17
- }
18
- declare const _default: React.FunctionComponent<InsightsMicroWidgetProps>;
3
+ declare const _default: React.FunctionComponent<MicroWidgetProps>;
19
4
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import { default as React } from 'react';
2
2
  import { MicroWidgetProps, BeatLikeOffer } from '../interfaces';
3
3
  import { Beat } from '../../core/types/Beat';
4
- export interface InsightCardProps extends MicroWidgetProps {
4
+ export interface InsightCardProps extends Pick<MicroWidgetProps, 'ariaLabel' | 'heightOverrides' | 'isActiveCard' | 'onCardClick' | 'posthog' | 'showIcon' | 'variant' | 'widthOverrides'> {
5
5
  beat: Beat | BeatLikeOffer;
6
6
  index?: number;
7
7
  }
@@ -1,5 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { MicroWidgetProps } from '../interfaces';
3
- export declare const NoRelevantInsightsCard: React.FC<MicroWidgetProps>;
4
- declare const _default: React.FunctionComponent<MicroWidgetProps>;
3
+ type NoRelevantInsightsCardProps = Pick<MicroWidgetProps, 'ariaLabel' | 'heightOverrides' | 'onCardClick' | 'posthog' | 'showIcon' | 'variant'>;
4
+ export declare const NoRelevantInsightsCard: React.FC<NoRelevantInsightsCardProps>;
5
+ declare const _default: React.FunctionComponent<NoRelevantInsightsCardProps>;
5
6
  export default _default;
@@ -1,5 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { MicroWidgetProps } from '../interfaces';
3
- export declare const ViewMoreMicroCard: React.FC<MicroWidgetProps>;
4
- declare const _default: React.FunctionComponent<MicroWidgetProps>;
3
+ type ViewMoreMicroCardProps = Pick<MicroWidgetProps, 'ariaLabel' | 'heightOverrides' | 'isActiveCard' | 'onCardClick' | 'posthog' | 'showIcon' | 'variant' | 'widthOverrides'>;
4
+ export declare const ViewMoreMicroCard: React.FC<ViewMoreMicroCardProps>;
5
+ declare const _default: React.FunctionComponent<ViewMoreMicroCardProps>;
5
6
  export default _default;
@@ -1,5 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { MicroWidgetProps } from '../interfaces';
3
- export declare const ZeroStateCard: React.FC<MicroWidgetProps>;
4
- declare const _default: React.FunctionComponent<MicroWidgetProps>;
3
+ type ZeroStateCardProps = Pick<MicroWidgetProps, 'ariaLabel' | 'heightOverrides' | 'onCardClick' | 'showIcon' | 'variant'>;
4
+ export declare const ZeroStateCard: React.FC<ZeroStateCardProps>;
5
+ declare const _default: React.FunctionComponent<ZeroStateCardProps>;
5
6
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import { default as React } from 'react';
2
2
  import { MicroWidgetProps } from '..';
3
3
  import { Beat } from '../../core/types/Beat';
4
- export interface BeatListProps extends MicroWidgetProps {
4
+ export interface BeatListProps extends Pick<MicroWidgetProps, 'heightOverrides' | 'onCardClick' | 'posthog' | 'showIcon' | 'variant'> {
5
5
  activeCardIndex: number;
6
6
  beats: Beat[];
7
7
  cardWidth: number | null;
@@ -3,7 +3,7 @@ import { Beat } from '../../core/types/Beat';
3
3
  import { TheWholeHog } from '../interfaces';
4
4
  import { SxProps } from '@mui/material/styles';
5
5
  export interface CarouselHeaderProps {
6
- analyticsMetadata?: object;
6
+ analyticsMetadata?: Record<string, string>;
7
7
  onCardClick: (beat?: Beat | undefined) => void;
8
8
  posthog?: TheWholeHog;
9
9
  widthOverrides?: number | string;
@@ -1,20 +1,9 @@
1
1
  import { default as React } from 'react';
2
2
  import { MicroWidgetProps } from '..';
3
3
  import { Beat } from '../../core/types/Beat';
4
- export interface MicroBeatCarouselProps extends MicroWidgetProps {
5
- analyticsMetadata?: object;
4
+ export interface MicroBeatCarouselProps extends Pick<MicroWidgetProps, 'allowSingleCardPeeking' | 'heightOverrides' | 'onCardClick' | 'posthog' | 'showCarouselControls' | 'showIcon' | 'showWithMargin' | 'variant' | 'visibleCardsCount' | 'widthOverrides'> {
5
+ analyticsMetadata?: Record<string, string>;
6
6
  beats?: Beat[];
7
- showCarouselControls?: boolean;
8
- visibleCardsCount?: number;
9
- }
10
- export interface CarouselDimensions {
11
- containerWidth: number;
12
- cardWidth: number;
13
- totalCards: number;
14
- totalScrollWidth: number;
15
- visibleCardsCount: number;
16
- gap: number;
17
- peekAreaWidth: number;
18
7
  }
19
8
  declare const _default: React.FunctionComponent<MicroBeatCarouselProps>;
20
9
  export default _default;
@@ -8,5 +8,5 @@ export { default as NoRelevantInsightsCard } from './cards/NoRelevantInsightsCar
8
8
  export { default as ViewMoreMicroCard } from './cards/ViewMoreMicroCard';
9
9
  export { default as ZeroStateCard } from './cards/ZeroStateCard';
10
10
  export { ChartFilledIcon, MonthlySpendComparisonIcon, ZeroStateIcon, BeatMaterialIcon, } from './beaticons';
11
- export type { MicroWidgetProps, StyleProps } from './interfaces';
11
+ export type { MicroWidgetProps } from './interfaces';
12
12
  export { default as MicroCardTemplate } from './MicroCardTemplate';
@@ -1,4 +1,4 @@
1
- import { A as u, B as s, C as c, I as v, a as C, b as R, M as H, c as M, d as F, N as V, V as k, Z as x } from "../ViewMoreMicroCard-K69RRs_b.mjs";
1
+ import { A as u, B as s, C as c, I as v, a as C, b as R, M as H, c as M, d as F, N as V, V as k, Z as x } from "../ViewMoreMicroCard-BB3Dusch.mjs";
2
2
  import { jsx as e, jsxs as l } from "react/jsx-runtime";
3
3
  const a = ({
4
4
  color: i = "currentColor",
@@ -1,22 +1,30 @@
1
1
  import { Beat, Offer } from '../core';
2
+ import { SxProps } from '@mui/material/styles';
2
3
  export interface MicroWidgetProps {
3
4
  allowSingleCardPeeking?: boolean;
4
5
  ariaLabel?: string;
6
+ areBeatsLoading?: boolean;
7
+ beats?: Beat[];
8
+ endpoint?: string;
9
+ headerSx?: SxProps;
5
10
  heightOverrides?: number | string;
6
11
  isActiveCard?: boolean;
12
+ logOutUser?: () => void;
7
13
  onCardClick?: (beat?: Beat | undefined) => void;
14
+ onEvent?: (event?: string | undefined) => void;
15
+ onPageview?: (event?: string | undefined) => void;
8
16
  posthog?: TheWholeHog;
9
17
  showBorder?: boolean;
10
18
  showCarouselControls?: boolean;
11
19
  showHeader?: boolean;
12
20
  showIcon?: boolean;
13
21
  showWithMargin?: boolean;
22
+ token?: string;
23
+ userHasFullInsightFeedBeats?: boolean;
14
24
  variant?: 'elevation' | 'outlined' | undefined;
25
+ visibleCardsCount?: number;
15
26
  widthOverrides?: number;
16
27
  }
17
- export interface StyleProps {
18
- [key: string]: object;
19
- }
20
28
  export interface TheWholeHog {
21
29
  identify: (userGuid: string, clientGuid: string, properties?: Record<string, any>) => void;
22
30
  capture: (eventName: string, properties?: Record<string, any>) => void;
@@ -34,7 +34,7 @@ import ye from "@mui/material/Collapse";
34
34
  import K from "@mui/material/ListItemIcon";
35
35
  import { g as U } from "../NetWorthUtils-DilGN1nW.mjs";
36
36
  import { D as V } from "../Drawer-XPaLYjiO.mjs";
37
- import { W as Ce } from "../WidgetContainer-DalWyz5A.mjs";
37
+ import { W as Ce } from "../WidgetContainer-CYcmwsSu.mjs";
38
38
  import { E as be } from "../EmptyState-DHAkGsjk.mjs";
39
39
  const _e = ({ amount: t, copy: s, trendValue: i }) => {
40
40
  const n = i > 0, o = i === 0 ? "trending_flat" : n ? "trending_up" : "trending_down";
@@ -56,7 +56,7 @@ import { S as Le } from "../StatusBar-CPfSXe80.mjs";
56
56
  import { S as ve } from "../SkeletonLoader-BaNboJjD.mjs";
57
57
  import { u as oe } from "../useWidgetLoadTimer-CJb-RELP.mjs";
58
58
  import { L as ae } from "../Loader-CxeBwuPG.mjs";
59
- import { W as ht } from "../WidgetContainer-DalWyz5A.mjs";
59
+ import { W as ht } from "../WidgetContainer-CYcmwsSu.mjs";
60
60
  import { M as ft } from "../MiniWidgetContainer-BdPiUU-u.mjs";
61
61
  import { u as xt } from "../useDimensions-CeDR9V8N.mjs";
62
62
  import { M as bt } from "../MicroWidgetContainer-CfKdQfhi.mjs";
@@ -42,7 +42,7 @@ import Be from "@mui/material/ListItemText";
42
42
  import { D as He } from "../Drawer-XPaLYjiO.mjs";
43
43
  import { u as ne } from "../useWidgetLoadTimer-CJb-RELP.mjs";
44
44
  import { H as Oe } from "../Help-BSQm9o29.mjs";
45
- import { W as q } from "../WidgetContainer-DalWyz5A.mjs";
45
+ import { W as q } from "../WidgetContainer-CYcmwsSu.mjs";
46
46
  const Fe = ({ availableWidth: t, handleOnLeavClick: r }) => {
47
47
  const i = xe(), { common: o, settings: n } = w(), { isDesktop: u, isMobile: s, isSmallMobile: a, isTablet: l } = H(t), { config: b } = G(), { updateUser: _ } = E(), { user: d } = we(), [p, k] = m.useState({
48
48
  first_name: d.first_name,
@@ -31,7 +31,7 @@ import { D as tt } from "../Drawer-XPaLYjiO.mjs";
31
31
  import { C as w } from "../Category-DEKZGLYe.mjs";
32
32
  import { parseISO as et } from "date-fns/parseISO";
33
33
  import { A as nt } from "../Analytics-CzGzz_sE.mjs";
34
- import { W as It } from "../WidgetContainer-DalWyz5A.mjs";
34
+ import { W as It } from "../WidgetContainer-CYcmwsSu.mjs";
35
35
  const G = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ p(y, { direction: "column", children: [
36
36
  /* @__PURE__ */ t(T, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children: d }),
37
37
  /* @__PURE__ */ t(T, { variant: "caption", children: k(n, o === "mini" ? "0,0" : "0,0.00") })
@@ -38,7 +38,7 @@ import { u as mt } from "../useAriaLive-MkYebyUR.mjs";
38
38
  import { S as _t } from "../SkeletonLoader-BaNboJjD.mjs";
39
39
  import { u as pt } from "../useScreenSize-CeFhWTt_.mjs";
40
40
  import { u as gt } from "../useWidgetLoadTimer-CJb-RELP.mjs";
41
- import { W as ht } from "../WidgetContainer-DalWyz5A.mjs";
41
+ import { W as ht } from "../WidgetContainer-CYcmwsSu.mjs";
42
42
  import { S as ft } from "../SearchBox-CwDgvWVJ.mjs";
43
43
  import { D as te } from "../Drawer-XPaLYjiO.mjs";
44
44
  const Ct = (t) => /* @__PURE__ */ m(y, { tabIndex: t.tabIndex, variant: "body2", children: [
@@ -29,7 +29,7 @@ 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-K69RRs_b.mjs";
32
+ import { T as W, a as Yt } from "../ViewMoreMicroCard-BB3Dusch.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";
@@ -39,7 +39,7 @@ 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-DalWyz5A.mjs";
42
+ import { W as ut } from "../WidgetContainer-CYcmwsSu.mjs";
43
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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "8.2.0",
3
+ "version": "8.2.2",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",