@funkit/connect 5.3.5 → 5.3.6

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 (27) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/components/Dropdown/ChainDropdown.d.ts +6 -3
  3. package/dist/components/Dropdown/TokenDropdown.d.ts +7 -3
  4. package/dist/components/FunFeatureList/FunFeatureList.d.ts +3 -1
  5. package/dist/index.js +190 -122
  6. package/dist/providers/FunkitHistoryContext.d.ts +9 -5
  7. package/dist/utils/purifyCheckoutHistoryItem.d.ts +24 -3
  8. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  9. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  10. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  11. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  12. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  13. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  14. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  15. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  16. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  17. package/dist/wallets/walletConnectors/index.js +65 -65
  18. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  19. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  20. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  21. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  22. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  23. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  24. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  25. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  26. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  27. package/package.json +4 -4
@@ -19,18 +19,22 @@ export declare function FunkitCheckoutHistoryProvider({ children, }: {
19
19
  export declare function useCheckoutHistoryContext(): FunkitCheckoutHistoryContextInterface;
20
20
  /**
21
21
  * External hook to listen for checkout history every 5000ms
22
- *
23
22
  * @param userId ID of the user (wallet address)
24
23
  * @returns PurifiedCheckoutHistoryItem[]
25
24
  */
26
- export declare function useCheckoutsListenerByUserId(userId: string): PurifiedCheckoutHistoryItem[];
25
+ export declare function useCheckoutsListenerByUserId(userId: string | undefined): {
26
+ data?: PurifiedCheckoutHistoryItem[];
27
+ isLoading: boolean;
28
+ };
27
29
  /**
28
30
  * External hook to listen for checkout history every 5000ms
29
- *
30
31
  * @param checkoutId ID of the checkout
31
- * @returns PurifiedCheckoutHistoryItem | undefined
32
+ * @returns PurifiedCheckoutHistoryItem | null
32
33
  */
33
- export declare function useCheckoutListenerByCheckoutId(checkoutId: string): PurifiedCheckoutHistoryItem | undefined;
34
+ export declare function useCheckoutListenerByCheckoutId(checkoutId: Hex | undefined): {
35
+ data?: PurifiedCheckoutHistoryItem | null;
36
+ isLoading: boolean;
37
+ };
34
38
  /**
35
39
  * Internal hook to handle post-checkout, PER-BACKEND-CHECKOUT ITEM.
36
40
  */
@@ -1,3 +1,24 @@
1
- import type { CheckoutHistoryItem } from '@funkit/api-base';
2
- export type PurifiedCheckoutHistoryItem = Pick<CheckoutHistoryItem, 'depositAddr' | 'state' | 'fromChainId' | 'fromTokenAddress' | 'toChainId' | 'toTokenAddress' | 'toAmountBaseUnit'>;
3
- export declare const purifyCheckoutHistoryItem: (item: CheckoutHistoryItem) => PurifiedCheckoutHistoryItem;
1
+ import { type CheckoutHistoryItem, CheckoutState, type DirectExecution } from '@funkit/api-base';
2
+ import type { Address, Hex } from 'viem';
3
+ export type PurifiedCheckoutHistoryItem = {
4
+ depositAddr?: Address;
5
+ directExecution: boolean;
6
+ id: Hex;
7
+ fromAmountBaseUnit: string;
8
+ fromChainId: string;
9
+ fromTokenAddress: Address;
10
+ state: CheckoutState;
11
+ toAmountBaseUnit: string;
12
+ toChainId: string;
13
+ toTokenAddress: Address;
14
+ txHash?: Hex;
15
+ } & ({
16
+ depositAddr: Address;
17
+ directExecution: false;
18
+ txHash?: never;
19
+ } | {
20
+ depositAddr?: never;
21
+ directExecution: true;
22
+ txHash: Hex;
23
+ });
24
+ export declare const purifyCheckoutHistoryItem: (item: CheckoutHistoryItem | DirectExecution) => PurifiedCheckoutHistoryItem;
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bifrostWallet
4
- } from "../chunk-545L7Y4M.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-W6N74MS3.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.js";
7
7
  export {
8
8
  bifrostWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bitgetWallet
4
- } from "../chunk-7GSNBOD3.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-A5APNTGL.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.js";
7
7
  export {
8
8
  bitgetWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bybitWallet
4
- } from "../chunk-W5O4YSZN.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-6ONTSPEY.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.js";
7
7
  export {
8
8
  bybitWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  clvWallet
4
- } from "../chunk-LEXSM5KI.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-KR6JBW5E.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.js";
7
7
  export {
8
8
  clvWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  coin98Wallet
4
- } from "../chunk-KFFJPS5R.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-DTRYS3MO.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.js";
7
7
  export {
8
8
  coin98Wallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  coreWallet
4
- } from "../chunk-JXP2QPW7.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-HBA36GW3.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.js";
7
7
  export {
8
8
  coreWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  foxWallet
4
- } from "../chunk-XYBEMO3C.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-LMZMXEXL.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.js";
7
7
  export {
8
8
  foxWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  frontierWallet
4
- } from "../chunk-HKV7EMYZ.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-3S2U24BJ.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.js";
7
7
  export {
8
8
  frontierWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  gateWallet
4
- } from "../chunk-3NC26XLM.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-GSOYKKIS.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.js";
7
7
  export {
8
8
  gateWallet
9
9
  };
@@ -1,28 +1,22 @@
1
1
  "use client";
2
2
  import {
3
- xdefiWallet
4
- } from "./chunk-NO7XMBB5.js";
5
- import {
6
- zealWallet
7
- } from "./chunk-JROWU5BP.js";
3
+ walletConnectWallet
4
+ } from "./chunk-NP5QGWNL.js";
8
5
  import {
9
6
  zerionWallet
10
- } from "./chunk-ETTNDQQG.js";
7
+ } from "./chunk-AXWP3GD4.js";
11
8
  import {
12
- tokenPocketWallet
13
- } from "./chunk-FRGSRLTS.js";
9
+ xdefiWallet
10
+ } from "./chunk-NO7XMBB5.js";
14
11
  import {
15
- safeheronWallet
16
- } from "./chunk-R6RWZRFF.js";
12
+ subWallet
13
+ } from "./chunk-AD2KIJB6.js";
17
14
  import {
18
15
  tahoWallet
19
16
  } from "./chunk-6P2EMPZI.js";
