@funkit/connect 8.2.1-next.0 → 8.2.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 (65) hide show
  1. package/CHANGELOG.md +85 -0
  2. package/dist/{chunk-MGQZMUZ2.js → chunk-BP7VOYBS.js} +9 -0
  3. package/dist/{chunk-OTMBU2BL.js → chunk-KKGSXLMH.js} +5 -1
  4. package/dist/{chunk-FBCU3TQA.js → chunk-MYPFORR2.js} +5 -1
  5. package/dist/clients/fanatics.css +3862 -3481
  6. package/dist/clients/fanatics.js +247 -3
  7. package/dist/components/AsyncImage/useAsyncImage.d.ts +2 -0
  8. package/dist/components/Box/Box.d.ts +28 -28
  9. package/dist/components/FunCheckoutHistory/FunDirectExecutionHistoryBottomBar.d.ts +10 -0
  10. package/dist/components/FunOptionBox/FunOptionBox.css.d.ts +1 -1
  11. package/dist/components/TransactionStatus/AnimatedSpinner/AnimatedSpinner.d.ts +10 -0
  12. package/dist/components/TransactionStatus/AnimatedSpinner/AnimatedSpinnerLoading.d.ts +6 -0
  13. package/dist/css/sprinkles.css.d.ts +52 -28
  14. package/dist/hooks/queries/useRecentCheckouts.d.ts +0 -5
  15. package/dist/hooks/useCheckoutTimeEstimate.d.ts +1 -1
  16. package/dist/index.css +3862 -3481
  17. package/dist/index.js +2583 -2366
  18. package/dist/modals/CheckoutModal/{SelectAsset.d.ts → SelectAsset/SelectAsset.d.ts} +3 -3
  19. package/dist/modals/CheckoutModal/SelectAsset/SelectAssetInfoSection.d.ts +12 -0
  20. package/dist/modals/CheckoutModal/SelectAsset/SelectAssetList.d.ts +24 -0
  21. package/dist/modals/CheckoutModal/stepTransition.d.ts +1 -1
  22. package/dist/modals/ProfileDetails/FunProfileViews/Home/HomeCheckoutDisplayRow.css.d.ts +1 -1
  23. package/dist/providers/FunkitConfigContext.d.ts +8 -0
  24. package/dist/providers/FunkitThemeProvider.d.ts +36 -0
  25. package/dist/themes/baseTheme.js +1 -1
  26. package/dist/themes/darkTheme.js +2 -2
  27. package/dist/themes/lightTheme.js +2 -2
  28. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  29. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  30. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  31. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  32. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  33. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  34. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  35. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  36. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  37. package/dist/wallets/walletConnectors/index.js +41 -41
  38. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  39. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  40. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  41. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  42. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  43. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  44. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  45. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  46. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  47. package/package.json +4 -4
  48. package/dist/wallets/walletConnectors/{chunk-T5KHVUFR.js → chunk-3ZWIUCOI.js} +3 -3
  49. package/dist/wallets/walletConnectors/{chunk-77UTBHGP.js → chunk-4SC3PZVM.js} +3 -3
  50. package/dist/wallets/walletConnectors/{chunk-5EAOMOTO.js → chunk-5AV2NSL3.js} +3 -3
  51. package/dist/wallets/walletConnectors/{chunk-RA7MCWF4.js → chunk-5FWURLPF.js} +3 -3
  52. package/dist/wallets/walletConnectors/{chunk-R6Y36CMA.js → chunk-6677RKVT.js} +3 -3
  53. package/dist/wallets/walletConnectors/{chunk-MRRZOQGZ.js → chunk-75A4Q5E5.js} +3 -3
  54. package/dist/wallets/walletConnectors/{chunk-U5QP7MI5.js → chunk-ENLR4LXN.js} +3 -3
  55. package/dist/wallets/walletConnectors/{chunk-2E4PDCEJ.js → chunk-FT5BX7TL.js} +3 -3
  56. package/dist/wallets/walletConnectors/{chunk-JFHP4YJG.js → chunk-GEMN6DM5.js} +3 -3
  57. package/dist/wallets/walletConnectors/{chunk-CZYUE3AR.js → chunk-GXTI2PZD.js} +3 -3
  58. package/dist/wallets/walletConnectors/{chunk-47QF6EET.js → chunk-LGT6IAXI.js} +3 -3
  59. package/dist/wallets/walletConnectors/{chunk-W7Y6I22Y.js → chunk-N7475PGA.js} +3 -3
  60. package/dist/wallets/walletConnectors/{chunk-FA5DTT5R.js → chunk-O6YFVGVQ.js} +3 -3
  61. package/dist/wallets/walletConnectors/{chunk-UOTQQJJD.js → chunk-OCM5YHT5.js} +3 -3
  62. package/dist/wallets/walletConnectors/{chunk-HPHADOYD.js → chunk-PRGCIJ7Y.js} +3 -3
  63. package/dist/wallets/walletConnectors/{chunk-VYNVAGSV.js → chunk-RNIMZDHW.js} +3 -3
  64. package/dist/wallets/walletConnectors/{chunk-RLRQYUYC.js → chunk-TLOROKED.js} +3 -3
  65. package/dist/wallets/walletConnectors/{chunk-YLJDPTYF.js → chunk-WNQ3NPHX.js} +3 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,80 @@
