@funkit/connect-rn 11.3.1 → 12.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (234) hide show
  1. package/CHANGELOG.md +108 -0
  2. package/README.md +19 -13
  3. package/dist/{chunk-JM7562IY.js → chunk-G6PSBLQT.js} +298 -114
  4. package/dist/chunk-G6PSBLQT.js.map +7 -0
  5. package/dist/{chunk-PSO6DYOK.js → chunk-IEQWKP4M.js} +2 -2
  6. package/dist/{chunk-7SP2UUHA.js → chunk-QNUFRAJH.js} +77 -68
  7. package/dist/chunk-QNUFRAJH.js.map +7 -0
  8. package/dist/clients/lighter.js +1 -1
  9. package/dist/clients/nado.js +2 -2
  10. package/dist/clients/solana/index.d.ts +2 -2
  11. package/dist/clients/solana/index.d.ts.map +1 -1
  12. package/dist/clients/solana/solanaWithdrawal.d.ts +0 -6
  13. package/dist/clients/solana/solanaWithdrawal.d.ts.map +1 -1
  14. package/dist/clients/solana/useSolanaWithdrawal.d.ts +11 -6
  15. package/dist/clients/solana/useSolanaWithdrawal.d.ts.map +1 -1
  16. package/dist/clients/solana.js +23 -23
  17. package/dist/clients/solana.js.map +2 -2
  18. package/dist/index.js +47042 -44583
  19. package/dist/index.js.map +4 -4
  20. package/dist/preview.js +186 -1
  21. package/dist/preview.js.map +2 -2
  22. package/dist/src/components/BlurBand.d.ts +5 -1
  23. package/dist/src/components/BlurBand.d.ts.map +1 -1
  24. package/dist/src/components/ConnectedBadge.d.ts +9 -0
  25. package/dist/src/components/ConnectedBadge.d.ts.map +1 -1
  26. package/dist/src/components/GlassToast.d.ts +23 -0
  27. package/dist/src/components/GlassToast.d.ts.map +1 -0
  28. package/dist/src/components/Grabber.d.ts +3 -1
  29. package/dist/src/components/Grabber.d.ts.map +1 -1
  30. package/dist/src/components/PasteAddressPanel.d.ts.map +1 -1
  31. package/dist/src/components/PillButton.d.ts +5 -2
  32. package/dist/src/components/PillButton.d.ts.map +1 -1
  33. package/dist/src/components/v2/IconDisc.d.ts.map +1 -1
  34. package/dist/src/components/v2/ListRow.d.ts.map +1 -1
  35. package/dist/src/components/v2/PaymentMethodPicker.d.ts.map +1 -1
  36. package/dist/src/fiat/form/FiatFormScreen.d.ts.map +1 -1
  37. package/dist/src/fiat/form/formLayout.d.ts +1 -1
  38. package/dist/src/fiat/form/formLayout.d.ts.map +1 -1
  39. package/dist/src/fiat/kyc/FiatKycIntroScreen.d.ts +5 -1
  40. package/dist/src/fiat/kyc/FiatKycIntroScreen.d.ts.map +1 -1
  41. package/dist/src/fiat/kyc/kycFieldValidators.d.ts.map +1 -1
  42. package/dist/src/fiat/kyc/kycFormState.d.ts +8 -0
  43. package/dist/src/fiat/kyc/kycFormState.d.ts.map +1 -1
  44. package/dist/src/fiat/kyc/sectionDetail.d.ts.map +1 -1
  45. package/dist/src/fiat/payment/failoverKind.d.ts +19 -1
  46. package/dist/src/fiat/payment/failoverKind.d.ts.map +1 -1
  47. package/dist/src/fiat/payment/failoverPrompt.d.ts +13 -3
  48. package/dist/src/fiat/payment/failoverPrompt.d.ts.map +1 -1
  49. package/dist/src/fiat/payment/nextSwitchProvider.d.ts +21 -0
  50. package/dist/src/fiat/payment/nextSwitchProvider.d.ts.map +1 -0
  51. package/dist/src/fiat/payment/paymentSurfaceFailure.d.ts +5 -0
  52. package/dist/src/fiat/payment/paymentSurfaceFailure.d.ts.map +1 -1
  53. package/dist/src/fiat/payment/prefetchSwitch.d.ts +30 -0
  54. package/dist/src/fiat/payment/prefetchSwitch.d.ts.map +1 -0
  55. package/dist/src/fiat/payment/useFailoverLanding.d.ts +41 -0
  56. package/dist/src/fiat/payment/useFailoverLanding.d.ts.map +1 -0
  57. package/dist/src/fiat/payment/usePaymentFailureAnswer.d.ts +38 -3
  58. package/dist/src/fiat/payment/usePaymentFailureAnswer.d.ts.map +1 -1
  59. package/dist/src/fiat/payment/useStepShown.d.ts +8 -0
  60. package/dist/src/fiat/payment/useStepShown.d.ts.map +1 -0
  61. package/dist/src/fiat/processing/CompletionCheck.d.ts +3 -1
  62. package/dist/src/fiat/processing/CompletionCheck.d.ts.map +1 -1
  63. package/dist/src/fiat/processing/FailoverPrompt.d.ts +10 -0
  64. package/dist/src/fiat/processing/FailoverPrompt.d.ts.map +1 -1
  65. package/dist/src/fiat/processing/ProcessingFailure.d.ts +5 -0
  66. package/dist/src/fiat/processing/ProcessingFailure.d.ts.map +1 -1
  67. package/dist/src/fiat/providerFlow.d.ts +45 -3
  68. package/dist/src/fiat/providerFlow.d.ts.map +1 -1
  69. package/dist/src/fiat/providerHandoff.d.ts +4 -0
  70. package/dist/src/fiat/providerHandoff.d.ts.map +1 -1
  71. package/dist/src/fiat/providers/checkout/observePrefetch.d.ts +27 -0
  72. package/dist/src/fiat/providers/checkout/observePrefetch.d.ts.map +1 -0
  73. package/dist/src/fiat/providers/checkout/slotOutlets.d.ts +2 -0
  74. package/dist/src/fiat/providers/checkout/slotOutlets.d.ts.map +1 -1
  75. package/dist/src/fiat/providers/coinbase/coinbaseCardRefusal.d.ts +6 -0
  76. package/dist/src/fiat/providers/coinbase/coinbaseCardRefusal.d.ts.map +1 -1
  77. package/dist/src/fiat/providers/coinbase/next/coinbaseCheckoutTerms.d.ts +5 -0
  78. package/dist/src/fiat/providers/coinbase/next/coinbaseCheckoutTerms.d.ts.map +1 -0
  79. package/dist/src/fiat/providers/coinbase/next/index.d.ts.map +1 -1
  80. package/dist/src/fiat/providers/coinbase/next/prefetch.d.ts +28 -0
  81. package/dist/src/fiat/providers/coinbase/next/prefetch.d.ts.map +1 -0
  82. package/dist/src/fiat/providers/coinbase/next/useCoinbaseCheckout.d.ts +1 -1
  83. package/dist/src/fiat/providers/coinbase/next/useCoinbaseCheckout.d.ts.map +1 -1
  84. package/dist/src/fiat/providers/moonpay/fullCheckout/Checkout.d.ts.map +1 -1
  85. package/dist/src/fiat/providers/moonpay/fullCheckout/checkoutScreens.d.ts.map +1 -1
  86. package/dist/src/fiat/providers/moonpay/fullCheckout/moonPayCheckoutTerms.d.ts +6 -0
  87. package/dist/src/fiat/providers/moonpay/fullCheckout/moonPayCheckoutTerms.d.ts.map +1 -0
  88. package/dist/src/fiat/providers/moonpay/fullCheckout/prefetch.d.ts +28 -0
  89. package/dist/src/fiat/providers/moonpay/fullCheckout/prefetch.d.ts.map +1 -0
  90. package/dist/src/fiat/providers/moonpay/fullCheckout/useCheckoutCalls.d.ts +3 -1
  91. package/dist/src/fiat/providers/moonpay/fullCheckout/useCheckoutCalls.d.ts.map +1 -1
  92. package/dist/src/fiat/providers/moonpay/fullCheckout/useCheckoutModel.d.ts +2 -1
  93. package/dist/src/fiat/providers/moonpay/fullCheckout/useCheckoutModel.d.ts.map +1 -1
  94. package/dist/src/fiat/providers/moonpay/guestCheckout/Checkout.d.ts.map +1 -1
  95. package/dist/src/fiat/providers/moonpay/guestCheckout/checkoutScreens.d.ts.map +1 -1
  96. package/dist/src/fiat/providers/moonpay/guestCheckout/useGuestCheckoutModel.d.ts +3 -1
  97. package/dist/src/fiat/providers/moonpay/guestCheckout/useGuestCheckoutModel.d.ts.map +1 -1
  98. package/dist/src/fiat/providers/moonpay/index.d.ts +1 -1
  99. package/dist/src/fiat/providers/moonpay/index.d.ts.map +1 -1
  100. package/dist/src/fiat/providers/moonpay/sdk/Host.d.ts +7 -1
  101. package/dist/src/fiat/providers/moonpay/sdk/Host.d.ts.map +1 -1
  102. package/dist/src/fiat/providers/stripe/next/Checkout.d.ts.map +1 -1
  103. package/dist/src/fiat/providers/stripe/next/index.d.ts.map +1 -1
  104. package/dist/src/fiat/providers/stripe/next/prefetch.d.ts +28 -0
  105. package/dist/src/fiat/providers/stripe/next/prefetch.d.ts.map +1 -0
  106. package/dist/src/fiat/providers/stripe/next/stripeCheckoutTerms.d.ts +5 -0
  107. package/dist/src/fiat/providers/stripe/next/stripeCheckoutTerms.d.ts.map +1 -0
  108. package/dist/src/fiat/providers/stripe/next/stripeIdentityChecks.d.ts +12 -0
  109. package/dist/src/fiat/providers/stripe/next/stripeIdentityChecks.d.ts.map +1 -0
  110. package/dist/src/fiat/providers/stripe/next/useStripeAttestation.d.ts +20 -0
  111. package/dist/src/fiat/providers/stripe/next/useStripeAttestation.d.ts.map +1 -0
  112. package/dist/src/fiat/providers/stripe/next/useStripeCheckout.d.ts +21 -1
  113. package/dist/src/fiat/providers/stripe/next/useStripeCheckout.d.ts.map +1 -1
  114. package/dist/src/fiat/providers/stripe/next/useStripeCheckoutCalls.d.ts +3 -1
  115. package/dist/src/fiat/providers/stripe/next/useStripeCheckoutCalls.d.ts.map +1 -1
  116. package/dist/src/fiat/providers/stripe/next/useStripeFunnel.d.ts.map +1 -1
  117. package/dist/src/fiat/providers/stripe/next/useStripeIdentifiers.d.ts +30 -0
  118. package/dist/src/fiat/providers/stripe/next/useStripeIdentifiers.d.ts.map +1 -0
  119. package/dist/src/fiat/providers/stripe/next/useStripeIdentity.d.ts +5 -2
  120. package/dist/src/fiat/providers/stripe/next/useStripeIdentity.d.ts.map +1 -1
  121. package/dist/src/fiat/providers/stripe/next/useStripeKycForm.d.ts +26 -2
  122. package/dist/src/fiat/providers/stripe/next/useStripeKycForm.d.ts.map +1 -1
  123. package/dist/src/fiat/providers/stripe/next/useStripePayment.d.ts.map +1 -1
  124. package/dist/src/fiat/providers/stripe/next/useStripeReview.d.ts +10 -2
  125. package/dist/src/fiat/providers/stripe/next/useStripeReview.d.ts.map +1 -1
  126. package/dist/src/fiat/providers/stripe/next/useStripeSignIn.d.ts +6 -0
  127. package/dist/src/fiat/providers/stripe/next/useStripeSignIn.d.ts.map +1 -1
  128. package/dist/src/fiat/providers/stripe/stripeApplePaySelection.d.ts +5 -0
  129. package/dist/src/fiat/providers/stripe/stripeApplePaySelection.d.ts.map +1 -1
  130. package/dist/src/fiat/providers/stripe/stripeCheckout.d.ts +5 -1
  131. package/dist/src/fiat/providers/stripe/stripeCheckout.d.ts.map +1 -1
  132. package/dist/src/fiat/providers/stripe/stripeEuCountries.d.ts +8 -0
  133. package/dist/src/fiat/providers/stripe/stripeEuCountries.d.ts.map +1 -0
  134. package/dist/src/fiat/providers/stripe/stripeEuErrors.d.ts +16 -0
  135. package/dist/src/fiat/providers/stripe/stripeEuErrors.d.ts.map +1 -0
  136. package/dist/src/fiat/providers/stripe/stripeIdentifierField.d.ts +23 -0
  137. package/dist/src/fiat/providers/stripe/stripeIdentifierField.d.ts.map +1 -0
  138. package/dist/src/fiat/providers/stripe/stripeKycInfo.d.ts.map +1 -1
  139. package/dist/src/fiat/providers/stripe/stripeOnramp.d.ts +54 -0
  140. package/dist/src/fiat/providers/stripe/stripeOnramp.d.ts.map +1 -1
  141. package/dist/src/fiat/providers/stripe/stripeOnrampBridge.d.ts.map +1 -1
  142. package/dist/src/fiat/providers/stripe/useStripeOnrampClient.d.ts +13 -1
  143. package/dist/src/fiat/providers/stripe/useStripeOnrampClient.d.ts.map +1 -1
  144. package/dist/src/fiat/providers/stripe/useStripePayButton.d.ts +8 -4
  145. package/dist/src/fiat/providers/stripe/useStripePayButton.d.ts.map +1 -1
  146. package/dist/src/fiat/providers/stripe/useStripeState.d.ts +2 -1
  147. package/dist/src/fiat/providers/stripe/useStripeState.d.ts.map +1 -1
  148. package/dist/src/fiat/quote/quoteRouting.d.ts +9 -1
  149. package/dist/src/fiat/quote/quoteRouting.d.ts.map +1 -1
  150. package/dist/src/fiat/useProviderCheckout.d.ts +11 -1
  151. package/dist/src/fiat/useProviderCheckout.d.ts.map +1 -1
  152. package/dist/src/flow/CryptoLearnMorePage.d.ts.map +1 -1
  153. package/dist/src/flow/CryptoTokenPage.d.ts.map +1 -1
  154. package/dist/src/flow/DepositFlowContent.d.ts.map +1 -1
  155. package/dist/src/flow/Drawer.d.ts +13 -2
  156. package/dist/src/flow/Drawer.d.ts.map +1 -1
  157. package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
  158. package/dist/src/flow/FlowSheet.d.ts +11 -1
  159. package/dist/src/flow/FlowSheet.d.ts.map +1 -1
  160. package/dist/src/flow/FunkitFlowProvider.d.ts +2 -0
  161. package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
  162. package/dist/src/flow/PaymentMethodPickerSheet.d.ts +8 -1
  163. package/dist/src/flow/PaymentMethodPickerSheet.d.ts.map +1 -1
  164. package/dist/src/flow/TakeoverPages.d.ts +9 -0
  165. package/dist/src/flow/TakeoverPages.d.ts.map +1 -0
  166. package/dist/src/flow/WalletDepositStep.d.ts.map +1 -1
  167. package/dist/src/flow/checkoutHistory.d.ts +4 -0
  168. package/dist/src/flow/checkoutHistory.d.ts.map +1 -0
  169. package/dist/src/flow/depositFlowConfig.d.ts +2 -0
  170. package/dist/src/flow/depositFlowConfig.d.ts.map +1 -1
  171. package/dist/src/flow/paymentPickerFoot.d.ts +7 -0
  172. package/dist/src/flow/paymentPickerFoot.d.ts.map +1 -0
  173. package/dist/src/flow/quickAmounts.d.ts.map +1 -1
  174. package/dist/src/flow/renderFiatFlowScreen.d.ts +12 -3
  175. package/dist/src/flow/renderFiatFlowScreen.d.ts.map +1 -1
  176. package/dist/src/flow/sheetSizing.d.ts +10 -0
  177. package/dist/src/flow/sheetSizing.d.ts.map +1 -1
  178. package/dist/src/flow/useWalletDeposit.d.ts +8 -4
  179. package/dist/src/flow/useWalletDeposit.d.ts.map +1 -1
  180. package/dist/src/flow/walletFundingCopy.d.ts +27 -0
  181. package/dist/src/flow/walletFundingCopy.d.ts.map +1 -0
  182. package/dist/src/hooks/track/events.d.ts +1 -0
  183. package/dist/src/hooks/track/events.d.ts.map +1 -1
  184. package/dist/src/hooks/track/useDepositFlowEvents.d.ts.map +1 -1
  185. package/dist/src/hooks/track/useWithdrawalFlowEvents.d.ts.map +1 -1
  186. package/dist/src/hooks/usePressScale.d.ts +15 -2
  187. package/dist/src/hooks/usePressScale.d.ts.map +1 -1
  188. package/dist/src/icons/EmptyWalletArtwork.d.ts +10 -0
  189. package/dist/src/icons/EmptyWalletArtwork.d.ts.map +1 -0
  190. package/dist/src/icons/MinusCircleIcon.d.ts +4 -0
  191. package/dist/src/icons/MinusCircleIcon.d.ts.map +1 -0
  192. package/dist/src/icons/QrTileIcon.d.ts +6 -0
  193. package/dist/src/icons/QrTileIcon.d.ts.map +1 -0
  194. package/dist/src/preview/fixtures/kycForms.d.ts +5 -0
  195. package/dist/src/preview/fixtures/kycForms.d.ts.map +1 -1
  196. package/dist/src/preview/flowPreview.d.ts +18 -0
  197. package/dist/src/preview/flowPreview.d.ts.map +1 -1
  198. package/dist/src/preview/replay/recordedStripeOnramp.d.ts.map +1 -1
  199. package/dist/src/preview/scenarioCatalog.d.ts +42 -0
  200. package/dist/src/preview/scenarioCatalog.d.ts.map +1 -1
  201. package/dist/src/preview/scenarios.d.ts.map +1 -1
  202. package/dist/src/screens/PaymentConfirmScreen.d.ts +8 -4
  203. package/dist/src/screens/PaymentConfirmScreen.d.ts.map +1 -1
  204. package/dist/src/swapped/SwappedScreen.d.ts +6 -1
  205. package/dist/src/swapped/SwappedScreen.d.ts.map +1 -1
  206. package/dist/src/swapped/SwappedScreenShell.d.ts +13 -1
  207. package/dist/src/swapped/SwappedScreenShell.d.ts.map +1 -1
  208. package/dist/src/swapped/SwappedWebView.d.ts.map +1 -1
  209. package/dist/src/swapped/paymentNavigation.d.ts +0 -3
  210. package/dist/src/swapped/paymentNavigation.d.ts.map +1 -1
  211. package/dist/src/swapped/swappedV2Theme.d.ts +7 -0
  212. package/dist/src/swapped/swappedV2Theme.d.ts.map +1 -1
  213. package/dist/src/swapped/useSwappedEmbed.d.ts +3 -7
  214. package/dist/src/swapped/useSwappedEmbed.d.ts.map +1 -1
  215. package/dist/src/theme/buildFunkitTheme.d.ts +10 -0
  216. package/dist/src/theme/buildFunkitTheme.d.ts.map +1 -1
  217. package/dist/src/theme/restyle.d.ts +330 -0
  218. package/dist/src/theme/restyle.d.ts.map +1 -1
  219. package/dist/src/theme/toRestyleTheme.d.ts +30 -0
  220. package/dist/src/theme/toRestyleTheme.d.ts.map +1 -1
  221. package/dist/src/theme/typeScale.d.ts +60 -0
  222. package/dist/src/theme/typeScale.d.ts.map +1 -1
  223. package/dist/src/transfer/fops.d.ts +4 -2
  224. package/dist/src/transfer/fops.d.ts.map +1 -1
  225. package/dist/src/utils/withAlpha.d.ts +5 -0
  226. package/dist/src/utils/withAlpha.d.ts.map +1 -1
  227. package/package.json +4 -8
  228. package/dist/chunk-7SP2UUHA.js.map +0 -7
  229. package/dist/chunk-JM7562IY.js.map +0 -7
  230. package/dist/src/icons/CryptoTransferQRIcon.d.ts +0 -11
  231. package/dist/src/icons/CryptoTransferQRIcon.d.ts.map +0 -1
  232. package/dist/src/swapped/swappedV2Env.d.ts +0 -24
  233. package/dist/src/swapped/swappedV2Env.d.ts.map +0 -1
  234. /package/dist/{chunk-PSO6DYOK.js.map → chunk-IEQWKP4M.js.map} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,113 @@