20
17
  import {
21
- subWallet
22
- } from "./chunk-4UM4GTKZ.js";
23
- import {
24
- trustWallet
25
- } from "./chunk-IPOC2VJX.js";
18
+ talismanWallet
19
+ } from "./chunk-ABFSXBE6.js";
26
20
  import {
27
21
  tokenaryWallet
28
22
  } from "./chunk-SLOIIJGP.js";
@@ -30,124 +24,130 @@ import {
30
24
  uniswapWallet
31
25
  } from "./chunk-LH7BMNFZ.js";
32
26
  import {
33
- walletConnectWallet
34
- } from "./chunk-NP5QGWNL.js";
27
+ trustWallet
28
+ } from "./chunk-ISIBREBO.js";
35
29
  import {
36
- rabbyWallet
37
- } from "./chunk-BVX4XGNP.js";
30
+ tokenPocketWallet
31
+ } from "./chunk-IDKVN5CF.js";
32
+ import {
33
+ zealWallet
34
+ } from "./chunk-JROWU5BP.js";
35
+ import {
36
+ oneKeyWallet
37
+ } from "./chunk-4AD7VI2P.js";
38
38
  import {
39
39
  rainbowWallet
40
- } from "./chunk-MOOBCMMB.js";
40
+ } from "./chunk-2UCNRD7H.js";
41
41
  import {
42
42
  ramperWallet
43
43
  } from "./chunk-PIUNLQJG.js";
