@funkit/connect-rn 8.1.0 → 8.3.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 (329) hide show
  1. package/CHANGELOG.md +167 -0
  2. package/README.md +29 -0
  3. package/dist/chunk-BC4RXFI7.js +319 -0
  4. package/dist/chunk-BC4RXFI7.js.map +7 -0
  5. package/dist/{chunk-4YNYOJJK.js → chunk-KDRCHYXB.js} +377 -154
  6. package/dist/chunk-KDRCHYXB.js.map +7 -0
  7. package/dist/{chunk-75U7A2Q5.js → chunk-Z6IQFV5E.js} +3 -3
  8. package/dist/{chunk-75U7A2Q5.js.map → chunk-Z6IQFV5E.js.map} +2 -2
  9. package/dist/{chunk-D64EJ57D.js → chunk-ZIT24GW5.js} +1 -1
  10. package/dist/chunk-ZIT24GW5.js.map +7 -0
  11. package/dist/clients/lighter.js +2 -2
  12. package/dist/clients/nado.js +3 -3
  13. package/dist/clients/solana.js +1 -1
  14. package/dist/index.d.ts +1 -0
  15. package/dist/index.d.ts.map +1 -1
  16. package/dist/index.js +10582 -6262
  17. package/dist/index.js.map +4 -4
  18. package/dist/preview.d.ts +5 -0
  19. package/dist/preview.d.ts.map +1 -0
  20. package/dist/preview.js +1159 -0
  21. package/dist/preview.js.map +7 -0
  22. package/dist/src/components/BlurBand.d.ts +14 -0
  23. package/dist/src/components/BlurBand.d.ts.map +1 -0
  24. package/dist/src/components/DepositActionMotion.d.ts +4 -1
  25. package/dist/src/components/DepositActionMotion.d.ts.map +1 -1
  26. package/dist/src/components/DismissibleToast.d.ts +35 -0
  27. package/dist/src/components/DismissibleToast.d.ts.map +1 -0
  28. package/dist/src/components/GlassSurface.d.ts +16 -0
  29. package/dist/src/components/GlassSurface.d.ts.map +1 -0
  30. package/dist/src/components/PillButton.d.ts +20 -2
  31. package/dist/src/components/PillButton.d.ts.map +1 -1
  32. package/dist/src/components/ScrollingDots.d.ts +24 -0
  33. package/dist/src/components/ScrollingDots.d.ts.map +1 -0
  34. package/dist/src/components/StateSwap.d.ts +17 -0
  35. package/dist/src/components/StateSwap.d.ts.map +1 -0
  36. package/dist/src/components/WithdrawSourceCard.d.ts.map +1 -1
  37. package/dist/src/components/v2/AmountDisplay.d.ts.map +1 -1
  38. package/dist/src/components/v2/PaymentMethodPicker.d.ts +18 -0
  39. package/dist/src/components/v2/PaymentMethodPicker.d.ts.map +1 -0
  40. package/dist/src/components/v2/QuickAmountsRow.d.ts.map +1 -1
  41. package/dist/src/fiat/FiatBackButton.d.ts +9 -1
  42. package/dist/src/fiat/FiatBackButton.d.ts.map +1 -1
  43. package/dist/src/fiat/FiatBirthDateField.d.ts.map +1 -1
  44. package/dist/src/fiat/FiatChoiceField.d.ts +9 -1
  45. package/dist/src/fiat/FiatChoiceField.d.ts.map +1 -1
  46. package/dist/src/fiat/FiatContactScreen.d.ts.map +1 -1
  47. package/dist/src/fiat/FiatCountrySheet.d.ts +22 -7
  48. package/dist/src/fiat/FiatCountrySheet.d.ts.map +1 -1
  49. package/dist/src/fiat/FiatDocumentCaptureStep.d.ts +8 -2
  50. package/dist/src/fiat/FiatDocumentCaptureStep.d.ts.map +1 -1
  51. package/dist/src/fiat/FiatFailureBanner.d.ts +4 -1
  52. package/dist/src/fiat/FiatFailureBanner.d.ts.map +1 -1
  53. package/dist/src/fiat/FiatFormAdvance.d.ts.map +1 -1
  54. package/dist/src/fiat/FiatFormFieldRow.d.ts +15 -1
  55. package/dist/src/fiat/FiatFormFieldRow.d.ts.map +1 -1
  56. package/dist/src/fiat/FiatFormHeading.d.ts +21 -0
  57. package/dist/src/fiat/FiatFormHeading.d.ts.map +1 -0
  58. package/dist/src/fiat/FiatFormScreen.d.ts +8 -2
  59. package/dist/src/fiat/FiatFormScreen.d.ts.map +1 -1
  60. package/dist/src/fiat/FiatIdentityStep.d.ts +16 -1
  61. package/dist/src/fiat/FiatIdentityStep.d.ts.map +1 -1
  62. package/dist/src/fiat/FiatKycFieldControl.d.ts +2 -0
  63. package/dist/src/fiat/FiatKycFieldControl.d.ts.map +1 -1
  64. package/dist/src/fiat/FiatKycIntroScreen.d.ts +16 -3
  65. package/dist/src/fiat/FiatKycIntroScreen.d.ts.map +1 -1
  66. package/dist/src/fiat/FiatKycOutcomeScreen.d.ts +8 -6
  67. package/dist/src/fiat/FiatKycOutcomeScreen.d.ts.map +1 -1
  68. package/dist/src/fiat/FiatKycPhoneField.d.ts +2 -3
  69. package/dist/src/fiat/FiatKycPhoneField.d.ts.map +1 -1
  70. package/dist/src/fiat/FiatKycPosition.d.ts +5 -3
  71. package/dist/src/fiat/FiatKycPosition.d.ts.map +1 -1
  72. package/dist/src/fiat/FiatOtpScreen.d.ts.map +1 -1
  73. package/dist/src/fiat/FiatPhoneField.d.ts +17 -4
  74. package/dist/src/fiat/FiatPhoneField.d.ts.map +1 -1
  75. package/dist/src/fiat/FiatReceipt.d.ts +9 -3
  76. package/dist/src/fiat/FiatReceipt.d.ts.map +1 -1
  77. package/dist/src/fiat/FiatRegionUnsupportedScreen.d.ts.map +1 -1
  78. package/dist/src/fiat/FiatSsnField.d.ts.map +1 -1
  79. package/dist/src/fiat/FiatSubmissionIndicator.d.ts +7 -1
  80. package/dist/src/fiat/FiatSubmissionIndicator.d.ts.map +1 -1
  81. package/dist/src/fiat/FiatTermsNotice.d.ts +5 -2
  82. package/dist/src/fiat/FiatTermsNotice.d.ts.map +1 -1
  83. package/dist/src/fiat/SurfaceSlot.d.ts +5 -2
  84. package/dist/src/fiat/SurfaceSlot.d.ts.map +1 -1
  85. package/dist/src/fiat/countryListEntries.d.ts +8 -13
  86. package/dist/src/fiat/countryListEntries.d.ts.map +1 -1
  87. package/dist/src/fiat/countrySections.d.ts +12 -6
  88. package/dist/src/fiat/countrySections.d.ts.map +1 -1
  89. package/dist/src/fiat/fieldLabel.d.ts +14 -0
  90. package/dist/src/fiat/fieldLabel.d.ts.map +1 -0
  91. package/dist/src/fiat/formLayout.d.ts +16 -3
  92. package/dist/src/fiat/formLayout.d.ts.map +1 -1
  93. package/dist/src/fiat/formValidationError.d.ts +4 -2
  94. package/dist/src/fiat/formValidationError.d.ts.map +1 -1
  95. package/dist/src/fiat/kycFailover.d.ts +6 -0
  96. package/dist/src/fiat/kycFailover.d.ts.map +1 -0
  97. package/dist/src/fiat/kycFieldValidators.d.ts +5 -1
  98. package/dist/src/fiat/kycFieldValidators.d.ts.map +1 -1
  99. package/dist/src/fiat/kycFormState.d.ts +12 -0
  100. package/dist/src/fiat/kycFormState.d.ts.map +1 -1
  101. package/dist/src/fiat/kycFormTheme.d.ts +7 -2
  102. package/dist/src/fiat/kycFormTheme.d.ts.map +1 -1
  103. package/dist/src/fiat/kycUnavailableAlert.d.ts.map +1 -1
  104. package/dist/src/fiat/kycWalk.d.ts +22 -0
  105. package/dist/src/fiat/kycWalk.d.ts.map +1 -0
  106. package/dist/src/fiat/legalLinks.d.ts +4 -3
  107. package/dist/src/fiat/legalLinks.d.ts.map +1 -1
  108. package/dist/src/fiat/paymentSurfaceFailure.d.ts +56 -0
  109. package/dist/src/fiat/paymentSurfaceFailure.d.ts.map +1 -0
  110. package/dist/src/fiat/phoneDraft.d.ts +20 -0
  111. package/dist/src/fiat/phoneDraft.d.ts.map +1 -1
  112. package/dist/src/fiat/postalCodeCountries.d.ts +16 -0
  113. package/dist/src/fiat/postalCodeCountries.d.ts.map +1 -0
  114. package/dist/src/fiat/providers/CoinbaseCheckoutSurface.d.ts +8 -2
  115. package/dist/src/fiat/providers/CoinbaseCheckoutSurface.d.ts.map +1 -1
  116. package/dist/src/fiat/providers/HostedControlFrame.d.ts.map +1 -1
  117. package/dist/src/fiat/providers/adapter.d.ts +48 -6
  118. package/dist/src/fiat/providers/adapter.d.ts.map +1 -1
  119. package/dist/src/fiat/providers/applePayButtonMetrics.d.ts +28 -0
  120. package/dist/src/fiat/providers/applePayButtonMetrics.d.ts.map +1 -0
  121. package/dist/src/fiat/providers/applePayPaintGate.d.ts +24 -0
  122. package/dist/src/fiat/providers/applePayPaintGate.d.ts.map +1 -0
  123. package/dist/src/fiat/providers/banxaRedirect.d.ts.map +1 -1
  124. package/dist/src/fiat/providers/coinbaseApplePay.d.ts +2 -1
  125. package/dist/src/fiat/providers/coinbaseApplePay.d.ts.map +1 -1
  126. package/dist/src/fiat/providers/coinbaseFailureCopy.d.ts +6 -1
  127. package/dist/src/fiat/providers/coinbaseFailureCopy.d.ts.map +1 -1
  128. package/dist/src/fiat/providers/describeThrown.d.ts.map +1 -1
  129. package/dist/src/fiat/providers/kycIntro.d.ts +20 -0
  130. package/dist/src/fiat/providers/kycIntro.d.ts.map +1 -0
  131. package/dist/src/fiat/providers/moonpay.d.ts +10 -1
  132. package/dist/src/fiat/providers/moonpay.d.ts.map +1 -1
  133. package/dist/src/fiat/providers/moonpayApplePayPainted.d.ts +10 -0
  134. package/dist/src/fiat/providers/moonpayApplePayPainted.d.ts.map +1 -0
  135. package/dist/src/fiat/providers/moonpayApplePayStyle.d.ts +12 -0
  136. package/dist/src/fiat/providers/moonpayApplePayStyle.d.ts.map +1 -0
  137. package/dist/src/fiat/providers/moonpayAuthStyle.d.ts +19 -0
  138. package/dist/src/fiat/providers/moonpayAuthStyle.d.ts.map +1 -0
  139. package/dist/src/fiat/providers/moonpayFeeQuote.d.ts +26 -0
  140. package/dist/src/fiat/providers/moonpayFeeQuote.d.ts.map +1 -0
  141. package/dist/src/fiat/providers/stripeAuthorize.d.ts.map +1 -1
  142. package/dist/src/fiat/providers/stripeCheckout.d.ts.map +1 -1
  143. package/dist/src/fiat/providers/stripeKyc.d.ts +2 -0
  144. package/dist/src/fiat/providers/stripeKyc.d.ts.map +1 -1
  145. package/dist/src/fiat/providers/stripeKycIntro.d.ts +10 -0
  146. package/dist/src/fiat/providers/stripeKycIntro.d.ts.map +1 -0
  147. package/dist/src/fiat/providers/stripePayment.d.ts +2 -2
  148. package/dist/src/fiat/providers/stripePayment.d.ts.map +1 -1
  149. package/dist/src/fiat/providers/stripeRoundPush.d.ts +39 -0
  150. package/dist/src/fiat/providers/stripeRoundPush.d.ts.map +1 -0
  151. package/dist/src/fiat/providers/stripeSeamlessSignIn.d.ts +5 -0
  152. package/dist/src/fiat/providers/stripeSeamlessSignIn.d.ts.map +1 -1
  153. package/dist/src/fiat/providers/stripeSessionAuth.d.ts.map +1 -1
  154. package/dist/src/fiat/providers/sumsubKyc.d.ts.map +1 -1
  155. package/dist/src/fiat/providers/surfaceParams.d.ts +30 -0
  156. package/dist/src/fiat/providers/surfaceParams.d.ts.map +1 -0
  157. package/dist/src/fiat/providers/transakApplePay.d.ts.map +1 -1
  158. package/dist/src/fiat/providers/useStripeOnrampClient.d.ts +0 -10
  159. package/dist/src/fiat/providers/useStripeOnrampClient.d.ts.map +1 -1
  160. package/dist/src/fiat/providers/useStripeSessionAuth.d.ts +42 -0
  161. package/dist/src/fiat/providers/useStripeSessionAuth.d.ts.map +1 -0
  162. package/dist/src/fiat/quoteNoRoute.d.ts +11 -0
  163. package/dist/src/fiat/quoteNoRoute.d.ts.map +1 -0
  164. package/dist/src/fiat/renderCaptureSurface.d.ts +6 -0
  165. package/dist/src/fiat/renderCaptureSurface.d.ts.map +1 -1
  166. package/dist/src/fiat/sectionDetail.d.ts +8 -1
  167. package/dist/src/fiat/sectionDetail.d.ts.map +1 -1
  168. package/dist/src/fiat/shownFieldIssues.d.ts +17 -0
  169. package/dist/src/fiat/shownFieldIssues.d.ts.map +1 -0
  170. package/dist/src/fiat/stepDetails.d.ts +13 -14
  171. package/dist/src/fiat/stepDetails.d.ts.map +1 -1
  172. package/dist/src/fiat/subdivisions.d.ts +21 -0
  173. package/dist/src/fiat/subdivisions.d.ts.map +1 -0
  174. package/dist/src/fiat/useContactAutoSubmit.d.ts +20 -0
  175. package/dist/src/fiat/useContactAutoSubmit.d.ts.map +1 -0
  176. package/dist/src/fiat/useFiatCheckoutPreparation.d.ts +2 -1
  177. package/dist/src/fiat/useFiatCheckoutPreparation.d.ts.map +1 -1
  178. package/dist/src/fiat/useKycCaptureRound.d.ts +16 -0
  179. package/dist/src/fiat/useKycCaptureRound.d.ts.map +1 -0
  180. package/dist/src/fiat/useKycCompletion.d.ts.map +1 -1
  181. package/dist/src/fiat/useOtpAutoSubmit.d.ts +15 -2
  182. package/dist/src/fiat/useOtpAutoSubmit.d.ts.map +1 -1
  183. package/dist/src/fiat/useOtpReceipt.d.ts +3 -2
  184. package/dist/src/fiat/useOtpReceipt.d.ts.map +1 -1
  185. package/dist/src/fiat/useReceiptTitles.d.ts +6 -0
  186. package/dist/src/fiat/useReceiptTitles.d.ts.map +1 -0
  187. package/dist/src/flow/DepositAmountStep.d.ts.map +1 -1
  188. package/dist/src/flow/DepositAssetPicker.d.ts +4 -2
  189. package/dist/src/flow/DepositAssetPicker.d.ts.map +1 -1
  190. package/dist/src/flow/DepositFlowContent.d.ts.map +1 -1
  191. package/dist/src/flow/DepositReceivedToast.d.ts +2 -2
  192. package/dist/src/flow/DepositReceivedToast.d.ts.map +1 -1
  193. package/dist/src/flow/Drawer.d.ts +27 -9
  194. package/dist/src/flow/Drawer.d.ts.map +1 -1
  195. package/dist/src/flow/FeeDetailsSheet.d.ts +3 -1
  196. package/dist/src/flow/FeeDetailsSheet.d.ts.map +1 -1
  197. package/dist/src/flow/FiatDepositAmountStep.d.ts +5 -1
  198. package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
  199. package/dist/src/flow/FlowPage.d.ts +23 -0
  200. package/dist/src/flow/FlowPage.d.ts.map +1 -0
  201. package/dist/src/flow/FlowSheet.d.ts +18 -3
  202. package/dist/src/flow/FlowSheet.d.ts.map +1 -1
  203. package/dist/src/flow/FunkitFlowProvider.d.ts +3 -0
  204. package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
  205. package/dist/src/flow/SheetMaterial.d.ts +18 -4
  206. package/dist/src/flow/SheetMaterial.d.ts.map +1 -1
  207. package/dist/src/flow/WithdrawalFlowContent.d.ts.map +1 -1
  208. package/dist/src/flow/depositFlowConfig.d.ts +13 -3
  209. package/dist/src/flow/depositFlowConfig.d.ts.map +1 -1
  210. package/dist/src/flow/depositRailCopy.d.ts +2 -0
  211. package/dist/src/flow/depositRailCopy.d.ts.map +1 -1
  212. package/dist/src/flow/pageMotion.d.ts +37 -0
  213. package/dist/src/flow/pageMotion.d.ts.map +1 -0
  214. package/dist/src/flow/pageTurn.d.ts +28 -0
  215. package/dist/src/flow/pageTurn.d.ts.map +1 -0
  216. package/dist/src/flow/sheetPressHold.d.ts +24 -0
  217. package/dist/src/flow/sheetPressHold.d.ts.map +1 -0
  218. package/dist/src/flow/sheetSizing.d.ts +6 -5
  219. package/dist/src/flow/sheetSizing.d.ts.map +1 -1
  220. package/dist/src/flow/swipeBack.d.ts +30 -0
  221. package/dist/src/flow/swipeBack.d.ts.map +1 -0
  222. package/dist/src/flow/useDepositReceivedToast.d.ts.map +1 -1
  223. package/dist/src/flow/useFlowTransitions.d.ts +47 -0
  224. package/dist/src/flow/useFlowTransitions.d.ts.map +1 -0
  225. package/dist/src/flow/useKeyboardHeight.d.ts +2 -2
  226. package/dist/src/flow/useKeyboardHeight.d.ts.map +1 -1
  227. package/dist/src/flow/v2DepositCustomers.d.ts +2 -0
  228. package/dist/src/flow/v2DepositCustomers.d.ts.map +1 -0
  229. package/dist/src/flow/withdrawalFlowConfig.d.ts +18 -5
  230. package/dist/src/flow/withdrawalFlowConfig.d.ts.map +1 -1
  231. package/dist/src/hooks/useNestedSheetHeight.d.ts +10 -3
  232. package/dist/src/hooks/useNestedSheetHeight.d.ts.map +1 -1
  233. package/dist/src/hooks/usePressScale.d.ts +2 -6
  234. package/dist/src/hooks/usePressScale.d.ts.map +1 -1
  235. package/dist/src/hooks/useSheetFade.d.ts.map +1 -1
  236. package/dist/src/icons/assetLogos.d.ts.map +1 -1
  237. package/dist/src/native/glassEffect.d.ts +1 -0
  238. package/dist/src/native/glassEffect.d.ts.map +1 -1
  239. package/dist/src/preview/fixtures/kycForms.d.ts +45 -0
  240. package/dist/src/preview/fixtures/kycForms.d.ts.map +1 -0
  241. package/dist/src/preview/flowPreview.d.ts +142 -0
  242. package/dist/src/preview/flowPreview.d.ts.map +1 -0
  243. package/dist/src/preview/previewFetch.d.ts +10 -0
  244. package/dist/src/preview/previewFetch.d.ts.map +1 -0
  245. package/dist/src/preview/scenarioCatalog.d.ts +380 -0
  246. package/dist/src/preview/scenarioCatalog.d.ts.map +1 -0
  247. package/dist/src/preview/scenarios.d.ts +57 -0
  248. package/dist/src/preview/scenarios.d.ts.map +1 -0
  249. package/dist/src/providers/FunkitI18nProvider.d.ts +2 -0
  250. package/dist/src/providers/FunkitI18nProvider.d.ts.map +1 -1
  251. package/dist/src/providers/useFunkitCheckout.d.ts +6 -0
  252. package/dist/src/providers/useFunkitCheckout.d.ts.map +1 -1
  253. package/dist/src/screens/DepositAmountScreen.d.ts +14 -2
  254. package/dist/src/screens/DepositAmountScreen.d.ts.map +1 -1
  255. package/dist/src/screens/FeeDetailsScreen.d.ts.map +1 -1
  256. package/dist/src/screens/TokenAndChainPickerScreen.d.ts +3 -1
  257. package/dist/src/screens/TokenAndChainPickerScreen.d.ts.map +1 -1
  258. package/dist/src/screens/WithdrawAddressScreen.d.ts +4 -1
  259. package/dist/src/screens/WithdrawAddressScreen.d.ts.map +1 -1
  260. package/dist/src/screens/WithdrawAmountScreen.d.ts +16 -8
  261. package/dist/src/screens/WithdrawAmountScreen.d.ts.map +1 -1
  262. package/dist/src/screens/WithdrawCryptoSteps.d.ts.map +1 -1
  263. package/dist/src/screens/depositMetrics.d.ts +40 -3
  264. package/dist/src/screens/depositMetrics.d.ts.map +1 -1
  265. package/dist/src/swapped/SwappedWebView.d.ts.map +1 -1
  266. package/dist/src/theme/buildFunkitTheme.d.ts +1 -0
  267. package/dist/src/theme/buildFunkitTheme.d.ts.map +1 -1
  268. package/dist/src/theme/keyboardAppearance.d.ts +10 -0
  269. package/dist/src/theme/keyboardAppearance.d.ts.map +1 -0
  270. package/dist/src/theme/restyle.d.ts +33 -0
  271. package/dist/src/theme/restyle.d.ts.map +1 -1
  272. package/dist/src/theme/toRestyleTheme.d.ts +3 -0
  273. package/dist/src/theme/toRestyleTheme.d.ts.map +1 -1
  274. package/dist/src/theme/tokens.d.ts +10 -1
  275. package/dist/src/theme/tokens.d.ts.map +1 -1
  276. package/dist/src/transfer/depositAssets.d.ts +6 -4
  277. package/dist/src/transfer/depositAssets.d.ts.map +1 -1
  278. package/dist/src/transfer/hooks/useFiatExchangeRates.d.ts +5 -4
  279. package/dist/src/transfer/hooks/useFiatExchangeRates.d.ts.map +1 -1
  280. package/dist/src/transfer/hooks/useLockedTokenAmount.d.ts +19 -1
  281. package/dist/src/transfer/hooks/useLockedTokenAmount.d.ts.map +1 -1
  282. package/dist/src/transfer/hooks/useUDAParams.d.ts.map +1 -1
  283. package/dist/src/transfer/lockedQuoteSource.d.ts +23 -0
  284. package/dist/src/transfer/lockedQuoteSource.d.ts.map +1 -0
  285. package/dist/src/transfer/lockedTokenAmount.d.ts +25 -0
  286. package/dist/src/transfer/lockedTokenAmount.d.ts.map +1 -1
  287. package/dist/src/utils/formatAmount.d.ts +1 -0
  288. package/dist/src/utils/formatAmount.d.ts.map +1 -1
  289. package/dist/src/utils/motion.d.ts +6 -15
  290. package/dist/src/utils/motion.d.ts.map +1 -1
  291. package/dist/src/withdrawal/maxWithdrawAmount.d.ts +43 -0
  292. package/dist/src/withdrawal/maxWithdrawAmount.d.ts.map +1 -0
  293. package/dist/src/withdrawal/useCryptoWithdrawalForm.d.ts +9 -3
  294. package/dist/src/withdrawal/useCryptoWithdrawalForm.d.ts.map +1 -1
  295. package/dist/src/withdrawal/useCryptoWithdrawalValidation.d.ts +6 -1
  296. package/dist/src/withdrawal/useCryptoWithdrawalValidation.d.ts.map +1 -1
  297. package/dist/src/withdrawal/useSourceTokenUsdPrice.d.ts +2 -1
  298. package/dist/src/withdrawal/useSourceTokenUsdPrice.d.ts.map +1 -1
  299. package/dist/src/withdrawal/useWithdrawalAmountInput.d.ts +8 -5
  300. package/dist/src/withdrawal/useWithdrawalAmountInput.d.ts.map +1 -1
  301. package/dist/src/withdrawal/useWithdrawalFiatPrice.d.ts +6 -0
  302. package/dist/src/withdrawal/useWithdrawalFiatPrice.d.ts.map +1 -0
  303. package/dist/src/withdrawal/useWithdrawalMaximum.d.ts +19 -0
  304. package/dist/src/withdrawal/useWithdrawalMaximum.d.ts.map +1 -0
  305. package/dist/src/withdrawal/validation.d.ts +6 -2
  306. package/dist/src/withdrawal/validation.d.ts.map +1 -1
  307. package/package.json +13 -6
  308. package/dist/chunk-4YNYOJJK.js.map +0 -7
  309. package/dist/chunk-D64EJ57D.js.map +0 -7
  310. package/dist/src/components/ActionLoading.d.ts +0 -19
  311. package/dist/src/components/ActionLoading.d.ts.map +0 -1
  312. package/dist/src/fiat/FiatConsentCheck.d.ts +0 -11
  313. package/dist/src/fiat/FiatConsentCheck.d.ts.map +0 -1
  314. package/dist/src/fiat/FiatFormConsent.d.ts +0 -6
  315. package/dist/src/fiat/FiatFormConsent.d.ts.map +0 -1
  316. package/dist/src/fiat/FiatQuotePrice.d.ts +0 -12
  317. package/dist/src/fiat/FiatQuotePrice.d.ts.map +0 -1
  318. package/dist/src/fiat/kycFormPosition.d.ts +0 -28
  319. package/dist/src/fiat/kycFormPosition.d.ts.map +0 -1
  320. package/dist/src/fiat/providerFailover.d.ts +0 -12
  321. package/dist/src/fiat/providerFailover.d.ts.map +0 -1
  322. package/dist/src/fiat/providers/StripeSessionAuthController.d.ts +0 -29
  323. package/dist/src/fiat/providers/StripeSessionAuthController.d.ts.map +0 -1
  324. package/dist/src/fiat/providers/moonpayTrace.d.ts +0 -25
  325. package/dist/src/fiat/providers/moonpayTrace.d.ts.map +0 -1
  326. package/dist/src/fiat/useQuoteableCeiling.d.ts +0 -28
  327. package/dist/src/fiat/useQuoteableCeiling.d.ts.map +0 -1
  328. package/dist/src/flow/StepPage.d.ts +0 -16
  329. package/dist/src/flow/StepPage.d.ts.map +0 -1
