@funkit/connect 1.0.4 → 1.0.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 (83) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist/components/Box/Box.d.ts +7 -7
  3. package/dist/components/ConnectButton/ConnectButton.d.ts +3 -1
  4. package/dist/components/FunAssetAvatar/FunAssetAvatar.d.ts +3 -2
  5. package/dist/components/FunBadge/FunBadge.d.ts +4 -0
  6. package/dist/components/FunCheckoutHistoryModal/FunCheckoutHistoryModal.d.ts +1 -2
  7. package/dist/components/FunCheckoutModal/FunCheckoutConfirmationStep.d.ts +2 -1
  8. package/dist/components/FunCheckoutModal/FunCheckoutModal.d.ts +1 -1
  9. package/dist/components/FunDivider/FunDivider.d.ts +2 -1
  10. package/dist/components/FunDot/FunDot.d.ts +2 -0
  11. package/dist/components/FunNotification/FunNotification.d.ts +2 -2
  12. package/dist/components/FunSelect/FunSelect.d.ts +1 -0
  13. package/dist/components/FunTransactionSummary/FunTransactionSummary.d.ts +2 -1
  14. package/dist/components/FunkitProvider/FunkitCheckoutContext.d.ts +16 -16
  15. package/dist/components/FunkitProvider/FunkitConfigContext.d.ts +22 -3
  16. package/dist/components/FunkitProvider/FunkitMeshProvider.d.ts +20 -0
  17. package/dist/components/FunkitProvider/ModalContext.d.ts +1 -1
  18. package/dist/consts/funkit.d.ts +1 -0
  19. package/dist/consts/quote.d.ts +13 -0
  20. package/dist/css/sprinkles.css.d.ts +7 -7
  21. package/dist/hooks/useCheckoutQuoteNotification.d.ts +7 -0
  22. package/dist/hooks/useCheckoutType.d.ts +4 -2
  23. package/dist/hooks/useFunListeners.d.ts +1 -1
  24. package/dist/index.css +1380 -1340
  25. package/dist/index.d.ts +1 -0
  26. package/dist/index.js +2833 -2290
  27. package/dist/utils/checkout.d.ts +1 -1
  28. package/dist/utils/checkoutFees.d.ts +27 -0
  29. package/dist/utils/formatNumber.d.ts +1 -0
  30. package/dist/utils/formatTimestamp.d.ts +11 -0
  31. package/dist/utils/mesh.d.ts +1 -0
  32. package/dist/wallets/walletConnectors/argentWallet/argentWallet.js +2 -2
  33. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  34. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  35. package/dist/wallets/walletConnectors/bloomWallet/bloomWallet.js +2 -2
  36. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  37. package/dist/wallets/walletConnectors/funkitConnectWallet/funkitConnectWallet.js +2 -1
  38. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  39. package/dist/wallets/walletConnectors/index.js +80 -80
  40. package/dist/wallets/walletConnectors/ledgerWallet/ledgerWallet.js +2 -2
  41. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  42. package/dist/wallets/walletConnectors/oktoWallet/oktoWallet.js +2 -2
  43. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  44. package/dist/wallets/walletConnectors/omniWallet/omniWallet.js +2 -2
  45. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  46. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  47. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  48. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  49. package/dist/zetachain-WXXDOYLF.js +6 -0
  50. package/package.json +3 -3
  51. package/dist/wallets/walletConnectors/chunk-2GAW2UBU.js +0 -102
  52. package/dist/wallets/walletConnectors/chunk-2XQJ2NQ4.js +0 -178
  53. package/dist/wallets/walletConnectors/chunk-7KDOXASH.js +0 -95
  54. package/dist/wallets/walletConnectors/chunk-AJKRYTH2.js +0 -92
  55. package/dist/wallets/walletConnectors/chunk-CRSPGVPF.js +0 -105
  56. package/dist/wallets/walletConnectors/chunk-CUKVUCIP.js +0 -98
  57. package/dist/wallets/walletConnectors/chunk-CVGDYGHA.js +0 -60
  58. package/dist/wallets/walletConnectors/chunk-DV3SI63E.js +0 -96
  59. package/dist/wallets/walletConnectors/chunk-GW6EF4G2.js +0 -92
  60. package/dist/wallets/walletConnectors/chunk-HD5VYJNC.js +0 -98
  61. package/dist/wallets/walletConnectors/chunk-IBWFKX7P.js +0 -94
  62. package/dist/wallets/walletConnectors/chunk-KGTZ6E7L.js +0 -71
  63. package/dist/wallets/walletConnectors/chunk-OKWOB3DN.js +0 -66
  64. package/dist/wallets/walletConnectors/chunk-OKZSWAPF.js +0 -60
  65. package/dist/wallets/walletConnectors/chunk-OYKWP3N3.js +0 -60
  66. package/dist/wallets/walletConnectors/chunk-OYW4TIA3.js +0 -81
  67. package/dist/wallets/walletConnectors/chunk-RCWZ4KBR.js +0 -73
  68. package/dist/wallets/walletConnectors/chunk-RTW6PVQI.js +0 -107
  69. package/dist/wallets/walletConnectors/chunk-RYO26XSK.js +0 -100
  70. package/dist/wallets/walletConnectors/chunk-T6JVHES7.js +0 -87
  71. package/dist/wallets/walletConnectors/chunk-VSZ7PAHS.js +0 -94
  72. package/dist/wallets/walletConnectors/chunk-XNNLZXHE.js +0 -102
  73. package/dist/wallets/walletConnectors/chunk-Z2HIQYVN.js +0 -96
  74. package/dist/wallets/walletConnectors/{chunk-PPFSHJTA.js → chunk-2UXZAUWT.js} +3 -3
  75. package/dist/wallets/walletConnectors/{chunk-XRMAVTK7.js → chunk-3WZRNEZH.js} +3 -3
  76. package/dist/wallets/walletConnectors/{chunk-MU35GKP3.js → chunk-6LTLPR2Q.js} +3 -3
  77. package/dist/wallets/walletConnectors/{chunk-MCTPLICE.js → chunk-7CQPABJG.js} +3 -3
  78. package/dist/wallets/walletConnectors/{chunk-SPLW3CCH.js → chunk-AM4SSLAP.js} +3 -3
  79. package/dist/wallets/walletConnectors/{chunk-2LY3WMXK.js → chunk-NGXIHASN.js} +3 -3
  80. package/dist/wallets/walletConnectors/{chunk-DNOEX5NF.js → chunk-O5NKWWEG.js} +3 -3
  81. package/dist/wallets/walletConnectors/{chunk-HXYRONSJ.js → chunk-V45EXW7A.js} +3 -3
  82. package/dist/wallets/walletConnectors/{chunk-ZFXXHGAS.js → chunk-Z2DGDHHZ.js} +3 -3
  83. package/dist/wallets/walletConnectors/{chunk-2B3SPBRY.js → chunk-ZNXQ4V6G.js} +3 -3
