@dynamic-labs/webview-messages 4.37.2 → 4.38.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,19 @@
1
1
 
2
+ ## [4.38.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.37.2...v4.38.0) (2025-10-14)
3
+
4
+
5
+ ### Features
6
+
7
+ * add client.ui.updateUser.show method to update user with dynamic ui ([#9702](https://github.com/dynamic-labs/dynamic-auth/issues/9702)) ([9554e98](https://github.com/dynamic-labs/dynamic-auth/commit/9554e98eadf3f801a5ebe8b22493a87cc87b8178))
8
+ * add locale to react-native client ([#9698](https://github.com/dynamic-labs/dynamic-auth/issues/9698)) ([fe577fc](https://github.com/dynamic-labs/dynamic-auth/commit/fe577fccd3cc92e5153f66f401357035bb5baec3))
9
+ * add updateUser to react-native client ([#9701](https://github.com/dynamic-labs/dynamic-auth/issues/9701)) ([124fbf7](https://github.com/dynamic-labs/dynamic-auth/commit/124fbf7a350bfa6404e65def7b436686d38847ed))
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * notes and trigger ([#9697](https://github.com/dynamic-labs/dynamic-auth/issues/9697)) ([5d24a77](https://github.com/dynamic-labs/dynamic-auth/commit/5d24a77faa8030434bc7dd0f35986984bc2576d5))
15
+ * **zerodev-extension:** allow zerodev kernel client to send user operation ([#9706](https://github.com/dynamic-labs/dynamic-auth/issues/9706)) ([b57afc9](https://github.com/dynamic-labs/dynamic-auth/commit/b57afc9f378d6b2423ca46faec5f6b2861d3cbf6))
16
+
2
17
  ### [4.37.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.37.1...v4.37.2) (2025-10-13)
3
18
 
4
19
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.37.2";
6
+ var version = "4.38.0";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.37.2";
2
+ var version = "4.38.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.37.2",
3
+ "version": "4.38.0",
4
4
  "description": "A package to define messages for the webview-controller",
5
5
  "author": "Dynamic Labs, Inc.",
6
6
  "license": "MIT",
@@ -20,11 +20,12 @@
20
20
  "dependencies": {
21
21
  "@dynamic-labs/sdk-api-core": "0.0.805",
22
22
  "@dynamic-labs-sdk/client": "0.1.0-alpha.19",
23
- "@dynamic-labs/assert-package-version": "4.37.2",
24
- "@dynamic-labs/logger": "4.37.2",
25
- "@dynamic-labs/message-transport": "4.37.2",
26
- "@dynamic-labs/types": "4.37.2",
27
- "@dynamic-labs/webauthn": "4.37.2"
23
+ "@dynamic-labs/assert-package-version": "4.38.0",
24
+ "@dynamic-labs/locale": "4.38.0",
25
+ "@dynamic-labs/logger": "4.38.0",
26
+ "@dynamic-labs/message-transport": "4.38.0",
27
+ "@dynamic-labs/types": "4.38.0",
28
+ "@dynamic-labs/webauthn": "4.38.0"
28
29
  },
29
30
  "peerDependencies": {}
30
31
  }
package/src/index.d.ts CHANGED
@@ -5,6 +5,7 @@ export * from './lib/EmbeddedWalletsModuleMessages';
5
5
  export * from './lib/EthMessages';
6
6
  export * from './lib/ExternalAuthMessages';
7
7
  export * from './lib/FetchMessages';
8
+ export * from './lib/LocaleModuleMessages';
8
9
  export * from './lib/MfaMessages';
9
10
  export * from './lib/NetworksModuleMessages';
10
11
  export * from './lib/OtpMessages';
@@ -1,11 +1,21 @@
1
1
  import type { AuthEventPayload, UserProfile } from '@dynamic-labs/types';
2
+ import type { UserFields, ProjectSettingsKyc, UpdateSelfResponse } from '@dynamic-labs/sdk-api-core';
2
3
  export type AuthModuleState = {
3
4
  token: string | null;
4
5
  authenticatedUser: UserProfile | null;
5
6
  };
7
+ export type UpdateUserFieldsArg = Omit<UserFields, 'captchaToken' | 'policiesConsent'>;
8
+ export type UpdateUserReturnPayload = {
9
+ isSmsVerificationRequired: boolean;
10
+ isEmailVerificationRequired: boolean;
11
+ missingFields: ProjectSettingsKyc[];
12
+ updateUserProfileResponse: UpdateSelfResponse;
13
+ };
6
14
  export type AuthModuleMessages = {
7
15
  logout: () => Promise<void>;
8
16
  refreshUser: () => Promise<UserProfile | null>;
17
+ updateUser: (userFields: UpdateUserFieldsArg) => Promise<UpdateUserReturnPayload>;
18
+ verifyUserUpdateOtp: (verificationToken: string) => Promise<UpdateUserReturnPayload>;
9
19
  handleAuthenticatedUser: (params: {
10
20
  user: UserProfile;
11
21
  }) => Promise<void>;
@@ -0,0 +1,4 @@
1
+ import type { Lang } from '@dynamic-labs/locale';
2
+ export type LocaleModuleMessages = {
3
+ changeLanguage: (lang: Lang) => Promise<void>;
4
+ };
@@ -1,5 +1,6 @@
1
1
  import { LogLevel } from '@dynamic-labs/logger';
2
2
  import type { EvmNetwork } from '@dynamic-labs/types';
3
+ import type { LocaleResource } from '@dynamic-labs/locale';
3
4
  /**
4
5
  * Defines the settings required by the SDK to be properly initialized
5
6
  * inside the webview
@@ -16,6 +17,7 @@ export type ClientManifest = {
16
17
  platform: 'browser' | 'react-native' | 'flutter' | 'swift';
17
18
  redirectUrl: string;
18
19
  globalWallets?: ('droplet' | 'sei')[];
20
+ locale?: LocaleResource;
19
21
  debug?: {
20
22
  webview?: boolean;
21
23
  messageTransport?: boolean;
@@ -1,3 +1,12 @@
1
+ import type { UserFields } from '@dynamic-labs/sdk-api-core';
2
+ export type UpdateUserWithModalParams = {
3
+ fields: (keyof UserFields)[];
4
+ options?: {
5
+ title?: string;
6
+ subtitle?: string;
7
+ submitText?: string;
8
+ };
9
+ };
1
10
  export type UserInterfaceModuleMessages = {
2
11
  openUserProfile: () => void;
3
12
  hideUserProfile: () => void;
@@ -9,6 +18,8 @@ export type UserInterfaceModuleMessages = {
9
18
  revealEmbeddedWalletKey: (params: {
10
19
  type: 'recovery-phrase' | 'private-key';
11
20
  }) => void;
21
+ /** Opens the user update modal with specified fields */
22
+ updateUserWithModal: (params: UpdateUserWithModalParams) => Promise<UserFields>;
12
23
  authFlowCancelled: () => void;
13
24
  authFlowClosed: () => void;
14
25
  authFlowOpened: () => void;
@@ -1,26 +0,0 @@
1
- export * from './AccountAbstractionMessages';
2
- export * from './AuthModuleMessages';
3
- export * from './ConsoleMessages';
4
- export * from './EmbeddedWalletsModuleMessages';
5
- export * from './EthMessages';
6
- export * from './ExternalAuthMessages';
7
- export * from './FetchMessages';
8
- export * from './MfaMessages';
9
- export * from './NetworksModuleMessages';
10
- export * from './OtpMessages';
11
- export * from './PasskeyMessages';
12
- export * from './PlatformServiceMessages';
13
- export * from './ProjectSettingsMessages';
14
- export * from './SdkModuleMessages';
15
- export * from './SocialAuthModuleMessages';
16
- export * from './SolanaMessages';
17
- export * from './StorageMessages';
18
- export * from './SuiMessages';
19
- export * from './TurnkeyIframeEventProxyMessages';
20
- export * from './TurnkeyPasskeyMessages';
21
- export * from './UserInterfaceModuleMessages';
22
- export * from './ViemMessages';
23
- export * from './WaasMessages';
24
- export * from './WalletsModuleMessages';
25
- export * from './WebViewVisibilityMessages';
26
- export * from './ZeroDevExtensionMessages';