@funkit/connect-rn 1.0.11 → 2.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 +353 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +19 -14
- package/dist/index.js.map +3 -3
- package/dist/src/providers/FunkitStatsigProvider.d.ts +7 -0
- package/dist/src/providers/FunkitStatsigProvider.d.ts.map +1 -1
- package/dist/src/screens/{AddMoneyScreen.d.ts → SelectMethodScreen.d.ts} +4 -4
- package/dist/src/screens/SelectMethodScreen.d.ts.map +1 -0
- package/package.json +11 -3
- package/dist/src/screens/AddMoneyScreen.d.ts.map +0 -1
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,353 @@
|
|
|
1
|
+
# @funkit/connect-rn
|
|
2
|
+
|
|
3
|
+
## 2.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- 640371e: Add an `exports` map (root entry only) and replace `export * from '@funkit/connect-core'` with the curated managed API plus the core types that appear in this package's public signatures (`CheckoutTokenTransferConfig`, `DynamicTargetAssetCandidate`).
|
|
8
|
+
|
|
9
|
+
Breaking: deep `dist/**` imports no longer resolve, and the RN entry no longer re-exports the whole `@funkit/connect-core`. Import core symbols from `@funkit/connect-core` directly.
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- b8a3f1e: Ship the full `dist` tree and `CHANGELOG.md` in the published tarball. `@funkit/connect-core` previously listed only `dist/index.js` in `files`, so any future code-split chunk (`dist/chunk-*.js`, emitted once a dynamic `import()` is added under `splitting: true`) would have been silently excluded from the package. Both packages now publish their changelog too.
|
|
14
|
+
- 89e29b3: Tag the Statsig user with `custom.sdkType` (`react-native` / `web`) so a config shared across SDKs can be scoped per-SDK via a per-customer targeting rule.
|
|
15
|
+
- a46364d: Rename the internal `AddMoneyScreen` to `SelectMethodScreen` ([2/8]) — it now backs both the deposit and withdrawal method lists, so the deposit-specific name no longer fits. Pure rename; no behavior or public-API change (`PaymentMethodOption` / `ReceiveTokenOption` keep their names).
|
|
16
|
+
- Updated dependencies [b2abbb5]
|
|
17
|
+
- Updated dependencies [b8a3f1e]
|
|
18
|
+
- Updated dependencies [4f0f4a0]
|
|
19
|
+
- @funkit/connect-core@2.0.0
|
|
20
|
+
|
|
21
|
+
## 1.0.11
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- d58690c: Remove dead vendored code: `StatsigProviderRN`, `useClientBootstrapInitRN`, and `ConsoleLogTransport`. These were unreferenced internally and never exported from the public barrel (Statsig RN bindings and logging transports are intentionally internal). The active Statsig path uses `useClientAsyncInitRN` + `StatsigClientRN`, and logging ships via `datadogHttpLogTransport`.
|
|
26
|
+
- d442c9b: Set a 60s staleTime on the internally-created fallback QueryClient to avoid refetching on every remount
|
|
27
|
+
- Updated dependencies [8ae9a55]
|
|
28
|
+
- @funkit/connect-core@1.7.1
|
|
29
|
+
|
|
30
|
+
## 1.0.10
|
|
31
|
+
|
|
32
|
+
### Patch Changes
|
|
33
|
+
|
|
34
|
+
- Updated dependencies [6ae84b0]
|
|
35
|
+
- Updated dependencies [a074ecf]
|
|
36
|
+
- @funkit/connect-core@1.7.0
|
|
37
|
+
|
|
38
|
+
## 1.0.9
|
|
39
|
+
|
|
40
|
+
### Patch Changes
|
|
41
|
+
|
|
42
|
+
- Updated dependencies [7636095]
|
|
43
|
+
- @funkit/connect-core@1.6.2
|
|
44
|
+
|
|
45
|
+
## 1.0.8
|
|
46
|
+
|
|
47
|
+
### Patch Changes
|
|
48
|
+
|
|
49
|
+
- Updated dependencies [cac2d42]
|
|
50
|
+
- Updated dependencies [4b8c04b]
|
|
51
|
+
- Updated dependencies [79c92ec]
|
|
52
|
+
- Updated dependencies [16cc96f]
|
|
53
|
+
- Updated dependencies [4c446f9]
|
|
54
|
+
- Updated dependencies [d27111c]
|
|
55
|
+
- @funkit/connect-core@1.6.1
|
|
56
|
+
- @funkit/chains@2.1.3
|
|
57
|
+
- @funkit/api-base@6.0.0
|
|
58
|
+
|
|
59
|
+
## 1.0.7
|
|
60
|
+
|
|
61
|
+
### Patch Changes
|
|
62
|
+
|
|
63
|
+
- Updated dependencies [ec71a28]
|
|
64
|
+
- Updated dependencies [2d5650d]
|
|
65
|
+
- @funkit/chains@2.1.2
|
|
66
|
+
- @funkit/connect-core@1.6.0
|
|
67
|
+
|
|
68
|
+
## 1.0.6
|
|
69
|
+
|
|
70
|
+
### Patch Changes
|
|
71
|
+
|
|
72
|
+
- 99812aa: feat(withdrawal): resolve token addresses from config, drop the per-symbol API lookup
|
|
73
|
+
|
|
74
|
+
The withdrawal screen no longer resolves token addresses with a `getAssetErc20ByChainAndSymbol` round-trip; the addresses already live in config.
|
|
75
|
+
|
|
76
|
+
- `@funkit/connect-core`: `resolveTokenTransferConfig` adds `addressBySymbolByChainId` (`chainId → symbol/alias → original-case address`), preserving casing (checksummed EVM, base58 Solana/Tron).
|
|
77
|
+
- `@funkit/connect`: `WithdrawalContent` reads the destination address from that map and the Lighter Secure source address from a hardcoded map in `LighterWithdrawal.tsx`, pricing both via `useAssetAddressPrice`. Removes all `useAssetSymbolPrice` usage from the withdrawal flow (hooks left for a follow-up cleanup).
|
|
78
|
+
- `@funkit/connect-rn`: test-only fixture update.
|
|
79
|
+
|
|
80
|
+
- Updated dependencies [a395c4c]
|
|
81
|
+
- Updated dependencies [c3d2458]
|
|
82
|
+
- Updated dependencies [ce05191]
|
|
83
|
+
- Updated dependencies [b8a7aaa]
|
|
84
|
+
- Updated dependencies [202c15b]
|
|
85
|
+
- Updated dependencies [99812aa]
|
|
86
|
+
- @funkit/api-base@5.2.0
|
|
87
|
+
- @funkit/connect-core@1.5.0
|
|
88
|
+
|
|
89
|
+
## 1.0.5
|
|
90
|
+
|
|
91
|
+
### Patch Changes
|
|
92
|
+
|
|
93
|
+
- Updated dependencies [394a46c]
|
|
94
|
+
- @funkit/api-base@5.1.0
|
|
95
|
+
- @funkit/connect-core@1.4.1
|
|
96
|
+
|
|
97
|
+
## 1.0.4
|
|
98
|
+
|
|
99
|
+
### Patch Changes
|
|
100
|
+
|
|
101
|
+
- Updated dependencies [86d2a31]
|
|
102
|
+
- Updated dependencies [b8c578e]
|
|
103
|
+
- @funkit/connect-core@1.4.0
|
|
104
|
+
|
|
105
|
+
## 1.0.3
|
|
106
|
+
|
|
107
|
+
### Patch Changes
|
|
108
|
+
|
|
109
|
+
- ae17d2a: fix(connect-rn): move "Address copied" toast 80px from top of screen
|
|
110
|
+
- bb08629: docs: rewrite the `@funkit/connect-rn` README as a developer guide (architecture, peer dependencies, Expo Go compatibility, local build/test workflow) and repoint the in-code doc comments (`connect-rn`/`connect-core` `index.ts`, `LogTransport`) from the retired `docs/connect-rn-architecture.md` design doc to it. Client/integration usage of the SDK is maintained in Notion. Comment/doc only — no API or behavior changes.
|
|
111
|
+
- Updated dependencies [fc74160]
|
|
112
|
+
- Updated dependencies [bb08629]
|
|
113
|
+
- Updated dependencies [639d776]
|
|
114
|
+
- Updated dependencies [23ec218]
|
|
115
|
+
- Updated dependencies [09452ce]
|
|
116
|
+
- Updated dependencies [cd57fba]
|
|
117
|
+
- @funkit/api-base@5.0.0
|
|
118
|
+
- @funkit/connect-core@1.3.0
|
|
119
|
+
|
|
120
|
+
## 1.0.2
|
|
121
|
+
|
|
122
|
+
### Patch Changes
|
|
123
|
+
|
|
124
|
+
- Updated dependencies [f64e821]
|
|
125
|
+
- @funkit/connect-core@1.2.0
|
|
126
|
+
|
|
127
|
+
## 1.0.1
|
|
128
|
+
|
|
129
|
+
### Patch Changes
|
|
130
|
+
|
|
131
|
+
- e98d6c6: fix(connect-rn): uniform 6px spacing between deposit address card elements
|
|
132
|
+
- Updated dependencies [5d5d4f5]
|
|
133
|
+
- @funkit/connect-core@1.1.1
|
|
134
|
+
|
|
135
|
+
## 1.0.0
|
|
136
|
+
|
|
137
|
+
### Major Changes
|
|
138
|
+
|
|
139
|
+
- 304fbdd: Derive Add money payment methods + crypto source icons internally; rename `DepositFlowConfig.selectedChainId` to `sourceChain` (string).
|
|
140
|
+
|
|
141
|
+
### Minor Changes
|
|
142
|
+
|
|
143
|
+
- cb5d3c4: Render the managed deposit flow in a `@gorhom/bottom-sheet`, sized to its content. `@gorhom/bottom-sheet`, `react-native-gesture-handler`, and `react-native-reanimated` are now **required** peer deps, and the app root must be wrapped in `<GestureHandlerRootView>`.
|
|
144
|
+
- 80f3acd: Add geoblocked checkout screen to the deposit flow
|
|
145
|
+
- 219a880: Add the `ChooseChainScreen` (Figma: Fun Mobile / Transfer Crypto chain list) — shown when the user taps "Change" on the Transfer screen. A themed bottom-sheet surface with back + centered title + a list of chains (EVM Chains, Solana, Tron, Bitcoin, …). Data-driven via `chains: ChainOption[]` + `onSelectChain`; chain icons are host-supplied (`icon`), keeping the package `react-native-svg`-free. Exported as public API. Navigation (Change → this screen → back with the chosen chain) is wired by the host via the existing `onChangeNetwork` / `onSelectChain` callbacks.
|
|
146
|
+
- ea84a30: Default the connect-rn theme to the **system** UI font (SF on iOS, Roboto on Android) instead of Inter, so the package renders correctly with no font assets registered by the host. connect-rn is now fully font-agnostic — it ships no typeface and no font preset; hosts that want a custom font (e.g. Inter) define their own `fonts` tokens and register the matching files.
|
|
147
|
+
|
|
148
|
+
BREAKING: the `FUNKIT_REQUIRED_FONTS` export is removed — connect-rn no longer requires any host-registered fonts by default. Migration: to keep rendering in Inter, define your own font tokens in the host app and build your theme with them:
|
|
149
|
+
|
|
150
|
+
```ts
|
|
151
|
+
import {
|
|
152
|
+
type FunkitFontTokens,
|
|
153
|
+
fontFamilyForWeight,
|
|
154
|
+
lightTokens,
|
|
155
|
+
toRestyleTheme,
|
|
156
|
+
} from "@funkit/connect-rn";
|
|
157
|
+
|
|
158
|
+
const interFonts: FunkitFontTokens = {
|
|
159
|
+
family: "Inter",
|
|
160
|
+
weights: {
|
|
161
|
+
base: { familySuffix: "Regular", cssWeight: "400" },
|
|
162
|
+
medium: { familySuffix: "Medium", cssWeight: "500" },
|
|
163
|
+
},
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
const theme = toRestyleTheme({ ...lightTokens, fonts: interFonts });
|
|
167
|
+
// register assets under fontFamilyForWeight(interFonts, 'base'|'medium')
|
|
168
|
+
// ('Inter-Regular' / 'Inter-Medium') — the replacement for FUNKIT_REQUIRED_FONTS
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
- 827fece: Add fluid animations across the deposit flow (bottom-sheet resize, deposit-to dropdown, and network selector) plus an animated address-copied toast exposed as the new `AddressCopiedToast` component.
|
|
172
|
+
- 8ea4b32: Wire the transfer screens into a managed flow behind a web-SDK-style API. `useFunkitCheckout()` now returns `beginDeposit(config)` (mirroring `@funkit/connect`'s `useFunkitCheckout`/`beginCheckout`): it opens the SDK's own bottom-sheet modal and runs the flow — Add money → Transfer/UDA → Choose chain / Supported tokens / QR — so host apps render no screens themselves. The five screens, the Statsig RN bindings, logging, identity context, and transfer hooks are all internal now; the public surface is `FunkitProvider` + `useFunkitCheckout` (+ the `DepositFlowConfig` item shapes). For this release the host supplies the flow's data via `DepositFlowConfig`; sourcing it internally (api-base / chains / Statsig / `useTransferInit`) and CDN icons are follow-ups (see TODOs).
|
|
173
|
+
- 2e663b9: Render Inter correctly by selecting weights through per-cut font families (`FUNKIT_REQUIRED_FONTS` is now `{ base: 'Inter-Regular', medium: 'Inter-Medium' }` — register each name) and align body text line heights with Figma.
|
|
174
|
+
- 219a880: Add the `QrCodeScreen` (Figma: Fun Mobile / qr-code-modal) — the full-screen deposit QR view reached from the Transfer screen's QR button. A themed surface with a close action, the framed QR code, a "Scan to deposit … / use it only for supported chains" caption (with an optional tappable link), and a share button. The scannable QR is host-supplied via the `qrCode` slot (e.g. `react-native-qrcode-svg`), so the package stays `react-native-svg`-free. Exported as public API.
|
|
175
|
+
- 649a519: Add the `SupportedTokensScreen` (Figma: Fun Mobile / Supported tokens) — shown from the Transfer screen's chain-name / info affordance. Back + title, a search field, horizontally-scrolling chain filter chips (All / Ethereum / BSC / …), and the token list (icon + symbol + chain). Controlled/presentational: the search value, selected chip, and the (host-filtered) `tokens` list come from props; token icons are host-supplied, keeping the package `react-native-svg`-free. The search input's colors follow the active theme via Restyle's `useTheme`. Exported as public API.
|
|
176
|
+
- 827fece: Refine the deposit flow screens and add an optional `overflowMode` to `SourceTokenCluster` and `initialDropdownOpen` to `AddMoneyScreen`.
|
|
177
|
+
- dd362c9: Redesign the deposit-flow screens (Add money, Transfer Crypto, QR code) and add an "Available chains" screen — the selected network's chains with per-chain minimum-deposit amounts (from `mintokentransfervalue`, mirroring web). Wire copy/share (clipboard via `expo-clipboard`, falling back to `@react-native-clipboard/clipboard`) and add an on-device Storybook harness. Pin react to 19.2.3 to match the RN 0.85 renderer.
|
|
178
|
+
|
|
179
|
+
The Transfer-screen network switcher is now derived internally from the curated chain list (`tokentransferconfig`) instead of being host-configured: the `depositChains` field was removed from `DepositFlowConfig`. Every EVM chain collapses into one "EVM Chains" segment and each non-EVM chain (Solana / Tron / Bitcoin) is its own segment; `selectedChainId` still picks the initially-selected network.
|
|
180
|
+
|
|
181
|
+
### Patch Changes
|
|
182
|
+
|
|
183
|
+
- 15d1159: Fix a gray rectangular border around the deposit-address card on Android. The card had an `elevation` shadow but no opaque background, so Android couldn't clip the shadow to the card's rounded corners. Giving it a `bgModal` background clips the elevation shadow correctly.
|
|
184
|
+
- 57e49a8: Align the modal close buttons across the Transfer, QR, and Available chains screens (24px inset, 56px touch target).
|
|
185
|
+
- f288caf: Paint the deposit-flow bottom sheet's surface (matching each screen's `bgModal` + rounded top) and extend it below the content so dragging the sheet above its content height reveals more surface instead of the backdrop — the elastic over-drag no longer exposes the sheet's bottom edge.
|
|
186
|
+
- 827fece: Center each chain logo within its circular ring in `SourceTokenCluster` and `AvailableChainsScreen` so the icon border no longer offsets the logo by 1px.
|
|
187
|
+
- be6e6cf: Add a `copyToClipboard` override on FunkitProvider so hosts can supply their own clipboard (e.g. expo-clipboard in Expo Go); the default still lazily loads @react-native-clipboard/clipboard
|
|
188
|
+
- a9f9769: Hold the Add money loading state until the geo-eligibility check and the deposit-address/QR generation both resolve, so the deposit UI no longer flashes before a blocked user is routed away or before the address is ready.
|
|
189
|
+
- f4a74f1: Fix off-center chain logos with a visible gray ring in the Transfer Crypto network selector. The logos were wrapped in a bordered box the same size as the icon, whose 1px inset shrank and offset the logo and exposed the border as a ring. `FunIcon` already clips each logo to a centered circle, so the wrapping rings are removed and the logos render full-bleed, matching Figma.
|
|
190
|
+
- ea4b6af: Match the source-token overflow chips to Figma: a centered "+" icon on the Add money row and a circular "+N" count chip on Transfer (previously a mis-centered text "+" in an oval).
|
|
191
|
+
- 9fc8470: Show the full deposit address with a Copy button below the QR on the QR-code screen
|
|
192
|
+
- 4a0aff8: Add a white quiet-zone backing behind the QR chain-logo cluster so the QR no longer bleeds through
|
|
193
|
+
- 827fece: Render the deposit QR with a fixed dark color so it stays scannable (dark-on-light) in dark mode.
|
|
194
|
+
- beb3c84: Add the shared `useSwappedDefaultCurrencyQuery` hook to `@funkit/connect-core` and use it in `@funkit/connect-rn` to resolve the Swapped deposit flow's default fiat currency from the user's region instead of hardcoding USD.
|
|
195
|
+
- 40b8f2d: Show the minimum deposit on the Transfer screen for single-chain networks (Solana / Tron / Bitcoin) instead of a non-navigable chain-logo chevron.
|
|
196
|
+
- af9e919: Open the keyboard automatically in the Swapped deposit flow and slide the bottom sheet above it instead of shrinking.
|
|
197
|
+
- d5f375e: Fix copy-address toast blocking all sheet button taps for ~2s — replace the native `<Modal>` (which captures all touches even when transparent) with an absolutely-positioned `View` rendered above the gorhom sheet via sibling z-ordering.
|
|
198
|
+
- 7eefd13: Show a back arrow (not a close X) on the Transfer Crypto screen's leading button, since it returns to the Add money screen.
|
|
199
|
+
- 3fb075a: feat(connect-rn): update styles for transfer crypto, add money and qr code screens to match figma designs
|
|
200
|
+
- 55c21d3: fix(connect-rn): expand swapped theme variables to fix continue button text color
|
|
201
|
+
- Updated dependencies [827fece]
|
|
202
|
+
- Updated dependencies [beb3c84]
|
|
203
|
+
- Updated dependencies [79f4b01]
|
|
204
|
+
- Updated dependencies [79f4b01]
|
|
205
|
+
- Updated dependencies [79f4b01]
|
|
206
|
+
- Updated dependencies [c90915d]
|
|
207
|
+
- Updated dependencies [389a29d]
|
|
208
|
+
- Updated dependencies [32d1cc6]
|
|
209
|
+
- @funkit/connect-core@1.1.0
|
|
210
|
+
- @funkit/chains@2.1.1
|
|
211
|
+
|
|
212
|
+
## 0.2.0-next.0
|
|
213
|
+
|
|
214
|
+
### Minor Changes
|
|
215
|
+
|
|
216
|
+
- 67ce912: Show real, fetched payment methods on the Add money screen, replacing the
|
|
217
|
+
hardcoded list. When Swapped is enabled (`enableswappeddeposit`), the screen
|
|
218
|
+
renders a single flat list (no Crypto/Cash tabs — mobile has no such design):
|
|
219
|
+
the user's saved forms of payment on top, then the **Crypto** (Transfer Crypto)
|
|
220
|
+
row, then the generic Swapped FOPs (Card / Apple Pay / Revolut Pay / Bank
|
|
221
|
+
Transfer), matching the Figma order. FOP rows come from `useFops` via the pure
|
|
222
|
+
`toFopRows` (CDN icon + `"<limit> limit"` subtitle, with `" · 1-2 days"` for
|
|
223
|
+
bank transfers). When Swapped is off, the screen keeps the host's configured
|
|
224
|
+
methods.
|
|
225
|
+
|
|
226
|
+
Selecting a FOP is a no-op stub pending the Swapped WebView (handed off there
|
|
227
|
+
once it lands). Connect Exchange (Bluvo) and virtual-bank/SEPA are out of this
|
|
228
|
+
V1.
|
|
229
|
+
|
|
230
|
+
- b0526d6: Add the `AddMoneyScreen` funding-source picker (Figma: Fun Mobile / Add money) — the payment-method selection step that precedes the Transfer/UDA screen. A themed bottom-sheet surface (grabber + centered title + scrollable list of methods) built from the connect-rn Restyle primitives, so it tracks the active light/dark scheme. Data-driven via `methods: PaymentMethodOption[]` + `onSelectMethod`; brand icons are host-supplied (`icon` / `trailing`), keeping the package asset- and `react-native-svg`-free. Exported as part of the public API (screens are the consumer surface).
|
|
231
|
+
- fa32433: Reflect the selected chain on the Transfer screen. Picking a different chain on the choose-chain screen now updates the network **label**, the network **icon**, and the generated **deposit address + QR** on the Transfer screen — previously they stayed fixed on the initial (EVM) chain. The flow tracks the selected `ChainOption` and derives the label/icon from it (falling back to the config defaults), and the selected chain's `chainId` drives which generated address + QR type is shown. The `with-expo` demo now sets `chainId` on every chain (EVM/Solana/Tron/Bitcoin) so switching actually changes the address.
|
|
232
|
+
- 169af7e: Add the `ChooseChainScreen` (Figma: Fun Mobile / Transfer Crypto chain list) — shown when the user taps "Change" on the Transfer screen. A themed bottom-sheet surface with back + centered title + a list of chains (EVM Chains, Solana, Tron, Bitcoin, …). Data-driven via `chains: ChainOption[]` + `onSelectChain`; chain icons are host-supplied (`icon`), keeping the package `react-native-svg`-free. Exported as public API. Navigation (Change → this screen → back with the chosen chain) is wired by the host via the existing `onChangeNetwork` / `onSelectChain` callbacks.
|
|
233
|
+
- 95fe691: Make the Transfer screen's copy and share buttons actually work. The buttons showed a "Copied!" confirmation but never wrote to the clipboard, because the managed flow didn't pass `onCopyAddress`/`onShareAddress`. The flow now copies the **full** deposit address (the screen only shows it truncated) via `@react-native-clipboard/clipboard` and shares it via React Native's built-in `Share`. Adds `@react-native-clipboard/clipboard >=1.13.0` as a peer dependency.
|
|
234
|
+
|
|
235
|
+
The clipboard peer is loaded **lazily and guarded**: a host that hasn't linked the native module (an un-rebuilt dev client, Expo Go, or a consumer that didn't install the peer) degrades to a no-op + warning instead of crashing at startup with the `'RNCClipboard' could not be found` TurboModule invariant.
|
|
236
|
+
|
|
237
|
+
- c21ded0: Fix Datadog logging never reaching the transport. The `FunLogger` queues every record until `logger.configure(...)` is called, and connect-rn never called it — so nothing was ever shipped to Datadog. `FunkitProvider` now configures the logger with the `config.apiKey` + debug flag (mirroring the web SDK) and sets user context, so queued logs flush and records emit to the Datadog HTTP transport in production. The SDK version is inlined at build time (`src/version.ts`) and sent as the log `sdkVersion`.
|
|
238
|
+
|
|
239
|
+
Also changes the default Datadog `service` tag from `connect-rn-sdk` to `connect-rn`.
|
|
240
|
+
|
|
241
|
+
- 57d7a5c: Generate the deposit address and QR code inside the managed deposit flow. Given a `checkoutConfig` (target chain + asset) on the flow config and identity on `<FunkitProvider>`, the flow now resolves the Universal Deposit Address and EIP-681 QR URI via the transfer hooks and renders the QR with `react-native-qrcode-svg` — no longer host-supplied.
|
|
242
|
+
|
|
243
|
+
- `<FunkitProvider>` gains `config` (`{ apiKey, externalUserId? }`, mirroring the identity-relevant subset of the web SDK's `funkitConfig`), `walletAddress` (the connected address — web reads this from wagmi; RN has no wallet provider so the host passes it), and an optional `queryClient` (defaults to an internal one). It now mounts `QueryClientProvider` + the identity context internally, so transfer queries run under a single provider. `userId` is resolved web-style (`apiKey|externalUserId`, else the wallet address).
|
|
244
|
+
- `DepositFlowConfig`: adds `checkoutConfig`, `selectedChainId`, and `dynamicRoutingId`; `depositAddress` and `qrCode` become optional host overrides/fallbacks (shown while generation loads or when no identity is configured). The displayed address is truncated by the flow.
|
|
245
|
+
- `ChainOption` gains `chainId` — picking a chain on the choose-chain screen now updates the active chain so the generated address + QR match the selected network.
|
|
246
|
+
- Adds `react-native-qrcode-svg >=6.3.0` as a peer dependency (renders via the `react-native-svg` peer already added for CDN icons).
|
|
247
|
+
|
|
248
|
+
- 399eede: Wire the transfer screens into a managed flow behind a web-SDK-style API. `useFunkitCheckout()` now returns `beginDeposit(config)` (mirroring `@funkit/connect`'s `useFunkitCheckout`/`beginCheckout`): it opens the SDK's own bottom-sheet modal and runs the flow — Add money → Transfer/UDA → Choose chain / Supported tokens / QR — so host apps render no screens themselves. The five screens, the Statsig RN bindings, logging, identity context, and transfer hooks are all internal now; the public surface is `FunkitProvider` + `useFunkitCheckout` (+ the `DepositFlowConfig` item shapes). For this release the host supplies the flow's data via `DepositFlowConfig`; sourcing it internally (api-base / chains / Statsig / `useTransferInit`) and CDN icons are follow-ups (see TODOs).
|
|
249
|
+
- 0cdbc22: Add `useFops` + `toFopRows` for fetching Swapped forms of payment (Card / Apple
|
|
250
|
+
Pay / Google Pay / Bank Transfer) — a thin RN port of web's `useFops` (`getFops`).
|
|
251
|
+
Identity comes from `useFunkitIdentity`; the deposit recipient is derived from
|
|
252
|
+
`useTransferInit` + the core `getDepositAddressForChain`. `toFopRows` is the pure
|
|
253
|
+
mapping to display rows (label + CDN icon + `"<limit> limit • <time>"` subtitle,
|
|
254
|
+
coming-soon FOPs disabled).
|
|
255
|
+
|
|
256
|
+
Adaptations vs. web: **no geo-fencing** — the country code and `useFunkitUserIp`
|
|
257
|
+
gating are dropped (`countryCode` is optional on `GetFopsParams`), so FOPs are
|
|
258
|
+
fetched regardless of region. The Swapped theme query params, EUR min-amount,
|
|
259
|
+
saved-currency lookup, and exchange-rate-based limits are deferred (limits fall
|
|
260
|
+
back to the default). These are internal — wired into the Add money cash tab in a
|
|
261
|
+
follow-up.
|
|
262
|
+
|
|
263
|
+
- b86fed9: Resolve the user's real country for the Swapped cash methods. Adds `useUserIpInfo`
|
|
264
|
+
— a React Native port of web's hook that resolves the user's country (ISO
|
|
265
|
+
alpha-2) + region from their IP via Moonpay's IP endpoint (primary) with an
|
|
266
|
+
ipapi.co fallback (plain `fetch`, no native modules). `useFops` now sends this
|
|
267
|
+
real country to `/fops` instead of the hardcoded default, so Swapped lists the
|
|
268
|
+
correct region's payment methods; the default is kept only as a fallback while
|
|
269
|
+
the lookup is in flight or if it fails. Geo-lookup failures log at WARN (the
|
|
270
|
+
flow degrades gracefully).
|
|
271
|
+
|
|
272
|
+
Per-region geoblocking (comparing the country against the `blockedcountries`
|
|
273
|
+
Statsig config and disabling methods for blocked regions, like web's
|
|
274
|
+
`isUserGeoblocked`) is the remaining follow-up.
|
|
275
|
+
|
|
276
|
+
- b40be1c: Fix chain logos that were missing or mis-positioned (e.g. Tron invisible, Solana/Bitcoin squashed into a corner). `FunIcon` previously injected a fixed `viewBox="0 0 28 28"` onto every CDN SVG, which clobbered the viewBox that some logos already ship (Solana 16×16, Tron `138.8 49.5 522 500.2`) — pushing their artwork off-screen or into a corner. `FunIcon` now fetches each SVG and **synthesizes a viewBox only when one is missing** (derived from its width/height), never overriding an existing one, then renders via `SvgXml`. Results are cached per URL.
|
|
277
|
+
- 108b301: Add the React Native identity context and thin token-transfer hooks. `FunkitIdentity` (`{ apiKey, userId, walletAddress, loginType }`) is supplied by the host via `FunkitIdentityProvider`/`useFunkitIdentity` (RN has no wagmi). `useTransferInit` composes the core `getCheckoutTokenTransferParams` helper with `@funkit/api-base`'s `initializeCheckoutTokenTransferAddress` in a `useQuery`; `useUDAParams` resolves UDA config from the `uda_params` dynamic config; `useTokenTransfer` derives the deposit address, QR URI, and min-transfer value (default slippage). All web/customer branches (Lighter main account, Polymarket target override, geo/post-action gating, per-customer slippage matrix, i18n, fiat) are intentionally dropped. Adds `@tanstack/react-query` (`>=5`) as a peer dependency. These are internal (not part of the public API), to be wired through `FunkitProvider` once the Transfer screen lands.
|
|
278
|
+
- c49f5ba: Add React Native logging transports for the core `FunLogger`. `DatadogHttpLogTransport` ships records to Datadog over raw `fetch` (NOT the Datadog SDK — `@datadog/mobile-react-native` requires native modules), batching and flushing fire-and-forget on a timer, swallowing network errors, and authenticating with the public client token. `ConsoleLogTransport` is a dependency-free dev sink. A `FunLogger` singleton wired with the HTTP transport mirrors `@funkit/connect`'s web `logger`. No new native dependencies — only `fetch`. These are internal (not part of the public API), to be wired through `FunkitProvider` once identity/config lands.
|
|
279
|
+
- 2eb5610: Add the `QrCodeScreen` (Figma: Fun Mobile / qr-code-modal) — the full-screen deposit QR view reached from the Transfer screen's QR button. A themed surface with a close action, the framed QR code, a "Scan to deposit … / use it only for supported chains" caption (with an optional tappable link), and a share button. The scannable QR is host-supplied via the `qrCode` slot (e.g. `react-native-qrcode-svg`), so the package stays `react-native-svg`-free. Exported as public API.
|
|
280
|
+
- ea13570: Scaffold the `@funkit/connect-rn` package — React Native bindings that currently re-export `@funkit/connect-core`. RN platform halves land in later releases.
|
|
281
|
+
- 57d891c: Wire Statsig into `FunkitProvider` for React Native. Vendored the RN bindings from `@statsig/react-native-bindings` (+ `react-native-core`) with `react-native-device-info` removed — the only native module required is `@react-native-async-storage/async-storage` (new required peer dependency; AsyncStorage-backed persistence, device-info fields left `undefined`). `FunkitProvider` now mounts an internal `FunkitStatsigProvider` (same Fun client key + custom proxy as `@funkit/connect`, client created via the RN bindings) and accepts a `debug` prop (dev environment tier + verbose logging). The Statsig bindings stay internal (not part of the public API, mirroring `@funkit/connect`); all Statsig symbols resolve from the single `@statsig/react-bindings` peer so there's one client-core copy.
|
|
282
|
+
- 6ebf77e: Render the real, **curated** supported-deposit-tokens list (was placeholder, and an earlier attempt wrongly used the raw allow-list — meme coins and all). `useSupportedTokens` now resolves the list the same way the web SDK does: the Statsig `tokentransferconfig` (curated chains + asset addresses), filtered by `disabletokentransferchainsandassets`, merged with `@funkit/api-base`'s `getSupportedAssets` metadata via the shared `resolveTokenTransferConfig` (connect-core). The managed flow feeds this into the supported-tokens screen; `DepositFlowConfig.supportedTokens` / `tokenChainFilters` remain optional host overrides. `SupportedToken` gains `chainId` + `address` (for filtering/selection). Search, chain-filter, and selection interactivity follow separately.
|
|
283
|
+
- 024551c: Wire up the supported-tokens screen interactivity. Search (by symbol or chain name) and the chain-filter chips now filter the list (`filterSupportedTokens`), and selecting a token re-targets the transfer to that token's chain — the UDA deposit address is per-chain, so the Transfer screen's network label/icon and the generated address/QR update to the selected token's chain (reusing the choose-chain selection). The screen's search/filter/select were previously presentational.
|
|
284
|
+
- f6d33e6: Add the `SupportedTokensScreen` (Figma: Fun Mobile / Supported tokens) — shown from the Transfer screen's chain-name / info affordance. Back + title, a search field, horizontally-scrolling chain filter chips (All / Ethereum / BSC / …), and the token list (icon + symbol + chain). Controlled/presentational: the search value, selected chip, and the (host-filtered) `tokens` list come from props; token icons are host-supplied, keeping the package `react-native-svg`-free. The search input's colors follow the active theme via Restyle's `useTheme`. Exported as public API.
|
|
285
|
+
- 9f85d13: Render chain and token logos from Fun's icon CDN inside the managed deposit flow. Adds `FunIcon` (picks `react-native-svg`'s `SvgUri` for `.svg` chain logos vs `Image` for `.png` token logos — RN's built-in `Image` can't render SVG) and `ChainClusterIcon` (a single logo, or a 2×2 cluster for multi-chain groups). The flow now derives the network icon, crypto payment-method icon, choose-chain icons, and supported-token icons from config when the host doesn't supply its own: `DepositFlowConfig.networkIconChains?` and `ChainOption.iconKeys?` (CDN chain keys, e.g. `['ethereum', 'polygon']`); token icons are resolved from each token's symbol. Adds `react-native-svg >=15.0.0` as a peer dependency.
|
|
286
|
+
- 1b90155: Open the Swapped embedded payment flow in a WebView when a cash method is
|
|
287
|
+
selected on Add money. Picking a Card / Apple Pay / Revolut Pay / Bank Transfer
|
|
288
|
+
row now navigates to a `SwappedScreen` that loads the FOP's `embeddedFlowUrl`.
|
|
289
|
+
|
|
290
|
+
- `createWebViewSwappedTransport` + `SWAPPED_WEBVIEW_INJECTED_JS` +
|
|
291
|
+
`handleWebViewMessage` implement the shared `SwappedTransport` contract over a
|
|
292
|
+
`WebView` (the React Native counterpart of web's iframe transport): the
|
|
293
|
+
injected bridge redirects the embed's `postMessage` to the native channel, and
|
|
294
|
+
inbound messages are JSON-parsed and **origin-validated** (`isSwappedOrigin`)
|
|
295
|
+
before reaching handlers.
|
|
296
|
+
- `SwappedScreen` maps the embed's messages to flow navigation (mirroring web's
|
|
297
|
+
`SwappedIframeController`): back / new-deposit → back, close → close flow,
|
|
298
|
+
transaction-successful → success; errors log at WARN.
|
|
299
|
+
|
|
300
|
+
Adds `react-native-webview` (`>=13`) as a peer dependency. Sending theme/method
|
|
301
|
+
to the embed on `SWAPPED_READY` (web's `useSwappedSession`) and a host success
|
|
302
|
+
callback are follow-ups.
|
|
303
|
+
|
|
304
|
+
- 7eef6e3: Add the connect-rn Shopify Restyle theme: local light/dark design tokens (from the Fun Mobile Figma variables), a `toRestyleTheme` adapter, and a `FunkitProvider` that accepts `themes` + an optional `colorScheme` prop (falls back to the system Appearance when unset). Exposes `useFunkitColorScheme()` with a manual `toggleColorScheme()` (a no-op while a `colorScheme` prop is set), plus `useColorScheme` and typed `Box` / `Text` primitives. The theme is owned entirely by connect-rn (not shared with connect-core).
|
|
305
|
+
- 6b87806: Add the `TransferCryptoScreen` (Figma: Fun Mobile / Transfer Crypto) — the Universal-Deposit-Address screen reached after picking Crypto on `AddMoneyScreen`. A themed bottom-sheet surface with a top bar (back / title / QR), a network selector row (chain cluster + label + Change), and the deposit-address card with copy/share circular buttons. Built from the connect-rn Restyle primitives so it tracks the active light/dark scheme. UI only — data (`depositAddress`, `networkLabel`) and actions (`onBack`, `onShowQrCode`, `onChangeNetwork`, `onCopyAddress`, `onShareAddress`) are host-supplied; the chain-cluster icon is a host slot (`networkIcon`) and back/QR/copy/share use built-in svg-free glyphs, so the package needs no `react-native-svg`. Exported as public API.
|
|
306
|
+
|
|
307
|
+
### Patch Changes
|
|
308
|
+
|
|
309
|
+
- 4428292: Gate non-EVM deposit chains on a minted address, shared between web and RN.
|
|
310
|
+
Adds `isTransferChainEnabled(chainId, transferInit, isWithdrawal?)` to
|
|
311
|
+
`@funkit/connect-core` — EVM chains are always enabled; Solana/Bitcoin/Tron are
|
|
312
|
+
enabled only once the deposit-init response carries their address; withdrawals
|
|
313
|
+
enable every chain. `@funkit/connect`'s `useEnabledTokenTransferChainTokens` now
|
|
314
|
+
delegates to this helper instead of its inline solana/bitcoin/tron checks
|
|
315
|
+
(behavior-preserving — the web suite passes unchanged).
|
|
316
|
+
|
|
317
|
+
`@funkit/connect-rn`'s supported-tokens list previously showed every curated
|
|
318
|
+
chain regardless of whether its deposit address existed. `useTokenTransfer` now
|
|
319
|
+
surfaces `transferInit`, and `useSupportedTokens({ transferInit })` filters both
|
|
320
|
+
the token rows and the chain-filter chips through the shared helper — so RN
|
|
321
|
+
hides Solana/Bitcoin/Tron until their address is minted, matching web.
|
|
322
|
+
|
|
323
|
+
- 7926a68: Fix customer-gated Statsig configs always resolving to their default in React
|
|
324
|
+
Native. `FunkitStatsigProvider` initialized the client with an empty user `{}`,
|
|
325
|
+
so configs gated on the customer (e.g. `enableswappeddeposit`) never matched and
|
|
326
|
+
fell back to `false` for every apiKey. The provider now builds the Statsig user
|
|
327
|
+
with `{ userID, customIDs: { apiKey } }` from the resolved identity — mirroring
|
|
328
|
+
web's `useTrack.updateUserAsync` — so customer-scoped configs evaluate correctly
|
|
329
|
+
(this is what lets the Swapped cash methods appear for keys that have them on).
|
|
330
|
+
- abc0c49: Make the transfer screen's network selector open the Supported tokens screen. The chain-cluster + label + a new ⓘ info affordance is now its own tap target (`onShowSupportedTokens`), separate from "Change" (`onChangeNetwork`) — matching the Figma. The managed flow wires it to navigate to the supported-tokens screen (previously only reachable from the QR screen's "supported chains" link).
|
|
331
|
+
- 72b959f: Fix supported-tokens icons not matching the web SDK. The deposit-token list now
|
|
332
|
+
resolves each icon exactly like web's token-transfer screen
|
|
333
|
+
(`getTokenIconUrl` → `getLocalTokenIconUrl` in
|
|
334
|
+
`packages/connect/src/components/Dropdown/TokenDropdown.tsx`): **purely by
|
|
335
|
+
symbol** — `ASSET_LOGO_SRCS[symbol]` (a map duplicated from `@funkit/fun-relay`,
|
|
336
|
+
which has no RN-safe subpath export), falling back to
|
|
337
|
+
`https://sdk-cdn.fun.xyz/images/<symbol>.svg`.
|
|
338
|
+
|
|
339
|
+
Previously the row used the `/assets/supported` API metadata `logo` first (the
|
|
340
|
+
wallet-holdings resolver, `asset.logo || getAssetLogoSrc`), so tokens whose API
|
|
341
|
+
`logo` is a third-party URL rendered a different icon than web — e.g. TRUMP
|
|
342
|
+
showed an Arweave URL in RN but `trump.png` on web. The API `logo` is no longer
|
|
343
|
+
consulted on this screen, and the dead `logo` plumbing (`SupportedToken.logo`)
|
|
344
|
+
is removed.
|
|
345
|
+
|
|
346
|
+
`FunIcon` also gains a `fallbackUri` prop; the token row passes the dollar-circle
|
|
347
|
+
(`FALLBACK_ASSET_LOGO`) so a dead CDN URL degrades to the same icon web shows
|
|
348
|
+
via `AsyncImage`'s `fallbackSrc`, instead of a blank placeholder.
|
|
349
|
+
|
|
350
|
+
- 611deff: `TransferCryptoScreen`: add an in-screen "copied" confirmation. Pressing copy now shows a transient confirmation (the label flips to "Copied!" and the icon to a check) for `copiedFeedbackMs` (default 1800ms) while still invoking `onCopyAddress` for the host's clipboard write.
|
|
351
|
+
- Updated dependencies [4428292]
|
|
352
|
+
- Updated dependencies [383c4b7]
|
|
353
|
+
- @funkit/connect-core@0.4.0-next.0
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type { CheckoutTokenTransferConfig } from '@funkit/connect-core';
|
|
2
2
|
export { darkTokens, fontFamilyForWeight, lightTokens, } from './src/theme/tokens';
|
|
3
3
|
export type { FunkitColorTokens, FunkitFontTokens, FunkitFontWeight, FunkitTokens, } from './src/theme/tokens';
|
|
4
4
|
export { defaultDarkTheme, defaultLightTheme, toRestyleTheme, } from './src/theme/toRestyleTheme';
|
|
@@ -18,7 +18,7 @@ export type { FunkitProviderProps } from './src/providers/FunkitProvider';
|
|
|
18
18
|
export type { FunkitConfig } from './src/identity/IdentityContext';
|
|
19
19
|
export { useFunkitCheckout } from './src/providers/useFunkitCheckout';
|
|
20
20
|
export type { DepositFlowCallbacks, DepositFlowConfig, DynamicTargetAssetCandidate, } from './src/flow/depositFlowConfig';
|
|
21
|
-
export type { PaymentMethodOption, ReceiveTokenOption, } from './src/screens/
|
|
21
|
+
export type { PaymentMethodOption, ReceiveTokenOption, } from './src/screens/SelectMethodScreen';
|
|
22
22
|
export type { ChainOption } from './src/flow/depositFlowConfig';
|
|
23
23
|
export type { SupportedToken, TokenChainFilter, } from './src/transfer/supportedTokens';
|
|
24
24
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAgBA,YAAY,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAA;AAKvE,OAAO,EACL,UAAU,EACV,mBAAmB,EACnB,WAAW,GACZ,MAAM,oBAAoB,CAAA;AAC3B,YAAY,EACV,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,GACb,MAAM,oBAAoB,CAAA;AAG3B,OAAO,EACL,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,GACf,MAAM,4BAA4B,CAAA;AACnC,YAAY,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAG7D,OAAO,EACL,oBAAoB,EACpB,kBAAkB,EAClB,cAAc,GACf,MAAM,4BAA4B,CAAA;AACnC,YAAY,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAGhF,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAC3D,YAAY,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAGhE,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;AAC/C,YAAY,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAKpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAA;AAClE,YAAY,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAA;AAG5E,OAAO,EACL,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,iCAAiC,CAAA;AACxC,YAAY,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAA;AAG/E,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAC/D,YAAY,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAA;AAIzE,YAAY,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAA;AAIlE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAA;AACrE,YAAY,EACV,oBAAoB,EACpB,iBAAiB,EACjB,2BAA2B,GAC5B,MAAM,8BAA8B,CAAA;AAGrC,YAAY,EACV,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,kCAAkC,CAAA;AACzC,YAAY,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAC/D,YAAY,EACV,cAAc,EACd,gBAAgB,GACjB,MAAM,gCAAgC,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
// index.ts
|
|
2
|
-
export * from "@funkit/connect-core";
|
|
3
|
-
|
|
4
1
|
// src/theme/tokens.ts
|
|
5
2
|
var systemFontTokens = {
|
|
6
3
|
family: "System",
|
|
@@ -1158,7 +1155,7 @@ var badgeRing = (badge) => ({
|
|
|
1158
1155
|
height: badge + 2
|
|
1159
1156
|
});
|
|
1160
1157
|
|
|
1161
|
-
// src/screens/
|
|
1158
|
+
// src/screens/SelectMethodScreen.tsx
|
|
1162
1159
|
import { useEffect as useEffect4, useRef, useState as useState4 } from "react";
|
|
1163
1160
|
import { Animated as Animated2, Pressable, ScrollView } from "react-native";
|
|
1164
1161
|
import Reanimated, {
|
|
@@ -1214,7 +1211,7 @@ var scrimExit = new Keyframe2({
|
|
|
1214
1211
|
var DEFAULT_ERROR_TITLE = "Something went wrong";
|
|
1215
1212
|
var DEFAULT_ERROR_MESSAGE = "There was a problem loading data.\nCheck your internet and try again.";
|
|
1216
1213
|
var DEFAULT_RETRY_LABEL = "Try again";
|
|
1217
|
-
function
|
|
1214
|
+
function SelectMethodScreen({
|
|
1218
1215
|
methods,
|
|
1219
1216
|
onSelectMethod,
|
|
1220
1217
|
title = "Add money",
|
|
@@ -1248,7 +1245,7 @@ function AddMoneyScreen({
|
|
|
1248
1245
|
/* @__PURE__ */ jsx9(Text, { variant: "bodyMedium", color: "textPrimary", children: title })
|
|
1249
1246
|
] }),
|
|
1250
1247
|
error ? /* @__PURE__ */ jsx9(
|
|
1251
|
-
|
|
1248
|
+
SelectMethodError,
|
|
1252
1249
|
{
|
|
1253
1250
|
title: errorTitle,
|
|
1254
1251
|
message: errorMessage,
|
|
@@ -1256,7 +1253,7 @@ function AddMoneyScreen({
|
|
|
1256
1253
|
onRetry
|
|
1257
1254
|
}
|
|
1258
1255
|
) : loading ? /* @__PURE__ */ jsx9(
|
|
1259
|
-
|
|
1256
|
+
SelectMethodLoading,
|
|
1260
1257
|
{
|
|
1261
1258
|
count: skeletonCount,
|
|
1262
1259
|
showDropdown: Boolean(showDropdown),
|
|
@@ -1347,7 +1344,7 @@ function AddMoneyScreen({
|
|
|
1347
1344
|
}
|
|
1348
1345
|
);
|
|
1349
1346
|
}
|
|
1350
|
-
function
|
|
1347
|
+
function SelectMethodError({
|
|
1351
1348
|
title,
|
|
1352
1349
|
message,
|
|
1353
1350
|
retryLabel,
|
|
@@ -1358,7 +1355,7 @@ function AddMoneyError({
|
|
|
1358
1355
|
/* @__PURE__ */ jsx9(Text, { variant: "bodyMedium", color: "textPrimary", children: title }),
|
|
1359
1356
|
/* @__PURE__ */ jsx9(Text, { variant: "detail", color: "textSecondary", style: errorMessageText, children: message })
|
|
1360
1357
|
] }),
|
|
1361
|
-
/* @__PURE__ */ jsx9(
|
|
1358
|
+
onRetry ? /* @__PURE__ */ jsx9(
|
|
1362
1359
|
Pressable,
|
|
1363
1360
|
{
|
|
1364
1361
|
onPress: onRetry,
|
|
@@ -1376,7 +1373,7 @@ function AddMoneyError({
|
|
|
1376
1373
|
}
|
|
1377
1374
|
)
|
|
1378
1375
|
}
|
|
1379
|
-
)
|
|
1376
|
+
) : null
|
|
1380
1377
|
] });
|
|
1381
1378
|
}
|
|
1382
1379
|
function PaymentMethodRow({ method }) {
|
|
@@ -1539,7 +1536,7 @@ function AnimatedChevron({ open }) {
|
|
|
1539
1536
|
function CheckIcon() {
|
|
1540
1537
|
return /* @__PURE__ */ jsx9(FigmaCheckIcon, { size: 16 });
|
|
1541
1538
|
}
|
|
1542
|
-
function
|
|
1539
|
+
function SelectMethodLoading({
|
|
1543
1540
|
count,
|
|
1544
1541
|
showDropdown,
|
|
1545
1542
|
depositToLabel,
|
|
@@ -3738,7 +3735,7 @@ function FlowContent({
|
|
|
3738
3735
|
);
|
|
3739
3736
|
const selectedReceiveTokenId = selectedCandidate && candidates ? String(candidates.indexOf(selectedCandidate)) : void 0;
|
|
3740
3737
|
return /* @__PURE__ */ jsx21(
|
|
3741
|
-
|
|
3738
|
+
SelectMethodScreen,
|
|
3742
3739
|
{
|
|
3743
3740
|
methods,
|
|
3744
3741
|
receiveTokens,
|
|
@@ -3850,7 +3847,7 @@ function useFunkitFlow() {
|
|
|
3850
3847
|
}
|
|
3851
3848
|
|
|
3852
3849
|
// src/version.ts
|
|
3853
|
-
var CONNECT_RN_VERSION = true ? "
|
|
3850
|
+
var CONNECT_RN_VERSION = true ? "2.0.0" : "0.0.0-dev";
|
|
3854
3851
|
|
|
3855
3852
|
// src/providers/FunkitStatsigProvider.tsx
|
|
3856
3853
|
import {
|
|
@@ -4046,6 +4043,14 @@ function useClientAsyncInitRN(sdkKey, initialUser, statsigOptions = null) {
|
|
|
4046
4043
|
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
4047
4044
|
var STATSIG_API = "https://data-api.fun.xyz/v1";
|
|
4048
4045
|
var STATSIG_CLIENT_KEY = "client-UmFd8WIJljA7cLmZuDqs3X25M8sKd5WIQP4BSC2bRbM";
|
|
4046
|
+
var STATSIG_SDK_TYPE = "react-native";
|
|
4047
|
+
function buildFunkitStatsigUser(userId, apiKey) {
|
|
4048
|
+
return {
|
|
4049
|
+
userID: userId,
|
|
4050
|
+
customIDs: { apiKey },
|
|
4051
|
+
custom: { sdkType: STATSIG_SDK_TYPE }
|
|
4052
|
+
};
|
|
4053
|
+
}
|
|
4049
4054
|
function FunkitStatsigProvider({
|
|
4050
4055
|
children,
|
|
4051
4056
|
apiKey,
|
|
@@ -4053,7 +4058,7 @@ function FunkitStatsigProvider({
|
|
|
4053
4058
|
isDevelopment = false
|
|
4054
4059
|
}) {
|
|
4055
4060
|
const user = useMemo9(
|
|
4056
|
-
() => (
|
|
4061
|
+
() => buildFunkitStatsigUser(userId, apiKey),
|
|
4057
4062
|
[userId, apiKey]
|
|
4058
4063
|
);
|
|
4059
4064
|
const { client } = useClientAsyncInitRN(STATSIG_CLIENT_KEY, user, {
|