@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,34 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* The faceplate's measured layouts:
|
|
4
|
+
* - `consent`: the quick check, its detail tucked under the title
|
|
5
|
+
* - `additional`: a wider detail and a flush link
|
|
6
|
+
* - `document`: the document round, set lower
|
|
7
|
+
*/
|
|
8
|
+
export type FiatKycIntroLayoutKind = 'consent' | 'additional' | 'document';
|
|
9
|
+
export interface FiatKycIntroLayoutProps {
|
|
10
|
+
layout: FiatKycIntroLayoutKind;
|
|
11
|
+
icon: ReactNode;
|
|
12
|
+
title: string;
|
|
13
|
+
detail: string;
|
|
14
|
+
/** Provider guidance under the detail, e.g. why a document is asked again. */
|
|
15
|
+
note?: string;
|
|
16
|
+
link: {
|
|
17
|
+
label: string;
|
|
18
|
+
onPress: () => void;
|
|
19
|
+
};
|
|
20
|
+
/** The agreement the action records, above it. */
|
|
21
|
+
caption?: string;
|
|
22
|
+
actionLabel: string;
|
|
23
|
+
/** Legal copy under the action. */
|
|
24
|
+
notice?: ReactNode;
|
|
25
|
+
/** Swaps the action for the loader. */
|
|
26
|
+
pending: boolean;
|
|
27
|
+
/** Off on the consent that opens a round: a stray swipe there drops all of KYC. */
|
|
28
|
+
swipeBack?: boolean;
|
|
29
|
+
onContinue: () => void;
|
|
30
|
+
onCancel: () => void;
|
|
31
|
+
}
|
|
32
|
+
/** The KYC faceplate drawn from the copy and actions it is handed. */
|
|
33
|
+
export declare function FiatKycIntroLayout({ layout, icon, title, detail, note, link, caption, actionLabel, notice, pending, swipeBack, onContinue, onCancel, }: FiatKycIntroLayoutProps): import("react").JSX.Element;
|
|
34
|
+
//# sourceMappingURL=FiatKycIntroLayout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FiatKycIntroLayout.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatKycIntroLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAWtC;;;;;GAKG;AACH,MAAM,MAAM,sBAAsB,GAAG,SAAS,GAAG,YAAY,GAAG,UAAU,CAAA;AAE1E,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,sBAAsB,CAAA;IAC9B,IAAI,EAAE,SAAS,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,8EAA8E;IAC9E,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,IAAI,CAAA;KAAE,CAAA;IAC5C,kDAAkD;IAClD,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,MAAM,CAAA;IACnB,mCAAmC;IACnC,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,uCAAuC;IACvC,OAAO,EAAE,OAAO,CAAA;IAChB,mFAAmF;IACnF,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,UAAU,EAAE,MAAM,IAAI,CAAA;IACtB,QAAQ,EAAE,MAAM,IAAI,CAAA;CACrB;AAED,sEAAsE;AACtE,wBAAgB,kBAAkB,CAAC,EACjC,MAAM,EACN,IAAI,EACJ,KAAK,EACL,MAAM,EACN,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,WAAW,EACX,MAAM,EACN,OAAO,EACP,SAAgB,EAChB,UAAU,EACV,QAAQ,GACT,EAAE,uBAAuB,+BA0FzB"}
|
|
@@ -23,4 +23,6 @@ export interface FiatKycIntroScreenProps {
|
|
|
23
23
|
onCancel: () => void;
|
|
24
24
|
}
|
|
25
25
|
export declare function FiatKycIntroScreen({ provider, kycProvider, variant, correctionReason, isSubmitting, opening, swipeBack, onContinue, onConsentGiven, onCancel, }: FiatKycIntroScreenProps): import("react").JSX.Element;
|
|
26
|
+
/** Fun's own privacy policy, behind every faceplate's "Find out more". */
|
|
27
|
+
export declare function openFunPrivacyPolicy(): void;
|
|
26
28
|
//# sourceMappingURL=FiatKycIntroScreen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FiatKycIntroScreen.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatKycIntroScreen.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FiatKycIntroScreen.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatKycIntroScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAkBrE;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAC3B,SAAS,GACT,QAAQ,GACR,uBAAuB,GACvB,UAAU,CAAA;AAEd,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,EAAE,YAAY,CAAA;IACvB,qEAAqE;IACrE,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB,OAAO,CAAC,EAAE,mBAAmB,CAAA;IAC7B,4EAA4E;IAC5E,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,4DAA4D;IAC5D,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,mFAAmF;IACnF,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,UAAU,EAAE,MAAM,IAAI,CAAA;IACtB,wHAAwH;IACxH,cAAc,CAAC,EAAE,CAAC,WAAW,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IAC9D,QAAQ,EAAE,MAAM,IAAI,CAAA;CACrB;AAED,wBAAgB,kBAAkB,CAAC,EACjC,QAAQ,EACR,WAAW,EACX,OAAmB,EACnB,gBAAgB,EAChB,YAAoB,EACpB,OAAe,EACf,SAAgB,EAChB,UAAU,EACV,cAAc,EACd,QAAQ,GACT,EAAE,uBAAuB,+BAqDzB;AAED,0EAA0E;AAC1E,wBAAgB,oBAAoB,SAInC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FiatKycOptionRow.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatKycOptionRow.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FiatKycOptionRow.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatKycOptionRow.tsx"],"names":[],"mappings":"AAKA,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,sEAAsE;IACtE,MAAM,EAAE,MAAM,CAAA;IACd,4DAA4D;IAC5D,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,KAAK,EACL,MAAM,EACN,MAAM,EACN,WAAkC,EAClC,OAAO,GACR,EAAE,qBAAqB,+BAqCvB"}
|
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
import { type KycStatusGlyph } from '../icons/KycStatusIcon';
|
|
2
|
-
import { type
|
|
3
|
-
export interface FiatKycOptionsScreenProps {
|
|
2
|
+
import { type FiatOptionsScreenProps } from './FiatOptionsScreen';
|
|
3
|
+
export interface FiatKycOptionsScreenProps extends Omit<FiatOptionsScreenProps, 'glyph'> {
|
|
4
4
|
/** The card's own glyph, which need not be the banner's. */
|
|
5
5
|
glyph: KycStatusGlyph;
|
|
6
|
-
title: string;
|
|
7
|
-
/** Heading over the routes, e.g. "Right now you can". */
|
|
8
|
-
optionsLabel: string;
|
|
9
|
-
options: FiatKycOptionRowProps[];
|
|
10
|
-
onBack: () => void;
|
|
11
6
|
}
|
|
12
7
|
/**
|
|
13
8
|
* What the buyer can still do with a deposit identity is holding (Figma KYC
|
|
@@ -17,5 +12,5 @@ export interface FiatKycOptionsScreenProps {
|
|
|
17
12
|
* soon as the form is submitted. This one is reached later, from the deposit
|
|
18
13
|
* the buyer came back to.
|
|
19
14
|
*/
|
|
20
|
-
export declare function FiatKycOptionsScreen({ glyph,
|
|
15
|
+
export declare function FiatKycOptionsScreen({ glyph, ...props }: FiatKycOptionsScreenProps): import("react").JSX.Element;
|
|
21
16
|
//# sourceMappingURL=FiatKycOptionsScreen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FiatKycOptionsScreen.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatKycOptionsScreen.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FiatKycOptionsScreen.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatKycOptionsScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAiB,MAAM,wBAAwB,CAAA;AAC3E,OAAO,EAEL,KAAK,sBAAsB,EAC5B,MAAM,qBAAqB,CAAA;AAE5B,MAAM,WAAW,yBAA0B,SAAQ,IAAI,CACrD,sBAAsB,EACtB,OAAO,CACR;IACC,4DAA4D;IAC5D,KAAK,EAAE,cAAc,CAAA;CACtB;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,KAAK,EACL,GAAG,KAAK,EACT,EAAE,yBAAyB,+BAS3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FiatKycOutcomeScreen.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatKycOutcomeScreen.tsx"],"names":[],"mappings":"AAUA,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE,QAAQ,GAAG,MAAM,GAAG,YAAY,CAAA;IACzC;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,IAAI,CAAA;KAAE,CAAA;IACjD,UAAU,EAAE,MAAM,IAAI,CAAA;CACvB;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,OAAe,EACf,GAAG,KAAK,EACT,EAAE,IAAI,CAAC,yBAAyB,EAAE,SAAS,CAAC,GAAG;IAC9C,6DAA6D;IAC7D,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,+BAUA;AAED,wBAAgB,oBAAoB,CAAC,EACnC,OAAO,EACP,OAAe,EACf,QAAQ,EACR,UAAU,GACX,EAAE,yBAAyB,+
|
|
1
|
+
{"version":3,"file":"FiatKycOutcomeScreen.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatKycOutcomeScreen.tsx"],"names":[],"mappings":"AAUA,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE,QAAQ,GAAG,MAAM,GAAG,YAAY,CAAA;IACzC;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,IAAI,CAAA;KAAE,CAAA;IACjD,UAAU,EAAE,MAAM,IAAI,CAAA;CACvB;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,OAAe,EACf,GAAG,KAAK,EACT,EAAE,IAAI,CAAC,yBAAyB,EAAE,SAAS,CAAC,GAAG;IAC9C,6DAA6D;IAC7D,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,+BAUA;AAED,wBAAgB,oBAAoB,CAAC,EACnC,OAAO,EACP,OAAe,EACf,QAAQ,EACR,UAAU,GACX,EAAE,yBAAyB,+BAwC3B"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import { type FiatKycOptionRowProps } from './FiatKycOptionRow';
|
|
3
|
+
export interface FiatOptionsScreenProps {
|
|
4
|
+
/** The mark over the headline: a KYC status glyph, a payment method's logo. */
|
|
5
|
+
glyph: ReactNode;
|
|
6
|
+
title: string;
|
|
7
|
+
/** Heading over the routes, e.g. "Right now you can". */
|
|
8
|
+
optionsLabel: string;
|
|
9
|
+
options: FiatKycOptionRowProps[];
|
|
10
|
+
onBack: () => void;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* A headline and the routes out of it, each on a row with a "Go" chip (Figma
|
|
14
|
+
* KYC R2, 2387:13322, 2387:13488 and 2387:13602; Apple Pay failed, 1:7611).
|
|
15
|
+
*
|
|
16
|
+
* Drawn as a `FlowSheet` step or inside a full `Drawer`, whichever the caller
|
|
17
|
+
* stands it in: it fills the one it finds itself on, and scrolls through
|
|
18
|
+
* gorhom's own scrollable when that is the drawer (see `sheetSizing`).
|
|
19
|
+
*/
|
|
20
|
+
export declare function FiatOptionsScreen({ glyph, title, optionsLabel, options, onBack, }: FiatOptionsScreenProps): import("react").JSX.Element;
|
|
21
|
+
//# sourceMappingURL=FiatOptionsScreen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FiatOptionsScreen.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatOptionsScreen.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAQtC,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,oBAAoB,CAAA;AAE3B,MAAM,WAAW,sBAAsB;IACrC,+EAA+E;IAC/E,KAAK,EAAE,SAAS,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,yDAAyD;IACzD,YAAY,EAAE,MAAM,CAAA;IACpB,OAAO,EAAE,qBAAqB,EAAE,CAAA;IAChC,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,KAAK,EACL,KAAK,EACL,YAAY,EACZ,OAAO,EACP,MAAM,GACP,EAAE,sBAAsB,+BAiDxB"}
|
|
@@ -18,7 +18,7 @@ export interface FiatOtpScreenProps {
|
|
|
18
18
|
* is live only when the round carries a transition for it; absent, the link
|
|
19
19
|
* is disabled rather than a press that does nothing.
|
|
20
20
|
*/
|
|
21
|
-
onResend?: () => void;
|
|
21
|
+
onResend?: () => Promise<void> | void;
|
|
22
22
|
isSubmitting: boolean;
|
|
23
23
|
onChangeCode: (code: string) => void;
|
|
24
24
|
onSubmit: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FiatOtpScreen.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatOtpScreen.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FiatOtpScreen.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatOtpScreen.tsx"],"names":[],"mappings":"AA8BA,8EAA8E;AAC9E,eAAO,MAAM,eAAe,IAAI,CAAA;AAEhC,MAAM,WAAW,kBAAkB;IACjC,gEAAgE;IAChE,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,wDAAwD;IACxD,KAAK,EAAE,OAAO,CAAA;IACd,mEAAmE;IACnE,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAA;IACrC,YAAY,EAAE,OAAO,CAAA;IACrB,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IACpC,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,kBAAkB,+BAyBtD;AAED,UAAU,mBAAoB,SAAQ,kBAAkB;IACtD,IAAI,EAAE,MAAM,CAAA;CACb;AAED,wBAAgB,cAAc,CAAC,EAC7B,QAAgB,EAChB,MAAwB,EACxB,WAAW,EACX,KAAK,EACL,YAAY,EACZ,QAAQ,EACR,YAAY,EACZ,YAAY,EACZ,QAAQ,EACR,OAAO,EACP,IAAI,GACL,EAAE,mBAAmB,+BAgNrB"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { PaymentFailureAlternative, PaymentFailureAnswer } from './usePaymentFailureAnswer';
|
|
2
|
+
/**
|
|
3
|
+
* A failed Apple Pay payment as the amount screen presents it: the whole
|
|
4
|
+
* screen, slid up over the entry when a pay sheet gives up (Figma 1:7611).
|
|
5
|
+
* Standing full and solid, it is a drawer only in how it arrives and leaves.
|
|
6
|
+
*/
|
|
7
|
+
export declare function FiatPaymentFailedSheet({ answer, }: {
|
|
8
|
+
answer: PaymentFailureAnswer;
|
|
9
|
+
}): import("react").JSX.Element;
|
|
10
|
+
export interface FiatPaymentFailedScreenProps {
|
|
11
|
+
/** Which second route the screen offers; see `PaymentFailureAnswer`. */
|
|
12
|
+
alternative: PaymentFailureAlternative;
|
|
13
|
+
/** Back onto the pay button, which opens Apple Pay again for another card. */
|
|
14
|
+
onRetry: () => void;
|
|
15
|
+
/** Onto a new quote from another provider, for the same card. */
|
|
16
|
+
onRequote: () => void;
|
|
17
|
+
/** Onto the host's payment-method picker. */
|
|
18
|
+
onChangeMethod: () => void;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* The ways on from a failed Apple Pay payment. The design gives every failure
|
|
22
|
+
* one message, whatever the provider's code said: the back disc, the gesture
|
|
23
|
+
* and the backdrop all count as `onRetry`.
|
|
24
|
+
*/
|
|
25
|
+
export declare function FiatPaymentFailedScreen({ alternative, onRetry, onRequote, onChangeMethod, }: FiatPaymentFailedScreenProps): import("react").JSX.Element;
|
|
26
|
+
//# sourceMappingURL=FiatPaymentFailedSheet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FiatPaymentFailedSheet.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatPaymentFailedSheet.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,yBAAyB,EACzB,oBAAoB,EACrB,MAAM,2BAA2B,CAAA;AAElC;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,MAAM,GACP,EAAE;IACD,MAAM,EAAE,oBAAoB,CAAA;CAC7B,+BAcA;AAKD,MAAM,WAAW,4BAA4B;IAC3C,wEAAwE;IACxE,WAAW,EAAE,yBAAyB,CAAA;IACtC,8EAA8E;IAC9E,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,iEAAiE;IACjE,SAAS,EAAE,MAAM,IAAI,CAAA;IACrB,6CAA6C;IAC7C,cAAc,EAAE,MAAM,IAAI,CAAA;CAC3B;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,WAAW,EACX,OAAO,EACP,SAAS,EACT,cAAc,GACf,EAAE,4BAA4B,+BAkC9B"}
|
|
@@ -3,8 +3,11 @@ export interface FiatReceiptProps {
|
|
|
3
3
|
/** Draws the warning-ringed glyph rather than the neutral one. */
|
|
4
4
|
restricted: boolean;
|
|
5
5
|
title: string;
|
|
6
|
-
/**
|
|
7
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Label on the support link; without one the receipt draws none. Its row is
|
|
8
|
+
* held either way, so a verdict that brings the link leaves the copy put.
|
|
9
|
+
*/
|
|
10
|
+
supportLabel?: string;
|
|
8
11
|
/**
|
|
9
12
|
* Every title the receipt makes room for. The title box is as tall as the
|
|
10
13
|
* tallest of them at the current text size, so a title that changes in
|
|
@@ -16,7 +19,7 @@ export interface FiatReceiptProps {
|
|
|
16
19
|
}
|
|
17
20
|
/**
|
|
18
21
|
* The layout every terminal fiat receipt wears: a glyph, a line saying where
|
|
19
|
-
* the buyer stands, a support link, and whatever action is left.
|
|
22
|
+
* the buyer stands, a support link if any, and whatever action is left.
|
|
20
23
|
*
|
|
21
24
|
* Presentational only — it decides nothing. The wording, the glyph and the
|
|
22
25
|
* actions all come from the screen that renders it, so the identity outcomes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FiatReceipt.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatReceipt.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAYtC,MAAM,WAAW,gBAAgB;IAC/B,kEAAkE;IAClE,UAAU,EAAE,OAAO,CAAA;IACnB,KAAK,EAAE,MAAM,CAAA;IACb
|
|
1
|
+
{"version":3,"file":"FiatReceipt.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatReceipt.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAYtC,MAAM,WAAW,gBAAgB;IAC/B,kEAAkE;IAClE,UAAU,EAAE,OAAO,CAAA;IACnB,KAAK,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB;;;;OAIG;IACH,cAAc,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IAClC,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB;AAMD;;;;;;;;GAQG;AACH,wBAAgB,WAAW,CAAC,EAC1B,UAAU,EACV,KAAK,EACL,YAAY,EACZ,cAAmB,EACnB,QAAQ,GACT,EAAE,gBAAgB,+BAoElB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FiatSharingConsentNotice.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatSharingConsentNotice.tsx"],"names":[],"mappings":"AAeA,kFAAkF;AAClF,wBAAgB,wBAAwB,gCAsBvC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { FiatProvider, TermsToAccept } from '@funkit/connect-core';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
2
3
|
export interface FiatTermsNoticeProps {
|
|
3
4
|
/** A standing disclosure names only its document; there is no revision to echo back. */
|
|
4
5
|
terms: TermsToAccept | Pick<TermsToAccept, 'documentUrl'>;
|
|
@@ -7,6 +8,11 @@ export interface FiatTermsNoticeProps {
|
|
|
7
8
|
}
|
|
8
9
|
export declare const COINBASE_USER_AGREEMENT_URL = "https://www.coinbase.com/legal/user_agreement";
|
|
9
10
|
export declare const MOONPAY_TERMS_URL = "https://www.moonpay.com/legal/terms";
|
|
11
|
+
/** A tagged span of the notice; the label is the tag's translated content. */
|
|
12
|
+
export declare function DocumentLink({ url, children, }: {
|
|
13
|
+
url: string;
|
|
14
|
+
children?: ReactNode;
|
|
15
|
+
}): import("react").JSX.Element;
|
|
10
16
|
/** The server requests consent; the footer explains what the next tap accepts. */
|
|
11
17
|
export declare function FiatTermsNotice({ terms, provider }: FiatTermsNoticeProps): import("react").JSX.Element;
|
|
12
18
|
//# sourceMappingURL=FiatTermsNotice.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FiatTermsNotice.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatTermsNotice.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"FiatTermsNotice.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatTermsNotice.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAQtC,MAAM,WAAW,oBAAoB;IACnC,wFAAwF;IACxF,KAAK,EAAE,aAAa,GAAG,IAAI,CAAC,aAAa,EAAE,aAAa,CAAC,CAAA;IACzD,iGAAiG;IACjG,QAAQ,CAAC,EAAE,YAAY,CAAA;CACxB;AAED,eAAO,MAAM,2BAA2B,kDACS,CAAA;AAEjD,eAAO,MAAM,iBAAiB,wCAAwC,CAAA;AAUtE,8EAA8E;AAC9E,wBAAgB,YAAY,CAAC,EAC3B,GAAG,EACH,QAAQ,GACT,EAAE;IACD,GAAG,EAAE,MAAM,CAAA;IACX,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB,+BAWA;AAgED,kFAAkF;AAClF,wBAAgB,eAAe,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,oBAAoB,+BAaxE"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { DisclosureSegment } from './providers/adapter';
|
|
2
|
+
export interface PaymentDisclosureNoticeProps {
|
|
3
|
+
disclosures: readonly (readonly DisclosureSegment[])[];
|
|
4
|
+
}
|
|
5
|
+
export declare function PaymentDisclosureNotice({ disclosures, }: PaymentDisclosureNoticeProps): import("react").JSX.Element;
|
|
6
|
+
//# sourceMappingURL=PaymentDisclosureNotice.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PaymentDisclosureNotice.d.ts","sourceRoot":"","sources":["../../../src/fiat/PaymentDisclosureNotice.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAE5D,MAAM,WAAW,4BAA4B;IAC3C,WAAW,EAAE,SAAS,CAAC,SAAS,iBAAiB,EAAE,CAAC,EAAE,CAAA;CACvD;AAED,wBAAgB,uBAAuB,CAAC,EACtC,WAAW,GACZ,EAAE,4BAA4B,+BAyB9B"}
|
|
@@ -27,4 +27,6 @@ export declare function isIdentityDetour(entry: EntryCta): boolean;
|
|
|
27
27
|
* it, so the state it holds the deposit on is what the button says.
|
|
28
28
|
*/
|
|
29
29
|
export declare function entryCtaLabel(entry: EntryCta, t: TFunction, appLabel: string): string;
|
|
30
|
+
/** Whether {@link entryCtaLabel} gives the app's own pay label. */
|
|
31
|
+
export declare function isEntryPay(entry: EntryCta): boolean;
|
|
30
32
|
//# sourceMappingURL=ctaLabel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ctaLabel.d.ts","sourceRoot":"","sources":["../../../src/fiat/ctaLabel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAEtE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,gBAAgB,EAAE,CAAC,EAAE,SAAS,GAAG,MAAM,CAYpE;AAKD;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,QAAQ,GAAG,OAAO,CAOzD;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,aAAa,CAC3B,KAAK,EAAE,QAAQ,EACf,CAAC,EAAE,SAAS,EACZ,QAAQ,EAAE,MAAM,GACf,MAAM,CAWR"}
|
|
1
|
+
{"version":3,"file":"ctaLabel.d.ts","sourceRoot":"","sources":["../../../src/fiat/ctaLabel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAEtE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,gBAAgB,EAAE,CAAC,EAAE,SAAS,GAAG,MAAM,CAYpE;AAKD;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,QAAQ,GAAG,OAAO,CAOzD;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,aAAa,CAC3B,KAAK,EAAE,QAAQ,EACf,CAAC,EAAE,SAAS,EACZ,QAAQ,EAAE,MAAM,GACf,MAAM,CAWR;AAED,mEAAmE;AACnE,wBAAgB,UAAU,CAAC,KAAK,EAAE,QAAQ,GAAG,OAAO,CAKnD"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { FiatProvider } from '@funkit/connect-core';
|
|
2
|
+
import type { TFunction } from 'i18next';
|
|
3
|
+
import type { DepositMatchScreenProps } from '../screens/DepositMatchScreen';
|
|
4
|
+
import { type FeeQuote } from './stepDetails';
|
|
5
|
+
/** The fee line, and the run in it the screen sets in the brand colour. */
|
|
6
|
+
export interface DepositMatchLine {
|
|
7
|
+
fee: string;
|
|
8
|
+
highlight: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* The fee line for a matched deposit: no fee, plus the bonus. Nothing renders
|
|
12
|
+
* until an amount is entered and its currency is known.
|
|
13
|
+
*/
|
|
14
|
+
export declare function depositMatchLine(amount: string, currency: string | undefined, t: TFunction): DepositMatchLine | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* The match drawer's figures. The fee the quote would charge is shown waived;
|
|
17
|
+
* with no quote yet the row reads only FREE.
|
|
18
|
+
*/
|
|
19
|
+
export declare function depositMatchDetails(amount: string, currency: string, quote: FeeQuote | undefined, provider: FiatProvider | undefined): Omit<DepositMatchScreenProps, 'footnote'>;
|
|
20
|
+
//# sourceMappingURL=depositMatch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"depositMatch.d.ts","sourceRoot":"","sources":["../../../src/fiat/depositMatch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAA;AAM5E,OAAO,EAAE,KAAK,QAAQ,EAAgB,MAAM,eAAe,CAAA;AAK3D,2EAA2E;AAC3E,MAAM,WAAW,gBAAgB;IAC/B,GAAG,EAAE,MAAM,CAAA;IACX,SAAS,EAAE,MAAM,CAAA;CAClB;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,CAAC,EAAE,SAAS,GACX,gBAAgB,GAAG,SAAS,CAS9B;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,QAAQ,GAAG,SAAS,EAC3B,QAAQ,EAAE,YAAY,GAAG,SAAS,GACjC,IAAI,CAAC,uBAAuB,EAAE,UAAU,CAAC,CAc3C"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import type { DisclosureFooterContent, PaymentDisclosures } from './disclosureFooterContent';
|
|
3
|
+
/** Above the flow session, so the footer outlives the remount a re-quote causes. */
|
|
4
|
+
export declare function DisclosureFooterHost({ children }: {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
}): import("react").JSX.Element;
|
|
7
|
+
/**
|
|
8
|
+
* The footer moves only with the action: it takes `content` the frame the
|
|
9
|
+
* action is ready, and while the action loads again it keeps what it last
|
|
10
|
+
* showed. Before the first ready it shows nothing.
|
|
11
|
+
*/
|
|
12
|
+
export declare function useDisclosureFooter({ ready, content, }: {
|
|
13
|
+
ready: boolean;
|
|
14
|
+
content: DisclosureFooterContent | undefined;
|
|
15
|
+
}): ReactNode | undefined;
|
|
16
|
+
/** The payment disclosures a provider recorded, for the quote it recorded them on. */
|
|
17
|
+
export declare function usePaymentDisclosures(quoteRef: string | undefined): {
|
|
18
|
+
disclosures: PaymentDisclosures | undefined;
|
|
19
|
+
record: (disclosures: PaymentDisclosures) => void;
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=disclosureFooter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"disclosureFooter.d.ts","sourceRoot":"","sources":["../../../src/fiat/disclosureFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,SAAS,EAMf,MAAM,OAAO,CAAA;AAId,OAAO,KAAK,EACV,uBAAuB,EACvB,kBAAkB,EACnB,MAAM,2BAA2B,CAAA;AAUlC,oFAAoF;AACpF,wBAAgB,oBAAoB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,+BASzE;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,KAAK,EACL,OAAO,GACR,EAAE;IACD,KAAK,EAAE,OAAO,CAAA;IACd,OAAO,EAAE,uBAAuB,GAAG,SAAS,CAAA;CAC7C,GAAG,SAAS,GAAG,SAAS,CAWxB;AAoCD,sFAAsF;AACtF,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,GAAG;IACnE,WAAW,EAAE,kBAAkB,GAAG,SAAS,CAAA;IAC3C,MAAM,EAAE,CAAC,WAAW,EAAE,kBAAkB,KAAK,IAAI,CAAA;CAClD,CAgBA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { FiatProvider } from '@funkit/connect-core';
|
|
2
|
+
import type { FiatTermsNoticeProps } from './FiatTermsNotice';
|
|
3
|
+
import type { DisclosureSegment, ReadySurface } from './providers/adapter';
|
|
4
|
+
type Terms = FiatTermsNoticeProps['terms'];
|
|
5
|
+
export type PaymentDisclosures = readonly (readonly DisclosureSegment[])[];
|
|
6
|
+
/** What the amount screen's bottom footer says. */
|
|
7
|
+
export type DisclosureFooterContent = {
|
|
8
|
+
kind: 'disclosures';
|
|
9
|
+
disclosures: PaymentDisclosures;
|
|
10
|
+
} | {
|
|
11
|
+
kind: 'terms';
|
|
12
|
+
terms: Terms;
|
|
13
|
+
provider: FiatProvider | undefined;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* - Beside an Apple Pay button, a quote's payment disclosures replace the
|
|
17
|
+
* provider's short terms: each one links the provider's own documents.
|
|
18
|
+
* - Anywhere else, only the short terms, and no payment disclosure.
|
|
19
|
+
*/
|
|
20
|
+
export declare function disclosureFooterContent({ surface, disclosures, terms, provider, }: {
|
|
21
|
+
/** What the provider declared it drew in the action slot, if anything. */
|
|
22
|
+
surface: ReadySurface | undefined;
|
|
23
|
+
disclosures: PaymentDisclosures | undefined;
|
|
24
|
+
terms: Terms | undefined;
|
|
25
|
+
provider: FiatProvider | undefined;
|
|
26
|
+
}): DisclosureFooterContent | undefined;
|
|
27
|
+
export {};
|
|
28
|
+
//# sourceMappingURL=disclosureFooterContent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"disclosureFooterContent.d.ts","sourceRoot":"","sources":["../../../src/fiat/disclosureFooterContent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAExD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAC7D,OAAO,KAAK,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAE1E,KAAK,KAAK,GAAG,oBAAoB,CAAC,OAAO,CAAC,CAAA;AAC1C,MAAM,MAAM,kBAAkB,GAAG,SAAS,CAAC,SAAS,iBAAiB,EAAE,CAAC,EAAE,CAAA;AAE1E,mDAAmD;AACnD,MAAM,MAAM,uBAAuB,GAC/B;IAAE,IAAI,EAAE,aAAa,CAAC;IAAC,WAAW,EAAE,kBAAkB,CAAA;CAAE,GACxD;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,KAAK,CAAC;IAAC,QAAQ,EAAE,YAAY,GAAG,SAAS,CAAA;CAAE,CAAA;AAEvE;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,OAAO,EACP,WAAW,EACX,KAAK,EACL,QAAQ,GACT,EAAE;IACD,0EAA0E;IAC1E,OAAO,EAAE,YAAY,GAAG,SAAS,CAAA;IACjC,WAAW,EAAE,kBAAkB,GAAG,SAAS,CAAA;IAC3C,KAAK,EAAE,KAAK,GAAG,SAAS,CAAA;IACxB,QAAQ,EAAE,YAAY,GAAG,SAAS,CAAA;CACnC,GAAG,uBAAuB,GAAG,SAAS,CAStC"}
|
|
@@ -8,7 +8,7 @@ import { type TextInputProps } from 'react-native';
|
|
|
8
8
|
* is where a field the design never drew goes, so a form the server words its
|
|
9
9
|
* own way still renders.
|
|
10
10
|
*/
|
|
11
|
-
export type KycSection = 'NAME' | 'DOB' | 'NATIONALITY' | 'COUNTRY' | 'ADDRESS' | 'SSN' | 'PHONE' | 'OCCUPATION' | 'EMPLOYMENT' | 'PURPOSE' | 'SOURCE_OF_WEALTH' | 'INCOME' | 'ACTIVITY' | 'DETAILS';
|
|
11
|
+
export type KycSection = 'NAME' | 'DOB' | 'NATIONALITY' | 'COUNTRY' | 'ADDRESS' | 'SSN' | 'PHONE' | 'OCCUPATION' | 'EMPLOYMENT' | 'PURPOSE' | 'SOURCE_OF_WEALTH' | 'INCOME' | 'NET_WORTH' | 'ACTIVITY' | 'DETAILS';
|
|
12
12
|
export interface KycSectionPage {
|
|
13
13
|
section: KycSection;
|
|
14
14
|
/** Drawn as one card with a rule between rows, rather than loose boxes. */
|
|
@@ -17,13 +17,16 @@ export interface KycSectionPage {
|
|
|
17
17
|
rows: FormField[][];
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
|
-
* The questionnaire
|
|
21
|
-
*
|
|
22
|
-
* a page for; any other lands in `DETAILS`.
|
|
20
|
+
* The questionnaire answers this build draws a page for. The contract types a
|
|
21
|
+
* questionnaire id as a template; any other lands in `DETAILS`.
|
|
23
22
|
*/
|
|
24
23
|
export declare const GROSS_ANNUAL_INCOME = "QUESTIONNAIRE_RESPONSE:customerDueDiligence:grossAnnualIncome";
|
|
25
24
|
export declare const EXPECTED_AMOUNT_PER_MONTH = "QUESTIONNAIRE_RESPONSE:customerDueDiligence:expectedTransactionAmountPerMonth";
|
|
26
25
|
export declare const TRANSACTIONS_PER_MONTH = "QUESTIONNAIRE_RESPONSE:customerDueDiligence:transactionFrequencyPerMonth";
|
|
26
|
+
export declare const NET_WORTH = "QUESTIONNAIRE_RESPONSE:enhancedDueDiligence:netWorth";
|
|
27
|
+
export declare function fieldCurrency(field: FormField): string | undefined;
|
|
28
|
+
/** The label without its currency, for a field whose caption already names it. */
|
|
29
|
+
export declare function withoutLabelledCurrency(field: FormField): FormField;
|
|
27
30
|
/**
|
|
28
31
|
* The server owns the field list, so an id this build does not know is not
|
|
29
32
|
* identity: only the frames that collect who someone is qualify.
|
|
@@ -48,7 +51,17 @@ export interface ReturnHop {
|
|
|
48
51
|
* user taps into it.
|
|
49
52
|
*/
|
|
50
53
|
export declare function returnHop(section: KycSection, typedFields: readonly FormField[], fieldId: string): ReturnHop | undefined;
|
|
51
|
-
/**
|
|
54
|
+
/**
|
|
55
|
+
* The country a field's keyboard and choices follow.
|
|
56
|
+
*
|
|
57
|
+
* - The tax ID takes the tax residence's, which also names it in the heading.
|
|
58
|
+
* - Every other field takes the address's.
|
|
59
|
+
*/
|
|
60
|
+
export declare function fieldCountry(field: FormField, countries: {
|
|
61
|
+
address?: string;
|
|
62
|
+
taxResidence?: string;
|
|
63
|
+
}): string | undefined;
|
|
64
|
+
/** `country` is the field's own, from `fieldCountry`. */
|
|
52
65
|
export declare function fieldKeyboardType(field: FormField, country?: string): TextInputProps['keyboardType'] | undefined;
|
|
53
66
|
/** Whether the field raises a pad rather than letters, and so has no return key. */
|
|
54
67
|
export declare function isDigitsField(field: FormField, country?: string): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formLayout.d.ts","sourceRoot":"","sources":["../../../src/fiat/formLayout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAc,MAAM,sBAAsB,CAAA;AAEjE,OAAO,EAAY,KAAK,cAAc,EAAE,MAAM,cAAc,CAAA;AAK5D;;;;;;;GAOG;AACH,MAAM,MAAM,UAAU,GAClB,MAAM,GACN,KAAK,GACL,aAAa,GACb,SAAS,GACT,SAAS,GACT,KAAK,GACL,OAAO,GACP,YAAY,GACZ,YAAY,GACZ,SAAS,GACT,kBAAkB,GAClB,QAAQ,GACR,UAAU,GACV,SAAS,CAAA;AAEb,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,UAAU,CAAA;IACnB,2EAA2E;IAC3E,OAAO,EAAE,OAAO,CAAA;IAChB,uEAAuE;IACvE,IAAI,EAAE,SAAS,EAAE,EAAE,CAAA;CACpB;AAED
|
|
1
|
+
{"version":3,"file":"formLayout.d.ts","sourceRoot":"","sources":["../../../src/fiat/formLayout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAc,MAAM,sBAAsB,CAAA;AAEjE,OAAO,EAAY,KAAK,cAAc,EAAE,MAAM,cAAc,CAAA;AAK5D;;;;;;;GAOG;AACH,MAAM,MAAM,UAAU,GAClB,MAAM,GACN,KAAK,GACL,aAAa,GACb,SAAS,GACT,SAAS,GACT,KAAK,GACL,OAAO,GACP,YAAY,GACZ,YAAY,GACZ,SAAS,GACT,kBAAkB,GAClB,QAAQ,GACR,WAAW,GACX,UAAU,GACV,SAAS,CAAA;AAEb,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,UAAU,CAAA;IACnB,2EAA2E;IAC3E,OAAO,EAAE,OAAO,CAAA;IAChB,uEAAuE;IACvE,IAAI,EAAE,SAAS,EAAE,EAAE,CAAA;CACpB;AAED;;;GAGG;AACH,eAAO,MAAM,mBAAmB,kEACiC,CAAA;AACjE,eAAO,MAAM,yBAAyB,kFAC2C,CAAA;AACjF,eAAO,MAAM,sBAAsB,6EACyC,CAAA;AAC5E,eAAO,MAAM,SAAS,yDAAyD,CAAA;AAS/E,wBAAgB,aAAa,CAAC,KAAK,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS,CAElE;AAED,kFAAkF;AAClF,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,SAAS,GAAG,SAAS,CAKnE;AA0GD;;;GAGG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAGzD;AAiBD,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAElE;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,cAAc,GAAG,SAAS,GAAG,SAAS,CAI3E;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAE1D;AAQD,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB,0DAA0D;IAC1D,EAAE,CAAC,EAAE,SAAS,CAAA;CACf;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CACvB,OAAO,EAAE,UAAU,EACnB,WAAW,EAAE,SAAS,SAAS,EAAE,EACjC,OAAO,EAAE,MAAM,GACd,SAAS,GAAG,SAAS,CAUvB;AAeD;;;;;GAKG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,SAAS,EAChB,SAAS,EAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAAE,GACrD,MAAM,GAAG,SAAS,CAIpB;AAED,yDAAyD;AACzD,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,SAAS,EAChB,OAAO,CAAC,EAAE,MAAM,GACf,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,CAY5C;AAmBD,oFAAoF;AACpF,wBAAgB,aAAa,CAAC,KAAK,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAGzE;AAED,+EAA+E;AAC/E,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAE3D;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,SAAS,SAAS,EAAE,GAAG,SAAS,EAAE,CAE3E;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,SAAS,SAAS,EAAE,GAAG,cAAc,EAAE,CAwC3E"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { KycOutcome } from '@funkit/connect-core';
|
|
2
|
+
import type { TFunction } from 'i18next';
|
|
3
|
+
import type { FiatKycOptionRowProps } from './FiatKycOptionRow';
|
|
4
|
+
/**
|
|
5
|
+
* The routes out of a held deposit, in the order the frames list them.
|
|
6
|
+
*
|
|
7
|
+
* "Buy tokens directly" is descoped from launch (ENG-6095) and drawn nowhere.
|
|
8
|
+
* A re-do is offered only while the response still publishes the transition
|
|
9
|
+
* that restarts the check, so the client never invents a resubmit.
|
|
10
|
+
*/
|
|
11
|
+
export declare function kycOptionRows({ outcome, depositMax, t, onRecheck, onRedo, onDepositMax, onSupport, onClose, }: {
|
|
12
|
+
outcome: KycOutcome | 'complete' | undefined;
|
|
13
|
+
/** The ceiling as the row words it, when one is known. */
|
|
14
|
+
depositMax: string | undefined;
|
|
15
|
+
t: TFunction;
|
|
16
|
+
/** Re-quotes for the latest verdict; only a check still in review or on hold offers it. */
|
|
17
|
+
onRecheck?: () => void;
|
|
18
|
+
onRedo: (() => void) | undefined;
|
|
19
|
+
onDepositMax: () => void;
|
|
20
|
+
onSupport: () => void;
|
|
21
|
+
onClose: () => void;
|
|
22
|
+
}): FiatKycOptionRowProps[] | undefined;
|
|
23
|
+
//# sourceMappingURL=kycOptionRows.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kycOptionRows.d.ts","sourceRoot":"","sources":["../../../src/fiat/kycOptionRows.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAA;AAO/D;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,EAC5B,OAAO,EACP,UAAU,EACV,CAAC,EACD,SAAS,EACT,MAAM,EACN,YAAY,EACZ,SAAS,EACT,OAAO,GACR,EAAE;IACD,OAAO,EAAE,UAAU,GAAG,UAAU,GAAG,SAAS,CAAA;IAC5C,0DAA0D;IAC1D,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;IAC9B,CAAC,EAAE,SAAS,CAAA;IACZ,2FAA2F;IAC3F,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,MAAM,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAA;IAChC,YAAY,EAAE,MAAM,IAAI,CAAA;IACxB,SAAS,EAAE,MAAM,IAAI,CAAA;IACrB,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB,GAAG,qBAAqB,EAAE,GAAG,SAAS,CAgEtC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { EntryCta, FiatStepResponse, KycOutcome } from '@funkit/connect-core';
|
|
2
|
+
/** What the deposit screen's KYC banner says; `complete` is the client's own. */
|
|
3
|
+
export type ShownKyc = KycOutcome | 'complete' | undefined;
|
|
4
|
+
/** A verdict a fresh quote can overturn without a new attempt. */
|
|
5
|
+
export type KycRecheck = 'pending' | 'hold';
|
|
6
|
+
/** The banner a recheck opens on, so the fresh answer can end that wait. */
|
|
7
|
+
export declare function recheckedOutcome(recheck: KycRecheck | undefined): ShownKyc;
|
|
8
|
+
/**
|
|
9
|
+
* Whether the screen now offers a way to pay.
|
|
10
|
+
* - MoonPay opens every quote on SESSION_AUTH, before its KYC standing is
|
|
11
|
+
* known, so a sign-in or a check of any phase says nothing about the wait.
|
|
12
|
+
*/
|
|
13
|
+
export declare function isPayableEntry(entry: EntryCta, step: FiatStepResponse | undefined): boolean;
|
|
14
|
+
/**
|
|
15
|
+
* The banner once a payable entry arrives without a verdict of its own.
|
|
16
|
+
* - No response says the check passed; the wait ending in payment does.
|
|
17
|
+
* - Only a hold among the soft outcomes can lift without a retry.
|
|
18
|
+
*/
|
|
19
|
+
export declare function endedKycWait(shown: ShownKyc, onHold: boolean): ShownKyc;
|
|
20
|
+
//# sourceMappingURL=kycWait.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kycWait.d.ts","sourceRoot":"","sources":["../../../src/fiat/kycWait.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,gBAAgB,EAChB,UAAU,EACX,MAAM,sBAAsB,CAAA;AAE7B,iFAAiF;AACjF,MAAM,MAAM,QAAQ,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,CAAA;AAE1D,kEAAkE;AAClE,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,MAAM,CAAA;AAE3C,4EAA4E;AAC5E,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,UAAU,GAAG,SAAS,GAAG,QAAQ,CAS1E;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,KAAK,EAAE,QAAQ,EACf,IAAI,EAAE,gBAAgB,GAAG,SAAS,GACjC,OAAO,CAET;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,GAAG,QAAQ,CAIvE"}
|
|
@@ -13,6 +13,8 @@ export declare const PRIVACY_POLICY_URL = "https://fun.xyz/privacy";
|
|
|
13
13
|
* The backend must publish the same revision (`FUN_KYC_CONSENT_TERMS`).
|
|
14
14
|
*/
|
|
15
15
|
export declare const CONSENT_COPY_VERSION = "fun-kyc-consent-2026-09-11";
|
|
16
|
+
/** Persona's policy, linked from MoonPay's sharing disclosure (`MOONPAY_SHARING_CONSENT_VERSION`). */
|
|
17
|
+
export declare const PERSONA_PRIVACY_POLICY_URL = "https://withpersona.com/legal/privacy-policy";
|
|
16
18
|
/** The provider's terms, or `undefined` when none is on record for it. */
|
|
17
19
|
export declare function providerTermsUrl(provider: FiatProvider | undefined): string | undefined;
|
|
18
20
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"legalLinks.d.ts","sourceRoot":"","sources":["../../../src/fiat/legalLinks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAErE;;;;;GAKG;AAEH,uEAAuE;AACvE,eAAO,MAAM,kBAAkB,4BAA4B,CAAA;AAE3D;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,+BAA+B,CAAA;
|
|
1
|
+
{"version":3,"file":"legalLinks.d.ts","sourceRoot":"","sources":["../../../src/fiat/legalLinks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAErE;;;;;GAKG;AAEH,uEAAuE;AACvE,eAAO,MAAM,kBAAkB,4BAA4B,CAAA;AAE3D;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,+BAA+B,CAAA;AAEhE,sGAAsG;AACtG,eAAO,MAAM,0BAA0B,iDACS,CAAA;AA6BhD,0EAA0E;AAC1E,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,YAAY,GAAG,SAAS,GACjC,MAAM,GAAG,SAAS,CAEpB;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,YAAY,GAAG,SAAS,EAClC,QAAQ,EAAE,MAAM,GACf,MAAM,CAKR;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,WAAW,GAAG,SAAS,EACjC,QAAQ,EAAE,MAAM,GACf,MAAM,CAKR"}
|
|
@@ -6,12 +6,30 @@ import type { PaymentSurfaceFailure } from './paymentSurfaceFailure';
|
|
|
6
6
|
* - Narrows a host's own override, never widens it.
|
|
7
7
|
*/
|
|
8
8
|
export declare function overridesWithout(skipped: readonly FiatProvider[], current: FiatRoutingOverrides | undefined): FiatRoutingOverrides | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* Providers this host has no native client for, so none of their screens can draw.
|
|
11
|
+
*
|
|
12
|
+
* - Stripe's auth, KYC and payment all run through the host's Stripe SDK.
|
|
13
|
+
*/
|
|
14
|
+
export declare function undrawableProviders(hasStripeOnramp: boolean): readonly FiatProvider[];
|
|
15
|
+
/**
|
|
16
|
+
* The allow-list the entry quote goes out under.
|
|
17
|
+
*
|
|
18
|
+
* - With no host list and nothing skipped, none is minted: a hardcoded list
|
|
19
|
+
* would drop any provider the backend adds later. The routing table drops
|
|
20
|
+
* `undrawable` through its own exclusions instead.
|
|
21
|
+
*/
|
|
22
|
+
export declare function quoteRoutingOverrides({ skipped, undrawable, current, }: {
|
|
23
|
+
skipped: readonly FiatProvider[];
|
|
24
|
+
undrawable: readonly FiatProvider[];
|
|
25
|
+
current: FiatRoutingOverrides | undefined;
|
|
26
|
+
}): FiatRoutingOverrides | undefined;
|
|
9
27
|
/**
|
|
10
28
|
* The override a failed Apple Pay payment re-quotes under, so it lands on a
|
|
11
29
|
* provider not tried yet. Undefined when there is none left to try.
|
|
12
30
|
*
|
|
13
|
-
* -
|
|
14
|
-
*
|
|
31
|
+
* - Any failure but a cancel moves on: the code cannot say whether another
|
|
32
|
+
* provider would take the same buyer, so the buyer is offered the chance.
|
|
15
33
|
*/
|
|
16
34
|
export declare function paymentRerouteOverrides({ failure, paymentMethod, failedProvider, skipped, current, }: {
|
|
17
35
|
failure: PaymentSurfaceFailure | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paymentReroute.d.ts","sourceRoot":"","sources":["../../../src/fiat/paymentReroute.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,YAAY,EACZ,oBAAoB,EACrB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAWpE;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,SAAS,YAAY,EAAE,EAChC,OAAO,EAAE,oBAAoB,GAAG,SAAS,GACxC,oBAAoB,GAAG,SAAS,CASlC;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,OAAO,EACP,aAAa,EACb,cAAc,EACd,OAAO,EACP,OAAO,GACR,EAAE;IACD,OAAO,EAAE,qBAAqB,GAAG,SAAS,CAAA;IAC1C,aAAa,EAAE,MAAM,CAAA;IACrB,cAAc,EAAE,YAAY,GAAG,SAAS,CAAA;IACxC,OAAO,EAAE,SAAS,YAAY,EAAE,CAAA;IAChC,OAAO,EAAE,oBAAoB,GAAG,SAAS,CAAA;CAC1C,GAAG,oBAAoB,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"paymentReroute.d.ts","sourceRoot":"","sources":["../../../src/fiat/paymentReroute.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,YAAY,EACZ,oBAAoB,EACrB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAWpE;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,SAAS,YAAY,EAAE,EAChC,OAAO,EAAE,oBAAoB,GAAG,SAAS,GACxC,oBAAoB,GAAG,SAAS,CASlC;AAKD;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,eAAe,EAAE,OAAO,GACvB,SAAS,YAAY,EAAE,CAEzB;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,OAAO,EACP,UAAU,EACV,OAAO,GACR,EAAE;IACD,OAAO,EAAE,SAAS,YAAY,EAAE,CAAA;IAChC,UAAU,EAAE,SAAS,YAAY,EAAE,CAAA;IACnC,OAAO,EAAE,oBAAoB,GAAG,SAAS,CAAA;CAC1C,GAAG,oBAAoB,GAAG,SAAS,CAKnC;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,OAAO,EACP,aAAa,EACb,cAAc,EACd,OAAO,EACP,OAAO,GACR,EAAE;IACD,OAAO,EAAE,qBAAqB,GAAG,SAAS,CAAA;IAC1C,aAAa,EAAE,MAAM,CAAA;IACrB,cAAc,EAAE,YAAY,GAAG,SAAS,CAAA;IACxC,OAAO,EAAE,SAAS,YAAY,EAAE,CAAA;IAChC,OAAO,EAAE,oBAAoB,GAAG,SAAS,CAAA;CAC1C,GAAG,oBAAoB,GAAG,SAAS,CAanC;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,QAAQ,GAAG,OAAO,CAa1D"}
|
|
@@ -23,34 +23,19 @@ export declare function paymentSurfaceFailure(code: string, t: TFunction): Payme
|
|
|
23
23
|
* What the amount screen does once a payment surface gave up.
|
|
24
24
|
*
|
|
25
25
|
* - A spent capture is always repriced.
|
|
26
|
-
* - A
|
|
27
|
-
*
|
|
28
|
-
*
|
|
26
|
+
* - A sheet is never remounted while its provider says it can reopen: its surface opens the sheet
|
|
27
|
+
* on mount, so a remount would reopen it unasked. It waits for the buyer's tap instead.
|
|
28
|
+
* - Past that window, a dismissed sheet is repriced and a failed one is remounted.
|
|
29
29
|
*/
|
|
30
30
|
export declare function paymentSurfaceRecovery({ cause, stale, reopenableUntil, now, }: {
|
|
31
|
-
cause: 'cancelled' | '
|
|
31
|
+
cause: 'cancelled' | 'failed';
|
|
32
32
|
stale: boolean;
|
|
33
33
|
reopenableUntil: number | undefined;
|
|
34
34
|
now?: number;
|
|
35
35
|
}): 'hold' | 'remount' | 'requote';
|
|
36
|
-
type RecoveringAlertOptions = {
|
|
37
|
-
scheme?: 'light' | 'dark';
|
|
38
|
-
onDismiss: () => void;
|
|
39
|
-
};
|
|
40
|
-
/** Design 2846:11628: both buttons lead back to a re-presented payment button. */
|
|
41
|
-
export declare function showPaymentSurfaceUnavailableAlert(t: TFunction, { applePay, message, ...options }: RecoveringAlertOptions & {
|
|
42
|
-
applePay: boolean;
|
|
43
|
-
message: string;
|
|
44
|
-
}): void;
|
|
45
|
-
/** Design 2830:10739 and 2830:10803: a coded failure, with the same two buttons as unavailable. */
|
|
46
|
-
export declare function showPaymentFailureAlert(t: TFunction, { title, message, ...options }: RecoveringAlertOptions & {
|
|
47
|
-
title: string;
|
|
48
|
-
message: string;
|
|
49
|
-
}): void;
|
|
50
36
|
/**
|
|
51
37
|
* Whether a re-presented button would open a session that is already dead.
|
|
52
38
|
* Reads the clock, so it belongs at the moment of recovery, not in a render.
|
|
53
39
|
*/
|
|
54
40
|
export declare function isCaptureStale(surface: Pick<Surface, 'expiresAt'> | undefined, quote: Pick<Quote, 'expiresAt'> | undefined, now?: number): boolean;
|
|
55
|
-
export {};
|
|
56
41
|
//# sourceMappingURL=paymentSurfaceFailure.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paymentSurfaceFailure.d.ts","sourceRoot":"","sources":["../../../src/fiat/paymentSurfaceFailure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"paymentSurfaceFailure.d.ts","sourceRoot":"","sources":["../../../src/fiat/paymentSurfaceFailure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAOxC;;;;;;GAMG;AACH,MAAM,MAAM,qBAAqB,GAC7B;IAAE,IAAI,EAAE,WAAW,CAAA;CAAE,GACrB;IAAE,IAAI,EAAE,UAAU,GAAG,SAAS,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GAEhE;IAAE,IAAI,EAAE,aAAa,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,OAAO,CAAA;CAAE,CAAA;AAE7D,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,MAAM,EACZ,CAAC,EAAE,SAAS,GACX,qBAAqB,CAevB;AAaD;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,KAAK,EACL,KAAK,EACL,eAAe,EACf,GAAgB,GACjB,EAAE;IACD,KAAK,EAAE,WAAW,GAAG,QAAQ,CAAA;IAC7B,KAAK,EAAE,OAAO,CAAA;IACd,eAAe,EAAE,MAAM,GAAG,SAAS,CAAA;IACnC,GAAG,CAAC,EAAE,MAAM,CAAA;CACb,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,CAQjC;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,WAAW,CAAC,GAAG,SAAS,EAC/C,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,WAAW,CAAC,GAAG,SAAS,EAC3C,GAAG,GAAE,MAAmB,GACvB,OAAO,CAQT"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { FiatStepResponse } from '@funkit/connect-core';
|
|
2
|
+
/**
|
|
3
|
+
* The ceiling on the latest priced quote, formatted for the passed-check banner.
|
|
4
|
+
* - Read fresh rather than from the session's remembered ceiling, which can
|
|
5
|
+
* still be the cap the check just lifted.
|
|
6
|
+
* - A refused quote names no limit: its max is the refusing cap.
|
|
7
|
+
* - While the flow owns a round, entry quoting is paused, so its quote can
|
|
8
|
+
* predate the check.
|
|
9
|
+
*/
|
|
10
|
+
export declare function pricedLimit(stepResponse: FiatStepResponse | undefined, entryQuote: {
|
|
11
|
+
limits?: {
|
|
12
|
+
max: string;
|
|
13
|
+
};
|
|
14
|
+
quote?: {
|
|
15
|
+
fiat: {
|
|
16
|
+
currency: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
}): string | undefined;
|
|
20
|
+
//# sourceMappingURL=pricedLimit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pricedLimit.d.ts","sourceRoot":"","sources":["../../../src/fiat/pricedLimit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAI5D;;;;;;;GAOG;AACH,wBAAgB,WAAW,CACzB,YAAY,EAAE,gBAAgB,GAAG,SAAS,EAC1C,UAAU,EAAE;IACV,MAAM,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,CAAA;IACxB,KAAK,CAAC,EAAE;QAAE,IAAI,EAAE;YAAE,QAAQ,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,CAAA;CACvC,GACA,MAAM,GAAG,SAAS,CAcpB"}
|