@dcloudio/uni-app-x 0.7.45 → 0.7.47

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 (71) 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 +1 -1
  5. package/types/native/IUniNativeViewElement.d.ts +6 -0
  6. package/types/native/UniAnimation.d.ts +9 -4
  7. package/types/native/global.d.ts +2 -0
  8. package/types/native/index.d.ts +1 -0
  9. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/interface.d.ts +74 -427
  10. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +2 -2
  11. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +2 -2
  12. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +6 -6
  13. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +2 -2
  14. package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/interface.d.ts +18 -18
  15. package/types/uni/uts-plugin-api/lib/uni-chooseMedia/utssdk/interface.d.ts +8 -8
  16. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +4 -4
  17. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +1 -1
  18. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +2 -2
  19. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +1 -1
  20. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +1 -1
  21. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +2 -2
  22. package/types/uni/uts-plugin-api/lib/uni-document/utssdk/interface.d.ts +2 -2
  23. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +8 -8
  24. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +2 -2
  25. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +5 -5
  26. package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/interface.d.ts +1 -1
  27. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +1 -1
  28. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +14 -14
  29. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +246 -92
  30. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +20 -20
  31. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +2 -2
  32. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +2 -2
  33. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +20 -20
  34. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent-uni1/utssdk/interface.d.ts +14 -14
  35. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +5 -5
  36. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +1 -1
  37. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +11 -11
  38. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +13 -13
  39. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +91 -91
  40. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +7 -7
  41. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +2 -2
  42. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +1 -1
  43. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +1 -1
  44. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +2 -2
  45. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +4 -2
  46. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +2 -1
  47. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +114 -428
  48. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +9 -9
  49. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +41 -41
  50. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +8 -8
  51. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +253 -339
  52. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +1 -1
  53. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +3 -3
  54. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +18 -18
  55. package/types/uni/uts-plugin-api/lib/uni-previewImage/utssdk/interface.d.ts +5 -5
  56. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +49 -49
  57. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +2 -2
  58. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +30 -30
  59. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +1 -1
  60. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +1 -1
  61. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/interface.d.ts +8 -8
  62. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +10 -10
  63. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +9 -9
  64. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +21 -21
  65. package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/interface.d.ts +40 -12
  66. package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/interface.d.ts +2 -2
  67. package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/interface.d.ts +244 -244
  68. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +16 -16
  69. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +30 -30
  70. package/uts-plugin.d.ts +2 -0
  71. 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.47",
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
  /**
@@ -1835,7 +1835,7 @@ export interface UniElement {
1835
1835
  * },
1836
1836
  * "web": {
1837
1837
  * "uniVer": "x",
1838
- * "unixVer": "x"
1838
+ * "unixVer": ""
1839
1839
  * }
1840
1840
  * }
1841
1841
  */
@@ -55,6 +55,12 @@ 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]>
60
+ // 目前仅在 NativeViewElement 中存在
61
+ getHarmonyFrameNode(): FrameNode | null
62
+ // 目前仅在 NativeViewElement 中存在
63
+ getHarmonyBuilderNode<O extends Object>(): BuilderNode<[O]>
58
64
  }
59
65
 
60
66
  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'