From 1c5e1c531564d759816ced0b90801ece3f3cad6c Mon Sep 17 00:00:00 2001 From: Mahmoud Aboelenein Date: Thu, 18 Apr 2024 12:55:26 +0200 Subject: [PATCH 1/3] use test ui package --- package-lock.json | 14 +++++++------- package.json | 4 ++-- src/index.ts | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/package-lock.json b/package-lock.json index 37c15e0..f256277 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-66a9179" }, "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-66a9179", + "resolved": "https://registry.npmjs.org/@sats-connect/ui/-/ui-0.0.4-66a9179.tgz", + "integrity": "sha512-zrrz2Wagf8NMbw/t8F7XWNq6+wBbWEMKN62NnJ2RBA01wjUtzjx8xqOO4S0npLx7Sinw2+8z07A8XUhFIuBHww==" }, "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-66a9179", + "resolved": "https://registry.npmjs.org/@sats-connect/ui/-/ui-0.0.4-66a9179.tgz", + "integrity": "sha512-zrrz2Wagf8NMbw/t8F7XWNq6+wBbWEMKN62NnJ2RBA01wjUtzjx8xqOO4S0npLx7Sinw2+8z07A8XUhFIuBHww==" }, "@sinclair/typebox": { "version": "0.25.24", diff --git a/package.json b/package.json index 0d670da..c91e708 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-66a9179" }, "devDependencies": { "husky": "^8.0.3", diff --git a/src/index.ts b/src/index.ts index 565ee25..9acd1eb 100644 --- a/src/index.ts +++ b/src/index.ts @@ -24,7 +24,7 @@ import { makeDefaultConfig } from '@sats-connect/make-default-provider-config'; loadSelector(); -class Wallet { +export class Wallet { private providerId: string | undefined; private defaultAdapters: Record SatsConnectAdapter> = defaultAdapters; From 8afa7894047c4b2543646ebb63db9ad8020210b5 Mon Sep 17 00:00:00 2001 From: Mahmoud Aboelenein Date: Thu, 18 Apr 2024 13:09:12 +0200 Subject: [PATCH 2/3] update ui package version --- package-lock.json | 32 +++++++++++++++++++++++++------- package.json | 2 +- 2 files changed, 26 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index f256277..4e968ce 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-66a9179" + "@sats-connect/ui": "0.0.4-394d09e" }, "devDependencies": { "husky": "^8.0.3", @@ -1805,9 +1805,17 @@ } }, "node_modules/@sats-connect/ui": { - "version": "0.0.4-66a9179", - "resolved": "https://registry.npmjs.org/@sats-connect/ui/-/ui-0.0.4-66a9179.tgz", - "integrity": "sha512-zrrz2Wagf8NMbw/t8F7XWNq6+wBbWEMKN62NnJ2RBA01wjUtzjx8xqOO4S0npLx7Sinw2+8z07A8XUhFIuBHww==" + "version": "0.0.4-394d09e", + "resolved": "https://registry.npmjs.org/@sats-connect/ui/-/ui-0.0.4-394d09e.tgz", + "integrity": "sha512-GmZC0dsvWrXGmgNZQi+lg6Y9U7289IDi9ttBbgDWYewSkAH29GfHExT329+/o8vxz02BZdkd+5ITUeOp2eMcLw==", + "dependencies": { + "@sats-connect/ui": "^0.0.4-66a9179" + } + }, + "node_modules/@sats-connect/ui/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==" }, "node_modules/@sinclair/typebox": { "version": "0.25.24", @@ -7395,9 +7403,19 @@ } }, "@sats-connect/ui": { - "version": "0.0.4-66a9179", - "resolved": "https://registry.npmjs.org/@sats-connect/ui/-/ui-0.0.4-66a9179.tgz", - "integrity": "sha512-zrrz2Wagf8NMbw/t8F7XWNq6+wBbWEMKN62NnJ2RBA01wjUtzjx8xqOO4S0npLx7Sinw2+8z07A8XUhFIuBHww==" + "version": "0.0.4-394d09e", + "resolved": "https://registry.npmjs.org/@sats-connect/ui/-/ui-0.0.4-394d09e.tgz", + "integrity": "sha512-GmZC0dsvWrXGmgNZQi+lg6Y9U7289IDi9ttBbgDWYewSkAH29GfHExT329+/o8vxz02BZdkd+5ITUeOp2eMcLw==", + "requires": { + "@sats-connect/ui": "^0.0.4-66a9179" + }, + "dependencies": { + "@sats-connect/ui": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/@sats-connect/ui/-/ui-0.0.4.tgz", + "integrity": "sha512-gmfsqPn44vsJubQC7KuK7zGnBgpLvDzadMlyCwsaBsASV7u8AxNdNas0xVEy6eIBa0Eim7AGcGNTulBFI8YRnA==" + } + } }, "@sinclair/typebox": { "version": "0.25.24", diff --git a/package.json b/package.json index c91e708..aaf2815 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "dependencies": { "@sats-connect/core": "0.0.6", "@sats-connect/make-default-provider-config": "0.0.1", - "@sats-connect/ui": "^0.0.4-66a9179" + "@sats-connect/ui": "0.0.4-394d09e" }, "devDependencies": { "husky": "^8.0.3", From e1837885ffc2737919a754fae1637afb8a2cb4ce Mon Sep 17 00:00:00 2001 From: Mahmoud Aboelenein Date: Thu, 18 Apr 2024 14:38:54 +0200 Subject: [PATCH 3/3] move load selector call --- example/package-lock.json | 4 ++-- package-lock.json | 32 +++++++------------------------- package.json | 2 +- src/index.ts | 3 +-- 4 files changed, 11 insertions(+), 30 deletions(-) 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 4e968ce..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-394d09e" + "@sats-connect/ui": "0.0.4-68c5636" }, "devDependencies": { "husky": "^8.0.3", @@ -1805,17 +1805,9 @@ } }, "node_modules/@sats-connect/ui": { - "version": "0.0.4-394d09e", - "resolved": "https://registry.npmjs.org/@sats-connect/ui/-/ui-0.0.4-394d09e.tgz", - "integrity": "sha512-GmZC0dsvWrXGmgNZQi+lg6Y9U7289IDi9ttBbgDWYewSkAH29GfHExT329+/o8vxz02BZdkd+5ITUeOp2eMcLw==", - "dependencies": { - "@sats-connect/ui": "^0.0.4-66a9179" - } - }, - "node_modules/@sats-connect/ui/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", @@ -7403,19 +7395,9 @@ } }, "@sats-connect/ui": { - "version": "0.0.4-394d09e", - "resolved": "https://registry.npmjs.org/@sats-connect/ui/-/ui-0.0.4-394d09e.tgz", - "integrity": "sha512-GmZC0dsvWrXGmgNZQi+lg6Y9U7289IDi9ttBbgDWYewSkAH29GfHExT329+/o8vxz02BZdkd+5ITUeOp2eMcLw==", - "requires": { - "@sats-connect/ui": "^0.0.4-66a9179" - }, - "dependencies": { - "@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 aaf2815..a620fa9 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "dependencies": { "@sats-connect/core": "0.0.6", "@sats-connect/make-default-provider-config": "0.0.1", - "@sats-connect/ui": "0.0.4-394d09e" + "@sats-connect/ui": "0.0.4-68c5636" }, "devDependencies": { "husky": "^8.0.3", diff --git a/src/index.ts b/src/index.ts index 9acd1eb..61881e5 100644 --- a/src/index.ts +++ b/src/index.ts @@ -22,8 +22,6 @@ import { } from '@sats-connect/ui'; import { makeDefaultConfig } from '@sats-connect/make-default-provider-config'; -loadSelector(); - export class Wallet { private providerId: string | undefined; @@ -40,6 +38,7 @@ export class Wallet { } public async selectProvider() { + loadSelector(); const providers = getSupportedWallets(); if (providers.length === 0) {