@hyext/types-ext-sdk-hy 3.14.1-beta.10 → 3.14.1-beta.11

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 +36 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -7847,6 +7847,17 @@ namespace ui {
7847
7847
  * @returns 调用结果
7848
7848
  */
7849
7849
  function setRecommendViewPointVisibility(params: SetRecommendViewPointVisibilityReq): Promise<void>;
7850
+ /**
7851
+ * 监听原生视频组件通知
7852
+ * @param params - 调用参数
7853
+ * @returns 调用结果
7854
+ */
7855
+ function onNativeVideoComponentNotice(params: OnNativeVideoComponentNoticeReq): Promise<void>;
7856
+ /**
7857
+ * 取消监听原生视频组件通知
7858
+ * @returns 调用结果
7859
+ */
7860
+ function offNativeVideoComponentNotice(): Promise<void>;
7850
7861
  }
7851
7862
 
7852
7863
  /**
@@ -8056,6 +8067,31 @@ type SetRecommendViewPointVisibilityReq = {
8056
8067
  visible: boolean;
8057
8068
  };
8058
8069
 
8070
+ /**
8071
+ * 原生视频组件通知信息
8072
+ * @property componentId - 原生视频组件id
8073
+ * @property eventName - 事件名
8074
+ * @property message - 事件消息
8075
+ */
8076
+ type NativeVideoComponentNotice = {
8077
+ componentId: string;
8078
+ eventName: string;
8079
+ message: string;
8080
+ };
8081
+
8082
+ /**
8083
+ * @param notice - 原生视频组件通知信息
8084
+ */
8085
+ type NativeVideoComponentNoticeCallback = (notice: NativeVideoComponentNotice) => void;
8086
+
8087
+ /**
8088
+ * 监听原生视频组件通知参数
8089
+ * @property callback - 原生视频组件通知回调
8090
+ */
8091
+ type OnNativeVideoComponentNoticeReq = {
8092
+ callback: NativeVideoComponentNoticeCallback;
8093
+ };
8094
+
8059
8095
  /**
8060
8096
  * HY vidoe
8061
8097
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyext/types-ext-sdk-hy",
3
- "version": "3.14.1-beta.10",
3
+ "version": "3.14.1-beta.11",
4
4
  "description": "TypeScript definitions for @hyext/ext-sdk-hy",
5
5
  "types": "./index.d.ts",
6
6
  "main": "",