@dcloudio/uni-app-x 0.7.0 → 0.7.2

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 (27) hide show
  1. package/package.json +1 -1
  2. package/types/native/IUniElement.d.ts +1 -1
  3. package/types/native/InputBlurEvent.d.ts +4 -0
  4. package/types/native/NodeData.d.ts +3 -2
  5. package/types/native/PageNode.d.ts +6 -0
  6. package/types/native/{MouseEvent.d.ts → PointerEvent.ts} +2 -2
  7. package/types/native/TextareaFocusEvent.d.ts +14 -1
  8. package/types/native/UniDocument.d.ts +2 -0
  9. package/types/native/UniFormControl.d.ts +8 -0
  10. package/types/native/UniFormControlElement.d.ts +14 -0
  11. package/types/native/ViewToTempFilePathOptions.d.ts +9 -0
  12. package/types/native/global.d.ts +6 -3
  13. package/types/native/index.d.ts +3 -1
  14. package/types/page.d.ts +7 -7
  15. package/types/uni/core/lib/ui/create-selector-query/interface.d.ts +3 -3
  16. package/types/uni/core/lib/ui/page-scroll-to/interface.d.ts +5 -5
  17. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +6 -6
  18. package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/interface.d.ts +15 -14
  19. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +125 -117
  20. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +200 -147
  21. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +29 -68
  22. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +15 -14
  23. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +114 -119
  24. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +16 -15
  25. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +149 -140
  26. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +15 -14
  27. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +195 -182
