@tencentcloud/call-uikit-wechat
Advanced tools
Comparing version 3.3.3 to 3.3.4
{ | ||
"name": "@tencentcloud/call-uikit-wechat", | ||
"version": "3.3.3", | ||
"version": "3.3.4", | ||
"main": "./tuicall-uikit-vue.umd.js", | ||
@@ -5,0 +5,0 @@ "module": "./tuicall-uikit-vue.es.js", |
@@ -17,3 +17,3 @@ import { | ||
} from './TUICallService/index'; | ||
const Version = '3.3.3'; // basic-demo 原来上报使用 | ||
const Version = '3.3.4'; // basic-demo 原来上报使用 | ||
@@ -20,0 +20,0 @@ // 输出产物 |
@@ -19,10 +19,10 @@ import { TUICore, TUILogin, TUIConstants, ExtensionInfo } from '@tencentcloud/tui-core'; | ||
// 下面:TUICore注册事件,注册组件服务,注册界面拓展 | ||
TUICore.registerEvent(TUIConstants.TUILogin.EVENT.LOGIN_STATE_CHANGED, TUIConstants.TUILogin.EVENT_SUB_KEY.USER_LOGIN_SUCCESS, this._callService); | ||
TUICore.registerEvent(TUIConstants.TUILogin.EVENT.LOGIN_STATE_CHANGED, TUIConstants.TUILogin.EVENT_SUB_KEY.USER_LOGIN_SUCCESS, this); // onNotifyEvent | ||
// @ts-ignore | ||
if (TUIConstants.TUIChat?.EVENT) { | ||
// @ts-ignore | ||
TUICore.registerEvent(TUIConstants.TUIChat.EVENT?.CHAT_STATE_CHANGED, TUIConstants.TUIChat.EVENT_SUB_KEY?.CHAT_OPENED, this._callService); | ||
TUICore.registerEvent(TUIConstants.TUIChat.EVENT?.CHAT_STATE_CHANGED, TUIConstants.TUIChat.EVENT_SUB_KEY?.CHAT_OPENED, this); // onNotifyEvent | ||
} | ||
TUICore.registerService(TUIConstants.TUICalling.SERVICE.NAME, this._callService); | ||
TUICore.registerExtension(TUIConstants.TUIChat.EXTENSION.INPUT_MORE.EXT_ID, this._callService); | ||
TUICore.registerService(TUIConstants.TUICalling.SERVICE.NAME, this); // onCall | ||
TUICore.registerExtension(TUIConstants.TUIChat.EXTENSION.INPUT_MORE.EXT_ID, this); // onGetExtension | ||
} | ||
@@ -55,3 +55,3 @@ | ||
*/ | ||
public onGetExtensionTUICore(extensionID: string, params: any) { | ||
public onGetExtension(extensionID: string, params: any) { | ||
if (extensionID === TUIConstants.TUIChat.EXTENSION.INPUT_MORE.EXT_ID) { | ||
@@ -109,3 +109,3 @@ this._callService.getTUICallEngineInstance()?.reportLog?.({ name: 'TUICallKit.onGetExtension', data: { extensionID, params } }); | ||
*/ | ||
public async onTUICoreNotifyEvent(eventName: string, subKey: string, options?: any) { | ||
public async onNotifyEvent(eventName: string, subKey: string, options?: any) { | ||
try { | ||
@@ -112,0 +112,0 @@ if (eventName === TUIConstants.TUILogin.EVENT.LOGIN_STATE_CHANGED) { |
@@ -30,3 +30,3 @@ import { | ||
uiDesign.setTUIStore(TUIStore); | ||
const version = '3.3.3'; | ||
const version = '3.3.4'; | ||
export { TUIGlobal, TUIStore, uiDesign }; | ||
@@ -56,4 +56,5 @@ | ||
this._watchTUIStore(); | ||
this._engineEventHandler = EngineEventHandler.getInstance({ callService: this }); | ||
this._chatCombine = ChatCombine.getInstance({ callService: this }); | ||
this._engineEventHandler = EngineEventHandler.getInstance({ callService: this }); | ||
} | ||
@@ -725,11 +726,2 @@ static getInstance() { | ||
} | ||
public async onNotifyEvent(eventName: string, subKey: string, options?: any) { | ||
await this._chatCombine?.onTUICoreNotifyEvent(eventName, subKey, options); | ||
} | ||
public async onCall(method: String, params: any) { | ||
await this._chatCombine?.onCall(method, params); | ||
} | ||
public onGetExtension(extensionID: string, params: any) { | ||
return this._chatCombine?.onGetExtensionTUICore(extensionID, params); | ||
} | ||
// =========================【set、get methods】========================= | ||
@@ -736,0 +728,0 @@ public getTim() { |
@@ -17,3 +17,3 @@ export default class ChatCombine { | ||
*/ | ||
onGetExtensionTUICore(extensionID: string, params: any): any[]; | ||
onGetExtension(extensionID: string, params: any): any[]; | ||
onCall(method: String, params: any): Promise<void>; | ||
@@ -26,3 +26,3 @@ /** | ||
*/ | ||
onTUICoreNotifyEvent(eventName: string, subKey: string, options?: any): Promise<void>; | ||
onNotifyEvent(eventName: string, subKey: string, options?: any): Promise<void>; | ||
updateStoreBasedOnGroupAttributes(groupAttributes: any): Promise<void>; | ||
@@ -29,0 +29,0 @@ getGroupAttributes(tim: any, groupId: string): Promise<any>; |
@@ -91,5 +91,2 @@ import { ITUICallService, ICallParams, IGroupCallParams, ICallbackParam, ISelfInfoParams, IInviteUserParams, IJoinInGroupCallParams, IInitParams } from '../interface/ICallService'; | ||
bindTUICore(TUICore: any): void; | ||
onNotifyEvent(eventName: string, subKey: string, options?: any): Promise<void>; | ||
onCall(method: String, params: any): Promise<void>; | ||
onGetExtension(extensionID: string, params: any): any; | ||
getTim(): any; | ||
@@ -96,0 +93,0 @@ setIsFromChat(isFromChat: boolean): void; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1881326
31907