diff --git a/example/package-lock.json b/example/package-lock.json index f644a6e..55a6ed3 100644 --- a/example/package-lock.json +++ b/example/package-lock.json @@ -20,12 +20,12 @@ } }, "..": { - "version": "2.2.0", + "version": "2.2.1", "license": "ISC", "dependencies": { "@sats-connect/core": "0.0.6", "@sats-connect/make-default-provider-config": "0.0.1", - "@sats-connect/ui": "0.0.4" + "@sats-connect/ui": "0.0.4-68c5636" }, "devDependencies": { "husky": "^8.0.3", diff --git a/package-lock.json b/package-lock.json index 37c15e0..bf8adae 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,7 @@ "dependencies": { "@sats-connect/core": "0.0.6", "@sats-connect/make-default-provider-config": "0.0.1", - "@sats-connect/ui": "0.0.4" + "@sats-connect/ui": "0.0.4-68c5636" }, "devDependencies": { "husky": "^8.0.3", @@ -1805,9 +1805,9 @@ } }, "node_modules/@sats-connect/ui": { - "version": "0.0.4", - "resolved": "https://registry.npmjs.org/@sats-connect/ui/-/ui-0.0.4.tgz", - "integrity": "sha512-gmfsqPn44vsJubQC7KuK7zGnBgpLvDzadMlyCwsaBsASV7u8AxNdNas0xVEy6eIBa0Eim7AGcGNTulBFI8YRnA==" + "version": "0.0.4-68c5636", + "resolved": "https://registry.npmjs.org/@sats-connect/ui/-/ui-0.0.4-68c5636.tgz", + "integrity": "sha512-QyO4f5X8IpD3FlGfp6C0zH6ANgxBKBvBI3mjRKghotQ8PKSEJinelttjOsZOmnXQLMhAS8j34EBO4QNQaYCd+w==" }, "node_modules/@sinclair/typebox": { "version": "0.25.24", @@ -7395,9 +7395,9 @@ } }, "@sats-connect/ui": { - "version": "0.0.4", - "resolved": "https://registry.npmjs.org/@sats-connect/ui/-/ui-0.0.4.tgz", - "integrity": "sha512-gmfsqPn44vsJubQC7KuK7zGnBgpLvDzadMlyCwsaBsASV7u8AxNdNas0xVEy6eIBa0Eim7AGcGNTulBFI8YRnA==" + "version": "0.0.4-68c5636", + "resolved": "https://registry.npmjs.org/@sats-connect/ui/-/ui-0.0.4-68c5636.tgz", + "integrity": "sha512-QyO4f5X8IpD3FlGfp6C0zH6ANgxBKBvBI3mjRKghotQ8PKSEJinelttjOsZOmnXQLMhAS8j34EBO4QNQaYCd+w==" }, "@sinclair/typebox": { "version": "0.25.24", diff --git a/package.json b/package.json index 0d670da..a620fa9 100644 --- a/package.json +++ b/package.json @@ -24,8 +24,8 @@ }, "dependencies": { "@sats-connect/core": "0.0.6", - "@sats-connect/ui": "0.0.4", - "@sats-connect/make-default-provider-config": "0.0.1" + "@sats-connect/make-default-provider-config": "0.0.1", + "@sats-connect/ui": "0.0.4-68c5636" }, "devDependencies": { "husky": "^8.0.3", diff --git a/src/index.ts b/src/index.ts index 565ee25..61881e5 100644 --- a/src/index.ts +++ b/src/index.ts @@ -22,9 +22,7 @@ import { } from '@sats-connect/ui'; import { makeDefaultConfig } from '@sats-connect/make-default-provider-config'; -loadSelector(); - -class Wallet { +export class Wallet { private providerId: string | undefined; private defaultAdapters: Record SatsConnectAdapter> = defaultAdapters; @@ -40,6 +38,7 @@ class Wallet { } public async selectProvider() { + loadSelector(); const providers = getSupportedWallets(); if (providers.length === 0) {