@funkit/connect 6.14.7 → 6.14.8

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.
@@ -56,7 +56,10 @@ export interface AmountInputState {
56
56
  export interface AmountInputDerivedState extends AmountInputState {
57
57
  inputDecimals: number;
58
58
  inputError: AmountInputError | null;
59
- inputPrefix: string;
59
+ inputAffix: {
60
+ content: string;
61
+ type: 'prefix' | 'suffix';
62
+ };
60
63
  isValid: boolean;
61
64
  placeholder: string;
62
65
  }
@@ -68,6 +68,7 @@ export declare const useActiveTheme: () => {
68
68
  buttonWarning: string;
69
69
  buttonSuccess: string;
70
70
  buttonTextPrimary: string;
71
+ buttonTextHover: string;
71
72
  buttonTextDisabled: string;
72
73
  transparent: string;
73
74
  buttonBackgroundTertiary: string;
@@ -86,6 +87,9 @@ export declare const useActiveTheme: () => {
86
87
  buttonIconStroke: string;
87
88
  buttonBorderFocusedTertiary: string;
88
89
  buttonFocusedOutline: string;
90
+ buttonBorderGradient: string;
91
+ buttonHoverBorderGradient: string;
92
+ buttonDisabledBorderGradient: string;
89
93
  badgeBackgroundSuccess: string;
90
94
  badgeBorderSuccess: string;
91
95
  badgeTextSuccess: string;
@@ -228,6 +232,7 @@ export declare const useActiveTheme: () => {
228
232
  dropdown: string;
229
233
  notification: string;
230
234
  qrCode: string;
235
+ buttonShadow: string;
231
236
  buttonFocusedShadow: string;
232
237
  buttonHoverShadow: string;
233
238
  buttonFocusedShadowTertiary: string;
@@ -297,6 +302,7 @@ export declare const useActiveTheme: () => {
297
302
  buttonWarning: string;
298
303
  buttonSuccess: string;
299
304
  buttonTextPrimary: string;
305
+ buttonTextHover: string;
300
306
  buttonTextDisabled: string;
301
307
  transparent: string;
302
308
  buttonBackgroundTertiary: string;
@@ -315,6 +321,9 @@ export declare const useActiveTheme: () => {
315
321
  buttonIconStroke: string;
316
322
  buttonBorderFocusedTertiary: string;
317
323
  buttonFocusedOutline: string;
324
+ buttonBorderGradient: string;
325
+ buttonHoverBorderGradient: string;
326
+ buttonDisabledBorderGradient: string;
318
327
  badgeBackgroundSuccess: string;
319
328
  badgeBorderSuccess: string;
320
329
  badgeTextSuccess: string;
@@ -457,6 +466,7 @@ export declare const useActiveTheme: () => {
457
466
  dropdown: string;
458
467
  notification: string;
459
468
  qrCode: string;
469
+ buttonShadow: string;
460
470
  buttonFocusedShadow: string;
461
471
  buttonHoverShadow: string;
462
472
  buttonFocusedShadowTertiary: string;
@@ -524,6 +534,7 @@ export declare const useActiveTheme: () => {
524
534
  buttonWarning: string;
525
535
  buttonSuccess: string;
526
536
  buttonTextPrimary: string;
537
+ buttonTextHover: string;
527
538
  buttonTextDisabled: string;
528
539
  transparent: string;
529
540
  buttonBackgroundTertiary: string;
@@ -542,6 +553,9 @@ export declare const useActiveTheme: () => {
542
553
  buttonIconStroke: string;
543
554
  buttonBorderFocusedTertiary: string;
544
555
  buttonFocusedOutline: string;
556
+ buttonBorderGradient: string;
557
+ buttonHoverBorderGradient: string;
558
+ buttonDisabledBorderGradient: string;
545
559
  badgeBackgroundSuccess: string;
546
560
  badgeBorderSuccess: string;
547
561
  badgeTextSuccess: string;
@@ -684,6 +698,7 @@ export declare const useActiveTheme: () => {
684
698
  dropdown: string;
685
699
  notification: string;
686
700
  qrCode: string;
701
+ buttonShadow: string;
687
702
  buttonFocusedShadow: string;
688
703
  buttonHoverShadow: string;
689
704
  buttonFocusedShadowTertiary: string;
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  darkTheme
4
- } from "../chunk-CSLMZ5KJ.js";
4
+ } from "../chunk-3SMGLDNF.js";
5
5
  import "../chunk-WCUXJAGT.js";
6
6
  export {
7
7
  darkTheme
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  lightTheme
4
- } from "../chunk-4WTYVVDI.js";
4
+ } from "../chunk-XH2UUILF.js";
5
5
  import "../chunk-WCUXJAGT.js";
6
6
  export {
7
7
  lightTheme
@@ -96,9 +96,10 @@ export declare function getCheckoutReceivedAmountFormatted({ config, quote, }: {
96
96
  * - e.g. "0.12345 ETH"
97
97
  * Ideally, should be used via the hook `useCheckoutItemDisplay` to handle the customer cutomization check.
98
98
  */
99
- export declare function getCheckoutItemDisplay({ checkoutConfig, hideAmount, }: {
99
+ export declare function getCheckoutItemDisplay({ checkoutConfig, hideAmount, overrideAmount, }: {
100
100
  checkoutConfig: FunkitCheckoutConfig | ServerCheckoutConfig;
101
101
  hideAmount?: boolean;
102
+ overrideAmount?: number;
102
103
  }): string;
103
104
  /**
104
105
  * Given the result of a quote, calculate the effective fees (in source asset).
@@ -152,4 +153,14 @@ export type MergedCheckoutHistoryItem = {
152
153
  directExecution: true;
153
154
  }));
154
155
  export declare function toMergedCheckoutHistoryItem(item: CheckoutHistoryItem | DirectExecution): MergedCheckoutHistoryItem;
156
+ export declare function isVaultDepositCheckout(checkoutConfig: FunkitCheckoutConfig, sourceHolding: {
157
+ chainId: string;
158
+ tokenAddress: string;
159
+ }): boolean;
160
+ /** some additional staking token will be performed after swap. We need to calculate the final destination token amount */
161
+ export declare function computeDisplayDestinationToken(checkoutConfig: FunkitCheckoutConfig | ServerCheckoutConfig | undefined, displayAssetAmount: number): {
162
+ stakingTokenAmount: number;
163
+ stakingTokenSymbol: string;
164
+ stakingTokenIcon: string;
165
+ };
155
166
  export {};
@@ -17,7 +17,7 @@ export declare const flagConfig: {
17
17
  readonly if_any: [{
18
18
  readonly key: "apiKey";
19
19
  readonly type: "isAnyOf";
20
- readonly values: ["Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "OXLUmejkh9PlNDS4gSvi9gcEWacOpTz2KUVepVf4"];
20
+ readonly values: ["Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "OXLUmejkh9PlNDS4gSvi9gcEWacOpTz2KUVepVf4", "lUzTaIRxs95iin3pCAafB1ChA5akBiuQ1tjhXnau", "di9ZSqn1Ya68Y2XpBPUV1rCtNGXh8Xe5MGWzb1Xe"];
21
21
  }];
22
22
  readonly value: "";
23
23
  }];
@@ -126,6 +126,13 @@ export declare const flagConfig: {
126
126
  readonly values: ["vWe20Dfyui2ouvfOhtSTY3Czeo8lFdbo5xXQBALZ"];
127
127
  }];
128
128
  readonly value: string;
129
+ }, {
130
+ readonly if_any: [{
131
+ readonly key: "apiKey";
132
+ readonly type: "isAnyOf";
133
+ readonly values: ["Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6"];
134
+ }];
135
+ readonly value: string;
129
136
  }];
130
137
  };
131
138
  readonly is_checkout_activated: {
@@ -1,9 +1,6 @@
1
- import { type Config } from 'wagmi';
2
- import type { ConnectMutateAsync } from 'wagmi/query';
3
1
  import type { WalletInstance } from './Wallet';
4
2
  export interface WalletConnector extends WalletInstance {
5
3
  ready?: boolean;
6
- connect: () => ReturnType<ConnectMutateAsync<Config, unknown>>;
7
4
  showWalletConnectModal?: () => void;
8
5
  recent: boolean;
9
6
  mobileDownloadUrl?: string;
@@ -1,67 +1,67 @@
1
1
  "use client";
2
2
  import {
3
- xdefiWallet
4
- } from "./chunk-BOU4WKRZ.js";
5
- import {
6
- zealWallet
7
- } from "./chunk-RNBEDQHF.js";
3
+ walletConnectWallet
4
+ } from "./chunk-NP5QGWNL.js";
8
5
  import {
9
6
  zerionWallet
10
7
  } from "./chunk-Q3H3TRBS.js";
8
+ import {
9
+ zealWallet
10
+ } from "./chunk-RNBEDQHF.js";
11
11
  import {
12
12
  subWallet
13
13
  } from "./chunk-ZSI5N4VV.js";
14
+ import {
15
+ tokenPocketWallet
16
+ } from "./chunk-J3LI3FYZ.js";
14
17
  import {
15
18
  tahoWallet
16
19
  } from "./chunk-ZZZRUXZE.js";
20
+ import {
21
+ tokenaryWallet
22
+ } from "./chunk-D6AOOO5F.js";
17
23
  import {
18
24
  talismanWallet
19
25
  } from "./chunk-DRO6WYMM.js";
20
26
  import {
21
- tokenPocketWallet
22
- } from "./chunk-J3LI3FYZ.js";
23
- import {
24
- tokenaryWallet
25
- } from "./chunk-D6AOOO5F.js";
27
+ trustWallet
28
+ } from "./chunk-RKPCWHXL.js";
26
29
  import {
27
30
  uniswapWallet
28
31
  } from "./chunk-LH7BMNFZ.js";
29
32
  import {
30
- walletConnectWallet
31
- } from "./chunk-NP5QGWNL.js";
32
- import {
33
- trustWallet
34
- } from "./chunk-RKPCWHXL.js";
33
+ xdefiWallet
34
+ } from "./chunk-BOU4WKRZ.js";
35
35
  import {
36
- oneKeyWallet
37
- } from "./chunk-SHBUZ7U7.js";
36
+ rabbyWallet
37
+ } from "./chunk-BBOM42DL.js";
38
38
  import {
39
39
  oneInchWallet
40
40
  } from "./chunk-OESTDX6I.js";
41
41
  import {
42
- roninWallet
43
- } from "./chunk-QLVVUKYB.js";
42
+ rainbowWallet
43
+ } from "./chunk-3CICVJUN.js";
44
44
  import {
45
45
  ramperWallet
46
46
  } from "./chunk-BYXPFMI7.js";
47
47
  import {
48
- rainbowWallet
49
- } from "./chunk-3CICVJUN.js";
48
+ roninWallet
49
+ } from "./chunk-QLVVUKYB.js";
50
50
  import {
51
- safeWallet
52
- } from "./chunk-BQQQL6UD.js";
51
+ safepalWallet
52
+ } from "./chunk-EC6CHBSZ.js";
53
53
  import {
54
54
  safeheronWallet
55
55
  } from "./chunk-RZIO5TFF.js";
56
56
  import {
57
- safepalWallet
58
- } from "./chunk-EC6CHBSZ.js";
57
+ safeWallet
58
+ } from "./chunk-BQQQL6UD.js";
59
59
  import {
60
- injectedWallet
61
- } from "./chunk-XWUJE7MW.js";
60
+ kresusWallet
61
+ } from "./chunk-MJXPRJZT.js";
62
62
  import {
63
- metaMaskWallet
64
- } from "./chunk-UYGJO62F.js";
63
+ ledgerWallet
64
+ } from "./chunk-BRBKM4PW.js";
65
65
  import {
66
66
  mewWallet
67
67
  } from "./chunk-OL5ZO7E4.js";
@@ -71,82 +71,82 @@ import {
71
71
  import {
72
72
  oktoWallet
73
73
  } from "./chunk-ADIXAKUL.js";
74
+ import {
75
+ oneKeyWallet
76
+ } from "./chunk-SHBUZ7U7.js";
74
77
  import {
75
78
  omniWallet
76
79
  } from "./chunk-7CUY5G6R.js";
77
- import {
78
- rabbyWallet
79
- } from "./chunk-BBOM42DL.js";
80
80
  import {
81
81
  phantomWallet
82
82
  } from "./chunk-362NXNTM.js";
83
83
  import {
84
84
  frontierWallet
85
85
  } from "./chunk-VWCLFMWJ.js";
86
- import {
87
- foxWallet
88
- } from "./chunk-CNPKISHN.js";
89
86
  import {
90
87
  frameWallet
91
88
  } from "./chunk-IFON7E6U.js";
92
89
  import {
93
- gateWallet
94
- } from "./chunk-CJGUM55H.js";
90
+ coreWallet
91
+ } from "./chunk-JCHN6A47.js";
95
92
  import {
96
- kresusWallet
97
- } from "./chunk-MJXPRJZT.js";
93
+ injectedWallet
94
+ } from "./chunk-XWUJE7MW.js";
98
95
  import {
99
96
  imTokenWallet
100
97
  } from "./chunk-COZ7MIQS.js";
