fcr-ui-widget-sdk 3.11.0-rc.2 → 3.11.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/lib/sdk.d.ts +1 -1
- package/lib/type.d.ts +15 -1
- package/package.json +4 -4
package/lib/sdk.d.ts
CHANGED
|
@@ -30,7 +30,7 @@ export declare class FcrUIWidgetSDKImpl implements FcrUIWidgetSDK {
|
|
|
30
30
|
getAllUserCount(): Promise<number>;
|
|
31
31
|
startSessionByPhone(params: FcrPhoneConnectorSessionParams): Promise<string>;
|
|
32
32
|
startSessionByIP(params: FcrIPConnectorSessionParams): Promise<string>;
|
|
33
|
-
stopSession(sessionId: string): Promise<
|
|
33
|
+
stopSession(sessionId: string): Promise<void>;
|
|
34
34
|
active(): Promise<void>;
|
|
35
35
|
inactive(): Promise<void>;
|
|
36
36
|
getActivity(): Promise<boolean>;
|
package/lib/type.d.ts
CHANGED
|
@@ -40,7 +40,21 @@ export interface FcrUIWidgetSDK {
|
|
|
40
40
|
* 停止会话
|
|
41
41
|
* @param sessionId 会话ID
|
|
42
42
|
*/
|
|
43
|
-
stopSession(sessionId: string): Promise<
|
|
43
|
+
stopSession(sessionId: string): Promise<void>;
|
|
44
|
+
/**
|
|
45
|
+
* 激活widget
|
|
46
|
+
* @param widgetId widgetId
|
|
47
|
+
*/
|
|
48
|
+
active(): Promise<void>;
|
|
49
|
+
/**
|
|
50
|
+
* 停用widget
|
|
51
|
+
* @param widgetId widgetId
|
|
52
|
+
*/
|
|
53
|
+
inactive(): Promise<void>;
|
|
54
|
+
/**
|
|
55
|
+
* 获取指定 widget 是否处于激活状态(scene 中 `widgets.{widgetId}.state === 1`)。
|
|
56
|
+
*/
|
|
57
|
+
getActivity(): Promise<boolean>;
|
|
44
58
|
/**
|
|
45
59
|
* 激活widget
|
|
46
60
|
* @param widgetId widgetId
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fcr-ui-widget-sdk",
|
|
3
|
-
"version": "3.11.0
|
|
3
|
+
"version": "3.11.0",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"types": "lib/index.d.ts",
|
|
6
6
|
"repository": "ssh://git@git.agoralab.co/aduc/fcr-ui-scene-desktop.git",
|
|
@@ -16,15 +16,15 @@
|
|
|
16
16
|
"test": "agora-tc-test-karma-browser"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"agora-foundation": "3.11.0
|
|
20
|
-
"fcr-core": "3.11.0
|
|
19
|
+
"agora-foundation": "3.11.0",
|
|
20
|
+
"fcr-core": "3.11.0"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@babel/core": "^7.23.5",
|
|
24
24
|
"@babel/preset-env": "^7.23.5",
|
|
25
25
|
"@babel/preset-react": "^7.24.1",
|
|
26
26
|
"@babel/preset-typescript": "^7.23.3",
|
|
27
|
-
"agora-toolchain": "3.11.0
|
|
27
|
+
"agora-toolchain": "3.11.0",
|
|
28
28
|
"tslib": "^2.6.2"
|
|
29
29
|
}
|
|
30
30
|
}
|