@@ -13,7 +13,7 @@ export declare const DUMMY_TRANSFER_PARAMS: {
13
13
  * @param config - The checkout configuration to validate.
14
14
  * @returns An object indicating whether the configuration is valid and a message if it is not.
15
15
  */
16
- export declare function validateCheckoutConfig(config: Partial<FunkitCheckoutConfig>): {
16
+ export declare function validateCheckoutConfig(config: Partial<FunkitCheckoutConfig>, isUserLoggedIn: boolean): {
17
17
  isValid: boolean;
18
18
  message: string;
19
19
  };
@@ -0,0 +1,27 @@
1
+ interface NetworkFeesUsdBreakdownItem {
2
+ networkFeesUsdFromFun: number;
3
+ networkFeesUsdFromMoonpay: number;
4
+ networkFeesUsdFromMesh: number;
5
+ networkFeesUsdFromEoaGas: number;
6
+ }
7
+ interface PlatformFeesUsdBreakdownItem {
8
+ platformFeesUsdFromFun: number;
9
+ platformFeesUsdFromMoonpay: number;
10
+ platformFeesUsdFromMesh: number;
11
+ }
12
+ export interface CheckoutFeesBreakdownItem {
13
+ /** Network fees incurred from Fun.xyz and 3rd party providers in USD **/
14
+ networkFeesUsd: number;
15
+ /** Breakdown of network fees in USD. Mainly used for logging. **/
16
+ networkFeesUsdBreakdown: NetworkFeesUsdBreakdownItem;
17
+ /** Platform fees incurred from Fun.xyz and 3rd party providers in USD **/
18
+ platformFeesUsd: number;
19
+ /** Breakdown of platform fees in USD. Mainly used for logging. **/
20
+ platformFeesUsdBreakdown: PlatformFeesUsdBreakdownItem;
21
+ /** Sum of networkFeesUsd and platformFeesUsd **/
22
+ totalFeesUsd: number;
23
+ /** Fees incurred in the form of payment token amount (non-base unit) **/
24
+ additionalFeesTokenAmount: number;
25
+ }
26
+ export declare const GAS_ESTIMATE_MULTIPLER = 1.2;
27
+ export {};
@@ -50,5 +50,6 @@ platform?: string,
50
50
  useCurrencyAbbreviation?: boolean,
51
51
  /** Used to format the number, can be used to customize decimal truncation etc. **/
52
52
  options?: FormatNumberOptions): string;
53
+ export declare function parseInputToNumber(input: string | number | undefined): number;
53
54
  export declare function roundUpTo5DecimalPlaces(inputNumber: string): string;
54
55
  export {};
@@ -1 +1,12 @@
1
1
  export declare function formatTimestamp(date: Date, shortened?: boolean): string;
2
+ /**
3
+ * Formats seconds to mins and seconds string
4
+ * - seconds = 10, output = '10s'
5
+ * - seconds = 20.3, output = '21s'
6
+ * - seconds = 20.3, specifyUnderMinute=true, output = '< 1min'
7
+ * - seconds = 60, output = '1min'
8
+ * - seconds = 61, output = '1min 1s'
9
+ * - seconds = 300, output = '5mins'
10
+ * - seconds = 320, output = '5mins 20s'
11
+ */
12
+ export declare function formatSecondsToReadableForm(seconds: number, specifyUnderMinute?: boolean): string;
@@ -1,3 +1,4 @@
1
+ export declare const FUNKIT_MESH_CLIENT_ID = "e1880c6d-5af8-4634-3182-08dba58a99a5";
1
2
  export declare enum MeshExchanges {
2
3
  Robinhood = "Robinhood",
3
4
  ETrade = "ETrade",
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  argentWallet
4
- } from "../chunk-CVGDYGHA.js";
5
- import "../chunk-ZDU3JFGR.js";
4
+ } from "../chunk-NZ5G23JP.js";
6
5
  import "../chunk-ZOLACFTK.js";
