@funkit/connect-rn 8.2.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 (265) hide show
  1. package/CHANGELOG.md +146 -0
  2. package/README.md +9 -0
  3. package/dist/chunk-BC4RXFI7.js +319 -0
  4. package/dist/chunk-BC4RXFI7.js.map +7 -0
  5. package/dist/{chunk-J5K2FSAI.js → chunk-KDRCHYXB.js} +313 -138
  6. package/dist/chunk-KDRCHYXB.js.map +7 -0
  7. package/dist/{chunk-GG2WCQ6N.js → chunk-Z6IQFV5E.js} +3 -3
  8. package/dist/{chunk-D64EJ57D.js → chunk-ZIT24GW5.js} +1 -1
  9. package/dist/chunk-ZIT24GW5.js.map +7 -0
  10. package/dist/clients/lighter.js +2 -2
  11. package/dist/clients/nado.js +3 -3
  12. package/dist/clients/solana.js +1 -1
  13. package/dist/index.d.ts +1 -0
  14. package/dist/index.d.ts.map +1 -1
  15. package/dist/index.js +9173 -6063
  16. package/dist/index.js.map +4 -4
  17. package/dist/preview.d.ts +5 -0
  18. package/dist/preview.d.ts.map +1 -0
  19. package/dist/preview.js +1159 -0
  20. package/dist/preview.js.map +7 -0
  21. package/dist/src/components/DepositActionMotion.d.ts +4 -1
  22. package/dist/src/components/DepositActionMotion.d.ts.map +1 -1
  23. package/dist/src/components/DismissibleToast.d.ts +35 -0
  24. package/dist/src/components/DismissibleToast.d.ts.map +1 -0
  25. package/dist/src/components/GlassSurface.d.ts +3 -1
  26. package/dist/src/components/GlassSurface.d.ts.map +1 -1
  27. package/dist/src/components/PillButton.d.ts +20 -2
  28. package/dist/src/components/PillButton.d.ts.map +1 -1
  29. package/dist/src/components/StateSwap.d.ts +17 -0
  30. package/dist/src/components/StateSwap.d.ts.map +1 -0
  31. package/dist/src/components/WithdrawSourceCard.d.ts.map +1 -1
  32. package/dist/src/components/v2/AmountDisplay.d.ts.map +1 -1
  33. package/dist/src/components/v2/PaymentMethodPicker.d.ts +18 -0
  34. package/dist/src/components/v2/PaymentMethodPicker.d.ts.map +1 -0
  35. package/dist/src/components/v2/QuickAmountsRow.d.ts.map +1 -1
  36. package/dist/src/fiat/FiatBackButton.d.ts +5 -1
  37. package/dist/src/fiat/FiatBackButton.d.ts.map +1 -1
  38. package/dist/src/fiat/FiatChoiceField.d.ts +4 -3
  39. package/dist/src/fiat/FiatChoiceField.d.ts.map +1 -1
  40. package/dist/src/fiat/FiatContactScreen.d.ts.map +1 -1
  41. package/dist/src/fiat/FiatCountrySheet.d.ts.map +1 -1
  42. package/dist/src/fiat/FiatDocumentCaptureStep.d.ts +7 -2
  43. package/dist/src/fiat/FiatDocumentCaptureStep.d.ts.map +1 -1
  44. package/dist/src/fiat/FiatFailureBanner.d.ts +4 -1
  45. package/dist/src/fiat/FiatFailureBanner.d.ts.map +1 -1
  46. package/dist/src/fiat/FiatFormAdvance.d.ts.map +1 -1
  47. package/dist/src/fiat/FiatFormFieldRow.d.ts +15 -1
  48. package/dist/src/fiat/FiatFormFieldRow.d.ts.map +1 -1
  49. package/dist/src/fiat/FiatFormHeading.d.ts +21 -0
  50. package/dist/src/fiat/FiatFormHeading.d.ts.map +1 -0
  51. package/dist/src/fiat/FiatFormScreen.d.ts +7 -1
  52. package/dist/src/fiat/FiatFormScreen.d.ts.map +1 -1
  53. package/dist/src/fiat/FiatIdentityStep.d.ts +16 -1
  54. package/dist/src/fiat/FiatIdentityStep.d.ts.map +1 -1
  55. package/dist/src/fiat/FiatKycFieldControl.d.ts +0 -2
  56. package/dist/src/fiat/FiatKycFieldControl.d.ts.map +1 -1
  57. package/dist/src/fiat/FiatKycIntroScreen.d.ts +14 -3
  58. package/dist/src/fiat/FiatKycIntroScreen.d.ts.map +1 -1
  59. package/dist/src/fiat/FiatKycOutcomeScreen.d.ts +8 -6
  60. package/dist/src/fiat/FiatKycOutcomeScreen.d.ts.map +1 -1
  61. package/dist/src/fiat/FiatKycPhoneField.d.ts +2 -3
  62. package/dist/src/fiat/FiatKycPhoneField.d.ts.map +1 -1
  63. package/dist/src/fiat/FiatOtpScreen.d.ts.map +1 -1
  64. package/dist/src/fiat/FiatPhoneField.d.ts +17 -4
  65. package/dist/src/fiat/FiatPhoneField.d.ts.map +1 -1
  66. package/dist/src/fiat/FiatReceipt.d.ts +9 -3
  67. package/dist/src/fiat/FiatReceipt.d.ts.map +1 -1
  68. package/dist/src/fiat/FiatRegionUnsupportedScreen.d.ts.map +1 -1
  69. package/dist/src/fiat/FiatSsnField.d.ts.map +1 -1
  70. package/dist/src/fiat/FiatSubmissionIndicator.d.ts +7 -1
  71. package/dist/src/fiat/FiatSubmissionIndicator.d.ts.map +1 -1
  72. package/dist/src/fiat/FiatTermsNotice.d.ts +4 -2
  73. package/dist/src/fiat/FiatTermsNotice.d.ts.map +1 -1
  74. package/dist/src/fiat/SurfaceSlot.d.ts +5 -2
  75. package/dist/src/fiat/SurfaceSlot.d.ts.map +1 -1
  76. package/dist/src/fiat/countryListEntries.d.ts +2 -3
  77. package/dist/src/fiat/countryListEntries.d.ts.map +1 -1
  78. package/dist/src/fiat/fieldLabel.d.ts +14 -0
  79. package/dist/src/fiat/fieldLabel.d.ts.map +1 -0
  80. package/dist/src/fiat/formLayout.d.ts +16 -3
  81. package/dist/src/fiat/formLayout.d.ts.map +1 -1
  82. package/dist/src/fiat/formValidationError.d.ts +4 -2
  83. package/dist/src/fiat/formValidationError.d.ts.map +1 -1
  84. package/dist/src/fiat/kycFailover.d.ts +6 -0
  85. package/dist/src/fiat/kycFailover.d.ts.map +1 -0
  86. package/dist/src/fiat/kycFormState.d.ts +12 -0
  87. package/dist/src/fiat/kycFormState.d.ts.map +1 -1
  88. package/dist/src/fiat/kycFormTheme.d.ts +7 -0
  89. package/dist/src/fiat/kycFormTheme.d.ts.map +1 -1
  90. package/dist/src/fiat/kycUnavailableAlert.d.ts.map +1 -1
  91. package/dist/src/fiat/legalLinks.d.ts +4 -3
  92. package/dist/src/fiat/legalLinks.d.ts.map +1 -1
  93. package/dist/src/fiat/paymentSurfaceFailure.d.ts +56 -0
  94. package/dist/src/fiat/paymentSurfaceFailure.d.ts.map +1 -0
  95. package/dist/src/fiat/phoneDraft.d.ts +20 -0
  96. package/dist/src/fiat/phoneDraft.d.ts.map +1 -1
  97. package/dist/src/fiat/postalCodeCountries.d.ts +16 -0
  98. package/dist/src/fiat/postalCodeCountries.d.ts.map +1 -0
  99. package/dist/src/fiat/providers/CoinbaseCheckoutSurface.d.ts +8 -2
  100. package/dist/src/fiat/providers/CoinbaseCheckoutSurface.d.ts.map +1 -1
  101. package/dist/src/fiat/providers/adapter.d.ts +33 -5
  102. package/dist/src/fiat/providers/adapter.d.ts.map +1 -1
  103. package/dist/src/fiat/providers/applePayPaintGate.d.ts +5 -2
  104. package/dist/src/fiat/providers/applePayPaintGate.d.ts.map +1 -1
  105. package/dist/src/fiat/providers/banxaRedirect.d.ts.map +1 -1
  106. package/dist/src/fiat/providers/coinbaseApplePay.d.ts +2 -1
  107. package/dist/src/fiat/providers/coinbaseApplePay.d.ts.map +1 -1
  108. package/dist/src/fiat/providers/coinbaseFailureCopy.d.ts +6 -1
  109. package/dist/src/fiat/providers/coinbaseFailureCopy.d.ts.map +1 -1
  110. package/dist/src/fiat/providers/describeThrown.d.ts.map +1 -1
  111. package/dist/src/fiat/providers/kycIntro.d.ts +20 -0
  112. package/dist/src/fiat/providers/kycIntro.d.ts.map +1 -0
  113. package/dist/src/fiat/providers/moonpay.d.ts +6 -1
  114. package/dist/src/fiat/providers/moonpay.d.ts.map +1 -1
  115. package/dist/src/fiat/providers/moonpayApplePayPainted.d.ts +6 -3
  116. package/dist/src/fiat/providers/moonpayApplePayPainted.d.ts.map +1 -1
  117. package/dist/src/fiat/providers/moonpayAuthStyle.d.ts +19 -0
  118. package/dist/src/fiat/providers/moonpayAuthStyle.d.ts.map +1 -0
  119. package/dist/src/fiat/providers/moonpayFeeQuote.d.ts +26 -0
  120. package/dist/src/fiat/providers/moonpayFeeQuote.d.ts.map +1 -0
  121. package/dist/src/fiat/providers/stripeAuthorize.d.ts.map +1 -1
  122. package/dist/src/fiat/providers/stripeCheckout.d.ts.map +1 -1
  123. package/dist/src/fiat/providers/stripeKyc.d.ts +2 -0
  124. package/dist/src/fiat/providers/stripeKyc.d.ts.map +1 -1
  125. package/dist/src/fiat/providers/stripeKycIntro.d.ts +10 -0
  126. package/dist/src/fiat/providers/stripeKycIntro.d.ts.map +1 -0
  127. package/dist/src/fiat/providers/stripePayment.d.ts +2 -2
  128. package/dist/src/fiat/providers/stripePayment.d.ts.map +1 -1
  129. package/dist/src/fiat/providers/stripeRoundPush.d.ts +39 -0
  130. package/dist/src/fiat/providers/stripeRoundPush.d.ts.map +1 -0
  131. package/dist/src/fiat/providers/stripeSeamlessSignIn.d.ts +5 -0
  132. package/dist/src/fiat/providers/stripeSeamlessSignIn.d.ts.map +1 -1
  133. package/dist/src/fiat/providers/stripeSessionAuth.d.ts.map +1 -1
  134. package/dist/src/fiat/providers/sumsubKyc.d.ts.map +1 -1
  135. package/dist/src/fiat/providers/surfaceParams.d.ts +30 -0
  136. package/dist/src/fiat/providers/surfaceParams.d.ts.map +1 -0
  137. package/dist/src/fiat/providers/transakApplePay.d.ts.map +1 -1
  138. package/dist/src/fiat/providers/useStripeOnrampClient.d.ts +0 -10
  139. package/dist/src/fiat/providers/useStripeOnrampClient.d.ts.map +1 -1
  140. package/dist/src/fiat/providers/useStripeSessionAuth.d.ts +42 -0
  141. package/dist/src/fiat/providers/useStripeSessionAuth.d.ts.map +1 -0
  142. package/dist/src/fiat/quoteNoRoute.d.ts +11 -0
  143. package/dist/src/fiat/quoteNoRoute.d.ts.map +1 -0
  144. package/dist/src/fiat/renderCaptureSurface.d.ts +2 -0
  145. package/dist/src/fiat/renderCaptureSurface.d.ts.map +1 -1
  146. package/dist/src/fiat/sectionDetail.d.ts +8 -1
  147. package/dist/src/fiat/sectionDetail.d.ts.map +1 -1
  148. package/dist/src/fiat/shownFieldIssues.d.ts +17 -0
  149. package/dist/src/fiat/shownFieldIssues.d.ts.map +1 -0
  150. package/dist/src/fiat/stepDetails.d.ts +13 -14
  151. package/dist/src/fiat/stepDetails.d.ts.map +1 -1
  152. package/dist/src/fiat/subdivisions.d.ts +6 -0
  153. package/dist/src/fiat/subdivisions.d.ts.map +1 -1
  154. package/dist/src/fiat/useContactAutoSubmit.d.ts +20 -0
  155. package/dist/src/fiat/useContactAutoSubmit.d.ts.map +1 -0
  156. package/dist/src/fiat/useFiatCheckoutPreparation.d.ts +2 -1
  157. package/dist/src/fiat/useFiatCheckoutPreparation.d.ts.map +1 -1
  158. package/dist/src/fiat/useKycCaptureRound.d.ts +16 -0
  159. package/dist/src/fiat/useKycCaptureRound.d.ts.map +1 -0
  160. package/dist/src/fiat/useKycCompletion.d.ts.map +1 -1
  161. package/dist/src/fiat/useOtpAutoSubmit.d.ts +15 -2
  162. package/dist/src/fiat/useOtpAutoSubmit.d.ts.map +1 -1
  163. package/dist/src/fiat/useOtpReceipt.d.ts +3 -2
  164. package/dist/src/fiat/useOtpReceipt.d.ts.map +1 -1
  165. package/dist/src/fiat/useReceiptTitles.d.ts +6 -0
  166. package/dist/src/fiat/useReceiptTitles.d.ts.map +1 -0
  167. package/dist/src/flow/DepositAmountStep.d.ts.map +1 -1
  168. package/dist/src/flow/DepositAssetPicker.d.ts +4 -2
  169. package/dist/src/flow/DepositAssetPicker.d.ts.map +1 -1
  170. package/dist/src/flow/DepositFlowContent.d.ts.map +1 -1
  171. package/dist/src/flow/DepositReceivedToast.d.ts +2 -2
  172. package/dist/src/flow/DepositReceivedToast.d.ts.map +1 -1
  173. package/dist/src/flow/FeeDetailsSheet.d.ts +3 -1
  174. package/dist/src/flow/FeeDetailsSheet.d.ts.map +1 -1
  175. package/dist/src/flow/FiatDepositAmountStep.d.ts +5 -1
  176. package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
  177. package/dist/src/flow/FlowPage.d.ts +3 -0
  178. package/dist/src/flow/FlowPage.d.ts.map +1 -1
  179. package/dist/src/flow/FlowSheet.d.ts +10 -2
  180. package/dist/src/flow/FlowSheet.d.ts.map +1 -1
  181. package/dist/src/flow/FunkitFlowProvider.d.ts +3 -0
  182. package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
  183. package/dist/src/flow/WithdrawalFlowContent.d.ts.map +1 -1
  184. package/dist/src/flow/depositFlowConfig.d.ts +13 -3
  185. package/dist/src/flow/depositFlowConfig.d.ts.map +1 -1
  186. package/dist/src/flow/depositRailCopy.d.ts +2 -0
  187. package/dist/src/flow/depositRailCopy.d.ts.map +1 -1
  188. package/dist/src/flow/sheetPressHold.d.ts +24 -0
  189. package/dist/src/flow/sheetPressHold.d.ts.map +1 -0
  190. package/dist/src/flow/swipeBack.d.ts +30 -0
  191. package/dist/src/flow/swipeBack.d.ts.map +1 -0
  192. package/dist/src/flow/useDepositReceivedToast.d.ts.map +1 -1
  193. package/dist/src/flow/useFlowTransitions.d.ts +47 -0
  194. package/dist/src/flow/useFlowTransitions.d.ts.map +1 -0
  195. package/dist/src/flow/useKeyboardHeight.d.ts +2 -2
  196. package/dist/src/flow/useKeyboardHeight.d.ts.map +1 -1
  197. package/dist/src/flow/v2DepositCustomers.d.ts +2 -0
  198. package/dist/src/flow/v2DepositCustomers.d.ts.map +1 -0
  199. package/dist/src/hooks/usePressScale.d.ts +2 -6
  200. package/dist/src/hooks/usePressScale.d.ts.map +1 -1
  201. package/dist/src/icons/assetLogos.d.ts.map +1 -1
  202. package/dist/src/native/glassEffect.d.ts +1 -0
  203. package/dist/src/native/glassEffect.d.ts.map +1 -1
  204. package/dist/src/preview/fixtures/kycForms.d.ts +45 -0
  205. package/dist/src/preview/fixtures/kycForms.d.ts.map +1 -0
  206. package/dist/src/preview/flowPreview.d.ts +142 -0
  207. package/dist/src/preview/flowPreview.d.ts.map +1 -0
  208. package/dist/src/preview/previewFetch.d.ts +10 -0
  209. package/dist/src/preview/previewFetch.d.ts.map +1 -0
  210. package/dist/src/preview/scenarioCatalog.d.ts +380 -0
  211. package/dist/src/preview/scenarioCatalog.d.ts.map +1 -0
  212. package/dist/src/preview/scenarios.d.ts +57 -0
  213. package/dist/src/preview/scenarios.d.ts.map +1 -0
  214. package/dist/src/providers/FunkitI18nProvider.d.ts +2 -0
  215. package/dist/src/providers/FunkitI18nProvider.d.ts.map +1 -1
  216. package/dist/src/providers/useFunkitCheckout.d.ts +6 -0
  217. package/dist/src/providers/useFunkitCheckout.d.ts.map +1 -1
  218. package/dist/src/screens/DepositAmountScreen.d.ts +9 -2
  219. package/dist/src/screens/DepositAmountScreen.d.ts.map +1 -1
  220. package/dist/src/screens/FeeDetailsScreen.d.ts.map +1 -1
  221. package/dist/src/screens/TokenAndChainPickerScreen.d.ts +3 -1
  222. package/dist/src/screens/TokenAndChainPickerScreen.d.ts.map +1 -1
  223. package/dist/src/screens/WithdrawCryptoSteps.d.ts.map +1 -1
  224. package/dist/src/screens/depositMetrics.d.ts +40 -3
  225. package/dist/src/screens/depositMetrics.d.ts.map +1 -1
  226. package/dist/src/swapped/SwappedWebView.d.ts.map +1 -1
  227. package/dist/src/theme/keyboardAppearance.d.ts +10 -0
  228. package/dist/src/theme/keyboardAppearance.d.ts.map +1 -0
  229. package/dist/src/theme/tokens.d.ts +4 -1
  230. package/dist/src/theme/tokens.d.ts.map +1 -1
  231. package/dist/src/transfer/depositAssets.d.ts +6 -4
  232. package/dist/src/transfer/depositAssets.d.ts.map +1 -1
  233. package/dist/src/transfer/hooks/useLockedTokenAmount.d.ts +19 -1
  234. package/dist/src/transfer/hooks/useLockedTokenAmount.d.ts.map +1 -1
  235. package/dist/src/transfer/hooks/useUDAParams.d.ts.map +1 -1
  236. package/dist/src/transfer/lockedQuoteSource.d.ts +23 -0
  237. package/dist/src/transfer/lockedQuoteSource.d.ts.map +1 -0
  238. package/dist/src/transfer/lockedTokenAmount.d.ts +25 -0
  239. package/dist/src/transfer/lockedTokenAmount.d.ts.map +1 -1
  240. package/dist/src/utils/formatAmount.d.ts +1 -0
  241. package/dist/src/utils/formatAmount.d.ts.map +1 -1
  242. package/dist/src/utils/motion.d.ts +6 -0
  243. package/dist/src/utils/motion.d.ts.map +1 -1
  244. package/dist/src/withdrawal/useCryptoWithdrawalForm.d.ts +3 -2
  245. package/dist/src/withdrawal/useCryptoWithdrawalForm.d.ts.map +1 -1
  246. package/package.json +11 -6
  247. package/dist/chunk-D64EJ57D.js.map +0 -7
  248. package/dist/chunk-J5K2FSAI.js.map +0 -7
  249. package/dist/src/components/ActionLoading.d.ts +0 -19
  250. package/dist/src/components/ActionLoading.d.ts.map +0 -1
  251. package/dist/src/fiat/FiatConsentCheck.d.ts +0 -11
  252. package/dist/src/fiat/FiatConsentCheck.d.ts.map +0 -1
  253. package/dist/src/fiat/FiatFormConsent.d.ts +0 -6
  254. package/dist/src/fiat/FiatFormConsent.d.ts.map +0 -1
  255. package/dist/src/fiat/FiatQuotePrice.d.ts +0 -12
  256. package/dist/src/fiat/FiatQuotePrice.d.ts.map +0 -1
  257. package/dist/src/fiat/providerFailover.d.ts +0 -12
  258. package/dist/src/fiat/providerFailover.d.ts.map +0 -1
  259. package/dist/src/fiat/providers/StripeSessionAuthController.d.ts +0 -29
  260. package/dist/src/fiat/providers/StripeSessionAuthController.d.ts.map +0 -1
  261. package/dist/src/fiat/providers/moonpayTrace.d.ts +0 -25
  262. package/dist/src/fiat/providers/moonpayTrace.d.ts.map +0 -1
  263. package/dist/src/fiat/useQuoteableCeiling.d.ts +0 -28
  264. package/dist/src/fiat/useQuoteableCeiling.d.ts.map +0 -1
  265. /package/dist/{chunk-GG2WCQ6N.js.map → chunk-Z6IQFV5E.js.map} +0 -0
