@tarojs/taro 3.6.22-nightly.9 → 3.6.23
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 +6 -6
- package/types/index.d.ts +79 -42
- package/types/taro.api.d.ts +1 -1
- package/types/taro.runtime.d.ts +9 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/taro",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.23",
|
|
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.23"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@tarojs/helper": "3.6.
|
|
28
|
-
"@tarojs/runtime": "3.6.
|
|
27
|
+
"@tarojs/helper": "3.6.23",
|
|
28
|
+
"@tarojs/runtime": "3.6.23"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"@tarojs/
|
|
32
|
-
"@tarojs/
|
|
31
|
+
"@tarojs/runtime": "~3.6.23",
|
|
32
|
+
"@tarojs/helper": "~3.6.23"
|
|
33
33
|
},
|
|
34
34
|
"peerDependenciesMeta": {
|
|
35
35
|
"@types/react": {
|
package/types/index.d.ts
CHANGED
|
@@ -3,53 +3,64 @@
|
|
|
3
3
|
*
|
|
4
4
|
* 目录结构
|
|
5
5
|
* ├── api 小程序端能力 API
|
|
6
|
-
* │
|
|
6
|
+
* │ ├── ad
|
|
7
7
|
* │ │ └── index.d.ts 广告 API
|
|
8
|
-
* │
|
|
8
|
+
* │ ├── ai
|
|
9
|
+
* │ │ ├── face.d.ts 人脸检测 API
|
|
10
|
+
* │ │ ├── inference.d.ts AI 推理 API
|
|
11
|
+
* │ │ └── visionkit.d.ts 视觉算法 API
|
|
12
|
+
* │ ├── alipay
|
|
9
13
|
* │ │ └── index.d.ts 支付宝小程序 API
|
|
10
|
-
* │
|
|
14
|
+
* │ ├── base
|
|
11
15
|
* │ │ ├── index.d.ts 基础 API
|
|
16
|
+
* │ │ ├── crypto.d.ts 基础 -> 加密 API
|
|
12
17
|
* │ │ ├── debug.d.ts 基础 -> 调试 API
|
|
18
|
+
* │ │ ├── env.d.ts 基础 -> ENV
|
|
19
|
+
* │ │ ├── performance.d.ts
|
|
13
20
|
* │ │ ├── system.d.ts 基础 -> 系统 API
|
|
14
|
-
* │
|
|
15
|
-
* │
|
|
16
|
-
* │
|
|
17
|
-
* │
|
|
18
|
-
* │
|
|
19
|
-
* │ ├── canvas
|
|
21
|
+
* │ │ ├── update.d.ts 基础 -> 更新 API
|
|
22
|
+
* │ │ └── weapp 基础 -> 小程序 API
|
|
23
|
+
* │ │ ├── app-event.d.ts 基础 -> 小程序 API -> 应用级事件
|
|
24
|
+
* │ │ └── life-cycle.d.ts 基础 -> 小程序 API -> 生命周期
|
|
25
|
+
* │ ├── canvas
|
|
20
26
|
* │ │ └── index.d.ts 画布 API
|
|
21
|
-
* │
|
|
27
|
+
* │ ├── cloud
|
|
22
28
|
* │ │ └── index.d.ts 微信小程序云开发 API
|
|
23
|
-
* │
|
|
29
|
+
* │ ├── data-analysis
|
|
24
30
|
* │ │ └── index.d.ts 数据分析 API
|
|
25
|
-
* │
|
|
31
|
+
* │ ├── device
|
|
26
32
|
* │ │ ├── accelerometer.d.ts 设备 -> 加速计 API
|
|
33
|
+
* │ │ ├── accessibility.d.ts 设备 -> 无障碍 API
|
|
27
34
|
* │ │ ├── battery.d.ts 设备 -> 电量 API
|
|
28
|
-
* │
|
|
29
|
-
* │
|
|
35
|
+
* │ │ ├── bluetooth-ble.d.ts 设备 -> 蓝牙-低功耗中心设备 API
|
|
36
|
+
* │ │ ├── bluetooth-peripheral.d.ts 设备 -> 蓝牙-低功耗外围设备 API
|
|
37
|
+
* │ │ ├── bluetooth.d.ts 设备 -> 蓝牙-通用 API
|
|
38
|
+
* │ │ ├── calendar.d.ts 设备 -> 日历 API
|
|
30
39
|
* │ │ ├── clipboard.d.ts 设备 -> 剪贴板 API
|
|
31
40
|
* │ │ ├── compass.d.ts 设备 -> 罗盘 API
|
|
32
41
|
* │ │ ├── contact.d.ts 设备 -> 联系人 API
|
|
33
|
-
* │ │ ├── motion.d.ts 设备 -> 设备方向 API
|
|
34
42
|
* │ │ ├── gyroscope.d.ts 设备 -> 陀螺仪 API
|
|
35
43
|
* │ │ ├── iBeacon.d.ts 设备 -> iBeacon API
|
|
36
|
-
* │
|
|
37
|
-
* │
|
|
38
|
-
* │ │ ├──
|
|
44
|
+
* │ │ ├── keyboard.d.ts 设备 -> 键盘 API
|
|
45
|
+
* │ │ ├── memory.d.ts 设备 -> 内存 API
|
|
46
|
+
* │ │ ├── motion.d.ts 设备 -> 设备方向 API
|
|
47
|
+
* │ │ ├── network.d.ts 设备 -> 网络 API
|
|
48
|
+
* │ │ ├── nfc.d.ts 设备 -> NFC 读写 API
|
|
39
49
|
* │ │ ├── phone.d.ts 设备 -> 电话 API
|
|
40
50
|
* │ │ ├── scan.d.ts 设备 -> 扫码 API
|
|
41
51
|
* │ │ ├── screen.d.ts 设备 -> 屏幕 API
|
|
52
|
+
* │ │ ├── sms.d.ts 设备 -> 短信 API
|
|
42
53
|
* │ │ ├── vibrate.d.ts 设备 -> 振动 API
|
|
43
54
|
* │ │ └── wifi.d.ts 设备 -> Wi-Fi API
|
|
44
|
-
* │
|
|
55
|
+
* │ ├── ext
|
|
45
56
|
* │ │ └── index.d.ts 第三方平台 API
|
|
46
|
-
* │
|
|
57
|
+
* │ ├── files
|
|
47
58
|
* │ │ └── index.d.ts 文件 API
|
|
48
|
-
* │
|
|
59
|
+
* │ ├── framework
|
|
49
60
|
* │ │ └── index.d.ts 小程序框架 API
|
|
50
|
-
* │
|
|
61
|
+
* │ ├── location
|
|
51
62
|
* │ │ └── index.d.ts 位置 API
|
|
52
|
-
* │
|
|
63
|
+
* │ ├── media
|
|
53
64
|
* │ │ ├── audio.d.ts 媒体 -> 音频 API
|
|
54
65
|
* │ │ ├── background-audio.d.ts 媒体 -> 背景音频 API
|
|
55
66
|
* │ │ ├── camera.d.ts 媒体 -> 相机 API
|
|
@@ -57,21 +68,26 @@
|
|
|
57
68
|
* │ │ ├── image.d.ts 媒体 -> 图片 API
|
|
58
69
|
* │ │ ├── live.d.ts 媒体 -> 实时音视频 API
|
|
59
70
|
* │ │ ├── map.d.ts 媒体 -> 地图 API
|
|
71
|
+
* │ │ ├── media-recorder.d.ts 媒体 -> 画面录制器 API
|
|
60
72
|
* │ │ ├── recorder.d.ts 媒体 -> 录音 API
|
|
61
|
-
* │
|
|
73
|
+
* │ │ ├── video-decoder.d.ts 媒体 -> 视频解码器 API
|
|
62
74
|
* │ │ └── video-processing.d.ts 媒体 -> 音视频合成 API
|
|
63
|
-
* │ ├──
|
|
75
|
+
* │ │ ├── video.d.ts 媒体 -> 视频 API
|
|
76
|
+
* │ │ └── voip.d.ts 媒体 -> 实时语音 API
|
|
77
|
+
* │ ├── navigate
|
|
78
|
+
* │ │ └── index.d.ts 跳转 API
|
|
79
|
+
* │ ├── network
|
|
64
80
|
* │ │ ├── download.d.ts 网络 -> 下载 API
|
|
65
81
|
* │ │ ├── mdns.d.ts 网络 -> mDNS API
|
|
66
82
|
* │ │ ├── request.d.ts 网络 -> 发起请求 API
|
|
83
|
+
* │ │ ├── tcp.d.ts 网络 -> TCP 通信 API
|
|
67
84
|
* │ │ ├── udp.d.ts 网络 -> UDP 通信 API
|
|
68
85
|
* │ │ ├── upload.d.ts 网络 -> 上传 API
|
|
69
86
|
* │ │ └── websocket.d.ts 网络 -> WebSocket API
|
|
70
|
-
* │
|
|
87
|
+
* │ ├── open-api
|
|
71
88
|
* │ │ ├── account.d.ts 开放接口 -> 账号信息 API
|
|
72
89
|
* │ │ ├── address.d.ts 开放接口 -> 收货地址 API
|
|
73
90
|
* │ │ ├── authorize.d.ts 开放接口 -> 授权 API
|
|
74
|
-
* │ │ ├── bookshelf.d.ts 开放接口 -> 书架 API
|
|
75
91
|
* │ │ ├── card.d.ts 开放接口 -> 卡券 API
|
|
76
92
|
* | | ├── channels.d.ts 开放接口 -> 视频号 API
|
|
77
93
|
* | | ├── customer-service.d.ts 开放接口 -> 微信客服 API
|
|
@@ -80,11 +96,10 @@
|
|
|
80
96
|
* │ │ ├── favorites.d.ts 开放接口 -> 收藏 API
|
|
81
97
|
* │ │ ├── group.d.ts 开放接口 -> 微信群 API
|
|
82
98
|
* │ │ ├── invoice.d.ts 开放接口 -> 发票 API
|
|
83
|
-
* │
|
|
99
|
+
* │ │ ├── license-plate.d.ts 开放接口 -> 车牌 API
|
|
84
100
|
* │ │ ├── login.d.ts 开放接口 -> 登录 API
|
|
85
101
|
* │ │ ├── my-miniprogram.d.ts 开放接口 -> 我的小程序 API
|
|
86
102
|
* │ │ ├── privacy.d.ts 开放接口 -> 隐私信息授权 API
|
|
87
|
-
* │ │ ├── payment.d.ts 开放接口 -> 支付 API
|
|
88
103
|
* │ │ ├── redpackage.d.ts 开放接口 -> 微信红包 API
|
|
89
104
|
* │ │ ├── settings.d.ts 开放接口 -> 设置 API
|
|
90
105
|
* │ │ ├── soter.d.ts 开放接口 -> 生物认证 API
|
|
@@ -92,23 +107,33 @@
|
|
|
92
107
|
* | | ├── subscribe-message.d.ts 开放接口 -> 订阅消息 API
|
|
93
108
|
* │ │ ├── user-info.d.ts 开放接口 -> 用户信息 API
|
|
94
109
|
* │ │ └── werun.d.ts 开放接口 -> 微信运动 API
|
|
95
|
-
* │
|
|
110
|
+
* │ ├── payment
|
|
111
|
+
* │ │ └── index.d.ts 支付 API
|
|
112
|
+
* │ ├── qq
|
|
113
|
+
* │ │ └── index.d.ts QQ 小程序 API
|
|
114
|
+
* │ ├── route
|
|
96
115
|
* │ │ └── index.d.ts 路由 API
|
|
97
|
-
* │
|
|
116
|
+
* │ ├── share
|
|
98
117
|
* │ │ └── index.d.ts 转发 API
|
|
99
|
-
* │
|
|
118
|
+
* │ ├── skyline
|
|
100
119
|
* │ │ └── index.d.ts 微信 Skyline API
|
|
101
|
-
* │
|
|
120
|
+
* │ ├── storage
|
|
102
121
|
* │ │ ├── background-fetch.d.ts 数据缓存 -> 后台获取 API
|
|
103
|
-
* │
|
|
104
|
-
* │
|
|
122
|
+
* │ │ ├── cache-manager.d.ts 数据缓存 -> 缓存管理 API
|
|
123
|
+
* │ │ └── index.d.ts 数据缓存 API
|
|
124
|
+
* │ ├── swan
|
|
125
|
+
* │ │ ├── bookshelf.d.ts 百度小程序 -> 书架 API
|
|
126
|
+
* │ │ ├── download-package.d.ts 百度小程序 -> 下载包 API
|
|
105
127
|
* │ │ └── index.d.ts 百度小程序 API
|
|
106
|
-
* │
|
|
128
|
+
* │ │ └── pay.d.ts 百度小程序 -> 支付 API
|
|
129
|
+
* │ ├── taro.extend.d.ts Taro 扩展 API 类型定义
|
|
130
|
+
* │ ├── taro.hooks.d.ts Taro Hooks 类型定义
|
|
131
|
+
* │ ├── ui
|
|
107
132
|
* │ │ ├── animation.d.ts 界面 -> 动画 API
|
|
108
133
|
* │ │ ├── background.d.ts 界面 -> 背景 API
|
|
109
134
|
* │ │ ├── custom-component.d.ts 界面 -> 自定义组件 API
|
|
110
135
|
* │ │ ├── fonts.d.ts 界面 -> 字体 API
|
|
111
|
-
* │
|
|
136
|
+
* │ │ ├── interaction.d.ts 界面 -> 交互 API
|
|
112
137
|
* │ │ ├── menu.d.ts 界面 -> 菜单 API
|
|
113
138
|
* │ │ ├── navigation-bar.d.ts 界面 -> 导航栏 API
|
|
114
139
|
* │ │ ├── pull-down-refresh.d.ts 界面 -> 下拉刷新 API
|
|
@@ -116,14 +141,25 @@
|
|
|
116
141
|
* │ │ ├── sticky.d.ts 界面 -> 置顶 API
|
|
117
142
|
* │ │ ├── tab-bar.d.ts 界面 -> TabBar API
|
|
118
143
|
* │ │ ├── window.d.ts 界面 -> 窗口 API
|
|
119
|
-
* │
|
|
120
|
-
* │ ├── worker
|
|
144
|
+
* │ ├── worker
|
|
121
145
|
* │ │ └── index.d.ts Worker API
|
|
122
|
-
* │
|
|
146
|
+
* │ └── wxml
|
|
123
147
|
* │ │ └── index.d.ts WXML API
|
|
124
|
-
*
|
|
125
|
-
* │
|
|
148
|
+
* ├── compile
|
|
149
|
+
* │ ├── compiler.d.ts
|
|
150
|
+
* │ ├── config
|
|
151
|
+
* │ │ ├── h5.d.ts
|
|
152
|
+
* │ │ ├── index.d.ts
|
|
153
|
+
* │ │ ├── manifest.d.ts
|
|
154
|
+
* │ │ ├── mini.d.ts
|
|
155
|
+
* │ │ ├── project.d.ts
|
|
156
|
+
* │ │ ├── rn.d.ts
|
|
157
|
+
* │ │ └── util.d.ts
|
|
158
|
+
* │ ├── hooks.d.ts Taro Hooks 类型定义
|
|
159
|
+
* │ └── index.d.ts
|
|
160
|
+
* ├── global.d.ts
|
|
126
161
|
* ├── index.d.ts 此文件
|
|
162
|
+
* ├── taro.api.d.ts
|
|
127
163
|
* ├── taro.component.d.ts Taro Component 类型定义
|
|
128
164
|
* ├── taro.config.d.ts Taro 小程序 App 与 Window 设置类型定义
|
|
129
165
|
* └── taro.lifecycle.d.ts Taro 生命周期类型定义
|
|
@@ -135,6 +171,7 @@
|
|
|
135
171
|
/// <reference path="taro.component.d.ts" />
|
|
136
172
|
/// <reference path="taro.config.d.ts" />
|
|
137
173
|
/// <reference path="taro.lifecycle.d.ts" />
|
|
174
|
+
/// <reference path="taro.runtime.d.ts" />
|
|
138
175
|
|
|
139
176
|
/// <reference types="@tarojs/plugin-platform-alipay/types/shims-alipay" />
|
|
140
177
|
/// <reference types="@tarojs/plugin-platform-jd/types/shims-jd" />
|
package/types/taro.api.d.ts
CHANGED
|
@@ -63,7 +63,6 @@
|
|
|
63
63
|
/// <reference path="api/open-api/account.d.ts" />
|
|
64
64
|
/// <reference path="api/open-api/address.d.ts" />
|
|
65
65
|
/// <reference path="api/open-api/authorize.d.ts" />
|
|
66
|
-
/// <reference path="api/open-api/bookshelf.d.ts" />
|
|
67
66
|
/// <reference path="api/open-api/card.d.ts" />
|
|
68
67
|
/// <reference path="api/open-api/channels.d.ts" />
|
|
69
68
|
/// <reference path="api/open-api/customer-service.d.ts" />
|
|
@@ -121,6 +120,7 @@
|
|
|
121
120
|
/// <reference path="api/alipay/index.d.ts" />
|
|
122
121
|
/// <reference path="api/qq/index.d.ts" />
|
|
123
122
|
|
|
123
|
+
/// <reference path="api/swan/bookshelf.d.ts" />
|
|
124
124
|
/// <reference path="api/swan/download-package.d.ts" />
|
|
125
125
|
/// <reference path="api/swan/index.d.ts" />
|
|
126
126
|
/// <reference path="api/swan/pay.d.ts" />
|