@@ -6,20 +6,21 @@ export interface Uni {
6
6
  * @param {ConnectSocketOptions} options
7
7
  * @return {SocketTask}
8
8
  * @tutorial https://uniapp.dcloud.net.cn/api/request/websocket.html#connectsocket
9
- * @uniPlatform {
10
- * "app": {
11
- * "android": {
12
- * "osVer": "4.4",
13
- * "uniVer": "",
14
- * "unixVer": "3.9+"
15
- * },
16
- * "ios": {
17
- * "osVer": "9.0",
18
- * "uniVer": "",
19
- * "unixVer": "x"
20
- * }
21
- * }
22
- * }
9
+ * @uniPlatform
10
+ * {
11
+ * "app": {
12
+ * "android": {
13
+ * "osVer": "4.4",
14
+ * "uniVer": "",
15
+ * "unixVer": "3.9+"
16
+ * },
17
+ * "ios": {
18
+ * "osVer": "9.0",
19
+ * "uniVer": "",
20
+ * "unixVer": "x"
21
+ * }
22
+ * }
23
+ * }
23
24
  * @example
24
25
  ```typescript
25
26
  uni.connectSocket({
@@ -38,20 +39,21 @@ export interface Uni {
38
39
  * @param {OnSocketOpenCallback} options
39
40
  * @return {void}
40
41
  * @tutorial https://uniapp.dcloud.net.cn/api/request/websocket.html#onsocketopen
41
- * @uniPlatform {
42
- * "app": {
43
- * "android": {
44
- * "osVer": "4.4",
45
- * "uniVer": "",
46
- * "unixVer": "3.9+"
47
- * },
48
- * "ios": {
49
- * "osVer": "9.0",
50
- * "uniVer": "",
51
- * "unixVer": "x"
52
- * }
53
- * }
54
- * }
42
+ * @uniPlatform
43
+ * {
44
+ * "app": {
45
+ * "android": {
46
+ * "osVer": "4.4",
47
+ * "uniVer": "",
48
+ * "unixVer": "3.9+"
49
+ * },
50
+ * "ios": {
51
+ * "osVer": "9.0",
52
+ * "uniVer": "",
53
+ * "unixVer": "x"
54
+ * }
55
+ * }
56
+ * }
55
57
  * @example
56
58
  ```typescript
57
59
  uni.onSocketOpen(function (res) {
@@ -68,20 +70,21 @@ export interface Uni {
68
70
  * @param {OnSocketErrorCallback} callback
69
71
  * @return {void}
70
72
  * @tutorial https://uniapp.dcloud.net.cn/api/request/websocket.html#onsocketerror
71
- * @uniPlatform {
72
- * "app": {
73
- * "android": {
74
- * "osVer": "4.4",
75
- * "uniVer": "",
76
- * "unixVer": "3.9+"
77
- * },
78
- * "ios": {
79
- * "osVer": "9.0",
80
- * "uniVer": "",
81
- * "unixVer": "x"
82
- * }
83
- * }
84
- * }
73
+ * @uniPlatform
74
+ * {
75
+ * "app": {
76
+ * "android": {
77
+ * "osVer": "4.4",
78
+ * "uniVer": "",
79
+ * "unixVer": "3.9+"
80
+ * },
81
+ * "ios": {
82
+ * "osVer": "9.0",
83
+ * "uniVer": "",
84
+ * "unixVer": "x"
85
+ * }
86
+ * }
87
+ * }
85
88
  * @example
86
89
  ```typescript
87
90
  uni.onSocketError(function (res) {
@@ -98,20 +101,21 @@ export interface Uni {
98
101
  * @param {SendSocketMessageOptions} options
99
102
  * @return {void}
100
103
  * @tutorial https://uniapp.dcloud.net.cn/api/request/websocket.html#sendsocketmessage
101
- * @uniPlatform {
102
- * "app": {
103
- * "android": {
104
- * "osVer": "4.4",
105
- * "uniVer": "",
106
- * "unixVer": "3.9+"
107
- * },
108
- * "ios": {
109
- * "osVer": "9.0",
110
- * "uniVer": "",
111
- * "unixVer": "x"
112
- * }
113
- * }
114
- * }
104
+ * @uniPlatform
105
+ * {
106
+ * "app": {
107
+ * "android": {
108
+ * "osVer": "4.4",
109
+ * "uniVer": "",
110
+ * "unixVer": "3.9+"
111
+ * },
112
+ * "ios": {
113
+ * "osVer": "9.0",
114
+ * "uniVer": "",
115
+ * "unixVer": "x"
116
+ * }
117
+ * }
118
+ * }
115
119
  * @example
116
120
  ```typescript
117
121
  uni.sendSocketMessage({
@@ -127,20 +131,21 @@ export interface Uni {
127
131
  * @param {OnSocketMessageCallback} callback
128
132
  * @return {void}
129
133
  * @tutorial https://uniapp.dcloud.net.cn/api/request/websocket.html#onsocketmessage
130
- * @uniPlatform {
131
- * "app": {
132
- * "android": {
133
- * "osVer": "4.4",
134
- * "uniVer": "",
135
- * "unixVer": "3.9+"
136
- * },
137
- * "ios": {
138
- * "osVer": "9.0",
139
- * "uniVer": "",
140
- * "unixVer": "x"
141
- * }
142
- * }
143
- * }
134
+ * @uniPlatform
135
+ * {
136
+ * "app": {
137
+ * "android": {
138
+ * "osVer": "4.4",
139
+ * "uniVer": "",
140
+ * "unixVer": "3.9+"
141
+ * },
142
+ * "ios": {
143
+ * "osVer": "9.0",
144
+ * "uniVer": "",
145
+ * "unixVer": "x"
146
+ * }
147
+ * }
148
+ * }
144
149
  * @example
145
150
  ```typescript
146
151
  uni.onSocketMessage(function (res) {
@@ -156,20 +161,21 @@ export interface Uni {
156
161
  * @param {CloseSocketOptions} options
157
162
  * @return {void}
158
163
  * @tutorial https://uniapp.dcloud.net.cn/api/request/websocket.html#closesocket
159
- * @uniPlatform {
160
- * "app": {
161
- * "android": {
162
- * "osVer": "4.4",
163
- * "uniVer": "",
164
- * "unixVer": "3.9+"
165
- * },
166
- * "ios": {
167
- * "osVer": "9.0",
168
- * "uniVer": "",
169
- * "unixVer": "x"
170
- * }
171
- * }
172
- * }
164
+ * @uniPlatform
165
+ * {
166
+ * "app": {
167
+ * "android": {
168
+ * "osVer": "4.4",
169
+ * "uniVer": "",
170
+ * "unixVer": "3.9+"
171
+ * },
172
+ * "ios": {
173
+ * "osVer": "9.0",
174
+ * "uniVer": "",
175
+ * "unixVer": "x"
176
+ * }
177
+ * }
178
+ * }
173
179
  * @example
174
180
  ```typescript
175
181
  uni.closeSocket();
@@ -183,20 +189,21 @@ export interface Uni {
183
189
  * @param {OnSocketCloseCallback} callback
184
190
  * @return {void}
185
191
  * @tutorial https://uniapp.dcloud.net.cn/api/request/websocket.html#onsocketclose
186
- * @uniPlatform {
187
- * "app": {
188
- * "android": {
189
- * "osVer": "4.4",
190
- * "uniVer": "",
191
- * "unixVer": "3.9+"
192
- * },
193
- * "ios": {
194
- * "osVer": "9.0",
195
- * "uniVer": "",
196
- * "unixVer": "x"
197
- * }
198
- * }
199
- * }
192
+ * @uniPlatform
193
+ * {
194
+ * "app": {
195
+ * "android": {
196
+ * "osVer": "4.4",
197
+ * "uniVer": "",
198
+ * "unixVer": "3.9+"
199
+ * },
200
+ * "ios": {
201
+ * "osVer": "9.0",
202
+ * "uniVer": "",
203
+ * "unixVer": "x"
204
+ * }
205
+ * }
206
+ * }
200
207
  * @example
201
208
  ```typescript
202
209
  uni.onSocketClose(function (res) {
@@ -349,20 +356,21 @@ export interface SocketTask {
349
356
  * @param {SendSocketMessageOptions} options
350
357
  * @return {void}
351
358
  * @tutorial https://uniapp.dcloud.net.cn/api/request/socket-task.html#sockettask-send
352
- * @uniPlatform {
353
- * "app": {
354
- * "android": {
355
- * "osVer": "4.4",
356
- * "uniVer": "",
357
- * "unixVer": "3.9+"
358
- * },
359
- * "ios": {
360
- * "osVer": "9.0",
361
- * "uniVer": "",
362
- * "unixVer": "x"
363
- * }
364
- * }
365
- * }
359
+ * @uniPlatform
360
+ * {
361
+ * "app": {
362
+ * "android": {
363
+ * "osVer": "4.4",
364
+ * "uniVer": "",
365
+ * "unixVer": "3.9+"
366
+ * },
367
+ * "ios": {
368
+ * "osVer": "9.0",
369
+ * "uniVer": "",
370
+ * "unixVer": "x"
371
+ * }
372
+ * }
373
+ * }
366
374
  * @example
367
375
  ```typescript
368
376
  task.send({data:"halo"});
@@ -376,20 +384,21 @@ export interface SocketTask {
376
384
  * @param {CloseSocketOptions} options
377
385
  * @return {void}
378
386
  * @tutorial https://uniapp.dcloud.net.cn/api/request/socket-task.html#sockettask-close
379
- * @uniPlatform {
380
- * "app": {
381
- * "android": {
382
- * "osVer": "4.4",
383
- * "uniVer": "",
384
- * "unixVer": "3.9+"
385
- * },
386
- * "ios": {
387
- * "osVer": "9.0",
388
- * "uniVer": "",
389
- * "unixVer": "x"
390
- * }
391
- * }
392
- * }
387
+ * @uniPlatform
388
+ * {
389
+ * "app": {
390
+ * "android": {
391
+ * "osVer": "4.4",
392
+ * "uniVer": "",
393
+ * "unixVer": "3.9+"
394
+ * },
395
+ * "ios": {
396
+ * "osVer": "9.0",
397
+ * "uniVer": "",
398
+ * "unixVer": "x"
399
+ * }
400
+ * }
401
+ * }
393
402
  * @example
394
403
  ```typescript
395
404
  task.close();
@@ -403,20 +412,21 @@ export interface SocketTask {
403
412
  * @param {OnSocketOpenCallbackResult} options
404
413
  * @return {void}
405
414
  * @tutorial https://uniapp.dcloud.net.cn/api/request/socket-task.html#sockettask-onopen
406
- * @uniPlatform {
407
- * "app": {
408
- * "android": {
409
- * "osVer": "4.4",
410
- * "uniVer": "",
411
- * "unixVer": "3.9+"
412
- * },
413
- * "ios": {
414
- * "osVer": "9.0",
415
- * "uniVer": "",
416
- * "unixVer": "x"
417
- * }
418
- * }
419
- * }
415
+ * @uniPlatform
416
+ * {
417
+ * "app": {
418
+ * "android": {
419
+ * "osVer": "4.4",
420
+ * "uniVer": "",
421
+ * "unixVer": "3.9+"
422
+ * },
423
+ * "ios": {
424
+ * "osVer": "9.0",
425
+ * "uniVer": "",
426
+ * "unixVer": "x"
427
+ * }
428
+ * }
429
+ * }
420
430
  * @example
421
431
  ```typescript
422
432
  task.onOpen((res) => {})
@@ -430,20 +440,21 @@ export interface SocketTask {
430
440
  * @param {(result : any) => void} callback
431
441
  * @return {void}
432
442
  * @tutorial https://uniapp.dcloud.net.cn/api/request/socket-task.html#sockettask-onclose
433
- * @uniPlatform {
434
- * "app": {
435
- * "android": {
436
- * "osVer": "4.4",
437
- * "uniVer": "",
438
- * "unixVer": "3.9+"
439
- * },
440
- * "ios": {
441
- * "osVer": "9.0",
442
- * "uniVer": "",
443
- * "unixVer": "x"
444
- * }
445
- * }
446
- * }
443
+ * @uniPlatform
444
+ * {
445
+ * "app": {
446
+ * "android": {
447
+ * "osVer": "4.4",
448
+ * "uniVer": "",
449
+ * "unixVer": "3.9+"
450
+ * },
451
+ * "ios": {
452
+ * "osVer": "9.0",
453
+ * "uniVer": "",
454
+ * "unixVer": "x"
455
+ * }
456
+ * }
457
+ * }
447
458
  * @example
448
459
  ```typescript
449
460
  task.onClose((res) => {
@@ -458,20 +469,21 @@ export interface SocketTask {
458
469
  * @param {(result : GeneralCallbackResult) => void} callback
459
470
  * @return {void}
460
471
  * @tutorial https://uniapp.dcloud.net.cn/api/request/socket-task.html#sockettask-onerror
461
- * @uniPlatform {
462
- * "app": {
463
- * "android": {
464
- * "osVer": "4.4",
465
- * "uniVer": "",
466
- * "unixVer": "3.9+"
467
- * },
468
- * "ios": {
469
- * "osVer": "9.0",
470
- * "uniVer": "",
471
- * "unixVer": "x"
472
- * }
473
- * }
474
- * }
472
+ * @uniPlatform
473
+ * {
474
+ * "app": {
475
+ * "android": {
476
+ * "osVer": "4.4",
477
+ * "uniVer": "",
478
+ * "unixVer": "3.9+"
479
+ * },
480
+ * "ios": {
481
+ * "osVer": "9.0",
482
+ * "uniVer": "",
483
+ * "unixVer": "x"
484
+ * }
485
+ * }
486
+ * }
475
487
  * @example
476
488
  ```typescript
477
489
  task.onError((res) => {
@@ -486,20 +498,21 @@ export interface SocketTask {
486
498
  * @param {(result : OnSocketMessageCallbackResult) => void} callback
487
499
  * @return {void}
488
500
  * @tutorial https://uniapp.dcloud.net.cn/api/request/socket-task.html#sockettask-onmessage
489
- * @uniPlatform {
490
- * "app": {
491
- * "android": {
492
- * "osVer": "4.4",
493
- * "uniVer": "",
494
- * "unixVer": "3.9+"
495
- * },
496
- * "ios": {
497
- * "osVer": "9.0",
498
- * "uniVer": "",
499
- * "unixVer": "x"
500
- * }
501
- * }
502
- * }
501
+ * @uniPlatform
502
+ * {
503
+ * "app": {
504
+ * "android": {
505
+ * "osVer": "4.4",
506
+ * "uniVer": "",
507
+ * "unixVer": "3.9+"
508
+ * },
509
+ * "ios": {
510
+ * "osVer": "9.0",
511
+ * "uniVer": "",
512
+ * "unixVer": "x"
513
+ * }
514
+ * }
515
+ * }
503
516
  * @example
504
517
  ```typescript
505
518
  task.onMessage((res) => {