@unifold/connect-react-native 0.1.31 → 0.1.32

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
@@ -331,6 +331,8 @@ declare function BottomSheet({ visible, onClose, children, closeOnBackdropPress,
331
331
 
332
332
  /** Controls which transfer crypto input variant is rendered */
333
333
  type TransferInputVariant = "single_input" | "double_input";
334
+ /** Controls which screen opens first when the deposit modal is shown */
335
+ type DepositInitialScreen = "main" | "transfer" | "card" | "tracker";
334
336
  interface DepositModalProps {
335
337
  /** Whether the modal is visible */
336
338
  visible: boolean;
@@ -389,6 +391,14 @@ interface DepositModalProps {
389
391
  depositConfirmationMode?: "auto_ui" | "auto_silent" | "manual";
390
392
  /** Transfer input variant: 'single_input' (unified selector) or 'double_input' (separate token/chain). Defaults to 'double_input' */
391
393
  transferInputVariant?: TransferInputVariant;
394
+ /**
395
+ * Which screen to open first. Defaults to 'main' (the option menu).
396
+ * - 'main': show the menu (default)
397
+ * - 'transfer': open Transfer Crypto immediately
398
+ * - 'card': open Buy with Card immediately
399
+ * - 'tracker': open Deposit Tracker immediately (ignored if hideDepositTracker is true)
400
+ */
401
+ initialScreen?: DepositInitialScreen;
392
402
  /** Callback when deposit succeeds */
393
403
  onDepositSuccess?: (data: {
394
404
  message: string;
@@ -621,6 +631,14 @@ interface DepositConfig {
621
631
  * - manual: Show "I've deposited" button. Clicking enters waiting UI and starts polling. No automatic polling.
622
632
  */
623
633
  depositConfirmationMode?: "auto_ui" | "auto_silent" | "manual";
634
+ /**
635
+ * Which screen to open first when the deposit modal appears.
636
+ * - 'main' (default): show the option menu
637
+ * - 'transfer': open Transfer Crypto immediately
638
+ * - 'card': open Buy with Card immediately
639
+ * - 'tracker': open Deposit Tracker immediately
640
+ */
641
+ initialScreen?: DepositInitialScreen;
624
642
  onSuccess?: (data: DepositResult) => void;
625
643
  onError?: (error: DepositError) => void;
626
644
  }
@@ -684,4 +702,4 @@ interface UnifoldProviderProps {
684
702
  declare function UnifoldProvider({ children, publishableKey, config, }: UnifoldProviderProps): react_jsx_runtime.JSX.Element;
685
703
  declare function useUnifold(): ConnectContextValue;
686
704
 
687
- export { type AllowedCountryResult, type BorderRadiusConfig, BottomSheet, type ComponentConfig, type CustomThemeColors, type DepositConfig, type DepositError, type DepositResult, type DestinationToken, type DestinationTokenChain, type FontConfig, type ThemeColors, type ThemeConfig, type ThemeMode, type ThemeProviderConfig, type TransferInputVariant, type UnifoldConnectProviderConfig, UnifoldProvider, type UnifoldProviderProps, type WithdrawConfig, type WithdrawError, type WithdrawResult, type WithdrawTransactionInfo, getPreferredIcon, getSupportedDestinationTokens, normalizeIconUrl, registerStripeOnramp, setDevApiUrl, useAllowedCountry, useTheme, useUnifold };
705
+ export { type AllowedCountryResult, type BorderRadiusConfig, BottomSheet, type ComponentConfig, type CustomThemeColors, type DepositConfig, type DepositError, type DepositInitialScreen, type DepositResult, type DestinationToken, type DestinationTokenChain, type FontConfig, type ThemeColors, type ThemeConfig, type ThemeMode, type ThemeProviderConfig, type TransferInputVariant, type UnifoldConnectProviderConfig, UnifoldProvider, type UnifoldProviderProps, type WithdrawConfig, type WithdrawError, type WithdrawResult, type WithdrawTransactionInfo, getPreferredIcon, getSupportedDestinationTokens, normalizeIconUrl, registerStripeOnramp, setDevApiUrl, useAllowedCountry, useTheme, useUnifold };
package/dist/index.d.ts CHANGED
@@ -331,6 +331,8 @@ declare function BottomSheet({ visible, onClose, children, closeOnBackdropPress,
331
331
 
332
332
  /** Controls which transfer crypto input variant is rendered */
333
333
  type TransferInputVariant = "single_input" | "double_input";
334
+ /** Controls which screen opens first when the deposit modal is shown */
335
+ type DepositInitialScreen = "main" | "transfer" | "card" | "tracker";
334
336
  interface DepositModalProps {
335
337
  /** Whether the modal is visible */
336
338
  visible: boolean;
@@ -389,6 +391,14 @@ interface DepositModalProps {
389
391
  depositConfirmationMode?: "auto_ui" | "auto_silent" | "manual";
390
392
  /** Transfer input variant: 'single_input' (unified selector) or 'double_input' (separate token/chain). Defaults to 'double_input' */
391
393
  transferInputVariant?: TransferInputVariant;
394
+ /**
395
+ * Which screen to open first. Defaults to 'main' (the option menu).
396
+ * - 'main': show the menu (default)
397
+ * - 'transfer': open Transfer Crypto immediately
398
+ * - 'card': open Buy with Card immediately
399
+ * - 'tracker': open Deposit Tracker immediately (ignored if hideDepositTracker is true)
400
+ */
401
+ initialScreen?: DepositInitialScreen;
392
402
  /** Callback when deposit succeeds */
393
403
  onDepositSuccess?: (data: {
394
404
  message: string;
@@ -621,6 +631,14 @@ interface DepositConfig {
621
631
  * - manual: Show "I've deposited" button. Clicking enters waiting UI and starts polling. No automatic polling.
622
632
  */
623
633
  depositConfirmationMode?: "auto_ui" | "auto_silent" | "manual";
634
+ /**
635
+ * Which screen to open first when the deposit modal appears.
636
+ * - 'main' (default): show the option menu
637
+ * - 'transfer': open Transfer Crypto immediately
638
+ * - 'card': open Buy with Card immediately
639
+ * - 'tracker': open Deposit Tracker immediately
640
+ */
641
+ initialScreen?: DepositInitialScreen;
624
642
  onSuccess?: (data: DepositResult) => void;
625
643
  onError?: (error: DepositError) => void;
626
644
  }
@@ -684,4 +702,4 @@ interface UnifoldProviderProps {
684
702
  declare function UnifoldProvider({ children, publishableKey, config, }: UnifoldProviderProps): react_jsx_runtime.JSX.Element;
685
703
  declare function useUnifold(): ConnectContextValue;
686
704
 
687
- export { type AllowedCountryResult, type BorderRadiusConfig, BottomSheet, type ComponentConfig, type CustomThemeColors, type DepositConfig, type DepositError, type DepositResult, type DestinationToken, type DestinationTokenChain, type FontConfig, type ThemeColors, type ThemeConfig, type ThemeMode, type ThemeProviderConfig, type TransferInputVariant, type UnifoldConnectProviderConfig, UnifoldProvider, type UnifoldProviderProps, type WithdrawConfig, type WithdrawError, type WithdrawResult, type WithdrawTransactionInfo, getPreferredIcon, getSupportedDestinationTokens, normalizeIconUrl, registerStripeOnramp, setDevApiUrl, useAllowedCountry, useTheme, useUnifold };
705
+ export { type AllowedCountryResult, type BorderRadiusConfig, BottomSheet, type ComponentConfig, type CustomThemeColors, type DepositConfig, type DepositError, type DepositInitialScreen, type DepositResult, type DestinationToken, type DestinationTokenChain, type FontConfig, type ThemeColors, type ThemeConfig, type ThemeMode, type ThemeProviderConfig, type TransferInputVariant, type UnifoldConnectProviderConfig, UnifoldProvider, type UnifoldProviderProps, type WithdrawConfig, type WithdrawError, type WithdrawResult, type WithdrawTransactionInfo, getPreferredIcon, getSupportedDestinationTokens, normalizeIconUrl, registerStripeOnramp, setDevApiUrl, useAllowedCountry, useTheme, useUnifold };