@tencentcloud/roomkit-electron-vue3 2.3.3 → 2.4.1

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.
Files changed (130) hide show
  1. package/es/components/Chat/ChatEditor/index.vue.mjs +1 -1
  2. package/es/components/Chat/ChatEditor/index.vue2.mjs +4 -4
  3. package/es/components/Chat/ChatEditor/useChatEditor.d.ts +1 -2
  4. package/es/components/Chat/ChatEditor/useChatEditor.mjs +4 -12
  5. package/es/components/ManageMember/MemberControl/index.vue.mjs +1 -1
  6. package/es/components/ManageMember/MemberControl/index.vue2.mjs +5 -4
  7. package/es/components/ManageMember/MemberControl/useMemberControlHooks.mjs +35 -12
  8. package/es/components/ManageMember/useIndexHooks.mjs +2 -1
  9. package/es/components/RoomFooter/ApplyControl/MemberApplyControl.vue.mjs +1 -1
  10. package/es/components/RoomFooter/ApplyControl/MemberApplyControl.vue2.mjs +2 -2
  11. package/es/components/RoomFooter/EndControl/useEndControlHooks.mjs +1 -1
  12. package/es/components/RoomFooter/VirtualBackground.vue.mjs +1 -1
  13. package/es/components/RoomFooter/VirtualBackground.vue2.mjs +87 -27
  14. package/es/components/RoomFooter/index/index.vue.mjs +1 -1
  15. package/es/components/RoomFooter/index/index.vue2.mjs +0 -2
  16. package/es/components/RoomHeader/RoomInfo/useRoomInfoHooks.mjs +2 -2
  17. package/es/components/RoomHeader/index/LayoutControl.vue.mjs +1 -1
  18. package/es/components/RoomHeader/index/LayoutControl.vue2.mjs +1 -3
  19. package/es/components/RoomHeader/index/NetworkInfo.vue.mjs +1 -1
  20. package/es/components/RoomHeader/index/NetworkInfo.vue2.mjs +0 -2
  21. package/es/components/common/base/MessageBox/index.mjs +3 -1
  22. package/es/conference.d.ts +1 -1
  23. package/es/conference.mjs +9 -0
  24. package/es/conference.vue.mjs +1 -1
  25. package/es/conference.vue2.mjs +1 -14
  26. package/es/constants/room.d.ts +3 -1
  27. package/es/extension/RoomMessageCard/RoomMessageCard.vue.mjs +1 -1
  28. package/es/extension/RoomMessageCard/RoomMessageCard.vue2.mjs +2 -2
  29. package/es/extension/chatExtension.mjs +4 -2
  30. package/es/hooks/useDeviceManager.d.ts +3 -1
  31. package/es/hooks/useMasterApplyControl.mjs +16 -10
  32. package/es/hooks/useRoomEngine.d.ts +3 -1
  33. package/es/index.d.ts +3 -2
  34. package/es/index.mjs +1519 -1456
  35. package/es/locales/en-US.d.ts +9 -9
  36. package/es/locales/en-US.mjs +10 -10
  37. package/es/locales/zh-CN.d.ts +11 -11
  38. package/es/locales/zh-CN.mjs +12 -12
  39. package/es/services/function/virtualBackground.d.ts +2 -0
  40. package/es/services/function/virtualBackground.mjs +19 -9
  41. package/es/services/function/waterMark.mjs +3 -0
  42. package/es/services/manager/componentManager.mjs +1 -1
  43. package/es/services/manager/roomActionManager.mjs +1 -1
  44. package/es/services/roomService.d.ts +3 -4
  45. package/es/services/roomService.mjs +2 -26
  46. package/es/stores/chat.mjs +3 -3
  47. package/es/stores/room.d.ts +1 -1
  48. package/es/stores/room.mjs +11 -10
  49. package/lib/components/Chat/ChatEditor/index.vue.js +1 -1
  50. package/lib/components/Chat/ChatEditor/index.vue2.js +4 -4
  51. package/lib/components/Chat/ChatEditor/useChatEditor.d.ts +1 -2
  52. package/lib/components/Chat/ChatEditor/useChatEditor.js +3 -11
  53. package/lib/components/ManageMember/MemberControl/index.vue.js +1 -1
  54. package/lib/components/ManageMember/MemberControl/index.vue2.js +4 -3
  55. package/lib/components/ManageMember/MemberControl/useMemberControlHooks.js +35 -12
  56. package/lib/components/ManageMember/useIndexHooks.js +2 -1
  57. package/lib/components/RoomFooter/ApplyControl/MemberApplyControl.vue.js +1 -1
  58. package/lib/components/RoomFooter/ApplyControl/MemberApplyControl.vue2.js +2 -2
  59. package/lib/components/RoomFooter/EndControl/useEndControlHooks.js +1 -1
  60. package/lib/components/RoomFooter/VirtualBackground.vue.js +1 -1
  61. package/lib/components/RoomFooter/VirtualBackground.vue2.js +86 -26
  62. package/lib/components/RoomFooter/index/index.vue.js +1 -1
  63. package/lib/components/RoomFooter/index/index.vue2.js +0 -2
  64. package/lib/components/RoomHeader/RoomInfo/useRoomInfoHooks.js +2 -2
  65. package/lib/components/RoomHeader/index/LayoutControl.vue.js +1 -1
  66. package/lib/components/RoomHeader/index/LayoutControl.vue2.js +1 -3
  67. package/lib/components/RoomHeader/index/NetworkInfo.vue.js +1 -1
  68. package/lib/components/RoomHeader/index/NetworkInfo.vue2.js +0 -2
  69. package/lib/components/common/base/MessageBox/index.js +3 -1
  70. package/lib/conference.d.ts +1 -1
  71. package/lib/conference.js +9 -0
  72. package/lib/conference.vue.js +1 -1
  73. package/lib/conference.vue2.js +10 -23
  74. package/lib/constants/room.d.ts +3 -1
  75. package/lib/extension/RoomMessageCard/RoomMessageCard.vue.js +1 -1
  76. package/lib/extension/RoomMessageCard/RoomMessageCard.vue2.js +2 -2
  77. package/lib/extension/chatExtension.js +4 -2
  78. package/lib/hooks/useDeviceManager.d.ts +3 -1
  79. package/lib/hooks/useMasterApplyControl.js +16 -10
  80. package/lib/hooks/useRoomEngine.d.ts +3 -1
  81. package/lib/index.d.ts +3 -2
  82. package/lib/index.js +1517 -1454
  83. package/lib/locales/en-US.d.ts +9 -9
  84. package/lib/locales/en-US.js +10 -10
  85. package/lib/locales/zh-CN.d.ts +11 -11
  86. package/lib/locales/zh-CN.js +12 -12
  87. package/lib/services/function/virtualBackground.d.ts +2 -0
  88. package/lib/services/function/virtualBackground.js +19 -9
  89. package/lib/services/function/waterMark.js +3 -0
  90. package/lib/services/manager/componentManager.js +1 -1
  91. package/lib/services/manager/roomActionManager.js +1 -1
  92. package/lib/services/roomService.d.ts +3 -4
  93. package/lib/services/roomService.js +2 -26
  94. package/lib/stores/chat.js +3 -3
  95. package/lib/stores/room.d.ts +1 -1
  96. package/lib/stores/room.js +11 -10
  97. package/package.json +2 -2
  98. package/src/TUIRoom/assets/style/global.scss +1 -1
  99. package/src/TUIRoom/components/Chat/ChatEditor/index.vue +4 -4
  100. package/src/TUIRoom/components/Chat/ChatEditor/useChatEditor.ts +4 -13
  101. package/src/TUIRoom/components/ManageMember/MemberControl/index.vue +5 -4
  102. package/src/TUIRoom/components/ManageMember/MemberControl/useMemberControlHooks.ts +36 -13
  103. package/src/TUIRoom/components/ManageMember/useIndexHooks.ts +3 -2
  104. package/src/TUIRoom/components/RoomFooter/ApplyControl/MemberApplyControl.vue +2 -2
  105. package/src/TUIRoom/components/RoomFooter/EndControl/useEndControlHooks.ts +1 -1
  106. package/src/TUIRoom/components/RoomFooter/VirtualBackground.vue +100 -16
  107. package/src/TUIRoom/components/RoomFooter/index/index.vue +0 -3
  108. package/src/TUIRoom/components/RoomHeader/RoomInfo/useRoomInfoHooks.ts +2 -2
  109. package/src/TUIRoom/components/RoomHeader/index/LayoutControl.vue +0 -2
  110. package/src/TUIRoom/components/RoomHeader/index/NetworkInfo.vue +0 -2
  111. package/src/TUIRoom/components/common/base/MessageBox/index.ts +2 -1
  112. package/src/TUIRoom/conference.vue +8 -13
  113. package/src/TUIRoom/extension/RoomMessageCard/RoomMessageCard.vue +1 -1
  114. package/src/TUIRoom/extension/RoomMessageCard/roomMessageCard.scss +3 -0
  115. package/src/TUIRoom/extension/chatExtension.ts +3 -1
  116. package/src/TUIRoom/hooks/useMasterApplyControl.ts +15 -10
  117. package/src/TUIRoom/index.ts +12 -3
  118. package/src/TUIRoom/locales/en-US.ts +9 -9
  119. package/src/TUIRoom/locales/zh-CN.ts +11 -11
  120. package/src/TUIRoom/services/function/virtualBackground.ts +21 -9
  121. package/src/TUIRoom/services/function/waterMark.ts +6 -0
  122. package/src/TUIRoom/services/manager/componentManager.ts +1 -1
  123. package/src/TUIRoom/services/manager/roomActionManager.ts +1 -1
  124. package/src/TUIRoom/services/roomService.ts +0 -29
  125. package/src/TUIRoom/stores/chat.ts +5 -6
  126. package/src/TUIRoom/stores/room.ts +13 -12
  127. package/es/utils/aegis/config.mjs +0 -12
  128. package/es/utils/aegis/index.mjs +0 -63
  129. package/lib/utils/aegis/config.js +0 -12
  130. package/lib/utils/aegis/index.js +0 -63