1
1
  # @funkit/connect-rn
2
2
 
3
+ ## 12.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - d89efe8: Closing the payment-failed sheet after Coinbase's Apple Pay fails to load now leaves Coinbase out instead of retrying it.
8
+ - 9ba4c7c: Google Pay is no longer offered on iOS, where its checkout cannot complete.
9
+ - 56346ac: A Swapped method picked from the payment-method sheet opens inside that sheet, and Swapped's back or close returns to the method list instead of closing the deposit.
10
+ - f82602f: Swapped's v2 design follows a dark host theme: its fields, buttons and top-bar buttons take the host's colors instead of v2's light defaults.
11
+ - 5a8e49a: Swapped's v2 design shows a centered loading spinner until its first screen, instead of a spinner pinned to the bottom of an empty sheet.
12
+ - 98fd4bf: Swapped's v2 design loads from Swapped's production widget instead of its test environment.
13
+ - 8784620: A declined order keeps its declined-card sheet up while the deposit prices again with the same provider.
14
+ - 8e91a26: Fix the payment options sheet resting too tall after tapping back while an expanded crypto page is still opening.
15
+ - e8ddaf7: The EUR deposit amount presets are now 25/50/100/200, so every preset is above the MoonPay EU/EEA minimum of 24 EUR.
16
+ - 8784620: Offer another partner when Coinbase or MoonPay declines a card on /fiat/next, and show "Card declined, debit cards work best" for a declined Stripe order
17
+ - d5f6dc7: On `/fiat/next`, continuing to another provider after a closed or declined Apple Pay sheet now opens that provider's sign-in or verification at once, instead of waiting on the amount screen.
18
+ - 061fd77: Show "Your deposit didn't go through" with Try again and Other payment methods when a /fiat/next payment fails for a reason no other sheet covers
19
+ - 467ee46: After a failover switch, a provider that refuses the amount at once no longer leaves the old card prompt over the amount screen.
20
+ - 467ee46: After a failover switch, a deposit that ends up back at the provider the buyer left no longer keeps the switch prompt over that provider's pay button.
21
+ - e98320c: On `/fiat/next`, a failover to Coinbase or MoonPay now ends on the verified sheet with that provider's Apple Pay, instead of the bare amount screen.
22
+ - 507435d: On `/fiat/next`, a failover to Stripe now ends on the "Verified, please try your deposit again" sheet with Stripe's Apple Pay button, instead of the bare amount screen.
23
+ - 507435d: The daily limit sheet no longer reads "Verified" when it opens after a failover switch.
24
+ - a68e414: On `/fiat/next`, Stripe no longer opens a second Apple Pay sheet for contact details after a failover from another provider's Apple Pay.
25
+ - d818a97: On `/fiat/next`, the payment-failed sheet no longer suggests a debit card when the failure was not a card decline.
26
+ - e63f22d: Stop saying "Verified" after a failover when the new provider asked the buyer for no sign-in or verification step
27
+ - ea5187c: Switch partners at most once per /fiat/next checkout; a later failure that would switch again shows "Your deposit didn't go through" instead
28
+ - 467ee46: After a failover's Continue finds no other provider, the switch prompt closes once the route comes back to the provider the buyer left.
29
+ - 467ee46: Keep the failover sheet up, with a spinner, while a switched-to provider's checkout starts, instead of showing the amount screen
30
+ - b40c65e: Ask the next provider ahead while a failover's sheet is up, so Continue answers sooner
31
+ - ea5187c: The fallback sheet after a closed Apple Pay sheet waits for that sheet to leave before it rises.
32
+ - 061fd77: A provider checkout's failed order shows the fallback sheet even when it failed before any payment.
33
+ - a9efb82: Stripe checkouts deliver the long-tail token the buyer picked instead of USDC.
34
+
35
+ Migration: pass `{ depositAddress }` as the third argument to `stripeCheckoutStart` instead of a string; supply `destinationAsset` alongside it and on `AMOUNT_CHANGED` events when the payout needs conversion.
36
+ - 8e91a26: Fix the crypto deposit sheet staying too tall when the next page opens while the sheet is still rising.
37
+ - fca17d9: Show Continue on the KYC phone step only once the number is valid for its country.
38
+ - 507435d: After a failover switch to MoonPay, its Apple Pay button loads on the amount screen instead of failing inside the sheet.
39
+ - 507435d: MoonPay's Apple Pay button no longer crashes the app when the failover sheet shows it.
40
+ - de644d1: Link consecutive checkout openings in modal analytics.
41
+ - ce35029: Log which Stripe KYC fields arrive pre-filled when a round opens (field ids only).
42
+ - c019b5c: Fix Stripe account creation failing with "No active Link consumer is available" on the /fiat/next checkout.
43
+ - 536a37a: Stripe's identity form no longer asks again for a name the buyer typed in the account form
44
+ - 8784620: Continue after a decline is offered only when another allowed provider can take the amount.
45
+ - 434e3dd: Report Stripe payment authorization only after checkout succeeds so later card declines reach analytics; authorization trends should be split by SDK version because earlier releases counted Apple Pay approval.
46
+ - Updated dependencies [e98320c]
47
+ - Updated dependencies [467ee46]
48
+ - Updated dependencies [a9efb82]
49
+ - Updated dependencies [b40c65e]
50
+ - Updated dependencies [9e87f76]
51
+ - @funkit/connect-core@16.0.0
52
+ - @funkit/chains@3.0.0
53
+
54
+ ## 12.0.0
55
+
56
+ ### Major Changes
57
+
58
+ - ff4bf8e: Solana withdrawals take a `FunkitSolanaAdapter` from `@funkit/solana-kit` or `@funkit/solana-web3`, and `@solana/web3.js` is no longer a peer dependency.
59
+
60
+ Migration: call `useSolanaWithdrawal({ adapter, config })` in place of `useSolanaWithdrawal({ solana: { signer }, config })`, building `adapter` with `createSolanaAdapter({ rpc, signer })` from `@funkit/solana-kit` or `createSolanaAdapter({ address, connection, signTransaction })` from `@funkit/solana-web3`. `SolanaWalletSigner` and `SolanaWithdrawalFlowConfig` are removed from `@funkit/connect-rn/clients/solana`; it exports `FunkitSolanaAdapter` instead.
61
+
62
+ ### Minor Changes
63
+
64
+ - 7309309: An EU buyer accepts Stripe's terms in Stripe's own sheet before the identity check.
65
+ - f27f264: Stripe is configured with the buyer's country, so an EU buyer gets Stripe's EU merchant of record.
66
+ - a3430c0: An EU buyer enters the MiCA and tax identifiers Stripe asks for, one at a time, on the KYC tax ID page.
67
+ - 18661e6: Stripe receives an EU buyer's nationality and birthplace from the identity form.
68
+
69
+ ### Patch Changes
70
+
71
+ - dc60269: The crypto "How it works" page shows the designed QR tile icon.
72
+ - 30e8355: The crypto "How it works" page names Solana, Tron or Bitcoin in its headline and drops "Most used tokens" on those networks.
73
+ - 5e0512b: The crypto currency card opened from the payment method picker keeps its 8pt bottom margin at its opening height.
74
+ - bcdb0ca: Currency search: rows blur under the field and no longer show through the keyboard.
75
+ - bfe9fb3: The wallet connection failure banner is glass, springs in and lifts out after 3 seconds, and reads "Unable to complete deposit.", naming a rejected request as such.
76
+ - 921b7a9: The wallet token sheet is an inset card closed by a drag handle instead of a back button, lists low-balance tokens inline under a muted Low balance badge, and shows "Powered by Fun" under its rows.
77
+ - 2e93e55: Linking a wallet that holds nothing usable, or too little, opens a sheet that explains why and offers Disconnect Wallet; the token selector reads No usable tokens or Low balance.
78
+ - 5473326: The linked wallet's payment review draws its success check at the loading spinner's stroke weight.
79
+ - eeabf96: Wallet link-outs accept an optional `logomarkUrl`, and the linked wallet's payment review shows Phantom's bare logomark beside its name on dark sheets instead of the app icon.
80
+ - eeabf96: The linked wallet's payment review drops the repeated "Requested amount" row and the token amount, shows Change as a smaller chip, adopts the design's spacing and type, and grows on short phones so the Pay button stays on screen.
81
+ - 1e473dd: The linked wallet's Unlink Wallet action leads with a minus-circle icon.
82
+ - 99555b7: Provider checkout screens now slide from one to the next instead of cutting.
83
+ - f040e98: Deposit list rows no longer flash or buzz when a scroll starts on them, and press haptics now fire on release instead of touch-down.
84
+ - 0497487: A Polish or Maltese buyer can give the alternative ID Stripe accepts (NIP, or a passport number) in the same field.
85
+ - 266be1c: The KYC form asks the place of birth on one page, and Stripe's EU terms step has its own intro.
86
+ - 1f3a54a: Stripe EU steps that Stripe reports out of order are asked again instead of failing over.
87
+ - ad0da73: Price every EU buyer in EUR while Stripe's `/fiat/next` checkout is offered, so buyers in Poland, Sweden and other non-euro EU countries can buy through Stripe
88
+ - 0f46136: Tell EU buyers on Stripe to have their ID ready, instead of "no ID needed"
89
+ - 5f73018: Stripe EU checkout: after Re-do ID verification, the buyer sees the review while Stripe decides, not the ID request again, and a double tap opens one ID sheet.
90
+ - 8f2d249: Show the Stripe ID check's intro, loading, while a re-done check opens and after it returns.
91
+ - 2c8b050: Tell a Stripe buyer their ID was not accepted when Stripe asks for it again.
92
+ - 7d59250: Stripe EU checkout: a buyer who leaves the ID review and comes back before Stripe decides sees the review again, not a new ID request.
93
+ - 4b4803f: Stripe EU checkout: after the ID check, show a review screen the buyer can leave while Stripe decides, and show the "ID check did not work" card only when Stripe rejected the ID.
94
+ - 2e3915a: Internal: Stripe's EU identifier calls, ready for the identifiers screen.
95
+ - 4b3c80a: Stripe EU checkout: the Apple Pay sheet shown before sign-in names Stripe's Irish business for an EUR purchase, not its US one.
96
+ - 266be1c: Preview scenario for Stripe's EU identity form.
97
+ - ea12ff1: Tell a Stripe buyer whose Apple Pay card is from another country why Stripe can't take the purchase, then move them to another provider
98
+ - Updated dependencies [8afd857]
99
+ - Updated dependencies [ff4bf8e]
100
+ - Updated dependencies [afca5cd]
101
+ - Updated dependencies [1f3a54a]
102
+ - Updated dependencies [5f73018]
103
+ - Updated dependencies [8f2d249]
104
+ - Updated dependencies [2c8b050]
105
+ - Updated dependencies [7d59250]
106
+ - Updated dependencies [4b4803f]
107
+ - Updated dependencies [ea12ff1]
108
+ - Updated dependencies [dc087f3]
109
+ - @funkit/connect-core@15.0.0
110
+
3
111
  ## 11.3.1
