@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
|
@@ -49,6 +49,13 @@ export declare function countryName(country: PhoneCountry, locale: string): stri
|
|
|
49
49
|
* `+61` alone is not an incomplete number, it is no number.
|
|
50
50
|
*/
|
|
51
51
|
export declare function toE164(country: PhoneCountry, national: string): string;
|
|
52
|
-
/**
|
|
53
|
-
export declare function
|
|
52
|
+
/** The code a number opens with, read off digits carrying no `+`. */
|
|
53
|
+
export declare function leadingDialCode(digits: string): string | undefined;
|
|
54
|
+
/** The chip keeps a code it already carries; else the code's own country. */
|
|
55
|
+
export declare function countryOnDialCode(code: string, preferred: PhoneCountry): PhoneCountry;
|
|
56
|
+
/**
|
|
57
|
+
* What the box shows: the number less any code the table knows, not only the
|
|
58
|
+
* chip's — autofill hands the contact over with its own.
|
|
59
|
+
*/
|
|
60
|
+
export declare function nationalPart(value: string): string;
|
|
54
61
|
//# sourceMappingURL=phoneCountries.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"phoneCountries.d.ts","sourceRoot":"","sources":["../../../src/fiat/phoneCountries.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,YAAY;IAC3B,qEAAqE;IACrE,MAAM,EAAE,MAAM,CAAA;IACd,wCAAwC;IACxC,QAAQ,EAAE,MAAM,CAAA;IAChB,8DAA8D;IAC9D,IAAI,EAAE,MAAM,CAAA;IACZ;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AA6PD,0EAA0E;AAC1E,eAAO,MAAM,eAAe,EAAE,SAAS,YAAY,EAOlD,CAAA;AAKD,wBAAgB,YAAY,CAC1B,MAAM,EAAE,MAAM,GAAG,SAAS,GACzB,YAAY,GAAG,SAAS,CAM1B;AAED,kEAAkE;AAClE,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,YAAY,CAE5E;AAMD;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAMlD;AAID;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAEzE;AAqBD;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAGtE;
|
|
1
|
+
{"version":3,"file":"phoneCountries.d.ts","sourceRoot":"","sources":["../../../src/fiat/phoneCountries.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,YAAY;IAC3B,qEAAqE;IACrE,MAAM,EAAE,MAAM,CAAA;IACd,wCAAwC;IACxC,QAAQ,EAAE,MAAM,CAAA;IAChB,8DAA8D;IAC9D,IAAI,EAAE,MAAM,CAAA;IACZ;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AA6PD,0EAA0E;AAC1E,eAAO,MAAM,eAAe,EAAE,SAAS,YAAY,EAOlD,CAAA;AAKD,wBAAgB,YAAY,CAC1B,MAAM,EAAE,MAAM,GAAG,SAAS,GACzB,YAAY,GAAG,SAAS,CAM1B;AAED,kEAAkE;AAClE,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,YAAY,CAE5E;AAMD;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAMlD;AAID;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAEzE;AAqBD;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAGtE;AAuBD,qEAAqE;AACrE,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAElE;AAuBD,6EAA6E;AAC7E,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,YAAY,GACtB,YAAY,CASd;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAOlD"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type PhoneCountry } from './phoneCountries';
|
|
2
|
+
export declare function formatPhoneDraft(country: PhoneCountry, value: string): string;
|
|
3
|
+
/** Removing a formatting character must still let Backspace remove a digit. */
|
|
4
|
+
export declare function editPhoneDraft(previous: string, next: string): string;
|
|
5
|
+
/** A number split where its calling code ends. */
|
|
6
|
+
export interface DialledPhone {
|
|
7
|
+
country: PhoneCountry;
|
|
8
|
+
national: string;
|
|
9
|
+
}
|
|
10
|
+
/** A pasted international number moves its prefix into the country selector. */
|
|
11
|
+
export declare function pastedPhone(value: string): DialledPhone | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* A number arriving whole, with the code it carries moved to the chip:
|
|
14
|
+
* `pastedPhone` moves one only out of a number libphonenumber calls valid.
|
|
15
|
+
*/
|
|
16
|
+
export declare function insertedPhone(previous: string, next: string, selected: PhoneCountry): DialledPhone | undefined;
|
|
17
|
+
//# sourceMappingURL=phoneDraft.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"phoneDraft.d.ts","sourceRoot":"","sources":["../../../src/fiat/phoneDraft.ts"],"names":[],"mappings":"AAMA,OAAO,EAEL,KAAK,YAAY,EAKlB,MAAM,kBAAkB,CAAA;AAEzB,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAY7E;AAED,+EAA+E;AAC/E,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAiBrE;AAWD,kDAAkD;AAClD,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,YAAY,CAAA;IACrB,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,gFAAgF;AAChF,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,YAAY,GAAG,SAAS,CAOnE;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAC3B,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,YAAY,GACrB,YAAY,GAAG,SAAS,CAW1B"}
|
|
@@ -2,22 +2,25 @@ export interface CoinbaseCheckoutSurfaceProps {
|
|
|
2
2
|
checkoutUrl: string;
|
|
3
3
|
/** Log context only — the contract says URL surfaces may carry none. */
|
|
4
4
|
environment: string;
|
|
5
|
+
/** The button is drawn and can be pressed. */
|
|
6
|
+
onReady: () => void;
|
|
5
7
|
/** The user paid; what happens to the money is the order's to report. */
|
|
6
8
|
onPaid: () => void;
|
|
7
9
|
onFailed: (code: string, detail?: string) => void;
|
|
8
|
-
onClose: () => void;
|
|
9
10
|
}
|
|
10
11
|
/**
|
|
11
|
-
* Coinbase's hosted Apple Pay
|
|
12
|
+
* Coinbase's hosted Apple Pay button.
|
|
12
13
|
*
|
|
13
|
-
* Their page draws
|
|
14
|
-
*
|
|
15
|
-
* the sheet never opens — so the
|
|
14
|
+
* Their page draws nothing but the button and waits for a real tap on it —
|
|
15
|
+
* pressing it from injected script reaches `pending_payment_auth` and stops,
|
|
16
|
+
* the sheet never opens — so the WebView is sized as the button and sat in
|
|
17
|
+
* the action's own slot (design 2114:8131: "Deposit with Apple Pay" is the
|
|
18
|
+
* amount screen's action, not a page of its own).
|
|
16
19
|
*
|
|
17
|
-
* - nothing covers the page: an overlay waiting on `load_success` is what
|
|
18
|
-
* hid it, and their button is the only control that opens the sheet
|
|
19
20
|
* - a cancelled sheet leaves the page loaded and the button live, so pressing
|
|
20
21
|
* it again opens the sheet rather than re-running the order
|
|
22
|
+
* - the page paints no background of its own once told to, so the frame
|
|
23
|
+
* around it decides the button's shape
|
|
21
24
|
*/
|
|
22
|
-
export declare function CoinbaseCheckoutSurface({ checkoutUrl, environment, onPaid, onFailed,
|
|
25
|
+
export declare function CoinbaseCheckoutSurface({ checkoutUrl, environment, onReady, onPaid, onFailed, }: CoinbaseCheckoutSurfaceProps): import("react").JSX.Element;
|
|
23
26
|
//# sourceMappingURL=CoinbaseCheckoutSurface.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoinbaseCheckoutSurface.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/CoinbaseCheckoutSurface.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CoinbaseCheckoutSurface.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/CoinbaseCheckoutSurface.tsx"],"names":[],"mappings":"AAYA,MAAM,WAAW,4BAA4B;IAC3C,WAAW,EAAE,MAAM,CAAA;IACnB,wEAAwE;IACxE,WAAW,EAAE,MAAM,CAAA;IACnB,8CAA8C;IAC9C,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,yEAAyE;IACzE,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;CAClD;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,WAAW,EACX,WAAW,EACX,OAAO,EACP,MAAM,EACN,QAAQ,GACT,EAAE,4BAA4B,+BAqG9B"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { SurfaceContext } from './adapter';
|
|
3
|
+
/**
|
|
4
|
+
* The slot a provider-drawn control (an Apple Pay button in a WebView) is
|
|
5
|
+
* clipped into, shaped like the button it stands in for: the theme's button
|
|
6
|
+
* height and radius, so a brand that squares its buttons off squares this one
|
|
7
|
+
* off with them.
|
|
8
|
+
*
|
|
9
|
+
* `fill` paints the corners the hosted control rounds off — it must match that
|
|
10
|
+
* control's own background, since the provider owns everything inside.
|
|
11
|
+
*
|
|
12
|
+
* Drawn at the large button's size, which an adapter cannot ask its host for:
|
|
13
|
+
* inline, `SurfaceSlot` must be given the same one (`SURFACE_MATCHED_SIZE`) or
|
|
14
|
+
* its clip and this frame's disagree.
|
|
15
|
+
*/
|
|
16
|
+
export declare function HostedControlFrame({ fill, edgeColor, placement, children, }: {
|
|
17
|
+
fill: string;
|
|
18
|
+
/** Hairline ring for a control whose fill matches the surface behind it. */
|
|
19
|
+
edgeColor?: string;
|
|
20
|
+
placement: SurfaceContext['placement'];
|
|
21
|
+
children: ReactNode;
|
|
22
|
+
}): import("react").JSX.Element;
|
|
23
|
+
//# sourceMappingURL=HostedControlFrame.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HostedControlFrame.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/HostedControlFrame.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAMtC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAM/C;;;;;;;;;;;;GAYG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,IAAI,EACJ,SAAS,EACT,SAAS,EACT,QAAQ,GACT,EAAE;IACD,IAAI,EAAE,MAAM,CAAA;IACZ,4EAA4E;IAC5E,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,cAAc,CAAC,WAAW,CAAC,CAAA;IACtC,QAAQ,EAAE,SAAS,CAAA;CACpB,+BA+BA"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { SurfaceAdapter } from './adapter';
|
|
2
2
|
/**
|
|
3
|
-
* Coinbase's order arrives already made, with a hosted page that
|
|
4
|
-
*
|
|
5
|
-
* the
|
|
3
|
+
* Coinbase's order arrives already made, with a hosted page that is nothing
|
|
4
|
+
* but its Apple Pay button. Embedded, then: the button takes the action's
|
|
5
|
+
* slot on the amount screen, as Transak's does, rather than a screen of its
|
|
6
|
+
* own with a page's worth of empty space around one control.
|
|
6
7
|
*/
|
|
7
8
|
export declare const coinbaseApplePay: SurfaceAdapter;
|
|
8
9
|
//# sourceMappingURL=coinbaseApplePay.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coinbaseApplePay.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/coinbaseApplePay.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"coinbaseApplePay.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/coinbaseApplePay.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,WAAW,CAAA;AA0D/D;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,EAAE,cAO9B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"moonpay.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/moonpay.tsx"],"names":[],"mappings":"AAyBA,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,WAAW,CAAA;AAwE/D,eAAO,MAAM,OAAO,EAAE,cAiCrB,CAAA"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { Quote } from '@funkit/connect-core';
|
|
2
1
|
import type { SurfaceAdapter } from './adapter';
|
|
3
2
|
/** Mints a replacement token when the SDK's own runs out mid-capture. */
|
|
4
3
|
export type RenewToken = () => Promise<string | undefined>;
|
|
@@ -13,7 +12,7 @@ export type RenewToken = () => Promise<string | undefined>;
|
|
|
13
12
|
* Built per screen rather than registered, because renewal needs the quote the
|
|
14
13
|
* capture belongs to — which the surface itself does not carry.
|
|
15
14
|
*/
|
|
16
|
-
export declare function sumsubKycAdapter(renewToken: RenewToken
|
|
15
|
+
export declare function sumsubKycAdapter(renewToken: RenewToken): SurfaceAdapter;
|
|
17
16
|
/** The registry's entry, for a screen that cannot renew. */
|
|
18
17
|
export declare const sumsubKyc: SurfaceAdapter;
|
|
19
18
|
//# sourceMappingURL=sumsubKyc.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sumsubKyc.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/sumsubKyc.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sumsubKyc.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/sumsubKyc.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,WAAW,CAAA;AAO/D,yEAAyE;AACzE,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;AAoB1D;;;;;;GAMG;AACH;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,UAAU,GAAG,cAAc,CAQvE;AAED,4DAA4D;AAC5D,eAAO,MAAM,SAAS,EAAE,cAEvB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transakApplePay.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/transakApplePay.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"transakApplePay.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/transakApplePay.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,WAAW,CAAA;AA4C/D,mEAAmE;AACnE,eAAO,MAAM,eAAe,EAAE,cAO7B,CAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { FailureReason, FiatStepResponse } from '@funkit/connect-core';
|
|
2
|
+
import type { TFunction } from 'i18next';
|
|
3
|
+
/**
|
|
4
|
+
* What the alert says when the flow is sent back to the quote with an error.
|
|
5
|
+
*
|
|
6
|
+
* The server answers a refusal it cannot place on a field — a provider that
|
|
7
|
+
* will not fill the amount, a form the provider no longer holds, an outage —
|
|
8
|
+
* by re-presenting the quote with `error` set. Nothing on the amount screen
|
|
9
|
+
* shows that, so without this the user watches the form they just filled
|
|
10
|
+
* close and is left on the amount with no word why (design 2114:8131: the
|
|
11
|
+
* default iOS alert over the deposit screen).
|
|
12
|
+
*/
|
|
13
|
+
export interface QuoteRefusalAlert {
|
|
14
|
+
title: string;
|
|
15
|
+
message: string;
|
|
16
|
+
}
|
|
17
|
+
export declare function showPaymentUnavailableAlert(t: TFunction, applePay: boolean, scheme?: 'light' | 'dark'): void;
|
|
18
|
+
export declare function showQuoteRefusalAlert(error: FailureReason, t: TFunction, scheme?: 'light' | 'dark'): void;
|
|
19
|
+
/** The error a step response carries back onto the quote, if it does. */
|
|
20
|
+
export declare function quoteRefusal(stepResponse: FiatStepResponse | undefined): FailureReason | undefined;
|
|
21
|
+
export declare function quoteRefusalAlert(error: FailureReason, t: TFunction): QuoteRefusalAlert;
|
|
22
|
+
/** Select the contact-screen recovery, if the refusal belongs on that screen. */
|
|
23
|
+
export declare function contactRefusal(error: FailureReason | undefined): 'reverify' | 'change' | 'rate-limited' | undefined;
|
|
24
|
+
//# sourceMappingURL=quoteRefusal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quoteRefusal.d.ts","sourceRoot":"","sources":["../../../src/fiat/quoteRefusal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAC3E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAIxC;;;;;;;;;GASG;AACH,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,wBAAgB,2BAA2B,CACzC,CAAC,EAAE,SAAS,EACZ,QAAQ,EAAE,OAAO,EACjB,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,QAa1B;AAED,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,aAAa,EACpB,CAAC,EAAE,SAAS,EACZ,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,QAkB1B;AAED,yEAAyE;AACzE,wBAAgB,YAAY,CAC1B,YAAY,EAAE,gBAAgB,GAAG,SAAS,GACzC,aAAa,GAAG,SAAS,CAG3B;AAED,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,aAAa,EACpB,CAAC,EAAE,SAAS,GACX,iBAAiB,CA8BnB;AAED,iFAAiF;AACjF,wBAAgB,cAAc,CAC5B,KAAK,EAAE,aAAa,GAAG,SAAS,GAC/B,UAAU,GAAG,QAAQ,GAAG,cAAc,GAAG,SAAS,CAepD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderCaptureSurface.d.ts","sourceRoot":"","sources":["../../../src/fiat/renderCaptureSurface.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,OAAO,KAAK,EAEV,cAAc,EACd,cAAc,EACd,mBAAmB,EACpB,MAAM,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"renderCaptureSurface.d.ts","sourceRoot":"","sources":["../../../src/fiat/renderCaptureSurface.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,OAAO,KAAK,EAEV,cAAc,EACd,cAAc,EACd,mBAAmB,EACpB,MAAM,qBAAqB,CAAA;AAqC5B;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE,OAAO,GACf,mBAAmB,GAAG,SAAS,CAEjC;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,OAAO,EACP,QAAQ,EACR,GAAG,OAAO,EACX,EAAE,cAAc,GAAG;IAClB,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,CAAC,EAAE,SAAS,cAAc,EAAE,CAAA;CACrC,GAAG,SAAS,CAEZ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sectionDetail.d.ts","sourceRoot":"","sources":["../../../src/fiat/sectionDetail.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAE9C;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,UAAU,EAAE,CAAC,EAAE,SAAS,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"sectionDetail.d.ts","sourceRoot":"","sources":["../../../src/fiat/sectionDetail.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAE9C;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,UAAU,EAAE,CAAC,EAAE,SAAS,GAAG,MAAM,CAmBvE"}
|
|
@@ -19,14 +19,26 @@ export interface SessionContactField {
|
|
|
19
19
|
*/
|
|
20
20
|
export declare function sessionContactFields(entry: EntryCta): readonly SessionContactField[];
|
|
21
21
|
export declare function isUnfamiliarContactName(name: string): boolean;
|
|
22
|
-
/** Nothing opens the session until every field it declares is answered. */
|
|
23
|
-
export declare function areContactsComplete(fields: readonly SessionContactField[], values: Readonly<Record<string, string>>): boolean;
|
|
24
22
|
/**
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
23
|
+
* Nothing opens the session until every field it declares is answered.
|
|
24
|
+
* `region` is the buyer's country, so a number typed the way they dial it at
|
|
25
|
+
* home counts once it can be read as one.
|
|
28
26
|
*/
|
|
29
|
-
export declare function
|
|
27
|
+
export declare function areContactsComplete(fields: readonly SessionContactField[], values: Readonly<Record<string, string>>, region?: string): boolean;
|
|
28
|
+
/**
|
|
29
|
+
* A number has to be one the world's numbering plans actually contain — the
|
|
30
|
+
* right length for its country and a leading digit its country hands out —
|
|
31
|
+
* since `/fiat/*` refuses anything else on any route and the code it sends
|
|
32
|
+
* would otherwise go nowhere. A pattern the step declares narrows that further;
|
|
33
|
+
* it never widens it.
|
|
34
|
+
*/
|
|
35
|
+
export declare function isCompleteContact(field: SessionContactField, value: string, region?: string): boolean;
|
|
36
|
+
/**
|
|
37
|
+
* The value as the step sends it: a number in E.164, however it was typed, and
|
|
38
|
+
* an address trimmed. What could not be read as a number goes as typed, so the
|
|
39
|
+
* server's own refusal names it rather than a silently altered value.
|
|
40
|
+
*/
|
|
41
|
+
export declare function normalizeContact(field: SessionContactField, value: string, region?: string): string;
|
|
30
42
|
/**
|
|
31
43
|
* Deliberately loose — a stricter pattern rejects addresses that are perfectly
|
|
32
44
|
* valid.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sessionContact.d.ts","sourceRoot":"","sources":["../../../src/fiat/sessionContact.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"sessionContact.d.ts","sourceRoot":"","sources":["../../../src/fiat/sessionContact.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAOpD,wEAAwE;AACxE,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,OAAO,CAAA;AAE3C,MAAM,WAAW,mBAAmB;IAClC,+EAA+E;IAC/E,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,WAAW,CAAA;IACjB,gEAAgE;IAChE,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,QAAQ,GACd,SAAS,mBAAmB,EAAE,CAWhC;AAgBD,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAE7D;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,SAAS,mBAAmB,EAAE,EACtC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EACxC,MAAM,CAAC,EAAE,MAAM,GACd,OAAO,CAIT;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,mBAAmB,EAC1B,KAAK,EAAE,MAAM,EACb,MAAM,CAAC,EAAE,MAAM,GACd,OAAO,CAaT;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,mBAAmB,EAC1B,KAAK,EAAE,MAAM,EACb,MAAM,CAAC,EAAE,MAAM,GACd,MAAM,CAGR;AAuCD;;;GAGG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAErD"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { FormField } from '@funkit/connect-core';
|
|
2
|
+
/** Other countries' tax identifiers keep the server's ordinary text field. */
|
|
3
|
+
export declare function ssnLength(field: FormField, country: string | undefined): 4 | 9 | undefined;
|
|
4
|
+
//# sourceMappingURL=ssnLength.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ssnLength.d.ts","sourceRoot":"","sources":["../../../src/fiat/ssnLength.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAErD,8EAA8E;AAC9E,wBAAgB,SAAS,CACvB,KAAK,EAAE,SAAS,EAChB,OAAO,EAAE,MAAM,GAAG,SAAS,GAC1B,CAAC,GAAG,CAAC,GAAG,SAAS,CAyBnB"}
|
|
@@ -17,13 +17,18 @@ export declare function recoveryCta(flow: FiatFlow, t: TFunction): {
|
|
|
17
17
|
/** The refreshed price a post-KYC review carries. */
|
|
18
18
|
export declare function reviewDetail(flow: FiatFlow): string | undefined;
|
|
19
19
|
/**
|
|
20
|
-
* The quote's fee breakdown, as the disclosure drawer's rows.
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
20
|
+
* The quote's fee breakdown, as the disclosure drawer's rows.
|
|
21
|
+
*
|
|
22
|
+
* - The fee is inside the charge, not added to it: `fiat.amount` is what the
|
|
23
|
+
* card is billed and the crypto is priced on what's left, so the amount row
|
|
24
|
+
* is the remainder and the total is the charge itself.
|
|
25
|
+
* - One fee row, off `totalFee` rather than the provider's own `feeBreakdown`
|
|
26
|
+
* labels: those name the rail ("Coinbase fee"), which the drawer must not,
|
|
27
|
+
* and only the total keeps the three rows adding up.
|
|
25
28
|
*/
|
|
26
29
|
export declare function quoteFeeRows(quote: Quote | undefined, t: TFunction): FeeDetailsRow[];
|
|
30
|
+
/** The rail disclosure, priced from the quote rather than host configuration. */
|
|
31
|
+
export declare function quoteFeeSummary(quote: Quote | undefined, method: string | undefined, t: TFunction): string | undefined;
|
|
27
32
|
/**
|
|
28
33
|
* A step's own error, worded for the banner it renders as. The contract sends
|
|
29
34
|
* no message — `code` is a copy key — so the category is what the copy keys off.
|
|
@@ -36,9 +41,12 @@ export declare function roundErrorMessage(error: FailureReason | undefined, t: T
|
|
|
36
41
|
* dependency, and a locale-guessed date is worse than an unambiguous one.
|
|
37
42
|
*/
|
|
38
43
|
export declare function onHoldDetail(flow: FiatFlow, t: TFunction): string;
|
|
44
|
+
/** Preserve an explicit cooling-off deadline alongside the R2 receipt. */
|
|
45
|
+
export declare function kycHoldRetryDetail(flow: FiatFlow, t: TFunction): string | undefined;
|
|
39
46
|
/**
|
|
40
47
|
* What a rejection leaves the user. Only the terminal variant carries a
|
|
41
48
|
* recovery, and support is the only one it names.
|
|
42
49
|
*/
|
|
43
50
|
export declare function rejectedDetail(flow: FiatFlow, t: TFunction): string | undefined;
|
|
51
|
+
export declare function blockedRetryDetail(flow: FiatFlow): string | undefined;
|
|
44
52
|
//# sourceMappingURL=stepDetails.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stepDetails.d.ts","sourceRoot":"","sources":["../../../src/fiat/stepDetails.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAC1E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAA;AAIhE;;;;;;GAMG;AACH,wBAAgB,QAAQ,CACtB,KAAK,EAAE,KAAK,GAAG,SAAS,EACxB,MAAM,EAAE,MAAM,EACd,CAAC,EAAE,SAAS,GACX,MAAM,GAAG,SAAS,CAQpB;AAED,oEAAoE;AACpE,wBAAgB,WAAW,CACzB,IAAI,EAAE,QAAQ,EACd,CAAC,EAAE,SAAS,GACX;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"stepDetails.d.ts","sourceRoot":"","sources":["../../../src/fiat/stepDetails.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAC1E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAA;AAIhE;;;;;;GAMG;AACH,wBAAgB,QAAQ,CACtB,KAAK,EAAE,KAAK,GAAG,SAAS,EACxB,MAAM,EAAE,MAAM,EACd,CAAC,EAAE,SAAS,GACX,MAAM,GAAG,SAAS,CAQpB;AAED,oEAAoE;AACpE,wBAAgB,WAAW,CACzB,IAAI,EAAE,QAAQ,EACd,CAAC,EAAE,SAAS,GACX;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,GAAG,SAAS,CA0BpD;AAED,qDAAqD;AACrD,wBAAgB,YAAY,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,GAAG,SAAS,CAM/D;AAED;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,KAAK,GAAG,SAAS,EACxB,CAAC,EAAE,SAAS,GACX,aAAa,EAAE,CAyBjB;AAED,iFAAiF;AACjF,wBAAgB,eAAe,CAC7B,KAAK,EAAE,KAAK,GAAG,SAAS,EACxB,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,CAAC,EAAE,SAAS,GACX,MAAM,GAAG,SAAS,CAkBpB;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,aAAa,GAAG,SAAS,EAChC,CAAC,EAAE,SAAS,GACX,MAAM,GAAG,SAAS,CAsBpB;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,QAAQ,EAAE,CAAC,EAAE,SAAS,GAAG,MAAM,CAKjE;AAED,0EAA0E;AAC1E,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,QAAQ,EACd,CAAC,EAAE,SAAS,GACX,MAAM,GAAG,SAAS,CAGpB;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,QAAQ,EACd,CAAC,EAAE,SAAS,GACX,MAAM,GAAG,SAAS,CAQpB;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,GAAG,SAAS,CAKrE"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const CONTACT_VALIDATION_DELAY = 200;
|
|
2
|
+
/** Wait for a pause in typing; invalidate a changed value immediately. */
|
|
3
|
+
export declare function useContactEligibility(complete: boolean, draft: string): boolean;
|
|
4
|
+
//# sourceMappingURL=useContactEligibility.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useContactEligibility.d.ts","sourceRoot":"","sources":["../../../src/fiat/useContactEligibility.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,wBAAwB,MAAM,CAAA;AAE3C,0EAA0E;AAC1E,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,WAWrE"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type NestedSheet } from '../hooks/useNestedSheet';
|
|
2
|
+
export interface CountrySheet {
|
|
3
|
+
/**
|
|
4
|
+
* The field the list answers. Held after it closes: the sheet dismisses on
|
|
5
|
+
* its own animation, and the rows have to stay drawn while it plays out.
|
|
6
|
+
*/
|
|
7
|
+
fieldName?: string;
|
|
8
|
+
isOpen: boolean;
|
|
9
|
+
open: (fieldName: string) => void;
|
|
10
|
+
close: () => void;
|
|
11
|
+
/** The handle and backdrop the step feeds to its `BottomSheetModal`. */
|
|
12
|
+
sheet: NestedSheet<'countries'>;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* The country list a phone field raises, as a sheet over the step.
|
|
16
|
+
*
|
|
17
|
+
* Opening it drops the keyboard: the sheet covers the field it was typed into,
|
|
18
|
+
* and a keyboard left standing behind it is one the user has to dismiss twice.
|
|
19
|
+
*/
|
|
20
|
+
export declare function useCountrySheet(): CountrySheet;
|
|
21
|
+
//# sourceMappingURL=useCountrySheet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCountrySheet.d.ts","sourceRoot":"","sources":["../../../src/fiat/useCountrySheet.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,WAAW,EAAkB,MAAM,yBAAyB,CAAA;AAE1E,MAAM,WAAW,YAAY;IAC3B;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,OAAO,CAAA;IACf,IAAI,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,KAAK,EAAE,MAAM,IAAI,CAAA;IACjB,wEAAwE;IACxE,KAAK,EAAE,WAAW,CAAC,WAAW,CAAC,CAAA;CAChC;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,IAAI,YAAY,CA8B9C"}
|
|
@@ -7,6 +7,8 @@ export interface DatePickerDock {
|
|
|
7
7
|
field?: FormField;
|
|
8
8
|
/** Set whenever a picker could answer this page's date, open or not. */
|
|
9
9
|
Picker?: NativeDatePicker;
|
|
10
|
+
/** The native peer is still resolving for this page's date. */
|
|
11
|
+
isLoading: boolean;
|
|
10
12
|
isOpen: boolean;
|
|
11
13
|
/** Pressing the field raises the picker, and presses it away again. */
|
|
12
14
|
toggle: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDatePickerDock.d.ts","sourceRoot":"","sources":["../../../src/fiat/useDatePickerDock.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAErD,OAAO,EAAE,QAAQ,EAAU,MAAM,cAAc,CAAA;AAE/C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAGlD,OAAO,EAEL,KAAK,gBAAgB,EAEtB,MAAM,oBAAoB,CAAA;AAE3B,MAAM,WAAW,cAAc;IAC7B,8DAA8D;IAC9D,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,wEAAwE;IACxE,MAAM,CAAC,EAAE,gBAAgB,CAAA;IACzB,MAAM,EAAE,OAAO,CAAA;IACf,uEAAuE;IACvE,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,KAAK,EAAE,MAAM,IAAI,CAAA;IACjB,iEAAiE;IACjE,MAAM,EAAE,MAAM,CAAA;IACd,qDAAqD;IACrD,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAA;CACtB;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB;AAC/B,yEAAyE;AACzE,IAAI,EAAE,cAAc,GAAG,SAAS,EAChC,IAAI,EAAE,MAAM,GACX,cAAc,CA6ChB"}
|
|
1
|
+
{"version":3,"file":"useDatePickerDock.d.ts","sourceRoot":"","sources":["../../../src/fiat/useDatePickerDock.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAErD,OAAO,EAAE,QAAQ,EAAU,MAAM,cAAc,CAAA;AAE/C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAGlD,OAAO,EAEL,KAAK,gBAAgB,EAEtB,MAAM,oBAAoB,CAAA;AAE3B,MAAM,WAAW,cAAc;IAC7B,8DAA8D;IAC9D,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,wEAAwE;IACxE,MAAM,CAAC,EAAE,gBAAgB,CAAA;IACzB,+DAA+D;IAC/D,SAAS,EAAE,OAAO,CAAA;IAClB,MAAM,EAAE,OAAO,CAAA;IACf,uEAAuE;IACvE,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,KAAK,EAAE,MAAM,IAAI,CAAA;IACjB,iEAAiE;IACjE,MAAM,EAAE,MAAM,CAAA;IACd,qDAAqD;IACrD,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAA;CACtB;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB;AAC/B,yEAAyE;AACzE,IAAI,EAAE,cAAc,GAAG,SAAS,EAChC,IAAI,EAAE,MAAM,GACX,cAAc,CA6ChB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { EntryCta, FiatProvider } from '@funkit/connect-core';
|
|
2
|
+
export declare function useFiatCheckoutPreparation({ provider, paymentMethod, entryCta, quoteRef, ready, prepare, }: {
|
|
3
|
+
paymentMethod: string;
|
|
4
|
+
provider: FiatProvider | undefined;
|
|
5
|
+
entryCta: EntryCta;
|
|
6
|
+
quoteRef: string | undefined;
|
|
7
|
+
ready: boolean;
|
|
8
|
+
prepare: () => void;
|
|
9
|
+
}): boolean;
|
|
10
|
+
//# sourceMappingURL=useFiatCheckoutPreparation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFiatCheckoutPreparation.d.ts","sourceRoot":"","sources":["../../../src/fiat/useFiatCheckoutPreparation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAUlE,wBAAgB,0BAA0B,CAAC,EACzC,QAAQ,EACR,aAAa,EACb,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,OAAO,GACR,EAAE;IACD,aAAa,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,YAAY,GAAG,SAAS,CAAA;IAClC,QAAQ,EAAE,QAAQ,CAAA;IAClB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,KAAK,EAAE,OAAO,CAAA;IACd,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB,GAAG,OAAO,CA8BV"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { type CheckoutTokenTransferConfig } from '@funkit/connect-core';
|
|
2
|
+
import type { DepositClientMetadata, FiatRailConfig } from '../flow/depositFlowConfig';
|
|
3
|
+
export interface UseFiatDirectDeliveryParams {
|
|
4
|
+
/** Destination chain/asset the deposit is headed for. */
|
|
5
|
+
checkoutConfig: CheckoutTokenTransferConfig | undefined;
|
|
6
|
+
rail: FiatRailConfig;
|
|
7
|
+
dynamicRoutingId: string | undefined;
|
|
8
|
+
checkoutId: string;
|
|
9
|
+
clientMetadata: DepositClientMetadata | undefined;
|
|
10
|
+
/** Host fallback for local/dev clients that mint no address of their own. */
|
|
11
|
+
depositAddressOverride?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface UseFiatDirectDeliveryResult {
|
|
14
|
+
/** Where the order delivers the crypto; `undefined` until one resolves. */
|
|
15
|
+
depositAddress: string | undefined;
|
|
16
|
+
/** The rail buys the destination asset itself, so no address was minted. */
|
|
17
|
+
isDirect: boolean;
|
|
18
|
+
/** Why no generated address resolved; always `undefined` on the direct route. */
|
|
19
|
+
depositAddressError: Error | undefined;
|
|
20
|
+
/** Re-requests the generated address; a no-op on the direct route. */
|
|
21
|
+
retryDepositAddress: () => void;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Resolves where a V2 fiat order delivers.
|
|
25
|
+
*
|
|
26
|
+
* The generated deposit address exists to swap what the rail bought into what
|
|
27
|
+
* the user asked for. When the rail buys that asset outright it has nothing to
|
|
28
|
+
* do, so the order names the recipient instead — the crypto lands where it is
|
|
29
|
+
* wanted rather than at a per-checkout address the backend has still to sweep.
|
|
30
|
+
*/
|
|
31
|
+
export declare function useFiatDirectDelivery({ checkoutConfig, rail, dynamicRoutingId, checkoutId, clientMetadata, depositAddressOverride, }: UseFiatDirectDeliveryParams): UseFiatDirectDeliveryResult;
|
|
32
|
+
//# sourceMappingURL=useFiatDirectDelivery.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFiatDirectDelivery.d.ts","sourceRoot":"","sources":["../../../src/fiat/useFiatDirectDelivery.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,2BAA2B,EAKjC,MAAM,sBAAsB,CAAA;AAE7B,OAAO,KAAK,EACV,qBAAqB,EACrB,cAAc,EACf,MAAM,2BAA2B,CAAA;AAOlC,MAAM,WAAW,2BAA2B;IAC1C,yDAAyD;IACzD,cAAc,EAAE,2BAA2B,GAAG,SAAS,CAAA;IACvD,IAAI,EAAE,cAAc,CAAA;IACpB,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAA;IACpC,UAAU,EAAE,MAAM,CAAA;IAClB,cAAc,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACjD,6EAA6E;IAC7E,sBAAsB,CAAC,EAAE,MAAM,CAAA;CAChC;AAED,MAAM,WAAW,2BAA2B;IAC1C,2EAA2E;IAC3E,cAAc,EAAE,MAAM,GAAG,SAAS,CAAA;IAClC,4EAA4E;IAC5E,QAAQ,EAAE,OAAO,CAAA;IACjB,iFAAiF;IACjF,mBAAmB,EAAE,KAAK,GAAG,SAAS,CAAA;IACtC,sEAAsE;IACtE,mBAAmB,EAAE,MAAM,IAAI,CAAA;CAChC;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,cAAc,EACd,IAAI,EACJ,gBAAgB,EAChB,UAAU,EACV,cAAc,EACd,sBAAsB,GACvB,EAAE,2BAA2B,GAAG,2BAA2B,CA4D3D"}
|
|
@@ -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,20 @@
|
|
|
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, onCloseFlow, }: {
|
|
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;
|
|
18
|
+
onCloseFlow: () => void;
|
|
11
19
|
}): import("react").JSX.Element;
|
|
12
20
|
//# sourceMappingURL=DepositAmountStep.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DepositAmountStep.d.ts","sourceRoot":"","sources":["../../../src/flow/DepositAmountStep.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DepositAmountStep.d.ts","sourceRoot":"","sources":["../../../src/flow/DepositAmountStep.tsx"],"names":[],"mappings":"AAUA,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,EACV,WAAW,GACZ,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;IACpB,WAAW,EAAE,MAAM,IAAI,CAAA;CACxB,+BA4HA"}
|
|
@@ -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,CA0QZ"}
|
|
@@ -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":"AA8FA,OAAO,KAAK,EACV,wBAAwB,EACxB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,cAAc,EACf,MAAM,qBAAqB,CAAA;AAoD5B,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,+BA2BA"}
|
|
@@ -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"}
|