@funkit/connect-rn 9.1.0 → 9.1.2
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 +106 -0
- package/README.md +7 -5
- package/dist/{chunk-EWSXVFEF.js → chunk-2C2OETEM.js} +233 -481
- package/dist/chunk-2C2OETEM.js.map +7 -0
- package/dist/{chunk-4EEB4ZBQ.js → chunk-ESQLFNOK.js} +3 -1
- package/dist/chunk-ESQLFNOK.js.map +7 -0
- package/dist/{chunk-FRXLZQRI.js → chunk-OJN7XVWC.js} +2 -2
- package/dist/clients/lighter.js +1 -1
- package/dist/clients/nado.js +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4851 -3474
- package/dist/index.js.map +4 -4
- package/dist/preview.js +389 -15
- package/dist/preview.js.map +2 -2
- package/dist/src/components/AmountDisplay.d.ts +2 -2
- package/dist/src/components/AmountDisplay.d.ts.map +1 -1
- package/dist/src/components/PasteAddressPanel.d.ts +16 -0
- package/dist/src/components/PasteAddressPanel.d.ts.map +1 -0
- package/dist/src/components/WalletAddressInput.d.ts +23 -10
- package/dist/src/components/WalletAddressInput.d.ts.map +1 -1
- package/dist/src/components/WithdrawSourceCard.d.ts +13 -2
- package/dist/src/components/WithdrawSourceCard.d.ts.map +1 -1
- package/dist/src/components/v2/QuickAmountsRow.d.ts +3 -1
- package/dist/src/components/v2/QuickAmountsRow.d.ts.map +1 -1
- package/dist/src/fiat/FiatErrorScreen.d.ts +16 -0
- package/dist/src/fiat/FiatErrorScreen.d.ts.map +1 -0
- package/dist/src/fiat/FiatFormScreen.d.ts +4 -2
- package/dist/src/fiat/FiatFormScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatKycPhoneField.d.ts +2 -1
- package/dist/src/fiat/FiatKycPhoneField.d.ts.map +1 -1
- package/dist/src/fiat/FiatOtpScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatPhoneField.d.ts.map +1 -1
- package/dist/src/fiat/FiatRegionUnsupportedScreen.d.ts +3 -1
- package/dist/src/fiat/FiatRegionUnsupportedScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatStepFailedScreen.d.ts +17 -0
- package/dist/src/fiat/FiatStepFailedScreen.d.ts.map +1 -0
- package/dist/src/fiat/FiatUnavailableScreen.d.ts +14 -0
- package/dist/src/fiat/FiatUnavailableScreen.d.ts.map +1 -0
- package/dist/src/fiat/closeFailure.d.ts +1 -1
- package/dist/src/fiat/closeFailure.d.ts.map +1 -1
- package/dist/src/fiat/depositMatch.d.ts +9 -12
- package/dist/src/fiat/depositMatch.d.ts.map +1 -1
- package/dist/src/fiat/depositOutcome.d.ts +6 -0
- package/dist/src/fiat/depositOutcome.d.ts.map +1 -1
- package/dist/src/fiat/formScreenProps.d.ts.map +1 -1
- package/dist/src/fiat/kycFormState.d.ts +5 -3
- package/dist/src/fiat/kycFormState.d.ts.map +1 -1
- package/dist/src/fiat/kycOptionRows.d.ts +1 -4
- package/dist/src/fiat/kycOptionRows.d.ts.map +1 -1
- package/dist/src/fiat/paymentReroute.d.ts +2 -2
- package/dist/src/fiat/paymentReroute.d.ts.map +1 -1
- package/dist/src/fiat/paymentSurfaceFailure.d.ts +27 -18
- package/dist/src/fiat/paymentSurfaceFailure.d.ts.map +1 -1
- package/dist/src/fiat/providers/adapter.d.ts +10 -1
- package/dist/src/fiat/providers/adapter.d.ts.map +1 -1
- package/dist/src/fiat/providers/{banxaRedirect.d.ts → banxa/banxaRedirect.d.ts} +1 -1
- package/dist/src/fiat/providers/banxa/banxaRedirect.d.ts.map +1 -0
- package/dist/src/fiat/providers/{CoinbaseCheckoutSurface.d.ts → coinbase/CoinbaseCheckoutSurface.d.ts} +1 -1
- package/dist/src/fiat/providers/coinbase/CoinbaseCheckoutSurface.d.ts.map +1 -0
- package/dist/src/fiat/providers/coinbase/CoinbaseWarmup.d.ts +38 -0
- package/dist/src/fiat/providers/coinbase/CoinbaseWarmup.d.ts.map +1 -0
- package/dist/src/fiat/providers/{coinbaseApplePay.d.ts → coinbase/coinbaseApplePay.d.ts} +1 -1
- package/dist/src/fiat/providers/coinbase/coinbaseApplePay.d.ts.map +1 -0
- package/dist/src/fiat/providers/coinbase/coinbaseCardRefusal.d.ts +2 -0
- package/dist/src/fiat/providers/coinbase/coinbaseCardRefusal.d.ts.map +1 -0
- package/dist/src/fiat/providers/coinbase/coinbaseOnrampEvents.d.ts.map +1 -0
- package/dist/src/fiat/providers/coinbase/coinbasePreparedPayment.d.ts +18 -0
- package/dist/src/fiat/providers/coinbase/coinbasePreparedPayment.d.ts.map +1 -0
- package/dist/src/fiat/providers/coinbase/coinbaseWarmupStore.d.ts +40 -0
- package/dist/src/fiat/providers/coinbase/coinbaseWarmupStore.d.ts.map +1 -0
- package/dist/src/fiat/providers/coinbase/useCoinbaseWarmupGate.d.ts +4 -0
- package/dist/src/fiat/providers/coinbase/useCoinbaseWarmupGate.d.ts.map +1 -0
- package/dist/src/fiat/providers/{moonpay.d.ts → moonpay/moonpay.d.ts} +1 -1
- package/dist/src/fiat/providers/moonpay/moonpay.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/moonpayApplePayPainted.d.ts.map +1 -0
- package/dist/src/fiat/providers/{moonpayApplePayStyle.d.ts → moonpay/moonpayApplePayStyle.d.ts} +1 -1
- package/dist/src/fiat/providers/moonpay/moonpayApplePayStyle.d.ts.map +1 -0
- package/dist/src/fiat/providers/{moonpayAuthStyle.d.ts → moonpay/moonpayAuthStyle.d.ts} +1 -1
- package/dist/src/fiat/providers/moonpay/moonpayAuthStyle.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/moonpayCardRefusal.d.ts +7 -0
- package/dist/src/fiat/providers/moonpay/moonpayCardRefusal.d.ts.map +1 -0
- package/dist/src/fiat/providers/{moonpayFeeQuote.d.ts → moonpay/moonpayFeeQuote.d.ts} +1 -1
- package/dist/src/fiat/providers/moonpay/moonpayFeeQuote.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/moonpayHandoffCard.d.ts.map +1 -0
- package/dist/src/fiat/providers/{moonpayPaymentDisclosures.d.ts → moonpay/moonpayPaymentDisclosures.d.ts} +1 -1
- package/dist/src/fiat/providers/moonpay/moonpayPaymentDisclosures.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/moonpayPreparedPayment.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/moonpaySharingConsent.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/StripeSessionAuthScreen.d.ts.map +1 -0
- package/dist/src/fiat/providers/{stripeAccountCreation.d.ts → stripe/stripeAccountCreation.d.ts} +5 -4
- package/dist/src/fiat/providers/stripe/stripeAccountCreation.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/stripeApplePayButton.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/stripeApplePayReady.d.ts +9 -0
- package/dist/src/fiat/providers/stripe/stripeApplePayReady.d.ts.map +1 -0
- package/dist/src/fiat/providers/{stripeAuthorize.d.ts → stripe/stripeAuthorize.d.ts} +1 -1
- package/dist/src/fiat/providers/stripe/stripeAuthorize.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/stripeCardRefusal.d.ts +2 -0
- package/dist/src/fiat/providers/stripe/stripeCardRefusal.d.ts.map +1 -0
- package/dist/src/fiat/providers/{stripeCheckout.d.ts → stripe/stripeCheckout.d.ts} +1 -1
- package/dist/src/fiat/providers/stripe/stripeCheckout.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/stripeErrorDetail.d.ts +6 -0
- package/dist/src/fiat/providers/stripe/stripeErrorDetail.d.ts.map +1 -0
- package/dist/src/fiat/providers/{stripeKyc.d.ts → stripe/stripeKyc.d.ts} +1 -1
- package/dist/src/fiat/providers/stripe/stripeKyc.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/stripeKycInfo.d.ts.map +1 -0
- package/dist/src/fiat/providers/{stripeKycIntro.d.ts → stripe/stripeKycIntro.d.ts} +1 -1
- package/dist/src/fiat/providers/stripe/stripeKycIntro.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/stripeLinkWarmup.d.ts +29 -0
- package/dist/src/fiat/providers/stripe/stripeLinkWarmup.d.ts.map +1 -0
- package/dist/src/fiat/providers/{stripeOnramp.d.ts → stripe/stripeOnramp.d.ts} +7 -0
- package/dist/src/fiat/providers/stripe/stripeOnramp.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/stripeOnrampBridge.d.ts.map +1 -0
- package/dist/src/fiat/providers/{stripePayment.d.ts → stripe/stripePayment.d.ts} +2 -4
- package/dist/src/fiat/providers/stripe/stripePayment.d.ts.map +1 -0
- package/dist/src/fiat/providers/{stripeRoundPush.d.ts → stripe/stripeRoundPush.d.ts} +10 -4
- package/dist/src/fiat/providers/stripe/stripeRoundPush.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/stripeSdk.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/stripeSeamlessSignIn.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/stripeSessionAuth.d.ts.map +1 -0
- package/dist/src/fiat/providers/{stripeSignInStep.d.ts → stripe/stripeSignInStep.d.ts} +1 -1
- package/dist/src/fiat/providers/stripe/stripeSignInStep.d.ts.map +1 -0
- package/dist/src/fiat/providers/{useCreateStripeAccountWithExistingUserData.d.ts → stripe/useCreateStripeAccountWithExistingUserData.d.ts} +15 -15
- package/dist/src/fiat/providers/stripe/useCreateStripeAccountWithExistingUserData.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/useStripeOnrampClient.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/useStripeSessionAuth.d.ts.map +1 -0
- package/dist/src/fiat/providers/sumsub/SumsubKycSurface.d.ts.map +1 -0
- package/dist/src/fiat/providers/sumsub/SumsubNativeKycSurface.d.ts.map +1 -0
- package/dist/src/fiat/providers/{sumsubKyc.d.ts → sumsub/sumsubKyc.d.ts} +1 -1
- package/dist/src/fiat/providers/sumsub/sumsubKyc.d.ts.map +1 -0
- package/dist/src/fiat/providers/sumsub/sumsubNativeLaunch.d.ts.map +1 -0
- package/dist/src/fiat/providers/sumsub/sumsubSdk.d.ts.map +1 -0
- package/dist/src/fiat/providers/{sumsubTheme.d.ts → sumsub/sumsubTheme.d.ts} +1 -1
- package/dist/src/fiat/providers/sumsub/sumsubTheme.d.ts.map +1 -0
- package/dist/src/fiat/providers/transak/TransakApplePaySurface.d.ts.map +1 -0
- package/dist/src/fiat/providers/{transakApplePay.d.ts → transak/transakApplePay.d.ts} +1 -1
- package/dist/src/fiat/providers/transak/transakApplePay.d.ts.map +1 -0
- package/dist/src/fiat/quoteNoRoute.d.ts +4 -19
- package/dist/src/fiat/quoteNoRoute.d.ts.map +1 -1
- package/dist/src/fiat/refusedFields.d.ts +9 -0
- package/dist/src/fiat/refusedFields.d.ts.map +1 -0
- package/dist/src/fiat/renderCaptureSurface.d.ts +2 -0
- package/dist/src/fiat/renderCaptureSurface.d.ts.map +1 -1
- package/dist/src/fiat/shownFieldIssues.d.ts +3 -2
- package/dist/src/fiat/shownFieldIssues.d.ts.map +1 -1
- package/dist/src/fiat/stepDetails.d.ts +19 -4
- package/dist/src/fiat/stepDetails.d.ts.map +1 -1
- package/dist/src/fiat/useIdentityAssertion.d.ts.map +1 -1
- package/dist/src/fiat/usePaymentFailureAnswer.d.ts +13 -10
- package/dist/src/fiat/usePaymentFailureAnswer.d.ts.map +1 -1
- package/dist/src/fiat/useReceiptTitles.d.ts.map +1 -1
- package/dist/src/fiat/useStandingRefusals.d.ts +5 -0
- package/dist/src/fiat/useStandingRefusals.d.ts.map +1 -0
- package/dist/src/flow/DepositFlowContent.d.ts.map +1 -1
- package/dist/src/flow/FiatDepositAmountStep.d.ts +1 -1
- package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
- package/dist/src/flow/FunkitFlowProvider.d.ts +1 -1
- package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
- package/dist/src/flow/depositFlowConfig.d.ts.map +1 -1
- package/dist/src/flow/useKeyboardHeight.d.ts.map +1 -1
- package/dist/src/hooks/useGuardedAmountInput.d.ts +0 -11
- package/dist/src/hooks/useGuardedAmountInput.d.ts.map +1 -1
- package/dist/src/icons/FigmaSystemIcons.d.ts +1 -0
- package/dist/src/icons/FigmaSystemIcons.d.ts.map +1 -1
- package/dist/src/icons/HandTapIcon.d.ts +4 -0
- package/dist/src/icons/HandTapIcon.d.ts.map +1 -0
- package/dist/src/icons/KycOutcomeIcon.d.ts.map +1 -1
- package/dist/src/preview/flowPreview.d.ts +9 -2
- package/dist/src/preview/flowPreview.d.ts.map +1 -1
- package/dist/src/preview/previewFetch.d.ts.map +1 -1
- package/dist/src/preview/scenarioCatalog.d.ts +79 -5
- package/dist/src/preview/scenarioCatalog.d.ts.map +1 -1
- package/dist/src/preview/scenarios.d.ts +22 -3
- package/dist/src/preview/scenarios.d.ts.map +1 -1
- package/dist/src/providers/FunkitProvider.d.ts +1 -1
- package/dist/src/providers/FunkitProvider.d.ts.map +1 -1
- package/dist/src/providers/NativeCapabilitiesContext.d.ts +1 -1
- package/dist/src/providers/NativeCapabilitiesContext.d.ts.map +1 -1
- package/dist/src/screens/DepositAmountScreen.d.ts +7 -3
- package/dist/src/screens/DepositAmountScreen.d.ts.map +1 -1
- package/dist/src/screens/DepositMatchScreen.d.ts +7 -5
- package/dist/src/screens/DepositMatchScreen.d.ts.map +1 -1
- package/dist/src/screens/FeeDetailsScreen.d.ts +2 -0
- package/dist/src/screens/FeeDetailsScreen.d.ts.map +1 -1
- package/dist/src/screens/WithdrawAddressScreen.d.ts +6 -1
- package/dist/src/screens/WithdrawAddressScreen.d.ts.map +1 -1
- package/dist/src/screens/WithdrawAmountScreen.d.ts +6 -1
- package/dist/src/screens/WithdrawAmountScreen.d.ts.map +1 -1
- package/dist/src/screens/WithdrawCryptoSteps.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useLockedTokenAmount.d.ts +2 -0
- package/dist/src/transfer/hooks/useLockedTokenAmount.d.ts.map +1 -1
- package/dist/src/transfer/lockedTokenAmount.d.ts +13 -0
- package/dist/src/transfer/lockedTokenAmount.d.ts.map +1 -1
- package/dist/src/utils/formatAmount.d.ts +4 -3
- package/dist/src/utils/formatAmount.d.ts.map +1 -1
- package/dist/src/withdrawal/useCryptoWithdrawalForm.d.ts +1 -0
- package/dist/src/withdrawal/useCryptoWithdrawalForm.d.ts.map +1 -1
- package/dist/src/withdrawal/useWithdrawalSourceTokenBalance.d.ts +11 -2
- package/dist/src/withdrawal/useWithdrawalSourceTokenBalance.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/chunk-4EEB4ZBQ.js.map +0 -7
- package/dist/chunk-EWSXVFEF.js.map +0 -7
- package/dist/src/fiat/pricedLimit.d.ts +0 -20
- package/dist/src/fiat/pricedLimit.d.ts.map +0 -1
- package/dist/src/fiat/providers/CoinbaseCheckoutSurface.d.ts.map +0 -1
- package/dist/src/fiat/providers/StripeSessionAuthScreen.d.ts.map +0 -1
- package/dist/src/fiat/providers/SumsubKycSurface.d.ts.map +0 -1
- package/dist/src/fiat/providers/SumsubNativeKycSurface.d.ts.map +0 -1
- package/dist/src/fiat/providers/TransakApplePaySurface.d.ts.map +0 -1
- package/dist/src/fiat/providers/banxaRedirect.d.ts.map +0 -1
- package/dist/src/fiat/providers/coinbaseApplePay.d.ts.map +0 -1
- package/dist/src/fiat/providers/coinbaseFailureCopy.d.ts +0 -25
- package/dist/src/fiat/providers/coinbaseFailureCopy.d.ts.map +0 -1
- package/dist/src/fiat/providers/coinbaseOnrampEvents.d.ts.map +0 -1
- package/dist/src/fiat/providers/moonpay.d.ts.map +0 -1
- package/dist/src/fiat/providers/moonpayApplePayPainted.d.ts.map +0 -1
- package/dist/src/fiat/providers/moonpayApplePayStyle.d.ts.map +0 -1
- package/dist/src/fiat/providers/moonpayAuthStyle.d.ts.map +0 -1
- package/dist/src/fiat/providers/moonpayFailureCopy.d.ts +0 -15
- package/dist/src/fiat/providers/moonpayFailureCopy.d.ts.map +0 -1
- package/dist/src/fiat/providers/moonpayFeeQuote.d.ts.map +0 -1
- package/dist/src/fiat/providers/moonpayHandoffCard.d.ts.map +0 -1
- package/dist/src/fiat/providers/moonpayPaymentDisclosures.d.ts.map +0 -1
- package/dist/src/fiat/providers/moonpayPreparedPayment.d.ts.map +0 -1
- package/dist/src/fiat/providers/moonpaySharingConsent.d.ts.map +0 -1
- package/dist/src/fiat/providers/stripeAccountCreation.d.ts.map +0 -1
- package/dist/src/fiat/providers/stripeApplePayButton.d.ts.map +0 -1
- package/dist/src/fiat/providers/stripeAuthorize.d.ts.map +0 -1
- package/dist/src/fiat/providers/stripeCheckout.d.ts.map +0 -1
- package/dist/src/fiat/providers/stripeFailureCopy.d.ts +0 -16
- package/dist/src/fiat/providers/stripeFailureCopy.d.ts.map +0 -1
- package/dist/src/fiat/providers/stripeKyc.d.ts.map +0 -1
- package/dist/src/fiat/providers/stripeKycInfo.d.ts.map +0 -1
- package/dist/src/fiat/providers/stripeKycIntro.d.ts.map +0 -1
- package/dist/src/fiat/providers/stripeOnramp.d.ts.map +0 -1
- package/dist/src/fiat/providers/stripeOnrampBridge.d.ts.map +0 -1
- package/dist/src/fiat/providers/stripePayment.d.ts.map +0 -1
- package/dist/src/fiat/providers/stripeRoundPush.d.ts.map +0 -1
- package/dist/src/fiat/providers/stripeSdk.d.ts.map +0 -1
- package/dist/src/fiat/providers/stripeSeamlessSignIn.d.ts.map +0 -1
- package/dist/src/fiat/providers/stripeSessionAuth.d.ts.map +0 -1
- package/dist/src/fiat/providers/stripeSignInStep.d.ts.map +0 -1
- package/dist/src/fiat/providers/sumsubKyc.d.ts.map +0 -1
- package/dist/src/fiat/providers/sumsubNativeLaunch.d.ts.map +0 -1
- package/dist/src/fiat/providers/sumsubSdk.d.ts.map +0 -1
- package/dist/src/fiat/providers/sumsubTheme.d.ts.map +0 -1
- package/dist/src/fiat/providers/transakApplePay.d.ts.map +0 -1
- package/dist/src/fiat/providers/useCreateStripeAccountWithExistingUserData.d.ts.map +0 -1
- package/dist/src/fiat/providers/useStripeOnrampClient.d.ts.map +0 -1
- package/dist/src/fiat/providers/useStripeSessionAuth.d.ts.map +0 -1
- /package/dist/{chunk-FRXLZQRI.js.map → chunk-OJN7XVWC.js.map} +0 -0
- /package/dist/src/fiat/providers/{coinbaseOnrampEvents.d.ts → coinbase/coinbaseOnrampEvents.d.ts} +0 -0
- /package/dist/src/fiat/providers/{moonpayApplePayPainted.d.ts → moonpay/moonpayApplePayPainted.d.ts} +0 -0
- /package/dist/src/fiat/providers/{moonpayHandoffCard.d.ts → moonpay/moonpayHandoffCard.d.ts} +0 -0
- /package/dist/src/fiat/providers/{moonpayPreparedPayment.d.ts → moonpay/moonpayPreparedPayment.d.ts} +0 -0
- /package/dist/src/fiat/providers/{moonpaySharingConsent.d.ts → moonpay/moonpaySharingConsent.d.ts} +0 -0
- /package/dist/src/fiat/providers/{StripeSessionAuthScreen.d.ts → stripe/StripeSessionAuthScreen.d.ts} +0 -0
- /package/dist/src/fiat/providers/{stripeApplePayButton.d.ts → stripe/stripeApplePayButton.d.ts} +0 -0
- /package/dist/src/fiat/providers/{stripeKycInfo.d.ts → stripe/stripeKycInfo.d.ts} +0 -0
- /package/dist/src/fiat/providers/{stripeOnrampBridge.d.ts → stripe/stripeOnrampBridge.d.ts} +0 -0
- /package/dist/src/fiat/providers/{stripeSdk.d.ts → stripe/stripeSdk.d.ts} +0 -0
- /package/dist/src/fiat/providers/{stripeSeamlessSignIn.d.ts → stripe/stripeSeamlessSignIn.d.ts} +0 -0
- /package/dist/src/fiat/providers/{stripeSessionAuth.d.ts → stripe/stripeSessionAuth.d.ts} +0 -0
- /package/dist/src/fiat/providers/{useStripeOnrampClient.d.ts → stripe/useStripeOnrampClient.d.ts} +0 -0
- /package/dist/src/fiat/providers/{useStripeSessionAuth.d.ts → stripe/useStripeSessionAuth.d.ts} +0 -0
- /package/dist/src/fiat/providers/{SumsubKycSurface.d.ts → sumsub/SumsubKycSurface.d.ts} +0 -0
- /package/dist/src/fiat/providers/{SumsubNativeKycSurface.d.ts → sumsub/SumsubNativeKycSurface.d.ts} +0 -0
- /package/dist/src/fiat/providers/{sumsubNativeLaunch.d.ts → sumsub/sumsubNativeLaunch.d.ts} +0 -0
- /package/dist/src/fiat/providers/{sumsubSdk.d.ts → sumsub/sumsubSdk.d.ts} +0 -0
- /package/dist/src/fiat/providers/{TransakApplePaySurface.d.ts → transak/TransakApplePaySurface.d.ts} +0 -0
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import type { FiatStepResponse } from '@funkit/connect-core';
|
|
1
|
+
import type { FiatProvider, FiatStepResponse, Quote } from '@funkit/connect-core';
|
|
2
2
|
import type { FlowPreviewSeed } from './flowPreview';
|
|
3
3
|
import { type PreviewScenarioEntry, type PreviewScenarioId } from './scenarioCatalog';
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* A canned `/fiat/*` answer: a step response, or an HTTP failure to provoke a retry.
|
|
6
|
+
* - `retryAfterSeconds` rides a 429's body, as fun-backend's rate limiter sends it.
|
|
7
|
+
*/
|
|
5
8
|
export type PreviewResponse = FiatStepResponse | {
|
|
6
9
|
status: number;
|
|
10
|
+
retryAfterSeconds?: number;
|
|
7
11
|
};
|
|
8
12
|
/**
|
|
9
13
|
* The fiat backend a scenario runs against, so a seeded screen stays put and its CTAs answer.
|
|
@@ -20,6 +24,15 @@ export type PreviewRange = readonly [
|
|
|
20
24
|
max: string,
|
|
21
25
|
userMax: string | null
|
|
22
26
|
];
|
|
27
|
+
/** One provider's span of the table, and what its quote answers at an amount inside it. */
|
|
28
|
+
export interface PreviewProviderRoute {
|
|
29
|
+
provider: FiatProvider;
|
|
30
|
+
min: string;
|
|
31
|
+
max: string;
|
|
32
|
+
/** How much of its requirements the table can see; every entry still needs a sign-in. */
|
|
33
|
+
visibility: 'AUTH_GATED' | 'PARTIAL' | 'COMPLETE';
|
|
34
|
+
answer: (amount: string) => FiatStepResponse;
|
|
35
|
+
}
|
|
23
36
|
export interface PreviewBackend {
|
|
24
37
|
quote?: FiatStepResponse;
|
|
25
38
|
minimum?: string;
|
|
@@ -31,6 +44,12 @@ export interface PreviewBackend {
|
|
|
31
44
|
* `serviceableRanges`, the way fun-backend #5119 keeps a buyer cap's gap.
|
|
32
45
|
*/
|
|
33
46
|
ranges?: readonly PreviewRange[];
|
|
47
|
+
/**
|
|
48
|
+
* Several providers, preferred first: the table splits wherever one starts or stops, a routed
|
|
49
|
+
* quote is answered by the provider it names, and `POST /fiat/quote` by the first one (inside
|
|
50
|
+
* the host's pinned list) that serves the amount.
|
|
51
|
+
*/
|
|
52
|
+
providers?: readonly PreviewProviderRoute[];
|
|
34
53
|
/** The country → currency lookup fails, so no quote is ever asked for. */
|
|
35
54
|
currencyLookupFails?: boolean;
|
|
36
55
|
responses?: Readonly<Record<string, PreviewResponse>>;
|
|
@@ -46,7 +65,7 @@ export declare function scenarioStartStep(scenario: PreviewScenario): FiatStepRe
|
|
|
46
65
|
export declare const DEFAULT_PREVIEW_QUOTE: {
|
|
47
66
|
state: {
|
|
48
67
|
kind: "QUOTE";
|
|
49
|
-
quote:
|
|
68
|
+
quote: Quote;
|
|
50
69
|
limits: {
|
|
51
70
|
min: string;
|
|
52
71
|
max: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scenarios.d.ts","sourceRoot":"","sources":["../../../src/preview/scenarios.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"scenarios.d.ts","sourceRoot":"","sources":["../../../src/preview/scenarios.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,YAAY,EACZ,gBAAgB,EAEhB,KAAK,EACN,MAAM,sBAAsB,CAAA;AAK7B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAYpD,OAAO,EAEL,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACvB,MAAM,mBAAmB,CAAA;AAE1B;;;GAGG;AACH,M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iBAAiB,EAAE,QAAQ,CACtC,MAAM,CAAC,iBAAiB,EAAE,eAAe,CAAC,CAUG,CAAA;AAE/C,8FAA8F;AAC9F,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,eAAe,GACxB,gBAAgB,GAAG,SAAS,CAE9B;AAED,eAAO,MAAM,qBAAqB;;;;;;;;;;;;kBAtyBmB,MAAM;;;;;;;;;CAsyBhB,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { QueryClient } from '@tanstack/react-query';
|
|
2
2
|
import { type ReactNode } from 'react';
|
|
3
3
|
import type { BackdropBlurRenderer } from '../flow/FlowSheet';
|
|
4
|
-
import type { StripeOnrampConfig } from '../fiat/providers/useStripeOnrampClient';
|
|
4
|
+
import type { StripeOnrampConfig } from '../fiat/providers/stripe/useStripeOnrampClient';
|
|
5
5
|
import { type HapticFeedback } from '../haptics/HapticsContext';
|
|
6
6
|
import { type FunkitConfig } from '../identity/IdentityContext';
|
|
7
7
|
import type { Locale } from '../locales/i18n';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FunkitProvider.d.ts","sourceRoot":"","sources":["../../../src/providers/FunkitProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAuB,MAAM,uBAAuB,CAAA;AACxE,OAAO,EAAE,KAAK,SAAS,EAA8B,MAAM,OAAO,CAAA;AAIlE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAC7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"FunkitProvider.d.ts","sourceRoot":"","sources":["../../../src/providers/FunkitProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAuB,MAAM,uBAAuB,CAAA;AACxE,OAAO,EAAE,KAAK,SAAS,EAA8B,MAAM,OAAO,CAAA;AAIlE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAC7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W,EACX,MAAM,EACN,WAAW,EACX,KAAoB,EACpB,MAAM,EACN,eAAe,EACf,kBAAkB,EAClB,kBAAkB,EAClB,WAAW,EACX,YAAY,EACZ,cAAc,GACf,EAAE,mBAAmB,+BAuErB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
|
-
import type { StripeOnrampClient } from '../fiat/providers/stripeOnramp';
|
|
2
|
+
import type { StripeOnrampClient } from '../fiat/providers/stripe/stripeOnramp';
|
|
3
3
|
import type { BackdropBlurRenderer } from '../flow/FlowSheet';
|
|
4
4
|
import { type ClipboardWriter, type SafeClipboardReader } from '../transfer/clipboard';
|
|
5
5
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NativeCapabilitiesContext.d.ts","sourceRoot":"","sources":["../../../src/providers/NativeCapabilitiesContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAsC,MAAM,OAAO,CAAA;AAE1E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"NativeCapabilitiesContext.d.ts","sourceRoot":"","sources":["../../../src/providers/NativeCapabilitiesContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAsC,MAAM,OAAO,CAAA;AAE1E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAA;AAC/E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAG7D,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,mBAAmB,EAIzB,MAAM,uBAAuB,CAAA;AAE9B;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IACjC,oFAAoF;IACpF,YAAY,CAAC,EAAE,kBAAkB,CAAA;IACjC;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,oBAAoB,CAAA;IACzC;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB;;;;OAIG;IACH,eAAe,CAAC,EAAE,eAAe,CAAA;IACjC,gFAAgF;IAChF,kBAAkB,CAAC,EAAE,mBAAmB,CAAA;CACzC;AAED,sEAAsE;AACtE,MAAM,MAAM,0BAA0B,GAAG,kBAAkB,GAAG;IAC5D,eAAe,EAAE,eAAe,CAAA;IAChC,kBAAkB,EAAE,mBAAmB,CAAA;CACxC,CAAA;AAMD,wBAAgB,0BAA0B,CAAC,EACzC,YAAY,EACZ,QAAQ,GACT,EAAE;IACD,YAAY,EAAE,kBAAkB,CAAA;IAChC,QAAQ,EAAE,SAAS,CAAA;CACpB,+BAMA;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,IAAI,0BAA0B,CAWlE;AAED,uEAAuE;AACvE,wBAAgB,eAAe,IAAI,oBAAoB,CAKtD;AAED,gGAAgG;AAChG,wBAAgB,cAAc,IAAI,OAAO,CAQxC;AAED,mFAAmF;AACnF,wBAAgB,eAAe,IAAI,kBAAkB,GAAG,SAAS,CAEhE"}
|
|
@@ -13,6 +13,8 @@ export interface DepositAmountScreenProps {
|
|
|
13
13
|
onChangeInput: (input: string) => void;
|
|
14
14
|
/** Recommended amounts shown while the input is empty. */
|
|
15
15
|
quickAmounts?: QuickAmountOption[];
|
|
16
|
+
/** The recommended amounts are still on their way: the chips hold the row, loading. */
|
|
17
|
+
quickAmountsLoading?: boolean;
|
|
16
18
|
/** ISO 4217 of `input` and both bounds; `USD` when omitted. */
|
|
17
19
|
currency?: string;
|
|
18
20
|
/** The currency is still being looked up: no symbol is drawn beside the amount. */
|
|
@@ -26,10 +28,12 @@ export interface DepositAmountScreenProps {
|
|
|
26
28
|
/** The full fee line for the entered amount (e.g. `$0.50 fee`). */
|
|
27
29
|
fee?: string;
|
|
28
30
|
/**
|
|
29
|
-
* The run inside `fee` set in the brand colour, with the ⓘ (`$50
|
|
30
|
-
*
|
|
31
|
+
* The run inside `fee` set in the brand colour, with the ⓘ (`$50 bonus if
|
|
32
|
+
* eligible`). Passed as the substring so locales can seat it anywhere.
|
|
31
33
|
*/
|
|
32
34
|
feeHighlight?: string;
|
|
35
|
+
/** The run inside `fee` struck through: a fee the partner pays back. */
|
|
36
|
+
feeStruck?: string;
|
|
33
37
|
/**
|
|
34
38
|
* The shown fee no longer prices the current input (a keystroke invalidated
|
|
35
39
|
* the quote). The fee line fades out and stops answering taps until this
|
|
@@ -91,5 +95,5 @@ export interface DepositAmountScreenProps {
|
|
|
91
95
|
* source's limit — answers with a side-to-side shake, a brief warning tint and
|
|
92
96
|
* a haptic. While `disabled`, the input controls themselves are non-interactive.
|
|
93
97
|
*/
|
|
94
|
-
export declare function DepositAmountScreen({ title, brandIcon, accountContext, input, onChangeInput, quickAmounts, currency, currencyPending, limitUsd, minLimitUsd, disabled, fee, feeHighlight, feePending, onPressFee, feeAccessibilityLabel, methodBadge, paymentMethodPickerProps, methodUnavailable, notice, disclosure, disclosurePending, submitLabel, PayButton, canSubmit, onSubmit, renderPending, renderSubmit, amountAccessibilityLabel, backspaceAccessibilityLabel, showAttribution, }: DepositAmountScreenProps): import("react").JSX.Element;
|
|
98
|
+
export declare function DepositAmountScreen({ title, brandIcon, accountContext, input, onChangeInput, quickAmounts, quickAmountsLoading, currency, currencyPending, limitUsd, minLimitUsd, disabled, fee, feeHighlight, feeStruck, feePending, onPressFee, feeAccessibilityLabel, methodBadge, paymentMethodPickerProps, methodUnavailable, notice, disclosure, disclosurePending, submitLabel, PayButton, canSubmit, onSubmit, renderPending, renderSubmit, amountAccessibilityLabel, backspaceAccessibilityLabel, showAttribution, }: DepositAmountScreenProps): import("react").JSX.Element;
|
|
95
99
|
//# sourceMappingURL=DepositAmountScreen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DepositAmountScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/DepositAmountScreen.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,SAAS,EAAuB,MAAM,OAAO,CAAA;AAmB/E,O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gB,EAChB,GAAG,EACH,YAAY,EACZ,SAAS,EACT,UAAkB,EAClB,UAAU,EACV,qBAAqB,EACrB,WAAW,EACX,wBAAwB,EACxB,iBAAyB,EACzB,MAAM,EACN,UAAU,EACV,iBAAyB,EACzB,WAAW,EACX,SAAS,EACT,SAAS,EACT,QAAQ,EACR,aAAa,EACb,YAAY,EACZ,wBAAwB,EACxB,2BAA2B,EAC3B,eAAuB,GACxB,EAAE,wBAAwB,+BAyV1B"}
|
|
@@ -3,16 +3,18 @@ export interface DepositMatchScreenProps {
|
|
|
3
3
|
amount: string;
|
|
4
4
|
/** The fee's rate (`0.5%`); the row reads plain `Fee` without one. */
|
|
5
5
|
feeRate?: string;
|
|
6
|
-
/** The fee
|
|
7
|
-
|
|
6
|
+
/** The fee as priced; unpriced, omitted. */
|
|
7
|
+
fee?: string;
|
|
8
|
+
/** The partner reimburses the fee: it reads `FREE` with `fee` struck through. */
|
|
9
|
+
feeWaived: boolean;
|
|
8
10
|
/** The amount plus its match. */
|
|
9
11
|
totalWithBonus: string;
|
|
10
12
|
/** Where the deposit lands (`You'll receive USDC on Solana`). */
|
|
11
13
|
footnote?: string;
|
|
12
14
|
}
|
|
13
15
|
/**
|
|
14
|
-
* The fee drawer for a deposit the host matches: the
|
|
15
|
-
*
|
|
16
|
+
* The fee drawer for a deposit the host matches: the total carries the bonus,
|
|
17
|
+
* and a subsidized fee reads waived. Presented through `Drawer`, like the fee drawer.
|
|
16
18
|
*/
|
|
17
|
-
export declare function DepositMatchScreen({ amount, feeRate,
|
|
19
|
+
export declare function DepositMatchScreen({ amount, feeRate, fee, feeWaived, totalWithBonus, footnote, }: DepositMatchScreenProps): import("react").JSX.Element;
|
|
18
20
|
//# sourceMappingURL=DepositMatchScreen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DepositMatchScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/DepositMatchScreen.tsx"],"names":[],"mappings":"AA4BA,MAAM,WAAW,uBAAuB;IACtC,gDAAgD;IAChD,MAAM,EAAE,MAAM,CAAA;IACd,sEAAsE;IACtE,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,
|
|
1
|
+
{"version":3,"file":"DepositMatchScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/DepositMatchScreen.tsx"],"names":[],"mappings":"AA4BA,MAAM,WAAW,uBAAuB;IACtC,gDAAgD;IAChD,MAAM,EAAE,MAAM,CAAA;IACd,sEAAsE;IACtE,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,4CAA4C;IAC5C,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,iFAAiF;IACjF,SAAS,EAAE,OAAO,CAAA;IAClB,iCAAiC;IACjC,cAAc,EAAE,MAAM,CAAA;IACtB,iEAAiE;IACjE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,MAAM,EACN,OAAO,EACP,GAAG,EACH,SAAS,EACT,cAAc,EACd,QAAQ,GACT,EAAE,uBAAuB,+BA6HzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FeeDetailsScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/FeeDetailsScreen.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FeeDetailsScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/FeeDetailsScreen.tsx"],"names":[],"mappings":"AA2BA,iDAAiD;AACjD,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAA;IACb;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,2EAA2E;IAC3E,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB;AAED,MAAM,WAAW,qBAAqB;IACpC;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,aAAa,EAAE,CAAA;IACrB,mDAAmD;IACnD,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,OAAO,EACP,IAAI,EACJ,eAAuB,GACxB,EAAE,qBAAqB,+BAwCvB;AAmED,6EAA6E;AAC7E,wBAAgB,UAAU,gCAUzB"}
|
|
@@ -10,6 +10,11 @@ export interface WithdrawAddressScreenProps {
|
|
|
10
10
|
onPaste: () => void;
|
|
11
11
|
/** A clipboard read is out — the Paste action is held down until it lands. */
|
|
12
12
|
isPasting?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Paste through a panel that fills the empty step, instead of pills under
|
|
15
|
+
* the field. See the `enable-omnibus-withdraw-flow` gate.
|
|
16
|
+
*/
|
|
17
|
+
pastePanel?: boolean;
|
|
13
18
|
/** Omit to drop the connected-wallet shortcut. */
|
|
14
19
|
onUseConnected?: () => void;
|
|
15
20
|
/** A reason the address can't be used, past being well-formed. */
|
|
@@ -47,5 +52,5 @@ export interface WithdrawAddressScreenProps {
|
|
|
47
52
|
* Step two of the crypto withdrawal: where the money goes, and what it arrives
|
|
48
53
|
* as. The amount was taken on the step before and is named in the title.
|
|
49
54
|
*/
|
|
50
|
-
export declare function WithdrawAddressScreen({ title, recipient, onChangeRecipient, isAddress, onPaste, isPasting, onUseConnected, errorText, warningText, destinationToken, onPressReceive, usdLabel, tokenLabel, onPressBreakdown, quoteErrorText, canSubmit, isBusy, isSubmitting, onSubmit, executionErrorText, amountErrorText, onEditAmount, onBack, onClose, }: WithdrawAddressScreenProps): import("react").JSX.Element;
|
|
55
|
+
export declare function WithdrawAddressScreen({ title, recipient, onChangeRecipient, isAddress, onPaste, isPasting, pastePanel, onUseConnected, errorText, warningText, destinationToken, onPressReceive, usdLabel, tokenLabel, onPressBreakdown, quoteErrorText, canSubmit, isBusy, isSubmitting, onSubmit, executionErrorText, amountErrorText, onEditAmount, onBack, onClose, }: WithdrawAddressScreenProps): import("react").JSX.Element;
|
|
51
56
|
//# sourceMappingURL=WithdrawAddressScreen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WithdrawAddressScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/WithdrawAddressScreen.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"WithdrawAddressScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/WithdrawAddressScreen.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AA6BnE,MAAM,WAAW,0BAA0B;IACzC,gEAAgE;IAChE,KAAK,EAAE,MAAM,CAAA;IACb,2BAA2B;IAC3B,SAAS,EAAE,MAAM,CAAA;IACjB,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAC1C,2EAA2E;IAC3E,SAAS,EAAE,OAAO,GAAG,SAAS,CAAA;IAC9B,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,8EAA8E;IAC9E,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,kDAAkD;IAClD,cAAc,CAAC,EAAE,MAAM,IAAI,CAAA;IAC3B,kEAAkE;IAClE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,2DAA2D;IAC3D,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,iEAAiE;IACjE,gBAAgB,EAAE,eAAe,GAAG,SAAS,CAAA;IAC7C,cAAc,EAAE,MAAM,IAAI,CAAA;IAC1B;;;OAGG;IACH,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,oEAAoE;IACpE,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;IAC9B,gBAAgB,EAAE,MAAM,IAAI,CAAA;IAC5B,mEAAmE;IACnE,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,SAAS,EAAE,OAAO,CAAA;IAClB,uEAAuE;IACvE,MAAM,EAAE,OAAO,CAAA;IACf,0EAA0E;IAC1E,YAAY,EAAE,OAAO,CAAA;IACrB,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,sDAAsD;IACtD,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,6DAA6D;IAC7D,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAA;IACzB,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,KAAK,EACL,SAAS,EACT,iBAAiB,EACjB,SAAS,EACT,OAAO,EACP,SAAS,EACT,UAAkB,EAClB,cAAc,EACd,SAAS,EACT,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,QAAQ,EACR,UAAU,EACV,gBAAgB,EAChB,cAAc,EACd,SAAS,EACT,MAAM,EACN,YAAY,EACZ,QAAQ,EACR,kBAAkB,EAClB,eAAe,EACf,YAAY,EACZ,MAAM,EACN,OAAO,GACR,EAAE,0BAA0B,+BAuJ5B"}
|
|
@@ -31,6 +31,11 @@ export interface WithdrawAmountScreenProps {
|
|
|
31
31
|
sourceDecimals?: number;
|
|
32
32
|
/** Spendable balance in source-token units, displayed on the source card. */
|
|
33
33
|
balance?: string;
|
|
34
|
+
/**
|
|
35
|
+
* The balance in fiat units, already formatted. Shown on the omnibus
|
|
36
|
+
* layout's "Available balance" card; `undefined` while it is still unknown.
|
|
37
|
+
*/
|
|
38
|
+
balanceFiatLabel?: string;
|
|
34
39
|
/** Pre-resolved source-token amount picked by Use Max. */
|
|
35
40
|
maxAmount?: string;
|
|
36
41
|
/** The amount exceeds the balance or a configured withdrawal ceiling. */
|
|
@@ -57,5 +62,5 @@ export interface WithdrawAmountScreenProps {
|
|
|
57
62
|
* The amount is driven by an in-app numpad rather than the system keyboard, so
|
|
58
63
|
* the sheet never has to move out from under it.
|
|
59
64
|
*/
|
|
60
|
-
export declare function WithdrawAmountScreen({ title, amount, onChangeAmount, input, onChangeInput, inFiat, fiatLabel, displayCurrency, onSwapDenomination, sourceDecimals, balance, maxAmount, isAboveMaximum, statusText, onRetryMaximum, isMaximumLoading, source, onPressSource, errorText, canContinue, onContinue, onBack, onClose, }: WithdrawAmountScreenProps): import("react").JSX.Element;
|
|
65
|
+
export declare function WithdrawAmountScreen({ title, amount, onChangeAmount, input, onChangeInput, inFiat, fiatLabel, displayCurrency, onSwapDenomination, sourceDecimals, balance, balanceFiatLabel, maxAmount, isAboveMaximum, statusText, onRetryMaximum, isMaximumLoading, source, onPressSource, errorText, canContinue, onContinue, onBack, onClose, }: WithdrawAmountScreenProps): import("react").JSX.Element;
|
|
61
66
|
//# sourceMappingURL=WithdrawAmountScreen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WithdrawAmountScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/WithdrawAmountScreen.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"WithdrawAmountScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/WithdrawAmountScreen.tsx"],"names":[],"mappings":"AAgDA,MAAM,WAAW,oBAAoB;IACnC,4DAA4D;IAC5D,KAAK,EAAE,MAAM,CAAA;IACb,uEAAuE;IACvE,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;IACf,mEAAmE;IACnE,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,yBAAyB;IACxC,KAAK,EAAE,MAAM,CAAA;IACb,oDAAoD;IACpD,MAAM,EAAE,MAAM,CAAA;IACd,iEAAiE;IACjE,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;IACxC;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC,+EA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,yBAAyB,+BAwL3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WithdrawCryptoSteps.d.ts","sourceRoot":"","sources":["../../../src/screens/WithdrawCryptoSteps.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,8BAA8B,CAAA;AAKrC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"WithdrawCryptoSteps.d.ts","sourceRoot":"","sources":["../../../src/screens/WithdrawCryptoSteps.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,8BAA8B,CAAA;AAKrC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAQhE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAA;AAWtF;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,MAAM,EACN,SAAS,EACT,OAAO,EACP,GAAG,EACH,mBAAmB,EACnB,oBAA2B,EAC3B,iBAAiB,EACjB,kBAAkB,EAClB,WAAW,GACZ,EAAE;IACD,MAAM,EAAE,oBAAoB,CAAA;IAC5B,SAAS,EAAE,uBAAuB,CAAA;IAClC,OAAO,EAAE,UAAU,GAAG,SAAS,CAAA;IAC/B,GAAG,EAAE,OAAO,CAAA;IACZ;;;;OAIG;IACH,mBAAmB,EAAE,MAAM,CAAA;IAC3B,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B;;;OAGG;IACH,iBAAiB,EAAE,MAAM,CAAA;IACzB,sEAAsE;IACtE,kBAAkB,EAAE,mBAAmB,CAAA;IACvC,WAAW,EAAE,CAAC,MAAM,EAAE;QACpB,oBAAoB,EAAE,oBAAoB,CAAA;QAC1C,WAAW,EAAE,MAAM,CAAA;QACnB,2EAA2E;QAC3E,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;QAC5B,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;KAC/B,KAAK,IAAI,CAAA;CACX,+BA0PA"}
|
|
@@ -12,6 +12,8 @@ export interface LockedDepositQuoteContext {
|
|
|
12
12
|
target: {
|
|
13
13
|
chainId: string;
|
|
14
14
|
tokenAddress: Address;
|
|
15
|
+
symbol?: string;
|
|
16
|
+
decimals?: number;
|
|
15
17
|
} | undefined;
|
|
16
18
|
/** Target base units the deposit must deliver (`clientMetadata.authorizedAmountBaseUnit`). */
|
|
17
19
|
capBaseUnit: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLockedTokenAmount.d.ts","sourceRoot":"","sources":["../../../../src/transfer/hooks/useLockedTokenAmount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAsB,MAAM,kBAAkB,CAAA;AAItE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AAGnC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAA;AAIxE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;
|
|
1
|
+
{"version":3,"file":"useLockedTokenAmount.d.ts","sourceRoot":"","sources":["../../../../src/transfer/hooks/useLockedTokenAmount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAsB,MAAM,kBAAkB,CAAA;AAItE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AAGnC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAA;AAIxE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AAa1D,4EAA4E;AAC5E,MAAM,WAAW,yBAAyB;IACxC,MAAM,EAAE,MAAM,CAAA;IACd,0EAA0E;IAC1E,cAAc,EAAE,UAAU,GAAG,SAAS,CAAA;IACtC,mDAAmD;IACnD,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAA;IACpC,MAAM,EACF;QACE,OAAO,EAAE,MAAM,CAAA;QACf,YAAY,EAAE,OAAO,CAAA;QACrB,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,QAAQ,CAAC,EAAE,MAAM,CAAA;KAClB,GACD,SAAS,CAAA;IACb,8FAA8F;IAC9F,WAAW,EAAE,MAAM,GAAG,SAAS,CAAA;IAC/B,2FAA2F;IAC3F,qBAAqB,CAAC,EAAE,OAAO,CAAA;CAChC;AAiGD,wBAAgB,oBAAoB,CAClC,aAAa,EAAE,oBAAoB,GAAG,SAAS,EAC/C,KAAK,EAAE,kBAAkB,GAAG,SAAS,EACrC,OAAO,EAAE,OAAO,EAChB,YAAY,CAAC,EAAE,yBAAyB;;;;;;EAqNzC"}
|
|
@@ -31,4 +31,17 @@ export interface QuoteScaledLockedTokenAmountInput {
|
|
|
31
31
|
* buffer. Undefined when the quote or cap cannot anchor the scale.
|
|
32
32
|
*/
|
|
33
33
|
export declare function quoteScaledLockedTokenAmount({ estimate, quotedToAmountBaseUnit, capBaseUnit, bufferBps, decimals, }: QuoteScaledLockedTokenAmountInput): string | undefined;
|
|
34
|
+
export interface QuoteAsset {
|
|
35
|
+
chainId: number | string;
|
|
36
|
+
address: string;
|
|
37
|
+
symbol?: string;
|
|
38
|
+
decimals?: number;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* True when a quoted route returns at least what was sent in the same asset.
|
|
42
|
+
* - These routes are fee-sponsored with no swap, so a buffer only over-sends.
|
|
43
|
+
* - Cross-chain matches need an exact symbol (`USDC` is not `USDC.e`) and known
|
|
44
|
+
* decimals, since they differ by chain (USDC is 18 on BNB Chain).
|
|
45
|
+
*/
|
|
46
|
+
export declare function isFeelessSameAssetQuote(from: QuoteAsset, to: QuoteAsset, sentBaseUnit: string | undefined, quotedBaseUnit: string | undefined): boolean;
|
|
34
47
|
//# sourceMappingURL=lockedTokenAmount.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lockedTokenAmount.d.ts","sourceRoot":"","sources":["../../../src/transfer/lockedTokenAmount.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAErE,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAEhE;AAED,wBAAgB,eAAe,CAC7B,aAAa,EAAE,oBAAoB,EACnC,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GACrC,MAAM,GAAG,SAAS,CAMpB;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,aAAa,EAAE,oBAAoB,EACnC,aAAa,EAAE,MAAM,EACrB,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EACtC,QAAQ,SAAI,GACX,MAAM,GAAG,SAAS,CAQpB;AAED,2EAA2E;AAC3E,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAE9D;AAED,eAAO,MAAM,iCAAiC,KAAK,CAAA;AAGnD,uFAAuF;AACvF,wBAAgB,6BAA6B,CAAC,UAAU,EAAE,OAAO,GAAG,MAAM,CAOzE;AAwBD;;;GAGG;AACH,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,GACf,MAAM,GAAG,SAAS,CAapB;AAED,MAAM,WAAW,iCAAiC;IAChD,+CAA+C;IAC/C,QAAQ,EAAE,MAAM,CAAA;IAChB,2DAA2D;IAC3D,sBAAsB,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1C,kDAAkD;IAClD,WAAW,EAAE,MAAM,GAAG,SAAS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ChB,2DAA2D;IAC3D,sBAAsB,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1C,kDAAkD;IAClD,WAAW,EAAE,MAAM,GAAG,SAAS,CAAA;IAC/B,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED;;;GAGG;AACH,wBAAgB,4BAA4B,CAAC,EAC3C,QAAQ,EACR,sBAAsB,EACtB,WAAW,EACX,SAAS,EACT,QAAQ,GACT,EAAE,iCAAiC,GAAG,MAAM,GAAG,SAAS,CAmBxD;AAED,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,MAAM,GAAG,MAAM,CAAA;IACxB,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,UAAU,EAChB,EAAE,EAAE,UAAU,EACd,YAAY,EAAE,MAAM,GAAG,SAAS,EAChC,cAAc,EAAE,MAAM,GAAG,SAAS,GACjC,OAAO,CAwBT"}
|
|
@@ -33,9 +33,10 @@ export declare function formatFiat(value: number, currency: string): string;
|
|
|
33
33
|
/**
|
|
34
34
|
* `2, 'USD'` → `$2`, `2.5, 'USD'` → `$2.50`.
|
|
35
35
|
*
|
|
36
|
-
* For the deposit limit disclaimers
|
|
37
|
-
* states it ("the minimum for this purchase is
|
|
38
|
-
* never has to think about are noise. Amounts they
|
|
36
|
+
* For the deposit limit disclaimers and the withdrawal title: a
|
|
37
|
+
* threshold reads the way the rail states it ("the minimum for this purchase is
|
|
38
|
+
* 2 USD"), and cents the user never has to think about are noise. Amounts they
|
|
39
|
+
* pay keep {@link formatFiat}.
|
|
39
40
|
*/
|
|
40
41
|
export declare function formatFiatWhole(value: number, currency: string): string;
|
|
41
42
|
//# sourceMappingURL=formatAmount.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatAmount.d.ts","sourceRoot":"","sources":["../../../src/utils/formatAmount.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAIrD;AAKD,eAAO,MAAM,gBAAgB,IAAI,CAAA;AAIjC;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAOlD;AAED;;;GAGG;AACH,eAAO,MAAM,cAAc,IAAI,CAAA;AAE/B;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,MAAM,EACd,WAAW,GAAE,MAAuB,GACnC,MAAM,CAKR;AAED,8EAA8E;AAC9E,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAE/C;AAcD,2EAA2E;AAC3E,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAEvD;AAOD,uEAAuE;AACvE,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAElE;AAED
|
|
1
|
+
{"version":3,"file":"formatAmount.d.ts","sourceRoot":"","sources":["../../../src/utils/formatAmount.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAIrD;AAKD,eAAO,MAAM,gBAAgB,IAAI,CAAA;AAIjC;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAOlD;AAED;;;GAGG;AACH,eAAO,MAAM,cAAc,IAAI,CAAA;AAE/B;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,MAAM,EACd,WAAW,GAAE,MAAuB,GACnC,MAAM,CAKR;AAED,8EAA8E;AAC9E,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAE/C;AAcD,2EAA2E;AAC3E,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAEvD;AAOD,uEAAuE;AACvE,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAElE;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAGvE"}
|
|
@@ -31,6 +31,7 @@ export declare function useCryptoWithdrawalForm({ config, quoteInputFeeTokens, q
|
|
|
31
31
|
sourceLabel: string;
|
|
32
32
|
sourceDecimals: number | undefined;
|
|
33
33
|
balance: string | undefined;
|
|
34
|
+
balanceFiat: number | undefined;
|
|
34
35
|
maxAmount: string | undefined;
|
|
35
36
|
retryMaximum: (() => void) | undefined;
|
|
36
37
|
isMaximumLoading: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCryptoWithdrawalForm.d.ts","sourceRoot":"","sources":["../../../src/withdrawal/useCryptoWithdrawalForm.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,0BAA0B,EAIhC,MAAM,sBAAsB,CAAA;AAK7B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAA;AAexE,OAAO,EAAE,KAAK,kBAAkB,EAAyB,MAAM,cAAc,CAAA;AAqB7E,2DAA2D;AAC3D,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAE7E;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,MAAM,EACN,mBAAmB,EACnB,oBAA2B,GAC5B,EAAE;IACD,MAAM,EAAE,oBAAoB,CAAA;IAC5B;;;OAGG;IACH,mBAAmB,EAAE,MAAM,CAAA;IAC3B,uDAAuD;IACvD,oBAAoB,CAAC,EAAE,OAAO,CAAA;CAC/B
|
|
1
|
+
{"version":3,"file":"useCryptoWithdrawalForm.d.ts","sourceRoot":"","sources":["../../../src/withdrawal/useCryptoWithdrawalForm.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,0BAA0B,EAIhC,MAAM,sBAAsB,CAAA;AAK7B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAA;AAexE,OAAO,EAAE,KAAK,kBAAkB,EAAyB,MAAM,cAAc,CAAA;AAqB7E,2DAA2D;AAC3D,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAE7E;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,MAAM,EACN,mBAAmB,EACnB,oBAA2B,GAC5B,EAAE;IACD,MAAM,EAAE,oBAAoB,CAAA;IAC5B;;;OAGG;IACH,mBAAmB,EAAE,MAAM,CAAA;IAC3B,uDAAuD;IACvD,oBAAoB,CAAC,EAAE,OAAO,CAAA;CAC/B;;;;;;;;;;;;;;;IAqMG;;;;OAIG;0BACmB,MAAM;;;;;;;;;IA0B5B;;;;OAIG;;IAGH,qDAAqD;;IAErD,qEAAqE;;IAIrE,kFAAkF;;IAElF;;;;OAIG;;;;IAWH,6EAA6E;;IAE7E,6EAA6E;;;;;;;IAQ7E;;;OAGG;;;;;;;;;;;;EA0BN"}
|
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
import type { WithdrawalFlowConfig, WithdrawalSourceTokenParams } from '../flow/withdrawalFlowConfig';
|
|
2
2
|
type BalanceCallback = NonNullable<WithdrawalFlowConfig['withdrawalSourceTokenBalance']>;
|
|
3
|
+
interface SourceTokenBalance {
|
|
4
|
+
/** Zero while loading or after a failed read; undefined with no callback. */
|
|
5
|
+
value: string | undefined;
|
|
6
|
+
/** True until the host's promise lands, so zero here is not yet a balance. */
|
|
7
|
+
isLoading: boolean;
|
|
8
|
+
/** Set when reading or validating the balance failed. */
|
|
9
|
+
error: Error | undefined;
|
|
10
|
+
}
|
|
3
11
|
/**
|
|
4
12
|
* The host's source balance, whichever way it answers. A plain value is read
|
|
5
13
|
* on render as before. A promise is awaited once per source token and the
|
|
6
14
|
* balance reads as zero until it lands: the form must not offer a Max the
|
|
7
|
-
* host has not confirmed
|
|
15
|
+
* host has not confirmed; `isLoading` and `error` tell that zero apart from a
|
|
16
|
+
* real one. `value` is undefined only when the host gave no callback.
|
|
8
17
|
*/
|
|
9
|
-
export declare function useWithdrawalSourceTokenBalance(callback: BalanceCallback | undefined, params: WithdrawalSourceTokenParams):
|
|
18
|
+
export declare function useWithdrawalSourceTokenBalance(callback: BalanceCallback | undefined, params: WithdrawalSourceTokenParams): SourceTokenBalance;
|
|
10
19
|
export {};
|
|
11
20
|
//# sourceMappingURL=useWithdrawalSourceTokenBalance.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useWithdrawalSourceTokenBalance.d.ts","sourceRoot":"","sources":["../../../src/withdrawal/useWithdrawalSourceTokenBalance.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,oBAAoB,EACpB,2BAA2B,EAC5B,MAAM,8BAA8B,CAAA;AAGrC,KAAK,eAAe,GAAG,WAAW,CAChC,oBAAoB,CAAC,8BAA8B,CAAC,CACrD,CAAA;
|
|
1
|
+
{"version":3,"file":"useWithdrawalSourceTokenBalance.d.ts","sourceRoot":"","sources":["../../../src/withdrawal/useWithdrawalSourceTokenBalance.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,oBAAoB,EACpB,2BAA2B,EAC5B,MAAM,8BAA8B,CAAA;AAGrC,KAAK,eAAe,GAAG,WAAW,CAChC,oBAAoB,CAAC,8BAA8B,CAAC,CACrD,CAAA;AAUD,UAAU,kBAAkB;IAC1B,6EAA6E;IAC7E,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB,8EAA8E;IAC9E,SAAS,EAAE,OAAO,CAAA;IAClB,yDAAyD;IACzD,KAAK,EAAE,KAAK,GAAG,SAAS,CAAA;CACzB;AAUD;;;;;;GAMG;AACH,wBAAgB,+BAA+B,CAC7C,QAAQ,EAAE,eAAe,GAAG,SAAS,EACrC,MAAM,EAAE,2BAA2B,GAClC,kBAAkB,CA0EpB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect-rn",
|
|
3
|
-
"version": "9.1.
|
|
3
|
+
"version": "9.1.2",
|
|
4
4
|
"description": "React Native bindings for @funkit/connect. Re-exports the headless @funkit/connect-core logic; the RN platform halves (Restyle theme, WebView Swapped transport, Transfer/Swapped screens, logging) land in later releases.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -53,9 +53,9 @@
|
|
|
53
53
|
"iso-3166-2": "1.0.0",
|
|
54
54
|
"libphonenumber-js": "1.13.6",
|
|
55
55
|
"react-i18next": "12.3.1",
|
|
56
|
-
"@funkit/api-base": "
|
|
56
|
+
"@funkit/api-base": "9.0.0",
|
|
57
57
|
"@funkit/chains": "2.5.0",
|
|
58
|
-
"@funkit/connect-core": "
|
|
58
|
+
"@funkit/connect-core": "9.1.0",
|
|
59
59
|
"@funkit/utils": "5.0.2"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../src/preview/flowPreview.tsx", "../src/fiat/legalLinks.ts", "../src/fiat/formLayout.ts", "../src/fiat/keyboardReturnKey.ts", "../src/fiat/postalCodeCountries.ts"],
|
|
4
|
-
"sourcesContent": ["import type { FiatStepResponse } from '@funkit/connect-core'\nimport {\n type Dispatch,\n type ReactNode,\n type SetStateAction,\n createContext,\n useContext,\n useEffect,\n useMemo,\n useState,\n} from 'react'\n\nimport type { KycCompletion } from '../fiat/useKycCompletion'\nimport type { KycSection } from '../fiat/formLayout'\nimport type { FlowScreen } from '../flow/FunkitFlowProvider'\n\n/**\n * Where the fiat session opens. Each field seeds one piece of state a user would otherwise reach\n * by tapping through, so any screen of the rail is one seed away.\n */\nexport interface FiatPreviewSeed {\n /** The step response the session opens on, as if the backend had just sent it. */\n step?: FiatStepResponse\n /** The amount entry's value. */\n amount?: string\n /** Presses the entry CTA once it is ready: opens the contact round, or the KYC options card. */\n pressEntry?: boolean\n /** An identity round's consent intro, or its form open at a section. */\n identity?: { page: 'consent' } | { page: 'form'; section?: KycSection }\n /** Past the document-capture intro, onto the provider's own surface. */\n documentStarted?: boolean\n /** The provider asked for its capture again after the buyer finished one. */\n captureReissued?: boolean\n /** The acknowledgement a finished identity form shows before its verdict. */\n kycCompletion?: KycCompletion\n /** A provider surface that failed, as the adapter reports it. */\n surfaceFailure?: { code: string; detail?: string }\n /** Submits the seeded step's CTA with this id on open \u2014 how a failed send is reached. */\n submitOnOpen?: string\n /** Turns the deposit-match preview on, as the host's internal flag does. */\n depositMatch?: boolean\n}\n\nexport interface DepositPreviewSeed {\n /** The screen the flow opens on; defaults to the root `beginDeposit` picks. Transfer opens above it. */\n screen?: Extract<FlowScreen, 'depositAmount' | 'addMoney' | 'transfer'>\n fiat?: FiatPreviewSeed\n /** The deposit chain, by id, as if picked from the Crypto row \u2014 Transfer needs one. */\n chainId?: string\n}\n\ntype WithdrawalStackScreen = Extract<\n FlowScreen,\n | 'withdrawMethod'\n | 'withdrawAmount'\n | 'withdrawAddress'\n | 'withdrawReceiveToken'\n>\n\n/** The submitted withdrawal the completion screen reports on. */\nexport interface WithdrawalPreviewCompletion {\n txHash: `0x${string}`\n amountLabel: string\n usdLabel?: string\n tokenLabel?: string\n}\n\ninterface WithdrawalPreviewFields {\n /** The payout method picked on the list, by `WithdrawalMethodOption.id`. */\n methodId?: string\n amount?: string\n recipient?: string\n /** The retryable error that replaces every screen after a failed execution. */\n executionError?: boolean\n}\n\n/**\n * The withdrawal flow's opening state. The type rules out the stacks that render nothing: an\n * empty one, and a completion screen with no withdrawal to report.\n */\nexport type WithdrawalPreviewSeed = WithdrawalPreviewFields &\n (\n | {\n /** The screens on the stack, root first; defaults to the payout-method list. */\n stack?: [WithdrawalStackScreen, ...WithdrawalStackScreen[]]\n complete?: undefined\n }\n | { stack: ['withdrawComplete']; complete: WithdrawalPreviewCompletion }\n )\n\n/**\n * A state to open the SDK's flow at, for hosted previews and QA builds.\n * - Consumed by the next matching `begin*` only; closing and reopening starts clean.\n * - Never set in production: every read falls back to the flow's own start.\n */\nexport interface FlowPreviewSeed {\n deposit?: DepositPreviewSeed\n withdrawal?: WithdrawalPreviewSeed\n}\n\nconst HostPreviewContext = createContext<FlowPreviewSeed | undefined>(undefined)\n\n/**\n * Opens the next `beginDeposit` / `beginWithdrawal` below it at `seed`.\n * - Mount it above `<FunkitProvider>`.\n * - Memoize `seed`: a new object is a new preview, so one built inline reopens every flow seeded.\n */\nexport function FunkitFlowPreview({\n seed,\n children,\n}: {\n seed: FlowPreviewSeed | undefined\n children: ReactNode\n}) {\n return (\n <HostPreviewContext.Provider value={seed}>\n {children}\n </HostPreviewContext.Provider>\n )\n}\n\n/** The seed a host mounted; read by the flow provider when a flow opens. */\nexport function useHostFlowPreview(): FlowPreviewSeed | undefined {\n return useContext(HostPreviewContext)\n}\n\n/** The seeds of the flow session a host preview opened; empty everywhere else. */\nexport interface ActivePreview {\n deposit?: DepositPreviewSeed\n withdrawal?: WithdrawalPreviewSeed\n}\n\nconst NO_PREVIEW: ActivePreview = {}\nconst ActivePreviewContext = createContext<ActivePreview>(NO_PREVIEW)\n\n/** Scopes a consumed seed to the one flow session it opened. */\nexport function ActiveFlowPreview({\n deposit,\n withdrawal,\n children,\n}: {\n deposit?: DepositPreviewSeed\n withdrawal?: WithdrawalPreviewSeed\n children: ReactNode\n}) {\n // The value names the session: readers are tracked against it.\n const preview = useMemo(\n () =>\n deposit === undefined && withdrawal === undefined\n ? NO_PREVIEW\n : { deposit, withdrawal },\n [deposit, withdrawal],\n )\n return (\n <ActivePreviewContext.Provider value={preview}>\n {children}\n </ActivePreviewContext.Provider>\n )\n}\n\n/** Reads one seed value out of the session's preview. */\nexport type PreviewPick<T> = (preview: ActivePreview) => T | undefined\n\n/**\n * Every seed value a flow reads, one reader each. Readers are tracked by identity, so each is\n * declared once here rather than inline where it is read.\n */\nexport const SEED = {\n fiatAmount: (p) => p.deposit?.fiat?.amount,\n fiatStep: (p) => p.deposit?.fiat?.step,\n fiatPressEntry: (p) => p.deposit?.fiat?.pressEntry,\n fiatSubmitOnOpen: (p) => p.deposit?.fiat?.submitOnOpen,\n fiatSurfaceFailure: (p) => p.deposit?.fiat?.surfaceFailure,\n fiatDepositMatch: (p) => p.deposit?.fiat?.depositMatch,\n kycCompletion: (p) => p.deposit?.fiat?.kycCompletion,\n identityPage: (p) => p.deposit?.fiat?.identity?.page,\n identitySection: (p) => {\n const identity = p.deposit?.fiat?.identity\n return identity?.page === 'form' ? identity.section : undefined\n },\n documentStarted: (p) => p.deposit?.fiat?.documentStarted,\n fiatCaptureReissued: (p) => p.deposit?.fiat?.captureReissued,\n depositChainId: (p) => p.deposit?.chainId,\n withdrawalMethodId: (p) => p.withdrawal?.methodId,\n withdrawalAmount: (p) => p.withdrawal?.amount,\n withdrawalRecipient: (p) => p.withdrawal?.recipient,\n withdrawalComplete: (p) => p.withdrawal?.complete,\n withdrawalExecutionError: (p) => p.withdrawal?.executionError,\n} satisfies Record<string, PreviewPick<unknown>>\n\nconst readers = new WeakMap<ActivePreview, Set<PreviewPick<unknown>>>()\n\n/**\n * The seed value for the first mount that reads it; `undefined` for every mount after.\n * - A later mount of the same reader is the user moving on (a new round, a return to the entry),\n * so a seed never re-applies after the state it describes.\n * - Marked read on commit, so Strict Mode's double render still sees it.\n */\nexport function useSeed<T>(pick: PreviewPick<T>): T | undefined {\n const preview = useContext(ActivePreviewContext)\n const [seed] = useState(() =>\n readers.get(preview)?.has(pick) === true ? undefined : pick(preview),\n )\n useEffect(() => {\n if (preview === NO_PREVIEW) {\n return\n }\n const read = readers.get(preview) ?? new Set()\n read.add(pick)\n readers.set(preview, read)\n }, [preview, pick])\n return seed\n}\n\n/**\n * `useState` whose initial value a host preview may seed; production always starts at `initial`.\n * `fromSeed` shapes a seed value into the state when the two differ.\n */\nexport function useSeededState<T>(\n pick: PreviewPick<T>,\n initial: T,\n): [T, Dispatch<SetStateAction<T>>]\nexport function useSeededState<S, T>(\n pick: PreviewPick<S>,\n initial: T,\n fromSeed: (seed: S) => T,\n): [T, Dispatch<SetStateAction<T>>]\nexport function useSeededState<S, T>(\n pick: PreviewPick<S>,\n initial: T,\n fromSeed?: (seed: S) => T,\n): [T, Dispatch<SetStateAction<T>>] {\n const seed = useSeed(pick)\n return useState<T>(() => {\n if (seed === undefined) {\n return initial\n }\n return fromSeed === undefined ? (seed as unknown as T) : fromSeed(seed)\n })\n}\n", "import type { FiatProvider, KYCProvider } from '@funkit/connect-core'\n\n/**\n * The documents the identity step points at.\n *\n * Held together because two screens link them, and a provider change is one\n * edit rather than a hunt through the copy.\n */\n\n/** Fun's own policy, linked from the consent the buyer has to give. */\nexport const PRIVACY_POLICY_URL = 'https://fun.xyz/privacy'\n\n/**\n * Bumped whenever the consent copy changes, and logged and recorded with every\n * consent, so a record can be matched to the words the buyer actually read.\n * The backend must publish the same revision (`FUN_KYC_CONSENT_TERMS`).\n */\nexport const CONSENT_COPY_VERSION = 'fun-kyc-consent-2026-09-11'\n\n/** Persona's policy, linked from MoonPay's sharing disclosure (`MOONPAY_SHARING_CONSENT_VERSION`). */\nexport const PERSONA_PRIVACY_POLICY_URL =\n 'https://withpersona.com/legal/privacy-policy'\n\n/**\n * The terms of the provider that settles the order, keyed by the provider the\n * round names.\n *\n * Only verified URLs belong here. A provider absent from the map is named in\n * the copy without a link and logged (`kyc_provider_terms_url_missing`) \u2014 it\n * is never guessed, and never falls back to another provider's terms.\n */\nconst PROVIDER_TERMS_URLS: Partial<Record<FiatProvider, string>> = {\n BANXA: 'https://banxa.com/terms-of-use/',\n}\n\n/** How each provider writes its own name; the enum is upper-case. */\nconst PROVIDER_NAMES: Partial<Record<FiatProvider, string>> = {\n BANXA: 'Banxa',\n TRANSAK: 'Transak',\n}\n\n/** The identity vendors, which settle no orders and so are kept apart. */\nconst KYC_PROVIDER_NAMES: Partial<Record<KYCProvider, string>> = {\n SUMSUB: 'Sumsub',\n}\n\n/** Title-cases an upper-case enum member for a provider with no name on record. */\nconst titleCase = (value: string) =>\n value.charAt(0) + value.slice(1).toLowerCase()\n\n/** The provider's terms, or `undefined` when none is on record for it. */\nexport function providerTermsUrl(\n provider: FiatProvider | undefined,\n): string | undefined {\n return provider === undefined ? undefined : PROVIDER_TERMS_URLS[provider]\n}\n\n/**\n * The provider's name as the copy should print it. `fallback` is what a\n * screen drawn with no round to name one says instead.\n */\nexport function providerDisplayName(\n provider: FiatProvider | undefined,\n fallback: string,\n): string {\n if (provider === undefined) {\n return fallback\n }\n return PROVIDER_NAMES[provider] ?? titleCase(provider)\n}\n\n/**\n * The identity vendor's name as the copy should print it. Separate from the\n * settling provider: the two enums name different things and never mix.\n */\nexport function kycProviderDisplayName(\n provider: KYCProvider | undefined,\n fallback: string,\n): string {\n if (provider === undefined) {\n return fallback\n }\n return KYC_PROVIDER_NAMES[provider] ?? titleCase(provider)\n}\n", "import type { FormField, KycFieldId } from '@funkit/connect-core'\nimport { isValueField } from '@funkit/connect-core'\nimport { Platform, type TextInputProps } from 'react-native'\n\nimport { PADS_WITHOUT_RETURN_KEY } from './keyboardReturnKey'\nimport { type PostalCodeForm, postalCodeForm } from './postalCodeCountries'\n\n/**\n * The pages the US form is drawn as, in the order the design steps them.\n *\n * Figma \"EDIT: KYC Enhancements\": 1508:2616 (name), 1844:17471 (date of\n * birth), 1631:7256 (address), 1631:7883 (SSN). `DETAILS` is not a frame \u2014 it\n * is where a field the design never drew goes, so a form the server words its\n * own way still renders.\n */\nexport type KycSection =\n | 'NAME'\n | 'DOB'\n | 'NATIONALITY'\n | 'COUNTRY'\n | 'ADDRESS'\n | 'SSN'\n | 'PHONE'\n | 'OCCUPATION'\n | 'EMPLOYMENT'\n | 'PURPOSE'\n | 'SOURCE_OF_WEALTH'\n | 'INCOME'\n | 'NET_WORTH'\n | 'ACTIVITY'\n | 'DETAILS'\n\nexport interface KycSectionPage {\n section: KycSection\n /** Drawn as one card with a rule between rows, rather than loose boxes. */\n grouped: boolean\n /** Fields sharing a row sit side by side, as the design pairs them. */\n rows: FormField[][]\n}\n\n/**\n * The questionnaire answers this build draws a page for. The contract types a\n * questionnaire id as a template; any other lands in `DETAILS`.\n */\nexport const GROSS_ANNUAL_INCOME =\n 'QUESTIONNAIRE_RESPONSE:customerDueDiligence:grossAnnualIncome'\nexport const EXPECTED_AMOUNT_PER_MONTH =\n 'QUESTIONNAIRE_RESPONSE:customerDueDiligence:expectedTransactionAmountPerMonth'\nexport const TRANSACTIONS_PER_MONTH =\n 'QUESTIONNAIRE_RESPONSE:customerDueDiligence:transactionFrequencyPerMonth'\nexport const NET_WORTH = 'QUESTIONNAIRE_RESPONSE:enhancedDueDiligence:netWorth'\n\n/**\n * - `FormField` has no currency key, so a figure's reporting currency rides its\n * label as a trailing \" (XXX)\".\n * - Any other label names no currency.\n */\nconst LABELLED_CURRENCY = / \\(([A-Z]{3})\\)$/\n\nexport function fieldCurrency(field: FormField): string | undefined {\n return LABELLED_CURRENCY.exec(field.labelFallback)?.[1]\n}\n\n/** The label without its currency, for a field whose caption already names it. */\nexport function withoutLabelledCurrency(field: FormField): FormField {\n return {\n ...field,\n labelFallback: field.labelFallback.replace(LABELLED_CURRENCY, ''),\n }\n}\n\n/**\n * Which page a field belongs to, by id.\n *\n * The contract closes the id set, so these are the canonical names and there\n * is no second spelling to carry. An id with no page here lands in `DETAILS`\n * rather than being refused: the server owns the list, and a form is not\n * undrawable just because it asks for something the frames do not group.\n */\nconst SECTION_BY_ID: Readonly<Partial<Record<KycFieldId, KycSection>>> = {\n // 1508:2616 \u2014 \"First name\", \"M.I.\", \"Last Name\".\n LEGAL_FIRST_NAME: 'NAME',\n LEGAL_MIDDLE_NAME: 'NAME',\n LEGAL_LAST_NAME: 'NAME',\n // 1844:17471 \u2014 its own page, asked for on its own over the date picker.\n DATE_OF_BIRTH: 'DOB',\n NATIONALITY: 'NATIONALITY',\n // 1631:7256 \u2014 \"Address\", \"Apartment, suite, etc.\", \"City\", \"State\", \"ZIP code\".\n RESIDENTIAL_ADDRESS_LINE_1: 'ADDRESS',\n RESIDENTIAL_ADDRESS_LINE_2: 'ADDRESS',\n RESIDENTIAL_ADDRESS_CITY: 'ADDRESS',\n RESIDENTIAL_ADDRESS_REGION: 'ADDRESS',\n RESIDENTIAL_ADDRESS_POSTAL_CODE: 'ADDRESS',\n RESIDENTIAL_ADDRESS_COUNTRY: 'COUNTRY',\n // 1631:7883 \u2014 \"SSN\".\n TAX_IDENTIFIER: 'SSN',\n TAX_RESIDENCE_COUNTRY: 'COUNTRY',\n OCCUPATION_TITLE: 'OCCUPATION',\n OCCUPATION_INDUSTRY: 'OCCUPATION',\n PURPOSE_OF_TRANSACTION: 'PURPOSE',\n PURPOSE_OF_SERVICE: 'PURPOSE',\n // MoonPay's customer due diligence round, asked after the SSN.\n PHONE_NUMBER: 'PHONE',\n EMPLOYMENT_STATUS: 'EMPLOYMENT',\n SOURCE_OF_WEALTH_DECLARATION: 'SOURCE_OF_WEALTH',\n [GROSS_ANNUAL_INCOME]: 'INCOME',\n [EXPECTED_AMOUNT_PER_MONTH]: 'ACTIVITY',\n [TRANSACTIONS_PER_MONTH]: 'ACTIVITY',\n [NET_WORTH]: 'NET_WORTH',\n}\n\n/**\n * The keyboard a typed field raises. The SSN page is drawn over a number pad\n * (1631:7883) and the due-diligence figures over the pads that fit them;\n * every other page in the form is drawn over letters.\n */\nconst KEYBOARD_BY_ID: Readonly<\n Partial<Record<KycFieldId, TextInputProps['keyboardType']>>\n> = {\n PHONE_NUMBER: 'phone-pad',\n [GROSS_ANNUAL_INCOME]: 'decimal-pad',\n [EXPECTED_AMOUNT_PER_MONTH]: 'decimal-pad',\n [TRANSACTIONS_PER_MONTH]: 'number-pad',\n [NET_WORTH]: 'decimal-pad',\n}\n\n/**\n * Field types a page can draw. A date and a country are typed into the same\n * filled box as any other answer; a hosted step is an errand the user runs\n * elsewhere and a document streams to an endpoint this build has not\n * installed, so neither has a box to draw.\n */\nconst DRAWN_TYPES = new Set(['TEXT', 'SELECT', 'DATE', 'COUNTRY'])\n\n/** One card ruled between its rows (1631:7256, \"address\"). */\nconst GROUPED_SECTIONS = new Set<KycSection>(['ADDRESS'])\n\n/**\n * The order 1508:2616 \u2192 1844:17471 \u2192 1631:7256 \u2192 1631:7883 walks, anything\n * else trailing.\n */\nconst SECTION_ORDER: readonly KycSection[] = [\n 'NAME',\n 'DOB',\n 'NATIONALITY',\n 'COUNTRY',\n 'ADDRESS',\n 'SSN',\n 'PHONE',\n 'OCCUPATION',\n 'EMPLOYMENT',\n 'PURPOSE',\n 'SOURCE_OF_WEALTH',\n 'INCOME',\n 'NET_WORTH',\n 'ACTIVITY',\n 'DETAILS',\n]\n\n/**\n * The page's field a date picker can answer, when that is the whole page.\n *\n * A picker takes the keyboard's slot, so it can only be offered on a page\n * with nothing else to type: a date beside two names would leave one of the\n * two controls covering the other. Anywhere else the date is typed.\n */\nconst IDENTITY_SECTIONS: ReadonlySet<KycSection> = new Set<KycSection>([\n 'NAME',\n 'DOB',\n 'NATIONALITY',\n 'COUNTRY',\n 'ADDRESS',\n 'SSN',\n])\n\n/**\n * The server owns the field list, so an id this build does not know is not\n * identity: only the frames that collect who someone is qualify.\n */\nexport function isIdentityField(field: FormField): boolean {\n const section = SECTION_BY_ID[field.id]\n return section !== undefined && IDENTITY_SECTIONS.has(section)\n}\n\n/**\n * The pages that draw their answers on the page rather than behind a chooser\n * (2475:8992).\n *\n * Named, not inferred from the field's type: `DETAILS` also collects a\n * `SELECT`, but it holds whatever the server asks for that no frame drew, and\n * a list of unknown length is what the chooser's sheet is for.\n */\nconst INLINE_CHOICE_SECTIONS: ReadonlySet<KycSection> = new Set<KycSection>([\n 'OCCUPATION',\n 'EMPLOYMENT',\n 'PURPOSE',\n 'SOURCE_OF_WEALTH',\n])\n\nexport function isInlineChoiceSection(section: KycSection): boolean {\n return INLINE_CHOICE_SECTIONS.has(section)\n}\n\nexport function pickedDateField(page: KycSectionPage): FormField | undefined {\n const fields = page.rows.flat()\n const only = fields.length === 1 ? fields[0] : undefined\n return only?.type === 'DATE' ? only : undefined\n}\n\n/**\n * Whether the field is typed into, and so takes a turn in the return-key\n * chain. A choice is not.\n */\nexport function isFocusableField(field: FormField): boolean {\n return field.type === 'TEXT' || field.type === 'DATE'\n}\n\n/** Pages whose keyboards read \"next\" on the field that tries the page too (1950:2055, 1951:9265). */\nconst NEXT_TO_TRY_SECTIONS: ReadonlySet<KycSection> = new Set<KycSection>([\n 'NAME',\n 'ADDRESS',\n])\n\nexport interface ReturnHop {\n label: 'next' | 'done'\n /** Absent where the return key tries the page instead. */\n to?: FormField\n}\n\n/**\n * Where a typed field's return key goes: the next required typed field.\n *\n * - An optional line is stepped over (2334:7164) but still hands on when the\n * user taps into it.\n */\nexport function returnHop(\n section: KycSection,\n typedFields: readonly FormField[],\n fieldId: string,\n): ReturnHop | undefined {\n const at = typedFields.findIndex((field) => field.id === fieldId)\n if (at < 0) {\n return undefined\n }\n const to = typedFields.slice(at + 1).find((field) => field.required)\n if (to !== undefined) {\n return { label: 'next', to }\n }\n return { label: NEXT_TO_TRY_SECTIONS.has(section) ? 'next' : 'done' }\n}\n\n/**\n * - Digits alone take the number pad, whose missing return key the page\n * answers with Continue (`isDigitsField`).\n * - A hyphen or space needs iOS's digits-first keyboard, which can type it;\n * Android has none, so it keeps letters.\n */\nconst POSTAL_CODE_KEYBOARD: Readonly<\n Record<PostalCodeForm, TextInputProps['keyboardType']>\n> = {\n digits: 'number-pad',\n separated: Platform.OS === 'ios' ? 'numbers-and-punctuation' : undefined,\n}\n\n/**\n * The country a field's keyboard and choices follow.\n *\n * - The tax ID takes the tax residence's, which also names it in the heading.\n * - Every other field takes the address's.\n */\nexport function fieldCountry(\n field: FormField,\n countries: { address?: string; taxResidence?: string },\n): string | undefined {\n return field.id === 'TAX_IDENTIFIER'\n ? countries.taxResidence\n : countries.address\n}\n\n/** `country` is the field's own, from `fieldCountry`. */\nexport function fieldKeyboardType(\n field: FormField,\n country?: string,\n): TextInputProps['keyboardType'] | undefined {\n if (field.type !== 'TEXT') {\n return undefined\n }\n if (field.id === 'RESIDENTIAL_ADDRESS_POSTAL_CODE') {\n const form = postalCodeForm(country)\n return form === undefined ? undefined : POSTAL_CODE_KEYBOARD[form]\n }\n if (field.id === 'TAX_IDENTIFIER') {\n return taxIdentifierKeyboard(country)\n }\n return KEYBOARD_BY_ID[field.id]\n}\n\nconst DIGIT_TAX_IDENTIFIER_COUNTRIES: ReadonlySet<string> = new Set([\n 'US',\n 'BR',\n])\n\nfunction taxIdentifierKeyboard(\n country: string | undefined,\n): TextInputProps['keyboardType'] | undefined {\n if (\n country === undefined ||\n DIGIT_TAX_IDENTIFIER_COUNTRIES.has(country.toUpperCase())\n ) {\n return 'number-pad'\n }\n return undefined\n}\n\n/** Whether the field raises a pad rather than letters, and so has no return key. */\nexport function isDigitsField(field: FormField, country?: string): boolean {\n const keyboardType = fieldKeyboardType(field, country)\n return keyboardType !== undefined && PADS_WITHOUT_RETURN_KEY.has(keyboardType)\n}\n\n/** Whether the field is drawn at a fixed width rather than growing to fill. */\nexport function isFixedWidthField(field: FormField): boolean {\n return field.id === 'LEGAL_MIDDLE_NAME'\n}\n\n/**\n * The form's fields that no page draws.\n *\n * Type only: an unknown id has a page (`DETAILS`), so refusing one would\n * reject a whole form over a field the screens can draw perfectly well. A\n * form with any of these cannot be completed here, so the caller shows its\n * unsupported state rather than a form missing a field the server requires.\n */\nexport function unsupportedFields(fields: readonly FormField[]): FormField[] {\n return fields.filter((field) => !DRAWN_TYPES.has(field.type))\n}\n\n/**\n * Splits a form into the pages the design steps through.\n *\n * Pages keep the design's order; fields keep the server's, so a page that\n * gains a field it already draws renders it without a client release. A page\n * with no fields is not a page.\n */\nexport function sectionPages(fields: readonly FormField[]): KycSectionPage[] {\n const bySection = new Map<KycSection, FormField[]>()\n for (const field of fields) {\n if (!DRAWN_TYPES.has(field.type)) {\n continue\n }\n // A state the provider does not require is not asked: European\n // addresses have none, and the design draws no row for it.\n if (field.id === 'RESIDENTIAL_ADDRESS_REGION' && !field.required) {\n continue\n }\n const section = SECTION_BY_ID[field.id] ?? 'DETAILS'\n const collected = bySection.get(section) ?? []\n collected.push(field)\n bySection.set(section, collected)\n }\n\n return SECTION_ORDER.flatMap<KycSectionPage>((section) => {\n const collected = bySection.get(section)\n if (collected === undefined) {\n return []\n }\n if (isInlineChoiceSection(section) || section === 'DETAILS') {\n return collected.map((field) => ({\n section,\n grouped: false,\n rows: [[field]],\n }))\n }\n return [\n {\n section,\n grouped: GROUPED_SECTIONS.has(section),\n rows:\n section === 'ADDRESS'\n ? addressRows(collected)\n : collected.map((field) => [field]),\n },\n ]\n })\n}\n\n/**\n * The address card as the design lays it out for the country (1631:7256):\n * the street, the apartment line, then the city with the state and ZIP paired\n * under it \u2014 or, where the provider asks for no state, the postal code paired\n * before the city, as a European address reads. A field the design does not\n * place trails on its own row.\n */\nfunction addressRows(fields: readonly FormField[]): FormField[][] {\n const byId = new Map(fields.map((field) => [field.id, field]))\n const take = (id: KycFieldId) => {\n const field = byId.get(id)\n byId.delete(id)\n return field\n }\n const line1 = take('RESIDENTIAL_ADDRESS_LINE_1')\n const line2 = take('RESIDENTIAL_ADDRESS_LINE_2')\n const city = take('RESIDENTIAL_ADDRESS_CITY')\n const region = take('RESIDENTIAL_ADDRESS_REGION')\n const postal = take('RESIDENTIAL_ADDRESS_POSTAL_CODE')\n const rows: (FormField | undefined)[][] = [[line1], [line2]]\n if (region === undefined) {\n rows.push([postal, city])\n } else {\n rows.push([city], [region, postal])\n }\n return [...rows, ...[...byId.values()].map((field) => [field])]\n .map((row) => row.filter((field) => field !== undefined))\n .filter((row) => row.length > 0)\n}\n", "import type { TextInputProps } from 'react-native'\n\n/**\n * Keyboards with no return key. iOS draws a floating button of its own when\n * one of these is asked for a return key, and it lands over the screen's\n * bottom-right \u2014 where the advance control already is.\n */\nexport const PADS_WITHOUT_RETURN_KEY = new Set<TextInputProps['keyboardType']>([\n 'number-pad',\n 'numeric',\n 'decimal-pad',\n 'phone-pad',\n])\n", "/**\n * How a country writes its postal codes, where Google's address metadata\n * (libaddressinput, chromium-i18n.appspot.com/ssl-address/data) and\n * `postcode-validator` agree. Anywhere they disagree is on neither list, so\n * the keyboard stays letters (`postalCodeCountries.drift.test.ts`).\n *\n * - `digits`: codes are written as digits alone. The US ZIP+4 extension and\n * FR's space are optional, and neither is how the post office writes them.\n * - `separated`: digits the country writes split by a hyphen or space\n * (`12345-678`, `123 45`), which a number pad cannot type.\n * - A country whose codes carry any letter (GB, CA, NL, IE, AR, MT, LV\u2026), or\n * that has no postal code, is on neither list.\n */\nexport type PostalCodeForm = 'digits' | 'separated'\n\nconst codes = (list: string): ReadonlySet<string> =>\n new Set(list.trim().split(/\\s+/))\n\nconst DIGIT_COUNTRIES = codes(`\n AF AL AM AS AT AU AX AZ BA BD BE BG BH BL BT BY CC CH CL CN CO CU CV\n CX CY DE DK DO DZ EC EE EG EH ES ET FI FM FO FR GE GF GL GN GP GT GU\n GW HM HN HR HT HU ID IL IN IQ IS IT JO KE KG KH KR KW KZ LA LI LK LR\n LS LT LU MA MC MD ME MF MG MH MK MM MN MP MQ MV MX MY MZ NA NC NE NF\n NG NO NP NZ PF PG PH PK PM PR PW PY RE RO RS RU SA SD SG SI SJ SM SN\n TH TJ TM TN TR TW TZ UA UM US UY UZ VA VE VI VN WF XK YT ZA ZM\n`)\n\nconst SEPARATED_COUNTRIES = codes(`\n BR CR CZ GR IR JP LB PL PT SE SK\n`)\n\nexport function postalCodeForm(\n alpha2: string | undefined,\n): PostalCodeForm | undefined {\n const code = alpha2?.toUpperCase()\n if (code === undefined) {\n return undefined\n }\n if (DIGIT_COUNTRIES.has(code)) {\n return 'digits'\n }\n return SEPARATED_COUNTRIES.has(code) ? 'separated' : undefined\n}\n"],
|
|
5
|
-
"mappings": ";AACA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