@dynamic-labs/waas-sui 4.70.0 → 4.71.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,17 @@
1
1
 
2
+ ## [4.71.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.70.0...v4.71.0) (2026-03-24)
3
+
4
+
5
+ ### Features
6
+
7
+ * add Tempo chain connector and core type definitions ([#10672](https://github.com/dynamic-labs/dynamic-auth/issues/10672)) ([0439c15](https://github.com/dynamic-labs/dynamic-auth/commit/0439c153238359083b9f226dcd2ebf6d83e26519))
8
+ * add verifySocial method to demo site step-up auth methods ([#10721](https://github.com/dynamic-labs/dynamic-auth/issues/10721)) ([b9ef517](https://github.com/dynamic-labs/dynamic-auth/commit/b9ef5173df3e3ed08f718de49b036ea899dc1832))
9
+ * **demo:** add Tempo chain support to demo app ([#10674](https://github.com/dynamic-labs/dynamic-auth/issues/10674)) ([a5918fc](https://github.com/dynamic-labs/dynamic-auth/commit/a5918fc2ab0821e7f025aa470573129f71de33cc))
10
+ * repurpose verifyWithExternalJwt for elevated access token requests ([#10743](https://github.com/dynamic-labs/dynamic-auth/issues/10743)) ([d1abda0](https://github.com/dynamic-labs/dynamic-auth/commit/d1abda0111d68c78226d30bd0630e6e341dedad9))
11
+ * **sdk:** add Tempo chain support to UI components ([#10673](https://github.com/dynamic-labs/dynamic-auth/issues/10673)) ([aec9fbb](https://github.com/dynamic-labs/dynamic-auth/commit/aec9fbb20754a2935bffe106e7e8715f46be3de7))
12
+ * support multi-chain wallet creation in createWallet ([#10694](https://github.com/dynamic-labs/dynamic-auth/issues/10694)) ([0b6b57f](https://github.com/dynamic-labs/dynamic-auth/commit/0b6b57f4179c35d1f86d1c8c9c40f52cb307c849))
13
+ * wire up elevatedAccessToken for sign, reshare, and refresh operations ([#10737](https://github.com/dynamic-labs/dynamic-auth/issues/10737)) ([f9d5c76](https://github.com/dynamic-labs/dynamic-auth/commit/f9d5c768037aff4f5d7994b6bc6c338621a6ee6b))
14
+
2
15
  ## [4.70.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.69.0...v4.70.0) (2026-03-23)
3
16
 
4
17
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.70.0";
6
+ var version = "4.71.0";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.70.0";
2
+ var version = "4.71.0";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/waas-sui",
3
- "version": "4.70.0",
3
+ "version": "4.71.0",
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",
@@ -19,18 +19,18 @@
19
19
  "homepage": "https://www.dynamic.xyz/",
20
20
  "dependencies": {
21
21
  "@dynamic-labs/sdk-api-core": "0.0.909",
22
- "@dynamic-labs-wallet/browser-wallet-client": "0.0.309",
22
+ "@dynamic-labs-wallet/browser-wallet-client": "0.0.314",
23
23
  "@mysten/sui": "1.45.2",
24
24
  "@mysten/wallet-standard": "0.19.9",
25
- "@dynamic-labs/assert-package-version": "4.70.0",
26
- "@dynamic-labs/logger": "4.70.0",
27
- "@dynamic-labs/rpc-providers": "4.70.0",
28
- "@dynamic-labs/sui-core": "4.70.0",
29
- "@dynamic-labs/types": "4.70.0",
30
- "@dynamic-labs/utils": "4.70.0",
31
- "@dynamic-labs/waas": "4.70.0",
32
- "@dynamic-labs/wallet-book": "4.70.0",
33
- "@dynamic-labs/wallet-connector-core": "4.70.0"
25
+ "@dynamic-labs/assert-package-version": "4.71.0",
26
+ "@dynamic-labs/logger": "4.71.0",
27
+ "@dynamic-labs/rpc-providers": "4.71.0",
28
+ "@dynamic-labs/sui-core": "4.71.0",
29
+ "@dynamic-labs/types": "4.71.0",
30
+ "@dynamic-labs/utils": "4.71.0",
31
+ "@dynamic-labs/waas": "4.71.0",
32
+ "@dynamic-labs/wallet-book": "4.71.0",
33
+ "@dynamic-labs/wallet-connector-core": "4.71.0"
34
34
  },
35
35
  "peerDependencies": {}
36
36
  }
@@ -125,7 +125,7 @@ class DynamicWaasSuiConnector extends waas.withDynamicWaas(suiCore.SuiWalletConn
125
125
  }
126
126
  signMessage(message) {
127
127
  return _tslib.__awaiter(this, void 0, void 0, function* () {
128
- var _a, _b, _c;
128
+ var _a, _b, _c, _d;
129
129
  const waasSuiClient = yield this.getWaasWalletClient();
130
130
  if (!this.activeAccountAddress) {
131
131
  throw new Error('Active account address is required');
@@ -137,12 +137,16 @@ class DynamicWaasSuiConnector extends waas.withDynamicWaas(suiCore.SuiWalletConn
137
137
  const mfaToken = yield ((_b = this.getMfaToken) === null || _b === void 0 ? void 0 : _b.call(this, {
138
138
  mfaAction: sdkApiCore.MFAAction.WalletWaasSign,
139
139
  }));
140
+ const elevatedAccessToken = yield ((_c = this.getElevatedAccessToken) === null || _c === void 0 ? void 0 : _c.call(this, {
141
+ scope: sdkApiCore.TokenScope.Walletsign,
142
+ }));
140
143
  const password = yield this.getPasswordIfNeeded({
141
144
  accountAddress: this.activeAccountAddress,
142
145
  });
143
146
  const signedMessage = yield waasSuiClient.signMessage({
144
147
  accountAddress: this.activeAccountAddress,
145
- authToken: (_c = this.getAuthToken) === null || _c === void 0 ? void 0 : _c.call(this),
148
+ authToken: (_d = this.getAuthToken) === null || _d === void 0 ? void 0 : _d.call(this),
149
+ elevatedAccessToken,
146
150
  message,
147
151
  mfaToken,
148
152
  password,
@@ -153,7 +157,7 @@ class DynamicWaasSuiConnector extends waas.withDynamicWaas(suiCore.SuiWalletConn
153
157
  }
154
158
  createAndSignTransaction(transaction) {
155
159
  return _tslib.__awaiter(this, void 0, void 0, function* () {
156
- var _a, _b, _c;
160
+ var _a, _b, _c, _d;
157
161
  const networkName = yield this.getNetworkName();
158
162
  const client$1 = new client.SuiClient({ url: client.getFullnodeUrl(networkName) });
159
163
  const txBytes = yield transaction.build({ client: client$1 });
@@ -169,11 +173,15 @@ class DynamicWaasSuiConnector extends waas.withDynamicWaas(suiCore.SuiWalletConn
169
173
  const mfaToken = yield ((_b = this.getMfaToken) === null || _b === void 0 ? void 0 : _b.call(this, {
170
174
  mfaAction: sdkApiCore.MFAAction.WalletWaasSign,
171
175
  }));
176
+ const elevatedAccessToken = yield ((_c = this.getElevatedAccessToken) === null || _c === void 0 ? void 0 : _c.call(this, {
177
+ scope: sdkApiCore.TokenScope.Walletsign,
178
+ }));
172
179
  const password = yield this.getPasswordIfNeeded({
173
180
  accountAddress: this.activeAccountAddress,
174
181
  });
175
182
  const signedTx = yield walletClient.signTransaction({
176
- authToken: (_c = this.getAuthToken) === null || _c === void 0 ? void 0 : _c.call(this),
183
+ authToken: (_d = this.getAuthToken) === null || _d === void 0 ? void 0 : _d.call(this),
184
+ elevatedAccessToken,
177
185
  mfaToken,
178
186
  password,
179
187
  senderAddress: this.activeAccountAddress,
@@ -2,7 +2,7 @@ import { DynamicWalletClient } from '@dynamic-labs-wallet/browser-wallet-client'
2
2
  import { SuiClient, SuiTransactionBlockResponse } from '@mysten/sui/client';
3
3
  import { Transaction } from '@mysten/sui/transactions';
4
4
  import { SignedTransaction } from '@mysten/wallet-standard';
5
- import { MFAAction } from '@dynamic-labs/sdk-api-core';
5
+ import { MFAAction, TokenScope } from '@dynamic-labs/sdk-api-core';
6
6
  import { SuiWalletConnector, SuiWalletConnectorProps } from '@dynamic-labs/sui-core';
7
7
  import { IUITransaction } from '@dynamic-labs/types';
8
8
  import { IDynamicWaasConnector } from '@dynamic-labs/wallet-connector-core';
@@ -19,7 +19,7 @@ declare const DynamicWaasSuiConnector_base: (abstract new (...args: any[]) => {
19
19
  getWalletPassword?: import("@dynamic-labs/wallet-connector-core").GetWalletPasswordFn | undefined;
20
20
  getAuthToken?: (() => string) | undefined;
21
21
  getElevatedAccessToken?: ((props: {
22
- scope: import("@dynamic-labs/sdk-api-core").TokenScope;
22
+ scope: TokenScope;
23
23
  }) => Promise<string | undefined>) | undefined;
24
24
  environmentId?: string | undefined;
25
25
  baseApiUrl?: string | undefined;
@@ -37,7 +37,7 @@ declare const DynamicWaasSuiConnector_base: (abstract new (...args: any[]) => {
37
37
  mfaAction?: MFAAction | undefined;
38
38
  } | undefined) => Promise<string | undefined>): void;
39
39
  setGetElevatedAccessTokenFunction(getElevatedAccessToken: (params: {
40
- scope: import("@dynamic-labs/sdk-api-core").TokenScope;
40
+ scope: TokenScope;
41
41
  }) => Promise<string | undefined>): void;
42
42
  setGetWalletPasswordFunction(getWalletPassword: import("@dynamic-labs/wallet-connector-core").GetWalletPasswordFn): void;
43
43
  getPasswordIfNeeded({ accountAddress, }: {
@@ -1,7 +1,7 @@
1
1
  'use client'
2
2
  import { __awaiter } from '../../_virtual/_tslib.js';
3
3
  import { SuiClient, getFullnodeUrl } from '@mysten/sui/client';
4
- import { MFAAction } from '@dynamic-labs/sdk-api-core';
4
+ import { MFAAction, TokenScope } from '@dynamic-labs/sdk-api-core';
5
5
  import { SuiWalletConnector, SuiUiTransaction } from '@dynamic-labs/sui-core';
6
6
  import { DynamicError } from '@dynamic-labs/utils';
7
7
  import { withDynamicWaas } from '@dynamic-labs/waas';
@@ -121,7 +121,7 @@ class DynamicWaasSuiConnector extends withDynamicWaas(SuiWalletConnector) {
121
121
  }
122
122
  signMessage(message) {
123
123
  return __awaiter(this, void 0, void 0, function* () {
124
- var _a, _b, _c;
124
+ var _a, _b, _c, _d;
125
125
  const waasSuiClient = yield this.getWaasWalletClient();
126
126
  if (!this.activeAccountAddress) {
127
127
  throw new Error('Active account address is required');
@@ -133,12 +133,16 @@ class DynamicWaasSuiConnector extends withDynamicWaas(SuiWalletConnector) {
133
133
  const mfaToken = yield ((_b = this.getMfaToken) === null || _b === void 0 ? void 0 : _b.call(this, {
134
134
  mfaAction: MFAAction.WalletWaasSign,
135
135
  }));
136
+ const elevatedAccessToken = yield ((_c = this.getElevatedAccessToken) === null || _c === void 0 ? void 0 : _c.call(this, {
137
+ scope: TokenScope.Walletsign,
138
+ }));
136
139
  const password = yield this.getPasswordIfNeeded({
137
140
  accountAddress: this.activeAccountAddress,
138
141
  });
139
142
  const signedMessage = yield waasSuiClient.signMessage({
140
143
  accountAddress: this.activeAccountAddress,
141
- authToken: (_c = this.getAuthToken) === null || _c === void 0 ? void 0 : _c.call(this),
144
+ authToken: (_d = this.getAuthToken) === null || _d === void 0 ? void 0 : _d.call(this),
145
+ elevatedAccessToken,
142
146
  message,
143
147
  mfaToken,
144
148
  password,
@@ -149,7 +153,7 @@ class DynamicWaasSuiConnector extends withDynamicWaas(SuiWalletConnector) {
149
153
  }
150
154
  createAndSignTransaction(transaction) {
151
155
  return __awaiter(this, void 0, void 0, function* () {
152
- var _a, _b, _c;
156
+ var _a, _b, _c, _d;
153
157
  const networkName = yield this.getNetworkName();
154
158
  const client = new SuiClient({ url: getFullnodeUrl(networkName) });
155
159
  const txBytes = yield transaction.build({ client });
@@ -165,11 +169,15 @@ class DynamicWaasSuiConnector extends withDynamicWaas(SuiWalletConnector) {
165
169
  const mfaToken = yield ((_b = this.getMfaToken) === null || _b === void 0 ? void 0 : _b.call(this, {
166
170
  mfaAction: MFAAction.WalletWaasSign,
167
171
  }));
172
+ const elevatedAccessToken = yield ((_c = this.getElevatedAccessToken) === null || _c === void 0 ? void 0 : _c.call(this, {
173
+ scope: TokenScope.Walletsign,
174
+ }));
168
175
  const password = yield this.getPasswordIfNeeded({
169
176
  accountAddress: this.activeAccountAddress,
170
177
  });
171
178
  const signedTx = yield walletClient.signTransaction({
172
- authToken: (_c = this.getAuthToken) === null || _c === void 0 ? void 0 : _c.call(this),
179
+ authToken: (_d = this.getAuthToken) === null || _d === void 0 ? void 0 : _d.call(this),
180
+ elevatedAccessToken,
173
181
  mfaToken,
174
182
  password,
175
183
  senderAddress: this.activeAccountAddress,