@funkit/connect 5.5.0 → 5.5.1

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 (41) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/components/Dropdown/ReceiveTokenDropdown.d.ts +2 -1
  3. package/dist/components/MeldQuoteItem/MeldQuoteItem.d.ts +1 -1
  4. package/dist/components/SourceMeldQuoteItem/SourceMeldQuoteItem.d.ts +2 -1
  5. package/dist/components/Tabs/Tabs.d.ts +2 -2
  6. package/dist/components/Tabs/tabs.css.d.ts +1 -0
  7. package/dist/components/VirtualFiatAccount/AccountDetailsTab/AccountDetailsTab.d.ts +9 -0
  8. package/dist/domains/clientMetadata.d.ts +1 -1
  9. package/dist/domains/fees.d.ts +1 -1
  10. package/dist/domains/quote.d.ts +1 -1
  11. package/dist/hooks/queries/useMeldLimits.d.ts +6 -1
  12. package/dist/hooks/useAnimatedNavigation.d.ts +1 -1
  13. package/dist/hooks/useCheckoutDirectExecution.d.ts +2 -1
  14. package/dist/index.css +10 -1
  15. package/dist/index.js +788 -701
  16. package/dist/modals/CheckoutModal/useNewCheckoutQuote.d.ts +1 -1
  17. package/dist/providers/FunkitCheckoutContext.d.ts +2 -1
  18. package/dist/providers/FunkitConfigContext.d.ts +2 -0
  19. package/dist/utils/checkout.d.ts +2 -1
  20. package/dist/utils/flags/config.d.ts +12 -0
  21. package/dist/utils/purifyCheckoutHistoryItem.d.ts +2 -1
  22. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  23. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  24. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  25. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  26. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  27. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  28. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  29. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  30. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  31. package/dist/wallets/walletConnectors/index.js +63 -63
  32. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  33. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  34. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  35. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  36. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  37. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  38. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  39. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  40. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  41. package/package.json +6 -6
@@ -1,7 +1,7 @@
1
1
  import { type DeepPartial } from '@funkit/utils';
2
2
  import { type FunkitActiveCheckoutItem } from '~/providers/FunkitCheckoutContext';
3
3
  export declare function useNewCheckoutQuote(): (overridingCheckoutItem?: DeepPartial<FunkitActiveCheckoutItem>) => Promise<{
4
- baseQuote: import("@funkit/api-base").CheckoutQuoteResponse;
4
+ baseQuote: import("@funkit/utils").CheckoutQuoteResponse;
5
5
  checkedAssetAmount: import("~/domains/quote").CheckedAssetAmount;
6
6
  finalEstimation: import("~/domains/quote").FunkitCheckoutQuoteResult;
7
7
  }>;
@@ -1,4 +1,5 @@
1
- import { type ApiCheckoutClientMetadata, type ApiFunkitCheckoutActionParams, type ApiFunkitCheckoutConfig, type FunAddress } from '@funkit/api-base';
1
+ import { type FunAddress } from '@funkit/api-base';
2
+ import type { ApiCheckoutClientMetadata, ApiFunkitCheckoutActionParams, ApiFunkitCheckoutConfig } from '@funkit/utils';
2
3
  import React, { type ReactNode } from 'react';
3
4
  import type { Address } from 'viem';
4
5
  import type { AssetHoldingsItem } from '~/utils/assets';
@@ -10,6 +10,8 @@ export interface FunkitTextCustomizationsConfig {
10
10
  sourceMethodTitle: string;
11
11
  tokensListTitle: string;
12
12
  transferTokens: string;
13
+ receiveDropdownTitle: string;
14
+ receiveDropdownLabel: string;
13
15
  confirmationScreen: {
14
16
  payAmountLabel: string;
15
17
  receiveAmountLabel: string;
@@ -1,4 +1,5 @@
1
- import { type CheckoutHistoryItem, type CheckoutQuoteResponse, type CheckoutRefundState, CheckoutState, type DirectExecution } from '@funkit/api-base';
1
+ import { type CheckoutHistoryItem, type CheckoutRefundState, CheckoutState, type DirectExecution } from '@funkit/api-base';
2
+ import { type CheckoutQuoteResponse } from '@funkit/utils';
2
3
  import { type Config } from '@wagmi/core';
3
4
  import { type Address, type Hex } from 'viem';
4
5
  import type { UseConfigReturnType } from 'wagmi';
@@ -53,12 +53,24 @@ export declare const flagConfig: {
53
53
  values: string[];
54
54
  }[];
55
55
  value: true;
56
+ if_all?: undefined;
56
57
  } | {
57
58
  if_any: {
58
59
  key: "apiKey";
59
60
  type: "isAnyOf";
60
61
  values: string[];
61
62
  }[];
63
+ if_all: ({
64
+ key: "userId";
65
+ type: "pctRollout";
66
+ pct: number;
67
+ values?: undefined;
68
+ } | {
69
+ key: "apiKey";
70
+ type: "isAnyOf";
71
+ values: string[];
72
+ pct?: undefined;
73
+ })[];
62
74
  value: true;
63
75
  })[];
