@tencentcloud/roomkit-electron-vue3 2.6.2 → 2.6.7-beta.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/RoomContent/StreamRegion/LocalScreenView/index.vue.mjs +1 -1
- package/es/components/RoomContent/StreamRegion/LocalScreenView/index.vue2.mjs +11 -4
- package/es/components/RoomFooter/WhiteboardControl.vue.mjs +5 -5
- package/es/components/common/AudioSettingTab.vue.mjs +1 -1
- package/es/components/common/AudioSettingTab.vue2.mjs +3 -1
- package/es/conference.d.ts +1 -1
- package/es/conference.mjs +10 -0
- package/es/constants/room.d.ts +1 -3
- package/es/hooks/useRoomEngine.d.ts +1 -3
- package/es/index.mjs +24 -24
- package/es/services/function/aiTask.mjs +7 -4
- package/es/services/index.d.ts +1 -0
- package/es/services/manager/dataReportManager.d.ts +15 -2
- package/es/services/manager/dataReportManager.mjs +42 -13
- package/es/services/roomService.d.ts +4 -3
- package/es/services/roomService.mjs +2 -0
- package/es/services/types.d.ts +2 -0
- package/lib/components/RoomContent/StreamRegion/LocalScreenView/index.vue.js +1 -1
- package/lib/components/RoomContent/StreamRegion/LocalScreenView/index.vue2.js +10 -3
- package/lib/components/RoomFooter/WhiteboardControl.vue.js +5 -5
- package/lib/components/common/AudioSettingTab.vue.js +1 -1
- package/lib/components/common/AudioSettingTab.vue2.js +3 -1
- package/lib/conference.d.ts +1 -1
- package/lib/conference.js +10 -0
- package/lib/constants/room.d.ts +1 -3
- package/lib/hooks/useRoomEngine.d.ts +1 -3
- package/lib/index.js +24 -24
- package/lib/services/function/aiTask.js +6 -3
- package/lib/services/index.d.ts +1 -0
- package/lib/services/manager/dataReportManager.d.ts +15 -2
- package/lib/services/manager/dataReportManager.js +42 -13
- package/lib/services/roomService.d.ts +4 -3
- package/lib/services/roomService.js +2 -0
- package/lib/services/types.d.ts +2 -0
- package/lib/utils/constants.js +1 -1
- package/package.json +4 -4
- package/src/TUIRoom/components/RoomContent/StreamRegion/LocalScreenView/index.vue +5 -7
- package/src/TUIRoom/components/RoomFooter/WhiteboardControl.vue +5 -8
- package/src/TUIRoom/components/common/AudioSettingTab.vue +3 -1
- package/src/TUIRoom/conference.ts +10 -0
- package/src/TUIRoom/services/function/aiTask.ts +10 -2
- package/src/TUIRoom/services/index.ts +1 -0
- package/src/TUIRoom/services/manager/dataReportManager.ts +48 -13
- package/src/TUIRoom/services/roomService.ts +2 -0
- package/src/TUIRoom/services/types.ts +2 -0
- package/es/package.json.mjs +0 -93
- package/lib/package.json.js +0 -93
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import TUIRoomEngine from '@tencentcloud/tuiroom-engine-electron';
|
|
2
|
-
|
|
3
|
-
const appVersion = packageConfig.version;
|
|
2
|
+
|
|
4
3
|
const KEY_METRICS_API = 'KeyMetricsStats';
|
|
5
4
|
|
|
6
5
|
export enum MetricsKey {
|
|
@@ -9,19 +8,55 @@ export enum MetricsKey {
|
|
|
9
8
|
startAnnotating = 106002,
|
|
10
9
|
stopAnnotating = 106003,
|
|
11
10
|
saveWhiteboard = 106004,
|
|
11
|
+
|
|
12
|
+
setLanguage = 106050,
|
|
13
|
+
setTheme = 106051,
|
|
14
|
+
disableTextMessaging = 106052,
|
|
15
|
+
disableScreenSharing = 106053,
|
|
16
|
+
enableWatermark = 106054,
|
|
17
|
+
enableVirtualBackground = 106055,
|
|
18
|
+
hideFeatureButton = 106056,
|
|
12
19
|
}
|
|
13
20
|
|
|
21
|
+
type Task = () => void;
|
|
22
|
+
|
|
14
23
|
export class DataReportManager {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
private taskQueue: Task[] = [];
|
|
25
|
+
private isReady = false;
|
|
26
|
+
|
|
27
|
+
constructor() {
|
|
28
|
+
this.bindEvent();
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
public reportCount(key: MetricsKey) {
|
|
32
|
+
const task = this.createReportCountTask(key);
|
|
33
|
+
if (!this.isReady) {
|
|
34
|
+
this.taskQueue.push(task);
|
|
35
|
+
} else {
|
|
36
|
+
task();
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
private bindEvent() {
|
|
41
|
+
TUIRoomEngine.once('ready', () => {
|
|
42
|
+
this.isReady = true;
|
|
43
|
+
this.executePendingTasks();
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
private executePendingTasks() {
|
|
48
|
+
this.taskQueue.forEach(task => task());
|
|
49
|
+
this.taskQueue = [];
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
private createReportCountTask(key: MetricsKey): Task {
|
|
53
|
+
return () => {
|
|
54
|
+
TUIRoomEngine.callExperimentalAPI(
|
|
55
|
+
JSON.stringify({
|
|
56
|
+
api: KEY_METRICS_API,
|
|
57
|
+
params: { key },
|
|
58
|
+
})
|
|
59
|
+
);
|
|
60
|
+
};
|
|
26
61
|
}
|
|
27
62
|
}
|
|
@@ -37,6 +37,7 @@ import { VirtualBackground } from './function/virtualBackground';
|
|
|
37
37
|
import { BasicBeauty } from './function/basicBeauty';
|
|
38
38
|
import { ScheduleConferenceManager } from './manager/scheduleConferenceManager';
|
|
39
39
|
import { ConferenceInvitationManager } from './manager/conferenceInvitationManager';
|
|
40
|
+
import { DataReportManager } from './manager/dataReportManager';
|
|
40
41
|
import { ErrorHandler } from './function/errorHandler';
|
|
41
42
|
import { ChatManager } from './manager/chatManager';
|
|
42
43
|
import { TUILogin } from '@tencentcloud/tui-core';
|
|
@@ -63,6 +64,7 @@ export class RoomService implements IRoomService {
|
|
|
63
64
|
new ScheduleConferenceManager(this);
|
|
64
65
|
public conferenceInvitationManager: ConferenceInvitationManager =
|
|
65
66
|
new ConferenceInvitationManager(this);
|
|
67
|
+
public dataReportManager: DataReportManager = new DataReportManager();
|
|
66
68
|
public errorHandler: ErrorHandler = new ErrorHandler(this);
|
|
67
69
|
public chatManager: ChatManager = new ChatManager(this);
|
|
68
70
|
public aiTask: AITask = new AITask(this);
|
|
@@ -8,6 +8,7 @@ import { RoomActionManager } from './manager/roomActionManager';
|
|
|
8
8
|
import { ErrorHandler } from './function/errorHandler';
|
|
9
9
|
import { AITask } from './function/aiTask';
|
|
10
10
|
import { ConferenceInvitationManager } from './manager/conferenceInvitationManager';
|
|
11
|
+
import { DataReportManager } from './manager/dataReportManager';
|
|
11
12
|
export interface IRoomService {
|
|
12
13
|
t: any;
|
|
13
14
|
roomEngine: Record<string, any>;
|
|
@@ -18,6 +19,7 @@ export interface IRoomService {
|
|
|
18
19
|
roomActionManager?: RoomActionManager;
|
|
19
20
|
scheduleConferenceManager: ScheduleConferenceManager;
|
|
20
21
|
conferenceInvitationManager: ConferenceInvitationManager;
|
|
22
|
+
dataReportManager: DataReportManager;
|
|
21
23
|
errorHandler: ErrorHandler;
|
|
22
24
|
aiTask: AITask;
|
|
23
25
|
on: (eventType: EventType, callback: (data?: any) => any) => void;
|
package/es/package.json.mjs
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
const name = "@tencentcloud/roomkit-electron-vue3";
|
|
2
|
-
const version = "2.6.2";
|
|
3
|
-
const main = "./lib/index.js";
|
|
4
|
-
const module = "./es/index.mjs";
|
|
5
|
-
const types = "./es/index.d.ts";
|
|
6
|
-
const homepage = "https://cloud.tencent.com/document/product/647/81962";
|
|
7
|
-
const author = "Tencent Cloud Client R&D Center";
|
|
8
|
-
const license = "ISC";
|
|
9
|
-
const repository = {
|
|
10
|
-
type: "git",
|
|
11
|
-
url: "git@github.com:tencentyun/TUIRoomKit.git"
|
|
12
|
-
};
|
|
13
|
-
const keywords = [
|
|
14
|
-
"conference",
|
|
15
|
-
"tuiroomkit",
|
|
16
|
-
"webrtc",
|
|
17
|
-
"javascript"
|
|
18
|
-
];
|
|
19
|
-
const scripts = {
|
|
20
|
-
dev: "vite build --watch",
|
|
21
|
-
build: "vite build"
|
|
22
|
-
};
|
|
23
|
-
const dependencies = {
|
|
24
|
-
"@originjs/vite-plugin-commonjs": "^1.0.3",
|
|
25
|
-
"@tencentcloud/chat": "latest",
|
|
26
|
-
"@tencentcloud/tui-core": "latest",
|
|
27
|
-
"@tencentcloud/tuiroom-engine-electron": "workspace:^2.6.2",
|
|
28
|
-
"@tencentcloud/chat-uikit-engine": "2.2.7",
|
|
29
|
-
"@tencentcloud/chat-uikit-vue": "2.2.7",
|
|
30
|
-
"@tencentcloud/universal-api": "^2.0.9",
|
|
31
|
-
"@tiptap/core": "^2.6.6",
|
|
32
|
-
"@tiptap/extension-document": "^2.6.6",
|
|
33
|
-
"@tiptap/extension-image": "^2.6.6",
|
|
34
|
-
"@tiptap/extension-mention": "^2.6.6",
|
|
35
|
-
"@tiptap/extension-paragraph": "^2.6.6",
|
|
36
|
-
"@tiptap/extension-placeholder": "^2.6.6",
|
|
37
|
-
"@tiptap/extension-text": "^2.6.6",
|
|
38
|
-
"@tiptap/pm": "^2.6.6",
|
|
39
|
-
"@tiptap/suggestion": "^2.6.6",
|
|
40
|
-
dayjs: "^1.11.13",
|
|
41
|
-
interactjs: "^1.10.26",
|
|
42
|
-
mitt: "^3.0.0",
|
|
43
|
-
fabric: "^5.3.0",
|
|
44
|
-
"hotkeys-js": "^3.10.1"
|
|
45
|
-
};
|
|
46
|
-
const peerDependencies = {
|
|
47
|
-
pinia: "^2.1.7",
|
|
48
|
-
vue: "~3.3.13",
|
|
49
|
-
electron: ">=4.0.0"
|
|
50
|
-
};
|
|
51
|
-
const devDependencies = {
|
|
52
|
-
"@vitejs/plugin-vue": "^5.0.4",
|
|
53
|
-
sass: "^1.72.0",
|
|
54
|
-
typescript: "^5.2.2",
|
|
55
|
-
vite: "^5.2.0",
|
|
56
|
-
"vite-plugin-css-injected-by-js": "^3.5.0",
|
|
57
|
-
"vite-plugin-dts": "^3.7.3",
|
|
58
|
-
vue: "~3.3.13",
|
|
59
|
-
"vue-tsc": "^2.0.6"
|
|
60
|
-
};
|
|
61
|
-
const packageConfig = {
|
|
62
|
-
name,
|
|
63
|
-
version,
|
|
64
|
-
main,
|
|
65
|
-
module,
|
|
66
|
-
types,
|
|
67
|
-
homepage,
|
|
68
|
-
author,
|
|
69
|
-
license,
|
|
70
|
-
repository,
|
|
71
|
-
keywords,
|
|
72
|
-
scripts,
|
|
73
|
-
dependencies,
|
|
74
|
-
peerDependencies,
|
|
75
|
-
devDependencies
|
|
76
|
-
};
|
|
77
|
-
export {
|
|
78
|
-
author,
|
|
79
|
-
packageConfig as default,
|
|
80
|
-
dependencies,
|
|
81
|
-
devDependencies,
|
|
82
|
-
homepage,
|
|
83
|
-
keywords,
|
|
84
|
-
license,
|
|
85
|
-
main,
|
|
86
|
-
module,
|
|
87
|
-
name,
|
|
88
|
-
peerDependencies,
|
|
89
|
-
repository,
|
|
90
|
-
scripts,
|
|
91
|
-
types,
|
|
92
|
-
version
|
|
93
|
-
};
|
package/lib/package.json.js
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const name = "@tencentcloud/roomkit-electron-vue3";
|
|
4
|
-
const version = "2.6.2";
|
|
5
|
-
const main = "./lib/index.js";
|
|
6
|
-
const module$1 = "./es/index.mjs";
|
|
7
|
-
const types = "./es/index.d.ts";
|
|
8
|
-
const homepage = "https://cloud.tencent.com/document/product/647/81962";
|
|
9
|
-
const author = "Tencent Cloud Client R&D Center";
|
|
10
|
-
const license = "ISC";
|
|
11
|
-
const repository = {
|
|
12
|
-
type: "git",
|
|
13
|
-
url: "git@github.com:tencentyun/TUIRoomKit.git"
|
|
14
|
-
};
|
|
15
|
-
const keywords = [
|
|
16
|
-
"conference",
|
|
17
|
-
"tuiroomkit",
|
|
18
|
-
"webrtc",
|
|
19
|
-
"javascript"
|
|
20
|
-
];
|
|
21
|
-
const scripts = {
|
|
22
|
-
dev: "vite build --watch",
|
|
23
|
-
build: "vite build"
|
|
24
|
-
};
|
|
25
|
-
const dependencies = {
|
|
26
|
-
"@originjs/vite-plugin-commonjs": "^1.0.3",
|
|
27
|
-
"@tencentcloud/chat": "latest",
|
|
28
|
-
"@tencentcloud/tui-core": "latest",
|
|
29
|
-
"@tencentcloud/tuiroom-engine-electron": "workspace:^2.6.2",
|
|
30
|
-
"@tencentcloud/chat-uikit-engine": "2.2.7",
|
|
31
|
-
"@tencentcloud/chat-uikit-vue": "2.2.7",
|
|
32
|
-
"@tencentcloud/universal-api": "^2.0.9",
|
|
33
|
-
"@tiptap/core": "^2.6.6",
|
|
34
|
-
"@tiptap/extension-document": "^2.6.6",
|
|
35
|
-
"@tiptap/extension-image": "^2.6.6",
|
|
36
|
-
"@tiptap/extension-mention": "^2.6.6",
|
|
37
|
-
"@tiptap/extension-paragraph": "^2.6.6",
|
|
38
|
-
"@tiptap/extension-placeholder": "^2.6.6",
|
|
39
|
-
"@tiptap/extension-text": "^2.6.6",
|
|
40
|
-
"@tiptap/pm": "^2.6.6",
|
|
41
|
-
"@tiptap/suggestion": "^2.6.6",
|
|
42
|
-
dayjs: "^1.11.13",
|
|
43
|
-
interactjs: "^1.10.26",
|
|
44
|
-
mitt: "^3.0.0",
|
|
45
|
-
fabric: "^5.3.0",
|
|
46
|
-
"hotkeys-js": "^3.10.1"
|
|
47
|
-
};
|
|
48
|
-
const peerDependencies = {
|
|
49
|
-
pinia: "^2.1.7",
|
|
50
|
-
vue: "~3.3.13",
|
|
51
|
-
electron: ">=4.0.0"
|
|
52
|
-
};
|
|
53
|
-
const devDependencies = {
|
|
54
|
-
"@vitejs/plugin-vue": "^5.0.4",
|
|
55
|
-
sass: "^1.72.0",
|
|
56
|
-
typescript: "^5.2.2",
|
|
57
|
-
vite: "^5.2.0",
|
|
58
|
-
"vite-plugin-css-injected-by-js": "^3.5.0",
|
|
59
|
-
"vite-plugin-dts": "^3.7.3",
|
|
60
|
-
vue: "~3.3.13",
|
|
61
|
-
"vue-tsc": "^2.0.6"
|
|
62
|
-
};
|
|
63
|
-
const packageConfig = {
|
|
64
|
-
name,
|
|
65
|
-
version,
|
|
66
|
-
main,
|
|
67
|
-
module: module$1,
|
|
68
|
-
types,
|
|
69
|
-
homepage,
|
|
70
|
-
author,
|
|
71
|
-
license,
|
|
72
|
-
repository,
|
|
73
|
-
keywords,
|
|
74
|
-
scripts,
|
|
75
|
-
dependencies,
|
|
76
|
-
peerDependencies,
|
|
77
|
-
devDependencies
|
|
78
|
-
};
|
|
79
|
-
exports.author = author;
|
|
80
|
-
exports.default = packageConfig;
|
|
81
|
-
exports.dependencies = dependencies;
|
|
82
|
-
exports.devDependencies = devDependencies;
|
|
83
|
-
exports.homepage = homepage;
|
|
84
|
-
exports.keywords = keywords;
|
|
85
|
-
exports.license = license;
|
|
86
|
-
exports.main = main;
|
|
87
|
-
exports.module = module$1;
|
|
88
|
-
exports.name = name;
|
|
89
|
-
exports.peerDependencies = peerDependencies;
|
|
90
|
-
exports.repository = repository;
|
|
91
|
-
exports.scripts = scripts;
|
|
92
|
-
exports.types = types;
|
|
93
|
-
exports.version = version;
|