@tencentcloud/call-uikit-wechat
Advanced tools
Comparing version 3.3.5-beta.4 to 3.3.6-beta.0
{ | ||
"name": "@tencentcloud/call-uikit-wechat", | ||
"version": "3.3.5-beta.4", | ||
"version": "3.3.6-beta.0", | ||
"main": "./tuicall-uikit-vue.umd.js", | ||
@@ -18,3 +18,3 @@ "module": "./tuicall-uikit-vue.es.js", | ||
"@tencentcloud/tui-core": "latest", | ||
"tuicall-engine-wx": "2.2.7-beta.4" | ||
"tuicall-engine-wx": "2.2.8-beta.0" | ||
}, | ||
@@ -21,0 +21,0 @@ "bugs": { |
@@ -17,3 +17,3 @@ import { | ||
} from './TUICallService/index'; | ||
const Version = '3.3.5-beta.4'; // basic-demo 原来上报使用 | ||
const Version = '3.3.6-beta.0'; // basic-demo 原来上报使用 | ||
@@ -20,0 +20,0 @@ // 输出产物 |
import { TUICore, TUILogin, TUIConstants, ExtensionInfo } from '@tencentcloud/tui-core'; | ||
import { CallMediaType, AudioCallIcon, VideoCallIcon, LOG_LEVEL, COMPONENT, StoreName, NAME, CallStatus, CallType } from '../const/index'; | ||
import { CallMediaType, AudioCallIcon, VideoCallIcon, LOG_LEVEL, COMPONENT, StoreName, NAME, CallStatus, CallType, ACTION_TYPE } from '../const/index'; | ||
import { isUndefined, formatTime, JSONToObject } from '../utils/common-utils'; | ||
@@ -214,10 +214,10 @@ import { getRemoteUserProfile } from './utils'; | ||
switch (callMessage?.actionType) { | ||
case 1: { | ||
case ACTION_TYPE.INVITE: { | ||
messageCardContent = cmd2messageCardContentMap[cmd]({ callDuration: formatTime(objectData?.call_end) }); | ||
break; | ||
} | ||
case 2: | ||
case ACTION_TYPE.CANCEL_INVITE: | ||
messageCardContent = isInviter ? t('Call Cancel') : t('Other Side Cancel'); | ||
break; | ||
case 3: | ||
case ACTION_TYPE.ACCEPT_INVITE: | ||
if (['switchToAudio', 'switchToVideo'].includes(cmd)) { | ||
@@ -230,3 +230,3 @@ messageCardContent = cmd2messageCardContentMap?.[cmd]?.(); | ||
break; | ||
case 4: | ||
case ACTION_TYPE.REJECT_INVITE: | ||
if (this.isLineBusy(message)) { | ||
@@ -239,3 +239,3 @@ messageCardContent = isInviter ? t('Line Busy') : t('Other Side Line Busy'); | ||
break; | ||
case 5: | ||
case ACTION_TYPE.INVITE_TIMEOUT: | ||
if (['switchToAudio', 'switchToVideo'].includes(cmd)) { | ||
@@ -242,0 +242,0 @@ messageCardContent = cmd2messageCardContentMap?.[cmd]?.(); |
@@ -30,3 +30,3 @@ import { | ||
uiDesign.setTUIStore(TUIStore); | ||
const version = '3.3.5-beta.4'; | ||
const version = '3.3.6-beta.0'; | ||
export { TUIGlobal, TUIStore, uiDesign }; | ||
@@ -33,0 +33,0 @@ |
@@ -150,1 +150,9 @@ /** | ||
} | ||
export enum ACTION_TYPE { | ||
INVITE = 1, | ||
CANCEL_INVITE = 2, | ||
ACCEPT_INVITE = 3, | ||
REJECT_INVITE = 4, | ||
INVITE_TIMEOUT = 5, | ||
} |
@@ -52,4 +52,4 @@ export const en = { | ||
'microphone disabled': 'Muted', | ||
'speaker phone': 'Speaker', | ||
'ear piece': 'Earpiece', | ||
'speaker enabled': 'Speaker On', | ||
'speaker disabled': 'Speaker Off', | ||
'open speaker': 'Turn on speaker', | ||
@@ -56,0 +56,0 @@ 'close speaker': 'Turn off speaker', |
@@ -63,3 +63,4 @@ export const ja_JP = { | ||
'microphone disabled': 'マイクオフ', | ||
'speaker phone': 'スピーカーオン', | ||
'speaker enabled': 'スピーカーオン', | ||
'speaker disabled': 'スピーカーオフ', | ||
'open speaker': 'スピーカーをオンにする', | ||
@@ -66,0 +67,0 @@ 'close speaker': 'スピーカーの電源を切ります', |
@@ -52,4 +52,4 @@ export const zh = { | ||
'microphone disabled': '麦克风已关', | ||
'speaker phone': '扬声器已开', | ||
'ear piece': '扬声器已关', | ||
'speaker enabled': '扬声器已开', | ||
'speaker disabled': '扬声器已关', | ||
'open speaker': '开启扬声器', | ||
@@ -56,0 +56,0 @@ 'close speaker': '关闭扬声器', |
@@ -135,1 +135,8 @@ /** | ||
} | ||
export declare enum ACTION_TYPE { | ||
INVITE = 1, | ||
CANCEL_INVITE = 2, | ||
ACCEPT_INVITE = 3, | ||
REJECT_INVITE = 4, | ||
INVITE_TIMEOUT = 5 | ||
} |
@@ -47,4 +47,4 @@ export declare const en: { | ||
'microphone disabled': string; | ||
'speaker phone': string; | ||
'ear piece': string; | ||
'speaker enabled': string; | ||
'speaker disabled': string; | ||
'open speaker': string; | ||
@@ -51,0 +51,0 @@ 'close speaker': string; |
@@ -57,3 +57,4 @@ export declare const ja_JP: { | ||
'microphone disabled': string; | ||
'speaker phone': string; | ||
'speaker enabled': string; | ||
'speaker disabled': string; | ||
'open speaker': string; | ||
@@ -60,0 +61,0 @@ 'close speaker': string; |
@@ -47,4 +47,4 @@ export declare const zh: { | ||
'microphone disabled': string; | ||
'speaker phone': string; | ||
'ear piece': string; | ||
'speaker enabled': string; | ||
'speaker disabled': string; | ||
'open speaker': string; | ||
@@ -51,0 +51,0 @@ 'close speaker': string; |
Sorry, the diff of this file is not supported yet
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
1897076
32217
+ Addedtuicall-engine-wx@2.2.8-beta.0(transitive)
- Removedtuicall-engine-wx@2.2.7-beta.4(transitive)