@funkit/connect 5.3.3 → 5.3.5

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 (73) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/dist/{chunk-ZX757M5P.js → chunk-CRTRMZFT.js} +8 -1
  3. package/dist/{chunk-AIST42FG.js → chunk-KCSHTK5R.js} +8 -1
  4. package/dist/components/Box/Box.d.ts +21 -21
  5. package/dist/components/FunCheckoutHistory/FunCheckoutHistoryContent.d.ts +0 -1
  6. package/dist/components/FunCheckoutHistory/FunDirectExecutionHistoryDetail.d.ts +6 -3
  7. package/dist/components/FunTransactionSummary/PaymentMethodSummary.d.ts +1 -2
  8. package/dist/config/getDefaultConfig.d.ts +33 -0
  9. package/dist/css/sprinkles.css.d.ts +37 -23
  10. package/dist/domains/asset.d.ts +3 -2
  11. package/dist/domains/wallet.d.ts +1 -1
  12. package/dist/hooks/useCheckoutDirectExecution.d.ts +10 -1
  13. package/dist/hooks/useCheckoutDirectExecutionHistory.d.ts +3 -3
  14. package/dist/hooks/useFrogAccount.d.ts +1 -0
  15. package/dist/hooks/useReceiveAmountLabel.d.ts +2 -1
  16. package/dist/hooks/useRelayBypass.d.ts +2 -0
  17. package/dist/hooks/useRelayExecutionInfo.d.ts +1 -2
  18. package/dist/hooks/useWalletLabel.d.ts +5 -0
  19. package/dist/index.css +2023 -1582
  20. package/dist/index.js +2007 -2088
  21. package/dist/modals/CheckoutModal/InputAmount/InputAmountLoaded.d.ts +1 -1
  22. package/dist/modals/CheckoutModal/InputAmount/state.d.ts +2 -1
  23. package/dist/modals/CheckoutModal/LoadingAccount.d.ts +3 -1
  24. package/dist/modals/CheckoutModal/stepTransition.d.ts +2 -1
  25. package/dist/modals/ProfileDetails/ActivityTraversalContext.d.ts +4 -3
  26. package/dist/modals/ProfileDetails/FunProfileViews/Home/HomeCheckoutDisplayRow.d.ts +4 -4
  27. package/dist/providers/FunkitConfigContext.d.ts +1 -0
  28. package/dist/providers/FunkitHistoryContext.d.ts +4 -7
  29. package/dist/providers/FunkitThemeProvider.d.ts +24 -3
  30. package/dist/themes/darkTheme.js +1 -1
  31. package/dist/themes/lightTheme.js +1 -1
  32. package/dist/utils/checkout.d.ts +15 -14
  33. package/dist/utils/consts.d.ts +1 -0
  34. package/dist/utils/flags/config.d.ts +0 -20
  35. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  36. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  37. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  38. package/dist/wallets/walletConnectors/chunk-25VW5TZP.js +92 -0
  39. package/dist/wallets/walletConnectors/chunk-3NC26XLM.js +92 -0
  40. package/dist/wallets/walletConnectors/chunk-3U3BMEH5.js +94 -0
  41. package/dist/wallets/walletConnectors/chunk-4UM4GTKZ.js +103 -0
  42. package/dist/wallets/walletConnectors/chunk-545L7Y4M.js +69 -0
  43. package/dist/wallets/walletConnectors/chunk-6LPM6LUQ.js +110 -0
  44. package/dist/wallets/walletConnectors/chunk-7GSNBOD3.js +99 -0
  45. package/dist/wallets/walletConnectors/chunk-ETTNDQQG.js +100 -0
  46. package/dist/wallets/walletConnectors/chunk-FRGSRLTS.js +93 -0
  47. package/dist/wallets/walletConnectors/chunk-HKV7EMYZ.js +96 -0
  48. package/dist/wallets/walletConnectors/chunk-IPOC2VJX.js +106 -0
  49. package/dist/wallets/walletConnectors/chunk-JXP2QPW7.js +95 -0
  50. package/dist/wallets/walletConnectors/chunk-KFFJPS5R.js +96 -0
  51. package/dist/wallets/walletConnectors/chunk-LEXSM5KI.js +87 -0
  52. package/dist/wallets/walletConnectors/chunk-MOOBCMMB.js +70 -0
  53. package/dist/wallets/walletConnectors/chunk-N2NIIUW6.js +146 -0
  54. package/dist/wallets/walletConnectors/chunk-W5O4YSZN.js +98 -0
  55. package/dist/wallets/walletConnectors/chunk-XYBEMO3C.js +66 -0
  56. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  57. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  58. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  59. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  60. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  61. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  62. package/dist/wallets/walletConnectors/index.js +56 -56
  63. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  64. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  65. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  66. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  67. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  68. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  69. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  70. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  71. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  72. package/package.json +12 -12
  73. package/dist/domains/relay.d.ts +0 -53
