@tencentcloud/roomkit-electron-vue3 2.7.1 → 2.7.2

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 (101) hide show
  1. package/es/components/AITools/AISubtitles.vue.mjs +1 -1
  2. package/es/components/AITools/AISubtitles.vue2.mjs +1 -1
  3. package/es/components/AITools/AITranscription.vue.mjs +1 -1
  4. package/es/components/AITools/AITranscription.vue2.mjs +1 -1
  5. package/es/components/Chat/ChatEditor/index.vue2.mjs +1 -1
  6. package/es/components/Chat/ChatKit/components/TUIChat/chat-header/index.vue2.mjs +1 -1
  7. package/es/components/Chat/ChatKit/components/TUIChat/emoji-config/default-emoji.mjs +4 -4
  8. package/es/components/Chat/ChatKit/components/TUIChat/emoji-config/index.mjs +1 -1
  9. package/es/components/Chat/ChatKit/components/TUIChat/index.vue2.mjs +1 -1
  10. package/es/components/Chat/ChatKit/components/TUIChat/message-input/message-input-quote/index.vue2.mjs +1 -1
  11. package/es/components/Chat/ChatKit/components/TUIChat/message-input-toolbar/emoji-picker/emoji-picker-dialog.vue2.mjs +1 -1
  12. package/es/components/Chat/ChatKit/components/TUIChat/message-input-toolbar/image-upload/index.vue2.mjs +1 -1
  13. package/es/components/Chat/ChatKit/components/TUIChat/message-input-toolbar/video-upload/index.vue2.mjs +1 -1
  14. package/es/components/Chat/ChatKit/components/TUIChat/message-list/index.vue2.mjs +2 -2
  15. package/es/components/Chat/ChatKit/components/TUIChat/message-list/message-elements/message-audio.vue2.mjs +1 -1
  16. package/es/components/Chat/ChatKit/components/TUIChat/message-list/message-elements/message-record/index.vue2.mjs +1 -1
  17. package/es/components/Chat/ChatKit/components/TUIChat/message-list/message-group-application/index.vue2.mjs +2 -2
  18. package/es/components/Chat/ChatKit/components/TUIChat/offlinePushInfoManager/offlinePushInfoManager.mjs +1 -1
  19. package/es/components/Chat/ChatKit/components/TUIChat/utils/sendMessage.mjs +1 -1
  20. package/es/components/Chat/ChatKit/components/common/BottomPopup/index.vue2.mjs +1 -1
  21. package/es/components/Chat/ChatKit/components/common/Dialog/index.vue2.mjs +1 -1
  22. package/es/components/Chat/ChatKit/components/common/Drawer/index.vue2.mjs +1 -1
  23. package/es/components/Chat/ChatKit/components/common/Icon.vue2.mjs +1 -1
  24. package/es/components/Chat/ChatKit/components/common/Overlay/index.vue2.mjs +1 -1
  25. package/es/components/Chat/ChatKit/components/common/Toast/index.mjs +1 -1
  26. package/es/components/Chat/ChatKit/components/common/Toast/index.vue2.mjs +1 -1
  27. package/es/components/Chat/ChatKit/components/common/Transfer/index.vue2.mjs +1 -1
  28. package/es/components/Chat/ChatKit/locales/index.mjs +4 -4
  29. package/es/components/Chat/ChatKit/plugins/plugin-components/message-plugin.vue2.mjs +1 -1
  30. package/es/components/ManageMember/MemberControl/index.vue2.mjs +1 -1
  31. package/es/components/ManageMember/MemberControl/useMemberControlHooks.mjs +1 -1
  32. package/es/components/ManageMember/index.vue2.mjs +1 -1
  33. package/es/components/PreRoom/PasswordDialog.vue2.mjs +1 -1
  34. package/es/components/RoomContent/StreamRegion/StreamPlay/index.vue2.mjs +1 -1
  35. package/es/components/RoomFooter/ApplyControl/MasterApplyControl/index.vue2.mjs +1 -1
  36. package/es/components/RoomFooter/ApplyControl/MemberApplyControl.vue2.mjs +1 -1
  37. package/es/components/RoomFooter/AudioControl.vue2.mjs +1 -1
  38. package/es/components/RoomFooter/BasicBeauty.vue2.mjs +2 -2
  39. package/es/components/RoomFooter/EndControl/index.vue2.mjs +1 -1
  40. package/es/components/RoomFooter/ScreenShareControl/Index.vue2.mjs +1 -1
  41. package/es/components/RoomFooter/ScreenShareControl/ScreenWindowSelectDialog.vue2.mjs +1 -1
  42. package/es/components/RoomFooter/VideoControl.vue2.mjs +2 -2
  43. package/es/components/RoomFooter/VirtualBackground.vue2.mjs +1 -1
  44. package/es/components/RoomFooter/WhiteboardControl.vue.mjs +1 -1
  45. package/es/components/RoomHeader/UserInfo/index.vue.mjs +1 -1
  46. package/es/components/RoomHeader/UserInfo/index.vue2.mjs +2 -1
  47. package/es/components/RoomHeader/index/LayoutControl.vue2.mjs +1 -1
  48. package/es/components/RoomHome/RoomControl/index.vue2.mjs +2 -2
  49. package/es/components/RoomInvite/InvitationNotification.vue2.mjs +1 -1
  50. package/es/components/RoomInvite/index.vue2.mjs +1 -1
  51. package/es/components/RoomSetting/index.vue2.mjs +1 -1
  52. package/es/components/ScheduleConference/Contacts.vue2.mjs +1 -1
  53. package/es/components/ScheduleConference/ScheduleConferencePanel/index.vue2.mjs +1 -1
  54. package/es/components/ScheduleConference/ScheduleRoomControl.vue2.mjs +1 -1
  55. package/es/components/ScheduleConference/ShareLink.vue2.mjs +1 -1
  56. package/es/components/common/VideoProfile.vue2.mjs +1 -1
  57. package/es/components/common/VideoSettingTab.vue2.mjs +2 -2
  58. package/es/components/common/base/Button.vue2.mjs +1 -1
  59. package/es/components/common/base/Dialog/index.vue2.mjs +1 -1
  60. package/es/components/common/base/Input/index.vue2.mjs +1 -1
  61. package/es/components/common/base/Message/Message.vue2.mjs +1 -1
  62. package/es/components/common/base/MessageBox/index.vue2.mjs +1 -1
  63. package/es/components/common/base/SvgIcon.vue2.mjs +1 -1
  64. package/es/constants/room.mjs +1 -3
  65. package/es/extension/RoomMessageCard/RoomMessageCard.vue2.mjs +1 -1
  66. package/es/extension/chatExtension.mjs +3 -6
  67. package/es/hooks/useDeviceManager.mjs +1 -1
  68. package/es/index.mjs +22 -22
  69. package/es/services/manager/MediaManager.mjs +1 -1
  70. package/es/services/manager/roomActionManager.mjs +1 -1
  71. package/es/services/roomService.mjs +1 -1
  72. package/es/stores/basic.mjs +1 -1
  73. package/es/stores/room.mjs +1 -4
  74. package/es/utils/common/logger/index.mjs +1 -1
  75. package/lib/components/AITools/AISubtitles.vue.js +1 -1
  76. package/lib/components/AITools/AISubtitles.vue2.js +1 -1
  77. package/lib/components/AITools/AITranscription.vue.js +1 -1
  78. package/lib/components/AITools/AITranscription.vue2.js +1 -1
  79. package/lib/components/Chat/ChatKit/components/TUIChat/message-input/index.vue2.js +6 -6
  80. package/lib/components/Chat/ChatKit/components/TUIChat/message-list/index.vue2.js +8 -8
  81. package/lib/components/Chat/ChatKit/components/TUIChat/message-list/message-elements/message-quote/index.vue2.js +4 -4
  82. package/lib/components/Chat/ChatKit/components/TUIChat/message-list/message-tool/index.vue2.js +10 -10
  83. package/lib/components/Chat/ChatKit/locales/index.js +4 -4
  84. package/lib/components/RoomContent/StreamContainer/index.vue2.js +6 -6
  85. package/lib/components/RoomFooter/AudioControl.vue2.js +4 -4
  86. package/lib/components/RoomFooter/ScreenShareControl/Index.vue2.js +5 -5
  87. package/lib/components/RoomFooter/VideoControl.vue2.js +4 -4
  88. package/lib/components/RoomHeader/UserInfo/index.vue.js +1 -1
  89. package/lib/components/RoomHeader/UserInfo/index.vue2.js +2 -1
  90. package/lib/conference.vue2.js +12 -12
  91. package/lib/constants/room.js +1 -3
  92. package/lib/extension/chatExtension.js +1 -4
  93. package/lib/hooks/useMasterApplyControl.js +9 -9
  94. package/lib/index.js +22 -22
  95. package/lib/preConference.vue2.js +7 -7
  96. package/lib/stores/room.js +0 -3
  97. package/package.json +2 -2
  98. package/src/TUIRoom/components/AITools/AISubtitles.vue +1 -1
  99. package/src/TUIRoom/components/AITools/AITranscription.vue +1 -1
  100. package/src/TUIRoom/components/RoomHeader/UserInfo/index.vue +2 -5
  101. package/src/TUIRoom/stores/room.ts +0 -3
