@funkit/connect-rn 4.3.0 → 5.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 +100 -0
- package/dist/{chunk-5YSMFPBG.js → chunk-KPP7KXYB.js} +2 -2
- package/dist/{chunk-PIAR365R.js → chunk-X4RK3XTG.js} +460 -58
- package/dist/chunk-X4RK3XTG.js.map +7 -0
- package/dist/clients/lighter.js +1 -1
- package/dist/clients/nado.js +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5995 -2617
- package/dist/index.js.map +4 -4
- package/dist/src/components/DepositActionMotion.d.ts +12 -0
- package/dist/src/components/DepositActionMotion.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.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/FiatContactScreen.d.ts +17 -1
- package/dist/src/fiat/FiatContactScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatCountryDock.d.ts.map +1 -1
- 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 +8 -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 +1 -6
- package/dist/src/fiat/FiatKycNotice.d.ts.map +1 -1
- 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.map +1 -1
- package/dist/src/fiat/formLayout.d.ts +4 -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 +2 -5
- 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/phoneDraft.d.ts +10 -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/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/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 +5 -0
- 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/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/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 +9 -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 +11 -14
- 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 +39 -0
- 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/useGuardedAmountInput.d.ts +7 -4
- package/dist/src/hooks/useGuardedAmountInput.d.ts.map +1 -1
- 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/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 +8 -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/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/useFops.d.ts +8 -2
- package/dist/src/transfer/hooks/useFops.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useTokenTransfer.d.ts +5 -1
- package/dist/src/transfer/hooks/useTokenTransfer.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useTransferInit.d.ts +13 -1
- package/dist/src/transfer/hooks/useTransferInit.d.ts.map +1 -1
- package/dist/src/utils/motion.d.ts +40 -0
- package/dist/src/utils/motion.d.ts.map +1 -1
- package/package.json +9 -4
- package/dist/chunk-PIAR365R.js.map +0 -7
- package/dist/src/fiat/formNotice.d.ts +0 -13
- package/dist/src/fiat/formNotice.d.ts.map +0 -1
- /package/dist/{chunk-5YSMFPBG.js.map → chunk-KPP7KXYB.js.map} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useOtpAutoSubmit.d.ts","sourceRoot":"","sources":["../../../src/fiat/useOtpAutoSubmit.ts"],"names":[],"mappings":"AAEA,wBAAgB,gBAAgB,CAAC,EAC/B,IAAI,EACJ,MAAM,EACN,YAAY,EACZ,QAAQ,EACR,QAAQ,GACT,EAAE;IACD,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,YAAY,EAAE,OAAO,CAAA;IACrB,QAAQ,EAAE,OAAO,CAAA;IACjB,QAAQ,EAAE,MAAM,IAAI,CAAA;CACrB,QAkBA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { FiatFlow } from '@funkit/connect-core';
|
|
2
|
+
import type { FiatOtpScreenProps } from './FiatOtpScreen';
|
|
3
|
+
type OtpProps = Omit<FiatOtpScreenProps, 'onClose'>;
|
|
4
|
+
interface Submission {
|
|
5
|
+
props: OtpProps;
|
|
6
|
+
code: string;
|
|
7
|
+
}
|
|
8
|
+
/** Hold the verified code briefly without delaying the server's next transition. */
|
|
9
|
+
export declare function useOtpReceipt(flow: FiatFlow): {
|
|
10
|
+
bind: (props: OtpProps) => OtpProps;
|
|
11
|
+
receipt: Submission | undefined;
|
|
12
|
+
};
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=useOtpReceipt.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useOtpReceipt.d.ts","sourceRoot":"","sources":["../../../src/fiat/useOtpReceipt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAGpD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAEzD,KAAK,QAAQ,GAAG,IAAI,CAAC,kBAAkB,EAAE,SAAS,CAAC,CAAA;AACnD,UAAU,UAAU;IAClB,KAAK,EAAE,QAAQ,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;CACb;AAED,oFAAoF;AACpF,wBAAgB,aAAa,CAAC,IAAI,EAAE,QAAQ;kBAiCrB,QAAQ,KAAG,QAAQ;;EAYzC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { FiatFlow } from '@funkit/connect-core';
|
|
2
|
+
type ReplayableFlow = Pick<FiatFlow, 'phase' | 'collected'>;
|
|
3
|
+
/**
|
|
4
|
+
* Whether a send that failed in transit can go out again as it was.
|
|
5
|
+
*
|
|
6
|
+
* A replay re-sends the body under its idempotency key, so a server that took
|
|
7
|
+
* the first request but lost the answer sees one attempt rather than two. That
|
|
8
|
+
* only holds while the body is still the one that failed: an edit since makes
|
|
9
|
+
* it a new request, which has to be sent afresh under a key of its own.
|
|
10
|
+
*/
|
|
11
|
+
export declare function useReplayableFailure(flow: ReplayableFlow): boolean;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=useReplayableFailure.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useReplayableFailure.d.ts","sourceRoot":"","sources":["../../../src/fiat/useReplayableFailure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAGpD,KAAK,cAAc,GAAG,IAAI,CAAC,QAAQ,EAAE,OAAO,GAAG,WAAW,CAAC,CAAA;AAE3D;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAWlE"}
|
|
@@ -1,12 +1,19 @@
|
|
|
1
|
-
import type { DepositAmountEntryConfig, DepositFlowCallbacks } from './depositFlowConfig';
|
|
1
|
+
import type { DepositAmountEntryConfig, DepositFlowCallbacks, DepositInitialAmount } from './depositFlowConfig';
|
|
2
2
|
/**
|
|
3
3
|
* Container for the V2 amount-entry screen: owns the typed amount, prices the
|
|
4
4
|
* fee from the configured rate and hands submission to the host. The payment
|
|
5
5
|
* rail behind the submit is not part of this step — `onSubmitAmount` is the
|
|
6
6
|
* seam it will attach to.
|
|
7
7
|
*/
|
|
8
|
-
export declare function DepositAmountStep({ config, callbacks, }: {
|
|
8
|
+
export declare function DepositAmountStep({ config, callbacks, initialAmount, lockAmount, }: {
|
|
9
9
|
config: DepositAmountEntryConfig;
|
|
10
10
|
callbacks: DepositFlowCallbacks;
|
|
11
|
+
/** Prefills the typed amount. */
|
|
12
|
+
initialAmount?: DepositInitialAmount;
|
|
13
|
+
/**
|
|
14
|
+
* Locks the prefilled amount against edits: typing, backspace/clear, and
|
|
15
|
+
* quick-amount taps all reject.
|
|
16
|
+
*/
|
|
17
|
+
lockAmount?: boolean;
|
|
11
18
|
}): import("react").JSX.Element;
|
|
12
19
|
//# sourceMappingURL=DepositAmountStep.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DepositAmountStep.d.ts","sourceRoot":"","sources":["../../../src/flow/DepositAmountStep.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EACV,wBAAwB,EACxB,oBAAoB,EACrB,MAAM,qBAAqB,CAAA;AAU5B;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,MAAM,EACN,SAAS,
|
|
1
|
+
{"version":3,"file":"DepositAmountStep.d.ts","sourceRoot":"","sources":["../../../src/flow/DepositAmountStep.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EACV,wBAAwB,EACxB,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,qBAAqB,CAAA;AAU5B;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,MAAM,EACN,SAAS,EACT,aAAa,EACb,UAAU,GACX,EAAE;IACD,MAAM,EAAE,wBAAwB,CAAA;IAChC,SAAS,EAAE,oBAAoB,CAAA;IAC/B,iCAAiC;IACjC,aAAa,CAAC,EAAE,oBAAoB,CAAA;IACpC;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,+BAqHA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
|
-
import type { DepositFlowCallbacks, DepositFlowConfig } from './depositFlowConfig';
|
|
2
|
+
import type { DepositClientMetadata, DepositFlowCallbacks, DepositFlowConfig } from './depositFlowConfig';
|
|
3
3
|
import type { FlowNav, FlowScreen } from './FunkitFlowProvider';
|
|
4
4
|
/**
|
|
5
5
|
* The live flow body. Drives the deposit-address + QR generation
|
|
@@ -7,7 +7,9 @@ import type { FlowNav, FlowScreen } from './FunkitFlowProvider';
|
|
|
7
7
|
* with the resolved data. Kept separate from the provider so its
|
|
8
8
|
* hooks run only while the modal is open (it isn't mounted when closed).
|
|
9
9
|
*/
|
|
10
|
-
export declare function FlowContent({ config, current, nav, onCopySuccess, callbacks, }: {
|
|
10
|
+
export declare function FlowContent({ checkoutId, clientMetadata, config, current, nav, onCopySuccess, callbacks, }: {
|
|
11
|
+
checkoutId: string;
|
|
12
|
+
clientMetadata: DepositClientMetadata | undefined;
|
|
11
13
|
config: DepositFlowConfig;
|
|
12
14
|
current: FlowScreen | undefined;
|
|
13
15
|
nav: FlowNav;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DepositFlowContent.d.ts","sourceRoot":"","sources":["../../../src/flow/DepositFlowContent.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAoC,MAAM,OAAO,CAAA;AA2CxE,OAAO,KAAK,EAEV,oBAAoB,EACpB,iBAAiB,EAElB,MAAM,qBAAqB,CAAA;AAI5B,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AA6D/D;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,EAC1B,MAAM,EACN,OAAO,EACP,GAAG,EACH,aAAa,EACb,SAAS,GACV,EAAE;IACD,MAAM,EAAE,iBAAiB,CAAA;IACzB,OAAO,EAAE,UAAU,GAAG,SAAS,CAAA;IAC/B,GAAG,EAAE,OAAO,CAAA;IACZ,aAAa,EAAE,MAAM,IAAI,CAAA;IACzB,SAAS,EAAE,oBAAoB,CAAA;CAChC,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"DepositFlowContent.d.ts","sourceRoot":"","sources":["../../../src/flow/DepositFlowContent.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAoC,MAAM,OAAO,CAAA;AA2CxE,OAAO,KAAK,EAEV,qBAAqB,EACrB,oBAAoB,EACpB,iBAAiB,EAElB,MAAM,qBAAqB,CAAA;AAI5B,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AA6D/D;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,EAC1B,UAAU,EACV,cAAc,EACd,MAAM,EACN,OAAO,EACP,GAAG,EACH,aAAa,EACb,SAAS,GACV,EAAE;IACD,UAAU,EAAE,MAAM,CAAA;IAClB,cAAc,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACjD,MAAM,EAAE,iBAAiB,CAAA;IACzB,OAAO,EAAE,UAAU,GAAG,SAAS,CAAA;IAC/B,GAAG,EAAE,OAAO,CAAA;IACZ,aAAa,EAAE,MAAM,IAAI,CAAA;IACzB,SAAS,EAAE,oBAAoB,CAAA;CAChC,GAAG,SAAS,CAyQZ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FeeDetailsSheet.d.ts","sourceRoot":"","sources":["../../../src/flow/FeeDetailsSheet.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FeeDetailsSheet.d.ts","sourceRoot":"","sources":["../../../src/flow/FeeDetailsSheet.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,WAAW,EAAkB,MAAM,yBAAyB,CAAA;AAE1E,OAAO,EACL,KAAK,aAAa,EAEnB,MAAM,6BAA6B,CAAA;AAapC,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,GACR,EAAE;IACD,KAAK,EAAE,WAAW,CAAC,YAAY,CAAC,CAAA;IAChC,IAAI,EAAE,aAAa,EAAE,CAAA;IACrB,6EAA6E;IAC7E,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,+BA2DA"}
|
|
@@ -1,9 +1,19 @@
|
|
|
1
|
-
import type { DepositAmountEntryConfig, DepositCheckoutConfig, FiatRailConfig } from './depositFlowConfig';
|
|
2
|
-
export declare function FiatDepositAmountStep({ config, fiat, checkoutConfig, dynamicRoutingId, onCloseFlow, }: {
|
|
1
|
+
import type { DepositAmountEntryConfig, DepositCheckoutConfig, DepositClientMetadata, DepositInitialAmount, FiatRailConfig } from './depositFlowConfig';
|
|
2
|
+
export declare function FiatDepositAmountStep({ config, fiat, checkoutConfig, dynamicRoutingId, depositAddressOverride, checkoutId, clientMetadata, initialAmount, lockAmount, onCloseFlow, }: {
|
|
3
3
|
config: DepositAmountEntryConfig;
|
|
4
4
|
fiat: FiatRailConfig;
|
|
5
5
|
checkoutConfig: DepositCheckoutConfig | undefined;
|
|
6
6
|
dynamicRoutingId: string | undefined;
|
|
7
|
+
/** Host fallback for local/dev clients that do not mint an EOA. */
|
|
8
|
+
depositAddressOverride?: string;
|
|
9
|
+
checkoutId: string;
|
|
10
|
+
clientMetadata: DepositClientMetadata | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Prefills the quoted amount.
|
|
13
|
+
*/
|
|
14
|
+
initialAmount?: DepositInitialAmount;
|
|
15
|
+
/** Locks the prefilled amount against numpad and quick-amount edits. */
|
|
16
|
+
lockAmount?: boolean;
|
|
7
17
|
onCloseFlow: () => void;
|
|
8
18
|
}): import("react").JSX.Element;
|
|
9
19
|
//# sourceMappingURL=FiatDepositAmountStep.d.ts.map
|
|
@@ -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":"AA4FA,OAAO,KAAK,EACV,wBAAwB,EACxB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,cAAc,EACf,MAAM,qBAAqB,CAAA;AAmD5B,wBAAgB,qBAAqB,CAAC,EACpC,MAAM,EACN,IAAI,EACJ,cAAc,EACd,gBAAgB,EAChB,sBAAsB,EACtB,UAAU,EACV,cAAc,EACd,aAAa,EACb,UAAU,EACV,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,WAAW,EAAE,MAAM,IAAI,CAAA;CACxB,+BAqBA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** Takes a lock on the sheet's dismissal; the return releases it. */
|
|
2
|
+
export type AcquireDismissLock = () => () => void;
|
|
3
|
+
export declare const FlowDismissLockProvider: import("react").Provider<AcquireDismissLock>;
|
|
4
|
+
/**
|
|
5
|
+
* Holds the flow sheet closed to swipes and backdrop taps while `locked`.
|
|
6
|
+
*
|
|
7
|
+
* A step at the root of the flow stack is dismissable by design, but a step
|
|
8
|
+
* can carry screens of its own — the fiat rail's contact, code and identity
|
|
9
|
+
* screens all render inside the amount step. Those are screens the user is
|
|
10
|
+
* part-way through, and the only way off them is their own back control.
|
|
11
|
+
*/
|
|
12
|
+
export declare function useLockFlowDismiss(locked: boolean): void;
|
|
13
|
+
//# sourceMappingURL=FlowDismissLock.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FlowDismissLock.d.ts","sourceRoot":"","sources":["../../../src/flow/FlowDismissLock.tsx"],"names":[],"mappings":"AAEA,qEAAqE;AACrE,MAAM,MAAM,kBAAkB,GAAG,MAAM,MAAM,IAAI,CAAA;AAQjD,eAAO,MAAM,uBAAuB,8CAAkC,CAAA;AAEtE;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAGxD"}
|
|
@@ -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,8 +64,9 @@ 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
|
/**
|
|
@@ -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;AAcD;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,0BAA0B,+BAErE;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,0BAA0B,+BActE;AAoED;;;;;GAKG;AACH;;;;;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":[],"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,EAEV,oBAAoB,EACpB,iBAAiB,EAClB,MAAM,qBAAqB,CAAA;AAE5B,OAAO,EAAE,KAAK,oBAAoB,EAAa,MAAM,aAAa,CAAA;AAMlE,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,wBAAwB,CAAA;AAE/B,MAAM,MAAM,UAAU,GAClB,eAAe,GACf,UAAU,GACV,UAAU,GACV,SAAS,GACT,gBAAgB,GAChB,gBAAgB,GAChB,iBAAiB,GACjB,sBAAsB,GACtB,kBAAkB,CAAA;AAuDtB,UAAU,sBAAsB;IAC9B,6DAA6D;IAC7D,YAAY,EAAE,CACZ,MAAM,EAAE,iBAAiB,EACzB,SAAS,CAAC,EAAE,oBAAoB,KAC7B,IAAI,CAAA;IACT,oEAAoE;IACpE,eAAe,EAAE,CACf,MAAM,EAAE,oBAAoB,EAC5B,SAAS,CAAC,EAAE,uBAAuB,KAChC,IAAI,CAAA;IACT,sBAAsB;IACtB,SAAS,EAAE,MAAM,IAAI,CAAA;CACtB;AAID,MAAM,WAAW,OAAO;IACtB,QAAQ,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAA;IACjC,IAAI,EAAE,MAAM,IAAI,CAAA;IAChB,6EAA6E;IAC7E,KAAK,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAA;IAC9B;;;;OAIG;IACH,KAAK,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAA;IAC9B,SAAS,EAAE,MAAM,IAAI,CAAA;CACtB;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,QAAQ,EACR,eAAwC,EACxC,kBAA8C,EAC9C,kBAAkB,GACnB,EAAE;IACD,QAAQ,EAAE,SAAS,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.
|
|
@@ -84,6 +96,19 @@ export interface DepositAmountEntryConfig {
|
|
|
84
96
|
/** Routes amount entry through the fiat backend. */
|
|
85
97
|
fiat?: FiatRailConfig;
|
|
86
98
|
}
|
|
99
|
+
/**
|
|
100
|
+
* A fixed fiat amount to prefill the deposit amount screen with — the value
|
|
101
|
+
* the user pays, not a crypto amount. Distinct from any provider's approved
|
|
102
|
+
* output amount (e.g. an authorized USDC amount elsewhere in a payment
|
|
103
|
+
* provider's contract): this is fiat input, never derived from or converted
|
|
104
|
+
* into that figure.
|
|
105
|
+
*/
|
|
106
|
+
export interface DepositInitialAmount {
|
|
107
|
+
/** Decimal string, e.g. `"150.00"`. Must be a valid positive amount. */
|
|
108
|
+
value: string;
|
|
109
|
+
/** ISO 4217 currency code, e.g. `"USD"`. */
|
|
110
|
+
currency: string;
|
|
111
|
+
}
|
|
87
112
|
/** The fiat onramp rail behind the V2 amount screen. */
|
|
88
113
|
export interface FiatRailConfig {
|
|
89
114
|
/** The rail quoted and fired, e.g. `apple_pay`. */
|
|
@@ -147,6 +172,20 @@ export interface DepositFlowConfig {
|
|
|
147
172
|
* with `react-native-qrcode-svg`; supply a node only to override.
|
|
148
173
|
*/
|
|
149
174
|
qrCode?: ReactNode;
|
|
175
|
+
/** See {@link DepositClientMetadata}. */
|
|
176
|
+
clientMetadata?: DepositClientMetadata;
|
|
177
|
+
/**
|
|
178
|
+
* Prefills the amount screen with a fixed fiat value + currency. Validated
|
|
179
|
+
* in `beginDeposit` — an invalid value is dropped (logged, not thrown).
|
|
180
|
+
*/
|
|
181
|
+
initialAmount?: DepositInitialAmount;
|
|
182
|
+
/**
|
|
183
|
+
* Locks the prefilled amount for the life of the attempt: typing,
|
|
184
|
+
* quick-amount taps, back navigation, and remounts all leave it unchanged.
|
|
185
|
+
* Requires {@link initialAmount} — validated in `beginDeposit` and dropped
|
|
186
|
+
* (logged, not thrown) if set without it.
|
|
187
|
+
*/
|
|
188
|
+
lockAmount?: boolean;
|
|
150
189
|
}
|
|
151
190
|
/** Lifecycle callbacks passed to `useFunkitCheckout`. */
|
|
152
191
|
export interface DepositFlowCallbacks {
|
|
@@ -1 +1 @@
|
|
|
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,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,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;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,wEAAwE;IACxE,WAAW,EAAE,MAAM,CAAA;IACnB,uEAAuE;IACvE,eAAe,CAAC,EAAE,MAAM,EAAE,CAAA;IAC1B,wEAAwE;IACxE,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,wEAAwE;IACxE,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,qEAAqE;IACrE,WAAW,CAAC,EAAE,SAAS,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,wDAAwD;IACxD,kBAAkB,EAAE,MAAM,CAAA;IAC1B,+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;
|
|
1
|
+
{"version":3,"file":"depositFlowConfig.d.ts","sourceRoot":"","sources":["../../../src/flow/depositFlowConfig.ts"],"names":[],"mappings":"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"}
|
|
@@ -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"}
|
|
@@ -3,15 +3,18 @@ import { type NumpadKey } from '../utils/numpadInput';
|
|
|
3
3
|
* An amount screen's input policy, separate from its layout. Every way a value
|
|
4
4
|
* enters — a numpad key or a quick-amount chip — commits through `commitInput`,
|
|
5
5
|
* so the source's hard cap is enforced in exactly one place. Input the policy
|
|
6
|
-
* refuses — deleting from zero,
|
|
7
|
-
* side-to-side shake, a brief warning tint
|
|
8
|
-
* the value; a zero typed onto zero is a
|
|
6
|
+
* refuses — deleting from zero, typing past `limitUsd`, or any edit at all
|
|
7
|
+
* while `disabled` — answers with a side-to-side shake, a brief warning tint
|
|
8
|
+
* and a haptic instead of changing the value; a zero typed onto zero is a
|
|
9
|
+
* no-op that swells to acknowledge it.
|
|
9
10
|
*/
|
|
10
|
-
export declare function useGuardedAmountInput({ input, onChangeInput, limitUsd, }: {
|
|
11
|
+
export declare function useGuardedAmountInput({ input, onChangeInput, limitUsd, disabled, }: {
|
|
11
12
|
input: string;
|
|
12
13
|
onChangeInput: (input: string) => void;
|
|
13
14
|
/** Hard input cap in dollars; omit when the source defines no limit. */
|
|
14
15
|
limitUsd?: string;
|
|
16
|
+
/** Locks the value: every numpad/chip commit rejects instead of applying. */
|
|
17
|
+
disabled?: boolean;
|
|
15
18
|
}): {
|
|
16
19
|
hasWarning: boolean;
|
|
17
20
|
feedbackStyle: import("react-native-reanimated/lib/typescript/hook/commonTypes").AnimatedStyleHandle<{
|
|
@@ -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;;;;;;;;GAQG;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;;;;;;;;;;;wBAgDU,MAAM;2BAoBP,SAAS;EA2BlB"}
|
|
@@ -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 @@
|
|
|
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"}
|