@mx-cartographer/experiences 9.7.197 → 9.7.199-alpha-moratorium
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 +11 -1
- package/dist/core/types/Insights.d.ts +1 -1
- package/dist/core/types/Insights.es.js.map +1 -1
- package/dist/core/types/localization/InsightsFeedCopy.d.ts +6 -0
- package/dist/insights/components/insights/BillAmountNotStandard/BillAmountNotStandard.es.js +4 -4
- package/dist/insights/components/insights/BillAmountNotStandard/BillAmountNotStandardMUI.es.js +4 -4
- package/dist/insights/components/insights/MonthlySpendingComparisonV2/MonthlySpendingComparisonV2.es.js +4 -4
- package/dist/insights/components/insights/WeeklyNoSpendDays/WeeklyNoSpendDays.es.js +8 -8
- package/dist/insights/components/shared/Charts/EmptyBarChart.es.js +4 -4
- package/dist/insights/components/shared/ZeroState/LinedCardZeroState.es.js +4 -4
- package/dist/insights/index.es.js +84 -84
- package/dist/insights-v2/actionBlocks/EmergencySavingsBlock/EmergencySavingsV2.es.js +17 -17
- package/dist/insights-v2/actionBlocks/EmergencySavingsBlock/EmergencySavingsV2.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/TopMerchantsBlock/TopMerchantsBlock.d.ts +1 -5
- package/dist/insights-v2/actionBlocks/TopMerchantsBlock/TopMerchantsBlock.es.js +37 -36
- package/dist/insights-v2/actionBlocks/TopMerchantsBlock/TopMerchantsBlock.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/TransactionDetailsBlock/layout.d.ts +9 -11
- package/dist/insights-v2/actionBlocks/TransactionDetailsBlock/layout.es.js +12 -6
- package/dist/insights-v2/actionBlocks/TransactionDetailsBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/layout.d.ts +1 -0
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/layout.es.js +216 -185
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/TransactionListBlock/TransactionListHeaderIconTile.d.ts +3 -1
- package/dist/insights-v2/actionBlocks/TransactionListBlock/TransactionListHeaderIconTile.es.js +12 -11
- package/dist/insights-v2/actionBlocks/TransactionListBlock/TransactionListHeaderIconTile.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/TransactionListBlock/TransactionListSummaryCard.d.ts +2 -2
- package/dist/insights-v2/actionBlocks/TransactionListBlock/TransactionListSummaryCard.es.js +13 -13
- package/dist/insights-v2/actionBlocks/TransactionListBlock/TransactionListSummaryCard.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/TransactionListBlock/layout.d.ts +10 -4
- package/dist/insights-v2/actionBlocks/TransactionListBlock/layout.es.js +78 -71
- package/dist/insights-v2/actionBlocks/TransactionListBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/variants/MilestoneProgress.d.ts +2 -4
- package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/variants/MilestoneProgress.es.js +78 -82
- package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/variants/MilestoneProgress.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/layout.es.js +30 -24
- package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/CompactDirectDepositBlock/CompactDirectDepositBlock.d.ts +7 -0
- package/dist/insights-v2/blocks/ComponentBlocks/CompactDirectDepositBlock/CompactDirectDepositBlock.es.js +46 -0
- package/dist/insights-v2/blocks/ComponentBlocks/CompactDirectDepositBlock/CompactDirectDepositBlock.es.js.map +1 -0
- package/dist/insights-v2/blocks/ComponentBlocks/CompactDirectDepositBlock/index.d.ts +3 -0
- package/dist/insights-v2/blocks/ComponentBlocks/CompactDirectDepositBlock/layout.d.ts +10 -0
- package/dist/insights-v2/blocks/ComponentBlocks/CompactDirectDepositBlock/layout.es.js +17 -0
- package/dist/insights-v2/blocks/ComponentBlocks/CompactDirectDepositBlock/layout.es.js.map +1 -0
- package/dist/insights-v2/blocks/ComponentBlocks/DetailedAccountBlock/DetailedAccountBlock.es.js +25 -25
- package/dist/insights-v2/blocks/ComponentBlocks/DetailedAccountBlock/DetailedAccountBlock.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/DetailedAccountBlock/layout.d.ts +0 -2
- package/dist/insights-v2/blocks/ComponentBlocks/DetailedAccountBlock/layout.es.js +17 -21
- package/dist/insights-v2/blocks/ComponentBlocks/DetailedAccountBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/MerchantBlock.es.js +46 -63
- package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/MerchantBlock.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/layout.d.ts +3 -3
- package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/layout.es.js +44 -53
- package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/QuizBlock/QuizBlock.d.ts +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/QuizBlock/QuizBlock.es.js +30 -31
- package/dist/insights-v2/blocks/ComponentBlocks/QuizBlock/QuizBlock.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/TransactionBlock/TransactionBlock.es.js +54 -53
- package/dist/insights-v2/blocks/ComponentBlocks/TransactionBlock/TransactionBlock.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/TransactionBlock/layout.d.ts +5 -3
- package/dist/insights-v2/blocks/ComponentBlocks/TransactionBlock/layout.es.js +11 -9
- package/dist/insights-v2/blocks/ComponentBlocks/TransactionBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/WeeklySmallPurchasesBlock/WeeklySmallPurchasesBlock.es.js +28 -27
- package/dist/insights-v2/blocks/ComponentBlocks/WeeklySmallPurchasesBlock/WeeklySmallPurchasesBlock.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/index.d.ts +1 -0
- package/dist/insights-v2/components/AccountHeroCard.d.ts +3 -1
- package/dist/insights-v2/components/AccountHeroCard.es.js.map +1 -1
- package/dist/insights-v2/components/CompactDirectDepositCard.d.ts +26 -0
- package/dist/insights-v2/components/CompactDirectDepositCard.es.js +73 -0
- package/dist/insights-v2/components/CompactDirectDepositCard.es.js.map +1 -0
- package/dist/insights-v2/components/DirectDepositCard.d.ts +6 -1
- package/dist/insights-v2/components/DirectDepositCard.es.js +22 -20
- package/dist/insights-v2/components/DirectDepositCard.es.js.map +1 -1
- package/dist/insights-v2/components/LogoFromGuid.d.ts +1 -1
- package/dist/insights-v2/components/LogoFromGuid.es.js.map +1 -1
- package/dist/insights-v2/components/MerchantHighlightCard.es.js +4 -4
- package/dist/insights-v2/components/TransactionListCard.d.ts +3 -1
- package/dist/insights-v2/components/TransactionListCard.es.js +25 -25
- package/dist/insights-v2/components/TransactionListCard.es.js.map +1 -1
- package/dist/insights-v2/components/TransferLogoCard.es.js +1 -0
- package/dist/insights-v2/components/TransferLogoCard.es.js.map +1 -1
- package/dist/insights-v2/index.es.js +120 -116
- package/dist/insights-v2/mappings/blocks.es.js +118 -116
- package/dist/insights-v2/mappings/blocks.es.js.map +1 -1
- package/dist/microinsights/cards/InsightCard.es.js +53 -53
- package/dist/microinsights/cards/InsightCard.es.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,17 @@
|
|
|
1
|
+
## [9.7.199] - 11-20-2026
|
|
2
|
+
|
|
3
|
+
- **ADDED** - Monthly Spend to Income Comparison V2 Storybook QA page with every size and state (WEC-2101)
|
|
4
|
+
|
|
5
|
+
## [9.7.198] - 11-20-2026
|
|
6
|
+
|
|
7
|
+
- **ADDED** - Spending History (transaction_history_block / category_spend) opens from a card without a bar chart, colours a sub-category by its parent, and shows the category's tip from the copy service (gas today) (WEC-2427)
|
|
8
|
+
- **ADDED** - `gas_month_heading` and `gas_tip_message` (optional) on the `TransactionHistoryBlock` copy type (WEC-2427)
|
|
9
|
+
- **ADDED** - Green Gas Purchases Summary Storybook QA page: full, mini, micro and drill-down for the four states (WEC-2427)
|
|
10
|
+
|
|
1
11
|
## [9.7.197] - 11-20-2026
|
|
2
12
|
|
|
3
13
|
- **FIXED** - Monthly Top Merchant Spending V4: rank badges are bold and the logo cascade matches Figma's stagger and overlap (WEC-2383)
|
|
4
|
-
- **CHANGED** - Monthly Top Merchant Spending V4 Merchant History drawer: no month tabs or Transactions / Export CSV row, as Figma; the chart bars select the month by
|
|
14
|
+
- **CHANGED** - Monthly Top Merchant Spending V4 Merchant History drawer: no month tabs or Transactions / Export CSV row, as Figma; the chart bars select the month by mouse or keyboard (WEC-2383)
|
|
5
15
|
|
|
6
16
|
## [9.7.196] - 11-20-2026
|
|
7
17
|
|
|
@@ -42,7 +42,7 @@ export type DrilldownRow = Record<string, string | number | boolean | null>;
|
|
|
42
42
|
* (memo, tags, hide, flag come from the transaction store). Values come from the server, so a reader
|
|
43
43
|
* still checks each value's runtime shape.
|
|
44
44
|
*/
|
|
45
|
-
export type DrilldownData = Record<string, string | number | boolean | null | string[] | DataSeries | DrilldownRow[]>;
|
|
45
|
+
export type DrilldownData = Record<string, string | number | boolean | null | string[] | DataSeries | DrilldownRow[] | LogoRef>;
|
|
46
46
|
export interface InsightsPayload {
|
|
47
47
|
widget_type: WidgetType;
|
|
48
48
|
instance_slot: InstanceSlot;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Insights.es.js","names":[],"sources":["../../../src/core/types/Insights.ts"],"sourcesContent":["// ============ Core InsightsV2 Types ============\n\nimport type { DataSeries } from './Beat'\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/** A row in a drilldown list fact (e.g. the Subscriptions drawer's per-transaction schedule). */\nexport type DrilldownRow = Record<string, string | number | boolean | null>\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 * string lists, a `data_series` (the months a history drawer charts), or rows of scalars\n * (`transaction_frequencies`), omitted when the insight has none. Never carries copy or user actions\n * (memo, tags, hide, flag come from the transaction store). Values come from the server, so a reader\n * still checks each value's runtime shape.\n */\nexport type DrilldownData = Record<\n string,\n string | number | boolean | null | string[] | DataSeries | DrilldownRow[]\n>\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 QuarterlySummaryBlock: 'quarterly_summary_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 GreenStatementFeeBlock: 'green_statement_fee_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 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":"AAyVA,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 type { DataSeries } from './Beat'\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/** A row in a drilldown list fact (e.g. the Subscriptions drawer's per-transaction schedule). */\nexport type DrilldownRow = Record<string, string | number | boolean | null>\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 * string lists, a `data_series` (the months a history drawer charts), or rows of scalars\n * (`transaction_frequencies`), omitted when the insight has none. Never carries copy or user actions\n * (memo, tags, hide, flag come from the transaction store). Values come from the server, so a reader\n * still checks each value's runtime shape.\n */\nexport type DrilldownData = Record<\n string,\n string | number | boolean | null | string[] | DataSeries | DrilldownRow[] | LogoRef\n>\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 QuarterlySummaryBlock: 'quarterly_summary_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 GreenStatementFeeBlock: 'green_statement_fee_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 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":"AAyVA,IAAa,IAAA,CACX,GACA,MACkB,IAAO,CAAA"}
|
|
@@ -6,6 +6,8 @@ export interface GeneralInsightsFeedCopy {
|
|
|
6
6
|
decreased_text: string;
|
|
7
7
|
/** "Deposit": the deposit summary drawer's bar legend. */
|
|
8
8
|
deposit?: string;
|
|
9
|
+
/** "Deposit Details": the transaction-details drawer title for the `deposit_details` variant. */
|
|
10
|
+
deposit_details_title?: string;
|
|
9
11
|
dismiss: string;
|
|
10
12
|
embedded_description: string;
|
|
11
13
|
error_heading: string;
|
|
@@ -161,6 +163,10 @@ export interface TransactionHistoryBlock {
|
|
|
161
163
|
merchant_budget_drawer_title?: string;
|
|
162
164
|
/** Upcoming Bill tip: `_1{tip}`, `_2{merchant}`, `_3{date}`; optional, no tip without it. */
|
|
163
165
|
upcoming_bill_tip_message?: string;
|
|
166
|
+
/** Spending History's heading for the gas category: `_1{month} Gas Purchases`; optional, the category name without it. */
|
|
167
|
+
gas_month_heading?: string;
|
|
168
|
+
/** Spending History's tip for the gas category (Green Gas Purchases Summary): `_1{tip}`; optional, no tip without it. */
|
|
169
|
+
gas_tip_message?: string;
|
|
164
170
|
/**
|
|
165
171
|
* The Debt vs. Income drawer's tip: `_1{tip}` the bold tip title and `_2{limit}` the bold limit
|
|
166
172
|
* (`monthly_debt_to_income_tip_limit`, "less than 30%"). Optional: without both, the drawer shows no
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactComponent as g } from "../../shared/images/EmptyBarChart.es.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { BarChart as h } from "../../shared/Charts/BarChart/BarChart.es.js";
|
|
3
|
+
import { ThemedSVGImage as d } from "../../shared/ThemedSVGImage.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(
|
|
15
|
+
children: o.length > 0 ? /* @__PURE__ */ r(h, {
|
|
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(
|
|
29
|
+
}) : /* @__PURE__ */ r(d, { image: g })
|
|
30
30
|
});
|
|
31
31
|
export {
|
|
32
32
|
S as BillAmountNotStandard
|
package/dist/insights/components/insights/BillAmountNotStandard/BillAmountNotStandardMUI.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactComponent as h } from "../../shared/images/EmptyBarChart.es.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { BarChartV2 as l } from "../../shared/Charts/BarChart/BarChartV2.es.js";
|
|
3
|
+
import { ThemedSVGImage as d } from "../../shared/ThemedSVGImage.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(
|
|
15
|
+
children: t.length > 0 ? /* @__PURE__ */ r(l, {
|
|
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(
|
|
29
|
+
}) : /* @__PURE__ */ r(d, {
|
|
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 {
|
|
3
|
-
import {
|
|
2
|
+
import { BarChart as h } from "../../shared/Charts/BarChart/BarChart.es.js";
|
|
3
|
+
import { ThemedSVGImage as d } from "../../shared/ThemedSVGImage.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(
|
|
15
|
+
children: t.length > 0 ? /* @__PURE__ */ o(h, {
|
|
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(
|
|
29
|
+
}) : /* @__PURE__ */ o(d, { 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 {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
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";
|
|
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(
|
|
13
|
+
return /* @__PURE__ */ t(u, {
|
|
14
14
|
...s,
|
|
15
15
|
beat: o,
|
|
16
|
-
button: /* @__PURE__ */ t(
|
|
16
|
+
button: /* @__PURE__ */ t(y, {
|
|
17
17
|
...n,
|
|
18
18
|
beat: o
|
|
19
19
|
}),
|
|
20
|
-
children: i ? /* @__PURE__ */ t(
|
|
20
|
+
children: i ? /* @__PURE__ */ t(g, {}) : /* @__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(
|
|
34
|
+
e?.length >= 4 && /* @__PURE__ */ t(h, {
|
|
35
35
|
height: f,
|
|
36
36
|
shouldRun: !0,
|
|
37
37
|
width: p
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ReactComponent as r } from "../images/BarChartEmptyState.es.js";
|
|
2
|
+
import { ThemedSVGImage as o } from "../ThemedSVGImage.es.js";
|
|
3
3
|
import { jsx as m } from "react/jsx-runtime";
|
|
4
4
|
function p() {
|
|
5
|
-
return /* @__PURE__ */ m(
|
|
5
|
+
return /* @__PURE__ */ m(o, {
|
|
6
6
|
divProps: { style: {} },
|
|
7
|
-
image:
|
|
7
|
+
image: r
|
|
8
8
|
});
|
|
9
9
|
}
|
|
10
10
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ThemedSVGImage as e } from "../ThemedSVGImage.es.js";
|
|
2
|
+
import { ReactComponent as o } from "../images/LinedCardZeroState.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(
|
|
14
|
+
children: /* @__PURE__ */ r(e, {
|
|
15
15
|
divProps: { style: m },
|
|
16
|
-
image:
|
|
16
|
+
image: o
|
|
17
17
|
})
|
|
18
18
|
});
|
|
19
19
|
export {
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import S from "./components/shared/
|
|
10
|
-
import
|
|
11
|
-
import y from "./components/shared/
|
|
12
|
-
import T from "./components/shared/
|
|
13
|
-
import b from "./components/shared/
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import
|
|
19
|
-
import V from "./components/shared/
|
|
20
|
-
import z from "./components/shared/
|
|
21
|
-
import W from "./components/shared/
|
|
22
|
-
import R from "./components/shared/
|
|
23
|
-
import X from "./components/shared/
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import
|
|
37
|
-
import ho from "./components/shared/InsightsCard/
|
|
38
|
-
import Mo from "./components/shared/InsightsCard/
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
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";
|
|
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
|
-
|
|
98
|
-
|
|
99
|
-
|
|
97
|
+
e as BarChart,
|
|
98
|
+
p as BarChartV2,
|
|
99
|
+
lo as BeatCard,
|
|
100
100
|
ar as BeatCardMUI,
|
|
101
101
|
Go as BeatFeedbackText,
|
|
102
102
|
Jo as BillAmountNotStandard,
|
|
103
103
|
Qo as BillAmountNotStandardMUI,
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
104
|
+
r as BottomSheet,
|
|
105
|
+
uo as CardButtonSection,
|
|
106
|
+
io as CardError,
|
|
107
|
+
Bo as CardFooter,
|
|
108
|
+
eo as CardHeader,
|
|
109
109
|
mr as CardHeaderMUI,
|
|
110
|
-
|
|
110
|
+
po 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
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
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,
|
|
123
123
|
sr as CustomTransaction,
|
|
124
|
-
|
|
125
|
-
|
|
124
|
+
Mo as Description,
|
|
125
|
+
X as DirectDeposit,
|
|
126
126
|
lt as DirectDepositDeepLink,
|
|
127
|
-
|
|
127
|
+
q as DirectDepositSubHeader,
|
|
128
128
|
ur as DiscoveredAccountsBody,
|
|
129
|
-
|
|
129
|
+
T as DiscoveredAccountsConnect,
|
|
130
130
|
Br as DiscoveredAccountsLearnMoreDrawerContent,
|
|
131
131
|
hr as DiscoveredAccountsMiniInsight,
|
|
132
|
-
|
|
133
|
-
|
|
132
|
+
f as DoubleBarChart,
|
|
133
|
+
c as DoubleBarChartMXUI,
|
|
134
134
|
ht as DrillDownCalculation,
|
|
135
|
-
|
|
136
|
-
|
|
135
|
+
vo as EmbeddedCard,
|
|
136
|
+
C as EmptyBarChart,
|
|
137
137
|
Eo as ErrorCard,
|
|
138
138
|
Mr as FederalBankHoliday,
|
|
139
139
|
vr as FederalBankHolidayMUI,
|
|
140
140
|
xo as FeedbackButtons,
|
|
141
|
-
|
|
141
|
+
Ao as FeedbackCard,
|
|
142
142
|
Oo as FeedbackDescription,
|
|
143
143
|
Lo as FeedbackHeader,
|
|
144
144
|
No as FeedbackOptions,
|
|
145
|
-
|
|
145
|
+
K as FullFeedBodyHeader,
|
|
146
146
|
ut as Header,
|
|
147
|
-
|
|
147
|
+
Fo as InsightButton,
|
|
148
148
|
Er as LastMonthsContributionSection,
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
149
|
+
Y as LeftBox,
|
|
150
|
+
ko as LinedCardZeroState,
|
|
151
|
+
H as MenuAction,
|
|
152
|
+
$ as MiniBodyHeader,
|
|
153
|
+
fo as MiniDescription,
|
|
154
|
+
U 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
|
-
|
|
162
|
+
w as P2PMultipleCategorization,
|
|
163
163
|
jr as P2pCategorization,
|
|
164
164
|
Zr as P2pCategorizationMultipleTransactions,
|
|
165
165
|
Jr as P2pCategorizationSingleTransaction,
|
|
166
166
|
Lr as ProjectedCompletionSection,
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
167
|
+
P as PulseGoalProgress,
|
|
168
|
+
I as PulseGraidentBox,
|
|
169
|
+
b as PulseProgressBar,
|
|
170
|
+
ro as RightBox,
|
|
171
171
|
Tt as SaveAnExtra100,
|
|
172
|
-
|
|
173
|
-
|
|
172
|
+
V as SaveEnoughToLiveOnBottomSection,
|
|
173
|
+
z as SaveEnoughToLiveOnTopSection,
|
|
174
174
|
Qr as SavingsAccountBalancesSummary,
|
|
175
175
|
_r as SetUpDirectDepositBody,
|
|
176
176
|
lr as SharedDeposit,
|
|
177
|
-
|
|
177
|
+
W as StatusIndicator,
|
|
178
178
|
mt as SwitchDirectDepositBody,
|
|
179
179
|
tt as SwitchDirectDepositMainContainer,
|
|
180
180
|
xr as TotalSavedSection,
|
|
181
|
-
|
|
181
|
+
R as TransactionCard,
|
|
182
182
|
at as TransparentOverdraftV2,
|
|
183
183
|
nt as UnifiedDeposit,
|
|
184
184
|
st as UserFeedback,
|