@funkit/connect-rn 4.3.0 → 6.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 +166 -0
- package/dist/{chunk-PIAR365R.js → chunk-4ELC2W4D.js} +492 -58
- package/dist/chunk-4ELC2W4D.js.map +7 -0
- package/dist/{chunk-5YSMFPBG.js → chunk-XTK6HGJL.js} +2 -2
- package/dist/clients/lighter.js +1 -1
- package/dist/clients/nado.js +4 -4
- package/dist/clients/nado.js.map +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7731 -3084
- package/dist/index.js.map +4 -4
- package/dist/src/components/ActionLoading.d.ts +19 -0
- package/dist/src/components/ActionLoading.d.ts.map +1 -0
- package/dist/src/components/DepositActionMotion.d.ts +43 -0
- package/dist/src/components/DepositActionMotion.d.ts.map +1 -0
- package/dist/src/components/LoadingSpinner.d.ts +23 -0
- package/dist/src/components/LoadingSpinner.d.ts.map +1 -0
- package/dist/src/components/PillButton.d.ts +1 -1
- package/dist/src/components/PillButton.d.ts.map +1 -1
- package/dist/src/components/v2/AccountBalanceChip.d.ts.map +1 -1
- package/dist/src/components/v2/AmountDisplay.d.ts +2 -8
- package/dist/src/components/v2/AmountDisplay.d.ts.map +1 -1
- package/dist/src/components/v2/NumPad.d.ts +3 -4
- package/dist/src/components/v2/NumPad.d.ts.map +1 -1
- package/dist/src/components/v2/QuickAmountsRow.d.ts +3 -3
- package/dist/src/components/v2/QuickAmountsRow.d.ts.map +1 -1
- package/dist/src/fiat/FiatActionButton.d.ts +3 -0
- package/dist/src/fiat/FiatActionButton.d.ts.map +1 -0
- package/dist/src/fiat/FiatBirthDateField.d.ts +9 -0
- package/dist/src/fiat/FiatBirthDateField.d.ts.map +1 -0
- package/dist/src/fiat/FiatChoiceField.d.ts +16 -0
- package/dist/src/fiat/FiatChoiceField.d.ts.map +1 -0
- package/dist/src/fiat/FiatChoiceList.d.ts +19 -0
- package/dist/src/fiat/FiatChoiceList.d.ts.map +1 -0
- package/dist/src/fiat/FiatContactScreen.d.ts +17 -1
- package/dist/src/fiat/FiatContactScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatCountrySheet.d.ts +18 -0
- package/dist/src/fiat/FiatCountrySheet.d.ts.map +1 -0
- package/dist/src/fiat/FiatDocumentCaptureStep.d.ts +9 -0
- package/dist/src/fiat/FiatDocumentCaptureStep.d.ts.map +1 -0
- package/dist/src/fiat/FiatErrorNotice.d.ts +4 -0
- package/dist/src/fiat/FiatErrorNotice.d.ts.map +1 -0
- package/dist/src/fiat/FiatFormAdvance.d.ts +18 -6
- package/dist/src/fiat/FiatFormAdvance.d.ts.map +1 -1
- package/dist/src/fiat/FiatFormFieldRow.d.ts +10 -5
- package/dist/src/fiat/FiatFormFieldRow.d.ts.map +1 -1
- package/dist/src/fiat/FiatFormScreen.d.ts +12 -3
- package/dist/src/fiat/FiatFormScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatIdentityStep.d.ts +3 -0
- package/dist/src/fiat/FiatIdentityStep.d.ts.map +1 -0
- package/dist/src/fiat/FiatKycFieldControl.d.ts +10 -0
- package/dist/src/fiat/FiatKycFieldControl.d.ts.map +1 -0
- package/dist/src/fiat/FiatKycIntroScreen.d.ts +7 -10
- package/dist/src/fiat/FiatKycIntroScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatKycNotice.d.ts +10 -5
- package/dist/src/fiat/FiatKycNotice.d.ts.map +1 -1
- package/dist/src/fiat/FiatKycOptionRow.d.ts +15 -0
- package/dist/src/fiat/FiatKycOptionRow.d.ts.map +1 -0
- package/dist/src/fiat/FiatKycOptionsScreen.d.ts +21 -0
- package/dist/src/fiat/FiatKycOptionsScreen.d.ts.map +1 -0
- package/dist/src/fiat/FiatKycOutcomeScreen.d.ts +11 -0
- package/dist/src/fiat/FiatKycOutcomeScreen.d.ts.map +1 -0
- package/dist/src/fiat/FiatKycPosition.d.ts +5 -0
- package/dist/src/fiat/FiatKycPosition.d.ts.map +1 -0
- package/dist/src/fiat/FiatOtpScreen.d.ts +7 -1
- package/dist/src/fiat/FiatOtpScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatPendingOrderScreen.d.ts +7 -0
- package/dist/src/fiat/FiatPendingOrderScreen.d.ts.map +1 -0
- package/dist/src/fiat/FiatPhoneField.d.ts +3 -2
- package/dist/src/fiat/FiatPhoneField.d.ts.map +1 -1
- package/dist/src/fiat/FiatSsnField.d.ts +13 -0
- package/dist/src/fiat/FiatSsnField.d.ts.map +1 -0
- package/dist/src/fiat/FiatStatusScreen.d.ts +7 -2
- package/dist/src/fiat/FiatStatusScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatSubmissionIndicator.d.ts +2 -0
- package/dist/src/fiat/FiatSubmissionIndicator.d.ts.map +1 -0
- package/dist/src/fiat/FiatTermsNotice.d.ts +1 -7
- package/dist/src/fiat/FiatTermsNotice.d.ts.map +1 -1
- package/dist/src/fiat/KycGlassBackdrop.d.ts +3 -0
- package/dist/src/fiat/KycGlassBackdrop.d.ts.map +1 -0
- package/dist/src/fiat/SurfaceSlot.d.ts +17 -4
- package/dist/src/fiat/SurfaceSlot.d.ts.map +1 -1
- package/dist/src/fiat/countrySections.d.ts +25 -0
- package/dist/src/fiat/countrySections.d.ts.map +1 -0
- package/dist/src/fiat/formLayout.d.ts +5 -6
- package/dist/src/fiat/formLayout.d.ts.map +1 -1
- package/dist/src/fiat/formValidationError.d.ts +13 -0
- package/dist/src/fiat/formValidationError.d.ts.map +1 -0
- package/dist/src/fiat/isAdditionalKycForm.d.ts +8 -0
- package/dist/src/fiat/isAdditionalKycForm.d.ts.map +1 -0
- package/dist/src/fiat/kycFieldValidators.d.ts +11 -0
- package/dist/src/fiat/kycFieldValidators.d.ts.map +1 -0
- package/dist/src/fiat/kycFormAttempt.d.ts +34 -0
- package/dist/src/fiat/kycFormAttempt.d.ts.map +1 -0
- package/dist/src/fiat/kycFormPosition.d.ts +4 -0
- package/dist/src/fiat/kycFormPosition.d.ts.map +1 -0
- package/dist/src/fiat/kycFormState.d.ts +41 -0
- package/dist/src/fiat/kycFormState.d.ts.map +1 -0
- package/dist/src/fiat/kycFormTheme.d.ts +21 -13
- package/dist/src/fiat/kycFormTheme.d.ts.map +1 -1
- package/dist/src/fiat/kycSupport.d.ts +2 -0
- package/dist/src/fiat/kycSupport.d.ts.map +1 -0
- package/dist/src/fiat/kycUnavailableAlert.d.ts +8 -0
- package/dist/src/fiat/kycUnavailableAlert.d.ts.map +1 -0
- package/dist/src/fiat/legalLinks.d.ts +7 -2
- package/dist/src/fiat/legalLinks.d.ts.map +1 -1
- package/dist/src/fiat/nativeDatePicker.d.ts +1 -1
- package/dist/src/fiat/nativeDatePicker.d.ts.map +1 -1
- package/dist/src/fiat/otpScreenProps.d.ts.map +1 -1
- package/dist/src/fiat/phoneCountries.d.ts +9 -2
- package/dist/src/fiat/phoneCountries.d.ts.map +1 -1
- package/dist/src/fiat/phoneDraft.d.ts +17 -0
- package/dist/src/fiat/phoneDraft.d.ts.map +1 -0
- package/dist/src/fiat/providers/CoinbaseCheckoutSurface.d.ts +11 -8
- package/dist/src/fiat/providers/CoinbaseCheckoutSurface.d.ts.map +1 -1
- package/dist/src/fiat/providers/HostedControlFrame.d.ts +23 -0
- package/dist/src/fiat/providers/HostedControlFrame.d.ts.map +1 -0
- package/dist/src/fiat/providers/coinbaseApplePay.d.ts +4 -3
- package/dist/src/fiat/providers/coinbaseApplePay.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay.d.ts +3 -0
- package/dist/src/fiat/providers/moonpay.d.ts.map +1 -0
- package/dist/src/fiat/providers/sumsubKyc.d.ts +1 -2
- package/dist/src/fiat/providers/sumsubKyc.d.ts.map +1 -1
- package/dist/src/fiat/providers/transakApplePay.d.ts.map +1 -1
- package/dist/src/fiat/quoteRefusal.d.ts +24 -0
- package/dist/src/fiat/quoteRefusal.d.ts.map +1 -0
- package/dist/src/fiat/renderCaptureSurface.d.ts.map +1 -1
- package/dist/src/fiat/sectionDetail.d.ts.map +1 -1
- package/dist/src/fiat/sessionContact.d.ts +18 -6
- package/dist/src/fiat/sessionContact.d.ts.map +1 -1
- package/dist/src/fiat/ssnLength.d.ts +4 -0
- package/dist/src/fiat/ssnLength.d.ts.map +1 -0
- package/dist/src/fiat/stepDetails.d.ts +13 -5
- package/dist/src/fiat/stepDetails.d.ts.map +1 -1
- package/dist/src/fiat/useContactEligibility.d.ts +4 -0
- package/dist/src/fiat/useContactEligibility.d.ts.map +1 -0
- package/dist/src/fiat/useCountrySheet.d.ts +21 -0
- package/dist/src/fiat/useCountrySheet.d.ts.map +1 -0
- package/dist/src/fiat/useDatePickerDock.d.ts +2 -0
- package/dist/src/fiat/useDatePickerDock.d.ts.map +1 -1
- package/dist/src/fiat/useFiatCheckoutPreparation.d.ts +10 -0
- package/dist/src/fiat/useFiatCheckoutPreparation.d.ts.map +1 -0
- package/dist/src/fiat/useFiatDirectDelivery.d.ts +32 -0
- package/dist/src/fiat/useFiatDirectDelivery.d.ts.map +1 -0
- package/dist/src/fiat/useOtpAutoSubmit.d.ts +8 -0
- package/dist/src/fiat/useOtpAutoSubmit.d.ts.map +1 -0
- package/dist/src/fiat/useOtpReceipt.d.ts +14 -0
- package/dist/src/fiat/useOtpReceipt.d.ts.map +1 -0
- package/dist/src/fiat/useReplayableFailure.d.ts +13 -0
- package/dist/src/fiat/useReplayableFailure.d.ts.map +1 -0
- package/dist/src/flow/DepositAmountStep.d.ts +10 -2
- package/dist/src/flow/DepositAmountStep.d.ts.map +1 -1
- package/dist/src/flow/DepositFlowContent.d.ts +4 -2
- package/dist/src/flow/DepositFlowContent.d.ts.map +1 -1
- package/dist/src/flow/FeeDetailsSheet.d.ts.map +1 -1
- package/dist/src/flow/FiatDepositAmountStep.d.ts +12 -2
- package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
- package/dist/src/flow/FlowDismissLock.d.ts +13 -0
- package/dist/src/flow/FlowDismissLock.d.ts.map +1 -0
- package/dist/src/flow/FlowSheet.d.ts +15 -18
- package/dist/src/flow/FlowSheet.d.ts.map +1 -1
- package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
- package/dist/src/flow/WithdrawalFlowContent.d.ts +2 -1
- package/dist/src/flow/WithdrawalFlowContent.d.ts.map +1 -1
- package/dist/src/flow/depositFlowConfig.d.ts +53 -1
- package/dist/src/flow/depositFlowConfig.d.ts.map +1 -1
- package/dist/src/flow/useKeyboardHeight.d.ts +20 -0
- package/dist/src/flow/useKeyboardHeight.d.ts.map +1 -1
- package/dist/src/flow/validateClientMetadata.d.ts +8 -0
- package/dist/src/flow/validateClientMetadata.d.ts.map +1 -0
- package/dist/src/flow/validateInitialAmount.d.ts +9 -0
- package/dist/src/flow/validateInitialAmount.d.ts.map +1 -0
- package/dist/src/hooks/useDelayedSpinner.d.ts +10 -0
- package/dist/src/hooks/useDelayedSpinner.d.ts.map +1 -0
- package/dist/src/hooks/useGuardedAmountInput.d.ts +26 -6
- package/dist/src/hooks/useGuardedAmountInput.d.ts.map +1 -1
- package/dist/src/hooks/useMinimumAmountValidation.d.ts +17 -0
- package/dist/src/hooks/useMinimumAmountValidation.d.ts.map +1 -0
- package/dist/src/icons/ApplePayMark.d.ts +2 -0
- package/dist/src/icons/ApplePayMark.d.ts.map +1 -0
- package/dist/src/icons/DepositChevronIcon.d.ts +4 -0
- package/dist/src/icons/DepositChevronIcon.d.ts.map +1 -0
- package/dist/src/icons/DepositInfoCircleIcon.d.ts +4 -0
- package/dist/src/icons/DepositInfoCircleIcon.d.ts.map +1 -0
- package/dist/src/icons/FiatBackIcon.d.ts +4 -0
- package/dist/src/icons/FiatBackIcon.d.ts.map +1 -0
- package/dist/src/icons/KycDocumentIcon.d.ts +2 -0
- package/dist/src/icons/KycDocumentIcon.d.ts.map +1 -0
- package/dist/src/icons/KycExternalLinkIcon.d.ts +4 -0
- package/dist/src/icons/KycExternalLinkIcon.d.ts.map +1 -0
- package/dist/src/icons/KycIdentityIcon.d.ts +8 -0
- package/dist/src/icons/KycIdentityIcon.d.ts.map +1 -0
- package/dist/src/icons/KycLimitIcon.d.ts +4 -0
- package/dist/src/icons/KycLimitIcon.d.ts.map +1 -0
- package/dist/src/icons/KycOutcomeIcon.d.ts +5 -0
- package/dist/src/icons/KycOutcomeIcon.d.ts.map +1 -0
- package/dist/src/icons/KycSecurityIcon.d.ts +4 -0
- package/dist/src/icons/KycSecurityIcon.d.ts.map +1 -0
- package/dist/src/icons/KycStatusIcon.d.ts +10 -0
- package/dist/src/icons/KycStatusIcon.d.ts.map +1 -0
- package/dist/src/icons/KycVerifiedIcon.d.ts +2 -0
- package/dist/src/icons/KycVerifiedIcon.d.ts.map +1 -0
- package/dist/src/icons/kycArtwork.d.ts +3 -0
- package/dist/src/icons/kycArtwork.d.ts.map +1 -0
- package/dist/src/locales/i18n.d.ts.map +1 -1
- package/dist/src/providers/FunkitTrans.d.ts +15 -0
- package/dist/src/providers/FunkitTrans.d.ts.map +1 -0
- package/dist/src/screens/DepositAmountScreen.d.ts +18 -17
- package/dist/src/screens/DepositAmountScreen.d.ts.map +1 -1
- package/dist/src/screens/FeeDetailsScreen.d.ts +1 -3
- package/dist/src/screens/FeeDetailsScreen.d.ts.map +1 -1
- package/dist/src/screens/depositMetrics.d.ts +112 -0
- package/dist/src/screens/depositMetrics.d.ts.map +1 -0
- package/dist/src/swapped/SwappedScreen.d.ts +2 -1
- package/dist/src/swapped/SwappedScreen.d.ts.map +1 -1
- package/dist/src/swapped/SwappedScreenShell.d.ts +2 -1
- package/dist/src/swapped/SwappedScreenShell.d.ts.map +1 -1
- package/dist/src/theme/buttonRadius.d.ts +10 -0
- package/dist/src/theme/buttonRadius.d.ts.map +1 -0
- package/dist/src/theme/cornerCurve.d.ts +11 -0
- package/dist/src/theme/cornerCurve.d.ts.map +1 -0
- package/dist/src/theme/inputTextStyle.d.ts +13 -0
- package/dist/src/theme/inputTextStyle.d.ts.map +1 -0
- package/dist/src/theme/tokens.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useDepositRecipient.d.ts +29 -0
- package/dist/src/transfer/hooks/useDepositRecipient.d.ts.map +1 -0
- package/dist/src/transfer/hooks/useFops.d.ts +8 -2
- package/dist/src/transfer/hooks/useFops.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useTokenTransfer.d.ts +9 -1
- package/dist/src/transfer/hooks/useTokenTransfer.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useTransferInit.d.ts +21 -2
- package/dist/src/transfer/hooks/useTransferInit.d.ts.map +1 -1
- package/dist/src/utils/colorMotion.d.ts +14 -0
- package/dist/src/utils/colorMotion.d.ts.map +1 -0
- package/dist/src/utils/formatAmount.d.ts +10 -1
- package/dist/src/utils/formatAmount.d.ts.map +1 -1
- package/dist/src/utils/motion.d.ts +63 -0
- package/dist/src/utils/motion.d.ts.map +1 -1
- package/dist/src/utils/v2/amountRowGeometry.d.ts +6 -0
- package/dist/src/utils/v2/amountRowGeometry.d.ts.map +1 -0
- package/dist/src/withdrawal/validation.d.ts.map +1 -1
- package/package.json +9 -4
- package/dist/chunk-PIAR365R.js.map +0 -7
- package/dist/src/fiat/FiatCountryDock.d.ts +0 -17
- package/dist/src/fiat/FiatCountryDock.d.ts.map +0 -1
- package/dist/src/fiat/formNotice.d.ts +0 -13
- package/dist/src/fiat/formNotice.d.ts.map +0 -1
- package/dist/src/fiat/useCountryDock.d.ts +0 -21
- package/dist/src/fiat/useCountryDock.d.ts.map +0 -1
- /package/dist/{chunk-5YSMFPBG.js.map → chunk-XTK6HGJL.js.map} +0 -0
|
@@ -28,25 +28,21 @@ export interface FlowSheetProps {
|
|
|
28
28
|
*/
|
|
29
29
|
keyboardAvoidEnabled?: boolean;
|
|
30
30
|
enableSwipeToDismiss?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Hold the sheet still: no swipe-to-dismiss, no rubber-band drag, no
|
|
33
|
+
* backdrop tap. For a step whose own screens the user is part-way through
|
|
34
|
+
* (see {@link useLockFlowDismiss}); their back controls are the way off.
|
|
35
|
+
*/
|
|
36
|
+
dismissLocked?: boolean;
|
|
31
37
|
/** Let the sheet reach the top of the screen for a screen that is a full window tall. */
|
|
32
38
|
fullHeight?: boolean;
|
|
33
39
|
/**
|
|
34
40
|
* Draw the sheet as glass rather than a panel — the V2 deposit surface, which
|
|
35
|
-
* the design lays over the host app
|
|
41
|
+
* the design lays over the host app. See {@link GlassSheetBackground}.
|
|
36
42
|
*/
|
|
37
43
|
glass?: boolean;
|
|
38
44
|
}
|
|
39
|
-
|
|
40
|
-
* Host for the managed deposit-flow surface: a `@gorhom/bottom-sheet` modal
|
|
41
|
-
* (native gestures + spring physics), sized to its content. The flow screens
|
|
42
|
-
* draw their own grabber, so the sheet runs handle-less; its surface is painted
|
|
43
|
-
* by {@link FlowSheetBackground} (which also fills the over-drag gap).
|
|
44
|
-
*
|
|
45
|
-
* Requires the gorhom peer stack (`@gorhom/bottom-sheet`,
|
|
46
|
-
* `react-native-gesture-handler`, `react-native-reanimated`) and a
|
|
47
|
-
* `<GestureHandlerRootView>` at the app root.
|
|
48
|
-
*/
|
|
49
|
-
export declare function FlowSheet({ isOpen, session, onClose, content, children, keyboardAvoidEnabled, enableSwipeToDismiss, fullHeight, glass, }: FlowSheetProps): import("react").JSX.Element;
|
|
45
|
+
export declare function FlowSheet({ isOpen, session, onClose, content, children, keyboardAvoidEnabled, enableSwipeToDismiss, dismissLocked, fullHeight, glass, }: FlowSheetProps): import("react").JSX.Element;
|
|
50
46
|
/**
|
|
51
47
|
* Sheet surface for the flow modal. gorhom sizes the sheet body to its content,
|
|
52
48
|
* so a flat background fills only the content area; over-dragging the sheet
|
|
@@ -68,16 +64,17 @@ export declare function FlowSheetBackground(props: BottomSheetBackgroundProps):
|
|
|
68
64
|
export declare function GlassSheetBackground(props: BottomSheetBackgroundProps): import("react").JSX.Element;
|
|
69
65
|
/**
|
|
70
66
|
* {@link FlowSheetBackground} for a drawer that opens over another sheet: the
|
|
71
|
-
*
|
|
72
|
-
*
|
|
67
|
+
* opaque material with the design's soft lift. Dark themes use the fixed
|
|
68
|
+
* material in the design; light/custom themes keep their own modal color so
|
|
69
|
+
* customer text tokens remain legible.
|
|
73
70
|
*/
|
|
74
71
|
export declare function DrawerSheetBackground(props: BottomSheetBackgroundProps): import("react").JSX.Element;
|
|
75
72
|
/**
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
*
|
|
79
|
-
* color: it is a shadow over the surface, not more of it.
|
|
73
|
+
* {@link FlowSheetBackground} for a screen stacked over another sheet — the
|
|
74
|
+
* country list (2531:8471). Glass rather than a panel, so the step it was
|
|
75
|
+
* raised from still reads faintly underneath it.
|
|
80
76
|
*/
|
|
77
|
+
export declare function StackedSheetBackground(props: BottomSheetBackgroundProps): import("react").JSX.Element;
|
|
81
78
|
/**
|
|
82
79
|
* The dim a drawer is laid over (Figma node 2:1315): clear at the screen's top,
|
|
83
80
|
* half-black through the middle band, clear again before the bottom — so the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlowSheet.d.ts","sourceRoot":"","sources":["../../../src/flow/FlowSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,SAAS,EAIf,MAAM,OAAO,CAAA;AAGd,OAAO,EAEL,KAAK,0BAA0B,EAKhC,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"FlowSheet.d.ts","sourceRoot":"","sources":["../../../src/flow/FlowSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,SAAS,EAIf,MAAM,OAAO,CAAA;AAGd,OAAO,EAEL,KAAK,0BAA0B,EAKhC,MAAM,sBAAsB,CAAA;AAa7B;;;;;GAKG;AACH,MAAM,MAAM,oBAAoB,GAAG,MAAM,SAAS,CAAA;AAElD,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,OAAO,CAAA;IACf;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,kDAAkD;IAClD,OAAO,EAAE,SAAS,CAAA;IAClB,yDAAyD;IACzD,QAAQ,EAAE,SAAS,CAAA;IACnB;;;;;OAKG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,yFAAyF;IACzF,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AAsBD,wBAAgB,SAAS,CAAC,EACxB,MAAM,EACN,OAAO,EACP,OAAO,EACP,OAAO,EACP,QAAQ,EACR,oBAA4B,EAC5B,oBAA2B,EAC3B,aAAqB,EACrB,UAAkB,EAClB,KAAa,GACd,EAAE,cAAc,+BA0KhB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,0BAA0B,+BAEpE;AAYD;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,0BAA0B,+BAQrE;AAMD;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,0BAA0B,+BActE;AAMD;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,0BAA0B,+BAQvE;AAmED;;;;;GAKG;AACH,wBAAgB,aAAa,gCA4B5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FunkitFlowProvider.d.ts","sourceRoot":"","sources":["../../../src/flow/FunkitFlowProvider.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,SAAS,EAMf,MAAM,OAAO,CAAA;AAId,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,eAAe,EAIrB,MAAM,uBAAuB,CAAA;AAG9B,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"FunkitFlowProvider.d.ts","sourceRoot":"","sources":["../../../src/flow/FunkitFlowProvider.tsx"],"names":[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AS,CAAA;IACnB,uEAAuE;IACvE,eAAe,CAAC,EAAE,eAAe,CAAA;IACjC,4EAA4E;IAC5E,kBAAkB,CAAC,EAAE,eAAe,CAAA;IACpC,6EAA6E;IAC7E,kBAAkB,CAAC,EAAE,oBAAoB,CAAA;CAC1C,+BAsNA;AAID,wBAAgB,aAAa,IAAI,sBAAsB,CAMtD"}
|
|
@@ -9,7 +9,8 @@ import type { WithdrawalFlowCallbacks, WithdrawalFlowConfig } from './withdrawal
|
|
|
9
9
|
* FlowContent, mounted only while a withdrawal flow is open so its
|
|
10
10
|
* queries run only then.
|
|
11
11
|
*/
|
|
12
|
-
export declare function WithdrawalFlowContent({ config, callbacks, current, nav, }: {
|
|
12
|
+
export declare function WithdrawalFlowContent({ checkoutId, config, callbacks, current, nav, }: {
|
|
13
|
+
checkoutId: string;
|
|
13
14
|
config: WithdrawalFlowConfig;
|
|
14
15
|
callbacks: WithdrawalFlowCallbacks;
|
|
15
16
|
current: FlowScreen | undefined;
|
|
@@ -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;AAmB7D,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAC/D,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,wBAAwB,CAAA;AAW/B;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,MAAM,EACN,SAAS,EACT,OAAO,EACP,GAAG,GACJ,EAAE;IACD,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,
|
|
1
|
+
{"version":3,"file":"WithdrawalFlowContent.d.ts","sourceRoot":"","sources":["../../../src/flow/WithdrawalFlowContent.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAyB,MAAM,OAAO,CAAA;AAmB7D,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAC/D,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,wBAAwB,CAAA;AAW/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,CAkPZ"}
|
|
@@ -2,6 +2,18 @@ import type { CheckoutTokenTransferConfig, DynamicTargetAssetCandidate, MinDepos
|
|
|
2
2
|
import type { ReactNode } from 'react';
|
|
3
3
|
import type { SupportedToken, TokenChainFilter } from '../transfer/supportedTokens';
|
|
4
4
|
export type { DynamicTargetAssetCandidate } from '@funkit/connect-core';
|
|
5
|
+
/**
|
|
6
|
+
* Host-supplied identifiers correlating this deposit with the host's own
|
|
7
|
+
* transaction/user records. Passed through to `POST /eoa` alongside
|
|
8
|
+
* `checkoutId`. Validated in `beginDeposit`: an invalid field is dropped
|
|
9
|
+
* (logged, not thrown) rather than failing the whole flow.
|
|
10
|
+
*/
|
|
11
|
+
export interface DepositClientMetadata {
|
|
12
|
+
/** Must be a non-empty string. */
|
|
13
|
+
externalUserId?: string;
|
|
14
|
+
/** Must be a string representation of a positive, safe integer. */
|
|
15
|
+
clientTransactionId?: `${number}`;
|
|
16
|
+
}
|
|
5
17
|
/**
|
|
6
18
|
* Destination chain/asset for a deposit, plus the customer `getMinDepositUSD`
|
|
7
19
|
* closure that feeds the transfer minimums and the fiat (Swapped) buy floor.
|
|
@@ -62,12 +74,19 @@ export interface DepositAmountEntryConfig {
|
|
|
62
74
|
* the figures alone.
|
|
63
75
|
*/
|
|
64
76
|
methodName?: string;
|
|
77
|
+
/** Header title; defaults to the SDK's own translated "Deposit". */
|
|
78
|
+
title?: string;
|
|
65
79
|
/** Submit CTA label naming the rail (e.g. "Deposit with Apple Pay"). */
|
|
66
80
|
submitLabel: string;
|
|
67
81
|
/** Quick-amount presets in whole dollars; defaults to 10/20/50/100. */
|
|
68
82
|
quickAmountsUsd?: string[];
|
|
69
83
|
/** Hard input cap in dollars; omit when the source defines no limit. */
|
|
70
84
|
limitUsd?: string;
|
|
85
|
+
/**
|
|
86
|
+
* Smallest amount the source will take, in dollars. Below it the CTA names
|
|
87
|
+
* the floor instead of submitting; omit when the source defines none.
|
|
88
|
+
*/
|
|
89
|
+
minLimitUsd?: string;
|
|
71
90
|
/** Brand glyph beside the title; the title stands alone without one. */
|
|
72
91
|
brandIcon?: ReactNode;
|
|
73
92
|
/** Badge on the fee line's leading side (e.g. an Apple Pay mark). */
|
|
@@ -84,12 +103,31 @@ export interface DepositAmountEntryConfig {
|
|
|
84
103
|
/** Routes amount entry through the fiat backend. */
|
|
85
104
|
fiat?: FiatRailConfig;
|
|
86
105
|
}
|
|
106
|
+
/**
|
|
107
|
+
* A fixed fiat amount to prefill the deposit amount screen with — the value
|
|
108
|
+
* the user pays, not a crypto amount. Distinct from any provider's approved
|
|
109
|
+
* output amount (e.g. an authorized USDC amount elsewhere in a payment
|
|
110
|
+
* provider's contract): this is fiat input, never derived from or converted
|
|
111
|
+
* into that figure.
|
|
112
|
+
*/
|
|
113
|
+
export interface DepositInitialAmount {
|
|
114
|
+
/** Decimal string, e.g. `"150.00"`. Must be a valid positive amount. */
|
|
115
|
+
value: string;
|
|
116
|
+
/** ISO 4217 currency code, e.g. `"USD"`. */
|
|
117
|
+
currency: string;
|
|
118
|
+
}
|
|
87
119
|
/** The fiat onramp rail behind the V2 amount screen. */
|
|
88
120
|
export interface FiatRailConfig {
|
|
89
121
|
/** The rail quoted and fired, e.g. `apple_pay`. */
|
|
90
122
|
paymentMethod: string;
|
|
91
|
-
/** Token the fiat buys, as its ticker (e.g. `USDC`). */
|
|
123
|
+
/** Token the fiat buys, as its ticker (e.g. `USDC`) — quotes are priced in it. */
|
|
92
124
|
cryptoCurrencyCode: string;
|
|
125
|
+
/**
|
|
126
|
+
* That same token's address, or SPL mint. What decides where an order
|
|
127
|
+
* delivers: matching `checkoutConfig.targetAsset` leaves nothing to swap, so
|
|
128
|
+
* the crypto goes to the recipient and no deposit address is minted.
|
|
129
|
+
*/
|
|
130
|
+
cryptoCurrencyAddress: string;
|
|
93
131
|
/** Destination chain id used for the quote. */
|
|
94
132
|
chainId: string;
|
|
95
133
|
}
|
|
@@ -147,6 +185,20 @@ export interface DepositFlowConfig {
|
|
|
147
185
|
* with `react-native-qrcode-svg`; supply a node only to override.
|
|
148
186
|
*/
|
|
149
187
|
qrCode?: ReactNode;
|
|
188
|
+
/** See {@link DepositClientMetadata}. */
|
|
189
|
+
clientMetadata?: DepositClientMetadata;
|
|
190
|
+
/**
|
|
191
|
+
* Prefills the amount screen with a fixed fiat value + currency. Validated
|
|
192
|
+
* in `beginDeposit` — an invalid value is dropped (logged, not thrown).
|
|
193
|
+
*/
|
|
194
|
+
initialAmount?: DepositInitialAmount;
|
|
195
|
+
/**
|
|
196
|
+
* Locks the prefilled amount for the life of the attempt: typing,
|
|
197
|
+
* quick-amount taps, back navigation, and remounts all leave it unchanged.
|
|
198
|
+
* Requires {@link initialAmount} — validated in `beginDeposit` and dropped
|
|
199
|
+
* (logged, not thrown) if set without it.
|
|
200
|
+
*/
|
|
201
|
+
lockAmount?: boolean;
|
|
150
202
|
}
|
|
151
203
|
/** Lifecycle callbacks passed to `useFunkitCheckout`. */
|
|
152
204
|
export interface DepositFlowCallbacks {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":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CAAA;IACvB,qEAAqE;IACrE,cAAc,CAAC,EAAE;QACf,KAAK,EAAE,MAAM,CAAA;QACb,kDAAkD;QAClD,KAAK,EAAE,MAAM,CAAA;QACb,MAAM,CAAC,EAAE,SAAS,CAAA;QAClB,kEAAkE;QAClE,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;KACrB,CAAA;IACD,oDAAoD;IACpD,IAAI,CAAC,EAAE,cAAc,CAAA;CACtB;AAED,wDAAwD;AACxD,MAAM,WAAW,cAAc;IAC7B,mDAAmD;IACnD,aAAa,EAAE,MAAM,CAAA;IACrB,
|
|
1
|
+
{"version":3,"file":"depositFlowConfig.d.ts","sourceRoot":"","sources":["../../../src/flow/depositFlowConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,2BAA2B,EAC3B,2BAA2B,EAC3B,gBAAgB,EACjB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EACjB,MAAM,6BAA6B,CAAA;AAEpC,YAAY,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAA;AAEvE;;;;;GAKG;AACH,MAAM,WAAW,qBAAqB;IACpC,kCAAkC;IAClC,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,mEAAmE;IACnE,mBAAmB,CAAC,EAAE,GAAG,MAAM,EAAE,CAAA;CAClC;AAED;;;;;GAKG;AACH,MAAM,MAAM,qBAAqB,GAAG,2BAA2B,GAC7D,IAAI,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAAA;AAE5C;;;;;;;;;;;;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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AM,CAAA;IAC7B,+CAA+C;IAC/C,OAAO,EAAE,MAAM,CAAA;CAChB;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,WAAW,CAAC,EAAE,wBAAwB,CAAA;IACtC;;;;;OAKG;IACH,4BAA4B,CAAC,EAAE,2BAA2B,EAAE,CAAA;IAC5D;;;;;OAKG;IACH,cAAc,CAAC,EAAE,qBAAqB,CAAA;IACtC;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,0EAA0E;IAC1E,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,mEAAmE;IACnE,eAAe,CAAC,EAAE,cAAc,EAAE,CAAA;IAClC,iBAAiB,CAAC,EAAE,gBAAgB,EAAE,CAAA;IACtC;;;OAGG;IACH,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,yCAAyC;IACzC,cAAc,CAAC,EAAE,qBAAqB,CAAA;IACtC;;;OAGG;IACH,aAAa,CAAC,EAAE,oBAAoB,CAAA;IACpC;;;;;OAKG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,yDAAyD;AACzD,MAAM,WAAW,oBAAoB;IACnC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAA;IAC9B;;;;;OAKG;IACH,cAAc,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAA;CAC7C"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Animated } from 'react-native';
|
|
1
2
|
/**
|
|
2
3
|
* The on-screen keyboard height (0 when hidden), tracked from the global
|
|
3
4
|
* keyboard events. Pass `enabled` to scope it to the screen that needs it: when
|
|
@@ -12,4 +13,23 @@
|
|
|
12
13
|
* lifts in sync); Android only reliably emits the `Did` events.
|
|
13
14
|
*/
|
|
14
15
|
export declare function useKeyboardHeight(enabled: boolean): number;
|
|
16
|
+
export interface KeyboardFollow {
|
|
17
|
+
/** Where the keyboard is heading, the moment the event says so. */
|
|
18
|
+
height: number;
|
|
19
|
+
/**
|
|
20
|
+
* The same height gliding there on the keyboard's own clock. For a footer
|
|
21
|
+
* that rides the keyboard: iOS posts a fresh `WillShow` each time its
|
|
22
|
+
* suggestion strip appears or goes, and a footer that snaps to each new
|
|
23
|
+
* height while the keyboard itself glides is the jolt that reads as broken.
|
|
24
|
+
*/
|
|
25
|
+
animated: Animated.Value;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* {@link useKeyboardHeight}, plus an `Animated.Value` that follows it on the
|
|
29
|
+
* keyboard's curve. Plain `Animated`, not Reanimated: the screens that ride
|
|
30
|
+
* the keyboard already drive their frames with it, and React Native's
|
|
31
|
+
* `LayoutAnimation` — the other way to glide a layout — is not safe beside
|
|
32
|
+
* Reanimated's entering and exiting transitions.
|
|
33
|
+
*/
|
|
34
|
+
export declare function useKeyboardFollow(enabled: boolean): KeyboardFollow;
|
|
15
35
|
//# sourceMappingURL=useKeyboardHeight.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useKeyboardHeight.d.ts","sourceRoot":"","sources":["../../../src/flow/useKeyboardHeight.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useKeyboardHeight.d.ts","sourceRoot":"","sources":["../../../src/flow/useKeyboardHeight.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAA8B,MAAM,cAAc,CAAA;AAEnE;;;;;;;;;;;;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,CAwClE"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { DepositClientMetadata } from './depositFlowConfig';
|
|
2
|
+
/**
|
|
3
|
+
* Drops invalid clientMetadata fields instead of failing the whole flow — a
|
|
4
|
+
* malformed externalUserId/clientTransactionId shouldn't block a deposit the
|
|
5
|
+
* host may not be able to react to synchronously.
|
|
6
|
+
*/
|
|
7
|
+
export declare function validateClientMetadata(clientMetadata: DepositClientMetadata | undefined): DepositClientMetadata | undefined;
|
|
8
|
+
//# sourceMappingURL=validateClientMetadata.d.ts.map
|
|
@@ -0,0 +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;AAEhE;;;;GAIG;AACH,wBAAgB,sBAAsB,CACpC,cAAc,EAAE,qBAAqB,GAAG,SAAS,GAChD,qBAAqB,GAAG,SAAS,CAqCnC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { DepositFlowConfig } from './depositFlowConfig';
|
|
2
|
+
/**
|
|
3
|
+
* Drops an invalid initialAmount/lockAmount instead of failing the whole
|
|
4
|
+
* flow — mirrors `validateClientMetadata`. `lockAmount` requires a valid
|
|
5
|
+
* `initialAmount`; without one it is dropped too, since there would be
|
|
6
|
+
* nothing to lock.
|
|
7
|
+
*/
|
|
8
|
+
export declare function validateInitialAmount({ initialAmount, lockAmount, }: Pick<DepositFlowConfig, 'initialAmount' | 'lockAmount'>): Pick<DepositFlowConfig, 'initialAmount' | 'lockAmount'>;
|
|
9
|
+
//# sourceMappingURL=validateInitialAmount.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validateInitialAmount.d.ts","sourceRoot":"","sources":["../../../src/flow/validateInitialAmount.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,iBAAiB,EAElB,MAAM,qBAAqB,CAAA;AAI5B;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,aAAa,EACb,UAAU,GACX,EAAE,IAAI,CAAC,iBAAiB,EAAE,eAAe,GAAG,YAAY,CAAC,GAAG,IAAI,CAC/D,iBAAiB,EACjB,eAAe,GAAG,YAAY,CAC/B,CA+CA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether a wait has run long enough to be worth drawing a ring for. A wait
|
|
3
|
+
* that resolves inside `delayMs` never draws one, so a re-quote that lands in
|
|
4
|
+
* a few frames doesn't flash a spinning animation.
|
|
5
|
+
*
|
|
6
|
+
* Reduced motion draws it straight away: there is no animation to suppress
|
|
7
|
+
* then, only a busy cue to hold back.
|
|
8
|
+
*/
|
|
9
|
+
export declare function useDelayedSpinner(delayMs: number): boolean;
|
|
10
|
+
//# sourceMappingURL=useDelayedSpinner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDelayedSpinner.d.ts","sourceRoot":"","sources":["../../../src/hooks/useDelayedSpinner.ts"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,WAWhD"}
|
|
@@ -1,19 +1,39 @@
|
|
|
1
1
|
import { type NumpadKey } from '../utils/numpadInput';
|
|
2
|
+
/**
|
|
3
|
+
* Which bound a refused value fell outside of, when it was a bound at all.
|
|
4
|
+
*
|
|
5
|
+
* Only the cap refuses. A floor is a state the amount is allowed to sit in —
|
|
6
|
+
* the screen answers that one, and the keypad stays out of its way.
|
|
7
|
+
*/
|
|
8
|
+
export type AmountRefusal = 'max' | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* The value sits under the source's floor. Empty and zero are the untouched
|
|
11
|
+
* state rather than a violation — there is nothing yet to be too small.
|
|
12
|
+
*/
|
|
13
|
+
export declare function isBelowMinimum(value: string, minLimitUsd?: string): boolean;
|
|
2
14
|
/**
|
|
3
15
|
* An amount screen's input policy, separate from its layout. Every way a value
|
|
4
|
-
* enters — a numpad key or a quick-amount chip — commits through
|
|
5
|
-
*
|
|
6
|
-
* refuses — deleting from zero,
|
|
7
|
-
* side-to-side shake, a brief warning tint
|
|
8
|
-
* the value; a zero typed onto zero is a
|
|
16
|
+
* enters — a numpad key or a quick-amount chip — commits through this hook, so
|
|
17
|
+
* the source's limits are enforced in exactly one place. Input the policy
|
|
18
|
+
* refuses — deleting from zero, typing past `limitUsd`, or any edit at all
|
|
19
|
+
* while `disabled` — answers with a side-to-side shake, a brief warning tint
|
|
20
|
+
* and a haptic instead of changing the value; a zero typed onto zero is a
|
|
21
|
+
* no-op that swells to acknowledge it.
|
|
22
|
+
*
|
|
23
|
+
* A floor is deliberately not enforced here: an amount below it is entered
|
|
24
|
+
* normally and answered by the screen, not refused by the keypad.
|
|
9
25
|
*/
|
|
10
|
-
export declare function useGuardedAmountInput({ input, onChangeInput, limitUsd, }: {
|
|
26
|
+
export declare function useGuardedAmountInput({ input, onChangeInput, limitUsd, disabled, }: {
|
|
11
27
|
input: string;
|
|
12
28
|
onChangeInput: (input: string) => void;
|
|
13
29
|
/** Hard input cap in dollars; omit when the source defines no limit. */
|
|
14
30
|
limitUsd?: string;
|
|
31
|
+
/** Locks the value: every numpad/chip commit rejects instead of applying. */
|
|
32
|
+
disabled?: boolean;
|
|
15
33
|
}): {
|
|
16
34
|
hasWarning: boolean;
|
|
35
|
+
refusal: AmountRefusal;
|
|
36
|
+
isLocked: boolean;
|
|
17
37
|
feedbackStyle: import("react-native-reanimated/lib/typescript/hook/commonTypes").AnimatedStyleHandle<{
|
|
18
38
|
transform: ({
|
|
19
39
|
translateX: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useGuardedAmountInput.d.ts","sourceRoot":"","sources":["../../../src/hooks/useGuardedAmountInput.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,KAAK,SAAS,EAAkB,MAAM,sBAAsB,CAAA;AAmBrE
|
|
1
|
+
{"version":3,"file":"useGuardedAmountInput.d.ts","sourceRoot":"","sources":["../../../src/hooks/useGuardedAmountInput.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,KAAK,SAAS,EAAkB,MAAM,sBAAsB,CAAA;AAmBrE;;;;;GAKG;AACH,MAAM,MAAM,aAAa,GAAG,KAAK,GAAG,SAAS,CAAA;AAE7C;;;GAGG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAM3E;AAOD;;;;;;;;;;;GAWG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,KAAK,EACL,aAAa,EACb,QAAQ,EACR,QAAgB,GACjB,EAAE;IACD,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC,wEAAwE;IACxE,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;;;;;;;;;;;;;wBAmEU,MAAM;2BAuBP,SAAS;EAuClB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The floor's verdict on the typed amount, shared by everything that acts on
|
|
3
|
+
* it — the notice, the action that replaces the CTA, and the quote.
|
|
4
|
+
*
|
|
5
|
+
* `isResolved` is the seam that matters: while the typing is unsettled the
|
|
6
|
+
* verdict is not yet known, and a caller that would spend something on the
|
|
7
|
+
* amount (a quote) must wait for it rather than race it.
|
|
8
|
+
*
|
|
9
|
+
* One-directional on purpose. The verdict is withheld while typing, but a valid
|
|
10
|
+
* amount clears it at once — `isBelowMinimum` is checked against the live value
|
|
11
|
+
* too, so reaching the floor drops the notice without waiting out the debounce.
|
|
12
|
+
*/
|
|
13
|
+
export declare function useMinimumAmountValidation(input: string, minLimitUsd?: string): {
|
|
14
|
+
belowMinimum: boolean;
|
|
15
|
+
isResolved: boolean;
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=useMinimumAmountValidation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMinimumAmountValidation.d.ts","sourceRoot":"","sources":["../../../src/hooks/useMinimumAmountValidation.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;GAWG;AACH,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,MAAM,EACb,WAAW,CAAC,EAAE,MAAM,GACnB;IAAE,YAAY,EAAE,OAAO,CAAC;IAAC,UAAU,EAAE,OAAO,CAAA;CAAE,CAmBhD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApplePayMark.d.ts","sourceRoot":"","sources":["../../../src/icons/ApplePayMark.tsx"],"names":[],"mappings":"AAMA,wBAAgB,YAAY,gCAY3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DepositChevronIcon.d.ts","sourceRoot":"","sources":["../../../src/icons/DepositChevronIcon.tsx"],"names":[],"mappings":"AAMA,wBAAgB,kBAAkB,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,+BAI9D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DepositInfoCircleIcon.d.ts","sourceRoot":"","sources":["../../../src/icons/DepositInfoCircleIcon.tsx"],"names":[],"mappings":"AAMA,wBAAgB,qBAAqB,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,+BAIjE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FiatBackIcon.d.ts","sourceRoot":"","sources":["../../../src/icons/FiatBackIcon.tsx"],"names":[],"mappings":"AAMA,wBAAgB,YAAY,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,+BAIxD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KycDocumentIcon.d.ts","sourceRoot":"","sources":["../../../src/icons/KycDocumentIcon.tsx"],"names":[],"mappings":"AAQA,wBAAgB,eAAe,gCAG9B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KycExternalLinkIcon.d.ts","sourceRoot":"","sources":["../../../src/icons/KycExternalLinkIcon.tsx"],"names":[],"mappings":"AAMA,wBAAgB,mBAAmB,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,+BAI/D"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The export carries opacity but no colour, so the ramp has to be tinted or it
|
|
3
|
+
* falls back to black and vanishes on a dark modal.
|
|
4
|
+
*/
|
|
5
|
+
export declare function KycIdentityIcon({ color }: {
|
|
6
|
+
color: string;
|
|
7
|
+
}): import("react").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=KycIdentityIcon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KycIdentityIcon.d.ts","sourceRoot":"","sources":["../../../src/icons/KycIdentityIcon.tsx"],"names":[],"mappings":"AAQA;;;GAGG;AACH,wBAAgB,eAAe,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,+BAS3D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KycLimitIcon.d.ts","sourceRoot":"","sources":["../../../src/icons/KycLimitIcon.tsx"],"names":[],"mappings":"AAMA,wBAAgB,YAAY,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,+BAQxD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KycOutcomeIcon.d.ts","sourceRoot":"","sources":["../../../src/icons/KycOutcomeIcon.tsx"],"names":[],"mappings":"AAQA,8EAA8E;AAC9E,wBAAgB,cAAc,CAAC,EAC7B,UAAkB,GACnB,EAAE;IACD,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,+BAMA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KycSecurityIcon.d.ts","sourceRoot":"","sources":["../../../src/icons/KycSecurityIcon.tsx"],"names":[],"mappings":"AAKA,wBAAgB,eAAe,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,+BAI3D"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type KycStatusGlyph = 'complete' | 'pending' | 'soft' | 'hard';
|
|
2
|
+
export declare function KycStatusIcon({ glyph, color, faded, height: drawn, }: {
|
|
3
|
+
glyph: KycStatusGlyph;
|
|
4
|
+
color?: string;
|
|
5
|
+
/** The card's vertical fade; the banner leaves it off. */
|
|
6
|
+
faded?: boolean;
|
|
7
|
+
/** Drawn height; the width follows. The banner omits it, the card sets it. */
|
|
8
|
+
height?: number;
|
|
9
|
+
}): import("react").JSX.Element;
|
|
10
|
+
//# sourceMappingURL=KycStatusIcon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KycStatusIcon.d.ts","sourceRoot":"","sources":["../../../src/icons/KycStatusIcon.tsx"],"names":[],"mappings":"AAIA,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,CAAA;AAgDrE,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,KAAK,EACL,KAAa,EACb,MAAM,EAAE,KAAK,GACd,EAAE;IACD,KAAK,EAAE,cAAc,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,0DAA0D;IAC1D,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,8EAA8E;IAC9E,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,+BAsBA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KycVerifiedIcon.d.ts","sourceRoot":"","sources":["../../../src/icons/KycVerifiedIcon.tsx"],"names":[],"mappings":"AAIA,wBAAgB,eAAe,gCAS9B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kycArtwork.d.ts","sourceRoot":"","sources":["../../../src/icons/kycArtwork.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAE1D,wBAAgB,cAAc,CAC5B,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,WAAW,EAClB,KAAK,SAAiC,UAevC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../../src/locales/i18n.ts"],"names":[],"mappings":"AAAA,OAAgB,EAAE,KAAK,IAAI,IAAI,YAAY,EAAE,MAAM,SAAS,CAAA;AAW5D,uCAAuC;AACvC,eAAO,MAAM,aAAa;;;;;;;;;CAShB,CAAA;AACV,MAAM,MAAM,MAAM,GAAG,MAAM,OAAO,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../../src/locales/i18n.ts"],"names":[],"mappings":"AAAA,OAAgB,EAAE,KAAK,IAAI,IAAI,YAAY,EAAE,MAAM,SAAS,CAAA;AAW5D,uCAAuC;AACvC,eAAO,MAAM,aAAa;;;;;;;;;CAShB,CAAA;AACV,MAAM,MAAM,MAAM,GAAG,MAAM,OAAO,aAAa,CAAA;AAO/C,eAAO,MAAM,IAAI,EAAE,YAAuC,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
import { Trans } from 'react-i18next/TransWithoutContext';
|
|
3
|
+
type FunkitTransProps = Omit<ComponentProps<typeof Trans>, 'i18n' | 't'>;
|
|
4
|
+
/**
|
|
5
|
+
* The SDK's `<Trans>`: copy with tagged spans (`<terms>…</terms>`) rendered
|
|
6
|
+
* through the `components` map, bound to the SDK's private i18next instance.
|
|
7
|
+
*
|
|
8
|
+
* The context-free `Trans` is deliberate: the host app may wrap the sheet in
|
|
9
|
+
* its own react-i18next provider, and the contextual one would read that
|
|
10
|
+
* provider's namespace. `t` comes from the SDK provider so the copy follows
|
|
11
|
+
* the SDK locale, not the host's.
|
|
12
|
+
*/
|
|
13
|
+
export declare function FunkitTrans(props: FunkitTransProps): import("react").JSX.Element;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=FunkitTrans.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FunkitTrans.d.ts","sourceRoot":"","sources":["../../../src/providers/FunkitTrans.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,mCAAmC,CAAA;AAKzD,KAAK,gBAAgB,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,KAAK,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC,CAAA;AAExE;;;;;;;;GAQG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,+BAGlD"}
|
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
2
|
import { type AccountBalanceChipProps } from '../components/v2/AccountBalanceChip';
|
|
3
3
|
import { type QuickAmountOption } from '../components/v2/QuickAmountsRow';
|
|
4
|
-
/**
|
|
5
|
-
* How much of the screen's foot the action area occupies — the fee line, the
|
|
6
|
-
* submit button and the keypad below them.
|
|
7
|
-
*
|
|
8
|
-
* A drawer opened from the fee line has to cover at least this, or the line
|
|
9
|
-
* that opened it sits stranded above its own drawer. Derived here rather than
|
|
10
|
-
* guessed by the caller, so the two can't drift apart.
|
|
11
|
-
*/
|
|
12
4
|
export declare function depositActionsHeight(insetBottom: number): number;
|
|
13
5
|
export interface DepositAmountScreenProps {
|
|
14
6
|
title: string;
|
|
@@ -16,6 +8,14 @@ export interface DepositAmountScreenProps {
|
|
|
16
8
|
brandIcon?: ReactNode;
|
|
17
9
|
/** Host account context in the header's trailing corner. */
|
|
18
10
|
accountContext?: AccountBalanceChipProps;
|
|
11
|
+
/**
|
|
12
|
+
* The centred header's leading back control — a brand header keeps the host's
|
|
13
|
+
* own way out. Omit where the sheet is left by swipe alone.
|
|
14
|
+
*/
|
|
15
|
+
back?: {
|
|
16
|
+
onPress: () => void;
|
|
17
|
+
accessibilityLabel: string;
|
|
18
|
+
};
|
|
19
19
|
/** The typed dollar amount; held by the caller so it survives navigation. */
|
|
20
20
|
input: string;
|
|
21
21
|
onChangeInput: (input: string) => void;
|
|
@@ -23,6 +23,10 @@ export interface DepositAmountScreenProps {
|
|
|
23
23
|
quickAmounts?: QuickAmountOption[];
|
|
24
24
|
/** Hard input cap in dollars — the payment source's limit. */
|
|
25
25
|
limitUsd?: string;
|
|
26
|
+
/** Smallest amount the payment source takes, in dollars. */
|
|
27
|
+
minLimitUsd?: string;
|
|
28
|
+
/** Locks `input`: disables the numpad, backspace/clear, and quick amounts. */
|
|
29
|
+
disabled?: boolean;
|
|
26
30
|
/** The full fee line for the entered amount (e.g. `$0.50 fee`). */
|
|
27
31
|
fee?: string;
|
|
28
32
|
/**
|
|
@@ -40,12 +44,9 @@ export interface DepositAmountScreenProps {
|
|
|
40
44
|
feeAccessibilityLabel?: string;
|
|
41
45
|
/** Badge on the fee line's leading side (e.g. an Apple Pay mark). */
|
|
42
46
|
methodBadge?: ReactNode;
|
|
43
|
-
/** Banner
|
|
47
|
+
/** Banner beneath the amount, e.g. an identity hold. */
|
|
44
48
|
notice?: ReactNode;
|
|
45
|
-
/**
|
|
46
|
-
* A line the action needs read before it is taken, sat directly above the
|
|
47
|
-
* button rather than beside the title — terms, most often.
|
|
48
|
-
*/
|
|
49
|
+
/** Consent copy beneath the keypad, replacing attribution while required. */
|
|
49
50
|
disclosure?: ReactNode;
|
|
50
51
|
submitLabel: string;
|
|
51
52
|
canSubmit: boolean;
|
|
@@ -62,9 +63,9 @@ export interface DepositAmountScreenProps {
|
|
|
62
63
|
* screen. Empty shows recommended-amount chips; a typed value swaps them for
|
|
63
64
|
* the fee line and the submit button.
|
|
64
65
|
*
|
|
65
|
-
*
|
|
66
|
-
* limit — answers with a side-to-side shake, a brief warning tint and
|
|
67
|
-
*
|
|
66
|
+
* Invalid input the screen refuses — deleting from empty or typing past the
|
|
67
|
+
* source's limit — answers with a side-to-side shake, a brief warning tint and
|
|
68
|
+
* a haptic. While `disabled`, the input controls themselves are non-interactive.
|
|
68
69
|
*/
|
|
69
|
-
export declare function DepositAmountScreen({ title, brandIcon, accountContext, input, onChangeInput, quickAmounts, limitUsd, fee, feePending, onPressFee, feeAccessibilityLabel, methodBadge, notice, disclosure, submitLabel, canSubmit, onSubmit, renderSubmit, amountAccessibilityLabel, backspaceAccessibilityLabel, showAttribution, }: DepositAmountScreenProps): import("react").JSX.Element;
|
|
70
|
+
export declare function DepositAmountScreen({ title, brandIcon, accountContext, back, input, onChangeInput, quickAmounts, limitUsd, minLimitUsd, disabled, fee, feePending, onPressFee, feeAccessibilityLabel, methodBadge, notice, disclosure, submitLabel, canSubmit, onSubmit, renderSubmit, amountAccessibilityLabel, backspaceAccessibilityLabel, showAttribution, }: DepositAmountScreenProps): import("react").JSX.Element;
|
|
70
71
|
//# sourceMappingURL=DepositAmountScreen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DepositAmountScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/DepositAmountScreen.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DepositAmountScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/DepositAmountScreen.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAuB,MAAM,OAAO,CAAA;AAoB3D,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,qCAAqC,CAAA;A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