@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 {void}
7
7
  * @return {GetAppAuthorizeSettingResult}
8
8
  * @tutorial http://uniapp.dcloud.io/api/system/getappauthorizesetting
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.getAppAuthorizeSetting()
@@ -37,22 +38,23 @@ export type GetAppAuthorizeSettingResult = {
37
38
  * - denied: 请求授权被拒绝,无法再次请求授权;(此情况需要引导用户打开系统设置,在设置页中打开权限)
38
39
  * - not determined: 尚未请求授权,会在App下一次调用系统相应权限时请求;(仅 iOS 会出现。此种情况下引导用户打开系统设置,不展示开关)
39
40
  * @type 'authorized' | 'denied' | 'not determined'
40
- * @uniPlatform {
41
- * "app": {
42
- * "android": {
43
- * "osVer": "x",
44
- * "uniVer": "x",
45
- * "unixVer": "x"
46
- * },
47
- * "ios": {
48
- * "osVer": "9.0",
49
- * "uniVer": "",
50
- * "unixVer": "x"
51
- * }
52
- * }
41
+ * @uniPlatform
42
+ * {
43
+ * "app": {
44
+ * "android": {
45
+ * "osVer": "x",
46
+ * "uniVer": "x",
47
+ * "unixVer": "x"
48
+ * },
49
+ * "ios": {
50
+ * "osVer": "9.0",
51
+ * "uniVer": "",
52
+ * "unixVer": "x"
53
+ * }
54
+ * }
53
55
  * }
54
56
  */
55
- albumAuthorized: string | null,
57
+ albumAuthorized?: 'authorized' | 'denied' | 'not determined' | null,
56
58
  /**
57
59
  * 允许 App 使用蓝牙的开关(仅 iOS 支持)
58
60
  * - authorized: 已经获得授权,无需再次请求授权
@@ -60,22 +62,23 @@ export type GetAppAuthorizeSettingResult = {
60
62
  * - not determined: 尚未请求授权,会在App下一次调用系统相应权限时请求;(仅 iOS 会出现。此种情况下引导用户打开系统设置,不展示开关)
61
63
  * - config error: Android平台没有该值;iOS平台:表示没有在 `manifest.json -> App模块配置` 中配置 `BlueTooth(低功耗蓝牙)` 模块
62
64
  * @type 'authorized' | 'denied' | 'not determined' | 'config error'
63
- * @uniPlatform {
64
- * "app": {
65
- * "android": {
66
- * "osVer": "x",
67
- * "uniVer": "x",
68
- * "unixVer": "x"
69
- * },
70
- * "ios": {
71
- * "osVer": "9.0",
72
- * "uniVer": "",
73
- * "unixVer": "x"
74
- * }
75
- * }
65
+ * @uniPlatform
66
+ * {
67
+ * "app": {
68
+ * "android": {
69
+ * "osVer": "x",
70
+ * "uniVer": "x",
71
+ * "unixVer": "x"
72
+ * },
73
+ * "ios": {
74
+ * "osVer": "9.0",
75
+ * "uniVer": "",
76
+ * "unixVer": "x"
77
+ * }
78
+ * }
76
79
  * }
77
80
  */
78
- bluetoothAuthorized: string | null,
81
+ bluetoothAuthorized?: 'authorized' | 'denied' | 'not determined' | 'config error' | null,
79
82
  /**
80
83
  * 允许 App 使用摄像头的开关
81
84
  * - authorized: 已经获得授权,无需再次请求授权
@@ -84,7 +87,7 @@ export type GetAppAuthorizeSettingResult = {
84
87
  * - config error: Android平台:表示没有授予 `android.permission.CAMERA` 权限;iOS平台没有该值
85
88
  * @type 'authorized' | 'denied' | 'not determined' | 'config error'
86
89
  */
87
- cameraAuthorized: string,
90
+ cameraAuthorized: 'authorized' | 'denied' | 'not determined' | 'config error',
88
91
  /**
89
92
  * 允许 App 使用定位的开关
90
93
  * - authorized: 已经获得授权,无需再次请求授权
@@ -93,7 +96,7 @@ export type GetAppAuthorizeSettingResult = {
93
96
  * - config error: Android平台:表示没有授予 `android.permission.ACCESS_COARSE_LOCATION` 权限;iOS平台:表示没有在 `manifest.json -> App模块配置` 中配置 `Geolocation(定位)` 模块
94
97
  * @type 'authorized' | 'denied' | 'not determined' | 'config error'
95
98
  */
96
- locationAuthorized: string,
99
+ locationAuthorized: 'authorized' | 'denied' | 'not determined' | 'config error',
97
100
  /**
98
101
  * 定位准确度。
99
102
  * - reduced: 模糊定位
@@ -101,26 +104,27 @@ export type GetAppAuthorizeSettingResult = {
101
104
  * - unsupported: 不支持(包括用户拒绝定位权限和没有在 `manifest.json -> App模块配置` 中配置 `Geolocation(定位)` 模块)
102
105
  * @type 'reduced' | 'full' | 'unsupported'
103
106
  */
104
- locationAccuracy: string | null,
107
+ locationAccuracy?: 'reduced' | 'full' | 'unsupported' | null,
105
108
  /**
106
109
  * 定位准确度(推荐使用 locationAccuracy 属性)。true 表示模糊定位,false 表示精确定位(仅 iOS 支持)
107
110
  * @type boolean
108
- * @uniPlatform {
109
- * "app": {
110
- * "android": {
111
- * "osVer": "x",
112
- * "uniVer": "x",
113
- * "unixVer": "x"
114
- * },
115
- * "ios": {
116
- * "osVer": "9.0",
117
- * "uniVer": "",
118
- * "unixVer": "x"
119
- * }
120
- * }
111
+ * @uniPlatform
112
+ * {
113
+ * "app": {
114
+ * "android": {
115
+ * "osVer": "x",
116
+ * "uniVer": "x",
117
+ * "unixVer": "x"
118
+ * },
119
+ * "ios": {
120
+ * "osVer": "9.0",
121
+ * "uniVer": "",
122
+ * "unixVer": "x"
123
+ * }
124
+ * }
121
125
  * }
122
126
  */
123
- locationReducedAccuracy: boolean | null,
127
+ locationReducedAccuracy?: boolean | null,
124
128
  /**
125
129
  * 允许 App 使用麦克风的开关
126
130
  * - authorized: 已经获得授权,无需再次请求授权
@@ -129,7 +133,7 @@ export type GetAppAuthorizeSettingResult = {
129
133
  * - config error: Android平台:表示没有授予 `android.permission.RECORD_AUDIO` 权限;iOS平台没有该值
130
134
  * @type 'authorized' | 'denied' | 'not determined' | 'config error'
131
135
  */
132
- microphoneAuthorized: string,
136
+ microphoneAuthorized: 'authorized' | 'denied' | 'not determined' | 'config error',
133
137
  /**
134
138
  * 允许 App 通知的开关
135
139
  * - authorized: 已经获得授权,无需再次请求授权
@@ -138,7 +142,7 @@ export type GetAppAuthorizeSettingResult = {
138
142
  * - config error: Android平台没有该值;iOS平台:表示没有在 `manifest.json -> App模块配置` 中配置 `Push(推送)` 模块
139
143
  * @type 'authorized' | 'denied' | 'not determined' | 'config error'
140
144
  */
141
- notificationAuthorized: string,
145
+ notificationAuthorized: 'authorized' | 'denied' | 'not determined' | 'config error',
142
146
  /**
143
147
  * 允许 App 通知带有提醒的开关(仅 iOS 10.0+ 支持)
144
148
  * - authorized: 已经获得授权,无需再次请求授权
@@ -146,22 +150,23 @@ export type GetAppAuthorizeSettingResult = {
146
150
  * - not determined: 尚未请求授权,会在App下一次调用系统相应权限时请求;(仅 iOS 会出现。此种情况下引导用户打开系统设置,不展示开关)
147
151
  * - config error: 没有在 `manifest.json -> App模块配置` 中配置 `Push(推送)` 模块
148
152
  * @type 'authorized' | 'denied' | 'not determined' | 'config error'
149
- * @uniPlatform {
150
- * "app": {
151
- * "android": {
152
- * "osVer": "x",
153
- * "uniVer": "x",
154
- * "unixVer": "x"
155
- * },
156
- * "ios": {
157
- * "osVer": "10.0",
158
- * "uniVer": "",
159
- * "unixVer": "x"
160
- * }
161
- * }
153
+ * @uniPlatform
154
+ * {
155
+ * "app": {
156
+ * "android": {
157
+ * "osVer": "x",
158
+ * "uniVer": "x",
159
+ * "unixVer": "x"
160
+ * },
161
+ * "ios": {
162
+ * "osVer": "10.0",
163
+ * "uniVer": "",
164
+ * "unixVer": "x"
165
+ * }
166
+ * }
162
167
  * }
163
168
  */
164
- notificationAlertAuthorized: string | null,
169
+ notificationAlertAuthorized?: 'authorized' | 'denied' | 'not determined' | 'config error' | null,
165
170
  /**
166
171
  * 允许 App 通知带有标记的开关(仅 iOS 10.0+ 支持)
167
172
  * - authorized: 已经获得授权,无需再次请求授权
@@ -169,22 +174,23 @@ export type GetAppAuthorizeSettingResult = {
169
174
  * - not determined: 尚未请求授权,会在App下一次调用系统相应权限时请求;(仅 iOS 会出现。此种情况下引导用户打开系统设置,不展示开关)
170
175
  * - config error: 没有在 `manifest.json -> App模块配置` 中配置 `Push(推送)` 模块
171
176
  * @type 'authorized' | 'denied' | 'not determined' | 'config error'
172
- * @uniPlatform {
173
- * "app": {
174
- * "android": {
175
- * "osVer": "x",
176
- * "uniVer": "x",
177
- * "unixVer": "x"
178
- * },
179
- * "ios": {
180
- * "osVer": "10.0",
181
- * "uniVer": "",
182
- * "unixVer": "x"
183
- * }
184
- * }
177
+ * @uniPlatform
178
+ * {
179
+ * "app": {
180
+ * "android": {
181
+ * "osVer": "x",
182
+ * "uniVer": "x",
183
+ * "unixVer": "x"
184
+ * },
185
+ * "ios": {
186
+ * "osVer": "10.0",
187
+ * "uniVer": "",
188
+ * "unixVer": "x"
189
+ * }
190
+ * }
185
191
  * }
186
192
  */
187
- notificationBadgeAuthorized: string | null,
193
+ notificationBadgeAuthorized?: 'authorized' | 'denied' | 'not determined' | 'config error' | null,
188
194
  /**
189
195
  * 允许 App 通知带有声音的开关(仅 iOS 10.0+ 支持)
190
196
  * - authorized: 已经获得授权,无需再次请求授权
@@ -192,42 +198,44 @@ export type GetAppAuthorizeSettingResult = {
192
198
  * - not determined: 尚未请求授权,会在App下一次调用系统相应权限时请求;(仅 iOS 会出现。此种情况下引导用户打开系统设置,不展示开关)
193
199
  * - config error: 没有在 `manifest.json -> App模块配置` 中配置 `Push(推送)` 模块
194
200
  * @type 'authorized' | 'denied' | 'not determined' | 'config error'
195
- * @uniPlatform {
196
- * "app": {
197
- * "android": {
198
- * "osVer": "x",
199
- * "uniVer": "x",
200
- * "unixVer": "x"
201
- * },
202
- * "ios": {
203
- * "osVer": "10.0",
204
- * "uniVer": "",
205
- * "unixVer": "x"
206
- * }
207
- * }
201
+ * @uniPlatform
202
+ * {
203
+ * "app": {
204
+ * "android": {
205
+ * "osVer": "x",
206
+ * "uniVer": "x",
207
+ * "unixVer": "x"
208
+ * },
209
+ * "ios": {
210
+ * "osVer": "10.0",
211
+ * "uniVer": "",
212
+ * "unixVer": "x"
213
+ * }
214
+ * }
208
215
  * }
209
216
  */
210
- notificationSoundAuthorized: string | null,
217
+ notificationSoundAuthorized?: 'authorized' | 'denied' | 'not determined' | 'config error' | null,
211
218
  /**
212
219
  * 允许读写日历的开关(仅微信小程序支持)
213
220
  * - authorized: 已经获得授权,无需再次请求授权
214
221
  * - denied: 请求授权被拒绝,无法再次请求授权;(此情况需要引导用户打开系统设置,在设置页中打开权限)
215
222
  * - not determined: 尚未请求授权,会在App下一次调用系统相应权限时请求;(仅 iOS 会出现。此种情况下引导用户打开系统设置,不展示开关)
216
223
  * @type 'authorized' | 'denied' | 'not determined'
217
- * @uniPlatform {
218
- * "app": {
219
- * "android": {
220
- * "osVer": "x",
221
- * "uniVer": "x",
222
- * "unixVer": "x"
223
- * },
224
- * "ios": {
225
- * "osVer": "x",
226
- * "uniVer": "x",
227
- * "unixVer": "x"
228
- * }
229
- * }
224
+ * @uniPlatform
225
+ * {
226
+ * "app": {
227
+ * "android": {
228
+ * "osVer": "x",
229
+ * "uniVer": "x",
230
+ * "unixVer": "x"
231
+ * },
232
+ * "ios": {
233
+ * "osVer": "x",
234
+ * "uniVer": "x",
235
+ * "unixVer": "x"
236
+ * }
237
+ * }
230
238
  * }
231
239
  */
232
- phoneCalendarAuthorized: string | null
240
+ phoneCalendarAuthorized?: 'authorized' | 'denied' | 'not determined' | null
233
241
  };