@aurum-sdk/core 0.1.1 → 0.1.2

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.mjs CHANGED
@@ -14,7 +14,7 @@ import {
14
14
  useAurumStore,
15
15
  useNavigation,
16
16
  waitForStoreHydration
17
- } from "./chunk-DND52DSA.mjs";
17
+ } from "./chunk-EQEZQPHH.mjs";
18
18
 
19
19
  // src/AurumCore.ts
20
20
  import { checksumAddress } from "viem";
@@ -271,7 +271,7 @@ var AppKitAdapter = class {
271
271
  }
272
272
  await this.disconnect();
273
273
  }
274
- this.modal.open({ view: "Connect" });
274
+ this.modal.open({ view: "AllWallets" });
275
275
  return await this.waitForConnection();
276
276
  }
277
277
  waitForConnection(timeout = 6e4) {
@@ -531,11 +531,15 @@ var RabbyAdapter = class {
531
531
  // src/wallet-adapters/BraveAdapter.ts
532
532
  import { getLogoDataUri as getLogoDataUri3 } from "@aurum-sdk/logos";
533
533
  import { WalletId as WalletId4, WalletName as WalletName3 } from "@aurum-sdk/types";
534
- var BRAVE_RDNS = "com.brave.wallet";
534
+
535
+ // src/utils/platform/isBraveBrowser.ts
535
536
  function isBraveBrowser() {
536
537
  if (typeof navigator === "undefined") return false;
537
538
  return navigator.brave !== void 0;
538
539
  }
540
+
541
+ // src/wallet-adapters/BraveAdapter.ts
542
+ var BRAVE_RDNS = "com.brave.wallet";
539
543
  var BraveAdapter = class {
540
544
  constructor() {
541
545
  this.id = WalletId4.Brave;
@@ -546,9 +550,13 @@ var BraveAdapter = class {
546
550
  this.provider = null;
547
551
  this.accountsChangedCallback = null;
548
552
  this.providerPromise = null;
549
- this.hide = !isBraveBrowser();
550
553
  this.providerPromise = this.discoverProvider();
551
554
  }
555
+ get hide() {
556
+ if (this.provider) return false;
557
+ if (isBraveBrowser()) return false;
558
+ return true;
559
+ }
552
560
  /**
553
561
  * Uses EIP-6963 to discover the Brave Wallet provider by its RDNS identifier.
554
562
  * Falls back to window.ethereum for legacy detection.