6
+ import "../chunk-ZDU3JFGR.js";
7
7
  export {
8
8
  argentWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bifrostWallet
4
- } from "../chunk-MU35GKP3.js";
5
- import "../chunk-ZDU3JFGR.js";
4
+ } from "../chunk-6LTLPR2Q.js";
6
5
  import "../chunk-ZOLACFTK.js";
6
+ import "../chunk-ZDU3JFGR.js";
7
7
  import "../chunk-QII6PY2D.js";
8
8
  export {
9
9
  bifrostWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bitgetWallet
4
- } from "../chunk-RYO26XSK.js";
5
- import "../chunk-ZDU3JFGR.js";
4
+ } from "../chunk-ZNXQ4V6G.js";
6
5
  import "../chunk-ZOLACFTK.js";
6
+ import "../chunk-ZDU3JFGR.js";
7
7
  import "../chunk-QII6PY2D.js";
8
8
  export {
9
9
  bitgetWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bloomWallet
4
- } from "../chunk-OYW4TIA3.js";
5
- import "../chunk-ZDU3JFGR.js";
4
+ } from "../chunk-NTGZF5BY.js";
6
5
  import "../chunk-ZOLACFTK.js";
6
+ import "../chunk-ZDU3JFGR.js";
7
7
  export {
8
8
  bloomWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  frontierWallet
4
- } from "../chunk-SPLW3CCH.js";
5
- import "../chunk-ZDU3JFGR.js";
4
+ } from "../chunk-AM4SSLAP.js";
6
5
  import "../chunk-ZOLACFTK.js";
