@deframe-sdk/components 0.1.67 → 0.1.69

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/dist/index.d.mts CHANGED
@@ -2261,7 +2261,8 @@ interface EarnCategoryDefinition {
2261
2261
  imageUrl: string;
2262
2262
  alt: string;
2263
2263
  title: string;
2264
- assetFilter: string[];
2264
+ /** @deprecated Category filtering belongs in the SDK layer. */
2265
+ assetFilter?: string[];
2265
2266
  }
2266
2267
  declare const EARN_CATEGORY_DEFINITIONS: Omit<EarnCategoryDefinition, 'alt' | 'title'>[];
2267
2268
  interface EarnStrategyInfo {
@@ -2269,6 +2270,10 @@ interface EarnStrategyInfo {
2269
2270
  assetName: string;
2270
2271
  network: string;
2271
2272
  logourl: string;
2273
+ metadata?: {
2274
+ displayName?: string;
2275
+ displayLogo?: string;
2276
+ } | null;
2272
2277
  }
2273
2278
  interface EarnSpotPosition {
2274
2279
  underlyingBalanceUSD: number;
@@ -2297,12 +2302,19 @@ interface EarnStrategy {
2297
2302
  logourl: string;
2298
2303
  apy: number;
2299
2304
  apyFormatted: string;
2305
+ metadata?: {
2306
+ displayName?: string;
2307
+ displayLogo?: string;
2308
+ } | null;
2300
2309
  }
2310
+ type EarnStrategiesByCategory = Record<string, EarnStrategy[]>;
2301
2311
  interface EarnDesktopViewSimpleProps extends Partial<EarnDesktopViewProps> {
2302
2312
  /** Positions data — mirrors WalletPositionsResponse */
2303
2313
  positions?: EarnPositionsData;
2304
- /** All available strategies mirrors StrategyWithApy[] */
2314
+ /** @deprecated Pass `strategiesByCategory`; the SDK layer owns category filtering. */
2305
2315
  strategies?: EarnStrategy[];
2316
+ /** Strategies already filtered/grouped by category by the host SDK layer */
2317
+ strategiesByCategory?: EarnStrategiesByCategory;
2306
2318
  /** Investment history items — mirrors HistoryItem[] */
2307
2319
  historyItems?: EarnHistoryItem[];
2308
2320
  /** Currency formatter — e.g. (1000) => "R$ 1.000,00" */
@@ -2325,7 +2337,7 @@ interface EarnDesktopViewSimpleProps extends Partial<EarnDesktopViewProps> {
2325
2337
  onHistoryDetail?: (historyItemId: string, isDeposit: boolean) => void;
2326
2338
  /** Called when user clicks the history button */
2327
2339
  onHistory?: () => void;
2328
- /** Category definitions (titles, alt text, asset filters). Consumer must provide translated alt/title. */
2340
+ /** Category definitions (titles and alt text). Consumer must provide translated alt/title. */
2329
2341
  categories: EarnCategoryDefinition[];
2330
2342
  }
2331
2343
  declare const EarnDesktopViewSimple: React__default.FC<EarnDesktopViewSimpleProps>;
@@ -3665,4 +3677,4 @@ interface DeframeTheme {
3665
3677
  colors?: DeframeThemeColors;
3666
3678
  }
3667
3679
 
3668
- export { ActionButton, ActionSheet, type ActionSheetProps, AddressDisplay, type AddressDisplayProps, ApyRange, type ApyRangeProps, BackButton, type BackButtonProps, BackgroundContainer, type BackgroundContainerProps, type BalanceDomain, BannerNotification, type BannerNotificationProps, type ButtonProps, type ChainItem, type ChainOption, Chip, ChipGroup, type ChipGroupProps, type ChipOption, type ChipProps, ChoiceCard, type ChoiceCardProps, type ChooseANetworkLabels, ChooseANetworkView, type ChooseANetworkViewProps, ChooseAStrategyActionsheetView, type ChooseAStrategyActionsheetViewProps, type ChooseAnAssetSwapLabels, ChooseAnAssetSwapView, type ChooseAnAssetSwapViewProps, type ChooseNetworkAndAssetLabels, ChooseNetworkAndAssetViewSimple, type ChooseNetworkAndAssetViewSimpleProps, CloseButton, type CloseButtonProps, CollapsibleInfoRow, type CollapsibleInfoRowProps, CollapsibleSection, type CollapsibleSectionProps, type ConfirmSwapButtonLabels, ConfirmSwapButtonView, type ConfirmSwapButtonViewProps, ConfirmSwapButtonViewSimple, ConnectWalletList, type ConnectWalletListProps, Currency, type CurrencyProps, type CurrencyType, DashboardBalancesBreakdown, type DashboardBalancesBreakdownProps, DashboardCard, type DashboardCardProps, DashboardInvestmentOpportunitiesView, type DashboardInvestmentOpportunitiesViewProps, DashboardPortfolioView, type DashboardPortfolioViewProps, DashboardPortfolioViewSimple, DashboardRecentTransactionsView, type DashboardRecentTransactionsViewProps, DashboardRecentTransactionsViewSimple, DashboardStrategiesListView, type DashboardStrategiesListViewProps, type DashboardStrategyItem, type DashboardTokenItem, DashboardTokenListView, type DashboardTokenListViewProps, DashboardTokensView, type DashboardTokensViewProps, DashboardTokensViewSimple, DashboardTransactionsPlaceholder, DashboardView, type DashboardViewProps, DashboardViewSimple, type DashboardViewSimpleProps, DeframeComponentsProvider, type DeframeTheme, type DeframeThemeColors, DepositSuccessIcon, type DetailItem, DetailsHeader, type DetailsHeaderProps, EARN_CATEGORY_DEFINITIONS, EarnAmountInputView, type EarnAmountInputViewProps, EarnBalanceCard, type EarnBalanceCardProps, EarnBytecodeErrorView, type EarnBytecodeErrorViewProps, type EarnCategoryDefinition, EarnDepositFailedSimpleView, EarnDepositFailedView, type EarnDepositFailedViewProps, EarnDepositFormView, type EarnDepositFormViewProps, EarnDepositFormViewSimple, EarnDepositProcessingSimpleView, EarnDepositProcessingView, type EarnDepositProcessingViewProps, EarnDepositSuccessSimpleView, EarnDepositSuccessView, type EarnDepositSuccessViewProps, EarnDepositWarningSimpleView, EarnDepositWarningView, type EarnDepositWarningViewProps, EarnDesktopView, type EarnDesktopViewProps, EarnDesktopViewSimple, type EarnDesktopViewSimpleProps, type EarnExploreGridItem, EarnExploreGridView, type EarnExploreGridViewProps, EarnFlowSkeletonSimple, EarnHistoryView, type EarnHistoryViewLabels, type EarnHistoryViewProps, type EarnInvestedSectionItem, EarnInvestedSectionView, type EarnInvestedSectionViewProps, type EarnInvestmentDetailsTransaction, EarnInvestmentDetailsView, type EarnInvestmentDetailsViewProps, EarnInvestmentSummaryView, type EarnInvestmentSummaryViewProps, EarnNoBalanceNotificationView, type EarnNoBalanceNotificationViewProps, EarnOverviewView, type EarnOverviewViewProps, EarnPercentageButtonsView, type EarnPercentageButtonsViewProps, EarnPositionCardView, type EarnPositionCardViewProps, EarnRecentTransactionsView, type EarnRecentTransactionsViewProps, EarnTokenSelectorView, type EarnTokenSelectorViewProps, EarnTxStatusCardView, type EarnTxStatusCardViewProps, EarnWithdrawFailedSimpleView, EarnWithdrawFailedView, type EarnWithdrawFailedViewProps, EarnWithdrawFormView, type EarnWithdrawFormViewProps, EarnWithdrawFormViewSimple, EarnWithdrawProcessingSimpleView, EarnWithdrawProcessingView, type EarnWithdrawProcessingViewProps, EarnWithdrawSuccessSimpleView, EarnWithdrawSuccessView, type EarnWithdrawSuccessViewProps, EarnWithdrawTokenSelectorView, type EarnWithdrawTokenSelectorViewProps, EarnWithdrawWarningSimpleView, EarnWithdrawWarningView, type EarnWithdrawWarningViewProps, type ExploreStrategyViewItem, Currency as Fiat, type FiatProps, FlexCol, type FlexColProps, FlexRow, type FlexRowProps, type GroupedInvestedItem, type GroupedStrategyItem, type GroupedStrategyListItem, GroupedStrategyListView, type GroupedStrategyListViewProps, HighRiskBadge, type HighRiskBadgeProps, type HistoryAssetViewProps, HistoryDepositDetailsView, type HistoryDetailsLabels, type HistoryDetailsStatus, type HistoryDetailsViewProps, HistoryListItem, type HistoryListItemAsset, type HistoryListItemData, type HistoryListItemFiat, type HistoryListItemLabels, type HistoryListItemProps, HistoryListItemSimple, type HistoryListItemSimpleProps, type HistoryListItemStatus, type HistoryListItemType, HistoryListSkeleton, HistoryListView, type HistoryListViewGroup, type HistoryListViewProps, type HistorySwapDetailsLabels, HistorySwapDetailsView, type HistorySwapDetailsViewProps, HistoryTabEmpty, type HistoryTabEmptyProps, HistoryWithdrawDetailsView, InfoLabel, type InfoLabelProps, InfoRow, InfoRowIconLabel, type InfoRowIconLabelProps, InfoRowIconValue, type InfoRowIconValueProps, type InfoRowProps, InfoRowWithIcon, type InfoRowWithIconProps, InfoValue, type InfoValueProps, Input$1 as Input, InputField, type InputFieldProps, type InputFieldRegistration, InputLabel, type InputProps, Input as InputRoot, InvestmentCrossChainProcessingSimpleView, InvestmentCrossChainProcessingView, type InvestmentCrossChainProcessingViewProps, type KYCAction, KYCActionRow, type KYCActionRowProps, KYCAddressPage, type KYCAddressPageProps, type KYCBannerVariant, KYCBasicDataPage, type KYCBasicDataPageProps, KYCChecklistCard, KYCChecklistItem, type KYCChecklistItemData, KYCDataCard, type KYCDataCardProps, type KYCDataField, KYCDocumentPage, type KYCDocumentPageProps, KYCEditPage, type KYCEditPageProps, KYCFieldMessage, type KYCFieldMessageProps, type KYCFieldMessageTone, KYCFormPage, type KYCFormPageProps, KYCInfoRow, type KYCInfoRowProps, KYCIntroPage, type KYCIntroPageProps, KYCLoadingPage, type KYCLoadingPageProps, KYCMessageBanner, type KYCMessageBannerProps, KYCPageHeader, type KYCPageHeaderProps, KYCPageSection, type KYCPageSectionProps, KYCPageShell, type KYCPageShellProps, type KYCPanelStatus, type KYCReviewCard, KYCReviewPage, type KYCReviewPageProps, KYCReviewPageSkeleton, type KYCReviewPageSkeletonProps, type KYCStatusItem, KYCStatusItemCard, type KYCStatusItemCardProps, KYCStatusPage, type KYCStatusPageProps, KYCStatusPanel, type KYCStatusPanelProps, KYCStepIndicator, type KYCStepIndicatorProps, type KYCVisualVariant, KycLoadingView, type KycLoadingViewProps, KycRequiredView, type KycRequiredViewProps, Label, type LabelProps, type LabelVariant, Link, type LinkProps, ListItem, ListItemContent, ListItemLeftSide, type ListItemProps, ListItemRightSide, LoadingDots, type LoadingDotsProps, LowRiskBadge, type LowRiskBadgeProps, MediumRiskBadge, type MediumRiskBadgeProps, type MethodOption, Navbar, type NavbarProps, type NetworkOption, OffchainMethodSelectionView, type OffchainMethodSelectionViewProps, OfframpFailedSimpleView, OfframpInputFormSimpleView, type OfframpInputFormSimpleViewProps, OfframpInputFormView, type OfframpInputFormViewProps, OfframpProcessingSimpleView, OfframpProcessingView, type OfframpProcessingViewProps, OfframpSuccessSimpleView, OfframpSuccessView, type OfframpSuccessViewProps, OnchainDepositFormSimpleView, OnchainDepositFormView, type OnchainDepositFormViewProps, OnchainDepositSuccessSimpleView, OnchainDepositSuccessView, type OnchainDepositSuccessViewProps, OnchainWithdrawChainSelectorView, type OnchainWithdrawChainSelectorViewProps, OnchainWithdrawFailedSimpleView, OnchainWithdrawFailedView, type OnchainWithdrawFailedViewProps, OnchainWithdrawFormSimpleView, type OnchainWithdrawFormSimpleViewProps, OnchainWithdrawFormView, type OnchainWithdrawFormViewProps, OnchainWithdrawProcessingSimpleView, type OnchainWithdrawProcessingViewProps, OnchainWithdrawSignatureWarningSimpleView, OnchainWithdrawSignatureWarningView, type OnchainWithdrawSignatureWarningViewProps, OnchainWithdrawSuccessSimpleView, OnchainWithdrawSuccessView, type OnchainWithdrawSuccessViewProps, OnrampFormSimpleView, type OnrampFormSimpleViewProps, OnrampFormView, type OnrampFormViewProps, OnrampPixcodeView, type OnrampPixcodeViewProps, OnrampSuccessSimpleView, OnrampSuccessView, type OnrampSuccessViewProps, PercentageButton, PrimaryButton, ProcessingBadge, type ProcessingBadgeProps, ProgressIndicator, type ProgressIndicatorProps, ScrollableContent, type ScrollableContentProps, SearchEmptyState, type SearchEmptyStateProps, SearchInput, type SearchInputProps, SecondaryButton, SectionCard, type SectionCardProps, Select, SelectContent, type SelectContentProps, SelectItem, type SelectItemProps, type SelectProps, SelectTrigger, type SelectTriggerProps, Skeleton, type SkeletonProps, StepDisplay, type StepDisplayProps, StepStatusIcon, type StepStatusIconProps, StepStatusText, type StepStatusTextProps, StrategyDetailsView, type StrategyDetailsViewProps, StrategyGridCard, type StrategyGridCardProps, SummaryDetails, SummaryDetailsCryptoControlV2, type SummaryDetailsProps, SwapAdvancedSettingsView, type SwapAdvancedSettingsViewProps, SwapAmountInputView, type SwapAmountInputViewProps, type SwapCardLabels, SwapCrossChainProcessingView, type SwapCrossChainProcessingViewProps, SwapCrossChainProcessingViewSimple, type SwapFormLabels, SwapFormView, type SwapFormViewProps, SwapFormViewSimple, SwapFromCardView, type SwapFromCardViewProps, SwapFromCardViewSimple, type SwapFromCardViewSimpleProps, type SwapHistoryItem, type SwapHistoryLabels, SwapHistoryView, type SwapHistoryViewProps, SwapHistoryViewSimple, type SwapHistoryViewSimpleProps, type SwapNetworkSelectorViewProps, type SwapOutputAmountViewProps, type SwapPriceImpactWarningData, SwapProcessingView, type SwapProcessingViewProps, SwapProcessingViewSimple, type SwapQuoteBlockchainCostsViewProps, type SwapQuoteDetailsLabels, SwapQuoteDetailsView, type SwapQuoteDetailsViewProps, type SwapQuoteErrorsViewProps, type SwapQuoteHeaderViewProps, SwapSignatureWarningView, type SwapSignatureWarningViewProps, SwapSignatureWarningViewSimple, type SwapSlippageToleranceButtonsViewProps, type SwapSuccessLabels, SwapSuccessView, type SwapSuccessViewProps, SwapSuccessViewSimple, SwapToCardView, type SwapToCardViewProps, SwapToCardViewSimple, type SwapTokenSelectorViewProps, SwapTransactionFailedView, type SwapTransactionFailedViewProps, SwapTransactionFailedViewSimple, type SwapValidationCode, SwapWidgetFallbackView, type SwapWidgetFallbackViewProps, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, TertiaryButton, Text, TextAccent, type TextAccentProps, TextBody, type TextBodyProps, TextHeading, type TextHeadingProps, Title, type TokenData, TokenWithChainBadge, type TokenWithChainBadgeProps, TransactionProcessingDetails, type TransactionProcessingDetailsLabels, type TransactionProcessingDetailsProps, TransactionScreen, TransactionScreenIcon, type TransactionScreenIconProps, TransactionScreenInvestmentCard, type TransactionScreenInvestmentCardProps, type TransactionScreenProps, type TransactionStep, type TransactionStepStatus, type WalletBalanceItem, WalletBalances, type WalletBalancesProps, WalletConnectPanel, type WalletConnectPanelProps, WalletItem, type WalletItemProps, ConnectWalletList as WalletList, WalletListContainer, type WalletListContainerProps, type WalletOption, WithdrawFailedIcon, WithdrawSuccessIcon, isDustValue, truncateAddress };
3680
+ export { ActionButton, ActionSheet, type ActionSheetProps, AddressDisplay, type AddressDisplayProps, ApyRange, type ApyRangeProps, BackButton, type BackButtonProps, BackgroundContainer, type BackgroundContainerProps, type BalanceDomain, BannerNotification, type BannerNotificationProps, type ButtonProps, type ChainItem, type ChainOption, Chip, ChipGroup, type ChipGroupProps, type ChipOption, type ChipProps, ChoiceCard, type ChoiceCardProps, type ChooseANetworkLabels, ChooseANetworkView, type ChooseANetworkViewProps, ChooseAStrategyActionsheetView, type ChooseAStrategyActionsheetViewProps, type ChooseAnAssetSwapLabels, ChooseAnAssetSwapView, type ChooseAnAssetSwapViewProps, type ChooseNetworkAndAssetLabels, ChooseNetworkAndAssetViewSimple, type ChooseNetworkAndAssetViewSimpleProps, CloseButton, type CloseButtonProps, CollapsibleInfoRow, type CollapsibleInfoRowProps, CollapsibleSection, type CollapsibleSectionProps, type ConfirmSwapButtonLabels, ConfirmSwapButtonView, type ConfirmSwapButtonViewProps, ConfirmSwapButtonViewSimple, ConnectWalletList, type ConnectWalletListProps, Currency, type CurrencyProps, type CurrencyType, DashboardBalancesBreakdown, type DashboardBalancesBreakdownProps, DashboardCard, type DashboardCardProps, DashboardInvestmentOpportunitiesView, type DashboardInvestmentOpportunitiesViewProps, DashboardPortfolioView, type DashboardPortfolioViewProps, DashboardPortfolioViewSimple, DashboardRecentTransactionsView, type DashboardRecentTransactionsViewProps, DashboardRecentTransactionsViewSimple, DashboardStrategiesListView, type DashboardStrategiesListViewProps, type DashboardStrategyItem, type DashboardTokenItem, DashboardTokenListView, type DashboardTokenListViewProps, DashboardTokensView, type DashboardTokensViewProps, DashboardTokensViewSimple, DashboardTransactionsPlaceholder, DashboardView, type DashboardViewProps, DashboardViewSimple, type DashboardViewSimpleProps, DeframeComponentsProvider, type DeframeTheme, type DeframeThemeColors, DepositSuccessIcon, type DetailItem, DetailsHeader, type DetailsHeaderProps, EARN_CATEGORY_DEFINITIONS, EarnAmountInputView, type EarnAmountInputViewProps, EarnBalanceCard, type EarnBalanceCardProps, EarnBytecodeErrorView, type EarnBytecodeErrorViewProps, type EarnCategoryDefinition, EarnDepositFailedSimpleView, EarnDepositFailedView, type EarnDepositFailedViewProps, EarnDepositFormView, type EarnDepositFormViewProps, EarnDepositFormViewSimple, EarnDepositProcessingSimpleView, EarnDepositProcessingView, type EarnDepositProcessingViewProps, EarnDepositSuccessSimpleView, EarnDepositSuccessView, type EarnDepositSuccessViewProps, EarnDepositWarningSimpleView, EarnDepositWarningView, type EarnDepositWarningViewProps, EarnDesktopView, type EarnDesktopViewProps, EarnDesktopViewSimple, type EarnDesktopViewSimpleProps, type EarnExploreGridItem, EarnExploreGridView, type EarnExploreGridViewProps, EarnFlowSkeletonSimple, EarnHistoryView, type EarnHistoryViewLabels, type EarnHistoryViewProps, type EarnInvestedSectionItem, EarnInvestedSectionView, type EarnInvestedSectionViewProps, type EarnInvestmentDetailsTransaction, EarnInvestmentDetailsView, type EarnInvestmentDetailsViewProps, EarnInvestmentSummaryView, type EarnInvestmentSummaryViewProps, EarnNoBalanceNotificationView, type EarnNoBalanceNotificationViewProps, EarnOverviewView, type EarnOverviewViewProps, EarnPercentageButtonsView, type EarnPercentageButtonsViewProps, EarnPositionCardView, type EarnPositionCardViewProps, EarnRecentTransactionsView, type EarnRecentTransactionsViewProps, type EarnStrategiesByCategory, EarnTokenSelectorView, type EarnTokenSelectorViewProps, EarnTxStatusCardView, type EarnTxStatusCardViewProps, EarnWithdrawFailedSimpleView, EarnWithdrawFailedView, type EarnWithdrawFailedViewProps, EarnWithdrawFormView, type EarnWithdrawFormViewProps, EarnWithdrawFormViewSimple, EarnWithdrawProcessingSimpleView, EarnWithdrawProcessingView, type EarnWithdrawProcessingViewProps, EarnWithdrawSuccessSimpleView, EarnWithdrawSuccessView, type EarnWithdrawSuccessViewProps, EarnWithdrawTokenSelectorView, type EarnWithdrawTokenSelectorViewProps, EarnWithdrawWarningSimpleView, EarnWithdrawWarningView, type EarnWithdrawWarningViewProps, type ExploreStrategyViewItem, Currency as Fiat, type FiatProps, FlexCol, type FlexColProps, FlexRow, type FlexRowProps, type GroupedInvestedItem, type GroupedStrategyItem, type GroupedStrategyListItem, GroupedStrategyListView, type GroupedStrategyListViewProps, HighRiskBadge, type HighRiskBadgeProps, type HistoryAssetViewProps, HistoryDepositDetailsView, type HistoryDetailsLabels, type HistoryDetailsStatus, type HistoryDetailsViewProps, HistoryListItem, type HistoryListItemAsset, type HistoryListItemData, type HistoryListItemFiat, type HistoryListItemLabels, type HistoryListItemProps, HistoryListItemSimple, type HistoryListItemSimpleProps, type HistoryListItemStatus, type HistoryListItemType, HistoryListSkeleton, HistoryListView, type HistoryListViewGroup, type HistoryListViewProps, type HistorySwapDetailsLabels, HistorySwapDetailsView, type HistorySwapDetailsViewProps, HistoryTabEmpty, type HistoryTabEmptyProps, HistoryWithdrawDetailsView, InfoLabel, type InfoLabelProps, InfoRow, InfoRowIconLabel, type InfoRowIconLabelProps, InfoRowIconValue, type InfoRowIconValueProps, type InfoRowProps, InfoRowWithIcon, type InfoRowWithIconProps, InfoValue, type InfoValueProps, Input$1 as Input, InputField, type InputFieldProps, type InputFieldRegistration, InputLabel, type InputProps, Input as InputRoot, InvestmentCrossChainProcessingSimpleView, InvestmentCrossChainProcessingView, type InvestmentCrossChainProcessingViewProps, type KYCAction, KYCActionRow, type KYCActionRowProps, KYCAddressPage, type KYCAddressPageProps, type KYCBannerVariant, KYCBasicDataPage, type KYCBasicDataPageProps, KYCChecklistCard, KYCChecklistItem, type KYCChecklistItemData, KYCDataCard, type KYCDataCardProps, type KYCDataField, KYCDocumentPage, type KYCDocumentPageProps, KYCEditPage, type KYCEditPageProps, KYCFieldMessage, type KYCFieldMessageProps, type KYCFieldMessageTone, KYCFormPage, type KYCFormPageProps, KYCInfoRow, type KYCInfoRowProps, KYCIntroPage, type KYCIntroPageProps, KYCLoadingPage, type KYCLoadingPageProps, KYCMessageBanner, type KYCMessageBannerProps, KYCPageHeader, type KYCPageHeaderProps, KYCPageSection, type KYCPageSectionProps, KYCPageShell, type KYCPageShellProps, type KYCPanelStatus, type KYCReviewCard, KYCReviewPage, type KYCReviewPageProps, KYCReviewPageSkeleton, type KYCReviewPageSkeletonProps, type KYCStatusItem, KYCStatusItemCard, type KYCStatusItemCardProps, KYCStatusPage, type KYCStatusPageProps, KYCStatusPanel, type KYCStatusPanelProps, KYCStepIndicator, type KYCStepIndicatorProps, type KYCVisualVariant, KycLoadingView, type KycLoadingViewProps, KycRequiredView, type KycRequiredViewProps, Label, type LabelProps, type LabelVariant, Link, type LinkProps, ListItem, ListItemContent, ListItemLeftSide, type ListItemProps, ListItemRightSide, LoadingDots, type LoadingDotsProps, LowRiskBadge, type LowRiskBadgeProps, MediumRiskBadge, type MediumRiskBadgeProps, type MethodOption, Navbar, type NavbarProps, type NetworkOption, OffchainMethodSelectionView, type OffchainMethodSelectionViewProps, OfframpFailedSimpleView, OfframpInputFormSimpleView, type OfframpInputFormSimpleViewProps, OfframpInputFormView, type OfframpInputFormViewProps, OfframpProcessingSimpleView, OfframpProcessingView, type OfframpProcessingViewProps, OfframpSuccessSimpleView, OfframpSuccessView, type OfframpSuccessViewProps, OnchainDepositFormSimpleView, OnchainDepositFormView, type OnchainDepositFormViewProps, OnchainDepositSuccessSimpleView, OnchainDepositSuccessView, type OnchainDepositSuccessViewProps, OnchainWithdrawChainSelectorView, type OnchainWithdrawChainSelectorViewProps, OnchainWithdrawFailedSimpleView, OnchainWithdrawFailedView, type OnchainWithdrawFailedViewProps, OnchainWithdrawFormSimpleView, type OnchainWithdrawFormSimpleViewProps, OnchainWithdrawFormView, type OnchainWithdrawFormViewProps, OnchainWithdrawProcessingSimpleView, type OnchainWithdrawProcessingViewProps, OnchainWithdrawSignatureWarningSimpleView, OnchainWithdrawSignatureWarningView, type OnchainWithdrawSignatureWarningViewProps, OnchainWithdrawSuccessSimpleView, OnchainWithdrawSuccessView, type OnchainWithdrawSuccessViewProps, OnrampFormSimpleView, type OnrampFormSimpleViewProps, OnrampFormView, type OnrampFormViewProps, OnrampPixcodeView, type OnrampPixcodeViewProps, OnrampSuccessSimpleView, OnrampSuccessView, type OnrampSuccessViewProps, PercentageButton, PrimaryButton, ProcessingBadge, type ProcessingBadgeProps, ProgressIndicator, type ProgressIndicatorProps, ScrollableContent, type ScrollableContentProps, SearchEmptyState, type SearchEmptyStateProps, SearchInput, type SearchInputProps, SecondaryButton, SectionCard, type SectionCardProps, Select, SelectContent, type SelectContentProps, SelectItem, type SelectItemProps, type SelectProps, SelectTrigger, type SelectTriggerProps, Skeleton, type SkeletonProps, StepDisplay, type StepDisplayProps, StepStatusIcon, type StepStatusIconProps, StepStatusText, type StepStatusTextProps, StrategyDetailsView, type StrategyDetailsViewProps, StrategyGridCard, type StrategyGridCardProps, SummaryDetails, SummaryDetailsCryptoControlV2, type SummaryDetailsProps, SwapAdvancedSettingsView, type SwapAdvancedSettingsViewProps, SwapAmountInputView, type SwapAmountInputViewProps, type SwapCardLabels, SwapCrossChainProcessingView, type SwapCrossChainProcessingViewProps, SwapCrossChainProcessingViewSimple, type SwapFormLabels, SwapFormView, type SwapFormViewProps, SwapFormViewSimple, SwapFromCardView, type SwapFromCardViewProps, SwapFromCardViewSimple, type SwapFromCardViewSimpleProps, type SwapHistoryItem, type SwapHistoryLabels, SwapHistoryView, type SwapHistoryViewProps, SwapHistoryViewSimple, type SwapHistoryViewSimpleProps, type SwapNetworkSelectorViewProps, type SwapOutputAmountViewProps, type SwapPriceImpactWarningData, SwapProcessingView, type SwapProcessingViewProps, SwapProcessingViewSimple, type SwapQuoteBlockchainCostsViewProps, type SwapQuoteDetailsLabels, SwapQuoteDetailsView, type SwapQuoteDetailsViewProps, type SwapQuoteErrorsViewProps, type SwapQuoteHeaderViewProps, SwapSignatureWarningView, type SwapSignatureWarningViewProps, SwapSignatureWarningViewSimple, type SwapSlippageToleranceButtonsViewProps, type SwapSuccessLabels, SwapSuccessView, type SwapSuccessViewProps, SwapSuccessViewSimple, SwapToCardView, type SwapToCardViewProps, SwapToCardViewSimple, type SwapTokenSelectorViewProps, SwapTransactionFailedView, type SwapTransactionFailedViewProps, SwapTransactionFailedViewSimple, type SwapValidationCode, SwapWidgetFallbackView, type SwapWidgetFallbackViewProps, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, TertiaryButton, Text, TextAccent, type TextAccentProps, TextBody, type TextBodyProps, TextHeading, type TextHeadingProps, Title, type TokenData, TokenWithChainBadge, type TokenWithChainBadgeProps, TransactionProcessingDetails, type TransactionProcessingDetailsLabels, type TransactionProcessingDetailsProps, TransactionScreen, TransactionScreenIcon, type TransactionScreenIconProps, TransactionScreenInvestmentCard, type TransactionScreenInvestmentCardProps, type TransactionScreenProps, type TransactionStep, type TransactionStepStatus, type WalletBalanceItem, WalletBalances, type WalletBalancesProps, WalletConnectPanel, type WalletConnectPanelProps, WalletItem, type WalletItemProps, ConnectWalletList as WalletList, WalletListContainer, type WalletListContainerProps, type WalletOption, WithdrawFailedIcon, WithdrawSuccessIcon, isDustValue, truncateAddress };
package/dist/index.d.ts CHANGED
@@ -2261,7 +2261,8 @@ interface EarnCategoryDefinition {
2261
2261
  imageUrl: string;
2262
2262
  alt: string;
2263
2263
  title: string;
2264
- assetFilter: string[];
2264
+ /** @deprecated Category filtering belongs in the SDK layer. */
2265
+ assetFilter?: string[];
2265
2266
  }
2266
2267
  declare const EARN_CATEGORY_DEFINITIONS: Omit<EarnCategoryDefinition, 'alt' | 'title'>[];
2267
2268
  interface EarnStrategyInfo {
@@ -2269,6 +2270,10 @@ interface EarnStrategyInfo {
2269
2270
  assetName: string;
2270
2271
  network: string;
2271
2272
  logourl: string;
2273
+ metadata?: {
2274
+ displayName?: string;
2275
+ displayLogo?: string;
2276
+ } | null;
2272
2277
  }
2273
2278
  interface EarnSpotPosition {
2274
2279
  underlyingBalanceUSD: number;
@@ -2297,12 +2302,19 @@ interface EarnStrategy {
2297
2302
  logourl: string;
2298
2303
  apy: number;
2299
2304
  apyFormatted: string;
2305
+ metadata?: {
2306
+ displayName?: string;
2307
+ displayLogo?: string;
2308
+ } | null;
2300
2309
  }
2310
+ type EarnStrategiesByCategory = Record<string, EarnStrategy[]>;
2301
2311
  interface EarnDesktopViewSimpleProps extends Partial<EarnDesktopViewProps> {
2302
2312
  /** Positions data — mirrors WalletPositionsResponse */
2303
2313
  positions?: EarnPositionsData;
2304
- /** All available strategies mirrors StrategyWithApy[] */
2314
+ /** @deprecated Pass `strategiesByCategory`; the SDK layer owns category filtering. */
2305
2315
  strategies?: EarnStrategy[];
2316
+ /** Strategies already filtered/grouped by category by the host SDK layer */
2317
+ strategiesByCategory?: EarnStrategiesByCategory;
2306
2318
  /** Investment history items — mirrors HistoryItem[] */
2307
2319
  historyItems?: EarnHistoryItem[];
2308
2320
  /** Currency formatter — e.g. (1000) => "R$ 1.000,00" */
@@ -2325,7 +2337,7 @@ interface EarnDesktopViewSimpleProps extends Partial<EarnDesktopViewProps> {
2325
2337
  onHistoryDetail?: (historyItemId: string, isDeposit: boolean) => void;
2326
2338
  /** Called when user clicks the history button */
2327
2339
  onHistory?: () => void;
2328
- /** Category definitions (titles, alt text, asset filters). Consumer must provide translated alt/title. */
2340
+ /** Category definitions (titles and alt text). Consumer must provide translated alt/title. */
2329
2341
  categories: EarnCategoryDefinition[];
2330
2342
  }
2331
2343
  declare const EarnDesktopViewSimple: React__default.FC<EarnDesktopViewSimpleProps>;
@@ -3665,4 +3677,4 @@ interface DeframeTheme {
3665
3677
  colors?: DeframeThemeColors;
3666
3678
  }
3667
3679
 
3668
- export { ActionButton, ActionSheet, type ActionSheetProps, AddressDisplay, type AddressDisplayProps, ApyRange, type ApyRangeProps, BackButton, type BackButtonProps, BackgroundContainer, type BackgroundContainerProps, type BalanceDomain, BannerNotification, type BannerNotificationProps, type ButtonProps, type ChainItem, type ChainOption, Chip, ChipGroup, type ChipGroupProps, type ChipOption, type ChipProps, ChoiceCard, type ChoiceCardProps, type ChooseANetworkLabels, ChooseANetworkView, type ChooseANetworkViewProps, ChooseAStrategyActionsheetView, type ChooseAStrategyActionsheetViewProps, type ChooseAnAssetSwapLabels, ChooseAnAssetSwapView, type ChooseAnAssetSwapViewProps, type ChooseNetworkAndAssetLabels, ChooseNetworkAndAssetViewSimple, type ChooseNetworkAndAssetViewSimpleProps, CloseButton, type CloseButtonProps, CollapsibleInfoRow, type CollapsibleInfoRowProps, CollapsibleSection, type CollapsibleSectionProps, type ConfirmSwapButtonLabels, ConfirmSwapButtonView, type ConfirmSwapButtonViewProps, ConfirmSwapButtonViewSimple, ConnectWalletList, type ConnectWalletListProps, Currency, type CurrencyProps, type CurrencyType, DashboardBalancesBreakdown, type DashboardBalancesBreakdownProps, DashboardCard, type DashboardCardProps, DashboardInvestmentOpportunitiesView, type DashboardInvestmentOpportunitiesViewProps, DashboardPortfolioView, type DashboardPortfolioViewProps, DashboardPortfolioViewSimple, DashboardRecentTransactionsView, type DashboardRecentTransactionsViewProps, DashboardRecentTransactionsViewSimple, DashboardStrategiesListView, type DashboardStrategiesListViewProps, type DashboardStrategyItem, type DashboardTokenItem, DashboardTokenListView, type DashboardTokenListViewProps, DashboardTokensView, type DashboardTokensViewProps, DashboardTokensViewSimple, DashboardTransactionsPlaceholder, DashboardView, type DashboardViewProps, DashboardViewSimple, type DashboardViewSimpleProps, DeframeComponentsProvider, type DeframeTheme, type DeframeThemeColors, DepositSuccessIcon, type DetailItem, DetailsHeader, type DetailsHeaderProps, EARN_CATEGORY_DEFINITIONS, EarnAmountInputView, type EarnAmountInputViewProps, EarnBalanceCard, type EarnBalanceCardProps, EarnBytecodeErrorView, type EarnBytecodeErrorViewProps, type EarnCategoryDefinition, EarnDepositFailedSimpleView, EarnDepositFailedView, type EarnDepositFailedViewProps, EarnDepositFormView, type EarnDepositFormViewProps, EarnDepositFormViewSimple, EarnDepositProcessingSimpleView, EarnDepositProcessingView, type EarnDepositProcessingViewProps, EarnDepositSuccessSimpleView, EarnDepositSuccessView, type EarnDepositSuccessViewProps, EarnDepositWarningSimpleView, EarnDepositWarningView, type EarnDepositWarningViewProps, EarnDesktopView, type EarnDesktopViewProps, EarnDesktopViewSimple, type EarnDesktopViewSimpleProps, type EarnExploreGridItem, EarnExploreGridView, type EarnExploreGridViewProps, EarnFlowSkeletonSimple, EarnHistoryView, type EarnHistoryViewLabels, type EarnHistoryViewProps, type EarnInvestedSectionItem, EarnInvestedSectionView, type EarnInvestedSectionViewProps, type EarnInvestmentDetailsTransaction, EarnInvestmentDetailsView, type EarnInvestmentDetailsViewProps, EarnInvestmentSummaryView, type EarnInvestmentSummaryViewProps, EarnNoBalanceNotificationView, type EarnNoBalanceNotificationViewProps, EarnOverviewView, type EarnOverviewViewProps, EarnPercentageButtonsView, type EarnPercentageButtonsViewProps, EarnPositionCardView, type EarnPositionCardViewProps, EarnRecentTransactionsView, type EarnRecentTransactionsViewProps, EarnTokenSelectorView, type EarnTokenSelectorViewProps, EarnTxStatusCardView, type EarnTxStatusCardViewProps, EarnWithdrawFailedSimpleView, EarnWithdrawFailedView, type EarnWithdrawFailedViewProps, EarnWithdrawFormView, type EarnWithdrawFormViewProps, EarnWithdrawFormViewSimple, EarnWithdrawProcessingSimpleView, EarnWithdrawProcessingView, type EarnWithdrawProcessingViewProps, EarnWithdrawSuccessSimpleView, EarnWithdrawSuccessView, type EarnWithdrawSuccessViewProps, EarnWithdrawTokenSelectorView, type EarnWithdrawTokenSelectorViewProps, EarnWithdrawWarningSimpleView, EarnWithdrawWarningView, type EarnWithdrawWarningViewProps, type ExploreStrategyViewItem, Currency as Fiat, type FiatProps, FlexCol, type FlexColProps, FlexRow, type FlexRowProps, type GroupedInvestedItem, type GroupedStrategyItem, type GroupedStrategyListItem, GroupedStrategyListView, type GroupedStrategyListViewProps, HighRiskBadge, type HighRiskBadgeProps, type HistoryAssetViewProps, HistoryDepositDetailsView, type HistoryDetailsLabels, type HistoryDetailsStatus, type HistoryDetailsViewProps, HistoryListItem, type HistoryListItemAsset, type HistoryListItemData, type HistoryListItemFiat, type HistoryListItemLabels, type HistoryListItemProps, HistoryListItemSimple, type HistoryListItemSimpleProps, type HistoryListItemStatus, type HistoryListItemType, HistoryListSkeleton, HistoryListView, type HistoryListViewGroup, type HistoryListViewProps, type HistorySwapDetailsLabels, HistorySwapDetailsView, type HistorySwapDetailsViewProps, HistoryTabEmpty, type HistoryTabEmptyProps, HistoryWithdrawDetailsView, InfoLabel, type InfoLabelProps, InfoRow, InfoRowIconLabel, type InfoRowIconLabelProps, InfoRowIconValue, type InfoRowIconValueProps, type InfoRowProps, InfoRowWithIcon, type InfoRowWithIconProps, InfoValue, type InfoValueProps, Input$1 as Input, InputField, type InputFieldProps, type InputFieldRegistration, InputLabel, type InputProps, Input as InputRoot, InvestmentCrossChainProcessingSimpleView, InvestmentCrossChainProcessingView, type InvestmentCrossChainProcessingViewProps, type KYCAction, KYCActionRow, type KYCActionRowProps, KYCAddressPage, type KYCAddressPageProps, type KYCBannerVariant, KYCBasicDataPage, type KYCBasicDataPageProps, KYCChecklistCard, KYCChecklistItem, type KYCChecklistItemData, KYCDataCard, type KYCDataCardProps, type KYCDataField, KYCDocumentPage, type KYCDocumentPageProps, KYCEditPage, type KYCEditPageProps, KYCFieldMessage, type KYCFieldMessageProps, type KYCFieldMessageTone, KYCFormPage, type KYCFormPageProps, KYCInfoRow, type KYCInfoRowProps, KYCIntroPage, type KYCIntroPageProps, KYCLoadingPage, type KYCLoadingPageProps, KYCMessageBanner, type KYCMessageBannerProps, KYCPageHeader, type KYCPageHeaderProps, KYCPageSection, type KYCPageSectionProps, KYCPageShell, type KYCPageShellProps, type KYCPanelStatus, type KYCReviewCard, KYCReviewPage, type KYCReviewPageProps, KYCReviewPageSkeleton, type KYCReviewPageSkeletonProps, type KYCStatusItem, KYCStatusItemCard, type KYCStatusItemCardProps, KYCStatusPage, type KYCStatusPageProps, KYCStatusPanel, type KYCStatusPanelProps, KYCStepIndicator, type KYCStepIndicatorProps, type KYCVisualVariant, KycLoadingView, type KycLoadingViewProps, KycRequiredView, type KycRequiredViewProps, Label, type LabelProps, type LabelVariant, Link, type LinkProps, ListItem, ListItemContent, ListItemLeftSide, type ListItemProps, ListItemRightSide, LoadingDots, type LoadingDotsProps, LowRiskBadge, type LowRiskBadgeProps, MediumRiskBadge, type MediumRiskBadgeProps, type MethodOption, Navbar, type NavbarProps, type NetworkOption, OffchainMethodSelectionView, type OffchainMethodSelectionViewProps, OfframpFailedSimpleView, OfframpInputFormSimpleView, type OfframpInputFormSimpleViewProps, OfframpInputFormView, type OfframpInputFormViewProps, OfframpProcessingSimpleView, OfframpProcessingView, type OfframpProcessingViewProps, OfframpSuccessSimpleView, OfframpSuccessView, type OfframpSuccessViewProps, OnchainDepositFormSimpleView, OnchainDepositFormView, type OnchainDepositFormViewProps, OnchainDepositSuccessSimpleView, OnchainDepositSuccessView, type OnchainDepositSuccessViewProps, OnchainWithdrawChainSelectorView, type OnchainWithdrawChainSelectorViewProps, OnchainWithdrawFailedSimpleView, OnchainWithdrawFailedView, type OnchainWithdrawFailedViewProps, OnchainWithdrawFormSimpleView, type OnchainWithdrawFormSimpleViewProps, OnchainWithdrawFormView, type OnchainWithdrawFormViewProps, OnchainWithdrawProcessingSimpleView, type OnchainWithdrawProcessingViewProps, OnchainWithdrawSignatureWarningSimpleView, OnchainWithdrawSignatureWarningView, type OnchainWithdrawSignatureWarningViewProps, OnchainWithdrawSuccessSimpleView, OnchainWithdrawSuccessView, type OnchainWithdrawSuccessViewProps, OnrampFormSimpleView, type OnrampFormSimpleViewProps, OnrampFormView, type OnrampFormViewProps, OnrampPixcodeView, type OnrampPixcodeViewProps, OnrampSuccessSimpleView, OnrampSuccessView, type OnrampSuccessViewProps, PercentageButton, PrimaryButton, ProcessingBadge, type ProcessingBadgeProps, ProgressIndicator, type ProgressIndicatorProps, ScrollableContent, type ScrollableContentProps, SearchEmptyState, type SearchEmptyStateProps, SearchInput, type SearchInputProps, SecondaryButton, SectionCard, type SectionCardProps, Select, SelectContent, type SelectContentProps, SelectItem, type SelectItemProps, type SelectProps, SelectTrigger, type SelectTriggerProps, Skeleton, type SkeletonProps, StepDisplay, type StepDisplayProps, StepStatusIcon, type StepStatusIconProps, StepStatusText, type StepStatusTextProps, StrategyDetailsView, type StrategyDetailsViewProps, StrategyGridCard, type StrategyGridCardProps, SummaryDetails, SummaryDetailsCryptoControlV2, type SummaryDetailsProps, SwapAdvancedSettingsView, type SwapAdvancedSettingsViewProps, SwapAmountInputView, type SwapAmountInputViewProps, type SwapCardLabels, SwapCrossChainProcessingView, type SwapCrossChainProcessingViewProps, SwapCrossChainProcessingViewSimple, type SwapFormLabels, SwapFormView, type SwapFormViewProps, SwapFormViewSimple, SwapFromCardView, type SwapFromCardViewProps, SwapFromCardViewSimple, type SwapFromCardViewSimpleProps, type SwapHistoryItem, type SwapHistoryLabels, SwapHistoryView, type SwapHistoryViewProps, SwapHistoryViewSimple, type SwapHistoryViewSimpleProps, type SwapNetworkSelectorViewProps, type SwapOutputAmountViewProps, type SwapPriceImpactWarningData, SwapProcessingView, type SwapProcessingViewProps, SwapProcessingViewSimple, type SwapQuoteBlockchainCostsViewProps, type SwapQuoteDetailsLabels, SwapQuoteDetailsView, type SwapQuoteDetailsViewProps, type SwapQuoteErrorsViewProps, type SwapQuoteHeaderViewProps, SwapSignatureWarningView, type SwapSignatureWarningViewProps, SwapSignatureWarningViewSimple, type SwapSlippageToleranceButtonsViewProps, type SwapSuccessLabels, SwapSuccessView, type SwapSuccessViewProps, SwapSuccessViewSimple, SwapToCardView, type SwapToCardViewProps, SwapToCardViewSimple, type SwapTokenSelectorViewProps, SwapTransactionFailedView, type SwapTransactionFailedViewProps, SwapTransactionFailedViewSimple, type SwapValidationCode, SwapWidgetFallbackView, type SwapWidgetFallbackViewProps, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, TertiaryButton, Text, TextAccent, type TextAccentProps, TextBody, type TextBodyProps, TextHeading, type TextHeadingProps, Title, type TokenData, TokenWithChainBadge, type TokenWithChainBadgeProps, TransactionProcessingDetails, type TransactionProcessingDetailsLabels, type TransactionProcessingDetailsProps, TransactionScreen, TransactionScreenIcon, type TransactionScreenIconProps, TransactionScreenInvestmentCard, type TransactionScreenInvestmentCardProps, type TransactionScreenProps, type TransactionStep, type TransactionStepStatus, type WalletBalanceItem, WalletBalances, type WalletBalancesProps, WalletConnectPanel, type WalletConnectPanelProps, WalletItem, type WalletItemProps, ConnectWalletList as WalletList, WalletListContainer, type WalletListContainerProps, type WalletOption, WithdrawFailedIcon, WithdrawSuccessIcon, isDustValue, truncateAddress };
3680
+ export { ActionButton, ActionSheet, type ActionSheetProps, AddressDisplay, type AddressDisplayProps, ApyRange, type ApyRangeProps, BackButton, type BackButtonProps, BackgroundContainer, type BackgroundContainerProps, type BalanceDomain, BannerNotification, type BannerNotificationProps, type ButtonProps, type ChainItem, type ChainOption, Chip, ChipGroup, type ChipGroupProps, type ChipOption, type ChipProps, ChoiceCard, type ChoiceCardProps, type ChooseANetworkLabels, ChooseANetworkView, type ChooseANetworkViewProps, ChooseAStrategyActionsheetView, type ChooseAStrategyActionsheetViewProps, type ChooseAnAssetSwapLabels, ChooseAnAssetSwapView, type ChooseAnAssetSwapViewProps, type ChooseNetworkAndAssetLabels, ChooseNetworkAndAssetViewSimple, type ChooseNetworkAndAssetViewSimpleProps, CloseButton, type CloseButtonProps, CollapsibleInfoRow, type CollapsibleInfoRowProps, CollapsibleSection, type CollapsibleSectionProps, type ConfirmSwapButtonLabels, ConfirmSwapButtonView, type ConfirmSwapButtonViewProps, ConfirmSwapButtonViewSimple, ConnectWalletList, type ConnectWalletListProps, Currency, type CurrencyProps, type CurrencyType, DashboardBalancesBreakdown, type DashboardBalancesBreakdownProps, DashboardCard, type DashboardCardProps, DashboardInvestmentOpportunitiesView, type DashboardInvestmentOpportunitiesViewProps, DashboardPortfolioView, type DashboardPortfolioViewProps, DashboardPortfolioViewSimple, DashboardRecentTransactionsView, type DashboardRecentTransactionsViewProps, DashboardRecentTransactionsViewSimple, DashboardStrategiesListView, type DashboardStrategiesListViewProps, type DashboardStrategyItem, type DashboardTokenItem, DashboardTokenListView, type DashboardTokenListViewProps, DashboardTokensView, type DashboardTokensViewProps, DashboardTokensViewSimple, DashboardTransactionsPlaceholder, DashboardView, type DashboardViewProps, DashboardViewSimple, type DashboardViewSimpleProps, DeframeComponentsProvider, type DeframeTheme, type DeframeThemeColors, DepositSuccessIcon, type DetailItem, DetailsHeader, type DetailsHeaderProps, EARN_CATEGORY_DEFINITIONS, EarnAmountInputView, type EarnAmountInputViewProps, EarnBalanceCard, type EarnBalanceCardProps, EarnBytecodeErrorView, type EarnBytecodeErrorViewProps, type EarnCategoryDefinition, EarnDepositFailedSimpleView, EarnDepositFailedView, type EarnDepositFailedViewProps, EarnDepositFormView, type EarnDepositFormViewProps, EarnDepositFormViewSimple, EarnDepositProcessingSimpleView, EarnDepositProcessingView, type EarnDepositProcessingViewProps, EarnDepositSuccessSimpleView, EarnDepositSuccessView, type EarnDepositSuccessViewProps, EarnDepositWarningSimpleView, EarnDepositWarningView, type EarnDepositWarningViewProps, EarnDesktopView, type EarnDesktopViewProps, EarnDesktopViewSimple, type EarnDesktopViewSimpleProps, type EarnExploreGridItem, EarnExploreGridView, type EarnExploreGridViewProps, EarnFlowSkeletonSimple, EarnHistoryView, type EarnHistoryViewLabels, type EarnHistoryViewProps, type EarnInvestedSectionItem, EarnInvestedSectionView, type EarnInvestedSectionViewProps, type EarnInvestmentDetailsTransaction, EarnInvestmentDetailsView, type EarnInvestmentDetailsViewProps, EarnInvestmentSummaryView, type EarnInvestmentSummaryViewProps, EarnNoBalanceNotificationView, type EarnNoBalanceNotificationViewProps, EarnOverviewView, type EarnOverviewViewProps, EarnPercentageButtonsView, type EarnPercentageButtonsViewProps, EarnPositionCardView, type EarnPositionCardViewProps, EarnRecentTransactionsView, type EarnRecentTransactionsViewProps, type EarnStrategiesByCategory, EarnTokenSelectorView, type EarnTokenSelectorViewProps, EarnTxStatusCardView, type EarnTxStatusCardViewProps, EarnWithdrawFailedSimpleView, EarnWithdrawFailedView, type EarnWithdrawFailedViewProps, EarnWithdrawFormView, type EarnWithdrawFormViewProps, EarnWithdrawFormViewSimple, EarnWithdrawProcessingSimpleView, EarnWithdrawProcessingView, type EarnWithdrawProcessingViewProps, EarnWithdrawSuccessSimpleView, EarnWithdrawSuccessView, type EarnWithdrawSuccessViewProps, EarnWithdrawTokenSelectorView, type EarnWithdrawTokenSelectorViewProps, EarnWithdrawWarningSimpleView, EarnWithdrawWarningView, type EarnWithdrawWarningViewProps, type ExploreStrategyViewItem, Currency as Fiat, type FiatProps, FlexCol, type FlexColProps, FlexRow, type FlexRowProps, type GroupedInvestedItem, type GroupedStrategyItem, type GroupedStrategyListItem, GroupedStrategyListView, type GroupedStrategyListViewProps, HighRiskBadge, type HighRiskBadgeProps, type HistoryAssetViewProps, HistoryDepositDetailsView, type HistoryDetailsLabels, type HistoryDetailsStatus, type HistoryDetailsViewProps, HistoryListItem, type HistoryListItemAsset, type HistoryListItemData, type HistoryListItemFiat, type HistoryListItemLabels, type HistoryListItemProps, HistoryListItemSimple, type HistoryListItemSimpleProps, type HistoryListItemStatus, type HistoryListItemType, HistoryListSkeleton, HistoryListView, type HistoryListViewGroup, type HistoryListViewProps, type HistorySwapDetailsLabels, HistorySwapDetailsView, type HistorySwapDetailsViewProps, HistoryTabEmpty, type HistoryTabEmptyProps, HistoryWithdrawDetailsView, InfoLabel, type InfoLabelProps, InfoRow, InfoRowIconLabel, type InfoRowIconLabelProps, InfoRowIconValue, type InfoRowIconValueProps, type InfoRowProps, InfoRowWithIcon, type InfoRowWithIconProps, InfoValue, type InfoValueProps, Input$1 as Input, InputField, type InputFieldProps, type InputFieldRegistration, InputLabel, type InputProps, Input as InputRoot, InvestmentCrossChainProcessingSimpleView, InvestmentCrossChainProcessingView, type InvestmentCrossChainProcessingViewProps, type KYCAction, KYCActionRow, type KYCActionRowProps, KYCAddressPage, type KYCAddressPageProps, type KYCBannerVariant, KYCBasicDataPage, type KYCBasicDataPageProps, KYCChecklistCard, KYCChecklistItem, type KYCChecklistItemData, KYCDataCard, type KYCDataCardProps, type KYCDataField, KYCDocumentPage, type KYCDocumentPageProps, KYCEditPage, type KYCEditPageProps, KYCFieldMessage, type KYCFieldMessageProps, type KYCFieldMessageTone, KYCFormPage, type KYCFormPageProps, KYCInfoRow, type KYCInfoRowProps, KYCIntroPage, type KYCIntroPageProps, KYCLoadingPage, type KYCLoadingPageProps, KYCMessageBanner, type KYCMessageBannerProps, KYCPageHeader, type KYCPageHeaderProps, KYCPageSection, type KYCPageSectionProps, KYCPageShell, type KYCPageShellProps, type KYCPanelStatus, type KYCReviewCard, KYCReviewPage, type KYCReviewPageProps, KYCReviewPageSkeleton, type KYCReviewPageSkeletonProps, type KYCStatusItem, KYCStatusItemCard, type KYCStatusItemCardProps, KYCStatusPage, type KYCStatusPageProps, KYCStatusPanel, type KYCStatusPanelProps, KYCStepIndicator, type KYCStepIndicatorProps, type KYCVisualVariant, KycLoadingView, type KycLoadingViewProps, KycRequiredView, type KycRequiredViewProps, Label, type LabelProps, type LabelVariant, Link, type LinkProps, ListItem, ListItemContent, ListItemLeftSide, type ListItemProps, ListItemRightSide, LoadingDots, type LoadingDotsProps, LowRiskBadge, type LowRiskBadgeProps, MediumRiskBadge, type MediumRiskBadgeProps, type MethodOption, Navbar, type NavbarProps, type NetworkOption, OffchainMethodSelectionView, type OffchainMethodSelectionViewProps, OfframpFailedSimpleView, OfframpInputFormSimpleView, type OfframpInputFormSimpleViewProps, OfframpInputFormView, type OfframpInputFormViewProps, OfframpProcessingSimpleView, OfframpProcessingView, type OfframpProcessingViewProps, OfframpSuccessSimpleView, OfframpSuccessView, type OfframpSuccessViewProps, OnchainDepositFormSimpleView, OnchainDepositFormView, type OnchainDepositFormViewProps, OnchainDepositSuccessSimpleView, OnchainDepositSuccessView, type OnchainDepositSuccessViewProps, OnchainWithdrawChainSelectorView, type OnchainWithdrawChainSelectorViewProps, OnchainWithdrawFailedSimpleView, OnchainWithdrawFailedView, type OnchainWithdrawFailedViewProps, OnchainWithdrawFormSimpleView, type OnchainWithdrawFormSimpleViewProps, OnchainWithdrawFormView, type OnchainWithdrawFormViewProps, OnchainWithdrawProcessingSimpleView, type OnchainWithdrawProcessingViewProps, OnchainWithdrawSignatureWarningSimpleView, OnchainWithdrawSignatureWarningView, type OnchainWithdrawSignatureWarningViewProps, OnchainWithdrawSuccessSimpleView, OnchainWithdrawSuccessView, type OnchainWithdrawSuccessViewProps, OnrampFormSimpleView, type OnrampFormSimpleViewProps, OnrampFormView, type OnrampFormViewProps, OnrampPixcodeView, type OnrampPixcodeViewProps, OnrampSuccessSimpleView, OnrampSuccessView, type OnrampSuccessViewProps, PercentageButton, PrimaryButton, ProcessingBadge, type ProcessingBadgeProps, ProgressIndicator, type ProgressIndicatorProps, ScrollableContent, type ScrollableContentProps, SearchEmptyState, type SearchEmptyStateProps, SearchInput, type SearchInputProps, SecondaryButton, SectionCard, type SectionCardProps, Select, SelectContent, type SelectContentProps, SelectItem, type SelectItemProps, type SelectProps, SelectTrigger, type SelectTriggerProps, Skeleton, type SkeletonProps, StepDisplay, type StepDisplayProps, StepStatusIcon, type StepStatusIconProps, StepStatusText, type StepStatusTextProps, StrategyDetailsView, type StrategyDetailsViewProps, StrategyGridCard, type StrategyGridCardProps, SummaryDetails, SummaryDetailsCryptoControlV2, type SummaryDetailsProps, SwapAdvancedSettingsView, type SwapAdvancedSettingsViewProps, SwapAmountInputView, type SwapAmountInputViewProps, type SwapCardLabels, SwapCrossChainProcessingView, type SwapCrossChainProcessingViewProps, SwapCrossChainProcessingViewSimple, type SwapFormLabels, SwapFormView, type SwapFormViewProps, SwapFormViewSimple, SwapFromCardView, type SwapFromCardViewProps, SwapFromCardViewSimple, type SwapFromCardViewSimpleProps, type SwapHistoryItem, type SwapHistoryLabels, SwapHistoryView, type SwapHistoryViewProps, SwapHistoryViewSimple, type SwapHistoryViewSimpleProps, type SwapNetworkSelectorViewProps, type SwapOutputAmountViewProps, type SwapPriceImpactWarningData, SwapProcessingView, type SwapProcessingViewProps, SwapProcessingViewSimple, type SwapQuoteBlockchainCostsViewProps, type SwapQuoteDetailsLabels, SwapQuoteDetailsView, type SwapQuoteDetailsViewProps, type SwapQuoteErrorsViewProps, type SwapQuoteHeaderViewProps, SwapSignatureWarningView, type SwapSignatureWarningViewProps, SwapSignatureWarningViewSimple, type SwapSlippageToleranceButtonsViewProps, type SwapSuccessLabels, SwapSuccessView, type SwapSuccessViewProps, SwapSuccessViewSimple, SwapToCardView, type SwapToCardViewProps, SwapToCardViewSimple, type SwapTokenSelectorViewProps, SwapTransactionFailedView, type SwapTransactionFailedViewProps, SwapTransactionFailedViewSimple, type SwapValidationCode, SwapWidgetFallbackView, type SwapWidgetFallbackViewProps, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, TertiaryButton, Text, TextAccent, type TextAccentProps, TextBody, type TextBodyProps, TextHeading, type TextHeadingProps, Title, type TokenData, TokenWithChainBadge, type TokenWithChainBadgeProps, TransactionProcessingDetails, type TransactionProcessingDetailsLabels, type TransactionProcessingDetailsProps, TransactionScreen, TransactionScreenIcon, type TransactionScreenIconProps, TransactionScreenInvestmentCard, type TransactionScreenInvestmentCardProps, type TransactionScreenProps, type TransactionStep, type TransactionStepStatus, type WalletBalanceItem, WalletBalances, type WalletBalancesProps, WalletConnectPanel, type WalletConnectPanelProps, WalletItem, type WalletItemProps, ConnectWalletList as WalletList, WalletListContainer, type WalletListContainerProps, type WalletOption, WithdrawFailedIcon, WithdrawSuccessIcon, isDustValue, truncateAddress };
package/dist/index.js CHANGED
@@ -10408,6 +10408,24 @@ var GroupedStrategyListView = ({
10408
10408
  ] })
10409
10409
  ] });
10410
10410
  };
10411
+
10412
+ // src/utils/strategyDisplayName.ts
10413
+ function getNormalizedMetadataString(value) {
10414
+ if (typeof value !== "string") return "";
10415
+ return value.trim();
10416
+ }
10417
+ function getStrategyDisplayName(strategy) {
10418
+ var _a, _b;
10419
+ const displayName = getNormalizedMetadataString((_a = strategy == null ? void 0 : strategy.metadata) == null ? void 0 : _a.displayName);
10420
+ if (displayName) return displayName;
10421
+ return (_b = strategy == null ? void 0 : strategy.assetName) != null ? _b : "";
10422
+ }
10423
+ function getStrategyDisplayLogo(strategy) {
10424
+ var _a, _b;
10425
+ const displayLogo = getNormalizedMetadataString((_a = strategy == null ? void 0 : strategy.metadata) == null ? void 0 : _a.displayLogo);
10426
+ if (displayLogo) return displayLogo;
10427
+ return (_b = strategy == null ? void 0 : strategy.logourl) != null ? _b : "";
10428
+ }
10411
10429
  var wrapperBaseClasses = [
10412
10430
  "w-full max-w-[900px] mx-auto flex flex-col",
10413
10431
  "gap-[var(--deframe-widget-size-gap-md)]",
@@ -10459,25 +10477,6 @@ var GroupedStrategyListViewSimple = ({
10459
10477
  }) => {
10460
10478
  const category = categories.find((c) => c.id === categoryId);
10461
10479
  const categoryTitle = category == null ? void 0 : category.title;
10462
- const allClaimedAssets = React6__namespace.default.useMemo(() => {
10463
- const claimed = /* @__PURE__ */ new Set();
10464
- for (const category2 of categories) {
10465
- if (category2.assetFilter.length > 0) {
10466
- for (const symbol of category2.assetFilter) {
10467
- claimed.add(symbol.toUpperCase());
10468
- }
10469
- }
10470
- }
10471
- return claimed;
10472
- }, [categories]);
10473
- const filteredStrategies = React6__namespace.default.useMemo(() => {
10474
- const assetFilter = category == null ? void 0 : category.assetFilter;
10475
- if (!assetFilter || assetFilter.length === 0) {
10476
- return strategies.filter((s) => !allClaimedAssets.has(s.assetName.toUpperCase()));
10477
- }
10478
- const upperFilter = new Set(assetFilter.map((a) => a.toUpperCase()));
10479
- return strategies.filter((s) => upperFilter.has(s.assetName.toUpperCase()));
10480
- }, [strategies, category, allClaimedAssets]);
10481
10480
  if (isLoading) {
10482
10481
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-test-id": "grouped-strategy-list-view-simple-loading", className: tailwindMerge.twMerge(wrapperBaseClasses, className), children: [
10483
10482
  /* @__PURE__ */ jsxRuntime.jsx(Skeleton, { variant: "rect", width: "40%", height: 24 }),
@@ -10512,29 +10511,32 @@ var GroupedStrategyListViewSimple = ({
10512
10511
  }
10513
10512
  )
10514
10513
  ] }),
10515
- filteredStrategies.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx("div", { "data-test-id": "grouped-strategy-list-view-simple-empty", className: emptyBoxClasses, children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-[length:var(--deframe-widget-font-size-sm)] text-[color:var(--deframe-widget-color-text-tertiary)] font-[var(--deframe-widget-font-family)]", children: emptyMessage }) }) : /* @__PURE__ */ jsxRuntime.jsx(
10514
+ strategies.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx("div", { "data-test-id": "grouped-strategy-list-view-simple-empty", className: emptyBoxClasses, children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-[length:var(--deframe-widget-font-size-sm)] text-[color:var(--deframe-widget-color-text-tertiary)] font-[var(--deframe-widget-font-family)]", children: emptyMessage }) }) : /* @__PURE__ */ jsxRuntime.jsx(
10516
10515
  "div",
10517
10516
  {
10518
10517
  "data-test-id": "grouped-strategy-list-view-simple-items",
10519
10518
  className: "flex flex-col gap-[var(--deframe-widget-size-gap-sm)]",
10520
- children: filteredStrategies.map((s) => /* @__PURE__ */ jsxRuntime.jsx(
10521
- StrategyGridCardSimple,
10522
- {
10523
- logoUrl: s.logourl,
10524
- title: s.assetName,
10525
- subtitle: s.assetName,
10526
- chainName: s.network,
10527
- apyFormatted: s.apyFormatted,
10528
- apyLabel: yieldLabel,
10529
- riskLevel: "low",
10530
- onInvestClick: onDeposit ? () => onDeposit(s.id) : () => {
10531
- },
10532
- onWithdrawClick: onWithdraw ? () => onWithdraw(s.id) : () => {
10519
+ children: strategies.map((s) => {
10520
+ const displayName = getStrategyDisplayName(s);
10521
+ return /* @__PURE__ */ jsxRuntime.jsx(
10522
+ StrategyGridCardSimple,
10523
+ {
10524
+ logoUrl: getStrategyDisplayLogo(s),
10525
+ title: displayName,
10526
+ subtitle: displayName,
10527
+ chainName: s.network,
10528
+ apyFormatted: s.apyFormatted,
10529
+ apyLabel: yieldLabel,
10530
+ riskLevel: "low",
10531
+ onInvestClick: onDeposit ? () => onDeposit(s.id) : () => {
10532
+ },
10533
+ onWithdrawClick: onWithdraw ? () => onWithdraw(s.id) : () => {
10534
+ },
10535
+ labels: { investLabel, riskLow, riskMedium, riskHigh }
10533
10536
  },
10534
- labels: { investLabel, riskLow, riskMedium, riskHigh }
10535
- },
10536
- s.id
10537
- ))
10537
+ s.id
10538
+ );
10539
+ })
10538
10540
  }
10539
10541
  )
10540
10542
  ] });
@@ -11317,13 +11319,11 @@ function buildEarnHistoryByAsset(items, { currency, locale, formatCurrency, onHi
11317
11319
  var EARN_CATEGORY_DEFINITIONS = [
11318
11320
  {
11319
11321
  id: "dolar",
11320
- imageUrl: mascotUsdUrl,
11321
- assetFilter: ["USDC", "USDT", "DAI", "thbill"]
11322
+ imageUrl: mascotUsdUrl
11322
11323
  },
11323
11324
  {
11324
11325
  id: "real",
11325
- imageUrl: mascotBrlUrl,
11326
- assetFilter: ["BRLA"]
11326
+ imageUrl: mascotBrlUrl
11327
11327
  }
11328
11328
  ];
11329
11329
  var wrapperBaseClasses2 = [
@@ -11386,12 +11386,11 @@ var BANNER_COLORS = [
11386
11386
  "var(--deframe-widget-color-brand-primary)",
11387
11387
  "var(--deframe-widget-color-brand-secondary)"
11388
11388
  ];
11389
- var STABLECOIN_SYMBOLS = /* @__PURE__ */ new Set(["USDC", "USDT", "DAI"]);
11390
11389
  var DEFAULT_POSITIONS = { positions: [], summary: { totalUnderlyingBalanceUSD: 0, totalProfitInUSD: 0 } };
11391
11390
  var defaultFormatCurrency = (amount) => `$${amount.toFixed(2)}`;
11392
11391
  var EarnDesktopViewSimple = ({
11393
11392
  positions = DEFAULT_POSITIONS,
11394
- strategies = [],
11393
+ strategiesByCategory = {},
11395
11394
  historyItems = [],
11396
11395
  formatCurrency = defaultFormatCurrency,
11397
11396
  currency,
@@ -11407,6 +11406,7 @@ var EarnDesktopViewSimple = ({
11407
11406
  summary,
11408
11407
  categories
11409
11408
  }) => {
11409
+ var _a;
11410
11410
  const [activeCategoryId, setActiveCategoryId] = React6__namespace.default.useState(null);
11411
11411
  const totalEarnings = positions.summary.totalProfitInUSD;
11412
11412
  const statsCards = React6__namespace.default.useMemo(() => [
@@ -11415,25 +11415,24 @@ var EarnDesktopViewSimple = ({
11415
11415
  ], [positions.summary.totalUnderlyingBalanceUSD, totalEarnings, formatCurrency, labels == null ? void 0 : labels.totalInvestedLabel, labels == null ? void 0 : labels.totalInvestedDescription, labels == null ? void 0 : labels.accumulatedEarningsLabel, labels == null ? void 0 : labels.accumulatedEarningsDescription]);
11416
11416
  const categoryBanners = React6__namespace.default.useMemo(() => {
11417
11417
  return categories.map((category) => {
11418
- var _a;
11419
- const upperFilter = new Set(category.assetFilter.map((a) => a.toUpperCase()));
11418
+ var _a2, _b;
11419
+ const categoryStrategies = (_a2 = strategiesByCategory[category.id]) != null ? _a2 : [];
11420
11420
  let bestApy = null;
11421
- for (const strategy of strategies) {
11422
- if (upperFilter.has(strategy.assetName.toUpperCase()) && strategy.apy > ((_a = bestApy == null ? void 0 : bestApy.apy) != null ? _a : 0)) {
11421
+ for (const strategy of categoryStrategies) {
11422
+ if (strategy.apy > ((_b = bestApy == null ? void 0 : bestApy.apy) != null ? _b : 0)) {
11423
11423
  bestApy = strategy;
11424
11424
  }
11425
11425
  }
11426
- const isStablecoin = category.assetFilter.some((a) => STABLECOIN_SYMBOLS.has(a.toUpperCase()));
11427
11426
  return {
11428
11427
  id: category.id,
11429
11428
  imageUrl: category.imageUrl,
11430
11429
  alt: category.alt,
11431
11430
  apyFormatted: bestApy == null ? void 0 : bestApy.apyFormatted,
11432
- description: isStablecoin ? labels == null ? void 0 : labels.stablecoinsBannerDescription : labels == null ? void 0 : labels.realsBannerDescription,
11431
+ description: category.id === "dolar" ? labels == null ? void 0 : labels.stablecoinsBannerDescription : labels == null ? void 0 : labels.realsBannerDescription,
11433
11432
  handleClick: () => setActiveCategoryId(category.id)
11434
11433
  };
11435
11434
  });
11436
- }, [categories, strategies, labels == null ? void 0 : labels.stablecoinsBannerDescription, labels == null ? void 0 : labels.realsBannerDescription]);
11435
+ }, [categories, strategiesByCategory, labels == null ? void 0 : labels.stablecoinsBannerDescription, labels == null ? void 0 : labels.realsBannerDescription]);
11437
11436
  const cardLabels = React6__namespace.default.useMemo(() => ({
11438
11437
  investLabel: labels == null ? void 0 : labels.investLabel,
11439
11438
  withdrawLabel: labels == null ? void 0 : labels.cardWithdrawLabel,
@@ -11458,15 +11457,16 @@ var EarnDesktopViewSimple = ({
11458
11457
  );
11459
11458
  const strategyRows = React6__namespace.default.useMemo(() => {
11460
11459
  return formattedPositions.positions.filter((p) => p.spotPosition.underlyingBalanceUSD > 0.01).map((p) => {
11461
- var _a, _b;
11460
+ var _a2, _b;
11461
+ const strategyDisplayName = getStrategyDisplayName(p.strategy);
11462
11462
  return {
11463
- logoUrl: p.strategy.logourl,
11464
- assetName: p.strategy.assetName,
11463
+ logoUrl: getStrategyDisplayLogo(p.strategy),
11464
+ assetName: strategyDisplayName,
11465
11465
  network: p.strategy.network,
11466
11466
  investedFormatted: p.spotPosition.investedFormatted,
11467
11467
  earningsFormatted: `${(p.spotPosition.apy * 100).toFixed(2)}%`,
11468
11468
  profitFormatted: formatCurrency(p.spotPosition.profitInUSD),
11469
- totalValueFormatted: (_a = p.spotPosition.totalValueFormatted) != null ? _a : formatCurrency(p.spotPosition.underlyingBalanceUSD),
11469
+ totalValueFormatted: (_a2 = p.spotPosition.totalValueFormatted) != null ? _a2 : formatCurrency(p.spotPosition.underlyingBalanceUSD),
11470
11470
  isLoading: false,
11471
11471
  history: (_b = historyByAsset[p.strategy.assetName.toUpperCase()]) != null ? _b : [],
11472
11472
  onInvestClick: onDeposit ? () => onDeposit(p.strategy.id) : () => {
@@ -11491,7 +11491,7 @@ var EarnDesktopViewSimple = ({
11491
11491
  GroupedStrategyListViewSimple,
11492
11492
  {
11493
11493
  categoryId: activeCategoryId,
11494
- strategies,
11494
+ strategies: (_a = strategiesByCategory[activeCategoryId]) != null ? _a : [],
11495
11495
  isLoading,
11496
11496
  onBack: () => setActiveCategoryId(null),
11497
11497
  onDeposit,