@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.
- package/CHANGELOG.md +17 -0
- package/dist/components/Dropdown/ReceiveTokenDropdown.d.ts +2 -1
- package/dist/components/MeldQuoteItem/MeldQuoteItem.d.ts +1 -1
- package/dist/components/SourceMeldQuoteItem/SourceMeldQuoteItem.d.ts +2 -1
- package/dist/components/Tabs/Tabs.d.ts +2 -2
- package/dist/components/Tabs/tabs.css.d.ts +1 -0
- package/dist/components/VirtualFiatAccount/AccountDetailsTab/AccountDetailsTab.d.ts +9 -0
- package/dist/domains/clientMetadata.d.ts +1 -1
- package/dist/domains/fees.d.ts +1 -1
- package/dist/domains/quote.d.ts +1 -1
- package/dist/hooks/queries/useMeldLimits.d.ts +6 -1
- package/dist/hooks/useAnimatedNavigation.d.ts +1 -1
- package/dist/hooks/useCheckoutDirectExecution.d.ts +2 -1
- package/dist/index.css +10 -1
- package/dist/index.js +788 -701
- package/dist/modals/CheckoutModal/useNewCheckoutQuote.d.ts +1 -1
- package/dist/providers/FunkitCheckoutContext.d.ts +2 -1
- package/dist/providers/FunkitConfigContext.d.ts +2 -0
- package/dist/utils/checkout.d.ts +2 -1
- package/dist/utils/flags/config.d.ts +12 -0
- package/dist/utils/purifyCheckoutHistoryItem.d.ts +2 -1
- package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
- package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
- package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
- package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
- package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
- package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
- package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
- package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
- package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
- package/dist/wallets/walletConnectors/index.js +63 -63
- package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
- package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
- package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
- package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
- package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
- package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
- package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
- package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
- package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
- 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/
|
|
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
|
|
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;
|
package/dist/utils/checkout.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { type CheckoutHistoryItem, type
|
|
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
|
|
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,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-
|
|
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-
|
|
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
|
-
|
|
37
|
-
} from "./chunk-
|
|
33
|
+
zealWallet
|
|
34
|
+
} from "./chunk-JROWU5BP.js";
|
|
38
35
|
import {
|
|
39
36
|
rainbowWallet
|
|
40
|
-
} from "./chunk-
|
|
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-
|
|
46
|
+
} from "./chunk-63YLN6R5.js";
|
|
47
47
|
import {
|
|
48
|
-
|
|
49
|
-
} from "./chunk-
|
|
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-
|
|
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
|
-
|
|
73
|
-
} from "./chunk-
|
|
69
|
+
metaMaskWallet
|
|
70
|
+
} from "./chunk-G73C6P5P.js";
|
|
74
71
|
import {
|
|
75
|
-
|
|
76
|
-
} from "./chunk-
|
|
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
|
-
|
|
85
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
118
|
+
} from "./chunk-HBA36GW3.js";
|
|
119
119
|
import {
|
|
120
|
-
|
|
121
|
-
} from "./chunk-
|
|
120
|
+
foxWallet
|
|
121
|
+
} from "./chunk-LMZMXEXL.js";
|
|
122
122
|
import {
|
|
123
|
-
|
|
124
|
-
} from "./chunk-
|
|
123
|
+
frameWallet
|
|
124
|
+
} from "./chunk-ZMYVTWDF.js";
|
|
125
125
|
import {
|
|
126
|
-
|
|
127
|
-
} from "./chunk-
|
|
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-
|
|
133
|
+
} from "./chunk-W6N74MS3.js";
|
|
134
134
|
import {
|
|
135
|
-
|
|
136
|
-
} from "./chunk-
|
|
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
|
-
|
|
149
|
-
} from "./chunk-
|
|
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,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "5.5.
|
|
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.
|
|
96
|
-
"@funkit/
|
|
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/
|
|
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",
|