@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,30 @@
1
+ import type { Surface } from '@funkit/connect-core';
2
+ /**
3
+ * Typed reads of one claimed surface's `params`. Each getter returns
4
+ * `undefined` for a field of the wrong shape, so an adapter declines the
5
+ * surface instead of throwing at render.
6
+ */
7
+ export interface SurfaceParams {
8
+ /** The field as sent, for a shape no getter covers. */
9
+ value: (key: string) => unknown;
10
+ string: (key: string) => string | undefined;
11
+ nonEmptyString: (key: string) => string | undefined;
12
+ record: (key: string) => Record<string, unknown> | undefined;
13
+ /**
14
+ * A URL the app loads or opens, returned exactly as sent.
15
+ *
16
+ * - Anything but `https://` is refused: these load in WebViews with Apple Pay
17
+ * on, or go to the OS, where another scheme opens an arbitrary deep link.
18
+ */
19
+ httpsUrl: (key: string) => string | undefined;
20
+ }
21
+ export declare function isRecord(value: unknown): value is Record<string, unknown>;
22
+ /**
23
+ * The params of a surface this adapter claims, or `undefined` when `kind` and
24
+ * `provider` do not match.
25
+ *
26
+ * - The contract requires `params`, but no response is validated before it
27
+ * reaches an adapter, so an absent one must fail the match rather than throw.
28
+ */
29
+ export declare function readSurfaceParams(surface: Surface, kind: Surface['kind'], provider: Surface['provider']): SurfaceParams | undefined;
30
+ //# sourceMappingURL=surfaceParams.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"surfaceParams.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/surfaceParams.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAInD;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B,uDAAuD;IACvD,KAAK,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAA;IAC/B,MAAM,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAA;IAC3C,cAAc,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAA;IACnD,MAAM,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAA;IAC5D;;;;;OAKG;IACH,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAA;CAC9C;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAEzE;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,EACrB,QAAQ,EAAE,OAAO,CAAC,UAAU,CAAC,GAC5B,aAAa,GAAG,SAAS,CAyC3B"}
@@ -1 +1 @@
1
- {"version":3,"file":"transakApplePay.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/transakApplePay.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,WAAW,CAAA;AA4C/D,mEAAmE;AACnE,eAAO,MAAM,eAAe,EAAE,cAO7B,CAAA"}
1
+ {"version":3,"file":"transakApplePay.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/transakApplePay.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,WAAW,CAAA;AAwC/D,mEAAmE;AACnE,eAAO,MAAM,eAAe,EAAE,cAO7B,CAAA"}
@@ -21,15 +21,5 @@ export interface StripeOnrampConfig {
21
21
  /** Deep-link scheme Stripe returns to after a redirect (3DS, KYC). */
22
22
  urlScheme?: string;
23
23
  }
24
- /**
25
- * Binds Stripe's native SDK to the {@link StripeOnrampClient} the fiat surfaces
26
- * call. Takes the SDK as an argument because it is an optional peer, loaded by
27
- * `StripeOnrampBridge` only after a host configured Stripe.
28
- *
29
- * `initStripe` is idempotent per config but not free, so it runs once per
30
- * distinct config and every call awaits that same promise — the SDK rejects
31
- * calls made before it resolves. A failed init clears the cache so the next
32
- * call retries rather than latching the failure forever.
33
- */
34
24
  export declare function useStripeOnrampClient({ initStripe, isPlatformPaySupported, useOnramp }: StripeSdk, config: StripeOnrampConfig): StripeOnrampClient;
35
25
  //# sourceMappingURL=useStripeOnrampClient.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useStripeOnrampClient.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/useStripeOnrampClient.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AACxD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAE5C;;;;;;GAMG;AACH,MAAM,WAAW,kBAAkB;IACjC,sEAAsE;IACtE,cAAc,EAAE,MAAM,CAAA;IACtB,wEAAwE;IACxE,mBAAmB,EAAE,MAAM,CAAA;IAC3B;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,sEAAsE;IACtE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CACnC,EAAE,UAAU,EAAE,sBAAsB,EAAE,SAAS,EAAE,EAAE,SAAS,EAC5D,MAAM,EAAE,kBAAkB,GACzB,kBAAkB,CA0JpB"}
