@mx-cartographer/experiences 9.7.149 → 9.7.151

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.
Files changed (29) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/core/types/Insights.d.ts +0 -6
  3. package/dist/core/types/Insights.es.js.map +1 -1
  4. package/dist/core/types/localization/InsightsFeedCopy.d.ts +10 -7
  5. package/dist/core/utils/NumberFormatting.d.ts +2 -0
  6. package/dist/core/utils/NumberFormatting.es.js +18 -17
  7. package/dist/core/utils/NumberFormatting.es.js.map +1 -1
  8. package/dist/insights-v2/actionBlocks/MakeTransferActionBlock/MakeTransferActionBlock.es.js +57 -57
  9. package/dist/insights-v2/actionBlocks/MakeTransferActionBlock/MakeTransferActionBlock.es.js.map +1 -1
  10. package/dist/insights-v2/blocks/ComponentBlocks/DebtsBlock/DebtsBlock.d.ts +4 -23
  11. package/dist/insights-v2/blocks/ComponentBlocks/DebtsBlock/DebtsBlock.es.js +95 -72
  12. package/dist/insights-v2/blocks/ComponentBlocks/DebtsBlock/DebtsBlock.es.js.map +1 -1
  13. package/dist/insights-v2/blocks/ComponentBlocks/QuizBlock/QuizBlock.es.js +6 -6
  14. package/dist/insights-v2/blocks/ComponentBlocks/SavingsSummaryBlock/SavingsSummaryBlock.es.js +24 -25
  15. package/dist/insights-v2/blocks/ComponentBlocks/SavingsSummaryBlock/SavingsSummaryBlock.es.js.map +1 -1
  16. package/dist/insights-v2/blocks/ComponentBlocks/TransactionBlock/TransactionBlock.es.js +4 -4
  17. package/dist/insights-v2/index.d.ts +0 -1
  18. package/dist/insights-v2/index.es.js +104 -106
  19. package/dist/insights-v2/mappings/blocks.es.js +1 -0
  20. package/dist/insights-v2/mappings/blocks.es.js.map +1 -1
  21. package/package.json +1 -1
  22. package/dist/insights-v2/blocks/ComponentBlocks/DebtsBlock/layout.d.ts +0 -17
  23. package/dist/insights-v2/blocks/ComponentBlocks/DebtsBlock/layout.es.js +0 -24
  24. package/dist/insights-v2/blocks/ComponentBlocks/DebtsBlock/layout.es.js.map +0 -1
  25. package/dist/insights-v2/components/ComponentBlocks/DepositLogo.es.js +0 -30
  26. package/dist/insights-v2/components/ComponentBlocks/DepositLogo.es.js.map +0 -1
  27. package/dist/insights-v2/components/DebtPayoffCard.d.ts +0 -48
  28. package/dist/insights-v2/components/DebtPayoffCard.es.js +0 -132
  29. package/dist/insights-v2/components/DebtPayoffCard.es.js.map +0 -1
@@ -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 n, buildChartData as c, buildDataSeries as l } from "./blocks/ChartBlocks/BarchartBlock/utils.es.js";
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 k } from "./ctaActions/useCtaAction.es.js";
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/DebtPayoffCard.es.js";
23
- import $ from "./components/InsightTransactionRow.es.js";
24
- import ro from "./components/TransactionListCard.es.js";
25
- import mo from "./blocks/ComponentBlocks/DebtsBlock/DebtsBlock.es.js";
26
- import ao from "./blocks/ComponentBlocks/GasPurchaseBlock/GasPurchaseBlock.es.js";
27
- import eo from "./components/GoalProgressCard.es.js";
28
- import no from "./blocks/ComponentBlocks/GoalsBlock/GoalsBlock.es.js";
29
- import lo from "./components/LogoTile.es.js";
30
- import Bo from "./components/LogoClusterCard.es.js";
31
- import Co from "./components/AmountPill.es.js";
32
- import ko from "./components/MerchantHighlightCard.es.js";
33
- import Do from "./components/P2PLogoStack.es.js";
34
- import Ao from "./blocks/ComponentBlocks/MerchantBlock/MerchantBlock.es.js";
35
- import Io from "./blocks/ComponentBlocks/NoSpendDaysBlock/NoSpendDaysBlock.es.js";
36
- import To from "./blocks/ComponentBlocks/QuizBlock/QuizBlock.es.js";
37
- import yo from "./components/UpcomingBillCard.es.js";
38
- import Ro from "./blocks/ComponentBlocks/RepeatingTransactionBlock/RepeatingTransactionBlock.es.js";
39
- import Ho from "./components/SaveAnExtraCard.es.js";
40
- import Oo from "./blocks/ComponentBlocks/SaveExtraBlock/SaveExtraBlock.es.js";
41
- import Eo from "./components/SavingsOpportunityCard.es.js";
42
- import _o from "./blocks/ComponentBlocks/SavingsOpportunityBlock/SavingsOpportunityBlock.es.js";
43
- import xo from "./blocks/ComponentBlocks/SavingsSummaryBlock/SavingsSummaryBlock.es.js";
44
- import Uo from "./components/StatusMessageCard.es.js";
45
- import { transactionBlockVariant as zo } from "./blocks/ComponentBlocks/TransactionBlock/layout.es.js";
46
- import { TransactionBlock as jo } from "./blocks/ComponentBlocks/TransactionBlock/TransactionBlock.es.js";
47
- import Jo from "./components/SubscriptionHeroCard.es.js";
48
- import Xo from "./blocks/ComponentBlocks/UpcomingSubscriptionBlock/UpcomingSubscriptionBlock.es.js";
49
- import Zo from "./blocks/ComponentBlocks/WeeklySmallPurchasesBlock/WeeklySmallPurchasesBlock.es.js";
50
- import or from "./components/WithdrawalCard.es.js";
51
- import tr from "./blocks/ComponentBlocks/WithdrawalBlock/WithdrawalBlock.es.js";
52
- import ir from "./components/DesignateEmergencySavingsCard.es.js";
53
- import { SVGImageBlock as pr } from "./blocks/ImageBlocks/SVGImageBlock/SVGImageBlock.es.js";
54
- import fr from "./components/shared/StatusSnackbar.es.js";
55
- import cr from "./components/FeedbackDialog.es.js";
56
- import sr from "./components/FeedbackModal.es.js";
57
- import Br from "./components/ConnectionDetailDrillDown.es.js";
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 Dr } from "./components/ErrorCard.es.js";
61
- import Ar from "./components/AmountBreakdownCard.es.js";
62
- import Ir from "./components/BadgedTile.es.js";
63
- import { OverflowMenu as Tr } from "./components/OverflowMenu.es.js";
64
- import { InsightOptionsMenu as yr } from "./components/InsightOptionsMenu.es.js";
65
- import Rr from "./components/StatusBadge.es.js";
66
- import Hr from "./components/CompactInsightCard.es.js";
67
- import { FeedbackBar as Or } from "./components/FeedbackBar.es.js";
68
- import { DismissInsightDialog as Er } from "./components/DismissInsightDialog.es.js";
69
- import { HiddenConfirmationCard as _r } from "./components/HiddenConfirmationCard.es.js";
70
- import { LoadingCard as xr } from "./components/LoadingCard.es.js";
71
- import { ObsolesceBanner as Ur } from "./components/ObsolesceBanner.es.js";
72
- import zr from "./components/BaseLayout.es.js";
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
- Ar as AmountBreakdownCard,
78
- Co as AmountPill,
76
+ Dr as AmountBreakdownCard,
77
+ lo as AmountPill,
79
78
  e as BAR_ARIA_LABEL,
80
79
  f as BAR_CHART_VARIANTS,
