@dcloudio/uni-app-x 0.7.39 → 0.7.40

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 (104) hide show
  1. package/package.json +9 -7
  2. package/types/UniPage.d.ts +168 -22
  3. package/types/app.d.ts +31 -31
  4. package/types/native/CSSStyleDeclaration.d.ts +16 -2
  5. package/types/native/DOMRect.d.ts +430 -10
  6. package/types/native/DrawableContext.d.ts +1137 -45
  7. package/types/native/IUniElement.d.ts +1875 -93
  8. package/types/native/UniNativePage.d.ts +94 -0
  9. package/types/native/UniResizeObserver.d.ts +215 -5
  10. package/types/native/UniSafeArea.d.ts +185 -0
  11. package/types/native/UniVideoElement.d.ts +432 -0
  12. package/types/native/global.d.ts +7 -0
  13. package/types/native/index.d.ts +1 -0
  14. package/types/uni/uni-map-tencent-map.d.ts +12 -8
  15. package/types/uni/uts-plugin-api/global.d.ts +62 -61
  16. package/types/uni/uts-plugin-api/index.d.ts +62 -61
  17. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/global.d.ts +22 -0
  18. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/index.d.ts +10 -0
  19. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/interface.d.ts +278 -0
  20. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +1600 -59
  21. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +64 -63
  22. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/global.d.ts +0 -2
  23. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/index.d.ts +0 -1
  24. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +1150 -186
  25. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +64 -63
  26. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +550 -550
  27. package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/interface.d.ts +69 -72
  28. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +533 -135
  29. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +1508 -77
  30. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +423 -63
  31. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +284 -63
  32. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +2 -9
  33. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +1 -1
  34. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/global.d.ts +62 -62
  35. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/index.d.ts +31 -31
  36. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +57 -57
  37. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +312 -110
  38. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +62 -62
  39. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +472 -72
  40. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +126 -78
  41. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +317 -66
  42. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +570 -63
  43. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +570 -63
  44. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +110 -66
  45. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +595 -177
  46. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +284 -63
  47. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +45 -1
  48. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +1387 -182
  49. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +67 -67
  50. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +318 -53
  51. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +162 -63
  52. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +241 -64
  53. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +6 -0
  54. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +3 -0
  55. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +4089 -659
  56. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +460 -252
  57. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +2345 -213
  58. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +1205 -149
  59. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +339 -33
  60. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +457 -53
  61. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +328 -63
  62. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +317 -66
  63. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +120 -71
  64. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +2157 -437
  65. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +260 -126
  66. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +467 -315
  67. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +553 -53
  68. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +1608 -630
  69. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +2492 -504
  70. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +176 -130
  71. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +704 -58
  72. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +1230 -454
  73. package/types/uni/uts-plugin-biz/global.d.ts +6 -5
  74. package/types/uni/uts-plugin-biz/index.d.ts +6 -5
  75. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +406 -123
  76. package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/global.d.ts +4 -0
  77. package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/index.d.ts +2 -0
  78. package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/interface.d.ts +60 -47
  79. package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/interface.d.ts +71 -71
  80. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +3 -3
  81. package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/global.d.ts +24 -0
  82. package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/index.d.ts +11 -0
  83. package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/interface.d.ts +204 -0
  84. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/global.d.ts +42 -38
  85. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/index.d.ts +21 -19
  86. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +502 -255
  87. package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/global.d.ts +64 -0
  88. package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/index.d.ts +31 -0
  89. package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/interface.d.ts +900 -0
  90. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +48 -48
  91. package/types/uni/uts-plugin-extend/global.d.ts +0 -4
  92. package/types/uni/uts-plugin-extend/index.d.ts +0 -4
  93. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +825 -273
  94. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +4399 -339
  95. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +1000 -268
  96. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/interface.d.ts +1 -1
  97. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +3 -3
  98. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +1495 -384
  99. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +222 -132
  100. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/interface.d.ts +923 -67
  101. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/interface.d.ts +2 -2
  102. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +0 -7
  103. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +0 -1
  104. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +0 -716
