@mx-cartographer/experiences 8.2.1 → 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,7 @@
1
+ ## [8.2.2] - 05-08-2026
2
+
3
+ - **UPDATED** - Narrowed microinsights component prop types and removed unused type exports
4
+
1
5
  ## [8.2.1] - 05-07-2026
2
6
 
3
7
  - **FIXED** - Widget scrolling behavior
@@ -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 = () => {
@@ -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;
@@ -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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "8.2.1",
3
+ "version": "8.2.2",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",