@funkit/connect 9.20.0 → 9.21.1-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.
Files changed (77) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist/__generated__/default_configs.d.ts +901 -0
  3. package/dist/__generated__/default_feature_gates.d.ts +20 -0
  4. package/dist/chunk-36KVHK22.js +252 -0
  5. package/dist/chunk-4YEAUICE.js +380 -0
  6. package/dist/chunk-67BKQQNG.js +252 -0
  7. package/dist/clients/chunk-25ICASD7.js +2371 -0
  8. package/dist/clients/{chunk-47AQXZQE.js → chunk-4HCOSF4M.js} +1 -1
  9. package/dist/clients/chunk-7GWX2ZS4.js +69 -0
  10. package/dist/clients/{chunk-CSONEKIF.js → chunk-7HNGV6JU.js} +1 -1
  11. package/dist/clients/chunk-EGMA6ATZ.js +2371 -0
  12. package/dist/clients/chunk-GGXTLJ7J.js +290 -0
  13. package/dist/clients/chunk-HRWCNZJA.js +230 -0
  14. package/dist/clients/chunk-JD3FIVZ7.js +69 -0
  15. package/dist/clients/chunk-JTGKAPID.js +2382 -0
  16. package/dist/clients/chunk-L7PABCF2.js +54 -0
  17. package/dist/clients/{chunk-JOM2J5WB.js → chunk-NCUPPJ2Z.js} +21 -10
  18. package/dist/clients/{chunk-UNCVGPTD.js → chunk-NUJ6ZM5F.js} +1 -1
  19. package/dist/clients/chunk-OJLDTEKB.js +54 -0
  20. package/dist/clients/chunk-SSSQQ32F.js +186 -0
  21. package/dist/clients/chunk-UVWNEQMD.js +186 -0
  22. package/dist/clients/chunk-YLZ7COFH.js +230 -0
  23. package/dist/clients/chunk-ZEFHAWRH.js +69 -0
  24. package/dist/clients/fanatics.css +2891 -2702
  25. package/dist/clients/fanatics.js +5 -5
  26. package/dist/clients/lighter.css +2891 -2702
  27. package/dist/clients/lighter.js +3 -3
  28. package/dist/clients/nado.d.ts +78 -0
  29. package/dist/clients/nado.js +107 -0
  30. package/dist/clients/polymarket/PolymarketDepositAccountDropdown.css +2909 -2717
  31. package/dist/clients/polymarket/PolymarketDepositAccountDropdown.js +4 -4
  32. package/dist/clients/polymarket/index.css +2909 -2717
  33. package/dist/clients/polymarket/index.js +4 -4
  34. package/dist/clients/polymarket.d.ts +161 -0
  35. package/dist/clients/polymarket.js +688 -0
  36. package/dist/components/Box/Box.d.ts +21 -21
  37. package/dist/components/FunButton/FunButton.css.d.ts +1 -0
  38. package/dist/components/FunOptionBox/FunOptionBox.css.d.ts +1 -1
  39. package/dist/css/sprinkles.css.d.ts +33 -21
  40. package/dist/hooks/useTokenTransferConfig.d.ts +7 -0
  41. package/dist/index.css +2909 -2717
  42. package/dist/index.js +227 -349
  43. package/dist/interfaces/logTransport.d.ts +51 -0
  44. package/dist/interfaces/swapped-transport.d.ts +78 -0
  45. package/dist/modals/CheckoutModal/SourceChange/EmptyFormOfPaymentsMessage.d.ts +4 -0
  46. package/dist/modals/CheckoutModal/SourceChange/useUpdateSourceAssetForCard.d.ts +4 -0
  47. package/dist/modals/CheckoutModal/SwappedIframe/SwappedErrorMessage.d.ts +6 -0
  48. package/dist/modals/WithdrawalModal/WithdrawalContent.d.ts +7 -0
  49. package/dist/providers/FunkitThemeProvider.d.ts +18 -0
  50. package/dist/themes/baseTheme.d.ts +3 -1
  51. package/dist/themes/baseTheme.js +1 -1
  52. package/dist/themes/darkTheme.js +2 -2
  53. package/dist/themes/lightTheme.js +2 -2
  54. package/dist/utils/flags/resolver.d.ts +34 -0
  55. package/dist/utils/tokenTransfer/disabledList.d.ts +1 -14
  56. package/dist/utils/tokenTransfer/types.d.ts +5 -30
  57. package/dist/wallets/walletConnectors/chunk-2VP2F6EK.js +70 -0
  58. package/dist/wallets/walletConnectors/chunk-4T6ZSRJF.js +69 -0
  59. package/dist/wallets/walletConnectors/chunk-6BW3HLBG.js +96 -0
  60. package/dist/wallets/walletConnectors/chunk-CCQV2ZET.js +218 -0
  61. package/dist/wallets/walletConnectors/chunk-CPI4TD43.js +99 -0
  62. package/dist/wallets/walletConnectors/chunk-F5XEEVG6.js +98 -0
  63. package/dist/wallets/walletConnectors/chunk-HNRB7KJU.js +92 -0
  64. package/dist/wallets/walletConnectors/chunk-HTHAK6XB.js +93 -0
  65. package/dist/wallets/walletConnectors/chunk-MIQTHJ6X.js +66 -0
  66. package/dist/wallets/walletConnectors/chunk-RB3HR4R2.js +95 -0
  67. package/dist/wallets/walletConnectors/chunk-RVOY537T.js +100 -0
  68. package/dist/wallets/walletConnectors/chunk-STVVP43G.js +94 -0
  69. package/dist/wallets/walletConnectors/chunk-UK7C2JXW.js +87 -0
  70. package/dist/wallets/walletConnectors/chunk-VAPGUPHO.js +92 -0
  71. package/dist/wallets/walletConnectors/chunk-VTM6EECM.js +110 -0
  72. package/dist/wallets/walletConnectors/chunk-X6CGV36L.js +103 -0
  73. package/dist/wallets/walletConnectors/chunk-YEZM4CK4.js +96 -0
  74. package/dist/wallets/walletConnectors/chunk-ZNX4EMPB.js +106 -0
  75. package/dist/wallets/walletConnectors/index.js +54 -54
  76. package/package.json +3 -3
  77. package/dist/clients/chunk-JVTKIEOP.js +0 -69