@@ -0,0 +1,98 @@
1
+ "use client";
2
+ import {
3
+ getInjectedConnector,
4
+ hasInjectedProvider
5
+ } from "./chunk-WRA2DVJ7.js";
6
+ import {
7
+ getWalletConnectConnector
8
+ } from "./chunk-23WIEY36.js";
9
+
10
+ // src/wallets/walletConnectors/bybitWallet/bybitWallet.ts
11
+ var bybitWallet = ({
12
+ projectId,
13
+ walletConnectParameters
14
+ }) => {
15
+ const isBybitInjected = hasInjectedProvider({
16
+ namespace: "bybitWallet"
17
+ });
18
+ const shouldUseWalletConnect = !isBybitInjected;
19
+ const getUri = (uri) => {
20
+ return `bybitapp://open/route?targetUrl=by://web3/walletconnect/wc?uri=${encodeURIComponent(
21
+ uri
22
+ )}`;
23
+ };
24
+ return {
25
+ id: "bybit",
26
+ name: "Bybit Wallet",
27
+ rdns: "com.bybit",
28
+ iconUrl: async () => (await import("./bybitWallet-GOPAS32Q.js")).default,
29
+ installed: !shouldUseWalletConnect ? isBybitInjected : void 0,
30
+ iconBackground: "#000000",
31
+ downloadUrls: {
32
+ chrome: "https://chromewebstore.google.com/detail/bybit-wallet/pdliaogehgdbhbnmkklieghmmjkpigpa",
33
+ browserExtension: "https://www.bybit.com/en/web3",
34
+ android: "https://play.google.com/store/apps/details?id=com.bybit.app",
35
+ ios: "https://apps.apple.com/us/app/bybit-buy-trade-crypto/id1488296980",
36
+ mobile: "https://www.bybit.com/en/web3",
37
+ qrCode: "https://www.bybit.com/en/web3"
38
+ },
39
+ mobile: {
40
+ getUri: shouldUseWalletConnect ? getUri : void 0
41
+ },
42
+ qrCode: shouldUseWalletConnect ? {
43
+ getUri: (uri) => uri,
44
+ instructions: {
45
+ learnMoreUrl: "https://www.bybit.com/en/web3",
46
+ steps: [
47
+ {
48
+ description: "wallet_connectors.bybit.qr_code.step1.description",
49
+ step: "install",
50
+ title: "wallet_connectors.bybit.qr_code.step1.title"
51
+ },
52
+ {
53
+ description: "wallet_connectors.bybit.qr_code.step2.description",
54
+ step: "create",
55
+ title: "wallet_connectors.bybit.qr_code.step2.title"
56
+ },
57
+ {
58
+ description: "wallet_connectors.bybit.qr_code.step3.description",
59
+ step: "scan",
60
+ title: "wallet_connectors.bybit.qr_code.step3.title"
61
+ }
62
+ ]
63
+ }
64
+ } : void 0,
65
+ extension: {
66
+ instructions: {
67
+ learnMoreUrl: "https://www.bybit.com/en/web3",
68
+ steps: [
69
+ {
70
+ description: "wallet_connectors.bybit.extension.step1.description",
71
+ step: "install",
72
+ title: "wallet_connectors.bybit.extension.step1.title"
73
+ },
74
+ {
75
+ description: "wallet_connectors.bybit.extension.step2.description",
76
+ step: "create",
77
+ title: "wallet_connectors.bybit.extension.step2.title"
78
+ },
79
+ {
80
+ description: "wallet_connectors.bybit.extension.step3.description",
81
+ step: "refresh",
82
+ title: "wallet_connectors.bybit.extension.step3.title"
83
+ }
84
+ ]
85
+ }
86
+ },
87
+ createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
88
+ projectId,
89
+ walletConnectParameters
90
+ }) : getInjectedConnector({
91
+ namespace: "bybitWallet"
92
+ })
93
+ };
94
+ };
95
+
96
+ export {
97
+ bybitWallet
98
+ };
@@ -0,0 +1,66 @@
1
+ "use client";
2
+ import {
3
+ getInjectedConnector,
4
+ hasInjectedProvider
5
+ } from "./chunk-WRA2DVJ7.js";
6
+ import {
7
+ getWalletConnectConnector
8
+ } from "./chunk-23WIEY36.js";
9
+
10
+ // src/wallets/walletConnectors/foxWallet/foxWallet.ts
11
+ var foxWallet = ({
12
+ projectId,
13
+ walletConnectParameters
14
+ }) => {
15
+ const isFoxInjected = hasInjectedProvider({
16
+ namespace: "foxwallet.ethereum"
17
+ });
18
+ const shouldUseWalletConnect = !isFoxInjected;
19
+ return {
20
+ id: "foxwallet",
21
+ name: "FoxWallet",
22
+ iconUrl: async () => (await import("./foxWallet-I7D5KIW4.js")).default,
23
+ iconBackground: "#fff",
24
+ downloadUrls: {
25
+ android: "https://play.google.com/store/apps/details?id=com.foxwallet.play",
26
+ ios: "https://apps.apple.com/app/foxwallet-crypto-web3/id1590983231",
27
+ qrCode: "https://foxwallet.com/download"
28
+ },
29
+ mobile: {
30
+ getUri: shouldUseWalletConnect ? (uri) => {
31
+ return `foxwallet://wc?uri=${encodeURIComponent(uri)}`;
32
+ } : void 0
33
+ },
34
+ qrCode: shouldUseWalletConnect ? {
35
+ getUri: (uri) => uri,
36
+ instructions: {
37
+ learnMoreUrl: "https://foxwallet.com",
38
+ steps: [
39
+ {
40
+ description: "wallet_connectors.fox.qr_code.step1.description",
41
+ step: "install",
42
+ title: "wallet_connectors.fox.qr_code.step1.title"
43
+ },
44
+ {
45
+ description: "wallet_connectors.fox.qr_code.step2.description",
46
+ step: "create",
47
+ title: "wallet_connectors.fox.qr_code.step2.title"
48
+ },
49
+ {
50
+ description: "wallet_connectors.fox.qr_code.step3.description",
51
+ step: "scan",
52
+ title: "wallet_connectors.fox.qr_code.step3.title"
53
+ }
54
+ ]
55
+ }
56
+ } : void 0,
57
+ createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
58
+ projectId,
59
+ walletConnectParameters
60
+ }) : getInjectedConnector({ namespace: "foxwallet.ethereum" })
61
+ };
62
+ };
63
+
64
+ export {
65
+ foxWallet
66
+ };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  clvWallet
4
- } from "../chunk-KR6JBW5E.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-LEXSM5KI.js";
6
5
  import "../chunk-WRA2DVJ7.js";
