@funkit/connect-rn 6.2.0 → 8.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (248) hide show
  1. package/CHANGELOG.md +148 -0
  2. package/README.md +97 -60
  3. package/dist/chunk-D64EJ57D.js +161 -0
  4. package/dist/chunk-D64EJ57D.js.map +7 -0
  5. package/dist/{chunk-VIMRV7N2.js → chunk-KZOSYNGV.js} +369 -207
  6. package/dist/chunk-KZOSYNGV.js.map +7 -0
  7. package/dist/{chunk-PLSQBNDE.js → chunk-SRVRWQO6.js} +5 -3
  8. package/dist/{chunk-PLSQBNDE.js.map → chunk-SRVRWQO6.js.map} +1 -1
  9. package/dist/clients/lighter.js +4 -2
  10. package/dist/clients/lighter.js.map +1 -1
  11. package/dist/clients/nado.js +5 -3
  12. package/dist/clients/nado.js.map +1 -1
  13. package/dist/clients/solana/index.d.ts +5 -0
  14. package/dist/clients/solana/index.d.ts.map +1 -0
  15. package/dist/clients/solana/solanaWithdrawal.d.ts +20 -0
  16. package/dist/clients/solana/solanaWithdrawal.d.ts.map +1 -0
  17. package/dist/clients/solana/useSolanaWithdrawal.d.ts +13 -0
  18. package/dist/clients/solana/useSolanaWithdrawal.d.ts.map +1 -0
  19. package/dist/clients/solana.d.ts +1 -0
  20. package/dist/clients/solana.js +87 -0
  21. package/dist/clients/solana.js.map +7 -0
  22. package/dist/index.d.ts +7 -2
  23. package/dist/index.d.ts.map +1 -1
  24. package/dist/index.js +7035 -2945
  25. package/dist/index.js.map +4 -4
  26. package/dist/src/components/Grabber.d.ts +3 -1
  27. package/dist/src/components/Grabber.d.ts.map +1 -1
  28. package/dist/src/components/LoadingSpinner.d.ts.map +1 -1
  29. package/dist/src/components/PillButton.d.ts.map +1 -1
  30. package/dist/src/components/v2/QuickAmountsRow.d.ts.map +1 -1
  31. package/dist/src/fiat/FiatChoiceField.d.ts +7 -1
  32. package/dist/src/fiat/FiatChoiceField.d.ts.map +1 -1
  33. package/dist/src/fiat/FiatCountrySheet.d.ts +11 -0
  34. package/dist/src/fiat/FiatCountrySheet.d.ts.map +1 -1
  35. package/dist/src/fiat/FiatFailureBanner.d.ts +14 -0
  36. package/dist/src/fiat/FiatFailureBanner.d.ts.map +1 -0
  37. package/dist/src/fiat/FiatFormScreen.d.ts +11 -1
  38. package/dist/src/fiat/FiatFormScreen.d.ts.map +1 -1
  39. package/dist/src/fiat/FiatIdentityStep.d.ts.map +1 -1
  40. package/dist/src/fiat/FiatKycFieldControl.d.ts +9 -2
  41. package/dist/src/fiat/FiatKycFieldControl.d.ts.map +1 -1
  42. package/dist/src/fiat/FiatKycOptionsScreen.d.ts.map +1 -1
  43. package/dist/src/fiat/FiatKycOutcomeScreen.d.ts +15 -2
  44. package/dist/src/fiat/FiatKycOutcomeScreen.d.ts.map +1 -1
  45. package/dist/src/fiat/FiatKycPhoneField.d.ts +21 -0
  46. package/dist/src/fiat/FiatKycPhoneField.d.ts.map +1 -0
  47. package/dist/src/fiat/FiatReceipt.d.ts +21 -0
  48. package/dist/src/fiat/FiatReceipt.d.ts.map +1 -0
  49. package/dist/src/fiat/FiatRegionUnsupportedScreen.d.ts +11 -0
  50. package/dist/src/fiat/FiatRegionUnsupportedScreen.d.ts.map +1 -0
  51. package/dist/src/fiat/FiatStatusScreen.d.ts.map +1 -1
  52. package/dist/src/fiat/FiatSubmissionIndicator.d.ts.map +1 -1
  53. package/dist/src/fiat/KycGlassBackdrop.d.ts.map +1 -1
  54. package/dist/src/fiat/ScreenSurfaceCover.d.ts +11 -0
  55. package/dist/src/fiat/ScreenSurfaceCover.d.ts.map +1 -0
  56. package/dist/src/fiat/SurfaceSlot.d.ts +12 -1
  57. package/dist/src/fiat/SurfaceSlot.d.ts.map +1 -1
  58. package/dist/src/fiat/depositOutcome.d.ts +33 -0
  59. package/dist/src/fiat/depositOutcome.d.ts.map +1 -0
  60. package/dist/src/fiat/fieldAutofill.d.ts.map +1 -1
  61. package/dist/src/fiat/formLayout.d.ts +12 -5
  62. package/dist/src/fiat/formLayout.d.ts.map +1 -1
  63. package/dist/src/fiat/formScreenProps.d.ts +4 -2
  64. package/dist/src/fiat/formScreenProps.d.ts.map +1 -1
  65. package/dist/src/fiat/kycFormPosition.d.ts +25 -1
  66. package/dist/src/fiat/kycFormPosition.d.ts.map +1 -1
  67. package/dist/src/fiat/kycFormState.d.ts +10 -0
  68. package/dist/src/fiat/kycFormState.d.ts.map +1 -1
  69. package/dist/src/fiat/kycUnavailableAlert.d.ts +21 -1
  70. package/dist/src/fiat/kycUnavailableAlert.d.ts.map +1 -1
  71. package/dist/src/fiat/methodName.d.ts +8 -0
  72. package/dist/src/fiat/methodName.d.ts.map +1 -0
  73. package/dist/src/fiat/providerFailover.d.ts +12 -0
  74. package/dist/src/fiat/providerFailover.d.ts.map +1 -0
  75. package/dist/src/fiat/providers/CoinbaseCheckoutSurface.d.ts +4 -2
  76. package/dist/src/fiat/providers/CoinbaseCheckoutSurface.d.ts.map +1 -1
  77. package/dist/src/fiat/providers/StripeSessionAuthController.d.ts +29 -0
  78. package/dist/src/fiat/providers/StripeSessionAuthController.d.ts.map +1 -0
  79. package/dist/src/fiat/providers/StripeSessionAuthScreen.d.ts +10 -0
  80. package/dist/src/fiat/providers/StripeSessionAuthScreen.d.ts.map +1 -0
  81. package/dist/src/fiat/providers/adapter.d.ts +6 -0
  82. package/dist/src/fiat/providers/adapter.d.ts.map +1 -1
  83. package/dist/src/fiat/providers/coinbaseOnrampEvents.d.ts +7 -3
  84. package/dist/src/fiat/providers/coinbaseOnrampEvents.d.ts.map +1 -1
  85. package/dist/src/fiat/providers/describeThrown.d.ts +14 -0
  86. package/dist/src/fiat/providers/describeThrown.d.ts.map +1 -0
  87. package/dist/src/fiat/providers/moonpay.d.ts.map +1 -1
  88. package/dist/src/fiat/providers/moonpayTrace.d.ts +25 -0
  89. package/dist/src/fiat/providers/moonpayTrace.d.ts.map +1 -0
  90. package/dist/src/fiat/providers/stripeAccountCreation.d.ts +12 -0
  91. package/dist/src/fiat/providers/stripeAccountCreation.d.ts.map +1 -0
  92. package/dist/src/fiat/providers/stripeAuthorize.d.ts +5 -0
  93. package/dist/src/fiat/providers/stripeAuthorize.d.ts.map +1 -0
  94. package/dist/src/fiat/providers/stripeCheckout.d.ts +28 -0
  95. package/dist/src/fiat/providers/stripeCheckout.d.ts.map +1 -0
  96. package/dist/src/fiat/providers/stripeKyc.d.ts +56 -0
  97. package/dist/src/fiat/providers/stripeKyc.d.ts.map +1 -0
  98. package/dist/src/fiat/providers/stripeKycInfo.d.ts +11 -0
  99. package/dist/src/fiat/providers/stripeKycInfo.d.ts.map +1 -0
  100. package/dist/src/fiat/providers/stripeOnramp.d.ts +135 -0
  101. package/dist/src/fiat/providers/stripeOnramp.d.ts.map +1 -0
  102. package/dist/src/fiat/providers/stripeOnrampBridge.d.ts +20 -0
  103. package/dist/src/fiat/providers/stripeOnrampBridge.d.ts.map +1 -0
  104. package/dist/src/fiat/providers/stripePayment.d.ts +34 -0
  105. package/dist/src/fiat/providers/stripePayment.d.ts.map +1 -0
  106. package/dist/src/fiat/providers/stripeSdk.d.ts +19 -0
  107. package/dist/src/fiat/providers/stripeSdk.d.ts.map +1 -0
  108. package/dist/src/fiat/providers/stripeSeamlessSignIn.d.ts +18 -0
  109. package/dist/src/fiat/providers/stripeSeamlessSignIn.d.ts.map +1 -0
  110. package/dist/src/fiat/providers/stripeSessionAuth.d.ts +43 -0
  111. package/dist/src/fiat/providers/stripeSessionAuth.d.ts.map +1 -0
  112. package/dist/src/fiat/providers/useStripeOnrampClient.d.ts +35 -0
  113. package/dist/src/fiat/providers/useStripeOnrampClient.d.ts.map +1 -0
  114. package/dist/src/fiat/quoteRefusal.d.ts +27 -0
  115. package/dist/src/fiat/quoteRefusal.d.ts.map +1 -1
  116. package/dist/src/fiat/renderCaptureSurface.d.ts +1 -1
  117. package/dist/src/fiat/renderCaptureSurface.d.ts.map +1 -1
  118. package/dist/src/fiat/sectionDetail.d.ts.map +1 -1
  119. package/dist/src/fiat/stepDetails.d.ts +5 -1
  120. package/dist/src/fiat/stepDetails.d.ts.map +1 -1
  121. package/dist/src/fiat/useFiatDirectDelivery.d.ts +5 -4
  122. package/dist/src/fiat/useFiatDirectDelivery.d.ts.map +1 -1
  123. package/dist/src/fiat/useIdentityAssertion.d.ts +35 -0
  124. package/dist/src/fiat/useIdentityAssertion.d.ts.map +1 -0
  125. package/dist/src/fiat/useKycCompletion.d.ts +11 -3
  126. package/dist/src/fiat/useKycCompletion.d.ts.map +1 -1
  127. package/dist/src/fiat/useQuoteableCeiling.d.ts +28 -0
  128. package/dist/src/fiat/useQuoteableCeiling.d.ts.map +1 -0
  129. package/dist/src/fiat/useStaleQuoteRecovery.d.ts +8 -1
  130. package/dist/src/fiat/useStaleQuoteRecovery.d.ts.map +1 -1
  131. package/dist/src/flow/DepositAmountStep.d.ts +4 -2
  132. package/dist/src/flow/DepositAmountStep.d.ts.map +1 -1
  133. package/dist/src/flow/DepositFlowContent.d.ts +4 -1
  134. package/dist/src/flow/DepositFlowContent.d.ts.map +1 -1
  135. package/dist/src/flow/DepositReceivedToast.d.ts +17 -0
  136. package/dist/src/flow/DepositReceivedToast.d.ts.map +1 -0
  137. package/dist/src/flow/FeeDetailsSheet.d.ts.map +1 -1
  138. package/dist/src/flow/FiatDepositAmountStep.d.ts +6 -2
  139. package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
  140. package/dist/src/flow/FiatRegionBlockedStep.d.ts +14 -0
  141. package/dist/src/flow/FiatRegionBlockedStep.d.ts.map +1 -0
  142. package/dist/src/flow/FiatRegionPendingStep.d.ts +10 -0
  143. package/dist/src/flow/FiatRegionPendingStep.d.ts.map +1 -0
  144. package/dist/src/flow/FlowSheet.d.ts +14 -20
  145. package/dist/src/flow/FlowSheet.d.ts.map +1 -1
  146. package/dist/src/flow/FunkitFlowProvider.d.ts +18 -5
  147. package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
  148. package/dist/src/flow/SheetMaterial.d.ts +11 -0
  149. package/dist/src/flow/SheetMaterial.d.ts.map +1 -0
  150. package/dist/src/flow/StepPage.d.ts +16 -0
  151. package/dist/src/flow/StepPage.d.ts.map +1 -0
  152. package/dist/src/flow/WithdrawalFlowContent.d.ts.map +1 -1
  153. package/dist/src/flow/accountContext.d.ts +6 -0
  154. package/dist/src/flow/accountContext.d.ts.map +1 -0
  155. package/dist/src/flow/depositFlowConfig.d.ts +116 -31
  156. package/dist/src/flow/depositFlowConfig.d.ts.map +1 -1
  157. package/dist/src/flow/depositMethods.d.ts +21 -0
  158. package/dist/src/flow/depositMethods.d.ts.map +1 -0
  159. package/dist/src/flow/depositRailCopy.d.ts +20 -0
  160. package/dist/src/flow/depositRailCopy.d.ts.map +1 -0
  161. package/dist/src/flow/flowError.d.ts +47 -0
  162. package/dist/src/flow/flowError.d.ts.map +1 -0
  163. package/dist/src/flow/flowStepHeight.d.ts +19 -0
  164. package/dist/src/flow/flowStepHeight.d.ts.map +1 -0
  165. package/dist/src/flow/useDepositReceivedToast.d.ts +22 -0
  166. package/dist/src/flow/useDepositReceivedToast.d.ts.map +1 -0
  167. package/dist/src/flow/validateClientMetadata.d.ts +2 -3
  168. package/dist/src/flow/validateClientMetadata.d.ts.map +1 -1
  169. package/dist/src/flow/withdrawalFlowConfig.d.ts +5 -4
  170. package/dist/src/flow/withdrawalFlowConfig.d.ts.map +1 -1
  171. package/dist/src/geo/useFiatRegionSupport.d.ts +23 -0
  172. package/dist/src/geo/useFiatRegionSupport.d.ts.map +1 -0
  173. package/dist/src/hooks/useGuardedAmountInput.d.ts +15 -15
  174. package/dist/src/hooks/useGuardedAmountInput.d.ts.map +1 -1
  175. package/dist/src/hooks/usePressScale.d.ts +22 -3
  176. package/dist/src/hooks/usePressScale.d.ts.map +1 -1
  177. package/dist/src/hooks/useSheetFade.d.ts +11 -0
  178. package/dist/src/hooks/useSheetFade.d.ts.map +1 -0
  179. package/dist/src/icons/FigmaSystemIcons.d.ts +1 -0
  180. package/dist/src/icons/FigmaSystemIcons.d.ts.map +1 -1
  181. package/dist/src/icons/KycIdentityIcon.d.ts +2 -1
  182. package/dist/src/icons/KycIdentityIcon.d.ts.map +1 -1
  183. package/dist/src/icons/KycStatusIcon.d.ts +1 -1
  184. package/dist/src/icons/KycStatusIcon.d.ts.map +1 -1
  185. package/dist/src/icons/kycArtwork.d.ts +15 -0
  186. package/dist/src/icons/kycArtwork.d.ts.map +1 -1
  187. package/dist/src/identity/IdentityContext.d.ts +31 -8
  188. package/dist/src/identity/IdentityContext.d.ts.map +1 -1
  189. package/dist/src/logging/debugBridge.d.ts +13 -0
  190. package/dist/src/logging/debugBridge.d.ts.map +1 -0
  191. package/dist/src/native/glassEffect.d.ts +18 -0
  192. package/dist/src/native/glassEffect.d.ts.map +1 -0
  193. package/dist/src/providers/FunkitProvider.d.ts +18 -9
  194. package/dist/src/providers/FunkitProvider.d.ts.map +1 -1
  195. package/dist/src/providers/NativeCapabilitiesContext.d.ts +20 -14
  196. package/dist/src/providers/NativeCapabilitiesContext.d.ts.map +1 -1
  197. package/dist/src/providers/useFrozenIdentity.d.ts +19 -0
  198. package/dist/src/providers/useFrozenIdentity.d.ts.map +1 -0
  199. package/dist/src/providers/useFunkitCheckout.d.ts +7 -3
  200. package/dist/src/providers/useFunkitCheckout.d.ts.map +1 -1
  201. package/dist/src/screens/DepositAmountScreen.d.ts +1 -1
  202. package/dist/src/screens/DepositAmountScreen.d.ts.map +1 -1
  203. package/dist/src/screens/FeeDetailsScreen.d.ts +7 -13
  204. package/dist/src/screens/FeeDetailsScreen.d.ts.map +1 -1
  205. package/dist/src/screens/WithdrawAddressScreen.d.ts.map +1 -1
  206. package/dist/src/screens/WithdrawAmountScreen.d.ts.map +1 -1
  207. package/dist/src/screens/WithdrawCompleteScreen.d.ts.map +1 -1
  208. package/dist/src/screens/depositMetrics.d.ts +2 -3
  209. package/dist/src/screens/depositMetrics.d.ts.map +1 -1
  210. package/dist/src/statsig/useStatsigReady.d.ts +11 -0
  211. package/dist/src/statsig/useStatsigReady.d.ts.map +1 -0
  212. package/dist/src/swapped/SwappedWebView.d.ts.map +1 -1
  213. package/dist/src/swapped/SwappedWithdrawScreen.d.ts +3 -1
  214. package/dist/src/swapped/SwappedWithdrawScreen.d.ts.map +1 -1
  215. package/dist/src/swapped/paymentNavigation.d.ts +21 -0
  216. package/dist/src/swapped/paymentNavigation.d.ts.map +1 -0
  217. package/dist/src/theme/buildFunkitTheme.d.ts +15 -11
  218. package/dist/src/theme/buildFunkitTheme.d.ts.map +1 -1
  219. package/dist/src/theme/restyle.d.ts +495 -363
  220. package/dist/src/theme/restyle.d.ts.map +1 -1
  221. package/dist/src/theme/toRestyleTheme.d.ts +45 -33
  222. package/dist/src/theme/toRestyleTheme.d.ts.map +1 -1
  223. package/dist/src/theme/tokens.d.ts +5 -5
  224. package/dist/src/theme/tokens.d.ts.map +1 -1
  225. package/dist/src/transfer/hooks/useDepositRecipient.d.ts +2 -2
  226. package/dist/src/transfer/hooks/useDepositRecipient.d.ts.map +1 -1
  227. package/dist/src/transfer/hooks/useTokenTransfer.d.ts +3 -2
  228. package/dist/src/transfer/hooks/useTokenTransfer.d.ts.map +1 -1
  229. package/dist/src/transfer/hooks/useTransferInit.d.ts +2 -3
  230. package/dist/src/transfer/hooks/useTransferInit.d.ts.map +1 -1
  231. package/dist/src/utils/formatAmount.d.ts +4 -3
  232. package/dist/src/utils/formatAmount.d.ts.map +1 -1
  233. package/dist/src/utils/motion.d.ts +18 -0
  234. package/dist/src/utils/motion.d.ts.map +1 -1
  235. package/dist/src/withdrawal/fiatTargetDecimals.d.ts +13 -0
  236. package/dist/src/withdrawal/fiatTargetDecimals.d.ts.map +1 -0
  237. package/dist/src/withdrawal/useCryptoWithdrawalForm.d.ts.map +1 -1
  238. package/dist/src/withdrawal/useSourceTokenDecimals.d.ts.map +1 -1
  239. package/dist/src/withdrawal/useWithdrawalExecution.d.ts.map +1 -1
  240. package/dist/src/withdrawal/useWithdrawalSourceTokenBalance.d.ts +11 -0
  241. package/dist/src/withdrawal/useWithdrawalSourceTokenBalance.d.ts.map +1 -0
  242. package/expo-module.config.json +6 -0
  243. package/ios/FunkitGlassEffect.podspec +23 -0
  244. package/ios/FunkitGlassEffectModule.swift +126 -0
  245. package/ios/GlassStyle.swift +52 -0
  246. package/ios/GlassView.swift +305 -0
  247. package/package.json +23 -7
  248. package/dist/chunk-VIMRV7N2.js.map +0 -7
