@dcloudio/uni-app-x 0.7.58 → 0.7.60

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 (104) hide show
  1. package/package.json +6 -2
  2. package/types/app.d.ts +16 -8
  3. package/types/index.d.ts +1 -0
  4. package/types/native/CSSStyleDeclaration.d.ts +31 -6
  5. package/types/native/DOMRect.d.ts +60 -10
  6. package/types/native/IUniElement.d.ts +459 -2
  7. package/types/native/UniElement.d.ts +3 -2
  8. package/types/native/UniFormControl.d.ts +1 -1
  9. package/types/native/UniPage.d.ts +2 -2
  10. package/types/native/UniSwiperAnimationFinishEvent.d.ts +1 -0
  11. package/types/native/UniSwiperChangeEvent.d.ts +1 -0
  12. package/types/native/UniWebViewContentHeightChangeEvent.d.ts +31 -0
  13. package/types/native/UniWebViewElement.d.ts +3 -1
  14. package/types/native/WebViewStyles.d.ts +1 -1
  15. package/types/native/global.d.ts +10 -0
  16. package/types/native/index.d.ts +1 -0
  17. package/types/page.d.ts +134 -22
  18. package/types/uni/env/index.d.ts +5 -5
  19. package/types/uni/uni-camera-global.d.ts +4 -0
  20. package/types/uni/uni-camera.d.ts +10 -9
  21. package/types/uni/uts-plugin-api/global.d.ts +3 -0
  22. package/types/uni/uts-plugin-api/index.d.ts +3 -0
  23. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +3 -2
  24. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +3 -2
  25. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +9 -6
  26. package/types/uni/uts-plugin-api/lib/uni-barcode-scanning/utssdk/global.d.ts +8 -0
  27. package/types/uni/uts-plugin-api/lib/uni-barcode-scanning/utssdk/index.d.ts +4 -0
  28. package/types/uni/uts-plugin-api/lib/uni-barcode-scanning/utssdk/interface.d.ts +0 -0
  29. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +3 -2
  30. package/types/uni/uts-plugin-api/lib/uni-chooseMedia/utssdk/interface.d.ts +4 -4
  31. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/global.d.ts +4 -0
  32. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/index.d.ts +2 -0
  33. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +22 -10
  34. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +11 -11
  35. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +3 -2
  36. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +2 -2
  37. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +2 -2
  38. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/global.d.ts +2 -0
  39. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/index.d.ts +1 -0
  40. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +47 -1
  41. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +5 -3
  42. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +8 -8
  43. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +4 -1
  44. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +3 -0
  45. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +256 -236
  46. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +2 -2
  47. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +3 -3
  48. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +12 -11
  49. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +2 -2
  50. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +1 -1
  51. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +4 -4
  52. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +8 -8
  53. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +8 -6
  54. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +1 -1
  55. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +32 -5
  56. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +7 -16
  57. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +2 -2
  58. package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/interface.d.ts +1 -1
  59. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +4 -4
  60. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +263 -425
  61. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +27 -7
  62. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/global.d.ts +4 -0
  63. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/index.d.ts +2 -0
  64. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +296 -181
  65. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +259 -321
  66. package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/interface.d.ts +80 -696
  67. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +10 -8
  68. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/global.d.ts +8 -0
  69. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/index.d.ts +4 -0
  70. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +4235 -3525
  71. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +401 -344
  72. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/global.d.ts +4 -0
  73. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/index.d.ts +2 -0
  74. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +778 -290
  75. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +2 -2
  76. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +11 -11
  77. package/types/uni/uts-plugin-api/lib/uni-previewImage/utssdk/interface.d.ts +5 -5
  78. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +24 -24
  79. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +4 -4
  80. package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/global.d.ts +4 -0
  81. package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/index.d.ts +2 -0
  82. package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/interface.d.ts +2268 -1281
  83. package/types/uni/uts-plugin-api/lib/uni-requestMerchantTransfer/utssdk/interface.d.ts +3 -0
  84. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +10 -10
  85. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +2 -2
  86. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +4 -4
  87. package/types/uni/uts-plugin-api/lib/uni-share/utssdk/global.d.ts +36 -0
  88. package/types/uni/uts-plugin-api/lib/uni-share/utssdk/index.d.ts +17 -0
  89. package/types/uni/uts-plugin-api/lib/uni-share/utssdk/interface.d.ts +180 -0
  90. package/types/uni/uts-plugin-api/lib/uni-share-weixin/utssdk/global.d.ts +8 -0
  91. package/types/uni/uts-plugin-api/lib/uni-share-weixin/utssdk/index.d.ts +4 -0
  92. package/types/uni/uts-plugin-api/lib/uni-share-weixin/utssdk/interface.d.ts +1 -0
  93. package/types/uni/uts-plugin-api/lib/uni-sse/utssdk/interface.d.ts +2 -2
  94. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +20 -20
  95. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +18 -18
  96. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +135 -76
  97. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +5 -5
  98. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +26 -26
  99. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +14 -14
  100. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/global.d.ts +30 -0
  101. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/index.d.ts +15 -0
  102. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/interface.d.ts +350 -1
  103. package/types/uni-cloud/interface.d.ts +233 -0
  104. package/types/vite.d.ts +269 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-app-x",
