@tencentcloud/roomkit-electron-vue3 2.3.3 → 2.4.0
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/ManageMember/MemberControl/index.vue.mjs +1 -1
- package/es/components/ManageMember/MemberControl/index.vue2.mjs +5 -4
- package/es/components/ManageMember/MemberControl/useMemberControlHooks.mjs +19 -4
- 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/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.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 +1 -1
- 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 +2 -1
- package/es/index.mjs +1494 -1437
- package/es/locales/en-US.d.ts +8 -7
- package/es/locales/en-US.mjs +8 -7
- package/es/locales/zh-CN.d.ts +10 -9
- package/es/locales/zh-CN.mjs +10 -9
- 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 -2
- package/es/stores/room.mjs +9 -1
- 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 +19 -4
- 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/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.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 +1 -1
- 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 +2 -1
- package/lib/index.js +1493 -1436
- package/lib/locales/en-US.d.ts +8 -7
- package/lib/locales/en-US.js +8 -7
- package/lib/locales/zh-CN.d.ts +10 -9
- package/lib/locales/zh-CN.js +10 -9
- 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 -2
- package/lib/stores/room.js +9 -1
- package/package.json +2 -2
- package/src/TUIRoom/assets/style/global.scss +1 -1
- package/src/TUIRoom/components/ManageMember/MemberControl/index.vue +5 -4
- package/src/TUIRoom/components/ManageMember/MemberControl/useMemberControlHooks.ts +20 -5
- package/src/TUIRoom/components/ManageMember/useIndexHooks.ts +3 -2
- package/src/TUIRoom/components/RoomFooter/ApplyControl/MemberApplyControl.vue +2 -2
- 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 +6 -13
- package/src/TUIRoom/extension/RoomMessageCard/RoomMessageCard.vue +1 -1
- package/src/TUIRoom/extension/chatExtension.ts +1 -1
- package/src/TUIRoom/hooks/useMasterApplyControl.ts +15 -10
- package/src/TUIRoom/index.ts +2 -1
- package/src/TUIRoom/locales/en-US.ts +8 -7
- package/src/TUIRoom/locales/zh-CN.ts +10 -9
- 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/stores/room.ts +9 -1
- 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
|
@@ -87,6 +87,8 @@ interface RoomState {
|
|
|
87
87
|
isSeatEnabled: boolean,
|
|
88
88
|
seatMode: TUISeatMode,
|
|
89
89
|
maxMembersCount: number,
|
|
90
|
+
maxSeatCount: number,
|
|
91
|
+
roomName: string,
|
|
90
92
|
hasVideoStreamObject: Record<string, UserInfo>,
|
|
91
93
|
currentStreamIdListInVisibleView: string[],
|
|
92
94
|
hasOtherScreenShare: boolean,
|
|
@@ -142,6 +144,8 @@ export const useRoomStore = defineStore('room', {
|
|
|
142
144
|
isSeatEnabled: false,
|
|
143
145
|
seatMode: TUISeatMode.kFreeToTake,
|
|
144
146
|
maxMembersCount: 5, // Includes local streams and screen shares, above which subsequent streams are played
|
|
147
|
+
maxSeatCount: 20,
|
|
148
|
+
roomName: '',
|
|
145
149
|
hasVideoStreamObject: {},
|
|
146
150
|
// Visual area user flow list
|
|
147
151
|
currentStreamIdListInVisibleView: [],
|
|
@@ -518,7 +522,7 @@ export const useRoomStore = defineStore('room', {
|
|
|
518
522
|
const {
|
|
519
523
|
roomOwner, isMicrophoneDisableForAllUser,
|
|
520
524
|
isCameraDisableForAllUser, isMessageDisableForAllUser,
|
|
521
|
-
isSeatEnabled, seatMode,
|
|
525
|
+
isSeatEnabled, seatMode, maxSeatCount, roomName,
|
|
522
526
|
} = roomInfo;
|
|
523
527
|
if (this.localUser.userId === roomOwner) {
|
|
524
528
|
this.localUser.userRole = TUIRole.kRoomOwner;
|
|
@@ -532,6 +536,8 @@ export const useRoomStore = defineStore('room', {
|
|
|
532
536
|
this.seatMode = seatMode;
|
|
533
537
|
this.canControlSelfAudio = !this.isMicrophoneDisableForAllUser;
|
|
534
538
|
this.canControlSelfVideo = !this.isCameraDisableForAllUser;
|
|
539
|
+
this.maxSeatCount = maxSeatCount;
|
|
540
|
+
this.roomName = roomName;
|
|
535
541
|
},
|
|
536
542
|
setDisableMicrophoneForAllUserByAdmin(isDisable: boolean) {
|
|
537
543
|
this.isMicrophoneDisableForAllUser = isDisable;
|
|
@@ -743,6 +749,8 @@ export const useRoomStore = defineStore('room', {
|
|
|
743
749
|
this.hasVideoStreamObject = {};
|
|
744
750
|
this.hasOtherScreenShare = false;
|
|
745
751
|
this.isOnStateTabActive = true;
|
|
752
|
+
this.maxSeatCount = 20;
|
|
753
|
+
this.roomName = '';
|
|
746
754
|
},
|
|
747
755
|
},
|
|
748
756
|
});
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
var define_import_meta_env_default = { BASE_URL: "/", MODE: "production", DEV: false, PROD: true, SSR: false };
|
|
2
|
-
const { VITE_RUNTIME_ENV } = define_import_meta_env_default;
|
|
3
|
-
const isUploadLoaded = ["github", "official"].indexOf(VITE_RUNTIME_ENV) !== -1;
|
|
4
|
-
const isUploadDetailEvent = VITE_RUNTIME_ENV === "official";
|
|
5
|
-
const aegisId = "iHWefAYqooXkVQhcyK";
|
|
6
|
-
const projectName = "TUIRoomKit-Electron";
|
|
7
|
-
export {
|
|
8
|
-
aegisId,
|
|
9
|
-
isUploadDetailEvent,
|
|
10
|
-
isUploadLoaded,
|
|
11
|
-
projectName
|
|
12
|
-
};
|
package/es/utils/aegis/index.mjs
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
-
var __publicField = (obj, key, value) => {
|
|
4
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
|
-
return value;
|
|
6
|
-
};
|
|
7
|
-
import { aegisId, projectName, isUploadLoaded, isUploadDetailEvent } from "./config.mjs";
|
|
8
|
-
let aegis;
|
|
9
|
-
const script = document.createElement("script");
|
|
10
|
-
script.type = "text/javascript";
|
|
11
|
-
script.src = "https://cdn-go.cn/aegis/aegis-sdk/latest/aegis.min.js";
|
|
12
|
-
document.getElementsByTagName("head")[0].appendChild(script);
|
|
13
|
-
script.onload = () => {
|
|
14
|
-
aegis = new Aegis({
|
|
15
|
-
id: aegisId,
|
|
16
|
-
uin: "",
|
|
17
|
-
reportApiSpeed: true,
|
|
18
|
-
// interface speed measurement
|
|
19
|
-
reportAssetSpeed: true,
|
|
20
|
-
// Static resource speed measurement
|
|
21
|
-
spa: true
|
|
22
|
-
// spa Page open
|
|
23
|
-
});
|
|
24
|
-
if (roomAegis.storedReportEventList) {
|
|
25
|
-
roomAegis.storedReportEventList.forEach((data) => {
|
|
26
|
-
aegis.reportEvent(data);
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
class TUIRoomAegis {
|
|
31
|
-
constructor() {
|
|
32
|
-
__publicField(this, "sdkAppId", 0);
|
|
33
|
-
__publicField(this, "projectName", projectName);
|
|
34
|
-
__publicField(this, "isUploadLoaded", isUploadLoaded);
|
|
35
|
-
__publicField(this, "isUploadDetailEvent", isUploadDetailEvent);
|
|
36
|
-
__publicField(this, "hasUploadedEventList", []);
|
|
37
|
-
__publicField(this, "storedReportEventList", []);
|
|
38
|
-
}
|
|
39
|
-
setSdkAppId(sdkAppId) {
|
|
40
|
-
this.sdkAppId = sdkAppId;
|
|
41
|
-
}
|
|
42
|
-
reportEvent(data) {
|
|
43
|
-
if (!this.isUploadLoaded) {
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
const { name: eventName, ext1: eventDesc } = data;
|
|
47
|
-
if (this.isUploadDetailEvent || eventName === "loaded") {
|
|
48
|
-
const uploadData = { ...data, ext2: this.projectName, ext3: this.sdkAppId };
|
|
49
|
-
if (aegis) {
|
|
50
|
-
if (this.hasUploadedEventList.indexOf(`${eventName}_${eventDesc}`) < 0) {
|
|
51
|
-
this.hasUploadedEventList.push(`${eventName}_${eventDesc}`);
|
|
52
|
-
aegis.reportEvent(uploadData);
|
|
53
|
-
}
|
|
54
|
-
} else {
|
|
55
|
-
this.storedReportEventList.push(uploadData);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
const roomAegis = new TUIRoomAegis();
|
|
61
|
-
export {
|
|
62
|
-
roomAegis as default
|
|
63
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
var define_import_meta_env_default = { BASE_URL: "/", MODE: "production", DEV: false, PROD: true, SSR: false };
|
|
4
|
-
const { VITE_RUNTIME_ENV } = define_import_meta_env_default;
|
|
5
|
-
const isUploadLoaded = ["github", "official"].indexOf(VITE_RUNTIME_ENV) !== -1;
|
|
6
|
-
const isUploadDetailEvent = VITE_RUNTIME_ENV === "official";
|
|
7
|
-
const aegisId = "iHWefAYqooXkVQhcyK";
|
|
8
|
-
const projectName = "TUIRoomKit-Electron";
|
|
9
|
-
exports.aegisId = aegisId;
|
|
10
|
-
exports.isUploadDetailEvent = isUploadDetailEvent;
|
|
11
|
-
exports.isUploadLoaded = isUploadLoaded;
|
|
12
|
-
exports.projectName = projectName;
|
package/lib/utils/aegis/index.js
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
|
-
var __publicField = (obj, key, value) => {
|
|
5
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
6
|
-
return value;
|
|
7
|
-
};
|
|
8
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
9
|
-
const config = require("./config.js");
|
|
10
|
-
let aegis;
|
|
11
|
-
const script = document.createElement("script");
|
|
12
|
-
script.type = "text/javascript";
|
|
13
|
-
script.src = "https://cdn-go.cn/aegis/aegis-sdk/latest/aegis.min.js";
|
|
14
|
-
document.getElementsByTagName("head")[0].appendChild(script);
|
|
15
|
-
script.onload = () => {
|
|
16
|
-
aegis = new Aegis({
|
|
17
|
-
id: config.aegisId,
|
|
18
|
-
uin: "",
|
|
19
|
-
reportApiSpeed: true,
|
|
20
|
-
// interface speed measurement
|
|
21
|
-
reportAssetSpeed: true,
|
|
22
|
-
// Static resource speed measurement
|
|
23
|
-
spa: true
|
|
24
|
-
// spa Page open
|
|
25
|
-
});
|
|
26
|
-
if (roomAegis.storedReportEventList) {
|
|
27
|
-
roomAegis.storedReportEventList.forEach((data) => {
|
|
28
|
-
aegis.reportEvent(data);
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
class TUIRoomAegis {
|
|
33
|
-
constructor() {
|
|
34
|
-
__publicField(this, "sdkAppId", 0);
|
|
35
|
-
__publicField(this, "projectName", config.projectName);
|
|
36
|
-
__publicField(this, "isUploadLoaded", config.isUploadLoaded);
|
|
37
|
-
__publicField(this, "isUploadDetailEvent", config.isUploadDetailEvent);
|
|
38
|
-
__publicField(this, "hasUploadedEventList", []);
|
|
39
|
-
__publicField(this, "storedReportEventList", []);
|
|
40
|
-
}
|
|
41
|
-
setSdkAppId(sdkAppId) {
|
|
42
|
-
this.sdkAppId = sdkAppId;
|
|
43
|
-
}
|
|
44
|
-
reportEvent(data) {
|
|
45
|
-
if (!this.isUploadLoaded) {
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
const { name: eventName, ext1: eventDesc } = data;
|
|
49
|
-
if (this.isUploadDetailEvent || eventName === "loaded") {
|
|
50
|
-
const uploadData = { ...data, ext2: this.projectName, ext3: this.sdkAppId };
|
|
51
|
-
if (aegis) {
|
|
52
|
-
if (this.hasUploadedEventList.indexOf(`${eventName}_${eventDesc}`) < 0) {
|
|
53
|
-
this.hasUploadedEventList.push(`${eventName}_${eventDesc}`);
|
|
54
|
-
aegis.reportEvent(uploadData);
|
|
55
|
-
}
|
|
56
|
-
} else {
|
|
57
|
-
this.storedReportEventList.push(uploadData);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
const roomAegis = new TUIRoomAegis();
|
|
63
|
-
exports.default = roomAegis;
|