@dynamic-labs/stellar 4.87.1 → 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,24 @@
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
+
14
+ ### [4.87.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.87.1...v4.87.2) (2026-06-03)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * allow for using v2 zerodev projects ([#11449](https://github.com/dynamic-labs/dynamic-auth/issues/11449)) ([9242698](https://github.com/dynamic-labs/dynamic-auth/commit/9242698670db92b03ad1afc776e674ec9a7e7e54))
20
+ * e2e: ensure MFA item is detached before logout ([#11452](https://github.com/dynamic-labs/dynamic-auth/issues/11452)) ([5a4c67e](https://github.com/dynamic-labs/dynamic-auth/commit/5a4c67e93b66a548346c1065fb373c675f0054a0))
21
+
2
22
  ### [4.87.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.87.0...v4.87.1) (2026-06-03)
3
23
 
4
24
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.87.1";
6
+ var version = "4.88.0";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.87.1";
2
+ var version = "4.88.0";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/stellar",
3
- "version": "4.87.1",
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.5.0",
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.87.1",
25
- "@dynamic-labs/assert-package-version": "4.87.1",
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.87.1",
29
- "@dynamic-labs/types": "4.87.1",
30
- "@dynamic-labs/utils": "4.87.1",
31
- "@dynamic-labs/waas": "4.87.1",
32
- "@dynamic-labs/wallet-book": "4.87.1",
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(): {
@@ -89,9 +100,10 @@ declare const DynamicWaasStellarConnector_base: (abstract new (...args: any[]) =
89
100
  accountAddress: string;
90
101
  password?: string | undefined;
91
102
  }): Promise<void>;
92
- backupKeySharesToGoogleDrive({ accountAddress, password, }: {
103
+ backupKeySharesToGoogleDrive({ accountAddress, password, googleDriveAccessToken, }: {
93
104
  accountAddress: string;
94
105
  password?: string | undefined;
106
+ googleDriveAccessToken?: string | undefined;
95
107
  }): Promise<void>;
96
108
  exportClientKeysharesFromGoogleDrive({ accountAddress, password, }: {
97
109
  accountAddress: string;
@@ -118,7 +130,11 @@ declare const DynamicWaasStellarConnector_base: (abstract new (...args: any[]) =
118
130
  revokeDelegation({ accountAddress, password, }: {
119
131
  accountAddress: string;
120
132
  password?: string | undefined;
121
- }): 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
+ */
122
138
  updatePassword({ accountAddress, existingPassword, newPassword, }: {
123
139
  accountAddress: string;
124
140
  existingPassword?: string | undefined;