@funkit/connect-rn 8.3.0 → 9.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 (133) hide show
  1. package/CHANGELOG.md +57 -0
  2. package/README.md +16 -12
  3. package/dist/{chunk-Z6IQFV5E.js → chunk-GCPIOARQ.js} +3 -3
  4. package/dist/{chunk-KDRCHYXB.js → chunk-MMXSERQM.js} +298 -81
  5. package/dist/chunk-MMXSERQM.js.map +7 -0
  6. package/dist/{chunk-BC4RXFI7.js → chunk-ZBWCG4O6.js} +2 -1
  7. package/dist/chunk-ZBWCG4O6.js.map +7 -0
  8. package/dist/{chunk-ZIT24GW5.js → chunk-ZE77GVDW.js} +94 -10
  9. package/dist/chunk-ZE77GVDW.js.map +7 -0
  10. package/dist/clients/lighter.js +2 -2
  11. package/dist/clients/nado.js +3 -3
  12. package/dist/clients/solana.js +1 -1
  13. package/dist/index.js +2750 -2009
  14. package/dist/index.js.map +4 -4
  15. package/dist/preview.js +12 -2
  16. package/dist/preview.js.map +2 -2
  17. package/dist/src/components/PillButton.d.ts.map +1 -1
  18. package/dist/src/components/v2/AccountBalanceChip.d.ts.map +1 -1
  19. package/dist/src/components/v2/AmountDisplay.d.ts.map +1 -1
  20. package/dist/src/components/v2/NumPad.d.ts.map +1 -1
  21. package/dist/src/fiat/FiatChoiceField.d.ts.map +1 -1
  22. package/dist/src/fiat/FiatChoiceList.d.ts.map +1 -1
  23. package/dist/src/fiat/FiatContactScreen.d.ts.map +1 -1
  24. package/dist/src/fiat/FiatCountrySheet.d.ts.map +1 -1
  25. package/dist/src/fiat/FiatErrorNotice.d.ts.map +1 -1
  26. package/dist/src/fiat/FiatFailureBanner.d.ts.map +1 -1
  27. package/dist/src/fiat/FiatFormFieldRow.d.ts.map +1 -1
  28. package/dist/src/fiat/FiatFormHeading.d.ts.map +1 -1
  29. package/dist/src/fiat/FiatFormScreen.d.ts.map +1 -1
  30. package/dist/src/fiat/FiatKycIntroScreen.d.ts.map +1 -1
  31. package/dist/src/fiat/FiatKycNotice.d.ts.map +1 -1
  32. package/dist/src/fiat/FiatKycOptionRow.d.ts.map +1 -1
  33. package/dist/src/fiat/FiatKycOptionsScreen.d.ts +1 -1
  34. package/dist/src/fiat/FiatKycOptionsScreen.d.ts.map +1 -1
  35. package/dist/src/fiat/FiatOtpScreen.d.ts.map +1 -1
  36. package/dist/src/fiat/FiatPhoneField.d.ts.map +1 -1
  37. package/dist/src/fiat/FiatReceipt.d.ts.map +1 -1
  38. package/dist/src/fiat/FiatUnsupportedStep.d.ts +11 -0
  39. package/dist/src/fiat/FiatUnsupportedStep.d.ts.map +1 -0
  40. package/dist/src/fiat/SurfaceSlot.d.ts +3 -1
  41. package/dist/src/fiat/SurfaceSlot.d.ts.map +1 -1
  42. package/dist/src/fiat/closeFailure.d.ts +19 -0
  43. package/dist/src/fiat/closeFailure.d.ts.map +1 -0
  44. package/dist/src/fiat/depositOutcome.d.ts +18 -1
  45. package/dist/src/fiat/depositOutcome.d.ts.map +1 -1
  46. package/dist/src/fiat/kycFormTheme.d.ts +2 -28
  47. package/dist/src/fiat/kycFormTheme.d.ts.map +1 -1
  48. package/dist/src/fiat/otpScreenProps.d.ts.map +1 -1
  49. package/dist/src/fiat/paymentReroute.d.ts +30 -0
  50. package/dist/src/fiat/paymentReroute.d.ts.map +1 -0
  51. package/dist/src/fiat/paymentSurfaceFailure.d.ts +7 -7
  52. package/dist/src/fiat/paymentSurfaceFailure.d.ts.map +1 -1
  53. package/dist/src/fiat/providers/CoinbaseCheckoutSurface.d.ts.map +1 -1
  54. package/dist/src/fiat/providers/StripeSessionAuthScreen.d.ts.map +1 -1
  55. package/dist/src/fiat/providers/SumsubKycSurface.d.ts.map +1 -1
  56. package/dist/src/fiat/providers/TransakApplePaySurface.d.ts.map +1 -1
  57. package/dist/src/fiat/providers/adapter.d.ts +15 -5
  58. package/dist/src/fiat/providers/adapter.d.ts.map +1 -1
  59. package/dist/src/fiat/providers/applePayButtonMetrics.d.ts +1 -2
  60. package/dist/src/fiat/providers/applePayButtonMetrics.d.ts.map +1 -1
  61. package/dist/src/fiat/providers/coinbaseFailureCopy.d.ts +8 -2
  62. package/dist/src/fiat/providers/coinbaseFailureCopy.d.ts.map +1 -1
  63. package/dist/src/fiat/providers/kycIntro.d.ts +1 -1
  64. package/dist/src/fiat/providers/moonpay.d.ts.map +1 -1
  65. package/dist/src/fiat/providers/moonpayApplePayStyle.d.ts +5 -10
  66. package/dist/src/fiat/providers/moonpayApplePayStyle.d.ts.map +1 -1
  67. package/dist/src/fiat/providers/moonpayFailureCopy.d.ts +15 -0
  68. package/dist/src/fiat/providers/moonpayFailureCopy.d.ts.map +1 -0
  69. package/dist/src/fiat/providers/stripeCheckout.d.ts.map +1 -1
  70. package/dist/src/fiat/providers/stripeFailureCopy.d.ts +16 -0
  71. package/dist/src/fiat/providers/stripeFailureCopy.d.ts.map +1 -0
  72. package/dist/src/fiat/providers/stripePayment.d.ts.map +1 -1
  73. package/dist/src/fiat/providers/stripeRoundPush.d.ts +6 -0
  74. package/dist/src/fiat/providers/stripeRoundPush.d.ts.map +1 -1
  75. package/dist/src/fiat/providers/useStripeOnrampClient.d.ts.map +1 -1
  76. package/dist/src/fiat/providers/useWebViewTermination.d.ts +15 -0
  77. package/dist/src/fiat/providers/useWebViewTermination.d.ts.map +1 -0
  78. package/dist/src/flow/DepositFlowContent.d.ts +2 -2
  79. package/dist/src/flow/DepositFlowContent.d.ts.map +1 -1
  80. package/dist/src/flow/DepositReceivedToast.d.ts.map +1 -1
  81. package/dist/src/flow/FiatDepositAmountStep.d.ts +9 -3
  82. package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
  83. package/dist/src/flow/FlowSheet.d.ts.map +1 -1
  84. package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
  85. package/dist/src/flow/SheetMaterial.d.ts +5 -12
  86. package/dist/src/flow/SheetMaterial.d.ts.map +1 -1
  87. package/dist/src/flow/depositFlowConfig.d.ts +13 -6
  88. package/dist/src/flow/depositFlowConfig.d.ts.map +1 -1
  89. package/dist/src/flow/flowError.d.ts +3 -1
  90. package/dist/src/flow/flowError.d.ts.map +1 -1
  91. package/dist/src/flow/guardHostCallbacks.d.ts +8 -1
  92. package/dist/src/flow/guardHostCallbacks.d.ts.map +1 -1
  93. package/dist/src/flow/useDepositReceivedToast.d.ts +10 -1
  94. package/dist/src/flow/useDepositReceivedToast.d.ts.map +1 -1
  95. package/dist/src/flow/useKeyboardHeight.d.ts.map +1 -1
  96. package/dist/src/flow/validateClientMetadata.d.ts.map +1 -1
  97. package/dist/src/identity/IdentityContext.d.ts +8 -0
  98. package/dist/src/identity/IdentityContext.d.ts.map +1 -1
  99. package/dist/src/logging/datadogHttpLogTransport.d.ts +10 -3
  100. package/dist/src/logging/datadogHttpLogTransport.d.ts.map +1 -1
  101. package/dist/src/logging/logger.d.ts.map +1 -1
  102. package/dist/src/native/glassEffect.d.ts +19 -0
  103. package/dist/src/native/glassEffect.d.ts.map +1 -1
  104. package/dist/src/preview/flowPreview.d.ts +3 -0
  105. package/dist/src/preview/flowPreview.d.ts.map +1 -1
  106. package/dist/src/preview/scenarioCatalog.d.ts +6 -0
  107. package/dist/src/preview/scenarioCatalog.d.ts.map +1 -1
  108. package/dist/src/preview/scenarios.d.ts.map +1 -1
  109. package/dist/src/screens/FeeDetailsScreen.d.ts.map +1 -1
  110. package/dist/src/screens/depositMetrics.d.ts +2 -25
  111. package/dist/src/screens/depositMetrics.d.ts.map +1 -1
  112. package/dist/src/theme/buildFunkitTheme.d.ts +14 -0
  113. package/dist/src/theme/buildFunkitTheme.d.ts.map +1 -1
  114. package/dist/src/theme/inputTextStyle.d.ts +3 -2
  115. package/dist/src/theme/inputTextStyle.d.ts.map +1 -1
  116. package/dist/src/theme/restyle.d.ts +429 -0
  117. package/dist/src/theme/restyle.d.ts.map +1 -1
  118. package/dist/src/theme/textStyle.d.ts +1 -0
  119. package/dist/src/theme/textStyle.d.ts.map +1 -1
  120. package/dist/src/theme/toRestyleTheme.d.ts +39 -0
  121. package/dist/src/theme/toRestyleTheme.d.ts.map +1 -1
  122. package/dist/src/theme/typeScale.d.ts +98 -0
  123. package/dist/src/theme/typeScale.d.ts.map +1 -0
  124. package/ios/FrostedGlassView.swift +207 -0
  125. package/ios/FunkitGlassEffect.podspec +1 -1
  126. package/ios/FunkitGlassEffectModule.swift +42 -0
  127. package/package.json +7 -6
  128. package/dist/chunk-BC4RXFI7.js.map +0 -7
  129. package/dist/chunk-KDRCHYXB.js.map +0 -7
  130. package/dist/chunk-ZIT24GW5.js.map +0 -7
  131. package/dist/src/fiat/FiatGradientTitle.d.ts +0 -15
  132. package/dist/src/fiat/FiatGradientTitle.d.ts.map +0 -1
  133. /package/dist/{chunk-Z6IQFV5E.js.map → chunk-GCPIOARQ.js.map} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,62 @@