101
98
  import {
102
- ledgerWallet
103
- } from "./chunk-BRBKM4PW.js";
99
+ gateWallet
100
+ } from "./chunk-CJGUM55H.js";
104
101
  import {
105
- clvWallet
106
- } from "./chunk-2GJQ4XZQ.js";
102
+ metaMaskWallet
103
+ } from "./chunk-UYGJO62F.js";
107
104
  import {
108
105
  braveWallet
109
106
  } from "./chunk-BPZ2XJO2.js";
110
- import {
111
- coin98Wallet
112
- } from "./chunk-KIDC67XJ.js";
113
107
  import {
114
108
  coinbaseWallet
115
109
  } from "./chunk-H4IRCEZN.js";
110
+ import {
111
+ coin98Wallet
112
+ } from "./chunk-KIDC67XJ.js";
116
113
  import {
117
114
  dawnWallet
118
115
  } from "./chunk-HWPKCIBE.js";
119
116
  import {
120
- coreWallet
121
- } from "./chunk-JCHN6A47.js";
117
+ clvWallet
118
+ } from "./chunk-2GJQ4XZQ.js";
122
119
  import {
123
- desigWallet
124
- } from "./chunk-OPAZMNA7.js";
120
+ foxWallet
121
+ } from "./chunk-CNPKISHN.js";
125
122
  import {
126
123
  enkryptWallet
127
124
  } from "./chunk-OLOIXTYS.js";