@@ -0,0 +1,380 @@
1
+ export type PreviewFlow = 'deposit' | 'withdrawal';
2
+ /**
3
+ * What the host's flow config must offer for the scenario to open.
4
+ * - `fiatRail`: an amount-first deposit with a fiat rail (Fomo, Pump.fun).
5
+ * - `cryptoDeposit`: the Add money deposit (Betty, Mallard, Ulys, …).
6
+ * - `cryptoWithdrawal`: a crypto withdrawal config (Mallard, Ulys).
7
+ */
8
+ export type PreviewRequirement = 'fiatRail' | 'cryptoDeposit' | 'cryptoWithdrawal';
9
+ export interface PreviewScenarioEntry {
10
+ title: string;
11
+ flow: PreviewFlow;
12
+ requires: PreviewRequirement;
13
+ /** Source files, relative to `src/`, whose change makes this state worth a link. */
14
+ touches: readonly string[];
15
+ }
16
+ export declare const PREVIEW_SCENARIO_CATALOG: {
17
+ readonly 'fiat.amount': {
18
+ readonly title: "Amount entry, priced";
19
+ readonly flow: "deposit";
20
+ readonly requires: "fiatRail";
21
+ readonly touches: string[];
22
+ };
23
+ readonly 'fiat.amount.empty': {
24
+ readonly title: "Amount entry, empty";
25
+ readonly flow: "deposit";
26
+ readonly requires: "fiatRail";
27
+ readonly touches: string[];
28
+ };
29
+ readonly 'fiat.amount.belowMinimum': {
30
+ readonly title: "Amount entry, below the provider minimum";
31
+ readonly flow: "deposit";
32
+ readonly requires: "fiatRail";
33
+ readonly touches: string[];
34
+ };
35
+ readonly 'fiat.amount.noProvider': {
36
+ readonly title: "Amount entry, no provider serves this buyer (fun-backend #4936)";
37
+ readonly flow: "deposit";
38
+ readonly requires: "fiatRail";
39
+ readonly touches: string[];
40
+ };
41
+ readonly 'fiat.amount.kycUnservable': {
42
+ readonly title: "Amount entry, identity no provider can take (fun-backend #4875)";
43
+ readonly flow: "deposit";
44
+ readonly requires: "fiatRail";
45
+ readonly touches: string[];
46
+ };
47
+ readonly 'fiat.amount.userLimit': {
48
+ readonly title: "Amount entry, over the buyer's provider limit (fun-backend #4936)";
49
+ readonly flow: "deposit";
50
+ readonly requires: "fiatRail";
51
+ readonly touches: string[];
52
+ };
53
+ readonly 'fiat.amount.providerOutage': {
54
+ readonly title: "Amount entry, providers down (fun-backend #4936)";
55
+ readonly flow: "deposit";
56
+ readonly requires: "fiatRail";
57
+ readonly touches: string[];
58
+ };
59
+ readonly 'fiat.amount.noRouteToday': {
60
+ readonly title: "Amount entry, today's no-route refusal (still Try again)";
61
+ readonly flow: "deposit";
62
+ readonly requires: "fiatRail";
63
+ readonly touches: string[];
64
+ };
65
+ readonly 'fiat.amount.currencyLookupFailed': {
66
+ readonly title: "Amount entry, the buyer's currency lookup failed";
67
+ readonly flow: "deposit";
68
+ readonly requires: "fiatRail";
69
+ readonly touches: string[];
70
+ };
71
+ readonly 'fiat.contact.email': {
72
+ readonly title: "Contact: email";
73
+ readonly flow: "deposit";
74
+ readonly requires: "fiatRail";
75
+ readonly touches: readonly ["fiat/FiatContactScreen.tsx", "fiat/sessionContact.ts"];
76
+ };
77
+ readonly 'fiat.contact.phone': {
78
+ readonly title: "Contact: phone";
79
+ readonly flow: "deposit";
80
+ readonly requires: "fiatRail";
81
+ readonly touches: readonly ["fiat/FiatContactScreen.tsx", "fiat/FiatPhoneField.tsx", "fiat/useContactAutoSubmit.ts"];
82
+ };
83
+ readonly 'fiat.otp.email': {
84
+ readonly title: "OTP: email code";
85
+ readonly flow: "deposit";
86
+ readonly requires: "fiatRail";
87
+ readonly touches: readonly ["fiat/FiatOtpScreen.tsx"];
88
+ };
89
+ readonly 'fiat.otp.sms': {
90
+ readonly title: "OTP: SMS code";
91
+ readonly flow: "deposit";
92
+ readonly requires: "fiatRail";
93
+ readonly touches: readonly ["fiat/FiatOtpScreen.tsx"];
94
+ };
95
+ readonly 'kyc.l1.intro': {
96
+ readonly title: "KYC L1: consent faceplate";
97
+ readonly flow: "deposit";
98
+ readonly requires: "fiatRail";
99
+ readonly touches: string[];
100
+ };
101
+ readonly 'kyc.l1.name': {
102
+ readonly title: "KYC L1: name";
103
+ readonly flow: "deposit";
104
+ readonly requires: "fiatRail";
105
+ readonly touches: string[];
106
+ };
107
+ readonly 'kyc.l1.dob': {
108
+ readonly title: "KYC L1: date of birth";
109
+ readonly flow: "deposit";
110
+ readonly requires: "fiatRail";
111
+ readonly touches: readonly [...string[], "fiat/FiatBirthDateField.tsx"];
112
+ };
113
+ readonly 'kyc.l1.address': {
114
+ readonly title: "KYC L1: address";
115
+ readonly flow: "deposit";
116
+ readonly requires: "fiatRail";
117
+ readonly touches: readonly [...string[], "fiat/subdivisions.ts"];
118
+ };
119
+ readonly 'kyc.l1.ssn': {
120
+ readonly title: "KYC L1: SSN";
121
+ readonly flow: "deposit";
122
+ readonly requires: "fiatRail";
123
+ readonly touches: readonly [...string[], "fiat/FiatSsnField.tsx"];
124
+ };
125
+ readonly 'kyc.nationality': {
126
+ readonly title: "KYC: nationality";
127
+ readonly flow: "deposit";
128
+ readonly requires: "fiatRail";
129
+ readonly touches: readonly [...string[], "fiat/FiatCountrySheet.tsx"];
130
+ };
131
+ readonly 'kyc.country': {
132
+ readonly title: "KYC: country of residence";
133
+ readonly flow: "deposit";
134
+ readonly requires: "fiatRail";
135
+ readonly touches: readonly [...string[], "fiat/FiatCountrySheet.tsx"];
136
+ };
137
+ readonly 'kyc.ssnLastFour': {
138
+ readonly title: "KYC: SSN last four";
139
+ readonly flow: "deposit";
140
+ readonly requires: "fiatRail";
141
+ readonly touches: readonly [...string[], "fiat/FiatSsnField.tsx"];
142
+ };
143
+ readonly 'kyc.l2.intro': {
144
+ readonly title: "KYC L2: additional-information faceplate";
145
+ readonly flow: "deposit";
146
+ readonly requires: "fiatRail";
147
+ readonly touches: string[];
148
+ };
149
+ readonly 'kyc.stripe.l1.intro': {
150
+ readonly title: "KYC Stripe L1: step-up faceplate";
151
+ readonly flow: "deposit";
152
+ readonly requires: "fiatRail";
153
+ readonly touches: readonly [...string[], "fiat/providers/kycIntro.ts", "fiat/providers/stripeKycIntro.ts"];
154
+ };
155
+ readonly 'kyc.l2.dob': {
156
+ readonly title: "KYC L2: age";
157
+ readonly flow: "deposit";
158
+ readonly requires: "fiatRail";
159
+ readonly touches: string[];
160
+ };
161
+ readonly 'kyc.l2.occupation': {
162
+ readonly title: "KYC L2: occupation";
163
+ readonly flow: "deposit";
164
+ readonly requires: "fiatRail";
165
+ readonly touches: readonly [...string[], "fiat/FiatChoiceList.tsx"];
166
+ };
167
+ readonly 'kyc.l2.purpose': {
168
+ readonly title: "KYC L2: purpose";
169
+ readonly flow: "deposit";
170
+ readonly requires: "fiatRail";
171
+ readonly touches: readonly [...string[], "fiat/FiatChoiceList.tsx"];
172
+ };
173
+ readonly 'kyc.dueDiligence': {
174
+ readonly title: "KYC: due diligence";
175
+ readonly flow: "deposit";
176
+ readonly requires: "fiatRail";
177
+ readonly touches: string[];
178
+ };
179
+ readonly 'kyc.dueDiligence.income': {
180
+ readonly title: "KYC: due diligence figures";
181
+ readonly flow: "deposit";
182
+ readonly requires: "fiatRail";
183
+ readonly touches: string[];
184
+ };
185
+ readonly 'kyc.form.unsupported': {
186
+ readonly title: "KYC: form this build cannot draw";
187
+ readonly flow: "deposit";
188
+ readonly requires: "fiatRail";
189
+ readonly touches: readonly string[];
190
+ };
191
+ readonly 'kyc.form.retry': {
192
+ readonly title: "KYC: form send failed";
193
+ readonly flow: "deposit";
194
+ readonly requires: "fiatRail";
195
+ readonly touches: readonly [...string[], "fiat/FiatErrorNotice.tsx"];
196
+ };
197
+ readonly 'kyc.capture.intro': {
198
+ readonly title: "KYC: document-capture intro";
199
+ readonly flow: "deposit";
200
+ readonly requires: "fiatRail";
201
+ readonly touches: readonly ["fiat/FiatDocumentCaptureStep.tsx", "fiat/FiatKycIntroScreen.tsx"];
202
+ };
203
+ readonly 'kyc.completion.review': {
204
+ readonly title: "KYC completion: in review";
205
+ readonly flow: "deposit";
206
+ readonly requires: "fiatRail";
207
+ readonly touches: readonly ["fiat/FiatKycOutcomeScreen.tsx", "fiat/useKycCompletion.ts"];
208
+ };
209
+ readonly 'kyc.completion.hold': {
210
+ readonly title: "KYC completion: on hold";
211
+ readonly flow: "deposit";
212
+ readonly requires: "fiatRail";
213
+ readonly touches: readonly ["fiat/FiatKycOutcomeScreen.tsx", "fiat/useKycCompletion.ts"];
214
+ };
215
+ readonly 'kyc.completion.restricted': {
216
+ readonly title: "KYC completion: rejected";
217
+ readonly flow: "deposit";
218
+ readonly requires: "fiatRail";
219
+ readonly touches: readonly ["fiat/FiatKycOutcomeScreen.tsx", "fiat/useKycCompletion.ts"];
220
+ };
221
+ readonly 'kyc.verdict.review': {
222
+ readonly title: "Amount entry after KYC: in review";
223
+ readonly flow: "deposit";
224
+ readonly requires: "fiatRail";
225
+ readonly touches: readonly [...string[], "fiat/FiatKycNotice.tsx"];
226
+ };
227
+ readonly 'kyc.verdict.hold': {
228
+ readonly title: "Amount entry after KYC: on hold";
229
+ readonly flow: "deposit";
230
+ readonly requires: "fiatRail";
231
+ readonly touches: readonly [...string[], "fiat/FiatKycNotice.tsx"];
232
+ };
233
+ readonly 'kyc.verdict.rejected': {
234
+ readonly title: "Amount entry after KYC: rejected";
235
+ readonly flow: "deposit";
236
+ readonly requires: "fiatRail";
237
+ readonly touches: readonly [...string[], "fiat/FiatKycNotice.tsx"];
238
+ };
239
+ readonly 'kyc.options.review': {
240
+ readonly title: "KYC options card: in review";
241
+ readonly flow: "deposit";
242
+ readonly requires: "fiatRail";
243
+ readonly touches: readonly ["fiat/FiatKycOptionsScreen.tsx", "fiat/FiatKycOptionRow.tsx"];
244
+ };
245
+ readonly 'kyc.options.hold': {
246
+ readonly title: "KYC options card: on hold";
247
+ readonly flow: "deposit";
248
+ readonly requires: "fiatRail";
249
+ readonly touches: readonly ["fiat/FiatKycOptionsScreen.tsx", "fiat/FiatKycOptionRow.tsx"];
250
+ };
251
+ readonly 'kyc.options.rejected': {
252
+ readonly title: "KYC options card: rejected";
253
+ readonly flow: "deposit";
254
+ readonly requires: "fiatRail";
255
+ readonly touches: readonly ["fiat/FiatKycOptionsScreen.tsx", "fiat/FiatKycOptionRow.tsx"];
256
+ };
257
+ readonly 'order.review': {
258
+ readonly title: "Order review";
259
+ readonly flow: "deposit";
260
+ readonly requires: "fiatRail";
261
+ readonly touches: string[];
262
+ };
263
+ readonly 'order.bankInstructions': {
264
+ readonly title: "Bank transfer instructions (not drawn on RN yet)";
265
+ readonly flow: "deposit";
266
+ readonly requires: "fiatRail";
267
+ readonly touches: string[];
268
+ };
269
+ readonly 'order.pending': {
270
+ readonly title: "Pending order: resume or cancel";
271
+ readonly flow: "deposit";
272
+ readonly requires: "fiatRail";
273
+ readonly touches: readonly ["fiat/FiatPendingOrderScreen.tsx"];
274
+ };
275
+ readonly 'order.tracking': {
276
+ readonly title: "Order processing";
277
+ readonly flow: "deposit";
278
+ readonly requires: "fiatRail";
279
+ readonly touches: string[];
280
+ };
281
+ readonly 'order.success': {
282
+ readonly title: "Order settled (closes into the deposit toast)";
283
+ readonly flow: "deposit";
284
+ readonly requires: "fiatRail";
285
+ readonly touches: readonly [...string[], "fiat/FiatReceipt.tsx"];
286
+ };
287
+ readonly 'order.failed': {
288
+ readonly title: "Order failed";
289
+ readonly flow: "deposit";
290
+ readonly requires: "fiatRail";
291
+ readonly touches: string[];
292
+ };
293
+ readonly 'order.cancelled': {
294
+ readonly title: "Order cancelled";
295
+ readonly flow: "deposit";
296
+ readonly requires: "fiatRail";
297
+ readonly touches: string[];
298
+ };
299
+ readonly 'order.refunded': {
300
+ readonly title: "Order refunded";
301
+ readonly flow: "deposit";
302
+ readonly requires: "fiatRail";
303
+ readonly touches: string[];
304
+ };
305
+ readonly 'fiat.blocked': {
306
+ readonly title: "Blocked by the rail";
307
+ readonly flow: "deposit";
308
+ readonly requires: "fiatRail";
309
+ readonly touches: string[];
310
+ };
311
+ readonly 'fiat.unsupported': {
312
+ readonly title: "State this build predates";
313
+ readonly flow: "deposit";
314
+ readonly requires: "fiatRail";
315
+ readonly touches: string[];
316
+ };
317
+ readonly 'fiat.surfaceFailed': {
318
+ readonly title: "Provider surface failed";
319
+ readonly flow: "deposit";
320
+ readonly requires: "fiatRail";
321
+ readonly touches: string[];
322
+ };
323
+ readonly 'fiat.retryable': {
324
+ readonly title: "Submission failed, retryable";
325
+ readonly flow: "deposit";
326
+ readonly requires: "fiatRail";
327
+ readonly touches: string[];
328
+ };
329
+ readonly 'deposit.addMoney': {
330
+ readonly title: "Add money: method list";
331
+ readonly flow: "deposit";
332
+ readonly requires: "cryptoDeposit";
333
+ readonly touches: readonly ["screens/SelectMethodScreen.tsx"];
334
+ };
335
+ readonly 'deposit.transfer': {
336
+ readonly title: "Transfer crypto: deposit address";
337
+ readonly flow: "deposit";
338
+ readonly requires: "cryptoDeposit";
339
+ readonly touches: readonly ["screens/TransferCryptoScreen.tsx"];
340
+ };
341
+ readonly 'withdraw.method': {
342
+ readonly title: "Withdraw: payout methods";
343
+ readonly flow: "withdrawal";
344
+ readonly requires: "cryptoWithdrawal";
345
+ readonly touches: readonly ["flow/WithdrawalFlowContent.tsx", "screens/WithdrawMethodScreen.tsx"];
346
+ };
347
+ readonly 'withdraw.amount': {
348
+ readonly title: "Withdraw: amount";
349
+ readonly flow: "withdrawal";
350
+ readonly requires: "cryptoWithdrawal";
351
+ readonly touches: readonly [...string[], "screens/WithdrawAmountScreen.tsx"];
352
+ };
353
+ readonly 'withdraw.address': {
354
+ readonly title: "Withdraw: recipient address";
355
+ readonly flow: "withdrawal";
356
+ readonly requires: "cryptoWithdrawal";
357
+ readonly touches: readonly [...string[], "screens/WithdrawAddressScreen.tsx"];
358
+ };
359
+ readonly 'withdraw.receiveToken': {
360
+ readonly title: "Withdraw: receive token and chain";
361
+ readonly flow: "withdrawal";
362
+ readonly requires: "cryptoWithdrawal";
363
+ readonly touches: readonly [...string[], "screens/SelectReceiveTokenAndChainScreen.tsx"];
364
+ };
365
+ readonly 'withdraw.complete': {
366
+ readonly title: "Withdraw: submitted";
367
+ readonly flow: "withdrawal";
368
+ readonly requires: "cryptoWithdrawal";
369
+ readonly touches: readonly ["screens/WithdrawCryptoComplete.tsx", "screens/WithdrawCompleteScreen.tsx"];
370
+ };
371
+ readonly 'withdraw.error': {
372
+ readonly title: "Withdraw: execution failed";
373
+ readonly flow: "withdrawal";
374
+ readonly requires: "cryptoWithdrawal";
375
+ readonly touches: readonly ["flow/WithdrawalFlowContent.tsx", "screens/WithdrawMethodScreen.tsx"];
376
+ };
377
+ };
378
+ export type PreviewScenarioId = keyof typeof PREVIEW_SCENARIO_CATALOG;
379
+ export declare const PREVIEW_SCENARIO_IDS: PreviewScenarioId[];
380
+ //# sourceMappingURL=scenarioCatalog.d.ts.map
@@ -0,0 +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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmYoB,CAAA;AAEzD,MAAM,MAAM,iBAAiB,GAAG,MAAM,OAAO,wBAAwB,CAAA;AAErE,eAAO,MAAM,oBAAoB,EAE5B,iBAAiB,EAAE,CAAA"}
@@ -0,0 +1,57 @@
1
+ import type { FiatStepResponse } from '@funkit/connect-core';
2
+ import type { FlowPreviewSeed } from './flowPreview';
3
+ import { type PreviewScenarioEntry, type PreviewScenarioId } from './scenarioCatalog';
4
+ /** A canned `/fiat/*` answer: a step response, or an HTTP failure to provoke a retry. */
5
+ export type PreviewResponse = FiatStepResponse | {
6
+ status: number;
7
+ };
8
+ /**
9
+ * The fiat backend a scenario runs against, so a seeded screen stays put and its CTAs answer.
10
+ * - `quote` answers `POST /fiat/quote`; unset keeps the priced quote every rail starts from.
11
+ * - `responses` answer other endpoints by path; anything unlisted re-sends the step on screen.
12
+ */
13
+ /**
14
+ * The `reason` a scenario's quote is refused with, as fun-backend's `FiatNoRouteError` sends it.
15
+ * - All but `NO_CANDIDATE_LEGACY` follow fun-backend #4936 / #4875, which are not deployed yet.
16
+ */
17
+ export type PreviewNoRouteReason = 'NO_CANDIDATE_LEGACY' | 'NO_CANDIDATE' | 'KYC_INSUFFICIENT' | 'USER_LIMIT' | 'PROVIDER_OUTAGE';
18
+ export interface PreviewBackend {
19
+ quote?: FiatStepResponse;
20
+ minimum?: string;
21
+ /** Every quote is refused with this no-route reason. */
22
+ noRoute?: PreviewNoRouteReason;
23
+ /** The country → currency lookup fails, so no quote is ever asked for. */
24
+ currencyLookupFails?: boolean;
25
+ responses?: Readonly<Record<string, PreviewResponse>>;
26
+ }
27
+ export interface PreviewScenario extends PreviewScenarioEntry {
28
+ id: PreviewScenarioId;
29
+ seed: FlowPreviewSeed;
30
+ backend: PreviewBackend;
31
+ }
32
+ export declare const PREVIEW_SCENARIOS: Readonly<Record<PreviewScenarioId, PreviewScenario>>;
33
+ /** The step a scenario's fiat session opens on: its seed, else the quote the entry prices. */
34
+ export declare function scenarioStartStep(scenario: PreviewScenario): FiatStepResponse | undefined;
35
+ export declare const DEFAULT_PREVIEW_QUOTE: {
36
+ state: {
37
+ kind: "QUOTE";
38
+ quote: import("@funkit/connect-core").Quote;
39
+ limits: {
40
+ min: string;
41
+ max: string;
42
+ };
43
+ };
44
+ provider: "MOONPAY";
45
+ transitions: {
46
+ inputs?: Record<string, {
47
+ type: "TEXT";
48
+ }> | undefined;
49
+ id: string;
50
+ mode: "SUBMIT";
51
+ endpoint: "POST /fiat/session";
52
+ params: {
53
+ quoteRef: string;
54
+ };
55
+ }[];
56
+ };
57
+ //# sourceMappingURL=scenarios.d.ts.map
@@ -0,0 +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;CACxB;AA6bD,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;;;;;;;;;;;;kBAxcmB,MAAM;;;;;;;;;CAwchB,CAAA"}
@@ -5,6 +5,8 @@ interface FunkitI18nValue {
5
5
  /** Translate against the SDK's private i18next instance. */
6
6
  t: TFunction;
7
7
  locale: Locale;
8
+ /** The language `t` renders in; trails `locale` until a switch has applied. */
9
+ language: string;
8
10
  }
