@dynamic-labs/client
Advanced tools
Comparing version 3.0.0-alpha.32 to 3.0.0-alpha.33
'use client' | ||
var version = "3.0.0-alpha.32"; | ||
var version = "3.0.0-alpha.33"; | ||
export { version }; |
{ | ||
"name": "@dynamic-labs/client", | ||
"version": "3.0.0-alpha.32", | ||
"version": "3.0.0-alpha.33", | ||
"repository": { | ||
@@ -29,10 +29,10 @@ "type": "git", | ||
"dependencies": { | ||
"@dynamic-labs/message-transport": "3.0.0-alpha.32", | ||
"@dynamic-labs/message-transport": "3.0.0-alpha.33", | ||
"@vue/reactivity": "3.4.21" | ||
}, | ||
"peerDependencies": { | ||
"@dynamic-labs/logger": "3.0.0-alpha.32", | ||
"@dynamic-labs/types": "3.0.0-alpha.32", | ||
"@dynamic-labs/logger": "3.0.0-alpha.33", | ||
"@dynamic-labs/types": "3.0.0-alpha.33", | ||
"eventemitter3": "5.0.1" | ||
} | ||
} |
@@ -26,12 +26,5 @@ import { Extendable } from '../utils/Extendable'; | ||
/** Module that provide access to UI features */ | ||
ui: { | ||
auth: { | ||
show: () => void; | ||
}; | ||
userProfile: { | ||
show: () => void; | ||
}; | ||
}; | ||
ui: import("../modules/userInterfaceModule/userInterfaceModule").UserInterfaceModule; | ||
/** Module that provides access to user's wallets */ | ||
wallets: import("../modules/walletsModule").WalletsModule; | ||
} & Extendable; |
import { AuthModuleMessages, AuthModuleState, StoreEventListeners } from '@dynamic-labs/message-transport'; | ||
import { Core } from '../../client/core'; | ||
import { EmailAuthModule } from './emailAuthModule'; | ||
import { ExternalAuthMethod } from './externalAuthMethod'; | ||
import { ExternalAuthModule } from './externalAuthModule'; | ||
import { SmsAuthModule } from './smsAuthModule'; | ||
@@ -12,5 +12,5 @@ import { SocialAuthModule } from './socialAuthModule'; | ||
social: SocialAuthModule; | ||
signInWithExternalJwt: ExternalAuthMethod; | ||
external: ExternalAuthModule; | ||
}; | ||
export declare const createAuthModule: (core: Core) => AuthModule; | ||
export {}; |
@@ -5,3 +5,3 @@ 'use client' | ||
import { createEmailAuthModule } from './emailAuthModule/emailAuthModule.js'; | ||
import { createExternalAuthMethod } from './externalAuthMethod/externalAuthMethod.js'; | ||
import { createExternalAuthModule } from './externalAuthModule/externalAuthModule.js'; | ||
import { createSmsAuthModule } from './smsAuthModule/smsAuthModule.js'; | ||
@@ -27,4 +27,4 @@ import { createSocialAuthModule } from './socialAuthModule/socialAuthModule.js'; | ||
email: createEmailAuthModule(core), | ||
external: createExternalAuthModule(core), | ||
logout: () => requestChannel.request('logout'), | ||
signInWithExternalJwt: createExternalAuthMethod(core), | ||
sms: createSmsAuthModule(core), | ||
@@ -31,0 +31,0 @@ social: createSocialAuthModule(core), |
import { Core } from '../../client/core'; | ||
export declare const createUserInterfaceModule: (core: Core) => { | ||
export type UserInterfaceModule = { | ||
auth: { | ||
show: () => void; | ||
show: VoidFunction; | ||
}; | ||
userProfile: { | ||
show: () => void; | ||
show: VoidFunction; | ||
}; | ||
wallets: { | ||
revealEmbeddedWalletKey: VoidFunction; | ||
}; | ||
}; | ||
export declare const createUserInterfaceModule: (core: Core) => UserInterfaceModule; |
@@ -13,2 +13,5 @@ 'use client' | ||
}, | ||
wallets: { | ||
revealEmbeddedWalletKey: () => userInterfaceRequestChannel.emit('revealEmbeddedWalletKey'), | ||
}, | ||
}; | ||
@@ -15,0 +18,0 @@ }; |
@@ -10,3 +10,4 @@ import { StoreEventListeners, WalletsModuleMessages, WalletsModuleState } from '@dynamic-labs/message-transport'; | ||
getNetwork: WalletsModuleMessages['getNetwork']; | ||
setPrimary: WalletsModuleMessages['setPrimary']; | ||
} & StoreEventListeners<WalletsModuleState>; | ||
export declare const createWalletsModule: (core: Core) => WalletsModule; |
@@ -17,2 +17,3 @@ 'use client' | ||
const getNetwork = (params) => requestChannel.request('getNetwork', params); | ||
const setPrimary = (params) => requestChannel.request('setPrimary', params); | ||
return Object.assign(store.getters, pickListenerActions(store.eventEmitter), { | ||
@@ -22,2 +23,3 @@ embedded: createEmbeddedWalletsModule(core), | ||
getNetwork, | ||
setPrimary, | ||
signMessage, | ||
@@ -24,0 +26,0 @@ switchNetwork, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
377464
1266
+ Added@dynamic-labs/logger@3.0.0-alpha.33(transitive)
+ Added@dynamic-labs/message-transport@3.0.0-alpha.33(transitive)
+ Added@dynamic-labs/sdk-api-core@0.0.506(transitive)
+ Added@dynamic-labs/types@3.0.0-alpha.33(transitive)
- Removed@dynamic-labs/logger@3.0.0-alpha.32(transitive)
- Removed@dynamic-labs/message-transport@3.0.0-alpha.32(transitive)
- Removed@dynamic-labs/sdk-api-core@0.0.497(transitive)
- Removed@dynamic-labs/types@3.0.0-alpha.32(transitive)