@depay/widgets 12.16.4 → 12.16.6

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/umd/index.js CHANGED
@@ -201,7 +201,10 @@
201
201
  "name": "World App",
202
202
  "extension": "WorldApp",
203
203
  "logo": (_wallets$WorldApp = web3Wallets.wallets.WorldApp) === null || _wallets$WorldApp === void 0 ? void 0 : (_wallets$WorldApp$inf = _wallets$WorldApp.info) === null || _wallets$WorldApp$inf === void 0 ? void 0 : _wallets$WorldApp$inf.logo,
204
- "blockchains": ["worldchain"]
204
+ "autoSelect": true,
205
+ // if available
206
+ "blockchains": ["worldchain"],
207
+ "safe": "worldchain"
205
208
  }, {
206
209
  "name": "Coin98",
207
210
  "extensions": ["Coin98EVM", "Coin98SVM"],
@@ -380,6 +383,9 @@
380
383
  "mobile": {
381
384
  "ios": {
382
385
  "native": "solflare:",
386
+ "open": function open() {
387
+ return "https://solflare.com/ul/v1/browse/".concat(encodeURIComponent(window.location.toString()), "?ref=").concat(encodeURIComponent(window.location.origin.toString()));
388
+ },
383
389
  "universal": "https://solflare.com/ul",
384
390
  "solanaPay": true
385
391
  },
@@ -22600,6 +22606,16 @@
22600
22606
  onClickWallet(allWallets$1[0]);
22601
22607
  }
22602
22608
  }, [allWallets$1]);
22609
+ React.useEffect(function () {
22610
+ if (detectedWallets.length == 1) {
22611
+ var wallet = allWallets$1.find(function (wallet) {
22612
+ return wallet.name === detectedWallets[0].info.name;
22613
+ });
22614
+ if (wallet.autoSelect) {
22615
+ onClickWallet(wallet);
22616
+ }
22617
+ }
22618
+ }, [detectedWallets]);
22603
22619
  React.useEffect(function () {
22604
22620
  var wallets = [];
22605
22621
  web3Wallets.getWallets({