@unifold/connect-react-native 0.1.55 → 0.1.57

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 CHANGED
@@ -392,6 +392,12 @@ interface BottomSheetProps {
392
392
  * multi-screen modal instead of navigating back one step). */
393
393
  onBackdropPress?: () => void;
394
394
  enablePanDownToClose?: boolean;
395
+ /** Handler for the Android hardware/system back button (the Modal's
396
+ * `onRequestClose`). Defaults to `onClose`. Provide this when the system
397
+ * back button should behave differently from pan-down (e.g. step back one
398
+ * screen in a multi-screen modal instead of fully dismissing it). Has no
399
+ * effect on iOS, where Modals have no `onRequestClose`. */
400
+ onRequestClose?: () => void;
395
401
  showHandle?: boolean;
396
402
  heightPercent?: number;
397
403
  maxHeightPercent?: number;
@@ -409,7 +415,7 @@ interface BottomSheetProps {
409
415
  * Use this for sheets that must appear on top of an already-open Modal (iOS limitation). */
410
416
  useModal?: boolean;
411
417
  }
412
- 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;
418
+ declare function BottomSheet({ visible, onClose, children, closeOnBackdropPress, onBackdropPress, enablePanDownToClose, onRequestClose, showHandle, heightPercent, maxHeightPercent, startExpanded, noPadding, borderTopLeftRadius, borderTopRightRadius, marginHorizontal: marginH, marginBottom: marginBottomProp, overlay, useModal: useModalProp, }: BottomSheetProps): React$1.JSX.Element | null;
413
419
 
414
420
  /** Controls which transfer crypto input variant is rendered */
415
421
  type TransferInputVariant = "single_input" | "double_input" | "compact";
@@ -471,7 +477,7 @@ interface DepositModalProps {
471
477
  enableConnectWallet?: boolean;
472
478
  /** Enable "Pay with Apple Pay" (Coinbase headless onramp) option. Overrides dashboard default. Resolves as flag ?? dashboard value ?? false. */
473
479
  enableCoinbaseApplePay?: boolean;
474
- /** Enable "Deposit with Card" (fiat on-ramp) option. Overrides dashboard default. Resolves as flag ?? dashboard value ?? true. */
480
+ /** Enable "Deposit with Card" (fiat on-ramp) option. Overrides dashboard default. Resolves as flag ?? dashboard value ?? true. The backend `fiat_onramp.is_hidden` kill switch force-hides it regardless. */
475
481
  enableFiatOnramp?: boolean;
476
482
  /** 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. */
477
483
  enableStripeLink?: boolean;
@@ -671,7 +677,12 @@ interface UnifoldConnectProviderConfig {
671
677
  enableConnectWallet?: boolean;
672
678
  /** Enable "Pay with Apple Pay" (Coinbase headless onramp) option. Overrides dashboard default. Resolves as flag ?? dashboard value ?? false. */
673
679
  enableCoinbaseApplePay?: boolean;
674
- /** Enable "Deposit with Card" (fiat on-ramp) option. Overrides dashboard default. Resolves as flag ?? dashboard value ?? true. */
680
+ /**
681
+ * Enable "Deposit with Card" (fiat on-ramp) option. Overrides dashboard
682
+ * default. Resolves as flag ?? dashboard value ?? true.
683
+ * Note: the backend `fiat_onramp.is_hidden` kill switch force-hides the
684
+ * option regardless of this flag.
685
+ */
675
686
  enableFiatOnramp?: boolean;
676
687
  /** Stripe Link Pay tuning options (only applies when `enableStripeLink` is true). */
677
688
  stripeLink?: {
package/dist/index.d.ts CHANGED
@@ -392,6 +392,12 @@ interface BottomSheetProps {
392
392
  * multi-screen modal instead of navigating back one step). */
393
393
  onBackdropPress?: () => void;
394
394
  enablePanDownToClose?: boolean;
395
+ /** Handler for the Android hardware/system back button (the Modal's
396
+ * `onRequestClose`). Defaults to `onClose`. Provide this when the system
397
+ * back button should behave differently from pan-down (e.g. step back one
398
+ * screen in a multi-screen modal instead of fully dismissing it). Has no
399
+ * effect on iOS, where Modals have no `onRequestClose`. */
400
+ onRequestClose?: () => void;
395
401
  showHandle?: boolean;
396
402
  heightPercent?: number;
397
403
  maxHeightPercent?: number;
@@ -409,7 +415,7 @@ interface BottomSheetProps {
409
415
  * Use this for sheets that must appear on top of an already-open Modal (iOS limitation). */
410
416
  useModal?: boolean;
411
417
  }
412
- 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;
418
+ declare function BottomSheet({ visible, onClose, children, closeOnBackdropPress, onBackdropPress, enablePanDownToClose, onRequestClose, showHandle, heightPercent, maxHeightPercent, startExpanded, noPadding, borderTopLeftRadius, borderTopRightRadius, marginHorizontal: marginH, marginBottom: marginBottomProp, overlay, useModal: useModalProp, }: BottomSheetProps): React$1.JSX.Element | null;
413
419
 
414
420
  /** Controls which transfer crypto input variant is rendered */
415
421
  type TransferInputVariant = "single_input" | "double_input" | "compact";
@@ -471,7 +477,7 @@ interface DepositModalProps {
471
477
  enableConnectWallet?: boolean;
472
478
  /** Enable "Pay with Apple Pay" (Coinbase headless onramp) option. Overrides dashboard default. Resolves as flag ?? dashboard value ?? false. */
473
479
  enableCoinbaseApplePay?: boolean;
474
- /** Enable "Deposit with Card" (fiat on-ramp) option. Overrides dashboard default. Resolves as flag ?? dashboard value ?? true. */
480
+ /** Enable "Deposit with Card" (fiat on-ramp) option. Overrides dashboard default. Resolves as flag ?? dashboard value ?? true. The backend `fiat_onramp.is_hidden` kill switch force-hides it regardless. */
475
481
  enableFiatOnramp?: boolean;
476
482
  /** 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. */
477
483
  enableStripeLink?: boolean;
@@ -671,7 +677,12 @@ interface UnifoldConnectProviderConfig {
671
677
  enableConnectWallet?: boolean;
672
678
  /** Enable "Pay with Apple Pay" (Coinbase headless onramp) option. Overrides dashboard default. Resolves as flag ?? dashboard value ?? false. */
673
679
  enableCoinbaseApplePay?: boolean;
674
- /** Enable "Deposit with Card" (fiat on-ramp) option. Overrides dashboard default. Resolves as flag ?? dashboard value ?? true. */
680
+ /**
681
+ * Enable "Deposit with Card" (fiat on-ramp) option. Overrides dashboard
682
+ * default. Resolves as flag ?? dashboard value ?? true.
683
+ * Note: the backend `fiat_onramp.is_hidden` kill switch force-hides the
684
+ * option regardless of this flag.
685
+ */
675
686
  enableFiatOnramp?: boolean;
676
687
  /** Stripe Link Pay tuning options (only applies when `enableStripeLink` is true). */
677
688
  stripeLink?: {