@unifold/connect-react-native 0.1.50 → 0.1.51
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 +14 -1
- package/dist/index.d.ts +14 -1
- package/dist/index.js +5 -5
- package/dist/index.mjs +5 -5
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -371,6 +371,11 @@ interface BottomSheetProps {
|
|
|
371
371
|
onClose: () => void;
|
|
372
372
|
children: React$1.ReactNode;
|
|
373
373
|
closeOnBackdropPress?: boolean;
|
|
374
|
+
/** Handler invoked when the backdrop is tapped (and `closeOnBackdropPress`
|
|
375
|
+
* is true). Defaults to `onClose`. Provide this when a backdrop tap should
|
|
376
|
+
* behave differently from pan-down/hardware-back (e.g. fully dismiss a
|
|
377
|
+
* multi-screen modal instead of navigating back one step). */
|
|
378
|
+
onBackdropPress?: () => void;
|
|
374
379
|
enablePanDownToClose?: boolean;
|
|
375
380
|
showHandle?: boolean;
|
|
376
381
|
heightPercent?: number;
|
|
@@ -389,7 +394,7 @@ interface BottomSheetProps {
|
|
|
389
394
|
* Use this for sheets that must appear on top of an already-open Modal (iOS limitation). */
|
|
390
395
|
useModal?: boolean;
|
|
391
396
|
}
|
|
392
|
-
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;
|
|
397
|
+
declare function BottomSheet({ visible, onClose, children, closeOnBackdropPress, onBackdropPress, enablePanDownToClose, showHandle, heightPercent, maxHeightPercent, startExpanded, noPadding, borderTopLeftRadius, borderTopRightRadius, marginHorizontal: marginH, marginBottom: marginBottomProp, overlay, useModal: useModalProp, }: BottomSheetProps): React$1.JSX.Element | null;
|
|
393
398
|
|
|
394
399
|
/** Controls which transfer crypto input variant is rendered */
|
|
395
400
|
type TransferInputVariant = "single_input" | "double_input" | "compact";
|
|
@@ -406,6 +411,9 @@ interface DepositModalProps {
|
|
|
406
411
|
visible: boolean;
|
|
407
412
|
/** Callback when the modal should close */
|
|
408
413
|
onClose: () => void;
|
|
414
|
+
/** When true, tapping the backdrop (outside the sheet) dismisses the deposit
|
|
415
|
+
* modal. Defaults to false so an outside tap does not dismiss. */
|
|
416
|
+
closeOnBackdropPress?: boolean;
|
|
409
417
|
/** User ID for the deposit */
|
|
410
418
|
externalUserId: string;
|
|
411
419
|
/** Publishable API key */
|
|
@@ -692,6 +700,11 @@ interface DepositConfig {
|
|
|
692
700
|
initialScreen?: DepositInitialScreen;
|
|
693
701
|
onSuccess?: (data: DepositResult) => void;
|
|
694
702
|
onError?: (error: DepositError) => void;
|
|
703
|
+
/** Called when the user dismisses the deposit modal */
|
|
704
|
+
onDismiss?: () => void;
|
|
705
|
+
/** When true, tapping outside the deposit modal (backdrop) dismisses it and
|
|
706
|
+
* triggers `onDismiss`. Defaults to false. */
|
|
707
|
+
closeOnBackdropPress?: boolean;
|
|
695
708
|
}
|
|
696
709
|
interface WithdrawResult {
|
|
697
710
|
message: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -371,6 +371,11 @@ interface BottomSheetProps {
|
|
|
371
371
|
onClose: () => void;
|
|
372
372
|
children: React$1.ReactNode;
|
|
373
373
|
closeOnBackdropPress?: boolean;
|
|
374
|
+
/** Handler invoked when the backdrop is tapped (and `closeOnBackdropPress`
|
|
375
|
+
* is true). Defaults to `onClose`. Provide this when a backdrop tap should
|
|
376
|
+
* behave differently from pan-down/hardware-back (e.g. fully dismiss a
|
|
377
|
+
* multi-screen modal instead of navigating back one step). */
|
|
378
|
+
onBackdropPress?: () => void;
|
|
374
379
|
enablePanDownToClose?: boolean;
|
|
375
380
|
showHandle?: boolean;
|
|
376
381
|
heightPercent?: number;
|
|
@@ -389,7 +394,7 @@ interface BottomSheetProps {
|
|
|
389
394
|
* Use this for sheets that must appear on top of an already-open Modal (iOS limitation). */
|
|
390
395
|
useModal?: boolean;
|
|
391
396
|
}
|
|
392
|
-
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;
|
|
397
|
+
declare function BottomSheet({ visible, onClose, children, closeOnBackdropPress, onBackdropPress, enablePanDownToClose, showHandle, heightPercent, maxHeightPercent, startExpanded, noPadding, borderTopLeftRadius, borderTopRightRadius, marginHorizontal: marginH, marginBottom: marginBottomProp, overlay, useModal: useModalProp, }: BottomSheetProps): React$1.JSX.Element | null;
|
|
393
398
|
|
|
394
399
|
/** Controls which transfer crypto input variant is rendered */
|
|
395
400
|
type TransferInputVariant = "single_input" | "double_input" | "compact";
|
|
@@ -406,6 +411,9 @@ interface DepositModalProps {
|
|
|
406
411
|
visible: boolean;
|
|
407
412
|
/** Callback when the modal should close */
|
|
408
413
|
onClose: () => void;
|
|
414
|
+
/** When true, tapping the backdrop (outside the sheet) dismisses the deposit
|
|
415
|
+
* modal. Defaults to false so an outside tap does not dismiss. */
|
|
416
|
+
closeOnBackdropPress?: boolean;
|
|
409
417
|
/** User ID for the deposit */
|
|
410
418
|
externalUserId: string;
|
|
411
419
|
/** Publishable API key */
|
|
@@ -692,6 +700,11 @@ interface DepositConfig {
|
|
|
692
700
|
initialScreen?: DepositInitialScreen;
|
|
693
701
|
onSuccess?: (data: DepositResult) => void;
|
|
694
702
|
onError?: (error: DepositError) => void;
|
|
703
|
+
/** Called when the user dismisses the deposit modal */
|
|
704
|
+
onDismiss?: () => void;
|
|
705
|
+
/** When true, tapping outside the deposit modal (backdrop) dismisses it and
|
|
706
|
+
* triggers `onDismiss`. Defaults to false. */
|
|
707
|
+
closeOnBackdropPress?: boolean;
|
|
695
708
|
}
|
|
696
709
|
interface WithdrawResult {
|
|
697
710
|
message: string;
|