@dynamic-labs/solana 1.1.0-alpha.2 → 1.1.0-alpha.3
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 +15 -0
- package/package.json +6 -6
- package/src/Solflare.cjs +5 -1
- package/src/Solflare.js +5 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
|
|
2
|
+
## [1.1.0-alpha.3](https://github.com/dynamic-labs/DynamicAuth/compare/v1.1.0-alpha.2...v1.1.0-alpha.3) (2023-12-19)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add Flow support in magic wallet connector ([#4158](https://github.com/dynamic-labs/DynamicAuth/issues/4158)) ([fbbaea7](https://github.com/dynamic-labs/DynamicAuth/commit/fbbaea76b36ceb693f6bd4f2404dfa1204e61492))
|
|
8
|
+
* add showDynamicUserProfile to DynamicContext ([#4214](https://github.com/dynamic-labs/DynamicAuth/issues/4214)) ([2aeb8e3](https://github.com/dynamic-labs/DynamicAuth/commit/2aeb8e3c45a3d9f87bd9196ea9b46927e02eb633))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* add shortname to braveevm to allow for lookups by name as well as key ([#4213](https://github.com/dynamic-labs/DynamicAuth/issues/4213)) ([969b089](https://github.com/dynamic-labs/DynamicAuth/commit/969b089be516fb57fcdc941f908c078998eb4ec0))
|
|
14
|
+
* solflare connect ([#4215](https://github.com/dynamic-labs/DynamicAuth/issues/4215)) ([9a4164e](https://github.com/dynamic-labs/DynamicAuth/commit/9a4164e53198f33ef7201cd4e1eff745a09e9701))
|
|
15
|
+
* wagmi attempt to connect to primary wallet first ([#4206](https://github.com/dynamic-labs/DynamicAuth/issues/4206)) ([9e5fc8e](https://github.com/dynamic-labs/DynamicAuth/commit/9e5fc8ef026628935ac32d3bb0c22bda35057e5d))
|
|
16
|
+
|
|
2
17
|
## [1.1.0-alpha.2](https://github.com/dynamic-labs/DynamicAuth/compare/v1.1.0-alpha.1...v1.1.0-alpha.2) (2023-12-18)
|
|
3
18
|
|
|
4
19
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/solana",
|
|
3
|
-
"version": "1.1.0-alpha.
|
|
3
|
+
"version": "1.1.0-alpha.3",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/dynamic-labs/DynamicAuth.git",
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@solana/web3.js": "1.70.1",
|
|
30
|
-
"@dynamic-labs/rpc-providers": "1.1.0-alpha.
|
|
31
|
-
"@dynamic-labs/types": "1.1.0-alpha.
|
|
32
|
-
"@dynamic-labs/utils": "1.1.0-alpha.
|
|
33
|
-
"@dynamic-labs/wallet-book": "1.1.0-alpha.
|
|
34
|
-
"@dynamic-labs/wallet-connector-core": "1.1.0-alpha.
|
|
30
|
+
"@dynamic-labs/rpc-providers": "1.1.0-alpha.3",
|
|
31
|
+
"@dynamic-labs/types": "1.1.0-alpha.3",
|
|
32
|
+
"@dynamic-labs/utils": "1.1.0-alpha.3",
|
|
33
|
+
"@dynamic-labs/wallet-book": "1.1.0-alpha.3",
|
|
34
|
+
"@dynamic-labs/wallet-connector-core": "1.1.0-alpha.3",
|
|
35
35
|
"eventemitter3": "5.0.1"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {}
|
package/src/Solflare.cjs
CHANGED
|
@@ -17,7 +17,11 @@ class Solflare extends solWalletConnector.SolWalletConnector {
|
|
|
17
17
|
}
|
|
18
18
|
fetchPublicAddress() {
|
|
19
19
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
20
|
-
|
|
20
|
+
/**
|
|
21
|
+
* It should redirect to in-app browser if on mobile and if not in the in-app browser,
|
|
22
|
+
* this checks if it is not in the in-app browser by checking if the provider is not available.
|
|
23
|
+
*/
|
|
24
|
+
if (utils.isMobile() && !this.isInstalledOnBrowser()) {
|
|
21
25
|
const url = encodeURIComponent(window.location.toString());
|
|
22
26
|
const ref = encodeURIComponent(window.location.origin);
|
|
23
27
|
if (utils.isSamsungBrowser()) {
|
package/src/Solflare.js
CHANGED
|
@@ -13,7 +13,11 @@ class Solflare extends SolWalletConnector {
|
|
|
13
13
|
}
|
|
14
14
|
fetchPublicAddress() {
|
|
15
15
|
return __awaiter(this, void 0, void 0, function* () {
|
|
16
|
-
|
|
16
|
+
/**
|
|
17
|
+
* It should redirect to in-app browser if on mobile and if not in the in-app browser,
|
|
18
|
+
* this checks if it is not in the in-app browser by checking if the provider is not available.
|
|
19
|
+
*/
|
|
20
|
+
if (isMobile() && !this.isInstalledOnBrowser()) {
|
|
17
21
|
const url = encodeURIComponent(window.location.toString());
|
|
18
22
|
const ref = encodeURIComponent(window.location.origin);
|
|
19
23
|
if (isSamsungBrowser()) {
|