@@ -0,0 +1,96 @@
1
+ "use client";
2
+ import {
3
+ getInjectedConnector,
4
+ hasInjectedProvider
5
+ } from "./chunk-OLZ7626J.js";
6
+ import {
7
+ getWalletConnectConnector
8
+ } from "./chunk-N4IJLYFY.js";
9
+
10
+ // src/wallets/walletConnectors/frontierWallet/frontierWallet.ts
11
+ import { isAndroid } from "@funkit/utils";
12
+ var frontierWallet = ({
13
+ projectId,
14
+ walletConnectParameters
15
+ }) => {
16
+ const isFrontierInjected = hasInjectedProvider({
17
+ namespace: "frontier.ethereum",
18
+ flag: "isFrontier"
19
+ });
20
+ const shouldUseWalletConnect = !isFrontierInjected;
21
+ return {
22
+ id: "frontier",
23
+ name: "Frontier Wallet",
24
+ rdns: "xyz.frontier.wallet",
25
+ installed: isFrontierInjected,
26
+ iconUrl: async () => (await import("./frontierWallet-5QV7ZACT.js")).default,
27
+ iconBackground: "#CC703C",
28
+ downloadUrls: {
29
+ android: "https://play.google.com/store/apps/details?id=com.frontierwallet",
30
+ ios: "https://apps.apple.com/us/app/frontier-crypto-defi-wallet/id1482380988",
31
+ qrCode: "https://www.frontier.xyz/download",
32
+ chrome: "https://chrome.google.com/webstore/detail/frontier-wallet/kppfdiipphfccemcignhifpjkapfbihd",
33
+ browserExtension: "https://www.frontier.xyz/download"
34
+ },
35
+ mobile: {
36
+ getUri: shouldUseWalletConnect ? (uri) => {
37
+ return isAndroid() ? `frontier://wc?uri=${encodeURIComponent(uri)}` : uri;
38
+ } : void 0
39
+ },
40
+ qrCode: shouldUseWalletConnect ? {
41
+ getUri: (uri) => {
42
+ return isAndroid() ? `frontier://wc?uri=${encodeURIComponent(uri)}` : uri;
43
+ },
44
+ instructions: {
45
+ learnMoreUrl: "https://help.frontier.xyz/en/",
46
+ steps: [
47
+ {
48
+ description: "wallet_connectors.im_token.qr_code.step1.description",
49
+ step: "install",
50
+ title: "wallet_connectors.im_token.qr_code.step1.title"
51
+ },
52
+ {
53
+ description: "wallet_connectors.im_token.qr_code.step2.description",
54
+ step: "create",
55
+ title: "wallet_connectors.im_token.qr_code.step2.title"
56
+ },
57
+ {
58
+ description: "wallet_connectors.im_token.qr_code.step3.description",
59
+ step: "scan",
60
+ title: "wallet_connectors.im_token.qr_code.step3.title"
61
+ }
62
+ ]
63
+ }
64
+ } : void 0,
65
+ extension: {
66
+ instructions: {
67
+ learnMoreUrl: "https://help.frontier.xyz/en/articles/6967236-setting-up-frontier-on-your-device",
68
+ steps: [
69
+ {
70
+ description: "wallet_connectors.frontier.extension.step1.description",
71
+ step: "install",
72
+ title: "wallet_connectors.frontier.extension.step1.title"
73
+ },
74
+ {
75
+ description: "wallet_connectors.frontier.extension.step2.description",
76
+ step: "create",
77
+ title: "wallet_connectors.frontier.extension.step2.title"
78
+ },
79
+ {
80
+ description: "wallet_connectors.frontier.extension.step3.description",
81
+ step: "refresh",
82
+ title: "wallet_connectors.frontier.extension.step3.title"
83
+ }
84
+ ]
85
+ }
86
+ },
87
+ createConnector: shouldUseWalletConnect ? getWalletConnectConnector({ projectId, walletConnectParameters }) : getInjectedConnector({
88
+ namespace: "frontier.ethereum",
89
+ flag: "isFrontier"
90
+ })
91
+ };
92
+ };
93
+
94
+ export {
95
+ frontierWallet
96
+ };
@@ -0,0 +1,106 @@
1
+ "use client";
2
+ import {
3
+ getInjectedConnector,
4
+ hasInjectedProvider
5
+ } from "./chunk-OLZ7626J.js";
6
+ import {
7
+ getWalletConnectConnector
8
+ } from "./chunk-N4IJLYFY.js";
9
+
10
+ // src/wallets/walletConnectors/trustWallet/trustWallet.ts
11
+ import { isMobile } from "@funkit/utils";
12
+ var trustWallet = ({
13
+ projectId,
14
+ walletConnectParameters
15
+ }) => {
16
+ const isTrustWalletInjected = isMobile() ? hasInjectedProvider({ flag: "isTrust" }) : hasInjectedProvider({ flag: "isTrustWallet" });
17
+ const shouldUseWalletConnect = !isTrustWalletInjected;
18
+ const getUriMobile = (uri) => {
19
+ return `trust://wc?uri=${encodeURIComponent(uri)}`;
20
+ };
21
+ const getUriQR = (uri) => {
22
+ return uri;
23
+ };
24
+ const mobileConnector = {
25
+ getUri: shouldUseWalletConnect ? getUriMobile : void 0
26
+ };
27
+ let qrConnector = void 0;
28
+ if (shouldUseWalletConnect) {
29
+ qrConnector = {
30
+ getUri: getUriQR,
31
+ instructions: {
32
+ learnMoreUrl: "https://trustwallet.com/",
33
+ steps: [
34
+ {
35
+ description: "wallet_connectors.trust.qr_code.step1.description",
36
+ step: "install",
37
+ title: "wallet_connectors.trust.qr_code.step1.title"
38
+ },
39
+ {
40
+ description: "wallet_connectors.trust.qr_code.step2.description",
41
+ step: "create",
42
+ title: "wallet_connectors.trust.qr_code.step2.title"
43
+ },
44
+ {
45
+ description: "wallet_connectors.trust.qr_code.step3.description",
46
+ step: "scan",
47
+ title: "wallet_connectors.trust.qr_code.step3.title"
48
+ }
49
+ ]
50
+ }
51
+ };
52
+ }
53
+ const extensionConnector = {
54
+ instructions: {
55
+ learnMoreUrl: "https://trustwallet.com/browser-extension",
56
+ steps: [
57
+ {
58
+ description: "wallet_connectors.trust.extension.step1.description",
59
+ step: "install",
60
+ title: "wallet_connectors.trust.extension.step1.title"
61
+ },
62
+ {
63
+ description: "wallet_connectors.trust.extension.step2.description",
64
+ step: "create",
65
+ title: "wallet_connectors.trust.extension.step2.title"
66
+ },
67
+ {
68
+ description: "wallet_connectors.trust.extension.step3.description",
69
+ step: "refresh",
70
+ title: "wallet_connectors.trust.extension.step3.title"
71
+ }
72
+ ]
73
+ }
74
+ };
75
+ return {
76
+ id: "trust",
77
+ name: "Trust Wallet",
78
+ rdns: "com.trustwallet.app",
79
+ iconUrl: async () => (await import("./trustWallet-2N5TZJGC.js")).default,
80
+ // Note that we never resolve `installed` to `false` because the
81
+ // Trust Wallet provider falls back to other connection methods if
82
+ // the injected connector isn't available
83
+ installed: isTrustWalletInjected || void 0,
84
+ iconAccent: "#3375BB",
85
+ iconBackground: "#fff",
86
+ downloadUrls: {
87
+ android: "https://play.google.com/store/apps/details?id=com.wallet.crypto.trustapp",
88
+ ios: "https://apps.apple.com/us/app/trust-crypto-bitcoin-wallet/id1288339409",
89
+ mobile: "https://trustwallet.com/download",
90
+ qrCode: "https://trustwallet.com/download",
91
+ chrome: "https://chrome.google.com/webstore/detail/trust-wallet/egjidjbpglichdcondbcbdnbeeppgdph",
92
+ browserExtension: "https://trustwallet.com/browser-extension"
93
+ },
94
+ mobile: mobileConnector,
95
+ qrCode: qrConnector,
96
+ extension: extensionConnector,
97
+ createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
98
+ projectId,
99
+ walletConnectParameters
100
+ }) : isMobile() ? getInjectedConnector({ flag: "isTrust" }) : getInjectedConnector({ flag: "isTrustWallet" })
101
+ };
102
+ };
103
+
104
+ export {
105
+ trustWallet
106
+ };
@@ -1,25 +1,28 @@
1
1
  "use client";
