@unifold/connect-react-native 0.1.44 → 0.1.46
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 +13 -2
- package/dist/index.d.ts +13 -2
- package/dist/index.js +5 -3
- package/dist/index.mjs +5 -3
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -325,13 +325,18 @@ interface BottomSheetProps {
|
|
|
325
325
|
noPadding?: boolean;
|
|
326
326
|
borderTopLeftRadius?: number;
|
|
327
327
|
borderTopRightRadius?: number;
|
|
328
|
+
/** Extra content rendered inside the Modal layer above the sheet (e.g. a secondary overlay sheet). */
|
|
329
|
+
overlay?: React$1.ReactNode;
|
|
330
|
+
/** When false, render as an absolutely-positioned overlay instead of inside a Modal.
|
|
331
|
+
* Use this for sheets that must appear on top of an already-open Modal (iOS limitation). */
|
|
332
|
+
useModal?: boolean;
|
|
328
333
|
}
|
|
329
|
-
declare function BottomSheet({ visible, onClose, children, closeOnBackdropPress, enablePanDownToClose, showHandle, heightPercent, maxHeightPercent, startExpanded, noPadding, borderTopLeftRadius, borderTopRightRadius, }: BottomSheetProps): react_jsx_runtime.JSX.Element | null;
|
|
334
|
+
declare function BottomSheet({ visible, onClose, children, closeOnBackdropPress, enablePanDownToClose, showHandle, heightPercent, maxHeightPercent, startExpanded, noPadding, borderTopLeftRadius, borderTopRightRadius, overlay, useModal: useModalProp, }: BottomSheetProps): react_jsx_runtime.JSX.Element | null;
|
|
330
335
|
|
|
331
336
|
/** Controls which transfer crypto input variant is rendered */
|
|
332
337
|
type TransferInputVariant = "single_input" | "double_input";
|
|
333
338
|
/** Controls which screen opens first when the deposit modal is shown */
|
|
334
|
-
type DepositInitialScreen = "main" | "transfer" | "card" | "tracker";
|
|
339
|
+
type DepositInitialScreen = "main" | "transfer" | "card" | "tracker" | "cashapp";
|
|
335
340
|
interface DepositModalProps {
|
|
336
341
|
/** Whether the modal is visible */
|
|
337
342
|
visible: boolean;
|
|
@@ -363,6 +368,8 @@ interface DepositModalProps {
|
|
|
363
368
|
showBalance?: boolean;
|
|
364
369
|
/** Hide the deposit tracker button */
|
|
365
370
|
hideDepositTracker?: boolean;
|
|
371
|
+
/** Show "Pay with Cash App" option in the deposit menu */
|
|
372
|
+
enableCashApp?: boolean;
|
|
366
373
|
/** Show "Pay with Link" (Stripe) option in the deposit menu */
|
|
367
374
|
enableStripeLinkPay?: boolean;
|
|
368
375
|
/** Registered Stripe onramp component (Connect sets this from `enableStripeLinkPay`) */
|
|
@@ -443,6 +450,8 @@ interface DepositModalProps {
|
|
|
443
450
|
infoSheet?: BorderRadiusConfig;
|
|
444
451
|
/** Stripe Link Pay sheet */
|
|
445
452
|
stripeLinkPay?: BorderRadiusConfig;
|
|
453
|
+
/** Cash App sheet */
|
|
454
|
+
cashApp?: BorderRadiusConfig;
|
|
446
455
|
/** WebView sheet (inside buy with card) */
|
|
447
456
|
webView?: BorderRadiusConfig;
|
|
448
457
|
};
|
|
@@ -595,6 +604,8 @@ interface UnifoldConnectProviderConfig {
|
|
|
595
604
|
* Stripe onramp is bundled with Connect; set to false to hide the option.
|
|
596
605
|
*/
|
|
597
606
|
enableStripeLinkPay?: boolean;
|
|
607
|
+
/** Show "Pay with Cash App" option in the deposit menu. Defaults to false. */
|
|
608
|
+
enableCashApp?: boolean;
|
|
598
609
|
/**
|
|
599
610
|
* Apple Pay merchant id (`merchant.com...`) for Stripe Link Pay. Must match the
|
|
600
611
|
* `merchantIdentifier` in the `@stripe/stripe-react-native` Expo plugin (app.json).
|
package/dist/index.d.ts
CHANGED
|
@@ -325,13 +325,18 @@ interface BottomSheetProps {
|
|
|
325
325
|
noPadding?: boolean;
|
|
326
326
|
borderTopLeftRadius?: number;
|
|
327
327
|
borderTopRightRadius?: number;
|
|
328
|
+
/** Extra content rendered inside the Modal layer above the sheet (e.g. a secondary overlay sheet). */
|
|
329
|
+
overlay?: React$1.ReactNode;
|
|
330
|
+
/** When false, render as an absolutely-positioned overlay instead of inside a Modal.
|
|
331
|
+
* Use this for sheets that must appear on top of an already-open Modal (iOS limitation). */
|
|
332
|
+
useModal?: boolean;
|
|
328
333
|
}
|
|
329
|
-
declare function BottomSheet({ visible, onClose, children, closeOnBackdropPress, enablePanDownToClose, showHandle, heightPercent, maxHeightPercent, startExpanded, noPadding, borderTopLeftRadius, borderTopRightRadius, }: BottomSheetProps): react_jsx_runtime.JSX.Element | null;
|
|
334
|
+
declare function BottomSheet({ visible, onClose, children, closeOnBackdropPress, enablePanDownToClose, showHandle, heightPercent, maxHeightPercent, startExpanded, noPadding, borderTopLeftRadius, borderTopRightRadius, overlay, useModal: useModalProp, }: BottomSheetProps): react_jsx_runtime.JSX.Element | null;
|
|
330
335
|
|
|
331
336
|
/** Controls which transfer crypto input variant is rendered */
|
|
332
337
|
type TransferInputVariant = "single_input" | "double_input";
|
|
333
338
|
/** Controls which screen opens first when the deposit modal is shown */
|
|
334
|
-
type DepositInitialScreen = "main" | "transfer" | "card" | "tracker";
|
|
339
|
+
type DepositInitialScreen = "main" | "transfer" | "card" | "tracker" | "cashapp";
|
|
335
340
|
interface DepositModalProps {
|
|
336
341
|
/** Whether the modal is visible */
|
|
337
342
|
visible: boolean;
|
|
@@ -363,6 +368,8 @@ interface DepositModalProps {
|
|
|
363
368
|
showBalance?: boolean;
|
|
364
369
|
/** Hide the deposit tracker button */
|
|
365
370
|
hideDepositTracker?: boolean;
|
|
371
|
+
/** Show "Pay with Cash App" option in the deposit menu */
|
|
372
|
+
enableCashApp?: boolean;
|
|
366
373
|
/** Show "Pay with Link" (Stripe) option in the deposit menu */
|
|
367
374
|
enableStripeLinkPay?: boolean;
|
|
368
375
|
/** Registered Stripe onramp component (Connect sets this from `enableStripeLinkPay`) */
|
|
@@ -443,6 +450,8 @@ interface DepositModalProps {
|
|
|
443
450
|
infoSheet?: BorderRadiusConfig;
|
|
444
451
|
/** Stripe Link Pay sheet */
|
|
445
452
|
stripeLinkPay?: BorderRadiusConfig;
|
|
453
|
+
/** Cash App sheet */
|
|
454
|
+
cashApp?: BorderRadiusConfig;
|
|
446
455
|
/** WebView sheet (inside buy with card) */
|
|
447
456
|
webView?: BorderRadiusConfig;
|
|
448
457
|
};
|
|
@@ -595,6 +604,8 @@ interface UnifoldConnectProviderConfig {
|
|
|
595
604
|
* Stripe onramp is bundled with Connect; set to false to hide the option.
|
|
596
605
|
*/
|
|
597
606
|
enableStripeLinkPay?: boolean;
|
|
607
|
+
/** Show "Pay with Cash App" option in the deposit menu. Defaults to false. */
|
|
608
|
+
enableCashApp?: boolean;
|
|
598
609
|
/**
|
|
599
610
|
* Apple Pay merchant id (`merchant.com...`) for Stripe Link Pay. Must match the
|
|
600
611
|
* `merchantIdentifier` in the `@stripe/stripe-react-native` Expo plugin (app.json).
|