@dcloudio/uni-app-x 0.7.41 → 0.7.42

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 (30) hide show
  1. package/package.json +1 -1
  2. package/types/UniPage.d.ts +3 -39
  3. package/types/app.d.ts +2 -2
  4. package/types/native/Animation.d.ts +578 -0
  5. package/types/native/AnimationPlaybackEvent.d.ts +12 -0
  6. package/types/native/CSSStyleDeclaration.d.ts +40 -7
  7. package/types/native/CanvasRenderingContext2D.d.ts +52 -2
  8. package/types/native/UniElement.d.ts +2 -0
  9. package/types/native/UniNativePage.d.ts +1 -19
  10. package/types/native/UniSafeAreaInsets.d.ts +74 -0
  11. package/types/native/global.d.ts +6 -0
  12. package/types/native/index.d.ts +3 -1
  13. package/types/uni/uni-map-tencent-global.d.ts +5 -1
  14. package/types/uni/uni-map-tencent-map.d.ts +7 -0
  15. package/types/uni/uts-plugin-api/global.d.ts +1 -0
  16. package/types/uni/uts-plugin-api/index.d.ts +1 -0
  17. package/types/uni/uts-plugin-api/lib/uni-chooseMedia/utssdk/global.d.ts +32 -0
  18. package/types/uni/uts-plugin-api/lib/uni-chooseMedia/utssdk/index.d.ts +15 -0
  19. package/types/uni/uts-plugin-api/lib/uni-chooseMedia/utssdk/interface.d.ts +405 -0
  20. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +105 -104
  21. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/global.d.ts +2 -0
  22. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/index.d.ts +1 -0
  23. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +4 -5
  24. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +0 -22
  25. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +0 -11
  26. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +0 -729
  27. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +1 -1
  28. package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/interface.d.ts +1 -1
  29. package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/interface.d.ts +268 -20
  30. package/types/native/UniSafeArea.d.ts +0 -185
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-app-x",
3
- "version": "0.7.41",
3
+ "version": "0.7.42",
4
4
  "description": "uni-app x types",
5
5
  "typings": "index.d.ts",
6
6
  "main": "index.d.ts",
@@ -1,4 +1,4 @@
1
- import { UniSafeArea, UniSafeAreaInsets } from './native/UniSafeArea'
1
+ import { UniSafeAreaInsets } from './native/UniSafeAreaInsets'
2
2
 
