@unifold/connect-react-native 0.1.47 → 0.1.49

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
@@ -1,4 +1,3 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
1
  import React$1, { ReactNode } from 'react';
3
2
  export { AmountScreen, CreateSessionParams, CustomerVerification, KYCData, KYCWizardScreen, OnrampConfig, OnrampCustomer, OnrampError, OnrampErrorCode, OnrampScreen, OnrampSession, OnrampSessionTransactionDetails, OnrampStep, OnrampTransaction, StripeOnramp, StripeOnrampHook, StripeOnrampPreconfigure, StripeOnrampProps, getStripePublishableKey, setStripeOnrampApiUrl, setStripeOnrampPublishableKey, useStripeOnramp } from '@unifold/ui-react-native/stripe';
4
3
 
@@ -335,10 +334,16 @@ interface BottomSheetProps {
335
334
  * Use this for sheets that must appear on top of an already-open Modal (iOS limitation). */
336
335
  useModal?: boolean;
337
336
  }
338
- declare function BottomSheet({ visible, onClose, children, closeOnBackdropPress, enablePanDownToClose, showHandle, heightPercent, maxHeightPercent, startExpanded, noPadding, borderTopLeftRadius, borderTopRightRadius, marginHorizontal: marginH, marginBottom: marginBottomProp, overlay, useModal: useModalProp, }: BottomSheetProps): react_jsx_runtime.JSX.Element | null;
337
+ declare function BottomSheet({ visible, onClose, children, closeOnBackdropPress, enablePanDownToClose, showHandle, heightPercent, maxHeightPercent, startExpanded, noPadding, borderTopLeftRadius, borderTopRightRadius, marginHorizontal: marginH, marginBottom: marginBottomProp, overlay, useModal: useModalProp, }: BottomSheetProps): React$1.JSX.Element | null;
339
338
 
340
339
  /** Controls which transfer crypto input variant is rendered */
341
340
  type TransferInputVariant = "single_input" | "double_input" | "compact";
341
+ /**
342
+ * Controls the deposit menu layout.
343
+ * - "stacked": all options shown in a single list (default)
344
+ * - "tabs": options split into "Use Crypto" and "Use Cash" tabs
345
+ */
346
+ type DepositMenuDisplay = "stacked" | "tabs";
342
347
  /** Controls which screen opens first when the deposit modal is shown */
343
348
  type DepositInitialScreen = "main" | "transfer" | "card" | "tracker" | "cashapp";
