@funkit/connect-rn 9.0.1 → 9.1.1

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 (339) hide show
  1. package/CHANGELOG.md +154 -0
  2. package/README.md +101 -1
  3. package/app.plugin.js +92 -0
  4. package/dist/{chunk-GCPIOARQ.js → chunk-5Y2EMQYX.js} +6 -2
  5. package/dist/chunk-5Y2EMQYX.js.map +7 -0
  6. package/dist/{chunk-ZBWCG4O6.js → chunk-OBY3O4LU.js} +60 -6
  7. package/dist/chunk-OBY3O4LU.js.map +7 -0
  8. package/dist/{chunk-MMXSERQM.js → chunk-RPYWTS42.js} +441 -481
  9. package/dist/chunk-RPYWTS42.js.map +7 -0
  10. package/dist/clients/lighter.js +1 -1
  11. package/dist/clients/nado.js +2 -2
  12. package/dist/index.d.ts +1 -1
  13. package/dist/index.d.ts.map +1 -1
  14. package/dist/index.js +7713 -4510
  15. package/dist/index.js.map +4 -4
  16. package/dist/preview.js +595 -15
  17. package/dist/preview.js.map +3 -3
  18. package/dist/src/components/v2/PaymentMethodPicker.d.ts +10 -1
  19. package/dist/src/components/v2/PaymentMethodPicker.d.ts.map +1 -1
  20. package/dist/src/components/v2/QuickAmountsRow.d.ts +3 -1
  21. package/dist/src/components/v2/QuickAmountsRow.d.ts.map +1 -1
  22. package/dist/src/components/v2/methodMerge.d.ts +40 -0
  23. package/dist/src/components/v2/methodMerge.d.ts.map +1 -0
  24. package/dist/src/fiat/FiatContactScreen.d.ts.map +1 -1
  25. package/dist/src/fiat/FiatDocumentCaptureStep.d.ts +2 -1
  26. package/dist/src/fiat/FiatDocumentCaptureStep.d.ts.map +1 -1
  27. package/dist/src/fiat/FiatErrorScreen.d.ts +16 -0
  28. package/dist/src/fiat/FiatErrorScreen.d.ts.map +1 -0
  29. package/dist/src/fiat/FiatFormFieldRow.d.ts +6 -3
  30. package/dist/src/fiat/FiatFormFieldRow.d.ts.map +1 -1
  31. package/dist/src/fiat/FiatFormScreen.d.ts +4 -5
  32. package/dist/src/fiat/FiatFormScreen.d.ts.map +1 -1
  33. package/dist/src/fiat/FiatIdentityStep.d.ts +7 -2
  34. package/dist/src/fiat/FiatIdentityStep.d.ts.map +1 -1
  35. package/dist/src/fiat/FiatKycIntroLayout.d.ts +34 -0
  36. package/dist/src/fiat/FiatKycIntroLayout.d.ts.map +1 -0
  37. package/dist/src/fiat/FiatKycIntroScreen.d.ts +2 -0
  38. package/dist/src/fiat/FiatKycIntroScreen.d.ts.map +1 -1
  39. package/dist/src/fiat/FiatKycOptionRow.d.ts.map +1 -1
  40. package/dist/src/fiat/FiatKycOptionsScreen.d.ts +3 -8
  41. package/dist/src/fiat/FiatKycOptionsScreen.d.ts.map +1 -1
  42. package/dist/src/fiat/FiatKycOutcomeScreen.d.ts.map +1 -1
  43. package/dist/src/fiat/FiatKycPhoneField.d.ts +2 -1
  44. package/dist/src/fiat/FiatKycPhoneField.d.ts.map +1 -1
  45. package/dist/src/fiat/FiatOptionsScreen.d.ts +21 -0
  46. package/dist/src/fiat/FiatOptionsScreen.d.ts.map +1 -0
  47. package/dist/src/fiat/FiatOtpScreen.d.ts +1 -1
  48. package/dist/src/fiat/FiatOtpScreen.d.ts.map +1 -1
  49. package/dist/src/fiat/FiatPaymentFailedSheet.d.ts +26 -0
  50. package/dist/src/fiat/FiatPaymentFailedSheet.d.ts.map +1 -0
  51. package/dist/src/fiat/FiatPhoneField.d.ts.map +1 -1
  52. package/dist/src/fiat/FiatReceipt.d.ts +6 -3
  53. package/dist/src/fiat/FiatReceipt.d.ts.map +1 -1
  54. package/dist/src/fiat/FiatRegionUnsupportedScreen.d.ts +3 -1
  55. package/dist/src/fiat/FiatRegionUnsupportedScreen.d.ts.map +1 -1
  56. package/dist/src/fiat/FiatSharingConsentNotice.d.ts +3 -0
  57. package/dist/src/fiat/FiatSharingConsentNotice.d.ts.map +1 -0
  58. package/dist/src/fiat/FiatStepFailedScreen.d.ts +17 -0
  59. package/dist/src/fiat/FiatStepFailedScreen.d.ts.map +1 -0
  60. package/dist/src/fiat/FiatTermsNotice.d.ts +6 -0
  61. package/dist/src/fiat/FiatTermsNotice.d.ts.map +1 -1
  62. package/dist/src/fiat/FiatUnavailableScreen.d.ts +14 -0
  63. package/dist/src/fiat/FiatUnavailableScreen.d.ts.map +1 -0
  64. package/dist/src/fiat/PaymentDisclosureNotice.d.ts +6 -0
  65. package/dist/src/fiat/PaymentDisclosureNotice.d.ts.map +1 -0
  66. package/dist/src/fiat/closeFailure.d.ts +1 -1
  67. package/dist/src/fiat/closeFailure.d.ts.map +1 -1
  68. package/dist/src/fiat/ctaLabel.d.ts +2 -0
  69. package/dist/src/fiat/ctaLabel.d.ts.map +1 -1
  70. package/dist/src/fiat/depositMatch.d.ts +17 -0
  71. package/dist/src/fiat/depositMatch.d.ts.map +1 -0
  72. package/dist/src/fiat/depositOutcome.d.ts +6 -0
  73. package/dist/src/fiat/depositOutcome.d.ts.map +1 -1
  74. package/dist/src/fiat/disclosureFooter.d.ts +21 -0
  75. package/dist/src/fiat/disclosureFooter.d.ts.map +1 -0
  76. package/dist/src/fiat/disclosureFooterContent.d.ts +28 -0
  77. package/dist/src/fiat/disclosureFooterContent.d.ts.map +1 -0
  78. package/dist/src/fiat/formLayout.d.ts +18 -5
  79. package/dist/src/fiat/formLayout.d.ts.map +1 -1
  80. package/dist/src/fiat/formScreenProps.d.ts.map +1 -1
  81. package/dist/src/fiat/kycFormState.d.ts +5 -3
  82. package/dist/src/fiat/kycFormState.d.ts.map +1 -1
  83. package/dist/src/fiat/kycOptionRows.d.ts +23 -0
  84. package/dist/src/fiat/kycOptionRows.d.ts.map +1 -0
  85. package/dist/src/fiat/kycWait.d.ts +20 -0
  86. package/dist/src/fiat/kycWait.d.ts.map +1 -0
  87. package/dist/src/fiat/legalLinks.d.ts +2 -0
  88. package/dist/src/fiat/legalLinks.d.ts.map +1 -1
  89. package/dist/src/fiat/paymentReroute.d.ts +22 -4
  90. package/dist/src/fiat/paymentReroute.d.ts.map +1 -1
  91. package/dist/src/fiat/paymentSurfaceFailure.d.ts +31 -37
  92. package/dist/src/fiat/paymentSurfaceFailure.d.ts.map +1 -1
  93. package/dist/src/fiat/providers/adapter.d.ts +28 -4
  94. package/dist/src/fiat/providers/adapter.d.ts.map +1 -1
  95. package/dist/src/fiat/providers/{banxaRedirect.d.ts → banxa/banxaRedirect.d.ts} +1 -1
  96. package/dist/src/fiat/providers/banxa/banxaRedirect.d.ts.map +1 -0
  97. package/dist/src/fiat/providers/{CoinbaseCheckoutSurface.d.ts → coinbase/CoinbaseCheckoutSurface.d.ts} +2 -3
  98. package/dist/src/fiat/providers/coinbase/CoinbaseCheckoutSurface.d.ts.map +1 -0
  99. package/dist/src/fiat/providers/coinbase/CoinbaseWarmup.d.ts +38 -0
  100. package/dist/src/fiat/providers/coinbase/CoinbaseWarmup.d.ts.map +1 -0
  101. package/dist/src/fiat/providers/{coinbaseApplePay.d.ts → coinbase/coinbaseApplePay.d.ts} +1 -1
  102. package/dist/src/fiat/providers/coinbase/coinbaseApplePay.d.ts.map +1 -0
  103. package/dist/src/fiat/providers/coinbase/coinbaseCardRefusal.d.ts +2 -0
  104. package/dist/src/fiat/providers/coinbase/coinbaseCardRefusal.d.ts.map +1 -0
  105. package/dist/src/fiat/providers/coinbase/coinbaseOnrampEvents.d.ts.map +1 -0
  106. package/dist/src/fiat/providers/coinbase/coinbasePreparedPayment.d.ts +18 -0
  107. package/dist/src/fiat/providers/coinbase/coinbasePreparedPayment.d.ts.map +1 -0
  108. package/dist/src/fiat/providers/coinbase/coinbaseWarmupStore.d.ts +40 -0
  109. package/dist/src/fiat/providers/coinbase/coinbaseWarmupStore.d.ts.map +1 -0
  110. package/dist/src/fiat/providers/coinbase/useCoinbaseWarmupGate.d.ts +4 -0
  111. package/dist/src/fiat/providers/coinbase/useCoinbaseWarmupGate.d.ts.map +1 -0
  112. package/dist/src/fiat/providers/kycIntro.d.ts +15 -0
  113. package/dist/src/fiat/providers/kycIntro.d.ts.map +1 -1
  114. package/dist/src/fiat/providers/{moonpay.d.ts → moonpay/moonpay.d.ts} +4 -2
  115. package/dist/src/fiat/providers/moonpay/moonpay.d.ts.map +1 -0
  116. package/dist/src/fiat/providers/moonpay/moonpayApplePayPainted.d.ts.map +1 -0
  117. package/dist/src/fiat/providers/{moonpayApplePayStyle.d.ts → moonpay/moonpayApplePayStyle.d.ts} +1 -1
  118. package/dist/src/fiat/providers/moonpay/moonpayApplePayStyle.d.ts.map +1 -0
  119. package/dist/src/fiat/providers/moonpay/moonpayAuthStyle.d.ts +58 -0
  120. package/dist/src/fiat/providers/moonpay/moonpayAuthStyle.d.ts.map +1 -0
  121. package/dist/src/fiat/providers/moonpay/moonpayCardRefusal.d.ts +7 -0
  122. package/dist/src/fiat/providers/moonpay/moonpayCardRefusal.d.ts.map +1 -0
  123. package/dist/src/fiat/providers/{moonpayFeeQuote.d.ts → moonpay/moonpayFeeQuote.d.ts} +1 -1
  124. package/dist/src/fiat/providers/moonpay/moonpayFeeQuote.d.ts.map +1 -0
  125. package/dist/src/fiat/providers/moonpay/moonpayHandoffCard.d.ts +11 -0
  126. package/dist/src/fiat/providers/moonpay/moonpayHandoffCard.d.ts.map +1 -0
  127. package/dist/src/fiat/providers/moonpay/moonpayPaymentDisclosures.d.ts +15 -0
  128. package/dist/src/fiat/providers/moonpay/moonpayPaymentDisclosures.d.ts.map +1 -0
  129. package/dist/src/fiat/providers/moonpay/moonpayPreparedPayment.d.ts +7 -0
  130. package/dist/src/fiat/providers/moonpay/moonpayPreparedPayment.d.ts.map +1 -0
  131. package/dist/src/fiat/providers/moonpay/moonpaySharingConsent.d.ts +14 -0
  132. package/dist/src/fiat/providers/moonpay/moonpaySharingConsent.d.ts.map +1 -0
  133. package/dist/src/fiat/providers/stripe/StripeSessionAuthScreen.d.ts.map +1 -0
  134. package/dist/src/fiat/providers/stripe/stripeAccountCreation.d.ts +22 -0
  135. package/dist/src/fiat/providers/stripe/stripeAccountCreation.d.ts.map +1 -0
  136. package/dist/src/fiat/providers/stripe/stripeApplePayButton.d.ts +15 -0
  137. package/dist/src/fiat/providers/stripe/stripeApplePayButton.d.ts.map +1 -0
  138. package/dist/src/fiat/providers/stripe/stripeApplePayReady.d.ts +9 -0
  139. package/dist/src/fiat/providers/stripe/stripeApplePayReady.d.ts.map +1 -0
  140. package/dist/src/fiat/providers/{stripeAuthorize.d.ts → stripe/stripeAuthorize.d.ts} +1 -1
  141. package/dist/src/fiat/providers/stripe/stripeAuthorize.d.ts.map +1 -0
  142. package/dist/src/fiat/providers/stripe/stripeCardRefusal.d.ts +2 -0
  143. package/dist/src/fiat/providers/stripe/stripeCardRefusal.d.ts.map +1 -0
  144. package/dist/src/fiat/providers/{stripeCheckout.d.ts → stripe/stripeCheckout.d.ts} +1 -1
  145. package/dist/src/fiat/providers/stripe/stripeCheckout.d.ts.map +1 -0
  146. package/dist/src/fiat/providers/stripe/stripeErrorDetail.d.ts +6 -0
  147. package/dist/src/fiat/providers/stripe/stripeErrorDetail.d.ts.map +1 -0
  148. package/dist/src/fiat/providers/{stripeKyc.d.ts → stripe/stripeKyc.d.ts} +1 -1
  149. package/dist/src/fiat/providers/stripe/stripeKyc.d.ts.map +1 -0
  150. package/dist/src/fiat/providers/stripe/stripeKycInfo.d.ts.map +1 -0
  151. package/dist/src/fiat/providers/stripe/stripeKycIntro.d.ts +32 -0
  152. package/dist/src/fiat/providers/stripe/stripeKycIntro.d.ts.map +1 -0
  153. package/dist/src/fiat/providers/{stripeOnramp.d.ts → stripe/stripeOnramp.d.ts} +14 -0
  154. package/dist/src/fiat/providers/stripe/stripeOnramp.d.ts.map +1 -0
  155. package/dist/src/fiat/providers/stripe/stripeOnrampBridge.d.ts.map +1 -0
  156. package/dist/src/fiat/providers/{stripePayment.d.ts → stripe/stripePayment.d.ts} +1 -3
  157. package/dist/src/fiat/providers/stripe/stripePayment.d.ts.map +1 -0
  158. package/dist/src/fiat/providers/{stripeRoundPush.d.ts → stripe/stripeRoundPush.d.ts} +10 -4
  159. package/dist/src/fiat/providers/stripe/stripeRoundPush.d.ts.map +1 -0
  160. package/dist/src/fiat/providers/{stripeSdk.d.ts → stripe/stripeSdk.d.ts} +1 -1
  161. package/dist/src/fiat/providers/stripe/stripeSdk.d.ts.map +1 -0
  162. package/dist/src/fiat/providers/stripe/stripeSeamlessSignIn.d.ts.map +1 -0
  163. package/dist/src/fiat/providers/stripe/stripeSessionAuth.d.ts.map +1 -0
  164. package/dist/src/fiat/providers/stripe/stripeSignInStep.d.ts +23 -0
  165. package/dist/src/fiat/providers/stripe/stripeSignInStep.d.ts.map +1 -0
  166. package/dist/src/fiat/providers/stripe/useCreateStripeAccountWithExistingUserData.d.ts +41 -0
  167. package/dist/src/fiat/providers/stripe/useCreateStripeAccountWithExistingUserData.d.ts.map +1 -0
  168. package/dist/src/fiat/providers/{useStripeOnrampClient.d.ts → stripe/useStripeOnrampClient.d.ts} +1 -1
  169. package/dist/src/fiat/providers/stripe/useStripeOnrampClient.d.ts.map +1 -0
  170. package/dist/src/fiat/providers/{useStripeSessionAuth.d.ts → stripe/useStripeSessionAuth.d.ts} +2 -8
  171. package/dist/src/fiat/providers/stripe/useStripeSessionAuth.d.ts.map +1 -0
  172. package/dist/src/fiat/providers/sumsub/SumsubKycSurface.d.ts.map +1 -0
  173. package/dist/src/fiat/providers/sumsub/SumsubNativeKycSurface.d.ts +23 -0
  174. package/dist/src/fiat/providers/sumsub/SumsubNativeKycSurface.d.ts.map +1 -0
  175. package/dist/src/fiat/providers/{sumsubKyc.d.ts → sumsub/sumsubKyc.d.ts} +7 -1
  176. package/dist/src/fiat/providers/sumsub/sumsubKyc.d.ts.map +1 -0
  177. package/dist/src/fiat/providers/sumsub/sumsubNativeLaunch.d.ts +34 -0
  178. package/dist/src/fiat/providers/sumsub/sumsubNativeLaunch.d.ts.map +1 -0
  179. package/dist/src/fiat/providers/sumsub/sumsubSdk.d.ts +58 -0
  180. package/dist/src/fiat/providers/sumsub/sumsubSdk.d.ts.map +1 -0
  181. package/dist/src/fiat/providers/sumsub/sumsubTheme.d.ts +51 -0
  182. package/dist/src/fiat/providers/sumsub/sumsubTheme.d.ts.map +1 -0
  183. package/dist/src/fiat/providers/transak/TransakApplePaySurface.d.ts.map +1 -0
  184. package/dist/src/fiat/providers/{transakApplePay.d.ts → transak/transakApplePay.d.ts} +1 -1
  185. package/dist/src/fiat/providers/transak/transakApplePay.d.ts.map +1 -0
  186. package/dist/src/fiat/quoteNoRoute.d.ts +10 -0
  187. package/dist/src/fiat/quoteNoRoute.d.ts.map +1 -1
  188. package/dist/src/fiat/refusedFields.d.ts +9 -0
  189. package/dist/src/fiat/refusedFields.d.ts.map +1 -0
  190. package/dist/src/fiat/renderCaptureSurface.d.ts +3 -1
  191. package/dist/src/fiat/renderCaptureSurface.d.ts.map +1 -1
  192. package/dist/src/fiat/sectionDetail.d.ts +3 -1
  193. package/dist/src/fiat/sectionDetail.d.ts.map +1 -1
  194. package/dist/src/fiat/shownFieldIssues.d.ts +3 -2
  195. package/dist/src/fiat/shownFieldIssues.d.ts.map +1 -1
  196. package/dist/src/fiat/stepDetails.d.ts +25 -4
  197. package/dist/src/fiat/stepDetails.d.ts.map +1 -1
  198. package/dist/src/fiat/useIdentityAssertion.d.ts.map +1 -1
  199. package/dist/src/fiat/useKycCaptureRound.d.ts.map +1 -1
  200. package/dist/src/fiat/useKycRoundReporting.d.ts +12 -0
  201. package/dist/src/fiat/useKycRoundReporting.d.ts.map +1 -0
  202. package/dist/src/fiat/usePaymentFailureAnswer.d.ts +71 -0
  203. package/dist/src/fiat/usePaymentFailureAnswer.d.ts.map +1 -0
  204. package/dist/src/fiat/useReceiptTitles.d.ts.map +1 -1
  205. package/dist/src/fiat/useResendCooldown.d.ts +25 -0
  206. package/dist/src/fiat/useResendCooldown.d.ts.map +1 -0
  207. package/dist/src/fiat/useSharingConsent.d.ts +15 -0
  208. package/dist/src/fiat/useSharingConsent.d.ts.map +1 -0
  209. package/dist/src/fiat/useStandingRefusals.d.ts +5 -0
  210. package/dist/src/fiat/useStandingRefusals.d.ts.map +1 -0
  211. package/dist/src/flow/DepositFlowContent.d.ts.map +1 -1
  212. package/dist/src/flow/DepositMatchSheet.d.ts +12 -0
  213. package/dist/src/flow/DepositMatchSheet.d.ts.map +1 -0
  214. package/dist/src/flow/DepositPreload.d.ts +13 -0
  215. package/dist/src/flow/DepositPreload.d.ts.map +1 -0
  216. package/dist/src/flow/Drawer.d.ts +7 -1
  217. package/dist/src/flow/Drawer.d.ts.map +1 -1
  218. package/dist/src/flow/FiatDepositAmountStep.d.ts +2 -5
  219. package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
  220. package/dist/src/flow/FunkitFlowProvider.d.ts +6 -2
  221. package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
  222. package/dist/src/flow/WithdrawalFlowContent.d.ts.map +1 -1
  223. package/dist/src/flow/depositFlowConfig.d.ts +11 -3
  224. package/dist/src/flow/depositFlowConfig.d.ts.map +1 -1
  225. package/dist/src/flow/depositMethods.d.ts +8 -0
  226. package/dist/src/flow/depositMethods.d.ts.map +1 -1
  227. package/dist/src/flow/overlayStep.d.ts +25 -0
  228. package/dist/src/flow/overlayStep.d.ts.map +1 -0
  229. package/dist/src/flow/pageTurn.d.ts +19 -2
  230. package/dist/src/flow/pageTurn.d.ts.map +1 -1
  231. package/dist/src/flow/quickAmounts.d.ts +8 -0
  232. package/dist/src/flow/quickAmounts.d.ts.map +1 -0
  233. package/dist/src/flow/storedChain.d.ts +14 -0
  234. package/dist/src/flow/storedChain.d.ts.map +1 -0
  235. package/dist/src/flow/useKeyboardHeight.d.ts.map +1 -1
  236. package/dist/src/flow/withdrawalFlowConfig.d.ts +3 -1
  237. package/dist/src/flow/withdrawalFlowConfig.d.ts.map +1 -1
  238. package/dist/src/flow/withdrawalMethods.d.ts +8 -0
  239. package/dist/src/flow/withdrawalMethods.d.ts.map +1 -0
  240. package/dist/src/geo/useUserIpInfo.d.ts +7 -0
  241. package/dist/src/geo/useUserIpInfo.d.ts.map +1 -1
  242. package/dist/src/hooks/useNestedSheetHeight.d.ts +14 -0
  243. package/dist/src/hooks/useNestedSheetHeight.d.ts.map +1 -1
  244. package/dist/src/icons/ApplePayMark.d.ts +3 -1
  245. package/dist/src/icons/ApplePayMark.d.ts.map +1 -1
  246. package/dist/src/icons/KycOutcomeIcon.d.ts.map +1 -1
  247. package/dist/src/preview/fixtures/kycForms.d.ts +2 -0
  248. package/dist/src/preview/fixtures/kycForms.d.ts.map +1 -1
  249. package/dist/src/preview/flowPreview.d.ts +10 -3
  250. package/dist/src/preview/flowPreview.d.ts.map +1 -1
  251. package/dist/src/preview/previewFetch.d.ts.map +1 -1
  252. package/dist/src/preview/scenarioCatalog.d.ts +117 -3
  253. package/dist/src/preview/scenarioCatalog.d.ts.map +1 -1
  254. package/dist/src/preview/scenarios.d.ts +33 -3
  255. package/dist/src/preview/scenarios.d.ts.map +1 -1
  256. package/dist/src/providers/FunkitProvider.d.ts +1 -1
  257. package/dist/src/providers/FunkitProvider.d.ts.map +1 -1
  258. package/dist/src/providers/NativeCapabilitiesContext.d.ts +1 -1
  259. package/dist/src/providers/NativeCapabilitiesContext.d.ts.map +1 -1
  260. package/dist/src/screens/DepositAmountScreen.d.ts +28 -4
  261. package/dist/src/screens/DepositAmountScreen.d.ts.map +1 -1
  262. package/dist/src/screens/DepositMatchScreen.d.ts +20 -0
  263. package/dist/src/screens/DepositMatchScreen.d.ts.map +1 -0
  264. package/dist/src/screens/FeeDetailsScreen.d.ts +4 -0
  265. package/dist/src/screens/FeeDetailsScreen.d.ts.map +1 -1
  266. package/dist/src/swapped/SwappedWebView.d.ts +2 -2
  267. package/dist/src/swapped/webViewSwappedTransport.d.ts +4 -35
  268. package/dist/src/swapped/webViewSwappedTransport.d.ts.map +1 -1
  269. package/dist/src/theme/FunkitThemeProvider.d.ts +6 -0
  270. package/dist/src/theme/FunkitThemeProvider.d.ts.map +1 -1
  271. package/dist/src/theme/buildFunkitTheme.d.ts +3 -0
  272. package/dist/src/theme/buildFunkitTheme.d.ts.map +1 -1
  273. package/dist/src/theme/legibleBrandColor.d.ts +12 -0
  274. package/dist/src/theme/legibleBrandColor.d.ts.map +1 -0
  275. package/dist/src/theme/restyle.d.ts +99 -0
  276. package/dist/src/theme/restyle.d.ts.map +1 -1
  277. package/dist/src/theme/toRestyleTheme.d.ts +9 -0
  278. package/dist/src/theme/toRestyleTheme.d.ts.map +1 -1
  279. package/dist/src/theme/typeScale.d.ts +18 -0
  280. package/dist/src/theme/typeScale.d.ts.map +1 -1
  281. package/dist/src/utils/formatAmount.d.ts +2 -0
  282. package/dist/src/utils/formatAmount.d.ts.map +1 -1
  283. package/ios/FunkitGlassEffect.podspec +2 -0
  284. package/ios/assets/funkit-connect-rn/sumsub-back.png +0 -0
  285. package/package.json +16 -8
  286. package/dist/chunk-GCPIOARQ.js.map +0 -7
  287. package/dist/chunk-MMXSERQM.js.map +0 -7
  288. package/dist/chunk-ZBWCG4O6.js.map +0 -7
  289. package/dist/src/fiat/FiatKycPosition.d.ts +0 -7
  290. package/dist/src/fiat/FiatKycPosition.d.ts.map +0 -1
  291. package/dist/src/fiat/kycWalk.d.ts +0 -22
  292. package/dist/src/fiat/kycWalk.d.ts.map +0 -1
  293. package/dist/src/fiat/providers/CoinbaseCheckoutSurface.d.ts.map +0 -1
  294. package/dist/src/fiat/providers/StripeSessionAuthScreen.d.ts.map +0 -1
  295. package/dist/src/fiat/providers/SumsubKycSurface.d.ts.map +0 -1
  296. package/dist/src/fiat/providers/TransakApplePaySurface.d.ts.map +0 -1
  297. package/dist/src/fiat/providers/banxaRedirect.d.ts.map +0 -1
  298. package/dist/src/fiat/providers/coinbaseApplePay.d.ts.map +0 -1
  299. package/dist/src/fiat/providers/coinbaseFailureCopy.d.ts +0 -25
  300. package/dist/src/fiat/providers/coinbaseFailureCopy.d.ts.map +0 -1
  301. package/dist/src/fiat/providers/coinbaseOnrampEvents.d.ts.map +0 -1
  302. package/dist/src/fiat/providers/moonpay.d.ts.map +0 -1
  303. package/dist/src/fiat/providers/moonpayApplePayPainted.d.ts.map +0 -1
  304. package/dist/src/fiat/providers/moonpayApplePayStyle.d.ts.map +0 -1
  305. package/dist/src/fiat/providers/moonpayAuthStyle.d.ts +0 -19
  306. package/dist/src/fiat/providers/moonpayAuthStyle.d.ts.map +0 -1
  307. package/dist/src/fiat/providers/moonpayFailureCopy.d.ts +0 -15
  308. package/dist/src/fiat/providers/moonpayFailureCopy.d.ts.map +0 -1
  309. package/dist/src/fiat/providers/moonpayFeeQuote.d.ts.map +0 -1
  310. package/dist/src/fiat/providers/stripeAccountCreation.d.ts +0 -12
  311. package/dist/src/fiat/providers/stripeAccountCreation.d.ts.map +0 -1
  312. package/dist/src/fiat/providers/stripeAuthorize.d.ts.map +0 -1
  313. package/dist/src/fiat/providers/stripeCheckout.d.ts.map +0 -1
  314. package/dist/src/fiat/providers/stripeFailureCopy.d.ts +0 -16
  315. package/dist/src/fiat/providers/stripeFailureCopy.d.ts.map +0 -1
  316. package/dist/src/fiat/providers/stripeKyc.d.ts.map +0 -1
  317. package/dist/src/fiat/providers/stripeKycInfo.d.ts.map +0 -1
  318. package/dist/src/fiat/providers/stripeKycIntro.d.ts +0 -10
  319. package/dist/src/fiat/providers/stripeKycIntro.d.ts.map +0 -1
  320. package/dist/src/fiat/providers/stripeOnramp.d.ts.map +0 -1
  321. package/dist/src/fiat/providers/stripeOnrampBridge.d.ts.map +0 -1
  322. package/dist/src/fiat/providers/stripePayment.d.ts.map +0 -1
  323. package/dist/src/fiat/providers/stripeRoundPush.d.ts.map +0 -1
  324. package/dist/src/fiat/providers/stripeSdk.d.ts.map +0 -1
  325. package/dist/src/fiat/providers/stripeSeamlessSignIn.d.ts.map +0 -1
  326. package/dist/src/fiat/providers/stripeSessionAuth.d.ts.map +0 -1
  327. package/dist/src/fiat/providers/sumsubKyc.d.ts.map +0 -1
  328. package/dist/src/fiat/providers/transakApplePay.d.ts.map +0 -1
  329. package/dist/src/fiat/providers/useStripeOnrampClient.d.ts.map +0 -1
  330. package/dist/src/fiat/providers/useStripeSessionAuth.d.ts.map +0 -1
  331. /package/dist/src/fiat/providers/{coinbaseOnrampEvents.d.ts → coinbase/coinbaseOnrampEvents.d.ts} +0 -0
  332. /package/dist/src/fiat/providers/{moonpayApplePayPainted.d.ts → moonpay/moonpayApplePayPainted.d.ts} +0 -0
  333. /package/dist/src/fiat/providers/{StripeSessionAuthScreen.d.ts → stripe/StripeSessionAuthScreen.d.ts} +0 -0
  334. /package/dist/src/fiat/providers/{stripeKycInfo.d.ts → stripe/stripeKycInfo.d.ts} +0 -0
  335. /package/dist/src/fiat/providers/{stripeOnrampBridge.d.ts → stripe/stripeOnrampBridge.d.ts} +0 -0
  336. /package/dist/src/fiat/providers/{stripeSeamlessSignIn.d.ts → stripe/stripeSeamlessSignIn.d.ts} +0 -0
  337. /package/dist/src/fiat/providers/{stripeSessionAuth.d.ts → stripe/stripeSessionAuth.d.ts} +0 -0
  338. /package/dist/src/fiat/providers/{SumsubKycSurface.d.ts → sumsub/SumsubKycSurface.d.ts} +0 -0
  339. /package/dist/src/fiat/providers/{TransakApplePaySurface.d.ts → transak/TransakApplePaySurface.d.ts} +0 -0
