@dcloudio/uni-app-x 0.7.44 → 0.7.46

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 (48) hide show
  1. package/package.json +1 -1
  2. package/types/UniPage.d.ts +9 -9
  3. package/types/native/CanvasRenderingContext2D.d.ts +64 -1
  4. package/types/native/IUniElement.d.ts +3 -1
  5. package/types/native/IUniNativeViewElement.d.ts +2 -0
  6. package/types/native/UniAnimation.d.ts +9 -4
  7. package/types/native/UniNativePage.d.ts +3 -20
  8. package/types/native/UniPageBody.d.ts +110 -0
  9. package/types/native/global.d.ts +2 -0
  10. package/types/native/index.d.ts +1 -0
  11. package/types/uni/uts-plugin-api/global.d.ts +1 -0
  12. package/types/uni/uts-plugin-api/index.d.ts +1 -0
  13. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +1 -1
  14. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +2 -2
  15. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +3 -3
  16. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +2 -2
  17. package/types/uni/uts-plugin-api/lib/uni-chooseMedia/utssdk/interface.d.ts +3 -3
  18. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +2 -2
  19. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +1 -1
  20. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +1 -1
  21. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +1 -1
  22. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +1 -1
  23. package/types/uni/uts-plugin-api/lib/uni-document/utssdk/interface.d.ts +1 -1
  24. package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/interface.d.ts +30 -30
  25. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +246 -92
  26. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +2 -2
  27. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +1 -1
  28. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +1 -1
  29. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +1 -1
  30. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +1 -1
  31. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +4 -2
  32. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +2 -1
  33. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +101 -415
  34. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +2 -2
  35. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +1 -1
  36. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +2 -2
  37. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +249 -335
  38. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +1 -1
  39. package/types/uni/uts-plugin-api/lib/uni-previewImage/utssdk/interface.d.ts +615 -76
  40. package/types/uni/uts-plugin-api/lib/uni-sse/utssdk/global.d.ts +18 -0
  41. package/types/uni/uts-plugin-api/lib/uni-sse/utssdk/index.d.ts +8 -0
  42. package/types/uni/uts-plugin-api/lib/uni-sse/utssdk/interface.d.ts +277 -0
  43. package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/interface.d.ts +40 -12
  44. package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/interface.d.ts +244 -244
  45. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/global.d.ts +0 -2
  46. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/index.d.ts +0 -1
  47. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +84 -87
  48. package/types/uni/uts-plugin-extend/README.md +0 -3