64
76
  };
@@ -1,4 +1,5 @@
1
- import { type ApiFunkitCheckoutActionParams, type CheckoutHistoryItem, type CheckoutState, type DirectExecution } from '@funkit/api-base';
1
+ import { type CheckoutHistoryItem, type CheckoutState, type DirectExecution } from '@funkit/api-base';
2
+ import type { ApiFunkitCheckoutActionParams } from '@funkit/utils';
2
3
  import type { Address, Hex } from 'viem';
3
4
  export type PurifiedCheckoutHistoryItem = {
4
5
  depositAddr?: Address;
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bifrostWallet
4
- } from "../chunk-545L7Y4M.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-W6N74MS3.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.js";
7
7
  export {
8
8
  bifrostWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bitgetWallet
4
- } from "../chunk-7GSNBOD3.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-A5APNTGL.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.js";
7
7
  export {
8
8
  bitgetWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bybitWallet
4
- } from "../chunk-W5O4YSZN.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-6ONTSPEY.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.js";
7
7
  export {
8
8
  bybitWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  clvWallet
4
- } from "../chunk-LEXSM5KI.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-KR6JBW5E.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.js";
7
7
  export {
8
8
  clvWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  coin98Wallet
4
- } from "../chunk-KFFJPS5R.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-DTRYS3MO.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.js";
7
7
  export {
8
8
  coin98Wallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  coreWallet
4
- } from "../chunk-JXP2QPW7.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-HBA36GW3.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.js";
7
7
  export {
8
8
  coreWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  foxWallet
4
- } from "../chunk-XYBEMO3C.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-LMZMXEXL.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.js";
7
7
  export {
8
8
  foxWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  frontierWallet
4
- } from "../chunk-HKV7EMYZ.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-3S2U24BJ.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.js";
7
7
  export {
8
8
  frontierWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  gateWallet
4
- } from "../chunk-3NC26XLM.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-GSOYKKIS.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.js";
7
7
  export {
8
8
  gateWallet
9
9
  };
@@ -1,31 +1,28 @@
1
1
  "use client";
2
- import {
3
- xdefiWallet
4
- } from "./chunk-NO7XMBB5.js";
5
- import {
6
- zealWallet
7
- } from "./chunk-JROWU5BP.js";
8
2
  import {
9
3
  zerionWallet
10
- } from "./chunk-ETTNDQQG.js";
11
- import {
12
- subWallet
13
- } from "./chunk-4UM4GTKZ.js";
4
+ } from "./chunk-AXWP3GD4.js";
14
5
  import {
15
6
  tahoWallet
16
7
  } from "./chunk-6P2EMPZI.js";
8
+ import {
9
+ xdefiWallet
10
+ } from "./chunk-NO7XMBB5.js";
11
+ import {
12
+ subWallet
13
+ } from "./chunk-AD2KIJB6.js";
17
14
  import {
18
15
  talismanWallet
19
16
  } from "./chunk-ABFSXBE6.js";
20
- import {
21
- tokenPocketWallet
22
- } from "./chunk-FRGSRLTS.js";
23
17
  import {
24
18
  tokenaryWallet
25
19
  } from "./chunk-SLOIIJGP.js";
20
+ import {
21
+ tokenPocketWallet
22
+ } from "./chunk-IDKVN5CF.js";
26
23
  import {
27
24
  trustWallet
28
- } from "./chunk-IPOC2VJX.js";
25
+ } from "./chunk-ISIBREBO.js";
29
26
  import {
30
27
  uniswapWallet
31
28
  } from "./chunk-LH7BMNFZ.js";
@@ -33,35 +30,35 @@ import {
33
30
  walletConnectWallet
34
31
  } from "./chunk-NP5QGWNL.js";
