@unifold/connect-react-native 0.1.20 → 0.1.22

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/README.md CHANGED
@@ -217,6 +217,8 @@ const { beginDeposit, closeDeposit, publishableKey } = useUnifold();
217
217
  | `destinationTokenAddress` | `string` | No | Target token contract address |
218
218
  | `destinationTokenSymbol` | `string` | No | Target token symbol (e.g., `'USDC'`) |
219
219
  | `recipientAddress` | `string` | No | Wallet address to receive funds |
220
+ | `stripeOnrampEmail` | `string` | No | Pre-fills Stripe Link Pay email when user opens Pay with Stripe Link from the deposit menu |
221
+ | `stripeOnrampPhone` | `string` | No | Pre-fills Stripe Link Pay phone (use with `stripeOnrampEmail` per Stripe’s flow) |
220
222
  | `defaultChainType` | `'ethereum' \| 'solana' \| 'bitcoin'` | No | Pre-select source network type |
221
223
  | `defaultChainId` | `string` | No | Pre-select source chain ID |
222
224
  | `defaultTokenAddress` | `string` | No | Pre-select source token address |
package/dist/index.d.mts CHANGED
@@ -277,6 +277,10 @@ export interface DepositModalProps {
277
277
  enableStripeLinkPay?: boolean;
278
278
  /** Injected StripeOnramp component — avoids bundling Stripe into the main entry */
279
279
  StripeOnrampComponent?: React$1.ComponentType<any>;
280
+ /** Pre-fills Stripe Link Pay email — set via `beginDeposit({ stripeOnrampEmail })` (forwarded as `email` on `StripeOnramp`) */
281
+ stripeOnrampEmail?: string;
282
+ /** Pre-fills Stripe Link Pay phone — set via `beginDeposit({ stripeOnrampPhone })` (forwarded as `phone` on `StripeOnramp`) */
283
+ stripeOnrampPhone?: string;
280
284
  /**
281
285
  * How deposit confirmation is handled: auto_ui (show waiting UI + poll after 10s),
282
286
  * auto_silent (poll after 10s, no waiting UI), manual ("I've deposited" button starts polling).
@@ -430,6 +434,10 @@ export interface DepositConfig {
430
434
  defaultChainId?: string;
431
435
  defaultTokenAddress?: string;
432
436
  showBalance?: boolean;
437
+ /** Pre-fills Stripe Link Pay email (`beginDeposit` only — not provider config) */
438
+ stripeOnrampEmail?: string;
439
+ /** Pre-fills Stripe Link Pay phone; with `stripeOnrampEmail`, Stripe may skip verify steps */
440
+ stripeOnrampPhone?: string;
433
441
  /**
434
442
  * How deposit confirmation and waiting behavior is handled.
435
443
  * - auto_ui (default): Automatically show "Processing deposit" UI and start polling after 10s. No "I've deposited" button.
package/dist/index.d.ts CHANGED
@@ -277,6 +277,10 @@ export interface DepositModalProps {
277
277
  enableStripeLinkPay?: boolean;
278
278
  /** Injected StripeOnramp component — avoids bundling Stripe into the main entry */
279
279
  StripeOnrampComponent?: React$1.ComponentType<any>;
280
+ /** Pre-fills Stripe Link Pay email — set via `beginDeposit({ stripeOnrampEmail })` (forwarded as `email` on `StripeOnramp`) */
281
+ stripeOnrampEmail?: string;
282
+ /** Pre-fills Stripe Link Pay phone — set via `beginDeposit({ stripeOnrampPhone })` (forwarded as `phone` on `StripeOnramp`) */
283
+ stripeOnrampPhone?: string;
280
284
  /**
281
285
  * How deposit confirmation is handled: auto_ui (show waiting UI + poll after 10s),
282
286
  * auto_silent (poll after 10s, no waiting UI), manual ("I've deposited" button starts polling).
@@ -430,6 +434,10 @@ export interface DepositConfig {
430
434
  defaultChainId?: string;
431
435
  defaultTokenAddress?: string;
432
436
  showBalance?: boolean;
437
+ /** Pre-fills Stripe Link Pay email (`beginDeposit` only — not provider config) */
438
+ stripeOnrampEmail?: string;
439
+ /** Pre-fills Stripe Link Pay phone; with `stripeOnrampEmail`, Stripe may skip verify steps */
440
+ stripeOnrampPhone?: string;
433
441
  /**
434
442
  * How deposit confirmation and waiting behavior is handled.
435
443
  * - auto_ui (default): Automatically show "Processing deposit" UI and start polling after 10s. No "I've deposited" button.