128
125
  import {
129
- argentWallet
130
- } from "./chunk-WSQ2YJO2.js";
131
- import {
132
- bitverseWallet
133
- } from "./chunk-3HZRRP4Y.js";
126
+ desigWallet
127
+ } from "./chunk-OPAZMNA7.js";
134
128
  import {
135
129
  bifrostWallet
136
130
  } from "./chunk-UIASLGLV.js";
137
131
  import {
138
- bitgetWallet
139
- } from "./chunk-5W7VDOCL.js";
132
+ argentWallet
133
+ } from "./chunk-WSQ2YJO2.js";
140
134
  import {
141
135
  bitskiWallet
142
136
  } from "./chunk-HS3C7OQV.js";
143
137
  import {
144
- bybitWallet
145
- } from "./chunk-LNEC5RNX.js";
146
- import "./chunk-DNSG5Q7V.js";
138
+ bitgetWallet
139
+ } from "./chunk-5W7VDOCL.js";
140
+ import {
141
+ bitverseWallet
142
+ } from "./chunk-3HZRRP4Y.js";
147
143
  import {
148
144
  bloomWallet
149
145
  } from "./chunk-S27IADFU.js";
146
+ import {
147
+ bybitWallet
148
+ } from "./chunk-LNEC5RNX.js";
149
+ import "./chunk-DNSG5Q7V.js";
150
150
  import "./chunk-23WIEY36.js";
