@dynamic-labs/webview-messages 5.19.0 → 5.20.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,18 @@
1
1
 
2
+ ## [5.20.0](https://github.com/dynamic-labs/dynamic-auth/compare/v5.19.0...v5.20.0) (2026-11-20)
3
+
4
+
5
+ ### Features
6
+
7
+ * **webview:** add Tron connectors (WaaS + external) to the webview controller ([#12548](https://github.com/dynamic-labs/dynamic-auth/issues/12548)) ([526e2e0](https://github.com/dynamic-labs/dynamic-auth/commit/526e2e098a2290979897c7b6694c898d3dda78c4))
8
+ * **webview:** add Tron support to the webview bridge ([#12547](https://github.com/dynamic-labs/dynamic-auth/issues/12547)) ([8e1c25b](https://github.com/dynamic-labs/dynamic-auth/commit/8e1c25b9b438b5e0b5c3906b5a5b6af42a358a81))
9
+ * **webview:** reveal a named wallet's key from the native SDKs ([#12819](https://github.com/dynamic-labs/dynamic-auth/issues/12819)) ([ddd552e](https://github.com/dynamic-labs/dynamic-auth/commit/ddd552e6af5180657ddaca3c1c6bcb1291e0a594))
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * **sdk-react-core:** emit embeddedWalletRevealFailed instead of throwing in EmbeddedRevealView ([#12820](https://github.com/dynamic-labs/dynamic-auth/issues/12820)) ([b9d8804](https://github.com/dynamic-labs/dynamic-auth/commit/b9d8804f318ba1de9664e85b3c05175be24f186b))
15
+
2
16
  ## [5.19.0](https://github.com/dynamic-labs/dynamic-auth/compare/v5.18.0...v5.19.0) (2026-11-18)
3
17
 
4
18
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "5.19.0";
6
+ var version = "5.20.0";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "5.19.0";
2
+ var version = "5.20.0";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/webview-messages",
3
- "version": "5.19.0",
3
+ "version": "5.20.0",
4
4
  "description": "A package to define messages for the webview-controller",
5
5
  "author": "Dynamic Labs, Inc.",
6
6
  "license": "MIT",
@@ -18,17 +18,17 @@
18
18
  "./package.json": "./package.json"
19
19
  },
20
20
  "dependencies": {
21
- "@dynamic-labs/ethereum-gasless-core": "5.19.0",
22
- "@dynamic-labs/sdk-api-core": "0.160.0",
23
- "@dynamic-labs-sdk/client": "1.51.0",
24
- "@dynamic-labs-wallet/core": "1.1.57",
25
- "@dynamic-labs/assert-package-version": "5.19.0",
26
- "@dynamic-labs/locale": "5.19.0",
27
- "@dynamic-labs/logger": "5.19.0",
28
- "@dynamic-labs/message-transport": "5.19.0",
29
- "@dynamic-labs/types": "5.19.0",
30
- "@dynamic-labs/wallet-connector-core": "5.19.0",
31
- "@dynamic-labs/webauthn": "5.19.0"
21
+ "@dynamic-labs/ethereum-gasless-core": "5.20.0",
22
+ "@dynamic-labs/sdk-api-core": "0.181.0",
23
+ "@dynamic-labs-sdk/client": "1.53.0",
24
+ "@dynamic-labs-wallet/core": "1.1.71",
25
+ "@dynamic-labs/assert-package-version": "5.20.0",
26
+ "@dynamic-labs/locale": "5.20.0",
27
+ "@dynamic-labs/logger": "5.20.0",
28
+ "@dynamic-labs/message-transport": "5.20.0",
29
+ "@dynamic-labs/types": "5.20.0",
30
+ "@dynamic-labs/wallet-connector-core": "5.20.0",
31
+ "@dynamic-labs/webauthn": "5.20.0"
32
32
  },
33
33
  "peerDependencies": {}
34
34
  }
package/src/index.d.ts CHANGED
@@ -25,6 +25,7 @@ export * from './lib/StepUpAuthMessages';
25
25
  export * from './lib/StorageMessages';
26
26
  export * from './lib/SuiMessages';
27
27
  export * from './lib/TonMessages';
28
+ export * from './lib/TronMessages';
28
29
  export * from './lib/TurnkeyIframeEventProxyMessages';
29
30
  export * from './lib/TurnkeyPasskeyMessages';
30
31
  export * from './lib/UserInterfaceModuleMessages';
@@ -0,0 +1,35 @@
1
+ import type { ApprovalQuorumRequestContext } from '@dynamic-labs-wallet/core';
2
+ /**
3
+ * Messages exchanged for Tron requests.
4
+ */
5
+ export type TronMessages = {
6
+ tron_signMessage: (arg: {
7
+ walletId: string;
8
+ message: string;
9
+ approvalQuorum?: ApprovalQuorumRequestContext;
10
+ }) => Promise<{
11
+ signature: string;
12
+ }>;
13
+ tron_sendBalance: (arg: {
14
+ walletId: string;
15
+ toAddress: string;
16
+ amount: string;
17
+ /** TRC20 token contract address. Omit for native TRX */
18
+ tokenAddress?: string;
19
+ tokenDecimals?: number;
20
+ approvalQuorum?: ApprovalQuorumRequestContext;
21
+ }) => Promise<{
22
+ hash: string;
23
+ }>;
24
+ tron_getBalance: (arg: {
25
+ walletId: string;
26
+ }) => Promise<{
27
+ balance: string;
28
+ }>;
29
+ tron_getNetworkDetails: (arg: {
30
+ walletId: string;
31
+ }) => Promise<{
32
+ chainId: string;
33
+ name: string;
34
+ }>;
35
+ };
@@ -17,6 +17,11 @@ export type UserInterfaceModuleMessages = {
17
17
  /** Opens the secret key export for embedded wallets */
18
18
  revealEmbeddedWalletKey: (params: {
19
19
  type: 'recovery-phrase' | 'private-key';
20
+ /**
21
+ * The wallet to reveal. Left out, the primary wallet is revealed. A
22
+ * business-account wallet can never be the primary, so it needs this.
23
+ */
24
+ walletId?: string;
20
25
  }) => void;
21
26
  /** Opens the user update modal with specified fields */
22
27
  updateUserWithModal: (params: UpdateUserWithModalParams) => Promise<UserFields>;