@funkit/connect-rn 10.0.0 → 11.1.0
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/CHANGELOG.md +234 -0
- package/README.md +46 -0
- package/dist/{chunk-264ZLQVH.js → chunk-N626N462.js} +3 -3
- package/dist/{chunk-264ZLQVH.js.map → chunk-N626N462.js.map} +2 -2
- package/dist/{chunk-R3RNNOBY.js → chunk-QIDFAWW4.js} +99 -12
- package/dist/chunk-QIDFAWW4.js.map +7 -0
- package/dist/{chunk-K2VB5PT5.js → chunk-S7UN7EKL.js} +550 -20
- package/dist/chunk-S7UN7EKL.js.map +7 -0
- package/dist/clients/lighter.js +1 -1
- package/dist/clients/nado/withdrawalSubmit.d.ts.map +1 -1
- package/dist/clients/nado.js +2 -2
- package/dist/clients/solana.js +3 -3
- package/dist/clients/solana.js.map +2 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +24400 -14185
- package/dist/index.js.map +4 -4
- package/dist/preview.d.ts +3 -0
- package/dist/preview.d.ts.map +1 -1
- package/dist/preview.js +964 -15
- package/dist/preview.js.map +4 -4
- package/dist/src/components/BlurBand.d.ts.map +1 -1
- package/dist/src/components/ConnectedBadge.d.ts +2 -0
- package/dist/src/components/ConnectedBadge.d.ts.map +1 -0
- package/dist/src/components/GlassSurface.d.ts +5 -1
- package/dist/src/components/GlassSurface.d.ts.map +1 -1
- package/dist/src/components/Grabber.d.ts +3 -1
- package/dist/src/components/Grabber.d.ts.map +1 -1
- package/dist/src/components/LoadingSpinner.d.ts +1 -6
- package/dist/src/components/LoadingSpinner.d.ts.map +1 -1
- package/dist/src/components/PillButton.d.ts +2 -0
- package/dist/src/components/PillButton.d.ts.map +1 -1
- package/dist/src/components/SelectableAssetRow.d.ts +9 -1
- package/dist/src/components/SelectableAssetRow.d.ts.map +1 -1
- package/dist/src/components/TopBar.d.ts +7 -2
- package/dist/src/components/TopBar.d.ts.map +1 -1
- package/dist/src/components/v2/FeeLine.d.ts +2 -2
- package/dist/src/components/v2/FeeLine.d.ts.map +1 -1
- package/dist/src/components/v2/IconDisc.d.ts +15 -1
- package/dist/src/components/v2/IconDisc.d.ts.map +1 -1
- package/dist/src/components/v2/ListRow.d.ts +3 -1
- package/dist/src/components/v2/ListRow.d.ts.map +1 -1
- package/dist/src/components/v2/PaymentMethodPicker.d.ts +9 -1
- package/dist/src/components/v2/PaymentMethodPicker.d.ts.map +1 -1
- package/dist/src/fiat/common/FiatTermsNotice.d.ts +3 -1
- package/dist/src/fiat/common/FiatTermsNotice.d.ts.map +1 -1
- package/dist/src/fiat/common/ctaLabel.d.ts.map +1 -1
- package/dist/src/fiat/common/stepDetails.d.ts +8 -2
- package/dist/src/fiat/common/stepDetails.d.ts.map +1 -1
- package/dist/src/fiat/contact/contactRound.d.ts +1 -0
- package/dist/src/fiat/contact/contactRound.d.ts.map +1 -1
- package/dist/src/fiat/contact/useFlowContact.d.ts +1 -0
- package/dist/src/fiat/contact/useFlowContact.d.ts.map +1 -1
- package/dist/src/fiat/entry/depositMatch.d.ts +10 -4
- package/dist/src/fiat/entry/depositMatch.d.ts.map +1 -1
- package/dist/src/fiat/entry/heldRound.d.ts +17 -0
- package/dist/src/fiat/entry/heldRound.d.ts.map +1 -0
- package/dist/src/fiat/entry/useCaptureHold.d.ts +16 -4
- package/dist/src/fiat/entry/useCaptureHold.d.ts.map +1 -1
- package/dist/src/fiat/entry/useClientRecipient.d.ts +16 -0
- package/dist/src/fiat/entry/useClientRecipient.d.ts.map +1 -0
- package/dist/src/fiat/entry/useEntryPress.d.ts +26 -0
- package/dist/src/fiat/entry/useEntryPress.d.ts.map +1 -0
- package/dist/src/fiat/entry/useEntryQuote.d.ts +3 -3
- package/dist/src/fiat/entry/useEntryQuote.d.ts.map +1 -1
- package/dist/src/fiat/entry/useFiatDirectDelivery.d.ts +6 -2
- package/dist/src/fiat/entry/useFiatDirectDelivery.d.ts.map +1 -1
- package/dist/src/fiat/entry/usePayOnArrival.d.ts +22 -0
- package/dist/src/fiat/entry/usePayOnArrival.d.ts.map +1 -0
- package/dist/src/fiat/form/FiatFormScreen.d.ts +7 -1
- package/dist/src/fiat/form/FiatFormScreen.d.ts.map +1 -1
- package/dist/src/fiat/form/useStandingRefusals.d.ts +4 -0
- package/dist/src/fiat/form/useStandingRefusals.d.ts.map +1 -1
- package/dist/src/fiat/kyc/FiatDocumentCaptureStep.d.ts +4 -2
- package/dist/src/fiat/kyc/FiatDocumentCaptureStep.d.ts.map +1 -1
- package/dist/src/fiat/kyc/FiatKycIntroLayout.d.ts +3 -3
- package/dist/src/fiat/kyc/FiatKycIntroLayout.d.ts.map +1 -1
- package/dist/src/fiat/kyc/FiatKycIntroScreen.d.ts +7 -2
- package/dist/src/fiat/kyc/FiatKycIntroScreen.d.ts.map +1 -1
- package/dist/src/fiat/kyc/kycFieldValidators.d.ts.map +1 -1
- package/dist/src/fiat/kyc/kycForm.d.ts +9 -2
- package/dist/src/fiat/kyc/kycForm.d.ts.map +1 -1
- package/dist/src/fiat/kyc/kycFormState.d.ts.map +1 -1
- package/dist/src/fiat/kyc/kycFormTheme.d.ts.map +1 -1
- package/dist/src/fiat/kyc/kycRoutes.d.ts.map +1 -1
- package/dist/src/fiat/kyc/kycVerdict.d.ts +1 -0
- package/dist/src/fiat/kyc/kycVerdict.d.ts.map +1 -1
- package/dist/src/fiat/kyc/useKycLimitSheet.d.ts +15 -0
- package/dist/src/fiat/kyc/useKycLimitSheet.d.ts.map +1 -0
- package/dist/src/fiat/kyc/useKycRoundReporting.d.ts.map +1 -1
- package/dist/src/fiat/kyc/useKycScreens.d.ts +4 -0
- package/dist/src/fiat/kyc/useKycScreens.d.ts.map +1 -1
- package/dist/src/fiat/otp/FiatOtpScreen.d.ts +12 -1
- package/dist/src/fiat/otp/FiatOtpScreen.d.ts.map +1 -1
- package/dist/src/fiat/otp/FunReauthStep.d.ts +15 -0
- package/dist/src/fiat/otp/FunReauthStep.d.ts.map +1 -0
- package/dist/src/fiat/otp/otpScreenProps.d.ts +5 -2
- package/dist/src/fiat/otp/otpScreenProps.d.ts.map +1 -1
- package/dist/src/fiat/otp/useFunSession.d.ts +46 -0
- package/dist/src/fiat/otp/useFunSession.d.ts.map +1 -0
- package/dist/src/fiat/otp/useOtpReceipt.d.ts +2 -0
- package/dist/src/fiat/otp/useOtpReceipt.d.ts.map +1 -1
- package/dist/src/fiat/otp/useResendCooldown.d.ts +8 -3
- package/dist/src/fiat/otp/useResendCooldown.d.ts.map +1 -1
- package/dist/src/fiat/payment/applePayAttempt.d.ts +2 -2
- package/dist/src/fiat/payment/applePayAttempt.d.ts.map +1 -1
- package/dist/src/fiat/payment/failoverKind.d.ts +39 -0
- package/dist/src/fiat/payment/failoverKind.d.ts.map +1 -0
- package/dist/src/fiat/payment/failoverPrompt.d.ts +25 -0
- package/dist/src/fiat/payment/failoverPrompt.d.ts.map +1 -0
- package/dist/src/fiat/payment/insufficientFundsAmount.d.ts +25 -0
- package/dist/src/fiat/payment/insufficientFundsAmount.d.ts.map +1 -0
- package/dist/src/fiat/payment/paymentReport.d.ts +11 -0
- package/dist/src/fiat/payment/paymentReport.d.ts.map +1 -0
- package/dist/src/fiat/payment/paymentReroute.d.ts +8 -4
- package/dist/src/fiat/payment/paymentReroute.d.ts.map +1 -1
- package/dist/src/fiat/payment/paymentSurfaceFailure.d.ts +2 -0
- package/dist/src/fiat/payment/paymentSurfaceFailure.d.ts.map +1 -1
- package/dist/src/fiat/payment/providerFailover.d.ts +22 -8
- package/dist/src/fiat/payment/providerFailover.d.ts.map +1 -1
- package/dist/src/fiat/payment/usePaymentAttempts.d.ts +1 -1
- package/dist/src/fiat/payment/usePaymentAttempts.d.ts.map +1 -1
- package/dist/src/fiat/payment/usePaymentFailureAnswer.d.ts +43 -4
- package/dist/src/fiat/payment/usePaymentFailureAnswer.d.ts.map +1 -1
- package/dist/src/fiat/payment/useRerouteProbe.d.ts.map +1 -1
- package/dist/src/fiat/processing/DepositCardSheet.d.ts +21 -3
- package/dist/src/fiat/processing/DepositCardSheet.d.ts.map +1 -1
- package/dist/src/fiat/processing/FailoverPrompt.d.ts +48 -0
- package/dist/src/fiat/processing/FailoverPrompt.d.ts.map +1 -0
- package/dist/src/fiat/processing/depositProcessing.d.ts +1 -1
- package/dist/src/fiat/processing/depositProcessing.d.ts.map +1 -1
- package/dist/src/fiat/processing/failoverArtwork.d.ts +19 -0
- package/dist/src/fiat/processing/failoverArtwork.d.ts.map +1 -0
- package/dist/src/fiat/providerFlow.d.ts +141 -0
- package/dist/src/fiat/providerFlow.d.ts.map +1 -0
- package/dist/src/fiat/providerFlows.d.ts +13 -0
- package/dist/src/fiat/providerFlows.d.ts.map +1 -0
- package/dist/src/fiat/providerHandoff.d.ts +13 -0
- package/dist/src/fiat/providerHandoff.d.ts.map +1 -0
- package/dist/src/fiat/providers/applePayButtonMetrics.d.ts.map +1 -1
- package/dist/src/fiat/providers/banxa/BanxaCheckoutSurface.d.ts +17 -0
- package/dist/src/fiat/providers/banxa/BanxaCheckoutSurface.d.ts.map +1 -0
- package/dist/src/fiat/providers/banxa/banxaApplePayButton.d.ts +8 -0
- package/dist/src/fiat/providers/banxa/banxaApplePayButton.d.ts.map +1 -0
- package/dist/src/fiat/providers/banxa/banxaBridgeEvents.d.ts +34 -0
- package/dist/src/fiat/providers/banxa/banxaBridgeEvents.d.ts.map +1 -0
- package/dist/src/fiat/providers/checkout/continueButton.d.ts +8 -0
- package/dist/src/fiat/providers/checkout/continueButton.d.ts.map +1 -0
- package/dist/src/fiat/providers/checkout/slotOutlets.d.ts +14 -0
- package/dist/src/fiat/providers/checkout/slotOutlets.d.ts.map +1 -0
- package/dist/src/fiat/providers/checkout/statusScreens.d.ts +37 -0
- package/dist/src/fiat/providers/checkout/statusScreens.d.ts.map +1 -0
- package/dist/src/fiat/providers/checkout/useFiatNextApi.d.ts +8 -0
- package/dist/src/fiat/providers/checkout/useFiatNextApi.d.ts.map +1 -0
- package/dist/src/fiat/providers/coinbase/CoinbaseCheckoutSurface.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbase/coinbaseApplePay.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbase/coinbaseOnrampEvents.d.ts +6 -0
- package/dist/src/fiat/providers/coinbase/coinbaseOnrampEvents.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbase/next/Checkout.d.ts +10 -0
- package/dist/src/fiat/providers/coinbase/next/Checkout.d.ts.map +1 -0
- package/dist/src/fiat/providers/coinbase/next/index.d.ts +4 -0
- package/dist/src/fiat/providers/coinbase/next/index.d.ts.map +1 -0
- package/dist/src/fiat/providers/coinbase/next/useCoinbaseCheckout.d.ts +75 -0
- package/dist/src/fiat/providers/coinbase/next/useCoinbaseCheckout.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/Capture.d.ts +15 -0
- package/dist/src/fiat/providers/moonpay/Capture.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/Checkout.d.ts +4 -0
- package/dist/src/fiat/providers/moonpay/Checkout.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/KycForm.d.ts +30 -0
- package/dist/src/fiat/providers/moonpay/KycForm.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/checkoutScreens.d.ts +7 -0
- package/dist/src/fiat/providers/moonpay/checkoutScreens.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/documents.d.ts +12 -0
- package/dist/src/fiat/providers/moonpay/documents.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/errors.d.ts +40 -0
- package/dist/src/fiat/providers/moonpay/errors.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/events.d.ts +24 -0
- package/dist/src/fiat/providers/moonpay/events.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/index.d.ts +3 -0
- package/dist/src/fiat/providers/moonpay/index.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/moonpaySharingConsent.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/reask.d.ts +5 -0
- package/dist/src/fiat/providers/moonpay/reask.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/screens.d.ts +8 -0
- package/dist/src/fiat/providers/moonpay/screens.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/sdk/ApplePayButton.d.ts +29 -0
- package/dist/src/fiat/providers/moonpay/sdk/ApplePayButton.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/sdk/Challenge.d.ts +14 -0
- package/dist/src/fiat/providers/moonpay/sdk/Challenge.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/sdk/Host.d.ts +9 -0
- package/dist/src/fiat/providers/moonpay/sdk/Host.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/sdk/connection.d.ts +33 -0
- package/dist/src/fiat/providers/moonpay/sdk/connection.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/sdk/deviceQuote.d.ts +14 -0
- package/dist/src/fiat/providers/moonpay/sdk/deviceQuote.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/sdk/transaction.d.ts +37 -0
- package/dist/src/fiat/providers/moonpay/sdk/transaction.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/unavailableAlert.d.ts +11 -0
- package/dist/src/fiat/providers/moonpay/unavailableAlert.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/useCheckoutCalls.d.ts +15 -0
- package/dist/src/fiat/providers/moonpay/useCheckoutCalls.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/useCheckoutModel.d.ts +84 -0
- package/dist/src/fiat/providers/moonpay/useCheckoutModel.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/useReadiness.d.ts +20 -0
- package/dist/src/fiat/providers/moonpay/useReadiness.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/stripeAccountCreation.d.ts +15 -5
- package/dist/src/fiat/providers/stripe/stripeAccountCreation.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripeApplePaySelection.d.ts +87 -0
- package/dist/src/fiat/providers/stripe/stripeApplePaySelection.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/stripeCardRefusal.d.ts +1 -0
- package/dist/src/fiat/providers/stripe/stripeCardRefusal.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripeKyc.d.ts +1 -1
- package/dist/src/fiat/providers/stripe/stripeKyc.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripeKycInfo.d.ts +7 -1
- package/dist/src/fiat/providers/stripe/stripeKycInfo.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripeOnramp.d.ts +16 -0
- package/dist/src/fiat/providers/stripe/stripeOnramp.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripePayment.d.ts +12 -2
- package/dist/src/fiat/providers/stripe/stripePayment.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripeSessionAuth.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/useApplePayFirst.d.ts +22 -0
- package/dist/src/fiat/providers/stripe/useApplePayFirst.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/useCreateStripeAccountWithExistingUserData.d.ts +3 -1
- package/dist/src/fiat/providers/stripe/useCreateStripeAccountWithExistingUserData.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/useStripeOnrampClient.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/useStripeSessionAuth.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/useStripeState.d.ts.map +1 -1
- package/dist/src/fiat/providers/sumsub/SumsubNativeKycSurface.d.ts.map +1 -1
- package/dist/src/fiat/providers/sumsub/sumsubKyc.d.ts.map +1 -1
- package/dist/src/fiat/providers/useHostedPageLoad.d.ts +21 -0
- package/dist/src/fiat/providers/useHostedPageLoad.d.ts.map +1 -0
- package/dist/src/fiat/quote/providerSelection.d.ts +7 -4
- package/dist/src/fiat/quote/providerSelection.d.ts.map +1 -1
- package/dist/src/fiat/quote/quoteRefusal.d.ts +9 -1
- package/dist/src/fiat/quote/quoteRefusal.d.ts.map +1 -1
- package/dist/src/fiat/quote/quoteRouting.d.ts +20 -4
- package/dist/src/fiat/quote/quoteRouting.d.ts.map +1 -1
- package/dist/src/fiat/quote/useStaleQuoteRecovery.d.ts +2 -4
- package/dist/src/fiat/quote/useStaleQuoteRecovery.d.ts.map +1 -1
- package/dist/src/fiat/settlement/depositSettlement.d.ts +18 -2
- package/dist/src/fiat/settlement/depositSettlement.d.ts.map +1 -1
- package/dist/src/fiat/settlement/useDepositSettlement.d.ts +4 -2
- package/dist/src/fiat/settlement/useDepositSettlement.d.ts.map +1 -1
- package/dist/src/fiat/surface/SurfaceSlot.d.ts +3 -1
- package/dist/src/fiat/surface/SurfaceSlot.d.ts.map +1 -1
- package/dist/src/fiat/surface/actionSlot.d.ts +3 -1
- package/dist/src/fiat/surface/actionSlot.d.ts.map +1 -1
- package/dist/src/fiat/surface/stepSurface.d.ts +3 -1
- package/dist/src/fiat/surface/stepSurface.d.ts.map +1 -1
- package/dist/src/fiat/surface/surfaceRegistry.d.ts.map +1 -1
- package/dist/src/fiat/surface/useFailureAnnouncements.d.ts.map +1 -1
- package/dist/src/fiat/surface/useSurfaceAttempt.d.ts +3 -2
- package/dist/src/fiat/surface/useSurfaceAttempt.d.ts.map +1 -1
- package/dist/src/fiat/useProviderCheckout.d.ts +58 -0
- package/dist/src/fiat/useProviderCheckout.d.ts.map +1 -0
- package/dist/src/flow/AddressCopiedToast.d.ts.map +1 -1
- package/dist/src/flow/CryptoAddressPage.d.ts +6 -2
- package/dist/src/flow/CryptoAddressPage.d.ts.map +1 -1
- package/dist/src/flow/CryptoDepositStep.d.ts +12 -6
- package/dist/src/flow/CryptoDepositStep.d.ts.map +1 -1
- package/dist/src/flow/CryptoLearnMorePage.d.ts +2 -1
- package/dist/src/flow/CryptoLearnMorePage.d.ts.map +1 -1
- package/dist/src/flow/CryptoListPage.d.ts +16 -3
- package/dist/src/flow/CryptoListPage.d.ts.map +1 -1
- package/dist/src/flow/CryptoNetworkPage.d.ts +2 -1
- package/dist/src/flow/CryptoNetworkPage.d.ts.map +1 -1
- package/dist/src/flow/CryptoTokenPage.d.ts +2 -1
- package/dist/src/flow/CryptoTokenPage.d.ts.map +1 -1
- package/dist/src/flow/DepositAmountStep.d.ts +9 -1
- package/dist/src/flow/DepositAmountStep.d.ts.map +1 -1
- package/dist/src/flow/DepositFlowContent.d.ts +14 -2
- package/dist/src/flow/DepositFlowContent.d.ts.map +1 -1
- package/dist/src/flow/DepositMatchSheet.d.ts.map +1 -1
- package/dist/src/flow/Drawer.d.ts +13 -1
- package/dist/src/flow/Drawer.d.ts.map +1 -1
- package/dist/src/flow/FeeDetailsSheet.d.ts +5 -0
- package/dist/src/flow/FeeDetailsSheet.d.ts.map +1 -1
- package/dist/src/flow/FiatDepositAmountStep.d.ts +4 -4
- package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
- package/dist/src/flow/FlowDismissLock.d.ts +7 -2
- package/dist/src/flow/FlowDismissLock.d.ts.map +1 -1
- package/dist/src/flow/FlowSheet.d.ts +34 -2
- package/dist/src/flow/FlowSheet.d.ts.map +1 -1
- package/dist/src/flow/FunkitFlowProvider.d.ts +22 -5
- package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
- package/dist/src/flow/PaymentMethodPickerSheet.d.ts +15 -4
- package/dist/src/flow/PaymentMethodPickerSheet.d.ts.map +1 -1
- package/dist/src/flow/PaymentMethodRows.d.ts +14 -5
- package/dist/src/flow/PaymentMethodRows.d.ts.map +1 -1
- package/dist/src/flow/SheetMaterial.d.ts.map +1 -1
- package/dist/src/flow/WalletConnectingAction.d.ts +9 -0
- package/dist/src/flow/WalletConnectingAction.d.ts.map +1 -0
- package/dist/src/flow/WalletDepositStep.d.ts +30 -0
- package/dist/src/flow/WalletDepositStep.d.ts.map +1 -0
- package/dist/src/flow/cryptoDepositFlow.d.ts +8 -6
- package/dist/src/flow/cryptoDepositFlow.d.ts.map +1 -1
- package/dist/src/flow/cryptoNetworkHeight.d.ts +3 -0
- package/dist/src/flow/cryptoNetworkHeight.d.ts.map +1 -0
- package/dist/src/flow/cryptoSheetSearch.d.ts +2 -0
- package/dist/src/flow/cryptoSheetSearch.d.ts.map +1 -1
- package/dist/src/flow/cryptoTokenList.d.ts +17 -11
- package/dist/src/flow/cryptoTokenList.d.ts.map +1 -1
- package/dist/src/flow/depositFlowConfig.d.ts +81 -6
- package/dist/src/flow/depositFlowConfig.d.ts.map +1 -1
- package/dist/src/flow/depositMethods.d.ts +7 -0
- package/dist/src/flow/depositMethods.d.ts.map +1 -1
- package/dist/src/flow/fiatSubmitRenderer.d.ts +16 -0
- package/dist/src/flow/fiatSubmitRenderer.d.ts.map +1 -1
- package/dist/src/flow/flowError.d.ts +5 -0
- package/dist/src/flow/flowError.d.ts.map +1 -1
- package/dist/src/flow/renderFiatFlowScreen.d.ts +28 -3
- package/dist/src/flow/renderFiatFlowScreen.d.ts.map +1 -1
- package/dist/src/flow/selectedChainStorage.d.ts.map +1 -1
- package/dist/src/flow/sheetSizing.d.ts +2 -2
- package/dist/src/flow/swappedLongtail.d.ts +55 -0
- package/dist/src/flow/swappedLongtail.d.ts.map +1 -0
- package/dist/src/flow/swappedMethodRows.d.ts +45 -0
- package/dist/src/flow/swappedMethodRows.d.ts.map +1 -0
- package/dist/src/flow/useCopiedToast.d.ts +1 -1
- package/dist/src/flow/useFeeDetails.d.ts +5 -1
- package/dist/src/flow/useFeeDetails.d.ts.map +1 -1
- package/dist/src/flow/useWalletDeposit.d.ts +60 -0
- package/dist/src/flow/useWalletDeposit.d.ts.map +1 -0
- package/dist/src/flow/withdrawalFlowConfig.d.ts +71 -6
- package/dist/src/flow/withdrawalFlowConfig.d.ts.map +1 -1
- package/dist/src/flow/withdrawalMethods.d.ts +2 -2
- package/dist/src/flow/withdrawalMethods.d.ts.map +1 -1
- package/dist/src/hooks/track/events.d.ts +30 -4
- package/dist/src/hooks/track/events.d.ts.map +1 -1
- package/dist/src/hooks/track/feeDetailsProperties.d.ts +13 -0
- package/dist/src/hooks/track/feeDetailsProperties.d.ts.map +1 -0
- package/dist/src/hooks/track/flattenFeeBreakdown.d.ts +3 -0
- package/dist/src/hooks/track/flattenFeeBreakdown.d.ts.map +1 -0
- package/dist/src/hooks/track/useDepositFlowEvents.d.ts.map +1 -1
- package/dist/src/hooks/track/useDepositOutcomeEvents.d.ts.map +1 -1
- package/dist/src/hooks/track/usePaymentButtonEvents.d.ts.map +1 -1
- package/dist/src/hooks/track/useProviderCheckoutEvents.d.ts +37 -0
- package/dist/src/hooks/track/useProviderCheckoutEvents.d.ts.map +1 -0
- package/dist/src/hooks/track/useTrackFiatDepositQuoteEvents.d.ts.map +1 -1
- package/dist/src/hooks/track/useTrackFiatPaymentEvents.d.ts +4 -1
- package/dist/src/hooks/track/useTrackFiatPaymentEvents.d.ts.map +1 -1
- package/dist/src/hooks/track/useTrackSessionAuthEvents.d.ts.map +1 -1
- package/dist/src/hooks/useAnchoredMenu.d.ts +43 -0
- package/dist/src/hooks/useAnchoredMenu.d.ts.map +1 -0
- package/dist/src/hooks/useAppActive.d.ts +7 -0
- package/dist/src/hooks/useAppActive.d.ts.map +1 -0
- package/dist/src/hooks/useGuardedAmountInput.d.ts +1 -1
- package/dist/src/hooks/useNestedSheet.d.ts +8 -1
- package/dist/src/hooks/useNestedSheet.d.ts.map +1 -1
- package/dist/src/hooks/useNestedSheetHeight.d.ts +2 -2
- package/dist/src/hooks/useNestedSheetHeight.d.ts.map +1 -1
- package/dist/src/hooks/useSettledOpacity.d.ts +3 -1
- package/dist/src/hooks/useSettledOpacity.d.ts.map +1 -1
- package/dist/src/icons/ChainAvatar.d.ts +1 -3
- package/dist/src/icons/ChainAvatar.d.ts.map +1 -1
- package/dist/src/icons/FunIcon.d.ts +6 -2
- package/dist/src/icons/FunIcon.d.ts.map +1 -1
- package/dist/src/icons/assetLogos.d.ts.map +1 -1
- package/dist/src/icons/cryptoBrandSvgs.d.ts +2 -0
- package/dist/src/icons/cryptoBrandSvgs.d.ts.map +1 -0
- package/dist/src/icons/funIconUri.d.ts.map +1 -1
- package/dist/src/icons/iconSvg.d.ts.map +1 -1
- package/dist/src/icons/kycArtwork.d.ts.map +1 -1
- package/dist/src/locales/i18n.d.ts +8 -8
- package/dist/src/locales/i18n.d.ts.map +1 -1
- package/dist/src/logging/datadogHttpLogTransport.d.ts.map +1 -1
- package/dist/src/native/glassEffect.d.ts +3 -0
- package/dist/src/native/glassEffect.d.ts.map +1 -1
- package/dist/src/preview/PreviewPaymentMethodPicker.d.ts +4 -0
- package/dist/src/preview/PreviewPaymentMethodPicker.d.ts.map +1 -1
- package/dist/src/preview/fixtures/kycForms.d.ts.map +1 -1
- package/dist/src/preview/flowPreview.d.ts +85 -4
- package/dist/src/preview/flowPreview.d.ts.map +1 -1
- package/dist/src/preview/previewFetch.d.ts +31 -2
- package/dist/src/preview/previewFetch.d.ts.map +1 -1
- package/dist/src/preview/replay/FunkitSessionReplay.d.ts +31 -0
- package/dist/src/preview/replay/FunkitSessionReplay.d.ts.map +1 -0
- package/dist/src/preview/replay/ReplaySurfaceStandIn.d.ts +22 -0
- package/dist/src/preview/replay/ReplaySurfaceStandIn.d.ts.map +1 -0
- package/dist/src/preview/replay/recordedStripeOnramp.d.ts +10 -0
- package/dist/src/preview/replay/recordedStripeOnramp.d.ts.map +1 -0
- package/dist/src/preview/replay/replayFetch.d.ts +27 -0
- package/dist/src/preview/replay/replayFetch.d.ts.map +1 -0
- package/dist/src/preview/scenarioCatalog.d.ts +497 -284
- package/dist/src/preview/scenarioCatalog.d.ts.map +1 -1
- package/dist/src/preview/scenarios.d.ts +14 -5
- package/dist/src/preview/scenarios.d.ts.map +1 -1
- package/dist/src/providers/FunkitProvider.d.ts +10 -1
- package/dist/src/providers/FunkitProvider.d.ts.map +1 -1
- package/dist/src/providers/FunkitStatsigProvider.d.ts +3 -3
- package/dist/src/providers/FunkitStatsigProvider.d.ts.map +1 -1
- package/dist/src/providers/FunkitStatsigWhnProvider.d.ts +1 -1
- package/dist/src/providers/IdentityContext.d.ts +2 -0
- package/dist/src/providers/IdentityContext.d.ts.map +1 -1
- package/dist/src/providers/NativeCapabilitiesContext.d.ts +13 -1
- package/dist/src/providers/NativeCapabilitiesContext.d.ts.map +1 -1
- package/dist/src/providers/useFunkitCheckout.d.ts +4 -1
- package/dist/src/providers/useFunkitCheckout.d.ts.map +1 -1
- package/dist/src/screens/DepositAmountScreen.d.ts +13 -2
- package/dist/src/screens/DepositAmountScreen.d.ts.map +1 -1
- package/dist/src/screens/FeeDetailsScreen.d.ts +3 -1
- package/dist/src/screens/FeeDetailsScreen.d.ts.map +1 -1
- package/dist/src/screens/PaymentConfirmScreen.d.ts +16 -2
- package/dist/src/screens/PaymentConfirmScreen.d.ts.map +1 -1
- package/dist/src/screens/depositMetrics.d.ts +8 -3
- package/dist/src/screens/depositMetrics.d.ts.map +1 -1
- package/dist/src/statsig/StatsigClientRN.d.ts.map +1 -1
- package/dist/src/statsig/hostAppVersion.d.ts +2 -0
- package/dist/src/statsig/hostAppVersion.d.ts.map +1 -0
- package/dist/src/statsig/useDynamicConfig.d.ts.map +1 -1
- package/dist/src/statsig/useFunWhnStatsigAnalytics.d.ts.map +1 -1
- package/dist/src/swapped/SwappedIframe.d.ts +9 -0
- package/dist/src/swapped/SwappedIframe.d.ts.map +1 -0
- package/dist/src/swapped/SwappedScreen.d.ts +9 -1
- package/dist/src/swapped/SwappedScreen.d.ts.map +1 -1
- package/dist/src/swapped/SwappedScreenShell.d.ts +9 -1
- package/dist/src/swapped/SwappedScreenShell.d.ts.map +1 -1
- package/dist/src/swapped/SwappedWebView.d.ts +19 -6
- package/dist/src/swapped/SwappedWebView.d.ts.map +1 -1
- package/dist/src/swapped/buildSwappedTheme.d.ts.map +1 -1
- package/dist/src/swapped/iframeSwappedTransport.d.ts +22 -0
- package/dist/src/swapped/iframeSwappedTransport.d.ts.map +1 -0
- package/dist/src/swapped/paymentNavigation.d.ts +3 -0
- package/dist/src/swapped/paymentNavigation.d.ts.map +1 -1
- package/dist/src/swapped/swappedV2Env.d.ts +24 -0
- package/dist/src/swapped/swappedV2Env.d.ts.map +1 -0
- package/dist/src/swapped/swappedV2Theme.d.ts +9 -0
- package/dist/src/swapped/swappedV2Theme.d.ts.map +1 -0
- package/dist/src/swapped/useSwappedEmbed.d.ts +37 -0
- package/dist/src/swapped/useSwappedEmbed.d.ts.map +1 -0
- package/dist/src/theme/buildFunkitTheme.d.ts +65 -44
- package/dist/src/theme/buildFunkitTheme.d.ts.map +1 -1
- package/dist/src/theme/restyle.d.ts +2187 -1494
- package/dist/src/theme/restyle.d.ts.map +1 -1
- package/dist/src/theme/toRestyleTheme.d.ts +195 -132
- package/dist/src/theme/toRestyleTheme.d.ts.map +1 -1
- package/dist/src/theme/tokens.d.ts +2 -2
- package/dist/src/theme/tokens.d.ts.map +1 -1
- package/dist/src/theme/typeScale.d.ts +134 -20
- package/dist/src/theme/typeScale.d.ts.map +1 -1
- package/dist/src/transfer/DepositQrCode.d.ts +3 -1
- package/dist/src/transfer/DepositQrCode.d.ts.map +1 -1
- package/dist/src/transfer/DepositQrGlyph.d.ts +3 -1
- package/dist/src/transfer/DepositQrGlyph.d.ts.map +1 -1
- package/dist/src/transfer/fops.d.ts +7 -1
- package/dist/src/transfer/fops.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useWithdrawalFops.d.ts.map +1 -1
- package/dist/src/utils/motion.d.ts.map +1 -1
- package/dist/src/utils/withAlpha.d.ts +19 -0
- package/dist/src/utils/withAlpha.d.ts.map +1 -1
- package/dist/src/withdrawal/decimalCompare.d.ts +9 -0
- package/dist/src/withdrawal/decimalCompare.d.ts.map +1 -0
- package/dist/src/withdrawal/useCryptoWithdrawalExecution.d.ts.map +1 -1
- package/dist/src/withdrawal/useCryptoWithdrawalForm.d.ts +9 -9
- package/dist/src/withdrawal/useCryptoWithdrawalForm.d.ts.map +1 -1
- package/dist/src/withdrawal/useCryptoWithdrawalQuote.d.ts.map +1 -1
- package/dist/src/withdrawal/useCryptoWithdrawalSubmit.d.ts.map +1 -1
- package/dist/src/withdrawal/useSourceTokenUsdPrice.d.ts.map +1 -1
- package/dist/src/withdrawal/useWithdrawalExecution.d.ts +3 -2
- package/dist/src/withdrawal/useWithdrawalExecution.d.ts.map +1 -1
- package/dist/src/withdrawal/venueBalance.d.ts +18 -0
- package/dist/src/withdrawal/venueBalance.d.ts.map +1 -0
- package/dist/src/withdrawal/walletlessWithdrawal.d.ts +11 -2
- package/dist/src/withdrawal/walletlessWithdrawal.d.ts.map +1 -1
- package/dist/src/withdrawal/withdrawalPayer.d.ts +22 -0
- package/dist/src/withdrawal/withdrawalPayer.d.ts.map +1 -0
- package/ios/FunkitGlassEffectModule.swift +10 -0
- package/ios/GlassView.swift +28 -0
- package/package.json +15 -14
- package/dist/chunk-K2VB5PT5.js.map +0 -7
- package/dist/chunk-R3RNNOBY.js.map +0 -7
- package/dist/src/flow/MethodPickerStep.d.ts +0 -10
- package/dist/src/flow/MethodPickerStep.d.ts.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,239 @@
|
|
|
1
1
|
# @funkit/connect-rn
|
|
2
2
|
|
|
3
|
+
## 11.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 97d76a1: The V2 amount screen's payment options can list Swapped's long-tail methods (bank transfer, pay-by-link wallets) and open them with the typed amount.
|
|
8
|
+
- 97d76a1: Fun login sends its deposit recipient, and the asset it wants, on the routing table, quotes and `POST /fiat/next`, so the backend converts the deposit; a MoonPay checkout waits for a recipient and reprices when it changes before payment.
|
|
9
|
+
- 97d76a1: `signOut` from `useFunkitCheckout` takes an optional `externalUserId` (or the wallet address when the host passes none) and ends that user's Fun email login, for a host that has already moved on to the next user, including one that now mints identity assertions. Omitted, it ends the current user's login, as before. `funSessionStorageKey` is exported: the key each user's login is kept under.
|
|
10
|
+
- 97d76a1: Add MoonPay’s provider-owned Apple Pay checkout using the existing verification screens.
|
|
11
|
+
- 97d76a1: Cash withdrawal methods are offered without a `withdrawalWallet` when `submitFiatWithdrawal` is set, and the flow opens on the payout-method list.
|
|
12
|
+
- 97d76a1: Hosts without a `withdrawalWallet` can now offer cash withdrawals by setting `submitFiatWithdrawal`, which receives each Swapped order for the venue to pay from its own account, capped at the balance the host reports.
|
|
13
|
+
- 97d76a1: Wallet link-outs and payment-method rows accept an optional `iconUrl`, and Phantom now shows its CDN artwork, falling back to its bundled mark if the artwork can't load. Wallet and token icon URLs with a query string, fragment or uppercase `.SVG` now render as SVG.
|
|
14
|
+
- 97d76a1: Add optional `connected` to payment method rows to show a Connected badge.
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- 97d76a1: Keep payment lists inside their sheets and headers tracking drags after scrolling.
|
|
19
|
+
- 97d76a1: Clarify deposit token eligibility, alphabetize additional currencies, and allow network sheets to expand fully.
|
|
20
|
+
- 97d76a1: Let buyers retry failed Coinbase payments from Continue without creating extra orders.
|
|
21
|
+
- 97d76a1: Fix Coinbase checkout after changing the deposit amount or retrying a failed payment.
|
|
22
|
+
- 97d76a1: After the buyer changes the amount, a verification step the new amount needs waits for their Continue instead of opening by itself. A checkout refused over the provider's limit is logged as its own event.
|
|
23
|
+
- 97d76a1: Fix closing Coinbase payment-failure sheets after a declined payment.
|
|
24
|
+
- 97d76a1: Coinbase checkouts show a subsidized fee struck through with "FREE with debit cards", and the fee details sheet opens.
|
|
25
|
+
- 97d76a1: Run Coinbase on `/fiat/next` behind the `enable-fiat-provider-flow-coinbase` gate: terms, phone and code, the limit upgrade, then Coinbase's own Apple Pay button and the order.
|
|
26
|
+
- 97d76a1: Fix Coinbase `/fiat/next` checkout for hosts that use Fun login.
|
|
27
|
+
- 97d76a1: Avoid extra Coinbase `/fiat/next` orders when changing the amount or closing a failed payment, and wait for the buyer to retry.
|
|
28
|
+
- 97d76a1: Coinbase on `/fiat/next` matches the legacy code screens: a rate-limited code request shows the legacy "Please wait" copy and offers Try Again only after the wait, and a phone number Coinbase refuses can be edited once. If a second number is refused too, the buyer is offered another provider.
|
|
29
|
+
- 97d76a1: Coinbase on `/fiat/next` matches the legacy flow: its sign-in and KYC screens wait for the buyer's Continue, a closed Apple Pay sheet offers another way to pay, and an amount over Coinbase's limit shows the limit with "Deposit Max".
|
|
30
|
+
- 97d76a1: A tap on Coinbase's pay button now counts as a payment attempt, so a declined or closed payment is logged with its attempt.
|
|
31
|
+
- 97d76a1: The Coinbase checkout moves the buyer to the next provider, instead of crashing, when the backend sends a step this app version does not know.
|
|
32
|
+
- 97d76a1: Resize embedded Send Crypto addresses to the compact sheet while preserving payment navigation.
|
|
33
|
+
- 97d76a1: Capture the documents MoonPay asks for with Sumsub, explaining why a retake is needed.
|
|
34
|
+
- 97d76a1: Recover from MoonPay checkout outages of the identity provider and of Fun's own services.
|
|
35
|
+
- 97d76a1: Skip MoonPay's KYC form when there is nothing to fill in, and say why MoonPay asks for details again.
|
|
36
|
+
- 97d76a1: Wait for a MoonPay payment that is still processing, and let the buyer pay again when the card is declined.
|
|
37
|
+
- 97d76a1: Mint the MoonPay session when the backend asks for it before signing the buyer in.
|
|
38
|
+
- 97d76a1: Show MoonPay's KYC sharing disclosure after Fun's KYC consent and before document capture.
|
|
39
|
+
- 97d76a1: Fix three MoonPay checkout display issues. A verified buyer no longer sees the identity intro flash after sign-in. The wait after Continue keeps its label. The charged Apple Pay button stays mounted until the order settles, so Apple's sheet finishes on success.
|
|
40
|
+
- 97d76a1: Swapped's long-tail methods open its production design, with its v2 design available behind a feature gate.
|
|
41
|
+
- 97d76a1: Swapped's long-tail methods show as pending rows in the payment options while they are being fetched, and fill in without the sheet being reopened.
|
|
42
|
+
- 97d76a1: Swapped's embed is themed with opaque colors, so a brand whose surfaces are authored with alpha no longer renders them as solid white.
|
|
43
|
+
- 97d76a1: The Swapped embed can open in Swapped's v2 design on a named payment method.
|
|
44
|
+
- 97d76a1: Adds the filter that keeps Swapped's long-tail payment methods apart from the V2 amount screen's native Apple Pay and card rails.
|
|
45
|
+
- 97d76a1: The V2 amount screen's payment options can list Swapped's long-tail methods under the host's rows.
|
|
46
|
+
- 97d76a1: A Swapped embed in the v2 design loads from Swapped's v2 environment and keeps its sign-in inside the sheet.
|
|
47
|
+
- 97d76a1: Fix Swapped themes and deposit callbacks on react-native-web.
|
|
48
|
+
- 97d76a1: Restyle the deposit address copy confirmation to read "Copied address" with a leading check, matching the design.
|
|
49
|
+
- 97d76a1: Add space between the icon and the name on the Send Crypto supported-network chips.
|
|
50
|
+
- 97d76a1: Fix opening the crypto currency list and search.
|
|
51
|
+
- 97d76a1: Keep currency search readable with a gradual blur beneath its floating glass controls as the keyboard moves.
|
|
52
|
+
- 97d76a1: A failover after a closed Apple Pay sheet or a prepaid card no longer rules the first provider out for the rest of the deposit; it is tried after the others.
|
|
53
|
+
- 97d76a1: After insufficient funds, the lowered amount is priced at once and the failover sheet offers its pay button directly.
|
|
54
|
+
- 97d76a1: After a declined card, the failover sheet shows the provider's own pay button to try again, instead of sending the buyer back to the amount screen.
|
|
55
|
+
- 97d76a1: After a closed Apple Pay sheet or a declined prepaid card, the next provider is priced at once, and the sheet's Continue takes the buyer into its next step.
|
|
56
|
+
- 97d76a1: After a failover, the "Verified" sheet also follows the new provider's identity check, not only its sign-in.
|
|
57
|
+
- 97d76a1: The amount screen's "No fees" line stays up while the price and checkout load, instead of flashing.
|
|
58
|
+
- 97d76a1: Restore checkout progress and payment-readiness reporting for Coinbase and MoonPay on `/fiat/next`.
|
|
59
|
+
- 97d76a1: On Coinbase and MoonPay `/fiat/next`, a tapped consent Continue shows only the spinner, as the legacy flow does.
|
|
60
|
+
- 97d76a1: Prepare Coinbase checkouts to deliver long-tail tokens once the backend offers it.
|
|
61
|
+
- 97d76a1: Deliver the requested token, not MoonPay's, when a MoonPay checkout buys a token MoonPay does not sell.
|
|
62
|
+
- 97d76a1: A fiat deposit that goes back for a new price says why in its quote analytics and logs, and never shows the old price again.
|
|
63
|
+
- 97d76a1: With the routing table on, the amount screen mounts MoonPay's checkout from the table, and a `REQUOTE` exit falls to the interval's next provider.
|
|
64
|
+
- 97d76a1: Prevent enlarged pressed controls from clipping in floating drawer headers.
|
|
65
|
+
- 97d76a1: Fun-login MoonPay checkout calls to `POST /fiat/next` carry the Fun session, so they are no longer anonymous.
|
|
66
|
+
- 97d76a1: Fun's email login keeps each user's login apart on a shared device, by `externalUserId` (or the wallet when there is none); a host that passes neither keeps the login only while the app runs. Signing out ends the login on Fun's server, even right after launch, and finishes at the next launch when Fun can't be reached. A login saved by an earlier version is ended on upgrade, and the user verifies their email once more.
|
|
67
|
+
- 97d76a1: Hide the base sheet grabber while a nested sheet is open.
|
|
68
|
+
- 97d76a1: Show the daily deposit limit as a sheet over the amount screen; Try again starts verification.
|
|
69
|
+
- 97d76a1: The daily limit notice points at the payment method picker instead of the fee line above it.
|
|
70
|
+
- 97d76a1: Enforce linked-wallet deposit minimums and distinguish empty wallets from insufficient spendable balances.
|
|
71
|
+
- 97d76a1: Keep MoonPay document consent visible while verification capture is prepared.
|
|
72
|
+
- 97d76a1: Enable the registered MoonPay checkout through its frontend rollout gate.
|
|
73
|
+
- 97d76a1: Restore MoonPay Continue steps before KYC and the legacy sign-in loading indicator.
|
|
74
|
+
- 97d76a1: MoonPay checkouts show the processing card while a paid order is confirmed, as other Apple Pay payments do.
|
|
75
|
+
- 97d76a1: Keep polling a second MoonPay review in the same checkout instead of showing it as on hold at once.
|
|
76
|
+
- 97d76a1: MoonPay checkout: an in-app Sumsub failure returns to the capture intro and still reports the capture, a returning buyer's review receipt no longer flashes over the amount screen before Continue, and closing after an unrecorded charge logs the order and transaction ids.
|
|
77
|
+
- 97d76a1: The MoonPay checkout moves the buyer to the next provider, instead of crashing, when the backend sends a step this app version does not know.
|
|
78
|
+
- 97d76a1: Keep verification review visible while preparing a follow-up MoonPay document capture.
|
|
79
|
+
- 97d76a1: Wait for Continue before opening MoonPay sign-in when checkout terms were already accepted.
|
|
80
|
+
- 97d76a1: Stop Payment Options from rubber-banding and remove the opaque top overlay from currency, network and wallet lists.
|
|
81
|
+
- 97d76a1: Explain when Phantom refuses a read-only account, and log the wallet's error code and how Phantom returned when a wallet connection or transfer fails.
|
|
82
|
+
- 97d76a1: Show one connecting indicator through wallet approval and account loading, then transition directly to the ready amount screen or a retryable error.
|
|
83
|
+
- 97d76a1: Explain wallet connection failures (declined, session ended, request already open, wallet error) with translated copy by error code, never the wallet's own text.
|
|
84
|
+
- 97d76a1: Payment-failure preview scenarios open the order for the quote paid instead of a settled MoonPay one.
|
|
85
|
+
- 97d76a1: Keep provider-owned checkouts, fees, and recovery connected to the deposit flow.
|
|
86
|
+
- 97d76a1: Use properly sized, adaptive system icons on native crypto glass controls while preserving readable raised buttons on unsupported platforms.
|
|
87
|
+
- 97d76a1: Match crypto pickers to the design's typography, icon sizes, and vector artwork for common tokens and networks.
|
|
88
|
+
- 97d76a1: Adjust Currency picker and search typography for Inter while preserving custom header fonts and alignment.
|
|
89
|
+
- 97d76a1: Rank USDC, USDT, ETH, BTC and SOL first on the crypto deposit currency page, and describe the other tokens as 1,000+.
|
|
90
|
+
- 97d76a1: Show the whole deposit address after it is tapped, wrapping it to a second line instead of truncating it.
|
|
91
|
+
- 97d76a1: Move currency search controls with the keyboard instead of an independent spring.
|
|
92
|
+
- 97d76a1: Preserve grouped currency lists until a nonempty search term is entered.
|
|
93
|
+
- 97d76a1: Keep Currency search above the keyboard without double-lifting inside bounded payment sheets.
|
|
94
|
+
- 97d76a1: Adjust Send Crypto typography for Inter and use the native system monospace face for iOS addresses.
|
|
95
|
+
- 97d76a1: Keep Transfer Crypto inside the current checkout across payment methods without dismissing the sheet or losing the entered amount; the host-handled amount screen now shows a payment-method chip that calls `onPaymentMethodPress` or opens `paymentMethodPicker` when either is set.
|
|
96
|
+
- 97d76a1: Preserve rounded crypto-sheet borders and smoothly fade scrolling content behind floating headers.
|
|
97
|
+
- 97d76a1: Keep linked-wallet amount controls aligned while swiping the main deposit sheet down.
|
|
98
|
+
- 97d76a1: Add token-redacted diagnostics for failed native identity-verification launches.
|
|
99
|
+
- 97d76a1: Open currency pickers with five supported tokens, fit network pickers to content, and expand currency sheets before scrolling in standalone and embedded deposits.
|
|
100
|
+
- 97d76a1: Match the Send Crypto sheet to the UDA spec: a tinted QR center tile with a light chain mark, and a title-case Copy Address button.
|
|
101
|
+
- 97d76a1: Fix the deposit amount shifting right or going blank during layout updates.
|
|
102
|
+
- 97d76a1: Default to a usable wallet asset, group low-balance assets as disabled, and scroll long asset lists within the sheet.
|
|
103
|
+
- 97d76a1: Show combined supported wallet balances in USD and default the currency selector to the largest USD holding.
|
|
104
|
+
- 97d76a1: Show wallet connection failures in a dismissible banner and align transfer warnings with the review design.
|
|
105
|
+
- 97d76a1: Show an insufficient-balance state with disabled presets when a connected wallet cannot fund a deposit, with a way back to Payment Options from its asset sheet.
|
|
106
|
+
- 97d76a1: Restyle the deposit amount preset chips for every payment method, and add a 75% wallet deposit preset.
|
|
107
|
+
- 97d76a1: Label the wallet deposit review action clearly and align its text size with the design.
|
|
108
|
+
- 97d76a1: Present wallet review as a translucent sheet over the preserved amount screen; a pending payment's review can be pulled away to leave the checkout.
|
|
109
|
+
- 97d76a1: Connect immediately from wallet picker taps and clear stale connection errors when retrying or switching methods.
|
|
110
|
+
- 97d76a1: Allow unlinking a connected wallet before reconnecting with another account, without clearing pending transfers; link-out apps opt in by implementing the new optional `disconnect`.
|
|
111
|
+
- Updated dependencies [97d76a1]
|
|
112
|
+
- Updated dependencies [97d76a1]
|
|
113
|
+
- Updated dependencies [97d76a1]
|
|
114
|
+
- Updated dependencies [97d76a1]
|
|
115
|
+
- Updated dependencies [97d76a1]
|
|
116
|
+
- Updated dependencies [97d76a1]
|
|
117
|
+
- Updated dependencies [97d76a1]
|
|
118
|
+
- Updated dependencies [97d76a1]
|
|
119
|
+
- Updated dependencies [97d76a1]
|
|
120
|
+
- Updated dependencies [97d76a1]
|
|
121
|
+
- Updated dependencies [97d76a1]
|
|
122
|
+
- Updated dependencies [97d76a1]
|
|
123
|
+
- Updated dependencies [97d76a1]
|
|
124
|
+
- Updated dependencies [97d76a1]
|
|
125
|
+
- Updated dependencies [97d76a1]
|
|
126
|
+
- Updated dependencies [97d76a1]
|
|
127
|
+
- Updated dependencies [97d76a1]
|
|
128
|
+
- Updated dependencies [97d76a1]
|
|
129
|
+
- Updated dependencies [97d76a1]
|
|
130
|
+
- Updated dependencies [97d76a1]
|
|
131
|
+
- Updated dependencies [97d76a1]
|
|
132
|
+
- Updated dependencies [97d76a1]
|
|
133
|
+
- Updated dependencies [97d76a1]
|
|
134
|
+
- Updated dependencies [97d76a1]
|
|
135
|
+
- Updated dependencies [97d76a1]
|
|
136
|
+
- Updated dependencies [97d76a1]
|
|
137
|
+
- Updated dependencies [97d76a1]
|
|
138
|
+
- Updated dependencies [97d76a1]
|
|
139
|
+
- Updated dependencies [97d76a1]
|
|
140
|
+
- Updated dependencies [97d76a1]
|
|
141
|
+
- Updated dependencies [97d76a1]
|
|
142
|
+
- Updated dependencies [97d76a1]
|
|
143
|
+
- Updated dependencies [97d76a1]
|
|
144
|
+
- Updated dependencies [97d76a1]
|
|
145
|
+
- @funkit/connect-core@13.0.0
|
|
146
|
+
- @funkit/api-base@10.1.0
|
|
147
|
+
|
|
148
|
+
## 11.0.0
|
|
149
|
+
|
|
150
|
+
### Major Changes
|
|
151
|
+
|
|
152
|
+
- 4f2a0fe: Add link-out deposits for wallet and exchange apps with in-place payment-method switching.
|
|
153
|
+
|
|
154
|
+
Migration: `DepositMethod['type']`, including `onDepositSubmitted`'s `method`, now also includes `'link_out'`; add a case to any exhaustive switch over it.
|
|
155
|
+
|
|
156
|
+
### Minor Changes
|
|
157
|
+
|
|
158
|
+
- c70e8cd: Show Banxa's Apple Pay button in the deposit screen instead of opening the browser for buyers Banxa has already verified.
|
|
159
|
+
- 30c0da5: feat(connect-rn): render Fun's email login screens with server resend timing and attempt counts
|
|
160
|
+
|
|
161
|
+
Migration: `FlowState`'s `FUN_AUTH` kind (from `@fun-xyz/fiat-contract` 0.42) no longer carries `challenge`; read `channel`, `phase` (`IDENTIFIER`, `CODE` or `VERIFIED`), `resendAvailableAtMs` and `attemptsRemaining` instead. `FiatStepResponse` may omit `provider` on a `FUN_AUTH` state.
|
|
162
|
+
- 9e658ed: feat(connect-rn): keep Fun login sessions across launches via sessionStorage, add signOut
|
|
163
|
+
- 3d1490e: Export `DepositLinkOutApp` so wallet packages such as `@funkit/wallet-phantom` can implement link-out deposits.
|
|
164
|
+
- 4f2a0fe: Gate link-out deposits behind a development-only rollout and expose availability to host payment menus.
|
|
165
|
+
- d689d2f: `FunkitSessionReplay` takes a tape's `endings`: a replayed provider screen or Stripe call fails or closes where the buyer's did.
|
|
166
|
+
- 6a7faaf: Add `createReplayFetch` to `@funkit/connect-rn/preview`, which serves a recorded attempt's fiat API answers back to the app.
|
|
167
|
+
- 0855246: `createReplayFetch` takes an `offTape` fetch that answers once the code leaves the recorded attempt.
|
|
168
|
+
- 71b9944: Add `FunkitSessionReplay` to `@funkit/connect-rn/preview`: on a recorded attempt, provider screens show a "Continue as recorded" stand-in instead of the live provider.
|
|
169
|
+
- e7b0fc4: Re-export the session tape types from `@funkit/connect-rn/preview`.
|
|
170
|
+
- 10cd4a2: feat(connect-rn): tag deposit flow logs `delivery:direct` or `delivery:long_tail` so dashboards can split long-tail purchases from plain deposits
|
|
171
|
+
- 38f924a: Stripe checkout can open Apple Pay before the identity step, fill the buyer's details from their Apple Pay contact, and pay with that same approval, so the buyer approves payment once. Off until enabled for a partner.
|
|
172
|
+
- 85a05d3: Requires `@stripe/stripe-react-native` 0.82.0 or later (was 0.76.0), which the Stripe Apple Pay prefill needs. From 0.78 the SDK resolves Stripe iOS through Swift Package Manager, which needs dynamic frameworks: a host that links statically sets `disableSPM: true` on the `@stripe/stripe-react-native` Expo plugin (bare React Native: `$StripeDisableSPM = true` in the Podfile), or switches to `useFrameworks: "dynamic"`.
|
|
173
|
+
- e833fad: Refresh payment options with grouped rows and optional in-place crypto selection while preserving existing host-owned payment handoffs.
|
|
174
|
+
- 26dfc42: Payment-method rows can be disabled or open embedded content.
|
|
175
|
+
|
|
176
|
+
### Patch Changes
|
|
177
|
+
|
|
178
|
+
- 74da738: Keep a converted cash amount when the payment method picker is reopened.
|
|
179
|
+
- 4f2a51b: Deposit processing card waits for the Apple Pay sheet to close and no longer flashes before a failed payment
|
|
180
|
+
- 41171ae: SDK log messages drop the `connect-rn:` prefix; they stay separable by `service:connect-rn`.
|
|
181
|
+
- 6972dbd: A charge the card's bank holds for approval at Coinbase asks the buyer to approve it, then pays again at the same amount with Apple Pay.
|
|
182
|
+
- 430cb47: A prepaid card Coinbase declines with no other partner available offers to pay again with Apple Pay, suggesting a debit card.
|
|
183
|
+
- a1814d9: Closing Coinbase's Apple Pay sheet offers to switch to another provider.
|
|
184
|
+
- 1e44368: Insufficient funds at the minimum amount now asks for a different card in Apple Pay
|
|
185
|
+
- 5ea7c74: A card Coinbase declines for insufficient funds lowers the deposit by half, never under the minimum, and offers to pay again with Apple Pay.
|
|
186
|
+
- 880bc22: A prepaid card declined where no other provider can take the deposit now asks for a debit card
|
|
187
|
+
- a06763c: A prepaid card Coinbase declines offers to switch to a partner that takes prepaid cards more often.
|
|
188
|
+
- 517bb52: Add the sheet the Apple Pay fail states will open on the deposit screen.
|
|
189
|
+
- 56612a3: A card Stripe declines without a reason offers to pay again with Apple Pay, suggesting a debit card.
|
|
190
|
+
- dfbe4ce: After switching providers and signing in, the deposit waits for a tap on "Pay with Apple Pay".
|
|
191
|
+
- e2e6238: The deposit fee line says waived fees apply to debit cards.
|
|
192
|
+
- a60f2c5: feat(fiat): send `X-Fun-Client-Capabilities` on every fiat request; connect-rn declares `payment_sheet_first` when a Stripe client is configured, so the server can enroll it in the Apple Pay first experiment
|
|
193
|
+
- 5f49c31: The deposit match line reads "No fees + $50 bonus if eligible" when fees are waived, and shows the bonus cap before an amount is entered.
|
|
194
|
+
- 4f2a0fe: Link-out deposits are unavailable when `clientMetadata.authorizedAmountBaseUnit` is set, and a failed wallet connection now shows a retry message.
|
|
195
|
+
- 74da738: Hold a linked-wallet deposit whose transfer status is unknown until it reconciles, so it cannot be paid twice.
|
|
196
|
+
- cda851c: A deposit eligible for the match shows "No Fees on Debit Cards" on the payment method row.
|
|
197
|
+
- cd6d419: The fee drawer reads "No fees." when the fee is covered, and the fee and deposit-match drawers name the token and chain the deposit arrives as.
|
|
198
|
+
- 4f2858b: Keep the completed linked-wallet check visible for two seconds before closing, without replacing it with a Done button.
|
|
199
|
+
- 6323067: Report a failed deposit when the order can't be recorded after payment; a successful retry can still report the deposit as succeeded.
|
|
200
|
+
- 0c53544: Preview scenarios that fail the quote's Apple Pay sheet now offer another provider.
|
|
201
|
+
- f73ec5b: Replay previews stand in for a provider's button with a full-size "Continue as recorded" button.
|
|
202
|
+
- 4897873: Under `FunkitSessionReplay`, Stripe's SDK calls are answered without reaching Stripe.
|
|
203
|
+
- b602fae: Revert the `@stripe/stripe-react-native` 0.82.0 bump; it was blocking TestFlight builds.
|
|
204
|
+
- 03d8a73: fix(connect-rn): show the same token logo on the Send Crypto address page as on the currency list
|
|
205
|
+
- 93ed0cc: Include SDK and available host app versions in analytics user data and the latest resolved country in event metadata without refreshing feature evaluations.
|
|
206
|
+
- f4c6e86: Keep minimum and maximum deposit notices right-aligned with the fee row.
|
|
207
|
+
- 1fabaf9: Update React Native loading spinners with a smoother moderate-to-fast motion cycle.
|
|
208
|
+
- c98158a: The Stripe Apple Pay sheet reads "Pay Fun (via Stripe)" when the server sends no label.
|
|
209
|
+
- 9d139c3: Stripe's silent registration takes values the device collected itself, ranked under what the backend holds, and can register from them when the backend holds nothing.
|
|
210
|
+
- 4f6f931: No user-facing changes.
|
|
211
|
+
- 4f2858b: Keep the linked-wallet token picker’s first row clear of the drawer’s close target.
|
|
212
|
+
- b536578: Track deposit fee-breakdown opens, including deposit-match promotions and fee-subsidy status.
|
|
213
|
+
- 74da738: Animate the linked-wallet confirmation and show transfer progress and failures in place.
|
|
214
|
+
- 557b905: Type declarations are now generated by the TypeScript 7 compiler; some types are written differently but accept the same values.
|
|
215
|
+
- 74da738: Preserve exact-cent wallet deposit limits and balance shortcuts.
|
|
216
|
+
- 4f2a0fe: Fix connected-wallet deposit resumption and add simulated wallet deposit previews.
|
|
217
|
+
- Updated dependencies [9e658ed]
|
|
218
|
+
- Updated dependencies [01ff08f]
|
|
219
|
+
- Updated dependencies [38f924a]
|
|
220
|
+
- Updated dependencies [a60f2c5]
|
|
221
|
+
- Updated dependencies [30c0da5]
|
|
222
|
+
- Updated dependencies [9e658ed]
|
|
223
|
+
- Updated dependencies [f52099f]
|
|
224
|
+
- Updated dependencies [4f2a0fe]
|
|
225
|
+
- Updated dependencies [26dfc42]
|
|
226
|
+
- Updated dependencies [10cd4a2]
|
|
227
|
+
- Updated dependencies [2df60ae]
|
|
228
|
+
- Updated dependencies [cd04ca3]
|
|
229
|
+
- Updated dependencies [4f6f931]
|
|
230
|
+
- Updated dependencies [6d9cb3e]
|
|
231
|
+
- Updated dependencies [557b905]
|
|
232
|
+
- @funkit/api-base@10.0.0
|
|
233
|
+
- @funkit/connect-core@12.0.0
|
|
234
|
+
- @funkit/chains@2.6.1
|
|
235
|
+
- @funkit/utils@5.1.1
|
|
236
|
+
|
|
3
237
|
## 10.0.0
|
|
4
238
|
|
|
5
239
|
### Major Changes
|
package/README.md
CHANGED
|
@@ -59,6 +59,52 @@ Limits, quotes, confirmation screens, and settlement retain their existing
|
|
|
59
59
|
denominations. Configure withdrawal ceilings separately using the maximum
|
|
60
60
|
callbacks; a EUR ceiling does not implicitly select an entry currency.
|
|
61
61
|
|
|
62
|
+
## Cash withdrawals paid by the venue (no wallet)
|
|
63
|
+
|
|
64
|
+
A venue that pays out of an omnibus account has no end-user signer to hand the
|
|
65
|
+
SDK, so it passes no `withdrawalWallet`. Cash withdrawals (card, bank transfer,
|
|
66
|
+
paid out by Swapped) still work: set `submitFiatWithdrawal`, and the SDK offers
|
|
67
|
+
the cash methods, lets the user place the order in the Swapped embed, and then
|
|
68
|
+
hands you the order to pay instead of signing a transfer itself.
|
|
69
|
+
|
|
70
|
+
```tsx
|
|
71
|
+
beginWithdrawal({
|
|
72
|
+
sourceToken: { chainId: '8453', address: USDC_BASE, symbol: 'USDC', decimals: 6 },
|
|
73
|
+
// Your accounting. `sourceUsdBalance` caps the Swapped sell.
|
|
74
|
+
withdrawalSourceTokenBalance: () => balanceUsdc,
|
|
75
|
+
sourceUsdBalance: balanceUsdc,
|
|
76
|
+
submitFiatWithdrawal: async ({ orderId, depositAddress, acceptedToken, amountTokenUnits }) => {
|
|
77
|
+
// Your server: check balance and limits, hold, pay `amountTokenUnits` of
|
|
78
|
+
// `acceptedToken` to `depositAddress`, and store `orderId` against your
|
|
79
|
+
// own transaction id for the payout webhook.
|
|
80
|
+
const { txHash } = await api.payCashWithdrawal({ orderId, depositAddress, acceptedToken, amountTokenUnits })
|
|
81
|
+
return { txHash }
|
|
82
|
+
},
|
|
83
|
+
})
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
What the callback receives is the order Swapped validated: its id, its deposit
|
|
87
|
+
address, the token it accepts and how much of it to deliver. The SDK neither
|
|
88
|
+
quotes nor executes anything on this rail; deliver that amount and Swapped
|
|
89
|
+
credits the user. A throw refuses the order and its message reaches the user;
|
|
90
|
+
resolving marks the order submitted and fires `onWithdrawalSubmitted` with the
|
|
91
|
+
hash you returned, or Swapped's deposit address if you returned none.
|
|
92
|
+
|
|
93
|
+
One adjustment happens before the hand-off. Swapped prices a sell with its own
|
|
94
|
+
fee and spread, so a user withdrawing their whole balance gets an order for
|
|
95
|
+
slightly more than they hold. When the source and accepted token are the same
|
|
96
|
+
asset, the SDK caps `amountTokenUnits` at the balance
|
|
97
|
+
`withdrawalSourceTokenBalance` reports and sets `clampedToBalance`; the amount
|
|
98
|
+
Swapped asked for stays on `requestedAmountTokenUnits`. Swapped credits
|
|
99
|
+
pro-rata on what arrives, so the order settles for slightly less fiat than
|
|
100
|
+
shown instead of being refused.
|
|
101
|
+
|
|
102
|
+
Fun runs no balance or limit check before the order reaches you, so your server
|
|
103
|
+
must, before it pays.
|
|
104
|
+
|
|
105
|
+
Without the callback and without a wallet, cash methods are withheld and the
|
|
106
|
+
flow opens on the crypto amount step.
|
|
107
|
+
|
|
62
108
|
## Payment deposit metadata
|
|
63
109
|
|
|
64
110
|
`clientMetadata.authorizedAmountBaseUnit` is an explicit maximum gross deposit
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useFunkitIdentity
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-S7UN7EKL.js";
|
|
4
4
|
import {
|
|
5
5
|
logger
|
|
6
6
|
} from "./chunk-2HFFVYAZ.js";
|
|
@@ -83,7 +83,7 @@ function useSourceTokenUsdPrice(sourceToken, {
|
|
|
83
83
|
});
|
|
84
84
|
const unitPrice = info.unitPrice;
|
|
85
85
|
if (!Number.isFinite(unitPrice) || unitPrice <= 0) {
|
|
86
|
-
logger.warn("
|
|
86
|
+
logger.warn("withdrawal:unusable_source_price", {
|
|
87
87
|
chainId: sourceToken.chainId,
|
|
88
88
|
address: sourceToken.address,
|
|
89
89
|
unitPrice
|
|
@@ -114,4 +114,4 @@ export {
|
|
|
114
114
|
useIsStablecoin,
|
|
115
115
|
useSourceTokenUsdPrice
|
|
116
116
|
};
|
|
117
|
-
//# sourceMappingURL=chunk-
|
|
117
|
+
//# sourceMappingURL=chunk-N626N462.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/statsig/useDynamicConfig.ts", "../src/geo/useUserIpInfo.ts", "../src/withdrawal/useSourceTokenUsdPrice.ts", "../src/hooks/useIsStablecoin.ts"],
|
|
4
|
-
"sourcesContent": ["import {\n type DynamicConfigName,\n type DynamicConfigValue,\n useDynamicConfig as useCoreDynamicConfig,\n} from '@funkit/connect-core'\n\nimport { useUserIpInfo } from '../geo/useUserIpInfo'\n\n// RN counterpart of `@funkit/connect`'s `hooks/statsig/useDynamicConfig`. The\n// core hook takes `countryCode` as a parameter so it stays platform-agnostic;\n// this wrapper threads the user's IP-derived `alpha2` (Moonpay/ipapi) so\n// country-conditional variant configs (e.g. `enableswappeddeposit`) resolve\n// against the real region instead of falling to their default branch.\nexport type { DynamicConfigName, DynamicConfigValue }\n\nexport const useDynamicConfig = <Name extends DynamicConfigName>(\n name: Name,\n options?: {\n bypassCountryCode?: boolean\n },\n): DynamicConfigValue<Name> => {\n const { userIpInfo } = useUserIpInfo()\n return useCoreDynamicConfig(name, {\n bypassCountryCode: options?.bypassCountryCode,\n countryCode: userIpInfo?.alpha2,\n })\n}\n", "import { useUserIpInfo as useCoreUserIpInfo } from '@funkit/connect-core'\nimport type { QueryClient } from '@tanstack/react-query'\n\nimport { useFunkitIdentity } from '../providers/IdentityContext'\nimport { logger } from '../logging/logger'\n\n// Re-exported so existing RN importers (isCountryBlocked, the flow hooks, tests)\n// keep their type source unchanged after the fetch logic moved to core.\nexport type {\n FunkitUserIpInfo,\n UseUserIpInfoResult,\n} from '@funkit/connect-core'\n\n// Thin RN wrapper over the shared core `useUserIpInfo` (V1 PR13 moved the\n// Moonpay\u2192ipapi fetch logic there so web and RN don't duplicate it). RN is\n// login-agnostic, so the lookup always runs (`enabled: true`); web's wrapper\n// gates on `isUserLoggedIn` instead. `apiKey` lets the core hook reach the\n// first-party geo endpoint; the chain it picks is Statsig-driven.\nexport function useUserIpInfo() {\n const { apiKey } = useFunkitIdentity()\n\n // Login-agnostic + session-stable: always run, never go stale. The fiat\n // rail prices a US buyer by state, so a stateless answer is worth a second\n // provider here; web reads only the country and leaves this off.\n return useCoreUserIpInfo({\n logger,\n apiKey,\n enabled: true,\n staleTime: Number.POSITIVE_INFINITY,\n requireState: true,\n })\n}\n\n/**\n * Re-asks for the location in the background; a cached answer keeps rendering\n * until the new one lands. Matches the core hook's query key, which\n * `useUserIpInfo.test.tsx` pins.\n */\nexport function refreshUserIpInfo(queryClient: QueryClient): void {\n void queryClient.invalidateQueries({ queryKey: ['getUserIpInfo'] })\n}\n", "import { getAssetPriceInfoWithFallback } from '@funkit/connect-core'\nimport { useQuery } from '@tanstack/react-query'\n\nimport { useIsStablecoin } from '../hooks/useIsStablecoin'\nimport { useFunkitIdentity } from '../providers/IdentityContext'\nimport { logger } from '../logging/logger'\n\nconst SOURCE_TOKEN_PRICE_QUERY_KEY = 'sourceTokenUsdPrice'\n\n/** Long enough that typing doesn't refetch, short enough to stay honest. */\nconst PRICE_STALE_TIME_MS = 60_000\n\n/** What a dollar stablecoin is worth, without asking anyone. */\nconst STABLECOIN_USD_PRICE = 1\n\n/**\n * Spot USD price of the source token, for the USD floor and ceiling the host\n * configures (`getMinWithdrawalUSD`, `getMaxWithdrawalFiat`, or\n * `getMaxWithdrawalUSD`).\n *\n * A dollar stablecoin is priced from its symbol and never fetched, as web's\n * `useAssetAddressPrice` does \u2014 it is the common withdrawal source, and the\n * amount screen was waiting on a round trip to be told a dollar is a dollar.\n *\n * `0` means \"unknown\", which is what the core validator reads as \"no price\" \u2014\n * so a failed or in-flight lookup leaves the USD limits inert rather than\n * judging an amount against a made-up rate. Per-token limits and the balance\n * check are unaffected either way.\n *\n * Not every source has a price: Lighter's L2 assets are addressed by index, not\n * by an ERC-20 funkit's price API knows, so that lookup 404s and core's Relay\n * fallback is what prices them.\n */\nexport function useSourceTokenUsdPrice(\n sourceToken:\n | { chainId: string | number; address: string; symbol: string }\n | undefined,\n {\n enabled = true,\n refetchInterval = false,\n }: {\n enabled?: boolean\n refetchInterval?: number | false\n } = {},\n) {\n const { apiKey } = useFunkitIdentity()\n const isStablecoin = useIsStablecoin()\n const chainId = sourceToken ? String(sourceToken.chainId) : undefined\n const isStable = !!sourceToken && isStablecoin(sourceToken.symbol)\n const unavailable = enabled && !!sourceToken && !isStable && !apiKey\n\n const query = useQuery({\n queryKey: [\n SOURCE_TOKEN_PRICE_QUERY_KEY,\n apiKey,\n chainId,\n sourceToken?.address,\n ],\n queryFn: async () => {\n if (!sourceToken || !chainId) {\n throw new Error('Missing price inputs')\n }\n const info = await getAssetPriceInfoWithFallback({\n chainId,\n assetTokenAddress: sourceToken.address as `0x${string}`,\n apiKey,\n logger,\n })\n const unitPrice = info.unitPrice\n if (!Number.isFinite(unitPrice) || unitPrice <= 0) {\n // Reported here, not on read: a cached bad price would otherwise warn\n // on every render. A non-positive price would silently scale every USD\n // limit to nothing.\n logger.warn('
|
|
5
|
-
"mappings": ";;;;;;;;AAAA;AAAA,EAGE,oBAAoB;AAAA,OACf;;;ACJP,SAAS,iBAAiB,yBAAyB;AAkB5C,SAAS,gBAAgB;AAC9B,QAAM,EAAE,OAAO,IAAI,kBAAkB;AAKrC,SAAO,kBAAkB;AAAA,IACvB;AAAA,IACA;AAAA,IACA,SAAS;AAAA,IACT,WAAW,OAAO;AAAA,IAClB,cAAc;AAAA,EAChB,CAAC;AACH;AAOO,SAAS,kBAAkB,aAAgC;AAChE,OAAK,YAAY,kBAAkB,EAAE,UAAU,CAAC,eAAe,EAAE,CAAC;AACpE;;;ADzBO,IAAM,mBAAmB,CAC9B,MACA,YAG6B;AAC7B,QAAM,EAAE,WAAW,IAAI,cAAc;AACrC,SAAO,qBAAqB,MAAM;AAAA,IAChC,mBAAmB,SAAS;AAAA,IAC5B,aAAa,YAAY;AAAA,EAC3B,CAAC;AACH;;;AE1BA,SAAS,qCAAqC;AAC9C,SAAS,gBAAgB;;;ACDzB,SAAS,mBAAmB;AAKrB,SAAS,kBAAkC;AAChD,QAAM,oBAAoB,iBAAiB,mBAAmB;AAC9D,SAAO;AAAA,IACL,CAAC,WACC,kBAAkB;AAAA,MAAK,CAAC,WACtB,OAAO,YAAY,EAAE,SAAS,OAAO,YAAY,CAAC;AAAA,IACpD;AAAA,IACF,CAAC,iBAAiB;AAAA,EACpB;AACF;;;ADPA,IAAM,+BAA+B;AAGrC,IAAM,sBAAsB;AAG5B,IAAM,uBAAuB;AAoBtB,SAAS,uBACd,aAGA;AAAA,EACE,UAAU;AAAA,EACV,kBAAkB;AACpB,IAGI,CAAC,GACL;AACA,QAAM,EAAE,OAAO,IAAI,kBAAkB;AACrC,QAAM,eAAe,gBAAgB;AACrC,QAAM,UAAU,cAAc,OAAO,YAAY,OAAO,IAAI;AAC5D,QAAM,WAAW,CAAC,CAAC,eAAe,aAAa,YAAY,MAAM;AACjE,QAAM,cAAc,WAAW,CAAC,CAAC,eAAe,CAAC,YAAY,CAAC;AAE9D,QAAM,QAAQ,SAAS;AAAA,IACrB,UAAU;AAAA,MACR;AAAA,MACA;AAAA,MACA;AAAA,MACA,aAAa;AAAA,IACf;AAAA,IACA,SAAS,YAAY;AACnB,UAAI,CAAC,eAAe,CAAC,SAAS;AAC5B,cAAM,IAAI,MAAM,sBAAsB;AAAA,MACxC;AACA,YAAM,OAAO,MAAM,8BAA8B;AAAA,QAC/C;AAAA,QACA,mBAAmB,YAAY;AAAA,QAC/B;AAAA,QACA;AAAA,MACF,CAAC;AACD,YAAM,YAAY,KAAK;AACvB,UAAI,CAAC,OAAO,SAAS,SAAS,KAAK,aAAa,GAAG;AAIjD,eAAO,KAAK
|
|
4
|
+
"sourcesContent": ["import {\n type DynamicConfigName,\n type DynamicConfigValue,\n useDynamicConfig as useCoreDynamicConfig,\n} from '@funkit/connect-core'\n\nimport { useUserIpInfo } from '../geo/useUserIpInfo'\n\n// RN counterpart of `@funkit/connect`'s `hooks/statsig/useDynamicConfig`. The\n// core hook takes `countryCode` as a parameter so it stays platform-agnostic;\n// this wrapper threads the user's IP-derived `alpha2` (Moonpay/ipapi) so\n// country-conditional variant configs (e.g. `enableswappeddeposit`) resolve\n// against the real region instead of falling to their default branch.\nexport type { DynamicConfigName, DynamicConfigValue }\n\nexport const useDynamicConfig = <Name extends DynamicConfigName>(\n name: Name,\n options?: {\n bypassCountryCode?: boolean\n },\n): DynamicConfigValue<Name> => {\n const { userIpInfo } = useUserIpInfo()\n return useCoreDynamicConfig(name, {\n bypassCountryCode: options?.bypassCountryCode,\n countryCode: userIpInfo?.alpha2,\n })\n}\n", "import { useUserIpInfo as useCoreUserIpInfo } from '@funkit/connect-core'\nimport type { QueryClient } from '@tanstack/react-query'\n\nimport { useFunkitIdentity } from '../providers/IdentityContext'\nimport { logger } from '../logging/logger'\n\n// Re-exported so existing RN importers (isCountryBlocked, the flow hooks, tests)\n// keep their type source unchanged after the fetch logic moved to core.\nexport type {\n FunkitUserIpInfo,\n UseUserIpInfoResult,\n} from '@funkit/connect-core'\n\n// Thin RN wrapper over the shared core `useUserIpInfo` (V1 PR13 moved the\n// Moonpay\u2192ipapi fetch logic there so web and RN don't duplicate it). RN is\n// login-agnostic, so the lookup always runs (`enabled: true`); web's wrapper\n// gates on `isUserLoggedIn` instead. `apiKey` lets the core hook reach the\n// first-party geo endpoint; the chain it picks is Statsig-driven.\nexport function useUserIpInfo() {\n const { apiKey } = useFunkitIdentity()\n\n // Login-agnostic + session-stable: always run, never go stale. The fiat\n // rail prices a US buyer by state, so a stateless answer is worth a second\n // provider here; web reads only the country and leaves this off.\n return useCoreUserIpInfo({\n logger,\n apiKey,\n enabled: true,\n staleTime: Number.POSITIVE_INFINITY,\n requireState: true,\n })\n}\n\n/**\n * Re-asks for the location in the background; a cached answer keeps rendering\n * until the new one lands. Matches the core hook's query key, which\n * `useUserIpInfo.test.tsx` pins.\n */\nexport function refreshUserIpInfo(queryClient: QueryClient): void {\n void queryClient.invalidateQueries({ queryKey: ['getUserIpInfo'] })\n}\n", "import { getAssetPriceInfoWithFallback } from '@funkit/connect-core'\nimport { useQuery } from '@tanstack/react-query'\n\nimport { useIsStablecoin } from '../hooks/useIsStablecoin'\nimport { useFunkitIdentity } from '../providers/IdentityContext'\nimport { logger } from '../logging/logger'\n\nconst SOURCE_TOKEN_PRICE_QUERY_KEY = 'sourceTokenUsdPrice'\n\n/** Long enough that typing doesn't refetch, short enough to stay honest. */\nconst PRICE_STALE_TIME_MS = 60_000\n\n/** What a dollar stablecoin is worth, without asking anyone. */\nconst STABLECOIN_USD_PRICE = 1\n\n/**\n * Spot USD price of the source token, for the USD floor and ceiling the host\n * configures (`getMinWithdrawalUSD`, `getMaxWithdrawalFiat`, or\n * `getMaxWithdrawalUSD`).\n *\n * A dollar stablecoin is priced from its symbol and never fetched, as web's\n * `useAssetAddressPrice` does \u2014 it is the common withdrawal source, and the\n * amount screen was waiting on a round trip to be told a dollar is a dollar.\n *\n * `0` means \"unknown\", which is what the core validator reads as \"no price\" \u2014\n * so a failed or in-flight lookup leaves the USD limits inert rather than\n * judging an amount against a made-up rate. Per-token limits and the balance\n * check are unaffected either way.\n *\n * Not every source has a price: Lighter's L2 assets are addressed by index, not\n * by an ERC-20 funkit's price API knows, so that lookup 404s and core's Relay\n * fallback is what prices them.\n */\nexport function useSourceTokenUsdPrice(\n sourceToken:\n | { chainId: string | number; address: string; symbol: string }\n | undefined,\n {\n enabled = true,\n refetchInterval = false,\n }: {\n enabled?: boolean\n refetchInterval?: number | false\n } = {},\n) {\n const { apiKey } = useFunkitIdentity()\n const isStablecoin = useIsStablecoin()\n const chainId = sourceToken ? String(sourceToken.chainId) : undefined\n const isStable = !!sourceToken && isStablecoin(sourceToken.symbol)\n const unavailable = enabled && !!sourceToken && !isStable && !apiKey\n\n const query = useQuery({\n queryKey: [\n SOURCE_TOKEN_PRICE_QUERY_KEY,\n apiKey,\n chainId,\n sourceToken?.address,\n ],\n queryFn: async () => {\n if (!sourceToken || !chainId) {\n throw new Error('Missing price inputs')\n }\n const info = await getAssetPriceInfoWithFallback({\n chainId,\n assetTokenAddress: sourceToken.address as `0x${string}`,\n apiKey,\n logger,\n })\n const unitPrice = info.unitPrice\n if (!Number.isFinite(unitPrice) || unitPrice <= 0) {\n // Reported here, not on read: a cached bad price would otherwise warn\n // on every render. A non-positive price would silently scale every USD\n // limit to nothing.\n logger.warn('withdrawal:unusable_source_price', {\n chainId: sourceToken.chainId,\n address: sourceToken.address,\n unitPrice,\n })\n return 0\n }\n return unitPrice\n },\n enabled: enabled && !!sourceToken && !isStable && !unavailable,\n staleTime: PRICE_STALE_TIME_MS,\n refetchInterval: isStable ? false : refetchInterval,\n retry: false,\n })\n\n return {\n refetch: query.refetch,\n data: isStable ? STABLECOIN_USD_PRICE : (query.data ?? 0),\n isUnavailable: unavailable,\n isPending: !isStable && !unavailable && query.isPending,\n isError: !isStable && (unavailable || query.isError),\n isFetching: !isStable && query.isFetching,\n }\n}\n", "import { useCallback } from 'react'\nimport { useDynamicConfig } from '../statsig/useDynamicConfig'\n\nexport type IsStablecoinFn = (symbol: string) => boolean\n\nexport function useIsStablecoin(): IsStablecoinFn {\n const stablecoinSymbols = useDynamicConfig('stablecoinsymbols')\n return useCallback(\n (symbol: string) =>\n stablecoinSymbols.some((stable) =>\n symbol.toLowerCase().includes(stable.toLowerCase()),\n ),\n [stablecoinSymbols],\n )\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;AAAA;AAAA,EAGE,oBAAoB;AAAA,OACf;;;ACJP,SAAS,iBAAiB,yBAAyB;AAkB5C,SAAS,gBAAgB;AAC9B,QAAM,EAAE,OAAO,IAAI,kBAAkB;AAKrC,SAAO,kBAAkB;AAAA,IACvB;AAAA,IACA;AAAA,IACA,SAAS;AAAA,IACT,WAAW,OAAO;AAAA,IAClB,cAAc;AAAA,EAChB,CAAC;AACH;AAOO,SAAS,kBAAkB,aAAgC;AAChE,OAAK,YAAY,kBAAkB,EAAE,UAAU,CAAC,eAAe,EAAE,CAAC;AACpE;;;ADzBO,IAAM,mBAAmB,CAC9B,MACA,YAG6B;AAC7B,QAAM,EAAE,WAAW,IAAI,cAAc;AACrC,SAAO,qBAAqB,MAAM;AAAA,IAChC,mBAAmB,SAAS;AAAA,IAC5B,aAAa,YAAY;AAAA,EAC3B,CAAC;AACH;;;AE1BA,SAAS,qCAAqC;AAC9C,SAAS,gBAAgB;;;ACDzB,SAAS,mBAAmB;AAKrB,SAAS,kBAAkC;AAChD,QAAM,oBAAoB,iBAAiB,mBAAmB;AAC9D,SAAO;AAAA,IACL,CAAC,WACC,kBAAkB;AAAA,MAAK,CAAC,WACtB,OAAO,YAAY,EAAE,SAAS,OAAO,YAAY,CAAC;AAAA,IACpD;AAAA,IACF,CAAC,iBAAiB;AAAA,EACpB;AACF;;;ADPA,IAAM,+BAA+B;AAGrC,IAAM,sBAAsB;AAG5B,IAAM,uBAAuB;AAoBtB,SAAS,uBACd,aAGA;AAAA,EACE,UAAU;AAAA,EACV,kBAAkB;AACpB,IAGI,CAAC,GACL;AACA,QAAM,EAAE,OAAO,IAAI,kBAAkB;AACrC,QAAM,eAAe,gBAAgB;AACrC,QAAM,UAAU,cAAc,OAAO,YAAY,OAAO,IAAI;AAC5D,QAAM,WAAW,CAAC,CAAC,eAAe,aAAa,YAAY,MAAM;AACjE,QAAM,cAAc,WAAW,CAAC,CAAC,eAAe,CAAC,YAAY,CAAC;AAE9D,QAAM,QAAQ,SAAS;AAAA,IACrB,UAAU;AAAA,MACR;AAAA,MACA;AAAA,MACA;AAAA,MACA,aAAa;AAAA,IACf;AAAA,IACA,SAAS,YAAY;AACnB,UAAI,CAAC,eAAe,CAAC,SAAS;AAC5B,cAAM,IAAI,MAAM,sBAAsB;AAAA,MACxC;AACA,YAAM,OAAO,MAAM,8BAA8B;AAAA,QAC/C;AAAA,QACA,mBAAmB,YAAY;AAAA,QAC/B;AAAA,QACA;AAAA,MACF,CAAC;AACD,YAAM,YAAY,KAAK;AACvB,UAAI,CAAC,OAAO,SAAS,SAAS,KAAK,aAAa,GAAG;AAIjD,eAAO,KAAK,oCAAoC;AAAA,UAC9C,SAAS,YAAY;AAAA,UACrB,SAAS,YAAY;AAAA,UACrB;AAAA,QACF,CAAC;AACD,eAAO;AAAA,MACT;AACA,aAAO;AAAA,IACT;AAAA,IACA,SAAS,WAAW,CAAC,CAAC,eAAe,CAAC,YAAY,CAAC;AAAA,IACnD,WAAW;AAAA,IACX,iBAAiB,WAAW,QAAQ;AAAA,IACpC,OAAO;AAAA,EACT,CAAC;AAED,SAAO;AAAA,IACL,SAAS,MAAM;AAAA,IACf,MAAM,WAAW,uBAAwB,MAAM,QAAQ;AAAA,IACvD,eAAe;AAAA,IACf,WAAW,CAAC,YAAY,CAAC,eAAe,MAAM;AAAA,IAC9C,SAAS,CAAC,aAAa,eAAe,MAAM;AAAA,IAC5C,YAAY,CAAC,YAAY,MAAM;AAAA,EACjC;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,45 +1,115 @@
|
|
|
1
|
-
// src/preview/
|
|
1
|
+
// src/preview/replay/FunkitSessionReplay.tsx
|
|
2
2
|
import {
|
|
3
3
|
createContext,
|
|
4
4
|
useContext,
|
|
5
|
+
useLayoutEffect,
|
|
6
|
+
useMemo
|
|
7
|
+
} from "react";
|
|
8
|
+
import { jsx } from "react/jsx-runtime";
|
|
9
|
+
var AUTH_SCREEN = "AUTH_CAPTURE";
|
|
10
|
+
function recordedEndings(endings) {
|
|
11
|
+
const played = /* @__PURE__ */ new Set();
|
|
12
|
+
const fits = (ending, auth) => auth === void 0 || ending.screen === void 0 || ending.screen === AUTH_SCREEN === auth;
|
|
13
|
+
return {
|
|
14
|
+
next: (provider, { prefix = "", auth } = {}) => endings.find(
|
|
15
|
+
(ending) => !played.has(ending) && ending.provider === provider && ending.code.startsWith(prefix) && fits(ending, auth)
|
|
16
|
+
),
|
|
17
|
+
played: (ending) => {
|
|
18
|
+
played.add(ending);
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
var NONE = recordedEndings([]);
|
|
23
|
+
var ReplayContext = createContext({ active: false, endings: NONE });
|
|
24
|
+
var replayMounted = false;
|
|
25
|
+
var isReplayMounted = () => replayMounted;
|
|
26
|
+
function FunkitSessionReplay({
|
|
27
|
+
active,
|
|
28
|
+
endings,
|
|
29
|
+
children
|
|
30
|
+
}) {
|
|
31
|
+
useLayoutEffect(() => {
|
|
32
|
+
replayMounted = active;
|
|
33
|
+
return () => {
|
|
34
|
+
replayMounted = false;
|
|
35
|
+
};
|
|
36
|
+
}, [active]);
|
|
37
|
+
const value = useMemo(
|
|
38
|
+
() => ({
|
|
39
|
+
active,
|
|
40
|
+
endings: endings === void 0 ? NONE : recordedEndings(endings)
|
|
41
|
+
}),
|
|
42
|
+
[active, endings]
|
|
43
|
+
);
|
|
44
|
+
return /* @__PURE__ */ jsx(ReplayContext.Provider, { value, children });
|
|
45
|
+
}
|
|
46
|
+
function useIsReplaying() {
|
|
47
|
+
return useContext(ReplayContext).active;
|
|
48
|
+
}
|
|
49
|
+
function useRecordedEndings() {
|
|
50
|
+
return useContext(ReplayContext).endings;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// src/preview/flowPreview.tsx
|
|
54
|
+
import {
|
|
55
|
+
createContext as createContext2,
|
|
56
|
+
useContext as useContext2,
|
|
5
57
|
useEffect,
|
|
6
|
-
useMemo,
|
|
58
|
+
useMemo as useMemo2,
|
|
7
59
|
useState
|
|
8
60
|
} from "react";
|
|
9
|
-
import { jsx } from "react/jsx-runtime";
|
|
10
|
-
var HostPreviewContext =
|
|
61
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
62
|
+
var HostPreviewContext = createContext2(void 0);
|
|
11
63
|
function FunkitFlowPreview({
|
|
12
64
|
seed,
|
|
13
65
|
children
|
|
14
66
|
}) {
|
|
15
|
-
return /* @__PURE__ */
|
|
67
|
+
return /* @__PURE__ */ jsx2(HostPreviewContext.Provider, { value: seed, children });
|
|
16
68
|
}
|
|
17
69
|
function useHostFlowPreview() {
|
|
18
|
-
return
|
|
70
|
+
return useContext2(HostPreviewContext);
|
|
19
71
|
}
|
|
20
72
|
var NO_PREVIEW = {};
|
|
21
|
-
var ActivePreviewContext =
|
|
73
|
+
var ActivePreviewContext = createContext2(NO_PREVIEW);
|
|
22
74
|
function ActiveFlowPreview({
|
|
23
75
|
deposit,
|
|
24
76
|
withdrawal,
|
|
25
77
|
children
|
|
26
78
|
}) {
|
|
27
|
-
const preview =
|
|
79
|
+
const preview = useMemo2(
|
|
28
80
|
() => deposit === void 0 && withdrawal === void 0 ? NO_PREVIEW : { deposit, withdrawal },
|
|
29
81
|
[deposit, withdrawal]
|
|
30
82
|
);
|
|
31
|
-
return /* @__PURE__ */
|
|
83
|
+
return /* @__PURE__ */ jsx2(ActivePreviewContext.Provider, { value: preview, children });
|
|
84
|
+
}
|
|
85
|
+
function openingStep(seed) {
|
|
86
|
+
const step = seed?.step;
|
|
87
|
+
return typeof step === "function" ? step() : step;
|
|
32
88
|
}
|
|
33
89
|
var SEED = {
|
|
34
90
|
fiatAmount: (p) => p.deposit?.fiat?.amount,
|
|
35
|
-
fiatStep: (p) => p.deposit?.fiat
|
|
91
|
+
fiatStep: (p) => openingStep(p.deposit?.fiat),
|
|
36
92
|
fiatPressEntry: (p) => p.deposit?.fiat?.pressEntry,
|
|
93
|
+
moonPayCaptureRedoing: (p) => p.deposit?.fiat?.moonPayCaptureRedoing,
|
|
94
|
+
moonPayBuyerRequested: (p) => p.deposit?.fiat?.pressEntry,
|
|
95
|
+
coinbaseBuyerRequested: (p) => p.deposit?.fiat?.pressEntry,
|
|
96
|
+
moonPayKycIntroduced: (p) => {
|
|
97
|
+
const page = p.deposit?.fiat?.identity?.page;
|
|
98
|
+
return page === void 0 ? void 0 : page === "form";
|
|
99
|
+
},
|
|
37
100
|
fiatSubmitOnOpen: (p) => p.deposit?.fiat?.submitOnOpen,
|
|
38
101
|
fiatSurfaceFailure: (p) => p.deposit?.fiat?.surfaceFailure,
|
|
102
|
+
fiatQuoteSurfaceFailure: (p) => p.deposit?.fiat?.quoteSurfaceFailure,
|
|
103
|
+
fiatFailoverVerified: (p) => p.deposit?.fiat?.failoverVerified,
|
|
39
104
|
fiatAccountIneligible: (p) => p.deposit?.fiat?.accountIneligible,
|
|
40
105
|
fiatDepositMatch: (p) => p.deposit?.fiat?.depositMatch,
|
|
41
106
|
fiatPaymentCaptured: (p) => p.deposit?.fiat?.paymentCaptured,
|
|
42
107
|
fiatPaymentMethodPicker: (p) => p.deposit?.fiat?.paymentMethodPicker,
|
|
108
|
+
fiatFunReauth: (p) => p.deposit?.fiat?.funReauth,
|
|
109
|
+
fiatPaymentMethodContent: (p) => p.deposit?.fiat?.paymentMethodContent,
|
|
110
|
+
fiatPaymentMethodCrypto: (p) => p.deposit?.fiat?.paymentMethodCrypto,
|
|
111
|
+
fiatPaymentMethodSwapped: (p) => p.deposit?.fiat?.paymentMethodSwapped,
|
|
112
|
+
fiatPaymentMethodSwappedPending: (p) => p.deposit?.fiat?.paymentMethodSwappedPending,
|
|
43
113
|
kycCompletion: (p) => p.deposit?.fiat?.kycCompletion,
|
|
44
114
|
identityPage: (p) => p.deposit?.fiat?.identity?.page,
|
|
45
115
|
identitySection: (p) => {
|
|
@@ -52,6 +122,18 @@ var SEED = {
|
|
|
52
122
|
depositSourceSymbol: (p) => p.deposit?.sourceSymbol,
|
|
53
123
|
cryptoTokenQuery: (p) => p.deposit?.tokenQuery,
|
|
54
124
|
cryptoAddressExpanded: (p) => p.deposit?.addressExpanded,
|
|
125
|
+
walletDeposit: (p) => p.deposit?.wallet,
|
|
126
|
+
walletAccount: (p) => {
|
|
127
|
+
const wallet = p.deposit?.wallet;
|
|
128
|
+
return wallet && wallet.connection !== "failed" ? { address: wallet.from, tokens: wallet.tokens } : void 0;
|
|
129
|
+
},
|
|
130
|
+
walletAmount: (p) => p.deposit?.wallet?.amount,
|
|
131
|
+
walletStatus: (p) => p.deposit?.wallet?.status,
|
|
132
|
+
walletConnection: (p) => p.deposit?.wallet?.connection,
|
|
133
|
+
walletMenuOpen: (p) => p.deposit?.wallet?.menuOpen,
|
|
134
|
+
walletUnlinkFailed: (p) => p.deposit?.wallet?.unlinkFailed,
|
|
135
|
+
walletAssetListOpen: (p) => p.deposit?.wallet?.assetListOpen,
|
|
136
|
+
walletToken: (p) => p.deposit?.wallet?.tokens[0],
|
|
55
137
|
withdrawalMethodId: (p) => p.withdrawal?.methodId,
|
|
56
138
|
withdrawalAmount: (p) => p.withdrawal?.amount,
|
|
57
139
|
withdrawalRecipient: (p) => p.withdrawal?.recipient,
|
|
@@ -61,7 +143,7 @@ var SEED = {
|
|
|
61
143
|
};
|
|
62
144
|
var readers = /* @__PURE__ */ new WeakMap();
|
|
63
145
|
function useSeed(pick) {
|
|
64
|
-
const preview =
|
|
146
|
+
const preview = useContext2(ActivePreviewContext);
|
|
65
147
|
const [seed] = useState(
|
|
66
148
|
() => readers.get(preview)?.has(pick) === true ? void 0 : pick(preview)
|
|
67
149
|
);
|
|
@@ -348,9 +430,14 @@ function addressRows(fields) {
|
|
|
348
430
|
}
|
|
349
431
|
|
|
350
432
|
export {
|
|
433
|
+
isReplayMounted,
|
|
434
|
+
FunkitSessionReplay,
|
|
435
|
+
useIsReplaying,
|
|
436
|
+
useRecordedEndings,
|
|
351
437
|
FunkitFlowPreview,
|
|
352
438
|
useHostFlowPreview,
|
|
353
439
|
ActiveFlowPreview,
|
|
440
|
+
openingStep,
|
|
354
441
|
SEED,
|
|
355
442
|
useSeed,
|
|
356
443
|
useSeededState,
|
|
@@ -377,4 +464,4 @@ export {
|
|
|
377
464
|
PERSONA_PRIVACY_POLICY_URL,
|
|
378
465
|
kycProviderDisplayName
|
|
379
466
|
};
|
|
380
|
-
//# sourceMappingURL=chunk-
|
|
467
|
+
//# sourceMappingURL=chunk-QIDFAWW4.js.map
|