@funkit/connect 9.8.0 → 9.9.0
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 +19 -0
- package/dist/__generated__/default_feature_gates.d.ts +2 -0
- package/dist/components/ApprovalMethodToggle/ApprovalMethodToggle.d.ts +19 -0
- package/dist/components/Dropdown/BaseActiveDropdownItem.d.ts +2 -1
- package/dist/components/Dropdown/BaseDropdown.d.ts +4 -2
- package/dist/domains/quote.d.ts +9 -1
- package/dist/hooks/useCheckoutDirectExecution.d.ts +7 -0
- package/dist/index.js +1247 -1060
- package/dist/providers/FunkitCheckoutContext/index.d.ts +1 -0
- package/dist/providers/FunkitQuoteContext.d.ts +6 -0
- package/dist/wallets/walletConnectors/index.js +18 -18
- package/package.json +3 -3
|
@@ -34,6 +34,7 @@ interface FunkitCheckoutContextInterface {
|
|
|
34
34
|
initNewWithdrawal(initSettings: Partial<UseFunkitCheckoutPropsWithFullConfig>, config: UseFunkitCheckoutPropsWithFullConfig): string;
|
|
35
35
|
updateWithdrawalSourceAssetAmount(newSourceAmount: string): void;
|
|
36
36
|
resetForNewWithdrawal(): void;
|
|
37
|
+
resetForNewDeposit(): void;
|
|
37
38
|
applyDynamicRouting(path: Omit<DynamicRoutePath, 'getCustomRecipient' | 'generateActionsParams'> & {
|
|
38
39
|
customRecipient?: FunkitCheckoutConfig['customRecipient'];
|
|
39
40
|
generateActionsParams?: FunkitCheckoutConfig['generateActionsParams'];
|
|
@@ -2,6 +2,8 @@ import type { Dnum } from 'dnum';
|
|
|
2
2
|
import React, { type Dispatch, type ReactNode } from 'react';
|
|
3
3
|
import type { FunkitCheckoutQuoteResult } from '../domains/quote';
|
|
4
4
|
import { type FunkitActiveCheckoutItem } from './FunkitCheckoutContext';
|
|
5
|
+
export type ApprovalMethod = 'approve' | 'sign';
|
|
6
|
+
export declare const APPROVAL_METHOD_DEFAULT: ApprovalMethod;
|
|
5
7
|
export type CheckoutQuoteError = {
|
|
6
8
|
maxTargetAssetAmount?: Dnum;
|
|
7
9
|
minTargetAssetAmount?: Dnum;
|
|
@@ -40,6 +42,10 @@ interface FunkitQuoteContextInterface extends CheckoutQuoteState {
|
|
|
40
42
|
getCheckoutQuote: (disableInformationStreaming?: boolean) => Promise<GetCheckoutQuoteResponse>;
|
|
41
43
|
setCheckoutQuote: Dispatch<React.SetStateAction<FunkitCheckoutQuoteResult | null>>;
|
|
42
44
|
setQuoteProgress: (state: Omit<CheckoutQuoteState, 'latestQuote'>) => void;
|
|
45
|
+
usePermit: boolean | undefined;
|
|
46
|
+
preferredApprovalMethod: ApprovalMethod;
|
|
47
|
+
setPreferredApprovalMethod: (next: ApprovalMethod) => void;
|
|
48
|
+
showApprovalToggle: boolean;
|
|
43
49
|
}
|
|
44
50
|
export declare function FunkitQuoteProvider({ children }: {
|
|
45
51
|
children: ReactNode;
|
|
@@ -8,6 +8,9 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
tahoWallet
|
|
10
10
|
} from "./chunk-KS5MJNGD.js";
|
|
11
|
+
import {
|
|
12
|
+
talismanWallet
|
|
13
|
+
} from "./chunk-T3VMQBBI.js";
|
|
11
14
|
import {
|
|
12
15
|
tokenPocketWallet
|
|
13
16
|
} from "./chunk-UYW6MV74.js";
|
|
@@ -17,9 +20,6 @@ import {
|
|
|
17
20
|
import {
|
|
18
21
|
trustWallet
|
|
19
22
|
} from "./chunk-FWM4KTOV.js";
|
|
20
|
-
import {
|
|
21
|
-
talismanWallet
|
|
22
|
-
} from "./chunk-T3VMQBBI.js";
|
|
23
23
|
import {
|
|
24
24
|
uniswapWallet
|
|
25
25
|
} from "./chunk-UKSIXGWC.js";
|
|
@@ -62,15 +62,15 @@ import {
|
|
|
62
62
|
import {
|
|
63
63
|
oktoWallet
|
|
64
64
|
} from "./chunk-BBPTPMH7.js";
|
|
65
|
+
import {
|
|
66
|
+
omniWallet
|
|
67
|
+
} from "./chunk-G3RQSCYR.js";
|
|
65
68
|
import {
|
|
66
69
|
okxWallet
|
|
67
70
|
} from "./chunk-ZL6XCMV5.js";
|
|
68
71
|
import {
|
|
69
72
|
oneInchWallet
|
|
70
73
|
} from "./chunk-EUMOVTRQ.js";
|
|
71
|
-
import {
|
|
72
|
-
omniWallet
|
|
73
|
-
} from "./chunk-G3RQSCYR.js";
|
|
74
74
|
import {
|
|
75
75
|
oneKeyWallet
|
|
76
76
|
} from "./chunk-E3NZE4UP.js";
|
|
@@ -80,39 +80,39 @@ import {
|
|
|
80
80
|
import {
|
|
81
81
|
foxWallet
|
|
82
82
|
} from "./chunk-YGMU5VWD.js";
|
|
83
|
-
import {
|
|
84
|
-
frontierWallet
|
|
85
|
-
} from "./chunk-J3PJOMO7.js";
|
|
86
83
|
import {
|
|
87
84
|
frameWallet
|
|
88
85
|
} from "./chunk-MTJIPVYB.js";
|
|
86
|
+
import {
|
|
87
|
+
frontierWallet
|
|
88
|
+
} from "./chunk-J3PJOMO7.js";
|
|
89
89
|
import {
|
|
90
90
|
gateWallet
|
|
91
91
|
} from "./chunk-LEAZMT5Y.js";
|
|
92
92
|
import {
|
|
93
93
|
imTokenWallet
|
|
94
94
|
} from "./chunk-BWLMNATA.js";
|
|
95
|
-
import {
|
|
96
|
-
injectedWallet
|
|
97
|
-
} from "./chunk-HPUEYLLS.js";
|
|
98
95
|
import {
|
|
99
96
|
kresusWallet
|
|
100
97
|
} from "./chunk-O4IDLNBH.js";
|
|
98
|
+
import {
|
|
99
|
+
injectedWallet
|
|
100
|
+
} from "./chunk-HPUEYLLS.js";
|
|
101
101
|
import {
|
|
102
102
|
ledgerWallet
|
|
103
103
|
} from "./chunk-V4EXM3KB.js";
|
|
104
104
|
import {
|
|
105
105
|
bybitWallet
|
|
106
106
|
} from "./chunk-7IEUTLHY.js";
|
|
107
|
-
import {
|
|
108
|
-
coin98Wallet
|
|
109
|
-
} from "./chunk-RZQ4B4Z7.js";
|
|
110
107
|
import {
|
|
111
108
|
clvWallet
|
|
112
109
|
} from "./chunk-3ZJN3PXP.js";
|
|
113
110
|
import {
|
|
114
111
|
coinbaseWallet
|
|
115
112
|
} from "./chunk-OUM6H3WU.js";
|
|
113
|
+
import {
|
|
114
|
+
coin98Wallet
|
|
115
|
+
} from "./chunk-RZQ4B4Z7.js";
|
|
116
116
|
import {
|
|
117
117
|
coreWallet
|
|
118
118
|
} from "./chunk-55VS2NKG.js";
|
|
@@ -134,6 +134,9 @@ import {
|
|
|
134
134
|
import {
|
|
135
135
|
bitgetWallet
|
|
136
136
|
} from "./chunk-IMNI4AGV.js";
|
|
137
|
+
import {
|
|
138
|
+
bitskiWallet
|
|
139
|
+
} from "./chunk-Y36HPFB3.js";
|
|
137
140
|
import {
|
|
138
141
|
bitverseWallet
|
|
139
142
|
} from "./chunk-RZH4FSX7.js";
|
|
@@ -144,9 +147,6 @@ import "./chunk-FMVNQKZL.js";
|
|
|
144
147
|
import {
|
|
145
148
|
braveWallet
|
|
146
149
|
} from "./chunk-XVH4JIXB.js";
|
|
147
|
-
import {
|
|
148
|
-
bitskiWallet
|
|
149
|
-
} from "./chunk-Y36HPFB3.js";
|
|
150
150
|
import "./chunk-YYYRPQHB.js";
|
|
151
151
|
import "./chunk-3K2MFXCO.js";
|
|
152
152
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.9.0",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -105,9 +105,9 @@
|
|
|
105
105
|
"ua-parser-js": "^1.0.37",
|
|
106
106
|
"use-debounce": "^10.0.5",
|
|
107
107
|
"uuid": "^9.0.1",
|
|
108
|
-
"@funkit/api-base": "4.
|
|
108
|
+
"@funkit/api-base": "4.2.0",
|
|
109
109
|
"@funkit/chains": "1.1.2",
|
|
110
|
-
"@funkit/fun-relay": "2.
|
|
110
|
+
"@funkit/fun-relay": "2.7.0",
|
|
111
111
|
"@funkit/utils": "3.0.0"
|
|
112
112
|
},
|
|
113
113
|
"repository": {
|