@tarojs/taro 3.4.0-beta.2 → 3.4.2
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 +5 -7
- package/types/api/ai/face.d.ts +133 -0
- package/types/api/ai/visionkit.d.ts +303 -0
- package/types/api/base/crypto.d.ts +90 -0
- package/types/api/base/debug.d.ts +152 -13
- package/types/api/base/env.d.ts +2 -1
- package/types/api/base/index.d.ts +10 -2
- package/types/api/base/performance.d.ts +195 -0
- package/types/api/base/system.d.ts +539 -101
- package/types/api/base/update.d.ts +59 -7
- package/types/api/base/weapp/app-event.d.ts +49 -26
- package/types/api/base/weapp/life-cycle.d.ts +141 -1
- package/types/api/canvas/index.d.ts +171 -136
- package/types/api/cloud/index.d.ts +2 -2
- package/types/api/device/accelerometer.d.ts +3 -3
- package/types/api/device/accessibility.d.ts +26 -0
- package/types/api/device/battery.d.ts +2 -2
- package/types/api/device/{ble.d.ts → bluetooth-ble.d.ts} +228 -62
- package/types/api/device/bluetooth-peripheral.d.ts +430 -0
- package/types/api/device/bluetooth.d.ts +67 -2
- package/types/api/device/calendar.d.ts +88 -0
- package/types/api/device/contact.d.ts +74 -50
- package/types/api/device/gyroscope.d.ts +5 -5
- package/types/api/device/iBeacon.d.ts +33 -19
- package/types/api/{ui → device}/keyboard.d.ts +0 -0
- package/types/api/device/{performance.d.ts → memory.d.ts} +4 -4
- package/types/api/device/motion.d.ts +3 -3
- package/types/api/device/network.d.ts +53 -12
- package/types/api/device/nfc.d.ts +1089 -13
- package/types/api/device/scan.d.ts +1 -1
- package/types/api/device/screen.d.ts +40 -12
- package/types/api/device/wifi.d.ts +41 -6
- package/types/api/files/index.d.ts +371 -184
- package/types/api/location/index.d.ts +116 -55
- package/types/api/media/audio.d.ts +653 -60
- package/types/api/media/background-audio.d.ts +47 -41
- package/types/api/media/camera.d.ts +38 -19
- package/types/api/media/editor.d.ts +22 -2
- package/types/api/media/image.d.ts +54 -105
- package/types/api/media/live.d.ts +66 -6
- package/types/api/media/map.d.ts +469 -49
- package/types/api/media/media-recorder.d.ts +92 -0
- package/types/api/media/recorder.d.ts +20 -20
- package/types/api/media/video-decoder.d.ts +117 -0
- package/types/api/media/video-processing.d.ts +11 -7
- package/types/api/media/video.d.ts +327 -39
- package/types/api/media/voip.d.ts +290 -0
- package/types/api/{open-api/navigate.d.ts → navigate/index.d.ts} +63 -27
- package/types/api/network/download.d.ts +39 -16
- package/types/api/network/request.d.ts +143 -38
- package/types/api/network/tcp.d.ts +181 -0
- package/types/api/network/udp.d.ts +154 -83
- package/types/api/network/upload.d.ts +41 -25
- package/types/api/network/websocket.d.ts +16 -15
- package/types/api/open-api/authorize.d.ts +41 -2
- package/types/api/open-api/channels.d.ts +178 -0
- package/types/api/open-api/customer-service.d.ts +1 -1
- package/types/api/open-api/facial.d.ts +3 -0
- package/types/api/open-api/favorites.d.ts +100 -0
- package/types/api/open-api/group.d.ts +59 -0
- package/types/api/open-api/invoice.d.ts +2 -2
- package/types/api/open-api/license-plate.d.ts +27 -0
- package/types/api/open-api/login.d.ts +21 -0
- package/types/api/open-api/redpackage.d.ts +24 -0
- package/types/api/open-api/settings.d.ts +76 -14
- package/types/api/open-api/soter.d.ts +2 -2
- package/types/api/open-api/subscribe-message.d.ts +88 -3
- package/types/api/open-api/user-info.d.ts +55 -18
- package/types/api/open-api/werun.d.ts +33 -6
- package/types/api/payment/index.d.ts +119 -0
- package/types/api/route/index.d.ts +13 -9
- package/types/api/share/index.d.ts +192 -9
- package/types/api/storage/index.d.ts +29 -83
- package/types/api/swan/index.d.ts +1 -1
- package/types/api/ui/animation.d.ts +84 -70
- package/types/api/ui/background.d.ts +4 -2
- package/types/api/ui/custom-component.d.ts +1 -1
- package/types/api/ui/fonts.d.ts +27 -31
- package/types/api/ui/navigation-bar.d.ts +1 -0
- package/types/api/ui/scroll.d.ts +73 -7
- package/types/api/ui/sticky.d.ts +4 -4
- package/types/api/ui/tab-bar.d.ts +7 -7
- package/types/api/ui/window.d.ts +22 -2
- package/types/api/worker/index.d.ts +9 -1
- package/types/api/wxml/index.d.ts +143 -105
- package/types/compile.d.ts +111 -106
- package/types/global.d.ts +142 -111
- package/types/taro.api.d.ts +79 -62
- package/types/taro.component.d.ts +82 -60
- package/types/taro.config.d.ts +174 -170
- package/types/taro.extend.d.ts +0 -17
- package/types/taro.hooks.d.ts +12 -12
- package/types/taro.lifecycle.d.ts +7 -0
- package/h5.js +0 -4
- package/types/api/open-api/payment.d.ts +0 -61
|
@@ -44,9 +44,29 @@ declare module '../../index' {
|
|
|
44
44
|
/** 接口调用成功的回调函数 */
|
|
45
45
|
success?: (res: TaroGeneral.CallbackResult) => void
|
|
46
46
|
}
|
|
47
|
+
interface SendMessageOption {
|
|
48
|
+
/** SEI消息 */
|
|
49
|
+
msg: string
|
|
50
|
+
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
51
|
+
complete?: (res: TaroGeneral.CallbackResult) => void
|
|
52
|
+
/** 接口调用失败的回调函数 */
|
|
53
|
+
fail?: (res: TaroGeneral.CallbackResult) => void
|
|
54
|
+
/** 接口调用成功的回调函数 */
|
|
55
|
+
success?: (res: TaroGeneral.CallbackResult) => void
|
|
56
|
+
}
|
|
47
57
|
interface SetBGMVolumeOption {
|
|
48
58
|
/** 音量大小,范围是 0-1 */
|
|
49
|
-
volume:
|
|
59
|
+
volume: number
|
|
60
|
+
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
61
|
+
complete?: (res: TaroGeneral.CallbackResult) => void
|
|
62
|
+
/** 接口调用失败的回调函数 */
|
|
63
|
+
fail?: (res: TaroGeneral.CallbackResult) => void
|
|
64
|
+
/** 接口调用成功的回调函数 */
|
|
65
|
+
success?: (res: TaroGeneral.CallbackResult) => void
|
|
66
|
+
}
|
|
67
|
+
interface SetMICVolumeOption {
|
|
68
|
+
/** 音量大小,范围是 0-1 */
|
|
69
|
+
volume: number
|
|
50
70
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
51
71
|
complete?: (res: TaroGeneral.CallbackResult) => void
|
|
52
72
|
/** 接口调用失败的回调函数 */
|
|
@@ -121,6 +141,7 @@ declare module '../../index' {
|
|
|
121
141
|
}
|
|
122
142
|
/** `LivePusherContext` 实例,可通过 `Taro.createLivePusherContext` 获取。
|
|
123
143
|
* `LivePusherContext` 与页面内唯一的 `live-pusher` 组件绑定,操作对应的 `live-pusher` 组件。
|
|
144
|
+
* @supported weapp
|
|
124
145
|
* @see https://developers.weixin.qq.com/miniprogram/dev/api/media/live/LivePusherContext.html
|
|
125
146
|
*/
|
|
126
147
|
interface LivePusherContext {
|
|
@@ -149,11 +170,21 @@ declare module '../../index' {
|
|
|
149
170
|
* @see https://developers.weixin.qq.com/miniprogram/dev/api/media/live/LivePusherContext.resumeBGM.html
|
|
150
171
|
*/
|
|
151
172
|
resumeBGM(option?: LivePusherContext.ResumeBGMOption): void
|
|
173
|
+
/** 发送SEI消息
|
|
174
|
+
* @supported weapp
|
|
175
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/api/media/live/LivePusherContext.sendMessage.html
|
|
176
|
+
*/
|
|
177
|
+
sendMessage(option?: LivePusherContext.SendMessageOption): void
|
|
152
178
|
/** 设置背景音音量
|
|
153
179
|
* @supported weapp
|
|
154
180
|
* @see https://developers.weixin.qq.com/miniprogram/dev/api/media/live/LivePusherContext.setBGMVolume.html
|
|
155
181
|
*/
|
|
156
182
|
setBGMVolume(option: LivePusherContext.SetBGMVolumeOption): void
|
|
183
|
+
/** 设置麦克风音量
|
|
184
|
+
* @supported weapp
|
|
185
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/api/media/live/LivePusherContext.setMICVolume.html
|
|
186
|
+
*/
|
|
187
|
+
setMICVolume(option: LivePusherContext.SetMICVolumeOption): void
|
|
157
188
|
/** 快照
|
|
158
189
|
* @supported weapp
|
|
159
190
|
* @see https://developers.weixin.qq.com/miniprogram/dev/api/media/live/LivePusherContext.snapshot.html
|
|
@@ -204,6 +235,14 @@ declare module '../../index' {
|
|
|
204
235
|
/** 接口调用成功的回调函数 */
|
|
205
236
|
success?: (res: TaroGeneral.CallbackResult) => void
|
|
206
237
|
}
|
|
238
|
+
interface ExitPictureInPictureOption {
|
|
239
|
+
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
240
|
+
complete?: (res: TaroGeneral.CallbackResult) => void
|
|
241
|
+
/** 接口调用失败的回调函数 */
|
|
242
|
+
fail?: (res: TaroGeneral.CallbackResult) => void
|
|
243
|
+
/** 接口调用成功的回调函数 */
|
|
244
|
+
success?: (res: TaroGeneral.CallbackResult) => void
|
|
245
|
+
}
|
|
207
246
|
interface MuteOption {
|
|
208
247
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
209
248
|
complete?: (res: TaroGeneral.CallbackResult) => void
|
|
@@ -243,6 +282,14 @@ declare module '../../index' {
|
|
|
243
282
|
/** 接口调用成功的回调函数 */
|
|
244
283
|
success?: (res: TaroGeneral.CallbackResult) => void
|
|
245
284
|
}
|
|
285
|
+
interface RequestPictureInPictureOption {
|
|
286
|
+
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
287
|
+
complete?: (res: TaroGeneral.CallbackResult) => void
|
|
288
|
+
/** 接口调用失败的回调函数 */
|
|
289
|
+
fail?: (res: TaroGeneral.CallbackResult) => void
|
|
290
|
+
/** 接口调用成功的回调函数 */
|
|
291
|
+
success?: (res: TaroGeneral.CallbackResult) => void
|
|
292
|
+
}
|
|
246
293
|
interface ResumeOption {
|
|
247
294
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
248
295
|
complete?: (res: TaroGeneral.CallbackResult) => void
|
|
@@ -281,6 +328,7 @@ declare module '../../index' {
|
|
|
281
328
|
|
|
282
329
|
/** `LivePlayerContext` 实例,可通过 `Taro.createLivePlayerContext` 获取。
|
|
283
330
|
* `LivePlayerContext` 通过 `id` 跟一个 `live-player` 组件绑定,操作对应的 `live-player` 组件。
|
|
331
|
+
* @supported weapp
|
|
284
332
|
* @see https://developers.weixin.qq.com/miniprogram/dev/api/media/live/LivePlayerContext.html
|
|
285
333
|
*/
|
|
286
334
|
interface LivePlayerContext {
|
|
@@ -289,6 +337,11 @@ declare module '../../index' {
|
|
|
289
337
|
* @see https://developers.weixin.qq.com/miniprogram/dev/api/media/live/LivePlayerContext.exitFullScreen.html
|
|
290
338
|
*/
|
|
291
339
|
exitFullScreen(option?: LivePlayerContext.ExitFullScreenOption): void
|
|
340
|
+
/** 退出小窗,该方法可在任意页面调用
|
|
341
|
+
* @supported weapp
|
|
342
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/api/media/live/LivePlayerContext.exitPictureInPicture.html
|
|
343
|
+
*/
|
|
344
|
+
exitPictureInPicture(option?: LivePlayerContext.ExitPictureInPictureOption): void
|
|
292
345
|
/** 静音
|
|
293
346
|
* @supported weapp
|
|
294
347
|
* @see https://developers.weixin.qq.com/miniprogram/dev/api/media/live/LivePlayerContext.mute.html
|
|
@@ -309,7 +362,14 @@ declare module '../../index' {
|
|
|
309
362
|
* @see https://developers.weixin.qq.com/miniprogram/dev/api/media/live/LivePlayerContext.requestFullScreen.html
|
|
310
363
|
*/
|
|
311
364
|
requestFullScreen(
|
|
312
|
-
|
|
365
|
+
option: LivePlayerContext.RequestFullScreenOption,
|
|
366
|
+
): void
|
|
367
|
+
/** 进入全屏
|
|
368
|
+
* @supported weapp
|
|
369
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/api/media/live/LivePlayerContext.requestPictureInPicture.html
|
|
370
|
+
*/
|
|
371
|
+
requestPictureInPicture(
|
|
372
|
+
option: LivePlayerContext.RequestPictureInPictureOption,
|
|
313
373
|
): void
|
|
314
374
|
/** 恢复
|
|
315
375
|
* @supported weapp
|
|
@@ -329,20 +389,20 @@ declare module '../../index' {
|
|
|
329
389
|
}
|
|
330
390
|
|
|
331
391
|
interface TaroStatic {
|
|
332
|
-
/** 创建 [live-pusher](
|
|
392
|
+
/** 创建 [live-pusher](/docs/components/media/live-pusher) 上下文 [LivePusherContext](/docs/apis/media/live/LivePusherContext) 对象。
|
|
333
393
|
* @supported weapp
|
|
334
394
|
* @see https://developers.weixin.qq.com/miniprogram/dev/api/media/live/wx.createLivePusherContext.html
|
|
335
395
|
*/
|
|
336
396
|
createLivePusherContext(): LivePusherContext
|
|
337
397
|
|
|
338
|
-
/** 创建 [live-player](
|
|
398
|
+
/** 创建 [live-player](/docs/components/media/live-player) 上下文 [LivePlayerContext](/docs/apis/media/live/LivePlayerContext) 对象。
|
|
339
399
|
* @supported weapp
|
|
340
400
|
* @see https://developers.weixin.qq.com/miniprogram/dev/api/media/live/wx.createLivePlayerContext.html
|
|
341
401
|
*/
|
|
342
402
|
createLivePlayerContext(
|
|
343
|
-
/** [live-player](
|
|
403
|
+
/** [live-player](/docs/components/media/live-player) 组件的 id */
|
|
344
404
|
id: string,
|
|
345
|
-
/** 在自定义组件下,当前组件实例的this,以操作组件内 [live-player](
|
|
405
|
+
/** 在自定义组件下,当前组件实例的this,以操作组件内 [live-player](/docs/components/media/live-player) 组件 */
|
|
346
406
|
component?: TaroGeneral.IAnyObject,
|
|
347
407
|
): LivePlayerContext
|
|
348
408
|
}
|