@unifold/connect-react-native 0.1.44 → 0.1.45
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 +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +5 -3
- package/dist/index.mjs +5 -3
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -331,7 +331,7 @@ declare function BottomSheet({ visible, onClose, children, closeOnBackdropPress,
|
|
|
331
331
|
/** Controls which transfer crypto input variant is rendered */
|
|
332
332
|
type TransferInputVariant = "single_input" | "double_input";
|
|
333
333
|
/** Controls which screen opens first when the deposit modal is shown */
|
|
334
|
-
type DepositInitialScreen = "main" | "transfer" | "card" | "tracker";
|
|
334
|
+
type DepositInitialScreen = "main" | "transfer" | "card" | "tracker" | "cashapp";
|
|
335
335
|
interface DepositModalProps {
|
|
336
336
|
/** Whether the modal is visible */
|
|
337
337
|
visible: boolean;
|
|
@@ -363,6 +363,8 @@ interface DepositModalProps {
|
|
|
363
363
|
showBalance?: boolean;
|
|
364
364
|
/** Hide the deposit tracker button */
|
|
365
365
|
hideDepositTracker?: boolean;
|
|
366
|
+
/** Show "Pay with Cash App" option in the deposit menu */
|
|
367
|
+
enableCashApp?: boolean;
|
|
366
368
|
/** Show "Pay with Link" (Stripe) option in the deposit menu */
|
|
367
369
|
enableStripeLinkPay?: boolean;
|
|
368
370
|
/** Registered Stripe onramp component (Connect sets this from `enableStripeLinkPay`) */
|
|
@@ -443,6 +445,8 @@ interface DepositModalProps {
|
|
|
443
445
|
infoSheet?: BorderRadiusConfig;
|
|
444
446
|
/** Stripe Link Pay sheet */
|
|
445
447
|
stripeLinkPay?: BorderRadiusConfig;
|
|
448
|
+
/** Cash App sheet */
|
|
449
|
+
cashApp?: BorderRadiusConfig;
|
|
446
450
|
/** WebView sheet (inside buy with card) */
|
|
447
451
|
webView?: BorderRadiusConfig;
|
|
448
452
|
};
|
|
@@ -595,6 +599,8 @@ interface UnifoldConnectProviderConfig {
|
|
|
595
599
|
* Stripe onramp is bundled with Connect; set to false to hide the option.
|
|
596
600
|
*/
|
|
597
601
|
enableStripeLinkPay?: boolean;
|
|
602
|
+
/** Show "Pay with Cash App" option in the deposit menu. Defaults to false. */
|
|
603
|
+
enableCashApp?: boolean;
|
|
598
604
|
/**
|
|
599
605
|
* Apple Pay merchant id (`merchant.com...`) for Stripe Link Pay. Must match the
|
|
600
606
|
* `merchantIdentifier` in the `@stripe/stripe-react-native` Expo plugin (app.json).
|
package/dist/index.d.ts
CHANGED
|
@@ -331,7 +331,7 @@ declare function BottomSheet({ visible, onClose, children, closeOnBackdropPress,
|
|
|
331
331
|
/** Controls which transfer crypto input variant is rendered */
|
|
332
332
|
type TransferInputVariant = "single_input" | "double_input";
|
|
333
333
|
/** Controls which screen opens first when the deposit modal is shown */
|
|
334
|
-
type DepositInitialScreen = "main" | "transfer" | "card" | "tracker";
|
|
334
|
+
type DepositInitialScreen = "main" | "transfer" | "card" | "tracker" | "cashapp";
|
|
335
335
|
interface DepositModalProps {
|
|
336
336
|
/** Whether the modal is visible */
|
|
337
337
|
visible: boolean;
|
|
@@ -363,6 +363,8 @@ interface DepositModalProps {
|
|
|
363
363
|
showBalance?: boolean;
|
|
364
364
|
/** Hide the deposit tracker button */
|
|
365
365
|
hideDepositTracker?: boolean;
|
|
366
|
+
/** Show "Pay with Cash App" option in the deposit menu */
|
|
367
|
+
enableCashApp?: boolean;
|
|
366
368
|
/** Show "Pay with Link" (Stripe) option in the deposit menu */
|
|
367
369
|
enableStripeLinkPay?: boolean;
|
|
368
370
|
/** Registered Stripe onramp component (Connect sets this from `enableStripeLinkPay`) */
|
|
@@ -443,6 +445,8 @@ interface DepositModalProps {
|
|
|
443
445
|
infoSheet?: BorderRadiusConfig;
|
|
444
446
|
/** Stripe Link Pay sheet */
|
|
445
447
|
stripeLinkPay?: BorderRadiusConfig;
|
|
448
|
+
/** Cash App sheet */
|
|
449
|
+
cashApp?: BorderRadiusConfig;
|
|
446
450
|
/** WebView sheet (inside buy with card) */
|
|
447
451
|
webView?: BorderRadiusConfig;
|
|
448
452
|
};
|
|
@@ -595,6 +599,8 @@ interface UnifoldConnectProviderConfig {
|
|
|
595
599
|
* Stripe onramp is bundled with Connect; set to false to hide the option.
|
|
596
600
|
*/
|
|
597
601
|
enableStripeLinkPay?: boolean;
|
|
602
|
+
/** Show "Pay with Cash App" option in the deposit menu. Defaults to false. */
|
|
603
|
+
enableCashApp?: boolean;
|
|
598
604
|
/**
|
|
599
605
|
* Apple Pay merchant id (`merchant.com...`) for Stripe Link Pay. Must match the
|
|
600
606
|
* `merchantIdentifier` in the `@stripe/stripe-react-native` Expo plugin (app.json).
|