@@ -1,16 +1,17 @@
1
+ export type SheetDetent = number | `${number}%`;
1
2
  /**
2
3
  * Sizing props for a `BottomSheetModal`; `topInset` stays with the caller. A
3
4
  * gorhom scrollable reports only its own height, so a screen with one can't be
4
- * measured — it takes a fixed detent and sizes itself.
5
+ * measured — it takes the fixed `detent` and sizes itself.
5
6
  */
6
- export declare function sheetSizing({ fullHeight }: {
7
- fullHeight: boolean;
7
+ export declare function sheetSizing({ detent }: {
8
+ detent?: SheetDetent;
8
9
  }): {
9
10
  enableDynamicSizing: boolean;
10
- snapPoints: string[];
11
+ snapPoints?: undefined;
11
12
  } | {
12
13
  enableDynamicSizing: boolean;
13
- snapPoints?: undefined;
14
+ snapPoints: SheetDetent[];
14
15
  };
15
16
  /**
16
17
  * `focusHook` that keeps `BottomSheetView`'s measuring but drops its
@@ -1 +1 @@
1
- {"version":3,"file":"sheetSizing.d.ts","sourceRoot":"","sources":["../../../src/flow/sheetSizing.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,EAAE,UAAU,EAAE,EAAE;IAAE,UAAU,EAAE,OAAO,CAAA;CAAE;;;;;;EAIlE;AAID;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,MAAM,IAAI,QAE5D"}
1
+ {"version":3,"file":"sheetSizing.d.ts","sourceRoot":"","sources":["../../../src/flow/sheetSizing.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,GAAG,MAAM,GAAG,CAAA;AAK/C;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,CAAC,EAAE,WAAW,CAAA;CAAE;;;;;;EAU/D;AAID;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,MAAM,IAAI,QAE5D"}
@@ -0,0 +1,30 @@
1
+ import { type ReactNode } from 'react';
2
+ import { type SharedValue } from 'react-native-reanimated';
3
+ /** How far in from the left edge a swipe back may start, as UIKit's pop. */
4
+ export declare const SWIPE_BACK_EDGE = 30;
5
+ /** A flick this fast commits however little of the page it moved. */
6
+ export declare const SWIPE_BACK_FLICK = 500;
7
+ /**
8
+ * Whether a swipe released at `translationX`, moving at `velocityX`, goes back.
9
+ *
10
+ * - A flick right commits from anywhere; a slow drag must pass halfway.
11
+ * - A drag past halfway that is thrown back left cancels, as UIKit's does.
12
+ */
13
+ export declare function shouldCommitSwipeBack(translationX: number, velocityX: number, width: number): boolean;
14
+ /**
15
+ * Lets a swipe from the left edge do what `back` does on the page it is drawn
16
+ * in. Off, the page ignores the swipe.
17
+ */
18
+ export declare function useSwipeBack(back: () => void, enabled?: boolean): void;
19
+ /**
20
+ * A page that follows a finger dragged in from its left edge, and goes back
21
+ * once the drag is let go past the point of committing.
22
+ *
23
+ * `swiped` tells the page's exit that it already left rightwards under the
24
+ * finger, so the turn carries it on rather than back across the screen.
25
+ */
26
+ export declare function SwipeBackSurface({ swiped, children, }: {
27
+ swiped: SharedValue<boolean>;
28
+ children: ReactNode;
29
+ }): import("react").JSX.Element;
30
+ //# sourceMappingURL=swipeBack.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"swipeBack.d.ts","sourceRoot":"","sources":["../../../src/flow/swipeBack.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,SAAS,EASf,MAAM,OAAO,CAAA;AAGd,OAAiB,EACf,KAAK,WAAW,EAKjB,MAAM,yBAAyB,CAAA;AAIhC,4EAA4E;AAC5E,eAAO,MAAM,eAAe,KAAK,CAAA;AAKjC,qEAAqE;AACrE,eAAO,MAAM,gBAAgB,MAAM,CAAA;AAEnC;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,MAAM,GACZ,OAAO,CAST;AAMD;;;GAGG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,IAAI,EAAE,OAAO,UAAO,QAa5D;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,MAAM,EACN,QAAQ,GACT,EAAE;IACD,MAAM,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;IAC5B,QAAQ,EAAE,SAAS,CAAA;CACpB,+BA+EA"}
@@ -1 +1 @@
1
- {"version":3,"file":"useDepositReceivedToast.d.ts","sourceRoot":"","sources":["../../../src/flow/useDepositReceivedToast.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAA4C,MAAM,OAAO,CAAA;AAKhF,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAU7D,0EAA0E;AAC1E,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;CACf;AAED,UAAU,oBAAoB;IAC5B,6EAA6E;IAC7E,YAAY,EAAE,SAAS,CAAA;IACvB,gBAAgB,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAA;IACnD,iBAAiB,EAAE,MAAM,IAAI,CAAA;CAC9B;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,IAAI,oBAAoB,CA6C9D"}
1
+ {"version":3,"file":"useDepositReceivedToast.d.ts","sourceRoot":"","sources":["../../../src/flow/useDepositReceivedToast.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAA4C,MAAM,OAAO,CAAA;AAMhF,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAU7D,0EAA0E;AAC1E,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;CACf;AAED,UAAU,oBAAoB;IAC5B,6EAA6E;IAC7E,YAAY,EAAE,SAAS,CAAA;IACvB,gBAAgB,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAA;IACnD,iBAAiB,EAAE,MAAM,IAAI,CAAA;CAC9B;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,IAAI,oBAAoB,CAiD9D"}
@@ -0,0 +1,47 @@
1
+ import { type RefObject } from 'react';
2
+ export interface FlowTransitionOptions {
3
+ /** Run the sheet's own motion. `false` lands on the end state at once. */
4
+ animated?: boolean;
5
+ }
6
+ /**
7
+ * Host control over the open flow. Each call resolves once its transition has
8
+ * finished: `true` when it happened, `false` when there was nothing to do or
9
+ * the flow refused it.
10
+ */
11
+ export interface FlowTransitions {
12
+ /**
13
+ * Ends the session and fires `onClose`. Refused while a step holds the
14
+ * sheet's dismissal (see `useLockFlowDismiss`).
15
+ */
16
+ close: (options?: FlowTransitionOptions) => Promise<boolean>;
17
+ /**
18
+ * Takes the sheet off screen and keeps the session mounted, so what the user
19
+ * entered survives. `onClose` does not fire.
20
+ */
21
+ hide: (options?: FlowTransitionOptions) => Promise<boolean>;
22
+ /** Brings a hidden session back. */
23
+ resume: (options?: FlowTransitionOptions) => Promise<boolean>;
24
+ isHidden: boolean;
25
+ }
26
+ /** The one call `FlowSheet` takes from outside its own open state. */
27
+ export interface FlowSheetControl {
28
+ dismiss: (animated: boolean) => void;
29
+ }
30
+ /**
31
+ * Hidden is kept per session, so a `begin*` over a hidden session opens the new
32
+ * one visible and the hidden one is simply gone.
33
+ */
34
+ export declare function useFlowTransitions({ isOpen, session, dismissLocked, closeFlow, sheet, }: {
35
+ isOpen: boolean;
36
+ session: number;
37
+ dismissLocked: boolean;
38
+ closeFlow: () => void;
39
+ sheet: RefObject<FlowSheetControl | null>;
40
+ }): {
41
+ transitions: FlowTransitions;
42
+ isHidden: boolean;
43
+ animated: boolean;
44
+ onSheetIndexChange: (index: number) => void;
45
+ onFlowClosed: () => void;
46
+ };
47
+ //# sourceMappingURL=useFlowTransitions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useFlowTransitions.d.ts","sourceRoot":"","sources":["../../../src/flow/useFlowTransitions.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,SAAS,EAMf,MAAM,OAAO,CAAA;AAId,MAAM,WAAW,qBAAqB;IACpC,0EAA0E;IAC1E,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,KAAK,EAAE,CAAC,OAAO,CAAC,EAAE,qBAAqB,KAAK,OAAO,CAAC,OAAO,CAAC,CAAA;IAC5D;;;OAGG;IACH,IAAI,EAAE,CAAC,OAAO,CAAC,EAAE,qBAAqB,KAAK,OAAO,CAAC,OAAO,CAAC,CAAA;IAC3D,oCAAoC;IACpC,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,qBAAqB,KAAK,OAAO,CAAC,OAAO,CAAC,CAAA;IAC7D,QAAQ,EAAE,OAAO,CAAA;CAClB;AAED,sEAAsE;AACtE,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAA;CACrC;AAID;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,MAAM,EACN,OAAO,EACP,aAAa,EACb,SAAS,EACT,KAAK,GACN,EAAE;IACD,MAAM,EAAE,OAAO,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,aAAa,EAAE,OAAO,CAAA;IACtB,SAAS,EAAE,MAAM,IAAI,CAAA;IACrB,KAAK,EAAE,SAAS,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAA;CAC1C;;;;gCAiGW,MAAM;;EA6BjB"}
@@ -9,8 +9,8 @@ import { Animated } from 'react-native';
9
9
  * under `enableDynamicSizing`, where the max snap point is already the content
10
10
  * height — a no-op, verified on device even with a `BottomSheetTextInput`.
11
11
  *
12
- * iOS emits the `Will` events (ahead of the keyboard animation, so the sheet
13
- * lifts in sync); Android only reliably emits the `Did` events.
12
+ * iOS is read from `keyboardWillChangeFrame` (ahead of the keyboard animation,
13
+ * so the sheet lifts in sync); Android only reliably emits the `Did` events.
14
14
  */
15
15
  export declare function useKeyboardHeight(enabled: boolean): number;
16
16
  export interface KeyboardFollow {
@@ -1 +1 @@
1
- {"version":3,"file":"useKeyboardHeight.d.ts","sourceRoot":"","sources":["../../../src/flow/useKeyboardHeight.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAA8B,MAAM,cAAc,CAAA;AAEnE;;;;;;;;;;;;GAYG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAE1D;AAED,MAAM,WAAW,cAAc;IAC7B,mEAAmE;IACnE,MAAM,EAAE,MAAM,CAAA;IACd;;;;;OAKG;IACH,QAAQ,EAAE,QAAQ,CAAC,KAAK,CAAA;CACzB;AAOD;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,GAAG,cAAc,CAwClE"}
1
+ {"version":3,"file":"useKeyboardHeight.d.ts","sourceRoot":"","sources":["../../../src/flow/useKeyboardHeight.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EAOT,MAAM,cAAc,CAAA;AAErB;;;;;;;;;;;;GAYG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAE1D;AAED,MAAM,WAAW,cAAc;IAC7B,mEAAmE;IACnE,MAAM,EAAE,MAAM,CAAA;IACd;;;;;OAKG;IACH,QAAQ,EAAE,QAAQ,CAAC,KAAK,CAAA;CACzB;AAOD;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,GAAG,cAAc,CAoElE"}
@@ -0,0 +1,2 @@
1
+ export declare function isV2DepositCustomer(apiKey: string): boolean;
2
+ //# sourceMappingURL=v2DepositCustomers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v2DepositCustomers.d.ts","sourceRoot":"","sources":["../../../src/flow/v2DepositCustomers.ts"],"names":[],"mappings":"AASA,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAE3D"}
@@ -68,6 +68,11 @@ export interface WithdrawalFlowConfig {
68
68
  * source — `sourceToken` is then the only option and no picker is shown.
69
69
  */
70
70
  sourceTokens?: WithdrawalSourceTokenOption[];
71
+ /**
72
+ * Currency for fiat entry on the crypto amount screen. Defaults to USD.
73
+ * Users can switch between this currency and source-token units.
74
+ */
75
+ displayCurrency?: 'USD' | 'EUR';
71
76
  /**
72
77
  * Crypto rail: spendable balance of a source token, in that token's units.
73
78
  * The integrator is authoritative — it knows about locks, pending orders and
@@ -84,13 +89,21 @@ export interface WithdrawalFlowConfig {
84
89
  * not base units. Takes priority over {@link getMinWithdrawalUSD}.
85
90
  */
86
91
  getMinWithdrawalAmount?: (params: WithdrawalSourceTokenParams) => number;
87
- /** Crypto rail: maximum withdrawal in USD. Unlimited when omitted. */
88
- getMaxWithdrawalUSD?: (params: WithdrawalSourceTokenParams) => number;
89
92
  /**
90
- * Ceiling in source-token units. Takes priority over `getMaxWithdrawalUSD`,
91
- * which needs a resolvable spot price and so goes unenforced for a source the
92
- * price API doesn't know (an L2 balance addressed by index, say).
93
+ * Fiat-denominated maximum for the selected source token. Takes priority over
94
+ * {@link getMaxWithdrawalUSD}. Return undefined to use the legacy USD maximum
95
+ * for this source, or no monetary maximum if that callback is also absent.
93
96
  */
97
+ getMaxWithdrawalFiat?: (params: WithdrawalSourceTokenParams) => {
98
+ amount: number;
99
+ currency: string;
100
+ } | undefined;
101
+ /**
102
+ * Crypto rail: maximum withdrawal in USD. Used unless
103
+ * {@link getMaxWithdrawalFiat} is configured; unlimited when omitted.
104
+ */
105
+ getMaxWithdrawalUSD?: (params: WithdrawalSourceTokenParams) => number;
106
+ /** Maximum in source-token units. Takes priority over fiat and USD maximums. */
94
107
  getMaxWithdrawalAmount?: (params: WithdrawalSourceTokenParams) => number;
95
108
  /** Crypto rail: token symbol to preselect as the destination. */
96
109
  defaultReceiveToken?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"withdrawalFlowConfig.d.ts","sourceRoot":"","sources":["../../../src/flow/withdrawalFlowConfig.ts"],"names":[],"mappings":"AAAA,OAAO,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,oBAAoB,KAAK,IAAI,CAAA;IACzD;;;;;;;OAOG;IACH,qBAAqB,CAAC,EAAE,CACtB,OAAO,EAAE,MAAM,EACf,oBAAoB,EAAE,MAAM,KACzB,IAAI,CAAA;IACT;;;OAGG;IACH,mBAAmB,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,OAAO,KAAK,IAAI,CAAA;IAC9C,wEAAwE;IACxE,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAA;CACzD"}
@@ -1,9 +1,16 @@
1
+ /** How far short of its parent's head a drawer opened from another drawer stops, so both heads stay in view. */
2
+ export declare const NESTED_DRAWER_INSET = 48;
3
+ /** The height of the drawer the subtree is drawn in; `undefined` outside one. */
4
+ export declare const DrawerFrame: import("react").Context<number | undefined>;
1
5
  /**
2
- * Fills a nested sheet — the same `insets.top` its `BottomSheetModal` is capped
3
- * by, so the screen and the sheet can't drift apart. A `FlowSheet` step waives
4
- * that cap (`topInset={0}`) and takes the whole window instead.
6
+ * Fills a nested sheet: the drawer's own height, which is also the cap its
7
+ * `BottomSheetModal` takes, so the screen and the sheet can't drift apart. A
8
+ * `FlowSheet` step waives that cap (`topInset={0}`) and takes the whole window
9
+ * instead.
5
10
  */
6
11
  export declare function useNestedSheetHeight(): number;
12
+ /** What a full drawer opened from here stands at: the window below the status bar, or its parent drawer less the inset. */
13
+ export declare function useDrawerHeight(): number;
7
14
  /**
8
15
  * Fills a `FlowSheet` step, which waives that cap (`topInset={0}`) and spans
9
16
  * the whole window — so the step owes the inset its sheet no longer pays.
@@ -1 +1 @@
1
- {"version":3,"file":"useNestedSheetHeight.d.ts","sourceRoot":"","sources":["../../../src/hooks/useNestedSheetHeight.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,wBAAgB,oBAAoB,WAInC;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB;;;EAI/B"}
1
+ {"version":3,"file":"useNestedSheetHeight.d.ts","sourceRoot":"","sources":["../../../src/hooks/useNestedSheetHeight.ts"],"names":[],"mappings":"AAIA,gHAAgH;AAChH,eAAO,MAAM,mBAAmB,KAAK,CAAA;AAErC,iFAAiF;AACjF,eAAO,MAAM,WAAW,6CAA+C,CAAA;AAQvE;;;;;GAKG;AACH,wBAAgB,oBAAoB,WAInC;AAED,2HAA2H;AAC3H,wBAAgB,eAAe,WAI9B;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB;;;EAI/B"}
@@ -1,9 +1,5 @@
1
- /**
2
- * A row or a disclosure gives a little; the action a deposit turns on gives
3
- * more, because it is the one press a buyer needs to feel they have made.
4
- */
5
- export declare const ACTION_PRESSED_SCALE = 0.95;
6
- export declare const ACTION_PRESSED_DIM = 0.85;
1
+ export declare const ACTION_PRESSED_SCALE = 0.96;
2
+ export declare const ACTION_PRESSED_DIM = 0.92;
7
3
  export interface PressScaleOptions {
8
4
  /** Scale at the bottom of the press. */
9
5
  scale?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"usePressScale.d.ts","sourceRoot":"","sources":["../../../src/hooks/usePressScale.ts"],"names":[],"mappings":"AAgBA;;;GAGG;AACH,eAAO,MAAM,oBAAoB,OAAO,CAAA;AACxC,eAAO,MAAM,kBAAkB,OAAO,CAAA;AAEtC,MAAM,WAAW,iBAAiB;IAChC,wCAAwC;IACxC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,iFAAiF;IACjF,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,+EAA+E;IAC/E,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,aAAa,CAAC,EAC5B,KAAqB,EACrB,GAAO,EACP,OAAe,GAChB,GAAE,iBAAsB;;;;;;;;;EA6BxB"}
1
+ {"version":3,"file":"usePressScale.d.ts","sourceRoot":"","sources":["../../../src/hooks/usePressScale.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,oBAAoB,OAAO,CAAA;AACxC,eAAO,MAAM,kBAAkB,OAAO,CAAA;AAEtC,MAAM,WAAW,iBAAiB;IAChC,wCAAwC;IACxC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,iFAAiF;IACjF,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,+EAA+E;IAC/E,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,aAAa,CAAC,EAC5B,KAAqB,EACrB,GAAiB,EACjB,OAAe,GAChB,GAAE,iBAAsB;;;;;;;;;EA+BxB"}
@@ -1 +1 @@
1
- {"version":3,"file":"useSheetFade.d.ts","sourceRoot":"","sources":["../../../src/hooks/useSheetFade.ts"],"names":[],"mappings":"AAYA;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,OAAO,UAAO;;GAW1C"}
1
+ {"version":3,"file":"useSheetFade.d.ts","sourceRoot":"","sources":["../../../src/hooks/useSheetFade.ts"],"names":[],"mappings":"AAYA;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,OAAO,UAAO;;GAqB1C"}
@@ -1 +1 @@
1
- {"version":3,"file":"assetLogos.d.ts","sourceRoot":"","sources":["../../../src/icons/assetLogos.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA8FlD,CAAA;AAED,4DAA4D;AAC5D,eAAO,MAAM,mBAAmB,qDACoB,CAAA;AAEpD;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEtD"}
1
+ {"version":3,"file":"assetLogos.d.ts","sourceRoot":"","sources":["../../../src/icons/assetLogos.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA+FlD,CAAA;AAED,4DAA4D;AAC5D,eAAO,MAAM,mBAAmB,qDACoB,CAAA;AAEpD;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEtD"}
@@ -6,6 +6,7 @@ export interface GlassViewProps extends ViewProps {
6
6
  tintColor?: ColorValue;
7
7
  isInteractive?: boolean;
8
8
  colorScheme?: 'auto' | 'light' | 'dark';
9
+ borderRadius?: number;
9
10
  /**
10
11
  * Corners follow the enclosing container — the screen, for a full-bleed view
11
12
  * (iOS 26 `containerConcentric`). Overrides the fixed radius props.
@@ -1 +1 @@
1
- {"version":3,"file":"glassEffect.d.ts","sourceRoot":"","sources":["../../../src/native/glassEffect.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAIzD,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAA;AAErD,MAAM,WAAW,cAAe,SAAQ,SAAS;IAC/C,gBAAgB,CAAC,EAAE,UAAU,CAAA;IAC7B,SAAS,CAAC,EAAE,UAAU,CAAA;IACtB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAA;IACvC;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,uBAAuB,CAAC,EAAE,MAAM,CAAA;CACjC;AAWD,eAAO,MAAM,sBAAsB,SAEW,CAAA;AAE9C,eAAO,MAAM,SAAS,EAAE,aAAa,CAAC,cAAc,CAAC,GAAG,IAG9C,CAAA"}
1
+ {"version":3,"file":"glassEffect.d.ts","sourceRoot":"","sources":["../../../src/native/glassEffect.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAIzD,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAA;AAErD,MAAM,WAAW,cAAe,SAAQ,SAAS;IAC/C,gBAAgB,CAAC,EAAE,UAAU,CAAA;IAC7B,SAAS,CAAC,EAAE,UAAU,CAAA;IACtB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAA;IACvC,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,uBAAuB,CAAC,EAAE,MAAM,CAAA;CACjC;AAWD,eAAO,MAAM,sBAAsB,SAEW,CAAA;AAE9C,eAAO,MAAM,SAAS,EAAE,aAAa,CAAC,cAAc,CAAC,GAAG,IAG9C,CAAA"}
@@ -0,0 +1,45 @@
1
+ import type { FormDescriptor, Quote } from '@funkit/connect-core';
2
+ /** Every field the L1 frames draw, and nothing else. */
3
+ export declare const US_ROUND: FormDescriptor;
4
+ export declare const LAST_FOUR_FORM: FormDescriptor;
5
+ export declare const COUNTRY_FORM: FormDescriptor;
6
+ /** An address round as MoonPay words it, whose labels follow the country. */
7
+ export declare const ADDRESS_ROUND: FormDescriptor;
8
+ /** The round MoonPay closes with: one COUNTRY-typed field, asked alone. */
9
+ export declare const NATIONALITY_FORM: FormDescriptor;
10
+ /** A COUNTRY field no frame drew, so the catch-all page has to name it. */
11
+ export declare const DETAILS_COUNTRY_FORM: FormDescriptor;
12
+ export declare const OCCUPATION_FORM: FormDescriptor;
13
+ export declare const PURPOSE_FORM: FormDescriptor;
14
+ /**
15
+ * MoonPay's customer due diligence round: the tax fields, the phone, and the
16
+ * declarations and figures its questionnaire asks for, all in one form.
17
+ */
18
+ export declare const DUE_DILIGENCE_FORM: FormDescriptor;
19
+ /** The additional-information round the L2 faceplate introduces. */
20
+ export declare const L2_FORM: FormDescriptor;
21
+ /** A form the native renderer has no drawing for. */
22
+ export declare const UNSUPPORTED_FORM: FormDescriptor;
23
+ /**
24
+ * The quote the round carries, so the price stays on screen through
25
+ * verification. `$105` is the amount the frames are drawn with.
26
+ */
27
+ export declare const US_QUOTE: Quote;
28
+ export declare const VALID_VALUES: {
29
+ LEGAL_FIRST_NAME: string;
30
+ LEGAL_LAST_NAME: string;
31
+ DATE_OF_BIRTH: string;
32
+ RESIDENTIAL_ADDRESS_LINE_1: string;
33
+ RESIDENTIAL_ADDRESS_CITY: string;
34
+ RESIDENTIAL_ADDRESS_REGION: string;
35
+ RESIDENTIAL_ADDRESS_POSTAL_CODE: string;
36
+ TAX_IDENTIFIER: string;
37
+ };
38
+ /** The Brooklyn address the KYC R2 address frames are drawn with. */
39
+ export declare const FRAME_ADDRESS: {
40
+ RESIDENTIAL_ADDRESS_LINE_1: string;
41
+ RESIDENTIAL_ADDRESS_CITY: string;
42
+ RESIDENTIAL_ADDRESS_REGION: string;
43
+ RESIDENTIAL_ADDRESS_POSTAL_CODE: string;
44
+ };
45
+ //# sourceMappingURL=kycForms.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kycForms.d.ts","sourceRoot":"","sources":["../../../../src/preview/fixtures/kycForms.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAa,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAmB5E,wDAAwD;AACxD,eAAO,MAAM,QAAQ,EAAE,cA4BtB,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,cAW5B,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,cAU1B,CAAA;AAED,6EAA6E;AAC7E,eAAO,MAAM,aAAa,EAAE,cAS3B,CAAA;AAED,2EAA2E;AAC3E,eAAO,MAAM,gBAAgB,EAAE,cAU9B,CAAA;AAED,2EAA2E;AAC3E,eAAO,MAAM,oBAAoB,EAAE,cAUlC,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,cAwB7B,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,cAc1B,CAAA;AA+BD;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAE,cA2ChC,CAAA;AAED,oEAAoE;AACpE,eAAO,MAAM,OAAO,EAAE,cAYrB,CAAA;AAED,qDAAqD;AACrD,eAAO,MAAM,gBAAgB,EAAE,cAU9B,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,QAAQ,EAAE,KAStB,CAAA;AAED,eAAO,MAAM,YAAY;;;;;;;;;CASxB,CAAA;AAED,qEAAqE;AACrE,eAAO,MAAM,aAAa;;;;;CAKzB,CAAA"}
@@ -0,0 +1,142 @@
1
+ import type { FiatStepResponse } from '@funkit/connect-core';
2
+ import { type Dispatch, type ReactNode, type SetStateAction } from 'react';
3
+ import type { KycCompletion } from '../fiat/useKycCompletion';
4
+ import type { KycSection } from '../fiat/formLayout';
5
+ import type { FlowScreen } from '../flow/FunkitFlowProvider';
6
+ /**
7
+ * Where the fiat session opens. Each field seeds one piece of state a user would otherwise reach
8
+ * by tapping through, so any screen of the rail is one seed away.
9
+ */
10
+ export interface FiatPreviewSeed {
11
+ /** The step response the session opens on, as if the backend had just sent it. */
12
+ step?: FiatStepResponse;
13
+ /** The amount entry's value. */
14
+ amount?: string;
15
+ /** Presses the entry CTA once it is ready: opens the contact round, or the KYC options card. */
16
+ pressEntry?: boolean;
17
+ /** An identity round's consent intro, or its form open at a section. */
18
+ identity?: {
19
+ page: 'consent';
20
+ } | {
21
+ page: 'form';
22
+ section?: KycSection;
23
+ };
24
+ /** Past the document-capture intro, onto the provider's own surface. */
25
+ documentStarted?: boolean;
26
+ /** The acknowledgement a finished identity form shows before its verdict. */
27
+ kycCompletion?: KycCompletion;
28
+ /** A provider surface that failed, as the adapter reports it. */
29
+ surfaceFailure?: {
30
+ code: string;
31
+ detail?: string;
32
+ };
33
+ /** Submits the seeded step's CTA with this id on open — how a failed send is reached. */
34
+ submitOnOpen?: string;
35
+ }
36
+ export interface DepositPreviewSeed {
37
+ /** The screen the flow opens on; defaults to the root `beginDeposit` picks. Transfer opens above it. */
38
+ screen?: Extract<FlowScreen, 'depositAmount' | 'addMoney' | 'transfer'>;
39
+ fiat?: FiatPreviewSeed;
40
+ /** The deposit chain, by id, as if picked from the Crypto row — Transfer needs one. */
41
+ chainId?: string;
42
+ }
43
+ type WithdrawalStackScreen = Extract<FlowScreen, 'withdrawMethod' | 'withdrawAmount' | 'withdrawAddress' | 'withdrawReceiveToken'>;
44
+ /** The submitted withdrawal the completion screen reports on. */
45
+ export interface WithdrawalPreviewCompletion {
46
+ txHash: `0x${string}`;
47
+ amountLabel: string;
48
+ usdLabel?: string;
49
+ tokenLabel?: string;
50
+ }
51
+ interface WithdrawalPreviewFields {
52
+ /** The payout method picked on the list, by `WithdrawalMethodOption.id`. */
53
+ methodId?: string;
54
+ amount?: string;
55
+ recipient?: string;
56
+ /** The retryable error that replaces every screen after a failed execution. */
57
+ executionError?: boolean;
58
+ }
59
+ /**
60
+ * The withdrawal flow's opening state. The type rules out the stacks that render nothing: an
61
+ * empty one, and a completion screen with no withdrawal to report.
62
+ */
63
+ export type WithdrawalPreviewSeed = WithdrawalPreviewFields & ({
64
+ /** The screens on the stack, root first; defaults to the payout-method list. */
65
+ stack?: [WithdrawalStackScreen, ...WithdrawalStackScreen[]];
66
+ complete?: undefined;
67
+ } | {
68
+ stack: ['withdrawComplete'];
69
+ complete: WithdrawalPreviewCompletion;
70
+ });
71
+ /**
72
+ * A state to open the SDK's flow at, for hosted previews and QA builds.
73
+ * - Consumed by the next matching `begin*` only; closing and reopening starts clean.
74
+ * - Never set in production: every read falls back to the flow's own start.
75
+ */
76
+ export interface FlowPreviewSeed {
77
+ deposit?: DepositPreviewSeed;
78
+ withdrawal?: WithdrawalPreviewSeed;
79
+ }
80
+ /**
81
+ * Opens the next `beginDeposit` / `beginWithdrawal` below it at `seed`.
82
+ * - Mount it above `<FunkitProvider>`.
83
+ * - Memoize `seed`: a new object is a new preview, so one built inline reopens every flow seeded.
84
+ */
85
+ export declare function FunkitFlowPreview({ seed, children, }: {
86
+ seed: FlowPreviewSeed | undefined;
87
+ children: ReactNode;
88
+ }): import("react").JSX.Element;
89
+ /** The seed a host mounted; read by the flow provider when a flow opens. */
90
+ export declare function useHostFlowPreview(): FlowPreviewSeed | undefined;
91
+ /** The seeds of the flow session a host preview opened; empty everywhere else. */
92
+ export interface ActivePreview {
93
+ deposit?: DepositPreviewSeed;
94
+ withdrawal?: WithdrawalPreviewSeed;
95
+ }
96
+ /** Scopes a consumed seed to the one flow session it opened. */
97
+ export declare function ActiveFlowPreview({ deposit, withdrawal, children, }: {
98
+ deposit?: DepositPreviewSeed;
99
+ withdrawal?: WithdrawalPreviewSeed;
100
+ children: ReactNode;
101
+ }): import("react").JSX.Element;
102
+ /** Reads one seed value out of the session's preview. */
103
+ export type PreviewPick<T> = (preview: ActivePreview) => T | undefined;
104
+ /**
105
+ * Every seed value a flow reads, one reader each. Readers are tracked by identity, so each is
106
+ * declared once here rather than inline where it is read.
107
+ */
108
+ export declare const SEED: {
109
+ fiatAmount: (p: ActivePreview) => string | undefined;
110
+ fiatStep: (p: ActivePreview) => FiatStepResponse | undefined;
111
+ fiatPressEntry: (p: ActivePreview) => boolean | undefined;
112
+ fiatSubmitOnOpen: (p: ActivePreview) => string | undefined;
113
+ fiatSurfaceFailure: (p: ActivePreview) => {
114
+ code: string;
115
+ detail?: string;
116
+ } | undefined;
117
+ kycCompletion: (p: ActivePreview) => "restricted" | "review" | "hold" | undefined;
118
+ identityPage: (p: ActivePreview) => "form" | "consent" | undefined;
119
+ identitySection: (p: ActivePreview) => KycSection | undefined;
120
+ documentStarted: (p: ActivePreview) => boolean | undefined;
121
+ depositChainId: (p: ActivePreview) => string | undefined;
122
+ withdrawalMethodId: (p: ActivePreview) => string | undefined;
123
+ withdrawalAmount: (p: ActivePreview) => string | undefined;
124
+ withdrawalRecipient: (p: ActivePreview) => string | undefined;
125
+ withdrawalComplete: (p: ActivePreview) => WithdrawalPreviewCompletion | undefined;
126
+ withdrawalExecutionError: (p: ActivePreview) => boolean | undefined;
127
+ };
128
+ /**
129
+ * The seed value for the first mount that reads it; `undefined` for every mount after.
130
+ * - A later mount of the same reader is the user moving on (a new round, a return to the entry),
131
+ * so a seed never re-applies after the state it describes.
132
+ * - Marked read on commit, so Strict Mode's double render still sees it.
133
+ */
134
+ export declare function useSeed<T>(pick: PreviewPick<T>): T | undefined;
135
+ /**
136
+ * `useState` whose initial value a host preview may seed; production always starts at `initial`.
137
+ * `fromSeed` shapes a seed value into the state when the two differ.
138
+ */
139
+ export declare function useSeededState<T>(pick: PreviewPick<T>, initial: T): [T, Dispatch<SetStateAction<T>>];
140
+ export declare function useSeededState<S, T>(pick: PreviewPick<S>, initial: T, fromSeed: (seed: S) => T): [T, Dispatch<SetStateAction<T>>];
141
+ export {};
142
+ //# sourceMappingURL=flowPreview.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flowPreview.d.ts","sourceRoot":"","sources":["../../../src/preview/flowPreview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAC5D,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,SAAS,EACd,KAAK,cAAc,EAMpB,MAAM,OAAO,CAAA;AAEd,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAA;AAC7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AAE5D;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B,kFAAkF;IAClF,IAAI,CAAC,EAAE,gBAAgB,CAAA;IACvB,gCAAgC;IAChC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,gGAAgG;IAChG,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,wEAAwE;IACxE,QAAQ,CAAC,EAAE;QAAE,IAAI,EAAE,SAAS,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,UAAU,CAAA;KAAE,CAAA;IACvE,wEAAwE;IACxE,eAAe,C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AAC,CAAC,CAAC,CAAA;AACnC,wBAAgB,cAAc,CAAC,CAAC,EAAE,CAAC,EACjC,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,EACpB,OAAO,EAAE,CAAC,EACV,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,GACvB,CAAC,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA"}
@@ -0,0 +1,10 @@
1
+ import { type PreviewScenario } from './scenarios';
2
+ type Fetch = typeof fetch;
3
+ /**
4
+ * A `fetch` that answers the fiat backend from a scenario and passes every other request through.
5
+ * - The session stays on whatever step it was last sent: polls and unlisted CTAs re-send it.
6
+ * - Install it as `globalThis.fetch` before the flow opens; `@funkit/api-base` reads it per call.
7
+ */
8
+ export declare function createPreviewFetch(scenario: PreviewScenario, passThrough: Fetch): Fetch;
9
+ export {};
10
+ //# sourceMappingURL=previewFetch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"previewFetch.d.ts","sourceRoot":"","sources":["../../../src/preview/previewFetch.ts"],"names":[],"mappings":"AAIA,OAAO,EAIL,KAAK,eAAe,EACrB,MAAM,aAAa,CAAA;AAEpB,KAAK,KAAK,GAAG,OAAO,KAAK,CAAA;AA0EzB;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,eAAe,EACzB,WAAW,EAAE,KAAK,GACjB,KAAK,CA2DP"}