@mx-cartographer/experiences 9.7.41 → 9.7.42

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,14 @@
1
+ ## [9.7.42] - 10-26-2026
2
+
3
+ - **CHANGED** - `AccountSwitchBlock` reads only the Insights 2.0 envelope's `instance_slot.data` (`from_logo`, `to_logo`, each `{ guid, alt }`) and renders the same `TransferLogoCard`, each logo through `LogoFromGuid`, which draws nothing for a missing slot or a guid that fails `isLogoGuid`. The flat `instance_slot_data` fallback is removed: tupac never sends it on an Insights 2.0 envelope, and the V1 Discovered Accounts and Switch Direct Deposit cards render through the legacy `insights` components, not this block. The block's stories move to the `data` shape (WEC-1980)
4
+ - **ADDED** - `CompactInsightCard` gains the `linked_logos` visual (ditto layout variant): two institution logos overlapping with a decorative link badge, for Discovered Accounts V2's embedded card. The visual receives the slot's whole `data` beside `logo` (WEC-1980)
5
+ - **CHANGED** - `ConnectWidgetActionBlock` opens the Connect widget on the discovered institution (`current_institution_guid`) when the envelope's `drilldown_data.discovered_institution_guid` passes `isLogoGuid`, matching V1; otherwise it opens institution search as before (WEC-1980)
6
+ - **ADDED** - Mock payload `AccountSwitchBlockPayload.json` with the Discovered Accounts V2 envelopes per widget and variant, wrapped as beats in `AccountSwitchBlockBeats.ts` and shown in the `InsightsV2/Insights/ConnectDiscoveredAccountsV2` stories (full and mini per variant, micro, embedded `linked_logos`, notification). A fixture test renders every envelope and checks each CTA names a registered action block (WEC-1980)
7
+ - **FIXED** - Discovered Accounts V2's embedded card shows its "Connect Account(s)" link: tupac sends that CTA as `in_description_cta` only (no `primary_cta`), so `CompactInsightCard`'s `BEAT_CTA_CONFIG` now maps `ConnectDiscoveredAccountsV2` to it and opens `connect_widget_block` in the card's own `ActionBlockLayer`. Without the entry the card read `primary_cta` and drew no link in Transaction Details. The full and embedded fixtures are now the sand API responses (no `to_logo` for a user with no FI-managed account, drawn as the discovered logo alone); the Micro story renders through the micro carousel's `InsightCard` and the Notification story is dropped, as experiences does not render that surface (WEC-1980)
8
+ - **CHANGED** - Mock copy only: `GlobalCopy.json`'s `insights_feed.connection_details` carries V1's Learn More wording (the longer description, five benefits, the full shared-info paragraph and card text), mirroring the mrs_content change so the Connection Details drawer story matches Figma 1943:219219. The hand-built Discovered Accounts V2 fixtures use institution guids that have CDN logos (Chase, Gringotts) so their stories show brand logos; the sand envelopes keep their real guid (WEC-1980)
9
+ - **ADDED** - Exported type `AccountSwitchBlockV2Data` beside `AccountSwitchBlockData` in `InsightsInstanceSlotData.ts`: the Discovered Accounts V2 `instance_slot.data` slots (`from_logo`, `to_logo`, `logo`, each an optional `LogoRef`). `AccountSwitchBlock` and `CompactInsightCard`'s `linked_logos` read their logos through it instead of untyped `slot<LogoRef>()` lookups (WEC-1980)
10
+ - **CHANGED** - Discovered Accounts V2 guards its guids with the existing `isLogoGuid` instead of a separate `isInstitutionGuid`, which is removed from `LogoFromGuid`. `linked_logos` and `AccountSwitchBlock`'s V2 `from_logo` / `to_logo` render each logo through `LogoFromGuid` directly, which already draws nothing for a guid that is not a logo guid (WEC-1980)
11
+
1
12
  ## [9.7.41] - 10-26-2026
2
13
 
3
14
  - **FIXED** - The neutral status pill on the Set Up Direct Deposit card (`direct_deposit_block`, `set_up_direct_deposit` and `detailed_neutral`) is `grey.100` in light mode and `grey.800` in dark mode, so `text.primary` reads on it in both. It was `grey.200` in both, which left the dark-mode label at about 1.4:1 contrast because the grey tokens do not change with the mode (WEC-2059)
@@ -1,4 +1,4 @@
1
- import { DataSeries, Legends } from '../../core';
1
+ import { DataSeries, Legends, LogoRef } from '../../core';
2
2
  export interface InsightsInstanceSlotData extends Partial<BudgetBlockData>, Partial<DonutChartBlockData>, Partial<ImageBlockData>, Partial<AccountBlockData>, Partial<SaveExtraBlockData>, Partial<StepChartBlockData>, Partial<SVGImageBlockData>, Partial<AccountSwitchBlockData>, Partial<TransactionDetailsBlockData>, Partial<CreditUtilizationBlockData>, Partial<CommonProps> {
3
3
  }