1
1
  # @funkit/connect
2
2
 
3
+ ## 8.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 87c0f00: feat(connect): split decimal based on locale
8
+ - 761464a: feat(connect): fanatics checkout history
9
+ - fcf7c8b: refactor(connect): select asset screen - minor refactor and breaking up into smaller components
10
+ - 68d2aaf: feat(connect): add theme level variables to modal header icon buttons
11
+ - 074e0f5: fix(connect): custom payment method icon for connected wallet users
12
+ - 29ac86d: Add configurable props to custom source banner component
13
+ - d1a72f7: feat(connect): preload remote S3 url
14
+ - 203029c: feat(connect): add theme level control to set font size for you send you receive component
15
+ - b7886e5: feat(connect): migrate EnableFiatDeposit flag to statsig
16
+ - 4833bc1: Do not unnecessarily fetch Lighter accounts
17
+ - ad0a860: fix(connect): input screen decimal color check
18
+ - 9ffd984: feat(connect): ability to pass custom icons to payment method icons
19
+ - 6cea746: feat(connect): add instant time estimate label via config
20
+ - d9821eb: swapped based use cash tab UI implementation
21
+ - 2f4c5c2: feat(connect): add theme styling for cash crypto toggle
22
+ - 9f3ff5c: fix(connect): transparent caret color bug
23
+ - cade95a: geist mono font for amounts in fanatics theme
24
+ - 0b0e4e8: fanatics modal mobile view improvements
25
+ - 9f98ac4: feat(connect): add dynamic chain icon mask on FunAvatar component
26
+ - 49376c3: fix: getBalance computation no longer relies on deprecated field
27
+ - 7d6b623: new skeletons for fanatics
28
+ - 0d1a649: feat(connect): customizable payment method icons
29
+ - 38be23d: feat: new inputAmountFiatDecimalsColor theme variable
30
+ - 88aed38: fix(connect): select asset screen - padding issue for navigateOnAssetClick variant
31
+ - ce0e7ff: fix(connect): cdn url path
32
+ - ff96c90: feat(connect): hide destination field in payment summary for simplifiedUi config
33
+ - 14355da: feat(connect): ability to display step vs animated progress
34
+ - aabec47: feat(connect): ui customization to hide secondary token symbol on FunAssetItem
35
+ - 1f1c515: chore(connect): fanatics confirmation step
36
+ - cc8ed95: feat(connect): fanatics connect exchange screen
37
+ - a677e72: refactor(connect): break up TransactionStatus into separate files
38
+ - 52208da: fix(connect): fix stale value with flush sync
39
+ - 5aa2e13: feat(connect): migrate CheckoutNotificationsRefreshInterval flag to statsig
40
+ - 5bba47b: fix(connect): update default theme value horizontal padding on confirmation screen
41
+ - 0c04e6e: chore: deprecate unused hook useUsableWalletAssetsForCheckout
42
+ - 2f67612: fix font sizes for fanatics
43
+ - Updated dependencies [dee4a4b]
44
+ - Updated dependencies [4f6433f]
45
+ - Updated dependencies [b7886e5]
46
+ - Updated dependencies [c939c70]
47
+ - Updated dependencies [78f741f]
48
+ - Updated dependencies [5aa2e13]
49
+ - @funkit/fun-relay@2.3.0
50
+ - @funkit/api-base@2.1.2
51
+ - @funkit/utils@1.1.25
52
+
53
+ ## 8.2.1-next.2
54
+
55
+ ### Patch Changes
56
+
57
+ - b7886e5: feat(connect): migrate EnableFiatDeposit flag to statsig
58
+ - Updated dependencies [b7886e5]
59
+ - @funkit/utils@1.1.25-next.0
60
+ - @funkit/api-base@2.1.2-next.2
61
+
62
+ ## 8.2.1-next.1
63
+
64
+ ### Patch Changes
65
+
66
+ - fcf7c8b: refactor(connect): select asset screen - minor refactor and breaking up into smaller components
67
+ - 68d2aaf: feat(connect): add theme level variables to modal header icon buttons
68
+ - 074e0f5: fix(connect): custom payment method icon for connected wallet users
69
+ - d1a72f7: feat(connect): preload remote S3 url
70
+ - 6cea746: feat(connect): add instant time estimate label via config
71
+ - cade95a: geist mono font for amounts in fanatics theme
72
+ - 7d6b623: new skeletons for fanatics
73
+ - 88aed38: fix(connect): select asset screen - padding issue for navigateOnAssetClick variant
74
+ - 14355da: feat(connect): ability to display step vs animated progress
75
+ - Updated dependencies [4f6433f]
76
+ - @funkit/api-base@2.1.2-next.1
77
+
3
78
  ## 8.2.1-next.0