3
- "version": "0.7.58",
3
+ "version": "0.7.60",
4
4
  "description": "uni-app x types",
5
5
  "typings": "index.d.ts",
6
6
  "main": "index.d.ts",
@@ -16,7 +16,11 @@
16
16
  "build:types:plugin": "npm run build:types:plugin:api && npm run build:types:plugin:component && npm run build:types:plugin:biz",
17
17
  "build:types:meta": "node ./scripts/build-meta.js",
18
18
  "build:types:native": "node ./scripts/build-native.js",
19
- "build:types": "npm run build:types:native && npm run build:types:plugin && npm run build:wx:api"
19
+ "build:types": "npm run build:types:native && npm run build:types:plugin && npm run build:wx:api",
20
+ "publish:patch": "npm version patch && npm publish",
21
+ "publish:minor": "npm version minor && npm publish",
22
+ "publish:major": "npm version major && npm publish",
23
+ "postpublish": "npx cnpm sync @dcloudio/uni-app-x"
20
24
  },
21
25
  "devDependencies": {
22
26
  "delete": "^1.1.0",
package/types/app.d.ts CHANGED
@@ -402,8 +402,8 @@ interface UniAppOptions<G extends GlobalData = GlobalData> {
402
402
  * 1. 如果开发者没有添加 `onPageNotFound` 监听,当跳转页面不存在时,将推入微信客户端原生的页面不存在提示页面。
403
403
  * 2. 如果 `onPageNotFound` 回调中又重定向到另一个不存在的页面,将推入微信客户端原生的页面不存在提示页面,并且不再回调 `onPageNotFound`。
404
404
  *
405
- * @tutorial https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
406
- * @tutorial_uni_app https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
405
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
406
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
407
407
  * @tutorial_uni_app https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
408
408
  * @uniPlatform {
409
409
  * "app": {
@@ -472,7 +472,8 @@ interface UniAppOptions<G extends GlobalData = GlobalData> {
472
472
  *
473
473
  * nvue 页面使用 `uni.postMessage` 发送消息时触发
474
474
  *
475
- * @tutorial https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
475
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
476
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
476
477
  * @tutorial_uni_app https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
477
478
  * @internal
478
479
  * @uniPlatform {
@@ -623,7 +624,7 @@ interface UniAppOptions<G extends GlobalData = GlobalData> {
623
624
  */
624
625
  onExit?(): void;
625
626
  /**
626
- * 最后一个页面按下Android back键,常用于自定义退出。app-uvue-android 3.9+
627
+ * 最后一个页面按下Android back键,常用于自定义退出。
627
628
  *
628
629
  * @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
629
630
  * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
@@ -639,7 +640,12 @@ interface UniAppOptions<G extends GlobalData = GlobalData> {
639
640
  * "osVer": "x",
640
641
  * "uniVer": "x",
641
642
  * "unixVer": "x"
642
- * }
643
+ * },
644
+ * "harmony": {
645
+ * "osVer": "5.0.0",
646
+ * "uniVer": "x",
647
+ * "unixVer": "4.71"
648
+ * }
643
649
  * },
644
650
  * "mp": {
645
651
  * "weixin": {
@@ -1067,7 +1073,9 @@ declare global {
1067
1073
  export interface AppCreateVueAppComponentDefault {}
1068
1074
  /**
1069
1075
  * `getApp()` 函数用于获取当前应用实例,可通过应用实例调用 App.uvue methods 中定义的方法, [详见](#appmethods)。
1070
- * @tutorial https://uniapp.dcloud.net.cn/tutorial/page.html#getapp
1076
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getapp
1077
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getapp
1078
+ * @tutorial_uni_app https://uniapp.dcloud.net.cn/tutorial/page.html#getapp
1071
1079
  * @uniPlatform {
1072
1080
  * "app": {
1073
1081
  * "android": {
@@ -1114,9 +1122,9 @@ declare global {
1114
1122
  /**
1115
1123
  * 首次启动时的Scheme。返回值与App.onLaunch的回调参数一致
1116
1124
  *
1117
- * @tutorial_uni_app https://uniapp.dcloud.net.cn/api/getLaunchOptionsSync.html
1118
- * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/get-launch-options-sync.html
1119
1125
  * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-launch-options-sync.html
1126
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/get-launch-options-sync.html
1127
+ * @tutorial_uni_app https://uniapp.dcloud.net.cn/api/getLaunchOptionsSync.html
1120
1128
  * @uniPlatform {
1121
1129
  * "app": {
1122
1130
  * "android": {
package/types/index.d.ts CHANGED
@@ -5,3 +5,4 @@
5
5
  /// <reference path='./app.d.ts' />
6
6
  /// <reference path='./page.d.ts' />
7
7
  /// <reference path='./process.d.ts' />
8
+ /// <reference path='./vite.d.ts' />
@@ -12,8 +12,13 @@
12
12
  * "osVer": "12.0",
13
13
  * "uniVer": "x",
14
14
  * "unixVer": "4.11"
15
- * }
16
- * }
15
+ * },
16
+ * "harmony": {
17
+ * "osVer": "5.0.0",
18
+ * "uniVer": "x",
19
+ * "unixVer": "4.61"
20
+ * }
21
+ * },
17
22
  * "web": {
18
23
  * "uniVer": "x",
19
24
  * "unixVer": "4.0"
@@ -37,7 +42,12 @@ export class CSSStyleDeclaration {
37
42
  * "osVer": "12.0",
38
43
  * "uniVer": "x",
39
44
  * "unixVer": "4.51"
40
- * }
45
+ * },
46
+ * "harmony": {
47
+ * "osVer": "5.0.0",
48
+ * "uniVer": "x",
49
+ * "unixVer": "4.61"
50
+ * }
41
51
  * },
42
52
  * "mp": {
43
53
  * "weixin": {
@@ -70,7 +80,12 @@ export class CSSStyleDeclaration {
70
80
  * "osVer": "12.0",
71
81
  * "uniVer": "x",
72
82
  * "unixVer": "4.11"
73
- * }
83
+ * },
84
+ * "harmony": {
85
+ * "osVer": "5.0.0",
86
+ * "uniVer": "x",
87
+ * "unixVer": "4.61"
88
+ * }
74
89
  * },
75
90
  * "mp": {
76
91
  * "weixin": {
@@ -101,7 +116,12 @@ export class CSSStyleDeclaration {
101
116
  * "osVer": "12.0",
102
117
  * "uniVer": "x",
103
118
  * "unixVer": "4.51"
104
- * }
119
+ * },
120
+ * "harmony": {
121
+ * "osVer": "5.0.0",
122
+ * "uniVer": "x",
123
+ * "unixVer": "4.61"
124
+ * }
105
125
  * },
106
126
  * "mp": {
107
127
  * "weixin": {
@@ -132,7 +152,12 @@ export class CSSStyleDeclaration {
132
152
  * "osVer": "12.0",
133
153
  * "uniVer": "x",
134
154
  * "unixVer": "4.51"
135
- * }
155
+ * },
156
+ * "harmony": {
157
+ * "osVer": "5.0.0",
158
+ * "uniVer": "x",
159
+ * "unixVer": "4.61"
160
+ * }
136
161
  * }
137
162
  * "web": {
138
163
  * "uniVer": "x",
@@ -12,7 +12,12 @@
12
12
  * "osVer": "12.0",
13
13
  * "uniVer": "x",
14
14
  * "unixVer": "4.11"
15
- * }
15
+ * },
16
+ * "harmony": {
17
+ * "osVer": "5.0.0",
18
+ * "uniVer": "x",
19
+ * "unixVer": "4.61"
20
+ * }
16
21
  * },
17
22
  * "mp": {
18
23
  * "weixin": {
@@ -81,7 +86,12 @@ export class DOMRect {
81
86
  * "osVer": "12.0",
82
87
  * "uniVer": "x",
83
88
  * "unixVer": "4.11"
84
- * }
89
+ * },
90
+ * "harmony": {
91
+ * "osVer": "5.0.0",
92
+ * "uniVer": "x",
93
+ * "unixVer": "4.61"
94
+ * }
85
95
  * },
86
96
  * "mp": {
87
97
  * "weixin": {
@@ -146,7 +156,12 @@ export class DOMRect {
146
156
  * "osVer": "12.0",
147
157
  * "uniVer": "x",
148
158
  * "unixVer": "4.11"
149
- * }
159
+ * },
160
+ * "harmony": {
161
+ * "osVer": "5.0.0",
162
+ * "uniVer": "x",
163
+ * "unixVer": "4.61"
164
+ * }
150
165
  * },
151
166
  * "mp": {
152
167
  * "weixin": {
@@ -211,7 +226,12 @@ export class DOMRect {
211
226
  * "osVer": "12.0",
212
227
  * "uniVer": "x",
213
228
  * "unixVer": "4.11"
214
- * }
229
+ * },
230
+ * "harmony": {
231
+ * "osVer": "5.0.0",
232
+ * "uniVer": "x",
233
+ * "unixVer": "4.61"
234
+ * }
215
235
  * },
216
236
  * "mp": {
217
237
  * "weixin": {
@@ -276,7 +296,12 @@ export class DOMRect {
276
296
  * "osVer": "12.0",
277
297
  * "uniVer": "x",
278
298
  * "unixVer": "4.11"
279
- * }
299
+ * },
300
+ * "harmony": {
301
+ * "osVer": "5.0.0",
302
+ * "uniVer": "x",
303
+ * "unixVer": "4.61"
304
+ * }
280
305
  * },
281
306
  * "mp": {
282
307
  * "weixin": {
@@ -341,7 +366,12 @@ export class DOMRect {
341
366
  * "osVer": "12.0",
342
367
  * "uniVer": "x",
343
368
  * "unixVer": "4.11"
344
- * }
369
+ * },
370
+ * "harmony": {
371
+ * "osVer": "5.0.0",
372
+ * "uniVer": "x",
373
+ * "unixVer": "4.61"
374
+ * }
345
375
  * },
346
376
  * "mp": {
347
377
  * "weixin": {
@@ -406,7 +436,12 @@ export class DOMRect {
406
436
  * "osVer": "12.0",
407
437
  * "uniVer": "x",
408
438
  * "unixVer": "4.11"
409
- * }
439
+ * },
440
+ * "harmony": {
441
+ * "osVer": "5.0.0",
442
+ * "uniVer": "x",
443
+ * "unixVer": "4.61"
444
+ * }
410
445
  * },
411
446
  * "mp": {
412
447
  * "weixin": {
@@ -471,7 +506,12 @@ export class DOMRect {
471
506
  * "osVer": "12.0",
472
507
  * "uniVer": "x",
473
508
  * "unixVer": "4.11"
474
- * }
509
+ * },
510
+ * "harmony": {
511
+ * "osVer": "5.0.0",
512
+ * "uniVer": "x",
513
+ * "unixVer": "4.61"
514
+ * }
475
515
  * },
476
516
  * "mp": {
477
517
  * "weixin": {
@@ -536,7 +576,12 @@ export class DOMRect {
536
576
  * "osVer": "12.0",
537
577
  * "uniVer": "x",
538
578
  * "unixVer": "4.11"
539
- * }
579
+ * },
580
+ * "harmony": {
581
+ * "osVer": "5.0.0",
582
+ * "uniVer": "x",
583
+ * "unixVer": "4.61"
584
+ * }
540
585
  * },
541
586
  * "mp": {
542
587
  * "weixin": {
@@ -601,7 +646,12 @@ export class DOMRect {
601
646
  * "osVer": "12.0",
602
647
  * "uniVer": "x",
603
648
  * "unixVer": "4.11"
604
- * }
649
+ * },
650
+ * "harmony": {
651
+ * "osVer": "5.0.0",
652
+ * "uniVer": "x",
653
+ * "unixVer": "4.61"
654
+ * }
605
655
  * },
606
656
  * "mp": {
607
657
  * "weixin": {