2
+ import {
3
+ zealWallet
4
+ } from "./chunk-52QXXLDS.js";
2
5
  import {
3
6
  zerionWallet
4
7
  } from "./chunk-SWFF3TWJ.js";
5
8
  import {
6
- safeheronWallet
7
- } from "./chunk-76S7R2ND.js";
9
+ subWallet
10
+ } from "./chunk-NR2OGDHQ.js";
8
11
  import {
9
12
  talismanWallet
10
13
  } from "./chunk-4DCO3TGL.js";
11
14
  import {
12
- tokenPocketWallet
13
- } from "./chunk-WKNQMP4A.js";
15
+ trustWallet
16
+ } from "./chunk-KCRO2AGO.js";
14
17
  import {
15
18
  tokenaryWallet
16
19
  } from "./chunk-VH3THHJY.js";
17
- import {
18
- trustWallet
19
- } from "./chunk-KCRO2AGO.js";
20
20
  import {
21
21
  uniswapWallet
22
22
  } from "./chunk-Z3PPW6NC.js";
23
+ import {
24
+ tokenPocketWallet
25
+ } from "./chunk-WKNQMP4A.js";
23
26
  import {
24
27
  walletConnectWallet
25
28
  } from "./chunk-3FCWJRI4.js";
@@ -27,74 +30,71 @@ import {
27
30
  xdefiWallet
28
31
  } from "./chunk-JN5I3DNC.js";