4
79
 
5
80
  ### Patch Changes
@@ -39,6 +114,7 @@
39
114
  ### Minor Changes
40
115
 
41
116
  - cf97880: Add client configuration exports with wildcard pattern support
117
+
42
118
  - Add `/clients/*` export path in package.json for client configurations
43
119
  - Create `src/clients/` directory with exportable client configurations
44
120
  - Update build system to compile clients directory
@@ -146,6 +222,7 @@
146
222
  - f4552b0: Expose recent deposits hooks for SDK users with comprehensive documentation
147
223
 
148
224
  Add two new public hooks for fetching recent deposits/direct executions:
225
+
149
226
  - `useFunkitRecentDeposits`: Auto-integrates with FunkitProvider context
150
227
  - `useFunkitRecentDepositsImpl`: Standalone implementation with explicit parameters
151
228
 
@@ -325,6 +402,7 @@
325
402
  - f4552b0: Expose recent deposits hooks for SDK users with comprehensive documentation
326
403
 
327
404
  Add two new public hooks for fetching recent deposits/direct executions:
405
+
328
406
  - `useFunkitRecentDeposits`: Auto-integrates with FunkitProvider context
329
407
  - `useFunkitRecentDepositsImpl`: Standalone implementation with explicit parameters
330
408
 
@@ -1085,10 +1163,12 @@
1085
1163
  - d307de8: Add support for custom withdrawal callbacks to enable server-side withdrawal processing
1086
1164
 
1087
1165
  Introduces a new withdrawal configuration type that allows customers (e.g., Kalshi) to handle withdrawals via callbacks instead of direct blockchain transactions. The withdrawal config now supports two modes:
1166
+
1088
1167
  - Wallet-based (existing): Direct blockchain transactions via WithdrawalClient
1089
1168
  - Callback-based (new): Server-side processing via withdrawCallback function
1090
1169
 
1091
1170
  Key changes:
1171
+
1092
1172
  - Split FunkitWithdrawalConfig into discriminated union types (WalletWithdrawalConfig, CustomWithdrawalConfig)
1093
1173
  - Add WithdrawalParam interface with quoteId and funQuote
1094
1174
  - Update withdrawal flow to route callback-based withdrawals to DirectExecutionNotifCenter (pending screen)
@@ -1168,10 +1248,12 @@
1168
1248
  - d307de8: Add support for custom withdrawal callbacks to enable server-side withdrawal processing
1169
1249
 
1170
1250
  Introduces a new withdrawal configuration type that allows customers (e.g., Kalshi) to handle withdrawals via callbacks instead of direct blockchain transactions. The withdrawal config now supports two modes:
1251
+
1171
1252
  - Wallet-based (existing): Direct blockchain transactions via WithdrawalClient
1172
1253
  - Callback-based (new): Server-side processing via withdrawCallback function
1173
1254
 
1174
1255
  Key changes:
1256
+
1175
1257
  - Split FunkitWithdrawalConfig into discriminated union types (WalletWithdrawalConfig, CustomWithdrawalConfig)
1176
1258
  - Add WithdrawalParam interface with quoteId and funQuote
1177
1259
  - Update withdrawal flow to route callback-based withdrawals to DirectExecutionNotifCenter (pending screen)
@@ -1525,6 +1607,7 @@
1525
1607
  This removes all EtherFi-related code including API keys, theme components, customer functions, and UI customizations. The EtherFi integration was marked as obsolete and has been completely removed from the codebase.
1526
1608
 
1527
1609
  **Breaking Changes:**
1610
+
1528
1611
  - Removed `ETHERFI_API_KEY` constant from `@funkit/api-base`
1529
1612
  - Removed `isEtherFiCustomer` function from `@funkit/connect`
1530
1613
  - Removed `EtherFiIcon` component from `@funkit/connect`
@@ -3764,10 +3847,12 @@
3764
3847
  ### Patch Changes
3765
3848
 
3766
3849
  - 47087b4: Features
