@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.
- package/es/components/Chat/ChatEditor/index.vue.mjs +1 -1
- package/es/components/Chat/ChatEditor/index.vue2.mjs +4 -4
- package/es/components/Chat/ChatEditor/useChatEditor.d.ts +1 -2
- package/es/components/Chat/ChatEditor/useChatEditor.mjs +4 -12
- package/es/components/ManageMember/MemberControl/index.vue.mjs +1 -1
- package/es/components/ManageMember/MemberControl/index.vue2.mjs +5 -4
- package/es/components/ManageMember/MemberControl/useMemberControlHooks.mjs +35 -12
- package/es/components/ManageMember/useIndexHooks.mjs +2 -1
- package/es/components/RoomFooter/ApplyControl/MemberApplyControl.vue.mjs +1 -1
- package/es/components/RoomFooter/ApplyControl/MemberApplyControl.vue2.mjs +2 -2
- package/es/components/RoomFooter/EndControl/useEndControlHooks.mjs +1 -1
- package/es/components/RoomFooter/VirtualBackground.vue.mjs +1 -1
- package/es/components/RoomFooter/VirtualBackground.vue2.mjs +87 -27
- package/es/components/RoomFooter/index/index.vue.mjs +1 -1
- package/es/components/RoomFooter/index/index.vue2.mjs +0 -2
- package/es/components/RoomHeader/RoomInfo/useRoomInfoHooks.mjs +2 -2
- package/es/components/RoomHeader/index/LayoutControl.vue.mjs +1 -1
- package/es/components/RoomHeader/index/LayoutControl.vue2.mjs +1 -3
- package/es/components/RoomHeader/index/NetworkInfo.vue.mjs +1 -1
- package/es/components/RoomHeader/index/NetworkInfo.vue2.mjs +0 -2
- package/es/components/common/base/MessageBox/index.mjs +3 -1
- package/es/conference.d.ts +1 -1
- package/es/conference.mjs +9 -0
- package/es/conference.vue.mjs +1 -1
- package/es/conference.vue2.mjs +1 -14
- package/es/constants/room.d.ts +3 -1
- package/es/extension/RoomMessageCard/RoomMessageCard.vue.mjs +1 -1
- package/es/extension/RoomMessageCard/RoomMessageCard.vue2.mjs +2 -2
- package/es/extension/chatExtension.mjs +4 -2
- package/es/hooks/useDeviceManager.d.ts +3 -1
- package/es/hooks/useMasterApplyControl.mjs +16 -10
- package/es/hooks/useRoomEngine.d.ts +3 -1
- package/es/index.d.ts +3 -2
- package/es/index.mjs +1519 -1456
- package/es/locales/en-US.d.ts +9 -9
- package/es/locales/en-US.mjs +10 -10
- package/es/locales/zh-CN.d.ts +11 -11
- package/es/locales/zh-CN.mjs +12 -12
- package/es/services/function/virtualBackground.d.ts +2 -0
- package/es/services/function/virtualBackground.mjs +19 -9
- package/es/services/function/waterMark.mjs +3 -0
- package/es/services/manager/componentManager.mjs +1 -1
- package/es/services/manager/roomActionManager.mjs +1 -1
- package/es/services/roomService.d.ts +3 -4
- package/es/services/roomService.mjs +2 -26
- package/es/stores/chat.mjs +3 -3
- package/es/stores/room.d.ts +1 -1
- package/es/stores/room.mjs +11 -10
- package/lib/components/Chat/ChatEditor/index.vue.js +1 -1
- package/lib/components/Chat/ChatEditor/index.vue2.js +4 -4
- package/lib/components/Chat/ChatEditor/useChatEditor.d.ts +1 -2
- package/lib/components/Chat/ChatEditor/useChatEditor.js +3 -11
- package/lib/components/ManageMember/MemberControl/index.vue.js +1 -1
- package/lib/components/ManageMember/MemberControl/index.vue2.js +4 -3
- package/lib/components/ManageMember/MemberControl/useMemberControlHooks.js +35 -12
- package/lib/components/ManageMember/useIndexHooks.js +2 -1
- package/lib/components/RoomFooter/ApplyControl/MemberApplyControl.vue.js +1 -1
- package/lib/components/RoomFooter/ApplyControl/MemberApplyControl.vue2.js +2 -2
- package/lib/components/RoomFooter/EndControl/useEndControlHooks.js +1 -1
- package/lib/components/RoomFooter/VirtualBackground.vue.js +1 -1
- package/lib/components/RoomFooter/VirtualBackground.vue2.js +86 -26
- package/lib/components/RoomFooter/index/index.vue.js +1 -1
- package/lib/components/RoomFooter/index/index.vue2.js +0 -2
- package/lib/components/RoomHeader/RoomInfo/useRoomInfoHooks.js +2 -2
- package/lib/components/RoomHeader/index/LayoutControl.vue.js +1 -1
- package/lib/components/RoomHeader/index/LayoutControl.vue2.js +1 -3
- package/lib/components/RoomHeader/index/NetworkInfo.vue.js +1 -1
- package/lib/components/RoomHeader/index/NetworkInfo.vue2.js +0 -2
- package/lib/components/common/base/MessageBox/index.js +3 -1
- package/lib/conference.d.ts +1 -1
- package/lib/conference.js +9 -0
- package/lib/conference.vue.js +1 -1
- package/lib/conference.vue2.js +10 -23
- package/lib/constants/room.d.ts +3 -1
- package/lib/extension/RoomMessageCard/RoomMessageCard.vue.js +1 -1
- package/lib/extension/RoomMessageCard/RoomMessageCard.vue2.js +2 -2
- package/lib/extension/chatExtension.js +4 -2
- package/lib/hooks/useDeviceManager.d.ts +3 -1
- package/lib/hooks/useMasterApplyControl.js +16 -10
- package/lib/hooks/useRoomEngine.d.ts +3 -1
- package/lib/index.d.ts +3 -2
- package/lib/index.js +1517 -1454
- package/lib/locales/en-US.d.ts +9 -9
- package/lib/locales/en-US.js +10 -10
- package/lib/locales/zh-CN.d.ts +11 -11
- package/lib/locales/zh-CN.js +12 -12
- package/lib/services/function/virtualBackground.d.ts +2 -0
- package/lib/services/function/virtualBackground.js +19 -9
- package/lib/services/function/waterMark.js +3 -0
- package/lib/services/manager/componentManager.js +1 -1
- package/lib/services/manager/roomActionManager.js +1 -1
- package/lib/services/roomService.d.ts +3 -4
- package/lib/services/roomService.js +2 -26
- package/lib/stores/chat.js +3 -3
- package/lib/stores/room.d.ts +1 -1
- package/lib/stores/room.js +11 -10
- package/package.json +2 -2
- package/src/TUIRoom/assets/style/global.scss +1 -1
- package/src/TUIRoom/components/Chat/ChatEditor/index.vue +4 -4
- package/src/TUIRoom/components/Chat/ChatEditor/useChatEditor.ts +4 -13
- package/src/TUIRoom/components/ManageMember/MemberControl/index.vue +5 -4
- package/src/TUIRoom/components/ManageMember/MemberControl/useMemberControlHooks.ts +36 -13
- package/src/TUIRoom/components/ManageMember/useIndexHooks.ts +3 -2
- package/src/TUIRoom/components/RoomFooter/ApplyControl/MemberApplyControl.vue +2 -2
- package/src/TUIRoom/components/RoomFooter/EndControl/useEndControlHooks.ts +1 -1
- package/src/TUIRoom/components/RoomFooter/VirtualBackground.vue +100 -16
- package/src/TUIRoom/components/RoomFooter/index/index.vue +0 -3
- package/src/TUIRoom/components/RoomHeader/RoomInfo/useRoomInfoHooks.ts +2 -2
- package/src/TUIRoom/components/RoomHeader/index/LayoutControl.vue +0 -2
- package/src/TUIRoom/components/RoomHeader/index/NetworkInfo.vue +0 -2
- package/src/TUIRoom/components/common/base/MessageBox/index.ts +2 -1
- package/src/TUIRoom/conference.vue +8 -13
- package/src/TUIRoom/extension/RoomMessageCard/RoomMessageCard.vue +1 -1
- package/src/TUIRoom/extension/RoomMessageCard/roomMessageCard.scss +3 -0
- package/src/TUIRoom/extension/chatExtension.ts +3 -1
- package/src/TUIRoom/hooks/useMasterApplyControl.ts +15 -10
- package/src/TUIRoom/index.ts +12 -3
- package/src/TUIRoom/locales/en-US.ts +9 -9
- package/src/TUIRoom/locales/zh-CN.ts +11 -11
- package/src/TUIRoom/services/function/virtualBackground.ts +21 -9
- package/src/TUIRoom/services/function/waterMark.ts +6 -0
- package/src/TUIRoom/services/manager/componentManager.ts +1 -1
- package/src/TUIRoom/services/manager/roomActionManager.ts +1 -1
- package/src/TUIRoom/services/roomService.ts +0 -29
- package/src/TUIRoom/stores/chat.ts +5 -6
- package/src/TUIRoom/stores/room.ts +13 -12
- package/es/utils/aegis/config.mjs +0 -12
- package/es/utils/aegis/index.mjs +0 -63
- package/lib/utils/aegis/config.js +0 -12
- package/lib/utils/aegis/index.js +0 -63
package/lib/constants/room.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { TRTCVideoResolution } from '@tencentcloud/tuiroom-engine-electron';
|
|
2
|
+
|
|
1
3
|
export declare enum SpeechMode {
|
|
2
4
|
FREE_SPEECH = "FreeSpeech",
|
|
3
5
|
APPLY_SPEECH = "ApplySpeech"
|
|
@@ -13,7 +15,7 @@ export declare enum MediaDeviceState {
|
|
|
13
15
|
UNAVAILABLE = "UNAVAILABLE"
|
|
14
16
|
}
|
|
15
17
|
export declare const SMALL_VIDEO_ENC_PARAM: {
|
|
16
|
-
videoResolution:
|
|
18
|
+
videoResolution: TRTCVideoResolution;
|
|
17
19
|
videoFps: number;
|
|
18
20
|
videoBitrate: number;
|
|
19
21
|
};
|
|
@@ -3,5 +3,5 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
3
3
|
const RoomMessageCard_vue_vue_type_script_setup_true_lang = require("./RoomMessageCard.vue2.js");
|
|
4
4
|
require("./RoomMessageCard.vue3.js");
|
|
5
5
|
const _pluginVue_exportHelper = require("../../_virtual/_plugin-vue_export-helper.js");
|
|
6
|
-
const RoomMessageCard = /* @__PURE__ */ _pluginVue_exportHelper.default(RoomMessageCard_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-
|
|
6
|
+
const RoomMessageCard = /* @__PURE__ */ _pluginVue_exportHelper.default(RoomMessageCard_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-95ab4274"]]);
|
|
7
7
|
exports.default = RoomMessageCard;
|
|
@@ -4,7 +4,7 @@ const Vue = require("vue");
|
|
|
4
4
|
const chatExtension = require("../chatExtension.js");
|
|
5
5
|
const handleRoomMessage = require("./handleRoomMessage.js");
|
|
6
6
|
const index = require("../../locales/index.js");
|
|
7
|
-
const _withScopeId = (n) => (Vue.pushScopeId("data-v-
|
|
7
|
+
const _withScopeId = (n) => (Vue.pushScopeId("data-v-95ab4274"), n = n(), Vue.popScopeId(), n);
|
|
8
8
|
const _hoisted_1 = { class: "content" };
|
|
9
9
|
const _hoisted_2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ Vue.createElementVNode("span", { class: "icon" }, null, -1));
|
|
10
10
|
const _hoisted_3 = { key: 0 };
|
|
@@ -169,7 +169,7 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
169
169
|
Vue.unref(chatExtension.RoomState).CREATED === roomCardData.value.roomState ? (Vue.openBlock(), Vue.createElementBlock("p", _hoisted_3, Vue.toDisplayString(Vue.unref(t)("Meeting in progress")), 1)) : (Vue.openBlock(), Vue.createElementBlock("p", _hoisted_4, Vue.toDisplayString(Vue.unref(t)("Meeting")), 1))
|
|
170
170
|
], 2),
|
|
171
171
|
Vue.createElementVNode("div", _hoisted_5, [
|
|
172
|
-
Vue.createElementVNode("div", _hoisted_6, Vue.toDisplayString(`${roomCardData.value.ownerName || roomCardData.value.owner}${Vue.unref(t)("Quick
|
|
172
|
+
Vue.createElementVNode("div", _hoisted_6, Vue.toDisplayString(`${roomCardData.value.ownerName || roomCardData.value.owner}${Vue.unref(t)("Quick Conference")}`), 1),
|
|
173
173
|
Vue.createElementVNode("ul", _hoisted_7, [
|
|
174
174
|
(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(roomCardData.value.userList, (user, index2) => {
|
|
175
175
|
return Vue.openBlock(), Vue.createElementBlock(Vue.Fragment, {
|
|
@@ -210,7 +210,7 @@ const _ChatExtension = class _ChatExtension {
|
|
|
210
210
|
const chatType = params == null ? void 0 : params.chatType;
|
|
211
211
|
const extension = {
|
|
212
212
|
weight: -1,
|
|
213
|
-
text: ((_a = this.service) == null ? void 0 : _a.t("quick
|
|
213
|
+
text: ((_a = this.service) == null ? void 0 : _a.t("quick conference")) || "快速会议",
|
|
214
214
|
icon: "https://qcloudimg.tencent-cloud.cn/raw/148ab10dfe654076b41f0d0945bb82e8.png",
|
|
215
215
|
data: {
|
|
216
216
|
name: "quickRoom"
|
|
@@ -307,8 +307,10 @@ const _ChatExtension = class _ChatExtension {
|
|
|
307
307
|
roomService.roomService.basicStore.setScene("chat");
|
|
308
308
|
roomService.roomService.componentManager.setComponentConfig({
|
|
309
309
|
SwitchTheme: { visible: false },
|
|
310
|
+
Language: { visible: false },
|
|
310
311
|
InviteControl: { visible: false },
|
|
311
|
-
RoomLink: { visible: false }
|
|
312
|
+
RoomLink: { visible: false },
|
|
313
|
+
UserInfo: { visible: false }
|
|
312
314
|
});
|
|
313
315
|
this.chatContext = tuiCore.TUILogin.getContext();
|
|
314
316
|
this.myProfile = await this.getMyProfile();
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { TUIRoomDeviceManager } from '@tencentcloud/tuiroom-engine-electron';
|
|
2
|
+
|
|
1
3
|
export default function (options?: {
|
|
2
4
|
listenForDeviceChange: boolean;
|
|
3
5
|
}): {
|
|
4
6
|
deviceManager: {
|
|
5
|
-
instance:
|
|
7
|
+
instance: TUIRoomDeviceManager | null | undefined;
|
|
6
8
|
};
|
|
7
9
|
initMediaDeviceList: () => Promise<void>;
|
|
8
10
|
};
|
|
@@ -52,7 +52,7 @@ function useMasterApplyControl() {
|
|
|
52
52
|
}
|
|
53
53
|
} catch (error) {
|
|
54
54
|
if (error.code === TUIRoomEngine.TUIErrorCode.ERR_ALL_SEAT_OCCUPIED) {
|
|
55
|
-
Message.default({ type: "warning", message: t("The
|
|
55
|
+
Message.default({ type: "warning", message: t("The stage is full") });
|
|
56
56
|
} else {
|
|
57
57
|
index$1.default.error("Failure to process a user request", error);
|
|
58
58
|
}
|
|
@@ -70,7 +70,7 @@ function useMasterApplyControl() {
|
|
|
70
70
|
}
|
|
71
71
|
} catch (error) {
|
|
72
72
|
if (error.code === TUIRoomEngine.TUIErrorCode.ERR_ALL_SEAT_OCCUPIED) {
|
|
73
|
-
Message.default({ type: "warning", message: t("The
|
|
73
|
+
Message.default({ type: "warning", message: t("The stage is full") });
|
|
74
74
|
} else {
|
|
75
75
|
index$1.default.error("Failed application for consent to go on stage", error);
|
|
76
76
|
}
|
|
@@ -91,12 +91,13 @@ function useMasterApplyControl() {
|
|
|
91
91
|
}
|
|
92
92
|
async function handleAllUserApply(isAgreeOrRejectAllUserApply) {
|
|
93
93
|
var _a;
|
|
94
|
+
let hasErrorOccurred = false;
|
|
94
95
|
const applyUserList = applyToAnchorList.value.map((item) => ({
|
|
95
96
|
userId: item.userId,
|
|
96
97
|
userName: item.userName,
|
|
97
98
|
applyToAnchorRequestId: item.applyToAnchorRequestId
|
|
98
99
|
}));
|
|
99
|
-
for (const {
|
|
100
|
+
for (const { applyToAnchorRequestId } of applyUserList) {
|
|
100
101
|
const action = isAgreeOrRejectAllUserApply ? "Agree" : "Reject";
|
|
101
102
|
const actionFailedMessage = `${action} sb on stage failed, please retry`;
|
|
102
103
|
try {
|
|
@@ -108,12 +109,15 @@ function useMasterApplyControl() {
|
|
|
108
109
|
roomStore.removeApplyToAnchorUser(applyToAnchorRequestId);
|
|
109
110
|
}
|
|
110
111
|
} catch (error) {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
112
|
+
if (!hasErrorOccurred) {
|
|
113
|
+
index$1.default.error(actionFailedMessage);
|
|
114
|
+
Message.default({
|
|
115
|
+
type: "warning",
|
|
116
|
+
message: t("The stage is full"),
|
|
117
|
+
duration: message.MESSAGE_DURATION.NORMAL
|
|
118
|
+
});
|
|
119
|
+
hasErrorOccurred = true;
|
|
120
|
+
}
|
|
117
121
|
}
|
|
118
122
|
}
|
|
119
123
|
}
|
|
@@ -215,6 +219,7 @@ function useMasterApplyControl() {
|
|
|
215
219
|
}
|
|
216
220
|
function handleShowNotification() {
|
|
217
221
|
Vue.watch(applyToAnchorUserIdList, (newVal, oldVal) => {
|
|
222
|
+
var _a, _b;
|
|
218
223
|
if (newVal.length === oldVal.length && newVal === oldVal) {
|
|
219
224
|
return;
|
|
220
225
|
}
|
|
@@ -225,7 +230,8 @@ function useMasterApplyControl() {
|
|
|
225
230
|
}
|
|
226
231
|
const onlyOneUserTakeStage = newVal.length === 1;
|
|
227
232
|
const firstUser = applyToAnchorList.value[0];
|
|
228
|
-
const
|
|
233
|
+
const lastIndex = applyToAnchorList.value.length - 1;
|
|
234
|
+
const userName = ((_a = applyToAnchorList.value[lastIndex]) == null ? void 0 : _a.userName) || ((_b = applyToAnchorList.value[lastIndex]) == null ? void 0 : _b.userId);
|
|
229
235
|
const message2 = onlyOneUserTakeStage ? `${userName} ${t("Applying for the stage")}` : `${userName} ${t("and so on number people applying to stage", { number: applyToAnchorList.value.length })}`;
|
|
230
236
|
const confirmButtonText = environment.isMobile ? t("Check") : onlyOneUserTakeStage ? t("Agree to the stage") : t("Check");
|
|
231
237
|
const cancelButtonText = environment.isMobile ? void 0 : onlyOneUserTakeStage ? t("Reject") : t("Neglect");
|
package/lib/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { roomService } from './services';
|
|
1
2
|
import { default as RoomMessageCard } from './extension/RoomMessageCard/RoomMessageCard.vue';
|
|
2
|
-
import { conference, RoomEvent } from './conference';
|
|
3
|
+
import { conference, RoomEvent, FeatureButton } from './conference';
|
|
3
4
|
import { default as TUIRoomEngine } from '@tencentcloud/tuiroom-engine-electron';
|
|
4
5
|
import { default as PreConferenceView } from './preConference.vue';
|
|
5
6
|
import { default as ConferenceMainView } from './conference.vue';
|
|
6
7
|
|
|
7
8
|
export * from './components/common/base/index';
|
|
8
|
-
export { ConferenceMainView, PreConferenceView, TUIRoomEngine, conference, RoomEvent, RoomMessageCard };
|
|
9
|
+
export { ConferenceMainView, PreConferenceView, TUIRoomEngine, roomService, conference, RoomEvent, FeatureButton, RoomMessageCard, };
|
|
9
10
|
export default ConferenceMainView;
|