@tarojs/taro 3.6.23 → 3.6.24-nightly.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/taro",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.24-nightly.1",
|
|
4
4
|
"description": "Taro framework",
|
|
5
5
|
"homepage": "https://github.com/nervjs/taro/tree/master/packages/taro#readme",
|
|
6
6
|
"main": "index.js",
|
|
@@ -21,15 +21,15 @@
|
|
|
21
21
|
"author": "O2Team",
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@tarojs/api": "3.6.
|
|
24
|
+
"@tarojs/api": "3.6.24-nightly.1"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@tarojs/helper": "3.6.
|
|
28
|
-
"@tarojs/runtime": "3.6.
|
|
27
|
+
"@tarojs/helper": "3.6.24-nightly.1",
|
|
28
|
+
"@tarojs/runtime": "3.6.24-nightly.1"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"@tarojs/runtime": "~3.6.
|
|
32
|
-
"@tarojs/helper": "~3.6.
|
|
31
|
+
"@tarojs/runtime": "~3.6.24-nightly.1",
|
|
32
|
+
"@tarojs/helper": "~3.6.24-nightly.1"
|
|
33
33
|
},
|
|
34
34
|
"peerDependenciesMeta": {
|
|
35
35
|
"@types/react": {
|
|
@@ -800,6 +800,15 @@ declare module '../../index' {
|
|
|
800
800
|
setPosition(...args: any[]): void
|
|
801
801
|
}
|
|
802
802
|
|
|
803
|
+
namespace createInnerAudioContext {
|
|
804
|
+
interface Option {
|
|
805
|
+
/** 是否使用 WebAudio 作为底层音频驱动,默认关闭。对于短音频、播放频繁的音频建议开启此选项,开启后将获得更优的性能表现。由于开启此选项后也会带来一定的内存增长,因此对于长音频建议关闭此选项。
|
|
806
|
+
* @supported weapp
|
|
807
|
+
*/
|
|
808
|
+
useWebAudioImplement: boolean
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
|
|
803
812
|
interface TaroStatic {
|
|
804
813
|
/** 结束播放语音。
|
|
805
814
|
* **注意:1.6.0 版本开始,本接口不再维护。建议使用能力更强的 [Taro.createInnerAudioContext](./createInnerAudioContext) 接口**
|
|
@@ -979,7 +988,7 @@ declare module '../../index' {
|
|
|
979
988
|
* ```
|
|
980
989
|
* @see https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/wx.createInnerAudioContext.html
|
|
981
990
|
*/
|
|
982
|
-
createInnerAudioContext(): InnerAudioContext
|
|
991
|
+
createInnerAudioContext(option?: createInnerAudioContext.Option): InnerAudioContext
|
|
983
992
|
|
|
984
993
|
/** 创建 audio 上下文 AudioContext 对象。
|
|
985
994
|
* **注意:1.6.0 版本开始,本接口不再维护。建议使用能力更强的 [Taro.createInnerAudioContext](./createInnerAudioContext) 接口**
|
|
@@ -43,7 +43,7 @@ declare module '../../index' {
|
|
|
43
43
|
1
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
|
|
46
|
+
|
|
47
47
|
namespace deleteBookshelf {
|
|
48
48
|
interface Option {
|
|
49
49
|
/** 要删除的内容分类 */
|
|
@@ -115,13 +115,13 @@ declare module '../../index' {
|
|
|
115
115
|
1
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
|
-
|
|
118
|
+
|
|
119
119
|
namespace updateBookshelfReadTime {
|
|
120
120
|
interface Option {
|
|
121
121
|
/** 添加的内容分类 */
|
|
122
122
|
category: keyof Category | string
|
|
123
123
|
/** 要更新内容的 id;注释:contentId 为内容 id,内容的唯一标识,自定义,最长 22 字符(不能含有空格、中文字符) */
|
|
124
|
-
contentIds: string[]
|
|
124
|
+
contentIds: string[]
|
|
125
125
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
126
126
|
complete?: (res: TaroGeneral.CallbackResult) => void
|
|
127
127
|
/** 接口调用失败的回调函数 */
|
|
@@ -278,7 +278,7 @@ declare module '../../index' {
|
|
|
278
278
|
* @see https://smartprogram.baidu.com/docs/develop/api/open/swan-queryBookshelf/
|
|
279
279
|
*/
|
|
280
280
|
updateBookshelfReadTime(option: updateBookshelfReadTime.Option): void
|
|
281
|
-
|
|
281
|
+
|
|
282
282
|
/** 跳转到宿主书架
|
|
283
283
|
* @supported swan
|
|
284
284
|
* @swan (需宿主支持书架入口)
|
|
@@ -304,4 +304,4 @@ declare module '../../index' {
|
|
|
304
304
|
*/
|
|
305
305
|
navigateToBookshelf(option: navigateToBookshelf.Option): void
|
|
306
306
|
}
|
|
307
|
-
}
|
|
307
|
+
}
|
|
@@ -145,7 +145,7 @@ declare module '../index' {
|
|
|
145
145
|
Current: getCurrentInstance.Current
|
|
146
146
|
|
|
147
147
|
/** Vue3 插件,用于设置 `getApp()` 中的全局变量
|
|
148
|
-
* @supported weapp, alipay, h5, rn, jd, qq, swan, tt, quickapp
|
|
148
|
+
* @supported weapp, alipay, h5, rn, jd, qq, swan, tt, quickapp, harmony_hybrid
|
|
149
149
|
* @example
|
|
150
150
|
* ```js
|
|
151
151
|
* // 使用插件
|
package/types/index.d.ts
CHANGED
|
@@ -191,6 +191,6 @@ declare namespace Taro {
|
|
|
191
191
|
interface TaroStatic {}
|
|
192
192
|
}
|
|
193
193
|
declare global {
|
|
194
|
-
const defineAppConfig: (config: Taro.
|
|
195
|
-
const definePageConfig: (config: Taro.
|
|
194
|
+
const defineAppConfig: (config: Taro.AppConfig) => Taro.AppConfig
|
|
195
|
+
const definePageConfig: (config: Taro.PageConfig) => Taro.Config
|
|
196
196
|
}
|
package/types/taro.config.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ declare module './index' {
|
|
|
34
34
|
backgroundColor?: string
|
|
35
35
|
/** 下拉背景字体、loading 图的样式,仅支持 dark/light
|
|
36
36
|
* 当 app.json 中配置 darkmode 为 true 时可通过变量的形式配置
|
|
37
|
-
* @see: https://developers.weixin.qq.com/miniprogram/dev/framework/ability/darkmode.html
|
|
37
|
+
* @see: https://developers.weixin.qq.com/miniprogram/dev/framework/ability/darkmode.html
|
|
38
38
|
* @default: "dark"
|
|
39
39
|
*/
|
|
40
40
|
backgroundTextStyle?: 'dark' | 'light' | string
|