@dcloudio/uni-app-x 0.7.52 → 0.7.53
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.
- package/package.json +1 -1
- package/types/app.d.ts +1 -1
- package/types/native/DrawableContext.d.ts +6 -1
- package/types/native/UniElement.d.ts +3 -1
- package/types/native/UniNativeApp.d.ts +1 -1
- package/types/native/UniNativePage.d.ts +54 -0
- package/types/native/UniPage.d.ts +111 -6
- package/types/page.d.ts +6 -0
- package/types/uni/env/index.d.ts +35 -2
- package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/global.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/interface.d.ts +425 -70
- package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +3 -3
- package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +30 -5
- package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +17 -17
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +83 -85
- package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +77 -0
- package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/global.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +7 -1
- package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/global.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/interface.d.ts +9 -1
- package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/global.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/interface.d.ts +9 -1
- package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +217 -138
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +18 -0
- package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +7 -3
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +2570 -2780
- package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/global.d.ts +12 -0
- package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/index.d.ts +6 -0
- package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/interface.d.ts +98 -2
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/global.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +11 -3
- package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/global.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/interface.d.ts +9 -1
- package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/global.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/interface.d.ts +10 -1
- package/types/uni/uts-plugin-api/lib/uni-requestMerchantTransfer/utssdk/interface.d.ts +50 -50
- package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +3 -5
- package/types/uni/uts-plugin-biz/global.d.ts +1 -1
- package/types/uni/uts-plugin-biz/index.d.ts +1 -1
- package/types/uni/uts-plugin-biz/lib/uni-facialVerify/utssdk/global.d.ts +28 -0
- package/types/uni/uts-plugin-biz/lib/uni-facialVerify/utssdk/index.d.ts +13 -0
- package/types/uni/uts-plugin-biz/lib/uni-facialVerify/utssdk/interface.d.ts +212 -0
- package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/interface.d.ts +509 -84
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +20 -20
- package/types/uni/uts-plugin-component/lib/uni-canvas/utssdk/global.d.ts +2 -0
- package/types/uni/uts-plugin-component/lib/uni-canvas/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-component/lib/uni-canvas/utssdk/interface.d.ts +2 -0
- package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/interface.d.ts +14 -14
package/package.json
CHANGED
package/types/app.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CSSStyleDeclaration } from "./CSSStyleDeclaration";
|
|
2
2
|
import { DOMRect } from "./DOMRect";
|
|
3
3
|
import { DrawableContext } from "./DrawableContext";
|
|
4
|
-
import { UniElement, UniViewElement, ClientRectObject } from "./IUniElement";
|
|
4
|
+
import { UniElement, UniViewElement, ClientRectObject, RequestFullscreenOptions } from "./IUniElement";
|
|
5
5
|
import { UniEvent } from './UniEvent'
|
|
6
6
|
import { TakeSnapshotOptions } from "./SnapshotOptions";
|
|
7
7
|
import { UniCallbackWrapper } from "./UniCallbackWrapper";
|
|
@@ -73,7 +73,9 @@ export class UniElementImpl implements UniElement {
|
|
|
73
73
|
getHarmonyController(): any | null
|
|
74
74
|
getHarmonyController<T>(): T | null
|
|
75
75
|
constructor(data: INodeData, pageNode?: PageNode)
|
|
76
|
+
requestFullscreen(options: RequestFullscreenOptions): void;
|
|
76
77
|
animate(keyframes: any, options: any): UniAnimation | null;
|
|
78
|
+
isConnected: boolean
|
|
77
79
|
}
|
|
78
80
|
|
|
79
81
|
/**
|
|
@@ -33,7 +33,7 @@ export interface UniNativeApp {
|
|
|
33
33
|
/**
|
|
34
34
|
* 监听app事件
|
|
35
35
|
*/
|
|
36
|
-
addEventListener<T>(event: "onShow" | "onHide" | "onExit" | "onThemeChange" | "onError", callback: (event: T) => void): UniCallbackWrapper
|
|
36
|
+
addEventListener<T>(event: "onShow" | "onHide" | "onExit" | "onThemeChange" | "onError" | "onNewIntent", callback: (event: T) => void): UniCallbackWrapper
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
39
|
* 注销app监听
|
|
@@ -63,6 +63,60 @@ export interface UniNativePage {
|
|
|
63
63
|
* }
|
|
64
64
|
*/
|
|
65
65
|
readonly safeAreaInsets: UniSafeAreaInsets
|
|
66
|
+
/**
|
|
67
|
+
* 页面窗口宽度
|
|
68
|
+
* @uniPlatform {
|
|
69
|
+
* "app": {
|
|
70
|
+
* "android": {
|
|
71
|
+
* "osVer": "5.0",
|
|
72
|
+
* "uniVer": "x",
|
|
73
|
+
* "unixVer": "4.61"
|
|
74
|
+
* },
|
|
75
|
+
* "ios": {
|
|
76
|
+
* "osVer": "12.0",
|
|
77
|
+
* "uniVer": "x",
|
|
78
|
+
* "unixVer": "4.61"
|
|
79
|
+
* }
|
|
80
|
+
* }
|
|
81
|
+
* }
|
|
82
|
+
*/
|
|
83
|
+
readonly width: number
|
|
84
|
+
/**
|
|
85
|
+
* 页面窗口高度
|
|
86
|
+
* @uniPlatform {
|
|
87
|
+
* "app": {
|
|
88
|
+
* "android": {
|
|
89
|
+
* "osVer": "5.0",
|
|
90
|
+
* "uniVer": "x",
|
|
91
|
+
* "unixVer": "4.61"
|
|
92
|
+
* },
|
|
93
|
+
* "ios": {
|
|
94
|
+
* "osVer": "12.0",
|
|
95
|
+
* "uniVer": "x",
|
|
96
|
+
* "unixVer": "4.61"
|
|
97
|
+
* }
|
|
98
|
+
* }
|
|
99
|
+
* }
|
|
100
|
+
*/
|
|
101
|
+
readonly height: number
|
|
102
|
+
/**
|
|
103
|
+
* 页面状态栏高度
|
|
104
|
+
* @uniPlatform {
|
|
105
|
+
* "app": {
|
|
106
|
+
* "android": {
|
|
107
|
+
* "osVer": "5.0",
|
|
108
|
+
* "uniVer": "x",
|
|
109
|
+
* "unixVer": "4.61"
|
|
110
|
+
* },
|
|
111
|
+
* "ios": {
|
|
112
|
+
* "osVer": "12.0",
|
|
113
|
+
* "uniVer": "x",
|
|
114
|
+
* "unixVer": "4.61"
|
|
115
|
+
* }
|
|
116
|
+
* }
|
|
117
|
+
* }
|
|
118
|
+
*/
|
|
119
|
+
readonly statusBarHeight: number
|
|
66
120
|
/**
|
|
67
121
|
* 开启排版渲染
|
|
68
122
|
* @internal
|
|
@@ -248,7 +248,6 @@ export interface UniPage {
|
|
|
248
248
|
* }
|
|
249
249
|
*/
|
|
250
250
|
safeAreaInsets: UniSafeAreaInsets
|
|
251
|
-
|
|
252
251
|
/**
|
|
253
252
|
* 已经进入全屏状态的元素
|
|
254
253
|
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
|
|
@@ -284,7 +283,115 @@ export interface UniPage {
|
|
|
284
283
|
* }
|
|
285
284
|
* }
|
|
286
285
|
*/
|
|
287
|
-
readonly fullscreenElement
|
|
286
|
+
readonly fullscreenElement?: UniElement | null
|
|
287
|
+
/**
|
|
288
|
+
* 页面窗口宽度
|
|
289
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
|
|
290
|
+
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
|
|
291
|
+
* @uniPlatform {
|
|
292
|
+
* "app": {
|
|
293
|
+
* "android": {
|
|
294
|
+
* "osVer": "5.0",
|
|
295
|
+
* "uniVer": "x",
|
|
296
|
+
* "unixVer": "4.61"
|
|
297
|
+
* },
|
|
298
|
+
* "ios": {
|
|
299
|
+
* "osVer": "x",
|
|
300
|
+
* "unixVer": "4.61",
|
|
301
|
+
* "unixUtsPlugin": "4.61"
|
|
302
|
+
* },
|
|
303
|
+
* "harmony": {
|
|
304
|
+
* "osVer": "x",
|
|
305
|
+
* "uniVer": "x",
|
|
306
|
+
* "unixVer": "x"
|
|
307
|
+
* }
|
|
308
|
+
* },
|
|
309
|
+
* "mp": {
|
|
310
|
+
* "weixin": {
|
|
311
|
+
* "hostVer": "√",
|
|
312
|
+
* "uniVer": "x",
|
|
313
|
+
* "unixVer": "x"
|
|
314
|
+
* },
|
|
315
|
+
* },
|
|
316
|
+
* "web": {
|
|
317
|
+
* "uniVer": "x",
|
|
318
|
+
* "unixVer": "4.61"
|
|
319
|
+
* }
|
|
320
|
+
* }
|
|
321
|
+
*/
|
|
322
|
+
readonly width: number
|
|
323
|
+
/**
|
|
324
|
+
* 页面状态栏高度高度
|
|
325
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
|
|
326
|
+
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
|
|
327
|
+
* @uniPlatform {
|
|
328
|
+
* "app": {
|
|
329
|
+
* "android": {
|
|
330
|
+
* "osVer": "5.0",
|
|
331
|
+
* "uniVer": "x",
|
|
332
|
+
* "unixVer": "4.61"
|
|
333
|
+
* },
|
|
334
|
+
* "ios": {
|
|
335
|
+
* "osVer": "x",
|
|
336
|
+
* "unixVer": "4.61",
|
|
337
|
+
* "unixUtsPlugin": "4.61"
|
|
338
|
+
* },
|
|
339
|
+
* "harmony": {
|
|
340
|
+
* "osVer": "x",
|
|
341
|
+
* "uniVer": "x",
|
|
342
|
+
* "unixVer": "x"
|
|
343
|
+
* }
|
|
344
|
+
* },
|
|
345
|
+
* "mp": {
|
|
346
|
+
* "weixin": {
|
|
347
|
+
* "hostVer": "√",
|
|
348
|
+
* "uniVer": "x",
|
|
349
|
+
* "unixVer": "x"
|
|
350
|
+
* },
|
|
351
|
+
* },
|
|
352
|
+
* "web": {
|
|
353
|
+
* "uniVer": "x",
|
|
354
|
+
* "unixVer": "4.61"
|
|
355
|
+
* }
|
|
356
|
+
* }
|
|
357
|
+
*/
|
|
358
|
+
readonly height: number
|
|
359
|
+
/**
|
|
360
|
+
* 页面窗口宽度
|
|
361
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
|
|
362
|
+
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
|
|
363
|
+
* @uniPlatform {
|
|
364
|
+
* "app": {
|
|
365
|
+
* "android": {
|
|
366
|
+
* "osVer": "5.0",
|
|
367
|
+
* "uniVer": "x",
|
|
368
|
+
* "unixVer": "4.61"
|
|
369
|
+
* },
|
|
370
|
+
* "ios": {
|
|
371
|
+
* "osVer": "x",
|
|
372
|
+
* "unixVer": "4.61",
|
|
373
|
+
* "unixUtsPlugin": "4.61"
|
|
374
|
+
* },
|
|
375
|
+
* "harmony": {
|
|
376
|
+
* "osVer": "x",
|
|
377
|
+
* "uniVer": "x",
|
|
378
|
+
* "unixVer": "x"
|
|
379
|
+
* }
|
|
380
|
+
* },
|
|
381
|
+
* "mp": {
|
|
382
|
+
* "weixin": {
|
|
383
|
+
* "hostVer": "√",
|
|
384
|
+
* "uniVer": "x",
|
|
385
|
+
* "unixVer": "x"
|
|
386
|
+
* },
|
|
387
|
+
* },
|
|
388
|
+
* "web": {
|
|
389
|
+
* "uniVer": "x",
|
|
390
|
+
* "unixVer": "4.61"
|
|
391
|
+
* }
|
|
392
|
+
* }
|
|
393
|
+
*/
|
|
394
|
+
readonly statusBarHeight: number
|
|
288
395
|
/**
|
|
289
396
|
* 获取当前页面样式。详细属性配置请参考PageStyle
|
|
290
397
|
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html#getpagestyle
|
|
@@ -579,7 +686,6 @@ export interface UniPage {
|
|
|
579
686
|
* }
|
|
580
687
|
*/
|
|
581
688
|
getAndroidView(): View | null
|
|
582
|
-
|
|
583
689
|
/**
|
|
584
690
|
* 返回 android 平台加载页面内容的Activity
|
|
585
691
|
*
|
|
@@ -590,7 +696,7 @@ export interface UniPage {
|
|
|
590
696
|
* "android": {
|
|
591
697
|
* "osVer": "5.0",
|
|
592
698
|
* "uniVer": "x",
|
|
593
|
-
* "unixVer": "4.
|
|
699
|
+
* "unixVer": "4.61"
|
|
594
700
|
* },
|
|
595
701
|
* "ios": {
|
|
596
702
|
* "osVer": "x",
|
|
@@ -692,7 +798,6 @@ export interface UniPage {
|
|
|
692
798
|
* }
|
|
693
799
|
*/
|
|
694
800
|
getHTMLElement(): UniElement | null
|
|
695
|
-
|
|
696
801
|
/**
|
|
697
802
|
* 退出全屏
|
|
698
803
|
*
|
|
@@ -729,7 +834,7 @@ export interface UniPage {
|
|
|
729
834
|
* }
|
|
730
835
|
* }
|
|
731
836
|
*/
|
|
732
|
-
|
|
837
|
+
exitFullscreen(options: ExitFullscreenOptions|null) : void
|
|
733
838
|
}
|
|
734
839
|
|
|
735
840
|
export type ExitFullscreenSuccessCallback = () => void
|
package/types/page.d.ts
CHANGED
package/types/uni/env/index.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ interface Uni {
|
|
|
23
23
|
* }
|
|
24
24
|
* },
|
|
25
25
|
* "web": {
|
|
26
|
-
* "uniVer": "x,
|
|
26
|
+
* "uniVer": "x",
|
|
27
27
|
* "unixVer": "x"
|
|
28
28
|
* }
|
|
29
29
|
* }
|
|
@@ -47,10 +47,13 @@ interface Uni {
|
|
|
47
47
|
* },
|
|
48
48
|
* "mp": {
|
|
49
49
|
* "weinxin": {
|
|
50
|
-
* "osVer": "√",
|
|
51
50
|
* "uniVer": "√",
|
|
52
51
|
* "unixVer": "4.41"
|
|
53
52
|
* }
|
|
53
|
+
* },
|
|
54
|
+
* "web": {
|
|
55
|
+
* "uniVer": "x",
|
|
56
|
+
* "unixVer": "x"
|
|
54
57
|
* }
|
|
55
58
|
* }
|
|
56
59
|
*/
|
|
@@ -69,6 +72,16 @@ interface Uni {
|
|
|
69
72
|
* "uniVer": "x",
|
|
70
73
|
* "unixVer": "4.11"
|
|
71
74
|
* }
|
|
75
|
+
* },
|
|
76
|
+
* "mp": {
|
|
77
|
+
* "weinxin": {
|
|
78
|
+
* "uniVer": "x",
|
|
79
|
+
* "unixVer": "x"
|
|
80
|
+
* }
|
|
81
|
+
* },
|
|
82
|
+
* "web": {
|
|
83
|
+
* "uniVer": "x",
|
|
84
|
+
* "unixVer": "x"
|
|
72
85
|
* }
|
|
73
86
|
* }
|
|
74
87
|
*/
|
|
@@ -87,6 +100,16 @@ interface Uni {
|
|
|
87
100
|
* "uniVer": "x",
|
|
88
101
|
* "unixVer": "4.11"
|
|
89
102
|
* }
|
|
103
|
+
* },
|
|
104
|
+
* "mp": {
|
|
105
|
+
* "weinxin": {
|
|
106
|
+
* "uniVer": "x",
|
|
107
|
+
* "unixVer": "x"
|
|
108
|
+
* }
|
|
109
|
+
* },
|
|
110
|
+
* "web": {
|
|
111
|
+
* "uniVer": "x",
|
|
112
|
+
* "unixVer": "x"
|
|
90
113
|
* }
|
|
91
114
|
* }
|
|
92
115
|
*/
|
|
@@ -105,6 +128,16 @@ interface Uni {
|
|
|
105
128
|
* "uniVer": "x",
|
|
106
129
|
* "unixVer": "4.11"
|
|
107
130
|
* }
|
|
131
|
+
* },
|
|
132
|
+
* "mp": {
|
|
133
|
+
* "weinxin": {
|
|
134
|
+
* "uniVer": "x",
|
|
135
|
+
* "unixVer": "x"
|
|
136
|
+
* }
|
|
137
|
+
* },
|
|
138
|
+
* "web": {
|
|
139
|
+
* "uniVer": "x",
|
|
140
|
+
* "unixVer": "x"
|
|
108
141
|
* }
|
|
109
142
|
* }
|
|
110
143
|
*/
|
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
ShowActionSheetComplete as ShowActionSheetCompleteOrigin,
|
|
8
8
|
ShowActionSheetOptions as ShowActionSheetOptionsOrigin,
|
|
9
9
|
ShowActionSheet as ShowActionSheetOrigin,
|
|
10
|
+
HideActionSheet as HideActionSheetOrigin,
|
|
10
11
|
Uni as UniOrigin
|
|
11
12
|
} from './interface'
|
|
12
13
|
|
|
@@ -18,5 +19,6 @@ declare global {
|
|
|
18
19
|
type ShowActionSheetComplete = ShowActionSheetCompleteOrigin
|
|
19
20
|
type ShowActionSheetOptions = ShowActionSheetOptionsOrigin
|
|
20
21
|
type ShowActionSheet = ShowActionSheetOrigin
|
|
22
|
+
type HideActionSheet = HideActionSheetOrigin
|
|
21
23
|
interface Uni extends UniOrigin { }
|
|
22
24
|
}
|