@funkit/connect-rn 9.0.1 → 9.1.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 +70 -0
- package/README.md +100 -0
- package/app.plugin.js +92 -0
- package/dist/{chunk-ZBWCG4O6.js → chunk-4EEB4ZBQ.js} +59 -6
- package/dist/chunk-4EEB4ZBQ.js.map +7 -0
- package/dist/{chunk-MMXSERQM.js → chunk-EWSXVFEF.js} +289 -65
- package/dist/chunk-EWSXVFEF.js.map +7 -0
- package/dist/{chunk-GCPIOARQ.js → chunk-FRXLZQRI.js} +6 -2
- package/dist/chunk-FRXLZQRI.js.map +7 -0
- package/dist/clients/lighter.js +1 -1
- package/dist/clients/nado.js +2 -2
- package/dist/index.js +5621 -3274
- package/dist/index.js.map +4 -4
- package/dist/preview.js +260 -11
- package/dist/preview.js.map +3 -3
- package/dist/src/components/v2/PaymentMethodPicker.d.ts +10 -1
- package/dist/src/components/v2/PaymentMethodPicker.d.ts.map +1 -1
- package/dist/src/components/v2/methodMerge.d.ts +40 -0
- package/dist/src/components/v2/methodMerge.d.ts.map +1 -0
- package/dist/src/fiat/FiatContactScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatDocumentCaptureStep.d.ts +2 -1
- package/dist/src/fiat/FiatDocumentCaptureStep.d.ts.map +1 -1
- package/dist/src/fiat/FiatFormFieldRow.d.ts +6 -3
- package/dist/src/fiat/FiatFormFieldRow.d.ts.map +1 -1
- package/dist/src/fiat/FiatFormScreen.d.ts +1 -4
- package/dist/src/fiat/FiatFormScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatIdentityStep.d.ts +7 -2
- package/dist/src/fiat/FiatIdentityStep.d.ts.map +1 -1
- package/dist/src/fiat/FiatKycIntroLayout.d.ts +34 -0
- package/dist/src/fiat/FiatKycIntroLayout.d.ts.map +1 -0
- package/dist/src/fiat/FiatKycIntroScreen.d.ts +2 -0
- package/dist/src/fiat/FiatKycIntroScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatKycOptionRow.d.ts.map +1 -1
- package/dist/src/fiat/FiatKycOptionsScreen.d.ts +3 -8
- package/dist/src/fiat/FiatKycOptionsScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatKycOutcomeScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatOptionsScreen.d.ts +21 -0
- package/dist/src/fiat/FiatOptionsScreen.d.ts.map +1 -0
- package/dist/src/fiat/FiatOtpScreen.d.ts +1 -1
- package/dist/src/fiat/FiatOtpScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatPaymentFailedSheet.d.ts +26 -0
- package/dist/src/fiat/FiatPaymentFailedSheet.d.ts.map +1 -0
- package/dist/src/fiat/FiatReceipt.d.ts +6 -3
- package/dist/src/fiat/FiatReceipt.d.ts.map +1 -1
- package/dist/src/fiat/FiatSharingConsentNotice.d.ts +3 -0
- package/dist/src/fiat/FiatSharingConsentNotice.d.ts.map +1 -0
- package/dist/src/fiat/FiatTermsNotice.d.ts +6 -0
- package/dist/src/fiat/FiatTermsNotice.d.ts.map +1 -1
- package/dist/src/fiat/PaymentDisclosureNotice.d.ts +6 -0
- package/dist/src/fiat/PaymentDisclosureNotice.d.ts.map +1 -0
- package/dist/src/fiat/ctaLabel.d.ts +2 -0
- package/dist/src/fiat/ctaLabel.d.ts.map +1 -1
- package/dist/src/fiat/depositMatch.d.ts +20 -0
- package/dist/src/fiat/depositMatch.d.ts.map +1 -0
- package/dist/src/fiat/disclosureFooter.d.ts +21 -0
- package/dist/src/fiat/disclosureFooter.d.ts.map +1 -0
- package/dist/src/fiat/disclosureFooterContent.d.ts +28 -0
- package/dist/src/fiat/disclosureFooterContent.d.ts.map +1 -0
- package/dist/src/fiat/formLayout.d.ts +18 -5
- package/dist/src/fiat/formLayout.d.ts.map +1 -1
- package/dist/src/fiat/kycOptionRows.d.ts +23 -0
- package/dist/src/fiat/kycOptionRows.d.ts.map +1 -0
- package/dist/src/fiat/kycWait.d.ts +20 -0
- package/dist/src/fiat/kycWait.d.ts.map +1 -0
- package/dist/src/fiat/legalLinks.d.ts +2 -0
- package/dist/src/fiat/legalLinks.d.ts.map +1 -1
- package/dist/src/fiat/paymentReroute.d.ts +20 -2
- package/dist/src/fiat/paymentReroute.d.ts.map +1 -1
- package/dist/src/fiat/paymentSurfaceFailure.d.ts +4 -19
- package/dist/src/fiat/paymentSurfaceFailure.d.ts.map +1 -1
- package/dist/src/fiat/pricedLimit.d.ts +20 -0
- package/dist/src/fiat/pricedLimit.d.ts.map +1 -0
- package/dist/src/fiat/providers/CoinbaseCheckoutSurface.d.ts +2 -3
- package/dist/src/fiat/providers/CoinbaseCheckoutSurface.d.ts.map +1 -1
- package/dist/src/fiat/providers/StripeSessionAuthScreen.d.ts.map +1 -1
- package/dist/src/fiat/providers/SumsubKycSurface.d.ts.map +1 -1
- package/dist/src/fiat/providers/SumsubNativeKycSurface.d.ts +23 -0
- package/dist/src/fiat/providers/SumsubNativeKycSurface.d.ts.map +1 -0
- package/dist/src/fiat/providers/adapter.d.ts +20 -4
- package/dist/src/fiat/providers/adapter.d.ts.map +1 -1
- package/dist/src/fiat/providers/kycIntro.d.ts +15 -0
- package/dist/src/fiat/providers/kycIntro.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay.d.ts +3 -1
- package/dist/src/fiat/providers/moonpay.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpayAuthStyle.d.ts +39 -0
- package/dist/src/fiat/providers/moonpayAuthStyle.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpayFailureCopy.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpayHandoffCard.d.ts +11 -0
- package/dist/src/fiat/providers/moonpayHandoffCard.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpayPaymentDisclosures.d.ts +15 -0
- package/dist/src/fiat/providers/moonpayPaymentDisclosures.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpayPreparedPayment.d.ts +7 -0
- package/dist/src/fiat/providers/moonpayPreparedPayment.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpaySharingConsent.d.ts +14 -0
- package/dist/src/fiat/providers/moonpaySharingConsent.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripeAccountCreation.d.ts +10 -1
- package/dist/src/fiat/providers/stripeAccountCreation.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripeApplePayButton.d.ts +15 -0
- package/dist/src/fiat/providers/stripeApplePayButton.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripeKycIntro.d.ts +23 -1
- package/dist/src/fiat/providers/stripeKycIntro.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripeOnramp.d.ts +7 -0
- package/dist/src/fiat/providers/stripeOnramp.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripeSdk.d.ts +1 -1
- package/dist/src/fiat/providers/stripeSdk.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripeSignInStep.d.ts +23 -0
- package/dist/src/fiat/providers/stripeSignInStep.d.ts.map +1 -0
- package/dist/src/fiat/providers/sumsubKyc.d.ts +6 -0
- package/dist/src/fiat/providers/sumsubKyc.d.ts.map +1 -1
- package/dist/src/fiat/providers/sumsubNativeLaunch.d.ts +34 -0
- package/dist/src/fiat/providers/sumsubNativeLaunch.d.ts.map +1 -0
- package/dist/src/fiat/providers/sumsubSdk.d.ts +58 -0
- package/dist/src/fiat/providers/sumsubSdk.d.ts.map +1 -0
- package/dist/src/fiat/providers/sumsubTheme.d.ts +51 -0
- package/dist/src/fiat/providers/sumsubTheme.d.ts.map +1 -0
- package/dist/src/fiat/providers/useCreateStripeAccountWithExistingUserData.d.ts +41 -0
- package/dist/src/fiat/providers/useCreateStripeAccountWithExistingUserData.d.ts.map +1 -0
- package/dist/src/fiat/providers/useStripeOnrampClient.d.ts +1 -1
- package/dist/src/fiat/providers/useStripeOnrampClient.d.ts.map +1 -1
- package/dist/src/fiat/providers/useStripeSessionAuth.d.ts +2 -8
- package/dist/src/fiat/providers/useStripeSessionAuth.d.ts.map +1 -1
- package/dist/src/fiat/quoteNoRoute.d.ts +25 -0
- package/dist/src/fiat/quoteNoRoute.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 +3 -1
- package/dist/src/fiat/sectionDetail.d.ts.map +1 -1
- package/dist/src/fiat/stepDetails.d.ts +6 -0
- package/dist/src/fiat/stepDetails.d.ts.map +1 -1
- package/dist/src/fiat/useKycCaptureRound.d.ts.map +1 -1
- package/dist/src/fiat/useKycRoundReporting.d.ts +12 -0
- package/dist/src/fiat/useKycRoundReporting.d.ts.map +1 -0
- package/dist/src/fiat/usePaymentFailureAnswer.d.ts +68 -0
- package/dist/src/fiat/usePaymentFailureAnswer.d.ts.map +1 -0
- package/dist/src/fiat/useResendCooldown.d.ts +25 -0
- package/dist/src/fiat/useResendCooldown.d.ts.map +1 -0
- package/dist/src/fiat/useSharingConsent.d.ts +15 -0
- package/dist/src/fiat/useSharingConsent.d.ts.map +1 -0
- package/dist/src/flow/DepositFlowContent.d.ts.map +1 -1
- package/dist/src/flow/DepositMatchSheet.d.ts +12 -0
- package/dist/src/flow/DepositMatchSheet.d.ts.map +1 -0
- package/dist/src/flow/DepositPreload.d.ts +13 -0
- package/dist/src/flow/DepositPreload.d.ts.map +1 -0
- package/dist/src/flow/Drawer.d.ts +7 -1
- package/dist/src/flow/Drawer.d.ts.map +1 -1
- package/dist/src/flow/FiatDepositAmountStep.d.ts +1 -4
- package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
- package/dist/src/flow/FunkitFlowProvider.d.ts +5 -1
- package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
- package/dist/src/flow/WithdrawalFlowContent.d.ts.map +1 -1
- package/dist/src/flow/depositFlowConfig.d.ts +11 -3
- package/dist/src/flow/depositFlowConfig.d.ts.map +1 -1
- package/dist/src/flow/depositMethods.d.ts +8 -0
- package/dist/src/flow/depositMethods.d.ts.map +1 -1
- package/dist/src/flow/overlayStep.d.ts +25 -0
- package/dist/src/flow/overlayStep.d.ts.map +1 -0
- package/dist/src/flow/pageTurn.d.ts +19 -2
- package/dist/src/flow/pageTurn.d.ts.map +1 -1
- package/dist/src/flow/quickAmounts.d.ts +8 -0
- package/dist/src/flow/quickAmounts.d.ts.map +1 -0
- package/dist/src/flow/storedChain.d.ts +14 -0
- package/dist/src/flow/storedChain.d.ts.map +1 -0
- package/dist/src/flow/useKeyboardHeight.d.ts.map +1 -1
- package/dist/src/flow/withdrawalFlowConfig.d.ts +3 -1
- package/dist/src/flow/withdrawalFlowConfig.d.ts.map +1 -1
- package/dist/src/flow/withdrawalMethods.d.ts +8 -0
- package/dist/src/flow/withdrawalMethods.d.ts.map +1 -0
- package/dist/src/geo/useUserIpInfo.d.ts +7 -0
- package/dist/src/geo/useUserIpInfo.d.ts.map +1 -1
- package/dist/src/hooks/useGuardedAmountInput.d.ts +11 -0
- package/dist/src/hooks/useGuardedAmountInput.d.ts.map +1 -1
- package/dist/src/hooks/useNestedSheetHeight.d.ts +14 -0
- package/dist/src/hooks/useNestedSheetHeight.d.ts.map +1 -1
- package/dist/src/icons/ApplePayMark.d.ts +3 -1
- package/dist/src/icons/ApplePayMark.d.ts.map +1 -1
- package/dist/src/preview/fixtures/kycForms.d.ts +2 -0
- package/dist/src/preview/fixtures/kycForms.d.ts.map +1 -1
- package/dist/src/preview/flowPreview.d.ts +6 -3
- package/dist/src/preview/flowPreview.d.ts.map +1 -1
- package/dist/src/preview/previewFetch.d.ts.map +1 -1
- package/dist/src/preview/scenarioCatalog.d.ts +56 -2
- package/dist/src/preview/scenarioCatalog.d.ts.map +1 -1
- package/dist/src/preview/scenarios.d.ts +11 -0
- package/dist/src/preview/scenarios.d.ts.map +1 -1
- package/dist/src/screens/DepositAmountScreen.d.ts +24 -4
- package/dist/src/screens/DepositAmountScreen.d.ts.map +1 -1
- package/dist/src/screens/DepositMatchScreen.d.ts +18 -0
- package/dist/src/screens/DepositMatchScreen.d.ts.map +1 -0
- package/dist/src/screens/FeeDetailsScreen.d.ts +2 -0
- package/dist/src/screens/FeeDetailsScreen.d.ts.map +1 -1
- package/dist/src/swapped/SwappedWebView.d.ts +2 -2
- package/dist/src/swapped/webViewSwappedTransport.d.ts +4 -35
- package/dist/src/swapped/webViewSwappedTransport.d.ts.map +1 -1
- package/dist/src/theme/FunkitThemeProvider.d.ts +6 -0
- package/dist/src/theme/FunkitThemeProvider.d.ts.map +1 -1
- package/dist/src/theme/buildFunkitTheme.d.ts +3 -0
- package/dist/src/theme/buildFunkitTheme.d.ts.map +1 -1
- package/dist/src/theme/legibleBrandColor.d.ts +12 -0
- package/dist/src/theme/legibleBrandColor.d.ts.map +1 -0
- package/dist/src/theme/restyle.d.ts +99 -0
- package/dist/src/theme/restyle.d.ts.map +1 -1
- package/dist/src/theme/toRestyleTheme.d.ts +9 -0
- package/dist/src/theme/toRestyleTheme.d.ts.map +1 -1
- package/dist/src/theme/typeScale.d.ts +18 -0
- package/dist/src/theme/typeScale.d.ts.map +1 -1
- package/dist/src/utils/formatAmount.d.ts +2 -0
- package/dist/src/utils/formatAmount.d.ts.map +1 -1
- package/ios/FunkitGlassEffect.podspec +2 -0
- package/ios/assets/funkit-connect-rn/sumsub-back.png +0 -0
- package/package.json +17 -9
- package/dist/chunk-GCPIOARQ.js.map +0 -7
- package/dist/chunk-MMXSERQM.js.map +0 -7
- package/dist/chunk-ZBWCG4O6.js.map +0 -7
- package/dist/src/fiat/FiatKycPosition.d.ts +0 -7
- package/dist/src/fiat/FiatKycPosition.d.ts.map +0 -1
- package/dist/src/fiat/kycWalk.d.ts +0 -22
- package/dist/src/fiat/kycWalk.d.ts.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sumsubSdk.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/sumsubSdk.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EA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AOG;AACH,wBAAgB,iBAAiB,IAAI,OAAO,CAE3C;AAWD;;;;;;;GAOG;AACH,wBAAgB,aAAa,IAAI,OAAO,CAAC,SAAS,CAAC,CAMlD"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { FunkitTheme } from '../../theme/toRestyleTheme';
|
|
2
|
+
/** A Sumsub color: one value, or a pair it picks from by the system appearance. */
|
|
3
|
+
export type SumsubColor = string | {
|
|
4
|
+
light: string;
|
|
5
|
+
dark: string;
|
|
6
|
+
};
|
|
7
|
+
export interface SumsubFont {
|
|
8
|
+
/** Omitted to keep Sumsub's own face at the given size. */
|
|
9
|
+
name?: string;
|
|
10
|
+
size: number;
|
|
11
|
+
}
|
|
12
|
+
export interface SumsubThemeSection {
|
|
13
|
+
colors: Record<string, SumsubColor>;
|
|
14
|
+
fonts: Record<string, SumsubFont>;
|
|
15
|
+
metrics: Record<string, number | string>;
|
|
16
|
+
}
|
|
17
|
+
/** An image the app bundle carries under `assets/`, drawn at `scale` pixels per point. */
|
|
18
|
+
export interface SumsubImage {
|
|
19
|
+
image: string;
|
|
20
|
+
scale: number;
|
|
21
|
+
}
|
|
22
|
+
/** The JSON `withTheme` takes. */
|
|
23
|
+
export interface SumsubTheme {
|
|
24
|
+
universal: SumsubThemeSection;
|
|
25
|
+
ios?: {
|
|
26
|
+
images: Record<string, SumsubImage>;
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Our back chevron, in place of Sumsub's close cross.
|
|
31
|
+
*
|
|
32
|
+
* - Shipped by connect-rn's pod, so only iOS has it.
|
|
33
|
+
* - A template: Sumsub tints it with `navigationBarItem`.
|
|
34
|
+
*/
|
|
35
|
+
export declare const SUMSUB_CLOSE_ICON: SumsubImage;
|
|
36
|
+
/** The host's theme for each appearance Sumsub can draw in. */
|
|
37
|
+
export interface SumsubThemePair {
|
|
38
|
+
light: FunkitTheme;
|
|
39
|
+
dark: FunkitTheme;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Sumsub's mobile-SDK theme, from the host's resolved connect-rn themes.
|
|
43
|
+
*
|
|
44
|
+
* - Colors are light/dark pairs, so Sumsub follows the appearance as our sheet
|
|
45
|
+
* does; a host that pins one scheme passes the same theme as both.
|
|
46
|
+
* - Fonts and metrics take `scheme`'s theme: Sumsub has one set of each.
|
|
47
|
+
* - Fonts are named by their native family (`Inter-Medium`), which the host
|
|
48
|
+
* must embed in the binary — Sumsub cannot see faces registered at runtime.
|
|
49
|
+
*/
|
|
50
|
+
export declare function buildSumsubTheme(themes: SumsubThemePair, scheme: 'light' | 'dark'): SumsubTheme;
|
|
51
|
+
//# sourceMappingURL=sumsubTheme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sumsubTheme.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/sumsubTheme.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAE7D,mFAAmF;AACnF,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAA;AAElE,MAAM,WAAW,UAAU;IACzB,2DAA2D;IAC3D,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAA;IACnC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAA;IACjC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAA;CACzC;AAED,0FAA0F;AAC1F,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;CACd;AAED,kCAAkC;AAClC,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,kBAAkB,CAAA;IAC7B,GAAG,CAAC,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAA;KAAE,CAAA;CAC9C;AAED;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,EAAE,WAG/B,CAAA;AAED,+DAA+D;AAC/D,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,WAAW,CAAA;IAClB,IAAI,EAAE,WAAW,CAAA;CAClB;AAmKD;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,eAAe,EACvB,MAAM,EAAE,OAAO,GAAG,MAAM,GACvB,WAAW,CAqCb"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { type FiatFlow, type FormValues, type JsonValue } from '@funkit/connect-core';
|
|
2
|
+
import { type ReactNode } from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* The session's carried values with what the backend holds for Stripe's account-creation round
|
|
5
|
+
* joined in, so the form asks only for the rest; `registerWith` is set when together they answer
|
|
6
|
+
* every field, so no form is needed at all. What the buyer typed this session outranks what is
|
|
7
|
+
* already known, in both: a correction made on an earlier round must reach Stripe, not the stored value.
|
|
8
|
+
*
|
|
9
|
+
* Bound to the subject the response arrived under. A host can switch users while that response is
|
|
10
|
+
* still on screen, and the carry-over once put one buyer's details in front of the next that way, so
|
|
11
|
+
* a response that came in for someone else hands nothing over.
|
|
12
|
+
*/
|
|
13
|
+
export declare function useCreateStripeAccountWithExistingUserData(stepResponse: FiatFlow['stepResponse'], params: Record<string, JsonValue> | undefined, subject: string | undefined, carried: FormValues): {
|
|
14
|
+
carried: FormValues;
|
|
15
|
+
registerWith?: FormValues;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Registers a Stripe buyer whose every account-creation value the backend holds without showing
|
|
19
|
+
* them the form: the values are written into it and the form's own Confirm runs once, while the
|
|
20
|
+
* screen they came from stays up, busy. The form appears only if that attempt comes back to it — a
|
|
21
|
+
* refused `registerLinkUser` — filled in, so a stale phone number can be corrected before Stripe's
|
|
22
|
+
* `l0` check, which cannot be repaired later.
|
|
23
|
+
*/
|
|
24
|
+
export declare function CreateStripeAccountWithExistingUserData({ registerWith, subject, attemptKey, values, onPrefill, onRegister, isBusy, whileRegistering, children, }: {
|
|
25
|
+
/** From `useCreateStripeAccountWithExistingUserData`; `undefined` renders the form as usual. */
|
|
26
|
+
registerWith: FormValues | undefined;
|
|
27
|
+
/** Whose attempt it is: a form id names the round, not the buyer, so it is scoped to both. */
|
|
28
|
+
subject: string | undefined;
|
|
29
|
+
/** The form this attempt is for, so a form the backend serves again is not re-attempted. */
|
|
30
|
+
attemptKey: string | undefined;
|
|
31
|
+
values: FormValues;
|
|
32
|
+
/** Absent: nothing can write the values in, so the form is shown as usual. */
|
|
33
|
+
onPrefill?: (values: FormValues) => void;
|
|
34
|
+
/** The form's Confirm: pushes to Stripe, then submits. */
|
|
35
|
+
onRegister: () => void;
|
|
36
|
+
isBusy: boolean;
|
|
37
|
+
/** What stays on screen while the attempt runs: the screen the buyer came from, busy. */
|
|
38
|
+
whileRegistering: ReactNode;
|
|
39
|
+
children: ReactNode;
|
|
40
|
+
}): ReactNode;
|
|
41
|
+
//# sourceMappingURL=useCreateStripeAccountWithExistingUserData.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCreateStripeAccountWithExistingUserData.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/useCreateStripeAccountWithExistingUserData.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,UAAU,EACf,KAAK,SAAS,EAGf,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,KAAK,SAAS,EAAgC,MAAM,OAAO,CAAA;AAYpE;;;;;;;;;GASG;AACH,wBAAgB,0CAA0C,CACxD,YAAY,EAAE,QAAQ,CAAC,cAAc,CAAC,EACtC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,SAAS,EAC7C,OAAO,EAAE,MAAM,GAAG,SAAS,EAC3B,OAAO,EAAE,UAAU,GAClB;IAAE,OAAO,EAAE,UAAU,CAAC;IAAC,YAAY,CAAC,EAAE,UAAU,CAAA;CAAE,CAwBpD;AA0BD;;;;;;GAMG;AACH,wBAAgB,uCAAuC,CAAC,EACtD,YAAY,EACZ,OAAO,EACP,UAAU,EACV,MAAM,EACN,SAAS,EACT,UAAU,EACV,MAAM,EACN,gBAAgB,EAChB,QAAQ,GACT,EAAE;IACD,gGAAgG;IAChG,YAAY,EAAE,UAAU,GAAG,SAAS,CAAA;IACpC,8FAA8F;IAC9F,OAAO,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,4FAA4F;IAC5F,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;IAC9B,MAAM,EAAE,UAAU,CAAA;IAClB,8EAA8E;IAC9E,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAA;IACxC,0DAA0D;IAC1D,UAAU,EAAE,MAAM,IAAI,CAAA;IACtB,MAAM,EAAE,OAAO,CAAA;IACf,yFAAyF;IACzF,gBAAgB,EAAE,SAAS,CAAA;IAC3B,QAAQ,EAAE,SAAS,CAAA;CACpB,aAiDA"}
|
|
@@ -21,5 +21,5 @@ export interface StripeOnrampConfig {
|
|
|
21
21
|
/** Deep-link scheme Stripe returns to after a redirect (3DS, KYC). */
|
|
22
22
|
urlScheme?: string;
|
|
23
23
|
}
|
|
24
|
-
export declare function useStripeOnrampClient({ initStripe, isPlatformPaySupported, useOnramp }: StripeSdk, config: StripeOnrampConfig): StripeOnrampClient;
|
|
24
|
+
export declare function useStripeOnrampClient({ initStripe, isPlatformPaySupported, useOnramp, PlatformPay, PlatformPayButton, }: StripeSdk, config: StripeOnrampConfig): StripeOnrampClient;
|
|
25
25
|
//# sourceMappingURL=useStripeOnrampClient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useStripeOnrampClient.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/useStripeOnrampClient.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useStripeOnrampClient.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/useStripeOnrampClient.ts"],"names":[],"mappings":"AAMA,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;AAcD,wBAAgB,qBAAqB,CACnC,EACE,UAAU,EACV,sBAAsB,EACtB,SAAS,EACT,WAAW,EACX,iBAAiB,GAClB,EAAE,SAAS,EACZ,MAAM,EAAE,kBAAkB,GACzB,kBAAkB,CAuKpB"}
|
|
@@ -5,12 +5,6 @@ export interface StripeSessionAuthRound {
|
|
|
5
5
|
stripe: StripeOnrampClient;
|
|
6
6
|
verifiedEmail: string;
|
|
7
7
|
transition: SubmitTransition;
|
|
8
|
-
/**
|
|
9
|
-
* Whether arriving here is the buyer's own doing. False once they have dismissed Stripe's sheet:
|
|
10
|
-
* the round comes back offering `start` again, and starting on arrival reopens the sheet they
|
|
11
|
-
* just closed.
|
|
12
|
-
*/
|
|
13
|
-
autoStart: boolean;
|
|
14
8
|
onSubmit: (transition: SubmitTransition) => Promise<void>;
|
|
15
9
|
}
|
|
16
10
|
/**
|
|
@@ -19,14 +13,14 @@ export interface StripeSessionAuthRound {
|
|
|
19
13
|
* The round asks the buyer for nothing, so while it runs it draws nothing either: the quote stays
|
|
20
14
|
* up with its action pending, and Stripe's sheet opens over it. As a page of its own it drew a copy
|
|
21
15
|
* of the quote, so the flow turned to that copy and straight back as the sheet opened. Only a
|
|
22
|
-
*
|
|
16
|
+
* failed round has a screen, `StripeSessionAuthScreen`.
|
|
23
17
|
*/
|
|
24
18
|
export declare function useStripeSessionAuth(): {
|
|
25
19
|
isSubmitting: boolean;
|
|
26
20
|
errorMessage: string | undefined;
|
|
27
21
|
/**
|
|
28
22
|
* Whether the round is running, or about to on arrival. The first paint
|
|
29
|
-
* already counts, so it cannot flash the
|
|
23
|
+
* already counts, so it cannot flash the retry screen before the start.
|
|
30
24
|
*/
|
|
31
25
|
isPending: (round: StripeSessionAuthRound) => boolean;
|
|
32
26
|
begin: (round: StripeSessionAuthRound) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useStripeSessionAuth.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/useStripeSessionAuth.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,gBAAgB,EAAkB,MAAM,sBAAsB,CAAA;AAM5E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAExD,0DAA0D;AAC1D,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,kBAAkB,CAAA;IAC1B,aAAa,EAAE,MAAM,CAAA;IACrB,UAAU,EAAE,gBAAgB,CAAA;IAC5B
|
|
1
|
+
{"version":3,"file":"useStripeSessionAuth.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/useStripeSessionAuth.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,gBAAgB,EAAkB,MAAM,sBAAsB,CAAA;AAM5E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAExD,0DAA0D;AAC1D,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,kBAAkB,CAAA;IAC1B,aAAa,EAAE,MAAM,CAAA;IACrB,UAAU,EAAE,gBAAgB,CAAA;IAC5B,QAAQ,EAAE,CAAC,UAAU,EAAE,gBAAgB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;CAC1D;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB;;;IA6HhC;;;OAGG;uBACgB,sBAAsB;mBAjBjC,sBAAsB;0BAqBR,sBAAsB;EAE/C;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,QAM5E"}
|
|
@@ -8,4 +8,29 @@ import type { TFunction } from 'i18next';
|
|
|
8
8
|
* - The amount stays editable under it, and a new amount is a new quote.
|
|
9
9
|
*/
|
|
10
10
|
export declare function noRouteCtaLabel(noRoute: FiatQuoteNoRoute | undefined, paymentMethod: string, t: TFunction): string | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* No provider will take this method, and neither asking again nor another
|
|
13
|
+
* amount can change that: the buyer's only way on is another method.
|
|
14
|
+
*
|
|
15
|
+
* - A KYC or limit refusal is the buyer's to resolve, not the method's
|
|
16
|
+
* - No candidate at an amount in a gap between serviceable ranges is an amount
|
|
17
|
+
* problem (see {@link nearestServedAmount}). Below or above every range the
|
|
18
|
+
* backend answers with its own amount errors instead
|
|
19
|
+
*/
|
|
20
|
+
export declare function isMethodUnservable(noRoute: FiatQuoteNoRoute | undefined, quoteError: unknown, amount: string): boolean;
|
|
21
|
+
/**
|
|
22
|
+
* The closest amount some provider serves, when `amount` falls in a gap
|
|
23
|
+
* between two of the refusal's `serviceableRanges`: the lower span's reach or
|
|
24
|
+
* the upper span's minimum, whichever is nearer, the lower on a tie.
|
|
25
|
+
*
|
|
26
|
+
* - A span reaches the buyer's own cap (`userMax`) where one was measured
|
|
27
|
+
* - Spans are read as the whole cents they serve, so either edge can be
|
|
28
|
+
* quoted as offered; a span with no whole cent in it serves nothing
|
|
29
|
+
* - Undefined outside a gap: below or above every span is the backend's
|
|
30
|
+
* amount errors to answer, and inside one the amount was not the problem
|
|
31
|
+
*/
|
|
32
|
+
export declare function nearestServedAmount(noRoute: FiatQuoteNoRoute | undefined, quoteError: unknown, amount: string): {
|
|
33
|
+
amount: string;
|
|
34
|
+
currency: string;
|
|
35
|
+
} | undefined;
|
|
11
36
|
//# sourceMappingURL=quoteNoRoute.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quoteNoRoute.d.ts","sourceRoot":"","sources":["../../../src/fiat/quoteNoRoute.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"quoteNoRoute.d.ts","sourceRoot":"","sources":["../../../src/fiat/quoteNoRoute.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAC5D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAKxC;;;;;;GAMG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,gBAAgB,GAAG,SAAS,EACrC,aAAa,EAAE,MAAM,EACrB,CAAC,EAAE,SAAS,GACX,MAAM,GAAG,SAAS,CAcpB;AAED;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,gBAAgB,GAAG,SAAS,EACrC,UAAU,EAAE,OAAO,EACnB,MAAM,EAAE,MAAM,GACb,OAAO,CAaT;AAQD;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,gBAAgB,GAAG,SAAS,EACrC,UAAU,EAAE,OAAO,EACnB,MAAM,EAAE,MAAM,GACb;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAiBlD"}
|
|
@@ -4,7 +4,7 @@ import type { SurfaceAdapter, SurfaceContext, SurfaceControlModel } from './prov
|
|
|
4
4
|
/** Every registered adapter's host, around the screen that renders surfaces. */
|
|
5
5
|
export declare function SurfaceHosts({ children }: {
|
|
6
6
|
children: ReactNode;
|
|
7
|
-
}):
|
|
7
|
+
}): import("react").JSX.Element;
|
|
8
8
|
/**
|
|
9
9
|
* How this surface is operated, or `undefined` when nothing can draw it.
|
|
10
10
|
* Asked before rendering, because the two models want different chrome.
|
|
@@ -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;
|
|
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;AAItC,OAAO,KAAK,EAEV,cAAc,EACd,cAAc,EACd,mBAAmB,EAEpB,MAAM,qBAAqB,CAAA;AAsB5B,gFAAgF;AAChF,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,+BAWjE;AAmBD;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE,OAAO,EAChB,QAAQ,GAAE,SAAS,cAAc,EAAO,GACvC,mBAAmB,GAAG,SAAS,CAEjC;AAED,kDAAkD;AAClD,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,OAAO,EAChB,QAAQ,GAAE,SAAS,cAAc,EAAO,GACvC,MAAM,GAAG,SAAS,CAEpB;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"}
|
|
@@ -12,7 +12,9 @@ export declare function sectionDetail(section: KycSection, t: TFunction): string
|
|
|
12
12
|
* The page's line. A country page may hold only the tax residence, which is
|
|
13
13
|
* not the address's country, so it keeps the section's generic line.
|
|
14
14
|
*/
|
|
15
|
-
export declare function pageDetail(page: KycSectionPage, t: TFunction): string;
|
|
15
|
+
export declare function pageDetail(page: KycSectionPage, t: TFunction, taxCountry?: string): string;
|
|
16
|
+
/** The tax id the buyer's tax residence names; MoonPay asks `ssn`, `cpf` or `tin`. */
|
|
17
|
+
export declare function taxIdentifierDetail(country: string | undefined, t: TFunction): string;
|
|
16
18
|
/** Why a country is asked for, set under the page's fields. */
|
|
17
19
|
export declare function pageNote(page: KycSectionPage, t: TFunction): string | undefined;
|
|
18
20
|
//# sourceMappingURL=sectionDetail.d.ts.map
|
|
@@ -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,cAAc,EAAE,MAAM,cAAc,CAAA;AAE9D;;;;;;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,cAAc,EAAE,MAAM,cAAc,CAAA;AAE9D;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,UAAU,EAAE,CAAC,EAAE,SAAS,GAAG,MAAM,CAiCvE;AAED;;;GAGG;AACH,wBAAgB,UAAU,CACxB,IAAI,EAAE,cAAc,EACpB,CAAC,EAAE,SAAS,EACZ,UAAU,CAAC,EAAE,MAAM,GAClB,MAAM,CAQR;AAED,sFAAsF;AACtF,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,MAAM,GAAG,SAAS,EAC3B,CAAC,EAAE,SAAS,GACX,MAAM,CAYR;AAED,+DAA+D;AAC/D,wBAAgB,QAAQ,CACtB,IAAI,EAAE,cAAc,EACpB,CAAC,EAAE,SAAS,GACX,MAAM,GAAG,SAAS,CAQpB"}
|
|
@@ -34,6 +34,12 @@ export declare function reviewDetail(flow: FiatFlow): string | undefined;
|
|
|
34
34
|
* and only the total keeps the three rows adding up.
|
|
35
35
|
*/
|
|
36
36
|
export declare function quoteFeeRows(quote: FeeQuote | undefined, t: TFunction, provider?: FiatProvider): FeeDetailsRow[];
|
|
37
|
+
/**
|
|
38
|
+
* Whether the fee is worded in money rather than as a rate.
|
|
39
|
+
* - MoonPay always: its $2.99 minimum makes the rate swing with the amount.
|
|
40
|
+
* - Any provider once the rate, as the drawer would round it, reaches 7%.
|
|
41
|
+
*/
|
|
42
|
+
export declare function feeInDollars(quote: FeeQuote, provider: FiatProvider | undefined): boolean;
|
|
37
43
|
/** Whether the quote charges nothing — the one case the drawer carries the mark. */
|
|
38
44
|
export declare function quoteFeesFree(quote: FeeQuote | undefined): boolean;
|
|
39
45
|
/** The rail disclosure, priced from the quote rather than host configuration. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stepDetails.d.ts","sourceRoot":"","sources":["../../../src/fiat/stepDetails.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,QAAQ,EACR,YAAY,EACZ,KAAK,EACN,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAA;
|
|
1
|
+
{"version":3,"file":"stepDetails.d.ts","sourceRoot":"","sources":["../../../src/fiat/stepDetails.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAC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M,EAAE,MAAM,GAAG,SAAS,EAC1B,CAAC,EAAE,SAAS,EACZ,QAAQ,CAAC,EAAE,YAAY,GACtB,MAAM,GAAG,SAAS,CAwBpB;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,aAAa,GAAG,SAAS,EAChC,CAAC,EAAE,SAAS,EACZ,QAAQ,CAAC,EAAE,MAAM,GAChB,MAAM,GAAG,SAAS,CA+BpB;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,QAAQ,EACd,CAAC,EAAE,SAAS,GACX,MAAM,GAAG,SAAS,CAQpB;AAED,oFAAoF;AACpF,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,aAAa,GAAG,OAAO,CAElE;AAED,sEAAsE;AACtE,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAKjE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useKycCaptureRound.d.ts","sourceRoot":"","sources":["../../../src/fiat/useKycCaptureRound.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"useKycCaptureRound.d.ts","sourceRoot":"","sources":["../../../src/fiat/useKycCaptureRound.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAMpD;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,QAAQ;;;;;EAoChD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type FiatFlow } from '@funkit/connect-core';
|
|
2
|
+
/**
|
|
3
|
+
* A KYC round's side channels to the backend, outside its transitions:
|
|
4
|
+
* renewing the identity SDK's token, recording why the SDK gave up, and
|
|
5
|
+
* auditing Fun's consent. Each is bound to the quote the round runs under.
|
|
6
|
+
*/
|
|
7
|
+
export declare function useKycRoundReporting(flow: FiatFlow, apiKey: string): {
|
|
8
|
+
renewCaptureToken: () => Promise<string | undefined>;
|
|
9
|
+
recordCaptureFailure: (errorType: string) => void;
|
|
10
|
+
recordKycConsent: (acceptedAt: Date, shownLanguage: string) => void;
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=useKycRoundReporting.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useKycRoundReporting.d.ts","sourceRoot":"","sources":["../../../src/fiat/useKycRoundReporting.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,QAAQ,EAId,MAAM,sBAAsB,CAAA;AAM7B;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM;;sCAoBnD,MAAM;mCAcL,IAAI,iBAAiB,MAAM;EAoB3C"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { type FiatProvider } from '@funkit/connect-core';
|
|
2
|
+
import type { TFunction } from 'i18next';
|
|
3
|
+
import { type NestedSheet } from '../hooks/useNestedSheet';
|
|
4
|
+
export interface PaymentFailureAnswerOptions {
|
|
5
|
+
/** The provider whose pay sheet gave up: the round's, or the quote's. */
|
|
6
|
+
provider: FiatProvider | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* The reroute probe, once it has settled: the provider it found to price the
|
|
9
|
+
* deposit instead, and the ones it asked. `undefined` while no probe ran.
|
|
10
|
+
*/
|
|
11
|
+
reroute: {
|
|
12
|
+
to: FiatProvider | undefined;
|
|
13
|
+
providers: readonly FiatProvider[];
|
|
14
|
+
} | undefined;
|
|
15
|
+
/** The providers earlier failures already moved past. */
|
|
16
|
+
skipped: readonly FiatProvider[];
|
|
17
|
+
t: TFunction;
|
|
18
|
+
/** The buyer closed the pay sheet without paying: nothing to answer. */
|
|
19
|
+
onCancelled: () => void;
|
|
20
|
+
/**
|
|
21
|
+
* "Use another card", or the screen dismissed: the same quote, paid again.
|
|
22
|
+
* `onQuote` is true for the sheet the quote itself drew on the entry.
|
|
23
|
+
*/
|
|
24
|
+
onRetry: (onQuote: boolean) => void;
|
|
25
|
+
/** "Use the same card": a new quote without the provider that failed. */
|
|
26
|
+
onReroute: (failedProvider: FiatProvider) => void;
|
|
27
|
+
/** A fresh quote on the same terms: no provider known to leave out. */
|
|
28
|
+
onRequote: () => void;
|
|
29
|
+
/**
|
|
30
|
+
* "Select a different payment method": the host's picker, offered in place
|
|
31
|
+
* of a requote when no other provider would take this card. Absent when the
|
|
32
|
+
* host gave the amount screen no picker.
|
|
33
|
+
*/
|
|
34
|
+
onChangeMethod: (() => void) | undefined;
|
|
35
|
+
}
|
|
36
|
+
/** The second way on the screen offers beside paying again. */
|
|
37
|
+
export type PaymentFailureAlternative = 'provider' | 'method' | 'none';
|
|
38
|
+
export interface PaymentFailureAnswer {
|
|
39
|
+
sheet: NestedSheet<'paymentFailed'>;
|
|
40
|
+
/**
|
|
41
|
+
* What the open screen can offer beside another card: a new quote from a
|
|
42
|
+
* provider the reroute probe found, the host's method picker when it found
|
|
43
|
+
* none, or nothing when the host has no picker either. A requote with no
|
|
44
|
+
* provider left would strand the buyer on "not available".
|
|
45
|
+
*/
|
|
46
|
+
alternative: PaymentFailureAlternative;
|
|
47
|
+
/** Opens the screen for a failure, or recovers a cancel without one. */
|
|
48
|
+
announce: (failure: {
|
|
49
|
+
code: string;
|
|
50
|
+
}, onQuote: boolean) => void;
|
|
51
|
+
/** Closes the screen onto the same quote, paid again. */
|
|
52
|
+
retry: () => void;
|
|
53
|
+
/** Closes the screen onto a new quote. */
|
|
54
|
+
requote: () => void;
|
|
55
|
+
/** Closes the screen onto the amount, then opens the host's method picker. */
|
|
56
|
+
changeMethod: () => void;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* How a failed payment is answered: every failure but a cancel opens the
|
|
60
|
+
* payment-failed screen, and the buyer picks the way on.
|
|
61
|
+
*
|
|
62
|
+
* What the screen answers is held until it is down, however it was closed: a
|
|
63
|
+
* requote remounts the step, which would cut the drawer off mid-spring. The
|
|
64
|
+
* reroute probe is keyed on the failure, and the failure is cleared by the
|
|
65
|
+
* recovery the buyer picks.
|
|
66
|
+
*/
|
|
67
|
+
export declare function usePaymentFailureAnswer({ provider, reroute, skipped, t, onCancelled, onRetry, onReroute, onRequote, onChangeMethod, }: PaymentFailureAnswerOptions): PaymentFailureAnswer;
|
|
68
|
+
//# sourceMappingURL=usePaymentFailureAnswer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePaymentFailureAnswer.d.ts","sourceRoot":"","sources":["../../../src/fiat/usePaymentFailureAnswer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAkB,MAAM,sBAAsB,CAAA;AACxE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAGxC,OAAO,EAAE,KAAK,WAAW,EAAkB,MAAM,yBAAyB,CAAA;AAI1E,MAAM,WAAW,2BAA2B;IAC1C,yEAAyE;IACzE,QAAQ,EAAE,YAAY,GAAG,SAAS,CAAA;IAClC;;;OAGG;IACH,OAAO,EACH;QAAE,EAAE,EAAE,YAAY,GAAG,SAAS,CAAC;QAAC,SAAS,EAAE,SAAS,YAAY,EAAE,CAAA;KAAE,GACpE,SAAS,CAAA;IACb,yDAAyD;IACzD,OAAO,EAAE,SAAS,YAAY,EAAE,CAAA;IAChC,CAAC,EAAE,SAAS,CAAA;IACZ,wEAAwE;IACxE,WAAW,EAAE,MAAM,IAAI,CAAA;IACvB;;;OAGG;IACH,OAAO,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAA;IACnC,yEAAyE;IACzE,SAAS,EAAE,CAAC,cAAc,EAAE,YAAY,KAAK,IAAI,CAAA;IACjD,uEAAuE;IACvE,SAAS,EAAE,MAAM,IAAI,CAAA;IACrB;;;;OAIG;IACH,cAAc,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAA;CACzC;AAED,+DAA+D;AAC/D,MAAM,MAAM,yBAAyB,GAAG,UAAU,GAAG,QAAQ,GAAG,MAAM,CAAA;AAetE,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,WAAW,CAAC,eAAe,CAAC,CAAA;IACnC;;;;;OAKG;IACH,WAAW,EAAE,yBAAyB,CAAA;IACtC,wEAAwE;IACxE,QAAQ,EAAE,CAAC,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAAA;IAC/D,yDAAyD;IACzD,KAAK,EAAE,MAAM,IAAI,CAAA;IACjB,0CAA0C;IAC1C,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,8EAA8E;IAC9E,YAAY,EAAE,MAAM,IAAI,CAAA;CACzB;AAED;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,QAAQ,EACR,OAAO,EACP,OAAO,EACP,CAAC,EACD,WAAW,EACX,OAAO,EACP,SAAS,EACT,SAAS,EACT,cAAc,GACf,EAAE,2BAA2B,GAAG,oBAAoB,CAqHpD"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/** How long a fresh code holds the link before another can be asked for. */
|
|
2
|
+
export declare const RESEND_COOLDOWN_SECONDS = 60;
|
|
3
|
+
export type ResendStatus = {
|
|
4
|
+
kind: 'ready';
|
|
5
|
+
} | {
|
|
6
|
+
kind: 'sending';
|
|
7
|
+
} | {
|
|
8
|
+
kind: 'cooling';
|
|
9
|
+
seconds: number;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* The resend link's cycle: sending until its submit settles, then a countdown
|
|
13
|
+
* before the next one.
|
|
14
|
+
* - Settled off the submit itself, so a resend that lands before any render
|
|
15
|
+
* shows it in flight still leaves "sending".
|
|
16
|
+
* - A refused resend skips the countdown: no code went out to wait for.
|
|
17
|
+
* - Counted against a deadline, so a backgrounded app does not stretch it.
|
|
18
|
+
*/
|
|
19
|
+
export declare function useResendCooldown({ errorMessage, }: {
|
|
20
|
+
errorMessage: string | undefined;
|
|
21
|
+
}): {
|
|
22
|
+
status: ResendStatus;
|
|
23
|
+
send: (resend: () => Promise<void> | void) => void;
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=useResendCooldown.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useResendCooldown.d.ts","sourceRoot":"","sources":["../../../src/fiat/useResendCooldown.ts"],"names":[],"mappings":"AAEA,4EAA4E;AAC5E,eAAO,MAAM,uBAAuB,KAAK,CAAA;AAEzC,MAAM,MAAM,YAAY,GACpB;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,GACjB;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,GACnB;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAA;AAExC;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,YAAY,GACb,EAAE;IACD,YAAY,EAAE,MAAM,GAAG,SAAS,CAAA;CACjC,GAAG;IACF,MAAM,EAAE,YAAY,CAAA;IACpB,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,KAAK,IAAI,CAAA;CACnD,CA0CA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { FiatFlow, SharingConsent } from '@funkit/connect-core';
|
|
2
|
+
export interface SharingConsentStep {
|
|
3
|
+
/** Set only on the provider's sharing-consent faceplate, the one screen that shows v3's text. */
|
|
4
|
+
consent: SharingConsent | undefined;
|
|
5
|
+
isRetry: boolean;
|
|
6
|
+
isSubmitting: boolean;
|
|
7
|
+
accept: () => void;
|
|
8
|
+
/** Logs the buyer backing out; the caller decides where they land. */
|
|
9
|
+
decline: () => void;
|
|
10
|
+
}
|
|
11
|
+
/** MoonPay's L2 consent: stamps the tap, submits the declared transition, and resends on Continue. */
|
|
12
|
+
export declare function useSharingConsent(flow: FiatFlow): SharingConsentStep;
|
|
13
|
+
/** A failed consent send this screen answers itself, rather than the shared retry screen. */
|
|
14
|
+
export declare function isSharingConsentRetry(flow: FiatFlow): boolean;
|
|
15
|
+
//# sourceMappingURL=useSharingConsent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSharingConsent.d.ts","sourceRoot":"","sources":["../../../src/fiat/useSharingConsent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAapE,MAAM,WAAW,kBAAkB;IACjC,iGAAiG;IACjG,OAAO,EAAE,cAAc,GAAG,SAAS,CAAA;IACnC,OAAO,EAAE,OAAO,CAAA;IAChB,YAAY,EAAE,OAAO,CAAA;IACrB,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,sEAAsE;IACtE,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AAED,sGAAsG;AACtG,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,QAAQ,GAAG,kBAAkB,CA0EpE;AAED,6FAA6F;AAC7F,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,QAAQ,GAAG,OAAO,CAM7D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DepositFlowContent.d.ts","sourceRoot":"","sources":["../../../src/flow/DepositFlowContent.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,SAAS,EAMf,MAAM,OAAO,CAAA;AA4Dd,OAAO,KAAK,EAEV,qBAAqB,EACrB,oBAAoB,EACpB,iBAAiB,EAElB,MAAM,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"DepositFlowContent.d.ts","sourceRoot":"","sources":["../../../src/flow/DepositFlowContent.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,SAAS,EAMf,MAAM,OAAO,CAAA;AA4Dd,OAAO,KAAK,EAEV,qBAAqB,EACrB,oBAAoB,EACpB,iBAAiB,EAElB,MAAM,qBAAqB,CAAA;AAQ5B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAGjE,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AA2F/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,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC,0EAA0E;IAC1E,gBAAgB,EAAE,gBAAgB,CAAA;IAClC,SAAS,EAAE,oBAAoB,CAAA;CAChC,GAAG,SAAS,CAigBZ"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { NestedSheet } from '../hooks/useNestedSheet';
|
|
2
|
+
import { type DepositMatchScreenProps } from '../screens/DepositMatchScreen';
|
|
3
|
+
/**
|
|
4
|
+
* The fee drawer for a matched deposit, presented through the fee drawer's own
|
|
5
|
+
* sheet: the amount screen mounts one or the other, never both.
|
|
6
|
+
*/
|
|
7
|
+
export declare function DepositMatchSheet({ sheet, details, }: {
|
|
8
|
+
sheet: NestedSheet<'feeDetails'>;
|
|
9
|
+
/** Frozen when the fee line was pressed; nothing renders before that. */
|
|
10
|
+
details: DepositMatchScreenProps | undefined;
|
|
11
|
+
}): import("react").JSX.Element;
|
|
12
|
+
//# sourceMappingURL=DepositMatchSheet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DepositMatchSheet.d.ts","sourceRoot":"","sources":["../../../src/flow/DepositMatchSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,EACL,KAAK,uBAAuB,EAE7B,MAAM,+BAA+B,CAAA;AAGtC;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,KAAK,EACL,OAAO,GACR,EAAE;IACD,KAAK,EAAE,WAAW,CAAC,YAAY,CAAC,CAAA;IAChC,yEAAyE;IACzE,OAAO,EAAE,uBAAuB,GAAG,SAAS,CAAA;CAC7C,+BAQA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How long a preloaded location may stand before it is asked for again: about
|
|
3
|
+
* as long as one used to survive between flows, before this preload kept it.
|
|
4
|
+
*/
|
|
5
|
+
export declare const LOCATION_REFRESH_MS: number;
|
|
6
|
+
/**
|
|
7
|
+
* Warms what a deposit's first screen waits on, the supported-asset list and
|
|
8
|
+
* the geo check, while the host app runs. A flow opened later reads both from
|
|
9
|
+
* the query cache instead of drawing a loading state. Renders nothing, so the
|
|
10
|
+
* provider and the host app don't re-render when the answers land.
|
|
11
|
+
*/
|
|
12
|
+
export declare function DepositPreload(): null;
|
|
13
|
+
//# sourceMappingURL=DepositPreload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DepositPreload.d.ts","sourceRoot":"","sources":["../../../src/flow/DepositPreload.tsx"],"names":[],"mappings":"AAOA;;;GAGG;AACH,eAAO,MAAM,mBAAmB,QAAa,CAAA;AAE7C;;;;;GAKG;AACH,wBAAgB,cAAc,IAAI,IAAI,CAmCrC"}
|
|
@@ -22,6 +22,12 @@ export interface DrawerProps<TScreen extends string> {
|
|
|
22
22
|
* list under it is scrolled, and its own controls still take their taps.
|
|
23
23
|
*/
|
|
24
24
|
header?: ReactNode;
|
|
25
|
+
/**
|
|
26
|
+
* `false` when the screen draws its own way out, as a back disc at its head
|
|
27
|
+
* does; the pull and the backdrop still close the drawer. Moot with a
|
|
28
|
+
* `header`, which stands in for the grabber either way.
|
|
29
|
+
*/
|
|
30
|
+
grabber?: boolean;
|
|
25
31
|
children: ReactNode;
|
|
26
32
|
}
|
|
27
33
|
/**
|
|
@@ -38,5 +44,5 @@ export interface DrawerProps<TScreen extends string> {
|
|
|
38
44
|
* fee breakdown does); the gesture, the grabber and the backdrop are the
|
|
39
45
|
* drawer's.
|
|
40
46
|
*/
|
|
41
|
-
export declare function Drawer<TScreen extends string>({ sheet, fullHeight, solid, header, children, }: DrawerProps<TScreen>): import("react").JSX.Element;
|
|
47
|
+
export declare function Drawer<TScreen extends string>({ sheet, fullHeight, solid, header, grabber, children, }: DrawerProps<TScreen>): import("react").JSX.Element;
|
|
42
48
|
//# sourceMappingURL=Drawer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../src/flow/Drawer.tsx"],"names":[],"mappings":"AAKA,OAAO,EAEL,KAAK,SAAS,EAGf,MAAM,OAAO,CAAA;AAKd,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAmB1D,MAAM,WAAW,WAAW,CAAC,OAAO,SAAS,MAAM;IACjD,KAAK,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;IAC3B;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IACf;;;;OAIG;IACH,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,MAAM,CAAC,OAAO,SAAS,MAAM,EAAE,EAC7C,KAAK,EACL,UAAkB,EAClB,KAAa,EACb,MAAM,EACN,QAAQ,GACT,EAAE,WAAW,CAAC,OAAO,CAAC,+
|
|
1
|
+
{"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../src/flow/Drawer.tsx"],"names":[],"mappings":"AAKA,OAAO,EAEL,KAAK,SAAS,EAGf,MAAM,OAAO,CAAA;AAKd,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAmB1D,MAAM,WAAW,WAAW,CAAC,OAAO,SAAS,MAAM;IACjD,KAAK,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;IAC3B;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IACf;;;;OAIG;IACH,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,MAAM,CAAC,OAAO,SAAS,MAAM,EAAE,EAC7C,KAAK,EACL,UAAkB,EAClB,KAAa,EACb,MAAM,EACN,OAAc,EACd,QAAQ,GACT,EAAE,WAAW,CAAC,OAAO,CAAC,+BA2FtB"}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import type { FiatFlow
|
|
2
|
-
import { type MoonPayPreparedPayment } from '../fiat/providers/moonpay';
|
|
1
|
+
import type { FiatFlow } from '@funkit/connect-core';
|
|
3
2
|
import type { StripeOnrampClient } from '../fiat/providers/stripeOnramp';
|
|
4
3
|
import type { DepositAmountEntryConfig, DepositCheckoutConfig, DepositClientMetadata, DepositFlowCallbacks, DepositInitialAmount, FiatRailConfig } from './depositFlowConfig';
|
|
5
4
|
import type { ShowDepositToast } from './useDepositReceivedToast';
|
|
6
|
-
/** Replace an executable verify response with the complete payment artifact retained from quote. */
|
|
7
|
-
export declare function promoteMoonPayPreparedPayment(response: FiatStepResponse, prepared: MoonPayPreparedPayment): FiatStepResponse;
|
|
8
5
|
/**
|
|
9
6
|
* Logs the OTP page's decisions once per round and once per rejected code.
|
|
10
7
|
* - From render, every keystroke in the code boxes re-sent them.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FiatDepositAmountStep.d.ts","sourceRoot":"","sources":["../../../src/flow/FiatDepositAmountStep.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAGV,QAAQ,
|
|
1
|
+
{"version":3,"file":"FiatDepositAmountStep.d.ts","sourceRoot":"","sources":["../../../src/flow/FiatDepositAmountStep.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAGV,QAAQ,EAcT,MAAM,sBAAsB,CAAA;AAmG7B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAA;AAgHxE,OAAO,KAAK,EACV,wBAAwB,EACxB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EAEpB,cAAc,EACf,MAAM,qBAAqB,CAAA;AAC5B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AA+JjE;;;GAGG;AACH,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,QAAQ,EACd,YAAY,EAAE,kBAAkB,GAAG,SAAS,GAC3C,IAAI,CAqDN;AAED,wBAAgB,qBAAqB,CAAC,EACpC,MAAM,EACN,IAAI,EACJ,cAAc,EACd,gBAAgB,EAChB,sBAAsB,EACtB,UAAU,EACV,cAAc,EACd,aAAa,EACb,UAAU,EACV,SAAS,EACT,gBAAgB,EAChB,WAAW,GACZ,EAAE;IACD,MAAM,EAAE,wBAAwB,CAAA;IAChC,IAAI,EAAE,cAAc,CAAA;IACpB,cAAc,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACjD,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAA;IACpC,mEAAmE;IACnE,sBAAsB,CAAC,EAAE,MAAM,CAAA;IAC/B,UAAU,EAAE,MAAM,CAAA;IAClB,cAAc,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACjD;;OAEG;IACH,aAAa,CAAC,EAAE,oBAAoB,CAAA;IACpC,wEAAwE;IACxE,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,SAAS,EAAE,IAAI,CACb,oBAAoB,EACpB,oBAAoB,GAAG,gBAAgB,GAAG,sBAAsB,CACjE,CAAA;IACD,yEAAyE;IACzE,gBAAgB,EAAE,gBAAgB,CAAA;IAClC,WAAW,EAAE,MAAM,IAAI,CAAA;CACxB,+BA0HA"}
|
|
@@ -14,7 +14,11 @@ interface FunkitFlowContextValue {
|
|
|
14
14
|
* the tap.
|
|
15
15
|
*/
|
|
16
16
|
beginDeposit: (config: DepositFlowConfig, callbacks?: DepositFlowCallbacks) => Promise<void>;
|
|
17
|
-
/**
|
|
17
|
+
/**
|
|
18
|
+
* Open the managed withdrawal flow at the payout-method screen, or at the
|
|
19
|
+
* amount step when that screen could only hold one crypto method (no
|
|
20
|
+
* `withdrawalWallet` and at most one of `methods`).
|
|
21
|
+
*/
|
|
18
22
|
beginWithdrawal: (config: WithdrawalFlowConfig, callbacks?: WithdrawalFlowCallbacks) => void;
|
|
19
23
|
/** Close the flow. */
|
|
20
24
|
closeFlow: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FunkitFlowProvider.d.ts","sourceRoot":"","sources":["../../../src/flow/FunkitFlowProvider.tsx"],"names":[],"mappings":"AAMA,OAAO,EAEL,KAAK,SAAS,
|
|
1
|
+
{"version":3,"file":"FunkitFlowProvider.d.ts","sourceRoot":"","sources":["../../../src/flow/FunkitFlowProvider.tsx"],"names":[],"mappings":"AAMA,OAAO,EAEL,KAAK,SAAS,EAUf,MAAM,OAAO,CAAA;AAId,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,eAAe,EAIrB,MAAM,uBAAuB,CAAA;AAW9B,OAAO,KAAK,EAEV,oBAAoB,EACpB,iBAAiB,EAClB,MAAM,qBAAqB,CAAA;AAU5B,OAAO,EAAE,KAAK,oBAAoB,EAAa,MAAM,aAAa,CAAA;AAWlE,OAAO,EAEL,KAAK,eAAe,EAErB,MAAM,sBAAsB,CAAA;AAI7B,OAAO,KAAK,EACV,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jF,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,+BAmbA;AA4KD,wBAAgB,aAAa,IAAI,sBAAsB,CAMtD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WithdrawalFlowContent.d.ts","sourceRoot":"","sources":["../../../src/flow/WithdrawalFlowContent.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAyB,MAAM,OAAO,CAAA;AAwB7D,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAC/D,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,wBAAwB,CAAA;
|
|
1
|
+
{"version":3,"file":"WithdrawalFlowContent.d.ts","sourceRoot":"","sources":["../../../src/flow/WithdrawalFlowContent.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAyB,MAAM,OAAO,CAAA;AAwB7D,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAC/D,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,wBAAwB,CAAA;AAoB/B;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,UAAU,EACV,MAAM,EACN,SAAS,EACT,OAAO,EACP,GAAG,GACJ,EAAE;IACD,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,oBAAoB,CAAA;IAC5B,SAAS,EAAE,uBAAuB,CAAA;IAClC,OAAO,EAAE,UAAU,GAAG,SAAS,CAAA;IAC/B,GAAG,EAAE,OAAO,CAAA;CACb,GAAG,SAAS,CAgQZ"}
|
|
@@ -97,10 +97,16 @@ export interface DepositAmountEntryConfig {
|
|
|
97
97
|
*/
|
|
98
98
|
submitLabel?: string;
|
|
99
99
|
/**
|
|
100
|
-
* Quick-amount presets in whole dollars
|
|
101
|
-
* {@link fiat} configured, 10/20/50/100
|
|
100
|
+
* Quick-amount presets in whole dollars, for a buyer quoting in USD;
|
|
101
|
+
* defaults to 20/50/100/200 with {@link fiat} configured, 10/20/50/100
|
|
102
|
+
* without.
|
|
102
103
|
*/
|
|
103
104
|
quickAmountsUsd?: string[];
|
|
105
|
+
/**
|
|
106
|
+
* Quick-amount presets per ISO 4217 currency, in whole units of it. Wins
|
|
107
|
+
* over {@link quickAmountsUsd}; a currency with no presets shows none.
|
|
108
|
+
*/
|
|
109
|
+
quickAmountsByCurrency?: Readonly<Record<string, readonly string[]>>;
|
|
104
110
|
/**
|
|
105
111
|
* Hard input cap in dollars; omitted, no host cap applies.
|
|
106
112
|
* Ignored with {@link fiat} configured: the quote reports the ceiling.
|
|
@@ -218,7 +224,9 @@ export interface DepositFlowConfig {
|
|
|
218
224
|
* `amountEntry`, the first fiat entry is the rail behind submit and needs a
|
|
219
225
|
* ticker for the active checkout target.
|
|
220
226
|
* Without `amountEntry`, a list omitting `crypto` drops the Crypto row from
|
|
221
|
-
* Add money
|
|
227
|
+
* Add money, and a list of only `crypto` skips Add money for the Crypto
|
|
228
|
+
* flow unless `dynamicTargetAssetCandidates` offers more than one target.
|
|
229
|
+
* Omitted, the V1 method list stands.
|
|
222
230
|
*/
|
|
223
231
|
methods?: DepositMethod[];
|
|
224
232
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"depositFlowConfig.d.ts","sourceRoot":"","sources":["../../../src/flow/depositFlowConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AACrD,OAAO,KAAK,EACV,2BAA2B,EAC3B,2BAA2B,EAC3B,oBAAoB,EACpB,gBAAgB,EACjB,MA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C,EAAE,MAAM,CAAA;IAChB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,oEAAoE;IACpE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB
|
|
1
|
+
{"version":3,"file":"depositFlowConfig.d.ts","sourceRoot":"","sources":["../../../src/flow/depositFlowConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AACrD,OAAO,KAAK,EACV,2BAA2B,EAC3B,2BAA2B,EAC3B,oBAAoB,EACpB,gBAAgB,EACjB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AAEnC,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EACjB,MAAM,6BAA6B,CAAA;AACpC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAElD,YAAY,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAA;AAEvE;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IACpC,kCAAkC;IAClC,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,mEAAmE;IACnE,mBAAmB,CAAC,EAAE,GAAG,MAAM,EAAE,CAAA;IACjC;;;;OAIG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAA;CAClC;AAED;;;;;GAKG;AACH,MAAM,MAAM,qBAAqB,GAAG,mBAAmB,GACrD,IAAI,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAAA;AAE5C;;;;;GAKG;AACH,MAAM,MAAM,mBAAmB,GAAG,IAAI,CACpC,2BAA2B,EAC3B,aAAa,CACd,GAAG;IACF,WAAW,EAAE,OAAO,GAAG,aAAa,CAAA;CACrC,CAAA;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,4BAA4B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;IAC5D;;;;;OAKG;IACH,cAAc,CAAC,EAAE,qBAAqB,CAAA;IACtC;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,0EAA0E;IAC1E,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB;;;OAGG;IACH,eAAe,CAAC,EAAE,cAAc,EAAE,CAAA;IAClC,iBAAiB,CAAC,EAAE,gBAAgB,EAAE,CAAA;IACtC;;;OAGG;IACH,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,yCAAyC;IACzC,cAAc,CAAC,EAAE,qBAAqB,CAAA;IACtC;;;OAGG;IACH,aAAa,CAAC,EAAE,oBAAoB,CAAA;IACpC;;;;;;;;OAQG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,yDAAyD;AACzD,MAAM,WAAW,oBAAoB;IACnC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAA;IAC9B;;;;;;OAMG;IACH,oBAAoB,CAAC,EAAE,CAAC,MAAM,EAAE,oBAAoB,GAAG,SAAS,KAAK,IAAI,CAAA;IACzE;;;;;;OAMG;IACH,kBAAkB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC,KAAK,IAAI,CAAA;IAC7E;;;;;;;OAOG;IACH,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,IAAI,CAAA;IACjD;;;OAGG;IACH,cAAc,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAA;CAC7C"}
|
|
@@ -18,4 +18,12 @@ export declare function hasFiatMethod(config: DepositFlowConfig): boolean;
|
|
|
18
18
|
export declare function resolveFiatRail(config: DepositFlowConfig, checkoutConfig?: DepositCheckoutConfig | undefined): FiatRailConfig | undefined;
|
|
19
19
|
/** A method list that leaves `crypto` out drops the Crypto row from Add money. */
|
|
20
20
|
export declare function omitsCryptoDeposit(methods: DepositMethod[] | undefined): boolean;
|
|
21
|
+
/** A list naming only `crypto` offers no cash methods. */
|
|
22
|
+
export declare function offersOnlyCrypto(methods: DepositMethod[] | undefined): boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Whether a deposit opens on the picker its Crypto row would open instead of
|
|
25
|
+
* Add money: nothing is left to choose there once only Crypto is offered and
|
|
26
|
+
* there's no choice of deposit target for its "Deposit to" row.
|
|
27
|
+
*/
|
|
28
|
+
export declare function opensOnCryptoPicker(config: DepositFlowConfig, hideCryptoDeposit: boolean): boolean;
|
|
21
29
|
//# sourceMappingURL=depositMethods.d.ts.map
|