@mx-cartographer/experiences 9.7.150 → 9.7.152
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 +16 -4
- package/dist/core/types/Insights.d.ts +7 -10
- package/dist/core/types/Insights.es.js.map +1 -1
- package/dist/core/types/localization/InsightsFeedCopy.d.ts +13 -7
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/TransactionDrillDown.es.js +33 -36
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/TransactionDrillDown.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/TransactionListBlock/TransactionListBlock.es.js +91 -54
- package/dist/insights-v2/actionBlocks/TransactionListBlock/TransactionListBlock.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/TransactionListBlock/TransactionListSubscriptionHeader.d.ts +12 -0
- package/dist/insights-v2/actionBlocks/TransactionListBlock/TransactionListSubscriptionHeader.es.js +76 -0
- package/dist/insights-v2/actionBlocks/TransactionListBlock/TransactionListSubscriptionHeader.es.js.map +1 -0
- package/dist/insights-v2/actionBlocks/TransactionListBlock/layout.d.ts +14 -0
- package/dist/insights-v2/actionBlocks/TransactionListBlock/layout.es.js +76 -37
- package/dist/insights-v2/actionBlocks/TransactionListBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/DebtsBlock/DebtsBlock.d.ts +4 -23
- package/dist/insights-v2/blocks/ComponentBlocks/DebtsBlock/DebtsBlock.es.js +95 -72
- package/dist/insights-v2/blocks/ComponentBlocks/DebtsBlock/DebtsBlock.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/QuizBlock/QuizBlock.es.js +6 -6
- package/dist/insights-v2/blocks/ComponentBlocks/TransactionBlock/TransactionBlock.es.js +4 -4
- package/dist/insights-v2/components/SubscriptionStatus/subscriptionFrequency.d.ts +3 -1
- package/dist/insights-v2/components/SubscriptionStatus/subscriptionFrequency.es.js +5 -4
- package/dist/insights-v2/components/SubscriptionStatus/subscriptionFrequency.es.js.map +1 -1
- package/dist/insights-v2/components/drawerTip.d.ts +2 -0
- package/dist/insights-v2/components/drawerTip.es.js +10 -0
- package/dist/insights-v2/components/drawerTip.es.js.map +1 -0
- package/dist/insights-v2/index.d.ts +0 -1
- package/dist/insights-v2/index.es.js +104 -106
- package/dist/transactions/components/shared/TransactionList.d.ts +2 -0
- package/dist/transactions/components/shared/TransactionList.es.js +48 -47
- package/dist/transactions/components/shared/TransactionList.es.js.map +1 -1
- package/dist/transactions/components/shared/transactionlist/TransactionRow.d.ts +2 -0
- package/dist/transactions/components/shared/transactionlist/TransactionRow.es.js +50 -45
- package/dist/transactions/components/shared/transactionlist/TransactionRow.es.js.map +1 -1
- package/package.json +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/DebtsBlock/layout.d.ts +0 -17
- package/dist/insights-v2/blocks/ComponentBlocks/DebtsBlock/layout.es.js +0 -24
- package/dist/insights-v2/blocks/ComponentBlocks/DebtsBlock/layout.es.js.map +0 -1
- package/dist/insights-v2/components/ComponentBlocks/DepositLogo.es.js +0 -30
- package/dist/insights-v2/components/ComponentBlocks/DepositLogo.es.js.map +0 -1
- package/dist/insights-v2/components/DebtPayoffCard.d.ts +0 -48
- package/dist/insights-v2/components/DebtPayoffCard.es.js +0 -132
- package/dist/insights-v2/components/DebtPayoffCard.es.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DebtsBlock.es.js","names":[],"sources":["../../../../../src/insights-v2/blocks/ComponentBlocks/DebtsBlock/DebtsBlock.tsx"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"DebtsBlock.es.js","names":[],"sources":["../../../../../src/insights-v2/blocks/ComponentBlocks/DebtsBlock/DebtsBlock.tsx"],"sourcesContent":["import { useEffect } from 'react'\nimport { observer } from 'mobx-react-lite'\n\nimport Divider from '@mui/material/Divider'\nimport Stack from '@mui/material/Stack'\n\nimport { Text } from '@mxenabled/mxui'\n\nimport { useGlobalCopyStore } from '../../../../common'\nimport { slot, type InsightsPayload, type LogoRef } from '../../../../core'\nimport { DATE_FORMATS_INTL, formatDate } from '../../../../core/constants'\nimport { CURRENCY_FORMAT, formatCurrency } from '../../../../core/utils/NumberFormatting'\n\nimport InsightTransactionRow from '../../../components/InsightTransactionRow'\nimport LogoFromGuid from '../../../components/LogoFromGuid'\nimport { asLogoRef, asNonEmptyText, asNumber, asText } from '../../slotReaders'\nimport { parseDueDate } from '../RepeatingTransactionBlock/weekStrip'\n\ninterface DebtsBlockProps {\n payload: InsightsPayload\n beatGuid?: string\n}\n\nconst ROW_LOGO_SIZE = 32\n\ninterface PaymentRow {\n name: string\n account?: string\n amount?: number\n logo?: LogoRef\n}\n\n/** The first `series` row with a name, read through the shared slot readers; else undefined. */\nconst readPayment = (series: unknown): PaymentRow | undefined => {\n if (!Array.isArray(series)) return undefined\n for (const row of series) {\n if (typeof row !== 'object' || row === null) continue\n const { amount, logo, primary_text, secondary_text } = row as Record<string, unknown>\n const name = asNonEmptyText(primary_text)\n if (name) {\n return {\n name,\n account: asText(secondary_text),\n amount: asNumber(amount),\n logo: asLogoRef(logo),\n }\n }\n }\n return undefined\n}\n\n/** A label / value line under the payment row; the card's last line sits on the grey surface. */\nconst SummaryLine = ({ grey, label, value }: { grey?: boolean; label: string; value: string }) => (\n <>\n <Divider />\n <Stack\n sx={{\n alignItems: 'center',\n bgcolor: grey ? 'background.default' : 'background.paper',\n flexDirection: 'row',\n justifyContent: 'space-between',\n minHeight: 40,\n px: 16,\n py: 2,\n }}\n >\n <Text color=\"text.primary\" variant=\"subtitle2\">\n {label}\n </Text>\n <Text bold={true} color=\"text.primary\" variant=\"caption\">\n {value}\n </Text>\n </Stack>\n </>\n)\n\n/**\n * Debts component block: the Debt Payment Reminder card (Figma 1943:219556). One bordered card:\n *\n * - the upcoming payment, from `data.series[0]`: `logo`, `primary_text` (payment name),\n * `secondary_text` (account name) and `amount` (the payment);\n * - \"Payment due on\" with `data.due_date` (ISO day, shown as \"September 15\");\n * - \"Minimum payment\" with `data.minimum_payment`, only when ditto sends one (Figma \"Has Minimum\n * Payment\"; \"No Minimum Payment\" omits the line);\n * - the account balance, `data.amount`.\n *\n * The last line drawn sits on the grey surface: the balance on full, the due date on mini (whose\n * Figma draws the due date alone).\n *\n * The captions come from `insights_feed.debts_block` (`payment_due_label`, `minimum_payment_label`,\n * `balance_label`). A line whose caption has not shipped, or whose value is missing or invalid, is\n * left out rather than drawn unlabelled or blank; a missing caption for a line that has a value\n * also warns once, naming the key. With no payment row there is no card.\n */\nconst DebtsBlock = ({ payload }: DebtsBlockProps) => {\n const copy = useGlobalCopyStore().insights_feed?.debts_block\n const dueLabel = copy?.payment_due_label\n const minimumLabel = copy?.minimum_payment_label\n const balanceLabel = copy?.balance_label\n\n // Backend data is untrusted: every value goes through the shared slot readers before use.\n const data = payload.instance_slot?.data\n const payment = readPayment(slot(data, 'series'))\n const dueDateIso = asText(slot(data, 'due_date'))\n const dueDate = dueDateIso ? parseDueDate(dueDateIso) : null\n const minimum = asNumber(slot(data, 'minimum_payment'))\n const balance = asNumber(slot(data, 'amount'))\n const hasPayment = payment !== undefined\n\n // Only the captions for lines this card has a value to draw (mini sends no balance).\n const missingKeys = [\n dueDate && !dueLabel && 'payment_due_label',\n minimum !== undefined && !minimumLabel && 'minimum_payment_label',\n balance !== undefined && !balanceLabel && 'balance_label',\n ]\n .filter(Boolean)\n .join(', ')\n\n useEffect(() => {\n if (hasPayment && missingKeys) {\n console.warn(`debts_block: copy missing ${missingKeys}; hiding those lines`)\n }\n }, [hasPayment, missingKeys])\n\n if (!payment) return null\n\n // Figma's order; the last line drawn sits on the grey surface.\n const lines = [\n dueLabel && dueDate\n ? { label: dueLabel, value: formatDate(dueDate, DATE_FORMATS_INTL.FULL_MONTH_DAY) }\n : null,\n minimumLabel && minimum !== undefined\n ? { label: minimumLabel, value: formatCurrency(minimum, CURRENCY_FORMAT.cents) }\n : null,\n balanceLabel && balance !== undefined\n ? { label: balanceLabel, value: formatCurrency(balance, CURRENCY_FORMAT.cents) }\n : null,\n ].filter((line): line is { label: string; value: string } => line !== null)\n\n return (\n <Stack sx={{ px: 16 }}>\n <Stack\n sx={{\n border: '1px solid',\n borderColor: 'divider',\n borderRadius: '8px',\n overflow: 'hidden',\n width: '100%',\n }}\n >\n <InsightTransactionRow\n amount={\n payment.amount === undefined\n ? ''\n : formatCurrency(payment.amount, CURRENCY_FORMAT.cents)\n }\n leading={<LogoFromGuid logo={payment.logo} size={ROW_LOGO_SIZE} />}\n subtitle={payment.account ?? ''}\n title={payment.name}\n />\n {lines.map((line, index) => (\n <SummaryLine\n grey={index === lines.length - 1}\n key={line.label}\n label={line.label}\n value={line.value}\n />\n ))}\n </Stack>\n </Stack>\n )\n}\n\n// observer: the captions come from the copy store, which can load or change after the first render.\nexport default observer(DebtsBlock)\n"],"mappings":"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"}
|
|
@@ -4,9 +4,9 @@ import { QUIZ_CONTEXT as c, QUIZ_VARIANTS as O, isTopMerchant as K, merchantKey
|
|
|
4
4
|
import { actionBlocksKey as F } from "../../../mappings/actionBlocksKey.es.js";
|
|
5
5
|
import Z from "../../../components/LogoFromGuid.es.js";
|
|
6
6
|
import { ConfettiOverlay as N } from "../../../components/shared/ConfettiOverlay.es.js";
|
|
7
|
-
import
|
|
8
|
-
import V from "
|
|
9
|
-
import {
|
|
7
|
+
import U from "../../../components/LogoTile.es.js";
|
|
8
|
+
import { LinedCardZeroState as V } from "../../../../insights/components/shared/ZeroState/LinedCardZeroState.es.js";
|
|
9
|
+
import { SMALL_CARD_SHADOW as j } from "../../../components/shared/elevation.es.js";
|
|
10
10
|
import { useEffect as E, useState as H } from "react";
|
|
11
11
|
import { observer as A } from "mobx-react-lite";
|
|
12
12
|
import a from "@mui/material/Stack";
|
|
@@ -33,7 +33,7 @@ var X = 3e3, z = 32, T = {
|
|
|
33
33
|
...q(o, e),
|
|
34
34
|
alt: ""
|
|
35
35
|
};
|
|
36
|
-
return /* @__PURE__ */ r(
|
|
36
|
+
return /* @__PURE__ */ r(U, {
|
|
37
37
|
borderColor: null,
|
|
38
38
|
borderRadius: 4,
|
|
39
39
|
size: z,
|
|
@@ -53,7 +53,7 @@ var X = 3e3, z = 32, T = {
|
|
|
53
53
|
backdropFilter: o ? void 0 : "blur(6px)",
|
|
54
54
|
bgcolor: (t) => o ? "success.main" : _(t.palette.common.black, 0.5),
|
|
55
55
|
borderRadius: "8px",
|
|
56
|
-
boxShadow: o ?
|
|
56
|
+
boxShadow: o ? j : void 0,
|
|
57
57
|
color: o ? "success.contrastText" : "common.white",
|
|
58
58
|
gap: 18,
|
|
59
59
|
inset: 16,
|
|
@@ -130,7 +130,7 @@ var X = 3e3, z = 32, T = {
|
|
|
130
130
|
s
|
|
131
131
|
]), E(() => {
|
|
132
132
|
t || console.warn("quiz_block: copy namespace missing; rendering without its labels");
|
|
133
|
-
}, [t]), !m.length) return /* @__PURE__ */ r(
|
|
133
|
+
}, [t]), !m.length) return /* @__PURE__ */ r(V, {});
|
|
134
134
|
if (k) {
|
|
135
135
|
const n = (i) => f({
|
|
136
136
|
guid: o,
|
|
@@ -10,8 +10,8 @@ import K, { isKnownIcon as J } from "../../../components/LogoMark.es.js";
|
|
|
10
10
|
import { logoFromRef as Q } from "../../../components/shared/EntityLogo.es.js";
|
|
11
11
|
import X from "../../../components/LogoFromGuid.es.js";
|
|
12
12
|
import { statusIconName as oo, statusIconPalette as S } from "../../../components/statusIcon.es.js";
|
|
13
|
-
import ro from "../../../components/
|
|
14
|
-
import to from "../../../components/
|
|
13
|
+
import ro from "../../../components/StatusMessageCard.es.js";
|
|
14
|
+
import to from "../../../components/TransactionListCard.es.js";
|
|
15
15
|
import { subscriptionFrequency as eo } from "../../../components/SubscriptionStatus/subscriptionFrequency.es.js";
|
|
16
16
|
import { getLayoutConfig as no, transactionBlockVariant as io } from "./layout.es.js";
|
|
17
17
|
import { observer as ao } from "mobx-react-lite";
|
|
@@ -83,7 +83,7 @@ var c = 32, mo = Math.round(c * 0.625), uo = 24, T = 32, lo = 20, go = ({ icon:
|
|
|
83
83
|
}) : void 0, y = !!l && _?.user_response === V.CONFIRMED;
|
|
84
84
|
if (M) {
|
|
85
85
|
const r = a(n, "message");
|
|
86
|
-
return typeof r != "string" || !r.trim() ? (console.warn("[TransactionBlock] status_message has no message — rendering nothing."), null) : /* @__PURE__ */ t(
|
|
86
|
+
return typeof r != "string" || !r.trim() ? (console.warn("[TransactionBlock] status_message has no message — rendering nothing."), null) : /* @__PURE__ */ t(ro, {
|
|
87
87
|
icon: /* @__PURE__ */ t(g, {
|
|
88
88
|
"aria-hidden": "true",
|
|
89
89
|
sx: { display: "flex" },
|
|
@@ -105,7 +105,7 @@ var c = 32, mo = Math.round(c * 0.625), uo = 24, T = 32, lo = 20, go = ({ icon:
|
|
|
105
105
|
label: b,
|
|
106
106
|
amount: C(Z, x.cents)
|
|
107
107
|
} : void 0, j = p ? eo(o, _) : void 0, q = l ? /* @__PURE__ */ t(go, { icon: I(a(n, y ? "reviewed_icon" : "icon")) }) : void 0, v = (r) => !!O && typeof r == "number" && r > 0;
|
|
108
|
-
return /* @__PURE__ */ t(
|
|
108
|
+
return /* @__PURE__ */ t(to, {
|
|
109
109
|
background: y && f ? f : u,
|
|
110
110
|
badge: q,
|
|
111
111
|
elevated: A,
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { RepeatingTransaction } from '../../../core/types/RepeatingTransaction';
|
|
2
2
|
import { RecurringCopy } from '../../../core/types/localization/RecurringCopy';
|
|
3
|
-
/** Frequency word from `recurrence_type` (e.g. "Yearly"); unknown or unmapped → undefined. */
|
|
3
|
+
/** Frequency word from a stored `recurrence_type` (e.g. "Yearly"); unknown or unmapped → undefined. */
|
|
4
|
+
export declare const frequencyWord: (copy: RecurringCopy | undefined, type: number | undefined) => string | undefined;
|
|
5
|
+
/** Frequency word for a live repeating transaction. */
|
|
4
6
|
export declare const subscriptionFrequency: (copy: RecurringCopy | undefined, repeating: RepeatingTransaction | undefined) => string | undefined;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { RECURRENCE_COPY as n } from "../../../common/constants/ScheduledPayment.es.js";
|
|
2
|
-
var
|
|
3
|
-
const
|
|
2
|
+
var c = (r, e) => {
|
|
3
|
+
const o = e ? n.find(({ id: i }) => i === e)?.copy : void 0;
|
|
4
4
|
if (!(!r || !o))
|
|
5
5
|
return r[o] || void 0;
|
|
6
|
-
};
|
|
6
|
+
}, u = (r, e) => c(r, e?.recurrence_type);
|
|
7
7
|
export {
|
|
8
|
-
|
|
8
|
+
c as frequencyWord,
|
|
9
|
+
u as subscriptionFrequency
|
|
9
10
|
};
|
|
10
11
|
|
|
11
12
|
//# sourceMappingURL=subscriptionFrequency.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscriptionFrequency.es.js","names":[],"sources":["../../../../src/insights-v2/components/SubscriptionStatus/subscriptionFrequency.ts"],"sourcesContent":["import { RECURRENCE_COPY } from '../../../common/constants'\nimport type { RepeatingTransaction } from '../../../core/types/RepeatingTransaction'\nimport type { RecurringCopy } from '../../../core/types/localization/RecurringCopy'\n\n/** Frequency word from `recurrence_type` (e.g. \"Yearly\"); unknown or unmapped → undefined. */\nexport const
|
|
1
|
+
{"version":3,"file":"subscriptionFrequency.es.js","names":[],"sources":["../../../../src/insights-v2/components/SubscriptionStatus/subscriptionFrequency.ts"],"sourcesContent":["import { RECURRENCE_COPY } from '../../../common/constants'\nimport type { RepeatingTransaction } from '../../../core/types/RepeatingTransaction'\nimport type { RecurringCopy } from '../../../core/types/localization/RecurringCopy'\n\n/** Frequency word from a stored `recurrence_type` (e.g. \"Yearly\"); unknown or unmapped → undefined. */\nexport const frequencyWord = (\n copy: RecurringCopy | undefined,\n type: number | undefined,\n): string | undefined => {\n // Same numbers as `Frequency`; 0 (unknown) has no word.\n const key = type ? RECURRENCE_COPY.find(({ id }) => id === type)?.copy : undefined\n\n if (!copy || !key) return undefined\n\n return copy[key as keyof RecurringCopy] || undefined\n}\n\n/** Frequency word for a live repeating transaction. */\nexport const subscriptionFrequency = (\n copy: RecurringCopy | undefined,\n repeating: RepeatingTransaction | undefined,\n): string | undefined => frequencyWord(copy, repeating?.recurrence_type)\n"],"mappings":";AAKA,IAAa,IAAA,CACX,GACA,MACuB;AAEvB,QAAM,IAAM,IAAO,EAAgB,KAAA,CAAM,EAAE,IAAA,EAAA,MAAS,MAAO,CAAI,GAAG,OAAO;AAEzE,MAAI,GAAC,KAAQ,CAAC;AAEd,WAAO,EAAK,CAAA,KAA+B;AAC7C,GAGa,IAAA,CACX,GACA,MACuB,EAAc,GAAM,GAAW,eAAe"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawerTip.es.js","names":[],"sources":["../../../src/insights-v2/components/drawerTip.ts"],"sourcesContent":["import type { TipSectionIcon } from '../../insights/components/shared/ChartDrawerTemplate/TipSection'\n\n// Every Figma drawer tip draws this icon; the shared TipSection keeps its lightbulb for V1 insights.\nexport const DRAWER_TIP_ICON: TipSectionIcon = {\n color: 'primary',\n name: 'tips_and_updates',\n size: 20,\n}\n"],"mappings":"AAGA,IAAa,IAAkC;AAAA,EAC7C,OAAO;AAAA,EACP,MAAM;AAAA,EACN,MAAM;AACR"}
|
|
@@ -2,7 +2,6 @@ export * from './blocks';
|
|
|
2
2
|
export { default as AccountHeroCard } from './components/AccountHeroCard';
|
|
3
3
|
export { default as ConnectionDetailDrillDown, type ConnectionDetailContent, } from './components/ConnectionDetailDrillDown';
|
|
4
4
|
export { default as DirectDepositCard, type DirectDepositCardStyleProps, type DirectDepositPillConfig, } from './components/DirectDepositCard';
|
|
5
|
-
export { default as DebtPayoffCard, type DebtPayoffCardStyleProps, type DebtPayoffPillConfig, type DebtPayoffStat, } from './components/DebtPayoffCard';
|
|
6
5
|
export { default as GoalProgressCard, type GoalProgressCardStyleProps, type GoalProgressPillConfig, type GoalProgressRow, } from './components/GoalProgressCard';
|
|
7
6
|
export { default as AmountPill } from './components/AmountPill';
|
|
8
7
|
export { default as AmountBreakdownCard, type AmountBreakdownCardProps, type AmountBreakdownRow, type AmountBreakdownTotal, } from './components/AmountBreakdownCard';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import r from "./components/StatusPill.es.js";
|
|
2
2
|
import { resolveInsightRender as m } from "./resolveInsightRender.es.js";
|
|
3
3
|
import { useBeatActions as a } from "./beatActions.es.js";
|
|
4
|
-
import { BAR_ARIA_LABEL as e, BAR_CHART_VARIANTS as f, barChartVariant as
|
|
4
|
+
import { BAR_ARIA_LABEL as e, BAR_CHART_VARIANTS as f, barChartVariant as c, buildChartData as n, buildDataSeries as l } from "./blocks/ChartBlocks/BarchartBlock/utils.es.js";
|
|
5
5
|
import { HOST_ACTIONS as d } from "./ctaActions/hostActions.es.js";
|
|
6
6
|
import { runInDescriptionCta as u } from "./ctaActions/runCtaAction.es.js";
|
|
7
|
-
import { useBeatCtaActions as g, useCtaHandler as
|
|
7
|
+
import { useBeatCtaActions as g, useCtaHandler as C } from "./ctaActions/useCtaAction.es.js";
|
|
8
8
|
import { BarchartBlock as D } from "./blocks/ChartBlocks/BarchartBlock/BarchartBlock.es.js";
|
|
9
9
|
import { DoubleBarChartBlock as A } from "./blocks/ChartBlocks/DoubleBarChartBlock/DoubleBarChartBlock.es.js";
|
|
10
10
|
import I from "./blocks/ChartBlocks/StepChartBlock/StepChartBlock.es.js";
|
|
@@ -19,129 +19,127 @@ import W from "./blocks/ComponentBlocks/AccountBlock/AccountBlock.es.js";
|
|
|
19
19
|
import Q from "./components/TransferLogoCard.es.js";
|
|
20
20
|
import q from "./blocks/ComponentBlocks/AccountSwitchBlock/AccountSwitchBlock.es.js";
|
|
21
21
|
import { BudgetBlock as K } from "./blocks/ComponentBlocks/BudgetBlock/BudgetBlock.es.js";
|
|
22
|
-
import Y from "./components/
|
|
23
|
-
import $ from "./
|
|
24
|
-
import ro from "./
|
|
25
|
-
import mo from "./
|
|
26
|
-
import ao from "./blocks/ComponentBlocks/
|
|
27
|
-
import eo from "./components/
|
|
28
|
-
import
|
|
29
|
-
import lo from "./components/
|
|
30
|
-
import Bo from "./components/
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import Do from "./
|
|
34
|
-
import Ao from "./blocks/ComponentBlocks/
|
|
35
|
-
import Io from "./
|
|
36
|
-
import To from "./blocks/ComponentBlocks/
|
|
37
|
-
import yo from "./components/
|
|
38
|
-
import Ro from "./blocks/ComponentBlocks/
|
|
39
|
-
import Ho from "./components/
|
|
40
|
-
import Oo from "./blocks/ComponentBlocks/
|
|
41
|
-
import Eo from "./
|
|
42
|
-
import _o from "./
|
|
43
|
-
import xo from "./
|
|
44
|
-
import Uo from "./
|
|
45
|
-
import {
|
|
46
|
-
import
|
|
47
|
-
import Jo from "./
|
|
48
|
-
import Xo from "./blocks/ComponentBlocks/
|
|
49
|
-
import Zo from "./
|
|
50
|
-
import or from "./
|
|
51
|
-
import tr from "./
|
|
52
|
-
import ir from "./
|
|
53
|
-
import
|
|
54
|
-
import fr from "./components/
|
|
55
|
-
import
|
|
56
|
-
import sr from "./components/
|
|
57
|
-
import Br from "./components/
|
|
58
|
-
import Cr from "./components/SurveyModal.es.js";
|
|
22
|
+
import Y from "./components/InsightTransactionRow.es.js";
|
|
23
|
+
import $ from "./blocks/ComponentBlocks/DebtsBlock/DebtsBlock.es.js";
|
|
24
|
+
import ro from "./blocks/ComponentBlocks/GasPurchaseBlock/GasPurchaseBlock.es.js";
|
|
25
|
+
import mo from "./components/GoalProgressCard.es.js";
|
|
26
|
+
import ao from "./blocks/ComponentBlocks/GoalsBlock/GoalsBlock.es.js";
|
|
27
|
+
import eo from "./components/LogoTile.es.js";
|
|
28
|
+
import co from "./components/LogoClusterCard.es.js";
|
|
29
|
+
import lo from "./components/AmountPill.es.js";
|
|
30
|
+
import Bo from "./components/MerchantHighlightCard.es.js";
|
|
31
|
+
import ko from "./components/P2PLogoStack.es.js";
|
|
32
|
+
import Co from "./blocks/ComponentBlocks/MerchantBlock/MerchantBlock.es.js";
|
|
33
|
+
import Do from "./blocks/ComponentBlocks/NoSpendDaysBlock/NoSpendDaysBlock.es.js";
|
|
34
|
+
import Ao from "./blocks/ComponentBlocks/QuizBlock/QuizBlock.es.js";
|
|
35
|
+
import Io from "./components/UpcomingBillCard.es.js";
|
|
36
|
+
import To from "./blocks/ComponentBlocks/RepeatingTransactionBlock/RepeatingTransactionBlock.es.js";
|
|
37
|
+
import yo from "./components/SaveAnExtraCard.es.js";
|
|
38
|
+
import Ro from "./blocks/ComponentBlocks/SaveExtraBlock/SaveExtraBlock.es.js";
|
|
39
|
+
import Ho from "./components/SavingsOpportunityCard.es.js";
|
|
40
|
+
import Oo from "./blocks/ComponentBlocks/SavingsOpportunityBlock/SavingsOpportunityBlock.es.js";
|
|
41
|
+
import Eo from "./blocks/ComponentBlocks/SavingsSummaryBlock/SavingsSummaryBlock.es.js";
|
|
42
|
+
import _o from "./components/StatusMessageCard.es.js";
|
|
43
|
+
import xo from "./components/TransactionListCard.es.js";
|
|
44
|
+
import { transactionBlockVariant as Uo } from "./blocks/ComponentBlocks/TransactionBlock/layout.es.js";
|
|
45
|
+
import { TransactionBlock as zo } from "./blocks/ComponentBlocks/TransactionBlock/TransactionBlock.es.js";
|
|
46
|
+
import jo from "./components/SubscriptionHeroCard.es.js";
|
|
47
|
+
import Jo from "./blocks/ComponentBlocks/UpcomingSubscriptionBlock/UpcomingSubscriptionBlock.es.js";
|
|
48
|
+
import Xo from "./blocks/ComponentBlocks/WeeklySmallPurchasesBlock/WeeklySmallPurchasesBlock.es.js";
|
|
49
|
+
import Zo from "./components/WithdrawalCard.es.js";
|
|
50
|
+
import or from "./blocks/ComponentBlocks/WithdrawalBlock/WithdrawalBlock.es.js";
|
|
51
|
+
import tr from "./components/DesignateEmergencySavingsCard.es.js";
|
|
52
|
+
import { SVGImageBlock as ir } from "./blocks/ImageBlocks/SVGImageBlock/SVGImageBlock.es.js";
|
|
53
|
+
import pr from "./components/shared/StatusSnackbar.es.js";
|
|
54
|
+
import fr from "./components/FeedbackDialog.es.js";
|
|
55
|
+
import nr from "./components/FeedbackModal.es.js";
|
|
56
|
+
import sr from "./components/ConnectionDetailDrillDown.es.js";
|
|
57
|
+
import Br from "./components/SurveyModal.es.js";
|
|
59
58
|
import kr from "./components/InsightErrorCard.es.js";
|
|
60
|
-
import { ErrorCard as
|
|
61
|
-
import
|
|
62
|
-
import
|
|
63
|
-
import { OverflowMenu as
|
|
64
|
-
import { InsightOptionsMenu as
|
|
65
|
-
import
|
|
66
|
-
import
|
|
67
|
-
import { FeedbackBar as
|
|
68
|
-
import { DismissInsightDialog as
|
|
69
|
-
import { HiddenConfirmationCard as
|
|
70
|
-
import { LoadingCard as
|
|
71
|
-
import { ObsolesceBanner as
|
|
72
|
-
import
|
|
59
|
+
import { ErrorCard as Cr } from "./components/ErrorCard.es.js";
|
|
60
|
+
import Dr from "./components/AmountBreakdownCard.es.js";
|
|
61
|
+
import Ar from "./components/BadgedTile.es.js";
|
|
62
|
+
import { OverflowMenu as Ir } from "./components/OverflowMenu.es.js";
|
|
63
|
+
import { InsightOptionsMenu as Tr } from "./components/InsightOptionsMenu.es.js";
|
|
64
|
+
import yr from "./components/StatusBadge.es.js";
|
|
65
|
+
import Rr from "./components/CompactInsightCard.es.js";
|
|
66
|
+
import { FeedbackBar as Hr } from "./components/FeedbackBar.es.js";
|
|
67
|
+
import { DismissInsightDialog as Or } from "./components/DismissInsightDialog.es.js";
|
|
68
|
+
import { HiddenConfirmationCard as Er } from "./components/HiddenConfirmationCard.es.js";
|
|
69
|
+
import { LoadingCard as _r } from "./components/LoadingCard.es.js";
|
|
70
|
+
import { ObsolesceBanner as xr } from "./components/ObsolesceBanner.es.js";
|
|
71
|
+
import Ur from "./components/BaseLayout.es.js";
|
|
73
72
|
export {
|
|
74
73
|
W as AccountBlock,
|
|
75
74
|
M as AccountHeroCard,
|
|
76
75
|
q as AccountSwitchBlock,
|
|
77
|
-
|
|
78
|
-
|
|
76
|
+
Dr as AmountBreakdownCard,
|
|
77
|
+
lo as AmountPill,
|
|
79
78
|
e as BAR_ARIA_LABEL,
|
|
80
79
|
f as BAR_CHART_VARIANTS,
|
|
81
|
-
|
|
80
|
+
Ar as BadgedTile,
|
|
82
81
|
D as BarchartBlock,
|
|
83
|
-
|
|
82
|
+
Ur as BaseLayout,
|
|
84
83
|
K as BudgetBlock,
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
ir as DesignateEmergencySavingsCard,
|
|
84
|
+
Rr as CompactInsightCard,
|
|
85
|
+
sr as ConnectionDetailDrillDown,
|
|
86
|
+
$ as DebtsBlock,
|
|
87
|
+
tr as DesignateEmergencySavingsCard,
|
|
90
88
|
N as DetailedAccountBlock,
|
|
91
89
|
N as DirectDepositBlock,
|
|
92
90
|
V as DirectDepositCard,
|
|
93
|
-
|
|
91
|
+
Or as DismissInsightDialog,
|
|
94
92
|
T as DonutChartBlock,
|
|
95
93
|
A as DoubleBarChartBlock,
|
|
96
94
|
y as DoubleProgressBarBlock,
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
95
|
+
Cr as ErrorCard,
|
|
96
|
+
Hr as FeedbackBar,
|
|
97
|
+
fr as FeedbackDialog,
|
|
98
|
+
nr as FeedbackModal,
|
|
99
|
+
ro as GasPurchaseBlock,
|
|
100
|
+
mo as GoalProgressCard,
|
|
101
|
+
ao as GoalsBlock,
|
|
104
102
|
d as HOST_ACTIONS,
|
|
105
|
-
|
|
103
|
+
Er as HiddenConfirmationCard,
|
|
106
104
|
kr as InsightErrorCard,
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
105
|
+
Tr as InsightOptionsMenu,
|
|
106
|
+
Y as InsightTransactionRow,
|
|
107
|
+
_r as LoadingCard,
|
|
108
|
+
co as LogoClusterCard,
|
|
111
109
|
R as LogoFromGuid,
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
110
|
+
eo as LogoTile,
|
|
111
|
+
Co as MerchantBlock,
|
|
112
|
+
Bo as MerchantHighlightCard,
|
|
113
|
+
Do as NoSpendDaysBlock,
|
|
114
|
+
xr as ObsolesceBanner,
|
|
115
|
+
Ir as OverflowMenu,
|
|
116
|
+
ko as P2PLogoStack,
|
|
117
|
+
Ao as QuizBlock,
|
|
118
|
+
To as RepeatingTransactionBlock,
|
|
119
|
+
ir as SVGImageBlock,
|
|
120
|
+
yo as SaveAnExtraCard,
|
|
121
|
+
Ro as SaveExtraBlock,
|
|
122
|
+
Oo as SavingsOpportunityBlock,
|
|
123
|
+
Ho as SavingsOpportunityCard,
|
|
124
|
+
Eo as SavingsSummaryBlock,
|
|
125
|
+
yr as StatusBadge,
|
|
126
|
+
_o as StatusMessageCard,
|
|
129
127
|
r as StatusPill,
|
|
130
|
-
|
|
128
|
+
pr as StatusSnackbar,
|
|
131
129
|
I as StepChartBlock,
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
130
|
+
jo as SubscriptionHeroCard,
|
|
131
|
+
Br as SurveyModal,
|
|
132
|
+
zo as TransactionBlock,
|
|
133
|
+
xo as TransactionListCard,
|
|
136
134
|
Q as TransferLogoCard,
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
135
|
+
To as UpcomingBillBlock,
|
|
136
|
+
Io as UpcomingBillCard,
|
|
137
|
+
Jo as UpcomingSubscriptionBlock,
|
|
138
|
+
Xo as WeeklySmallPurchasesBlock,
|
|
139
|
+
or as WithdrawalBlock,
|
|
140
|
+
Zo as WithdrawalCard,
|
|
141
|
+
c as barChartVariant,
|
|
142
|
+
n as buildChartData,
|
|
145
143
|
l as buildDataSeries,
|
|
146
144
|
G as detailedAccountVariant,
|
|
147
145
|
_ as directDepositVariant,
|
|
@@ -149,8 +147,8 @@ export {
|
|
|
149
147
|
w as isLogoGuid,
|
|
150
148
|
m as resolveInsightRender,
|
|
151
149
|
u as runInDescriptionCta,
|
|
152
|
-
|
|
150
|
+
Uo as transactionBlockVariant,
|
|
153
151
|
a as useBeatActions,
|
|
154
152
|
g as useBeatCtaActions,
|
|
155
|
-
|
|
153
|
+
C as useCtaHandler
|
|
156
154
|
};
|
|
@@ -11,6 +11,8 @@ export interface TransactionListProps {
|
|
|
11
11
|
isRowDisabled?: (t: Transaction) => boolean;
|
|
12
12
|
loader?: React.JSX.Element;
|
|
13
13
|
onClick?: (guid: string) => void;
|
|
14
|
+
/** A caption under each row's amount (see TransactionRow); omitted, the amount stands alone. */
|
|
15
|
+
renderAmountCaption?: (transaction: Transaction) => React.ReactNode;
|
|
14
16
|
/** Replaces each row's category subline (see TransactionRow); omitted, rows show the category. */
|
|
15
17
|
renderSecondaryText?: (transaction: Transaction) => React.ReactNode;
|
|
16
18
|
/** Virtualize against the nearest scrolling ancestor instead of an own fixed-height scroll box. */
|