@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
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type FiatErrorScreenLog } from './FiatErrorScreen';
|
|
2
|
+
/**
|
|
3
|
+
* A step that stopped before any payment, in the payment-failed screen's
|
|
4
|
+
* design: the ways on are the step again or another of the host's methods.
|
|
5
|
+
* The back disc leaves the flow, as the failure screen's close did.
|
|
6
|
+
*/
|
|
7
|
+
export declare function FiatStepFailedScreen({ log, retryDetail, isApplePay, isRetrying, onRetry, onTryOtherMethods, onClose, }: {
|
|
8
|
+
log: FiatErrorScreenLog;
|
|
9
|
+
/** What Try again does, under its title. */
|
|
10
|
+
retryDetail: string;
|
|
11
|
+
isApplePay: boolean;
|
|
12
|
+
isRetrying: boolean;
|
|
13
|
+
onRetry: () => void;
|
|
14
|
+
onTryOtherMethods: (() => void) | undefined;
|
|
15
|
+
onClose: () => void;
|
|
16
|
+
}): import("react").JSX.Element;
|
|
17
|
+
//# sourceMappingURL=FiatStepFailedScreen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FiatStepFailedScreen.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatStepFailedScreen.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,kBAAkB,EAAqB,MAAM,mBAAmB,CAAA;AAS9E;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,GAAG,EACH,WAAW,EACX,UAAU,EACV,UAAU,EACV,OAAO,EACP,iBAAiB,EACjB,OAAO,GACR,EAAE;IACD,GAAG,EAAE,kBAAkB,CAAA;IACvB,4CAA4C;IAC5C,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,OAAO,CAAA;IACnB,UAAU,EAAE,OAAO,CAAA;IACnB,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,iBAAiB,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAA;IAC3C,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB,+BA+BA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type FiatErrorScreenLog } from './FiatErrorScreen';
|
|
2
|
+
/**
|
|
3
|
+
* A refusal with nothing to retry here: the way on is another payment method,
|
|
4
|
+
* and that menu is the host's. Close stays either way, for a buyer with no
|
|
5
|
+
* other method to switch to.
|
|
6
|
+
*/
|
|
7
|
+
export declare function FiatUnavailableScreen({ title, onTryOtherMethods, onClose, errorLog, }: {
|
|
8
|
+
title: string;
|
|
9
|
+
onTryOtherMethods: (() => void) | undefined;
|
|
10
|
+
onClose: () => void;
|
|
11
|
+
/** Set when the refusal is a fault of ours, worth an alert. */
|
|
12
|
+
errorLog?: FiatErrorScreenLog;
|
|
13
|
+
}): import("react").JSX.Element;
|
|
14
|
+
//# sourceMappingURL=FiatUnavailableScreen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FiatUnavailableScreen.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatUnavailableScreen.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,kBAAkB,EAAqB,MAAM,mBAAmB,CAAA;AAI9E;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,KAAK,EACL,iBAAiB,EACjB,OAAO,EACP,QAAQ,GACT,EAAE;IACD,KAAK,EAAE,MAAM,CAAA;IACb,iBAAiB,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAA;IAC3C,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,+DAA+D;IAC/D,QAAQ,CAAC,EAAE,kBAAkB,CAAA;CAC9B,+BAoCA"}
|
|
@@ -8,7 +8,7 @@ import type { FailureDetail, PendingFailure } from './depositOutcome';
|
|
|
8
8
|
* cancellation.
|
|
9
9
|
* - A failed send with no surface to blame is ours, not a provider's.
|
|
10
10
|
* - A card or billing problem is a decline: another provider would refuse the
|
|
11
|
-
* same card.
|
|
11
|
+
* same card (see `paymentFailureKind`).
|
|
12
12
|
*/
|
|
13
13
|
export declare function closeFailure({ surfaceCode, isRetryable, detail, t, }: {
|
|
14
14
|
surfaceCode: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"closeFailure.d.ts","sourceRoot":"","sources":["../../../src/fiat/closeFailure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAGxC,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;
|
|
1
|
+
{"version":3,"file":"closeFailure.d.ts","sourceRoot":"","sources":["../../../src/fiat/closeFailure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAGxC,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAIrE;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAAC,EAC3B,WAAW,EACX,WAAW,EACX,MAAM,EACN,CAAC,GACF,EAAE;IACD,WAAW,EAAE,MAAM,GAAG,SAAS,CAAA;IAC/B,WAAW,EAAE,OAAO,CAAA;IACpB,MAAM,EAAE,aAAa,CAAA;IACrB,CAAC,EAAE,SAAS,CAAA;CACb,GAAG,cAAc,GAAG,SAAS,CA4B7B"}
|
|
@@ -1,20 +1,17 @@
|
|
|
1
1
|
import type { FiatProvider } from '@funkit/connect-core';
|
|
2
2
|
import type { TFunction } from 'i18next';
|
|
3
|
+
import type { DepositMatchTerms } from '../flow/depositFlowConfig';
|
|
3
4
|
import type { DepositMatchScreenProps } from '../screens/DepositMatchScreen';
|
|
4
|
-
import { type FeeQuote } from './stepDetails';
|
|
5
|
-
/** The fee line, and the run in it the screen sets in the brand colour. */
|
|
6
|
-
export interface DepositMatchLine {
|
|
7
|
-
fee: string;
|
|
8
|
-
highlight: string;
|
|
9
|
-
}
|
|
5
|
+
import { type FeeLine, type FeeQuote, type FeeSubsidy } from './stepDetails';
|
|
10
6
|
/**
|
|
11
|
-
* The fee line for a matched deposit:
|
|
12
|
-
*
|
|
7
|
+
* The fee line for a matched deposit: the bonus alone when the quote is
|
|
8
|
+
* subsidized, after the quoted fee otherwise. Nothing renders until an amount
|
|
9
|
+
* is entered and its currency is known.
|
|
13
10
|
*/
|
|
14
|
-
export declare function depositMatchLine(amount: string, currency: string | undefined, t: TFunction):
|
|
11
|
+
export declare function depositMatchLine(amount: string, currency: string | undefined, terms: DepositMatchTerms, quote: FeeQuote | undefined, feeSubsidy: FeeSubsidy, t: TFunction): FeeLine | undefined;
|
|
15
12
|
/**
|
|
16
|
-
* The match drawer's figures.
|
|
17
|
-
*
|
|
13
|
+
* The match drawer's figures. A subsidized fee reads FREE beside the amount
|
|
14
|
+
* reimbursed; otherwise the row carries the quoted fee and the total nets it.
|
|
18
15
|
*/
|
|
19
|
-
export declare function depositMatchDetails(amount: string, currency: string, quote: FeeQuote | undefined, provider: FiatProvider | undefined): Omit<DepositMatchScreenProps, 'footnote'>;
|
|
16
|
+
export declare function depositMatchDetails(amount: string, currency: string, terms: DepositMatchTerms, quote: FeeQuote | undefined, feeSubsidy: FeeSubsidy, provider: FiatProvider | undefined): Omit<DepositMatchScreenProps, 'footnote'>;
|
|
20
17
|
//# sourceMappingURL=depositMatch.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"depositMatch.d.ts","sourceRoot":"","sources":["../../../src/fiat/depositMatch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"depositMatch.d.ts","sourceRoot":"","sources":["../../../src/fiat/depositMatch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAClE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAA;AAM5E,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,QAAQ,EACb,KAAK,UAAU,EAGhB,MAAM,eAAe,CAAA;AActB;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,KAAK,EAAE,iBAAiB,EACxB,KAAK,EAAE,QAAQ,GAAG,SAAS,EAC3B,UAAU,EAAE,UAAU,EACtB,CAAC,EAAE,SAAS,GACX,OAAO,GAAG,SAAS,CAqBrB;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,iBAAiB,EACxB,KAAK,EAAE,QAAQ,GAAG,SAAS,EAC3B,UAAU,EAAE,UAAU,EACtB,QAAQ,EAAE,YAAY,GAAG,SAAS,GACjC,IAAI,CAAC,uBAAuB,EAAE,UAAU,CAAC,CAgB3C"}
|
|
@@ -29,6 +29,12 @@ export interface FailureDetail {
|
|
|
29
29
|
export interface PendingFailure {
|
|
30
30
|
error: FunkitFlowError;
|
|
31
31
|
detail: FailureDetail;
|
|
32
|
+
/**
|
|
33
|
+
* The order itself ended badly, so it no longer counts as live. A failure
|
|
34
|
+
* noted while an order is still alive (a poll that errored) may yet end in a
|
|
35
|
+
* deposit, so leaving on it says nothing to the host.
|
|
36
|
+
*/
|
|
37
|
+
orderEnded?: boolean;
|
|
32
38
|
}
|
|
33
39
|
type StepState = NonNullable<FiatFlow['stepResponse']>['state'];
|
|
34
40
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"depositOutcome.d.ts","sourceRoot":"","sources":["../../../src/fiat/depositOutcome.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAGxC,OAAO,KAAK,EACV,oBAAoB,EACpB,aAAa,EACd,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAAE,KAAK,eAAe,EAAa,MAAM,mBAAmB,CAAA;AAGnE,uFAAuF;AACvF,MAAM,WAAW,sBAAsB;IACrC,6EAA6E;IAC7E,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB;;;OAGG;IACH,SAAS,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC,KAAK,IAAI,CAAA;IACnE,MAAM,EAAE,CAAC,KAAK,EAAE,eAAe,EAAE,MAAM,CAAC,EAAE,aAAa,KAAK,IAAI,CAAA;IAChE;;;OAGG;IACH,WAAW,EAAE,CAAC,OAAO,EAAE,cAAc,GAAG,SAAS,KAAK,IAAI,CAAA;CAC3D;AAED,uEAAuE;AACvE,MAAM,WAAW,aAAa;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,yEAAyE;IACzE,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,eAAe,CAAA;IACtB,MAAM,EAAE,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"depositOutcome.d.ts","sourceRoot":"","sources":["../../../src/fiat/depositOutcome.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,M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AA;IAClB,aAAa,EAAE,MAAM,CAAA;IACrB,CAAC,EAAE,SAAS,CAAA;CACb,GAAG,sBAAsB,CAgGzB;AAED,+EAA+E;AAC/E,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,QAAQ,EACd,QAAQ,EAAE,sBAAsB,EAChC,CAAC,EAAE,SAAS,GACX,IAAI,CAeN;AAED,2FAA2F;AAC3F,wBAAgB,aAAa,CAC3B,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,EAClC,KAAK,EAAE,SAAS,GAAG,SAAS,EAC5B,CAAC,EAAE,SAAS,GACX,eAAe,GAAG,SAAS,CAU7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formScreenProps.d.ts","sourceRoot":"","sources":["../../../src/fiat/formScreenProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAa,MAAM,sBAAsB,CAAA;AAE3E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;AAG3D;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,QAAQ,EACd,CAAC,EAAE,SAAS;AACZ,4EAA4E;AAC5E,cAAc,CAAC,EAAE,MAAM;AACvB,kFAAkF;AAClF,aAAa,CAAC,EAAE,UAAU,GACzB,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"formScreenProps.d.ts","sourceRoot":"","sources":["../../../src/fiat/formScreenProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAa,MAAM,sBAAsB,CAAA;AAE3E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;AAG3D;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,QAAQ,EACd,CAAC,EAAE,SAAS;AACZ,4EAA4E;AAC5E,cAAc,CAAC,EAAE,MAAM;AACvB,kFAAkF;AAClF,aAAa,CAAC,EAAE,UAAU,GACzB,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,GAAG,SAAS,CAyClD"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { FormDescriptor, FormField, FormFieldIssue, FormValues, JsonValue } from '@funkit/connect-core';
|
|
2
|
-
|
|
2
|
+
/** `REFUSED` is the server's, never a validator's: see `refusedFields`. */
|
|
3
|
+
export type KycFieldIssue = FormFieldIssue | 'DATE_UNDERAGE' | 'REFUSED';
|
|
3
4
|
/**
|
|
4
5
|
* The first refusal a field carries, or nothing.
|
|
5
6
|
*
|
|
@@ -43,8 +44,9 @@ export declare function carriedBlankFields(fields: readonly FormField[], values:
|
|
|
43
44
|
*
|
|
44
45
|
* None on a round that carries an error: that round is a correction, and
|
|
45
46
|
* hiding a refused value would send it back unseen, forever. None either when
|
|
46
|
-
* every field is answered
|
|
47
|
-
*
|
|
47
|
+
* every required field is answered: a form with nothing on it cannot be sent,
|
|
48
|
+
* and one left holding only an optional field (address line 2) reads as the
|
|
49
|
+
* whole form. After a relaunch nothing is carried, so every field is asked as before.
|
|
48
50
|
*/
|
|
49
51
|
export declare function answeredFields(fields: readonly FormField[], carried: FormValues | undefined, errorMessage: string | undefined): FormField[];
|
|
50
52
|
/** Every rail this form feeds requires an adult (design 2114:8361). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kycFormState.d.ts","sourceRoot":"","sources":["../../../src/fiat/kycFormState.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,cAAc,EACd,SAAS,EACT,cAAc,EACd,UAAU,EACV,SAAS,EACV,MAAM,sBAAsB,CAAA;AAE7B,MAAM,MAAM,aAAa,GAAG,cAAc,GAAG,eAAe,CAAA;
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B,eAAe,GAAG,SAAS,CAuB7B;AAWD,gEAAgE;AAChE,wBAAgB,eAAe,CAC7B,IAAI,EAAE,cAAc,EACpB,MAAM,EAAE,UAAU,GACjB,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAY/B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { EntryCta, FiatProvider, FiatRoutingOverrides } from '@funkit/connect-core';
|
|
2
|
-
import type {
|
|
2
|
+
import type { PaymentFailureKind } from './paymentSurfaceFailure';
|
|
3
3
|
/**
|
|
4
4
|
* The allow-list that skips every given provider.
|
|
5
5
|
*
|
|
@@ -32,7 +32,7 @@ export declare function quoteRoutingOverrides({ skipped, undrawable, current, }:
|
|
|
32
32
|
* provider would take the same buyer, so the buyer is offered the chance.
|
|
33
33
|
*/
|
|
34
34
|
export declare function paymentRerouteOverrides({ failure, paymentMethod, failedProvider, skipped, current, }: {
|
|
35
|
-
failure:
|
|
35
|
+
failure: PaymentFailureKind | undefined;
|
|
36
36
|
paymentMethod: string;
|
|
37
37
|
failedProvider: FiatProvider | undefined;
|
|
38
38
|
skipped: readonly FiatProvider[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paymentReroute.d.ts","sourceRoot":"","sources":["../../../src/fiat/paymentReroute.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,YAAY,EACZ,oBAAoB,EACrB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"paymentReroute.d.ts","sourceRoot":"","sources":["../../../src/fiat/paymentReroute.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,YAAY,EACZ,oBAAoB,EACrB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAWjE;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,SAAS,YAAY,EAAE,EAChC,OAAO,EAAE,oBAAoB,GAAG,SAAS,GACxC,oBAAoB,GAAG,SAAS,CASlC;AAKD;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,eAAe,EAAE,OAAO,GACvB,SAAS,YAAY,EAAE,CAEzB;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,OAAO,EACP,UAAU,EACV,OAAO,GACR,EAAE;IACD,OAAO,EAAE,SAAS,YAAY,EAAE,CAAA;IAChC,UAAU,EAAE,SAAS,YAAY,EAAE,CAAA;IACnC,OAAO,EAAE,oBAAoB,GAAG,SAAS,CAAA;CAC1C,GAAG,oBAAoB,GAAG,SAAS,CAKnC;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,OAAO,EACP,aAAa,EACb,cAAc,EACd,OAAO,EACP,OAAO,GACR,EAAE;IACD,OAAO,EAAE,kBAAkB,GAAG,SAAS,CAAA;IACvC,aAAa,EAAE,MAAM,CAAA;IACrB,cAAc,EAAE,YAAY,GAAG,SAAS,CAAA;IACxC,OAAO,EAAE,SAAS,YAAY,EAAE,CAAA;IAChC,OAAO,EAAE,oBAAoB,GAAG,SAAS,CAAA;CAC1C,GAAG,oBAAoB,GAAG,SAAS,CAanC;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,QAAQ,GAAG,OAAO,CAa1D"}
|
|
@@ -1,24 +1,33 @@
|
|
|
1
|
-
import type { Quote, Surface } from '@funkit/connect-core';
|
|
2
|
-
import type { TFunction } from 'i18next';
|
|
1
|
+
import type { FiatFlow, Quote, Surface } from '@funkit/connect-core';
|
|
3
2
|
/**
|
|
4
|
-
*
|
|
3
|
+
* What a failed payment means for the flow. The failover screen says one
|
|
4
|
+
* thing for every failure, so a code decides only this:
|
|
5
5
|
*
|
|
6
|
-
* -
|
|
7
|
-
*
|
|
8
|
-
* - `
|
|
6
|
+
* - `cancelled`: the buyer backed out. No failover, and leaving after it is a
|
|
7
|
+
* cancellation, not a failure.
|
|
8
|
+
* - `declined`: the card or wallet was refused. Another provider would refuse
|
|
9
|
+
* it too, so the host hears a decline.
|
|
10
|
+
* - `failed`: anything else; the host hears a provider failure.
|
|
9
11
|
*/
|
|
10
|
-
export type
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
export declare function
|
|
12
|
+
export type PaymentFailureKind = 'cancelled' | 'declined' | 'failed';
|
|
13
|
+
/**
|
|
14
|
+
* A paid order that ended badly, named in a pay sheet's code slot so the
|
|
15
|
+
* failover hears it the same way it hears a sheet that gave up: an order
|
|
16
|
+
* failure is a payment failure the sheet did not see.
|
|
17
|
+
*/
|
|
18
|
+
export declare const ORDER_FAILED = "order_failed";
|
|
19
|
+
export declare const ORDER_DECLINED = "order_declined";
|
|
20
|
+
export declare const ORDER_REFUNDED = "order_refunded";
|
|
21
|
+
export declare const ORDER_CANCELLED = "order_cancelled";
|
|
22
|
+
/** Whether a failure code names an order that ended rather than a sheet that gave up. */
|
|
23
|
+
export declare function isOrderFailureCode(code: string): boolean;
|
|
24
|
+
/**
|
|
25
|
+
* The code a failed order's page stands for, or nothing while the order is
|
|
26
|
+
* alive. Every terminal order but a settled one is a failed payment, a refund
|
|
27
|
+
* included: the money went back because the order failed.
|
|
28
|
+
*/
|
|
29
|
+
export declare function orderFailureCode(flow: Pick<FiatFlow, 'page' | 'stepResponse'>): string | undefined;
|
|
30
|
+
export declare function paymentFailureKind(code: string): PaymentFailureKind;
|
|
22
31
|
/**
|
|
23
32
|
* What the amount screen does once a payment surface gave up.
|
|
24
33
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paymentSurfaceFailure.d.ts","sourceRoot":"","sources":["../../../src/fiat/paymentSurfaceFailure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,MAA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,GAAE,MAAmB,GACvB,OAAO,CAQT"}
|
|
@@ -81,6 +81,8 @@ export interface ApplePayReadinessTiming {
|
|
|
81
81
|
paintConfirmed?: boolean;
|
|
82
82
|
uncovered?: boolean;
|
|
83
83
|
interactiveReported?: boolean;
|
|
84
|
+
/** Stripe's native button first committed enabled for this attempt. */
|
|
85
|
+
buttonReadyReported?: boolean;
|
|
84
86
|
terminalOutcome?: 'interactive' | 'provider_failed' | 'dismissed' | 'superseded';
|
|
85
87
|
/** A paint arriving after the cover ceiling can complete readiness. */
|
|
86
88
|
onPaintConfirmed?: () => void;
|
|
@@ -102,6 +104,12 @@ export interface ClaimedSurface {
|
|
|
102
104
|
* reopen needs — Stripe's needs the sign-in credential the sheet arrived with.
|
|
103
105
|
*/
|
|
104
106
|
reopenableUntil?: number;
|
|
107
|
+
/**
|
|
108
|
+
* The page still sends news (`onSettled`) after it reports the payment, so the screen keeps it
|
|
109
|
+
* mounted while the order settles. Absent means the screen unmounts it once the payment is in.
|
|
110
|
+
* A page that emits `onSettled` after `report` must set this; unmounting is the default.
|
|
111
|
+
*/
|
|
112
|
+
reportsAfterPayment?: boolean;
|
|
105
113
|
}
|
|
106
114
|
/**
|
|
107
115
|
* Claims a surface, or declines it.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,OAAO,EACP,aAAa,EACd,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACrD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAE9C,2EAA2E;AAC3E,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;CACb;AAED;;;;;;;;;;GAUG;AACH,MAAM,MAAM,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tC,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,MAAM,CAAA;IAClB,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,uEAAuE;IACvE,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,eAAe,CAAC,EACZ,aAAa,GACb,iBAAiB,GACjB,WAAW,GACX,YAAY,CAAA;IAChB,uEAAuE;IACvE,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAA;CAC9B;AAED;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,aAAa,CAAC;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,CAAC,CAAA;AAEhE,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,mBAAmB,CAAA;IAC5B,MAAM,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,SAAS,CAAA;IAC9C;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAA;CAC9B;AAED;;;;;;;;;GASG;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,EAAE,OAAO,KAAK,cAAc,GAAG,SAAS,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SurfaceAdapter } from '
|
|
1
|
+
import type { SurfaceAdapter } from '../adapter';
|
|
2
2
|
/** Banxa's hosted page collects KYC and takes payment outside the app. */
|
|
3
3
|
export declare const banxaRedirect: SurfaceAdapter;
|
|
4
4
|
//# sourceMappingURL=banxaRedirect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"banxaRedirect.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/banxa/banxaRedirect.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,YAAY,CAAA;AAuBhE,0EAA0E;AAC1E,eAAO,MAAM,aAAa,EAAE,cAU3B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoinbaseCheckoutSurface.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/coinbase/CoinbaseCheckoutSurface.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAQlD,MAAM,WAAW,4BAA4B;IAC3C,WAAW,EAAE,MAAM,CAAA;IACnB,wEAAwE;IACxE,WAAW,EAAE,MAAM,CAAA;IACnB,eAAe,CAAC,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;IAC3D,8CAA8C;IAC9C,OAAO,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,IAAI,CAAA;IACzC,8DAA8D;IAC9D,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,yCAAyC;IACzC,WAAW,EAAE,MAAM,IAAI,CAAA;IACvB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;CAClD;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,WAAW,EACX,WAAW,EACX,eAAe,EACf,OAAO,EACP,MAAM,EACN,WAAW,EACX,QAAQ,GACT,EAAE,4BAA4B,+BAkL9B"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { FiatProvider } from '@funkit/connect-core';
|
|
2
|
+
import { type WebViewProps } from 'react-native-webview';
|
|
3
|
+
/**
|
|
4
|
+
* The hosted Apple Pay route with no session token. It serves the same HTML
|
|
5
|
+
* shell as a real checkout link: the same `/v3/_next` scripts and styles and
|
|
6
|
+
* Apple's `apple-pay-sdk.js`, so loading it fills the web cache those use.
|
|
7
|
+
*/
|
|
8
|
+
export declare const COINBASE_WARMUP_URL = "https://pay.coinbase.com/v3/api-onramp/apple-pay";
|
|
9
|
+
/** A load that stalls without any callback ends here, half the real page's limit. */
|
|
10
|
+
export declare const WARMUP_TIMEOUT_MS = 30000;
|
|
11
|
+
type LoadRequest = Parameters<NonNullable<WebViewProps['onShouldStartLoadWithRequest']>>[0];
|
|
12
|
+
/** Only Coinbase's own pages load in the top frame; nothing leaves the app. */
|
|
13
|
+
export declare function allowsWarmupLoad({ url, isTopFrame }: LoadRequest): boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Tells the amount screen whether Coinbase is the routed Apple Pay provider:
|
|
16
|
+
* the quote's provider once it has one, else the routing table's pick for the
|
|
17
|
+
* amount. With neither during a reprice, the last answer stands. Without
|
|
18
|
+
* `publish` (the gate is off) it does nothing.
|
|
19
|
+
*/
|
|
20
|
+
export declare function useCoinbaseRoute({ provider, tableProvider, paymentMethod, isQuoting, }: {
|
|
21
|
+
provider: FiatProvider | undefined;
|
|
22
|
+
/** What the routing table puts first; known before any quote. */
|
|
23
|
+
tableProvider: FiatProvider | undefined;
|
|
24
|
+
paymentMethod: string;
|
|
25
|
+
isQuoting: boolean;
|
|
26
|
+
}, publish: ((routed: boolean) => void) | undefined): void;
|
|
27
|
+
/**
|
|
28
|
+
* While Coinbase is the routed Apple Pay provider, a hidden page warms DNS, TLS
|
|
29
|
+
* and the web cache for the real one. Once started it runs to its load's end or its timeout,
|
|
30
|
+
* whatever the route does meanwhile, and then goes; there is one per amount
|
|
31
|
+
* screen. Mounted only with the gate on.
|
|
32
|
+
*/
|
|
33
|
+
export declare function CoinbaseWarmup({ routed, checkoutId, }: {
|
|
34
|
+
routed: boolean;
|
|
35
|
+
checkoutId: string;
|
|
36
|
+
}): import("react").JSX.Element | null;
|
|
37
|
+
export {};
|
|
38
|
+
//# sourceMappingURL=CoinbaseWarmup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoinbaseWarmup.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/coinbase/CoinbaseWarmup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAGxD,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAajE;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,qDAA+C,CAAA;AAE/E,qFAAqF;AACrF,eAAO,MAAM,iBAAiB,QAAS,CAAA;AAEvC,KAAK,WAAW,GAAG,UAAU,CAC3B,WAAW,CAAC,YAAY,CAAC,8BAA8B,CAAC,CAAC,CAC1D,CAAC,CAAC,CAAC,CAAA;AAEJ,+EAA+E;AAC/E,wBAAgB,gBAAgB,CAAC,EAAE,GAAG,EAAE,UAAU,EAAE,EAAE,WAAW,GAAG,OAAO,CAK1E;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC9B,EACE,QAAQ,EACR,aAAa,EACb,aAAa,EACb,SAAS,GACV,EAAE;IACD,QAAQ,EAAE,YAAY,GAAG,SAAS,CAAA;IAClC,iEAAiE;IACjE,aAAa,EAAE,YAAY,GAAG,SAAS,CAAA;IACvC,aAAa,EAAE,MAAM,CAAA;IACrB,SAAS,EAAE,OAAO,CAAA;CACnB,EACD,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC,GAAG,SAAS,GAC/C,IAAI,CAQN;AAID;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,EAC7B,MAAM,EACN,UAAU,GACX,EAAE;IACD,MAAM,EAAE,OAAO,CAAA;IACf,UAAU,EAAE,MAAM,CAAA;CACnB,sCA0BA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ApplePayBackendStage, SurfaceAdapter } from '
|
|
1
|
+
import type { ApplePayBackendStage, SurfaceAdapter } from '../adapter';
|
|
2
2
|
export declare function coinbaseBackendStage(endpoint: string): ApplePayBackendStage | undefined;
|
|
3
3
|
/**
|
|
4
4
|
* Coinbase's order arrives already made, with a hosted page that is nothing
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coinbaseApplePay.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/coinbase/coinbaseApplePay.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,oBAAoB,EACpB,cAAc,EAEf,MAAM,YAAY,CAAA;AAQnB,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,MAAM,GACf,oBAAoB,GAAG,SAAS,CAQlC;AA6BD;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,EAAE,cAW9B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coinbaseCardRefusal.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/coinbase/coinbaseCardRefusal.ts"],"names":[],"mappings":"AAmBA,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAE3D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coinbaseOnrampEvents.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/coinbase/coinbaseOnrampEvents.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,MAAM,mBAAmB;AAC7B,kDAAkD;AAChD;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE;AACnB,iDAAiD;GAC/C;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE;AAClB,6DAA6D;GAC3D;IAAE,IAAI,EAAE,WAAW,CAAA;CAAE;AACvB,uEAAuE;GACrE;IAAE,IAAI,EAAE,WAAW,CAAA;CAAE;AACvB,qEAAqE;GACnE;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE;AACpD,8CAA8C;GAC5C;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAA;AAoBtC;;;GAGG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,mBAAmB,GAAG,SAAS,CAyB5E"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { EntryCta, FiatStepResponse, PreparedPayment } from '@funkit/connect-core';
|
|
2
|
+
/** Which check sent the entry back to `POST /fiat/payment-session`. */
|
|
3
|
+
export type CoinbasePreparedFallback = 'ENTRY_NOT_PAYMENT_SESSION' | 'ENTRY_NEEDS_INPUTS' | 'QUOTE_MISMATCH' | 'MALFORMED' | 'SURFACE_UNSUPPORTED' | 'NOT_CLIENT_SURFACE' | 'NO_ORDER';
|
|
4
|
+
export type CoinbasePreparedRound = {
|
|
5
|
+
kind: 'ENTERED';
|
|
6
|
+
response: FiatStepResponse;
|
|
7
|
+
} | {
|
|
8
|
+
kind: 'FALLBACK';
|
|
9
|
+
reason: CoinbasePreparedFallback;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* The payment round a Coinbase quote prepared, entered in place of the
|
|
13
|
+
* `POST /fiat/payment-session` the entry would send. Every level of the
|
|
14
|
+
* payload is checked, as `moonPayPreparedPayment` does: anything this screen
|
|
15
|
+
* cannot draw falls back to the request, and never throws.
|
|
16
|
+
*/
|
|
17
|
+
export declare function coinbasePreparedPayment(prepared: PreparedPayment, entryCta: EntryCta): CoinbasePreparedRound;
|
|
18
|
+
//# sourceMappingURL=coinbasePreparedPayment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coinbasePreparedPayment.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/coinbase/coinbasePreparedPayment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,gBAAgB,EAChB,eAAe,EAChB,MAAM,sBAAsB,CAAA;AAW7B,uEAAuE;AACvE,MAAM,MAAM,wBAAwB,GAChC,2BAA2B,GAC3B,oBAAoB,GACpB,gBAAgB,GAChB,WAAW,GACX,qBAAqB,GACrB,oBAAoB,GACpB,UAAU,CAAA;AAEd,MAAM,MAAM,qBAAqB,GAC7B;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,QAAQ,EAAE,gBAAgB,CAAA;CAAE,GAC/C;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,MAAM,EAAE,wBAAwB,CAAA;CAAE,CAAA;AAO1D;;;;;GAKG;AACH,wBAAgB,uBAAuB,CACrC,QAAQ,EAAE,eAAe,EACzB,QAAQ,EAAE,QAAQ,GACjB,qBAAqB,CA2DvB"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/** How the latest warm-up ended, or `loading` while it runs. */
|
|
2
|
+
export type WarmupStatus = 'loading' | 'loaded' | 'failed' | 'aborted';
|
|
3
|
+
/**
|
|
4
|
+
* The warm-up of this amount-screen visit as a real Coinbase page found it on
|
|
5
|
+
* mount, logged on the readiness events; `none` when this visit ran none.
|
|
6
|
+
*/
|
|
7
|
+
export interface CoinbaseWarmupFields {
|
|
8
|
+
webViewWarmup: 'none' | WarmupStatus;
|
|
9
|
+
/** From the warm-up starting to this page mounting; only for a live or loaded one. */
|
|
10
|
+
warmupLeadMs?: number;
|
|
11
|
+
/** A real Coinbase page mounted earlier in this app process, during a warm-up visit. */
|
|
12
|
+
priorCoinbasePage: boolean;
|
|
13
|
+
}
|
|
14
|
+
export interface Warmup {
|
|
15
|
+
/** The visit that started it; only that visit's end clears it. */
|
|
16
|
+
checkoutId: string;
|
|
17
|
+
startedAt: number;
|
|
18
|
+
status: WarmupStatus;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Scopes the warm-up record to one amount-screen visit: when the visit ends, a
|
|
22
|
+
* later visit's Coinbase page must not credit this one's warm-up.
|
|
23
|
+
*/
|
|
24
|
+
export declare function useCoinbaseWarmupVisit(checkoutId: string): void;
|
|
25
|
+
export declare function noteWarmupStarted(checkoutId: string): Warmup;
|
|
26
|
+
/** Settles a warm-up still loading; one that has already ended keeps its ending. */
|
|
27
|
+
export declare function settleWarmup(warmup: Warmup, status: Exclude<WarmupStatus, 'loading'>): boolean;
|
|
28
|
+
/** Whether a real Coinbase checkout page is mounted anywhere right now. */
|
|
29
|
+
export declare function useCoinbasePageMounted(): boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Registers a real Coinbase page for as long as it is mounted, which is what
|
|
32
|
+
* takes the warm-up down. Returns the warm-up as it stood at this mount, or
|
|
33
|
+
* nothing outside a warm-up visit (the gate is off), where it does nothing.
|
|
34
|
+
*/
|
|
35
|
+
export declare function useCoinbasePageRegistration(): CoinbaseWarmupFields | undefined;
|
|
36
|
+
/** The warm-up as it stood when this visit's latest real Coinbase page mounted. */
|
|
37
|
+
export declare function coinbaseWarmupFields(): CoinbaseWarmupFields | undefined;
|
|
38
|
+
/** Module state outlives a test; each one starts from a fresh app process. */
|
|
39
|
+
export declare function __resetCoinbaseWarmup(): void;
|
|
40
|
+
//# sourceMappingURL=coinbaseWarmupStore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coinbaseWarmupStore.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/coinbase/coinbaseWarmupStore.ts"],"names":[],"mappings":"AAEA,gEAAgE;AAChE,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAA;AAEtE;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACnC,aAAa,EAAE,MAAM,GAAG,YAAY,CAAA;IACpC,sFAAsF;IACtF,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,wFAAwF;IACxF,iBAAiB,EAAE,OAAO,CAAA;CAC3B;AAED,MAAM,WAAW,MAAM;IACrB,kEAAkE;IAClE,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,YAAY,CAAA;CACrB;AA0BD;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAY/D;AAED,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAG5D;AAED,oFAAoF;AACpF,wBAAgB,YAAY,CAC1B,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,OAAO,CAAC,YAAY,EAAE,SAAS,CAAC,GACvC,OAAO,CAMT;AAED,2EAA2E;AAC3E,wBAAgB,sBAAsB,IAAI,OAAO,CAEhD;AAqBD;;;;GAIG;AACH,wBAAgB,2BAA2B,IACvC,oBAAoB,GACpB,SAAS,CAiBZ;AAED,mFAAmF;AACnF,wBAAgB,oBAAoB,IAAI,oBAAoB,GAAG,SAAS,CAEvE;AAED,8EAA8E;AAC9E,wBAAgB,qBAAqB,IAAI,IAAI,CAO5C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCoinbaseWarmupGate.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/coinbase/useCoinbaseWarmupGate.ts"],"names":[],"mappings":"AAEA,0DAA0D;AAC1D,eAAO,MAAM,oBAAoB,iCAAiC,CAAA;AAElE,wBAAgB,qBAAqB,IAAI,OAAO,CAE/C"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PreparedPayment, RoutingTableProviderInputs } from '@funkit/connect-core';
|
|
2
2
|
import { type ReactNode } from 'react';
|
|
3
|
-
import type { ApplePayBackendStage, SurfaceAdapter } from '
|
|
3
|
+
import type { ApplePayBackendStage, SurfaceAdapter } from '../adapter';
|
|
4
4
|
export declare function moonPayBackendStage(endpoint: string): ApplePayBackendStage | undefined;
|
|
5
5
|
export type MoonPayPreparedPayment = PreparedPayment;
|
|
6
6
|
/** Complete quote-owned payment artifact retained across auth verification. */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"moonpay.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/moonpay/moonpay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,0BAA0B,EAE3B,MAAM,sBAAsB,CAAA;AAkB7B,OAAO,EACL,KAAK,SAAS,EAQf,MAAM,OAAO,CAAA;AASd,OAAO,KAAK,EACV,oBAAoB,EACpB,cAAc,EAGf,MAAM,YAAY,CAAA;AA+BnB,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,MAAM,GACf,oBAAoB,GAAG,SAAS,CAWlC;AAiBD,MAAM,MAAM,sBAAsB,GAAG,eAAe,CAAA;AAiDpD,+EAA+E;AAC/E,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,eAAe,GAAG,SAAS,GACpC,sBAAsB,GAAG,SAAS,CAyCpC;AASD,eAAO,MAAM,OAAO,EAAE,cAuDrB,CAAA;AAmMD,6DAA6D;AAC7D,wBAAgB,uBAAuB,WAJ9B,0BAA0B,GAAG,SAAS,cAM9C;AAED,wBAAgB,kBAAkB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,+BAMvE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"moonpayApplePayPainted.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/moonpay/moonpayApplePayPainted.ts"],"names":[],"mappings":"AAIA,UAAU,oBAAoB;IAC5B,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;CACzC;AAUD,0EAA0E;AAC1E,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,GAAG,IAAI,CAejE;AAED,8EAA8E;AAC9E,wBAAgB,0BAA0B,IAAI,IAAI,CAQjD;AAED,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,MAAM,IAAI,GACnB,MAAM,IAAI,CAOZ"}
|
package/dist/src/fiat/providers/{moonpayApplePayStyle.d.ts → moonpay/moonpayApplePayStyle.d.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ApplePayButtonSettings } from '@moonpay/platform-sdk-react-native';
|
|
2
|
-
import { type ApplePayButtonMetrics } from '
|
|
2
|
+
import { type ApplePayButtonMetrics } from '../applePayButtonMetrics';
|
|
3
3
|
/** MoonPay's hosted Apple Pay button, drawn to the slot it stands in. */
|
|
4
4
|
export declare function moonPayApplePayButtonSettings({ height, radius, }: ApplePayButtonMetrics): ApplePayButtonSettings;
|
|
5
5
|
/** The page behind the button, cleared so the slot's own fill shows. */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"moonpayApplePayStyle.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/moonpay/moonpayApplePayStyle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAA;AAEhF,OAAO,EAEL,KAAK,qBAAqB,EAE3B,MAAM,0BAA0B,CAAA;AAEjC,yEAAyE;AACzE,wBAAgB,6BAA6B,CAAC,EAC5C,MAAM,EACN,MAAM,GACP,EAAE,qBAAqB,GAAG,sBAAsB,CAOhD;AAED,wEAAwE;AACxE,eAAO,MAAM,4BAA4B,oRAQxC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"moonpayAuthStyle.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/moonpay/moonpayAuthStyle.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAA;AAGhE,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,oFAAoF;AACpF,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,WAAW,GAAG,kBAAkB,CAQzE;AAID;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,kBAAkB,GAAG,MAAM,CAYzE;AAED,oGAAoG;AACpG,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,kBAAkB,GAAG,MAAM,CAEzE;AAED,kGAAkG;AAClG,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,aAAa,EAAE,MAAM,CAAA;IACrB,eAAe,EAAE,MAAM,CAAA;IACvB,eAAe,EAAE,MAAM,CAAA;IACvB,iBAAiB,EAAE,MAAM,CAAA;CAC1B;AAED,mEAAmE;AACnE,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,WAAW,GACjB,uBAAuB,CAczB;AA2BD;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,uBAAuB,GAC/B,MAAM,CAQR;AAED,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,uBAAuB,GAC/B,MAAM,CAKR;AA2CD;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,uBAAuB,GAAG,MAAM,CAU3E;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,uBAAuB,GAAG,MAAM,CA6G5E"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MoonPay's codes that fault the buyer's card, so the host hears a decline,
|
|
3
|
+
* not an outage. Codes are ours, prefixed by where MoonPay said it
|
|
4
|
+
* (`transaction_` is the frame's `FrameTransactionFailureCode`).
|
|
5
|
+
*/
|
|
6
|
+
export declare function isMoonpayCardRefusal(code: string): boolean;
|
|
7
|
+
//# sourceMappingURL=moonpayCardRefusal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"moonpayCardRefusal.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/moonpay/moonpayCardRefusal.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAK1D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"moonpayFeeQuote.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/moonpay/moonpayFeeQuote.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAEjD,KAAK,SAAS,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,CAAA;AAE5D,4EAA4E;AAC5E,wBAAgB,eAAe,CAAC,KAAK,EAAE;IACrC,MAAM,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE;YAAE,IAAI,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,CAAA;IACnD,WAAW,EAAE,WAAW,GAAG,WAAW,CAAA;IACtC,IAAI,EAAE;QACJ,OAAO,CAAC,EAAE,SAAS,CAAA;QACnB,OAAO,CAAC,EAAE,SAAS,CAAA;QACnB,SAAS,CAAC,EAAE,SAAS,CAAA;QACrB,IAAI,CAAC,EAAE,SAAS,CAAA;QAChB,OAAO,CAAC,EAAE,SAAS,CAAA;KACpB,CAAA;CACF,GAAG,QAAQ,GAAG,SAAS,CAiCvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"moonpayHandoffCard.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/moonpay/moonpayHandoffCard.tsx"],"names":[],"mappings":"AAOA,gFAAgF;AAChF,wBAAgB,gBAAgB,CAAC,OAAO,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,WAE5E;AAiBD,yEAAyE;AACzE,wBAAgB,kBAAkB,CAAC,EACjC,UAAU,EACV,MAAM,GACP,EAAE;IACD,UAAU,EAAE,MAAM,IAAI,CAAA;IACtB,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB,+BAiBA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"moonpayPaymentDisclosures.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/moonpay/moonpayPaymentDisclosures.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAEnD,MAAM,WAAW,wBAAwB;IACvC,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,MAAM,2BAA2B,GACnC;IACE,IAAI,EAAE,UAAU,CAAA;IAChB,WAAW,EAAE,SAAS,CAAC,SAAS,iBAAiB,EAAE,CAAC,EAAE,CAAA;CACvD,GACD;IAAE,IAAI,EAAE,aAAa,CAAC;IAAC,WAAW,EAAE,SAAS,wBAAwB,EAAE,CAAA;CAAE,CAAA;AAqB7E,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,iBAAiB,EAAE,CAepE;AAED,wBAAgB,yBAAyB,CACvC,WAAW,EAAE,SAAS,wBAAwB,EAAE,GAC/C,2BAA2B,CAa7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"moonpayPreparedPayment.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/moonpay/moonpayPreparedPayment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAG7E,OAAO,EAAE,KAAK,sBAAsB,EAA0B,MAAM,WAAW,CAAA;AAE/E,oGAAoG;AACpG,wBAAgB,6BAA6B,CAC3C,QAAQ,EAAE,gBAAgB,EAC1B,QAAQ,EAAE,sBAAsB,GAC/B,gBAAgB,CA8BlB;AAED,4FAA4F;AAC5F,wBAAgB,qBAAqB,CACnC,GAAG,EAAE,eAAe,GAAG,SAAS,GAC/B,CAAC,CAAC,QAAQ,EAAE,gBAAgB,KAAK,gBAAgB,CAAC,GAAG,SAAS,CAqBhE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"moonpaySharingConsent.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/moonpay/moonpaySharingConsent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAWpD,MAAM,WAAW,gCAAgC;IAC/C,YAAY,EAAE,OAAO,CAAA;IACrB,UAAU,EAAE,MAAM,IAAI,CAAA;IACtB,QAAQ,EAAE,MAAM,IAAI,CAAA;CACrB;AAED,iGAAiG;AACjG,wBAAgB,2BAA2B,CAAC,EAC1C,YAAY,EACZ,UAAU,EACV,QAAQ,GACT,EAAE,gCAAgC,+BAkBlC;AAED,uEAAuE;AACvE,wBAAgB,yBAAyB,CAAC,EACxC,IAAI,EACJ,MAAM,GACP,EAAE;IACD,IAAI,EAAE,QAAQ,CAAA;IACd,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB,+BAoBA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StripeSessionAuthScreen.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/stripe/StripeSessionAuthScreen.tsx"],"names":[],"mappings":"AAWA,MAAM,WAAW,4BAA4B;IAC3C,aAAa,EAAE,MAAM,CAAA;IACrB,YAAY,EAAE,OAAO,CAAA;IACrB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,UAAU,EAAE,MAAM,IAAI,CAAA;IACtB,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AAED,iFAAiF;AACjF,wBAAgB,uBAAuB,CAAC,EACtC,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,OAAO,GACR,EAAE,4BAA4B,+BAgE9B"}
|
package/dist/src/fiat/providers/{stripeAccountCreation.d.ts → stripe/stripeAccountCreation.d.ts}
RENAMED
|
@@ -10,11 +10,12 @@ import type { StripeLinkRegistration } from './stripeOnramp';
|
|
|
10
10
|
*/
|
|
11
11
|
export declare function stripeLinkRegistrationFrom(values: FormValues, verifiedEmail: string | undefined): StripeLinkRegistration | undefined;
|
|
12
12
|
/**
|
|
13
|
-
* What the backend already holds for a Stripe
|
|
14
|
-
*
|
|
15
|
-
*
|
|
13
|
+
* What the backend already holds for a Stripe form's fields (ENG-6590), or `undefined` when this is
|
|
14
|
+
* not a Stripe round or it holds none of them. Account creation and the identity rounds after it
|
|
15
|
+
* both carry them, since the device pushes both to Stripe. `complete` says whether they answer
|
|
16
|
+
* every required field, which is when the device can push without showing the form at all.
|
|
16
17
|
*/
|
|
17
|
-
export declare function
|
|
18
|
+
export declare function getPrefilledStripeFormData(stepResponse: FiatFlow['stepResponse'], params: Record<string, JsonValue> | undefined): {
|
|
18
19
|
values: FormValues;
|
|
19
20
|
complete: boolean;
|
|
20
21
|
} | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stripeAccountCreation.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/stripe/stripeAccountCreation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAG3E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAA;AAE5D;;;;;;;GAOG;AACH,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,UAAU,EAClB,aAAa,EAAE,MAAM,GAAG,SAAS,GAChC,sBAAsB,GAAG,SAAS,CAkBpC;AAUD;;;;;GAKG;AACH,wBAAgB,0BAA0B,CACxC,YAAY,EAAE,QAAQ,CAAC,cAAc,CAAC,EACtC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,SAAS,GAC5C;IAAE,MAAM,EAAE,UAAU,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,GAAG,SAAS,CAkCvD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stripeApplePayButton.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/stripe/stripeApplePayButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAM1C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAA;AAC/D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAM5C;;;;;;;;;GASG;AACH,wBAAgB,wBAAwB,CAAC,EACvC,WAAW,EACX,iBAAiB,GAClB,EAAE,IAAI,CACL,SAAS,EACT,aAAa,GAAG,mBAAmB,CACpC,GAAG,aAAa,CAAC,yBAAyB,CAAC,CA8B3C"}
|