6
+ import "../chunk-ZDU3JFGR.js";
7
7
  import "../chunk-QII6PY2D.js";
8
8
  export {
9
9
  frontierWallet
@@ -17,7 +17,8 @@ var FROM_PROGRESS_CHECKOUT_STATES = [
17
17
  var TO_PROGRESS_CHECKOUT_STATES = [
18
18
  CheckoutState.TO_UNFUNDED,
19
19
  CheckoutState.TO_FUNDED,
20
- CheckoutState.TO_POOLED
20
+ CheckoutState.TO_POOLED,
21
+ CheckoutState.TO_READY
21
22
  ];
22
23
  var IN_PROGRESS_CHECKOUT_STATES = [
23
24
  ...TO_PROGRESS_CHECKOUT_STATES,
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  gateWallet
4
- } from "../chunk-HXYRONSJ.js";
5
- import "../chunk-ZDU3JFGR.js";
4
+ } from "../chunk-V45EXW7A.js";
6
5
  import "../chunk-ZOLACFTK.js";
6
+ import "../chunk-ZDU3JFGR.js";
7
7
  import "../chunk-QII6PY2D.js";
8
8
  export {
9
9
  gateWallet
@@ -1,153 +1,153 @@
1
1
  "use client";
2
- import {
3
- xdefiWallet
4
- } from "./chunk-L734HTUS.js";
5
2
  import {
6
3
  zerionWallet
7
- } from "./chunk-MCTPLICE.js";
4
+ } from "./chunk-7CQPABJG.js";
8
5
  import {
9
- zealWallet
10
- } from "./chunk-DPXMP5KS.js";
6
+ omniWallet
7
+ } from "./chunk-SVN7OEQR.js";
11
8
  import {
12
- safeWallet
13
- } from "./chunk-D3DCQ72J.js";
9
+ uniswapWallet
10
+ } from "./chunk-XRSY4JVH.js";
14
11
  import {
15
- tokenPocketWallet
16
- } from "./chunk-PPFSHJTA.js";
12
+ safepalWallet
13
+ } from "./chunk-SYELB4QO.js";
17
14
  import {
18
15
  talismanWallet
19
16
  } from "./chunk-H273OTQA.js";
20
17
  import {
21
- trustWallet
22
- } from "./chunk-ZFXXHGAS.js";
18
+ tokenPocketWallet
19
+ } from "./chunk-2UXZAUWT.js";
23
20
  import {
24
- walletConnectWallet
25
- } from "./chunk-ASPRR7T3.js";
21
+ tokenaryWallet
22
+ } from "./chunk-ENZLEAG2.js";
26
23
  import {
27
- uniswapWallet
28
- } from "./chunk-XRSY4JVH.js";
24
+ trustWallet
25
+ } from "./chunk-Z2DGDHHZ.js";
29
26
  import {
30
- tahoWallet
31
- } from "./chunk-H76YCX2M.js";
27
+ xdefiWallet
28
+ } from "./chunk-L734HTUS.js";
32
29
  import {
33
- tokenaryWallet
34
- } from "./chunk-ENZLEAG2.js";
30
+ walletConnectWallet
31
+ } from "./chunk-ASPRR7T3.js";
35
32
  import {
36
- phantomWallet
37
- } from "./chunk-KGBLSE7L.js";
33
+ zealWallet
34
+ } from "./chunk-DPXMP5KS.js";
38
35
  import {
39
36
  rabbyWallet
40
37
  } from "./chunk-XPEBP6XV.js";
38
+ import {
39
+ rainbowWallet
40
+ } from "./chunk-O5NKWWEG.js";
41
41
  import {
42
42
  ramperWallet
43
43
  } from "./chunk-ZOL6ZMTJ.js";
