@tencentcloud/tuiroom-engine-js 2.0.3 → 2.1.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/index.cjs.js +1 -1
- package/index.d.ts +16 -4
- package/index.esm.js +1 -1
- package/index.js +1 -1
- package/package.json +2 -2
- package/types.d.ts +14 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tencentcloud/tuiroom-engine-js",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "TUIRoomEngine Web SDK",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"rtc-detect": "^0.0.5",
|
|
22
22
|
"@tencentcloud/chat": "^3.2.3",
|
|
23
|
-
"trtc-cloud-js-sdk": "^2.
|
|
23
|
+
"trtc-cloud-js-sdk": "^2.3.0"
|
|
24
24
|
}
|
|
25
25
|
}
|
package/types.d.ts
CHANGED
|
@@ -581,6 +581,20 @@ export declare enum TUIRoomEvents {
|
|
|
581
581
|
* });
|
|
582
582
|
*/
|
|
583
583
|
onRequestCancelled = "onRequestCancelled",
|
|
584
|
+
/**
|
|
585
|
+
* @description 请求被其他 管理员/房主 处理事件
|
|
586
|
+
* @default 'onRequestProcessed'
|
|
587
|
+
* @event TUIRoomEvents#onRequestProcessed
|
|
588
|
+
* @param {object} options
|
|
589
|
+
* @param {string} options.requestId 请求Id
|
|
590
|
+
* @param {string} options.userId 处理该请求的 管理员/房主 的用户ID
|
|
591
|
+
* @example
|
|
592
|
+
* const roomEngine = new TUIRoomEngine();
|
|
593
|
+
* roomEngine.on(TUIRoomEvents.onRequestProcessed, ({ requestId, userId }) => {
|
|
594
|
+
* console.log('roomEngine.onRequestProcessed', requestId, userId);
|
|
595
|
+
* });
|
|
596
|
+
*/
|
|
597
|
+
onRequestProcessed = "onRequestProcessed",
|
|
584
598
|
/**
|
|
585
599
|
* @description 接收文本消息事件
|
|
586
600
|
* @deprecated 该接口自 v2.0.0 版本废弃,请使用 tim 实例监听收消息事件
|