@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.
Files changed (202) hide show
  1. package/CHANGELOG.md +100 -0
  2. package/dist/{chunk-5YSMFPBG.js → chunk-KPP7KXYB.js} +2 -2
  3. package/dist/{chunk-PIAR365R.js → chunk-X4RK3XTG.js} +460 -58
  4. package/dist/chunk-X4RK3XTG.js.map +7 -0
  5. package/dist/clients/lighter.js +1 -1
  6. package/dist/clients/nado.js +2 -2
  7. package/dist/index.d.ts +1 -1
  8. package/dist/index.d.ts.map +1 -1
  9. package/dist/index.js +5995 -2617
  10. package/dist/index.js.map +4 -4
  11. package/dist/src/components/DepositActionMotion.d.ts +12 -0
  12. package/dist/src/components/DepositActionMotion.d.ts.map +1 -0
  13. package/dist/src/components/PillButton.d.ts +1 -1
  14. package/dist/src/components/PillButton.d.ts.map +1 -1
  15. package/dist/src/components/v2/AccountBalanceChip.d.ts.map +1 -1
  16. package/dist/src/components/v2/AmountDisplay.d.ts.map +1 -1
  17. package/dist/src/components/v2/NumPad.d.ts +3 -4
  18. package/dist/src/components/v2/NumPad.d.ts.map +1 -1
  19. package/dist/src/components/v2/QuickAmountsRow.d.ts +3 -3
  20. package/dist/src/components/v2/QuickAmountsRow.d.ts.map +1 -1
  21. package/dist/src/fiat/FiatActionButton.d.ts +3 -0
  22. package/dist/src/fiat/FiatActionButton.d.ts.map +1 -0
  23. package/dist/src/fiat/FiatBirthDateField.d.ts +9 -0
  24. package/dist/src/fiat/FiatBirthDateField.d.ts.map +1 -0
  25. package/dist/src/fiat/FiatChoiceField.d.ts +16 -0
  26. package/dist/src/fiat/FiatChoiceField.d.ts.map +1 -0
  27. package/dist/src/fiat/FiatContactScreen.d.ts +17 -1
  28. package/dist/src/fiat/FiatContactScreen.d.ts.map +1 -1
  29. package/dist/src/fiat/FiatCountryDock.d.ts.map +1 -1
  30. package/dist/src/fiat/FiatDocumentCaptureStep.d.ts +9 -0
  31. package/dist/src/fiat/FiatDocumentCaptureStep.d.ts.map +1 -0
  32. package/dist/src/fiat/FiatErrorNotice.d.ts +4 -0
  33. package/dist/src/fiat/FiatErrorNotice.d.ts.map +1 -0
  34. package/dist/src/fiat/FiatFormAdvance.d.ts +18 -6
  35. package/dist/src/fiat/FiatFormAdvance.d.ts.map +1 -1
  36. package/dist/src/fiat/FiatFormFieldRow.d.ts +10 -5
  37. package/dist/src/fiat/FiatFormFieldRow.d.ts.map +1 -1
  38. package/dist/src/fiat/FiatFormScreen.d.ts +12 -3
  39. package/dist/src/fiat/FiatFormScreen.d.ts.map +1 -1
  40. package/dist/src/fiat/FiatIdentityStep.d.ts +3 -0
  41. package/dist/src/fiat/FiatIdentityStep.d.ts.map +1 -0
  42. package/dist/src/fiat/FiatKycFieldControl.d.ts +8 -0
  43. package/dist/src/fiat/FiatKycFieldControl.d.ts.map +1 -0
  44. package/dist/src/fiat/FiatKycIntroScreen.d.ts +7 -10
  45. package/dist/src/fiat/FiatKycIntroScreen.d.ts.map +1 -1
  46. package/dist/src/fiat/FiatKycNotice.d.ts +1 -6
  47. package/dist/src/fiat/FiatKycNotice.d.ts.map +1 -1
  48. package/dist/src/fiat/FiatKycOutcomeScreen.d.ts +11 -0
  49. package/dist/src/fiat/FiatKycOutcomeScreen.d.ts.map +1 -0
  50. package/dist/src/fiat/FiatKycPosition.d.ts +5 -0
  51. package/dist/src/fiat/FiatKycPosition.d.ts.map +1 -0
  52. package/dist/src/fiat/FiatOtpScreen.d.ts +7 -1
  53. package/dist/src/fiat/FiatOtpScreen.d.ts.map +1 -1
  54. package/dist/src/fiat/FiatPendingOrderScreen.d.ts +7 -0
  55. package/dist/src/fiat/FiatPendingOrderScreen.d.ts.map +1 -0
  56. package/dist/src/fiat/FiatPhoneField.d.ts +3 -2
  57. package/dist/src/fiat/FiatPhoneField.d.ts.map +1 -1
  58. package/dist/src/fiat/FiatSsnField.d.ts +13 -0
  59. package/dist/src/fiat/FiatSsnField.d.ts.map +1 -0
  60. package/dist/src/fiat/FiatStatusScreen.d.ts +7 -2
  61. package/dist/src/fiat/FiatStatusScreen.d.ts.map +1 -1
  62. package/dist/src/fiat/FiatSubmissionIndicator.d.ts +2 -0
  63. package/dist/src/fiat/FiatSubmissionIndicator.d.ts.map +1 -0
  64. package/dist/src/fiat/FiatTermsNotice.d.ts +1 -7
  65. package/dist/src/fiat/FiatTermsNotice.d.ts.map +1 -1
  66. package/dist/src/fiat/KycGlassBackdrop.d.ts +3 -0
  67. package/dist/src/fiat/KycGlassBackdrop.d.ts.map +1 -0
  68. package/dist/src/fiat/SurfaceSlot.d.ts.map +1 -1
  69. package/dist/src/fiat/formLayout.d.ts +4 -6
  70. package/dist/src/fiat/formLayout.d.ts.map +1 -1
  71. package/dist/src/fiat/formValidationError.d.ts +13 -0
  72. package/dist/src/fiat/formValidationError.d.ts.map +1 -0
  73. package/dist/src/fiat/isAdditionalKycForm.d.ts +8 -0
  74. package/dist/src/fiat/isAdditionalKycForm.d.ts.map +1 -0
  75. package/dist/src/fiat/kycFieldValidators.d.ts +11 -0
  76. package/dist/src/fiat/kycFieldValidators.d.ts.map +1 -0
  77. package/dist/src/fiat/kycFormAttempt.d.ts +34 -0
  78. package/dist/src/fiat/kycFormAttempt.d.ts.map +1 -0
  79. package/dist/src/fiat/kycFormPosition.d.ts +4 -0
  80. package/dist/src/fiat/kycFormPosition.d.ts.map +1 -0
  81. package/dist/src/fiat/kycFormState.d.ts +41 -0
  82. package/dist/src/fiat/kycFormState.d.ts.map +1 -0
  83. package/dist/src/fiat/kycFormTheme.d.ts +2 -5
  84. package/dist/src/fiat/kycFormTheme.d.ts.map +1 -1
  85. package/dist/src/fiat/kycSupport.d.ts +2 -0
  86. package/dist/src/fiat/kycSupport.d.ts.map +1 -0
  87. package/dist/src/fiat/kycUnavailableAlert.d.ts +8 -0
  88. package/dist/src/fiat/kycUnavailableAlert.d.ts.map +1 -0
  89. package/dist/src/fiat/legalLinks.d.ts +7 -2
  90. package/dist/src/fiat/legalLinks.d.ts.map +1 -1
  91. package/dist/src/fiat/nativeDatePicker.d.ts +1 -1
  92. package/dist/src/fiat/nativeDatePicker.d.ts.map +1 -1
  93. package/dist/src/fiat/otpScreenProps.d.ts.map +1 -1
  94. package/dist/src/fiat/phoneDraft.d.ts +10 -0
  95. package/dist/src/fiat/phoneDraft.d.ts.map +1 -0
  96. package/dist/src/fiat/providers/CoinbaseCheckoutSurface.d.ts +11 -8
  97. package/dist/src/fiat/providers/CoinbaseCheckoutSurface.d.ts.map +1 -1
  98. package/dist/src/fiat/providers/coinbaseApplePay.d.ts +4 -3
  99. package/dist/src/fiat/providers/coinbaseApplePay.d.ts.map +1 -1
  100. package/dist/src/fiat/providers/moonpay.d.ts +3 -0
  101. package/dist/src/fiat/providers/moonpay.d.ts.map +1 -0
  102. package/dist/src/fiat/providers/sumsubKyc.d.ts +1 -2
  103. package/dist/src/fiat/providers/sumsubKyc.d.ts.map +1 -1
  104. package/dist/src/fiat/quoteRefusal.d.ts +24 -0
  105. package/dist/src/fiat/quoteRefusal.d.ts.map +1 -0
  106. package/dist/src/fiat/renderCaptureSurface.d.ts.map +1 -1
  107. package/dist/src/fiat/sectionDetail.d.ts.map +1 -1
  108. package/dist/src/fiat/sessionContact.d.ts +18 -6
  109. package/dist/src/fiat/sessionContact.d.ts.map +1 -1
  110. package/dist/src/fiat/ssnLength.d.ts +4 -0
  111. package/dist/src/fiat/ssnLength.d.ts.map +1 -0
  112. package/dist/src/fiat/stepDetails.d.ts +5 -0
  113. package/dist/src/fiat/stepDetails.d.ts.map +1 -1
  114. package/dist/src/fiat/useContactEligibility.d.ts +4 -0
  115. package/dist/src/fiat/useContactEligibility.d.ts.map +1 -0
  116. package/dist/src/fiat/useDatePickerDock.d.ts +2 -0
  117. package/dist/src/fiat/useDatePickerDock.d.ts.map +1 -1
  118. package/dist/src/fiat/useFiatCheckoutPreparation.d.ts +10 -0
  119. package/dist/src/fiat/useFiatCheckoutPreparation.d.ts.map +1 -0
  120. package/dist/src/fiat/useOtpAutoSubmit.d.ts +8 -0
  121. package/dist/src/fiat/useOtpAutoSubmit.d.ts.map +1 -0
  122. package/dist/src/fiat/useOtpReceipt.d.ts +14 -0
  123. package/dist/src/fiat/useOtpReceipt.d.ts.map +1 -0
  124. package/dist/src/fiat/useReplayableFailure.d.ts +13 -0
  125. package/dist/src/fiat/useReplayableFailure.d.ts.map +1 -0
  126. package/dist/src/flow/DepositAmountStep.d.ts +9 -2
  127. package/dist/src/flow/DepositAmountStep.d.ts.map +1 -1
  128. package/dist/src/flow/DepositFlowContent.d.ts +4 -2
  129. package/dist/src/flow/DepositFlowContent.d.ts.map +1 -1
  130. package/dist/src/flow/FeeDetailsSheet.d.ts.map +1 -1
  131. package/dist/src/flow/FiatDepositAmountStep.d.ts +12 -2
  132. package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
  133. package/dist/src/flow/FlowDismissLock.d.ts +13 -0
  134. package/dist/src/flow/FlowDismissLock.d.ts.map +1 -0
  135. package/dist/src/flow/FlowSheet.d.ts +11 -14
  136. package/dist/src/flow/FlowSheet.d.ts.map +1 -1
  137. package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
  138. package/dist/src/flow/WithdrawalFlowContent.d.ts +2 -1
  139. package/dist/src/flow/WithdrawalFlowContent.d.ts.map +1 -1
  140. package/dist/src/flow/depositFlowConfig.d.ts +39 -0
  141. package/dist/src/flow/depositFlowConfig.d.ts.map +1 -1
  142. package/dist/src/flow/useKeyboardHeight.d.ts +20 -0
  143. package/dist/src/flow/useKeyboardHeight.d.ts.map +1 -1
  144. package/dist/src/flow/validateClientMetadata.d.ts +8 -0
  145. package/dist/src/flow/validateClientMetadata.d.ts.map +1 -0
  146. package/dist/src/flow/validateInitialAmount.d.ts +9 -0
  147. package/dist/src/flow/validateInitialAmount.d.ts.map +1 -0
  148. package/dist/src/hooks/useGuardedAmountInput.d.ts +7 -4
  149. package/dist/src/hooks/useGuardedAmountInput.d.ts.map +1 -1
  150. package/dist/src/icons/ApplePayMark.d.ts +2 -0
  151. package/dist/src/icons/ApplePayMark.d.ts.map +1 -0
  152. package/dist/src/icons/DepositChevronIcon.d.ts +4 -0
  153. package/dist/src/icons/DepositChevronIcon.d.ts.map +1 -0
  154. package/dist/src/icons/DepositInfoCircleIcon.d.ts +4 -0
  155. package/dist/src/icons/DepositInfoCircleIcon.d.ts.map +1 -0
  156. package/dist/src/icons/FiatBackIcon.d.ts +4 -0
  157. package/dist/src/icons/FiatBackIcon.d.ts.map +1 -0
  158. package/dist/src/icons/KycDocumentIcon.d.ts +2 -0
  159. package/dist/src/icons/KycDocumentIcon.d.ts.map +1 -0
  160. package/dist/src/icons/KycExternalLinkIcon.d.ts +4 -0
  161. package/dist/src/icons/KycExternalLinkIcon.d.ts.map +1 -0
  162. package/dist/src/icons/KycIdentityIcon.d.ts +8 -0
  163. package/dist/src/icons/KycIdentityIcon.d.ts.map +1 -0
  164. package/dist/src/icons/KycLimitIcon.d.ts +4 -0
  165. package/dist/src/icons/KycLimitIcon.d.ts.map +1 -0
  166. package/dist/src/icons/KycOutcomeIcon.d.ts +5 -0
  167. package/dist/src/icons/KycOutcomeIcon.d.ts.map +1 -0
  168. package/dist/src/icons/KycSecurityIcon.d.ts +4 -0
  169. package/dist/src/icons/KycSecurityIcon.d.ts.map +1 -0
  170. package/dist/src/icons/KycVerifiedIcon.d.ts +2 -0
  171. package/dist/src/icons/KycVerifiedIcon.d.ts.map +1 -0
  172. package/dist/src/icons/kycArtwork.d.ts +3 -0
  173. package/dist/src/icons/kycArtwork.d.ts.map +1 -0
  174. package/dist/src/locales/i18n.d.ts.map +1 -1
  175. package/dist/src/providers/FunkitTrans.d.ts +15 -0
  176. package/dist/src/providers/FunkitTrans.d.ts.map +1 -0
  177. package/dist/src/screens/DepositAmountScreen.d.ts +8 -17
  178. package/dist/src/screens/DepositAmountScreen.d.ts.map +1 -1
  179. package/dist/src/screens/FeeDetailsScreen.d.ts +1 -3
  180. package/dist/src/screens/FeeDetailsScreen.d.ts.map +1 -1
  181. package/dist/src/screens/depositMetrics.d.ts +112 -0
  182. package/dist/src/screens/depositMetrics.d.ts.map +1 -0
  183. package/dist/src/swapped/SwappedScreen.d.ts +2 -1
  184. package/dist/src/swapped/SwappedScreen.d.ts.map +1 -1
  185. package/dist/src/swapped/SwappedScreenShell.d.ts +2 -1
  186. package/dist/src/swapped/SwappedScreenShell.d.ts.map +1 -1
  187. package/dist/src/theme/inputTextStyle.d.ts +13 -0
  188. package/dist/src/theme/inputTextStyle.d.ts.map +1 -0
  189. package/dist/src/theme/tokens.d.ts.map +1 -1
  190. package/dist/src/transfer/hooks/useFops.d.ts +8 -2
  191. package/dist/src/transfer/hooks/useFops.d.ts.map +1 -1
  192. package/dist/src/transfer/hooks/useTokenTransfer.d.ts +5 -1
  193. package/dist/src/transfer/hooks/useTokenTransfer.d.ts.map +1 -1
  194. package/dist/src/transfer/hooks/useTransferInit.d.ts +13 -1
  195. package/dist/src/transfer/hooks/useTransferInit.d.ts.map +1 -1
  196. package/dist/src/utils/motion.d.ts +40 -0
  197. package/dist/src/utils/motion.d.ts.map +1 -1
  198. package/package.json +9 -4
  199. package/dist/chunk-PIAR365R.js.map +0 -7
  200. package/dist/src/fiat/formNotice.d.ts +0 -13
  201. package/dist/src/fiat/formNotice.d.ts.map +0 -1
  202. /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;AAOzD,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,aAAa,CAAA;CACrB;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,EAAE,KAAK,EAAE,EAAE,oBAAoB,+BAyB9D"}
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,3 @@
1
+ /** KYC uses a near-opaque material for identity details and receipts. */
2
+ export declare function KycGlassBackdrop(): import("react").JSX.Element;
3
+ //# sourceMappingURL=KycGlassBackdrop.d.ts.map
@@ -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;AAO1E,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,+BAkCA"}
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 page's field a date picker can answer, when that is the whole page.
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,GAAG,MAAM,GAAG,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,CAAA;AAEvE,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;AAuDD;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,cAAc,GAAG,SAAS,GAAG,SAAS,CAI3E;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAI1D;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,CA4B3E"}
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,4 @@
1
+ import type { KycSection } from './formLayout';
2
+ export type KycPosition = 1 | 2 | 3;
3
+ export declare function kycFormPosition(section: KycSection): KycPosition;
4
+ //# sourceMappingURL=kycFormPosition.d.ts.map
@@ -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
- * Between the advance control and the keyboard it sits above — measured on
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;;;OAGG;;IAEH;;;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"}
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,2 @@
1
+ export declare function openKycSupport(): void;
2
+ //# sourceMappingURL=kycSupport.d.ts.map
@@ -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-08";
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;AAExD;;;;;GAKG;AAEH,uEAAuE;AACvE,eAAO,MAAM,kBAAkB,4BAA4B,CAAA;AAE3D;;;GAGG;AACH,eAAO,MAAM,oBAAoB,eAAe,CAAA;AAoBhD,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,CAQR"}
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;IAC9B,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
+ {"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,EAAE,QAAQ,EAAoB,MAAM,sBAAsB,CAAA;AACtE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,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,CAsCjD"}
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 page, shown as the payment screen.
12
+ * Coinbase's hosted Apple Pay button.
12
13
  *