1
1
  # @funkit/connect-rn
2
2
 
3
+ ## 9.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 270929a: A failed Apple Pay payment now re-quotes on a provider the buyer has not tried yet, and a banner tells them the payment failed.
8
+ - 762d188: Alert each Coinbase payment failure with its own title and message instead of "Apple Pay is temporarily unavailable"
9
+ - cb9de15: The fiat amount screen can price through Fun's routing table, off by default behind a feature gate.
10
+ - 81315d7: Fiat flow text now follows one shared type scale, with roomier line spacing on the identity intro screen.
11
+ - bc61501: Match dark sheet frosting across iOS 26 and iOS 27 without amplifying background colors.
12
+ - 5c276ad: Call out "no ID needed" in the KYC consent title instead of its description.
13
+ - 66093d9: Logs which MoonPay payment disclosures a quote requires.
14
+ - 076327f: Name each MoonPay and Stripe payment failure by its cause, and only blame the connection when the page never loaded
15
+ - 737bfb6: Fix reopening the deposit sheet mid-close leaving an empty sheet over the app.
16
+ - 95f30c2: Close Stripe Apple Pay deposits as soon as the payment goes through, with a dismissible "on the way" toast.
17
+ - 77ac91a: Show a "deposit is processing" toast from the moment Stripe's Apple Pay sheet closes until the deposit goes through.
18
+ - Updated dependencies [cb9de15]
19
+ - @funkit/api-base@8.6.0
20
+ - @funkit/connect-core@8.6.0
21
+
22
+ ## 9.0.0
23
+
24
+ ### Major Changes
25
+
26
+ - fb2c49d: Match MoonPay's Apple Pay button size to the app's button style
27
+
28
+ **Breaking:** `react-native-webview` peer dependency raised to `>=13.15.0`, required by MoonPay's SDK. Apps on 13.0–13.14 must upgrade `react-native-webview` before updating.
29
+
30
+ ### Minor Changes
31
+
32
+ - b8682b9: `onPaymentMethodPress` receives the amount the user has entered, with its currency.
33
+ - fb5996c: Add `hideFiatDeposit` to `FunkitConfig` to hide the cash funding options on the Add money screen (React Native only)
34
+ - 4b2e9ba: Report a deposit that ends on a provider refusal as `provider_unavailable` instead of `cancelled`.
35
+
36
+ ### Patch Changes
37
+
38
+ - 59d1eec: Fix Continue doing nothing when Coinbase asks to re-verify the phone before Apple Pay.
39
+ - a0e75ad: The phone and email verification heading matches the design: 24pt at full text colour.
40
+ - 2f2a64c: Stripe initialization failures now log the Stripe error instead of "[object Object]"
41
+ - 7a9c5a8: Deposit sheet logs record each sheet movement, to help diagnose a resume that shows no sheet.
42
+ - 8be3920: Keep the deposit sheet translucent on iOS 27 instead of rendering it as a solid black panel
43
+ - 41ae7fc: Log an error whenever a fiat step shows "This step isn't available yet"
44
+ - ab6c8a8: Fail and log a fiat payment page whose web view crashed or never loaded.
45
+ - 9ffe53d: Stop repeating fiat log records on every re-render.
46
+ - 76eb22c: Fix the deposit sheet not reopening after it is closed.
47
+ - 7cd38f7: Keep a deposit's closing log records on its trace.
48
+ - b33e619: Keep diagnostic logs that failed to send or were buffered when the app went to the background.
49
+ - dee74e5: A deposit session replaced by another `begin*` no longer reports errors or close to the host after the replacement opens.
50
+ - 2d378e2: `unstable_routingOverrides` is now accepted by production backends, so a host can pin quotes to chosen providers when testing against prod.
51
+ - df13498: Say when a phone number is already on too many Link accounts, instead of asking the buyer to check their details.
52
+ - 0bbc429: Fix withdrawals crashing on web when native keyboard APIs are unavailable.
53
+ - Updated dependencies [fb5996c]
54
+ - Updated dependencies [9ffe53d]
55
+ - Updated dependencies [ea451cf]
56
+ - Updated dependencies [2d378e2]
57
+ - @funkit/connect-core@8.5.1
58
+ - @funkit/api-base@8.5.3
59
+
3
60
  ## 8.3.0