9
11
  export interface FunkitI18nProviderProps {
10
12
  children: ReactNode;
@@ -1 +1 @@
1
- {"version":3,"file":"FunkitI18nProvider.d.ts","sourceRoot":"","sources":["../../../src/providers/FunkitI18nProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AACxC,OAAO,EACL,KAAK,SAAS,EAMf,MAAM,OAAO,CAAA;AAEd,OAAO,EAAE,KAAK,MAAM,EAAuB,MAAM,iBAAiB,CAAA;AAElE,UAAU,eAAe;IACvB,4DAA4D;IAC5D,CAAC,EAAE,SAAS,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;CACf;AASD,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,SAAS,CAAA;IACnB,wCAAwC;IACxC,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,QAAQ,EACR,MAAa,GACd,EAAE,uBAAuB,+BAuBzB;AAED,+DAA+D;AAC/D,wBAAgB,oBAAoB,IAAI,eAAe,CAEtD"}
1
+ {"version":3,"file":"FunkitI18nProvider.d.ts","sourceRoot":"","sources":["../../../src/providers/FunkitI18nProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AACxC,OAAO,EACL,KAAK,SAAS,EAMf,MAAM,OAAO,CAAA;AAEd,OAAO,EAAE,KAAK,MAAM,EAAuB,MAAM,iBAAiB,CAAA;AAElE,UAAU,eAAe;IACvB,4DAA4D;IAC5D,CAAC,EAAE,SAAS,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,+EAA+E;IAC/E,QAAQ,EAAE,MAAM,CAAA;CACjB;AAaD,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,SAAS,CAAA;IACnB,wCAAwC;IACxC,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,QAAQ,EACR,MAAa,GACd,EAAE,uBAAuB,+BA0BzB;AAED,+DAA+D;AAC/D,wBAAgB,oBAAoB,IAAI,eAAe,CAEtD"}
@@ -14,11 +14,17 @@ export type FunkitCheckoutCallbacks = DepositFlowCallbacks & WithdrawalFlowCallb
14
14
  * surfaces.
15
15
  * `beginWithdrawal(config)` opens the fiat-offramp withdrawal flow (payout
16
16
  * methods → Swapped sell embed).
17
+ * `close`, `hide` and `resume` control the open flow from the host; see
18
+ * {@link FlowTransitions}. A `begin*` while a session is hidden replaces it.
17
19
  * `beginCheckout` will be added here as that flow lands, matching the web
18
20
  * surface.
19
21
  */
20
22
  export declare function useFunkitCheckout(callbacks?: FunkitCheckoutCallbacks): {
21
23
  beginDeposit: (config: DepositFlowConfig) => Promise<void>;
22
24
  beginWithdrawal: (config: WithdrawalFlowConfig) => void;
25
+ close: (options?: import("../..").FlowTransitionOptions) => Promise<boolean>;
26
+ hide: (options?: import("../..").FlowTransitionOptions) => Promise<boolean>;
27
+ resume: (options?: import("../..").FlowTransitionOptions) => Promise<boolean>;
28
+ isHidden: boolean;
23
29
  };
24
30
  //# sourceMappingURL=useFunkitCheckout.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useFunkitCheckout.d.ts","sourceRoot":"","sources":["../../../src/providers/useFunkitCheckout.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,oBAAoB,EACpB,iBAAiB,EAClB,MAAM,2BAA2B,CAAA;AAElC,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,8BAA8B,CAAA;AAErC,mFAAmF;AACnF,MAAM,MAAM,uBAAuB,GAAG,oBAAoB,GACxD,uBAAuB,CAAA;AAEzB;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,GAAE,uBAA4B;2BAK5D,iBAAiB;8BAKjB,oBAAoB;EAKhC"}
1
+ {"version":3,"file":"useFunkitCheckout.d.ts","sourceRoot":"","sources":["../../../src/providers/useFunkitCheckout.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,oBAAoB,EACpB,iBAAiB,EAClB,MAAM,2BAA2B,CAAA;AAGlC,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,8BAA8B,CAAA;AAErC,mFAAmF;AACnF,MAAM,MAAM,uBAAuB,GAAG,oBAAoB,GACxD,uBAAuB,CAAA;AAEzB;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,GAAE,uBAA4B;2BAQ5D,iBAAiB;8BAKjB,oBAAoB;;;;;EAMhC"}
@@ -1,7 +1,7 @@
1
1
  import { type ReactNode } from 'react';
2
2
  import { type AccountBalanceChipProps } from '../components/v2/AccountBalanceChip';
3
3
  import { type QuickAmountOption } from '../components/v2/QuickAmountsRow';
4
- export declare function depositActionsHeight(insetBottom: number): number;
4
+ import { type PaymentMethodPickerProps } from '../components/v2/PaymentMethodPicker';
5
5
  export interface DepositAmountScreenProps {
6
6
  title: string;
7
7
  /** Brand glyph beside the title (host-supplied). */
@@ -36,6 +36,11 @@ export interface DepositAmountScreenProps {
36
36
  feeAccessibilityLabel?: string;
37
37
  /** Badge on the fee line's leading side (e.g. an Apple Pay mark). */
38
38
  methodBadge?: ReactNode;
39
+ /**
40
+ * The selected payment method as a row above the action. It names the
41
+ * method itself, so the fee line moves above it and drops `methodBadge`.
42
+ */
43
+ paymentMethodPickerProps?: PaymentMethodPickerProps;
39
44
  /** Banner beneath the amount, e.g. an identity hold. */
40
45
  notice?: ReactNode;
41
46
  /** Consent copy beneath the keypad, replacing attribution while required. */
@@ -48,6 +53,8 @@ export interface DepositAmountScreenProps {
48
53
  submitLabel: string;
49
54
  canSubmit: boolean;
50
55
  onSubmit: () => void;
56
+ /** A round already under way: its loader holds the slot over everything else. */
57
+ renderPending?: () => ReactNode;
51
58
  /** Replaces the submit pill with provider UI. */
52
59
  renderSubmit?: () => ReactNode;
53
60
  amountAccessibilityLabel: string;
@@ -64,5 +71,5 @@ export interface DepositAmountScreenProps {
64
71
  * source's limit — answers with a side-to-side shake, a brief warning tint and
65
72
  * a haptic. While `disabled`, the input controls themselves are non-interactive.
66
73
  */
67
- export declare function DepositAmountScreen({ title, brandIcon, accountContext, input, onChangeInput, quickAmounts, limitUsd, minLimitUsd, disabled, fee, feePending, onPressFee, feeAccessibilityLabel, methodBadge, notice, disclosure, disclosurePending, submitLabel, canSubmit, onSubmit, renderSubmit, amountAccessibilityLabel, backspaceAccessibilityLabel, showAttribution, }: DepositAmountScreenProps): import("react").JSX.Element;
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;
68
75
  //# 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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e,CAAC,EAAE,OAAO,CAAA;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,MAAM,EACN,UAAU,EACV,iBAAyB,EACzB,WAAW,EACX,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,wBAAwB,EACxB,2BAA2B,EAC3B,eAAuB,GACxB,EAAE,wBAAwB,+BAgP1B"}
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,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,sFAAsF;IACtF,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,4DAA4D;IAC5D,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,8EAA8E;IAC9E,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,mEAAmE;IACn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ourceRoot":"","sources":["../../../src/screens/FeeDetailsScreen.tsx"],"names":[],"mappings":"AA+BA,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":"AAgCA,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"}
@@ -6,11 +6,13 @@ export interface TokenAndChainPickerScreenProps {
6
6
  initialSelection?: PickerSelection;
7
7
  loading?: boolean;
8
8
  onConfirm: (selection: PickerSelection) => void;
9
+ /** The pair Confirm would commit right now, or undefined while either half is still open. */
10
+ onDraftChange?: (selection: PickerSelection | undefined) => void;
9
11
  onBack: () => void;
10
12
  }
11
13
  /**
12
14
  * Wrappers own the outer sheet frame. The full list overlays this screen so
13
15
  * its draft survives until Confirm commits or Back discards it.
14
16
  */
15
- export declare function TokenAndChainPickerScreen({ title, tokens, chains, initialSelection, loading, onConfirm, onBack, }: TokenAndChainPickerScreenProps): import("react").JSX.Element;
17
+ export declare function TokenAndChainPickerScreen({ title, tokens, chains, initialSelection, loading, onConfirm, onDraftChange, onBack, }: TokenAndChainPickerScreenProps): import("react").JSX.Element;
16
18
  //# sourceMappingURL=TokenAndChainPickerScreen.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TokenAndChainPickerScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/TokenAndChainPickerScreen.tsx"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EACV,WAAW,EACX,eAAe,EACf,WAAW,EACZ,MAAM,8BAA8B,CAAA;AAGrC,MAAM,WAAW,8BAA8B;IAC7C,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,WAAW,EAAE,CAAA;IACrB,MAAM,EAAE,WAAW,EAAE,CAAA;IACrB,gBAAgB,CAAC,EAAE,eAAe,CAAA;IAClC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,SAAS,EAAE,CAAC,SAAS,EAAE,eAAe,KAAK,IAAI,CAAA;IAC/C,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,CAAC,EACxC,KAAK,EACL,MAAM,EACN,MAAM,EACN,gBAAgB,EAChB,OAAe,EACf,SAAS,EACT,MAAM,GACP,EAAE,8BAA8B,+BAoNhC"}
1
+ {"version":3,"file":"TokenAndChainPickerScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/TokenAndChainPickerScreen.tsx"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EACV,WAAW,EACX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AC,EAAE,OAAO,CAAA;IAC9B;;;OAGG;IACH,iBAAiB,EAAE,MAAM,CAAA;IACzB,sEAAsE;IACtE,kBAAkB,EAAE,mBAAmB,CAAA;IACvC,WAAW,EAAE,CAAC,MAAM,EAAE;QACpB,oBAAoB,EAAE,oBAAoB,CAAA;QAC1C,WAAW,EAAE,MAAM,CAAA;QACnB,2EAA2E;QAC3E,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;QAC5B,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;KAC/B,KAAK,IAAI,CAAA;CACX,+BAuOA"}
@@ -48,6 +48,21 @@ export declare const DEPOSIT_METRICS: {
48
48
  readonly width: 56.6;
49
49
  readonly height: 24;
50
50
  };
51
+ readonly paymentMethodPicker: {
52
+ readonly top: 412;
53
+ readonly height: 68;
54
+ readonly radius: 26;
55
+ readonly leadingWidth: 68;
56
+ readonly labelInsetWithoutIcon: 20;
57
+ readonly iconSize: 26;
58
+ readonly trailingWidth: 56;
59
+ readonly chevronSize: 20;
60
+ readonly labelSize: 17;
61
+ readonly labelLineHeight: 22;
62
+ readonly labelTracking: -0.425;
63
+ readonly amountCenterY: 253;
64
+ readonly feeGap: 20;
65
+ };
51
66
  readonly notice: {
52
67
  readonly bottom: 126;
53
68
  };
@@ -96,17 +111,39 @@ export declare const DEPOSIT_METRICS: {
96
111
  readonly bottomGap: 24;
97
112
  readonly height: 28;
98
113
  };
114
+ readonly feeDrawer: {
115
+ readonly height: 369;
116
+ };
99
117
  readonly watermarkTop: 818;
100
118
  };
101
119
  export declare function depositSideMargin(width: number): number;
102
120
  export declare const DEPOSIT_ACTIONS_HEIGHT: number;
121
+ /**
122
+ * With a method picker the action area starts at the picker's top, and the fee
123
+ * line moves from the picker's row to above it.
124
+ */
125
+ export declare function depositActionsHeight(hasPaymentMethodPicker: boolean): number;
126
+ /** The fee line's distance from the action area's foot. */
127
+ export declare function depositFeeRowBottom(hasPaymentMethodPicker: boolean): number;
128
+ /** The notice keeps its place above the fee line wherever the fee line sits. */
129
+ export declare function depositNoticeBottom(hasPaymentMethodPicker: boolean): number;
130
+ /**
131
+ * Above a picker the fee line stands outside the action area, so its height
132
+ * has to be kept clear of the amount like a notice's.
133
+ */
134
+ export declare function depositFeeOverhang(hasPaymentMethodPicker: boolean): number;
103
135
  /**
104
136
  * The notice is pinned above the action row and is taller than the row itself,
105
137
  * so the part standing proud of it has to be kept clear of the amount.
106
138
  */
107
- export declare function depositNoticeOverhang(noticeHeight: number): number;
139
+ export declare function depositNoticeOverhang(noticeHeight: number, hasPaymentMethodPicker?: boolean): number;
108
140
  export declare function depositNumpadBottom(insetBottom: number): number;
109
- export declare function depositAmountCenter(height: number, insetTop: number, insetBottom: number, noticeOverhang?: number): number;
141
+ /**
142
+ * The fee drawer's floor: its top clears the CTA's top edge by the design's
143
+ * overlap, however few rows it holds, so no band of the button shows under it.
144
+ */
145
+ export declare function feeDrawerMinHeight(insetBottom: number): number;
146
+ export declare function depositAmountCenter(height: number, insetTop: number, insetBottom: number, noticeOverhang?: number, hasPaymentMethodPicker?: boolean): number;
110
147
  /** Minimum canvas that keeps the amount, actions and keypad from overlapping. */
111
- export declare function depositMinimumHeight(insetTop: number, insetBottom: number): number;
148
+ export declare function depositMinimumHeight(insetTop: number, insetBottom: number, hasPaymentMethodPicker?: boolean): number;
112
149
  //# sourceMappingURL=depositMetrics.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"depositMetrics.d.ts","sourceRoot":"","sources":["../../../src/screens/depositMetrics.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0ElB,CAAA;AAEV,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAIvD;AAED,eAAO,MAAM,sBAAsB,QAGP,CAAA;AAE5B;;;GAGG;AACH,wB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AACH,wBAAgB,kBAAkB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAU9D;AAED,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,EACnB,cAAc,SAAI,EAClB,sBAAsB,UAAQ,GAC7B,MAAM,CAkCR;AAED,iFAAiF;AACjF,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,EACnB,sBAAsB,UAAQ,GAC7B,MAAM,CAaR"}
@@ -1 +1 @@
1
- {"version":3,"file":"SwappedWebView.d.ts","sourceRoot":"","sources":["../../../src/swapped/SwappedWebView.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,qBAAqB,EAE3B,MAAM,sBAAsB,CAAA;AAG7B,OAAO,EAKL,KAAK,SAAS,EACf,MAAM,cAAc,CAAA;AAkBrB,MAAM,WAAW,mBAAmB;IAClC,4EAA4E;IAC5E,GAAG,EAAE,MAAM,CAAA;IACX,+DAA+D;IAC/D,SAAS,EAAE,CAAC,GAAG,EAAE,qBAAqB,KAAK,IAAI,CAAA;IAC/C;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,KAAK,CAAC,EAAE,SAAS,CAAA;CAClB;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,EAC7B,GAAG,EACH,SAAS,EACT,MAAM,EACN,KAAK,GACN,EAAE,mBAAmB,+BAqPrB"}
1
+ {"version":3,"file":"SwappedWebView.d.ts","sourceRoot":"","sources":["../../../src/swapped/SwappedWebView.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,qBAAqB,EAE3B,MAAM,sBAAsB,CAAA;AAG7B,OAAO,EAKL,KAAK,SAAS,EACf,MAAM,cAAc,CAAA;AAkBrB,MAAM,WAAW,mBAAmB;IAClC,4EAA4E;IAC5E,GAAG,EAAE,MAAM,CAAA;IACX,+DAA+D;IAC/D,SAAS,EAAE,CAAC,GAAG,EAAE,qBAAqB,KAAK,IAAI,CAAA;IAC/C;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,KAAK,CAAC,EAAE,SAAS,CAAA;CAClB;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,EAC7B,GAAG,EACH,SAAS,EACT,MAAM,EACN,KAAK,GACN,EAAE,mBAAmB,+BA6OrB"}