@tarojs/taro 3.5.0-alpha.7 → 3.5.0-beta.0

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": "3.5.0-alpha.7",
3
+ "version": "3.5.0-beta.0",
4
4
  "description": "Taro framework",
5
5
  "homepage": "https://github.com/nervjs/taro/tree/master/packages/taro#readme",
6
6
  "main": "index.js",
@@ -24,15 +24,22 @@
24
24
  "author": "O2Team",
25
25
  "license": "MIT",
26
26
  "dependencies": {
27
- "@tarojs/api": "3.5.0-alpha.7",
28
- "@tarojs/runtime": "3.5.0-alpha.7",
29
- "@tarojs/taro-h5": "3.5.0-alpha.7"
27
+ "@tarojs/api": "3.5.0-beta.0",
28
+ "@tarojs/runtime": "3.5.0-beta.0"
30
29
  },
31
- "optionalDependencies": {
32
- "@types/react": "*",
33
- "@types/webpack": "*",
34
- "@types/webpack-dev-server": "*",
35
- "vue": "*"
30
+ "peerDependenciesMeta": {
31
+ "@types/react": {
32
+ "optional": true
33
+ },
34
+ "@types/webpack": {
35
+ "optional": true
36
+ },
37
+ "@types/webpack-dev-server": {
38
+ "optional": true
39
+ },
40
+ "vue": {
41
+ "optional": true
42
+ }
36
43
  },
37
- "gitHead": "5af56a30b16d4e03128a11c5cc7d5e70b7406f8b"
44
+ "gitHead": "ee17506905a260bacd1aa6217a2376ba7bb8200f"
38
45
  }
@@ -386,78 +386,14 @@ declare module '../../index' {
386
386
  translateY?: number | string
387
387
  /** Z 方向位移,即 CSS transform translateZ */
388
388
  translateZ?: number | string
389
- }
390
-
391
- /** @ignore */
392
- interface ClearAnimationOptions {
393
- /** 基点位置,即 CSS transform-origin */
394
- transformOrigin?: boolean
395
- /** 背景颜色,即 CSS background-color */
396
- backgroundColor?: boolean
397
- /** 底边位置,即 CSS bottom */
398
- bottom?: boolean
399
- /** 高度,即 CSS height */
400
- height?: boolean
401
- /** 左边位置,即 CSS left */
402
- left?: boolean
403
- /** 宽度,即 CSS width */
404
- width?: boolean
405
- /** 不透明度,即 CSS opacity */
406
- opacity?: boolean
407
- /** 右边位置,即 CSS right */
408
- right?: boolean
409
- /** 顶边位置,即 CSS top */
410
- top?: boolean
411
- /** 变换矩阵,即 CSS transform matrix */
412
- matrix?: boolean
413
- /** 三维变换矩阵,即 CSS transform matrix3d */
414
- matrix3d?: boolean
415
- /** 旋转,即 CSS transform rotate */
416
- rotate?: boolean
417
- /** 三维旋转,即 CSS transform rotate3d */
418
- rotate3d?: boolean
419
- /** X 方向旋转,即 CSS transform rotateX */
420
- rotateX?: boolean
421
- /** Y 方向旋转,即 CSS transform rotateY */
422
- rotateY?: boolean
423
- /** Z 方向旋转,即 CSS transform rotateZ */
424
- rotateZ?: boolean
425
- /** 缩放,即 CSS transform scale */
426
- scale?: boolean
427
- /** 三维缩放,即 CSS transform scale3d */
428
- scale3d?: boolean
429
- /** X 方向缩放,即 CSS transform scaleX */
430
- scaleX?: boolean
431
- /** Y 方向缩放,即 CSS transform scaleY */
432
- scaleY?: boolean
433
- /** Z 方向缩放,即 CSS transform scaleZ */
434
- scaleZ?: boolean
435
- /** 倾斜,即 CSS transform skew */
436
- skew?: boolean
437
- /** X 方向倾斜,即 CSS transform skewX */
438
- skewX?: boolean
439
- /** Y 方向倾斜,即 CSS transform skewY */
440
- skewY?: boolean
441
- /** 位移,即 CSS transform translate */
442
- translate?: boolean
443
- /** 三维位移,即 CSS transform translate3d */
444
- translate3d?: boolean
445
- /** X 方向位移,即 CSS transform translateX */
446
- translateX?: boolean
447
- /** Y 方向位移,即 CSS transform translateY */
448
- translateY?: boolean
449
- /** Z 方向位移,即 CSS transform translateZ */
450
- translateZ?: boolean
451
- }
452
-
453
- /** @ignore */
454
- interface ScrollTimelineKeyframe {
455
389
  composite?: 'replace' | 'add' | 'accumulate' | 'auto'
456
390
  easing?: string
457
- offset?: number | null
458
- [property: string]: string | number | null | undefined
391
+ [property: string]: any
459
392
  }