@@ -20,6 +20,24 @@ export declare const PREVIEW_SCENARIO_CATALOG: {
20
20
  readonly requires: "fiatRail";
21
21
  readonly touches: string[];
22
22
  };
23
+ readonly 'fiat.amount.depositMatch': {
24
+ readonly title: "Amount entry, deposit match with a fee subsidy (internal flag)";
25
+ readonly flow: "deposit";
26
+ readonly requires: "fiatRail";
27
+ readonly touches: readonly [...string[], "fiat/depositMatch.ts", "flow/DepositMatchSheet.tsx", "screens/DepositMatchScreen.tsx"];
28
+ };
29
+ readonly 'fiat.amount.subsidized': {
30
+ readonly title: "Amount entry, fee subsidy without the deposit match";
31
+ readonly flow: "deposit";
32
+ readonly requires: "fiatRail";
33
+ readonly touches: readonly [...string[], "fiat/stepDetails.ts", "screens/FeeDetailsScreen.tsx"];
34
+ };
35
+ readonly 'fiat.amount.depositMatch.unsubsidized': {
36
+ readonly title: "Amount entry, deposit match without a fee subsidy (internal flag)";
37
+ readonly flow: "deposit";
38
+ readonly requires: "fiatRail";
39
+ readonly touches: readonly [...string[], "fiat/depositMatch.ts", "flow/DepositMatchSheet.tsx", "screens/DepositMatchScreen.tsx"];
40
+ };
23
41
  readonly 'fiat.amount.empty': {
24
42
  readonly title: "Amount entry, empty";
25
43
  readonly flow: "deposit";
@@ -32,8 +50,8 @@ export declare const PREVIEW_SCENARIO_CATALOG: {
32
50
  readonly requires: "fiatRail";
33
51
  readonly touches: string[];
34
52
  };
35
- readonly 'fiat.amount.paymentRerouted': {
36
- readonly title: "Amount entry, re-quoted after a declined Apple Pay payment";
53
+ readonly 'fiat.amount.otpThrottled': {
54
+ readonly title: "Amount entry, the provider will not send another code";
37
55
  readonly flow: "deposit";
38
56
  readonly requires: "fiatRail";
39
57
  readonly touches: string[];
@@ -68,6 +86,18 @@ export declare const PREVIEW_SCENARIO_CATALOG: {
68
86
  readonly requires: "fiatRail";
69
87
  readonly touches: string[];
70
88
  };
89
+ readonly 'fiat.amount.providerCeiling': {
90
+ readonly title: "Amount entry, $1,000 priced under one provider's cap; type $10,000 for MoonPay KYC";
91
+ readonly flow: "deposit";
92
+ readonly requires: "fiatRail";
93
+ readonly touches: string[];
94
+ };
95
+ readonly 'fiat.amount.gap': {
96
+ readonly title: "Amount entry, between two providers' ranges (Deposit Min)";
97
+ readonly flow: "deposit";
98
+ readonly requires: "fiatRail";
99
+ readonly touches: string[];
100
+ };
71
101
  readonly 'fiat.amount.currencyLookupFailed': {
72
102
  readonly title: "Amount entry, the buyer's currency lookup failed";
73
103
  readonly flow: "deposit";
@@ -156,7 +186,13 @@ export declare const PREVIEW_SCENARIO_CATALOG: {
156
186
  readonly title: "KYC Stripe L1: step-up faceplate";
157
187
  readonly flow: "deposit";
158
188
  readonly requires: "fiatRail";
159
- readonly touches: readonly [...string[], "fiat/providers/kycIntro.ts", "fiat/providers/stripeKycIntro.ts"];
189
+ readonly touches: readonly [...string[], "fiat/providers/kycIntro.ts", "fiat/providers/stripe/stripeKycIntro.ts"];
190
+ };
191
+ readonly 'kyc.l2.moonpay-consent': {
192
+ readonly title: "KYC L2: MoonPay sharing consent";
193
+ readonly flow: "deposit";
194
+ readonly requires: "fiatRail";
195
+ readonly touches: readonly [...string[], "fiat/providers/kycIntro.ts", "fiat/FiatSharingConsentNotice.tsx", "fiat/useSharingConsent.ts"];
160
196
  };
161
197
  readonly 'kyc.l2.dob': {
162
198
  readonly title: "KYC L2: age";
@@ -182,30 +218,66 @@ export declare const PREVIEW_SCENARIO_CATALOG: {
182
218
  readonly requires: "fiatRail";
183
219
  readonly touches: string[];
184
220
  };
221
+ readonly 'kyc.dueDiligence.phoneRefused': {
222
+ readonly title: "KYC: due diligence, phone number refused";
223
+ readonly flow: "deposit";
224
+ readonly requires: "fiatRail";
225
+ readonly touches: readonly [...string[], "fiat/refusedFields.ts", "fiat/shownFieldIssues.ts"];
226
+ };
185
227
  readonly 'kyc.dueDiligence.income': {
186
228
  readonly title: "KYC: due diligence figures";
187
229
  readonly flow: "deposit";
188
230
  readonly requires: "fiatRail";
189
231
  readonly touches: string[];
190
232
  };
233
+ readonly 'kyc.edd.profession': {
234
+ readonly title: "KYC: enhanced due diligence profession";
235
+ readonly flow: "deposit";
236
+ readonly requires: "fiatRail";
237
+ readonly touches: readonly [...string[], "fiat/FiatChoiceList.tsx"];
238
+ };
239
+ readonly 'kyc.edd.netWorth': {
240
+ readonly title: "KYC: enhanced due diligence net worth";
241
+ readonly flow: "deposit";
242
+ readonly requires: "fiatRail";
243
+ readonly touches: string[];
244
+ };
191
245
  readonly 'kyc.form.unsupported': {
192
246
  readonly title: "KYC: form this build cannot draw";
193
247
  readonly flow: "deposit";
194
248
  readonly requires: "fiatRail";
195
249
  readonly touches: readonly string[];
196
250
  };
251
+ readonly 'kyc.stepUp.afterReview': {
252
+ readonly title: "KYC: a second round after review";
253
+ readonly flow: "deposit";
254
+ readonly requires: "fiatRail";
255
+ readonly touches: readonly ["flow/pageTurn.ts", "fiat/FiatKycOutcomeScreen.tsx"];
256
+ };
197
257
  readonly 'kyc.form.retry': {
198
258
  readonly title: "KYC: form send failed";
199
259
  readonly flow: "deposit";
200
260
  readonly requires: "fiatRail";
201
261
  readonly touches: readonly [...string[], "fiat/FiatErrorNotice.tsx"];
202
262
  };
263
+ readonly 'kyc.form.rateLimited': {
264
+ readonly title: "KYC: form send rate-limited";
265
+ readonly flow: "deposit";
266
+ readonly requires: "fiatRail";
267
+ readonly touches: readonly string[];
268
+ };
203
269
  readonly 'kyc.capture.intro': {
204
270
  readonly title: "KYC: document-capture intro";
205
271
  readonly flow: "deposit";
206
272
  readonly requires: "fiatRail";
207
273
  readonly touches: readonly ["fiat/FiatDocumentCaptureStep.tsx", "fiat/FiatKycIntroScreen.tsx"];
208
274
  };
275
+ readonly 'kyc.capture.moonpay-handoff': {
276
+ readonly title: "KYC: MoonPay asks for more of its hosted check";
277
+ readonly flow: "deposit";
278
+ readonly requires: "fiatRail";
279
+ readonly touches: readonly ["fiat/providers/moonpay/moonpayHandoffCard.tsx", "fiat/useKycCaptureRound.ts"];
280
+ };
209
281
  readonly 'kyc.completion.review': {
210
282
  readonly title: "KYC completion: in review";
211
283
  readonly flow: "deposit";
@@ -224,6 +296,12 @@ export declare const PREVIEW_SCENARIO_CATALOG: {
224
296
  readonly requires: "fiatRail";
225
297
  readonly touches: readonly ["fiat/FiatKycOutcomeScreen.tsx", "fiat/useKycCompletion.ts"];
226
298
  };
299
+ readonly 'kyc.required': {
300
+ readonly title: "Amount entry, identity asked before a first deposit";
301
+ readonly flow: "deposit";
302
+ readonly requires: "fiatRail";
303
+ readonly touches: string[];
304
+ };
227
305
  readonly 'kyc.verdict.review': {
228
306
  readonly title: "Amount entry after KYC: in review";
229
307
  readonly flow: "deposit";
@@ -314,6 +392,24 @@ export declare const PREVIEW_SCENARIO_CATALOG: {
314
392
  readonly requires: "fiatRail";
315
393
  readonly touches: string[];
316
394
  };
395
+ readonly 'fiat.blocked.later': {
396
+ readonly title: "Blocked by the rail: region, with a comeback date";
397
+ readonly flow: "deposit";
398
+ readonly requires: "fiatRail";
399
+ readonly touches: readonly ["fiat/FiatRegionUnsupportedScreen.tsx"];
400
+ };
401
+ readonly 'fiat.blocked.unservable': {
402
+ readonly title: "Blocked by the rail: nothing can serve this deposit";
403
+ readonly flow: "deposit";
404
+ readonly requires: "fiatRail";
405
+ readonly touches: readonly ["fiat/FiatUnavailableScreen.tsx"];
406
+ };
407
+ readonly 'fiat.accountIneligible': {
408
+ readonly title: "The host's minter refused this account";
409
+ readonly flow: "deposit";
410
+ readonly requires: "fiatRail";
411
+ readonly touches: readonly ["fiat/FiatUnavailableScreen.tsx", "fiat/useIdentityAssertion.ts"];
412
+ };
317
413
  readonly 'fiat.unsupported': {
318
414
  readonly title: "State this build predates";
319
415
  readonly flow: "deposit";
@@ -326,12 +422,30 @@ export declare const PREVIEW_SCENARIO_CATALOG: {
326
422
  readonly requires: "fiatRail";
327
423
  readonly touches: string[];
328
424
  };
425
+ readonly 'fiat.paymentFailed': {
426
+ readonly title: "Apple Pay payment failed";
427
+ readonly flow: "deposit";
428
+ readonly requires: "fiatRail";
429
+ readonly touches: readonly ["fiat/FiatPaymentFailedSheet.tsx", "fiat/usePaymentFailureAnswer.ts"];
430
+ };
329
431
  readonly 'fiat.retryable': {
330
432
  readonly title: "Submission failed, retryable";
331
433
  readonly flow: "deposit";
332
434
  readonly requires: "fiatRail";
333
435
  readonly touches: string[];
334
436
  };
437
+ readonly 'fiat.rateLimited': {
438
+ readonly title: "Submission rate-limited, seconds to wait";
439
+ readonly flow: "deposit";
440
+ readonly requires: "fiatRail";
441
+ readonly touches: readonly string[];
442
+ };
443
+ readonly 'fiat.rateLimited.retryAfter': {
444
+ readonly title: "Submission rate-limited, minutes to wait";
445
+ readonly flow: "deposit";
446
+ readonly requires: "fiatRail";
447
+ readonly touches: readonly string[];
448
+ };
335
449
  readonly 'deposit.addMoney': {
336
450
  readonly title: "Add money: method list";
337
451
  readonly flow: "deposit";
@@ -1 +1 @@
1
- {"version":3,"file":"scenarioCatalog.d.ts","sourceRoot":"","sources":["../../../src/preview/scenarioCatalog.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,YAAY,CAAA;AAElD;;;;;GAKG;AACH,MAAM,MAAM,kBAAkB,GAC1B,UAAU,GACV,eAAe,GACf,kBAAkB,CAAA;AAEtB,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,WAAW,CAAA;IACjB,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,oFAAoF;IACpF,OAAO,EAAE,SAAS,MAAM,EAAE,CAAA;CAC3B;AAmBD,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyYoB,CAAA;AAEzD,MAAM,MAAM,iBAAiB,GAAG,MAAM,OAAO,wBAAwB,CAAA;AAErE,eAAO,MAAM,oBAAoB,EAE5B,iBAAiB,EAAE,CAAA"}
1
+ {"version":3,"file":"scenarioCatalog.d.ts","sourceRoot":"","sources":["../../../src/preview/scenarioCatalog.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,YAAY,CAAA;AAElD;;;;;GAKG;AACH,MAAM,MAAM,kBAAkB,GAC1B,UAAU,GACV,eAAe,GACf,kBAAkB,CAAA;AAEtB,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,WAAW,CAAA;IACjB,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,oFAAoF;IACpF,OAAO,EAAE,SAAS,MAAM,EAAE,CAAA;CAC3B;AAmBD,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAihBoB,CAAA;AAEzD,MAAM,MAAM,iBAAiB,GAAG,MAAM,OAAO,wBAAwB,CAAA;AAErE,eAAO,MAAM,oBAAoB,EAE5B,iBAAiB,EAAE,CAAA"}
@@ -1,9 +1,13 @@
1
- import type { FiatStepResponse } from '@funkit/connect-core';
1
+ import type { FiatProvider, FiatStepResponse, Quote } from '@funkit/connect-core';
2
2
  import type { FlowPreviewSeed } from './flowPreview';
3
3
  import { type PreviewScenarioEntry, type PreviewScenarioId } from './scenarioCatalog';
4
- /** A canned `/fiat/*` answer: a step response, or an HTTP failure to provoke a retry. */
4
+ /**
5
+ * A canned `/fiat/*` answer: a step response, or an HTTP failure to provoke a retry.
6
+ * - `retryAfterSeconds` rides a 429's body, as fun-backend's rate limiter sends it.
7
+ */
5
8
  export type PreviewResponse = FiatStepResponse | {
6
9
  status: number;
10
+ retryAfterSeconds?: number;
7
11
  };
8
12
  /**
9
13
  * The fiat backend a scenario runs against, so a seeded screen stays put and its CTAs answer.
@@ -15,11 +19,37 @@ export type PreviewResponse = FiatStepResponse | {
15
19
  * - All but `NO_CANDIDATE_LEGACY` follow fun-backend #4936 / #4875, which are not deployed yet.
16
20
  */
17
21
  export type PreviewNoRouteReason = 'NO_CANDIDATE_LEGACY' | 'NO_CANDIDATE' | 'KYC_INSUFFICIENT' | 'USER_LIMIT' | 'PROVIDER_OUTAGE';
22
+ export type PreviewRange = readonly [
23
+ min: string,
24
+ max: string,
25
+ userMax: string | null
26
+ ];
27
+ /** One provider's span of the table, and what its quote answers at an amount inside it. */
28
+ export interface PreviewProviderRoute {
29
+ provider: FiatProvider;
30
+ min: string;
31
+ max: string;
32
+ /** How much of its requirements the table can see; every entry still needs a sign-in. */
33
+ visibility: 'AUTH_GATED' | 'PARTIAL' | 'COMPLETE';
34
+ answer: (amount: string) => FiatStepResponse;
35
+ }
18
36
  export interface PreviewBackend {
19
37
  quote?: FiatStepResponse;
20
38
  minimum?: string;
21
39
  /** Every quote is refused with this no-route reason. */
22
40
  noRoute?: PreviewNoRouteReason;
41
+ /**
42
+ * The only amounts served, as `[min, max, userMax]`: the routing table lists
43
+ * them, and a quote outside all of them is refused with them as
44
+ * `serviceableRanges`, the way fun-backend #5119 keeps a buyer cap's gap.
45
+ */
46
+ ranges?: readonly PreviewRange[];
47
+ /**
48
+ * Several providers, preferred first: the table splits wherever one starts or stops, a routed
49
+ * quote is answered by the provider it names, and `POST /fiat/quote` by the first one (inside
50
+ * the host's pinned list) that serves the amount.
51
+ */
52
+ providers?: readonly PreviewProviderRoute[];
23
53
  /** The country → currency lookup fails, so no quote is ever asked for. */
24
54
  currencyLookupFails?: boolean;
25
55
  responses?: Readonly<Record<string, PreviewResponse>>;
@@ -35,7 +65,7 @@ export declare function scenarioStartStep(scenario: PreviewScenario): FiatStepRe
35
65
  export declare const DEFAULT_PREVIEW_QUOTE: {
36
66
  state: {
37
67
  kind: "QUOTE";
38
- quote: import("@funkit/connect-core").Quote;
68
+ quote: Quote;
39
69
  limits: {
40
70
  min: string;
41
71
  max: string;
@@ -1 +1 @@
1
- {"version":3,"file":"scenarios.d.ts","sourceRoot":"","sources":["../../../src/preview/scenarios.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAkB,MAAM,sBAAsB,CAAA;AAE5E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAWpD,OAAO,EAEL,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACvB,MAAM,mBAAmB,CAAA;AAE1B,yFAAyF;AACzF,MAAM,MAAM,eAAe,GAAG,gBAAgB,GAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAA;AAEnE;;;;GAIG;AACH;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAC5B,qBAAqB,GACrB,cAAc,GACd,kBAAkB,GAClB,YAAY,GACZ,iBAAiB,CAAA;AAErB,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,gBAAgB,CAAA;IACxB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,wDAAwD;IACxD,OAAO,CAAC,EAAE,oBAAoB,CAAA;IAC9B,0EAA0E;IAC1E,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,SAAS,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC,CAAA;CACtD;AAED,MAAM,WAAW,eAAgB,SAAQ,oBAAoB;IAC3D,EAAE,EAAE,iBAAiB,CAAA;IACrB,IAAI,EAAE,eAAe,CAAA;IACrB,OAAO,EAAE,cAAc,CAAA;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AAA;CAC7C;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,gBAAgB,CAAA;IACxB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,wDAAwD;IACxD,OAAO,CAAC,EAAE,oBAAoB,CAAA;IAC9B;;;;OAIG;IACH,MAAM,CAAC,EAAE,SAAS,YAAY,EAAE,CAAA;IAChC;;;;OAIG;IACH,SAAS,CAAC,EAAE,SAAS,oBAAoB,EAAE,CAAA;IAC3C,0EAA0E;IAC1E,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,SAAS,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC,CAAA;CACtD;AAED,MAAM,WAAW,eAAgB,SAAQ,oBAAoB;IAC3D,EAAE,EAAE,iBAAiB,CAAA;IACrB,IAAI,EAAE,eAAe,CAAA;IACrB,OAAO,EAAE,cAAc,CAAA;CACxB;AAqwBD,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CACtC,MAAM,CAAC,iBAAiB,EAAE,eAAe,CAAC,CAUG,CAAA;AAE/C,8FAA8F;AAC9F,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,eAAe,GACxB,gBAAgB,GAAG,SAAS,CAE9B;AAED,eAAO,MAAM,qBAAqB;;;;;;;;;;;;kBAhxBmB,MAAM;;;;;;;;;CAgxBhB,CAAA"}
@@ -1,7 +1,7 @@
1
1
  import { QueryClient } from '@tanstack/react-query';
2
2
  import { type ReactNode } from 'react';
3
3
  import type { BackdropBlurRenderer } from '../flow/FlowSheet';
4
- import type { StripeOnrampConfig } from '../fiat/providers/useStripeOnrampClient';
4
+ import type { StripeOnrampConfig } from '../fiat/providers/stripe/useStripeOnrampClient';
5
5
  import { type HapticFeedback } from '../haptics/HapticsContext';
6
6
  import { type FunkitConfig } from '../identity/IdentityContext';
7
7
  import type { Locale } from '../locales/i18n';
@@ -1 +1 @@
1
- {"version":3,"file":"FunkitProvider.d.ts","sourceRoot":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AE,wBAAwB,CAAC,QAAQ,CAAC,CAAA;IAC3C;;;;;OAKG;IACH,WAAW,CAAC,EAAE,wBAAwB,CAAC,aAAa,CAAC,CAAA;IACrD;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IACf;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;;;;;;OAOG;IACH,eAAe,CAAC,EAAE,eAAe,CAAA;IACjC;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,eAAe,CAAA;IACpC;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,oBAAoB,CAAA;IACzC;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,kBAAkB,CAAA;IACjC;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,cAAc,CAAA;CAChC;AA8BD;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,MAAM,EACN,aAAa,EACb,WAAW,EACX,MAAM,EACN,WAAW,EACX,KAAoB,EACpB,MAAM,EACN,eAAe,EACf,kBAAkB,EAClB,kBAAkB,EAClB,WAAW,EACX,YAAY,EACZ,cAAc,GACf,EAAE,mBAAmB,+BAuErB"}
@@ -1,5 +1,5 @@
1
1
  import { type ReactNode } from 'react';
2
- import type { StripeOnrampClient } from '../fiat/providers/stripeOnramp';
2
+ import type { StripeOnrampClient } from '../fiat/providers/stripe/stripeOnramp';
3
3
  import type { BackdropBlurRenderer } from '../flow/FlowSheet';
4
4
  import { type ClipboardWriter, type SafeClipboardReader } from '../transfer/clipboard';
5
5
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"NativeCapabilitiesContext.d.ts","sourceRoot":"","sources":["../../../src/providers/NativeCapabilitiesContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAsC,MAAM,OAAO,CAAA;AAE1E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAA;AACxE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAG7D,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,mBAAmB,EAIzB,MAAM,uBAAuB,CAAA;AAE9B;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IACjC,oFAAoF;IACpF,YAAY,CAAC,EAAE,kBAAkB,CAAA;IACjC;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,oBAAoB,CAAA;IACzC;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB;;;;OAIG;IACH,eAAe,CAAC,EAAE,eAAe,CAAA;IACjC,gFAAgF;IAChF,kBAAkB,CAAC,EAAE,mBAAmB,CAAA;CACzC;AAED,sEAAsE;AACtE,MAAM,MAAM,0BAA0B,GAAG,kBAAkB,GAAG;IAC5D,eAAe,EAAE,eAAe,CAAA;IAChC,kBAAkB,EAAE,mBAAmB,CAAA;CACxC,CAAA;AAMD,wBAAgB,0BAA0B,CAAC,EACzC,YAAY,EACZ,QAAQ,GACT,EAAE;IACD,YAAY,EAAE,kBAAkB,CAAA;IAChC,QAAQ,EAAE,SAAS,CAAA;CACpB,+BAMA;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,IAAI,0BAA0B,CAWlE;AAED,uEAAuE;AACvE,wBAAgB,eAAe,IAAI,oBAAoB,CAKtD;AAED,gGAAgG;AAChG,wBAAgB,cAAc,IAAI,OAAO,CAQxC;AAED,mFAAmF;AACnF,wBAAgB,eAAe,IAAI,kBAAkB,GAAG,SAAS,CAEhE"}
1
+ {"version":3,"file":"NativeCapabilitiesContext.d.ts","sourceRoot":"","sources":["../../../src/providers/NativeCapabilitiesContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAsC,MAAM,OAAO,CAAA;AAE1E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAA;AAC/E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAG7D,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,mBAAmB,EAIzB,MAAM,uBAAuB,CAAA;AAE9B;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IACjC,oFAAoF;IACpF,YAAY,CAAC,EAAE,kBAAkB,CAAA;IACjC;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,oBAAoB,CAAA;IACzC;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB;;;;OAIG;IACH,eAAe,CAAC,EAAE,eAAe,CAAA;IACjC,gFAAgF;IAChF,kBAAkB,CAAC,EAAE,mBAAmB,CAAA;CACzC;AAED,sEAAsE;AACtE,MAAM,MAAM,0BAA0B,GAAG,kBAAkB,GAAG;IAC5D,eAAe,EAAE,eAAe,CAAA;IAChC,kBAAkB,EAAE,mBAAmB,CAAA;CACxC,CAAA;AAMD,wBAAgB,0BAA0B,CAAC,EACzC,YAAY,EACZ,QAAQ,GACT,EAAE;IACD,YAAY,EAAE,kBAAkB,CAAA;IAChC,QAAQ,EAAE,SAAS,CAAA;CACpB,+BAMA;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,IAAI,0BAA0B,CAWlE;AAED,uEAAuE;AACvE,wBAAgB,eAAe,IAAI,oBAAoB,CAKtD;AAED,gGAAgG;AAChG,wBAAgB,cAAc,IAAI,OAAO,CAQxC;AAED,mFAAmF;AACnF,wBAAgB,eAAe,IAAI,kBAAkB,GAAG,SAAS,CAEhE"}
@@ -1,4 +1,4 @@
1
- import { type ReactNode } from 'react';
1
+ import { type ComponentType, type ReactNode } from 'react';
2
2
  import { type AccountBalanceChipProps } from '../components/v2/AccountBalanceChip';
3
3
  import { type QuickAmountOption } from '../components/v2/QuickAmountsRow';
4
4
  import { type PaymentMethodPickerProps } from '../components/v2/PaymentMethodPicker';
@@ -13,14 +13,27 @@ export interface DepositAmountScreenProps {
13
13
  onChangeInput: (input: string) => void;
14
14
  /** Recommended amounts shown while the input is empty. */
15
15
  quickAmounts?: QuickAmountOption[];
16
- /** The payment source's maximum in dollars; a value past it is named, not refused. */
16
+ /** The recommended amounts are still on their way: the chips hold the row, loading. */
17
+ quickAmountsLoading?: boolean;
18
+ /** ISO 4217 of `input` and both bounds; `USD` when omitted. */
19
+ currency?: string;
20
+ /** The currency is still being looked up: no symbol is drawn beside the amount. */
21
+ currencyPending?: boolean;
22
+ /** The payment source's maximum, in `currency`; a value past it is named, not refused. */
17
23
  limitUsd?: string;
18
- /** Smallest amount the payment source takes, in dollars. */
24
+ /** Smallest amount the payment source takes, in `currency`. */
19
25
  minLimitUsd?: string;
20
26
  /** Locks `input`: disables the numpad, backspace/clear, and quick amounts. */
21
27
  disabled?: boolean;
22
28
  /** The full fee line for the entered amount (e.g. `$0.50 fee`). */
23
29
  fee?: string;
30
+ /**
31
+ * The run inside `fee` set in the brand colour, with the ⓘ (`$50 bonus if
32
+ * eligible`). Passed as the substring so locales can seat it anywhere.
33
+ */
34
+ feeHighlight?: string;
35
+ /** The run inside `fee` struck through: a fee the partner pays back. */
36
+ feeStruck?: string;
24
37
  /**
25
38
  * The shown fee no longer prices the current input (a keystroke invalidated
26
39
  * the quote). The fee line fades out and stops answering taps until this
@@ -41,6 +54,12 @@ export interface DepositAmountScreenProps {
41
54
  * method itself, so the fee line moves above it and drops `methodBadge`.
42
55
  */
43
56
  paymentMethodPickerProps?: PaymentMethodPickerProps;
57
+ /**
58
+ * No provider will take the selected method at this amount. With a picker,
59
+ * the action folds into it and the picker is the screen's one button; with
60
+ * none, `renderSubmit` keeps the slot.
61
+ */
62
+ methodUnavailable?: boolean;
44
63
  /** Banner beneath the amount, e.g. an identity hold. */
45
64
  notice?: ReactNode;
46
65
  /** Consent copy beneath the keypad, replacing attribution while required. */
@@ -51,6 +70,11 @@ export interface DepositAmountScreenProps {
51
70
  */
52
71
  disclosurePending?: boolean;
53
72
  submitLabel: string;
73
+ /** The platform's own pay button, drawn in place of the submit pill. */
74
+ PayButton?: ComponentType<{
75
+ onPress: () => void;
76
+ disabled?: boolean;
77
+ }>;
54
78
  canSubmit: boolean;
55
79
  onSubmit: () => void;
56
80
  /** A round already under way: its loader holds the slot over everything else. */
@@ -71,5 +95,5 @@ export interface DepositAmountScreenProps {
71
95
  * source's limit — answers with a side-to-side shake, a brief warning tint and
72
96
  * a haptic. While `disabled`, the input controls themselves are non-interactive.
73
97
  */
74
- export declare function DepositAmountScreen({ title, brandIcon, accountContext, input, onChangeInput, quickAmounts, limitUsd, minLimitUsd, disabled, fee, feePending, onPressFee, feeAccessibilityLabel, methodBadge, paymentMethodPickerProps, notice, disclosure, disclosurePending, submitLabel, canSubmit, onSubmit, renderPending, renderSubmit, amountAccessibilityLabel, backspaceAccessibilityLabel, showAttribution, }: DepositAmountScreenProps): import("react").JSX.Element;
98
+ export declare function DepositAmountScreen({ title, brandIcon, accountContext, input, onChangeInput, quickAmounts, quickAmountsLoading, currency, currencyPending, limitUsd, minLimitUsd, disabled, fee, feeHighlight, feeStruck, feePending, onPressFee, feeAccessibilityLabel, methodBadge, paymentMethodPickerProps, methodUnavailable, notice, disclosure, disclosurePending, submitLabel, PayButton, canSubmit, onSubmit, renderPending, renderSubmit, amountAccessibilityLabel, backspaceAccessibilityLabel, showAttribution, }: DepositAmountScreenProps): import("react").JSX.Element;
75
99
  //# sourceMappingURL=DepositAmountScreen.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DepositAmountScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/DepositAmountScreen.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAuB,MAAM,OAAO,CAAA;AAmB3D,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EACL,KAAK,iBAAiB,EAEvB,MAAM,kCAAkC,CAAA;AAKzC,OAAO,EAEL,KAAK,wBAAwB,EAC9B,MAAM,sCAAsC,CAAA;AAiC7C,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,MA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A;CAC1B;AAED;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,KAAK,EACL,SAAS,EACT,cAAc,EACd,KAAK,EACL,aAAa,EACb,YAAY,EACZ,QAAQ,EACR,WAAW,EACX,QAAgB,EAChB,GAAG,EACH,UAAkB,EAClB,UAAU,EACV,qBAAqB,EACrB,WAAW,EACX,wBAAwB,EACxB,MAAM,EACN,UAAU,EACV,iBAAyB,EACzB,WAAW,EACX,SAAS,EACT,QAAQ,EACR,aAAa,EACb,YAAY,EACZ,wBAAwB,EACxB,2BAA2B,EAC3B,eAAuB,GACxB,EAAE,wBAAwB,+BAqR1B"}
1
+ {"version":3,"file":"DepositAmountScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/DepositAmountScreen.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,SAAS,EAAuB,MAAM,OAAO,CAAA;AAmB/E,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EACL,KAAK,iBAAiB,EAEvB,MAAM,kCAAkC,CAAA;AAKzC,OAAO,EAEL,KAAK,wBAAwB,EAC9B,MAAM,sCAAsC,CAAA;AA0C7C,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,MAAM,CAAA;IACb,oDAAoD;IACpD,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,4DAA4D;IAC5D,cAAc,CAAC,EAAE,uBAAuB,CAAA;IACxC,6EAA6E;IAC7E,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC,0DAA0D;IAC1D,YAAY,CAAC,EAAE,iBAAiB,EAAE,CAAA;IAClC,uFAAuF;IACvF,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,+DAA+D;IAC/D,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,mFAAmF;IACnF,eAAe,CAAC,EAAE,OAAO,CAA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CAAC,EAAE,OAAO,CAAA;CAC1B;AAED;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,KAAK,EACL,SAAS,EACT,cAAc,EACd,KAAK,EACL,aAAa,EACb,YAAY,EACZ,mBAA2B,EAC3B,QAAgB,EAChB,eAAuB,EACvB,QAAQ,EACR,WAAW,EACX,QAAgB,EAChB,GAAG,EACH,YAAY,EACZ,SAAS,EACT,UAAkB,EAClB,UAAU,EACV,qBAAqB,EACrB,WAAW,EACX,wBAAwB,EACxB,iBAAyB,EACzB,MAAM,EACN,UAAU,EACV,iBAAyB,EACzB,WAAW,EACX,SAAS,EACT,SAAS,EACT,QAAQ,EACR,aAAa,EACb,YAAY,EACZ,wBAAwB,EACxB,2BAA2B,EAC3B,eAAuB,GACxB,EAAE,wBAAwB,+BAyV1B"}
@@ -0,0 +1,20 @@
1
+ export interface DepositMatchScreenProps {
2
+ /** The entered amount, formatted (`$50.00`). */
3
+ amount: string;
4
+ /** The fee's rate (`0.5%`); the row reads plain `Fee` without one. */
5
+ feeRate?: string;
6
+ /** The fee as priced; unpriced, omitted. */
7
+ fee?: string;
8
+ /** The partner reimburses the fee: it reads `FREE` with `fee` struck through. */
9
+ feeWaived: boolean;
10
+ /** The amount plus its match. */
11
+ totalWithBonus: string;
12
+ /** Where the deposit lands (`You'll receive USDC on Solana`). */
13
+ footnote?: string;
14
+ }
15
+ /**
16
+ * The fee drawer for a deposit the host matches: the total carries the bonus,
17
+ * and a subsidized fee reads waived. Presented through `Drawer`, like the fee drawer.
18
+ */
19
+ export declare function DepositMatchScreen({ amount, feeRate, fee, feeWaived, totalWithBonus, footnote, }: DepositMatchScreenProps): import("react").JSX.Element;
20
+ //# sourceMappingURL=DepositMatchScreen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DepositMatchScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/DepositMatchScreen.tsx"],"names":[],"mappings":"AA4BA,MAAM,WAAW,uBAAuB;IACtC,gDAAgD;IAChD,MAAM,EAAE,MAAM,CAAA;IACd,sEAAsE;IACtE,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,4CAA4C;IAC5C,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,iFAAiF;IACjF,SAAS,EAAE,OAAO,CAAA;IAClB,iCAAiC;IACjC,cAAc,EAAE,MAAM,CAAA;IACtB,iEAAiE;IACjE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,MAAM,EACN,OAAO,EACP,GAAG,EACH,SAAS,EACT,cAAc,EACd,QAAQ,GACT,EAAE,uBAAuB,+BA6HzB"}
@@ -13,6 +13,8 @@ export interface FeeDetailsRow {
13
13
  * design emphasises.
14
14
  */
15
15
  isTotal?: boolean;
16
+ /** The partner reimburses it: reads `FREE` with `value` struck through. */
17
+ waived?: boolean;
16
18
  }
17
19
  export interface FeeDetailsScreenProps {
18
20
  /**
@@ -33,4 +35,6 @@ export interface FeeDetailsScreenProps {
33
35
  * the backdrop and accessibility escape — the drawer's only ways out.
34
36
  */
35
37
  export declare function FeeDetailsScreen({ summary, rows, showAttribution, }: FeeDetailsScreenProps): import("react").JSX.Element;
38
+ /** Hairline between breakdown rows (Figma `Line 1`/`Line 2`, 313pt wide). */
39
+ export declare function RowDivider(): import("react").JSX.Element;
36
40
  //# sourceMappingURL=FeeDetailsScreen.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FeeDetailsScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/FeeDetailsScreen.tsx"],"names":[],"mappings":"AA0BA,iDAAiD;AACjD,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAA;IACb;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,WAAW,qBAAqB;IACpC;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,aAAa,EAAE,CAAA;IACrB,mDAAmD;IACnD,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,OAAO,EACP,IAAI,EACJ,eAAuB,GACxB,EAAE,qBAAqB,+BAwCvB"}
1
+ {"version":3,"file":"FeeDetailsScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/FeeDetailsScreen.tsx"],"names":[],"mappings":"AA2BA,iDAAiD;AACjD,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAA;IACb;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,2EAA2E;IAC3E,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB;AAED,MAAM,WAAW,qBAAqB;IACpC;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,aAAa,EAAE,CAAA;IACrB,mDAAmD;IACnD,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,OAAO,EACP,IAAI,EACJ,eAAuB,GACxB,EAAE,qBAAqB,+BAwCvB;AAmED,6EAA6E;AAC7E,wBAAgB,UAAU,gCAUzB"}
@@ -16,8 +16,8 @@ export interface SwappedWebViewProps {
16
16
  * Renders the Swapped embedded payment flow in a `WebView` and bridges its
17
17
  * messages to the typed {@link SwappedTransport} contract — the React Native
18
18
  * counterpart of web's iframe. The {@link SWAPPED_WEBVIEW_INJECTED_JS} bridge
19
- * redirects the embed's `postMessage` to the native channel; `onMessage` is
20
- * parsed + origin-validated before reaching the handler.
19
+ * redirects the embed's `parent`/`opener` posts to the native channel;
20
+ * `onMessage` is parsed + origin-validated before reaching the handler.
21
21
  */
22
22
  export declare function SwappedWebView({ url, onMessage, onBack, style, }: SwappedWebViewProps): import("react").JSX.Element;
23
23
  //# sourceMappingURL=SwappedWebView.d.ts.map
@@ -1,41 +1,10 @@
1
1
  import { type SwappedInboundMessage, type SwappedOutboundMessage, type SwappedTransport } from '@funkit/connect-core';
2
2
  /**
3
- * Marker key on host → embed envelopes (see {@link buildSwappedSendScript}).
4
- * The injected bridge recognizes the mark, unwraps the payload, and delivers it
5
- * to the page; everything unmarked is embed traffic and goes to native.
6
- */
7
- export declare const FUNKIT_ENVELOPE_KEY = "__funkitSwapped";
8
- /**
9
- * Injected into the Swapped WebView before its content loads. Installs one
10
- * bridged `postMessage` that routes BOTH directions:
11
- *
12
- * - **embed → native**: the embed talks to its host by calling
13
- * `window.parent.postMessage(obj, origin)` (the web iframe contract); at the
14
- * top level `window.parent === window`, so overriding `window.postMessage`
15
- * intercepts those calls and forwards them — JSON-stringified — to React
16
- * Native via `window.ReactNativeWebView.postMessage`. The RN side parses +
17
- * origin-validates via {@link handleWebViewMessage}.
18
- * - **native → embed**: messages injected by {@link buildSwappedSendScript}
19
- * arrive at the same bridged function wrapped in a funkit-marked envelope
20
- * ({@link FUNKIT_ENVELOPE_KEY}); the bridge unwraps them and re-dispatches
21
- * the payload through the REAL `postMessage` (captured before the override),
22
- * so the embed's `message` listeners receive a genuine, trusted MessageEvent
23
- * with an object `event.data` — exactly what they get from an iframe parent.
24
- *
25
- * It also installs a fake `window.opener` wired to the native channel: with no
26
- * parent frame the widget posts its lifecycle messages (`SWAPPED_READY`, …) to
27
- * `opener` instead of `parent`, and a top-level WebView has neither — without
28
- * the shim those messages are silently dropped.
29
- */
30
- export declare const SWAPPED_WEBVIEW_INJECTED_JS = "(function () {\n if (window.__funkitSwappedBridge) { return; }\n window.__funkitSwappedBridge = true;\n // The REAL postMessage, captured before the override below.\n var postToPage = window.postMessage.bind(window);\n function forwardToNative(message) {\n try {\n var data = typeof message === 'string' ? message : JSON.stringify(message);\n window.ReactNativeWebView && window.ReactNativeWebView.postMessage(data);\n } catch (e) {}\n }\n function bridged(message) {\n // funkit envelope (host \u2192 embed): unwrap + deliver to the page's listeners.\n if (message && message.__funkitSwapped) {\n try { postToPage(message.payload, '*'); } catch (e) {}\n return;\n }\n // Anything else is the embed talking to its host \u2192 forward to native.\n forwardToNative(message);\n }\n try { window.postMessage = bridged; } catch (e) {}\n // The widget only emits some messages (notably SWAPPED_ORDER_DATA, the sell\n // deposit address) when it believes it is embedded in a parent frame \u2014 on web\n // that's a real <iframe> so window.parent !== window. A top-level WebView has\n // window.parent === window, so present a DISTINCT parent/top (a proxy over\n // window) whose postMessage forwards to native; the get-trap delegates every\n // other property to the real window so the widget's other parent.* access works.\n var frameProxy = window;\n try {\n frameProxy = new Proxy(window, {\n get: function (target, prop) {\n if (prop === 'postMessage') { return bridged; }\n var value = target[prop];\n return typeof value === 'function' ? value.bind(target) : value;\n },\n });\n } catch (e) {\n // Proxy unavailable \u2192 fall back to bridging the real parent.\n try { if (window.parent) { window.parent.postMessage = bridged; } } catch (e2) {}\n }\n // Guard parent/top independently: parent is [Replaceable] so it sticks, but\n // top is [LegacyUnforgeable] (HTML spec) and throws on conforming engines\n // while succeeding on the WebView builds that gate embed detection on it \u2014\n // isolating them means a throw on one never skips the other.\n try { Object.defineProperty(window, 'parent', { configurable: true, get: function () { return frameProxy; } }); } catch (e) {}\n try { Object.defineProperty(window, 'top', { configurable: true, get: function () { return frameProxy; } }); } catch (e) {}\n // No parent frame \u2192 the widget posts lifecycle messages to window.opener.\n try { if (!window.opener) { window.opener = { postMessage: forwardToNative }; } } catch (e) {}\n true;\n})();\ntrue;";
31
- /**
32
- * Build the JS snippet that delivers an outbound message INTO the embed, run
33
- * via `webView.injectJavaScript`. One shape for every message type: the payload
34
- * is wrapped in a funkit-marked envelope and handed to the (bridged)
35
- * `window.postMessage` — the bridge unwraps it and re-dispatches via the real
36
- * `postMessage` (see {@link SWAPPED_WEBVIEW_INJECTED_JS}). If the bridge isn't
37
- * installed, the envelope dispatches as-is and the embed ignores it (no `type`).
3
+ * - Keep window.postMessage native so child-frame fingerprints reach the page.
4
+ * - Bridge parent/opener separately so host messages cannot echo into the page.
38
5
  */
6
+ export declare const SWAPPED_WEBVIEW_INJECTED_JS = "(function () {\n if (window.__funkitSwappedBridge) { return; }\n window.__funkitSwappedBridge = true;\n function forwardToNative(message) {\n try {\n var data = typeof message === 'string' ? message : JSON.stringify(message);\n window.ReactNativeWebView && window.ReactNativeWebView.postMessage(data);\n } catch (e) {}\n }\n // Host-only channel: targetOrigin is meaningless and transfer lists cannot cross.\n function bridged(message, _targetOrigin, transfer) {\n if (transfer && transfer.length && window.console && window.console.warn) {\n window.console.warn('[funkit] Swapped bridge: parent/top/opener post to the native host, which cannot carry a transfer list. Use window.postMessage for in-page ports.');\n }\n forwardToNative(message);\n }\n // A parent/top distinct from window, so the widget believes it is embedded.\n var frameProxy;\n try {\n frameProxy = new Proxy(window, {\n get: function (target, prop) {\n if (prop === 'postMessage') { return bridged; }\n var value = target[prop];\n return typeof value === 'function' ? value.bind(target) : value;\n },\n });\n } catch (e) {\n // No Proxy: inherit from window rather than trapping it.\n try {\n frameProxy = Object.create(window, { postMessage: { value: bridged } });\n } catch (e2) {\n frameProxy = { postMessage: bridged };\n }\n }\n // parent is [Replaceable] so this sticks; top is [LegacyUnforgeable] so it throws.\n try { Object.defineProperty(window, 'parent', { configurable: true, get: function () { return frameProxy; } }); } catch (e) {}\n try { Object.defineProperty(window, 'top', { configurable: true, get: function () { return frameProxy; } }); } catch (e) {}\n // No parent frame: the widget posts lifecycle messages to opener.\n try { if (!window.opener) { window.opener = { postMessage: bridged }; } } catch (e) {}\n true;\n})();\ntrue;";
7
+ /** Deliver host messages through the page's untouched native postMessage. */
39
8
  export declare function buildSwappedSendScript(msg: SwappedOutboundMessage): string;
40
9
  /**
41
10
  * Parse + validate a raw WebView `onMessage` payload into a typed inbound
@@ -1 +1 @@
1
- {"version":3,"file":"webViewSwappedTransport.d.ts","sourceRoot":"","sources":["../../../src/swapped/webViewSwappedTransport.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,gBAAgB,EAEtB,MAAM,sBAAsB,CAAA;AAE7B;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,oBAAoB,CAAA;AAEpD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,2BAA2B,ikFAkDlC,CAAA;AAEN;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,sBAAsB,GAAG,MAAM,CAM1E;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,OAAO,EAChB,GAAG,CAAC,EAAE,MAAM,GACX,qBAAqB,GAAG,IAAI,CAoB9B;AAED,2EAA2E;AAC3E,MAAM,WAAW,WAAW;IAC1B,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;CACvC;AAED,MAAM,WAAW,uBAAuB;IACtC,+DAA+D;IAC/D,SAAS,EAAE,gBAAgB,CAAA;IAC3B;;;OAGG;IACH,QAAQ,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC/C;AAED;;;;;;GAMG;AACH,wBAAgB,6BAA6B,CAAC,EAC5C,UAAU,GACX,EAAE;IACD,UAAU,EAAE,MAAM,WAAW,GAAG,IAAI,CAAA;CACrC,GAAG,uBAAuB,CA8B1B"}
1
+ {"version":3,"file":"webViewSwappedTransport.d.ts","sourceRoot":"","sources":["../../../src/swapped/webViewSwappedTransport.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,gBAAgB,EAEtB,MAAM,sBAAsB,CAAA;AAI7B;;;GAGG;AACH,eAAO,MAAM,2BAA2B,+4DAyClC,CAAA;AAEN,6EAA6E;AAC7E,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,sBAAsB,GAAG,MAAM,CAK1E;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,OAAO,EAChB,GAAG,CAAC,EAAE,MAAM,GACX,qBAAqB,GAAG,IAAI,CAoB9B;AAED,2EAA2E;AAC3E,MAAM,WAAW,WAAW;IAC1B,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;CACvC;AAED,MAAM,WAAW,uBAAuB;IACtC,+DAA+D;IAC/D,SAAS,EAAE,gBAAgB,CAAA;IAC3B;;;OAGG;IACH,QAAQ,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC/C;AAED;;;;;;GAMG;AACH,wBAAgB,6BAA6B,CAAC,EAC5C,UAAU,GACX,EAAE;IACD,UAAU,EAAE,MAAM,WAAW,GAAG,IAAI,CAAA;CACrC,GAAG,uBAAuB,CA8B1B"}
@@ -1,4 +1,5 @@
1
1
  import { type ReactNode } from 'react';
2
+ import { type FunkitTheme } from './toRestyleTheme';
2
3
  import { type ColorScheme } from './useColorScheme';
3
4
  import { type FunkitThemeSet } from './useFunkitTheme';
4
5
  interface FunkitColorSchemeValue {
@@ -13,6 +14,11 @@ interface FunkitColorSchemeValue {
13
14
  /** True when the scheme is forced by the `colorScheme` prop (uncontrolled toggle disabled). */
14
15
  isControlled: boolean;
15
16
  }
17
+ /** The theme drawn in each system appearance; both are the active one when pinned. */
18
+ export interface FunkitThemePair {
19
+ light: FunkitTheme;
20
+ dark: FunkitTheme;
21
+ }
16
22
  export interface FunkitThemeProviderProps {
17
23
  children: ReactNode;
18
24
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"FunkitThemeProvider.d.ts","sourceRoot":"","sources":["../../../src/theme/FunkitThemeProvider.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,SAAS,EAMf,MAAM,OAAO,CAAA;AAGd,OAAO,EACL,KA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B,IAAI,EAAE,WAAW,CAAA;CAClB;AAID,MAAM,WAAW,wBAAwB;IACvC,QAAQ,EAAE,SAAS,CAAA;IACnB;;;OAGG;IACH,MAAM,CAAC,EAAE,cAAc,CAAA;IACvB;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,WAAW,CAAA;CAC1B;AAED;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,QAAQ,EACR,MAAuB,EACvB,WAAW,GACZ,EAAE,wBAAwB,+BAgD1B;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,IAAI,sBAAsB,CAM7D"}
@@ -159,6 +159,9 @@ export declare function buildFunkitTheme(tokens: FunkitTokens): {
159
159
  notice: TextStyle;
160
160
  drawerDetail: TextStyle;
161
161
  drawerRow: TextStyle;
162
+ drawerHeadline: TextStyle;
163
+ drawerLead: TextStyle;
164
+ drawerFootnote: TextStyle;
162
165
  caption: TextStyle;
163
166
  codeDigit: TextStyle;
164
167
  amountHero: TextStyle;
@@ -1 +1 @@
1
- {"version":3,"file":"buildFunkitTheme.d.ts","sourceRoot":"","sources":["../../../src/theme/buildFunkitTheme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAE7C,OAAO,EAGL,KAAK,YAAY,EAElB,MAAM,UAAU,CAAA;AAiCjB;;;;;;;;;;;;GAYG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0HpD"}
1
+ {"version":3,"file":"buildFunkitTheme.d.ts","sourceRoot":"","sources":["../../../src/theme/buildFunkitTheme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAE7C,OAAO,EAGL,KAAK,YAAY,EAElB,MAAM,UAAU,CAAA;AAiCjB;;;;;;;;;;;;GAYG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0HpD"}
@@ -0,0 +1,12 @@
1
+ import type { FunkitTheme } from './toRestyleTheme';
2
+ /**
3
+ * The brand colour, or the primary text colour where the brand would vanish
4
+ * into `ground` — the SDK's own dark theme pairs a `#0F0F0F` brand with a
5
+ * `#0F0F0F` sheet.
6
+ *
7
+ * - A colour this can't read (a name, `hsl()`) keeps the host's brand rather
8
+ * than being judged as black.
9
+ * - A translucent brand is judged as it composites over the sheet.
10
+ */
11
+ export declare function legibleBrandColor(theme: Pick<FunkitTheme, 'brand' | 'content'>, ground: string): string;
12
+ //# sourceMappingURL=legibleBrandColor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"legibleBrandColor.d.ts","sourceRoot":"","sources":["../../../src/theme/legibleBrandColor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAiEnD;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,IAAI,CAAC,WAAW,EAAE,OAAO,GAAG,SAAS,CAAC,EAC7C,MAAM,EAAE,MAAM,GACb,MAAM,CAcR"}