@unifold/connect-react-native 0.1.53 → 0.1.54-beta.2
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 +19 -4
- package/dist/index.d.ts +19 -4
- package/dist/index.js +37 -22
- package/dist/index.mjs +37 -22
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -420,7 +420,7 @@ type TransferInputVariant = "single_input" | "double_input" | "compact";
|
|
|
420
420
|
*/
|
|
421
421
|
type DepositMenuDisplay = "stacked" | "tabs";
|
|
422
422
|
/** Controls which screen opens first when the deposit modal is shown */
|
|
423
|
-
type DepositInitialScreen = "main" | "transfer" | "card" | "tracker" | "cashapp" | "wallet" | "
|
|
423
|
+
type DepositInitialScreen = "main" | "transfer" | "card" | "tracker" | "cashapp" | "wallet" | "apple_pay" | "stripe_link";
|
|
424
424
|
interface DepositModalProps {
|
|
425
425
|
/** Whether the modal is visible */
|
|
426
426
|
visible: boolean;
|
|
@@ -435,6 +435,8 @@ interface DepositModalProps {
|
|
|
435
435
|
publishableKey: string;
|
|
436
436
|
/** Custom modal title */
|
|
437
437
|
modalTitle?: string;
|
|
438
|
+
/** Overrides the Transfer Crypto row title on the main menu and the Transfer Crypto flow header. @default `"Transfer Crypto"` */
|
|
439
|
+
transferCryptoTitle?: string;
|
|
438
440
|
/**
|
|
439
441
|
* Host-app-supplied user identity, set via `beginDeposit({ user })`. Consumed by:
|
|
440
442
|
* - Coinbase Apple Pay — a valid `user.email` skips the email-entry/OTP steps.
|
|
@@ -471,7 +473,7 @@ interface DepositModalProps {
|
|
|
471
473
|
enableCoinbaseApplePay?: boolean;
|
|
472
474
|
/** Enable "Deposit with Card" (fiat on-ramp) option. Overrides dashboard default. Resolves as flag ?? dashboard value ?? true. */
|
|
473
475
|
enableFiatOnramp?: boolean;
|
|
474
|
-
/** Show "Pay with Link" (Stripe) option in the deposit menu */
|
|
476
|
+
/** Show "Pay with Link" (Stripe) option in the deposit menu. Overrides dashboard default. Resolves as flag ?? dashboard value ?? false. The backend `stripe_link.is_hidden` kill switch force-hides it regardless. */
|
|
475
477
|
enableStripeLink?: boolean;
|
|
476
478
|
/** Registered Stripe onramp component (Connect sets this from `enableStripeLink`) */
|
|
477
479
|
StripeOnrampComponent?: React$1.ComponentType<any>;
|
|
@@ -500,6 +502,10 @@ interface DepositModalProps {
|
|
|
500
502
|
* - 'transfer': open Transfer Crypto immediately
|
|
501
503
|
* - 'card': open Buy with Card immediately
|
|
502
504
|
* - 'tracker': open Deposit Tracker immediately (ignored if the tracker is disabled)
|
|
505
|
+
* - 'cashapp': open Pay with Cash App immediately
|
|
506
|
+
* - 'wallet': open Connect Wallet immediately
|
|
507
|
+
* - 'apple_pay': open Coinbase Apple Pay immediately
|
|
508
|
+
* - 'stripe_link': open Stripe Link Pay immediately
|
|
503
509
|
*/
|
|
504
510
|
initialScreen?: DepositInitialScreen;
|
|
505
511
|
/** Callback when deposit succeeds */
|
|
@@ -628,6 +634,8 @@ interface UnifoldConnectProviderConfig {
|
|
|
628
634
|
publishableKey: string;
|
|
629
635
|
config?: {
|
|
630
636
|
modalTitle?: string;
|
|
637
|
+
/** Overrides the Transfer Crypto row title on the main deposit menu and the Transfer Crypto flow header. @default `"Transfer Crypto"` */
|
|
638
|
+
transferCryptoTitle?: string;
|
|
631
639
|
hideDepositTracker?: boolean;
|
|
632
640
|
/** Theme appearance: 'light', 'dark', or 'auto' (system preference). Defaults to 'dark' */
|
|
633
641
|
appearance?: ThemeMode | "auto";
|
|
@@ -648,8 +656,11 @@ interface UnifoldConnectProviderConfig {
|
|
|
648
656
|
/** Border radius configuration for all bottom sheets */
|
|
649
657
|
sheetBorderRadius?: DepositModalProps["sheetBorderRadius"];
|
|
650
658
|
/**
|
|
651
|
-
* Show "Pay with Link" (Stripe) option in the deposit menu.
|
|
652
|
-
*
|
|
659
|
+
* Show "Pay with Link" (Stripe) option in the deposit menu. Overrides
|
|
660
|
+
* dashboard default. Resolves as flag ?? dashboard value ?? false — omit it
|
|
661
|
+
* to defer to the backend config. Stripe onramp is bundled with Connect.
|
|
662
|
+
* Note: the backend `stripe_link.is_hidden` kill switch force-hides the
|
|
663
|
+
* option regardless of this flag.
|
|
653
664
|
*/
|
|
654
665
|
enableStripeLink?: boolean;
|
|
655
666
|
/** Enable "Transfer Crypto" option. Overrides dashboard default. Resolves as flag ?? dashboard value ?? true. */
|
|
@@ -714,6 +725,10 @@ interface DepositConfig {
|
|
|
714
725
|
* - 'transfer': open Transfer Crypto immediately
|
|
715
726
|
* - 'card': open Buy with Card immediately
|
|
716
727
|
* - 'tracker': open Deposit Tracker immediately
|
|
728
|
+
* - 'cashapp': open Pay with Cash App immediately
|
|
729
|
+
* - 'wallet': open Connect Wallet immediately
|
|
730
|
+
* - 'apple_pay': open Coinbase Apple Pay immediately
|
|
731
|
+
* - 'stripe_link': open Stripe Link Pay immediately
|
|
717
732
|
*/
|
|
718
733
|
initialScreen?: DepositInitialScreen;
|
|
719
734
|
onSuccess?: (data: DepositResult) => void;
|
package/dist/index.d.ts
CHANGED
|
@@ -420,7 +420,7 @@ type TransferInputVariant = "single_input" | "double_input" | "compact";
|
|
|
420
420
|
*/
|
|
421
421
|
type DepositMenuDisplay = "stacked" | "tabs";
|
|
422
422
|
/** Controls which screen opens first when the deposit modal is shown */
|
|
423
|
-
type DepositInitialScreen = "main" | "transfer" | "card" | "tracker" | "cashapp" | "wallet" | "
|
|
423
|
+
type DepositInitialScreen = "main" | "transfer" | "card" | "tracker" | "cashapp" | "wallet" | "apple_pay" | "stripe_link";
|
|
424
424
|
interface DepositModalProps {
|
|
425
425
|
/** Whether the modal is visible */
|
|
426
426
|
visible: boolean;
|
|
@@ -435,6 +435,8 @@ interface DepositModalProps {
|
|
|
435
435
|
publishableKey: string;
|
|
436
436
|
/** Custom modal title */
|
|
437
437
|
modalTitle?: string;
|
|
438
|
+
/** Overrides the Transfer Crypto row title on the main menu and the Transfer Crypto flow header. @default `"Transfer Crypto"` */
|
|
439
|
+
transferCryptoTitle?: string;
|
|
438
440
|
/**
|
|
439
441
|
* Host-app-supplied user identity, set via `beginDeposit({ user })`. Consumed by:
|
|
440
442
|
* - Coinbase Apple Pay — a valid `user.email` skips the email-entry/OTP steps.
|
|
@@ -471,7 +473,7 @@ interface DepositModalProps {
|
|
|
471
473
|
enableCoinbaseApplePay?: boolean;
|
|
472
474
|
/** Enable "Deposit with Card" (fiat on-ramp) option. Overrides dashboard default. Resolves as flag ?? dashboard value ?? true. */
|
|
473
475
|
enableFiatOnramp?: boolean;
|
|
474
|
-
/** Show "Pay with Link" (Stripe) option in the deposit menu */
|
|
476
|
+
/** Show "Pay with Link" (Stripe) option in the deposit menu. Overrides dashboard default. Resolves as flag ?? dashboard value ?? false. The backend `stripe_link.is_hidden` kill switch force-hides it regardless. */
|
|
475
477
|
enableStripeLink?: boolean;
|
|
476
478
|
/** Registered Stripe onramp component (Connect sets this from `enableStripeLink`) */
|
|
477
479
|
StripeOnrampComponent?: React$1.ComponentType<any>;
|
|
@@ -500,6 +502,10 @@ interface DepositModalProps {
|
|
|
500
502
|
* - 'transfer': open Transfer Crypto immediately
|
|
501
503
|
* - 'card': open Buy with Card immediately
|
|
502
504
|
* - 'tracker': open Deposit Tracker immediately (ignored if the tracker is disabled)
|
|
505
|
+
* - 'cashapp': open Pay with Cash App immediately
|
|
506
|
+
* - 'wallet': open Connect Wallet immediately
|
|
507
|
+
* - 'apple_pay': open Coinbase Apple Pay immediately
|
|
508
|
+
* - 'stripe_link': open Stripe Link Pay immediately
|
|
503
509
|
*/
|
|
504
510
|
initialScreen?: DepositInitialScreen;
|
|
505
511
|
/** Callback when deposit succeeds */
|
|
@@ -628,6 +634,8 @@ interface UnifoldConnectProviderConfig {
|
|
|
628
634
|
publishableKey: string;
|
|
629
635
|
config?: {
|
|
630
636
|
modalTitle?: string;
|
|
637
|
+
/** Overrides the Transfer Crypto row title on the main deposit menu and the Transfer Crypto flow header. @default `"Transfer Crypto"` */
|
|
638
|
+
transferCryptoTitle?: string;
|
|
631
639
|
hideDepositTracker?: boolean;
|
|
632
640
|
/** Theme appearance: 'light', 'dark', or 'auto' (system preference). Defaults to 'dark' */
|
|
633
641
|
appearance?: ThemeMode | "auto";
|
|
@@ -648,8 +656,11 @@ interface UnifoldConnectProviderConfig {
|
|
|
648
656
|
/** Border radius configuration for all bottom sheets */
|
|
649
657
|
sheetBorderRadius?: DepositModalProps["sheetBorderRadius"];
|
|
650
658
|
/**
|
|
651
|
-
* Show "Pay with Link" (Stripe) option in the deposit menu.
|
|
652
|
-
*
|
|
659
|
+
* Show "Pay with Link" (Stripe) option in the deposit menu. Overrides
|
|
660
|
+
* dashboard default. Resolves as flag ?? dashboard value ?? false — omit it
|
|
661
|
+
* to defer to the backend config. Stripe onramp is bundled with Connect.
|
|
662
|
+
* Note: the backend `stripe_link.is_hidden` kill switch force-hides the
|
|
663
|
+
* option regardless of this flag.
|
|
653
664
|
*/
|
|
654
665
|
enableStripeLink?: boolean;
|
|
655
666
|
/** Enable "Transfer Crypto" option. Overrides dashboard default. Resolves as flag ?? dashboard value ?? true. */
|
|
@@ -714,6 +725,10 @@ interface DepositConfig {
|
|
|
714
725
|
* - 'transfer': open Transfer Crypto immediately
|
|
715
726
|
* - 'card': open Buy with Card immediately
|
|
716
727
|
* - 'tracker': open Deposit Tracker immediately
|
|
728
|
+
* - 'cashapp': open Pay with Cash App immediately
|
|
729
|
+
* - 'wallet': open Connect Wallet immediately
|
|
730
|
+
* - 'apple_pay': open Coinbase Apple Pay immediately
|
|
731
|
+
* - 'stripe_link': open Stripe Link Pay immediately
|
|
717
732
|
*/
|
|
718
733
|
initialScreen?: DepositInitialScreen;
|
|
719
734
|
onSuccess?: (data: DepositResult) => void;
|