@@ -3,7 +3,7 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
3
3
  const Vue = require("vue");
4
4
  const pinia = require("pinia");
5
5
  const Message = require("../common/base/Message/Message.js");
6
- const index$1 = require("../common/base/Dialog/index.vue.js");
6
+ const index$2 = require("../common/base/Dialog/index.vue.js");
7
7
  const room = require("../../stores/room.js");
8
8
  const message = require("../../constants/message.js");
9
9
  const index = require("../../locales/index.js");
@@ -13,7 +13,7 @@ const environment = require("../../utils/environment.js");
13
13
  const Button = require("../common/base/Button.vue.js");
14
14
  const AudioMediaControl = require("../common/AudioMediaControl.vue.js");
15
15
  const basic = require("../../stores/basic.js");
16
- const index$2 = require("../common/base/MessageBox/index.js");
16
+ const index$1 = require("../common/base/MessageBox/index.js");
17
17
  const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
18
18
  __name: "AudioControl",
19
19
  emits: ["click"],
@@ -61,7 +61,7 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
61
61
  const microphoneList = await ((_b = roomEngine.instance) == null ? void 0 : _b.getMicDevicesList());
62
62
  const hasMicrophoneDevice = microphoneList.length > 0;
63
63
  if (!hasMicrophoneDevice && !environment.isWeChat) {
64
- index$2.default({
64
+ index$1.default({
65
65
  title: t("Note"),
66
66
  message: t("Microphone not detected on current device"),
67
67
  confirmButtonText: t("Sure")
@@ -135,7 +135,7 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
135
135
  "audio-volume": Vue.unref(userVolumeObj)[Vue.unref(localUser).userId],
136
136
  onClick: handleAudioMediaClick
137
137
  }, null, 8, ["has-more", "is-muted", "is-disabled", "audio-volume"]),
138
- Vue.createVNode(index$1.default, {
138
+ Vue.createVNode(index$2.default, {
139
139
  modelValue: showRequestOpenMicDialog.value,
140
140
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => showRequestOpenMicDialog.value = $event),
141
141
  title: Vue.unref(t)("Tips"),
@@ -14,9 +14,9 @@ const useRoomEngine = require("../../../hooks/useRoomEngine.js");
14
14
  const Message = require("../../common/base/Message/Message.js");
15
15
  const message = require("../../../constants/message.js");
16
16
  const useMitt = require("../../../hooks/useMitt.js");
17
- const index$1 = require("../../common/base/Dialog/index.vue.js");
17
+ const index$2 = require("../../common/base/Dialog/index.vue.js");
18
18
  const Button = require("../../common/base/Button.vue.js");
19
- const index$2 = require("../../../utils/common/logger/index.js");
19
+ const index$1 = require("../../../utils/common/logger/index.js");
20
20
  const _hoisted_1 = { class: "screen-share-control-container" };
21
21
  const logPrefix = "[ScreenShareControl]";
22
22
  const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
@@ -150,7 +150,7 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
150
150
  isSharing.value = false;
151
151
  isLocalUserSharing.value = false;
152
152
  } catch (error) {
153
- index$2.default.error(`${logPrefix}stopScreenShare error:`, error);
153
+ index$1.default.error(`${logPrefix}stopScreenShare error:`, error);
154
154
  }
155
155
  }
156
156
  }
@@ -200,7 +200,7 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
200
200
  ]),
201
201
  _: 1
202
202
  }, 8, ["is-active", "class", "title", "disabled"]),