44
44
  import {
45
- subWallet
46
- } from "./chunk-ZBAQFL6G.js";
45
+ safeWallet
46
+ } from "./chunk-D3DCQ72J.js";
47
47
  import {
48
- safepalWallet
49
- } from "./chunk-SYELB4QO.js";
48
+ safeheronWallet
49
+ } from "./chunk-63NPZXAL.js";
50
50
  import {
51
51
  roninWallet
52
52
  } from "./chunk-LVRXH33E.js";
53
53
  import {
54
- safeheronWallet
55
- } from "./chunk-63NPZXAL.js";
54
+ subWallet
55
+ } from "./chunk-ZBAQFL6G.js";
56
56
  import {
57
- rainbowWallet
58
- } from "./chunk-DNOEX5NF.js";
57
+ tahoWallet
58
+ } from "./chunk-H76YCX2M.js";
59
59
  import {
60
60
  ledgerWallet
61
- } from "./chunk-AJKRYTH2.js";
61
+ } from "./chunk-Y6VY6E3L.js";
62
+ import {
63
+ metaMaskWallet
64
+ } from "./chunk-3WZRNEZH.js";
62
65
  import {
63
66
  mewWallet
64
67
  } from "./chunk-PWYTDYBE.js";
65
68
  import {
66
- okxWallet
67
- } from "./chunk-2LY3WMXK.js";
68
- import {
69
- oneKeyWallet
70
- } from "./chunk-4WOV4ITL.js";
69
+ oktoWallet
70
+ } from "./chunk-WKHTUEF5.js";
71
71
  import {
72
- omniWallet
73
- } from "./chunk-OYKWP3N3.js";
72
+ okxWallet
73
+ } from "./chunk-NGXIHASN.js";
74
74
  import {
75
75
  oneInchWallet
76
76
  } from "./chunk-LCPIZUR3.js";
77
77
  import {
78
- injectedWallet
79
- } from "./chunk-KIHCNUU3.js";
78
+ oneKeyWallet
79
+ } from "./chunk-4WOV4ITL.js";
80
80
  import {
81
- oktoWallet
82
- } from "./chunk-OKZSWAPF.js";
81
+ phantomWallet
82
+ } from "./chunk-KGBLSE7L.js";
83
83
  import {
84
- enkryptWallet
85
- } from "./chunk-FLY7F4XA.js";
84
+ foxWallet
85
+ } from "./chunk-Q4RLUJJD.js";
86
+ import {
87
+ frameWallet
88
+ } from "./chunk-XXFJVY73.js";
86
89
  import {
87
90
  frontierWallet
88
- } from "./chunk-SPLW3CCH.js";
91
+ } from "./chunk-AM4SSLAP.js";
89
92
  import {
90
- foxWallet
91
- } from "./chunk-Q4RLUJJD.js";
93
+ gateWallet
94
+ } from "./chunk-V45EXW7A.js";
92
95
  import {
93
96
  imTokenWallet
94
97
  } from "./chunk-5MVV7OVS.js";
98
+ import {
99
+ injectedWallet
100
+ } from "./chunk-KIHCNUU3.js";
95
101
  import {
96
102
  kresusWallet
97
103
  } from "./chunk-X6T3CICZ.js";
98
104
  import {
99
- metaMaskWallet
100
- } from "./chunk-2XQJ2NQ4.js";
101
- import {
102
- gateWallet
103
- } from "./chunk-HXYRONSJ.js";
104
- import {
105
- coreWallet
106
- } from "./chunk-JLQ5HJYV.js";
107
- import {
108
- bitskiWallet
109
- } from "./chunk-C67TQJ6W.js";
110
- import {
111
- bitverseWallet
112
- } from "./chunk-NL4I7WOT.js";
105
+ bybitWallet
106
+ } from "./chunk-ZUAHWUEL.js";
113
107
  import {
114
108
  clvWallet
115
109
  } from "./chunk-MIWCKFYE.js";
116
110
  import {
117
- desigWallet
118
- } from "./chunk-P4JLZ42R.js";
111
+ coin98Wallet
112
+ } from "./chunk-4FQLUQNA.js";
119
113
  import {
120
- bybitWallet
121
- } from "./chunk-ZUAHWUEL.js";
114
+ coinbaseWallet
115
+ } from "./chunk-XBUTWYE4.js";
116
+ import {
117
+ coreWallet
118
+ } from "./chunk-JLQ5HJYV.js";
122
119
  import {
123
120
  dawnWallet
124
121
  } from "./chunk-4XQDKOGF.js";