35
32
  import {
36
- rabbyWallet
37
- } from "./chunk-BVX4XGNP.js";
33
+ zealWallet
34
+ } from "./chunk-JROWU5BP.js";
38
35
  import {
39
36
  rainbowWallet
40
- } from "./chunk-MOOBCMMB.js";
37
+ } from "./chunk-2UCNRD7H.js";
38
+ import {
39
+ rabbyWallet
40
+ } from "./chunk-BVX4XGNP.js";
41
41
  import {
42
42
  ramperWallet
43
43
  } from "./chunk-PIUNLQJG.js";
44
44
  import {
45
45
  roninWallet
46
- } from "./chunk-25VW5TZP.js";
46
+ } from "./chunk-63YLN6R5.js";
47
47
  import {
48
- oneKeyWallet
49
- } from "./chunk-4AD7VI2P.js";
48
+ safeWallet
49
+ } from "./chunk-BQQQL6UD.js";
50
+ import {
51
+ omniWallet
52
+ } from "./chunk-7CUY5G6R.js";
50
53
  import {
51
54
  safeheronWallet
52
55
  } from "./chunk-R6RWZRFF.js";
53
- import {
54
- safeWallet
55
- } from "./chunk-BQQQL6UD.js";
56
56
  import {
57
57
  safepalWallet
58
- } from "./chunk-6LPM6LUQ.js";
58
+ } from "./chunk-MSFKSQBY.js";
59
59
  import {
60
60
  ledgerWallet
61
61
  } from "./chunk-BRBKM4PW.js";
62
- import {
63
- metaMaskWallet
64
- } from "./chunk-N2NIIUW6.js";
65
62
  import {
66
63
  mewWallet
67
64
  } from "./chunk-V57WLZEE.js";
@@ -69,85 +66,88 @@ import {
69
66
  oktoWallet
70
67
  } from "./chunk-ADIXAKUL.js";
71
68
  import {
72
- okxWallet
73
- } from "./chunk-3U3BMEH5.js";
69
+ metaMaskWallet
70
+ } from "./chunk-G73C6P5P.js";
74
71
  import {
75
- omniWallet
76
- } from "./chunk-7CUY5G6R.js";
72
+ okxWallet
73
+ } from "./chunk-4WEHDI4Y.js";
77
74
  import {
78
75
  oneInchWallet
79
76
  } from "./chunk-OESTDX6I.js";
77
+ import {
78
+ oneKeyWallet
79
+ } from "./chunk-4AD7VI2P.js";
80
80
  import {
81
81
  phantomWallet
82
82
  } from "./chunk-ZSVTX6EK.js";
83
83
  import {
84
- foxWallet
85
- } from "./chunk-XYBEMO3C.js";
86
- import {
87
- frameWallet
88
- } from "./chunk-ZMYVTWDF.js";
84
+ bitgetWallet
85
+ } from "./chunk-A5APNTGL.js";
89
86
  import {
90
87
  frontierWallet
91
- } from "./chunk-HKV7EMYZ.js";
92
- import {
93
- gateWallet
94
- } from "./chunk-3NC26XLM.js";
88
+ } from "./chunk-3S2U24BJ.js";
95
89
  import {
96
90
  imTokenWallet
97
91
  } from "./chunk-COZ7MIQS.js";
92
+ import {
93
+ gateWallet
94
+ } from "./chunk-GSOYKKIS.js";
95
+ import {
96
+ desigWallet
97
+ } from "./chunk-CTU6JCOK.js";
98
98
  import {
99
99
  injectedWallet
100
100
  } from "./chunk-VCVVV2K7.js";
101
+ import {
102
+ enkryptWallet
103
+ } from "./chunk-SJTXS4ZW.js";
101
104
  import {
102
105
  kresusWallet
103
106
  } from "./chunk-MJXPRJZT.js";
104
- import {
105
- bybitWallet
106
- } from "./chunk-W5O4YSZN.js";
107
107
  import {
108
108
  coin98Wallet
109
- } from "./chunk-KFFJPS5R.js";
110
- import {
111
- clvWallet
112
- } from "./chunk-LEXSM5KI.js";
109
+ } from "./chunk-DTRYS3MO.js";
113
110
  import {
114
111
  coinbaseWallet
115
112
  } from "./chunk-H4IRCEZN.js";
