@mx-cartographer/experiences 9.7.206 → 10.0.0
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 +5 -0
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.d.ts +2 -0
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.es.js +39 -23
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.es.js.map +1 -1
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsHeader.d.ts +3 -1
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsHeader.es.js +37 -33
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsHeader.es.js.map +1 -1
- package/dist/accounts/utils/AccountFields.d.ts +3 -1
- package/dist/accounts/utils/AccountFields.es.js +39 -39
- package/dist/accounts/utils/AccountFields.es.js.map +1 -1
- package/dist/common/components/charts/LineChart.d.ts +4 -0
- package/dist/common/components/charts/LineChart.es.js +114 -112
- package/dist/common/components/charts/LineChart.es.js.map +1 -1
- package/dist/common/components/charts/linechart/CustomLegend.es.js +24 -21
- package/dist/common/components/charts/linechart/CustomLegend.es.js.map +1 -1
- package/dist/core/types/Insights.d.ts +9 -1
- package/dist/core/types/Insights.es.js.map +1 -1
- package/dist/core/types/localization/InsightsFeedCopy.d.ts +42 -0
- package/dist/core/types/localization/index.d.ts +1 -1
- package/dist/insights-v2/actionBlocks/AccountDetailsBlock/AccountDetailsBlock.d.ts +7 -1
- package/dist/insights-v2/actionBlocks/AccountDetailsBlock/AccountDetailsBlock.es.js +39 -20
- package/dist/insights-v2/actionBlocks/AccountDetailsBlock/AccountDetailsBlock.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/AccountDetailsBlock/SpendVsIncomeChart.d.ts +4 -0
- package/dist/insights-v2/actionBlocks/AccountDetailsBlock/SpendVsIncomeChart.es.js +42 -0
- package/dist/insights-v2/actionBlocks/AccountDetailsBlock/SpendVsIncomeChart.es.js.map +1 -0
- package/dist/insights-v2/actionBlocks/AccountDetailsBlock/SpendVsPaymentChart.d.ts +7 -0
- package/dist/insights-v2/actionBlocks/AccountDetailsBlock/SpendVsPaymentChart.es.js +54 -0
- package/dist/insights-v2/actionBlocks/AccountDetailsBlock/SpendVsPaymentChart.es.js.map +1 -0
- package/dist/insights-v2/actionBlocks/AmountInputModalBlock/AmountInputModalBlock.es.js +10 -10
- package/dist/insights-v2/actionBlocks/AmountInputModalBlock/CreateBudgetDialog.es.js +24 -23
- package/dist/insights-v2/actionBlocks/AmountInputModalBlock/CreateBudgetDialog.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/BudgetDetailsBlock.es.js +75 -73
- package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/BudgetDetailsBlock.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/BudgetSummary.d.ts +5 -1
- package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/BudgetSummary.es.js +21 -21
- package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/BudgetSummary.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/layout.d.ts +11 -0
- package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/layout.es.js +65 -58
- package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/layout.es.js.map +1 -1
- 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/MakeTransferActionBlock/BalanceStepper.es.js +9 -10
- package/dist/insights-v2/actionBlocks/MakeTransferActionBlock/BalanceStepper.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/MakeTransferActionBlock/SaveEnoughToLiveOnBottomSection.es.js +21 -22
- package/dist/insights-v2/actionBlocks/MakeTransferActionBlock/SaveEnoughToLiveOnBottomSection.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/PayoffCalculatorBlock/PayoffCalculatorBlock.es.js +35 -35
- package/dist/insights-v2/actionBlocks/PayoffCalculatorBlock/PayoffCalculatorBlock.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/PayoffCalculatorBlock/PayoffResults.d.ts +1 -1
- package/dist/insights-v2/actionBlocks/PayoffCalculatorBlock/PayoffResults.es.js +44 -49
- package/dist/insights-v2/actionBlocks/PayoffCalculatorBlock/PayoffResults.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/PayoffStrategiesBlock.d.ts +1 -1
- package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/PayoffStrategiesBlock.es.js +19 -16
- package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/PayoffStrategiesBlock.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/PayoffStrategiesContent.d.ts +2 -2
- package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/PayoffStrategiesContent.es.js +212 -166
- package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/PayoffStrategiesContent.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/StepIcon.d.ts +4 -0
- package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/StepIcon.es.js +24 -0
- package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/StepIcon.es.js.map +1 -0
- package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/layout.d.ts +6 -5
- package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/layout.es.js +38 -38
- package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/SubscriptionStatusModalBlock.es.js +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/TransactionDrillDown.es.js +46 -40
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/TransactionDrillDown.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/TransactionHistoryBlock.es.js +141 -126
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/TransactionHistoryBlock.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/layout.d.ts +8 -1
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/layout.es.js +243 -200
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/utils.d.ts +2 -0
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/utils.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/TransactionListBlock/TransactionListBlock.es.js +54 -53
- package/dist/insights-v2/actionBlocks/TransactionListBlock/TransactionListBlock.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/TransactionListBlock/TransactionListHeaderIconTile.d.ts +6 -1
- package/dist/insights-v2/actionBlocks/TransactionListBlock/TransactionListHeaderIconTile.es.js +14 -13
- package/dist/insights-v2/actionBlocks/TransactionListBlock/TransactionListHeaderIconTile.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/TransactionListBlock/TransactionListSummaryCard.d.ts +4 -3
- package/dist/insights-v2/actionBlocks/TransactionListBlock/TransactionListSummaryCard.es.js +24 -21
- package/dist/insights-v2/actionBlocks/TransactionListBlock/TransactionListSummaryCard.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/TransactionListBlock/layout.d.ts +14 -4
- package/dist/insights-v2/actionBlocks/TransactionListBlock/layout.es.js +79 -67
- package/dist/insights-v2/actionBlocks/TransactionListBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/DonutChart.d.ts +3 -1
- package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/DonutChart.es.js +48 -32
- package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/DonutChart.es.js.map +1 -1
- package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/DonutChartBlock.es.js +19 -14
- package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/DonutChartBlock.es.js.map +1 -1
- package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/layout.d.ts +4 -0
- package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/layout.es.js +19 -15
- package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/blocks/ChartBlocks/DoubleBarChartBlock/DoubleBarChartBlock.es.js +26 -19
- package/dist/insights-v2/blocks/ChartBlocks/DoubleBarChartBlock/DoubleBarChartBlock.es.js.map +1 -1
- package/dist/insights-v2/blocks/ChartBlocks/DoubleBarChartBlock/layout.d.ts +1 -0
- package/dist/insights-v2/blocks/ChartBlocks/DoubleBarChartBlock/layout.es.js +17 -21
- package/dist/insights-v2/blocks/ChartBlocks/DoubleBarChartBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/StepChartBlock.d.ts +1 -1
- package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/StepChartBlock.es.js +11 -11
- package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/StepChartBlock.es.js.map +1 -1
- package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/index.es.js +15 -11
- package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/index.es.js.map +1 -1
- package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/layout.d.ts +20 -0
- package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/layout.es.js +21 -0
- package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/layout.es.js.map +1 -0
- 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/ChartBlocks/StepChartBlock/variants/WithText.d.ts +10 -2
- package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/variants/WithText.es.js +115 -54
- package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/variants/WithText.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/AccountBlock.d.ts +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/AccountBlock.es.js +37 -36
- package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/AccountBlock.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/layout.es.js +27 -22
- package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/BudgetBlock/BudgetBlock.es.js +8 -8
- 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 +13 -0
- package/dist/insights-v2/blocks/ComponentBlocks/CompactDirectDepositBlock/layout.es.js +22 -0
- package/dist/insights-v2/blocks/ComponentBlocks/CompactDirectDepositBlock/layout.es.js.map +1 -0
- package/dist/insights-v2/blocks/ComponentBlocks/DetailedAccountBlock/DetailedAccountBlock.es.js +29 -21
- 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/FeeChargedBlock/FeeChargedBlock.es.js +5 -6
- package/dist/insights-v2/blocks/ComponentBlocks/FeeChargedBlock/FeeChargedBlock.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/FeedbackBlock.d.ts +3 -7
- package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/FeedbackBlock.es.js +120 -306
- package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/FeedbackBlock.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/RatingScale.d.ts +17 -0
- package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/RatingScale.es.js +93 -0
- package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/RatingScale.es.js.map +1 -0
- package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/StepBar.d.ts +5 -0
- package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/StepBar.es.js +21 -0
- package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/StepBar.es.js.map +1 -0
- package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/SurveyResult.d.ts +18 -0
- package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/SurveyResult.es.js +71 -0
- package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/SurveyResult.es.js.map +1 -0
- package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/survey.d.ts +82 -8
- package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/survey.es.js +66 -15
- package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/survey.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/SaveExtraBlock/SaveExtraBlock.es.js +25 -20
- package/dist/insights-v2/blocks/ComponentBlocks/SaveExtraBlock/SaveExtraBlock.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/SaveExtraBlock/layout.d.ts +22 -0
- package/dist/insights-v2/blocks/ComponentBlocks/SaveExtraBlock/layout.es.js +24 -0
- package/dist/insights-v2/blocks/ComponentBlocks/SaveExtraBlock/layout.es.js.map +1 -0
- package/dist/insights-v2/blocks/ComponentBlocks/StrategiesBlock/StrategiesBlock.d.ts +7 -0
- package/dist/insights-v2/blocks/ComponentBlocks/StrategiesBlock/StrategiesBlock.es.js +89 -0
- package/dist/insights-v2/blocks/ComponentBlocks/StrategiesBlock/StrategiesBlock.es.js.map +1 -0
- package/dist/insights-v2/blocks/ComponentBlocks/StrategiesBlock/index.d.ts +1 -0
- package/dist/insights-v2/blocks/ComponentBlocks/StrategiesBlock/layout.d.ts +43 -0
- package/dist/insights-v2/blocks/ComponentBlocks/StrategiesBlock/layout.es.js +28 -0
- package/dist/insights-v2/blocks/ComponentBlocks/StrategiesBlock/layout.es.js.map +1 -0
- 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 +7 -3
- package/dist/insights-v2/blocks/ComponentBlocks/TransactionBlock/layout.es.js +20 -11
- package/dist/insights-v2/blocks/ComponentBlocks/TransactionBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/WeeklySmallPurchasesBlock/WeeklySmallPurchasesBlock.es.js +29 -28
- package/dist/insights-v2/blocks/ComponentBlocks/WeeklySmallPurchasesBlock/WeeklySmallPurchasesBlock.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/index.d.ts +2 -0
- package/dist/insights-v2/blocks/ImageBlocks/ImageBlock.es.js +6 -5
- package/dist/insights-v2/blocks/ImageBlocks/ImageBlock.es.js.map +1 -1
- package/dist/insights-v2/blocks/ImageBlocks/SVGImageBlock/images/FederalBankHoliday.es.js +117 -71
- package/dist/insights-v2/blocks/ImageBlocks/SVGImageBlock/images/FederalBankHoliday.es.js.map +1 -1
- package/dist/insights-v2/blocks/ImageBlocks/SVGImageBlock/layout.d.ts +1 -1
- package/dist/insights-v2/blocks/ImageBlocks/SVGImageBlock/layout.es.js +10 -7
- package/dist/insights-v2/blocks/ImageBlocks/SVGImageBlock/layout.es.js.map +1 -1
- 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/BaseLayout.d.ts +3 -1
- package/dist/insights-v2/components/BaseLayout.es.js +134 -119
- package/dist/insights-v2/components/BaseLayout.es.js.map +1 -1
- package/dist/insights-v2/components/CompactDirectDepositCard.d.ts +28 -0
- package/dist/insights-v2/components/CompactDirectDepositCard.es.js +78 -0
- package/dist/insights-v2/components/CompactDirectDepositCard.es.js.map +1 -0
- package/dist/insights-v2/components/CompactInsightCard.es.js +122 -118
- package/dist/insights-v2/components/CompactInsightCard.es.js.map +1 -1
- package/dist/insights-v2/components/DirectDepositCard.d.ts +6 -1
- package/dist/insights-v2/components/DirectDepositCard.es.js +24 -22
- package/dist/insights-v2/components/DirectDepositCard.es.js.map +1 -1
- package/dist/insights-v2/components/LoadingCard.es.js +13 -9
- package/dist/insights-v2/components/LoadingCard.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/SaveAnExtraCard.d.ts +4 -1
- package/dist/insights-v2/components/SaveAnExtraCard.es.js +32 -20
- package/dist/insights-v2/components/SaveAnExtraCard.es.js.map +1 -1
- package/dist/insights-v2/components/SubTabs.d.ts +2 -1
- package/dist/insights-v2/components/SubTabs.es.js +29 -24
- package/dist/insights-v2/components/SubTabs.es.js.map +1 -1
- package/dist/insights-v2/components/TransactionListCard.d.ts +3 -1
- package/dist/insights-v2/components/TransactionListCard.es.js +39 -37
- 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/components/UpcomingBillCard.es.js +39 -35
- package/dist/insights-v2/components/UpcomingBillCard.es.js.map +1 -1
- package/dist/insights-v2/components/celebrationGradients.d.ts +17 -8
- package/dist/insights-v2/components/celebrationGradients.es.js +14 -14
- package/dist/insights-v2/components/celebrationGradients.es.js.map +1 -1
- package/dist/insights-v2/components/chartblocks/ChartLegend.es.js +16 -10
- package/dist/insights-v2/components/chartblocks/ChartLegend.es.js.map +1 -1
- package/dist/insights-v2/components/chartblocks/DoubleBarChart.d.ts +10 -4
- package/dist/insights-v2/components/chartblocks/DoubleBarChart.es.js +62 -61
- package/dist/insights-v2/components/chartblocks/DoubleBarChart.es.js.map +1 -1
- package/dist/insights-v2/components/chartblocks/EmptyBarChart.es.js +13 -6
- package/dist/insights-v2/components/chartblocks/EmptyBarChart.es.js.map +1 -1
- package/dist/insights-v2/components/shared/images/DesignateEmergencySavings.es.js +2 -3
- package/dist/insights-v2/components/shared/images/DesignateEmergencySavings.es.js.map +1 -1
- package/dist/insights-v2/components/statusIcon.d.ts +2 -1
- package/dist/insights-v2/components/statusIcon.es.js +10 -8
- package/dist/insights-v2/components/statusIcon.es.js.map +1 -1
- package/dist/insights-v2/ctaActions/ctaConfig.es.js +19 -17
- package/dist/insights-v2/ctaActions/ctaConfig.es.js.map +1 -1
- package/dist/insights-v2/ctaActions/ctaHandlers.d.ts +5 -1
- package/dist/insights-v2/ctaActions/ctaHandlers.es.js +71 -54
- package/dist/insights-v2/ctaActions/ctaHandlers.es.js.map +1 -1
- package/dist/insights-v2/ctaActions/ctaPostMessages.es.js +41 -24
- package/dist/insights-v2/ctaActions/ctaPostMessages.es.js.map +1 -1
- package/dist/insights-v2/ctaActions/feedbackSurvey.d.ts +9 -0
- package/dist/insights-v2/ctaActions/feedbackSurvey.es.js +51 -0
- package/dist/insights-v2/ctaActions/feedbackSurvey.es.js.map +1 -0
- package/dist/insights-v2/ctaActions/runCtaAction.es.js +36 -35
- package/dist/insights-v2/ctaActions/runCtaAction.es.js.map +1 -1
- package/dist/insights-v2/ctaActions/types.d.ts +7 -0
- package/dist/insights-v2/index.es.js +126 -120
- package/dist/insights-v2/mappings/actionBlocksKey.d.ts +1 -1
- package/dist/insights-v2/mappings/actionBlocksKey.es.js +1 -1
- package/dist/insights-v2/mappings/actionBlocksKey.es.js.map +1 -1
- package/dist/insights-v2/mappings/blocks.es.js +126 -122
- package/dist/insights-v2/mappings/blocks.es.js.map +1 -1
- package/dist/microinsights/MicroCardTemplate.es.js +1 -1
- package/dist/microinsights/MicroCardTemplate.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/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/index.d.ts +0 -13
- package/dist/insights-v2/blocks/ImageBlocks/SVGImageBlock/images/DesignateEmergencySavingsAccount.es.js +0 -296
- package/dist/insights-v2/blocks/ImageBlocks/SVGImageBlock/images/DesignateEmergencySavingsAccount.es.js.map +0 -1
package/dist/insights-v2/blocks/ComponentBlocks/DetailedAccountBlock/DetailedAccountBlock.es.js
CHANGED
|
@@ -1,38 +1,46 @@
|
|
|
1
|
-
import { buildDynamicCopy as
|
|
2
|
-
import { GlobalDataContext as
|
|
1
|
+
import { buildDynamicCopy as l } from "../../../../core/utils/Localization.es.js";
|
|
2
|
+
import { GlobalDataContext as c } from "../../../../common/context/GlobalDataProvider.es.js";
|
|
3
3
|
import { slot as u } from "../../../../core/types/Insights.es.js";
|
|
4
|
-
import { resolveVariantConfig as
|
|
5
|
-
import { asLogoRef as g, asText as
|
|
6
|
-
import
|
|
4
|
+
import { resolveVariantConfig as f } from "../../resolveVariantConfig.es.js";
|
|
5
|
+
import { asLogoRef as g, asText as p, slotOrFlat as d } from "../../slotReaders.es.js";
|
|
6
|
+
import y from "../../../components/LogoFromGuid.es.js";
|
|
7
7
|
import _ from "../../../components/DirectDepositCard.es.js";
|
|
8
|
-
import { detailedAccountVariant as
|
|
8
|
+
import { detailedAccountVariant as x, getLayoutConfig as v } from "./layout.es.js";
|
|
9
9
|
import { useContext as L } from "react";
|
|
10
10
|
import { jsx as s } from "react/jsx-runtime";
|
|
11
|
-
import { useTheme as
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
import { useTheme as h } from "@mui/material/styles";
|
|
12
|
+
import b from "@mui/material/Box";
|
|
13
|
+
var n = (t, r) => p(d(t, r)), C = (t, r) => {
|
|
14
|
+
const o = g(u(t.data, "logo")), i = n(t, "institution_guid"), e = o?.alt ?? n(t, "institution_name"), a = o ?? (i ? {
|
|
15
|
+
guid: i,
|
|
16
|
+
alt: e ?? i
|
|
16
17
|
} : void 0);
|
|
17
|
-
return !
|
|
18
|
-
...
|
|
19
|
-
alt:
|
|
18
|
+
return !a || !e ? a : {
|
|
19
|
+
...a,
|
|
20
|
+
alt: r ? l(r, e) : e
|
|
20
21
|
};
|
|
21
|
-
},
|
|
22
|
-
const
|
|
22
|
+
}, I = ({ payload: t }) => {
|
|
23
|
+
const r = h(), { instance_slot: o } = t, i = L(c)?.globalStore.copyStore.copy.insights_feed?.general?.institution_Logo, e = C(o, i), a = n(o, "status_text"), m = f(v(r), o.variant, x.Neutral, "DetailedAccountBlock");
|
|
23
24
|
return /* @__PURE__ */ s(_, {
|
|
24
|
-
...
|
|
25
|
-
logo:
|
|
26
|
-
logo:
|
|
25
|
+
...m,
|
|
26
|
+
logo: e?.guid ? /* @__PURE__ */ s(y, {
|
|
27
|
+
logo: e,
|
|
27
28
|
size: 48
|
|
28
29
|
}) : null,
|
|
29
30
|
name: n(o, "account_name"),
|
|
30
|
-
statusLabel:
|
|
31
|
+
statusLabel: a ? /* @__PURE__ */ s(b, {
|
|
32
|
+
component: "span",
|
|
33
|
+
dangerouslySetInnerHTML: { __html: a },
|
|
34
|
+
sx: { "& .bold-copy": {
|
|
35
|
+
fontFamily: "inherit",
|
|
36
|
+
fontWeight: "fontWeightBold"
|
|
37
|
+
} }
|
|
38
|
+
}) : void 0,
|
|
31
39
|
subtitle: n(o, "account_type")
|
|
32
40
|
});
|
|
33
41
|
};
|
|
34
42
|
export {
|
|
35
|
-
|
|
43
|
+
I as default
|
|
36
44
|
};
|
|
37
45
|
|
|
38
46
|
//# sourceMappingURL=DetailedAccountBlock.es.js.map
|
package/dist/insights-v2/blocks/ComponentBlocks/DetailedAccountBlock/DetailedAccountBlock.es.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DetailedAccountBlock.es.js","names":[],"sources":["../../../../../src/insights-v2/blocks/ComponentBlocks/DetailedAccountBlock/DetailedAccountBlock.tsx"],"sourcesContent":["import { useContext } from 'react'\n\nimport { useTheme } from '@mui/material/styles'\n\nimport { GlobalDataContext } from '../../../../common/context/GlobalDataProvider'\nimport { slot, type InsightsPayload, type LogoRef } from '../../../../core'\nimport { buildDynamicCopy } from '../../../../core/utils/Localization'\nimport DirectDepositCard from '../../../components/DirectDepositCard'\nimport LogoFromGuid from '../../../components/LogoFromGuid'\n\nimport { resolveVariantConfig } from '../../resolveVariantConfig'\nimport { asLogoRef, asText, slotOrFlat, type FlatSlotKey } from '../../slotReaders'\n\nimport { detailedAccountVariant, getLayoutConfig } from './layout'\n\ninterface DetailedAccountBlockProps {\n payload: InsightsPayload\n}\n\ntype InstanceSlot = InsightsPayload['instance_slot']\n\nconst readFact = (instanceSlot: InstanceSlot, name: FlatSlotKey): string | undefined =>\n asText(slotOrFlat(instanceSlot, name))\n\n/** The slot's logo, else one built from the guid; the alt is worded as legacy (\"{institution} Institution Logo\"). */\nconst resolveLogo = (instanceSlot: InstanceSlot, altCopy?: string): LogoRef | undefined => {\n const dataLogo = asLogoRef(slot(instanceSlot.data, 'logo'))\n const guid = readFact(instanceSlot, 'institution_guid')\n const name = dataLogo?.alt ?? readFact(instanceSlot, 'institution_name')\n\n const logo = dataLogo ?? (guid ? { guid, alt: name ?? guid } : undefined)\n if (!logo || !name) return logo\n\n return { ...logo, alt: altCopy ? (buildDynamicCopy(altCopy, name) as string) : name }\n}\n\nconst DetailedAccountBlock = ({ payload }: DetailedAccountBlockProps) => {\n const theme = useTheme()\n const { instance_slot } = payload\n // Optional: the micro widget renders this block without a GlobalDataProvider.\n const altCopy =\n useContext(GlobalDataContext)?.globalStore.copyStore.copy.insights_feed?.general\n ?.institution_Logo\n const logo = resolveLogo(instance_slot, altCopy)\n const layout = resolveVariantConfig(\n getLayoutConfig(theme),\n instance_slot.variant,\n detailedAccountVariant.Neutral,\n 'DetailedAccountBlock',\n )\n\n return (\n <DirectDepositCard\n {...layout}\n logo={logo?.guid ? <LogoFromGuid logo={logo} size={48} /> : null}\n name={readFact(instance_slot, 'account_name')}\n statusLabel={
|
|
1
|
+
{"version":3,"file":"DetailedAccountBlock.es.js","names":[],"sources":["../../../../../src/insights-v2/blocks/ComponentBlocks/DetailedAccountBlock/DetailedAccountBlock.tsx"],"sourcesContent":["import { useContext } from 'react'\n\nimport Box from '@mui/material/Box'\nimport { useTheme } from '@mui/material/styles'\n\nimport { GlobalDataContext } from '../../../../common/context/GlobalDataProvider'\nimport { slot, type InsightsPayload, type LogoRef } from '../../../../core'\nimport { buildDynamicCopy } from '../../../../core/utils/Localization'\nimport DirectDepositCard from '../../../components/DirectDepositCard'\nimport LogoFromGuid from '../../../components/LogoFromGuid'\n\nimport { resolveVariantConfig } from '../../resolveVariantConfig'\nimport { asLogoRef, asText, slotOrFlat, type FlatSlotKey } from '../../slotReaders'\n\nimport { detailedAccountVariant, getLayoutConfig } from './layout'\n\ninterface DetailedAccountBlockProps {\n payload: InsightsPayload\n}\n\ntype InstanceSlot = InsightsPayload['instance_slot']\n\nconst readFact = (instanceSlot: InstanceSlot, name: FlatSlotKey): string | undefined =>\n asText(slotOrFlat(instanceSlot, name))\n\n/** The slot's logo, else one built from the guid; the alt is worded as legacy (\"{institution} Institution Logo\"). */\nconst resolveLogo = (instanceSlot: InstanceSlot, altCopy?: string): LogoRef | undefined => {\n const dataLogo = asLogoRef(slot(instanceSlot.data, 'logo'))\n const guid = readFact(instanceSlot, 'institution_guid')\n const name = dataLogo?.alt ?? readFact(instanceSlot, 'institution_name')\n\n const logo = dataLogo ?? (guid ? { guid, alt: name ?? guid } : undefined)\n if (!logo || !name) return logo\n\n return { ...logo, alt: altCopy ? (buildDynamicCopy(altCopy, name) as string) : name }\n}\n\nconst DetailedAccountBlock = ({ payload }: DetailedAccountBlockProps) => {\n const theme = useTheme()\n const { instance_slot } = payload\n // Optional: the micro widget renders this block without a GlobalDataProvider.\n const altCopy =\n useContext(GlobalDataContext)?.globalStore.copyStore.copy.insights_feed?.general\n ?.institution_Logo\n const logo = resolveLogo(instance_slot, altCopy)\n const statusText = readFact(instance_slot, 'status_text')\n const layout = resolveVariantConfig(\n getLayoutConfig(theme),\n instance_slot.variant,\n detailedAccountVariant.Neutral,\n 'DetailedAccountBlock',\n )\n\n return (\n <DirectDepositCard\n {...layout}\n logo={logo?.guid ? <LogoFromGuid logo={logo} size={48} /> : null}\n name={readFact(instance_slot, 'account_name')}\n statusLabel={\n statusText ? (\n // Server-rendered mrs_content copy (bold-copy span around a formatted rate), not user\n // input; painted as BudgetBlock paints sub_text.\n <Box\n component=\"span\"\n dangerouslySetInnerHTML={{ __html: statusText }}\n sx={{ '& .bold-copy': { fontFamily: 'inherit', fontWeight: 'fontWeightBold' } }}\n />\n ) : undefined\n }\n subtitle={readFact(instance_slot, 'account_type')}\n />\n )\n}\n\nexport default DetailedAccountBlock\n"],"mappings":";;;;;;;;;;;;AAsBA,IAAM,IAAA,CAAY,GAA4B,MAC5C,EAAO,EAAW,GAAc,CAAI,CAAC,GAGjC,IAAA,CAAe,GAA4B,MAA0C;AACzF,QAAM,IAAW,EAAU,EAAK,EAAa,MAAM,MAAM,CAAC,GACpD,IAAO,EAAS,GAAc,kBAAkB,GAChD,IAAO,GAAU,OAAO,EAAS,GAAc,kBAAkB,GAEjE,IAAO,MAAa,IAAO;AAAA,IAAE,MAAA;AAAA,IAAM,KAAK,KAAQ;AAAA,EAAK,IAAI;AAC/D,SAAI,CAAC,KAAQ,CAAC,IAAa,IAEpB;AAAA,IAAE,GAAG;AAAA,IAAM,KAAK,IAAW,EAAiB,GAAS,CAAI,IAAe;AAAA,EAAK;AACtF,GAEM,IAAA,CAAwB,EAAE,SAAA,EAAA,MAAyC;AACvE,QAAM,IAAQ,EAAS,GACjB,EAAE,eAAA,EAAA,IAAkB,GAEpB,IACJ,EAAW,CAAiB,GAAG,YAAY,UAAU,KAAK,eAAe,SACrE,kBACA,IAAO,EAAY,GAAe,CAAO,GACzC,IAAa,EAAS,GAAe,aAAa,GAClD,IAAS,EACb,EAAgB,CAAK,GACrB,EAAc,SACd,EAAuB,SACvB,sBACF;AAEA,SACE,gBAAA,EAAC,GAAD;AAAA,IACE,GAAI;AAAA,IACJ,MAAM,GAAM,OAAO,gBAAA,EAAC,GAAD;AAAA,MAAoB,MAAA;AAAA,MAAM,MAAM;AAAA,IAAK,CAAA,IAAI;AAAA,IAC5D,MAAM,EAAS,GAAe,cAAc;AAAA,IAC5C,aACE,IAGE,gBAAA,EAAC,GAAD;AAAA,MACE,WAAU;AAAA,MACV,yBAAyB,EAAE,QAAQ,EAAW;AAAA,MAC9C,IAAI,EAAE,gBAAgB;AAAA,QAAE,YAAY;AAAA,QAAW,YAAY;AAAA,MAAiB,EAAE;AAAA,IAC/E,CAAA,IACC;AAAA,IAEN,UAAU,EAAS,GAAe,cAAc;AAAA,EACjD,CAAA;AAEL"}
|
|
@@ -10,8 +10,6 @@ export type DetailedAccountVariant = (typeof detailedAccountVariant)[keyof typeo
|
|
|
10
10
|
export declare const directDepositVariant: {
|
|
11
11
|
readonly SetUpDirectDeposit: "set_up_direct_deposit";
|
|
12
12
|
readonly DirectDepositComplete: "direct_deposit_complete";
|
|
13
|
-
readonly MissingInterestRate: "missing_interest_rate";
|
|
14
|
-
readonly InterestRateAdded: "interest_rate_added";
|
|
15
13
|
};
|
|
16
14
|
export type DirectDepositVariant = (typeof directDepositVariant)[keyof typeof directDepositVariant];
|
|
17
15
|
export declare const isDetailedAccountVariant: (variant?: string | null) => variant is DetailedAccountVariant | DirectDepositVariant;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DIRECT_DEPOSIT_COMPLETE_GRADIENT as
|
|
1
|
+
import { DIRECT_DEPOSIT_COMPLETE_GRADIENT as s, PRIMARY_TILE_GRADIENTS as p, SUCCESS_TILE_GRADIENTS as d } from "../../../components/celebrationGradients.es.js";
|
|
2
2
|
var t = {
|
|
3
3
|
Neutral: "detailed_neutral",
|
|
4
4
|
Primary: "detailed_primary",
|
|
@@ -6,9 +6,7 @@ var t = {
|
|
|
6
6
|
Celebration: "detailed_celebration"
|
|
7
7
|
}, a = {
|
|
8
8
|
SetUpDirectDeposit: "set_up_direct_deposit",
|
|
9
|
-
DirectDepositComplete: "direct_deposit_complete"
|
|
10
|
-
MissingInterestRate: "missing_interest_rate",
|
|
11
|
-
InterestRateAdded: "interest_rate_added"
|
|
9
|
+
DirectDepositComplete: "direct_deposit_complete"
|
|
12
10
|
}, b = /* @__PURE__ */ new Set([...Object.values(t), ...Object.values(a)]), _ = (e) => e != null && b.has(e), u = (e) => {
|
|
13
11
|
const r = e === "dark" ? "grey.800" : "grey.100";
|
|
14
12
|
return {
|
|
@@ -16,35 +14,35 @@ var t = {
|
|
|
16
14
|
borderColor: r,
|
|
17
15
|
labelColor: "text.primary"
|
|
18
16
|
};
|
|
19
|
-
},
|
|
17
|
+
}, m = {
|
|
20
18
|
bgcolor: "primary.lighter",
|
|
21
19
|
borderColor: "primary.lighter",
|
|
22
20
|
labelColor: "text.primary"
|
|
23
|
-
},
|
|
21
|
+
}, c = {
|
|
24
22
|
bgcolor: "success.main",
|
|
25
23
|
borderColor: "success.main",
|
|
26
24
|
labelColor: "success.contrastText"
|
|
27
|
-
},
|
|
25
|
+
}, C = (e) => {
|
|
28
26
|
const r = e.palette.mode, o = {
|
|
29
27
|
bgcolor: "primary.lighter",
|
|
30
28
|
nameVariant: "body2",
|
|
31
29
|
pill: u(r)
|
|
32
30
|
}, i = {
|
|
33
|
-
backgroundImage:
|
|
31
|
+
backgroundImage: p[r],
|
|
34
32
|
bgcolor: "background.paper",
|
|
35
33
|
nameVariant: "body1",
|
|
36
|
-
pill:
|
|
37
|
-
},
|
|
38
|
-
backgroundImage:
|
|
34
|
+
pill: m
|
|
35
|
+
}, n = {
|
|
36
|
+
backgroundImage: d[r],
|
|
39
37
|
bgcolor: "background.paper",
|
|
40
38
|
nameVariant: "body1",
|
|
41
|
-
pill:
|
|
42
|
-
},
|
|
43
|
-
backgroundImage:
|
|
39
|
+
pill: c
|
|
40
|
+
}, l = {
|
|
41
|
+
backgroundImage: s,
|
|
44
42
|
bgcolor: "background.paper",
|
|
45
43
|
nameVariant: "body2",
|
|
46
44
|
pill: {
|
|
47
|
-
...
|
|
45
|
+
...c,
|
|
48
46
|
icon: "check_circle"
|
|
49
47
|
},
|
|
50
48
|
showConfetti: !0
|
|
@@ -52,18 +50,16 @@ var t = {
|
|
|
52
50
|
return {
|
|
53
51
|
[t.Neutral]: o,
|
|
54
52
|
[t.Primary]: i,
|
|
55
|
-
[t.Success]:
|
|
56
|
-
[t.Celebration]:
|
|
53
|
+
[t.Success]: n,
|
|
54
|
+
[t.Celebration]: l,
|
|
57
55
|
[a.SetUpDirectDeposit]: o,
|
|
58
|
-
[a.
|
|
59
|
-
[a.InterestRateAdded]: l,
|
|
60
|
-
[a.DirectDepositComplete]: c
|
|
56
|
+
[a.DirectDepositComplete]: l
|
|
61
57
|
};
|
|
62
58
|
};
|
|
63
59
|
export {
|
|
64
60
|
t as detailedAccountVariant,
|
|
65
61
|
a as directDepositVariant,
|
|
66
|
-
|
|
62
|
+
C as getLayoutConfig,
|
|
67
63
|
_ as isDetailedAccountVariant
|
|
68
64
|
};
|
|
69
65
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout.es.js","names":[],"sources":["../../../../../src/insights-v2/blocks/ComponentBlocks/DetailedAccountBlock/layout.ts"],"sourcesContent":["import type { Theme } from '@mui/material/styles'\n\nimport {\n DIRECT_DEPOSIT_COMPLETE_GRADIENT,\n PRIMARY_TILE_GRADIENTS,\n SUCCESS_TILE_GRADIENTS,\n} from '../../../components/celebrationGradients'\nimport type {\n DirectDepositCardStyleProps,\n DirectDepositPillConfig,\n} from '../../../components/DirectDepositCard'\n\nexport const detailedAccountVariant = {\n Neutral: 'detailed_neutral',\n Primary: 'detailed_primary',\n Success: 'detailed_success',\n Celebration: 'detailed_celebration',\n} as const\n\nexport type DetailedAccountVariant =\n (typeof detailedAccountVariant)[keyof typeof detailedAccountVariant]\n\nexport const directDepositVariant = {\n SetUpDirectDeposit: 'set_up_direct_deposit',\n DirectDepositComplete: 'direct_deposit_complete',\n
|
|
1
|
+
{"version":3,"file":"layout.es.js","names":[],"sources":["../../../../../src/insights-v2/blocks/ComponentBlocks/DetailedAccountBlock/layout.ts"],"sourcesContent":["import type { Theme } from '@mui/material/styles'\n\nimport {\n DIRECT_DEPOSIT_COMPLETE_GRADIENT,\n PRIMARY_TILE_GRADIENTS,\n SUCCESS_TILE_GRADIENTS,\n} from '../../../components/celebrationGradients'\nimport type {\n DirectDepositCardStyleProps,\n DirectDepositPillConfig,\n} from '../../../components/DirectDepositCard'\n\nexport const detailedAccountVariant = {\n Neutral: 'detailed_neutral',\n Primary: 'detailed_primary',\n Success: 'detailed_success',\n Celebration: 'detailed_celebration',\n} as const\n\nexport type DetailedAccountVariant =\n (typeof detailedAccountVariant)[keyof typeof detailedAccountVariant]\n\nexport const directDepositVariant = {\n SetUpDirectDeposit: 'set_up_direct_deposit',\n DirectDepositComplete: 'direct_deposit_complete',\n} as const\n\nexport type DirectDepositVariant = (typeof directDepositVariant)[keyof typeof directDepositVariant]\n\nconst VARIANTS = new Set<string>([\n ...Object.values(detailedAccountVariant),\n ...Object.values(directDepositVariant),\n])\n\nexport const isDetailedAccountVariant = (\n variant?: string | null,\n): variant is DetailedAccountVariant | DirectDepositVariant =>\n variant != null && VARIANTS.has(variant)\n\n// Grey tokens don't change with the mode, so pick the one `text.primary` reads on.\nconst neutralPill = (mode: Theme['palette']['mode']): DirectDepositPillConfig => {\n const bgcolor = mode === 'dark' ? 'grey.800' : 'grey.100'\n\n return { bgcolor, borderColor: bgcolor, labelColor: 'text.primary' }\n}\n\nconst PRIMARY_TINT_PILL: DirectDepositPillConfig = {\n bgcolor: 'primary.lighter',\n borderColor: 'primary.lighter',\n labelColor: 'text.primary',\n}\n\nconst SUCCESS_PILL: DirectDepositPillConfig = {\n bgcolor: 'success.main',\n borderColor: 'success.main',\n labelColor: 'success.contrastText',\n}\n\nexport const getLayoutConfig = (\n theme: Theme,\n): Record<DetailedAccountVariant | DirectDepositVariant, DirectDepositCardStyleProps> => {\n const mode = theme.palette.mode\n const neutral: DirectDepositCardStyleProps = {\n bgcolor: 'primary.lighter',\n nameVariant: 'body2',\n pill: neutralPill(mode),\n }\n const primary: DirectDepositCardStyleProps = {\n backgroundImage: PRIMARY_TILE_GRADIENTS[mode],\n bgcolor: 'background.paper',\n nameVariant: 'body1',\n pill: PRIMARY_TINT_PILL,\n }\n const success: DirectDepositCardStyleProps = {\n backgroundImage: SUCCESS_TILE_GRADIENTS[mode],\n bgcolor: 'background.paper',\n nameVariant: 'body1',\n pill: SUCCESS_PILL,\n }\n const celebration: DirectDepositCardStyleProps = {\n backgroundImage: DIRECT_DEPOSIT_COMPLETE_GRADIENT,\n bgcolor: 'background.paper',\n nameVariant: 'body2',\n pill: { ...SUCCESS_PILL, icon: 'check_circle' },\n showConfetti: true,\n }\n\n return {\n [detailedAccountVariant.Neutral]: neutral,\n [detailedAccountVariant.Primary]: primary,\n [detailedAccountVariant.Success]: success,\n [detailedAccountVariant.Celebration]: celebration,\n [directDepositVariant.SetUpDirectDeposit]: neutral,\n [directDepositVariant.DirectDepositComplete]: celebration,\n }\n}\n"],"mappings":";AAYA,IAAa,IAAyB;AAAA,EACpC,SAAS;AAAA,EACT,SAAS;AAAA,EACT,SAAS;AAAA,EACT,aAAa;AACf,GAKa,IAAuB;AAAA,EAClC,oBAAoB;AAAA,EACpB,uBAAuB;AACzB,GAIM,IAAW,oBAAI,IAAY,CAC/B,GAAG,OAAO,OAAO,CAAsB,GACvC,GAAG,OAAO,OAAO,CAAoB,CACvC,CAAC,GAEY,IAAA,CACX,MAEA,KAAW,QAAQ,EAAS,IAAI,CAAO,GAGnC,IAAA,CAAe,MAA4D;AAC/E,QAAM,IAAU,MAAS,SAAS,aAAa;AAE/C,SAAO;AAAA,IAAE,SAAA;AAAA,IAAS,aAAa;AAAA,IAAS,YAAY;AAAA,EAAe;AACrE,GAEM,IAA6C;AAAA,EACjD,SAAS;AAAA,EACT,aAAa;AAAA,EACb,YAAY;AACd,GAEM,IAAwC;AAAA,EAC5C,SAAS;AAAA,EACT,aAAa;AAAA,EACb,YAAY;AACd,GAEa,IAAA,CACX,MACuF;AACvF,QAAM,IAAO,EAAM,QAAQ,MACrB,IAAuC;AAAA,IAC3C,SAAS;AAAA,IACT,aAAa;AAAA,IACb,MAAM,EAAY,CAAI;AAAA,EACxB,GACM,IAAuC;AAAA,IAC3C,iBAAiB,EAAuB,CAAA;AAAA,IACxC,SAAS;AAAA,IACT,aAAa;AAAA,IACb,MAAM;AAAA,EACR,GACM,IAAuC;AAAA,IAC3C,iBAAiB,EAAuB,CAAA;AAAA,IACxC,SAAS;AAAA,IACT,aAAa;AAAA,IACb,MAAM;AAAA,EACR,GACM,IAA2C;AAAA,IAC/C,iBAAiB;AAAA,IACjB,SAAS;AAAA,IACT,aAAa;AAAA,IACb,MAAM;AAAA,MAAE,GAAG;AAAA,MAAc,MAAM;AAAA,IAAe;AAAA,IAC9C,cAAc;AAAA,EAChB;AAEA,SAAO;AAAA,IACJ,CAAA,EAAuB,OAAA,GAAU;AAAA,IACjC,CAAA,EAAuB,OAAA,GAAU;AAAA,IACjC,CAAA,EAAuB,OAAA,GAAU;AAAA,IACjC,CAAA,EAAuB,WAAA,GAAc;AAAA,IACrC,CAAA,EAAqB,kBAAA,GAAqB;AAAA,IAC1C,CAAA,EAAqB,qBAAA,GAAwB;AAAA,EAChD;AACF"}
|
|
@@ -75,11 +75,11 @@ var w = /^\d{4}-\d{2}-\d{2}$/, T = {
|
|
|
75
75
|
} }, s))]
|
|
76
76
|
})]
|
|
77
77
|
}), G = ({ payload: t }) => {
|
|
78
|
-
const { instance_slot: r = {}, is_zero_state: s } = t, o = r.data, f = y(a(o, "amount")), x = a(o, "date"),
|
|
79
|
-
if (s || f === void 0 || !
|
|
78
|
+
const { instance_slot: r = {}, is_zero_state: s } = t, o = r.data, f = y(a(o, "amount")), x = a(o, "date"), p = k(n(x) ?? y(x)), c = n(a(o, "primary_text")), l = n(a(o, "amount_label")), h = n(a(o, "header_text"));
|
|
79
|
+
if (s || f === void 0 || !p || !c || !l || !h) return null;
|
|
80
80
|
const g = _(Math.abs(f), S.cents);
|
|
81
81
|
return /* @__PURE__ */ d(i, {
|
|
82
|
-
"aria-label": `${
|
|
82
|
+
"aria-label": `${c} ${g} ${l} ${p}`,
|
|
83
83
|
"data-testid": "fee-charged-block",
|
|
84
84
|
direction: "row",
|
|
85
85
|
role: "img",
|
|
@@ -106,10 +106,9 @@ var w = /^\d{4}-\d{2}-\d{2}$/, T = {
|
|
|
106
106
|
children: [
|
|
107
107
|
/* @__PURE__ */ e(m, {
|
|
108
108
|
variant: "body2",
|
|
109
|
-
children:
|
|
109
|
+
children: c
|
|
110
110
|
}),
|
|
111
111
|
/* @__PURE__ */ e(m, {
|
|
112
|
-
bold: !0,
|
|
113
112
|
component: "span",
|
|
114
113
|
sx: { overflowWrap: "anywhere" },
|
|
115
114
|
variant: "h2",
|
|
@@ -117,7 +116,7 @@ var w = /^\d{4}-\d{2}-\d{2}$/, T = {
|
|
|
117
116
|
}),
|
|
118
117
|
/* @__PURE__ */ e(m, {
|
|
119
118
|
variant: "body2",
|
|
120
|
-
children: `${
|
|
119
|
+
children: `${l} ${p}`
|
|
121
120
|
})
|
|
122
121
|
]
|
|
123
122
|
}), /* @__PURE__ */ e(O, { title: h })]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FeeChargedBlock.es.js","names":[],"sources":["../../../../../src/insights-v2/blocks/ComponentBlocks/FeeChargedBlock/FeeChargedBlock.tsx"],"sourcesContent":["import Box from '@mui/material/Box'\nimport Stack from '@mui/material/Stack'\n\nimport { parseISO } from 'date-fns'\n\nimport { Text } from '@mxenabled/mxui'\nimport { AccountBalance } from '@mxenabled/mx-icons'\n\nimport { slot } from '../../../../core/types/Insights'\nimport { formatDate } from '../../../../core/constants'\nimport { fromUnixUTC } from '../../../../core/utils/DateUtil'\nimport { CURRENCY_FORMAT, formatCurrency } from '../../../../core/utils/NumberFormatting'\nimport { ELEVATION_SHADOW } from '../../../components/shared/elevation'\nimport { asNonEmptyText, asNumber } from '../../slotReaders'\nimport type { BlockProps } from '../../types'\n\nconst ISO_DATE = /^\\d{4}-\\d{2}-\\d{2}$/\nconst SHORT_DATE_FORMAT = { month: '2-digit', day: '2-digit', year: '2-digit' }\n\n/**\n * Formats an ISO `YYYY-MM-DD` date (local midnight) or a unix timestamp (its UTC calendar day) as\n * `MM/dd/yy`; undefined for any other string.\n */\nexport const formatStatementDate = (value?: string | number): string | undefined => {\n if (typeof value === 'number') return formatDate(fromUnixUTC(value), SHORT_DATE_FORMAT)\n if (!value || !ISO_DATE.test(value)) return undefined\n\n const parsed = parseISO(value)\n\n return Number.isNaN(parsed.getTime()) ? undefined : formatDate(parsed, SHORT_DATE_FORMAT)\n}\n\n// Widths (px) of the statement drawing's placeholder text lines, from Figma.\nconst STATEMENT_LINES = [34, 120, 120, 112, 77, 153, 153, 153, 153].map((width, line) => ({\n height: line === 0 ? '2px' : '1px',\n line,\n width,\n}))\n\nconst StatementGraphic = ({ title }: { title: string }) => (\n <Stack\n aria-hidden={true}\n sx={{\n bgcolor: 'background.paper',\n bottom: 0,\n boxShadow: ELEVATION_SHADOW[1],\n gap: 10,\n left: 144,\n overflow: 'clip',\n p: 13,\n position: 'absolute',\n right: -12,\n top: 24,\n }}\n >\n <Stack\n sx={{\n alignItems: 'center',\n alignSelf: 'flex-start',\n bgcolor: 'action.selected',\n borderRadius: '4px',\n color: 'primary.light',\n justifyContent: 'center',\n p: 2,\n }}\n >\n <AccountBalance sx={{ fontSize: 12 }} />\n </Stack>\n <Stack sx={{ gap: 3 }}>\n <Text bold={true} sx={{ color: 'primary.light' }} variant=\"tiny\">\n {title}\n </Text>\n {STATEMENT_LINES.map(({ height, line, width }) => (\n <Box\n key={line}\n sx={{\n bgcolor: 'action.selected',\n borderRadius: '34px',\n flexShrink: 0,\n height,\n maxWidth: '100%',\n width,\n }}\n />\n ))}\n </Stack>\n </Stack>\n)\n\n/**\n * The fee card (Figma 433:94157): every value and word comes from `instance_slot.data`. The card\n * renders nothing if any is missing.\n */\nconst FeeChargedBlock = ({ payload }: BlockProps) => {\n const { instance_slot = {}, is_zero_state } = payload\n const data = instance_slot.data\n const amount = asNumber(slot(data, 'amount'))\n const rawDate = slot(data, 'date')\n // An ISO date string or unix seconds.\n const date = formatStatementDate(asNonEmptyText(rawDate) ?? asNumber(rawDate))\n const primaryText = asNonEmptyText(slot(data, 'primary_text'))\n const amountLabel = asNonEmptyText(slot(data, 'amount_label'))\n const headerText = asNonEmptyText(slot(data, 'header_text'))\n\n if (\n is_zero_state ||\n amount === undefined ||\n !date ||\n !primaryText ||\n !amountLabel ||\n !headerText\n ) {\n return null\n }\n\n const formattedAmount = formatCurrency(Math.abs(amount), CURRENCY_FORMAT.cents)\n\n return (\n <Stack\n aria-label={`${primaryText} ${formattedAmount} ${amountLabel} ${date}`}\n data-testid=\"fee-charged-block\"\n direction=\"row\"\n role=\"img\"\n sx={{\n // Figma 433:94157\n background: (theme) =>\n `linear-gradient(145deg, ${theme.palette.primary.main} 0.56%, ${theme.palette.primary.dark} 112.3%)`,\n alignItems: 'center',\n // Needed: the shared Stack theme centres row content by default.\n justifyContent: 'flex-start',\n overflow: 'clip',\n pl: 24,\n pr: 16,\n position: 'relative',\n py: 24,\n width: '100%',\n }}\n >\n <Stack\n aria-hidden={true}\n sx={{ color: 'primary.contrastText', flex: 1, gap: 2, maxWidth: 120, minWidth: 0 }}\n >\n <Text variant=\"body2\">{primaryText}</Text>\n {/* Long amounts ($1,234.56) wrap inside the column rather than run under the drawing. */}\n <Text
|
|
1
|
+
{"version":3,"file":"FeeChargedBlock.es.js","names":[],"sources":["../../../../../src/insights-v2/blocks/ComponentBlocks/FeeChargedBlock/FeeChargedBlock.tsx"],"sourcesContent":["import Box from '@mui/material/Box'\nimport Stack from '@mui/material/Stack'\n\nimport { parseISO } from 'date-fns'\n\nimport { Text } from '@mxenabled/mxui'\nimport { AccountBalance } from '@mxenabled/mx-icons'\n\nimport { slot } from '../../../../core/types/Insights'\nimport { formatDate } from '../../../../core/constants'\nimport { fromUnixUTC } from '../../../../core/utils/DateUtil'\nimport { CURRENCY_FORMAT, formatCurrency } from '../../../../core/utils/NumberFormatting'\nimport { ELEVATION_SHADOW } from '../../../components/shared/elevation'\nimport { asNonEmptyText, asNumber } from '../../slotReaders'\nimport type { BlockProps } from '../../types'\n\nconst ISO_DATE = /^\\d{4}-\\d{2}-\\d{2}$/\nconst SHORT_DATE_FORMAT = { month: '2-digit', day: '2-digit', year: '2-digit' }\n\n/**\n * Formats an ISO `YYYY-MM-DD` date (local midnight) or a unix timestamp (its UTC calendar day) as\n * `MM/dd/yy`; undefined for any other string.\n */\nexport const formatStatementDate = (value?: string | number): string | undefined => {\n if (typeof value === 'number') return formatDate(fromUnixUTC(value), SHORT_DATE_FORMAT)\n if (!value || !ISO_DATE.test(value)) return undefined\n\n const parsed = parseISO(value)\n\n return Number.isNaN(parsed.getTime()) ? undefined : formatDate(parsed, SHORT_DATE_FORMAT)\n}\n\n// Widths (px) of the statement drawing's placeholder text lines, from Figma.\nconst STATEMENT_LINES = [34, 120, 120, 112, 77, 153, 153, 153, 153].map((width, line) => ({\n height: line === 0 ? '2px' : '1px',\n line,\n width,\n}))\n\nconst StatementGraphic = ({ title }: { title: string }) => (\n <Stack\n aria-hidden={true}\n sx={{\n bgcolor: 'background.paper',\n bottom: 0,\n boxShadow: ELEVATION_SHADOW[1],\n gap: 10,\n left: 144,\n overflow: 'clip',\n p: 13,\n position: 'absolute',\n right: -12,\n top: 24,\n }}\n >\n <Stack\n sx={{\n alignItems: 'center',\n alignSelf: 'flex-start',\n bgcolor: 'action.selected',\n borderRadius: '4px',\n color: 'primary.light',\n justifyContent: 'center',\n p: 2,\n }}\n >\n <AccountBalance sx={{ fontSize: 12 }} />\n </Stack>\n <Stack sx={{ gap: 3 }}>\n <Text bold={true} sx={{ color: 'primary.light' }} variant=\"tiny\">\n {title}\n </Text>\n {STATEMENT_LINES.map(({ height, line, width }) => (\n <Box\n key={line}\n sx={{\n bgcolor: 'action.selected',\n borderRadius: '34px',\n flexShrink: 0,\n height,\n maxWidth: '100%',\n width,\n }}\n />\n ))}\n </Stack>\n </Stack>\n)\n\n/**\n * The fee card (Figma 433:94157): every value and word comes from `instance_slot.data`. The card\n * renders nothing if any is missing.\n */\nconst FeeChargedBlock = ({ payload }: BlockProps) => {\n const { instance_slot = {}, is_zero_state } = payload\n const data = instance_slot.data\n const amount = asNumber(slot(data, 'amount'))\n const rawDate = slot(data, 'date')\n // An ISO date string or unix seconds.\n const date = formatStatementDate(asNonEmptyText(rawDate) ?? asNumber(rawDate))\n const primaryText = asNonEmptyText(slot(data, 'primary_text'))\n const amountLabel = asNonEmptyText(slot(data, 'amount_label'))\n const headerText = asNonEmptyText(slot(data, 'header_text'))\n\n if (\n is_zero_state ||\n amount === undefined ||\n !date ||\n !primaryText ||\n !amountLabel ||\n !headerText\n ) {\n return null\n }\n\n const formattedAmount = formatCurrency(Math.abs(amount), CURRENCY_FORMAT.cents)\n\n return (\n <Stack\n aria-label={`${primaryText} ${formattedAmount} ${amountLabel} ${date}`}\n data-testid=\"fee-charged-block\"\n direction=\"row\"\n role=\"img\"\n sx={{\n // Figma 433:94157\n background: (theme) =>\n `linear-gradient(145deg, ${theme.palette.primary.main} 0.56%, ${theme.palette.primary.dark} 112.3%)`,\n alignItems: 'center',\n // Needed: the shared Stack theme centres row content by default.\n justifyContent: 'flex-start',\n overflow: 'clip',\n pl: 24,\n pr: 16,\n position: 'relative',\n py: 24,\n width: '100%',\n }}\n >\n <Stack\n aria-hidden={true}\n sx={{ color: 'primary.contrastText', flex: 1, gap: 2, maxWidth: 120, minWidth: 0 }}\n >\n <Text variant=\"body2\">{primaryText}</Text>\n {/* Long amounts ($1,234.56) wrap inside the column rather than run under the drawing. */}\n <Text component=\"span\" sx={{ overflowWrap: 'anywhere' }} variant=\"h2\">\n {formattedAmount}\n </Text>\n <Text variant=\"body2\">{`${amountLabel} ${date}`}</Text>\n </Stack>\n <StatementGraphic title={headerText} />\n </Stack>\n )\n}\n\nexport default FeeChargedBlock\n"],"mappings":"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"}
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { BlockProps } from '../../types';
|
|
2
|
-
/** beatContext key: the survey's shown event already fired for this beat (survives a remount after Undo). */
|
|
3
|
-
export declare const SURVEY_SHOWN_KEY = "survey_shown";
|
|
4
|
-
/** beatContext key: the result phase ('sent' | 'error'), so a remount shows it, not the survey again. */
|
|
5
|
-
export declare const SURVEY_PHASE_KEY = "survey_phase";
|
|
6
2
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
3
|
+
* A survey in the card: one step per screen (a 1-5 rating or a free-text answer), then its result.
|
|
4
|
+
* The block draws the current step, keeping the answers in the beat context, and the result; the
|
|
5
|
+
* card's primary CTA (`answer_feedback_survey`) moves on and submits. The question is the card's title.
|
|
10
6
|
*/
|
|
11
7
|
declare const FeedbackBlock: (({ beatGuid, payload }: BlockProps) => import("react/jsx-runtime").JSX.Element | null) & {
|
|
12
8
|
displayName: string;
|