@mx-cartographer/experiences 9.7.34 → 9.7.35

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
+ ## [9.7.35] - 10-23-2026
2
+
3
+ - **ADDED** - `transparent_overdraft_block` action block for the Transparent Overdraft beat's "Learn more": the account, projected overdraft amount, 7-day line and a four-band confidence meter, with copy from the new `insights_feed.transparent_overdraft` namespace. "Transfer funds" posts op_1 with `projected_overdraft_amount`, `destination_account_ids` and `destination_account_id` through `ctaPostMessages`. Fixture, contract test, stories and `docs/action-blocks/overdraft-block.md` (MEW2-3355)
4
+
1
5
  ## [9.7.34] - 10-23-2026
2
6
 
3
7
  - **ADDED** - `atomic_flow` CTA action (ditto `primary_cta_action`, sent today by Set Up Direct Deposit's `not_set_up` state): delegates the press to the host's `atomicTransact` action and stops, with no drawer, post message or refetch from here. The host owns the Atomic SDK token, flow and lifecycle, so experiences knows nothing about Atomic beyond the action name. A host with no `onCtaAction` shows an error status on press; one that has it but does not know `atomicTransact` (pulse before !3858) logs a warning and the press records `done`, so ship the host side first. `HOST_ACTIONS.atomicTransact` added; `CtaActions › SetUpDirectDepositAtomicFlow` story (WEC-1899)
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @mx-cartographer/experiences
2
2
 
3
- @mx-cartographer/experiences is a React-based library of financial experience widgets designed for seamless integration within the MX ecosystem. It provides a robust collection of modular widgets (e.g., Accounts, Budgets, Cashflow) built on top of Material UI (MUI) [^MUI_VER] and the MXUI design system [^MXUI_VER], powered by MobX [^MOBX_VER] for scalable state management.
3
+ @mx-cartographer/experiences is a React library of financial widgets for MX applications. Each widget (for example Accounts, Budgets, and Cashflow) has its own entry point. The widgets use Material UI (MUI), the MXUI design system, and MobX for state management. The [package.json](package.json) file lists the versions of each package.
4
4
 
5
5
  ## Documentation
6
6
 
@@ -10,6 +10,7 @@
10
10
  - [API and Data](docs/API_AND_DATA.md)
11
11
  - [Styling and Theming](docs/STYLING_AND_THEMING.md)
12
12
  - [Testing](docs/TESTING.md)
13
+ - [Insights V2 Action Blocks](docs/action-blocks/README.md)
13
14
 
14
15
  ## Tech Stack
15
16
 
@@ -20,7 +21,7 @@ The library is built using a modern React stack, leveraging industry-standard to
20
21
  | **Framework** | [React](https://reactjs.org/) | Core library for building declarative UI components. |
21
22
  | **Language** | [TypeScript](https://www.typescriptlang.org/) | Provides static typing for improved maintainability and developer experience. |
22
23
  | **Styling** | [Material UI (MUI)](https://mui.com/) | Base UI component framework and styling system. |
23
- | **Design System** | [@mxenabled/mxui](https://mx.atlassian.net/wiki) | MX-themed overrides and consistent UI primitives. |
24
+ | **Design System** | [@mxenabled/mxui](https://mxcom.atlassian.net/wiki) | MX-themed overrides and consistent UI primitives. |
24
25
  | **State Management** | [MobX](https://mobx.js.org/) | Scalable and observable state management for complex widget interactions. |
25
26
  | **Data Visualization** | [D3.js](https://d3js.org/) | Powering complex charts and interactive data representations. |
26
27
  | **Build Tool** | [Vite](https://vitejs.dev/) | Next-generation frontend tooling for fast builds and development. |
@@ -32,7 +33,6 @@ The library is built using a modern React stack, leveraging industry-standard to
32
33
  - [Installation](#installation)
33
34
  - [Usage](#usage)
34
35
  - [Architecture](#architecture)
35
- - [Project Structure](#project-structure)
36
36
  - [Testing](#testing)
37
37
  - [Contributing](#contributing)
38
38
  - [Support](#support)
@@ -40,10 +40,11 @@ The library is built using a modern React stack, leveraging industry-standard to
40
40
  ## Getting Started
41
41
 
42
42
  ### Prerequisites
43
- - **Node.js**: v18.0.0 or higher
44
- - **Yarn**: 4.15.0 [^YARN_VER]
45
- - **React**: 19.x [^REACT_VER]
46
- - **MobX**: 6.15.0 [^MOBX_VER]
43
+
44
+ You need these tools to work in this repo:
45
+
46
+ - Node.js: the current LTS version. CI uses `node:lts-alpine`.
47
+ - Yarn: the version in the `packageManager` field of [package.json](package.json). Enable Corepack to get it.
47
48
 
48
49
  ### Installation
49
50
 
@@ -53,6 +54,8 @@ Install the library using yarn:
53
54
  yarn add @mx-cartographer/experiences
54
55
  ```
55
56
 
57
+ Your app must install the packages listed under `peerDependencies` in [package.json](package.json).
58
+
56
59
  Your app must also install the MUI X packages at the versions listed under `peerDependencies` in `package.json`. experiences, mxui, and your app then share one copy. The data grid packages are needed only for widgets that show a table.
57
60
 
58
61
  The QA storybook containing the latest Experience changes is [accessible here](https://experiences.kube.qa.internal.mx/?path=/docs/experiences-introduction--docs).
@@ -60,112 +63,51 @@ The QA storybook containing the latest Experience changes is [accessible here](h
60
63
  ## Usage
61
64
 
62
65
  ### Integrating a Widget
63
- To use an experience widget, import it from its feature-specific entry point. Most widgets are designed to automatically wrap themselves in a `WidgetContainer` for consistent layout.
66
+
67
+ Import each widget from its feature entry point. A widget reads its data from a `GlobalStore`, so render it inside a `GlobalDataProvider`. Most widgets wrap themselves in a `WidgetContainer` for a consistent layout.
64
68
 
65
69
  ```tsx
66
70
  import React from 'react';
71
+ import { GlobalDataProvider, GlobalStore } from '@mx-cartographer/experiences/common';
67
72
  import { AccountsWidget } from '@mx-cartographer/experiences/accounts';
68
73
 
69
- const MyDashboard = () => {
70
- return (
74
+ const globalStore = new GlobalStore();
75
+ globalStore.loadData();
76
+
77
+ const MyDashboard = () => (
78
+ <GlobalDataProvider
79
+ globalStore={globalStore}
80
+ onError={() => {}}
81
+ onEvent={() => {}}
82
+ onPageView={() => {}}
83
+ >
71
84
  <div style={{ height: '600px', width: '100%' }}>
72
- <AccountsWidget
73
- onBackClick={() => console.log('User clicked back')}
74
- />
85
+ <AccountsWidget onBackClick={() => console.log('User clicked back')} />
75
86
  </div>
76
- );
77
- };
87
+ </GlobalDataProvider>
88
+ );
78
89
  ```
79
90
 
80
91
  ### Common Configuration
81
- Widgets often accept `sx` props for styling and specific callbacks for navigation or analytics.
92
+
93
+ Most full widgets accept the `WidgetProps` type from `src/core/types/Widgets.ts`: an `sx` prop for styles, a `title`, and navigation callbacks such as `onBackClick` and `onMenuClick`.
82
94
 
83
95
  ```tsx
84
- import { BudgetsWidget } from '@mx-cartographer/experiences/budgets';
96
+ import { BubbleBudgetsWidget } from '@mx-cartographer/experiences/budgets';
85
97
 
86
- <BudgetsWidget
98
+ <BubbleBudgetsWidget
87
99
  sx={{ m: 2, borderRadius: '8px' }}
88
- onBudgetClick={(budgetId) => navigate(`/budgets/${budgetId}`)}
100
+ onBackClick={() => navigate('/')}
89
101
  />
90
102
  ```
91
103
 
92
104
  ## Architecture
93
105
 
94
- The project follows a modular architecture where feature widgets leverage shared infrastructure and a unified design system.
95
-
96
- ```mermaid
97
- graph TB
98
- subgraph "Consumer Application"
99
- App[React Application]
100
- end
101
-
102
- subgraph "@mx-cartographer/experiences"
103
- subgraph "Common Infrastructure (src/common)"
104
- WC[WidgetContainer]
105
- GP[WidgetContainerProvider]
106
- GS[GlobalUiStore / GlobalCopyStore]
107
- API[WidgetApi / Fetch]
108
- end
109
-
110
- subgraph "Experience Widgets (src/[feature])"
111
- AW[AccountsWidget]
112
- BW[BudgetsWidget]
113
- CW[CashflowWidget]
114
- end
115
-
116
- subgraph "State Management"
117
- MX[MobX]
118
- end
119
-
120
- subgraph "UI Foundation"
121
- MUI[Material UI]
122
- MXUI[@mxenabled/mxui]
123
- end
124
- end
125
-
126
- App --> AW
127
- App --> BW
128
- AW --> WC
129
- BW --> WC
130
- WC --> GP
131
- AW --> GS
132
- AW --> API
133
- GS --> MX
134
- AW --> MXUI
135
- MXUI --> MUI
136
- ```
137
-
138
- ### Key Design Patterns
139
- - **Container Pattern**: Widgets are wrapped in `WidgetContainer` [^1] to provide consistent headers, action buttons, and navigation.
140
- - **Context-Driven Layout**: The `WidgetContainerProvider` [^2] calculates container dimensions to enable internal responsive rendering logic.
141
- - **State Isolation**: Each feature (e.g., Budgets, Accounts) maintains its own MobX store, while sharing global state through `GlobalUiStore` and `GlobalCopyStore` [^3].
142
- - **Responsive Primitives**: All components use the `useScreenSize` hook [^4] for consistent behavior across mobile, tablet, and desktop viewports.
143
-
144
- ## Project Structure
145
-
146
- The codebase is organized by feature, with a shared `common` directory for cross-cutting concerns and a `core` directory for centralized types and constants.
147
-
148
- ```mermaid
149
- graph TD
150
- src["src/"]
151
- src --> core["core/ (Centralized TypeScript types and constants)"]
152
- src --> common["common/ (Shared components, hooks, stores, and API utilities)"]
153
- src --> accounts["accounts/ (Accounts summary, details, and connection management)"]
154
- src --> budgets["budgets/ (Budget tracking, bubble charts, and categorization)"]
155
- src --> cashflow["cashflow/ (Cashflow forecasting and event management)"]
156
- src --> dashboard["dashboard/ (Aggregate view of multiple experience widgets)"]
157
- src --> debts["debts/ (Debt tracking and payoff visualization)"]
158
- src --> finstrong["finstrong/ (Financial health scoring and reporting)"]
159
- src --> goals["goals/ (Savings goal setting, tracking, and progress visualization)"]
160
- src --> networth["networth/ (Asset and liability tracking with historical trends)"]
161
- src --> spending["spending/ (Categorized spending analysis)"]
162
- src --> transactions["transactions/ (Detailed transaction history and rules)"]
163
- src --> trends["trends/ (Longitudinal spending and income analysis)"]
164
- ```
106
+ Each feature widget uses shared code in `src/core` (types, constants, MobX stores, API classes, and utilities) and `src/common` (shared components, hooks, and context providers). The [Architecture Overview](docs/ARCHITECTURE.md) describes how these parts connect, and the [Widget Catalog](docs/WIDGETS.md) lists each feature directory and its entry points.
165
107
 
166
108
  ## Testing
167
109
 
168
- The library uses `Vitest` [^5] and `@testing-library/react` [^6] for comprehensive unit and integration testing.
110
+ The library uses Vitest and React Testing Library (`@testing-library/react`) for unit and integration tests.
169
111
 
170
112
  ```bash
171
113
  # Run all tests
@@ -178,7 +120,7 @@ yarn testui
178
120
  yarn citest
179
121
  ```
180
122
 
181
- Verification logic and test setups are maintained in [src/common/__tests__](src/common/__tests__) and [vitest.setup.insights.tsx](vitest.setup.insights.tsx).
123
+ The test configuration is in [vitest.config.ts](vitest.config.ts) and [tests/setup.ts](tests/setup.ts). [docs/TESTING.md](docs/TESTING.md) tells you how to write tests.
182
124
 
183
125
  ## Contributing
184
126
 
@@ -212,19 +154,10 @@ Verification logic and test setups are maintained in [src/common/__tests__](src/
212
154
 
213
155
  For technical assistance or internal inquiries:
214
156
  - **Team**: MX Cartographer
215
- - **Docs**: [MX Developer Portal](https://mx.atlassian.net/wiki)
157
+ - **Docs**: [MX Developer Portal](https://mxcom.atlassian.net/wiki)
216
158
  - **Slack**: https://mx.enterprise.slack.com/archives/C08M61HSWRF #web-experiences-dev-all
217
159
 
218
- ## Copyright (c) 2026 MX Technologies, Inc. All Rights Reserved.
219
-
220
- [^1]: [src/common/components/WidgetContainer.tsx:55](src/common/components/WidgetContainer.tsx#L55)
221
- [^2]: [src/common/context/WidgetContainerProvider.tsx:10](src/common/context/WidgetContainerProvider.tsx#L10)
222
- [^3]: [src/common/context/GlobalStoreProvider.tsx:10](src/common/context/GlobalStoreProvider.tsx#L10)
223
- [^4]: [src/common/hooks/useScreenSize.tsx:4](src/common/hooks/useScreenSize.tsx#L4)
224
- [^5]: [package.json:187](package.json#L187)
225
- [^6]: [package.json:229](package.json#L229)
226
- [^MUI_VER]: [package.json:195](package.json#L195)
227
- [^MXUI_VER]: [package.json:203](package.json#L203)
228
- [^MOBX_VER]: [package.json:209](package.json#L209)
229
- [^REACT_VER]: [package.json:213](package.json#L213)
230
- [^YARN_VER]: [package.json:297](package.json#L297)
160
+ ---
161
+
162
+ Copyright (c) 2026 MX Technologies, Inc. All Rights Reserved.
163
+
@@ -290,6 +290,17 @@ export interface GoalsBlockCopy {
290
290
  total_saved_label: string;
291
291
  complete_label: string;
292
292
  }
293
+ /** Labels for the Transparent Overdraft drawer: the account's overdraft figure and its confidence meter. */
294
+ export interface OverdraftCopy {
295
+ confidence_level: string;
296
+ /** Spoken name of the meter, e.g. "Confidence level that the account will overdraft". */
297
+ confidence_level_aria: string;
298
+ low: string;
299
+ medium: string;
300
+ high: string;
301
+ very_high: string;
302
+ to_occur_within_the_next_seven_days: string;
303
+ }
293
304
  /** Labels for the Credit Utilization drawer; the figures come off the beat. */
294
305
  export interface CreditUtilizationCopy {
295
306
  /** Drawer title. */
@@ -359,6 +370,7 @@ export interface InsightsFeedCopy {
359
370
  /** Optional until the localized-content service ships the namespace. */
360
371
  goals_block?: GoalsBlockCopy;
361
372
  /** Optional until the localized-content service ships the namespace. */
373
+ transparent_overdraft?: OverdraftCopy;
362
374
  credit_utilization?: CreditUtilizationCopy;
363
375
  payoff_calculator?: PayoffCalculatorCopy;
364
376
  }
@@ -13,7 +13,7 @@ export type { DebtsCopy } from './DebtsCopy';
13
13
  export type { FinstrongCopy } from './FinstrongCopy';
14
14
  export type { GoalsCopy } from './GoalsCopy';
15
15
  export type { HelpCopy, HelpByCategoryList } from './HelpCopy';
16
- export type { AmountInputModalCopy, AmountInputModalVariantCopy, EmergencySavingsCopy, InsightsFeedCopy, MakeTransferCopy, PayoffCalculatorCopy, RemainingCashCopy, CreditUtilizationCopy, OverflowMenuCopy, DismissInsightCopy, DismissInsightOptionCopy, HiddenConfirmationCopy, HideFeedbackCopy, FeedbackCopy, FeedbackBarCopy, } from './InsightsFeedCopy';
16
+ export type { AmountInputModalCopy, AmountInputModalVariantCopy, EmergencySavingsCopy, InsightsFeedCopy, MakeTransferCopy, PayoffCalculatorCopy, RemainingCashCopy, OverdraftCopy, CreditUtilizationCopy, OverflowMenuCopy, DismissInsightCopy, DismissInsightOptionCopy, HiddenConfirmationCopy, HideFeedbackCopy, FeedbackCopy, FeedbackBarCopy, } from './InsightsFeedCopy';
17
17
  export type { InvestmentsCopy } from './InvestmentsCopy';
18
18
  export type { MicroInsightsCopy } from './MicroInsightsCopy';
19
19
  export type { NetWorthCopy } from './NetWorthCopy';
@@ -0,0 +1,13 @@
1
+ import { OverdraftCopy } from '../../../core';
2
+ interface ConfidenceMeterProps {
3
+ /** Percent, 0 to 100. */
4
+ level: number;
5
+ copy: OverdraftCopy;
6
+ }
7
+ /**
8
+ * The four-band confidence meter from the pulse Transparent Overdraft drawer: low, medium, high and
9
+ * very high bars with a ring over the band the percent falls in. The bars are decoration; the meter
10
+ * role on the wrapper carries the value and the band's name.
11
+ */
12
+ export declare const ConfidenceMeter: ({ copy, level }: ConfidenceMeterProps) => import("react/jsx-runtime").JSX.Element;
13
+ export {};
@@ -0,0 +1,62 @@
1
+ import { BANDS as o, confidenceBand as d } from "./layout.es.js";
2
+ import { Text as s } from "@mxenabled/mxui";
3
+ import { jsx as i, jsxs as c } from "react/jsx-runtime";
4
+ import a from "@mui/material/Box";
5
+ var t = 20, y = ({ copy: x, level: l }) => {
6
+ const r = d(l), n = o.find((e) => e.key === r) ?? o[0];
7
+ return /* @__PURE__ */ c(a, {
8
+ "aria-label": x.confidence_level_aria,
9
+ "aria-valuemax": 100,
10
+ "aria-valuemin": 0,
11
+ "aria-valuenow": l,
12
+ "aria-valuetext": x[r],
13
+ "data-band": r,
14
+ role: "meter",
15
+ sx: {
16
+ px: 24,
17
+ py: 8
18
+ },
19
+ children: [/* @__PURE__ */ c(a, {
20
+ sx: {
21
+ display: "flex",
22
+ gap: "2px",
23
+ position: "relative"
24
+ },
25
+ children: [o.map((e, p) => /* @__PURE__ */ i(a, { sx: {
26
+ bgcolor: e.color,
27
+ borderRadius: p === 0 ? "6px 0 0 6px" : p === o.length - 1 ? "0 6px 6px 0" : 0,
28
+ flex: 1,
29
+ height: 12
30
+ } }, e.key)), /* @__PURE__ */ i(a, { sx: {
31
+ bgcolor: "background.paper",
32
+ border: 3,
33
+ borderColor: n.color,
34
+ borderRadius: "50%",
35
+ boxSizing: "border-box",
36
+ height: t,
37
+ left: `clamp(0px, calc(${l}% - ${t / 2}px), calc(100% - ${t}px))`,
38
+ position: "absolute",
39
+ top: -8 / 2,
40
+ width: t
41
+ } })]
42
+ }), /* @__PURE__ */ i(a, {
43
+ sx: {
44
+ display: "flex",
45
+ gap: "2px",
46
+ pt: 12
47
+ },
48
+ children: o.map((e) => /* @__PURE__ */ i(s, {
49
+ bold: e.key === r,
50
+ color: e.key === r ? "text.primary" : "text.secondary",
51
+ sx: { flex: 1 },
52
+ variant: "caption",
53
+ children: x[e.key]
54
+ }, e.key))
55
+ })]
56
+ });
57
+ };
58
+ export {
59
+ y as ConfidenceMeter
60
+ };
61
+
62
+ //# sourceMappingURL=ConfidenceMeter.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConfidenceMeter.es.js","names":[],"sources":["../../../../src/insights-v2/actionBlocks/OverdraftBlock/ConfidenceMeter.tsx"],"sourcesContent":["import Box from '@mui/material/Box'\n\nimport { Text } from '@mxenabled/mxui'\n\nimport type { OverdraftCopy } from '../../../core'\nimport { BANDS, confidenceBand } from './layout'\n\ninterface ConfidenceMeterProps {\n /** Percent, 0 to 100. */\n level: number\n copy: OverdraftCopy\n}\n\nconst RING = 20\n\n/**\n * The four-band confidence meter from the pulse Transparent Overdraft drawer: low, medium, high and\n * very high bars with a ring over the band the percent falls in. The bars are decoration; the meter\n * role on the wrapper carries the value and the band's name.\n */\nexport const ConfidenceMeter = ({ copy, level }: ConfidenceMeterProps) => {\n const activeKey = confidenceBand(level)\n const active = BANDS.find((band) => band.key === activeKey) ?? BANDS[0]\n\n return (\n <Box\n aria-label={copy.confidence_level_aria}\n aria-valuemax={100}\n aria-valuemin={0}\n aria-valuenow={level}\n aria-valuetext={copy[activeKey]}\n data-band={activeKey}\n role=\"meter\"\n sx={{ px: 24, py: 8 }}\n >\n <Box sx={{ display: 'flex', gap: '2px', position: 'relative' }}>\n {BANDS.map((band, index) => (\n <Box\n key={band.key}\n sx={{\n bgcolor: band.color,\n borderRadius:\n index === 0 ? '6px 0 0 6px' : index === BANDS.length - 1 ? '0 6px 6px 0' : 0,\n flex: 1,\n height: 12,\n }}\n />\n ))}\n <Box\n sx={{\n bgcolor: 'background.paper',\n border: 3,\n borderColor: active.color,\n borderRadius: '50%',\n boxSizing: 'border-box',\n height: RING,\n left: `clamp(0px, calc(${level}% - ${RING / 2}px), calc(100% - ${RING}px))`,\n position: 'absolute',\n top: -(RING - 12) / 2,\n width: RING,\n }}\n />\n </Box>\n <Box sx={{ display: 'flex', gap: '2px', pt: 12 }}>\n {BANDS.map((band) => (\n <Text\n bold={band.key === activeKey}\n color={band.key === activeKey ? 'text.primary' : 'text.secondary'}\n key={band.key}\n sx={{ flex: 1 }}\n variant=\"caption\"\n >\n {copy[band.key]}\n </Text>\n ))}\n </Box>\n </Box>\n )\n}\n"],"mappings":";;;;AAaA,IAAM,IAAO,IAOA,IAAA,CAAmB,EAAE,MAAA,GAAM,OAAA,EAAA,MAAkC;AACxE,QAAM,IAAY,EAAe,CAAK,GAChC,IAAS,EAAM,KAAA,CAAM,MAAS,EAAK,QAAQ,CAAS,KAAK,EAAM,CAAA;AAErE,SACE,gBAAA,EAAC,GAAD;AAAA,IACE,cAAY,EAAK;AAAA,IACjB,iBAAe;AAAA,IACf,iBAAe;AAAA,IACf,iBAAe;AAAA,IACf,kBAAgB,EAAK,CAAA;AAAA,IACrB,aAAW;AAAA,IACX,MAAK;AAAA,IACL,IAAI;AAAA,MAAE,IAAI;AAAA,MAAI,IAAI;AAAA,IAAE;AAAA,IARtB,UAAA,CAUE,gBAAA,EAAC,GAAD;AAAA,MAAK,IAAI;AAAA,QAAE,SAAS;AAAA,QAAQ,KAAK;AAAA,QAAO,UAAU;AAAA,MAAW;AAAA,MAA7D,UAAA,CACG,EAAM,IAAA,CAAK,GAAM,MAChB,gBAAA,EAAC,GAAD,EAEE,IAAI;AAAA,QACF,SAAS,EAAK;AAAA,QACd,cACE,MAAU,IAAI,gBAAgB,MAAU,EAAM,SAAS,IAAI,gBAAgB;AAAA,QAC7E,MAAM;AAAA,QACN,QAAQ;AAAA,MACV,EACD,GARM,EAAK,GAQX,CACF,GACD,gBAAA,EAAC,GAAD,EACE,IAAI;AAAA,QACF,SAAS;AAAA,QACT,QAAQ;AAAA,QACR,aAAa,EAAO;AAAA,QACpB,cAAc;AAAA,QACd,WAAW;AAAA,QACX,QAAQ;AAAA,QACR,MAAM,mBAAmB,CAAA,OAAY,IAAO,CAAA,oBAAqB,CAAA;AAAA,QACjE,UAAU;AAAA,QACV,KAAK,KAAe;AAAA,QACpB,OAAO;AAAA,MACT,EACD,CAAA,CACE;AAAA,IACL,CAAA,GAAA,gBAAA,EAAC,GAAD;AAAA,MAAK,IAAI;AAAA,QAAE,SAAS;AAAA,QAAQ,KAAK;AAAA,QAAO,IAAI;AAAA,MAAG;AAAA,MAC5C,UAAA,EAAM,IAAA,CAAK,MACV,gBAAA,EAAC,GAAD;AAAA,QACE,MAAM,EAAK,QAAQ;AAAA,QACnB,OAAO,EAAK,QAAQ,IAAY,iBAAiB;AAAA,QAEjD,IAAI,EAAE,MAAM,EAAE;AAAA,QACd,SAAQ;AAAA,QAEP,UAAA,EAAK,EAAK,GAAA;AAAA,MACP,GALC,EAAK,GAKN,CACP;AAAA,IACE,CAAA,CACF;AAAA;AAET"}
@@ -0,0 +1,11 @@
1
+ import { ActionBlockProps } from '../../mappings/blocks';
2
+ /** Loads accounts once per open when the host did not attach the beat's primary account. */
3
+ export declare const useOverdraftPrepare: ({ beat }: ActionBlockProps) => void;
4
+ /**
5
+ * Transparent Overdraft's "Learn more" drawer (MEW2-3355): the account at risk, the projected
6
+ * overdraft amount, when it is expected, and the confidence meter. Everything is on the beat; the
7
+ * account store is read only to name the account when the host did not attach it.
8
+ */
9
+ export declare const OverdraftBlock: (({ beat }: ActionBlockProps) => import("react/jsx-runtime").JSX.Element) & {
10
+ displayName: string;
11
+ };
@@ -0,0 +1,100 @@
1
+ import v from "../../../common/utils/AccountDisplayName.es.js";
2
+ import { useAccountStore as l, useGlobalCopyStore as h } from "../../../common/context/hooks.es.js";
3
+ import { formatCurrency as x } from "../../../core/utils/NumberFormatting.es.js";
4
+ import { resolveOverdraftFacts as g, resolvePrimaryAccount as y } from "./layout.es.js";
5
+ import { ConfidenceMeter as _ } from "./ConfidenceMeter.es.js";
6
+ import { useEffect as b } from "react";
7
+ import { observer as I } from "mobx-react-lite";
8
+ import o from "@mui/material/Stack";
9
+ import { InstitutionLogo as C, Text as e } from "@mxenabled/mxui";
10
+ import { Icon as k } from "@mxenabled/mx-icons";
11
+ import { Fragment as w, jsx as r, jsxs as t } from "react/jsx-runtime";
12
+ var P = ({ beat: s }) => {
13
+ const { accountsLoaded: n, loadAccounts: i } = l();
14
+ b(() => {
15
+ !s.primary_account && !n && i();
16
+ }, []);
17
+ }, T = I(function({ beat: n }) {
18
+ const { common: i, insights_feed: u } = h(), { accounts: f } = l(), c = u?.transparent_overdraft;
19
+ if (!c) return /* @__PURE__ */ r(o, {
20
+ sx: { p: 24 },
21
+ children: /* @__PURE__ */ r(e, { children: i?.error_message })
22
+ });
23
+ const a = y(n, f), m = a ? v(a) : "", { amount: p, confidence: d } = g(n);
24
+ return /* @__PURE__ */ t(o, {
25
+ sx: {
26
+ bgcolor: "background.paper",
27
+ pb: 24
28
+ },
29
+ children: [/* @__PURE__ */ t(o, {
30
+ sx: {
31
+ alignItems: "center",
32
+ gap: 4,
33
+ px: 24,
34
+ py: 16
35
+ },
36
+ children: [
37
+ m && /* @__PURE__ */ t(o, {
38
+ sx: {
39
+ alignItems: "center",
40
+ flexDirection: "row",
41
+ gap: 12
42
+ },
43
+ children: [/* @__PURE__ */ r(C, {
44
+ alt: "",
45
+ institutionGuid: a?.institution_guid ?? "",
46
+ size: 20
47
+ }), /* @__PURE__ */ r(e, {
48
+ bold: !0,
49
+ component: "p",
50
+ variant: "body1",
51
+ children: m
52
+ })]
53
+ }),
54
+ p !== void 0 && /* @__PURE__ */ r(e, {
55
+ bold: !0,
56
+ component: "p",
57
+ variant: "h1",
58
+ children: x(p, "0,0.00")
59
+ }),
60
+ /* @__PURE__ */ t(o, {
61
+ sx: {
62
+ alignItems: "center",
63
+ flexDirection: "row",
64
+ gap: 4
65
+ },
66
+ children: [/* @__PURE__ */ r(k, {
67
+ "aria-hidden": "true",
68
+ fill: !0,
69
+ name: "error",
70
+ size: 16,
71
+ sx: { color: "warning.main" }
72
+ }), /* @__PURE__ */ r(e, {
73
+ color: "text.secondary",
74
+ variant: "body2",
75
+ children: c.to_occur_within_the_next_seven_days
76
+ })]
77
+ })
78
+ ]
79
+ }), d !== void 0 && /* @__PURE__ */ t(w, { children: [/* @__PURE__ */ r(e, {
80
+ bold: !0,
81
+ component: "h3",
82
+ sx: {
83
+ px: 24,
84
+ py: 12,
85
+ textTransform: "uppercase"
86
+ },
87
+ variant: "caption",
88
+ children: c.confidence_level
89
+ }), /* @__PURE__ */ r(_, {
90
+ copy: c,
91
+ level: d
92
+ })] })]
93
+ });
94
+ });
95
+ export {
96
+ T as OverdraftBlock,
97
+ P as useOverdraftPrepare
98
+ };
99
+
100
+ //# sourceMappingURL=OverdraftBlock.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OverdraftBlock.es.js","names":[],"sources":["../../../../src/insights-v2/actionBlocks/OverdraftBlock/OverdraftBlock.tsx"],"sourcesContent":["import { useEffect } from 'react'\n\nimport Stack from '@mui/material/Stack'\n\nimport { Icon } from '@mxenabled/mx-icons'\nimport { InstitutionLogo, Text } from '@mxenabled/mxui'\nimport { observer } from 'mobx-react-lite'\n\nimport { useAccountStore, useGlobalCopyStore } from '../../../common'\nimport getAccountDisplayName from '../../../common/utils/AccountDisplayName'\nimport { formatCurrency } from '../../../core/utils/NumberFormatting'\nimport type { ActionBlockProps } from '../../mappings/blocks'\n\nimport { ConfidenceMeter } from './ConfidenceMeter'\nimport { resolvePrimaryAccount, resolveOverdraftFacts } from './layout'\n\n/** Loads accounts once per open when the host did not attach the beat's primary account. */\nexport const useOverdraftPrepare = ({ beat }: ActionBlockProps) => {\n const { accountsLoaded, loadAccounts } = useAccountStore()\n\n useEffect(() => {\n if (!beat.primary_account && !accountsLoaded) void loadAccounts()\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [])\n}\n\n/**\n * Transparent Overdraft's \"Learn more\" drawer (MEW2-3355): the account at risk, the projected\n * overdraft amount, when it is expected, and the confidence meter. Everything is on the beat; the\n * account store is read only to name the account when the host did not attach it.\n */\nexport const OverdraftBlock = observer(function OverdraftBlock({ beat }: ActionBlockProps) {\n const { common: commonCopy, insights_feed: insightsFeedCopy } = useGlobalCopyStore()\n const { accounts } = useAccountStore()\n const copy = insightsFeedCopy?.transparent_overdraft\n\n if (!copy) {\n return (\n <Stack sx={{ p: 24 }}>\n <Text>{commonCopy?.error_message}</Text>\n </Stack>\n )\n }\n\n const account = resolvePrimaryAccount(beat, accounts)\n const accountName = account ? getAccountDisplayName(account) : ''\n const { amount, confidence } = resolveOverdraftFacts(beat)\n\n return (\n <Stack sx={{ bgcolor: 'background.paper', pb: 24 }}>\n <Stack sx={{ alignItems: 'center', gap: 4, px: 24, py: 16 }}>\n {accountName && (\n <Stack sx={{ alignItems: 'center', flexDirection: 'row', gap: 12 }}>\n <InstitutionLogo alt=\"\" institutionGuid={account?.institution_guid ?? ''} size={20} />\n <Text bold={true} component=\"p\" variant=\"body1\">\n {accountName}\n </Text>\n </Stack>\n )}\n {amount !== undefined && (\n <Text bold={true} component=\"p\" variant=\"h1\">\n {formatCurrency(amount, '0,0.00')}\n </Text>\n )}\n <Stack sx={{ alignItems: 'center', flexDirection: 'row', gap: 4 }}>\n <Icon\n aria-hidden=\"true\"\n fill={true}\n name=\"error\"\n size={16}\n sx={{ color: 'warning.main' }}\n />\n <Text color=\"text.secondary\" variant=\"body2\">\n {copy.to_occur_within_the_next_seven_days}\n </Text>\n </Stack>\n </Stack>\n {confidence !== undefined && (\n <>\n <Text\n bold={true}\n component=\"h3\"\n sx={{ px: 24, py: 12, textTransform: 'uppercase' }}\n variant=\"caption\"\n >\n {copy.confidence_level}\n </Text>\n <ConfidenceMeter copy={copy} level={confidence} />\n </>\n )}\n </Stack>\n )\n})\n"],"mappings":";;;;;;;;;;;AAiBA,IAAa,IAAA,CAAuB,EAAE,MAAA,EAAA,MAA6B;AACjE,QAAM,EAAE,gBAAA,GAAgB,cAAA,EAAA,IAAiB,EAAgB;AAEzD,EAAA,EAAA,MAAgB;AACd,IAAI,CAAC,EAAK,mBAAmB,CAAC,KAAgB,EAAkB;A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SAAQ;AAAA,UACrC,UAAA,EAAe,GAAQ,QAAQ;AAAA,QAC5B,CAAA;AAAA,QAER,gBAAA,EAAC,GAAD;AAAA,UAAO,IAAI;AAAA,YAAE,YAAY;AAAA,YAAU,eAAe;AAAA,YAAO,KAAK;AAAA,UAAE;AAAA,UAAhE,UAAA,CACE,gBAAA,EAAC,GAAD;AAAA,YACE,eAAY;AAAA,YACZ,MAAM;AAAA,YACN,MAAK;AAAA,YACL,MAAM;AAAA,YACN,IAAI,EAAE,OAAO,eAAe;AAAA,UAC7B,CAAA,GACD,gBAAA,EAAC,GAAD;AAAA,YAAM,OAAM;AAAA,YAAiB,SAAQ;AAAA,YAClC,UAAA,EAAK;AAAA,UACF,CAAA,CACD;AAAA;MACF;AAAA,IACN,CAAA,GAAA,MAAe,UACd,gBAAA,EAAA,GAAA,EAAA,UAAA,CACE,gBAAA,EAAC,GAAD;AAAA,MACE,MAAM;AAAA,MACN,WAAU;AAAA,MACV,IAAI;AAAA,QAAE,IAAI;AAAA,QAAI,IAAI;AAAA,QAAI,eAAe;AAAA,MAAY;AAAA,MACjD,SAAQ;AAAA,MAEP,UAAA,EAAK;AAAA,IACF,CAAA,GACN,gBAAA,EAAC,GAAD;AAAA,MAAuB,MAAA;AAAA,MAAM,OAAO;AAAA,IAAa,CAAA,CACjD,EAAA,CAAA,CAEC;AAAA;AAEX,CAAC"}
@@ -0,0 +1 @@
1
+ export { OverdraftBlock, useOverdraftPrepare } from './OverdraftBlock';
@@ -0,0 +1,27 @@
1
+ import { Account, Beat } from '../../../core';
2
+ /** The meter's bands, low to very high, each with its theme colour. */
3
+ export declare const BANDS: readonly [{
4
+ readonly key: "low";
5
+ readonly color: "success.main";
6
+ }, {
7
+ readonly key: "medium";
8
+ readonly color: "success.dark";
9
+ }, {
10
+ readonly key: "high";
11
+ readonly color: "warning.main";
12
+ }, {
13
+ readonly key: "very_high";
14
+ readonly color: "error.dark";
15
+ }];
16
+ export type ConfidenceBand = (typeof BANDS)[number]['key'];
17
+ export declare const confidenceBand: (level: number) => ConfidenceBand;
18
+ export interface OverdraftFacts {
19
+ /** The projected overdraft, positive, as the drawer prints it. */
20
+ amount?: number;
21
+ /** The backend's percent confidence that the overdraft will occur. */
22
+ confidence?: number;
23
+ }
24
+ /** The drawer's two figures from the V2 envelope's `drilldown_data`; undefined unless a finite number. */
25
+ export declare const resolveOverdraftFacts: (beat: Beat) => OverdraftFacts;
26
+ /** The beat's primary account: from the beat when the host attached it, else the loaded accounts. */
27
+ export declare const resolvePrimaryAccount: (beat: Beat, accounts: Account[]) => Account | undefined;
@@ -0,0 +1,35 @@
1
+ var u = [
2
+ {
3
+ key: "low",
4
+ color: "success.main"
5
+ },
6
+ {
7
+ key: "medium",
8
+ color: "success.dark"
9
+ },
10
+ {
11
+ key: "high",
12
+ color: "warning.main"
13
+ },
14
+ {
15
+ key: "very_high",
16
+ color: "error.dark"
17
+ }
18
+ ], i = 25, c = 50, t = 75, d = (r) => r > t ? "very_high" : r > c ? "high" : r > i ? "medium" : "low", s = (r) => {
19
+ const n = r.insights_payload?.drilldown_data, e = (a) => {
20
+ const o = n?.[a];
21
+ return typeof o == "number" && Number.isFinite(o) ? o : void 0;
22
+ };
23
+ return {
24
+ amount: e("projected_overdraft_amount"),
25
+ confidence: e("confidence_level")
26
+ };
27
+ }, m = (r, n) => r.primary_account ?? n.find((e) => e.guid === r.primary_account_guid);
28
+ export {
29
+ u as BANDS,
30
+ d as confidenceBand,
31
+ s as resolveOverdraftFacts,
32
+ m as resolvePrimaryAccount
33
+ };
34
+
35
+ //# sourceMappingURL=layout.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout.es.js","names":[],"sources":["../../../../src/insights-v2/actionBlocks/OverdraftBlock/layout.ts"],"sourcesContent":["import type { Account, Beat } from '../../../core'\n\n/** The meter's bands, low to very high, each with its theme colour. */\nexport const BANDS = [\n { key: 'low', color: 'success.main' },\n { key: 'medium', color: 'success.dark' },\n { key: 'high', color: 'warning.main' },\n { key: 'very_high', color: 'error.dark' },\n] as const\n\nexport type ConfidenceBand = (typeof BANDS)[number]['key']\n\n/** Upper bound (inclusive) of each band but the last, as the pulse drawer drew them. */\nconst LOW_MAX = 25\nconst MEDIUM_MAX = 50\nconst HIGH_MAX = 75\n\nexport const confidenceBand = (level: number): ConfidenceBand => {\n if (level > HIGH_MAX) return 'very_high'\n if (level > MEDIUM_MAX) return 'high'\n if (level > LOW_MAX) return 'medium'\n\n return 'low'\n}\n\nexport interface OverdraftFacts {\n /** The projected overdraft, positive, as the drawer prints it. */\n amount?: number\n /** The backend's percent confidence that the overdraft will occur. */\n confidence?: number\n}\n\n/** The drawer's two figures from the V2 envelope's `drilldown_data`; undefined unless a finite number. */\nexport const resolveOverdraftFacts = (beat: Beat): OverdraftFacts => {\n const data = beat.insights_payload?.drilldown_data\n const numberAt = (key: string) => {\n const value = data?.[key]\n\n return typeof value === 'number' && Number.isFinite(value) ? value : undefined\n }\n\n return {\n amount: numberAt('projected_overdraft_amount'),\n confidence: numberAt('confidence_level'),\n }\n}\n\n/** The beat's primary account: from the beat when the host attached it, else the loaded accounts. */\nexport const resolvePrimaryAccount = (beat: Beat, accounts: Account[]): Account | undefined =>\n beat.primary_account ?? accounts.find((account) => account.guid === beat.primary_account_guid)\n"],"mappings":"AAGA,IAAa,IAAQ;AAAA,EACnB;AAAA,IAAE,KAAK;AAAA,IAAO,OAAO;AAAA,EAAe;AAAA,EACpC;AAAA,IAAE,KAAK;AAAA,IAAU,OAAO;AAAA,EAAe;AAAA,EACvC;AAAA,IAAE,KAAK;AAAA,IAAQ,OAAO;AAAA,EAAe;AAAA,EACrC;AAAA,IAAE,KAAK;AAAA,IAAa,OAAO;AAAA,EAAa;AAC1C,GAKM,IAAU,IACV,IAAa,IACb,IAAW,IAEJ,IAAA,CAAkB,MACzB,IAAQ,IAAiB,cACzB,IAAQ,IAAmB,SAC3B,IAAQ,IAAgB,WAErB,OAWI,IAAA,CAAyB,MAA+B;AACnE,QAAM,IAAO,EAAK,kBAAkB,gBAC9B,IAAA,CAAY,MAAgB;AAChC,UAAM,IAAQ,IAAO,CAAA;AAErB,WAAO,OAAO,KAAU,YAAY,OAAO,SAAS,CAAK,IAAI,IAAQ;AAAA,EACvE;AAEA,SAAO;AAAA,IACL,QAAQ,EAAS,4BAA4B;AAAA,IAC7C,YAAY,EAAS,kBAAkB;AAAA,EACzC;AACF,GAGa,IAAA,CAAyB,GAAY,MAChD,EAAK,mBAAmB,EAAS,KAAA,CAAM,MAAY,EAAQ,SAAS,EAAK,oBAAoB"}
@@ -1,54 +1,67 @@
1
- import { AccountType as u } from "../../core/types/Account.es.js";
2
- import { BEAT_OPERATION_1 as n, BEAT_OPERATION_2 as l } from "../../common/utils/PostMessage.es.js";
3
- var c = (a) => !a.is_hidden && !a.is_deleted && !a.is_closed, e = ({ beat: a, stores: t }) => a.primary_account ?? t.accountStore.accounts.find((o) => o.guid === a.primary_account_guid), d = ({ beat: a, stores: t }) => {
4
- const o = new Set(a.account_guids);
5
- return t.accountStore.accounts.filter((r) => o.has(r.guid) && c(r));
6
- }, _ = ({ stores: a }) => a.accountStore.accounts.filter((t) => t.account_type === u.SAVINGS && c(t)), i = { primary: () => ({ action: n }) }, p = {
1
+ import { AccountType as l } from "../../core/types/Account.es.js";
2
+ import { BEAT_OPERATION_1 as r, BEAT_OPERATION_2 as d } from "../../common/utils/PostMessage.es.js";
3
+ import { resolveOverdraftFacts as _ } from "../actionBlocks/OverdraftBlock/layout.es.js";
4
+ var s = (a) => !a.is_hidden && !a.is_deleted && !a.is_closed, e = ({ beat: a, stores: t }) => a.primary_account ?? t.accountStore.accounts.find((n) => n.guid === a.primary_account_guid), p = ({ beat: a, stores: t }) => {
5
+ const n = new Set(a.account_guids);
6
+ return t.accountStore.accounts.filter((o) => n.has(o.guid) && s(o));
7
+ }, m = ({ stores: a }) => a.accountStore.accounts.filter((t) => t.account_type === l.SAVINGS && s(t)), i = { primary: () => ({ action: r }) }, c = { primary: (a) => {
8
+ const t = e(a)?.external_guid, { amount: n } = _(a.beat);
9
+ return !t || n === void 0 ? null : {
10
+ action: r,
11
+ payload: {
12
+ projected_overdraft_amount: n,
13
+ destination_account_ids: [t],
14
+ destination_account_id: t
15
+ }
16
+ };
17
+ } }, y = {
7
18
  SaveAnExtra100Dollars: i,
8
19
  SaveAnExtra100DollarsV2: i,
9
- PaydayCashLeftOverStatus: { primary: () => ({ action: n }) },
10
- EmergencyFundWithdrawal: { primary: () => ({ action: n }) },
20
+ PaydayCashLeftOverStatus: { primary: () => ({ action: r }) },
21
+ EmergencyFundWithdrawal: { primary: () => ({ action: r }) },
11
22
  LowAccountBalance: { primary: (a) => {
12
23
  const t = e(a);
13
24
  return t ? {
14
- action: n,
25
+ action: r,
15
26
  payload: { account_guid: t.external_guid }
16
27
  } : null;
17
28
  } },
18
- MonthlyObligationsStatus: { primary: ({ beat: a }) => (a.payload?.total_remaining ?? 0) < 0 ? { action: n } : null },
19
- DesignateEmergencySavingsAccount: { primary: ({ cta: a }) => a.action_key === "open_savings_account" ? { action: n } : null },
29
+ MonthlyObligationsStatus: { primary: ({ beat: a }) => (a.payload?.total_remaining ?? 0) < 0 ? { action: r } : null },
30
+ DesignateEmergencySavingsAccount: { primary: ({ cta: a }) => a.action_key === "open_savings_account" ? { action: r } : null },
20
31
  ReplenishSavings: { primary: (a) => ({
21
- action: n,
32
+ action: r,
22
33
  payload: {
23
34
  total_amount_withdrawn: a.beat.payload?.total_amount,
24
- accounts: d(a).map((t) => ({
35
+ accounts: p(a).map((t) => ({
25
36
  account_guid: t.external_guid,
26
37
  account_name: a.beat.payload?.account_name?.default
27
38
  }))
28
39
  }
29
40
  }) },
41
+ TransparentOverdraft: c,
42
+ TransparentOverdraftV2: c,
30
43
  SavingsOpportunityV2: { primary: (a) => {
31
44
  const t = e(a);
32
45
  if (!t) return null;
33
- const o = _(a), r = {
46
+ const n = m(a), o = {
34
47
  amount: a.beat.payload?.suggested_savings_amount,
35
48
  source_account_id: t.external_guid
36
49
  };
37
- return o.length ? {
38
- action: n,
50
+ return n.length ? {
51
+ action: r,
39
52
  payload: {
40
- ...r,
41
- destination_account_ids: o.map((s) => s.external_guid)
53
+ ...o,
54
+ destination_account_ids: n.map((u) => u.external_guid)
42
55
  }
43
56
  } : {
44
- action: l,
45
- payload: r
57
+ action: d,
58
+ payload: o
46
59
  };
47
60
  } }
48
- }, g = (a) => a.cta.metadata ?? p[a.beat.template]?.[a.slot]?.(a) ?? null;
61
+ }, A = (a) => a.cta.metadata ?? y[a.beat.template]?.[a.slot]?.(a) ?? null;
49
62
  export {
50
- p as ctaPostMessages,
51
- g as resolveCtaMetadata
63
+ y as ctaPostMessages,
64
+ A as resolveCtaMetadata
52
65
  };
53
66
 
54
67
  //# sourceMappingURL=ctaPostMessages.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ctaPostMessages.es.js","names":[],"sources":["../../../src/insights-v2/ctaActions/ctaPostMessages.ts"],"sourcesContent":["import { BEAT_OPERATION_1, BEAT_OPERATION_2 } from '../../common/utils/PostMessage'\nimport { AccountType, type Account, type CtaPostMessageMetadata } from '../../core'\nimport type { CtaSlot, CtaStateContext } from './types'\n\n/**\n * Interim per-template post messages, carried over from the pulse beats, for CTAs the backend\n * does not yet describe with `cta.metadata`. Each resolver returns the same shape the backend\n * will send, or `null` for \"no message\" (the default then only opens the drawer for a block).\n * Backend `metadata` always wins, so entries become dead the moment tupac ships the key for\n * their template.\n *\n * Remove once every template here has `metadata` from the backend: delete this file, its test\n * and README section, and the `resolveCtaMetadata` call in `runCtaAction.ts`.\n */\nexport type CtaPostMessageResolver = (ctx: CtaStateContext) => CtaPostMessageMetadata | null\n\ntype BeatContext = Pick<CtaStateContext, 'beat' | 'stores'>\n\nconst isUsable = (account: Account) =>\n !account.is_hidden && !account.is_deleted && !account.is_closed\n\n/** The beat's primary account: from the beat when the host attached it, else the account store. */\nconst primaryAccountOf = ({ beat, stores }: BeatContext): Account | undefined =>\n beat.primary_account ??\n stores.accountStore.accounts.find((account) => account.guid === beat.primary_account_guid)\n\n/** The accounts the beat points at (`account_guids`), as loaded in the account store. */\nconst beatAccountsOf = ({ beat, stores }: BeatContext): Account[] => {\n const guids = new Set<string>(beat.account_guids)\n\n return stores.accountStore.accounts.filter(\n (account) => guids.has(account.guid) && isUsable(account),\n )\n}\n\nconst savingsAccountsOf = ({ stores }: BeatContext): Account[] =>\n stores.accountStore.accounts.filter(\n (account) => account.account_type === AccountType.SAVINGS && isUsable(account),\n )\n\n/** \"Make Transfer\": the base `beat/cta` op_1, nothing beat-specific. */\nconst saveAnExtra100Dollars: Partial<Record<CtaSlot, CtaPostMessageResolver>> = {\n primary: () => ({ action: BEAT_OPERATION_1 }),\n}\n\nexport const ctaPostMessages: Record<string, Partial<Record<CtaSlot, CtaPostMessageResolver>>> = {\n SaveAnExtra100Dollars: saveAnExtra100Dollars,\n /** The Insights 2.0 template: the same \"Make a Transfer\" op_1 as V1. */\n SaveAnExtra100DollarsV2: saveAnExtra100Dollars,\n\n /** \"Transfer to Savings\" / \"Transfer Funds\": the base `beat/cta` op_1 on both variants. */\n PaydayCashLeftOverStatus: {\n primary: () => ({ action: BEAT_OPERATION_1 }),\n },\n\n /**\n * \"Make a Transfer\" / \"View Emergency Savings\": both deep-link into online banking through the\n * base `beat/cta` op_1 (the label differs by variant, the action does not, as in V1). The\n * secondary \"View Transaction\" opens the transaction-details drilldown, not a post message.\n */\n EmergencyFundWithdrawal: {\n primary: () => ({ action: BEAT_OPERATION_1 }),\n },\n\n /** \"Transfer\": op_1 with the primary account's external id. No primary account → default. */\n LowAccountBalance: {\n primary: (ctx) => {\n const account = primaryAccountOf(ctx)\n\n return account\n ? { action: BEAT_OPERATION_1, payload: { account_guid: account.external_guid } }\n : null\n },\n },\n\n /** Posts only while off track (negative remaining); on track the CTA opens the drawer. */\n MonthlyObligationsStatus: {\n primary: ({ beat }) =>\n (beat.payload?.total_remaining ?? 0) < 0 ? { action: BEAT_OPERATION_1 } : null,\n },\n\n /**\n * \"Open a Savings Account\": op_1 for the open_savings_account press only. The backend names that\n * key on the open_account state (no designation and no savings account — pulse's legacy branch),\n * so the frontend repeats no data rule and it holds on every widget. \"Save\"\n * (select_savings_account) saves the pick through ctaConfig instead; the saved state has no press.\n */\n DesignateEmergencySavingsAccount: {\n primary: ({ cta }) =>\n cta.action_key === 'open_savings_account' ? { action: BEAT_OPERATION_1 } : null,\n },\n\n /** op_1 with the withdrawn total and the beat's accounts (external ids). */\n ReplenishSavings: {\n primary: (ctx) => ({\n action: BEAT_OPERATION_1,\n payload: {\n total_amount_withdrawn: ctx.beat.payload?.total_amount,\n accounts: beatAccountsOf(ctx).map((account) => ({\n account_guid: account.external_guid,\n account_name: ctx.beat.payload?.account_name?.default,\n })),\n },\n }),\n },\n\n /** op_1 = transfer into the user's savings accounts; op_2 = open one when there are none. */\n SavingsOpportunityV2: {\n primary: (ctx) => {\n const source = primaryAccountOf(ctx)\n\n if (!source) return null\n\n const savings = savingsAccountsOf(ctx)\n const payload = {\n amount: ctx.beat.payload?.suggested_savings_amount,\n source_account_id: source.external_guid,\n }\n\n return savings.length\n ? {\n action: BEAT_OPERATION_1,\n payload: {\n ...payload,\n destination_account_ids: savings.map((account) => account.external_guid),\n },\n }\n : { action: BEAT_OPERATION_2, payload }\n },\n },\n}\n\n/** Backend `cta.metadata` first, else this template's interim resolver for the slot, else null. */\nexport const resolveCtaMetadata = (ctx: CtaStateContext): CtaPostMessageMetadata | null =>\n ctx.cta.metadata ?? ctaPostMessages[ctx.beat.template]?.[ctx.slot]?.(ctx) ?? null\n"],"mappings":";;AAkBA,IAAM,IAAA,CAAY,MAChB,CAAC,EAAQ,aAAa,CAAC,EAAQ,cAAc,CAAC,EAAQ,WAGlD,IAAA,CAAoB,EAAE,MAAA,GAAM,QAAA,EAAA,MAChC,EAAK,mBACL,EAAO,aAAa,SAAS,KAAA,CAAM,MAAY,EAAQ,SAAS,EAAK,oBAAoB,GAGrF,IAAA,CAAkB,EAAE,MAAA,GAAM,QAAA,E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,EAAE;AAAA,IACJ;AAAA,EACF,GACF;AAAA,EAGA,sBAAsB,EACpB,SAAA,CAAU,MAAQ;AAChB,UAAM,IAAS,EAAiB,CAAG;AAEnC,QAAI,CAAC,EAAQ,QAAO;AAEpB,UAAM,IAAU,EAAkB,CAAG,GAC/B,IAAU;AAAA,MACd,QAAQ,EAAI,KAAK,SAAS;AAAA,MAC1B,mBAAmB,EAAO;AAAA,IAC5B;AAEA,WAAO,EAAQ,SACX;AAAA,MACE,QAAQ;AAAA,MACR,SAAS;AAAA,QACP,GAAG;AAAA,QACH,yBAAyB,EAAQ,IAAA,CAAK,MAAY,EAAQ,aAAa;AAAA,MACzE;AAAA,IACF,IACA;AAAA,MAAE,QAAQ;AAAA,MAAkB,SAAA;AAAA,IAAQ;AAAA,EAC1C,EACF;AACF,GAGa,IAAA,CAAsB,MACjC,EAAI,IAAI,YAAY,EAAgB,EAAI,KAAK,QAAA,IAAY,EAAI,IAAA,IAAQ,CAAG,KAAK"}
1
+ {"version":3,"file":"ctaPostMessages.es.js","names":[],"sources":["../../../src/insights-v2/ctaActions/ctaPostMessages.ts"],"sourcesContent":["import { BEAT_OPERATION_1, BEAT_OPERATION_2 } from '../../common/utils/PostMessage'\nimport { AccountType, type Account, type CtaPostMessageMetadata } from '../../core'\nimport { resolveOverdraftFacts } from '../actionBlocks/OverdraftBlock/layout'\nimport type { CtaSlot, CtaStateContext } from './types'\n\n/**\n * Interim per-template post messages, carried over from the pulse beats, for CTAs the backend\n * does not yet describe with `cta.metadata`. Each resolver returns the same shape the backend\n * will send, or `null` for \"no message\" (the default then only opens the drawer for a block).\n * Backend `metadata` always wins, so entries become dead the moment tupac ships the key for\n * their template.\n *\n * Remove once every template here has `metadata` from the backend: delete this file, its test\n * and README section, and the `resolveCtaMetadata` call in `runCtaAction.ts`.\n */\nexport type CtaPostMessageResolver = (ctx: CtaStateContext) => CtaPostMessageMetadata | null\n\ntype BeatContext = Pick<CtaStateContext, 'beat' | 'stores'>\n\nconst isUsable = (account: Account) =>\n !account.is_hidden && !account.is_deleted && !account.is_closed\n\n/** The beat's primary account: from the beat when the host attached it, else the account store. */\nconst primaryAccountOf = ({ beat, stores }: BeatContext): Account | undefined =>\n beat.primary_account ??\n stores.accountStore.accounts.find((account) => account.guid === beat.primary_account_guid)\n\n/** The accounts the beat points at (`account_guids`), as loaded in the account store. */\nconst beatAccountsOf = ({ beat, stores }: BeatContext): Account[] => {\n const guids = new Set<string>(beat.account_guids)\n\n return stores.accountStore.accounts.filter(\n (account) => guids.has(account.guid) && isUsable(account),\n )\n}\n\nconst savingsAccountsOf = ({ stores }: BeatContext): Account[] =>\n stores.accountStore.accounts.filter(\n (account) => account.account_type === AccountType.SAVINGS && isUsable(account),\n )\n\n/** \"Make Transfer\": the base `beat/cta` op_1, nothing beat-specific. */\nconst saveAnExtra100Dollars: Partial<Record<CtaSlot, CtaPostMessageResolver>> = {\n primary: () => ({ action: BEAT_OPERATION_1 }),\n}\n\n/**\n * \"Transfer funds\": op_1 with the projected overdraft and the primary account's external id, sent\n * twice because the beat only ever has one account: hosts read the legacy `destination_account_ids`\n * list or the newer `destination_account_id`. Money movement, so no message without both the amount\n * and a destination id → default.\n */\nconst overdraft: Partial<Record<CtaSlot, CtaPostMessageResolver>> = {\n primary: (ctx) => {\n const destination = primaryAccountOf(ctx)?.external_guid\n const { amount } = resolveOverdraftFacts(ctx.beat)\n\n if (!destination || amount === undefined) return null\n\n return {\n action: BEAT_OPERATION_1,\n payload: {\n projected_overdraft_amount: amount,\n destination_account_ids: [destination],\n destination_account_id: destination,\n },\n }\n },\n}\n\nexport const ctaPostMessages: Record<string, Partial<Record<CtaSlot, CtaPostMessageResolver>>> = {\n SaveAnExtra100Dollars: saveAnExtra100Dollars,\n /** The Insights 2.0 template: the same \"Make a Transfer\" op_1 as V1. */\n SaveAnExtra100DollarsV2: saveAnExtra100Dollars,\n\n /** \"Transfer to Savings\" / \"Transfer Funds\": the base `beat/cta` op_1 on both variants. */\n PaydayCashLeftOverStatus: {\n primary: () => ({ action: BEAT_OPERATION_1 }),\n },\n\n /**\n * \"Make a Transfer\" / \"View Emergency Savings\": both deep-link into online banking through the\n * base `beat/cta` op_1 (the label differs by variant, the action does not, as in V1). The\n * secondary \"View Transaction\" opens the transaction-details drilldown, not a post message.\n */\n EmergencyFundWithdrawal: {\n primary: () => ({ action: BEAT_OPERATION_1 }),\n },\n\n /** \"Transfer\": op_1 with the primary account's external id. No primary account → default. */\n LowAccountBalance: {\n primary: (ctx) => {\n const account = primaryAccountOf(ctx)\n\n return account\n ? { action: BEAT_OPERATION_1, payload: { account_guid: account.external_guid } }\n : null\n },\n },\n\n /** Posts only while off track (negative remaining); on track the CTA opens the drawer. */\n MonthlyObligationsStatus: {\n primary: ({ beat }) =>\n (beat.payload?.total_remaining ?? 0) < 0 ? { action: BEAT_OPERATION_1 } : null,\n },\n\n /**\n * \"Open a Savings Account\": op_1 for the open_savings_account press only. The backend names that\n * key on the open_account state (no designation and no savings account — pulse's legacy branch),\n * so the frontend repeats no data rule and it holds on every widget. \"Save\"\n * (select_savings_account) saves the pick through ctaConfig instead; the saved state has no press.\n */\n DesignateEmergencySavingsAccount: {\n primary: ({ cta }) =>\n cta.action_key === 'open_savings_account' ? { action: BEAT_OPERATION_1 } : null,\n },\n\n /** op_1 with the withdrawn total and the beat's accounts (external ids). */\n ReplenishSavings: {\n primary: (ctx) => ({\n action: BEAT_OPERATION_1,\n payload: {\n total_amount_withdrawn: ctx.beat.payload?.total_amount,\n accounts: beatAccountsOf(ctx).map((account) => ({\n account_guid: account.external_guid,\n account_name: ctx.beat.payload?.account_name?.default,\n })),\n },\n }),\n },\n\n TransparentOverdraft: overdraft,\n TransparentOverdraftV2: overdraft,\n\n /** op_1 = transfer into the user's savings accounts; op_2 = open one when there are none. */\n SavingsOpportunityV2: {\n primary: (ctx) => {\n const source = primaryAccountOf(ctx)\n\n if (!source) return null\n\n const savings = savingsAccountsOf(ctx)\n const payload = {\n amount: ctx.beat.payload?.suggested_savings_amount,\n source_account_id: source.external_guid,\n }\n\n return savings.length\n ? {\n action: BEAT_OPERATION_1,\n payload: {\n ...payload,\n destination_account_ids: savings.map((account) => account.external_guid),\n },\n }\n : { action: BEAT_OPERATION_2, payload }\n },\n },\n}\n\n/** Backend `cta.metadata` first, else this template's interim resolver for the slot, else null. */\nexport const resolveCtaMetadata = (ctx: CtaStateContext): CtaPostMessageMetadata | null =>\n ctx.cta.metadata ?? ctaPostMessages[ctx.beat.template]?.[ctx.slot]?.(ctx) ?? null\n"],"mappings":";;;AAmBA,IAAM,IAAA,CAAY,MAChB,CAAC,EAAQ,aAAa,CAAC,EAAQ,cAAc,CAAC,EAAQ,WAGlD,IAAA,CAAoB,EAAE,MAAA,GAAM,QAAA,EAAA,MAChC,EAAK,mBACL,EAAO,aAAa,SAAS,KAAA,CAAM,MAAY,EAAQ,SAAS,EAAK,oBAAoB,GAGrF,IAAA,CAAkB,EAAE,MAAA,GAAM,QAAA,EAAA,MAAqC;AACnE,QAAM,IAAQ,IAAI,IAAY,EAAK,aAAa;AAEhD,SAAO,EAAO,aAAa,SAAS,OAAA,CACjC,MAAY,EAAM,IAAI,EAAQ,IAAI,KAAK,EAAS,CAAO,CAC1D;AACF,GAEM,IAAA,CAAqB,EAAE,QAAA,EAAA,MAC3B,EAAO,aAAa,SAAS,OAAA,CAC1B,MAAY,EAAQ,iBAAiB,EAAY,WAAW,EAAS,CAAO,CAC/E,GAGI,IAA0E,EAC9E,SAAA,OAAgB,EAAE,QAAQ,EAAiB,GAC7C,GAQM,IAA8D,EAClE,SAAA,CAAU,MAAQ;AAChB,QAAM,IAAc,EAAiB,CAAG,GAAG,eACrC,EAAE,QAAA,EAAA,IAAW,EAAsB,EAAI,IAAI;AAEjD,SAAI,CAAC,KAAe,MAAW,SAAkB,OAE1C;AAAA,IACL,QAAQ;AAAA,IACR,SAAS;AAAA,MACP,4BAA4B;AAAA,MAC5B,yBAAyB,CAAC,CAAW;AAAA,MACrC,wBAAwB;AAAA,IA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Q,SACX;AAAA,MACE,QAAQ;AAAA,MACR,SAAS;AAAA,QACP,GAAG;AAAA,QACH,yBAAyB,EAAQ,IAAA,CAAK,MAAY,EAAQ,aAAa;AAAA,MACzE;AAAA,IACF,IACA;AAAA,MAAE,QAAQ;AAAA,MAAkB,SAAA;AAAA,IAAQ;AAAA,EAC1C,EACF;AACF,GAGa,IAAA,CAAsB,MACjC,EAAI,IAAI,YAAY,EAAgB,EAAI,KAAK,QAAA,IAAY,EAAI,IAAA,IAAQ,CAAG,KAAK"}
@@ -12,6 +12,7 @@ export declare const actionBlocksKey: {
12
12
  TRANSACTION_LIST_ACTION_BLOCK: string;
13
13
  REMAINING_CASH_ACTION_BLOCK: string;
14
14
  AMOUNT_INPUT_MODAL_ACTION_BLOCK: string;
15
+ OVERDRAFT_ACTION_BLOCK: string;
15
16
  CREDIT_UTILIZATION_ACTION_BLOCK: string;
16
17
  EMERGENCY_SAVINGS_ACTION_BLOCK: string;
17
18
  PAYOFF_CALCULATOR_ACTION_BLOCK: string;
@@ -12,6 +12,7 @@ var _ = {
12
12
  TRANSACTION_LIST_ACTION_BLOCK: "transaction_list_block",
13
13
  REMAINING_CASH_ACTION_BLOCK: "remaining_cash_block",
14
14
  AMOUNT_INPUT_MODAL_ACTION_BLOCK: "amount_input_modal_block",
15
+ OVERDRAFT_ACTION_BLOCK: "transparent_overdraft_block",
15
16
  CREDIT_UTILIZATION_ACTION_BLOCK: "credit_utilization_block",
16
17
  EMERGENCY_SAVINGS_ACTION_BLOCK: "emergency_savings_block",
17
18
  PAYOFF_CALCULATOR_ACTION_BLOCK: "payoff_calculator_block"
@@ -1 +1 @@
1
- {"version":3,"file":"actionBlocksKey.es.js","names":[],"sources":["../../../src/insights-v2/mappings/actionBlocksKey.ts"],"sourcesContent":["// Keys for the drawer drilldown registry in `blocks.ts`, extracted into their own module.\n//\n// Why: chart blocks (e.g. BarchartBlock, DoubleBarChartBlock) need\n// `TRANSCATION_HISTORY_ACTION_BLOCK` to tag a chart bar's drilldown context, but they are\n// themselves re-exported through `../blocks` -> `mappings/blocks.ts` imports from that same\n// barrel to build its `blocks` registry. Importing the key straight from `mappings/blocks.ts`\n// closed that loop into a circular import: evaluating `mappings/blocks.ts` pulled in the\n// `blocks` barrel, which (before it got to `ComponentBlocks`/`AccountBlock`) loaded\n// `BarchartBlock`, which imported back into the still-initializing `mappings/blocks.ts` —\n// tripping a \"Cannot access 'AccountBlock' before initialization\" TDZ error in Storybook/Vite.\n//\n// Keeping the keys here (no dependency on `mappings/blocks.ts`) lets chart blocks reference\n// them without re-entering that module.\n//\n// Names follow ditto: its registry ends every CTA block in `_block` and the V2 envelope copies those\n// names verbatim (`transaction_details_block`, `contact_support_block`, `make_transfer_block`).\nexport const actionBlocksKey = {\n PLACEHOLDER_ACTION_BLOCK: 'placeholder_block',\n MAKE_TRANSFER_ACTION_BLOCK: 'make_transfer_block',\n TRANSCATION_HISTORY_ACTION_BLOCK: 'transaction_history_block',\n TRANSACTION_DETAILS_ACTION_BLOCK: 'transaction_details_block',\n CONTACT_SUPPORT_ACTION_BLOCK: 'contact_support_block',\n FEEDBACK_MODAL_ACTION_BLOCK: 'feedback_modal_block',\n CONNECTION_DETAIL_ACTION_BLOCK: 'connection_detail_block',\n CONNECT_WIDGET_ACTION_BLOCK: 'connect_widget_block',\n SURVEY_MODAL_ACTION_BLOCK: 'survey_modal_block',\n RECURRING_TRANSACTION_ACTION_BLOCK: 'recurring_transaction_block',\n TRANSACTION_LIST_ACTION_BLOCK: 'transaction_list_block',\n REMAINING_CASH_ACTION_BLOCK: 'remaining_cash_block',\n AMOUNT_INPUT_MODAL_ACTION_BLOCK: 'amount_input_modal_block',\n CREDIT_UTILIZATION_ACTION_BLOCK: 'credit_utilization_block',\n EMERGENCY_SAVINGS_ACTION_BLOCK: 'emergency_savings_block',\n PAYOFF_CALCULATOR_ACTION_BLOCK: 'payoff_calculator_block',\n}\n"],"mappings":"AAgBA,IAAa,IAAkB;AAAA,EAC7B,0BAA0B;AAAA,EAC1B,4BAA4B;AAAA,EAC5B,kCAAkC;AAAA,EAClC,kCAAkC;AAAA,EAClC,8BAA8B;AAAA,EAC9B,6BAA6B;AAAA,EAC7B,gCAAgC;AAAA,EAChC,6BAA6B;AAAA,EAC7B,2BAA2B;AAAA,EAC3B,oCAAoC;AAAA,EACpC,+BAA+B;AAAA,EAC/B,6BAA6B;AAAA,EAC7B,iCAAiC;AAAA,EACjC,iCAAiC;AAAA,EACjC,gCAAgC;AAAA,EAChC,gCAAgC;AAClC"}
1
+ {"version":3,"file":"actionBlocksKey.es.js","names":[],"sources":["../../../src/insights-v2/mappings/actionBlocksKey.ts"],"sourcesContent":["// Keys for the drawer drilldown registry in `blocks.ts`, extracted into their own module.\n//\n// Why: chart blocks (e.g. BarchartBlock, DoubleBarChartBlock) need\n// `TRANSCATION_HISTORY_ACTION_BLOCK` to tag a chart bar's drilldown context, but they are\n// themselves re-exported through `../blocks` -> `mappings/blocks.ts` imports from that same\n// barrel to build its `blocks` registry. Importing the key straight from `mappings/blocks.ts`\n// closed that loop into a circular import: evaluating `mappings/blocks.ts` pulled in the\n// `blocks` barrel, which (before it got to `ComponentBlocks`/`AccountBlock`) loaded\n// `BarchartBlock`, which imported back into the still-initializing `mappings/blocks.ts` —\n// tripping a \"Cannot access 'AccountBlock' before initialization\" TDZ error in Storybook/Vite.\n//\n// Keeping the keys here (no dependency on `mappings/blocks.ts`) lets chart blocks reference\n// them without re-entering that module.\n//\n// Names follow ditto: its registry ends every CTA block in `_block` and the V2 envelope copies those\n// names verbatim (`transaction_details_block`, `contact_support_block`, `make_transfer_block`).\nexport const actionBlocksKey = {\n PLACEHOLDER_ACTION_BLOCK: 'placeholder_block',\n MAKE_TRANSFER_ACTION_BLOCK: 'make_transfer_block',\n TRANSCATION_HISTORY_ACTION_BLOCK: 'transaction_history_block',\n TRANSACTION_DETAILS_ACTION_BLOCK: 'transaction_details_block',\n CONTACT_SUPPORT_ACTION_BLOCK: 'contact_support_block',\n FEEDBACK_MODAL_ACTION_BLOCK: 'feedback_modal_block',\n CONNECTION_DETAIL_ACTION_BLOCK: 'connection_detail_block',\n CONNECT_WIDGET_ACTION_BLOCK: 'connect_widget_block',\n SURVEY_MODAL_ACTION_BLOCK: 'survey_modal_block',\n RECURRING_TRANSACTION_ACTION_BLOCK: 'recurring_transaction_block',\n TRANSACTION_LIST_ACTION_BLOCK: 'transaction_list_block',\n REMAINING_CASH_ACTION_BLOCK: 'remaining_cash_block',\n AMOUNT_INPUT_MODAL_ACTION_BLOCK: 'amount_input_modal_block',\n OVERDRAFT_ACTION_BLOCK: 'transparent_overdraft_block',\n CREDIT_UTILIZATION_ACTION_BLOCK: 'credit_utilization_block',\n EMERGENCY_SAVINGS_ACTION_BLOCK: 'emergency_savings_block',\n PAYOFF_CALCULATOR_ACTION_BLOCK: 'payoff_calculator_block',\n}\n"],"mappings":"AAgBA,IAAa,IAAkB;AAAA,EAC7B,0BAA0B;AAAA,EAC1B,4BAA4B;AAAA,EAC5B,kCAAkC;AAAA,EAClC,kCAAkC;AAAA,EAClC,8BAA8B;AAAA,EAC9B,6BAA6B;AAAA,EAC7B,gCAAgC;AAAA,EAChC,6BAA6B;AAAA,EAC7B,2BAA2B;AAAA,EAC3B,oCAAoC;AAAA,EACpC,+BAA+B;AAAA,EAC/B,6BAA6B;AAAA,EAC7B,iCAAiC;AAAA,EACjC,wBAAwB;AAAA,EACxB,iCAAiC;AAAA,EACjC,gCAAgC;AAAA,EAChC,gCAAgC;AAClC"}
@@ -1,5 +1,5 @@
1
1
  import { ContactSupportActionBlock as p } from "../actionBlocks/ContactSupportActionBlock.es.js";
2
- import { hasDrawerBlock as J } from "./hasDrawerBlock.es.js";
2
+ import { hasDrawerBlock as X } from "./hasDrawerBlock.es.js";
3
3
  import { actionBlocksKey as o } from "./actionBlocksKey.es.js";
4
4
  import { BarchartBlock as m } from "../blocks/ChartBlocks/BarchartBlock/BarchartBlock.es.js";
5
5
  import { DoubleBarChartBlock as _ } from "../blocks/ChartBlocks/DoubleBarChartBlock/DoubleBarChartBlock.es.js";
@@ -10,11 +10,11 @@ import B from "../blocks/ComponentBlocks/DetailedAccountBlock/DetailedAccountBlo
10
10
  import u from "../blocks/ComponentBlocks/AccountBlock/AccountBlock.es.js";
11
11
  import f from "../blocks/ComponentBlocks/AccountSwitchBlock/AccountSwitchBlock.es.js";
12
12
  import { BudgetBlock as A } from "../blocks/ComponentBlocks/BudgetBlock/BudgetBlock.es.js";
13
- import T from "../blocks/ComponentBlocks/DebtsBlock/DebtsBlock.es.js";
14
- import O from "../blocks/ComponentBlocks/GoalsBlock/GoalsBlock.es.js";
15
- import N from "../blocks/ComponentBlocks/NoSpendDaysBlock/NoSpendDaysBlock.es.js";
13
+ import O from "../blocks/ComponentBlocks/DebtsBlock/DebtsBlock.es.js";
14
+ import T from "../blocks/ComponentBlocks/GoalsBlock/GoalsBlock.es.js";
15
+ import d from "../blocks/ComponentBlocks/NoSpendDaysBlock/NoSpendDaysBlock.es.js";
16
16
  import n from "../blocks/ComponentBlocks/RepeatingTransactionBlock/RepeatingTransactionBlock.es.js";
17
- import d from "../blocks/ComponentBlocks/SaveExtraBlock/SaveExtraBlock.es.js";
17
+ import N from "../blocks/ComponentBlocks/SaveExtraBlock/SaveExtraBlock.es.js";
18
18
  import I from "../blocks/ComponentBlocks/SavingsOpportunityBlock/SavingsOpportunityBlock.es.js";
19
19
  import { TransactionBlock as g } from "../blocks/ComponentBlocks/TransactionBlock/TransactionBlock.es.js";
20
20
  import b from "../blocks/ComponentBlocks/UpcomingSubscriptionBlock/UpcomingSubscriptionBlock.es.js";
@@ -22,12 +22,12 @@ import P from "../blocks/ComponentBlocks/WithdrawalBlock/WithdrawalBlock.es.js";
22
22
  import L from "../blocks/ImageBlocks/ImageBlock.es.js";
23
23
  import { SVGImageBlock as h } from "../blocks/ImageBlocks/SVGImageBlock/SVGImageBlock.es.js";
24
24
  import { FeedbackModalActionBlock as D } from "../actionBlocks/FeedbackModalActionBlock.es.js";
25
- import { ConnectionDetailActionBlock as S } from "../actionBlocks/ConnectionDetailActionBlock.es.js";
26
- import { ConnectWidgetActionBlock as E } from "../actionBlocks/ConnectWidgetActionBlock.es.js";
27
- import { SurveyModalActionBlock as R } from "../actionBlocks/SurveyModalActionBlock.es.js";
28
- import { PlaceholderActionBlock as K } from "../actionBlocks/PlaceholderActionBlock.es.js";
25
+ import { ConnectionDetailActionBlock as R } from "../actionBlocks/ConnectionDetailActionBlock.es.js";
26
+ import { ConnectWidgetActionBlock as S } from "../actionBlocks/ConnectWidgetActionBlock.es.js";
27
+ import { SurveyModalActionBlock as E } from "../actionBlocks/SurveyModalActionBlock.es.js";
28
+ import { PlaceholderActionBlock as v } from "../actionBlocks/PlaceholderActionBlock.es.js";
29
29
  import { getMakeTransferDrawerTitle as y } from "../actionBlocks/MakeTransferActionBlock/layout.es.js";
30
- import { MakeTransferActionBlockLayer as v } from "../actionBlocks/MakeTransferActionBlock/MakeTransferActionBlockLayer.es.js";
30
+ import { MakeTransferActionBlockLayer as K } from "../actionBlocks/MakeTransferActionBlock/MakeTransferActionBlockLayer.es.js";
31
31
  import { getDrawerHeaderTitle as M } from "../actionBlocks/TransactionHistoryBlock/utils.es.js";
32
32
  import { TransactionDetailsBlock as w } from "../actionBlocks/TransactionDetailsBlock/TransactionDetailsBlock.es.js";
33
33
  import { useTransactionDetailsPrepare as c } from "../actionBlocks/TransactionDetailsBlock/useTransactionDetailsPrepare.es.js";
@@ -37,10 +37,11 @@ import { RecurringTransactionBlock as G } from "../actionBlocks/RecurringTransac
37
37
  import { TransactionListBlock as F } from "../actionBlocks/TransactionListBlock/TransactionListBlock.es.js";
38
38
  import { RemainingCashBlock as H } from "../actionBlocks/RemainingCashBlock/RemainingCashBlock.es.js";
39
39
  import { AmountInputModalBlock as x } from "../actionBlocks/AmountInputModalBlock/AmountInputModalBlock.es.js";
40
- import { EmergencySavingsBlock as Y } from "../actionBlocks/EmergencySavingsBlock/EmergencySavingsBlock.es.js";
41
- import { CreditUtilizationBlock as z } from "../actionBlocks/CreditUtilizationBlock/CreditUtilizationBlock.es.js";
42
- import { useCreditUtilizationPrepare as V } from "../actionBlocks/CreditUtilizationBlock/useCreditUtilizationPrepare.es.js";
43
- import { PayoffCalculatorBlock as W, usePayoffCalculatorPrepare as q } from "../actionBlocks/PayoffCalculatorBlock/PayoffCalculatorBlock.es.js";
40
+ import { OverdraftBlock as V, useOverdraftPrepare as Y } from "../actionBlocks/OverdraftBlock/OverdraftBlock.es.js";
41
+ import { EmergencySavingsBlock as z } from "../actionBlocks/EmergencySavingsBlock/EmergencySavingsBlock.es.js";
42
+ import { CreditUtilizationBlock as W } from "../actionBlocks/CreditUtilizationBlock/CreditUtilizationBlock.es.js";
43
+ import { useCreditUtilizationPrepare as q } from "../actionBlocks/CreditUtilizationBlock/useCreditUtilizationPrepare.es.js";
44
+ import { PayoffCalculatorBlock as Z, usePayoffCalculatorPrepare as j } from "../actionBlocks/PayoffCalculatorBlock/PayoffCalculatorBlock.es.js";
44
45
  var i = (r) => {
45
46
  }, t = (r) => ({
46
47
  get Component() {
@@ -55,14 +56,14 @@ var i = (r) => {
55
56
  get presentation() {
56
57
  return r().presentation;
57
58
  }
58
- }), Go = {
59
+ }), xo = {
59
60
  [o.PLACEHOLDER_ACTION_BLOCK]: t(() => ({
60
- Component: K,
61
+ Component: v,
61
62
  usePrepare: i,
62
63
  title: () => "Action Block Layer Drilldown"
63
64
  })),
64
65
  [o.MAKE_TRANSFER_ACTION_BLOCK]: t(() => ({
65
- Component: v,
66
+ Component: K,
66
67
  usePrepare: i,
67
68
  title: y
68
69
  })),
@@ -97,16 +98,16 @@ var i = (r) => {
97
98
  presentation: "modal"
98
99
  })),
99
100
  [o.CONNECTION_DETAIL_ACTION_BLOCK]: t(() => ({
100
- Component: S,
101
+ Component: R,
101
102
  usePrepare: i,
102
103
  title: (r, e) => e.insights_feed?.connection_details?.connection_details_drawer_title ?? ""
103
104
  })),
104
105
  [o.CONNECT_WIDGET_ACTION_BLOCK]: t(() => ({
105
- Component: E,
106
+ Component: S,
106
107
  usePrepare: i
107
108
  })),
108
109
  [o.SURVEY_MODAL_ACTION_BLOCK]: t(() => ({
109
- Component: R,
110
+ Component: E,
110
111
  usePrepare: i,
111
112
  presentation: "modal"
112
113
  })),
@@ -120,36 +121,41 @@ var i = (r) => {
120
121
  presentation: "modal",
121
122
  usePrepare: i
122
123
  })),
124
+ [o.OVERDRAFT_ACTION_BLOCK]: t(() => ({
125
+ Component: V,
126
+ usePrepare: Y,
127
+ title: (r, e, a) => a?.insights_payload?.title ?? ""
128
+ })),
123
129
  [o.CREDIT_UTILIZATION_ACTION_BLOCK]: t(() => ({
124
- Component: z,
125
- usePrepare: V,
130
+ Component: W,
131
+ usePrepare: q,
126
132
  title: (r, e) => e.insights_feed?.credit_utilization?.title ?? ""
127
133
  })),
128
134
  [o.EMERGENCY_SAVINGS_ACTION_BLOCK]: t(() => ({
129
- Component: Y,
135
+ Component: z,
130
136
  usePrepare: i,
131
137
  title: (r, e, a) => a?.insights_payload?.title ?? ""
132
138
  })),
133
139
  [o.PAYOFF_CALCULATOR_ACTION_BLOCK]: t(() => ({
134
- Component: W,
135
- usePrepare: q,
140
+ Component: Z,
141
+ usePrepare: j,
136
142
  title: (r, e) => e.insights_feed?.payoff_calculator?.title ?? ""
137
143
  }))
138
- }, Fo = {
144
+ }, Vo = {
139
145
  account_block: u,
140
146
  account_switch_block: f,
141
147
  direct_deposit_block: B,
142
148
  bar_chart_block: m,
143
149
  budget_block: A,
144
- debts_block: T,
150
+ debts_block: O,
145
151
  donut_chart_block: C,
146
152
  double_bar_chart_block: _,
147
153
  double_progress_bar_block: k,
148
- goals_block: O,
154
+ goals_block: T,
149
155
  image_block: L,
150
- no_spend_days_block: N,
156
+ no_spend_days_block: d,
151
157
  repeating_transaction_block: n,
152
- save_extra_block: d,
158
+ save_extra_block: N,
153
159
  savings_opportunity_block: I,
154
160
  step_chart_block: s,
155
161
  svg_image_block: h,
@@ -159,9 +165,9 @@ var i = (r) => {
159
165
  transaction_block: g
160
166
  };
161
167
  export {
162
- Go as actionBlocks,
163
- Fo as blocks,
164
- J as hasDrawerBlock
168
+ xo as actionBlocks,
169
+ Vo as blocks,
170
+ X as hasDrawerBlock
165
171
  };
166
172
 
167
173
  //# sourceMappingURL=blocks.es.js.map
@@ -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 GoalsBlock,\n DoubleBarChartBlock,\n DoubleProgressBarBlock,\n NoSpendDaysBlock,\n RepeatingTransactionBlock,\n SaveExtraBlock,\n SavingsOpportunityBlock,\n SVGImageBlock,\n UpcomingSubscriptionBlock,\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 { 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 { 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 {\n TransactionDetailsBlock,\n useTransactionDetailsPrepare,\n} from '../actionBlocks/TransactionDetailsBlock'\nimport {\n RecurringTransactionBlock,\n useRecurringTransactionPrepare,\n} from '../actionBlocks/RecurringTransactionBlock'\nimport { TransactionListBlock } from '../actionBlocks/TransactionListBlock'\nimport { RemainingCashBlock } from '../actionBlocks/RemainingCashBlock'\nimport { AmountInputModalBlock } from '../actionBlocks/AmountInputModalBlock'\nimport { EmergencySavingsBlock } from '../actionBlocks/EmergencySavingsBlock'\nimport {\n CreditUtilizationBlock,\n useCreditUtilizationPrepare,\n} from '../actionBlocks/CreditUtilizationBlock'\nimport {\n PayoffCalculatorBlock,\n usePayoffCalculatorPrepare,\n} from '../actionBlocks/PayoffCalculatorBlock'\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 // Resolves the drawer title from the clicked CTA's variant + copy, with the beat available\n // for blocks that title from beat fields (e.g. transaction-list reads insights_payload.title).\n // Falls back to the CTA label when the resolver returns an empty string / is absent.\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}\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 * A registry entry whose fields read their imports when used, not when this module loads. Some\n * registered blocks render `TransactionDetails`, whose embedded card mounts `ActionBlockLayer`,\n * which imports this registry: when one of those blocks loads first, its own import is not\n * initialised yet while this module evaluates, so a value copied at load would be `undefined`\n * (or throw under native ES modules). Reading on access sees the finished import.\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})\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: noop,\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 [actionBlocksKey.TRANSACTION_LIST_ACTION_BLOCK]: liveEntry(() => ({\n Component: TransactionListBlock,\n usePrepare: useTransactionDetailsPrepare,\n title: (_variant, _copy, beat) => beat?.insights_payload?.title ?? '',\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 // 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} 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 goals_block: GoalsBlock,\n image_block: ImageBlock,\n no_spend_days_block: NoSpendDaysBlock,\n repeating_transaction_block: RepeatingTransactionBlock,\n save_extra_block: SaveExtraBlock,\n savings_opportunity_block: SavingsOpportunityBlock,\n step_chart_block: StepChartBlock,\n svg_image_block: SVGImageBlock,\n upcoming_bill_block: RepeatingTransactionBlock,\n upcoming_subscription_block: UpcomingSubscriptionBlock,\n withdrawal_block: WithdrawalBlock,\n transaction_block: TransactionBlock,\n} as Record<string, React.ComponentType<{ payload: InsightsPayload; beatGuid?: string }>>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgEA,IAAM,IAAA,CAAQ,MAAwB;AAAC,GA0BjC,IAAA,CAAa,OAAuD;AAAA,EACxE,IAAI,YAAY;AACd,WAAO,EAAQ,EAAE;AAAA,EACnB;AAAA,EACA,IAAI,aAAa;AACf,WAAO,EAAQ,EAAE;AAAA,EACnB;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E;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,aAAa;AAAA,EACb,aAAa;AAAA,EACb,qBAAqB;AAAA,EACrB,6BAA6B;AAAA,EAC7B,kBAAkB;AAAA,EAClB,2BAA2B;AAAA,EAC3B,kBAAkB;AAAA,EAClB,iBAAiB;AAAA,EACjB,qBAAqB;AAAA,EACrB,6BAA6B;AAAA,EAC7B,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 GoalsBlock,\n DoubleBarChartBlock,\n DoubleProgressBarBlock,\n NoSpendDaysBlock,\n RepeatingTransactionBlock,\n SaveExtraBlock,\n SavingsOpportunityBlock,\n SVGImageBlock,\n UpcomingSubscriptionBlock,\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 { 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 { 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 {\n TransactionDetailsBlock,\n useTransactionDetailsPrepare,\n} from '../actionBlocks/TransactionDetailsBlock'\nimport {\n RecurringTransactionBlock,\n useRecurringTransactionPrepare,\n} from '../actionBlocks/RecurringTransactionBlock'\nimport { TransactionListBlock } from '../actionBlocks/TransactionListBlock'\nimport { RemainingCashBlock } from '../actionBlocks/RemainingCashBlock'\nimport { AmountInputModalBlock } from '../actionBlocks/AmountInputModalBlock'\nimport { OverdraftBlock, useOverdraftPrepare } from '../actionBlocks/OverdraftBlock'\nimport { EmergencySavingsBlock } from '../actionBlocks/EmergencySavingsBlock'\nimport {\n CreditUtilizationBlock,\n useCreditUtilizationPrepare,\n} from '../actionBlocks/CreditUtilizationBlock'\nimport {\n PayoffCalculatorBlock,\n usePayoffCalculatorPrepare,\n} from '../actionBlocks/PayoffCalculatorBlock'\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 // Resolves the drawer title from the clicked CTA's variant + copy, with the beat available\n // for blocks that title from beat fields (e.g. transaction-list reads insights_payload.title).\n // Falls back to the CTA label when the resolver returns an empty string / is absent.\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}\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 * A registry entry whose fields read their imports when used, not when this module loads. Some\n * registered blocks render `TransactionDetails`, whose embedded card mounts `ActionBlockLayer`,\n * which imports this registry: when one of those blocks loads first, its own import is not\n * initialised yet while this module evaluates, so a value copied at load would be `undefined`\n * (or throw under native ES modules). Reading on access sees the finished import.\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})\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: noop,\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 [actionBlocksKey.TRANSACTION_LIST_ACTION_BLOCK]: liveEntry(() => ({\n Component: TransactionListBlock,\n usePrepare: useTransactionDetailsPrepare,\n title: (_variant, _copy, beat) => beat?.insights_payload?.title ?? '',\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 // 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} 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 goals_block: GoalsBlock,\n image_block: ImageBlock,\n no_spend_days_block: NoSpendDaysBlock,\n repeating_transaction_block: RepeatingTransactionBlock,\n save_extra_block: SaveExtraBlock,\n savings_opportunity_block: SavingsOpportunityBlock,\n step_chart_block: StepChartBlock,\n svg_image_block: SVGImageBlock,\n upcoming_bill_block: RepeatingTransactionBlock,\n upcoming_subscription_block: UpcomingSubscriptionBlock,\n withdrawal_block: WithdrawalBlock,\n transaction_block: TransactionBlock,\n} as Record<string, React.ComponentType<{ payload: InsightsPayload; beatGuid?: string }>>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiEA,IAAM,IAAA,CAAQ,MAAwB;AAAC,GA0BjC,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;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,YAAY;AAAA,IACZ,OAAO;AAAA,EACT,EAAE;AAAA,EACD,CAAA,EAAgB,gCAAA,GAAmC,EAAA,OAAiB;AAAA,IACnE,WAAW;AAAA,IACX,YAAY;AAAA,IACZ,OAAO;AAAA,EACT,EAAE;AAAA,EACD,CAAA,EAAgB,gCAAA,GAAmC,EAAA,OAAiB;AAAA,IACnE,WAAW;AAAA,IACX,YAAY;AAAA,IACZ,OAAA,MAAa;AAAA,EACf,EAAE;AAAA,EAGD,CAAA,EAAgB,kCAAA,GAAqC,EAAA,OAAiB;AAAA,IACrE,WAAW;AAAA,IACX,YAAY;AAAA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EAGD,CAAA,EAAgB,sBAAA,GAAyB,EAAA,OAAiB;AAAA,IACzD,WAAW;AAAA,IACX,YAAY;AAAA,IACZ,OAAA,CAAQ,GAAU,GAAO,MAAS,GAAM,kBAAkB,SAAS;AAAA,EACrE,EAAE;AAAA,EAGD,CAAA,EAAgB,+BAAA,GAAkC,EAAA,OAAiB;AAAA,IAClE,WAAW;AAAA,IACX,YAAY;AAAA,IACZ,OAAA,CAAQ,GAAU,MAAS,EAAK,eAAe,oBAAoB,SAAS;AAAA,EAC9E,EAAE;AAAA,EACD,CAAA,EAAgB,8BAAA,GAAiC,EAAA,OAAiB;AAAA,IACjE,WAAW;AAAA,IACX,YAAY;AAAA,IACZ,OAAA,CAAQ,GAAU,GAAO,MAAS,GAAM,kBAAkB,SAAS;AAAA,EACrE,EAAE;AAAA,EAED,CAAA,EAAgB,8BAAA,GAAiC,EAAA,OAAiB;AAAA,IACjE,WAAW;AAAA,IACX,YAAY;AAAA,IACZ,OAAA,CAAQ,GAAU,MAAS,EAAK,eAAe,mBAAmB,SAAS;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,aAAa;AAAA,EACb,aAAa;AAAA,EACb,qBAAqB;AAAA,EACrB,6BAA6B;AAAA,EAC7B,kBAAkB;AAAA,EAClB,2BAA2B;AAAA,EAC3B,kBAAkB;AAAA,EAClB,iBAAiB;AAAA,EACjB,qBAAqB;AAAA,EACrB,6BAA6B;AAAA,EAC7B,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.34",
3
+ "version": "9.7.35",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",