@funkit/connect-rn 8.2.0 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +184 -0
- package/README.md +25 -12
- package/dist/{chunk-GG2WCQ6N.js → chunk-3ZNAGQHD.js} +3 -3
- package/dist/chunk-BC4RXFI7.js +319 -0
- package/dist/chunk-BC4RXFI7.js.map +7 -0
- package/dist/{chunk-J5K2FSAI.js → chunk-MVQH4YFI.js} +330 -146
- package/dist/chunk-MVQH4YFI.js.map +7 -0
- package/dist/{chunk-D64EJ57D.js → chunk-ZE77GVDW.js} +94 -10
- package/dist/chunk-ZE77GVDW.js.map +7 -0
- package/dist/clients/lighter.js +2 -2
- package/dist/clients/nado.js +3 -3
- package/dist/clients/solana.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9859 -6316
- package/dist/index.js.map +4 -4
- package/dist/preview.d.ts +5 -0
- package/dist/preview.d.ts.map +1 -0
- package/dist/preview.js +1159 -0
- package/dist/preview.js.map +7 -0
- package/dist/src/components/DepositActionMotion.d.ts +4 -1
- package/dist/src/components/DepositActionMotion.d.ts.map +1 -1
- package/dist/src/components/DismissibleToast.d.ts +35 -0
- package/dist/src/components/DismissibleToast.d.ts.map +1 -0
- package/dist/src/components/GlassSurface.d.ts +3 -1
- package/dist/src/components/GlassSurface.d.ts.map +1 -1
- package/dist/src/components/PillButton.d.ts +20 -2
- package/dist/src/components/PillButton.d.ts.map +1 -1
- package/dist/src/components/StateSwap.d.ts +17 -0
- package/dist/src/components/StateSwap.d.ts.map +1 -0
- package/dist/src/components/WithdrawSourceCard.d.ts.map +1 -1
- package/dist/src/components/v2/AmountDisplay.d.ts.map +1 -1
- package/dist/src/components/v2/PaymentMethodPicker.d.ts +18 -0
- package/dist/src/components/v2/PaymentMethodPicker.d.ts.map +1 -0
- package/dist/src/components/v2/QuickAmountsRow.d.ts.map +1 -1
- package/dist/src/fiat/FiatBackButton.d.ts +5 -1
- package/dist/src/fiat/FiatBackButton.d.ts.map +1 -1
- package/dist/src/fiat/FiatChoiceField.d.ts +4 -3
- package/dist/src/fiat/FiatChoiceField.d.ts.map +1 -1
- package/dist/src/fiat/FiatContactScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatCountrySheet.d.ts.map +1 -1
- package/dist/src/fiat/FiatDocumentCaptureStep.d.ts +7 -2
- package/dist/src/fiat/FiatDocumentCaptureStep.d.ts.map +1 -1
- package/dist/src/fiat/FiatFailureBanner.d.ts +4 -1
- package/dist/src/fiat/FiatFailureBanner.d.ts.map +1 -1
- package/dist/src/fiat/FiatFormAdvance.d.ts.map +1 -1
- package/dist/src/fiat/FiatFormFieldRow.d.ts +15 -1
- package/dist/src/fiat/FiatFormFieldRow.d.ts.map +1 -1
- package/dist/src/fiat/FiatFormHeading.d.ts +21 -0
- package/dist/src/fiat/FiatFormHeading.d.ts.map +1 -0
- package/dist/src/fiat/FiatFormScreen.d.ts +7 -1
- package/dist/src/fiat/FiatFormScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatIdentityStep.d.ts +16 -1
- package/dist/src/fiat/FiatIdentityStep.d.ts.map +1 -1
- package/dist/src/fiat/FiatKycFieldControl.d.ts +0 -2
- package/dist/src/fiat/FiatKycFieldControl.d.ts.map +1 -1
- package/dist/src/fiat/FiatKycIntroScreen.d.ts +14 -3
- package/dist/src/fiat/FiatKycIntroScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatKycOptionsScreen.d.ts +1 -1
- package/dist/src/fiat/FiatKycOptionsScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatKycOutcomeScreen.d.ts +8 -6
- package/dist/src/fiat/FiatKycOutcomeScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatKycPhoneField.d.ts +2 -3
- package/dist/src/fiat/FiatKycPhoneField.d.ts.map +1 -1
- package/dist/src/fiat/FiatOtpScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatPhoneField.d.ts +17 -4
- package/dist/src/fiat/FiatPhoneField.d.ts.map +1 -1
- package/dist/src/fiat/FiatReceipt.d.ts +9 -3
- package/dist/src/fiat/FiatReceipt.d.ts.map +1 -1
- package/dist/src/fiat/FiatRegionUnsupportedScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatSsnField.d.ts.map +1 -1
- package/dist/src/fiat/FiatSubmissionIndicator.d.ts +7 -1
- package/dist/src/fiat/FiatSubmissionIndicator.d.ts.map +1 -1
- package/dist/src/fiat/FiatTermsNotice.d.ts +4 -2
- package/dist/src/fiat/FiatTermsNotice.d.ts.map +1 -1
- package/dist/src/fiat/FiatUnsupportedStep.d.ts +11 -0
- package/dist/src/fiat/FiatUnsupportedStep.d.ts.map +1 -0
- package/dist/src/fiat/SurfaceSlot.d.ts +8 -3
- package/dist/src/fiat/SurfaceSlot.d.ts.map +1 -1
- package/dist/src/fiat/closeFailure.d.ts +19 -0
- package/dist/src/fiat/closeFailure.d.ts.map +1 -0
- package/dist/src/fiat/countryListEntries.d.ts +2 -3
- package/dist/src/fiat/countryListEntries.d.ts.map +1 -1
- package/dist/src/fiat/depositOutcome.d.ts +18 -1
- package/dist/src/fiat/depositOutcome.d.ts.map +1 -1
- package/dist/src/fiat/fieldLabel.d.ts +14 -0
- package/dist/src/fiat/fieldLabel.d.ts.map +1 -0
- package/dist/src/fiat/formLayout.d.ts +16 -3
- package/dist/src/fiat/formLayout.d.ts.map +1 -1
- package/dist/src/fiat/formValidationError.d.ts +4 -2
- package/dist/src/fiat/formValidationError.d.ts.map +1 -1
- package/dist/src/fiat/kycFailover.d.ts +6 -0
- package/dist/src/fiat/kycFailover.d.ts.map +1 -0
- package/dist/src/fiat/kycFormState.d.ts +12 -0
- package/dist/src/fiat/kycFormState.d.ts.map +1 -1
- package/dist/src/fiat/kycFormTheme.d.ts +8 -0
- package/dist/src/fiat/kycFormTheme.d.ts.map +1 -1
- package/dist/src/fiat/kycUnavailableAlert.d.ts.map +1 -1
- package/dist/src/fiat/legalLinks.d.ts +4 -3
- package/dist/src/fiat/legalLinks.d.ts.map +1 -1
- package/dist/src/fiat/otpScreenProps.d.ts.map +1 -1
- package/dist/src/fiat/paymentSurfaceFailure.d.ts +56 -0
- package/dist/src/fiat/paymentSurfaceFailure.d.ts.map +1 -0
- package/dist/src/fiat/phoneDraft.d.ts +20 -0
- package/dist/src/fiat/phoneDraft.d.ts.map +1 -1
- package/dist/src/fiat/postalCodeCountries.d.ts +16 -0
- package/dist/src/fiat/postalCodeCountries.d.ts.map +1 -0
- package/dist/src/fiat/providers/CoinbaseCheckoutSurface.d.ts +8 -2
- package/dist/src/fiat/providers/CoinbaseCheckoutSurface.d.ts.map +1 -1
- package/dist/src/fiat/providers/SumsubKycSurface.d.ts.map +1 -1
- package/dist/src/fiat/providers/TransakApplePaySurface.d.ts.map +1 -1
- package/dist/src/fiat/providers/adapter.d.ts +33 -5
- package/dist/src/fiat/providers/adapter.d.ts.map +1 -1
- package/dist/src/fiat/providers/applePayButtonMetrics.d.ts +1 -2
- package/dist/src/fiat/providers/applePayButtonMetrics.d.ts.map +1 -1
- package/dist/src/fiat/providers/applePayPaintGate.d.ts +5 -2
- package/dist/src/fiat/providers/applePayPaintGate.d.ts.map +1 -1
- package/dist/src/fiat/providers/banxaRedirect.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbaseApplePay.d.ts +2 -1
- package/dist/src/fiat/providers/coinbaseApplePay.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbaseFailureCopy.d.ts +7 -1
- package/dist/src/fiat/providers/coinbaseFailureCopy.d.ts.map +1 -1
- package/dist/src/fiat/providers/describeThrown.d.ts.map +1 -1
- package/dist/src/fiat/providers/kycIntro.d.ts +20 -0
- package/dist/src/fiat/providers/kycIntro.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay.d.ts +6 -1
- package/dist/src/fiat/providers/moonpay.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpayApplePayPainted.d.ts +6 -3
- package/dist/src/fiat/providers/moonpayApplePayPainted.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpayApplePayStyle.d.ts +5 -10
- package/dist/src/fiat/providers/moonpayApplePayStyle.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpayAuthStyle.d.ts +19 -0
- package/dist/src/fiat/providers/moonpayAuthStyle.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpayFeeQuote.d.ts +26 -0
- package/dist/src/fiat/providers/moonpayFeeQuote.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripeAuthorize.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripeCheckout.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripeKyc.d.ts +2 -0
- package/dist/src/fiat/providers/stripeKyc.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripeKycIntro.d.ts +10 -0
- package/dist/src/fiat/providers/stripeKycIntro.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripePayment.d.ts +2 -2
- package/dist/src/fiat/providers/stripePayment.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripeRoundPush.d.ts +45 -0
- package/dist/src/fiat/providers/stripeRoundPush.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripeSeamlessSignIn.d.ts +5 -0
- package/dist/src/fiat/providers/stripeSeamlessSignIn.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripeSessionAuth.d.ts.map +1 -1
- package/dist/src/fiat/providers/sumsubKyc.d.ts.map +1 -1
- package/dist/src/fiat/providers/surfaceParams.d.ts +30 -0
- package/dist/src/fiat/providers/surfaceParams.d.ts.map +1 -0
- package/dist/src/fiat/providers/transakApplePay.d.ts.map +1 -1
- package/dist/src/fiat/providers/useStripeOnrampClient.d.ts +0 -10
- package/dist/src/fiat/providers/useStripeOnrampClient.d.ts.map +1 -1
- package/dist/src/fiat/providers/useStripeSessionAuth.d.ts +42 -0
- package/dist/src/fiat/providers/useStripeSessionAuth.d.ts.map +1 -0
- package/dist/src/fiat/providers/useWebViewTermination.d.ts +15 -0
- package/dist/src/fiat/providers/useWebViewTermination.d.ts.map +1 -0
- package/dist/src/fiat/quoteNoRoute.d.ts +11 -0
- package/dist/src/fiat/quoteNoRoute.d.ts.map +1 -0
- package/dist/src/fiat/renderCaptureSurface.d.ts +2 -0
- package/dist/src/fiat/renderCaptureSurface.d.ts.map +1 -1
- package/dist/src/fiat/sectionDetail.d.ts +8 -1
- package/dist/src/fiat/sectionDetail.d.ts.map +1 -1
- package/dist/src/fiat/shownFieldIssues.d.ts +17 -0
- package/dist/src/fiat/shownFieldIssues.d.ts.map +1 -0
- package/dist/src/fiat/stepDetails.d.ts +13 -14
- package/dist/src/fiat/stepDetails.d.ts.map +1 -1
- package/dist/src/fiat/subdivisions.d.ts +6 -0
- package/dist/src/fiat/subdivisions.d.ts.map +1 -1
- package/dist/src/fiat/useContactAutoSubmit.d.ts +20 -0
- package/dist/src/fiat/useContactAutoSubmit.d.ts.map +1 -0
- package/dist/src/fiat/useFiatCheckoutPreparation.d.ts +2 -1
- package/dist/src/fiat/useFiatCheckoutPreparation.d.ts.map +1 -1
- package/dist/src/fiat/useKycCaptureRound.d.ts +16 -0
- package/dist/src/fiat/useKycCaptureRound.d.ts.map +1 -0
- package/dist/src/fiat/useKycCompletion.d.ts.map +1 -1
- package/dist/src/fiat/useOtpAutoSubmit.d.ts +15 -2
- package/dist/src/fiat/useOtpAutoSubmit.d.ts.map +1 -1
- package/dist/src/fiat/useOtpReceipt.d.ts +3 -2
- package/dist/src/fiat/useOtpReceipt.d.ts.map +1 -1
- package/dist/src/fiat/useReceiptTitles.d.ts +6 -0
- package/dist/src/fiat/useReceiptTitles.d.ts.map +1 -0
- package/dist/src/flow/DepositAmountStep.d.ts.map +1 -1
- package/dist/src/flow/DepositAssetPicker.d.ts +4 -2
- package/dist/src/flow/DepositAssetPicker.d.ts.map +1 -1
- package/dist/src/flow/DepositFlowContent.d.ts.map +1 -1
- package/dist/src/flow/DepositReceivedToast.d.ts +2 -2
- package/dist/src/flow/DepositReceivedToast.d.ts.map +1 -1
- package/dist/src/flow/FeeDetailsSheet.d.ts +3 -1
- package/dist/src/flow/FeeDetailsSheet.d.ts.map +1 -1
- package/dist/src/flow/FiatDepositAmountStep.d.ts +11 -1
- package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
- package/dist/src/flow/FlowPage.d.ts +3 -0
- package/dist/src/flow/FlowPage.d.ts.map +1 -1
- package/dist/src/flow/FlowSheet.d.ts +10 -2
- package/dist/src/flow/FlowSheet.d.ts.map +1 -1
- package/dist/src/flow/FunkitFlowProvider.d.ts +3 -0
- package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
- package/dist/src/flow/SheetMaterial.d.ts +7 -6
- package/dist/src/flow/SheetMaterial.d.ts.map +1 -1
- package/dist/src/flow/WithdrawalFlowContent.d.ts.map +1 -1
- package/dist/src/flow/depositFlowConfig.d.ts +24 -7
- package/dist/src/flow/depositFlowConfig.d.ts.map +1 -1
- package/dist/src/flow/depositRailCopy.d.ts +2 -0
- package/dist/src/flow/depositRailCopy.d.ts.map +1 -1
- package/dist/src/flow/flowError.d.ts +3 -1
- package/dist/src/flow/flowError.d.ts.map +1 -1
- package/dist/src/flow/guardHostCallbacks.d.ts +8 -1
- package/dist/src/flow/guardHostCallbacks.d.ts.map +1 -1
- package/dist/src/flow/sheetPressHold.d.ts +24 -0
- package/dist/src/flow/sheetPressHold.d.ts.map +1 -0
- package/dist/src/flow/swipeBack.d.ts +30 -0
- package/dist/src/flow/swipeBack.d.ts.map +1 -0
- package/dist/src/flow/useDepositReceivedToast.d.ts.map +1 -1
- package/dist/src/flow/useFlowTransitions.d.ts +47 -0
- package/dist/src/flow/useFlowTransitions.d.ts.map +1 -0
- package/dist/src/flow/useKeyboardHeight.d.ts +2 -2
- package/dist/src/flow/useKeyboardHeight.d.ts.map +1 -1
- package/dist/src/flow/v2DepositCustomers.d.ts +2 -0
- package/dist/src/flow/v2DepositCustomers.d.ts.map +1 -0
- package/dist/src/flow/validateClientMetadata.d.ts.map +1 -1
- package/dist/src/hooks/usePressScale.d.ts +2 -6
- package/dist/src/hooks/usePressScale.d.ts.map +1 -1
- package/dist/src/icons/assetLogos.d.ts.map +1 -1
- package/dist/src/identity/IdentityContext.d.ts +8 -0
- package/dist/src/identity/IdentityContext.d.ts.map +1 -1
- package/dist/src/logging/datadogHttpLogTransport.d.ts +10 -3
- package/dist/src/logging/datadogHttpLogTransport.d.ts.map +1 -1
- package/dist/src/logging/logger.d.ts.map +1 -1
- package/dist/src/native/glassEffect.d.ts +20 -0
- package/dist/src/native/glassEffect.d.ts.map +1 -1
- package/dist/src/preview/fixtures/kycForms.d.ts +45 -0
- package/dist/src/preview/fixtures/kycForms.d.ts.map +1 -0
- package/dist/src/preview/flowPreview.d.ts +142 -0
- package/dist/src/preview/flowPreview.d.ts.map +1 -0
- package/dist/src/preview/previewFetch.d.ts +10 -0
- package/dist/src/preview/previewFetch.d.ts.map +1 -0
- package/dist/src/preview/scenarioCatalog.d.ts +380 -0
- package/dist/src/preview/scenarioCatalog.d.ts.map +1 -0
- package/dist/src/preview/scenarios.d.ts +57 -0
- package/dist/src/preview/scenarios.d.ts.map +1 -0
- package/dist/src/providers/FunkitI18nProvider.d.ts +2 -0
- package/dist/src/providers/FunkitI18nProvider.d.ts.map +1 -1
- package/dist/src/providers/useFunkitCheckout.d.ts +6 -0
- package/dist/src/providers/useFunkitCheckout.d.ts.map +1 -1
- package/dist/src/screens/DepositAmountScreen.d.ts +9 -2
- package/dist/src/screens/DepositAmountScreen.d.ts.map +1 -1
- package/dist/src/screens/FeeDetailsScreen.d.ts.map +1 -1
- package/dist/src/screens/TokenAndChainPickerScreen.d.ts +3 -1
- package/dist/src/screens/TokenAndChainPickerScreen.d.ts.map +1 -1
- package/dist/src/screens/WithdrawCryptoSteps.d.ts.map +1 -1
- package/dist/src/screens/depositMetrics.d.ts +40 -3
- package/dist/src/screens/depositMetrics.d.ts.map +1 -1
- package/dist/src/swapped/SwappedWebView.d.ts.map +1 -1
- package/dist/src/theme/keyboardAppearance.d.ts +10 -0
- package/dist/src/theme/keyboardAppearance.d.ts.map +1 -0
- package/dist/src/theme/tokens.d.ts +4 -1
- package/dist/src/theme/tokens.d.ts.map +1 -1
- package/dist/src/transfer/depositAssets.d.ts +6 -4
- package/dist/src/transfer/depositAssets.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useLockedTokenAmount.d.ts +19 -1
- package/dist/src/transfer/hooks/useLockedTokenAmount.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useUDAParams.d.ts.map +1 -1
- package/dist/src/transfer/lockedQuoteSource.d.ts +23 -0
- package/dist/src/transfer/lockedQuoteSource.d.ts.map +1 -0
- package/dist/src/transfer/lockedTokenAmount.d.ts +25 -0
- package/dist/src/transfer/lockedTokenAmount.d.ts.map +1 -1
- package/dist/src/utils/formatAmount.d.ts +1 -0
- package/dist/src/utils/formatAmount.d.ts.map +1 -1
- package/dist/src/utils/motion.d.ts +6 -0
- package/dist/src/utils/motion.d.ts.map +1 -1
- package/dist/src/withdrawal/useCryptoWithdrawalForm.d.ts +3 -2
- package/dist/src/withdrawal/useCryptoWithdrawalForm.d.ts.map +1 -1
- package/ios/FrostedGlassView.swift +207 -0
- package/ios/FunkitGlassEffect.podspec +1 -1
- package/ios/FunkitGlassEffectModule.swift +42 -0
- package/package.json +14 -8
- package/dist/chunk-D64EJ57D.js.map +0 -7
- package/dist/chunk-J5K2FSAI.js.map +0 -7
- package/dist/src/components/ActionLoading.d.ts +0 -19
- package/dist/src/components/ActionLoading.d.ts.map +0 -1
- package/dist/src/fiat/FiatConsentCheck.d.ts +0 -11
- package/dist/src/fiat/FiatConsentCheck.d.ts.map +0 -1
- package/dist/src/fiat/FiatFormConsent.d.ts +0 -6
- package/dist/src/fiat/FiatFormConsent.d.ts.map +0 -1
- package/dist/src/fiat/FiatQuotePrice.d.ts +0 -12
- package/dist/src/fiat/FiatQuotePrice.d.ts.map +0 -1
- package/dist/src/fiat/providerFailover.d.ts +0 -12
- package/dist/src/fiat/providerFailover.d.ts.map +0 -1
- package/dist/src/fiat/providers/StripeSessionAuthController.d.ts +0 -29
- package/dist/src/fiat/providers/StripeSessionAuthController.d.ts.map +0 -1
- package/dist/src/fiat/providers/moonpayTrace.d.ts +0 -25
- package/dist/src/fiat/providers/moonpayTrace.d.ts.map +0 -1
- package/dist/src/fiat/useQuoteableCeiling.d.ts +0 -28
- package/dist/src/fiat/useQuoteableCeiling.d.ts.map +0 -1
- /package/dist/{chunk-GG2WCQ6N.js.map → chunk-3ZNAGQHD.js.map} +0 -0
|
@@ -21,6 +21,12 @@ export interface FiatFormScreenProps {
|
|
|
21
21
|
* screen does.
|
|
22
22
|
*/
|
|
23
23
|
carriedValues?: FormValues;
|
|
24
|
+
/**
|
|
25
|
+
* Values for fields this round sends without showing, because an earlier
|
|
26
|
+
* round of this session answered them — see `answeredFields`. Written in the
|
|
27
|
+
* same prefill as everything else, so they are submitted and pushed.
|
|
28
|
+
*/
|
|
29
|
+
answeredValues?: FormValues;
|
|
24
30
|
/** The form's own error, when the server re-entered it carrying one. */
|
|
25
31
|
errorMessage?: string;
|
|
26
32
|
/** The rounds walked so far, so the dots carry on from the earlier ones. */
|
|
@@ -46,6 +52,6 @@ interface FiatFormContentProps extends FiatFormScreenProps {
|
|
|
46
52
|
onStep: (step: number) => void;
|
|
47
53
|
}
|
|
48
54
|
/** One round of the form: what is typed, what is refused, and which page is up. */
|
|
49
|
-
export declare function FiatFormContent({ form, values, defaultCountry, carriedValues, errorMessage, walk, isSubmitting, onChangeField, onPrefill, onSubmit, onClose, pages, step, onStep, }: FiatFormContentProps): import("react").JSX.Element | null;
|
|
55
|
+
export declare function FiatFormContent({ form, values, defaultCountry, carriedValues, answeredValues, errorMessage, walk, isSubmitting, onChangeField, onPrefill, onSubmit, onClose, pages, step, onStep, }: FiatFormContentProps): import("react").JSX.Element | null;
|
|
50
56
|
export {};
|
|
51
57
|
//# sourceMappingURL=FiatFormScreen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FiatFormScreen.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatFormScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAwB,MAAM,WAAW,CAAA;AAG9D,OAAO,KAAK,EACV,YAAY,EACZ,cAAc,EAEd,UAAU,EACV,SAAS,EACT,KAAK,EACN,MAAM,sBAAsB,CAAA;AA0B7B,OAAO,EAGL,KAAK,cAAc,
|
|
1
|
+
{"version":3,"file":"FiatFormScreen.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatFormScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAwB,MAAM,WAAW,CAAA;AAG9D,OAAO,KAAK,EACV,YAAY,EACZ,cAAc,EAEd,UAAU,EACV,SAAS,EACT,KAAK,EACN,MAAM,sBAAsB,CAAA;AA0B7B,OAAO,EAGL,KAAK,cAAc,EASpB,MAAM,cAAc,CAAA;AAgCrB,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,cAAc,CAAA;IACpB,gFAAgF;IAChF,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,qEAAqE;IACrE,QAAQ,CAAC,EAAE,YAAY,CAAA;IACvB,MAAM,EAAE,UAAU,CAAA;IAClB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,UAAU,CAAA;IAC1B;;;;OAIG;IACH,cAAc,CAAC,EAAE,UAAU,CAAA;IAC3B,wEAAwE;IACxE,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,4EAA4E;IAC5E,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,YAAY,EAAE,OAAO,CAAA;IACrB,aAAa,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,KAAK,IAAI,CAAA;IAC1D,oEAAoE;IACpE,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAA;IACxC,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,+BA4DxD;AAED,UAAU,oBAAqB,SAAQ,mBAAmB;IACxD,KAAK,EAAE,cAAc,EAAE,CAAA;IACvB,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;CAC/B;AAED,mFAAmF;AACnF,wBAAgB,eAAe,CAAC,EAC9B,IAAI,EACJ,MAAM,EACN,cAAc,EACd,aAAa,EACb,cAAc,EACd,YAAY,EACZ,IAAI,EACJ,YAAY,EACZ,aAAa,EACb,SAAS,EACT,QAAQ,EACR,OAAO,EACP,KAAK,EACL,IAAI,EACJ,MAAM,GACP,EAAE,oBAAoB,sCAolBtB"}
|
|
@@ -1,3 +1,18 @@
|
|
|
1
1
|
import { type FiatFormScreenProps } from './FiatFormScreen';
|
|
2
|
-
|
|
2
|
+
import type { KycIntro } from './providers/kycIntro';
|
|
3
|
+
export declare function FiatIdentityStep({ intro, onConsentGiven, ...fullProps }: FiatFormScreenProps & {
|
|
4
|
+
/** Records the consent tap in the background; see `FiatKycIntroScreen`. */
|
|
5
|
+
onConsentGiven?: (consentedAt: Date, language: string) => void;
|
|
6
|
+
/**
|
|
7
|
+
* The faceplate the round opens on, as its provider decides it (`kycIntroFor`).
|
|
8
|
+
* `none` opens straight on the form: Stripe's account creation, which creates
|
|
9
|
+
* an account rather than verifying anyone; the consent shows once, on the
|
|
10
|
+
* identity round after.
|
|
11
|
+
*
|
|
12
|
+
* Deliberate, for now: that consent — and its `kyc_consent_given` log — then
|
|
13
|
+
* comes after `registerLinkUser` has sent the name, phone and country to
|
|
14
|
+
* Stripe. Revisit with whoever owns the consent copy before launch.
|
|
15
|
+
*/
|
|
16
|
+
intro?: KycIntro;
|
|
17
|
+
}): import("react").JSX.Element;
|
|
3
18
|
//# sourceMappingURL=FiatIdentityStep.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FiatIdentityStep.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatIdentityStep.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAkB,KAAK,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;
|
|
1
|
+
{"version":3,"file":"FiatIdentityStep.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatIdentityStep.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAkB,KAAK,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;AAK3E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AASpD,wBAAgB,gBAAgB,CAAC,EAC/B,KAAiB,EACjB,cAAc,EACd,GAAG,SAAS,EACb,EAAE,mBAAmB,GAAG;IACvB,2EAA2E;IAC3E,cAAc,CAAC,EAAE,CAAC,WAAW,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IAC9D;;;;;;;;;OASG;IACH,KAAK,CAAC,EAAE,QAAQ,CAAA;CACjB,+BAwBA"}
|
|
@@ -15,8 +15,6 @@ interface KycFieldControlProps extends FiatFormFieldRowProps {
|
|
|
15
15
|
inlineChoice?: boolean;
|
|
16
16
|
/** Shares its row with another field — see `FiatChoiceField`. */
|
|
17
17
|
paired?: boolean;
|
|
18
|
-
/** The country the address is in, whose states the region field lists. */
|
|
19
|
-
country?: string;
|
|
20
18
|
}
|
|
21
19
|
export declare function FiatKycFieldControl({ caption, ...props }: KycFieldControlProps & {
|
|
22
20
|
/** Named above the control, where the page's own line does not name it. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FiatKycFieldControl.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatKycFieldControl.tsx"],"names":[],"mappings":"AASA,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,oBAAoB,CAAA;AAE3B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;
|
|
1
|
+
{"version":3,"file":"FiatKycFieldControl.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatKycFieldControl.tsx"],"names":[],"mappings":"AASA,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,oBAAoB,CAAA;AAE3B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAI1D,UAAU,oBAAqB,SAAQ,qBAAqB;IAC1D,SAAS,CAAC,EAAE,CAAC,GAAG,CAAC,CAAA;IACjB,yEAAyE;IACzE,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,MAAM,CAAC,EAAE,gBAAgB,CAAA;IACzB,2DAA2D;IAC3D,KAAK,CAAC,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAA;IACvC,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,uEAAuE;IACvE,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,iEAAiE;IACjE,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB;AAED,wBAAgB,mBAAmB,CAAC,EAClC,OAAO,EACP,GAAG,KAAK,EACT,EAAE,oBAAoB,GAAG;IACxB,2EAA2E;IAC3E,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,+BAiBA"}
|
|
@@ -1,15 +1,26 @@
|
|
|
1
1
|
import type { FiatProvider, KYCProvider } from '@funkit/connect-core';
|
|
2
|
+
/**
|
|
3
|
+
* Which round the screen introduces. `consent` and `stepUp` collect the user's
|
|
4
|
+
* agreement: a step up follows a round that asked for none (Stripe's L1, after
|
|
5
|
+
* its L0 account creation).
|
|
6
|
+
*/
|
|
7
|
+
export type FiatKycIntroVariant = 'consent' | 'stepUp' | 'additionalInformation' | 'document';
|
|
2
8
|
export interface FiatKycIntroScreenProps {
|
|
3
9
|
provider?: FiatProvider;
|
|
4
10
|
/** Names the ID-verification vendor in the document round's copy. */
|
|
5
11
|
kycProvider?: KYCProvider;
|
|
6
|
-
|
|
7
|
-
documentVerification?: boolean;
|
|
12
|
+
variant?: FiatKycIntroVariant;
|
|
8
13
|
/** Provider guidance shown before a rejected document round is reopened. */
|
|
9
14
|
correctionReason?: string;
|
|
10
15
|
isSubmitting?: boolean;
|
|
16
|
+
/** The provider's own sheet is opening over this screen. */
|
|
17
|
+
opening?: boolean;
|
|
18
|
+
/** Off on the consent that opens a round: a stray swipe there drops all of KYC. */
|
|
19
|
+
swipeBack?: boolean;
|
|
11
20
|
onContinue: () => void;
|
|
21
|
+
/** Fired after `onContinue` when the user agrees, with the language the copy was shown in; must not affect the flow. */
|
|
22
|
+
onConsentGiven?: (consentedAt: Date, language: string) => void;
|
|
12
23
|
onCancel: () => void;
|
|
13
24
|
}
|
|
14
|
-
export declare function FiatKycIntroScreen({ provider, kycProvider,
|
|
25
|
+
export declare function FiatKycIntroScreen({ provider, kycProvider, variant, correctionReason, isSubmitting, opening, swipeBack, onContinue, onConsentGiven, onCancel, }: FiatKycIntroScreenProps): import("react").JSX.Element;
|
|
15
26
|
//# sourceMappingURL=FiatKycIntroScreen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FiatKycIntroScreen.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatKycIntroScreen.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAoBrE,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,EAAE,YAAY,CAAA;IACvB,qEAAqE;IACrE,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB,
|
|
1
|
+
{"version":3,"file":"FiatKycIntroScreen.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatKycIntroScreen.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAoBrE;;;;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,+BAqJzB"}
|
|
@@ -4,7 +4,7 @@ export interface FiatKycOptionsScreenProps {
|
|
|
4
4
|
/** The card's own glyph, which need not be the banner's. */
|
|
5
5
|
glyph: KycStatusGlyph;
|
|
6
6
|
title: string;
|
|
7
|
-
/** Heading over the routes, e.g. "Right now you can
|
|
7
|
+
/** Heading over the routes, e.g. "Right now you can". */
|
|
8
8
|
optionsLabel: string;
|
|
9
9
|
options: FiatKycOptionRowProps[];
|
|
10
10
|
onBack: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FiatKycOptionsScreen.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatKycOptionsScreen.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,cAAc,EAAiB,MAAM,wBAAwB,CAAA;AAG3E,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,oBAAoB,CAAA;AAE3B,MAAM,WAAW,yBAAyB;IACxC,4DAA4D;IAC5D,KAAK,EAAE,cAAc,CAAA;IACrB,KAAK,EAAE,MAAM,CAAA;IACb,
|
|
1
|
+
{"version":3,"file":"FiatKycOptionsScreen.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatKycOptionsScreen.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,cAAc,EAAiB,MAAM,wBAAwB,CAAA;AAG3E,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,oBAAoB,CAAA;AAE3B,MAAM,WAAW,yBAAyB;IACxC,4DAA4D;IAC5D,KAAK,EAAE,cAAc,CAAA;IACrB,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,oBAAoB,CAAC,EACnC,KAAK,EACL,KAAK,EACL,YAAY,EACZ,OAAO,EACP,MAAM,GACP,EAAE,yBAAyB,+BAmD3B"}
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
export interface FiatKycOutcomeScreenProps {
|
|
2
2
|
outcome: 'review' | 'hold' | 'restricted';
|
|
3
3
|
/**
|
|
4
|
-
* The verdict is withheld for now: the screen
|
|
5
|
-
* spins where its action goes. What was sent has landed, and the answer
|
|
6
|
-
* arrives on a screen the buyer is already reading.
|
|
4
|
+
* The verdict is withheld for now: the screen says the check is being read
|
|
5
|
+
* and spins where its action goes. What was sent has landed, and the answer
|
|
6
|
+
* then arrives on a screen the buyer is already reading.
|
|
7
7
|
*/
|
|
8
8
|
pending?: boolean;
|
|
9
9
|
recovery?: {
|
|
10
10
|
label: string;
|
|
11
11
|
onPress: () => void;
|
|
12
12
|
};
|
|
13
|
-
retryDetail?: string;
|
|
14
13
|
onContinue: () => void;
|
|
15
14
|
}
|
|
16
15
|
/**
|
|
@@ -19,6 +18,9 @@ export interface FiatKycOutcomeScreenProps {
|
|
|
19
18
|
* - The wait starts here, on mount, so it is the screen's own: the verdict is
|
|
20
19
|
* often decided while another screen still owns the frame.
|
|
21
20
|
*/
|
|
22
|
-
export declare function FiatKycCompletion(props: Omit<FiatKycOutcomeScreenProps, 'pending'>
|
|
23
|
-
|
|
21
|
+
export declare function FiatKycCompletion({ polling, ...props }: Omit<FiatKycOutcomeScreenProps, 'pending'> & {
|
|
22
|
+
/** The review's poll is still running behind this screen. */
|
|
23
|
+
polling?: boolean;
|
|
24
|
+
}): import("react").JSX.Element;
|
|
25
|
+
export declare function FiatKycOutcomeScreen({ outcome, pending, recovery, onContinue, }: FiatKycOutcomeScreenProps): import("react").JSX.Element;
|
|
24
26
|
//# sourceMappingURL=FiatKycOutcomeScreen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FiatKycOutcomeScreen.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatKycOutcomeScreen.tsx"],"names":[],"mappings":"
|
|
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,+BAyC3B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FieldInputRef
|
|
1
|
+
import type { FieldInputRef } from './FiatFormFieldRow';
|
|
2
2
|
export interface FiatKycPhoneFieldProps {
|
|
3
3
|
/** The form's value: E.164, or empty. */
|
|
4
4
|
value: string;
|
|
@@ -6,7 +6,6 @@ export interface FiatKycPhoneFieldProps {
|
|
|
6
6
|
defaultCountry?: string;
|
|
7
7
|
editable: boolean;
|
|
8
8
|
autoFocus: boolean;
|
|
9
|
-
returnKey?: FieldReturnKey;
|
|
10
9
|
inputRef?: FieldInputRef;
|
|
11
10
|
onChangeValue: (value: string) => void;
|
|
12
11
|
onBlur: () => void;
|
|
@@ -17,5 +16,5 @@ export interface FiatKycPhoneFieldProps {
|
|
|
17
16
|
* the right, and E.164 written to the form. A plain box that asked for the
|
|
18
17
|
* code to be typed left a local number failing the round's own rule.
|
|
19
18
|
*/
|
|
20
|
-
export declare function FiatKycPhoneField({ value, defaultCountry, editable, autoFocus,
|
|
19
|
+
export declare function FiatKycPhoneField({ value, defaultCountry, editable, autoFocus, inputRef, onChangeValue, onBlur, }: FiatKycPhoneFieldProps): import("react").JSX.Element;
|
|
21
20
|
//# sourceMappingURL=FiatKycPhoneField.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FiatKycPhoneField.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatKycPhoneField.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"FiatKycPhoneField.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatKycPhoneField.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAcvD,MAAM,WAAW,sBAAsB;IACrC,yCAAyC;IACzC,KAAK,EAAE,MAAM,CAAA;IACb,6EAA6E;IAC7E,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,EAAE,OAAO,CAAA;IACjB,SAAS,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,aAAa,CAAA;IACxB,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,KAAK,EACL,cAAc,EACd,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,aAAa,EACb,MAAM,GACP,EAAE,sBAAsB,+BAqDxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FiatOtpScreen.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatOtpScreen.tsx"],"names":[],"mappings":"AA2BA,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,IAAI,CAAA;IACrB,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,+
|
|
1
|
+
{"version":3,"file":"FiatOtpScreen.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatOtpScreen.tsx"],"names":[],"mappings":"AA2BA,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,IAAI,CAAA;IACrB,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,+BAsMrB"}
|
|
@@ -7,16 +7,29 @@ export interface FiatPhoneFieldProps {
|
|
|
7
7
|
/** Whether the country list is up, so the chip can say so. */
|
|
8
8
|
isOpen: boolean;
|
|
9
9
|
editable?: boolean;
|
|
10
|
+
/** Drawn in the invalid fill, as the email field is. */
|
|
11
|
+
invalid?: boolean;
|
|
10
12
|
autoFocus: boolean;
|
|
11
|
-
/**
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
/**
|
|
14
|
+
* `country` is set only when the input carried its own calling code (an
|
|
15
|
+
* autofill or paste), which then replaces the chip's.
|
|
16
|
+
*/
|
|
17
|
+
onChangePhone: (phone: PhoneEdit) => void;
|
|
14
18
|
onOpenCountries: () => void;
|
|
15
19
|
onSubmitEditing: () => void;
|
|
16
20
|
/** Focusing the digits is choosing them over the list the chip raised. */
|
|
17
21
|
onFocus: () => void;
|
|
18
22
|
onLayoutRef: (input: RNTextInput | null) => void;
|
|
19
23
|
}
|
|
24
|
+
export interface PhoneEdit {
|
|
25
|
+
national: string;
|
|
26
|
+
country?: PhoneCountry;
|
|
27
|
+
/**
|
|
28
|
+
* The edit landed 2+ digits at once (a paste or AutoFill). Read off the
|
|
29
|
+
* text the field showed, since moving a code to the chip reshapes the digits.
|
|
30
|
+
*/
|
|
31
|
+
inserted: boolean;
|
|
32
|
+
}
|
|
20
33
|
/**
|
|
21
34
|
* A phone number as one field: the calling code chosen on the left, the rest
|
|
22
35
|
* typed on the right.
|
|
@@ -25,5 +38,5 @@ export interface FiatPhoneFieldProps {
|
|
|
25
38
|
* remember — the old copy asked them to type it and a local number left
|
|
26
39
|
* Continue dead with no explanation.
|
|
27
40
|
*/
|
|
28
|
-
export declare function FiatPhoneField({ country, national, isOpen, autoFocus, editable,
|
|
41
|
+
export declare function FiatPhoneField({ country, national, isOpen, autoFocus, editable, invalid, onChangePhone, onOpenCountries, onSubmitEditing, onFocus, onLayoutRef, }: FiatPhoneFieldProps): import("react").JSX.Element;
|
|
29
42
|
//# sourceMappingURL=FiatPhoneField.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FiatPhoneField.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatPhoneField.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FiatPhoneField.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatPhoneField.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,SAAS,IAAI,WAAW,EAAE,MAAM,cAAc,CAAA;AAS5D,OAAO,EAAE,KAAK,YAAY,EAA4B,MAAM,kBAAkB,CAAA;AAE9E,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,YAAY,CAAA;IACrB,2EAA2E;IAC3E,QAAQ,EAAE,MAAM,CAAA;IAChB,8DAA8D;IAC9D,MAAM,EAAE,OAAO,CAAA;IACf,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,wDAAwD;IACxD,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,SAAS,EAAE,OAAO,CAAA;IAClB;;;OAGG;IACH,aAAa,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAA;IACzC,eAAe,EAAE,MAAM,IAAI,CAAA;IAC3B,eAAe,EAAE,MAAM,IAAI,CAAA;IAC3B,0EAA0E;IAC1E,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,WAAW,EAAE,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAAA;CACjD;AAED,MAAM,WAAW,SAAS;IACxB,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,YAAY,CAAA;IACtB;;;OAGG;IACH,QAAQ,EAAE,OAAO,CAAA;CAClB;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,EAC7B,OAAO,EACP,QAAQ,EACR,MAAM,EACN,SAAS,EACT,QAAe,EACf,OAAe,EACf,aAAa,EACb,eAAe,EACf,eAAe,EACf,OAAO,EACP,WAAW,GACZ,EAAE,mBAAmB,+BAoGrB"}
|
|
@@ -5,7 +5,12 @@ export interface FiatReceiptProps {
|
|
|
5
5
|
title: string;
|
|
6
6
|
/** Label on the support link, which every receipt carries. */
|
|
7
7
|
supportLabel: string;
|
|
8
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Every title the receipt makes room for. The title box is as tall as the
|
|
10
|
+
* tallest of them at the current text size, so a title that changes in
|
|
11
|
+
* place leaves the link and the footer where they were.
|
|
12
|
+
*/
|
|
13
|
+
reservedTitles?: readonly string[];
|
|
9
14
|
/** The footer; each receipt fills it with its own actions. */
|
|
10
15
|
children?: ReactNode;
|
|
11
16
|
}
|
|
@@ -15,7 +20,8 @@ export interface FiatReceiptProps {
|
|
|
15
20
|
*
|
|
16
21
|
* Presentational only — it decides nothing. The wording, the glyph and the
|
|
17
22
|
* actions all come from the screen that renders it, so the identity outcomes
|
|
18
|
-
* and the region refusal cannot drift apart.
|
|
23
|
+
* and the region refusal cannot drift apart. A change to any of them swaps in
|
|
24
|
+
* place.
|
|
19
25
|
*/
|
|
20
|
-
export declare function FiatReceipt({ restricted, title, supportLabel,
|
|
26
|
+
export declare function FiatReceipt({ restricted, title, supportLabel, reservedTitles, children, }: FiatReceiptProps): import("react").JSX.Element;
|
|
21
27
|
//# sourceMappingURL=FiatReceipt.d.ts.map
|
|
@@ -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;
|
|
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,8DAA8D;IAC9D,YAAY,EAAE,MAAM,CAAA;IACpB;;;;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,+BAgElB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FiatRegionUnsupportedScreen.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatRegionUnsupportedScreen.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FiatRegionUnsupportedScreen.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatRegionUnsupportedScreen.tsx"],"names":[],"mappings":"AAKA;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CAAC,EAC1C,OAAO,GACR,EAAE;IACD,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB,+BAaA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FiatSsnField.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatSsnField.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FiatSsnField.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatSsnField.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AA0BvD,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,MAAM,EACN,KAAK,EACL,QAAQ,EACR,SAAS,EACT,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,MAAM,GACP,EAAE;IACD,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,CAAC,GAAG,CAAC,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,OAAO,CAAA;IACjB,SAAS,EAAE,OAAO,CAAA;IAClB,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,CAAC,EAAE,aAAa,CAAA;IACxB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB,+BAkGA"}
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
export declare function FiatSubmissionIndicator(
|
|
1
|
+
export declare function FiatSubmissionIndicator({ delay, }: {
|
|
2
|
+
/**
|
|
3
|
+
* Milliseconds to hold the ring back. The slot keeps its height meanwhile,
|
|
4
|
+
* so a wait that ends sooner shifts nothing and draws nothing.
|
|
5
|
+
*/
|
|
6
|
+
delay?: number;
|
|
7
|
+
}): import("react").JSX.Element;
|
|
2
8
|
//# sourceMappingURL=FiatSubmissionIndicator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FiatSubmissionIndicator.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatSubmissionIndicator.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FiatSubmissionIndicator.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatSubmissionIndicator.tsx"],"names":[],"mappings":"AAWA,wBAAgB,uBAAuB,CAAC,EACtC,KAAS,GACV,EAAE;IACD;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,+BAkBA"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import type { TermsToAccept } from '@funkit/connect-core';
|
|
1
|
+
import type { FiatProvider, TermsToAccept } from '@funkit/connect-core';
|
|
2
2
|
export interface FiatTermsNoticeProps {
|
|
3
3
|
/** A standing disclosure names only its document; there is no revision to echo back. */
|
|
4
4
|
terms: TermsToAccept | Pick<TermsToAccept, 'documentUrl'>;
|
|
5
|
+
/** Picks the provider's copy; the document's host decides only when this is unset or unknown. */
|
|
6
|
+
provider?: FiatProvider;
|
|
5
7
|
}
|
|
6
8
|
export declare const COINBASE_USER_AGREEMENT_URL = "https://www.coinbase.com/legal/user_agreement";
|
|
7
9
|
export declare const MOONPAY_TERMS_URL = "https://www.moonpay.com/legal/terms";
|
|
8
10
|
/** The server requests consent; the footer explains what the next tap accepts. */
|
|
9
|
-
export declare function FiatTermsNotice({ terms }: FiatTermsNoticeProps): import("react").JSX.Element;
|
|
11
|
+
export declare function FiatTermsNotice({ terms, provider }: FiatTermsNoticeProps): import("react").JSX.Element;
|
|
10
12
|
//# 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,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;AASvE,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;AA4FtE,kFAAkF;AAClF,wBAAgB,eAAe,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,oBAAoB,+BAaxE"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface UnsupportedStepLog {
|
|
2
|
+
/** Which branch gave up, so each one is its own Datadog facet. */
|
|
3
|
+
reason: string;
|
|
4
|
+
details?: object;
|
|
5
|
+
}
|
|
6
|
+
export declare function FiatUnsupportedScreen({ onClose, ...log }: UnsupportedStepLog & {
|
|
7
|
+
onClose?: () => void;
|
|
8
|
+
}): import("react").JSX.Element;
|
|
9
|
+
export declare function FiatUnsupportedSubmit(log: UnsupportedStepLog): import("react").JSX.Element;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=FiatUnsupportedStep.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FiatUnsupportedStep.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatUnsupportedStep.tsx"],"names":[],"mappings":"AASA,UAAU,kBAAkB;IAC1B,kEAAkE;IAClE,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAcD,wBAAgB,qBAAqB,CAAC,EACpC,OAAO,EACP,GAAG,GAAG,EACP,EAAE,kBAAkB,GAAG;IAAE,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CAAE,+BAU/C;AAED,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,kBAAkB,+BAY5D"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
|
-
import type
|
|
3
|
-
export declare function SurfaceSlot({ renderSurface, surfaceKey, label, size, covered, onReadyChange, onReadyTimeout, readyCeilingMs, }: {
|
|
2
|
+
import { type PillButtonSize } from '../components/PillButton';
|
|
3
|
+
export declare function SurfaceSlot({ renderSurface, surfaceKey, label, size, covered, onReadyChange, onUncovered, onCovered, onReadyTimeout, readyCeilingMs, }: {
|
|
4
4
|
/** Announced while the cover is up; the design draws no copy on it. */
|
|
5
5
|
label: string;
|
|
6
6
|
size: PillButtonSize;
|
|
@@ -16,6 +16,9 @@ export declare function SurfaceSlot({ renderSurface, surfaceKey, label, size, co
|
|
|
16
16
|
* what is gone holds nothing back.
|
|
17
17
|
*/
|
|
18
18
|
onReadyChange?: (ready: boolean) => void;
|
|
19
|
+
/** Called when the ready provider control is visible after the cover clears. */
|
|
20
|
+
onUncovered?: () => void;
|
|
21
|
+
onCovered?: () => void;
|
|
19
22
|
/** Ends an unresolved provider attempt instead of exposing its empty slot. */
|
|
20
23
|
onReadyTimeout?: () => void;
|
|
21
24
|
/** Override for provider probes that intentionally stay covered while they resolve. */
|
|
@@ -29,8 +32,10 @@ export declare function SurfaceSlot({ renderSurface, surfaceKey, label, size, co
|
|
|
29
32
|
surfaceKey?: undefined;
|
|
30
33
|
})): import("react").JSX.Element;
|
|
31
34
|
/** Readiness and its timeout belong to this provider attempt, not the cover. */
|
|
32
|
-
export declare function ProviderSurface({ renderSurface, onReady, onReadyTimeout, readyCeilingMs, }: {
|
|
35
|
+
export declare function ProviderSurface({ renderSurface, onReady, onReadyTimeout, readyCeilingMs, surfaceKey, }: {
|
|
33
36
|
renderSurface: (onReady: () => void) => ReactNode;
|
|
37
|
+
/** Names the attempt in the ceiling log; carries the quote ref when there is one. */
|
|
38
|
+
surfaceKey?: string;
|
|
34
39
|
onReady: () => void;
|
|
35
40
|
onReadyTimeout?: () => void;
|
|
36
41
|
readyCeilingMs?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SurfaceSlot.d.ts","sourceRoot":"","sources":["../../../src/fiat/SurfaceSlot.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,SAAS,EAKf,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"SurfaceSlot.d.ts","sourceRoot":"","sources":["../../../src/fiat/SurfaceSlot.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,SAAS,EAKf,MAAM,OAAO,CAAA;AAUd,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAW1E,wBAAgB,WAAW,CAAC,EAC1B,aAAa,EACb,UAAU,EACV,KAAK,EACL,IAAI,EACJ,OAAe,EACf,aAAa,EACb,WAAW,EACX,SAAS,EACT,cAAc,EACd,cAAiC,GAClC,EAAE;IACD,uEAAuE;IACvE,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,cAAc,CAAA;IACpB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;;OAIG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAA;IACxC,gFAAgF;IAChF,WAAW,CAAC,EAAE,MAAM,IAAI,CAAA;IACxB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,8EAA8E;IAC9E,cAAc,CAAC,EAAE,MAAM,IAAI,CAAA;IAC3B,uFAAuF;IACvF,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,GAAG,CACA;IACE,aAAa,EAAE,CAAC,OAAO,EAAE,MAAM,IAAI,KAAK,SAAS,CAAA;IACjD,gFAAgF;IAChF,UAAU,EAAE,MAAM,CAAA;CACnB,GACD;IAAE,aAAa,CAAC,EAAE,SAAS,CAAC;IAAC,UAAU,CAAC,EAAE,SAAS,CAAA;CAAE,CACxD,+BAuGA;AAED,gFAAgF;AAChF,wBAAgB,eAAe,CAAC,EAC9B,aAAa,EACb,OAAO,EACP,cAAc,EACd,cAAiC,EACjC,UAAU,GACX,EAAE;IACD,aAAa,EAAE,CAAC,OAAO,EAAE,MAAM,IAAI,KAAK,SAAS,CAAA;IACjD,qFAAqF;IACrF,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,cAAc,CAAC,EAAE,MAAM,IAAI,CAAA;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,aAwCA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { TFunction } from 'i18next';
|
|
2
|
+
import type { FailureDetail, PendingFailure } from './depositOutcome';
|
|
3
|
+
/**
|
|
4
|
+
* What closing on the current failure reports instead of `cancelled`, or
|
|
5
|
+
* nothing while no failure is showing.
|
|
6
|
+
*
|
|
7
|
+
* - A dismissed sheet was the buyer's choice, so leaving after it stays a
|
|
8
|
+
* cancellation.
|
|
9
|
+
* - A failed send with no surface to blame is ours, not a provider's.
|
|
10
|
+
* - A card or billing problem is a decline: another provider would refuse the
|
|
11
|
+
* same card.
|
|
12
|
+
*/
|
|
13
|
+
export declare function closeFailure({ surfaceCode, isRetryable, detail, t, }: {
|
|
14
|
+
surfaceCode: string | undefined;
|
|
15
|
+
isRetryable: boolean;
|
|
16
|
+
detail: FailureDetail;
|
|
17
|
+
t: TFunction;
|
|
18
|
+
}): PendingFailure | undefined;
|
|
19
|
+
//# sourceMappingURL=closeFailure.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"closeFailure.d.ts","sourceRoot":"","sources":["../../../src/fiat/closeFailure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAGxC,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAKrE;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAAC,EAC3B,WAAW,EACX,WAAW,EACX,MAAM,EACN,CAAC,GACF,EAAE;IACD,WAAW,EAAE,MAAM,GAAG,SAAS,CAAA;IAC/B,WAAW,EAAE,OAAO,CAAA;IACpB,MAAM,EAAE,aAAa,CAAA;IACrB,CAAC,EAAE,SAAS,CAAA;CACb,GAAG,cAAc,GAAG,SAAS,CAwB7B"}
|
|
@@ -23,9 +23,8 @@ export interface EntryHeights {
|
|
|
23
23
|
* The sections flattened into rows a single list draws, every country in its
|
|
24
24
|
* place under its letter.
|
|
25
25
|
*
|
|
26
|
-
* A search
|
|
27
|
-
*
|
|
28
|
-
* (Belarus), C (Cyprus), R (Russia).
|
|
26
|
+
* A search drops the letters (2531:8469): its answers draw as one card, best
|
|
27
|
+
* answer first, so "ar" reads Argentina, Armenia, Aruba.
|
|
29
28
|
*/
|
|
30
29
|
export declare function listEntries(sections: readonly ListSection[], query: string): ListEntry[];
|
|
31
30
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"countryListEntries.d.ts","sourceRoot":"","sources":["../../../src/fiat/countryListEntries.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAE9D,iDAAiD;AACjD,MAAM,MAAM,SAAS,GACjB;IACE,IAAI,EAAE,QAAQ,CAAA;IACd,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,OAAO,CAAA;CACb,GACD;IACE,IAAI,EAAE,KAAK,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,QAAQ,CAAA;IACd,oEAAoE;IACpE,KAAK,EAAE,OAAO,CAAA;IACd,IAAI,EAAE,OAAO,CAAA;CACd,CAAA;AAEL,6EAA6E;AAC7E,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,EAAE,MAAM,CAAA;IACd,4CAA4C;IAC5C,GAAG,EAAE,MAAM,CAAA;CACZ;AAED
|
|
1
|
+
{"version":3,"file":"countryListEntries.d.ts","sourceRoot":"","sources":["../../../src/fiat/countryListEntries.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAE9D,iDAAiD;AACjD,MAAM,MAAM,SAAS,GACjB;IACE,IAAI,EAAE,QAAQ,CAAA;IACd,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,OAAO,CAAA;CACb,GACD;IACE,IAAI,EAAE,KAAK,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,QAAQ,CAAA;IACd,oEAAoE;IACpE,KAAK,EAAE,OAAO,CAAA;IACd,IAAI,EAAE,OAAO,CAAA;CACd,CAAA;AAEL,6EAA6E;AAC7E,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,EAAE,MAAM,CAAA;IACd,4CAA4C;IAC5C,GAAG,EAAE,MAAM,CAAA;CACZ;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CACzB,QAAQ,EAAE,SAAS,WAAW,EAAE,EAChC,KAAK,EAAE,MAAM,GACZ,SAAS,EAAE,CAcb;AAqED;;;;GAIG;AACH,wBAAgB,SAAS,CACvB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC/B,KAAK,EAAE,SAAS,MAAM,EAAE,EACxB,GAAG,EAAE,MAAM,GACV,MAAM,GAAG,SAAS,CAUpB;AAED,0DAA0D;AAC1D,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;CACf;AAED,mEAAmE;AACnE,MAAM,WAAW,QAAQ;IACvB;kFAC8E;IAC9E,KAAK,EAAE,SAAS,EAAE,CAAA;IAClB,gEAAgE;IAChE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC/B,wDAAwD;IACxD,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;CACf;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE,SAAS,SAAS,EAAE,EAC7B,OAAO,EAAE,YAAY,GACpB,QAAQ,CAkBV"}
|
|
@@ -11,7 +11,24 @@ export interface DepositOutcomeReporter {
|
|
|
11
11
|
* settle path calls this; see `onDepositSubmitted` for what it promises.
|
|
12
12
|
*/
|
|
13
13
|
submitted: (orderId: string, method: DepositMethod['type']) => void;
|
|
14
|
-
failed: (error: FunkitFlowError) => void;
|
|
14
|
+
failed: (error: FunkitFlowError, detail?: FailureDetail) => void;
|
|
15
|
+
/**
|
|
16
|
+
* The failure the buyer is looking at, or none. Closing on it reports it
|
|
17
|
+
* instead of `cancelled`: a provider that refused is not a buyer who left.
|
|
18
|
+
*/
|
|
19
|
+
noteFailure: (failure: PendingFailure | undefined) => void;
|
|
20
|
+
}
|
|
21
|
+
/** Where a failure came from, for the log; never shown to the host. */
|
|
22
|
+
export interface FailureDetail {
|
|
23
|
+
reasonCode?: string;
|
|
24
|
+
screen?: string;
|
|
25
|
+
provider?: string;
|
|
26
|
+
/** Set when the buyer closed on it rather than the flow ending there. */
|
|
27
|
+
reportedOn?: 'close';
|
|
28
|
+
}
|
|
29
|
+
export interface PendingFailure {
|
|
30
|
+
error: FunkitFlowError;
|
|
31
|
+
detail: FailureDetail;
|
|
15
32
|
}
|
|
16
33
|
type StepState = NonNullable<FiatFlow['stepResponse']>['state'];
|
|
17
34
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"depositOutcome.d.ts","sourceRoot":"","sources":["../../../src/fiat/depositOutcome.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAGxC,OAAO,KAAK,EACV,oBAAoB,EACpB,aAAa,EACd,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAAE,KAAK,eAAe,EAAa,MAAM,mBAAmB,CAAA;AAGnE,uFAAuF;AACvF,MAAM,WAAW,sBAAsB;IACrC,6EAA6E;IAC7E,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB;;;OAGG;IACH,SAAS,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC,KAAK,IAAI,CAAA;IACnE,MAAM,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,IAAI,CAAA;
|
|
1
|
+
{"version":3,"file":"depositOutcome.d.ts","sourceRoot":"","sources":["../../../src/fiat/depositOutcome.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAGxC,OAAO,KAAK,EACV,oBAAoB,EACpB,aAAa,EACd,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAAE,KAAK,eAAe,EAAa,MAAM,mBAAmB,CAAA;AAGnE,uFAAuF;AACvF,MAAM,WAAW,sBAAsB;IACrC,6EAA6E;IAC7E,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB;;;OAGG;IACH,SAAS,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC,KAAK,IAAI,CAAA;IACnE,MAAM,EAAE,CAAC,KAAK,EAAE,eAAe,EAAE,MAAM,CAAC,EAAE,aAAa,KAAK,IAAI,CAAA;IAChE;;;OAGG;IACH,WAAW,EAAE,CAAC,OAAO,EAAE,cAAc,GAAG,SAAS,KAAK,IAAI,CAAA;CAC3D;AAED,uEAAuE;AACvE,MAAM,WAAW,aAAa;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,yEAAyE;IACzE,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,eAAe,CAAA;IACtB,MAAM,EAAE,aAAa,CAAA;CACtB;AAED,KAAK,SAAS,GAAG,WAAW,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;AAS/D;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,EACxC,SAAS,EACT,UAAU,EACV,aAAa,EACb,CAAC,GACF,EAAE;IACD,SAAS,EAAE,IAAI,CAAC,oBAAoB,EAAE,oBAAoB,GAAG,gBAAgB,CAAC,CAAA;IAC9E,UAAU,EAAE,MAAM,CAAA;IAClB,aAAa,EAAE,MAAM,CAAA;IACrB,CAAC,EAAE,SAAS,CAAA;CACb,GAAG,sBAAsB,CA0EzB;AAED,+EAA+E;AAC/E,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,QAAQ,EACd,QAAQ,EAAE,sBAAsB,EAChC,CAAC,EAAE,SAAS,GACX,IAAI,CAgBN;AAED,2FAA2F;AAC3F,wBAAgB,aAAa,CAC3B,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,EAClC,KAAK,EAAE,SAAS,GAAG,SAAS,EAC5B,CAAC,EAAE,SAAS,GACX,eAAe,GAAG,SAAS,CAW7B"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { FormField } from '@funkit/connect-core';
|
|
2
|
+
import type { TFunction } from 'i18next';
|
|
3
|
+
/**
|
|
4
|
+
* The client's own name for a field, where the design words it differently
|
|
5
|
+
* from the server. `undefined` leaves the server's `labelFallback`, which is
|
|
6
|
+
* English only.
|
|
7
|
+
*
|
|
8
|
+
* - `country` is the address's country: a Canadian address asks for a
|
|
9
|
+
* province, and only a US one for a ZIP code.
|
|
10
|
+
*/
|
|
11
|
+
export declare function fieldLabel(fieldId: string, t: TFunction, country: string | undefined): string | undefined;
|
|
12
|
+
/** The field as the page draws it, under the client's name where it has one. */
|
|
13
|
+
export declare function labelledField(field: FormField, t: TFunction, country: string | undefined): FormField;
|
|
14
|
+
//# sourceMappingURL=fieldLabel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fieldLabel.d.ts","sourceRoot":"","sources":["../../../src/fiat/fieldLabel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC;;;;;;;GAOG;AACH,wBAAgB,UAAU,CACxB,OAAO,EAAE,MAAM,EACf,CAAC,EAAE,SAAS,EACZ,OAAO,EAAE,MAAM,GAAG,SAAS,GAC1B,MAAM,GAAG,SAAS,CAqBpB;AAED,gFAAgF;AAChF,wBAAgB,aAAa,CAC3B,KAAK,EAAE,SAAS,EAChB,CAAC,EAAE,SAAS,EACZ,OAAO,EAAE,MAAM,GAAG,SAAS,GAC1B,SAAS,CAGX"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { FormField } from '@funkit/connect-core';
|
|
2
|
-
import type
|
|
2
|
+
import { type TextInputProps } from 'react-native';
|
|
3
3
|
/**
|
|
4
4
|
* The pages the US form is drawn as, in the order the design steps them.
|
|
5
5
|
*
|
|
@@ -36,9 +36,22 @@ export declare function pickedDateField(page: KycSectionPage): FormField | undef
|
|
|
36
36
|
* chain. A choice is not.
|
|
37
37
|
*/
|
|
38
38
|
export declare function isFocusableField(field: FormField): boolean;
|
|
39
|
-
export
|
|
39
|
+
export interface ReturnHop {
|
|
40
|
+
label: 'next' | 'done';
|
|
41
|
+
/** Absent where the return key tries the page instead. */
|
|
42
|
+
to?: FormField;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Where a typed field's return key goes: the next required typed field.
|
|
46
|
+
*
|
|
47
|
+
* - An optional line is stepped over (2334:7164) but still hands on when the
|
|
48
|
+
* user taps into it.
|
|
49
|
+
*/
|
|
50
|
+
export declare function returnHop(section: KycSection, typedFields: readonly FormField[], fieldId: string): ReturnHop | undefined;
|
|
51
|
+
/** `country` is the address's, whose postal codes decide the postal code's keyboard. */
|
|
52
|
+
export declare function fieldKeyboardType(field: FormField, country?: string): TextInputProps['keyboardType'] | undefined;
|
|
40
53
|
/** Whether the field raises a pad rather than letters, and so has no return key. */
|
|
41
|
-
export declare function isDigitsField(field: FormField): boolean;
|
|
54
|
+
export declare function isDigitsField(field: FormField, country?: string): boolean;
|
|
42
55
|
/** Whether the field is drawn at a fixed width rather than growing to fill. */
|
|
43
56
|
export declare function isFixedWidthField(field: FormField): boolean;
|
|
44
57
|
/**
|
|
@@ -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,KAAK,
|
|
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;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,kEACiC,CAAA;AACjE,eAAO,MAAM,yBAAyB,kFAC2C,CAAA;AACjF,eAAO,MAAM,sBAAsB,6EACyC,CAAA;AAwG5E;;;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,wFAAwF;AACxF,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,SAAS,EAChB,OAAO,CAAC,EAAE,MAAM,GACf,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,CAS5C;AAED,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"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { TFunction } from 'i18next';
|
|
2
|
+
import type { KycSection } from './formLayout';
|
|
2
3
|
import type { KycFieldIssue } from './kycFormState';
|
|
3
4
|
/**
|
|
4
5
|
* What the validation error under the fields says.
|
|
@@ -7,7 +8,8 @@ import type { KycFieldIssue } from './kycFormState';
|
|
|
7
8
|
* the page's own refusals have to reach the message — a colour arriving with
|
|
8
9
|
* no reason leaves the user re-reading a page that looks correct.
|
|
9
10
|
*
|
|
10
|
-
* The round's own error outranks them: the server saw the whole form.
|
|
11
|
+
* The round's own error outranks them: the server saw the whole form. The
|
|
12
|
+
* address page words every refusal as one line (2334:7471).
|
|
11
13
|
*/
|
|
12
|
-
export declare function formValidationError(errorMessage: string | undefined, issues: readonly KycFieldIssue[], t: TFunction): string | undefined;
|
|
14
|
+
export declare function formValidationError(errorMessage: string | undefined, issues: readonly KycFieldIssue[], t: TFunction, section?: KycSection): string | undefined;
|
|
13
15
|
//# sourceMappingURL=formValidationError.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formValidationError.d.ts","sourceRoot":"","sources":["../../../src/fiat/formValidationError.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAEnD
|
|
1
|
+
{"version":3,"file":"formValidationError.d.ts","sourceRoot":"","sources":["../../../src/fiat/formValidationError.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAC9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAEnD;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CACjC,YAAY,EAAE,MAAM,GAAG,SAAS,EAChC,MAAM,EAAE,SAAS,aAAa,EAAE,EAChC,CAAC,EAAE,SAAS,EACZ,OAAO,CAAC,EAAE,UAAU,GACnB,MAAM,GAAG,SAAS,CAWpB"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { FiatProvider, FiatStepResponse } from '@funkit/connect-core';
|
|
2
|
+
/** An existing flow can no longer advance with this provider. */
|
|
3
|
+
export declare function rejectedKycProvider(state: FiatStepResponse['state'] | undefined, provider: FiatProvider | undefined, triedProviders: readonly FiatProvider[]): FiatProvider | undefined;
|
|
4
|
+
/** A KYC refusal with no viable failover, or the same provider refusing again. */
|
|
5
|
+
export declare function kycFailoverExhausted(error: unknown, triedProviders: readonly FiatProvider[], state?: FiatStepResponse['state'], provider?: FiatProvider): boolean;
|
|
6
|
+
//# sourceMappingURL=kycFailover.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kycFailover.d.ts","sourceRoot":"","sources":["../../../src/fiat/kycFailover.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAG1E,iEAAiE;AACjE,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,gBAAgB,CAAC,OAAO,CAAC,GAAG,SAAS,EAC5C,QAAQ,EAAE,YAAY,GAAG,SAAS,EAClC,cAAc,EAAE,SAAS,YAAY,EAAE,GACtC,YAAY,GAAG,SAAS,CAa1B;AAED,kFAAkF;AAClF,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,OAAO,EACd,cAAc,EAAE,SAAS,YAAY,EAAE,EACvC,KAAK,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,EACjC,QAAQ,CAAC,EAAE,YAAY,GACtB,OAAO,CAeT"}
|
|
@@ -35,6 +35,18 @@ export declare function blankCountryFields(fields: readonly FormField[], values:
|
|
|
35
35
|
* a reason to re-send it, not a reason to make the buyer retype it.
|
|
36
36
|
*/
|
|
37
37
|
export declare function carriedBlankFields(fields: readonly FormField[], values: FormValues, carried: FormValues): FormField[];
|
|
38
|
+
/**
|
|
39
|
+
* The fields an earlier round of this session already answered, which this
|
|
40
|
+
* round sends again without asking — the provider still needs them, but the
|
|
41
|
+
* buyer does not need to see them twice (Stripe's name and country, typed at
|
|
42
|
+
* account creation and wanted again by `attachKycInfo`).
|
|
43
|
+
*
|
|
44
|
+
* None on a round that carries an error: that round is a correction, and
|
|
45
|
+
* hiding a refused value would send it back unseen, forever. None either when
|
|
46
|
+
* every field is answered, since a form with nothing on it cannot be sent.
|
|
47
|
+
* After a relaunch nothing is carried, so every field is asked as before.
|
|
48
|
+
*/
|
|
49
|
+
export declare function answeredFields(fields: readonly FormField[], carried: FormValues | undefined, errorMessage: string | undefined): FormField[];
|
|
38
50
|
/** Every rail this form feeds requires an adult (design 2114:8361). */
|
|
39
51
|
export declare const MINIMUM_AGE_YEARS = 18;
|
|
40
52
|
/**
|