@dynamic-labs/webview-messages 4.92.4 → 5.0.0-rc.1

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
+ ## [5.0.0-rc.1](https://github.com/dynamic-labs/dynamic-auth/compare/v5.0.0-rc.0...v5.0.0-rc.1) (2026-07-17)
3
+
4
+
5
+ ### ⚠ BREAKING CHANGES
6
+
7
+ * move legacy embedded wallet to waas upgrade flow to new legacy-embedded-wallet-migration package (#11841)
8
+ * drop default injection of legacy embedded wallet connectors (#11833)
9
+ * remove legacy embedded wallet support (#11979)
10
+ * throw when legacy embedded wallet is detected without migration provider (#11855)
11
+ * remove deprecated eclipse package (#11831)
12
+ * remove deprecated functions and props (#11832)
13
+
14
+
2
15
  ### [4.92.4](https://github.com/dynamic-labs/dynamic-auth/compare/v4.92.3...v4.92.4) (2026-07-16)
3
16
 
4
17
 
@@ -57,6 +70,7 @@
57
70
  * improve social OAuth error messages ([#11837](https://github.com/dynamic-labs/dynamic-auth/issues/11837)) ([8e57c06](https://github.com/dynamic-labs/dynamic-auth/commit/8e57c067c5a89111a32a12fb82e190cf6c46ad67))
58
71
  * **react-native-extension:** reject path traversal in downloadFile fileName ([#11816](https://github.com/dynamic-labs/dynamic-auth/issues/11816)) ([9367a56](https://github.com/dynamic-labs/dynamic-auth/commit/9367a56b6daa853d7f7e7f5534261bc68825b239))
59
72
  * **sdk-react-core:** display exactly the bytes signed in personal_sign preview ([#11818](https://github.com/dynamic-labs/dynamic-auth/issues/11818)) ([30b9382](https://github.com/dynamic-labs/dynamic-auth/commit/30b93829122f00060cb484aef09a03294c03f651))
73
+
60
74
 
61
75
  ### [4.91.6](https://github.com/dynamic-labs/dynamic-auth/compare/v4.91.5...v4.91.6) (2026-07-03)
62
76
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.92.4";
6
+ var version = "5.0.0-rc.1";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.92.4";
2
+ var version = "5.0.0-rc.1";
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.92.4",
3
+ "version": "5.0.0-rc.1",
4
4
  "description": "A package to define messages for the webview-controller",
5
5
  "author": "Dynamic Labs, Inc.",
6
6
  "license": "MIT",
@@ -18,16 +18,16 @@
18
18
  "./package.json": "./package.json"
19
19
  },
20
20
  "dependencies": {
21
- "@dynamic-labs/ethereum-gasless-core": "4.92.4",
22
- "@dynamic-labs/sdk-api-core": "0.0.1073",
21
+ "@dynamic-labs/ethereum-gasless-core": "5.0.0-rc.1",
22
+ "@dynamic-labs/sdk-api-core": "0.0.1082",
23
23
  "@dynamic-labs-sdk/client": "1.18.0",
24
- "@dynamic-labs/assert-package-version": "4.92.4",
25
- "@dynamic-labs/locale": "4.92.4",
26
- "@dynamic-labs/logger": "4.92.4",
27
- "@dynamic-labs/message-transport": "4.92.4",
28
- "@dynamic-labs/types": "4.92.4",
29
- "@dynamic-labs/wallet-connector-core": "4.92.4",
30
- "@dynamic-labs/webauthn": "4.92.4"
24
+ "@dynamic-labs/assert-package-version": "5.0.0-rc.1",
25
+ "@dynamic-labs/locale": "5.0.0-rc.1",
26
+ "@dynamic-labs/logger": "5.0.0-rc.1",
27
+ "@dynamic-labs/message-transport": "5.0.0-rc.1",
28
+ "@dynamic-labs/types": "5.0.0-rc.1",
29
+ "@dynamic-labs/wallet-connector-core": "5.0.0-rc.1",
30
+ "@dynamic-labs/webauthn": "5.0.0-rc.1"
31
31
  },
32
32
  "peerDependencies": {}
33
33
  }
@@ -6,12 +6,42 @@ export type CreateEmbeddedWalletArgs = {
6
6
  chains?: (keyof typeof EmbeddedWalletChainEnum)[];
7
7
  password?: string;
8
8
  };
9
+ export type UpgradeToDynamicWaasArgs = {
10
+ /** The exported private key of the legacy wallet being upgraded. */
11
+ privateKey: string;
12
+ /**
13
+ * The id of the legacy wallet to upgrade. Defaults to the first legacy
14
+ * wallet that still needs migration when omitted.
15
+ */
16
+ walletId?: string;
17
+ /** Optional password used to encrypt the new WaaS wallet key shares. */
18
+ password?: string;
19
+ };
20
+ /**
21
+ * Serializable descriptor of a legacy Turnkey embedded wallet that still needs
22
+ * to be migrated to Dynamic WaaS. Surfaced to native consumers so a headless
23
+ * migration UI can list the wallets to upgrade without access to the
24
+ * webview-side `useLegacyWalletsToMigrate` hook.
25
+ */
26
+ export type LegacyWalletToMigrate = {
27
+ id: string;
28
+ address: string;
29
+ chain: string;
30
+ };
9
31
  export type EmbeddedWalletsModuleState = {
10
32
  hasWallet: boolean;
33
+ /** Legacy Turnkey wallets on the current user that still need migration. */
34
+ legacyWalletsToMigrate: LegacyWalletToMigrate[];
11
35
  };
12
36
  export type EmbeddedWalletsModuleMessages = {
13
37
  getWallet: () => Promise<BaseWallet | null>;
14
38
  createWallet: (args?: CreateEmbeddedWalletArgs) => Promise<BaseWallet | BaseWallet[]>;
39
+ /**
40
+ * Programmatically upgrades a legacy Turnkey embedded wallet to a Dynamic
41
+ * WaaS wallet without opening the migration modal — the no-UI (headless)
42
+ * counterpart of `ui.wallets.promptUpgradeToDynamicWaasFlow`.
43
+ */
44
+ upgradeToDynamicWaas: (args: UpgradeToDynamicWaasArgs) => Promise<void>;
15
45
  embeddedWalletCreated: (verifiedCredential: JwtVerifiedCredential | null) => void;
16
46
  embeddedWalletRevealSuccess: (wallet: BaseWallet) => void;
17
47
  embeddedWalletRevealFailure: (error: SerializedError) => void;
@@ -60,6 +60,18 @@ export type ClientManifest = {
60
60
  deviceRegistrationModal?: {
61
61
  enabled: boolean;
62
62
  };
63
+ /**
64
+ * Controls the legacy embedded wallet migration modal behavior.
65
+ * When set to { autoOpen: false }, the SDK will not automatically open the
66
+ * forced migration modal when a legacy Turnkey wallet is detected on a
67
+ * project whose default wallet version is V3. Headless consumers that build
68
+ * their own migration UI (and call
69
+ * `client.wallets.embedded.upgradeToDynamicWaas`) should disable it.
70
+ * @default { autoOpen: true }
71
+ */
72
+ legacyWalletMigrationModal?: {
73
+ autoOpen: boolean;
74
+ };
63
75
  /**
64
76
  * If true, use MetaMask SDK for MetaMask connections.
65
77
  * If false, use WalletConnect for MetaMask connections.
@@ -44,8 +44,9 @@ export type SignRawMessageArgs = {
44
44
  password?: string;
45
45
  /**
46
46
  * Sign context forwarded to the MPC relay policy engine (e.g. the
47
- * transaction or user operation the raw digest was derived from). Required
48
- * by environments whose signing policy rejects context-less raw signs.
47
+ * transaction or user operation the raw digest was derived from, or the
48
+ * chain-agnostic `rawSign` pre-image descriptor). Required by environments
49
+ * whose signing policy rejects context-less raw signs.
49
50
  */
50
51
  context?: SignMessageContext;
51
52
  };