@funkit/connect 9.28.1 → 10.1.0-next.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 +60 -0
- package/dist/clients/chunk-42XZD2Y3.js +1112 -0
- package/dist/clients/chunk-5UIZBNLC.js +1175 -0
- package/dist/clients/chunk-6PIIYPQK.js +702 -0
- package/dist/clients/chunk-BO7AZVPG.js +1112 -0
- package/dist/clients/chunk-BUCJRBW7.js +1472 -0
- package/dist/clients/{chunk-2NBYHUIW.js → chunk-ETB2YYFT.js} +1 -1
- package/dist/clients/{chunk-4O4YAFYK.js → chunk-HD4Y4NKC.js} +4 -4
- package/dist/clients/{chunk-CGHPNWIF.js → chunk-JNZY3GAA.js} +3 -1
- package/dist/clients/{chunk-7LKK5QMZ.js → chunk-ME4OAQIY.js} +1 -1
- package/dist/clients/chunk-PEVDOGEA.js +109 -0
- package/dist/clients/chunk-QIWGVVAW.js +1113 -0
- package/dist/clients/chunk-VJZW3MA3.js +94 -0
- package/dist/clients/chunk-WEETVC7U.js +1113 -0
- package/dist/clients/chunk-Y2KXVS36.js +230 -0
- package/dist/clients/{chunk-TQVRP3Z2.js → chunk-YFHTV7DT.js} +1 -1
- package/dist/clients/fanatics.css +1 -1
- package/dist/clients/fanatics.js +2 -2
- package/dist/clients/lighter.css +11 -11
- package/dist/clients/lighter.d.ts +12 -2
- package/dist/clients/lighter.js +21 -9
- package/dist/clients/polymarket/PolymarketDepositAccountDropdown.css +11 -11
- package/dist/clients/polymarket/PolymarketDepositAccountDropdown.js +5 -5
- package/dist/clients/polymarket/createPolymarketDepositConfig.js +2 -2
- package/dist/clients/polymarket/index.css +11 -11
- package/dist/clients/polymarket/index.js +5 -5
- package/dist/clients/polymarket/polymarket.js +1 -1
- package/dist/clients/polymarket/usePolymarketAccountBalances.d.ts +66 -0
- package/dist/components/FunPayments/FunPaymentMethods.d.ts +3 -1
- package/dist/domains/paymentMethods.d.ts +8 -1
- package/dist/domains/relay.d.ts +40 -0
- package/dist/hooks/queries/useWithdrawFops.d.ts +1 -0
- package/dist/hooks/useNewTokenBanner.d.ts +6 -1
- package/dist/hooks/usePaymentSources.d.ts +1 -0
- package/dist/index.css +11 -11
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1351 -2047
- package/dist/locales/i18n.d.ts +2 -1
- package/dist/modals/CheckoutModal/LightningInvoice/LightningInvoice.d.ts +3 -3
- package/dist/modals/CheckoutModal/LightningInvoice/LightningInvoiceQrCode.d.ts +3 -2
- package/dist/modals/CheckoutModal/SourceChange/FormOfPaymentsList.d.ts +17 -6
- package/dist/modals/CheckoutModal/SourceChange/SourceChange.d.ts +7 -2
- package/dist/modals/CheckoutModal/buildRelayChains.d.ts +12 -0
- package/dist/modals/CheckoutModal/stepTransition.d.ts +1 -1
- package/dist/modals/WithdrawalModal/LighterWithdrawal.d.ts +32 -5
- package/dist/modals/WithdrawalModal/useWithdrawal.d.ts +3 -3
- package/dist/providers/FunkitCheckoutContext/types.d.ts +20 -2
- package/dist/providers/FunkitConfigContext.d.ts +2 -0
- package/dist/utils/checkout.d.ts +2 -1
- package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
- package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
- package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
- package/dist/wallets/walletConnectors/chunk-4NV5BYRP.js +95 -0
- package/dist/wallets/walletConnectors/chunk-AVDUNQUW.js +96 -0
- package/dist/wallets/walletConnectors/chunk-GUQM4QSL.js +66 -0
- package/dist/wallets/walletConnectors/chunk-IULPZP2Q.js +69 -0
- package/dist/wallets/walletConnectors/chunk-JPN6TWIT.js +92 -0
- package/dist/wallets/walletConnectors/chunk-KCRO2AGO.js +106 -0
- package/dist/wallets/walletConnectors/chunk-KI5Y2BBF.js +94 -0
- package/dist/wallets/walletConnectors/chunk-NR2OGDHQ.js +103 -0
- package/dist/wallets/walletConnectors/chunk-OEEGYENV.js +87 -0
- package/dist/wallets/walletConnectors/chunk-OX37G4YT.js +98 -0
- package/dist/wallets/walletConnectors/chunk-SWFF3TWJ.js +100 -0
- package/dist/wallets/walletConnectors/chunk-TKB2OY6G.js +99 -0
- package/dist/wallets/walletConnectors/chunk-W2LCLDPX.js +70 -0
- package/dist/wallets/walletConnectors/chunk-WAHGI5L7.js +96 -0
- package/dist/wallets/walletConnectors/chunk-WKNQMP4A.js +93 -0
- package/dist/wallets/walletConnectors/chunk-XCNHV3HS.js +110 -0
- package/dist/wallets/walletConnectors/chunk-YO2K4MBH.js +218 -0
- package/dist/wallets/walletConnectors/chunk-YQFGVZGR.js +92 -0
- package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
- package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
- package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
- package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
- package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
- package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
- package/dist/wallets/walletConnectors/index.js +57 -57
- package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
- package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
- package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
- package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
- package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
- package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
- package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
- package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
- package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
- package/package.json +4 -6
- /package/dist/clients/{chunk-LUHEVXPD.js → chunk-HMP3LHMW.js} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,65 @@
|
|
|
1
1
|
# @funkit/connect
|
|
2
2
|
|
|
3
|
+
## 10.1.0-next.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 1c74a2b: Add USDC Spot to Lighter Secure withdrawal via a required `routeType` on the Secure callback params
|
|
8
|
+
- 803bcbc: Move `WithdrawalParam.lighterAssetIndex` into a discriminated `customerData` object (`{ customerName: 'lighter', assetIndex }`)
|
|
9
|
+
|
|
10
|
+
## 10.0.0
|
|
11
|
+
|
|
12
|
+
### Major Changes
|
|
13
|
+
|
|
14
|
+
- 6eb4e0d: fix(connect): isolate i18next in a private instance so the SDK no longer initializes or mutates the host app's global i18next singleton
|
|
15
|
+
|
|
16
|
+
Previously `@funkit/connect` called `i18n.use(initReactI18next).init()` on the shared i18next **default singleton** at import time (and `changeLanguage()` on it at runtime via `FunkitI18nProvider`). Because bundlers dedupe i18next to a single instance, this let the SDK "take over" a host app's own i18next — surfacing as an intermittent, build-order-dependent i18next takeover under webpack.
|
|
17
|
+
|
|
18
|
+
The SDK now creates its own instance via `i18next.createInstance()` and no longer registers `initReactI18next`, so importing or rendering funkit never touches your app's i18next or react-i18next's module-global defaults.
|
|
19
|
+
|
|
20
|
+
Migration: if you imported the `i18n` export from `@funkit/connect` expecting it to be your app's shared i18next singleton, it is now a private, funkit-scoped instance — configure your own i18next for your app. Set the SDK's language via the `locale` prop on `FunkitProvider` as documented.
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- a806298: Show a subtle note under the Cash header instead of a large error state when no cash-out methods are available for withdrawal.
|
|
25
|
+
- cac2d42: feat(connect): add cash app payment method
|
|
26
|
+
- e81d5c2: chore: migrate connect consumers off the legacy CDN feature-flag runtime (Statsig is now the flag source)
|
|
27
|
+
|
|
28
|
+
- remove the unused `useIsTokenWhitelisted` hook (no remaining consumers)
|
|
29
|
+
- drop the `useFlags()` loading gate from `LoadingAccount` — checkout no longer blocks on legacy flag fetch
|
|
30
|
+
- inline `AssetSelectionBannerConfig` into `useNewTokenBanner` (already Statsig-backed) so it no longer depends on `~/utils/flags/types`
|
|
31
|
+
|
|
32
|
+
Internal-only — none of these symbols are public exports.
|
|
33
|
+
|
|
34
|
+
- 9e0e045: chore: remove the legacy CDN feature-flag runtime now that Statsig is the flag source
|
|
35
|
+
|
|
36
|
+
The `FunkitFlagsProvider` (CDN-fetched flags with an offline fallback config) is no longer read by any consumer after the [3/n] migration. This removes it entirely:
|
|
37
|
+
|
|
38
|
+
- unmount `FunkitFlagsProvider` from `FunkitProvider`
|
|
39
|
+
- delete `FunkitFlagsProvider.tsx` and the `~/utils/flags/` module (`config`, `endpoint`, `impl`, `hash`, `types`)
|
|
40
|
+
|
|
41
|
+
Internal-only — none of these symbols were public exports. The old SDK flag config remains hosted on S3 for existing (pre-migration) consumers.
|
|
42
|
+
|
|
43
|
+
- 4b8c04b: refactor(connect): consolidate Cash App into synthetic FOP, and warn on unexpected withdrawal synthetic FOP
|
|
44
|
+
- 109a92c: fix(connect): use correct per-token decimals for Solana SPL tokens (USDC/USDT are 6, not 9)
|
|
45
|
+
- 92fad39: refactor(connect): cleanup sourcechange handler logic
|
|
46
|
+
- a78a301: feat(connect): finish Cash App flow
|
|
47
|
+
- 4c446f9: Surface specific error messages for checkout quote failures
|
|
48
|
+
- 5c1dd2b: feat(connect): add Cash App payment method flow
|
|
49
|
+
- d6e6900: refactor: narrow ts types and clean up ternary checks on lightning invoice qrcode
|
|
50
|
+
- c20374e: Broaden WithdrawAmountInput snapshot coverage (insufficient-balance error, USD equivalent). Test-only; no runtime change.
|
|
51
|
+
- 42461ff: Broaden WithdrawContent snapshot coverage (quote loading/error, risk, blacklist, Lighter Fast). Test-only; no runtime change.
|
|
52
|
+
- d1223b9: Add unit test coverage for getErrorNotification mapping and error-source precedence. Test-only; no runtime change.
|
|
53
|
+
- Updated dependencies [cac2d42]
|
|
54
|
+
- Updated dependencies [4b8c04b]
|
|
55
|
+
- Updated dependencies [79c92ec]
|
|
56
|
+
- Updated dependencies [16cc96f]
|
|
57
|
+
- Updated dependencies [4c446f9]
|
|
58
|
+
- Updated dependencies [d27111c]
|
|
59
|
+
- @funkit/connect-core@1.6.1
|
|
60
|
+
- @funkit/chains@2.1.3
|
|
61
|
+
- @funkit/api-base@6.0.0
|
|
62
|
+
|
|
3
63
|
## 9.28.1
|
|
4
64
|
|
|
5
65
|
### Patch Changes
|