1
+ {"version":3,"file":"useStripeOnrampClient.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/useStripeOnrampClient.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AACxD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAE5C;;;;;;GAMG;AACH,MAAM,WAAW,kBAAkB;IACjC,sEAAsE;IACtE,cAAc,EAAE,MAAM,CAAA;IACtB,wEAAwE;IACxE,mBAAmB,EAAE,MAAM,CAAA;IAC3B;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,sEAAsE;IACtE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAcD,wBAAgB,qBAAqB,CACnC,EAAE,UAAU,EAAE,sBAAsB,EAAE,SAAS,EAAE,EAAE,SAAS,EAC5D,MAAM,EAAE,kBAAkB,GACzB,kBAAkB,CA8JpB"}
@@ -0,0 +1,42 @@
1
+ import { type SubmitTransition } from '@funkit/connect-core';
2
+ import type { StripeOnrampClient } from './stripeOnramp';
3
+ /** Stripe's Link sign-in round, as the flow offers it. */
4
+ export interface StripeSessionAuthRound {
5
+ stripe: StripeOnrampClient;
6
+ verifiedEmail: string;
7
+ transition: SubmitTransition;
8
+ /**
9
+ * Whether arriving here is the buyer's own doing. False once they have dismissed Stripe's sheet:
10
+ * the round comes back offering `start` again, and starting on arrival reopens the sheet they
11
+ * just closed.
12
+ */
13
+ autoStart: boolean;
14
+ onSubmit: (transition: SubmitTransition) => Promise<void>;
15
+ }
16
+ /**
17
+ * The Link round's `/fiat/session` post, held by the flow rather than by a page.
18
+ *
19
+ * The round asks the buyer for nothing, so while it runs it draws nothing either: the quote stays
20
+ * up with its action pending, and Stripe's sheet opens over it. As a page of its own it drew a copy
21
+ * of the quote, so the flow turned to that copy and straight back as the sheet opened. Only a
22
+ * declined or failed round has a screen, `StripeSessionAuthScreen`.
23
+ */
24
+ export declare function useStripeSessionAuth(): {
25
+ isSubmitting: boolean;
26
+ errorMessage: string | undefined;
27
+ /**
28
+ * Whether the round is running, or about to on arrival. The first paint
29
+ * already counts, so it cannot flash the declined screen before the start.
30
+ */
31
+ isPending: (round: StripeSessionAuthRound) => boolean;
32
+ begin: (round: StripeSessionAuthRound) => void;
33
+ continueAuth: (round: StripeSessionAuthRound) => undefined;
34
+ };
35
+ /**
36
+ * Starts the round from where the flow draws it, so it starts only when the
37
+ * flow has actually reached the round, not whenever its state says SESSION_AUTH.
38
+ */
39
+ export declare function StripeSessionAuthStarter({ onStart }: {
40
+ onStart: () => void;
41
+ }): null;
42
+ //# sourceMappingURL=useStripeSessionAuth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useStripeSessionAuth.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/useStripeSessionAuth.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,gBAAgB,EAAkB,MAAM,sBAAsB,CAAA;AAM5E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAExD,0DAA0D;AAC1D,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,kBAAkB,CAAA;IAC1B,aAAa,EAAE,MAAM,CAAA;IACrB,UAAU,EAAE,gBAAgB,CAAA;IAC5B;;;;OAIG;IACH,SAAS,EAAE,OAAO,CAAA;IAClB,QAAQ,EAAE,CAAC,UAAU,EAAE,gBAAgB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;CAC1D;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB;;;IA6HhC;;;OAGG;uBACgB,sBAAsB;mBAjBjC,sBAAsB;0BAqBR,sBAAsB;EAE/C;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,QAM5E"}
@@ -0,0 +1,11 @@
1
+ import type { FiatQuoteNoRoute } from '@funkit/connect-core';
2
+ import type { TFunction } from 'i18next';
3
+ /**
4
+ * What the entry's disabled button says when no provider will price the
5
+ * quote and asking again cannot change that.
6
+ *
7
+ * - Undefined for a retryable refusal, which keeps "Try again".
8
+ * - The amount stays editable under it, and a new amount is a new quote.
9
+ */
10
+ export declare function noRouteCtaLabel(noRoute: FiatQuoteNoRoute | undefined, paymentMethod: string, t: TFunction): string | undefined;
11
+ //# sourceMappingURL=quoteNoRoute.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quoteNoRoute.d.ts","sourceRoot":"","sources":["../../../src/fiat/quoteNoRoute.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAC5D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAIxC;;;;;;GAMG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,gBAAgB,GAAG,SAAS,EACrC,aAAa,EAAE,MAAM,EACrB,CAAC,EAAE,SAAS,GACX,MAAM,GAAG,SAAS,CAcpB"}
@@ -10,6 +10,8 @@ export declare function SurfaceHosts({ children }: {
10
10
  * Asked before rendering, because the two models want different chrome.
11
11
  */
12
12
  export declare function captureControl(surface: Surface, adapters?: readonly SurfaceAdapter[]): SurfaceControlModel | undefined;
13
+ /** See {@link ClaimedSurface.reopenableUntil}. */
14
+ export declare function captureReopenableUntil(surface: Surface, adapters?: readonly SurfaceAdapter[]): number | undefined;
13
15
  /**
14
16
  * `adapters` are tried before the registry, for a screen that can build one
15
17
  * the registry cannot — the identity SDK needs the quote its capture belongs
@@ -1 +1 @@
1
- {"version":3,"file":"renderCaptureSurface.d.ts","sourceRoot":"","sources":["../../../src/fiat/renderCaptureSurface.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,OAAO,KAAK,EAEV,cAAc,EACd,cAAc,EACd,mBAAmB,EAEpB,MAAM,qBAAqB,CAAA;AAsB5B,gFAAgF;AAChF,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,aAKjE;AAmBD;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE,OAAO,EAChB,QAAQ,GAAE,SAAS,cAAc,EAAO,GACvC,mBAAmB,GAAG,SAAS,CAEjC;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,OAAO,EACP,QAAQ,EACR,GAAG,OAAO,EACX,EAAE,cAAc,GAAG;IAClB,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,CAAC,EAAE,SAAS,cAAc,EAAE,CAAA;CACrC,GAAG,SAAS,CAEZ"}
1
+ {"version":3,"file":"renderCaptureSurface.d.ts","sourceRoot":"","sources":["../../../src/fiat/renderCaptureSurface.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,OAAO,KAAK,EAEV,cAAc,EACd,cAAc,EACd,mBAAmB,EAEpB,MAAM,qBAAqB,CAAA;AAsB5B,gFAAgF;AAChF,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,aAKjE;AAmBD;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE,OAAO,EAChB,QAAQ,GAAE,SAAS,cAAc,EAAO,GACvC,mBAAmB,GAAG,SAAS,CAEjC;AAED,kDAAkD;AAClD,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,OAAO,EAChB,QAAQ,GAAE,SAAS,cAAc,EAAO,GACvC,MAAM,GAAG,SAAS,CAEpB;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,OAAO,EACP,QAAQ,EACR,GAAG,OAAO,EACX,EAAE,cAAc,GAAG;IAClB,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,CAAC,EAAE,SAAS,cAAc,EAAE,CAAA;CACrC,GAAG,SAAS,CAEZ"}
@@ -1,5 +1,5 @@
1
1
  import type { TFunction } from 'i18next';
2
- import type { KycSection } from './formLayout';
2
+ import type { KycSection, KycSectionPage } from './formLayout';
3
3
  /**
4
4
  * The line under the title on one page. The title itself never changes, so
5
5
  * this is what says which details the page is asking for.
@@ -8,4 +8,11 @@ import type { KycSection } from './formLayout';
8
8
  * 1631:7883.
9
9
  */
10
10
  export declare function sectionDetail(section: KycSection, t: TFunction): string;
11
+ /**
12
+ * The page's line. A country page may hold only the tax residence, which is
13
+ * not the address's country, so it keeps the section's generic line.
14
+ */
15
+ export declare function pageDetail(page: KycSectionPage, t: TFunction): string;
16
+ /** Why a country is asked for, set under the page's fields. */
17
+ export declare function pageNote(page: KycSectionPage, t: TFunction): string | undefined;
11
18
  //# sourceMappingURL=sectionDetail.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sectionDetail.d.ts","sourceRoot":"","sources":["../../../src/fiat/sectionDetail.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAE9C;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,UAAU,EAAE,CAAC,EAAE,SAAS,GAAG,MAAM,CA+BvE"}
1
+ {"version":3,"file":"sectionDetail.d.ts","sourceRoot":"","sources":["../../../src/fiat/sectionDetail.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAE9D;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,UAAU,EAAE,CAAC,EAAE,SAAS,GAAG,MAAM,CA+BvE;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,cAAc,EAAE,CAAC,EAAE,SAAS,GAAG,MAAM,CAIrE;AAED,+DAA+D;AAC/D,wBAAgB,QAAQ,CACtB,IAAI,EAAE,cAAc,EACpB,CAAC,EAAE,SAAS,GACX,MAAM,GAAG,SAAS,CAQpB"}
@@ -0,0 +1,17 @@
1
+ import type { KycSection } from './formLayout';
2
+ import type { KycFieldIssue } from './kycFormState';
3
+ export interface PageFieldState {
4
+ id: string;
5
+ issue: KycFieldIssue | undefined;
6
+ isBlurred: boolean;
7
+ value: string;
8
+ }
9
+ /**
10
+ * The refusals a page wears, by field id, in page order.
11
+ *
12
+ * - Every page shows its refusals once it has been tried.
13
+ * - The address page also judges a field as it is left with a value, and
14
+ * highlights only the first refused field (2334:7471's annotation).
15
+ */
16
+ export declare function shownFieldIssues(section: KycSection, attempted: boolean, fields: readonly PageFieldState[]): Map<string, KycFieldIssue>;
17
+ //# sourceMappingURL=shownFieldIssues.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shownFieldIssues.d.ts","sourceRoot":"","sources":["../../../src/fiat/shownFieldIssues.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAC9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAEnD,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,aAAa,GAAG,SAAS,CAAA;IAChC,SAAS,EAAE,OAAO,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;CACd;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,UAAU,EACnB,SAAS,EAAE,OAAO,EAClB,MAAM,EAAE,SAAS,cAAc,EAAE,GAChC,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CAsB5B"}
@@ -1,6 +1,13 @@
1
- import type { FailureReason, FiatFlow, Quote } from '@funkit/connect-core';
1
+ import type { FailureReason, FiatFlow, FiatProvider, Quote } from '@funkit/connect-core';
2
2
  import type { TFunction } from 'i18next';
3
3
  import type { FeeDetailsRow } from '../screens/FeeDetailsScreen';
4
+ /** Fields needed by the amount screen's fee disclosure, including provider-authenticated quotes. */
5
+ export type FeeQuote = Pick<Quote, 'totalFee'> & {
6
+ fiat: {
7
+ amount: string;
8
+ currency: string;
9
+ };
10
+ };
4
11
  /**
5
12
  * The live quote's fee, worded exactly as the static step words its computed
6
13
  * one. The screen fades the whole line while a re-quote is due, so there is
@@ -8,7 +15,7 @@ import type { FeeDetailsRow } from '../screens/FeeDetailsScreen';
8
15
  * No fee renders until a quote priced this amount; the empty state keeps the
9
16
  * quick amounts up instead.
10
17
  */
11
- export declare function quoteFee(quote: Quote | undefined, amount: string, t: TFunction): string | undefined;
18
+ export declare function quoteFee(quote: FeeQuote | undefined, amount: string, t: TFunction): string | undefined;
12
19
  /** The state's own recovery, when its step response carries one. */
13
20
  export declare function recoveryCta(flow: FiatFlow, t: TFunction): {
14
21
  label: string;
@@ -26,29 +33,21 @@ export declare function reviewDetail(flow: FiatFlow): string | undefined;
26
33
  * labels: those name the rail ("Coinbase fee"), which the drawer must not,
27
34
  * and only the total keeps the three rows adding up.
28
35
  */
29
- export declare function quoteFeeRows(quote: Quote | undefined, t: TFunction): FeeDetailsRow[];
36
+ export declare function quoteFeeRows(quote: FeeQuote | undefined, t: TFunction, provider?: FiatProvider): FeeDetailsRow[];
37
+ /** Whether the quote charges nothing — the one case the drawer carries the mark. */
38
+ export declare function quoteFeesFree(quote: FeeQuote | undefined): boolean;
30
39
  /** The rail disclosure, priced from the quote rather than host configuration. */
31
- export declare function quoteFeeSummary(quote: Quote | undefined, method: string | undefined, t: TFunction): string | undefined;
40
+ export declare function quoteFeeSummary(quote: FeeQuote | undefined, method: string | undefined, t: TFunction, provider?: FiatProvider): string | undefined;
32
41
  /**
33
42
  * A step's own error, worded for the banner it renders as. The contract sends
34
43
  * no message — `code` is a copy key — so the category is what the copy keys off.
35
44
  */
36
45
  export declare function roundErrorMessage(error: FailureReason | undefined, t: TFunction, provider?: string): string | undefined;
37
- /**
38
- * A cooling-off hold's comeback date, worded as the ISO day it names.
39
- *
40
- * The day rather than the instant, and unformatted: connect-rn takes no Intl
41
- * dependency, and a locale-guessed date is worse than an unambiguous one.
42
- */
43
- export declare function onHoldDetail(flow: FiatFlow, t: TFunction): string;
44
- /** Preserve an explicit cooling-off deadline alongside the R2 receipt. */
45
- export declare function kycHoldRetryDetail(flow: FiatFlow, t: TFunction): string | undefined;
46
46
  /**
47
47
  * What a rejection leaves the user. Only the terminal variant carries a
48
48
  * recovery, and support is the only one it names.
49
49
  */
50
50
  export declare function rejectedDetail(flow: FiatFlow, t: TFunction): string | undefined;
51
- export declare function blockedRetryDetail(flow: FiatFlow): string | undefined;
52
51
  /** The marker a KYC round carries when its quote lapsed while the form was open. */
53
52
  export declare function isExpiredQuoteMarker(error: FailureReason): boolean;
54
53
  /** The recipient as the buyer knows it; the wire id is upper case. */
@@ -1 +1 @@
1
- {"version":3,"file":"stepDetails.d.ts","sourceRoot":"","sources":["../../../src/fiat/stepDetails.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAC1E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAA;AAIhE;;;;;;GAMG;AACH,wBAAgB,QAAQ,CACtB,KAAK,EAAE,KAAK,GAAG,SAAS,EACxB,MAAM,EAAE,MAAM,EACd,CAAC,EAAE,SAAS,GACX,MAAM,GAAG,SAAS,CAQpB;AAED,oEAAoE;AACpE,wBAAgB,WAAW,CACzB,IAAI,EAAE,QAAQ,EACd,CAAC,EAAE,SAAS,GACX;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,GAAG,SAAS,CA0BpD;AAED,qDAAqD;AACrD,wBAAgB,YAAY,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,GAAG,SAAS,CAM/D;AAED;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,KAAK,GAAG,SAAS,EACxB,CAAC,EAAE,SAAS,GACX,aAAa,EAAE,CAyBjB;AAED,iFAAiF;AACjF,wBAAgB,eAAe,CAC7B,KAAK,EAAE,KAAK,GAAG,SAAS,EACxB,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,CAAC,EAAE,SAAS,GACX,MAAM,GAAG,SAAS,CAkBpB;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,aAAa,GAAG,SAAS,EAChC,CAAC,EAAE,SAAS,EACZ,QAAQ,CAAC,EAAE,MAAM,GAChB,MAAM,GAAG,SAAS,CA+BpB;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,QAAQ,EAAE,CAAC,EAAE,SAAS,GAAG,MAAM,CAKjE;AAED,0EAA0E;AAC1E,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,QAAQ,EACd,CAAC,EAAE,SAAS,GACX,MAAM,GAAG,SAAS,CAGpB;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,QAAQ,EACd,CAAC,EAAE,SAAS,GACX,MAAM,GAAG,SAAS,CAQpB;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,GAAG,SAAS,CAKrE;AAkBD,oFAAoF;AACpF,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,aAAa,GAAG,OAAO,CAElE;AAED,sEAAsE;AACtE,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAKjE"}
1
+ {"version":3,"file":"stepDetails.d.ts","sourceRoot":"","sources":["../../../src/fiat/stepDetails.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,QAAQ,EACR,YAAY,EACZ,KAAK,EACN,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAA;AAQhE,oGAAoG;AACpG,MAAM,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,EAAE,UAAU,CAAC,GAAG;IAC/C,IAAI,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAA;CAC3C,CAAA;AAED;;;;;;GAMG;AACH,wBAAgB,QAAQ,CACtB,KAAK,EAAE,QAAQ,GAAG,SAAS,EAC3B,MAAM,EAAE,MAAM,EACd,CAAC,EAAE,SAAS,GACX,MAAM,GAAG,SAAS,CAQpB;AAED,oEAAoE;AACpE,wBAAgB,WAAW,CACzB,IAAI,EAAE,QAAQ,EACd,CAAC,EAAE,SAAS,GACX;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,GAAG,SAAS,CA0BpD;AAED,qDAAqD;AACrD,wBAAgB,YAAY,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,GAAG,SAAS,CAM/D;AAED;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,QAAQ,GAAG,SAAS,EAC3B,CAAC,EAAE,SAAS,EACZ,QAAQ,CAAC,EAAE,YAAY,GACtB,aAAa,EAAE,CA4BjB;AAyBD,oFAAoF;AACpF,wBAAgB,aAAa,CAAC,KAAK,EAAE,QAAQ,GAAG,SAAS,GAAG,OAAO,CAElE;AAED,iFAAiF;AACjF,wBAAgB,eAAe,CAC7B,KAAK,EAAE,QAAQ,GAAG,SAAS,EAC3B,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,CAAC,EAAE,SAAS,EACZ,QAAQ,CAAC,EAAE,YAAY,GACtB,MAAM,GAAG,SAAS,CAwBpB;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,aAAa,GAAG,SAAS,EAChC,CAAC,EAAE,SAAS,EACZ,QAAQ,CAAC,EAAE,MAAM,GAChB,MAAM,GAAG,SAAS,CA+BpB;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,QAAQ,EACd,CAAC,EAAE,SAAS,GACX,MAAM,GAAG,SAAS,CAQpB;AAED,oFAAoF;AACpF,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,aAAa,GAAG,OAAO,CAElE;AAED,sEAAsE;AACtE,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAKjE"}
@@ -12,4 +12,10 @@ export declare function regionOptions(fieldId: string, alpha2: string | undefine
12
12
  id: string;
13
13
  labelFallback: string;
14
14
  }[] | undefined;
15
+ /**
16
+ * Whether a picked state survives a move of the residence country.
17
+ * - Kept only where the new country lists the same code; anywhere else the
18
+ * picker would draw it blank while the store still posted it.
19
+ */
20
+ export declare function keepsRegion(region: string, alpha2: string | undefined): boolean;
15
21
  //# sourceMappingURL=subdivisions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"subdivisions.d.ts","sourceRoot":"","sources":["../../../src/fiat/subdivisions.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,MAAM,GAAG,SAAS,GACzB;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,CAAA;CAAE,EAAE,GAAG,SAAS,CAcrD;AAED,4EAA4E;AAC5E,wBAAgB,aAAa,CAC3B,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,GAAG,SAAS,GACzB;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,CAAA;CAAE,EAAE,GAAG,SAAS,CAIrD"}
1
+ {"version":3,"file":"subdivisions.d.ts","sourceRoot":"","sources":["../../../src/fiat/subdivisions.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,MAAM,GAAG,SAAS,GACzB;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,CAAA;CAAE,EAAE,GAAG,SAAS,CAcrD;AAED,4EAA4E;AAC5E,wBAAgB,aAAa,CAC3B,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,GAAG,SAAS,GACzB;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,CAAA;CAAE,EAAE,GAAG,SAAS,CAIrD;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CACzB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,GAAG,SAAS,GACzB,OAAO,CAMT"}
@@ -0,0 +1,20 @@
1
+ import type { SessionContactField } from './sessionContact';
2
+ /**
3
+ * Submits a number that arrived whole (a paste or AutoFill); a typed one
4
+ * waits for Continue.
5
+ *
6
+ * - Runs on the render after the insert, once the flow holds the new number:
7
+ * submitting from the edit itself would send the previous one.
8
+ * - A step that also asks for an address waits for it, so it keeps the tap.
9
+ */
10
+ export declare function useContactAutoSubmit({ fields, insertedEdits, country, isComplete, rejected, isSubmitting, onSubmit, }: {
11
+ fields: readonly SessionContactField[];
12
+ /** Bumped on each whole-number insert, so each one is judged exactly once. */
13
+ insertedEdits: number;
14
+ country: string;
15
+ isComplete: boolean;
16
+ rejected: boolean;
17
+ isSubmitting: boolean;
18
+ onSubmit: () => void;
19
+ }): void;
20
+ //# sourceMappingURL=useContactAutoSubmit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useContactAutoSubmit.d.ts","sourceRoot":"","sources":["../../../src/fiat/useContactAutoSubmit.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;AAE3D;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,MAAM,EACN,aAAa,EACb,OAAO,EACP,UAAU,EACV,QAAQ,EACR,YAAY,EACZ,QAAQ,GACT,EAAE;IACD,MAAM,EAAE,SAAS,mBAAmB,EAAE,CAAA;IACtC,8EAA8E;IAC9E,aAAa,EAAE,MAAM,CAAA;IACrB,OAAO,EAAE,MAAM,CAAA;IACf,UAAU,EAAE,OAAO,CAAA;IACnB,QAAQ,EAAE,OAAO,CAAA;IACjB,YAAY,EAAE,OAAO,CAAA;IACrB,QAAQ,EAAE,MAAM,IAAI,CAAA;CACrB,QAYA"}
@@ -1,9 +1,10 @@
1
1
  import type { EntryCta, FiatProvider } from '@funkit/connect-core';
2
- export declare function useFiatCheckoutPreparation({ provider, paymentMethod, entryCta, quoteRef, ready, prepare, }: {
2
+ export declare function useFiatCheckoutPreparation({ provider, paymentMethod, entryCta, quoteRef, quoteEntryOnly, ready, prepare, }: {
3
3
  paymentMethod: string;
4
4
  provider: FiatProvider | undefined;
5
5
  entryCta: EntryCta;
6
6
  quoteRef: string | undefined;
7
+ quoteEntryOnly?: boolean;
7
8
  ready: boolean;
8
9
  prepare: () => void;
9
10
  }): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"useFiatCheckoutPreparation.d.ts","sourceRoot":"","sources":["../../../src/fiat/useFiatCheckoutPreparation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,YAAY,EAEb,MAAM,sBAAsB,CAAA;AAwD7B,wBAAgB,0BAA0B,CAAC,EACzC,QAAQ,EACR,aAAa,EACb,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,OAAO,GACR,EAAE;IACD,aAAa,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,YAAY,GAAG,SAAS,CAAA;IAClC,QAAQ,EAAE,QAAQ,CAAA;IAClB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,KAAK,EAAE,OAAO,CAAA;IACd,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB,GAAG,OAAO,CAkCV"}
1
+ {"version":3,"file":"useFiatCheckoutPreparation.d.ts","sourceRoot":"","sources":["../../../src/fiat/useFiatCheckoutPreparation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,YAAY,EAEb,MAAM,sBAAsB,CAAA;AAyD7B,wBAAgB,0BAA0B,CAAC,EACzC,QAAQ,EACR,aAAa,EACb,QAAQ,EACR,QAAQ,EACR,cAAc,EACd,KAAK,EACL,OAAO,GACR,EAAE;IACD,aAAa,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,YAAY,GAAG,SAAS,CAAA;IAClC,QAAQ,EAAE,QAAQ,CAAA;IAClB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,KAAK,EAAE,OAAO,CAAA;IACd,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB,GAAG,OAAO,CA6CV"}
@@ -0,0 +1,16 @@
1
+ import type { FiatFlow } from '@funkit/connect-core';
2
+ /**
3
+ * Counts document-capture rounds, for keying the capture page.
4
+ *
5
+ * - A capture page carries no id, so a re-issued round (Stripe's L2 retry)
6
+ * keeps the old page identity and the SDK sheet never reopens.
7
+ * - Only an answer to our own report counts: a poll repeating the state must
8
+ * not remount an SDK the buyer is still in.
9
+ */
10
+ export declare function useKycCaptureRound(flow: FiatFlow): {
11
+ round: number;
12
+ reissued: boolean;
13
+ markReported: () => void;
14
+ retry: () => void;
15
+ };
16
+ //# sourceMappingURL=useKycCaptureRound.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useKycCaptureRound.d.ts","sourceRoot":"","sources":["../../../src/fiat/useKycCaptureRound.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAKpD;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,QAAQ;;;;;EAkChD"}
@@ -1 +1 @@
1
- {"version":3,"file":"useKycCompletion.d.ts","sourceRoot":"","sources":["../../../src/fiat/useKycCompletion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAIpD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAA;AAEvE,MAAM,MAAM,aAAa,GAAG,yBAAyB,CAAC,SAAS,CAAC,CAAA;AAOhE;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,QAAQ,GAAG,aAAa,GAAG,SAAS,CAa1E;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,IAAI,OAAO,CAO9C"}
1
+ {"version":3,"file":"useKycCompletion.d.ts","sourceRoot":"","sources":["../../../src/fiat/useKycCompletion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAIpD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAA;AAGvE,MAAM,MAAM,aAAa,GAAG,yBAAyB,CAAC,SAAS,CAAC,CAAA;AAOhE;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,QAAQ,GAAG,aAAa,GAAG,SAAS,CA4B1E;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,IAAI,OAAO,CAO9C"}
@@ -1,8 +1,21 @@
1
- export declare function useOtpAutoSubmit({ code, length, isSubmitting, hasError, onSubmit, }: {
1
+ /**
2
+ * The code an edit leaves, and whether it landed whole — a paste or the
3
+ * keyboard's one-time-code fill — rather than a digit at a time.
4
+ *
5
+ * - A whole code pasted after digits already there replaces them: the field's
6
+ * caret sits at the end, so the paste arrives appended.
7
+ * - More digits than that is not the code, so it fills the boxes and waits.
8
+ */
9
+ export declare function resolveCodeEdit(previous: string, next: string, length: number): {
10
+ code: string;
11
+ inserted: boolean;
12
+ };
13
+ /** Submits a code that arrived whole; a typed one waits for Continue. */
14
+ export declare function useOtpAutoSubmit({ code, length, inserted, isSubmitting, onSubmit, }: {
2
15
  code: string;
3
16
  length: number;
17
+ inserted: boolean;
4
18
  isSubmitting: boolean;
5
- hasError: boolean;
6
19
  onSubmit: () => void;
7
20
  }): void;
8
21
  //# sourceMappingURL=useOtpAutoSubmit.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useOtpAutoSubmit.d.ts","sourceRoot":"","sources":["../../../src/fiat/useOtpAutoSubmit.ts"],"names":[],"mappings":"AAEA,wBAAgB,gBAAgB,CAAC,EAC/B,IAAI,EACJ,MAAM,EACN,YAAY,EACZ,QAAQ,EACR,QAAQ,GACT,EAAE;IACD,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,YAAY,EAAE,OAAO,CAAA;IACrB,QAAQ,EAAE,OAAO,CAAA;IACjB,QAAQ,EAAE,MAAM,IAAI,CAAA;CACrB,QAoBA"}
1
+ {"version":3,"file":"useOtpAutoSubmit.d.ts","sourceRoot":"","sources":["../../../src/fiat/useOtpAutoSubmit.ts"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,GACb;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,CAarC;AAUD,yEAAyE;AACzE,wBAAgB,gBAAgB,CAAC,EAC/B,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,YAAY,EACZ,QAAQ,GACT,EAAE;IACD,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,OAAO,CAAA;IACjB,YAAY,EAAE,OAAO,CAAA;IACrB,QAAQ,EAAE,MAAM,IAAI,CAAA;CACrB,QAgBA"}
@@ -3,11 +3,12 @@ import type { FiatOtpScreenProps } from './FiatOtpScreen';
3
3
  type OtpProps = Omit<FiatOtpScreenProps, 'onClose'>;
4
4
  interface Submission {
5
5
  props: OtpProps;
6
- code: string;
6
+ /** The page the code was typed on, so the receipt is drawn on the same one. */
7
+ page: string;
7
8
  }
8
9
  /** Hold the verified code briefly without delaying the server's next transition. */
9
10
  export declare function useOtpReceipt(flow: FiatFlow): {
10
- bind: (props: OtpProps) => OtpProps;
11
+ bind: (page: string, props: OtpProps) => OtpProps;
11
12
  receipt: Submission | undefined;
12
13
  };
13
14
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"useOtpReceipt.d.ts","sourceRoot":"","sources":["../../../src/fiat/useOtpReceipt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAGpD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAEzD,KAAK,QAAQ,GAAG,IAAI,CAAC,kBAAkB,EAAE,SAAS,CAAC,CAAA;AACnD,UAAU,UAAU;IAClB,KAAK,EAAE,QAAQ,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;CACb;AAED,oFAAoF;AACpF,wBAAgB,aAAa,CAAC,IAAI,EAAE,QAAQ;kBAmCrB,QAAQ,KAAG,QAAQ;;EAYzC"}
1
+ {"version":3,"file":"useOtpReceipt.d.ts","sourceRoot":"","sources":["../../../src/fiat/useOtpReceipt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAGpD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAEzD,KAAK,QAAQ,GAAG,IAAI,CAAC,kBAAkB,EAAE,SAAS,CAAC,CAAA;AACnD,UAAU,UAAU;IAClB,KAAK,EAAE,QAAQ,CAAA;IACf,+EAA+E;IAC/E,IAAI,EAAE,MAAM,CAAA;CACb;AAED,oFAAoF;AACpF,wBAAgB,aAAa,CAAC,IAAI,EAAE,QAAQ;iBAqCtB,MAAM,SAAS,QAAQ,KAAG,QAAQ;;EAQvD"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Every title a terminal fiat receipt can show. Each receipt reserves room
3
+ * for all of them, so they all share one title height.
4
+ */
5
+ export declare function useReceiptTitles(): readonly string[];
6
+ //# sourceMappingURL=useReceiptTitles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useReceiptTitles.d.ts","sourceRoot":"","sources":["../../../src/fiat/useReceiptTitles.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,wBAAgB,gBAAgB,IAAI,SAAS,MAAM,EAAE,CASpD"}
@@ -1 +1 @@
1
- {"version":3,"file":"DepositAmountStep.d.ts","sourceRoot":"","sources":["../../../src/flow/DepositAmountStep.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EACV,wBAAwB,EACxB,oBAAoB,EACpB,oBAAoB,EACpB,aAAa,EACd,MAAM,qBAAqB,CAAA;AAY5B;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,MAAM,EACN,MAAM,EACN,SAAS,EACT,aAAa,EACb,UAAU,GACX,EAAE;IACD,MAAM,EAAE,wBAAwB,CAAA;IAChC,4EAA4E;IAC5E,MAAM,CAAC,EAAE,aAAa,CAAA;IACtB,SAAS,EAAE,oBAAoB,CAAA;IAC/B,iCAAiC;IACjC,aAAa,CAAC,EAAE,oBAAoB,CAAA;IACpC;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,+BAgIA"}
1
+ {"version":3,"file":"DepositAmountStep.d.ts","sourceRoot":"","sources":["../../../src/flow/DepositAmountStep.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EACV,wBAAwB,EACxB,oBAAoB,EACpB,oBAAoB,EACpB,aAAa,EACd,MAAM,qBAAqB,CAAA;AAY5B;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,MAAM,EACN,MAAM,EACN,SAAS,EACT,aAAa,EACb,UAAU,GACX,EAAE;IACD,MAAM,EAAE,wBAAwB,CAAA;IAChC,4EAA4E;IAC5E,MAAM,CAAC,EAAE,aAAa,CAAA;IACtB,SAAS,EAAE,oBAAoB,CAAA;IAC/B,iCAAiC;IACjC,aAAa,CAAC,EAAE,oBAAoB,CAAA;IACpC;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,+BAiIA"}
@@ -1,11 +1,13 @@
1
1
  import type { AvailableChain } from '../transfer/availableChains';
2
- import { type DepositAsset, type DepositSourceToken } from '../transfer/depositAssets';
3
- export declare function DepositAssetPicker({ assets, chains, selectedToken, loading, onSelect, onClose, }: {
2
+ import { type DepositAsset, type DepositSourceToken, type ResolvedDepositSelection } from '../transfer/depositAssets';
3
+ export declare function DepositAssetPicker({ assets, chains, selectedToken, loading, onSelect, onDraftChange, onClose, }: {
4
4
  assets: DepositAsset[];
5
5
  chains: AvailableChain[];
6
6
  selectedToken?: DepositSourceToken;
7
7
  loading: boolean;
8
8
  onSelect: (token: DepositSourceToken, chain: AvailableChain) => void;
9
+ /** The pair Confirm would commit; undefined while incomplete. */
10
+ onDraftChange?: (draft: ResolvedDepositSelection | undefined) => void;
9
11
  onClose: () => void;
10
12
  }): import("react").JSX.Element;
11
13
  //# sourceMappingURL=DepositAssetPicker.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DepositAssetPicker.d.ts","sourceRoot":"","sources":["../../../src/flow/DepositAssetPicker.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA;AACjE,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,kBAAkB,EAGxB,MAAM,2BAA2B,CAAA;AAElC,wBAAgB,kBAAkB,CAAC,EACjC,MAAM,EACN,MAAM,EACN,aAAa,EACb,OAAO,EACP,QAAQ,EACR,OAAO,GACR,EAAE;IACD,MAAM,EAAE,YAAY,EAAE,CAAA;IACtB,MAAM,EAAE,cAAc,EAAE,CAAA;IACxB,aAAa,CAAC,EAAE,kBAAkB,CAAA;IAClC,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,EAAE,CAAC,KAAK,EAAE,kBAAkB,EAAE,KAAK,EAAE,cAAc,KAAK,IAAI,CAAA;IACpE,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB,+BA0CA"}
1
+ {"version":3,"file":"DepositAssetPicker.d.ts","sourceRoot":"","sources":["../../../src/flow/DepositAssetPicker.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA;AACjE,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAG9B,MAAM,2BAA2B,CAAA;AAElC,wBAAgB,kBAAkB,CAAC,EACjC,MAAM,EACN,MAAM,EACN,aAAa,EACb,OAAO,EACP,QAAQ,EACR,aAAa,EACb,OAAO,GACR,EAAE;IACD,MAAM,EAAE,YAAY,EAAE,CAAA;IACtB,MAAM,EAAE,cAAc,EAAE,CAAA;IACxB,aAAa,CAAC,EAAE,kBAAkB,CAAA;IAClC,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,EAAE,CAAC,KAAK,EAAE,kBAAkB,EAAE,KAAK,EAAE,cAAc,KAAK,IAAI,CAAA;IACpE,iEAAiE;IACjE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,wBAAwB,GAAG,SAAS,KAAK,IAAI,CAAA;IACrE,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB,+BAmDA"}
@@ -1 +1 @@
1
- {"version":3,"file":"DepositFlowContent.d.ts","sourceRoot":"","sources":["../../../src/flow/DepositFlowContent.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,SAAS,EAKf,MAAM,OAAO,CAAA;AAyDd,OAAO,KAAK,EAEV,qBAAqB,EACrB,oBAAoB,EACpB,iBAAiB,EAElB,MAAM,qBAAqB,CAAA;AAG5B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAG/D,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AA6E/D;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,EAC1B,UAAU,EACV,cAAc,EACd,MAAM,EACN,OAAO,EACP,GAAG,EACH,aAAa,EACb,gBAAgB,EAChB,SAAS,GACV,EAAE;IACD,UAAU,EAAE,MAAM,CAAA;IAClB,cAAc,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACjD,MAAM,EAAE,iBAAiB,CAAA;IACzB,OAAO,EAAE,UAAU,GAAG,SAAS,CAAA;IAC/B,GAAG,EAAE,OAAO,CAAA;IACZ,aAAa,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC,0EAA0E;IAC1E,gBAAgB,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAA;IACnD,SAAS,EAAE,oBAAoB,CAAA;CAChC,GAAG,SAAS,CAkYZ"}
1
+ {"version":3,"file":"DepositFlowContent.d.ts","sourceRoot":"","sources":["../../../src/flow/DepositFlowContent.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,SAAS,EAMf,MAAM,OAAO,CAAA;AA4Dd,OAAO,KAAK,EAEV,qBAAqB,EACrB,oBAAoB,EACpB,iBAAiB,EAElB,MAAM,qBAAqB,CAAA;AAG5B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAG/D,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AA8E/D;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,EAC1B,UAAU,EACV,cAAc,EACd,MAAM,EACN,OAAO,EACP,GAAG,EACH,aAAa,EACb,gBAAgB,EAChB,SAAS,GACV,EAAE;IACD,UAAU,EAAE,MAAM,CAAA;IAClB,cAAc,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACjD,MAAM,EAAE,iBAAiB,CAAA;IACzB,OAAO,EAAE,UAAU,GAAG,SAAS,CAAA;IAC/B,GAAG,EAAE,OAAO,CAAA;IACZ,aAAa,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC,0EAA0E;IAC1E,gBAAgB,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAA;IACnD,SAAS,EAAE,oBAAoB,CAAA;CAChC,GAAG,SAAS,CAsbZ"}
@@ -10,8 +10,8 @@ export interface DepositReceivedToastProps {
10
10
  * - Owns no timer and no positioning: whatever mounts it decides both.
11
11
  * - Outlives the sheet — the flow closes on a cleared charge, and this is what
12
12
  * says the money arrived.
13
- * - Glass like GlassSheetBackground: glass owns the tint, so the fill drops
14
- * out under it rather than flattening the refraction.
13
+ * - Draws its own blur + glass rather than the sheet's material: that glass
14
+ * follows the screen's corners and tints black, turning the card into a capsule.
15
15
  */
16
16
  export declare function DepositReceivedToast({ title, detail, }: DepositReceivedToastProps): import("react").JSX.Element;
17
17
  //# sourceMappingURL=DepositReceivedToast.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DepositReceivedToast.d.ts","sourceRoot":"","sources":["../../../src/flow/DepositReceivedToast.tsx"],"names":[],"mappings":"AAiCA,MAAM,WAAW,yBAAyB;IACxC,8DAA8D;IAC9D,KAAK,EAAE,MAAM,CAAA;IACb,gDAAgD;IAChD,MAAM,EAAE,MAAM,CAAA;CACf;AAED;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,KAAK,EACL,MAAM,GACP,EAAE,yBAAyB,+BA4C3B"}
1
+ {"version":3,"file":"DepositReceivedToast.d.ts","sourceRoot":"","sources":["../../../src/flow/DepositReceivedToast.tsx"],"names":[],"mappings":"AA+BA,MAAM,WAAW,yBAAyB;IACxC,8DAA8D;IAC9D,KAAK,EAAE,MAAM,CAAA;IACb,gDAAgD;IAChD,MAAM,EAAE,MAAM,CAAA;CACf;AAED;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,KAAK,EACL,MAAM,GACP,EAAE,yBAAyB,+BAoD3B"}
@@ -9,10 +9,12 @@ export declare function useFeeDetailsSheet(): {
9
9
  * The fee-disclosure drawer as the amount screens present it: a nested sheet
10
10
  * over the entry screen, opened from its fee line.
11
11
  */
12
- export declare function FeeDetailsSheet({ sheet, rows, summary, }: {
12
+ export declare function FeeDetailsSheet({ sheet, rows, summary, feesFree, }: {
13
13
  sheet: NestedSheet<'feeDetails'>;
14
14
  rows: FeeDetailsRow[];
15
15
  /** Omitted when the rail's fee can't be worded (no method name, no rate). */
16
16
  summary?: string;
17
+ /** The mark signs the drawer only when the disclosed fee is nothing. */
18
+ feesFree: boolean;
17
19
  }): import("react").JSX.Element;
18
20
  //# sourceMappingURL=FeeDetailsSheet.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FeeDetailsSheet.d.ts","sourceRoot":"","sources":["../../../src/flow/FeeDetailsSheet.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,WAAW,EAAkB,MAAM,yBAAyB,CAAA;AAC1E,OAAO,EACL,KAAK,aAAa,EAEnB,MAAM,6BAA6B,CAAA;AAGpC,iEAAiE;AACjE,wBAAgB,kBAAkB,IAAI;IACpC,KAAK,EAAE,WAAW,CAAC,YAAY,CAAC,CAAA;IAChC,cAAc,EAAE,MAAM,IAAI,CAAA;CAC3B,CAWA;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,IAAI,EACJ,OAAO,GACR,EAAE;IACD,KAAK,EAAE,WAAW,CAAC,YAAY,CAAC,CAAA;IAChC,IAAI,EAAE,aAAa,EAAE,CAAA;IACrB,6EAA6E;IAC7E,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,+BAcA"}
1
+ {"version":3,"file":"FeeDetailsSheet.d.ts","sourceRoot":"","sources":["../../../src/flow/FeeDetailsSheet.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,WAAW,EAAkB,MAAM,yBAAyB,CAAA;AAC1E,OAAO,EACL,KAAK,aAAa,EAEnB,MAAM,6BAA6B,CAAA;AAGpC,iEAAiE;AACjE,wBAAgB,kBAAkB,IAAI;IACpC,KAAK,EAAE,WAAW,CAAC,YAAY,CAAC,CAAA;IAChC,cAAc,EAAE,MAAM,IAAI,CAAA;CAC3B,CAWA;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,IAAI,EACJ,OAAO,EACP,QAAQ,GACT,EAAE;IACD,KAAK,EAAE,WAAW,CAAC,YAAY,CAAC,CAAA;IAChC,IAAI,EAAE,aAAa,EAAE,CAAA;IACrB,6EAA6E;IAC7E,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,wEAAwE;IACxE,QAAQ,EAAE,OAAO,CAAA;CAClB,+BAcA"}
@@ -1,5 +1,9 @@
1
+ import type { FiatStepResponse } from '@funkit/connect-core';
2
+ import { type MoonPayPreparedPayment } from '../fiat/providers/moonpay';
1
3
  import type { DepositAmountEntryConfig, DepositCheckoutConfig, DepositClientMetadata, DepositFlowCallbacks, DepositInitialAmount, FiatRailConfig } from './depositFlowConfig';
2
4
  import type { DepositReceipt } from './useDepositReceivedToast';
5
+ /** Replace an executable verify response with the complete payment artifact retained from quote. */
6
+ export declare function promoteMoonPayPreparedPayment(response: FiatStepResponse, prepared: MoonPayPreparedPayment): FiatStepResponse;
3
7
  export declare function FiatDepositAmountStep({ config, fiat, checkoutConfig, dynamicRoutingId, depositAddressOverride, checkoutId, clientMetadata, initialAmount, lockAmount, callbacks, showDepositToast, onCloseFlow, }: {
4
8
  config: DepositAmountEntryConfig;
5
9
  fiat: FiatRailConfig;
@@ -15,7 +19,7 @@ export declare function FiatDepositAmountStep({ config, fiat, checkoutConfig, dy
15
19
  initialAmount?: DepositInitialAmount;
16
20
  /** Locks the prefilled amount against numpad and quick-amount edits. */
17
21
  lockAmount?: boolean;
18
- callbacks: Pick<DepositFlowCallbacks, 'onDepositSubmitted' | 'onDepositError'>;
22
+ callbacks: Pick<DepositFlowCallbacks, 'onDepositSubmitted' | 'onDepositError' | 'onPaymentMethodPress'>;
19
23
  /** Raises the SDK's deposit confirmation, which outlives this screen. */
20
24
  showDepositToast: (receipt: DepositReceipt) => void;
21
25
  onCloseFlow: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"FiatDepositAmountStep.d.ts","sourceRoot":"","sources":["../../../src/flow/FiatDepositAmountStep.tsx"],"names":[],"mappings":"AA0JA,OAAO,KAAK,EACV,wBAAwB,EACxB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EAEpB,cAAc,EACf,MAAM,qBAAqB,CAAA;AAC5B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAgG/D,wBAAgB,qBAAqB,CAAC,EACpC,MAAM,EACN,IAAI,EACJ,cAAc,EACd,gBAAgB,EAChB,sBAAsB,EACtB,UAAU,EACV,cAAc,EACd,aAAa,EACb,UAAU,EACV,SAAS,EACT,gBAAgB,EAChB,WAAW,GACZ,EAAE;IACD,MAAM,EAAE,wBAAwB,CAAA;IAChC,IAAI,EAAE,cAAc,CAAA;IACpB,cAAc,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACjD,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAA;IACpC,mEAAmE;IACnE,sBAAsB,CAAC,EAAE,MAAM,CAAA;IAC/B,UAAU,EAAE,MAAM,CAAA;IAClB,cAAc,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACjD;;OAEG;IACH,aAAa,CAAC,EAAE,oBAAoB,CAAA;IACpC,wEAAwE;IACxE,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,SAAS,EAAE,IAAI,CAAC,oBAAoB,EAAE,oBAAoB,GAAG,gBAAgB,CAAC,CAAA;IAC9E,yEAAyE;IACzE,gBAAgB,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAA;IACnD,WAAW,EAAE,MAAM,IAAI,CAAA;CACxB,+BA2DA"}
1
+ {"version":3,"file":"FiatDepositAmountStep.d.ts","sourceRoot":"","sources":["../../../src/flow/FiatDepositAmountStep.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAMV,gBAAgB,EAWjB,MAAM,sBAAsB,CAAA;AA0D7B,OAAO,EACL,KAAK,sBAAsB,EAG5B,MAAM,2BAA2B,CAAA;AAoHlC,OAAO,KAAK,EACV,wBAAwB,EACxB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EAEpB,cAAc,EACf,MAAM,qBAAqB,CAAA;AAC5B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AA2C/D,oGAAoG;AACpG,wBAAgB,6BAA6B,CAC3C,QAAQ,EAAE,gBAAgB,EAC1B,QAAQ,EAAE,sBAAsB,GAC/B,gBAAgB,CA8BlB;AAuHD,wBAAgB,qBAAqB,CAAC,EACpC,MAAM,EACN,IAAI,EACJ,cAAc,EACd,gBAAgB,EAChB,sBAAsB,EACtB,UAAU,EACV,cAAc,EACd,aAAa,EACb,UAAU,EACV,SAAS,EACT,gBAAgB,EAChB,WAAW,GACZ,EAAE;IACD,MAAM,EAAE,wBAAwB,CAAA;IAChC,IAAI,EAAE,cAAc,CAAA;IACpB,cAAc,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACjD,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAA;IACpC,mEAAmE;IACnE,sBAAsB,CAAC,EAAE,MAAM,CAAA;IAC/B,UAAU,EAAE,MAAM,CAAA;IAClB,cAAc,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACjD;;OAEG;IACH,aAAa,CAAC,EAAE,oBAAoB,CAAA;IACpC,wEAAwE;IACxE,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,SAAS,EAAE,IAAI,CACb,oBAAoB,EACpB,oBAAoB,GAAG,gBAAgB,GAAG,sBAAsB,CACjE,CAAA;IACD,yEAAyE;IACzE,gBAAgB,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAA;IACnD,WAAW,EAAE,MAAM,IAAI,CAAA;CACxB,+BAoGA"}
@@ -15,6 +15,9 @@ export interface FlowPageProps {
15
15
  * leaving and the one arriving stand in it together, and a page that arrived
16
16
  * forward stays over one that is returning. A nudged page is a block in its
17
17
  * screen's own flow.
18
+ *
19
+ * A pushed page can be swiped back from its left edge once a back control on
20
+ * it arms the swipe (`useSwipeBack`).
18
21
  */
19
22
  export declare function FlowPage({ motion, turn, animateIn, children, }: FlowPageProps): import("react").JSX.Element;
20
23
  //# sourceMappingURL=FlowPage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FlowPage.d.ts","sourceRoot":"","sources":["../../../src/flow/FlowPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAItC,OAAO,EACL,KAAK,UAAU,EAIhB,MAAM,cAAc,CAAA;AACrB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAE1C,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,UAAU,CAAA;IAClB,IAAI,EAAE,QAAQ,CAAA;IACd,8EAA8E;IAC9E,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CAAC,EACvB,MAAM,EACN,IAAI,EACJ,SAAgB,EAChB,QAAQ,GACT,EAAE,aAAa,+BA2Bf"}
1
+ {"version":3,"file":"FlowPage.d.ts","sourceRoot":"","sources":["../../../src/flow/FlowPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAItC,OAAO,EACL,KAAK,UAAU,EAIhB,MAAM,cAAc,CAAA;AACrB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAG1C,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,UAAU,CAAA;IAClB,IAAI,EAAE,QAAQ,CAAA;IACd,8EAA8E;IAC9E,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,QAAQ,CAAC,EACvB,MAAM,EACN,IAAI,EACJ,SAAgB,EAChB,QAAQ,GACT,EAAE,aAAa,+BAkCf"}
@@ -1,5 +1,6 @@
1
1
  import { type BottomSheetBackgroundProps } from '@gorhom/bottom-sheet';
2
- import { type ReactNode } from 'react';
2
+ import { type ReactNode, type Ref } from 'react';
3
+ import type { FlowSheetControl } from './useFlowTransitions';
3
4
  /**
4
5
  * Material laid under a translucent flow surface. The package ships its own
5
6
  * (see SheetMaterial); a host replaces it through `FunkitProvider`. Rendered
@@ -43,8 +44,15 @@ export interface FlowSheetProps {
43
44
  * {@link GlassSheetBackground}.
44
45
  */
45
46
  glass?: boolean;
47
+ /** Off screen with the session still mounted; see `useFlowTransitions`. */
48
+ hidden?: boolean;
49
+ /** Whether the next hide or resume runs the sheet's motion. */
50
+ animateTransitions?: boolean;
51
+ /** The sheet came to rest at a detent; -1 is off screen. */
52
+ onIndexChange?: (index: number) => void;
53
+ controlRef?: Ref<FlowSheetControl>;
46
54
  }
47
- export declare function FlowSheet({ isOpen, session, onClose, content, children, keyboardAvoidEnabled, enableSwipeToDismiss, dismissLocked, fullHeight, glass, }: FlowSheetProps): import("react").JSX.Element;
55
+ export declare function FlowSheet({ isOpen, session, onClose, content, children, keyboardAvoidEnabled, enableSwipeToDismiss, dismissLocked, fullHeight, glass, hidden, animateTransitions, onIndexChange, controlRef, }: FlowSheetProps): import("react").JSX.Element;
48
56
  /**
49
57
  * Sheet surface for the flow modal. gorhom sizes the sheet body to its content,
50
58
  * so a flat background fills only the content area; over-dragging the sheet
@@ -1 +1 @@
1
- {"version":3,"file":"FlowSheet.d.ts","sourceRoot":"","sources":["../../../src/flow/FlowSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,0BAA0B,EAKhC,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAEL,KAAK,SAAS,EAIf,MAAM,OAAO,CAAA;AAuBd;;;;;;GAMG;AACH,MAAM,MAAM,oBAAoB,GAAG,MAAM,SAAS,CAAA;AAElD,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,OAAO,CAAA;IACf;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,kDAAkD;IAClD,OAAO,EAAE,SAAS,CAAA;IAClB,yDAAyD;IACzD,QAAQ,EAAE,SAAS,CAAA;IACnB;;;;;OAKG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,yFAAyF;IACzF,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AAsBD,wBAAgB,SAAS,CAAC,EACxB,MAAM,EACN,OAAO,EACP,OAAO,EACP,OAAO,EACP,QAAQ,EACR,oBAA4B,EAC5B,oBAA2B,EAC3B,aAAqB,EACrB,UAAkB,EAClB,KAAa,GACd,EAAE,cAAc,+BAgLhB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,0BAA0B,+BAEpE;AAaD;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,aAAa,EACb,KAAK,GACN,EAAE,0BAA0B,+BAqB5B;AAkBD;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,0BAA0B,+BAUvE;AAED;;;;GAIG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,0BAA0B,+BAU5E;AAOD,eAAO,MAAM,kBAAkB,KAAK,CAAA"}
1
+ {"version":3,"file":"FlowSheet.d.ts","sourceRoot":"","sources":["../../../src/flow/FlowSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,0BAA0B,EAKhC,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAEL,KAAK,SAAS,EACd,KAAK,GAAG,EAKT,MAAM,OAAO,CAAA;AAsBd,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAI5D;;;;;;GAMG;AACH,MAAM,MAAM,oBAAoB,GAAG,MAAM,SAAS,CAAA;AAElD,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,OAAO,CAAA;IACf;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,kDAAkD;IAClD,OAAO,EAAE,SAAS,CAAA;IAClB,yDAAyD;IACzD,QAAQ,EAAE,SAAS,CAAA;IACnB;;;;;OAKG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,yFAAyF;IACzF,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,2EAA2E;IAC3E,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,+DAA+D;IAC/D,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,4DAA4D;IAC5D,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC,UAAU,CAAC,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAAA;CACnC;AA2BD,wBAAgB,SAAS,CAAC,EACxB,MAAM,EACN,OAAO,EACP,OAAO,EACP,OAAO,EACP,QAAQ,EACR,oBAA4B,EAC5B,oBAA2B,EAC3B,aAAqB,EACrB,UAAkB,EAClB,KAAa,EACb,MAAc,EACd,kBAAyB,EACzB,aAAa,EACb,UAAU,GACX,EAAE,cAAc,+BAmQhB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,0BAA0B,+BAEpE;AAaD;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,aAAa,EACb,KAAK,GACN,EAAE,0BAA0B,+BAqB5B;AAkBD;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,0BAA0B,+BAUvE;AAED;;;;GAIG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,0BAA0B,+BAU5E;AAOD,eAAO,MAAM,kBAAkB,KAAK,CAAA"}
@@ -2,6 +2,7 @@ import { type ReactNode } from 'react';
2
2
  import { type ClipboardReader, type ClipboardWriter } from '../transfer/clipboard';
3
3
  import type { DepositFlowCallbacks, DepositFlowConfig } from './depositFlowConfig';
4
4
  import { type BackdropBlurRenderer } from './FlowSheet';
5
+ import { type FlowTransitions } from './useFlowTransitions';
5
6
  import type { WithdrawalFlowCallbacks, WithdrawalFlowConfig } from './withdrawalFlowConfig';
6
7
  import type { StripeOnrampConfig } from '../fiat/providers/useStripeOnrampClient';
7
8
  export type FlowScreen = 'depositAmount' | 'addMoney' | 'transfer' | 'swapped' | 'withdrawMethod' | 'withdrawAmount' | 'withdrawAddress' | 'withdrawReceiveToken' | 'withdrawComplete';
@@ -17,6 +18,8 @@ interface FunkitFlowContextValue {
17
18
  beginWithdrawal: (config: WithdrawalFlowConfig, callbacks?: WithdrawalFlowCallbacks) => void;
18
19
  /** Close the flow. */
19
20
  closeFlow: () => void;
21
+ /** Host control over the open flow; see {@link FlowTransitions}. */
22
+ transitions: FlowTransitions;
20
23
  }
21
24
  export interface FlowNav {
22
25
  navigate: (s: FlowScreen) => void;