@mx-cartographer/experiences 8.2.2 → 8.2.4
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 +8 -0
- package/dist/{ViewMoreMicroCard-BB3Dusch.mjs → ViewMoreMicroCard-CQBFy9AF.mjs} +528 -527
- package/dist/microinsights/MicroCardTemplate.d.ts +2 -4
- package/dist/microinsights/cards/InsightCard.d.ts +2 -2
- package/dist/microinsights/cards/NoRelevantInsightsCard.d.ts +3 -4
- package/dist/microinsights/cards/ViewMoreMicroCard.d.ts +3 -4
- package/dist/microinsights/cards/ZeroStateCard.d.ts +3 -4
- package/dist/microinsights/carousel/BeatList.d.ts +2 -2
- package/dist/microinsights/carousel/MicroBeatCarousel.d.ts +12 -1
- package/dist/microinsights/index.es.js +1 -1
- package/dist/microinsights/interfaces.d.ts +12 -4
- package/dist/trends/index.es.js +2 -3
- package/package.json +1 -1
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { SxProps } from '@mui/material/styles';
|
|
3
2
|
interface MicroCardTemplateProps {
|
|
4
3
|
ariaLabel?: string;
|
|
5
|
-
cardSx?: SxProps;
|
|
6
4
|
closeAriaLabel?: string;
|
|
7
5
|
description: string;
|
|
6
|
+
elevation?: number;
|
|
8
7
|
icon?: React.ReactNode;
|
|
9
8
|
isActiveCard?: boolean;
|
|
10
|
-
hasCardEffect?: boolean;
|
|
11
9
|
heightOverrides?: string | number;
|
|
12
10
|
onClose?: () => void;
|
|
13
11
|
onCardClick?: () => void;
|
|
@@ -16,7 +14,7 @@ interface MicroCardTemplateProps {
|
|
|
16
14
|
primaryActionText?: string;
|
|
17
15
|
secondaryActionText?: string;
|
|
18
16
|
title: string;
|
|
19
|
-
variant?: '
|
|
17
|
+
variant?: 'outlined' | 'elevation' | undefined;
|
|
20
18
|
widthOverrides?: string | number;
|
|
21
19
|
}
|
|
22
20
|
declare const MicroCardTemplate: React.ForwardRefExoticComponent<MicroCardTemplateProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { BeatLikeOffer, MicroInsightCardProps } from '../interfaces';
|
|
3
3
|
import { Beat } from '../../core/types/Beat';
|
|
4
|
-
export interface InsightCardProps extends
|
|
4
|
+
export interface InsightCardProps extends MicroInsightCardProps {
|
|
5
5
|
beat: Beat | BeatLikeOffer;
|
|
6
6
|
index?: number;
|
|
7
7
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
declare const _default: React.FunctionComponent<NoRelevantInsightsCardProps>;
|
|
2
|
+
import { MicroInsightCardProps } from '../interfaces';
|
|
3
|
+
export declare const NoRelevantInsightsCard: React.FC<MicroInsightCardProps>;
|
|
4
|
+
declare const _default: React.FunctionComponent<MicroInsightCardProps>;
|
|
6
5
|
export default _default;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
declare const _default: React.FunctionComponent<ViewMoreMicroCardProps>;
|
|
2
|
+
import { MicroInsightCardProps } from '../interfaces';
|
|
3
|
+
export declare const ViewMoreMicroCard: React.FC<MicroInsightCardProps>;
|
|
4
|
+
declare const _default: React.FunctionComponent<MicroInsightCardProps>;
|
|
6
5
|
export default _default;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
declare const _default: React.FunctionComponent<ZeroStateCardProps>;
|
|
2
|
+
import { MicroInsightCardProps } from '../interfaces';
|
|
3
|
+
export declare const ZeroStateCard: React.FC<MicroInsightCardProps>;
|
|
4
|
+
declare const _default: React.FunctionComponent<MicroInsightCardProps>;
|
|
6
5
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { MicroInsightCardProps } from '../interfaces';
|
|
3
3
|
import { Beat } from '../../core/types/Beat';
|
|
4
|
-
export interface BeatListProps extends
|
|
4
|
+
export interface BeatListProps extends MicroInsightCardProps {
|
|
5
5
|
activeCardIndex: number;
|
|
6
6
|
beats: Beat[];
|
|
7
7
|
cardWidth: number | null;
|
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { MicroWidgetProps } from '..';
|
|
3
3
|
import { Beat } from '../../core/types/Beat';
|
|
4
|
-
|
|
4
|
+
interface MicroBeatCarouselProps {
|
|
5
|
+
allowSingleCardPeeking?: boolean;
|
|
5
6
|
analyticsMetadata?: Record<string, string>;
|
|
6
7
|
beats?: Beat[];
|
|
8
|
+
elevation?: number;
|
|
9
|
+
heightOverrides?: MicroWidgetProps['heightOverrides'];
|
|
10
|
+
onCardClick?: MicroWidgetProps['onCardClick'];
|
|
11
|
+
posthog?: MicroWidgetProps['posthog'];
|
|
12
|
+
showCarouselControls?: boolean;
|
|
13
|
+
showIcon?: boolean;
|
|
14
|
+
showWithMargin?: boolean;
|
|
15
|
+
variant?: 'outlined' | 'elevation' | undefined;
|
|
16
|
+
visibleCardsCount?: number;
|
|
17
|
+
widthOverrides?: number;
|
|
7
18
|
}
|
|
8
19
|
declare const _default: React.FunctionComponent<MicroBeatCarouselProps>;
|
|
9
20
|
export default _default;
|
|
@@ -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-
|
|
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-CQBFy9AF.mjs";
|
|
2
2
|
import { jsx as e, jsxs as l } from "react/jsx-runtime";
|
|
3
3
|
const a = ({
|
|
4
4
|
color: i = "currentColor",
|
|
@@ -2,29 +2,37 @@ import { Beat, Offer } from '../core';
|
|
|
2
2
|
import { SxProps } from '@mui/material/styles';
|
|
3
3
|
export interface MicroWidgetProps {
|
|
4
4
|
allowSingleCardPeeking?: boolean;
|
|
5
|
-
ariaLabel?: string;
|
|
6
5
|
areBeatsLoading?: boolean;
|
|
7
6
|
beats?: Beat[];
|
|
7
|
+
cardStyle?: 'elevation 1' | 'border' | 'flat';
|
|
8
8
|
endpoint?: string;
|
|
9
9
|
headerSx?: SxProps;
|
|
10
10
|
heightOverrides?: number | string;
|
|
11
|
-
isActiveCard?: boolean;
|
|
12
11
|
logOutUser?: () => void;
|
|
13
12
|
onCardClick?: (beat?: Beat | undefined) => void;
|
|
14
13
|
onEvent?: (event?: string | undefined) => void;
|
|
15
14
|
onPageview?: (event?: string | undefined) => void;
|
|
16
15
|
posthog?: TheWholeHog;
|
|
17
|
-
showBorder?: boolean;
|
|
18
16
|
showCarouselControls?: boolean;
|
|
19
17
|
showHeader?: boolean;
|
|
20
18
|
showIcon?: boolean;
|
|
21
19
|
showWithMargin?: boolean;
|
|
22
20
|
token?: string;
|
|
23
21
|
userHasFullInsightFeedBeats?: boolean;
|
|
24
|
-
variant?: 'elevation' | 'outlined' | undefined;
|
|
25
22
|
visibleCardsCount?: number;
|
|
26
23
|
widthOverrides?: number;
|
|
27
24
|
}
|
|
25
|
+
export interface MicroInsightCardProps {
|
|
26
|
+
ariaLabel?: string;
|
|
27
|
+
elevation?: number;
|
|
28
|
+
heightOverrides?: number | string;
|
|
29
|
+
isActiveCard?: boolean;
|
|
30
|
+
onCardClick?: (beat?: Beat | undefined) => void;
|
|
31
|
+
posthog?: TheWholeHog;
|
|
32
|
+
showIcon?: boolean;
|
|
33
|
+
variant?: 'outlined' | 'elevation' | undefined;
|
|
34
|
+
widthOverrides?: number;
|
|
35
|
+
}
|
|
28
36
|
export interface TheWholeHog {
|
|
29
37
|
identify: (userGuid: string, clientGuid: string, properties?: Record<string, any>) => void;
|
|
30
38
|
capture: (eventName: string, properties?: Record<string, any>) => void;
|
package/dist/trends/index.es.js
CHANGED
|
@@ -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-
|
|
32
|
+
import { T as W, a as Yt } from "../ViewMoreMicroCard-CQBFy9AF.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";
|
|
@@ -1228,18 +1228,17 @@ const Eo = g.memo(Lo), Qe = ({
|
|
|
1228
1228
|
{
|
|
1229
1229
|
areBeatsLoading: a.isLoading,
|
|
1230
1230
|
beats: t,
|
|
1231
|
+
cardStyle: "border",
|
|
1231
1232
|
endpoint: d,
|
|
1232
1233
|
headerSx: { p: 0 },
|
|
1233
1234
|
logOutUser: m,
|
|
1234
1235
|
onCardClick: _,
|
|
1235
|
-
showBorder: !0,
|
|
1236
1236
|
showCarouselControls: !0,
|
|
1237
1237
|
showHeader: i,
|
|
1238
1238
|
showIcon: !0,
|
|
1239
1239
|
showWithMargin: !1,
|
|
1240
1240
|
token: u,
|
|
1241
1241
|
userHasFullInsightFeedBeats: !1,
|
|
1242
|
-
variant: "outlined",
|
|
1243
1242
|
visibleCardsCount: f
|
|
1244
1243
|
}
|
|
1245
1244
|
) });
|