@compass-labs/widgets 0.1.37 → 0.1.38

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
@@ -436,7 +436,7 @@ interface EarnAccountProps {
436
436
  /**
437
437
  * EarnAccount widget - A beautiful banking-style USDC savings account.
438
438
  */
439
- declare function EarnAccount({ showHeader, showInterestRate, showTopUpButton, showTrustBadge, compact, title, onDeposit, onWithdraw, defaultMarketTab, allowedVariableMarkets, allowedFixedMarkets, chain: chainProp, height, }: EarnAccountProps): react_jsx_runtime.JSX.Element;
439
+ declare function EarnAccount({ showHeader, showInterestRate, showTopUpButton, compact, title, onDeposit, onWithdraw, defaultMarketTab, allowedVariableMarkets, allowedFixedMarkets, chain: chainProp, height, }: EarnAccountProps): react_jsx_runtime.JSX.Element;
440
440
 
441
441
  interface CreditAccountProps {
442
442
  /** Custom title for the header @default "Credit Account" */
@@ -461,7 +461,7 @@ interface CreditAccountProps {
461
461
  onRepay?: (txHash: string) => void;
462
462
  }
463
463
 
464
- declare function CreditAccount({ title, showHeader, showTopUpButton, compact, height, chain: chainProp, allowedCollateralTokens, allowedDebtTokens, onBorrow: _onBorrow, onRepay: _onRepay, }: CreditAccountProps): react_jsx_runtime.JSX.Element;
464
+ declare function CreditAccount({ title, showHeader: _showHeader, showTopUpButton, compact, height, chain: chainProp, allowedCollateralTokens, allowedDebtTokens, onBorrow: _onBorrow, onRepay: _onRepay, }: CreditAccountProps): react_jsx_runtime.JSX.Element;
465
465
 
466
466
  type TabId = 'positions' | 'rebalance';
467
467
  type FeaturePreset = 'full';
@@ -888,19 +888,12 @@ interface AccountBalancesModalProps {
888
888
  declare function AccountBalancesModal({ isOpen, onClose, balances, totalUsdValue, isLoading, earnAccountAddress, walletAddress, }: AccountBalancesModalProps): react_jsx_runtime.JSX.Element;
889
889
 
890
890
  interface SwapFormProps {
891
- /** Tokens the user holds (shown in "from" dropdown) */
892
891
  availableFromTokens: string[];
893
- /** Extra tokens to include in "to" dropdown beyond from tokens */
894
892
  availableToTokens?: string[];
895
- /** Token balances keyed by symbol (human-readable amounts) */
896
893
  balances?: Record<string, string>;
897
- /** Initial "from" token */
898
894
  defaultFromToken?: string;
899
- /** Initial "to" token */
900
895
  defaultToToken?: string;
901
- /** Callback after successful swap */
902
896
  onSwapSuccess?: (fromToken: string, toToken: string, amountIn: string, amountOut: string, txHash: string) => void;
903
- /** Callback on swap error */
904
897
  onSwapError?: (error: Error) => void;
905
898
  }
906
899
  declare function SwapForm({ availableFromTokens, availableToTokens, balances, defaultFromToken, defaultToToken, onSwapSuccess, onSwapError, }: SwapFormProps): react_jsx_runtime.JSX.Element;
package/dist/index.d.ts CHANGED
@@ -436,7 +436,7 @@ interface EarnAccountProps {
436
436
  /**
437
437
  * EarnAccount widget - A beautiful banking-style USDC savings account.
438
438
  */
439
- declare function EarnAccount({ showHeader, showInterestRate, showTopUpButton, showTrustBadge, compact, title, onDeposit, onWithdraw, defaultMarketTab, allowedVariableMarkets, allowedFixedMarkets, chain: chainProp, height, }: EarnAccountProps): react_jsx_runtime.JSX.Element;
439
+ declare function EarnAccount({ showHeader, showInterestRate, showTopUpButton, compact, title, onDeposit, onWithdraw, defaultMarketTab, allowedVariableMarkets, allowedFixedMarkets, chain: chainProp, height, }: EarnAccountProps): react_jsx_runtime.JSX.Element;
440
440
 
441
441
  interface CreditAccountProps {
442
442
  /** Custom title for the header @default "Credit Account" */
@@ -461,7 +461,7 @@ interface CreditAccountProps {
461
461
  onRepay?: (txHash: string) => void;
462
462
  }
463
463
 
464
- declare function CreditAccount({ title, showHeader, showTopUpButton, compact, height, chain: chainProp, allowedCollateralTokens, allowedDebtTokens, onBorrow: _onBorrow, onRepay: _onRepay, }: CreditAccountProps): react_jsx_runtime.JSX.Element;
464
+ declare function CreditAccount({ title, showHeader: _showHeader, showTopUpButton, compact, height, chain: chainProp, allowedCollateralTokens, allowedDebtTokens, onBorrow: _onBorrow, onRepay: _onRepay, }: CreditAccountProps): react_jsx_runtime.JSX.Element;
465
465
 
466
466
  type TabId = 'positions' | 'rebalance';
467
467
  type FeaturePreset = 'full';
@@ -888,19 +888,12 @@ interface AccountBalancesModalProps {
888
888
  declare function AccountBalancesModal({ isOpen, onClose, balances, totalUsdValue, isLoading, earnAccountAddress, walletAddress, }: AccountBalancesModalProps): react_jsx_runtime.JSX.Element;
889
889
 
890
890
  interface SwapFormProps {
891
- /** Tokens the user holds (shown in "from" dropdown) */
892
891
  availableFromTokens: string[];
893
- /** Extra tokens to include in "to" dropdown beyond from tokens */
894
892
  availableToTokens?: string[];
895
- /** Token balances keyed by symbol (human-readable amounts) */
896
893
  balances?: Record<string, string>;
897
- /** Initial "from" token */
898
894
  defaultFromToken?: string;
899
- /** Initial "to" token */
900
895
  defaultToToken?: string;
901
- /** Callback after successful swap */
902
896
  onSwapSuccess?: (fromToken: string, toToken: string, amountIn: string, amountOut: string, txHash: string) => void;
903
- /** Callback on swap error */
904
897
  onSwapError?: (error: Error) => void;
905
898
  }
906
899
  declare function SwapForm({ availableFromTokens, availableToTokens, balances, defaultFromToken, defaultToToken, onSwapSuccess, onSwapError, }: SwapFormProps): react_jsx_runtime.JSX.Element;