6
+ import "../chunk-23WIEY36.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-DTRYS3MO.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-KFFJPS5R.js";
6
5
  import "../chunk-WRA2DVJ7.js";
6
+ import "../chunk-23WIEY36.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-HBA36GW3.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-JXP2QPW7.js";
6
5
  import "../chunk-WRA2DVJ7.js";
6
+ import "../chunk-23WIEY36.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-LMZMXEXL.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-XYBEMO3C.js";
6
5
  import "../chunk-WRA2DVJ7.js";
6
+ import "../chunk-23WIEY36.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-3S2U24BJ.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-HKV7EMYZ.js";
6
5
  import "../chunk-WRA2DVJ7.js";
6
+ import "../chunk-23WIEY36.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-GSOYKKIS.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-3NC26XLM.js";
6
5
  import "../chunk-WRA2DVJ7.js";
6
+ import "../chunk-23WIEY36.js";
7
7
  export {
8
8
  gateWallet
9
9
  };
@@ -2,75 +2,75 @@
2
2
  import {
3
3
  xdefiWallet
4
4
  } from "./chunk-NO7XMBB5.js";
5
- import {
6
- zerionWallet
7
- } from "./chunk-AXWP3GD4.js";
8
5
  import {
9
6
  zealWallet
10
7
  } from "./chunk-JROWU5BP.js";
