@unifold/connect-react 0.1.44 → 0.1.45
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/dist/index.d.mts +4 -8
- package/dist/index.d.ts +4 -8
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -141,15 +141,11 @@ interface WithdrawConfig {
|
|
|
141
141
|
*/
|
|
142
142
|
senderAddress: string;
|
|
143
143
|
/**
|
|
144
|
-
* Callback invoked with transaction details when user confirms withdrawal.
|
|
145
|
-
* The
|
|
146
|
-
*
|
|
147
|
-
*
|
|
148
|
-
* Optional — if omitted, the user must have a matching connected browser wallet
|
|
149
|
-
* to execute the withdrawal. If neither `withdraw` nor a connected wallet is available,
|
|
150
|
-
* the modal will show an error.
|
|
144
|
+
* Callback invoked with transaction details when the user confirms withdrawal.
|
|
145
|
+
* The host app is responsible for signing and submitting the transaction — the
|
|
146
|
+
* SDK does not have access to the user's private key.
|
|
151
147
|
*/
|
|
152
|
-
withdraw
|
|
148
|
+
withdraw: (txInfo: WithdrawTransactionInfo) => void | Promise<void>;
|
|
153
149
|
onSuccess?: (data: WithdrawResult) => void;
|
|
154
150
|
onError?: (error: WithdrawError) => void;
|
|
155
151
|
onClose?: () => void;
|
package/dist/index.d.ts
CHANGED
|
@@ -141,15 +141,11 @@ interface WithdrawConfig {
|
|
|
141
141
|
*/
|
|
142
142
|
senderAddress: string;
|
|
143
143
|
/**
|
|
144
|
-
* Callback invoked with transaction details when user confirms withdrawal.
|
|
145
|
-
* The
|
|
146
|
-
*
|
|
147
|
-
*
|
|
148
|
-
* Optional — if omitted, the user must have a matching connected browser wallet
|
|
149
|
-
* to execute the withdrawal. If neither `withdraw` nor a connected wallet is available,
|
|
150
|
-
* the modal will show an error.
|
|
144
|
+
* Callback invoked with transaction details when the user confirms withdrawal.
|
|
145
|
+
* The host app is responsible for signing and submitting the transaction — the
|
|
146
|
+
* SDK does not have access to the user's private key.
|
|
151
147
|
*/
|
|
152
|
-
withdraw
|
|
148
|
+
withdraw: (txInfo: WithdrawTransactionInfo) => void | Promise<void>;
|
|
153
149
|
onSuccess?: (data: WithdrawResult) => void;
|
|
154
150
|
onError?: (error: WithdrawError) => void;
|
|
155
151
|
onClose?: () => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unifold/connect-react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.45",
|
|
4
4
|
"description": "Unifold Connect React - Complete React SDK with UI components for crypto deposits",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@tanstack/react-query": "^5.90.11",
|
|
34
|
-
"@unifold/core": "0.1.
|
|
35
|
-
"@unifold/react-provider": "0.1.
|
|
36
|
-
"@unifold/ui-react": "0.1.
|
|
34
|
+
"@unifold/core": "0.1.45",
|
|
35
|
+
"@unifold/react-provider": "0.1.45",
|
|
36
|
+
"@unifold/ui-react": "0.1.45"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/react": "^19.0.0",
|