@funkit/connect-rn 6.1.0 → 6.2.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 (51) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +58 -0
  3. package/dist/{chunk-MKOPF7Y5.js → chunk-PLSQBNDE.js} +2 -2
  4. package/dist/{chunk-HMAJXI66.js → chunk-VIMRV7N2.js} +17 -9
  5. package/dist/chunk-VIMRV7N2.js.map +7 -0
  6. package/dist/clients/lighter.js +1 -1
  7. package/dist/clients/nado/useNadoWithdrawal.d.ts.map +1 -1
  8. package/dist/clients/nado.js +3 -3
  9. package/dist/clients/nado.js.map +2 -2
  10. package/dist/index.js +607 -535
  11. package/dist/index.js.map +4 -4
  12. package/dist/src/components/v2/QuickAmountsRow.d.ts.map +1 -1
  13. package/dist/src/fiat/FiatTermsNotice.d.ts +3 -1
  14. package/dist/src/fiat/FiatTermsNotice.d.ts.map +1 -1
  15. package/dist/src/fiat/KycGlassBackdrop.d.ts.map +1 -1
  16. package/dist/src/fiat/otpScreenProps.d.ts +5 -0
  17. package/dist/src/fiat/otpScreenProps.d.ts.map +1 -1
  18. package/dist/src/flow/DepositAmountStep.d.ts.map +1 -1
  19. package/dist/src/flow/Drawer.d.ts +3 -2
  20. package/dist/src/flow/Drawer.d.ts.map +1 -1
  21. package/dist/src/flow/FeeDetailsSheet.d.ts.map +1 -1
  22. package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
  23. package/dist/src/flow/FlowSheet.d.ts +10 -3
  24. package/dist/src/flow/FlowSheet.d.ts.map +1 -1
  25. package/dist/src/flow/FunkitFlowProvider.d.ts +3 -1
  26. package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
  27. package/dist/src/flow/withdrawalFlowConfig.d.ts +7 -1
  28. package/dist/src/flow/withdrawalFlowConfig.d.ts.map +1 -1
  29. package/dist/src/providers/FunkitProvider.d.ts +8 -1
  30. package/dist/src/providers/FunkitProvider.d.ts.map +1 -1
  31. package/dist/src/providers/NativeCapabilitiesContext.d.ts +8 -0
  32. package/dist/src/providers/NativeCapabilitiesContext.d.ts.map +1 -1
  33. package/dist/src/screens/DepositAmountScreen.d.ts.map +1 -1
  34. package/dist/src/screens/FeeDetailsScreen.d.ts +12 -3
  35. package/dist/src/screens/FeeDetailsScreen.d.ts.map +1 -1
  36. package/dist/src/screens/depositMetrics.d.ts +1 -6
  37. package/dist/src/screens/depositMetrics.d.ts.map +1 -1
  38. package/dist/src/transfer/hooks/useWithdrawalFops.d.ts.map +1 -1
  39. package/dist/src/withdrawal/useCryptoWithdrawalExecution.d.ts.map +1 -1
  40. package/dist/src/withdrawal/useCryptoWithdrawalForm.d.ts.map +1 -1
  41. package/dist/src/withdrawal/useCryptoWithdrawalValidation.d.ts.map +1 -1
  42. package/dist/src/withdrawal/useWithdrawalExecution.d.ts.map +1 -1
  43. package/dist/src/withdrawal/walletlessWithdrawal.d.ts +7 -0
  44. package/dist/src/withdrawal/walletlessWithdrawal.d.ts.map +1 -0
  45. package/package.json +4 -4
  46. package/dist/chunk-HMAJXI66.js.map +0 -7
  47. package/dist/src/hooks/useMinimumAmountValidation.d.ts +0 -21
  48. package/dist/src/hooks/useMinimumAmountValidation.d.ts.map +0 -1
  49. package/dist/src/hooks/useTrailingTrue.d.ts +0 -7
  50. package/dist/src/hooks/useTrailingTrue.d.ts.map +0 -1
  51. /package/dist/{chunk-MKOPF7Y5.js.map → chunk-PLSQBNDE.js.map} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @funkit/connect-rn