44
44
  import {
45
45
  roninWallet
46
- } from "./chunk-25VW5TZP.js";
46
+ } from "./chunk-63YLN6R5.js";
47
+ import {
48
+ safeheronWallet
49
+ } from "./chunk-R6RWZRFF.js";
47
50
  import {
48
51
  safepalWallet
49
- } from "./chunk-6LPM6LUQ.js";
52
+ } from "./chunk-MSFKSQBY.js";
50
53
  import {
51
- ledgerWallet
52
- } from "./chunk-BRBKM4PW.js";
54
+ oneInchWallet
55
+ } from "./chunk-OESTDX6I.js";
53
56
  import {
54
57
  safeWallet
55
58
  } from "./chunk-BQQQL6UD.js";
56
59
  import {
57
- talismanWallet
58
- } from "./chunk-ABFSXBE6.js";
60
+ ledgerWallet
61
+ } from "./chunk-BRBKM4PW.js";
59
62
  import {
60
63
  metaMaskWallet
61
- } from "./chunk-N2NIIUW6.js";
64
+ } from "./chunk-G73C6P5P.js";
62
65
  import {
63
66
  oktoWallet
64
67
  } from "./chunk-ADIXAKUL.js";
68
+ import {
69
+ okxWallet
70
+ } from "./chunk-4WEHDI4Y.js";
65
71
  import {
66
72
  mewWallet
67
73
  } from "./chunk-V57WLZEE.js";
68
74
  import {
69
75
  omniWallet
70
76
  } from "./chunk-7CUY5G6R.js";
71
- import {
72
- okxWallet
73
- } from "./chunk-3U3BMEH5.js";
74
- import {
75
- oneInchWallet
76
- } from "./chunk-OESTDX6I.js";
77
- import {
78
- oneKeyWallet
79
- } from "./chunk-4AD7VI2P.js";
80
77
  import {
81
78
  phantomWallet
82
79
  } from "./chunk-ZSVTX6EK.js";
83
80
  import {
84
- enkryptWallet
85
- } from "./chunk-SJTXS4ZW.js";
81
+ rabbyWallet
82
+ } from "./chunk-BVX4XGNP.js";
83
+ import {
84
+ foxWallet
85
+ } from "./chunk-LMZMXEXL.js";
86
86
  import {
87
87
  frontierWallet
88
- } from "./chunk-HKV7EMYZ.js";
88
+ } from "./chunk-3S2U24BJ.js";
89
89
  import {
90
- injectedWallet
91
- } from "./chunk-VCVVV2K7.js";
90
+ frameWallet
91
+ } from "./chunk-ZMYVTWDF.js";
92
+ import {
93
+ gateWallet
94
+ } from "./chunk-GSOYKKIS.js";
92
95
  import {
93
96
  imTokenWallet
94
97
  } from "./chunk-COZ7MIQS.js";
98
+ import {
99
+ injectedWallet
100
+ } from "./chunk-VCVVV2K7.js";
95
101
  import {
96
102
  kresusWallet
97
103
  } from "./chunk-MJXPRJZT.js";
98
104
  import {
99
- gateWallet
100
- } from "./chunk-3NC26XLM.js";
101
- import {
102
- frameWallet
103
- } from "./chunk-ZMYVTWDF.js";
104
- import {
105
- braveWallet
106
- } from "./chunk-PB254NQ4.js";
105
+ clvWallet
106
+ } from "./chunk-KR6JBW5E.js";
107
107
  import {
108
108
  coin98Wallet
109
- } from "./chunk-KFFJPS5R.js";
109
+ } from "./chunk-DTRYS3MO.js";
110
110
  import {
111
111
  coinbaseWallet
112
112
  } from "./chunk-H4IRCEZN.js";
113
113
  import {
114
114
  coreWallet
115
- } from "./chunk-JXP2QPW7.js";
115
+ } from "./chunk-HBA36GW3.js";
116
116
  import {
117
117
  dawnWallet
118
118
  } from "./chunk-LN7OD5EC.js";
119
+ import {
120
+ bloomWallet
121
+ } from "./chunk-S27IADFU.js";
119
122
  import {
120
123
  desigWallet
121
124
  } from "./chunk-CTU6JCOK.js";