29
32
  import {
30
- zealWallet
31
- } from "./chunk-52QXXLDS.js";
33
+ ramperWallet
34
+ } from "./chunk-OQB55QXP.js";
32
35
  import {
33
- rabbyWallet
34
- } from "./chunk-RB66PKPA.js";
36
+ phantomWallet
37
+ } from "./chunk-QY53O7WG.js";
35
38
  import {
36
39
  rainbowWallet
37
40
  } from "./chunk-W2LCLDPX.js";
38
41
  import {
39
- ramperWallet
40
- } from "./chunk-OQB55QXP.js";
42
+ safeWallet
43
+ } from "./chunk-RCY66YHF.js";
41
44
  import {
42
45
  roninWallet
43
46
  } from "./chunk-YQFGVZGR.js";
44
47
  import {
45
- safeWallet
46
- } from "./chunk-RCY66YHF.js";
48
+ safeheronWallet
49
+ } from "./chunk-76S7R2ND.js";
47
50
  import {
48
51
  safepalWallet
49
52
  } from "./chunk-XCNHV3HS.js";
50
- import {
51
- subWallet
52
- } from "./chunk-NR2OGDHQ.js";
53
53
  import {
54
54
  tahoWallet
55
55
  } from "./chunk-7ZYCBDQ4.js";