2
2
 
3
+ ## 6.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - a0062bc: Support iOS 26 Liquid Glass for the deposit sheets and drawers
8
+ - faaa214: `withdrawalWallet` is now optional on `WithdrawalFlowConfig`, so the withdrawal flow renders and quotes without a signer, and withholds cash payout methods.
9
+
10
+ ### Patch Changes
11
+
12
+ - f722b76: The Coinbase terms notice stays on every Coinbase-priced quote, not only where a tap accepts them.
13
+ - 61ba6c1: No functional changes to the published package
14
+ - 52e851d: Name the deposit floor on the keystroke instead of after a debounce, so a below-minimum amount no longer shows a stale "Deposit with Apple Pay" action for up to 800ms before the minimum state replaces it
15
+ - 3c28e93: Widen the deposit amount shortcuts to span the action area and left-align the payment mark with them, so the shortcuts, the payment mark and the submit button all share one left edge
16
+ - cf9d578: Restore the close button on the fee details drawer
17
+ - a0062bc: Align the deposit fee drawer with the design: glass rather than an opaque panel, tighter top spacing, a dimmed fee rate, and a "You'll get" total on fiat deposits
18
+ - cb6342b: Recover a provider-rendered fiat auth surface whose provider session died, by following the resend the round publishes instead of remounting the dead surface.
19
+ - Updated dependencies [cb6342b]
20
+ - @funkit/connect-core@8.1.1
21
+
3
22
  ## 6.1.0
4
23
 
5
24
  ### Minor Changes
package/README.md CHANGED
@@ -167,6 +167,64 @@ Two deliberate choices keep it that way:
167
167
  module that Expo Go doesn't bundle. If you genuinely need one, make it optional +
168
168
  lazily imported + guarded with a host-injectable override, the way clipboard is.
169
169
 
