@dcloudio/uni-app-x 0.7.29 → 0.7.31

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 (46) hide show
  1. package/package.json +1 -1
  2. package/types/app.d.ts +139 -4
  3. package/types/native/IUniElement.d.ts +22 -0
  4. package/types/native/IUniNativeViewElement.d.ts +8 -8
  5. package/types/native/UniEvent.d.ts +7 -0
  6. package/types/native/UniNativePage.d.ts +0 -1
  7. package/types/native/UniRichTextItemClickEvent.d.ts +1 -5
  8. package/types/native/global.d.ts +3 -2
  9. package/types/page.d.ts +483 -11
  10. package/types/uni/uts-plugin-api/global.d.ts +1 -0
  11. package/types/uni/uts-plugin-api/index.d.ts +1 -0
  12. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +78 -3
  13. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +55 -59
  14. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +6 -7
  15. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +2 -2
  16. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +2 -2
  17. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +30 -0
  18. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +1 -1
  19. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +4 -4
  20. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +4 -4
  21. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +1 -1
  22. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +4 -2
  23. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +1 -1
  24. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +4 -4
  25. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +30 -7
  26. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/global.d.ts +18 -0
  27. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/index.d.ts +9 -0
  28. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +136 -0
  29. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +2 -2
  30. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +80 -26
  31. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/global.d.ts +30 -0
  32. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/index.d.ts +14 -0
  33. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +273 -0
  34. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +1 -1
  35. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/interface.d.ts +1 -1
  36. package/types/uni/uts-plugin-biz/global.d.ts +1 -0
  37. package/types/uni/uts-plugin-biz/index.d.ts +1 -0
  38. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +198 -0
  39. package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/interface.d.ts +83 -31
  40. package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/global.d.ts +60 -0
  41. package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/index.d.ts +29 -0
  42. package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/interface.d.ts +454 -0
  43. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +7 -7
  44. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/interface.d.ts +2 -2
  45. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +12 -12
  46. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/interface.d.ts +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-app-x",
3
- "version": "0.7.29",
3
+ "version": "0.7.31",
4
4
  "description": "uni-app x types",
5
5
  "typings": "index.d.ts",
6
6
  "author": "DCloud",
package/types/app.d.ts CHANGED
@@ -1002,11 +1002,146 @@ declare module '@vue/runtime-core' {
1002
1002
  }
1003
1003
 