460
393
 
394
+ /** @ignore */
395
+ type ClearAnimationOptions = Record<keyof KeyFrame, boolean>
396
+
461
397
  /** @ignore */
462
398
  interface ScrollTimelineOption {
463
399
  /** 指定滚动元素的选择器(只支持 scroll-view),该元素滚动时会驱动动画的进度 */
@@ -119,7 +119,6 @@ interface Runtime {
119
119
 
120
120
  export interface IMiniAppConfig {
121
121
  appOutput?: boolean
122
- enableSourceMap?: boolean
123
122
  sourceMapType?: string
124
123
  debugReact?: boolean
125
124
  minifyXML?: {
@@ -127,7 +126,6 @@ export interface IMiniAppConfig {
127
126
  }
128
127
 
129
128
  webpackChain?: (chain: any, webpack: any, PARSE_AST_TYPE: any) => void
130
- entry?: webpack.EntryObject
131
129
  output?: webpack.Output
132
130
  postcss?: IPostcssOption
133
131
  cssLoaderOption?: IOption
@@ -177,11 +175,9 @@ export interface IH5Config {
177
175
 
178
176
  webpackChain?: (chain: any, webpack: any) => void
179
177
 
180
- entry?: webpack.EntryObject
181
178
  output?: webpack.Output
182
179
  router?: IH5RouterConfig
183
180
  devServer?: webpackDevServer.Configuration
184
- enableSourceMap?: boolean
185
181
  sourceMapType?: 'none' | 'eval' | 'cheap-eval-source-map' | 'cheap-module-eval-source-map' | 'eval-source-map' | 'cheap-source-map' | 'cheap-module-source-map' | 'inline-cheap-source-map' | 'inline-cheap-module-source-map' | 'source-map' | 'inline-source-map' | 'hidden-source-map' | 'nosources-source-map'
186
182
  enableExtract?: boolean
187
183
  transformOnly?: boolean
@@ -162,6 +162,10 @@ declare module './index' {
162
162
  getPageId?(): string
163
163
  /** 执行关键帧动画,详见[动画](https://developers.weixin.qq.com/miniprogram/dev/framework/view/animation.html) */
164
164
  animate?(selector: string, keyFrames: KeyFrame[], duration: number, callback: () => void): void
165
+ /** 滚动驱动的动画,详见[动画](https://developers.weixin.qq.com/miniprogram/dev/framework/view/animation.html) */
166
+ animate?(selector: string, keyFrames: KeyFrame[], duration: number, scrollTimeline: ScrollTimelineOption): void
167
+ /** 清除关键帧动画,详见[动画](https://developers.weixin.qq.com/miniprogram/dev/framework/view/animation.html) */
168
+ clearAnimation?(selector: string, callback: () => void): void
165
169
  /** 清除关键帧动画,详见[动画](https://developers.weixin.qq.com/miniprogram/dev/framework/view/animation.html) */
166
170
  clearAnimation?(selector: string, options: ClearAnimationOptions, callback: () => void): void
167
171
  /** 清除关键帧动画,详见[动画](https://developers.weixin.qq.com/miniprogram/dev/framework/view/animation.html) */
@@ -173,8 +177,11 @@ declare module './index' {
173
177
  interface PageInstance extends PageLifeCycle, ComponentInstance {
174
178
  /** 页面配置 */
175
179
  config?: PageConfig
180
+ /** 页面的初始数据 */
176
181
  data?: Record<string, unknown>
182
+ /** 页面路径 */
177
183
  path?: string
184
+ /** 页面的组件选项 */
178
185
  options?: Record<string, unknown>
179
186
  }
180
187
  interface TaroStatic {