@tarojs/taro 4.0.0-beta.22 → 4.0.0-beta.24

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tarojs/taro",
3
- "version": "4.0.0-beta.22",
3
+ "version": "4.0.0-beta.24",
4
4
  "description": "Taro framework",
5
5
  "homepage": "https://github.com/nervjs/taro/tree/master/packages/taro#readme",
6
6
  "main": "index.js",
@@ -21,17 +21,17 @@
21
21
  "author": "O2Team",
22
22
  "license": "MIT",
23
23
  "dependencies": {
24
- "@tarojs/api": "4.0.0-beta.22"
24
+ "@tarojs/api": "4.0.0-beta.24"
25
25
  },
26
26
  "devDependencies": {
27
- "@tarojs/helper": "4.0.0-beta.22",
28
- "@tarojs/runtime": "4.0.0-beta.22",
29
- "@tarojs/shared": "4.0.0-beta.22"
27
+ "@tarojs/helper": "4.0.0-beta.24",
28
+ "@tarojs/runtime": "4.0.0-beta.24",
29
+ "@tarojs/shared": "4.0.0-beta.24"
30
30
  },
31
31
  "peerDependencies": {
32
- "@tarojs/helper": "~4.0.0-beta.22",
33
- "@tarojs/shared": "~4.0.0-beta.22",
34
- "@tarojs/runtime": "~4.0.0-beta.22"
32
+ "@tarojs/helper": "~4.0.0-beta.24",
33
+ "@tarojs/runtime": "~4.0.0-beta.24",
34
+ "@tarojs/shared": "~4.0.0-beta.24"
35
35
  },
36
36
  "peerDependenciesMeta": {
37
37
  "@types/react": {
@@ -66,19 +66,25 @@ declare module '../../index' {
66
66
  }
67
67
 
68
68
  namespace IntersectionObserver {
69
- /** 监听相交状态变化的回调函数 */
69
+ /** 监听相交状态变化的回调函数
70
+ * @description Harmony 找不到对应元素时,回调会返回一个 Error 对象
71
+ */
70
72
  type ObserveCallback = (result: ObserveCallbackResult) => void
71
- interface ObserveCallbackResult {
73
+ interface ObserveCallbackResult extends TaroGeneral.CallbackResult {
74
+ /** 错误信息,会在找不到对应元素时返回
75
+ * @supported harmony
76
+ */
77
+ errMsg?: string
72
78
  /** 目标边界 */
73
- boundingClientRect: BoundingClientRectResult
79
+ boundingClientRect?: BoundingClientRectResult
74
80
  /** 相交比例 */
75
- intersectionRatio: number
81
+ intersectionRatio?: number
76
82
  /** 相交区域的边界 */
77
- intersectionRect: IntersectionRectResult
83
+ intersectionRect?: IntersectionRectResult
78
84
  /** 参照区域的边界 */
79
- relativeRect: RelativeRectResult
85
+ relativeRect?: RelativeRectResult
80
86
  /** 相交检测时的时间戳 */
81
- time: number
87
+ time?: number
82
88
  }
83
89
  /** 参照区域的边界 */
84
90
  interface RelativeRectResult {