125
122
  import {
126
- frameWallet
127
- } from "./chunk-XXFJVY73.js";
123
+ desigWallet
124
+ } from "./chunk-P4JLZ42R.js";
125
+ import {
126
+ enkryptWallet
127
+ } from "./chunk-FLY7F4XA.js";
128
128
  import {
129
129
  bifrostWallet
130
- } from "./chunk-MU35GKP3.js";
130
+ } from "./chunk-6LTLPR2Q.js";
131
131
  import {
132
- bitgetWallet
133
- } from "./chunk-RYO26XSK.js";
132
+ argentWallet
133
+ } from "./chunk-NZ5G23JP.js";
134
134
  import {
135
- braveWallet
136
- } from "./chunk-ABYQAXUX.js";
135
+ bitskiWallet
136
+ } from "./chunk-C67TQJ6W.js";
137
137
  import {
138
- argentWallet
139
- } from "./chunk-CVGDYGHA.js";
138
+ bitgetWallet
139
+ } from "./chunk-ZNXQ4V6G.js";
140
140
  import {
141
141
  bloomWallet
142
- } from "./chunk-OYW4TIA3.js";
142
+ } from "./chunk-NTGZF5BY.js";
143
+ import "./chunk-ZOLACFTK.js";
143
144
  import {
144
- coin98Wallet
145
- } from "./chunk-4FQLUQNA.js";
145
+ bitverseWallet
146
+ } from "./chunk-NL4I7WOT.js";
146
147
  import "./chunk-ZDU3JFGR.js";
147
148
  import {
148
- coinbaseWallet
149
- } from "./chunk-XBUTWYE4.js";
150
- import "./chunk-ZOLACFTK.js";
149
+ braveWallet
150
+ } from "./chunk-ABYQAXUX.js";
151
151
  import "./chunk-QII6PY2D.js";
152
152
  export {
153
153
  argentWallet,
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  ledgerWallet
4
- } from "../chunk-AJKRYTH2.js";
5
- import "../chunk-ZDU3JFGR.js";
4
+ } from "../chunk-Y6VY6E3L.js";
6
5
  import "../chunk-ZOLACFTK.js";
6
+ import "../chunk-ZDU3JFGR.js";
7
7
  export {
8
8
  ledgerWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  metaMaskWallet
4
- } from "../chunk-2XQJ2NQ4.js";
5
- import "../chunk-ZDU3JFGR.js";
4
+ } from "../chunk-3WZRNEZH.js";
6
5
  import "../chunk-ZOLACFTK.js";
6
+ import "../chunk-ZDU3JFGR.js";
7
7
  import "../chunk-QII6PY2D.js";
8
8
  export {
9
9
  metaMaskWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  oktoWallet
4
- } from "../chunk-OKZSWAPF.js";
5
- import "../chunk-ZDU3JFGR.js";
4
+ } from "../chunk-WKHTUEF5.js";
6
5
  import "../chunk-ZOLACFTK.js";
6
+ import "../chunk-ZDU3JFGR.js";
7
7
  export {
8
8
  oktoWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  okxWallet
4
- } from "../chunk-2LY3WMXK.js";
5
- import "../chunk-ZDU3JFGR.js";
4
+ } from "../chunk-NGXIHASN.js";
6
5
  import "../chunk-ZOLACFTK.js";
6
+ import "../chunk-ZDU3JFGR.js";
7
7
  import "../chunk-QII6PY2D.js";
8
8
  export {
9
9
  okxWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  omniWallet
4
- } from "../chunk-OYKWP3N3.js";
5
- import "../chunk-ZDU3JFGR.js";
4
+ } from "../chunk-SVN7OEQR.js";
6
5
  import "../chunk-ZOLACFTK.js";
