@funkit/connect 12.19.0 → 12.21.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 (146) hide show
  1. package/CHANGELOG.md +60 -0
  2. package/dist/clients/{chunk-N46CL4ZT.js → chunk-4NWQR25X.js} +1 -1
  3. package/dist/clients/{chunk-AELXD5XA.js → chunk-6XJV626L.js} +1 -1
  4. package/dist/clients/chunk-B67ESBGC.js +108 -0
  5. package/dist/clients/{chunk-KH2HLTHP.js → chunk-DAMICUCH.js} +5 -5
  6. package/dist/clients/{chunk-FOXMRDKD.js → chunk-FIJU6HZM.js} +1 -1
  7. package/dist/clients/{chunk-L6JL2XJY.js → chunk-MTKOZB6U.js} +1 -1
  8. package/dist/clients/{chunk-R25GIAD5.js → chunk-PZSKO3BJ.js} +1 -0
  9. package/dist/clients/{chunk-5NYKSTGH.js → chunk-S4SMCBQ4.js} +1 -1
  10. package/dist/clients/{chunk-Y7ONHWCW.js → chunk-T4Q43DNC.js} +2 -2
  11. package/dist/clients/{chunk-YSAAJSWT.js → chunk-YSQX5Z3F.js} +49 -25
  12. package/dist/clients/fanatics.d.ts +5 -7
  13. package/dist/clients/fanatics.js +4 -4
  14. package/dist/clients/internal/nado/withdrawalCallback.js +4 -4
  15. package/dist/clients/internal/nado/withdrawalErrors.js +2 -2
  16. package/dist/clients/internal/nado/withdrawalForm.js +5 -5
  17. package/dist/clients/internal/nado/withdrawalStatus.js +4 -4
  18. package/dist/clients/lighter.css +8 -1
  19. package/dist/clients/lighter.js +6 -6
  20. package/dist/clients/lighterRh.d.ts +44 -0
  21. package/dist/clients/lighterRh.js +51 -0
  22. package/dist/clients/mallard.js +3 -3
  23. package/dist/clients/nado.js +6 -6
  24. package/dist/clients/polymarket/createPolymarketDepositConfig.js +3 -3
  25. package/dist/clients/polymarket/index.js +3 -3
  26. package/dist/clients/polymarket/polymarket.d.ts +22 -22
  27. package/dist/clients/polymarket/polymarket.js +2 -2
  28. package/dist/components/Avatar/emojiAvatarForAddress.d.ts +35 -35
  29. package/dist/components/Box/Box.d.ts +63 -63
  30. package/dist/components/ConnectButton/ConnectButton.d.ts +16 -15
  31. package/dist/components/Dialog/Dialog.d.ts +12 -4
  32. package/dist/components/Dialog/hooks.d.ts +3 -3
  33. package/dist/components/FreeUsdcBanner/FreeUsdcBanner.d.ts +2 -2
  34. package/dist/components/FunBottomBar/FunBottomBar.d.ts +3 -1
  35. package/dist/components/FunInfoBanner/InfoBanner.d.ts +1 -1
  36. package/dist/components/FunInput/FunInput.d.ts +1 -1
  37. package/dist/components/FunOptionBox/FunOptionBox.css.d.ts +1 -1
  38. package/dist/components/FunTooltip/FunTooltip.d.ts +2 -2
  39. package/dist/components/FunTransactionSummary/PaymentFeesSummary.d.ts +3 -1
  40. package/dist/components/HighPriceImpactAlert/HighPriceImpactAlert.d.ts +7 -0
  41. package/dist/components/Icons/GreenRoundCheckmark.d.ts +2 -1
  42. package/dist/components/Icons/StatusIcons.css.d.ts +2 -2
  43. package/dist/components/Icons/StatusIcons.d.ts +2 -2
  44. package/dist/components/LargeAmountInput/LargeAmountInput.d.ts +3 -1
  45. package/dist/components/ModalSelection/ModalSelection.d.ts +4 -4
  46. package/dist/components/TokenSwapWidget/TokenSelectButton/TokenSelectButton.d.ts +1 -1
  47. package/dist/components/TokenSwapWidget/TokenSwapCard/TokenSwapCard.d.ts +17 -4
  48. package/dist/components/TokenSwapWidget/TokenSwapPercentOptions/TokenSwapPercentOptions.d.ts +9 -0
  49. package/dist/components/TokenSwapWidget/TokenSwapWidget.d.ts +6 -2
  50. package/dist/components/TokenSwapWidget/TokenSwapWidgetSkeleton/TokenSwapWidgetSkeleton.d.ts +3 -0
  51. package/dist/consts/checkout.d.ts +8 -8
  52. package/dist/consts/customers.d.ts +5 -1
  53. package/dist/consts/polymarket.d.ts +2 -2
  54. package/dist/consts/quote.d.ts +25 -15
  55. package/dist/css/cssObjectFromTheme.d.ts +1 -1
  56. package/dist/css/sprinkles.css.d.ts +78 -78
  57. package/dist/domains/bridge.d.ts +1 -1
  58. package/dist/domains/convert/assets.d.ts +38 -0
  59. package/dist/domains/convert/inputAmount.d.ts +24 -21
  60. package/dist/domains/convert/reducer.d.ts +11 -6
  61. package/dist/domains/convert/screen.d.ts +10 -1
  62. package/dist/domains/convert/view.d.ts +4 -0
  63. package/dist/domains/priceImpact.d.ts +14 -0
  64. package/dist/hooks/queries/useMeldLimits.d.ts +45 -45
  65. package/dist/hooks/queries/useWithdrawalQuote.d.ts +62 -62
  66. package/dist/hooks/track/useTrack.d.ts +1 -1
  67. package/dist/hooks/useCheckoutQuoteNotification.d.ts +3 -3
  68. package/dist/hooks/useConvertBalances.d.ts +1 -1
  69. package/dist/hooks/useConvertQuote.d.ts +1 -1
  70. package/dist/hooks/useDynamicRoutes.d.ts +1 -1
  71. package/dist/hooks/useFrogAccount.d.ts +77 -77
  72. package/dist/hooks/useIsomorphicEffect.d.ts +2 -2
  73. package/dist/hooks/usePaymentMethodIcon.d.ts +1 -1
  74. package/dist/hooks/usePaymentSources.d.ts +1 -1
  75. package/dist/hooks/usePolymarketAccountBalances.d.ts +1 -1
  76. package/dist/index.css +8 -1
  77. package/dist/index.d.ts +2 -0
  78. package/dist/index.js +2149 -1697
  79. package/dist/modals/CheckoutModal/Convert/ConvertAssetList.d.ts +1 -1
  80. package/dist/modals/CheckoutModal/Convert/ConvertAssetRow.d.ts +1 -19
  81. package/dist/modals/CheckoutModal/Convert/ConvertChainRail.d.ts +13 -0
  82. package/dist/modals/CheckoutModal/Convert/ConvertSelectDestinationStep.d.ts +7 -5
  83. package/dist/modals/CheckoutModal/Convert/ConvertSelectSourceStep.d.ts +0 -12
  84. package/dist/modals/CheckoutModal/SwappedIframe/SwappedIframe.d.ts +13 -2
  85. package/dist/modals/PolymarketPerpsTransfer/PolymarketPerpsTransferScreen.d.ts +6 -1
  86. package/dist/modals/PolymarketPerpsTransfer/usePerpsTransferForm.d.ts +6 -1
  87. package/dist/modals/ProfileDetails/FunProfileViews/Home/HomeCheckoutDisplayRow.css.d.ts +1 -1
  88. package/dist/modals/WithdrawalModal/LighterWithdrawal.d.ts +1 -1
  89. package/dist/modals/WithdrawalModal/useMultiSourceWithdrawal.d.ts +1 -1
  90. package/dist/providers/ConvertProvider.d.ts +2 -0
  91. package/dist/providers/FunkitCheckoutContext/types.d.ts +3 -0
  92. package/dist/providers/FunkitStatsigProvider.d.ts +1 -1
  93. package/dist/providers/GeneralWalletProvider.d.ts +21 -21
  94. package/dist/providers/ModalSizeContext.d.ts +4 -4
  95. package/dist/shadow-css.js +1 -1
  96. package/dist/themes/baseTheme.d.ts +1 -1
  97. package/dist/themes/darkTheme.d.ts +6 -4
  98. package/dist/themes/lightTheme.d.ts +6 -4
  99. package/dist/utils/checkout.d.ts +1 -1
  100. package/dist/utils/customer.d.ts +96 -96
  101. package/dist/utils/datadogBrowserLogsTransport.d.ts +11 -5
  102. package/dist/utils/datadogPageExit.d.ts +5 -0
  103. package/dist/utils/funError.d.ts +26 -0
  104. package/dist/utils/funLogger.d.ts +2 -1
  105. package/dist/utils/shakeElement.d.ts +7 -0
  106. package/dist/wallets/computeWalletConnectMetaData.d.ts +1 -1
  107. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  108. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  109. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  110. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  111. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  112. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  113. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  114. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  115. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  116. package/dist/wallets/walletConnectors/index.js +51 -51
  117. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  118. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  119. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  120. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  121. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  122. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  123. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  124. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  125. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  126. package/package.json +9 -9
  127. package/dist/clients/chunk-GTPMJGCF.js +0 -52
  128. package/dist/modals/CheckoutModal/Convert/ConvertChainPills.d.ts +0 -14
  129. package/dist/wallets/walletConnectors/{chunk-OVDCDVFX.js → chunk-34B7OJNT.js} +3 -3
  130. package/dist/wallets/walletConnectors/{chunk-JJBLW4IU.js → chunk-4FHNLTR3.js} +3 -3
  131. package/dist/wallets/walletConnectors/{chunk-TM7UBV3Q.js → chunk-ALGPGI6V.js} +3 -3
  132. package/dist/wallets/walletConnectors/{chunk-MWB6LFSG.js → chunk-BBB2J3US.js} +3 -3
  133. package/dist/wallets/walletConnectors/{chunk-IWPW26AL.js → chunk-BBDNB5TQ.js} +3 -3
  134. package/dist/wallets/walletConnectors/{chunk-53MYTA42.js → chunk-CU5J53XR.js} +3 -3
  135. package/dist/wallets/walletConnectors/{chunk-USLZMUJ3.js → chunk-HOCKAU5H.js} +3 -3
  136. package/dist/wallets/walletConnectors/{chunk-RJF2YEZ5.js → chunk-IA5432IR.js} +3 -3
  137. package/dist/wallets/walletConnectors/{chunk-ASTCNVJC.js → chunk-IWOMSW64.js} +3 -3
  138. package/dist/wallets/walletConnectors/{chunk-KE4CWI3A.js → chunk-NXWG6FG2.js} +3 -3
  139. package/dist/wallets/walletConnectors/{chunk-RQYEGJKL.js → chunk-RFCZYLNR.js} +3 -3
  140. package/dist/wallets/walletConnectors/{chunk-ANODOMIN.js → chunk-RXRYHMRI.js} +3 -3
  141. package/dist/wallets/walletConnectors/{chunk-PPQ6L4K2.js → chunk-SR5CZR3L.js} +3 -3
  142. package/dist/wallets/walletConnectors/{chunk-TIHTQ3OB.js → chunk-TRZDAXCQ.js} +3 -3
  143. package/dist/wallets/walletConnectors/{chunk-F45CUFRR.js → chunk-U52QO5HF.js} +3 -3
  144. package/dist/wallets/walletConnectors/{chunk-A5POD5SV.js → chunk-XODA5ESL.js} +3 -3
  145. package/dist/wallets/walletConnectors/{chunk-FYPQ3HP4.js → chunk-YRMBR6NA.js} +3 -3
  146. package/dist/wallets/walletConnectors/{chunk-65ULY6OC.js → chunk-ZSSSLFQF.js} +3 -3