344
349
  interface DepositModalProps {
@@ -405,6 +410,8 @@ interface DepositModalProps {
405
410
  depositConfirmationMode?: "auto_ui" | "auto_silent" | "manual";
406
411
  /** Transfer input variant: 'single_input' (unified selector) or 'double_input' (separate token/chain). Defaults to 'double_input' */
407
412
  transferInputVariant?: TransferInputVariant;
413
+ /** Deposit menu layout: 'stacked' (list) or 'tabs' ('Use Crypto' / 'Use Cash'). Defaults to 'stacked' */
414
+ depositMenuDisplay?: DepositMenuDisplay;
408
415
  /**
409
416
  * Which screen to open first. Defaults to 'main' (the option menu).
410
417
  * - 'main': show the menu (default)
@@ -591,6 +598,8 @@ interface UnifoldConnectProviderConfig {
591
598
  appearance?: ThemeMode | "auto";
592
599
  /** Transfer input variant: 'single_input' (unified selector), 'double_input' (separate token/chain), or 'compact' (minimal QR-focused layout). Defaults to 'double_input' */
593
600
  transferInputVariant?: TransferInputVariant;
601
+ /** Deposit menu layout: 'stacked' (list) or 'tabs' ('Use Crypto' / 'Use Cash'). Defaults to 'stacked' */
602
+ depositMenuDisplay?: DepositMenuDisplay;
594
603
  /** Simple accent/primary color override (applies to both light and dark modes) */
595
604
  accentColor?: string;
596
605
  /** Full theme color customization per mode */
@@ -729,7 +738,7 @@ interface UnifoldProviderProps {
729
738
  publishableKey: string;
730
739
  config?: UnifoldConnectProviderConfig["config"];
731
740
  }
732
- declare function UnifoldProvider({ children, publishableKey, config, }: UnifoldProviderProps): react_jsx_runtime.JSX.Element;
741
+ declare function UnifoldProvider({ children, publishableKey, config, }: UnifoldProviderProps): React$1.JSX.Element;
733
742
  declare function useUnifold(): ConnectContextValue;
734
743
 
735
744
  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
@@ -1,4 +1,3 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
1
  import React$1, { ReactNode } from 'react';
3
2
  export { AmountScreen, CreateSessionParams, CustomerVerification, KYCData, KYCWizardScreen, OnrampConfig, OnrampCustomer, OnrampError, OnrampErrorCode, OnrampScreen, OnrampSession, OnrampSessionTransactionDetails, OnrampStep, OnrampTransaction, StripeOnramp, StripeOnrampHook, StripeOnrampPreconfigure, StripeOnrampProps, getStripePublishableKey, setStripeOnrampApiUrl, setStripeOnrampPublishableKey, useStripeOnramp } from '@unifold/ui-react-native/stripe';
4
3
 
@@ -335,10 +334,16 @@ interface BottomSheetProps {
335
334
  * Use this for sheets that must appear on top of an already-open Modal (iOS limitation). */
336
335
  useModal?: boolean;
337
336
  }
338
- declare function BottomSheet({ visible, onClose, children, closeOnBackdropPress, enablePanDownToClose, showHandle, heightPercent, maxHeightPercent, startExpanded, noPadding, borderTopLeftRadius, borderTopRightRadius, marginHorizontal: marginH, marginBottom: marginBottomProp, overlay, useModal: useModalProp, }: BottomSheetProps): react_jsx_runtime.JSX.Element | null;
337
+ declare function BottomSheet({ visible, onClose, children, closeOnBackdropPress, enablePanDownToClose, showHandle, heightPercent, maxHeightPercent, startExpanded, noPadding, borderTopLeftRadius, borderTopRightRadius, marginHorizontal: marginH, marginBottom: marginBottomProp, overlay, useModal: useModalProp, }: BottomSheetProps): React$1.JSX.Element | null;
339
338
 
340
339
  /** Controls which transfer crypto input variant is rendered */
341
340
  type TransferInputVariant = "single_input" | "double_input" | "compact";
341
+ /**
342
+ * Controls the deposit menu layout.
343
+ * - "stacked": all options shown in a single list (default)
344
+ * - "tabs": options split into "Use Crypto" and "Use Cash" tabs
345
+ */
346
+ type DepositMenuDisplay = "stacked" | "tabs";
342
347
  /** Controls which screen opens first when the deposit modal is shown */
343
348
  type DepositInitialScreen = "main" | "transfer" | "card" | "tracker" | "cashapp";
344
349
  interface DepositModalProps {
@@ -405,6 +410,8 @@ interface DepositModalProps {
405
410
  depositConfirmationMode?: "auto_ui" | "auto_silent" | "manual";
406
411
  /** Transfer input variant: 'single_input' (unified selector) or 'double_input' (separate token/chain). Defaults to 'double_input' */
407
412
  transferInputVariant?: TransferInputVariant;
413
+ /** Deposit menu layout: 'stacked' (list) or 'tabs' ('Use Crypto' / 'Use Cash'). Defaults to 'stacked' */
414
+ depositMenuDisplay?: DepositMenuDisplay;
408
415
  /**
409
416
  * Which screen to open first. Defaults to 'main' (the option menu).
410
417
  * - 'main': show the menu (default)
@@ -591,6 +598,8 @@ interface UnifoldConnectProviderConfig {
591
598
  appearance?: ThemeMode | "auto";
592
599
  /** Transfer input variant: 'single_input' (unified selector), 'double_input' (separate token/chain), or 'compact' (minimal QR-focused layout). Defaults to 'double_input' */
593
600
  transferInputVariant?: TransferInputVariant;
601
+ /** Deposit menu layout: 'stacked' (list) or 'tabs' ('Use Crypto' / 'Use Cash'). Defaults to 'stacked' */
602
+ depositMenuDisplay?: DepositMenuDisplay;
594
603
  /** Simple accent/primary color override (applies to both light and dark modes) */
595
604
  accentColor?: string;
596
605
  /** Full theme color customization per mode */
@@ -729,7 +738,7 @@ interface UnifoldProviderProps {
729
738
  publishableKey: string;
730
739
  config?: UnifoldConnectProviderConfig["config"];
731
740
  }
732
- declare function UnifoldProvider({ children, publishableKey, config, }: UnifoldProviderProps): react_jsx_runtime.JSX.Element;
741
+ declare function UnifoldProvider({ children, publishableKey, config, }: UnifoldProviderProps): React$1.JSX.Element;
733
742
  declare function useUnifold(): ConnectContextValue;
734
743
 
735
744
  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 };