@mx-cartographer/experiences 9.7.172 → 9.7.173

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,9 @@
1
+ ## [9.7.173] - 11-17-2026
2
+
3
+ - **FIXED** - Discovered Accounts' pending card wash is at Figma's 127° (WEC-2342)
4
+ - **FIXED** - The Connection Details drawer's bullets are text.secondary, with each icon on the first line of text (WEC-2342)
5
+ - **CHANGED** - Discovered Accounts' `account_switch_block` slots: `from_logo` is the held institution and `to_logo` the discovered one (set by ditto; experiences draws them in the same order) (WEC-2342)
6
+
1
7
  ## [9.7.172] - 11-17-2026
2
8
 
3
9
  - **FIXED** - Monthly Subscription Aggregate V2: 72px bordered logos and Subscriptions drawer count tile type and icon match Figma (WEC-2298)
@@ -1 +1 @@
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<MerchantBlockData>,\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: `instance_slot.data` (Insights 2.0) — the same shape V1 sent as `instance_slot_data`.\n/** The donut's centre: the total and its caption (\"$6,306\" / \"Total\"). */\nexport interface DonutChartMain {\n value: string | number\n value_type: string\n label: string\n /** The embedded donut's shorter caption (Credit Card Close to Limit: \"Remains\"). */\n compact_label?: string\n}\nexport interface DonutChartBlockData {\n main: DonutChartMain\n /** The category whose colour fills the primary slice (Cost of Living to Income: Housing). */\n category_guid?: string\n /** Legend rows beside the donut: a label, its amount and an optional share (\"$5,550.00 (88%)\"). */\n legends?: Legends[]\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 // The comparison bar's transaction guids (data_series aggregated_guids), for the drawer filter.\n comparisonGuids?: string[]\n // The month's 'yyyy-MM-dd' date (the main row's).\n date?: string\n formattedComparison: string\n formattedMain: string\n label: string\n main: number\n // The main bar's transaction guids (data_series aggregated_guids), for the drawer filter.\n mainGuids?: string[]\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\n// Merchant block `instance_slot.data`; `primary_text` is ditto's name.\nexport interface MerchantBlockData {\n merchant_name?: string\n logo?: LogoRef\n amount?: number\n /** Pre-localized eyebrow; ditto sends `header_text`. */\n date?: string\n header_text?: string\n status_text?: string\n logos?: LogoRef[]\n}\n"],"mappings":"AAqJA,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<MerchantBlockData>,\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: `instance_slot.data` (Insights 2.0) — the same shape V1 sent as `instance_slot_data`.\n/** The donut's centre: the total and its caption (\"$6,306\" / \"Total\"). */\nexport interface DonutChartMain {\n value: string | number\n value_type: string\n label: string\n /** The embedded donut's shorter caption (Credit Card Close to Limit: \"Remains\"). */\n compact_label?: string\n}\nexport interface DonutChartBlockData {\n main: DonutChartMain\n /** The category whose colour fills the primary slice (Cost of Living to Income: Housing). */\n category_guid?: string\n /** Legend rows beside the donut: a label, its amount and an optional share (\"$5,550.00 (88%)\"). */\n legends?: Legends[]\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 // The comparison bar's transaction guids (data_series aggregated_guids), for the drawer filter.\n comparisonGuids?: string[]\n // The month's 'yyyy-MM-dd' date (the main row's).\n date?: string\n formattedComparison: string\n formattedMain: string\n label: string\n main: number\n // The main bar's transaction guids (data_series aggregated_guids), for the drawer filter.\n mainGuids?: string[]\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: `from_logo` the held\n// institution (absent when the user holds no FI-managed account), `to_logo` the discovered one.\n// Switch Direct Deposit: `from_logo` the external institution, `to_logo` the held one. `logo` is the\n// compact card's (micro, notification) 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\n// Merchant block `instance_slot.data`; `primary_text` is ditto's name.\nexport interface MerchantBlockData {\n merchant_name?: string\n logo?: LogoRef\n amount?: number\n /** Pre-localized eyebrow; ditto sends `header_text`. */\n date?: string\n header_text?: string\n status_text?: string\n logos?: LogoRef[]\n}\n"],"mappings":"AAsJA,IAAY,IAAL,0BAAA,GAAA;AACL,SAAA,EAAA,kBAAA,OACA,EAAA,qBAAA,UACA,EAAA,wBAAA;AACF,GAAA,CAAA,CAAA"}
@@ -4,8 +4,8 @@ import { BlockProps } from '../../types';
4
4
  * Direct Deposit. `instance_slot.variant` picks the design branch from `./layout.ts`.
5
5
  *
6
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).
7
+ * nothing for a missing slot or a guid that is not a logo guid (Discovered Accounts has no held
8
+ * institution logo when the user holds no FI-managed account).
9
9
  */