81
- Ir as BadgedTile,
80
+ Ar as BadgedTile,
82
81
  D as BarchartBlock,
83
- zr as BaseLayout,
82
+ Ur as BaseLayout,
84
83
  K as BudgetBlock,
85
- Hr as CompactInsightCard,
86
- Br as ConnectionDetailDrillDown,
87
- Y as DebtPayoffCard,
88
- mo as DebtsBlock,
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
- Er as DismissInsightDialog,
91
+ Or as DismissInsightDialog,
94
92
  T as DonutChartBlock,
95
93
  A as DoubleBarChartBlock,
96
94
  y as DoubleProgressBarBlock,
97
- Dr as ErrorCard,
98
- Or as FeedbackBar,
99
- cr as FeedbackDialog,
100
- sr as FeedbackModal,
101
- ao as GasPurchaseBlock,
102
- eo as GoalProgressCard,
103
- no as GoalsBlock,
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
- _r as HiddenConfirmationCard,
103
+ Er as HiddenConfirmationCard,
106
104
  kr as InsightErrorCard,
107
- yr as InsightOptionsMenu,
108
- $ as InsightTransactionRow,
109
- xr as LoadingCard,
110
- Bo as LogoClusterCard,
105
+ Tr as InsightOptionsMenu,
106
+ Y as InsightTransactionRow,
107
+ _r as LoadingCard,
108
+ co as LogoClusterCard,
111
109
  R as LogoFromGuid,
112
- lo as LogoTile,
113
- Ao as MerchantBlock,
114
- ko as MerchantHighlightCard,
115
- Io as NoSpendDaysBlock,
116
- Ur as ObsolesceBanner,
117
- Tr as OverflowMenu,
118
- Do as P2PLogoStack,
119
- To as QuizBlock,
120
- Ro as RepeatingTransactionBlock,
121
- pr as SVGImageBlock,
122
- Ho as SaveAnExtraCard,
123
- Oo as SaveExtraBlock,
124
- _o as SavingsOpportunityBlock,
125
- Eo as SavingsOpportunityCard,
126
- xo as SavingsSummaryBlock,
127
- Rr as StatusBadge,
128
- Uo as StatusMessageCard,
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
- fr as StatusSnackbar,
128
+ pr as StatusSnackbar,
131
129
  I as StepChartBlock,
132
- Jo as SubscriptionHeroCard,
133
- Cr as SurveyModal,
134
- jo as TransactionBlock,
135
- ro as TransactionListCard,
130
+ jo as SubscriptionHeroCard,
131
+ Br as SurveyModal,
132
+ zo as TransactionBlock,
133
+ xo as TransactionListCard,
136
134
  Q as TransferLogoCard,
137
- Ro as UpcomingBillBlock,
138
- yo as UpcomingBillCard,
139
- Xo as UpcomingSubscriptionBlock,
140
- Zo as WeeklySmallPurchasesBlock,
141
- tr as WithdrawalBlock,
142
- or as WithdrawalCard,
143
- n as barChartVariant,
144
- c as buildChartData,
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
- zo as transactionBlockVariant,
150
+ Uo as transactionBlockVariant,
153
151
  a as useBeatActions,
154
152
  g as useBeatCtaActions,
155
- k as useCtaHandler
153
+ C as useCtaHandler
156
154
  };
@@ -87,6 +87,7 @@ var i = (e) => {
87
87
  })),
88
88
  [t.MAKE_TRANSFER_ACTION_BLOCK]: r(() => ({
89
89
  Component: W,
90
+ headerAction: "close",
90
91
  usePrepare: i,
91
92
  title: V
92
93
  })),