4
61
 
5
62
  ### Minor Changes
package/README.md CHANGED
@@ -228,18 +228,22 @@ view is.
228
228
  The V2 deposit sheet and the drawers over it (fee details, country list, KYC
229
229
  choosers) are drawn on glass: the design's Figma layer is a dark fill with a
230
230
  **Glass** effect, which is iOS 26's Liquid Glass. The SDK ships that material
231
- itself (`src/flow/SheetMaterial.tsx`): an `expo-blur` blur of the host app with
232
- the SDK's own Liquid Glass view refracting through it. The tint is the
233
- material's — every surface renders it as is, and none passes one in.
234
-
235
- The glass view is a native module this package carries under `ios/`
236
- (`FunkitGlassEffect`, forked from `expo-glass-effect` with iOS 26's
237
- container-concentric corners added, so the slab's corners match the device's).
238
- Expo autolinking picks it up from `expo-module.config.json`; a host rebuilds
239
- its binary once after upgrading. Where the pod isn't linked — Android, Expo Go,
240
- a binary built before the upgrade — `src/native/glassEffect.ts` reads the
241
- module as absent, the blur stands alone, and each surface paints its fill over
242
- it, as the blur path always has.
231
+ itself (`src/flow/SheetMaterial.tsx`): a blur of the host app with Liquid Glass
232
+ refracting through it, drawn by one native view, `FrostedGlassView`, so the
233
+ blur and the glass share a single corner. The tint is the material's — every
234
+ surface renders it as is, and none passes one in. The deposit-received toast
235
+ draws its card on the same view.
236
+
237
+ The view lives in a native module this package carries under `ios/`
238
+ (`FunkitGlassEffect`). It also exports `GlassView`, forked from
239
+ `expo-glass-effect` with iOS 26's container-concentric corners added, which the
240
+ SDK uses alone for controls floating over content. Expo autolinking picks the
241
+ module up from `expo-module.config.json`; a host rebuilds its binary once after
242
+ upgrading. Below iOS 26 `FrostedGlassView` draws the blur without glass. Where
243
+ the pod isn't linked — Android, Expo Go, a binary built before the upgrade —
244
+ `src/native/glassEffect.ts` reads the module as absent and the surfaces draw
245
+ an `expo-blur` blur instead. Wherever there is no glass, each surface paints
246
+ its fill over the blur.
243
247
 
244
248
  `expo` and `expo-blur` are peer dependencies for this. A host that wants a
245
249
  different native material still has `FunkitProvider`'s `renderBackdropBlur`,
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  useFunkitIdentity
3
- } from "./chunk-KDRCHYXB.js";
3
+ } from "./chunk-MMXSERQM.js";
4
4
  import {
5
5
  logger
6
- } from "./chunk-ZIT24GW5.js";
6
+ } from "./chunk-ZE77GVDW.js";
7
7
 
8
8
  // src/statsig/useDynamicConfig.ts
9
9
  import {
@@ -110,4 +110,4 @@ export {
110
110
  useIsStablecoin,
111
111
  useSourceTokenUsdPrice
112
112
  };
113
- //# sourceMappingURL=chunk-Z6IQFV5E.js.map
113
+ //# sourceMappingURL=chunk-GCPIOARQ.js.map