@funkit/connect 1.0.5 → 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.
@@ -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 {};
@@ -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,
@@ -3,92 +3,86 @@ import {
3
3
  zerionWallet
4
4
  } from "./chunk-7CQPABJG.js";
5
5
  import {
6
- xdefiWallet
7
- } from "./chunk-L734HTUS.js";
6
+ omniWallet
7
+ } from "./chunk-SVN7OEQR.js";
8
8
  import {
9
9
  uniswapWallet
10
10
  } from "./chunk-XRSY4JVH.js";
11
- import {
12
- tokenPocketWallet
13
- } from "./chunk-2UXZAUWT.js";
14
- import {
15
- safeheronWallet
16
- } from "./chunk-63NPZXAL.js";
17
- import {
18
- omniWallet
19
- } from "./chunk-SVN7OEQR.js";
20
11
  import {
21
12
  safepalWallet
22
13
  } from "./chunk-SYELB4QO.js";
14
+ import {
15
+ talismanWallet
16
+ } from "./chunk-H273OTQA.js";
17
+ import {
18
+ tokenPocketWallet
19
+ } from "./chunk-2UXZAUWT.js";
23
20
  import {
24
21
  tokenaryWallet
25
22
  } from "./chunk-ENZLEAG2.js";
23
+ import {
24
+ trustWallet
25
+ } from "./chunk-Z2DGDHHZ.js";
26
+ import {
27
+ xdefiWallet
28
+ } from "./chunk-L734HTUS.js";
26
29
  import {
27
30
  walletConnectWallet
28
31
  } from "./chunk-ASPRR7T3.js";
29
32
  import {
30
33
  zealWallet
31
34
  } from "./chunk-DPXMP5KS.js";
32
- import {
33
- trustWallet
34
- } from "./chunk-Z2DGDHHZ.js";
35
- import {
36
- phantomWallet
37
- } from "./chunk-KGBLSE7L.js";
38
35
  import {
39
36
  rabbyWallet
40
37
  } from "./chunk-XPEBP6XV.js";
41
38
  import {
42
39
  rainbowWallet
43
40
  } from "./chunk-O5NKWWEG.js";
41
+ import {
42
+ ramperWallet
43
+ } from "./chunk-ZOL6ZMTJ.js";
44
44
  import {
45
45
  safeWallet
46
46
  } from "./chunk-D3DCQ72J.js";
47
+ import {
48
+ safeheronWallet
49
+ } from "./chunk-63NPZXAL.js";
47
50
  import {
48
51
  roninWallet
49
52
  } from "./chunk-LVRXH33E.js";
53
+ import {
54
+ subWallet
55
+ } from "./chunk-ZBAQFL6G.js";
50
56
  import {
51
57
  tahoWallet
52
58
  } from "./chunk-H76YCX2M.js";
53
59
  import {
54
- subWallet
55
- } from "./chunk-ZBAQFL6G.js";
60
+ ledgerWallet
61
+ } from "./chunk-Y6VY6E3L.js";
56
62
  import {
57
- talismanWallet
58
- } from "./chunk-H273OTQA.js";
63
+ metaMaskWallet
64
+ } from "./chunk-3WZRNEZH.js";
59
65
  import {
60
- oneInchWallet
61
- } from "./chunk-LCPIZUR3.js";
66
+ mewWallet
67
+ } from "./chunk-PWYTDYBE.js";
68
+ import {
69
+ oktoWallet
70
+ } from "./chunk-WKHTUEF5.js";
62
71
  import {
63
72
  okxWallet
64
73
  } from "./chunk-NGXIHASN.js";
65
74
  import {
66
- kresusWallet
67
- } from "./chunk-X6T3CICZ.js";
68
- import {
69
- injectedWallet
70
- } from "./chunk-KIHCNUU3.js";
71
- import {
72
- metaMaskWallet
73
- } from "./chunk-3WZRNEZH.js";
75
+ oneInchWallet
76
+ } from "./chunk-LCPIZUR3.js";
74
77
  import {
75
78
  oneKeyWallet
76
79
  } from "./chunk-4WOV4ITL.js";
77
80
  import {
78
- mewWallet
79
- } from "./chunk-PWYTDYBE.js";
80
- import {
81
- ramperWallet
82
- } from "./chunk-ZOL6ZMTJ.js";
81
+ phantomWallet
82
+ } from "./chunk-KGBLSE7L.js";
83
83
  import {
84
84
  foxWallet
85
85
  } from "./chunk-Q4RLUJJD.js";
