@funkit/connect-rn 9.1.0 → 9.1.1
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 +84 -0
- package/README.md +2 -2
- package/dist/{chunk-FRXLZQRI.js → chunk-5Y2EMQYX.js} +2 -2
- package/dist/{chunk-4EEB4ZBQ.js → chunk-OBY3O4LU.js} +2 -1
- package/dist/chunk-OBY3O4LU.js.map +7 -0
- package/dist/{chunk-EWSXVFEF.js → chunk-RPYWTS42.js} +185 -449
- package/dist/chunk-RPYWTS42.js.map +7 -0
- 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 +4111 -3255
- package/dist/index.js.map +4 -4
- package/dist/preview.js +346 -15
- package/dist/preview.js.map +2 -2
- 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/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 +8 -0
- 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/{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} +1 -3
- 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/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/KycOutcomeIcon.d.ts.map +1 -1
- package/dist/src/preview/flowPreview.d.ts +6 -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 +64 -4
- 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/package.json +4 -4
- 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-5Y2EMQYX.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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FiatDepositAmountStep.d.ts","sourceRoot":"","sources":["../../../src/flow/FiatDepositAmountStep.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAGV,QAAQ,
|
|
1
|
+
{"version":3,"file":"FiatDepositAmountStep.d.ts","sourceRoot":"","sources":["../../../src/flow/FiatDepositAmountStep.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAGV,QAAQ,EAaT,MAAM,sBAAsB,CAAA;AA+G7B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAA;AAgH/E,OAAO,KAAK,EACV,wBAAwB,EACxB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EAEpB,cAAc,EACf,MAAM,qBAAqB,CAAA;AAC5B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAoJjE;;;GAGG;AACH,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,QAAQ,EACd,YAAY,EAAE,kBAAkB,GAAG,SAAS,GAC3C,IAAI,CAqDN;AAED,wBAAgB,qBAAqB,CAAC,EACpC,MAAM,EACN,IAAI,EACJ,cAAc,EACd,gBAAgB,EAChB,sBAAsB,EACtB,UAAU,EACV,cAAc,EACd,aAAa,EACb,UAAU,EACV,SAAS,EACT,gBAAgB,EAChB,WAAW,GACZ,EAAE;IACD,MAAM,EAAE,wBAAwB,CAAA;IAChC,IAAI,EAAE,cAAc,CAAA;IACpB,cAAc,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACjD,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAA;IACpC,mEAAmE;IACnE,sBAAsB,CAAC,EAAE,MAAM,CAAA;IAC/B,UAAU,EAAE,MAAM,CAAA;IAClB,cAAc,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACjD;;OAEG;IACH,aAAa,CAAC,EAAE,oBAAoB,CAAA;IACpC,wEAAwE;IACxE,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,SAAS,EAAE,IAAI,CACb,oBAAoB,EACpB,oBAAoB,GAAG,gBAAgB,GAAG,sBAAsB,CACjE,CAAA;IACD,yEAAyE;IACzE,gBAAgB,EAAE,gBAAgB,CAAA;IAClC,WAAW,EAAE,MAAM,IAAI,CAAA;CACxB,+BAkIA"}
|
|
@@ -4,7 +4,7 @@ import type { DepositFlowCallbacks, DepositFlowConfig } from './depositFlowConfi
|
|
|
4
4
|
import { type BackdropBlurRenderer } from './FlowSheet';
|
|
5
5
|
import { type FlowTransitions } from './useFlowTransitions';
|
|
6
6
|
import type { WithdrawalFlowCallbacks, WithdrawalFlowConfig } from './withdrawalFlowConfig';
|
|
7
|
-
import type { StripeOnrampConfig } from '../fiat/providers/useStripeOnrampClient';
|
|
7
|
+
import type { StripeOnrampConfig } from '../fiat/providers/stripe/useStripeOnrampClient';
|
|
8
8
|
export type FlowScreen = 'depositAmount' | 'addMoney' | 'transfer' | 'swapped' | 'withdrawMethod' | 'withdrawAmount' | 'withdrawAddress' | 'withdrawReceiveToken' | 'withdrawComplete';
|
|
9
9
|
interface FunkitFlowContextValue {
|
|
10
10
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FunkitFlowProvider.d.ts","sourceRoot":"","sources":["../../../src/flow/FunkitFlowProvider.tsx"],"names":[],"mappings":"AAMA,OAAO,EAEL,KAAK,SAAS,EAUf,MAAM,OAAO,CAAA;AAId,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,eAAe,EAIrB,MAAM,uBAAuB,CAAA;AAW9B,OAAO,KAAK,EA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oBAAoB,CAAC,EAAE,CAAC,MAAM,EAAE,oBAAoB,GAAG,SAAS,KAAK,IAAI,CAAA;IACzE;;;;;;OAMG;IACH,kBAAkB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC,KAAK,IAAI,CAAA;IAC7E;;;;;;;OAOG;IACH,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,IAAI,CAAA;IACjD;;;OAGG;IACH,cAAc,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAA;CAC7C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useKeyboardHeight.d.ts","sourceRoot":"","sources":["../../../src/flow/useKeyboardHeight.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EAOT,MAAM,cAAc,CAAA;AAErB;;;;;;;;;;;;GAYG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAE1D;AAED,MAAM,WAAW,cAAc;IAC7B,mEAAmE;IACnE,MAAM,EAAE,MAAM,CAAA;IACd;;;;;OAKG;IACH,QAAQ,EAAE,QAAQ,CAAC,KAAK,CAAA;CACzB;AAOD;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,GAAG,cAAc,
|
|
1
|
+
{"version":3,"file":"useKeyboardHeight.d.ts","sourceRoot":"","sources":["../../../src/flow/useKeyboardHeight.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EAOT,MAAM,cAAc,CAAA;AAErB;;;;;;;;;;;;GAYG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAE1D;AAED,MAAM,WAAW,cAAc;IAC7B,mEAAmE;IACnE,MAAM,EAAE,MAAM,CAAA;IACd;;;;;OAKG;IACH,QAAQ,EAAE,QAAQ,CAAC,KAAK,CAAA;CACzB;AAOD;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,GAAG,cAAc,CAkElE"}
|
|
@@ -9,17 +9,6 @@ export declare function isAboveMaximum(value: string, limitUsd?: string): boolea
|
|
|
9
9
|
* state rather than a violation — there is nothing yet to be too small.
|
|
10
10
|
*/
|
|
11
11
|
export declare function isBelowMinimum(value: string, minLimitUsd?: string): boolean;
|
|
12
|
-
/**
|
|
13
|
-
* The edge of a gap nearer `value`: the lower range's reach or the upper
|
|
14
|
-
* range's floor, the lower on a tie. Neither edge is "the" bound inside a gap,
|
|
15
|
-
* so the buyer is sent the shorter way out. Both edges should already be
|
|
16
|
-
* whole cents (see {@link floorCent}, {@link ceilCent}).
|
|
17
|
-
*/
|
|
18
|
-
export declare function nearerEdge(value: number, reach: number, floor: number): number;
|
|
19
|
-
/** The highest whole cent at or under `amount`: the most a range reaching `amount` can be asked for. */
|
|
20
|
-
export declare function floorCent(amount: number): number;
|
|
21
|
-
/** The lowest whole cent at or over `amount`: the least a range starting at `amount` can be asked for. */
|
|
22
|
-
export declare function ceilCent(amount: number): number;
|
|
23
12
|
/**
|
|
24
13
|
* An amount screen's input policy, separate from its layout. Every way a value
|
|
25
14
|
* enters — a numpad key or a quick-amount chip — commits through this hook, so
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useGuardedAmountInput.d.ts","sourceRoot":"","sources":["../../../src/hooks/useGuardedAmountInput.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,KAAK,SAAS,EAAkB,MAAM,sBAAsB,CAAA;AAuBrE;;;GAGG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAKxE;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAM3E;
|
|
1
|
+
{"version":3,"file":"useGuardedAmountInput.d.ts","sourceRoot":"","sources":["../../../src/hooks/useGuardedAmountInput.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,KAAK,SAAS,EAAkB,MAAM,sBAAsB,CAAA;AAuBrE;;;GAGG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAKxE;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAM3E;AAOD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,KAAK,EACL,aAAa,EACb,QAAQ,EACR,QAAgB,GACjB,EAAE;IACD,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC,2EAA2E;IAC3E,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;;;;;;;;;;;wBA4DU,MAAM;2BA2BP,SAAS;;EAiClB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KycOutcomeIcon.d.ts","sourceRoot":"","sources":["../../../src/icons/KycOutcomeIcon.tsx"],"names":[],"mappings":"AAQA,8EAA8E;AAC9E,wBAAgB,cAAc,CAAC,EAC7B,UAAkB,GACnB,EAAE;IACD,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,+
|
|
1
|
+
{"version":3,"file":"KycOutcomeIcon.d.ts","sourceRoot":"","sources":["../../../src/icons/KycOutcomeIcon.tsx"],"names":[],"mappings":"AAQA,8EAA8E;AAC9E,wBAAgB,cAAc,CAAC,EAC7B,UAAkB,GACnB,EAAE;IACD,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,+BAOA"}
|
|
@@ -3,6 +3,7 @@ import { type Dispatch, type ReactNode, type SetStateAction } from 'react';
|
|
|
3
3
|
import type { KycCompletion } from '../fiat/useKycCompletion';
|
|
4
4
|
import type { KycSection } from '../fiat/formLayout';
|
|
5
5
|
import type { FlowScreen } from '../flow/FunkitFlowProvider';
|
|
6
|
+
import type { DepositMatchTerms } from '../flow/depositFlowConfig';
|
|
6
7
|
/**
|
|
7
8
|
* Where the fiat session opens. Each field seeds one piece of state a user would otherwise reach
|
|
8
9
|
* by tapping through, so any screen of the rail is one seed away.
|
|
@@ -34,8 +35,10 @@ export interface FiatPreviewSeed {
|
|
|
34
35
|
};
|
|
35
36
|
/** Submits the seeded step's CTA with this id on open — how a failed send is reached. */
|
|
36
37
|
submitOnOpen?: string;
|
|
38
|
+
/** The host's identity minter refused this account. */
|
|
39
|
+
accountIneligible?: boolean;
|
|
37
40
|
/** Turns the deposit-match preview on, as the host's internal flag does. */
|
|
38
|
-
depositMatch?:
|
|
41
|
+
depositMatch?: DepositMatchTerms;
|
|
39
42
|
}
|
|
40
43
|
export interface DepositPreviewSeed {
|
|
41
44
|
/** The screen the flow opens on; defaults to the root `beginDeposit` picks. Transfer opens above it. */
|
|
@@ -118,7 +121,8 @@ export declare const SEED: {
|
|
|
118
121
|
code: string;
|
|
119
122
|
detail?: string;
|
|
120
123
|
} | undefined;
|
|
121
|
-
|
|
124
|
+
fiatAccountIneligible: (p: ActivePreview) => boolean | undefined;
|
|
125
|
+
fiatDepositMatch: (p: ActivePreview) => DepositMatchTerms | undefined;
|
|
122
126
|
kycCompletion: (p: ActivePreview) => "restricted" | "review" | "hold" | undefined;
|
|
123
127
|
identityPage: (p: ActivePreview) => "form" | "consent" | undefined;
|
|
124
128
|
identitySection: (p: ActivePreview) => KycSection | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flowPreview.d.ts","sourceRoot":"","sources":["../../../src/preview/flowPreview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAC5D,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,SAAS,EACd,KAA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,CAAA;AACnC,wBAAgB,cAAc,CAAC,CAAC,EAAE,CAAC,EACjC,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,EACpB,OAAO,EAAE,CAAC,EACV,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,GACvB,CAAC,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"previewFetch.d.ts","sourceRoot":"","sources":["../../../src/preview/previewFetch.ts"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"previewFetch.d.ts","sourceRoot":"","sources":["../../../src/preview/previewFetch.ts"],"names":[],"mappings":"AAIA,OAAO,EAML,KAAK,eAAe,EACrB,MAAM,aAAa,CAAA;AAEpB,KAAK,KAAK,GAAG,OAAO,KAAK,CAAA;AA0MzB;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,eAAe,EACzB,WAAW,EAAE,KAAK,GACjB,KAAK,CAmHP"}
|
|
@@ -21,7 +21,19 @@ export declare const PREVIEW_SCENARIO_CATALOG: {
|
|
|
21
21
|
readonly touches: string[];
|
|
22
22
|
};
|
|
23
23
|
readonly 'fiat.amount.depositMatch': {
|
|
24
|
-
readonly title: "Amount entry, deposit match (internal flag)";
|
|
24
|
+
readonly title: "Amount entry, deposit match with a fee subsidy (internal flag)";
|
|
25
|
+
readonly flow: "deposit";
|
|
26
|
+
readonly requires: "fiatRail";
|
|
27
|
+
readonly touches: readonly [...string[], "fiat/depositMatch.ts", "flow/DepositMatchSheet.tsx", "screens/DepositMatchScreen.tsx"];
|
|
28
|
+
};
|
|
29
|
+
readonly 'fiat.amount.subsidized': {
|
|
30
|
+
readonly title: "Amount entry, fee subsidy without the deposit match";
|
|
31
|
+
readonly flow: "deposit";
|
|
32
|
+
readonly requires: "fiatRail";
|
|
33
|
+
readonly touches: readonly [...string[], "fiat/stepDetails.ts", "screens/FeeDetailsScreen.tsx"];
|
|
34
|
+
};
|
|
35
|
+
readonly 'fiat.amount.depositMatch.unsubsidized': {
|
|
36
|
+
readonly title: "Amount entry, deposit match without a fee subsidy (internal flag)";
|
|
25
37
|
readonly flow: "deposit";
|
|
26
38
|
readonly requires: "fiatRail";
|
|
27
39
|
readonly touches: readonly [...string[], "fiat/depositMatch.ts", "flow/DepositMatchSheet.tsx", "screens/DepositMatchScreen.tsx"];
|
|
@@ -74,8 +86,14 @@ export declare const PREVIEW_SCENARIO_CATALOG: {
|
|
|
74
86
|
readonly requires: "fiatRail";
|
|
75
87
|
readonly touches: string[];
|
|
76
88
|
};
|
|
89
|
+
readonly 'fiat.amount.providerCeiling': {
|
|
90
|
+
readonly title: "Amount entry, $1,000 priced under one provider's cap; type $10,000 for MoonPay KYC";
|
|
91
|
+
readonly flow: "deposit";
|
|
92
|
+
readonly requires: "fiatRail";
|
|
93
|
+
readonly touches: string[];
|
|
94
|
+
};
|
|
77
95
|
readonly 'fiat.amount.gap': {
|
|
78
|
-
readonly title: "Amount entry, between two providers' ranges (
|
|
96
|
+
readonly title: "Amount entry, between two providers' ranges (Deposit Min)";
|
|
79
97
|
readonly flow: "deposit";
|
|
80
98
|
readonly requires: "fiatRail";
|
|
81
99
|
readonly touches: string[];
|
|
@@ -168,7 +186,7 @@ export declare const PREVIEW_SCENARIO_CATALOG: {
|
|
|
168
186
|
readonly title: "KYC Stripe L1: step-up faceplate";
|
|
169
187
|
readonly flow: "deposit";
|
|
170
188
|
readonly requires: "fiatRail";
|
|
171
|
-
readonly touches: readonly [...string[], "fiat/providers/kycIntro.ts", "fiat/providers/stripeKycIntro.ts"];
|
|
189
|
+
readonly touches: readonly [...string[], "fiat/providers/kycIntro.ts", "fiat/providers/stripe/stripeKycIntro.ts"];
|
|
172
190
|
};
|
|
173
191
|
readonly 'kyc.l2.moonpay-consent': {
|
|
174
192
|
readonly title: "KYC L2: MoonPay sharing consent";
|
|
@@ -200,6 +218,12 @@ export declare const PREVIEW_SCENARIO_CATALOG: {
|
|
|
200
218
|
readonly requires: "fiatRail";
|
|
201
219
|
readonly touches: string[];
|
|
202
220
|
};
|
|
221
|
+
readonly 'kyc.dueDiligence.phoneRefused': {
|
|
222
|
+
readonly title: "KYC: due diligence, phone number refused";
|
|
223
|
+
readonly flow: "deposit";
|
|
224
|
+
readonly requires: "fiatRail";
|
|
225
|
+
readonly touches: readonly [...string[], "fiat/refusedFields.ts", "fiat/shownFieldIssues.ts"];
|
|
226
|
+
};
|
|
203
227
|
readonly 'kyc.dueDiligence.income': {
|
|
204
228
|
readonly title: "KYC: due diligence figures";
|
|
205
229
|
readonly flow: "deposit";
|
|
@@ -236,6 +260,12 @@ export declare const PREVIEW_SCENARIO_CATALOG: {
|
|
|
236
260
|
readonly requires: "fiatRail";
|
|
237
261
|
readonly touches: readonly [...string[], "fiat/FiatErrorNotice.tsx"];
|
|
238
262
|
};
|
|
263
|
+
readonly 'kyc.form.rateLimited': {
|
|
264
|
+
readonly title: "KYC: form send rate-limited";
|
|
265
|
+
readonly flow: "deposit";
|
|
266
|
+
readonly requires: "fiatRail";
|
|
267
|
+
readonly touches: readonly string[];
|
|
268
|
+
};
|
|
239
269
|
readonly 'kyc.capture.intro': {
|
|
240
270
|
readonly title: "KYC: document-capture intro";
|
|
241
271
|
readonly flow: "deposit";
|
|
@@ -246,7 +276,7 @@ export declare const PREVIEW_SCENARIO_CATALOG: {
|
|
|
246
276
|
readonly title: "KYC: MoonPay asks for more of its hosted check";
|
|
247
277
|
readonly flow: "deposit";
|
|
248
278
|
readonly requires: "fiatRail";
|
|
249
|
-
readonly touches: readonly ["fiat/providers/moonpayHandoffCard.tsx", "fiat/useKycCaptureRound.ts"];
|
|
279
|
+
readonly touches: readonly ["fiat/providers/moonpay/moonpayHandoffCard.tsx", "fiat/useKycCaptureRound.ts"];
|
|
250
280
|
};
|
|
251
281
|
readonly 'kyc.completion.review': {
|
|
252
282
|
readonly title: "KYC completion: in review";
|
|
@@ -362,6 +392,24 @@ export declare const PREVIEW_SCENARIO_CATALOG: {
|
|
|
362
392
|
readonly requires: "fiatRail";
|
|
363
393
|
readonly touches: string[];
|
|
364
394
|
};
|
|
395
|
+
readonly 'fiat.blocked.later': {
|
|
396
|
+
readonly title: "Blocked by the rail: region, with a comeback date";
|
|
397
|
+
readonly flow: "deposit";
|
|
398
|
+
readonly requires: "fiatRail";
|
|
399
|
+
readonly touches: readonly ["fiat/FiatRegionUnsupportedScreen.tsx"];
|
|
400
|
+
};
|
|
401
|
+
readonly 'fiat.blocked.unservable': {
|
|
402
|
+
readonly title: "Blocked by the rail: nothing can serve this deposit";
|
|
403
|
+
readonly flow: "deposit";
|
|
404
|
+
readonly requires: "fiatRail";
|
|
405
|
+
readonly touches: readonly ["fiat/FiatUnavailableScreen.tsx"];
|
|
406
|
+
};
|
|
407
|
+
readonly 'fiat.accountIneligible': {
|
|
408
|
+
readonly title: "The host's minter refused this account";
|
|
409
|
+
readonly flow: "deposit";
|
|
410
|
+
readonly requires: "fiatRail";
|
|
411
|
+
readonly touches: readonly ["fiat/FiatUnavailableScreen.tsx", "fiat/useIdentityAssertion.ts"];
|
|
412
|
+
};
|
|
365
413
|
readonly 'fiat.unsupported': {
|
|
366
414
|
readonly title: "State this build predates";
|
|
367
415
|
readonly flow: "deposit";
|
|
@@ -386,6 +434,18 @@ export declare const PREVIEW_SCENARIO_CATALOG: {
|
|
|
386
434
|
readonly requires: "fiatRail";
|
|
387
435
|
readonly touches: string[];
|
|
388
436
|
};
|
|
437
|
+
readonly 'fiat.rateLimited': {
|
|
438
|
+
readonly title: "Submission rate-limited, seconds to wait";
|
|
439
|
+
readonly flow: "deposit";
|
|
440
|
+
readonly requires: "fiatRail";
|
|
441
|
+
readonly touches: readonly string[];
|
|
442
|
+
};
|
|
443
|
+
readonly 'fiat.rateLimited.retryAfter': {
|
|
444
|
+
readonly title: "Submission rate-limited, minutes to wait";
|
|
445
|
+
readonly flow: "deposit";
|
|
446
|
+
readonly requires: "fiatRail";
|
|
447
|
+
readonly touches: readonly string[];
|
|
448
|
+
};
|
|
389
449
|
readonly 'deposit.addMoney': {
|
|
390
450
|
readonly title: "Add money: method list";
|
|
391
451
|
readonly flow: "deposit";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scenarioCatalog.d.ts","sourceRoot":"","sources":["../../../src/preview/scenarioCatalog.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,YAAY,CAAA;AAElD;;;;;GAKG;AACH,MAAM,MAAM,kBAAkB,GAC1B,UAAU,GACV,eAAe,GACf,kBAAkB,CAAA;AAEtB,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,WAAW,CAAA;IACjB,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,oFAAoF;IACpF,OAAO,EAAE,SAAS,MAAM,EAAE,CAAA;CAC3B;AAmBD,eAAO,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"scenarioCatalog.d.ts","sourceRoot":"","sources":["../../../src/preview/scenarioCatalog.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,YAAY,CAAA;AAElD;;;;;GAKG;AACH,MAAM,MAAM,kBAAkB,GAC1B,UAAU,GACV,eAAe,GACf,kBAAkB,CAAA;AAEtB,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,WAAW,CAAA;IACjB,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,oFAAoF;IACpF,OAAO,EAAE,SAAS,MAAM,EAAE,CAAA;CAC3B;AAmBD,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAihBoB,CAAA;AAEzD,MAAM,MAAM,iBAAiB,GAAG,MAAM,OAAO,wBAAwB,CAAA;AAErE,eAAO,MAAM,oBAAoB,EAE5B,iBAAiB,EAAE,CAAA"}
|
|
@@ -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":"A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CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC,CAAA;CACtD;AAED,MAAM,WAAW,eAAgB,SAAQ,oBAAoB;IAC3D,EAAE,EAAE,iBAAiB,CAAA;IACrB,IAAI,EAAE,eAAe,CAAA;IACrB,OAAO,EAAE,cAAc,CAAA;CACxB;AAqwBD,eAAO,MAAM,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;;;;;;;;;;;;kBAhxBmB,MAAM;;;;;;;;;CAgxBhB,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":"Fun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,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,kBAAkB,CAAA;IACjC;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,cAAc,CAAA;CAChC;AA8BD;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,MAAM,EACN,aAAa,EACb,WAAW,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,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EACL,KAAK,iBAAiB,EAEvB,MAAM,kCAAkC,CAAA;AAKzC,OAAO,EAEL,KAAK,wBAAwB,EAC9B,MAAM,sCAAsC,CAAA;
|
|
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,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EACL,KAAK,iBAAiB,EAEvB,MAAM,kCAAkC,CAAA;AAKzC,OAAO,EAEL,KAAK,wBAAwB,EAC9B,MAAM,sCAAsC,CAAA;AA0C7C,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,MAAM,CAAA;IACb,oDAAoD;IACpD,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,4DAA4D;IAC5D,cAAc,CAAC,EAAE,uBAAuB,CAAA;IACxC,6EAA6E;IAC7E,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC,0DAA0D;IAC1D,YAAY,CAAC,EAAE,iBAAiB,EAAE,CAAA;IAClC,uFAAuF;IACvF,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,+DAA+D;IAC/D,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,mFAAmF;IACnF,eAAe,C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DAA2D;IAC3D,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B;AAED;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,KAAK,EACL,SAAS,EACT,cAAc,EACd,KAAK,EACL,aAAa,EACb,YAAY,EACZ,mBAA2B,EAC3B,QAAgB,EAChB,eAAuB,EACvB,QAAQ,EACR,WAAW,EACX,QAAgB,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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect-rn",
|
|
3
|
-
"version": "9.1.
|
|
3
|
+
"version": "9.1.1",
|
|
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,10 +53,10 @@
|
|
|
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/
|
|
59
|
-
"@funkit/
|
|
58
|
+
"@funkit/utils": "5.0.2",
|
|
59
|
+
"@funkit/connect-core": "9.0.0"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
62
|
"@gorhom/bottom-sheet": ">=5",
|
|
@@ -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;AAAA,EAIE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAyGH;AAfJ,IAAM,qBAAqB,cAA2C,MAAS;AAOxE,SAAS,kBAAkB;AAAA,EAChC;AAAA,EACA;AACF,GAGG;AACD,SACE,oBAAC,mBAAmB,UAAnB,EAA4B,OAAO,MACjC,UACH;AAEJ;AAGO,SAAS,qBAAkD;AAChE,SAAO,WAAW,kBAAkB;AACtC;AAQA,IAAM,aAA4B,CAAC;AACnC,IAAM,uBAAuB,cAA6B,UAAU;AAG7D,SAAS,kBAAkB;AAAA,EAChC;AAAA,EACA;AAAA,EACA;AACF,GAIG;AAED,QAAM,UAAU;AAAA,IACd,MACE,YAAY,UAAa,eAAe,SACpC,aACA,EAAE,SAAS,WAAW;AAAA,IAC5B,CAAC,SAAS,UAAU;AAAA,EACtB;AACA,SACE,oBAAC,qBAAqB,UAArB,EAA8B,OAAO,SACnC,UACH;AAEJ;AASO,IAAM,OAAO;AAAA,EAClB,YAAY,CAAC,MAAM,EAAE,SAAS,MAAM;AAAA,EACpC,UAAU,CAAC,MAAM,EAAE,SAAS,MAAM;AAAA,EAClC,gBAAgB,CAAC,MAAM,EAAE,SAAS,MAAM;AAAA,EACxC,kBAA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