@funkit/connect-rn 8.1.0 → 8.3.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 +167 -0
- package/README.md +29 -0
- package/dist/chunk-BC4RXFI7.js +319 -0
- package/dist/chunk-BC4RXFI7.js.map +7 -0
- package/dist/{chunk-4YNYOJJK.js → chunk-KDRCHYXB.js} +377 -154
- package/dist/chunk-KDRCHYXB.js.map +7 -0
- package/dist/{chunk-75U7A2Q5.js → chunk-Z6IQFV5E.js} +3 -3
- package/dist/{chunk-75U7A2Q5.js.map → chunk-Z6IQFV5E.js.map} +2 -2
- package/dist/{chunk-D64EJ57D.js → chunk-ZIT24GW5.js} +1 -1
- package/dist/chunk-ZIT24GW5.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 +10582 -6262
- 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/BlurBand.d.ts +14 -0
- package/dist/src/components/BlurBand.d.ts.map +1 -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 +16 -0
- package/dist/src/components/GlassSurface.d.ts.map +1 -0
- package/dist/src/components/PillButton.d.ts +20 -2
- package/dist/src/components/PillButton.d.ts.map +1 -1
- package/dist/src/components/ScrollingDots.d.ts +24 -0
- package/dist/src/components/ScrollingDots.d.ts.map +1 -0
- 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 +9 -1
- package/dist/src/fiat/FiatBackButton.d.ts.map +1 -1
- package/dist/src/fiat/FiatBirthDateField.d.ts.map +1 -1
- package/dist/src/fiat/FiatChoiceField.d.ts +9 -1
- 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 +22 -7
- package/dist/src/fiat/FiatCountrySheet.d.ts.map +1 -1
- package/dist/src/fiat/FiatDocumentCaptureStep.d.ts +8 -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 +8 -2
- 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 +2 -0
- package/dist/src/fiat/FiatKycFieldControl.d.ts.map +1 -1
- package/dist/src/fiat/FiatKycIntroScreen.d.ts +16 -3
- package/dist/src/fiat/FiatKycIntroScreen.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/FiatKycPosition.d.ts +5 -3
- package/dist/src/fiat/FiatKycPosition.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 +5 -2
- package/dist/src/fiat/FiatTermsNotice.d.ts.map +1 -1
- package/dist/src/fiat/SurfaceSlot.d.ts +5 -2
- package/dist/src/fiat/SurfaceSlot.d.ts.map +1 -1
- package/dist/src/fiat/countryListEntries.d.ts +8 -13
- package/dist/src/fiat/countryListEntries.d.ts.map +1 -1
- package/dist/src/fiat/countrySections.d.ts +12 -6
- package/dist/src/fiat/countrySections.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/kycFieldValidators.d.ts +5 -1
- package/dist/src/fiat/kycFieldValidators.d.ts.map +1 -1
- 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 +7 -2
- package/dist/src/fiat/kycFormTheme.d.ts.map +1 -1
- package/dist/src/fiat/kycUnavailableAlert.d.ts.map +1 -1
- package/dist/src/fiat/kycWalk.d.ts +22 -0
- package/dist/src/fiat/kycWalk.d.ts.map +1 -0
- package/dist/src/fiat/legalLinks.d.ts +4 -3
- package/dist/src/fiat/legalLinks.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/HostedControlFrame.d.ts.map +1 -1
- package/dist/src/fiat/providers/adapter.d.ts +48 -6
- package/dist/src/fiat/providers/adapter.d.ts.map +1 -1
- package/dist/src/fiat/providers/applePayButtonMetrics.d.ts +28 -0
- package/dist/src/fiat/providers/applePayButtonMetrics.d.ts.map +1 -0
- package/dist/src/fiat/providers/applePayPaintGate.d.ts +24 -0
- package/dist/src/fiat/providers/applePayPaintGate.d.ts.map +1 -0
- 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 +6 -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 +10 -1
- package/dist/src/fiat/providers/moonpay.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpayApplePayPainted.d.ts +10 -0
- package/dist/src/fiat/providers/moonpayApplePayPainted.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpayApplePayStyle.d.ts +12 -0
- package/dist/src/fiat/providers/moonpayApplePayStyle.d.ts.map +1 -0
- 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 +39 -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/quoteNoRoute.d.ts +11 -0
- package/dist/src/fiat/quoteNoRoute.d.ts.map +1 -0
- package/dist/src/fiat/renderCaptureSurface.d.ts +6 -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 +21 -0
- package/dist/src/fiat/subdivisions.d.ts.map +1 -0
- 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/Drawer.d.ts +27 -9
- package/dist/src/flow/Drawer.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 +5 -1
- package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
- package/dist/src/flow/FlowPage.d.ts +23 -0
- package/dist/src/flow/FlowPage.d.ts.map +1 -0
- package/dist/src/flow/FlowSheet.d.ts +18 -3
- 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 +18 -4
- 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 +13 -3
- 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/pageMotion.d.ts +37 -0
- package/dist/src/flow/pageMotion.d.ts.map +1 -0
- package/dist/src/flow/pageTurn.d.ts +28 -0
- package/dist/src/flow/pageTurn.d.ts.map +1 -0
- package/dist/src/flow/sheetPressHold.d.ts +24 -0
- package/dist/src/flow/sheetPressHold.d.ts.map +1 -0
- package/dist/src/flow/sheetSizing.d.ts +6 -5
- package/dist/src/flow/sheetSizing.d.ts.map +1 -1
- 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/withdrawalFlowConfig.d.ts +18 -5
- package/dist/src/flow/withdrawalFlowConfig.d.ts.map +1 -1
- package/dist/src/hooks/useNestedSheetHeight.d.ts +10 -3
- package/dist/src/hooks/useNestedSheetHeight.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/hooks/useSheetFade.d.ts.map +1 -1
- package/dist/src/icons/assetLogos.d.ts.map +1 -1
- package/dist/src/native/glassEffect.d.ts +1 -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 +14 -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/WithdrawAddressScreen.d.ts +4 -1
- package/dist/src/screens/WithdrawAddressScreen.d.ts.map +1 -1
- package/dist/src/screens/WithdrawAmountScreen.d.ts +16 -8
- package/dist/src/screens/WithdrawAmountScreen.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/buildFunkitTheme.d.ts +1 -0
- package/dist/src/theme/buildFunkitTheme.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/restyle.d.ts +33 -0
- package/dist/src/theme/restyle.d.ts.map +1 -1
- package/dist/src/theme/toRestyleTheme.d.ts +3 -0
- package/dist/src/theme/toRestyleTheme.d.ts.map +1 -1
- package/dist/src/theme/tokens.d.ts +10 -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/useFiatExchangeRates.d.ts +5 -4
- package/dist/src/transfer/hooks/useFiatExchangeRates.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 -15
- package/dist/src/utils/motion.d.ts.map +1 -1
- package/dist/src/withdrawal/maxWithdrawAmount.d.ts +43 -0
- package/dist/src/withdrawal/maxWithdrawAmount.d.ts.map +1 -0
- package/dist/src/withdrawal/useCryptoWithdrawalForm.d.ts +9 -3
- package/dist/src/withdrawal/useCryptoWithdrawalForm.d.ts.map +1 -1
- package/dist/src/withdrawal/useCryptoWithdrawalValidation.d.ts +6 -1
- package/dist/src/withdrawal/useCryptoWithdrawalValidation.d.ts.map +1 -1
- package/dist/src/withdrawal/useSourceTokenUsdPrice.d.ts +2 -1
- package/dist/src/withdrawal/useSourceTokenUsdPrice.d.ts.map +1 -1
- package/dist/src/withdrawal/useWithdrawalAmountInput.d.ts +8 -5
- package/dist/src/withdrawal/useWithdrawalAmountInput.d.ts.map +1 -1
- package/dist/src/withdrawal/useWithdrawalFiatPrice.d.ts +6 -0
- package/dist/src/withdrawal/useWithdrawalFiatPrice.d.ts.map +1 -0
- package/dist/src/withdrawal/useWithdrawalMaximum.d.ts +19 -0
- package/dist/src/withdrawal/useWithdrawalMaximum.d.ts.map +1 -0
- package/dist/src/withdrawal/validation.d.ts +6 -2
- package/dist/src/withdrawal/validation.d.ts.map +1 -1
- package/package.json +13 -6
- package/dist/chunk-4YNYOJJK.js.map +0 -7
- package/dist/chunk-D64EJ57D.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/kycFormPosition.d.ts +0 -28
- package/dist/src/fiat/kycFormPosition.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/src/flow/StepPage.d.ts +0 -16
- package/dist/src/flow/StepPage.d.ts.map +0 -1
|
@@ -1,3 +1,12 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { PreparedPayment } from '@funkit/connect-core';
|
|
2
|
+
import { type ReactNode } from 'react';
|
|
3
|
+
import type { ApplePayBackendStage, SurfaceAdapter } from './adapter';
|
|
4
|
+
export declare function moonPayBackendStage(endpoint: string): ApplePayBackendStage | undefined;
|
|
5
|
+
export type MoonPayPreparedPayment = PreparedPayment;
|
|
6
|
+
/** Complete quote-owned payment artifact retained across auth verification. */
|
|
7
|
+
export declare function moonPayPreparedPayment(prepared: PreparedPayment | undefined): MoonPayPreparedPayment | undefined;
|
|
2
8
|
export declare const moonpay: SurfaceAdapter;
|
|
9
|
+
export declare function MoonPaySurfaceHost({ children }: {
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
}): import("react").JSX.Element;
|
|
3
12
|
//# sourceMappingURL=moonpay.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"moonpay.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/moonpay.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"moonpay.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/moonpay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAW,MAAM,sBAAsB,CAAA;AAkBpE,OAAO,EACL,KAAK,SAAS,EAQf,MAAM,OAAO,CAAA;AASd,OAAO,KAAK,EACV,oBAAoB,EACpB,cAAc,EAEf,MAAM,WAAW,CAAA;AAgBlB,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,MAAM,GACf,oBAAoB,GAAG,SAAS,CAWlC;AAiBD,MAAM,MAAM,sBAAsB,GAAG,eAAe,CAAA;AAiDpD,+EAA+E;AAC/E,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,eAAe,GAAG,SAAS,GACpC,sBAAsB,GAAG,SAAS,CAyCpC;AASD,eAAO,MAAM,OAAO,EAAE,cAuDrB,CAAA;AAwID,wBAAgB,kBAAkB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,+BAMvE"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface PaintSignalTransport {
|
|
2
|
+
handleWebViewMessage(data: string): void;
|
|
3
|
+
}
|
|
4
|
+
/** Consumes the page's paint report so MoonPay's router never sees it. */
|
|
5
|
+
export declare function wrapPaintSignal(proto: PaintSignalTransport): void;
|
|
6
|
+
/** A MoonPay release without the transport export must not break the flow. */
|
|
7
|
+
export declare function installApplePayPaintSignal(): void;
|
|
8
|
+
export declare function onApplePayPainted(token: string, listener: () => void): () => void;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=moonpayApplePayPainted.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"moonpayApplePayPainted.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/moonpayApplePayPainted.ts"],"names":[],"mappings":"AAIA,UAAU,oBAAoB;IAC5B,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;CACzC;AAUD,0EAA0E;AAC1E,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,GAAG,IAAI,CAejE;AAED,8EAA8E;AAC9E,wBAAgB,0BAA0B,IAAI,IAAI,CAQjD;AAED,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,MAAM,IAAI,GACnB,MAAM,IAAI,CAOZ"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type ApplePayButtonMetrics } from './applePayButtonMetrics';
|
|
2
|
+
/**
|
|
3
|
+
* Styles MoonPay's hosted Apple Pay button to the slot it stands in.
|
|
4
|
+
*
|
|
5
|
+
* MoonPay renders Apple's `apple-pay-button` element with a `<style>` block of
|
|
6
|
+
* its own (44px tall, 16px radius, 8px 16px padding) placed after anything in
|
|
7
|
+
* `<head>`, so a stylesheet alone loses the cascade. The size is set inline on
|
|
8
|
+
* the element with `!important` instead, and re-applied whenever the frame
|
|
9
|
+
* re-renders it.
|
|
10
|
+
*/
|
|
11
|
+
export declare function applePayButtonStyle(metrics: ApplePayButtonMetrics): string;
|
|
12
|
+
//# sourceMappingURL=moonpayApplePayStyle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"moonpayApplePayStyle.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/moonpayApplePayStyle.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,qBAAqB,EAI3B,MAAM,yBAAyB,CAAA;AAEhC;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,qBAAqB,GAAG,MAAM,CAwC1E"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { FunkitTheme } from '../../theme/toRestyleTheme';
|
|
2
|
+
export interface MoonPayAuthPalette {
|
|
3
|
+
page: string;
|
|
4
|
+
field: string;
|
|
5
|
+
primary: string;
|
|
6
|
+
secondary: string;
|
|
7
|
+
fieldRadius: number;
|
|
8
|
+
}
|
|
9
|
+
/** The colours `FiatOtpScreen` draws with, so MoonPay's code page reads as ours. */
|
|
10
|
+
export declare function moonPayAuthPalette(theme: FunkitTheme): MoonPayAuthPalette;
|
|
11
|
+
/**
|
|
12
|
+
* - Keyed on MoonPay's semantic Tailwind classes: a class they rename stops
|
|
13
|
+
* matching and that element keeps MoonPay's own colour, rather than breaking.
|
|
14
|
+
* - `!important` because MoonPay's stylesheet loads after anything injected.
|
|
15
|
+
*/
|
|
16
|
+
export declare function moonPayAuthFrameRules(palette: MoonPayAuthPalette): string;
|
|
17
|
+
/** Installs {@link moonPayAuthFrameRules} and puts them back if the frame rebuilds its `<head>`. */
|
|
18
|
+
export declare function moonPayAuthFrameStyle(palette: MoonPayAuthPalette): string;
|
|
19
|
+
//# sourceMappingURL=moonpayAuthStyle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"moonpayAuthStyle.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/moonpayAuthStyle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAG7D,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,oFAAoF;AACpF,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,WAAW,GAAG,kBAAkB,CAQzE;AAID;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,kBAAkB,GAAG,MAAM,CAYzE;AAED,oGAAoG;AACpG,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,kBAAkB,GAAG,MAAM,CAoBzE"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { FeeQuote } from '../stepDetails';
|
|
2
|
+
type FeeAmount = {
|
|
3
|
+
amount: string;
|
|
4
|
+
asset: {
|
|
5
|
+
code: string;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
/** The SDK's authenticated quote is the price used by the payment frame. */
|
|
9
|
+
export declare function moonPayFeeQuote(quote: {
|
|
10
|
+
source: {
|
|
11
|
+
amount: string;
|
|
12
|
+
asset: {
|
|
13
|
+
code: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
feeBehavior: 'inclusive' | 'exclusive';
|
|
17
|
+
fees: {
|
|
18
|
+
network?: FeeAmount;
|
|
19
|
+
moonpay?: FeeAmount;
|
|
20
|
+
ecosystem?: FeeAmount;
|
|
21
|
+
defi?: FeeAmount;
|
|
22
|
+
partner?: FeeAmount;
|
|
23
|
+
};
|
|
24
|
+
}): FeeQuote | undefined;
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=moonpayFeeQuote.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"moonpayFeeQuote.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/moonpayFeeQuote.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAE9C,KAAK,SAAS,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,CAAA;AAE5D,4EAA4E;AAC5E,wBAAgB,eAAe,CAAC,KAAK,EAAE;IACrC,MAAM,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE;YAAE,IAAI,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,CAAA;IACnD,WAAW,EAAE,WAAW,GAAG,WAAW,CAAA;IACtC,IAAI,EAAE;QACJ,OAAO,CAAC,EAAE,SAAS,CAAA;QACnB,OAAO,CAAC,EAAE,SAAS,CAAA;QACnB,SAAS,CAAC,EAAE,SAAS,CAAA;QACrB,IAAI,CAAC,EAAE,SAAS,CAAA;QAChB,OAAO,CAAC,EAAE,SAAS,CAAA;KACpB,CAAA;CACF,GAAG,QAAQ,GAAG,SAAS,CAiCvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stripeAuthorize.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/stripeAuthorize.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"stripeAuthorize.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/stripeAuthorize.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,WAAW,CAAA;AAE/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAOxD,yEAAyE;AACzE,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,kBAAkB,EAC1B,OAAO,EAAE,MAAM,GACd,cAAc,CAkBhB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stripeCheckout.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/stripeCheckout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAMnD,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,WAAW,CAAA;AAK/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"stripeCheckout.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/stripeCheckout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAMnD,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,WAAW,CAAA;AAK/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAGxD,UAAU,oBAAoB;IAC5B,MAAM,EAAE,kBAAkB,CAAA;IAC1B,SAAS,EAAE,MAAM,CAAA;IACjB,gBAAgB,EAAE,MAAM,CAAA;IACxB,eAAe,EAAE,MAAM,CAAA;CACxB;AAED,wEAAwE;AACxE,MAAM,MAAM,2BAA2B,GAAG,CAAC,MAAM,EAAE;IACjD,gBAAgB,EAAE,MAAM,CAAA;IACxB,eAAe,EAAE,MAAM,CAAA;CACxB,KAAK,OAAO,CAAC,MAAM,CAAC,CAAA;AAErB,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,OAAO,GACf,oBAAoB,GAAG,SAAS,CAqBlC;AAED;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,kBAAkB,EAC1B,mBAAmB,EAAE,2BAA2B,GAC/C,cAAc,CAkBhB"}
|
|
@@ -18,6 +18,8 @@ export interface StripeKycReconciliation {
|
|
|
18
18
|
* may make to obtain one.
|
|
19
19
|
*/
|
|
20
20
|
export declare function matchStripeKycParams(surface: Surface): StripeKycReconciliation | undefined;
|
|
21
|
+
/** Stripe's L2 round: an ID check alone, with no L1 info sheet ahead of it. */
|
|
22
|
+
export declare function isStripeIdentityRound(surface: Surface): boolean;
|
|
21
23
|
/**
|
|
22
24
|
* `response` is required rather than optional: the pay sheet's adapter takes it
|
|
23
25
|
* optionally and this one was written without it at all, so every call on this
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stripeKyc.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/stripeKyc.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"stripeKyc.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/stripeKyc.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAInD,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,WAAW,CAAA;AAK/D,OAAO,KAAK,EAAE,kBAAkB,EAAqB,MAAM,gBAAgB,CAAA;AAG3E;;;;;GAKG;AACH,QAAA,MAAM,gBAAgB,4EAIZ,CAAA;AACV,KAAK,aAAa,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAA;AAEtD,MAAM,WAAW,uBAAuB;IACtC,YAAY,EAAE,SAAS,aAAa,EAAE,CAAA;CACvC;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,OAAO,GACf,uBAAuB,GAAG,SAAS,CAkBrC;AAED,+EAA+E;AAC/E,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAM/D;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,kBAAkB,EAC1B,QAAQ,EAAE,MAAM,GAAG,SAAS,GAC3B,cAAc,CAsBhB;AAUD;;;;;GAKG;AACH;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB,yBAAyB,CAAA;AAE1D;;;;;;;;;GASG;AACH,eAAO,MAAM,yBAAyB,8BAA8B,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { KycIntro } from './kycIntro';
|
|
2
|
+
/**
|
|
3
|
+
* Stripe's own tiers, as the backend names them on the round (`kycTier`).
|
|
4
|
+
* Account creation opens on its fields. The rest of `l0` (the address) is the
|
|
5
|
+
* buyer's first identity check, so it asks for the agreement. `l1` is the
|
|
6
|
+
* quick text round after it, introduced as a step up; it still asks, so a
|
|
7
|
+
* buyer who lands on it first agrees too.
|
|
8
|
+
*/
|
|
9
|
+
export declare function stripeKycIntro(round: unknown, tier: unknown): KycIntro;
|
|
10
|
+
//# sourceMappingURL=stripeKycIntro.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stripeKycIntro.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/stripeKycIntro.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAE1C;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,GAAG,QAAQ,CAKtE"}
|
|
@@ -17,8 +17,8 @@ export declare function matchStripePayParams(surface: Surface): StripePayParams
|
|
|
17
17
|
* Not a failure: nothing is wrong, nothing needs reporting to support, and the
|
|
18
18
|
* only right answer is the quote screen they came from. Carried as a code
|
|
19
19
|
* rather than a separate channel because `onFailed` is the seam the surface
|
|
20
|
-
* already owns
|
|
21
|
-
*
|
|
20
|
+
* already owns. The screen raises no alert for this code and re-quotes, so the
|
|
21
|
+
* Apple Pay button comes back rather than the sheet.
|
|
22
22
|
*/
|
|
23
23
|
export declare const STRIPE_PAYMENT_CANCELLED = "collect_apple_pay:cancelled";
|
|
24
24
|
/** Stripe's real native sheet, deliberately restricted to Apple Pay. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stripePayment.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/stripePayment.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"stripePayment.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/stripePayment.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAKnD,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,WAAW,CAAA;AAC/D,OAAO,KAAK,EACV,kBAAkB,EAEnB,MAAM,gBAAgB,CAAA;AAQvB,UAAU,eAAe;IACvB,MAAM,EAAE,6BAA6B,CAAA;IACrC,aAAa,EAAE,MAAM,CAAA;IACrB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,mBAAmB,EAAE,MAAM,CAAA;IAC3B,YAAY,EAAE,MAAM,CAAA;IACpB,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,OAAO,GACf,eAAe,GAAG,SAAS,CA4B7B;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,wBAAwB,gCAAgC,CAAA;AAErE,wEAAwE;AACxE,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,kBAAkB,EAC1B,QAAQ,CAAC,EAAE,MAAM,GAChB,cAAc,CAwBhB;AA6DD,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM;;EAEhD;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAiC7D;AAeD,yFAAyF;AACzF,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,OAAO,GACb,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAgCzB;AAED,wBAAsB,eAAe,CACnC,MAAM,EAAE,kBAAkB,EAC1B,MAAM,EAAE,eAAe,EACvB,oBAAoB,CAAC,EAAE,MAAM,GAC5B,OAAO,CAAC,MAAM,CAAC,CA2GjB"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { FiatFlow, FormValues } from '@funkit/connect-core';
|
|
2
|
+
import type { StripeOnrampClient, StripeOnrampError } from './stripeOnramp';
|
|
3
|
+
/**
|
|
4
|
+
* The Stripe call an identity round makes before its answers go to the backend, or `undefined`
|
|
5
|
+
* when the round has none. Stripe's account is minted by its own SDK, so the account-creation
|
|
6
|
+
* round registers the Link user and the identity round attaches its fields. Every other round,
|
|
7
|
+
* and every other provider, is delivered by the backend.
|
|
8
|
+
*/
|
|
9
|
+
export declare function stripeRoundPush({ stripeOnramp, stepResponse, kycRound, values, verifiedEmail, }: {
|
|
10
|
+
stripeOnramp: StripeOnrampClient | undefined;
|
|
11
|
+
stepResponse: FiatFlow['stepResponse'];
|
|
12
|
+
kycRound: unknown;
|
|
13
|
+
values: FormValues;
|
|
14
|
+
verifiedEmail: unknown;
|
|
15
|
+
}): {
|
|
16
|
+
call: 'registerLinkUser' | 'attachKycInfo';
|
|
17
|
+
run: () => Promise<{
|
|
18
|
+
error?: StripeOnrampError;
|
|
19
|
+
}>;
|
|
20
|
+
} | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Which form a Stripe push belongs to, so a form that already pushed is not pushed again, or
|
|
23
|
+
* `undefined` for an unnamed round (an unset key must never match and block the first push).
|
|
24
|
+
*
|
|
25
|
+
* TEMPORARY — replace with ENG-6377, which deletes `formId`. Keyed on the round name plus the form
|
|
26
|
+
* id because the round name alone is not enough: Stripe's name-and-address form and the
|
|
27
|
+
* date-of-birth and SSN form after it are both `IDENTITY`, and keyed on the name the second push
|
|
28
|
+
* was skipped (ENG-6370). A form the backend re-asks keeps its id, so it still skips the repeat
|
|
29
|
+
* push, which Stripe would refuse.
|
|
30
|
+
*/
|
|
31
|
+
export declare function temporaryStripePushKey(kycRound: unknown, formId: unknown): string | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* Stripe refusing a push because it has already taken this buyer's identity: the values are there
|
|
34
|
+
* already, so the round is delivered, not failed. Measured when a backend re-asked a submitted `l1`
|
|
35
|
+
* (ENG-6429) — reading it as a failure left the buyer on an error with no way on, when sending the
|
|
36
|
+
* answers to the backend is what lets it hold them in review.
|
|
37
|
+
*/
|
|
38
|
+
export declare function stripeAlreadyHoldsIdentity(call: 'registerLinkUser' | 'attachKycInfo', error: StripeOnrampError): boolean;
|
|
39
|
+
//# sourceMappingURL=stripeRoundPush.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stripeRoundPush.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/stripeRoundPush.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAIhE,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAM3E;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,EAC9B,YAAY,EACZ,YAAY,EACZ,QAAQ,EACR,MAAM,EACN,aAAa,GACd,EAAE;IACD,YAAY,EAAE,kBAAkB,GAAG,SAAS,CAAA;IAC5C,YAAY,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAA;IACtC,QAAQ,EAAE,OAAO,CAAA;IACjB,MAAM,EAAE,UAAU,CAAA;IAClB,aAAa,EAAE,OAAO,CAAA;CACvB,GACG;IACE,IAAI,EAAE,kBAAkB,GAAG,eAAe,CAAA;IAC1C,GAAG,EAAE,MAAM,OAAO,CAAC;QAAE,KAAK,CAAC,EAAE,iBAAiB,CAAA;KAAE,CAAC,CAAA;CAClD,GACD,SAAS,CAsCZ;AAED;;;;;;;;;GASG;AACH,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,OAAO,EACjB,MAAM,EAAE,OAAO,GACd,MAAM,GAAG,SAAS,CAKpB;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,CACxC,IAAI,EAAE,kBAAkB,GAAG,eAAe,EAC1C,KAAK,EAAE,iBAAiB,GACvB,OAAO,CAKT"}
|
|
@@ -6,6 +6,11 @@ import type { StripeOnrampClient } from './stripeOnramp';
|
|
|
6
6
|
* client can wake its Link session without a round trip of its own. Absent means no silent path.
|
|
7
7
|
*/
|
|
8
8
|
export declare function stripeSeamlessClientSecret(response: object | undefined, now?: number): string | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* When the response's silent sign-in credential lapses (epoch ms), `undefined` without one.
|
|
11
|
+
* An unreadable `expiresAt` counts as never, the same reading `stripeSeamlessClientSecret` gives it.
|
|
12
|
+
*/
|
|
13
|
+
export declare function stripeSeamlessExpiresAtMs(response: object | undefined): number | undefined;
|
|
9
14
|
/**
|
|
10
15
|
* Redeems the credential against the device's SDK. Never throws.
|
|
11
16
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stripeSeamlessSignIn.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/stripeSeamlessSignIn.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAExD;;;;;GAKG;AACH,wBAAgB,0BAA0B,CACxC,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,GAAG,GAAE,MAAmB,GACvB,MAAM,GAAG,SAAS,CA0BpB;AAED;;;;;;;GAOG;AACH,wBAAsB,0BAA0B,CAC9C,MAAM,EAAE,kBAAkB,EAC1B,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,OAAO,CAAC,CAelB"}
|
|
1
|
+
{"version":3,"file":"stripeSeamlessSignIn.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/stripeSeamlessSignIn.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAExD;;;;;GAKG;AACH,wBAAgB,0BAA0B,CACxC,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,GAAG,GAAE,MAAmB,GACvB,MAAM,GAAG,SAAS,CA0BpB;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,CACvC,QAAQ,EAAE,MAAM,GAAG,SAAS,GAC3B,MAAM,GAAG,SAAS,CAgBpB;AAED;;;;;;;GAOG;AACH,wBAAsB,0BAA0B,CAC9C,MAAM,EAAE,kBAAkB,EAC1B,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,OAAO,CAAC,CAelB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stripeSessionAuth.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/stripeSessionAuth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,gBAAgB,EAChB,OAAO,EACP,aAAa,EACd,MAAM,sBAAsB,CAAA;AAE7B,OAAO,KAAK,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"stripeSessionAuth.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/stripeSessionAuth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,gBAAgB,EAChB,OAAO,EACP,aAAa,EACd,MAAM,sBAAsB,CAAA;AAE7B,OAAO,KAAK,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAG9E,MAAM,WAAW,sBAAsB;IACrC,UAAU,EAAE,gBAAgB,CAAA;IAC5B,aAAa,EAAE,MAAM,CAAA;CACtB;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,gBAAgB,GAAG,SAAS,EAClC,IAAI,EAAE,SAAS,gBAAgB,EAAE,GAChC,sBAAsB,GAAG,SAAS,CA0BpC;AAED,MAAM,MAAM,iBAAiB,GACzB;IAAE,MAAM,EAAE,WAAW,CAAC;IAAC,gBAAgB,EAAE,MAAM,CAAA;CAAE,GACjD;IACE,MAAM,EAAE,yBAAyB,CAAA;IACjC,yBAAyB,EAAE,MAAM,CAAA;CAClC,CAAA;AAEL,qFAAqF;AACrF,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,OAAO,GACf,iBAAiB,GAAG,SAAS,CAqB/B;AAED;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,GACnC,eAAe,OAAO,KACrB,aAED,CAAA;AAEF;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,qBAAqB,GAC5B,aAAa,GAAG,SAAS,CAa3B;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAEvE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sumsubKyc.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/sumsubKyc.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"sumsubKyc.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/sumsubKyc.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,WAAW,CAAA;AAQ/D,yEAAyE;AACzE,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;AAe1D;;;;;;GAMG;AACH;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,UAAU,GAAG,cAAc,CAQvE;AAED,4DAA4D;AAC5D,eAAO,MAAM,SAAS,EAAE,cAEvB,CAAA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { Surface } from '@funkit/connect-core';
|
|
2
|
+
/**
|
|
3
|
+
* Typed reads of one claimed surface's `params`. Each getter returns
|
|
4
|
+
* `undefined` for a field of the wrong shape, so an adapter declines the
|
|
5
|
+
* surface instead of throwing at render.
|
|
6
|
+
*/
|
|
7
|
+
export interface SurfaceParams {
|
|
8
|
+
/** The field as sent, for a shape no getter covers. */
|
|
9
|
+
value: (key: string) => unknown;
|
|
10
|
+
string: (key: string) => string | undefined;
|
|
11
|
+
nonEmptyString: (key: string) => string | undefined;
|
|
12
|
+
record: (key: string) => Record<string, unknown> | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* A URL the app loads or opens, returned exactly as sent.
|
|
15
|
+
*
|
|
16
|
+
* - Anything but `https://` is refused: these load in WebViews with Apple Pay
|
|
17
|
+
* on, or go to the OS, where another scheme opens an arbitrary deep link.
|
|
18
|
+
*/
|
|
19
|
+
httpsUrl: (key: string) => string | undefined;
|
|
20
|
+
}
|
|
21
|
+
export declare function isRecord(value: unknown): value is Record<string, unknown>;
|
|
22
|
+
/**
|
|
23
|
+
* The params of a surface this adapter claims, or `undefined` when `kind` and
|
|
24
|
+
* `provider` do not match.
|
|
25
|
+
*
|
|
26
|
+
* - The contract requires `params`, but no response is validated before it
|
|
27
|
+
* reaches an adapter, so an absent one must fail the match rather than throw.
|
|
28
|
+
*/
|
|
29
|
+
export declare function readSurfaceParams(surface: Surface, kind: Surface['kind'], provider: Surface['provider']): SurfaceParams | undefined;
|
|
30
|
+
//# sourceMappingURL=surfaceParams.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"surfaceParams.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/surfaceParams.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAInD;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B,uDAAuD;IACvD,KAAK,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAA;IAC/B,MAAM,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAA;IAC3C,cAAc,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAA;IACnD,MAAM,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAA;IAC5D;;;;;OAKG;IACH,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAA;CAC9C;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAEzE;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,EACrB,QAAQ,EAAE,OAAO,CAAC,UAAU,CAAC,GAC5B,aAAa,GAAG,SAAS,CAyC3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transakApplePay.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/transakApplePay.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"transakApplePay.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/transakApplePay.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,WAAW,CAAA;AAwC/D,mEAAmE;AACnE,eAAO,MAAM,eAAe,EAAE,cAO7B,CAAA"}
|
|
@@ -21,15 +21,5 @@ export interface StripeOnrampConfig {
|
|
|
21
21
|
/** Deep-link scheme Stripe returns to after a redirect (3DS, KYC). */
|
|
22
22
|
urlScheme?: string;
|
|
23
23
|
}
|
|
24
|
-
/**
|
|
25
|
-
* Binds Stripe's native SDK to the {@link StripeOnrampClient} the fiat surfaces
|
|
26
|
-
* call. Takes the SDK as an argument because it is an optional peer, loaded by
|
|
27
|
-
* `StripeOnrampBridge` only after a host configured Stripe.
|
|
28
|
-
*
|
|
29
|
-
* `initStripe` is idempotent per config but not free, so it runs once per
|
|
30
|
-
* distinct config and every call awaits that same promise — the SDK rejects
|
|
31
|
-
* calls made before it resolves. A failed init clears the cache so the next
|
|
32
|
-
* call retries rather than latching the failure forever.
|
|
33
|
-
*/
|
|
34
24
|
export declare function useStripeOnrampClient({ initStripe, isPlatformPaySupported, useOnramp }: StripeSdk, config: StripeOnrampConfig): StripeOnrampClient;
|
|
35
25
|
//# sourceMappingURL=useStripeOnrampClient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useStripeOnrampClient.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/useStripeOnrampClient.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useStripeOnrampClient.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/useStripeOnrampClient.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AACxD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAE5C;;;;;;GAMG;AACH,MAAM,WAAW,kBAAkB;IACjC,sEAAsE;IACtE,cAAc,EAAE,MAAM,CAAA;IACtB,wEAAwE;IACxE,mBAAmB,EAAE,MAAM,CAAA;IAC3B;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,sEAAsE;IACtE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAcD,wBAAgB,qBAAqB,CACnC,EAAE,UAAU,EAAE,sBAAsB,EAAE,SAAS,EAAE,EAAE,SAAS,EAC5D,MAAM,EAAE,kBAAkB,GACzB,kBAAkB,CA8JpB"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { type SubmitTransition } from '@funkit/connect-core';
|
|
2
|
+
import type { StripeOnrampClient } from './stripeOnramp';
|
|
3
|
+
/** Stripe's Link sign-in round, as the flow offers it. */
|
|
4
|
+
export interface StripeSessionAuthRound {
|
|
5
|
+
stripe: StripeOnrampClient;
|
|
6
|
+
verifiedEmail: string;
|
|
7
|
+
transition: SubmitTransition;
|
|
8
|
+
/**
|
|
9
|
+
* Whether arriving here is the buyer's own doing. False once they have dismissed Stripe's sheet:
|
|
10
|
+
* the round comes back offering `start` again, and starting on arrival reopens the sheet they
|
|
11
|
+
* just closed.
|
|
12
|
+
*/
|
|
13
|
+
autoStart: boolean;
|
|
14
|
+
onSubmit: (transition: SubmitTransition) => Promise<void>;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* The Link round's `/fiat/session` post, held by the flow rather than by a page.
|
|
18
|
+
*
|
|
19
|
+
* The round asks the buyer for nothing, so while it runs it draws nothing either: the quote stays
|
|
20
|
+
* up with its action pending, and Stripe's sheet opens over it. As a page of its own it drew a copy
|
|
21
|
+
* of the quote, so the flow turned to that copy and straight back as the sheet opened. Only a
|
|
22
|
+
* declined or failed round has a screen, `StripeSessionAuthScreen`.
|
|
23
|
+
*/
|
|
24
|
+
export declare function useStripeSessionAuth(): {
|
|
25
|
+
isSubmitting: boolean;
|
|
26
|
+
errorMessage: string | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Whether the round is running, or about to on arrival. The first paint
|
|
29
|
+
* already counts, so it cannot flash the declined screen before the start.
|
|
30
|
+
*/
|
|
31
|
+
isPending: (round: StripeSessionAuthRound) => boolean;
|
|
32
|
+
begin: (round: StripeSessionAuthRound) => void;
|
|
33
|
+
continueAuth: (round: StripeSessionAuthRound) => undefined;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Starts the round from where the flow draws it, so it starts only when the
|
|
37
|
+
* flow has actually reached the round, not whenever its state says SESSION_AUTH.
|
|
38
|
+
*/
|
|
39
|
+
export declare function StripeSessionAuthStarter({ onStart }: {
|
|
40
|
+
onStart: () => void;
|
|
41
|
+
}): null;
|
|
42
|
+
//# sourceMappingURL=useStripeSessionAuth.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useStripeSessionAuth.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/useStripeSessionAuth.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,gBAAgB,EAAkB,MAAM,sBAAsB,CAAA;AAM5E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAExD,0DAA0D;AAC1D,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,kBAAkB,CAAA;IAC1B,aAAa,EAAE,MAAM,CAAA;IACrB,UAAU,EAAE,gBAAgB,CAAA;IAC5B;;;;OAIG;IACH,SAAS,EAAE,OAAO,CAAA;IAClB,QAAQ,EAAE,CAAC,UAAU,EAAE,gBAAgB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;CAC1D;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB;;;IA6HhC;;;OAGG;uBACgB,sBAAsB;mBAjBjC,sBAAsB;0BAqBR,sBAAsB;EAE/C;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,QAM5E"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { FiatQuoteNoRoute } from '@funkit/connect-core';
|
|
2
|
+
import type { TFunction } from 'i18next';
|
|
3
|
+
/**
|
|
4
|
+
* What the entry's disabled button says when no provider will price the
|
|
5
|
+
* quote and asking again cannot change that.
|
|
6
|
+
*
|
|
7
|
+
* - Undefined for a retryable refusal, which keeps "Try again".
|
|
8
|
+
* - The amount stays editable under it, and a new amount is a new quote.
|
|
9
|
+
*/
|
|
10
|
+
export declare function noRouteCtaLabel(noRoute: FiatQuoteNoRoute | undefined, paymentMethod: string, t: TFunction): string | undefined;
|
|
11
|
+
//# sourceMappingURL=quoteNoRoute.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quoteNoRoute.d.ts","sourceRoot":"","sources":["../../../src/fiat/quoteNoRoute.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAC5D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAIxC;;;;;;GAMG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,gBAAgB,GAAG,SAAS,EACrC,aAAa,EAAE,MAAM,EACrB,CAAC,EAAE,SAAS,GACX,MAAM,GAAG,SAAS,CAcpB"}
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import type { Surface } from '@funkit/connect-core';
|
|
2
2
|
import type { ReactNode } from 'react';
|
|
3
3
|
import type { SurfaceAdapter, SurfaceContext, SurfaceControlModel } from './providers/adapter';
|
|
4
|
+
/** Every registered adapter's host, around the screen that renders surfaces. */
|
|
5
|
+
export declare function SurfaceHosts({ children }: {
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
}): ReactNode;
|
|
4
8
|
/**
|
|
5
9
|
* How this surface is operated, or `undefined` when nothing can draw it.
|
|
6
10
|
* Asked before rendering, because the two models want different chrome.
|
|
7
11
|
*/
|
|
8
12
|
export declare function captureControl(surface: Surface, adapters?: readonly SurfaceAdapter[]): SurfaceControlModel | undefined;
|
|
13
|
+
/** See {@link ClaimedSurface.reopenableUntil}. */
|
|
14
|
+
export declare function captureReopenableUntil(surface: Surface, adapters?: readonly SurfaceAdapter[]): number | undefined;
|
|
9
15
|
/**
|
|
10
16
|
* `adapters` are tried before the registry, for a screen that can build one
|
|
11
17
|
* the registry cannot — the identity SDK needs the quote its capture belongs
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderCaptureSurface.d.ts","sourceRoot":"","sources":["../../../src/fiat/renderCaptureSurface.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,OAAO,KAAK,EAEV,cAAc,EACd,cAAc,EACd,mBAAmB,
|
|
1
|
+
{"version":3,"file":"renderCaptureSurface.d.ts","sourceRoot":"","sources":["../../../src/fiat/renderCaptureSurface.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,OAAO,KAAK,EAEV,cAAc,EACd,cAAc,EACd,mBAAmB,EAEpB,MAAM,qBAAqB,CAAA;AAsB5B,gFAAgF;AAChF,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,aAKjE;AAmBD;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE,OAAO,EAChB,QAAQ,GAAE,SAAS,cAAc,EAAO,GACvC,mBAAmB,GAAG,SAAS,CAEjC;AAED,kDAAkD;AAClD,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,OAAO,EAChB,QAAQ,GAAE,SAAS,cAAc,EAAO,GACvC,MAAM,GAAG,SAAS,CAEpB;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,OAAO,EACP,QAAQ,EACR,GAAG,OAAO,EACX,EAAE,cAAc,GAAG;IAClB,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,CAAC,EAAE,SAAS,cAAc,EAAE,CAAA;CACrC,GAAG,SAAS,CAEZ"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { TFunction } from 'i18next';
|
|
2
|
-
import type { KycSection } from './formLayout';
|
|
2
|
+
import type { KycSection, KycSectionPage } from './formLayout';
|
|
3
3
|
/**
|
|
4
4
|
* The line under the title on one page. The title itself never changes, so
|
|
5
5
|
* this is what says which details the page is asking for.
|
|
@@ -8,4 +8,11 @@ import type { KycSection } from './formLayout';
|
|
|
8
8
|
* 1631:7883.
|
|
9
9
|
*/
|
|
10
10
|
export declare function sectionDetail(section: KycSection, t: TFunction): string;
|
|
11
|
+
/**
|
|
12
|
+
* The page's line. A country page may hold only the tax residence, which is
|
|
13
|
+
* not the address's country, so it keeps the section's generic line.
|
|
14
|
+
*/
|
|
15
|
+
export declare function pageDetail(page: KycSectionPage, t: TFunction): string;
|
|
16
|
+
/** Why a country is asked for, set under the page's fields. */
|
|
17
|
+
export declare function pageNote(page: KycSectionPage, t: TFunction): string | undefined;
|
|
11
18
|
//# sourceMappingURL=sectionDetail.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sectionDetail.d.ts","sourceRoot":"","sources":["../../../src/fiat/sectionDetail.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"sectionDetail.d.ts","sourceRoot":"","sources":["../../../src/fiat/sectionDetail.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAE9D;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,UAAU,EAAE,CAAC,EAAE,SAAS,GAAG,MAAM,CA+BvE;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,cAAc,EAAE,CAAC,EAAE,SAAS,GAAG,MAAM,CAIrE;AAED,+DAA+D;AAC/D,wBAAgB,QAAQ,CACtB,IAAI,EAAE,cAAc,EACpB,CAAC,EAAE,SAAS,GACX,MAAM,GAAG,SAAS,CAQpB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { KycSection } from './formLayout';
|
|
2
|
+
import type { KycFieldIssue } from './kycFormState';
|
|
3
|
+
export interface PageFieldState {
|
|
4
|
+
id: string;
|
|
5
|
+
issue: KycFieldIssue | undefined;
|
|
6
|
+
isBlurred: boolean;
|
|
7
|
+
value: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* The refusals a page wears, by field id, in page order.
|
|
11
|
+
*
|
|
12
|
+
* - Every page shows its refusals once it has been tried.
|
|
13
|
+
* - The address page also judges a field as it is left with a value, and
|
|
14
|
+
* highlights only the first refused field (2334:7471's annotation).
|
|
15
|
+
*/
|
|
16
|
+
export declare function shownFieldIssues(section: KycSection, attempted: boolean, fields: readonly PageFieldState[]): Map<string, KycFieldIssue>;
|
|
17
|
+
//# sourceMappingURL=shownFieldIssues.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shownFieldIssues.d.ts","sourceRoot":"","sources":["../../../src/fiat/shownFieldIssues.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAC9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAEnD,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,aAAa,GAAG,SAAS,CAAA;IAChC,SAAS,EAAE,OAAO,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;CACd;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,UAAU,EACnB,SAAS,EAAE,OAAO,EAClB,MAAM,EAAE,SAAS,cAAc,EAAE,GAChC,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CAsB5B"}
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
import type { FailureReason, FiatFlow, Quote } from '@funkit/connect-core';
|
|
1
|
+
import type { FailureReason, FiatFlow, FiatProvider, Quote } from '@funkit/connect-core';
|
|
2
2
|
import type { TFunction } from 'i18next';
|
|
3
3
|
import type { FeeDetailsRow } from '../screens/FeeDetailsScreen';
|
|
4
|
+
/** Fields needed by the amount screen's fee disclosure, including provider-authenticated quotes. */
|
|
5
|
+
export type FeeQuote = Pick<Quote, 'totalFee'> & {
|
|
6
|
+
fiat: {
|
|
7
|
+
amount: string;
|
|
8
|
+
currency: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
4
11
|
/**
|
|
5
12
|
* The live quote's fee, worded exactly as the static step words its computed
|
|
6
13
|
* one. The screen fades the whole line while a re-quote is due, so there is
|
|
@@ -8,7 +15,7 @@ import type { FeeDetailsRow } from '../screens/FeeDetailsScreen';
|
|
|
8
15
|
* No fee renders until a quote priced this amount; the empty state keeps the
|
|
9
16
|
* quick amounts up instead.
|
|
10
17
|
*/
|
|
11
|
-
export declare function quoteFee(quote:
|
|
18
|
+
export declare function quoteFee(quote: FeeQuote | undefined, amount: string, t: TFunction): string | undefined;
|
|
12
19
|
/** The state's own recovery, when its step response carries one. */
|
|
13
20
|
export declare function recoveryCta(flow: FiatFlow, t: TFunction): {
|
|
14
21
|
label: string;
|
|
@@ -26,29 +33,21 @@ export declare function reviewDetail(flow: FiatFlow): string | undefined;
|
|
|
26
33
|
* labels: those name the rail ("Coinbase fee"), which the drawer must not,
|
|
27
34
|
* and only the total keeps the three rows adding up.
|
|
28
35
|
*/
|
|
29
|
-
export declare function quoteFeeRows(quote:
|
|
36
|
+
export declare function quoteFeeRows(quote: FeeQuote | undefined, t: TFunction, provider?: FiatProvider): FeeDetailsRow[];
|
|
37
|
+
/** Whether the quote charges nothing — the one case the drawer carries the mark. */
|
|
38
|
+
export declare function quoteFeesFree(quote: FeeQuote | undefined): boolean;
|
|
30
39
|
/** The rail disclosure, priced from the quote rather than host configuration. */
|
|
31
|
-
export declare function quoteFeeSummary(quote:
|
|
40
|
+
export declare function quoteFeeSummary(quote: FeeQuote | undefined, method: string | undefined, t: TFunction, provider?: FiatProvider): string | undefined;
|
|
32
41
|
/**
|
|
33
42
|
* A step's own error, worded for the banner it renders as. The contract sends
|
|
34
43
|
* no message — `code` is a copy key — so the category is what the copy keys off.
|
|
35
44
|
*/
|
|
36
45
|
export declare function roundErrorMessage(error: FailureReason | undefined, t: TFunction, provider?: string): string | undefined;
|
|
37
|
-
/**
|
|
38
|
-
* A cooling-off hold's comeback date, worded as the ISO day it names.
|
|
39
|
-
*
|
|
40
|
-
* The day rather than the instant, and unformatted: connect-rn takes no Intl
|
|
41
|
-
* dependency, and a locale-guessed date is worse than an unambiguous one.
|
|
42
|
-
*/
|
|
43
|
-
export declare function onHoldDetail(flow: FiatFlow, t: TFunction): string;
|
|
44
|
-
/** Preserve an explicit cooling-off deadline alongside the R2 receipt. */
|
|
45
|
-
export declare function kycHoldRetryDetail(flow: FiatFlow, t: TFunction): string | undefined;
|
|
46
46
|
/**
|
|
47
47
|
* What a rejection leaves the user. Only the terminal variant carries a
|
|
48
48
|
* recovery, and support is the only one it names.
|
|
49
49
|
*/
|
|
50
50
|
export declare function rejectedDetail(flow: FiatFlow, t: TFunction): string | undefined;
|
|
51
|
-
export declare function blockedRetryDetail(flow: FiatFlow): string | undefined;
|
|
52
51
|
/** The marker a KYC round carries when its quote lapsed while the form was open. */
|
|
53
52
|
export declare function isExpiredQuoteMarker(error: FailureReason): boolean;
|
|
54
53
|
/** The recipient as the buyer knows it; the wire id is upper case. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stepDetails.d.ts","sourceRoot":"","sources":["../../../src/fiat/stepDetails.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"stepDetails.d.ts","sourceRoot":"","sources":["../../../src/fiat/stepDetails.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,QAAQ,EACR,YAAY,EACZ,KAAK,EACN,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAA;AAQhE,oGAAoG;AACpG,MAAM,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,EAAE,UAAU,CAAC,GAAG;IAC/C,IAAI,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAA;CAC3C,CAAA;AAED;;;;;;GAMG;AACH,wBAAgB,QAAQ,CACtB,KAAK,EAAE,QAAQ,GAAG,SAAS,EAC3B,MAAM,EAAE,MAAM,EACd,CAAC,EAAE,SAAS,GACX,MAAM,GAAG,SAAS,CAQpB;AAED,oEAAoE;AACpE,wBAAgB,WAAW,CACzB,IAAI,EAAE,QAAQ,EACd,CAAC,EAAE,SAAS,GACX;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,GAAG,SAAS,CA0BpD;AAED,qDAAqD;AACrD,wBAAgB,YAAY,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,GAAG,SAAS,CAM/D;AAED;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,QAAQ,GAAG,SAAS,EAC3B,CAAC,EAAE,SAAS,EACZ,QAAQ,CAAC,EAAE,YAAY,GACtB,aAAa,EAAE,CA4BjB;AAyBD,oFAAoF;AACpF,wBAAgB,aAAa,CAAC,KAAK,EAAE,QAAQ,GAAG,SAAS,GAAG,OAAO,CAElE;AAED,iFAAiF;AACjF,wBAAgB,eAAe,CAC7B,KAAK,EAAE,QAAQ,GAAG,SAAS,EAC3B,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,CAAC,EAAE,SAAS,EACZ,QAAQ,CAAC,EAAE,YAAY,GACtB,MAAM,GAAG,SAAS,CAwBpB;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,aAAa,GAAG,SAAS,EAChC,CAAC,EAAE,SAAS,EACZ,QAAQ,CAAC,EAAE,MAAM,GAChB,MAAM,GAAG,SAAS,CA+BpB;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,QAAQ,EACd,CAAC,EAAE,SAAS,GACX,MAAM,GAAG,SAAS,CAQpB;AAED,oFAAoF;AACpF,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,aAAa,GAAG,OAAO,CAElE;AAED,sEAAsE;AACtE,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAKjE"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A country's ISO 3166-2 subdivisions as choices, keyed by the code the
|
|
3
|
+
* providers take for a state (`CA` for California, not `US-CA`). `undefined`
|
|
4
|
+
* for a country the table has none for, which is left to type.
|
|
5
|
+
*/
|
|
6
|
+
export declare function subdivisionOptions(alpha2: string | undefined): {
|
|
7
|
+
id: string;
|
|
8
|
+
labelFallback: string;
|
|
9
|
+
}[] | undefined;
|
|
10
|
+
/** The states a region field picks from, when it is the residential one. */
|
|
11
|
+
export declare function regionOptions(fieldId: string, alpha2: string | undefined): {
|
|
12
|
+
id: string;
|
|
13
|
+
labelFallback: string;
|
|
14
|
+
}[] | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Whether a picked state survives a move of the residence country.
|
|
17
|
+
* - Kept only where the new country lists the same code; anywhere else the
|
|
18
|
+
* picker would draw it blank while the store still posted it.
|
|
19
|
+
*/
|
|
20
|
+
export declare function keepsRegion(region: string, alpha2: string | undefined): boolean;
|
|
21
|
+
//# sourceMappingURL=subdivisions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subdivisions.d.ts","sourceRoot":"","sources":["../../../src/fiat/subdivisions.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,MAAM,GAAG,SAAS,GACzB;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,CAAA;CAAE,EAAE,GAAG,SAAS,CAcrD;AAED,4EAA4E;AAC5E,wBAAgB,aAAa,CAC3B,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,GAAG,SAAS,GACzB;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,CAAA;CAAE,EAAE,GAAG,SAAS,CAIrD;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CACzB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,GAAG,SAAS,GACzB,OAAO,CAMT"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { SessionContactField } from './sessionContact';
|
|
2
|
+
/**
|
|
3
|
+
* Submits a number that arrived whole (a paste or AutoFill); a typed one
|
|
4
|
+
* waits for Continue.
|
|
5
|
+
*
|
|
6
|
+
* - Runs on the render after the insert, once the flow holds the new number:
|
|
7
|
+
* submitting from the edit itself would send the previous one.
|
|
8
|
+
* - A step that also asks for an address waits for it, so it keeps the tap.
|
|
9
|
+
*/
|
|
10
|
+
export declare function useContactAutoSubmit({ fields, insertedEdits, country, isComplete, rejected, isSubmitting, onSubmit, }: {
|
|
11
|
+
fields: readonly SessionContactField[];
|
|
12
|
+
/** Bumped on each whole-number insert, so each one is judged exactly once. */
|
|
13
|
+
insertedEdits: number;
|
|
14
|
+
country: string;
|
|
15
|
+
isComplete: boolean;
|
|
16
|
+
rejected: boolean;
|
|
17
|
+
isSubmitting: boolean;
|
|
18
|
+
onSubmit: () => void;
|
|
19
|
+
}): void;
|
|
20
|
+
//# sourceMappingURL=useContactAutoSubmit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useContactAutoSubmit.d.ts","sourceRoot":"","sources":["../../../src/fiat/useContactAutoSubmit.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;AAE3D;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,MAAM,EACN,aAAa,EACb,OAAO,EACP,UAAU,EACV,QAAQ,EACR,YAAY,EACZ,QAAQ,GACT,EAAE;IACD,MAAM,EAAE,SAAS,mBAAmB,EAAE,CAAA;IACtC,8EAA8E;IAC9E,aAAa,EAAE,MAAM,CAAA;IACrB,OAAO,EAAE,MAAM,CAAA;IACf,UAAU,EAAE,OAAO,CAAA;IACnB,QAAQ,EAAE,OAAO,CAAA;IACjB,YAAY,EAAE,OAAO,CAAA;IACrB,QAAQ,EAAE,MAAM,IAAI,CAAA;CACrB,QAYA"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { EntryCta, FiatProvider } from '@funkit/connect-core';
|
|
2
|
-
export declare function useFiatCheckoutPreparation({ provider, paymentMethod, entryCta, quoteRef, ready, prepare, }: {
|
|
2
|
+
export declare function useFiatCheckoutPreparation({ provider, paymentMethod, entryCta, quoteRef, quoteEntryOnly, ready, prepare, }: {
|
|
3
3
|
paymentMethod: string;
|
|
4
4
|
provider: FiatProvider | undefined;
|
|
5
5
|
entryCta: EntryCta;
|
|
6
6
|
quoteRef: string | undefined;
|
|
7
|
+
quoteEntryOnly?: boolean;
|
|
7
8
|
ready: boolean;
|
|
8
9
|
prepare: () => void;
|
|
9
10
|
}): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFiatCheckoutPreparation.d.ts","sourceRoot":"","sources":["../../../src/fiat/useFiatCheckoutPreparation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"useFiatCheckoutPreparation.d.ts","sourceRoot":"","sources":["../../../src/fiat/useFiatCheckoutPreparation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,YAAY,EAEb,MAAM,sBAAsB,CAAA;AAyD7B,wBAAgB,0BAA0B,CAAC,EACzC,QAAQ,EACR,aAAa,EACb,QAAQ,EACR,QAAQ,EACR,cAAc,EACd,KAAK,EACL,OAAO,GACR,EAAE;IACD,aAAa,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,YAAY,GAAG,SAAS,CAAA;IAClC,QAAQ,EAAE,QAAQ,CAAA;IAClB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,KAAK,EAAE,OAAO,CAAA;IACd,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB,GAAG,OAAO,CA6CV"}
|