86
- import {
87
- imTokenWallet
88
- } from "./chunk-5MVV7OVS.js";
89
- import {
90
- gateWallet
91
- } from "./chunk-V45EXW7A.js";
92
86
  import {
93
87
  frameWallet
94
88
  } from "./chunk-XXFJVY73.js";
@@ -96,58 +90,64 @@ import {
96
90
  frontierWallet
97
91
  } from "./chunk-AM4SSLAP.js";
98
92
  import {
99
- ledgerWallet
100
- } from "./chunk-Y6VY6E3L.js";
93
+ gateWallet
94
+ } from "./chunk-V45EXW7A.js";
101
95
  import {
102
- oktoWallet
103
- } from "./chunk-WKHTUEF5.js";
96
+ imTokenWallet
97
+ } from "./chunk-5MVV7OVS.js";
104
98
  import {
105
- coreWallet
106
- } from "./chunk-JLQ5HJYV.js";
99
+ injectedWallet
100
+ } from "./chunk-KIHCNUU3.js";
101
+ import {
102
+ kresusWallet
103
+ } from "./chunk-X6T3CICZ.js";
104
+ import {
105
+ bybitWallet
106
+ } from "./chunk-ZUAHWUEL.js";
107
107
  import {
108
108
  clvWallet
109
109
  } from "./chunk-MIWCKFYE.js";
110
- import {
111
- bitgetWallet
112
- } from "./chunk-ZNXQ4V6G.js";
113
110
  import {
114
111
  coin98Wallet
115
112
  } from "./chunk-4FQLUQNA.js";
116
113
  import {
117
- desigWallet
118
- } from "./chunk-P4JLZ42R.js";
114
+ coinbaseWallet
115
+ } from "./chunk-XBUTWYE4.js";
116
+ import {
117
+ coreWallet
118
+ } from "./chunk-JLQ5HJYV.js";
119
119
  import {
120
120
  dawnWallet
121
121
  } from "./chunk-4XQDKOGF.js";
122
+ import {
123
+ desigWallet
124
+ } from "./chunk-P4JLZ42R.js";
122
125
  import {
123
126
  enkryptWallet
124
127
  } from "./chunk-FLY7F4XA.js";
125
128
  import {
126
- coinbaseWallet
127
- } from "./chunk-XBUTWYE4.js";
129
+ bifrostWallet
130
+ } from "./chunk-6LTLPR2Q.js";
128
131
  import {
129
132
  argentWallet
130
133
  } from "./chunk-NZ5G23JP.js";
131
134
  import {
132
- bifrostWallet
133
- } from "./chunk-6LTLPR2Q.js";
135
+ bitskiWallet
136
+ } from "./chunk-C67TQJ6W.js";
134
137
  import {
135
- bitverseWallet
136
- } from "./chunk-NL4I7WOT.js";
138
+ bitgetWallet
139
+ } from "./chunk-ZNXQ4V6G.js";
137
140
  import {
138
141
  bloomWallet
139
142
  } from "./chunk-NTGZF5BY.js";
140
143
  import "./chunk-ZOLACFTK.js";
141
144
  import {
142
- bybitWallet
143
- } from "./chunk-ZUAHWUEL.js";
145
+ bitverseWallet
146
+ } from "./chunk-NL4I7WOT.js";
144
147
  import "./chunk-ZDU3JFGR.js";
145
148
  import {
146
149
  braveWallet
147
150
  } from "./chunk-ABYQAXUX.js";
148
- import {
149
- bitskiWallet
150
- } from "./chunk-C67TQJ6W.js";
151
151
  import "./chunk-QII6PY2D.js";
152
152
  export {
153
153
  argentWallet,
@@ -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.5",
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,8 +72,8 @@
72
72
  "@types/ua-parser-js": "^0.7.39"
73
73
  },
74
74
  "dependencies": {
75
- "@funkit/wagmi-tools": "^1.0.3",
76
- "@funkit/core": "^1.0.2",
75
+ "@funkit/wagmi-tools": "^1.0.4",
76
+ "@funkit/core": "^1.0.3",
77
77
  "@vanilla-extract/css": "1.14.0",
78
78
  "@vanilla-extract/dynamic": "2.1.0",
79
79
  "@vanilla-extract/sprinkles": "1.6.1",