@dynamic-labs/webview-messages 5.19.0 → 5.21.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,31 @@
1
1
 
2
+ ## [5.21.0](https://github.com/dynamic-labs/dynamic-auth/compare/v5.20.0...v5.21.0) (2026-11-26)
3
+
4
+
5
+ ### Features
6
+
7
+ * **sdk-react-core:** export hasElevatedAccessToken ([#12835](https://github.com/dynamic-labs/dynamic-auth/issues/12835)) ([671c52f](https://github.com/dynamic-labs/dynamic-auth/commit/671c52f8f2d7c715de30c2b6daa714f293b947bc))
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * **aleo:** pin [@provablehq](https://github.com/provablehq) packages to matching 1.0.0 set ([#12445](https://github.com/dynamic-labs/dynamic-auth/issues/12445)) ([ad73fb3](https://github.com/dynamic-labs/dynamic-auth/commit/ad73fb33a1ed911bb3f629861499c2f87c7a13f4))
13
+ * **sdk-react-core:** match wallet connectors by name with the chain suffix ([#12836](https://github.com/dynamic-labs/dynamic-auth/issues/12836)) ([9366ab7](https://github.com/dynamic-labs/dynamic-auth/commit/9366ab7d25f2e7bd501073d96c44b1244faf2b4c))
14
+
15
+ ## [5.20.0](https://github.com/dynamic-labs/dynamic-auth/compare/v5.19.0...v5.20.0) (2026-11-20)
16
+
17
+
18
+ ### Features
19
+
20
+ * **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))
21
+ * **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))
22
+ * **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))
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * **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))
28
+
2
29
  ## [5.19.0](https://github.com/dynamic-labs/dynamic-auth/compare/v5.18.0...v5.19.0) (2026-11-18)
3
30
 
4
31
 
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.21.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.21.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.21.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.21.0",
22
+ "@dynamic-labs/sdk-api-core": "0.187.0",
23
+ "@dynamic-labs-sdk/client": "1.55.0",
24
+ "@dynamic-labs-wallet/core": "1.1.78",
25
+ "@dynamic-labs/assert-package-version": "5.21.0",
26
+ "@dynamic-labs/locale": "5.21.0",
27
+ "@dynamic-labs/logger": "5.21.0",
28
+ "@dynamic-labs/message-transport": "5.21.0",
29
+ "@dynamic-labs/types": "5.21.0",
30
+ "@dynamic-labs/wallet-connector-core": "5.21.0",
31
+ "@dynamic-labs/webauthn": "5.21.0"
32
32
  },
33
33
  "peerDependencies": {}
34
34
  }
package/src/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from './lib/AccountAbstractionMessages';
2
+ export * from './lib/AleoMessages';
2
3
  export * from './lib/AuthModuleMessages';
3
4
  export * from './lib/BitcoinMessages';
4
5
  export * from './lib/BusinessAccountsMessages';
@@ -12,6 +13,7 @@ export * from './lib/FetchMessages';
12
13
  export * from './lib/GlobalWalletModuleMessages';
13
14
  export * from './lib/LocaleModuleMessages';
14
15
  export * from './lib/MfaMessages';
16
+ export * from './lib/MidnightMessages';
15
17
  export * from './lib/NetworksModuleMessages';
16
18
  export * from './lib/OtpMessages';
17
19
  export * from './lib/PasskeyMessages';
@@ -24,7 +26,9 @@ export * from './lib/StellarMessages';
24
26
  export * from './lib/StepUpAuthMessages';
25
27
  export * from './lib/StorageMessages';
26
28
  export * from './lib/SuiMessages';
29
+ export * from './lib/TempoMessages';
27
30
  export * from './lib/TonMessages';
31
+ export * from './lib/TronMessages';
28
32
  export * from './lib/TurnkeyIframeEventProxyMessages';
29
33
  export * from './lib/TurnkeyPasskeyMessages';
30
34
  export * from './lib/UserInterfaceModuleMessages';
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Messages exchanged for Aleo requests.
3
+ */
4
+ export type AleoMessages = {
5
+ aleo_signMessage: (arg: {
6
+ walletId: string;
7
+ message: string;
8
+ }) => Promise<{
9
+ signature: string;
10
+ }>;
11
+ aleo_sendBalance: (arg: {
12
+ walletId: string;
13
+ toAddress: string;
14
+ amount: string;
15
+ /** Token contract address. Omit for native credits */
16
+ tokenAddress?: string;
17
+ tokenDecimals?: number;
18
+ /** 'individual' consumes a private record; 'exchange' settles publicly */
19
+ mode?: 'exchange' | 'individual';
20
+ }) => Promise<{
21
+ hash: string;
22
+ }>;
23
+ aleo_getBalance: (arg: {
24
+ walletId: string;
25
+ }) => Promise<{
26
+ balance: string;
27
+ }>;
28
+ aleo_getNetwork: (arg: {
29
+ walletId: string;
30
+ }) => Promise<{
31
+ network: string;
32
+ }>;
33
+ };
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Messages exchanged for Midnight requests.
3
+ */
4
+ export type MidnightMessages = {
5
+ midnight_signMessage: (arg: {
6
+ walletId: string;
7
+ message: string;
8
+ }) => Promise<{
9
+ signature: string;
10
+ }>;
11
+ midnight_sendBalance: (arg: {
12
+ walletId: string;
13
+ toAddress: string;
14
+ amount: string;
15
+ /** Token type. Omit for the native token */
16
+ tokenAddress?: string;
17
+ tokenDecimals?: number;
18
+ }) => Promise<{
19
+ hash: string;
20
+ }>;
21
+ midnight_getBalance: (arg: {
22
+ walletId: string;
23
+ }) => Promise<{
24
+ balance: string;
25
+ }>;
26
+ midnight_getNetwork: (arg: {
27
+ walletId: string;
28
+ }) => Promise<{
29
+ network: string | number;
30
+ }>;
31
+ };
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Messages exchanged for Tempo requests.
3
+ */
4
+ export type TempoMessages = {
5
+ tempo_signMessage: (arg: {
6
+ walletId: string;
7
+ message: string;
8
+ }) => Promise<{
9
+ signature: string;
10
+ }>;
11
+ tempo_sendBalance: (arg: {
12
+ walletId: string;
13
+ toAddress: string;
14
+ amount: string;
15
+ /** TIP-20 token contract address. Tempo has no native token */
16
+ tokenAddress: string;
17
+ /** Defaults to 6 (TIP-20) */
18
+ tokenDecimals?: number;
19
+ }) => Promise<{
20
+ hash: string;
21
+ }>;
22
+ tempo_getBalance: (arg: {
23
+ walletId: string;
24
+ /** TIP-20 token contract address. Omit for the native balance (always 0) */
25
+ tokenAddress?: string;
26
+ /** Defaults to 6 (TIP-20) */
27
+ tokenDecimals?: number;
28
+ }) => Promise<{
29
+ balance: string;
30
+ }>;
31
+ tempo_getNetwork: (arg: {
32
+ walletId: string;
33
+ }) => Promise<{
34
+ network: string | number;
35
+ }>;
36
+ };
@@ -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>;