@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,12 @@
1
+ import type { FiatProvider } from '@funkit/connect-core';
2
+ /** Whether a provider's own refusal is one another provider could still take. */
3
+ export declare function isProviderRiskDecline(provider: FiatProvider | undefined, code: string): boolean;
4
+ /** What the quote fetched after a risk decline came back with. */
5
+ export type FailoverOutcome =
6
+ /** Another provider is priced, so the deposit can be paid again. */
7
+ 'rerouted'
8
+ /** Routing landed on the same provider; a retry reaches the same refusal. */
9
+ | 'exhausted';
10
+ /** `undefined` until a fresh quote names the provider that replaces the refusal. */
11
+ export declare function failoverOutcome(declined: FiatProvider | undefined, quoted: FiatProvider | undefined): FailoverOutcome | undefined;
12
+ //# sourceMappingURL=providerFailover.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"providerFailover.d.ts","sourceRoot":"","sources":["../../../src/fiat/providerFailover.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AASxD,iFAAiF;AACjF,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,YAAY,GAAG,SAAS,EAClC,IAAI,EAAE,MAAM,GACX,OAAO,CAET;AAED,kEAAkE;AAClE,MAAM,MAAM,eAAe;AACzB,oEAAoE;AAClE,UAAU;AACZ,6EAA6E;GAC3E,WAAW,CAAA;AAEf,oFAAoF;AACpF,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,YAAY,GAAG,SAAS,EAClC,MAAM,EAAE,YAAY,GAAG,SAAS,GAC/B,eAAe,GAAG,SAAS,CAK7B"}
@@ -4,8 +4,10 @@ export interface CoinbaseCheckoutSurfaceProps {
4
4
  environment: string;
5
5
  /** The button is drawn and can be pressed. */
6
6
  onReady: () => void;
7
- /** The user paid; what happens to the money is the order's to report. */
7
+ /** The user paid; the transfer is theirs to run from here. */
8
8
  onPaid: () => void;
9
+ /** Their polling saw the crypto sent. */
10
+ onSucceeded: () => void;
9
11
  onFailed: (code: string, detail?: string) => void;
10
12
  }
11
13
  /**
@@ -22,5 +24,5 @@ export interface CoinbaseCheckoutSurfaceProps {
22
24
  * - the page paints no background of its own once told to, so the frame
23
25
  * around it decides the button's shape
24
26
  */
25
- export declare function CoinbaseCheckoutSurface({ checkoutUrl, environment, onReady, onPaid, onFailed, }: CoinbaseCheckoutSurfaceProps): import("react").JSX.Element;
27
+ export declare function CoinbaseCheckoutSurface({ checkoutUrl, environment, onReady, onPaid, onSucceeded, onFailed, }: CoinbaseCheckoutSurfaceProps): import("react").JSX.Element;
26
28
  //# sourceMappingURL=CoinbaseCheckoutSurface.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CoinbaseCheckoutSurface.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/CoinbaseCheckoutSurface.tsx"],"names":[],"mappings":"AAaA,MAAM,WAAW,4BAA4B;IAC3C,WAAW,EAAE,MAAM,CAAA;IACnB,wEAAwE;IACxE,WAAW,EAAE,MAAM,CAAA;IACnB,8CAA8C;IAC9C,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,yEAAyE;IACzE,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;CAClD;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,WAAW,EACX,WAAW,EACX,OAAO,EACP,MAAM,EACN,QAAQ,GACT,EAAE,4BAA4B,+BAuG9B"}