151
151
  export {
152
152
  argentWallet,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkit/connect",
3
- "version": "6.14.7",
3
+ "version": "6.14.8",
4
4
  "description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
5
5
  "files": [
6
6
  "dist",
@@ -82,7 +82,7 @@
82
82
  "@vanilla-extract/css": "1.15.3",
83
83
  "@vanilla-extract/dynamic": "2.1.0",
84
84
  "@vanilla-extract/sprinkles": "1.6.1",
85
- "@wagmi/core": "2.17.2",
85
+ "@wagmi/core": "2.21.1",
86
86
  "bech32": "^2.0.0",
87
87
  "clsx": "2.1.1",
88
88
  "motion": "^12.0.11",
@@ -92,12 +92,12 @@
92
92
  "ua-parser-js": "^1.0.37",
93
93
  "use-debounce": "^10.0.5",
94
94
  "uuid": "^9.0.1",
95
- "@funkit/api-base": "1.12.6",
96
- "@funkit/fun-relay": "2.0.5",
95
+ "@funkit/api-base": "1.12.7",
96
+ "@funkit/core": "2.3.52",
97
97
  "@funkit/chains": "0.4.1",
98
- "@funkit/utils": "1.1.12",
99
- "@funkit/core": "2.3.51",
100
- "@funkit/wagmi-tools": "3.0.74"
98
+ "@funkit/fun-relay": "2.1.0",
99
+ "@funkit/wagmi-tools": "3.0.75",
100
+ "@funkit/utils": "1.1.12"
101
101
  },
102
102
  "repository": {
103
103
  "type": "git",