perawallet / connect

JavaScript SDK for integrating Pera Wallet to web applications.
https://perawallet.app
Other
64 stars 20 forks source link

perawallet/connect@0.1.6 #28

Closed mucahit closed 2 years ago

mucahit commented 2 years ago

Changelog 0.1.6

Better Server Side Rendering support is here!

From now on you don't need to use dynamic imports to get work @perawallet/connect on your SSR applications. Importing it directly will work without any issues.

import {PeraWalletConnect} from "@perawallet/connect";

Sign guidance on desktop

Desktop users will be guided to their mobile devices when they try to sign a transaction with a simple & animated toast message. It can be disabled completely or can be closed conditionally, see the example below.

import {PeraWalletConnect, closePeraWalletSignTxnToast} from "@perawallet/connect";

// This will disable the sign guidance toast completely.
new PeraWalletConnect({shouldShowSignTxnToast: false});

// This will close the toast immediately
closePeraWalletSignTxnToast();

image