1
+ {"version":3,"file":"CoinbaseCheckoutSurface.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/CoinbaseCheckoutSurface.tsx"],"names":[],"mappings":"AAaA,MAAM,WAAW,4BAA4B;IAC3C,WAAW,EAAE,MAAM,CAAA;IACnB,wEAAwE;IACxE,WAAW,EAAE,MAAM,CAAA;IACnB,8CAA8C;IAC9C,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,8DAA8D;IAC9D,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,yCAAyC;IACzC,WAAW,EAAE,MAAM,IAAI,CAAA;IACvB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;CAClD;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,WAAW,EACX,WAAW,EACX,OAAO,EACP,MAAM,EACN,WAAW,EACX,QAAQ,GACT,EAAE,4BAA4B,+BA8G9B"}
@@ -0,0 +1,29 @@
1
+ import type { SubmitTransition } from '@funkit/connect-core';
2
+ import type { ReactElement } from 'react';
3
+ import type { StripeOnrampClient } from './stripeOnramp';
4
+ /** Keeps a non-Error rejection readable without assuming its shape. */
5
+ import { describeThrown } from './describeThrown';
6
+ export { describeThrown };
7
+ export declare function StripeSessionAuthController({ stripe, verifiedEmail, transition, pendingFallback, autoStart, onResume, onSubmit, onClose, }: {
8
+ stripe: StripeOnrampClient;
9
+ verifiedEmail: string;
10
+ transition: SubmitTransition;
11
+ /**
12
+ * Drawn while the mount-time `/fiat/session` post is in flight. This round
13
+ * asks the buyer for nothing, so a screen of its own would be a loading
14
+ * surface they did not ask for: the caller passes the screen they were
15
+ * already on and keeps its action pending instead.
16
+ */
17
+ pendingFallback: ReactElement;
18
+ /**
19
+ * Whether arriving here is the buyer's own doing. False once they have dismissed Stripe's sheet:
20
+ * this component unmounts while that sheet owns the screen, so `preflightStarted` cannot outlive
21
+ * the round trip, and starting again on the remount reopens the sheet they just closed.
22
+ */
23
+ autoStart: boolean;
24
+ /** The buyer asking for the round again, after declining it. */
25
+ onResume?: () => void;
26
+ onSubmit: (transition: SubmitTransition) => Promise<void>;
27
+ onClose: () => void;
28
+ }): import("react").JSX.Element;
29
+ //# sourceMappingURL=StripeSessionAuthController.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StripeSessionAuthController.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/StripeSessionAuthController.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAC5D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAKzC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAGxD,uEAAuE;AACvE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAGjD,OAAO,EAAE,cAAc,EAAE,CAAA;AAEzB,wBAAgB,2BAA2B,CAAC,EAC1C,MAAM,EACN,aAAa,EACb,UAAU,EACV,eAAe,EACf,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,OAAO,GACR,EAAE;IACD,MAAM,EAAE,kBAAkB,CAAA;IAC1B,aAAa,EAAE,MAAM,CAAA;IACrB,UAAU,EAAE,gBAAgB,CAAA;IAC5B;;;;;OAKG;IACH,eAAe,EAAE,YAAY,CAAA;IAC7B;;;;OAIG;IACH,SAAS,EAAE,OAAO,CAAA;IAClB,gEAAgE;IAChE,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB,QAAQ,EAAE,CAAC,UAAU,EAAE,gBAAgB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IACzD,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB,+BA+IA"}
@@ -0,0 +1,10 @@
1
+ export interface StripeSessionAuthScreenProps {
2
+ verifiedEmail: string;
3
+ isSubmitting: boolean;
4
+ errorMessage?: string;
5
+ onContinue: () => void;
6
+ onClose: () => void;
7
+ }
8
+ /** Fun-owned Link preflight UI, kept inside Stripe's `SESSION_AUTH` executor. */
9
+ export declare function StripeSessionAuthScreen({ verifiedEmail, isSubmitting, errorMessage, onContinue, onClose, }: StripeSessionAuthScreenProps): import("react").JSX.Element;
10
+ //# sourceMappingURL=StripeSessionAuthScreen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StripeSessionAuthScreen.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/StripeSessionAuthScreen.tsx"],"names":[],"mappings":"AAWA,MAAM,WAAW,4BAA4B;IAC3C,aAAa,EAAE,MAAM,CAAA;IACrB,YAAY,EAAE,OAAO,CAAA;IACrB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,UAAU,EAAE,MAAM,IAAI,CAAA;IACtB,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AAED,iFAAiF;AACjF,wBAAgB,uBAAuB,CAAC,EACtC,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,OAAO,GACR,EAAE,4BAA4B,+BA6D9B"}
@@ -24,6 +24,12 @@ export interface SurfaceContext {
24
24
  onFailed: (code: string, detail?: string) => void;
25
25
  /** Leaves the flow — a handoff draws its own chrome, close included. */
26
26
  onClose: () => void;
27
+ /**
28
+ * The provider's own page says the crypto is sent. Optional both ways: only
29
+ * a rail that watches its transfer can say it, and only a screen that can
30
+ * act on the news asks for it.
31
+ */
32
+ onSettled?: () => void;
27
33
  report: (result: SurfaceResult) => void;
28
34
  }
