@dynamic-labs/webview-messages 4.83.1 → 4.84.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,40 @@
1
1
 
2
+ ## [4.84.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.83.2-alpha.0...v4.84.0) (2026-05-22)
3
+
4
+
5
+ ### Features
6
+
7
+ * **ethereum-gasless:** add @dynamic-labs/ethereum-gasless-{core,extension} and webview controller ([#11267](https://github.com/dynamic-labs/dynamic-auth/issues/11267)) ([edac5df](https://github.com/dynamic-labs/dynamic-auth/commit/edac5df8180483093f69caee508cbdebf2e4e663)), closes [#11274](https://github.com/dynamic-labs/dynamic-auth/issues/11274) [#11274](https://github.com/dynamic-labs/dynamic-auth/issues/11274) [#11274](https://github.com/dynamic-labs/dynamic-auth/issues/11274)
8
+ * **mobile-demo:** add EVM gasless screens for 7702 delegation and sponsored transactions ([#11274](https://github.com/dynamic-labs/dynamic-auth/issues/11274)) ([2961b8f](https://github.com/dynamic-labs/dynamic-auth/commit/2961b8f732ef3a172fcf0e814db3b74961015edf)), closes [#11267](https://github.com/dynamic-labs/dynamic-auth/issues/11267) [#11267](https://github.com/dynamic-labs/dynamic-auth/issues/11267) [#11267](https://github.com/dynamic-labs/dynamic-auth/issues/11267)
9
+ * **mobile-demo:** wire Maestro Cloud E2E for iOS smoke flow ([#11144](https://github.com/dynamic-labs/dynamic-auth/issues/11144)) ([d25b694](https://github.com/dynamic-labs/dynamic-auth/commit/d25b694017277fbe97fc13e21f82201350551862))
10
+ * **starknet:** rename Argent X to Ready X, remove Ready Mobile ([#11299](https://github.com/dynamic-labs/dynamic-auth/issues/11299)) ([addc5dd](https://github.com/dynamic-labs/dynamic-auth/commit/addc5dd9f18310c474dd7ad3ff15c9ab1b652136))
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * **playwright:** unflake allow/block on 4201/4202 (domain-access-control) DYNT-777 ([#11118](https://github.com/dynamic-labs/dynamic-auth/issues/11118)) ([86e0d72](https://github.com/dynamic-labs/dynamic-auth/commit/86e0d72b7d094f25ce9efd2173cd478b93eb8393)), closes [#11119](https://github.com/dynamic-labs/dynamic-auth/issues/11119)
16
+ * **playwright:** unflake demo-v2 phantom flows (tolerate get-started splash skip) ([#11185](https://github.com/dynamic-labs/dynamic-auth/issues/11185)) ([b648d39](https://github.com/dynamic-labs/dynamic-auth/commit/b648d39c11580b5fbedb5a6972c174a42aa13326))
17
+ * **sdk-react-core:** prevent duplicate deviceRegistration calls and stale list refetch after self-revoke ([#11298](https://github.com/dynamic-labs/dynamic-auth/issues/11298)) ([8ae5180](https://github.com/dynamic-labs/dynamic-auth/commit/8ae51803517bcde9503a20c290e82f3068dfda66))
18
+ * **wallet-book:** correct sprite IDs for bitgetwallet and coin98 wallet groups ([#11291](https://github.com/dynamic-labs/dynamic-auth/issues/11291)) ([d56763c](https://github.com/dynamic-labs/dynamic-auth/commit/d56763c741a93c279c8dd9e548ab7d5ab14cd30d))
19
+
20
+ ### [4.83.2-alpha.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.83.1...v4.83.2-alpha.0) (2026-05-18)
21
+
22
+
23
+ ### Features
24
+
25
+ * **ci:** add structured DD event reporting on RWX CI failure ([#11231](https://github.com/dynamic-labs/dynamic-auth/issues/11231)) ([2a6e19f](https://github.com/dynamic-labs/dynamic-auth/commit/2a6e19f5746bed28993b73c9dc43656ef9c8b75e)), closes [dynamic-labs/pw-configs#30](https://github.com/dynamic-labs/pw-configs/issues/30) [pw-configs#30](https://github.com/dynamic-labs/pw-configs/issues/30) [pw-configs#30](https://github.com/dynamic-labs/pw-configs/issues/30)
26
+ * **playwright:** support local e2e + document workflow + .env.example ([#11230](https://github.com/dynamic-labs/dynamic-auth/issues/11230)) ([492cc5c](https://github.com/dynamic-labs/dynamic-auth/commit/492cc5ce6b5f9241ac670ebf140d1c2dce66dd58))
27
+
28
+
29
+ ### Bug Fixes
30
+
31
+ * **aleo:** dedup concurrent shieldToken calls + hide manual CTA during auto-shield ([#11264](https://github.com/dynamic-labs/dynamic-auth/issues/11264)) ([f466373](https://github.com/dynamic-labs/dynamic-auth/commit/f4663732d50cc3e617c15d41c5131a6f84ee44d5)), closes [#3](https://github.com/dynamic-labs/dynamic-auth/issues/3) [#11263](https://github.com/dynamic-labs/dynamic-auth/issues/11263)
32
+ * **aleo:** render real brand logos on the shielded balance tab ([#11270](https://github.com/dynamic-labs/dynamic-auth/issues/11270)) ([0482fb7](https://github.com/dynamic-labs/dynamic-auth/commit/0482fb7134ee85677e4e48d1cb1e323073703f92))
33
+ * **aleo:** reuse pollOnShielded backoff for the manual shield refresh ([#11265](https://github.com/dynamic-labs/dynamic-auth/issues/11265)) ([4956798](https://github.com/dynamic-labs/dynamic-auth/commit/4956798bfd455caef2844dd1a1db1af3bb6d7daf)), closes [#11264](https://github.com/dynamic-labs/dynamic-auth/issues/11264) [#11263](https://github.com/dynamic-labs/dynamic-auth/issues/11263)
34
+ * **ci:** drop doubled-playwright prefix from in-task dd reporter paths ([#11261](https://github.com/dynamic-labs/dynamic-auth/issues/11261)) ([459693d](https://github.com/dynamic-labs/dynamic-auth/commit/459693d74b73d534ed96ef6afdc5de930e2da9de)), closes [#11255](https://github.com/dynamic-labs/dynamic-auth/issues/11255) [#11255](https://github.com/dynamic-labs/dynamic-auth/issues/11255) [post-#11255](https://github.com/dynamic-labs/post-/issues/11255) [#11251](https://github.com/dynamic-labs/dynamic-auth/issues/11251) [#11231](https://github.com/dynamic-labs/dynamic-auth/issues/11231) [#11251](https://github.com/dynamic-labs/dynamic-auth/issues/11251) [#11231](https://github.com/dynamic-labs/dynamic-auth/issues/11231) [#11255](https://github.com/dynamic-labs/dynamic-auth/issues/11255) [#11251](https://github.com/dynamic-labs/dynamic-auth/issues/11251)
35
+ * **ci:** pass captain log by path so dd reporter dodges ARG_MAX ([#11255](https://github.com/dynamic-labs/dynamic-auth/issues/11255)) ([43dfad0](https://github.com/dynamic-labs/dynamic-auth/commit/43dfad0fda0fdd487a246315d9c6e2be6d61edb1)), closes [#11251](https://github.com/dynamic-labs/dynamic-auth/issues/11251)
36
+ * **widget:** theme TransactionMode segmented control for dark mode ([#11269](https://github.com/dynamic-labs/dynamic-auth/issues/11269)) ([21d6da2](https://github.com/dynamic-labs/dynamic-auth/commit/21d6da2b3edc8b3107c396ac7631b1dcb477533f)), closes [#e5e7](https://github.com/dynamic-labs/dynamic-auth/issues/e5e7) [#cbd5e1](https://github.com/dynamic-labs/dynamic-auth/issues/cbd5e1) [#f9](https://github.com/dynamic-labs/dynamic-auth/issues/f9)
37
+
2
38
  ### [4.83.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.83.0...v4.83.1) (2026-05-14)
3
39
 
4
40
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.83.1";
6
+ var version = "4.84.0";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.83.1";
2
+ var version = "4.84.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": "4.83.1",
3
+ "version": "4.84.0",
4
4
  "description": "A package to define messages for the webview-controller",
5
5
  "author": "Dynamic Labs, Inc.",
6
6
  "license": "MIT",
@@ -18,15 +18,16 @@
18
18
  "./package.json": "./package.json"
19
19
  },
20
20
  "dependencies": {
21
- "@dynamic-labs/sdk-api-core": "0.0.964",
22
- "@dynamic-labs-sdk/client": "0.26.9",
23
- "@dynamic-labs/assert-package-version": "4.83.1",
24
- "@dynamic-labs/locale": "4.83.1",
25
- "@dynamic-labs/logger": "4.83.1",
26
- "@dynamic-labs/message-transport": "4.83.1",
27
- "@dynamic-labs/types": "4.83.1",
28
- "@dynamic-labs/wallet-connector-core": "4.83.1",
29
- "@dynamic-labs/webauthn": "4.83.1"
21
+ "@dynamic-labs/ethereum-gasless-core": "4.84.0",
22
+ "@dynamic-labs/sdk-api-core": "0.0.985",
23
+ "@dynamic-labs-sdk/client": "1.1.0",
24
+ "@dynamic-labs/assert-package-version": "4.84.0",
25
+ "@dynamic-labs/locale": "4.84.0",
26
+ "@dynamic-labs/logger": "4.84.0",
27
+ "@dynamic-labs/message-transport": "4.84.0",
28
+ "@dynamic-labs/types": "4.84.0",
29
+ "@dynamic-labs/wallet-connector-core": "4.84.0",
30
+ "@dynamic-labs/webauthn": "4.84.0"
30
31
  },
31
32
  "peerDependencies": {}
32
33
  }
package/src/index.d.ts CHANGED
@@ -3,6 +3,7 @@ export * from './lib/AuthModuleMessages';
3
3
  export * from './lib/BitcoinMessages';
4
4
  export * from './lib/ConsoleMessages';
5
5
  export * from './lib/EmbeddedWalletsModuleMessages';
6
+ export * from './lib/EthereumGaslessMessages';
6
7
  export * from './lib/EthMessages';
7
8
  export * from './lib/ExternalAuthMessages';
8
9
  export * from './lib/FetchMessages';
@@ -0,0 +1,62 @@
1
+ import type { SerializedAuthorization, SignedSponsoredTransaction, SponsoredTransactionStatusResult } from '@dynamic-labs/ethereum-gasless-core';
2
+ import { BaseWallet } from '@dynamic-labs/types';
3
+ /**
4
+ * Local alias for `viem`'s `Hex` type. `@dynamic-labs/webview-messages` is a
5
+ * chain-agnostic package and ESLint forbids it from depending on viem, so we
6
+ * mirror the `Hex` shape inline instead of importing it.
7
+ */
8
+ type Hex = `0x${string}`;
9
+ /**
10
+ * Wire-only projection of `SponsoredTransactionCall`. `bigint` does not survive
11
+ * `postMessage`, so the host serializes `value: bigint` to a string before the
12
+ * request crosses `messageTransport` and the controller deserializes it.
13
+ */
14
+ export type SponsoredTransactionCallWire = {
15
+ data: Hex;
16
+ target: Hex;
17
+ value: string;
18
+ };
19
+ /**
20
+ * Wire-only base shape for the send / relay / sign messages. Mirrors the
21
+ * unsigned-calls variant of the underlying SDK functions, with `bigint` values
22
+ * serialized to strings for transport.
23
+ */
24
+ export type EthereumGaslessUnsignedCallsArgs = {
25
+ wallet: BaseWallet;
26
+ calls: SponsoredTransactionCallWire[];
27
+ authorization?: SerializedAuthorization;
28
+ autoDelegate?: boolean;
29
+ validForSeconds?: number;
30
+ };
31
+ export type EthereumGaslessMessages = {
32
+ ethereumGasless_send: (params: EthereumGaslessUnsignedCallsArgs) => Promise<{
33
+ transactionHash: Hex;
34
+ }>;
35
+ ethereumGasless_relay: (params: EthereumGaslessUnsignedCallsArgs) => Promise<{
36
+ requestId: string;
37
+ }>;
38
+ ethereumGasless_sign: (params: EthereumGaslessUnsignedCallsArgs) => Promise<SignedSponsoredTransaction>;
39
+ ethereumGasless_waitFor: (params: {
40
+ requestId: string;
41
+ }) => Promise<{
42
+ transactionHash: Hex;
43
+ }>;
44
+ ethereumGasless_getStatus: (params: {
45
+ requestId: string;
46
+ }) => Promise<SponsoredTransactionStatusResult>;
47
+ ethereumGasless_sign7702Authorization: (params: {
48
+ wallet: BaseWallet;
49
+ chainId?: number;
50
+ }) => Promise<SerializedAuthorization>;
51
+ ethereumGasless_activate7702Delegation: (params: {
52
+ wallet: BaseWallet;
53
+ authorization?: SerializedAuthorization;
54
+ }) => Promise<{
55
+ transactionHash: Hex;
56
+ }>;
57
+ ethereumGasless_is7702DelegationActive: (params: {
58
+ wallet: BaseWallet;
59
+ }) => Promise<boolean>;
60
+ ethereumGasless_isEnabled: () => Promise<boolean>;
61
+ };
62
+ export {};
@@ -1,7 +1,11 @@
1
1
  export type ImportPrivateKeyArgs = {
2
+ chain?: string;
2
3
  privateKey: string;
3
4
  thresholdSignatureScheme?: string;
4
5
  publicAddressCheck?: string;
6
+ addressType?: string;
7
+ password?: string;
8
+ legacyWalletId?: string;
5
9
  };
6
10
  export type ExportClientKeysharesArgs = {
7
11
  accountAddress: string;
@@ -49,7 +53,13 @@ export type WalletRecoveryState = {
49
53
  isPasswordEncrypted: boolean;
50
54
  };
51
55
  export type WaasMessages = {
52
- waas_importPrivateKey: (walletId: string, args: ImportPrivateKeyArgs) => Promise<void>;
56
+ /**
57
+ * Either `walletId` or `args.chain` must be provided. If both are present,
58
+ * `args.chain` takes precedence. `walletId` is kept for backwards
59
+ * compatibility with older React Native clients; new callers should pass
60
+ * `undefined` for `walletId` and provide `args.chain` instead.
61
+ */
62
+ waas_importPrivateKey: (walletId: string | null, args: ImportPrivateKeyArgs) => Promise<void>;
53
63
  waas_exportClientKeyshares: (walletId: string, args: ExportClientKeysharesArgs) => Promise<void>;
54
64
  waas_backupKeySharesToGoogleDrive: (walletId: string, args: BackupKeySharesToGoogleDriveArgs) => Promise<void>;
55
65
  waas_delegateKeyShares: (walletId: string, args: DelegateKeySharesArgs) => Promise<void>;