11
8
  import {
12
- talismanWallet
13
- } from "./chunk-ABFSXBE6.js";
9
+ zerionWallet
10
+ } from "./chunk-ETTNDQQG.js";
11
+ import {
12
+ tokenPocketWallet
13
+ } from "./chunk-FRGSRLTS.js";
14
+ import {
15
+ safeheronWallet
16
+ } from "./chunk-R6RWZRFF.js";
14
17
  import {
15
18
  tahoWallet
16
19
  } from "./chunk-6P2EMPZI.js";
17
20
  import {
18
21
  subWallet
19
- } from "./chunk-AD2KIJB6.js";
22
+ } from "./chunk-4UM4GTKZ.js";
20
23
  import {
21
- tokenPocketWallet
22
- } from "./chunk-IDKVN5CF.js";
24
+ trustWallet
25
+ } from "./chunk-IPOC2VJX.js";
23
26
  import {
24
27
  tokenaryWallet
25
28
  } from "./chunk-SLOIIJGP.js";
26
- import {
27
- walletConnectWallet
28
- } from "./chunk-NP5QGWNL.js";
29
- import {
30
- trustWallet
31
- } from "./chunk-ISIBREBO.js";
32
29
  import {
33
30
  uniswapWallet
34
31
  } from "./chunk-LH7BMNFZ.js";
35
32
  import {
36
- phantomWallet
37
- } from "./chunk-ZSVTX6EK.js";
33
+ walletConnectWallet
34
+ } from "./chunk-NP5QGWNL.js";
38
35
  import {
39
36
  rabbyWallet
40
37
  } from "./chunk-BVX4XGNP.js";
41
38
  import {
42
39
  rainbowWallet
43
- } from "./chunk-2UCNRD7H.js";
44
- import {
45
- roninWallet
46
- } from "./chunk-63YLN6R5.js";
40
+ } from "./chunk-MOOBCMMB.js";
47
41
  import {
48
42
  ramperWallet
49
43
  } from "./chunk-PIUNLQJG.js";
50
44
  import {
51
- safeheronWallet
52
- } from "./chunk-R6RWZRFF.js";
53
- import {
54
- safeWallet
55
- } from "./chunk-BQQQL6UD.js";
45
+ roninWallet
46
+ } from "./chunk-25VW5TZP.js";
56
47
  import {
57
48
  safepalWallet
58
- } from "./chunk-MSFKSQBY.js";
49
+ } from "./chunk-6LPM6LUQ.js";
59
50
  import {
60
51
  ledgerWallet
61
52
  } from "./chunk-BRBKM4PW.js";
53
+ import {
54
+ safeWallet
55
+ } from "./chunk-BQQQL6UD.js";
56
+ import {
57
+ talismanWallet
58
+ } from "./chunk-ABFSXBE6.js";
62
59
  import {
63
60
  metaMaskWallet
64
- } from "./chunk-G73C6P5P.js";
61
+ } from "./chunk-N2NIIUW6.js";
62
+ import {
63
+ oktoWallet
64
+ } from "./chunk-ADIXAKUL.js";
65
65
  import {
66
66
  mewWallet
67
67
  } from "./chunk-V57WLZEE.js";
