@unifold/connect-react-native 0.1.48 → 0.1.50-beta.1

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,7 +334,7 @@ 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";
@@ -346,7 +345,7 @@ type TransferInputVariant = "single_input" | "double_input" | "compact";
346
345
  */
347
346
  type DepositMenuDisplay = "stacked" | "tabs";
348
347
  /** Controls which screen opens first when the deposit modal is shown */
349
- type DepositInitialScreen = "main" | "transfer" | "card" | "tracker" | "cashapp";
348
+ type DepositInitialScreen = "main" | "transfer" | "card" | "tracker" | "cashapp" | "wallet";
350
349
  interface DepositModalProps {
351
350
  /** Whether the modal is visible */
352
351
  visible: boolean;
@@ -380,6 +379,8 @@ interface DepositModalProps {
380
379
  hideDepositTracker?: boolean;
381
380
  /** Show "Pay with Cash App" option in the deposit menu */
382
381
  enableCashApp?: boolean;
382
+ /** Show "Connect Wallet" option in the deposit menu. When undefined, uses the project dashboard setting. */
383
+ enableConnectWallet?: boolean;
383
384
  /** Show "Pay with Link" (Stripe) option in the deposit menu */
384
385
  enableStripeLinkPay?: boolean;
385
386
  /** Registered Stripe onramp component (Connect sets this from `enableStripeLinkPay`) */
@@ -464,6 +465,8 @@ interface DepositModalProps {
464
465
  stripeLinkPay?: BorderRadiusConfig;
465
466
  /** Cash App sheet */
466
467
  cashApp?: BorderRadiusConfig;
468
+ /** Connect Wallet sheet */
469
+ connectWallet?: BorderRadiusConfig;
467
470
  /** WebView sheet (inside buy with card) */
468
471
  webView?: BorderRadiusConfig;
469
472
  };
@@ -620,6 +623,8 @@ interface UnifoldConnectProviderConfig {
620
623
  enableStripeLinkPay?: boolean;
621
624
  /** Show "Pay with Cash App" option in the deposit menu. Defaults to false. */
622
625
  enableCashApp?: boolean;
626
+ /** Show "Connect Wallet" option in the deposit menu. When undefined, uses the dashboard setting. */
627
+ enableConnectWallet?: boolean;
623
628
  /**
624
629
  * Apple Pay merchant id (`merchant.com...`) for Stripe Link Pay. Must match the
625
630
  * `merchantIdentifier` in the `@stripe/stripe-react-native` Expo plugin (app.json).
@@ -739,7 +744,7 @@ interface UnifoldProviderProps {
739
744
  publishableKey: string;
740
745
  config?: UnifoldConnectProviderConfig["config"];
741
746
  }
742
- declare function UnifoldProvider({ children, publishableKey, config, }: UnifoldProviderProps): react_jsx_runtime.JSX.Element;
747
+ declare function UnifoldProvider({ children, publishableKey, config, }: UnifoldProviderProps): React$1.JSX.Element;
743
748
  declare function useUnifold(): ConnectContextValue;
744
749
 
745
750
  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,7 +334,7 @@ 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";
@@ -346,7 +345,7 @@ type TransferInputVariant = "single_input" | "double_input" | "compact";
346
345
  */
347
346
  type DepositMenuDisplay = "stacked" | "tabs";
348
347
  /** Controls which screen opens first when the deposit modal is shown */
349
- type DepositInitialScreen = "main" | "transfer" | "card" | "tracker" | "cashapp";
348
+ type DepositInitialScreen = "main" | "transfer" | "card" | "tracker" | "cashapp" | "wallet";
350
349
  interface DepositModalProps {
351
350
  /** Whether the modal is visible */
352
351
  visible: boolean;
@@ -380,6 +379,8 @@ interface DepositModalProps {
380
379
  hideDepositTracker?: boolean;
381
380
  /** Show "Pay with Cash App" option in the deposit menu */
382
381
  enableCashApp?: boolean;
382
+ /** Show "Connect Wallet" option in the deposit menu. When undefined, uses the project dashboard setting. */
383
+ enableConnectWallet?: boolean;
383
384
  /** Show "Pay with Link" (Stripe) option in the deposit menu */
384
385
  enableStripeLinkPay?: boolean;
385
386
  /** Registered Stripe onramp component (Connect sets this from `enableStripeLinkPay`) */
@@ -464,6 +465,8 @@ interface DepositModalProps {
464
465
  stripeLinkPay?: BorderRadiusConfig;
465
466
  /** Cash App sheet */
466
467
  cashApp?: BorderRadiusConfig;
468
+ /** Connect Wallet sheet */
469
+ connectWallet?: BorderRadiusConfig;
467
470
  /** WebView sheet (inside buy with card) */
468
471
  webView?: BorderRadiusConfig;
469
472
  };
@@ -620,6 +623,8 @@ interface UnifoldConnectProviderConfig {
620
623
  enableStripeLinkPay?: boolean;
621
624
  /** Show "Pay with Cash App" option in the deposit menu. Defaults to false. */
622
625
  enableCashApp?: boolean;
626
+ /** Show "Connect Wallet" option in the deposit menu. When undefined, uses the dashboard setting. */
627
+ enableConnectWallet?: boolean;
623
628
  /**
624
629
  * Apple Pay merchant id (`merchant.com...`) for Stripe Link Pay. Must match the
625
630
  * `merchantIdentifier` in the `@stripe/stripe-react-native` Expo plugin (app.json).
@@ -739,7 +744,7 @@ interface UnifoldProviderProps {
739
744
  publishableKey: string;
740
745
  config?: UnifoldConnectProviderConfig["config"];
741
746
  }
742
- declare function UnifoldProvider({ children, publishableKey, config, }: UnifoldProviderProps): react_jsx_runtime.JSX.Element;
747
+ declare function UnifoldProvider({ children, publishableKey, config, }: UnifoldProviderProps): React$1.JSX.Element;
743
748
  declare function useUnifold(): ConnectContextValue;
744
749
 
745
750
  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 };