@funkit/connect-rn 6.2.0 → 8.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 (248) hide show
  1. package/CHANGELOG.md +148 -0
  2. package/README.md +97 -60
  3. package/dist/chunk-D64EJ57D.js +161 -0
  4. package/dist/chunk-D64EJ57D.js.map +7 -0
  5. package/dist/{chunk-VIMRV7N2.js → chunk-KZOSYNGV.js} +369 -207
  6. package/dist/chunk-KZOSYNGV.js.map +7 -0
  7. package/dist/{chunk-PLSQBNDE.js → chunk-SRVRWQO6.js} +5 -3
  8. package/dist/{chunk-PLSQBNDE.js.map → chunk-SRVRWQO6.js.map} +1 -1
  9. package/dist/clients/lighter.js +4 -2
  10. package/dist/clients/lighter.js.map +1 -1
  11. package/dist/clients/nado.js +5 -3
  12. package/dist/clients/nado.js.map +1 -1
  13. package/dist/clients/solana/index.d.ts +5 -0
  14. package/dist/clients/solana/index.d.ts.map +1 -0
  15. package/dist/clients/solana/solanaWithdrawal.d.ts +20 -0
  16. package/dist/clients/solana/solanaWithdrawal.d.ts.map +1 -0
  17. package/dist/clients/solana/useSolanaWithdrawal.d.ts +13 -0
  18. package/dist/clients/solana/useSolanaWithdrawal.d.ts.map +1 -0
  19. package/dist/clients/solana.d.ts +1 -0
  20. package/dist/clients/solana.js +87 -0
  21. package/dist/clients/solana.js.map +7 -0
  22. package/dist/index.d.ts +7 -2
  23. package/dist/index.d.ts.map +1 -1
  24. package/dist/index.js +7035 -2945
  25. package/dist/index.js.map +4 -4
  26. package/dist/src/components/Grabber.d.ts +3 -1
  27. package/dist/src/components/Grabber.d.ts.map +1 -1
  28. package/dist/src/components/LoadingSpinner.d.ts.map +1 -1
  29. package/dist/src/components/PillButton.d.ts.map +1 -1
  30. package/dist/src/components/v2/QuickAmountsRow.d.ts.map +1 -1
  31. package/dist/src/fiat/FiatChoiceField.d.ts +7 -1
  32. package/dist/src/fiat/FiatChoiceField.d.ts.map +1 -1
  33. package/dist/src/fiat/FiatCountrySheet.d.ts +11 -0
  34. package/dist/src/fiat/FiatCountrySheet.d.ts.map +1 -1
  35. package/dist/src/fiat/FiatFailureBanner.d.ts +14 -0
  36. package/dist/src/fiat/FiatFailureBanner.d.ts.map +1 -0
  37. package/dist/src/fiat/FiatFormScreen.d.ts +11 -1
  38. package/dist/src/fiat/FiatFormScreen.d.ts.map +1 -1
  39. package/dist/src/fiat/FiatIdentityStep.d.ts.map +1 -1
  40. package/dist/src/fiat/FiatKycFieldControl.d.ts +9 -2
  41. package/dist/src/fiat/FiatKycFieldControl.d.ts.map +1 -1
  42. package/dist/src/fiat/FiatKycOptionsScreen.d.ts.map +1 -1
  43. package/dist/src/fiat/FiatKycOutcomeScreen.d.ts +15 -2
  44. package/dist/src/fiat/FiatKycOutcomeScreen.d.ts.map +1 -1
  45. package/dist/src/fiat/FiatKycPhoneField.d.ts +21 -0
  46. package/dist/src/fiat/FiatKycPhoneField.d.ts.map +1 -0
  47. package/dist/src/fiat/FiatReceipt.d.ts +21 -0
  48. package/dist/src/fiat/FiatReceipt.d.ts.map +1 -0
  49. package/dist/src/fiat/FiatRegionUnsupportedScreen.d.ts +11 -0
  50. package/dist/src/fiat/FiatRegionUnsupportedScreen.d.ts.map +1 -0
  51. package/dist/src/fiat/FiatStatusScreen.d.ts.map +1 -1
  52. package/dist/src/fiat/FiatSubmissionIndicator.d.ts.map +1 -1
  53. package/dist/src/fiat/KycGlassBackdrop.d.ts.map +1 -1
  54. package/dist/src/fiat/ScreenSurfaceCover.d.ts +11 -0
  55. package/dist/src/fiat/ScreenSurfaceCover.d.ts.map +1 -0
  56. package/dist/src/fiat/SurfaceSlot.d.ts +12 -1
  57. package/dist/src/fiat/SurfaceSlot.d.ts.map +1 -1
  58. package/dist/src/fiat/depositOutcome.d.ts +33 -0
  59. package/dist/src/fiat/depositOutcome.d.ts.map +1 -0
  60. package/dist/src/fiat/fieldAutofill.d.ts.map +1 -1
  61. package/dist/src/fiat/formLayout.d.ts +12 -5
  62. package/dist/src/fiat/formLayout.d.ts.map +1 -1
  63. package/dist/src/fiat/formScreenProps.d.ts +4 -2
  64. package/dist/src/fiat/formScreenProps.d.ts.map +1 -1
  65. package/dist/src/fiat/kycFormPosition.d.ts +25 -1
  66. package/dist/src/fiat/kycFormPosition.d.ts.map +1 -1
  67. package/dist/src/fiat/kycFormState.d.ts +10 -0
  68. package/dist/src/fiat/kycFormState.d.ts.map +1 -1
  69. package/dist/src/fiat/kycUnavailableAlert.d.ts +21 -1
  70. package/dist/src/fiat/kycUnavailableAlert.d.ts.map +1 -1
  71. package/dist/src/fiat/methodName.d.ts +8 -0
  72. package/dist/src/fiat/methodName.d.ts.map +1 -0
  73. package/dist/src/fiat/providerFailover.d.ts +12 -0
  74. package/dist/src/fiat/providerFailover.d.ts.map +1 -0
  75. package/dist/src/fiat/providers/CoinbaseCheckoutSurface.d.ts +4 -2
  76. package/dist/src/fiat/providers/CoinbaseCheckoutSurface.d.ts.map +1 -1
  77. package/dist/src/fiat/providers/StripeSessionAuthController.d.ts +29 -0
  78. package/dist/src/fiat/providers/StripeSessionAuthController.d.ts.map +1 -0
  79. package/dist/src/fiat/providers/StripeSessionAuthScreen.d.ts +10 -0
  80. package/dist/src/fiat/providers/StripeSessionAuthScreen.d.ts.map +1 -0
  81. package/dist/src/fiat/providers/adapter.d.ts +6 -0
  82. package/dist/src/fiat/providers/adapter.d.ts.map +1 -1
  83. package/dist/src/fiat/providers/coinbaseOnrampEvents.d.ts +7 -3
  84. package/dist/src/fiat/providers/coinbaseOnrampEvents.d.ts.map +1 -1
  85. package/dist/src/fiat/providers/describeThrown.d.ts +14 -0
  86. package/dist/src/fiat/providers/describeThrown.d.ts.map +1 -0
  87. package/dist/src/fiat/providers/moonpay.d.ts.map +1 -1
  88. package/dist/src/fiat/providers/moonpayTrace.d.ts +25 -0
  89. package/dist/src/fiat/providers/moonpayTrace.d.ts.map +1 -0
  90. package/dist/src/fiat/providers/stripeAccountCreation.d.ts +12 -0
  91. package/dist/src/fiat/providers/stripeAccountCreation.d.ts.map +1 -0
  92. package/dist/src/fiat/providers/stripeAuthorize.d.ts +5 -0
  93. package/dist/src/fiat/providers/stripeAuthorize.d.ts.map +1 -0
  94. package/dist/src/fiat/providers/stripeCheckout.d.ts +28 -0
  95. package/dist/src/fiat/providers/stripeCheckout.d.ts.map +1 -0
  96. package/dist/src/fiat/providers/stripeKyc.d.ts +56 -0
  97. package/dist/src/fiat/providers/stripeKyc.d.ts.map +1 -0
  98. package/dist/src/fiat/providers/stripeKycInfo.d.ts +11 -0
  99. package/dist/src/fiat/providers/stripeKycInfo.d.ts.map +1 -0
  100. package/dist/src/fiat/providers/stripeOnramp.d.ts +135 -0
  101. package/dist/src/fiat/providers/stripeOnramp.d.ts.map +1 -0
  102. package/dist/src/fiat/providers/stripeOnrampBridge.d.ts +20 -0
  103. package/dist/src/fiat/providers/stripeOnrampBridge.d.ts.map +1 -0
  104. package/dist/src/fiat/providers/stripePayment.d.ts +34 -0
  105. package/dist/src/fiat/providers/stripePayment.d.ts.map +1 -0
  106. package/dist/src/fiat/providers/stripeSdk.d.ts +19 -0
  107. package/dist/src/fiat/providers/stripeSdk.d.ts.map +1 -0
  108. package/dist/src/fiat/providers/stripeSeamlessSignIn.d.ts +18 -0
  109. package/dist/src/fiat/providers/stripeSeamlessSignIn.d.ts.map +1 -0
  110. package/dist/src/fiat/providers/stripeSessionAuth.d.ts +43 -0
  111. package/dist/src/fiat/providers/stripeSessionAuth.d.ts.map +1 -0
  112. package/dist/src/fiat/providers/useStripeOnrampClient.d.ts +35 -0
  113. package/dist/src/fiat/providers/useStripeOnrampClient.d.ts.map +1 -0
  114. package/dist/src/fiat/quoteRefusal.d.ts +27 -0
  115. package/dist/src/fiat/quoteRefusal.d.ts.map +1 -1
  116. package/dist/src/fiat/renderCaptureSurface.d.ts +1 -1
  117. package/dist/src/fiat/renderCaptureSurface.d.ts.map +1 -1
  118. package/dist/src/fiat/sectionDetail.d.ts.map +1 -1
  119. package/dist/src/fiat/stepDetails.d.ts +5 -1
  120. package/dist/src/fiat/stepDetails.d.ts.map +1 -1
  121. package/dist/src/fiat/useFiatDirectDelivery.d.ts +5 -4
  122. package/dist/src/fiat/useFiatDirectDelivery.d.ts.map +1 -1
  123. package/dist/src/fiat/useIdentityAssertion.d.ts +35 -0
  124. package/dist/src/fiat/useIdentityAssertion.d.ts.map +1 -0
  125. package/dist/src/fiat/useKycCompletion.d.ts +11 -3
  126. package/dist/src/fiat/useKycCompletion.d.ts.map +1 -1
  127. package/dist/src/fiat/useQuoteableCeiling.d.ts +28 -0
  128. package/dist/src/fiat/useQuoteableCeiling.d.ts.map +1 -0
  129. package/dist/src/fiat/useStaleQuoteRecovery.d.ts +8 -1
  130. package/dist/src/fiat/useStaleQuoteRecovery.d.ts.map +1 -1
  131. package/dist/src/flow/DepositAmountStep.d.ts +4 -2
  132. package/dist/src/flow/DepositAmountStep.d.ts.map +1 -1
  133. package/dist/src/flow/DepositFlowContent.d.ts +4 -1
  134. package/dist/src/flow/DepositFlowContent.d.ts.map +1 -1
  135. package/dist/src/flow/DepositReceivedToast.d.ts +17 -0
  136. package/dist/src/flow/DepositReceivedToast.d.ts.map +1 -0
  137. package/dist/src/flow/FeeDetailsSheet.d.ts.map +1 -1
  138. package/dist/src/flow/FiatDepositAmountStep.d.ts +6 -2
  139. package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
  140. package/dist/src/flow/FiatRegionBlockedStep.d.ts +14 -0
  141. package/dist/src/flow/FiatRegionBlockedStep.d.ts.map +1 -0
  142. package/dist/src/flow/FiatRegionPendingStep.d.ts +10 -0
  143. package/dist/src/flow/FiatRegionPendingStep.d.ts.map +1 -0
  144. package/dist/src/flow/FlowSheet.d.ts +14 -20
  145. package/dist/src/flow/FlowSheet.d.ts.map +1 -1
  146. package/dist/src/flow/FunkitFlowProvider.d.ts +18 -5
  147. package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
  148. package/dist/src/flow/SheetMaterial.d.ts +11 -0
  149. package/dist/src/flow/SheetMaterial.d.ts.map +1 -0
  150. package/dist/src/flow/StepPage.d.ts +16 -0
  151. package/dist/src/flow/StepPage.d.ts.map +1 -0
  152. package/dist/src/flow/WithdrawalFlowContent.d.ts.map +1 -1
  153. package/dist/src/flow/accountContext.d.ts +6 -0
  154. package/dist/src/flow/accountContext.d.ts.map +1 -0
  155. package/dist/src/flow/depositFlowConfig.d.ts +116 -31
  156. package/dist/src/flow/depositFlowConfig.d.ts.map +1 -1
  157. package/dist/src/flow/depositMethods.d.ts +21 -0
  158. package/dist/src/flow/depositMethods.d.ts.map +1 -0
  159. package/dist/src/flow/depositRailCopy.d.ts +20 -0
  160. package/dist/src/flow/depositRailCopy.d.ts.map +1 -0
  161. package/dist/src/flow/flowError.d.ts +47 -0
  162. package/dist/src/flow/flowError.d.ts.map +1 -0
  163. package/dist/src/flow/flowStepHeight.d.ts +19 -0
  164. package/dist/src/flow/flowStepHeight.d.ts.map +1 -0
  165. package/dist/src/flow/useDepositReceivedToast.d.ts +22 -0
  166. package/dist/src/flow/useDepositReceivedToast.d.ts.map +1 -0
  167. package/dist/src/flow/validateClientMetadata.d.ts +2 -3
  168. package/dist/src/flow/validateClientMetadata.d.ts.map +1 -1
  169. package/dist/src/flow/withdrawalFlowConfig.d.ts +5 -4
  170. package/dist/src/flow/withdrawalFlowConfig.d.ts.map +1 -1
  171. package/dist/src/geo/useFiatRegionSupport.d.ts +23 -0
  172. package/dist/src/geo/useFiatRegionSupport.d.ts.map +1 -0
  173. package/dist/src/hooks/useGuardedAmountInput.d.ts +15 -15
  174. package/dist/src/hooks/useGuardedAmountInput.d.ts.map +1 -1
  175. package/dist/src/hooks/usePressScale.d.ts +22 -3
  176. package/dist/src/hooks/usePressScale.d.ts.map +1 -1
  177. package/dist/src/hooks/useSheetFade.d.ts +11 -0
  178. package/dist/src/hooks/useSheetFade.d.ts.map +1 -0
  179. package/dist/src/icons/FigmaSystemIcons.d.ts +1 -0
  180. package/dist/src/icons/FigmaSystemIcons.d.ts.map +1 -1
  181. package/dist/src/icons/KycIdentityIcon.d.ts +2 -1
  182. package/dist/src/icons/KycIdentityIcon.d.ts.map +1 -1
  183. package/dist/src/icons/KycStatusIcon.d.ts +1 -1
  184. package/dist/src/icons/KycStatusIcon.d.ts.map +1 -1
  185. package/dist/src/icons/kycArtwork.d.ts +15 -0
  186. package/dist/src/icons/kycArtwork.d.ts.map +1 -1
  187. package/dist/src/identity/IdentityContext.d.ts +31 -8
  188. package/dist/src/identity/IdentityContext.d.ts.map +1 -1
  189. package/dist/src/logging/debugBridge.d.ts +13 -0
  190. package/dist/src/logging/debugBridge.d.ts.map +1 -0
  191. package/dist/src/native/glassEffect.d.ts +18 -0
  192. package/dist/src/native/glassEffect.d.ts.map +1 -0
  193. package/dist/src/providers/FunkitProvider.d.ts +18 -9
  194. package/dist/src/providers/FunkitProvider.d.ts.map +1 -1
  195. package/dist/src/providers/NativeCapabilitiesContext.d.ts +20 -14
  196. package/dist/src/providers/NativeCapabilitiesContext.d.ts.map +1 -1
  197. package/dist/src/providers/useFrozenIdentity.d.ts +19 -0
  198. package/dist/src/providers/useFrozenIdentity.d.ts.map +1 -0
  199. package/dist/src/providers/useFunkitCheckout.d.ts +7 -3
  200. package/dist/src/providers/useFunkitCheckout.d.ts.map +1 -1
  201. package/dist/src/screens/DepositAmountScreen.d.ts +1 -1
  202. package/dist/src/screens/DepositAmountScreen.d.ts.map +1 -1
  203. package/dist/src/screens/FeeDetailsScreen.d.ts +7 -13
  204. package/dist/src/screens/FeeDetailsScreen.d.ts.map +1 -1
  205. package/dist/src/screens/WithdrawAddressScreen.d.ts.map +1 -1
  206. package/dist/src/screens/WithdrawAmountScreen.d.ts.map +1 -1
  207. package/dist/src/screens/WithdrawCompleteScreen.d.ts.map +1 -1
  208. package/dist/src/screens/depositMetrics.d.ts +2 -3
  209. package/dist/src/screens/depositMetrics.d.ts.map +1 -1
  210. package/dist/src/statsig/useStatsigReady.d.ts +11 -0
  211. package/dist/src/statsig/useStatsigReady.d.ts.map +1 -0
  212. package/dist/src/swapped/SwappedWebView.d.ts.map +1 -1
  213. package/dist/src/swapped/SwappedWithdrawScreen.d.ts +3 -1
  214. package/dist/src/swapped/SwappedWithdrawScreen.d.ts.map +1 -1
  215. package/dist/src/swapped/paymentNavigation.d.ts +21 -0
  216. package/dist/src/swapped/paymentNavigation.d.ts.map +1 -0
  217. package/dist/src/theme/buildFunkitTheme.d.ts +15 -11
  218. package/dist/src/theme/buildFunkitTheme.d.ts.map +1 -1
  219. package/dist/src/theme/restyle.d.ts +495 -363
  220. package/dist/src/theme/restyle.d.ts.map +1 -1
  221. package/dist/src/theme/toRestyleTheme.d.ts +45 -33
  222. package/dist/src/theme/toRestyleTheme.d.ts.map +1 -1
  223. package/dist/src/theme/tokens.d.ts +5 -5
  224. package/dist/src/theme/tokens.d.ts.map +1 -1
  225. package/dist/src/transfer/hooks/useDepositRecipient.d.ts +2 -2
  226. package/dist/src/transfer/hooks/useDepositRecipient.d.ts.map +1 -1
  227. package/dist/src/transfer/hooks/useTokenTransfer.d.ts +3 -2
  228. package/dist/src/transfer/hooks/useTokenTransfer.d.ts.map +1 -1
  229. package/dist/src/transfer/hooks/useTransferInit.d.ts +2 -3
  230. package/dist/src/transfer/hooks/useTransferInit.d.ts.map +1 -1
  231. package/dist/src/utils/formatAmount.d.ts +4 -3
  232. package/dist/src/utils/formatAmount.d.ts.map +1 -1
  233. package/dist/src/utils/motion.d.ts +18 -0
  234. package/dist/src/utils/motion.d.ts.map +1 -1
  235. package/dist/src/withdrawal/fiatTargetDecimals.d.ts +13 -0
  236. package/dist/src/withdrawal/fiatTargetDecimals.d.ts.map +1 -0
  237. package/dist/src/withdrawal/useCryptoWithdrawalForm.d.ts.map +1 -1
  238. package/dist/src/withdrawal/useSourceTokenDecimals.d.ts.map +1 -1
  239. package/dist/src/withdrawal/useWithdrawalExecution.d.ts.map +1 -1
  240. package/dist/src/withdrawal/useWithdrawalSourceTokenBalance.d.ts +11 -0
  241. package/dist/src/withdrawal/useWithdrawalSourceTokenBalance.d.ts.map +1 -0
  242. package/expo-module.config.json +6 -0
  243. package/ios/FunkitGlassEffect.podspec +23 -0
  244. package/ios/FunkitGlassEffectModule.swift +126 -0
  245. package/ios/GlassStyle.swift +52 -0
  246. package/ios/GlassView.swift +305 -0
  247. package/package.json +23 -7
  248. package/dist/chunk-VIMRV7N2.js.map +0 -7