68
68
  import {
69
- oktoWallet
70
- } from "./chunk-ADIXAKUL.js";
69
+ omniWallet
70
+ } from "./chunk-7CUY5G6R.js";
71
71
  import {
72
72
  okxWallet
73
- } from "./chunk-4WEHDI4Y.js";
73
+ } from "./chunk-3U3BMEH5.js";
74
74
  import {
75
75
  oneInchWallet
76
76
  } from "./chunk-OESTDX6I.js";
@@ -78,23 +78,17 @@ import {
78
78
  oneKeyWallet
79
79
  } from "./chunk-4AD7VI2P.js";
80
80
  import {
81
- omniWallet
82
- } from "./chunk-7CUY5G6R.js";
83
- import {
84
- frameWallet
85
- } from "./chunk-ZMYVTWDF.js";
81
+ phantomWallet
82
+ } from "./chunk-ZSVTX6EK.js";
86
83
  import {
87
- foxWallet
88
- } from "./chunk-LMZMXEXL.js";
84
+ enkryptWallet
85
+ } from "./chunk-SJTXS4ZW.js";
89
86
  import {
90
87
  frontierWallet
91
- } from "./chunk-3S2U24BJ.js";
88
+ } from "./chunk-HKV7EMYZ.js";
92
89
  import {
93
90
  injectedWallet
94
91
  } from "./chunk-VCVVV2K7.js";
95
- import {
96
- gateWallet
97
- } from "./chunk-GSOYKKIS.js";
98
92
  import {
99
93
  imTokenWallet
100
94
  } from "./chunk-COZ7MIQS.js";
@@ -102,20 +96,23 @@ import {
102
96
  kresusWallet
103
97
  } from "./chunk-MJXPRJZT.js";
104
98
  import {
105
- bybitWallet
106
- } from "./chunk-6ONTSPEY.js";
99
+ gateWallet
100
+ } from "./chunk-3NC26XLM.js";
107
101
  import {
108
- clvWallet
109
- } from "./chunk-KR6JBW5E.js";
102
+ frameWallet
103
+ } from "./chunk-ZMYVTWDF.js";
104
+ import {
105
+ braveWallet
106
+ } from "./chunk-PB254NQ4.js";
110
107
  import {
111
108
  coin98Wallet
112
- } from "./chunk-DTRYS3MO.js";
109
+ } from "./chunk-KFFJPS5R.js";
113
110
  import {
114
111
  coinbaseWallet
115
112
  } from "./chunk-H4IRCEZN.js";
116
113
  import {
117
114
  coreWallet
118
- } from "./chunk-HBA36GW3.js";
115
+ } from "./chunk-JXP2QPW7.js";
119
116
  import {
120
117
  dawnWallet
121
118
  } from "./chunk-LN7OD5EC.js";
@@ -123,31 +120,34 @@ import {
123
120
  desigWallet
124
121
  } from "./chunk-CTU6JCOK.js";
125
122
  import {
126
- enkryptWallet
127
- } from "./chunk-SJTXS4ZW.js";
123
+ foxWallet
124
+ } from "./chunk-XYBEMO3C.js";
125
+ import {
126
+ bybitWallet
127
+ } from "./chunk-W5O4YSZN.js";
128
128
  import {
129
129
  argentWallet
130
130
  } from "./chunk-WSQ2YJO2.js";
131
131
  import {
132
132
  bifrostWallet
133
- } from "./chunk-W6N74MS3.js";
133
+ } from "./chunk-545L7Y4M.js";
134
134
  import {
135
135
  bitskiWallet
136
136
  } from "./chunk-P74YPRF6.js";
137
+ import {
138
+ bitgetWallet
139
+ } from "./chunk-7GSNBOD3.js";
137
140
  import {
138
141
  bitverseWallet
139
142
  } from "./chunk-3HZRRP4Y.js";
