@tarojs/components 3.5.5 → 3.5.6-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.
Files changed (73) hide show
  1. package/dist/cjs/taro-input-core.cjs.entry.js +24 -3
  2. package/dist/cjs/taro-video-control_3.cjs.entry.js +21 -3
  3. package/dist/collection/components/input/input.js +24 -3
  4. package/dist/collection/components/video/video.js +23 -3
  5. package/dist/collection/utils/json-schema-to-types.js +224 -0
  6. package/dist/esm/taro-input-core.entry.js +24 -3
  7. package/dist/esm/taro-video-control_3.entry.js +21 -3
  8. package/dist/esm-es5/taro-input-core.entry.js +1 -1
  9. package/dist/esm-es5/taro-video-control_3.entry.js +1 -1
  10. package/dist/taro-components/p-0380841f.system.js +1 -1
  11. package/dist/taro-components/p-232ebfae.system.entry.js +1 -0
  12. package/dist/taro-components/{p-7e8943d8.entry.js → p-3744e978.entry.js} +1 -1
  13. package/dist/taro-components/p-56c86512.entry.js +1 -0
  14. package/dist/taro-components/{p-ed8c1bb8.system.entry.js → p-f81a74bb.system.entry.js} +1 -1
  15. package/dist/taro-components/taro-components.esm.js +1 -1
  16. package/dist/types/components/input/input.d.ts +1 -0
  17. package/dist/types/utils/json-schema-to-types.d.ts +25 -0
  18. package/dist-h5/react/components/index.js +5 -5
  19. package/package.json +9 -5
  20. package/types/Ad.d.ts +99 -9
  21. package/types/AdCustom.d.ts +1 -3
  22. package/types/Audio.d.ts +16 -16
  23. package/types/Block.d.ts +0 -2
  24. package/types/Button.d.ts +187 -47
  25. package/types/Camera.d.ts +20 -18
  26. package/types/Canvas.d.ts +52 -13
  27. package/types/Checkbox.d.ts +13 -10
  28. package/types/CheckboxGroup.d.ts +5 -7
  29. package/types/CoverImage.d.ts +44 -5
  30. package/types/CoverView.d.ts +34 -10
  31. package/types/Editor.d.ts +4 -6
  32. package/types/Form.d.ts +23 -7
  33. package/types/FunctionalPageNavigator.d.ts +5 -3
  34. package/types/Icon.d.ts +19 -7
  35. package/types/Image.d.ts +71 -14
  36. package/types/Input.d.ts +44 -33
  37. package/types/Label.d.ts +0 -3
  38. package/types/LivePlayer.d.ts +80 -24
  39. package/types/LivePusher.d.ts +78 -37
  40. package/types/Map.d.ts +208 -66
  41. package/types/MatchMedia.d.ts +8 -10
  42. package/types/MovableArea.d.ts +1 -3
  43. package/types/MovableView.d.ts +88 -30
  44. package/types/NavigationBar.d.ts +0 -2
  45. package/types/Navigator.d.ts +35 -18
  46. package/types/OfficialAccount.d.ts +10 -3
  47. package/types/OpenData.d.ts +35 -6
  48. package/types/PageContainer.d.ts +13 -10
  49. package/types/PageMeta.d.ts +27 -13
  50. package/types/Picker.d.ts +50 -14
  51. package/types/PickerView.d.ts +31 -13
  52. package/types/PickerViewColumn.d.ts +0 -2
  53. package/types/Progress.d.ts +17 -14
  54. package/types/Radio.d.ts +16 -6
  55. package/types/RadioGroup.d.ts +6 -4
  56. package/types/RichText.d.ts +53 -5
  57. package/types/RootPortal.d.ts +2 -1
  58. package/types/ScrollView.d.ts +82 -19
  59. package/types/ShareElement.d.ts +5 -7
  60. package/types/Slider.d.ts +41 -17
  61. package/types/Swiper.d.ts +100 -22
  62. package/types/SwiperItem.d.ts +6 -3
  63. package/types/Switch.d.ts +22 -8
  64. package/types/Text.d.ts +10 -6
  65. package/types/Textarea.d.ts +61 -28
  66. package/types/Video.d.ts +331 -50
  67. package/types/View.d.ts +122 -9
  68. package/types/VoipRoom.d.ts +6 -9
  69. package/types/WebView.d.ts +9 -7
  70. package/types/common.d.ts +1 -1
  71. package/types/index.vue3.d.ts +261 -138
  72. package/dist/taro-components/p-1b356f4d.entry.js +0 -1
  73. package/dist/taro-components/p-a39276ff.system.entry.js +0 -1
@@ -7,115 +7,114 @@ import { StandardProps, CommonEventFunction, NetStatus } from './common'
7
7
  */