6
+ import "../chunk-ZDU3JFGR.js";
7
7
  export {
8
8
  omniWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  rainbowWallet
4
- } from "../chunk-DNOEX5NF.js";
5
- import "../chunk-ZDU3JFGR.js";
4
+ } from "../chunk-O5NKWWEG.js";
6
5
  import "../chunk-ZOLACFTK.js";
6
+ import "../chunk-ZDU3JFGR.js";
7
7
  import "../chunk-QII6PY2D.js";
8
8
  export {
9
9
  rainbowWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  tokenPocketWallet
4
- } from "../chunk-PPFSHJTA.js";
5
- import "../chunk-ZDU3JFGR.js";
4
+ } from "../chunk-2UXZAUWT.js";
6
5
  import "../chunk-ZOLACFTK.js";
6
+ import "../chunk-ZDU3JFGR.js";
7
7
  import "../chunk-QII6PY2D.js";
8
8
  export {
9
9
  tokenPocketWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  trustWallet
4
- } from "../chunk-ZFXXHGAS.js";
5
- import "../chunk-ZDU3JFGR.js";
4
+ } from "../chunk-Z2DGDHHZ.js";
6
5
  import "../chunk-ZOLACFTK.js";
6
+ import "../chunk-ZDU3JFGR.js";
7
7
  import "../chunk-QII6PY2D.js";
8
8
  export {
9
9
  trustWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  zerionWallet
4
- } from "../chunk-MCTPLICE.js";
5
- import "../chunk-ZDU3JFGR.js";
4
+ } from "../chunk-7CQPABJG.js";
6
5
  import "../chunk-ZOLACFTK.js";
6
+ import "../chunk-ZDU3JFGR.js";
7
7
  import "../chunk-QII6PY2D.js";
