@tarojs/taro 4.0.0-beta.21 → 4.0.0-beta.23
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.
|
|
3
|
+
"version": "4.0.0-beta.23",
|
|
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.
|
|
24
|
+
"@tarojs/api": "4.0.0-beta.23"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@tarojs/helper": "4.0.0-beta.
|
|
28
|
-
"@tarojs/
|
|
29
|
-
"@tarojs/
|
|
27
|
+
"@tarojs/helper": "4.0.0-beta.23",
|
|
28
|
+
"@tarojs/shared": "4.0.0-beta.23",
|
|
29
|
+
"@tarojs/runtime": "4.0.0-beta.23"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"@tarojs/
|
|
33
|
-
"@tarojs/
|
|
34
|
-
"@tarojs/
|
|
32
|
+
"@tarojs/shared": "~4.0.0-beta.23",
|
|
33
|
+
"@tarojs/runtime": "~4.0.0-beta.23",
|
|
34
|
+
"@tarojs/helper": "~4.0.0-beta.23"
|
|
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
|
|
79
|
+
boundingClientRect?: BoundingClientRectResult
|
|
74
80
|
/** 相交比例 */
|
|
75
|
-
intersectionRatio
|
|
81
|
+
intersectionRatio?: number
|
|
76
82
|
/** 相交区域的边界 */
|
|
77
|
-
intersectionRect
|
|
83
|
+
intersectionRect?: IntersectionRectResult
|
|
78
84
|
/** 参照区域的边界 */
|
|
79
|
-
relativeRect
|
|
85
|
+
relativeRect?: RelativeRectResult
|
|
80
86
|
/** 相交检测时的时间戳 */
|
|
81
|
-
time
|
|
87
|
+
time?: number
|
|
82
88
|
}
|
|
83
89
|
/** 参照区域的边界 */
|
|
84
90
|
interface RelativeRectResult {
|
|
@@ -140,7 +140,7 @@ export interface IProjectBaseConfig {
|
|
|
140
140
|
baseLevel?: number
|
|
141
141
|
|
|
142
142
|
/** 使用的开发框架。可选值:react、preact、nerv、vue、vue3 */
|
|
143
|
-
framework?: 'react' | 'preact' | 'nerv' | 'vue' | 'vue3'
|
|
143
|
+
framework?: 'react' | 'preact' | 'solid' | 'nerv' | 'vue' | 'vue3'
|
|
144
144
|
frameworkExts?: string[]
|
|
145
145
|
|
|
146
146
|
/** 使用的编译工具。可选值:webpack4、webpack5 */
|
|
@@ -294,7 +294,7 @@ export interface IProjectConfig<T extends CompilerTypes = CompilerWebpackTypes>
|
|
|
294
294
|
presets?: PluginItem[]
|
|
295
295
|
|
|
296
296
|
/** 使用的开发框架。可选值:react、preact、nerv、vue、vue3 */
|
|
297
|
-
framework?: 'react' | 'preact' | 'nerv' | 'vue' | 'vue3'
|
|
297
|
+
framework?: 'react' | 'preact' | 'solid' | 'nerv' | 'vue' | 'vue3'
|
|
298
298
|
|
|
299
299
|
/** Webpack5 持久化缓存配置。具体配置请参考 [WebpackConfig.cache](https://webpack.js.org/configuration/cache/#cache) */
|
|
300
300
|
cache?: ICache
|