@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.
Files changed (37) 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/IUniNativeViewElement.d.ts +2 -0
  5. package/types/native/UniAnimation.d.ts +9 -4
  6. package/types/native/global.d.ts +2 -0
  7. package/types/native/index.d.ts +1 -0
  8. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +1 -1
  9. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +1 -1
  10. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +3 -3
  11. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +1 -1
  12. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +2 -2
  13. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +1 -1
  14. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +1 -1
  15. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +1 -1
  16. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +1 -1
  17. package/types/uni/uts-plugin-api/lib/uni-document/utssdk/interface.d.ts +1 -1
  18. package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/interface.d.ts +1 -1
  19. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +246 -92
  20. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +2 -2
  21. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +1 -1
  22. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +1 -1
  23. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +1 -1
  24. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +1 -1
  25. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +4 -2
  26. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +2 -1
  27. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +98 -412
  28. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +2 -2
  29. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +1 -1
  30. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +2 -2
  31. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +249 -335
  32. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +1 -1
  33. package/types/uni/uts-plugin-api/lib/uni-previewImage/utssdk/interface.d.ts +1 -1
  34. package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/interface.d.ts +40 -12
  35. package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/interface.d.ts +244 -244
  36. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +26 -26
  37. package/types/uni/uts-plugin-extend/README.md +0 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-app-x",
3
- "version": "0.7.45",
3
+ "version": "0.7.46",
4
4
  "description": "uni-app x types",
5
5
  "typings": "index.d.ts",
6
6
  "main": "index.d.ts",
@@ -2,27 +2,27 @@ import { UniSafeAreaInsets } from './native/UniSafeAreaInsets'
2
2
 
3
3
  export type UniPageBody = {
4
4
  /**
5
- * pageBody 距离顶部的距离
5
+ * 安全区域左上角纵坐标,单位为px
6
6
  */
7
7
  top: number,
8
8
  /**
9
- * pageBody 距离右侧的距离
10
- */
11
- right: number,
12
- /**
13
- * pageBody 距离底部的距离
9
+ * 安全区域右下角纵坐标,单位为px
14
10
  */
15
11
  bottom: number,
16
12
  /**
17
- * pageBody 距离左侧的距离
13
+ * 安全区域左上角横坐标,单位为px
18
14
  */
19
15
  left: number,
20
16
  /**
21
- * pageBody 的宽度
17
+ * 安全区域右下角横坐标,单位为px
18
+ */
19
+ right: number,
20
+ /**
21
+ * 安全区域的宽度,单位为px
22
22
  */
23
23
  width: number,
24
24
  /**
25
- * pageBody 的高度
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 : String
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 : String
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 : ((event : UniAnimationPlaybackEvent) => void) | null
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 : ((event : UniAnimationPlaybackEvent) => void) | null
326
+ onfinish : UniAnimationOnFinish | null
322
327
  /**
323
328
  * 终止并取消所有动画
324
329
  * @uniPlatform {
@@ -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
@@ -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: 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: 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: 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: 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: 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: 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: 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: 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: 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: CreateIntersectionObserver;
74
+ createIntersectionObserver(component: any, options: CreateIntersectionObserverOptions): IntersectionObserver;
75
75
  }
76
76
 
77
77
  export type CreateIntersectionObserver = (component: any, options: CreateIntersectionObserverOptions) => IntersectionObserver;
@@ -57,5 +57,5 @@ export interface Uni {
57
57
  * }
58
58
  * }
59
59
  */
60
- createRequestPermissionListener : CreateRequestPermissionListener
60
+ createRequestPermissionListener(): RequestPermissionListener
61
61
  }
@@ -133,5 +133,5 @@ export interface Uni {
133
133
  * @uniVueVersion 2,3
134
134
  * @return {WebviewContext} web-view组件上下文对象
135
135
  */
136
- createWebviewContext : CreateWebviewContext
136
+ createWebviewContext(webviewId : string.WebviewIdString, component ?: ComponentPublicInstance | null): WebviewContext | null;
137
137
  }
@@ -70,7 +70,7 @@ export interface Uni {
70
70
  * }
71
71
  * }
72
72
  */
73
- createElement: CreateElement;
73
+ createElement(tagName: string): UniElement;
74
74
  }
75
75
 
76
76
  export type CreateElement = (tagName: string) => UniElement;
@@ -11,7 +11,7 @@ export interface Uni {
11
11
  * "android": {
12
12
  * "osVer": "5.0",
13
13
  * "uniVer": "x",
14
- * "unixVer": "3.9+"
14
+ * "unixVer": "4.51"
15
15
  * },
16
16
  * "ios": {
17
17
  * "osVer": "x",