4
112
 
5
113
  ### Patch Changes
package/README.md CHANGED
@@ -525,17 +525,22 @@ even though nothing calls it today; a stub is fine. Same for the optional
525
525
 
526
526
  Solana lives on its own entry, `@funkit/connect-rn/clients/solana`, so a host
527
527
  that never configures it carries none of it. The host owns the Solana wallet
528
- connection; the SDK takes the connected wallet's signer and builds a withdrawal
529
- config over it. USDC on Solana is the only source today, and both the crypto
530
- and the cash (Swapped) methods work from it.
528
+ connection and builds a `FunkitSolanaAdapter` with `@funkit/solana-kit` (Kit) or
529
+ `@funkit/solana-web3` (web3.js); the SDK builds a withdrawal config over it.
530
+ USDC on Solana is the only source today, and both the crypto and the cash
531
+ (Swapped) methods work from it.
531
532
 
532
533
  ```tsx
533
534
  import { useFunkitCheckout } from '@funkit/connect-rn'
534
535
  import { useSolanaWithdrawal } from '@funkit/connect-rn/clients/solana'
536
+ import { createSolanaAdapter } from '@funkit/solana-kit'
535
537
  import { useMemo } from 'react'
536
538
 
537
539
  // Both inputs are compared by identity, so keep them stable across renders.
538
- const solana = useMemo(() => ({ signer: solanaWallet }), [solanaWallet])
540
+ const adapter = useMemo(
541
+ () => createSolanaAdapter({ rpc, signer }),
542
+ [rpc, signer],
543
+ )
539
544
  const config = useMemo(
540
545
  () => ({
541
546
  defaultReceiveToken: 'USDC',
@@ -544,20 +549,21 @@ const config = useMemo(
544
549
  }),
545
550
  [usdcBalance],
546
551
  )
547
- // `solanaWallet`: a base58 address, the RPC connection funkit submits through,
548
- // and one of `signTransaction` / `signAndSendTransaction`.
549
- const withdrawal = useSolanaWithdrawal({ solana, config })
552
+ const withdrawal = useSolanaWithdrawal({ adapter, config })
550
553
 
551
554
  const { beginWithdrawal } = useFunkitCheckout()
552
- // `undefined` while the signer is absent or its address is not base58.
555
+ // `undefined` while the adapter is absent or its address is not base58.
553
556
  if (withdrawal) beginWithdrawal(withdrawal)
554
557
  ```
555
558
 
556
- Install `@solana/web3.js` (an optional peer) and give Hermes what it lacks
557
- before importing the SDK: `Buffer` (the `buffer` package), a full `URL`
558
- (`react-native-url-polyfill/auto`), and `crypto.getRandomValues` as described
559
- under [MoonPay crypto setup](#moonpay-crypto-setup). Point the connection at an
560
- RPC you control; Solana's public endpoints rate-limit.
559
+ `rpc` is your Kit `Rpc` and `signer` a Kit `TransactionSigner`. A web3.js host
560
+ uses `@funkit/solana-web3` instead:
561
+ `createSolanaAdapter({ address, connection, signTransaction })`. Give Hermes
562
+ what your Solana library needs before importing it; web3.js needs `Buffer`
563
+ (the `buffer` package), a full `URL` (`react-native-url-polyfill/auto`), and
564
+ `crypto.getRandomValues` as described under
565
+ [MoonPay crypto setup](#moonpay-crypto-setup). Point the RPC at an endpoint you
566
+ control; Solana's public endpoints rate-limit.
561
567
 
562
568
  ## Local development
563
569