@funkit/connect 6.14.6 → 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,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
- xdefiWallet
4
- } from "./chunk-BOU4WKRZ.js";
3
+ walletConnectWallet
4
+ } from "./chunk-NP5QGWNL.js";
5
5
  import {
6
6
  zerionWallet
7
7
  } from "./chunk-Q3H3TRBS.js";
@@ -15,11 +15,14 @@ import {
15
15
  tokenPocketWallet
16
16
  } from "./chunk-J3LI3FYZ.js";
17
17
  import {
18
- talismanWallet
19
- } from "./chunk-DRO6WYMM.js";
18
+ tahoWallet
19
+ } from "./chunk-ZZZRUXZE.js";
20
20
  import {
21
21
  tokenaryWallet
22
22
  } from "./chunk-D6AOOO5F.js";
23
+ import {
24
+ talismanWallet
25
+ } from "./chunk-DRO6WYMM.js";
23
26
  import {
24
27
  trustWallet
25
28
  } from "./chunk-RKPCWHXL.js";
@@ -27,20 +30,17 @@ import {
27
30
  uniswapWallet
28
31
  } from "./chunk-LH7BMNFZ.js";
29
32
  import {
30
- walletConnectWallet
31
- } from "./chunk-NP5QGWNL.js";
33
+ xdefiWallet
34
+ } from "./chunk-BOU4WKRZ.js";
32
35
  import {
33
- tahoWallet
34
- } from "./chunk-ZZZRUXZE.js";
36
+ rabbyWallet
37
+ } from "./chunk-BBOM42DL.js";
35
38
  import {
36
- omniWallet
37
- } from "./chunk-7CUY5G6R.js";
39
+ oneInchWallet
40
+ } from "./chunk-OESTDX6I.js";
38
41
  import {
39
42
  rainbowWallet
40
43
  } from "./chunk-3CICVJUN.js";
41
- import {
42
- rabbyWallet
43
- } from "./chunk-BBOM42DL.js";
44
44
  import {
45
45
  ramperWallet
46
46
  } from "./chunk-BYXPFMI7.js";
@@ -48,41 +48,38 @@ import {
48
48
  roninWallet
49
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
+ import {
60
+ kresusWallet
61
+ } from "./chunk-MJXPRJZT.js";
62
+ import {
63
+ ledgerWallet
64
+ } from "./chunk-BRBKM4PW.js";
59
65
  import {
60
66
  mewWallet
61
67
  } from "./chunk-OL5ZO7E4.js";
62
- import {
63
- oktoWallet
64
- } from "./chunk-ADIXAKUL.js";
65
68
  import {
66
69
  okxWallet
67
70
  } from "./chunk-AFXHGWBH.js";
68
71
  import {
69
- oneInchWallet
70
- } from "./chunk-OESTDX6I.js";
72
+ oktoWallet
73
+ } from "./chunk-ADIXAKUL.js";
71
74
  import {
72
- metaMaskWallet
73
- } from "./chunk-UYGJO62F.js";
75
+ oneKeyWallet
76
+ } from "./chunk-SHBUZ7U7.js";
74
77
  import {
75
- injectedWallet
76
- } from "./chunk-XWUJE7MW.js";
78
+ omniWallet
79
+ } from "./chunk-7CUY5G6R.js";
77
80
  import {
78
81
  phantomWallet
79
82
  } from "./chunk-362NXNTM.js";
80
- import {
81
- oneKeyWallet
82
- } from "./chunk-SHBUZ7U7.js";
83
- import {
84
- foxWallet
85
- } from "./chunk-CNPKISHN.js";
86
83
  import {
87
84
  frontierWallet
88
85
  } from "./chunk-VWCLFMWJ.js";
@@ -90,41 +87,44 @@ 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";
92
+ import {
93
+ injectedWallet
94
+ } from "./chunk-XWUJE7MW.js";
95
95
  import {
96
96
  imTokenWallet
97
97
  } from "./chunk-COZ7MIQS.js";
98
98
  import {
99
- ledgerWallet
100
- } from "./chunk-BRBKM4PW.js";
99
+ gateWallet
100
+ } from "./chunk-CJGUM55H.js";
101
101
  import {
102
- kresusWallet
103
- } from "./chunk-MJXPRJZT.js";
102
+ metaMaskWallet
103
+ } from "./chunk-UYGJO62F.js";
104
104
  import {
105
105
  braveWallet
106
106
  } from "./chunk-BPZ2XJO2.js";
107
- import {
108
- bitverseWallet
109
- } from "./chunk-3HZRRP4Y.js";
110
107
  import {
111
108
  coinbaseWallet
112
109
  } from "./chunk-H4IRCEZN.js";
113
110
  import {
114
- bybitWallet
115
- } from "./chunk-LNEC5RNX.js";
116
- import {
117
- coreWallet
118
- } from "./chunk-JCHN6A47.js";
111
+ coin98Wallet
112
+ } from "./chunk-KIDC67XJ.js";
119
113
  import {
120
114
  dawnWallet
121
115
  } from "./chunk-HWPKCIBE.js";
122
116
  import {
123
- desigWallet
124
- } from "./chunk-OPAZMNA7.js";
117
+ clvWallet
118
+ } from "./chunk-2GJQ4XZQ.js";
119
+ import {
120
+ foxWallet
121
+ } from "./chunk-CNPKISHN.js";
125
122
  import {
126
123
  enkryptWallet
127
124
  } from "./chunk-OLOIXTYS.js";
125
+ import {
126
+ desigWallet
127
+ } from "./chunk-OPAZMNA7.js";
128
128
  import {
129
129
  bifrostWallet
130
130
  } from "./chunk-UIASLGLV.js";
@@ -137,15 +137,15 @@ import {
137
137
  import {
138
138
  bitgetWallet
139
139
  } from "./chunk-5W7VDOCL.js";
140
+ import {
141
+ bitverseWallet
142
+ } from "./chunk-3HZRRP4Y.js";
140
143
  import {
141
144
  bloomWallet
142
145
  } from "./chunk-S27IADFU.js";
143
146
  import {
144
- clvWallet
145
- } from "./chunk-2GJQ4XZQ.js";
146
- import {
147
- coin98Wallet
148
- } from "./chunk-KIDC67XJ.js";
147
+ bybitWallet
148
+ } from "./chunk-LNEC5RNX.js";
149
149
  import "./chunk-DNSG5Q7V.js";
150
150
  import "./chunk-23WIEY36.js";
151
151
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkit/connect",
3
- "version": "6.14.6",
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",
95
+ "@funkit/api-base": "1.12.7",
96
+ "@funkit/core": "2.3.52",
96
97
  "@funkit/chains": "0.4.1",
97
- "@funkit/core": "2.3.51",
98
- "@funkit/fun-relay": "2.0.4",
99
- "@funkit/utils": "1.1.12",
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",