122
125
  import {
123
- foxWallet
124
- } from "./chunk-XYBEMO3C.js";
125
- import {
126
- bybitWallet
127
- } from "./chunk-W5O4YSZN.js";
126
+ enkryptWallet
127
+ } from "./chunk-SJTXS4ZW.js";
128
128
  import {
129
129
  argentWallet
130
130
  } from "./chunk-WSQ2YJO2.js";
131
131
  import {
132
132
  bifrostWallet
133
- } from "./chunk-545L7Y4M.js";
133
+ } from "./chunk-W6N74MS3.js";
134
+ import {
135
+ bitgetWallet
136
+ } from "./chunk-A5APNTGL.js";
134
137
  import {
135
138
  bitskiWallet
136
139
  } from "./chunk-P74YPRF6.js";
137
- import {
138
- bitgetWallet
139
- } from "./chunk-7GSNBOD3.js";
140
140
  import {
141
141
  bitverseWallet
142
142
  } from "./chunk-3HZRRP4Y.js";
143
143
  import {
144
- bloomWallet
145
- } from "./chunk-S27IADFU.js";
144
+ braveWallet
145
+ } from "./chunk-PB254NQ4.js";
146
146
  import {
147
- clvWallet
148
- } from "./chunk-LEXSM5KI.js";
149
- import "./chunk-WRA2DVJ7.js";
147
+ bybitWallet
148
+ } from "./chunk-6ONTSPEY.js";
150
149
  import "./chunk-23WIEY36.js";
150
+ import "./chunk-WRA2DVJ7.js";
151
151
  export {
152
152
  argentWallet,
153
153
  bifrostWallet,
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  metaMaskWallet
4
- } from "../chunk-N2NIIUW6.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-G73C6P5P.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.js";
7
7
  export {
8
8
  metaMaskWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  okxWallet
4
- } from "../chunk-3U3BMEH5.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-4WEHDI4Y.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.js";
7
7
  export {
8
8
  okxWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  rainbowWallet
4
- } from "../chunk-MOOBCMMB.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-2UCNRD7H.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.js";
7
7
  export {
8
8
  rainbowWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  roninWallet
4
- } from "../chunk-25VW5TZP.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-63YLN6R5.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.js";
7
7
  export {
8
8
  roninWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  safepalWallet
4
- } from "../chunk-6LPM6LUQ.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-MSFKSQBY.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.js";
7
7
  export {
8
8
  safepalWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  subWallet
4
- } from "../chunk-4UM4GTKZ.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-AD2KIJB6.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.js";
7
7
  export {
8
8
  subWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  tokenPocketWallet
4
- } from "../chunk-FRGSRLTS.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-IDKVN5CF.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.js";
7
7
  export {
8
8
  tokenPocketWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  trustWallet
4
- } from "../chunk-IPOC2VJX.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-ISIBREBO.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.js";
7
7
  export {
8
8
  trustWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  zerionWallet
4
- } from "../chunk-ETTNDQQG.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-AXWP3GD4.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.js";
7
7
  export {
8
8
  zerionWallet
9
9
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkit/connect",
3
- "version": "5.3.5",
3
+ "version": "5.3.6",
4
4
  "description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
5
5
  "files": [
6
6
  "dist",
@@ -91,11 +91,11 @@
91
91
  "react-virtuoso": "4.10.1",
92
92
  "ua-parser-js": "^1.0.37",
93
93
  "uuid": "^9.0.1",
94
- "@funkit/api-base": "1.8.2",
94
+ "@funkit/core": "2.3.19",
95
+ "@funkit/fun-relay": "0.1.2",
95
96
  "@funkit/chains": "0.2.3",
96
- "@funkit/fun-relay": "0.1.1",
97
+ "@funkit/api-base": "1.8.2",
97
98
  "@funkit/utils": "1.0.13",
98
- "@funkit/core": "2.3.19",
99
99
  "@funkit/wagmi-tools": "3.0.41"
100
100
  },
101
101
  "repository": {