@mx-cartographer/experiences 9.7.132 → 9.7.134

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/core/types/Insights.d.ts +1 -0
  3. package/dist/core/types/Insights.es.js.map +1 -1
  4. package/dist/core/types/localization/InsightsFeedCopy.d.ts +17 -0
  5. package/dist/insights/components/insights/BillAmountNotStandard/BillAmountNotStandard.es.js +4 -4
  6. package/dist/insights/components/insights/BillAmountNotStandard/BillAmountNotStandardMUI.es.js +4 -4
  7. package/dist/insights/components/insights/MonthlySpendingComparisonV2/MonthlySpendingComparisonV2.es.js +4 -4
  8. package/dist/insights/components/insights/WeeklyNoSpendDays/WeeklyNoSpendDays.es.js +8 -8
  9. package/dist/insights/components/shared/Charts/EmptyBarChart.es.js +4 -4
  10. package/dist/insights/components/shared/ZeroState/LinedCardZeroState.es.js +4 -4
  11. package/dist/insights/index.es.js +84 -84
  12. package/dist/insights-v2/actionBlocks/QuizMerchantBlock/QuizMerchantBlock.d.ts +7 -0
  13. package/dist/insights-v2/actionBlocks/QuizMerchantBlock/QuizMerchantBlock.es.js +147 -0
  14. package/dist/insights-v2/actionBlocks/QuizMerchantBlock/QuizMerchantBlock.es.js.map +1 -0
  15. package/dist/insights-v2/actionBlocks/QuizMerchantBlock/index.d.ts +1 -0
  16. package/dist/insights-v2/blocks/ComponentBlocks/QuizBlock/QuizBlock.d.ts +6 -0
  17. package/dist/insights-v2/blocks/ComponentBlocks/QuizBlock/QuizBlock.es.js +220 -0
  18. package/dist/insights-v2/blocks/ComponentBlocks/QuizBlock/QuizBlock.es.js.map +1 -0
  19. package/dist/insights-v2/blocks/ComponentBlocks/QuizBlock/index.d.ts +1 -0
  20. package/dist/insights-v2/blocks/ComponentBlocks/QuizBlock/quiz.d.ts +39 -0
  21. package/dist/insights-v2/blocks/ComponentBlocks/QuizBlock/quiz.es.js +44 -0
  22. package/dist/insights-v2/blocks/ComponentBlocks/QuizBlock/quiz.es.js.map +1 -0
  23. package/dist/insights-v2/blocks/ComponentBlocks/index.d.ts +1 -0
  24. package/dist/insights-v2/components/shared/elevation.d.ts +2 -0
  25. package/dist/insights-v2/components/shared/elevation.es.js +3 -2
  26. package/dist/insights-v2/components/shared/elevation.es.js.map +1 -1
  27. package/dist/insights-v2/ctaActions/ctaConfig.es.js +41 -23
  28. package/dist/insights-v2/ctaActions/ctaConfig.es.js.map +1 -1
  29. package/dist/insights-v2/ctaActions/ctaHandlers.d.ts +2 -0
  30. package/dist/insights-v2/ctaActions/ctaHandlers.es.js +32 -20
  31. package/dist/insights-v2/ctaActions/ctaHandlers.es.js.map +1 -1
  32. package/dist/insights-v2/ctaActions/hostActions.d.ts +1 -1
  33. package/dist/insights-v2/ctaActions/hostActions.es.js.map +1 -1
  34. package/dist/insights-v2/index.es.js +79 -77
  35. package/dist/insights-v2/mappings/actionBlocksKey.d.ts +1 -0
  36. package/dist/insights-v2/mappings/actionBlocksKey.es.js +2 -1
  37. package/dist/insights-v2/mappings/actionBlocksKey.es.js.map +1 -1
  38. package/dist/insights-v2/mappings/blocks.es.js +122 -114
  39. package/dist/insights-v2/mappings/blocks.es.js.map +1 -1
  40. package/dist/recurringtransactions/components/RecurrenceRow.es.js +102 -92
  41. package/dist/recurringtransactions/components/RecurrenceRow.es.js.map +1 -1
  42. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## [9.7.134] - 11-11-2026
2
+
3
+ - **ADDED** - Insights 2.0 merchant quiz block and merchant spending drawer, with a zero state and loading state (MEW2-3474)
4
+
5
+ ## [9.7.133] - 11-11-2026
6
+
7
+ - **FIXED** - Long merchant and account names in Recurring Transactions rows truncate with an ellipsis instead of overlapping the amount or frequency label, on the dashboard tile and the full widget (MEW-4028)
8
+
1
9
  ## [9.7.132] - 11-11-2026
2
10
 
3
11
  - **FIXED** - The step chart's milestones and the emergency savings drawer's goal label use a thousands separator ($1,000), as the goal box beside them does, and a bar's screen-reader amount matches its visible one; every Insights V2 amount uses one of two named currency formats (WEC-2259)
