@dynamic-labs/starknet 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/starknet",
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,10 +32,10 @@
32
32
  "starknetkit": "1.1.3",
33
33
  "@dynamic-labs/sdk-api-core": "0.0.489",
34
34
  "@module-federation/runtime": "0.1.18",
35
- "@dynamic-labs/rpc-provider-starknet": "3.0.0-alpha.23",
36
- "@dynamic-labs/utils": "3.0.0-alpha.23",
37
- "@dynamic-labs/wallet-book": "3.0.0-alpha.23",
38
- "@dynamic-labs/wallet-connector-core": "3.0.0-alpha.23"
35
+ "@dynamic-labs/rpc-provider-starknet": "3.0.0-alpha.25",
36
+ "@dynamic-labs/utils": "3.0.0-alpha.25",
37
+ "@dynamic-labs/wallet-book": "3.0.0-alpha.25",
38
+ "@dynamic-labs/wallet-connector-core": "3.0.0-alpha.25"
39
39
  },
40
40
  "peerDependencies": {}
41
41
  }
@@ -93,7 +93,8 @@ class StarknetWalletConnector extends walletConnectorCore.WalletConnectorBase {
93
93
  if (!this.isInstalledOnBrowser() &&
94
94
  utils.isMobile() &&
95
95
  this.walletBookWallet.mobile &&
96
- this.walletBookWallet.mobile.inAppBrowser) {
96
+ this.walletBookWallet.mobile.inAppBrowser &&
97
+ this.mobileExperience === 'in-app-browser') {
97
98
  const inAppBrowserCompiledTemplate = utils.template(this.walletBookWallet.mobile.inAppBrowser);
98
99
  const deepLink = inAppBrowserCompiledTemplate({
99
100
  encodedDappURI: encodeURIComponent(window.location.toString()),
@@ -79,6 +79,7 @@ declare abstract class StarknetWalletConnector extends WalletConnectorBase {
79
79
  native?: string | undefined;
80
80
  universal?: string | undefined;
81
81
  } | undefined;
82
+ mobileExperience?: "in-app-browser" | "redirect" | undefined;
82
83
  shortName?: string | undefined;
83
84
  showOnlyIfInstalled?: boolean | undefined;
84
85
  switchNetworkOnlyFromWallet?: boolean | undefined;
@@ -89,7 +89,8 @@ class StarknetWalletConnector extends WalletConnectorBase {
89
89
  if (!this.isInstalledOnBrowser() &&
90
90
  isMobile() &&
91
91
  this.walletBookWallet.mobile &&
92
- this.walletBookWallet.mobile.inAppBrowser) {
92
+ this.walletBookWallet.mobile.inAppBrowser &&
93
+ this.mobileExperience === 'in-app-browser') {
93
94
  const inAppBrowserCompiledTemplate = template(this.walletBookWallet.mobile.inAppBrowser);
94
95
  const deepLink = inAppBrowserCompiledTemplate({
95
96
  encodedDappURI: encodeURIComponent(window.location.toString()),