@mx-cartographer/experiences 7.4.0 → 7.4.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.
@@ -1,10 +1,3 @@
1
1
  import { default as React } from 'react';
2
- import { clientColorSchemeProps } from '..';
3
- import { Beat } from '../../common/types/Beat';
4
- export interface BeatIconProps {
5
- beat?: Beat;
6
- clientColorScheme?: clientColorSchemeProps;
7
- color?: string | null;
8
- type?: number | null;
9
- }
10
- export declare const BeatIcon: React.FC<BeatIconProps>;
2
+ import { WeGotTheBeat } from '../interfaces';
3
+ export declare const BeatIcon: React.FC<WeGotTheBeat>;
@@ -1,3 +1,4 @@
1
+ import { FC } from 'react';
1
2
  import { WeGotTheBeat } from '../interfaces';
2
- declare const _default: import('react').FunctionComponent<WeGotTheBeat>;
3
- export default _default;
3
+ declare const BeatMerchantLogo: FC<WeGotTheBeat>;
4
+ export default BeatMerchantLogo;
@@ -1,5 +1,6 @@
1
1
  import { FC } from 'react';
2
2
  import { WeGotTheBeat } from '../interfaces';
3
3
  import { DataSeries } from '../../common/types/Beat';
4
- export declare const getIconColor: (data: DataSeries | undefined, designTokens: any) => any;
4
+ import { Theme } from '@mui/material/styles';
5
+ export declare const getIconColor: (data: DataSeries | undefined, theme: Theme) => string;
5
6
  export declare const MonthlySpendComparisonIcon: FC<WeGotTheBeat>;
@@ -6,15 +6,8 @@ interface MicroInsightProps extends MicroWidgetProps {
6
6
  description?: string;
7
7
  icon: React.ReactNode;
8
8
  isZeroState?: boolean;
9
- fontColors?: fontColors;
10
9
  style?: StyleProps;
11
10
  title?: string;
12
11
  }
13
- interface fontColors {
14
- buttonColor?: string;
15
- headerColor?: string;
16
- iconColor?: string;
17
- textColor?: string;
18
- }
19
- export declare const MicroInsightCard: React.ForwardRefExoticComponent<MicroInsightProps & React.RefAttributes<HTMLDivElement>>;
12
+ export declare const BaseCard: React.ForwardRefExoticComponent<MicroInsightProps & React.RefAttributes<HTMLDivElement>>;
20
13
  export {};
@@ -1,10 +1,10 @@
1
1
  import { default as React } from 'react';
2
2
  import { MicroWidgetProps, BeatLikeOffer } from '../interfaces';
3
3
  import { Beat } from '../../common/types/Beat';