@@ -0,0 +1,18 @@
1
+ // 本文件为自动构建生成
2
+ import {
3
+ ConnectEventSourceOptions as ConnectEventSourceOptionsOrigin,
4
+ ConnectEventSourceCallback as ConnectEventSourceCallbackOrigin,
5
+ ConnectEventSourceErrorCallback as ConnectEventSourceErrorCallbackOrigin,
6
+ ConnectEventSource as ConnectEventSourceOrigin,
7
+ UniEventSource as UniEventSourceOrigin,
8
+ Uni as UniOrigin
9
+ } from './interface'
10
+
11
+ declare global {
12
+ type ConnectEventSourceOptions = ConnectEventSourceOptionsOrigin
13
+ type ConnectEventSourceCallback = ConnectEventSourceCallbackOrigin
14
+ type ConnectEventSourceErrorCallback = ConnectEventSourceErrorCallbackOrigin
15
+ type ConnectEventSource = ConnectEventSourceOrigin
16
+ type UniEventSource = UniEventSourceOrigin
17
+ interface Uni extends UniOrigin { }
18
+ }
@@ -0,0 +1,8 @@
1
+ // 本文件为自动构建生成
2
+ export {
3
+ ConnectEventSourceOptions,
4
+ ConnectEventSourceCallback,
5
+ ConnectEventSourceErrorCallback,
6
+ ConnectEventSource,
7
+ UniEventSource,
8
+ } from './interface'
@@ -0,0 +1,277 @@
1
+
2
+ export type ConnectEventSourceOptions = {
3
+ /**
4
+ * 服务器地址
5
+ * @uniPlatform
6
+ {
7
+ "app": {
8
+ "android": {
9
+ "osVer": "5.0",
10
+ "uniVer": "x",
11
+ "uniUtsPlugin": "x",
12
+ "unixVer": "4.51",
13
+ "unixUtsPlugin": "4.51"
14
+ },
15
+ "ios": {
16
+ "osVer": "12.0",
17
+ "uniVer": "x",
18
+ "uniUtsPlugin": "x",
19
+ "unixVer": "x",
20
+ "unixUtsPlugin": "x"
21
+ },
22
+ "harmony": {
23
+ "osVer": "x",
24
+ "uniVer": "x",
25
+ "unixVer": "x"
26
+ }
27
+ },
28
+ "web": {
29
+ "uniVer": "x",
30
+ "unixVer": "x"
31
+ }
32
+ }
33
+ */
34
+ url : string
35
+ }
36
+ export type ConnectEventSourceCallback = (ev : UniMessageEvent) => void
37
+ export type ConnectEventSourceErrorCallback = (error : UniError) => void
38
+
39
+ export interface Uni {
40
+ /**
41
+ * 连接 SSE
42
+ * @param {ConnectEventSourceOptions} options
43
+ * @uniPlatform
44
+ {
45
+ "app": {
46
+ "android": {
47
+ "osVer": "5.0",
48
+ "uniVer": "x",
49
+ "uniUtsPlugin": "x",
50
+ "unixVer": "4.51",
51
+ "unixUtsPlugin": "4.51"
52
+ },
53
+ "ios": {
54
+ "osVer": "12.0",
55
+ "uniVer": "x",
56
+ "uniUtsPlugin": "x",
57
+ "unixVer": "x",
58
+ "unixUtsPlugin": "x"
59
+ },
60
+ "harmony": {
61
+ "osVer": "x",
62
+ "uniVer": "x",
63
+ "unixVer": "x"
64
+ }
65
+ },
66
+ "web": {
67
+ "uniVer": "x",
68
+ "unixVer": "x"
69
+ }
70
+ }
71
+ */
72
+ connectEventSource(options : ConnectEventSourceOptions) : UniEventSource;
73
+ }
74
+ export type ConnectEventSource = (options : ConnectEventSourceOptions) => UniEventSource;
75
+ export interface UniEventSource {
76
+ /**
77
+ * message 事件,会在通过事件源收到数据时触发。
78
+ * @param {ConnectEventSourceCallback} callback 事件回调
79
+ * @uniPlatform
80
+ {
81
+ "app": {
82
+ "android": {
83
+ "osVer": "5.0",
84
+ "uniVer": "x",
85
+ "uniUtsPlugin": "x",
86
+ "unixVer": "4.51",
87
+ "unixUtsPlugin": "4.51"
88
+ },
89
+ "ios": {
90
+ "osVer": "12.0",
91
+ "uniVer": "x",
92
+ "uniUtsPlugin": "x",
93
+ "unixVer": "x",
94
+ "unixUtsPlugin": "x"
95
+ },
96
+ "harmony": {
97
+ "osVer": "x",
98
+ "uniVer": "x",
99
+ "unixVer": "x"
100
+ }
101
+ },
102
+ "web": {
103
+ "uniVer": "x",
104
+ "unixVer": "x"
105
+ }
106
+ }
107
+ */
108
+ onMessage(callback : ConnectEventSourceCallback) : void
109
+ /**
110
+ * onerror 是当发生错误且这个错误事件(error)被 UniEventSource 触发时调用的一个事件处理函数。
111
+ * @param {ConnectEventSourceErrorCallback} callback 事件回调
112
+ * @uniPlatform
113
+ {
114
+ "app": {
115
+ "android": {
116
+ "osVer": "5.0",
117
+ "uniVer": "x",
118
+ "uniUtsPlugin": "x",
119
+ "unixVer": "4.51",
120
+ "unixUtsPlugin": "4.51"
121
+ },
122
+ "ios": {
123
+ "osVer": "12.0",
124
+ "uniVer": "x",
125
+ "uniUtsPlugin": "x",
126
+ "unixVer": "x",
127
+ "unixUtsPlugin": "x"
128
+ },
129
+ "harmony": {
130
+ "osVer": "x",
131
+ "uniVer": "x",
132
+ "unixVer": "x"
133
+ }
134
+ },
135
+ "web": {
136
+ "uniVer": "x",
137
+ "unixVer": "x"
138
+ }
139
+ }
140
+ */
141
+ onError(callback : ConnectEventSourceErrorCallback) : void
142
+ /**
143
+ * 一个事件处理器,它在收到 open 事件时被调用,在那时,连接刚被打开。
144
+ * @param {ConnectEventSourceCallback} callback 事件回调
145
+ * @uniPlatform
146
+ {
147
+ "app": {
148
+ "android": {
149
+ "osVer": "5.0",
150
+ "uniVer": "x",
151
+ "uniUtsPlugin": "x",
152
+ "unixVer": "4.51",
153
+ "unixUtsPlugin": "4.51"
154
+ },
155
+ "ios": {
156
+ "osVer": "12.0",
157
+ "uniVer": "x",
158
+ "uniUtsPlugin": "x",
159
+ "unixVer": "x",
160
+ "unixUtsPlugin": "x"
161
+ },
162
+ "harmony": {
163
+ "osVer": "x",
164
+ "uniVer": "x",
165
+ "unixVer": "x"
166
+ }
167
+ },
168
+ "web": {
169
+ "uniVer": "x",
170
+ "unixVer": "x"
171
+ }
172
+ }
173
+ */
174
+ onOpen(callback : ConnectEventSourceCallback) : void
175
+ /**
176
+ * 关闭当前的连接
177
+ * @uniPlatform
178
+ {
179
+ "app": {
180
+ "android": {
181
+ "osVer": "5.0",
182
+ "uniVer": "x",
183
+ "uniUtsPlugin": "x",
184
+ "unixVer": "4.51",
185
+ "unixUtsPlugin": "4.51"
186
+ },
187
+ "ios": {
188
+ "osVer": "12.0",
189
+ "uniVer": "x",
190
+ "uniUtsPlugin": "x",
191
+ "unixVer": "x",
192
+ "unixUtsPlugin": "x"
193
+ },
194
+ "harmony": {
195
+ "osVer": "x",
196
+ "uniVer": "x",
197
+ "unixVer": "x"
198
+ }
199
+ },
200
+ "web": {
201
+ "uniVer": "x",
202
+ "unixVer": "x"
203
+ }
204
+ }
205
+ */
206
+ close() : void
207
+ }
208
+ export class UniMessageEvent extends UniEvent {
209
+ constructor(type : string) {
210
+ super(type)
211
+ }
212
+ /**
213
+ * 消息发射器发出的数据。
214
+ * @param {ConnectEventSourceOptions} options
215
+ * @uniPlatform
216
+ {
217
+ "app": {
218
+ "android": {
219
+ "osVer": "5.0",
220
+ "uniVer": "x",
221
+ "uniUtsPlugin": "x",
222
+ "unixVer": "4.51",
223
+ "unixUtsPlugin": "4.51"
224
+ },
225
+ "ios": {
226
+ "osVer": "12.0",
227
+ "uniVer": "x",
228
+ "uniUtsPlugin": "x",
229
+ "unixVer": "x",
230
+ "unixUtsPlugin": "x"
231
+ },
232
+ "harmony": {
233
+ "osVer": "x",
234
+ "uniVer": "x",
235
+ "unixVer": "x"
236
+ }
237
+ },
238
+ "web": {
239
+ "uniVer": "x",
240
+ "unixVer": "x"
241
+ }
242
+ }
243
+ */
244
+ data : any | null = null;
245
+ /**
246
+ * 一个字符串,表示事件的唯一 ID。
247
+ * @uniPlatform
248
+ {
249
+ "app": {
250
+ "android": {
251
+ "osVer": "5.0",
252
+ "uniVer": "x",
253
+ "uniUtsPlugin": "x",
254
+ "unixVer": "4.51",
255
+ "unixUtsPlugin": "4.51"
256
+ },
257
+ "ios": {
258
+ "osVer": "12.0",
259
+ "uniVer": "x",
260
+ "uniUtsPlugin": "x",
261
+ "unixVer": "x",
262
+ "unixUtsPlugin": "x"
263
+ },
264
+ "harmony": {
265
+ "osVer": "x",
266
+ "uniVer": "x",
267
+ "unixVer": "x"
268
+ }
269
+ },
270
+ "web": {
271
+ "uniVer": "x",
272
+ "unixVer": "x"
273
+ }
274
+ }
275
+ */
276
+ lastEventId : string | null = null
277
+ }
@@ -1,18 +1,23 @@
1
1
  /**
2
- *
2
+ * @internal
3
3
  */