13
- * Their page draws its own Apple Pay button and waits for a real tap on it.
14
- * Pressing it from injected script reaches `pending_payment_auth` and stops —
15
- * the sheet never opens — so the button is the user's to press.
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, onClose, }: CoinbaseCheckoutSurfaceProps): import("react").JSX.Element;
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":"AAcA,MAAM,WAAW,4BAA4B;IAC3C,WAAW,EAAE,MAAM,CAAA;IACnB,wEAAwE;IACxE,WAAW,EAAE,MAAM,CAAA;IACnB,yEAAyE;IACzE,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IACjD,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,WAAW,EACX,WAAW,EACX,MAAM,EACN,QAAQ,EACR,OAAO,GACR,EAAE,4BAA4B,+BAmH9B"}
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 takes the
4
- * payment. It runs in the app rather than the browser: a deposit that hands
5
- * the user to Safari cannot see how it ends.
3
+ * Coinbase's order arrives already made, with a hosted page that is nothing
4
+ * but its Apple Pay button. Embedded, then: the button takes the action's
5
+ * slot on the amount screen, as Transak's does, rather than a screen of its
6
+ * own with a page's worth of empty space around one control.
6
7
  */
7
8
  export declare const coinbaseApplePay: SurfaceAdapter;
8
9
  //# sourceMappingURL=coinbaseApplePay.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"coinbaseApplePay.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/coinbaseApplePay.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AA0C/C;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,EAAE,cAkB9B,CAAA"}
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,3 @@
1
+ import type { SurfaceAdapter } from './adapter';
2
+ export declare const moonpay: SurfaceAdapter;
3
+ //# sourceMappingURL=moonpay.d.ts.map
@@ -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, quote?: Quote): SurfaceAdapter;
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":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAW,MAAM,sBAAsB,CAAA;AAS1D,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,CAC9B,UAAU,EAAE,UAAU,EACtB,KAAK,CAAC,EAAE,KAAK,GACZ,cAAc,CAQhB;AAED,4DAA4D;AAC5D,eAAO,MAAM,SAAS,EAAE,cAEvB,CAAA"}
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;AAmC5B;;;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
+ {"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,CAavE"}
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
- * A number always has to be E.164 — `/fiat/*` rejects anything else on any
26
- * route, so it is the rule whether or not this step restates it. A pattern the
27
- * step declares narrows that further; it never widens it.
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 isCompleteContact(field: SessionContactField, value: string): boolean;
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;AAGpD,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,2EAA2E;AAC3E,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,SAAS,mBAAmB,EAAE,EACtC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GACvC,OAAO,CAIT;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,mBAAmB,EAC1B,KAAK,EAAE,MAAM,GACZ,OAAO,CAYT;AAkBD;;;GAGG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAErD"}
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,CASpD;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;;;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;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,QAAQ,EACd,CAAC,EAAE,SAAS,GACX,MAAM,GAAG,SAAS,CAQpB"}
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"}