8
8
  interface LivePusherProps extends StandardProps {
9
9
  /** 推流地址。目前仅支持 rtmp 格式
10
- * @supported weapp
10
+ * @supported weapp, qq
11
11
  */
12
12
  url?: string
13
13
 
14
14
  /** SD(标清), HD(高清), FHD(超清), RTC(实时通话)
15
15
  * @default "RTC"
16
- * @supported weapp
16
+ * @supported weapp, qq
17
17
  */
18
18
  mode?: 'SD' | 'HD' | 'FHD' | 'RTC'
19
19
 
20
20
  /** 自动推流
21
21
  * @default false
22
- * @supported weapp
22
+ * @supported weapp, qq
23
23
  */
24
24
  autopush?: boolean
25
25
 
26
26
  /** 是否静音。即将废弃,可用 enable-mic 替代
27
27
  * @default false
28
28
  * @deprecated
29
- * @supported weapp
29
+ * @supported weapp, qq
30
30
  */
31
31
  muted?: boolean
32
32
 
33
33
  /** 开启摄像头
34
34
  * @default true
35
- * @supported weapp
35
+ * @supported weapp, qq
36
36
  */
37
37
  enableCamera?: boolean
38
38
 
39
39
  /** 自动聚集
40
40
  * @default true
41
- * @supported weapp
41
+ * @supported weapp, qq
42
42
  */
43
43
  autoFocus?: boolean
44
44
 
45
45
  /** 画面方向
46
46
  * @default "vertical"
47
- * @supported weapp
47
+ * @supported weapp, qq
48
48
  */
49
49
  orientation?: keyof LivePusherProps.Orientation
50
50
 
51
51
  /** 美颜,取值范围 0-9 ,0 表示关闭
52
52
  * @default 0
53
- * @supported weapp
53
+ * @supported weapp, qq
54
54
  */
55
55
  beauty?: number
56
56
 
57
57
  /** 美白,取值范围 0-9 ,0 表示关闭
58
58
  * @default 0
59
- * @supported weapp
59
+ * @supported weapp, qq
60
60
  */
61
61
  whiteness?: number
62
62
 
63
63
  /** 宽高比,可选值有 3:4, 9:16
64
64
  * @default "9:16"
65
- * @supported weapp
65
+ * @supported weapp, qq
66
66
  */
67
67
  aspect?: '9:16' | '3:4'
68
68
 
69
69
  /** 最小码率
70
70
  * @default 200
71
- * @supported weapp
71
+ * @supported weapp, qq
72
72
  */
73
73
  minBitrate?: number
74
74
 
75
75
  /** 最大码率
76
76
  * @default 1000
77
- * @supported weapp
77
+ * @supported weapp, qq
78
78
  */
79
79
  maxBitrate?: number
80
80
 
81
81
  /** 高音质(48KHz)或低音质(16KHz),值为high, low
82
82
  * @default "high"
83
- * @supported weapp
83
+ * @supported weapp, qq
84
84
  */
85
85
  audioQuality?: string
86
86
 
87
87
  /** 进入后台时推流的等待画面
88
- * @supported weapp
88
+ * @supported weapp, qq
89
89
  */
90
90
  waitingImage?: string
91
91
 
92
92
  /** 等待画面资源的MD5值
93
- * @supported weapp
93
+ * @supported weapp, qq
94
94
  */
95
95
  waitingImageHash?: string
96
96
 
97
97
  /** 调整焦距
98
98
  * @default false
99
- * @supported weapp
99
+ * @supported weapp, qq
100
100
  */
101
101
  zoom?: boolean
102
102
 
103
103
  /** 前置或后置,值为front, back
104
104
  * @default "front"
105
- * @supported weapp
105
+ * @supported weapp, qq
106
106
  */
107
107
  devicePosition?: string
108
108
 
109
109
  /** 进入后台时是否静音
110
110
  * @default false
111
- * @supported weapp
111
+ * @supported weapp, qq
112
112
  */
113
113
  backgroundMute?: boolean
114
114
 
115
115
  /** 设置推流画面是否镜像,产生的效果在 LivePlayer 反应到
116
116
  * @default false
117
- * @supported weapp
118
- * @deprecated
117
+ * @supported weapp, qq
119
118
  */
120
119
  mirror?: boolean
121
120
 
@@ -135,7 +134,7 @@ interface LivePusherProps extends StandardProps {
135
134
 
136
135
  /** 音频混响类型
137
136
  * @default 0
138
- * @supported weapp
137
+ * @supported weapp, qq
139
138
  */
140
139
  audioReverbType?: keyof LivePusherProps.AudioReverbType
141
140
 
@@ -188,32 +187,22 @@ interface LivePusherProps extends StandardProps {
188
187
  filter?: keyof LivePusherProps.FilterType
189
188
 
190
189
  /** 状态变化事件,detail = {code}
191
- * @supported weapp
190
+ * @supported weapp, qq
192
191
  */
193
192
  onStateChange?: CommonEventFunction<LivePusherProps.onStateChangeEventDetail>
194
193
 
195
- /** 网络状态通知,detail = {info}
196
- * @supported weapp
197
- */
198
- onNetstatus?: CommonEventFunction<LivePusherProps.onNetstatusEventDetail>
199
-
200
194
  /** 渲染错误事件,detail = {errMsg, errCode}
201
- * @supported weapp
195
+ * @supported weapp, qq
202
196
  */
203
197
  onError?: CommonEventFunction<LivePusherProps.onErrorEventDetail>
204
198
 
205
- /** 背景音开始播放时触发
206
- * @supported weapp
207
- */
208
- onBgmStart?: CommonEventFunction
209
-
210
199
  /** 背景音进度变化时触发,detail = {progress, duration}
211
- * @supported weapp
200
+ * @supported weapp, qq
212
201
  */
213
202
  onBgmProgress?: CommonEventFunction<LivePusherProps.onBgmProgressEventDetail>
214
203
 
215
204
  /** 背景音播放完成时触发
216
- * @supported weapp
205
+ * @supported weapp, qq
217
206
  */
218
207
  onBgmComplete?: CommonEventFunction
219
208
 
@@ -221,80 +210,131 @@ interface LivePusherProps extends StandardProps {
221
210
  * @supported weapp
222
211
  */
223
212
  onAudioVolumeNotify?: CommonEventFunction
224
- }
225
213
 
214
+ /** 设置小窗模式: push, pop,空字符串或通过数组形式设置多种模式(如: ["push", "pop"])
215
+ * @supported weapp
216
+ */
217
+ pictureInPictureMode?: string | any[]
218
+
219
+ /** 网络状态通知,detail = {info}
220
+ * @supported weapp, qq
221
+ */
222
+ onNetStatus?: CommonEventFunction
223
+
224
+ /** 进入小窗
225
+ * @supported weapp
226
+ */
227
+ onEnterPictureInPicture?: string
228
+
229
+ /** 退出小窗
230
+ * @supported weapp
231
+ */
232
+ onLeavePictureInPicture?: string
233
+
234
+ /** 背景音开始播放时触发
235
+ * @supported weapp, qq
236
+ */
237
+ onBgmStart?: CommonEventFunction
238
+ }
226
239
  declare namespace LivePusherProps {
227
240
  /** orientation 的合法值 */
228
241
  interface Orientation {
229
242
  /** 竖直 */
230
243
  vertical
244
+
231
245
  /** 水平 */
232
246
  horizontal
233
247
  }
248
+
234
249
  /** localMirror 的合法值 */
235
250
  interface LocalMirror {
236
251
  /** 前置摄像头镜像,后置摄像头不镜像 */
237
252
  auto
253
+
238
254
  /** 前后置摄像头均镜像 */
239
255
  enable
256
+
240
257
  /** 前后置摄像头均不镜像 */
241
258
  disable
242
259
  }
260
+
243
261
  /** audioReverbType 的合法值 */
244
262
  interface AudioReverbType {
245
263
  /** 关闭 */
246
264
  0
265
+
247
266
  /** KTV */
248
267
  1
268
+
249
269
  /** 小房间 */
250
270
  2
271
+
251
272
  /** 大会堂 */
252
273
  3
274
+
253
275
  /** 低沉 */
254
276
  4
277
+
255
278
  /** 洪亮 */
256
279
  5
280
+
257
281
  /** 金属声 */
258
282
  6
283
+
259
284
  /** 磁性 */
260
285
  7
261
286
  }
287
+
262
288
  /** audioVolumeType 的合法值 */
263
289
  interface AudioVolumeType {
264
290
  /** 媒体音量 */
265
291
  media
292
+
266
293
  /** 通话音量 */
267
294
  voicecall
268
295
  }
296
+
269
297
  /** beautyStyleType 的合法值 */
270
298
  interface BeautyStyleType {
271
299
  /** 光滑美颜 */
272
300
  smooth
301
+
273
302
  /** 自然美颜 */
274
303
  nature
275
304
  }
305
+
276
306
  /** filterType 的合法值 */
277
307
  interface FilterType {
278
308
  /** 标准 */
279
309
  standard
310
+
280
311
  /** 粉嫩 */
281
312
  pink
313
+
282
314
  /** 怀旧 */
283
315
  nostalgia
316
+
284
317
  /** 蓝调 */
285
318
  blues
319
+
286
320
  /** 浪漫 */
287
321
  romantic
322
+
288
323
  /** 清凉 */
289
324
  cool
325
+
290
326
  /** 清新 */
291
327
  fresher
328
+
292
329
  /** 日系 */
293
330
  solor
331
+
294
332
  /** 唯美 */
295
333
  aestheticism
334
+
296
335
  /** 美白 */
297
336
  whitening
337
+
298
338
  /** 樱红 */
299
339
  cerisered
300
340
  }
@@ -309,12 +349,14 @@ declare namespace LivePusherProps {
309
349
  interface onErrorEventDetail {
310
350
  /** 错误信息 */
311
351
  errMsg: string
352
+
312
353
  /** 错误码 */
313
354
  errCode: string | number
314
355
  }
315
356
  interface onBgmProgressEventDetail {
316
357
  /** 进展 */
317
358
  progress
359
+
318
360
  /** 持续时间 */
319
361
  duration: number
320
362
  }
@@ -343,5 +385,4 @@ declare namespace LivePusherProps {
343
385
  * @see https://developers.weixin.qq.com/miniprogram/dev/component/live-pusher.html
344
386
  */
345
387
  declare const LivePusher: ComponentType<LivePusherProps>
346
-
347
388
  export { LivePusher, LivePusherProps }