140
- import {
141
- bitgetWallet
142
- } from "./chunk-A5APNTGL.js";
143
143
  import {
144
144
  bloomWallet
145
145
  } from "./chunk-S27IADFU.js";
146
- import "./chunk-23WIEY36.js";
147
146
  import {
148
- braveWallet
149
- } from "./chunk-PB254NQ4.js";
147
+ clvWallet
148
+ } from "./chunk-LEXSM5KI.js";
150
149
  import "./chunk-WRA2DVJ7.js";
150
+ import "./chunk-23WIEY36.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-G73C6P5P.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-N2NIIUW6.js";
6
5
  import "../chunk-WRA2DVJ7.js";
6
+ import "../chunk-23WIEY36.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-4WEHDI4Y.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-3U3BMEH5.js";
6
5
  import "../chunk-WRA2DVJ7.js";
6
+ import "../chunk-23WIEY36.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-2UCNRD7H.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-MOOBCMMB.js";
6
5
  import "../chunk-WRA2DVJ7.js";
6
+ import "../chunk-23WIEY36.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-63YLN6R5.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-25VW5TZP.js";
6
5
  import "../chunk-WRA2DVJ7.js";
6
+ import "../chunk-23WIEY36.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-MSFKSQBY.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-6LPM6LUQ.js";
6
5
  import "../chunk-WRA2DVJ7.js";
6
+ import "../chunk-23WIEY36.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-AD2KIJB6.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-4UM4GTKZ.js";
6
5
  import "../chunk-WRA2DVJ7.js";
6
+ import "../chunk-23WIEY36.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-IDKVN5CF.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-FRGSRLTS.js";
6
5
  import "../chunk-WRA2DVJ7.js";
6
+ import "../chunk-23WIEY36.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-ISIBREBO.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-IPOC2VJX.js";
6
5
  import "../chunk-WRA2DVJ7.js";
6
+ import "../chunk-23WIEY36.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-AXWP3GD4.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-ETTNDQQG.js";
6
5
  import "../chunk-WRA2DVJ7.js";
6
+ import "../chunk-23WIEY36.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.3",
3
+ "version": "5.3.5",
4
4
  "description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
5
5
  "files": [
6
6
  "dist",
@@ -44,8 +44,8 @@
44
44
  "wagmi": "2.x"
45
45
  },
46
46
  "devDependencies": {
47
- "@aws-sdk/client-s3": "3.645.0",
48
47
  "@aws-sdk/client-cloudfront": "3.645.0",
48
+ "@aws-sdk/client-s3": "3.645.0",
49
49
  "@chromatic-com/storybook": "^3.2.6",
50
50
  "@meshconnect/node-api": "2.0.14",
51
51
  "@storybook/addon-essentials": "^8.6.7",
@@ -60,12 +60,12 @@
60
60
  "@testing-library/user-event": "^14.5.2",
61
61
  "@types/qrcode": "^1.5.5",
62
62
  "@types/ua-parser-js": "^0.7.39",
63
- "@vanilla-extract/css-utils": "0.1.4",
64
- "@vanilla-extract/private": "^1.0.3",
65
- "@vanilla-extract/vite-plugin": "^5.0.1",
63
+ "@vanilla-extract/css-utils": "^0.1.4",
64
+ "@vanilla-extract/private": "^1.0.7",
65
+ "@vanilla-extract/vite-plugin": "^5.0.3",
66
66
  "@vitejs/plugin-react": "^4.3.1",
67
67
  "autoprefixer": "^10.4.16",
68
- "jsdom": "^25.0.1",
68
+ "jsdom": "^26.1.0",
69
69
  "postcss": "^8.4.33",
70
70
  "react": "^18.3.0",
71
71
  "storybook": "^8.6.7",
@@ -78,7 +78,6 @@
78
78
  "@moonpay/moonpay-react": "^1.6.1",
79
79
  "@number-flow/react": "^0.5.5",
80
80
  "@privy-io/js-sdk-core": "^0.21.0",
81
- "@reservoir0x/relay-sdk": "^2.0.3",
82
81
  "@types/uuid": "^9.0.8",
83
82
  "@vanilla-extract/css": "1.15.3",
84
83
  "@vanilla-extract/dynamic": "2.1.0",
@@ -92,11 +91,12 @@
92
91
  "react-virtuoso": "4.10.1",
93
92
  "ua-parser-js": "^1.0.37",
94
93
  "uuid": "^9.0.1",
95
- "@funkit/api-base": "1.8.1",
96
- "@funkit/core": "2.3.18",
97
- "@funkit/chains": "0.2.2",
98
- "@funkit/wagmi-tools": "3.0.40",
99
- "@funkit/utils": "1.0.13"
94
+ "@funkit/api-base": "1.8.2",
95
+ "@funkit/chains": "0.2.3",
96
+ "@funkit/fun-relay": "0.1.1",
97
+ "@funkit/utils": "1.0.13",
98
+ "@funkit/core": "2.3.19",
99
+ "@funkit/wagmi-tools": "3.0.41"
100
100
  },
