btc-wallet 0.5.60-beta → 0.5.62-beta

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/esm/index.js CHANGED
@@ -4385,7 +4385,6 @@ function setupWalletButton({
4385
4385
  btcWallet,
4386
4386
  walletUrl
4387
4387
  }) {
4388
- console.log(`setupWalletButton ${walletUrl || ""}`);
4389
4388
  if (document.getElementById("satoshi-wallet-button")) {
4390
4389
  return;
4391
4390
  }
@@ -4420,7 +4419,7 @@ function createFloatingButtonWithIframe({
4420
4419
  var _a;
4421
4420
  const button = document.createElement("img");
4422
4421
  button.id = "satoshi-wallet-button";
4423
- const isIframeVisible = (_a = storage4 == null ? void 0 : storage4.get("visible")) != null ? _a : true;
4422
+ const isIframeVisible = (_a = storage4 == null ? void 0 : storage4.get("visible")) != null ? _a : !isMobile();
4424
4423
  button.src = isIframeVisible ? closeImageUrl : openImageUrl;
4425
4424
  iframe.style.display = isIframeVisible ? "block" : "none";
4426
4425
  const windowWidth = window.innerWidth;
@@ -4618,7 +4617,7 @@ function createIframe({
4618
4617
  iframe.id = "satoshi-wallet-iframe";
4619
4618
  iframe.allow = "clipboard-read; clipboard-write";
4620
4619
  iframe.src = iframeUrl;
4621
- const isVisible = (_a = storage4 == null ? void 0 : storage4.get("visible")) != null ? _a : true;
4620
+ const isVisible = (_a = storage4 == null ? void 0 : storage4.get("visible")) != null ? _a : !isMobile();
4622
4621
  Object.assign(iframe.style, __spreadValues({
4623
4622
  position: "fixed",
4624
4623
  bottom: "90px",
@@ -5106,9 +5105,9 @@ function setupWalletSelectorModal(selector, options) {
5106
5105
  return modal;
5107
5106
  }
5108
5107
  var CHAINS = [
5109
- { id: "btc", name: "Bitcoin" },
5110
- { id: "eth", name: "Ethereum" },
5111
- { id: "near", name: "Near" }
5108
+ { id: "btc", name: "Bitcoin", description: "MPC Mapping" },
5109
+ { id: "eth", name: "Ethereum", description: "EVM address as Near Account" },
5110
+ { id: "near", name: "Near", description: "Near Account" }
5112
5111
  ];
5113
5112
  function openChainModal(group) {
5114
5113
  return __async(this, null, function* () {
@@ -5117,8 +5116,11 @@ function openChainModal(group) {
5117
5116
  const buttons = `
5118
5117
  <div class="option-list">${chains5.map(
5119
5118
  (chain) => `<button class="chain-button option-item" data-chain="${chain.id}">
5120
- <img src="https://assets.deltatrade.ai/assets/chain/${chain.id}.svg" alt="${chain.id}" style="width:32px; height: 32px;" />
5121
- ${chain.name}
5119
+ <img src="https://assets.deltatrade.ai/assets/chain/${chain.id}.svg" alt="${chain.id}" style="width:32px; height: 32px;" />
5120
+ <div style="display: flex; flex-direction: column; text-align: left;">
5121
+ <div style="font-size: 16px; font-weight: bold;">${chain.name}</div>
5122
+ <div style="font-size: 12px; opacity:0.5;">${chain.description}</div>
5123
+ </div>
5122
5124
  </button>`
5123
5125
  ).join("")}
5124
5126
  </div>
@@ -5159,7 +5161,7 @@ function getGroup(state) {
5159
5161
 
5160
5162
  // src/index.ts
5161
5163
  var getVersion = () => {
5162
- return "0.5.60-beta";
5164
+ return "0.5.62-beta";
5163
5165
  };
5164
5166
  if (typeof window !== "undefined") {
5165
5167
  window.__BTC_WALLET_VERSION = getVersion();