170
+ ## Sheet material (blur / Liquid Glass)
171
+
172
+ The V2 deposit sheet and the drawers over it (fee details, country list, KYC
173
+ choosers) are drawn on glass: the design's Figma layer is a dark fill with a
174
+ **Glass** effect, which is iOS 26's Liquid Glass. The SDK ships no material of
175
+ its own — every option is a native module — so the host supplies it through
176
+ `FunkitProvider`, the way it supplies the clipboard:
177
+
178
+ - **`renderBackdropBlur({ tint })`** returns the view drawn under each sheet's
179
+ surface. `tint` is the surface's own fill, alpha included.
180
+ - **`liquidGlass`** says that view *is* Liquid Glass. The sheet then hands the
181
+ material its fill and paints nothing over it — a fill laid over a refractive
182
+ material flattens it back to a panel. Leave it unset for a blur, and the fill
183
+ paints over the blur as before.
184
+
185
+ Without either the sheets are legible but flat: the host app shows through
186
+ sharp under a translucent fill.
187
+
188
+ Expo — [`expo-glass-effect`](https://docs.expo.dev/versions/latest/sdk/glass-effect/)
189
+ for the glass and [`expo-blur`](https://docs.expo.dev/versions/latest/sdk/blur-view/)
190
+ for the fallback:
191
+
192
+ ```tsx
193
+ import { BlurView } from 'expo-blur'
194
+ import { GlassView, isLiquidGlassAvailable } from 'expo-glass-effect'
195
+ import { StyleSheet } from 'react-native'
196
+
197
+ const liquidGlass = isLiquidGlassAvailable()
198
+
199
+ const renderBackdropBlur = ({ tint }: { tint: string }) =>
200
+ liquidGlass ? (
201
+ <GlassView
202
+ glassEffectStyle="regular" // the frosted cut the design draws
203
+ tintColor={tint}
204
+ colorScheme="dark" // the SDK carries its own theme
205
+ style={StyleSheet.absoluteFill}
206
+ />
207
+ ) : (
208
+ <BlurView tint="default" intensity={90} style={StyleSheet.absoluteFill} />
209
+ )
210
+
211
+ <FunkitProvider renderBackdropBlur={renderBackdropBlur} liquidGlass={liquidGlass} />
212
+ ```
213
+
214
+ Bare React Native — [`@callstack/liquid-glass`](https://github.com/callstack/liquid-glass)
215
+ (RN 0.80+, Xcode 26) and
216
+ [`@react-native-community/blur`](https://github.com/react-native-community/react-native-blur)
217
+ take the same shape. `LiquidGlassView` names the props `effect` / `tintColor` /
218
+ `colorScheme`, and `isLiquidGlassSupported` is a constant rather than a
219
+ function — it reads `false` on a binary built without the module, where
220
+ `isLiquidGlassAvailable()` throws.
221
+
222
+ Neither glass module is bundled in Expo Go, so a development build is needed.
223
+ Liquid Glass exists on iOS 26 only; Android and earlier iOS take the blur
224
+ branch, so always ship both. The
225
+ [`with-expo`](../../apps/with-expo/components/BackdropBlur.tsx) playground is a
226
+ working example of the Expo pair.
227
+
170
228
  ## Lighter withdrawals
171
229
 
172
230
  Lighter lives on its own entry, `@funkit/connect-rn/clients/lighter`, so a host
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  logger,
3
3
  useFunkitIdentity
4
- } from "./chunk-HMAJXI66.js";
4
+ } from "./chunk-VIMRV7N2.js";
5
5
 
6
6
  // src/statsig/useDynamicConfig.ts
7
7
  import {
@@ -92,4 +92,4 @@ export {
92
92
  useIsStablecoin,
93
93
  useSourceTokenUsdPrice
94
94
  };
95
- //# sourceMappingURL=chunk-MKOPF7Y5.js.map
95
+ //# sourceMappingURL=chunk-PLSQBNDE.js.map
@@ -271,7 +271,8 @@ var en_default = {
271
271
  summaryAddedToCharge: "{{method}} deposits incur a {{rate}} fee which will be added to your total charge.",
272
272
  summaryDeductedFromDeposit: "{{method}} deposits incur a {{rate}} fee which will be deducted from the amount you receive.",
273
273
  title: "Fee details",
274
- totalCost: "Total cost"
274
+ totalCost: "Total cost",
275
+ youllGet: "You\u2019ll get"
275
276
  },
276
277
  fiat: {
277
278
  agreeAndContinue: "Agree terms and Continue",
@@ -629,7 +630,8 @@ var es_default = {
629
630
  summaryAddedToCharge: "Los dep\xF3sitos con {{method}} conllevan una comisi\xF3n del {{rate}} que se sumar\xE1 al cargo total.",
630
631
  summaryDeductedFromDeposit: "Los dep\xF3sitos con {{method}} conllevan una comisi\xF3n del {{rate}} que se descontar\xE1 del importe que recibes.",
631
632
  title: "Detalles de la comisi\xF3n",
632
- totalCost: "Coste total"
633
+ totalCost: "Coste total",
634
+ youllGet: "Recibir\xE1s"
633
635
  },
634
636
  fiat: {
635
637
  agreeAndContinue: "Aceptar t\xE9rminos y continuar",
@@ -988,7 +990,8 @@ var fr_default = {
988
990
  summaryAddedToCharge: "Les d\xE9p\xF4ts via {{method}} entra\xEEnent des frais de {{rate}} qui s\u2019ajouteront au montant total d\xE9bit\xE9.",
989
991
  summaryDeductedFromDeposit: "Les d\xE9p\xF4ts via {{method}} entra\xEEnent des frais de {{rate}} qui seront d\xE9duits du montant que vous recevez.",
990
992
  title: "D\xE9tail des frais",
991
- totalCost: "Co\xFBt total"
993
+ totalCost: "Co\xFBt total",
994
+ youllGet: "Vous recevrez"
992
995
  },
993
996
  fiat: {
994
997
  agreeAndContinue: "Accepter les conditions et continuer",
@@ -1347,7 +1350,8 @@ var ja_default = {
1347
1350
  summaryAddedToCharge: "{{method}} \u3067\u306E\u5165\u91D1\u306B\u306F {{rate}} \u306E\u624B\u6570\u6599\u304C\u767A\u751F\u3057\u3001\u8ACB\u6C42\u7DCF\u984D\u306B\u52A0\u7B97\u3055\u308C\u307E\u3059\u3002",
1348
1351
  summaryDeductedFromDeposit: "{{method}} \u3067\u306E\u5165\u91D1\u306B\u306F {{rate}} \u306E\u624B\u6570\u6599\u304C\u767A\u751F\u3057\u3001\u53D7\u53D6\u984D\u304B\u3089\u5DEE\u3057\u5F15\u304B\u308C\u307E\u3059\u3002",
1349
1352
  title: "\u624B\u6570\u6599\u306E\u8A73\u7D30",
1350
- totalCost: "\u5408\u8A08\u91D1\u984D"
1353
+ totalCost: "\u5408\u8A08\u91D1\u984D",
1354
+ youllGet: "\u53D7\u53D6\u984D"
1351
1355
  },
1352
1356
  fiat: {
1353
1357
  agreeAndContinue: "\u898F\u7D04\u306B\u540C\u610F\u3057\u3066\u7D9A\u884C",
@@ -1704,7 +1708,8 @@ var ko_default = {
1704
1708
  summaryAddedToCharge: "{{method}} \uC785\uAE08\uC5D0\uB294 {{rate}} \uC218\uC218\uB8CC\uAC00 \uBC1C\uC0DD\uD558\uBA70, \uCD1D \uACB0\uC81C \uAE08\uC561\uC5D0 \uCD94\uAC00\uB429\uB2C8\uB2E4.",
1705
1709
  summaryDeductedFromDeposit: "{{method}} \uC785\uAE08\uC5D0\uB294 {{rate}} \uC218\uC218\uB8CC\uAC00 \uBC1C\uC0DD\uD558\uBA70, \uC218\uB839 \uAE08\uC561\uC5D0\uC11C \uCC28\uAC10\uB429\uB2C8\uB2E4.",
1706
1710
  title: "\uC218\uC218\uB8CC \uC138\uBD80 \uC815\uBCF4",
1707
- totalCost: "\uCD1D \uACB0\uC81C \uAE08\uC561"
1711
+ totalCost: "\uCD1D \uACB0\uC81C \uAE08\uC561",
1712
+ youllGet: "\uC218\uB839 \uAE08\uC561"
1708
1713
  },
1709
1714
  fiat: {
1710
1715
  agreeAndContinue: "\uC57D\uAD00\uC5D0 \uB3D9\uC758\uD558\uACE0 \uACC4\uC18D",
@@ -2061,7 +2066,8 @@ var ru_default = {
2061
2066
  summaryAddedToCharge: "\u041F\u043E\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u0447\u0435\u0440\u0435\u0437 {{method}} \u043E\u0431\u043B\u0430\u0433\u0430\u0435\u0442\u0441\u044F \u043A\u043E\u043C\u0438\u0441\u0441\u0438\u0435\u0439 {{rate}}, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0431\u0443\u0434\u0435\u0442 \u0434\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u0430 \u043A \u043E\u0431\u0449\u0435\u0439 \u0441\u0443\u043C\u043C\u0435 \u0441\u043F\u0438\u0441\u0430\u043D\u0438\u044F.",
2062
2067
  summaryDeductedFromDeposit: "\u041F\u043E\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u0447\u0435\u0440\u0435\u0437 {{method}} \u043E\u0431\u043B\u0430\u0433\u0430\u0435\u0442\u0441\u044F \u043A\u043E\u043C\u0438\u0441\u0441\u0438\u0435\u0439 {{rate}}, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0431\u0443\u0434\u0435\u0442 \u0432\u044B\u0447\u0442\u0435\u043D\u0430 \u0438\u0437 \u043F\u043E\u043B\u0443\u0447\u0430\u0435\u043C\u043E\u0439 \u0441\u0443\u043C\u043C\u044B.",
2063
2068
  title: "\u0414\u0435\u0442\u0430\u043B\u0438 \u043A\u043E\u043C\u0438\u0441\u0441\u0438\u0438",
2064
- totalCost: "\u0418\u0442\u043E\u0433\u043E \u043A \u043E\u043F\u043B\u0430\u0442\u0435"
2069
+ totalCost: "\u0418\u0442\u043E\u0433\u043E \u043A \u043E\u043F\u043B\u0430\u0442\u0435",
2070
+ youllGet: "\u0412\u044B \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u0435"
2065
2071
  },
2066
2072
  fiat: {
2067
2073
  agreeAndContinue: "\u041F\u0440\u0438\u043D\u044F\u0442\u044C \u0443\u0441\u043B\u043E\u0432\u0438\u044F \u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C",
@@ -2421,7 +2427,8 @@ var tr_default = {
2421
2427
  summaryAddedToCharge: "{{method}} ile para yat\u0131rma i\u015Flemlerinde {{rate}} \xFCcret al\u0131n\u0131r ve bu tutar toplam \xF6demenize eklenir.",
2422
2428
  summaryDeductedFromDeposit: "{{method}} ile para yat\u0131rma i\u015Flemlerinde {{rate}} \xFCcret al\u0131n\u0131r ve bu tutar alaca\u011F\u0131n\u0131z tutardan d\xFC\u015F\xFCl\xFCr.",
2423
2429
  title: "\xDCcret ayr\u0131nt\u0131lar\u0131",
2424
- totalCost: "Toplam tutar"
2430
+ totalCost: "Toplam tutar",
2431
+ youllGet: "Alaca\u011F\u0131n\u0131z tutar"
2425
2432
  },
2426
2433
  fiat: {
2427
2434
  agreeAndContinue: "Ko\u015Fullar\u0131 kabul et ve devam et",
@@ -2779,7 +2786,8 @@ var zh_default = {
2779
2786
  summaryAddedToCharge: "\u4F7F\u7528 {{method}} \u5145\u503C\u5C06\u6536\u53D6 {{rate}} \u624B\u7EED\u8D39\uFF0C\u8BE5\u8D39\u7528\u5C06\u8BA1\u5165\u60A8\u7684\u603B\u6263\u6B3E\u91D1\u989D\u3002",
2780
2787
  summaryDeductedFromDeposit: "\u4F7F\u7528 {{method}} \u5145\u503C\u5C06\u6536\u53D6 {{rate}} \u624B\u7EED\u8D39\uFF0C\u8BE5\u8D39\u7528\u5C06\u4ECE\u60A8\u6536\u5230\u7684\u91D1\u989D\u4E2D\u6263\u9664\u3002",
2781
2788
  title: "\u624B\u7EED\u8D39\u8BE6\u60C5",
2782
- totalCost: "\u603B\u8BA1"
2789
+ totalCost: "\u603B\u8BA1",
2790
+ youllGet: "\u5B9E\u9645\u5230\u8D26"
2783
2791
  },
2784
2792
  fiat: {
2785
2793
  agreeAndContinue: "\u540C\u610F\u6761\u6B3E\u5E76\u7EE7\u7EED",
@@ -3166,4 +3174,4 @@ export {
3166
3174
  FunkitI18nProvider,
3167
3175
  useFunkitTranslation
3168
3176
  };
3169
- //# sourceMappingURL=chunk-HMAJXI66.js.map
3177
+ //# sourceMappingURL=chunk-VIMRV7N2.js.map