@deframe-sdk/components 0.1.68 → 0.1.70

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 {
@@ -2306,11 +2307,14 @@ interface EarnStrategy {
2306
2307
  displayLogo?: string;
2307
2308
  } | null;
2308
2309
  }
2310
+ type EarnStrategiesByCategory = Record<string, EarnStrategy[]>;
2309
2311
  interface EarnDesktopViewSimpleProps extends Partial<EarnDesktopViewProps> {
2310
2312
  /** Positions data — mirrors WalletPositionsResponse */
2311
2313
  positions?: EarnPositionsData;
2312
- /** All available strategies mirrors StrategyWithApy[] */
2314
+ /** @deprecated Pass `strategiesByCategory`; the SDK layer owns category filtering. */
2313
2315
  strategies?: EarnStrategy[];
2316
+ /** Strategies already filtered/grouped by category by the host SDK layer */
2317
+ strategiesByCategory?: EarnStrategiesByCategory;
2314
2318
  /** Investment history items — mirrors HistoryItem[] */
2315
2319
  historyItems?: EarnHistoryItem[];
2316
2320
  /** Currency formatter — e.g. (1000) => "R$ 1.000,00" */
@@ -2333,7 +2337,7 @@ interface EarnDesktopViewSimpleProps extends Partial<EarnDesktopViewProps> {
2333
2337
  onHistoryDetail?: (historyItemId: string, isDeposit: boolean) => void;
2334
2338
  /** Called when user clicks the history button */
2335
2339
  onHistory?: () => void;
2336
- /** 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. */
2337
2341
  categories: EarnCategoryDefinition[];
2338
2342
  }
2339
2343
  declare const EarnDesktopViewSimple: React__default.FC<EarnDesktopViewSimpleProps>;
@@ -3673,4 +3677,4 @@ interface DeframeTheme {
3673
3677
  colors?: DeframeThemeColors;
3674
3678
  }
3675
3679
 
3676
- 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 {
@@ -2306,11 +2307,14 @@ interface EarnStrategy {
2306
2307
  displayLogo?: string;
2307
2308
  } | null;
2308
2309
  }
2310
+ type EarnStrategiesByCategory = Record<string, EarnStrategy[]>;
2309
2311
  interface EarnDesktopViewSimpleProps extends Partial<EarnDesktopViewProps> {
2310
2312
  /** Positions data — mirrors WalletPositionsResponse */
2311
2313
  positions?: EarnPositionsData;
2312
- /** All available strategies mirrors StrategyWithApy[] */
2314
+ /** @deprecated Pass `strategiesByCategory`; the SDK layer owns category filtering. */
2313
2315
  strategies?: EarnStrategy[];
2316
+ /** Strategies already filtered/grouped by category by the host SDK layer */
2317
+ strategiesByCategory?: EarnStrategiesByCategory;
2314
2318
  /** Investment history items — mirrors HistoryItem[] */
2315
2319
  historyItems?: EarnHistoryItem[];
2316
2320
  /** Currency formatter — e.g. (1000) => "R$ 1.000,00" */
@@ -2333,7 +2337,7 @@ interface EarnDesktopViewSimpleProps extends Partial<EarnDesktopViewProps> {
2333
2337
  onHistoryDetail?: (historyItemId: string, isDeposit: boolean) => void;
2334
2338
  /** Called when user clicks the history button */
2335
2339
  onHistory?: () => void;
2336
- /** 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. */
2337
2341
  categories: EarnCategoryDefinition[];
2338
2342
  }
2339
2343
  declare const EarnDesktopViewSimple: React__default.FC<EarnDesktopViewSimpleProps>;
@@ -3673,4 +3677,4 @@ interface DeframeTheme {
3673
3677
  colors?: DeframeThemeColors;
3674
3678
  }
3675
3679
 
3676
- 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
@@ -10477,25 +10477,6 @@ var GroupedStrategyListViewSimple = ({
10477
10477
  }) => {
10478
10478
  const category = categories.find((c) => c.id === categoryId);
10479
10479
  const categoryTitle = category == null ? void 0 : category.title;
10480
- const allClaimedAssets = React6__namespace.default.useMemo(() => {
10481
- const claimed = /* @__PURE__ */ new Set();
10482
- for (const category2 of categories) {
10483
- if (category2.assetFilter.length > 0) {
10484
- for (const symbol of category2.assetFilter) {
10485
- claimed.add(symbol.toUpperCase());
10486
- }
10487
- }
10488
- }
10489
- return claimed;
10490
- }, [categories]);
10491
- const filteredStrategies = React6__namespace.default.useMemo(() => {
10492
- const assetFilter = category == null ? void 0 : category.assetFilter;
10493
- if (!assetFilter || assetFilter.length === 0) {
10494
- return strategies.filter((s) => !allClaimedAssets.has(s.assetName.toUpperCase()));
10495
- }
10496
- const upperFilter = new Set(assetFilter.map((a) => a.toUpperCase()));
10497
- return strategies.filter((s) => upperFilter.has(s.assetName.toUpperCase()));
10498
- }, [strategies, category, allClaimedAssets]);
10499
10480
  if (isLoading) {
10500
10481
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-test-id": "grouped-strategy-list-view-simple-loading", className: tailwindMerge.twMerge(wrapperBaseClasses, className), children: [
10501
10482
  /* @__PURE__ */ jsxRuntime.jsx(Skeleton, { variant: "rect", width: "40%", height: 24 }),
@@ -10530,12 +10511,12 @@ var GroupedStrategyListViewSimple = ({
10530
10511
  }
10531
10512
  )
10532
10513
  ] }),
10533
- 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(
10534
10515
  "div",
10535
10516
  {
10536
10517
  "data-test-id": "grouped-strategy-list-view-simple-items",
10537
10518
  className: "flex flex-col gap-[var(--deframe-widget-size-gap-sm)]",
10538
- children: filteredStrategies.map((s) => {
10519
+ children: strategies.map((s) => {
10539
10520
  const displayName = getStrategyDisplayName(s);
10540
10521
  return /* @__PURE__ */ jsxRuntime.jsx(
10541
10522
  StrategyGridCardSimple,
@@ -11338,13 +11319,11 @@ function buildEarnHistoryByAsset(items, { currency, locale, formatCurrency, onHi
11338
11319
  var EARN_CATEGORY_DEFINITIONS = [
11339
11320
  {
11340
11321
  id: "dolar",
11341
- imageUrl: mascotUsdUrl,
11342
- assetFilter: ["USDC", "USDT", "DAI", "thbill", "podsUSDCy"]
11322
+ imageUrl: mascotUsdUrl
11343
11323
  },
11344
11324
  {
11345
11325
  id: "real",
11346
- imageUrl: mascotBrlUrl,
11347
- assetFilter: ["BRLA"]
11326
+ imageUrl: mascotBrlUrl
11348
11327
  }
11349
11328
  ];
11350
11329
  var wrapperBaseClasses2 = [
@@ -11407,12 +11386,11 @@ var BANNER_COLORS = [
11407
11386
  "var(--deframe-widget-color-brand-primary)",
11408
11387
  "var(--deframe-widget-color-brand-secondary)"
11409
11388
  ];
11410
- var STABLECOIN_SYMBOLS = /* @__PURE__ */ new Set(["USDC", "USDT", "DAI"]);
11411
11389
  var DEFAULT_POSITIONS = { positions: [], summary: { totalUnderlyingBalanceUSD: 0, totalProfitInUSD: 0 } };
11412
11390
  var defaultFormatCurrency = (amount) => `$${amount.toFixed(2)}`;
11413
11391
  var EarnDesktopViewSimple = ({
11414
11392
  positions = DEFAULT_POSITIONS,
11415
- strategies = [],
11393
+ strategiesByCategory = {},
11416
11394
  historyItems = [],
11417
11395
  formatCurrency = defaultFormatCurrency,
11418
11396
  currency,
@@ -11428,6 +11406,7 @@ var EarnDesktopViewSimple = ({
11428
11406
  summary,
11429
11407
  categories
11430
11408
  }) => {
11409
+ var _a;
11431
11410
  const [activeCategoryId, setActiveCategoryId] = React6__namespace.default.useState(null);
11432
11411
  const totalEarnings = positions.summary.totalProfitInUSD;
11433
11412
  const statsCards = React6__namespace.default.useMemo(() => [
@@ -11436,25 +11415,24 @@ var EarnDesktopViewSimple = ({
11436
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]);
11437
11416
  const categoryBanners = React6__namespace.default.useMemo(() => {
11438
11417
  return categories.map((category) => {
11439
- var _a;
11440
- const upperFilter = new Set(category.assetFilter.map((a) => a.toUpperCase()));
11418
+ var _a2, _b;
11419
+ const categoryStrategies = (_a2 = strategiesByCategory[category.id]) != null ? _a2 : [];
11441
11420
  let bestApy = null;
11442
- for (const strategy of strategies) {
11443
- 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)) {
11444
11423
  bestApy = strategy;
11445
11424
  }
11446
11425
  }
11447
- const isStablecoin = category.assetFilter.some((a) => STABLECOIN_SYMBOLS.has(a.toUpperCase()));
11448
11426
  return {
11449
11427
  id: category.id,
11450
11428
  imageUrl: category.imageUrl,
11451
11429
  alt: category.alt,
11452
11430
  apyFormatted: bestApy == null ? void 0 : bestApy.apyFormatted,
11453
- 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,
11454
11432
  handleClick: () => setActiveCategoryId(category.id)
11455
11433
  };
11456
11434
  });
11457
- }, [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]);
11458
11436
  const cardLabels = React6__namespace.default.useMemo(() => ({
11459
11437
  investLabel: labels == null ? void 0 : labels.investLabel,
11460
11438
  withdrawLabel: labels == null ? void 0 : labels.cardWithdrawLabel,
@@ -11479,7 +11457,7 @@ var EarnDesktopViewSimple = ({
11479
11457
  );
11480
11458
  const strategyRows = React6__namespace.default.useMemo(() => {
11481
11459
  return formattedPositions.positions.filter((p) => p.spotPosition.underlyingBalanceUSD > 0.01).map((p) => {
11482
- var _a, _b;
11460
+ var _a2, _b;
11483
11461
  const strategyDisplayName = getStrategyDisplayName(p.strategy);
11484
11462
  return {
11485
11463
  logoUrl: getStrategyDisplayLogo(p.strategy),
@@ -11488,7 +11466,7 @@ var EarnDesktopViewSimple = ({
11488
11466
  investedFormatted: p.spotPosition.investedFormatted,
11489
11467
  earningsFormatted: `${(p.spotPosition.apy * 100).toFixed(2)}%`,
11490
11468
  profitFormatted: formatCurrency(p.spotPosition.profitInUSD),
11491
- totalValueFormatted: (_a = p.spotPosition.totalValueFormatted) != null ? _a : formatCurrency(p.spotPosition.underlyingBalanceUSD),
11469
+ totalValueFormatted: (_a2 = p.spotPosition.totalValueFormatted) != null ? _a2 : formatCurrency(p.spotPosition.underlyingBalanceUSD),
11492
11470
  isLoading: false,
11493
11471
  history: (_b = historyByAsset[p.strategy.assetName.toUpperCase()]) != null ? _b : [],
11494
11472
  onInvestClick: onDeposit ? () => onDeposit(p.strategy.id) : () => {
@@ -11513,7 +11491,7 @@ var EarnDesktopViewSimple = ({
11513
11491
  GroupedStrategyListViewSimple,
11514
11492
  {
11515
11493
  categoryId: activeCategoryId,
11516
- strategies,
11494
+ strategies: (_a = strategiesByCategory[activeCategoryId]) != null ? _a : [],
11517
11495
  isLoading,
11518
11496
  onBack: () => setActiveCategoryId(null),
11519
11497
  onDeposit,