@funkit/connect 1.0.28 → 1.1.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 +15 -0
- package/dist/components/FunPayments/FunPaymentOtcType.d.ts +4 -0
- package/dist/components/FunkitProvider/FunkitCheckoutContext.d.ts +2 -0
- package/dist/components/FunkitProvider/FunkitConfigContext.d.ts +14 -1
- package/dist/components/FunkitProvider/FunkitConnectChainContext.d.ts +1 -1
- package/dist/components/FunkitProvider/FunkitProvider.d.ts +6 -5
- package/dist/components/ProfileDetails/ProfileDetails.d.ts +2 -4
- package/dist/config/getDefaultConfig.d.ts +7 -10
- package/dist/consts/payment.d.ts +3 -1
- package/dist/index.css +17 -17
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1561 -2178
- package/dist/utils/checkout.d.ts +1 -1
- package/dist/utils/funkitProvider.d.ts +1 -2
- package/dist/wallets/walletConnectors/index.js +54 -54
- package/package.json +3 -3
- package/dist/components/FunOnramp/FunOnrampConfirmationStep.d.ts +0 -18
- package/dist/components/FunOnramp/FunOnrampInputStep.d.ts +0 -10
- package/dist/components/FunOnramp/FunOnrampPrimaryItem.d.ts +0 -5
- package/dist/components/FunOnramp/FunOnrampProcessingStep.d.ts +0 -6
- package/dist/components/FunOnramp/FunOnrampTokenPill.d.ts +0 -7
- package/dist/components/ProfileDetails/FunProfileViews/Deposit/Deposit.d.ts +0 -9
package/dist/utils/checkout.d.ts
CHANGED
|
@@ -92,7 +92,7 @@ export declare function decorateTokenList(tokensChainMap: {
|
|
|
92
92
|
[ticker: string]: {
|
|
93
93
|
[chainId: string]: true;
|
|
94
94
|
};
|
|
95
|
-
}, targetChainId: string): Promise<{
|
|
95
|
+
}, targetChainId: string, apiKey: string): Promise<{
|
|
96
96
|
symbol: string;
|
|
97
97
|
tokenAddress: null | Hex;
|
|
98
98
|
tokenUnitPriceUsd: null | number;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { FunkitProviderProps } from '../components/FunkitProvider/FunkitProvider';
|
|
2
|
-
export declare function getInitialChainIdFromFunkitProviderProps(props: FunkitProviderProps): number;
|
|
2
|
+
export declare function getInitialChainIdFromFunkitProviderProps(props: FunkitProviderProps): number | undefined;
|
|
3
3
|
/**
|
|
4
4
|
* Validates the passed in props of FunkitProvider. If there are any misconfigurations, an error will be thrown.
|
|
5
5
|
*/
|
|
6
6
|
export declare function validateFunkitProviderProps(props: FunkitProviderProps): void;
|
|
7
|
-
export declare function generateInnerWagmiConfig(props: FunkitProviderProps): import("wagmi").Config;
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "./chunk-
|
|
3
|
+
gateWallet
|
|
4
|
+
} from "./chunk-V45EXW7A.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./chunk-
|
|
6
|
+
zerionWallet
|
|
7
|
+
} from "./chunk-7CQPABJG.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./chunk-
|
|
9
|
+
walletConnectWallet
|
|
10
|
+
} from "./chunk-ASPRR7T3.js";
|
|
11
|
+
import {
|
|
12
|
+
tahoWallet
|
|
13
|
+
} from "./chunk-H76YCX2M.js";
|
|
11
14
|
import {
|
|
12
15
|
tokenPocketWallet
|
|
13
16
|
} from "./chunk-2UXZAUWT.js";
|
|
14
|
-
import {
|
|
15
|
-
ledgerWallet
|
|
16
|
-
} from "./chunk-Y6VY6E3L.js";
|
|
17
17
|
import {
|
|
18
18
|
talismanWallet
|
|
19
19
|
} from "./chunk-H273OTQA.js";
|
|
20
|
+
import {
|
|
21
|
+
trustWallet
|
|
22
|
+
} from "./chunk-Z2DGDHHZ.js";
|
|
20
23
|
import {
|
|
21
24
|
tokenaryWallet
|
|
22
25
|
} from "./chunk-ENZLEAG2.js";
|
|
23
|
-
import {
|
|
24
|
-
walletConnectWallet
|
|
25
|
-
} from "./chunk-ASPRR7T3.js";
|
|
26
26
|
import {
|
|
27
27
|
uniswapWallet
|
|
28
28
|
} from "./chunk-XRSY4JVH.js";
|
|
@@ -30,20 +30,26 @@ import {
|
|
|
30
30
|
xdefiWallet
|
|
31
31
|
} from "./chunk-L734HTUS.js";
|
|
32
32
|
import {
|
|
33
|
-
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import {
|
|
36
|
-
roninWallet
|
|
37
|
-
} from "./chunk-LVRXH33E.js";
|
|
33
|
+
zealWallet
|
|
34
|
+
} from "./chunk-DPXMP5KS.js";
|
|
38
35
|
import {
|
|
39
|
-
|
|
40
|
-
} from "./chunk-
|
|
36
|
+
rabbyWallet
|
|
37
|
+
} from "./chunk-XPEBP6XV.js";
|
|
41
38
|
import {
|
|
42
39
|
ramperWallet
|
|
43
40
|
} from "./chunk-ZOL6ZMTJ.js";
|
|
44
41
|
import {
|
|
45
42
|
rainbowWallet
|
|
46
43
|
} from "./chunk-O5NKWWEG.js";
|
|
44
|
+
import {
|
|
45
|
+
roninWallet
|
|
46
|
+
} from "./chunk-LVRXH33E.js";
|
|
47
|
+
import {
|
|
48
|
+
safeWallet
|
|
49
|
+
} from "./chunk-D3DCQ72J.js";
|
|
50
|
+
import {
|
|
51
|
+
safepalWallet
|
|
52
|
+
} from "./chunk-SYELB4QO.js";
|
|
47
53
|
import {
|
|
48
54
|
safeheronWallet
|
|
49
55
|
} from "./chunk-63NPZXAL.js";
|
|
@@ -51,44 +57,41 @@ import {
|
|
|
51
57
|
subWallet
|
|
52
58
|
} from "./chunk-ZBAQFL6G.js";
|
|
53
59
|
import {
|
|
54
|
-
|
|
55
|
-
} from "./chunk-
|
|
60
|
+
metaMaskWallet
|
|
61
|
+
} from "./chunk-3WZRNEZH.js";
|
|
56
62
|
import {
|
|
57
|
-
|
|
58
|
-
} from "./chunk-
|
|
63
|
+
mewWallet
|
|
64
|
+
} from "./chunk-PWYTDYBE.js";
|
|
59
65
|
import {
|
|
60
66
|
oktoWallet
|
|
61
67
|
} from "./chunk-WKHTUEF5.js";
|
|
62
68
|
import {
|
|
63
|
-
|
|
64
|
-
} from "./chunk-
|
|
65
|
-
import {
|
|
66
|
-
okxWallet
|
|
67
|
-
} from "./chunk-NGXIHASN.js";
|
|
69
|
+
omniWallet
|
|
70
|
+
} from "./chunk-SVN7OEQR.js";
|
|
68
71
|
import {
|
|
69
72
|
oneInchWallet
|
|
70
73
|
} from "./chunk-LCPIZUR3.js";
|
|
71
|
-
import {
|
|
72
|
-
omniWallet
|
|
73
|
-
} from "./chunk-SVN7OEQR.js";
|
|
74
74
|
import {
|
|
75
75
|
oneKeyWallet
|
|
76
76
|
} from "./chunk-4WOV4ITL.js";
|
|
77
77
|
import {
|
|
78
|
-
|
|
79
|
-
} from "./chunk-
|
|
78
|
+
okxWallet
|
|
79
|
+
} from "./chunk-NGXIHASN.js";
|
|
80
80
|
import {
|
|
81
81
|
phantomWallet
|
|
82
82
|
} from "./chunk-KGBLSE7L.js";
|
|
83
83
|
import {
|
|
84
84
|
enkryptWallet
|
|
85
85
|
} from "./chunk-FLY7F4XA.js";
|
|
86
|
+
import {
|
|
87
|
+
foxWallet
|
|
88
|
+
} from "./chunk-Q4RLUJJD.js";
|
|
86
89
|
import {
|
|
87
90
|
frontierWallet
|
|
88
91
|
} from "./chunk-AM4SSLAP.js";
|
|
89
92
|
import {
|
|
90
|
-
|
|
91
|
-
} from "./chunk-
|
|
93
|
+
imTokenWallet
|
|
94
|
+
} from "./chunk-5MVV7OVS.js";
|
|
92
95
|
import {
|
|
93
96
|
injectedWallet
|
|
94
97
|
} from "./chunk-KIHCNUU3.js";
|
|
@@ -96,41 +99,44 @@ import {
|
|
|
96
99
|
kresusWallet
|
|
97
100
|
} from "./chunk-X6T3CICZ.js";
|
|
98
101
|
import {
|
|
99
|
-
|
|
100
|
-
} from "./chunk-
|
|
102
|
+
ledgerWallet
|
|
103
|
+
} from "./chunk-Y6VY6E3L.js";
|
|
101
104
|
import {
|
|
102
|
-
|
|
103
|
-
} from "./chunk-
|
|
105
|
+
bybitWallet
|
|
106
|
+
} from "./chunk-ZUAHWUEL.js";
|
|
104
107
|
import {
|
|
105
|
-
|
|
106
|
-
} from "./chunk-
|
|
108
|
+
clvWallet
|
|
109
|
+
} from "./chunk-MIWCKFYE.js";
|
|
107
110
|
import {
|
|
108
111
|
coin98Wallet
|
|
109
112
|
} from "./chunk-4FQLUQNA.js";
|
|
113
|
+
import {
|
|
114
|
+
coinbaseWallet
|
|
115
|
+
} from "./chunk-XBUTWYE4.js";
|
|
110
116
|
import {
|
|
111
117
|
coreWallet
|
|
112
118
|
} from "./chunk-JLQ5HJYV.js";
|
|
113
119
|
import {
|
|
114
120
|
dawnWallet
|
|
115
121
|
} from "./chunk-4XQDKOGF.js";
|
|
116
|
-
import {
|
|
117
|
-
coinbaseWallet
|
|
118
|
-
} from "./chunk-XBUTWYE4.js";
|
|
119
122
|
import {
|
|
120
123
|
desigWallet
|
|
121
124
|
} from "./chunk-P4JLZ42R.js";
|
|
122
|
-
import {
|
|
123
|
-
foxWallet
|
|
124
|
-
} from "./chunk-Q4RLUJJD.js";
|
|
125
125
|
import {
|
|
126
126
|
frameWallet
|
|
127
127
|
} from "./chunk-XXFJVY73.js";
|
|
128
128
|
import {
|
|
129
129
|
argentWallet
|
|
130
130
|
} from "./chunk-NZ5G23JP.js";
|
|
131
|
+
import {
|
|
132
|
+
bifrostWallet
|
|
133
|
+
} from "./chunk-6LTLPR2Q.js";
|
|
131
134
|
import {
|
|
132
135
|
bitgetWallet
|
|
133
136
|
} from "./chunk-ZNXQ4V6G.js";
|
|
137
|
+
import {
|
|
138
|
+
bitskiWallet
|
|
139
|
+
} from "./chunk-C67TQJ6W.js";
|
|
134
140
|
import {
|
|
135
141
|
bitverseWallet
|
|
136
142
|
} from "./chunk-NL4I7WOT.js";
|
|
@@ -138,16 +144,10 @@ import {
|
|
|
138
144
|
bloomWallet
|
|
139
145
|
} from "./chunk-NTGZF5BY.js";
|
|
140
146
|
import "./chunk-ZOLACFTK.js";
|
|
147
|
+
import "./chunk-ZDU3JFGR.js";
|
|
141
148
|
import {
|
|
142
149
|
braveWallet
|
|
143
150
|
} from "./chunk-ABYQAXUX.js";
|
|
144
|
-
import {
|
|
145
|
-
bybitWallet
|
|
146
|
-
} from "./chunk-ZUAHWUEL.js";
|
|
147
|
-
import {
|
|
148
|
-
clvWallet
|
|
149
|
-
} from "./chunk-MIWCKFYE.js";
|
|
150
|
-
import "./chunk-ZDU3JFGR.js";
|
|
151
151
|
import "./chunk-QII6PY2D.js";
|
|
152
152
|
export {
|
|
153
153
|
argentWallet,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -73,8 +73,8 @@
|
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
75
|
"@datadog/browser-logs": "^5.12.0",
|
|
76
|
-
"@funkit/core": "^1.0.
|
|
77
|
-
"@funkit/wagmi-tools": "^1.0.
|
|
76
|
+
"@funkit/core": "^1.0.12",
|
|
77
|
+
"@funkit/wagmi-tools": "^1.0.14",
|
|
78
78
|
"@meshconnect/web-link-sdk": "^2.0.1",
|
|
79
79
|
"@moonpay/moonpay-react": "^1.6.1",
|
|
80
80
|
"@privy-io/js-sdk-core": "^0.18.1",
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { FeesItem } from '../FunTransactionSummary/FunTransactionSummary';
|
|
3
|
-
interface FunOnrampConfirmationProps {
|
|
4
|
-
token: string;
|
|
5
|
-
tokenAmountUsd: number;
|
|
6
|
-
estimatedFees: FeesItem;
|
|
7
|
-
estimatedProcessingTime: string;
|
|
8
|
-
totalAmountUsd: number;
|
|
9
|
-
onConfirm: () => void;
|
|
10
|
-
paymentMethodInfo: any;
|
|
11
|
-
onInitialization: () => void;
|
|
12
|
-
isFetchingEstimatedFees: boolean;
|
|
13
|
-
estimationError: string;
|
|
14
|
-
isConfirming: boolean;
|
|
15
|
-
backAnimation?: boolean;
|
|
16
|
-
}
|
|
17
|
-
export declare function FunOnrampConfirmationStep({ token, tokenAmountUsd, estimatedFees, estimatedProcessingTime, totalAmountUsd, onConfirm, paymentMethodInfo, onInitialization, isFetchingEstimatedFees, estimationError, isConfirming, backAnimation, }: FunOnrampConfirmationProps): React.JSX.Element;
|
|
18
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React, { Dispatch, SetStateAction } from 'react';
|
|
2
|
-
import { DepositTokenSymbol } from '../../consts/funkit';
|
|
3
|
-
export declare function FunOnrampInputStep({ tokenTicker, setDepositToken, amount, onChangeAmount, onClickContinue, backAnimation, }: {
|
|
4
|
-
tokenTicker: string;
|
|
5
|
-
setDepositToken: Dispatch<SetStateAction<DepositTokenSymbol>>;
|
|
6
|
-
amount: string;
|
|
7
|
-
onChangeAmount: Dispatch<SetStateAction<string>>;
|
|
8
|
-
onClickContinue: () => void;
|
|
9
|
-
backAnimation: boolean;
|
|
10
|
-
}): React.JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { DepositTokenSymbol } from '../../consts/funkit';
|
|
3
|
-
export declare function FunOnrampTokenPill({ token, isActive, onClick, }: {
|
|
4
|
-
token: DepositTokenSymbol;
|
|
5
|
-
isActive: boolean;
|
|
6
|
-
onClick?: undefined | null | (() => void);
|
|
7
|
-
}): React.JSX.Element;
|