@funkit/connect-rn 8.2.0 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +184 -0
- package/README.md +25 -12
- package/dist/{chunk-GG2WCQ6N.js → chunk-3ZNAGQHD.js} +3 -3
- package/dist/chunk-BC4RXFI7.js +319 -0
- package/dist/chunk-BC4RXFI7.js.map +7 -0
- package/dist/{chunk-J5K2FSAI.js → chunk-MVQH4YFI.js} +330 -146
- package/dist/chunk-MVQH4YFI.js.map +7 -0
- package/dist/{chunk-D64EJ57D.js → chunk-ZE77GVDW.js} +94 -10
- package/dist/chunk-ZE77GVDW.js.map +7 -0
- package/dist/clients/lighter.js +2 -2
- package/dist/clients/nado.js +3 -3
- package/dist/clients/solana.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9859 -6316
- package/dist/index.js.map +4 -4
- package/dist/preview.d.ts +5 -0
- package/dist/preview.d.ts.map +1 -0
- package/dist/preview.js +1159 -0
- package/dist/preview.js.map +7 -0
- package/dist/src/components/DepositActionMotion.d.ts +4 -1
- package/dist/src/components/DepositActionMotion.d.ts.map +1 -1
- package/dist/src/components/DismissibleToast.d.ts +35 -0
- package/dist/src/components/DismissibleToast.d.ts.map +1 -0
- package/dist/src/components/GlassSurface.d.ts +3 -1
- package/dist/src/components/GlassSurface.d.ts.map +1 -1
- package/dist/src/components/PillButton.d.ts +20 -2
- package/dist/src/components/PillButton.d.ts.map +1 -1
- package/dist/src/components/StateSwap.d.ts +17 -0
- package/dist/src/components/StateSwap.d.ts.map +1 -0
- package/dist/src/components/WithdrawSourceCard.d.ts.map +1 -1
- package/dist/src/components/v2/AmountDisplay.d.ts.map +1 -1
- package/dist/src/components/v2/PaymentMethodPicker.d.ts +18 -0
- package/dist/src/components/v2/PaymentMethodPicker.d.ts.map +1 -0
- package/dist/src/components/v2/QuickAmountsRow.d.ts.map +1 -1
- package/dist/src/fiat/FiatBackButton.d.ts +5 -1
- package/dist/src/fiat/FiatBackButton.d.ts.map +1 -1
- package/dist/src/fiat/FiatChoiceField.d.ts +4 -3
- package/dist/src/fiat/FiatChoiceField.d.ts.map +1 -1
- package/dist/src/fiat/FiatContactScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatCountrySheet.d.ts.map +1 -1
- package/dist/src/fiat/FiatDocumentCaptureStep.d.ts +7 -2
- package/dist/src/fiat/FiatDocumentCaptureStep.d.ts.map +1 -1
- package/dist/src/fiat/FiatFailureBanner.d.ts +4 -1
- package/dist/src/fiat/FiatFailureBanner.d.ts.map +1 -1
- package/dist/src/fiat/FiatFormAdvance.d.ts.map +1 -1
- package/dist/src/fiat/FiatFormFieldRow.d.ts +15 -1
- package/dist/src/fiat/FiatFormFieldRow.d.ts.map +1 -1
- package/dist/src/fiat/FiatFormHeading.d.ts +21 -0
- package/dist/src/fiat/FiatFormHeading.d.ts.map +1 -0
- package/dist/src/fiat/FiatFormScreen.d.ts +7 -1
- package/dist/src/fiat/FiatFormScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatIdentityStep.d.ts +16 -1
- package/dist/src/fiat/FiatIdentityStep.d.ts.map +1 -1
- package/dist/src/fiat/FiatKycFieldControl.d.ts +0 -2
- package/dist/src/fiat/FiatKycFieldControl.d.ts.map +1 -1
- package/dist/src/fiat/FiatKycIntroScreen.d.ts +14 -3
- package/dist/src/fiat/FiatKycIntroScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatKycOptionsScreen.d.ts +1 -1
- package/dist/src/fiat/FiatKycOptionsScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatKycOutcomeScreen.d.ts +8 -6
- package/dist/src/fiat/FiatKycOutcomeScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatKycPhoneField.d.ts +2 -3
- package/dist/src/fiat/FiatKycPhoneField.d.ts.map +1 -1
- package/dist/src/fiat/FiatOtpScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatPhoneField.d.ts +17 -4
- package/dist/src/fiat/FiatPhoneField.d.ts.map +1 -1
- package/dist/src/fiat/FiatReceipt.d.ts +9 -3
- package/dist/src/fiat/FiatReceipt.d.ts.map +1 -1
- package/dist/src/fiat/FiatRegionUnsupportedScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatSsnField.d.ts.map +1 -1
- package/dist/src/fiat/FiatSubmissionIndicator.d.ts +7 -1
- package/dist/src/fiat/FiatSubmissionIndicator.d.ts.map +1 -1
- package/dist/src/fiat/FiatTermsNotice.d.ts +4 -2
- package/dist/src/fiat/FiatTermsNotice.d.ts.map +1 -1
- package/dist/src/fiat/FiatUnsupportedStep.d.ts +11 -0
- package/dist/src/fiat/FiatUnsupportedStep.d.ts.map +1 -0
- package/dist/src/fiat/SurfaceSlot.d.ts +8 -3
- package/dist/src/fiat/SurfaceSlot.d.ts.map +1 -1
- package/dist/src/fiat/closeFailure.d.ts +19 -0
- package/dist/src/fiat/closeFailure.d.ts.map +1 -0
- package/dist/src/fiat/countryListEntries.d.ts +2 -3
- package/dist/src/fiat/countryListEntries.d.ts.map +1 -1
- package/dist/src/fiat/depositOutcome.d.ts +18 -1
- package/dist/src/fiat/depositOutcome.d.ts.map +1 -1
- package/dist/src/fiat/fieldLabel.d.ts +14 -0
- package/dist/src/fiat/fieldLabel.d.ts.map +1 -0
- package/dist/src/fiat/formLayout.d.ts +16 -3
- package/dist/src/fiat/formLayout.d.ts.map +1 -1
- package/dist/src/fiat/formValidationError.d.ts +4 -2
- package/dist/src/fiat/formValidationError.d.ts.map +1 -1
- package/dist/src/fiat/kycFailover.d.ts +6 -0
- package/dist/src/fiat/kycFailover.d.ts.map +1 -0
- package/dist/src/fiat/kycFormState.d.ts +12 -0
- package/dist/src/fiat/kycFormState.d.ts.map +1 -1
- package/dist/src/fiat/kycFormTheme.d.ts +8 -0
- package/dist/src/fiat/kycFormTheme.d.ts.map +1 -1
- package/dist/src/fiat/kycUnavailableAlert.d.ts.map +1 -1
- package/dist/src/fiat/legalLinks.d.ts +4 -3
- package/dist/src/fiat/legalLinks.d.ts.map +1 -1
- package/dist/src/fiat/otpScreenProps.d.ts.map +1 -1
- package/dist/src/fiat/paymentSurfaceFailure.d.ts +56 -0
- package/dist/src/fiat/paymentSurfaceFailure.d.ts.map +1 -0
- package/dist/src/fiat/phoneDraft.d.ts +20 -0
- package/dist/src/fiat/phoneDraft.d.ts.map +1 -1
- package/dist/src/fiat/postalCodeCountries.d.ts +16 -0
- package/dist/src/fiat/postalCodeCountries.d.ts.map +1 -0
- package/dist/src/fiat/providers/CoinbaseCheckoutSurface.d.ts +8 -2
- package/dist/src/fiat/providers/CoinbaseCheckoutSurface.d.ts.map +1 -1
- package/dist/src/fiat/providers/SumsubKycSurface.d.ts.map +1 -1
- package/dist/src/fiat/providers/TransakApplePaySurface.d.ts.map +1 -1
- package/dist/src/fiat/providers/adapter.d.ts +33 -5
- package/dist/src/fiat/providers/adapter.d.ts.map +1 -1
- package/dist/src/fiat/providers/applePayButtonMetrics.d.ts +1 -2
- package/dist/src/fiat/providers/applePayButtonMetrics.d.ts.map +1 -1
- package/dist/src/fiat/providers/applePayPaintGate.d.ts +5 -2
- package/dist/src/fiat/providers/applePayPaintGate.d.ts.map +1 -1
- package/dist/src/fiat/providers/banxaRedirect.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbaseApplePay.d.ts +2 -1
- package/dist/src/fiat/providers/coinbaseApplePay.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbaseFailureCopy.d.ts +7 -1
- package/dist/src/fiat/providers/coinbaseFailureCopy.d.ts.map +1 -1
- package/dist/src/fiat/providers/describeThrown.d.ts.map +1 -1
- package/dist/src/fiat/providers/kycIntro.d.ts +20 -0
- package/dist/src/fiat/providers/kycIntro.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay.d.ts +6 -1
- package/dist/src/fiat/providers/moonpay.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpayApplePayPainted.d.ts +6 -3
- package/dist/src/fiat/providers/moonpayApplePayPainted.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpayApplePayStyle.d.ts +5 -10
- package/dist/src/fiat/providers/moonpayApplePayStyle.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpayAuthStyle.d.ts +19 -0
- package/dist/src/fiat/providers/moonpayAuthStyle.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpayFeeQuote.d.ts +26 -0
- package/dist/src/fiat/providers/moonpayFeeQuote.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripeAuthorize.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripeCheckout.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripeKyc.d.ts +2 -0
- package/dist/src/fiat/providers/stripeKyc.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripeKycIntro.d.ts +10 -0
- package/dist/src/fiat/providers/stripeKycIntro.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripePayment.d.ts +2 -2
- package/dist/src/fiat/providers/stripePayment.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripeRoundPush.d.ts +45 -0
- package/dist/src/fiat/providers/stripeRoundPush.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripeSeamlessSignIn.d.ts +5 -0
- package/dist/src/fiat/providers/stripeSeamlessSignIn.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripeSessionAuth.d.ts.map +1 -1
- package/dist/src/fiat/providers/sumsubKyc.d.ts.map +1 -1
- package/dist/src/fiat/providers/surfaceParams.d.ts +30 -0
- package/dist/src/fiat/providers/surfaceParams.d.ts.map +1 -0
- package/dist/src/fiat/providers/transakApplePay.d.ts.map +1 -1
- package/dist/src/fiat/providers/useStripeOnrampClient.d.ts +0 -10
- package/dist/src/fiat/providers/useStripeOnrampClient.d.ts.map +1 -1
- package/dist/src/fiat/providers/useStripeSessionAuth.d.ts +42 -0
- package/dist/src/fiat/providers/useStripeSessionAuth.d.ts.map +1 -0
- package/dist/src/fiat/providers/useWebViewTermination.d.ts +15 -0
- package/dist/src/fiat/providers/useWebViewTermination.d.ts.map +1 -0
- package/dist/src/fiat/quoteNoRoute.d.ts +11 -0
- package/dist/src/fiat/quoteNoRoute.d.ts.map +1 -0
- package/dist/src/fiat/renderCaptureSurface.d.ts +2 -0
- package/dist/src/fiat/renderCaptureSurface.d.ts.map +1 -1
- package/dist/src/fiat/sectionDetail.d.ts +8 -1
- package/dist/src/fiat/sectionDetail.d.ts.map +1 -1
- package/dist/src/fiat/shownFieldIssues.d.ts +17 -0
- package/dist/src/fiat/shownFieldIssues.d.ts.map +1 -0
- package/dist/src/fiat/stepDetails.d.ts +13 -14
- package/dist/src/fiat/stepDetails.d.ts.map +1 -1
- package/dist/src/fiat/subdivisions.d.ts +6 -0
- package/dist/src/fiat/subdivisions.d.ts.map +1 -1
- package/dist/src/fiat/useContactAutoSubmit.d.ts +20 -0
- package/dist/src/fiat/useContactAutoSubmit.d.ts.map +1 -0
- package/dist/src/fiat/useFiatCheckoutPreparation.d.ts +2 -1
- package/dist/src/fiat/useFiatCheckoutPreparation.d.ts.map +1 -1
- package/dist/src/fiat/useKycCaptureRound.d.ts +16 -0
- package/dist/src/fiat/useKycCaptureRound.d.ts.map +1 -0
- package/dist/src/fiat/useKycCompletion.d.ts.map +1 -1
- package/dist/src/fiat/useOtpAutoSubmit.d.ts +15 -2
- package/dist/src/fiat/useOtpAutoSubmit.d.ts.map +1 -1
- package/dist/src/fiat/useOtpReceipt.d.ts +3 -2
- package/dist/src/fiat/useOtpReceipt.d.ts.map +1 -1
- package/dist/src/fiat/useReceiptTitles.d.ts +6 -0
- package/dist/src/fiat/useReceiptTitles.d.ts.map +1 -0
- package/dist/src/flow/DepositAmountStep.d.ts.map +1 -1
- package/dist/src/flow/DepositAssetPicker.d.ts +4 -2
- package/dist/src/flow/DepositAssetPicker.d.ts.map +1 -1
- package/dist/src/flow/DepositFlowContent.d.ts.map +1 -1
- package/dist/src/flow/DepositReceivedToast.d.ts +2 -2
- package/dist/src/flow/DepositReceivedToast.d.ts.map +1 -1
- package/dist/src/flow/FeeDetailsSheet.d.ts +3 -1
- package/dist/src/flow/FeeDetailsSheet.d.ts.map +1 -1
- package/dist/src/flow/FiatDepositAmountStep.d.ts +11 -1
- package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
- package/dist/src/flow/FlowPage.d.ts +3 -0
- package/dist/src/flow/FlowPage.d.ts.map +1 -1
- package/dist/src/flow/FlowSheet.d.ts +10 -2
- package/dist/src/flow/FlowSheet.d.ts.map +1 -1
- package/dist/src/flow/FunkitFlowProvider.d.ts +3 -0
- package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
- package/dist/src/flow/SheetMaterial.d.ts +7 -6
- package/dist/src/flow/SheetMaterial.d.ts.map +1 -1
- package/dist/src/flow/WithdrawalFlowContent.d.ts.map +1 -1
- package/dist/src/flow/depositFlowConfig.d.ts +24 -7
- package/dist/src/flow/depositFlowConfig.d.ts.map +1 -1
- package/dist/src/flow/depositRailCopy.d.ts +2 -0
- package/dist/src/flow/depositRailCopy.d.ts.map +1 -1
- package/dist/src/flow/flowError.d.ts +3 -1
- package/dist/src/flow/flowError.d.ts.map +1 -1
- package/dist/src/flow/guardHostCallbacks.d.ts +8 -1
- package/dist/src/flow/guardHostCallbacks.d.ts.map +1 -1
- package/dist/src/flow/sheetPressHold.d.ts +24 -0
- package/dist/src/flow/sheetPressHold.d.ts.map +1 -0
- package/dist/src/flow/swipeBack.d.ts +30 -0
- package/dist/src/flow/swipeBack.d.ts.map +1 -0
- package/dist/src/flow/useDepositReceivedToast.d.ts.map +1 -1
- package/dist/src/flow/useFlowTransitions.d.ts +47 -0
- package/dist/src/flow/useFlowTransitions.d.ts.map +1 -0
- package/dist/src/flow/useKeyboardHeight.d.ts +2 -2
- package/dist/src/flow/useKeyboardHeight.d.ts.map +1 -1
- package/dist/src/flow/v2DepositCustomers.d.ts +2 -0
- package/dist/src/flow/v2DepositCustomers.d.ts.map +1 -0
- package/dist/src/flow/validateClientMetadata.d.ts.map +1 -1
- package/dist/src/hooks/usePressScale.d.ts +2 -6
- package/dist/src/hooks/usePressScale.d.ts.map +1 -1
- package/dist/src/icons/assetLogos.d.ts.map +1 -1
- package/dist/src/identity/IdentityContext.d.ts +8 -0
- package/dist/src/identity/IdentityContext.d.ts.map +1 -1
- package/dist/src/logging/datadogHttpLogTransport.d.ts +10 -3
- package/dist/src/logging/datadogHttpLogTransport.d.ts.map +1 -1
- package/dist/src/logging/logger.d.ts.map +1 -1
- package/dist/src/native/glassEffect.d.ts +20 -0
- package/dist/src/native/glassEffect.d.ts.map +1 -1
- package/dist/src/preview/fixtures/kycForms.d.ts +45 -0
- package/dist/src/preview/fixtures/kycForms.d.ts.map +1 -0
- package/dist/src/preview/flowPreview.d.ts +142 -0
- package/dist/src/preview/flowPreview.d.ts.map +1 -0
- package/dist/src/preview/previewFetch.d.ts +10 -0
- package/dist/src/preview/previewFetch.d.ts.map +1 -0
- package/dist/src/preview/scenarioCatalog.d.ts +380 -0
- package/dist/src/preview/scenarioCatalog.d.ts.map +1 -0
- package/dist/src/preview/scenarios.d.ts +57 -0
- package/dist/src/preview/scenarios.d.ts.map +1 -0
- package/dist/src/providers/FunkitI18nProvider.d.ts +2 -0
- package/dist/src/providers/FunkitI18nProvider.d.ts.map +1 -1
- package/dist/src/providers/useFunkitCheckout.d.ts +6 -0
- package/dist/src/providers/useFunkitCheckout.d.ts.map +1 -1
- package/dist/src/screens/DepositAmountScreen.d.ts +9 -2
- package/dist/src/screens/DepositAmountScreen.d.ts.map +1 -1
- package/dist/src/screens/FeeDetailsScreen.d.ts.map +1 -1
- package/dist/src/screens/TokenAndChainPickerScreen.d.ts +3 -1
- package/dist/src/screens/TokenAndChainPickerScreen.d.ts.map +1 -1
- package/dist/src/screens/WithdrawCryptoSteps.d.ts.map +1 -1
- package/dist/src/screens/depositMetrics.d.ts +40 -3
- package/dist/src/screens/depositMetrics.d.ts.map +1 -1
- package/dist/src/swapped/SwappedWebView.d.ts.map +1 -1
- package/dist/src/theme/keyboardAppearance.d.ts +10 -0
- package/dist/src/theme/keyboardAppearance.d.ts.map +1 -0
- package/dist/src/theme/tokens.d.ts +4 -1
- package/dist/src/theme/tokens.d.ts.map +1 -1
- package/dist/src/transfer/depositAssets.d.ts +6 -4
- package/dist/src/transfer/depositAssets.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useLockedTokenAmount.d.ts +19 -1
- package/dist/src/transfer/hooks/useLockedTokenAmount.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useUDAParams.d.ts.map +1 -1
- package/dist/src/transfer/lockedQuoteSource.d.ts +23 -0
- package/dist/src/transfer/lockedQuoteSource.d.ts.map +1 -0
- package/dist/src/transfer/lockedTokenAmount.d.ts +25 -0
- package/dist/src/transfer/lockedTokenAmount.d.ts.map +1 -1
- package/dist/src/utils/formatAmount.d.ts +1 -0
- package/dist/src/utils/formatAmount.d.ts.map +1 -1
- package/dist/src/utils/motion.d.ts +6 -0
- package/dist/src/utils/motion.d.ts.map +1 -1
- package/dist/src/withdrawal/useCryptoWithdrawalForm.d.ts +3 -2
- package/dist/src/withdrawal/useCryptoWithdrawalForm.d.ts.map +1 -1
- package/ios/FrostedGlassView.swift +207 -0
- package/ios/FunkitGlassEffect.podspec +1 -1
- package/ios/FunkitGlassEffectModule.swift +42 -0
- package/package.json +14 -8
- package/dist/chunk-D64EJ57D.js.map +0 -7
- package/dist/chunk-J5K2FSAI.js.map +0 -7
- package/dist/src/components/ActionLoading.d.ts +0 -19
- package/dist/src/components/ActionLoading.d.ts.map +0 -1
- package/dist/src/fiat/FiatConsentCheck.d.ts +0 -11
- package/dist/src/fiat/FiatConsentCheck.d.ts.map +0 -1
- package/dist/src/fiat/FiatFormConsent.d.ts +0 -6
- package/dist/src/fiat/FiatFormConsent.d.ts.map +0 -1
- package/dist/src/fiat/FiatQuotePrice.d.ts +0 -12
- package/dist/src/fiat/FiatQuotePrice.d.ts.map +0 -1
- package/dist/src/fiat/providerFailover.d.ts +0 -12
- package/dist/src/fiat/providerFailover.d.ts.map +0 -1
- package/dist/src/fiat/providers/StripeSessionAuthController.d.ts +0 -29
- package/dist/src/fiat/providers/StripeSessionAuthController.d.ts.map +0 -1
- package/dist/src/fiat/providers/moonpayTrace.d.ts +0 -25
- package/dist/src/fiat/providers/moonpayTrace.d.ts.map +0 -1
- package/dist/src/fiat/useQuoteableCeiling.d.ts +0 -28
- package/dist/src/fiat/useQuoteableCeiling.d.ts.map +0 -1
- /package/dist/{chunk-GG2WCQ6N.js.map → chunk-3ZNAGQHD.js.map} +0 -0
|
@@ -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,+BA+B3B"}
|
|
@@ -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,15 @@
|
|
|
1
|
+
import type { FiatFlow, FiatStepResponse } from '@funkit/connect-core';
|
|
2
|
+
import { type MoonPayPreparedPayment } from '../fiat/providers/moonpay';
|
|
3
|
+
import type { StripeOnrampClient } from '../fiat/providers/stripeOnramp';
|
|
1
4
|
import type { DepositAmountEntryConfig, DepositCheckoutConfig, DepositClientMetadata, DepositFlowCallbacks, DepositInitialAmount, FiatRailConfig } from './depositFlowConfig';
|
|
2
5
|
import type { DepositReceipt } from './useDepositReceivedToast';
|
|
6
|
+
/** Replace an executable verify response with the complete payment artifact retained from quote. */
|
|
7
|
+
export declare function promoteMoonPayPreparedPayment(response: FiatStepResponse, prepared: MoonPayPreparedPayment): FiatStepResponse;
|
|
8
|
+
/**
|
|
9
|
+
* Logs the OTP page's decisions once per round and once per rejected code.
|
|
10
|
+
* - From render, every keystroke in the code boxes re-sent them.
|
|
11
|
+
*/
|
|
12
|
+
export declare function useSessionAuthLogs(flow: FiatFlow, stripeOnramp: StripeOnrampClient | undefined): void;
|
|
3
13
|
export declare function FiatDepositAmountStep({ config, fiat, checkoutConfig, dynamicRoutingId, depositAddressOverride, checkoutId, clientMetadata, initialAmount, lockAmount, callbacks, showDepositToast, onCloseFlow, }: {
|
|
4
14
|
config: DepositAmountEntryConfig;
|
|
5
15
|
fiat: FiatRailConfig;
|
|
@@ -15,7 +25,7 @@ export declare function FiatDepositAmountStep({ config, fiat, checkoutConfig, dy
|
|
|
15
25
|
initialAmount?: DepositInitialAmount;
|
|
16
26
|
/** Locks the prefilled amount against numpad and quick-amount edits. */
|
|
17
27
|
lockAmount?: boolean;
|
|
18
|
-
callbacks: Pick<DepositFlowCallbacks, 'onDepositSubmitted' | 'onDepositError'>;
|
|
28
|
+
callbacks: Pick<DepositFlowCallbacks, 'onDepositSubmitted' | 'onDepositError' | 'onPaymentMethodPress'>;
|
|
19
29
|
/** Raises the SDK's deposit confirmation, which outlives this screen. */
|
|
20
30
|
showDepositToast: (receipt: DepositReceipt) => void;
|
|
21
31
|
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","sourceRoot":"","sources":["../../../src/flow/FiatDepositAmountStep.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAGV,QAAQ,EAGR,gBAAgB,EAWjB,MAAM,sBAAsB,CAAA;AA0D7B,OAAO,EACL,KAAK,sBAAsB,EAG5B,MAAM,2BAA2B,CAAA;AAkClC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAA;AAwFxE,OAAO,KAAK,EACV,wBAAwB,EACxB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EAEpB,cAAc,EACf,MAAM,qBAAqB,CAAA;AAC5B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AA4C/D,oGAAoG;AACpG,wBAAgB,6BAA6B,CAC3C,QAAQ,EAAE,gBAAgB,EAC1B,QAAQ,EAAE,sBAAsB,GAC/B,gBAAgB,CA8BlB;AA0ID;;;GAGG;AACH,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,QAAQ,EACd,YAAY,EAAE,kBAAkB,GAAG,SAAS,GAC3C,IAAI,CAqDN;AAED,wBAAgB,qBAAqB,CAAC,EACpC,MAAM,EACN,IAAI,EACJ,cAAc,EACd,gBAAgB,EAChB,sBAAsB,EACtB,UAAU,EACV,cAAc,EACd,aAAa,EACb,UAAU,EACV,SAAS,EACT,gBAAgB,EAChB,WAAW,GACZ,EAAE;IACD,MAAM,EAAE,wBAAwB,CAAA;IAChC,IAAI,EAAE,cAAc,CAAA;IACpB,cAAc,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACjD,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAA;IACpC,mEAAmE;IACnE,sBAAsB,CAAC,EAAE,MAAM,CAAA;IAC/B,UAAU,EAAE,MAAM,CAAA;IAClB,cAAc,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACjD;;OAEG;IACH,aAAa,CAAC,EAAE,oBAAoB,CAAA;IACpC,wEAAwE;IACxE,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,SAAS,EAAE,IAAI,CACb,oBAAoB,EACpB,oBAAoB,GAAG,gBAAgB,GAAG,sBAAsB,CACjE,CAAA;IACD,yEAAyE;IACzE,gBAAgB,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAA;IACnD,WAAW,EAAE,MAAM,IAAI,CAAA;CACxB,+BAoGA"}
|
|
@@ -15,6 +15,9 @@ export interface FlowPageProps {
|
|
|
15
15
|
* leaving and the one arriving stand in it together, and a page that arrived
|
|
16
16
|
* forward stays over one that is returning. A nudged page is a block in its
|
|
17
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`).
|
|
18
21
|
*/
|
|
19
22
|
export declare function FlowPage({ motion, turn, animateIn, children, }: FlowPageProps): import("react").JSX.Element;
|
|
20
23
|
//# sourceMappingURL=FlowPage.d.ts.map
|
|
@@ -1 +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;
|
|
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
|
|
@@ -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;IACf;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAA;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{ 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,EACL,KAAK,eAAe,EACpB,KAAK,eAAe,EAIrB,MA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AwC,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,+BAgZA;AA4KD,wBAAgB,aAAa,IAAI,sBAAsB,CAMtD"}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import type { BackdropBlurRenderer } from './FlowSheet';
|
|
2
2
|
/**
|
|
3
|
-
* The corner
|
|
4
|
-
*
|
|
5
|
-
*
|
|
3
|
+
* The device's own corner, which a full-bleed slab meets without a seam. Taken
|
|
4
|
+
* by whatever cannot follow the screen's corner: everything React Native draws
|
|
5
|
+
* for the material, and the native material below iOS 26.
|
|
6
6
|
*/
|
|
7
7
|
export declare const MATERIAL_CORNER_RADIUS = 65;
|
|
8
8
|
/**
|
|
9
9
|
* The material under every translucent flow surface: a blur of the host app
|
|
10
|
-
* with iOS 26 Liquid Glass refracting through it
|
|
11
|
-
* SDK's pod.
|
|
10
|
+
* with iOS 26 Liquid Glass refracting through it, drawn as one native view
|
|
11
|
+
* where the binary links the SDK's pod. Without the glass the blur stands
|
|
12
|
+
* alone and the surface paints its fill.
|
|
12
13
|
*
|
|
13
14
|
* Dark or light as the theme's modal fill is, since the glass drops that fill
|
|
14
15
|
* out from under the surface and stands in for it.
|
|
@@ -17,7 +18,7 @@ export declare function SheetMaterial({ corner, }: {
|
|
|
17
18
|
/**
|
|
18
19
|
* A fixed corner for the whole material, for a surface that never meets the
|
|
19
20
|
* screen edge (a drawer stacked on the sheet). Left out, the material takes
|
|
20
|
-
* the screen's corner:
|
|
21
|
+
* the screen's corner: concentric with it on iOS 26, the device's below.
|
|
21
22
|
*/
|
|
22
23
|
corner?: number;
|
|
23
24
|
}): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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;AAoBxC;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAC,EAC5B,MAAM,GACP,EAAE;IACD;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,+BAoBA;AAgCD,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. */
|
|
@@ -159,9 +163,10 @@ export interface FiatDepositMethodOptions {
|
|
|
159
163
|
/** Ticker the onramp quote API uses for the checkout target. */
|
|
160
164
|
fiatTargetAssetTicker?: string;
|
|
161
165
|
/**
|
|
162
|
-
* Test tooling for exercising one provider integration at a time
|
|
163
|
-
*
|
|
164
|
-
*
|
|
166
|
+
* Test tooling for exercising one provider integration at a time, against
|
|
167
|
+
* any backend, production included. It only narrows routing, so a host that
|
|
168
|
+
* ships it pinned limits its own buyers to those providers. The prefix keeps
|
|
169
|
+
* it out of a host's tab-completion for that reason.
|
|
165
170
|
*/
|
|
166
171
|
unstable_routingOverrides?: FiatRoutingOverrides;
|
|
167
172
|
}
|
|
@@ -282,6 +287,14 @@ export interface DepositFlowCallbacks {
|
|
|
282
287
|
onOpen?: () => void;
|
|
283
288
|
onClose?: () => void;
|
|
284
289
|
onCheckoutBlocked?: () => void;
|
|
290
|
+
/**
|
|
291
|
+
* The user pressed the payment method on the amount screen. Supplying this
|
|
292
|
+
* draws the method as a pressable row; the flow stays open, so the host can
|
|
293
|
+
* present its own method choice over it. `amount` is what the user has
|
|
294
|
+
* typed, in the currency it will be quoted in; it is absent while nothing
|
|
295
|
+
* quotable is entered or that currency is still unknown.
|
|
296
|
+
*/
|
|
297
|
+
onPaymentMethodPress?: (amount: DepositInitialAmount | undefined) => void;
|
|
285
298
|
/**
|
|
286
299
|
* The deposit is on its way and the SDK is finished with it: the flow has
|
|
287
300
|
* closed and its confirmation is up. `orderId` is the provider's; `method`
|
|
@@ -292,7 +305,11 @@ export interface DepositFlowCallbacks {
|
|
|
292
305
|
onDepositSubmitted?: (orderId: string, method: DepositMethod['type']) => void;
|
|
293
306
|
/**
|
|
294
307
|
* The deposit ended short of an order, or the order failed. `cancelled`
|
|
295
|
-
* is the user leaving; see {@link FunkitFlowError} for the rest.
|
|
308
|
+
* is the user leaving; see {@link FunkitFlowError} for the rest. Once another
|
|
309
|
+
* `begin*` has opened, whether it replaced this session or was started from
|
|
310
|
+
* its `onClose`, this session reports no further errors and no `onClose`:
|
|
311
|
+
* anything its step sends as it unmounts describes a sheet the host no
|
|
312
|
+
* longer shows. `onDepositSubmitted` is never held back.
|
|
296
313
|
*/
|
|
297
314
|
onDepositError?: (error: FunkitFlowError) => void;
|
|
298
315
|
/**
|
|
@@ -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,mEAAmE;IACnE,mBAAmB,CAAC,EAAE,GAAG,MAAM,EAAE,CAAA;IACjC;;;;OAIG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAA;CAClC;AAED;;;;;GAKG;AACH,M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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"}
|
|
@@ -17,7 +17,9 @@ export type FunkitFlowErrorCode =
|
|
|
17
17
|
/** The config cannot open a flow; fix the integration. */
|
|
18
18
|
| 'misconfigured'
|
|
19
19
|
/** Every provider, or the payment instrument, declined. */
|
|
20
|
-
| 'payment_declined'
|
|
20
|
+
| 'payment_declined'
|
|
21
|
+
/** A provider refused this attempt; a fresh one may reach another provider. */
|
|
22
|
+
| 'provider_unavailable' | 'unknown';
|
|
21
23
|
export interface FunkitFlowError {
|
|
22
24
|
code: FunkitFlowErrorCode;
|
|
23
25
|
/** Trying again, unchanged, has a chance. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flowError.d.ts","sourceRoot":"","sources":["../../../src/flow/flowError.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,mBAAmB;AAC7B,iEAAiE;AAC/D,WAAW;AACb,6DAA6D;GAC3D,SAAS;AACX,sEAAsE;GACpE,2BAA2B;AAC7B,8EAA8E;GAC5E,iBAAiB;AACnB,kCAAkC;GAChC,iBAAiB;AACnB,0DAA0D;GACxD,eAAe;AACjB,2DAA2D;GACzD,kBAAkB,
|
|
1
|
+
{"version":3,"file":"flowError.d.ts","sourceRoot":"","sources":["../../../src/flow/flowError.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,mBAAmB;AAC7B,iEAAiE;AAC/D,WAAW;AACb,6DAA6D;GAC3D,SAAS;AACX,sEAAsE;GACpE,2BAA2B;AAC7B,8EAA8E;GAC5E,iBAAiB;AACnB,kCAAkC;GAChC,iBAAiB;AACnB,0DAA0D;GACxD,eAAe;AACjB,2DAA2D;GACzD,kBAAkB;AACpB,+EAA+E;GAC7E,sBAAsB,GACtB,SAAS,CAAA;AAEb,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,mBAAmB,CAAA;IACzB,6CAA6C;IAC7C,WAAW,EAAE,OAAO,CAAA;IACpB,sDAAsD;IACtD,OAAO,EAAE,OAAO,CAAA;IAChB,4BAA4B;IAC5B,OAAO,EAAE,MAAM,CAAA;CAChB;AAiBD,8FAA8F;AAC9F,wBAAgB,SAAS,CACvB,IAAI,EAAE,mBAAmB,EACzB,OAAO,EAAE,MAAM,EACf,KAAK,GAAE,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,aAAa,GAAG,SAAS,CAAC,CAAM,GACpE,eAAe,CAEjB;AAED,mEAAmE;AACnE,qBAAa,wBAAyB,SAAQ,KAAM,YAAW,eAAe;IAC5E,QAAQ,CAAC,IAAI,mBAAkB;IAC/B,QAAQ,CAAC,WAAW,SAAQ;IAC5B,QAAQ,CAAC,OAAO,QAAO;gBAEX,OAAO,EAAE,MAAM;CAI5B;AAED;;;;GAIG;AACH,MAAM,MAAM,0BAA0B,GAClC,iBAAiB,GACjB,oBAAoB,GACpB,WAAW,CAAA;AAQf,qFAAqF;AACrF,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,OAAO,GACb,0BAA0B,GAAG,SAAS,CAQxC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
type HostCallbackGate<T> = (name: keyof T & string) => boolean;
|
|
1
2
|
/**
|
|
2
3
|
* Wraps every function on a host callback object so an integrator's throw stays
|
|
3
4
|
* the integrator's problem.
|
|
@@ -6,6 +7,12 @@
|
|
|
6
7
|
* those sites can't defend themselves usefully — `onClose` runs inside a
|
|
7
8
|
* `setState` updater, `onOpen` runs before the sheet is open — and a call site
|
|
8
9
|
* added later would otherwise be unguarded by default.
|
|
10
|
+
*
|
|
11
|
+
* `shouldInvoke` lets a flow hold back callbacks that stopped meaning anything
|
|
12
|
+
* after a lifecycle transition, while outcomes of work still in flight pass. It
|
|
13
|
+
* runs inside the guard: a throw in the gate is caught and logged like a host
|
|
14
|
+
* throw, and the callback is skipped, rather than reaching the SDK call site.
|
|
9
15
|
*/
|
|
10
|
-
export declare function guardHostCallbacks<T extends object>(callbacks: T): T;
|
|
16
|
+
export declare function guardHostCallbacks<T extends object>(callbacks: T, shouldInvoke?: HostCallbackGate<T>): T;
|
|
17
|
+
export {};
|
|
11
18
|
//# sourceMappingURL=guardHostCallbacks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"guardHostCallbacks.d.ts","sourceRoot":"","sources":["../../../src/flow/guardHostCallbacks.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"guardHostCallbacks.d.ts","sourceRoot":"","sources":["../../../src/flow/guardHostCallbacks.ts"],"names":[],"mappings":"AAGA,KAAK,gBAAgB,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,GAAG,MAAM,KAAK,OAAO,CAAA;AAE9D;;;;;;;;;;;;;GAaG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,MAAM,EACjD,SAAS,EAAE,CAAC,EACZ,YAAY,GAAE,gBAAgB,CAAC,CAAC,CAAc,GAC7C,CAAC,CAaH"}
|
|
@@ -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"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type SharedValue } from 'react-native-reanimated';
|
|
3
|
+
/** How far in from the left edge a swipe back may start, as UIKit's pop. */
|
|
4
|
+
export declare const SWIPE_BACK_EDGE = 30;
|
|
5
|
+
/** A flick this fast commits however little of the page it moved. */
|
|
6
|
+
export declare const SWIPE_BACK_FLICK = 500;
|
|
7
|
+
/**
|
|
8
|
+
* Whether a swipe released at `translationX`, moving at `velocityX`, goes back.
|
|
9
|
+
*
|
|
10
|
+
* - A flick right commits from anywhere; a slow drag must pass halfway.
|
|
11
|
+
* - A drag past halfway that is thrown back left cancels, as UIKit's does.
|
|
12
|
+
*/
|
|
13
|
+
export declare function shouldCommitSwipeBack(translationX: number, velocityX: number, width: number): boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Lets a swipe from the left edge do what `back` does on the page it is drawn
|
|
16
|
+
* in. Off, the page ignores the swipe.
|
|
17
|
+
*/
|
|
18
|
+
export declare function useSwipeBack(back: () => void, enabled?: boolean): void;
|
|
19
|
+
/**
|
|
20
|
+
* A page that follows a finger dragged in from its left edge, and goes back
|
|
21
|
+
* once the drag is let go past the point of committing.
|
|
22
|
+
*
|
|
23
|
+
* `swiped` tells the page's exit that it already left rightwards under the
|
|
24
|
+
* finger, so the turn carries it on rather than back across the screen.
|
|
25
|
+
*/
|
|
26
|
+
export declare function SwipeBackSurface({ swiped, children, }: {
|
|
27
|
+
swiped: SharedValue<boolean>;
|
|
28
|
+
children: ReactNode;
|
|
29
|
+
}): import("react").JSX.Element;
|
|
30
|
+
//# sourceMappingURL=swipeBack.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"swipeBack.d.ts","sourceRoot":"","sources":["../../../src/flow/swipeBack.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,SAAS,EASf,MAAM,OAAO,CAAA;AAGd,OAAiB,EACf,KAAK,WAAW,EAKjB,MAAM,yBAAyB,CAAA;AAIhC,4EAA4E;AAC5E,eAAO,MAAM,eAAe,KAAK,CAAA;AAKjC,qEAAqE;AACrE,eAAO,MAAM,gBAAgB,MAAM,CAAA;AAEnC;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,MAAM,GACZ,OAAO,CAST;AAMD;;;GAGG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,IAAI,EAAE,OAAO,UAAO,QAa5D;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,MAAM,EACN,QAAQ,GACT,EAAE;IACD,MAAM,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;IAC5B,QAAQ,EAAE,SAAS,CAAA;CACpB,+BA+EA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDepositReceivedToast.d.ts","sourceRoot":"","sources":["../../../src/flow/useDepositReceivedToast.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAA4C,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"useDepositReceivedToast.d.ts","sourceRoot":"","sources":["../../../src/flow/useDepositReceivedToast.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAA4C,MAAM,OAAO,CAAA;AAMhF,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAU7D,0EAA0E;AAC1E,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;CACf;AAED,UAAU,oBAAoB;IAC5B,6EAA6E;IAC7E,YAAY,EAAE,SAAS,CAAA;IACvB,gBAAgB,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAA;IACnD,iBAAiB,EAAE,MAAM,IAAI,CAAA;CAC9B;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,IAAI,oBAAoB,CAiD9D"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { type RefObject } from 'react';
|
|
2
|
+
export interface FlowTransitionOptions {
|
|
3
|
+
/** Run the sheet's own motion. `false` lands on the end state at once. */
|
|
4
|
+
animated?: boolean;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Host control over the open flow. Each call resolves once its transition has
|
|
8
|
+
* finished: `true` when it happened, `false` when there was nothing to do or
|
|
9
|
+
* the flow refused it.
|
|
10
|
+
*/
|
|
11
|
+
export interface FlowTransitions {
|
|
12
|
+
/**
|
|
13
|
+
* Ends the session and fires `onClose`. Refused while a step holds the
|
|
14
|
+
* sheet's dismissal (see `useLockFlowDismiss`).
|
|
15
|
+
*/
|
|
16
|
+
close: (options?: FlowTransitionOptions) => Promise<boolean>;
|
|
17
|
+
/**
|
|
18
|
+
* Takes the sheet off screen and keeps the session mounted, so what the user
|
|
19
|
+
* entered survives. `onClose` does not fire.
|
|
20
|
+
*/
|
|
21
|
+
hide: (options?: FlowTransitionOptions) => Promise<boolean>;
|
|
22
|
+
/** Brings a hidden session back. */
|
|
23
|
+
resume: (options?: FlowTransitionOptions) => Promise<boolean>;
|
|
24
|
+
isHidden: boolean;
|
|
25
|
+
}
|
|
26
|
+
/** The one call `FlowSheet` takes from outside its own open state. */
|
|
27
|
+
export interface FlowSheetControl {
|
|
28
|
+
dismiss: (animated: boolean) => void;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Hidden is kept per session, so a `begin*` over a hidden session opens the new
|
|
32
|
+
* one visible and the hidden one is simply gone.
|
|
33
|
+
*/
|
|
34
|
+
export declare function useFlowTransitions({ isOpen, session, dismissLocked, closeFlow, sheet, }: {
|
|
35
|
+
isOpen: boolean;
|
|
36
|
+
session: number;
|
|
37
|
+
dismissLocked: boolean;
|
|
38
|
+
closeFlow: () => void;
|
|
39
|
+
sheet: RefObject<FlowSheetControl | null>;
|
|
40
|
+
}): {
|
|
41
|
+
transitions: FlowTransitions;
|
|
42
|
+
isHidden: boolean;
|
|
43
|
+
animated: boolean;
|
|
44
|
+
onSheetIndexChange: (index: number) => void;
|
|
45
|
+
onFlowClosed: () => void;
|
|
46
|
+
};
|
|
47
|
+
//# sourceMappingURL=useFlowTransitions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFlowTransitions.d.ts","sourceRoot":"","sources":["../../../src/flow/useFlowTransitions.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,SAAS,EAMf,MAAM,OAAO,CAAA;AAId,MAAM,WAAW,qBAAqB;IACpC,0EAA0E;IAC1E,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,KAAK,EAAE,CAAC,OAAO,CAAC,EAAE,qBAAqB,KAAK,OAAO,CAAC,OAAO,CAAC,CAAA;IAC5D;;;OAGG;IACH,IAAI,EAAE,CAAC,OAAO,CAAC,EAAE,qBAAqB,KAAK,OAAO,CAAC,OAAO,CAAC,CAAA;IAC3D,oCAAoC;IACpC,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,qBAAqB,KAAK,OAAO,CAAC,OAAO,CAAC,CAAA;IAC7D,QAAQ,EAAE,OAAO,CAAA;CAClB;AAED,sEAAsE;AACtE,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAA;CACrC;AAID;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,MAAM,EACN,OAAO,EACP,aAAa,EACb,SAAS,EACT,KAAK,GACN,EAAE;IACD,MAAM,EAAE,OAAO,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,aAAa,EAAE,OAAO,CAAA;IACtB,SAAS,EAAE,MAAM,IAAI,CAAA;IACrB,KAAK,EAAE,SAAS,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAA;CAC1C;;;;gCAiGW,MAAM;;EA6BjB"}
|
|
@@ -9,8 +9,8 @@ import { Animated } from 'react-native';
|
|
|
9
9
|
* under `enableDynamicSizing`, where the max snap point is already the content
|
|
10
10
|
* height — a no-op, verified on device even with a `BottomSheetTextInput`.
|
|
11
11
|
*
|
|
12
|
-
* iOS
|
|
13
|
-
* lifts in sync); Android only reliably emits the `Did` events.
|
|
12
|
+
* iOS is read from `keyboardWillChangeFrame` (ahead of the keyboard animation,
|
|
13
|
+
* so the sheet lifts in sync); Android only reliably emits the `Did` events.
|
|
14
14
|
*/
|
|
15
15
|
export declare function useKeyboardHeight(enabled: boolean): number;
|
|
16
16
|
export interface KeyboardFollow {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useKeyboardHeight.d.ts","sourceRoot":"","sources":["../../../src/flow/useKeyboardHeight.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"useKeyboardHeight.d.ts","sourceRoot":"","sources":["../../../src/flow/useKeyboardHeight.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EAOT,MAAM,cAAc,CAAA;AAErB;;;;;;;;;;;;GAYG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAE1D;AAED,MAAM,WAAW,cAAc;IAC7B,mEAAmE;IACnE,MAAM,EAAE,MAAM,CAAA;IACd;;;;;OAKG;IACH,QAAQ,EAAE,QAAQ,CAAC,KAAK,CAAA;CACzB;AAOD;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,GAAG,cAAc,CAqElE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v2DepositCustomers.d.ts","sourceRoot":"","sources":["../../../src/flow/v2DepositCustomers.ts"],"names":[],"mappings":"AASA,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAE3D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validateClientMetadata.d.ts","sourceRoot":"","sources":["../../../src/flow/validateClientMetadata.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAA;AAGhE;;;GAGG;AACH,wBAAgB,sBAAsB,CACpC,cAAc,EAAE,qBAAqB,GAAG,SAAS,GAChD,qBAAqB,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"validateClientMetadata.d.ts","sourceRoot":"","sources":["../../../src/flow/validateClientMetadata.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAA;AAGhE;;;GAGG;AACH,wBAAgB,sBAAsB,CACpC,cAAc,EAAE,qBAAqB,GAAG,SAAS,GAChD,qBAAqB,GAAG,SAAS,CAmDnC"}
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* more, because it is the one press a buyer needs to feel they have made.
|
|
4
|
-
*/
|
|
5
|
-
export declare const ACTION_PRESSED_SCALE = 0.95;
|
|
6
|
-
export declare const ACTION_PRESSED_DIM = 0.85;
|
|
1
|
+
export declare const ACTION_PRESSED_SCALE = 0.96;
|
|
2
|
+
export declare const ACTION_PRESSED_DIM = 0.92;
|
|
7
3
|
export interface PressScaleOptions {
|
|
8
4
|
/** Scale at the bottom of the press. */
|
|
9
5
|
scale?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePressScale.d.ts","sourceRoot":"","sources":["../../../src/hooks/usePressScale.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"usePressScale.d.ts","sourceRoot":"","sources":["../../../src/hooks/usePressScale.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,oBAAoB,OAAO,CAAA;AACxC,eAAO,MAAM,kBAAkB,OAAO,CAAA;AAEtC,MAAM,WAAW,iBAAiB;IAChC,wCAAwC;IACxC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,iFAAiF;IACjF,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,+EAA+E;IAC/E,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,aAAa,CAAC,EAC5B,KAAqB,EACrB,GAAiB,EACjB,OAAe,GAChB,GAAE,iBAAsB;;;;;;;;;EA+BxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assetLogos.d.ts","sourceRoot":"","sources":["../../../src/icons/assetLogos.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"assetLogos.d.ts","sourceRoot":"","sources":["../../../src/icons/assetLogos.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA+FlD,CAAA;AAED,4DAA4D;AAC5D,eAAO,MAAM,mBAAmB,qDACoB,CAAA;AAEpD;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEtD"}
|
|
@@ -18,6 +18,8 @@ export interface FunkitIdentity {
|
|
|
18
18
|
prefillFiatEmail?: string;
|
|
19
19
|
/** See {@link FunkitConfig.hideCryptoDeposit}. Defaulted to false here. */
|
|
20
20
|
hideCryptoDeposit: boolean;
|
|
21
|
+
/** See {@link FunkitConfig.hideFiatDeposit}. Defaulted to false here. */
|
|
22
|
+
hideFiatDeposit: boolean;
|
|
21
23
|
/**
|
|
22
24
|
* Mints the identity assertion; resolved from
|
|
23
25
|
* {@link FunkitConfig.getIdentityAssertionRef} at call time.
|
|
@@ -69,6 +71,12 @@ export interface FunkitConfig {
|
|
|
69
71
|
* runs, since the fiat rails derive their recipient from it.
|
|
70
72
|
*/
|
|
71
73
|
hideCryptoDeposit?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Hides the cash (Swapped) payment methods on Add money, leaving the Crypto
|
|
76
|
+
* row. The amount-first fiat rail is unaffected; leave fiat out of
|
|
77
|
+
* `DepositFlowConfig.methods` for that.
|
|
78
|
+
*/
|
|
79
|
+
hideFiatDeposit?: boolean;
|
|
72
80
|
/**
|
|
73
81
|
* Drop the "powered by Fun" mark from the foot of the flow. The design shows
|
|
74
82
|
* it by default; a host whose agreement covers unbranded use turns it off.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IdentityContext.d.ts","sourceRoot":"","sources":["../../../src/identity/IdentityContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAA6B,MAAM,OAAO,CAAA;AAIjE;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAC7B,sBAAsB;IACtB,MAAM,EAAE,MAAM,CAAA;IACd,sCAAsC;IACtC,MAAM,EAAE,MAAM,CAAA;IACd,8DAA8D;IAC9D,aAAa,EAAE,MAAM,CAAA;IACrB,6DAA6D;IAC7D,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,iFAAiF;IACjF,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,2EAA2E;IAC3E,iBAAiB,EAAE,OAAO,CAAA;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AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,YAAY,EACpB,aAAa,EAAE,MAAM,GAAG,SAAS,GAChC,cAAc,CAehB;AAkBD,wBAAgB,sBAAsB,CAAC,EACrC,QAAQ,EACR,QAAQ,GACT,EAAE;IACD,QAAQ,EAAE,cAAc,CAAA;IACxB,QAAQ,EAAE,SAAS,CAAA;CACpB,+BAMA;AAED,wBAAgB,iBAAiB,IAAI,cAAc,CAQlD"}
|
|
@@ -5,8 +5,9 @@ import type { LogRecord, LogTransport, TrackingConsent } from '@funkit/connect-c
|
|
|
5
5
|
* pulls in native modules (autolinking, pods, no Expo Go); a plain `fetch` to
|
|
6
6
|
* the logs intake needs none, so this works in Expo Go and any RN runtime.
|
|
7
7
|
*
|
|
8
|
-
* Records are batched and flushed
|
|
9
|
-
*
|
|
8
|
+
* Records are batched and flushed on a timer (or when the batch fills). Each
|
|
9
|
+
* batch retries with backoff, then waits for the next flush if the intake is
|
|
10
|
+
* still unreachable; nothing a send does can throw back into a user flow.
|
|
10
11
|
* Authenticates with the public Datadog **client token** via `dd-api-key`
|
|
11
12
|
* (the same credential the browser SDK uses — safe to embed), so no server-side
|
|
12
13
|
* API key is needed.
|
|
@@ -32,13 +33,19 @@ export declare class DatadogHttpLogTransport implements LogTransport {
|
|
|
32
33
|
private readonly maxBatchSize;
|
|
33
34
|
private env;
|
|
34
35
|
private consent;
|
|
36
|
+
private consentGeneration;
|
|
35
37
|
private queue;
|
|
36
38
|
private flushTimer;
|
|
39
|
+
private isSending;
|
|
37
40
|
constructor(options: DatadogHttpLogTransportOptions);
|
|
38
41
|
setEnv(environment: string): void;
|
|
39
42
|
setTrackingConsent(consent: TrackingConsent): void;
|
|
40
43
|
log({ level, title, context, error }: LogRecord): void;
|
|
41
|
-
/**
|
|
44
|
+
/**
|
|
45
|
+
* Send the oldest batch, then the next once it lands. One send at a time:
|
|
46
|
+
* a failed batch goes back to the front of the queue, so the cap always
|
|
47
|
+
* drops the oldest records.
|
|
48
|
+
*/
|
|
42
49
|
flush(): void;
|
|
43
50
|
private scheduleFlush;
|
|
44
51
|
private clearTimer;
|