@@ -268,6 +268,7 @@ export declare const BlockType: {
268
268
  readonly GasPurchaseBlock: "gas_purchase_block";
269
269
  readonly GoalsBlock: "goals_block";
270
270
  readonly NoSpendDaysBlock: "no_spend_days_block";
271
+ readonly QuizBlock: "quiz_block";
271
272
  readonly RepeatingTransactionBlock: "repeating_transaction_block";
272
273
  readonly SaveExtraBlock: "save_extra_block";
273
274
  readonly SavingsAmountBlock: "savings_amount_block";
@@ -1 +1 @@
1
- {"version":3,"file":"Insights.es.js","names":[],"sources":["../../../src/core/types/Insights.ts"],"sourcesContent":["// ============ Core InsightsV2 Types ============\n\nimport { InsightsInstanceSlotData } from './InsightsInstanceSlotData'\n\nexport interface ThemedSVGImageProps {\n divProps?: React.HTMLAttributes<HTMLDivElement>\n image: React.ComponentType<React.SVGProps<SVGSVGElement>>\n isMini?: boolean\n}\n\n/**\n * Emitted by a block when the user drills into a specific datum (e.g. clicks a\n * chart bar). Named fields rather than positional args so blocks with differing\n * shapes can extend this without the call sites transposing values.\n */\nexport interface DrilldownPayload {\n chartBarIndex: number\n tabIndex?: number\n transaction_guid?: string\n block?: string\n}\n\n/**\n * Which envelope a beat was fetched with. `embedded` (the transaction-row pill + details-drawer\n * card) and `notification` are V2 additions; a surface asks for one with `widget_type=` on the fetch.\n */\nexport type WidgetType = 'full' | 'mini' | 'micro' | 'embedded' | 'notification'\n\n/**\n * V2: the transaction-row tag, its own small section of the `embedded` envelope (the same grammar\n * as `description` / `footer`, with room for a tone or an icon later). Omitted for an insight that\n * tags no transaction row. It deliberately is *not* `short_title`, which stays a per-variant\n * attribute with a second consumer (the bank-holiday sub-header).\n */\nexport interface Pill {\n text: string\n}\n\n/**\n * V2: facts a drilldown shows that the card does not. On the payload: what every CTA of the card\n * shares (e.g. the account number for the Transaction Details drawer, or the guid list a list drawer\n * shows, `transaction_guids`). On a CTA: the figures that CTA's own drilldown renders (the Transaction\n * List summary header's `amount`, `start_date` / `end_date` and `count`, see `readSummary`). Scalars\n * or string lists, omitted when the insight has none. Never carries copy or user actions (memo,\n * tags, hide, flag come from the transaction store). Values come from the server, so a reader still\n * checks each value's runtime shape.\n */\nexport type DrilldownData = Record<string, string | number | boolean | null | string[]>\n\nexport interface InsightsPayload {\n widget_type: WidgetType\n instance_slot: InstanceSlot\n /**\n * V1 only. The v2 contract carries everything a block needs on `instance_slot.data`,\n * and omits this key entirely (see the LargeTransactionV2 payload). Blocks that still require it\n * get it as a required field through `BlockProps`, which re-declares it.\n */\n instance_slot_data?: InsightsInstanceSlotData\n description: Description\n primary_cta?: PrimaryCTA\n secondary_cta?: SecondaryCTA\n title?: string\n sub_title?: Subtitle\n /**\n * V2 rename of `sub_title`: a flat string, with the logo promoted to the payload-level `logo`\n * field below. `sub_title` wins when both are present.\n */\n subtitle?: string\n /** V2: header logo paired with the flat `subtitle`: an entity guid or a status icon (`LogoRef`). */\n logo?: LogoRef\n /** V2: which design branch the backend picked (e.g. `no_merchant`). */\n variant?: string\n /** V2, `embedded` envelope only: the transaction-row pill. */\n pill?: Pill\n /**\n * V2: drilldown-only facts, e.g. `{ account_number: 'XXXXXXXX043' }`, or the guid list a list\n * drawer shows (`{ transaction_guids: [...] }`).\n */\n drilldown_data?: DrilldownData\n footer?: Footer\n /**\n * V2: the link inside the description: on the full card a drawer of its own (Low Account\n * Balance's \"Transactions ›\"); on mini and micro the card's action, sent instead of `primary_cta`.\n * Absent when the beat has no link.\n */\n in_description_cta?: InDescriptionCTA\n guid: string\n user_guid: string\n client_guid?: string\n /** Template name, e.g. `LargeTransactionV2`. */\n template?: string\n revision?: number\n /** Unix seconds. */\n created_at?: number\n /** Unix seconds. */\n updated_at?: number\n /** Unix seconds. */\n active_at?: number\n displayed_at?: number | null\n dismissed_at: number | null\n cta_clicked_at?: number | null\n has_been_displayed?: boolean\n is_dismissed: boolean\n is_deleted?: boolean\n is_hidden_by_system?: boolean\n is_obsolete?: boolean\n is_refreshable?: boolean\n is_sampled?: boolean\n is_zero_state?: boolean\n status?: string | null\n /**\n * V2 (LargeTransactionV2 onward): the entities the beat is about, carried on the payload so\n * action blocks do not have to reach back out to the beat envelope.\n */\n primary_account_guid?: string | null\n primary_transaction_guid?: string | null\n primary_category_guid?: string | null\n primary_merchant_guid?: string | null\n /**\n * V2: the repeating transaction a subscription beat is about (Upcoming Subscription, Subscription\n * Price Increase). Read by `recurring_transaction_block`, see\n * `actionBlocks/RecurringTransactionBlock/subscriptionBeats.ts`.\n */\n primary_repeating_transaction_guid?: string | null\n}\n\nexport interface Legends {\n label: string\n value: number\n additional_value?: number\n additional_value_type?: string\n value_type?: string\n}\n\nexport interface Logo {\n category_guid?: string\n category_name?: string\n institution_guid?: string\n institution_name?: string\n logo_color?: string\n /** Draw the `logo_name` icon filled (V2 `ICO-` logos). */\n logo_fill?: boolean\n logo_name?: string\n merchant_guid?: string\n merchant_name?: string\n}\n\nexport interface Subtitle {\n logo?: Logo\n text: string\n}\n\n/**\n * A V2 logo, shared by the header (`InsightsPayload.logo`) and every instance-slot row. It takes\n * one of two shapes:\n *\n * - **Entity**: `guid`, whose prefix (`INS-` / `MCH-` / `CAT-`) picks the logo component, plus an\n * optional `fallback_guid` for when that component's asset cannot load. Today that is the\n * category behind an `MCH-` guid, which `MerchantLogo` shows as a tile when the merchant image\n * is missing.\n * - **Status icon**: `icon` (an mx-icons name, e.g. `warning`) and `color` (a theme palette path,\n * e.g. `error.main`), for subheaders that show a state rather than an entity (V1's\n * `logo_name` / `logo_color`).\n *\n * `alt` is the accessible name for either shape. A logo sends one shape; if it sends both, `icon`\n * wins, as `logo_name` does in V1's `SubHeader`.\n */\nexport interface LogoRef {\n alt?: string\n color?: string\n fallback_guid?: string\n guid?: string\n icon?: string\n}\n\nexport interface CategoryLogo {\n category_guid: string\n category_name: string\n}\n\nexport interface MerchantLogo {\n merchant_guid: string\n merchant_name: string\n}\n\nexport interface InstitutionLogo {\n institution_guid: string\n institution_name: string\n}\n\nexport interface Description {\n text: string\n html_text: string\n}\n\n/**\n * Post message a CTA press sends to the host, resolved by the backend for the beat's current\n * state. Absent/null = the backend has not described one: the frontend uses the template's\n * interim `ctaPostMessages` entry if there is one, else sends no message. `payload` carries only\n * beat-specific extras; the frontend always adds `beat_guid`, `beat_template`, `user_guid` and\n * `action_string`.\n */\nexport interface CtaPostMessageMetadata {\n /** Post message event; defaults to `beat/cta`. */\n event?: string | null\n /** Operation the host should perform, e.g. `op_1`, `op_2`, `op_3`. Defaults to `op_1`. */\n action?: string | null\n /** Beat-specific fields merged into the message metadata (account ids, amounts, ...). */\n payload?: Record<string, unknown> | null\n}\n\nexport interface PrimaryCTA {\n label: string\n block: string\n variant?: string | null\n /**\n * What pressing the CTA does beyond opening its block, named by the backend (ditto\n * `primary_cta_action`, passed through by tupac). Looked up in `insights-v2/ctaActions`;\n * null / absent / unknown means the CTA only opens its block or posts its message.\n */\n action_key?: string | null\n metadata?: CtaPostMessageMetadata | null\n /** Figures this CTA's drilldown renders (e.g. a summary header's amount/dates/count). */\n drilldown_data?: DrilldownData\n}\n\nexport interface SecondaryCTA {\n label: string\n /**\n * Drawer block to open. `null` when the CTA opens nothing (ditto `secondary_cta_block: null`,\n * e.g. Fee Detected's \"Contact Support\"): the press posts its message to the host instead.\n */\n block: string | null\n variant?: string | null\n /** See `PrimaryCTA.action_key` (ditto `secondary_cta_action`). */\n action_key?: string | null\n metadata?: CtaPostMessageMetadata | null\n /** Figures this CTA's drilldown renders (e.g. a summary header's amount/dates/count). */\n drilldown_data?: DrilldownData\n}\n\n/**\n * The description link: its label, the action block it opens and, like a CTA's, the variant that\n * tells that block what to show (ditto's `in_description_cta_variant`, e.g. `low_balance`). On mini\n * and micro it words the card's action; `block` is empty when that action opens no drawer.\n */\nexport interface InDescriptionCTA {\n label: string\n block?: string\n variant?: string | null\n action_key?: string | null\n /** tupac's flat host message for the link (`action` plus fields), e.g. Switch's op_1. */\n post_message_metadata?: ({ action?: string | null } & Record<string, unknown>) | null\n /** Figures this CTA's drilldown renders (e.g. a summary header's amount/dates/count). */\n drilldown_data?: DrilldownData\n}\n\nexport interface Footer {\n /** V1: a pre-formatted date string. */\n date?: string\n /**\n * The account label, on both V1 and V2. The backend resolves the plurality: one account sends\n * its name (e.g. `Epic Bank`), several send a localized count (e.g. `2 Accounts`), none sends\n * `null` (tupac's `footer_account_label` returns nil for a beat with no accounts, as Payday Cash\n * Left Over Status does). There is deliberately no separate `accounts` key.\n */\n account?: string | null\n /**\n * V2 (LargeTransactionV2 onward): unix seconds, formatted by `Footer` for display.\n * Replaces `date`; `date` wins when a beat somehow sends both.\n */\n timestamp?: number\n}\n\n// ============ Instance Slot Types ============\n// Values are the snake_case block names the backend sends on a beat's instance slot; the PascalCase\n// keys stay as friendly references (e.g. BlockType.BarChartBlock === 'bar_chart_block').\nexport const BlockType = {\n AccountBlock: 'account_block',\n AccountSwitchBlock: 'account_switch_block',\n BarChartBlock: 'bar_chart_block',\n BudgetBlock: 'budget_block',\n DirectDepositBlock: 'direct_deposit_block',\n ImageBlock: 'image_block',\n MerchantBlock: 'merchant_block',\n TransactionBlock: 'transaction_block',\n DonutChartBlock: 'donut_chart_block',\n DoubleBarChartBlock: 'double_bar_chart_block',\n DoubleProgressBarBlock: 'double_progress_bar_block',\n DebtsBlock: 'debts_block',\n GasPurchaseBlock: 'gas_purchase_block',\n GoalsBlock: 'goals_block',\n NoSpendDaysBlock: 'no_spend_days_block',\n RepeatingTransactionBlock: 'repeating_transaction_block',\n SaveExtraBlock: 'save_extra_block',\n SavingsAmountBlock: 'savings_amount_block',\n SavingsSummaryBlock: 'savings_summary_block',\n StepChartBlock: 'step_chart_block',\n SVGImageBlock: 'svg_image_block',\n UpcomingBillBlock: 'upcoming_bill_block',\n UpcomingSubscriptionBlock: 'upcoming_subscription_block',\n WeeklySmallPurchasesBlock: 'weekly_small_purchases_block',\n WithdrawalBlock: 'withdrawal_block',\n} as const\n\nexport type BlockType = (typeof BlockType)[keyof typeof BlockType]\n\n/**\n * A pre-localized row on a V2 instance slot. The backend resolves the copy and formatting; the\n * logo is a `LogoRef` (an entity guid or a status icon, see `logoFromRef`).\n */\nexport interface InstanceSlotRow {\n amount?: number\n logo?: LogoRef\n primary_text?: string\n secondary_text?: string\n}\n\n/**\n * V2: the slots a block's variant filled, keyed by slot name; ditto owns the names and omits any\n * slot it has no value for (`lib/ditto/blocks/<block>.yml`). Read with `slot()`, which names the\n * kind the caller expects.\n */\nexport interface InstanceSlotData {\n [slot: string]: unknown\n}\n\n/**\n * Reads one slot off a block's `data`; undefined when ditto did not fill it.\n *\n * The caller names the kind, because the slot's kind lives in the block's ditto schema and not\n * here — a block fills slots with whatever its card needs, so no fixed list of kinds would hold\n * (`account_switch_block` alone carries a boolean and `budget_block` a nested object).\n */\nexport const slot = <T = unknown>(\n data: InstanceSlotData | undefined,\n name: string,\n): T | undefined => data?.[name] as T | undefined\n\n/**\n * V2: which block renders this beat's content, and what it renders.\n *\n * `block` is optional: a beat whose template has no ditto config arrives as an empty `{}` and the\n * card renders its copy and CTAs alone, so a reader cannot assume a block is named. One interface\n * with `block` optional rather than a union with `Record<string, never>`, which TypeScript absorbs\n * — that union left `block` reading as required and typed a promise it did not keep.\n *\n * `variant` is optional for the same reason — the empty `{}` carries neither. Every ditto beat\n * file that names a block also names a variant, so a *filled* slot always has one; ditto drops a\n * nil variant rather than sending null, which is why the type is `string | null | undefined`.\n */\nexport interface InstanceSlot {\n block?: BlockType\n variant?: string | null\n /** The slots this block's variant declares in ditto. */\n data?: InstanceSlotData\n // Direct Deposit block (Set Up Direct Deposit, Switch Direct Deposit, Missing\n // Interest Rate): account facts carried flat on the slot, beside `data`.\n /** Primary line on the hero card, e.g. \"Epic Bank Checking, *1234\". */\n account_name?: string\n /** Secondary line beneath the name, e.g. \"Checking Account\" / \"Credit Card\". */\n account_type?: string\n /** Status pill label, e.g. \"Direct Deposit Not Set Up\" / \"Interest Rate: 19.99% APR\". */\n status_text?: string\n institution_guid?: string\n institution_name?: string\n // Shared across multiple V2 component blocks:\n // `amount` — UpcomingBillBlock (projected bill), UpcomingSubscriptionBlock (price per cadence).\n // (SavingsOpportunityBlock now reads `amount` off `instance_slot.data`, not this flat field.)\n // `merchant_guid` / `merchant_name` — UpcomingBillBlock (bill row logo + name),\n // UpcomingSubscriptionBlock (hero logo + name).\n /** Dollar amount (unformatted); the block formats it as currency. */\n amount?: number\n // Withdrawal block (Emergency Fund Withdrawal): one row flat on the slot - `amount` above is the\n // withdrawal, shown with its date line \"{amount_label} {withdrawal_date}\" over the balance row.\n /** Pre-localized lead-in for the date line, e.g. \"Withdrawn on\". */\n amount_label?: string\n /** The withdrawal's calendar day, `YYYY-MM-DD` (e.g. `2026-10-20`); the card formats it. */\n withdrawal_date?: string\n /** Account balance after the withdrawal (unformatted); the card formats it as currency. */\n balance?: number\n /** Pre-localized label for the balance row, e.g. \"Balance\". */\n balance_label?: string\n /** Merchant guid used to render the inline / hero logo via `LogoFromGuid` (`MCH-...`). */\n merchant_guid?: string\n /** Merchant display name — shown as logo alt text and as the merchant/hero label. */\n merchant_name?: string\n // Upcoming Bill block (Projected Bill Payment): the block derives the Sun→Sat week strip\n // around `due_date` at render time.\n /** Due date of the projected bill in ISO form (e.g. `2025-10-30`). */\n due_date?: string\n // Account block (confetti tile): V1 flat fallback for the label line when `instance_slot.data` is\n // absent — `AccountBlock` reads `data.sub_text` first, then this. (The Savings Opportunity coupon\n // now reads `primary_text`/`amount` off `data`, so it no longer reads this flat field.)\n /** Caption/label line for the confetti tile (V1 fallback). */\n label?: string\n // Upcoming Subscription block: billing cadence for the price pill (`${amount} / ${cadence}`).\n /** Billing cadence word that trails the price, e.g. `month` or `year`. */\n cadence?: string\n // Account block (status on/off-track, deposit, payoff variants): card content carried flat on\n // the slot (the V2 contract drops `instance_slot_data`). `amount`, `label`, `merchant_guid`,\n // `merchant_name`, `institution_guid`, `institution_name` are shared fields declared above.\n /** Secondary line beneath the amount on the standard card, e.g. \"Remaining after expenses\". */\n sub_text?: string\n /** Header bar text (standard card) or the colored category strip label (deposit cards). */\n header_text?: string\n /** Generic-tile icon name used when no merchant/institution logo is available. */\n icon_name?: string\n /** Category guid used to render the deposit-card logo fallback. */\n category_guid?: string\n // Debts block: `amount` is the current balance; the shared account/institution fields above.\n /** Projected payoff date in ISO form (e.g. `2027-03-01`); the block formats it as month + year. */\n payoff_date?: string\n /** Monthly payment toward the debt (unformatted); the block formats it as currency. */\n monthly_payment?: number\n /** Annual interest rate as a percentage (e.g. `19.99`); the block formats it as a percent. */\n interest_rate?: number\n start_date?: string\n no_spend_days?: string[]\n /** First day of the month a monthly summary covers, in ISO form (e.g. `2026-09-01`). */\n date?: string\n /** Number of gas station visits in the month. */\n total_fill_up_visits?: number\n /** Amount spent at gas stations in the month, unformatted. */\n total_spend?: number\n /** V1 name for `total_spend`, read when `total_spend` is absent. */\n total_debt_for_fill_up_visits_in_prev_month?: number\n /** Total available balance across the user's accounts, unformatted. */\n available_balance?: number\n /** Average monthly spend, unformatted. */\n avg_monthly_spend?: number\n /** How long the balance lasts, e.g. \"2 months, 11 days\". */\n time_period?: string\n /** One row per unique merchant in the period, in the order sent. */\n data_series?: InstanceSlotRow[]\n}\n"],"mappings":"AA8UA,IAAa,IAAA,CACX,GACA,MACkB,IAAO,CAAA"}
1
+ {"version":3,"file":"Insights.es.js","names":[],"sources":["../../../src/core/types/Insights.ts"],"sourcesContent":["// ============ Core InsightsV2 Types ============\n\nimport { InsightsInstanceSlotData } from './InsightsInstanceSlotData'\n\nexport interface ThemedSVGImageProps {\n divProps?: React.HTMLAttributes<HTMLDivElement>\n image: React.ComponentType<React.SVGProps<SVGSVGElement>>\n isMini?: boolean\n}\n\n/**\n * Emitted by a block when the user drills into a specific datum (e.g. clicks a\n * chart bar). Named fields rather than positional args so blocks with differing\n * shapes can extend this without the call sites transposing values.\n */\nexport interface DrilldownPayload {\n chartBarIndex: number\n tabIndex?: number\n transaction_guid?: string\n block?: string\n}\n\n/**\n * Which envelope a beat was fetched with. `embedded` (the transaction-row pill + details-drawer\n * card) and `notification` are V2 additions; a surface asks for one with `widget_type=` on the fetch.\n */\nexport type WidgetType = 'full' | 'mini' | 'micro' | 'embedded' | 'notification'\n\n/**\n * V2: the transaction-row tag, its own small section of the `embedded` envelope (the same grammar\n * as `description` / `footer`, with room for a tone or an icon later). Omitted for an insight that\n * tags no transaction row. It deliberately is *not* `short_title`, which stays a per-variant\n * attribute with a second consumer (the bank-holiday sub-header).\n */\nexport interface Pill {\n text: string\n}\n\n/**\n * V2: facts a drilldown shows that the card does not. On the payload: what every CTA of the card\n * shares (e.g. the account number for the Transaction Details drawer, or the guid list a list drawer\n * shows, `transaction_guids`). On a CTA: the figures that CTA's own drilldown renders (the Transaction\n * List summary header's `amount`, `start_date` / `end_date` and `count`, see `readSummary`). Scalars\n * or string lists, omitted when the insight has none. Never carries copy or user actions (memo,\n * tags, hide, flag come from the transaction store). Values come from the server, so a reader still\n * checks each value's runtime shape.\n */\nexport type DrilldownData = Record<string, string | number | boolean | null | string[]>\n\nexport interface InsightsPayload {\n widget_type: WidgetType\n instance_slot: InstanceSlot\n /**\n * V1 only. The v2 contract carries everything a block needs on `instance_slot.data`,\n * and omits this key entirely (see the LargeTransactionV2 payload). Blocks that still require it\n * get it as a required field through `BlockProps`, which re-declares it.\n */\n instance_slot_data?: InsightsInstanceSlotData\n description: Description\n primary_cta?: PrimaryCTA\n secondary_cta?: SecondaryCTA\n title?: string\n sub_title?: Subtitle\n /**\n * V2 rename of `sub_title`: a flat string, with the logo promoted to the payload-level `logo`\n * field below. `sub_title` wins when both are present.\n */\n subtitle?: string\n /** V2: header logo paired with the flat `subtitle`: an entity guid or a status icon (`LogoRef`). */\n logo?: LogoRef\n /** V2: which design branch the backend picked (e.g. `no_merchant`). */\n variant?: string\n /** V2, `embedded` envelope only: the transaction-row pill. */\n pill?: Pill\n /**\n * V2: drilldown-only facts, e.g. `{ account_number: 'XXXXXXXX043' }`, or the guid list a list\n * drawer shows (`{ transaction_guids: [...] }`).\n */\n drilldown_data?: DrilldownData\n footer?: Footer\n /**\n * V2: the link inside the description: on the full card a drawer of its own (Low Account\n * Balance's \"Transactions ›\"); on mini and micro the card's action, sent instead of `primary_cta`.\n * Absent when the beat has no link.\n */\n in_description_cta?: InDescriptionCTA\n guid: string\n user_guid: string\n client_guid?: string\n /** Template name, e.g. `LargeTransactionV2`. */\n template?: string\n revision?: number\n /** Unix seconds. */\n created_at?: number\n /** Unix seconds. */\n updated_at?: number\n /** Unix seconds. */\n active_at?: number\n displayed_at?: number | null\n dismissed_at: number | null\n cta_clicked_at?: number | null\n has_been_displayed?: boolean\n is_dismissed: boolean\n is_deleted?: boolean\n is_hidden_by_system?: boolean\n is_obsolete?: boolean\n is_refreshable?: boolean\n is_sampled?: boolean\n is_zero_state?: boolean\n status?: string | null\n /**\n * V2 (LargeTransactionV2 onward): the entities the beat is about, carried on the payload so\n * action blocks do not have to reach back out to the beat envelope.\n */\n primary_account_guid?: string | null\n primary_transaction_guid?: string | null\n primary_category_guid?: string | null\n primary_merchant_guid?: string | null\n /**\n * V2: the repeating transaction a subscription beat is about (Upcoming Subscription, Subscription\n * Price Increase). Read by `recurring_transaction_block`, see\n * `actionBlocks/RecurringTransactionBlock/subscriptionBeats.ts`.\n */\n primary_repeating_transaction_guid?: string | null\n}\n\nexport interface Legends {\n label: string\n value: number\n additional_value?: number\n additional_value_type?: string\n value_type?: string\n}\n\nexport interface Logo {\n category_guid?: string\n category_name?: string\n institution_guid?: string\n institution_name?: string\n logo_color?: string\n /** Draw the `logo_name` icon filled (V2 `ICO-` logos). */\n logo_fill?: boolean\n logo_name?: string\n merchant_guid?: string\n merchant_name?: string\n}\n\nexport interface Subtitle {\n logo?: Logo\n text: string\n}\n\n/**\n * A V2 logo, shared by the header (`InsightsPayload.logo`) and every instance-slot row. It takes\n * one of two shapes:\n *\n * - **Entity**: `guid`, whose prefix (`INS-` / `MCH-` / `CAT-`) picks the logo component, plus an\n * optional `fallback_guid` for when that component's asset cannot load. Today that is the\n * category behind an `MCH-` guid, which `MerchantLogo` shows as a tile when the merchant image\n * is missing.\n * - **Status icon**: `icon` (an mx-icons name, e.g. `warning`) and `color` (a theme palette path,\n * e.g. `error.main`), for subheaders that show a state rather than an entity (V1's\n * `logo_name` / `logo_color`).\n *\n * `alt` is the accessible name for either shape. A logo sends one shape; if it sends both, `icon`\n * wins, as `logo_name` does in V1's `SubHeader`.\n */\nexport interface LogoRef {\n alt?: string\n color?: string\n fallback_guid?: string\n guid?: string\n icon?: string\n}\n\nexport interface CategoryLogo {\n category_guid: string\n category_name: string\n}\n\nexport interface MerchantLogo {\n merchant_guid: string\n merchant_name: string\n}\n\nexport interface InstitutionLogo {\n institution_guid: string\n institution_name: string\n}\n\nexport interface Description {\n text: string\n html_text: string\n}\n\n/**\n * Post message a CTA press sends to the host, resolved by the backend for the beat's current\n * state. Absent/null = the backend has not described one: the frontend uses the template's\n * interim `ctaPostMessages` entry if there is one, else sends no message. `payload` carries only\n * beat-specific extras; the frontend always adds `beat_guid`, `beat_template`, `user_guid` and\n * `action_string`.\n */\nexport interface CtaPostMessageMetadata {\n /** Post message event; defaults to `beat/cta`. */\n event?: string | null\n /** Operation the host should perform, e.g. `op_1`, `op_2`, `op_3`. Defaults to `op_1`. */\n action?: string | null\n /** Beat-specific fields merged into the message metadata (account ids, amounts, ...). */\n payload?: Record<string, unknown> | null\n}\n\nexport interface PrimaryCTA {\n label: string\n block: string\n variant?: string | null\n /**\n * What pressing the CTA does beyond opening its block, named by the backend (ditto\n * `primary_cta_action`, passed through by tupac). Looked up in `insights-v2/ctaActions`;\n * null / absent / unknown means the CTA only opens its block or posts its message.\n */\n action_key?: string | null\n metadata?: CtaPostMessageMetadata | null\n /** Figures this CTA's drilldown renders (e.g. a summary header's amount/dates/count). */\n drilldown_data?: DrilldownData\n}\n\nexport interface SecondaryCTA {\n label: string\n /**\n * Drawer block to open. `null` when the CTA opens nothing (ditto `secondary_cta_block: null`,\n * e.g. Fee Detected's \"Contact Support\"): the press posts its message to the host instead.\n */\n block: string | null\n variant?: string | null\n /** See `PrimaryCTA.action_key` (ditto `secondary_cta_action`). */\n action_key?: string | null\n metadata?: CtaPostMessageMetadata | null\n /** Figures this CTA's drilldown renders (e.g. a summary header's amount/dates/count). */\n drilldown_data?: DrilldownData\n}\n\n/**\n * The description link: its label, the action block it opens and, like a CTA's, the variant that\n * tells that block what to show (ditto's `in_description_cta_variant`, e.g. `low_balance`). On mini\n * and micro it words the card's action; `block` is empty when that action opens no drawer.\n */\nexport interface InDescriptionCTA {\n label: string\n block?: string\n variant?: string | null\n action_key?: string | null\n /** tupac's flat host message for the link (`action` plus fields), e.g. Switch's op_1. */\n post_message_metadata?: ({ action?: string | null } & Record<string, unknown>) | null\n /** Figures this CTA's drilldown renders (e.g. a summary header's amount/dates/count). */\n drilldown_data?: DrilldownData\n}\n\nexport interface Footer {\n /** V1: a pre-formatted date string. */\n date?: string\n /**\n * The account label, on both V1 and V2. The backend resolves the plurality: one account sends\n * its name (e.g. `Epic Bank`), several send a localized count (e.g. `2 Accounts`), none sends\n * `null` (tupac's `footer_account_label` returns nil for a beat with no accounts, as Payday Cash\n * Left Over Status does). There is deliberately no separate `accounts` key.\n */\n account?: string | null\n /**\n * V2 (LargeTransactionV2 onward): unix seconds, formatted by `Footer` for display.\n * Replaces `date`; `date` wins when a beat somehow sends both.\n */\n timestamp?: number\n}\n\n// ============ Instance Slot Types ============\n// Values are the snake_case block names the backend sends on a beat's instance slot; the PascalCase\n// keys stay as friendly references (e.g. BlockType.BarChartBlock === 'bar_chart_block').\nexport const BlockType = {\n AccountBlock: 'account_block',\n AccountSwitchBlock: 'account_switch_block',\n BarChartBlock: 'bar_chart_block',\n BudgetBlock: 'budget_block',\n DirectDepositBlock: 'direct_deposit_block',\n ImageBlock: 'image_block',\n MerchantBlock: 'merchant_block',\n TransactionBlock: 'transaction_block',\n DonutChartBlock: 'donut_chart_block',\n DoubleBarChartBlock: 'double_bar_chart_block',\n DoubleProgressBarBlock: 'double_progress_bar_block',\n DebtsBlock: 'debts_block',\n GasPurchaseBlock: 'gas_purchase_block',\n GoalsBlock: 'goals_block',\n NoSpendDaysBlock: 'no_spend_days_block',\n QuizBlock: 'quiz_block',\n RepeatingTransactionBlock: 'repeating_transaction_block',\n SaveExtraBlock: 'save_extra_block',\n SavingsAmountBlock: 'savings_amount_block',\n SavingsSummaryBlock: 'savings_summary_block',\n StepChartBlock: 'step_chart_block',\n SVGImageBlock: 'svg_image_block',\n UpcomingBillBlock: 'upcoming_bill_block',\n UpcomingSubscriptionBlock: 'upcoming_subscription_block',\n WeeklySmallPurchasesBlock: 'weekly_small_purchases_block',\n WithdrawalBlock: 'withdrawal_block',\n} as const\n\nexport type BlockType = (typeof BlockType)[keyof typeof BlockType]\n\n/**\n * A pre-localized row on a V2 instance slot. The backend resolves the copy and formatting; the\n * logo is a `LogoRef` (an entity guid or a status icon, see `logoFromRef`).\n */\nexport interface InstanceSlotRow {\n amount?: number\n logo?: LogoRef\n primary_text?: string\n secondary_text?: string\n}\n\n/**\n * V2: the slots a block's variant filled, keyed by slot name; ditto owns the names and omits any\n * slot it has no value for (`lib/ditto/blocks/<block>.yml`). Read with `slot()`, which names the\n * kind the caller expects.\n */\nexport interface InstanceSlotData {\n [slot: string]: unknown\n}\n\n/**\n * Reads one slot off a block's `data`; undefined when ditto did not fill it.\n *\n * The caller names the kind, because the slot's kind lives in the block's ditto schema and not\n * here — a block fills slots with whatever its card needs, so no fixed list of kinds would hold\n * (`account_switch_block` alone carries a boolean and `budget_block` a nested object).\n */\nexport const slot = <T = unknown>(\n data: InstanceSlotData | undefined,\n name: string,\n): T | undefined => data?.[name] as T | undefined\n\n/**\n * V2: which block renders this beat's content, and what it renders.\n *\n * `block` is optional: a beat whose template has no ditto config arrives as an empty `{}` and the\n * card renders its copy and CTAs alone, so a reader cannot assume a block is named. One interface\n * with `block` optional rather than a union with `Record<string, never>`, which TypeScript absorbs\n * — that union left `block` reading as required and typed a promise it did not keep.\n *\n * `variant` is optional for the same reason — the empty `{}` carries neither. Every ditto beat\n * file that names a block also names a variant, so a *filled* slot always has one; ditto drops a\n * nil variant rather than sending null, which is why the type is `string | null | undefined`.\n */\nexport interface InstanceSlot {\n block?: BlockType\n variant?: string | null\n /** The slots this block's variant declares in ditto. */\n data?: InstanceSlotData\n // Direct Deposit block (Set Up Direct Deposit, Switch Direct Deposit, Missing\n // Interest Rate): account facts carried flat on the slot, beside `data`.\n /** Primary line on the hero card, e.g. \"Epic Bank Checking, *1234\". */\n account_name?: string\n /** Secondary line beneath the name, e.g. \"Checking Account\" / \"Credit Card\". */\n account_type?: string\n /** Status pill label, e.g. \"Direct Deposit Not Set Up\" / \"Interest Rate: 19.99% APR\". */\n status_text?: string\n institution_guid?: string\n institution_name?: string\n // Shared across multiple V2 component blocks:\n // `amount` — UpcomingBillBlock (projected bill), UpcomingSubscriptionBlock (price per cadence).\n // (SavingsOpportunityBlock now reads `amount` off `instance_slot.data`, not this flat field.)\n // `merchant_guid` / `merchant_name` — UpcomingBillBlock (bill row logo + name),\n // UpcomingSubscriptionBlock (hero logo + name).\n /** Dollar amount (unformatted); the block formats it as currency. */\n amount?: number\n // Withdrawal block (Emergency Fund Withdrawal): one row flat on the slot - `amount` above is the\n // withdrawal, shown with its date line \"{amount_label} {withdrawal_date}\" over the balance row.\n /** Pre-localized lead-in for the date line, e.g. \"Withdrawn on\". */\n amount_label?: string\n /** The withdrawal's calendar day, `YYYY-MM-DD` (e.g. `2026-10-20`); the card formats it. */\n withdrawal_date?: string\n /** Account balance after the withdrawal (unformatted); the card formats it as currency. */\n balance?: number\n /** Pre-localized label for the balance row, e.g. \"Balance\". */\n balance_label?: string\n /** Merchant guid used to render the inline / hero logo via `LogoFromGuid` (`MCH-...`). */\n merchant_guid?: string\n /** Merchant display name — shown as logo alt text and as the merchant/hero label. */\n merchant_name?: string\n // Upcoming Bill block (Projected Bill Payment): the block derives the Sun→Sat week strip\n // around `due_date` at render time.\n /** Due date of the projected bill in ISO form (e.g. `2025-10-30`). */\n due_date?: string\n // Account block (confetti tile): V1 flat fallback for the label line when `instance_slot.data` is\n // absent — `AccountBlock` reads `data.sub_text` first, then this. (The Savings Opportunity coupon\n // now reads `primary_text`/`amount` off `data`, so it no longer reads this flat field.)\n /** Caption/label line for the confetti tile (V1 fallback). */\n label?: string\n // Upcoming Subscription block: billing cadence for the price pill (`${amount} / ${cadence}`).\n /** Billing cadence word that trails the price, e.g. `month` or `year`. */\n cadence?: string\n // Account block (status on/off-track, deposit, payoff variants): card content carried flat on\n // the slot (the V2 contract drops `instance_slot_data`). `amount`, `label`, `merchant_guid`,\n // `merchant_name`, `institution_guid`, `institution_name` are shared fields declared above.\n /** Secondary line beneath the amount on the standard card, e.g. \"Remaining after expenses\". */\n sub_text?: string\n /** Header bar text (standard card) or the colored category strip label (deposit cards). */\n header_text?: string\n /** Generic-tile icon name used when no merchant/institution logo is available. */\n icon_name?: string\n /** Category guid used to render the deposit-card logo fallback. */\n category_guid?: string\n // Debts block: `amount` is the current balance; the shared account/institution fields above.\n /** Projected payoff date in ISO form (e.g. `2027-03-01`); the block formats it as month + year. */\n payoff_date?: string\n /** Monthly payment toward the debt (unformatted); the block formats it as currency. */\n monthly_payment?: number\n /** Annual interest rate as a percentage (e.g. `19.99`); the block formats it as a percent. */\n interest_rate?: number\n start_date?: string\n no_spend_days?: string[]\n /** First day of the month a monthly summary covers, in ISO form (e.g. `2026-09-01`). */\n date?: string\n /** Number of gas station visits in the month. */\n total_fill_up_visits?: number\n /** Amount spent at gas stations in the month, unformatted. */\n total_spend?: number\n /** V1 name for `total_spend`, read when `total_spend` is absent. */\n total_debt_for_fill_up_visits_in_prev_month?: number\n /** Total available balance across the user's accounts, unformatted. */\n available_balance?: number\n /** Average monthly spend, unformatted. */\n avg_monthly_spend?: number\n /** How long the balance lasts, e.g. \"2 months, 11 days\". */\n time_period?: string\n /** One row per unique merchant in the period, in the order sent. */\n data_series?: InstanceSlotRow[]\n}\n"],"mappings":"AA+UA,IAAa,IAAA,CACX,GACA,MACkB,IAAO,CAAA"}
@@ -422,6 +422,21 @@ export interface UpcomingSubscriptionBlockCopy {
422
422
  cadence_every_year?: string;
423
423
  cadence_twice_a_month?: string;
424
424
  }
425
+ /** The Monthly Top Transacted Merchant quiz card (`quiz_block`) and its merchant drawer (`quiz_merchant_block`). */
426
+ export interface QuizBlockCopy {
427
+ nailed_it: string;
428
+ not_quite: string;
429
+ /** `_1{count}`, e.g. "4 Transactions". */
430
+ transaction_count: string;
431
+ transaction_count_one: string;
432
+ /** `_1{rank}`, `_2{merchant}` and `_3{count}`: a result row's accessible name. */
433
+ rank_aria: string;
434
+ drawer_title: string;
435
+ /** `_1{rank}` and `_2{month}`, e.g. "#1 visited merchant in October". */
436
+ placement: string;
437
+ spent: string;
438
+ transactions: string;
439
+ }
425
440
  /** The Account List drawer (`account_list_block`). */
426
441
  export interface AccountListCopy {
427
442
  /** Drawer title. */
@@ -479,5 +494,7 @@ export interface InsightsFeedCopy {
479
494
  payoff_calculator?: PayoffCalculatorCopy;
480
495
  budget_details?: BudgetDetailsCopy;
481
496
  upcoming_subscription_block?: UpcomingSubscriptionBlockCopy;
497
+ /** Optional until the localized-content service ships the namespace. */
498
+ quiz_block?: QuizBlockCopy;
482
499
  }
483
500
  export {};
@@ -1,6 +1,6 @@
1
1
  import { ReactComponent as g } from "../../shared/images/EmptyBarChart.es.js";
2
- import { BarChart as h } from "../../shared/Charts/BarChart/BarChart.es.js";
3
- import { ThemedSVGImage as d } from "../../shared/ThemedSVGImage.es.js";
2
+ import { ThemedSVGImage as h } from "../../shared/ThemedSVGImage.es.js";
3
+ import { BarChart as d } from "../../shared/Charts/BarChart/BarChart.es.js";
4
4
  import { BeatCard as l } from "../../shared/InsightsCard/BeatCard.es.js";
5
5
  import { InsightButton as u } from "../../shared/InsightsCard/InsightButton.es.js";
6
6
  import "react";
@@ -12,7 +12,7 @@ var S = ({ amounts: i, beat: t, buttonProps: n, color: e, data: o, legendLabelAv
12
12
  ...n,
13
13
  beat: t
14
14
  }),
15
- children: o.length > 0 ? /* @__PURE__ */ r(h, {
15
+ children: o.length > 0 ? /* @__PURE__ */ r(d, {
16
16
  amounts: i,
17
17
  color: e,
18
18
  data: o,
@@ -26,7 +26,7 @@ var S = ({ amounts: i, beat: t, buttonProps: n, color: e, data: o, legendLabelAv
26
26
  top: 24
27
27
  },
28
28
  onBarClick: p
29
- }) : /* @__PURE__ */ r(d, { image: g })
29
+ }) : /* @__PURE__ */ r(h, { image: g })
30
30
  });
31
31
  export {
32
32
  S as BillAmountNotStandard
@@ -1,6 +1,6 @@
1
1
  import { ReactComponent as h } from "../../shared/images/EmptyBarChart.es.js";
2
- import { BarChartV2 as l } from "../../shared/Charts/BarChart/BarChartV2.es.js";
3
- import { ThemedSVGImage as d } from "../../shared/ThemedSVGImage.es.js";
2
+ import { ThemedSVGImage as l } from "../../shared/ThemedSVGImage.es.js";
3
+ import { BarChartV2 as d } from "../../shared/Charts/BarChart/BarChartV2.es.js";
4
4
  import { InsightButton as s } from "../../shared/InsightsCard/InsightButton.es.js";
5
5
  import { BeatCardMUI as u } from "../../shared/InsightsCard/BeatCardMUI.es.js";
6
6
  import "react";
@@ -12,7 +12,7 @@ var S = ({ amounts: m, beat: o, buttonProps: i, color: e, data: t, trendAmountLa
12
12
  ...i,
13
13
  beat: o
14
14
  }),
15
- children: t.length > 0 ? /* @__PURE__ */ r(l, {
15
+ children: t.length > 0 ? /* @__PURE__ */ r(d, {
16
16
  amounts: m,
17
17
  color: e,
18
18
  data: t,
@@ -26,7 +26,7 @@ var S = ({ amounts: m, beat: o, buttonProps: i, color: e, data: t, trendAmountLa
26
26
  onBarClick: p,
27
27
  selectedTabIndex: f,
28
28
  trendAmountLabel: n
29
- }) : /* @__PURE__ */ r(d, {
29
+ }) : /* @__PURE__ */ r(l, {
30
30
  divProps: { style: {
31
31
  marginLeft: 2,
32
32
  marginRight: 2
@@ -1,6 +1,6 @@
1
1
  import { ReactComponent as g } from "../../shared/images/EmptyBarChart.es.js";
2
- import { BarChart as h } from "../../shared/Charts/BarChart/BarChart.es.js";
3
- import { ThemedSVGImage as d } from "../../shared/ThemedSVGImage.es.js";
2
+ import { ThemedSVGImage as h } from "../../shared/ThemedSVGImage.es.js";
3
+ import { BarChart as d } from "../../shared/Charts/BarChart/BarChart.es.js";
4
4
  import { BeatCard as l } from "../../shared/InsightsCard/BeatCard.es.js";
5
5
  import { InsightButton as s } from "../../shared/InsightsCard/InsightButton.es.js";
6
6
  import "react";
@@ -12,7 +12,7 @@ var S = ({ amounts: i, beat: r, buttonProps: n, color: e, data: t, legendLabelAv
12
12
  ...n,
13
13
  beat: r
14
14
  }),
15
- children: t.length > 0 ? /* @__PURE__ */ o(h, {
15
+ children: t.length > 0 ? /* @__PURE__ */ o(d, {
16
16
  amounts: i,
17
17
  color: e,
18
18
  data: t,
@@ -26,7 +26,7 @@ var S = ({ amounts: i, beat: r, buttonProps: n, color: e, data: t, legendLabelAv
26
26
  top: 24
27
27
  },
28
28
  onBarClick: f
29
- }) : /* @__PURE__ */ o(d, { image: g })
29
+ }) : /* @__PURE__ */ o(h, { image: g })
30
30
  });
31
31
  export {
32
32
  S as MonthlySpendingComparisonV2
@@ -1,8 +1,8 @@
1
1
  import { useContainerDimensions as c } from "../../../hooks/useContainerDimensions.es.js";
2
- import { Confetti as h } from "../../shared/Confetti.es.js";
3
- import { BeatCard as u } from "../../shared/InsightsCard/BeatCard.es.js";
4
- import { InsightButton as y } from "../../shared/InsightsCard/InsightButton.es.js";
5
- import { LinedCardZeroState as g } from "../../shared/ZeroState/LinedCardZeroState.es.js";
2
+ import { LinedCardZeroState as h } from "../../shared/ZeroState/LinedCardZeroState.es.js";
3
+ import { Confetti as u } from "../../shared/Confetti.es.js";
4
+ import { BeatCard as y } from "../../shared/InsightsCard/BeatCard.es.js";
5
+ import { InsightButton as g } from "../../shared/InsightsCard/InsightButton.es.js";
6
6
  import { BubbleWeek as C } from "./BubbleWeek.es.js";
7
7
  import { Wallet as D } from "./NoSpendIcons.es.js";
8
8
  import k from "react";
@@ -10,14 +10,14 @@ import { jsx as t, jsxs as x } from "react/jsx-runtime";
10
10
  import { Stack as B } from "@mui/system";
11
11
  var N = ({ beat: o, buttonProps: n, isZeroState: i, displayData: m, ...s }) => {
12
12
  const { no_spend_days: e } = o.payload, { noSpendDays: a, daysOfTheWeek: l } = m, d = D[e.length || 0], r = k.useRef(null), { height: f, width: p } = c(r);
13
- return /* @__PURE__ */ t(u, {
13
+ return /* @__PURE__ */ t(y, {
14
14
  ...s,
15
15
  beat: o,
16
- button: /* @__PURE__ */ t(y, {
16
+ button: /* @__PURE__ */ t(g, {
17
17
  ...n,
18
18
  beat: o
19
19
  }),
20
- children: i ? /* @__PURE__ */ t(g, {}) : /* @__PURE__ */ x(B, {
20
+ children: i ? /* @__PURE__ */ t(h, {}) : /* @__PURE__ */ x(B, {
21
21
  ref: r,
22
22
  sx: {
23
23
  alignItems: "center",
@@ -31,7 +31,7 @@ var N = ({ beat: o, buttonProps: n, isZeroState: i, displayData: m, ...s }) => {
31
31
  src: d,
32
32
  width: 138
33
33
  }),
34
- e?.length >= 4 && /* @__PURE__ */ t(h, {
34
+ e?.length >= 4 && /* @__PURE__ */ t(u, {
35
35
  height: f,
36
36
  shouldRun: !0,
37
37
  width: p
@@ -1,10 +1,10 @@
1
- import { ReactComponent as r } from "../images/BarChartEmptyState.es.js";
2
- import { ThemedSVGImage as o } from "../ThemedSVGImage.es.js";
1
+ import { ThemedSVGImage as r } from "../ThemedSVGImage.es.js";
2
+ import { ReactComponent as o } from "../images/BarChartEmptyState.es.js";
3
3
  import { jsx as m } from "react/jsx-runtime";
4
4
  function p() {
5
- return /* @__PURE__ */ m(o, {
5
+ return /* @__PURE__ */ m(r, {
6
6
  divProps: { style: {} },
7
- image: r
7
+ image: o
8
8
  });
9
9
  }
10
10
  export {
@@ -1,5 +1,5 @@
1
- import { ThemedSVGImage as e } from "../ThemedSVGImage.es.js";
2
- import { ReactComponent as o } from "../images/LinedCardZeroState.es.js";
1
+ import { ReactComponent as e } from "../images/LinedCardZeroState.es.js";
2
+ import { ThemedSVGImage as o } from "../ThemedSVGImage.es.js";
3
3
  import t from "@mui/material/Stack";
4
4
  import { jsx as r } from "react/jsx-runtime";
5
5
  var m = {
@@ -11,9 +11,9 @@ var m = {
11
11
  flexDirection: "row",
12
12
  justifyContent: "center"
13
13
  },
14
- children: /* @__PURE__ */ r(e, {
14
+ children: /* @__PURE__ */ r(o, {
15
15
  divProps: { style: m },
16
- image: o
16
+ image: e
17
17
  })
18
18
  });
19
19
  export {
@@ -1,45 +1,45 @@
1
- import { BottomSheet as r } from "./components/shared/BottomSheet.es.js";
2
- import { ChartDrawerTemplate as i } from "./components/shared/ChartDrawerTemplate/ChartDrawerTemplate.es.js";
3
- import { BarChart as e } from "./components/shared/Charts/BarChart/BarChart.es.js";
4
- import { BarChartV2 as p } from "./components/shared/Charts/BarChart/BarChartV2.es.js";
5
- import { DoubleBarChart as f } from "./components/shared/Charts/BarChart/DoubleBarChart.es.js";
6
- import { DoubleBarChartMXUI as c } from "./components/shared/Charts/BarChart/DoubleBarChartMXUI.es.js";
7
- import { EmptyBarChart as C } from "./components/shared/Charts/EmptyBarChart.es.js";
8
- import D from "./components/shared/ChartTransactionWithDrillDown.es.js";
9
- import { Confetti as S } from "./components/shared/Confetti.es.js";
10
- import g from "./components/shared/ConnectionCard.es.js";
11
- import y from "./components/shared/Coupon.es.js";
12
- import T from "./components/shared/DiscoveredAccountsConnect.es.js";
13
- import { PulseProgressBar as b } from "./components/shared/ProgressBar.es.js";
14
- import { PulseGoalProgress as P } from "./components/shared/GoalProgress.es.js";
15
- import { PulseGraidentBox as I } from "./components/shared/GradientBox.es.js";
16
- import { MiniInsightCard as U } from "./components/shared/MiniInsightCard.es.js";
17
- import { MenuAction as H } from "./components/shared/MenuAction.es.js";
18
- import w from "./components/shared/P2P/P2PMultipleCategorization.es.js";
19
- import V from "./components/shared/SaveEnoughToLiveOnBottomSection.es.js";
20
- import z from "./components/shared/SaveEnoughToLiveOnTopSection.es.js";
21
- import W from "./components/shared/StatusIndicator.es.js";
22
- import R from "./components/shared/TransactionCard.es.js";
23
- import { DirectDeposit as X } from "./components/shared/DirectDeposit/DirectDeposit.es.js";
24
- import { DirectDepositSubHeader as q } from "./components/shared/DirectDeposit/DirectDepositSubHeader.es.js";
25
- import { FullFeedBodyHeader as K } from "./components/shared/DirectDeposit/FullFeedBodyHeader.es.js";
26
- import { LeftBox as Y } from "./components/shared/DirectDeposit/LeftBox.es.js";
27
- import { MiniBodyHeader as $ } from "./components/shared/DirectDeposit/MiniBodyHeader.es.js";
28
- import { RightBox as ro } from "./components/shared/DirectDeposit/RightBox.es.js";
29
- import { CardError as io } from "./components/shared/InsightsCard/CardError.es.js";
30
- import { CardHeader as eo } from "./components/shared/InsightsCard/CardHeader.es.js";
31
- import { CardLoading as po } from "./components/shared/InsightsCard/CardLoading.es.js";
32
- import { MiniDescription as fo } from "./components/shared/InsightsCard/MiniDescription.es.js";
33
- import { ContentAndDescription as so } from "./components/shared/InsightsCard/ContentAndDescription.es.js";
34
- import { BeatCard as lo } from "./components/shared/InsightsCard/BeatCard.es.js";
35
- import { CardButtonSection as uo } from "./components/shared/InsightsCard/CardButtonSection.es.js";
36
- import Bo from "./components/shared/InsightsCard/CardFooter.es.js";
37
- import ho from "./components/shared/InsightsCard/ClientConfigurableCta.es.js";
38
- import { Description as Mo } from "./components/shared/InsightsCard/Description.es.js";
39
- import { EmbeddedCard as vo } from "./components/shared/InsightsCard/EmbeddedCard.es.js";
40
- import { FeedbackCard as Ao } from "./components/shared/InsightsCard/FeedbackCard.es.js";
41
- import { InsightButton as Fo } from "./components/shared/InsightsCard/InsightButton.es.js";
42
- import { LinedCardZeroState as ko } from "./components/shared/ZeroState/LinedCardZeroState.es.js";
1
+ import { LinedCardZeroState as r } from "./components/shared/ZeroState/LinedCardZeroState.es.js";
2
+ import { BottomSheet as i } from "./components/shared/BottomSheet.es.js";
3
+ import { ChartDrawerTemplate as e } from "./components/shared/ChartDrawerTemplate/ChartDrawerTemplate.es.js";
4
+ import { BarChart as p } from "./components/shared/Charts/BarChart/BarChart.es.js";
5
+ import { BarChartV2 as f } from "./components/shared/Charts/BarChart/BarChartV2.es.js";
6
+ import { DoubleBarChart as c } from "./components/shared/Charts/BarChart/DoubleBarChart.es.js";
7
+ import { DoubleBarChartMXUI as C } from "./components/shared/Charts/BarChart/DoubleBarChartMXUI.es.js";
8
+ import { EmptyBarChart as D } from "./components/shared/Charts/EmptyBarChart.es.js";
9
+ import S from "./components/shared/ChartTransactionWithDrillDown.es.js";
10
+ import { Confetti as g } from "./components/shared/Confetti.es.js";
11
+ import y from "./components/shared/ConnectionCard.es.js";
12
+ import T from "./components/shared/Coupon.es.js";
13
+ import b from "./components/shared/DiscoveredAccountsConnect.es.js";
14
+ import { PulseProgressBar as P } from "./components/shared/ProgressBar.es.js";
15
+ import { PulseGoalProgress as I } from "./components/shared/GoalProgress.es.js";
16
+ import { PulseGraidentBox as U } from "./components/shared/GradientBox.es.js";
17
+ import { MiniInsightCard as H } from "./components/shared/MiniInsightCard.es.js";
18
+ import { MenuAction as w } from "./components/shared/MenuAction.es.js";
19
+ import V from "./components/shared/P2P/P2PMultipleCategorization.es.js";
20
+ import z from "./components/shared/SaveEnoughToLiveOnBottomSection.es.js";
21
+ import W from "./components/shared/SaveEnoughToLiveOnTopSection.es.js";
22
+ import R from "./components/shared/StatusIndicator.es.js";
23
+ import X from "./components/shared/TransactionCard.es.js";
24
+ import { DirectDeposit as q } from "./components/shared/DirectDeposit/DirectDeposit.es.js";
25
+ import { DirectDepositSubHeader as K } from "./components/shared/DirectDeposit/DirectDepositSubHeader.es.js";
26
+ import { FullFeedBodyHeader as Y } from "./components/shared/DirectDeposit/FullFeedBodyHeader.es.js";
27
+ import { LeftBox as $ } from "./components/shared/DirectDeposit/LeftBox.es.js";
28
+ import { MiniBodyHeader as ro } from "./components/shared/DirectDeposit/MiniBodyHeader.es.js";
29
+ import { RightBox as io } from "./components/shared/DirectDeposit/RightBox.es.js";
30
+ import { CardError as eo } from "./components/shared/InsightsCard/CardError.es.js";
31
+ import { CardHeader as po } from "./components/shared/InsightsCard/CardHeader.es.js";
32
+ import { CardLoading as fo } from "./components/shared/InsightsCard/CardLoading.es.js";
33
+ import { MiniDescription as so } from "./components/shared/InsightsCard/MiniDescription.es.js";
34
+ import { ContentAndDescription as lo } from "./components/shared/InsightsCard/ContentAndDescription.es.js";
35
+ import { BeatCard as uo } from "./components/shared/InsightsCard/BeatCard.es.js";
36
+ import { CardButtonSection as Bo } from "./components/shared/InsightsCard/CardButtonSection.es.js";
37
+ import ho from "./components/shared/InsightsCard/CardFooter.es.js";
38
+ import Mo from "./components/shared/InsightsCard/ClientConfigurableCta.es.js";
39
+ import { Description as vo } from "./components/shared/InsightsCard/Description.es.js";
40
+ import { EmbeddedCard as Ao } from "./components/shared/InsightsCard/EmbeddedCard.es.js";
41
+ import { FeedbackCard as Fo } from "./components/shared/InsightsCard/FeedbackCard.es.js";
42
+ import { InsightButton as ko } from "./components/shared/InsightsCard/InsightButton.es.js";
43
43
  import { ErrorCard as Eo } from "./components/shared/ErrorCard/ErrorCard.es.js";
44
44
  import { FeedbackHeader as Lo } from "./components/shared/GenericFeedback/FeedbackHeader.es.js";
45
45
  import { FeedbackButtons as xo } from "./components/shared/GenericFeedback/FeedbackButtons.es.js";
@@ -94,64 +94,64 @@ export {
94
94
  ot as AccountBox,
95
95
  jo as AccountDiscoverability,
96
96
  Zo as AmericanUpcomingTaxDeadlineAlert,
97
- e as BarChart,
98
- p as BarChartV2,
99
- lo as BeatCard,
97
+ p as BarChart,
98
+ f as BarChartV2,
99
+ uo as BeatCard,
100
100
  ar as BeatCardMUI,
101
101
  Go as BeatFeedbackText,
102
102
  Jo as BillAmountNotStandard,
103
103
  Qo as BillAmountNotStandardMUI,
104
- r as BottomSheet,
105
- uo as CardButtonSection,
106
- io as CardError,
107
- Bo as CardFooter,
108
- eo as CardHeader,
104
+ i as BottomSheet,
105
+ Bo as CardButtonSection,
106
+ eo as CardError,
107
+ ho as CardFooter,
108
+ po as CardHeader,
109
109
  mr as CardHeaderMUI,
110
- po as CardLoading,
110
+ fo as CardLoading,
111
111
  or as CashBack,
112
112
  _o as CategoryBudget,
113
113
  tr as CategorySpendingV2,
114
114
  nr as CategorySpendingV2MUI,
115
115
  dr as CelebrateCreditCardPayoff,
116
- i as ChartDrawerTemplate,
117
- D as ChartTransactionWithDrillDown,
118
- ho as ClientConfigurableCta,
119
- S as Confetti,
120
- g as ConnectionCard,
121
- so as ContentAndDescription,
122
- y as Coupon,
116
+ e as ChartDrawerTemplate,
117
+ S as ChartTransactionWithDrillDown,
118
+ Mo as ClientConfigurableCta,
119
+ g as Confetti,
120
+ y as ConnectionCard,
121
+ lo as ContentAndDescription,
122
+ T as Coupon,
123
123
  sr as CustomTransaction,
124
- Mo as Description,
125
- X as DirectDeposit,
124
+ vo as Description,
125
+ q as DirectDeposit,
126
126
  lt as DirectDepositDeepLink,
127
- q as DirectDepositSubHeader,
127
+ K as DirectDepositSubHeader,
128
128
  ur as DiscoveredAccountsBody,
129
- T as DiscoveredAccountsConnect,
129
+ b as DiscoveredAccountsConnect,
130
130
  Br as DiscoveredAccountsLearnMoreDrawerContent,
131
131
  hr as DiscoveredAccountsMiniInsight,
132
- f as DoubleBarChart,
133
- c as DoubleBarChartMXUI,
132
+ c as DoubleBarChart,
133
+ C as DoubleBarChartMXUI,
134
134
  ht as DrillDownCalculation,
135
- vo as EmbeddedCard,
136
- C as EmptyBarChart,
135
+ Ao as EmbeddedCard,
136
+ D as EmptyBarChart,
137
137
  Eo as ErrorCard,
138
138
  Mr as FederalBankHoliday,
139
139
  vr as FederalBankHolidayMUI,
140
140
  xo as FeedbackButtons,
141
- Ao as FeedbackCard,
141
+ Fo as FeedbackCard,
142
142
  Oo as FeedbackDescription,
143
143
  Lo as FeedbackHeader,
144
144
  No as FeedbackOptions,
145
- K as FullFeedBodyHeader,
145
+ Y as FullFeedBodyHeader,
146
146
  ut as Header,
147
- Fo as InsightButton,
147
+ ko as InsightButton,
148
148
  Er as LastMonthsContributionSection,
149
- Y as LeftBox,
150
- ko as LinedCardZeroState,
151
- H as MenuAction,
152
- $ as MiniBodyHeader,
153
- fo as MiniDescription,
154
- U as MiniInsightCard,
149
+ $ as LeftBox,
150
+ r as LinedCardZeroState,
151
+ w as MenuAction,
152
+ ro as MiniBodyHeader,
153
+ so as MiniDescription,
154
+ H as MiniInsightCard,
155
155
  Fr as MonthlyDebtToIncomeComparisonV2,
156
156
  kr as MonthlyEmergencyFundReviewBody,
157
157
  Or as MonthlySavingsToIncomeComparison,
@@ -159,26 +159,26 @@ export {
159
159
  Nr as MonthlySpendingComparisonV2,
160
160
  Ar as Offer,
161
161
  Bt as P2PCategorizationSingleAccount,
162
- w as P2PMultipleCategorization,
162
+ V as P2PMultipleCategorization,
163
163
  jr as P2pCategorization,
164
164
  Zr as P2pCategorizationMultipleTransactions,
165
165
  Jr as P2pCategorizationSingleTransaction,
166
166
  Lr as ProjectedCompletionSection,
167
- P as PulseGoalProgress,
168
- I as PulseGraidentBox,
169
- b as PulseProgressBar,
170
- ro as RightBox,
167
+ I as PulseGoalProgress,
168
+ U as PulseGraidentBox,
169
+ P as PulseProgressBar,
170
+ io as RightBox,
171
171
  Tt as SaveAnExtra100,
172
- V as SaveEnoughToLiveOnBottomSection,
173
- z as SaveEnoughToLiveOnTopSection,
172
+ z as SaveEnoughToLiveOnBottomSection,
173
+ W as SaveEnoughToLiveOnTopSection,
174
174
  Qr as SavingsAccountBalancesSummary,
175
175
  _r as SetUpDirectDepositBody,
176
176
  lr as SharedDeposit,
177
- W as StatusIndicator,
177
+ R as StatusIndicator,
178
178
  mt as SwitchDirectDepositBody,
179
179
  tt as SwitchDirectDepositMainContainer,
180
180
  xr as TotalSavedSection,
181
- R as TransactionCard,
181
+ X as TransactionCard,
182
182
  at as TransparentOverdraftV2,
183
183
  nt as UnifiedDeposit,
184
184
  st as UserFeedback,
@@ -0,0 +1,7 @@
1
+ import { Beat } from '../../../core';
2
+ /** The drawer a quiz result row opens: the merchant's rank, totals and transactions. */
3
+ export declare const QuizMerchantBlock: (({ beat }: {
4
+ beat: Beat;
5
+ }) => import("react/jsx-runtime").JSX.Element | null) & {
6
+ displayName: string;
7
+ };