@dynamic-labs/solana 4.47.0 → 4.47.2
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 +29 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +13 -13
- package/src/walletConnect/SolanaWalletConnectConnector/SolanaWalletConnectConnector.cjs +12 -0
- package/src/walletConnect/SolanaWalletConnectConnector/SolanaWalletConnectConnector.d.ts +1 -0
- package/src/walletConnect/SolanaWalletConnectConnector/SolanaWalletConnectConnector.js +12 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,33 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.47.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.47.1...v4.47.2) (2025-11-27)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add export client key share from google drive ([#9942](https://github.com/dynamic-labs/dynamic-auth/issues/9942)) ([38091b8](https://github.com/dynamic-labs/dynamic-auth/commit/38091b84cb69713591ab2b78e2cc26d4a56ca407))
|
|
8
|
+
* add token balance refresh to dynamic widget ([#9645](https://github.com/dynamic-labs/dynamic-auth/issues/9645)) ([331954e](https://github.com/dynamic-labs/dynamic-auth/commit/331954ea38c5f4058938392bb4eea973997d0ff6))
|
|
9
|
+
* **react-native:** introduce wallets.connectWallet and wallets.walletOptions ([#9958](https://github.com/dynamic-labs/dynamic-auth/issues/9958)) ([d6d2fff](https://github.com/dynamic-labs/dynamic-auth/commit/d6d2fff3b2a238d8b7a27553d9c6667c40bc53cd))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* await oauth flow on popup ([#9944](https://github.com/dynamic-labs/dynamic-auth/issues/9944)) ([486a536](https://github.com/dynamic-labs/dynamic-auth/commit/486a5365066f1492ddd47ff830eb5a4f347e5ab3))
|
|
15
|
+
* ensure MFA modal only open when necessary ([#9959](https://github.com/dynamic-labs/dynamic-auth/issues/9959)) ([1783a61](https://github.com/dynamic-labs/dynamic-auth/commit/1783a61ddf97eb8af82c132cfc531fee7f57fa0f))
|
|
16
|
+
|
|
17
|
+
### [4.47.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.47.0...v4.47.1) (2025-11-24)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* add aptos non-native coins to sendBalance ([#9914](https://github.com/dynamic-labs/dynamic-auth/issues/9914)) ([0f0f855](https://github.com/dynamic-labs/dynamic-auth/commit/0f0f855229a052eb280831c81d235b0164f26ff3))
|
|
23
|
+
* add aptos non-native token sending to dynamic widget ([#9915](https://github.com/dynamic-labs/dynamic-auth/issues/9915)) ([c91c117](https://github.com/dynamic-labs/dynamic-auth/commit/c91c1172d5185c151f9b4cac1a0757f6d72304ca))
|
|
24
|
+
* **react-native:** add waas wallet upgrade to react-native ([#9936](https://github.com/dynamic-labs/dynamic-auth/issues/9936)) ([024366e](https://github.com/dynamic-labs/dynamic-auth/commit/024366e179b284353d0b05667e916a01520b2874))
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Bug Fixes
|
|
28
|
+
|
|
29
|
+
* remove noise from wallet connect when it is disabled ([#9945](https://github.com/dynamic-labs/dynamic-auth/issues/9945)) ([ada6511](https://github.com/dynamic-labs/dynamic-auth/commit/ada6511e2d25351f1b63312eb4810752f6d95ad6))
|
|
30
|
+
|
|
2
31
|
## [4.47.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.46.3...v4.47.0) (2025-11-21)
|
|
3
32
|
|
|
4
33
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/solana",
|
|
3
|
-
"version": "4.47.
|
|
3
|
+
"version": "4.47.2",
|
|
4
4
|
"description": "A React SDK for implementing wallet web3 authentication and authorization to your website.",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"homepage": "https://www.dynamic.xyz/",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@dynamic-labs/wallet-connect": "4.47.
|
|
21
|
+
"@dynamic-labs/wallet-connect": "4.47.2",
|
|
22
22
|
"@solana/web3.js": "1.98.1",
|
|
23
23
|
"@wallet-standard/app": "1.0.1",
|
|
24
24
|
"@wallet-standard/base": "1.0.1",
|
|
@@ -29,17 +29,17 @@
|
|
|
29
29
|
"@walletconnect/sign-client": "2.21.5",
|
|
30
30
|
"@walletconnect/utils": "2.21.5",
|
|
31
31
|
"@walletconnect/types": "2.21.5",
|
|
32
|
-
"@dynamic-labs/assert-package-version": "4.47.
|
|
33
|
-
"@dynamic-labs/embedded-wallet-solana": "4.47.
|
|
34
|
-
"@dynamic-labs/logger": "4.47.
|
|
35
|
-
"@dynamic-labs/rpc-providers": "4.47.
|
|
36
|
-
"@dynamic-labs/sdk-api-core": "0.0.
|
|
37
|
-
"@dynamic-labs/solana-core": "4.47.
|
|
38
|
-
"@dynamic-labs/types": "4.47.
|
|
39
|
-
"@dynamic-labs/utils": "4.47.
|
|
40
|
-
"@dynamic-labs/waas-svm": "4.47.
|
|
41
|
-
"@dynamic-labs/wallet-book": "4.47.
|
|
42
|
-
"@dynamic-labs/wallet-connector-core": "4.47.
|
|
32
|
+
"@dynamic-labs/assert-package-version": "4.47.2",
|
|
33
|
+
"@dynamic-labs/embedded-wallet-solana": "4.47.2",
|
|
34
|
+
"@dynamic-labs/logger": "4.47.2",
|
|
35
|
+
"@dynamic-labs/rpc-providers": "4.47.2",
|
|
36
|
+
"@dynamic-labs/sdk-api-core": "0.0.823",
|
|
37
|
+
"@dynamic-labs/solana-core": "4.47.2",
|
|
38
|
+
"@dynamic-labs/types": "4.47.2",
|
|
39
|
+
"@dynamic-labs/utils": "4.47.2",
|
|
40
|
+
"@dynamic-labs/waas-svm": "4.47.2",
|
|
41
|
+
"@dynamic-labs/wallet-book": "4.47.2",
|
|
42
|
+
"@dynamic-labs/wallet-connector-core": "4.47.2",
|
|
43
43
|
"eventemitter3": "5.0.1"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {}
|
|
@@ -156,13 +156,25 @@ class SolanaWalletConnectConnector extends solanaCore.SolanaWalletConnector {
|
|
|
156
156
|
});
|
|
157
157
|
});
|
|
158
158
|
}
|
|
159
|
+
static testOnly__reset() {
|
|
160
|
+
SolanaWalletConnectConnector.signClientPromise = undefined;
|
|
161
|
+
SolanaWalletConnectConnector.signClientReference = undefined;
|
|
162
|
+
SolanaWalletConnectConnector.sessionEventListeners = [];
|
|
163
|
+
}
|
|
159
164
|
init() {
|
|
160
165
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
166
|
+
var _a, _b, _c, _d;
|
|
161
167
|
if (this.isInitialized) {
|
|
162
168
|
return;
|
|
163
169
|
}
|
|
164
170
|
logger.logger.logVerboseTroubleshootingMessage('[SolanaWalletConnect] init called');
|
|
165
171
|
this.isInitialized = true;
|
|
172
|
+
// Check if WalletConnect is enabled in project settings
|
|
173
|
+
const isWalletConnectEnabled = (_d = (_c = (_b = (_a = this.constructorProps.settings) === null || _a === void 0 ? void 0 : _a.sdk) === null || _b === void 0 ? void 0 : _b.walletConnect) === null || _c === void 0 ? void 0 : _c.v2Enabled) !== null && _d !== void 0 ? _d : false;
|
|
174
|
+
if (!isWalletConnectEnabled) {
|
|
175
|
+
logger.logger.logVerboseTroubleshootingMessage('[SolanaWalletConnect] skipping init - WalletConnect is not enabled in project settings');
|
|
176
|
+
return;
|
|
177
|
+
}
|
|
166
178
|
if (SolanaWalletConnectConnector.signClientPromise) {
|
|
167
179
|
yield SolanaWalletConnectConnector.signClientPromise;
|
|
168
180
|
this.setupWCEventListeners();
|
|
@@ -57,6 +57,7 @@ export declare class SolanaWalletConnectConnector extends SolanaWalletConnector
|
|
|
57
57
|
appName: string;
|
|
58
58
|
projectId: string;
|
|
59
59
|
}): Promise<void>;
|
|
60
|
+
static testOnly__reset(): void;
|
|
60
61
|
init(): Promise<void>;
|
|
61
62
|
handleSessionEvent({ params: { event }, topic }: SessionEventArgs): void;
|
|
62
63
|
private setupWCEventListeners;
|
|
@@ -147,13 +147,25 @@ class SolanaWalletConnectConnector extends SolanaWalletConnector {
|
|
|
147
147
|
});
|
|
148
148
|
});
|
|
149
149
|
}
|
|
150
|
+
static testOnly__reset() {
|
|
151
|
+
SolanaWalletConnectConnector.signClientPromise = undefined;
|
|
152
|
+
SolanaWalletConnectConnector.signClientReference = undefined;
|
|
153
|
+
SolanaWalletConnectConnector.sessionEventListeners = [];
|
|
154
|
+
}
|
|
150
155
|
init() {
|
|
151
156
|
return __awaiter(this, void 0, void 0, function* () {
|
|
157
|
+
var _a, _b, _c, _d;
|
|
152
158
|
if (this.isInitialized) {
|
|
153
159
|
return;
|
|
154
160
|
}
|
|
155
161
|
logger.logVerboseTroubleshootingMessage('[SolanaWalletConnect] init called');
|
|
156
162
|
this.isInitialized = true;
|
|
163
|
+
// Check if WalletConnect is enabled in project settings
|
|
164
|
+
const isWalletConnectEnabled = (_d = (_c = (_b = (_a = this.constructorProps.settings) === null || _a === void 0 ? void 0 : _a.sdk) === null || _b === void 0 ? void 0 : _b.walletConnect) === null || _c === void 0 ? void 0 : _c.v2Enabled) !== null && _d !== void 0 ? _d : false;
|
|
165
|
+
if (!isWalletConnectEnabled) {
|
|
166
|
+
logger.logVerboseTroubleshootingMessage('[SolanaWalletConnect] skipping init - WalletConnect is not enabled in project settings');
|
|
167
|
+
return;
|
|
168
|
+
}
|
|
157
169
|
if (SolanaWalletConnectConnector.signClientPromise) {
|
|
158
170
|
yield SolanaWalletConnectConnector.signClientPromise;
|
|
159
171
|
this.setupWCEventListeners();
|