56
56
  import {
57
- metaMaskWallet
58
- } from "./chunk-YO2K4MBH.js";
59
- import {
60
- mewWallet
61
- } from "./chunk-MQM45ADF.js";
62
- import {
63
- oktoWallet
64
- } from "./chunk-YWOVAU6O.js";
57
+ omniWallet
58
+ } from "./chunk-2CX7LX4J.js";
65
59
  import {
66
60
  okxWallet
67
61
  } from "./chunk-KI5Y2BBF.js";
68
62
  import {
69
- omniWallet
70
- } from "./chunk-2CX7LX4J.js";
63
+ metaMaskWallet
64
+ } from "./chunk-YO2K4MBH.js";
71
65
  import {
72
66
  oneInchWallet
73
67
  } from "./chunk-QG6ZHI7B.js";
68
+ import {
69
+ oktoWallet
70
+ } from "./chunk-YWOVAU6O.js";
71
+ import {
72
+ mewWallet
73
+ } from "./chunk-MQM45ADF.js";
74
74
  import {
75
75
  oneKeyWallet
76
76
  } from "./chunk-WVT6BBJH.js";
77
77
  import {
78
- phantomWallet
79
- } from "./chunk-QY53O7WG.js";
80
- import {
81
- foxWallet
82
- } from "./chunk-GUQM4QSL.js";
78
+ rabbyWallet
79
+ } from "./chunk-RB66PKPA.js";
83
80
  import {
84
81
  frameWallet
85
82
  } from "./chunk-BU3ZAT5X.js";
86
83
  import {
87
- imTokenWallet
88
- } from "./chunk-WNAGGFMG.js";
84
+ frontierWallet
85
+ } from "./chunk-AVDUNQUW.js";
89
86
  import {
90
87
  gateWallet
91
88
  } from "./chunk-JPN6TWIT.js";