1004
1004
  export interface UniApp {
1005
+ /**
1006
+ * App vue 实例对象
1007
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
1008
+ * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
1009
+ * @uniPlatform {
1010
+ * "app": {
1011
+ * "android": {
1012
+ * "osVer": "5.0",
1013
+ * "uniVer": "x",
1014
+ * "unixVer": "4.28"
1015
+ * },
1016
+ * "ios": {
1017
+ * "osVer": "x",
1018
+ * "uniVer": "x",
1019
+ * "unixVer": "4.28"
1020
+ * },
1021
+ * "harmony": {
1022
+ * "osVer": "x",
1023
+ * "uniVer": "x",
1024
+ * "unixVer": "x"
1025
+ * }
1026
+ * },
1027
+ * "mp": {
1028
+ * "weixin": {
1029
+ * "hostVer": "√",
1030
+ * "uniVer": "x",
1031
+ * "unixVer": "x"
1032
+ * },
1033
+ * },
1034
+ * "web": {
1035
+ * "uniVer": "x",
1036
+ * "unixVer": "4.28"
1037
+ * }
1038
+ * }
1039
+ */
1005
1040
  $vm: ComponentPublicInstance,
1041
+ /**
1042
+ * App vue 实例对象
1043
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
1044
+ * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
1045
+ * @uniPlatform {
1046
+ * "app": {
1047
+ * "android": {
1048
+ * "osVer": "5.0",
1049
+ * "uniVer": "x",
1050
+ * "unixVer": "4.28"
1051
+ * },
1052
+ * "ios": {
1053
+ * "osVer": "x",
1054
+ * "uniVer": "x",
1055
+ * "unixVer": "4.28"
1056
+ * },
1057
+ * "harmony": {
1058
+ * "osVer": "x",
1059
+ * "uniVer": "x",
1060
+ * "unixVer": "x"
1061
+ * }
1062
+ * },
1063
+ * "mp": {
1064
+ * "weixin": {
1065
+ * "hostVer": "√",
1066
+ * "uniVer": "x",
1067
+ * "unixVer": "x"
1068
+ * },
1069
+ * },
1070
+ * "web": {
1071
+ * "uniVer": "x",
1072
+ * "unixVer": "4.28"
1073
+ * }
1074
+ * }
1075
+ */
1006
1076
  vm: ComponentPublicInstance,
1077
+ /**
1078
+ * 全局对象
1079
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
1080
+ * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
1081
+ * @uniPlatform {
1082
+ * "app": {
1083
+ * "android": {
1084
+ * "osVer": "5.0",
1085
+ * "uniVer": "x",
1086
+ * "unixVer": "4.28"
1087
+ * },
1088
+ * "ios": {
1089
+ * "osVer": "x",
1090
+ * "uniVer": "x",
1091
+ * "unixVer": "4.28"
1092
+ * },
1093
+ * "harmony": {
1094
+ * "osVer": "x",
1095
+ * "uniVer": "x",
1096
+ * "unixVer": "x"
1097
+ * }
1098
+ * },
1099
+ * "mp": {
1100
+ * "weixin": {
1101
+ * "hostVer": "√",
1102
+ * "uniVer": "x",
1103
+ * "unixVer": "x"
1104
+ * },
1105
+ * },
1106
+ * "web": {
1107
+ * "uniVer": "x",
1108
+ * "unixVer": "4.28"
1109
+ * }
1110
+ * }
1111
+ */
1007
1112
  globalData: GlobalData,
1008
- on(eventName: string, callback: Function): void
1009
- once(eventName: string, callback: Function): void
1010
- off(eventName: string, callback?: Function | null): void
1011
- emit(eventName: string, args: any | null): void
1113
+ /**
1114
+ * 获取 Android 应用 Application 上下文
1115
+ * @uniPlatform {
1116
+ * "app": {
1117
+ * "android": {
1118
+ * "osVer": "5.0",
1119
+ * "uniVer": "x",
1120
+ * "unixVer": "4.28"
1121
+ * },
1122
+ * "ios": {
1123
+ * "osVer": "x",
1124
+ * "uniVer": "x",
1125
+ * "unixVer": "x"
1126
+ * },
1127
+ * "harmony": {
1128
+ * "osVer": "x",
1129
+ * "uniVer": "x",
1130
+ * "unixVer": "x"
1131
+ * }
1132
+ * },
1133
+ * "mp": {
1134
+ * "weixin": {
1135
+ * "hostVer": "√",
1136
+ * "uniVer": "x",
1137
+ * "unixVer": "x"
1138
+ * },
1139
+ * },
1140
+ * "web": {
1141
+ * "uniVer": "x",
1142
+ * "unixVer": "x"
1143
+ * }
1144
+ * }
1145
+ */
1146
+ getAndroidApplication(): Application
1012
1147
  }
@@ -1353,6 +1353,28 @@ export interface UniElement {
1353
1353
  * }
1354
1354
  */
1355
1355
  getAndroidActivity(): Activity | null
1356
+ /**
1357
+ * 获取元素所属的页面对象
1358
+ * @uniPlatform {
1359
+ * "app": {
1360
+ * "android": {
1361
+ * "osVer": "5.0",
1362
+ * "uniVer": "x",
1363
+ * "unixVer": "4.28"
1364
+ * },
1365
+ * "ios": {
1366
+ * "osVer": "12.0",
1367
+ * "uniVer": "x",
1368
+ * "unixVer": "4.28"
1369
+ * }
1370
+ * }
1371
+ * "web": {
1372
+ * "uniVer": "x",
1373
+ * "unixVer": "4.28"
1374
+ * }
1375
+ * }
1376
+ */
1377
+ getPage(): UniPage | null
1356
1378
  }
1357
1379
 
1358
1380
  export type INode = UniElement
@@ -8,12 +8,12 @@ import { UniCustomEvent } from "./UniCustomEvent"
8
8
  * "android": {
9
9
  * "osVer": "5.0",
10
10
  * "uniVer": "x",
11
- * "unixVer": "4.26"
11
+ * "unixVer": "4.31"
12
12
  * },
13
13
  * "ios": {
14
14
  * "osVer": "12.0",
15
15
  * "uniVer": "x",
16
- * "unixVer": "4.26"
16
+ * "unixVer": "4.31"
17
17
  * }
18
18
  * }
19
19
  * }
