@funkit/connect-rn 11.3.0 → 12.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.
- package/CHANGELOG.md +94 -0
- package/README.md +50 -13
- package/dist/{chunk-KRQW5S2X.js → chunk-BC6N7CI3.js} +177 -33
- package/dist/chunk-BC6N7CI3.js.map +7 -0
- package/dist/{chunk-7SP2UUHA.js → chunk-UDEGXDMU.js} +6 -1
- package/dist/{chunk-7SP2UUHA.js.map → chunk-UDEGXDMU.js.map} +2 -2
- package/dist/{chunk-AXAQRGDI.js → chunk-UR3BDCRK.js} +2 -2
- package/dist/clients/lighter.js +1 -1
- package/dist/clients/nado.js +2 -2
- package/dist/clients/solana/index.d.ts +2 -2
- package/dist/clients/solana/index.d.ts.map +1 -1
- package/dist/clients/solana/solanaWithdrawal.d.ts +0 -6
- package/dist/clients/solana/solanaWithdrawal.d.ts.map +1 -1
- package/dist/clients/solana/useSolanaWithdrawal.d.ts +11 -6
- package/dist/clients/solana/useSolanaWithdrawal.d.ts.map +1 -1
- package/dist/clients/solana.js +23 -23
- package/dist/clients/solana.js.map +2 -2
- package/dist/index.js +4925 -2452
- package/dist/index.js.map +4 -4
- package/dist/preview.js +92 -3
- package/dist/preview.js.map +2 -2
- package/dist/src/components/BlurBand.d.ts +5 -1
- package/dist/src/components/BlurBand.d.ts.map +1 -1
- package/dist/src/components/ConnectedBadge.d.ts +9 -0
- package/dist/src/components/ConnectedBadge.d.ts.map +1 -1
- package/dist/src/components/GlassToast.d.ts +23 -0
- package/dist/src/components/GlassToast.d.ts.map +1 -0
- package/dist/src/components/Grabber.d.ts +3 -1
- package/dist/src/components/Grabber.d.ts.map +1 -1
- package/dist/src/components/PasteAddressPanel.d.ts.map +1 -1
- package/dist/src/components/PillButton.d.ts +5 -2
- package/dist/src/components/PillButton.d.ts.map +1 -1
- package/dist/src/components/v2/IconDisc.d.ts.map +1 -1
- package/dist/src/components/v2/ListRow.d.ts.map +1 -1
- package/dist/src/components/v2/PaymentMethodPicker.d.ts.map +1 -1
- package/dist/src/fiat/form/formLayout.d.ts +1 -1
- package/dist/src/fiat/form/formLayout.d.ts.map +1 -1
- package/dist/src/fiat/kyc/FiatKycIntroScreen.d.ts +5 -1
- package/dist/src/fiat/kyc/FiatKycIntroScreen.d.ts.map +1 -1
- package/dist/src/fiat/kyc/sectionDetail.d.ts.map +1 -1
- package/dist/src/fiat/kyc/useRediscoveryFailover.d.ts +11 -0
- package/dist/src/fiat/kyc/useRediscoveryFailover.d.ts.map +1 -0
- package/dist/src/fiat/payment/failoverPrompt.d.ts +1 -1
- package/dist/src/fiat/payment/failoverPrompt.d.ts.map +1 -1
- package/dist/src/fiat/payment/paymentReroute.d.ts +6 -3
- package/dist/src/fiat/payment/paymentReroute.d.ts.map +1 -1
- package/dist/src/fiat/payment/paymentSurfaceFailure.d.ts +7 -1
- package/dist/src/fiat/payment/paymentSurfaceFailure.d.ts.map +1 -1
- package/dist/src/fiat/payment/usePaymentFailureAnswer.d.ts +9 -4
- package/dist/src/fiat/payment/usePaymentFailureAnswer.d.ts.map +1 -1
- package/dist/src/fiat/payment/useRerouteProbe.d.ts +6 -2
- package/dist/src/fiat/payment/useRerouteProbe.d.ts.map +1 -1
- package/dist/src/fiat/processing/CompletionCheck.d.ts +3 -1
- package/dist/src/fiat/processing/CompletionCheck.d.ts.map +1 -1
- package/dist/src/fiat/processing/ProcessingFailure.d.ts.map +1 -1
- package/dist/src/fiat/providers/applePayPaintGate.d.ts +1 -0
- package/dist/src/fiat/providers/applePayPaintGate.d.ts.map +1 -1
- package/dist/src/fiat/providers/checkout/slotOutlets.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbase/next/Checkout.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbase/next/useCoinbaseCheckout.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/errors.d.ts +0 -2
- package/dist/src/fiat/providers/moonpay/errors.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/fullCheckout/challengeRecovery.d.ts +8 -0
- package/dist/src/fiat/providers/moonpay/fullCheckout/challengeRecovery.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/fullCheckout/checkoutScreens.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/fullCheckout/connection.d.ts +5 -3
- package/dist/src/fiat/providers/moonpay/fullCheckout/connection.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/fullCheckout/heldConnection.d.ts +44 -0
- package/dist/src/fiat/providers/moonpay/fullCheckout/heldConnection.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/fullCheckout/useCheckoutCalls.d.ts +4 -2
- package/dist/src/fiat/providers/moonpay/fullCheckout/useCheckoutCalls.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/fullCheckout/useCheckoutModel.d.ts +5 -3
- package/dist/src/fiat/providers/moonpay/fullCheckout/useCheckoutModel.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/guestCheckout/Checkout.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/guestCheckout/checkoutScreens.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/guestCheckout/useGuestCheckoutModel.d.ts +9 -1
- package/dist/src/fiat/providers/moonpay/guestCheckout/useGuestCheckoutModel.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/moonpay.d.ts +6 -0
- package/dist/src/fiat/providers/moonpay/moonpay.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/moonpayFrameRecovery.d.ts +23 -0
- package/dist/src/fiat/providers/moonpay/moonpayFrameRecovery.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/sdk/ApplePayButton.d.ts +6 -1
- package/dist/src/fiat/providers/moonpay/sdk/ApplePayButton.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/sdk/ApplePaySlot.d.ts +15 -0
- package/dist/src/fiat/providers/moonpay/sdk/ApplePaySlot.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay/sdk/Challenge.d.ts +2 -0
- package/dist/src/fiat/providers/moonpay/sdk/Challenge.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/sdk/Host.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/sdk/deviceQuote.d.ts +2 -0
- package/dist/src/fiat/providers/moonpay/sdk/deviceQuote.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/next/Checkout.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/next/stripeIdentityChecks.d.ts +12 -0
- package/dist/src/fiat/providers/stripe/next/stripeIdentityChecks.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/next/useStripeAttestation.d.ts +20 -0
- package/dist/src/fiat/providers/stripe/next/useStripeAttestation.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/next/useStripeCheckout.d.ts +21 -0
- package/dist/src/fiat/providers/stripe/next/useStripeCheckout.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/next/useStripeCheckoutCalls.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/next/useStripeFunnel.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/next/useStripeIdentifiers.d.ts +30 -0
- package/dist/src/fiat/providers/stripe/next/useStripeIdentifiers.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/next/useStripeIdentity.d.ts +5 -2
- package/dist/src/fiat/providers/stripe/next/useStripeIdentity.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/next/useStripePayment.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/next/useStripeReview.d.ts +10 -2
- package/dist/src/fiat/providers/stripe/next/useStripeReview.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/next/useStripeSignIn.d.ts +8 -1
- package/dist/src/fiat/providers/stripe/next/useStripeSignIn.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripeApplePaySelection.d.ts +5 -0
- package/dist/src/fiat/providers/stripe/stripeApplePaySelection.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripeEuCountries.d.ts +8 -0
- package/dist/src/fiat/providers/stripe/stripeEuCountries.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/stripeEuErrors.d.ts +16 -0
- package/dist/src/fiat/providers/stripe/stripeEuErrors.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/stripeIdentifierField.d.ts +23 -0
- package/dist/src/fiat/providers/stripe/stripeIdentifierField.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/stripeKycInfo.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripeLinkWarmup.d.ts +8 -4
- package/dist/src/fiat/providers/stripe/stripeLinkWarmup.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripeOnramp.d.ts +54 -0
- package/dist/src/fiat/providers/stripe/stripeOnramp.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripeOnrampBridge.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripePayment.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/useStripeOnrampClient.d.ts +13 -1
- package/dist/src/fiat/providers/stripe/useStripeOnrampClient.d.ts.map +1 -1
- package/dist/src/fiat/providers/useWebViewTermination.d.ts +4 -2
- package/dist/src/fiat/providers/useWebViewTermination.d.ts.map +1 -1
- package/dist/src/fiat/quote/providerSelection.d.ts.map +1 -1
- package/dist/src/fiat/quote/quoteRouting.d.ts +10 -7
- package/dist/src/fiat/quote/quoteRouting.d.ts.map +1 -1
- package/dist/src/fiat/surface/SurfaceSlot.d.ts +8 -2
- package/dist/src/fiat/surface/SurfaceSlot.d.ts.map +1 -1
- package/dist/src/fiat/surface/useFailureAnnouncements.d.ts +1 -2
- package/dist/src/fiat/surface/useFailureAnnouncements.d.ts.map +1 -1
- package/dist/src/fiat/useProviderCheckout.d.ts +8 -3
- package/dist/src/fiat/useProviderCheckout.d.ts.map +1 -1
- package/dist/src/flow/CryptoLearnMorePage.d.ts.map +1 -1
- package/dist/src/flow/CryptoTokenPage.d.ts.map +1 -1
- package/dist/src/flow/Drawer.d.ts +13 -2
- package/dist/src/flow/Drawer.d.ts.map +1 -1
- package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
- package/dist/src/flow/FlowSheet.d.ts +11 -1
- package/dist/src/flow/FlowSheet.d.ts.map +1 -1
- package/dist/src/flow/FunkitFlowProvider.d.ts +2 -0
- package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
- package/dist/src/flow/SheetMaterial.d.ts.map +1 -1
- package/dist/src/flow/TakeoverPages.d.ts +9 -0
- package/dist/src/flow/TakeoverPages.d.ts.map +1 -0
- package/dist/src/flow/WalletDepositStep.d.ts.map +1 -1
- package/dist/src/flow/checkoutHistory.d.ts +4 -0
- package/dist/src/flow/checkoutHistory.d.ts.map +1 -0
- package/dist/src/flow/depositFlowConfig.d.ts +2 -0
- package/dist/src/flow/depositFlowConfig.d.ts.map +1 -1
- package/dist/src/flow/purchaseSheetCustomers.d.ts +8 -0
- package/dist/src/flow/purchaseSheetCustomers.d.ts.map +1 -1
- package/dist/src/flow/renderFiatFlowScreen.d.ts.map +1 -1
- package/dist/src/flow/sheetSizing.d.ts +10 -0
- package/dist/src/flow/sheetSizing.d.ts.map +1 -1
- package/dist/src/flow/useFunkitPurchaseSheetEnabled.d.ts.map +1 -1
- package/dist/src/flow/useWalletDeposit.d.ts +8 -4
- package/dist/src/flow/useWalletDeposit.d.ts.map +1 -1
- package/dist/src/flow/walletFundingCopy.d.ts +27 -0
- package/dist/src/flow/walletFundingCopy.d.ts.map +1 -0
- package/dist/src/hooks/track/events.d.ts +1 -0
- package/dist/src/hooks/track/events.d.ts.map +1 -1
- package/dist/src/hooks/track/useDepositFlowEvents.d.ts.map +1 -1
- package/dist/src/hooks/track/usePaymentButtonEvents.d.ts.map +1 -1
- package/dist/src/hooks/track/useTrackFiatPaymentEvents.d.ts +2 -1
- package/dist/src/hooks/track/useTrackFiatPaymentEvents.d.ts.map +1 -1
- package/dist/src/hooks/track/useWithdrawalFlowEvents.d.ts.map +1 -1
- package/dist/src/hooks/useNestedSheet.d.ts +11 -0
- package/dist/src/hooks/useNestedSheet.d.ts.map +1 -1
- package/dist/src/hooks/usePressScale.d.ts +15 -2
- package/dist/src/hooks/usePressScale.d.ts.map +1 -1
- package/dist/src/icons/EmptyWalletArtwork.d.ts +10 -0
- package/dist/src/icons/EmptyWalletArtwork.d.ts.map +1 -0
- package/dist/src/icons/MinusCircleIcon.d.ts +4 -0
- package/dist/src/icons/MinusCircleIcon.d.ts.map +1 -0
- package/dist/src/icons/QrTileIcon.d.ts +6 -0
- package/dist/src/icons/QrTileIcon.d.ts.map +1 -0
- package/dist/src/preview/fixtures/kycForms.d.ts +5 -0
- package/dist/src/preview/fixtures/kycForms.d.ts.map +1 -1
- package/dist/src/preview/replay/ReplayMoonPay.d.ts +22 -0
- package/dist/src/preview/replay/ReplayMoonPay.d.ts.map +1 -0
- package/dist/src/preview/replay/recordedStripeOnramp.d.ts.map +1 -1
- package/dist/src/preview/replay/replayFetch.d.ts.map +1 -1
- package/dist/src/preview/scenarioCatalog.d.ts +12 -0
- package/dist/src/preview/scenarioCatalog.d.ts.map +1 -1
- package/dist/src/preview/scenarios.d.ts.map +1 -1
- package/dist/src/screens/PaymentConfirmScreen.d.ts +8 -4
- package/dist/src/screens/PaymentConfirmScreen.d.ts.map +1 -1
- package/dist/src/theme/buildFunkitTheme.d.ts +10 -0
- package/dist/src/theme/buildFunkitTheme.d.ts.map +1 -1
- package/dist/src/theme/restyle.d.ts +330 -0
- package/dist/src/theme/restyle.d.ts.map +1 -1
- package/dist/src/theme/toRestyleTheme.d.ts +30 -0
- package/dist/src/theme/toRestyleTheme.d.ts.map +1 -1
- package/dist/src/theme/typeScale.d.ts +60 -0
- package/dist/src/theme/typeScale.d.ts.map +1 -1
- package/package.json +3 -7
- package/dist/chunk-KRQW5S2X.js.map +0 -7
- package/dist/src/icons/CryptoTransferQRIcon.d.ts +0 -11
- package/dist/src/icons/CryptoTransferQRIcon.d.ts.map +0 -1
- /package/dist/{chunk-AXAQRGDI.js.map → chunk-UR3BDCRK.js.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,99 @@
|
|
|
1
1
|
# @funkit/connect-rn
|
|
2
2
|
|
|
3
|
+
## 12.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- ff4bf8e: Solana withdrawals take a `FunkitSolanaAdapter` from `@funkit/solana-kit` or `@funkit/solana-web3`, and `@solana/web3.js` is no longer a peer dependency.
|
|
8
|
+
|
|
9
|
+
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.
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 7309309: An EU buyer accepts Stripe's terms in Stripe's own sheet before the identity check.
|
|
14
|
+
- f27f264: Stripe is configured with the buyer's country, so an EU buyer gets Stripe's EU merchant of record.
|
|
15
|
+
- a3430c0: An EU buyer enters the MiCA and tax identifiers Stripe asks for, one at a time, on the KYC tax ID page.
|
|
16
|
+
- 18661e6: Stripe receives an EU buyer's nationality and birthplace from the identity form.
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- dc60269: The crypto "How it works" page shows the designed QR tile icon.
|
|
21
|
+
- 30e8355: The crypto "How it works" page names Solana, Tron or Bitcoin in its headline and drops "Most used tokens" on those networks.
|
|
22
|
+
- 5e0512b: The crypto currency card opened from the payment method picker keeps its 8pt bottom margin at its opening height.
|
|
23
|
+
- bcdb0ca: Currency search: rows blur under the field and no longer show through the keyboard.
|
|
24
|
+
- 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.
|
|
25
|
+
- 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.
|
|
26
|
+
- 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.
|
|
27
|
+
- 5473326: The linked wallet's payment review draws its success check at the loading spinner's stroke weight.
|
|
28
|
+
- 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.
|
|
29
|
+
- 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.
|
|
30
|
+
- 1e473dd: The linked wallet's Unlink Wallet action leads with a minus-circle icon.
|
|
31
|
+
- 99555b7: Provider checkout screens now slide from one to the next instead of cutting.
|
|
32
|
+
- 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.
|
|
33
|
+
- 0497487: A Polish or Maltese buyer can give the alternative ID Stripe accepts (NIP, or a passport number) in the same field.
|
|
34
|
+
- 266be1c: The KYC form asks the place of birth on one page, and Stripe's EU terms step has its own intro.
|
|
35
|
+
- 1f3a54a: Stripe EU steps that Stripe reports out of order are asked again instead of failing over.
|
|
36
|
+
- 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
|
|
37
|
+
- 0f46136: Tell EU buyers on Stripe to have their ID ready, instead of "no ID needed"
|
|
38
|
+
- 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.
|
|
39
|
+
- 8f2d249: Show the Stripe ID check's intro, loading, while a re-done check opens and after it returns.
|
|
40
|
+
- 2c8b050: Tell a Stripe buyer their ID was not accepted when Stripe asks for it again.
|
|
41
|
+
- 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.
|
|
42
|
+
- 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.
|
|
43
|
+
- 2e3915a: Internal: Stripe's EU identifier calls, ready for the identifiers screen.
|
|
44
|
+
- 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.
|
|
45
|
+
- 266be1c: Preview scenario for Stripe's EU identity form.
|
|
46
|
+
- 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
|
|
47
|
+
- Updated dependencies [8afd857]
|
|
48
|
+
- Updated dependencies [ff4bf8e]
|
|
49
|
+
- Updated dependencies [afca5cd]
|
|
50
|
+
- Updated dependencies [1f3a54a]
|
|
51
|
+
- Updated dependencies [5f73018]
|
|
52
|
+
- Updated dependencies [8f2d249]
|
|
53
|
+
- Updated dependencies [2c8b050]
|
|
54
|
+
- Updated dependencies [7d59250]
|
|
55
|
+
- Updated dependencies [4b4803f]
|
|
56
|
+
- Updated dependencies [ea12ff1]
|
|
57
|
+
- Updated dependencies [dc087f3]
|
|
58
|
+
- @funkit/connect-core@15.0.0
|
|
59
|
+
|
|
60
|
+
## 11.3.1
|
|
61
|
+
|
|
62
|
+
### Patch Changes
|
|
63
|
+
|
|
64
|
+
- 1ffe5ed: Show the payment-failed sheet as soon as a payment fails, with its "Try with a different provider" row loading until another provider answers.
|
|
65
|
+
- 3cff271: A buyer on Fun's email login now signs in before a provider checkout opens, instead of reaching a checkout that refuses every request.
|
|
66
|
+
- 2be2772: On /fiat/next, closing the recovery sheet after cancelling Coinbase Apple Pay restores the same checkout without another order; its button stays inactive until the sheet is answered.
|
|
67
|
+
- 070d06e: MoonPay `/fiat/next`: the Apple Pay button is ready sooner after sign-in.
|
|
68
|
+
- ace0d53: The payment-failed sheet no longer counts as closed by the buyer when its drawer leaves the screen, and a provider order refunded after the charge is no longer reported as settled. Cancelled provider orders record a cancellation outcome.
|
|
69
|
+
- 32acfe8: After a prepaid card decline, switching provider no longer routes the buyer back to the provider that declined it, and the prepaid card no longer pushes debit-only providers last for the rest of the session.
|
|
70
|
+
- cc6e74f: After a failed fiat payment, the switch to another provider stays on the routing table and opens that provider's own checkout, instead of falling back to the legacy steps. A KYC step that the backend reroutes to a provider with its own checkout, or to one the sheet shut out, moves on instead of running that provider's legacy steps.
|
|
71
|
+
- 8f24cbe: MoonPay checkouts reopened for the same buyer within two minutes reuse their connection and reconnect quietly if it has expired.
|
|
72
|
+
- 92b7b3f: MoonPay guest checkout opens MoonPay's payment challenge frame when the Apple Pay sheet asks for one, as MoonPay's full checkout does. Before, it failed the payment and offered another provider.
|
|
73
|
+
- 5b8e1d4: MoonPay guest checkout shows MoonPay's payment disclosures beside the Apple Pay button, as MoonPay's full checkout does.
|
|
74
|
+
- b099279: MoonPay guest checkout uses the shared `noop` from `@funkit/utils`.
|
|
75
|
+
- c74af5f: MoonPay checkout recovers killed frames and checks for a payment when a challenge closes unexpectedly.
|
|
76
|
+
- ffcb8fa: Keep a provider's deposit button in its place above the keypad instead of drawn over the keypad's top row.
|
|
77
|
+
- b5f4125: Show the coin header on Pump's first purchase-sheet open, before feature flags have loaded.
|
|
78
|
+
- ee2c78e: A session replay now stands in for MoonPay's sign-in, quote and Apple Pay button, so a replayed MoonPay `/fiat/next` checkout reaches its pay step.
|
|
79
|
+
A routing table refresh during a replayed checkout no longer skips the checkout's next recorded answer.
|
|
80
|
+
- 1620799: On iOS 26 and later, the host app no longer shows through at the sheet's top corners when the sheet reaches the top of the screen.
|
|
81
|
+
- ce49c84: Stripe deposits show the Apple Pay button, not "Verification Needed", when the tap opens Apple Pay before the verification form.
|
|
82
|
+
- 1171322: Stripe checkout on /fiat/next no longer signs in to Link again before payment when the buyer's Link session is still active.
|
|
83
|
+
|
|
84
|
+
Bind Link session reuse to the buyer, let KYC and identity steps still redeem their own distinct credential, avoid spent credentials and duplicate tap logs, and refresh a lapsed session once before checkout requests a payment secret.
|
|
85
|
+
- Updated dependencies [3cff271]
|
|
86
|
+
- Updated dependencies [4f1e04f]
|
|
87
|
+
- Updated dependencies [070d06e]
|
|
88
|
+
- Updated dependencies [ee2c78e]
|
|
89
|
+
- Updated dependencies [cc6e74f]
|
|
90
|
+
- Updated dependencies [32acfe8]
|
|
91
|
+
- Updated dependencies [547fb50]
|
|
92
|
+
- Updated dependencies [8f24cbe]
|
|
93
|
+
- Updated dependencies [92b7b3f]
|
|
94
|
+
- Updated dependencies [c74af5f]
|
|
95
|
+
- @funkit/connect-core@14.0.1
|
|
96
|
+
|
|
3
97
|
## 11.3.0
|
|
4
98
|
|
|
5
99
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -127,6 +127,12 @@ the screen falls back to the price-feed estimate plus the same buffer and logs a
|
|
|
127
127
|
warning.
|
|
128
128
|
Locked deposits without this cap keep the plain price-feed estimate.
|
|
129
129
|
|
|
130
|
+
## MoonPay checkout connection reuse
|
|
131
|
+
|
|
132
|
+
Within one MoonPay host, the full checkout reuses a connection for the same API key and buyer for two minutes from its successful connection check. Checkout remounts do not extend that deadline. The host owns the held credentials, so closing it clears them; previews and hosts without a buyer identity do not share connections.
|
|
133
|
+
|
|
134
|
+
The first observe validates reused credentials. A session or connection-reset answer discards them before reconnecting. Reuse is logged only after that answer accepts the connection, and a refused reuse has a separate warning event.
|
|
135
|
+
|
|
130
136
|
## MoonPay crypto setup
|
|
131
137
|
|
|
132
138
|
MoonPay requires a secure `globalThis.crypto.getRandomValues` implementation on
|
|
@@ -357,6 +363,19 @@ Two deliberate choices keep it that way:
|
|
|
357
363
|
copy degrades to a no-op + warning rather than crashing. A host injects its own
|
|
358
364
|
writer via `FunkitProvider`'s `copyToClipboard` (e.g. `expo-clipboard`), and
|
|
359
365
|
that override runs instead, so the throwing path never executes.
|
|
366
|
+
- **Stripe Link reuse belongs to the buyer.** Price warm-up and the Apple Pay tap
|
|
367
|
+
record the buyer subject with the process-local Link session. Checkout, KYC and
|
|
368
|
+
identity can reuse it only for a known subject (never the unset wallet sentinel)
|
|
369
|
+
while its credential has a finite,
|
|
370
|
+
unexpired timestamp. KYC and identity still redeem their own credential when it
|
|
371
|
+
differs, since a live session can lapse first. A refused single-use credential
|
|
372
|
+
is never redeemed again.
|
|
373
|
+
Checkout records `fiat:stripe_checkout_signin` with source, sign-in outcome and
|
|
374
|
+
order ID, without counting another tap sign-in stage. If a reused session fails
|
|
375
|
+
before requesting a checkout secret, a distinct pay credential can refresh it
|
|
376
|
+
for one retry. Once a checkout callback starts, backend/payment ownership takes
|
|
377
|
+
precedence; cancellation, backend steps and host dismissal never trigger this retry.
|
|
378
|
+
|
|
360
379
|
- **Stripe is an optional peer, loaded on demand.** `@stripe/stripe-react-native`
|
|
361
380
|
is a native module *not* in Expo Go, and it throws at import time on a binary
|
|
362
381
|
without its pod. Nothing names the package outside the guarded `import()` in
|
|
@@ -506,17 +525,22 @@ even though nothing calls it today; a stub is fine. Same for the optional
|
|
|
506
525
|
|
|
507
526
|
Solana lives on its own entry, `@funkit/connect-rn/clients/solana`, so a host
|
|
508
527
|
that never configures it carries none of it. The host owns the Solana wallet
|
|
509
|
-
connection
|
|
510
|
-
|
|
511
|
-
|
|
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.
|
|
512
532
|
|
|
513
533
|
```tsx
|
|
514
534
|
import { useFunkitCheckout } from '@funkit/connect-rn'
|
|
515
535
|
import { useSolanaWithdrawal } from '@funkit/connect-rn/clients/solana'
|
|
536
|
+
import { createSolanaAdapter } from '@funkit/solana-kit'
|
|
516
537
|
import { useMemo } from 'react'
|
|
517
538
|
|
|
518
539
|
// Both inputs are compared by identity, so keep them stable across renders.
|
|
519
|
-
const
|
|
540
|
+
const adapter = useMemo(
|
|
541
|
+
() => createSolanaAdapter({ rpc, signer }),
|
|
542
|
+
[rpc, signer],
|
|
543
|
+
)
|
|
520
544
|
const config = useMemo(
|
|
521
545
|
() => ({
|
|
522
546
|
defaultReceiveToken: 'USDC',
|
|
@@ -525,20 +549,21 @@ const config = useMemo(
|
|
|
525
549
|
}),
|
|
526
550
|
[usdcBalance],
|
|
527
551
|
)
|
|
528
|
-
|
|
529
|
-
// and one of `signTransaction` / `signAndSendTransaction`.
|
|
530
|
-
const withdrawal = useSolanaWithdrawal({ solana, config })
|
|
552
|
+
const withdrawal = useSolanaWithdrawal({ adapter, config })
|
|
531
553
|
|
|
532
554
|
const { beginWithdrawal } = useFunkitCheckout()
|
|
533
|
-
// `undefined` while the
|
|
555
|
+
// `undefined` while the adapter is absent or its address is not base58.
|
|
534
556
|
if (withdrawal) beginWithdrawal(withdrawal)
|
|
535
557
|
```
|
|
536
558
|
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
(
|
|
540
|
-
|
|
541
|
-
|
|
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.
|
|
542
567
|
|
|
543
568
|
## Local development
|
|
544
569
|
|
|
@@ -661,3 +686,15 @@ export default function App() {
|
|
|
661
686
|
return <FunkitProvider themes={themes} {...}>{/* … */}</FunkitProvider>
|
|
662
687
|
}
|
|
663
688
|
```
|
|
689
|
+
|
|
690
|
+
## Coinbase payment cancellation
|
|
691
|
+
|
|
692
|
+
On `/fiat/next`, dismissing Coinbase's Apple Pay sheet keeps its WebView mounted while the
|
|
693
|
+
card-not-found sheet opens. The payment action blocks touches and accessibility interaction
|
|
694
|
+
from cancellation until that sheet is answered. Close or swipe restores the same page without
|
|
695
|
+
a new order; Continue can still switch providers. A real decline replaces the failed page.
|
|
696
|
+
|
|
697
|
+
Cancellation does not mark the link failed. If the page later leaves the screen, its single-use
|
|
698
|
+
link still needs replacement. `fiat:payment_surface_kept` records the provider, cancellation
|
|
699
|
+
cause and code when recovery keeps the checkout. Authorization events alone do not start
|
|
700
|
+
order tracking: Coinbase's `commit_success` reports the committed payment.
|