@@ -38,7 +38,7 @@ declare const _default: {
38
38
  'Join Room': string;
39
39
  'Enter room ID': string;
40
40
  'video conferencing': string;
41
- 'Quick Meeting': string;
41
+ 'Quick Conference': string;
42
42
  'Room ID': string;
43
43
  'Low Definition': string;
44
44
  'Standard Definition': string;
@@ -71,9 +71,9 @@ declare const _default: {
71
71
  'Full screen': string;
72
72
  Members: string;
73
73
  'Search Member': string;
74
- 'Transfer owner': string;
74
+ 'Make host': string;
75
75
  'Set as administrator': string;
76
- 'Revoke administrator': string;
76
+ 'Remove administrator': string;
77
77
  'The administrator status of sb has been withdrawn': ({ named }: {
78
78
  named: any;
79
79
  }) => string;
@@ -212,8 +212,6 @@ declare const _default: {
212
212
  }) => string;
213
213
  'All videos disabled': string;
214
214
  'All videos enabled': string;
215
- 'Disabling text chat for all is enabled': string;
216
- 'Unblocked all text chat': string;
217
215
  'Your camera has been turned off': string;
218
216
  'Sb invites you to turn on the camera': ({ named }: {
219
217
  named: any;
@@ -262,7 +260,7 @@ declare const _default: {
262
260
  'An invitation to open the camera has been sent to sb.': ({ named }: {
263
261
  named: any;
264
262
  }) => string;
265
- 'Transfer owner failed, please try again.': string;
263
+ 'Make host failed, please try again.': string;
266
264
  'Sb has been set as an administrator': ({ named }: {
267
265
  named: any;
268
266
  }) => string;
@@ -286,8 +284,7 @@ declare const _default: {
286
284
  'You are now an administrator': string;
287
285
  'The RoomOwner has withdrawn your administrator privileges': string;
288
286
  'This member has already received the same request, please try again later': string;
289
- 'Failed to go on stage, invitation has timed out': string;
290
- 'The current number of people on stage has reached the limit': string;
287
+ 'The request to go on stage has timed out': string;
291
288
  'The invitation to sb to go on stage has timed out': ({ named }: {
292
289
  named: any;
293
290
  }) => string;
@@ -306,7 +303,9 @@ declare const _default: {
306
303
  'and so on number people applying to stage': ({ named }: {
307
304
  named: any;
308
305
  }) => string;
309
- 'quick meeting': string;
306
+ 'The stage is full, please contact the host': string;
307
+ 'The stage is full': string;
308
+ 'quick conference': string;
310
309
  Meeting: string;
311
310
  'Meeting in progress': string;
312
311
  Initiating: string;
@@ -320,5 +319,6 @@ declare const _default: {
320
319
  'Currently in a meeting, please exit the current meeting before proceeding.': string;
321
320
  'Failed to initiate meeting': string;
322
321
  'Failed to enter the meeting': string;
322
+ 'Failed to disable chat': string;
323
323
  };
324
324
  export default _default;
@@ -40,7 +40,7 @@ const EN = {
40
40
  "Join Room": "Join Room",
41
41
  "Enter room ID": "Enter room ID",
42
42
  "video conferencing": " 's video conferencing",
43
- "Quick Meeting": " 's Quick Meeting",
43
+ "Quick Conference": " 's Quick Conference",
44
44
  "Room ID": "Room ID",
45
45
  "Low Definition": "Low Definition",
46
46
  "Standard Definition": "Standard Definition",
@@ -73,9 +73,9 @@ const EN = {
73
73
  "Full screen": "Full screen",
74
74
  Members: "Members",
75
75
  "Search Member": "Search Member",
76
- "Transfer owner": "Transfer owner",
76
+ "Make host": "Make host",
77
77
  "Set as administrator": "Set as administrator",
78
- "Revoke administrator": "Revoke administrator",
78
+ "Remove administrator": "Remove administrator",
79
79
  // @ts-ignore
80
80
  "The administrator status of sb has been withdrawn": ({ named }) => `The administrator status of ${named("name")} has been withdrawn`,
81
81
  // @ts-ignore
@@ -210,8 +210,6 @@ const EN = {
210
210
  "Sb invites you to turn on the microphone": ({ named }) => `${named("role")} invites you to turn on the microphone`,
211
211
  "All videos disabled": "All videos disabled",
212
212
  "All videos enabled": "All videos enabled",
213
- "Disabling text chat for all is enabled": "Disabling text chat for all is enabled",
214
- "Unblocked all text chat": "Unblocked all text chat",
215
213
  "Your camera has been turned off": "Your camera has been turned off",
216
214
  // @ts-ignore
217
215
  "Sb invites you to turn on the camera": ({ named }) => `${named("role")} invites you to turn on the camera`,
@@ -254,7 +252,7 @@ const EN = {
254
252
  "An invitation to open the microphone has been sent to sb.": ({ named }) => `An invitation to open the microphone has been sent to ${named("name")}`,
255
253
  // @ts-ignore
256
254
  "An invitation to open the camera has been sent to sb.": ({ named }) => `An invitation to open the camera has been sent to ${named("name")}`,
257
- "Transfer owner failed, please try again.": "Transfer owner failed, please try again.",
255
+ "Make host failed, please try again.": "Make host failed, please try again.",
258
256
  // @ts-ignore
259
257
  "Sb has been set as an administrator": ({ named }) => `${named("name")} has been set as an administrator.`,
260
258
  "Succeed on stage": "Succeed on stage",
@@ -275,8 +273,7 @@ const EN = {
275
273
  "You are now an administrator": "You are now an administrator",
276
274
  "The RoomOwner has withdrawn your administrator privileges": "The RoomOwner has withdrawn your administrator privileges",
277
275
  "This member has already received the same request, please try again later": "This member has already received the same request, please try again later",
278
- "Failed to go on stage, invitation has timed out": "Failed to go on stage, invitation has timed out",
279
- "The current number of people on stage has reached the limit": "The current number of people on stage has reached the limit",
276
+ "The request to go on stage has timed out": "The request to go on stage has timed out",
280
277
  // @ts-ignore
281
278
  "The invitation to sb to go on stage has timed out": ({ named }) => `The invitation to ${named("name")} to go on stage has timed out`,
282
279
  "Currently no member has applied to go on stage": "Currently no member has applied to go on stage",
@@ -293,8 +290,10 @@ const EN = {
293
290
  "people applying to stage": "people applying to stage",
294
291
  // @ts-ignore
295
292
  "and so on number people applying to stage": ({ named }) => `and so on ${named("number")} people applying to stage`,
293
+ "The stage is full, please contact the host": "The stage is full, please contact the host",
294
+ "The stage is full": "The stage is full",
296
295
  // Room Chat Fusion Card Translation
297
- "quick meeting": "quick meeting",
296
+ "quick conference": "quick conference",
298
297
  Meeting: "Meeting",
299
298
  "Meeting in progress": "Meeting in progress",
300
299
  Initiating: "Initiating",
@@ -307,6 +306,7 @@ const EN = {
307
306
  "The meeting has ended": "The meeting has ended",
308
307
  "Currently in a meeting, please exit the current meeting before proceeding.": "Currently in a meeting, please exit the current meeting before proceeding.",
309
308
  "Failed to initiate meeting": "Failed to initiate meeting",
310
- "Failed to enter the meeting": "Failed to enter the meeting"
309
+ "Failed to enter the meeting": "Failed to enter the meeting",
310
+ "Failed to disable chat": "Failed to disable chat"
311
311
  };
312
312
  exports.default = EN;
@@ -35,7 +35,7 @@ declare const _default: {
35
35
  'Join Room': string;
36
36
  'Enter room ID': string;
37
37
  'video conferencing': string;
38
- 'Quick Meeting': string;
38
+ 'Quick Conference': string;
39
39
  'Room ID': string;
40
40
  'Low Definition': string;
41
41
  'Standard Definition': string;
@@ -68,9 +68,9 @@ declare const _default: {
68
68
  'Full screen': string;
69
69
  Members: string;
70
70
  'Search Member': string;
71
- 'Transfer owner': string;
71
+ 'Make host': string;
72
72
  'Set as administrator': string;
73
- 'Revoke administrator': string;
73
+ 'Remove administrator': string;
74
74
  'The administrator status of sb has been withdrawn': ({ named }: {
75
75
  named: any;
76
76
  }) => string;
@@ -212,8 +212,6 @@ declare const _default: {
212
212
  }) => string;
213
213
  'All videos disabled': string;
214
214
  'All videos enabled': string;
215
- 'Disabling text chat for all is enabled': string;
216
- 'Unblocked all text chat': string;
217
215
  'Your camera has been turned off': string;
218
216
  'Sb invites you to turn on the camera': ({ named }: {
219
217
  named: any;
@@ -226,10 +224,10 @@ declare const _default: {
226
224
  'kicked out of the room by the host': string;
227
225
  'kicked out of the room by other device': string;
228
226
  'kicked out of the room by serve': string;
229
- 'Reject sb stage failed, please retry': ({ named }: {
227
+ 'Reject sb on stage failed, please retry': ({ named }: {
230
228
  named: any;
231
229
  }) => string;
232
- 'Agree sb stage failed, please retry': ({ named }: {
230
+ 'Agree sb on stage failed, please retry': ({ named }: {
233
231
  named: any;
234
232
  }) => string;
235
233
  'Has been fully muted and cannot open the microphone': string;
@@ -262,7 +260,7 @@ declare const _default: {
262
260
  'An invitation to open the camera has been sent to sb.': ({ named }: {
263
261
  named: any;
264
262
  }) => string;
265
- 'Transfer owner failed, please try again.': string;
263
+ 'Make host failed, please try again.': string;
266
264
  'Sb has been set as an administrator': ({ named }: {
267
265
  named: any;
268
266
  }) => string;
@@ -286,8 +284,7 @@ declare const _default: {
286
284
  'You are now an administrator': string;
287
285
  'The RoomOwner has withdrawn your administrator privileges': string;
288
286
  'This member has already received the same request, please try again later': string;
289
- 'Failed to go on stage, invitation has timed out': string;
290
- 'The current number of people on stage has reached the limit': string;
287
+ 'The request to go on stage has timed out': string;
291
288
  'The invitation to sb to go on stage has timed out': ({ named }: {
292
289
  named: any;
293
290
  }) => string;
@@ -306,7 +303,9 @@ declare const _default: {
306
303
  'and so on number people applying to stage': ({ named }: {
307
304
  named: any;
308
305
  }) => string;
309
- 'quick meeting': string;
306
+ 'The stage is full, please contact the host': string;
307
+ 'The stage is full': string;
308
+ 'quick conference': string;
310
309
  Meeting: string;
311
310
  'Meeting in progress': string;
312
311
  Initiating: string;
@@ -320,5 +319,6 @@ declare const _default: {
320
319
  'Currently in a meeting, please exit the current meeting before proceeding.': string;
321
320
  'Failed to initiate meeting': string;
322
321
  'Failed to enter the meeting': string;
322
+ 'Failed to disable chat': string;
323
323
  };
324
324
  export default _default;
@@ -37,7 +37,7 @@ const ZH = {
37
37
  "Join Room": "进入房间",
38
38
  "Enter room ID": "输入房间号",
39
39
  "video conferencing": " 的视频会议",
40
- "Quick Meeting": "的快速会议",
40
+ "Quick Conference": "的快速会议",
41
41
  "Room ID": "房间号",
42
42
  "Low Definition": "流畅",
43
43
  "Standard Definition": "标清",
@@ -70,9 +70,9 @@ const ZH = {
70
70
  "Full screen": "全屏",
71
71
  Members: "成员",
72
72
  "Search Member": "搜索成员",
73
- "Transfer owner": "转交房主",
73
+ "Make host": "转交房主",
74
74
  "Set as administrator": "设为管理员",
75
- "Revoke administrator": "撤销管理员",
75
+ "Remove administrator": "撤销管理员",
76
76
  // @ts-ignore
77
77
  "The administrator status of sb has been withdrawn": ({ named }) => `已将 ${named("name")} 的管理员身份撤回`,
78
78
  // @ts-ignore
@@ -210,8 +210,6 @@ const ZH = {
210
210
  "Sb invites you to turn on the microphone": ({ named }) => `${named("role")}邀请你打开麦克风`,
211
211
  "All videos disabled": "已开启全体禁画",
212
212
  "All videos enabled": "已解除全体禁画",
213
- "Disabling text chat for all is enabled": "已开启全体禁止文字聊天",
214
- "Unblocked all text chat": "已解除全体禁止文字聊天",
215
213
  "Your camera has been turned off": "已关闭您的摄像头",
216
214
  // @ts-ignore
217
215
  "Sb invites you to turn on the camera": ({ named }) => `${named("role")}邀请你打开摄像头`,
@@ -224,9 +222,9 @@ const ZH = {
224
222
  "kicked out of the room by other device": "相同账号在其他客户端进入房间",
225
223
  "kicked out of the room by serve": "被服务端踢出房间",
226
224
  // @ts-ignore
227
- "Reject sb stage failed, please retry": ({ named }) => `拒绝 ${named("name")} 上台失败, 请重试`,
225
+ "Reject sb on stage failed, please retry": ({ named }) => `拒绝 ${named("name")} 上台失败, 请重试`,
228
226
  // @ts-ignore
229
- "Agree sb stage failed, please retry": ({ named }) => `同意 ${named("name")} 上台失败, 请重试`,
227
+ "Agree sb on stage failed, please retry": ({ named }) => `同意 ${named("name")} 上台失败, 请重试`,
230
228
  "Has been fully muted and cannot open the microphone": "已被全员静音,无法打开麦克风",
231
229
  "Has been muted by the host and cannot open the microphone": "已被主持人静音,无法打开麦克风",
232
230
  "To apply to speak in the room, please raise your hand first to apply for the microphone": "申请发言房间,请先举手申请上麦",
@@ -254,7 +252,7 @@ const ZH = {
254
252
  "An invitation to open the microphone has been sent to sb.": ({ named }) => `已向 ${named("name")} 发出开启麦克风邀请`,
255
253
  // @ts-ignore
256
254
  "An invitation to open the camera has been sent to sb.": ({ named }) => `已向 ${named("name")} 发出开启摄像头邀请`,
257
- "Transfer owner failed, please try again.": "转交房主失败,请重试",
255
+ "Make host failed, please try again.": "转交房主失败,请重试",
258
256
  // @ts-ignore
259
257
  "Sb has been set as an administrator": ({ named }) => `已将 ${named("name")} 设为管理员`,
260
258
  "Succeed on stage": "上台成功",
@@ -275,8 +273,7 @@ const ZH = {
275
273
  "You are now an administrator": "您已成为管理员",
276
274
  "The RoomOwner has withdrawn your administrator privileges": "房主已收回您的管理员权限",
277
275
  "This member has already received the same request, please try again later": "该成员已收到相同请求,请稍后再试",
278
- "Failed to go on stage, invitation has timed out": "上台失败,邀请已超时",
279
- "The current number of people on stage has reached the limit": "当前上台人数已达上限",
276
+ "The request to go on stage has timed out": "上台请求已超时",
280
277
  // @ts-ignore
281
278
  "The invitation to sb to go on stage has timed out": ({ named }) => `对${named("name")}的上台邀请已超时`,
282
279
  "Currently no member has applied to go on stage": "暂无成员申请上台",
@@ -293,8 +290,10 @@ const ZH = {
293
290
  "people applying to stage": "人正在申请上台",
294
291
  // @ts-ignore
295
292
  "and so on number people applying to stage": ({ named }) => `等 ${named("number")} 人正在申请上台`,
293
+ "The stage is full, please contact the host": "台上人数已满,请联系主持人",
294
+ "The stage is full": "台上人数已满",
296
295
  // Room Chat Fusion Card Translation
297
- "quick meeting": "快速会议",
296
+ "quick conference": "快速会议",
298
297
  Meeting: "会议",
299
298
  "Meeting in progress": "会议 进行中",
300
299
  Initiating: "正在发起",
@@ -307,6 +306,7 @@ const ZH = {
307
306
  "The meeting has ended": "会议已结束",
308
307
  "Currently in a meeting, please exit the current meeting before proceeding.": "正在会议中,请先退出当前会议后再进行操作",
309
308
  "Failed to initiate meeting": "发起会议失败",
310
- "Failed to enter the meeting": "进入会议失败"
309
+ "Failed to enter the meeting": "进入会议失败",
310
+ "Failed to disable chat": "禁言失败"
311
311
  };
312
312
  exports.default = ZH;
@@ -4,6 +4,7 @@ interface IVirtualBackground {
4
4
  dispose(): void;
5
5
  initVirtualBackground(): Promise<void>;
6
6
  toggleVirtualBackground(enabled: boolean): Promise<void>;
7
+ toggleTestVirtualBackground(enabled: boolean): Promise<void>;
7
8
  }
8
9
  export declare class VirtualBackground implements IVirtualBackground {
9
10
  private service;
@@ -15,5 +16,6 @@ export declare class VirtualBackground implements IVirtualBackground {
15
16
  dispose(): void;
16
17
  initVirtualBackground(): Promise<void>;
17
18
  toggleVirtualBackground(enabled: boolean): Promise<void>;
19
+ toggleTestVirtualBackground(enabled: boolean): Promise<void>;
18
20
  }
19
21
  export {};
@@ -13,6 +13,7 @@ class VirtualBackground {
13
13
  __publicField(this, "virtualBackgroundPluginReady", false);
14
14
  __publicField(this, "handleUnmount", async () => {
15
15
  await this.toggleVirtualBackground(false);
16
+ await this.toggleTestVirtualBackground(false);
16
17
  });
17
18
  this.service = service;
18
19
  if (environment.isElectron)
@@ -38,15 +39,24 @@ class VirtualBackground {
38
39
  async toggleVirtualBackground(enabled) {
39
40
  await this.initVirtualBackground();
40
41
  const { sdkAppId, userId, userSig } = this.service.basicStore;
41
- await this.trtcCloud.callExperimentalAPI(JSON.stringify({
42
- api: "enableVirtualBackground",
43
- params: {
44
- sdkAppId,
45
- userId,
46
- userSig,
47
- enable: enabled
48
- }
49
- }));
42
+ const params = {
43
+ sdkAppId,
44
+ userId,
45
+ userSig,
46
+ enable: enabled
47
+ };
48
+ await this.trtcCloud.callExperimentalAPI(JSON.stringify({ api: "enableVirtualBackground", params }));
49
+ }
50
+ async toggleTestVirtualBackground(enabled) {
51
+ await this.initVirtualBackground();
52
+ const { sdkAppId, userId, userSig } = this.service.basicStore;
53
+ const params = {
54
+ sdkAppId,
55
+ userId,
56
+ userSig,
57
+ enable: enabled
58
+ };
59
+ await this.trtcCloud.callExperimentalAPI(JSON.stringify({ api: "enableTestVirtualBackground", params }));
50
60
  }
51
61
  }
52
62
  exports.VirtualBackground = VirtualBackground;
@@ -79,6 +79,7 @@ class WaterMark {
79
79
  watermarkContainer.classList.add("watermark-container");
80
80
  targetElement.appendChild(watermarkContainer);
81
81
  const addWatermarkElements = () => {
82
+ watermarkContainer.innerHTML = "";
82
83
  const maxWidth = 200;
83
84
  const watermarkSpacing = maxWidth + 25;
84
85
  for (let y = -watermarkSpacing; y < watermarkContainer.offsetHeight + watermarkSpacing; y += watermarkSpacing) {
@@ -93,6 +94,8 @@ class WaterMark {
93
94
  }
94
95
  };
95
96
  addWatermarkElements();
97
+ const resizeObserver = new ResizeObserver(addWatermarkElements);
98
+ resizeObserver.observe(watermarkContainer);
96
99
  const observerCallback = (mutations, observer) => {
97
100
  mutations.forEach((mutation) => {
98
101
  if (mutation.removedNodes.length > 0) {
@@ -35,7 +35,7 @@ const defaultConfig = {
35
35
  ManageMemberControl: { visible: true },
36
36
  InviteControl: { visible: true },
37
37
  ChatControl: { visible: true },
38
- MoreControl: { visible: true },
38
+ MoreControl: { visible: false },
39
39
  VirtualBackground: { visible: false }
40
40
  };
41
41
  const _ComponentManager = class _ComponentManager {
@@ -104,7 +104,7 @@ class RoomActionManager {
104
104
  const { roomId, roomName, roomMode } = options;
105
105
  const roomParams = {
106
106
  roomId,
107
- name: roomName,
107
+ roomName,
108
108
  roomType: TUIRoomEngine.TUIRoomType.kConference,
109
109
  isSeatEnabled: roomMode !== "FreeToSpeak",
110
110
  seatMode: roomMode === "SpeakAfterTakingSeat" ? TUIRoomEngine.TUISeatMode.kApplyToTake : void 0
@@ -5,9 +5,10 @@ import { LifeCycleManager } from './manager/lifeCycleManager';
5
5
  import { SelfInfoOptions, UserManager } from './manager/userManager';
6
6
  import { ConfigManager, LanguageOption, ThemeOption } from './manager/configManager';
7
7
  import { ComponentConfig, ComponentManager, ComponentName } from './manager/componentManager';
8
+ import { default as TUIRoomEngine } from '@tencentcloud/tuiroom-engine-electron';
8
9
  import { EventType, IRoomService, RoomInitData, RoomParam } from './types';
9
10
 
10
- export declare const roomEngine: Record<string, any>;
11
+ export declare const roomEngine: Record<string, TUIRoomEngine | null>;
11
12
  export declare class RoomService implements IRoomService {
12
13
  static instance?: RoomService;
13
14
  private emitter;
@@ -18,7 +19,7 @@ export declare class RoomService implements IRoomService {
18
19
  roomActionManager: RoomActionManager;
19
20
  waterMark: WaterMark;
20
21
  virtualBackground: VirtualBackground;
21
- roomEngine: Record<string, any>;
22
+ roomEngine: Record<string, TUIRoomEngine | null>;
22
23
  t: any;
23
24
  get basicStore(): any;
24
25
  get roomStore(): any;
@@ -43,8 +44,6 @@ export declare class RoomService implements IRoomService {
43
44
  private onAllUserCameraDisableChanged;
44
45
  private handleVideoStateChange;
45
46
  private onAllUserMicrophoneDisableChanged;
46
- private onSendMessageForAllUserDisableChanged;
47
- private handleMessageStateChange;
48
47
  private handleAudioStateChange;
49
48
  resetStore(): void;
50
49
  private storeInit;
@@ -67,7 +67,6 @@ const _RoomService = class _RoomService {
67
67
  this.onKickedOffLine = this.onKickedOffLine.bind(this);
68
68
  this.onAllUserCameraDisableChanged = this.onAllUserCameraDisableChanged.bind(this);
69
69
  this.onAllUserMicrophoneDisableChanged = this.onAllUserMicrophoneDisableChanged.bind(this);
70
- this.onSendMessageForAllUserDisableChanged = this.onSendMessageForAllUserDisableChanged.bind(this);
71
70
  }
72
71
  static getInstance() {
73
72
  if (!_RoomService.instance) {
@@ -94,7 +93,7 @@ const _RoomService = class _RoomService {
94
93
  useDeviceManager.default({ listenForDeviceChange: true });
95
94
  }
96
95
  bindRoomEngineEvents() {
97
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
96
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
98
97
  (_a = roomEngine.instance) == null ? void 0 : _a.on(TUIRoomEngine.TUIRoomEvents.onError, this.onError);
99
98
  (_b = roomEngine.instance) == null ? void 0 : _b.on(TUIRoomEngine.TUIRoomEvents.onRoomDismissed, this.onRoomDismissed);
100
99
  (_c = roomEngine.instance) == null ? void 0 : _c.on(TUIRoomEngine.TUIRoomEvents.onUserVoiceVolumeChanged, this.onUserVoiceVolumeChanged);
@@ -108,13 +107,9 @@ const _RoomService = class _RoomService {
108
107
  (_h = roomEngine.instance) == null ? void 0 : _h.on(TUIRoomEngine.TUIRoomEvents.onKickedOffLine, this.onKickedOffLine);
109
108
  (_i = roomEngine.instance) == null ? void 0 : _i.on(TUIRoomEngine.TUIRoomEvents.onAllUserCameraDisableChanged, this.onAllUserCameraDisableChanged);
110
109
  (_j = roomEngine.instance) == null ? void 0 : _j.on(TUIRoomEngine.TUIRoomEvents.onAllUserMicrophoneDisableChanged, this.onAllUserMicrophoneDisableChanged);
111
- (_k = roomEngine.instance) == null ? void 0 : _k.on(
112
- TUIRoomEngine.TUIRoomEvents.onSendMessageForAllUserDisableChanged,
113
- this.onSendMessageForAllUserDisableChanged
114
- );
115
110
  }
116
111
  unBindRoomEngineEvents() {
117
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
112
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
118
113
  (_a = roomEngine.instance) == null ? void 0 : _a.off(TUIRoomEngine.TUIRoomEvents.onError, this.onError);
119
114
  (_b = roomEngine.instance) == null ? void 0 : _b.off(TUIRoomEngine.TUIRoomEvents.onRoomDismissed, this.onRoomDismissed);
120
115
  (_c = roomEngine.instance) == null ? void 0 : _c.off(TUIRoomEngine.TUIRoomEvents.onUserVoiceVolumeChanged, this.onUserVoiceVolumeChanged);
@@ -125,10 +120,6 @@ const _RoomService = class _RoomService {
125
120
  (_h = roomEngine.instance) == null ? void 0 : _h.off(TUIRoomEngine.TUIRoomEvents.onKickedOffLine, this.onKickedOffLine);
126
121
  (_i = roomEngine.instance) == null ? void 0 : _i.off(TUIRoomEngine.TUIRoomEvents.onAllUserCameraDisableChanged, this.onAllUserCameraDisableChanged);
127
122
  (_j = roomEngine.instance) == null ? void 0 : _j.off(TUIRoomEngine.TUIRoomEvents.onAllUserMicrophoneDisableChanged, this.onAllUserMicrophoneDisableChanged);
128
- (_k = roomEngine.instance) == null ? void 0 : _k.off(
129
- TUIRoomEngine.TUIRoomEvents.onSendMessageForAllUserDisableChanged,
130
- this.onSendMessageForAllUserDisableChanged
131
- );
132
123
  }
133
124
  onError(error) {
134
125
  index$1.default.error("roomEngine.onError: ", error);
@@ -254,21 +245,6 @@ const _RoomService = class _RoomService {
254
245
  this.handleAudioStateChange(isDisable);
255
246
  this.roomStore.setDisableMicrophoneForAllUserByAdmin(isDisable);
256
247
  }
257
- async onSendMessageForAllUserDisableChanged(eventInfo) {
258
- const { isDisable } = eventInfo;
259
- if (isDisable !== this.roomStore.isMessageDisableForAllUser && this.roomStore.localUser.userRole === TUIRoomEngine.TUIRole.kGeneralUser) {
260
- this.handleMessageStateChange(isDisable);
261
- }
262
- this.roomStore.setDisableMessageAllUserByAdmin(isDisable);
263
- }
264
- async handleMessageStateChange(isDisableMessage) {
265
- const tipMessage = isDisableMessage ? t("Disabling text chat for all is enabled") : t("Unblocked all text chat");
266
- this.emit(types.EventType.ROOM_NOTICE_MESSAGE, {
267
- type: "success",
268
- message: tipMessage,
269
- duration: message.MESSAGE_DURATION.NORMAL
270
- });
271
- }
272
248
  async handleAudioStateChange(isDisableAudio) {
273
249
  var _a;
274
250
  const tipMessage = isDisableAudio ? t("All audios disabled") : t("All audios enabled");
@@ -4,7 +4,7 @@ const pinia = require("pinia");
4
4
  const useChatStore = pinia.defineStore("chat", {
5
5
  state: () => ({
6
6
  messageList: [],
7
- isMessageDisableByAdmin: false,
7
+ isMessageDisabled: false,
8
8
  unReadCount: 0,
9
9
  isCompleted: false,
10
10
  nextReqMessageId: ""
@@ -31,12 +31,12 @@ const useChatStore = pinia.defineStore("chat", {
31
31
  this.messageList = filteredMessageList.concat(this.messageList).sort((messageA, messageB) => messageA.sequence - messageB.sequence);
32
32
  },
33
33
  setSendMessageDisableChanged(isDisable) {
34
- this.isMessageDisableByAdmin = isDisable;
34
+ this.isMessageDisabled = isDisable;
35
35
  },
36
36
  reset() {
37
37
  this.messageList = [];
38
38
  this.unReadCount = 0;
39
- this.isMessageDisableByAdmin = false;
39
+ this.isMessageDisabled = false;
40
40
  }
41
41
  }
42
42
  });
@@ -19,9 +19,9 @@ export type UserInfo = {
19
19
  hasScreenStream?: boolean;
20
20
  isVideoVisible?: boolean;
21
21
  isScreenVisible?: boolean;
22
+ isMessageDisabled?: boolean;
22
23
  userRole?: TUIRole;
23
24
  onSeat?: boolean;
24
- isChatMutedByMasterOrAdmin?: boolean;
25
25
  isRequestingUserOpenMic?: boolean;
26
26
  requestUserOpenMicRequestId?: string;
27
27
  isRequestingUserOpenCamera?: boolean;
@@ -52,11 +52,12 @@ const useRoomStore = pinia.defineStore("room", {
52
52
  masterUserId: "",
53
53
  isMicrophoneDisableForAllUser: false,
54
54
  isCameraDisableForAllUser: false,
55
- isMessageDisableForAllUser: false,
56
55
  isSeatEnabled: false,
57
56
  seatMode: TUIRoomEngine.TUISeatMode.kFreeToTake,
58
57
  maxMembersCount: 5,
59
58
  // Includes local streams and screen shares, above which subsequent streams are played
59
+ maxSeatCount: 20,
60
+ roomName: "",
60
61
  hasVideoStreamObject: {},
61
62
  // Visual area user flow list
62
63
  currentStreamIdListInVisibleView: [],
@@ -200,9 +201,9 @@ const useRoomStore = pinia.defineStore("room", {
200
201
  hasScreenStream: false,
201
202
  isVideoVisible: false,
202
203
  isScreenVisible: false,
204
+ isMessageDisabled: false,
203
205
  userRole: TUIRoomEngine.TUIRole.kGeneralUser,
204
206
  onSeat: !this.isSpeakAfterTakingSeatMode,
205
- isChatMutedByMasterOrAdmin: false,
206
207
  isUserApplyingToAnchor: false,
207
208
  isInvitingUserToAnchor: false,
208
209
  cameraStreamInfo: {
@@ -425,9 +426,10 @@ const useRoomStore = pinia.defineStore("room", {
425
426
  roomOwner,
426
427
  isMicrophoneDisableForAllUser,
427
428
  isCameraDisableForAllUser,
428
- isMessageDisableForAllUser,
429
429
  isSeatEnabled,
430
- seatMode
430
+ seatMode,
431
+ maxSeatCount,
432
+ roomName
431
433
  } = roomInfo;
432
434
  if (this.localUser.userId === roomOwner) {
433
435
  this.localUser.userRole = TUIRoomEngine.TUIRole.kRoomOwner;
@@ -435,11 +437,12 @@ const useRoomStore = pinia.defineStore("room", {
435
437
  this.masterUserId = roomOwner;
436
438
  this.isMicrophoneDisableForAllUser = isMicrophoneDisableForAllUser;
437
439
  this.isCameraDisableForAllUser = isCameraDisableForAllUser;
438
- this.isMessageDisableForAllUser = isMessageDisableForAllUser;
439
440
  this.isSeatEnabled = isSeatEnabled;
440
441
  this.seatMode = seatMode;
441
442
  this.canControlSelfAudio = !this.isMicrophoneDisableForAllUser;
442
443
  this.canControlSelfVideo = !this.isCameraDisableForAllUser;
444
+ this.maxSeatCount = maxSeatCount;
445
+ this.roomName = roomName;
443
446
  },
444
447
  setDisableMicrophoneForAllUserByAdmin(isDisable) {
445
448
  this.isMicrophoneDisableForAllUser = isDisable;
@@ -447,9 +450,6 @@ const useRoomStore = pinia.defineStore("room", {
447
450
  setDisableCameraForAllUserByAdmin(isDisable) {
448
451
  this.isCameraDisableForAllUser = isDisable;
449
452
  },
450
- setDisableMessageAllUserByAdmin(isDisable) {
451
- this.isMessageDisableForAllUser = isDisable;
452
- },
453
453
  setMasterUserId(userId) {
454
454
  this.masterUserId = userId;
455
455
  },
@@ -530,7 +530,7 @@ const useRoomStore = pinia.defineStore("room", {
530
530
  setMuteUserChat(userId, muted) {
531
531
  const remoteUserInfo = this.remoteUserObj[userId];
532
532
  if (remoteUserInfo) {
533
- remoteUserInfo.isChatMutedByMasterOrAdmin = muted;
533
+ remoteUserInfo.isMessageDisabled = muted;
534
534
  }
535
535
  },
536
536
  setRemoteUserRole(userId, role) {
@@ -639,12 +639,13 @@ const useRoomStore = pinia.defineStore("room", {
639
639
  this.masterUserId = "";
640
640
  this.isMicrophoneDisableForAllUser = false;
641
641
  this.isCameraDisableForAllUser = false;
642
- this.isMessageDisableForAllUser = false;
643
642
  this.isSeatEnabled = false;
644
643
  this.seatMode = TUIRoomEngine.TUISeatMode.kFreeToTake;
645
644
  this.hasVideoStreamObject = {};
646
645
  this.hasOtherScreenShare = false;
647
646
  this.isOnStateTabActive = true;
647
+ this.maxSeatCount = 20;
648
+ this.roomName = "";
648
649
  }
649
650
  }
650
651
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tencentcloud/roomkit-electron-vue3",
3
- "version": "2.3.3",
3
+ "version": "2.4.1",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.mjs",
6
6
  "types": "./es/index.d.ts",
@@ -20,7 +20,7 @@
20
20
  "dependencies": {
21
21
  "@tencentcloud/chat": "latest",
22
22
  "@tencentcloud/tui-core": "latest",
23
- "@tencentcloud/tuiroom-engine-electron": "^2.3.3",
23
+ "@tencentcloud/tuiroom-engine-electron": "^2.4.1",
24
24
  "@tencentcloud/universal-api": "^2.0.9",
25
25
  "interactjs": "^1.10.26",
26
26
  "mitt": "^3.0.0"
@@ -10,7 +10,7 @@ body, html {
10
10
  margin: 0;
11
11
  padding: 0;
12
12
  user-select: none;
13
- overflow: auto;
13
+ overflow: hidden;
14
14
  touch-action: manipulation;
15
15
  }
16
16