@hyext/types-ext-sdk-hy 3.12.3 → 3.12.4-beta.2

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 +13 -7
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -5404,7 +5404,7 @@ namespace popup {
5404
5404
  * @param params - 参数
5405
5405
  * @returns 调用结果
5406
5406
  */
5407
- function setMode(params: ModeParams): Promise<SetModeRsp>;
5407
+ function setMode(params: SetModeReq): Promise<SetModeRsp>;
5408
5408
  /**
5409
5409
  * 监听提示浮窗显示排队信息
5410
5410
  * @param params - 参数
@@ -5437,23 +5437,29 @@ namespace popup {
5437
5437
  /**
5438
5438
  * 设置浮窗模式返回信息
5439
5439
  * @property noticeKey - 回调标记
5440
+ * @property showTime - 实际展示时间,用于业务展示倒计时时间,单位是毫秒
5441
+ * @property reportParams - 上报参数,用于点击上报
5440
5442
  */
5441
5443
  type SetModeRsp = {
5442
5444
  noticeKey: string;
5445
+ showTime: number;
5446
+ reportParams: any;
5443
5447
  };
5444
5448
 
5445
5449
  /**
5446
5450
  * 设置浮窗模式参数
5447
- * @property mode - 模式的枚举值 NORMAL-默认状态,所有浮窗初始化的时候都是这个状态,可以自由布局(默认), NOTICE-提示状态,这个状态下不能自由布局,显示/隐藏下沉到平台进行控制,进入状态时显示,退出状态时隐藏, RIGHT_BOTTOM_BTN-右下角按钮状态,这个状态下不能自由布局,显示/隐藏下沉到平台进行控制,进入状态时显示,退出状态时隐藏, RIGHT_TOP_WINDOW-右上角小窗状态,这个状态下不能自由布局,显示/隐藏下沉到平台进行控制,进入状态时显示,退出状态时隐藏,
5451
+ * @property mode - 模式的枚举值 NORMAL-默认状态,所有浮窗初始化的时候都是这个状态,可以自由布局(默认), NOTICE-提示状态,这个状态下不能自由布局,显示/隐藏下沉到平台进行控制,进入状态时显示,退出状态时隐藏, RIGHT_TOP_WINDOW-右上角小窗状态,这个状态下不能自由布局,显示/隐藏下沉到平台进行控制,进入状态时显示,退出状态时隐藏, TOP_BANNER-公屏横条模式,这个状态下不能自由布局,显示/隐藏下沉到平台进行控制,进入状态时显示,退出状态时隐藏
5448
5452
  * @property [key] - 权重key值
5449
- * @property [width] - 宽度,单位是点/像素,仅在NOTICE模式下生效
5450
- * @property [height] - 高度,单位是点/像素,仅在NOTICE模式下生效
5453
+ * @property [liveroomPopupKey] - 直播间弹窗key
5454
+ * @property [showTime] - 弹窗期望的展示时间,单位是毫秒
5455
+ * @property [containerHeight] - NOTICE模式下自定义容器高度,单位是点或者像素
5451
5456
  */
5452
- type ModeParams = {
5457
+ type SetModeReq = {
5453
5458
  mode: string;
5454
5459
  key?: string;
5455
- width?: number;
5456
- height?: number;
5460
+ liveroomPopupKey?: string;
5461
+ showTime?: number;
5462
+ containerHeight?: number;
5457
5463
  };
5458
5464
 
5459
5465
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyext/types-ext-sdk-hy",
3
- "version": "3.12.3",
3
+ "version": "3.12.4-beta.2",
4
4
  "description": "TypeScript definitions for @hyext/ext-sdk-hy",
5
5
  "types": "./index.d.ts",
6
6
  "main": "",