@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
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { FiatFlow } from '@funkit/connect-core';
|
|
2
|
+
/**
|
|
3
|
+
* Counts document-capture rounds, for keying the capture page.
|
|
4
|
+
*
|
|
5
|
+
* - A capture page carries no id, so a re-issued round (Stripe's L2 retry)
|
|
6
|
+
* keeps the old page identity and the SDK sheet never reopens.
|
|
7
|
+
* - Only an answer to our own report counts: a poll repeating the state must
|
|
8
|
+
* not remount an SDK the buyer is still in.
|
|
9
|
+
*/
|
|
10
|
+
export declare function useKycCaptureRound(flow: FiatFlow): {
|
|
11
|
+
round: number;
|
|
12
|
+
reissued: boolean;
|
|
13
|
+
markReported: () => void;
|
|
14
|
+
retry: () => void;
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=useKycCaptureRound.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useKycCaptureRound.d.ts","sourceRoot":"","sources":["../../../src/fiat/useKycCaptureRound.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAKpD;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,QAAQ;;;;;EAkChD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useKycCompletion.d.ts","sourceRoot":"","sources":["../../../src/fiat/useKycCompletion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAIpD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAA;
|
|
1
|
+
{"version":3,"file":"useKycCompletion.d.ts","sourceRoot":"","sources":["../../../src/fiat/useKycCompletion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAIpD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAA;AAGvE,MAAM,MAAM,aAAa,GAAG,yBAAyB,CAAC,SAAS,CAAC,CAAA;AAOhE;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,QAAQ,GAAG,aAAa,GAAG,SAAS,CA4B1E;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,IAAI,OAAO,CAO9C"}
|
|
@@ -1,8 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* The code an edit leaves, and whether it landed whole — a paste or the
|
|
3
|
+
* keyboard's one-time-code fill — rather than a digit at a time.
|
|
4
|
+
*
|
|
5
|
+
* - A whole code pasted after digits already there replaces them: the field's
|
|
6
|
+
* caret sits at the end, so the paste arrives appended.
|
|
7
|
+
* - More digits than that is not the code, so it fills the boxes and waits.
|
|
8
|
+
*/
|
|
9
|
+
export declare function resolveCodeEdit(previous: string, next: string, length: number): {
|
|
10
|
+
code: string;
|
|
11
|
+
inserted: boolean;
|
|
12
|
+
};
|
|
13
|
+
/** Submits a code that arrived whole; a typed one waits for Continue. */
|
|
14
|
+
export declare function useOtpAutoSubmit({ code, length, inserted, isSubmitting, onSubmit, }: {
|
|
2
15
|
code: string;
|
|
3
16
|
length: number;
|
|
17
|
+
inserted: boolean;
|
|
4
18
|
isSubmitting: boolean;
|
|
5
|
-
hasError: boolean;
|
|
6
19
|
onSubmit: () => void;
|
|
7
20
|
}): void;
|
|
8
21
|
//# sourceMappingURL=useOtpAutoSubmit.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useOtpAutoSubmit.d.ts","sourceRoot":"","sources":["../../../src/fiat/useOtpAutoSubmit.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useOtpAutoSubmit.d.ts","sourceRoot":"","sources":["../../../src/fiat/useOtpAutoSubmit.ts"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,GACb;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,CAarC;AAUD,yEAAyE;AACzE,wBAAgB,gBAAgB,CAAC,EAC/B,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,YAAY,EACZ,QAAQ,GACT,EAAE;IACD,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,OAAO,CAAA;IACjB,YAAY,EAAE,OAAO,CAAA;IACrB,QAAQ,EAAE,MAAM,IAAI,CAAA;CACrB,QAgBA"}
|
|
@@ -3,11 +3,12 @@ import type { FiatOtpScreenProps } from './FiatOtpScreen';
|
|
|
3
3
|
type OtpProps = Omit<FiatOtpScreenProps, 'onClose'>;
|
|
4
4
|
interface Submission {
|
|
5
5
|
props: OtpProps;
|
|
6
|
-
code
|
|
6
|
+
/** The page the code was typed on, so the receipt is drawn on the same one. */
|
|
7
|
+
page: string;
|
|
7
8
|
}
|
|
8
9
|
/** Hold the verified code briefly without delaying the server's next transition. */
|
|
9
10
|
export declare function useOtpReceipt(flow: FiatFlow): {
|
|
10
|
-
bind: (props: OtpProps) => OtpProps;
|
|
11
|
+
bind: (page: string, props: OtpProps) => OtpProps;
|
|
11
12
|
receipt: Submission | undefined;
|
|
12
13
|
};
|
|
13
14
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useOtpReceipt.d.ts","sourceRoot":"","sources":["../../../src/fiat/useOtpReceipt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAGpD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAEzD,KAAK,QAAQ,GAAG,IAAI,CAAC,kBAAkB,EAAE,SAAS,CAAC,CAAA;AACnD,UAAU,UAAU;IAClB,KAAK,EAAE,QAAQ,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;CACb;AAED,oFAAoF;AACpF,wBAAgB,aAAa,CAAC,IAAI,EAAE,QAAQ;
|
|
1
|
+
{"version":3,"file":"useOtpReceipt.d.ts","sourceRoot":"","sources":["../../../src/fiat/useOtpReceipt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAGpD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAEzD,KAAK,QAAQ,GAAG,IAAI,CAAC,kBAAkB,EAAE,SAAS,CAAC,CAAA;AACnD,UAAU,UAAU;IAClB,KAAK,EAAE,QAAQ,CAAA;IACf,+EAA+E;IAC/E,IAAI,EAAE,MAAM,CAAA;CACb;AAED,oFAAoF;AACpF,wBAAgB,aAAa,CAAC,IAAI,EAAE,QAAQ;iBAqCtB,MAAM,SAAS,QAAQ,KAAG,QAAQ;;EAQvD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useReceiptTitles.d.ts","sourceRoot":"","sources":["../../../src/fiat/useReceiptTitles.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,wBAAgB,gBAAgB,IAAI,SAAS,MAAM,EAAE,CASpD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DepositAmountStep.d.ts","sourceRoot":"","sources":["../../../src/flow/DepositAmountStep.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EACV,wBAAwB,EACxB,oBAAoB,EACpB,oBAAoB,EACpB,aAAa,EACd,MAAM,qBAAqB,CAAA;AAY5B;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,MAAM,EACN,MAAM,EACN,SAAS,EACT,aAAa,EACb,UAAU,GACX,EAAE;IACD,MAAM,EAAE,wBAAwB,CAAA;IAChC,4EAA4E;IAC5E,MAAM,CAAC,EAAE,aAAa,CAAA;IACtB,SAAS,EAAE,oBAAoB,CAAA;IAC/B,iCAAiC;IACjC,aAAa,CAAC,EAAE,oBAAoB,CAAA;IACpC;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,+
|
|
1
|
+
{"version":3,"file":"DepositAmountStep.d.ts","sourceRoot":"","sources":["../../../src/flow/DepositAmountStep.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EACV,wBAAwB,EACxB,oBAAoB,EACpB,oBAAoB,EACpB,aAAa,EACd,MAAM,qBAAqB,CAAA;AAY5B;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,MAAM,EACN,MAAM,EACN,SAAS,EACT,aAAa,EACb,UAAU,GACX,EAAE;IACD,MAAM,EAAE,wBAAwB,CAAA;IAChC,4EAA4E;IAC5E,MAAM,CAAC,EAAE,aAAa,CAAA;IACtB,SAAS,EAAE,oBAAoB,CAAA;IAC/B,iCAAiC;IACjC,aAAa,CAAC,EAAE,oBAAoB,CAAA;IACpC;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,+BAiIA"}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import type { AvailableChain } from '../transfer/availableChains';
|
|
2
|
-
import { type DepositAsset, type DepositSourceToken } from '../transfer/depositAssets';
|
|
3
|
-
export declare function DepositAssetPicker({ assets, chains, selectedToken, loading, onSelect, onClose, }: {
|
|
2
|
+
import { type DepositAsset, type DepositSourceToken, type ResolvedDepositSelection } from '../transfer/depositAssets';
|
|
3
|
+
export declare function DepositAssetPicker({ assets, chains, selectedToken, loading, onSelect, onDraftChange, onClose, }: {
|
|
4
4
|
assets: DepositAsset[];
|
|
5
5
|
chains: AvailableChain[];
|
|
6
6
|
selectedToken?: DepositSourceToken;
|
|
7
7
|
loading: boolean;
|
|
8
8
|
onSelect: (token: DepositSourceToken, chain: AvailableChain) => void;
|
|
9
|
+
/** The pair Confirm would commit; undefined while incomplete. */
|
|
10
|
+
onDraftChange?: (draft: ResolvedDepositSelection | undefined) => void;
|
|
9
11
|
onClose: () => void;
|
|
10
12
|
}): import("react").JSX.Element;
|
|
11
13
|
//# sourceMappingURL=DepositAssetPicker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DepositAssetPicker.d.ts","sourceRoot":"","sources":["../../../src/flow/DepositAssetPicker.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA;AACjE,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,kBAAkB,
|
|
1
|
+
{"version":3,"file":"DepositAssetPicker.d.ts","sourceRoot":"","sources":["../../../src/flow/DepositAssetPicker.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA;AACjE,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAG9B,MAAM,2BAA2B,CAAA;AAElC,wBAAgB,kBAAkB,CAAC,EACjC,MAAM,EACN,MAAM,EACN,aAAa,EACb,OAAO,EACP,QAAQ,EACR,aAAa,EACb,OAAO,GACR,EAAE;IACD,MAAM,EAAE,YAAY,EAAE,CAAA;IACtB,MAAM,EAAE,cAAc,EAAE,CAAA;IACxB,aAAa,CAAC,EAAE,kBAAkB,CAAA;IAClC,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,EAAE,CAAC,KAAK,EAAE,kBAAkB,EAAE,KAAK,EAAE,cAAc,KAAK,IAAI,CAAA;IACpE,iEAAiE;IACjE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,wBAAwB,GAAG,SAAS,KAAK,IAAI,CAAA;IACrE,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB,+BAmDA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DepositFlowContent.d.ts","sourceRoot":"","sources":["../../../src/flow/DepositFlowContent.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,SAAS,
|
|
1
|
+
{"version":3,"file":"DepositFlowContent.d.ts","sourceRoot":"","sources":["../../../src/flow/DepositFlowContent.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,SAAS,EAMf,MAAM,OAAO,CAAA;AA4Dd,OAAO,KAAK,EAEV,qBAAqB,EACrB,oBAAoB,EACpB,iBAAiB,EAElB,MAAM,qBAAqB,CAAA;AAG5B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAG/D,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AA8E/D;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,EAC1B,UAAU,EACV,cAAc,EACd,MAAM,EACN,OAAO,EACP,GAAG,EACH,aAAa,EACb,gBAAgB,EAChB,SAAS,GACV,EAAE;IACD,UAAU,EAAE,MAAM,CAAA;IAClB,cAAc,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACjD,MAAM,EAAE,iBAAiB,CAAA;IACzB,OAAO,EAAE,UAAU,GAAG,SAAS,CAAA;IAC/B,GAAG,EAAE,OAAO,CAAA;IACZ,aAAa,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC,0EAA0E;IAC1E,gBAAgB,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAA;IACnD,SAAS,EAAE,oBAAoB,CAAA;CAChC,GAAG,SAAS,CAsbZ"}
|
|
@@ -10,8 +10,8 @@ export interface DepositReceivedToastProps {
|
|
|
10
10
|
* - Owns no timer and no positioning: whatever mounts it decides both.
|
|
11
11
|
* - Outlives the sheet — the flow closes on a cleared charge, and this is what
|
|
12
12
|
* says the money arrived.
|
|
13
|
-
* -
|
|
14
|
-
*
|
|
13
|
+
* - Draws its own blur + glass rather than the sheet's material: that glass
|
|
14
|
+
* follows the screen's corners and tints black, turning the card into a capsule.
|
|
15
15
|
*/
|
|
16
16
|
export declare function DepositReceivedToast({ title, detail, }: DepositReceivedToastProps): import("react").JSX.Element;
|
|
17
17
|
//# sourceMappingURL=DepositReceivedToast.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DepositReceivedToast.d.ts","sourceRoot":"","sources":["../../../src/flow/DepositReceivedToast.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DepositReceivedToast.d.ts","sourceRoot":"","sources":["../../../src/flow/DepositReceivedToast.tsx"],"names":[],"mappings":"AA+BA,MAAM,WAAW,yBAAyB;IACxC,8DAA8D;IAC9D,KAAK,EAAE,MAAM,CAAA;IACb,gDAAgD;IAChD,MAAM,EAAE,MAAM,CAAA;CACf;AAED;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,KAAK,EACL,MAAM,GACP,EAAE,yBAAyB,+BAoD3B"}
|
|
@@ -3,22 +3,40 @@ import type { NestedSheet } from '../hooks/useNestedSheet';
|
|
|
3
3
|
export interface DrawerProps<TScreen extends string> {
|
|
4
4
|
sheet: NestedSheet<TScreen>;
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
6
|
+
* Stand at the full drawer height rather than sizing to the content: the
|
|
7
|
+
* window below the status bar, or, opened from another drawer, that
|
|
8
|
+
* drawer's height less `NESTED_DRAWER_INSET`. A drawer whose content scrolls
|
|
9
|
+
* has to take a fixed detent, because a gorhom scrollable reports only its
|
|
10
|
+
* own height (see `sheetSizing`).
|
|
9
11
|
*/
|
|
10
12
|
fullHeight?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* A plain panel in place of the glass: pure white or pure black, so nothing
|
|
15
|
+
* of the step behind it reads through. What a drawer holding a whole answer
|
|
16
|
+
* takes; the glass is for a drawer read alongside the step it covers.
|
|
17
|
+
*/
|
|
18
|
+
solid?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* A bar laid over the content's head in place of the grabber. It is the
|
|
21
|
+
* drawer's handle: a pull anywhere on it moves the drawer however far the
|
|
22
|
+
* list under it is scrolled, and its own controls still take their taps.
|
|
23
|
+
*/
|
|
24
|
+
header?: ReactNode;
|
|
11
25
|
children: ReactNode;
|
|
12
26
|
}
|
|
13
27
|
/**
|
|
14
28
|
* Every drawer that opens over the deposit sheet: the fee breakdown, the
|
|
15
29
|
* country list and the KYC choosers all present through this one component, so
|
|
16
|
-
* they are dismissed the same way
|
|
30
|
+
* they are dismissed the same way. `solid` picks which surface they are drawn
|
|
31
|
+
* on.
|
|
17
32
|
*
|
|
18
|
-
* The drawer owns its grabber,
|
|
19
|
-
* it stays put while a list scrolls under it.
|
|
20
|
-
*
|
|
21
|
-
*
|
|
33
|
+
* The drawer owns its grabber, in gorhom's handle slot but laid over the
|
|
34
|
+
* content rather than above it, so it stays put while a list scrolls under it.
|
|
35
|
+
* The slot matters: a pull on the content only moves the drawer while the list
|
|
36
|
+
* under it is at its top, a pull on the handle moves it wherever the list is.
|
|
37
|
+
* A close button is the screen's to draw where the design gives it one (the
|
|
38
|
+
* fee breakdown does); the gesture, the grabber and the backdrop are the
|
|
39
|
+
* drawer's.
|
|
22
40
|
*/
|
|
23
|
-
export declare function Drawer<TScreen extends string>({ sheet, fullHeight, children, }: DrawerProps<TScreen>): import("react").JSX.Element;
|
|
41
|
+
export declare function Drawer<TScreen extends string>({ sheet, fullHeight, solid, header, children, }: DrawerProps<TScreen>): import("react").JSX.Element;
|
|
24
42
|
//# sourceMappingURL=Drawer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../src/flow/Drawer.tsx"],"names":[],"mappings":"AAKA,OAAO,EAEL,KAAK,SAAS,EAGf,MAAM,OAAO,CAAA;AAKd,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;
|
|
1
|
+
{"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../src/flow/Drawer.tsx"],"names":[],"mappings":"AAKA,OAAO,EAEL,KAAK,SAAS,EAGf,MAAM,OAAO,CAAA;AAKd,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAmB1D,MAAM,WAAW,WAAW,CAAC,OAAO,SAAS,MAAM;IACjD,KAAK,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;IAC3B;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IACf;;;;OAIG;IACH,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,MAAM,CAAC,OAAO,SAAS,MAAM,EAAE,EAC7C,KAAK,EACL,UAAkB,EAClB,KAAa,EACb,MAAM,EACN,QAAQ,GACT,EAAE,WAAW,CAAC,OAAO,CAAC,+BAwFtB"}
|
|
@@ -9,10 +9,12 @@ export declare function useFeeDetailsSheet(): {
|
|
|
9
9
|
* The fee-disclosure drawer as the amount screens present it: a nested sheet
|
|
10
10
|
* over the entry screen, opened from its fee line.
|
|
11
11
|
*/
|
|
12
|
-
export declare function FeeDetailsSheet({ sheet, rows, summary, }: {
|
|
12
|
+
export declare function FeeDetailsSheet({ sheet, rows, summary, feesFree, }: {
|
|
13
13
|
sheet: NestedSheet<'feeDetails'>;
|
|
14
14
|
rows: FeeDetailsRow[];
|
|
15
15
|
/** Omitted when the rail's fee can't be worded (no method name, no rate). */
|
|
16
16
|
summary?: string;
|
|
17
|
+
/** The mark signs the drawer only when the disclosed fee is nothing. */
|
|
18
|
+
feesFree: boolean;
|
|
17
19
|
}): import("react").JSX.Element;
|
|
18
20
|
//# sourceMappingURL=FeeDetailsSheet.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FeeDetailsSheet.d.ts","sourceRoot":"","sources":["../../../src/flow/FeeDetailsSheet.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,WAAW,EAAkB,MAAM,yBAAyB,CAAA;AAC1E,OAAO,EACL,KAAK,aAAa,EAEnB,MAAM,6BAA6B,CAAA;AAGpC,iEAAiE;AACjE,wBAAgB,kBAAkB,IAAI;IACpC,KAAK,EAAE,WAAW,CAAC,YAAY,CAAC,CAAA;IAChC,cAAc,EAAE,MAAM,IAAI,CAAA;CAC3B,CAWA;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,IAAI,EACJ,OAAO,
|
|
1
|
+
{"version":3,"file":"FeeDetailsSheet.d.ts","sourceRoot":"","sources":["../../../src/flow/FeeDetailsSheet.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,WAAW,EAAkB,MAAM,yBAAyB,CAAA;AAC1E,OAAO,EACL,KAAK,aAAa,EAEnB,MAAM,6BAA6B,CAAA;AAGpC,iEAAiE;AACjE,wBAAgB,kBAAkB,IAAI;IACpC,KAAK,EAAE,WAAW,CAAC,YAAY,CAAC,CAAA;IAChC,cAAc,EAAE,MAAM,IAAI,CAAA;CAC3B,CAWA;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,IAAI,EACJ,OAAO,EACP,QAAQ,GACT,EAAE;IACD,KAAK,EAAE,WAAW,CAAC,YAAY,CAAC,CAAA;IAChC,IAAI,EAAE,aAAa,EAAE,CAAA;IACrB,6EAA6E;IAC7E,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,wEAAwE;IACxE,QAAQ,EAAE,OAAO,CAAA;CAClB,+BAcA"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
import type { FiatStepResponse } from '@funkit/connect-core';
|
|
2
|
+
import { type MoonPayPreparedPayment } from '../fiat/providers/moonpay';
|
|
1
3
|
import type { DepositAmountEntryConfig, DepositCheckoutConfig, DepositClientMetadata, DepositFlowCallbacks, DepositInitialAmount, FiatRailConfig } from './depositFlowConfig';
|
|
2
4
|
import type { DepositReceipt } from './useDepositReceivedToast';
|
|
5
|
+
/** Replace an executable verify response with the complete payment artifact retained from quote. */
|
|
6
|
+
export declare function promoteMoonPayPreparedPayment(response: FiatStepResponse, prepared: MoonPayPreparedPayment): FiatStepResponse;
|
|
3
7
|
export declare function FiatDepositAmountStep({ config, fiat, checkoutConfig, dynamicRoutingId, depositAddressOverride, checkoutId, clientMetadata, initialAmount, lockAmount, callbacks, showDepositToast, onCloseFlow, }: {
|
|
4
8
|
config: DepositAmountEntryConfig;
|
|
5
9
|
fiat: FiatRailConfig;
|
|
@@ -15,7 +19,7 @@ export declare function FiatDepositAmountStep({ config, fiat, checkoutConfig, dy
|
|
|
15
19
|
initialAmount?: DepositInitialAmount;
|
|
16
20
|
/** Locks the prefilled amount against numpad and quick-amount edits. */
|
|
17
21
|
lockAmount?: boolean;
|
|
18
|
-
callbacks: Pick<DepositFlowCallbacks, 'onDepositSubmitted' | 'onDepositError'>;
|
|
22
|
+
callbacks: Pick<DepositFlowCallbacks, 'onDepositSubmitted' | 'onDepositError' | 'onPaymentMethodPress'>;
|
|
19
23
|
/** Raises the SDK's deposit confirmation, which outlives this screen. */
|
|
20
24
|
showDepositToast: (receipt: DepositReceipt) => void;
|
|
21
25
|
onCloseFlow: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FiatDepositAmountStep.d.ts","sourceRoot":"","sources":["../../../src/flow/FiatDepositAmountStep.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FiatDepositAmountStep.d.ts","source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EAAE,MAAM,IAAI,CAAA;CACxB,+BAoGA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import { type PageMotion } from './pageMotion';
|
|
3
|
+
import type { PageTurn } from './pageTurn';
|
|
4
|
+
export interface FlowPageProps {
|
|
5
|
+
motion: PageMotion;
|
|
6
|
+
turn: PageTurn;
|
|
7
|
+
/** Off for the page a flow opens on: there is nothing for it to turn from. */
|
|
8
|
+
animateIn?: boolean;
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* One page of a flow, so a move between pages is a turn rather than a cut.
|
|
13
|
+
*
|
|
14
|
+
* A pushed page is a screen: it fills its frame absolutely, so the one
|
|
15
|
+
* leaving and the one arriving stand in it together, and a page that arrived
|
|
16
|
+
* forward stays over one that is returning. A nudged page is a block in its
|
|
17
|
+
* screen's own flow.
|
|
18
|
+
*
|
|
19
|
+
* A pushed page can be swiped back from its left edge once a back control on
|
|
20
|
+
* it arms the swipe (`useSwipeBack`).
|
|
21
|
+
*/
|
|
22
|
+
export declare function FlowPage({ motion, turn, animateIn, children, }: FlowPageProps): import("react").JSX.Element;
|
|
23
|
+
//# sourceMappingURL=FlowPage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FlowPage.d.ts","sourceRoot":"","sources":["../../../src/flow/FlowPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAItC,OAAO,EACL,KAAK,UAAU,EAIhB,MAAM,cAAc,CAAA;AACrB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAG1C,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,UAAU,CAAA;IAClB,IAAI,EAAE,QAAQ,CAAA;IACd,8EAA8E;IAC9E,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,QAAQ,CAAC,EACvB,MAAM,EACN,IAAI,EACJ,SAAgB,EAChB,QAAQ,GACT,EAAE,aAAa,+BAkCf"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type BottomSheetBackgroundProps } from '@gorhom/bottom-sheet';
|
|
2
|
-
import { type ReactNode } from 'react';
|
|
2
|
+
import { type ReactNode, type Ref } from 'react';
|
|
3
|
+
import type { FlowSheetControl } from './useFlowTransitions';
|
|
3
4
|
/**
|
|
4
5
|
* Material laid under a translucent flow surface. The package ships its own
|
|
5
6
|
* (see SheetMaterial); a host replaces it through `FunkitProvider`. Rendered
|
|
@@ -43,8 +44,15 @@ export interface FlowSheetProps {
|
|
|
43
44
|
* {@link GlassSheetBackground}.
|
|
44
45
|
*/
|
|
45
46
|
glass?: boolean;
|
|
47
|
+
/** Off screen with the session still mounted; see `useFlowTransitions`. */
|
|
48
|
+
hidden?: boolean;
|
|
49
|
+
/** Whether the next hide or resume runs the sheet's motion. */
|
|
50
|
+
animateTransitions?: boolean;
|
|
51
|
+
/** The sheet came to rest at a detent; -1 is off screen. */
|
|
52
|
+
onIndexChange?: (index: number) => void;
|
|
53
|
+
controlRef?: Ref<FlowSheetControl>;
|
|
46
54
|
}
|
|
47
|
-
export declare function FlowSheet({ isOpen, session, onClose, content, children, keyboardAvoidEnabled, enableSwipeToDismiss, dismissLocked, fullHeight, glass, }: FlowSheetProps): import("react").JSX.Element;
|
|
55
|
+
export declare function FlowSheet({ isOpen, session, onClose, content, children, keyboardAvoidEnabled, enableSwipeToDismiss, dismissLocked, fullHeight, glass, hidden, animateTransitions, onIndexChange, controlRef, }: FlowSheetProps): import("react").JSX.Element;
|
|
48
56
|
/**
|
|
49
57
|
* Sheet surface for the flow modal. gorhom sizes the sheet body to its content,
|
|
50
58
|
* so a flat background fills only the content area; over-dragging the sheet
|
|
@@ -65,8 +73,15 @@ export declare function FlowSheetBackground(props: BottomSheetBackgroundProps):
|
|
|
65
73
|
export declare function GlassSheetBackground({ pointerEvents, style, }: BottomSheetBackgroundProps): import("react").JSX.Element;
|
|
66
74
|
/**
|
|
67
75
|
* {@link FlowSheetBackground} for a screen stacked over another sheet — the
|
|
68
|
-
*
|
|
76
|
+
* fee breakdown (4006:4707). Glass rather than a panel, so the step it was
|
|
69
77
|
* raised from still reads faintly underneath it.
|
|
70
78
|
*/
|
|
71
79
|
export declare function StackedSheetBackground(props: BottomSheetBackgroundProps): import("react").JSX.Element;
|
|
80
|
+
/**
|
|
81
|
+
* {@link StackedSheetBackground} as a plain panel: the `drawer` fill alone, no
|
|
82
|
+
* material and no glass. A drawer the whole answer is read out of covers the
|
|
83
|
+
* step it was raised from rather than refracting it.
|
|
84
|
+
*/
|
|
85
|
+
export declare function SolidStackedSheetBackground(props: BottomSheetBackgroundProps): import("react").JSX.Element;
|
|
86
|
+
export declare const STACKED_TOP_RADIUS = 32;
|
|
72
87
|
//# sourceMappingURL=FlowSheet.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlowSheet.d.ts","sourceRoot":"","sources":["../../../src/flow/FlowSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,0BAA0B,EAKhC,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAEL,KAAK,SAAS,
|
|
1
|
+
{"version":3,"file":"FlowSheet.d.ts","sourceRoot":"","sources":["../../../src/flow/FlowSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,0BAA0B,EAKhC,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAEL,KAAK,SAAS,EACd,KAAK,GAAG,EAKT,MAAM,OAAO,CAAA;AAsBd,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAI5D;;;;;;GAMG;AACH,MAAM,MAAM,oBAAoB,GAAG,MAAM,SAAS,CAAA;AAElD,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,OAAO,CAAA;I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B,KAAK,CAAA"}
|
|
@@ -2,6 +2,7 @@ import { type ReactNode } from 'react';
|
|
|
2
2
|
import { type ClipboardReader, type ClipboardWriter } from '../transfer/clipboard';
|
|
3
3
|
import type { DepositFlowCallbacks, DepositFlowConfig } from './depositFlowConfig';
|
|
4
4
|
import { type BackdropBlurRenderer } from './FlowSheet';
|
|
5
|
+
import { type FlowTransitions } from './useFlowTransitions';
|
|
5
6
|
import type { WithdrawalFlowCallbacks, WithdrawalFlowConfig } from './withdrawalFlowConfig';
|
|
6
7
|
import type { StripeOnrampConfig } from '../fiat/providers/useStripeOnrampClient';
|
|
7
8
|
export type FlowScreen = 'depositAmount' | 'addMoney' | 'transfer' | 'swapped' | 'withdrawMethod' | 'withdrawAmount' | 'withdrawAddress' | 'withdrawReceiveToken' | 'withdrawComplete';
|
|
@@ -17,6 +18,8 @@ interface FunkitFlowContextValue {
|
|
|
17
18
|
beginWithdrawal: (config: WithdrawalFlowConfig, callbacks?: WithdrawalFlowCallbacks) => void;
|
|
18
19
|
/** Close the flow. */
|
|
19
20
|
closeFlow: () => void;
|
|
21
|
+
/** Host control over the open flow; see {@link FlowTransitions}. */
|
|
22
|
+
transitions: FlowTransitions;
|
|
20
23
|
}
|
|
21
24
|
export interface FlowNav {
|
|
22
25
|
navigate: (s: FlowScreen) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FunkitFlowProvider.d.ts","sourceRoot":"","sources":["../../../src/flow/FunkitFlowProvider.tsx"],"names":[],"mappings":"AAMA,OAAO,EAEL,KAAK,SAAS,EASf,MAAM,OAAO,CAAA;AAId,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,eAAe,EAIrB,MAAM,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"FunkitFlowProvider.d.ts","sourceRoot":"","sources":["../../../src/flow/FunkitFlowProvider.tsx"],"names":[],"mappings":"AAMA,OAAO,EAEL,KAAK,SAAS,EASf,MAAM,OAAO,CAAA;AAId,OAAO,EAC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BAAgB,kBAAkB,CAAC,EACjC,QAAQ,EACR,eAAwC,EACxC,kBAA8C,EAC9C,kBAAkB,EAClB,WAAW,EACX,YAAY,EACZ,YAAY,GACb,EAAE;IACD,QAAQ,EAAE,SAAS,CAAA;IACnB,uEAAuE;IACvE,eAAe,CAAC,EAAE,eAAe,CAAA;IACjC,4EAA4E;IAC5E,kBAAkB,CAAC,EAAE,eAAe,CAAA;IACpC,iFAAiF;IACjF,kBAAkB,CAAC,EAAE,oBAAoB,CAAA;IACzC,6EAA6E;IAC7E,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,+DAA+D;IAC/D,YAAY,CAAC,EAAE,kBAAkB,CAAA;IACjC;;;OAGG;IACH,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAA;CACzC,+BAyVA;AAgID,wBAAgB,aAAa,IAAI,sBAAsB,CAMtD"}
|
|
@@ -1,11 +1,25 @@
|
|
|
1
1
|
import type { BackdropBlurRenderer } from './FlowSheet';
|
|
2
2
|
/**
|
|
3
|
-
* The
|
|
4
|
-
*
|
|
3
|
+
* The corner everything React Native draws for the material takes, since only
|
|
4
|
+
* the glass can follow the screen's: the device's own, which a full-bleed slab
|
|
5
|
+
* meets without a seam.
|
|
6
|
+
*/
|
|
7
|
+
export declare const MATERIAL_CORNER_RADIUS = 65;
|
|
8
|
+
/**
|
|
9
|
+
* The material under every translucent flow surface: a blur of the host app
|
|
10
|
+
* with iOS 26 Liquid Glass refracting through it where the binary links the
|
|
5
11
|
* SDK's pod. Elsewhere the blur stands alone and the surface paints its fill.
|
|
12
|
+
*
|
|
13
|
+
* Dark or light as the theme's modal fill is, since the glass drops that fill
|
|
14
|
+
* out from under the surface and stands in for it.
|
|
6
15
|
*/
|
|
7
|
-
export declare function SheetMaterial({
|
|
8
|
-
|
|
16
|
+
export declare function SheetMaterial({ corner, }: {
|
|
17
|
+
/**
|
|
18
|
+
* A fixed corner for the whole material, for a surface that never meets the
|
|
19
|
+
* screen edge (a drawer stacked on the sheet). Left out, the material takes
|
|
20
|
+
* the screen's corner: the slab at the device's, the glass concentric with it.
|
|
21
|
+
*/
|
|
22
|
+
corner?: number;
|
|
9
23
|
}): import("react").JSX.Element;
|
|
10
24
|
export declare const renderSheetMaterial: BackdropBlurRenderer;
|
|
11
25
|
//# sourceMappingURL=SheetMaterial.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SheetMaterial.d.ts","sourceRoot":"","sources":["../../../src/flow/SheetMaterial.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SheetMaterial.d.ts","sourceRoot":"","sources":["../../../src/flow/SheetMaterial.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAIvD;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,KAAK,CAAA;AAiBxC;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,EAC5B,MAAM,GACP,EAAE;IACD;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,+BA+BA;AAED,eAAO,MAAM,mBAAmB,EAAE,oBAA8C,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WithdrawalFlowContent.d.ts","sourceRoot":"","sources":["../../../src/flow/WithdrawalFlowContent.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAyB,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"WithdrawalFlowContent.d.ts","sourceRoot":"","sources":["../../../src/flow/WithdrawalFlowContent.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAyB,MAAM,OAAO,CAAA;AAwB7D,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAC/D,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,wBAAwB,CAAA;AAmB/B;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,UAAU,EACV,MAAM,EACN,SAAS,EACT,OAAO,EACP,GAAG,GACJ,EAAE;IACD,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,oBAAoB,CAAA;IAC5B,SAAS,EAAE,uBAAuB,CAAA;IAClC,OAAO,EAAE,UAAU,GAAG,SAAS,CAAA;IAC/B,GAAG,EAAE,OAAO,CAAA;CACb,GAAG,SAAS,CA0PZ"}
|
|
@@ -96,16 +96,20 @@ export interface DepositAmountEntryConfig {
|
|
|
96
96
|
* in the user's locale. Overrides that label.
|
|
97
97
|
*/
|
|
98
98
|
submitLabel?: string;
|
|
99
|
-
/**
|
|
99
|
+
/**
|
|
100
|
+
* Quick-amount presets in whole dollars; defaults to 20/50/100/200 with
|
|
101
|
+
* {@link fiat} configured, 10/20/50/100 without.
|
|
102
|
+
*/
|
|
100
103
|
quickAmountsUsd?: string[];
|
|
101
104
|
/**
|
|
102
|
-
* Hard input cap in dollars
|
|
103
|
-
*
|
|
105
|
+
* Hard input cap in dollars; omitted, no host cap applies.
|
|
106
|
+
* Ignored with {@link fiat} configured: the quote reports the ceiling.
|
|
104
107
|
*/
|
|
105
108
|
limitUsd?: string;
|
|
106
109
|
/**
|
|
107
110
|
* Smallest amount the source will take, in dollars. Below it the CTA names
|
|
108
111
|
* the floor instead of submitting; omit when the source defines none.
|
|
112
|
+
* Ignored with {@link fiat} configured: the quote reports the floor.
|
|
109
113
|
*/
|
|
110
114
|
minLimitUsd?: string;
|
|
111
115
|
/** Brand glyph beside the title; the title stands alone without one. */
|
|
@@ -282,6 +286,12 @@ export interface DepositFlowCallbacks {
|
|
|
282
286
|
onOpen?: () => void;
|
|
283
287
|
onClose?: () => void;
|
|
284
288
|
onCheckoutBlocked?: () => void;
|
|
289
|
+
/**
|
|
290
|
+
* The user pressed the payment method on the amount screen. Supplying this
|
|
291
|
+
* draws the method as a pressable row; the flow stays open, so the host can
|
|
292
|
+
* present its own method choice over it.
|
|
293
|
+
*/
|
|
294
|
+
onPaymentMethodPress?: () => void;
|
|
285
295
|
/**
|
|
286
296
|
* The deposit is on its way and the SDK is finished with it: the flow has
|
|
287
297
|
* closed and its confirmation is up. `orderId` is the provider's; `method`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"depositFlowConfig.d.ts","sourceRoot":"","sources":["../../../src/flow/depositFlowConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AACrD,OAAO,KAAK,EACV,2BAA2B,EAC3B,2BAA2B,EAC3B,oBAAoB,EACpB,gBAAgB,EACjB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AAEnC,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EACjB,MAAM,6BAA6B,CAAA;AACpC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAElD,YAAY,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAA;AAEvE;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IACpC,kCAAkC;IAClC,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,mEAAmE;IACnE,mBAAmB,CAAC,EAAE,GAAG,MAAM,EAAE,CAAA;IACjC;;;;OAIG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAA;CAClC;AAED;;;;;GAKG;AACH,MAAM,MAAM,qBAAqB,GAAG,mBAAmB,GACrD,IAAI,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAAA;AAE5C;;;;;GAKG;AACH,MAAM,MAAM,mBAAmB,GAAG,IAAI,CACpC,2BAA2B,EAC3B,aAAa,CACd,GAAG;IACF,WAAW,EAAE,OAAO,GAAG,aAAa,CAAA;CACrC,CAAA;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,2BAA2B,EAAE,GAAG,SAAS,EACrD,gBAAgB,EAAE,MAAM,GAAG,SAAS,GACnC,2BAA2B,GAAG,SAAS,CAczC;AAED;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC1B,0DAA0D;IAC1D,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;IACnB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,wBAAwB;IACvC;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,oEAAoE;IACpE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB
|
|
1
|
+
{"version":3,"file":"depositFlowConfig.d.ts","sourceRoot":"","sources":["../../../src/flow/depositFlowConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AACrD,OAAO,KAAK,EACV,2BAA2B,EAC3B,2BAA2B,EAC3B,oBAAoB,EACpB,gBAAgB,EACjB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AAEnC,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EACjB,MAAM,6BAA6B,CAAA;AACpC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAElD,YAAY,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAA;AAEvE;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IACpC,kCAAkC;IAClC,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,mEAA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E,eAAe,KAAK,IAAI,CAAA;IACjD;;;OAGG;IACH,cAAc,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAA;CAC7C"}
|
|
@@ -9,6 +9,8 @@ export interface DepositRailCopy {
|
|
|
9
9
|
methodName: string | undefined;
|
|
10
10
|
/** Badge on the fee line's leading side. */
|
|
11
11
|
methodBadge: ReactNode | undefined;
|
|
12
|
+
/** Brand glyph on the payment-method row. */
|
|
13
|
+
methodIcon: ReactNode | undefined;
|
|
12
14
|
}
|
|
13
15
|
/**
|
|
14
16
|
* Rail copy comes from the rail, so no host writes "Deposit with Apple Pay":
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"depositRailCopy.d.ts","sourceRoot":"","sources":["../../../src/flow/depositRailCopy.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"depositRailCopy.d.ts","sourceRoot":"","sources":["../../../src/flow/depositRailCopy.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAKtC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAA;AAEnE,+DAA+D;AAC/D,MAAM,WAAW,eAAe;IAC9B,qEAAqE;IACrE,WAAW,EAAE,MAAM,CAAA;IACnB,6EAA6E;IAC7E,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;IAC9B,4CAA4C;IAC5C,WAAW,EAAE,SAAS,GAAG,SAAS,CAAA;IAClC,6CAA6C;IAC7C,UAAU,EAAE,SAAS,GAAG,SAAS,CAAA;CAClC;AAkBD;;;;;GAKG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,wBAAwB,EAChC,aAAa,EAAE,MAAM,GAAG,SAAS,EACjC,CAAC,EAAE,SAAS,GACX,eAAe,CAkBjB"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ReduceMotion } from 'react-native-reanimated';
|
|
2
|
+
/** +1 is a turn forward through the flow, -1 a return. */
|
|
3
|
+
export type Direction = 1 | -1;
|
|
4
|
+
/**
|
|
5
|
+
* How a page moves when a turn brings it in or takes it away.
|
|
6
|
+
*
|
|
7
|
+
* - `push`: a screen over another, as a navigation stack turns — the page in
|
|
8
|
+
* front crosses the whole width, the one behind a third of it and fades.
|
|
9
|
+
* - `nudge`: transitions.dev "Page side-by-side" — a short shift with a fade,
|
|
10
|
+
* for the pages of one screen turning inside it.
|
|
11
|
+
*/
|
|
12
|
+
export type PageMotion = 'push' | 'nudge';
|
|
13
|
+
export declare const PUSH_DURATION = 350;
|
|
14
|
+
export declare const PUSH_BEHIND_RATIO: number;
|
|
15
|
+
export declare const NUDGE_DURATION = 250;
|
|
16
|
+
export declare const NUDGE_DISTANCE = 40;
|
|
17
|
+
/** The nudge as a `withTiming` config, for whatever moves in step with one. */
|
|
18
|
+
export declare const NUDGE_TIMING: {
|
|
19
|
+
duration: number;
|
|
20
|
+
easing: import("react-native-reanimated").EasingFunctionFactory;
|
|
21
|
+
reduceMotion: ReduceMotion;
|
|
22
|
+
};
|
|
23
|
+
export declare function pageTiming(motion: PageMotion): {
|
|
24
|
+
duration: number;
|
|
25
|
+
easing: import("react-native-reanimated").EasingFunctionFactory;
|
|
26
|
+
reduceMotion: ReduceMotion;
|
|
27
|
+
};
|
|
28
|
+
export interface PageRest {
|
|
29
|
+
x: number;
|
|
30
|
+
opacity: number;
|
|
31
|
+
}
|
|
32
|
+
/** Where a page waits before a turn in `direction` brings it in. */
|
|
33
|
+
export declare function arrivalRest(motion: PageMotion, direction: Direction, width: number): PageRest;
|
|
34
|
+
/** Where a page comes to rest once a turn in `direction` has taken it away. */
|
|
35
|
+
export declare function departureRest(motion: PageMotion, direction: Direction, width: number): PageRest;
|
|
36
|
+
export declare function arrivalKeyframe(motion: PageMotion, direction: Direction, width: number): import("react-native-reanimated").ReanimatedKeyframe;
|
|
37
|
+
//# sourceMappingURL=pageMotion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pageMotion.d.ts","sourceRoot":"","sources":["../../../src/flow/pageMotion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAIhE,0DAA0D;AAC1D,MAAM,MAAM,SAAS,GAAG,CAAC,GAAG,CAAC,CAAC,CAAA;AAE9B;;;;;;;GAOG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,OAAO,CAAA;AAEzC,eAAO,MAAM,aAAa,MAAM,CAAA;AAChC,eAAO,MAAM,iBAAiB,QAAQ,CAAA;AACtC,eAAO,MAAM,cAAc,MAAM,CAAA;AACjC,eAAO,MAAM,cAAc,KAAK,CAAA;AAChC,+EAA+E;AAC/E,eAAO,MAAM,YAAY;;;;CAIxB,CAAA;AAED,wBAAgB,UAAU,CAAC,MAAM,EAAE,UAAU;;;;EAI5C;AAED,MAAM,WAAW,QAAQ;IACvB,CAAC,EAAE,MAAM,CAAA;IACT,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,oEAAoE;AACpE,wBAAgB,WAAW,CACzB,MAAM,EAAE,UAAU,EAClB,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,MAAM,GACZ,QAAQ,CAQV;AAED,+EAA+E;AAC/E,wBAAgB,aAAa,CAC3B,MAAM,EAAE,UAAU,EAClB,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,MAAM,GACZ,QAAQ,CAQV;AAED,wBAAgB,eAAe,CAC7B,MAAM,EAAE,UAAU,EAClB,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,MAAM,wDASd"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type SharedValue } from 'react-native-reanimated';
|
|
2
|
+
import type { Direction } from './pageMotion';
|
|
3
|
+
/**
|
|
4
|
+
* The turn a page takes part in: the direction it arrives by, and the one it
|
|
5
|
+
* will leave by. The latter is unknowable until the turn that removes the page
|
|
6
|
+
* happens, so it is read on the UI thread as the page goes; a page whose
|
|
7
|
+
* departure is fixed carries a plain direction instead.
|
|
8
|
+
*/
|
|
9
|
+
export interface PageTurn {
|
|
10
|
+
enter: Direction;
|
|
11
|
+
exit: Direction | SharedValue<Direction>;
|
|
12
|
+
/** False until the first turn away from the page the flow opened on. */
|
|
13
|
+
moved: boolean;
|
|
14
|
+
}
|
|
15
|
+
/** The page a flow opens on and returns to: covered by a turn forward, uncovered by a return. */
|
|
16
|
+
export declare const OPENING_PAGE: PageTurn;
|
|
17
|
+
export interface PageStack {
|
|
18
|
+
keys: readonly string[];
|
|
19
|
+
direction: Direction;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Moving to `key`: a key on the stack is returned to, and everything above it
|
|
23
|
+
* is dropped; a new one is pushed. The same key again is no turn.
|
|
24
|
+
*/
|
|
25
|
+
export declare function turnTo(stack: PageStack, key: string): PageStack;
|
|
26
|
+
/** The turn that brought the page named `key` up, judged against the pages visited before it. */
|
|
27
|
+
export declare function usePageTurn(key: string): PageTurn;
|
|
28
|
+
//# sourceMappingURL=pageTurn.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pageTurn.d.ts","sourceRoot":"","sources":["../../../src/flow/pageTurn.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,WAAW,EAAkB,MAAM,yBAAyB,CAAA;AAE1E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAE7C;;;;;GAKG;AACH,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,SAAS,CAAA;IAChB,IAAI,EAAE,SAAS,GAAG,WAAW,CAAC,SAAS,CAAC,CAAA;IACxC,wEAAwE;IACxE,KAAK,EAAE,OAAO,CAAA;CACf;AAED,iGAAiG;AACjG,eAAO,MAAM,YAAY,EAAE,QAA8C,CAAA;AAEzE,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,SAAS,MAAM,EAAE,CAAA;IACvB,SAAS,EAAE,SAAS,CAAA;CACrB;AAED;;;GAGG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,GAAG,SAAS,CAS/D;AAID,iGAAiG;AACjG,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,QAAQ,CAajD"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { GestureResponderEvent } from 'react-native';
|
|
2
|
+
/**
|
|
3
|
+
* Holds the flow sheet's drag off until every finger lifts, so a press cannot
|
|
4
|
+
* turn into a drag of the drawer beneath it. A no-op outside a flow sheet.
|
|
5
|
+
*/
|
|
6
|
+
export declare const SheetPressHoldContext: import("react").Context<() => void>;
|
|
7
|
+
export declare function useSheetPressHold(): () => void;
|
|
8
|
+
/**
|
|
9
|
+
* The sheet's side of the hold. Touch events bubble to the sheet body, so its
|
|
10
|
+
* own lift handlers see a finger leave whichever control took the press.
|
|
11
|
+
*
|
|
12
|
+
* A close or a new session also lets go: a sheet dismissed under a held press
|
|
13
|
+
* never sees that finger lift, and the sheet stays mounted for the next one.
|
|
14
|
+
*/
|
|
15
|
+
export declare function useSheetPressHoldState({ isOpen, session, }: {
|
|
16
|
+
isOpen: boolean;
|
|
17
|
+
session: unknown;
|
|
18
|
+
}): {
|
|
19
|
+
held: boolean;
|
|
20
|
+
hold: () => void;
|
|
21
|
+
release: () => void;
|
|
22
|
+
releaseOnLift: (event: GestureResponderEvent) => void;
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=sheetPressHold.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sheetPressHold.d.ts","sourceRoot":"","sources":["../../../src/flow/sheetPressHold.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAA;AAEzD;;;GAGG;AACH,eAAO,MAAM,qBAAqB,gCAAuB,IAAI,CAAkB,CAAA;AAE/E,wBAAgB,iBAAiB,UAFwB,IAAI,CAI5D;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,MAAM,EACN,OAAO,GACR,EAAE;IACD,MAAM,EAAE,OAAO,CAAA;IACf,OAAO,EAAE,OAAO,CAAA;CACjB;;;;2BAO2C,qBAAqB;EAMhE"}
|