@dynamic-labs/bitcoin 3.0.0-alpha.23 → 3.0.0-alpha.25

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/CHANGELOG.md CHANGED
@@ -1,4 +1,15 @@
1
1
 
2
+ ## [3.0.0-alpha.25](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.24...v3.0.0-alpha.25) (2024-07-24)
3
+
4
+
5
+ ### Features
6
+
7
+ * add ability to specify mobileExperience on a wallet by wallet ([#6195](https://github.com/dynamic-labs/DynamicAuth/issues/6195)) ([947fd0a](https://github.com/dynamic-labs/DynamicAuth/commit/947fd0ab864d1995a1ef35a51c77a585649fd43f))
8
+ * global wallet new package ([#6385](https://github.com/dynamic-labs/DynamicAuth/issues/6385)) ([230a0f3](https://github.com/dynamic-labs/DynamicAuth/commit/230a0f380c2bc8c69619daed0c7f3280da8b8bb9))
9
+ * solana send balance modal for injected ([#6405](https://github.com/dynamic-labs/DynamicAuth/issues/6405)) ([b8aa84b](https://github.com/dynamic-labs/DynamicAuth/commit/b8aa84b58eb71791405bf68b6c46c40bebb170f8))
10
+
11
+ ## [3.0.0-alpha.24](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.23...v3.0.0-alpha.24) (2024-07-20)
12
+
2
13
  ## [3.0.0-alpha.23](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.22...v3.0.0-alpha.23) (2024-07-19)
3
14
 
4
15
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/bitcoin",
3
- "version": "3.0.0-alpha.23",
3
+ "version": "3.0.0-alpha.25",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/dynamic-labs/dynamic-auth.git",
@@ -32,9 +32,9 @@
32
32
  "@wallet-standard/base": "1.0.1",
33
33
  "bitcoinjs-lib": "6.1.5",
34
34
  "sats-connect": "2.0.0",
35
- "@dynamic-labs/utils": "3.0.0-alpha.23",
36
- "@dynamic-labs/wallet-book": "3.0.0-alpha.23",
37
- "@dynamic-labs/wallet-connector-core": "3.0.0-alpha.23",
35
+ "@dynamic-labs/utils": "3.0.0-alpha.25",
36
+ "@dynamic-labs/wallet-book": "3.0.0-alpha.25",
37
+ "@dynamic-labs/wallet-connector-core": "3.0.0-alpha.25",
38
38
  "stream": "0.0.2"
39
39
  },
40
40
  "peerDependencies": {}
@@ -34,7 +34,10 @@ class BitcoinSatsConnectConnector extends BitcoinWalletConnector.BitcoinWalletCo
34
34
  }
35
35
  const wallet = walletBook.findWalletBookWallet(this.walletBook, this.key);
36
36
  const inAppBrowserUrl = (_a = wallet === null || wallet === void 0 ? void 0 : wallet.mobile) === null || _a === void 0 ? void 0 : _a.inAppBrowser;
37
- if (utils.isMobile() && !this.isInstalledOnBrowser() && inAppBrowserUrl) {
37
+ if (utils.isMobile() &&
38
+ !this.isInstalledOnBrowser() &&
39
+ inAppBrowserUrl &&
40
+ this.mobileExperience === 'in-app-browser') {
38
41
  const inAppBrowserTemplate = utils.template(inAppBrowserUrl);
39
42
  const deepLink = inAppBrowserTemplate({
40
43
  encodedDappURI: encodeURIComponent(window.location.toString()),
@@ -30,7 +30,10 @@ class BitcoinSatsConnectConnector extends BitcoinWalletConnector {
30
30
  }
31
31
  const wallet = findWalletBookWallet(this.walletBook, this.key);
32
32
  const inAppBrowserUrl = (_a = wallet === null || wallet === void 0 ? void 0 : wallet.mobile) === null || _a === void 0 ? void 0 : _a.inAppBrowser;
33
- if (isMobile() && !this.isInstalledOnBrowser() && inAppBrowserUrl) {
33
+ if (isMobile() &&
34
+ !this.isInstalledOnBrowser() &&
35
+ inAppBrowserUrl &&
36
+ this.mobileExperience === 'in-app-browser') {
34
37
  const inAppBrowserTemplate = template(inAppBrowserUrl);
35
38
  const deepLink = inAppBrowserTemplate({
36
39
  encodedDappURI: encodeURIComponent(window.location.toString()),
@@ -22,7 +22,8 @@ class OkxConnector extends BitcoinWalletConnector.BitcoinWalletConnector {
22
22
  if (!this.isInstalledOnBrowser() &&
23
23
  utils.isMobile() &&
24
24
  this.walletBookWallet.mobile &&
25
- this.walletBookWallet.mobile.inAppBrowser) {
25
+ this.walletBookWallet.mobile.inAppBrowser &&
26
+ this.mobileExperience === 'in-app-browser') {
26
27
  const inAppBrowserCompiledTemplate = utils.template(this.walletBookWallet.mobile.inAppBrowser);
27
28
  const deepLink = inAppBrowserCompiledTemplate({
28
29
  encodedDappURI: encodeURIComponent(window.location.toString()),
@@ -18,7 +18,8 @@ class OkxConnector extends BitcoinWalletConnector {
18
18
  if (!this.isInstalledOnBrowser() &&
19
19
  isMobile() &&
20
20
  this.walletBookWallet.mobile &&
21
- this.walletBookWallet.mobile.inAppBrowser) {
21
+ this.walletBookWallet.mobile.inAppBrowser &&
22
+ this.mobileExperience === 'in-app-browser') {
22
23
  const inAppBrowserCompiledTemplate = template(this.walletBookWallet.mobile.inAppBrowser);
23
24
  const deepLink = inAppBrowserCompiledTemplate({
24
25
  encodedDappURI: encodeURIComponent(window.location.toString()),