@dynamic-labs/stellar 4.87.2 → 4.88.0
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,16 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.88.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.87.2...v4.88.0) (2026-06-04)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* **waas:** log out on iframe 401 ([#11456](https://github.com/dynamic-labs/dynamic-auth/issues/11456)) ([81b0161](https://github.com/dynamic-labs/dynamic-auth/commit/81b01617810af8f7f996fdbf406e020b9f98272b))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* **starknet:** zero-pad addresses returned by wallet connectors ([#11303](https://github.com/dynamic-labs/dynamic-auth/issues/11303)) ([ef5cda5](https://github.com/dynamic-labs/dynamic-auth/commit/ef5cda5a9933443195b3bd336db8947c2ec050b7))
|
|
13
|
+
|
|
2
14
|
### [4.87.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.87.1...v4.87.2) (2026-06-03)
|
|
3
15
|
|
|
4
16
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/stellar",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.88.0",
|
|
4
4
|
"description": "A React SDK for implementing Stellar wallet web3 authentication and authorization to your website.",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,18 +18,18 @@
|
|
|
18
18
|
},
|
|
19
19
|
"homepage": "https://www.dynamic.xyz/",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@dynamic-labs-sdk/client": "1.
|
|
21
|
+
"@dynamic-labs-sdk/client": "1.7.0",
|
|
22
22
|
"@dynamic-labs/sdk-api-core": "0.0.1015",
|
|
23
23
|
"@stellar/stellar-sdk": "14.4.3",
|
|
24
|
-
"@dynamic-labs/wallet-connector-core": "4.
|
|
25
|
-
"@dynamic-labs/assert-package-version": "4.
|
|
24
|
+
"@dynamic-labs/wallet-connector-core": "4.88.0",
|
|
25
|
+
"@dynamic-labs/assert-package-version": "4.88.0",
|
|
26
26
|
"@lobstrco/signer-extension-api": "2.0.0",
|
|
27
27
|
"@stellar/freighter-api": "6.0.1",
|
|
28
|
-
"@dynamic-labs/logger": "4.
|
|
29
|
-
"@dynamic-labs/types": "4.
|
|
30
|
-
"@dynamic-labs/utils": "4.
|
|
31
|
-
"@dynamic-labs/waas": "4.
|
|
32
|
-
"@dynamic-labs/wallet-book": "4.
|
|
28
|
+
"@dynamic-labs/logger": "4.88.0",
|
|
29
|
+
"@dynamic-labs/types": "4.88.0",
|
|
30
|
+
"@dynamic-labs/utils": "4.88.0",
|
|
31
|
+
"@dynamic-labs/waas": "4.88.0",
|
|
32
|
+
"@dynamic-labs/wallet-book": "4.88.0",
|
|
33
33
|
"eventemitter3": "5.0.1"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {}
|
|
@@ -23,6 +23,7 @@ declare const DynamicWaasStellarConnector_base: (abstract new (...args: any[]) =
|
|
|
23
23
|
getElevatedAccessToken?: ((props: {
|
|
24
24
|
scope: TokenScope;
|
|
25
25
|
}) => Promise<string | undefined>) | undefined;
|
|
26
|
+
onUnauthorized?: (() => void | Promise<void>) | undefined;
|
|
26
27
|
environmentId?: string | undefined;
|
|
27
28
|
baseApiUrl?: string | undefined;
|
|
28
29
|
relayUrl?: string | undefined;
|
|
@@ -34,6 +35,7 @@ declare const DynamicWaasStellarConnector_base: (abstract new (...args: any[]) =
|
|
|
34
35
|
__exportHandler: import("@dynamic-labs/waas").WaasExportHandler;
|
|
35
36
|
validateActiveWallet(expectedAddress: string): Promise<void>;
|
|
36
37
|
setGetAuthTokenFunction(getAuthToken: () => string): void;
|
|
38
|
+
setOnUnauthorizedFunction(onUnauthorized: () => void | Promise<void>): void;
|
|
37
39
|
setWaasAuthMode(authMode: "cookie" | "header"): void;
|
|
38
40
|
setGetMfaTokenFunction(getMfaToken: (props?: {
|
|
39
41
|
mfaAction?: MFAAction | undefined;
|
|
@@ -44,7 +46,10 @@ declare const DynamicWaasStellarConnector_base: (abstract new (...args: any[]) =
|
|
|
44
46
|
setGetWalletPasswordFunction(getWalletPassword: import("@dynamic-labs/wallet-connector-core").GetWalletPasswordFn): void;
|
|
45
47
|
getPasswordIfNeeded({ accountAddress, }: {
|
|
46
48
|
accountAddress: string;
|
|
47
|
-
}): Promise<string | undefined>;
|
|
49
|
+
}): Promise<string | undefined>; /**
|
|
50
|
+
* Override setVerifiedCredentials to filter and set Stellar WaaS credentials
|
|
51
|
+
* Filters for credentials with walletName === 'dynamicwaas' and chain === 'stellar'
|
|
52
|
+
*/
|
|
48
53
|
getPassword({ accountAddress, }: {
|
|
49
54
|
accountAddress: string;
|
|
50
55
|
}): Promise<string | undefined>;
|
|
@@ -80,6 +85,12 @@ declare const DynamicWaasStellarConnector_base: (abstract new (...args: any[]) =
|
|
|
80
85
|
exportPrivateKey({ accountAddress, displayContainer, password, }?: {
|
|
81
86
|
accountAddress?: string | undefined;
|
|
82
87
|
displayContainer?: HTMLIFrameElement | undefined;
|
|
88
|
+
/**
|
|
89
|
+
* Validates that the expected wallet address matches the active wallet
|
|
90
|
+
* Updates the active account address if it doesn't match
|
|
91
|
+
* @param expectedAddress - The expected wallet address to validate
|
|
92
|
+
* @throws {DynamicError} If signed session ID is not available or account is not found
|
|
93
|
+
*/
|
|
83
94
|
password?: string | undefined;
|
|
84
95
|
} | undefined): Promise<void>;
|
|
85
96
|
getExportHandler(): {
|
|
@@ -119,7 +130,11 @@ declare const DynamicWaasStellarConnector_base: (abstract new (...args: any[]) =
|
|
|
119
130
|
revokeDelegation({ accountAddress, password, }: {
|
|
120
131
|
accountAddress: string;
|
|
121
132
|
password?: string | undefined;
|
|
122
|
-
}): Promise<void>;
|
|
133
|
+
}): Promise<void>; /**
|
|
134
|
+
* Gets the active wallet address
|
|
135
|
+
* Falls back to verified credential address if no active account is set
|
|
136
|
+
* @returns The wallet address or empty string if not found
|
|
137
|
+
*/
|
|
123
138
|
updatePassword({ accountAddress, existingPassword, newPassword, }: {
|
|
124
139
|
accountAddress: string;
|
|
125
140
|
existingPassword?: string | undefined;
|