@@ -3,6 +3,8 @@ export interface GrabberProps {
3
3
  width?: number;
4
4
  /** Distance from the sheet's top edge. */
5
5
  top?: number;
6
+ /** Fade with the sheet's rise — see {@link useSheetFade}. */
7
+ fadeWithSheet?: boolean;
6
8
  }
7
9
  /**
8
10
  * The bottom-sheet drag affordance. Absolutely positioned so each top bar lays
@@ -10,5 +12,5 @@ export interface GrabberProps {
10
12
  * `handleComponent={null}` to gorhom, or its default handle draws a second
11
13
  * grabber above it.
12
14
  */
13
- export declare function Grabber({ width, top, }: GrabberProps): import("react").JSX.Element;
15
+ export declare function Grabber({ width, top, fadeWithSheet, }: GrabberProps): import("react").JSX.Element;
14
16
  //# sourceMappingURL=Grabber.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Grabber.d.ts","sourceRoot":"","sources":["../../../src/components/Grabber.tsx"],"names":[],"mappings":"AASA,MAAM,WAAW,YAAY;IAC3B,kEAAkE;IAClE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,0CAA0C;IAC1C,GAAG,CAAC,EAAE,MAAM,CAAA;CACb;AAED;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,EACtB,KAAqB,EACrB,GAAiB,GAClB,EAAE,YAAY,+BAiBd"}