8
8
  export {
9
9
  zerionWallet
@@ -0,0 +1,6 @@
1
+ "use client";
2
+ // src/components/FunkitProvider/chainIcons/zetachain.svg
3
+ var zetachain_default = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyOCIgaGVpZ2h0PSIyOCIgZmlsbD0ibm9uZSIgdmlld0JveD0iMCAwIDE3OCAxNzgiPjxjaXJjbGUgY3g9Ijg5IiBjeT0iODkiIHI9Ijg5IiBmaWxsPSIjMDA1NzQxIi8+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTExMi4xMDkgMTA4LjY3M3YxMi4wMkg2Mi41MjNjLjY4NC03LjkxMSAzLjIzNi0xMy40NzcgMTIuMDY0LTIxLjMwNGwzNy41MjItMzIuMDF2MjguMDloMTMuNTA3VjQzLjc5SDQ4LjgxM3YyNS43Nkg2Mi4zMlY1Ny4yOTdoNDAuODAzTDY1Ljc4NCA4OS4xNjNsLS4wODkuMDg1Yy0xNS42NDggMTMuODU0LTE2Ljg5MiAyNS4wMzYtMTYuODkyIDM4LjIxMXY2Ljc1MWg3Ni44MTh2LTI1LjUyN2gtMTMuNTA3eiIvPjwvc3ZnPg==";
4
+ export {
5
+ zetachain_default as default
6
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkit/connect",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
5
5
  "files": [
6
6
  "dist",
@@ -72,6 +72,8 @@
72
72
  "@types/ua-parser-js": "^0.7.39"
73
73
  },
74
74
  "dependencies": {
75
+ "@funkit/wagmi-tools": "^1.0.4",
76
+ "@funkit/core": "^1.0.3",
75
77
  "@vanilla-extract/css": "1.14.0",
76
78
  "@vanilla-extract/dynamic": "2.1.0",
77
79
  "@vanilla-extract/sprinkles": "1.6.1",
@@ -80,8 +82,6 @@
80
82
  "react-remove-scroll": "2.5.7",
81
83
  "ua-parser-js": "^1.0.37",
82
84
  "@tanstack/react-query": "^5.28.8",
83
- "@funkit/wagmi-tools": "^1.0.2",
84
- "@funkit/core": "^1.0.1",
85
85
  "@datadog/browser-logs": "^5.12.0",
86
86
  "@privy-io/js-sdk-core": "^0.14.0",
87
87
  "@moonpay/moonpay-react": "^1.6.1",
@@ -1,102 +0,0 @@
1
- "use client";
2
- import {
3
- getInjectedConnector,
4
- hasInjectedProvider
5
- } from "./chunk-QII6PY2D.js";
6
- import {
7
- getWalletConnectConnector
8
- } from "./chunk-ZDU3JFGR.js";
9
-
10
- // src/wallets/walletConnectors/subWallet/subWallet.ts
11
- var subWallet = ({
12
- projectId,
13
- walletConnectParameters
14
- }) => {
15
- const isSubWalletInjected = hasInjectedProvider({ namespace: "SubWallet" });
16
- const shouldUseWalletConnect = !isSubWalletInjected;
17
- const getUriMobile = (uri) => {
18
- return `subwallet://wc?uri=${encodeURIComponent(uri)}`;
19
- };
20
- const getUriQR = (uri) => {
21
- return uri;
22
- };
23
- const mobileConnector = {
24
- getUri: shouldUseWalletConnect ? getUriMobile : void 0
25
- };
26
- let qrConnector = void 0;
27
- if (shouldUseWalletConnect) {
28
- qrConnector = {
29
- getUri: getUriQR,
30
- instructions: {
31
- learnMoreUrl: "https://www.subwallet.app/",
32
- steps: [
33
- {
34
- description: "wallet_connectors.subwallet.qr_code.step1.description",
35
- step: "install",
36
- title: "wallet_connectors.subwallet.qr_code.step1.title"
37
- },
38
- {
39
- description: "wallet_connectors.subwallet.qr_code.step2.description",
40
- step: "create",
41
- title: "wallet_connectors.subwallet.qr_code.step2.title"
42
- },
43
- {
44
- description: "wallet_connectors.subwallet.qr_code.step3.description",
45
- step: "scan",
46
- title: "wallet_connectors.subwallet.qr_code.step3.title"
47
- }
48
- ]
49
- }
50
- };
51
- }
52
- const extensionConnector = {
53
- instructions: {
54
- learnMoreUrl: "https://www.subwallet.app/",
55
- steps: [
56
- {
57
- description: "wallet_connectors.subwallet.extension.step1.description",
58
- step: "install",
59
- title: "wallet_connectors.subwallet.extension.step1.title"
60
- },
61
- {
62
- description: "wallet_connectors.subwallet.extension.step2.description",
63
- step: "create",
64
- title: "wallet_connectors.subwallet.extension.step2.title"
65
- },
66
- {
67
- description: "wallet_connectors.subwallet.extension.step3.description",
68
- step: "refresh",
69
- title: "wallet_connectors.subwallet.extension.step3.title"
70
- }
71
- ]
72
- }
73
- };
74
- return {
75
- id: "subwallet",
76
- name: "SubWallet",
77
- iconUrl: async () => (await import("./subWallet-ELA2UJOS.js")).default,
78
- iconBackground: "#fff",
79
- installed: isSubWalletInjected || void 0,
80
- downloadUrls: {
81
- browserExtension: "https://www.subwallet.app/download",
82
- chrome: "https://chrome.google.com/webstore/detail/subwallet-polkadot-wallet/onhogfjeacnfoofkfgppdlbmlmnplgbn",
83
- firefox: "https://addons.mozilla.org/en-US/firefox/addon/subwallet/",
84
- edge: "https://chrome.google.com/webstore/detail/subwallet-polkadot-wallet/onhogfjeacnfoofkfgppdlbmlmnplgbn",
85
- mobile: "https://www.subwallet.app/download",
86
- android: "https://play.google.com/store/apps/details?id=app.subwallet.mobile",
87
- ios: "https://apps.apple.com/us/app/subwallet-polkadot-wallet/id1633050285",
88
- qrCode: "https://www.subwallet.app/download"
89
- },
90
- mobile: mobileConnector,
91
- qrCode: qrConnector,
92
- extension: extensionConnector,
93
- createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
94
- projectId,
95
- walletConnectParameters
96
- }) : getInjectedConnector({ namespace: "SubWallet" })
97
- };
98
- };
99
-
100
- export {
101
- subWallet
102
- };