@funkit/connect-rn 4.3.0 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +100 -0
- package/dist/{chunk-5YSMFPBG.js → chunk-KPP7KXYB.js} +2 -2
- package/dist/{chunk-PIAR365R.js → chunk-X4RK3XTG.js} +460 -58
- package/dist/chunk-X4RK3XTG.js.map +7 -0
- package/dist/clients/lighter.js +1 -1
- package/dist/clients/nado.js +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5995 -2617
- package/dist/index.js.map +4 -4
- package/dist/src/components/DepositActionMotion.d.ts +12 -0
- package/dist/src/components/DepositActionMotion.d.ts.map +1 -0
- package/dist/src/components/PillButton.d.ts +1 -1
- package/dist/src/components/PillButton.d.ts.map +1 -1
- package/dist/src/components/v2/AccountBalanceChip.d.ts.map +1 -1
- package/dist/src/components/v2/AmountDisplay.d.ts.map +1 -1
- package/dist/src/components/v2/NumPad.d.ts +3 -4
- package/dist/src/components/v2/NumPad.d.ts.map +1 -1
- package/dist/src/components/v2/QuickAmountsRow.d.ts +3 -3
- package/dist/src/components/v2/QuickAmountsRow.d.ts.map +1 -1
- package/dist/src/fiat/FiatActionButton.d.ts +3 -0
- package/dist/src/fiat/FiatActionButton.d.ts.map +1 -0
- package/dist/src/fiat/FiatBirthDateField.d.ts +9 -0
- package/dist/src/fiat/FiatBirthDateField.d.ts.map +1 -0
- package/dist/src/fiat/FiatChoiceField.d.ts +16 -0
- package/dist/src/fiat/FiatChoiceField.d.ts.map +1 -0
- package/dist/src/fiat/FiatContactScreen.d.ts +17 -1
- package/dist/src/fiat/FiatContactScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatCountryDock.d.ts.map +1 -1
- package/dist/src/fiat/FiatDocumentCaptureStep.d.ts +9 -0
- package/dist/src/fiat/FiatDocumentCaptureStep.d.ts.map +1 -0
- package/dist/src/fiat/FiatErrorNotice.d.ts +4 -0
- package/dist/src/fiat/FiatErrorNotice.d.ts.map +1 -0
- package/dist/src/fiat/FiatFormAdvance.d.ts +18 -6
- package/dist/src/fiat/FiatFormAdvance.d.ts.map +1 -1
- package/dist/src/fiat/FiatFormFieldRow.d.ts +10 -5
- package/dist/src/fiat/FiatFormFieldRow.d.ts.map +1 -1
- package/dist/src/fiat/FiatFormScreen.d.ts +12 -3
- package/dist/src/fiat/FiatFormScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatIdentityStep.d.ts +3 -0
- package/dist/src/fiat/FiatIdentityStep.d.ts.map +1 -0
- package/dist/src/fiat/FiatKycFieldControl.d.ts +8 -0
- package/dist/src/fiat/FiatKycFieldControl.d.ts.map +1 -0
- package/dist/src/fiat/FiatKycIntroScreen.d.ts +7 -10
- package/dist/src/fiat/FiatKycIntroScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatKycNotice.d.ts +1 -6
- package/dist/src/fiat/FiatKycNotice.d.ts.map +1 -1
- package/dist/src/fiat/FiatKycOutcomeScreen.d.ts +11 -0
- package/dist/src/fiat/FiatKycOutcomeScreen.d.ts.map +1 -0
- package/dist/src/fiat/FiatKycPosition.d.ts +5 -0
- package/dist/src/fiat/FiatKycPosition.d.ts.map +1 -0
- package/dist/src/fiat/FiatOtpScreen.d.ts +7 -1
- package/dist/src/fiat/FiatOtpScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatPendingOrderScreen.d.ts +7 -0
- package/dist/src/fiat/FiatPendingOrderScreen.d.ts.map +1 -0
- package/dist/src/fiat/FiatPhoneField.d.ts +3 -2
- package/dist/src/fiat/FiatPhoneField.d.ts.map +1 -1
- package/dist/src/fiat/FiatSsnField.d.ts +13 -0
- package/dist/src/fiat/FiatSsnField.d.ts.map +1 -0
- package/dist/src/fiat/FiatStatusScreen.d.ts +7 -2
- package/dist/src/fiat/FiatStatusScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatSubmissionIndicator.d.ts +2 -0
- package/dist/src/fiat/FiatSubmissionIndicator.d.ts.map +1 -0
- package/dist/src/fiat/FiatTermsNotice.d.ts +1 -7
- package/dist/src/fiat/FiatTermsNotice.d.ts.map +1 -1
- package/dist/src/fiat/KycGlassBackdrop.d.ts +3 -0
- package/dist/src/fiat/KycGlassBackdrop.d.ts.map +1 -0
- package/dist/src/fiat/SurfaceSlot.d.ts.map +1 -1
- package/dist/src/fiat/formLayout.d.ts +4 -6
- package/dist/src/fiat/formLayout.d.ts.map +1 -1
- package/dist/src/fiat/formValidationError.d.ts +13 -0
- package/dist/src/fiat/formValidationError.d.ts.map +1 -0
- package/dist/src/fiat/isAdditionalKycForm.d.ts +8 -0
- package/dist/src/fiat/isAdditionalKycForm.d.ts.map +1 -0
- package/dist/src/fiat/kycFieldValidators.d.ts +11 -0
- package/dist/src/fiat/kycFieldValidators.d.ts.map +1 -0
- package/dist/src/fiat/kycFormAttempt.d.ts +34 -0
- package/dist/src/fiat/kycFormAttempt.d.ts.map +1 -0
- package/dist/src/fiat/kycFormPosition.d.ts +4 -0
- package/dist/src/fiat/kycFormPosition.d.ts.map +1 -0
- package/dist/src/fiat/kycFormState.d.ts +41 -0
- package/dist/src/fiat/kycFormState.d.ts.map +1 -0
- package/dist/src/fiat/kycFormTheme.d.ts +2 -5
- package/dist/src/fiat/kycFormTheme.d.ts.map +1 -1
- package/dist/src/fiat/kycSupport.d.ts +2 -0
- package/dist/src/fiat/kycSupport.d.ts.map +1 -0
- package/dist/src/fiat/kycUnavailableAlert.d.ts +8 -0
- package/dist/src/fiat/kycUnavailableAlert.d.ts.map +1 -0
- package/dist/src/fiat/legalLinks.d.ts +7 -2
- package/dist/src/fiat/legalLinks.d.ts.map +1 -1
- package/dist/src/fiat/nativeDatePicker.d.ts +1 -1
- package/dist/src/fiat/nativeDatePicker.d.ts.map +1 -1
- package/dist/src/fiat/otpScreenProps.d.ts.map +1 -1
- package/dist/src/fiat/phoneDraft.d.ts +10 -0
- package/dist/src/fiat/phoneDraft.d.ts.map +1 -0
- package/dist/src/fiat/providers/CoinbaseCheckoutSurface.d.ts +11 -8
- package/dist/src/fiat/providers/CoinbaseCheckoutSurface.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbaseApplePay.d.ts +4 -3
- package/dist/src/fiat/providers/coinbaseApplePay.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay.d.ts +3 -0
- package/dist/src/fiat/providers/moonpay.d.ts.map +1 -0
- package/dist/src/fiat/providers/sumsubKyc.d.ts +1 -2
- package/dist/src/fiat/providers/sumsubKyc.d.ts.map +1 -1
- package/dist/src/fiat/quoteRefusal.d.ts +24 -0
- package/dist/src/fiat/quoteRefusal.d.ts.map +1 -0
- package/dist/src/fiat/renderCaptureSurface.d.ts.map +1 -1
- package/dist/src/fiat/sectionDetail.d.ts.map +1 -1
- package/dist/src/fiat/sessionContact.d.ts +18 -6
- package/dist/src/fiat/sessionContact.d.ts.map +1 -1
- package/dist/src/fiat/ssnLength.d.ts +4 -0
- package/dist/src/fiat/ssnLength.d.ts.map +1 -0
- package/dist/src/fiat/stepDetails.d.ts +5 -0
- package/dist/src/fiat/stepDetails.d.ts.map +1 -1
- package/dist/src/fiat/useContactEligibility.d.ts +4 -0
- package/dist/src/fiat/useContactEligibility.d.ts.map +1 -0
- package/dist/src/fiat/useDatePickerDock.d.ts +2 -0
- package/dist/src/fiat/useDatePickerDock.d.ts.map +1 -1
- package/dist/src/fiat/useFiatCheckoutPreparation.d.ts +10 -0
- package/dist/src/fiat/useFiatCheckoutPreparation.d.ts.map +1 -0
- package/dist/src/fiat/useOtpAutoSubmit.d.ts +8 -0
- package/dist/src/fiat/useOtpAutoSubmit.d.ts.map +1 -0
- package/dist/src/fiat/useOtpReceipt.d.ts +14 -0
- package/dist/src/fiat/useOtpReceipt.d.ts.map +1 -0
- package/dist/src/fiat/useReplayableFailure.d.ts +13 -0
- package/dist/src/fiat/useReplayableFailure.d.ts.map +1 -0
- package/dist/src/flow/DepositAmountStep.d.ts +9 -2
- package/dist/src/flow/DepositAmountStep.d.ts.map +1 -1
- package/dist/src/flow/DepositFlowContent.d.ts +4 -2
- package/dist/src/flow/DepositFlowContent.d.ts.map +1 -1
- package/dist/src/flow/FeeDetailsSheet.d.ts.map +1 -1
- package/dist/src/flow/FiatDepositAmountStep.d.ts +12 -2
- package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
- package/dist/src/flow/FlowDismissLock.d.ts +13 -0
- package/dist/src/flow/FlowDismissLock.d.ts.map +1 -0
- package/dist/src/flow/FlowSheet.d.ts +11 -14
- package/dist/src/flow/FlowSheet.d.ts.map +1 -1
- package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
- package/dist/src/flow/WithdrawalFlowContent.d.ts +2 -1
- package/dist/src/flow/WithdrawalFlowContent.d.ts.map +1 -1
- package/dist/src/flow/depositFlowConfig.d.ts +39 -0
- package/dist/src/flow/depositFlowConfig.d.ts.map +1 -1
- package/dist/src/flow/useKeyboardHeight.d.ts +20 -0
- package/dist/src/flow/useKeyboardHeight.d.ts.map +1 -1
- package/dist/src/flow/validateClientMetadata.d.ts +8 -0
- package/dist/src/flow/validateClientMetadata.d.ts.map +1 -0
- package/dist/src/flow/validateInitialAmount.d.ts +9 -0
- package/dist/src/flow/validateInitialAmount.d.ts.map +1 -0
- package/dist/src/hooks/useGuardedAmountInput.d.ts +7 -4
- package/dist/src/hooks/useGuardedAmountInput.d.ts.map +1 -1
- package/dist/src/icons/ApplePayMark.d.ts +2 -0
- package/dist/src/icons/ApplePayMark.d.ts.map +1 -0
- package/dist/src/icons/DepositChevronIcon.d.ts +4 -0
- package/dist/src/icons/DepositChevronIcon.d.ts.map +1 -0
- package/dist/src/icons/DepositInfoCircleIcon.d.ts +4 -0
- package/dist/src/icons/DepositInfoCircleIcon.d.ts.map +1 -0
- package/dist/src/icons/FiatBackIcon.d.ts +4 -0
- package/dist/src/icons/FiatBackIcon.d.ts.map +1 -0
- package/dist/src/icons/KycDocumentIcon.d.ts +2 -0
- package/dist/src/icons/KycDocumentIcon.d.ts.map +1 -0
- package/dist/src/icons/KycExternalLinkIcon.d.ts +4 -0
- package/dist/src/icons/KycExternalLinkIcon.d.ts.map +1 -0
- package/dist/src/icons/KycIdentityIcon.d.ts +8 -0
- package/dist/src/icons/KycIdentityIcon.d.ts.map +1 -0
- package/dist/src/icons/KycLimitIcon.d.ts +4 -0
- package/dist/src/icons/KycLimitIcon.d.ts.map +1 -0
- package/dist/src/icons/KycOutcomeIcon.d.ts +5 -0
- package/dist/src/icons/KycOutcomeIcon.d.ts.map +1 -0
- package/dist/src/icons/KycSecurityIcon.d.ts +4 -0
- package/dist/src/icons/KycSecurityIcon.d.ts.map +1 -0
- package/dist/src/icons/KycVerifiedIcon.d.ts +2 -0
- package/dist/src/icons/KycVerifiedIcon.d.ts.map +1 -0
- package/dist/src/icons/kycArtwork.d.ts +3 -0
- package/dist/src/icons/kycArtwork.d.ts.map +1 -0
- package/dist/src/locales/i18n.d.ts.map +1 -1
- package/dist/src/providers/FunkitTrans.d.ts +15 -0
- package/dist/src/providers/FunkitTrans.d.ts.map +1 -0
- package/dist/src/screens/DepositAmountScreen.d.ts +8 -17
- package/dist/src/screens/DepositAmountScreen.d.ts.map +1 -1
- package/dist/src/screens/FeeDetailsScreen.d.ts +1 -3
- package/dist/src/screens/FeeDetailsScreen.d.ts.map +1 -1
- package/dist/src/screens/depositMetrics.d.ts +112 -0
- package/dist/src/screens/depositMetrics.d.ts.map +1 -0
- package/dist/src/swapped/SwappedScreen.d.ts +2 -1
- package/dist/src/swapped/SwappedScreen.d.ts.map +1 -1
- package/dist/src/swapped/SwappedScreenShell.d.ts +2 -1
- package/dist/src/swapped/SwappedScreenShell.d.ts.map +1 -1
- package/dist/src/theme/inputTextStyle.d.ts +13 -0
- package/dist/src/theme/inputTextStyle.d.ts.map +1 -0
- package/dist/src/theme/tokens.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useFops.d.ts +8 -2
- package/dist/src/transfer/hooks/useFops.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useTokenTransfer.d.ts +5 -1
- package/dist/src/transfer/hooks/useTokenTransfer.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useTransferInit.d.ts +13 -1
- package/dist/src/transfer/hooks/useTransferInit.d.ts.map +1 -1
- package/dist/src/utils/motion.d.ts +40 -0
- package/dist/src/utils/motion.d.ts.map +1 -1
- package/package.json +9 -4
- package/dist/chunk-PIAR365R.js.map +0 -7
- package/dist/src/fiat/formNotice.d.ts +0 -13
- package/dist/src/fiat/formNotice.d.ts.map +0 -1
- /package/dist/{chunk-5YSMFPBG.js.map → chunk-KPP7KXYB.js.map} +0 -0
|
@@ -2,12 +2,6 @@ import type { TermsToAccept } from '@funkit/connect-core';
|
|
|
2
2
|
export interface FiatTermsNoticeProps {
|
|
3
3
|
terms: TermsToAccept;
|
|
4
4
|
}
|
|
5
|
-
/**
|
|
6
|
-
* The terms the next tap accepts, said before it is taken.
|
|
7
|
-
*
|
|
8
|
-
* The document and its wording come from the step, never from a table here:
|
|
9
|
-
* the routing engine picks a provider per round, and the revision the buyer
|
|
10
|
-
* accepted is what a later dispute is settled against.
|
|
11
|
-
*/
|
|
5
|
+
/** The server requests consent; the footer explains what the next tap accepts. */
|
|
12
6
|
export declare function FiatTermsNotice({ terms }: FiatTermsNoticeProps): import("react").JSX.Element;
|
|
13
7
|
//# sourceMappingURL=FiatTermsNotice.d.ts.map
|
|
@@ -1 +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;
|
|
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,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.
|
|
@@ -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 +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,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"}
|
|
@@ -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"}
|
|
@@ -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":"
|
|
1
|
+
{"version":3,"file":"coinbaseApplePay.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/coinbaseApplePay.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,WAAW,CAAA;AA4D/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"}
|
|
@@ -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"}
|
|
@@ -24,6 +24,8 @@ export declare function reviewDetail(flow: FiatFlow): string | undefined;
|
|
|
24
24
|
* keys them by have no entry in this package's catalogue.
|
|
25
25
|
*/
|
|
26
26
|
export declare function quoteFeeRows(quote: Quote | undefined, t: TFunction): FeeDetailsRow[];
|
|
27
|
+
/** The rail disclosure, priced from the quote rather than host configuration. */
|
|
28
|
+
export declare function quoteFeeSummary(quote: Quote | undefined, method: string | undefined, t: TFunction): string | undefined;
|
|
27
29
|
/**
|
|
28
30
|
* A step's own error, worded for the banner it renders as. The contract sends
|
|
29
31
|
* no message — `code` is a copy key — so the category is what the copy keys off.
|
|
@@ -36,9 +38,12 @@ export declare function roundErrorMessage(error: FailureReason | undefined, t: T
|
|
|
36
38
|
* dependency, and a locale-guessed date is worse than an unambiguous one.
|
|
37
39
|
*/
|
|
38
40
|
export declare function onHoldDetail(flow: FiatFlow, t: TFunction): string;
|
|
41
|
+
/** Preserve an explicit cooling-off deadline alongside the R2 receipt. */
|
|
42
|
+
export declare function kycHoldRetryDetail(flow: FiatFlow, t: TFunction): string | undefined;
|
|
39
43
|
/**
|
|
40
44
|
* What a rejection leaves the user. Only the terminal variant carries a
|
|
41
45
|
* recovery, and support is the only one it names.
|
|
42
46
|
*/
|
|
43
47
|
export declare function rejectedDetail(flow: FiatFlow, t: TFunction): string | undefined;
|
|
48
|
+
export declare function blockedRetryDetail(flow: FiatFlow): string | undefined;
|
|
44
49
|
//# 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;;;;;;GAMG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,KAAK,GAAG,SAAS,EACxB,CAAC,EAAE,SAAS,GACX,aAAa,EAAE,CAoCjB;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"}
|
|
@@ -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"}
|