92
89
  import {
93
- frontierWallet
94
- } from "./chunk-AVDUNQUW.js";
90
+ imTokenWallet
91
+ } from "./chunk-WNAGGFMG.js";
95
92
  import {
96
93
  injectedWallet
97
94
  } from "./chunk-T6LGKC3F.js";
95
+ import {
96
+ desigWallet
97
+ } from "./chunk-FW3WZETT.js";
98
98
  import {
99
99
  kresusWallet
100
100
  } from "./chunk-RICTB3FA.js";
@@ -104,15 +104,18 @@ import {
104
104
  import {
105
105
  clvWallet
106
106
  } from "./chunk-OEEGYENV.js";
107
+ import {
108
+ coin98Wallet
109
+ } from "./chunk-WAHGI5L7.js";
107
110
  import {
108
111
  coinbaseWallet
109
112
  } from "./chunk-2DLDAZRH.js";
113
+ import {
114
+ bybitWallet
115
+ } from "./chunk-OX37G4YT.js";
110
116
  import {
111
117
  coreWallet
112
118
  } from "./chunk-4NV5BYRP.js";
113
- import {
114
- bloomWallet
115
- } from "./chunk-PJ7Y57EH.js";
116
119
  import {
117
120
  dawnWallet
118
121
  } from "./chunk-G2PHTVL6.js";
@@ -120,33 +123,30 @@ import {
120
123
  enkryptWallet
121
124
  } from "./chunk-HBQK5RD5.js";
122
125
  import {
123
- desigWallet
124
- } from "./chunk-FW3WZETT.js";
126
+ foxWallet
127
+ } from "./chunk-GUQM4QSL.js";
125
128
  import {
126
- coin98Wallet
127
- } from "./chunk-WAHGI5L7.js";
129
+ bitskiWallet
130
+ } from "./chunk-7HRFUZFX.js";
128
131
  import {
129
132
  argentWallet
130
133
  } from "./chunk-NTMBEOR2.js";
134
+ import {
135
+ bitverseWallet
136
+ } from "./chunk-NSK6A7TI.js";
131
137
  import {
132
138
  bifrostWallet
133
139
  } from "./chunk-IULPZP2Q.js";
140
+ import {
141
+ bloomWallet
142
+ } from "./chunk-PJ7Y57EH.js";
134
143
  import {
135
144
  bitgetWallet
136
145
  } from "./chunk-TKB2OY6G.js";
137
- import {
138
- bitskiWallet
139
- } from "./chunk-7HRFUZFX.js";
140
- import {
141
- bitverseWallet
142
- } from "./chunk-NSK6A7TI.js";
146
+ import "./chunk-N4IJLYFY.js";
143
147
  import {
144
148
  braveWallet
145
149
  } from "./chunk-DS73TZ6O.js";
146
- import {
147
- bybitWallet
148
- } from "./chunk-OX37G4YT.js";
149
- import "./chunk-N4IJLYFY.js";
150
150
  import "./chunk-OLZ7626J.js";
151
151
  import "./chunk-IGKXZBTA.js";
152
152
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkit/connect",
3
- "version": "9.20.0",
3
+ "version": "9.21.1-next.0",
4
4
  "description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
5
5
  "files": [
6
6
  "dist",
@@ -112,9 +112,9 @@
112
112
  "use-debounce": "^10.0.5",
113
113
  "uuid": "^11.1.1",
114
114
  "@funkit/api-base": "4.5.1",
115
+ "@funkit/connect-core": "0.4.0-next.0",
115
116
  "@funkit/chains": "2.1.0",
116
- "@funkit/connect-core": "0.3.1",
117
- "@funkit/fun-relay": "2.8.1",
117
+ "@funkit/fun-relay": "2.8.2",
118
118
  "@funkit/utils": "3.1.0"
119
119
  },
120
120
  "repository": {