@@ -7,70 +7,376 @@ export interface Uni {
7
7
  * @param {OpenAppAuthorizeSettingOptions} options
8
8
  * @return {void}
9
9
  * @tutorial http://uniapp.dcloud.io/api/system/openappauthorizesetting
10
- * @uniPlatform
11
- * {
12
- * "app": {
13
- * "android": {
14
- * "osVer": "4.4",
15
- * "uniVer": "",
16
- * "unixVer": "3.9+"
17
- * },
18
- * "ios": {
19
- * "osVer": "12.0",
20
- * "uniVer": "",
21
- * "unixVer": "4.11"
22
- * },
23
- * "harmony": {
24
- * "osVer": "3.0",
25
- * "uniVer": "4.23",
26
- * "unixVer": "x"
27
- * }
28
- * }
29
- * }
10
+ * @uniPlatform {
11
+ * "app": {
12
+ * "android": {
13
+ * "osVer": "4.4",
14
+ * "uniVer": "",
15
+ * "unixVer": "3.9+"
16
+ * },
17
+ * "ios": {
18
+ * "osVer": "12.0",
19
+ * "uniVer": "",
20
+ * "unixVer": "4.11"
21
+ * },
22
+ * "harmony": {
23
+ * "osVer": "3.0",
24
+ * "uniVer": "4.23",
25
+ * "unixVer": "x"
26
+ * }
27
+ * },
28
+ * "mp": {
29
+ * "weixin": {
30
+ * "hostVer": "2.20.1",
31
+ * "uniVer": "√",
32
+ * "unixVer": "4.41"
33
+ * },
34
+ * "alipay": {
35
+ * "hostVer": "-",
36
+ * "uniVer": "-",
37
+ * "unixVer": "-"
38
+ * },
39
+ * "baidu": {
40
+ * "hostVer": "-",
41
+ * "uniVer": "-",
42
+ * "unixVer": "-"
43
+ * },
44
+ * "toutiao": {
45
+ * "hostVer": "-",
46
+ * "uniVer": "-",
47
+ * "unixVer": "-"
48
+ * },
49
+ * "lark": {
50
+ * "hostVer": "-",
51
+ * "uniVer": "-",
52
+ * "unixVer": "-"
53
+ * },
54
+ * "qq": {
55
+ * "hostVer": "-",
56
+ * "uniVer": "-",
57
+ * "unixVer": "-"
58
+ * },
59
+ * "kuaishou": {
60
+ * "hostVer": "-",
61
+ * "uniVer": "-",
62
+ * "unixVer": "-"
63
+ * },
64
+ * "jd": {
65
+ * "hostVer": "-",
66
+ * "uniVer": "-",
67
+ * "unixVer": "-"
68
+ * }
69
+ * }
70
+ * }
30
71
  * @example
31
72
  ```typescript
32
73
  uni.openAppAuthorizeSetting({});
33
- ```
34
- */
74
+ ```
75
+ * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/base/system/wx.openAppAuthorizeSetting.html
76
+ */
35
77
  openAppAuthorizeSetting(options: OpenAppAuthorizeSettingOptions): void;
36
78
  }
37
79
 
38
80
  export type OpenAppAuthorizeSetting = (options: OpenAppAuthorizeSettingOptions) => void;
39
81
  export type OpenAppAuthorizeSettingSuccess = {
40
82
  /**
41
- * 错误信息
42
- */
83
+ * 错误信息
84
+ * @uniPlatform {
85
+ * "mp": {
86
+ * "weixin": {
87
+ * "hostVer": "√",
88
+ * "uniVer": "√",
89
+ * "unixVer": "4.41"
90
+ * },
91
+ * "alipay": {
92
+ * "hostVer": "-",
93
+ * "uniVer": "-",
94
+ * "unixVer": "-"
95
+ * },
96
+ * "baidu": {
97
+ * "hostVer": "-",
98
+ * "uniVer": "-",
99
+ * "unixVer": "-"
100
+ * },
101
+ * "toutiao": {
102
+ * "hostVer": "-",
103
+ * "uniVer": "-",
104
+ * "unixVer": "-"
105
+ * },
106
+ * "lark": {
107
+ * "hostVer": "-",
108
+ * "uniVer": "-",
109
+ * "unixVer": "-"
110
+ * },
111
+ * "qq": {
112
+ * "hostVer": "-",
113
+ * "uniVer": "-",
114
+ * "unixVer": "-"
115
+ * },
116
+ * "kuaishou": {
117
+ * "hostVer": "-",
118
+ * "uniVer": "-",
119
+ * "unixVer": "-"
120
+ * },
121
+ * "jd": {
122
+ * "hostVer": "-",
123
+ * "uniVer": "-",
124
+ * "unixVer": "-"
125
+ * }
126
+ * }
127
+ * }
128
+ */
43
129
  errMsg: string
44
130
  };
45
131
  export type OpenAppAuthorizeSettingSuccessCallback = (result: OpenAppAuthorizeSettingSuccess) => void;
46
132
  export type OpenAppAuthorizeSettingFail = {
47
133
  /**
48
- * 错误信息
49
- */
134
+ * 错误信息
135
+ * @uniPlatform {
136
+ * "mp": {
137
+ * "weixin": {
138
+ * "hostVer": "√",
139
+ * "uniVer": "√",
140
+ * "unixVer": "4.41"
141
+ * },
142
+ * "alipay": {
143
+ * "hostVer": "-",
144
+ * "uniVer": "-",
145
+ * "unixVer": "-"
146
+ * },
147
+ * "baidu": {
148
+ * "hostVer": "-",
149
+ * "uniVer": "-",
150
+ * "unixVer": "-"
151
+ * },
152
+ * "toutiao": {
153
+ * "hostVer": "-",
154
+ * "uniVer": "-",
155
+ * "unixVer": "-"
156
+ * },
157
+ * "lark": {
158
+ * "hostVer": "-",
159
+ * "uniVer": "-",
160
+ * "unixVer": "-"
161
+ * },
162
+ * "qq": {
163
+ * "hostVer": "-",
164
+ * "uniVer": "-",
165
+ * "unixVer": "-"
166
+ * },
167
+ * "kuaishou": {
168
+ * "hostVer": "-",
169
+ * "uniVer": "-",
170
+ * "unixVer": "-"
171
+ * },
172
+ * "jd": {
173
+ * "hostVer": "-",
174
+ * "uniVer": "-",
175
+ * "unixVer": "-"
176
+ * }
177
+ * }
178
+ * }
179
+ */
50
180
  errMsg: string
51
181
  };
52
182
  export type OpenAppAuthorizeSettingFailCallback = (result: OpenAppAuthorizeSettingFail) => void;
53
183
  export type OpenAppAuthorizeSettingComplete = {
54
184
  /**
55
- * 错误信息
56
- */
185
+ * 错误信息
186
+ * @uniPlatform {
187
+ * "mp": {
188
+ * "weixin": {
189
+ * "hostVer": "√",
190
+ * "uniVer": "√",
191
+ * "unixVer": "4.41"
192
+ * },
193
+ * "alipay": {
194
+ * "hostVer": "-",
195
+ * "uniVer": "-",
196
+ * "unixVer": "-"
197
+ * },
198
+ * "baidu": {
199
+ * "hostVer": "-",
200
+ * "uniVer": "-",
201
+ * "unixVer": "-"
202
+ * },
203
+ * "toutiao": {
204
+ * "hostVer": "-",
205
+ * "uniVer": "-",
206
+ * "unixVer": "-"
207
+ * },
208
+ * "lark": {
209
+ * "hostVer": "-",
210
+ * "uniVer": "-",
211
+ * "unixVer": "-"
212
+ * },
213
+ * "qq": {
214
+ * "hostVer": "-",
215
+ * "uniVer": "-",
216
+ * "unixVer": "-"
217
+ * },
218
+ * "kuaishou": {
219
+ * "hostVer": "-",
220
+ * "uniVer": "-",
221
+ * "unixVer": "-"
222
+ * },
223
+ * "jd": {
224
+ * "hostVer": "-",
225
+ * "uniVer": "-",
226
+ * "unixVer": "-"
227
+ * }
228
+ * }
229
+ * }
230
+ */
57
231
  errMsg: string
58
232
  };
59
233
  export type OpenAppAuthorizeSettingCompleteCallback = (result: OpenAppAuthorizeSettingComplete) => void;
60
234
  export type OpenAppAuthorizeSettingOptions = {
61
235
  /**
62
236
  * 接口调用成功的回调函数
63
- * @defaultValue null
64
- */
237
+ * @defaultValue null
238
+ * @uniPlatform {
239
+ * "mp": {
240
+ * "weixin": {
241
+ * "hostVer": "√",
242
+ * "uniVer": "√",
243
+ * "unixVer": "4.41"
244
+ * },
245
+ * "alipay": {
246
+ * "hostVer": "-",
247
+ * "uniVer": "-",
248
+ * "unixVer": "-"
249
+ * },
250
+ * "baidu": {
251
+ * "hostVer": "-",
252
+ * "uniVer": "-",
253
+ * "unixVer": "-"
254
+ * },
255
+ * "toutiao": {
256
+ * "hostVer": "-",
257
+ * "uniVer": "-",
258
+ * "unixVer": "-"
259
+ * },
260
+ * "lark": {
261
+ * "hostVer": "-",
262
+ * "uniVer": "-",
263
+ * "unixVer": "-"
264
+ * },
265
+ * "qq": {
266
+ * "hostVer": "-",
267
+ * "uniVer": "-",
268
+ * "unixVer": "-"
269
+ * },
270
+ * "kuaishou": {
271
+ * "hostVer": "-",
272
+ * "uniVer": "-",
273
+ * "unixVer": "-"
274
+ * },
275
+ * "jd": {
276
+ * "hostVer": "-",
277
+ * "uniVer": "-",
278
+ * "unixVer": "-"
279
+ * }
280
+ * }
281
+ * }
282
+ */
65
283
  success?: OpenAppAuthorizeSettingSuccessCallback | null,
66
284
  /**
67
285
  * 接口调用失败的回调函数
68
- * @defaultValue null
69
- */
286
+ * @defaultValue null
287
+ * @uniPlatform {
288
+ * "mp": {
289
+ * "weixin": {
290
+ * "hostVer": "√",
291
+ * "uniVer": "√",
292
+ * "unixVer": "4.41"
293
+ * },
294
+ * "alipay": {
295
+ * "hostVer": "-",
296
+ * "uniVer": "-",
297
+ * "unixVer": "-"
298
+ * },
299
+ * "baidu": {
300
+ * "hostVer": "-",
301
+ * "uniVer": "-",
302
+ * "unixVer": "-"
303
+ * },
304
+ * "toutiao": {
305
+ * "hostVer": "-",
306
+ * "uniVer": "-",
307
+ * "unixVer": "-"
308
+ * },
309
+ * "lark": {
310
+ * "hostVer": "-",
311
+ * "uniVer": "-",
312
+ * "unixVer": "-"
313
+ * },
314
+ * "qq": {
315
+ * "hostVer": "-",
316
+ * "uniVer": "-",
317
+ * "unixVer": "-"
318
+ * },
319
+ * "kuaishou": {
320
+ * "hostVer": "-",
321
+ * "uniVer": "-",
322
+ * "unixVer": "-"
323
+ * },
324
+ * "jd": {
325
+ * "hostVer": "-",
326
+ * "uniVer": "-",
327
+ * "unixVer": "-"
328
+ * }
329
+ * }
330
+ * }
331
+ */
70
332
  fail?: OpenAppAuthorizeSettingFailCallback | null,
71
333
  /**
72
334
  * 接口调用结束的回调函数(调用成功、失败都会执行)
73
- * @defaultValue null
335
+ * @defaultValue null
336
+ * @uniPlatform {
337
+ * "mp": {
338
+ * "weixin": {
339
+ * "hostVer": "√",
340
+ * "uniVer": "√",
341
+ * "unixVer": "4.41"
342
+ * },
343
+ * "alipay": {
344
+ * "hostVer": "-",
345
+ * "uniVer": "-",
346
+ * "unixVer": "-"
347
+ * },
348
+ * "baidu": {
349
+ * "hostVer": "-",
350
+ * "uniVer": "-",
351
+ * "unixVer": "-"
352
+ * },
353
+ * "toutiao": {
354
+ * "hostVer": "-",
355
+ * "uniVer": "-",
356
+ * "unixVer": "-"
357
+ * },
358
+ * "lark": {
359
+ * "hostVer": "-",
360
+ * "uniVer": "-",
361
+ * "unixVer": "-"
362
+ * },
363
+ * "qq": {
364
+ * "hostVer": "-",
365
+ * "uniVer": "-",
366
+ * "unixVer": "-"
367
+ * },
368
+ * "kuaishou": {
369
+ * "hostVer": "-",
370
+ * "uniVer": "-",
371
+ * "unixVer": "-"
372
+ * },
373
+ * "jd": {
374
+ * "hostVer": "-",
375
+ * "uniVer": "-",
376
+ * "unixVer": "-"
377
+ * }
378
+ * }
379
+ * }
74
380
  */
75
381
  complete?: OpenAppAuthorizeSettingCompleteCallback | null
76
382
  };