@tonconnect/ui 2.2.0 → 2.3.0-beta.1
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/README.md +122 -0
- package/dist/tonconnect-ui.min.js +239 -239
- package/dist/tonconnect-ui.min.js.map +1 -1
- package/lib/index.cjs +441 -57
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.ts +6 -2
- package/lib/index.mjs +441 -57
- package/lib/index.mjs.map +1 -1
- package/package.json +9 -14
package/lib/index.d.ts
CHANGED
|
@@ -465,12 +465,16 @@ declare class TonConnectUI {
|
|
|
465
465
|
* @param tx transaction to send.
|
|
466
466
|
* @param options modal and notifications behaviour settings. Default is show only 'before' modal and all notifications.
|
|
467
467
|
*/
|
|
468
|
-
sendTransaction(tx: SendTransactionRequest, options?: ActionConfiguration
|
|
468
|
+
sendTransaction(tx: SendTransactionRequest, options?: ActionConfiguration & {
|
|
469
|
+
onRequestSent?: (redirectToWallet: () => void) => void;
|
|
470
|
+
}): Promise<SendTransactionResponse>;
|
|
469
471
|
/**
|
|
470
472
|
* Signs the data and returns the signature.
|
|
471
473
|
* @param data data to sign.
|
|
472
474
|
*/
|
|
473
|
-
signData(data: SignDataPayload
|
|
475
|
+
signData(data: SignDataPayload, options?: {
|
|
476
|
+
onRequestSent?: (redirectToWallet: () => void) => void;
|
|
477
|
+
}): Promise<SignDataResponse>;
|
|
474
478
|
private redirectAfterRequestSent;
|
|
475
479
|
/**
|
|
476
480
|
* TODO: remove in the next major version.
|