@tarojs/components 3.5.7-alpha.0 → 3.5.7-alpha.1

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/types/Video.d.ts CHANGED
@@ -221,71 +221,6 @@ interface VideoProps extends StandardProps {
221
221
  */
222
222
  backgroundPoster?: string
223
223
 
224
- /** 当开始/继续播放时触发 play 事件
225
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
226
- */
227
- onPlay?: CommonEventFunction
228
-
229
- /** 当暂停播放时触发 pause 事件
230
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
231
- */
232
- onPause?: CommonEventFunction
233
-
234
- /** 当播放到末尾时触发 ended 事件
235
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
236
- */
237
- onEnded?: CommonEventFunction
238
-
239
- /** 播放进度变化时触发, 触发频率 250ms 一次
240
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
241
- */
242
- onTimeUpdate?: CommonEventFunction<VideoProps.onTimeUpdateEventDetail>
243
-
244
- /** 当视频进入和退出全屏时触发
245
- *
246
- * @supported h5, rn
247
- */
248
- onFullscreenChange?: CommonEventFunction<VideoProps.onFullscreenChangeEventDetail>
249
-
250
- /** 视频出现缓冲时触发
251
- *
252
- * @supported weapp, swan, tt, qq, jd
253
- */
254
- onWaiting?: CommonEventFunction<VideoProps.onWaitingEventDetail>
255
-
256
- /** 视频播放出错时触发
257
- * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
258
- */
259
- onError?: CommonEventFunction
260
-
261
- /** 加载进度变化时触发,只支持一段加载
262
- * @supported weapp, tt, qq, h5
263
- */
264
- onProgress?: CommonEventFunction<VideoProps.onProgressEventDetail>
265
-
266
- /** 视频元数据加载完成时触发
267
- * @supported weapp, swan, tt, jd, rn
268
- */
269
- onLoadedMetaData?: CommonEventFunction<VideoProps.onLoadedMetaDataEventDetail>
270
-
271
- /**
272
- * 播放器进入小窗
273
- * @supported weapp
274
- */
275
- onEnterPictureInPicture?: CommonEventFunction
276
-
277
- /**
278
- * 播放器退出小窗
279
- * @supported weapp
280
- */
281
- onLeavePictureInPicture?: CommonEventFunction
282
-
283
- /**
284
- * seek 完成时触发
285
- * @supported weapp, tt
286
- */
287
- onSeekComplete?: CommonEventFunction
288
-
289
224
  /** 用于透传 `WebComponents` 上的属性到内部 H5 标签上
290
225
  * @supported h5
291
226
  */
@@ -326,16 +261,6 @@ interface VideoProps extends StandardProps {
326
261
  */
327
262
  licenseUrl?: string
328
263
 
329
- /** 视频进入和退出全屏时触发
330
- * @supported weapp, alipay, swan, tt, qq, jd
331
- */
332
- onFullScreenChange?: CommonEventFunction<VideoProps.onFullscreenChangeEventDetail>
333
-
334
- /** 切换 controls 显示隐藏时触发。
335
- * @supported weapp
336
- */
337
- onControlsToggle?: CommonEventFunction<VideoProps.onControlsToggleEventDetail>
338
-
339
264
  /** 当 poster 高宽比跟视频高宽不匹配时,如何显示 poster,设置规则同 background-size 一致。
340
265
  * @supported alipay
341
266
  */
@@ -357,31 +282,6 @@ interface VideoProps extends StandardProps {
357
282
  */
358
283
  mobilenetHintType?: string
359
284
 
360
- /** 视频出现缓冲时触发。
361
- * @supported alipay
362
- */
363
- onLoading?: CommonEventFunction
364
-
365
- /** 点击视频 view 时触发
366
- * @supported alipay
367
- */
368
- onTap?: CommonEventFunction<VideoProps.onTapEventDetail>
369
-
370
- /** 用户操作事件
371
- * @supported alipay
372
- */
373
- onUserAction?: CommonEventFunction<VideoProps.onUserActionEventDetail>
374
-
375
- /** 视频播放终止。
376
- * @supported alipay
377
- */
378
- onStop?: CommonEventFunction
379
-
380
- /** 当视频加载完真正开始播放时触发。
381
- * @supported alipay
382
- */
383
- onRenderStart?: CommonEventFunction
384
-
385
285
  /** 浮窗设置。暂时不支持全局浮窗。
386
286
  * 可选值:
387
287
  *
@@ -441,6 +341,111 @@ interface VideoProps extends StandardProps {
441
341
  */
442
342
  signature?: string
443
343
 
344
+ /** 指定码率上界,单位为比特每秒
345
+ * @supported weapp
346
+ */
347
+ preferredPeakBitRate?: number
348
+
349
+ /** 当开始/继续播放时触发 play 事件
350
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
351
+ */
352
+ onPlay?: CommonEventFunction
353
+
354
+ /** 当暂停播放时触发 pause 事件
355
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
356
+ */
357
+ onPause?: CommonEventFunction
358
+
359
+ /** 当播放到末尾时触发 ended 事件
360
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
361
+ */
362
+ onEnded?: CommonEventFunction
363
+
364
+ /** 播放进度变化时触发, 触发频率 250ms 一次
365
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
366
+ */
367
+ onTimeUpdate?: CommonEventFunction<VideoProps.onTimeUpdateEventDetail>
368
+
369
+ /** 当视频进入和退出全屏时触发
370
+ *
371
+ * @supported h5, rn
372
+ */
373
+ onFullscreenChange?: CommonEventFunction<VideoProps.onFullscreenChangeEventDetail>
374
+
375
+ /** 视频出现缓冲时触发
376
+ *
377
+ * @supported weapp, swan, tt, qq, jd
378
+ */
379
+ onWaiting?: CommonEventFunction<VideoProps.onWaitingEventDetail>
380
+
381
+ /** 视频播放出错时触发
382
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
383
+ */
384
+ onError?: CommonEventFunction
385
+
386
+ /** 加载进度变化时触发,只支持一段加载
387
+ * @supported weapp, tt, qq, h5
388
+ */
389
+ onProgress?: CommonEventFunction<VideoProps.onProgressEventDetail>
390
+
391
+ /** 视频元数据加载完成时触发
392
+ * @supported weapp, swan, tt, jd, rn
393
+ */
394
+ onLoadedMetaData?: CommonEventFunction<VideoProps.onLoadedMetaDataEventDetail>
395
+
396
+ /**
397
+ * 播放器进入小窗
398
+ * @supported weapp
399
+ */
400
+ onEnterPictureInPicture?: CommonEventFunction
401
+
402
+ /**
403
+ * 播放器退出小窗
404
+ * @supported weapp
405
+ */
406
+ onLeavePictureInPicture?: CommonEventFunction
407
+
408
+ /**
409
+ * seek 完成时触发
410
+ * @supported weapp, tt
411
+ */
412
+ onSeekComplete?: CommonEventFunction
413
+
414
+ /** 视频进入和退出全屏时触发
415
+ * @supported weapp, alipay, swan, tt, qq, jd
416
+ */
417
+ onFullScreenChange?: CommonEventFunction<VideoProps.onFullscreenChangeEventDetail>
418
+
419
+ /** 切换 controls 显示隐藏时触发。
420
+ * @supported weapp
421
+ */
422
+ onControlsToggle?: CommonEventFunction<VideoProps.onControlsToggleEventDetail>
423
+
424
+ /** 视频出现缓冲时触发。
425
+ * @supported alipay
426
+ */
427
+ onLoading?: CommonEventFunction
428
+
429
+ /** 点击视频 view 时触发
430
+ * @supported alipay
431
+ */
432
+ onTap?: CommonEventFunction<VideoProps.onTapEventDetail>
433
+
434
+ /** 用户操作事件
435
+ * @supported alipay
436
+ */
437
+ onUserAction?: CommonEventFunction<VideoProps.onUserActionEventDetail>
438
+
439
+ /** 视频播放终止。
440
+ * @supported alipay
441
+ */
442
+ onStop?: CommonEventFunction
443
+
444
+ /** 当视频加载完真正开始播放时触发。
445
+ * @supported alipay
446
+ */
447
+ onRenderStart?: CommonEventFunction
448
+
444
449
  /** 贴片广告开始播放时触发
445
450
  * @supported tt
446
451
  */
@@ -517,11 +522,6 @@ interface VideoProps extends StandardProps {
517
522
  */
518
523
  onSeeking?: CommonEventFunction
519
524
 
520
- /** 指定码率上界,单位为比特每秒
521
- * @supported weapp
522
- */
523
- preferredPeakBitRate?: number
524
-
525
525
  /** 贴片广告加载成功时触发,event.detail = { adType: 'preRollAd' | 'postRollAd' }
526
526
  * @supported tt
527
527
  */
package/types/View.d.ts CHANGED
@@ -52,6 +52,21 @@ interface ViewProps extends StandardProps {
52
52
  */
53
53
  animation?: TaroGeneral.IAnyObject
54
54
 
55
+ /** 表示组件的语义角色。设置为 img 时,组件聚焦后读屏软件会朗读出 图像 ;设置为 button 时,聚焦后读屏软件会朗读出 按钮 。详情请参见 aria-component。
56
+ * @supported alipay
57
+ */
58
+ role?: string
59
+
60
+ /** 无障碍访问,(角色)标识元素的作用
61
+ * @supported qq
62
+ */
63
+ ariaRole?: string
64
+
65
+ /** 无障碍访问,(属性)元素的额外描述
66
+ * @supported qq
67
+ */
68
+ ariaLabel?: string
69
+
55
70
  /** 点击。
56
71
  * @supported alipay
57
72
  */
@@ -116,21 +131,6 @@ interface ViewProps extends StandardProps {
116
131
  * @supported alipay
117
132
  */
118
133
  onFirstAppear?: CommonEventFunction
119
-
120
- /** 表示组件的语义角色。设置为 img 时,组件聚焦后读屏软件会朗读出 图像 ;设置为 button 时,聚焦后读屏软件会朗读出 按钮 。详情请参见 aria-component。
121
- * @supported alipay
122
- */
123
- role?: string
124
-
125
- /** 无障碍访问,(角色)标识元素的作用
126
- * @supported qq
127
- */
128
- ariaRole?: string
129
-
130
- /** 无障碍访问,(属性)元素的额外描述
131
- * @supported qq
132
- */
133
- ariaLabel?: string
134
134
  }
135
135
 
136
136
  /** 视图容器
@@ -13,16 +13,16 @@ interface VoipRoomProps extends StandardProps {
13
13
  */
14
14
  devicePosition?: keyof VoipRoomProps.DevicePosition
15
15
 
16
- /** 创建对话窗口失败时触发
17
- * @supported weapp
18
- */
19
- onError?: CommonEventFunction
20
-
21
16
  /** 进入房间用户的 openid
22
17
  * @default none
23
18
  * @supported weapp
24
19
  */
25
20
  openId?: string
21
+
22
+ /** 创建对话窗口失败时触发
23
+ * @supported weapp
24
+ */
25
+ onError?: CommonEventFunction
26
26
  }
27
27
  declare namespace VoipRoomProps {
28
28
  /** 对话窗口类型 */
@@ -6,6 +6,17 @@ interface WebViewProps extends StandardProps {
6
6
  */
7
7
  src: string
8
8
 
9
+ /** webview 的进度条颜色
10
+ * @supported tt
11
+ */
12
+ progressbarColor?: string
13
+
14
+ /** 若使用web-view组件引入第三方客服,必须填写type="im"
15
+ * @supported tt
16
+ * @default default
17
+ */
18
+ type?: string
19
+
9
20
  /** 网页向小程序 postMessage 时,会在特定时机(小程序后退、组件销毁、分享)触发并收到消息。e.detail = { data }
10
21
  * @supported weapp, alipay, swan, tt, qq, jd
11
22
  */
@@ -20,17 +31,6 @@ interface WebViewProps extends StandardProps {
20
31
  * @supported weapp, alipay, tt, qq, h5, rn
21
32
  */
22
33
  onError?: CommonEventFunction<WebViewProps.onErrorEventDetail>
23
-
24
- /** webview 的进度条颜色
25
- * @supported tt
26
- */
27
- progressbarColor?: string
28
-
29
- /** 若使用web-view组件引入第三方客服,必须填写type="im"
30
- * @supported tt
31
- * @default default
32
- */
33
- type?: string
34
34
  }
35
35
  declare namespace WebViewProps {
36
36
  interface onMessageEventDetail {