4
- export interface BeatCardProps extends MicroWidgetProps {
4
+ export interface InsightCardProps extends MicroWidgetProps {
5
5
  backgroundColor?: string;
6
6
  beat: Beat | BeatLikeOffer;
7
7
  index?: number;
8
8
  variant?: 'elevation' | 'outlined';
9
9
  }
10
- export declare const BeatCard: React.FC<BeatCardProps>;
10
+ export declare const InsightCard: React.FC<InsightCardProps>;
@@ -1,8 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
  import { MicroWidgetProps } from '../interfaces';
3
- export interface MicroZeroStateCardProps extends MicroWidgetProps {
4
- carouselSize: string;
5
- }
6
- export declare const NoRelevantInsightsCard: React.FC<MicroZeroStateCardProps>;
7
- declare const _default: React.FunctionComponent<MicroZeroStateCardProps>;
3
+ export declare const NoRelevantInsightsCard: React.FC<MicroWidgetProps>;
4
+ declare const _default: React.FunctionComponent<MicroWidgetProps>;
8
5
  export default _default;
@@ -1,8 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
  import { MicroWidgetProps } from '../interfaces';
3
- export interface ZeroStateCardProps extends MicroWidgetProps {
4
- carouselSize: string;
5
- }
6
- export declare const ZeroStateCard: React.FC<ZeroStateCardProps>;
7
- declare const _default: React.FunctionComponent<ZeroStateCardProps>;
3
+ export declare const ZeroStateCard: React.FC<MicroWidgetProps>;
4
+ declare const _default: React.FunctionComponent<MicroWidgetProps>;
8
5
  export default _default;
@@ -1,7 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { clientColorSchemeProps } from '..';
3
2
  export interface CarouselControlsProps {
4
- clientColorScheme?: clientColorSchemeProps;
5
3
  currentBeatIndex: number;
6
4
  numBeats: number;
7
5
  onNextClick: () => void;
@@ -1,9 +1,8 @@
1
1
  import { default as React } from 'react';
2
2
  import { Beat } from '../../common/types/Beat';
3
- import { clientColorSchemeProps, TheWholeHog } from '../interfaces';
3
+ import { TheWholeHog } from '../interfaces';
4
4
  export interface CarouselHeaderProps {
5
5
  analyticsMetadata?: object;
6
- clientColorScheme?: clientColorSchemeProps;
7
6
  onCardClick: (beat?: Beat | undefined) => void;
8
7
  posthog?: TheWholeHog;
9
8
  widthOverrides?: number | string;
@@ -1,4 +1,3 @@
1
1
  export declare const SUPPORTED_CAROUSEL_HEIGHTS: any;
2
- export declare const CAROUSEL_FONT_STYLES: any;
3
2
  export declare const MINIMUM_SWIPE_DISTANCE = 50;
4
3
  export declare const VIEW_THRESHOLD = 1;
@@ -1,12 +1,12 @@
1
1
  export { AppStore } from './stores/AppStore';
2
2
  export { InsightsMicroWidgetDataProvider } from './context/InsightsMicroWidgetDataProvider';
3
- export { BeatCard } from './cards/BeatCard';
3
+ export { InsightCard } from './cards/InsightCard';
4
4
  export { default as MicroBeatCarousel } from './carousel/MicroBeatCarousel';
5
- export { MicroInsightCard } from './cards/MicroInsightCard';
5
+ export { BaseCard } from './cards/BaseCard';
6
6
  export { default as CarouselHeader } from './carousel/CarouselHeader';
7
7
  export { default as InsightsMicroWidget } from './InsightsMicroWidget';
8
8
  export { default as NoRelevantInsightsCard } from './cards/NoRelevantInsightsCard';
9
9
  export { default as ViewMoreMicroCard } from './cards/ViewMoreMicroCard';
10
10
  export { default as ZeroStateCard } from './cards/ZeroStateCard';
11
11
  export { ChartFilledIcon, MonthlySpendComparisonIcon, ZeroStateIcon } from './beaticons';
12
- export type { clientColorSchemeProps, MicroWidgetProps, StyleProps } from './interfaces';
12
+ export type { MicroWidgetProps, StyleProps } from './interfaces';
@@ -1,13 +1,13 @@
1
- import { A as s, B as e, C as o, c as t, b as i, I as d, M as n, a as C, d as c, N as I, V as M, Z as g, e as h } from "../ViewMoreMicroCard-lihSDk2J.mjs";
1
+ import { A as e, B as r, C as o, c as t, a as i, b as d, I as n, M as C, d as c, N as I, V as M, Z as g, e as h } from "../ViewMoreMicroCard-C0832BMe.mjs";
2
2
  export {
3
- s as AppStore,
4
- e as BeatCard,
3
+ e as AppStore,
4
+ r as BaseCard,
5
5
  o as CarouselHeader,
6
6
  t as ChartFilledIcon,
7
- i as InsightsMicroWidget,
8
- d as InsightsMicroWidgetDataProvider,
9
- n as MicroBeatCarousel,
10
- C as MicroInsightCard,
7
+ i as InsightCard,
8
+ d as InsightsMicroWidget,
9
+ n as InsightsMicroWidgetDataProvider,
10
+ C as MicroBeatCarousel,
11
11
  c as MonthlySpendComparisonIcon,
12
12
  I as NoRelevantInsightsCard,
13
13
  M as ViewMoreMicroCard,
@@ -1,11 +1,7 @@
1
1
  import { Beat } from '../common/types/Beat';
2
- export interface clientColorSchemeProps {
3
- [key: string]: string | undefined;
4
- }
5
2
  export interface MicroWidgetProps {
6
3
  allowSingleCardPeeking?: boolean;
7
4
  ariaLabel?: string;
8
- clientColorScheme?: clientColorSchemeProps;
9
5
  showCTAColocatedWithText?: boolean;
10
6
  heightOverrides?: number | string;
11
7
  isActiveCard?: boolean;
@@ -16,7 +12,6 @@ export interface MicroWidgetProps {
16
12
  showHeader?: boolean;
17
13
  showIcon?: boolean;
18
14
  showWithMargin?: boolean;
19
- useDarkMode?: boolean;
20
15
  variant?: 'elevation' | 'outlined' | undefined;
21
16
  widthOverrides?: number;
22
17
  }