@funkit/connect 6.14.2 → 6.14.4
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 +36 -0
- package/dist/consts/customers.d.ts +0 -1
- package/dist/hooks/useCheckoutAccountBalanceTransfer.d.ts +1 -1
- package/dist/hooks/useCheckoutDirectExecution.d.ts +2 -1
- package/dist/hooks/useIsTokenWhitelisted.d.ts +30 -0
- package/dist/index.css +2 -2
- package/dist/index.d.ts +0 -1
- package/dist/index.js +689 -598
- package/dist/utils/checkout.d.ts +2 -1
- package/dist/utils/flags/config.d.ts +6 -14
- 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 +60 -60
- 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 +7 -7
- package/dist/hooks/useGooeyFilter.d.ts +0 -21
- package/dist/hooks/useIsFunkitCheckoutActivated.d.ts +0 -7
- package/dist/hooks/useMountEffect.d.ts +0 -8
- package/dist/hooks/usePathMorph.d.ts +0 -16
package/dist/utils/checkout.d.ts
CHANGED
|
@@ -36,6 +36,7 @@ export declare const hasSufficientBalance: (wagmiConfig: UseConfigReturnType, wa
|
|
|
36
36
|
result: boolean;
|
|
37
37
|
tokenTicker: null;
|
|
38
38
|
}>;
|
|
39
|
+
export declare const hasGasToken: (wagmiConfig: UseConfigReturnType, walletAddress: string, chainId: string) => Promise<boolean>;
|
|
39
40
|
/**
|
|
40
41
|
* Generates an env config for checkout estimation
|
|
41
42
|
* So that batch operation creation will not fail even if FW has insufficient funds to pass the estimation.
|
|
@@ -54,6 +55,7 @@ export declare function getFunkitEnvForCheckoutEstimation({ chainId, bypassWalle
|
|
|
54
55
|
bypassInit: boolean;
|
|
55
56
|
apiKey?: string;
|
|
56
57
|
nonce?: bigint | undefined;
|
|
58
|
+
logger?: import("@funkit/api-base").Logger | undefined;
|
|
57
59
|
fee?: {
|
|
58
60
|
token?: string;
|
|
59
61
|
amount?: number;
|
|
@@ -61,7 +63,6 @@ export declare function getFunkitEnvForCheckoutEstimation({ chainId, bypassWalle
|
|
|
61
63
|
recipient: Address;
|
|
62
64
|
} | undefined;
|
|
63
65
|
skipDBAction?: boolean | undefined;
|
|
64
|
-
logger?: import("@funkit/api-base").Logger | undefined;
|
|
65
66
|
};
|
|
66
67
|
export type TokenInfo = {
|
|
67
68
|
symbol: string;
|
|
@@ -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"];
|
|
21
21
|
}];
|
|
22
22
|
readonly value: "";
|
|
23
23
|
}];
|
|
@@ -45,7 +45,7 @@ export declare const flagConfig: {
|
|
|
45
45
|
readonly if_any: [{
|
|
46
46
|
readonly key: "apiKey";
|
|
47
47
|
readonly type: "isAnyOf";
|
|
48
|
-
readonly values: ["Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN", "vWe20Dfyui2ouvfOhtSTY3Czeo8lFdbo5xXQBALZ", "clDebbfo9edXq1GydZ0CahSAfSimPj616lFa9p8e", "OXLUmejkh9PlNDS4gSvi9gcEWacOpTz2KUVepVf4", "BPVeP8zThG467vVIYzuiu5aVWAkS9KiR6tT1TdTP", "lUzTaIRxs95iin3pCAafB1ChA5akBiuQ1tjhXnau", "AH7lRIhbsL167nptv6eub9xDJXVHnYUm2vL7FLjK", "di9ZSqn1Ya68Y2XpBPUV1rCtNGXh8Xe5MGWzb1Xe", "2SrxurU07T2XPDxCAItjj4yYEMXlwV8K2kJB78AX", "5UzOrcAE2F3rcuMX2EeIlaYv5VUcDe6Lyh0PeZX2"
|
|
48
|
+
readonly values: ["Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN", "vWe20Dfyui2ouvfOhtSTY3Czeo8lFdbo5xXQBALZ", "clDebbfo9edXq1GydZ0CahSAfSimPj616lFa9p8e", "OXLUmejkh9PlNDS4gSvi9gcEWacOpTz2KUVepVf4", "BPVeP8zThG467vVIYzuiu5aVWAkS9KiR6tT1TdTP", "lUzTaIRxs95iin3pCAafB1ChA5akBiuQ1tjhXnau", "AH7lRIhbsL167nptv6eub9xDJXVHnYUm2vL7FLjK", "di9ZSqn1Ya68Y2XpBPUV1rCtNGXh8Xe5MGWzb1Xe", "2SrxurU07T2XPDxCAItjj4yYEMXlwV8K2kJB78AX", "5UzOrcAE2F3rcuMX2EeIlaYv5VUcDe6Lyh0PeZX2"];
|
|
49
49
|
}];
|
|
50
50
|
readonly value: true;
|
|
51
51
|
}];
|
|
@@ -123,7 +123,7 @@ export declare const flagConfig: {
|
|
|
123
123
|
readonly if_any: [{
|
|
124
124
|
readonly key: "apiKey";
|
|
125
125
|
readonly type: "isAnyOf";
|
|
126
|
-
readonly values: ["vWe20Dfyui2ouvfOhtSTY3Czeo8lFdbo5xXQBALZ"
|
|
126
|
+
readonly values: ["vWe20Dfyui2ouvfOhtSTY3Czeo8lFdbo5xXQBALZ"];
|
|
127
127
|
}];
|
|
128
128
|
readonly value: string;
|
|
129
129
|
}];
|
|
@@ -139,7 +139,7 @@ export declare const flagConfig: {
|
|
|
139
139
|
readonly if_any: [{
|
|
140
140
|
readonly key: "apiKey";
|
|
141
141
|
readonly type: "isAnyOf";
|
|
142
|
-
readonly values: ["
|
|
142
|
+
readonly values: ["Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6"];
|
|
143
143
|
}];
|
|
144
144
|
readonly value: string;
|
|
145
145
|
}];
|
|
@@ -187,7 +187,7 @@ export declare const flagConfig: {
|
|
|
187
187
|
readonly if_any: [{
|
|
188
188
|
readonly key: "apiKey";
|
|
189
189
|
readonly type: "isAnyOf";
|
|
190
|
-
readonly values: ["OXLUmejkh9PlNDS4gSvi9gcEWacOpTz2KUVepVf4"
|
|
190
|
+
readonly values: ["OXLUmejkh9PlNDS4gSvi9gcEWacOpTz2KUVepVf4"];
|
|
191
191
|
}];
|
|
192
192
|
readonly value: false;
|
|
193
193
|
}];
|
|
@@ -210,7 +210,7 @@ export declare const flagConfig: {
|
|
|
210
210
|
readonly if_any: [{
|
|
211
211
|
readonly key: "apiKey";
|
|
212
212
|
readonly type: "isAnyOf";
|
|
213
|
-
readonly values: ["HKHvPSPDezaxsTohFgDuG4WpKW6hB4SFYyztm9vc", "AH7lRIhbsL167nptv6eub9xDJXVHnYUm2vL7FLjK", "lUzTaIRxs95iin3pCAafB1ChA5akBiuQ1tjhXnau", "di9ZSqn1Ya68Y2XpBPUV1rCtNGXh8Xe5MGWzb1Xe", "clDebbfo9edXq1GydZ0CahSAfSimPj616lFa9p8e", "SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN", "Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "5UzOrcAE2F3rcuMX2EeIlaYv5VUcDe6Lyh0PeZX2"
|
|
213
|
+
readonly values: ["HKHvPSPDezaxsTohFgDuG4WpKW6hB4SFYyztm9vc", "AH7lRIhbsL167nptv6eub9xDJXVHnYUm2vL7FLjK", "lUzTaIRxs95iin3pCAafB1ChA5akBiuQ1tjhXnau", "di9ZSqn1Ya68Y2XpBPUV1rCtNGXh8Xe5MGWzb1Xe", "clDebbfo9edXq1GydZ0CahSAfSimPj616lFa9p8e", "SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN", "Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "5UzOrcAE2F3rcuMX2EeIlaYv5VUcDe6Lyh0PeZX2"];
|
|
214
214
|
}];
|
|
215
215
|
readonly value: true;
|
|
216
216
|
}, {
|
|
@@ -234,14 +234,6 @@ export declare const flagConfig: {
|
|
|
234
234
|
readonly type: "string";
|
|
235
235
|
readonly default_value: string;
|
|
236
236
|
};
|
|
237
|
-
readonly withdrawal_exclude_chains: {
|
|
238
|
-
readonly type: "string";
|
|
239
|
-
readonly default_value: string;
|
|
240
|
-
};
|
|
241
|
-
readonly enable_source_navigation_widget: {
|
|
242
|
-
readonly type: "boolean";
|
|
243
|
-
readonly default_value: false;
|
|
244
|
-
};
|
|
245
237
|
readonly token_transfer_default_tokens: {
|
|
246
238
|
readonly type: "string";
|
|
247
239
|
readonly default_value: "";
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "./chunk-
|
|
3
|
+
uniswapWallet
|
|
4
|
+
} from "./chunk-LH7BMNFZ.js";
|
|
5
5
|
import {
|
|
6
6
|
zerionWallet
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SULRQO27.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./chunk-
|
|
9
|
+
zealWallet
|
|
10
|
+
} from "./chunk-RNBEDQHF.js";
|
|
11
11
|
import {
|
|
12
12
|
talismanWallet
|
|
13
13
|
} from "./chunk-DRO6WYMM.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./chunk-
|
|
15
|
+
subWallet
|
|
16
|
+
} from "./chunk-JWFF4AAL.js";
|
|
17
17
|
import {
|
|
18
18
|
tahoWallet
|
|
19
19
|
} from "./chunk-ZZZRUXZE.js";
|
|
20
20
|
import {
|
|
21
21
|
tokenPocketWallet
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import {
|
|
24
|
-
trustWallet
|
|
25
|
-
} from "./chunk-RKPCWHXL.js";
|
|
22
|
+
} from "./chunk-2L43XSW3.js";
|
|
26
23
|
import {
|
|
27
24
|
tokenaryWallet
|
|
28
25
|
} from "./chunk-D6AOOO5F.js";
|
|
29
26
|
import {
|
|
30
|
-
|
|
31
|
-
} from "./chunk-
|
|
27
|
+
trustWallet
|
|
28
|
+
} from "./chunk-VYBAYMP3.js";
|
|
29
|
+
import {
|
|
30
|
+
xdefiWallet
|
|
31
|
+
} from "./chunk-BOU4WKRZ.js";
|
|
32
32
|
import {
|
|
33
33
|
walletConnectWallet
|
|
34
34
|
} from "./chunk-NP5QGWNL.js";
|
|
@@ -40,25 +40,28 @@ import {
|
|
|
40
40
|
} from "./chunk-BBOM42DL.js";
|
|
41
41
|
import {
|
|
42
42
|
rainbowWallet
|
|
43
|
-
} from "./chunk-
|
|
44
|
-
import {
|
|
45
|
-
ramperWallet
|
|
46
|
-
} from "./chunk-BYXPFMI7.js";
|
|
43
|
+
} from "./chunk-2KUBG3S6.js";
|
|
47
44
|
import {
|
|
48
45
|
roninWallet
|
|
49
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-NWIQNBJU.js";
|
|
50
47
|
import {
|
|
51
48
|
safeWallet
|
|
52
49
|
} from "./chunk-BQQQL6UD.js";
|
|
50
|
+
import {
|
|
51
|
+
safepalWallet
|
|
52
|
+
} from "./chunk-NT2HYJKW.js";
|
|
53
53
|
import {
|
|
54
54
|
safeheronWallet
|
|
55
55
|
} from "./chunk-RZIO5TFF.js";
|
|
56
56
|
import {
|
|
57
|
-
|
|
58
|
-
} from "./chunk-
|
|
57
|
+
ramperWallet
|
|
58
|
+
} from "./chunk-BYXPFMI7.js";
|
|
59
59
|
import {
|
|
60
|
-
|
|
61
|
-
} from "./chunk-
|
|
60
|
+
ledgerWallet
|
|
61
|
+
} from "./chunk-BRBKM4PW.js";
|
|
62
|
+
import {
|
|
63
|
+
kresusWallet
|
|
64
|
+
} from "./chunk-MJXPRJZT.js";
|
|
62
65
|
import {
|
|
63
66
|
mewWallet
|
|
64
67
|
} from "./chunk-OL5ZO7E4.js";
|
|
@@ -67,87 +70,84 @@ import {
|
|
|
67
70
|
} from "./chunk-ADIXAKUL.js";
|
|
68
71
|
import {
|
|
69
72
|
okxWallet
|
|
70
|
-
} from "./chunk-
|
|
71
|
-
import {
|
|
72
|
-
omniWallet
|
|
73
|
-
} from "./chunk-7CUY5G6R.js";
|
|
74
|
-
import {
|
|
75
|
-
ledgerWallet
|
|
76
|
-
} from "./chunk-BRBKM4PW.js";
|
|
73
|
+
} from "./chunk-TDIEHTMB.js";
|
|
77
74
|
import {
|
|
78
75
|
oneInchWallet
|
|
79
76
|
} from "./chunk-OESTDX6I.js";
|
|
77
|
+
import {
|
|
78
|
+
omniWallet
|
|
79
|
+
} from "./chunk-7CUY5G6R.js";
|
|
80
80
|
import {
|
|
81
81
|
oneKeyWallet
|
|
82
82
|
} from "./chunk-SHBUZ7U7.js";
|
|
83
83
|
import {
|
|
84
|
-
|
|
85
|
-
} from "./chunk-
|
|
86
|
-
import {
|
|
87
|
-
frontierWallet
|
|
88
|
-
} from "./chunk-VWCLFMWJ.js";
|
|
84
|
+
enkryptWallet
|
|
85
|
+
} from "./chunk-OLOIXTYS.js";
|
|
89
86
|
import {
|
|
90
87
|
frameWallet
|
|
91
88
|
} from "./chunk-IFON7E6U.js";
|
|
92
89
|
import {
|
|
93
|
-
|
|
94
|
-
} from "./chunk-
|
|
90
|
+
frontierWallet
|
|
91
|
+
} from "./chunk-TCAGNB4B.js";
|
|
95
92
|
import {
|
|
96
93
|
gateWallet
|
|
97
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-FKJJQNKX.js";
|
|
95
|
+
import {
|
|
96
|
+
imTokenWallet
|
|
97
|
+
} from "./chunk-COZ7MIQS.js";
|
|
98
98
|
import {
|
|
99
99
|
injectedWallet
|
|
100
100
|
} from "./chunk-XWUJE7MW.js";
|
|
101
101
|
import {
|
|
102
|
-
|
|
103
|
-
} from "./chunk-
|
|
102
|
+
metaMaskWallet
|
|
103
|
+
} from "./chunk-2HYNUNAS.js";
|
|
104
|
+
import {
|
|
105
|
+
bitskiWallet
|
|
106
|
+
} from "./chunk-HS3C7OQV.js";
|
|
104
107
|
import {
|
|
105
108
|
bybitWallet
|
|
106
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-2STUC6QL.js";
|
|
107
110
|
import {
|
|
108
111
|
coin98Wallet
|
|
109
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-OBOVHCEI.js";
|
|
113
|
+
import {
|
|
114
|
+
coinbaseWallet
|
|
115
|
+
} from "./chunk-H4IRCEZN.js";
|
|
110
116
|
import {
|
|
111
117
|
coreWallet
|
|
112
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-VR4TBQ6S.js";
|
|
113
119
|
import {
|
|
114
120
|
dawnWallet
|
|
115
121
|
} from "./chunk-HWPKCIBE.js";
|
|
116
|
-
import {
|
|
117
|
-
coinbaseWallet
|
|
118
|
-
} from "./chunk-H4IRCEZN.js";
|
|
119
122
|
import {
|
|
120
123
|
desigWallet
|
|
121
124
|
} from "./chunk-OPAZMNA7.js";
|
|
122
125
|
import {
|
|
123
|
-
|
|
124
|
-
} from "./chunk-
|
|
125
|
-
import {
|
|
126
|
-
clvWallet
|
|
127
|
-
} from "./chunk-2GJQ4XZQ.js";
|
|
126
|
+
foxWallet
|
|
127
|
+
} from "./chunk-7QONTUXT.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-A5N6B5UW.js";
|
|
134
134
|
import {
|
|
135
|
-
|
|
136
|
-
} from "./chunk-
|
|
137
|
-
import {
|
|
138
|
-
bitskiWallet
|
|
139
|
-
} from "./chunk-HS3C7OQV.js";
|
|
135
|
+
bloomWallet
|
|
136
|
+
} from "./chunk-S27IADFU.js";
|
|
140
137
|
import {
|
|
141
138
|
bitgetWallet
|
|
142
|
-
} from "./chunk-
|
|
139
|
+
} from "./chunk-TDAVGY5F.js";
|
|
140
|
+
import {
|
|
141
|
+
bitverseWallet
|
|
142
|
+
} from "./chunk-3HZRRP4Y.js";
|
|
143
143
|
import {
|
|
144
144
|
braveWallet
|
|
145
145
|
} from "./chunk-BPZ2XJO2.js";
|
|
146
|
-
import "./chunk-DNSG5Q7V.js";
|
|
147
146
|
import {
|
|
148
|
-
|
|
149
|
-
} from "./chunk-
|
|
147
|
+
clvWallet
|
|
148
|
+
} from "./chunk-M3NZ6R2E.js";
|
|
150
149
|
import "./chunk-23WIEY36.js";
|
|
150
|
+
import "./chunk-DNSG5Q7V.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": "6.14.
|
|
3
|
+
"version": "6.14.4",
|
|
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/
|
|
96
|
-
"@funkit/api-base": "1.12.
|
|
97
|
-
"@funkit/
|
|
98
|
-
"@funkit/
|
|
99
|
-
"@funkit/fun-relay": "2.0.
|
|
100
|
-
"@funkit/
|
|
95
|
+
"@funkit/core": "2.3.50",
|
|
96
|
+
"@funkit/api-base": "1.12.5",
|
|
97
|
+
"@funkit/wagmi-tools": "3.0.73",
|
|
98
|
+
"@funkit/chains": "0.4.1",
|
|
99
|
+
"@funkit/fun-relay": "2.0.4",
|
|
100
|
+
"@funkit/utils": "1.1.12"
|
|
101
101
|
},
|
|
102
102
|
"repository": {
|
|
103
103
|
"type": "git",
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export type GooeyFilterOptions = {
|
|
2
|
-
intensity?: number;
|
|
3
|
-
blur?: number;
|
|
4
|
-
contrast?: number;
|
|
5
|
-
mode?: 'standard' | 'soft' | 'heavy';
|
|
6
|
-
};
|
|
7
|
-
export type AnimateGooeyOptions = GooeyFilterOptions & {
|
|
8
|
-
duration?: number;
|
|
9
|
-
easing?: string;
|
|
10
|
-
onComplete?: () => void;
|
|
11
|
-
};
|
|
12
|
-
type SetGooeyFunction = (options: GooeyFilterOptions) => void;
|
|
13
|
-
type AnimateGooeyFunction = (options: AnimateGooeyOptions) => Promise<void>;
|
|
14
|
-
type UseGooeyFilterReturn = {
|
|
15
|
-
scope: React.RefObject<HTMLDivElement>;
|
|
16
|
-
filterId: string;
|
|
17
|
-
setGooey: SetGooeyFunction;
|
|
18
|
-
animateGooey: AnimateGooeyFunction;
|
|
19
|
-
};
|
|
20
|
-
export declare const useGooeyFilter: (options?: GooeyFilterOptions) => UseGooeyFilterReturn;
|
|
21
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Run an effect only on the first render, EXACTLY ONCE.
|
|
3
|
-
* regardless of the dependencies, regardless of the strict mode
|
|
4
|
-
* React team thinks that it is antithetical to the React model that
|
|
5
|
-
* an effect cannot be canceled or cannot be replayed. Yet the reality
|
|
6
|
-
* isn't ideal and especially external 3rd party API cannot be controlled.
|
|
7
|
-
*/
|
|
8
|
-
export declare function useMountEffect(effect: () => void): void;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export type EasingInput = `cubic-bezier(${number}, ${number}, ${number}, ${number})` | 'linear' | 'ease' | 'ease-in' | 'ease-out' | 'ease-in-out';
|
|
2
|
-
export type UseAnimateOptions = {
|
|
3
|
-
duration?: number;
|
|
4
|
-
easing?: EasingInput;
|
|
5
|
-
onComplete?: () => void;
|
|
6
|
-
};
|
|
7
|
-
export type AnimateParams = {
|
|
8
|
-
d?: string;
|
|
9
|
-
} & UseAnimateOptions;
|
|
10
|
-
type AnimateFunction = (args?: AnimateParams | string) => Promise<void>;
|
|
11
|
-
export declare const usePathMorph: (options?: UseAnimateOptions) => {
|
|
12
|
-
animate: AnimateFunction;
|
|
13
|
-
ref: (node: SVGPathElement | null) => void;
|
|
14
|
-
clear: () => void;
|
|
15
|
-
};
|
|
16
|
-
export {};
|