@@ -0,0 +1,43 @@
1
+ import type { FiatStepResponse, SubmitTransition, Surface, SurfaceResult } from '@funkit/connect-core';
2
+ import type { StripeAuthorizeResult, StripeOnrampError } from './stripeOnramp';
3
+ export interface StripeSessionAuthStart {
4
+ transition: SubmitTransition;
5
+ verifiedEmail: string;
6
+ }
7
+ /**
8
+ * Reads the frozen Stripe auth-start seam from a generic `SESSION_AUTH` step.
9
+ * The backend owns the email and transition; the client only runs its local
10
+ * Link-account prerequisite before firing them.
11
+ */
12
+ export declare function stripeSessionAuthStart(step: FiatStepResponse | undefined, ctas: readonly SubmitTransition[]): StripeSessionAuthStart | undefined;
13
+ export type StripeAuthSurface = {
14
+ action: 'AUTHORIZE';
15
+ linkAuthIntentId: string;
16
+ } | {
17
+ action: 'AUTHENTICATE_WITH_TOKEN';
18
+ linkAuthTokenClientSecret: string;
19
+ };
20
+ /** Narrows the two Stripe native authentication surfaces at the adapter boundary. */
21
+ export declare function stripeAuthSurface(surface: Surface): StripeAuthSurface | undefined;
22
+ /**
23
+ * Flat, like `stripeAuthorizationReport` beside it and for the same reason: this
24
+ * surface answers a SUBMIT, and `injectExpects` fills nothing for a transition
25
+ * that is not a `CLIENT_SURFACE`. Nested under `result` the outcome was dropped
26
+ * during body assembly, so the buyer's consent never left the device.
27
+ */
28
+ export declare const stripeSeamlessAuthReport: (authenticated: boolean) => SurfaceResult;
29
+ /**
30
+ * Maps Stripe's SDK union onto the frozen wire outcomes, one key per declared
31
+ * input. Flat rather than nested under `result`: the transition carrying this
32
+ * is a SUBMIT, so body assembly takes each value by the input name the
33
+ * envelope declares, and `customerId` stays conditional by being absent on
34
+ * anything but consent rather than by being undefined inside a wrapper.
35
+ */
36
+ export declare function stripeAuthorizationReport(result: StripeAuthorizeResult): SurfaceResult | undefined;
37
+ /**
38
+ * Takes the error optionally. The SDK's result is declared as a union whose
39
+ * failure member always carries one, but an undeclared shape does reach here at
40
+ * runtime, and reading `.code` off it threw rather than reporting no outcome.
41
+ */
42
+ export declare function isStripeCancellation(error?: StripeOnrampError): boolean;
43
+ //# sourceMappingURL=stripeSessionAuth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stripeSessionAuth.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/stripeSessionAuth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,gBAAgB,EAChB,OAAO,EACP,aAAa,EACd,MAAM,sBAAsB,CAAA;AAE7B,OAAO,KAAK,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAE9E,MAAM,WAAW,sBAAsB;IACrC,UAAU,EAAE,gBAAgB,CAAA;IAC5B,aAAa,EAAE,MAAM,CAAA;CACtB;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,gBAAgB,GAAG,SAAS,EAClC,IAAI,EAAE,SAAS,gBAAgB,EAAE,GAChC,sBAAsB,GAAG,SAAS,CA0BpC;AAED,MAAM,MAAM,iBAAiB,GACzB;IAAE,MAAM,EAAE,WAAW,CAAC;IAAC,gBAAgB,EAAE,MAAM,CAAA;CAAE,GACjD;IACE,MAAM,EAAE,yBAAyB,CAAA;IACjC,yBAAyB,EAAE,MAAM,CAAA;CAClC,CAAA;AAEL,qFAAqF;AACrF,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,OAAO,GACf,iBAAiB,GAAG,SAAS,CA4B/B;AAED;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,GACnC,eAAe,OAAO,KACrB,aAED,CAAA;AAEF;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,qBAAqB,GAC5B,aAAa,GAAG,SAAS,CAa3B;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAEvE"}
@@ -0,0 +1,35 @@
1
+ import type { StripeOnrampClient } from './stripeOnramp';
2
+ import type { StripeSdk } from './stripeSdk';
3
+ /**
4
+ * What a host must supply to turn Stripe on: its own Stripe account's
5
+ * publishable key, and the Apple Merchant ID baked into the app's entitlements.
6
+ * Data only — the host installs `@stripe/stripe-react-native` (an optional peer)
7
+ * and this package binds it (see {@link useStripeOnrampClient}), so a host wires
8
+ * three strings, not an implementation.
9
+ */
10
+ export interface StripeOnrampConfig {
11
+ /** Publishable key for the Stripe account the onramp settles into. */
12
+ publishableKey: string;
13
+ /** Shown on Stripe's own sheets. Defaults to the app's display name. */
14
+ merchantDisplayName: string;
15
+ /**
16
+ * Apple Merchant ID (`merchant.example.app`). Required for Apple Pay: it is
17
+ * an app entitlement, so only the host knows it, and Stripe decrypts the
18
+ * payment against the certificate bound to it.
19
+ */
20
+ merchantIdentifier?: string;
21
+ /** Deep-link scheme Stripe returns to after a redirect (3DS, KYC). */
22
+ urlScheme?: string;
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
+ export declare function useStripeOnrampClient({ initStripe, isPlatformPaySupported, useOnramp }: StripeSdk, config: StripeOnrampConfig): StripeOnrampClient;
35
+ //# sourceMappingURL=useStripeOnrampClient.d.ts.map
@@ -0,0 +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"}
@@ -18,6 +18,33 @@ export declare function showPaymentUnavailableAlert(t: TFunction, applePay: bool
18
18
  export declare function showQuoteRefusalAlert(error: FailureReason, t: TFunction, scheme?: 'light' | 'dark'): void;
19
19
  /** The error a step response carries back onto the quote, if it does. */
20
20
  export declare function quoteRefusal(stepResponse: FiatStepResponse | undefined): FailureReason | undefined;
21
+ /**
22
+ * A refusal for asking to spend more than this buyer may.
23
+ *
24
+ * It belongs on the amount field, not in an alert. The server re-presents the
25
+ * quote with `limits.max` narrowed to the cap that refused, so the screen names
26
+ * the number and offers the way down to it — the same answer every other
27
+ * maximum gets (ENG-6302). An alert on top of that says it twice, in wording
28
+ * that is in none of the designs, and leaves the buyer to dismiss it before
29
+ * they can act on the ceiling underneath.
30
+ */
31
+ export declare function isOverLimit(error: FailureReason): boolean;
32
+ /**
33
+ * Whether the screen can actually name the cap an over-limit refusal carries.
34
+ *
35
+ * `isOverLimit` suppresses the alert because the amount field shows the ceiling
36
+ * instead, and the contract makes `limits.max` required on a `QUOTE`, so a
37
+ * ceiling is there to show. But the suppression and the recovery read different
38
+ * fields, and nothing in the types ties them together: a server that answered
39
+ * with a zero or unparseable max would silence the alert and leave the field
40
+ * offering the range that was just refused — no alert and no number.
41
+ *
42
+ * So the invariant is checked rather than trusted. Staying silent is only right
43
+ * when there is something to be silent about.
44
+ */
45
+ export declare function hasOverLimitCeiling(stepResponse: FiatStepResponse | undefined, refusedMaximum: {
46
+ amount: string;
47
+ } | undefined, amount: string): boolean;
21
48
  export declare function quoteRefusalAlert(error: FailureReason, t: TFunction): QuoteRefusalAlert;
22
49
  /** Select the contact-screen recovery, if the refusal belongs on that screen. */
23
50
  export declare function contactRefusal(error: FailureReason | undefined): 'reverify' | 'change' | 'rate-limited' | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"quoteRefusal.d.ts","sourceRoot":"","sources":["../../../src/fiat/quoteRefusal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAC3E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAIxC;;;;;;;;;GASG;AACH,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,wBAAgB,2BAA2B,CACzC,CAAC,EAAE,SAAS,EACZ,QAAQ,EAAE,OAAO,EACjB,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,QAa1B;AAED,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,aAAa,EACpB,CAAC,EAAE,SAAS,EACZ,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,QAkB1B;AAED,yEAAyE;AACzE,wBAAgB,YAAY,CAC1B,YAAY,EAAE,gBAAgB,GAAG,SAAS,GACzC,aAAa,GAAG,SAAS,CAG3B;AAED,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,aAAa,EACpB,CAAC,EAAE,SAAS,GACX,iBAAiB,CA8BnB;AAED,iFAAiF;A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UAAU,GAAG,QAAQ,GAAG,cAAc,GAAG,SAAS,CAWpD"}
@@ -5,7 +5,7 @@ import type { SurfaceAdapter, SurfaceContext, SurfaceControlModel } from './prov
5
5
  * How this surface is operated, or `undefined` when nothing can draw it.
6
6
  * Asked before rendering, because the two models want different chrome.
7
7
  */
8
- export declare function captureControl(surface: Surface): SurfaceControlModel | undefined;
8
+ export declare function captureControl(surface: Surface, adapters?: readonly SurfaceAdapter[]): SurfaceControlModel | undefined;
9
9
  /**
10
10
  * `adapters` are tried before the registry, for a screen that can build one
11
11
  * 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,EACpB,MAAM,qBAAqB,CAAA;AAqC5B;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE,OAAO,GACf,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,EACpB,MAAM,qBAAqB,CAAA;AAqC5B;;;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 +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,CAmBvE"}
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"}
@@ -33,7 +33,7 @@ export declare function quoteFeeSummary(quote: Quote | undefined, method: string
33
33
  * A step's own error, worded for the banner it renders as. The contract sends
34
34
  * no message — `code` is a copy key — so the category is what the copy keys off.
35
35
  */
36
- export declare function roundErrorMessage(error: FailureReason | undefined, t: TFunction): string | undefined;
36
+ export declare function roundErrorMessage(error: FailureReason | undefined, t: TFunction, provider?: string): string | undefined;
37
37
  /**
38
38
  * A cooling-off hold's comeback date, worded as the ISO day it names.
39
39
  *
@@ -49,4 +49,8 @@ export declare function kycHoldRetryDetail(flow: FiatFlow, t: TFunction): string
49
49
  */
50
50
  export declare function rejectedDetail(flow: FiatFlow, t: TFunction): string | undefined;
51
51
  export declare function blockedRetryDetail(flow: FiatFlow): string | undefined;
52
+ /** The marker a KYC round carries when its quote lapsed while the form was open. */
53
+ export declare function isExpiredQuoteMarker(error: FailureReason): boolean;
54
+ /** The recipient as the buyer knows it; the wire id is upper case. */
55
+ export declare function providerName(provider: string | undefined): string;
52
56
  //# sourceMappingURL=stepDetails.d.ts.map
@@ -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,E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1
- import { type CheckoutTokenTransferConfig } from '@funkit/connect-core';
2
- import type { DepositClientMetadata, FiatRailConfig } from '../flow/depositFlowConfig';
1
+ import type { DepositClientMetadata, DepositTargetConfig, FiatRailConfig } from '../flow/depositFlowConfig';
3
2
  export interface UseFiatDirectDeliveryParams {
4
3
  /** Destination chain/asset the deposit is headed for. */
5
- checkoutConfig: CheckoutTokenTransferConfig | undefined;
4
+ checkoutConfig: DepositTargetConfig | undefined;
6
5
  rail: FiatRailConfig;
7
6
  dynamicRoutingId: string | undefined;
8
7
  checkoutId: string;
9
8
  clientMetadata: DepositClientMetadata | undefined;
10
9
  /** Host fallback for local/dev clients that mint no address of their own. */
11
10
  depositAddressOverride?: string;
11
+ /** The verified assertion supplies the recipient on the backend. */
12
+ resolveOnBackend?: boolean;
12
13
  }
13
14
  export interface UseFiatDirectDeliveryResult {
14
15
  /** Where the order delivers the crypto; `undefined` until one resolves. */
@@ -28,5 +29,5 @@ export interface UseFiatDirectDeliveryResult {
28
29
  * do, so the order names the recipient instead — the crypto lands where it is
29
30
  * wanted rather than at a per-checkout address the backend has still to sweep.
30
31
  */
31
- export declare function useFiatDirectDelivery({ checkoutConfig, rail, dynamicRoutingId, checkoutId, clientMetadata, depositAddressOverride, }: UseFiatDirectDeliveryParams): UseFiatDirectDeliveryResult;
32
+ export declare function useFiatDirectDelivery({ checkoutConfig, rail, dynamicRoutingId, checkoutId, clientMetadata, depositAddressOverride, resolveOnBackend, }: UseFiatDirectDeliveryParams): UseFiatDirectDeliveryResult;
32
33
  //# sourceMappingURL=useFiatDirectDelivery.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useFiatDirectDelivery.d.ts","sourceRoot":"","sources":["../../../src/fiat/useFiatDirectDelivery.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,2BAA2B,EAKjC,MAAM,sBAAsB,CAAA;AAE7B,OAAO,KAAK,EACV,qBAAqB,EACrB,cAAc,EACf,MAAM,2BAA2B,CAAA;AAOlC,MA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B;AAED,MAAM,WAAW,2BAA2B;IAC1C,2EAA2E;IAC3E,cAAc,EAAE,MAAM,GAAG,SAAS,CAAA;IAClC,4EAA4E;IAC5E,QAAQ,EAAE,OAAO,CAAA;IACjB,iFAAiF;IACjF,mBAAmB,EAAE,KAAK,GAAG,SAAS,CAAA;IACtC,sEAAsE;IACtE,mBAAmB,EAAE,MAAM,IAAI,CAAA;CAChC;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,cAAc,EACd,IAAI,EACJ,gBAAgB,EAChB,UAAU,EACV,cAAc,EACd,sBAAsB,EACtB,gBAAwB,GACzB,EAAE,2BAA2B,GAAG,2BAA2B,CA8E3D"}
@@ -0,0 +1,35 @@
1
+ import type { TFunction } from 'i18next';
2
+ import type { GetIdentityAssertion } from '../identity/IdentityContext';
3
+ import type { DepositOutcomeReporter } from './depositOutcome';
4
+ /** What the fiat flow needs from the host's minter, wrapped for one user. */
5
+ export interface FiatIdentityAssertion {
6
+ getAssertion: GetIdentityAssertion;
7
+ /** The user the assertion is minted for; bounds the transport's cache. */
8
+ subject: string;
9
+ }
10
+ /**
11
+ * The host's identity minter as the fiat flow sees it: wrapped so each
12
+ * contract error code lands where the spec says, and read for the email the
13
+ * assertion actually carries.
14
+ *
15
+ * - `SESSION_EXPIRED` closes the flow and reports `session_expired`; the host
16
+ * re-authenticates and reopens.
17
+ * - `ACCOUNT_INELIGIBLE` reports `blocked` and is terminal for this account.
18
+ * - `TRANSIENT`, or no code, reports `identity_assertion_failed`; the
19
+ * existing retry UI is the recovery.
20
+ */
21
+ export declare function useIdentityAssertion({ getIdentityAssertion, userId, outcome, onCloseFlow, t, }: {
22
+ getIdentityAssertion: GetIdentityAssertion | undefined;
23
+ userId: string;
24
+ outcome: DepositOutcomeReporter;
25
+ onCloseFlow: () => void;
26
+ t: TFunction;
27
+ }): {
28
+ /** `undefined` while the host declares no identity. */
29
+ identityAssertion: FiatIdentityAssertion | undefined;
30
+ /** The `email` claim of an assertion minted for the current user. */
31
+ assertedEmail: string | undefined;
32
+ /** The minter refused this account; nothing in the flow recovers it. */
33
+ accountIneligible: boolean;
34
+ };
35
+ //# sourceMappingURL=useIdentityAssertion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useIdentityAssertion.d.ts","sourceRoot":"","sources":["../../../src/fiat/useIdentityAssertion.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAIxC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAA;AAEvE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAA;AAE9D,6EAA6E;AAC7E,MAAM,WAAW,qBAAqB;IACpC,YAAY,EAAE,oBAAoB,CAAA;IAClC,0EAA0E;IAC1E,OAAO,EAAE,MAAM,CAAA;CAChB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,oBAAoB,EACpB,MAAM,EACN,OAAO,EACP,WAAW,EACX,CAAC,GACF,EAAE;IACD,oBAAoB,EAAE,oBAAoB,GAAG,SAAS,CAAA;IACtD,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,sBAAsB,CAAA;IAC/B,WAAW,EAAE,MAAM,IAAI,CAAA;IACvB,CAAC,EAAE,SAAS,CAAA;CACb,GAAG;IACF,uDAAuD;IACvD,iBAAiB,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACpD,qEAAqE;IACrE,aAAa,EAAE,MAAM,GAAG,SAAS,CAAA;IACjC,wEAAwE;IACxE,iBAAiB,EAAE,OAAO,CAAA;CAC3B,CA8DA"}
@@ -2,12 +2,20 @@ import type { FiatFlow } from '@funkit/connect-core';
2
2
  import type { FiatKycOutcomeScreenProps } from './FiatKycOutcomeScreen';
3
3
  export type KycCompletion = FiatKycOutcomeScreenProps['outcome'];
4
4
  /**
5
- * The acknowledgement owed to a finished identity form, which the quote-time
6
- * banner cannot give: that one reports a verdict returned with a price, so a
7
- * form answered with a price says nothing.
5
+ * The acknowledgement owed to a finished identity form whose verdict is not
6
+ * yet in: review, hold, or refusal. A form answered with the next step needs
7
+ * none; that step is the acknowledgement.
8
8
  *
9
9
  * Derived in render, not an effect — the amount screen must not paint in the
10
10
  * gap. Capture is excluded: a provider surface reporting back is not a form.
11
11
  */
12
12
  export declare function useKycCompletion(flow: FiatFlow): KycCompletion | undefined;
13
+ /**
14
+ * The wait an acknowledgement makes before it gives up its verdict.
15
+ *
16
+ * - Counted from the moment the screen is up, not from when the answer landed:
17
+ * the verdict is often decided while another screen still owns the frame,
18
+ * and a wait spent behind one is a wait the buyer never had.
19
+ */
20
+ export declare function useKycCompletionHold(): boolean;
13
21
  //# sourceMappingURL=useKycCompletion.d.ts.map
@@ -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;AAIhE;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,QAAQ,GAAG,aAAa,GAAG,SAAS,CAa1E"}
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"}
@@ -0,0 +1,28 @@
1
+ import type { FunLogger, GetIdentityAssertion, RouteIdentity, RouteLimits } from '@funkit/connect-core';
2
+ /** The two fields of a discovered payment method this screen reads. */
3
+ interface PaymentMethodOption {
4
+ category?: string;
5
+ /** Optional: the backend answering this build may predate the field. */
6
+ maxQuoteableAmount?: string | null;
7
+ }
8
+ interface PaymentMethodsResponse {
9
+ paymentMethods?: PaymentMethodOption[];
10
+ }
11
+ /**
12
+ * The ceiling `paymentMethod` names, in the requested currency — the response
13
+ * carries none of its own. Another category's ceiling is not this buyer's, and
14
+ * anything absent, null or unreadable is no ceiling at all.
15
+ */
16
+ export declare function quoteableCeiling(response: PaymentMethodsResponse | undefined, paymentMethod: string, currency: string): RouteLimits | undefined;
17
+ /**
18
+ * What the buyer may still spend on this route, learned without asking for a
19
+ * price. Absent unless the answer is certain: a ceiling too high costs a round
20
+ * trip, one too low refuses a purchase the server would have served.
21
+ */
22
+ export declare function useQuoteableCeiling({ route, logger, getIdentityAssertion, }: {
23
+ route: RouteIdentity;
24
+ logger: FunLogger;
25
+ getIdentityAssertion?: GetIdentityAssertion;
26
+ }): RouteLimits | undefined;
27
+ export {};
28
+ //# sourceMappingURL=useQuoteableCeiling.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useQuoteableCeiling.d.ts","sourceRoot":"","sources":["../../../src/fiat/useQuoteableCeiling.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACT,oBAAoB,EACpB,aAAa,EACb,WAAW,EACZ,MAAM,sBAAsB,CAAA;AAY7B,uEAAuE;AACvE,UAAU,mBAAmB;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,wEAAwE;IACxE,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACnC;AAED,UAAU,sBAAsB;IAC9B,cAAc,CAAC,EAAE,mBAAmB,EAAE,CAAA;CACvC;AAKD;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,sBAAsB,GAAG,SAAS,EAC5C,aAAa,EAAE,MAAM,EACrB,QAAQ,EAAE,MAAM,GACf,WAAW,GAAG,SAAS,CAazB;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,KAAK,EACL,MAAM,EACN,oBAAoB,GACrB,EAAE;IACD,KAAK,EAAE,aAAa,CAAA;IACpB,MAAM,EAAE,SAAS,CAAA;IACjB,oBAAoB,CAAC,EAAE,oBAAoB,CAAA;CAC5C,GAAG,WAAW,GAAG,SAAS,CA2G1B"}
@@ -19,6 +19,13 @@ export interface StaleQuoteRecovery {
19
19
  * query is off, so there is no replacement to wait for, and the way to a new
20
20
  * price is giving the round up.
21
21
  */
22
- export declare function useStaleQuoteRecovery(flow: RecoverableFlow, quote: RecoverableQuote): StaleQuoteRecovery;
22
+ export declare function useStaleQuoteRecovery(flow: RecoverableFlow, quote: RecoverableQuote, { hold, }?: {
23
+ /**
24
+ * The failed send followed a completed capture, so a replacement price
25
+ * would open a second sheet on a card already charged. Nothing is replaced
26
+ * while this holds.
27
+ */
28
+ hold?: boolean;
29
+ }): StaleQuoteRecovery;
23
30
  export {};
24
31
  //# sourceMappingURL=useStaleQuoteRecovery.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useStaleQuoteRecovery.d.ts","sourceRoot":"","sources":["../../../src/fiat/useStaleQuoteRecovery.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAMxE,KAAK,eAAe,GAAG,IAAI,CAAC,QAAQ,EAAE,OAAO,GAAG,aAAa,GAAG,cAAc,CAAC,CAAA;AAE/E,KAAK,gBAAgB,GAAG,IAAI,CAC1B,kBAAkB,EAClB,OAAO,GAAG,cAAc,GAAG,YAAY,GAAG,YAAY,GAAG,aAAa,CACvE,CAAA;AAED,MAAM,WAAW,kBAAkB;IACjC,oEAAoE;IACpE,WAAW,EAAE,OAAO,CAAA;IACpB,uEAAuE;IACvE,YAAY,EAAE,MAAM,IAAI,CAAA;CACzB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,eAAe,EACrB,KAAK,EAAE,gBAAgB,GACtB,kBAAkB,CAwEpB"}
1
+ {"version":3,"file":"useStaleQuoteRecovery.d.ts","sourceRoot":"","sources":["../../../src/fiat/useStaleQuoteRecovery.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAMxE,KAAK,eAAe,GAAG,IAAI,CAAC,QAAQ,EAAE,OAAO,GAAG,aAAa,GAAG,cAAc,CAAC,CAAA;AAE/E,KAAK,gBAAgB,GAAG,IAAI,CAC1B,kBAAkB,EAClB,OAAO,GAAG,cAAc,GAAG,YAAY,GAAG,YAAY,GAAG,aAAa,CACvE,CAAA;AAED,MAAM,WAAW,kBAAkB;IACjC,oEAAoE;IACpE,WAAW,EAAE,OAAO,CAAA;IACpB,uEAAuE;IACvE,YAAY,EAAE,MAAM,IAAI,CAAA;CACzB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,eAAe,EACrB,KAAK,EAAE,gBAAgB,EACvB,EACE,IAAY,GACb,GAAE;IACD;;;;OAIG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;CACV,GACL,kBAAkB,CA8EpB"}
@@ -1,12 +1,14 @@
1
- import type { DepositAmountEntryConfig, DepositFlowCallbacks, DepositInitialAmount } from './depositFlowConfig';
1
+ import type { DepositAmountEntryConfig, DepositFlowCallbacks, DepositInitialAmount, DepositMethod } from './depositFlowConfig';
2
2
  /**
3
3
  * Container for the V2 amount-entry screen: owns the typed amount, prices the
4
4
  * fee from the configured rate and hands submission to the host. The payment
5
5
  * rail behind the submit is not part of this step — `onSubmitAmount` is the
6
6
  * seam it will attach to.
7
7
  */
8
- export declare function DepositAmountStep({ config, callbacks, initialAmount, lockAmount, }: {
8
+ export declare function DepositAmountStep({ config, method, callbacks, initialAmount, lockAmount, }: {
9
9
  config: DepositAmountEntryConfig;
10
+ /** The method the submit stands for; it words the button and the drawer. */
11
+ method?: DepositMethod;
10
12
  callbacks: DepositFlowCallbacks;
11
13
  /** Prefills the typed amount. */
12
14
  initialAmount?: DepositInitialAmount;
@@ -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,EACrB,MAAM,qBAAqB,CAAA;AAU5B;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,MAAM,EACN,SAAS,EACT,aAAa,EACb,UAAU,GACX,EAAE;IACD,MAAM,EAAE,wBAAwB,CAAA;IAChC,SAAS,EAAE,oBAAoB,CAAA;IAC/B,iCAAiC;IACjC,aAAa,CAAC,EAAE,oBAAoB,CAAA;IACpC;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,+BA4HA"}
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,5 +1,6 @@
1
1
  import { type ReactNode } from 'react';
2
2
  import type { DepositClientMetadata, DepositFlowCallbacks, DepositFlowConfig } from './depositFlowConfig';
3
+ import type { DepositReceipt } from './useDepositReceivedToast';
3
4
  import type { FlowNav, FlowScreen } from './FunkitFlowProvider';
4
5
  /**
5
6
  * The live flow body. Drives the deposit-address + QR generation
@@ -7,13 +8,15 @@ import type { FlowNav, FlowScreen } from './FunkitFlowProvider';
7
8
  * with the resolved data. Kept separate from the provider so its
8
9
  * hooks run only while the modal is open (it isn't mounted when closed).
9
10
  */
10
- export declare function FlowContent({ checkoutId, clientMetadata, config, current, nav, onCopySuccess, callbacks, }: {
11
+ export declare function FlowContent({ checkoutId, clientMetadata, config, current, nav, onCopySuccess, showDepositToast, callbacks, }: {
11
12
  checkoutId: string;
12
13
  clientMetadata: DepositClientMetadata | undefined;
13
14
  config: DepositFlowConfig;
14
15
  current: FlowScreen | undefined;
15
16
  nav: FlowNav;
16
17
  onCopySuccess: () => void;
18
+ /** Raises the SDK's deposit confirmation, which outlives this content. */
19
+ showDepositToast: (receipt: DepositReceipt) => void;
17
20
  callbacks: DepositFlowCallbacks;
18
21
  }): ReactNode;
19
22
  //# sourceMappingURL=DepositFlowContent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DepositFlowContent.d.ts","sourceRoot":"","sources":["../../../src/flow/DepositFlowContent.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAoC,MAAM,OAAO,CAAA;AA2CxE,OAAO,KAAK,EAEV,qBAAqB,EACrB,oBAAoB,EACpB,iBAAiB,EAElB,MAAM,qBAAqB,CAAA;AAI5B,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AA6D/D;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,EAC1B,UAAU,EACV,cAAc,EACd,MAAM,EACN,OAAO,EACP,GAAG,EACH,aAAa,EACb,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,MAAM,IAAI,CAAA;IACzB,SAAS,EAAE,oBAAoB,CAAA;CAChC,GAAG,SAAS,CAyQZ"}
1
+ {"version":3,"file":"DepositFlowContent.d.ts","sourceRoot":"","sources":["../../../src/flow/DepositFlowContent.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAoC,MAAM,OAAO,CAAA;AA8CxE,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;AA6D/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,MAAM,IAAI,CAAA;IACzB,0EAA0E;IAC1E,gBAAgB,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAA;IACnD,SAAS,EAAE,oBAAoB,CAAA;CAChC,GAAG,SAAS,CAiSZ"}
@@ -0,0 +1,17 @@
1
+ export interface DepositReceivedToastProps {
2
+ /** The amount that landed, e.g. "$99.50 deposit received". */
3
+ title: string;
4
+ /** Where it came from, e.g. "from ApplePay". */
5
+ detail: string;
6
+ }
7
+ /**
8
+ * The deposit confirmation that replaces the payment sheet.
9
+ *
10
+ * - Owns no timer and no positioning: whatever mounts it decides both.
11
+ * - Outlives the sheet — the flow closes on a cleared charge, and this is what
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.
15
+ */
16
+ export declare function DepositReceivedToast({ title, detail, }: DepositReceivedToastProps): import("react").JSX.Element;
17
+ //# sourceMappingURL=DepositReceivedToast.d.ts.map
@@ -0,0 +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 +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;AAE1E,OAAO,EACL,KAAK,aAAa,EAEnB,MAAM,6BAA6B,CAAA;AAOpC,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,+BAkBA"}
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,5 +1,6 @@
1
- import type { DepositAmountEntryConfig, DepositCheckoutConfig, DepositClientMetadata, DepositInitialAmount, FiatRailConfig } from './depositFlowConfig';
2
- export declare function FiatDepositAmountStep({ config, fiat, checkoutConfig, dynamicRoutingId, depositAddressOverride, checkoutId, clientMetadata, initialAmount, lockAmount, onCloseFlow, }: {
1
+ import type { DepositAmountEntryConfig, DepositCheckoutConfig, DepositClientMetadata, DepositFlowCallbacks, DepositInitialAmount, FiatRailConfig } from './depositFlowConfig';
2
+ import type { DepositReceipt } from './useDepositReceivedToast';
3
+ export declare function FiatDepositAmountStep({ config, fiat, checkoutConfig, dynamicRoutingId, depositAddressOverride, checkoutId, clientMetadata, initialAmount, lockAmount, callbacks, showDepositToast, onCloseFlow, }: {
3
4
  config: DepositAmountEntryConfig;
4
5
  fiat: FiatRailConfig;
5
6
  checkoutConfig: DepositCheckoutConfig | undefined;
@@ -14,6 +15,9 @@ export declare function FiatDepositAmountStep({ config, fiat, checkoutConfig, dy
14
15
  initialAmount?: DepositInitialAmount;
15
16
  /** Locks the prefilled amount against numpad and quick-amount edits. */
16
17
  lockAmount?: boolean;
18
+ callbacks: Pick<DepositFlowCallbacks, 'onDepositSubmitted' | 'onDepositError'>;
19
+ /** Raises the SDK's deposit confirmation, which outlives this screen. */
20
+ showDepositToast: (receipt: DepositReceipt) => void;
17
21
  onCloseFlow: () => void;
18
22
  }): import("react").JSX.Element;
19
23
  //# sourceMappingURL=FiatDepositAmountStep.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FiatDepositAmountStep.d.ts","sourceRoot":"","sources":["../../../src/flow/FiatDepositAmountStep.tsx"],"names":[],"mappings":"AA6GA,OAAO,KAAK,EACV,wBAAwB,EACxB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,cAAc,EACf,MAAM,qBAAqB,CAAA;AAsD5B,wBAAgB,qBAAqB,CAAC,EACpC,MAAM,EACN,IAAI,EACJ,cAAc,EACd,gBAAgB,EAChB,sBAAsB,EACtB,UAAU,EACV,cAAc,EACd,aAAa,EACb,UAAU,EACV,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,WAAW,EAAE,MAAM,IAAI,CAAA;CACxB,+BA2BA"}
1
+ {"version":3,"file":"FiatDepositAmountStep.d.ts","sourceRoot":"","sources":["../../../src/flow/FiatDepositAmountStep.tsx"],"names":[],"mappings":"AAqJA,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;AA0F/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,+BAqDA"}
@@ -0,0 +1,14 @@
1
+ import type { DepositFlowCallbacks } from './depositFlowConfig';
2
+ /**
3
+ * The region refusal raised before a deposit has started.
4
+ *
5
+ * The host hears it on the deposit's own error channel rather than
6
+ * `onCheckoutBlocked`: that one says the user is barred from checkout, and a
7
+ * corridor we do not serve is a different fact.
8
+ */
9
+ export declare function FiatRegionBlockedStep({ checkoutId, callbacks, onClose, }: {
10
+ checkoutId: string;
11
+ callbacks: Pick<DepositFlowCallbacks, 'onDepositError'>;
12
+ onClose: () => void;
13
+ }): import("react").JSX.Element;
14
+ //# sourceMappingURL=FiatRegionBlockedStep.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FiatRegionBlockedStep.d.ts","sourceRoot":"","sources":["../../../src/flow/FiatRegionBlockedStep.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAA;AAG/D;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,UAAU,EACV,SAAS,EACT,OAAO,GACR,EAAE;IACD,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,IAAI,CAAC,oBAAoB,EAAE,gBAAgB,CAAC,CAAA;IACvD,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB,+BAoBA"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Held while the region verdict is still provisional.
3
+ *
4
+ * Nothing of the deposit mounts behind this. Mounting the amount screen first
5
+ * and swapping it out on a refusal would let the buyer start typing into a
6
+ * flow that was never open to them, and would report the deposit `cancelled`
7
+ * on the way out — on top of the refusal the host is about to hear.
8
+ */
9
+ export declare function FiatRegionPendingStep(): import("react").JSX.Element;
10
+ //# sourceMappingURL=FiatRegionPendingStep.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FiatRegionPendingStep.d.ts","sourceRoot":"","sources":["../../../src/flow/FiatRegionPendingStep.tsx"],"names":[],"mappings":"AAWA;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,gCAiBpC"}
@@ -1,19 +1,13 @@
1
- import { type ReactNode } from 'react';
2
1
  import { type BottomSheetBackgroundProps } from '@gorhom/bottom-sheet';
2
+ import { type ReactNode } from 'react';
3
3
  /**
4
- * Host-supplied material laid under the sheet's overlay. The package ships no
5
- * material of its own — every option is native, so it would cost consumers a
6
- * rebuild and a peer-dep bump. Rendered into a full-bleed container, so
7
- * `flex: 1` or `StyleSheet.absoluteFill` fills the screen.
8
- *
9
- * A glass host (see `liquidGlass`) is handed the surface's `tint` and paints
10
- * it itself, because a refractive material has to tint what it refracts — a
11
- * fill laid over it would mute the refraction to a flat panel.
4
+ * Material laid under a translucent flow surface. The package ships its own
5
+ * (see SheetMaterial); a host replaces it through `FunkitProvider`. Rendered
6
+ * into a full-bleed container, so `StyleSheet.absoluteFill` fills the screen.
7
+ * The material carries its own tint; a glass one (see `liquidGlass`) has the
8
+ * surface paint no fill over it, which would mute the refraction to a panel.
12
9
  */
13
- export type BackdropBlurRenderer = (props: {
14
- /** The surface fill the material replaces, alpha included. */
15
- tint: string;
16
- }) => ReactNode;
10
+ export type BackdropBlurRenderer = () => ReactNode;
17
11
  export interface FlowSheetProps {
18
12
  isOpen: boolean;
19
13
  /**
@@ -44,8 +38,9 @@ export interface FlowSheetProps {
44
38
  /** Let the sheet reach the top of the screen for a screen that is a full window tall. */
45
39
  fullHeight?: boolean;
46
40
  /**
47
- * Draw the sheet as glass rather than a panel — the V2 deposit surface, which
48
- * the design lays over the host app. See {@link GlassSheetBackground}.
41
+ * Draw the sheet as bare material rather than a panel — the V2 deposit
42
+ * surface, which the design lays over the host app. See
43
+ * {@link GlassSheetBackground}.
49
44
  */
50
45
  glass?: boolean;
51
46
  }
@@ -63,12 +58,11 @@ export declare function FlowSheet({ isOpen, session, onClose, content, children,
63
58
  */
64
59
  export declare function FlowSheetBackground(props: BottomSheetBackgroundProps): import("react").JSX.Element;
65
60
  /**
66
- * {@link FlowSheetBackground} for the amount-first deposit surface, which the
67
- * design draws as glass over the host app. Pair with the host's
68
- * {@link BackdropBlurRenderer}: without a blur behind it the app shows through
69
- * sharp, which is legible but not what the design draws.
61
+ * {@link FlowSheetBackground} for the amount-first deposit surface: only the
62
+ * material, with no fill, shadow, or stroke of the sheet's own. Its corners
63
+ * are the material's, concentric with the device's.
70
64
  */
71
- export declare function GlassSheetBackground(props: BottomSheetBackgroundProps): import("react").JSX.Element;
65
+ export declare function GlassSheetBackground({ pointerEvents, style, }: BottomSheetBackgroundProps): import("react").JSX.Element;
72
66
  /**
73
67
  * {@link FlowSheetBackground} for a screen stacked over another sheet — the
74
68
  * country list (2531:8471). Glass rather than a panel, so the step it was
@@ -1 +1 @@
1
- {"version":3,"file":"FlowSheet.d.ts","sourceRoot":"","sources":["../../../src/flow/FlowSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,SAAS,EAIf,MAAM,OAAO,CAAA;AAEd,OAAO,EAEL,KAAK,0BAA0B,EAKhC,MAAM,sBAAsB,CAAA;AAiB7B;;;;;;;;;GASG;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,KAAK,EAAE;IACzC,8DAA8D;IAC9D,IAAI,EAAE,MAAM,CAAA;CACb,KAAK,SAAS,CAAA;AAEf,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;;;OAGG;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,+BA2KhB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,mBA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EACnC,aAAa,EACb,KAAK,GACN,EAAE,0BAA0B,+BAoB5B;AAWD;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,0BAA0B,+BASvE"}
@@ -3,10 +3,16 @@ import { type ClipboardReader, type ClipboardWriter } from '../transfer/clipboar
3
3
  import type { DepositFlowCallbacks, DepositFlowConfig } from './depositFlowConfig';
4
4
  import { type BackdropBlurRenderer } from './FlowSheet';
5
5
  import type { WithdrawalFlowCallbacks, WithdrawalFlowConfig } from './withdrawalFlowConfig';
6
+ import type { StripeOnrampConfig } from '../fiat/providers/useStripeOnrampClient';
6
7
  export type FlowScreen = 'depositAmount' | 'addMoney' | 'transfer' | 'swapped' | 'withdrawMethod' | 'withdrawAmount' | 'withdrawAddress' | 'withdrawReceiveToken' | 'withdrawComplete';
7
8
  interface FunkitFlowContextValue {
8
- /** Open the managed deposit flow at the Add money screen. */
9
- beginDeposit: (config: DepositFlowConfig, callbacks?: DepositFlowCallbacks) => void;
9
+ /**
10
+ * Open the managed deposit flow. Resolves once the sheet is presenting. A
11
+ * config that cannot open throws {@link FunkitMisconfiguredError} before any
12
+ * promise exists, so `await beginDeposit()` and a bare call both see it at
13
+ * the tap.
14
+ */
15
+ beginDeposit: (config: DepositFlowConfig, callbacks?: DepositFlowCallbacks) => Promise<void>;
10
16
  /** Open the managed withdrawal flow at the payout-method screen. */
11
17
  beginWithdrawal: (config: WithdrawalFlowConfig, callbacks?: WithdrawalFlowCallbacks) => void;
12
18
  /** Close the flow. */
@@ -31,16 +37,23 @@ export interface FlowNav {
31
37
  * (host apps never render them directly), mirroring how `@funkit/connect`'s
32
38
  * `FunkitProvider` owns the checkout modal.
33
39
  */
34
- export declare function FunkitFlowProvider({ children, copyToClipboard, pasteFromClipboard, renderBackdropBlur, liquidGlass, }: {
40
+ export declare function FunkitFlowProvider({ children, copyToClipboard, pasteFromClipboard, renderBackdropBlur, liquidGlass, stripeOnramp, onOpenChange, }: {
35
41
  children: ReactNode;
36
42
  /** Host clipboard override; defaults to the bare-RN clipboard peer. */
37
43
  copyToClipboard?: ClipboardWriter;
38
44
  /** Host clipboard-read override; defaults to the bare-RN clipboard peer. */
39
45
  pasteFromClipboard?: ClipboardReader;
40
- /** Host blur under the sheet's overlay. See {@link BackdropBlurRenderer}. */
46
+ /** Host replacement for the sheet material. See {@link BackdropBlurRenderer}. */
41
47
  renderBackdropBlur?: BackdropBlurRenderer;
42
- /** Set when that renderer returns iOS 26 Liquid Glass rather than a blur. */
48
+ /** Set with a replacement that is iOS 26 Liquid Glass rather than a blur. */
43
49
  liquidGlass?: boolean;
50
+ /** Stripe account config; the client is built from it here. */
51
+ stripeOnramp?: StripeOnrampConfig;
52
+ /**
53
+ * Fires on the closed→open and open→closed transitions, and again with
54
+ * `true` when a `begin*` call replaces a flow that is already open.
55
+ */
56
+ onOpenChange?: (isOpen: boolean) => void;
44
57
  }): import("react").JSX.Element;
45
58
  export declare function useFunkitFlow(): FunkitFlowContextValue;
46
59
  export {};