@hyext/types-ext-sdk-hy 3.11.4-beta.5 → 3.12.0-beta.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.
Files changed (2) hide show
  1. package/index.d.ts +15 -5
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1521,10 +1521,7 @@ type Consts = {
1521
1521
  isLandscape: boolean;
1522
1522
  };
1523
1523
 
1524
- /**
1525
- * consts
1526
- */
1527
- var consts: Consts;
1524
+ type consts = Consts;
1528
1525
 
1529
1526
  /**
1530
1527
  * 直播间事件
@@ -5019,6 +5016,11 @@ namespace popup {
5019
5016
  * @returns 调用结果
5020
5017
  */
5021
5018
  function offNoticeHide(): Promise<void>;
5019
+ /**
5020
+ * 右上角小窗模式是否可用
5021
+ * @returns 调用结果
5022
+ */
5023
+ function rightTopWindowAvailable(): Promise<RightTopWindowAvailableRsp>;
5022
5024
  }
5023
5025
 
5024
5026
  /**
@@ -5031,7 +5033,7 @@ type SetModeRsp = {
5031
5033
 
5032
5034
  /**
5033
5035
  * 设置浮窗模式参数
5034
- * @property mode - 模式的枚举值, NORMAL-默认状态,所有浮窗初始化的时候都是这个状态,可以自由布局(默认), NOTICE-提示状态,这个状态下不能自由布局,显示/隐藏下沉到平台进行控制,进入提示状态会默认显示,退出提示状态时会默认隐藏, RIGHT_BOTTOM_BTN-右下角按钮状态,这个状态下不能自由布局,显示/隐藏下沉到平台进行控制,进入提示状态会默认显示,退出提示状态时会默认隐藏
5036
+ * @property mode - 模式的枚举值 NORMAL-默认状态,所有浮窗初始化的时候都是这个状态,可以自由布局(默认), NOTICE-提示状态,这个状态下不能自由布局,显示/隐藏下沉到平台进行控制,进入状态时显示,退出状态时隐藏,RIGHT_BOTTOM_BTN-右下角按钮状态,这个状态下不能自由布局,显示/隐藏下沉到平台进行控制,进入状态时显示,退出状态时隐藏,RIGHT_TOP_WINDOW-右上角小窗状态,这个状态下不能自由布局,显示/隐藏下沉到平台进行控制,进入状态时显示,退出状态时隐藏,
5035
5037
  * @property [key] - 权重key值
5036
5038
  * @property [width] - 宽度,单位是点/像素,仅在NOTICE模式下生效
5037
5039
  * @property [height] - 高度,单位是点/像素,仅在NOTICE模式下生效
@@ -5087,6 +5089,14 @@ type NoticeHideParams = {
5087
5089
  callback: NoticeHideCallback;
5088
5090
  };
5089
5091
 
5092
+ /**
5093
+ * 右上角小窗模式可用状态
5094
+ * @property isAvailable - 是否可用
5095
+ */
5096
+ type RightTopWindowAvailableRsp = {
5097
+ isAvailable: boolean;
5098
+ };
5099
+
5090
5100
  /**
5091
5101
  * 识别相关
5092
5102
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyext/types-ext-sdk-hy",
3
- "version": "3.11.4-beta.5",
3
+ "version": "3.12.0-beta.1",
4
4
  "description": "TypeScript definitions for @hyext/ext-sdk-hy",
5
5
  "types": "./index.d.ts",
6
6
  "main": "",