4
4
  interface CommonProps {
@@ -83,6 +83,11 @@ export interface AccountSwitchBlockData {
83
83
  held_institution_guid: string;
84
84
  held_institution_name: string;
85
85
  }
86
+ export interface AccountSwitchBlockV2Data {
87
+ from_logo?: LogoRef;
88
+ to_logo?: LogoRef;
89
+ logo?: LogoRef;
90
+ }
86
91
  export interface StepChartBlockData {
87
92
  completed_steps: number;
88
93
  label_1: string;
@@ -1 +1 @@
1
- {"version":3,"file":"InsightsInstanceSlotData.es.js","names":[],"sources":["../../../src/core/types/InsightsInstanceSlotData.ts"],"sourcesContent":["import type { DataSeries, Legends } from '../../core'\n\nexport interface InsightsInstanceSlotData\n extends\n Partial<BudgetBlockData>,\n Partial<DonutChartBlockData>,\n Partial<ImageBlockData>,\n Partial<AccountBlockData>,\n Partial<SaveExtraBlockData>,\n Partial<StepChartBlockData>,\n Partial<SVGImageBlockData>,\n Partial<AccountSwitchBlockData>,\n Partial<TransactionDetailsBlockData>,\n Partial<CreditUtilizationBlockData>,\n Partial<CommonProps> {}\n\n//when any of the type is used more than one times, we can use the common props\ninterface CommonProps {\n amount?: number\n ariaLabel?: string\n date?: string\n legends?: Legends[]\n category_guid?: string\n data_series?: DataSeries | DataSet[]\n transaction_guids?: string[]\n account_guids?: string[]\n primary_transaction_guid?: string\n}\n\n//BarChart Block: `instance_slot.data` (Insights 2.0)\nexport interface BarChartBlockData {\n series?: DataSeries\n category_guid?: string\n average_amount?: number\n /** [0] monthly amount, [1] trend. */\n additional_data?: Legends[]\n}\n\n//DonutChart Block\ninterface Main {\n value: string\n value_type: string\n label: string\n}\nexport interface DonutChartBlockData {\n main: Main\n}\n\n//DoubleBarChart Block\n// TODO : This has to be revisited again to update the below types based on API response once we have the final shape of the data_series for double bar chart from BE\nexport interface LegendProps extends Legends {\n amount: number\n formattedAmount: string\n label: string\n color?: string\n}\n\nexport interface DataSet extends DataSeries {\n ariaLabelComparison: string\n ariaLabelMain: string\n comparison: number\n formattedComparison: string\n formattedMain: string\n label: string\n main: number\n}\n\n//DoubleProgressBar Block\n\n//Image Block\nexport interface ImageBlockData {\n image: string\n}\n\n//Account Block\nexport interface AccountBlockData {\n sub_text: string\n institution_guid?: string\n institution_name?: string\n icon_name?: string\n /** Header bar text (standard card), or the colored category strip label (deposit cards). */\n header_text?: string\n // Deposit variants (Unified Deposit, Unified Deposit Emergency Fund, Savings Account Deposit)\n /** Merchant guid — renders a real merchant logo in the deposit card when present. */\n merchant_guid?: string\n /** Merchant display name — logo alt text and the payer line under the amount. */\n merchant_name?: string\n /** Secondary label beside the amount, e.g. `On {date}, you saved` or `Balance as of MM/DD/YY`. */\n label?: string\n}\n\nexport interface SaveExtraBlockData {\n /** Styled segments `[lead-in, amount digits, trailing copy]`, e.g. `['Save an extra', '100', 'to help your funds grow']`. */\n primary_text?: string[]\n /** Styled segments `[projected balance, caption]`, e.g. `['$8,313.87', 'After payday & projected expenses']`. */\n secondary_text?: string[]\n /** MakeTransfer drilldown: available balance (both variants). */\n available_balance?: number\n /** SAVE_ENOUGH_TO_LIVE_ON: average monthly spend. */\n avg_monthly_spend?: number\n /** SAVE_ENOUGH_TO_LIVE_ON: how long the balance lasts, overlaid on the timeline SVG (e.g. \"2 months, 11 days\"). */\n time_period?: string\n /** SAVE_AN_EXTRA_100: upcoming expenses (the \"Expenses\" figure). */\n upcoming_expenses?: number\n /** SAVE_AN_EXTRA_100: total remaining after expenses. */\n total_remaining?: number\n /** SAVE_ENOUGH_TO_LIVE_ON: date for the \"Your available balances as of {date}\" line. */\n date?: string\n}\n\n// AccountSwitch Block. State comes from `instance_slot.variant`, not a data flag.\nexport interface AccountSwitchBlockData {\n discovered_institution_guid: string\n discovered_institution_name: string\n held_institution_guid: string\n held_institution_name: string\n}\n\n// StepChart Block\nexport interface StepChartBlockData {\n completed_steps: number\n label_1: string\n label_2?: string\n}\n\n//Budgets Blocks\nexport enum BudgetTierType {\n LOW_BUDGET_TIER = 'LOW',\n MEDIUM_BUDGET_TIER = 'MEDIUM',\n OFF_TRACK_BUDGET_TIER = 'OFF_TRACK',\n}\n\nexport type BudgetTierValue = `${BudgetTierType}`\n\nexport interface BudgetLocalizedPayload {\n primary_text?: string\n amount_left_label?: string\n spent_label?: string\n budgeted_label?: string\n}\n\nexport interface BudgetBlockData {\n budget_percent: number\n budget_tier: BudgetTierValue\n category_guid?: string\n merchant_guid?: string\n spent_amount: number\n budgeted_amount: number\n localized_payload: BudgetLocalizedPayload\n}\n\nexport interface SVGImageBlockData {\n isCIBC?: boolean\n}\n\n// TransactionDetails Action Block\n// The drawer's subject is `InsightsPayload.primary_transaction_guid`; only action configuration\n// lives here.\nexport interface TransactionDetailsBlockData {\n /** `TopActions` member names, e.g. `['Category', 'Date', 'Memo']`. Omit for the defaults. */\n top_actions?: string[]\n /** `BottomActions` member names, e.g. `['MerchantBudget', 'HideTransaction']`. Omit for defaults. */\n bottom_actions?: string[]\n}\n\n// Credit Utilization action block. The per-card rows are the beat's `data_series` table\n// (`guid`, `label`, `amount`, `total_amount`, `percentage`), carried on `CommonProps.data_series`.\nexport interface CreditUtilizationBlockData {\n accounts_balance_sum?: number\n accounts_credit_limit_sum?: number\n credit_utilization_percentage?: number\n}\n"],"mappings":"AA8HA,IAAY,IAAL,0BAAA,GAAA;AACL,SAAA,EAAA,kBAAA,OACA,EAAA,qBAAA,UACA,EAAA,wBAAA;AACF,GAAA,CAAA,CAAA"}
1
+ {"version":3,"file":"InsightsInstanceSlotData.es.js","names":[],"sources":["../../../src/core/types/InsightsInstanceSlotData.ts"],"sourcesContent":["import type { DataSeries, Legends, LogoRef } from '../../core'\n\nexport interface InsightsInstanceSlotData\n extends\n Partial<BudgetBlockData>,\n Partial<DonutChartBlockData>,\n Partial<ImageBlockData>,\n Partial<AccountBlockData>,\n Partial<SaveExtraBlockData>,\n Partial<StepChartBlockData>,\n Partial<SVGImageBlockData>,\n Partial<AccountSwitchBlockData>,\n Partial<TransactionDetailsBlockData>,\n Partial<CreditUtilizationBlockData>,\n Partial<CommonProps> {}\n\n//when any of the type is used more than one times, we can use the common props\ninterface CommonProps {\n amount?: number\n ariaLabel?: string\n date?: string\n legends?: Legends[]\n category_guid?: string\n data_series?: DataSeries | DataSet[]\n transaction_guids?: string[]\n account_guids?: string[]\n primary_transaction_guid?: string\n}\n\n//BarChart Block: `instance_slot.data` (Insights 2.0)\nexport interface BarChartBlockData {\n series?: DataSeries\n category_guid?: string\n average_amount?: number\n /** [0] monthly amount, [1] trend. */\n additional_data?: Legends[]\n}\n\n//DonutChart Block\ninterface Main {\n value: string\n value_type: string\n label: string\n}\nexport interface DonutChartBlockData {\n main: Main\n}\n\n//DoubleBarChart Block\n// TODO : This has to be revisited again to update the below types based on API response once we have the final shape of the data_series for double bar chart from BE\nexport interface LegendProps extends Legends {\n amount: number\n formattedAmount: string\n label: string\n color?: string\n}\n\nexport interface DataSet extends DataSeries {\n ariaLabelComparison: string\n ariaLabelMain: string\n comparison: number\n formattedComparison: string\n formattedMain: string\n label: string\n main: number\n}\n\n//DoubleProgressBar Block\n\n//Image Block\nexport interface ImageBlockData {\n image: string\n}\n\n//Account Block\nexport interface AccountBlockData {\n sub_text: string\n institution_guid?: string\n institution_name?: string\n icon_name?: string\n /** Header bar text (standard card), or the colored category strip label (deposit cards). */\n header_text?: string\n // Deposit variants (Unified Deposit, Unified Deposit Emergency Fund, Savings Account Deposit)\n /** Merchant guid — renders a real merchant logo in the deposit card when present. */\n merchant_guid?: string\n /** Merchant display name — logo alt text and the payer line under the amount. */\n merchant_name?: string\n /** Secondary label beside the amount, e.g. `On {date}, you saved` or `Balance as of MM/DD/YY`. */\n label?: string\n}\n\nexport interface SaveExtraBlockData {\n /** Styled segments `[lead-in, amount digits, trailing copy]`, e.g. `['Save an extra', '100', 'to help your funds grow']`. */\n primary_text?: string[]\n /** Styled segments `[projected balance, caption]`, e.g. `['$8,313.87', 'After payday & projected expenses']`. */\n secondary_text?: string[]\n /** MakeTransfer drilldown: available balance (both variants). */\n available_balance?: number\n /** SAVE_ENOUGH_TO_LIVE_ON: average monthly spend. */\n avg_monthly_spend?: number\n /** SAVE_ENOUGH_TO_LIVE_ON: how long the balance lasts, overlaid on the timeline SVG (e.g. \"2 months, 11 days\"). */\n time_period?: string\n /** SAVE_AN_EXTRA_100: upcoming expenses (the \"Expenses\" figure). */\n upcoming_expenses?: number\n /** SAVE_AN_EXTRA_100: total remaining after expenses. */\n total_remaining?: number\n /** SAVE_ENOUGH_TO_LIVE_ON: date for the \"Your available balances as of {date}\" line. */\n date?: string\n}\n\n// AccountSwitch Block. State comes from `instance_slot.variant`, not a data flag.\nexport interface AccountSwitchBlockData {\n discovered_institution_guid: string\n discovered_institution_name: string\n held_institution_guid: string\n held_institution_name: string\n}\n\n// AccountSwitch Block: `instance_slot.data` (Insights 2.0, Discovered Accounts V2). Each slot is\n// optional: tupac omits `to_logo` when the user holds no FI-managed account. `logo` is the compact\n// card's (micro, notification) discovered institution.\nexport interface AccountSwitchBlockV2Data {\n from_logo?: LogoRef\n to_logo?: LogoRef\n logo?: LogoRef\n}\n\n// StepChart Block\nexport interface StepChartBlockData {\n completed_steps: number\n label_1: string\n label_2?: string\n}\n\n//Budgets Blocks\nexport enum BudgetTierType {\n LOW_BUDGET_TIER = 'LOW',\n MEDIUM_BUDGET_TIER = 'MEDIUM',\n OFF_TRACK_BUDGET_TIER = 'OFF_TRACK',\n}\n\nexport type BudgetTierValue = `${BudgetTierType}`\n\nexport interface BudgetLocalizedPayload {\n primary_text?: string\n amount_left_label?: string\n spent_label?: string\n budgeted_label?: string\n}\n\nexport interface BudgetBlockData {\n budget_percent: number\n budget_tier: BudgetTierValue\n category_guid?: string\n merchant_guid?: string\n spent_amount: number\n budgeted_amount: number\n localized_payload: BudgetLocalizedPayload\n}\n\nexport interface SVGImageBlockData {\n isCIBC?: boolean\n}\n\n// TransactionDetails Action Block\n// The drawer's subject is `InsightsPayload.primary_transaction_guid`; only action configuration\n// lives here.\nexport interface TransactionDetailsBlockData {\n /** `TopActions` member names, e.g. `['Category', 'Date', 'Memo']`. Omit for the defaults. */\n top_actions?: string[]\n /** `BottomActions` member names, e.g. `['MerchantBudget', 'HideTransaction']`. Omit for defaults. */\n bottom_actions?: string[]\n}\n\n// Credit Utilization action block. The per-card rows are the beat's `data_series` table\n// (`guid`, `label`, `amount`, `total_amount`, `percentage`), carried on `CommonProps.data_series`.\nexport interface CreditUtilizationBlockData {\n accounts_balance_sum?: number\n accounts_credit_limit_sum?: number\n credit_utilization_percentage?: number\n}\n"],"mappings":"AAuIA,IAAY,IAAL,0BAAA,GAAA;AACL,SAAA,EAAA,kBAAA,OACA,EAAA,qBAAA,UACA,EAAA,wBAAA;AACF,GAAA,CAAA,CAAA"}
@@ -1,22 +1,28 @@
1
- import { useAccountStore as u, useInsightsV2Store as m } from "../../common/context/hooks.es.js";
2
- import a from "../../common/components/ConnectWidgetPanel.es.js";
1
+ import { useAccountStore as f, useInsightsV2Store as a } from "../../common/context/hooks.es.js";
2
+ import m from "../../common/components/ConnectWidgetPanel.es.js";
3
3
  import { ANALYTICS_EVENTS_CONFIG as p } from "../analytics/analyticsEventsConfig.es.js";
4
- import { useAnalyticsEvent as A } from "../analytics/useAnalyticsEvent.es.js";
5
- import { useEffect as c, useRef as i } from "react";
6
- import { observer as E } from "mobx-react-lite";
7
- import { jsx as C } from "react/jsx-runtime";
8
- var S = E(function({ beat: s }) {
9
- const { actionDrawer: e } = m(), { refreshAccounts: f } = u(), r = A(), t = e.isDrawerOpen && e.guid === s.guid, n = i(t);
4
+ import { useAnalyticsEvent as g } from "../analytics/useAnalyticsEvent.es.js";
5
+ import { isLogoGuid as l } from "../components/LogoFromGuid.es.js";
6
+ import { useEffect as c, useRef as u } from "react";
7
+ import { observer as _ } from "mobx-react-lite";
8
+ import { jsx as A } from "react/jsx-runtime";
9
+ var D = _(function({ beat: r }) {
10
+ const { actionDrawer: i } = a(), { refreshAccounts: d } = f(), e = g(), t = i.isDrawerOpen && i.guid === r.guid, n = u(t);
10
11
  c(() => {
11
- n.current && !t && f(), n.current = t;
12
+ n.current && !t && d(), n.current = t;
12
13
  }, [t]);
13
- const o = i(!1);
14
- return c(() => {
15
- t && !o.current && r(p.OPENED_CONNECT_DRAWER), o.current = t;
16
- }, [t, r]), /* @__PURE__ */ C(a, { isActive: t });
14
+ const s = u(!1);
15
+ c(() => {
16
+ t && !s.current && e(p.OPENED_CONNECT_DRAWER), s.current = t;
17
+ }, [t, e]);
18
+ const o = r.insights_payload?.drilldown_data?.discovered_institution_guid;
19
+ return /* @__PURE__ */ A(m, {
20
+ isActive: t,
21
+ loadWidgetProps: typeof o == "string" && l(o) ? { current_institution_guid: o } : void 0
22
+ });
17
23
  });
18
24
  export {
19
- S as ConnectWidgetActionBlock
25
+ D as ConnectWidgetActionBlock
20
26
  };
21
27
 
22
28
  //# sourceMappingURL=ConnectWidgetActionBlock.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ConnectWidgetActionBlock.es.js","names":[],"sources":["../../../src/insights-v2/actionBlocks/ConnectWidgetActionBlock.tsx"],"sourcesContent":["import { useEffect, useRef } from 'react'\nimport { observer } from 'mobx-react-lite'\n\nimport { ConnectWidgetPanel, useAccountStore, useInsightsV2Store } from '../../common'\nimport { ANALYTICS_EVENTS_CONFIG, useAnalyticsEvent } from '../analytics'\nimport type { ActionBlockProps } from '../mappings/blocks'\n\n/**\n * `connect_widget_block` — opens MX's Connect widget itself via the shared\n * `ConnectWidgetPanel` (src/common): SSO url via ConnectStore and the\n * iframe-based `@mxenabled/web-widget-sdk` ConnectWidget, with loading/error\n * statuses.\n *\n * Renders the panel directly (not `ConnectDrawer`, which wraps it in its own\n * `Drawer`) — `ActionBlockLayer` already supplies the action drawer's chrome\n * (title from the CTA label, close button), so a second nested `Drawer` here\n * would produce two stacked drawers with two headers and two close buttons.\n *\n * `ActionBlockLayer` does not unmount a drawer-presentation block when the\n * drawer closes — it only toggles the `Drawer`'s `isOpen` — so the account\n * refresh (parity with `ConnectDrawer`'s own `onClose`) is driven by watching\n * this beat's `actionDrawer.isDrawerOpen` transition from true to false,\n * rather than an unmount effect, which would never fire.\n */\nexport const ConnectWidgetActionBlock = observer(function ConnectWidgetActionBlock({\n beat,\n}: ActionBlockProps) {\n const { actionDrawer } = useInsightsV2Store()\n const { refreshAccounts } = useAccountStore()\n const fireAnalyticsEvent = useAnalyticsEvent()\n\n const isCurrentBeatOpen = actionDrawer.isDrawerOpen && actionDrawer.guid === beat.guid\n const wasOpen = useRef(isCurrentBeatOpen)\n\n useEffect(() => {\n if (wasOpen.current && !isCurrentBeatOpen) {\n void refreshAccounts()\n }\n wasOpen.current = isCurrentBeatOpen\n }, [isCurrentBeatOpen])\n\n // OPENED_CONNECT_DRAWER: the drawer actually opened (any path — CTA or otherwise). Own ref +\n // effect, separate from the refresh logic above: this one is rising-edge, so its ref starts\n // `false` — the block's first render typically happens with the drawer already open (children\n // render on open), and that first open must fire too. Fires once per open, re-arms on close.\n // Pulse parity: ConnectDiscoveredAccounts/Beat.js onPrimaryCtaClick's `opened_connect_drawer`.\n const hasFiredOpen = useRef(false)\n\n useEffect(() => {\n if (isCurrentBeatOpen && !hasFiredOpen.current) {\n fireAnalyticsEvent(ANALYTICS_EVENTS_CONFIG.OPENED_CONNECT_DRAWER)\n }\n hasFiredOpen.current = isCurrentBeatOpen\n }, [isCurrentBeatOpen, fireAnalyticsEvent])\n\n return <ConnectWidgetPanel isActive={isCurrentBeatOpen} />\n})\n"],"mappings":";;;;;;;AAwBA,IAAa,IAA2B,EAAS,SAAkC,EACjF,MAAA,EAAA,GACmB;AACnB,QAAM,EAAE,cAAA,EAAA,IAAiB,EAAmB,GACtC,EAAE,iBAAA,EAAA,IAAoB,EAAgB,GACtC,IAAqB,EAAkB,GAEvC,IAAoB,EAAa,gBAAgB,EAAa,SAAS,EAAK,MAC5E,IAAU,EAAO,CAAiB;AAExC,EAAA,EAAA,MAAgB;AACd,IAAI,EAAQ,WAAW,CAAC,KACtB,EAAqB,GAEvB,EAAQ,UAAU;AAAA,EACpB,GAAG,CAAC,CAAiB,CAAC;AAOtB,QAAM,IAAe,EAAO,EAAK;AAEjC,SAAA,EAAA,MAAgB;AACd,IAAI,KAAqB,CAAC,EAAa,WACrC,EAAmB,EAAwB,qBAAqB,GAElE,EAAa,UAAU;AAAA,EACzB,GAAG,CAAC,GAAmB,CAAkB,CAAC,GAEnC,gBAAA,EAAC,GAAD,EAAoB,UAAU,EAAoB,CAAA;AAC3D,CAAC"}
1
+ {"version":3,"file":"ConnectWidgetActionBlock.es.js","names":[],"sources":["../../../src/insights-v2/actionBlocks/ConnectWidgetActionBlock.tsx"],"sourcesContent":["import { useEffect, useRef } from 'react'\nimport { observer } from 'mobx-react-lite'\n\nimport { ConnectWidgetPanel, useAccountStore, useInsightsV2Store } from '../../common'\nimport { ANALYTICS_EVENTS_CONFIG, useAnalyticsEvent } from '../analytics'\nimport { isLogoGuid } from '../components/LogoFromGuid'\nimport type { ActionBlockProps } from '../mappings/blocks'\n\n/**\n * `connect_widget_block` — opens MX's Connect widget itself via the shared\n * `ConnectWidgetPanel` (src/common): SSO url via ConnectStore and the\n * iframe-based `@mxenabled/web-widget-sdk` ConnectWidget, with loading/error\n * statuses.\n *\n * Renders the panel directly (not `ConnectDrawer`, which wraps it in its own\n * `Drawer`) — `ActionBlockLayer` already supplies the action drawer's chrome\n * (title from the CTA label, close button), so a second nested `Drawer` here\n * would produce two stacked drawers with two headers and two close buttons.\n *\n * `ActionBlockLayer` does not unmount a drawer-presentation block when the\n * drawer closes — it only toggles the `Drawer`'s `isOpen` — so the account\n * refresh (parity with `ConnectDrawer`'s own `onClose`) is driven by watching\n * this beat's `actionDrawer.isDrawerOpen` transition from true to false,\n * rather than an unmount effect, which would never fire.\n */\nexport const ConnectWidgetActionBlock = observer(function ConnectWidgetActionBlock({\n beat,\n}: ActionBlockProps) {\n const { actionDrawer } = useInsightsV2Store()\n const { refreshAccounts } = useAccountStore()\n const fireAnalyticsEvent = useAnalyticsEvent()\n\n const isCurrentBeatOpen = actionDrawer.isDrawerOpen && actionDrawer.guid === beat.guid\n const wasOpen = useRef(isCurrentBeatOpen)\n\n useEffect(() => {\n if (wasOpen.current && !isCurrentBeatOpen) {\n void refreshAccounts()\n }\n wasOpen.current = isCurrentBeatOpen\n }, [isCurrentBeatOpen])\n\n // OPENED_CONNECT_DRAWER: the drawer actually opened (any path — CTA or otherwise). Own ref +\n // effect, separate from the refresh logic above: this one is rising-edge, so its ref starts\n // `false` — the block's first render typically happens with the drawer already open (children\n // render on open), and that first open must fire too. Fires once per open, re-arms on close.\n // Pulse parity: ConnectDiscoveredAccounts/Beat.js onPrimaryCtaClick's `opened_connect_drawer`.\n const hasFiredOpen = useRef(false)\n\n useEffect(() => {\n if (isCurrentBeatOpen && !hasFiredOpen.current) {\n fireAnalyticsEvent(ANALYTICS_EVENTS_CONFIG.OPENED_CONNECT_DRAWER)\n }\n hasFiredOpen.current = isCurrentBeatOpen\n }, [isCurrentBeatOpen, fireAnalyticsEvent])\n\n // V1 parity (pulse ConnectDiscoveredAccounts/Beat.js `current_institution_guid`): open the Connect\n // widget on the discovered institution. tupac's `drilldown_data` names it only while the account is\n // not yet connected; a missing or malformed guid opens institution search instead.\n const guid = beat.insights_payload?.drilldown_data?.discovered_institution_guid\n\n return (\n <ConnectWidgetPanel\n isActive={isCurrentBeatOpen}\n loadWidgetProps={\n typeof guid === 'string' && isLogoGuid(guid)\n ? { current_institution_guid: guid }\n : undefined\n }\n />\n )\n})\n"],"mappings":";;;;;;;;AAyBA,IAAa,IAA2B,EAAS,SAAkC,EACjF,MAAA,EAAA,GACmB;AACnB,QAAM,EAAE,cAAA,EAAA,IAAiB,EAAmB,GACtC,EAAE,iBAAA,EAAA,IAAoB,EAAgB,GACtC,IAAqB,EAAkB,GAEvC,IAAoB,EAAa,gBAAgB,EAAa,SAAS,EAAK,MAC5E,IAAU,EAAO,CAAiB;AAExC,EAAA,EAAA,MAAgB;AACd,IAAI,EAAQ,WAAW,CAAC,KACtB,EAAqB,GAEvB,EAAQ,UAAU;AAAA,EACpB,GAAG,CAAC,CAAiB,CAAC;AAOtB,QAAM,IAAe,EAAO,EAAK;AAEjC,EAAA,EAAA,MAAgB;AACd,IAAI,KAAqB,CAAC,EAAa,WACrC,EAAmB,EAAwB,qBAAqB,GAElE,EAAa,UAAU;AAAA,EACzB,GAAG,CAAC,GAAmB,CAAkB,CAAC;AAK1C,QAAM,IAAO,EAAK,kBAAkB,gBAAgB;AAEpD,SACE,gBAAA,EAAC,GAAD;AAAA,IACE,UAAU;AAAA,IACV,iBACE,OAAO,KAAS,YAAY,EAAW,CAAI,IACvC,EAAE,0BAA0B,EAAK,IACjC;AAAA,EAEP,CAAA;AAEL,CAAC"}
@@ -1,8 +1,11 @@
1
- import { AccountSwitchBlockData } from '../../../../core/types/InsightsInstanceSlotData';
2
1
  import { BlockProps } from '../../types';
3
2
  /**
4
3
  * Two institution logos on a transfer track, shared by Discovered Accounts and Switch
5
4
  * Direct Deposit. `instance_slot.variant` picks the design branch from `./layout.ts`.
5
+ *
6
+ * The logos are the `from_logo` / `to_logo` slots on `instance_slot.data`; `LogoFromGuid` draws
7
+ * nothing for a missing slot or a guid that is not a logo guid (tupac omits `to_logo` when the user
8
+ * holds no FI-managed account).
6
9
  */
7
- declare const AccountSwitchBlock: ({ payload }: BlockProps<AccountSwitchBlockData>) => import("react/jsx-runtime").JSX.Element;
10
+ declare const AccountSwitchBlock: ({ payload }: BlockProps) => import("react/jsx-runtime").JSX.Element;
8
11
  export default AccountSwitchBlock;
@@ -1,34 +1,32 @@
1
- import { resolveVariantConfig as _ } from "../../resolveVariantConfig.es.js";
2
- import l from "../../../components/TransferLogoCard.es.js";
3
- import { accountSwitchVariant as g, getLayoutConfig as h } from "./layout.es.js";
4
- import { InstitutionLogo as i } from "@mxenabled/mxui";
5
- import { Icon as p } from "@mxenabled/mx-icons";
6
- import { jsx as t } from "react/jsx-runtime";
7
- import { useTheme as v } from "@mui/material/styles";
8
- var n = 64, A = ({ payload: o }) => {
9
- const r = v(), { variant: e } = o.instance_slot, { discovered_institution_guid: c, discovered_institution_name: s, held_institution_guid: a, held_institution_name: m } = o.instance_slot_data, { badgeIcon: u, badgeIconColor: d, ...f } = _(h(r), e, g.AccountConnect, "AccountSwitchBlock");
10
- return /* @__PURE__ */ t(l, {
11
- ...f,
12
- from: /* @__PURE__ */ t(i, {
13
- alt: s,
14
- institutionGuid: c,
15
- size: n
1
+ import r from "../../../components/LogoFromGuid.es.js";
2
+ import { resolveVariantConfig as l } from "../../resolveVariantConfig.es.js";
3
+ import u from "../../../components/TransferLogoCard.es.js";
4
+ import { accountSwitchVariant as d, getLayoutConfig as p } from "./layout.es.js";
5
+ import { Icon as h } from "@mxenabled/mx-icons";
6
+ import { jsx as o } from "react/jsx-runtime";
7
+ import { useTheme as C } from "@mui/material/styles";
8
+ var t = 64, z = ({ payload: c }) => {
9
+ const n = C(), { data: a, variant: i } = c.instance_slot, { from_logo: e, to_logo: m } = a ?? {}, { badgeIcon: s, badgeIconColor: f, ...g } = l(p(n), i, d.AccountConnect, "AccountSwitchBlock");
10
+ return /* @__PURE__ */ o(u, {
11
+ ...g,
12
+ from: /* @__PURE__ */ o(r, {
13
+ logo: e,
14
+ size: t
16
15
  }),
17
- icon: /* @__PURE__ */ t(p, {
16
+ icon: /* @__PURE__ */ o(h, {
18
17
  "aria-hidden": !0,
19
- name: u,
18
+ name: s,
20
19
  size: 20,
21
- sx: { color: d }
20
+ sx: { color: f }
22
21
  }),
23
- to: /* @__PURE__ */ t(i, {
24
- alt: m,
25
- institutionGuid: a,
26
- size: n
22
+ to: /* @__PURE__ */ o(r, {
23
+ logo: m,
24
+ size: t
27
25
  })
28
26
  });
29
27
  };
30
28
  export {
31
- A as default
29
+ z as default
32
30
  };
33
31
 
34
32
  //# sourceMappingURL=AccountSwitchBlock.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AccountSwitchBlock.es.js","names":[],"sources":["../../../../../src/insights-v2/blocks/ComponentBlocks/AccountSwitchBlock/AccountSwitchBlock.tsx"],"sourcesContent":["import { useTheme } from '@mui/material/styles'\nimport { InstitutionLogo } from '@mxenabled/mxui'\nimport { Icon } from '@mxenabled/mx-icons'\n\nimport type { AccountSwitchBlockData } from '../../../../core/types/InsightsInstanceSlotData'\n\nimport TransferLogoCard from '../../../components/TransferLogoCard'\n\nimport type { BlockProps } from '../../types'\nimport { resolveVariantConfig } from '../../resolveVariantConfig'\nimport { accountSwitchVariant, getLayoutConfig } from './layout'\n\nconst LOGO_SIZE = 64\n\n/**\n * Two institution logos on a transfer track, shared by Discovered Accounts and Switch\n * Direct Deposit. `instance_slot.variant` picks the design branch from `./layout.ts`.\n */\nconst AccountSwitchBlock = ({ payload }: BlockProps<AccountSwitchBlockData>) => {\n const theme = useTheme()\n const { variant } = payload.instance_slot\n const {\n discovered_institution_guid,\n discovered_institution_name,\n held_institution_guid,\n held_institution_name,\n } = payload.instance_slot_data\n\n // Pending connect is the safe default: it promises nothing (no success badge, no confetti).\n const { badgeIcon, badgeIconColor, ...cardProps } = resolveVariantConfig(\n getLayoutConfig(theme),\n variant,\n accountSwitchVariant.AccountConnect,\n 'AccountSwitchBlock',\n )\n\n return (\n <TransferLogoCard\n {...cardProps}\n from={\n <InstitutionLogo\n alt={discovered_institution_name}\n institutionGuid={discovered_institution_guid}\n size={LOGO_SIZE}\n />\n }\n icon={<Icon aria-hidden={true} name={badgeIcon} size={20} sx={{ color: badgeIconColor }} />}\n to={\n <InstitutionLogo\n alt={held_institution_name}\n institutionGuid={held_institution_guid}\n size={LOGO_SIZE}\n />\n }\n />\n )\n}\n\nexport default AccountSwitchBlock\n"],"mappings":";;;;;;;AAYA,IAAM,IAAY,IAMZ,IAAA,CAAsB,EAAE,SAAA,EAAA,MAAkD;AAC9E,QAAM,IAAQ,EAAS,GACjB,EAAE,SAAA,EAAA,IAAY,EAAQ,eACtB,EACJ,6BAAA,GACA,6BAAA,GACA,uBAAA,GACA,uBAAA,EAAA,IACE,EAAQ,oBAGN,EAAE,WAAA,GAAW,gBAAA,GAAgB,GAAG,EAAA,IAAc,EAClD,EAAgB,CAAK,GACrB,GACA,EAAqB,gBACrB,oBACF;AAEA,SACE,gBAAA,EAAC,GAAD;AAAA,IACE,GAAI;AAAA,IACJ,MACE,gBAAA,EAAC,GAAD;AAAA,MACE,KAAK;AAAA,MACL,iBAAiB;AAAA,MACjB,MAAM;AAAA,IACP,CAAA;AAAA,IAEH,MAAM,gBAAA,EAAC,GAAD;AAAA,MAAM,eAAa;AAAA,MAAM,MAAM;AAAA,MAAW,MAAM;AAAA,MAAI,IAAI,EAAE,OAAO,EAAe;AAAA,IAAI,CAAA;AAAA,IAC1F,IACE,gBAAA,EAAC,GAAD;AAAA,MACE,KAAK;AAAA,MACL,iBAAiB;AAAA,MACjB,MAAM;AAAA,IACP,CAAA;AAAA,EAEJ,CAAA;AAEL"}
1
+ {"version":3,"file":"AccountSwitchBlock.es.js","names":[],"sources":["../../../../../src/insights-v2/blocks/ComponentBlocks/AccountSwitchBlock/AccountSwitchBlock.tsx"],"sourcesContent":["import { useTheme } from '@mui/material/styles'\nimport { Icon } from '@mxenabled/mx-icons'\n\nimport type { AccountSwitchBlockV2Data } from '../../../../core/types/InsightsInstanceSlotData'\n\nimport LogoFromGuid from '../../../components/LogoFromGuid'\nimport TransferLogoCard from '../../../components/TransferLogoCard'\n\nimport type { BlockProps } from '../../types'\nimport { resolveVariantConfig } from '../../resolveVariantConfig'\nimport { accountSwitchVariant, getLayoutConfig } from './layout'\n\nconst LOGO_SIZE = 64\n\n/**\n * Two institution logos on a transfer track, shared by Discovered Accounts and Switch\n * Direct Deposit. `instance_slot.variant` picks the design branch from `./layout.ts`.\n *\n * The logos are the `from_logo` / `to_logo` slots on `instance_slot.data`; `LogoFromGuid` draws\n * nothing for a missing slot or a guid that is not a logo guid (tupac omits `to_logo` when the user\n * holds no FI-managed account).\n */\nconst AccountSwitchBlock = ({ payload }: BlockProps) => {\n const theme = useTheme()\n const { data, variant } = payload.instance_slot\n const { from_logo, to_logo } = (data ?? {}) as AccountSwitchBlockV2Data\n\n // Pending connect is the safe default: it promises nothing (no success badge, no confetti).\n const { badgeIcon, badgeIconColor, ...cardProps } = resolveVariantConfig(\n getLayoutConfig(theme),\n variant,\n accountSwitchVariant.AccountConnect,\n 'AccountSwitchBlock',\n )\n\n return (\n <TransferLogoCard\n {...cardProps}\n from={<LogoFromGuid logo={from_logo} size={LOGO_SIZE} />}\n icon={<Icon aria-hidden={true} name={badgeIcon} size={20} sx={{ color: badgeIconColor }} />}\n to={<LogoFromGuid logo={to_logo} size={LOGO_SIZE} />}\n />\n )\n}\n\nexport default AccountSwitchBlock\n"],"mappings":";;;;;;;AAYA,IAAM,IAAY,IAUZ,IAAA,CAAsB,EAAE,SAAA,EAAA,MAA0B;AACtD,QAAM,IAAQ,EAAS,GACjB,EAAE,MAAA,GAAM,SAAA,EAAA,IAAY,EAAQ,eAC5B,EAAE,WAAA,GAAW,SAAA,EAAA,IAAa,KAAQ,CAAC,GAGnC,EAAE,WAAA,GAAW,gBAAA,GAAgB,GAAG,EAAA,IAAc,EAClD,EAAgB,CAAK,GACrB,GACA,EAAqB,gBACrB,oBACF;AAEA,SACE,gBAAA,EAAC,GAAD;AAAA,IACE,GAAI;AAAA,IACJ,MAAM,gBAAA,EAAC,GAAD;AAAA,MAAc,MAAM;AAAA,MAAW,MAAM;AAAA,IAAY,CAAA;AAAA,IACvD,MAAM,gBAAA,EAAC,GAAD;AAAA,MAAM,eAAa;AAAA,MAAM,MAAM;AAAA,MAAW,MAAM;AAAA,MAAI,IAAI,EAAE,OAAO,EAAe;AAAA,IAAI,CAAA;AAAA,IAC1F,IAAI,gBAAA,EAAC,GAAD;AAAA,MAAc,MAAM;AAAA,MAAS,MAAM;AAAA,IAAY,CAAA;AAAA,EACpD,CAAA;AAEL"}
@@ -1,101 +1,167 @@
1
- import { useInsightsV2Store as w } from "../../common/context/hooks.es.js";
1
+ import { useInsightsV2Store as B } from "../../common/context/hooks.es.js";
2
2
  import { slot as f } from "../../core/types/Insights.es.js";
3
- import { getCategoryColor as v } from "../../core/utils/CategoryUtil.es.js";
4
- import { TinyBarChart as B } from "../../common/components/TinyBarChart.es.js";
5
- import { BAR_ARIA_LABEL as S, buildChartData as A, buildDataSeries as V } from "../blocks/ChartBlocks/BarchartBlock/utils.es.js";
6
- import { ThemedSVGImage as D } from "./chartblocks/ThemedSVGImage.es.js";
7
- import L from "./LogoFromGuid.es.js";
8
- import { createVariantBlock as P } from "../blocks/createVariantBlock.es.js";
9
- import { ActionBlockLayer as z } from "../actionBlocks/ActionBlockLayer.es.js";
10
- import x from "./BadgedTile.es.js";
11
- import { InsightOptionsMenu as F } from "./InsightOptionsMenu.es.js";
12
- import { ReactComponent as R } from "./shared/images/FeeDetected.es.js";
13
- import T from "./StatusBadge.es.js";
14
- import g from "@mui/material/Stack";
15
- import { P as j, Text as E } from "@mxenabled/mxui";
16
- import G from "@mui/material/Button";
17
- import { Icon as O } from "@mxenabled/mx-icons";
18
- import { Fragment as K, jsx as t, jsxs as n } from "react/jsx-runtime";
19
- import h from "@mui/material/Box";
20
- import N from "@mui/material/Card";
21
- var l = 44, y = ({ logo: r }) => r ? /* @__PURE__ */ t(L, {
3
+ import { getCategoryColor as D } from "../../core/utils/CategoryUtil.es.js";
4
+ import { TinyBarChart as L } from "../../common/components/TinyBarChart.es.js";
5
+ import { BAR_ARIA_LABEL as V, buildChartData as A, buildDataSeries as z } from "../blocks/ChartBlocks/BarchartBlock/utils.es.js";
6
+ import { ThemedSVGImage as R } from "./chartblocks/ThemedSVGImage.es.js";
7
+ import u from "./LogoFromGuid.es.js";
8
+ import { createVariantBlock as E } from "../blocks/createVariantBlock.es.js";
9
+ import { ActionBlockLayer as O } from "../actionBlocks/ActionBlockLayer.es.js";
10
+ import b from "./BadgedTile.es.js";
11
+ import { InsightOptionsMenu as P } from "./InsightOptionsMenu.es.js";
12
+ import { ReactComponent as T } from "./shared/images/FeeDetected.es.js";
13
+ import j from "./StatusBadge.es.js";
14
+ import h from "@mui/material/Stack";
15
+ import { P as F, Text as G } from "@mxenabled/mxui";
16
+ import K from "@mui/material/Button";
17
+ import { Icon as _ } from "@mxenabled/mx-icons";
18
+ import { Fragment as N, jsx as t, jsxs as s } from "react/jsx-runtime";
19
+ import o from "@mui/material/Box";
20
+ import W from "@mui/material/Card";
21
+ var c = 44, x = 32, k = ({ logo: r }) => r ? /* @__PURE__ */ t(u, {
22
22
  logo: r,
23
- size: l
24
- }) : /* @__PURE__ */ t(h, {
23
+ size: c
24
+ }) : /* @__PURE__ */ t(o, {
25
25
  "data-testid": "compact-insight-card-fallback-icon",
26
26
  sx: {
27
27
  alignItems: "center",
28
28
  bgcolor: "primary.lighter",
29
29
  display: "flex",
30
- height: l,
30
+ height: c,
31
31
  justifyContent: "center",
32
- width: l
32
+ width: c
33
33
  },
34
- children: /* @__PURE__ */ t(O, {
34
+ children: /* @__PURE__ */ t(_, {
35
35
  color: "primary",
36
36
  fill: !0,
37
37
  name: "lightbulb",
38
38
  size: 24
39
39
  })
40
- }), u = ({ logo: r }) => /* @__PURE__ */ t(x, {
41
- center: /* @__PURE__ */ t(y, { logo: r }),
42
- size: l,
40
+ }), y = ({ logo: r }) => /* @__PURE__ */ t(b, {
41
+ center: /* @__PURE__ */ t(k, { logo: r }),
42
+ size: c,
43
43
  sx: { flexShrink: 0 }
44
- }), W = ({ logo: r }) => /* @__PURE__ */ t(x, {
45
- center: /* @__PURE__ */ t(y, { logo: r }),
46
- size: l,
44
+ }), H = ({ logo: r }) => /* @__PURE__ */ t(b, {
45
+ center: /* @__PURE__ */ t(k, { logo: r }),
46
+ size: c,
47
47
  sx: { flexShrink: 0 },
48
- topRight: /* @__PURE__ */ t(T, { tone: "warning" })
49
- }), H = () => /* @__PURE__ */ t(D, {
48
+ topRight: /* @__PURE__ */ t(j, { tone: "warning" })
49
+ }), M = () => /* @__PURE__ */ t(R, {
50
50
  divProps: { style: {
51
51
  flexShrink: 0,
52
52
  lineHeight: 0,
53
53
  width: "max-content"
54
54
  } },
55
- image: R
56
- }), M = ({ data: r }) => {
57
- const a = V(f(r, "series"));
58
- if (!a.length) return null;
59
- const s = f(r, "category_guid"), e = A(a, S).slice(-3);
60
- return /* @__PURE__ */ t(h, {
55
+ image: T
56
+ }), Z = ({ data: r }) => {
57
+ const { from_logo: i, to_logo: a } = r ?? {};
58
+ return /* @__PURE__ */ s(o, {
59
+ sx: {
60
+ flexShrink: 0,
61
+ height: 64,
62
+ position: "relative",
63
+ width: 64
64
+ },
65
+ children: [
66
+ /* @__PURE__ */ t(o, {
67
+ sx: {
68
+ borderRadius: "6px",
69
+ left: 0,
70
+ overflow: "hidden",
71
+ position: "absolute",
72
+ top: 0
73
+ },
74
+ children: /* @__PURE__ */ t(u, {
75
+ logo: i,
76
+ size: x
77
+ })
78
+ }),
79
+ /* @__PURE__ */ t(o, {
80
+ "aria-hidden": !0,
81
+ sx: {
82
+ alignItems: "center",
83
+ bgcolor: "text.secondary",
84
+ borderRadius: "50%",
85
+ display: "flex",
86
+ height: 20,
87
+ justifyContent: "center",
88
+ left: 22,
89
+ position: "absolute",
90
+ top: 22,
91
+ width: 20,
92
+ zIndex: 1
93
+ },
94
+ children: /* @__PURE__ */ t(_, {
95
+ name: "link",
96
+ size: 14,
97
+ sx: { color: "primary.contrastText" }
98
+ })
99
+ }),
100
+ /* @__PURE__ */ t(o, {
101
+ sx: {
102
+ borderRadius: "6px",
103
+ bottom: 0,
104
+ overflow: "hidden",
105
+ position: "absolute",
106
+ right: 0
107
+ },
108
+ children: /* @__PURE__ */ t(u, {
109
+ logo: a,
110
+ size: x
111
+ })
112
+ })
113
+ ]
114
+ });
115
+ }, $ = ({ data: r }) => {
116
+ const i = z(f(r, "series"));
117
+ if (!i.length) return null;
118
+ const a = f(r, "category_guid"), n = A(i, V).slice(-3);
119
+ return /* @__PURE__ */ t(o, {
61
120
  "data-testid": "compact-insight-card-bar-chart",
62
121
  sx: { flexShrink: 0 },
63
- children: /* @__PURE__ */ t(B, {
64
- color: (o) => s ? v(s, o) : o.palette.primary.main,
65
- data: e
122
+ children: /* @__PURE__ */ t(L, {
123
+ color: (l) => a ? D(a, l) : l.palette.primary.main,
124
+ data: n
66
125
  })
67
126
  });
68
- }, Z = P({
127
+ }, q = E({
69
128
  variants: {
70
- category_color: M,
71
- minimal: u,
72
- with_illustration: H,
73
- with_warning_badge: W
129
+ category_color: $,
130
+ linked_logos: Z,
131
+ minimal: y,
132
+ with_illustration: M,
133
+ with_warning_badge: H
74
134
  },
75
- fallback: u,
135
+ fallback: y,
76
136
  name: "InsightVisual"
77
- }), $ = { BillAmountNotStandard: {
78
- key: "in_description_cta",
79
- trigger: "inDescriptionCta"
80
- } }, q = (r) => r.stopPropagation(), ut = ({ beat: r, isCtaDisabled: a = !1, onCtaClick: s, onTap: e, payload: o }) => {
81
- const { openActionDrawer: C } = w(), { description: b, instance_slot: m, primary_cta: d, title: k } = o, c = $[o.template ?? ""], p = c ? o[c.key] : d, I = f(m.data, "logo"), _ = (i) => {
82
- if (i.stopPropagation(), !(a || !p)) {
83
- if (c) {
137
+ }), J = {
138
+ BillAmountNotStandard: {
139
+ key: "in_description_cta",
140
+ trigger: "inDescriptionCta"
141
+ },
142
+ ConnectDiscoveredAccountsV2: {
143
+ key: "in_description_cta",
144
+ trigger: "inDescriptionCta"
145
+ }
146
+ }, Q = (r) => r.stopPropagation(), yt = ({ beat: r, isCtaDisabled: i = !1, onCtaClick: a, onTap: n, payload: l }) => {
147
+ const { openActionDrawer: C } = B(), { description: I, instance_slot: m, primary_cta: p, title: v } = l, d = J[l.template ?? ""], g = d ? l[d.key] : p, w = f(m.data, "logo"), S = (e) => {
148
+ if (e.stopPropagation(), !(i || !g)) {
149
+ if (d) {
84
150
  r && C({
85
151
  guid: r.guid,
86
- trigger: c.trigger
152
+ trigger: d.trigger
87
153
  });
88
154
  return;
89
155
  }
90
- d && s?.(d);
156
+ p && a?.(p);
91
157
  }
92
158
  };
93
- return /* @__PURE__ */ n(K, { children: [/* @__PURE__ */ n(N, {
159
+ return /* @__PURE__ */ s(N, { children: [/* @__PURE__ */ s(W, {
94
160
  "data-testid": "compact-insight-card",
95
- ...e ? {
96
- onClick: e,
97
- onKeyDown: (i) => {
98
- i.target === i.currentTarget && (i.key === "Enter" || i.key === " ") && (i.preventDefault(), e?.());
161
+ ...n ? {
162
+ onClick: n,
163
+ onKeyDown: (e) => {
164
+ e.target === e.currentTarget && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), n?.());
99
165
  },
100
166
  role: "button",
101
167
  tabIndex: 0
@@ -106,9 +172,9 @@ var l = 44, y = ({ logo: r }) => r ? /* @__PURE__ */ t(L, {
106
172
  pl: 8,
107
173
  pr: 16,
108
174
  pt: 8,
109
- ...e && { cursor: "pointer" }
175
+ ...n && { cursor: "pointer" }
110
176
  },
111
- children: [/* @__PURE__ */ n(g, {
177
+ children: [/* @__PURE__ */ s(h, {
112
178
  sx: {
113
179
  alignItems: "center",
114
180
  flexDirection: "row",
@@ -117,59 +183,59 @@ var l = 44, y = ({ logo: r }) => r ? /* @__PURE__ */ t(L, {
117
183
  pl: 8,
118
184
  pt: 4
119
185
  },
120
- children: [/* @__PURE__ */ t(E, {
186
+ children: [/* @__PURE__ */ t(G, {
121
187
  bold: !0,
122
188
  variant: "body1",
123
- children: k ?? ""
124
- }), /* @__PURE__ */ t(h, {
125
- onClick: q,
189
+ children: v ?? ""
190
+ }), /* @__PURE__ */ t(o, {
191
+ onClick: Q,
126
192
  sx: { display: "flex" },
127
- children: /* @__PURE__ */ t(F, {})
193
+ children: /* @__PURE__ */ t(P, {})
128
194
  })]
129
- }), /* @__PURE__ */ n(g, {
195
+ }), /* @__PURE__ */ s(h, {
130
196
  sx: {
131
197
  flexDirection: "row",
132
198
  gap: 16,
133
199
  pl: 8,
134
200
  pt: 4
135
201
  },
136
- children: [/* @__PURE__ */ n(g, {
202
+ children: [/* @__PURE__ */ s(h, {
137
203
  sx: {
138
204
  flex: 1,
139
205
  gap: 8,
140
206
  minWidth: 0
141
207
  },
142
- children: [/* @__PURE__ */ t(j, {
143
- dangerouslySetInnerHTML: { __html: b.html_text },
208
+ children: [/* @__PURE__ */ t(F, {
209
+ dangerouslySetInnerHTML: { __html: I.html_text },
144
210
  "data-testid": "compact-insight-card-description",
145
211
  variant: "subtitle2"
146
- }), p?.label && /* @__PURE__ */ t(G, {
147
- "aria-disabled": a,
148
- onClick: _,
212
+ }), g?.label && /* @__PURE__ */ t(K, {
213
+ "aria-disabled": i,
214
+ onClick: S,
149
215
  size: "small",
150
216
  sx: {
151
217
  alignSelf: "flex-start",
152
218
  mt: 5,
153
219
  ml: -8,
154
220
  px: 8,
155
- ...a && {
221
+ ...i && {
156
222
  color: "text.disabled",
157
223
  cursor: "default"
158
224
  }
159
225
  },
160
226
  variant: "text",
161
- children: p.label
227
+ children: g.label
162
228
  })]
163
- }), /* @__PURE__ */ t(Z, {
229
+ }), /* @__PURE__ */ t(q, {
164
230
  data: m.data,
165
- logo: I,
231
+ logo: w,
166
232
  variant: m.variant
167
233
  })]
168
234
  })]
169
- }), r && /* @__PURE__ */ t(z, { beat: r })] });
235
+ }), r && /* @__PURE__ */ t(O, { beat: r })] });
170
236
  };
171
237
  export {
172
- ut as default
238
+ yt as default
173
239
  };
174
240
 
175
241
  //# sourceMappingURL=CompactInsightCard.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CompactInsightCard.es.js","names":[],"sources":["../../../src/insights-v2/components/CompactInsightCard.tsx"],"sourcesContent":["import type { KeyboardEvent, MouseEvent } from 'react'\n\nimport Box from '@mui/material/Box'\nimport Button from '@mui/material/Button'\nimport Card from '@mui/material/Card'\nimport Stack from '@mui/material/Stack'\n\nimport { Icon } from '@mxenabled/mx-icons'\nimport { P, Text } from '@mxenabled/mxui'\n\nimport { useInsightsV2Store } from '../../common'\nimport { TinyBarChart } from '../../common/components/TinyBarChart'\nimport { slot } from '../../core'\nimport type {\n Beat,\n DataSeries,\n InsightsPayload,\n InstanceSlotData,\n LogoRef,\n PrimaryCTA,\n} from '../../core'\nimport type { ActionDrawerTrigger } from '../../core/stores'\nimport { getCategoryColor } from '../../core/utils/CategoryUtil'\nimport {\n BAR_ARIA_LABEL,\n buildChartData,\n buildDataSeries,\n} from '../blocks/ChartBlocks/BarchartBlock/utils'\nimport { ActionBlockLayer } from '../actionBlocks/ActionBlockLayer'\nimport { createVariantBlock } from '../blocks/createVariantBlock'\nimport BadgedTile from './BadgedTile'\nimport InsightOptionsMenu from './InsightOptionsMenu'\nimport LogoFromGuid from './LogoFromGuid'\nimport { ReactComponent as FeeDetectedIllustration } from './shared/images/FeeDetected.svg'\nimport { ThemedSVGImage } from './chartblocks/ThemedSVGImage'\nimport StatusBadge from './StatusBadge'\n\n/** Figma 1941:111897: the tile the logo fills is 44px (rows are 32, the notification row 33). */\nconst ICON_SIZE = 44\n\ninterface InsightVisualProps {\n /** The slot's `logo`, when ditto's variant declares and fills one. */\n logo?: LogoRef | null\n /** The slot's `data`, for a visual drawn from more than the logo (`category_color`'s bars). */\n data?: InstanceSlotData\n}\n\n/** Figma 222:33404 (Embedded | Bill Amount Not Standard) shows the latest three bars. */\nconst BAR_CHART_BAR_COUNT = 3\n\n/** The slot's logo, or the neutral insight glyph when the slot carries none. */\nconst LogoOrFallback = ({ logo }: InsightVisualProps) =>\n logo ? (\n <LogoFromGuid logo={logo} size={ICON_SIZE} />\n ) : (\n <Box\n data-testid=\"compact-insight-card-fallback-icon\"\n sx={{\n alignItems: 'center',\n bgcolor: 'primary.lighter',\n display: 'flex',\n height: ICON_SIZE,\n justifyContent: 'center',\n width: ICON_SIZE,\n }}\n >\n <Icon color=\"primary\" fill={true} name=\"lightbulb\" size={24} />\n </Box>\n )\n\n/** Micro, and any variant not registered below: the logo alone. */\nconst PlainVisual = ({ logo }: InsightVisualProps) => (\n <BadgedTile center={<LogoOrFallback logo={logo} />} size={ICON_SIZE} sx={{ flexShrink: 0 }} />\n)\n\n/** ditto `with_warning_badge`: the logo badged with a status glyph (Figma 1941:111897). */\nconst WarningBadgeVisual = ({ logo }: InsightVisualProps) => (\n <BadgedTile\n center={<LogoOrFallback logo={logo} />}\n size={ICON_SIZE}\n sx={{ flexShrink: 0 }}\n topRight={<StatusBadge tone=\"warning\" />}\n />\n)\n\n/**\n * ditto `with_illustration`: artwork in place of the logo tile (Fee Detected's search illustration).\n * A single SVG themed at runtime by `ThemedSVGImage`: its `brand300` elements are recolored to the\n * theme's `primary.main` (so it follows dark mode), while `fill=\"white\"` areas stay white. The\n * slot's `logo` is deliberately unused: the illustration replaces the tile.\n */\nconst IllustrationVisual = () => {\n return (\n <ThemedSVGImage\n divProps={{ style: { flexShrink: 0, lineHeight: 0, width: 'max-content' } }}\n image={FeeDetectedIllustration}\n />\n )\n}\n\n/**\n * ditto `category_color`: a tiny bar chart of the latest bars in place of the logo tile, tinted by\n * the slot's category, the newest bar solid (Figma 222:33404). Draws nothing without a series.\n */\nconst BarChartVisual = ({ data }: InsightVisualProps) => {\n const series = buildDataSeries(slot<DataSeries>(data, 'series'))\n if (!series.length) return null\n\n const categoryGuid = slot<string>(data, 'category_guid')\n const bars = buildChartData(series, BAR_ARIA_LABEL).slice(-BAR_CHART_BAR_COUNT)\n\n return (\n <Box data-testid=\"compact-insight-card-bar-chart\" sx={{ flexShrink: 0 }}>\n <TinyBarChart\n color={(theme) =>\n categoryGuid ? getCategoryColor(categoryGuid, theme) : theme.palette.primary.main\n }\n data={bars}\n />\n </Box>\n )\n}\n\n/**\n * The card's right-hand visual, one component per ditto layout variant.\n *\n * A variant names a rendering *shape*, not an insight or a surface — `with_header` already serves\n * both Large Transaction and Fee Detected — so an insight wanting the badged logo reuses\n * `with_warning_badge`. Only a genuinely different visual registers a new entry, and existing ones\n * are never touched.\n *\n * `minimal` draws the plain logo and is registered explicitly even though it matches the fallback:\n * micro and notification resolve it on every render, and an unregistered variant warns. The\n * fallback is for variants we genuinely do not know.\n */\nconst InsightVisual = createVariantBlock<InsightVisualProps>({\n variants: {\n category_color: BarChartVisual,\n minimal: PlainVisual,\n with_illustration: IllustrationVisual,\n with_warning_badge: WarningBadgeVisual,\n },\n fallback: PlainVisual,\n name: 'InsightVisual',\n})\n\n/**\n * Beats whose embedded CTA the card reads from its own envelope key and opens in this card's\n * `ActionBlockLayer`, as a bar click does on the full card. The trigger names that key, so the layer\n * resolves the same CTA. Every other beat keeps `primary_cta` and hands it to the host's `onCtaClick`\n * (e.g. `contact_support_block`). A new beat adds its template here.\n */\nconst BEAT_CTA_CONFIG: Record<\n string,\n { key: 'primary_cta' | 'in_description_cta'; trigger: ActionDrawerTrigger }\n> = {\n BillAmountNotStandard: { key: 'in_description_cta', trigger: 'inDescriptionCta' },\n}\n\nexport interface CompactInsightCardProps {\n /** A `micro` or `embedded` envelope. */\n payload: InsightsPayload\n /** The envelope's beat; when given, the card mounts its `ActionBlockLayer` for CTA drawers. */\n beat?: Beat\n /**\n * Makes the whole card the tap target. What a tap does is the host's decision (post to the\n * host app, open a drawer, …); the card never opens anything itself. Omit for a static card.\n */\n onTap?: () => void\n /** Receives the primary CTA when tapped. The card does not resolve the CTA's block itself. */\n onCtaClick?: (cta: PrimaryCTA) => void\n /**\n * Renders the CTA disabled — label shown, `aria-disabled`, not tappable — for a host that cannot\n * honour it (e.g. `contact_support_block` when the client's `enable_support_requests` is off).\n */\n isCtaDisabled?: boolean\n}\n\nconst stopPropagation = (event: MouseEvent) => event.stopPropagation()\n\n/**\n * The one compact renderer the micro and embedded envelopes share (`insights_v2.2.md` §8.3).\n *\n * Figma 1941:111897 (Embedded | Large Transaction): a title row with the overflow slot, the HTML\n * description with the primary CTA under it, and on the right the slot's `logo` in a\n * `<BadgedTile>`. Under ditto's `with_warning_badge` variant the tile takes a status badge; under\n * `minimal` it draws the logo alone. The card lays out from the envelope alone and never reads\n * `widget_type`.\n *\n * The icon falls back to the neutral insight glyph **here**, not in `LogoFromGuid`, when the slot\n * carries no logo. The `pill` on the same envelope is the transaction row's, not the card's.\n */\nconst CompactInsightCard = ({\n beat,\n isCtaDisabled = false,\n onCtaClick,\n onTap,\n payload,\n}: CompactInsightCardProps) => {\n const { openActionDrawer } = useInsightsV2Store()\n const { description, instance_slot, primary_cta, title } = payload\n const beatCta = BEAT_CTA_CONFIG[payload.template ?? '']\n const cta = beatCta ? payload[beatCta.key] : primary_cta\n // Reduced variants (`minimal`, `with_warning_badge`) declare a bare `logo` slot.\n const rowLogo = slot<LogoRef>(instance_slot.data, 'logo')\n\n const handleCtaClick = (event: MouseEvent<HTMLButtonElement>) => {\n event.stopPropagation()\n if (isCtaDisabled || !cta) return\n\n if (beatCta) {\n if (beat) openActionDrawer({ guid: beat.guid, trigger: beatCta.trigger })\n return\n }\n if (primary_cta) onCtaClick?.(primary_cta)\n }\n\n const handleKeyDown = (event: KeyboardEvent<HTMLDivElement>) => {\n // Only the card itself: Enter on the CTA button is the button's own click.\n if (event.target !== event.currentTarget) return\n if (event.key === 'Enter' || event.key === ' ') {\n event.preventDefault()\n onTap?.()\n }\n }\n\n const interactiveProps = onTap\n ? { onClick: onTap, onKeyDown: handleKeyDown, role: 'button', tabIndex: 0 }\n : {}\n\n return (\n <>\n <Card\n data-testid=\"compact-insight-card\"\n {...interactiveProps}\n sx={{\n minWidth: 288,\n pb: 12,\n pl: 8,\n pr: 16,\n pt: 8,\n ...(onTap && { cursor: 'pointer' }),\n }}\n >\n <Stack\n sx={{\n alignItems: 'center',\n flexDirection: 'row',\n gap: 8,\n justifyContent: 'space-between',\n pl: 8,\n pt: 4,\n }}\n >\n <Text bold={true} variant=\"body1\">\n {title ?? ''}\n </Text>\n {/* The menu renders only when the host wired `onMenuAction` (BeatActionsProvider). */}\n <Box onClick={stopPropagation} sx={{ display: 'flex' }}>\n <InsightOptionsMenu />\n </Box>\n </Stack>\n\n <Stack sx={{ flexDirection: 'row', gap: 16, pl: 8, pt: 4 }}>\n <Stack sx={{ flex: 1, gap: 8, minWidth: 0 }}>\n {/* `html_text` is rendered server-side by mrs_content from the ditto copy template (bold\n amount / merchant), not user-authored input; painted the same way `BaseLayout` paints\n the full card's description. */}\n <P\n dangerouslySetInnerHTML={{ __html: description.html_text }}\n data-testid=\"compact-insight-card-description\"\n variant=\"subtitle2\"\n />\n {cta?.label && (\n <Button\n aria-disabled={isCtaDisabled}\n onClick={handleCtaClick}\n size=\"small\"\n sx={{\n alignSelf: 'flex-start',\n // Figma 1941:111897 lines the CTA label up with the description's left edge. The\n // column already pads 8, so the button's own 8 is pulled back out — padding kept so\n // the tap target does not shrink.\n mt: 5,\n ml: -8,\n px: 8,\n ...(isCtaDisabled && {\n color: 'text.disabled',\n cursor: 'default',\n }),\n }}\n variant=\"text\"\n >\n {cta.label}\n </Button>\n )}\n </Stack>\n\n <InsightVisual data={instance_slot.data} logo={rowLogo} variant={instance_slot.variant} />\n </Stack>\n </Card>\n {/* Outside the Card: the drawer is a portal, and its clicks would otherwise bubble to `onTap`. */}\n {beat && <ActionBlockLayer beat={beat} />}\n </>\n )\n}\n\nexport default CompactInsightCard\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAsCA,IAAM,IAAY,IAaZ,IAAA,CAAkB,EAAE,MAAA,EAAA,MACxB,IACE,gBAAA,EAAC,GAAD;AAAA,EAAoB,MAAA;AAAA,EAAM,MAAM;AAAY,CAAA,IAE5C,gBAAA,EAAC,GAAD;AAAA,EACE,eAAY;AAAA,EACZ,IAAI;AAAA,IACF,YAAY;AAAA,IACZ,SAAS;AAAA,IACT,SAAS;AAAA,IACT,QAAQ;AAAA,IACR,gBAAgB;AAAA,IAChB,OAAO;AAAA,EACT;AAAA,EAEA,UAAA,gBAAA,EAAC,GAAD;AAAA,IAAM,OAAM;AAAA,IAAU,MAAM;AAAA,IAAM,MAAK;AAAA,IAAY,MAAM;AAAA,EAAK,CAAA;AAC3D,CAAA,GAIH,IAAA,CAAe,EAAE,MAAA,EAAA,MACrB,gBAAA,EAAC,GAAD;AAAA,EAAY,QAAQ,gBAAA,EAAC,GAAD,EAAsB,MAAA,EAAO,CAAA;AAAA,EAAG,MAAM;A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,CAAA,GAAA,KAAQ,gBAAA,EAAC,GAAD,EAAwB,MAAA,EAAO,CAAA,CACxC,EAAA,CAAA;AAEN"}
1
+ {"version":3,"file":"CompactInsightCard.es.js","names":[],"sources":["../../../src/insights-v2/components/CompactInsightCard.tsx"],"sourcesContent":["import type { KeyboardEvent, MouseEvent } from 'react'\n\nimport Box from '@mui/material/Box'\nimport Button from '@mui/material/Button'\nimport Card from '@mui/material/Card'\nimport Stack from '@mui/material/Stack'\n\nimport { Icon } from '@mxenabled/mx-icons'\nimport { P, Text } from '@mxenabled/mxui'\n\nimport { useInsightsV2Store } from '../../common'\nimport { TinyBarChart } from '../../common/components/TinyBarChart'\nimport { slot } from '../../core'\nimport type {\n Beat,\n DataSeries,\n InsightsPayload,\n InstanceSlotData,\n LogoRef,\n PrimaryCTA,\n} from '../../core'\nimport type { ActionDrawerTrigger } from '../../core/stores'\nimport type { AccountSwitchBlockV2Data } from '../../core/types/InsightsInstanceSlotData'\nimport { getCategoryColor } from '../../core/utils/CategoryUtil'\nimport {\n BAR_ARIA_LABEL,\n buildChartData,\n buildDataSeries,\n} from '../blocks/ChartBlocks/BarchartBlock/utils'\nimport { ActionBlockLayer } from '../actionBlocks/ActionBlockLayer'\nimport { createVariantBlock } from '../blocks/createVariantBlock'\nimport BadgedTile from './BadgedTile'\nimport InsightOptionsMenu from './InsightOptionsMenu'\nimport LogoFromGuid from './LogoFromGuid'\nimport { ReactComponent as FeeDetectedIllustration } from './shared/images/FeeDetected.svg'\nimport { ThemedSVGImage } from './chartblocks/ThemedSVGImage'\nimport StatusBadge from './StatusBadge'\n\n/** Figma 1941:111897: the tile the logo fills is 44px (rows are 32, the notification row 33). */\nconst ICON_SIZE = 44\n\ninterface InsightVisualProps {\n /** The slot's `logo`, when ditto's variant declares and fills one. */\n logo?: LogoRef | null\n /** The slot's whole `data`, for a visual drawn from more than the logo (`category_color`, `linked_logos`). */\n data?: InstanceSlotData\n}\n\nconst LINKED_LOGO_SIZE = 32\n\n/** Figma 222:33404 (Embedded | Bill Amount Not Standard) shows the latest three bars. */\nconst BAR_CHART_BAR_COUNT = 3\n\n/** The slot's logo, or the neutral insight glyph when the slot carries none. */\nconst LogoOrFallback = ({ logo }: InsightVisualProps) =>\n logo ? (\n <LogoFromGuid logo={logo} size={ICON_SIZE} />\n ) : (\n <Box\n data-testid=\"compact-insight-card-fallback-icon\"\n sx={{\n alignItems: 'center',\n bgcolor: 'primary.lighter',\n display: 'flex',\n height: ICON_SIZE,\n justifyContent: 'center',\n width: ICON_SIZE,\n }}\n >\n <Icon color=\"primary\" fill={true} name=\"lightbulb\" size={24} />\n </Box>\n )\n\n/** Micro, and any variant not registered below: the logo alone. */\nconst PlainVisual = ({ logo }: InsightVisualProps) => (\n <BadgedTile center={<LogoOrFallback logo={logo} />} size={ICON_SIZE} sx={{ flexShrink: 0 }} />\n)\n\n/** ditto `with_warning_badge`: the logo badged with a status glyph (Figma 1941:111897). */\nconst WarningBadgeVisual = ({ logo }: InsightVisualProps) => (\n <BadgedTile\n center={<LogoOrFallback logo={logo} />}\n size={ICON_SIZE}\n sx={{ flexShrink: 0 }}\n topRight={<StatusBadge tone=\"warning\" />}\n />\n)\n\n/**\n * ditto `with_illustration`: artwork in place of the logo tile (Fee Detected's search illustration).\n * A single SVG themed at runtime by `ThemedSVGImage`: its `brand300` elements are recolored to the\n * theme's `primary.main` (so it follows dark mode), while `fill=\"white\"` areas stay white. The\n * slot's `logo` is deliberately unused: the illustration replaces the tile.\n */\nconst IllustrationVisual = () => {\n return (\n <ThemedSVGImage\n divProps={{ style: { flexShrink: 0, lineHeight: 0, width: 'max-content' } }}\n image={FeeDetectedIllustration}\n />\n )\n}\n\n/**\n * ditto `linked_logos` (Figma 1943:219166, Embedded | Discovered Accounts): the two institutions\n * overlapping on a diagonal — `from_logo` top-left, `to_logo` bottom-right — with a link badge where\n * they meet. The badge is decorative (`aria-hidden`); each logo's accessible name is its `alt`.\n */\nconst LinkedLogosVisual = ({ data }: InsightVisualProps) => {\n const { from_logo, to_logo } = (data ?? {}) as AccountSwitchBlockV2Data\n\n return (\n <Box sx={{ flexShrink: 0, height: 64, position: 'relative', width: 64 }}>\n <Box sx={{ borderRadius: '6px', left: 0, overflow: 'hidden', position: 'absolute', top: 0 }}>\n <LogoFromGuid logo={from_logo} size={LINKED_LOGO_SIZE} />\n </Box>\n <Box\n aria-hidden={true}\n sx={{\n alignItems: 'center',\n bgcolor: 'text.secondary',\n borderRadius: '50%',\n display: 'flex',\n height: 20,\n justifyContent: 'center',\n left: 22,\n position: 'absolute',\n top: 22,\n width: 20,\n zIndex: 1,\n }}\n >\n <Icon name=\"link\" size={14} sx={{ color: 'primary.contrastText' }} />\n </Box>\n <Box\n sx={{ borderRadius: '6px', bottom: 0, overflow: 'hidden', position: 'absolute', right: 0 }}\n >\n <LogoFromGuid logo={to_logo} size={LINKED_LOGO_SIZE} />\n </Box>\n </Box>\n )\n}\n\n/**\n * ditto `category_color`: a tiny bar chart of the latest bars in place of the logo tile, tinted by\n * the slot's category, the newest bar solid (Figma 222:33404). Draws nothing without a series.\n */\nconst BarChartVisual = ({ data }: InsightVisualProps) => {\n const series = buildDataSeries(slot<DataSeries>(data, 'series'))\n if (!series.length) return null\n\n const categoryGuid = slot<string>(data, 'category_guid')\n const bars = buildChartData(series, BAR_ARIA_LABEL).slice(-BAR_CHART_BAR_COUNT)\n\n return (\n <Box data-testid=\"compact-insight-card-bar-chart\" sx={{ flexShrink: 0 }}>\n <TinyBarChart\n color={(theme) =>\n categoryGuid ? getCategoryColor(categoryGuid, theme) : theme.palette.primary.main\n }\n data={bars}\n />\n </Box>\n )\n}\n\n/**\n * The card's right-hand visual, one component per ditto layout variant.\n *\n * A variant names a rendering *shape*, not an insight or a surface — `with_header` already serves\n * both Large Transaction and Fee Detected — so an insight wanting the badged logo reuses\n * `with_warning_badge`. Only a genuinely different visual registers a new entry, and existing ones\n * are never touched.\n *\n * `minimal` draws the plain logo and is registered explicitly even though it matches the fallback:\n * micro and notification resolve it on every render, and an unregistered variant warns. The\n * fallback is for variants we genuinely do not know.\n */\nconst InsightVisual = createVariantBlock<InsightVisualProps>({\n variants: {\n category_color: BarChartVisual,\n linked_logos: LinkedLogosVisual,\n minimal: PlainVisual,\n with_illustration: IllustrationVisual,\n with_warning_badge: WarningBadgeVisual,\n },\n fallback: PlainVisual,\n name: 'InsightVisual',\n})\n\n/**\n * Beats whose embedded CTA the card reads from its own envelope key and opens in this card's\n * `ActionBlockLayer`, as a bar click does on the full card. The trigger names that key, so the layer\n * resolves the same CTA. Every other beat keeps `primary_cta` and hands it to the host's `onCtaClick`\n * (e.g. `contact_support_block`). A new beat adds its template here.\n */\nconst BEAT_CTA_CONFIG: Record<\n string,\n { key: 'primary_cta' | 'in_description_cta'; trigger: ActionDrawerTrigger }\n> = {\n BillAmountNotStandard: { key: 'in_description_cta', trigger: 'inDescriptionCta' },\n ConnectDiscoveredAccountsV2: { key: 'in_description_cta', trigger: 'inDescriptionCta' },\n}\n\nexport interface CompactInsightCardProps {\n /** A `micro` or `embedded` envelope. */\n payload: InsightsPayload\n /** The envelope's beat; when given, the card mounts its `ActionBlockLayer` for CTA drawers. */\n beat?: Beat\n /**\n * Makes the whole card the tap target. What a tap does is the host's decision (post to the\n * host app, open a drawer, …); the card never opens anything itself. Omit for a static card.\n */\n onTap?: () => void\n /** Receives the primary CTA when tapped. The card does not resolve the CTA's block itself. */\n onCtaClick?: (cta: PrimaryCTA) => void\n /**\n * Renders the CTA disabled — label shown, `aria-disabled`, not tappable — for a host that cannot\n * honour it (e.g. `contact_support_block` when the client's `enable_support_requests` is off).\n */\n isCtaDisabled?: boolean\n}\n\nconst stopPropagation = (event: MouseEvent) => event.stopPropagation()\n\n/**\n * The one compact renderer the micro and embedded envelopes share (`insights_v2.2.md` §8.3).\n *\n * Figma 1941:111897 (Embedded | Large Transaction): a title row with the overflow slot, the HTML\n * description with the primary CTA under it, and on the right the slot's `logo` in a\n * `<BadgedTile>`. Under ditto's `with_warning_badge` variant the tile takes a status badge; under\n * `minimal` it draws the logo alone. The card lays out from the envelope alone and never reads\n * `widget_type`.\n *\n * The icon falls back to the neutral insight glyph **here**, not in `LogoFromGuid`, when the slot\n * carries no logo. The `pill` on the same envelope is the transaction row's, not the card's.\n */\nconst CompactInsightCard = ({\n beat,\n isCtaDisabled = false,\n onCtaClick,\n onTap,\n payload,\n}: CompactInsightCardProps) => {\n const { openActionDrawer } = useInsightsV2Store()\n const { description, instance_slot, primary_cta, title } = payload\n const beatCta = BEAT_CTA_CONFIG[payload.template ?? '']\n const cta = beatCta ? payload[beatCta.key] : primary_cta\n // Reduced variants (`minimal`, `with_warning_badge`) declare a bare `logo` slot.\n const rowLogo = slot<LogoRef>(instance_slot.data, 'logo')\n\n const handleCtaClick = (event: MouseEvent<HTMLButtonElement>) => {\n event.stopPropagation()\n if (isCtaDisabled || !cta) return\n\n if (beatCta) {\n if (beat) openActionDrawer({ guid: beat.guid, trigger: beatCta.trigger })\n return\n }\n if (primary_cta) onCtaClick?.(primary_cta)\n }\n\n const handleKeyDown = (event: KeyboardEvent<HTMLDivElement>) => {\n // Only the card itself: Enter on the CTA button is the button's own click.\n if (event.target !== event.currentTarget) return\n if (event.key === 'Enter' || event.key === ' ') {\n event.preventDefault()\n onTap?.()\n }\n }\n\n const interactiveProps = onTap\n ? { onClick: onTap, onKeyDown: handleKeyDown, role: 'button', tabIndex: 0 }\n : {}\n\n return (\n <>\n <Card\n data-testid=\"compact-insight-card\"\n {...interactiveProps}\n sx={{\n minWidth: 288,\n pb: 12,\n pl: 8,\n pr: 16,\n pt: 8,\n ...(onTap && { cursor: 'pointer' }),\n }}\n >\n <Stack\n sx={{\n alignItems: 'center',\n flexDirection: 'row',\n gap: 8,\n justifyContent: 'space-between',\n pl: 8,\n pt: 4,\n }}\n >\n <Text bold={true} variant=\"body1\">\n {title ?? ''}\n </Text>\n {/* The menu renders only when the host wired `onMenuAction` (BeatActionsProvider). */}\n <Box onClick={stopPropagation} sx={{ display: 'flex' }}>\n <InsightOptionsMenu />\n </Box>\n </Stack>\n\n <Stack sx={{ flexDirection: 'row', gap: 16, pl: 8, pt: 4 }}>\n <Stack sx={{ flex: 1, gap: 8, minWidth: 0 }}>\n {/* `html_text` is rendered server-side by mrs_content from the ditto copy template (bold\n amount / merchant), not user-authored input; painted the same way `BaseLayout` paints\n the full card's description. */}\n <P\n dangerouslySetInnerHTML={{ __html: description.html_text }}\n data-testid=\"compact-insight-card-description\"\n variant=\"subtitle2\"\n />\n {cta?.label && (\n <Button\n aria-disabled={isCtaDisabled}\n onClick={handleCtaClick}\n size=\"small\"\n sx={{\n alignSelf: 'flex-start',\n // Figma 1941:111897 lines the CTA label up with the description's left edge. The\n // column already pads 8, so the button's own 8 is pulled back out — padding kept so\n // the tap target does not shrink.\n mt: 5,\n ml: -8,\n px: 8,\n ...(isCtaDisabled && {\n color: 'text.disabled',\n cursor: 'default',\n }),\n }}\n variant=\"text\"\n >\n {cta.label}\n </Button>\n )}\n </Stack>\n\n <InsightVisual data={instance_slot.data} logo={rowLogo} variant={instance_slot.variant} />\n </Stack>\n </Card>\n {/* Outside the Card: the drawer is a portal, and its clicks would otherwise bubble to `onTap`. */}\n {beat && <ActionBlockLayer beat={beat} />}\n </>\n )\n}\n\nexport default CompactInsightCard\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAuCA,IAAM,IAAY,IASZ,IAAmB,IAMnB,IAAA,CAAkB,EAAE,MAAA,EAAA,MACxB,IACE,gBAAA,EAAC,GAAD;AAAA,EAAoB,MAAA;AAAA,EAAM,MAAM;AAAY,CAAA,IAE5C,gBAAA,EAAC,GAAD;AAAA,EACE,eAAY;AAAA,EACZ,IAAI;AAAA,IACF,YAAY;AAAA,IACZ,SAAS;AAAA,IACT,SAAS;AAAA,IACT,QAAQ;AAAA,IACR,gBAAgB;AAAA,IAChB,OAAO;AAAA,EACT;AAAA,EAEA,UAAA,gBAAA,EAAC,GAAD;AAAA,IAAM,OAAM;AAAA,IAAU,MAAM;AAAA,IAAM,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AA,cACnB,OAAO;AAAA,cACP,QAAQ;AAAA,YACV;AAAA,UACF;AAAA,UACA,SAAQ;AAAA,UAEP,UAAA,EAAI;AAAA,QACC,CAAA,CAEL;AAAA,MAEP,CAAA,GAAA,gBAAA,EAAC,GAAD;AAAA,QAAe,MAAM,EAAc;AAAA,QAAM,MAAM;AAAA,QAAS,SAAS,EAAc;AAAA,MAAU,CAAA,CACpF;AAAA,IACH,CAAA,CAAA;AAAA,EAEL,CAAA,GAAA,KAAQ,gBAAA,EAAC,GAAD,EAAwB,MAAA,EAAO,CAAA,CACxC,EAAA,CAAA;AAEN"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "9.7.41",
3
+ "version": "9.7.42",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",