@funkit/connect-rn 11.2.0 → 11.3.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 +70 -0
- package/README.md +31 -0
- package/dist/{chunk-KRQW5S2X.js → chunk-JM7562IY.js} +9 -1
- package/dist/chunk-JM7562IY.js.map +7 -0
- package/dist/{chunk-AXAQRGDI.js → chunk-PSO6DYOK.js} +2 -2
- package/dist/clients/lighter.js +1 -1
- package/dist/clients/nado.js +2 -2
- package/dist/index.js +22002 -16371
- package/dist/index.js.map +4 -4
- package/dist/preview.js +26 -6
- package/dist/preview.js.map +2 -2
- package/dist/src/fiat/kyc/kycForm.d.ts +1 -0
- package/dist/src/fiat/kyc/kycForm.d.ts.map +1 -1
- package/dist/src/fiat/kyc/useKycScreens.d.ts +1 -0
- package/dist/src/fiat/kyc/useKycScreens.d.ts.map +1 -1
- package/dist/src/fiat/kyc/useRediscoveryFailover.d.ts +11 -0
- package/dist/src/fiat/kyc/useRediscoveryFailover.d.ts.map +1 -0
- package/dist/src/fiat/payment/failoverPrompt.d.ts +1 -1
- package/dist/src/fiat/payment/failoverPrompt.d.ts.map +1 -1
- package/dist/src/fiat/payment/paymentReroute.d.ts +6 -3
- package/dist/src/fiat/payment/paymentReroute.d.ts.map +1 -1
- package/dist/src/fiat/payment/paymentSurfaceFailure.d.ts +7 -1
- package/dist/src/fiat/payment/paymentSurfaceFailure.d.ts.map +1 -1
- package/dist/src/fiat/payment/usePaymentFailureAnswer.d.ts +9 -4
- package/dist/src/fiat/payment/usePaymentFailureAnswer.d.ts.map +1 -1
- package/dist/src/fiat/payment/useRerouteProbe.d.ts +6 -2
- package/dist/src/fiat/payment/useRerouteProbe.d.ts.map +1 -1
- package/dist/src/fiat/processing/ProcessingFailure.d.ts.map +1 -1
- package/dist/src/fiat/providerFlow.d.ts +5 -1
- package/dist/src/fiat/providerFlow.d.ts.map +1 -1
- package/dist/src/fiat/providerFlows.d.ts.map +1 -1
- package/dist/src/fiat/providerHandoff.d.ts +4 -1
- package/dist/src/fiat/providerHandoff.d.ts.map +1 -1
- package/dist/src/fiat/providers/adapter.d.ts +2 -0
- package/dist/src/fiat/providers/adapter.d.ts.map +1 -1
- package/dist/src/fiat/providers/applePayPaintGate.d.ts +5 -0
- package/dist/src/fiat/providers/applePayPaintGate.d.ts.map +1 -1
- package/dist/src/fiat/providers/checkout/useFiatNextApi.d.ts +4 -2
- package/dist/src/fiat/providers/checkout/useFiatNextApi.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbase/next/Checkout.d.ts.map +1 -1
- 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/errors.d.ts +0 -1
- package/dist/src/fiat/providers/moonpay/errors.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/events.d.ts +4 -0
- package/dist/src/fiat/providers/moonpay/events.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/fullCheckout/Checkout.d.ts +4 -0
- package/dist/src/fiat/providers/moonpay/fullCheckout/Checkout.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/fullCheckout/challengeRecovery.d.ts +8 -0
- package/dist/src/fiat/providers/moonpay/fullCheckout/challengeRecovery.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/fullCheckout/checkoutScreens.d.ts +12 -0
- package/dist/src/fiat/providers/moonpay/fullCheckout/checkoutScreens.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/{sdk → fullCheckout}/connection.d.ts +5 -3
- package/dist/src/fiat/providers/moonpay/fullCheckout/connection.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/fullCheckout/heldConnection.d.ts +44 -0
- package/dist/src/fiat/providers/moonpay/fullCheckout/heldConnection.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/{useCheckoutCalls.d.ts → fullCheckout/useCheckoutCalls.d.ts} +4 -2
- package/dist/src/fiat/providers/moonpay/fullCheckout/useCheckoutCalls.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/{useCheckoutModel.d.ts → fullCheckout/useCheckoutModel.d.ts} +16 -12
- package/dist/src/fiat/providers/moonpay/fullCheckout/useCheckoutModel.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/guestCheckout/Checkout.d.ts +4 -0
- package/dist/src/fiat/providers/moonpay/guestCheckout/Checkout.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/guestCheckout/GuestPhone.d.ts +24 -0
- package/dist/src/fiat/providers/moonpay/guestCheckout/GuestPhone.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/guestCheckout/checkoutScreens.d.ts +7 -0
- package/dist/src/fiat/providers/moonpay/guestCheckout/checkoutScreens.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/guestCheckout/connection.d.ts +18 -0
- package/dist/src/fiat/providers/moonpay/guestCheckout/connection.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/guestCheckout/useCheckoutCalls.d.ts +13 -0
- package/dist/src/fiat/providers/moonpay/guestCheckout/useCheckoutCalls.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/guestCheckout/useGuestCheck.d.ts +34 -0
- package/dist/src/fiat/providers/moonpay/guestCheckout/useGuestCheck.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/guestCheckout/useGuestCheckoutModel.d.ts +74 -0
- package/dist/src/fiat/providers/moonpay/guestCheckout/useGuestCheckoutModel.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/index.d.ts +2 -0
- package/dist/src/fiat/providers/moonpay/index.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/moonpay.d.ts +6 -0
- package/dist/src/fiat/providers/moonpay/moonpay.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/moonpayFrameRecovery.d.ts +23 -0
- package/dist/src/fiat/providers/moonpay/moonpayFrameRecovery.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/moonpayPaymentDisclosures.d.ts +18 -4
- package/dist/src/fiat/providers/moonpay/moonpayPaymentDisclosures.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/sdk/ApplePayButton.d.ts +6 -1
- package/dist/src/fiat/providers/moonpay/sdk/ApplePayButton.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/sdk/ApplePaySlot.d.ts +15 -0
- package/dist/src/fiat/providers/moonpay/sdk/ApplePaySlot.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/sdk/Challenge.d.ts +2 -0
- package/dist/src/fiat/providers/moonpay/sdk/Challenge.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/sdk/Host.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/sdk/deviceQuote.d.ts +2 -0
- package/dist/src/fiat/providers/moonpay/sdk/deviceQuote.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/useReadiness.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/next/Checkout.d.ts +1 -1
- package/dist/src/fiat/providers/stripe/next/Checkout.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/next/useStripeCheckout.d.ts +16 -5
- package/dist/src/fiat/providers/stripe/next/useStripeCheckout.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/next/useStripeCheckoutCalls.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/next/useStripeKycForm.d.ts +23 -4
- package/dist/src/fiat/providers/stripe/next/useStripeKycForm.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/next/useStripeOrderSlot.d.ts +3 -1
- package/dist/src/fiat/providers/stripe/next/useStripeOrderSlot.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/next/useStripePayment.d.ts +5 -1
- package/dist/src/fiat/providers/stripe/next/useStripePayment.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/next/useStripeSignIn.d.ts +2 -1
- package/dist/src/fiat/providers/stripe/next/useStripeSignIn.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripeAccountCreation.d.ts +16 -0
- package/dist/src/fiat/providers/stripe/stripeAccountCreation.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripeApplePaySelection.d.ts +34 -15
- package/dist/src/fiat/providers/stripe/stripeApplePaySelection.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripeLinkWarmup.d.ts +8 -4
- package/dist/src/fiat/providers/stripe/stripeLinkWarmup.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripePayment.d.ts +6 -2
- package/dist/src/fiat/providers/stripe/stripePayment.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/useApplePayFirst.d.ts +17 -6
- package/dist/src/fiat/providers/stripe/useApplePayFirst.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/useStripeState.d.ts.map +1 -1
- package/dist/src/fiat/providers/useWebViewTermination.d.ts +4 -2
- package/dist/src/fiat/providers/useWebViewTermination.d.ts.map +1 -1
- package/dist/src/fiat/quote/providerSelection.d.ts.map +1 -1
- package/dist/src/fiat/quote/quoteRouting.d.ts +3 -8
- package/dist/src/fiat/quote/quoteRouting.d.ts.map +1 -1
- package/dist/src/fiat/surface/SurfaceSlot.d.ts +8 -2
- package/dist/src/fiat/surface/SurfaceSlot.d.ts.map +1 -1
- package/dist/src/fiat/surface/useFailureAnnouncements.d.ts +1 -2
- package/dist/src/fiat/surface/useFailureAnnouncements.d.ts.map +1 -1
- package/dist/src/fiat/useProviderCheckout.d.ts +8 -3
- 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/SheetMaterial.d.ts.map +1 -1
- package/dist/src/flow/purchaseSheetCustomers.d.ts +8 -0
- package/dist/src/flow/purchaseSheetCustomers.d.ts.map +1 -1
- package/dist/src/flow/sheetAccessibility.d.ts +21 -0
- package/dist/src/flow/sheetAccessibility.d.ts.map +1 -0
- package/dist/src/flow/useFunkitPurchaseSheetEnabled.d.ts.map +1 -1
- package/dist/src/hooks/track/events.d.ts +1 -0
- package/dist/src/hooks/track/events.d.ts.map +1 -1
- package/dist/src/hooks/track/usePaymentButtonEvents.d.ts.map +1 -1
- package/dist/src/hooks/track/useTrackFiatPaymentEvents.d.ts +2 -1
- package/dist/src/hooks/track/useTrackFiatPaymentEvents.d.ts.map +1 -1
- package/dist/src/hooks/useNestedSheet.d.ts +11 -0
- package/dist/src/hooks/useNestedSheet.d.ts.map +1 -1
- package/dist/src/preview/replay/ReplayMoonPay.d.ts +22 -0
- package/dist/src/preview/replay/ReplayMoonPay.d.ts.map +1 -0
- package/dist/src/preview/replay/replayFetch.d.ts.map +1 -1
- package/dist/src/preview/scenarioCatalog.d.ts +2 -2
- package/dist/src/providers/FunkitProvider.d.ts.map +1 -1
- package/dist/src/screens/TokenAndChainPickerScreen.d.ts.map +1 -1
- package/dist/src/screens/WithdrawCryptoSteps.d.ts.map +1 -1
- package/package.json +4 -4
- package/dist/chunk-KRQW5S2X.js.map +0 -7
- package/dist/src/fiat/providers/moonpay/Checkout.d.ts +0 -4
- package/dist/src/fiat/providers/moonpay/Checkout.d.ts.map +0 -1
- package/dist/src/fiat/providers/moonpay/checkoutScreens.d.ts +0 -7
- package/dist/src/fiat/providers/moonpay/checkoutScreens.d.ts.map +0 -1
- package/dist/src/fiat/providers/moonpay/sdk/connection.d.ts.map +0 -1
- package/dist/src/fiat/providers/moonpay/useCheckoutCalls.d.ts.map +0 -1
- package/dist/src/fiat/providers/moonpay/useCheckoutModel.d.ts.map +0 -1
- /package/dist/{chunk-AXAQRGDI.js.map → chunk-PSO6DYOK.js.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useStripeCheckout.d.ts","sourceRoot":"","sources":["../../../../../../src/fiat/providers/stripe/next/useStripeCheckout.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"useStripeCheckout.d.ts","sourceRoot":"","sources":["../../../../../../src/fiat/providers/stripe/next/useStripeCheckout.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,UAAU,EAEf,KAAK,mBAAmB,EACxB,KAAK,WAAW,EAChB,KAAK,WAAW,EAKjB,MAAM,sBAAsB,CAAA;AAQ7B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AAC3D,OAAO,KAAK,EAAgB,qBAAqB,EAAE,MAAM,uBAAuB,CAAA;AAEhF,OAAO,EACL,KAAK,wBAAwB,EAE9B,MAAM,4BAA4B,CAAA;AAyBnC;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,WAAW,GAAG,QAAQ,GAAG,SAAS,CAWzE;AAED,6GAA6G;AAC7G,wBAAgB,iBAAiB,CAAC,EAChC,KAAK,EACL,GAAG,EACH,IAAI,EACJ,kBAAkB,EAClB,OAAO,EACP,MAAM,EACN,UAAU,EACV,SAAS,EACT,gBAAgB,EAChB,SAAS,EACT,cAAc,GACf,EAAE,qBAAqB;;IA+NpB,8FAA8F;;;;IAmB9F,6FAA6F;iCAChE,MAAM,WAAW,wBAAwB;IAUtE,4EAA4E;;;;wBAIxD,MAAM;mBAvJN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAgK1B,6DAA6D;;;;;;;;;;;;EAahE;AAED,MAAM,MAAM,mBAAmB,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useStripeCheckoutCalls.d.ts","sourceRoot":"","sources":["../../../../../../src/fiat/providers/stripe/next/useStripeCheckoutCalls.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,UAAU,EACf,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EAMxB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,KAAK,QAAQ,EAAqB,MAAM,OAAO,CAAA;AAGxD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA;AAEnE;;;;GAIG;AACH,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,mBAAmB,EAC1B,QAAQ,EAAE,QAAQ,CAAC,mBAAmB,CAAC,EACvC,OAAO,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,EAC1C,UAAU,EAAE,OAAO,EACnB,QAAQ,EAAE,CAAC,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,kBAAkB,KAAK,IAAI,EAClE,MAAM,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"useStripeCheckoutCalls.d.ts","sourceRoot":"","sources":["../../../../../../src/fiat/providers/stripe/next/useStripeCheckoutCalls.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,UAAU,EACf,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EAMxB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,KAAK,QAAQ,EAAqB,MAAM,OAAO,CAAA;AAGxD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA;AAEnE;;;;GAIG;AACH,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,mBAAmB,EAC1B,QAAQ,EAAE,QAAQ,CAAC,mBAAmB,CAAC,EACvC,OAAO,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,EAC1C,UAAU,EAAE,OAAO,EACnB,QAAQ,EAAE,CAAC,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,kBAAkB,KAAK,IAAI,EAClE,MAAM,EAAE,OAAO,QAuDhB"}
|
|
@@ -1,11 +1,30 @@
|
|
|
1
|
-
import { type FormValues, type StripeStage } from '@funkit/connect-core';
|
|
1
|
+
import { type FormValues, type StripeKycNextAction, type StripeStage } from '@funkit/connect-core';
|
|
2
|
+
import type { ApplePayFirst } from '../stripeApplePaySelection';
|
|
2
3
|
/**
|
|
3
|
-
* The values in the KYC round's form. Each round starts from what Stripe already holds
|
|
4
|
-
* answers are not carried into the next round's form.
|
|
4
|
+
* The values in the KYC round's form. Each round starts from what Stripe already holds, then the
|
|
5
|
+
* buyer's Apple Pay contact under it: a round's answers are not carried into the next round's form.
|
|
6
|
+
*
|
|
7
|
+
* As legacy, a round those values answer whole is sent without its form, once: `open` runs as the
|
|
8
|
+
* round opens, from the event that opens it. While that send runs, `registering` keeps the form
|
|
9
|
+
* down; a refusal leaves it up for the buyer.
|
|
5
10
|
*/
|
|
6
|
-
export declare function useStripeKycForm(stage
|
|
11
|
+
export declare function useStripeKycForm({ stage, identityHeld, applePayFirst, purchase, busy, }: {
|
|
12
|
+
stage: StripeStage;
|
|
13
|
+
identityHeld: boolean;
|
|
14
|
+
applePayFirst: ApplePayFirst;
|
|
15
|
+
/** The purchase the round is asked for: a round opens once per purchase. */
|
|
16
|
+
purchase: string;
|
|
17
|
+
/** The round's push or its `kyc` call is in flight. */
|
|
18
|
+
busy: boolean;
|
|
19
|
+
}): {
|
|
7
20
|
kycValues: FormValues;
|
|
8
21
|
setKycValues: import("react").Dispatch<import("react").SetStateAction<FormValues>>;
|
|
22
|
+
registering: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* The round opens with `contact` under what Stripe holds. Answered whole, it goes through
|
|
25
|
+
* `submit` as the buyer's own, unless the kill switch is on or this round already opened.
|
|
26
|
+
*/
|
|
27
|
+
open: (response: StripeKycNextAction, contact: FormValues, submit: (values: FormValues) => void) => void;
|
|
9
28
|
};
|
|
10
29
|
/** The shared form's id for a Stripe KYC round, named by its round and fields. */
|
|
11
30
|
export declare function stripeKycFormId(response: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useStripeKycForm.d.ts","sourceRoot":"","sources":["../../../../../../src/fiat/providers/stripe/next/useStripeKycForm.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,UAAU,EACf,KAAK,WAAW,
|
|
1
|
+
{"version":3,"file":"useStripeKycForm.d.ts","sourceRoot":"","sources":["../../../../../../src/fiat/providers/stripe/next/useStripeKycForm.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,UAAU,EACf,KAAK,mBAAmB,EACxB,KAAK,WAAW,EAGjB,MAAM,sBAAsB,CAAA;AAK7B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAM/D;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,KAAK,EACL,YAAY,EACZ,aAAa,EACb,QAAQ,EACR,IAAI,GACL,EAAE;IACD,KAAK,EAAE,WAAW,CAAA;IAClB,YAAY,EAAE,OAAO,CAAA;IACrB,aAAa,EAAE,aAAa,CAAA;IAC5B,4EAA4E;IAC5E,QAAQ,EAAE,MAAM,CAAA;IAChB,uDAAuD;IACvD,IAAI,EAAE,OAAO,CAAA;CACd;;;;IA+DG;;;OAGG;qBAES,mBAAmB,WACpB,UAAU,UACX,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI;EAqBzC;AAMD,kFAAkF;AAClF,wBAAgB,eAAe,CAAC,QAAQ,EAAE;IACxC,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CACzB,UAEA"}
|
|
@@ -4,12 +4,14 @@ import type { ProviderCheckoutProps } from '../../../providerFlow';
|
|
|
4
4
|
* What the sheet around the checkout shows while an order may be paid: held so it cannot close on a
|
|
5
5
|
* payment, main's processing card while a paid order is read, and the order handed over at `done`.
|
|
6
6
|
*/
|
|
7
|
-
export declare function useStripeOrderSlot({ slot, state, stage, onOrder, attemptId, }: {
|
|
7
|
+
export declare function useStripeOrderSlot({ slot, state, stage, onOrder, attemptId, contactPending, }: {
|
|
8
8
|
slot: ProviderCheckoutProps['slot'];
|
|
9
9
|
state: StripeCheckoutState;
|
|
10
10
|
stage: StripeStage;
|
|
11
11
|
onOrder: ProviderCheckoutProps['onOrder'];
|
|
12
12
|
attemptId: string;
|
|
13
|
+
/** Apple Pay is asked before a form round, or that round is sent unseen. */
|
|
14
|
+
contactPending: boolean;
|
|
13
15
|
}): {
|
|
14
16
|
supportClosed: boolean;
|
|
15
17
|
setSupportClosed: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useStripeOrderSlot.d.ts","sourceRoot":"","sources":["../../../../../../src/fiat/providers/stripe/next/useStripeOrderSlot.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,WAAW,EAEjB,MAAM,sBAAsB,CAAA;AAI7B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAA;AAElE;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,IAAI,EACJ,KAAK,EACL,KAAK,EACL,OAAO,EACP,SAAS,
|
|
1
|
+
{"version":3,"file":"useStripeOrderSlot.d.ts","sourceRoot":"","sources":["../../../../../../src/fiat/providers/stripe/next/useStripeOrderSlot.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,WAAW,EAEjB,MAAM,sBAAsB,CAAA;AAI7B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAA;AAElE;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,IAAI,EACJ,KAAK,EACL,KAAK,EACL,OAAO,EACP,SAAS,EACT,cAAc,GACf,EAAE;IACD,IAAI,EAAE,qBAAqB,CAAC,MAAM,CAAC,CAAA;IACnC,KAAK,EAAE,mBAAmB,CAAA;IAC1B,KAAK,EAAE,WAAW,CAAA;IAClB,OAAO,EAAE,qBAAqB,CAAC,SAAS,CAAC,CAAA;IACzC,SAAS,EAAE,MAAM,CAAA;IACjB,4EAA4E;IAC5E,cAAc,EAAE,OAAO,CAAA;CACxB;;;EAoEA"}
|
|
@@ -6,7 +6,7 @@ import type { StripeSignIn } from './useStripeSignIn';
|
|
|
6
6
|
* The payment on the device: Apple Pay's token chain for the priced order, then `performCheckout`
|
|
7
7
|
* for the order `pay` names, with the checkout callback answered from `/fiat/next`.
|
|
8
8
|
*/
|
|
9
|
-
export declare function useStripePayment({ stripe, stage, state, dispatch, context, signIn, paymentFailed, onPaymentStarted, }: {
|
|
9
|
+
export declare function useStripePayment({ stripe, stage, state, dispatch, context, signIn, paymentFailed, onPaymentStarted, quoteRef, subject, }: {
|
|
10
10
|
stripe: StripeOnrampClient | undefined;
|
|
11
11
|
stage: StripeStage;
|
|
12
12
|
state: StripeCheckoutState;
|
|
@@ -16,6 +16,10 @@ export declare function useStripePayment({ stripe, stage, state, dispatch, conte
|
|
|
16
16
|
/** Nothing was charged: main's payment-failed sheet answers `code`. */
|
|
17
17
|
paymentFailed: (code: string) => void;
|
|
18
18
|
onPaymentStarted: () => void;
|
|
19
|
+
/** The purchase an Apple Pay selection made before the form pays, without a second sheet. */
|
|
20
|
+
quoteRef: string;
|
|
21
|
+
/** The buyer paying: another buyer's selection never pays. */
|
|
22
|
+
subject: string | undefined;
|
|
19
23
|
}): {
|
|
20
24
|
collecting: boolean;
|
|
21
25
|
/** The Apple Pay button's tap: Stripe's chain to a payment token for the priced order. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useStripePayment.d.ts","sourceRoot":"","sources":["../../../../../../src/fiat/providers/stripe/next/useStripePayment.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,WAAW,EAGjB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,KAAK,QAAQ,EAA+B,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"useStripePayment.d.ts","sourceRoot":"","sources":["../../../../../../src/fiat/providers/stripe/next/useStripePayment.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,WAAW,EAGjB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,KAAK,QAAQ,EAA+B,MAAM,OAAO,CAAA;AAMlE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAMzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAKrD;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,MAAM,EACN,KAAK,EACL,KAAK,EACL,QAAQ,EACR,OAAO,EACP,MAAM,EACN,aAAa,EACb,gBAAgB,EAChB,QAAQ,EACR,OAAO,GACR,EAAE;IACD,MAAM,EAAE,kBAAkB,GAAG,SAAS,CAAA;IACtC,KAAK,EAAE,WAAW,CAAA;IAClB,KAAK,EAAE,mBAAmB,CAAA;IAC1B,QAAQ,EAAE,QAAQ,CAAC,mBAAmB,CAAC,CAAA;IACvC,OAAO,EAAE,gBAAgB,CAAA;IACzB,MAAM,EAAE,YAAY,CAAA;IACpB,uEAAuE;IACvE,aAAa,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IACrC,gBAAgB,EAAE,MAAM,IAAI,CAAA;IAC5B,6FAA6F;IAC7F,QAAQ,EAAE,MAAM,CAAA;IAChB,8DAA8D;IAC9D,OAAO,EAAE,MAAM,GAAG,SAAS,CAAA;CAC5B;;IA4JG,0FAA0F;;EA6D7F"}
|
|
@@ -9,8 +9,9 @@ export declare function stripeLinkTokenExpired(token: StripeLinkAuthToken): bool
|
|
|
9
9
|
* Link sign-in on the device: the prompts' `linkAuthToken`s, redeemed once each, and the SDK's
|
|
10
10
|
* `authorize` for an `authorize` prompt's intent once the buyer asked to sign in.
|
|
11
11
|
*/
|
|
12
|
-
export declare function useStripeSignIn({ stripe, stage, dispatch, held, onDismissed, }: {
|
|
12
|
+
export declare function useStripeSignIn({ stripe, subject, stage, dispatch, held, onDismissed, }: {
|
|
13
13
|
stripe: StripeOnrampClient | undefined;
|
|
14
|
+
subject?: string;
|
|
14
15
|
stage: StripeStage;
|
|
15
16
|
dispatch: Dispatch<StripeCheckoutEvent>;
|
|
16
17
|
/** The buyer has not asked for this step yet: nothing of Stripe's opens. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useStripeSignIn.d.ts","sourceRoot":"","sources":["../../../../../../src/fiat/providers/stripe/next/useStripeSignIn.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,WAAW,EAEjB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,KAAK,QAAQ,EAAqB,MAAM,OAAO,CAAA;AAKxD,OAAO,KAAK,EAAyB,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;
|
|
1
|
+
{"version":3,"file":"useStripeSignIn.d.ts","sourceRoot":"","sources":["../../../../../../src/fiat/providers/stripe/next/useStripeSignIn.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,WAAW,EAEjB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,KAAK,QAAQ,EAAqB,MAAM,OAAO,CAAA;AAKxD,OAAO,KAAK,EAAyB,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAmChF,mFAAmF;AACnF,MAAM,MAAM,YAAY,GAAG,CACzB,KAAK,EAAE,mBAAmB,GAAG,IAAI,KAC9B,OAAO,CAAC,OAAO,CAAC,CAAA;AAErB,2FAA2F;AAC3F,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,mBAAmB,GAAG,OAAO,CAG1E;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,EAC9B,MAAM,EACN,OAAO,EACP,KAAK,EACL,QAAQ,EACR,IAAI,EACJ,WAAW,GACZ,EAAE;IACD,MAAM,EAAE,kBAAkB,GAAG,SAAS,CAAA;IACtC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,WAAW,CAAA;IAClB,QAAQ,EAAE,QAAQ,CAAC,mBAAmB,CAAC,CAAA;IACvC,4EAA4E;IAC5E,IAAI,EAAE,OAAO,CAAA;IACb,kGAAkG;IAClG,WAAW,EAAE,MAAM,IAAI,CAAA;CACxB,GAAG,YAAY,CAmJf"}
|
|
@@ -29,4 +29,20 @@ export declare function getPrefilledStripeFormData(stepResponse: FiatFlow['stepR
|
|
|
29
29
|
values: FormValues;
|
|
30
30
|
complete: boolean;
|
|
31
31
|
} | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* A Stripe round's values on legacy and `/fiat/next`: per field, what the backend holds wins over
|
|
34
|
+
* `deviceValues`, and a blank holds nothing. `complete` when they answer every required field, so
|
|
35
|
+
* the round can be sent without its form.
|
|
36
|
+
*/
|
|
37
|
+
export declare function stripeRoundPrefill(fields: readonly {
|
|
38
|
+
id: string;
|
|
39
|
+
required: boolean;
|
|
40
|
+
}[], held: {
|
|
41
|
+
readonly [id: string]: JsonValue | undefined;
|
|
42
|
+
}, deviceValues: FormValues): {
|
|
43
|
+
values: FormValues;
|
|
44
|
+
complete: boolean;
|
|
45
|
+
};
|
|
46
|
+
/** Legacy names the account round `ACCOUNT_CREATION`; logs use `/fiat/next`'s `ACCOUNT` for both flows. */
|
|
47
|
+
export declare function stripeRoundName(round: unknown): string | undefined;
|
|
32
48
|
//# sourceMappingURL=stripeAccountCreation.d.ts.map
|
|
@@ -1 +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,KA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C;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,GAAG,SAAS,CAgBvD;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,SAAS;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,EAAE,EACpD,IAAI,EAAE;IAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAAA;CAAE,EACtD,YAAY,EAAE,UAAU,GACvB;IAAE,MAAM,EAAE,UAAU,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,CAa3C;AAED,2GAA2G;AAC3G,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAKlE"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { FiatClientCapability } from '@funkit/api-base';
|
|
2
|
-
import { type FiatFlow, type FormValues, type JsonValue } from '@funkit/connect-core';
|
|
2
|
+
import { type FiatFlow, type FormValues, type JsonValue, type StripeKycNextAction } from '@funkit/connect-core';
|
|
3
3
|
import type { StripeOnrampClient } from './stripeOnramp';
|
|
4
4
|
/**
|
|
5
5
|
* Where a Stripe form round stands on Apple Pay first:
|
|
@@ -13,32 +13,47 @@ export type ApplePayFirst = {
|
|
|
13
13
|
kind: 'ASK';
|
|
14
14
|
stripe: StripeOnrampClient;
|
|
15
15
|
subject: string;
|
|
16
|
-
|
|
16
|
+
purchase: ApplePayPurchase;
|
|
17
17
|
} | {
|
|
18
18
|
kind: 'COLLECTED';
|
|
19
19
|
contact: FormValues;
|
|
20
20
|
};
|
|
21
|
+
/** What the sheet opens for. `quoteRef` names the purchase: a selection pays only the one it names. */
|
|
22
|
+
export interface ApplePayPurchase {
|
|
23
|
+
quoteRef: string;
|
|
24
|
+
amount: string;
|
|
25
|
+
currencyCode: string;
|
|
26
|
+
}
|
|
27
|
+
/** Which checkout logged it, so Datadog tells legacy and `/fiat/next` apart. */
|
|
28
|
+
export interface StripeCheckoutLog {
|
|
29
|
+
checkoutFlow: 'legacy' | 'next';
|
|
30
|
+
/** The checkout's telemetry attempt, where the screen gave it one. */
|
|
31
|
+
checkoutAttemptId: string | undefined;
|
|
32
|
+
}
|
|
21
33
|
/**
|
|
22
34
|
* What a flow tells the server it can do. Only a host with a Stripe client can open the sheet, and
|
|
23
|
-
* the server
|
|
35
|
+
* the server asks no other client to open it first. Stable per client, as the flow needs.
|
|
24
36
|
*/
|
|
25
37
|
export declare function stripeClientCapabilities(stripe: StripeOnrampClient | undefined): readonly FiatClientCapability[];
|
|
26
38
|
/**
|
|
27
|
-
* Apple Pay opens before
|
|
28
|
-
*
|
|
29
|
-
* form exists to fix values Stripe refused.
|
|
39
|
+
* Apple Pay opens before the first ask of a round at Stripe's `l0`, which its contact answers whole.
|
|
40
|
+
* Never on a correction, since that form exists to fix values Stripe refused.
|
|
30
41
|
*/
|
|
31
|
-
export declare function applePayFirst({ stripe, subject,
|
|
42
|
+
export declare function applePayFirst({ stripe, subject, purchase, firstAsk, selection, askedFor, }: {
|
|
32
43
|
stripe: StripeOnrampClient | undefined;
|
|
33
44
|
subject: string | undefined;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
45
|
+
purchase: ApplePayPurchase | undefined;
|
|
46
|
+
/** This round is that first ask: `legacyAsksApplePayFirst` or `nextAsksApplePayFirst`. */
|
|
47
|
+
firstAsk: boolean;
|
|
37
48
|
/** This buyer's selection for this purchase, from `applePaySelectionFor`. */
|
|
38
49
|
selection: ApplePaySelection | undefined;
|
|
39
50
|
/** The purchase the sheet last opened for: without a selection, the buyer dismissed it. */
|
|
40
51
|
askedFor: string | undefined;
|
|
41
52
|
}): ApplePayFirst;
|
|
53
|
+
/** Legacy: the backend marks that round's submit with `paymentSheetFirst`. */
|
|
54
|
+
export declare function legacyAsksApplePayFirst(stepResponse: FiatFlow['stepResponse'], params: Record<string, JsonValue> | undefined): boolean;
|
|
55
|
+
/** `/fiat/next`: the prompt itself says it is that round, as the backend's `paymentSheetFirst` rule reads it. */
|
|
56
|
+
export declare function nextAsksApplePayFirst({ tier, correctionRound, reask, fieldErrors, }: StripeKycNextAction): boolean;
|
|
42
57
|
/** Apple Pay approved on the device before a form round, waiting for checkout to spend it. Never sent to the backend. */
|
|
43
58
|
export interface ApplePaySelection {
|
|
44
59
|
/** Whose selection it is: the contact is that buyer's name and address. */
|
|
@@ -58,14 +73,18 @@ export type ApplePaySelectionSpend = {
|
|
|
58
73
|
kind: 'NONE';
|
|
59
74
|
} | {
|
|
60
75
|
kind: 'DROPPED';
|
|
61
|
-
reason: 'quote_mismatch' | 'amount_mismatch';
|
|
76
|
+
reason: 'subject_mismatch' | 'quote_mismatch' | 'amount_mismatch';
|
|
62
77
|
};
|
|
63
78
|
/**
|
|
64
|
-
* Spends the selection for a pay sheet of `amount` on purchase `quoteRef
|
|
65
|
-
*
|
|
66
|
-
*
|
|
79
|
+
* Spends the selection for a pay sheet of `amount` on purchase `quoteRef`, paid by `subject`. A
|
|
80
|
+
* selection pays only for the buyer who approved it, and never another purchase, even one of the
|
|
81
|
+
* same amount: the buyer confirms each purchase on its own sheet. Single use: Stripe spends the
|
|
82
|
+
* selection on the token, so a second sheet must collect again.
|
|
67
83
|
*/
|
|
68
|
-
export declare function spendApplePaySelection(stripe: StripeOnrampClient, amount: string,
|
|
84
|
+
export declare function spendApplePaySelection(stripe: StripeOnrampClient, amount: string, { subject, quoteRef, }: {
|
|
85
|
+
subject: string | undefined;
|
|
86
|
+
quoteRef: string | undefined;
|
|
87
|
+
}): ApplePaySelectionSpend;
|
|
69
88
|
export type ApplePaySelectionOutcome = {
|
|
70
89
|
kind: 'COLLECTED';
|
|
71
90
|
contact: FormValues;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stripeApplePaySelection.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/stripe/stripeApplePaySelection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAA;AAC5D,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,UAAU,EACf,KAAK,SAAS,
|
|
1
|
+
{"version":3,"file":"stripeApplePaySelection.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/stripe/stripeApplePaySelection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAA;AAC5D,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,UAAU,EACf,KAAK,SAAS,EAEd,KAAK,mBAAmB,EAEzB,MAAM,sBAAsB,CAAA;AAO7B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAExD;;;;;GAKG;AACH,MAAM,MAAM,aAAa,GACrB;IAAE,IAAI,EAAE,KAAK,CAAA;CAAE,GACf;IACE,IAAI,EAAE,KAAK,CAAA;IACX,MAAM,EAAE,kBAAkB,CAAA;IAC1B,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,gBAAgB,CAAA;CAC3B,GACD;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,OAAO,EAAE,UAAU,CAAA;CAAE,CAAA;AAE9C,uGAAuG;AACvG,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;IACd,YAAY,EAAE,MAAM,CAAA;CACrB;AAED,gFAAgF;AAChF,MAAM,WAAW,iBAAiB;IAChC,YAAY,EAAE,QAAQ,GAAG,MAAM,CAAA;IAC/B,sEAAsE;IACtE,iBAAiB,EAAE,MAAM,GAAG,SAAS,CAAA;CACtC;AAQD;;;GAGG;AACH,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,kBAAkB,GAAG,SAAS,GACrC,SAAS,oBAAoB,EAAE,CAEjC;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,EAC5B,MAAM,EACN,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,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iBAAiB,CAAA;CAClE,CAAA;AAEL;;;;;GAKG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,kBAAkB,EAC1B,MAAM,EAAE,MAAM,EACd,EACE,OAAO,EACP,QAAQ,GACT,EAAE;IAAE,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,GAC/D,sBAAsB,CAkBxB;AAED,MAAM,MAAM,wBAAwB,GAChC;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,OAAO,EAAE,UAAU,CAAA;CAAE,GAC1C;IAAE,IAAI,EAAE,WAAW,CAAA;CAAE,GACrB;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,CAAA;AAEtB;;;GAGG;AACH,wBAAsB,wBAAwB,CAC5C,MAAM,EAAE,kBAAkB,EAC1B,EACE,OAAO,EACP,QAAQ,EACR,MAAM,EACN,YAAY,GACb,EAAE;IACD,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;IACd,YAAY,EAAE,MAAM,CAAA;CACrB,GACA,OAAO,CAAC,wBAAwB,CAAC,CA6DnC"}
|
|
@@ -5,6 +5,7 @@ interface StripeAuthToken {
|
|
|
5
5
|
}
|
|
6
6
|
/** One Link session this process woke: the credential it spent, and the wallets it registered. */
|
|
7
7
|
interface LinkSession {
|
|
8
|
+
subject: string | undefined;
|
|
8
9
|
clientSecret: string;
|
|
9
10
|
/** The credential's expiry. Past it, the tap redeems its own credential again. */
|
|
10
11
|
freshUntilMs: number;
|
|
@@ -27,13 +28,16 @@ export declare function isLinkCredentialRefused(stripe: StripeOnrampClient, clie
|
|
|
27
28
|
* Wakes the Link session with the quote's credential while the buyer looks at the button, so the
|
|
28
29
|
* tap no longer waits on it. Once per credential, and never with one already past its expiry.
|
|
29
30
|
*/
|
|
30
|
-
export declare function warmStripeLink(stripe: StripeOnrampClient, token: StripeAuthToken, now?: number): void;
|
|
31
|
+
export declare function warmStripeLink(stripe: StripeOnrampClient, token: StripeAuthToken, now?: number, subject?: string): void;
|
|
31
32
|
/** Warms the Link session from the quote on screen; the quote carries a credential only on Stripe. */
|
|
32
|
-
export declare function useStripeLinkWarmup(stripe: StripeOnrampClient | undefined, token: StripeAuthToken | undefined): void;
|
|
33
|
+
export declare function useStripeLinkWarmup(stripe: StripeOnrampClient | undefined, token: StripeAuthToken | undefined, subject?: string): void;
|
|
33
34
|
/** The warm Link session while it signed in and its credential is still unexpired. */
|
|
34
|
-
export declare function reusableLinkSession(stripe: StripeOnrampClient, now?: () => number
|
|
35
|
+
export declare function reusableLinkSession(stripe: StripeOnrampClient, now?: () => number, options?: {
|
|
36
|
+
subject?: string;
|
|
37
|
+
log?: boolean;
|
|
38
|
+
}): Promise<LinkSession | undefined>;
|
|
35
39
|
/** Signs in with the pay sheet's own credential. Undefined when refused, so nothing reuses it. */
|
|
36
|
-
export declare function signInForTap(stripe: StripeOnrampClient, clientSecret: string, freshUntilMs: number | undefined): Promise<LinkSession | undefined>;
|
|
40
|
+
export declare function signInForTap(stripe: StripeOnrampClient, clientSecret: string, freshUntilMs: number | undefined, subject?: string): Promise<LinkSession | undefined>;
|
|
37
41
|
export declare function walletKey(walletAddress: string, network: string): string;
|
|
38
42
|
/** Module state outlives a test; each one starts from a fresh app process. */
|
|
39
43
|
export declare function __resetStripeLinkWarmup(stripe: StripeOnrampClient): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stripeLinkWarmup.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/stripe/stripeLinkWarmup.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"stripeLinkWarmup.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/stripe/stripeLinkWarmup.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAGxD,UAAU,eAAe;IACvB,YAAY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SAAS,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAExE;AAED,8EAA8E;AAC9E,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,kBAAkB,GAAG,IAAI,CAExE"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Surface } from '@funkit/connect-core';
|
|
2
2
|
import type { SurfaceAdapter } from '../adapter';
|
|
3
3
|
import type { StripeOnrampClient } from './stripeOnramp';
|
|
4
|
+
import { type StripeCheckoutLog } from './stripeApplePaySelection';
|
|
4
5
|
interface StripePayParams {
|
|
5
6
|
action: 'CREATE_CRYPTO_PAYMENT_TOKEN';
|
|
6
7
|
walletAddress: string;
|
|
@@ -17,6 +18,9 @@ export interface StripeApplePayTap {
|
|
|
17
18
|
* selection pays only the purchase it was made for (`spendApplePaySelection`).
|
|
18
19
|
*/
|
|
19
20
|
quoteRef?: string;
|
|
21
|
+
/** Who is paying: a selection pays only for the buyer who approved it. */
|
|
22
|
+
subject: string | undefined;
|
|
23
|
+
log: StripeCheckoutLog;
|
|
20
24
|
seamlessClientSecret?: string;
|
|
21
25
|
seamlessExpiresAtMs?: number;
|
|
22
26
|
}
|
|
@@ -32,11 +36,11 @@ export declare function matchStripePayParams(surface: Surface): StripePayParams
|
|
|
32
36
|
*/
|
|
33
37
|
export declare const STRIPE_PAYMENT_CANCELLED = "collect_apple_pay:cancelled";
|
|
34
38
|
/** Stripe's real native sheet, deliberately restricted to Apple Pay. */
|
|
35
|
-
export declare function stripePaymentAdapter(stripe: StripeOnrampClient, response
|
|
39
|
+
export declare function stripePaymentAdapter(stripe: StripeOnrampClient, response: object, quoteRef: string | undefined, subject: string | undefined): SurfaceAdapter;
|
|
36
40
|
export declare function stripePaymentReport(token: string): {
|
|
37
41
|
cryptoPaymentToken: string;
|
|
38
42
|
};
|
|
39
43
|
export declare function stripePaymentErrorCode(error: unknown): string;
|
|
40
|
-
export declare function collectApplePay(stripe: StripeOnrampClient, params: StripePayParams, { quoteRef, seamlessClientSecret, seamlessExpiresAtMs, }
|
|
44
|
+
export declare function collectApplePay(stripe: StripeOnrampClient, params: StripePayParams, { quoteRef, subject, log, seamlessClientSecret, seamlessExpiresAtMs, }: StripeApplePayTap): Promise<string>;
|
|
41
45
|
export {};
|
|
42
46
|
//# sourceMappingURL=stripePayment.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stripePayment.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/stripe/stripePayment.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAMnD,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,YAAY,CAAA;AAChE,OAAO,KAAK,EACV,kBAAkB,EAEnB,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"stripePayment.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/stripe/stripePayment.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAMnD,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,YAAY,CAAA;AAChE,OAAO,KAAK,EACV,kBAAkB,EAEnB,MAAM,gBAAgB,CAAA;AAYvB,OAAO,EACL,KAAK,iBAAiB,EAEvB,MAAM,2BAA2B,CAAA;AAElC,UAAU,eAAe;IACvB,MAAM,EAAE,6BAA6B,CAAA;IACrC,aAAa,EAAE,MAAM,CAAA;IACrB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,mBAAmB,EAAE,MAAM,CAAA;IAC3B,YAAY,EAAE,MAAM,CAAA;IACpB,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,kEAAkE;AAClE,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,0EAA0E;IAC1E,OAAO,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,GAAG,EAAE,iBAAiB,CAAA;IACtB,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAA;CAC7B;AAED,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,OAAO,GACf,eAAe,GAAG,SAAS,CA4B7B;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,wBAAwB,gCAAgC,CAAA;AAErE,wEAAwE;AACxE,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,kBAAkB,EAC1B,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,OAAO,EAAE,MAAM,GAAG,SAAS,GAC1B,cAAc,CAiChB;AAwFD,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM;IACtC,kBAAkB;EAC5B;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAoC7D;AA6BD,wBAAsB,eAAe,CACnC,MAAM,EAAE,kBAAkB,EAC1B,MAAM,EAAE,eAAe,EACvB,EACE,QAAQ,EACR,OAAO,EACP,GAAG,EACH,oBAAoB,EACpB,mBAAmB,GACpB,EAAE,iBAAiB,GACnB,OAAO,CAAC,MAAM,CAAC,CA+KjB"}
|
|
@@ -1,22 +1,33 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import { type ApplePayFirst } from './stripeApplePaySelection';
|
|
1
|
+
import { type ApplePayFirst, type ApplePayPurchase, type ApplePaySelectionOutcome, type StripeCheckoutLog } from './stripeApplePaySelection';
|
|
3
2
|
import type { StripeOnrampClient } from './stripeOnramp';
|
|
4
3
|
/**
|
|
5
4
|
* Where the flow's Stripe round stands on Apple Pay first. The selection is read on every render
|
|
6
5
|
* rather than held in state: it lives with the SDK client, so a later round of the same purchase
|
|
7
6
|
* fills from it without opening the sheet again. `markAsked` records that the sheet opened for a
|
|
8
7
|
* purchase, so a buyer who dismissed it is asked once per purchase, not once per response.
|
|
8
|
+
* `stateFor` is the same reading for a round that opens in an event, before it renders.
|
|
9
9
|
*/
|
|
10
|
-
export declare function useApplePayFirst(
|
|
10
|
+
export declare function useApplePayFirst({ stripe, subject, purchase, firstAsk, }: {
|
|
11
|
+
stripe: StripeOnrampClient | undefined;
|
|
12
|
+
subject: string | undefined;
|
|
13
|
+
purchase: ApplePayPurchase | undefined;
|
|
14
|
+
firstAsk: boolean;
|
|
15
|
+
}): {
|
|
11
16
|
state: ApplePayFirst;
|
|
17
|
+
stateFor: (firstAsk: boolean) => ApplePayFirst;
|
|
12
18
|
markAsked: (quoteRef: string) => void;
|
|
13
19
|
};
|
|
14
20
|
/** Opens Apple Pay once from where the busy screen mounts it, then hands the round on. */
|
|
15
|
-
export declare function CollectApplePaySelection({ ask: { stripe, subject,
|
|
21
|
+
export declare function CollectApplePaySelection({ ask: { stripe, subject, purchase }, log, onDone, }: {
|
|
16
22
|
ask: Extract<ApplePayFirst, {
|
|
17
23
|
kind: 'ASK';
|
|
18
24
|
}>;
|
|
19
|
-
/**
|
|
20
|
-
|
|
25
|
+
/** The checkout and the form round the sheet opens before. */
|
|
26
|
+
log: StripeCheckoutLog & {
|
|
27
|
+
round: string | undefined;
|
|
28
|
+
tier: string | undefined;
|
|
29
|
+
};
|
|
30
|
+
/** Called once the sheet closes, with or without a selection, unless the checkout closed first. */
|
|
31
|
+
onDone: (outcome: ApplePaySelectionOutcome) => void;
|
|
21
32
|
}): null;
|
|
22
33
|
//# sourceMappingURL=useApplePayFirst.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useApplePayFirst.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/stripe/useApplePayFirst.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useApplePayFirst.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/stripe/useApplePayFirst.tsx"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,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kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAGxD,gFAAgF;AAChF,wBAAgB,cAAc,CAC5B,IAAI,EAAE,QAAQ,EACd,YAAY,EAAE,kBAAkB,GAAG,SAAS;;
|
|
1
|
+
{"version":3,"file":"useStripeState.d.ts","sourceRoot":"","sources":["../../../../../src/fiat/providers/stripe/useStripeState.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,QAAQ,EAEd,MAAM,sBAAsB,CAAA;AAQ7B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAGxD,gFAAgF;AAChF,wBAAgB,cAAc,CAC5B,IAAI,EAAE,QAAQ,EACd,YAAY,EAAE,kBAAkB,GAAG,SAAS;;EAyD7C"}
|
|
@@ -2,7 +2,7 @@ import type { WebViewProps } from 'react-native-webview';
|
|
|
2
2
|
export declare const WEBVIEW_TERMINATED = "webview_terminated";
|
|
3
3
|
type TerminationProps = Pick<WebViewProps, 'onContentProcessDidTerminate' | 'onRenderProcessGone'>;
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Reports a hosted surface whose web process the OS killed; its callback decides recovery.
|
|
6
6
|
*
|
|
7
7
|
* - iOS reclaims WebKit under memory pressure, often right after a native
|
|
8
8
|
* sheet; the view goes blank and no error event fires.
|
|
@@ -10,6 +10,8 @@ type TerminationProps = Pick<WebViewProps, 'onContentProcessDidTerminate' | 'onR
|
|
|
10
10
|
*/
|
|
11
11
|
export declare function useWebViewTermination(provider: string, onFailed: (code: string) => void,
|
|
12
12
|
/** False for a frame kept mounted, hidden, behind the one the buyer uses. */
|
|
13
|
-
isInFront?: boolean
|
|
13
|
+
isInFront?: boolean,
|
|
14
|
+
/** Provider recovery decisions can add context without duplicating the native termination log. */
|
|
15
|
+
fields?: () => Record<string, unknown>): TerminationProps;
|
|
14
16
|
export {};
|
|
15
17
|
//# sourceMappingURL=useWebViewTermination.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useWebViewTermination.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/useWebViewTermination.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAIxD,eAAO,MAAM,kBAAkB,uBAAuB,CAAA;AAEtD,KAAK,gBAAgB,GAAG,IAAI,CAC1B,YAAY,EACZ,8BAA8B,GAAG,qBAAqB,CACvD,CAAA;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI;AAChC,6EAA6E;AAC7E,SAAS,UAAO,
|
|
1
|
+
{"version":3,"file":"useWebViewTermination.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/useWebViewTermination.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAIxD,eAAO,MAAM,kBAAkB,uBAAuB,CAAA;AAEtD,KAAK,gBAAgB,GAAG,IAAI,CAC1B,YAAY,EACZ,8BAA8B,GAAG,qBAAqB,CACvD,CAAA;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI;AAChC,6EAA6E;AAC7E,SAAS,UAAO;AAChB,kGAAkG;AAClG,MAAM,CAAC,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACrC,gBAAgB,CA0BlB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"providerSelection.d.ts","sourceRoot":"","sources":["../../../../src/fiat/quote/providerSelection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EAEZ,iBAAiB,EAClB,MAAM,sBAAsB,CAAA;AAG7B,OAAO,EAAE,KAAK,gBAAgB,EAAY,MAAM,6BAA6B,CAAA;AAI7E;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,cAAc,EACd,UAAU,EACV,SAAS,EACT,UAAe,GAChB,EAAE;IACD,cAAc,EAAE,SAAS,YAAY,EAAE,CAAA;IACvC,UAAU,EAAE,SAAS,YAAY,EAAE,CAAA;IACnC,SAAS,EAAE,SAAS,gBAAgB,EAAE,CAAA;IACtC,qEAAqE;IACrE,UAAU,CAAC,EAAE,SAAS,YAAY,EAAE,CAAA;CACrC,GAAG,iBAAiB,
|
|
1
|
+
{"version":3,"file":"providerSelection.d.ts","sourceRoot":"","sources":["../../../../src/fiat/quote/providerSelection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EAEZ,iBAAiB,EAClB,MAAM,sBAAsB,CAAA;AAG7B,OAAO,EAAE,KAAK,gBAAgB,EAAY,MAAM,6BAA6B,CAAA;AAI7E;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,cAAc,EACd,UAAU,EACV,SAAS,EACT,UAAe,GAChB,EAAE;IACD,cAAc,EAAE,SAAS,YAAY,EAAE,CAAA;IACvC,UAAU,EAAE,SAAS,YAAY,EAAE,CAAA;IACnC,SAAS,EAAE,SAAS,gBAAgB,EAAE,CAAA;IACtC,qEAAqE;IACrE,UAAU,CAAC,EAAE,SAAS,YAAY,EAAE,CAAA;CACrC,GAAG,iBAAiB,CA+BpB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DepositQuoteRefreshReason } from '../../hooks/track/events';
|
|
2
2
|
import type { FailureReason, FiatFlow, FiatProvider, UseFiatQuoteResult } from '@funkit/connect-core';
|
|
3
3
|
import type { FiatRailConfig } from '../../flow/depositFlowConfig';
|
|
4
|
-
import {
|
|
4
|
+
import type { ProviderFailover } from '../payment/providerFailover';
|
|
5
5
|
import { quoteRefusal } from './quoteRefusal';
|
|
6
6
|
import type { useContact } from '../contact/contactRound';
|
|
7
7
|
export declare function useRegionCurrency(): {
|
|
@@ -14,13 +14,8 @@ export declare function useRegionCurrency(): {
|
|
|
14
14
|
region: string;
|
|
15
15
|
} | undefined;
|
|
16
16
|
};
|
|
17
|
-
/**
|
|
18
|
-
|
|
19
|
-
* failover pays on the provider's own steps, as main's legacy quote did:
|
|
20
|
-
* MoonPay's handed-off checkout cannot show the payment disclosures a
|
|
21
|
-
* switched-to quote can carry.
|
|
22
|
-
*/
|
|
23
|
-
export declare function quoteHandoffs(handoffProviders: readonly FiatProvider[], excluded: readonly FiatProvider[], failovers: readonly ProviderFailover[]): readonly FiatProvider[];
|
|
17
|
+
/** The providers whose own checkout a quote may hand off to. */
|
|
18
|
+
export declare function quoteHandoffs(handoffProviders: readonly FiatProvider[], excluded: readonly FiatProvider[]): readonly FiatProvider[];
|
|
24
19
|
export declare function useRoutingOverrides(fiat: FiatRailConfig, failovers: readonly ProviderFailover[], { flowExited, deferredBack, }?: {
|
|
25
20
|
/**
|
|
26
21
|
* Providers whose own checkout exited this visit. The legacy allow-list
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quoteRouting.d.ts","sourceRoot":"","sources":["../../../../src/fiat/quote/quoteRouting.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAA;AAEzE,OAAO,KAAK,EACV,aAAa,EACb,QAAQ,EACR,YAAY,EACZ,kBAAkB,EACnB,MAAM,sBAAsB,CAAA;AAe7B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAYlE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"quoteRouting.d.ts","sourceRoot":"","sources":["../../../../src/fiat/quote/quoteRouting.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAA;AAEzE,OAAO,KAAK,EACV,aAAa,EACb,QAAQ,EACR,YAAY,EACZ,kBAAkB,EACnB,MAAM,sBAAsB,CAAA;AAe7B,OAAO,KAAK,EAAE,cAAc,EAAE,MA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CAAC,EAC9B,WAAW,EACX,MAAM,EACN,OAAO,EAAE,EAAE,cAAc,EAAE,cAAc,EAAE,aAAa,EAAE,EAC1D,IAAI,EACJ,gBAAgB,EAChB,UAAU,EACV,OAAO,GACR,EAAE;IACD,WAAW,EAAE,OAAO,GAAG,MAAM,CAAA;IAC7B,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,CAAA;IACtC,IAAI,EAAE,QAAQ,CAAA;IACd,gBAAgB,EAAE,OAAO,CAAA;IACzB,UAAU,EAAE,kBAAkB,CAAA;IAC9B,OAAO,EAAE,aAAa,GAAG,SAAS,CAAA;CACnC;;EAoDA;AAED,wBAAgB,aAAa,CAC3B,IAAI,EAAE,cAAc,EACpB,UAAU,EAAE,kBAAkB;;EAgB/B"}
|
|
@@ -4,12 +4,14 @@ export type SurfaceReadySource = 'provider' | 'timeout';
|
|
|
4
4
|
export interface SurfaceUncoveredEvent {
|
|
5
5
|
readySource: SurfaceReadySource;
|
|
6
6
|
loadMs: number;
|
|
7
|
+
/** Time mounted inert before its checkout allowed the surface to become live. */
|
|
8
|
+
hiddenMs?: number;
|
|
7
9
|
}
|
|
8
10
|
export interface SurfaceTapEvent {
|
|
9
11
|
readySource: SurfaceReadySource;
|
|
10
12
|
msSinceReady: number;
|
|
11
13
|
}
|
|
12
|
-
export declare function SurfaceSlot({ renderSurface, surfaceKey, label, waitingLabel, size, covered, onReadyChange, onSurfaceTap, onSurfaceReady, onUncovered, onCovered, onReadyTimeout, readyCeilingMs, }: {
|
|
14
|
+
export declare function SurfaceSlot({ renderSurface, surfaceKey, label, waitingLabel, size, covered, onReadyChange, onSurfaceTap, onSurfaceReady, onUncovered, onCovered, onReadyTimeout, readyCeilingMs, preparing, }: {
|
|
13
15
|
/** Announced while the cover is up; the design draws no copy on it. */
|
|
14
16
|
label: string;
|
|
15
17
|
/** Draws the cover as the labelled loading button, for a wait that goes on from a tap on it. */
|
|
@@ -37,6 +39,8 @@ export declare function SurfaceSlot({ renderSurface, surfaceKey, label, waitingL
|
|
|
37
39
|
/** Ends an unresolved provider attempt instead of exposing its empty slot. */
|
|
38
40
|
onReadyTimeout?: () => void;
|
|
39
41
|
/** Override for provider probes that intentionally stay covered while they resolve. */
|
|
42
|
+
/** Preparation runs hidden; the ready ceiling begins only once the surface becomes live. */
|
|
43
|
+
preparing?: boolean;
|
|
40
44
|
readyCeilingMs?: number;
|
|
41
45
|
} & ({
|
|
42
46
|
renderSurface: (onReady: () => void) => ReactNode;
|
|
@@ -47,12 +51,14 @@ export declare function SurfaceSlot({ renderSurface, surfaceKey, label, waitingL
|
|
|
47
51
|
surfaceKey?: undefined;
|
|
48
52
|
})): import("react").JSX.Element;
|
|
49
53
|
/** Readiness and its timeout belong to this provider attempt, not the cover. */
|
|
50
|
-
export declare function ProviderSurface({ renderSurface, onReady, onReadyTimeout, readyCeilingMs, surfaceKey, }: {
|
|
54
|
+
export declare function ProviderSurface({ renderSurface, onReady, onReadyTimeout, readyCeilingMs, preparing, surfaceKey, }: {
|
|
51
55
|
renderSurface: (onReady: () => void) => ReactNode;
|
|
52
56
|
/** Names the attempt in the ceiling log; carries the quote ref when there is one. */
|
|
53
57
|
surfaceKey?: string;
|
|
54
58
|
onReady: (event: SurfaceUncoveredEvent) => void;
|
|
55
59
|
onReadyTimeout?: () => void;
|
|
60
|
+
/** Preparation runs hidden; the ready ceiling begins only once the surface becomes live. */
|
|
61
|
+
preparing?: boolean;
|
|
56
62
|
readyCeilingMs?: number;
|
|
57
63
|
}): ReactNode;
|
|
58
64
|
//# sourceMappingURL=SurfaceSlot.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SurfaceSlot.d.ts","sourceRoot":"","sources":["../../../../src/fiat/surface/SurfaceSlot.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,SAAS,EAKf,MAAM,OAAO,CAAA;AAUd,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,6B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Ac,CAAC,EAAE,CAAC,KAAK,EAAE,qBAAqB,KAAK,IAAI,CAAA;IACvD,gFAAgF;IAChF,WAAW,CAAC,EAAE,MAAM,IAAI,CAAA;IACxB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,8EAA8E;IAC9E,cAAc,CAAC,EAAE,MAAM,IAAI,CAAA;IAC3B,uFAAuF;IACvF,4FAA4F;IAC5F,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,GAAG,CACA;IACE,aAAa,EAAE,CAAC,OAAO,EAAE,MAAM,IAAI,KAAK,SAAS,CAAA;IACjD,gFAAgF;IAChF,UAAU,EAAE,MAAM,CAAA;CACnB,GACD;IAAE,aAAa,CAAC,EAAE,SAAS,CAAC;IAAC,UAAU,CAAC,EAAE,SAAS,CAAA;CAAE,CACxD,+BAyIA;AAED,gFAAgF;AAChF,wBAAgB,eAAe,CAAC,EAC9B,aAAa,EACb,OAAO,EACP,cAAc,EACd,cAAiC,EACjC,SAAiB,EACjB,UAAU,GACX,EAAE;IACD,aAAa,EAAE,CAAC,OAAO,EAAE,MAAM,IAAI,KAAK,SAAS,CAAA;IACjD,qFAAqF;IACrF,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,CAAC,KAAK,EAAE,qBAAqB,KAAK,IAAI,CAAA;IAC/C,cAAc,CAAC,EAAE,MAAM,IAAI,CAAA;IAC3B,4FAA4F;IAC5F,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,aA6DA"}
|
|
@@ -2,13 +2,12 @@ import type { FiatFlow, FiatProvider } from '@funkit/connect-core';
|
|
|
2
2
|
import type { SurfaceFailure } from '../../flow/screenBundles';
|
|
3
3
|
import type { InputStep } from '../payment/providerFailover';
|
|
4
4
|
import type { PaymentFailureAnswer, PaymentFailureSource } from '../payment/usePaymentFailureAnswer';
|
|
5
|
-
export declare function useFailureAnnouncements({ excluded, failOverInput, failedPayment, failedPaymentSource, flow,
|
|
5
|
+
export declare function useFailureAnnouncements({ excluded, failOverInput, failedPayment, failedPaymentSource, flow, onInputFailover, paymentFailure, retrySurface, surfaceFailure, }: {
|
|
6
6
|
excluded: readonly FiatProvider[];
|
|
7
7
|
failOverInput: (step: InputStep, code: string | undefined) => void;
|
|
8
8
|
failedPayment: SurfaceFailure | undefined;
|
|
9
9
|
failedPaymentSource: PaymentFailureSource;
|
|
10
10
|
flow: FiatFlow;
|
|
11
|
-
isRerouteSettled: boolean;
|
|
12
11
|
onInputFailover: (provider: FiatProvider, cause: 'kyc' | 'auth') => void;
|
|
13
12
|
paymentFailure: PaymentFailureAnswer;
|
|
14
13
|
retrySurface: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFailureAnnouncements.d.ts","sourceRoot":"","sources":["../../../../src/fiat/surface/useFailureAnnouncements.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAIlE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAM9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAA;AAM5D,OAAO,KAAK,EACV,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,oCAAoC,CAAA;AAG3C,wBAAgB,uBAAuB,CAAC,EACtC,QAAQ,EACR,aAAa,EACb,aAAa,EACb,mBAAmB,EACnB,IAAI,EACJ,
|
|
1
|
+
{"version":3,"file":"useFailureAnnouncements.d.ts","sourceRoot":"","sources":["../../../../src/fiat/surface/useFailureAnnouncements.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAIlE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAM9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAA;AAM5D,OAAO,KAAK,EACV,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,oCAAoC,CAAA;AAG3C,wBAAgB,uBAAuB,CAAC,EACtC,QAAQ,EACR,aAAa,EACb,aAAa,EACb,mBAAmB,EACnB,IAAI,EACJ,eAAe,EACf,cAAc,EACd,YAAY,EACZ,cAAc,GACf,EAAE;IACD,QAAQ,EAAE,SAAS,YAAY,EAAE,CAAA;IACjC,aAAa,EAAE,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAA;IAClE,aAAa,EAAE,cAAc,GAAG,SAAS,CAAA;IACzC,mBAAmB,EAAE,oBAAoB,CAAA;IACzC,IAAI,EAAE,QAAQ,CAAA;IACd,eAAe,EAAE,CAAC,QAAQ,EAAE,YAAY,EAAE,KAAK,EAAE,KAAK,GAAG,MAAM,KAAK,IAAI,CAAA;IACxE,cAAc,EAAE,oBAAoB,CAAA;IACpC,YAAY,EAAE,MAAM,IAAI,CAAA;IACxB,cAAc,EAAE,cAAc,GAAG,SAAS,CAAA;CAC3C,QAyDA"}
|
|
@@ -4,7 +4,7 @@ import type { useProviderCheckoutEvents } from '../hooks/track/useProviderChecko
|
|
|
4
4
|
import type { useEntryQuote } from './entry/useEntryQuote';
|
|
5
5
|
import type { useKycVerdict } from './kyc/kycVerdict';
|
|
6
6
|
/** Runs a provider-owned checkout alongside the current amount-screen orchestration. */
|
|
7
|
-
export declare function useProviderCheckout({ flow, clientRecipient, awaitingRecipient, quoteState, handoffProviders, buyerGeo, entryQuote: { shownQuote, quoteForAnalytics, recordProviderFeeQuote }, checkoutEvents, markPaymentCaptured, isAwaitingSettlement, onHandoffPaidChange, onHandoffPaymentFailed,
|
|
7
|
+
export declare function useProviderCheckout({ flow, clientRecipient, awaitingRecipient, quoteState, handoffProviders, buyerGeo, entryQuote: { shownQuote, quoteForAnalytics, recordProviderFeeQuote }, checkoutEvents, markPaymentCaptured, isAwaitingSettlement, onHandoffPaidChange, onHandoffPaymentFailed, handoffPaymentFailure, isFailoverHosting, onHandoffPaymentStarted, onHandoffPaymentCancelled, paymentRetry, flowRun, onExcludeProvider, onInputFailover, onBackToEntry, onCloseFlow, requoteRefusal, onSettleRequoteRefusal, kycVerdict: { setResolvedKyc, setKycSubmission }, submitLabel, isActionPending, }: {
|
|
8
8
|
flow: FiatFlow;
|
|
9
9
|
/** A Fun login's recipient, sent on every `POST /fiat/next`; `undefined` with a minter. */
|
|
10
10
|
clientRecipient: string | undefined;
|
|
@@ -27,8 +27,8 @@ export declare function useProviderCheckout({ flow, clientRecipient, awaitingRec
|
|
|
27
27
|
code: string;
|
|
28
28
|
provider: FiatProvider;
|
|
29
29
|
}) => void;
|
|
30
|
-
/**
|
|
31
|
-
|
|
30
|
+
/** A dismissal keeps the page mounted but inert until the buyer answers the failure sheet. */
|
|
31
|
+
handoffPaymentFailure: 'failed' | 'dismissed' | undefined;
|
|
32
32
|
/** The failover sheet hosts the screen's action: a checkout mounted under it waits for the buyer's tap. */
|
|
33
33
|
isFailoverHosting: boolean;
|
|
34
34
|
/** The buyer acted on the checkout's payment control: opens a payment attempt for its provider. */
|
|
@@ -37,6 +37,11 @@ export declare function useProviderCheckout({ flow, clientRecipient, awaitingRec
|
|
|
37
37
|
onHandoffPaymentCancelled: (provider: FiatProvider) => void;
|
|
38
38
|
/** Bumped by that sheet's "Try a different card": the checkout remounts for a new payment page. */
|
|
39
39
|
paymentRetry: number;
|
|
40
|
+
/**
|
|
41
|
+
* The session's remount count. The entry screen outlives the session, so a checkout the buyer is
|
|
42
|
+
* moved back to would otherwise keep the instance that already exited.
|
|
43
|
+
*/
|
|
44
|
+
flowRun: number;
|
|
40
45
|
onExcludeProvider: (provider: FiatProvider, refusal: string | undefined) => void;
|
|
41
46
|
onInputFailover: (provider: FiatProvider, cause: 'kyc' | 'auth') => void;
|
|
42
47
|
onBackToEntry: () => void;
|