@dynamic-labs/webview-messages 4.37.1 → 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 +30 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +9 -8
- package/src/index.d.ts +1 -0
- package/src/lib/AuthModuleMessages.d.ts +10 -0
- package/src/lib/LocaleModuleMessages.d.ts +4 -0
- package/src/lib/SdkModuleMessages.d.ts +3 -0
- package/src/lib/SocialAuthModuleMessages.d.ts +17 -0
- package/src/lib/UserInterfaceModuleMessages.d.ts +11 -0
- package/src/lib/index.d.ts +0 -26
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,34 @@
|
|
|
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
|
+
|
|
17
|
+
### [4.37.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.37.1...v4.37.2) (2025-10-13)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* add get all linked social accounts function ([#9676](https://github.com/dynamic-labs/dynamic-auth/issues/9676)) ([c637c3f](https://github.com/dynamic-labs/dynamic-auth/commit/c637c3f101ea9387584473e18ff728c17d000f73))
|
|
23
|
+
* add revoke delegation to connectors and hook ([#9628](https://github.com/dynamic-labs/dynamic-auth/issues/9628)) ([00a40e0](https://github.com/dynamic-labs/dynamic-auth/commit/00a40e0b2aa6137a97ccb3be7890326300582fcf))
|
|
24
|
+
* **react-native:** add methods to social module ([#9677](https://github.com/dynamic-labs/dynamic-auth/issues/9677)) ([e4ffc11](https://github.com/dynamic-labs/dynamic-auth/commit/e4ffc1139ddc49826da688857d20dfb3b0c77ad7))
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Bug Fixes
|
|
28
|
+
|
|
29
|
+
* duplicate wallet display for wallet upgrade ([#9684](https://github.com/dynamic-labs/dynamic-auth/issues/9684)) ([cf94223](https://github.com/dynamic-labs/dynamic-auth/commit/cf94223d91f74add454901b72f4bf7d81043bffc))
|
|
30
|
+
* fixes postbuild oom ([#9664](https://github.com/dynamic-labs/dynamic-auth/issues/9664)) ([7e56047](https://github.com/dynamic-labs/dynamic-auth/commit/7e5604721d708e375c642223cd2f615ab9191f70))
|
|
31
|
+
|
|
2
32
|
### [4.37.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.37.0...v4.37.1) (2025-10-08)
|
|
3
33
|
|
|
4
34
|
## [4.37.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.36.1...v4.37.0) (2025-10-08)
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/webview-messages",
|
|
3
|
-
"version": "4.
|
|
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",
|
|
@@ -18,13 +18,14 @@
|
|
|
18
18
|
"./package.json": "./package.json"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@dynamic-labs/sdk-api-core": "0.0.
|
|
22
|
-
"@dynamic-labs-sdk/client": "0.1.0-alpha.
|
|
23
|
-
"@dynamic-labs/assert-package-version": "4.
|
|
24
|
-
"@dynamic-labs/
|
|
25
|
-
"@dynamic-labs/
|
|
26
|
-
"@dynamic-labs/
|
|
27
|
-
"@dynamic-labs/
|
|
21
|
+
"@dynamic-labs/sdk-api-core": "0.0.805",
|
|
22
|
+
"@dynamic-labs-sdk/client": "0.1.0-alpha.19",
|
|
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>;
|
|
@@ -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
|
|
@@ -15,6 +16,8 @@ export type ClientManifest = {
|
|
|
15
16
|
evmNetworks?: EvmNetwork[];
|
|
16
17
|
platform: 'browser' | 'react-native' | 'flutter' | 'swift';
|
|
17
18
|
redirectUrl: string;
|
|
19
|
+
globalWallets?: ('droplet' | 'sei')[];
|
|
20
|
+
locale?: LocaleResource;
|
|
18
21
|
debug?: {
|
|
19
22
|
webview?: boolean;
|
|
20
23
|
messageTransport?: boolean;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ProviderEnum } from '@dynamic-labs/sdk-api-core';
|
|
2
|
+
import { SocialAccountInformation } from '@dynamic-labs/types';
|
|
2
3
|
export type SocialProvider = 'apple' | 'coinbaseSocial' | 'discord' | 'epicgames' | 'facebook' | 'farcaster' | 'github' | 'google' | 'kraken' | 'line' | 'telegram' | 'tiktok' | 'twitch' | 'twitter' | 'shopify' | 'spotify';
|
|
3
4
|
type ConnectWithSocialOnHostArgs = {
|
|
4
5
|
clientId?: string;
|
|
@@ -25,5 +26,21 @@ export type SocialAuthModuleMessages = {
|
|
|
25
26
|
* Trigger a social auth connection on the host/native side
|
|
26
27
|
*/
|
|
27
28
|
connectWithSocialOnHost: (args: ConnectWithSocialOnHostArgs) => Promise<void>;
|
|
29
|
+
/**
|
|
30
|
+
* Retrieves all linked social accounts for a specific provider
|
|
31
|
+
*/
|
|
32
|
+
getLinkedAccounts: (provider: ProviderEnum) => Promise<SocialAccountInformation[]>;
|
|
33
|
+
/**
|
|
34
|
+
* Unlinks a social account from the user's profile
|
|
35
|
+
*/
|
|
36
|
+
unlinkSocialAccount: (provider: ProviderEnum, verifiedCredentialId?: string) => Promise<void>;
|
|
37
|
+
/**
|
|
38
|
+
* Checks if a user has any linked accounts for a specific provider
|
|
39
|
+
*/
|
|
40
|
+
isLinked: (provider: ProviderEnum) => Promise<boolean>;
|
|
41
|
+
/**
|
|
42
|
+
* Retrieves all linked social accounts across all providers
|
|
43
|
+
*/
|
|
44
|
+
getAllLinkedAccounts: () => Promise<SocialAccountInformation[]>;
|
|
28
45
|
};
|
|
29
46
|
export {};
|
|
@@ -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;
|
package/src/lib/index.d.ts
DELETED
|
@@ -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';
|