@funkit/connect-rn 6.2.0 → 7.0.0
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 +101 -0
- package/README.md +21 -4
- package/dist/{chunk-PLSQBNDE.js → chunk-HRJNTNCV.js} +2 -2
- package/dist/{chunk-VIMRV7N2.js → chunk-P3OLDPDC.js} +338 -41
- package/dist/chunk-P3OLDPDC.js.map +7 -0
- package/dist/clients/lighter.js +1 -1
- package/dist/clients/nado.js +2 -2
- package/dist/index.d.ts +7 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5875 -2275
- package/dist/index.js.map +4 -4
- package/dist/src/components/LoadingSpinner.d.ts.map +1 -1
- package/dist/src/components/PillButton.d.ts.map +1 -1
- package/dist/src/components/v2/QuickAmountsRow.d.ts.map +1 -1
- package/dist/src/fiat/FiatChoiceField.d.ts +7 -1
- package/dist/src/fiat/FiatChoiceField.d.ts.map +1 -1
- package/dist/src/fiat/FiatCountrySheet.d.ts +11 -0
- package/dist/src/fiat/FiatCountrySheet.d.ts.map +1 -1
- package/dist/src/fiat/FiatFailureBanner.d.ts +14 -0
- package/dist/src/fiat/FiatFailureBanner.d.ts.map +1 -0
- package/dist/src/fiat/FiatFormScreen.d.ts +11 -1
- package/dist/src/fiat/FiatFormScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatIdentityStep.d.ts.map +1 -1
- package/dist/src/fiat/FiatKycFieldControl.d.ts +9 -2
- package/dist/src/fiat/FiatKycFieldControl.d.ts.map +1 -1
- package/dist/src/fiat/FiatKycOptionsScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatKycOutcomeScreen.d.ts +15 -2
- package/dist/src/fiat/FiatKycOutcomeScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatKycPhoneField.d.ts +21 -0
- package/dist/src/fiat/FiatKycPhoneField.d.ts.map +1 -0
- package/dist/src/fiat/FiatReceipt.d.ts +21 -0
- package/dist/src/fiat/FiatReceipt.d.ts.map +1 -0
- package/dist/src/fiat/FiatRegionUnsupportedScreen.d.ts +11 -0
- package/dist/src/fiat/FiatRegionUnsupportedScreen.d.ts.map +1 -0
- package/dist/src/fiat/FiatStatusScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatSubmissionIndicator.d.ts.map +1 -1
- package/dist/src/fiat/ScreenSurfaceCover.d.ts +11 -0
- package/dist/src/fiat/ScreenSurfaceCover.d.ts.map +1 -0
- package/dist/src/fiat/SurfaceSlot.d.ts +12 -1
- package/dist/src/fiat/SurfaceSlot.d.ts.map +1 -1
- package/dist/src/fiat/depositOutcome.d.ts +33 -0
- package/dist/src/fiat/depositOutcome.d.ts.map +1 -0
- package/dist/src/fiat/fieldAutofill.d.ts.map +1 -1
- package/dist/src/fiat/formLayout.d.ts +12 -5
- package/dist/src/fiat/formLayout.d.ts.map +1 -1
- package/dist/src/fiat/formScreenProps.d.ts +4 -2
- package/dist/src/fiat/formScreenProps.d.ts.map +1 -1
- package/dist/src/fiat/kycFormPosition.d.ts +25 -1
- package/dist/src/fiat/kycFormPosition.d.ts.map +1 -1
- package/dist/src/fiat/kycFormState.d.ts +10 -0
- package/dist/src/fiat/kycFormState.d.ts.map +1 -1
- package/dist/src/fiat/kycUnavailableAlert.d.ts +21 -1
- package/dist/src/fiat/kycUnavailableAlert.d.ts.map +1 -1
- package/dist/src/fiat/methodName.d.ts +8 -0
- package/dist/src/fiat/methodName.d.ts.map +1 -0
- package/dist/src/fiat/providerFailover.d.ts +12 -0
- package/dist/src/fiat/providerFailover.d.ts.map +1 -0
- package/dist/src/fiat/providers/CoinbaseCheckoutSurface.d.ts +4 -2
- package/dist/src/fiat/providers/CoinbaseCheckoutSurface.d.ts.map +1 -1
- package/dist/src/fiat/providers/StripeSessionAuthController.d.ts +29 -0
- package/dist/src/fiat/providers/StripeSessionAuthController.d.ts.map +1 -0
- package/dist/src/fiat/providers/StripeSessionAuthScreen.d.ts +10 -0
- package/dist/src/fiat/providers/StripeSessionAuthScreen.d.ts.map +1 -0
- package/dist/src/fiat/providers/adapter.d.ts +6 -0
- package/dist/src/fiat/providers/adapter.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbaseOnrampEvents.d.ts +7 -3
- package/dist/src/fiat/providers/coinbaseOnrampEvents.d.ts.map +1 -1
- package/dist/src/fiat/providers/describeThrown.d.ts +14 -0
- package/dist/src/fiat/providers/describeThrown.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpayTrace.d.ts +25 -0
- package/dist/src/fiat/providers/moonpayTrace.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripeAccountCreation.d.ts +12 -0
- package/dist/src/fiat/providers/stripeAccountCreation.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripeAuthorize.d.ts +5 -0
- package/dist/src/fiat/providers/stripeAuthorize.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripeCheckout.d.ts +28 -0
- package/dist/src/fiat/providers/stripeCheckout.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripeKyc.d.ts +56 -0
- package/dist/src/fiat/providers/stripeKyc.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripeKycInfo.d.ts +11 -0
- package/dist/src/fiat/providers/stripeKycInfo.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripeOnramp.d.ts +135 -0
- package/dist/src/fiat/providers/stripeOnramp.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripeOnrampBridge.d.ts +20 -0
- package/dist/src/fiat/providers/stripeOnrampBridge.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripePayment.d.ts +34 -0
- package/dist/src/fiat/providers/stripePayment.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripeSdk.d.ts +19 -0
- package/dist/src/fiat/providers/stripeSdk.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripeSeamlessSignIn.d.ts +18 -0
- package/dist/src/fiat/providers/stripeSeamlessSignIn.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripeSessionAuth.d.ts +43 -0
- package/dist/src/fiat/providers/stripeSessionAuth.d.ts.map +1 -0
- package/dist/src/fiat/providers/useStripeOnrampClient.d.ts +35 -0
- package/dist/src/fiat/providers/useStripeOnrampClient.d.ts.map +1 -0
- package/dist/src/fiat/quoteRefusal.d.ts +6 -2
- package/dist/src/fiat/quoteRefusal.d.ts.map +1 -1
- package/dist/src/fiat/renderCaptureSurface.d.ts +1 -1
- package/dist/src/fiat/renderCaptureSurface.d.ts.map +1 -1
- package/dist/src/fiat/sectionDetail.d.ts.map +1 -1
- package/dist/src/fiat/stepDetails.d.ts +5 -1
- package/dist/src/fiat/stepDetails.d.ts.map +1 -1
- package/dist/src/fiat/useKycCompletion.d.ts +11 -3
- package/dist/src/fiat/useKycCompletion.d.ts.map +1 -1
- package/dist/src/fiat/useStaleQuoteRecovery.d.ts +8 -1
- package/dist/src/fiat/useStaleQuoteRecovery.d.ts.map +1 -1
- package/dist/src/flow/DepositAmountStep.d.ts +4 -2
- package/dist/src/flow/DepositAmountStep.d.ts.map +1 -1
- package/dist/src/flow/DepositFlowContent.d.ts +4 -1
- package/dist/src/flow/DepositFlowContent.d.ts.map +1 -1
- package/dist/src/flow/DepositReceivedToast.d.ts +17 -0
- package/dist/src/flow/DepositReceivedToast.d.ts.map +1 -0
- package/dist/src/flow/FeeDetailsSheet.d.ts.map +1 -1
- package/dist/src/flow/FiatDepositAmountStep.d.ts +6 -2
- package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
- package/dist/src/flow/FiatRegionBlockedStep.d.ts +14 -0
- package/dist/src/flow/FiatRegionBlockedStep.d.ts.map +1 -0
- package/dist/src/flow/FiatRegionPendingStep.d.ts +10 -0
- package/dist/src/flow/FiatRegionPendingStep.d.ts.map +1 -0
- package/dist/src/flow/FlowSheet.d.ts.map +1 -1
- package/dist/src/flow/FunkitFlowProvider.d.ts +9 -1
- package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
- package/dist/src/flow/StepPage.d.ts +16 -0
- package/dist/src/flow/StepPage.d.ts.map +1 -0
- package/dist/src/flow/accountContext.d.ts +6 -0
- package/dist/src/flow/accountContext.d.ts.map +1 -0
- package/dist/src/flow/depositFlowConfig.d.ts +95 -26
- package/dist/src/flow/depositFlowConfig.d.ts.map +1 -1
- package/dist/src/flow/depositMethods.d.ts +21 -0
- package/dist/src/flow/depositMethods.d.ts.map +1 -0
- package/dist/src/flow/depositRailCopy.d.ts +20 -0
- package/dist/src/flow/depositRailCopy.d.ts.map +1 -0
- package/dist/src/flow/flowError.d.ts +37 -0
- package/dist/src/flow/flowError.d.ts.map +1 -0
- package/dist/src/flow/useDepositReceivedToast.d.ts +22 -0
- package/dist/src/flow/useDepositReceivedToast.d.ts.map +1 -0
- package/dist/src/flow/withdrawalFlowConfig.d.ts +5 -4
- package/dist/src/flow/withdrawalFlowConfig.d.ts.map +1 -1
- package/dist/src/geo/useFiatRegionSupport.d.ts +23 -0
- package/dist/src/geo/useFiatRegionSupport.d.ts.map +1 -0
- package/dist/src/hooks/useGuardedAmountInput.d.ts +15 -15
- package/dist/src/hooks/useGuardedAmountInput.d.ts.map +1 -1
- package/dist/src/hooks/usePressScale.d.ts +22 -3
- package/dist/src/hooks/usePressScale.d.ts.map +1 -1
- package/dist/src/icons/FigmaSystemIcons.d.ts +1 -0
- package/dist/src/icons/FigmaSystemIcons.d.ts.map +1 -1
- package/dist/src/icons/KycIdentityIcon.d.ts +2 -1
- package/dist/src/icons/KycIdentityIcon.d.ts.map +1 -1
- package/dist/src/icons/KycStatusIcon.d.ts +1 -1
- package/dist/src/icons/KycStatusIcon.d.ts.map +1 -1
- package/dist/src/icons/kycArtwork.d.ts +15 -0
- package/dist/src/icons/kycArtwork.d.ts.map +1 -1
- package/dist/src/identity/IdentityContext.d.ts +3 -4
- package/dist/src/identity/IdentityContext.d.ts.map +1 -1
- package/dist/src/logging/debugBridge.d.ts +11 -0
- package/dist/src/logging/debugBridge.d.ts.map +1 -0
- package/dist/src/providers/FunkitProvider.d.ts +12 -1
- package/dist/src/providers/FunkitProvider.d.ts.map +1 -1
- package/dist/src/providers/NativeCapabilitiesContext.d.ts +9 -4
- package/dist/src/providers/NativeCapabilitiesContext.d.ts.map +1 -1
- package/dist/src/providers/useFrozenIdentity.d.ts +19 -0
- package/dist/src/providers/useFrozenIdentity.d.ts.map +1 -0
- package/dist/src/screens/DepositAmountScreen.d.ts +1 -1
- package/dist/src/screens/DepositAmountScreen.d.ts.map +1 -1
- package/dist/src/screens/FeeDetailsScreen.d.ts +6 -9
- package/dist/src/screens/FeeDetailsScreen.d.ts.map +1 -1
- package/dist/src/screens/depositMetrics.d.ts +2 -3
- package/dist/src/screens/depositMetrics.d.ts.map +1 -1
- package/dist/src/statsig/useStatsigReady.d.ts +11 -0
- package/dist/src/statsig/useStatsigReady.d.ts.map +1 -0
- package/dist/src/theme/buildFunkitTheme.d.ts +15 -11
- package/dist/src/theme/buildFunkitTheme.d.ts.map +1 -1
- package/dist/src/theme/restyle.d.ts +495 -363
- package/dist/src/theme/restyle.d.ts.map +1 -1
- package/dist/src/theme/toRestyleTheme.d.ts +45 -33
- package/dist/src/theme/toRestyleTheme.d.ts.map +1 -1
- package/dist/src/theme/tokens.d.ts +5 -5
- package/dist/src/theme/tokens.d.ts.map +1 -1
- package/dist/src/utils/formatAmount.d.ts +4 -3
- package/dist/src/utils/formatAmount.d.ts.map +1 -1
- package/dist/src/utils/motion.d.ts +8 -0
- package/dist/src/utils/motion.d.ts.map +1 -1
- package/dist/src/withdrawal/useCryptoWithdrawalForm.d.ts.map +1 -1
- package/dist/src/withdrawal/useWithdrawalSourceTokenBalance.d.ts +11 -0
- package/dist/src/withdrawal/useWithdrawalSourceTokenBalance.d.ts.map +1 -0
- package/package.json +10 -5
- package/dist/chunk-VIMRV7N2.js.map +0 -7
- /package/dist/{chunk-PLSQBNDE.js.map → chunk-HRJNTNCV.js.map} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stripeSessionAuth.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/stripeSessionAuth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,gBAAgB,EAChB,OAAO,EACP,aAAa,EACd,MAAM,sBAAsB,CAAA;AAE7B,OAAO,KAAK,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAE9E,MAAM,WAAW,sBAAsB;IACrC,UAAU,EAAE,gBAAgB,CAAA;IAC5B,aAAa,EAAE,MAAM,CAAA;CACtB;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,gBAAgB,GAAG,SAAS,EAClC,IAAI,EAAE,SAAS,gBAAgB,EAAE,GAChC,sBAAsB,GAAG,SAAS,CA0BpC;AAED,MAAM,MAAM,iBAAiB,GACzB;IAAE,MAAM,EAAE,WAAW,CAAC;IAAC,gBAAgB,EAAE,MAAM,CAAA;CAAE,GACjD;IACE,MAAM,EAAE,yBAAyB,CAAA;IACjC,yBAAyB,EAAE,MAAM,CAAA;CAClC,CAAA;AAEL,qFAAqF;AACrF,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,OAAO,GACf,iBAAiB,GAAG,SAAS,CA4B/B;AAED;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,GACnC,eAAe,OAAO,KACrB,aAED,CAAA;AAEF;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,qBAAqB,GAC5B,aAAa,GAAG,SAAS,CAa3B;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAEvE"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { StripeOnrampClient } from './stripeOnramp';
|
|
2
|
+
import type { StripeSdk } from './stripeSdk';
|
|
3
|
+
/**
|
|
4
|
+
* What a host must supply to turn Stripe on: its own Stripe account's
|
|
5
|
+
* publishable key, and the Apple Merchant ID baked into the app's entitlements.
|
|
6
|
+
* Data only — the host installs `@stripe/stripe-react-native` (an optional peer)
|
|
7
|
+
* and this package binds it (see {@link useStripeOnrampClient}), so a host wires
|
|
8
|
+
* three strings, not an implementation.
|
|
9
|
+
*/
|
|
10
|
+
export interface StripeOnrampConfig {
|
|
11
|
+
/** Publishable key for the Stripe account the onramp settles into. */
|
|
12
|
+
publishableKey: string;
|
|
13
|
+
/** Shown on Stripe's own sheets. Defaults to the app's display name. */
|
|
14
|
+
merchantDisplayName: string;
|
|
15
|
+
/**
|
|
16
|
+
* Apple Merchant ID (`merchant.example.app`). Required for Apple Pay: it is
|
|
17
|
+
* an app entitlement, so only the host knows it, and Stripe decrypts the
|
|
18
|
+
* payment against the certificate bound to it.
|
|
19
|
+
*/
|
|
20
|
+
merchantIdentifier?: string;
|
|
21
|
+
/** Deep-link scheme Stripe returns to after a redirect (3DS, KYC). */
|
|
22
|
+
urlScheme?: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Binds Stripe's native SDK to the {@link StripeOnrampClient} the fiat surfaces
|
|
26
|
+
* call. Takes the SDK as an argument because it is an optional peer, loaded by
|
|
27
|
+
* `StripeOnrampBridge` only after a host configured Stripe.
|
|
28
|
+
*
|
|
29
|
+
* `initStripe` is idempotent per config but not free, so it runs once per
|
|
30
|
+
* distinct config and every call awaits that same promise — the SDK rejects
|
|
31
|
+
* calls made before it resolves. A failed init clears the cache so the next
|
|
32
|
+
* call retries rather than latching the failure forever.
|
|
33
|
+
*/
|
|
34
|
+
export declare function useStripeOnrampClient({ initStripe, isPlatformPaySupported, useOnramp }: StripeSdk, config: StripeOnrampConfig): StripeOnrampClient;
|
|
35
|
+
//# sourceMappingURL=useStripeOnrampClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useStripeOnrampClient.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/useStripeOnrampClient.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AACxD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAE5C;;;;;;GAMG;AACH,MAAM,WAAW,kBAAkB;IACjC,sEAAsE;IACtE,cAAc,EAAE,MAAM,CAAA;IACtB,wEAAwE;IACxE,mBAAmB,EAAE,MAAM,CAAA;IAC3B;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,sEAAsE;IACtE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CACnC,EAAE,UAAU,EAAE,sBAAsB,EAAE,SAAS,EAAE,EAAE,SAAS,EAC5D,MAAM,EAAE,kBAAkB,GACzB,kBAAkB,CA0JpB"}
|
|
@@ -15,10 +15,14 @@ export interface QuoteRefusalAlert {
|
|
|
15
15
|
message: string;
|
|
16
16
|
}
|
|
17
17
|
export declare function showPaymentUnavailableAlert(t: TFunction, applePay: boolean, scheme?: 'light' | 'dark'): void;
|
|
18
|
-
export declare function showQuoteRefusalAlert(error: FailureReason, t: TFunction, scheme?: 'light' | 'dark'
|
|
18
|
+
export declare function showQuoteRefusalAlert(error: FailureReason, t: TFunction, scheme?: 'light' | 'dark',
|
|
19
|
+
/** The ceiling the refusing response reported, already formatted. */
|
|
20
|
+
max?: string): void;
|
|
19
21
|
/** The error a step response carries back onto the quote, if it does. */
|
|
20
22
|
export declare function quoteRefusal(stepResponse: FiatStepResponse | undefined): FailureReason | undefined;
|
|
21
|
-
|
|
23
|
+
/** The ceiling a refusing response carries, when it re-presents the quote. */
|
|
24
|
+
export declare function quoteRefusalLimit(stepResponse: FiatStepResponse | undefined): string | undefined;
|
|
25
|
+
export declare function quoteRefusalAlert(error: FailureReason, t: TFunction, max?: string): QuoteRefusalAlert;
|
|
22
26
|
/** Select the contact-screen recovery, if the refusal belongs on that screen. */
|
|
23
27
|
export declare function contactRefusal(error: FailureReason | undefined): 'reverify' | 'change' | 'rate-limited' | undefined;
|
|
24
28
|
//# sourceMappingURL=quoteRefusal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quoteRefusal.d.ts","sourceRoot":"","sources":["../../../src/fiat/quoteRefusal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAC3E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAIxC;;;;;;;;;GASG;AACH,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,wBAAgB,2BAA2B,CACzC,CAAC,EAAE,SAAS,EACZ,QAAQ,EAAE,OAAO,EACjB,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,QAa1B;AAED,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,aAAa,EACpB,CAAC,EAAE,SAAS,EACZ,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"quoteRefusal.d.ts","sourceRoot":"","sources":["../../../src/fiat/quoteRefusal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAC3E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAIxC;;;;;;;;;GASG;AACH,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,wBAAgB,2BAA2B,CACzC,CAAC,EAAE,SAAS,EACZ,QAAQ,EAAE,OAAO,EACjB,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,QAa1B;AAED,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,aAAa,EACpB,CAAC,EAAE,SAAS,EACZ,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM;AACzB,qEAAqE;AACrE,GAAG,CAAC,EAAE,MAAM,QAkBb;AAED,yEAAyE;AACzE,wBAAgB,YAAY,CAC1B,YAAY,EAAE,gBAAgB,GAAG,SAAS,GACzC,aAAa,GAAG,SAAS,CAG3B;AAED,8EAA8E;AAC9E,wBAAgB,iBAAiB,CAC/B,YAAY,EAAE,gBAAgB,GAAG,SAAS,GACzC,MAAM,GAAG,SAAS,CAGpB;AAED,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,aAAa,EACpB,CAAC,EAAE,SAAS,EACZ,GAAG,CAAC,EAAE,MAAM,GACX,iBAAiB,CAoCnB;AAED,iFAAiF;AACjF,wBAAgB,cAAc,CAC5B,KAAK,EAAE,aAAa,GAAG,SAAS,GAC/B,UAAU,GAAG,QAAQ,GAAG,cAAc,GAAG,SAAS,CAepD"}
|
|
@@ -5,7 +5,7 @@ import type { SurfaceAdapter, SurfaceContext, SurfaceControlModel } from './prov
|
|
|
5
5
|
* How this surface is operated, or `undefined` when nothing can draw it.
|
|
6
6
|
* Asked before rendering, because the two models want different chrome.
|
|
7
7
|
*/
|
|
8
|
-
export declare function captureControl(surface: Surface): SurfaceControlModel | undefined;
|
|
8
|
+
export declare function captureControl(surface: Surface, adapters?: readonly SurfaceAdapter[]): SurfaceControlModel | undefined;
|
|
9
9
|
/**
|
|
10
10
|
* `adapters` are tried before the registry, for a screen that can build one
|
|
11
11
|
* the registry cannot — the identity SDK needs the quote its capture belongs
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderCaptureSurface.d.ts","sourceRoot":"","sources":["../../../src/fiat/renderCaptureSurface.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,OAAO,KAAK,EAEV,cAAc,EACd,cAAc,EACd,mBAAmB,EACpB,MAAM,qBAAqB,CAAA;AAqC5B;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"renderCaptureSurface.d.ts","sourceRoot":"","sources":["../../../src/fiat/renderCaptureSurface.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,OAAO,KAAK,EAEV,cAAc,EACd,cAAc,EACd,mBAAmB,EACpB,MAAM,qBAAqB,CAAA;AAqC5B;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE,OAAO,EAChB,QAAQ,GAAE,SAAS,cAAc,EAAO,GACvC,mBAAmB,GAAG,SAAS,CAEjC;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,OAAO,EACP,QAAQ,EACR,GAAG,OAAO,EACX,EAAE,cAAc,GAAG;IAClB,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,CAAC,EAAE,SAAS,cAAc,EAAE,CAAA;CACrC,GAAG,SAAS,CAEZ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sectionDetail.d.ts","sourceRoot":"","sources":["../../../src/fiat/sectionDetail.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAE9C;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,UAAU,EAAE,CAAC,EAAE,SAAS,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"sectionDetail.d.ts","sourceRoot":"","sources":["../../../src/fiat/sectionDetail.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAE9C;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,UAAU,EAAE,CAAC,EAAE,SAAS,GAAG,MAAM,CA+BvE"}
|
|
@@ -33,7 +33,7 @@ export declare function quoteFeeSummary(quote: Quote | undefined, method: string
|
|
|
33
33
|
* A step's own error, worded for the banner it renders as. The contract sends
|
|
34
34
|
* no message — `code` is a copy key — so the category is what the copy keys off.
|
|
35
35
|
*/
|
|
36
|
-
export declare function roundErrorMessage(error: FailureReason | undefined, t: TFunction): string | undefined;
|
|
36
|
+
export declare function roundErrorMessage(error: FailureReason | undefined, t: TFunction, provider?: string): string | undefined;
|
|
37
37
|
/**
|
|
38
38
|
* A cooling-off hold's comeback date, worded as the ISO day it names.
|
|
39
39
|
*
|
|
@@ -49,4 +49,8 @@ export declare function kycHoldRetryDetail(flow: FiatFlow, t: TFunction): string
|
|
|
49
49
|
*/
|
|
50
50
|
export declare function rejectedDetail(flow: FiatFlow, t: TFunction): string | undefined;
|
|
51
51
|
export declare function blockedRetryDetail(flow: FiatFlow): string | undefined;
|
|
52
|
+
/** The marker a KYC round carries when its quote lapsed while the form was open. */
|
|
53
|
+
export declare function isExpiredQuoteMarker(error: FailureReason): boolean;
|
|
54
|
+
/** The recipient as the buyer knows it; the wire id is upper case. */
|
|
55
|
+
export declare function providerName(provider: string | undefined): string;
|
|
52
56
|
//# sourceMappingURL=stepDetails.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stepDetails.d.ts","sourceRoot":"","sources":["../../../src/fiat/stepDetails.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAC1E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAA;AAIhE;;;;;;GAMG;AACH,wBAAgB,QAAQ,CACtB,KAAK,EAAE,KAAK,GAAG,SAAS,EACxB,MAAM,EA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2,12 +2,20 @@ import type { FiatFlow } from '@funkit/connect-core';
|
|
|
2
2
|
import type { FiatKycOutcomeScreenProps } from './FiatKycOutcomeScreen';
|
|
3
3
|
export type KycCompletion = FiatKycOutcomeScreenProps['outcome'];
|
|
4
4
|
/**
|
|
5
|
-
* The acknowledgement owed to a finished identity form
|
|
6
|
-
*
|
|
7
|
-
*
|
|
5
|
+
* The acknowledgement owed to a finished identity form whose verdict is not
|
|
6
|
+
* yet in: review, hold, or refusal. A form answered with the next step needs
|
|
7
|
+
* none; that step is the acknowledgement.
|
|
8
8
|
*
|
|
9
9
|
* Derived in render, not an effect — the amount screen must not paint in the
|
|
10
10
|
* gap. Capture is excluded: a provider surface reporting back is not a form.
|
|
11
11
|
*/
|
|
12
12
|
export declare function useKycCompletion(flow: FiatFlow): KycCompletion | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* The wait an acknowledgement makes before it gives up its verdict.
|
|
15
|
+
*
|
|
16
|
+
* - Counted from the moment the screen is up, not from when the answer landed:
|
|
17
|
+
* the verdict is often decided while another screen still owns the frame,
|
|
18
|
+
* and a wait spent behind one is a wait the buyer never had.
|
|
19
|
+
*/
|
|
20
|
+
export declare function useKycCompletionHold(): boolean;
|
|
13
21
|
//# sourceMappingURL=useKycCompletion.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useKycCompletion.d.ts","sourceRoot":"","sources":["../../../src/fiat/useKycCompletion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAIpD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAA;AAEvE,MAAM,MAAM,aAAa,GAAG,yBAAyB,CAAC,SAAS,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"useKycCompletion.d.ts","sourceRoot":"","sources":["../../../src/fiat/useKycCompletion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAIpD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAA;AAEvE,MAAM,MAAM,aAAa,GAAG,yBAAyB,CAAC,SAAS,CAAC,CAAA;AAOhE;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,QAAQ,GAAG,aAAa,GAAG,SAAS,CAa1E;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,IAAI,OAAO,CAO9C"}
|
|
@@ -19,6 +19,13 @@ export interface StaleQuoteRecovery {
|
|
|
19
19
|
* query is off, so there is no replacement to wait for, and the way to a new
|
|
20
20
|
* price is giving the round up.
|
|
21
21
|
*/
|
|
22
|
-
export declare function useStaleQuoteRecovery(flow: RecoverableFlow, quote: RecoverableQuote
|
|
22
|
+
export declare function useStaleQuoteRecovery(flow: RecoverableFlow, quote: RecoverableQuote, { hold, }?: {
|
|
23
|
+
/**
|
|
24
|
+
* The failed send followed a completed capture, so a replacement price
|
|
25
|
+
* would open a second sheet on a card already charged. Nothing is replaced
|
|
26
|
+
* while this holds.
|
|
27
|
+
*/
|
|
28
|
+
hold?: boolean;
|
|
29
|
+
}): StaleQuoteRecovery;
|
|
23
30
|
export {};
|
|
24
31
|
//# sourceMappingURL=useStaleQuoteRecovery.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useStaleQuoteRecovery.d.ts","sourceRoot":"","sources":["../../../src/fiat/useStaleQuoteRecovery.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAMxE,KAAK,eAAe,GAAG,IAAI,CAAC,QAAQ,EAAE,OAAO,GAAG,aAAa,GAAG,cAAc,CAAC,CAAA;AAE/E,KAAK,gBAAgB,GAAG,IAAI,CAC1B,kBAAkB,EAClB,OAAO,GAAG,cAAc,GAAG,YAAY,GAAG,YAAY,GAAG,aAAa,CACvE,CAAA;AAED,MAAM,WAAW,kBAAkB;IACjC,oEAAoE;IACpE,WAAW,EAAE,OAAO,CAAA;IACpB,uEAAuE;IACvE,YAAY,EAAE,MAAM,IAAI,CAAA;CACzB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,eAAe,EACrB,KAAK,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"useStaleQuoteRecovery.d.ts","sourceRoot":"","sources":["../../../src/fiat/useStaleQuoteRecovery.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAMxE,KAAK,eAAe,GAAG,IAAI,CAAC,QAAQ,EAAE,OAAO,GAAG,aAAa,GAAG,cAAc,CAAC,CAAA;AAE/E,KAAK,gBAAgB,GAAG,IAAI,CAC1B,kBAAkB,EAClB,OAAO,GAAG,cAAc,GAAG,YAAY,GAAG,YAAY,GAAG,aAAa,CACvE,CAAA;AAED,MAAM,WAAW,kBAAkB;IACjC,oEAAoE;IACpE,WAAW,EAAE,OAAO,CAAA;IACpB,uEAAuE;IACvE,YAAY,EAAE,MAAM,IAAI,CAAA;CACzB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,eAAe,EACrB,KAAK,EAAE,gBAAgB,EACvB,EACE,IAAY,GACb,GAAE;IACD;;;;OAIG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;CACV,GACL,kBAAkB,CA8EpB"}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import type { DepositAmountEntryConfig, DepositFlowCallbacks, DepositInitialAmount } from './depositFlowConfig';
|
|
1
|
+
import type { DepositAmountEntryConfig, DepositFlowCallbacks, DepositInitialAmount, DepositMethod } from './depositFlowConfig';
|
|
2
2
|
/**
|
|
3
3
|
* Container for the V2 amount-entry screen: owns the typed amount, prices the
|
|
4
4
|
* fee from the configured rate and hands submission to the host. The payment
|
|
5
5
|
* rail behind the submit is not part of this step — `onSubmitAmount` is the
|
|
6
6
|
* seam it will attach to.
|
|
7
7
|
*/
|
|
8
|
-
export declare function DepositAmountStep({ config, callbacks, initialAmount, lockAmount, }: {
|
|
8
|
+
export declare function DepositAmountStep({ config, method, callbacks, initialAmount, lockAmount, }: {
|
|
9
9
|
config: DepositAmountEntryConfig;
|
|
10
|
+
/** The method the submit stands for; it words the button and the drawer. */
|
|
11
|
+
method?: DepositMethod;
|
|
10
12
|
callbacks: DepositFlowCallbacks;
|
|
11
13
|
/** Prefills the typed amount. */
|
|
12
14
|
initialAmount?: DepositInitialAmount;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DepositAmountStep.d.ts","sourceRoot":"","sources":["../../../src/flow/DepositAmountStep.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EACV,wBAAwB,EACxB,oBAAoB,EACpB,oBAAoB,
|
|
1
|
+
{"version":3,"file":"DepositAmountStep.d.ts","sourceRoot":"","sources":["../../../src/flow/DepositAmountStep.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EACV,wBAAwB,EACxB,oBAAoB,EACpB,oBAAoB,EACpB,aAAa,EACd,MAAM,qBAAqB,CAAA;AAY5B;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,MAAM,EACN,MAAM,EACN,SAAS,EACT,aAAa,EACb,UAAU,GACX,EAAE;IACD,MAAM,EAAE,wBAAwB,CAAA;IAChC,4EAA4E;IAC5E,MAAM,CAAC,EAAE,aAAa,CAAA;IACtB,SAAS,EAAE,oBAAoB,CAAA;IAC/B,iCAAiC;IACjC,aAAa,CAAC,EAAE,oBAAoB,CAAA;IACpC;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,+BAgIA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
2
|
import type { DepositClientMetadata, DepositFlowCallbacks, DepositFlowConfig } from './depositFlowConfig';
|
|
3
|
+
import type { DepositReceipt } from './useDepositReceivedToast';
|
|
3
4
|
import type { FlowNav, FlowScreen } from './FunkitFlowProvider';
|
|
4
5
|
/**
|
|
5
6
|
* The live flow body. Drives the deposit-address + QR generation
|
|
@@ -7,13 +8,15 @@ import type { FlowNav, FlowScreen } from './FunkitFlowProvider';
|
|
|
7
8
|
* with the resolved data. Kept separate from the provider so its
|
|
8
9
|
* hooks run only while the modal is open (it isn't mounted when closed).
|
|
9
10
|
*/
|
|
10
|
-
export declare function FlowContent({ checkoutId, clientMetadata, config, current, nav, onCopySuccess, callbacks, }: {
|
|
11
|
+
export declare function FlowContent({ checkoutId, clientMetadata, config, current, nav, onCopySuccess, showDepositToast, callbacks, }: {
|
|
11
12
|
checkoutId: string;
|
|
12
13
|
clientMetadata: DepositClientMetadata | undefined;
|
|
13
14
|
config: DepositFlowConfig;
|
|
14
15
|
current: FlowScreen | undefined;
|
|
15
16
|
nav: FlowNav;
|
|
16
17
|
onCopySuccess: () => void;
|
|
18
|
+
/** Raises the SDK's deposit confirmation, which outlives this content. */
|
|
19
|
+
showDepositToast: (receipt: DepositReceipt) => void;
|
|
17
20
|
callbacks: DepositFlowCallbacks;
|
|
18
21
|
}): ReactNode;
|
|
19
22
|
//# sourceMappingURL=DepositFlowContent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DepositFlowContent.d.ts","sourceRoot":"","sources":["../../../src/flow/DepositFlowContent.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAoC,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"DepositFlowContent.d.ts","sourceRoot":"","sources":["../../../src/flow/DepositFlowContent.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAoC,MAAM,OAAO,CAAA;AA8CxE,OAAO,KAAK,EAEV,qBAAqB,EACrB,oBAAoB,EACpB,iBAAiB,EAElB,MAAM,qBAAqB,CAAA;AAG5B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAG/D,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AA6D/D;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,EAC1B,UAAU,EACV,cAAc,EACd,MAAM,EACN,OAAO,EACP,GAAG,EACH,aAAa,EACb,gBAAgB,EAChB,SAAS,GACV,EAAE;IACD,UAAU,EAAE,MAAM,CAAA;IAClB,cAAc,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACjD,MAAM,EAAE,iBAAiB,CAAA;IACzB,OAAO,EAAE,UAAU,GAAG,SAAS,CAAA;IAC/B,GAAG,EAAE,OAAO,CAAA;IACZ,aAAa,EAAE,MAAM,IAAI,CAAA;IACzB,0EAA0E;IAC1E,gBAAgB,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAA;IACnD,SAAS,EAAE,oBAAoB,CAAA;CAChC,GAAG,SAAS,CAiSZ"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface DepositReceivedToastProps {
|
|
2
|
+
/** The amount that landed, e.g. "$99.50 deposit received". */
|
|
3
|
+
title: string;
|
|
4
|
+
/** Where it came from, e.g. "from ApplePay". */
|
|
5
|
+
detail: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* The deposit confirmation that replaces the payment sheet.
|
|
9
|
+
*
|
|
10
|
+
* - Owns no timer and no positioning: whatever mounts it decides both.
|
|
11
|
+
* - Outlives the sheet — the flow closes on a cleared charge, and this is what
|
|
12
|
+
* says the money arrived.
|
|
13
|
+
* - Glass like GlassSheetBackground: a glass host owns the tint, so the fill
|
|
14
|
+
* drops out under it rather than flattening the refraction.
|
|
15
|
+
*/
|
|
16
|
+
export declare function DepositReceivedToast({ title, detail, }: DepositReceivedToastProps): import("react").JSX.Element;
|
|
17
|
+
//# sourceMappingURL=DepositReceivedToast.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DepositReceivedToast.d.ts","sourceRoot":"","sources":["../../../src/flow/DepositReceivedToast.tsx"],"names":[],"mappings":"AAiCA,MAAM,WAAW,yBAAyB;IACxC,8DAA8D;IAC9D,KAAK,EAAE,MAAM,CAAA;IACb,gDAAgD;IAChD,MAAM,EAAE,MAAM,CAAA;CACf;AAED;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,KAAK,EACL,MAAM,GACP,EAAE,yBAAyB,+BAgD3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FeeDetailsSheet.d.ts","sourceRoot":"","sources":["../../../src/flow/FeeDetailsSheet.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,WAAW,EAAkB,MAAM,yBAAyB,CAAA;
|
|
1
|
+
{"version":3,"file":"FeeDetailsSheet.d.ts","sourceRoot":"","sources":["../../../src/flow/FeeDetailsSheet.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,WAAW,EAAkB,MAAM,yBAAyB,CAAA;AAC1E,OAAO,EACL,KAAK,aAAa,EAEnB,MAAM,6BAA6B,CAAA;AAGpC,iEAAiE;AACjE,wBAAgB,kBAAkB,IAAI;IACpC,KAAK,EAAE,WAAW,CAAC,YAAY,CAAC,CAAA;IAChC,cAAc,EAAE,MAAM,IAAI,CAAA;CAC3B,CAWA;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,IAAI,EACJ,OAAO,GACR,EAAE;IACD,KAAK,EAAE,WAAW,CAAC,YAAY,CAAC,CAAA;IAChC,IAAI,EAAE,aAAa,EAAE,CAAA;IACrB,6EAA6E;IAC7E,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,+BAeA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type { DepositAmountEntryConfig, DepositCheckoutConfig, DepositClientMetadata, DepositInitialAmount, FiatRailConfig } from './depositFlowConfig';
|
|
2
|
-
|
|
1
|
+
import type { DepositAmountEntryConfig, DepositCheckoutConfig, DepositClientMetadata, DepositFlowCallbacks, DepositInitialAmount, FiatRailConfig } from './depositFlowConfig';
|
|
2
|
+
import type { DepositReceipt } from './useDepositReceivedToast';
|
|
3
|
+
export declare function FiatDepositAmountStep({ config, fiat, checkoutConfig, dynamicRoutingId, depositAddressOverride, checkoutId, clientMetadata, initialAmount, lockAmount, callbacks, showDepositToast, onCloseFlow, }: {
|
|
3
4
|
config: DepositAmountEntryConfig;
|
|
4
5
|
fiat: FiatRailConfig;
|
|
5
6
|
checkoutConfig: DepositCheckoutConfig | undefined;
|
|
@@ -14,6 +15,9 @@ export declare function FiatDepositAmountStep({ config, fiat, checkoutConfig, dy
|
|
|
14
15
|
initialAmount?: DepositInitialAmount;
|
|
15
16
|
/** Locks the prefilled amount against numpad and quick-amount edits. */
|
|
16
17
|
lockAmount?: boolean;
|
|
18
|
+
callbacks: Pick<DepositFlowCallbacks, 'onDepositSubmitted' | 'onDepositError'>;
|
|
19
|
+
/** Raises the SDK's deposit confirmation, which outlives this screen. */
|
|
20
|
+
showDepositToast: (receipt: DepositReceipt) => void;
|
|
17
21
|
onCloseFlow: () => void;
|
|
18
22
|
}): import("react").JSX.Element;
|
|
19
23
|
//# sourceMappingURL=FiatDepositAmountStep.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FiatDepositAmountStep.d.ts","sourceRoot":"","sources":["../../../src/flow/FiatDepositAmountStep.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FiatDepositAmountStep.d.ts","sourceRoot":"","sources":["../../../src/flow/FiatDepositAmountStep.tsx"],"names":[],"mappings":"AAkJA,OAAO,KAAK,EACV,wBAAwB,EACxB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EAEpB,cAAc,EACf,MAAM,qBAAqB,CAAA;AAC5B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAyF/D,wBAAgB,qBAAqB,CAAC,EACpC,MAAM,EACN,IAAI,EACJ,cAAc,EACd,gBAAgB,EAChB,sBAAsB,EACtB,UAAU,EACV,cAAc,EACd,aAAa,EACb,UAAU,EACV,SAAS,EACT,gBAAgB,EAChB,WAAW,GACZ,EAAE;IACD,MAAM,EAAE,wBAAwB,CAAA;IAChC,IAAI,EAAE,cAAc,CAAA;IACpB,cAAc,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACjD,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAA;IACpC,mEAAmE;IACnE,sBAAsB,CAAC,EAAE,MAAM,CAAA;IAC/B,UAAU,EAAE,MAAM,CAAA;IAClB,cAAc,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACjD;;OAEG;IACH,aAAa,CAAC,EAAE,oBAAoB,CAAA;IACpC,wEAAwE;IACxE,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,SAAS,EAAE,IAAI,CAAC,oBAAoB,EAAE,oBAAoB,GAAG,gBAAgB,CAAC,CAAA;IAC9E,yEAAyE;IACzE,gBAAgB,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAA;IACnD,WAAW,EAAE,MAAM,IAAI,CAAA;CACxB,+BAqDA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { DepositFlowCallbacks } from './depositFlowConfig';
|
|
2
|
+
/**
|
|
3
|
+
* The region refusal raised before a deposit has started.
|
|
4
|
+
*
|
|
5
|
+
* The host hears it on the deposit's own error channel rather than
|
|
6
|
+
* `onCheckoutBlocked`: that one says the user is barred from checkout, and a
|
|
7
|
+
* corridor we do not serve is a different fact.
|
|
8
|
+
*/
|
|
9
|
+
export declare function FiatRegionBlockedStep({ checkoutId, callbacks, onClose, }: {
|
|
10
|
+
checkoutId: string;
|
|
11
|
+
callbacks: Pick<DepositFlowCallbacks, 'onDepositError'>;
|
|
12
|
+
onClose: () => void;
|
|
13
|
+
}): import("react").JSX.Element;
|
|
14
|
+
//# sourceMappingURL=FiatRegionBlockedStep.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FiatRegionBlockedStep.d.ts","sourceRoot":"","sources":["../../../src/flow/FiatRegionBlockedStep.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAA;AAG/D;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,UAAU,EACV,SAAS,EACT,OAAO,GACR,EAAE;IACD,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,IAAI,CAAC,oBAAoB,EAAE,gBAAgB,CAAC,CAAA;IACvD,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB,+BAoBA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Held while the region verdict is still provisional.
|
|
3
|
+
*
|
|
4
|
+
* Nothing of the deposit mounts behind this. Mounting the amount screen first
|
|
5
|
+
* and swapping it out on a refusal would let the buyer start typing into a
|
|
6
|
+
* flow that was never open to them, and would report the deposit `cancelled`
|
|
7
|
+
* on the way out — on top of the refusal the host is about to hear.
|
|
8
|
+
*/
|
|
9
|
+
export declare function FiatRegionPendingStep(): import("react").JSX.Element;
|
|
10
|
+
//# sourceMappingURL=FiatRegionPendingStep.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FiatRegionPendingStep.d.ts","sourceRoot":"","sources":["../../../src/flow/FiatRegionPendingStep.tsx"],"names":[],"mappings":"AAWA;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,gCAiBpC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlowSheet.d.ts","sourceRoot":"","sources":["../../../src/flow/FlowSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,SAAS,EAIf,MAAM,OAAO,CAAA;AAEd,OAAO,EAEL,KAAK,0BAA0B,EAKhC,MAAM,sBAAsB,CAAA;AAiB7B;;;;;;;;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7B,MAAM,EAAE,OAAO,CAAA;IACf;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,kDAAkD;IAClD,OAAO,EAAE,SAAS,CAAA;IAClB,yDAAyD;IACzD,QAAQ,EAAE,SAAS,CAAA;IACnB;;;;;OAKG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,yFAAyF;IACzF,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AAsBD,wBAAgB,SAAS,CAAC,EACxB,MAAM,EACN,OAAO,EACP,OAAO,EACP,OAAO,EACP,QAAQ,EACR,oBAA4B,EAC5B,oBAA2B,EAC3B,aAAqB,EACrB,UAAkB,EAClB,KAAa,GACd,EAAE,cAAc,+BA2KhB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,0BAA0B,+BAEpE;AAcD;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,0BAA0B,+BAcrE;AAeD;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,0BAA0B,+BASvE"}
|
|
@@ -3,6 +3,7 @@ import { type ClipboardReader, type ClipboardWriter } from '../transfer/clipboar
|
|
|
3
3
|
import type { DepositFlowCallbacks, DepositFlowConfig } from './depositFlowConfig';
|
|
4
4
|
import { type BackdropBlurRenderer } from './FlowSheet';
|
|
5
5
|
import type { WithdrawalFlowCallbacks, WithdrawalFlowConfig } from './withdrawalFlowConfig';
|
|
6
|
+
import type { StripeOnrampConfig } from '../fiat/providers/useStripeOnrampClient';
|
|
6
7
|
export type FlowScreen = 'depositAmount' | 'addMoney' | 'transfer' | 'swapped' | 'withdrawMethod' | 'withdrawAmount' | 'withdrawAddress' | 'withdrawReceiveToken' | 'withdrawComplete';
|
|
7
8
|
interface FunkitFlowContextValue {
|
|
8
9
|
/** Open the managed deposit flow at the Add money screen. */
|
|
@@ -31,7 +32,7 @@ export interface FlowNav {
|
|
|
31
32
|
* (host apps never render them directly), mirroring how `@funkit/connect`'s
|
|
32
33
|
* `FunkitProvider` owns the checkout modal.
|
|
33
34
|
*/
|
|
34
|
-
export declare function FunkitFlowProvider({ children, copyToClipboard, pasteFromClipboard, renderBackdropBlur, liquidGlass, }: {
|
|
35
|
+
export declare function FunkitFlowProvider({ children, copyToClipboard, pasteFromClipboard, renderBackdropBlur, liquidGlass, stripeOnramp, onOpenChange, }: {
|
|
35
36
|
children: ReactNode;
|
|
36
37
|
/** Host clipboard override; defaults to the bare-RN clipboard peer. */
|
|
37
38
|
copyToClipboard?: ClipboardWriter;
|
|
@@ -41,6 +42,13 @@ export declare function FunkitFlowProvider({ children, copyToClipboard, pasteFro
|
|
|
41
42
|
renderBackdropBlur?: BackdropBlurRenderer;
|
|
42
43
|
/** Set when that renderer returns iOS 26 Liquid Glass rather than a blur. */
|
|
43
44
|
liquidGlass?: boolean;
|
|
45
|
+
/** Stripe account config; the client is built from it here. */
|
|
46
|
+
stripeOnramp?: StripeOnrampConfig;
|
|
47
|
+
/**
|
|
48
|
+
* Fires on the closed→open and open→closed transitions, and again with
|
|
49
|
+
* `true` when a `begin*` call replaces a flow that is already open.
|
|
50
|
+
*/
|
|
51
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
44
52
|
}): import("react").JSX.Element;
|
|
45
53
|
export declare function useFunkitFlow(): FunkitFlowContextValue;
|
|
46
54
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FunkitFlowProvider.d.ts","sourceRoot":"","sources":["../../../src/flow/FunkitFlowProvider.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FunkitFlowProvider.d.ts","sourceRoot":"","sources":["../../../src/flow/FunkitFlowProvider.ts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eAAwC,EACxC,kBAA8C,EAC9C,kBAAkB,EAClB,WAAW,EACX,YAAY,EACZ,YAAY,GACb,EAAE;IACD,QAAQ,EAAE,SAAS,CAAA;IACnB,uEAAuE;IACvE,eAAe,CAAC,EAAE,eAAe,CAAA;IACjC,4EAA4E;IAC5E,kBAAkB,CAAC,EAAE,eAAe,CAAA;IACpC,6EAA6E;IAC7E,kBAAkB,CAAC,EAAE,oBAAoB,CAAA;IACzC,6EAA6E;IAC7E,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,+DAA+D;IAC/D,YAAY,CAAC,EAAE,kBAAkB,CAAA;IACjC;;;OAGG;IACH,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAA;CACzC,+BAuSA;AAwCD,wBAAgB,aAAa,IAAI,sBAAsB,CAMtD"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* One page of a step, so a move between them is a turn rather than a cut.
|
|
4
|
+
*
|
|
5
|
+
* - `side` is where the page sits in the flow: `ahead` arrives from and leaves
|
|
6
|
+
* to the right, `behind` the left, so the two cross as they swap.
|
|
7
|
+
* - Both pages stand in the frame while the turn runs, so each fills it
|
|
8
|
+
* absolutely and the frame keeps the step's height.
|
|
9
|
+
*/
|
|
10
|
+
export declare function StepPage({ side, animateIn, children, }: {
|
|
11
|
+
side: 'ahead' | 'behind';
|
|
12
|
+
/** Off for the page the step opens on: there is nothing for it to turn from. */
|
|
13
|
+
animateIn?: boolean;
|
|
14
|
+
children: ReactNode;
|
|
15
|
+
}): import("react").JSX.Element;
|
|
16
|
+
//# sourceMappingURL=StepPage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StepPage.d.ts","sourceRoot":"","sources":["../../../src/flow/StepPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAMtC;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CAAC,EACvB,IAAI,EACJ,SAAgB,EAChB,QAAQ,GACT,EAAE;IACD,IAAI,EAAE,OAAO,GAAG,QAAQ,CAAA;IACxB,gFAAgF;IAChF,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,EAAE,SAAS,CAAA;CACpB,+BAWA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { AccountBalanceChipProps } from '../components/v2/AccountBalanceChip';
|
|
2
|
+
import type { Locale } from '../locales/i18n';
|
|
3
|
+
import type { DepositAccountContext } from './depositFlowConfig';
|
|
4
|
+
/** The chip's props; a deprecated preformatted `value` still wins. */
|
|
5
|
+
export declare function accountBalanceChipProps(context: DepositAccountContext | undefined, locale: Locale): AccountBalanceChipProps | undefined;
|
|
6
|
+
//# sourceMappingURL=accountContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accountContext.d.ts","sourceRoot":"","sources":["../../../src/flow/accountContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAA;AAClF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAC7C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAA;AAkBhE,sEAAsE;AACtE,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,qBAAqB,GAAG,SAAS,EAC1C,MAAM,EAAE,MAAM,GACb,uBAAuB,GAAG,SAAS,CAMrC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import type { CheckoutTokenTransferConfig, DynamicTargetAssetCandidate, MinDepositTarget } from '@funkit/connect-core';
|
|
1
|
+
import type { CheckoutTokenTransferConfig, DynamicTargetAssetCandidate, FiatRoutingOverrides, MinDepositTarget } from '@funkit/connect-core';
|
|
2
2
|
import type { ReactNode } from 'react';
|
|
3
3
|
import type { SupportedToken, TokenChainFilter } from '../transfer/supportedTokens';
|
|
4
|
+
import type { FunkitFlowError } from './flowError';
|
|
4
5
|
export type { DynamicTargetAssetCandidate } from '@funkit/connect-core';
|
|
5
6
|
/**
|
|
6
7
|
* Host-supplied identifiers correlating this deposit with the host's own
|
|
@@ -63,24 +64,28 @@ export interface ChainOption {
|
|
|
63
64
|
*/
|
|
64
65
|
export interface DepositAmountEntryConfig {
|
|
65
66
|
/**
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
* there. Without `fiat` an omitted rate shows no fee at all.
|
|
67
|
+
* @deprecated The rail quotes its own fee. Fee charged on the entered
|
|
68
|
+
* amount, as a fraction (0.005 = 0.5%), shown only while no rail is wired.
|
|
69
69
|
*/
|
|
70
70
|
feeRate?: number;
|
|
71
71
|
/**
|
|
72
|
-
* The
|
|
73
|
-
* the fee-details drawer
|
|
74
|
-
* the figures alone.
|
|
72
|
+
* @deprecated The SDK names the rail from {@link DepositFlowConfig.methods}.
|
|
73
|
+
* Overrides how the fee-details drawer names it.
|
|
75
74
|
*/
|
|
76
75
|
methodName?: string;
|
|
77
76
|
/** Header title; defaults to the SDK's own translated "Deposit". */
|
|
78
77
|
title?: string;
|
|
79
|
-
/**
|
|
80
|
-
|
|
78
|
+
/**
|
|
79
|
+
* @deprecated The SDK words the submit from {@link DepositFlowConfig.methods}
|
|
80
|
+
* in the user's locale. Overrides that label.
|
|
81
|
+
*/
|
|
82
|
+
submitLabel?: string;
|
|
81
83
|
/** Quick-amount presets in whole dollars; defaults to 10/20/50/100. */
|
|
82
84
|
quickAmountsUsd?: string[];
|
|
83
|
-
/**
|
|
85
|
+
/**
|
|
86
|
+
* Hard input cap in dollars. With {@link fiat} configured it defaults to
|
|
87
|
+
* $2,500; without `fiat` an omitted cap means no limit.
|
|
88
|
+
*/
|
|
84
89
|
limitUsd?: string;
|
|
85
90
|
/**
|
|
86
91
|
* Smallest amount the source will take, in dollars. Below it the CTA names
|
|
@@ -89,20 +94,37 @@ export interface DepositAmountEntryConfig {
|
|
|
89
94
|
minLimitUsd?: string;
|
|
90
95
|
/** Brand glyph beside the title; the title stands alone without one. */
|
|
91
96
|
brandIcon?: ReactNode;
|
|
92
|
-
/**
|
|
97
|
+
/**
|
|
98
|
+
* @deprecated The SDK draws the rail's mark from
|
|
99
|
+
* {@link DepositFlowConfig.methods}. Overrides the fee line's badge.
|
|
100
|
+
*/
|
|
93
101
|
methodBadge?: ReactNode;
|
|
94
102
|
/** Host account context in the header (label + balance + avatar). */
|
|
95
|
-
accountContext?:
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
/** Links back out to the host context (e.g. the profile page). */
|
|
101
|
-
onPress?: () => void;
|
|
102
|
-
};
|
|
103
|
-
/** Routes amount entry through the fiat backend. */
|
|
103
|
+
accountContext?: DepositAccountContext;
|
|
104
|
+
/**
|
|
105
|
+
* @deprecated Name the rail in {@link DepositFlowConfig.methods}; it delivers
|
|
106
|
+
* to `checkoutConfig`, so the destination is not repeated here.
|
|
107
|
+
*/
|
|
104
108
|
fiat?: FiatRailConfig;
|
|
105
109
|
}
|
|
110
|
+
/**
|
|
111
|
+
* The host's balance beside the title. The SDK formats it like every other
|
|
112
|
+
* amount on the screen, so give it the number, not the words.
|
|
113
|
+
*/
|
|
114
|
+
export type DepositAccountContext = {
|
|
115
|
+
label: string;
|
|
116
|
+
avatar?: ReactNode;
|
|
117
|
+
/** Links back out to the host context (e.g. the profile page). */
|
|
118
|
+
onPress?: () => void;
|
|
119
|
+
} & ({
|
|
120
|
+
/** Decimal string in dollars, e.g. `"366715.12"`. */
|
|
121
|
+
amountUsd: string;
|
|
122
|
+
value?: undefined;
|
|
123
|
+
} | {
|
|
124
|
+
/** @deprecated Pass {@link amountUsd}; the SDK formats it. */
|
|
125
|
+
value: string;
|
|
126
|
+
amountUsd?: undefined;
|
|
127
|
+
});
|
|
106
128
|
/**
|
|
107
129
|
* A fixed fiat amount to prefill the deposit amount screen with — the value
|
|
108
130
|
* the user pays, not a crypto amount. Distinct from any provider's approved
|
|
@@ -116,7 +138,30 @@ export interface DepositInitialAmount {
|
|
|
116
138
|
/** ISO 4217 currency code, e.g. `"USD"`. */
|
|
117
139
|
currency: string;
|
|
118
140
|
}
|
|
119
|
-
/**
|
|
141
|
+
/** What a fiat method needs beyond its type to be quoted. */
|
|
142
|
+
export interface FiatDepositMethodOptions {
|
|
143
|
+
/** Ticker the onramp quote API uses for the checkout target. */
|
|
144
|
+
fiatTargetAssetTicker?: string;
|
|
145
|
+
/**
|
|
146
|
+
* Test tooling for exercising one provider integration at a time. Sandbox
|
|
147
|
+
* and local backends only; production refuses a quote carrying it. The
|
|
148
|
+
* prefix keeps it out of a host's tab-completion for that reason.
|
|
149
|
+
*/
|
|
150
|
+
unstable_routingOverrides?: FiatRoutingOverrides;
|
|
151
|
+
}
|
|
152
|
+
/** A way to fund the deposit. */
|
|
153
|
+
export type DepositMethod = ({
|
|
154
|
+
type: 'apple_pay';
|
|
155
|
+
} & FiatDepositMethodOptions) | ({
|
|
156
|
+
type: 'card';
|
|
157
|
+
} & FiatDepositMethodOptions) | {
|
|
158
|
+
type: 'crypto';
|
|
159
|
+
};
|
|
160
|
+
/**
|
|
161
|
+
* The fiat onramp rail behind the V2 amount screen. Derived from
|
|
162
|
+
* {@link DepositFlowConfig.methods} and the active checkout chain; hosts no
|
|
163
|
+
* longer write one directly.
|
|
164
|
+
*/
|
|
120
165
|
export interface FiatRailConfig {
|
|
121
166
|
/** The rail quoted and fired, e.g. `apple_pay`. */
|
|
122
167
|
paymentMethod: string;
|
|
@@ -130,6 +175,8 @@ export interface FiatRailConfig {
|
|
|
130
175
|
cryptoCurrencyAddress: string;
|
|
131
176
|
/** Destination chain id used for the quote. */
|
|
132
177
|
chainId: string;
|
|
178
|
+
/** See {@link FiatDepositMethodOptions.unstable_routingOverrides}. */
|
|
179
|
+
unstable_routingOverrides?: FiatRoutingOverrides;
|
|
133
180
|
}
|
|
134
181
|
/**
|
|
135
182
|
* Data the managed deposit flow renders.
|
|
@@ -145,6 +192,14 @@ export interface FiatRailConfig {
|
|
|
145
192
|
* `beginDeposit` ultimately takes just a target, like the web `beginCheckout`.
|
|
146
193
|
*/
|
|
147
194
|
export interface DepositFlowConfig {
|
|
195
|
+
/**
|
|
196
|
+
* What the deposit offers. Order is a hint; Fun ranks per user. With
|
|
197
|
+
* `amountEntry`, the first fiat entry is the rail behind submit and needs a
|
|
198
|
+
* ticker for the active checkout target.
|
|
199
|
+
* Without `amountEntry`, a list omitting `crypto` drops the Crypto row from
|
|
200
|
+
* Add money. Omitted, the V1 method list stands.
|
|
201
|
+
*/
|
|
202
|
+
methods?: DepositMethod[];
|
|
148
203
|
/**
|
|
149
204
|
* Opt into the V2 amount-first deposit surface: the flow opens on the
|
|
150
205
|
* full-screen amount screen instead of the Add money method list.
|
|
@@ -177,7 +232,10 @@ export interface DepositFlowConfig {
|
|
|
177
232
|
* (no identity). Display formatting (truncation) is applied by the flow.
|
|
178
233
|
*/
|
|
179
234
|
depositAddress?: string;
|
|
180
|
-
/**
|
|
235
|
+
/**
|
|
236
|
+
* @deprecated Ignored — the supported-tokens screen lists the curated
|
|
237
|
+
* tokens the SDK resolves itself.
|
|
238
|
+
*/
|
|
181
239
|
supportedTokens?: SupportedToken[];
|
|
182
240
|
tokenChainFilters?: TokenChainFilter[];
|
|
183
241
|
/**
|
|
@@ -206,10 +264,21 @@ export interface DepositFlowCallbacks {
|
|
|
206
264
|
onClose?: () => void;
|
|
207
265
|
onCheckoutBlocked?: () => void;
|
|
208
266
|
/**
|
|
209
|
-
*
|
|
210
|
-
*
|
|
211
|
-
*
|
|
212
|
-
*
|
|
267
|
+
* The deposit is on its way and the SDK is finished with it: the flow has
|
|
268
|
+
* closed and its confirmation is up. `orderId` is the provider's; `method`
|
|
269
|
+
* is the rail's {@link DepositMethod} type. Fires only where the rail pays
|
|
270
|
+
* the recipient directly — an order the backend still has to sweep has not
|
|
271
|
+
* arrived, so nothing is claimed for it.
|
|
272
|
+
*/
|
|
273
|
+
onDepositSubmitted?: (orderId: string, method: DepositMethod['type']) => void;
|
|
274
|
+
/**
|
|
275
|
+
* The deposit ended short of an order, or the order failed. `cancelled`
|
|
276
|
+
* is the user leaving; see {@link FunkitFlowError} for the rest.
|
|
277
|
+
*/
|
|
278
|
+
onDepositError?: (error: FunkitFlowError) => void;
|
|
279
|
+
/**
|
|
280
|
+
* @deprecated Name a rail in {@link DepositFlowConfig.methods}; it owns the
|
|
281
|
+
* submit. Fires only while no rail is wired.
|
|
213
282
|
*/
|
|
214
283
|
onSubmitAmount?: (amountUsd: string) => void;
|
|
215
284
|
}
|