10
10
  declare const AccountSwitchBlock: ({ payload }: BlockProps) => import("react/jsx-runtime").JSX.Element;
11
11
  export default AccountSwitchBlock;
@@ -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 { 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, badgeIconSize, ...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={\n <Icon\n aria-hidden={true}\n name={badgeIcon}\n size={badgeIconSize}\n sx={{ color: badgeIconColor }}\n />\n }\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,eAAA,GAAe,GAAG,EAAA,IAAc,EACjE,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,MACE,gBAAA,EAAC,GAAD;AAAA,MACE,eAAa;AAAA,MACb,MAAM;AAAA,MACN,MAAM;AAAA,MACN,IAAI,EAAE,OAAO,EAAe;AAAA,IAC7B,CAAA;AAAA,IAEH,IAAI,gBAAA,EAAC,GAAD;AAAA,MAAc,MAAM;AAAA,MAAS,MAAM;AAAA,IAAY,CAAA;AAAA,EACpD,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 (Discovered Accounts has no held\n * institution logo when the user 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, badgeIconSize, ...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={\n <Icon\n aria-hidden={true}\n name={badgeIcon}\n size={badgeIconSize}\n sx={{ color: badgeIconColor }}\n />\n }\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,eAAA,GAAe,GAAG,EAAA,IAAc,EACjE,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,MACE,gBAAA,EAAC,GAAD;AAAA,MACE,eAAa;AAAA,MACb,MAAM;AAAA,MACN,MAAM;AAAA,MACN,IAAI,EAAE,OAAO,EAAe;AAAA,IAC7B,CAAA;AAAA,IAEH,IAAI,gBAAA,EAAC,GAAD;AAAA,MAAc,MAAM;AAAA,MAAS,MAAM;AAAA,IAAY,CAAA;AAAA,EACpD,CAAA;AAEL"}
@@ -1,11 +1,11 @@
1
- import { ACCOUNT_CONNECTED_GRADIENT as n, getPrimaryWashGradient as e } from "../../../components/celebrationGradients.es.js";
1
+ import { ACCOUNT_CONNECTED_GRADIENT as e, getPrimaryWashGradient as n } from "../../../components/celebrationGradients.es.js";
2
2
  var o = {
3
3
  AccountConnect: "account_connect",
4
4
  AccountConnected: "account_connected",
5
5
  SwitchDirectDeposit: "switch_direct_deposit"
6
- }, r = (c) => {
7
- const t = {
8
- backgroundImage: e(c),
6
+ }, r = (t) => {
7
+ const c = {
8
+ backgroundImage: n(t, 127),
9
9
  bgcolor: "background.paper",
10
10
  badgeBgColor: "common.black",
11
11
  badgeIconColor: "common.white",
@@ -15,11 +15,11 @@ var o = {
15
15
  };
16
16
  return {
17
17
  [o.AccountConnect]: {
18
- ...t,
18
+ ...c,
19
19
  badgeIcon: "link"
20
20
  },
21
21
  [o.AccountConnected]: {
22
- backgroundImage: n,
22
+ backgroundImage: e,
23
23
  bgcolor: "background.paper",
24
24
  badgeBgColor: "success.main",
25
25
  badgeIcon: "check",
@@ -30,8 +30,7 @@ var o = {
30
30
  showConfetti: !0
31
31
  },
32
32
  [o.SwitchDirectDeposit]: {
33
- ...t,
34
- backgroundImage: e(c, 127),
33
+ ...c,
35
34
  badgeIcon: "arrow_right_alt"
36
35
  }
37
36
  };
@@ -1 +1 @@
1
- {"version":3,"file":"layout.es.js","names":[],"sources":["../../../../../src/insights-v2/blocks/ComponentBlocks/AccountSwitchBlock/layout.ts"],"sourcesContent":["import type { Theme } from '@mui/material/styles'\n\nimport {\n ACCOUNT_CONNECTED_GRADIENT,\n getPrimaryWashGradient,\n} from '../../../components/celebrationGradients'\n\n/**\n * Account Switch block variants, keyed by the backend `instance_slot.variant`. All share\n * `TransferLogoCard`; only the slot surface, center badge and connector dots differ.\n *\n * - `AccountConnect` — Discovered Accounts pending: blue gradient, black link badge.\n * - `AccountConnected` — Discovered Accounts success: pink wash, confetti, check badge.\n * - `SwitchDirectDeposit` — Switch Direct Deposit pending: the same look with an arrow badge.\n * Its complete state is a different layout, served by `direct_deposit_block`.\n */\nexport const accountSwitchVariant = {\n AccountConnect: 'account_connect',\n AccountConnected: 'account_connected',\n SwitchDirectDeposit: 'switch_direct_deposit',\n} as const\n\nexport type AccountSwitchVariant = (typeof accountSwitchVariant)[keyof typeof accountSwitchVariant]\n\nexport interface AccountSwitchLayoutConfig {\n /** Slot surface color token. */\n bgcolor: string\n /** Optional gradient layered over `bgcolor`. */\n backgroundImage?: string\n /** Center badge background color token. */\n badgeBgColor: string\n /** mx-icons glyph rendered in the center badge. */\n badgeIcon: string\n /** Color token for the badge glyph. */\n badgeIconColor: string\n /** Badge glyph size in px. */\n badgeIconSize: number\n /** Connector-dot color token. */\n dotColor: string\n /** Enlarge the inner connector dots (6px vs 4px). */\n hasBigDots: boolean\n /** Confetti burst filling the slot (success states). */\n showConfetti?: boolean\n}\n\n/** Per-variant `TransferLogoCard` props (mirrors DetailedAccountBlock's `getLayoutConfig`). */\nexport const getLayoutConfig = (\n theme: Theme,\n): Record<AccountSwitchVariant, AccountSwitchLayoutConfig> => {\n // Figma's pending look, shared by Discovered Accounts and Switch Direct Deposit: the blue wash,\n // text.secondary dots with the bigger inner pair, and a black badge with a 16px white glyph.\n const pending = {\n backgroundImage: getPrimaryWashGradient(theme),\n bgcolor: 'background.paper',\n badgeBgColor: 'common.black',\n badgeIconColor: 'common.white',\n badgeIconSize: 16,\n dotColor: 'text.secondary',\n hasBigDots: true,\n }\n\n return {\n [accountSwitchVariant.AccountConnect]: { ...pending, badgeIcon: 'link' },\n [accountSwitchVariant.AccountConnected]: {\n backgroundImage: ACCOUNT_CONNECTED_GRADIENT,\n bgcolor: 'background.paper',\n badgeBgColor: 'success.main',\n // Figma \"Common/Check\": a bare 20px check on the solid success badge (not `check_circle`).\n badgeIcon: 'check',\n badgeIconColor: 'common.white',\n badgeIconSize: 20,\n dotColor: 'text.secondary',\n hasBigDots: true,\n showConfetti: true,\n },\n // Figma 1941:167577: the Switch default's wash is at 127°.\n [accountSwitchVariant.SwitchDirectDeposit]: {\n ...pending,\n backgroundImage: getPrimaryWashGradient(theme, 127),\n badgeIcon: 'arrow_right_alt',\n },\n }\n}\n"],"mappings":";AAgBA,IAAa,IAAuB;AAAA,EAClC,gBAAgB;AAAA,EAChB,kBAAkB;AAAA,EAClB,qBAAqB;AACvB,GA0Ba,IAAA,CACX,MAC4D;AAG5D,QAAM,IAAU;AAAA,IACd,iBAAiB,EAAuB,CAAK;AAAA,IAC7C,SAAS;AAAA,IACT,cAAc;AAAA,IACd,gBAAgB;AAAA,IAChB,eAAe;AAAA,IACf,UAAU;AAAA,IACV,YAAY;AAAA,EACd;AAEA,SAAO;AAAA,IACJ,CAAA,EAAqB,cAAA,GAAiB;AAAA,MAAE,GAAG;AAAA,MAAS,WAAW;AAAA,IAAO;AAAA,IACtE,CAAA,EAAqB,gBAAA,GAAmB;AAAA,MACvC,iBAAiB;AAAA,MACjB,SAAS;AAAA,MACT,cAAc;AAAA,MAEd,WAAW;AAAA,MACX,gBAAgB;AAAA,MAChB,eAAe;AAAA,MACf,UAAU;AAAA,MACV,YAAY;AAAA,MACZ,cAAc;AAAA,IAChB;AAAA,IAEC,CAAA,EAAqB,mBAAA,GAAsB;AAAA,MAC1C,GAAG;AAAA,MACH,iBAAiB,EAAuB,GAAO,GAAG;AAAA,MAClD,WAAW;AAAA,IACb;AAAA,EACF;AACF"}
1
+ {"version":3,"file":"layout.es.js","names":[],"sources":["../../../../../src/insights-v2/blocks/ComponentBlocks/AccountSwitchBlock/layout.ts"],"sourcesContent":["import type { Theme } from '@mui/material/styles'\n\nimport {\n ACCOUNT_CONNECTED_GRADIENT,\n getPrimaryWashGradient,\n} from '../../../components/celebrationGradients'\n\n/**\n * Account Switch block variants, keyed by the backend `instance_slot.variant`. All share\n * `TransferLogoCard`; only the slot surface, center badge and connector dots differ.\n *\n * - `AccountConnect` — Discovered Accounts pending: blue gradient, black link badge.\n * - `AccountConnected` — Discovered Accounts success: pink wash, confetti, check badge.\n * - `SwitchDirectDeposit` — Switch Direct Deposit pending: the same look with an arrow badge.\n * Its complete state is a different layout, served by `direct_deposit_block`.\n */\nexport const accountSwitchVariant = {\n AccountConnect: 'account_connect',\n AccountConnected: 'account_connected',\n SwitchDirectDeposit: 'switch_direct_deposit',\n} as const\n\nexport type AccountSwitchVariant = (typeof accountSwitchVariant)[keyof typeof accountSwitchVariant]\n\nexport interface AccountSwitchLayoutConfig {\n /** Slot surface color token. */\n bgcolor: string\n /** Optional gradient layered over `bgcolor`. */\n backgroundImage?: string\n /** Center badge background color token. */\n badgeBgColor: string\n /** mx-icons glyph rendered in the center badge. */\n badgeIcon: string\n /** Color token for the badge glyph. */\n badgeIconColor: string\n /** Badge glyph size in px. */\n badgeIconSize: number\n /** Connector-dot color token. */\n dotColor: string\n /** Enlarge the inner connector dots (6px vs 4px). */\n hasBigDots: boolean\n /** Confetti burst filling the slot (success states). */\n showConfetti?: boolean\n}\n\n/** Per-variant `TransferLogoCard` props (mirrors DetailedAccountBlock's `getLayoutConfig`). */\nexport const getLayoutConfig = (\n theme: Theme,\n): Record<AccountSwitchVariant, AccountSwitchLayoutConfig> => {\n // Figma's pending look (1943:219166, 1941:167577), shared by Discovered Accounts and Switch Direct\n // Deposit: the blue wash, text.secondary dots with the bigger inner pair, and a black badge with a\n // 16px white glyph.\n const pending = {\n backgroundImage: getPrimaryWashGradient(theme, 127),\n bgcolor: 'background.paper',\n badgeBgColor: 'common.black',\n badgeIconColor: 'common.white',\n badgeIconSize: 16,\n dotColor: 'text.secondary',\n hasBigDots: true,\n }\n\n return {\n [accountSwitchVariant.AccountConnect]: { ...pending, badgeIcon: 'link' },\n [accountSwitchVariant.AccountConnected]: {\n backgroundImage: ACCOUNT_CONNECTED_GRADIENT,\n bgcolor: 'background.paper',\n badgeBgColor: 'success.main',\n // Figma \"Common/Check\": a bare 20px check on the solid success badge (not `check_circle`).\n badgeIcon: 'check',\n badgeIconColor: 'common.white',\n badgeIconSize: 20,\n dotColor: 'text.secondary',\n hasBigDots: true,\n showConfetti: true,\n },\n [accountSwitchVariant.SwitchDirectDeposit]: { ...pending, badgeIcon: 'arrow_right_alt' },\n }\n}\n"],"mappings":";AAgBA,IAAa,IAAuB;AAAA,EAClC,gBAAgB;AAAA,EAChB,kBAAkB;AAAA,EAClB,qBAAqB;AACvB,GA0Ba,IAAA,CACX,MAC4D;AAI5D,QAAM,IAAU;AAAA,IACd,iBAAiB,EAAuB,GAAO,GAAG;AAAA,IAClD,SAAS;AAAA,IACT,cAAc;AAAA,IACd,gBAAgB;AAAA,IAChB,eAAe;AAAA,IACf,UAAU;AAAA,IACV,YAAY;AAAA,EACd;AAEA,SAAO;AAAA,IACJ,CAAA,EAAqB,cAAA,GAAiB;AAAA,MAAE,GAAG;AAAA,MAAS,WAAW;AAAA,IAAO;AAAA,IACtE,CAAA,EAAqB,gBAAA,GAAmB;AAAA,MACvC,iBAAiB;AAAA,MACjB,SAAS;AAAA,MACT,cAAc;AAAA,MAEd,WAAW;AAAA,MACX,gBAAgB;AAAA,MAChB,eAAe;AAAA,MACf,UAAU;AAAA,MACV,YAAY;AAAA,MACZ,cAAc;AAAA,IAChB;AAAA,IACC,CAAA,EAAqB,mBAAA,GAAsB;AAAA,MAAE,GAAG;AAAA,MAAS,WAAW;AAAA,IAAkB;AAAA,EACzF;AACF"}
@@ -1,5 +1,5 @@
1
1
  import i from "@mui/material/Stack";
2
- import { P as a, Text as s } from "@mxenabled/mxui";
2
+ import { P as a, Text as c } from "@mxenabled/mxui";
3
3
  import { Icon as l } from "@mxenabled/mx-icons";
4
4
  import { jsx as e, jsxs as t } from "react/jsx-runtime";
5
5
  import d from "@mui/material/IconButton";
@@ -15,7 +15,7 @@ var m = ({ icon: r, title: o, description: n }) => /* @__PURE__ */ e(h, {
15
15
  },
16
16
  children: [r, /* @__PURE__ */ t(i, {
17
17
  sx: { gap: 4 },
18
- children: [/* @__PURE__ */ e(s, {
18
+ children: [/* @__PURE__ */ e(c, {
19
19
  bold: !0,
20
20
  variant: "body1",
21
21
  children: o
@@ -55,21 +55,26 @@ var m = ({ icon: r, title: o, description: n }) => /* @__PURE__ */ e(h, {
55
55
  })]
56
56
  }), /* @__PURE__ */ e(i, {
57
57
  sx: { gap: 12 },
58
- children: r.benefits.map((n, c) => /* @__PURE__ */ t(i, {
58
+ children: r.benefits.map((n, s) => /* @__PURE__ */ t(i, {
59
59
  sx: {
60
+ alignItems: "flex-start",
60
61
  flexDirection: "row",
61
62
  gap: 8
62
63
  },
63
64
  children: [/* @__PURE__ */ e(l, {
64
65
  color: "success",
65
66
  name: "check_circle",
66
- size: 16
67
+ size: 16,
68
+ sx: { mt: 2 }
67
69
  }), /* @__PURE__ */ e(a, {
68
- sx: { fontWeight: 400 },
70
+ sx: {
71
+ color: "text.secondary",
72
+ fontWeight: 400
73
+ },
69
74
  variant: "subtitle2",
70
75
  children: n
71
76
  })]
72
- }, c))
77
+ }, s))
73
78
  })]
74
79
  }),
75
80
  /* @__PURE__ */ t(i, {
@@ -77,7 +82,7 @@ var m = ({ icon: r, title: o, description: n }) => /* @__PURE__ */ e(h, {
77
82
  gap: 4,
78
83
  py: 12
79
84
  },
80
- children: [/* @__PURE__ */ e(s, {
85
+ children: [/* @__PURE__ */ e(c, {
81
86
  sx: { fontWeight: 600 },
82
87
  variant: "body1",
83
88
  children: r.shared_info_header_text
@@ -95,7 +100,7 @@ var m = ({ icon: r, title: o, description: n }) => /* @__PURE__ */ e(h, {
95
100
  py: 16,
96
101
  gap: 24
97
102
  },
98
- children: r.shared_info_items.map((n, c) => /* @__PURE__ */ e(m, {
103
+ children: r.shared_info_items.map((n, s) => /* @__PURE__ */ e(m, {
99
104
  description: n.content,
100
105
  icon: /* @__PURE__ */ e(l, {
101
106
  name: n.icon_name,
@@ -103,7 +108,7 @@ var m = ({ icon: r, title: o, description: n }) => /* @__PURE__ */ e(h, {
103
108
  sx: { color: "text.primary" }
104
109
  }),
105
110
  title: n.title
106
- }, c))
111
+ }, s))
107
112
  }),
108
113
  /* @__PURE__ */ t(i, {
109
114
  sx: {
@@ -111,7 +116,7 @@ var m = ({ icon: r, title: o, description: n }) => /* @__PURE__ */ e(h, {
111
116
  gap: 12,
112
117
  alignItems: "center"
113
118
  },
114
- children: [/* @__PURE__ */ e(s, {
119
+ children: [/* @__PURE__ */ e(c, {
115
120
  bold: !0,
116
121
  children: r.footer_title
117
122
  }), /* @__PURE__ */ t(i, {
@@ -1 +1 @@
1
- {"version":3,"file":"ConnectionDetailDrillDown.es.js","names":[],"sources":["../../../src/insights-v2/components/ConnectionDetailDrillDown.tsx"],"sourcesContent":["import Card from '@mui/material/Card'\nimport CardContent from '@mui/material/CardContent'\nimport IconButton from '@mui/material/IconButton'\nimport Stack from '@mui/material/Stack'\n\nimport { Icon } from '@mxenabled/mx-icons'\nimport { P, Text } from '@mxenabled/mxui'\n\ninterface InfoItemProps {\n icon: React.ReactNode\n title: string\n description: string\n}\n\nexport interface ConnectionDetailItem {\n content: string\n icon_name: string\n title: string\n}\n\n/** Resolved strings the drilldown renders (see ConnectionDetailActionBlock). */\nexport interface ConnectionDetailContent {\n aria_label_thumbs_down: string\n aria_label_thumbs_up: string\n benefits: string[]\n description: string\n footer_title: string\n header_text: string\n shared_info_description: string\n shared_info_header_text: string\n shared_info_items: ConnectionDetailItem[]\n}\n\ninterface ConnectionDetailDrillDownProps {\n copy: ConnectionDetailContent\n /** Thumbs response — `'yes'` (up) / `'no'` (down). */\n onRespond?: (response: 'yes' | 'no') => void\n}\n\nconst InfoItem = ({ icon, title, description }: InfoItemProps) => (\n <Card variant=\"outlined\">\n <CardContent sx={{ display: 'flex', gap: 12, '&:last-child': { pb: 16 } }}>\n {icon}\n <Stack sx={{ gap: 4 }}>\n <Text bold={true} variant=\"body1\">\n {title}\n </Text>\n <P sx={{ color: 'text.secondary', fontWeight: 400 }} variant=\"subtitle2\">\n {description}\n </P>\n </Stack>\n </CardContent>\n </Card>\n)\n\n/**\n * Insights-v2 copy of the V1 `insights/components/shared/ConnectionDetailDrillDown`:\n * the connection-details education panel (benefits, shared-info cards, and a\n * thumbs was-this-helpful footer).\n *\n * Unlike V1, this is drawer CONTENT only — the `connection_detail_block`\n * registry entry supplies the drawer and its title via ActionBlockLayer.\n */\nconst ConnectionDetailDrillDown = ({ copy, onRespond }: ConnectionDetailDrillDownProps) => (\n <Stack sx={{ p: 24, bgcolor: 'background.paper' }}>\n <Stack sx={{ gap: 16, pb: 16 }}>\n <Stack sx={{ gap: 4 }}>\n <P variant=\"h3\">{copy.header_text}</P>\n\n <P sx={{ fontWeight: 400, color: 'text.secondary' }} variant=\"subtitle2\">\n {copy.description}\n </P>\n </Stack>\n\n {/* Bullet points */}\n <Stack sx={{ gap: 12 }}>\n {copy.benefits.map((text, i) => (\n <Stack key={i} sx={{ flexDirection: 'row', gap: 8 }}>\n <Icon color=\"success\" name=\"check_circle\" size={16} />\n <P sx={{ fontWeight: 400 }} variant=\"subtitle2\">\n {text}\n </P>\n </Stack>\n ))}\n </Stack>\n </Stack>\n\n {/* Info section */}\n <Stack sx={{ gap: 4, py: 12 }}>\n <Text sx={{ fontWeight: 600 }} variant=\"body1\">\n {copy.shared_info_header_text}\n </Text>\n\n <P sx={{ color: 'text.secondary', lineHeight: '20px' }} variant=\"body2\">\n {copy.shared_info_description}\n </P>\n </Stack>\n\n {/* Cards */}\n <Stack sx={{ py: 16, gap: 24 }}>\n {copy.shared_info_items.map((item, index) => (\n <InfoItem\n description={item.content}\n icon={<Icon name={item.icon_name} size={24} sx={{ color: 'text.primary' }} />}\n key={index}\n title={item.title}\n />\n ))}\n </Stack>\n\n <Stack sx={{ py: 16, gap: 12, alignItems: 'center' }}>\n <Text bold={true}>{copy.footer_title}</Text>\n <Stack sx={{ flexDirection: 'row', alignItems: 'center', gap: 24 }}>\n <IconButton aria-label={copy.aria_label_thumbs_down} onClick={() => onRespond?.('no')}>\n <Icon color=\"secondary\" name=\"thumb_down\" size={24} />\n </IconButton>\n <IconButton aria-label={copy.aria_label_thumbs_up} onClick={() => onRespond?.('yes')}>\n <Icon color=\"secondary\" name=\"thumb_up\" size={24} />\n </IconButton>\n </Stack>\n </Stack>\n </Stack>\n)\n\nexport default ConnectionDetailDrillDown\n"],"mappings":";;;;;;;AAuCA,IAAM,IAAA,CAAY,EAAE,MAAA,GAAM,OAAA,GAAO,aAAA,EAAA,MAC/B,gBAAA,EAAC,GAAD;AAAA,EAAM,SAAQ;AAAA,EACZ,UAAA,gBAAA,EAAC,GAAD;AAAA,IAAa,IAAI;AAAA,MAAE,SAAS;AAAA,MAAQ,KAAK;AAAA,MAAI,gBAAgB,EAAE,IAAI,GAAG;AAAA,IAAE;AAAA,IAAxE,UAAA,CACG,GACD,gBAAA,EAAC,GAAD;AAAA,MAAO,IAAI,EAAE,KAAK,EAAE;AAAA,MAApB,UAAA,CACE,gBAAA,EAAC,GAAD;AAAA,QAAM,MAAM;AAAA,QAAM,SAAQ;AAAA,QACvB,UAAA;AAAA,MACG,CAAA,GACN,gBAAA,EAAC,GAAD;AAAA,QAAG,IAAI;AAAA,UAAE,OAAO;AAAA,UAAkB,YAAY;AAAA,QAAI;AAAA,QAAG,SAAQ;AAAA,QAC1D,UAAA;AAAA,MACA,CAAA,CACE;AAAA,IACI,CAAA,CAAA;AAAA;AACT,CAAA,GAWF,IAAA,CAA6B,EAAE,MAAA,GAAM,WAAA,EAAA,MACzC,gBAAA,EAAC,GAAD;AAAA,EAAO,IAAI;AAAA,IAAE,GAAG;AAAA,IAAI,SAAS;AAAA,EAAmB;AAAA,EAAhD,UAAA;AAAA,IACE,gBAAA,EAAC,GAAD;AAAA,MAAO,IAAI;AAAA,QAAE,KAAK;AAAA,QAAI,IAAI;AAAA,MAAG;AAAA,MAA7B,UAAA,CACE,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DrillDown.es.js","names":[],"sources":["../../../src/insights-v2/components/ConnectionDetailDrillDown.tsx"],"sourcesContent":["import Card from '@mui/material/Card'\nimport CardContent from '@mui/material/CardContent'\nimport IconButton from '@mui/material/IconButton'\nimport Stack from '@mui/material/Stack'\n\nimport { Icon } from '@mxenabled/mx-icons'\nimport { P, Text } from '@mxenabled/mxui'\n\ninterface InfoItemProps {\n icon: React.ReactNode\n title: string\n description: string\n}\n\nexport interface ConnectionDetailItem {\n content: string\n icon_name: string\n title: string\n}\n\n/** Resolved strings the drilldown renders (see ConnectionDetailActionBlock). */\nexport interface ConnectionDetailContent {\n aria_label_thumbs_down: string\n aria_label_thumbs_up: string\n benefits: string[]\n description: string\n footer_title: string\n header_text: string\n shared_info_description: string\n shared_info_header_text: string\n shared_info_items: ConnectionDetailItem[]\n}\n\ninterface ConnectionDetailDrillDownProps {\n copy: ConnectionDetailContent\n /** Thumbs response — `'yes'` (up) / `'no'` (down). */\n onRespond?: (response: 'yes' | 'no') => void\n}\n\nconst InfoItem = ({ icon, title, description }: InfoItemProps) => (\n <Card variant=\"outlined\">\n <CardContent sx={{ display: 'flex', gap: 12, '&:last-child': { pb: 16 } }}>\n {icon}\n <Stack sx={{ gap: 4 }}>\n <Text bold={true} variant=\"body1\">\n {title}\n </Text>\n <P sx={{ color: 'text.secondary', fontWeight: 400 }} variant=\"subtitle2\">\n {description}\n </P>\n </Stack>\n </CardContent>\n </Card>\n)\n\n/**\n * Insights-v2 copy of the V1 `insights/components/shared/ConnectionDetailDrillDown`:\n * the connection-details education panel (benefits, shared-info cards, and a\n * thumbs was-this-helpful footer).\n *\n * Unlike V1, this is drawer CONTENT only — the `connection_detail_block`\n * registry entry supplies the drawer and its title via ActionBlockLayer.\n */\nconst ConnectionDetailDrillDown = ({ copy, onRespond }: ConnectionDetailDrillDownProps) => (\n <Stack sx={{ p: 24, bgcolor: 'background.paper' }}>\n <Stack sx={{ gap: 16, pb: 16 }}>\n <Stack sx={{ gap: 4 }}>\n <P variant=\"h3\">{copy.header_text}</P>\n\n <P sx={{ fontWeight: 400, color: 'text.secondary' }} variant=\"subtitle2\">\n {copy.description}\n </P>\n </Stack>\n\n {/* Bullet points */}\n <Stack sx={{ gap: 12 }}>\n {copy.benefits.map((text, i) => (\n // Figma: the icon sits on the first line of text.\n <Stack key={i} sx={{ alignItems: 'flex-start', flexDirection: 'row', gap: 8 }}>\n <Icon color=\"success\" name=\"check_circle\" size={16} sx={{ mt: 2 }} />\n <P sx={{ color: 'text.secondary', fontWeight: 400 }} variant=\"subtitle2\">\n {text}\n </P>\n </Stack>\n ))}\n </Stack>\n </Stack>\n\n {/* Info section */}\n <Stack sx={{ gap: 4, py: 12 }}>\n <Text sx={{ fontWeight: 600 }} variant=\"body1\">\n {copy.shared_info_header_text}\n </Text>\n\n <P sx={{ color: 'text.secondary', lineHeight: '20px' }} variant=\"body2\">\n {copy.shared_info_description}\n </P>\n </Stack>\n\n {/* Cards */}\n <Stack sx={{ py: 16, gap: 24 }}>\n {copy.shared_info_items.map((item, index) => (\n <InfoItem\n description={item.content}\n icon={<Icon name={item.icon_name} size={24} sx={{ color: 'text.primary' }} />}\n key={index}\n title={item.title}\n />\n ))}\n </Stack>\n\n <Stack sx={{ py: 16, gap: 12, alignItems: 'center' }}>\n <Text bold={true}>{copy.footer_title}</Text>\n <Stack sx={{ flexDirection: 'row', alignItems: 'center', gap: 24 }}>\n <IconButton aria-label={copy.aria_label_thumbs_down} onClick={() => onRespond?.('no')}>\n <Icon color=\"secondary\" name=\"thumb_down\" size={24} />\n </IconButton>\n <IconButton aria-label={copy.aria_label_thumbs_up} onClick={() => onRespond?.('yes')}>\n <Icon color=\"secondary\" name=\"thumb_up\" size={24} />\n </IconButton>\n </Stack>\n </Stack>\n </Stack>\n)\n\nexport default ConnectionDetailDrillDown\n"],"mappings":";;;;;;;AAuCA,IAAM,IAAA,CAAY,EAAE,MAAA,GAAM,OAAA,GAAO,aAAA,EAAA,MAC/B,gBAAA,EAAC,GAAD;AA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A;AAAA,QAE5E,OAAO,EAAK;AAAA,MACb,GAFM,CAEN,CACF;AAAA,IACI,CAAA;AAAA,IAEP,gBAAA,EAAC,GAAD;AAAA,MAAO,IAAI;AAAA,QAAE,IAAI;AAAA,QAAI,KAAK;AAAA,QAAI,YAAY;AAAA,MAAS;AAAA,MAAnD,UAAA,CACE,gBAAA,EAAC,GAAD;AAAA,QAAM,MAAM;AAAA,QAAO,UAAA,EAAK;AAAA,MAAmB,CAAA,GAC3C,gBAAA,EAAC,GAAD;AAAA,QAAO,IAAI;AAAA,UAAE,eAAe;AAAA,UAAO,YAAY;AAAA,UAAU,KAAK;AAAA,QAAG;AAAA,QAAjE,UAAA,CACE,gBAAA,EAAC,GAAD;AAAA,UAAY,cAAY,EAAK;AAAA,UAAwB,SAAA,MAAe,IAAY,IAAI;AAAA,UAClF,UAAA,gBAAA,EAAC,GAAD;AAAA,YAAM,OAAM;AAAA,YAAY,MAAK;AAAA,YAAa,MAAM;AAAA,UAAK,CAAA;AAAA,QAC3C,CAAA,GACZ,gBAAA,EAAC,GAAD;AAAA,UAAY,cAAY,EAAK;AAAA,UAAsB,SAAA,MAAe,IAAY,KAAK;AAAA,UACjF,UAAA,gBAAA,EAAC,GAAD;AAAA,YAAM,OAAM;AAAA,YAAY,MAAK;AAAA,YAAW,MAAM;AAAA,UAAK,CAAA;AAAA,QACzC,CAAA,CACP;AAAA,MACF,CAAA,CAAA;AAAA;EACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "9.7.172",
3
+ "version": "9.7.173",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",