4
4
  export type OnAppCrashCallback = () => void
5
5
 
6
6
  /**
7
- * 监听应用崩溃
7
+ * 监听应用崩溃
8
+ * @internal
8
9
  */
9
10
  export type OnAppCrash = (callback : OnAppCrashCallback) => void
10
11
 
11
12
  /**
12
- * 取消监听应用崩溃
13
+ * 取消监听应用崩溃
14
+ * @internal
13
15
  */
14
16
  export type OffAppCrash = () => void
15
-
17
+
18
+ /**
19
+ * @internal
20
+ */
16
21
  export type AppCrashInfo = {
17
22
  /**
18
23
  * 唯一标识符
@@ -29,7 +34,8 @@ export type AppCrashInfo = {
29
34
  }
30
35
 
31
36
  /**
32
- * 获取所有的崩溃信息
37
+ * 获取所有的崩溃信息
38
+ * @internal
33
39
  */
34
40
  // #ifdef APP-IOS
35
41
  export type GetAppCrashInfoIOS = () => Array<Map<string, any>>
@@ -40,22 +46,44 @@ export type GetAppCrashInfo = () => Array<AppCrashInfo> | null
40
46
  // #endif
41
47
 
42
48
  /**
43
- * 删除指定的崩溃信息,id为空则删除所有的崩溃信息
49
+ * 删除指定的崩溃信息,id为空则删除所有的崩溃信息
50
+ * @internal
44
51
  */
45
52
  export type DeleteAppCrashInfo = (id : string | null) => void
46
53
 
47
54
  export type CreatAppCrash = () => void
48
55
 
49
56
 
50
- export interface Uni {
51
- __onAppCrash(callback : OnAppCrashCallback | null) : void,
52
- __offAppCrash() : void,
57
+ export interface Uni {
58
+ /**
59
+ * 监听异常崩溃发生(iOS不支持)
60
+ * @internal
61
+ */
62
+ __onAppCrash(callback : OnAppCrashCallback | null) : void,
63
+ /**
64
+ * 取消异常崩溃发生(iOS不支持)
65
+ * @internal
66
+ */
67
+ __offAppCrash() : void,
68
+
69
+ /**
70
+ * 获取异常崩溃数据
71
+ * @internal
72
+ */
53
73
  // #ifdef APP-IOS
54
74
  __getAppCrashInfo() : Array<Map<string, any>> | null,
55
75
  // #endif
56
76
  // #ifdef APP-ANDROID
57
77
  __getAppCrashInfo() : Array<AppCrashInfo> | null,
58
- // #endif
59
- __deleteAppCrashInfo(id : string | null) : void,
60
- __creatAppCrash() : void
78
+ // #endif
79
+ /**
80
+ * 删除本地对应Crash数据
81
+ * @internal
82
+ */
83
+ __deleteAppCrashInfo(id : string | null) : void,
84
+ /**
85
+ * 触发crash
86
+ * @internal
87
+ */
88
+ __createAppCrash() : void
61
89
  }