29
35
  export interface ClaimedSurface {
@@ -1 +1 @@
1
- {"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAClE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC;;;;;;;GAOG;AACH,MAAM,MAAM,mBAAmB,GAAG,UAAU,GAAG,SAAS,CAAA;AAExD,8DAA8D;AAC9D,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,QAAQ,GAAG,QAAQ,CAAA;IAC9B,wEAAwE;IACxE,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB;;;;;;OAMG;IACH,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IACjD,wEAAwE;IACxE,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,MAAM,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,IAAI,CAAA;CACxC;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,mBAAmB,CAAA;IAC5B,MAAM,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,SAAS,CAAA;CAC/C;AAED;;;;;;;;GAQG;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,EAAE,OAAO,KAAK,cAAc,GAAG,SAAS,CAAA"}
1
+ {"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAClE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC;;;;;;;GAOG;AACH,MAAM,MAAM,mBAAmB,GAAG,UAAU,GAAG,SAAS,CAAA;AAExD,8DAA8D;AAC9D,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,QAAQ,GAAG,QAAQ,CAAA;IAC9B,wEAAwE;IACxE,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB;;;;;;OAMG;IACH,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IACjD,wEAAwE;IACxE,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,MAAM,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,IAAI,CAAA;CACxC;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,mBAAmB,CAAA;IAC5B,MAAM,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,SAAS,CAAA;CAC/C;AAED;;;;;;;;GAQG;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,EAAE,OAAO,KAAK,cAAc,GAAG,SAAS,CAAA"}
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * What Coinbase's payment page says about itself, as the client acts on it.
3
3
  *
4
- * The page posts one-directional events; nothing answers them. Everything
5
- * past `PAID` — their own status polling — belongs to the order, which this
6
- * flow already polls, so those arrive as progress and nothing more.
4
+ * The page posts one-directional events; nothing answers them. Their polling
5
+ * reaches the transfer before ours does, so its verdict is read here rather
6
+ * than waited on; everything else past `PAID` arrives as progress.
7
7
  */
8
8
  export type CoinbaseOnrampEvent =
9
9
  /** The pay button is drawn and can be pressed. */
@@ -14,6 +14,10 @@ export type CoinbaseOnrampEvent =
14
14
  | {
15
15
  kind: 'PAID';
16
16
  }
17
+ /** Their polling saw the crypto sent. Terminal, and good. */
18
+ | {
19
+ kind: 'SUCCEEDED';
20
+ }
17
21
  /** The user dismissed the payment sheet; the button is still there. */
18
22
  | {
19
23
  kind: 'CANCELLED';
@@ -1 +1 @@
1
- {"version":3,"file":"coinbaseOnrampEvents.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/coinbaseOnrampEvents.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,MAAM,mBAAmB;AAC7B,kDAAkD;AAChD;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE;AACnB,iDAAiD;GAC/C;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE;AAClB,uEAAuE;GACrE;IAAE,IAAI,EAAE,WAAW,CAAA;CAAE;AACvB,qEAAqE;GACnE;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE;AACpD,8CAA8C;GAC5C;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAA;AAYtC;;;GAGG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,mBAAmB,GAAG,SAAS,CAsB5E"}
1
+ {"version":3,"file":"coinbaseOnrampEvents.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/coinbaseOnrampEvents.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,MAAM,mBAAmB;AAC7B,kDAAkD;AAChD;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE;AACnB,iDAAiD;GAC/C;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE;AAClB,6DAA6D;GAC3D;IAAE,IAAI,EAAE,WAAW,CAAA;CAAE;AACvB,uEAAuE;GACrE;IAAE,IAAI,EAAE,WAAW,CAAA;CAAE;AACvB,qEAAqE;GACnE;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE;AACpD,8CAA8C;GAC5C;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAA;AAoBtC;;;GAGG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,mBAAmB,GAAG,SAAS,CAyB5E"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * What was thrown, as a line fit for a log field.
3
+ *
4
+ * Its own module rather than a helper on the controller: `stripeAuthorize`
5
+ * needs it too, and importing it from `StripeSessionAuthController` pulled that
6
+ * component's whole React Native import graph into anything that touched it —
7
+ * which stopped `stripeAuthorize.test.tsx` parsing at all.
8
+ *
9
+ * `String(error)` alone gives "[object Object]" for the plain `{ code, message }`
10
+ * Stripe's SDK rejects with, so the one field we logged was the one that never
11
+ * said why.
12
+ */
13
+ export declare function describeThrown(error: unknown): string;
14
+ //# sourceMappingURL=describeThrown.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"describeThrown.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/describeThrown.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAOrD"}
@@ -1 +1 @@
1
- {"version":3,"file":"moonpay.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/moonpay.tsx"],"names":[],"mappings":"AAgCA,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,WAAW,CAAA;AAwE/D,eAAO,MAAM,OAAO,EAAE,cAiCrB,CAAA"}
1
+ {"version":3,"file":"moonpay.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/moonpay.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,WAAW,CAAA;AAmF/D,eAAO,MAAM,OAAO,EAAE,cAmCrB,CAAA"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * The shape the tap needs from MoonPay's `WebViewTransport`. Declared
3
+ * structurally so the wrap can be exercised against a fake, without loading
4
+ * the SDK's react-native-webview dependency under vitest.
5
+ */
6
+ export interface TraceableTransport {
7
+ url?: string;
8
+ handleWebViewMessage(data: string): void;
9
+ sendMessage(message: unknown): void;
10
+ }
11
+ /**
12
+ * Wrap a transport prototype's two message paths. Exported for the test; the
13
+ * SDK's own prototype is wrapped by {@link installMoonPayTrace}.
14
+ */
15
+ export declare function traceTransportPrototype(proto: TraceableTransport): void;
16
+ /**
17
+ * Installed at import time, which is before the debug tag resolves — so the
18
+ * wrappers check {@link tracingEnabled} per message instead of gating install.
19
+ * Guarded because this runs at module scope on the deposit path: a MoonPay
20
+ * release that drops the export must not take the flow down with it.
21
+ */
22
+ export declare function installMoonPayTrace(): void;
23
+ /** The script emits into a void unless the wrap above is listening. */
24
+ export declare function moonPayTraceInjection(): string | undefined;
25
+ //# sourceMappingURL=moonpayTrace.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"moonpayTrace.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/moonpayTrace.ts"],"names":[],"mappings":"AAMA;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IACjC,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACxC,WAAW,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAAA;CACpC;AAwCD;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,kBAAkB,GAAG,IAAI,CAsCvE;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,IAAI,IAAI,CAW1C;AAkGD,uEAAuE;AACvE,wBAAgB,qBAAqB,IAAI,MAAM,GAAG,SAAS,CAE1D"}
@@ -0,0 +1,12 @@
1
+ import type { FormValues } from '@funkit/connect-core';
2
+ import type { StripeLinkRegistration } from './stripeOnramp';
3
+ /**
4
+ * The account-creation round's answers as `registerLinkUser`'s argument, or
5
+ * `undefined` when a required piece is missing.
6
+ *
7
+ * The email is not a form field: Link must be registered under the identity
8
+ * the backend already verified, so the caller hands it over from the round's
9
+ * transition rather than letting the buyer type it.
10
+ */
11
+ export declare function stripeLinkRegistrationFrom(values: FormValues, verifiedEmail: string | undefined): StripeLinkRegistration | undefined;
12
+ //# sourceMappingURL=stripeAccountCreation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stripeAccountCreation.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/stripeAccountCreation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAa,MAAM,sBAAsB,CAAA;AAGjE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAA;AAE5D;;;;;;;GAOG;AACH,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,UAAU,EAClB,aAAa,EAAE,MAAM,GAAG,SAAS,GAChC,sBAAsB,GAAG,SAAS,CAkBpC"}
@@ -0,0 +1,5 @@
1
+ import type { SurfaceAdapter } from './adapter';
2
+ import type { StripeOnrampClient } from './stripeOnramp';
3
+ /** Stripe owns OTP/consent; this adapter owns only launch and report. */
4
+ export declare function stripeAuthorizeAdapter(stripe: StripeOnrampClient, attempt: object): SurfaceAdapter;
5
+ //# sourceMappingURL=stripeAuthorize.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stripeAuthorize.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/stripeAuthorize.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,WAAW,CAAA;AAE/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAOxD,yEAAyE;AACzE,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,kBAAkB,EAC1B,OAAO,EAAE,MAAM,GACd,cAAc,CAkBhB"}
@@ -0,0 +1,28 @@
1
+ import type { Surface } from '@funkit/connect-core';
2
+ import type { SurfaceAdapter } from './adapter';
3
+ import type { StripeOnrampClient } from './stripeOnramp';
4
+ interface StripeCheckoutParams {
5
+ action: 'PERFORM_CHECKOUT';
6
+ sessionId: string;
7
+ callbackEndpoint: string;
8
+ callbackIdField: string;
9
+ }
10
+ /** Fetches one `client_secret` for a single Stripe checkout attempt. */
11
+ export type CheckoutClientSecretRequest = (params: {
12
+ callbackEndpoint: string;
13
+ callbackIdField: string;
14
+ }) => Promise<string>;
15
+ export declare function matchStripeCheckoutParams(surface: Surface): StripeCheckoutParams | undefined;
16
+ /**
17
+ * Stripe's checkout loop, which is the only thing that finalises a purchase.
18
+ *
19
+ * The charge is not settled by our backend's checkout endpoint returning a
20
+ * client secret — Stripe treats the transaction as final only once
21
+ * `performCheckout` resolves, because it owns the next actions (3DS) between
22
+ * attempts. So the callback endpoint is never called outside this callback,
23
+ * and the surface stays mounted for the whole loop rather than reporting on
24
+ * the first secret it receives.
25
+ */
26
+ export declare function stripeCheckoutAdapter(stripe: StripeOnrampClient, requestClientSecret: CheckoutClientSecretRequest): SurfaceAdapter;
27
+ export {};
28
+ //# sourceMappingURL=stripeCheckout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stripeCheckout.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/stripeCheckout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAMnD,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,WAAW,CAAA;AAK/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAExD,UAAU,oBAAoB;IAC5B,MAAM,EAAE,kBAAkB,CAAA;IAC1B,SAAS,EAAE,MAAM,CAAA;IACjB,gBAAgB,EAAE,MAAM,CAAA;IACxB,eAAe,EAAE,MAAM,CAAA;CACxB;AAED,wEAAwE;AACxE,MAAM,MAAM,2BAA2B,GAAG,CAAC,MAAM,EAAE;IACjD,gBAAgB,EAAE,MAAM,CAAA;IACxB,eAAe,EAAE,MAAM,CAAA;CACxB,KAAK,OAAO,CAAC,MAAM,CAAC,CAAA;AAErB,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,OAAO,GACf,oBAAoB,GAAG,SAAS,CA0BlC;AAED;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,kBAAkB,EAC1B,mBAAmB,EAAE,2BAA2B,GAC/C,cAAc,CAkBhB"}
@@ -0,0 +1,56 @@
1
+ import type { Surface } from '@funkit/connect-core';
2
+ import type { SurfaceAdapter } from './adapter';
3
+ import type { StripeOnrampClient } from './stripeOnramp';
4
+ /**
5
+ * The calls the backend permits on this surface, as it names them. Kept as the
6
+ * provider's own strings rather than re-encoded into a client vocabulary: the
7
+ * surface is Stripe's, and a second set of names for the same three SDK methods
8
+ * is a mapping to keep in sync for no gain.
9
+ */
10
+ declare const STRIPE_KYC_CALLS: readonly ["attachKycInfo", "presentKycInfoVerification", "verifyIdentity"];
11
+ type StripeKycCall = (typeof STRIPE_KYC_CALLS)[number];
12
+ export interface StripeKycReconciliation {
13
+ allowedCalls: readonly StripeKycCall[];
14
+ }
15
+ /**
16
+ * Stripe's KYC reconciliation surface. `kyc.assess` emits it whenever the Link
17
+ * user has no `kyc_verified` verification, and names the SDK calls the client
18
+ * may make to obtain one.
19
+ */
20
+ export declare function matchStripeKycParams(surface: Surface): StripeKycReconciliation | undefined;
21
+ /**
22
+ * `response` is required rather than optional: the pay sheet's adapter takes it
23
+ * optionally and this one was written without it at all, so every call on this
24
+ * surface ran against a Link session nothing had woken. A caller with nothing to
25
+ * pass says so with `undefined`; one that forgets no longer compiles.
26
+ */
27
+ export declare function stripeKycAdapter(stripe: StripeOnrampClient, response: object | undefined): SurfaceAdapter;
28
+ /**
29
+ * `stage:code`, the shape `collectApplePay` already uses. Stripe answers most of these with a bare
30
+ * `Failed`, which says nothing about which of the three calls refused; the stage is the only part
31
+ * that identifies it. Everything Stripe gives beyond the code is logged rather than folded in here,
32
+ * because this string travels to the backend as `errorType`.
33
+ */
34
+ /**
35
+ * The buyer closed Stripe's KYC sheet.
36
+ *
37
+ * Not a failure: nothing is wrong, nothing needs reporting to support, and the
38
+ * only right answer is the quote screen they came from. Carried as a code for
39
+ * the same reason `STRIPE_PAYMENT_CANCELLED` is — `onFailed` already routes
40
+ * back to entry, and the screen suppresses its alert and its terminal for this
41
+ * one code.
42
+ */
43
+ export declare const STRIPE_KYC_CANCELLED = "stripe_kyc:cancelled";
44
+ /**
45
+ * Stripe handed control back for an address it wants corrected.
46
+ *
47
+ * Its own code, but the same support terminal as any other refusal, because
48
+ * today there is nowhere better to send the buyer: `POST /fiat/kyc/capture`
49
+ * ignores the report, and `assess` answers any unverified customer with this
50
+ * same surface, so every client-side route back — remounting, re-quoting —
51
+ * returns here and asks Stripe the identical question. The code exists to make
52
+ * that population countable before the round trip that can actually fix it.
53
+ */
54
+ export declare const STRIPE_KYC_ADDRESS_UPDATE = "stripe_kyc:update_address";
55
+ export {};
56
+ //# sourceMappingURL=stripeKyc.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stripeKyc.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/stripeKyc.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAMnD,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,WAAW,CAAA;AAK/D,OAAO,KAAK,EAAE,kBAAkB,EAAqB,MAAM,gBAAgB,CAAA;AAE3E;;;;;GAKG;AACH,QAAA,MAAM,gBAAgB,4EAIZ,CAAA;AACV,KAAK,aAAa,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAA;AAEtD,MAAM,WAAW,uBAAuB;IACtC,YAAY,EAAE,SAAS,aAAa,EAAE,CAAA;CACvC;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,OAAO,GACf,uBAAuB,GAAG,SAAS,CAoBrC;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,kBAAkB,EAC1B,QAAQ,EAAE,MAAM,GAAG,SAAS,GAC3B,cAAc,CAoBhB;AAUD;;;;;GAKG;AACH;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB,yBAAyB,CAAA;AAE1D;;;;;;;;;GASG;AACH,eAAO,MAAM,yBAAyB,8BAA8B,CAAA"}
@@ -0,0 +1,11 @@
1
+ import type { FormValues } from '@funkit/connect-core';
2
+ import type { StripeKycInfo } from './stripeOnramp';
3
+ /**
4
+ * A field round's answers as `attachKycInfo`'s argument, or `undefined` when the
5
+ * round carried none of them.
6
+ *
7
+ * Stripe's guidance is to collect these in our own UI and pass them in, so this
8
+ * is the whole of what its field sheet would otherwise have asked for.
9
+ */
10
+ export declare function stripeKycInfoFrom(values: FormValues): StripeKycInfo | undefined;
11
+ //# sourceMappingURL=stripeKycInfo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stripeKycInfo.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/stripeKycInfo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAa,MAAM,sBAAsB,CAAA;AAGjE,OAAO,KAAK,EAAoB,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAErE;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,UAAU,GACjB,aAAa,GAAG,SAAS,CAiB3B"}
@@ -0,0 +1,135 @@
1
+ /**
2
+ * The narrow slice of Stripe Embedded Components the fiat flow calls. Internal:
3
+ * this package owns the native module and binds it in
4
+ * `useStripeOnrampClient`, so nothing here is a host's to implement. It exists
5
+ * as an interface, not inline calls, so the surfaces stay testable against a
6
+ * stub — the same shape `test/stripe-sdk.stub.tsx` fills in.
7
+ */
8
+ export interface StripeOnrampClient {
9
+ hasLinkAccount: (email: string) => Promise<StripeHasLinkAccountResult>;
10
+ registerLinkUser: (user: StripeLinkRegistration) => Promise<StripeRegisterLinkUserResult>;
11
+ authorize: (linkAuthIntentId: string) => Promise<StripeAuthorizeResult>;
12
+ authenticateUserWithToken: (linkAuthTokenClientSecret: string) => Promise<StripeVoidResult>;
13
+ attachKycInfo: (info: StripeKycInfo) => Promise<StripeVoidResult>;
14
+ /**
15
+ * Stripe's own sheet over the KYC info already attached to the Link user.
16
+ * `null` shows what Stripe holds; an address is passed only to re-present
17
+ * after a prior call answered `UpdateAddress`. Named by the backend's
18
+ * `allowedCalls`, so this is the one call the surface needs that the
19
+ * capability did not already carry.
20
+ */
21
+ presentKycInfoVerification: (updatedAddress: StripeKycAddress | null) => Promise<StripeVerifyKycResult>;
22
+ verifyIdentity: () => Promise<StripeVoidResult>;
23
+ /**
24
+ * Clears the SDK's cached authentication state.
25
+ *
26
+ * The SDK caches "this user is signed in" separately from the Link consumer session Stripe holds,
27
+ * and the two diverge: the SDK skips the OTP while `registerWalletAddress` answers "No active Link
28
+ * consumer is available." Stripe exposes no way to test for an active consumer session, so this is
29
+ * the only lever — the failure is the signal, and logging out is what makes `authorize` prompt
30
+ * again instead of silently reusing the dead state.
31
+ */
32
+ logOut: () => Promise<StripeVoidResult>;
33
+ isPlatformPaySupported: () => Promise<boolean>;
34
+ registerWalletAddress: (walletAddress: string, network: string) => Promise<StripeVoidResult>;
35
+ collectPaymentMethod: (paymentMethod: 'PlatformPay', params: StripePlatformPayParams) => Promise<StripeCollectPaymentMethodResult>;
36
+ createCryptoPaymentToken: () => Promise<StripeCreateCryptoPaymentTokenResult>;
37
+ performCheckout: (onrampSessionId: string, provideClientSecret: () => Promise<string | null>) => Promise<StripeVoidResult>;
38
+ }
39
+ export interface StripeKycAddress {
40
+ line1?: string;
41
+ line2?: string;
42
+ city?: string;
43
+ state?: string;
44
+ postalCode?: string;
45
+ country?: string;
46
+ }
47
+ export interface StripeKycInfo {
48
+ firstName?: string;
49
+ lastName?: string;
50
+ dateOfBirth?: {
51
+ day: number;
52
+ month: number;
53
+ year: number;
54
+ };
55
+ idNumber?: string;
56
+ address?: StripeKycAddress;
57
+ }
58
+ /** Stripe's three answers, kept verbatim: confirmed, wants a new address, or failed. */
59
+ export type StripeVerifyKycResult = {
60
+ status: 'Confirmed';
61
+ error?: undefined;
62
+ } | {
63
+ status: 'UpdateAddress';
64
+ error?: undefined;
65
+ } | {
66
+ status?: undefined;
67
+ error: StripeOnrampError;
68
+ };
69
+ export interface StripePlatformPayParams {
70
+ applePay: {
71
+ merchantCountryCode: string;
72
+ currencyCode: string;
73
+ cartItems: Array<{
74
+ paymentType: 'Immediate';
75
+ label: string;
76
+ amount: string;
77
+ }>;
78
+ requiredBillingContactFields?: string[];
79
+ };
80
+ }
81
+ export type StripeVoidResult = {
82
+ error?: StripeOnrampError;
83
+ };
84
+ export type StripeCollectPaymentMethodResult = {
85
+ displayData?: unknown;
86
+ error?: StripeOnrampError;
87
+ };
88
+ export type StripeCreateCryptoPaymentTokenResult = {
89
+ cryptoPaymentToken?: string;
90
+ error?: StripeOnrampError;
91
+ };
92
+ export interface StripeLinkRegistration {
93
+ email: string;
94
+ phone: string;
95
+ country: string;
96
+ fullName?: string;
97
+ }
98
+ export interface StripeOnrampError {
99
+ code: string;
100
+ message?: string;
101
+ onrampErrorType?: string;
102
+ stripeErrorCode?: string;
103
+ apiErrorCode?: string;
104
+ apiErrorType?: string;
105
+ developerMessage?: string;
106
+ requestId?: string;
107
+ }
108
+ export type StripeHasLinkAccountResult = {
109
+ hasLinkAccount: boolean;
110
+ error?: undefined;
111
+ } | {
112
+ hasLinkAccount?: undefined;
113
+ error: StripeOnrampError;
114
+ };
115
+ export type StripeRegisterLinkUserResult = {
116
+ customerId: string;
117
+ error?: undefined;
118
+ } | {
119
+ customerId?: undefined;
120
+ error: StripeOnrampError;
121
+ };
122
+ export type StripeAuthorizeResult = {
123
+ status: 'Consented';
124
+ customerId: string;
125
+ error?: undefined;
126
+ } | {
127
+ status: 'Denied';
128
+ customerId?: undefined;
129
+ error?: undefined;
130
+ } | {
131
+ status?: undefined;
132
+ customerId?: undefined;
133
+ error: StripeOnrampError;
134
+ };
135
+ //# sourceMappingURL=stripeOnramp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stripeOnramp.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/stripeOnramp.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,20 @@
1
+ import { type ReactElement } from 'react';
2
+ import type { StripeOnrampClient } from './stripeOnramp';
3
+ import { type StripeOnrampConfig } from './useStripeOnrampClient';
4
+ type StripeOnrampBridgeProps = {
5
+ config: StripeOnrampConfig;
6
+ onClient: (client: StripeOnrampClient | undefined) => void;
7
+ };
8
+ /**
9
+ * Publishes the Stripe client to `FunkitFlowProvider` without making the SDK a
10
+ * load-time dependency of this package.
11
+ *
12
+ * - Rendered only once a host passed Stripe config, so the optional peer is
13
+ * fetched only where the binary is expected to carry it.
14
+ * - A failed load is a host misconfiguration, not a user action: it logs at
15
+ * ERROR with the install steps and leaves the client `undefined`, so every
16
+ * other rail keeps working instead of the whole app dying at startup.
17
+ */
18
+ export declare function StripeOnrampBridge(props: StripeOnrampBridgeProps): ReactElement | null;
19
+ export {};
20
+ //# sourceMappingURL=stripeOnrampBridge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stripeOnrampBridge.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/stripeOnrampBridge.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAuB,MAAM,OAAO,CAAA;AAG9D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAExD,OAAO,EACL,KAAK,kBAAkB,EAExB,MAAM,yBAAyB,CAAA;AAEhC,KAAK,uBAAuB,GAAG;IAC7B,MAAM,EAAE,kBAAkB,CAAA;IAC1B,QAAQ,EAAE,CAAC,MAAM,EAAE,kBAAkB,GAAG,SAAS,KAAK,IAAI,CAAA;CAC3D,CAAA;AAED;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,uBAAuB,GAC7B,YAAY,GAAG,IAAI,CA+BrB"}
@@ -0,0 +1,34 @@
1
+ import type { Surface } from '@funkit/connect-core';
2
+ import type { SurfaceAdapter } from './adapter';
3
+ import type { StripeOnrampClient } from './stripeOnramp';
4
+ interface StripePayParams {
5
+ action: 'CREATE_CRYPTO_PAYMENT_TOKEN';
6
+ walletAddress: string;
7
+ destinationNetwork: string;
8
+ merchantCountryCode: string;
9
+ currencyCode: string;
10
+ amount: string;
11
+ label?: string;
12
+ }
13
+ export declare function matchStripePayParams(surface: Surface): StripePayParams | undefined;
14
+ /**
15
+ * The buyer dismissed the provider's sheet.
16
+ *
17
+ * Not a failure: nothing is wrong, nothing needs reporting to support, and the
18
+ * only right answer is the quote screen they came from. Carried as a code
19
+ * rather than a separate channel because `onFailed` is the seam the surface
20
+ * already owns, and its routing — back to entry, with "Try again" — is exactly
21
+ * what a cancellation wants. The screen suppresses the alert for this one code.
22
+ */
23
+ export declare const STRIPE_PAYMENT_CANCELLED = "collect_apple_pay:cancelled";
24
+ /** Stripe's real native sheet, deliberately restricted to Apple Pay. */
25
+ export declare function stripePaymentAdapter(stripe: StripeOnrampClient, response?: object): SurfaceAdapter;
26
+ export declare function stripePaymentReport(token: string): {
27
+ cryptoPaymentToken: string;
28
+ };
29
+ export declare function stripePaymentErrorCode(error: unknown): string;
30
+ /** Whatever the SDK attached to a rejection, so a bucket code is not the whole story. */
31
+ export declare function stripePaymentErrorDetail(error: unknown): Record<string, unknown>;
32
+ export declare function collectApplePay(stripe: StripeOnrampClient, params: StripePayParams, seamlessClientSecret?: string): Promise<string>;
33
+ export {};
34
+ //# sourceMappingURL=stripePayment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stripePayment.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/stripePayment.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAOnD,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,WAAW,CAAA;AAC/D,OAAO,KAAK,EACV,kBAAkB,EAEnB,MAAM,gBAAgB,CAAA;AAMvB,UAAU,eAAe;IACvB,MAAM,EAAE,6BAA6B,CAAA;IACrC,aAAa,EAAE,MAAM,CAAA;IACrB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,mBAAmB,EAAE,MAAM,CAAA;IAC3B,YAAY,EAAE,MAAM,CAAA;IACpB,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,OAAO,GACf,eAAe,GAAG,SAAS,CAiC7B;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,wBAAwB,gCAAgC,CAAA;AAErE,wEAAwE;AACxE,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,kBAAkB,EAC1B,QAAQ,CAAC,EAAE,MAAM,GAChB,cAAc,CAqBhB;AAsED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM;;EAEhD;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAiC7D;AAeD,yFAAyF;AACzF,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,OAAO,GACb,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAgCzB;AAED,wBAAsB,eAAe,CACnC,MAAM,EAAE,kBAAkB,EAC1B,MAAM,EAAE,eAAe,EACvB,oBAAoB,CAAC,EAAE,MAAM,GAC5B,OAAO,CAAC,MAAM,CAAC,CA2GjB"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * The slice of `@stripe/stripe-react-native` the onramp client uses. A type-only
3
+ * reference, so it costs nothing at runtime and typechecks against the dev copy.
4
+ */
5
+ export type StripeSdk = Pick<typeof import('@stripe/stripe-react-native'), 'initStripe' | 'isPlatformPaySupported' | 'useOnramp'>;
6
+ /**
7
+ * Loads Stripe's SDK on demand. It is an optional peer: a host that never
8
+ * configures Stripe never installs it, so nothing may name the package outside
9
+ * the guarded `import()` below.
10
+ *
11
+ * - Metro treats an `import()` inside a syntactic `try` as optional, so a bundle
12
+ * still builds when the package is absent. This function is deliberately not
13
+ * `async`: a regenerator pass would flatten the `try` and lose that marker.
14
+ * - The SDK calls `TurboModuleRegistry.getEnforcing('StripeSdk')` as its module
15
+ * body runs, which throws on a binary without the pod. Deferring the import
16
+ * to here keeps that throw out of every host's startup path.
17
+ */
18
+ export declare function loadStripeSdk(): Promise<StripeSdk>;
19
+ //# sourceMappingURL=stripeSdk.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stripeSdk.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/stripeSdk.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG,IAAI,CAC1B,cAAc,6BAA6B,CAAC,EAC5C,YAAY,GAAG,wBAAwB,GAAG,WAAW,CACtD,CAAA;AA+BD;;;;;;;;;;;GAWG;AACH,wBAAgB,aAAa,IAAI,OAAO,CAAC,SAAS,CAAC,CAQlD"}
@@ -0,0 +1,18 @@
1
+ import type { StripeOnrampClient } from './stripeOnramp';
2
+ /**
3
+ * Reads the contract's silent sign-in credential off a step response.
4
+ *
5
+ * It rides `FiatStepResponseBase`, not a surface: the backend mints it beside the pay sheet so the
6
+ * client can wake its Link session without a round trip of its own. Absent means no silent path.
7
+ */
8
+ export declare function stripeSeamlessClientSecret(response: object | undefined, now?: number): string | undefined;
9
+ /**
10
+ * Redeems the credential against the device's SDK. Never throws.
11
+ *
12
+ * The SDK holds a Link consumer session separate from the grant our backend stores, and the two
13
+ * diverge — see `logOut` on `StripeOnrampClient`. Redeeming here wakes that session before
14
+ * `registerWalletAddress` asks for it, which is the failure this exists to prevent. It stays an
15
+ * optimisation: a refusal means the buyer signs in interactively, not that payment stops.
16
+ */
17
+ export declare function redeemStripeSeamlessSignIn(stripe: StripeOnrampClient, clientSecret: string): Promise<boolean>;
18
+ //# sourceMappingURL=stripeSeamlessSignIn.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stripeSeamlessSignIn.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/stripeSeamlessSignIn.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAExD;;;;;GAKG;AACH,wBAAgB,0BAA0B,CACxC,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,GAAG,GAAE,MAAmB,GACvB,MAAM,GAAG,SAAS,CA0BpB;AAED;;;;;;;GAOG;AACH,wBAAsB,0BAA0B,CAC9C,MAAM,EAAE,kBAAkB,EAC1B,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,OAAO,CAAC,CAelB"}