@dcloudio/uni-app-x 0.7.30 → 0.7.32
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 +1 -1
- package/types/app.d.ts +10 -154
- package/types/native/IUniElement.d.ts +22 -0
- package/types/native/IUniNativeViewElement.d.ts +8 -8
- package/types/native/UniElement.d.ts +1 -0
- package/types/native/UniEvent.d.ts +7 -0
- package/types/native/UniRichTextItemClickEvent.d.ts +1 -5
- package/types/native/global.d.ts +3 -0
- package/types/page.d.ts +38 -182
- package/types/uni/uts-plugin-api/global.d.ts +1 -0
- package/types/uni/uts-plugin-api/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +3 -3
- package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +55 -59
- package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +6 -7
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +30 -0
- package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +30 -7
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/global.d.ts +18 -0
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/index.d.ts +9 -0
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +136 -0
- package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +80 -26
- package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/global.d.ts +30 -0
- package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/index.d.ts +14 -0
- package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +273 -0
- package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-biz/global.d.ts +1 -0
- package/types/uni/uts-plugin-biz/index.d.ts +1 -0
- package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +198 -0
- package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/global.d.ts +60 -0
- package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/index.d.ts +29 -0
- package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/interface.d.ts +454 -0
- package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +7 -7
package/package.json
CHANGED
package/types/app.d.ts
CHANGED
|
@@ -1011,12 +1011,12 @@ export interface UniApp {
|
|
|
1011
1011
|
* "android": {
|
|
1012
1012
|
* "osVer": "5.0",
|
|
1013
1013
|
* "uniVer": "x",
|
|
1014
|
-
* "unixVer": "4.
|
|
1014
|
+
* "unixVer": "4.31"
|
|
1015
1015
|
* },
|
|
1016
1016
|
* "ios": {
|
|
1017
1017
|
* "osVer": "x",
|
|
1018
1018
|
* "uniVer": "x",
|
|
1019
|
-
* "unixVer": "4.
|
|
1019
|
+
* "unixVer": "4.31"
|
|
1020
1020
|
* },
|
|
1021
1021
|
* "harmony": {
|
|
1022
1022
|
* "osVer": "x",
|
|
@@ -1033,7 +1033,7 @@ export interface UniApp {
|
|
|
1033
1033
|
* },
|
|
1034
1034
|
* "web": {
|
|
1035
1035
|
* "uniVer": "x",
|
|
1036
|
-
* "unixVer": "4.
|
|
1036
|
+
* "unixVer": "4.31"
|
|
1037
1037
|
* }
|
|
1038
1038
|
* }
|
|
1039
1039
|
*/
|
|
@@ -1047,12 +1047,12 @@ export interface UniApp {
|
|
|
1047
1047
|
* "android": {
|
|
1048
1048
|
* "osVer": "5.0",
|
|
1049
1049
|
* "uniVer": "x",
|
|
1050
|
-
* "unixVer": "4.
|
|
1050
|
+
* "unixVer": "4.31"
|
|
1051
1051
|
* },
|
|
1052
1052
|
* "ios": {
|
|
1053
1053
|
* "osVer": "x",
|
|
1054
1054
|
* "uniVer": "x",
|
|
1055
|
-
* "unixVer": "4.
|
|
1055
|
+
* "unixVer": "4.31"
|
|
1056
1056
|
* },
|
|
1057
1057
|
* "harmony": {
|
|
1058
1058
|
* "osVer": "x",
|
|
@@ -1069,7 +1069,7 @@ export interface UniApp {
|
|
|
1069
1069
|
* },
|
|
1070
1070
|
* "web": {
|
|
1071
1071
|
* "uniVer": "x",
|
|
1072
|
-
* "unixVer": "4.
|
|
1072
|
+
* "unixVer": "4.31"
|
|
1073
1073
|
* }
|
|
1074
1074
|
* }
|
|
1075
1075
|
*/
|
|
@@ -1083,12 +1083,12 @@ export interface UniApp {
|
|
|
1083
1083
|
* "android": {
|
|
1084
1084
|
* "osVer": "5.0",
|
|
1085
1085
|
* "uniVer": "x",
|
|
1086
|
-
* "unixVer": "4.
|
|
1086
|
+
* "unixVer": "4.31"
|
|
1087
1087
|
* },
|
|
1088
1088
|
* "ios": {
|
|
1089
1089
|
* "osVer": "x",
|
|
1090
1090
|
* "uniVer": "x",
|
|
1091
|
-
* "unixVer": "4.
|
|
1091
|
+
* "unixVer": "4.31"
|
|
1092
1092
|
* },
|
|
1093
1093
|
* "harmony": {
|
|
1094
1094
|
* "osVer": "x",
|
|
@@ -1105,155 +1105,11 @@ export interface UniApp {
|
|
|
1105
1105
|
* },
|
|
1106
1106
|
* "web": {
|
|
1107
1107
|
* "uniVer": "x",
|
|
1108
|
-
* "unixVer": "4.
|
|
1108
|
+
* "unixVer": "4.31"
|
|
1109
1109
|
* }
|
|
1110
1110
|
* }
|
|
1111
1111
|
*/
|
|
1112
1112
|
globalData: GlobalData,
|
|
1113
|
-
/**
|
|
1114
|
-
* 监听自定义事件。事件可以由 uni.$emit 触发。回调函数会接收 uni.$emit 传递的参数。
|
|
1115
|
-
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/event-bus.html#emit
|
|
1116
|
-
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/event-bus.html#emit
|
|
1117
|
-
* @uniPlatform {
|
|
1118
|
-
* "app": {
|
|
1119
|
-
* "android": {
|
|
1120
|
-
* "osVer": "5.0",
|
|
1121
|
-
* "uniVer": "x",
|
|
1122
|
-
* "unixVer": "4.28"
|
|
1123
|
-
* },
|
|
1124
|
-
* "ios": {
|
|
1125
|
-
* "osVer": "x",
|
|
1126
|
-
* "uniVer": "x",
|
|
1127
|
-
* "unixVer": "4.28"
|
|
1128
|
-
* },
|
|
1129
|
-
* "harmony": {
|
|
1130
|
-
* "osVer": "x",
|
|
1131
|
-
* "uniVer": "x",
|
|
1132
|
-
* "unixVer": "x"
|
|
1133
|
-
* }
|
|
1134
|
-
* },
|
|
1135
|
-
* "mp": {
|
|
1136
|
-
* "weixin": {
|
|
1137
|
-
* "hostVer": "√",
|
|
1138
|
-
* "uniVer": "x",
|
|
1139
|
-
* "unixVer": "x"
|
|
1140
|
-
* },
|
|
1141
|
-
* },
|
|
1142
|
-
* "web": {
|
|
1143
|
-
* "uniVer": "x",
|
|
1144
|
-
* "unixVer": "4.28"
|
|
1145
|
-
* }
|
|
1146
|
-
* }
|
|
1147
|
-
*/
|
|
1148
|
-
on(eventName: string, callback: Function): void
|
|
1149
|
-
/**
|
|
1150
|
-
* 监听一个自定义事件。事件只触发一次,在第一次触发之后移除事件监听器
|
|
1151
|
-
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/event-bus.html#emit
|
|
1152
|
-
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/event-bus.html#emit
|
|
1153
|
-
* @uniPlatform {
|
|
1154
|
-
* "app": {
|
|
1155
|
-
* "android": {
|
|
1156
|
-
* "osVer": "5.0",
|
|
1157
|
-
* "uniVer": "x",
|
|
1158
|
-
* "unixVer": "4.28"
|
|
1159
|
-
* },
|
|
1160
|
-
* "ios": {
|
|
1161
|
-
* "osVer": "x",
|
|
1162
|
-
* "uniVer": "x",
|
|
1163
|
-
* "unixVer": "4.28"
|
|
1164
|
-
* },
|
|
1165
|
-
* "harmony": {
|
|
1166
|
-
* "osVer": "x",
|
|
1167
|
-
* "uniVer": "x",
|
|
1168
|
-
* "unixVer": "x"
|
|
1169
|
-
* }
|
|
1170
|
-
* },
|
|
1171
|
-
* "mp": {
|
|
1172
|
-
* "weixin": {
|
|
1173
|
-
* "hostVer": "√",
|
|
1174
|
-
* "uniVer": "x",
|
|
1175
|
-
* "unixVer": "x"
|
|
1176
|
-
* },
|
|
1177
|
-
* },
|
|
1178
|
-
* "web": {
|
|
1179
|
-
* "uniVer": "x",
|
|
1180
|
-
* "unixVer": "4.28"
|
|
1181
|
-
* }
|
|
1182
|
-
* }
|
|
1183
|
-
*/
|
|
1184
|
-
once(eventName: string, callback: Function): void
|
|
1185
|
-
/**
|
|
1186
|
-
* 移除自定义事件监听器。如果提供了事件名和回调,则只移除这个回调的监听器。如果仅提供事件名,则移除该事件的所有监听器。
|
|
1187
|
-
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/event-bus.html#emit
|
|
1188
|
-
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/event-bus.html#emit
|
|
1189
|
-
* @uniPlatform {
|
|
1190
|
-
* "app": {
|
|
1191
|
-
* "android": {
|
|
1192
|
-
* "osVer": "5.0",
|
|
1193
|
-
* "uniVer": "x",
|
|
1194
|
-
* "unixVer": "4.28"
|
|
1195
|
-
* },
|
|
1196
|
-
* "ios": {
|
|
1197
|
-
* "osVer": "x",
|
|
1198
|
-
* "uniVer": "x",
|
|
1199
|
-
* "unixVer": "4.28"
|
|
1200
|
-
* },
|
|
1201
|
-
* "harmony": {
|
|
1202
|
-
* "osVer": "x",
|
|
1203
|
-
* "uniVer": "x",
|
|
1204
|
-
* "unixVer": "x"
|
|
1205
|
-
* }
|
|
1206
|
-
* },
|
|
1207
|
-
* "mp": {
|
|
1208
|
-
* "weixin": {
|
|
1209
|
-
* "hostVer": "√",
|
|
1210
|
-
* "uniVer": "x",
|
|
1211
|
-
* "unixVer": "x"
|
|
1212
|
-
* },
|
|
1213
|
-
* },
|
|
1214
|
-
* "web": {
|
|
1215
|
-
* "uniVer": "x",
|
|
1216
|
-
* "unixVer": "4.28"
|
|
1217
|
-
* }
|
|
1218
|
-
* }
|
|
1219
|
-
*/
|
|
1220
|
-
off(eventName: string, callback?: Function | null): void
|
|
1221
|
-
/**
|
|
1222
|
-
* 触发自定义事件,附加的参数会传递给事件监听器。
|
|
1223
|
-
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/event-bus.html#emit
|
|
1224
|
-
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/event-bus.html#emit
|
|
1225
|
-
* @uniPlatform {
|
|
1226
|
-
* "app": {
|
|
1227
|
-
* "android": {
|
|
1228
|
-
* "osVer": "5.0",
|
|
1229
|
-
* "uniVer": "x",
|
|
1230
|
-
* "unixVer": "4.28"
|
|
1231
|
-
* },
|
|
1232
|
-
* "ios": {
|
|
1233
|
-
* "osVer": "x",
|
|
1234
|
-
* "uniVer": "x",
|
|
1235
|
-
* "unixVer": "4.28"
|
|
1236
|
-
* },
|
|
1237
|
-
* "harmony": {
|
|
1238
|
-
* "osVer": "x",
|
|
1239
|
-
* "uniVer": "x",
|
|
1240
|
-
* "unixVer": "x"
|
|
1241
|
-
* }
|
|
1242
|
-
* },
|
|
1243
|
-
* "mp": {
|
|
1244
|
-
* "weixin": {
|
|
1245
|
-
* "hostVer": "√",
|
|
1246
|
-
* "uniVer": "x",
|
|
1247
|
-
* "unixVer": "x"
|
|
1248
|
-
* },
|
|
1249
|
-
* },
|
|
1250
|
-
* "web": {
|
|
1251
|
-
* "uniVer": "x",
|
|
1252
|
-
* "unixVer": "4.28"
|
|
1253
|
-
* }
|
|
1254
|
-
* }
|
|
1255
|
-
*/
|
|
1256
|
-
emit(eventName: string, args: any | null): void
|
|
1257
1113
|
/**
|
|
1258
1114
|
* 获取 Android 应用 Application 上下文
|
|
1259
1115
|
* @uniPlatform {
|
|
@@ -1261,7 +1117,7 @@ export interface UniApp {
|
|
|
1261
1117
|
* "android": {
|
|
1262
1118
|
* "osVer": "5.0",
|
|
1263
1119
|
* "uniVer": "x",
|
|
1264
|
-
* "unixVer": "4.
|
|
1120
|
+
* "unixVer": "4.31"
|
|
1265
1121
|
* },
|
|
1266
1122
|
* "ios": {
|
|
1267
1123
|
* "osVer": "x",
|
|
@@ -1353,6 +1353,28 @@ export interface UniElement {
|
|
|
1353
1353
|
* }
|
|
1354
1354
|
*/
|
|
1355
1355
|
getAndroidActivity(): Activity | null
|
|
1356
|
+
/**
|
|
1357
|
+
* 获取元素所属的页面对象
|
|
1358
|
+
* @uniPlatform {
|
|
1359
|
+
* "app": {
|
|
1360
|
+
* "android": {
|
|
1361
|
+
* "osVer": "5.0",
|
|
1362
|
+
* "uniVer": "x",
|
|
1363
|
+
* "unixVer": "4.31"
|
|
1364
|
+
* },
|
|
1365
|
+
* "ios": {
|
|
1366
|
+
* "osVer": "12.0",
|
|
1367
|
+
* "uniVer": "x",
|
|
1368
|
+
* "unixVer": "4.31"
|
|
1369
|
+
* }
|
|
1370
|
+
* }
|
|
1371
|
+
* "web": {
|
|
1372
|
+
* "uniVer": "x",
|
|
1373
|
+
* "unixVer": "4.31"
|
|
1374
|
+
* }
|
|
1375
|
+
* }
|
|
1376
|
+
*/
|
|
1377
|
+
getPage(): UniPage | null
|
|
1356
1378
|
}
|
|
1357
1379
|
|
|
1358
1380
|
export type INode = UniElement
|
|
@@ -8,12 +8,12 @@ import { UniCustomEvent } from "./UniCustomEvent"
|
|
|
8
8
|
* "android": {
|
|
9
9
|
* "osVer": "5.0",
|
|
10
10
|
* "uniVer": "x",
|
|
11
|
-
* "unixVer": "4.
|
|
11
|
+
* "unixVer": "4.31"
|
|
12
12
|
* },
|
|
13
13
|
* "ios": {
|
|
14
14
|
* "osVer": "12.0",
|
|
15
15
|
* "uniVer": "x",
|
|
16
|
-
* "unixVer": "4.
|
|
16
|
+
* "unixVer": "4.31"
|
|
17
17
|
* }
|
|
18
18
|
* }
|
|
19
19
|
* }
|
|
@@ -26,7 +26,7 @@ export interface UniNativeViewElement extends UniElement {
|
|
|
26
26
|
* "android": {
|
|
27
27
|
* "osVer": "5.0",
|
|
28
28
|
* "uniVer": "x",
|
|
29
|
-
* "unixVer": "4.
|
|
29
|
+
* "unixVer": "4.31"
|
|
30
30
|
* },
|
|
31
31
|
* "ios": {
|
|
32
32
|
* "osVer": "12.0",
|
|
@@ -49,7 +49,7 @@ export interface UniNativeViewElement extends UniElement {
|
|
|
49
49
|
* "ios": {
|
|
50
50
|
* "osVer": "12.0",
|
|
51
51
|
* "uniVer": "x",
|
|
52
|
-
* "unixVer": "4.
|
|
52
|
+
* "unixVer": "4.31"
|
|
53
53
|
* }
|
|
54
54
|
* }
|
|
55
55
|
* }
|
|
@@ -70,12 +70,12 @@ export let UniNativeViewElement: {
|
|
|
70
70
|
* "android": {
|
|
71
71
|
* "osVer": "5.0",
|
|
72
72
|
* "uniVer": "x",
|
|
73
|
-
* "unixVer": "4.
|
|
73
|
+
* "unixVer": "4.31"
|
|
74
74
|
* },
|
|
75
75
|
* "ios": {
|
|
76
76
|
* "osVer": "12.0",
|
|
77
77
|
* "uniVer": "x",
|
|
78
|
-
* "unixVer": "4.
|
|
78
|
+
* "unixVer": "4.31"
|
|
79
79
|
* }
|
|
80
80
|
* }
|
|
81
81
|
* }
|
|
@@ -106,12 +106,12 @@ export class UniNativeViewInitEventDetail {
|
|
|
106
106
|
* "android": {
|
|
107
107
|
* "osVer": "5.0",
|
|
108
108
|
* "uniVer": "x",
|
|
109
|
-
* "unixVer": "4.
|
|
109
|
+
* "unixVer": "4.31"
|
|
110
110
|
* },
|
|
111
111
|
* "ios": {
|
|
112
112
|
* "osVer": "12.0",
|
|
113
113
|
* "uniVer": "x",
|
|
114
|
-
* "unixVer": "4.
|
|
114
|
+
* "unixVer": "4.31"
|
|
115
115
|
* }
|
|
116
116
|
* }
|
|
117
117
|
* }
|
|
@@ -4,10 +4,6 @@ import { UniEvent } from "./UniEvent"
|
|
|
4
4
|
* @package io.dcloud.uniapp.runtime
|
|
5
5
|
*/
|
|
6
6
|
export class UniRichTextItemClickEventDetail {
|
|
7
|
-
/**
|
|
8
|
-
* 自定义数据
|
|
9
|
-
*/
|
|
10
|
-
ref: string | null
|
|
11
7
|
/**
|
|
12
8
|
* <img/>图片链接
|
|
13
9
|
*/
|
|
@@ -20,7 +16,7 @@ export class UniRichTextItemClickEventDetail {
|
|
|
20
16
|
/**
|
|
21
17
|
* @internal
|
|
22
18
|
*/
|
|
23
|
-
constructor(
|
|
19
|
+
constructor(src: string | null, href: string | null)
|
|
24
20
|
}
|
|
25
21
|
|
|
26
22
|
/**
|
package/types/native/global.d.ts
CHANGED
|
@@ -139,6 +139,7 @@ import {
|
|
|
139
139
|
KeyEvent as KeyEventOrigin,
|
|
140
140
|
UniAppEvent as UniAppEventOrigin,
|
|
141
141
|
UniThemeChangeEvent as UniThemeChangeEventOrigin,
|
|
142
|
+
UniAppErrorEvent as UniAppErrorEventOrigin,
|
|
142
143
|
UniError as UniErrorOrigin,
|
|
143
144
|
UniElementImpl as UniElementImplOrigin,
|
|
144
145
|
UniViewElementImpl as UniViewElementImplOrigin,
|
|
@@ -484,6 +485,8 @@ declare global {
|
|
|
484
485
|
type UniAppEvent = UniAppEventOrigin
|
|
485
486
|
const UniThemeChangeEvent: typeof UniThemeChangeEventOrigin
|
|
486
487
|
type UniThemeChangeEvent = UniThemeChangeEventOrigin
|
|
488
|
+
const UniAppErrorEvent: typeof UniAppErrorEventOrigin
|
|
489
|
+
type UniAppErrorEvent = UniAppErrorEventOrigin
|
|
487
490
|
type Event = EventOrigin
|
|
488
491
|
type KeyEvent = KeyEventOrigin
|
|
489
492
|
const UniError: typeof UniErrorOrigin
|