@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
|
@@ -16,8 +16,6 @@ export interface FeeDetailsScreenProps {
|
|
|
16
16
|
summary?: string;
|
|
17
17
|
rows: FeeDetailsRow[];
|
|
18
18
|
onClose: () => void;
|
|
19
|
-
/** Draw the "powered by Fun" mark (the drawer covers the screen's own). */
|
|
20
|
-
showAttribution?: boolean;
|
|
21
19
|
/**
|
|
22
20
|
* Floor for the drawer's height. It is content-sized, and short content would
|
|
23
21
|
* leave the fee line that opened it showing above its own drawer.
|
|
@@ -32,5 +30,5 @@ export interface FeeDetailsScreenProps {
|
|
|
32
30
|
* Presented as a nested bottom sheet over the amount screen, so it is dismissed
|
|
33
31
|
* by swiping down, tapping the overlayFill, or its own close button.
|
|
34
32
|
*/
|
|
35
|
-
export declare function FeeDetailsScreen({ summary, rows, onClose,
|
|
33
|
+
export declare function FeeDetailsScreen({ summary, rows, onClose, minHeight, }: FeeDetailsScreenProps): import("react").JSX.Element;
|
|
36
34
|
//# sourceMappingURL=FeeDetailsScreen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FeeDetailsScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/FeeDetailsScreen.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FeeDetailsScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/FeeDetailsScreen.tsx"],"names":[],"mappings":"AAwBA,iDAAiD;AACjD,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,WAAW,qBAAqB;IACpC;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,aAAa,EAAE,CAAA;IACrB,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,OAAO,EACP,IAAI,EACJ,OAAO,EACP,SAAS,GACV,EAAE,qBAAqB,+BA0CvB"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
export declare const DEPOSIT_METRICS: {
|
|
2
|
+
readonly reference: {
|
|
3
|
+
readonly width: 393;
|
|
4
|
+
readonly height: 852;
|
|
5
|
+
readonly insetTop: 59;
|
|
6
|
+
readonly insetBottom: 34;
|
|
7
|
+
};
|
|
8
|
+
readonly narrowDeviceWidth: 380;
|
|
9
|
+
readonly sideMargin: 24;
|
|
10
|
+
readonly narrowSideMargin: 16;
|
|
11
|
+
readonly grabber: {
|
|
12
|
+
readonly width: 60;
|
|
13
|
+
readonly height: 5;
|
|
14
|
+
readonly radius: 5;
|
|
15
|
+
readonly top: 64;
|
|
16
|
+
};
|
|
17
|
+
readonly header: {
|
|
18
|
+
readonly top: 92;
|
|
19
|
+
readonly height: 32;
|
|
20
|
+
readonly titleTop: 100;
|
|
21
|
+
readonly titleSize: 24;
|
|
22
|
+
readonly titleLineHeight: 23.76;
|
|
23
|
+
};
|
|
24
|
+
readonly balance: {
|
|
25
|
+
readonly labelSize: 12;
|
|
26
|
+
readonly labelLineHeight: 13.8;
|
|
27
|
+
readonly labelTracking: -0.36;
|
|
28
|
+
readonly labelTop: 93;
|
|
29
|
+
readonly valueSize: 15;
|
|
30
|
+
readonly valueLineHeight: 17.25;
|
|
31
|
+
readonly valueTracking: -0.48;
|
|
32
|
+
readonly valueTop: 107;
|
|
33
|
+
readonly centsSize: 10.5;
|
|
34
|
+
readonly avatarSize: 32;
|
|
35
|
+
readonly avatarRight: 16;
|
|
36
|
+
readonly avatarGap: 6;
|
|
37
|
+
};
|
|
38
|
+
readonly amount: {
|
|
39
|
+
readonly size: 96;
|
|
40
|
+
readonly tracking: -1.44;
|
|
41
|
+
readonly height: 114;
|
|
42
|
+
readonly centerY: 291;
|
|
43
|
+
readonly placeholderOpacity: 0.1;
|
|
44
|
+
};
|
|
45
|
+
readonly method: {
|
|
46
|
+
readonly left: 36;
|
|
47
|
+
readonly top: 444;
|
|
48
|
+
readonly width: 56.6;
|
|
49
|
+
readonly height: 24;
|
|
50
|
+
};
|
|
51
|
+
readonly notice: {
|
|
52
|
+
readonly bottom: 126;
|
|
53
|
+
};
|
|
54
|
+
readonly fee: {
|
|
55
|
+
readonly size: 15;
|
|
56
|
+
readonly lineHeight: 15;
|
|
57
|
+
readonly tracking: -0.6;
|
|
58
|
+
readonly rightInset: 2;
|
|
59
|
+
readonly centerY: 459.5;
|
|
60
|
+
readonly buttonGap: 21;
|
|
61
|
+
};
|
|
62
|
+
readonly chips: {
|
|
63
|
+
readonly width: 329;
|
|
64
|
+
readonly height: 64;
|
|
65
|
+
readonly top: 483;
|
|
66
|
+
readonly paddingVertical: 5;
|
|
67
|
+
readonly chipWidth: 70;
|
|
68
|
+
readonly chipHeight: 48;
|
|
69
|
+
readonly radius: 16;
|
|
70
|
+
readonly fontSize: 14;
|
|
71
|
+
readonly tracking: -0.28;
|
|
72
|
+
};
|
|
73
|
+
readonly button: {
|
|
74
|
+
readonly height: 56;
|
|
75
|
+
readonly top: 488;
|
|
76
|
+
readonly radius: 999;
|
|
77
|
+
readonly fontSize: 17;
|
|
78
|
+
readonly tracking: -0.68;
|
|
79
|
+
};
|
|
80
|
+
readonly numpad: {
|
|
81
|
+
readonly width: 274;
|
|
82
|
+
readonly height: 198;
|
|
83
|
+
readonly top: 574;
|
|
84
|
+
readonly rowPitch: 60;
|
|
85
|
+
readonly lineHeight: 18;
|
|
86
|
+
readonly fontSize: 24;
|
|
87
|
+
readonly tracking: -0.36;
|
|
88
|
+
readonly decimalSize: 48;
|
|
89
|
+
readonly decimalTracking: -0.72;
|
|
90
|
+
readonly decimalOffsetY: -10;
|
|
91
|
+
readonly buttonGap: 30;
|
|
92
|
+
readonly bottomGap: 80;
|
|
93
|
+
};
|
|
94
|
+
readonly disclosure: {
|
|
95
|
+
readonly keypadGap: 28;
|
|
96
|
+
readonly bottomGap: 24;
|
|
97
|
+
readonly height: 28;
|
|
98
|
+
};
|
|
99
|
+
readonly watermarkTop: 818;
|
|
100
|
+
};
|
|
101
|
+
export declare function depositSideMargin(width: number): number;
|
|
102
|
+
export declare const DEPOSIT_ACTIONS_HEIGHT: number;
|
|
103
|
+
/**
|
|
104
|
+
* The notice is pinned above the action row and is taller than the row itself,
|
|
105
|
+
* so the part standing proud of it has to be kept clear of the amount.
|
|
106
|
+
*/
|
|
107
|
+
export declare function depositNoticeOverhang(noticeHeight: number): number;
|
|
108
|
+
export declare function depositNumpadBottom(insetBottom: number): number;
|
|
109
|
+
export declare function depositAmountCenter(height: number, insetTop: number, insetBottom: number, noticeOverhang?: number): number;
|
|
110
|
+
/** Minimum canvas that keeps the amount, actions and keypad from overlapping. */
|
|
111
|
+
export declare function depositMinimumHeight(insetTop: number, insetBottom: number): number;
|
|
112
|
+
//# sourceMappingURL=depositMetrics.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"depositMetrics.d.ts","sourceRoot":"","sources":["../../../src/screens/depositMetrics.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwElB,CAAA;AAEV,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAIvD;AAED,eAAO,MAAM,sBAAsB,QAGP,CAAA;AAE5B;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAKlE;AAED,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAM/D;AAED,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,EACnB,cAAc,SAAI,GACjB,MAAM,CA8BR;AAED,iFAAiF;AACjF,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,GAClB,MAAM,CAYR"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type SwappedScreenBaseProps } from './SwappedScreenShell';
|
|
2
2
|
export interface SwappedScreenProps extends SwappedScreenBaseProps {
|
|
3
|
+
lockAmount?: boolean;
|
|
3
4
|
/** Fired when the embed reports a successful transaction. */
|
|
4
5
|
onSuccess?: () => void;
|
|
5
6
|
}
|
|
@@ -9,5 +10,5 @@ export interface SwappedScreenProps extends SwappedScreenBaseProps {
|
|
|
9
10
|
* close → {@link onClose}, transaction-successful → {@link onSuccess}.
|
|
10
11
|
* Withdrawal lifecycle messages are ignored — see `SwappedWithdrawScreen`.
|
|
11
12
|
*/
|
|
12
|
-
export declare function SwappedScreen({ url, onClose, onBack, onSuccess, }: SwappedScreenProps): import("react").JSX.Element;
|
|
13
|
+
export declare function SwappedScreen({ url, onClose, onBack, onSuccess, lockAmount, }: SwappedScreenProps): import("react").JSX.Element;
|
|
13
14
|
//# sourceMappingURL=SwappedScreen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SwappedScreen.d.ts","sourceRoot":"","sources":["../../../src/swapped/SwappedScreen.tsx"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,sBAAsB,EAE5B,MAAM,sBAAsB,CAAA;AAE7B,MAAM,WAAW,kBAAmB,SAAQ,sBAAsB;IAChE,6DAA6D;IAC7D,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACvB;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,EAC5B,GAAG,EACH,OAAO,EACP,MAAM,EACN,SAAS,
|
|
1
|
+
{"version":3,"file":"SwappedScreen.d.ts","sourceRoot":"","sources":["../../../src/swapped/SwappedScreen.tsx"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,sBAAsB,EAE5B,MAAM,sBAAsB,CAAA;AAE7B,MAAM,WAAW,kBAAmB,SAAQ,sBAAsB;IAChE,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,6DAA6D;IAC7D,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACvB;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,EAC5B,GAAG,EACH,OAAO,EACP,MAAM,EACN,SAAS,EACT,UAAU,GACX,EAAE,kBAAkB,+BAwCpB"}
|
|
@@ -10,6 +10,7 @@ export interface SwappedScreenBaseProps {
|
|
|
10
10
|
}
|
|
11
11
|
interface SwappedScreenShellProps {
|
|
12
12
|
url: string;
|
|
13
|
+
lockAmount?: boolean;
|
|
13
14
|
onMessage: (msg: SwappedInboundMessage) => void;
|
|
14
15
|
/** Android hardware back with no WebView history to pop (see SwappedWebView). */
|
|
15
16
|
onBack: () => void;
|
|
@@ -22,6 +23,6 @@ interface SwappedScreenShellProps {
|
|
|
22
23
|
* mode-specific dispatch lives in `SwappedScreen` (deposit) and
|
|
23
24
|
* `SwappedWithdrawScreen` (withdrawal).
|
|
24
25
|
*/
|
|
25
|
-
export declare function SwappedScreenShell({ url, onMessage, onBack, }: SwappedScreenShellProps): import("react").JSX.Element;
|
|
26
|
+
export declare function SwappedScreenShell({ url, onMessage, onBack, lockAmount, }: SwappedScreenShellProps): import("react").JSX.Element;
|
|
26
27
|
export {};
|
|
27
28
|
//# sourceMappingURL=SwappedScreenShell.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SwappedScreenShell.d.ts","sourceRoot":"","sources":["../../../src/swapped/SwappedScreenShell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAA;AAUjE,yEAAyE;AACzE,MAAM,WAAW,sBAAsB;IACrC,iEAAiE;IACjE,GAAG,EAAE,MAAM,CAAA;IACX,kEAAkE;IAClE,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,qDAAqD;IACrD,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB;AAED,UAAU,uBAAuB;IAC/B,GAAG,EAAE,MAAM,CAAA;IACX,SAAS,EAAE,CAAC,GAAG,EAAE,qBAAqB,KAAK,IAAI,CAAA;IAC/C,iFAAiF;IACjF,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,GAAG,EACH,SAAS,EACT,MAAM,
|
|
1
|
+
{"version":3,"file":"SwappedScreenShell.d.ts","sourceRoot":"","sources":["../../../src/swapped/SwappedScreenShell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAA;AAUjE,yEAAyE;AACzE,MAAM,WAAW,sBAAsB;IACrC,iEAAiE;IACjE,GAAG,EAAE,MAAM,CAAA;IACX,kEAAkE;IAClE,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,qDAAqD;IACrD,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB;AAED,UAAU,uBAAuB;IAC/B,GAAG,EAAE,MAAM,CAAA;IACX,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,SAAS,EAAE,CAAC,GAAG,EAAE,qBAAqB,KAAK,IAAI,CAAA;IAC/C,iFAAiF;IACjF,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,GAAG,EACH,SAAS,EACT,MAAM,EACN,UAAkB,GACnB,EAAE,uBAAuB,+BAoEzB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { FunkitTheme } from './toRestyleTheme';
|
|
2
|
+
/**
|
|
3
|
+
* The button token's corner radius at a given height, for controls that clip
|
|
4
|
+
* their own content and so need the number rather than the token name.
|
|
5
|
+
*
|
|
6
|
+
* Capped at half the height: the token's pill default (999) would otherwise
|
|
7
|
+
* clip past the control's own corners on anything but a `borderRadius` prop.
|
|
8
|
+
*/
|
|
9
|
+
export declare function buttonRadius(theme: FunkitTheme, height: number): number;
|
|
10
|
+
//# sourceMappingURL=buttonRadius.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buttonRadius.d.ts","sourceRoot":"","sources":["../../../src/theme/buttonRadius.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAEnD;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAEvE"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ViewStyle } from 'react-native';
|
|
2
|
+
/**
|
|
3
|
+
* Apple's continuous ("squircle") corner — Figma's 60% corner smoothing — for a
|
|
4
|
+
* control of this corner radius and height.
|
|
5
|
+
*
|
|
6
|
+
* - Only for a corner that leaves a straight edge to curve into: at half the
|
|
7
|
+
* height the radius already draws a stadium or a circle, and smoothing those
|
|
8
|
+
* ends flattens them instead of softening them.
|
|
9
|
+
*/
|
|
10
|
+
export declare function cornerCurve(radius: number, height: number): ViewStyle['borderCurve'];
|
|
11
|
+
//# sourceMappingURL=cornerCurve.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cornerCurve.d.ts","sourceRoot":"","sources":["../../../src/theme/cornerCurve.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAE7C;;;;;;;GAOG;AACH,wBAAgB,WAAW,CACzB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,GACb,SAAS,CAAC,aAAa,CAAC,CAE1B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { TextStyle } from 'react-native';
|
|
2
|
+
import type { useTheme } from './restyle';
|
|
3
|
+
/**
|
|
4
|
+
* The body text style as a `TextInput` should take it: without `lineHeight`.
|
|
5
|
+
*
|
|
6
|
+
* iOS lays a single-line input's text and its placeholder out differently once
|
|
7
|
+
* a line height is set — the placeholder drops to the line box's baseline while
|
|
8
|
+
* typed text is pinned to its top — so the two sit at different heights and the
|
|
9
|
+
* field appears to jump as the first character lands. The box's own centring
|
|
10
|
+
* is what holds the text in place; the line height only fought it.
|
|
11
|
+
*/
|
|
12
|
+
export declare function inputTextStyle(theme: ReturnType<typeof useTheme>): TextStyle;
|
|
13
|
+
//# sourceMappingURL=inputTextStyle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inputTextStyle.d.ts","sourceRoot":"","sources":["../../../src/theme/inputTextStyle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAE7C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAA;AAEzC;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,UAAU,CAAC,OAAO,QAAQ,CAAC,GAAG,SAAS,CAG5E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../src/theme/tokens.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAE7C;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG,QAAQ,CAAA;AAEtD,uFAAuF;AACvF,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,QAAQ,CAAA;AAEhD,qFAAqF;AACrF,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE;QACJ;;;;WAIG;QACH,MAAM,EAAE,MAAM,CAAA;QACd,MAAM,EAAE,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,CAAA;QACrD,IAAI,EAAE;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,MAAM,CAAA;SAAE,CAAA;QAEtC,OAAO,EAAE;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,MAAM,CAAA;SAAE,CAAA;KAC1C,CAAA;IACD,MAAM,EAAE;QACN,MAAM,EAAE,MAAM,CAAA;QACd,MAAM,EAAE,mBAAmB,CAAA;QAC3B,SAAS,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAA;QAEtC,IAAI,EAAE;YACJ,KAAK,EAAE,MAAM,CAAA;YACb,Q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YACJ,IAAI,EAAE;gBAAE,EAAE,EAAE,MAAM,CAAC;gBAAC,EAAE,EAAE,MAAM,CAAC;gBAAC,EAAE,EAAE,MAAM,CAAC;gBAAC,EAAE,EAAE,MAAM,CAAA;aAAE,CAAA;SACzD,CAAA;QACD,IAAI,EAAE;YAAE,EAAE,EAAE,MAAM,CAAC;YAAC,EAAE,EAAE,MAAM,CAAC;YAAC,EAAE,EAAE,MAAM,CAAC;YAAC,EAAE,EAAE,MAAM,CAAA;SAAE,CAAA;KACzD,CAAA;CACF;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,mBAAmB,GAC7B,MAAM,CAKR;AAED,8FAA8F;AAC9F,eAAO,MAAM,qBAAqB,EAAE,MAAM,CACxC,mBAAmB,EACnB,SAAS,CAAC,YAAY,CAAC,CAIxB,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,YA+FzB,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,YAiGxB,CAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { FunAddress } from '@funkit/api-base';
|
|
2
|
+
import type { CheckoutTokenTransferConfig } from '@funkit/connect-core';
|
|
3
|
+
export interface UseDepositRecipientResult {
|
|
4
|
+
/** Who ends up with the funds; `0x` when nothing names one. */
|
|
5
|
+
recipient: FunAddress;
|
|
6
|
+
/** A Lighter deposit whose main-account index has not resolved. */
|
|
7
|
+
isLighterWalletFallback: boolean;
|
|
8
|
+
isLighterDeposit: boolean;
|
|
9
|
+
/** The resolved L2 main-account index, when there is one. */
|
|
10
|
+
lighterRecipientOverride: string | undefined;
|
|
11
|
+
isLookupFetching: boolean;
|
|
12
|
+
lookupStatus: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Who a deposit pays, resolved once.
|
|
16
|
+
*
|
|
17
|
+
* Mirrors web's `useCheckoutTransferInit` priority: a resolved Lighter L2
|
|
18
|
+
* main-account index outranks an explicit `recipientAddr`, which outranks the
|
|
19
|
+
* host's configured `customRecipient`, which outranks the wallet. Its own hook
|
|
20
|
+
* so a caller can read the recipient *before* deciding whether to mint a
|
|
21
|
+
* deposit address for it.
|
|
22
|
+
*/
|
|
23
|
+
export declare function useDepositRecipient({ checkoutConfig, recipientAddr, udaTargetChain, }: {
|
|
24
|
+
checkoutConfig: CheckoutTokenTransferConfig | undefined;
|
|
25
|
+
recipientAddr?: FunAddress;
|
|
26
|
+
/** Target chain of the resolved UDA params, which decides Lighter. */
|
|
27
|
+
udaTargetChain: string | undefined;
|
|
28
|
+
}): UseDepositRecipientResult;
|
|
29
|
+
//# sourceMappingURL=useDepositRecipient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDepositRecipient.d.ts","sourceRoot":"","sources":["../../../../src/transfer/hooks/useDepositRecipient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAA;AAKvE,MAAM,WAAW,yBAAyB;IACxC,+DAA+D;IAC/D,SAAS,EAAE,UAAU,CAAA;IACrB,mEAAmE;IACnE,uBAAuB,EAAE,OAAO,CAAA;IAChC,gBAAgB,EAAE,OAAO,CAAA;IACzB,6DAA6D;IAC7D,wBAAwB,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5C,gBAAgB,EAAE,OAAO,CAAA;IACzB,YAAY,EAAE,MAAM,CAAA;CACrB;AAED;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,cAAc,EACd,aAAa,EACb,cAAc,GACf,EAAE;IACD,cAAc,EAAE,2BAA2B,GAAG,SAAS,CAAA;IACvD,aAAa,CAAC,EAAE,UAAU,CAAA;IAC1B,sEAAsE;IACtE,cAAc,EAAE,MAAM,GAAG,SAAS,CAAA;CACnC,GAAG,yBAAyB,CAyC5B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type SwappedFormOfPayment } from '@funkit/api-base';
|
|
2
|
-
import type { DepositCheckoutConfig } from '../../flow/depositFlowConfig';
|
|
2
|
+
import type { DepositCheckoutConfig, DepositClientMetadata, DepositInitialAmount } from '../../flow/depositFlowConfig';
|
|
3
3
|
export interface UseFopsParams {
|
|
4
4
|
/**
|
|
5
5
|
* Destination chain/asset — drives the deposit recipient + FOP query. Its
|
|
@@ -7,6 +7,12 @@ export interface UseFopsParams {
|
|
|
7
7
|
*/
|
|
8
8
|
checkoutConfig: DepositCheckoutConfig | undefined;
|
|
9
9
|
dynamicRoutingId?: string;
|
|
10
|
+
/** Active flow's checkoutId — see {@link useTransferInit}. */
|
|
11
|
+
checkoutId?: string;
|
|
12
|
+
/** Host-supplied correlation ids — see {@link useTransferInit}. */
|
|
13
|
+
clientMetadata?: DepositClientMetadata;
|
|
14
|
+
initialAmount?: DepositInitialAmount;
|
|
15
|
+
lockAmount?: boolean;
|
|
10
16
|
enabled?: boolean;
|
|
11
17
|
}
|
|
12
18
|
export interface UseFopsResult {
|
|
@@ -42,5 +48,5 @@ export interface UseFopsResult {
|
|
|
42
48
|
* Theme, buy minimum, and region currency reach web parity (see the inline
|
|
43
49
|
* notes below). V1 still omits web's per-region geoblocking and `validateFops`.
|
|
44
50
|
*/
|
|
45
|
-
export declare function useFops({ checkoutConfig, dynamicRoutingId, enabled, }: UseFopsParams): UseFopsResult;
|
|
51
|
+
export declare function useFops({ checkoutConfig, dynamicRoutingId, checkoutId, clientMetadata, initialAmount, lockAmount, enabled, }: UseFopsParams): UseFopsResult;
|
|
46
52
|
//# sourceMappingURL=useFops.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFops.d.ts","sourceRoot":"","sources":["../../../../src/transfer/hooks/useFops.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"useFops.d.ts","sourceRoot":"","sources":["../../../../src/transfer/hooks/useFops.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,oBAAoB,EAE1B,MAAM,kBAAkB,CAAA;AAoBzB,OAAO,KAAK,EACV,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACrB,MAAM,8BAA8B,CAAA;AAsBrC,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,cAAc,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACjD,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,8DAA8D;IAC9D,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,mEAAmE;IACnE,cAAc,CAAC,EAAE,qBAAqB,CAAA;IACtC,aAAa,CAAC,EAAE,oBAAoB,CAAA;IACpC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,WAAW,aAAa;IAC5B;;;;OAIG;IACH,SAAS,EAAE,oBAAoB,EAAE,CAAA;IACjC,iFAAiF;IACjF,WAAW,EAAE,oBAAoB,EAAE,CAAA;IACnC,SAAS,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,OAAO,CAAA;IACnB,+EAA+E;IAC/E,OAAO,EAAE,OAAO,CAAA;IAChB,gEAAgE;IAChE,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,yDAAyD;IACzD,gBAAgB,EAAE,OAAO,CAAA;IACzB;;;;OAIG;IACH,UAAU,EAAE,OAAO,CAAA;CACpB;AAED;;;;;;;;GAQG;AACH,wBAAgB,OAAO,CAAC,EACtB,cAAc,EACd,gBAAgB,EAChB,UAAU,EACV,cAAc,EACd,aAAa,EACb,UAAU,EACV,OAAc,GACf,EAAE,aAAa,GAAG,aAAa,CA+B/B"}
|
|
@@ -5,6 +5,10 @@ export interface UseTokenTransferParams {
|
|
|
5
5
|
/** Chain the user picked to send funds on. */
|
|
6
6
|
selectedChainId: number | undefined;
|
|
7
7
|
dynamicRoutingId?: string;
|
|
8
|
+
/** Active flow's checkoutId — see {@link useTransferInit}. */
|
|
9
|
+
checkoutId?: string;
|
|
10
|
+
/** Host-supplied correlation ids — see {@link useTransferInit}. */
|
|
11
|
+
clientMetadata?: NonNullable<object>;
|
|
8
12
|
enabled?: boolean;
|
|
9
13
|
}
|
|
10
14
|
export interface UseTokenTransferResult {
|
|
@@ -19,6 +23,10 @@ export interface UseTokenTransferResult {
|
|
|
19
23
|
qrCodeUri: QRCodeUri | undefined;
|
|
20
24
|
blockchain: TransferTokenQrCodeType;
|
|
21
25
|
isLoading: boolean;
|
|
26
|
+
/** The deposit-address lookup failed; nothing can be delivered without it. */
|
|
27
|
+
depositAddressError: Error | undefined;
|
|
28
|
+
/** Replays the deposit-address lookup. */
|
|
29
|
+
retryDepositAddress: () => void;
|
|
22
30
|
}
|
|
23
31
|
/**
|
|
24
32
|
* Thin RN reimplementation of `@funkit/connect`'s `useTokenTransfer`: resolves
|
|
@@ -27,5 +35,5 @@ export interface UseTokenTransferResult {
|
|
|
27
35
|
* Polygon "original recipient" special-case are intentionally omitted. (The
|
|
28
36
|
* per-chain minimums are computed in `buildAvailableChains`, not here.)
|
|
29
37
|
*/
|
|
30
|
-
export declare function useTokenTransfer({ checkoutConfig, selectedChainId, dynamicRoutingId, enabled, }: UseTokenTransferParams): UseTokenTransferResult;
|
|
38
|
+
export declare function useTokenTransfer({ checkoutConfig, selectedChainId, dynamicRoutingId, checkoutId, clientMetadata, enabled, }: UseTokenTransferParams): UseTokenTransferResult;
|
|
31
39
|
//# sourceMappingURL=useTokenTransfer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTokenTransfer.d.ts","sourceRoot":"","sources":["../../../../src/transfer/hooks/useTokenTransfer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iCAAiC,EACjC,UAAU,EACX,MAAM,kBAAkB,CAAA;AAEzB,OAAO,EACL,KAAK,2BAA2B,EAChC,KAAK,SAAS,EACd,KAAK,uBAAuB,EAG7B,MAAM,sBAAsB,CAAA;AAuB7B,MAAM,WAAW,sBAAsB;IACrC,cAAc,EAAE,2BAA2B,GAAG,SAAS,CAAA;IACvD,8CAA8C;IAC9C,eAAe,EAAE,MAAM,GAAG,SAAS,CAAA;IACnC,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,WAAW,sBAAsB;IACrC,wCAAwC;IACxC,cAAc,EAAE,UAAU,GAAG,SAAS,CAAA;IACtC,gFAAgF;IAChF,YAAY,EAAE,iCAAiC,GAAG,SAAS,CAAA;IAC3D,sCAAsC;IACtC,aAAa,EAAE,MAAM,CAAA;IACrB,0CAA0C;IAC1C,kBAAkB,EAAE,MAAM,CAAA;IAC1B,SAAS,EAAE,SAAS,GAAG,SAAS,CAAA;IAChC,UAAU,EAAE,uBAAuB,CAAA;IACnC,SAAS,EAAE,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"useTokenTransfer.d.ts","sourceRoot":"","sources":["../../../../src/transfer/hooks/useTokenTransfer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iCAAiC,EACjC,UAAU,EACX,MAAM,kBAAkB,CAAA;AAEzB,OAAO,EACL,KAAK,2BAA2B,EAChC,KAAK,SAAS,EACd,KAAK,uBAAuB,EAG7B,MAAM,sBAAsB,CAAA;AAuB7B,MAAM,WAAW,sBAAsB;IACrC,cAAc,EAAE,2BAA2B,GAAG,SAAS,CAAA;IACvD,8CAA8C;IAC9C,eAAe,EAAE,MAAM,GAAG,SAAS,CAAA;IACnC,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,8DAA8D;IAC9D,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,mEAAmE;IACnE,cAAc,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IACpC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,WAAW,sBAAsB;IACrC,wCAAwC;IACxC,cAAc,EAAE,UAAU,GAAG,SAAS,CAAA;IACtC,gFAAgF;IAChF,YAAY,EAAE,iCAAiC,GAAG,SAAS,CAAA;IAC3D,sCAAsC;IACtC,aAAa,EAAE,MAAM,CAAA;IACrB,0CAA0C;IAC1C,kBAAkB,EAAE,MAAM,CAAA;IAC1B,SAAS,EAAE,SAAS,GAAG,SAAS,CAAA;IAChC,UAAU,EAAE,uBAAuB,CAAA;IACnC,SAAS,EAAE,OAAO,CAAA;IAClB,8EAA8E;IAC9E,mBAAmB,EAAE,KAAK,GAAG,SAAS,CAAA;IACtC,0CAA0C;IAC1C,mBAAmB,EAAE,MAAM,IAAI,CAAA;CAChC;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,UAAU,EACV,cAAc,EACd,OAAO,GACR,EAAE,sBAAsB,GAAG,sBAAsB,CAoCjD"}
|
|
@@ -1,12 +1,27 @@
|
|
|
1
1
|
import { type CheckoutInitTokenTransferResponse, type FunAddress } from '@funkit/api-base';
|
|
2
2
|
import { type CheckoutTokenTransferConfig } from '@funkit/connect-core';
|
|
3
|
+
import type { DepositClientMetadata } from '../../flow/depositFlowConfig';
|
|
3
4
|
export interface UseTransferInitParams {
|
|
4
5
|
/** Destination chain/asset to derive the deposit address for. */
|
|
5
6
|
checkoutConfig: CheckoutTokenTransferConfig | undefined;
|
|
6
|
-
/**
|
|
7
|
+
/**
|
|
8
|
+
* Final recipient, outranking the config's `customRecipient`. Both default
|
|
9
|
+
* to the identity's wallet address.
|
|
10
|
+
*/
|
|
7
11
|
recipientAddr?: FunAddress;
|
|
8
12
|
/** Dynamic-routing id used to resolve UDA params. */
|
|
9
13
|
dynamicRoutingId?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Active flow's checkoutId, threaded to `/eoa` so the backend can scope the
|
|
16
|
+
* generated UDA to this checkout attempt. Caller must keep this stable for
|
|
17
|
+
* the life of the flow (see `FunkitFlowProvider`).
|
|
18
|
+
*/
|
|
19
|
+
checkoutId?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Host-supplied correlation ids (e.g. `externalUserId`/`clientTransactionId`),
|
|
22
|
+
* sent to `/eoa`. Must contain only stable JSON-serializable properties.
|
|
23
|
+
*/
|
|
24
|
+
clientMetadata?: DepositClientMetadata;
|
|
10
25
|
/** Gate the network call (e.g. only when the screen is visible). */
|
|
11
26
|
enabled?: boolean;
|
|
12
27
|
}
|
|
@@ -15,6 +30,10 @@ export interface UseTransferInitResult {
|
|
|
15
30
|
recipientAddr: FunAddress;
|
|
16
31
|
isLoading: boolean;
|
|
17
32
|
isFetching: boolean;
|
|
33
|
+
/** The `/eoa` call that mints the deposit address failed. */
|
|
34
|
+
error: Error | undefined;
|
|
35
|
+
/** Replays that call, for a caller that puts a retry on screen. */
|
|
36
|
+
retry: () => void;
|
|
18
37
|
}
|
|
19
38
|
/**
|
|
20
39
|
* Thin RN reimplementation of `@funkit/connect`'s `useCheckoutTransferInit`:
|
|
@@ -24,5 +43,5 @@ export interface UseTransferInitResult {
|
|
|
24
43
|
* post-action gating are dropped. Lighter's main-account override is kept —
|
|
25
44
|
* see {@link useLighterDepositRecipientOverride}.
|
|
26
45
|
*/
|
|
27
|
-
export declare function useTransferInit({ checkoutConfig, recipientAddr, dynamicRoutingId, enabled, }: UseTransferInitParams): UseTransferInitResult;
|
|
46
|
+
export declare function useTransferInit({ checkoutConfig, recipientAddr, dynamicRoutingId, checkoutId, clientMetadata, enabled, }: UseTransferInitParams): UseTransferInitResult;
|
|
28
47
|
//# sourceMappingURL=useTransferInit.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTransferInit.d.ts","sourceRoot":"","sources":["../../../../src/transfer/hooks/useTransferInit.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,iCAAiC,EACtC,KAAK,UAAU,EAEhB,MAAM,kBAAkB,CAAA;AACzB,OAAO,EACL,KAAK,2BAA2B,EAEjC,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"useTransferInit.d.ts","sourceRoot":"","sources":["../../../../src/transfer/hooks/useTransferInit.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,iCAAiC,EACtC,KAAK,UAAU,EAEhB,MAAM,kBAAkB,CAAA;AACzB,OAAO,EACL,KAAK,2BAA2B,EAEjC,MAAM,sBAAsB,CAAA;AAQ7B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAA;AAErE,MAAM,WAAW,qBAAqB;IACpC,iEAAiE;IACjE,cAAc,EAAE,2BAA2B,GAAG,SAAS,CAAA;IACvD;;;OAGG;IACH,aAAa,CAAC,EAAE,UAAU,CAAA;IAC1B,qDAAqD;IACrD,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;;OAGG;IACH,cAAc,CAAC,EAAE,qBAAqB,CAAA;IACtC,oEAAoE;IACpE,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,WAAW,qBAAqB;IACpC,YAAY,EAAE,iCAAiC,GAAG,SAAS,CAAA;IAC3D,aAAa,EAAE,UAAU,CAAA;IACzB,SAAS,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,OAAO,CAAA;IACnB,6DAA6D;IAC7D,KAAK,EAAE,KAAK,GAAG,SAAS,CAAA;IACxB,mEAAmE;IACnE,KAAK,EAAE,MAAM,IAAI,CAAA;CAClB;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,EAC9B,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,UAAU,EACV,cAAc,EACd,OAAc,GACf,EAAE,qBAAqB,GAAG,qBAAqB,CAkF/C"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** Where each {@link hsbRamp} stop sits in a 0–1 crossing. */
|
|
2
|
+
export declare const RAMP_PROGRESS: number[];
|
|
3
|
+
/**
|
|
4
|
+
* The path from one fill colour to the next sampled through HSB, as stops a
|
|
5
|
+
* plain colour interpolation can follow on the UI thread (Neil, ENG-6125:
|
|
6
|
+
* white → green travels by brightness, not along the RGB line).
|
|
7
|
+
*
|
|
8
|
+
* An unsaturated colour has no hue of its own, so it borrows the other end's:
|
|
9
|
+
* white otherwise leaves at hue 0 and the crossing flashes yellow on its way
|
|
10
|
+
* to green. A colour `colord` cannot read crosses nowhere — every stop is the
|
|
11
|
+
* colour being crossed to, as a wrong colour is worse than no motion.
|
|
12
|
+
*/
|
|
13
|
+
export declare function hsbRamp(from: string, to: string): string[];
|
|
14
|
+
//# sourceMappingURL=colorMotion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"colorMotion.d.ts","sourceRoot":"","sources":["../../../src/utils/colorMotion.ts"],"names":[],"mappings":"AAMA,8DAA8D;AAC9D,eAAO,MAAM,aAAa,EAAE,MAAM,EAGjC,CAAA;AAED;;;;;;;;;GASG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,EAAE,CA4B1D"}
|
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
export declare function groupThousands(amount: string): string;
|
|
6
6
|
/**
|
|
7
7
|
* A rate as its percentage: `0.005` → `0.5%`. Trailing zeros are dropped, so a
|
|
8
|
-
* whole percent reads `1%` rather than `1.00%`.
|
|
8
|
+
* whole percent reads `1%` rather than `1.00%`. A rate too small to round to a
|
|
9
|
+
* tenth reads `<0.1%`, since the row beside it still charges a real amount.
|
|
9
10
|
*/
|
|
10
11
|
export declare function formatPercent(rate: number): string;
|
|
11
12
|
/**
|
|
@@ -25,4 +26,12 @@ export declare function formatTokenAmount(amount: string, maxDecimals?: number):
|
|
|
25
26
|
export declare function formatUsd(value: number): string;
|
|
26
27
|
/** `99.94, 'AUD'` → `A$99.94`. Fiat amounts are not always dollars. */
|
|
27
28
|
export declare function formatFiat(value: number, currency: string): string;
|
|
29
|
+
/**
|
|
30
|
+
* `2, 'USD'` → `$2`, `2.5, 'USD'` → `$2.50`.
|
|
31
|
+
*
|
|
32
|
+
* For the deposit limit disclaimers only: a threshold reads the way the rail
|
|
33
|
+
* states it ("the minimum for this purchase is 2 USD"), and cents the user
|
|
34
|
+
* never has to think about are noise. Amounts they pay keep {@link formatFiat}.
|
|
35
|
+
*/
|
|
36
|
+
export declare function formatFiatWhole(value: number, currency: string): string;
|
|
28
37
|
//# sourceMappingURL=formatAmount.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatAmount.d.ts","sourceRoot":"","sources":["../../../src/utils/formatAmount.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAIrD;
|
|
1
|
+
{"version":3,"file":"formatAmount.d.ts","sourceRoot":"","sources":["../../../src/utils/formatAmount.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAIrD;AAQD;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAQlD;AAED;;;GAGG;AACH,eAAO,MAAM,cAAc,IAAI,CAAA;AAE/B;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,MAAM,EACd,WAAW,GAAE,MAAuB,GACnC,MAAM,CAKR;AAED,8EAA8E;AAC9E,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAE/C;AAmBD,uEAAuE;AACvE,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAElE;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAGvE"}
|
|
@@ -6,6 +6,7 @@ export declare const MOTION_TIMING: {
|
|
|
6
6
|
duration: number;
|
|
7
7
|
easing: import("react-native-reanimated").EasingFunctionFactory;
|
|
8
8
|
};
|
|
9
|
+
export declare const SPINNER_APPEAR_DELAY_MS = 150;
|
|
9
10
|
export declare const GLYPH_LAYOUT: LinearTransition;
|
|
10
11
|
export declare const DIGIT_ENTER_SCALE = 0.5;
|
|
11
12
|
export declare const DIGIT_TRAVEL_RATIO = 0.4;
|
|
@@ -18,4 +19,66 @@ export declare function digitKeyframes(travel: number, delay?: number): {
|
|
|
18
19
|
entering: import("react-native-reanimated").ReanimatedKeyframe;
|
|
19
20
|
exiting: import("react-native-reanimated").ReanimatedKeyframe;
|
|
20
21
|
};
|
|
22
|
+
export declare const SMOOTH_EASING: import("react-native-reanimated").EasingFunctionFactory;
|
|
23
|
+
/**
|
|
24
|
+
* The deposit action changing phase: its fill crosses between phase colours on
|
|
25
|
+
* the amount screen's own clock, and the label and spinner arrive once that
|
|
26
|
+
* crossing is visibly under way rather than with it.
|
|
27
|
+
*/
|
|
28
|
+
export declare const CONTENT_FADE_DELAY = 60;
|
|
29
|
+
export declare const CONTENT_FADE_DURATION = 120;
|
|
30
|
+
export declare const CONTENT_FADE_TIMING: {
|
|
31
|
+
duration: number;
|
|
32
|
+
easing: import("react-native-reanimated").EasingFunctionFactory;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* A keyboard action rising into place. Deposit amount fills use
|
|
36
|
+
* DepositActionLayers so state changes can replay without remounting.
|
|
37
|
+
*/
|
|
38
|
+
export declare const RISE_TRAVEL = 24;
|
|
39
|
+
export declare const RISE_ENTERING: import("react-native-reanimated").ReanimatedKeyframe;
|
|
40
|
+
export declare const RISE_EXITING: import("react-native-reanimated").ReanimatedKeyframe;
|
|
41
|
+
/**
|
|
42
|
+
* transitions.dev "Modal open / close": a surface scales up from 0.96 over
|
|
43
|
+
* 250ms and dips back to it over a quicker 150ms.
|
|
44
|
+
*/
|
|
45
|
+
export declare const MODAL_OPEN_DURATION = 250;
|
|
46
|
+
export declare const MODAL_CLOSE_DURATION = 150;
|
|
47
|
+
export declare const MODAL_SCALE = 0.96;
|
|
48
|
+
export declare const MODAL_ENTERING: import("react-native-reanimated").ReanimatedKeyframe;
|
|
49
|
+
export declare const MODAL_EXITING: import("react-native-reanimated").ReanimatedKeyframe;
|
|
50
|
+
/**
|
|
51
|
+
* transitions.dev "Page side-by-side": the page ahead sits 8px to the right,
|
|
52
|
+
* the page behind 8px to the left, and a turn fades each across 250ms. The
|
|
53
|
+
* blur it also runs is left out: React Native cannot animate a filter.
|
|
54
|
+
*/
|
|
55
|
+
export declare const PAGE_TURN_DURATION = 250;
|
|
56
|
+
export declare const PAGE_SLIDE_DISTANCE = 8;
|
|
57
|
+
export declare const PAGE_TIMING: {
|
|
58
|
+
duration: number;
|
|
59
|
+
easing: import("react-native-reanimated").EasingFunctionFactory;
|
|
60
|
+
};
|
|
61
|
+
/** `direction` is +1 turning forward, -1 turning back. */
|
|
62
|
+
export declare function pageEntering(direction: 1 | -1): import("react-native-reanimated").ReanimatedKeyframe;
|
|
63
|
+
/**
|
|
64
|
+
* transitions.dev "Success check", as an arrival for the control itself: fade
|
|
65
|
+
* in, swing upright from 80°, and bob up 40px on a bouncy overshoot, all over
|
|
66
|
+
* 500ms. The icon's own stroke-draw and blur are not part of it here.
|
|
67
|
+
*/
|
|
68
|
+
export declare const CHECK_DURATION = 500;
|
|
69
|
+
export declare const CHECK_ROTATE_FROM = "80deg";
|
|
70
|
+
export declare const CHECK_BOB_DISTANCE = 40;
|
|
71
|
+
export declare const CHECK_BOB_EASING: import("react-native-reanimated").EasingFunctionFactory;
|
|
72
|
+
export declare const CHECK_ENTERING: import("react-native-reanimated").ReanimatedKeyframe;
|
|
73
|
+
/**
|
|
74
|
+
* A keyboard action arriving. Short travel on purpose: a longer rise reads as
|
|
75
|
+
* the button coming out from behind the keyboard, and the fade carries the
|
|
76
|
+
* arrival instead.
|
|
77
|
+
*/
|
|
78
|
+
export declare const ACTION_ENTER_TRAVEL = 12;
|
|
79
|
+
export declare const ACTION_ENTER_DURATION = 300;
|
|
80
|
+
export declare const ACTION_ENTER_TIMING: {
|
|
81
|
+
duration: number;
|
|
82
|
+
easing: import("react-native-reanimated").EasingFunction;
|
|
83
|
+
};
|
|
21
84
|
//# sourceMappingURL=motion.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"motion.d.ts","sourceRoot":"","sources":["../../../src/utils/motion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAI5E,eAAO,MAAM,eAAe,MAAM,CAAA;AAClC,eAAO,MAAM,aAAa,yDAAkC,CAAA;AAC5D,mFAAmF;AACnF,eAAO,MAAM,aAAa;;;CAGzB,CAAA;AAID,eAAO,MAAM,YAAY,kBACyC,CAAA;AAKlE,eAAO,MAAM,iBAAiB,MAAM,CAAA;AACpC,eAAO,MAAM,kBAAkB,MAAM,CAAA;AAIrC,eAAO,MAAM,aAAa,KAAK,CAAA;AAE/B;;;GAGG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,SAAI;;;EAwBvD"}
|
|
1
|
+
{"version":3,"file":"motion.d.ts","sourceRoot":"","sources":["../../../src/utils/motion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAI5E,eAAO,MAAM,eAAe,MAAM,CAAA;AAClC,eAAO,MAAM,aAAa,yDAAkC,CAAA;AAC5D,mFAAmF;AACnF,eAAO,MAAM,aAAa;;;CAGzB,CAAA;AAID,eAAO,MAAM,uBAAuB,MAAM,CAAA;AAI1C,eAAO,MAAM,YAAY,kBACyC,CAAA;AAKlE,eAAO,MAAM,iBAAiB,MAAM,CAAA;AACpC,eAAO,MAAM,kBAAkB,MAAM,CAAA;AAIrC,eAAO,MAAM,aAAa,KAAK,CAAA;AAE/B;;;GAGG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,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AAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAKpE;AAED,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;;;EAOpE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../src/withdrawal/validation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,0BAA0B,
|
|
1
|
+
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../src/withdrawal/validation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,0BAA0B,EAQhC,MAAM,sBAAsB,CAAA;AAE7B,OAAO,KAAK,EACV,oBAAoB,EACpB,eAAe,EAChB,MAAM,8BAA8B,CAAA;AAMrC;;;;;;GAMG;AACH,MAAM,MAAM,kBAAkB,GAC1B,iBAAiB,GACjB,uBAAuB,GACvB,0BAA0B,GAC1B,cAAc,GACd,cAAc,GACd,oBAAoB,GACpB,mBAAmB,CAAA;AAEvB;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,EAC7B,MAAM,EACN,WAAW,EACX,mBAAmB,EACnB,mBAAmB,EACnB,MAAM,EACN,OAAO,GACR,EAAE;IACD,MAAM,EAAE,IAAI,CACV,oBAAoB,EAClB,wBAAwB,GACxB,qBAAqB,GACrB,qBAAqB,GACrB,wBAAwB,CAC3B,CAAA;IACD,WAAW,EAAE,eAAe,CAAA;IAC5B,0DAA0D;IAC1D,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,4EAA4E;IAC5E,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,GAAG,SAAS,CAAA;CAC5B,GAAG,0BAA0B,CAmC7B;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,gBAAgB,EAChB,aAAa,EACb,WAAW,EACX,gBAAgB,EAChB,WAAW,GACZ,EAAE;IACD,gBAAgB,EAAE,MAAM,CAAA;IACxB,aAAa,EAAE,MAAM,CAAA;IACrB,WAAW,EAAE,eAAe,CAAA;IAC5B,gBAAgB,EAAE,eAAe,GAAG,SAAS,CAAA;IAC7C,WAAW,EAAE,OAAO,CAAA;CACrB,GAAG,OAAO,CAgBV;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,gBAAgB,EAChB,sBAAsB,EACtB,uBAAuB,EACvB,MAAM,EACN,gBAAgB,EAChB,gBAAgB,GACjB,EAAE;IACD,gBAAgB,EAAE,MAAM,CAAA;IACxB,sBAAsB,EAAE,OAAO,CAAA;IAC/B,uBAAuB,EAAE,OAAO,CAAA;IAChC,MAAM,EAAE,MAAM,CAAA;IACd,gBAAgB,EAAE,0BAA0B,CAAA;IAC5C,gBAAgB,EAAE,eAAe,GAAG,SAAS,CAAA;CAC9C,GAAG,kBAAkB,GAAG,SAAS,CA6BjC;AAED;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,MAAM,EACN,cAAc,EACd,QAAQ,GACT,EAAE;IACD,MAAM,EAAE,MAAM,CAAA;IACd,cAAc,EAAE,MAAM,CAAA;IACtB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;CAC7B,GAAG,OAAO,CAiBV"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect-rn",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0",
|
|
4
4
|
"description": "React Native bindings for @funkit/connect. Re-exports the headless @funkit/connect-core logic; the RN platform halves (Restyle theme, WebView Swapped transport, Transfer/Swapped screens, logging) land in later releases.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -35,12 +35,16 @@
|
|
|
35
35
|
"author": "https://fun.xyz/",
|
|
36
36
|
"license": "MIT",
|
|
37
37
|
"dependencies": {
|
|
38
|
+
"@moonpay/platform-sdk-react-native": "1.16.0",
|
|
38
39
|
"@shopify/restyle": "^2.4.5",
|
|
40
|
+
"@tanstack/react-form": "1.33.5",
|
|
39
41
|
"@transak/ui-components-core": "0.5.0",
|
|
40
42
|
"colord": "2.10.0",
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"@funkit/api-base": "8.
|
|
43
|
+
"libphonenumber-js": "1.13.6",
|
|
44
|
+
"react-i18next": "12.3.1",
|
|
45
|
+
"@funkit/api-base": "8.3.1",
|
|
46
|
+
"@funkit/chains": "2.4.0",
|
|
47
|
+
"@funkit/connect-core": "8.0.0"
|
|
44
48
|
},
|
|
45
49
|
"peerDependencies": {
|
|
46
50
|
"@gorhom/bottom-sheet": ">=5",
|
|
@@ -118,6 +122,7 @@
|
|
|
118
122
|
"lint:fix": "oxlint --fix",
|
|
119
123
|
"test": "vitest",
|
|
120
124
|
"storybook": "storybook dev -p 7007",
|
|
125
|
+
"typecheck:stories": "tsc -p tsconfig.stories.json",
|
|
121
126
|
"build-storybook": "storybook build"
|
|
122
127
|
}
|
|
123
128
|
}
|