@funkit/connect-rn 12.0.0 → 12.0.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 +51 -0
- package/dist/{chunk-BC6N7CI3.js → chunk-G6PSBLQT.js} +130 -82
- package/dist/chunk-G6PSBLQT.js.map +7 -0
- package/dist/{chunk-UR3BDCRK.js → chunk-IEQWKP4M.js} +2 -2
- package/dist/{chunk-UDEGXDMU.js → chunk-QNUFRAJH.js} +72 -68
- package/dist/chunk-QNUFRAJH.js.map +7 -0
- package/dist/clients/lighter.js +1 -1
- package/dist/clients/nado.js +2 -2
- package/dist/index.js +46318 -45309
- package/dist/index.js.map +4 -4
- package/dist/preview.js +117 -1
- package/dist/preview.js.map +2 -2
- package/dist/src/fiat/form/FiatFormScreen.d.ts.map +1 -1
- package/dist/src/fiat/kyc/kycFieldValidators.d.ts.map +1 -1
- package/dist/src/fiat/kyc/kycFormState.d.ts +8 -0
- package/dist/src/fiat/kyc/kycFormState.d.ts.map +1 -1
- package/dist/src/fiat/payment/failoverKind.d.ts +19 -1
- package/dist/src/fiat/payment/failoverKind.d.ts.map +1 -1
- package/dist/src/fiat/payment/failoverPrompt.d.ts +13 -3
- package/dist/src/fiat/payment/failoverPrompt.d.ts.map +1 -1
- package/dist/src/fiat/payment/nextSwitchProvider.d.ts +21 -0
- package/dist/src/fiat/payment/nextSwitchProvider.d.ts.map +1 -0
- package/dist/src/fiat/payment/paymentSurfaceFailure.d.ts +5 -0
- package/dist/src/fiat/payment/paymentSurfaceFailure.d.ts.map +1 -1
- package/dist/src/fiat/payment/prefetchSwitch.d.ts +30 -0
- package/dist/src/fiat/payment/prefetchSwitch.d.ts.map +1 -0
- package/dist/src/fiat/payment/useFailoverLanding.d.ts +41 -0
- package/dist/src/fiat/payment/useFailoverLanding.d.ts.map +1 -0
- package/dist/src/fiat/payment/usePaymentFailureAnswer.d.ts +38 -3
- package/dist/src/fiat/payment/usePaymentFailureAnswer.d.ts.map +1 -1
- package/dist/src/fiat/payment/useStepShown.d.ts +8 -0
- package/dist/src/fiat/payment/useStepShown.d.ts.map +1 -0
- package/dist/src/fiat/processing/FailoverPrompt.d.ts +10 -0
- package/dist/src/fiat/processing/FailoverPrompt.d.ts.map +1 -1
- package/dist/src/fiat/processing/ProcessingFailure.d.ts +5 -0
- package/dist/src/fiat/processing/ProcessingFailure.d.ts.map +1 -1
- package/dist/src/fiat/providerFlow.d.ts +45 -3
- package/dist/src/fiat/providerFlow.d.ts.map +1 -1
- package/dist/src/fiat/providerHandoff.d.ts +4 -0
- package/dist/src/fiat/providerHandoff.d.ts.map +1 -1
- package/dist/src/fiat/providers/checkout/observePrefetch.d.ts +27 -0
- package/dist/src/fiat/providers/checkout/observePrefetch.d.ts.map +1 -0
- package/dist/src/fiat/providers/checkout/slotOutlets.d.ts +2 -0
- package/dist/src/fiat/providers/checkout/slotOutlets.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbase/coinbaseCardRefusal.d.ts +6 -0
- package/dist/src/fiat/providers/coinbase/coinbaseCardRefusal.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbase/next/coinbaseCheckoutTerms.d.ts +5 -0
- package/dist/src/fiat/providers/coinbase/next/coinbaseCheckoutTerms.d.ts.map +1 -0
- package/dist/src/fiat/providers/coinbase/next/index.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbase/next/prefetch.d.ts +28 -0
- package/dist/src/fiat/providers/coinbase/next/prefetch.d.ts.map +1 -0
- package/dist/src/fiat/providers/coinbase/next/useCoinbaseCheckout.d.ts +1 -1
- package/dist/src/fiat/providers/coinbase/next/useCoinbaseCheckout.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/fullCheckout/Checkout.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/fullCheckout/checkoutScreens.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/fullCheckout/moonPayCheckoutTerms.d.ts +6 -0
- package/dist/src/fiat/providers/moonpay/fullCheckout/moonPayCheckoutTerms.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/fullCheckout/prefetch.d.ts +28 -0
- package/dist/src/fiat/providers/moonpay/fullCheckout/prefetch.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/fullCheckout/useCheckoutCalls.d.ts +3 -1
- package/dist/src/fiat/providers/moonpay/fullCheckout/useCheckoutCalls.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/fullCheckout/useCheckoutModel.d.ts +2 -1
- package/dist/src/fiat/providers/moonpay/fullCheckout/useCheckoutModel.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/guestCheckout/Checkout.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/guestCheckout/checkoutScreens.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/guestCheckout/useGuestCheckoutModel.d.ts +3 -1
- package/dist/src/fiat/providers/moonpay/guestCheckout/useGuestCheckoutModel.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/index.d.ts +1 -1
- package/dist/src/fiat/providers/moonpay/index.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/sdk/Host.d.ts +7 -1
- package/dist/src/fiat/providers/moonpay/sdk/Host.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/next/Checkout.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/next/index.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/next/prefetch.d.ts +28 -0
- package/dist/src/fiat/providers/stripe/next/prefetch.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/next/stripeCheckoutTerms.d.ts +5 -0
- package/dist/src/fiat/providers/stripe/next/stripeCheckoutTerms.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/next/useStripeCheckout.d.ts +2 -1
- package/dist/src/fiat/providers/stripe/next/useStripeCheckout.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/next/useStripeCheckoutCalls.d.ts +3 -1
- package/dist/src/fiat/providers/stripe/next/useStripeCheckoutCalls.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/next/useStripeIdentity.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/next/useStripeKycForm.d.ts +26 -2
- package/dist/src/fiat/providers/stripe/next/useStripeKycForm.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/next/useStripePayment.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripeCheckout.d.ts +5 -1
- package/dist/src/fiat/providers/stripe/stripeCheckout.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/useStripePayButton.d.ts +8 -4
- package/dist/src/fiat/providers/stripe/useStripePayButton.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/useStripeState.d.ts +2 -1
- package/dist/src/fiat/providers/stripe/useStripeState.d.ts.map +1 -1
- package/dist/src/fiat/useProviderCheckout.d.ts +11 -1
- package/dist/src/fiat/useProviderCheckout.d.ts.map +1 -1
- package/dist/src/flow/DepositFlowContent.d.ts.map +1 -1
- package/dist/src/flow/Drawer.d.ts.map +1 -1
- package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
- package/dist/src/flow/FlowSheet.d.ts.map +1 -1
- package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
- package/dist/src/flow/PaymentMethodPickerSheet.d.ts +8 -1
- package/dist/src/flow/PaymentMethodPickerSheet.d.ts.map +1 -1
- package/dist/src/flow/paymentPickerFoot.d.ts +7 -0
- package/dist/src/flow/paymentPickerFoot.d.ts.map +1 -0
- package/dist/src/flow/quickAmounts.d.ts.map +1 -1
- package/dist/src/flow/renderFiatFlowScreen.d.ts +12 -3
- package/dist/src/flow/renderFiatFlowScreen.d.ts.map +1 -1
- package/dist/src/preview/flowPreview.d.ts +18 -0
- package/dist/src/preview/flowPreview.d.ts.map +1 -1
- package/dist/src/preview/scenarioCatalog.d.ts +30 -0
- package/dist/src/preview/scenarioCatalog.d.ts.map +1 -1
- package/dist/src/preview/scenarios.d.ts.map +1 -1
- package/dist/src/swapped/SwappedScreen.d.ts +6 -1
- package/dist/src/swapped/SwappedScreen.d.ts.map +1 -1
- package/dist/src/swapped/SwappedScreenShell.d.ts +13 -1
- package/dist/src/swapped/SwappedScreenShell.d.ts.map +1 -1
- package/dist/src/swapped/SwappedWebView.d.ts.map +1 -1
- package/dist/src/swapped/paymentNavigation.d.ts +0 -3
- package/dist/src/swapped/paymentNavigation.d.ts.map +1 -1
- package/dist/src/swapped/swappedV2Theme.d.ts +7 -0
- package/dist/src/swapped/swappedV2Theme.d.ts.map +1 -1
- package/dist/src/swapped/useSwappedEmbed.d.ts +3 -7
- package/dist/src/swapped/useSwappedEmbed.d.ts.map +1 -1
- package/dist/src/transfer/fops.d.ts +4 -2
- package/dist/src/transfer/fops.d.ts.map +1 -1
- package/dist/src/utils/withAlpha.d.ts +5 -0
- package/dist/src/utils/withAlpha.d.ts.map +1 -1
- package/package.json +4 -4
- package/dist/chunk-BC6N7CI3.js.map +0 -7
- package/dist/chunk-UDEGXDMU.js.map +0 -7
- package/dist/src/swapped/swappedV2Env.d.ts +0 -24
- package/dist/src/swapped/swappedV2Env.d.ts.map +0 -1
- /package/dist/{chunk-UR3BDCRK.js.map → chunk-IEQWKP4M.js.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FiatFormScreen.d.ts","sourceRoot":"","sources":["../../../../src/fiat/form/FiatFormScreen.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,aAAa,EACb,YAAY,EACZ,cAAc,EAEd,UAAU,EACV,SAAS,EACT,KAAK,EACN,MAAM,sBAAsB,CAAA;AA0B7B,OAAO,EAGL,KAAK,cAAc,EAapB,MAAM,cAAc,CAAA;AAqCrB,4EAA4E;AAC5E,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,cAAc,CAAA;IACpB,gFAAgF;IAChF,KAAK,CAAC,EAAE,KAAK,CAA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ACZ,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;CAC/B;AAED,mFAAmF;AACnF,wBAAgB,eAAe,CAAC,EAC9B,IAAI,EACJ,MAAM,EACN,cAAc,EACd,aAAa,EACb,cAAc,EACd,YAAY,EACZ,OAAO,EACP,WAAW,EACX,YAAY,EACZ,aAAa,EACb,SAAS,EACT,QAAQ,EACR,OAAO,EACP,KAAK,EACL,IAAI,EACJ,MAAM,GACP,EAAE,oBAAoB,sCAgmBtB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kycFieldValidators.d.ts","sourceRoot":"","sources":["../../../../src/fiat/kyc/kycFieldValidators.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,
|
|
1
|
+
{"version":3,"file":"kycFieldValidators.d.ts","sourceRoot":"","sources":["../../../../src/fiat/kyc/kycFieldValidators.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,EACL,KAAK,aAAa,EAInB,MAAM,gBAAgB,CAAA;AAEvB,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,SAAS,EAChB,SAAS,CAAC,EAAE,CAAC,GAAG,CAAC;AACjB,6DAA6D;AAC7D,OAAO,CAAC,EAAE,SAAS;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,EAAE;qBAEb;QACpB,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;KAC1B,KAAK,aAAa,GAAG,SAAS;;;;cAqBhC"}
|
|
@@ -60,6 +60,14 @@ export declare const MINIMUM_AGE_YEARS = 18;
|
|
|
60
60
|
* cannot fail someone on their birthday.
|
|
61
61
|
*/
|
|
62
62
|
export declare function underageIssue(value: string, today?: Date): 'DATE_UNDERAGE' | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* Whether a phone number is one its country actually hands out: the right
|
|
65
|
+
* length and leading digits for its calling code.
|
|
66
|
+
*
|
|
67
|
+
* The server's pattern takes a `+` and two to fifteen digits, so `+436` passed
|
|
68
|
+
* and Continue sent it. A blank answer is left to the required rule.
|
|
69
|
+
*/
|
|
70
|
+
export declare function phoneNumberIssue(value: string): 'PATTERN' | undefined;
|
|
63
71
|
/** Keep every rule alive when its field's page is unmounted. */
|
|
64
72
|
export declare function validateKycForm(form: FormDescriptor, values: FormValues): Record<string, KycFieldIssue>;
|
|
65
73
|
//# sourceMappingURL=kycFormState.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kycFormState.d.ts","sourceRoot":"","sources":["../../../../src/fiat/kyc/kycFormState.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,cAAc,EACd,SAAS,EACT,cAAc,EACd,UAAU,EACV,SAAS,EACV,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"kycFormState.d.ts","sourceRoot":"","sources":["../../../../src/fiat/kyc/kycFormState.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,cAAc,EACd,SAAS,EACT,cAAc,EACd,UAAU,EACV,SAAS,EACV,MAAM,sBAAsB,CAAA;AAG7B,2EAA2E;AAC3E,MAAM,MAAM,aAAa,GAAG,cAAc,GAAG,eAAe,GAAG,SAAS,CAAA;AAexE;;;;;;GAMG;AACH,wBAAgB,UAAU,CACxB,MAAM,EAAE,SAAS,OAAO,EAAE,GAAG,SAAS,GACrC,aAAa,GAAG,SAAS,CAE3B;AAED,iFAAiF;AACjF,eAAO,MAAM,WAAW,UAAW,SAAS,GAAG,SAAS,KAAG,MACnB,CAAA;AAExC;;;;;;GAMG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;AAElD,+EAA+E;AAC/E,wBAAgB,WAAW,CAAC,MAAM,EAAE,UAAU,GAAG,aAAa,CAO7D;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,SAAS,SAAS,EAAE,EAC5B,MAAM,EAAE,UAAU,GACjB,SAAS,EAAE,CAIb;AAED;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,SAAS,SAAS,EAAE,EAC5B,MAAM,EAAE,UAAU,EAClB,OAAO,EAAE,UAAU,GAClB,SAAS,EAAE,CAUb;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,SAAS,SAAS,EAAE,EAC5B,OAAO,EAAE,UAAU,GAAG,SAAS,EAC/B,YAAY,EAAE,MAAM,GAAG,SAAS,GAC/B,SAAS,EAAE,CAYb;AAED,uEAAuE;AACvE,eAAO,MAAM,iBAAiB,KAAK,CAAA;AAInC;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAC3B,KAAK,EAAE,MAAM,EACb,KAAK,GAAE,IAAiB,GACvB,eAAe,GAAG,SAAS,CAuB7B;AAWD;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAKrE;AAED,gEAAgE;AAChE,wBAAgB,eAAe,CAC7B,IAAI,EAAE,cAAc,EACpB,MAAM,EAAE,UAAU,GACjB,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAY/B"}
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
+
import type { FiatProvider } from '@funkit/connect-core';
|
|
1
2
|
import type { PaymentFailoverKind } from './providerFailover';
|
|
2
3
|
import { type PaymentFailureKind } from './paymentSurfaceFailure';
|
|
3
4
|
/**
|
|
4
5
|
* The fail state the failover sheet shows (Figma 5813-5533); `undefined`
|
|
5
6
|
* while the two-way payment-failed sheet answers instead.
|
|
6
7
|
*/
|
|
7
|
-
export type FailoverPromptKind = 'cardNotFound' | 'prepaidDeclined' | 'cardDeclined' | 'bankApproval' | 'insufficientFunds' | 'insufficientFundsAtMinimum'
|
|
8
|
+
export type FailoverPromptKind = 'cardNotFound' | 'prepaidDeclined' | 'cardDeclined' | 'bankApproval' | 'insufficientFunds' | 'insufficientFundsAtMinimum'
|
|
9
|
+
/** A card Coinbase or MoonPay declined, switched to another partner (product, 2026-11-04). */
|
|
10
|
+
| 'cardDeclinedSwitch'
|
|
11
|
+
/** A provider checkout's failure no other state names: try again, or another method (product, 2026-11-04). */
|
|
12
|
+
| 'fallback';
|
|
8
13
|
/**
|
|
9
14
|
* How long a closed Apple Pay sheet's card waits before it rises, so it
|
|
10
15
|
* follows the sheet out instead of racing it (product, 2026-11-02).
|
|
@@ -22,6 +27,19 @@ export declare function hostsPayButton(kind: FailoverPromptKind): boolean;
|
|
|
22
27
|
* buyer presses it (product, 2026-11-02).
|
|
23
28
|
*/
|
|
24
29
|
export declare function switchesProvider(kind: FailoverPromptKind): boolean;
|
|
30
|
+
/**
|
|
31
|
+
* `/fiat/next` only: the fail state a provider checkout's failure gets when `failoverKindFor`
|
|
32
|
+
* names none (product, 2026-11-04).
|
|
33
|
+
* - Stripe's declined order is its card declined: another card, a debit one (plan state 5a).
|
|
34
|
+
* - A card Coinbase or MoonPay declined switches partner (plan state 1). With no partner left,
|
|
35
|
+
* Coinbase pays again from the declined sheet (plan 1d). MoonPay's decline spent its quote, so
|
|
36
|
+
* its next checkout waits for a tap the sheet can't host: the fallback's Try again starts it.
|
|
37
|
+
*/
|
|
38
|
+
export declare function nextFailoverKindFor({ code, provider, hasNextPartner, }: {
|
|
39
|
+
code: string;
|
|
40
|
+
provider: FiatProvider | undefined;
|
|
41
|
+
hasNextPartner: boolean;
|
|
42
|
+
}): FailoverPromptKind | undefined;
|
|
25
43
|
/**
|
|
26
44
|
* Which fail state answers a failure, if the design gives it one (ENG-7225).
|
|
27
45
|
* - A closed sheet and a prepaid decline offer a switch on Continue
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"failoverKind.d.ts","sourceRoot":"","sources":["../../../../src/fiat/payment/failoverKind.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"failoverKind.d.ts","sourceRoot":"","sources":["../../../../src/fiat/payment/failoverKind.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAIxD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AAC7D,OAAO,EAEL,KAAK,kBAAkB,EAExB,MAAM,yBAAyB,CAAA;AAEhC;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAC1B,cAAc,GACd,iBAAiB,GACjB,cAAc,GACd,cAAc,GACd,mBAAmB,GACnB,4BAA4B;AAC9B,8FAA8F;GAC5F,oBAAoB;AACtB,8GAA8G;GAC5G,UAAU,CAAA;AAEd;;;GAGG;AACH,eAAO,MAAM,0BAA0B,MAAM,CAAA;AAQ7C;;;;GAIG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,kBAAkB,GAAG,SAAS,GACrC,mBAAmB,CAKrB;AAgBD,wBAAgB,cAAc,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAEhE;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAMlE;AAuBD;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,IAAI,EACJ,QAAQ,EACR,cAAc,GACf,EAAE;IACD,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,YAAY,GAAG,SAAS,CAAA;IAClC,cAAc,EAAE,OAAO,CAAA;CACxB,GAAG,kBAAkB,GAAG,SAAS,CAWjC;AAED;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,kBAAkB,EACxB,cAAc,UAAQ,GACrB,kBAAkB,GAAG,SAAS,CAiBhC;AAED,mFAAmF;AACnF,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEvD"}
|
|
@@ -7,14 +7,24 @@ import type { PaymentFailureAnswer } from './usePaymentFailureAnswer';
|
|
|
7
7
|
* with none, the verified hand-back while a failover's payment waits, or
|
|
8
8
|
* the daily limit's sheet.
|
|
9
9
|
*/
|
|
10
|
-
export declare function failoverPrompt(answer: Pick<PaymentFailureAnswer, 'failover' | 'dismiss' | 'requote' | 'recoverOnClose' | 'dismissOnClose'>, t: TFunction, verified?: {
|
|
10
|
+
export declare function failoverPrompt(answer: Pick<PaymentFailureAnswer, 'failover' | 'dismiss' | 'requote' | 'recoverOnClose' | 'dismissOnClose' | 'retry' | 'changeMethod' | 'canChangeMethod' | 'close'>, t: TFunction, verified?: {
|
|
11
11
|
onPay: () => void;
|
|
12
12
|
onClose: () => void;
|
|
13
|
-
}, limit?: FailoverPromptProps
|
|
13
|
+
}, limit?: FailoverPromptProps, landed?: {
|
|
14
|
+
onClose: () => void;
|
|
15
|
+
}, switching?: {
|
|
16
|
+
from: SwitchPromptKind;
|
|
17
|
+
onClose: () => void;
|
|
18
|
+
}): FailoverPromptProps | undefined;
|
|
19
|
+
/** The fail states whose Continue switches partners. */
|
|
20
|
+
export type SwitchPromptKind = Extract<FailoverPromptKind, 'cardNotFound' | 'prepaidDeclined' | 'cardDeclinedSwitch'>;
|
|
21
|
+
export declare function isSwitchPrompt(kind: FailoverPromptKind | undefined): kind is SwitchPromptKind;
|
|
14
22
|
/**
|
|
15
23
|
* What the verified hand-back does to the card sheet as the hold comes and
|
|
16
24
|
* goes. A hold that lifts under it (a poll moved the round on) leaves it
|
|
17
25
|
* nothing to show, and an empty card can't be closed.
|
|
18
26
|
*/
|
|
19
|
-
export declare function verifiedSheetMove(held: boolean, showing: string | null, failover: FailoverPromptKind | undefined
|
|
27
|
+
export declare function verifiedSheetMove(held: boolean, showing: string | null, failover: FailoverPromptKind | undefined,
|
|
28
|
+
/** The sheet a failover's Continue kept up has its own copy: no hold lifting empties it. */
|
|
29
|
+
switching?: boolean): 'open' | 'close' | undefined;
|
|
20
30
|
//# sourceMappingURL=failoverPrompt.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"failoverPrompt.d.ts","sourceRoot":"","sources":["../../../../src/fiat/payment/failoverPrompt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAA;AACvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AACxD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAErE;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,IAAI,CACV,oBAAoB,
|
|
1
|
+
{"version":3,"file":"failoverPrompt.d.ts","sourceRoot":"","sources":["../../../../src/fiat/payment/failoverPrompt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAA;AACvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AACxD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAErE;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,IAAI,CACV,oBAAoB,EAClB,UAAU,GACV,SAAS,GACT,SAAS,GACT,gBAAgB,GAChB,gBAAgB,GAChB,OAAO,GACP,cAAc,GACd,iBAAiB,GACjB,OAAO,CACV,EACD,CAAC,EAAE,SAAS,EACZ,QAAQ,CAAC,EAAE;IAAE,KAAK,EAAE,MAAM,IAAI,CAAC;IAAC,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,EACrD,KAAK,CAAC,EAAE,mBAAmB,EAC3B,MAAM,CAAC,EAAE;IAAE,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,EAChC,SAAS,CAAC,EAAE;IAAE,IAAI,EAAE,gBAAgB,CAAC;IAAC,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,GAC1D,mBAAmB,GAAG,SAAS,CAsHjC;AAED,wDAAwD;AACxD,MAAM,MAAM,gBAAgB,GAAG,OAAO,CACpC,kBAAkB,EAClB,cAAc,GAAG,iBAAiB,GAAG,oBAAoB,CAC1D,CAAA;AAED,wBAAgB,cAAc,CAC5B,IAAI,EAAE,kBAAkB,GAAG,SAAS,GACnC,IAAI,IAAI,gBAAgB,CAM1B;AAkDD;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,OAAO,EACb,OAAO,EAAE,MAAM,GAAG,IAAI,EACtB,QAAQ,EAAE,kBAAkB,GAAG,SAAS;AACxC,4FAA4F;AAC5F,SAAS,UAAQ,GAChB,MAAM,GAAG,OAAO,GAAG,SAAS,CAO9B"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { FiatProvider, ProviderSelection } from '@funkit/connect-core';
|
|
2
|
+
/**
|
|
3
|
+
* The partner a failover's switch would move the deposit to: the first other provider in the
|
|
4
|
+
* route whose own checkout this client runs, and that nothing shut out. `undefined` when none is
|
|
5
|
+
* left, so a sheet can offer no switch it cannot make.
|
|
6
|
+
*/
|
|
7
|
+
export declare function nextSwitchProvider({ failedProvider, order, selection, handoffs, }: {
|
|
8
|
+
failedProvider: FiatProvider;
|
|
9
|
+
/** The route's providers in order: the host's allow-list, else the routing table's. */
|
|
10
|
+
order: readonly FiatProvider[];
|
|
11
|
+
selection: ProviderSelection;
|
|
12
|
+
/** The providers whose own checkout this client runs. */
|
|
13
|
+
handoffs: readonly FiatProvider[];
|
|
14
|
+
}): FiatProvider | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* The route a switch picks from: the host's allow-list, else the routing table's order for the
|
|
17
|
+
* amount. Greptile on #8803: an allowed provider the table does not serve at this amount cannot
|
|
18
|
+
* take the deposit, so the allow-list keeps only those the table lists, once the table is known.
|
|
19
|
+
*/
|
|
20
|
+
export declare function switchRoute(hostProviders: readonly FiatProvider[] | undefined, tableProviders: readonly FiatProvider[] | undefined): readonly FiatProvider[];
|
|
21
|
+
//# sourceMappingURL=nextSwitchProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nextSwitchProvider.d.ts","sourceRoot":"","sources":["../../../../src/fiat/payment/nextSwitchProvider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAE3E;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,cAAc,EACd,KAAK,EACL,SAAS,EACT,QAAQ,GACT,EAAE;IACD,cAAc,EAAE,YAAY,CAAA;IAC5B,uFAAuF;IACvF,KAAK,EAAE,SAAS,YAAY,EAAE,CAAA;IAC9B,SAAS,EAAE,iBAAiB,CAAA;IAC5B,yDAAyD;IACzD,QAAQ,EAAE,SAAS,YAAY,EAAE,CAAA;CAClC,GAAG,YAAY,GAAG,SAAS,CAO3B;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CACzB,aAAa,EAAE,SAAS,YAAY,EAAE,GAAG,SAAS,EAClD,cAAc,EAAE,SAAS,YAAY,EAAE,GAAG,SAAS,GAClD,SAAS,YAAY,EAAE,CAQzB"}
|
|
@@ -36,6 +36,11 @@ export declare function endedOrderCode(order: Pick<FiatStepResponse, 'state'>):
|
|
|
36
36
|
export declare function paymentFailureKind(code: string): PaymentFailureKind;
|
|
37
37
|
/** A cancel the failover still answers: the host hears a cancel, the buyer sees the drawer. */
|
|
38
38
|
export declare function failsOverOnCancel(code: string): boolean;
|
|
39
|
+
/**
|
|
40
|
+
* A refusal made before the buyer was asked for anything: retrying that
|
|
41
|
+
* provider only reloads the same refusal, so a closed drawer moves on from it.
|
|
42
|
+
*/
|
|
43
|
+
export declare function failsOverUnasked(code: string): boolean;
|
|
39
44
|
/**
|
|
40
45
|
* What the amount screen does once a payment surface gave up.
|
|
41
46
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paymentSurfaceFailure.d.ts","sourceRoot":"","sources":["../../../../src/fiat/payment/paymentSurfaceFailure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,gBAAgB,EAChB,KAAK,EACL,OAAO,EACR,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"paymentSurfaceFailure.d.ts","sourceRoot":"","sources":["../../../../src/fiat/payment/paymentSurfaceFailure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,gBAAgB,EAChB,KAAK,EACL,OAAO,EACR,MAAM,sBAAsB,CAAA;AAU7B;;;;;;;;;GASG;AACH,MAAM,MAAM,kBAAkB,GAAG,WAAW,GAAG,UAAU,GAAG,QAAQ,CAAA;AAEpE;;;;GAIG;AACH,eAAO,MAAM,YAAY,iBAAiB,CAAA;AAC1C,eAAO,MAAM,cAAc,mBAAmB,CAAA;AAC9C,eAAO,MAAM,cAAc,mBAAmB,CAAA;AAC9C,eAAO,MAAM,eAAe,oBAAoB,CAAA;AAShD,yFAAyF;AACzF,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAExD;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,IAAI,CAAC,QAAQ,EAAE,MAAM,GAAG,cAAc,CAAC,GAC5C,MAAM,GAAG,SAAS,CAapB;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,KAAK,EAAE,IAAI,CAAC,gBAAgB,EAAE,OAAO,CAAC,GACrC,MAAM,GAAG,SAAS,CAmBpB;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,kBAAkB,CAiBnE;AAED,+FAA+F;AAC/F,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEvD;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEtD;AAED;;;;;;;;;GASG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,KAAK,EACL,eAAe,EACf,GAAgB,GACjB,EAAE;IACD,KAAK,EAAE,OAAO,CAAA;IACd,eAAe,EAAE,MAAM,GAAG,SAAS,CAAA;IACnC,GAAG,CAAC,EAAE,MAAM,CAAA;CACb,GAAG,MAAM,GAAG,SAAS,CAQrB;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,WAAW,CAAC,GAAG,SAAS,EAC/C,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,WAAW,CAAC,GAAG,SAAS,EAC3C,GAAG,GAAE,MAAmB,GACvB,OAAO,CAQT"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { FiatDestinationAsset, FiatProvider, FiatRouteContext, ProviderSelection } from '@funkit/connect-core';
|
|
2
|
+
import type { HandoffQuote } from '../providerFlow';
|
|
3
|
+
/**
|
|
4
|
+
* Asks ahead what a failover's switch sheet would start, as the sheet is announced: the next
|
|
5
|
+
* provider's own `prefetch` sends its checkout's first step, for that checkout to take on Continue
|
|
6
|
+
* (product, 2026-11-09). Nothing switches until the buyer taps Continue.
|
|
7
|
+
* - The next provider is the first other one this client runs in the route: the host's
|
|
8
|
+
* allow-list, or the routing table's order for the amount. No quote is fetched for it.
|
|
9
|
+
* - What is asked, and what it costs, is each provider's own (its `prefetch.ts`).
|
|
10
|
+
*/
|
|
11
|
+
export declare function prefetchSwitch({ failedProvider, order, selection, handoffs, failedQuote, geo, depositAddress, destinationAsset, context, buyer, }: {
|
|
12
|
+
failedProvider: FiatProvider;
|
|
13
|
+
/** The route's providers in order: the host's allow-list, else the routing table's. */
|
|
14
|
+
order: readonly FiatProvider[];
|
|
15
|
+
selection: ProviderSelection;
|
|
16
|
+
/** The providers whose own checkout this client runs. */
|
|
17
|
+
handoffs: readonly FiatProvider[];
|
|
18
|
+
/** The failed checkout's quote: the next checkout is priced on the same terms. */
|
|
19
|
+
failedQuote: HandoffQuote | undefined;
|
|
20
|
+
geo: {
|
|
21
|
+
alpha2: string;
|
|
22
|
+
region?: string;
|
|
23
|
+
} | undefined;
|
|
24
|
+
depositAddress: string | undefined;
|
|
25
|
+
destinationAsset: FiatDestinationAsset | undefined;
|
|
26
|
+
context: FiatRouteContext;
|
|
27
|
+
/** `prefetchBuyerKey`: the answer is handed only to this buyer. */
|
|
28
|
+
buyer: string | undefined;
|
|
29
|
+
}): void;
|
|
30
|
+
//# sourceMappingURL=prefetchSwitch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prefetchSwitch.d.ts","sourceRoot":"","sources":["../../../../src/fiat/payment/prefetchSwitch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,sBAAsB,CAAA;AAG7B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAInD;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,EAC7B,cAAc,EACd,KAAK,EACL,SAAS,EACT,QAAQ,EACR,WAAW,EACX,GAAG,EACH,cAAc,EACd,gBAAgB,EAChB,OAAO,EACP,KAAK,GACN,EAAE;IACD,cAAc,EAAE,YAAY,CAAA;IAC5B,uFAAuF;IACvF,KAAK,EAAE,SAAS,YAAY,EAAE,CAAA;IAC9B,SAAS,EAAE,iBAAiB,CAAA;IAC5B,yDAAyD;IACzD,QAAQ,EAAE,SAAS,YAAY,EAAE,CAAA;IACjC,kFAAkF;IAClF,WAAW,EAAE,YAAY,GAAG,SAAS,CAAA;IACrC,GAAG,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,SAAS,CAAA;IACpD,cAAc,EAAE,MAAM,GAAG,SAAS,CAAA;IAClC,gBAAgB,EAAE,oBAAoB,GAAG,SAAS,CAAA;IAClD,OAAO,EAAE,gBAAgB,CAAA;IACzB,mEAAmE;IACnE,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;CAC1B,GAAG,IAAI,CAiCP"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { FiatProvider, UseFiatQuoteResult } from '@funkit/connect-core';
|
|
2
|
+
/**
|
|
3
|
+
* After Continue switches providers, the sheet hosts the next provider's pay button once its
|
|
4
|
+
* checkout reaches the payment step. The buyer never returns to the bare amount screen
|
|
5
|
+
* (product, 2026-11-06).
|
|
6
|
+
* - Once per run, and never for the provider the buyer left.
|
|
7
|
+
* - `land` answers whether the sheet should open now; the caller opens it.
|
|
8
|
+
* - `verified`: the sheet says "Verified" only after the buyer saw a sign-in, code or KYC step
|
|
9
|
+
* (product, 2026-11-09). With none, the sheet they tapped Continue on closes, and the amount
|
|
10
|
+
* screen offers the provider's Apple Pay.
|
|
11
|
+
* - `pageShown`: the next provider drew a page of its own (consent, KYC). The sheet the buyer
|
|
12
|
+
* tapped Continue on would sit over it, so it goes; "Verified" follows that page.
|
|
13
|
+
* - `refused`: the next provider's checkout refused the buyer or the amount and stopped. The
|
|
14
|
+
* sheet kept up for it goes, so the buyer sees the refusal on the amount screen.
|
|
15
|
+
* - `actionInPlace`: the checkout's action must stay on the amount screen (MoonPay's Apple Pay),
|
|
16
|
+
* so no sheet opens over it to host it, and the one kept up for it goes.
|
|
17
|
+
*/
|
|
18
|
+
export declare function useFailoverLanding(continuedFrom: FiatProvider | undefined): {
|
|
19
|
+
landed: boolean;
|
|
20
|
+
verified: boolean;
|
|
21
|
+
land: (provider: FiatProvider, sheetFree: boolean, stepsShown: boolean) => boolean;
|
|
22
|
+
pageShown: boolean;
|
|
23
|
+
showPage: () => void;
|
|
24
|
+
refused: boolean;
|
|
25
|
+
refuse: (provider: FiatProvider | undefined) => void;
|
|
26
|
+
actionInPlace: boolean;
|
|
27
|
+
placeAction: (inPlace: boolean) => void;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* The run's route came back to the provider the buyer's Continue left: the fetched routing table
|
|
31
|
+
* routes there, once no other provider took the deposit, at once or after the next one refused.
|
|
32
|
+
* A sheet that promised a switch has nothing to wait on. While the table refetches, or with only a
|
|
33
|
+
* quote's held handoff, the left one's handoff is the old one.
|
|
34
|
+
*/
|
|
35
|
+
export declare function routedBackToLeft(quote: Pick<UseFiatQuoteResult, 'handoff' | 'isRouting' | 'tableProvider'>, continuedFrom: FiatProvider | undefined): boolean;
|
|
36
|
+
/**
|
|
37
|
+
* The run's quote settled somewhere no provider checkout runs: a legacy route, or no route.
|
|
38
|
+
* A sheet a failover's Continue kept up has nothing there to wait on.
|
|
39
|
+
*/
|
|
40
|
+
export declare function quoteSettledWithoutHandoff(quote: Pick<UseFiatQuoteResult, 'handoff' | 'isQuoting' | 'isQuoteFresh' | 'quoteError' | 'noRoute'>): boolean;
|
|
41
|
+
//# sourceMappingURL=useFailoverLanding.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFailoverLanding.d.ts","sourceRoot":"","sources":["../../../../src/fiat/payment/useFailoverLanding.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAM5E;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,kBAAkB,CAAC,aAAa,EAAE,YAAY,GAAG,SAAS;;;qBAO5D,YAAY,aACX,OAAO,cACN,OAAO,KAClB,OAAO;;;;uBA8BgB,YAAY,GAAG,SAAS;;2BAUpB,OAAO;EAgBtC;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,IAAI,CAAC,kBAAkB,EAAE,SAAS,GAAG,WAAW,GAAG,eAAe,CAAC,EAC1E,aAAa,EAAE,YAAY,GAAG,SAAS,GACtC,OAAO,CAOT;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,IAAI,CACT,kBAAkB,EAClB,SAAS,GAAG,WAAW,GAAG,cAAc,GAAG,YAAY,GAAG,SAAS,CACpE,GACA,OAAO,CAST"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type FiatProvider, type FiatQuoteMinimum } from '@funkit/connect-core';
|
|
2
2
|
import type { DepositCardScreen } from '../processing/DepositCardSheet';
|
|
3
3
|
import type { NestedSheet } from '../../hooks/useNestedSheet';
|
|
4
|
+
import { type SwitchPromptKind } from './failoverPrompt';
|
|
4
5
|
import { type FailoverPromptKind } from './failoverKind';
|
|
5
6
|
import type { PaymentFailoverKind } from './providerFailover';
|
|
6
7
|
import type { PaymentReroute } from './paymentReroute';
|
|
@@ -35,8 +36,36 @@ export interface PaymentFailureAnswerOptions {
|
|
|
35
36
|
onRetry: (from: PaymentFailureSource) => void;
|
|
36
37
|
/** The payment-failed sheet swiped away with no row picked; `onRetry` when absent. */
|
|
37
38
|
onClosed?: (from: PaymentFailureSource) => void;
|
|
38
|
-
/**
|
|
39
|
-
|
|
39
|
+
/**
|
|
40
|
+
* "Try with a different provider": a new quote that puts the provider that failed last, or shuts it out.
|
|
41
|
+
* `tapped`: the buyer picked it on the sheet, so the next provider starts with no second tap.
|
|
42
|
+
* `kept`: the sheet stays up over the switch, showing this prompt's copy.
|
|
43
|
+
*/
|
|
44
|
+
onReroute: (failedProvider: FiatProvider, payment: PaymentFailoverKind, options?: {
|
|
45
|
+
tapped: boolean;
|
|
46
|
+
kept?: SwitchPromptKind;
|
|
47
|
+
}) => void;
|
|
48
|
+
/**
|
|
49
|
+
* A Continue that switches partners keeps the sheet up while the next provider starts.
|
|
50
|
+
* Absent or false: the sheet closes first, as on legacy.
|
|
51
|
+
*/
|
|
52
|
+
keepsSheetOnSwitch?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* A failure no fail state names opens the fallback sheet (try again, or another method) instead of
|
|
55
|
+
* the payment-failed sheet, which asked the buyer to pick a provider (product, 2026-11-04).
|
|
56
|
+
*/
|
|
57
|
+
fallsBack?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* A payment failure already moved this checkout to another partner. With `fallsBack`, a second
|
|
60
|
+
* switch is not offered: the fallback sheet answers instead (product, 2026-11-04). With MoonPay out
|
|
61
|
+
* there are two partners, so a second switch only returns to the one that failed, and repeated
|
|
62
|
+
* declines on one card make its bank likelier to block it.
|
|
63
|
+
*/
|
|
64
|
+
switchSpent?: boolean;
|
|
65
|
+
/** With `fallsBack`: whether a partner other than `failed` could take the deposit. */
|
|
66
|
+
hasNextPartner?: (failed: FiatProvider) => boolean;
|
|
67
|
+
/** A fail state whose Continue switches partners is up: what it would start can be asked ahead. */
|
|
68
|
+
onSwitchPrompted?: (failedProvider: FiatProvider) => void;
|
|
40
69
|
/** A fresh quote on the same terms: no provider known to leave out. */
|
|
41
70
|
onRequote: () => void;
|
|
42
71
|
/**
|
|
@@ -109,6 +138,10 @@ export interface PaymentFailureAnswer {
|
|
|
109
138
|
dismissOnClose: () => void;
|
|
110
139
|
/** Closes the sheet onto the amount, then opens the host's method picker. */
|
|
111
140
|
changeMethod: () => void;
|
|
141
|
+
/** The host gave the amount screen a method picker for `changeMethod` to open. */
|
|
142
|
+
canChangeMethod: boolean;
|
|
143
|
+
/** Closes the sheet with no row picked, as a swipe does. */
|
|
144
|
+
close: () => void;
|
|
112
145
|
/**
|
|
113
146
|
* The card holds the amount screen's action: from a fail state until the
|
|
114
147
|
* card closes, so a page paid from it lives on under the wait.
|
|
@@ -121,6 +154,8 @@ export interface PaymentFailureAnswer {
|
|
|
121
154
|
* - A fail state the design draws (`failoverKindFor`) opens the failover
|
|
122
155
|
* sheet instead, with its one way on.
|
|
123
156
|
* - A closed sheet the failover answers (`failsOverOnCancel`) is one of them.
|
|
157
|
+
* - A refusal made before the buyer was asked (`failsOverUnasked`) is not
|
|
158
|
+
* retried by a closed sheet: closing it drops that provider instead.
|
|
124
159
|
* - A fail state waits on no reroute probe: it switches or pays again at
|
|
125
160
|
* once, and stays up over the new run (ENG-7225). A closed sheet's card
|
|
126
161
|
* switches only on Continue; closed, it recovers as a plain cancel.
|
|
@@ -130,5 +165,5 @@ export interface PaymentFailureAnswer {
|
|
|
130
165
|
* reroute probe is keyed on the failure, and the failure is cleared by the
|
|
131
166
|
* recovery the buyer picks.
|
|
132
167
|
*/
|
|
133
|
-
export declare function usePaymentFailureAnswer({ sheet, attempts, provider, reroute, isRerouteSettled, skipped, onCancelled, onRetry, onClosed, onReroute, onRequote, onChangeMethod, loweredAmount, onLowerAmount, onRecover, held, onHold, }: PaymentFailureAnswerOptions): PaymentFailureAnswer;
|
|
168
|
+
export declare function usePaymentFailureAnswer({ sheet, attempts, provider, reroute, isRerouteSettled, skipped, onCancelled, onRetry, onClosed, onReroute, onRequote, onChangeMethod, loweredAmount, onLowerAmount, onRecover, held, onHold, keepsSheetOnSwitch, fallsBack, switchSpent, hasNextPartner, onSwitchPrompted, }: PaymentFailureAnswerOptions): PaymentFailureAnswer;
|
|
134
169
|
//# sourceMappingURL=usePaymentFailureAnswer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePaymentFailureAnswer.d.ts","sourceRoot":"","sources":["../../../../src/fiat/payment/usePaymentFailureAnswer.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,gBAAgB,EAGtB,MAAM,sBAAsB,CAAA;AAG7B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAE7D,OAAO,EAEL,KAAK,kBAAkB,
|
|
1
|
+
{"version":3,"file":"usePaymentFailureAnswer.d.ts","sourceRoot":"","sources":["../../../../src/fiat/payment/usePaymentFailureAnswer.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,gBAAgB,EAGtB,MAAM,sBAAsB,CAAA;AAG7B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,K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AAE,gBAAgB,GAAG,SAAS,CAAA;IACrC,uEAAuE;IACvE,QAAQ,EAAE,CAAC,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,IAAI,EAAE,oBAAoB,KAAK,IAAI,CAAA;IACzE,wDAAwD;IACxD,KAAK,EAAE,MAAM,IAAI,CAAA;IACjB,4EAA4E;IAC5E,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,yCAAyC;IACzC,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,mFAAmF;IACnF,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,0FAA0F;IAC1F,cAAc,EAAE,MAAM,IAAI,CAAA;IAC1B,cAAc,EAAE,MAAM,IAAI,CAAA;IAC1B,6EAA6E;IAC7E,YAAY,EAAE,MAAM,IAAI,CAAA;IACxB,kFAAkF;IAClF,eAAe,EAAE,OAAO,CAAA;IACxB,4DAA4D;IAC5D,KAAK,EAAE,MAAM,IAAI,CAAA;IACjB;;;OAGG;IACH,WAAW,EAAE,OAAO,CAAA;CACrB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,gBAAgB,EAChB,OAAO,EACP,WAAW,EACX,OAAO,EACP,QAAkB,EAClB,SAAS,EACT,SAAS,EACT,cAAc,EACd,aAAa,EACb,aAAa,EACb,SAAS,EACT,IAAI,EACJ,MAAM,EACN,kBAAkB,EAClB,SAAS,EACT,WAAW,EACX,cAAc,EACd,gBAAgB,GACjB,EAAE,2BAA2B,GAAG,oBAAoB,CA2YpD"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether a provider checkout has shown the buyer one of its steps (a sign-in, a code or KYC),
|
|
3
|
+
* from `showing`, the step on screen now. Once true, it stays true for the checkout's life.
|
|
4
|
+
* - Answers what `slot.payable()` reports, so a failover never says "Verified" to a buyer who
|
|
5
|
+
* verified nothing.
|
|
6
|
+
*/
|
|
7
|
+
export declare function useStepShown(showing: boolean): boolean;
|
|
8
|
+
//# sourceMappingURL=useStepShown.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useStepShown.d.ts","sourceRoot":"","sources":["../../../../src/fiat/payment/useStepShown.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAMtD"}
|
|
@@ -33,11 +33,20 @@ export interface FailoverPromptProps {
|
|
|
33
33
|
kind: 'slot';
|
|
34
34
|
/** The room the card's hosted action takes, its disclosure included. */
|
|
35
35
|
height?: number;
|
|
36
|
+
} | {
|
|
37
|
+
/** The fallback's ways on: paying again, then a quieter second one when the host has it. */
|
|
38
|
+
kind: 'choices';
|
|
39
|
+
primary: FailoverChoice;
|
|
40
|
+
secondary?: FailoverChoice;
|
|
36
41
|
};
|
|
37
42
|
onClose: () => void;
|
|
38
43
|
/** The card starts to close, however it was closed. */
|
|
39
44
|
onClosing?: () => void;
|
|
40
45
|
}
|
|
46
|
+
interface FailoverChoice {
|
|
47
|
+
label: string;
|
|
48
|
+
onPress: () => void;
|
|
49
|
+
}
|
|
41
50
|
/**
|
|
42
51
|
* The fail-state sheet's content: a picture, a headline, a line on why, and a
|
|
43
52
|
* single way on. Every fail state (a closed Coinbase sheet, a declined card,
|
|
@@ -45,4 +54,5 @@ export interface FailoverPromptProps {
|
|
|
45
54
|
* through it.
|
|
46
55
|
*/
|
|
47
56
|
export declare function FailoverPrompt({ art, title, titleWidth, detail, action, onClose, }: FailoverPromptProps): import("react").JSX.Element;
|
|
57
|
+
export {};
|
|
48
58
|
//# sourceMappingURL=FailoverPrompt.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FailoverPrompt.d.ts","sourceRoot":"","sources":["../../../../src/fiat/processing/FailoverPrompt.tsx"],"names":[],"mappings":"AAiBA,2EAA2E;AAC3E,eAAO,MAAM,qBAAqB;aAAK,UAAU,EAAE,EAAE;aAAE,MAAM,EAAE,EAAE;CAAW,CAAA;AAE5E,uDAAuD;AACvD,MAAM,MAAM,WAAW,GACnB,cAAc,GACd,cAAc,GACd,aAAa,GACb,UAAU,CAAA;AAEd,MAAM,WAAW,mBAAmB;IAClC,GAAG,EAAE,WAAW,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,gEAAgE;IAChE,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;;;;;OAMG;IACH,MAAM,EACF;QACE,IAAI,EAAE,UAAU,CAAA;QAChB,KAAK,EAAE,MAAM,CAAA;QACb,OAAO,EAAE,MAAM,IAAI,CAAA;QACnB,qDAAqD;QACrD,OAAO,CAAC,EAAE,OAAO,CAAA;KAClB,GACD;QACE,IAAI,EAAE,MAAM,CAAA;QACZ,wEAAwE;QACxE,MAAM,CAAC,EAAE,MAAM,CAAA;KAChB,CAAA;IACL,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,uDAAuD;IACvD,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACvB;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,EAC7B,GAAG,EACH,KAAK,EACL,UAAgB,EAChB,MAAM,EACN,MAAM,EACN,OAAO,GACR,EAAE,mBAAmB,+
|
|
1
|
+
{"version":3,"file":"FailoverPrompt.d.ts","sourceRoot":"","sources":["../../../../src/fiat/processing/FailoverPrompt.tsx"],"names":[],"mappings":"AAiBA,2EAA2E;AAC3E,eAAO,MAAM,qBAAqB;aAAK,UAAU,EAAE,EAAE;aAAE,MAAM,EAAE,EAAE;CAAW,CAAA;AAE5E,uDAAuD;AACvD,MAAM,MAAM,WAAW,GACnB,cAAc,GACd,cAAc,GACd,aAAa,GACb,UAAU,CAAA;AAEd,MAAM,WAAW,mBAAmB;IAClC,GAAG,EAAE,WAAW,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,gEAAgE;IAChE,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;;;;;OAMG;IACH,MAAM,EACF;QACE,IAAI,EAAE,UAAU,CAAA;QAChB,KAAK,EAAE,MAAM,CAAA;QACb,OAAO,EAAE,MAAM,IAAI,CAAA;QACnB,qDAAqD;QACrD,OAAO,CAAC,EAAE,OAAO,CAAA;KAClB,GACD;QACE,IAAI,EAAE,MAAM,CAAA;QACZ,wEAAwE;QACxE,MAAM,CAAC,EAAE,MAAM,CAAA;KAChB,GACD;QACE,4FAA4F;QAC5F,IAAI,EAAE,SAAS,CAAA;QACf,OAAO,EAAE,cAAc,CAAA;QACvB,SAAS,CAAC,EAAE,cAAc,CAAA;KAC3B,CAAA;IACL,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,uDAAuD;IACvD,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACvB;AAED,UAAU,cAAc;IACtB,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,EAC7B,GAAG,EACH,KAAK,EACL,UAAgB,EAChB,MAAM,EACN,MAAM,EACN,OAAO,GACR,EAAE,mBAAmB,+BA4DrB"}
|
|
@@ -14,6 +14,11 @@ export interface ProcessingFailureAnswer {
|
|
|
14
14
|
onRequote: () => void;
|
|
15
15
|
/** The host's payment-method picker. */
|
|
16
16
|
onChangeMethod: () => void;
|
|
17
|
+
/**
|
|
18
|
+
* Whether the card may be the cause, so the prepaid note applies. A provider checkout's failure
|
|
19
|
+
* that is not a decline (a dead sign-in, a network fault) says nothing about the card.
|
|
20
|
+
*/
|
|
21
|
+
mayBeCard?: boolean;
|
|
17
22
|
}
|
|
18
23
|
/**
|
|
19
24
|
* The failed payment's message and ways on: the design gives every failure one
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProcessingFailure.d.ts","sourceRoot":"","sources":["../../../../src/fiat/processing/ProcessingFailure.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAW5D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAA;AAanF,MAAM,WAAW,uBAAuB;IACtC,sEAAsE;IACtE,WAAW,EAAE,yBAAyB,CAAA;IACtC,oEAAoE;IACpE,OAAO,CAAC,EAAE,gBAAgB,CAAA;IAC1B,mDAAmD;IACnD,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB;;;OAGG;IACH,SAAS,EAAE,MAAM,IAAI,CAAA;IACrB,wCAAwC;IACxC,cAAc,EAAE,MAAM,IAAI,CAAA;
|
|
1
|
+
{"version":3,"file":"ProcessingFailure.d.ts","sourceRoot":"","sources":["../../../../src/fiat/processing/ProcessingFailure.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAW5D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAA;AAanF,MAAM,WAAW,uBAAuB;IACtC,sEAAsE;IACtE,WAAW,EAAE,yBAAyB,CAAA;IACtC,oEAAoE;IACpE,OAAO,CAAC,EAAE,gBAAgB,CAAA;IAC1B,mDAAmD;IACnD,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB;;;OAGG;IACH,SAAS,EAAE,MAAM,IAAI,CAAA;IACrB,wCAAwC;IACxC,cAAc,EAAE,MAAM,IAAI,CAAA;IAC1B;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,UAAU,EACV,MAAM,GACP,EAAE;IACD,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,uBAAuB,CAAA;CAChC,+BAiEA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { FiatClientCapability } from '@funkit/api-base';
|
|
2
|
-
import type { FiatDestinationAsset, FiatStepResponse } from '@funkit/connect-core';
|
|
2
|
+
import type { FiatDestinationAsset, FiatRouteContext, FiatStepResponse } from '@funkit/connect-core';
|
|
3
3
|
import type { ComponentType, ReactNode } from 'react';
|
|
4
4
|
import type { ProviderCheckoutEvents } from '../hooks/track/useProviderCheckoutEvents';
|
|
5
5
|
import type { FeeQuote, PricedFeeSubsidy } from './common/stepDetails';
|
|
@@ -17,6 +17,29 @@ export interface ProviderFlow {
|
|
|
17
17
|
Host?: ComponentType<{
|
|
18
18
|
children: ReactNode;
|
|
19
19
|
}>;
|
|
20
|
+
/**
|
|
21
|
+
* Mounted above the flow's sheets, for an SDK client its views read from context. A sheet
|
|
22
|
+
* draws through gorhom's portal at the modal provider, so a pay button the failover sheet hosts
|
|
23
|
+
* only reaches a client mounted above it.
|
|
24
|
+
*/
|
|
25
|
+
SdkHost?: ComponentType<{
|
|
26
|
+
children: ReactNode;
|
|
27
|
+
}>;
|
|
28
|
+
/**
|
|
29
|
+
* Asks the checkout's first step ahead, while a failover's switch sheet is up, for the checkout
|
|
30
|
+
* to take on Continue. Nothing switches. Absent: nothing is asked ahead.
|
|
31
|
+
*/
|
|
32
|
+
prefetch?: (input: ProviderPrefetchInput) => void;
|
|
33
|
+
}
|
|
34
|
+
/** The terms a checkout started on Continue would carry, as its props would. */
|
|
35
|
+
export interface ProviderPrefetchInput {
|
|
36
|
+
quote: HandoffQuote;
|
|
37
|
+
geo: ProviderCheckoutProps['geo'];
|
|
38
|
+
depositAddress: string | undefined;
|
|
39
|
+
destinationAsset: FiatDestinationAsset | undefined;
|
|
40
|
+
context: FiatRouteContext;
|
|
41
|
+
/** `prefetchBuyerKey`: the answer is handed only to this buyer. */
|
|
42
|
+
buyer: string;
|
|
20
43
|
}
|
|
21
44
|
/** What the buyer chose, handed off by `/fiat/quote` or by the routing table. */
|
|
22
45
|
export interface HandoffQuote {
|
|
@@ -84,6 +107,11 @@ export interface ProviderCheckoutProps {
|
|
|
84
107
|
* checkout that orders on mount places nothing until the buyer taps, as legacy's pay button.
|
|
85
108
|
*/
|
|
86
109
|
awaitsTap: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* The buyer's tap that moved the flow here (a failover's Continue) already asked for this
|
|
112
|
+
* checkout: its first step opens as if its action was pressed, never waiting on the amount screen.
|
|
113
|
+
*/
|
|
114
|
+
requestedOnMount?: boolean;
|
|
87
115
|
/**
|
|
88
116
|
* Main's payment-failed sheet is answering this checkout's `paymentFailed`. It turns false with the
|
|
89
117
|
* checkout still mounted once the buyer closes it and stays on this provider.
|
|
@@ -91,8 +119,14 @@ export interface ProviderCheckoutProps {
|
|
|
91
119
|
paymentFailureShown: boolean;
|
|
92
120
|
}
|
|
93
121
|
export interface ProviderSlot {
|
|
94
|
-
/**
|
|
95
|
-
|
|
122
|
+
/**
|
|
123
|
+
* The amount screen's action slot. Drawn while the screen offers an action for the current quote, or while held.
|
|
124
|
+
* `inPlace`: the action's view must stay where it first drew, so the failover sheet never hosts it.
|
|
125
|
+
* MoonPay's Apple Pay frame fails to load once it is moved there (device, 2026-11-10).
|
|
126
|
+
*/
|
|
127
|
+
action: (node: ReactNode, options?: {
|
|
128
|
+
inPlace?: boolean;
|
|
129
|
+
}) => void;
|
|
96
130
|
/** The consent footer under the keypad; `undefined` clears it. */
|
|
97
131
|
disclosure: (node: ReactNode) => void;
|
|
98
132
|
/** Full screen: provider auth UI, KYC form. While one is up, requotes cannot replace this checkout. */
|
|
@@ -113,6 +147,14 @@ export interface ProviderSlot {
|
|
|
113
147
|
closable: (closable: boolean) => void;
|
|
114
148
|
/** Whether the action can be pressed. Until it can, the fee and the footer wait, as beside main's button. */
|
|
115
149
|
ready: (ready: boolean) => void;
|
|
150
|
+
/**
|
|
151
|
+
* The checkout reached its payment step: its action is now the payment control (Apple Pay), not a
|
|
152
|
+
* step before it. After a failover's switch, the amount screen hosts it in its sheet rather than
|
|
153
|
+
* leave it on the bare screen.
|
|
154
|
+
* `afterSteps`: the buyer saw a sign-in, code or KYC step first, so the sheet may say "Verified".
|
|
155
|
+
* Absent: treated as true.
|
|
156
|
+
*/
|
|
157
|
+
payable?: (afterSteps?: boolean) => void;
|
|
116
158
|
/**
|
|
117
159
|
* The buyer has paid and the checkout is reading its order until it ends: the amount screen
|
|
118
160
|
* shows main's processing card meanwhile, as after a legacy Apple Pay payment. `orderId`: the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"providerFlow.d.ts","sourceRoot":"","sources":["../../../src/fiat/providerFlow.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAA;AAC5D,OAAO,KAAK,EACV,oBAAoB,EACpB,gBAAgB,EACjB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAErD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAA;AACtF,OAAO,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAEtE;;;;;;;GAOG;AACH,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,aAAa,CAAC,qBAAqB,CAAC,CAAA;IAC9C,8FAA8F;IAC9F,IAAI,CAAC,EAAE,aAAa,CAAC;QAAE,QAAQ,EAAE,SAAS,CAAA;KAAE,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"providerFlow.d.ts","sourceRoot":"","sources":["../../../src/fiat/providerFlow.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAA;AAC5D,OAAO,KAAK,EACV,oBAAoB,EACpB,gBAAgB,EAChB,gBAAgB,EACjB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAErD,OAAO,KAAK,E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Q,EAAE,CAAC,MAAM,EAAE,SAAS,KAAK,IAAI,CAAA;IACrC,+BAA+B;IAC/B,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB;;;;OAIG;IACH,IAAI,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IAC7B;;;;OAIG;IACH,QAAQ,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAA;IACrC,6GAA6G;IAC7G,KAAK,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAA;IAC/B;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,CAAC,UAAU,CAAC,EAAE,OAAO,KAAK,IAAI,CAAA;IACxC;;;;OAIG;IACH,IAAI,EAAE,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;CAChD;AAED;;;;;;;;;GASG;AACH,MAAM,MAAM,YAAY,GACpB;IACE,QAAQ,EAAE,SAAS,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,cAAc,CAAA;IACxB,SAAS,CAAC,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAA;CACjD,GACD;IAAE,QAAQ,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,GACvC;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,cAAc,CAAA;CAAE,GAChE;IAAE,SAAS,EAAE,IAAI,CAAA;CAAE,GACnB;IAAE,aAAa,EAAE,MAAM,CAAA;CAAE,CAAA"}
|
|
@@ -12,6 +12,10 @@ export declare function useHandoffProviders(): readonly FiatProvider[];
|
|
|
12
12
|
/** `base` plus `provider_flow:<P>` for each of `handoffs`; the same array while both are. */
|
|
13
13
|
export declare function useClientCapabilities(base: readonly FiatClientCapability[], handoffs: readonly FiatProvider[]): readonly FiatClientCapability[];
|
|
14
14
|
export declare function providerFlowFor(provider: FiatProvider): ProviderFlow | undefined;
|
|
15
|
+
/** Each registered flow's `SdkHost`, mounted around the flow's sheet and the host app it wraps. */
|
|
16
|
+
export declare function ProviderSdkHosts({ children }: {
|
|
17
|
+
children: ReactNode;
|
|
18
|
+
}): ReactNode;
|
|
15
19
|
/** Each registered flow's `Host`, mounted once around the fiat screens. */
|
|
16
20
|
export declare function ProviderFlowHosts({ children }: {
|
|
17
21
|
children: ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"providerHandoff.d.ts","sourceRoot":"","sources":["../../../src/fiat/providerHandoff.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,oBAAoB,EAAE,MAAM,kBAAkB,CAAA;AAC1E,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,gBAAgB,EAGtB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,KAAK,SAAS,EAAW,MAAM,OAAO,CAAA;AAI/C,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAKhE;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,UAAU,GAAE,MAAqB,WAKtE;AAED,iHAAiH;AACjH,wBAAgB,mBAAmB,IAAI,SAAS,YAAY,EAAE,CAiC7D;AAED,6FAA6F;AAC7F,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,SAAS,oBAAoB,EAAE,EACrC,QAAQ,EAAE,SAAS,YAAY,EAAE,GAChC,SAAS,oBAAoB,EAAE,CAQjC;AAED,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,YAAY,GACrB,YAAY,GAAG,SAAS,CAE1B;AAED,2EAA2E;AAC3E,wBAAgB,iBAAiB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,aAMtE;AAED,6FAA6F;AAC7F,wBAAgB,cAAc,CAC5B,YAAY,EAAE,gBAAgB,GAC7B,YAAY,GAAG,SAAS,CAsB1B"}
|
|
1
|
+
{"version":3,"file":"providerHandoff.d.ts","sourceRoot":"","sources":["../../../src/fiat/providerHandoff.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,oBAAoB,EAAE,MAAM,kBAAkB,CAAA;AAC1E,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,gBAAgB,EAGtB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,KAAK,SAAS,EAAW,MAAM,OAAO,CAAA;AAI/C,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAKhE;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,UAAU,GAAE,MAAqB,WAKtE;AAED,iHAAiH;AACjH,wBAAgB,mBAAmB,IAAI,SAAS,YAAY,EAAE,CAiC7D;AAED,6FAA6F;AAC7F,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,SAAS,oBAAoB,EAAE,EACrC,QAAQ,EAAE,SAAS,YAAY,EAAE,GAChC,SAAS,oBAAoB,EAAE,CAQjC;AAED,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,YAAY,GACrB,YAAY,GAAG,SAAS,CAE1B;AAED,mGAAmG;AACnG,wBAAgB,gBAAgB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,aAUrE;AAED,2EAA2E;AAC3E,wBAAgB,iBAAiB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,aAMtE;AAED,6FAA6F;AAC7F,wBAAgB,cAAc,CAC5B,YAAY,EAAE,gBAAgB,GAC7B,YAAY,GAAG,SAAS,CAsB1B"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { FiatProvider } from '@funkit/connect-core';
|
|
2
|
+
/**
|
|
3
|
+
* How long a prefetched answer stands in for the checkout's own. `observe` reads the buyer's state
|
|
4
|
+
* now, and an answer may carry a short-lived token, so an old one is asked again instead.
|
|
5
|
+
*/
|
|
6
|
+
export declare const OBSERVE_PREFETCH_MAX_AGE_MS = 30000;
|
|
7
|
+
/**
|
|
8
|
+
* The buyer an answer is asked for: `undefined` for a buyer the host does not name, who is never
|
|
9
|
+
* asked ahead, as every unnamed buyer would share the key.
|
|
10
|
+
*/
|
|
11
|
+
export declare function prefetchBuyerKey(apiKey: string, userId: string): string | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* One provider's checkout's first `observe`, asked before the checkout exists, while the buyer reads
|
|
14
|
+
* a failover's switch sheet. The checkout takes it on Continue instead of asking again.
|
|
15
|
+
* - One answer at a time: only the switch the buyer is looking at is worth asking ahead.
|
|
16
|
+
* - Handed only to the buyer and terms it was asked for, once, while fresh. A call still out is
|
|
17
|
+
* handed on rather than sent twice.
|
|
18
|
+
* - Another buyer's answer is dropped, never handed on: the backend answers from the
|
|
19
|
+
* authenticated buyer's own account.
|
|
20
|
+
*/
|
|
21
|
+
export declare function createObservePrefetch<Call extends object, Answer>(provider: FiatProvider): {
|
|
22
|
+
prefetch(call: Call, buyer: string, send: () => Promise<Answer>): void;
|
|
23
|
+
take(call: Call, buyer: string): Promise<Answer> | undefined;
|
|
24
|
+
/** Forgets any prefetched answer. For tests. */
|
|
25
|
+
reset(): void;
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=observePrefetch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"observePrefetch.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/checkout/observePrefetch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAKxD;;;GAGG;AACH,eAAO,MAAM,2BAA2B,QAAS,CAAA;AAEjD;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,GACb,MAAM,GAAG,SAAS,CAEpB;AAaD;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,SAAS,MAAM,EAAE,MAAM,EAC/D,QAAQ,EAAE,YAAY;IAMpB,QAAQ,OAAO,IAAI,SAAS,MAAM,QAAQ,MAAM,OAAO,CAAC,MAAM,CAAC,GAAG,IAAI;IAoBtE,IAAI,OAAO,IAAI,SAAS,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,SAAS;IAqB5D,gDAAgD;IAChD,KAAK,IAAI,IAAI;EAIhB"}
|
|
@@ -4,6 +4,8 @@ import type { ProviderSlot } from '../../providerFlow';
|
|
|
4
4
|
export interface SlotScreen {
|
|
5
5
|
key: string;
|
|
6
6
|
node: ReactNode;
|
|
7
|
+
/** The view must stay where it first drew: it does not survive a move into the failover sheet. */
|
|
8
|
+
inPlace?: boolean;
|
|
7
9
|
}
|
|
8
10
|
/** What the checkout draws on the amount screen: its action, the footer, and any full screen. */
|
|
9
11
|
export declare function useSlotScreens(slot: ProviderSlot, screens: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slotOutlets.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/checkout/slotOutlets.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,SAAS,EAMf,MAAM,OAAO,CAAA;AAEd,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AA8BtD,oGAAoG;AACpG,MAAM,WAAW,UAAU;IACzB,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"slotOutlets.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/checkout/slotOutlets.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,SAAS,EAMf,MAAM,OAAO,CAAA;AAEd,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AA8BtD,oGAAoG;AACpG,MAAM,WAAW,UAAU;IACzB,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,SAAS,CAAA;IACf,kGAAkG;IAClG,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAyCD,iGAAiG;AACjG,wBAAgB,cAAc,CAC5B,IAAI,EAAE,YAAY,EAClB,OAAO,EAAE;IACP,MAAM,EAAE,UAAU,GAAG,SAAS,CAAA;IAC9B,UAAU,EAAE,UAAU,GAAG,SAAS,CAAA;IAClC,QAAQ,EAAE,UAAU,GAAG,SAAS,CAAA;CACjC,QASF"}
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Coinbase's page refusing Apple Pay as it loads, before it draws its button.
|
|
3
|
+
* Not a card refusal: it comes from Coinbase's own check, on devices whose
|
|
4
|
+
* wallet Stripe and MoonPay still pay from.
|
|
5
|
+
*/
|
|
6
|
+
export declare const COINBASE_APPLE_PAY_NOT_SETUP = "ERROR_CODE_GUEST_APPLE_PAY_NOT_SETUP";
|
|
1
7
|
export declare function isCoinbaseCardRefusal(code: string): boolean;
|
|
2
8
|
//# sourceMappingURL=coinbaseCardRefusal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coinbaseCardRefusal.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/coinbase/coinbaseCardRefusal.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"coinbaseCardRefusal.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/coinbase/coinbaseCardRefusal.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,4BAA4B,yCACD,CAAA;AAoBxC,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAE3D"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { CoinbaseCheckout } from '@funkit/connect-core';
|
|
2
|
+
import type { HandoffQuote } from '../../../providerFlow';
|
|
3
|
+
/** The checkout terms Coinbase's `/fiat/next` calls carry, off the quote that handed off to it. */
|
|
4
|
+
export declare function coinbaseCheckoutOf(quote: HandoffQuote): CoinbaseCheckout;
|
|
5
|
+
//# sourceMappingURL=coinbaseCheckoutTerms.d.ts.map
|