1
+ {"version":3,"file":"Grabber.d.ts","sourceRoot":"","sources":["../../../src/components/Grabber.tsx"],"names":[],"mappings":"AAaA,MAAM,WAAW,YAAY;IAC3B,kEAAkE;IAClE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,0CAA0C;IAC1C,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,6DAA6D;IAC7D,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB;AAED;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,EACtB,KAAqB,EACrB,GAAiB,EACjB,aAAqB,GACtB,EAAE,YAAY,+BAkBd"}
@@ -1 +1 @@
1
- {"version":3,"file":"LoadingSpinner.d.ts","sourceRoot":"","sources":["../../../src/components/LoadingSpinner.tsx"],"names":[],"mappings":"AAqBA;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAE/C;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,EAC7B,IAAI,EACJ,KAAK,EACL,UAAU,EACV,KAAS,GACV,EAAE;IACD,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,+CAA+C;IAC/C,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,iFAAiF;IACjF,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,sCAiDA"}
1
+ {"version":3,"file":"LoadingSpinner.d.ts","sourceRoot":"","sources":["../../../src/components/LoadingSpinner.tsx"],"names":[],"mappings":"AAuBA;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAE/C;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,EAC7B,IAAI,EACJ,KAAK,EACL,UAAU,EACV,KAAS,GACV,EAAE;IACD,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,+CAA+C;IAC/C,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,iFAAiF;IACjF,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,sCAiDA"}
@@ -1 +1 @@
1
- {"version":3,"file":"PillButton.d.ts","sourceRoot":"","sources":["../../../src/components/PillButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAc,MAAM,OAAO,CAAA;AAQlD,OAAO,KAAK,EA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CAAA;AAEvD,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,yDAAyD;IACzD,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,0DAA0D;IAC1D,YAAY,CAAC,EAAE,SAAS,CAAA;IACxB,IAAI,CAAC,EAAE,cAAc,CAAA;IACrB,qEAAqE;IACrE,OAAO,CAAC,EAAE,iBAAiB,CAAA;IAC3B;6CACyC;IACzC,MAAM,CAAC,EAAE,OAAO,CAAC,MAAM,WAAW,CAAC,aAAa,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC,CAAA;IACxE,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,2BAA2B;IAC3B,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAC5B;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,OAAO,EACP,IAAI,EACJ,YAAY,EACZ,IAAiB,EACjB,OAAmB,EACnB,MAAiB,EACjB,QAAgB,EAChB,kBAAkB,GACnB,EAAE,eAAe,+BAsHjB"}
@@ -1 +1 @@
1
- {"version":3,"file":"QuickAmountsRow.d.ts","sourceRoot":"","sources":["../../../../src/components/v2/QuickAmountsRow.tsx"],"names":[],"mappings":"AAaA,MAAM,WAAW,iBAAiB;IAChC,qEAAqE;IACrE,KAAK,EAAE,MAAM,CAAA;IACb,0CAA0C;IAC1C,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,iBAAiB,EAAE,CAAA;IAC5B,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED;;GAEG;AACH,eAAO,MAAM,eAAe,yEAIzB,oBAAoB,iCAoErB,CAAA"}
1
+ {"version":3,"file":"QuickAmountsRow.d.ts","sourceRoot":"","sources":["../../../../src/components/v2/QuickAmountsRow.tsx"],"names":[],"mappings":"AAaA,MAAM,WAAW,iBAAiB;IAChC,qEAAqE;IACrE,KAAK,EAAE,MAAM,CAAA;IACb,0CAA0C;IAC1C,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,iBAAiB,EAAE,CAAA;IAC5B,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED;;GAEG;AACH,eAAO,MAAM,eAAe,yEAIzB,oBAAoB,iCAgFrB,CAAA"}
@@ -9,8 +9,14 @@ export interface FiatChoiceFieldProps {
9
9
  editable: boolean;
10
10
  invalid: boolean;
11
11
  grouped?: boolean;
12
+ /**
13
+ * The options are ISO 3166-1 alpha-2 codes. Every country on earth is
14
+ * further than a plain list can be read through, so the drawer is the
15
+ * searchable list with the index rail the phone flow already draws.
16
+ */
17
+ country?: boolean;
12
18
  onChange: (value: string) => void;
13
19
  }
14
20
  /** KYC R2 selection drawer, shared by country and provider questionnaires. */
15
- export declare function FiatChoiceField({ label, title, value, options, editable, invalid, grouped, onChange, }: FiatChoiceFieldProps): import("react").JSX.Element;
21
+ export declare function FiatChoiceField({ label, title, value, options, editable, invalid, grouped, country, onChange, }: FiatChoiceFieldProps): import("react").JSX.Element;
16
22
  //# sourceMappingURL=FiatChoiceField.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FiatChoiceField.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatChoiceField.tsx"],"names":[],"mappings":"AAUA,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,SAAS;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,aAAa,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;IACzD,QAAQ,EAAE,OAAO,CAAA;IACjB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;CAClC;AAED,8EAA8E;AAC9E,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,KAAK,EACL,KAAK,EACL,OAAO,EACP,QAAQ,EACR,OAAO,EACP,OAAO,EACP,QAAQ,GACT,EAAE,oBAAoB,+BA+DtB"}
1
+ {"version":3,"file":"FiatChoiceField.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatChoiceField.tsx"],"names":[],"mappings":"AAsBA,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,SAAS;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,aAAa,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;IACzD,QAAQ,EAAE,OAAO,CAAA;IACjB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;CAClC;AAED,8EAA8E;AAC9E,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,KAAK,EACL,KAAK,EACL,OAAO,EACP,QAAQ,EACR,OAAO,EACP,OAAO,EACP,OAAe,EACf,QAAQ,GACT,EAAE,oBAAoB,+BA0EtB"}
@@ -15,4 +15,15 @@ export interface FiatCountrySheetProps {
15
15
  * gives the list the whole screen and its own search.
16
16
  */
17
17
  export declare function FiatCountrySheet({ sheet, selected, onSelect, }: FiatCountrySheetProps): import("react").JSX.Element;
18
+ /**
19
+ * What the sheet holds: the search the list is filtered by, and the countries
20
+ * grouped under the initial they file under.
21
+ */
22
+ export declare function FiatCountryList({ selected, onSelect, heading, onClose, }: {
23
+ selected: PhoneCountry;
24
+ onSelect: (country: PhoneCountry) => void;
25
+ /** The question the list answers, for a field that asks one of its own. */
26
+ heading?: string;
27
+ onClose: () => void;
28
+ }): import("react").JSX.Element;
18
29
  //# sourceMappingURL=FiatCountrySheet.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FiatCountrySheet.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatCountrySheet.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAgB1D,OAAO,EAEL,KAAK,YAAY,EAElB,MAAM,kBAAkB,CAAA;AAEzB,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,WAAW,CAAC,WAAW,CAAC,CAAA;IAC/B,4EAA4E;IAC5E,QAAQ,CAAC,EAAE,YAAY,CAAA;IACvB,QAAQ,EAAE,CAAC,OAAO,EAAE,YAAY,KAAK,IAAI,CAAA;CAC1C;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,KAAK,EACL,QAAQ,EACR,QAAQ,GACT,EAAE,qBAAqB,+BAUvB"}
1
+ {"version":3,"file":"FiatCountrySheet.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatCountrySheet.tsx"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAsB1D,OAAO,EAEL,KAAK,YAAY,EAElB,MAAM,kBAAkB,CAAA;AAEzB,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,WAAW,CAAC,WAAW,CAAC,CAAA;IAC/B,4EAA4E;IAC5E,QAAQ,CAAC,EAAE,YAAY,CAAA;IACvB,QAAQ,EAAE,CAAC,OAAO,EAAE,YAAY,KAAK,IAAI,CAAA;CAC1C;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,KAAK,EACL,QAAQ,EACR,QAAQ,GACT,EAAE,qBAAqB,+BAcvB;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,EAC9B,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,OAAO,GACR,EAAE;IACD,QAAQ,EAAE,YAAY,CAAA;IACtB,QAAQ,EAAE,CAAC,OAAO,EAAE,YAAY,KAAK,IAAI,CAAA;IACzC,2EAA2E;IAC3E,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB,+BAuNA"}
@@ -0,0 +1,14 @@
1
+ export interface FiatFailureBannerProps {
2
+ title: string;
3
+ /** The provider's own reason, when it gave one. */
4
+ detail: string;
5
+ }
6
+ /**
7
+ * The payment-failure banner on the amount screen, Fun Mobile V2 2812:1135.
8
+ *
9
+ * It covers the header rather than taking the inline notice slot, so the
10
+ * amount and the action below it hold their places while the buyer reads why
11
+ * the payment did not go through.
12
+ */
13
+ export declare function FiatFailureBanner({ title, detail }: FiatFailureBannerProps): import("react").JSX.Element;
14
+ //# sourceMappingURL=FiatFailureBanner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FiatFailureBanner.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatFailureBanner.tsx"],"names":[],"mappings":"AAQA,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,MAAM,CAAA;IACb,mDAAmD;IACnD,MAAM,EAAE,MAAM,CAAA;CACf;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,sBAAsB,+BAmC1E"}
@@ -1,3 +1,4 @@
1
+ import { type KycWalk } from './kycFormPosition';
1
2
  import type { FiatProvider, FormDescriptor, FormValues, JsonValue, Quote } from '@funkit/connect-core';
2
3
  import { type KycSectionPage } from './formLayout';
3
4
  export interface FiatFormScreenProps {
@@ -13,8 +14,17 @@ export interface FiatFormScreenProps {
13
14
  * never drew.
14
15
  */
15
16
  defaultCountry?: string;
17
+ /**
18
+ * What the buyer already typed in an earlier round of this session. A field
19
+ * blank here and answered there is filled in for them; anything they have
20
+ * touched on this round is theirs. Never persisted — it lives as long as the
21
+ * screen does.
22
+ */
23
+ carriedValues?: FormValues;
16
24
  /** The form's own error, when the server re-entered it carrying one. */
17
25
  errorMessage?: string;
26
+ /** The rounds walked so far, so the dots carry on from the earlier ones. */
27
+ walk?: KycWalk;
18
28
  isSubmitting: boolean;
19
29
  onChangeField: (fieldId: string, value: JsonValue) => void;
20
30
  /** Several fields at once, as one write — see `formScreenProps`. */
@@ -36,6 +46,6 @@ interface FiatFormContentProps extends FiatFormScreenProps {
36
46
  onStep: (step: number) => void;
37
47
  }
38
48
  /** One round of the form: what is typed, what is refused, and which page is up. */
39
- export declare function FiatFormContent({ form, values, defaultCountry, errorMessage, isSubmitting, onChangeField, onPrefill, onSubmit, onClose, pages, step, onStep, }: FiatFormContentProps): import("react").JSX.Element | null;
49
+ export declare function FiatFormContent({ form, values, defaultCountry, carriedValues, errorMessage, walk, isSubmitting, onChangeField, onPrefill, onSubmit, onClose, pages, step, onStep, }: FiatFormContentProps): import("react").JSX.Element | null;
40
50
  export {};
41
51
  //# sourceMappingURL=FiatFormScreen.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FiatFormScreen.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatFormScreen.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,YAAY,EACZ,cAAc,EAEd,UAAU,EACV,SAAS,EACT,KAAK,EACN,MAAM,sBAAsB,CAAA;AAyB7B,OAAO,EACL,KAAK,cAAc,EAOpB,MAAM,cAAc,CAAA;AA6BrB,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,cAAc,CAAA;IACpB,gFAAgF;IAChF,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,qEAAqE;IACrE,QAAQ,CAAC,EAAE,YAAY,CAAA;IACvB,MAAM,EAAE,UAAU,CAAA;IAClB;;;;OAIG;IACH,cAAc,CAAC,EAAE,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
1
+ {"version":3,"file":"FiatIdentityStep.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatIdentityStep.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAkB,KAAK,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;AAM3E,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,mBAAmB,+BAmB1D"}
@@ -1,7 +1,9 @@
1
1
  import { type FiatFormFieldRowProps } from './FiatFormFieldRow';
2
2
  import type { NativeDatePicker } from './nativeDatePicker';
3
- export declare function FiatKycFieldControl({ ssnDigits, Picker, frame, isDatePickerLoading, inlineChoice, ...props }: FiatFormFieldRowProps & {
3
+ interface KycFieldControlProps extends FiatFormFieldRowProps {
4
4
  ssnDigits?: 4 | 9;
5
+ /** The buyer's region, which the phone field's calling code opens on. */
6
+ defaultCountry?: string;
5
7
  Picker?: NativeDatePicker;
6
8
  /** The step's frame, which the wheel centres itself on. */
7
9
  frame?: {
@@ -11,5 +13,10 @@ export declare function FiatKycFieldControl({ ssnDigits, Picker, frame, isDatePi
11
13
  isDatePickerLoading?: boolean;
12
14
  /** The page draws its answers itself, rather than behind a chooser. */
13
15
  inlineChoice?: boolean;
14
- }): import("react").JSX.Element | null;
16
+ }
17
+ export declare function FiatKycFieldControl({ caption, ...props }: KycFieldControlProps & {
18
+ /** Named above the control, where the page's own line does not name it. */
19
+ caption?: string;
20
+ }): import("react").JSX.Element;
21
+ export {};
15
22
  //# sourceMappingURL=FiatKycFieldControl.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FiatKycFieldControl.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatKycFieldControl.tsx"],"names":[],"mappings":"AAKA,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,oBAAoB,CAAA;AAE3B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAE1D,wBAAgB,mBAAmB,CAAC,EAClC,SAAS,EACT,MAAM,EACN,KAAK,EACL,mBAA2B,EAC3B,YAAoB,EACpB,GAAG,KAAK,EACT,EAAE,qBAAqB,GAAG;IACzB,SAAS,CAAC,EAAE,CAAC,GAAG,CAAC,CAAA;IACjB,MAAM,CAAC,EAAE,gBAAgB,CAAA;IACzB,2DAA2D;IAC3D,KAAK,CAAC,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAA;IACvC,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,uEAAuE;IACvE,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB,sCAwFA"}
1
+ {"version":3,"file":"FiatKycFieldControl.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatKycFieldControl.tsx"],"names":[],"mappings":"AASA,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,oBAAoB,CAAA;AAE3B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAE1D,UAAU,oBAAqB,SAAQ,qBAAqB;IAC1D,SAAS,CAAC,EAAE,CAAC,GAAG,CAAC,CAAA;IACjB,yEAAyE;IACzE,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,MAAM,CAAC,EAAE,gBAAgB,CAAA;IACzB,2DAA2D;IAC3D,KAAK,CAAC,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAA;IACvC,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,uEAAuE;IACvE,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB;AAED,wBAAgB,mBAAmB,CAAC,EAClC,OAAO,EACP,GAAG,KAAK,EACT,EAAE,oBAAoB,GAAG;IACxB,2EAA2E;IAC3E,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,+BAiBA"}
@@ -1 +1 @@
1
- {"version":3,"file":"FiatKycOptionsScreen.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatKycOptionsScreen.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,cAAc,EAAiB,MAAM,wBAAwB,CAAA;AAG3E,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,oBAAoB,CAAA;AAE3B,MAAM,WAAW,yBAAyB;IACxC,4DAA4D;IAC5D,KAAK,EAAE,cAAc,CAAA;IACrB,KAAK,EAAE,MAAM,CAAA;IACb,0DAA0D;IAC1D,YAAY,EAAE,MAAM,CAAA;IACpB,OAAO,EAAE,qBAAqB,EAAE,CAAA;IAChC,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,KAAK,EACL,KAAK,EACL,YAAY,EACZ,OAAO,EACP,MAAM,GACP,EAAE,yBAAyB,+BAwD3B"}
1
+ {"version":3,"file":"FiatKycOptionsScreen.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatKycOptionsScreen.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,cAAc,EAAiB,MAAM,wBAAwB,CAAA;AAG3E,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,oBAAoB,CAAA;AAE3B,MAAM,WAAW,yBAAyB;IACxC,4DAA4D;IAC5D,KAAK,EAAE,cAAc,CAAA;IACrB,KAAK,EAAE,MAAM,CAAA;IACb,0DAA0D;IAC1D,YAAY,EAAE,MAAM,CAAA;IACpB,OAAO,EAAE,qBAAqB,EAAE,CAAA;IAChC,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,KAAK,EACL,KAAK,EACL,YAAY,EACZ,OAAO,EACP,MAAM,GACP,EAAE,yBAAyB,+BAmD3B"}
@@ -1,11 +1,24 @@
1
1
  export interface FiatKycOutcomeScreenProps {
2
2
  outcome: 'review' | 'hold' | 'restricted';
3
+ /**
4
+ * The verdict is withheld for now: the screen wears the hold's wording and
5
+ * spins where its action goes. What was sent has landed, and the answer then
6
+ * arrives on a screen the buyer is already reading.
7
+ */
8
+ pending?: boolean;
3
9
  recovery?: {
4
10
  label: string;
5
11
  onPress: () => void;
6
12
  };
7
13
  retryDetail?: string;
8
- onClose: () => void;
14
+ onContinue: () => void;
9
15
  }
10
- export declare function FiatKycOutcomeScreen({ outcome, recovery, retryDetail, onClose, }: FiatKycOutcomeScreenProps): import("react").JSX.Element;
16
+ /**
17
+ * The acknowledgement as the flow shows it, wait and all.
18
+ *
19
+ * - The wait starts here, on mount, so it is the screen's own: the verdict is
20
+ * often decided while another screen still owns the frame.
21
+ */
22
+ export declare function FiatKycCompletion(props: Omit<FiatKycOutcomeScreenProps, 'pending'>): import("react").JSX.Element;
23
+ export declare function FiatKycOutcomeScreen({ outcome, pending, recovery, retryDetail, onContinue, }: FiatKycOutcomeScreenProps): import("react").JSX.Element;
11
24
  //# sourceMappingURL=FiatKycOutcomeScreen.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FiatKycOutcomeScreen.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatKycOutcomeScreen.tsx"],"names":[],"mappings":"AAYA,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE,QAAQ,GAAG,MAAM,GAAG,YAAY,CAAA;IACzC,QAAQ,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,IAAI,CAAA;KAAE,CAAA;IACjD,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AAMD,wBAAgB,oBAAoB,CAAC,EACnC,OAAO,EACP,QAAQ,EACR,WAAW,EACX,OAAO,GACR,EAAE,yBAAyB,+BAkE3B"}
1
+ {"version":3,"file":"FiatKycOutcomeScreen.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatKycOutcomeScreen.tsx"],"names":[],"mappings":"AAMA,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE,QAAQ,GAAG,MAAM,GAAG,YAAY,CAAA;IACzC;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,IAAI,CAAA;KAAE,CAAA;IACjD,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,EAAE,MAAM,IAAI,CAAA;CACvB;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,IAAI,CAAC,yBAAyB,EAAE,SAAS,CAAC,+BAIlD;AAED,wBAAgB,oBAAoB,CAAC,EACnC,OAAO,EACP,OAAe,EACf,QAAQ,EACR,WAAW,EACX,UAAU,GACX,EAAE,yBAAyB,+BA8B3B"}
@@ -0,0 +1,21 @@
1
+ import type { FieldInputRef, FieldReturnKey } from './FiatFormFieldRow';
2
+ export interface FiatKycPhoneFieldProps {
3
+ /** The form's value: E.164, or empty. */
4
+ value: string;
5
+ /** The buyer's region, which the chip opens on when the value names none. */
6
+ defaultCountry?: string;
7
+ editable: boolean;
8
+ autoFocus: boolean;
9
+ returnKey?: FieldReturnKey;
10
+ inputRef?: FieldInputRef;
11
+ onChangeValue: (value: string) => void;
12
+ onBlur: () => void;
13
+ }
14
+ /**
15
+ * The KYC form's phone round, drawn as the session flow draws its phone: the
16
+ * calling code chosen from the country list on the left, the rest typed on
17
+ * the right, and E.164 written to the form. A plain box that asked for the
18
+ * code to be typed left a local number failing the round's own rule.
19
+ */
20
+ export declare function FiatKycPhoneField({ value, defaultCountry, editable, autoFocus, returnKey, inputRef, onChangeValue, onBlur, }: FiatKycPhoneFieldProps): import("react").JSX.Element;
21
+ //# sourceMappingURL=FiatKycPhoneField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FiatKycPhoneField.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatKycPhoneField.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAavE,MAAM,WAAW,sBAAsB;IACrC,yCAAyC;IACzC,KAAK,EAAE,MAAM,CAAA;IACb,6EAA6E;IAC7E,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,EAAE,OAAO,CAAA;IACjB,SAAS,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,cAAc,CAAA;IAC1B,QAAQ,CAAC,EAAE,aAAa,CAAA;IACxB,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,KAAK,EACL,cAAc,EACd,QAAQ,EACR,SAAS,EACT,SAAS,EACT,QAAQ,EACR,aAAa,EACb,MAAM,GACP,EAAE,sBAAsB,+BAgDxB"}
@@ -0,0 +1,21 @@
1
+ import type { ReactNode } from 'react';
2
+ export interface FiatReceiptProps {
3
+ /** Draws the warning-ringed glyph rather than the neutral one. */
4
+ restricted: boolean;
5
+ title: string;
6
+ /** Label on the support link, which every receipt carries. */
7
+ supportLabel: string;
8
+ detail?: string;
9
+ /** The footer; each receipt fills it with its own actions. */
10
+ children?: ReactNode;
11
+ }
12
+ /**
13
+ * The layout every terminal fiat receipt wears: a glyph, a line saying where
14
+ * the buyer stands, a support link, and whatever action is left.
15
+ *
16
+ * Presentational only — it decides nothing. The wording, the glyph and the
17
+ * actions all come from the screen that renders it, so the identity outcomes
18
+ * and the region refusal cannot drift apart.
19
+ */
20
+ export declare function FiatReceipt({ restricted, title, supportLabel, detail, children, }: FiatReceiptProps): import("react").JSX.Element;
21
+ //# sourceMappingURL=FiatReceipt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FiatReceipt.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatReceipt.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAWtC,MAAM,WAAW,gBAAgB;IAC/B,kEAAkE;IAClE,UAAU,EAAE,OAAO,CAAA;IACnB,KAAK,EAAE,MAAM,CAAA;IACb,8DAA8D;IAC9D,YAAY,EAAE,MAAM,CAAA;IACpB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB;AAMD;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,EAC1B,UAAU,EACV,KAAK,EACL,YAAY,EACZ,MAAM,EACN,QAAQ,GACT,EAAE,gBAAgB,+BA4ClB"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * What the buyer sees when fiat deposits are not served where they are.
3
+ *
4
+ * It wears the restricted receipt because the situation has the same shape:
5
+ * nothing to retry, and support is the only thing left to do. Its one action
6
+ * leaves, since there is no flow to continue into.
7
+ */
8
+ export declare function FiatRegionUnsupportedScreen({ onClose, }: {
9
+ onClose: () => void;
10
+ }): import("react").JSX.Element;
11
+ //# sourceMappingURL=FiatRegionUnsupportedScreen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FiatRegionUnsupportedScreen.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatRegionUnsupportedScreen.tsx"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CAAC,EAC1C,OAAO,GACR,EAAE;IACD,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB,+BAWA"}
@@ -1 +1 @@
1
- {"version":3,"file":"FiatStatusScreen.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatStatusScreen.tsx"],"names":[],"mappings":"AAaA,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAA;AAEzE,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,cAAc,CAAA;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,oEAAoE;IACpE,GAAG,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,IAAI,CAAA;KAAE,CAAA;IAC5C,YAAY,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,IAAI,CAAA;KAAE,CAAA;IACrD,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CACrB;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,IAAI,EACJ,KAAK,EACL,MAAM,EACN,GAAG,EACH,YAAY,EACZ,YAAoB,EACpB,OAAO,GACR,EAAE,qBAAqB,+BA4DvB"}
1
+ {"version":3,"file":"FiatStatusScreen.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatStatusScreen.tsx"],"names":[],"mappings":"AASA,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAA;AAKzE,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,cAAc,CAAA;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,oEAAoE;IACpE,GAAG,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,IAAI,CAAA;KAAE,CAAA;IAC5C,YAAY,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,IAAI,CAAA;KAAE,CAAA;IACrD,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CACrB;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,IAAI,EACJ,KAAK,EACL,MAAM,EACN,GAAG,EACH,YAAY,EACZ,YAAoB,EACpB,OAAO,GACR,EAAE,qBAAqB,+BA4DvB"}
@@ -1 +1 @@
1
- {"version":3,"file":"FiatSubmissionIndicator.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatSubmissionIndicator.tsx"],"names":[],"mappings":"AAQA,wBAAgB,uBAAuB,gCAYtC"}
1
+ {"version":3,"file":"FiatSubmissionIndicator.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatSubmissionIndicator.tsx"],"names":[],"mappings":"AAUA,wBAAgB,uBAAuB,gCActC"}
@@ -1 +1 @@
1
- {"version":3,"file":"KycGlassBackdrop.d.ts","sourceRoot":"","sources":["../../../src/fiat/KycGlassBackdrop.tsx"],"names":[],"mappings":"AAMA,yEAAyE;AACzE,wBAAgB,gBAAgB,gCAmB/B"}
1
+ {"version":3,"file":"KycGlassBackdrop.d.ts","sourceRoot":"","sources":["../../../src/fiat/KycGlassBackdrop.tsx"],"names":[],"mappings":"AAMA,yEAAyE;AACzE,wBAAgB,gBAAgB,gCAiB/B"}
@@ -0,0 +1,11 @@
1
+ import type { ReactNode } from 'react';
2
+ /**
3
+ * A provider that owns the whole canvas paints nothing of ours while it boots,
4
+ * and its own first frames are its choice (MoonPay: white, then black). The
5
+ * modal ground with our indicator stays over it until the provider reports
6
+ * ready, or the readiness ceiling passes.
7
+ */
8
+ export declare function ScreenSurfaceCover({ renderSurface, }: {
9
+ renderSurface: (onReady: () => void) => ReactNode;
10
+ }): import("react").JSX.Element;
11
+ //# sourceMappingURL=ScreenSurfaceCover.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScreenSurfaceCover.d.ts","sourceRoot":"","sources":["../../../src/fiat/ScreenSurfaceCover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAStC;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,aAAa,GACd,EAAE;IACD,aAAa,EAAE,CAAC,OAAO,EAAE,MAAM,IAAI,KAAK,SAAS,CAAA;CAClD,+BA8BA"}
@@ -1,9 +1,15 @@
1
1
  import { type ReactNode } from 'react';
2
2
  import type { PillButtonSize } from '../components/PillButton';
3
- export declare function SurfaceSlot({ renderSurface, surfaceKey, label, size, onReadyChange, }: {
3
+ export declare function SurfaceSlot({ renderSurface, surfaceKey, label, size, covered, onReadyChange, }: {
4
4
  /** Announced while the cover is up; the design draws no copy on it. */
5
5
  label: string;
6
6
  size: PillButtonSize;
7
+ /**
8
+ * Puts the cover back over a ready surface — a payment that has gone
9
+ * through but not yet landed. The provider stays mounted underneath, so it
10
+ * can still report what happens to it.
11
+ */
12
+ covered?: boolean;
7
13
  /**
8
14
  * Whether the provider's button is the one on screen, for chrome outside
9
15
  * the slot that has to land with it. A slot on its way out reports ready:
@@ -18,4 +24,9 @@ export declare function SurfaceSlot({ renderSurface, surfaceKey, label, size, on
18
24
  renderSurface?: undefined;
19
25
  surfaceKey?: undefined;
20
26
  })): import("react").JSX.Element;
27
+ /** Readiness and its timeout belong to this provider attempt, not the cover. */
28
+ export declare function ProviderSurface({ renderSurface, onReady, }: {
29
+ renderSurface: (onReady: () => void) => ReactNode;
30
+ onReady: () => void;
31
+ }): ReactNode;
21
32
  //# sourceMappingURL=SurfaceSlot.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SurfaceSlot.d.ts","sourceRoot":"","sources":["../../../src/fiat/SurfaceSlot.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,SAAS,EAKf,MAAM,OAAO,CAAA;AAWd,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAU9D,wBAAgB,WAAW,CAAC,EAC1B,aAAa,EACb,UAAU,EACV,KAAK,EACL,IAAI,EACJ,aAAa,GACd,EAAE;IACD,uEAAuE;IACvE,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,cAAc,CAAA;IACpB;;;;OAIG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAA;CACzC,GAAG,CACA;IACE,aAAa,EAAE,CAAC,OAAO,EAAE,MAAM,IAAI,KAAK,SAAS,CAAA;IACjD,gFAAgF;IAChF,UAAU,EAAE,MAAM,CAAA;CACnB,GACD;IAAE,aAAa,CAAC,EAAE,SAAS,CAAC;IAAC,UAAU,CAAC,EAAE,SAAS,CAAA;CAAE,CACxD,+BA8FA"}
1
+ {"version":3,"file":"SurfaceSlot.d.ts","sourceRoot":"","sources":["../../../src/fiat/SurfaceSlot.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,SAAS,EAKf,MAAM,OAAO,CAAA;AAWd,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAU9D,wBAAgB,WAAW,CAAC,EAC1B,aAAa,EACb,UAAU,EACV,KAAK,EACL,IAAI,EACJ,OAAe,EACf,aAAa,GACd,EAAE;IACD,uEAAuE;IACvE,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,cAAc,CAAA;IACpB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;;OAIG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAA;CACzC,GAAG,CACA;IACE,aAAa,EAAE,CAAC,OAAO,EAAE,MAAM,IAAI,KAAK,SAAS,CAAA;IACjD,gFAAgF;IAChF,UAAU,EAAE,MAAM,CAAA;CACnB,GACD;IAAE,aAAa,CAAC,EAAE,SAAS,CAAC;IAAC,UAAU,CAAC,EAAE,SAAS,CAAA;CAAE,CACxD,+BA8FA;AAED,gFAAgF;AAChF,wBAAgB,eAAe,CAAC,EAC9B,aAAa,EACb,OAAO,GACR,EAAE;IACD,aAAa,EAAE,CAAC,OAAO,EAAE,MAAM,IAAI,KAAK,SAAS,CAAA;IACjD,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB,aAuBA"}
@@ -0,0 +1,33 @@
1
+ import type { FiatFlow } from '@funkit/connect-core';
2
+ import type { TFunction } from 'i18next';
3
+ import type { DepositFlowCallbacks, DepositMethod } from '../flow/depositFlowConfig';
4
+ import { type FunkitFlowError } from '../flow/flowError';
5
+ /** Reports a deposit's outcome to the host once, whichever screen reaches it first. */
6
+ export interface DepositOutcomeReporter {
7
+ /** The order exists: the user leaving from here on is not a cancellation. */
8
+ ordered: () => void;
9
+ /**
10
+ * The deposit is on its way and the flow has closed behind it. Only the
11
+ * settle path calls this; see `onDepositSubmitted` for what it promises.
12
+ */
13
+ submitted: (orderId: string, method: DepositMethod['type']) => void;
14
+ failed: (error: FunkitFlowError) => void;
15
+ }
16
+ type StepState = NonNullable<FiatFlow['stepResponse']>['state'];
17
+ /**
18
+ * Lives above the flow session, which remounts on "back to entry": a report
19
+ * belongs to the deposit, not to one session of it. Unmounting before any
20
+ * report means the user left, and the host hears that as `cancelled`.
21
+ */
22
+ export declare function useDepositOutcomeReporter({ callbacks, checkoutId, paymentMethod, t, }: {
23
+ callbacks: Pick<DepositFlowCallbacks, 'onDepositSubmitted' | 'onDepositError'>;
24
+ checkoutId: string;
25
+ paymentMethod: string;
26
+ t: TFunction;
27
+ }): DepositOutcomeReporter;
28
+ /** Reads the flow's page and tells the reporter when it reaches an outcome. */
29
+ export declare function useDepositOutcome(flow: FiatFlow, reporter: DepositOutcomeReporter, t: TFunction): void;
30
+ /** The host-facing error a terminal page stands for, or nothing while the flow is live. */
31
+ export declare function terminalError(screen: FiatFlow['page']['screen'], state: StepState | undefined, t: TFunction): FunkitFlowError | undefined;
32
+ export {};
33
+ //# sourceMappingURL=depositOutcome.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"depositOutcome.d.ts","sourceRoot":"","sources":["../../../src/fiat/depositOutcome.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAGxC,OAAO,KAAK,EACV,oBAAoB,EACpB,aAAa,EACd,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAAE,KAAK,eAAe,EAAa,MAAM,mBAAmB,CAAA;AAGnE,uFAAuF;AACvF,MAAM,WAAW,sBAAsB;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,iBAAiB,CAAC,CAAA;IACnD,YAAY,CAAC,EAAE,cAAc,CAAC,cAAc,CAAC,CAAA;IAC7C,0EAA0E;IAC1E,cAAc,CAAC,EAAE,cAAc,CAAC,gBAAgB,CAAC,CAAA;CAClD;AAuDD,kEAAkE;AAClE,wBAAgB,aAAa,CAAC,KAAK,EAAE,SAAS,GAAG,aAAa,CAE7D"}
1
+ {"version":3,"file":"fieldAutofill.d.ts","sourceRoot":"","sources":["../../../src/fiat/fieldAutofill.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAc,MAAM,sBAAsB,CAAA;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAElD;;;;;GAKG;AACH,MAAM,WAAW,aAAa;IAC5B,eAAe,CAAC,EAAE,cAAc,CAAC,iBAAiB,CAAC,CAAA;IACnD,YAAY,CAAC,EAAE,cAAc,CAAC,cAAc,CAAC,CAAA;IAC7C,0EAA0E;IAC1E,cAAc,CAAC,EAAE,cAAc,CAAC,gBAAgB,CAAC,CAAA;CAClD;AA4DD,kEAAkE;AAClE,wBAAgB,aAAa,CAAC,KAAK,EAAE,SAAS,GAAG,aAAa,CAE7D"}
@@ -1,4 +1,5 @@
1
1
  import type { FormField } from '@funkit/connect-core';
2
+ import type { TextInputProps } from 'react-native';
2
3
  /**
3
4
  * The pages the US form is drawn as, in the order the design steps them.
4
5
  *
@@ -7,7 +8,7 @@ import type { FormField } from '@funkit/connect-core';
7
8
  * is where a field the design never drew goes, so a form the server words its
8
9
  * own way still renders.
9
10
  */
10
- export type KycSection = 'NAME' | 'DOB' | 'COUNTRY' | 'ADDRESS' | 'SSN' | 'OCCUPATION' | 'PURPOSE' | 'DETAILS';
11
+ export type KycSection = 'NAME' | 'DOB' | 'NATIONALITY' | 'COUNTRY' | 'ADDRESS' | 'SSN' | 'PHONE' | 'OCCUPATION' | 'EMPLOYMENT' | 'PURPOSE' | 'SOURCE_OF_WEALTH' | 'INCOME' | 'ACTIVITY' | 'DETAILS';
11
12
  export interface KycSectionPage {
12
13
  section: KycSection;
13
14
  /** Drawn as one card with a rule between rows, rather than loose boxes. */
@@ -15,6 +16,14 @@ export interface KycSectionPage {
15
16
  /** Fields sharing a row sit side by side, as the design pairs them. */
16
17
  rows: FormField[][];
17
18
  }
19
+ /**
20
+ * The questionnaire the due-diligence figures arrive under. The contract types
21
+ * a questionnaire id as a template, so these are the three this build draws
22
+ * a page for; any other lands in `DETAILS`.
23
+ */
24
+ export declare const GROSS_ANNUAL_INCOME = "QUESTIONNAIRE_RESPONSE:customerDueDiligence:grossAnnualIncome";
25
+ export declare const EXPECTED_AMOUNT_PER_MONTH = "QUESTIONNAIRE_RESPONSE:customerDueDiligence:expectedTransactionAmountPerMonth";
26
+ export declare const TRANSACTIONS_PER_MONTH = "QUESTIONNAIRE_RESPONSE:customerDueDiligence:transactionFrequencyPerMonth";
18
27
  /**
19
28
  * The server owns the field list, so an id this build does not know is not
20
29
  * identity: only the frames that collect who someone is qualify.
@@ -27,10 +36,8 @@ export declare function pickedDateField(page: KycSectionPage): FormField | undef
27
36
  * chain. A choice is not.
28
37
  */
29
38
  export declare function isFocusableField(field: FormField): boolean;
30
- /**
31
- * Whether the field raises a number pad. The SSN page is drawn over one
32
- * (1631:7883); every other page in the form is drawn over letters.
33
- */
39
+ export declare function fieldKeyboardType(field: FormField): TextInputProps['keyboardType'] | undefined;
40
+ /** Whether the field raises a pad rather than letters, and so has no return key. */
34
41
  export declare function isDigitsField(field: FormField): boolean;
35
42
  /** Whether the field is drawn at a fixed width rather than growing to fill. */
36
43
  export declare function isFixedWidthField(field: FormField): boolean;
@@ -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,GAClB,MAAM,GACN,KAAK,G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S,GACT,kBAAkB,GAClB,QAAQ,GACR,UAAU,GACV,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;AAED;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,kEACiC,CAAA;AACjE,eAAO,MAAM,yBAAyB,kFAC2C,CAAA;AACjF,eAAO,MAAM,sBAAsB,6EACyC,CAAA;AA6G5E;;;GAGG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAGzD;AAiBD,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAElE;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,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,SAAS,GACf,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,CAE5C;AAED,oFAAoF;AACpF,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,CAmC3E"}
@@ -1,4 +1,4 @@
1
- import type { FiatFlow } from '@funkit/connect-core';
1
+ import type { FiatFlow, FormValues } from '@funkit/connect-core';
2
2
  import type { TFunction } from 'i18next';
3
3
  import type { FiatFormScreenProps } from './FiatFormScreen';
4
4
  /**
@@ -13,5 +13,7 @@ import type { FiatFormScreenProps } from './FiatFormScreen';
13
13
  */
14
14
  export declare function formScreenProps(flow: FiatFlow, t: TFunction,
15
15
  /** The buyer's region, ISO 3166-1 alpha-2, when the lookup has answered. */
16
- defaultCountry?: string): Omit<FiatFormScreenProps, 'onClose'> | undefined;
16
+ defaultCountry?: string,
17
+ /** What earlier rounds of this session already collected; see `carriedValues`. */
18
+ carriedValues?: FormValues): Omit<FiatFormScreenProps, 'onClose'> | undefined;
17
19
  //# sourceMappingURL=formScreenProps.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"formScreenProps.d.ts","sourceRoot":"","sources":["../../../src/fiat/formScreenProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAyB,MAAM,sBAAsB,CAAA;AAE3E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;AAG3D;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,QAAQ,EACd,CAAC,EAAE,SAAS;AACZ,4EAA4E;AAC5E,cAAc,CAAC,EAAE,MAAM,GACtB,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,GAAG,SAAS,CAmClD"}
1
+ {"version":3,"file":"formScreenProps.d.ts","sourceRoot":"","sources":["../../../src/fiat/formScreenProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAa,MAAM,sBAAsB,CAAA;AAE3E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;AAG3D;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,QAAQ,EACd,CAAC,EAAE,SAAS;AACZ,4EAA4E;AAC5E,cAAc,CAAC,EAAE,MAAM;AACvB,kFAAkF;AAClF,aAAa,CAAC,EAAE,UAAU,GACzB,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,GAAG,SAAS,CAwClD"}
@@ -1,4 +1,28 @@
1
1
  import type { KycSection } from './formLayout';
2
2
  export type KycPosition = 1 | 2 | 3;
3
- export declare function kycFormPosition(section: KycSection): KycPosition;
3
+ /** Where a page stands in the pages walked so far, this round's included. */
4
+ export interface KycWalkOrder {
5
+ index: number;
6
+ count: number;
7
+ /** The dot the rounds before this one reached; the walk never drops below it. */
8
+ floor?: KycPosition;
9
+ }
10
+ /**
11
+ * The pages walked before this round, and this round's own, so a later
12
+ * round's dot never drops back behind an earlier round's.
13
+ */
14
+ export interface KycWalk {
15
+ formId: string;
16
+ before: number;
17
+ pages: number;
18
+ floor: KycPosition;
19
+ }
20
+ export declare function walkRound(walk: KycWalk | undefined, formId: string, pages: number): KycWalk;
21
+ export declare function walkOrder(walk: KycWalk, step: number): KycWalkOrder;
22
+ /**
23
+ * The lit dot for a page: its place in the pages actually walked, bucketed
24
+ * into the three positions, with the last page known lighting the last dot.
25
+ * Without an order to read, the section's Figma grouping stands in.
26
+ */
27
+ export declare function kycFormPosition(section: KycSection, order?: KycWalkOrder): KycPosition;
4
28
  //# sourceMappingURL=kycFormPosition.d.ts.map
@@ -1 +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"}
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;AAsBnC,6EAA6E;AAC7E,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,iFAAiF;IACjF,KAAK,CAAC,EAAE,WAAW,CAAA;CACpB;AAED;;;GAGG;AACH,MAAM,WAAW,OAAO;IACtB,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,WAAW,CAAA;CACnB;AAED,wBAAgB,SAAS,CACvB,IAAI,EAAE,OAAO,GAAG,SAAS,EACzB,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,GACZ,OAAO,CAaT;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,YAAY,CAMnE;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,UAAU,EACnB,KAAK,CAAC,EAAE,YAAY,GACnB,WAAW,CAUb"}
@@ -25,6 +25,16 @@ export declare function typedValues(values: FormValues): KycFormValues;
25
25
  * A value they typed is theirs, whatever the lookup says.
26
26
  */
27
27
  export declare function blankCountryFields(fields: readonly FormField[], values: FormValues): FormField[];
28
+ /**
29
+ * The fields an earlier round in this session already answered: blank here,
30
+ * non-blank there.
31
+ *
32
+ * Rails key their own records differently from ours — Stripe puts the name and
33
+ * phone from `registerLinkUser` on the Link consumer account, not on the crypto
34
+ * customer, so the identity round genuinely has to send the name again. That is
35
+ * a reason to re-send it, not a reason to make the buyer retype it.
36
+ */
37
+ export declare function carriedBlankFields(fields: readonly FormField[], values: FormValues, carried: FormValues): FormField[];
28
38
  /** Every rail this form feeds requires an adult (design 2114:8361). */
29
39
  export declare const MINIMUM_AGE_YEARS = 18;
30
40
  /**
@@ -1 +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,CAY/B"}
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;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,SAAS,SAAS,EAAE,EAC5B,MAAM,EAAE,UAAU,EAClB,OAAO,EAAE,UAAU,GAClB,SAAS,EAAE,CAUb;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,CAY/B"}
@@ -1,5 +1,25 @@
1
1
  import type { TFunction } from 'i18next';
2
- export declare function showKycUnavailableAlert(t: TFunction, reason: 'network' | 'provider', onDismiss?: () => void): void;
2
+ /**
3
+ * Why verification stopped, and what the buyer may do about it.
4
+ *
5
+ * A retry rides on `network` alone. This alert is the bucket for a condition
6
+ * we did not model: every outcome we understand has a screen of its own — a
7
+ * rejection banner, the options card, a refusal over the live amount. Reaching
8
+ * this alert means we have nothing better to say, so re-running the identical
9
+ * unmodelled path only walks the buyer back into it. A provider that answered
10
+ * and gave up is therefore terminal, and the union makes offering it a retry
11
+ * unrepresentable rather than merely discouraged.
12
+ */
13
+ export type KycUnavailability = {
14
+ reason: 'network';
15
+ onRetry?: () => void;
16
+ } | {
17
+ reason: 'provider';
18
+ } | {
19
+ reason: 'providerRetryable';
20
+ onDismiss?: () => void;
21
+ };
22
+ export declare function showKycUnavailableAlert(t: TFunction, unavailability: KycUnavailability): void;
3
23
  /**
4
24
  * A surface that never loaded is a connection problem; only a provider that
5
25
  * answered and gave up should send the user to support.
@@ -1 +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
+ {"version":3,"file":"kycUnavailableAlert.d.ts","sourceRoot":"","sources":["../../../src/fiat/kycUnavailableAlert.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAIxC;;;;;;;;;;GAUG;AACH,MAAM,MAAM,iBAAiB,GACzB;IAAE,MAAM,EAAE,SAAS,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CAAE,GAC3C;IAAE,MAAM,EAAE,UAAU,CAAA;CAAE,GAKtB;IAAE,MAAM,EAAE,mBAAmB,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CAAE,CAAA;AAE3D,wBAAgB,uBAAuB,CACrC,CAAC,EAAE,SAAS,EACZ,cAAc,EAAE,iBAAiB,QA8ClC;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,UAAU,CAKzE"}
@@ -0,0 +1,8 @@
1
+ import type { TFunction } from 'i18next';
2
+ /**
3
+ * The rail as the deposit confirmation names it, for a host that gave it no
4
+ * name of its own. A rail this build has no copy for is named by its code
5
+ * rather than by another rail's name.
6
+ */
7
+ export declare function methodDisplayName(paymentMethod: string, t: TFunction): string;
8
+ //# sourceMappingURL=methodName.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"methodName.d.ts","sourceRoot":"","sources":["../../../src/fiat/methodName.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,aAAa,EAAE,MAAM,EAAE,CAAC,EAAE,SAAS,GAAG,MAAM,CAQ7E"}