@funkit/connect-rn 6.0.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.
- package/CHANGELOG.md +65 -0
- package/README.md +119 -0
- package/dist/{chunk-XTK6HGJL.js → chunk-PLSQBNDE.js} +2 -2
- package/dist/{chunk-4ELC2W4D.js → chunk-VIMRV7N2.js} +423 -39
- package/dist/chunk-VIMRV7N2.js.map +7 -0
- package/dist/clients/lighter.js +1 -1
- package/dist/clients/nado/useNadoWithdrawal.d.ts.map +1 -1
- package/dist/clients/nado.js +3 -3
- package/dist/clients/nado.js.map +2 -2
- package/dist/index.js +3009 -1938
- package/dist/index.js.map +4 -4
- package/dist/src/components/ScrollFade.d.ts +7 -1
- package/dist/src/components/ScrollFade.d.ts.map +1 -1
- package/dist/src/components/v2/QuickAmountsRow.d.ts.map +1 -1
- package/dist/src/fiat/FiatActionButton.d.ts.map +1 -1
- package/dist/src/fiat/FiatBirthDateField.d.ts +5 -1
- package/dist/src/fiat/FiatBirthDateField.d.ts.map +1 -1
- package/dist/src/fiat/FiatChoiceField.d.ts +1 -1
- package/dist/src/fiat/FiatChoiceField.d.ts.map +1 -1
- package/dist/src/fiat/FiatCountryIndexRail.d.ts +26 -0
- package/dist/src/fiat/FiatCountryIndexRail.d.ts.map +1 -0
- package/dist/src/fiat/FiatCountrySheet.d.ts +2 -2
- package/dist/src/fiat/FiatCountrySheet.d.ts.map +1 -1
- package/dist/src/fiat/FiatDocumentCaptureStep.d.ts.map +1 -1
- package/dist/src/fiat/FiatFormAdvance.d.ts +21 -6
- package/dist/src/fiat/FiatFormAdvance.d.ts.map +1 -1
- package/dist/src/fiat/FiatFormScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatKycFieldControl.d.ts +6 -1
- package/dist/src/fiat/FiatKycFieldControl.d.ts.map +1 -1
- package/dist/src/fiat/FiatKycIntroScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatKycOutcomeScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatTermsNotice.d.ts +3 -1
- package/dist/src/fiat/FiatTermsNotice.d.ts.map +1 -1
- package/dist/src/fiat/KycGlassBackdrop.d.ts.map +1 -1
- package/dist/src/fiat/countryListEntries.d.ts +63 -0
- package/dist/src/fiat/countryListEntries.d.ts.map +1 -0
- package/dist/src/fiat/kycFormState.d.ts.map +1 -1
- package/dist/src/fiat/kycFormTheme.d.ts +4 -0
- package/dist/src/fiat/kycFormTheme.d.ts.map +1 -1
- package/dist/src/fiat/nativeDatePicker.d.ts.map +1 -1
- package/dist/src/fiat/otpScreenProps.d.ts +5 -0
- package/dist/src/fiat/otpScreenProps.d.ts.map +1 -1
- package/dist/src/fiat/phoneDraft.d.ts.map +1 -1
- package/dist/src/fiat/providers/CoinbaseCheckoutSurface.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbaseFailureCopy.d.ts +14 -0
- package/dist/src/fiat/providers/coinbaseFailureCopy.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay.d.ts.map +1 -1
- package/dist/src/fiat/useContactEligibility.d.ts.map +1 -1
- package/dist/src/fiat/useFiatCheckoutPreparation.d.ts.map +1 -1
- package/dist/src/fiat/useKycCompletion.d.ts +13 -0
- package/dist/src/fiat/useKycCompletion.d.ts.map +1 -0
- package/dist/src/fiat/useOtpAutoSubmit.d.ts.map +1 -1
- package/dist/src/fiat/useOtpReceipt.d.ts.map +1 -1
- package/dist/src/flow/DepositAmountStep.d.ts +1 -2
- package/dist/src/flow/DepositAmountStep.d.ts.map +1 -1
- package/dist/src/flow/DepositFlowContent.d.ts.map +1 -1
- package/dist/src/flow/Drawer.d.ts +24 -0
- package/dist/src/flow/Drawer.d.ts.map +1 -0
- package/dist/src/flow/FeeDetailsSheet.d.ts.map +1 -1
- package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
- package/dist/src/flow/FlowSheet.d.ts +10 -17
- package/dist/src/flow/FlowSheet.d.ts.map +1 -1
- package/dist/src/flow/FunkitFlowProvider.d.ts +3 -1
- package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
- package/dist/src/flow/useV2DrawerMotion.d.ts +4 -0
- package/dist/src/flow/useV2DrawerMotion.d.ts.map +1 -0
- package/dist/src/flow/withdrawalFlowConfig.d.ts +7 -1
- package/dist/src/flow/withdrawalFlowConfig.d.ts.map +1 -1
- package/dist/src/hooks/useNestedSheet.d.ts.map +1 -1
- package/dist/src/icons/KycStatusIcon.d.ts +1 -1
- package/dist/src/icons/KycStatusIcon.d.ts.map +1 -1
- package/dist/src/providers/FunkitProvider.d.ts +8 -1
- package/dist/src/providers/FunkitProvider.d.ts.map +1 -1
- package/dist/src/providers/NativeCapabilitiesContext.d.ts +8 -0
- package/dist/src/providers/NativeCapabilitiesContext.d.ts.map +1 -1
- package/dist/src/screens/DepositAmountScreen.d.ts +1 -9
- package/dist/src/screens/DepositAmountScreen.d.ts.map +1 -1
- package/dist/src/screens/FeeDetailsScreen.d.ts +10 -2
- package/dist/src/screens/FeeDetailsScreen.d.ts.map +1 -1
- package/dist/src/screens/depositMetrics.d.ts +1 -0
- package/dist/src/screens/depositMetrics.d.ts.map +1 -1
- package/dist/src/swapped/SwappedWebView.d.ts.map +1 -1
- package/dist/src/theme/FunkitThemeProvider.d.ts.map +1 -1
- package/dist/src/theme/textStyle.d.ts +16 -0
- package/dist/src/theme/textStyle.d.ts.map +1 -0
- package/dist/src/theme/useFunkitTheme.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useSupportedTokens.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useWithdrawalFops.d.ts.map +1 -1
- package/dist/src/utils/motion.d.ts +11 -0
- package/dist/src/utils/motion.d.ts.map +1 -1
- package/dist/src/withdrawal/useCryptoWithdrawalExecution.d.ts.map +1 -1
- package/dist/src/withdrawal/useCryptoWithdrawalForm.d.ts.map +1 -1
- package/dist/src/withdrawal/useCryptoWithdrawalValidation.d.ts.map +1 -1
- package/dist/src/withdrawal/useWithdrawalExecution.d.ts.map +1 -1
- package/dist/src/withdrawal/walletlessWithdrawal.d.ts +7 -0
- package/dist/src/withdrawal/walletlessWithdrawal.d.ts.map +1 -0
- package/package.json +6 -6
- package/dist/chunk-4ELC2W4D.js.map +0 -7
- package/dist/src/hooks/useMinimumAmountValidation.d.ts +0 -17
- package/dist/src/hooks/useMinimumAmountValidation.d.ts.map +0 -1
- /package/dist/{chunk-XTK6HGJL.js.map → chunk-PLSQBNDE.js.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,70 @@
|
|
|
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
|
+
|
|
22
|
+
## 6.1.0
|
|
23
|
+
|
|
24
|
+
### Minor Changes
|
|
25
|
+
|
|
26
|
+
- da4b6fe: Add the resolved identity states to the deposit KYC banner.
|
|
27
|
+
|
|
28
|
+
### Patch Changes
|
|
29
|
+
|
|
30
|
+
- e78fc80: Align the deposit screen's payment mark with the quick-amount shortcuts
|
|
31
|
+
- c4083fa: Name the reason a card deposit was declined — bank decline, billing mismatch, region, or a deposit limit — in all supported languages.
|
|
32
|
+
- 507ffee: Say why a card payment was refused on the deposit screen, in funkit's own words, instead of leaving the buyer with a bare retry button.
|
|
33
|
+
- 2e5cb11: Explain a card deposit that fails while loading or settling, including whether the card was charged or will be refunded.
|
|
34
|
+
- f38b53b: The country list opens on the buyer's own country, pinned under its own heading, with an alphabet rail to drag through and no keyboard in the way
|
|
35
|
+
- a55adaa: Remove the brand glow from the V2 deposit surface.
|
|
36
|
+
- db448a0: No consumer-facing behavior changes.
|
|
37
|
+
- a55adaa: Draw the deposit sheet as the design's glass: an 85% black surface over the host blur, a 36pt head, a white hairline edge and a drop shadow.
|
|
38
|
+
- 460b3d2: Draw the date of birth page to its design: a sentence heading, a centred wheel, and a refusal that stands in the action's place.
|
|
39
|
+
- ea54719: Type the date of birth instead of leaving the field blank when the native date picker cannot load.
|
|
40
|
+
- bbc3beb: Acknowledge a completed identity form with its outcome screen instead of returning silently to the deposit amount.
|
|
41
|
+
- 75e3c91: Add the identity options card the deposit screen opens once KYC resolves.
|
|
42
|
+
- 812fa52: Wire the identity options card to deposit max, re-do verification and support.
|
|
43
|
+
- 9b10caf: Report a resolved identity check on the deposit screen instead of a full-screen outcome.
|
|
44
|
+
- 812fa52: Ask for identity verification on the deposit screen when the provider requires it before a first deposit.
|
|
45
|
+
- 27c1f56: The Apple Pay mark and the fee line on the deposit amount screen now sit on the same centre line.
|
|
46
|
+
- 278be57: The deposit floor's "Change to minimum" action now appears after the minimum notice rather than alongside it.
|
|
47
|
+
- d7b1afa: Make MoonPay authorization screens reachable with the upstream mobile SDK fix and document the required app crypto setup.
|
|
48
|
+
- 7d6d78d: fix(connect-rn): match V2 deposit drawer settling to the Stocks motion reference
|
|
49
|
+
- 24e7f8c: The OTP screen shows US phone numbers with a space after the area code.
|
|
50
|
+
- 89d472e: The fee details summary for card and Apple Pay deposits now says the fee is deducted from the deposit; crypto deposits with a configured fee keep the added-to-charge wording.
|
|
51
|
+
- eb518b7: The deposit amount screen's centred header no longer draws a back chevron.
|
|
52
|
+
- 3dc310a: fix(connect-rn): remove the fee drawer close button while retaining gesture dismissal
|
|
53
|
+
- 62569ec: Fixed the Swapped deposit and withdrawal embeds not scrolling on Android.
|
|
54
|
+
- 5babe4e: Tell buyers their ID check needs correcting when a provider asks for the form again, instead of showing the first-time verification prompt.
|
|
55
|
+
- 7d6d78d: fix(connect-rn): dismiss every V2 deposit drawer by the same gesture, grabber and backdrop
|
|
56
|
+
- Updated dependencies [3c85052]
|
|
57
|
+
- Updated dependencies [3c85052]
|
|
58
|
+
- Updated dependencies [cbfe8c1]
|
|
59
|
+
- Updated dependencies [db448a0]
|
|
60
|
+
- Updated dependencies [812fa52]
|
|
61
|
+
- Updated dependencies [9b10caf]
|
|
62
|
+
- Updated dependencies [84f1fcf]
|
|
63
|
+
- Updated dependencies [5babe4e]
|
|
64
|
+
- Updated dependencies [c2c7331]
|
|
65
|
+
- @funkit/connect-core@8.1.0
|
|
66
|
+
- @funkit/api-base@8.4.0
|
|
67
|
+
|
|
3
68
|
## 6.0.0
|
|
4
69
|
|
|
5
70
|
### Major Changes
|
package/README.md
CHANGED
|
@@ -39,6 +39,67 @@ log transports, identity context, and transfer hooks are **internal** (mirroring
|
|
|
39
39
|
`@funkit/connect`, which exports none of them). When adding a public export, wire
|
|
40
40
|
it explicitly in `index.ts`.
|
|
41
41
|
|
|
42
|
+
## MoonPay crypto setup
|
|
43
|
+
|
|
44
|
+
MoonPay requires a secure `globalThis.crypto.getRandomValues` implementation on
|
|
45
|
+
Hermes. Install it in your app entry **before importing `@funkit/connect-rn` or
|
|
46
|
+
loading your app**. The SDK supports either setup below; it does not install a
|
|
47
|
+
native crypto module for you. See the [MoonPay SDK README](https://www.npmjs.com/package/@moonpay/platform-sdk-react-native).
|
|
48
|
+
|
|
49
|
+
### Expo
|
|
50
|
+
|
|
51
|
+
Install the version compatible with your Expo SDK:
|
|
52
|
+
|
|
53
|
+
```sh
|
|
54
|
+
pnpm exec expo install expo-crypto
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Create `polyfills.ts`:
|
|
58
|
+
|
|
59
|
+
```ts
|
|
60
|
+
import { getRandomValues } from 'expo-crypto'
|
|
61
|
+
|
|
62
|
+
if (typeof globalThis.crypto?.getRandomValues !== 'function') {
|
|
63
|
+
const crypto = globalThis.crypto ?? ({} as Crypto)
|
|
64
|
+
Object.defineProperty(crypto, 'getRandomValues', {
|
|
65
|
+
value: getRandomValues,
|
|
66
|
+
configurable: true,
|
|
67
|
+
writable: true,
|
|
68
|
+
})
|
|
69
|
+
if (globalThis.crypto !== crypto) {
|
|
70
|
+
Object.defineProperty(globalThis, 'crypto', {
|
|
71
|
+
value: crypto,
|
|
72
|
+
configurable: true,
|
|
73
|
+
writable: true,
|
|
74
|
+
})
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
Load it first in your entry. For Expo Router, use `import './polyfills'` followed
|
|
80
|
+
by `import 'expo-router/entry'`. For a custom Expo entry:
|
|
81
|
+
|
|
82
|
+
```ts
|
|
83
|
+
import './polyfills'
|
|
84
|
+
import { registerRootComponent } from 'expo'
|
|
85
|
+
import App from './App'
|
|
86
|
+
|
|
87
|
+
registerRootComponent(App)
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
### Bare React Native
|
|
91
|
+
|
|
92
|
+
Install `react-native-get-random-values` with `pnpm add react-native-get-random-values`,
|
|
93
|
+
install iOS pods, and rebuild the native app. Make this the first import in your
|
|
94
|
+
entry, before importing your app:
|
|
95
|
+
|
|
96
|
+
```ts
|
|
97
|
+
import 'react-native-get-random-values'
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
MoonPay 1.17.0 includes the `about:srcdoc` WebView origin allowance. Consumers no
|
|
101
|
+
longer need a dependency patch for MoonPay's authorization frame.
|
|
102
|
+
|
|
42
103
|
## Peer dependencies
|
|
43
104
|
|
|
44
105
|
These are declared as **peer dependencies** (not bundled), so the host app links a
|
|
@@ -106,6 +167,64 @@ Two deliberate choices keep it that way:
|
|
|
106
167
|
module that Expo Go doesn't bundle. If you genuinely need one, make it optional +
|
|
107
168
|
lazily imported + guarded with a host-injectable override, the way clipboard is.
|
|
108
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
|
+
|
|
109
228
|
## Lighter withdrawals
|
|
110
229
|
|
|
111
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-
|
|
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-
|
|
95
|
+
//# sourceMappingURL=chunk-PLSQBNDE.js.map
|