@mx-cartographer/experiences 7.10.20 → 7.10.21

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.10.21] - 02-16-2026
2
+
3
+ - **ADDED** - Embedded Insight Card in the TransactionDetails
4
+
1
5
  ## [7.10.20] - 02-16-2026
2
6
 
3
7
  - **ADDED** - Budget Details V2 drawer and drilldown charts/transactions for Insights MUI
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+ import { Theme } from '@mui/material/styles';
3
+ import { BarDataProps } from '../../insights/types/Charts/BarChart';
4
+ export interface TinyBarChartProps {
5
+ data: BarDataProps[];
6
+ color: (theme: Theme) => string | undefined;
7
+ width?: number;
8
+ height?: number;
9
+ }
10
+ export declare const TinyBarChart: React.FC<TinyBarChartProps>;
@@ -1767,7 +1767,7 @@ const Re = {
1767
1767
  },
1768
1768
  onCtaClick: o = () => {
1769
1769
  }
1770
- }) => /* @__PURE__ */ h(P, { sx: { pt: 8, pr: 16, pb: 12, pl: 8, minWidth: 288, width: 402, borderRadius: "8px" }, children: [
1770
+ }) => /* @__PURE__ */ h(P, { sx: { pt: 8, pr: 16, pb: 12, pl: 8, borderRadius: "8px" }, children: [
1771
1771
  /* @__PURE__ */ h(
1772
1772
  E,
1773
1773
  {
@@ -1804,12 +1804,27 @@ const Re = {
1804
1804
  },
1805
1805
  children: [
1806
1806
  /* @__PURE__ */ h(E, { children: [
1807
- /* @__PURE__ */ e(E, { sx: { pt: 2, pl: 8, pb: 8 }, children: /* @__PURE__ */ e(J, { sx: { fontWeight: 400 }, variant: "subtitle2", children: n }) }),
1807
+ /* @__PURE__ */ e(E, { sx: { pt: 2, pl: 8, pb: 8 }, children: /* @__PURE__ */ e(
1808
+ J,
1809
+ {
1810
+ dangerouslySetInnerHTML: { __html: n },
1811
+ sx: { fontWeight: 400 },
1812
+ variant: "subtitle2"
1813
+ }
1814
+ ) }),
1808
1815
  /* @__PURE__ */ e(E, { sx: { alignItems: "flex-start" }, children: /* @__PURE__ */ e(
1809
1816
  T,
1810
1817
  {
1811
1818
  onClick: o,
1812
- sx: { p: 0, height: 16, px: 8, py: 8, fontWeight: 600, fontSize: 13, lineHeight: 16 },
1819
+ sx: {
1820
+ p: 0,
1821
+ height: 16,
1822
+ px: 8,
1823
+ py: 8,
1824
+ fontWeight: 600,
1825
+ fontSize: 13,
1826
+ lineHeight: "16px"
1827
+ },
1813
1828
  variant: "text",
1814
1829
  children: i
1815
1830
  }
@@ -0,0 +1,9 @@
1
+ import { CommonCopy } from '../../../common/types/localization/CommonCopy';
2
+ import { Beat } from '../../../insights/types/CommonBeat';
3
+ export declare const BeatTemplates: {
4
+ BILL_AMOUNT_NOT_STANDARD: string;
5
+ };
6
+ export declare const getEmbeddedInstanceSlotByBeatTemplates: (copy: CommonCopy, beat?: Beat) => {
7
+ instanceSlot: import("react/jsx-runtime").JSX.Element;
8
+ callToAction: string;
9
+ } | null;
@@ -1,4 +1,20 @@
1
- import { Transaction } from '../../common';
1
+ import { DataSeries, Transaction } from '../../common';
2
+ export interface ChartDataProps {
3
+ guid?: string;
4
+ label?: string;
5
+ localized_label?: string;
6
+ amount: number;
7
+ date: string;
8
+ }
2
9
  export declare const sortByDate: (a: Transaction, b: Transaction) => number;
3
10
  export declare const shouldShowDate: (index: number, transactions: Transaction[]) => boolean;
4
11
  export declare const hasInsetBorder: (index: number, transactions: Transaction[]) => boolean;
12
+ export declare const buildDataSeries: (data?: DataSeries) => {
13
+ [k: string]: any;
14
+ }[];
15
+ export declare const buildChartData: (dataSeries: ChartDataProps[], merchantName?: string) => {
16
+ ariaLabel: string;
17
+ label: string;
18
+ value: number;
19
+ formattedAmount: string;
20
+ }[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "7.10.20",
3
+ "version": "7.10.21",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",