@funkit/connect-rn 4.2.0 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +125 -0
- package/dist/{chunk-N7Z6UHT7.js → chunk-KPP7KXYB.js} +2 -2
- package/dist/{chunk-A66EO5J5.js → chunk-X4RK3XTG.js} +556 -98
- package/dist/chunk-X4RK3XTG.js.map +7 -0
- package/dist/clients/lighter.js +1 -1
- package/dist/clients/nado.js +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7677 -3061
- package/dist/index.js.map +4 -4
- package/dist/src/components/DepositActionMotion.d.ts +12 -0
- package/dist/src/components/DepositActionMotion.d.ts.map +1 -0
- package/dist/src/components/PillButton.d.ts +1 -1
- package/dist/src/components/PillButton.d.ts.map +1 -1
- package/dist/src/components/SelectableAssetRow.d.ts +3 -1
- package/dist/src/components/SelectableAssetRow.d.ts.map +1 -1
- package/dist/src/components/v2/AccountBalanceChip.d.ts.map +1 -1
- package/dist/src/components/v2/AmountDisplay.d.ts.map +1 -1
- package/dist/src/components/v2/NumPad.d.ts +3 -4
- package/dist/src/components/v2/NumPad.d.ts.map +1 -1
- package/dist/src/components/v2/QuickAmountsRow.d.ts +3 -3
- package/dist/src/components/v2/QuickAmountsRow.d.ts.map +1 -1
- package/dist/src/fiat/FiatActionButton.d.ts +3 -0
- package/dist/src/fiat/FiatActionButton.d.ts.map +1 -0
- package/dist/src/fiat/FiatBackButton.d.ts +3 -3
- package/dist/src/fiat/FiatBirthDateField.d.ts +9 -0
- package/dist/src/fiat/FiatBirthDateField.d.ts.map +1 -0
- package/dist/src/fiat/FiatChoiceField.d.ts +16 -0
- package/dist/src/fiat/FiatChoiceField.d.ts.map +1 -0
- package/dist/src/fiat/FiatContactScreen.d.ts +27 -5
- package/dist/src/fiat/FiatContactScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatCountryDock.d.ts +17 -0
- package/dist/src/fiat/FiatCountryDock.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 +8 -0
- package/dist/src/fiat/FiatKycFieldControl.d.ts.map +1 -0
- package/dist/src/fiat/FiatKycIntroScreen.d.ts +7 -10
- package/dist/src/fiat/FiatKycIntroScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatKycNotice.d.ts +1 -6
- package/dist/src/fiat/FiatKycNotice.d.ts.map +1 -1
- package/dist/src/fiat/FiatKycOutcomeScreen.d.ts +11 -0
- package/dist/src/fiat/FiatKycOutcomeScreen.d.ts.map +1 -0
- package/dist/src/fiat/FiatKycPosition.d.ts +5 -0
- package/dist/src/fiat/FiatKycPosition.d.ts.map +1 -0
- package/dist/src/fiat/FiatOtpScreen.d.ts +12 -3
- 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 +29 -0
- package/dist/src/fiat/FiatPhoneField.d.ts.map +1 -0
- 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 +7 -0
- package/dist/src/fiat/FiatTermsNotice.d.ts.map +1 -0
- package/dist/src/fiat/KycGlassBackdrop.d.ts +3 -0
- package/dist/src/fiat/KycGlassBackdrop.d.ts.map +1 -0
- package/dist/src/fiat/SurfaceSlot.d.ts.map +1 -1
- package/dist/src/fiat/formLayout.d.ts +4 -6
- package/dist/src/fiat/formLayout.d.ts.map +1 -1
- package/dist/src/fiat/formValidationError.d.ts +13 -0
- package/dist/src/fiat/formValidationError.d.ts.map +1 -0
- package/dist/src/fiat/isAdditionalKycForm.d.ts +8 -0
- package/dist/src/fiat/isAdditionalKycForm.d.ts.map +1 -0
- package/dist/src/fiat/knownContacts.d.ts +27 -0
- package/dist/src/fiat/knownContacts.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 +10 -5
- package/dist/src/fiat/kycFormTheme.d.ts.map +1 -1
- package/dist/src/fiat/kycSupport.d.ts +2 -0
- package/dist/src/fiat/kycSupport.d.ts.map +1 -0
- package/dist/src/fiat/kycUnavailableAlert.d.ts +8 -0
- package/dist/src/fiat/kycUnavailableAlert.d.ts.map +1 -0
- package/dist/src/fiat/legalLinks.d.ts +7 -2
- package/dist/src/fiat/legalLinks.d.ts.map +1 -1
- package/dist/src/fiat/nativeDatePicker.d.ts +1 -1
- package/dist/src/fiat/nativeDatePicker.d.ts.map +1 -1
- package/dist/src/fiat/otpScreenProps.d.ts +5 -4
- package/dist/src/fiat/otpScreenProps.d.ts.map +1 -1
- package/dist/src/fiat/phoneCountries.d.ts +54 -0
- package/dist/src/fiat/phoneCountries.d.ts.map +1 -0
- package/dist/src/fiat/phoneDraft.d.ts +10 -0
- package/dist/src/fiat/phoneDraft.d.ts.map +1 -0
- package/dist/src/fiat/providers/CoinbaseCheckoutSurface.d.ts +26 -0
- package/dist/src/fiat/providers/CoinbaseCheckoutSurface.d.ts.map +1 -0
- package/dist/src/fiat/providers/adapter.d.ts +8 -2
- package/dist/src/fiat/providers/adapter.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbaseApplePay.d.ts +9 -0
- package/dist/src/fiat/providers/coinbaseApplePay.d.ts.map +1 -0
- package/dist/src/fiat/providers/coinbaseOnrampEvents.d.ts +37 -0
- package/dist/src/fiat/providers/coinbaseOnrampEvents.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay.d.ts +3 -0
- package/dist/src/fiat/providers/moonpay.d.ts.map +1 -0
- package/dist/src/fiat/providers/sumsubKyc.d.ts +1 -2
- package/dist/src/fiat/providers/sumsubKyc.d.ts.map +1 -1
- package/dist/src/fiat/quoteRefusal.d.ts +24 -0
- package/dist/src/fiat/quoteRefusal.d.ts.map +1 -0
- package/dist/src/fiat/renderCaptureSurface.d.ts.map +1 -1
- package/dist/src/fiat/sectionDetail.d.ts.map +1 -1
- package/dist/src/fiat/sessionContact.d.ts +25 -9
- package/dist/src/fiat/sessionContact.d.ts.map +1 -1
- package/dist/src/fiat/ssnLength.d.ts +4 -0
- package/dist/src/fiat/ssnLength.d.ts.map +1 -0
- package/dist/src/fiat/stepDetails.d.ts +5 -0
- package/dist/src/fiat/stepDetails.d.ts.map +1 -1
- package/dist/src/fiat/useContactEligibility.d.ts +4 -0
- package/dist/src/fiat/useContactEligibility.d.ts.map +1 -0
- package/dist/src/fiat/useCountryDock.d.ts +21 -0
- package/dist/src/fiat/useCountryDock.d.ts.map +1 -0
- package/dist/src/fiat/useDatePickerDock.d.ts +2 -0
- package/dist/src/fiat/useDatePickerDock.d.ts.map +1 -1
- package/dist/src/fiat/useFiatCheckoutPreparation.d.ts +10 -0
- package/dist/src/fiat/useFiatCheckoutPreparation.d.ts.map +1 -0
- package/dist/src/fiat/useOtpAutoSubmit.d.ts +8 -0
- package/dist/src/fiat/useOtpAutoSubmit.d.ts.map +1 -0
- package/dist/src/fiat/useOtpReceipt.d.ts +14 -0
- package/dist/src/fiat/useOtpReceipt.d.ts.map +1 -0
- package/dist/src/fiat/useReplayableFailure.d.ts +13 -0
- package/dist/src/fiat/useReplayableFailure.d.ts.map +1 -0
- package/dist/src/fiat/useStaleQuoteRecovery.d.ts +3 -2
- package/dist/src/fiat/useStaleQuoteRecovery.d.ts.map +1 -1
- package/dist/src/flow/DepositAmountStep.d.ts +9 -2
- package/dist/src/flow/DepositAmountStep.d.ts.map +1 -1
- package/dist/src/flow/DepositFlowContent.d.ts +4 -2
- package/dist/src/flow/DepositFlowContent.d.ts.map +1 -1
- package/dist/src/flow/FeeDetailsSheet.d.ts.map +1 -1
- package/dist/src/flow/FiatDepositAmountStep.d.ts +12 -2
- package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
- package/dist/src/flow/FlowDismissLock.d.ts +13 -0
- package/dist/src/flow/FlowDismissLock.d.ts.map +1 -0
- package/dist/src/flow/FlowSheet.d.ts +11 -14
- package/dist/src/flow/FlowSheet.d.ts.map +1 -1
- package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
- package/dist/src/flow/WithdrawalFlowContent.d.ts +2 -1
- package/dist/src/flow/WithdrawalFlowContent.d.ts.map +1 -1
- package/dist/src/flow/depositFlowConfig.d.ts +39 -0
- package/dist/src/flow/depositFlowConfig.d.ts.map +1 -1
- package/dist/src/flow/useKeyboardHeight.d.ts +20 -0
- package/dist/src/flow/useKeyboardHeight.d.ts.map +1 -1
- package/dist/src/flow/validateClientMetadata.d.ts +8 -0
- package/dist/src/flow/validateClientMetadata.d.ts.map +1 -0
- package/dist/src/flow/validateInitialAmount.d.ts +9 -0
- package/dist/src/flow/validateInitialAmount.d.ts.map +1 -0
- package/dist/src/hooks/useGuardedAmountInput.d.ts +7 -4
- package/dist/src/hooks/useGuardedAmountInput.d.ts.map +1 -1
- package/dist/src/hooks/useNestedSheetHeight.d.ts +10 -0
- package/dist/src/hooks/useNestedSheetHeight.d.ts.map +1 -1
- package/dist/src/icons/ApplePayMark.d.ts +2 -0
- package/dist/src/icons/ApplePayMark.d.ts.map +1 -0
- package/dist/src/icons/DepositChevronIcon.d.ts +4 -0
- package/dist/src/icons/DepositChevronIcon.d.ts.map +1 -0
- package/dist/src/icons/DepositInfoCircleIcon.d.ts +4 -0
- package/dist/src/icons/DepositInfoCircleIcon.d.ts.map +1 -0
- package/dist/src/icons/FiatBackIcon.d.ts +4 -0
- package/dist/src/icons/FiatBackIcon.d.ts.map +1 -0
- package/dist/src/icons/KycDocumentIcon.d.ts +2 -0
- package/dist/src/icons/KycDocumentIcon.d.ts.map +1 -0
- package/dist/src/icons/KycExternalLinkIcon.d.ts +4 -0
- package/dist/src/icons/KycExternalLinkIcon.d.ts.map +1 -0
- package/dist/src/icons/KycIdentityIcon.d.ts +8 -0
- package/dist/src/icons/KycIdentityIcon.d.ts.map +1 -0
- package/dist/src/icons/KycLimitIcon.d.ts +4 -0
- package/dist/src/icons/KycLimitIcon.d.ts.map +1 -0
- package/dist/src/icons/KycOutcomeIcon.d.ts +5 -0
- package/dist/src/icons/KycOutcomeIcon.d.ts.map +1 -0
- package/dist/src/icons/KycSecurityIcon.d.ts +4 -0
- package/dist/src/icons/KycSecurityIcon.d.ts.map +1 -0
- package/dist/src/icons/KycVerifiedIcon.d.ts +2 -0
- package/dist/src/icons/KycVerifiedIcon.d.ts.map +1 -0
- package/dist/src/icons/kycArtwork.d.ts +3 -0
- package/dist/src/icons/kycArtwork.d.ts.map +1 -0
- package/dist/src/identity/IdentityContext.d.ts +8 -4
- package/dist/src/identity/IdentityContext.d.ts.map +1 -1
- 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 +9 -13
- 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 +4 -1
- package/dist/src/swapped/SwappedScreenShell.d.ts.map +1 -1
- package/dist/src/swapped/SwappedWebView.d.ts +7 -2
- package/dist/src/swapped/SwappedWebView.d.ts.map +1 -1
- package/dist/src/swapped/SwappedWithdrawScreen.d.ts.map +1 -1
- package/dist/src/theme/inputTextStyle.d.ts +13 -0
- package/dist/src/theme/inputTextStyle.d.ts.map +1 -0
- package/dist/src/theme/tokens.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useFops.d.ts +8 -2
- package/dist/src/transfer/hooks/useFops.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useTokenTransfer.d.ts +5 -1
- package/dist/src/transfer/hooks/useTokenTransfer.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useTransferInit.d.ts +13 -1
- package/dist/src/transfer/hooks/useTransferInit.d.ts.map +1 -1
- package/dist/src/utils/motion.d.ts +40 -0
- package/dist/src/utils/motion.d.ts.map +1 -1
- package/package.json +15 -10
- package/dist/chunk-A66EO5J5.js.map +0 -7
- package/dist/src/fiat/formNotice.d.ts +0 -13
- package/dist/src/fiat/formNotice.d.ts.map +0 -1
- /package/dist/{chunk-N7Z6UHT7.js.map → chunk-KPP7KXYB.js.map} +0 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { TextInput as RNTextInput } from 'react-native';
|
|
2
|
+
import { type PhoneCountry } from './phoneCountries';
|
|
3
|
+
export interface FiatPhoneFieldProps {
|
|
4
|
+
country: PhoneCountry;
|
|
5
|
+
/** Raw input under the country code, including any leading trunk digit. */
|
|
6
|
+
national: string;
|
|
7
|
+
/** Whether the country list is up, so the chip can say so. */
|
|
8
|
+
isOpen: boolean;
|
|
9
|
+
editable?: boolean;
|
|
10
|
+
autoFocus: boolean;
|
|
11
|
+
/** `undefined` where the pad has no return key to give. */
|
|
12
|
+
returnKeyType?: 'next' | 'done';
|
|
13
|
+
onChangeNational: (national: string) => void;
|
|
14
|
+
onOpenCountries: () => void;
|
|
15
|
+
onSubmitEditing: () => void;
|
|
16
|
+
/** Focusing the digits is choosing them over the list the chip raised. */
|
|
17
|
+
onFocus: () => void;
|
|
18
|
+
onLayoutRef: (input: RNTextInput | null) => void;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* A phone number as one field: the calling code chosen on the left, the rest
|
|
22
|
+
* typed on the right.
|
|
23
|
+
*
|
|
24
|
+
* The rail takes E.164 and nothing else, so the code cannot be the user's to
|
|
25
|
+
* remember — the old copy asked them to type it and a local number left
|
|
26
|
+
* Continue dead with no explanation.
|
|
27
|
+
*/
|
|
28
|
+
export declare function FiatPhoneField({ country, national, isOpen, autoFocus, editable, returnKeyType, onChangeNational, onOpenCountries, onSubmitEditing, onFocus, onLayoutRef, }: FiatPhoneFieldProps): import("react").JSX.Element;
|
|
29
|
+
//# sourceMappingURL=FiatPhoneField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FiatPhoneField.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatPhoneField.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,IAAI,WAAW,EAAE,MAAM,cAAc,CAAA;AAQ5D,OAAO,EAAE,KAAK,YAAY,EAA4B,MAAM,kBAAkB,CAAA;AAE9E,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,YAAY,CAAA;IACrB,2EAA2E;IAC3E,QAAQ,EAAE,MAAM,CAAA;IAChB,8DAA8D;IAC9D,MAAM,EAAE,OAAO,CAAA;IACf,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,EAAE,OAAO,CAAA;IAClB,2DAA2D;IAC3D,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC/B,gBAAgB,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IAC5C,eAAe,EAAE,MAAM,IAAI,CAAA;IAC3B,eAAe,EAAE,MAAM,IAAI,CAAA;IAC3B,0EAA0E;IAC1E,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,WAAW,EAAE,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAAA;CACjD;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,EAC7B,OAAO,EACP,QAAQ,EACR,MAAM,EACN,SAAS,EACT,QAAe,EACf,aAAa,EACb,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,OAAO,EACP,WAAW,GACZ,EAAE,mBAAmB,+BAqErB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { FieldInputRef } from './FiatFormFieldRow';
|
|
2
|
+
export declare function FiatSsnField({ value, length, label, editable, autoFocus, invalid, inputRef, onChange, onBlur, }: {
|
|
3
|
+
value: string;
|
|
4
|
+
length: 4 | 9;
|
|
5
|
+
label: string;
|
|
6
|
+
editable: boolean;
|
|
7
|
+
autoFocus: boolean;
|
|
8
|
+
invalid: boolean;
|
|
9
|
+
inputRef?: FieldInputRef;
|
|
10
|
+
onChange: (value: string) => void;
|
|
11
|
+
onBlur: () => void;
|
|
12
|
+
}): import("react").JSX.Element;
|
|
13
|
+
//# sourceMappingURL=FiatSsnField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FiatSsnField.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatSsnField.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAoBvD,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,MAAM,EACN,KAAK,EACL,QAAQ,EACR,SAAS,EACT,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,MAAM,GACP,EAAE;IACD,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,CAAC,GAAG,CAAC,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,OAAO,CAAA;IACjB,SAAS,EAAE,OAAO,CAAA;IAClB,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,CAAC,EAAE,aAAa,CAAA;IACxB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB,+BAiGA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type FiatStatusTone = 'waiting' | 'success' | 'failure';
|
|
1
|
+
export type FiatStatusTone = 'waiting' | 'success' | 'failure' | 'notice';
|
|
2
2
|
export interface FiatStatusScreenProps {
|
|
3
3
|
tone: FiatStatusTone;
|
|
4
4
|
title: string;
|
|
@@ -8,6 +8,11 @@ export interface FiatStatusScreenProps {
|
|
|
8
8
|
label: string;
|
|
9
9
|
onPress: () => void;
|
|
10
10
|
};
|
|
11
|
+
secondaryCta?: {
|
|
12
|
+
label: string;
|
|
13
|
+
onPress: () => void;
|
|
14
|
+
};
|
|
15
|
+
isSubmitting?: boolean;
|
|
11
16
|
onClose?: () => void;
|
|
12
17
|
}
|
|
13
18
|
/**
|
|
@@ -15,5 +20,5 @@ export interface FiatStatusScreenProps {
|
|
|
15
20
|
* screen because the design keeps the whole Apple Pay flow on one canvas —
|
|
16
21
|
* these render where the entry was, not as navigations away from it.
|
|
17
22
|
*/
|
|
18
|
-
export declare function FiatStatusScreen({ tone, title, detail, cta, onClose, }: FiatStatusScreenProps): import("react").JSX.Element;
|
|
23
|
+
export declare function FiatStatusScreen({ tone, title, detail, cta, secondaryCta, isSubmitting, onClose, }: FiatStatusScreenProps): import("react").JSX.Element;
|
|
19
24
|
//# sourceMappingURL=FiatStatusScreen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FiatStatusScreen.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatStatusScreen.tsx"],"names":[],"mappings":"AAaA,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"FiatStatusScreen.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatStatusScreen.tsx"],"names":[],"mappings":"AAaA,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAA;AAEzE,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,cAAc,CAAA;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,oEAAoE;IACpE,GAAG,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,IAAI,CAAA;KAAE,CAAA;IAC5C,YAAY,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,IAAI,CAAA;KAAE,CAAA;IACrD,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CACrB;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,IAAI,EACJ,KAAK,EACL,MAAM,EACN,GAAG,EACH,YAAY,EACZ,YAAoB,EACpB,OAAO,GACR,EAAE,qBAAqB,+BA4DvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FiatSubmissionIndicator.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatSubmissionIndicator.tsx"],"names":[],"mappings":"AAYA,wBAAgB,uBAAuB,gCA8CtC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TermsToAccept } from '@funkit/connect-core';
|
|
2
|
+
export interface FiatTermsNoticeProps {
|
|
3
|
+
terms: TermsToAccept;
|
|
4
|
+
}
|
|
5
|
+
/** The server requests consent; the footer explains what the next tap accepts. */
|
|
6
|
+
export declare function FiatTermsNotice({ terms }: FiatTermsNoticeProps): import("react").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=FiatTermsNotice.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FiatTermsNotice.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatTermsNotice.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AASzD,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,aAAa,CAAA;CACrB;AAmCD,kFAAkF;AAClF,wBAAgB,eAAe,CAAC,EAAE,KAAK,EAAE,EAAE,oBAAoB,+BA+B9D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KycGlassBackdrop.d.ts","sourceRoot":"","sources":["../../../src/fiat/KycGlassBackdrop.tsx"],"names":[],"mappings":"AAMA,yEAAyE;AACzE,wBAAgB,gBAAgB,gCAiB/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SurfaceSlot.d.ts","sourceRoot":"","sources":["../../../src/fiat/SurfaceSlot.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAA+B,MAAM,OAAO,CAAA;AAGnE,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,0BAA0B,CAAA;
|
|
1
|
+
{"version":3,"file":"SurfaceSlot.d.ts","sourceRoot":"","sources":["../../../src/fiat/SurfaceSlot.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAA+B,MAAM,OAAO,CAAA;AAGnE,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAQ1E,wBAAgB,WAAW,CAAC,EAC1B,aAAa,EACb,KAAK,EACL,IAAI,GACL,EAAE;IACD,aAAa,EAAE,CAAC,OAAO,EAAE,MAAM,IAAI,KAAK,SAAS,CAAA;IACjD,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,cAAc,CAAA;CACrB,+BAqDA"}
|
|
@@ -7,7 +7,7 @@ import type { FormField } from '@funkit/connect-core';
|
|
|
7
7
|
* is where a field the design never drew goes, so a form the server words its
|
|
8
8
|
* own way still renders.
|
|
9
9
|
*/
|
|
10
|
-
export type KycSection = 'NAME' | 'DOB' | 'ADDRESS' | 'SSN' | 'DETAILS';
|
|
10
|
+
export type KycSection = 'NAME' | 'DOB' | 'COUNTRY' | 'ADDRESS' | 'SSN' | 'OCCUPATION' | 'PURPOSE' | 'DETAILS';
|
|
11
11
|
export interface KycSectionPage {
|
|
12
12
|
section: KycSection;
|
|
13
13
|
/** Drawn as one card with a rule between rows, rather than loose boxes. */
|
|
@@ -16,12 +16,10 @@ export interface KycSectionPage {
|
|
|
16
16
|
rows: FormField[][];
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
|
-
* The
|
|
20
|
-
*
|
|
21
|
-
* A picker takes the keyboard's slot, so it can only be offered on a page
|
|
22
|
-
* with nothing else to type: a date beside two names would leave one of the
|
|
23
|
-
* two controls covering the other. Anywhere else the date is typed.
|
|
19
|
+
* The server owns the field list, so an id this build does not know is not
|
|
20
|
+
* identity: only the frames that collect who someone is qualify.
|
|
24
21
|
*/
|
|
22
|
+
export declare function isIdentityField(field: FormField): boolean;
|
|
25
23
|
export declare function pickedDateField(page: KycSectionPage): FormField | undefined;
|
|
26
24
|
/**
|
|
27
25
|
* Whether the field is typed into, and so takes a turn in the return-key
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formLayout.d.ts","sourceRoot":"","sources":["../../../src/fiat/formLayout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAc,MAAM,sBAAsB,CAAA;AAGjE;;;;;;;GAOG;AACH,MAAM,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"formLayout.d.ts","sourceRoot":"","sources":["../../../src/fiat/formLayout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAc,MAAM,sBAAsB,CAAA;AAGjE;;;;;;;GAOG;AACH,MAAM,MAAM,UAAU,GAClB,MAAM,GACN,KAAK,GACL,SAAS,GACT,SAAS,GACT,KAAK,GACL,YAAY,GACZ,SAAS,GACT,SAAS,CAAA;AAEb,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,UAAU,CAAA;IACnB,2EAA2E;IAC3E,OAAO,EAAE,OAAO,CAAA;IAChB,uEAAuE;IACvE,IAAI,EAAE,SAAS,EAAE,EAAE,CAAA;CACpB;AA+ED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAGzD;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,cAAc,GAAG,SAAS,GAAG,SAAS,CAI3E;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAE1D;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAEvD;AAED,+EAA+E;AAC/E,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAE3D;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,SAAS,SAAS,EAAE,GAAG,SAAS,EAAE,CAE3E;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,SAAS,SAAS,EAAE,GAAG,cAAc,EAAE,CAuC3E"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { TFunction } from 'i18next';
|
|
2
|
+
import type { KycFieldIssue } from './kycFormState';
|
|
3
|
+
/**
|
|
4
|
+
* What the validation error under the fields says.
|
|
5
|
+
*
|
|
6
|
+
* A refused field is drawn in the design's yellow and worded nowhere else, so
|
|
7
|
+
* the page's own refusals have to reach the message — a colour arriving with
|
|
8
|
+
* no reason leaves the user re-reading a page that looks correct.
|
|
9
|
+
*
|
|
10
|
+
* The round's own error outranks them: the server saw the whole form.
|
|
11
|
+
*/
|
|
12
|
+
export declare function formValidationError(errorMessage: string | undefined, issues: readonly KycFieldIssue[], t: TFunction): string | undefined;
|
|
13
|
+
//# sourceMappingURL=formValidationError.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formValidationError.d.ts","sourceRoot":"","sources":["../../../src/fiat/formValidationError.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAEnD;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CACjC,YAAY,EAAE,MAAM,GAAG,SAAS,EAChC,MAAM,EAAE,SAAS,aAAa,EAAE,EAChC,CAAC,EAAE,SAAS,GACX,MAAM,GAAG,SAAS,CAMpB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { FormDescriptor } from '@funkit/connect-core';
|
|
2
|
+
/**
|
|
3
|
+
* The contract describes requested fields, rather than exposing an L1/L2 flag.
|
|
4
|
+
* A later round may re-ask for a birth date beside its declarations, so that
|
|
5
|
+
* one identity field alone does not make the round an identity round.
|
|
6
|
+
*/
|
|
7
|
+
export declare function isAdditionalKycForm(form: FormDescriptor): boolean;
|
|
8
|
+
//# sourceMappingURL=isAdditionalKycForm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isAdditionalKycForm.d.ts","sourceRoot":"","sources":["../../../src/fiat/isAdditionalKycForm.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAa,MAAM,sBAAsB,CAAA;AAIrE;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAMjE"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { ContactKind } from './sessionContact';
|
|
2
|
+
/**
|
|
3
|
+
* The number and the address the user has given, held past the round that
|
|
4
|
+
* collected them.
|
|
5
|
+
*
|
|
6
|
+
* A session verifies one channel per round, and the reducer drops what was
|
|
7
|
+
* collected once the round changes — so the code screen has nowhere else to
|
|
8
|
+
* read the destination it names.
|
|
9
|
+
*/
|
|
10
|
+
export interface KnownContacts {
|
|
11
|
+
phone?: string;
|
|
12
|
+
email?: string;
|
|
13
|
+
}
|
|
14
|
+
/** Records one answer under the channel it can carry a code on. */
|
|
15
|
+
export declare function rememberContact(known: KnownContacts, kind: ContactKind, value: string): KnownContacts;
|
|
16
|
+
/** Where a round's code went, or `undefined` when the user never gave it. */
|
|
17
|
+
export declare function contactOnChannel(known: KnownContacts, isSms: boolean): string | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Everything the client can name, the collected value over the host's.
|
|
20
|
+
*
|
|
21
|
+
* The email round goes to the address the host asserted for this user, and
|
|
22
|
+
* `POST /fiat/session` never asks for one — so without the host's own value
|
|
23
|
+
* the screen can only say "your email". Whatever the step did collect wins:
|
|
24
|
+
* that is what actually opened the session.
|
|
25
|
+
*/
|
|
26
|
+
export declare function resolveContacts(hostEmail: string | undefined, collected: KnownContacts): KnownContacts;
|
|
27
|
+
//# sourceMappingURL=knownContacts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"knownContacts.d.ts","sourceRoot":"","sources":["../../../src/fiat/knownContacts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAGnD;;;;;;;GAOG;AACH,MAAM,WAAW,aAAa;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,mEAAmE;AACnE,wBAAgB,eAAe,CAC7B,KAAK,EAAE,aAAa,EACpB,IAAI,EAAE,WAAW,EACjB,KAAK,EAAE,MAAM,GACZ,aAAa,CAIf;AAED,6EAA6E;AAC7E,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,aAAa,EACpB,KAAK,EAAE,OAAO,GACb,MAAM,GAAG,SAAS,CAEpB;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAC7B,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,SAAS,EAAE,aAAa,GACvB,aAAa,CAKf"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { FormField } from '@funkit/connect-core';
|
|
2
|
+
import { type KycFieldIssue } from './kycFormState';
|
|
3
|
+
export declare function kycFieldValidators(field: FormField, ssnDigits?: 4 | 9): {
|
|
4
|
+
onMount: (input: {
|
|
5
|
+
value: string | undefined;
|
|
6
|
+
}) => KycFieldIssue | undefined;
|
|
7
|
+
onChange: (input: {
|
|
8
|
+
value: string | undefined;
|
|
9
|
+
}) => KycFieldIssue | undefined;
|
|
10
|
+
} | undefined;
|
|
11
|
+
//# sourceMappingURL=kycFieldValidators.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kycFieldValidators.d.ts","sourceRoot":"","sources":["../../../src/fiat/kycFieldValidators.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,EAAE,KAAK,aAAa,EAA8B,MAAM,gBAAgB,CAAA;AAE/E,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,SAAS,EAAE,SAAS,CAAC,EAAE,CAAC,GAAG,CAAC;qBAC9C;QACpB,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;KAC1B,KAAK,aAAa,GAAG,SAAS;sBAFT;QACpB,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;KAC1B,KAAK,aAAa,GAAG,SAAS;cAUhC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { FormField } from '@funkit/connect-core';
|
|
2
|
+
import type { KycSectionPage } from './formLayout';
|
|
3
|
+
/** What a tried page comes to, once the form has re-validated. */
|
|
4
|
+
export type AttemptOutcome =
|
|
5
|
+
/** This page holds a refused field: it is shown, not left. */
|
|
6
|
+
{
|
|
7
|
+
kind: 'REFUSED';
|
|
8
|
+
}
|
|
9
|
+
/** Clean, with pages still ahead. */
|
|
10
|
+
| {
|
|
11
|
+
kind: 'TURN';
|
|
12
|
+
to: number;
|
|
13
|
+
}
|
|
14
|
+
/** The last page is clean, but an earlier one is not: back to it. */
|
|
15
|
+
| {
|
|
16
|
+
kind: 'JUMP';
|
|
17
|
+
to: number;
|
|
18
|
+
} | {
|
|
19
|
+
kind: 'SUBMIT';
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Decides what a try does: refuse the page, turn it, or send the form.
|
|
23
|
+
*
|
|
24
|
+
* Only the last page submits, and only once every page is clean. A refusal
|
|
25
|
+
* can hide on a page already turned — a second round arriving mid-form leaves
|
|
26
|
+
* earlier pages blank — so rather than a Confirm that does nothing, the form
|
|
27
|
+
* goes back to the first page still refused.
|
|
28
|
+
*/
|
|
29
|
+
export declare function settleAttempt({ pages, step, isRefused, }: {
|
|
30
|
+
pages: readonly KycSectionPage[];
|
|
31
|
+
step: number;
|
|
32
|
+
isRefused: (field: FormField) => boolean;
|
|
33
|
+
}): AttemptOutcome;
|
|
34
|
+
//# sourceMappingURL=kycFormAttempt.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kycFormAttempt.d.ts","sourceRoot":"","sources":["../../../src/fiat/kycFormAttempt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAErD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAElD,kEAAkE;AAClE,MAAM,MAAM,cAAc;AACxB,8DAA8D;AAC5D;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE;AACrB,qCAAqC;GACnC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE;AAC9B,qEAAqE;GACnE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE,GAC5B;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,CAAA;AAEtB;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,IAAI,EACJ,SAAS,GACV,EAAE;IACD,KAAK,EAAE,SAAS,cAAc,EAAE,CAAA;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,OAAO,CAAA;CACzC,GAAG,cAAc,CAWjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kycFormPosition.d.ts","sourceRoot":"","sources":["../../../src/fiat/kycFormPosition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAE9C,MAAM,MAAM,WAAW,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;AAcnC,wBAAgB,eAAe,CAAC,OAAO,EAAE,UAAU,GAAG,WAAW,CAEhE"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { FormDescriptor, FormField, FormFieldIssue, FormValues, JsonValue } from '@funkit/connect-core';
|
|
2
|
+
export type KycFieldIssue = FormFieldIssue | 'DATE_UNDERAGE';
|
|
3
|
+
/**
|
|
4
|
+
* The first refusal a field carries, or nothing.
|
|
5
|
+
*
|
|
6
|
+
* A field can hold the same issue under two validation causes at once (mount
|
|
7
|
+
* and change both mark a blank required field); the row draws one colour, so
|
|
8
|
+
* one is all it needs.
|
|
9
|
+
*/
|
|
10
|
+
export declare function firstIssue(errors: readonly unknown[] | undefined): KycFieldIssue | undefined;
|
|
11
|
+
/** Every control on this screen answers with text; anything else reads blank. */
|
|
12
|
+
export declare const stringValue: (value: JsonValue | undefined) => string;
|
|
13
|
+
/**
|
|
14
|
+
* What the screen's form holds: one string per field.
|
|
15
|
+
*
|
|
16
|
+
* Flat on purpose. `JsonValue` is recursive, and TanStack derives its field
|
|
17
|
+
* paths from the data type, so the recursion has no floor for the compiler to
|
|
18
|
+
* stand on. Nothing here answers with anything but text anyway.
|
|
19
|
+
*/
|
|
20
|
+
export type KycFormValues = Record<string, string>;
|
|
21
|
+
/** The flow's values as the form takes them; anything not text reads blank. */
|
|
22
|
+
export declare function typedValues(values: FormValues): KycFormValues;
|
|
23
|
+
/**
|
|
24
|
+
* The COUNTRY fields the buyer's region can answer for them: the blank ones.
|
|
25
|
+
* A value they typed is theirs, whatever the lookup says.
|
|
26
|
+
*/
|
|
27
|
+
export declare function blankCountryFields(fields: readonly FormField[], values: FormValues): FormField[];
|
|
28
|
+
/** Every rail this form feeds requires an adult (design 2114:8361). */
|
|
29
|
+
export declare const MINIMUM_AGE_YEARS = 18;
|
|
30
|
+
/**
|
|
31
|
+
* Whether a date of birth makes the buyer too young to continue.
|
|
32
|
+
*
|
|
33
|
+
* Only a well-formed past date is judged: a malformed one is connect-core's
|
|
34
|
+
* `DATE_FORMAT`, and a future one its `DATE_FUTURE`, both worded more
|
|
35
|
+
* precisely than "too young". Compared as UTC days so a clock behind UTC
|
|
36
|
+
* cannot fail someone on their birthday.
|
|
37
|
+
*/
|
|
38
|
+
export declare function underageIssue(value: string, today?: Date): 'DATE_UNDERAGE' | undefined;
|
|
39
|
+
/** Keep every rule alive when its field's page is unmounted. */
|
|
40
|
+
export declare function validateKycForm(form: FormDescriptor, values: FormValues): Record<string, KycFieldIssue>;
|
|
41
|
+
//# sourceMappingURL=kycFormState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kycFormState.d.ts","sourceRoot":"","sources":["../../../src/fiat/kycFormState.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,cAAc,EACd,SAAS,EACT,cAAc,EACd,UAAU,EACV,SAAS,EACV,MAAM,sBAAsB,CAAA;AAE7B,MAAM,MAAM,aAAa,GAAG,cAAc,GAAG,eAAe,CAAA;AAe5D;;;;;;GAMG;AACH,wBAAgB,UAAU,CACxB,MAAM,EAAE,SAAS,OAAO,EAAE,GAAG,SAAS,GACrC,aAAa,GAAG,SAAS,CAE3B;AAED,iFAAiF;AACjF,eAAO,MAAM,WAAW,GAAI,OAAO,SAAS,GAAG,SAAS,KAAG,MACnB,CAAA;AAExC;;;;;;GAMG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;AAElD,+EAA+E;AAC/E,wBAAgB,WAAW,CAAC,MAAM,EAAE,UAAU,GAAG,aAAa,CAO7D;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,SAAS,SAAS,EAAE,EAC5B,MAAM,EAAE,UAAU,GACjB,SAAS,EAAE,CAIb;AAED,uEAAuE;AACvE,eAAO,MAAM,iBAAiB,KAAK,CAAA;AAInC;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAC3B,KAAK,EAAE,MAAM,EACb,KAAK,GAAE,IAAiB,GACvB,eAAe,GAAG,SAAS,CAuB7B;AAWD,gEAAgE;AAChE,wBAAgB,eAAe,CAC7B,IAAI,EAAE,cAAc,EACpB,MAAM,EAAE,UAAU,GACjB,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAQ/B"}
|
|
@@ -37,11 +37,8 @@ export declare const KYC_FORM_METRICS: {
|
|
|
37
37
|
/** The paragraph: larger than body, and the only place this size is used. */
|
|
38
38
|
readonly detailFontSize: 21;
|
|
39
39
|
readonly detailLineHeight: 24;
|
|
40
|
-
/**
|
|
41
|
-
|
|
42
|
-
* 1508:2616 (455..511 over a keyboard at 545) and 1631:7256 alike.
|
|
43
|
-
*/
|
|
44
|
-
readonly advanceGap: 34;
|
|
40
|
+
/** KYC R2 actions clear the keyboard by 24 points (1951:8864). */
|
|
41
|
+
readonly advanceGap: 24;
|
|
45
42
|
/**
|
|
46
43
|
* The date picker's slot, taking the keyboard's place (1844:17543). Inset
|
|
47
44
|
* because the design floats the calendar off the screen's edges.
|
|
@@ -51,6 +48,14 @@ export declare const KYC_FORM_METRICS: {
|
|
|
51
48
|
readonly datePickerInsetY: 12;
|
|
52
49
|
/** Tighter than over a keyboard: 1844:17471 puts the advance 24 above it. */
|
|
53
50
|
readonly datePickerGap: 24;
|
|
51
|
+
/**
|
|
52
|
+
* The country list takes the same slot the date picker does — the room the
|
|
53
|
+
* keyboard gives up. It draws no keyboard of its own until the filter is
|
|
54
|
+
* touched, and then it rides above one.
|
|
55
|
+
*/
|
|
56
|
+
readonly countryDockHeight: 371;
|
|
57
|
+
/** Between the filter and the list under it. */
|
|
58
|
+
readonly countryDockGap: 12;
|
|
54
59
|
/** Disc bottom (108) to the headline's line box (181). */
|
|
55
60
|
readonly introHeadingTop: 73;
|
|
56
61
|
/** 38/38 with the box 286 wide, which is what wraps it onto two lines. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kycFormTheme.d.ts","sourceRoot":"","sources":["../../../src/fiat/kycFormTheme.ts"],"names":[],"mappings":"AAMA;;;GAGG;AACH,eAAO,MAAM,gBAAgB;IAC3B,oDAAoD;;;;IAIpD,0EAA0E;;IAE1E,kEAAkE;;IAElE,uCAAuC;;;;IAQvC,6CAA6C;;;IAG7C,4EAA4E;;IAE5E,mEAAmE;;;;IAInE,mDAAmD;;IAEnD,iEAAiE;;IAEjE,2BAA2B;;IAE3B,sDAAsD;;IAEtD,mDAAmD;;IAEnD,6EAA6E;;;IAG7E
|
|
1
|
+
{"version":3,"file":"kycFormTheme.d.ts","sourceRoot":"","sources":["../../../src/fiat/kycFormTheme.ts"],"names":[],"mappings":"AAMA;;;GAGG;AACH,eAAO,MAAM,gBAAgB;IAC3B,oDAAoD;;;;IAIpD,0EAA0E;;IAE1E,kEAAkE;;IAElE,uCAAuC;;;;IAQvC,6CAA6C;;;IAG7C,4EAA4E;;IAE5E,mEAAmE;;;;IAInE,mDAAmD;;IAEnD,iEAAiE;;IAEjE,2BAA2B;;IAE3B,sDAAsD;;IAEtD,mDAAmD;;IAEnD,6EAA6E;;;IAG7E,kEAAkE;;IAElE;;;OAGG;;;;IAIH,6EAA6E;;IAE7E;;;;OAIG;;IAEH,gDAAgD;;IAOhD,0DAA0D;;IAE1D,0EAA0E;;;;IAI1E,oDAAoD;;IAEpD,2DAA2D;;;IAG3D;;;OAGG;;IAEH,+DAA+D;;;IAG/D,sEAAsE;;IAEtE,oEAAoE;;IAEpE,yDAAyD;;IAEzD,yEAAyE;;IAEzE,oEAAoE;;;;CAI5D,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kycSupport.d.ts","sourceRoot":"","sources":["../../../src/fiat/kycSupport.ts"],"names":[],"mappings":"AAMA,wBAAgB,cAAc,SAI7B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { TFunction } from 'i18next';
|
|
2
|
+
export declare function showKycUnavailableAlert(t: TFunction, reason: 'network' | 'provider', onDismiss?: () => void): void;
|
|
3
|
+
/**
|
|
4
|
+
* A surface that never loaded is a connection problem; only a provider that
|
|
5
|
+
* answered and gave up should send the user to support.
|
|
6
|
+
*/
|
|
7
|
+
export declare function surfaceFailureReason(code: string): 'network' | 'provider';
|
|
8
|
+
//# sourceMappingURL=kycUnavailableAlert.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kycUnavailableAlert.d.ts","sourceRoot":"","sources":["../../../src/fiat/kycUnavailableAlert.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAIxC,wBAAgB,uBAAuB,CACrC,CAAC,EAAE,SAAS,EACZ,MAAM,EAAE,SAAS,GAAG,UAAU,EAC9B,SAAS,CAAC,EAAE,MAAM,IAAI,QA2BvB;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,UAAU,CAKzE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FiatProvider } from '@funkit/connect-core';
|
|
1
|
+
import type { FiatProvider, KYCProvider } from '@funkit/connect-core';
|
|
2
2
|
/**
|
|
3
3
|
* The documents the identity step points at.
|
|
4
4
|
*
|
|
@@ -11,7 +11,7 @@ export declare const PRIVACY_POLICY_URL = "https://fun.xyz/privacy";
|
|
|
11
11
|
* Bumped whenever the consent copy changes, and logged with every consent, so
|
|
12
12
|
* a record can be matched to the words the buyer actually read.
|
|
13
13
|
*/
|
|
14
|
-
export declare const CONSENT_COPY_VERSION = "2026-09-
|
|
14
|
+
export declare const CONSENT_COPY_VERSION = "2026-09-11";
|
|
15
15
|
/** The provider's terms, or `undefined` when none is on record for it. */
|
|
16
16
|
export declare function providerTermsUrl(provider: FiatProvider | undefined): string | undefined;
|
|
17
17
|
/**
|
|
@@ -19,4 +19,9 @@ export declare function providerTermsUrl(provider: FiatProvider | undefined): st
|
|
|
19
19
|
* screen drawn with no round to name one says instead.
|
|
20
20
|
*/
|
|
21
21
|
export declare function providerDisplayName(provider: FiatProvider | undefined, fallback: string): string;
|
|
22
|
+
/**
|
|
23
|
+
* The identity vendor's name as the copy should print it. Separate from the
|
|
24
|
+
* settling provider: the two enums name different things and never mix.
|
|
25
|
+
*/
|
|
26
|
+
export declare function kycProviderDisplayName(provider: KYCProvider | undefined, fallback: string): string;
|
|
22
27
|
//# sourceMappingURL=legalLinks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"legalLinks.d.ts","sourceRoot":"","sources":["../../../src/fiat/legalLinks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"legalLinks.d.ts","sourceRoot":"","sources":["../../../src/fiat/legalLinks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAErE;;;;;GAKG;AAEH,uEAAuE;AACvE,eAAO,MAAM,kBAAkB,4BAA4B,CAAA;AAE3D;;;GAGG;AACH,eAAO,MAAM,oBAAoB,eAAe,CAAA;AA6BhD,0EAA0E;AAC1E,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,YAAY,GAAG,SAAS,GACjC,MAAM,GAAG,SAAS,CAEpB;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,YAAY,GAAG,SAAS,EAClC,QAAQ,EAAE,MAAM,GACf,MAAM,CAKR;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,WAAW,GAAG,SAAS,EACjC,QAAQ,EAAE,MAAM,GACf,MAAM,CAKR"}
|
|
@@ -3,7 +3,7 @@ import type { ComponentType } from 'react';
|
|
|
3
3
|
export interface NativeDatePickerProps {
|
|
4
4
|
value: Date;
|
|
5
5
|
mode: 'date';
|
|
6
|
-
display: 'inline' | 'calendar';
|
|
6
|
+
display: 'inline' | 'calendar' | 'spinner';
|
|
7
7
|
minimumDate: Date;
|
|
8
8
|
maximumDate: Date;
|
|
9
9
|
themeVariant?: 'light' | 'dark';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nativeDatePicker.d.ts","sourceRoot":"","sources":["../../../src/fiat/nativeDatePicker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAM1C,4EAA4E;AAC5E,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,IAAI,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,QAAQ,GAAG,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"nativeDatePicker.d.ts","sourceRoot":"","sources":["../../../src/fiat/nativeDatePicker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAM1C,4EAA4E;AAC5E,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,IAAI,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,QAAQ,GAAG,UAAU,GAAG,SAAS,CAAA;IAC1C,WAAW,EAAE,IAAI,CAAA;IACjB,WAAW,EAAE,IAAI,CAAA;IACjB,YAAY,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IAC/B,QAAQ,EAAE,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,IAAI,CAAC,EAAE,IAAI,KAAK,IAAI,CAAA;CACzD;AAED,MAAM,MAAM,gBAAgB,GAAG,aAAa,CAAC,qBAAqB,CAAC,CAAA;AAEnE;;;GAGG;AACH,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,GAAG,IAAI,GAAG,SAAS,CAAA;AAQvE;;;;;;;;;;;;GAYG;AACH,wBAAgB,mBAAmB,IAAI,qBAAqB,CA6B3D;AASD,6EAA6E;AAC7E,eAAO,MAAM,mBAAmB,QAAgD,CAAA;AAEhF;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,SAAwB,CAAA;AAE1D,wBAAsB,oBAAoB,IAAI,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAc7E"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { FiatFlow } from '@funkit/connect-core';
|
|
2
2
|
import type { TFunction } from 'i18next';
|
|
3
3
|
import type { FiatOtpScreenProps } from './FiatOtpScreen';
|
|
4
|
+
import type { KnownContacts } from './knownContacts';
|
|
4
5
|
/**
|
|
5
6
|
* Binds a `SESSION_AUTH` step response to the code screen.
|
|
6
7
|
*
|
|
@@ -8,10 +9,10 @@ import type { FiatOtpScreenProps } from './FiatOtpScreen';
|
|
|
8
9
|
* contract declares them per step, and a step that words them differently
|
|
9
10
|
* still renders.
|
|
10
11
|
*
|
|
11
|
-
* `undefined` means the step is unanswerable — no CTA, one that collects
|
|
12
|
-
* nothing
|
|
12
|
+
* `undefined` means the step is unanswerable — no CTA, or one that collects
|
|
13
|
+
* nothing.
|
|
13
14
|
*/
|
|
14
15
|
export declare function otpScreenProps(flow: FiatFlow, t: TFunction,
|
|
15
|
-
/**
|
|
16
|
-
|
|
16
|
+
/** Every contact the entry collected, so each round can name its own. */
|
|
17
|
+
contacts: KnownContacts): Omit<FiatOtpScreenProps, 'onClose'> | undefined;
|
|
17
18
|
//# sourceMappingURL=otpScreenProps.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"otpScreenProps.d.ts","sourceRoot":"","sources":["../../../src/fiat/otpScreenProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"otpScreenProps.d.ts","sourceRoot":"","sources":["../../../src/fiat/otpScreenProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,QAAQ,EAET,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAIxC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AACzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAGpD;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,QAAQ,EACd,CAAC,EAAE,SAAS;AACZ,yEAAyE;AACzE,QAAQ,EAAE,aAAa,GACtB,IAAI,CAAC,kBAAkB,EAAE,SAAS,CAAC,GAAG,SAAS,CA2CjD"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Every country a phone number can be issued in, with the calling code it is
|
|
3
|
+
* reached on and the trunk digit it is dialled with at home.
|
|
4
|
+
*
|
|
5
|
+
* The whole ITU list, not the countries whose currency the rail quotes: where
|
|
6
|
+
* a buyer's money comes from says nothing about where their SIM does, and a
|
|
7
|
+
* shorter list makes a valid number unsendable.
|
|
8
|
+
*
|
|
9
|
+
* Generated from libphonenumber's metadata (v4, via libphonenumber-js 1.13.6)
|
|
10
|
+
* and named by `Intl.DisplayNames`. Calling codes and trunk prefixes are ITU
|
|
11
|
+
* and national-regulator facts; regenerate rather than hand-edit a row.
|
|
12
|
+
*/
|
|
13
|
+
export interface PhoneCountry {
|
|
14
|
+
/** ISO 3166-1 alpha-2, which is also what the geo lookup answers. */
|
|
15
|
+
alpha2: string;
|
|
16
|
+
/** E.164 calling code, `+` included. */
|
|
17
|
+
dialCode: string;
|
|
18
|
+
/** English name, used when the platform can name no other. */
|
|
19
|
+
name: string;
|
|
20
|
+
/**
|
|
21
|
+
* The digit a national number is dialled with at home and never carries
|
|
22
|
+
* internationally — `0` in most of Europe, `1` in the NANP, `8` in Russia.
|
|
23
|
+
* Absent where the country has none: an Italian number keeps its zero.
|
|
24
|
+
*/
|
|
25
|
+
trunkPrefix?: string;
|
|
26
|
+
}
|
|
27
|
+
/** Ordered by English name, which is the order the list draws them in. */
|
|
28
|
+
export declare const PHONE_COUNTRIES: readonly PhoneCountry[];
|
|
29
|
+
export declare function phoneCountry(alpha2: string | undefined): PhoneCountry | undefined;
|
|
30
|
+
/** The country the field opens on, from wherever the buyer is. */
|
|
31
|
+
export declare function defaultPhoneCountry(alpha2: string | undefined): PhoneCountry;
|
|
32
|
+
/**
|
|
33
|
+
* `\u{1F1E6}\u{1F1FA}` from `AU`: alpha-2 letters map onto the
|
|
34
|
+
* regional-indicator block, so the flag needs no asset and no per-country
|
|
35
|
+
* entry.
|
|
36
|
+
*/
|
|
37
|
+
export declare function countryFlag(alpha2: string): string;
|
|
38
|
+
/**
|
|
39
|
+
* The country's name in the app's language.
|
|
40
|
+
*
|
|
41
|
+
* Read off the platform rather than the translation files: 245 countries in 8
|
|
42
|
+
* locales is copy nobody would review, and every runtime that ships ICU
|
|
43
|
+
* already knows them. The table's English is the fallback where it does not.
|
|
44
|
+
*/
|
|
45
|
+
export declare function countryName(country: PhoneCountry, locale: string): string;
|
|
46
|
+
/**
|
|
47
|
+
* The wire value: the code and the digits typed under it, with nothing
|
|
48
|
+
* between. An unanswered field stays empty rather than becoming a bare code —
|
|
49
|
+
* `+61` alone is not an incomplete number, it is no number.
|
|
50
|
+
*/
|
|
51
|
+
export declare function toE164(country: PhoneCountry, national: string): string;
|
|
52
|
+
/** What the box shows: the wire value less the code the chip already draws. */
|
|
53
|
+
export declare function nationalPart(value: string, country: PhoneCountry): string;
|
|
54
|
+
//# sourceMappingURL=phoneCountries.d.ts.map
|
|
@@ -0,0 +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;AAkBD,+EAA+E;AAC/E,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,GAAG,MAAM,CAIzE"}
|
|
@@ -0,0 +1,10 @@
|
|
|
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 pasted international number moves its prefix into the country selector. */
|
|
6
|
+
export declare function pastedPhone(value: string): {
|
|
7
|
+
country: PhoneCountry;
|
|
8
|
+
national: string;
|
|
9
|
+
} | undefined;
|
|
10
|
+
//# 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,EAGL,KAAK,YAAY,EAClB,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,gFAAgF;AAChF,wBAAgB,WAAW,CACzB,KAAK,EAAE,MAAM,GACZ;IAAE,OAAO,EAAE,YAAY,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAOzD"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface CoinbaseCheckoutSurfaceProps {
|
|
2
|
+
checkoutUrl: string;
|
|
3
|
+
/** Log context only — the contract says URL surfaces may carry none. */
|
|
4
|
+
environment: string;
|
|
5
|
+
/** The button is drawn and can be pressed. */
|
|
6
|
+
onReady: () => void;
|
|
7
|
+
/** The user paid; what happens to the money is the order's to report. */
|
|
8
|
+
onPaid: () => void;
|
|
9
|
+
onFailed: (code: string, detail?: string) => void;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Coinbase's hosted Apple Pay button.
|
|
13
|
+
*
|
|
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).
|
|
19
|
+
*
|
|
20
|
+
* - a cancelled sheet leaves the page loaded and the button live, so pressing
|
|
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
|
|
24
|
+
*/
|
|
25
|
+
export declare function CoinbaseCheckoutSurface({ checkoutUrl, environment, onReady, onPaid, onFailed, }: CoinbaseCheckoutSurfaceProps): import("react").JSX.Element;
|
|
26
|
+
//# sourceMappingURL=CoinbaseCheckoutSurface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -14,8 +14,14 @@ export interface SurfaceContext {
|
|
|
14
14
|
placement: 'INLINE' | 'SCREEN';
|
|
15
15
|
/** Uncovers an `EMBEDDED` widget; a handoff has nothing to announce. */
|
|
16
16
|
onReady: () => void;
|
|
17
|
-
/**
|
|
18
|
-
|
|
17
|
+
/**
|
|
18
|
+
* The provider gave up on this attempt; its machine will not recover.
|
|
19
|
+
*
|
|
20
|
+
* `detail` is one sentence the user can act on. Only the adapter can write
|
|
21
|
+
* it: the codes are the provider's vocabulary, and a screen that mapped
|
|
22
|
+
* them would carry every provider's.
|
|
23
|
+
*/
|
|
24
|
+
onFailed: (code: string, detail?: string) => void;
|
|
19
25
|
/** Leaves the flow — a handoff draws its own chrome, close included. */
|
|
20
26
|
onClose: () => void;
|
|
21
27
|
report: (result: SurfaceResult) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAClE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC;;;;;;;GAOG;AACH,MAAM,MAAM,mBAAmB,GAAG,UAAU,GAAG,SAAS,CAAA;AAExD,8DAA8D;AAC9D,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,QAAQ,GAAG,QAAQ,CAAA;IAC9B,wEAAwE;IACxE,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB
|
|
1
|
+
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAClE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC;;;;;;;GAOG;AACH,MAAM,MAAM,mBAAmB,GAAG,UAAU,GAAG,SAAS,CAAA;AAExD,8DAA8D;AAC9D,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,QAAQ,GAAG,QAAQ,CAAA;IAC9B,wEAAwE;IACxE,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB;;;;;;OAMG;IACH,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IACjD,wEAAwE;IACxE,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,MAAM,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,IAAI,CAAA;CACxC;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,mBAAmB,CAAA;IAC5B,MAAM,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,SAAS,CAAA;CAC/C;AAED;;;;;;;;GAQG;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,EAAE,OAAO,KAAK,cAAc,GAAG,SAAS,CAAA"}
|