@funkit/connect 0.1.16 → 0.1.18
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 +20 -0
- package/dist/{chunk-FUDTZOKU.js → chunk-7PLQM2DB.js} +2489 -2329
- package/dist/components/FunCheckoutModal/FunCheckoutConfirmationStep.d.ts +2 -4
- package/dist/components/FunCheckoutModal/FunCheckoutModal.d.ts +1 -1
- package/dist/components/FunCheckoutModal/FunCheckoutPrimaryInfo.d.ts +1 -3
- package/dist/components/FunCheckoutModal/FunCheckoutSelectAssetStep.d.ts +1 -3
- package/dist/components/FunCheckoutModal/FunCheckoutVerifyDetailsStep.d.ts +1 -1
- package/dist/components/FunMeshVerificationStep/FunMeshVerificationStep.d.ts +12 -0
- package/dist/components/FunPayments/FunPaymentMethods.d.ts +2 -26
- package/dist/components/FunPayments/FunPaymentMoonpayType.d.ts +1 -1
- package/dist/components/FunPayments/FunPaymentSetup.d.ts +1 -1
- package/dist/components/FunkitProvider/FunkitCheckoutContext.d.ts +5 -3
- package/dist/components/FunkitProvider/FunkitConnectChainContext.d.ts +5 -1
- package/dist/components/FunkitProvider/GeneralWalletProvider.d.ts +3 -0
- package/dist/components/FunkitWeb2Provider/FunkitWeb2Provider.d.ts +2 -2
- package/dist/components/ProfileDetails/FunWalletProfileViews/FWSettings/FWSettings.d.ts +2 -1
- package/dist/components/index.css +86 -86
- package/dist/components/index.js +1 -1
- package/dist/consts/payment.d.ts +26 -0
- package/dist/index.css +68 -68
- package/dist/index.js +1 -1
- package/dist/utils/checkout.d.ts +4 -0
- package/dist/utils/deposit.d.ts +1 -1
- package/dist/utils/mesh.d.ts +23 -6
- package/dist/wallets/walletConnectors/index.js +54 -54
- package/package.json +5 -5
- package/dist/components/FunMeshTwoFactorStep/FunMeshTwoFactorStep.d.ts +0 -9
package/dist/utils/mesh.d.ts
CHANGED
|
@@ -33,7 +33,29 @@ export declare enum MeshExchanges {
|
|
|
33
33
|
Bybit = "Bybit"
|
|
34
34
|
}
|
|
35
35
|
export declare function fetchMeshLinkToken(selectedExchange: MeshExchanges, funApiKey: string): Promise<any>;
|
|
36
|
-
export declare
|
|
36
|
+
export declare enum MeshExecuteTransferStatus {
|
|
37
|
+
succeeded = "succeeded",
|
|
38
|
+
failed = "failed",
|
|
39
|
+
mfaRequired = "mfaRequired",
|
|
40
|
+
emailConfirmationRequired = "emailConfirmationRequired",
|
|
41
|
+
deviceConfirmationRequired = "deviceConfirmationRequired",
|
|
42
|
+
mfaFailed = "mfaFailed",
|
|
43
|
+
addressWhitelistRequired = "addressWhitelistRequired",
|
|
44
|
+
secondMfaRequired = "secondMfaRequired"
|
|
45
|
+
}
|
|
46
|
+
export declare enum MeshExecuteTransferMfaType {
|
|
47
|
+
unspecified = "unspecified",
|
|
48
|
+
phone = "phone",
|
|
49
|
+
email = "email",
|
|
50
|
+
otp = "otp"
|
|
51
|
+
}
|
|
52
|
+
export interface MeshExecuteTransferContent {
|
|
53
|
+
status: MeshExecuteTransferStatus;
|
|
54
|
+
mfaType: MeshExecuteTransferMfaType;
|
|
55
|
+
errorMessage: string | null;
|
|
56
|
+
executeTransferResult: object | null;
|
|
57
|
+
}
|
|
58
|
+
export declare function executeBrokerageDeposit(fromAuthToken: string, brokerage: string, previewId: string, apiKey: string, mfaCode?: string): Promise<MeshExecuteTransferContent>;
|
|
37
59
|
export declare function fetchMeshAccountCryptoHoldings({ authToken, apiKey, exchange, }: {
|
|
38
60
|
authToken: string;
|
|
39
61
|
apiKey: string;
|
|
@@ -51,8 +73,3 @@ export declare function fetchMeshSupportedTokensAndIdByChainIdAndBrokerage({ cha
|
|
|
51
73
|
meshSupportedTokens: any;
|
|
52
74
|
meshNetworkId: any;
|
|
53
75
|
}>;
|
|
54
|
-
export type MeshCheckoutQuoteMeta = null | {
|
|
55
|
-
accessToken: string;
|
|
56
|
-
brokerName: MeshExchanges;
|
|
57
|
-
meshNetworkId: string;
|
|
58
|
-
};
|
|
@@ -1,28 +1,22 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import {
|
|
6
|
-
oktoWallet
|
|
7
|
-
} from "./chunk-VW5SMBMG.js";
|
|
8
|
-
import {
|
|
9
|
-
talismanWallet
|
|
10
|
-
} from "./chunk-5UETJ33B.js";
|
|
11
|
-
import {
|
|
12
|
-
tokenPocketWallet
|
|
13
|
-
} from "./chunk-3XLDPS4Y.js";
|
|
3
|
+
trustWallet
|
|
4
|
+
} from "./chunk-YWKKNHO3.js";
|
|
14
5
|
import {
|
|
15
6
|
safepalWallet
|
|
16
7
|
} from "./chunk-TZR3P22N.js";
|
|
17
8
|
import {
|
|
18
|
-
|
|
19
|
-
} from "./chunk-
|
|
9
|
+
foxWallet
|
|
10
|
+
} from "./chunk-TG2HN6KW.js";
|
|
20
11
|
import {
|
|
21
12
|
uniswapWallet
|
|
22
13
|
} from "./chunk-APZ6YBCA.js";
|
|
23
14
|
import {
|
|
24
15
|
walletConnectWallet
|
|
25
16
|
} from "./chunk-XXTDCRCW.js";
|
|
17
|
+
import {
|
|
18
|
+
talismanWallet
|
|
19
|
+
} from "./chunk-5UETJ33B.js";
|
|
26
20
|
import {
|
|
27
21
|
xdefiWallet
|
|
28
22
|
} from "./chunk-5ZLRNFDM.js";
|
|
@@ -30,99 +24,105 @@ import {
|
|
|
30
24
|
zealWallet
|
|
31
25
|
} from "./chunk-QBKHMTGI.js";
|
|
32
26
|
import {
|
|
33
|
-
|
|
34
|
-
} from "./chunk-
|
|
27
|
+
metaMaskWallet
|
|
28
|
+
} from "./chunk-MOWIPEYK.js";
|
|
35
29
|
import {
|
|
36
|
-
|
|
37
|
-
} from "./chunk-
|
|
30
|
+
zerionWallet
|
|
31
|
+
} from "./chunk-77KYAV4P.js";
|
|
38
32
|
import {
|
|
39
33
|
rabbyWallet
|
|
40
34
|
} from "./chunk-TNC2B7LX.js";
|
|
41
|
-
import {
|
|
42
|
-
rainbowWallet
|
|
43
|
-
} from "./chunk-IEAKLGB6.js";
|
|
44
|
-
import {
|
|
45
|
-
safeWallet
|
|
46
|
-
} from "./chunk-BNTZHUB6.js";
|
|
47
35
|
import {
|
|
48
36
|
safeheronWallet
|
|
49
37
|
} from "./chunk-7WTKIVCW.js";
|
|
50
38
|
import {
|
|
51
39
|
subWallet
|
|
52
40
|
} from "./chunk-PTF3JKWO.js";
|
|
41
|
+
import {
|
|
42
|
+
rainbowWallet
|
|
43
|
+
} from "./chunk-IEAKLGB6.js";
|
|
53
44
|
import {
|
|
54
45
|
tahoWallet
|
|
55
46
|
} from "./chunk-OOGGCCFQ.js";
|
|
56
47
|
import {
|
|
57
|
-
|
|
58
|
-
} from "./chunk-
|
|
48
|
+
phantomWallet
|
|
49
|
+
} from "./chunk-KUZFZL2D.js";
|
|
59
50
|
import {
|
|
60
|
-
|
|
61
|
-
} from "./chunk-
|
|
51
|
+
oneKeyWallet
|
|
52
|
+
} from "./chunk-6CW3SAA3.js";
|
|
62
53
|
import {
|
|
63
|
-
|
|
64
|
-
} from "./chunk-
|
|
54
|
+
tokenPocketWallet
|
|
55
|
+
} from "./chunk-3XLDPS4Y.js";
|
|
56
|
+
import {
|
|
57
|
+
argentWallet
|
|
58
|
+
} from "./chunk-LEWQ7DQV.js";
|
|
65
59
|
import {
|
|
66
60
|
ledgerWallet
|
|
67
61
|
} from "./chunk-GLB4HFDR.js";
|
|
68
62
|
import {
|
|
69
|
-
|
|
70
|
-
} from "./chunk-
|
|
63
|
+
omniWallet
|
|
64
|
+
} from "./chunk-NEDPCNTA.js";
|
|
65
|
+
import {
|
|
66
|
+
injectedWallet
|
|
67
|
+
} from "./chunk-U32TVZ7G.js";
|
|
71
68
|
import {
|
|
72
69
|
mewWallet
|
|
73
70
|
} from "./chunk-BZFEDZQJ.js";
|
|
71
|
+
import {
|
|
72
|
+
oktoWallet
|
|
73
|
+
} from "./chunk-VW5SMBMG.js";
|
|
74
74
|
import {
|
|
75
75
|
okxWallet
|
|
76
76
|
} from "./chunk-GHYJ56FA.js";
|
|
77
77
|
import {
|
|
78
|
-
|
|
79
|
-
} from "./chunk-
|
|
78
|
+
safeWallet
|
|
79
|
+
} from "./chunk-BNTZHUB6.js";
|
|
80
80
|
import {
|
|
81
81
|
coin98Wallet
|
|
82
82
|
} from "./chunk-LVMQKSKW.js";
|
|
83
|
+
import {
|
|
84
|
+
enkryptWallet
|
|
85
|
+
} from "./chunk-ND76X5A2.js";
|
|
86
|
+
import {
|
|
87
|
+
frameWallet
|
|
88
|
+
} from "./chunk-MBFEMLUU.js";
|
|
83
89
|
import {
|
|
84
90
|
coinbaseWallet
|
|
85
91
|
} from "./chunk-WFTAXMQP.js";
|
|
86
92
|
import "./chunk-UZ5XLPAW.js";
|
|
87
93
|
import {
|
|
88
|
-
|
|
89
|
-
} from "./chunk-
|
|
90
|
-
import {
|
|
91
|
-
dawnWallet
|
|
92
|
-
} from "./chunk-QJNS6IE4.js";
|
|
94
|
+
frontierWallet
|
|
95
|
+
} from "./chunk-4EKX7Z25.js";
|
|
93
96
|
import {
|
|
94
97
|
desigWallet
|
|
95
98
|
} from "./chunk-SXUVHZCG.js";
|
|
96
99
|
import {
|
|
97
|
-
|
|
98
|
-
} from "./chunk-
|
|
100
|
+
imTokenWallet
|
|
101
|
+
} from "./chunk-7EOFWORX.js";
|
|
99
102
|
import {
|
|
100
|
-
|
|
101
|
-
} from "./chunk-
|
|
103
|
+
dawnWallet
|
|
104
|
+
} from "./chunk-QJNS6IE4.js";
|
|
102
105
|
import {
|
|
103
|
-
|
|
104
|
-
|
|
106
|
+
bitKeepWallet,
|
|
107
|
+
bitgetWallet
|
|
108
|
+
} from "./chunk-6FQF7H7H.js";
|
|
105
109
|
import {
|
|
106
|
-
|
|
107
|
-
} from "./chunk-
|
|
110
|
+
clvWallet
|
|
111
|
+
} from "./chunk-EHO4MJZJ.js";
|
|
108
112
|
import {
|
|
109
113
|
bifrostWallet
|
|
110
114
|
} from "./chunk-LL6T7V77.js";
|
|
111
|
-
import {
|
|
112
|
-
bitKeepWallet,
|
|
113
|
-
bitgetWallet
|
|
114
|
-
} from "./chunk-6FQF7H7H.js";
|
|
115
115
|
import "./chunk-ZOLACFTK.js";
|
|
116
116
|
import {
|
|
117
117
|
bitskiWallet
|
|
118
118
|
} from "./chunk-FL3REGA5.js";
|
|
119
|
+
import {
|
|
120
|
+
coreWallet
|
|
121
|
+
} from "./chunk-T3RIVRAX.js";
|
|
122
|
+
import "./chunk-6T5K52ZY.js";
|
|
119
123
|
import {
|
|
120
124
|
braveWallet
|
|
121
125
|
} from "./chunk-INSQDNCE.js";
|
|
122
|
-
import {
|
|
123
|
-
clvWallet
|
|
124
|
-
} from "./chunk-EHO4MJZJ.js";
|
|
125
|
-
import "./chunk-6T5K52ZY.js";
|
|
126
126
|
export {
|
|
127
127
|
argentWallet,
|
|
128
128
|
bifrostWallet,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.18",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -86,10 +86,10 @@
|
|
|
86
86
|
},
|
|
87
87
|
"dependencies": {
|
|
88
88
|
"@meshconnect/web-link-sdk": "^2.0.1",
|
|
89
|
-
"@funkit/core": "^0.10.
|
|
90
|
-
"@funkit/wagmi-tools": "^0.1.
|
|
91
|
-
"@moonpay/moonpay-react": "^1.
|
|
92
|
-
"@privy-io/js-sdk-core": "^0.
|
|
89
|
+
"@funkit/core": "^0.10.12",
|
|
90
|
+
"@funkit/wagmi-tools": "^0.1.11",
|
|
91
|
+
"@moonpay/moonpay-react": "^1.6.1",
|
|
92
|
+
"@privy-io/js-sdk-core": "^0.13.5",
|
|
93
93
|
"@types/uuid": "^9.0.1",
|
|
94
94
|
"@vanilla-extract/css": "1.9.1",
|
|
95
95
|
"@vanilla-extract/dynamic": "2.0.2",
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PaymentMethodInfo } from '../FunPayments/FunPaymentMethods';
|
|
3
|
-
interface FunTwoFactorModalProps {
|
|
4
|
-
previewId: string;
|
|
5
|
-
onSuccess: () => void;
|
|
6
|
-
paymentMethodInfo: PaymentMethodInfo | null;
|
|
7
|
-
}
|
|
8
|
-
export declare function FunMeshTwoFactorStep({ previewId, onSuccess, paymentMethodInfo, }: FunTwoFactorModalProps): React.JSX.Element;
|
|
9
|
-
export {};
|