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