@@ -26,7 +26,7 @@ export interface UniNativeViewElement extends UniElement {
26
26
  * "android": {
27
27
  * "osVer": "5.0",
28
28
  * "uniVer": "x",
29
- * "unixVer": "4.26"
29
+ * "unixVer": "4.31"
30
30
  * },
31
31
  * "ios": {
32
32
  * "osVer": "12.0",
@@ -49,7 +49,7 @@ export interface UniNativeViewElement extends UniElement {
49
49
  * "ios": {
50
50
  * "osVer": "12.0",
51
51
  * "uniVer": "x",
52
- * "unixVer": "4.26"
52
+ * "unixVer": "4.31"
53
53
  * }
54
54
  * }
55
55
  * }
@@ -70,12 +70,12 @@ export let UniNativeViewElement: {
70
70
  * "android": {
71
71
  * "osVer": "5.0",
72
72
  * "uniVer": "x",
73
- * "unixVer": "4.26"
73
+ * "unixVer": "4.31"
74
74
  * },
75
75
  * "ios": {
76
76
  * "osVer": "12.0",
77
77
  * "uniVer": "x",
78
- * "unixVer": "4.26"
78
+ * "unixVer": "4.31"
79
79
  * }
80
80
  * }
81
81
  * }
@@ -106,12 +106,12 @@ export class UniNativeViewInitEventDetail {
106
106
  * "android": {
107
107
  * "osVer": "5.0",
108
108
  * "uniVer": "x",
109
- * "unixVer": "4.26"
109
+ * "unixVer": "4.31"
110
110
  * },
111
111
  * "ios": {
112
112
  * "osVer": "12.0",
113
113
  * "uniVer": "x",
114
- * "unixVer": "4.26"
114
+ * "unixVer": "4.31"
115
115
  * }
116
116
  * }
117
117
  * }
@@ -90,3 +90,10 @@ export class UniThemeChangeEvent extends UniAppEvent {
90
90
  */
91
91
  readonly theme: string
92
92
  }
93
+
94
+ export class UniAppErrorEvent extends UniAppEvent {
95
+ /**
96
+ * 错误日志堆栈
97
+ */
98
+ readonly error: string
99
+ }
@@ -266,5 +266,4 @@ export interface UniNativePage {
266
266
  */
267
267
  setPageStyle(style: UTSJSONObject): void
268
268
  }
269
- export type UniPage = UniNativePage
270
269
  export type IPage = UniNativePage
@@ -4,10 +4,6 @@ import { UniEvent } from "./UniEvent"
4
4
  * @package io.dcloud.uniapp.runtime
5
5
  */
6
6
  export class UniRichTextItemClickEventDetail {
7
- /**
8
- * 自定义数据
9
- */
10
- ref: string | null
11
7
  /**
12
8
  * <img/>图片链接
13
9
  */
@@ -20,7 +16,7 @@ export class UniRichTextItemClickEventDetail {
20
16
  /**
21
17
  * @internal
22
18
  */
23
- constructor(ref: string | null, src: string | null, href: string | null)
19
+ constructor(src: string | null, href: string | null)
24
20
  }
25
21
 
26
22
  /**
@@ -101,7 +101,6 @@ import {
101
101
  UniNestedPreScrollEvent as UniNestedPreScrollEventOrigin,
102
102
  NestedPreScrollEvent as NestedPreScrollEventOrigin,
103
103
  UniNativePage as UniNativePageOrigin,
104
- UniPage as UniPageOrigin,
105
104
  IPage as IPageOrigin,
106
105
  UniNativeApp as UniNativeAppOrigin,
107
106
  IApp as IAppOrigin,
@@ -140,6 +139,7 @@ import {
140
139
  KeyEvent as KeyEventOrigin,
141
140
  UniAppEvent as UniAppEventOrigin,
142
141
  UniThemeChangeEvent as UniThemeChangeEventOrigin,
142
+ UniAppErrorEvent as UniAppErrorEventOrigin,
143
143
  UniError as UniErrorOrigin,
144
144
  UniElementImpl as UniElementImplOrigin,
145
145
  UniViewElementImpl as UniViewElementImplOrigin,
@@ -414,7 +414,6 @@ declare global {
414
414
  const NestedPreScrollEvent: typeof NestedPreScrollEventOrigin
415
415
  type NestedPreScrollEvent = NestedPreScrollEventOrigin
416
416
  type UniNativePage = UniNativePageOrigin
417
- type UniPage = UniPageOrigin
418
417
  type IPage = IPageOrigin
419
418
  type UniNativeApp = UniNativeAppOrigin
420
419
  type IApp = IAppOrigin
@@ -486,6 +485,8 @@ declare global {
486
485
  type UniAppEvent = UniAppEventOrigin
487
486
  const UniThemeChangeEvent: typeof UniThemeChangeEventOrigin
488
487
  type UniThemeChangeEvent = UniThemeChangeEventOrigin
488
+ const UniAppErrorEvent: typeof UniAppErrorEventOrigin
489
+ type UniAppErrorEvent = UniAppErrorEventOrigin
489
490
  type Event = EventOrigin
490
491
  type KeyEvent = KeyEventOrigin
491
492
  const UniError: typeof UniErrorOrigin