@dcloudio/uni-app-x 0.7.45 → 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.
- package/package.json +1 -1
- package/types/UniPage.d.ts +9 -9
- package/types/native/CanvasRenderingContext2D.d.ts +64 -1
- package/types/native/IUniNativeViewElement.d.ts +2 -0
- package/types/native/UniAnimation.d.ts +9 -4
- package/types/native/global.d.ts +2 -0
- package/types/native/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +3 -3
- package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-document/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +246 -92
- package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +4 -2
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +2 -1
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +98 -412
- package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +249 -335
- package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-previewImage/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/interface.d.ts +40 -12
- package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/interface.d.ts +244 -244
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +26 -26
- package/types/uni/uts-plugin-extend/README.md +0 -3
package/package.json
CHANGED
package/types/UniPage.d.ts
CHANGED
|
@@ -2,27 +2,27 @@ import { UniSafeAreaInsets } from './native/UniSafeAreaInsets'
|
|
|
2
2
|
|
|
3
3
|
export type UniPageBody = {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* 安全区域左上角纵坐标,单位为px
|
|
6
6
|
*/
|
|
7
7
|
top: number,
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
*/
|
|
11
|
-
right: number,
|
|
12
|
-
/**
|
|
13
|
-
* pageBody 距离底部的距离
|
|
9
|
+
* 安全区域右下角纵坐标,单位为px
|
|
14
10
|
*/
|
|
15
11
|
bottom: number,
|
|
16
12
|
/**
|
|
17
|
-
*
|
|
13
|
+
* 安全区域左上角横坐标,单位为px
|
|
18
14
|
*/
|
|
19
15
|
left: number,
|
|
20
16
|
/**
|
|
21
|
-
*
|
|
17
|
+
* 安全区域右下角横坐标,单位为px
|
|
18
|
+
*/
|
|
19
|
+
right: number,
|
|
20
|
+
/**
|
|
21
|
+
* 安全区域的宽度,单位为px
|
|
22
22
|
*/
|
|
23
23
|
width: number,
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* 安全区域的高度,单位为px
|
|
26
26
|
*/
|
|
27
27
|
height: number
|
|
28
28
|
}
|
|
@@ -1414,7 +1414,7 @@ export type CanvasTextRendering =
|
|
|
1414
1414
|
"geometricPrecision";
|
|
1415
1415
|
|
|
1416
1416
|
/**
|
|
1417
|
-
* 描述canvas
|
|
1417
|
+
* 描述canvas元素的一个隐含像素数据的区域,注意:App平台ImageData只支持context接口获取不支持通过new ImageData方式创建
|
|
1418
1418
|
* @uniPlatform {
|
|
1419
1419
|
* "app": {
|
|
1420
1420
|
* "android": {
|
|
@@ -1435,8 +1435,71 @@ export type CanvasTextRendering =
|
|
|
1435
1435
|
* }
|
|
1436
1436
|
*/
|
|
1437
1437
|
export interface ImageData {
|
|
1438
|
+
/**
|
|
1439
|
+
* 一维数组,包含以 RGBA 顺序的数据,数据使用 0 至 255(包含)的整数表示
|
|
1440
|
+
* @uniPlatform {
|
|
1441
|
+
* "app": {
|
|
1442
|
+
* "android": {
|
|
1443
|
+
* "osVer": "5.0",
|
|
1444
|
+
* "uniVer": "√",
|
|
1445
|
+
* "unixVer": "4.25"
|
|
1446
|
+
* },
|
|
1447
|
+
* "ios": {
|
|
1448
|
+
* "osVer": "12.0",
|
|
1449
|
+
* "uniVer": "√",
|
|
1450
|
+
* "unixVer": "4.25"
|
|
1451
|
+
* }
|
|
1452
|
+
* }
|
|
1453
|
+
* "web": {
|
|
1454
|
+
* "uniVer": "√",
|
|
1455
|
+
* "unixVer": "4.0"
|
|
1456
|
+
* }
|
|
1457
|
+
* }
|
|
1458
|
+
*/
|
|
1438
1459
|
readonly data: Uint8ClampedArray
|
|
1460
|
+
/**
|
|
1461
|
+
* 使用像素描述 ImageData 的实际宽度
|
|
1462
|
+
* @uniPlatform {
|
|
1463
|
+
* "app": {
|
|
1464
|
+
* "android": {
|
|
1465
|
+
* "osVer": "5.0",
|
|
1466
|
+
* "uniVer": "√",
|
|
1467
|
+
* "unixVer": "4.25"
|
|
1468
|
+
* },
|
|
1469
|
+
* "ios": {
|
|
1470
|
+
* "osVer": "12.0",
|
|
1471
|
+
* "uniVer": "√",
|
|
1472
|
+
* "unixVer": "4.25"
|
|
1473
|
+
* }
|
|
1474
|
+
* }
|
|
1475
|
+
* "web": {
|
|
1476
|
+
* "uniVer": "√",
|
|
1477
|
+
* "unixVer": "4.0"
|
|
1478
|
+
* }
|
|
1479
|
+
* }
|
|
1480
|
+
*/
|
|
1439
1481
|
readonly width: number
|
|
1482
|
+
/**
|
|
1483
|
+
* 使用像素描述 ImageData 的实际高度
|
|
1484
|
+
* @uniPlatform {
|
|
1485
|
+
* "app": {
|
|
1486
|
+
* "android": {
|
|
1487
|
+
* "osVer": "5.0",
|
|
1488
|
+
* "uniVer": "√",
|
|
1489
|
+
* "unixVer": "4.25"
|
|
1490
|
+
* },
|
|
1491
|
+
* "ios": {
|
|
1492
|
+
* "osVer": "12.0",
|
|
1493
|
+
* "uniVer": "√",
|
|
1494
|
+
* "unixVer": "4.25"
|
|
1495
|
+
* }
|
|
1496
|
+
* }
|
|
1497
|
+
* "web": {
|
|
1498
|
+
* "uniVer": "√",
|
|
1499
|
+
* "unixVer": "4.0"
|
|
1500
|
+
* }
|
|
1501
|
+
* }
|
|
1502
|
+
*/
|
|
1440
1503
|
readonly height: number
|
|
1441
1504
|
}
|
|
1442
1505
|
/**
|
|
@@ -55,6 +55,8 @@ export interface UniNativeViewElement extends UniElement {
|
|
|
55
55
|
* }
|
|
56
56
|
*/
|
|
57
57
|
bindIOSView(view: UIView): void
|
|
58
|
+
bindHarmonyFrameNode(node: FrameNode): void
|
|
59
|
+
bindHarmonyWrappedBuilder<O extends Object>(builder: WrappedBuilder<[options: O]>, options?: ESObject): BuilderNode<[O]>
|
|
58
60
|
}
|
|
59
61
|
|
|
60
62
|
export let UniNativeViewElement: {
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { UniAnimationPlaybackEvent } from "./UniAnimationPlaybackEvent"
|
|
2
|
+
|
|
3
|
+
type UniAnimationOnCancel = (event : UniAnimationPlaybackEvent) => void
|
|
4
|
+
|
|
5
|
+
type UniAnimationOnFinish = (event : UniAnimationPlaybackEvent) => void
|
|
6
|
+
|
|
2
7
|
/**
|
|
3
8
|
* @package io.dcloud.uniapp.runtime
|
|
4
9
|
* @uniPlatform {
|
|
@@ -126,7 +131,7 @@ export class UniAnimation {
|
|
|
126
131
|
* }
|
|
127
132
|
* }
|
|
128
133
|
*/
|
|
129
|
-
id :
|
|
134
|
+
id : string
|
|
130
135
|
/**
|
|
131
136
|
* 返回动画播放状态。可选值:`running`动画正在运行;`paused`动画暂停;`finished`动画播放完成;`idle`动画取消或者失败
|
|
132
137
|
* @uniPlatform {
|
|
@@ -190,7 +195,7 @@ export class UniAnimation {
|
|
|
190
195
|
* }
|
|
191
196
|
* }
|
|
192
197
|
*/
|
|
193
|
-
playState :
|
|
198
|
+
playState : string
|
|
194
199
|
/**
|
|
195
200
|
* 监听动画取消事件
|
|
196
201
|
* @uniPlatform {
|
|
@@ -254,7 +259,7 @@ export class UniAnimation {
|
|
|
254
259
|
* }
|
|
255
260
|
* }
|
|
256
261
|
*/
|
|
257
|
-
oncancel :
|
|
262
|
+
oncancel : UniAnimationOnCancel | null
|
|
258
263
|
/**
|
|
259
264
|
* 监听动画完成事件
|
|
260
265
|
* @uniPlatform {
|
|
@@ -318,7 +323,7 @@ export class UniAnimation {
|
|
|
318
323
|
* }
|
|
319
324
|
* }
|
|
320
325
|
*/
|
|
321
|
-
onfinish :
|
|
326
|
+
onfinish : UniAnimationOnFinish | null
|
|
322
327
|
/**
|
|
323
328
|
* 终止并取消所有动画
|
|
324
329
|
* @uniPlatform {
|
package/types/native/global.d.ts
CHANGED
|
@@ -99,6 +99,7 @@ import {
|
|
|
99
99
|
IPageManager as IPageManagerOrigin,
|
|
100
100
|
UniPageEvent as UniPageEventOrigin,
|
|
101
101
|
PageEvent as PageEventOrigin,
|
|
102
|
+
UniPageBody as UniPageBodyOrigin,
|
|
102
103
|
UniNestedPreScrollEvent as UniNestedPreScrollEventOrigin,
|
|
103
104
|
NestedPreScrollEvent as NestedPreScrollEventOrigin,
|
|
104
105
|
UniNativePage as UniNativePageOrigin,
|
|
@@ -421,6 +422,7 @@ declare global {
|
|
|
421
422
|
type UniPageEvent = UniPageEventOrigin
|
|
422
423
|
const PageEvent: typeof PageEventOrigin
|
|
423
424
|
type PageEvent = PageEventOrigin
|
|
425
|
+
type UniPageBody = UniPageBodyOrigin
|
|
424
426
|
const UniNestedPreScrollEvent: typeof UniNestedPreScrollEventOrigin
|
|
425
427
|
type UniNestedPreScrollEvent = UniNestedPreScrollEventOrigin
|
|
426
428
|
const NestedPreScrollEvent: typeof NestedPreScrollEventOrigin
|
package/types/native/index.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ export * from './UniPointerEvent'
|
|
|
34
34
|
export * from './UniPageScrollEvent'
|
|
35
35
|
export * from './UniPageManager'
|
|
36
36
|
export * from './UniPageEvent'
|
|
37
|
+
export * from './UniPageBody'
|
|
37
38
|
export * from './UniNestedPreScrollEvent'
|
|
38
39
|
export * from './UniNativePage'
|
|
39
40
|
export * from './UniNativeApp'
|
|
@@ -71,7 +71,7 @@ export interface Uni {
|
|
|
71
71
|
* }
|
|
72
72
|
* @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/device/contact/wx.addPhoneContact.html
|
|
73
73
|
*/
|
|
74
|
-
addPhoneContact:
|
|
74
|
+
addPhoneContact(options: AddPhoneContactOptions): void;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
export type AddPhoneContact = (options: AddPhoneContactOptions) => void;
|
|
@@ -72,7 +72,7 @@ export interface Uni {
|
|
|
72
72
|
* }
|
|
73
73
|
* @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/base/wx.arrayBufferToBase64.html
|
|
74
74
|
*/
|
|
75
|
-
arrayBufferToBase64:
|
|
75
|
+
arrayBufferToBase64(arrayBuffer: ArrayBuffer): string;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
export type ArrayBufferToBase64 = (arrayBuffer: ArrayBuffer) => string;
|
|
@@ -73,7 +73,7 @@ export interface Uni {
|
|
|
73
73
|
* }
|
|
74
74
|
* @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/open-api/soter/wx.startSoterAuthentication.html
|
|
75
75
|
*/
|
|
76
|
-
startSoterAuthentication:
|
|
76
|
+
startSoterAuthentication(options: StartSoterAuthenticationOptions): void;
|
|
77
77
|
/**
|
|
78
78
|
* 获取本机支持的 SOTER 生物认证方式
|
|
79
79
|
*
|
|
@@ -147,7 +147,7 @@ export interface Uni {
|
|
|
147
147
|
* }
|
|
148
148
|
* @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/open-api/soter/wx.checkIsSupportSoterAuthentication.html
|
|
149
149
|
*/
|
|
150
|
-
checkIsSupportSoterAuthentication:
|
|
150
|
+
checkIsSupportSoterAuthentication(options: CheckIsSupportSoterAuthenticationOptions): void;
|
|
151
151
|
/**
|
|
152
152
|
* 获取设备内是否录入如指纹等生物信息
|
|
153
153
|
*
|
|
@@ -221,7 +221,7 @@ export interface Uni {
|
|
|
221
221
|
* }
|
|
222
222
|
* @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/open-api/soter/wx.checkIsSoterEnrolledInDevice.html
|
|
223
223
|
*/
|
|
224
|
-
checkIsSoterEnrolledInDevice:
|
|
224
|
+
checkIsSoterEnrolledInDevice(options: CheckIsSoterEnrolledInDeviceOptions): void;
|
|
225
225
|
}
|
|
226
226
|
|
|
227
227
|
export type StartSoterAuthentication = (options: StartSoterAuthenticationOptions) => void;
|
|
@@ -72,7 +72,7 @@ export interface Uni {
|
|
|
72
72
|
* }
|
|
73
73
|
* @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/base/wx.base64ToArrayBuffer.html
|
|
74
74
|
*/
|
|
75
|
-
base64ToArrayBuffer:
|
|
75
|
+
base64ToArrayBuffer(base64: string): ArrayBuffer;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
export type Base64ToArrayBuffer = (base64: string) => ArrayBuffer;
|
|
@@ -71,7 +71,7 @@ export interface Uni {
|
|
|
71
71
|
* }
|
|
72
72
|
* @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/device/clipboard/wx.setClipboardData.html
|
|
73
73
|
*/
|
|
74
|
-
setClipboardData:
|
|
74
|
+
setClipboardData(options: SetClipboardDataOptions): void;
|
|
75
75
|
/**
|
|
76
76
|
* 获得系统剪贴板的内容
|
|
77
77
|
*
|
|
@@ -144,7 +144,7 @@ export interface Uni {
|
|
|
144
144
|
* }
|
|
145
145
|
* @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/device/clipboard/wx.getClipboardData.html
|
|
146
146
|
*/
|
|
147
|
-
getClipboardData:
|
|
147
|
+
getClipboardData(options: GetClipboardDataOptions): void;
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
export type SetClipboardData = (options: SetClipboardDataOptions) => void;
|
|
@@ -72,7 +72,7 @@ export interface Uni {
|
|
|
72
72
|
* }
|
|
73
73
|
* @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/InnerAudioContext.html
|
|
74
74
|
*/
|
|
75
|
-
createInnerAudioContext:
|
|
75
|
+
createInnerAudioContext(): InnerAudioContext;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
export type CreateInnerAudioContext = () => InnerAudioContext;
|
|
@@ -71,7 +71,7 @@ export interface Uni {
|
|
|
71
71
|
* }
|
|
72
72
|
* @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/wxml/IntersectionObserver.html
|
|
73
73
|
*/
|
|
74
|
-
createIntersectionObserver:
|
|
74
|
+
createIntersectionObserver(component: any, options: CreateIntersectionObserverOptions): IntersectionObserver;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
export type CreateIntersectionObserver = (component: any, options: CreateIntersectionObserverOptions) => IntersectionObserver;
|
|
@@ -133,5 +133,5 @@ export interface Uni {
|
|
|
133
133
|
* @uniVueVersion 2,3
|
|
134
134
|
* @return {WebviewContext} web-view组件上下文对象
|
|
135
135
|
*/
|
|
136
|
-
createWebviewContext :
|
|
136
|
+
createWebviewContext(webviewId : string.WebviewIdString, component ?: ComponentPublicInstance | null): WebviewContext | null;
|
|
137
137
|
}
|