3850
+
3767
3851
  1. Multichain asset display and checkout selection
3768
3852
  2. `textCustomizations` in `funkitConfig`
3769
3853
 
3770
3854
  Fixes
3855
+
3771
3856
  1. Deprecate unsupported mesh brokerage options (Stash, ETrade)
3772
3857
  2. Fix EOA checkout initCode issue with new wrapper funWallet
3773
3858
  3. Fix EOA checkout wrapper funWallet regeneration on chain switch
@@ -153,14 +153,22 @@ var baseTheme = ({
153
153
  dimensions: {
154
154
  connectExchangeIconSize: "48px",
155
155
  dollarValueSkeletonHeight: "60px",
156
+ dollarValueSkeletonWidth: "160px",
156
157
  inputAmountQuickOptionButtonHeight: "36px",
157
158
  inputAmountMinHeight: "76px",
158
159
  modalBottomBarButtonHeight: "34px",
159
160
  modalTopBarHeight: "56px",
161
+ paymentAmountSkeletonBlockHeight: "10px",
162
+ paymentAmountSkeletonBlockWidth: "93px",
163
+ paymentAmountSkeletonCircleSize: "15px",
160
164
  selectAssetItemIconSize: "24px",
165
+ txBreakdownSkeletonWidth: "72px",
166
+ txSummaryLineSkeletonHeight: "14px",
167
+ txSummaryLineSkeletonWidth: "54px",
161
168
  ...customDimensions
162
169
  },
163
170
  fonts: typeof customFontFamily === "string" ? {
171
+ amountValue: customFontFamily,
164
172
  body: customFontFamily,
165
173
  buttonTextPrimary: customFontFamily,
166
174
  buttonTextSecondary: customFontFamily,
@@ -170,6 +178,7 @@ var baseTheme = ({
170
178
  txStatusDescription: customFontFamily,
171
179
  txStatusTitle: customFontFamily
172
180
  } : {
181
+ amountValue: fontStacks[fontStack],
173
182
  body: fontStacks[fontStack],
174
183
  buttonTextPrimary: fontStacks[fontStack],
175
184
  buttonTextSecondary: fontStacks[fontStack],
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  baseTheme
4
- } from "./chunk-MGQZMUZ2.js";
4
+ } from "./chunk-BP7VOYBS.js";
5
5
 
6
6
  // src/themes/darkTheme.ts
7
7
  var accentColors = {
@@ -51,6 +51,10 @@ var darkTheme = ({
51
51
  modalBackground: "#000000",
52
52
  modalBorder: "#292929",
53
53
  modalTopbarIcon: "#FFF",
54
+ modalTopbarIconBackground: customColors?.modalTopbarIconBackground ?? "transparent",
55
+ modalTopbarIconBackgroundHover: customColors?.modalTopbarIconBackgroundHover ?? customColors?.buttonIconBackgroundHover ?? "#333333",
56
+ modalTopbarIconBackgroundPressed: customColors?.modalTopbarIconBackgroundPressed ?? customColors?.buttonIconBackgroundPressed ?? "#333333",
57
+ modalTopbarIconStroke: customColors?.modalTopbarIconStroke ?? customColors?.buttonIconStroke ?? "rgba(255, 255, 255, 0.35)",
54
58
  offBackground: "#1F1F1F",
55
59
  offBackgroundInverse: "#F2F2F2",
56
60
  hoverState: "#333333",
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  baseTheme
4
- } from "./chunk-MGQZMUZ2.js";
4
+ } from "./chunk-BP7VOYBS.js";
5
5
 
6
6
  // src/themes/lightTheme.ts
7
7
  var accentColors = {
@@ -49,6 +49,10 @@ var lightTheme = ({
49
49
  // modal backgrounds
50
50
  modalBackdrop: "rgba(0, 0, 0, 0.2)",
51
51
  modalTopbarIcon: "#000",
52
+ modalTopbarIconBackground: customColors?.modalTopbarIconBackground ?? "transparent",
53
+ modalTopbarIconBackgroundHover: customColors?.modalTopbarIconBackgroundHover ?? customColors?.buttonIconBackgroundHover ?? "#F7F7F7",
54
+ modalTopbarIconBackgroundPressed: customColors?.modalTopbarIconBackgroundPressed ?? customColors?.buttonIconBackgroundPressed ?? "#F0F0F0",
55
+ modalTopbarIconStroke: customColors?.modalTopbarIconStroke ?? customColors?.buttonIconStroke ?? "rgba(0, 0, 0, 0.35)",
52
56
  modalBackground: "#FFF",
53
57
  modalBorder: "#F7F7F7",
54
58
  offBackground: "#F7F7F7",