@@ -1,7 +1,7 @@
1
1
  import { type ConvertQuote } from '../domains/convert/quote';
2
2
  import type { ConvertResolvedAsset } from '../domains/convert/types';
3
3
  export declare const CONVERT_QUOTE_REFRESH_MS = 30000;
4
- export declare const CONVERT_QUOTE_QUERY_KEY: readonly ["convert", "quote"];
4
+ export declare const CONVERT_QUOTE_QUERY_KEY: readonly ['convert', 'quote'];
5
5
  interface UseConvertQuoteParams {
6
6
  /**
7
7
  * Scopes quotes to one checkout, like withdrawal's, so a reopened checkout
@@ -1,4 +1,4 @@
1
1
  import type { IndexedDynamicRoutingConfig } from '@funkit/fun-relay';
2
2
  export declare const useDynamicRoutes: (_dynamicRoutingId?: string) => {
3
- findPath: IndexedDynamicRoutingConfig[string]["findPath"];
3
+ findPath: IndexedDynamicRoutingConfig[string]['findPath'];
4
4
  };
@@ -8,16 +8,6 @@ export declare function useClearFrogAccountsCache(): {
8
8
  clearVirtualFiatAccounts: () => void;
9
9
  };
10
10
  export declare function useVirtualFiatAccounts(): {
11
- isLoading: boolean;
12
- data: AllFiatAccounts;
13
- error: Error;
14
- isError: true;
15
- isPending: false;
16
- isLoadingError: false;
17
- isRefetchError: true;
18
- isSuccess: false;
19
- isPlaceholderData: false;
20
- status: "error";
21
11
  dataUpdatedAt: number;
22
12
  errorUpdatedAt: number;
23
13
  failureCount: number;
@@ -33,34 +23,6 @@ export declare function useVirtualFiatAccounts(): {
33
23
  refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<AllFiatAccounts, Error>>;
34
24
  fetchStatus: import("@tanstack/react-query").FetchStatus;
35
25
  promise: Promise<AllFiatAccounts>;
36
- } | {
37
- isLoading: boolean;
38
- data: AllFiatAccounts;
39
- error: null;
40
- isError: false;
41
- isPending: false;
42
- isLoadingError: false;
43
- isRefetchError: false;
44
- isSuccess: true;
45
- isPlaceholderData: false;
46
- status: "success";
47
- dataUpdatedAt: number;
48
- errorUpdatedAt: number;
49
- failureCount: number;
50
- failureReason: Error | null;
51
- errorUpdateCount: number;
52
- isFetched: boolean;
53
- isFetchedAfterMount: boolean;
54
- isFetching: boolean;
55
- isInitialLoading: boolean;
56
- isPaused: boolean;
57
- isRefetching: boolean;
58
- isStale: boolean;
59
- refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<AllFiatAccounts, Error>>;
60
- fetchStatus: import("@tanstack/react-query").FetchStatus;
61
- promise: Promise<AllFiatAccounts>;
62
- } | {
63
- isLoading: boolean;
64
26
  data: undefined;
65
27
  error: Error;
66
28
  isError: true;
@@ -69,7 +31,9 @@ export declare function useVirtualFiatAccounts(): {
69
31
  isRefetchError: false;
70
32
  isSuccess: false;
71
33
  isPlaceholderData: false;
72
- status: "error";
34
+ status: 'error';
35
+ isLoading: boolean;
36
+ } | {
73
37
  dataUpdatedAt: number;
74
38
  errorUpdatedAt: number;
75
39
  failureCount: number;
@@ -85,8 +49,6 @@ export declare function useVirtualFiatAccounts(): {
85
49
  refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<AllFiatAccounts, Error>>;
86
50
  fetchStatus: import("@tanstack/react-query").FetchStatus;
87
51
  promise: Promise<AllFiatAccounts>;
88
- } | {
89
- isLoading: boolean;
90
52
  data: undefined;
91
53
  error: null;
92
54
  isError: false;
@@ -95,7 +57,9 @@ export declare function useVirtualFiatAccounts(): {
95
57
  isRefetchError: false;
96
58
  isSuccess: false;
97
59
  isPlaceholderData: false;
98
- status: "pending";
60
+ status: 'pending';
61
+ isLoading: boolean;
62
+ } | {
99
63
  dataUpdatedAt: number;
100
64
  errorUpdatedAt: number;
101
65
  failureCount: number;
@@ -111,8 +75,6 @@ export declare function useVirtualFiatAccounts(): {
111
75
  refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<AllFiatAccounts, Error>>;
112
76
  fetchStatus: import("@tanstack/react-query").FetchStatus;
113
77
  promise: Promise<AllFiatAccounts>;
114
- } | {
115
- isLoading: boolean;
116
78
  data: undefined;
117
79
  error: null;
118
80
  isError: false;
@@ -121,7 +83,9 @@ export declare function useVirtualFiatAccounts(): {
121
83
  isRefetchError: false;
122
84
  isSuccess: false;
123
85
  isPlaceholderData: false;
124
- status: "pending";
86
+ status: 'pending';
87
+ isLoading: boolean;
88
+ } | {
125
89
  dataUpdatedAt: number;
126
90
  errorUpdatedAt: number;
127
91
  failureCount: number;
@@ -137,8 +101,6 @@ export declare function useVirtualFiatAccounts(): {
137
101
  refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<AllFiatAccounts, Error>>;
138
102
  fetchStatus: import("@tanstack/react-query").FetchStatus;
139
103
  promise: Promise<AllFiatAccounts>;
140
- } | {
141
- isLoading: boolean;
142
104
  data: AllFiatAccounts;
143
105
  isError: false;
144
106
  error: null;
@@ -147,7 +109,9 @@ export declare function useVirtualFiatAccounts(): {
147
109
  isRefetchError: false;
148
110
  isSuccess: true;
149
111
  isPlaceholderData: true;
150
- status: "success";
112
+ status: 'success';
113
+ isLoading: boolean;
114
+ } | {
151
115
  dataUpdatedAt: number;
152
116
  errorUpdatedAt: number;
153
117
  failureCount: number;
@@ -163,23 +127,17 @@ export declare function useVirtualFiatAccounts(): {
163
127
  refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<AllFiatAccounts, Error>>;
164
128
  fetchStatus: import("@tanstack/react-query").FetchStatus;
165
129
  promise: Promise<AllFiatAccounts>;
166
- };
167
- export declare function useMatchingVirtualFiatAccount(accounts: AllFiatAccounts | undefined): BridgeVirtualBankAccount | undefined;
168
- export type KycLinkLoad = {
169
- kycLink?: string;
170
- guid: Guid;
171
- };
172
- export declare function useLoadKycLink(linkLoad: KycLinkLoad): {
173
- data: string | undefined;
130
+ data: AllFiatAccounts;
174
131
  error: Error;
175
132
  isError: true;
176
133
  isPending: false;
177
- isLoading: false;
178
134
  isLoadingError: false;
179
135
  isRefetchError: true;
180
136
  isSuccess: false;
181
137
  isPlaceholderData: false;
182
- status: "error";
138
+ status: 'error';
139
+ isLoading: boolean;
140
+ } | {
183
141
  dataUpdatedAt: number;
184
142
  errorUpdatedAt: number;
185
143
  failureCount: number;
@@ -192,20 +150,26 @@ export declare function useLoadKycLink(linkLoad: KycLinkLoad): {
192
150
  isPaused: boolean;
193
151
  isRefetching: boolean;
194
152
  isStale: boolean;
195
- refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<string, Error>>;
153
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<AllFiatAccounts, Error>>;
196
154
  fetchStatus: import("@tanstack/react-query").FetchStatus;
197
- promise: Promise<string>;
198
- } | {
199
- data: string | undefined;
155
+ promise: Promise<AllFiatAccounts>;
156
+ data: AllFiatAccounts;
200
157
  error: null;
201
158
  isError: false;
202
159
  isPending: false;
203
- isLoading: false;
204
160
  isLoadingError: false;
205
161
  isRefetchError: false;
206
162
  isSuccess: true;
207
163
  isPlaceholderData: false;
208
- status: "success";
164
+ status: 'success';
165
+ isLoading: boolean;
166
+ };
167
+ export declare function useMatchingVirtualFiatAccount(accounts: AllFiatAccounts | undefined): BridgeVirtualBankAccount | undefined;
168
+ export type KycLinkLoad = {
169
+ kycLink?: string;
170
+ guid: Guid;
171
+ };
172
+ export declare function useLoadKycLink(linkLoad: KycLinkLoad): {
209
173
  dataUpdatedAt: number;
210
174
  errorUpdatedAt: number;
211
175
  failureCount: number;
@@ -221,8 +185,6 @@ export declare function useLoadKycLink(linkLoad: KycLinkLoad): {
221
185
  refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<string, Error>>;
222
186
  fetchStatus: import("@tanstack/react-query").FetchStatus;
223
187
  promise: Promise<string>;
224
- } | {
225
- data: string | undefined;
226
188
  error: Error;
227
189
  isError: true;
228
190
  isPending: false;
@@ -231,7 +193,9 @@ export declare function useLoadKycLink(linkLoad: KycLinkLoad): {
231
193
  isRefetchError: false;
232
194
  isSuccess: false;
233
195
  isPlaceholderData: false;
234
- status: "error";
196
+ status: 'error';
197
+ data: string | undefined;
198
+ } | {
235
199
  dataUpdatedAt: number;
236
200
  errorUpdatedAt: number;
237
201
  failureCount: number;
@@ -247,8 +211,6 @@ export declare function useLoadKycLink(linkLoad: KycLinkLoad): {
247
211
  refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<string, Error>>;
248
212
  fetchStatus: import("@tanstack/react-query").FetchStatus;
249
213
  promise: Promise<string>;
250
- } | {
251
- data: string | undefined;
252
214
  error: null;
253
215
  isError: false;
254
216
  isPending: true;
@@ -257,7 +219,9 @@ export declare function useLoadKycLink(linkLoad: KycLinkLoad): {
257
219
  isRefetchError: false;
258
220
  isSuccess: false;
259
221
  isPlaceholderData: false;
260
- status: "pending";
222
+ status: 'pending';
223
+ data: string | undefined;
224
+ } | {
261
225
  dataUpdatedAt: number;
262
226
  errorUpdatedAt: number;
263
227
  failureCount: number;
@@ -266,6 +230,7 @@ export declare function useLoadKycLink(linkLoad: KycLinkLoad): {
266
230
  isFetched: boolean;
267
231
  isFetchedAfterMount: boolean;
268
232
  isFetching: boolean;
233
+ isLoading: boolean;
269
234
  isInitialLoading: boolean;
270
235
  isPaused: boolean;
271
236
  isRefetching: boolean;
@@ -273,8 +238,6 @@ export declare function useLoadKycLink(linkLoad: KycLinkLoad): {
273
238
  refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<string, Error>>;
274
239
  fetchStatus: import("@tanstack/react-query").FetchStatus;
275
240
  promise: Promise<string>;
276
- } | {
277
- data: string | undefined;
278
241
  error: null;
279
242
  isError: false;
280
243
  isPending: true;
@@ -282,7 +245,9 @@ export declare function useLoadKycLink(linkLoad: KycLinkLoad): {
282
245
  isRefetchError: false;
283
246
  isSuccess: false;
284
247
  isPlaceholderData: false;
285
- status: "pending";
248
+ status: 'pending';
249
+ data: string | undefined;
250
+ } | {
286
251
  dataUpdatedAt: number;
287
252
  errorUpdatedAt: number;
288
253
  failureCount: number;
@@ -291,7 +256,6 @@ export declare function useLoadKycLink(linkLoad: KycLinkLoad): {
291
256
  isFetched: boolean;
292
257
  isFetchedAfterMount: boolean;
293
258
  isFetching: boolean;
294
- isLoading: boolean;
295
259
  isInitialLoading: boolean;
296
260
  isPaused: boolean;
297
261
  isRefetching: boolean;
@@ -299,8 +263,6 @@ export declare function useLoadKycLink(linkLoad: KycLinkLoad): {
299
263
  refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<string, Error>>;
300
264
  fetchStatus: import("@tanstack/react-query").FetchStatus;
301
265
  promise: Promise<string>;
302
- } | {
303
- data: string | undefined;
304
266
  isError: false;
305
267
  error: null;
306
268
  isPending: false;
@@ -309,7 +271,9 @@ export declare function useLoadKycLink(linkLoad: KycLinkLoad): {
309
271
  isRefetchError: false;
310
272
  isSuccess: true;
311
273
  isPlaceholderData: true;
312
- status: "success";
274
+ status: 'success';
275
+ data: string | undefined;
276
+ } | {
313
277
  dataUpdatedAt: number;
314
278
  errorUpdatedAt: number;
315
279
  failureCount: number;
@@ -325,6 +289,42 @@ export declare function useLoadKycLink(linkLoad: KycLinkLoad): {
325
289
  refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<string, Error>>;
326
290
  fetchStatus: import("@tanstack/react-query").FetchStatus;
327
291
  promise: Promise<string>;
292
+ error: Error;
293
+ isError: true;
294
+ isPending: false;
295
+ isLoading: false;
296
+ isLoadingError: false;
297
+ isRefetchError: true;
298
+ isSuccess: false;
299
+ isPlaceholderData: false;
300
+ status: 'error';
301
+ data: string | undefined;
302
+ } | {
303
+ dataUpdatedAt: number;
304
+ errorUpdatedAt: number;
305
+ failureCount: number;
306
+ failureReason: Error | null;
307
+ errorUpdateCount: number;
308
+ isFetched: boolean;
309
+ isFetchedAfterMount: boolean;
310
+ isFetching: boolean;
311
+ isInitialLoading: boolean;
312
+ isPaused: boolean;
313
+ isRefetching: boolean;
314
+ isStale: boolean;
315
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<string, Error>>;
316
+ fetchStatus: import("@tanstack/react-query").FetchStatus;
317
+ promise: Promise<string>;
318
+ error: null;
319
+ isError: false;
320
+ isPending: false;
321
+ isLoading: false;
322
+ isLoadingError: false;
323
+ isRefetchError: false;
324
+ isSuccess: true;
325
+ isPlaceholderData: false;
326
+ status: 'success';
327
+ data: string | undefined;
328
328
  };
329
329
  type Result<T, E> = {
330
330
  type: 'success';
@@ -1,2 +1,2 @@
1
- import { useEffect } from 'react';
2
- export declare const useIsomorphicLayoutEffect: typeof useEffect;
1
+ import { useLayoutEffect } from 'react';
2
+ export declare const useIsomorphicLayoutEffect: typeof useLayoutEffect;
@@ -17,7 +17,7 @@ interface WalletRowOptions {
17
17
  * if no SDK icons available, show icon from wagmi
18
18
  * otherwise show fallback icon EVM
19
19
  */
20
- export declare function usePaymentMethodIcon(paymentMethod: PaymentMethod, { iconSize, payerWallet, }?: WalletRowOptions): string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | React.JSX.Element | null | undefined;
20
+ export declare function usePaymentMethodIcon(paymentMethod: PaymentMethod, { iconSize, payerWallet, }?: WalletRowOptions): string | number | bigint | boolean | React.JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | Iterable<ReactNode> | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | React.ReactPortal | null | undefined> | null | undefined;
21
21
  interface PaymentMethodInfoLabel {
22
22
  text: string;
23
23
  icon: ReactNode;
@@ -15,7 +15,7 @@ export type UnavailablePaymentSource = {
15
15
  };
16
16
  export declare const usePaymentSources: (currentPaymentMethodInfo: ConnectablePaymentMethodInfo | null, targetChainId: string) => {
17
17
  isFallback: boolean;
18
- preferred: PaymentMethod[] | (import("../domains/paymentMethods").PaymentMethodBrokerageInfo | import("../domains/paymentMethods").PaymentMethodAccountInfo | import("../domains/paymentMethods").PaymentMethodVirtualBankInfo)[];
18
+ preferred: (import("../domains/paymentMethods").PaymentMethodAccountInfo | import("../domains/paymentMethods").PaymentMethodBrokerageInfo | import("../domains/paymentMethods").PaymentMethodVirtualBankInfo)[] | PaymentMethod[];
19
19
  moreSources: PaymentMethod[];
20
20
  unavailable: UnavailablePaymentSource[];
21
21
  hasUsableBalance: boolean;
@@ -7,7 +7,7 @@ import type { Address } from 'viem';
7
7
  * navigating between them reuses the already-loaded balance instead of
8
8
  * refetching from scratch (no loading flash on entry).
9
9
  */
10
- export declare const polymarketAccountBalanceQueryKey: (address: Address | undefined) => readonly ["polymarket", "accountBalanceUsd", `0x${string}` | null];
10
+ export declare const polymarketAccountBalanceQueryKey: (address: Address | undefined) => readonly ['polymarket', 'accountBalanceUsd', `0x${string}` | null];
11
11
  /**
12
12
  * Refetches the given accounts' balances right away — call once the
13
13
  * integrator's `transfer` resolves so the displayed numbers move without
package/dist/index.css CHANGED
@@ -14701,7 +14701,7 @@
14701
14701
  }
14702
14702
  }
14703
14703
 
14704
- /* vanilla-extract-css-ns:src/components/Dialog/DialogContent.css.ts.vanilla.css?source=#H4sIAAAAAAAAA7VYy27sNgzd369QcTcZoAo8D-dOHaAouu-u-4KWOLY6smTI8jxa5N8LP2NZnsS6bTcJTPGQR9IhqeT5j235lz3s9lvy9xdCCrjRHEWW24TEu7i8vfbGq-A2T8g2ii7XxtZ_H-Ko8Xn78jzGSXKonr5WujYMKctBZUhLyHDjJTh2CXxwiaasqDWgqhOaDv0j8by0vBdgzmjpDMC0sqhsQEarz6hmGdejZbOuhMqoUBctWPCGTwIs5WhByFAo0-okTAFWaBWOLUqJNpjuVdicG7iCpP9BiJPU17ANK2SW4q0T1_clLTRv2YcKpbpCWSKn4mSgWFKl60ClBi5U5meIvQy7zkeoodj2x6grQPd7AtmHQw7hkLiFlMCbnVDT8Y9eJzaJp840Qb20qFQbjmbIFZEfRFFqY0FZx_k4ZyWUsALkhBcDyZ7a_kMo2UflbfM6v7SouuRu2FX95Pj9_SRqErq2n-IHLNb1mJCIq_tOSNAVvWhVOPj8Ssdp4upo1wtyprjBvHDlo86sLtsg1AAXdZWQC5gnSs25NYiu7H_TqZC4mcHaLIG4VFurCzdj5K-7oRcchvJoVvQFTdMSE5ILzlG99qc4bNmtMggYt155QJAwH6DXi_BBgDWCewBdM_weYz-eXI9wAcNvRYgHw--DDX82_DxoGt7xeQsZlEhvUy2O1ntCoLa6sVXMaClTMDSrrUWTkMpCKtFd69PVqkK3-_MkoVdMz8LS0btlwEVVSriPmJHyS7eBFNg5M7pWnDIttZnUbftddYX76-i2-TQvtXldpNPZ9VFL2KxjYdFYAeb-O97sGgoG2Lmj8O82iJ9s8P-KnuSNSlbmqJBpxRdP5-Sq4CSxvfbmN-XCIGsKPyFMy7poxTlUQTNZ3CrIQkP5mh5F6ElaaYXz2nivmN6pK5YJpdx5V41vqKWnljNXZ2UaHuBnwsWl_7nYPx4904B8ZTmys64t5QKkzoa30RITJ4pParbsn_fQXZY6zmwidheZkC3Z-uc8Zd29-_uxO7SZ0BMULaodmKKTjS6BCXsn0fOuIggVUqGort3T-9ODgZQkeo5nEPdCdnHfrf2HwST22bvIHuWnO_Tp-lxLYX8pkAtorgRREVCcPE3mx7eXY3nrJs_7Xz_t5_z_AoS8TZ12vdPSLJpPoxl070MPuzl0tDjQwwI09qCLhNMFqEf48E747R9KAONWTxEAAA */
14704
+ /* vanilla-extract-css-ns:src/components/Dialog/DialogContent.css.ts.vanilla.css?source=#H4sIAAAAAAAAA7VYy47rNgzd369QcTcToBo4r7m5HqAouu-u-4KWGFuNLBmynEeL-ffCz7EsZ2JNezcJTPOQlHTIo-T5z3Xxt91ttmvyzxdCcrjSDEWa2ZjsN_vi-toZL4LbLCbrKDpfalv3vNtHtc_bl-chTpxB-fS11JVhSFkGKkVaQIorL8GhTeCDCzRFSa0BVR7RtOifieel5S0Hc0JLJwCmlUVlAzJafUI1ybgcLev3SqiUCnXWggUv-CjAUo4WhAyFMq2OwuRghVafwJ7R2HBYXki0wau8CJtxAxeQ9H8IcZT6ErZWhcxSvLac_FzSXPOm-lB-lRcoCuRUHA3kc2R2HajUwIVK_Qx7L8Om9RGq79HtIWr71n0eQbbhkF04ZN9ACuD1Sqhp649eRzaJx9Y0Qr00qEQbjqbPFZGfRF5oY0FZx_kwrUooYQXIUV0MJHtqxhahZBsV19Xr9NCi8py5YReNocPnx1BUJ3Rt3_d3qlg2mkIiLh5XIUEXjLCQcA9G06JQ8Jgdg565lNx03J6QtzfPsGegrNVFE4Qa4KIqY3IG80SpOTUG0U6Q33UiJK4msCZLIC7R1urczRj5793QMw59p9Vv9BlNPV1jkgnOUb12u9gv2W1YCBB8r9MgiON30Mv5fCfAEu7egS6R3_vYj0XwHi5ARxeEuKOjHyz4kY560CRcPHgD6ZlIr2MuDtZbTKCyuraVzGgpEzA0raxFE5PSQiLRfdelq1SJrpDwOKYXTE7C0sG7qYCLspBwGzBDyS_tAhJgp9ToSnHKtNRm1LfNc9k27m-D2-phXmqzKk_GMvjRSFgtq8KisQLM7Q-82iUlGGCntoT_tkB8sMAfFT3OapYszFEi04rP7s7RZcFRYnPs9TflwiCrGz8mTMsqb8jZd0GtLG4XpKGhfE4PJPQorbTCaW-8d0zn1DbLqKTMuaIN17G5W5ujq5M2DQ_wC-Hi3H3Ozo97Nz4gX1mG7KQrS7kAqdP-mjVXiRPFL2ry2t_vfrrMTZyJIrYHGZM1Wfv7PK66_QnRyW4_ZkJ3UDSoRjBFSxtdABP2RqLnTUkQSqRCUV25u_eXBwMpSfS8n0DcA9nsu2ntXwxGsU_eQXYoP92uS9flmgv7a45cQH0kiIqA4uRppB_fXg7FtVWe9x9SzeP0nwlC3sZOm85pToumajSBbn3objOFDhYHupuB7j3obMHJDNQrePde8Nu_p8xgx9ERAAA */
14705
14705
  [data-rk] ._1pzt4231 {
14706
14706
  max-height: 525px;
14707
14707
  max-width: 100vw;
@@ -14726,6 +14726,9 @@
14726
14726
  [data-rk] ._1pzt4231:has(#confirmation-page) {
14727
14727
  max-height: 825px;
14728
14728
  }
14729
+ [data-rk] ._1pzt4231:has(#convert-page) {
14730
+ max-height: 825px;
14731
+ }
14729
14732
  [data-rk] ._1pzt4231:has(#complete-page) {
14730
14733
  max-height: 825px;
14731
14734
  }
@@ -14786,6 +14789,10 @@
14786
14789
  max-height: 80vh;
14787
14790
  max-height: 95svh;
14788
14791
  }
14792
+ [data-rk] ._1pzt4238:has(#convert-page) {
14793
+ max-height: 80vh;
14794
+ max-height: 95svh;
14795
+ }
14789
14796
  [data-rk] ._1pzt423a {
14790
14797
  min-width: initial;
14791
14798
  width: 100vw;
package/dist/index.d.ts CHANGED
@@ -51,5 +51,7 @@ export { useSolanaWithdrawalConfig, type SolanaWithdrawalConfig, } from './walle
51
51
  export { useHypercoreWithdrawalConfig, type HypercoreSigner, type HypercoreWithdrawalOptions, } from './wallets/hypercoreWithdrawal';
52
52
  export { createMultiSourceWithdrawalConfig, type MultiSourceWithdrawalOptions, } from './wallets/multiSourceWithdrawal';
53
53
  export type { ConvertAsset, ConvertConfig, ConvertErrorResult, ConvertErrorStage, ConvertRecipientAddresses, ConvertResolvedAsset, ConvertAssetBalance, ConvertSourceWallet, ConvertSuccessResult, ConvertTransaction, ConvertVm, GetConvertBalances, GetConvertSourceWallet, } from './domains/convert/types';
54
+ export { FunError } from './utils/funError';
55
+ export type { FunErrorOptions } from './utils/funError';
54
56
  export { useFunkitAccount, useFunkitDisconnect, useFunkitReconnect, useFunkitSwitchChains, } from './providers/GeneralWalletProvider';
55
57
  export { SelectedHomeTab } from './modals/ProfileDetails/FunProfileViews/Home';