203
- Vue.createVNode(index$1.default, {
203
+ Vue.createVNode(index$2.default, {
204
204
  modelValue: showStopShareRegion.value,
205
205
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => showStopShareRegion.value = $event),
206
206
  width: "420px",
@@ -247,7 +247,7 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
247
247
  onOnConfirm: onConfirmScreenShare,
248
248
  onOnClose: _cache[2] || (_cache[2] = ($event) => selectDialogVisible.value = false)
249
249
  }, null, 8, ["visible", "screen-list", "window-list"]),
250
- Vue.createVNode(index$1.default, {
250
+ Vue.createVNode(index$2.default, {
251
251
  modelValue: showPermissionVisible.value,
252
252
  "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => showPermissionVisible.value = $event),
253
253
  title: Vue.unref(t)("Grant permission to screen recording"),
@@ -2,7 +2,7 @@
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const Vue = require("vue");
4
4
  const pinia = require("pinia");
5
- const index$1 = require("../common/base/Dialog/index.vue.js");
5
+ const index$2 = require("../common/base/Dialog/index.vue.js");
6
6
  const VideoMediaControl = require("../common/VideoMediaControl.vue.js");
7
7
  const room = require("../../stores/room.js");
8
8
  const message = require("../../constants/message.js");
@@ -14,7 +14,7 @@ const environment = require("../../utils/environment.js");
14
14
  const basic = require("../../stores/basic.js");
15
15
  const Button = require("../common/base/Button.vue.js");
16
16
  const Message = require("../common/base/Message/Message.js");
17
- const index$2 = require("../common/base/MessageBox/index.js");
17
+ const index$1 = require("../common/base/MessageBox/index.js");
18
18
  const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
19
19
  __name: "VideoControl",
20
20
  emits: ["click"],
@@ -65,7 +65,7 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
65
65
  }));
66
66
  const hasCameraDevice = cameraList && cameraList.length > 0;
67
67
  if (!hasCameraDevice && !environment.isWeChat) {
68
- index$2.default({
68
+ index$1.default({
69
69
  title: t("Note"),
70
70
  message: t("Camera not detected on current device"),
71
71
  confirmButtonText: t("Sure")
@@ -141,7 +141,7 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
141
141
  "is-disabled": Vue.unref(isLocalVideoIconDisable),
142
142
  onClick: handleVideoMediaClick
143
143
  }, null, 8, ["has-more", "is-muted", "is-disabled"]),
144
- Vue.createVNode(index$1.default, {
144
+ Vue.createVNode(index$2.default, {
145
145
  modelValue: showRequestOpenCameraDialog.value,
146
146
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => showRequestOpenCameraDialog.value = $event),
147
147
  title: Vue.unref(t)("Tips"),
@@ -3,5 +3,5 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
3
3
  const index_vue_vue_type_script_setup_true_lang = ;/* empty css */
4
4
  ;/* empty css */
5
5
  const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.js");
6
- const UserInfo = /* @__PURE__ */ _pluginVue_exportHelper.default(index_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-be17229c"]]);
6
+ const UserInfo = /* @__PURE__ */ _pluginVue_exportHelper.default(index_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-b5154ce3"]]);
7
7
  exports.default = UserInfo;
@@ -52,6 +52,7 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
52
52
  } = useUserInfoHooks.default();
53
53
  const props = __props;
54
54
  async function saveUserName(userName) {
55
+ const { userId } = props;
55
56
  if (userName.length === 0) {
56
57
  Message.default({
57
58
  type: "warning",
@@ -65,7 +66,7 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
65
66
  avatarUrl: roomStore.localUser.avatarUrl || ""
66
67
  });
67
68
  basicStore.setUserName(userName);
68
- roomStore.setLocalUser({ userName });
69
+ roomStore.updateUserInfo({ userId, userName });
69
70
  emits("update-user-name", userName);
70
71
  closeUserNameEditor();
71
72
  }
@@ -1,21 +1,21 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const Vue = require("vue");
4
- const index = require("./components/RoomHeader/index/index.vue.js");
5
- const index$2 = require("./components/RoomFooter/index/index.vue.js");
4
+ const index$1 = require("./components/RoomHeader/index/index.vue.js");
5
+ const index$3 = require("./components/RoomFooter/index/index.vue.js");
6
6
  const index_vue_vue_type_script_setup_true_lang = require("./components/RoomSidebar/index.vue.js");
7
- const index$1 = require("./components/RoomContent/index.vue.js");
8
- const index$3 = require("./components/RoomSetting/index.vue.js");
7
+ const index$2 = require("./components/RoomContent/index.vue.js");
8
+ const index$4 = require("./components/RoomSetting/index.vue.js");
9
9
  const LoadingOverlay = require("./components/PreRoom/LoadingOverlay.vue.js");
10
10
  const PasswordDialog = require("./components/PreRoom/PasswordDialog.vue.js");
11
11
  const AISubtitles = require("./components/AITools/AISubtitles.vue.js");
12
- const index$4 = require("./components/RoomInvite/index.vue.js");
12
+ const index$5 = require("./components/RoomInvite/index.vue.js");
13
13
  const utils = require("./utils/utils.js");
14
14
  const basic = require("./stores/basic.js");
15
15
  const environment = require("./utils/environment.js");
16
16
  const vTap = require("./directives/vTap.js");
17
17
  const TUIRoomEngine = require("@tencentcloud/tuiroom-engine-electron");
18
- const index$5 = require("./components/common/base/MessageBox/index.js");
18
+ const index = require("./components/common/base/MessageBox/index.js");
19
19
  const Message = require("./components/common/base/Message/Message.js");
20
20
  require("./services/main.js");
21
21
  const roomService = require("./services/roomService.js");
@@ -74,7 +74,7 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
74
74
  callback = () => {
75
75
  }
76
76
  } = data;
77
- index$5.default({
77
+ index.default({
78
78
  title,
79
79
  message,
80
80
  duration,
@@ -255,13 +255,13 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
255
255
  ref: roomRef,
256
256
  class: Vue.normalizeClass(tuiRoomClass.value)
257
257
  }, [
258
- Vue.withDirectives(Vue.createVNode(index.default, {
258
+ Vue.withDirectives(Vue.createVNode(index$1.default, {
259
259
  class: "header",
260
260
  onLogOut: logOut
261
261
  }, null, 512), [
262
262
  [Vue.vShow, showRoomTool.value && Vue.unref(showHeaderTool)]
263
263
  ]),
264
- Vue.withDirectives(Vue.createVNode(index$1.default, {
264
+ Vue.withDirectives(Vue.createVNode(index$2.default, {
265
265
  ref_key: "roomContentRef",
266
266
  ref: roomContentRef,
267
267
  "show-room-tool": showRoomTool.value,
@@ -274,16 +274,16 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
274
274
  { lazy: true }
275
275
  ]
276
276
  ]),
277
- Vue.withDirectives(Vue.createVNode(index$2.default, {
277
+ Vue.withDirectives(Vue.createVNode(index$3.default, {
278
278
  class: "footer",
279
279
  onShowOverlay: handleShowOverlay
280
280
  }, null, 512), [
281
281
  [Vue.vShow, showRoomTool.value]
282
282
  ]),
283
283
  Vue.createVNode(index_vue_vue_type_script_setup_true_lang.default),
284
- Vue.createVNode(index$3.default),
284
+ Vue.createVNode(index$4.default),
285
285
  overlayMap.value.AISubtitlesOverlay.visible ? (Vue.openBlock(), Vue.createBlock(AISubtitles.default, { key: 0 })) : Vue.createCommentVNode("", true),
286
- overlayMap.value.RoomInviteOverlay.visible ? (Vue.openBlock(), Vue.createBlock(index$4.default, { key: 1 })) : Vue.createCommentVNode("", true),
286
+ overlayMap.value.RoomInviteOverlay.visible ? (Vue.openBlock(), Vue.createBlock(index$5.default, { key: 1 })) : Vue.createCommentVNode("", true),
287
287
  isShowLoading.value ? (Vue.openBlock(), Vue.createBlock(LoadingOverlay.default, { key: 2 })) : Vue.createCommentVNode("", true),
288
288
  Vue.createVNode(PasswordDialog.default, {
289
289
  visible: isShowPasswordContainer.value,
@@ -7,9 +7,7 @@ var IconButtonLayout = /* @__PURE__ */ ((IconButtonLayout2) => {
7
7
  return IconButtonLayout2;
8
8
  })(IconButtonLayout || {});
9
9
  ({
10
- videoResolution: TUIRoomEngine.TRTCVideoResolution.TRTCVideoResolution_640_360,
11
- videoFps: 15,
12
- videoBitrate: 800
10
+ videoResolution: TUIRoomEngine.TRTCVideoResolution.TRTCVideoResolution_640_360
13
11
  });
14
12
  var USERS_STATUS = /* @__PURE__ */ ((USERS_STATUS2) => {
15
13
  USERS_STATUS2[USERS_STATUS2["Entered"] = 1] = "Entered";
@@ -398,10 +398,7 @@ const _ChatExtension = class _ChatExtension {
398
398
  }
399
399
  this.message = message;
400
400
  this.messagePayload = this.parseMessageData(message);
401
- const roomParam = {
402
- isOpenCamera: true,
403
- isOpenMicrophone: true
404
- };
401
+ const roomParam = {};
405
402
  this.roomInit();
406
403
  try {
407
404
  await ((_c = this.service) == null ? void 0 : _c.join(roomId, { roomParam }));
@@ -8,9 +8,9 @@ const message = require("../constants/message.js");
8
8
  const room = require("../stores/room.js");
9
9
  const pinia = require("pinia");
10
10
  const index = require("../locales/index.js");
11
- const index$1 = require("../utils/common/logger/index.js");
11
+ const index$2 = require("../utils/common/logger/index.js");
12
12
  const basic = require("../stores/basic.js");
13
- const index$2 = require("../components/common/base/Notification/index.js");
13
+ const index$1 = require("../components/common/base/Notification/index.js");
14
14
  const environment = require("../utils/environment.js");
15
15
  const roomEngine = useRoomEngine.default();
16
16
  function useMasterApplyControl() {
@@ -50,7 +50,7 @@ function useMasterApplyControl() {
50
50
  }));
51
51
  roomStore.removeApplyToAnchorUser(requestId);
52
52
  } else {
53
- index$1.default.warn(
53
+ index$2.default.warn(
54
54
  "Failed to process the stage application. The data is abnormal. Please try again!",
55
55
  userInfo
56
56
  );
@@ -59,7 +59,7 @@ function useMasterApplyControl() {
59
59
  if (error.code === TUIRoomEngine.TUIErrorCode.ERR_ALL_SEAT_OCCUPIED) {
60
60
  Message.default({ type: "warning", message: t("The stage is full") });
61
61
  } else {
62
- index$1.default.error("Failure to process a user request", error);
62
+ index$2.default.error("Failure to process a user request", error);
63
63
  }
64
64
  }
65
65
  }
@@ -74,7 +74,7 @@ function useMasterApplyControl() {
74
74
  }));
75
75
  roomStore.removeApplyToAnchorUser(requestId);
76
76
  } else {
77
- index$1.default.warn(
77
+ index$2.default.warn(
78
78
  "Failed to process the stage application. The data is abnormal. Please try again!",
79
79
  userInfo
80
80
  );
@@ -83,7 +83,7 @@ function useMasterApplyControl() {
83
83
  if (error.code === TUIRoomEngine.TUIErrorCode.ERR_ALL_SEAT_OCCUPIED) {
84
84
  Message.default({ type: "warning", message: t("The stage is full") });
85
85
  } else {
86
- index$1.default.error("Failed application for consent to go on stage", error);
86
+ index$2.default.error("Failed application for consent to go on stage", error);
87
87
  }
88
88
  }
89
89
  }
@@ -97,7 +97,7 @@ function useMasterApplyControl() {
97
97
  }));
98
98
  roomStore.removeApplyToAnchorUser(requestId);
99
99
  } else {
100
- index$1.default.warn(
100
+ index$2.default.warn(
101
101
  "Failed to process the stage application. The data is abnormal. Please try again!",
102
102
  userInfo
103
103
  );
@@ -124,7 +124,7 @@ function useMasterApplyControl() {
124
124
  }
125
125
  } catch (error) {
126
126
  if (!hasErrorOccurred) {
127
- index$1.default.error(actionFailedMessage);
127
+ index$2.default.error(actionFailedMessage);
128
128
  Message.default({
129
129
  type: "warning",
130
130
  message: t("The stage is full"),
@@ -272,7 +272,7 @@ function useMasterApplyControl() {
272
272
  const cancelButtonText = environment.isMobile ? void 0 : onlyOneUserTakeStage ? t("Reject") : t("Neglect");
273
273
  const confirm = () => handleConfirm(onlyOneUserTakeStage, firstUser == null ? void 0 : firstUser.userId);
274
274
  const cancel = () => handleCancel(onlyOneUserTakeStage, firstUser == null ? void 0 : firstUser.userId);
275
- notification = index$2.default({
275
+ notification = index$1.default({
276
276
  message: message2,
277
277
  confirmButtonText,
278
278
  cancelButtonText,
package/lib/index.js CHANGED
@@ -440,29 +440,29 @@ input[data-v-ea50ea46]:disabled {
440
440
  .tui-theme-black .t-message.t-message-info[data-v-ca40f412] {
441
441
  color: #DCE7FA;
442
442
  background-color: #4A506B;
443
- }.tui-theme-white .user-control-container[data-v-be17229c] {
443
+ }.tui-theme-white .user-control-container[data-v-b5154ce3] {
444
444
  --filter-color: drop-shadow(0px 0px 4px rgba(32, 77, 141, 0.03))
445
445
  drop-shadow(0px 4px 10px rgba(32, 77, 141, 0.06))
446
446
  drop-shadow(0px 1px 14px rgba(32, 77, 141, 0.05));
447
447
  }
448
- .tui-theme-black .user-control-container[data-v-be17229c] {
448
+ .tui-theme-black .user-control-container[data-v-b5154ce3] {
449
449
  --filter-color: drop-shadow(0px 8px 40px rgba(23, 25, 31, 0.6))
450
450
  drop-shadow(0px 4px 12px rgba(23, 25, 31, 0.4));
451
451
  }
452
- .user-info-container[data-v-be17229c] {
452
+ .user-info-container[data-v-b5154ce3] {
453
453
  position: relative;
454
454
  }
455
- .user-info-container .user-info-content[data-v-be17229c] {
455
+ .user-info-container .user-info-content[data-v-b5154ce3] {
456
456
  display: flex;
457
457
  align-items: center;
458
458
  cursor: pointer;
459
459
  }
460
- .user-info-container .user-info-content .avatar[data-v-be17229c] {
460
+ .user-info-container .user-info-content .avatar[data-v-b5154ce3] {
461
461
  width: 28px;
462
462
  height: 28px;
463
463
  border-radius: 50%;
464
464
  }
465
- .user-info-container .user-info-content .name[data-v-be17229c] {
465
+ .user-info-container .user-info-content .name[data-v-b5154ce3] {
466
466
  max-width: 100px;
467
467
  margin-left: 10px;
468
468
  overflow: hidden;
@@ -471,14 +471,14 @@ input[data-v-ea50ea46]:disabled {
471
471
  text-overflow: ellipsis;
472
472
  white-space: nowrap;
473
473
  }
474
- .user-info-container .user-info-content .down-icon[data-v-be17229c] {
474
+ .user-info-container .user-info-content .down-icon[data-v-b5154ce3] {
475
475
  margin-left: 4px;
476
476
  }
477
- .user-info-container .user-info-content .up-icon[data-v-be17229c] {
477
+ .user-info-container .user-info-content .up-icon[data-v-b5154ce3] {
478
478
  margin-left: 4px;
479
479
  transform: rotate(180deg);
480
480
  }
481
- .user-info-container .user-control-container[data-v-be17229c] {
481
+ .user-info-container .user-control-container[data-v-b5154ce3] {
482
482
  position: absolute;
483
483
  top: calc(100% + 15px);
484
484
  right: 0;
@@ -488,7 +488,7 @@ input[data-v-ea50ea46]:disabled {
488
488
  filter: var(--filter-color);
489
489
  border-radius: 8px;
490
490
  }
491
- .user-info-container .user-control-container[data-v-be17229c]::before {
491
+ .user-info-container .user-control-container[data-v-b5154ce3]::before {
492
492
  position: absolute;
493
493
  top: -20px;
494
494
  right: 20px;
@@ -499,7 +499,7 @@ input[data-v-ea50ea46]:disabled {
499
499
  border-bottom: 10px solid #fff;
500
500
  border-left: 10px solid transparent;
501
501
  }
502
- .user-info-container .user-control-container[data-v-be17229c]::after {
502
+ .user-info-container .user-control-container[data-v-b5154ce3]::after {
503
503
  position: absolute;
504
504
  top: -20px;
505
505
  left: 0;
@@ -508,25 +508,25 @@ input[data-v-ea50ea46]:disabled {
508
508
  content: "";
509
509
  background-color: transparent;
510
510
  }
511
- .user-info-container .user-control-container .user-control-item-foot[data-v-be17229c],
512
- .user-info-container .user-control-container .user-control-item-head[data-v-be17229c] {
511
+ .user-info-container .user-control-container .user-control-item-foot[data-v-b5154ce3],
512
+ .user-info-container .user-control-container .user-control-item-head[data-v-b5154ce3] {
513
513
  height: 20px;
514
514
  font-size: 14px;
515
515
  color: #4f586b;
516
516
  text-align: center;
517
517
  cursor: pointer;
518
518
  }
519
- .edit-content[data-v-be17229c] {
519
+ .edit-content[data-v-b5154ce3] {
520
520
  display: flex;
521
521
  align-items: center;
522
522
  width: 100%;
523
523
  }
524
- .edit-content .edit-name-input[data-v-be17229c] {
524
+ .edit-content .edit-name-input[data-v-b5154ce3] {
525
525
  flex-grow: 1;
526
526
  width: auto;
527
527
  margin-left: 16px;
528
528
  }
529
- .button[data-v-be17229c] {
529
+ .button[data-v-b5154ce3] {
530
530
  margin-left: 12px;
531
531
  }.tui-theme-black .icon-button-container[data-v-796846eb] {
532
532
  --icon-button-hover: rgba(46, 50, 61, 0.7);
@@ -7733,15 +7733,15 @@ input[data-v-1927e971]:focus, input[data-v-1927e971]:active, textarea[data-v-192
7733
7733
  flex-direction: column;
7734
7734
  height: 100%;
7735
7735
  padding: 20px;
7736
- }.conversation[data-v-631b02ec] {
7736
+ }.conversation[data-v-35b9944f] {
7737
7737
  height: 100%;
7738
7738
  padding: 20px;
7739
7739
  overflow-y: auto;
7740
7740
  }
7741
- .conversation-group[data-v-631b02ec] {
7741
+ .conversation-group[data-v-35b9944f] {
7742
7742
  margin-bottom: 20px;
7743
7743
  }
7744
- .title[data-v-631b02ec] {
7744
+ .title[data-v-35b9944f] {
7745
7745
  display: flex;
7746
7746
  gap: 10px;
7747
7747
  align-items: center;
@@ -7751,13 +7751,13 @@ input[data-v-1927e971]:focus, input[data-v-1927e971]:active, textarea[data-v-192
7751
7751
  color: var(--font-color-4);
7752
7752
  text-align: left;
7753
7753
  }
7754
- .title .speaker[data-v-631b02ec] {
7754
+ .title .speaker[data-v-35b9944f] {
7755
7755
  max-width: 150px;
7756
7756
  overflow: hidden;
7757
7757
  text-overflow: ellipsis;
7758
7758
  white-space: nowrap;
7759
7759
  }
7760
- .content[data-v-631b02ec] {
7760
+ .content[data-v-35b9944f] {
7761
7761
  padding: 8px;
7762
7762
  margin-top: 5px;
7763
7763
  font-size: 14px;
@@ -8509,7 +8509,7 @@ input[data-v-1927e971]:focus, input[data-v-1927e971]:active, textarea[data-v-192
8509
8509
  }
8510
8510
  .button[data-v-6cdda61e] {
8511
8511
  margin-left: 12px;
8512
- }.ai-subtitles[data-v-c187363f] {
8512
+ }.ai-subtitles[data-v-cacf47e3] {
8513
8513
  position: absolute;
8514
8514
  bottom: 80px;
8515
8515
  left: 50%;
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const Vue = require("vue");
4
- const index = require("./components/RoomHeader/UserInfo/index.vue.js");
5
- const index$1 = require("./components/RoomHome/RoomControl/index.vue.js");
4
+ const index$1 = require("./components/RoomHeader/UserInfo/index.vue.js");
5
+ const index$2 = require("./components/RoomHome/RoomControl/index.vue.js");
6
6
  const Language_vue_vue_type_script_setup_true_lang = require("./components/common/Language.vue.js");
7
7
  const SwitchTheme_vue_vue_type_script_setup_true_lang = require("./components/common/SwitchTheme.vue.js");
8
8
  require("./services/main.js");
@@ -16,7 +16,7 @@ require("@tencentcloud/tui-core");
16
16
  const environment = require("./utils/environment.js");
17
17
  const ScheduleRoomList = require("./components/ScheduleConference/ScheduleRoomList.vue.js");
18
18
  const Logo = require("./components/common/Logo.vue.js");
19
- const index$2 = require("./components/common/base/MessageBox/index.js");
19
+ const index = require("./components/common/base/MessageBox/index.js");
20
20
  const Message = require("./components/common/base/Message/Message.js");
21
21
  const InvitationNotification = require("./components/RoomInvite/InvitationNotification.vue.js");
22
22
  const _hoisted_1 = { class: "header" };
@@ -75,7 +75,7 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
75
75
  callback = () => {
76
76
  }
77
77
  } = data;
78
- index$2.default({
78
+ index.default({
79
79
  title,
80
80
  message,
81
81
  duration,
@@ -111,7 +111,7 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
111
111
  ]),
112
112
  Vue.createElementVNode("div", _hoisted_3, [
113
113
  Vue.createVNode(Language_vue_vue_type_script_setup_true_lang.default, { class: "header-item language" }),
114
- Vue.createVNode(index.default, {
114
+ Vue.createVNode(index$1.default, {
115
115
  class: "header-item user-info",
116
116
  "user-id": props.userInfo.userId,
117
117
  "user-name": props.userInfo.userName,
@@ -122,7 +122,7 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
122
122
  }, null, 8, ["user-id", "user-name", "avatar-url", "is-show-edit-name"])
123
123
  ])
124
124
  ]),
125
- Vue.unref(environment.isMobile) ? (Vue.openBlock(), Vue.createBlock(index$1.default, {
125
+ Vue.unref(environment.isMobile) ? (Vue.openBlock(), Vue.createBlock(index$2.default, {
126
126
  key: 0,
127
127
  ref_key: "roomControlRef",
128
128
  ref: roomControlRef,
@@ -136,7 +136,7 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
136
136
  [Vue.vShow, props.isShowLogo]
137
137
  ]),
138
138
  Vue.createElementVNode("div", _hoisted_5, [
139
- Vue.createVNode(index$1.default, {
139
+ Vue.createVNode(index$2.default, {
140
140
  ref_key: "roomControlRef",
141
141
  ref: roomControlRef,
142
142
  "given-room-id": props.roomId,
@@ -412,9 +412,6 @@ const useRoomStore = pinia.defineStore("room", {
412
412
  updateVideoQuality(quality) {
413
413
  this.localVideoQuality = quality;
414
414
  },
415
- setLocalUser(obj) {
416
- Object.assign(this.localUser, obj);
417
- },
418
415
  setDeviceList(type, deviceList) {
419
416
  switch (type) {
420
417
  case TUIRoomEngine.TUIMediaDeviceType.kMediaDeviceTypeVideoCamera:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tencentcloud/roomkit-electron-vue3",
3
- "version": "2.7.1",
3
+ "version": "2.7.2",
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.7.1",
23
+ "@tencentcloud/tuiroom-engine-electron": "^2.7.2",
24
24
  "@tencentcloud/chat-uikit-engine": "2.2.7",
25
25
  "@tencentcloud/chat-uikit-vue": "2.2.7",
26
26
  "@tencentcloud/universal-api": "^2.0.9",
@@ -32,7 +32,7 @@ const handleAISubtitles = (data?: AITaskEvent[AI_TASK.TRANSCRIPTION_TASK]) => {
32
32
  };
33
33
 
34
34
  onMounted(() => {
35
- roomService.dataReportManager.reportCount(MetricsKey.AITask);
35
+ roomService.dataReportManager.reportCount(MetricsKey.aiTask);
36
36
  roomService.aiTask.on(AI_TASK.TRANSCRIPTION_TASK, handleAISubtitles);
37
37
  });
38
38
 
@@ -116,7 +116,7 @@ const handleAITranscriptionTask = async (data?: {
116
116
  rawTranscribedMessageList.value = [...data.transcribedMessageList];
117
117
  };
118
118
  onMounted(() => {
119
- roomService.dataReportManager.reportCount(MetricsKey.AITask);
119
+ roomService.dataReportManager.reportCount(MetricsKey.aiTask);
120
120
  roomService.aiTask.on(AI_TASK.TRANSCRIPTION_TASK, handleAITranscriptionTask);
121
121
  });
122
122
  onUnmounted(() => {
@@ -97,11 +97,8 @@ const props = defineProps<{
97
97
  isShowEditName?: boolean;
98
98
  }>();
99
99
 
100
- /**
101
- * Save the new userName
102
- *
103
- **/
104
100
  async function saveUserName(userName: string) {
101
+ const { userId } = props;
105
102
  if (userName.length === 0) {
106
103
  TUIMessage({
107
104
  type: 'warning',
@@ -115,7 +112,7 @@ async function saveUserName(userName: string) {
115
112
  avatarUrl: roomStore.localUser.avatarUrl || '',
116
113
  });
117
114
  basicStore.setUserName(userName);
118
- roomStore.setLocalUser({ userName });
115
+ roomStore.updateUserInfo({ userId, userName });
119
116
  emits('update-user-name', userName);
120
117
  closeUserNameEditor();
121
118
  }
@@ -530,9 +530,6 @@ export const useRoomStore = defineStore('room', {
530
530
  updateVideoQuality(quality: TUIVideoQuality) {
531
531
  this.localVideoQuality = quality;
532
532
  },
533
- setLocalUser(obj: Record<string, any>) {
534
- Object.assign(this.localUser, obj);
535
- },
536
533
  setDeviceList(
537
534
  type: TUIMediaDeviceType,
538
535
  deviceList: { deviceId: string; deviceName: string }[]