113
+ import {
114
+ bloomWallet
115
+ } from "./chunk-S27IADFU.js";
116
116
  import {
117
117
  coreWallet
118
- } from "./chunk-JXP2QPW7.js";
118
+ } from "./chunk-HBA36GW3.js";
119
119
  import {
120
- dawnWallet
121
- } from "./chunk-LN7OD5EC.js";
120
+ foxWallet
121
+ } from "./chunk-LMZMXEXL.js";
122
122
  import {
123
- desigWallet
124
- } from "./chunk-CTU6JCOK.js";
123
+ frameWallet
124
+ } from "./chunk-ZMYVTWDF.js";
125
125
  import {
126
- enkryptWallet
127
- } from "./chunk-SJTXS4ZW.js";
126
+ dawnWallet
127
+ } from "./chunk-LN7OD5EC.js";
128
128
  import {
129
129
  argentWallet
130
130
  } from "./chunk-WSQ2YJO2.js";
131
131
  import {
132
132
  bifrostWallet
133
- } from "./chunk-545L7Y4M.js";
133
+ } from "./chunk-W6N74MS3.js";
134
134
  import {
135
- bitgetWallet
136
- } from "./chunk-7GSNBOD3.js";
135
+ bitverseWallet
136
+ } from "./chunk-3HZRRP4Y.js";
137
137
  import {
138
138
  bitskiWallet
139
139
  } from "./chunk-P74YPRF6.js";
140
- import {
141
- bitverseWallet
142
- } from "./chunk-3HZRRP4Y.js";
143
140
  import {
144
141
  braveWallet
145
142
  } from "./chunk-PB254NQ4.js";
146
- import "./chunk-WRA2DVJ7.js";
147
143
  import {
148
- bloomWallet
149
- } from "./chunk-S27IADFU.js";
144
+ bybitWallet
145
+ } from "./chunk-6ONTSPEY.js";
146
+ import {
147
+ clvWallet
148
+ } from "./chunk-KR6JBW5E.js";
150
149
  import "./chunk-23WIEY36.js";
150
+ import "./chunk-WRA2DVJ7.js";
151
151
  export {
152
152
  argentWallet,
153
153
  bifrostWallet,
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  metaMaskWallet
4
- } from "../chunk-N2NIIUW6.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-G73C6P5P.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.js";
7
7
  export {
8
8
  metaMaskWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  okxWallet
4
- } from "../chunk-3U3BMEH5.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-4WEHDI4Y.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.js";
7
7
  export {
8
8
  okxWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  rainbowWallet
4
- } from "../chunk-MOOBCMMB.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-2UCNRD7H.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.js";
7
7
  export {
8
8
  rainbowWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  roninWallet
4
- } from "../chunk-25VW5TZP.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-63YLN6R5.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.js";
7
7
  export {
8
8
  roninWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  safepalWallet
4
- } from "../chunk-6LPM6LUQ.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-MSFKSQBY.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.js";
7
7
  export {
8
8
  safepalWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  subWallet
4
- } from "../chunk-4UM4GTKZ.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-AD2KIJB6.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.js";
7
7
  export {
8
8
  subWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  tokenPocketWallet
4
- } from "../chunk-FRGSRLTS.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-IDKVN5CF.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.js";
7
7
  export {
8
8
  tokenPocketWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  trustWallet
4
- } from "../chunk-IPOC2VJX.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-ISIBREBO.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.js";
7
7
  export {
8
8
  trustWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  zerionWallet
4
- } from "../chunk-ETTNDQQG.js";
5
- import "../chunk-WRA2DVJ7.js";
4
+ } from "../chunk-AXWP3GD4.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-WRA2DVJ7.js";
7
7
  export {
8
8
  zerionWallet
9
9
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkit/connect",
3
- "version": "5.5.0",
3
+ "version": "5.5.1",
4
4
  "description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
5
5
  "files": [
6
6
  "dist",
@@ -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.9.0",
96
- "@funkit/fun-relay": "0.1.5",
95
+ "@funkit/api-base": "1.9.1",
96
+ "@funkit/core": "2.3.23",
97
+ "@funkit/fun-relay": "0.1.6",
98
+ "@funkit/utils": "1.1.1",
97
99
  "@funkit/chains": "0.3.1",
98
- "@funkit/utils": "1.1.0",
99
- "@funkit/core": "2.3.22",
100
- "@funkit/wagmi-tools": "3.0.44"
100
+ "@funkit/wagmi-tools": "3.0.45"
101
101
  },
102
102
  "repository": {
103
103
  "type": "git",