101
101
  "repository": {
102
102
  "type": "git",
@@ -1,53 +0,0 @@
1
- import type { CheckoutQuoteResponse } from '@funkit/api-base';
2
- import { type Execute } from '@reservoir0x/relay-sdk';
3
- import type { Address, WalletClient } from 'viem';
4
- export declare const RELAY_QUOTE_CHECKOUT_TIME_BUFFER_MS = 3000;
5
- export type RelayExecutionStatus = 'refund' | 'delayed' | 'waiting' | 'failure' | 'pending' | 'success';
6
- export interface RelayExecutionInfo {
7
- status: RelayExecutionStatus;
8
- details: string;
9
- /** Incoming transaction hashes */
10
- inTxHashes: string[];
11
- /** Outgoing transaction hashes */
12
- txHashes: string[];
13
- /** The last timestamp the data was updated in milliseconds */
14
- time: number;
15
- originChainId: number;
16
- destinationChainId: number;
17
- }
18
- export declare const TERMINAL_RELAY_STATUSES: RelayExecutionStatus[];
19
- export declare const RELAY_TRANSACTION_PAGE_URL = "https://relay.link/transaction/";
20
- export declare const FUN_RELAY_REVENUE_WALLET = "0xb61562d83aEC43a050A06BED12Ac2bD8f9BFfd5E";
21
- export declare const FUN_RELAY_REFERRER = "funxyz";
22
- export declare const RELAY_NATIVE_TOKEN = "0x0000000000000000000000000000000000000000";
23
- /**
24
- * Convert a token address within Funkit the corresponding Relay token address.
25
- */
26
- export declare function convertFunToRelayTokenAddress(address: string): string;
27
- export declare function parseRelayFees({ relayFeeItem, }: {
28
- relayFeeItem: Execute['fees'];
29
- }): {
30
- relayGasFeesUsd: number;
31
- totalLpFeesUsd: number;
32
- totalFeesUsd: number;
33
- totalFeesFromAmount: number;
34
- totalFeesFromAmountBaseUnit: bigint;
35
- };
36
- export declare function computeFunRelayFeeBps(): string;
37
- export declare function getRelayQuote({ toChainId, toTokenAddress, toTokenAmount, toTokenDecimals, fromChainId, fromTokenAddress, recipientAddress, userAddress, }: {
38
- toChainId: string;
39
- toTokenAddress: Address;
40
- toTokenAmount: number;
41
- toTokenDecimals: number;
42
- fromChainId: string;
43
- fromTokenAddress: Address;
44
- recipientAddress: Address | undefined;
45
- userAddress: Address | undefined;
46
- }): Promise<CheckoutQuoteResponse>;
47
- export declare function executeRelayQuote({ relayQuote, walletClient, stepMessageSetter, onConfirmed, onError, }: {
48
- relayQuote: Execute;
49
- walletClient: WalletClient | undefined;
50
- stepMessageSetter: (m: string) => void;
51
- onConfirmed: (txHash: string) => Promise<void>;
52
- onError: (error: Error) => Promise<void>;
53
- }): Promise<void>;