3
3
  export interface UniPage {
4
4
  /**
@@ -110,7 +110,7 @@ export interface UniPage {
110
110
  * }
111
111
  * }
112
112
  */
113
- vm: ComponentPublicInstance | null
113
+ vm?: ComponentPublicInstance | null
114
114
  /**
115
115
  * UniPage vue 实例对象
116
116
  * @deprecated 已废弃,仅为了向下兼容保留
@@ -147,7 +147,7 @@ export interface UniPage {
147
147
  * }
148
148
  * }
149
149
  */
150
- $vm: ComponentPublicInstance | null
150
+ $vm?: ComponentPublicInstance | null
151
151
  /**
152
152
  * UniPage 窗口宽度,单位为px
153
153
  * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
@@ -220,42 +220,6 @@ export interface UniPage {
220
220
  * }
221
221
  */
222
222
  innerHeight: number
223
- /**
224
- * UniPage 安全区域在屏幕中的位置信息
225
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
226
- * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
227
- * @uniPlatform {
228
- * "app": {
229
- * "android": {
230
- * "osVer": "5.0",
231
- * "uniVer": "x",
232
- * "unixVer": "4.51"
233
- * },
234
- * "ios": {
235
- * "osVer": "x",
236
- * "uniVer": "x",
237
- * "unixVer": "4.51"
238
- * },
239
- * "harmony": {
240
- * "osVer": "x",
241
- * "uniVer": "x",
242
- * "unixVer": "x"
243
- * }
244
- * },
245
- * "mp": {
246
- * "weixin": {
247
- * "hostVer": "√",
248
- * "uniVer": "x",
249
- * "unixVer": "x"
250
- * },
251
- * },
252
- * "web": {
253
- * "uniVer": "x",
254
- * "unixVer": "4.51"
255
- * }
256
- * }
257
- */
258
- safeArea: UniSafeArea
259
223
  /**
260
224
  * UniPage 安全区域插入位置(与屏幕边界的距离)信息
261
225
  * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
package/types/app.d.ts CHANGED
@@ -756,7 +756,7 @@ export interface UniApp {
756
756
  * }
757
757
  * }
758
758
  */
759
- vm: ComponentPublicInstance,
759
+ vm?: ComponentPublicInstance | null,
760
760
  /**
761
761
  * App vue 实例对象
762
762
  * @deprecated 已废弃,仅为了向下兼容保留
@@ -793,7 +793,7 @@ export interface UniApp {
793
793
  * }
794
794
  * }
795
795
  */
796
- $vm: ComponentPublicInstance,
796
+ $vm?: ComponentPublicInstance | null,
797
797
  /**
798
798
  * 全局对象
799
799
  * @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#globaldata
@@ -0,0 +1,578 @@
1
+ import { AnimationPlaybackEvent } from "./AnimationPlaybackEvent"
2
+ /**
3
+ * @package io.dcloud.uniapp.runtime
4
+ * @uniPlatform {
5
+ * "app": {
6
+ * "android": {
7
+ * "osVer": "5.0",
8
+ * "uniVer": "x",
9
+ * "unixVer": "4,51"
10
+ * },
11
+ * "ios": {
12
+ * "osVer": "12.0",
13
+ * "uniVer": "x",
14
+ * "unixVer": "x"
15
+ * }
16
+ * },
17
+ * "mp": {
18
+ * "weixin": {
19
+ * "hostVer": "√",
20
+ * "uniVer": "x",
21
+ * "unixVer": "x"
22
+ * },
23
+ * "alipay": {
24
+ * "hostVer": "√",
25
+ * "uniVer": "x",
26
+ * "unixVer": "x"
27
+ * },
28
+ * "baidu": {
29
+ * "hostVer": "√",
30
+ * "uniVer": "x",
31
+ * "unixVer": "x"
32
+ * },
33
+ * "toutiao": {
34
+ * "hostVer": "√",
35
+ * "uniVer": "x",
36
+ * "unixVer": "x"
37
+ * },
38
+ * "lark": {
39
+ * "hostVer": "√",
40
+ * "uniVer": "x",
41
+ * "unixVer": "x"
42
+ * },
43
+ * "qq": {
44
+ * "hostVer": "√",
45
+ * "uniVer": "x",
46
+ * "unixVer": "x"
47
+ * },
48
+ * "kuaishou": {
49
+ * "hostVer": "√",
50
+ * "uniVer": "x",
51
+ * "unixVer": "x"
52
+ * },
53
+ * "jd": {
54
+ * "hostVer": "√",
55
+ * "uniVer": "x",
56
+ * "unixVer": "x"
57
+ * }
58
+ * },
59
+ * "web": {
60
+ * "uniVer": "x",
61
+ * "unixVer": "x"
62
+ * }
63
+ * }
64
+ */
65
+ export class Animation {
66
+ /**
67
+ * 获取或设置用于标识动画的字符串
68
+ * @uniPlatform {
69
+ * "app": {
70
+ * "android": {
71
+ * "osVer": "5.0",
72
+ * "uniVer": "x",
73
+ * "unixVer": "4.51"
74
+ * },
75
+ * "ios": {
76
+ * "osVer": "12.0",
77
+ * "uniVer": "x",
78
+ * "unixVer": "x"
79
+ * }
80
+ * },
81
+ * "mp": {
82
+ * "weixin": {
83
+ * "hostVer": "√",
84
+ * "uniVer": "x",
85
+ * "unixVer": "x"
86
+ * },
87
+ * "alipay": {
88
+ * "hostVer": "√",
89
+ * "uniVer": "x",
90
+ * "unixVer": "x"
91
+ * },
92
+ * "baidu": {
93
+ * "hostVer": "√",
94
+ * "uniVer": "x",
95
+ * "unixVer": "x"
96
+ * },
97
+ * "toutiao": {
98
+ * "hostVer": "√",
99
+ * "uniVer": "x",
100
+ * "unixVer": "x"
101
+ * },
102
+ * "lark": {
103
+ * "hostVer": "√",
104
+ * "uniVer": "x",
105
+ * "unixVer": "x"
106
+ * },
107
+ * "qq": {
108
+ * "hostVer": "√",
109
+ * "uniVer": "x",
110
+ * "unixVer": "x"
111
+ * },
112
+ * "kuaishou": {
113
+ * "hostVer": "√",
114
+ * "uniVer": "x",
115
+ * "unixVer": "x"
116
+ * },
117
+ * "jd": {
118
+ * "hostVer": "√",
119
+ * "uniVer": "x",
120
+ * "unixVer": "x"
121
+ * }
122
+ * },
123
+ * "web": {
124
+ * "uniVer": "x",
125
+ * "unixVer": "x"
126
+ * }
127
+ * }
128
+ */
129
+ id : String
130
+ /**
131
+ * 返回动画播放状态。可选值:`running`动画正在运行;`paused`动画暂停;`finished`动画播放完成;`idle`动画取消或者失败
132
+ * @uniPlatform {
133
+ * "app": {
134
+ * "android": {
135
+ * "osVer": "5.0",
136
+ * "uniVer": "x",
137
+ * "unixVer": "4.51"
138
+ * },
139
+ * "ios": {
140
+ * "osVer": "12.0",
141
+ * "uniVer": "x",
142
+ * "unixVer": "x"
143
+ * }
144
+ * },
145
+ * "mp": {
146
+ * "weixin": {
147
+ * "hostVer": "√",
148
+ * "uniVer": "x",
149
+ * "unixVer": "x"
150
+ * },
151
+ * "alipay": {
152
+ * "hostVer": "√",
153
+ * "uniVer": "x",
154
+ * "unixVer": "x"
155
+ * },
156
+ * "baidu": {
157
+ * "hostVer": "√",
158
+ * "uniVer": "x",
159
+ * "unixVer": "x"
160
+ * },
161
+ * "toutiao": {
162
+ * "hostVer": "√",
163
+ * "uniVer": "x",
164
+ * "unixVer": "x"
165
+ * },
166
+ * "lark": {
167
+ * "hostVer": "√",
168
+ * "uniVer": "x",
169
+ * "unixVer": "x"
170
+ * },
171
+ * "qq": {
172
+ * "hostVer": "√",
173
+ * "uniVer": "x",
174
+ * "unixVer": "x"
175
+ * },
176
+ * "kuaishou": {
177
+ * "hostVer": "√",
178
+ * "uniVer": "x",
179
+ * "unixVer": "x"
180
+ * },
181
+ * "jd": {
182
+ * "hostVer": "√",
183
+ * "uniVer": "x",
184
+ * "unixVer": "x"
185
+ * }
186
+ * },
187
+ * "web": {
188
+ * "uniVer": "x",
189
+ * "unixVer": "x"
190
+ * }
191
+ * }
192
+ */
193
+ playState : String
194
+ /**
195
+ * 监听动画取消事件
196
+ * @uniPlatform {
197
+ * "app": {
198
+ * "android": {
199
+ * "osVer": "5.0",
200
+ * "uniVer": "x",
201
+ * "unixVer": "4.51"
202
+ * },
203
+ * "ios": {
204
+ * "osVer": "12.0",
205
+ * "uniVer": "x",
206
+ * "unixVer": "x"
207
+ * }
208
+ * },
209
+ * "mp": {
210
+ * "weixin": {
211
+ * "hostVer": "√",
212
+ * "uniVer": "x",
213
+ * "unixVer": "x"
214
+ * },
215
+ * "alipay": {
216
+ * "hostVer": "√",
217
+ * "uniVer": "x",
218
+ * "unixVer": "x"
219
+ * },
220
+ * "baidu": {
221
+ * "hostVer": "√",
222
+ * "uniVer": "x",
223
+ * "unixVer": "x"
224
+ * },
225
+ * "toutiao": {
226
+ * "hostVer": "√",
227
+ * "uniVer": "x",
228
+ * "unixVer": "x"
229
+ * },
230
+ * "lark": {
231
+ * "hostVer": "√",
232
+ * "uniVer": "x",
233
+ * "unixVer": "x"
234
+ * },
235
+ * "qq": {
236
+ * "hostVer": "√",
237
+ * "uniVer": "x",
238
+ * "unixVer": "x"
239
+ * },
240
+ * "kuaishou": {
241
+ * "hostVer": "√",
242
+ * "uniVer": "x",
243
+ * "unixVer": "x"
244
+ * },
245
+ * "jd": {
246
+ * "hostVer": "√",
247
+ * "uniVer": "x",
248
+ * "unixVer": "x"
249
+ * }
250
+ * },
251
+ * "web": {
252
+ * "uniVer": "x",
253
+ * "unixVer": "x"
254
+ * }
255
+ * }
256
+ */
257
+ oncancel : ((event : AnimationPlaybackEvent) => void) | null
258
+ /**
259
+ * 监听动画完成事件
260
+ * @uniPlatform {
261
+ * "app": {
262
+ * "android": {
263
+ * "osVer": "5.0",
264
+ * "uniVer": "x",
265
+ * "unixVer": "4.51"
266
+ * },
267
+ * "ios": {
268
+ * "osVer": "12.0",
269
+ * "uniVer": "x",
270
+ * "unixVer": "x"
271
+ * }
272
+ * },
273
+ * "mp": {
274
+ * "weixin": {
275
+ * "hostVer": "√",
276
+ * "uniVer": "x",
277
+ * "unixVer": "x"
278
+ * },
279
+ * "alipay": {
280
+ * "hostVer": "√",
281
+ * "uniVer": "x",
282
+ * "unixVer": "x"
283
+ * },
284
+ * "baidu": {
285
+ * "hostVer": "√",
286
+ * "uniVer": "x",
287
+ * "unixVer": "x"
288
+ * },
289
+ * "toutiao": {
290
+ * "hostVer": "√",
291
+ * "uniVer": "x",
292
+ * "unixVer": "x"
293
+ * },
294
+ * "lark": {
295
+ * "hostVer": "√",
296
+ * "uniVer": "x",
297
+ * "unixVer": "x"
298
+ * },
299
+ * "qq": {
300
+ * "hostVer": "√",
301
+ * "uniVer": "x",
302
+ * "unixVer": "x"
303
+ * },
304
+ * "kuaishou": {
305
+ * "hostVer": "√",
306
+ * "uniVer": "x",
307
+ * "unixVer": "x"
308
+ * },
309
+ * "jd": {
310
+ * "hostVer": "√",
311
+ * "uniVer": "x",
312
+ * "unixVer": "x"
313
+ * }
314
+ * },
315
+ * "web": {
316
+ * "uniVer": "x",
317
+ * "unixVer": "x"
318
+ * }
319
+ * }
320
+ */
321
+ onfinish : ((event : AnimationPlaybackEvent) => void) | null
322
+ /**
323
+ * 终止并取消所有动画
324
+ * @uniPlatform {
325
+ * "app": {
326
+ * "android": {
327
+ * "osVer": "5.0",
328
+ * "uniVer": "x",
329
+ * "unixVer": "4.51"
330
+ * },
331
+ * "ios": {
332
+ * "osVer": "12.0",
333
+ * "uniVer": "x",
334
+ * "unixVer": "x"
335
+ * }
336
+ * },
337
+ * "mp": {
338
+ * "weixin": {
339
+ * "hostVer": "√",
340
+ * "uniVer": "x",
341
+ * "unixVer": "x"
342
+ * },
343
+ * "alipay": {
344
+ * "hostVer": "√",
345
+ * "uniVer": "x",
346
+ * "unixVer": "x"
347
+ * },
348
+ * "baidu": {
349
+ * "hostVer": "√",
350
+ * "uniVer": "x",
351
+ * "unixVer": "x"
352
+ * },
353
+ * "toutiao": {
354
+ * "hostVer": "√",
355
+ * "uniVer": "x",
356
+ * "unixVer": "x"
357
+ * },
358
+ * "lark": {
359
+ * "hostVer": "√",
360
+ * "uniVer": "x",
361
+ * "unixVer": "x"
362
+ * },
363
+ * "qq": {
364
+ * "hostVer": "√",
365
+ * "uniVer": "x",
366
+ * "unixVer": "x"
367
+ * },
368
+ * "kuaishou": {
369
+ * "hostVer": "√",
370
+ * "uniVer": "x",
371
+ * "unixVer": "x"
372
+ * },
373
+ * "jd": {
374
+ * "hostVer": "√",
375
+ * "uniVer": "x",
376
+ * "unixVer": "x"
377
+ * }
378
+ * },
379
+ * "web": {
380
+ * "uniVer": "x",
381
+ * "unixVer": "x"
382
+ * }
383
+ * }
384
+ */
385
+ cancel() : void
386
+ /**
387
+ * 动画跳转到最后一毫秒并立即播放完成
388
+ * @uniPlatform {
389
+ * "app": {
390
+ * "android": {
391
+ * "osVer": "5.0",
392
+ * "uniVer": "x",
393
+ * "unixVer": "4.51"
394
+ * },
395
+ * "ios": {
396
+ * "osVer": "12.0",
397
+ * "uniVer": "x",
398
+ * "unixVer": "x"
399
+ * }
400
+ * },
401
+ * "mp": {
402
+ * "weixin": {
403
+ * "hostVer": "√",
404
+ * "uniVer": "x",
405
+ * "unixVer": "x"
406
+ * },
407
+ * "alipay": {
408
+ * "hostVer": "√",
409
+ * "uniVer": "x",
410
+ * "unixVer": "x"
411
+ * },
412
+ * "baidu": {
413
+ * "hostVer": "√",
414
+ * "uniVer": "x",
415
+ * "unixVer": "x"
416
+ * },
417
+ * "toutiao": {
418
+ * "hostVer": "√",
419
+ * "uniVer": "x",
420
+ * "unixVer": "x"
421
+ * },
422
+ * "lark": {
423
+ * "hostVer": "√",
424
+ * "uniVer": "x",
425
+ * "unixVer": "x"
426
+ * },
427
+ * "qq": {
428
+ * "hostVer": "√",
429
+ * "uniVer": "x",
430
+ * "unixVer": "x"
431
+ * },
432
+ * "kuaishou": {
433
+ * "hostVer": "√",
434
+ * "uniVer": "x",
435
+ * "unixVer": "x"
436
+ * },
437
+ * "jd": {
438
+ * "hostVer": "√",
439
+ * "uniVer": "x",
440
+ * "unixVer": "x"
441
+ * }
442
+ * },
443
+ * "web": {
444
+ * "uniVer": "x",
445
+ * "unixVer": "x"
446
+ * }
447
+ * }
448
+ */
449
+ finish() : void
450
+ /**
451
+ * 暂停动画播放
452
+ * @uniPlatform {
453
+ * "app": {
454
+ * "android": {
455
+ * "osVer": "5.0",
456
+ * "uniVer": "x",
457
+ * "unixVer": "4.51"
458
+ * },
459
+ * "ios": {
460
+ * "osVer": "12.0",
461
+ * "uniVer": "x",
462
+ * "unixVer": "x"
463
+ * }
464
+ * },
465
+ * "mp": {
466
+ * "weixin": {
467
+ * "hostVer": "√",
468
+ * "uniVer": "x",
469
+ * "unixVer": "x"
470
+ * },
471
+ * "alipay": {
472
+ * "hostVer": "√",
473
+ * "uniVer": "x",
474
+ * "unixVer": "x"
475
+ * },
476
+ * "baidu": {
477
+ * "hostVer": "√",
478
+ * "uniVer": "x",
479
+ * "unixVer": "x"
480
+ * },
481
+ * "toutiao": {
482
+ * "hostVer": "√",
483
+ * "uniVer": "x",
484
+ * "unixVer": "x"
485
+ * },
486
+ * "lark": {
487
+ * "hostVer": "√",
488
+ * "uniVer": "x",
489
+ * "unixVer": "x"
490
+ * },
491
+ * "qq": {
492
+ * "hostVer": "√",
493
+ * "uniVer": "x",
494
+ * "unixVer": "x"
495
+ * },
496
+ * "kuaishou": {
497
+ * "hostVer": "√",
498
+ * "uniVer": "x",
499
+ * "unixVer": "x"
500
+ * },
501
+ * "jd": {
502
+ * "hostVer": "√",
503
+ * "uniVer": "x",
504
+ * "unixVer": "x"
505
+ * }
506
+ * },
507
+ * "web": {
508
+ * "uniVer": "x",
509
+ * "unixVer": "x"
510
+ * }
511
+ * }
512
+ */
513
+ pause() : void
514
+ /**
515
+ * 开始或恢复动画播放
516
+ * @uniPlatform {
517
+ * "app": {
518
+ * "android": {
519
+ * "osVer": "5.0",
520
+ * "uniVer": "x",
521
+ * "unixVer": "4.51"
522
+ * },
523
+ * "ios": {
524
+ * "osVer": "12.0",
525
+ * "uniVer": "x",
526
+ * "unixVer": "x"
527
+ * }
528
+ * },
529
+ * "mp": {
530
+ * "weixin": {
531
+ * "hostVer": "√",
532
+ * "uniVer": "x",
533
+ * "unixVer": "x"
534
+ * },
535
+ * "alipay": {
536
+ * "hostVer": "√",
537
+ * "uniVer": "x",
538
+ * "unixVer": "x"
539
+ * },
540
+ * "baidu": {
541
+ * "hostVer": "√",
542
+ * "uniVer": "x",
543
+ * "unixVer": "x"
544
+ * },
545
+ * "toutiao": {
546
+ * "hostVer": "√",
547
+ * "uniVer": "x",
548
+ * "unixVer": "x"
549
+ * },
550
+ * "lark": {
551
+ * "hostVer": "√",
552
+ * "uniVer": "x",
553
+ * "unixVer": "x"
554
+ * },
555
+ * "qq": {
556
+ * "hostVer": "√",
557
+ * "uniVer": "x",
558
+ * "unixVer": "x"
559
+ * },
560
+ * "kuaishou": {
561
+ * "hostVer": "√",
562
+ * "uniVer": "x",
563
+ * "unixVer": "x"
564
+ * },
565
+ * "jd": {
566
+ * "hostVer": "√",
567
+ * "uniVer": "x",
568
+ * "unixVer": "x"
569
+ * }
570
+ * },
571
+ * "web": {
572
+ * "uniVer": "x",
573
+ * "unixVer": "x"
574
+ * }
575
+ * }
576
+ */
577
+ play() : void
578
+ }
@@ -0,0 +1,12 @@
1
+ import { UniEvent } from "./UniEvent"
2
+
3
+ /**
4
+ * @package io.dcloud.uniapp.runtime
5
+ * @autodoc false
6
+ */
7
+ export class AnimationPlaybackEvent extends UniEvent {
8
+ /**
9
+ * 动画的事件类型
10
+ */
11
+ type: string
12
+ }