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/dist/index.js CHANGED
@@ -4455,7 +4455,6 @@ function setupWalletButton({
4455
4455
  btcWallet,
4456
4456
  walletUrl
4457
4457
  }) {
4458
- console.log(`setupWalletButton ${walletUrl || ""}`);
4459
4458
  if (document.getElementById("satoshi-wallet-button")) {
4460
4459
  return;
4461
4460
  }
@@ -4490,7 +4489,7 @@ function createFloatingButtonWithIframe({
4490
4489
  var _a;
4491
4490
  const button = document.createElement("img");
4492
4491
  button.id = "satoshi-wallet-button";
4493
- const isIframeVisible = (_a = storage4 == null ? void 0 : storage4.get("visible")) != null ? _a : true;
4492
+ const isIframeVisible = (_a = storage4 == null ? void 0 : storage4.get("visible")) != null ? _a : !isMobile();
4494
4493
  button.src = isIframeVisible ? closeImageUrl : openImageUrl;
4495
4494
  iframe.style.display = isIframeVisible ? "block" : "none";
4496
4495
  const windowWidth = window.innerWidth;
@@ -4688,7 +4687,7 @@ function createIframe({
4688
4687
  iframe.id = "satoshi-wallet-iframe";
4689
4688
  iframe.allow = "clipboard-read; clipboard-write";
4690
4689
  iframe.src = iframeUrl;
4691
- const isVisible = (_a = storage4 == null ? void 0 : storage4.get("visible")) != null ? _a : true;
4690
+ const isVisible = (_a = storage4 == null ? void 0 : storage4.get("visible")) != null ? _a : !isMobile();
4692
4691
  Object.assign(iframe.style, __spreadValues({
4693
4692
  position: "fixed",
4694
4693
  bottom: "90px",
@@ -5174,9 +5173,9 @@ function setupWalletSelectorModal(selector, options) {
5174
5173
  return modal;
5175
5174
  }
5176
5175
  var CHAINS = [
5177
- { id: "btc", name: "Bitcoin" },
5178
- { id: "eth", name: "Ethereum" },
5179
- { id: "near", name: "Near" }
5176
+ { id: "btc", name: "Bitcoin", description: "MPC Mapping" },
5177
+ { id: "eth", name: "Ethereum", description: "EVM address as Near Account" },
5178
+ { id: "near", name: "Near", description: "Near Account" }
5180
5179
  ];
5181
5180
  function openChainModal(group) {
5182
5181
  return __async(this, null, function* () {
@@ -5185,8 +5184,11 @@ function openChainModal(group) {
5185
5184
  const buttons = `
5186
5185
  <div class="option-list">${chains5.map(
5187
5186
  (chain) => `<button class="chain-button option-item" data-chain="${chain.id}">
5188
- <img src="https://assets.deltatrade.ai/assets/chain/${chain.id}.svg" alt="${chain.id}" style="width:32px; height: 32px;" />
5189
- ${chain.name}
5187
+ <img src="https://assets.deltatrade.ai/assets/chain/${chain.id}.svg" alt="${chain.id}" style="width:32px; height: 32px;" />
5188
+ <div style="display: flex; flex-direction: column; text-align: left;">
5189
+ <div style="font-size: 16px; font-weight: bold;">${chain.name}</div>
5190
+ <div style="font-size: 12px; opacity:0.5;">${chain.description}</div>
5191
+ </div>
5190
5192
  </button>`
5191
5193
  ).join("")}
5192
5194
  </div>
@@ -5227,7 +5229,7 @@ function getGroup(state) {
5227
5229
 
5228
5230
  // src/index.ts
5229
5231
  var getVersion = () => {
5230
- return "0.5.60-beta";
5232
+ return "0.5.62-beta";
5231
5233
  };
5232
5234
  if (typeof window !== "undefined") {
5233
5235
  window.__BTC_WALLET_VERSION = getVersion();