@@ -1 +1 @@
1
- {"version":3,"file":"blocks.es.js","names":[],"sources":["../../../src/insights-v2/mappings/blocks.ts"],"sourcesContent":["import {\n AccountBlock,\n AccountSwitchBlock,\n BarchartBlock,\n BudgetBlock,\n DebtsBlock,\n DetailedAccountBlock,\n DonutChartBlock,\n GasPurchaseBlock,\n GoalsBlock,\n MerchantBlock,\n DoubleBarChartBlock,\n DoubleProgressBarBlock,\n NoSpendDaysBlock,\n QuizBlock,\n RepeatingTransactionBlock,\n SaveExtraBlock,\n SavingsOpportunityBlock,\n SavingsSummaryBlock,\n SVGImageBlock,\n UpcomingSubscriptionBlock,\n WeeklySmallPurchasesBlock,\n WithdrawalBlock,\n TransactionBlock,\n} from '../blocks'\nimport StepChartBlock from '../blocks/ChartBlocks/StepChartBlock'\nimport ImageBlock from '../blocks/ImageBlocks/ImageBlock'\n\nimport type { Beat, GlobalCopy, InsightsPayload } from '../../core'\nimport { buildDynamicCopy } from '../../core/utils/Localization'\nimport { ContactSupportActionBlock } from '../actionBlocks/ContactSupportActionBlock'\nimport { FeedbackModalActionBlock } from '../actionBlocks/FeedbackModalActionBlock'\nimport { ConnectionDetailActionBlock } from '../actionBlocks/ConnectionDetailActionBlock'\nimport { ConnectWidgetActionBlock } from '../actionBlocks/ConnectWidgetActionBlock'\nimport { SurveyModalActionBlock } from '../actionBlocks/SurveyModalActionBlock'\nimport { SubscriptionStatusModalBlock } from '../actionBlocks/SubscriptionStatusModalBlock'\nimport { PlaceholderActionBlock } from '../actionBlocks/PlaceholderActionBlock'\nimport { MakeTransferActionBlockLayer } from '../actionBlocks/MakeTransferActionBlock/MakeTransferActionBlockLayer'\nimport { getMakeTransferDrawerTitle } from '../actionBlocks/MakeTransferActionBlock/layout'\nimport { TransactionHistoryBlock } from '../actionBlocks/TransactionHistoryBlock/TransactionHistoryBlock'\nimport { getDrawerHeaderTitle } from '../actionBlocks/TransactionHistoryBlock/utils'\nimport { useTransactionHistoryPrepare } from '../actionBlocks/TransactionHistoryBlock/useTransactionHistoryPrepare'\nimport {\n TransactionDetailsBlock,\n useTransactionDetailsPrepare,\n} from '../actionBlocks/TransactionDetailsBlock'\nimport {\n RecurringTransactionBlock,\n useRecurringTransactionPrepare,\n} from '../actionBlocks/RecurringTransactionBlock'\nimport { TransactionListBlock } from '../actionBlocks/TransactionListBlock'\nimport { getTransactionListDrawerTitle } from '../actionBlocks/TransactionListBlock/layout'\nimport { RemainingCashBlock } from '../actionBlocks/RemainingCashBlock'\nimport { AmountInputModalBlock } from '../actionBlocks/AmountInputModalBlock'\nimport { OverdraftBlock, useOverdraftPrepare } from '../actionBlocks/OverdraftBlock'\nimport { AccountListBlock, useAccountListPrepare } from '../actionBlocks/AccountListBlock'\nimport { EmergencySavingsBlock } from '../actionBlocks/EmergencySavingsBlock'\nimport {\n CreditUtilizationBlock,\n useCreditUtilizationPrepare,\n} from '../actionBlocks/CreditUtilizationBlock'\nimport {\n PayoffCalculatorBlock,\n usePayoffCalculatorPrepare,\n} from '../actionBlocks/PayoffCalculatorBlock'\nimport { BudgetDetailsBlock } from '../actionBlocks/BudgetDetailsBlock'\nimport { useBudgetDetailsPrepare } from '../actionBlocks/BudgetDetailsBlock/useBudgetDetailsPrepare'\nimport { resolveBudgetSubject } from '../actionBlocks/BudgetDetailsBlock/layout'\nimport { AccountDetailsBlock, useAccountDetailsPrepare } from '../actionBlocks/AccountDetailsBlock'\nimport { HelpBlock } from '../actionBlocks/HelpBlock'\nimport {\n PayoffStrategiesBlock,\n usePayoffStrategiesPrepare,\n} from '../actionBlocks/PayoffStrategiesBlock'\nimport { QuizMerchantBlock } from '../actionBlocks/QuizMerchantBlock'\n// Keys live in ./actionBlocksKey (imported directly by chart blocks/tests too) to avoid a\n// circular import between this module and the chart blocks — see that file for details.\nimport { actionBlocksKey } from './actionBlocksKey'\n\n// Drilldown indexes are not passed down: action blocks read them from\n// InsightsV2Store (useInsightsV2Store().actionDrawer).\nexport interface ActionBlockProps {\n beat: Beat\n}\n\nconst noop = (_: ActionBlockProps) => {}\n\n// Re-exported so existing `hasDrawerBlock` imports from this module keep working.\nexport { hasDrawerBlock } from './hasDrawerBlock'\n\nexport interface ActionBlockEntry {\n Component: React.ComponentType<ActionBlockProps>\n usePrepare: (props: ActionBlockProps) => void // required; default to noop in each entry\n // Drawer title from the CTA's variant and copy; falls back to the CTA label when empty.\n title?: (variant: string | null | undefined, copy: GlobalCopy, beat?: Beat) => string\n // 'drawer' (default) or 'modal' (component renders its own dialog, no Drawer wrapper).\n presentation?: 'drawer' | 'modal'\n // The drawer header's close control: 'back' (default, arrow on the left) or 'close' (X on the right).\n headerAction?: 'back' | 'close'\n}\n\n// Registry of drawer drilldowns, keyed by the `block` name the backend sends Add\n// `usePrepare` when the block needs to load data before rendering.\n\n/**\n * Reads its imports on access, not at load: some blocks import this registry back through\n * `ActionBlockLayer`, so a value copied at load would still be `undefined`.\n */\nconst liveEntry = (resolve: () => ActionBlockEntry): ActionBlockEntry => ({\n get Component() {\n return resolve().Component\n },\n get usePrepare() {\n return resolve().usePrepare\n },\n get title() {\n return resolve().title\n },\n get presentation() {\n return resolve().presentation\n },\n get headerAction() {\n return resolve().headerAction\n },\n})\n\nexport const actionBlocks = {\n [actionBlocksKey.PLACEHOLDER_ACTION_BLOCK]: liveEntry(() => ({\n Component: PlaceholderActionBlock,\n usePrepare: noop,\n title: () => 'Action Block Layer Drilldown',\n })),\n [actionBlocksKey.MAKE_TRANSFER_ACTION_BLOCK]: liveEntry(() => ({\n Component: MakeTransferActionBlockLayer,\n usePrepare: noop,\n title: getMakeTransferDrawerTitle,\n })),\n [actionBlocksKey.TRANSCATION_HISTORY_ACTION_BLOCK]: liveEntry(() => ({\n Component: TransactionHistoryBlock,\n usePrepare: useTransactionHistoryPrepare,\n title: getDrawerHeaderTitle,\n })),\n [actionBlocksKey.TRANSACTION_DETAILS_ACTION_BLOCK]: liveEntry(() => ({\n Component: TransactionDetailsBlock,\n usePrepare: useTransactionDetailsPrepare,\n title: () => 'Transaction Details',\n })),\n // Expense Details for one recurring subscription. Which subscription a beat names is resolved in\n // `RecurringTransactionBlock/subscriptionBeats.ts`, not through this registry.\n [actionBlocksKey.RECURRING_TRANSACTION_ACTION_BLOCK]: liveEntry(() => ({\n Component: RecurringTransactionBlock,\n usePrepare: useRecurringTransactionPrepare,\n title: (_variant, copy) => copy.recurring?.expense_details ?? '',\n })),\n // Remaining Cash for the Payday Cash Left Over Status beat. Store-driven: reuses the recurring\n // loader, which also loads accounts and categories, so CashflowStore's computeds are ready.\n [actionBlocksKey.REMAINING_CASH_ACTION_BLOCK]: liveEntry(() => ({\n Component: RemainingCashBlock,\n usePrepare: useRecurringTransactionPrepare,\n title: (_variant, copy) => copy.insights_feed?.remaining_cash?.title ?? '',\n })),\n // The block renders its own drawer (the help module's RequestSupport) on top of the action\n // drawer, so the action drawer's title is the CTA label.\n [actionBlocksKey.CONTACT_SUPPORT_ACTION_BLOCK]: liveEntry(() => ({\n Component: ContactSupportActionBlock,\n usePrepare: noop,\n title: (_variant, copy) => copy.help?.request_support ?? '',\n })),\n [actionBlocksKey.FEEDBACK_MODAL_ACTION_BLOCK]: liveEntry(() => ({\n Component: FeedbackModalActionBlock,\n usePrepare: noop,\n presentation: 'modal',\n })),\n [actionBlocksKey.CONNECTION_DETAIL_ACTION_BLOCK]: liveEntry(() => ({\n Component: ConnectionDetailActionBlock,\n usePrepare: noop,\n title: (_variant, copy) =>\n copy.insights_feed?.connection_details?.connection_details_drawer_title ?? '',\n })),\n // Boots MX's Connect widget (web-widget-sdk iframe) inside the action\n // drawer; the drawer title falls back to the CTA label.\n [actionBlocksKey.CONNECT_WIDGET_ACTION_BLOCK]: liveEntry(() => ({\n Component: ConnectWidgetActionBlock,\n usePrepare: noop,\n })),\n [actionBlocksKey.SURVEY_MODAL_ACTION_BLOCK]: liveEntry(() => ({\n Component: SurveyModalActionBlock,\n usePrepare: noop,\n presentation: 'modal',\n })),\n // Unexpected Subscription Payment's Subscription Status modal.\n [actionBlocksKey.SUBSCRIPTION_STATUS_MODAL_ACTION_BLOCK]: liveEntry(() => ({\n Component: SubscriptionStatusModalBlock,\n usePrepare: noop,\n presentation: 'modal',\n })),\n [actionBlocksKey.TRANSACTION_LIST_ACTION_BLOCK]: liveEntry(() => ({\n Component: TransactionListBlock,\n usePrepare: useTransactionDetailsPrepare,\n title: getTransactionListDrawerTitle,\n })),\n // One whole-dollar setting in a dialog; the CTA variant picks which (low-balance threshold or\n // safety net). A modal: no drawer, so no drawer title.\n [actionBlocksKey.AMOUNT_INPUT_MODAL_ACTION_BLOCK]: liveEntry(() => ({\n Component: AmountInputModalBlock,\n presentation: 'modal',\n // Loads inside the block: it mounts only while open, so mounting is the open-time load.\n usePrepare: noop,\n })),\n // Savings Opportunity's safety net: `safety_net_block` opens the amount-input modal.\n [actionBlocksKey.SAFETY_NET_ACTION_BLOCK]: liveEntry(() => ({\n Component: AmountInputModalBlock,\n presentation: 'modal',\n usePrepare: noop,\n })),\n // Transparent Overdraft's \"Learn more\": the projected overdraft, its account and the confidence\n // meter. Titled from the beat, as the pulse drawer was.\n [actionBlocksKey.OVERDRAFT_ACTION_BLOCK]: liveEntry(() => ({\n Component: OverdraftBlock,\n usePrepare: useOverdraftPrepare,\n title: (_variant, _copy, beat) => beat?.insights_payload?.title ?? '',\n })),\n // Credit Utilization's \"Learn more\": donut summary, legend and the per-card list. Loads accounts\n // for the institution logos; the rows themselves ride on the beat.\n [actionBlocksKey.CREDIT_UTILIZATION_ACTION_BLOCK]: liveEntry(() => ({\n Component: CreditUtilizationBlock,\n usePrepare: useCreditUtilizationPrepare,\n title: (_variant, copy) => copy.insights_feed?.credit_utilization?.title ?? '',\n })),\n [actionBlocksKey.EMERGENCY_SAVINGS_ACTION_BLOCK]: liveEntry(() => ({\n Component: EmergencySavingsBlock,\n usePrepare: noop,\n title: (_variant, _copy, beat) => beat?.insights_payload?.title ?? '',\n })),\n // Monthly Credit Card Interest Summary's \"Learn how to save\": the credit card payoff calculator.\n [actionBlocksKey.PAYOFF_CALCULATOR_ACTION_BLOCK]: liveEntry(() => ({\n Component: PayoffCalculatorBlock,\n usePrepare: usePayoffCalculatorPrepare,\n title: (_variant, copy) => copy.insights_feed?.payoff_calculator?.title ?? '',\n })),\n [actionBlocksKey.BUDGET_DETAILS_ACTION_BLOCK]: liveEntry(() => ({\n Component: BudgetDetailsBlock,\n // Figma's Budget Details: a close X on the right, not the back arrow.\n headerAction: 'close',\n // Loads the budget data and points the transaction store at the budget month, as pulse did.\n usePrepare: useBudgetDetailsPrepare,\n // \"{subject} Budget\" (subject by the CTA variant), else the card's title.\n title: (variant, copy, beat) => {\n const subject = beat ? resolveBudgetSubject(variant, beat, copy) : undefined\n if (subject && copy.budgets?.details_type_title) {\n return buildDynamicCopy(copy.budgets.details_type_title, subject) as string\n }\n\n return beat?.insights_payload?.title || copy.budgets?.details_title || ''\n },\n })),\n // The accounts widget's account details (header, trend chart, tabs, connection, actions) for the\n // beat's primary account. Shared by every beat that opens an account.\n [actionBlocksKey.ACCOUNT_DETAILS_ACTION_BLOCK]: liveEntry(() => ({\n Component: AccountDetailsBlock,\n usePrepare: useAccountDetailsPrepare,\n title: (_variant, copy) => copy.accounts?.account_details ?? '',\n })),\n // Monthly Obligations Status's account list: the beat's calculation and the accounts behind it.\n [actionBlocksKey.ACCOUNT_LIST_ACTION_BLOCK]: liveEntry(() => ({\n Component: AccountListBlock,\n usePrepare: useAccountListPrepare,\n title: (_variant, copy) => copy.insights_feed?.account_list?.title ?? '',\n })),\n // A beat's \"Learn More\": its pre-localized help title and body from the payload's\n // `drilldown_data`. The drawer title is the CTA label.\n [actionBlocksKey.HELP_ACTION_BLOCK]: liveEntry(() => ({\n Component: HelpBlock,\n usePrepare: noop,\n })),\n // Debt Payoff Strategies' \"Learn more\": Avalanche / Snowball tabs over the beat's debt accounts.\n [actionBlocksKey.PAYOFF_STRATEGIES_ACTION_BLOCK]: liveEntry(() => ({\n Component: PayoffStrategiesBlock,\n usePrepare: usePayoffStrategiesPrepare,\n title: (_variant, copy) => copy.insights_feed?.general?.debt_payoff_strategies ?? '',\n })),\n // A Monthly Top Transacted Merchant result row: that merchant's rank, totals and transactions.\n [actionBlocksKey.QUIZ_MERCHANT_ACTION_BLOCK]: liveEntry(() => ({\n Component: QuizMerchantBlock,\n usePrepare: useTransactionDetailsPrepare,\n title: (_variant, copy) => copy.insights_feed?.quiz_block?.drawer_title ?? '',\n })),\n} as Record<string, ActionBlockEntry>\n\nexport const blocks = {\n account_block: AccountBlock,\n account_switch_block: AccountSwitchBlock,\n direct_deposit_block: DetailedAccountBlock,\n bar_chart_block: BarchartBlock,\n budget_block: BudgetBlock,\n debts_block: DebtsBlock,\n donut_chart_block: DonutChartBlock,\n double_bar_chart_block: DoubleBarChartBlock,\n double_progress_bar_block: DoubleProgressBarBlock,\n gas_purchase_block: GasPurchaseBlock,\n goals_block: GoalsBlock,\n image_block: ImageBlock,\n merchant_block: MerchantBlock,\n no_spend_days_block: NoSpendDaysBlock,\n quiz_block: QuizBlock,\n repeating_transaction_block: RepeatingTransactionBlock,\n save_extra_block: SaveExtraBlock,\n savings_amount_block: SavingsOpportunityBlock,\n savings_summary_block: SavingsSummaryBlock,\n step_chart_block: StepChartBlock,\n svg_image_block: SVGImageBlock,\n upcoming_bill_block: RepeatingTransactionBlock,\n upcoming_subscription_block: UpcomingSubscriptionBlock,\n weekly_small_purchases_block: WeeklySmallPurchasesBlock,\n withdrawal_block: WithdrawalBlock,\n transaction_block: TransactionBlock,\n} as Record<string, React.ComponentType<{ payload: InsightsPayload; beatGuid?: string }>>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqFA,IAAM,IAAA,CAAQ,MAAwB;AAAC,GAuBjC,IAAA,CAAa,OAAuD;AAAA,EACxE,IAAI,YAAY;AACd,WAAO,EAAQ,EAAE;AAAA,EACnB;AAAA,EACA,IAAI,aAAa;AACf,WAAO,EAAQ,EAAE;AAAA,EACnB;AAAA,EACA,IAAI,QAAQ;AACV,WAAO,EAAQ,EAAE;AAAA,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E,WAAW;AAAA,IACX,YAAY;AAAA,IACZ,OAAA,CAAQ,GAAU,MAAS,EAAK,eAAe,SAAS,0BAA0B;AAAA,EACpF,EAAE;AAAA,EAED,CAAA,EAAgB,0BAAA,GAA6B,EAAA,OAAiB;AAAA,IAC7D,WAAW;AAAA,IACX,YAAY;AAAA,IACZ,OAAA,CAAQ,GAAU,MAAS,EAAK,eAAe,YAAY,gBAAgB;AAAA,EAC7E,EAAE;AACJ,GAEa,KAAS;AAAA,EACpB,eAAe;AAAA,EACf,sBAAsB;AAAA,EACtB,sBAAsB;AAAA,EACtB,iBAAiB;AAAA,EACjB,cAAc;AAAA,EACd,aAAa;AAAA,EACb,mBAAmB;AAAA,EACnB,wBAAwB;AAAA,EACxB,2BAA2B;AAAA,EAC3B,oBAAoB;AAAA,EACpB,aAAa;AAAA,EACb,aAAa;AAAA,EACb,gBAAgB;AAAA,EAChB,qBAAqB;AAAA,EACrB,YAAY;AAAA,EACZ,6BAA6B;AAAA,EAC7B,kBAAkB;AAAA,EAClB,sBAAsB;AAAA,EACtB,uBAAuB;AAAA,EACvB,kBAAkB;AAAA,EAClB,iBAAiB;AAAA,EACjB,qBAAqB;AAAA,EACrB,6BAA6B;AAAA,EAC7B,8BAA8B;AAAA,EAC9B,kBAAkB;AAAA,EAClB,mBAAmB;AACrB"}
1
+ {"version":3,"file":"blocks.es.js","names":[],"sources":["../../../src/insights-v2/mappings/blocks.ts"],"sourcesContent":["import {\n AccountBlock,\n AccountSwitchBlock,\n BarchartBlock,\n BudgetBlock,\n DebtsBlock,\n DetailedAccountBlock,\n DonutChartBlock,\n GasPurchaseBlock,\n GoalsBlock,\n MerchantBlock,\n DoubleBarChartBlock,\n DoubleProgressBarBlock,\n NoSpendDaysBlock,\n QuizBlock,\n RepeatingTransactionBlock,\n SaveExtraBlock,\n SavingsOpportunityBlock,\n SavingsSummaryBlock,\n SVGImageBlock,\n UpcomingSubscriptionBlock,\n WeeklySmallPurchasesBlock,\n WithdrawalBlock,\n TransactionBlock,\n} from '../blocks'\nimport StepChartBlock from '../blocks/ChartBlocks/StepChartBlock'\nimport ImageBlock from '../blocks/ImageBlocks/ImageBlock'\n\nimport type { Beat, GlobalCopy, InsightsPayload } from '../../core'\nimport { buildDynamicCopy } from '../../core/utils/Localization'\nimport { ContactSupportActionBlock } from '../actionBlocks/ContactSupportActionBlock'\nimport { FeedbackModalActionBlock } from '../actionBlocks/FeedbackModalActionBlock'\nimport { ConnectionDetailActionBlock } from '../actionBlocks/ConnectionDetailActionBlock'\nimport { ConnectWidgetActionBlock } from '../actionBlocks/ConnectWidgetActionBlock'\nimport { SurveyModalActionBlock } from '../actionBlocks/SurveyModalActionBlock'\nimport { SubscriptionStatusModalBlock } from '../actionBlocks/SubscriptionStatusModalBlock'\nimport { PlaceholderActionBlock } from '../actionBlocks/PlaceholderActionBlock'\nimport { MakeTransferActionBlockLayer } from '../actionBlocks/MakeTransferActionBlock/MakeTransferActionBlockLayer'\nimport { getMakeTransferDrawerTitle } from '../actionBlocks/MakeTransferActionBlock/layout'\nimport { TransactionHistoryBlock } from '../actionBlocks/TransactionHistoryBlock/TransactionHistoryBlock'\nimport { getDrawerHeaderTitle } from '../actionBlocks/TransactionHistoryBlock/utils'\nimport { useTransactionHistoryPrepare } from '../actionBlocks/TransactionHistoryBlock/useTransactionHistoryPrepare'\nimport {\n TransactionDetailsBlock,\n useTransactionDetailsPrepare,\n} from '../actionBlocks/TransactionDetailsBlock'\nimport {\n RecurringTransactionBlock,\n useRecurringTransactionPrepare,\n} from '../actionBlocks/RecurringTransactionBlock'\nimport { TransactionListBlock } from '../actionBlocks/TransactionListBlock'\nimport { getTransactionListDrawerTitle } from '../actionBlocks/TransactionListBlock/layout'\nimport { RemainingCashBlock } from '../actionBlocks/RemainingCashBlock'\nimport { AmountInputModalBlock } from '../actionBlocks/AmountInputModalBlock'\nimport { OverdraftBlock, useOverdraftPrepare } from '../actionBlocks/OverdraftBlock'\nimport { AccountListBlock, useAccountListPrepare } from '../actionBlocks/AccountListBlock'\nimport { EmergencySavingsBlock } from '../actionBlocks/EmergencySavingsBlock'\nimport {\n CreditUtilizationBlock,\n useCreditUtilizationPrepare,\n} from '../actionBlocks/CreditUtilizationBlock'\nimport {\n PayoffCalculatorBlock,\n usePayoffCalculatorPrepare,\n} from '../actionBlocks/PayoffCalculatorBlock'\nimport { BudgetDetailsBlock } from '../actionBlocks/BudgetDetailsBlock'\nimport { useBudgetDetailsPrepare } from '../actionBlocks/BudgetDetailsBlock/useBudgetDetailsPrepare'\nimport { resolveBudgetSubject } from '../actionBlocks/BudgetDetailsBlock/layout'\nimport { AccountDetailsBlock, useAccountDetailsPrepare } from '../actionBlocks/AccountDetailsBlock'\nimport { HelpBlock } from '../actionBlocks/HelpBlock'\nimport {\n PayoffStrategiesBlock,\n usePayoffStrategiesPrepare,\n} from '../actionBlocks/PayoffStrategiesBlock'\nimport { QuizMerchantBlock } from '../actionBlocks/QuizMerchantBlock'\n// Keys live in ./actionBlocksKey (imported directly by chart blocks/tests too) to avoid a\n// circular import between this module and the chart blocks — see that file for details.\nimport { actionBlocksKey } from './actionBlocksKey'\n\n// Drilldown indexes are not passed down: action blocks read them from\n// InsightsV2Store (useInsightsV2Store().actionDrawer).\nexport interface ActionBlockProps {\n beat: Beat\n}\n\nconst noop = (_: ActionBlockProps) => {}\n\n// Re-exported so existing `hasDrawerBlock` imports from this module keep working.\nexport { hasDrawerBlock } from './hasDrawerBlock'\n\nexport interface ActionBlockEntry {\n Component: React.ComponentType<ActionBlockProps>\n usePrepare: (props: ActionBlockProps) => void // required; default to noop in each entry\n // Drawer title from the CTA's variant and copy; falls back to the CTA label when empty.\n title?: (variant: string | null | undefined, copy: GlobalCopy, beat?: Beat) => string\n // 'drawer' (default) or 'modal' (component renders its own dialog, no Drawer wrapper).\n presentation?: 'drawer' | 'modal'\n // The drawer header's close control: 'back' (default, arrow on the left) or 'close' (X on the right).\n headerAction?: 'back' | 'close'\n}\n\n// Registry of drawer drilldowns, keyed by the `block` name the backend sends Add\n// `usePrepare` when the block needs to load data before rendering.\n\n/**\n * Reads its imports on access, not at load: some blocks import this registry back through\n * `ActionBlockLayer`, so a value copied at load would still be `undefined`.\n */\nconst liveEntry = (resolve: () => ActionBlockEntry): ActionBlockEntry => ({\n get Component() {\n return resolve().Component\n },\n get usePrepare() {\n return resolve().usePrepare\n },\n get title() {\n return resolve().title\n },\n get presentation() {\n return resolve().presentation\n },\n get headerAction() {\n return resolve().headerAction\n },\n})\n\nexport const actionBlocks = {\n [actionBlocksKey.PLACEHOLDER_ACTION_BLOCK]: liveEntry(() => ({\n Component: PlaceholderActionBlock,\n usePrepare: noop,\n title: () => 'Action Block Layer Drilldown',\n })),\n [actionBlocksKey.MAKE_TRANSFER_ACTION_BLOCK]: liveEntry(() => ({\n Component: MakeTransferActionBlockLayer,\n headerAction: 'close',\n usePrepare: noop,\n title: getMakeTransferDrawerTitle,\n })),\n [actionBlocksKey.TRANSCATION_HISTORY_ACTION_BLOCK]: liveEntry(() => ({\n Component: TransactionHistoryBlock,\n usePrepare: useTransactionHistoryPrepare,\n title: getDrawerHeaderTitle,\n })),\n [actionBlocksKey.TRANSACTION_DETAILS_ACTION_BLOCK]: liveEntry(() => ({\n Component: TransactionDetailsBlock,\n usePrepare: useTransactionDetailsPrepare,\n title: () => 'Transaction Details',\n })),\n // Expense Details for one recurring subscription. Which subscription a beat names is resolved in\n // `RecurringTransactionBlock/subscriptionBeats.ts`, not through this registry.\n [actionBlocksKey.RECURRING_TRANSACTION_ACTION_BLOCK]: liveEntry(() => ({\n Component: RecurringTransactionBlock,\n usePrepare: useRecurringTransactionPrepare,\n title: (_variant, copy) => copy.recurring?.expense_details ?? '',\n })),\n // Remaining Cash for the Payday Cash Left Over Status beat. Store-driven: reuses the recurring\n // loader, which also loads accounts and categories, so CashflowStore's computeds are ready.\n [actionBlocksKey.REMAINING_CASH_ACTION_BLOCK]: liveEntry(() => ({\n Component: RemainingCashBlock,\n usePrepare: useRecurringTransactionPrepare,\n title: (_variant, copy) => copy.insights_feed?.remaining_cash?.title ?? '',\n })),\n // The block renders its own drawer (the help module's RequestSupport) on top of the action\n // drawer, so the action drawer's title is the CTA label.\n [actionBlocksKey.CONTACT_SUPPORT_ACTION_BLOCK]: liveEntry(() => ({\n Component: ContactSupportActionBlock,\n usePrepare: noop,\n title: (_variant, copy) => copy.help?.request_support ?? '',\n })),\n [actionBlocksKey.FEEDBACK_MODAL_ACTION_BLOCK]: liveEntry(() => ({\n Component: FeedbackModalActionBlock,\n usePrepare: noop,\n presentation: 'modal',\n })),\n [actionBlocksKey.CONNECTION_DETAIL_ACTION_BLOCK]: liveEntry(() => ({\n Component: ConnectionDetailActionBlock,\n usePrepare: noop,\n title: (_variant, copy) =>\n copy.insights_feed?.connection_details?.connection_details_drawer_title ?? '',\n })),\n // Boots MX's Connect widget (web-widget-sdk iframe) inside the action\n // drawer; the drawer title falls back to the CTA label.\n [actionBlocksKey.CONNECT_WIDGET_ACTION_BLOCK]: liveEntry(() => ({\n Component: ConnectWidgetActionBlock,\n usePrepare: noop,\n })),\n [actionBlocksKey.SURVEY_MODAL_ACTION_BLOCK]: liveEntry(() => ({\n Component: SurveyModalActionBlock,\n usePrepare: noop,\n presentation: 'modal',\n })),\n // Unexpected Subscription Payment's Subscription Status modal.\n [actionBlocksKey.SUBSCRIPTION_STATUS_MODAL_ACTION_BLOCK]: liveEntry(() => ({\n Component: SubscriptionStatusModalBlock,\n usePrepare: noop,\n presentation: 'modal',\n })),\n [actionBlocksKey.TRANSACTION_LIST_ACTION_BLOCK]: liveEntry(() => ({\n Component: TransactionListBlock,\n usePrepare: useTransactionDetailsPrepare,\n title: getTransactionListDrawerTitle,\n })),\n // One whole-dollar setting in a dialog; the CTA variant picks which (low-balance threshold or\n // safety net). A modal: no drawer, so no drawer title.\n [actionBlocksKey.AMOUNT_INPUT_MODAL_ACTION_BLOCK]: liveEntry(() => ({\n Component: AmountInputModalBlock,\n presentation: 'modal',\n // Loads inside the block: it mounts only while open, so mounting is the open-time load.\n usePrepare: noop,\n })),\n // Savings Opportunity's safety net: `safety_net_block` opens the amount-input modal.\n [actionBlocksKey.SAFETY_NET_ACTION_BLOCK]: liveEntry(() => ({\n Component: AmountInputModalBlock,\n presentation: 'modal',\n usePrepare: noop,\n })),\n // Transparent Overdraft's \"Learn more\": the projected overdraft, its account and the confidence\n // meter. Titled from the beat, as the pulse drawer was.\n [actionBlocksKey.OVERDRAFT_ACTION_BLOCK]: liveEntry(() => ({\n Component: OverdraftBlock,\n usePrepare: useOverdraftPrepare,\n title: (_variant, _copy, beat) => beat?.insights_payload?.title ?? '',\n })),\n // Credit Utilization's \"Learn more\": donut summary, legend and the per-card list. Loads accounts\n // for the institution logos; the rows themselves ride on the beat.\n [actionBlocksKey.CREDIT_UTILIZATION_ACTION_BLOCK]: liveEntry(() => ({\n Component: CreditUtilizationBlock,\n usePrepare: useCreditUtilizationPrepare,\n title: (_variant, copy) => copy.insights_feed?.credit_utilization?.title ?? '',\n })),\n [actionBlocksKey.EMERGENCY_SAVINGS_ACTION_BLOCK]: liveEntry(() => ({\n Component: EmergencySavingsBlock,\n usePrepare: noop,\n title: (_variant, _copy, beat) => beat?.insights_payload?.title ?? '',\n })),\n // Monthly Credit Card Interest Summary's \"Learn how to save\": the credit card payoff calculator.\n [actionBlocksKey.PAYOFF_CALCULATOR_ACTION_BLOCK]: liveEntry(() => ({\n Component: PayoffCalculatorBlock,\n usePrepare: usePayoffCalculatorPrepare,\n title: (_variant, copy) => copy.insights_feed?.payoff_calculator?.title ?? '',\n })),\n [actionBlocksKey.BUDGET_DETAILS_ACTION_BLOCK]: liveEntry(() => ({\n Component: BudgetDetailsBlock,\n // Figma's Budget Details: a close X on the right, not the back arrow.\n headerAction: 'close',\n // Loads the budget data and points the transaction store at the budget month, as pulse did.\n usePrepare: useBudgetDetailsPrepare,\n // \"{subject} Budget\" (subject by the CTA variant), else the card's title.\n title: (variant, copy, beat) => {\n const subject = beat ? resolveBudgetSubject(variant, beat, copy) : undefined\n if (subject && copy.budgets?.details_type_title) {\n return buildDynamicCopy(copy.budgets.details_type_title, subject) as string\n }\n\n return beat?.insights_payload?.title || copy.budgets?.details_title || ''\n },\n })),\n // The accounts widget's account details (header, trend chart, tabs, connection, actions) for the\n // beat's primary account. Shared by every beat that opens an account.\n [actionBlocksKey.ACCOUNT_DETAILS_ACTION_BLOCK]: liveEntry(() => ({\n Component: AccountDetailsBlock,\n usePrepare: useAccountDetailsPrepare,\n title: (_variant, copy) => copy.accounts?.account_details ?? '',\n })),\n // Monthly Obligations Status's account list: the beat's calculation and the accounts behind it.\n [actionBlocksKey.ACCOUNT_LIST_ACTION_BLOCK]: liveEntry(() => ({\n Component: AccountListBlock,\n usePrepare: useAccountListPrepare,\n title: (_variant, copy) => copy.insights_feed?.account_list?.title ?? '',\n })),\n // A beat's \"Learn More\": its pre-localized help title and body from the payload's\n // `drilldown_data`. The drawer title is the CTA label.\n [actionBlocksKey.HELP_ACTION_BLOCK]: liveEntry(() => ({\n Component: HelpBlock,\n usePrepare: noop,\n })),\n // Debt Payoff Strategies' \"Learn more\": Avalanche / Snowball tabs over the beat's debt accounts.\n [actionBlocksKey.PAYOFF_STRATEGIES_ACTION_BLOCK]: liveEntry(() => ({\n Component: PayoffStrategiesBlock,\n usePrepare: usePayoffStrategiesPrepare,\n title: (_variant, copy) => copy.insights_feed?.general?.debt_payoff_strategies ?? '',\n })),\n // A Monthly Top Transacted Merchant result row: that merchant's rank, totals and transactions.\n [actionBlocksKey.QUIZ_MERCHANT_ACTION_BLOCK]: liveEntry(() => ({\n Component: QuizMerchantBlock,\n usePrepare: useTransactionDetailsPrepare,\n title: (_variant, copy) => copy.insights_feed?.quiz_block?.drawer_title ?? '',\n })),\n} as Record<string, ActionBlockEntry>\n\nexport const blocks = {\n account_block: AccountBlock,\n account_switch_block: AccountSwitchBlock,\n direct_deposit_block: DetailedAccountBlock,\n bar_chart_block: BarchartBlock,\n budget_block: BudgetBlock,\n debts_block: DebtsBlock,\n donut_chart_block: DonutChartBlock,\n double_bar_chart_block: DoubleBarChartBlock,\n double_progress_bar_block: DoubleProgressBarBlock,\n gas_purchase_block: GasPurchaseBlock,\n goals_block: GoalsBlock,\n image_block: ImageBlock,\n merchant_block: MerchantBlock,\n no_spend_days_block: NoSpendDaysBlock,\n quiz_block: QuizBlock,\n repeating_transaction_block: RepeatingTransactionBlock,\n save_extra_block: SaveExtraBlock,\n savings_amount_block: SavingsOpportunityBlock,\n savings_summary_block: SavingsSummaryBlock,\n step_chart_block: StepChartBlock,\n svg_image_block: SVGImageBlock,\n upcoming_bill_block: RepeatingTransactionBlock,\n upcoming_subscription_block: UpcomingSubscriptionBlock,\n weekly_small_purchases_block: WeeklySmallPurchasesBlock,\n withdrawal_block: WithdrawalBlock,\n transaction_block: TransactionBlock,\n} as Record<string, React.ComponentType<{ payload: InsightsPayload; beatGuid?: string }>>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqFA,IAAM,IAAA,CAAQ,MAAwB;AAAC,GAuBjC,IAAA,CAAa,OAAuD;AAAA,EACxE,IAAI,YAAY;AACd,WAAO,EAAQ,EAAE;AAAA,EACnB;AAAA,EACA,IAAI,aAAa;AACf,WAAO,EAAQ,EAAE;AAAA,EACnB;AAAA,EACA,IAAI,QAAQ;AACV,WAAO,EAAQ,EAAE;AAAA,EACnB;AAAA,EACA,IAAI,eAAe;AACjB,WAAO,EAAQ,EAAE;AAAA,EACnB;AAAA,EACA,IAAI,eAAe;AACjB,WAAO,EAAQ,EAAE;AAAA,EACnB;AACF,IAEa,KAAe;AAAA,EACzB,CAAA,EAAgB,wBAAA,GAA2B,EAAA,OAAiB;AAAA,IAC3D,WAAW;AAAA,IACX,YAAY;AAAA,IACZ,OAAA,MAAa;AAAA,EACf,EAAE;AAAA,EACD,CAAA,EAAgB,0BAAA,GAA6B,EAAA,OAAiB;AAAA,IAC7D,WAAW;AAAA,IACX,cAAc;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,sBAAsB;AAAA,EACtB,iBAAiB;AAAA,EACjB,cAAc;AAAA,EACd,aAAa;AAAA,EACb,mBAAmB;AAAA,EACnB,wBAAwB;AAAA,EACxB,2BAA2B;AAAA,EAC3B,oBAAoB;AAAA,EACpB,aAAa;AAAA,EACb,aAAa;AAAA,EACb,gBAAgB;AAAA,EAChB,qBAAqB;AAAA,EACrB,YAAY;AAAA,EACZ,6BAA6B;AAAA,EAC7B,kBAAkB;AAAA,EAClB,sBAAsB;AAAA,EACtB,uBAAuB;AAAA,EACvB,kBAAkB;AAAA,EAClB,iBAAiB;AAAA,EACjB,qBAAqB;AAAA,EACrB,6BAA6B;AAAA,EAC7B,8BAA8B;AAAA,EAC9B,kBAAkB;AAAA,EAClB,mBAAmB;AACrB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "9.7.149",
3
+ "version": "9.7.151",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",
@@ -1,17 +0,0 @@
1
- import { DebtPayoffCardStyleProps } from '../../../components/DebtPayoffCard';
2
- export declare const debtsBlockVariant: {
3
- /** Debt Payoff Strategies, one account: balance plus projected payoff / monthly payment / rate rows. */
4
- readonly ProjectedPayoff: "projected_payoff";
5
- /** Debt Payoff Strategies, several accounts: one row per debt (balance, rate) and the total owed. */
6
- readonly DebtSummary: "debt_summary";
7
- };
8
- export type DebtsBlockVariant = (typeof debtsBlockVariant)[keyof typeof debtsBlockVariant];
9
- export interface DebtsBlockLayoutConfig {
10
- /** Which card the variant draws: the single-account payoff card or the multi-account summary list. */
11
- card: 'payoff' | 'summary';
12
- /** Payoff card slot + pill tokens. */
13
- style?: DebtPayoffCardStyleProps;
14
- }
15
- /** `projected_payoff` look: primary-tinted slot and pill. The card story mirrors it from here. */
16
- export declare const PAYOFF_STYLE: DebtPayoffCardStyleProps;
17
- export declare const DEBTS_LAYOUT: Record<string, DebtsBlockLayoutConfig>;
@@ -1,24 +0,0 @@
1
- var r = {
2
- ProjectedPayoff: "projected_payoff",
3
- DebtSummary: "debt_summary"
4
- }, e = {
5
- bgcolor: "primary.lighter",
6
- pill: {
7
- bgcolor: "primary.lighter",
8
- labelColor: "text.primary"
9
- }
10
- }, a = {
11
- card: "payoff",
12
- style: e
13
- }, o = {
14
- [r.ProjectedPayoff]: a,
15
- [r.DebtSummary]: { card: "summary" },
16
- default: a
17
- };
18
- export {
19
- o as DEBTS_LAYOUT,
20
- e as PAYOFF_STYLE,
21
- r as debtsBlockVariant
22
- };
23
-
24
- //# sourceMappingURL=layout.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"layout.es.js","names":[],"sources":["../../../../../src/insights-v2/blocks/ComponentBlocks/DebtsBlock/layout.ts"],"sourcesContent":["import type { DebtPayoffCardStyleProps } from '../../../components/DebtPayoffCard'\n\nexport const debtsBlockVariant = {\n /** Debt Payoff Strategies, one account: balance plus projected payoff / monthly payment / rate rows. */\n ProjectedPayoff: 'projected_payoff',\n /** Debt Payoff Strategies, several accounts: one row per debt (balance, rate) and the total owed. */\n DebtSummary: 'debt_summary',\n} as const\n\nexport type DebtsBlockVariant = (typeof debtsBlockVariant)[keyof typeof debtsBlockVariant]\n\nexport interface DebtsBlockLayoutConfig {\n /** Which card the variant draws: the single-account payoff card or the multi-account summary list. */\n card: 'payoff' | 'summary'\n /** Payoff card slot + pill tokens. */\n style?: DebtPayoffCardStyleProps\n}\n\n/** `projected_payoff` look: primary-tinted slot and pill. The card story mirrors it from here. */\nexport const PAYOFF_STYLE: DebtPayoffCardStyleProps = {\n bgcolor: 'primary.lighter',\n pill: { bgcolor: 'primary.lighter', labelColor: 'text.primary' },\n}\n\nconst PROJECTED_PAYOFF: DebtsBlockLayoutConfig = { card: 'payoff', style: PAYOFF_STYLE }\n\nexport const DEBTS_LAYOUT: Record<string, DebtsBlockLayoutConfig> = {\n [debtsBlockVariant.ProjectedPayoff]: PROJECTED_PAYOFF,\n [debtsBlockVariant.DebtSummary]: { card: 'summary' },\n // Neutral fallback for an unknown variant: the payoff card. `resolveVariantConfig` warns first.\n default: PROJECTED_PAYOFF,\n}\n"],"mappings":"AAEA,IAAa,IAAoB;AAAA,EAE/B,iBAAiB;AAAA,EAEjB,aAAa;AACf,GAYa,IAAyC;AAAA,EACpD,SAAS;AAAA,EACT,MAAM;AAAA,IAAE,SAAS;AAAA,IAAmB,YAAY;AAAA,EAAe;AACjE,GAEM,IAA2C;AAAA,EAAE,MAAM;AAAA,EAAU,OAAO;AAAa,GAE1E,IAAuD;AAAA,EACjE,CAAA,EAAkB,eAAA,GAAkB;AAAA,EACpC,CAAA,EAAkB,WAAA,GAAc,EAAE,MAAM,UAAU;AAAA,EAEnD,SAAS;AACX"}
@@ -1,30 +0,0 @@
1
- import s from "../LogoMark.es.js";
2
- import i from "@mui/material/Stack";
3
- import { Icon as n } from "@mxenabled/mx-icons";
4
- import { jsx as o } from "react/jsx-runtime";
5
- var a = 48, m = ({ iconName: t }) => /* @__PURE__ */ o(i, {
6
- sx: {
7
- alignItems: "center",
8
- bgcolor: "success.main",
9
- height: "100%",
10
- justifyContent: "center",
11
- width: "100%"
12
- },
13
- children: /* @__PURE__ */ o(n, {
14
- name: t,
15
- size: 24,
16
- sx: { color: "success.contrastText" }
17
- })
18
- }), f = ({ iconName: t = "payments", institutionGuid: e, institutionName: r }) => e ? /* @__PURE__ */ o(s, {
19
- logo: {
20
- institution_guid: e,
21
- institution_name: r
22
- },
23
- size: a
24
- }) : /* @__PURE__ */ o(m, { iconName: t });
25
- export {
26
- f as DepositLogo,
27
- f as default
28
- };
29
-
30
- //# sourceMappingURL=DepositLogo.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DepositLogo.es.js","names":[],"sources":["../../../../src/insights-v2/components/ComponentBlocks/DepositLogo.tsx"],"sourcesContent":["import Stack from '@mui/material/Stack'\n\nimport { Icon } from '@mxenabled/mx-icons'\n\nimport LogoMark from '../LogoMark'\n\ninterface DepositLogoProps {\n /** mx-icons glyph for the generic tile when no institution guid is sent. */\n iconName?: string\n /** Renders the institution's logo when present. */\n institutionGuid?: string\n /** The institution's name, used as the logo's alt text. */\n institutionName?: string\n}\n\nconst SIZE = 48\n\n/** Themed tile standing in for the logo when no guid is sent; theme colors keep it right in dark mode. */\nconst DepositLogoTile = ({ iconName }: { iconName: string }) => (\n <Stack\n sx={{\n alignItems: 'center',\n bgcolor: 'success.main',\n height: '100%',\n justifyContent: 'center',\n width: '100%',\n }}\n >\n <Icon name={iconName} size={24} sx={{ color: 'success.contrastText' }} />\n </Stack>\n)\n\n/** Logo shown in a deposit callout: the institution's logo, or a themed generic tile without one. */\nexport const DepositLogo = ({\n iconName = 'payments',\n institutionGuid,\n institutionName,\n}: DepositLogoProps) =>\n institutionGuid ? (\n <LogoMark\n logo={{ institution_guid: institutionGuid, institution_name: institutionName }}\n size={SIZE}\n />\n ) : (\n <DepositLogoTile iconName={iconName} />\n )\n\nexport default DepositLogo\n"],"mappings":";;;;AAeA,IAAM,IAAO,IAGP,IAAA,CAAmB,EAAE,UAAA,EAAA,MACzB,gBAAA,EAAC,GAAD;AAAA,EACE,IAAI;AAAA,IACF,YAAY;AAAA,IACZ,SAAS;AAAA,IACT,QAAQ;AAAA,IACR,gBAAgB;AAAA,IAChB,OAAO;AAAA,EACT;AAAA,EAEA,UAAA,gBAAA,EAAC,GAAD;AAAA,IAAM,MAAM;AAAA,IAAU,MAAM;AAAA,IAAI,IAAI,EAAE,OAAO,uBAAuB;AAAA,EAAI,CAAA;AACnE,CAAA,GAII,IAAA,CAAe,EAC1B,UAAA,IAAW,YACX,iBAAA,GACA,iBAAA,EAAA,MAEA,IACE,gBAAA,EAAC,GAAD;AAAA,EACE,MAAM;AAAA,IAAE,kBAAkB;AAAA,IAAiB,kBAAkB;AAAA,EAAgB;AAAA,EAC7E,MAAM;AACP,CAAA,IAED,gBAAA,EAAC,GAAD,EAA2B,UAAA,EAAW,CAAA"}
@@ -1,48 +0,0 @@
1
- import { ReactNode } from 'react';
2
- export interface DebtPayoffStat {
3
- /** Row label, e.g. "Projected payoff". */
4
- label: ReactNode;
5
- /** Pre-formatted row value, e.g. "Mar 2027". */
6
- value: ReactNode;
7
- }
8
- export interface DebtPayoffPillConfig {
9
- /** Pill background color token. The pill is borderless. */
10
- bgcolor: string;
11
- /** Pill label color token. */
12
- labelColor: string;
13
- }
14
- /**
15
- * Style props for the card. The Debts block supplies them for its look; the card itself
16
- * is variant-agnostic. Only what a caller sets today is here; add a knob with its first caller.
17
- */
18
- export interface DebtPayoffCardStyleProps {
19
- /** Slot surface token behind the white card. Default `background.default`. */
20
- bgcolor?: string;
21
- /** Status pill color tokens. */
22
- pill?: DebtPayoffPillConfig;
23
- }
24
- interface DebtPayoffCardProps extends DebtPayoffCardStyleProps {
25
- /** Institution/account logo rendered beside the account name. */
26
- logo: ReactNode;
27
- /** Primary line, e.g. "Epic Bank Credit *0987". */
28
- name: ReactNode;
29
- /** Optional secondary line beneath the name, e.g. "Credit Card". */
30
- subtitle?: ReactNode;
31
- /** Caption above the balance, e.g. "Current balance". Rendered only together with `balance`. */
32
- balanceLabel?: ReactNode;
33
- /** Pre-formatted balance, e.g. "$4,500.00". Omitted (with its caption) when unknown. */
34
- balance?: ReactNode;
35
- /** Label/value rows beneath the balance (payoff date, monthly payment, rate). */
36
- stats?: DebtPayoffStat[];
37
- /** Optional status pill label beside the account, e.g. the payoff strategy name. */
38
- statusLabel?: ReactNode;
39
- }
40
- /**
41
- * A debt account card: logo + account name row (with an optional status pill), the current
42
- * balance, and a divided list of label/value payoff stats, on a tinted slot.
43
- *
44
- * Purely presentational — it knows nothing about beats or variants; the Debts block passes
45
- * the style props for its look.
46
- */
47
- declare const DebtPayoffCard: ({ balance, balanceLabel, bgcolor, logo, name, pill, stats, statusLabel, subtitle, }: DebtPayoffCardProps) => import("react/jsx-runtime").JSX.Element;
48
- export default DebtPayoffCard;