@dcloudio/uni-app-x 0.7.14 → 0.7.16

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 (175) hide show
  1. package/options.d.ts +1 -1
  2. package/package.json +1 -1
  3. package/types/native/CSSStyleDeclaration.d.ts +0 -72
  4. package/types/native/CanvasRenderingContext2D.d.ts +1943 -0
  5. package/types/native/DOMRect.d.ts +0 -180
  6. package/types/native/DrawableContext.d.ts +161 -628
  7. package/types/native/IUniElement.d.ts +513 -1868
  8. package/types/native/IUniObjectElement.d.ts +124 -0
  9. package/types/native/Path2D.d.ts +241 -0
  10. package/types/native/SnapshotOptions.d.ts +1 -0
  11. package/types/native/UniApp.d.ts +110 -0
  12. package/types/native/UniCanvasElement.d.ts +9 -0
  13. package/types/native/UniNativePage.d.ts +48 -1
  14. package/types/native/UniPageManager.d.ts +4 -1
  15. package/types/native/UniProvider.d.ts +1 -0
  16. package/types/native/UniResizeObserver.d.ts +9 -99
  17. package/types/native/UniScrollEvent.d.ts +1 -1
  18. package/types/native/UniSwiperAnimationFinishEvent.d.ts +1 -1
  19. package/types/native/UniSwiperChangeEvent.d.ts +1 -1
  20. package/types/native/UniVideoElement.d.ts +5 -0
  21. package/types/native/global.d.ts +73 -15
  22. package/types/native/index.d.ts +4 -0
  23. package/types/shim-uts-basic.d.ts +4495 -0
  24. package/types/uni/env/index.d.ts +39 -0
  25. package/types/uni/uts-plugin-api/global.d.ts +20 -1
  26. package/types/uni/uts-plugin-api/index.d.ts +20 -1
  27. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/global.d.ts +26 -0
  28. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/index.d.ts +12 -0
  29. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +231 -0
  30. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/global.d.ts +10 -0
  31. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/index.d.ts +4 -0
  32. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +77 -0
  33. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/global.d.ts +10 -0
  34. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/index.d.ts +4 -0
  35. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +77 -0
  36. package/types/uni/uts-plugin-api/lib/uni-cancelAnimationFrame/utssdk/global.d.ts +10 -0
  37. package/types/uni/uts-plugin-api/lib/uni-cancelAnimationFrame/utssdk/index.d.ts +4 -0
  38. package/types/uni/uts-plugin-api/lib/uni-cancelAnimationFrame/utssdk/interface.d.ts +24 -0
  39. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/global.d.ts +20 -0
  40. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/index.d.ts +9 -0
  41. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +268 -0
  42. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/global.d.ts +40 -0
  43. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/index.d.ts +19 -0
  44. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +203 -0
  45. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/global.d.ts +20 -0
  46. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/index.d.ts +9 -0
  47. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +152 -0
  48. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +20 -3
  49. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +24 -9
  50. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +13 -6
  51. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/global.d.ts +28 -0
  52. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/index.d.ts +13 -0
  53. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +1335 -0
  54. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +28 -0
  55. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +6 -1
  56. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/global.d.ts +80 -0
  57. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/index.d.ts +39 -0
  58. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +174 -0
  59. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +8 -1
  60. package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/interface.d.ts +20 -17
  61. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +28 -20
  62. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +201 -64
  63. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +180 -59
  64. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +10 -2
  65. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/global.d.ts +12 -0
  66. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/index.d.ts +5 -0
  67. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +47 -0
  68. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +10 -1
  69. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/global.d.ts +24 -0
  70. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/index.d.ts +11 -0
  71. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +564 -0
  72. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/global.d.ts +2 -14
  73. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/index.d.ts +1 -6
  74. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/interface.d.ts +1 -151
  75. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/global.d.ts +8 -0
  76. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/index.d.ts +4 -0
  77. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/interface.d.ts +1 -0
  78. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/global.d.ts +8 -0
  79. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/index.d.ts +4 -0
  80. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +114 -34
  81. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +7 -1
  82. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/global.d.ts +8 -0
  83. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/index.d.ts +4 -0
  84. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +304 -27
  85. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +500 -149
  86. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +123 -112
  87. package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/interface.d.ts +9 -6
  88. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +18 -2
  89. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/global.d.ts +22 -0
  90. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/index.d.ts +10 -0
  91. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +60 -0
  92. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +8 -1
  93. package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-makePhoneCall/utssdk/global.d.ts +9 -6
  94. package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-makePhoneCall/utssdk/index.d.ts +4 -2
  95. package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-makePhoneCall/utssdk/interface.d.ts +40 -61
  96. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +2 -0
  97. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +1 -0
  98. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +327 -58
  99. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/global.d.ts +24 -0
  100. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/index.d.ts +12 -0
  101. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +213 -5
  102. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +280 -92
  103. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +20 -15
  104. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/global.d.ts +24 -0
  105. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/index.d.ts +11 -0
  106. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +70 -0
  107. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/global.d.ts +2 -0
  108. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/index.d.ts +1 -0
  109. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +16 -6
  110. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +161 -11
  111. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/global.d.ts +8 -0
  112. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/index.d.ts +4 -0
  113. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/interface.d.ts +1 -0
  114. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/global.d.ts +8 -0
  115. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/index.d.ts +4 -0
  116. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/interface.d.ts +3 -0
  117. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +120 -42
  118. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/global.d.ts +2 -0
  119. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/index.d.ts +1 -0
  120. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +16 -1
  121. package/types/uni/uts-plugin-api/lib/uni-requestAnimationFrame/utssdk/global.d.ts +12 -0
  122. package/types/uni/uts-plugin-api/lib/uni-requestAnimationFrame/utssdk/index.d.ts +5 -0
  123. package/types/uni/uts-plugin-api/lib/uni-requestAnimationFrame/utssdk/interface.d.ts +28 -0
  124. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +177 -32
  125. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +7 -2
  126. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/global.d.ts +24 -0
  127. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/index.d.ts +11 -0
  128. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +73 -0
  129. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +112 -43
  130. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/global.d.ts +16 -0
  131. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/index.d.ts +8 -0
  132. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +78 -1
  133. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +199 -149
  134. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/global.d.ts +112 -0
  135. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/index.d.ts +55 -0
  136. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +1068 -0
  137. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +170 -83
  138. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +11 -7
  139. package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/interface.d.ts +33 -15
  140. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/global.d.ts +4 -0
  141. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/index.d.ts +2 -0
  142. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +777 -568
  143. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +10 -6
  144. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +132 -15
  145. package/types/uni/uts-plugin-extend/global.d.ts +1 -1
  146. package/types/uni/uts-plugin-extend/index.d.ts +1 -3
  147. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +4 -4
  148. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/interface.d.ts +1 -0
  149. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/global.d.ts +13 -0
  150. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/index.d.ts +5 -0
  151. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/interface.d.ts +126 -0
  152. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +3 -3
  153. package/types/uni-cloud/interface.d.ts +57 -3
  154. package/types/uni-cloud/unicloud-db/index.ts +3 -3
  155. package/types/vue/CheckboxGroupChangeEvent.d.ts +9 -1
  156. package/types/vue/PickerViewChangeEvent.d.ts +8 -0
  157. package/types/vue/ProgressActiveendEvent.d.ts +4 -0
  158. package/types/vue/RadioGroupChangeEvent.d.ts +9 -1
  159. package/types/vue/SliderChangeEvent.d.ts +4 -0
  160. package/types/vue/SwitchChangeEvent.d.ts +5 -1
  161. package/types/vue/UniCanvasElement.d.ts +6 -1
  162. package/types/vue/UniCloudDBElement.d.ts +5 -0
  163. package/types/vue/UniFormElement.d.ts +6 -1
  164. package/types/vue/UniNavigatorElement.d.ts +5 -0
  165. package/types/vue/global.d.ts +10 -9
  166. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/global.d.ts +0 -78
  167. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/index.d.ts +0 -38
  168. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/interface.d.ts +0 -642
  169. package/types/uni/uts-plugin-extend/lib/uni-getClipboardData/utssdk/global.d.ts +0 -21
  170. package/types/uni/uts-plugin-extend/lib/uni-getClipboardData/utssdk/index.d.ts +0 -9
  171. package/types/uni/uts-plugin-extend/lib/uni-getClipboardData/utssdk/interface.d.ts +0 -119
  172. package/types/uni/uts-plugin-extend/lib/uni-setClipboardData/utssdk/global.d.ts +0 -21
  173. package/types/uni/uts-plugin-extend/lib/uni-setClipboardData/utssdk/index.d.ts +0 -9
  174. package/types/uni/uts-plugin-extend/lib/uni-setClipboardData/utssdk/interface.d.ts +0 -122
  175. package/types/uni-cloud/unicloud-db/index.d.ts +0 -81
@@ -19,7 +19,7 @@ import { DOMRect } from "./DOMRect";
19
19
  * }
20
20
  * "web": {
21
21
  * "uniVer": "x",
22
- * "unixVer": "4.17"
22
+ * "unixVer": "4.16"
23
23
  * }
24
24
  * }
25
25
  */
@@ -27,116 +27,26 @@ export class UniResizeObserver {
27
27
  /**
28
28
  * UniResizeObserver 构造函数
29
29
  * @param callback 每当监视的元素调整大小时,回调该函数
30
- * @uniPlatform {
31
- * "app": {
32
- * "android": {
33
- * "osVer": "5.0",
34
- * "uniVer": "x",
35
- * "unixVer": "4.13"
36
- * },
37
- * "ios": {
38
- * "osVer": "12.0",
39
- * "uniVer": "x",
40
- * "unixVer": "4.18"
41
- * }
42
- * }
43
- * "web": {
44
- * "uniVer": "x",
45
- * "unixVer": "4.17"
46
- * }
47
- * }
48
30
  */
49
31
  constructor(callback: (entries:Array<UniResizeObserverEntry>)=> void)
50
32
  /**
51
33
  * UniResizeObserver 构造函数
52
34
  * @param callback 每当监视的元素调整大小时,回调该函数
53
35
  * @param observer UniResizeObserver 自身的引用
54
- * @uniPlatform {
55
- * "app": {
56
- * "android": {
57
- * "osVer": "5.0",
58
- * "uniVer": "x",
59
- * "unixVer": "4.13"
60
- * },
61
- * "ios": {
62
- * "osVer": "12.0",
63
- * "uniVer": "x",
64
- * "unixVer": "4.18"
65
- * }
66
- * }
67
- * "web": {
68
- * "uniVer": "x",
69
- * "unixVer": "4.17"
70
- * }
71
- * }
72
36
  */
73
37
  constructor(callback: (entries:Array<UniResizeObserverEntry>, observer: UniResizeObserver)=> void)
74
38
  /**
75
39
  * 取消所有的对 UniElement 目标的监视
76
- * @uniPlatform {
77
- * "app": {
78
- * "android": {
79
- * "osVer": "5.0",
80
- * "uniVer": "x",
81
- * "unixVer": "4.13"
82
- * },
83
- * "ios": {
84
- * "osVer": "12.0",
85
- * "uniVer": "x",
86
- * "unixVer": "4.18"
87
- * }
88
- * }
89
- * "web": {
90
- * "uniVer": "x",
91
- * "unixVer": "4.17"
92
- * }
93
- * }
94
40
  */
95
41
  disconnect(): void
96
42
  /**
97
43
  * 监视指定 UniElement 大小变化
98
44
  * @param target 被监视的 UniElement
99
- * @uniPlatform {
100
- * "app": {
101
- * "android": {
102
- * "osVer": "5.0",
103
- * "uniVer": "x",
104
- * "unixVer": "4.13"
105
- * },
106
- * "ios": {
107
- * "osVer": "12.0",
108
- * "uniVer": "x",
109
- * "unixVer": "4.18"
110
- * }
111
- * }
112
- * "web": {
113
- * "uniVer": "x",
114
- * "unixVer": "4.17"
115
- * }
116
- * }
117
45
  */
118
46
  observe(target: UniElement): void
119
47
  /**
120
48
  * 结束对指定的 UniElement 的监视
121
49
  * @param target 取消监视的 UniElement
122
- * @uniPlatform {
123
- * "app": {
124
- * "android": {
125
- * "osVer": "5.0",
126
- * "uniVer": "x",
127
- * "unixVer": "4.13"
128
- * },
129
- * "ios": {
130
- * "osVer": "12.0",
131
- * "uniVer": "x",
132
- * "unixVer": "4.18"
133
- * }
134
- * }
135
- * "web": {
136
- * "uniVer": "x",
137
- * "unixVer": "4.17"
138
- * }
139
- * }
140
50
  */
141
51
  unobserve(target: UniElement): void
142
52
  }
@@ -154,12 +64,12 @@ export class UniResizeObserver {
154
64
  * "ios": {
155
65
  * "osVer": "12.0",
156
66
  * "uniVer": "x",
157
- * "unixVer": "x"
67
+ * "unixVer": "4.18"
158
68
  * }
159
69
  * }
160
70
  * "web": {
161
71
  * "uniVer": "x",
162
- * "unixVer": "x"
72
+ * "unixVer": "4.16"
163
73
  * }
164
74
  * }
165
75
  */
@@ -199,12 +109,12 @@ export interface UniResizeObserverEntry {
199
109
  * "ios": {
200
110
  * "osVer": "12.0",
201
111
  * "uniVer": "x",
202
- * "unixVer": "x"
112
+ * "unixVer": "4.18"
203
113
  * }
204
114
  * }
205
115
  * "web": {
206
116
  * "uniVer": "x",
207
- * "unixVer": "x"
117
+ * "unixVer": "4.16"
208
118
  * }
209
119
  * }
210
120
  */
@@ -228,12 +138,12 @@ export interface UniBorderBoxSize {
228
138
  * "ios": {
229
139
  * "osVer": "12.0",
230
140
  * "uniVer": "x",
231
- * "unixVer": "x"
141
+ * "unixVer": "4.18"
232
142
  * }
233
143
  * }
234
144
  * "web": {
235
145
  * "uniVer": "x",
236
- * "unixVer": "x"
146
+ * "unixVer": "4.16"
237
147
  * }
238
148
  * }
239
149
  */
@@ -257,12 +167,12 @@ export interface UniContentBoxSize {
257
167
  * "ios": {
258
168
  * "osVer": "12.0",
259
169
  * "uniVer": "x",
260
- * "unixVer": "x"
170
+ * "unixVer": "4.18"
261
171
  * }
262
172
  * }
263
173
  * "web": {
264
174
  * "uniVer": "x",
265
- * "unixVer": "x"
175
+ * "unixVer": "4.16"
266
176
  * }
267
177
  * }
268
178
  */
@@ -3,7 +3,7 @@ import { UniEvent } from "./UniEvent"
3
3
  /**
4
4
  * @package io.dcloud.uniapp.runtime
5
5
  */
6
- declare class UniScrollEventDetail {
6
+ export class UniScrollEventDetail {
7
7
  /**
8
8
  * 竖向滚动的距离
9
9
  */
@@ -26,7 +26,7 @@ export class UniSwiperAnimationFinishEventDetail {
26
26
  * }
27
27
  * }
28
28
  */
29
- currentItemId: string
29
+ currentItemId?: string
30
30
  /**
31
31
  * autoplay 自动播放导致swiper变化;touch 用户划动引起swiper变化
32
32
  */
@@ -26,7 +26,7 @@ export class UniSwiperChangeEventDetail {
26
26
  * }
27
27
  * }
28
28
  */
29
- currentItemId: string
29
+ currentItemId?: string
30
30
  /**
31
31
  * autoplay 自动播放导致swiper变化;touch 用户划动引起swiper变化
32
32
  */
@@ -44,6 +44,11 @@ export interface UniVideoElement extends UniElement {
44
44
  exitFullScreen(): void
45
45
  }
46
46
 
47
+ export let UniVideoElement: {
48
+ prototype: UniVideoElement
49
+ new(): UniVideoElement
50
+ }
51
+
47
52
  export type Danmu = {
48
53
  /**
49
54
  * 弹幕文字
@@ -70,6 +70,7 @@ import {
70
70
  UniScrollToLowerEventDetail as UniScrollToLowerEventDetailOrigin,
71
71
  UniScrollToLowerEvent as UniScrollToLowerEventOrigin,
72
72
  ScrollToLowerEvent as ScrollToLowerEventOrigin,
73
+ UniScrollEventDetail as UniScrollEventDetailOrigin,
73
74
  UniScrollEvent as UniScrollEventOrigin,
74
75
  ScrollEvent as ScrollEventOrigin,
75
76
  UniRichTextItemClickEventDetail as UniRichTextItemClickEventDetailOrigin,
@@ -146,6 +147,7 @@ import {
146
147
  UniCustomEvent as UniCustomEventOrigin,
147
148
  CustomEventOptions as CustomEventOptionsOrigin,
148
149
  CustomEvent as CustomEventOrigin,
150
+ UniCanvasElementImpl as UniCanvasElementImplOrigin,
149
151
  UniCallbackWrapper as UniCallbackWrapperOrigin,
150
152
  UniApp as UniAppOrigin,
151
153
  IApp as IAppOrigin,
@@ -158,42 +160,54 @@ import {
158
160
  TakeSnapshotSuccessCallback as TakeSnapshotSuccessCallbackOrigin,
159
161
  TakeSnapshotFailCallback as TakeSnapshotFailCallbackOrigin,
160
162
  TakeSnapshotCompleteCallback as TakeSnapshotCompleteCallbackOrigin,
163
+ Path2D as Path2DOrigin,
161
164
  PageNode as PageNodeOrigin,
162
165
  NodeData as NodeDataOrigin,
163
166
  INodeData as INodeDataOrigin,
164
167
  NativeLoadFontFaceFail as NativeLoadFontFaceFailOrigin,
165
168
  NativeLoadFontFaceOptions as NativeLoadFontFaceOptionsOrigin,
169
+ UniObjectElement as UniObjectElementOrigin,
170
+ UniObjectCustomEvent as UniObjectCustomEventOrigin,
171
+ UniObjectInitEventDetail as UniObjectInitEventDetailOrigin,
172
+ UniObjectInitEvent as UniObjectInitEventOrigin,
166
173
  IUniForm as IUniFormOrigin,
167
174
  IUniError as IUniErrorOrigin,
168
175
  UniElement as UniElementOrigin,
169
- INode as INodeOrigin,
170
- Element as ElementOrigin,
171
- UniViewElement as UniViewElementOrigin,
172
- UniScrollViewElement as UniScrollViewElementOrigin,
173
- UniListViewElement as UniListViewElementOrigin,
174
- UniListItemElement as UniListItemElementOrigin,
175
- UniSwiperElement as UniSwiperElementOrigin,
176
- UniSwiperItemElement as UniSwiperItemElementOrigin,
176
+ UniButtonElement as UniButtonElementOrigin,
177
+ UniCanvasElement as UniCanvasElementOrigin,
178
+ UniCommentElement as UniCommentElementOrigin,
177
179
  UniImageElement as UniImageElementOrigin,
180
+ Image as ImageOrigin,
178
181
  UniInputElement as UniInputElementOrigin,
179
- UniTextareaElement as UniTextareaElementOrigin,
182
+ UniListItemElement as UniListItemElementOrigin,
183
+ UniListViewElement as UniListViewElementOrigin,
184
+ UniNestedScrollBodyElement as UniNestedScrollBodyElementOrigin,
185
+ UniNestedScrollHeaderElement as UniNestedScrollHeaderElementOrigin,
180
186
  UniRichTextElement as UniRichTextElementOrigin,
187
+ UniScrollViewElement as UniScrollViewElementOrigin,
181
188
  UniStickyHeaderElement as UniStickyHeaderElementOrigin,
182
189
  UniStickySectionElement as UniStickySectionElementOrigin,
190
+ UniSwiperElement as UniSwiperElementOrigin,
191
+ UniSwiperItemElement as UniSwiperItemElementOrigin,
183
192
  UniTabsElement as UniTabsElementOrigin,
184
- ITabsNode as ITabsNodeOrigin,
185
193
  UniTextElement as UniTextElementOrigin,
186
- TextElement as TextElementOrigin,
194
+ UniTextareaElement as UniTextareaElementOrigin,
195
+ UniViewElement as UniViewElementOrigin,
187
196
  UniWebViewElement as UniWebViewElementOrigin,
197
+ INode as INodeOrigin,
198
+ Element as ElementOrigin,
199
+ ITabsNode as ITabsNodeOrigin,
200
+ TextElement as TextElementOrigin,
188
201
  IWebViewNode as IWebViewNodeOrigin,
189
- UniCommentElement as UniCommentElementOrigin,
190
202
  IComment as ICommentOrigin,
191
- UniButtonElement as UniButtonElementOrigin,
192
- UniNestedScrollHeaderElement as UniNestedScrollHeaderElementOrigin,
193
- UniNestedScrollBodyElement as UniNestedScrollBodyElementOrigin,
194
203
  INavigationBar as INavigationBarOrigin,
195
204
  DrawableContext as DrawableContextOrigin,
196
205
  DOMRect as DOMRectOrigin,
206
+ TextMetrics as TextMetricsOrigin,
207
+ ImageData as ImageDataOrigin,
208
+ CanvasPattern as CanvasPatternOrigin,
209
+ CanvasGradient as CanvasGradientOrigin,
210
+ CanvasRenderingContext2D as CanvasRenderingContext2DOrigin,
197
211
  CSSStyleDeclaration as CSSStyleDeclarationOrigin,
198
212
  AsyncApiResult as AsyncApiResultOrigin,
199
213
  } from './index'
@@ -255,6 +269,7 @@ declare global {
255
269
  const WebViewDownloadEvent: typeof WebViewDownloadEventOrigin
256
270
  type WebViewDownloadEventDetail = WebViewDownloadEventDetailOrigin
257
271
  type WebViewDownloadEvent = WebViewDownloadEventOrigin
272
+ const UniVideoElement: typeof UniVideoElementOrigin
258
273
  type UniVideoElement = UniVideoElementOrigin
259
274
  type Danmu = DanmuOrigin
260
275
  type RequestFullScreenOptions = RequestFullScreenOptionsOrigin
@@ -336,6 +351,8 @@ declare global {
336
351
  type UniScrollToLowerEvent = UniScrollToLowerEventOrigin
337
352
  const ScrollToLowerEvent: typeof ScrollToLowerEventOrigin
338
353
  type ScrollToLowerEvent = ScrollToLowerEventOrigin
354
+ const UniScrollEventDetail: typeof UniScrollEventDetailOrigin
355
+ type UniScrollEventDetail = UniScrollEventDetailOrigin
339
356
  const UniScrollEvent: typeof UniScrollEventOrigin
340
357
  type UniScrollEvent = UniScrollEventOrigin
341
358
  const ScrollEvent: typeof ScrollEventOrigin
@@ -476,6 +493,8 @@ declare global {
476
493
  const CustomEvent: typeof CustomEventOrigin
477
494
  type CustomEventOptions<T> = CustomEventOptionsOrigin<T>
478
495
  type CustomEvent<T> = CustomEventOrigin<T>
496
+ const UniCanvasElementImpl: typeof UniCanvasElementImplOrigin
497
+ type UniCanvasElementImpl = UniCanvasElementImplOrigin
479
498
  const UniCallbackWrapper: typeof UniCallbackWrapperOrigin
480
499
  type UniCallbackWrapper = UniCallbackWrapperOrigin
481
500
  type UniApp = UniAppOrigin
@@ -492,6 +511,8 @@ declare global {
492
511
  type TakeSnapshotSuccessCallback = TakeSnapshotSuccessCallbackOrigin
493
512
  type TakeSnapshotFailCallback = TakeSnapshotFailCallbackOrigin
494
513
  type TakeSnapshotCompleteCallback = TakeSnapshotCompleteCallbackOrigin
514
+ const Path2D: typeof Path2DOrigin
515
+ type Path2D = Path2DOrigin
495
516
  const PageNode: typeof PageNodeOrigin
496
517
  type PageNode = PageNodeOrigin
497
518
  const NodeData: typeof NodeDataOrigin
@@ -501,8 +522,38 @@ declare global {
501
522
  type NativeLoadFontFaceFail = NativeLoadFontFaceFailOrigin
502
523
  const NativeLoadFontFaceOptions: typeof NativeLoadFontFaceOptionsOrigin
503
524
  type NativeLoadFontFaceOptions = NativeLoadFontFaceOptionsOrigin
525
+ const UniObjectElement: typeof UniObjectElementOrigin
526
+ const UniObjectCustomEvent: typeof UniObjectCustomEventOrigin
527
+ type UniObjectCustomEvent = UniObjectCustomEventOrigin
528
+ const UniObjectInitEventDetail: typeof UniObjectInitEventDetailOrigin
529
+ type UniObjectInitEventDetail = UniObjectInitEventDetailOrigin
530
+ const UniObjectInitEvent: typeof UniObjectInitEventOrigin
531
+ type UniObjectInitEvent = UniObjectInitEventOrigin
532
+ type UniObjectElement = UniObjectElementOrigin
504
533
  type IUniForm = IUniFormOrigin
505
534
  type IUniError = IUniErrorOrigin
535
+ const UniElement: typeof UniElementOrigin
536
+ const UniButtonElement: typeof UniButtonElementOrigin
537
+ const UniCanvasElement: typeof UniCanvasElementOrigin
538
+ const UniCommentElement: typeof UniCommentElementOrigin
539
+ const UniImageElement: typeof UniImageElementOrigin
540
+ const Image: typeof ImageOrigin
541
+ const UniInputElement: typeof UniInputElementOrigin
542
+ const UniListItemElement: typeof UniListItemElementOrigin
543
+ const UniListViewElement: typeof UniListViewElementOrigin
544
+ const UniNestedScrollBodyElement: typeof UniNestedScrollBodyElementOrigin
545
+ const UniNestedScrollHeaderElement: typeof UniNestedScrollHeaderElementOrigin
546
+ const UniRichTextElement: typeof UniRichTextElementOrigin
547
+ const UniScrollViewElement: typeof UniScrollViewElementOrigin
548
+ const UniStickyHeaderElement: typeof UniStickyHeaderElementOrigin
549
+ const UniStickySectionElement: typeof UniStickySectionElementOrigin
550
+ const UniSwiperElement: typeof UniSwiperElementOrigin
551
+ const UniSwiperItemElement: typeof UniSwiperItemElementOrigin
552
+ const UniTabsElement: typeof UniTabsElementOrigin
553
+ const UniTextElement: typeof UniTextElementOrigin
554
+ const UniTextareaElement: typeof UniTextareaElementOrigin
555
+ const UniViewElement: typeof UniViewElementOrigin
556
+ const UniWebViewElement: typeof UniWebViewElementOrigin
506
557
  type UniElement = UniElementOrigin
507
558
  type INode = INodeOrigin
508
559
  type Element = ElementOrigin
@@ -513,6 +564,7 @@ declare global {
513
564
  type UniSwiperElement = UniSwiperElementOrigin
514
565
  type UniSwiperItemElement = UniSwiperItemElementOrigin
515
566
  type UniImageElement = UniImageElementOrigin
567
+ type Image = ImageOrigin
516
568
  type UniInputElement = UniInputElementOrigin
517
569
  type UniTextareaElement = UniTextareaElementOrigin
518
570
  type UniRichTextElement = UniRichTextElementOrigin
@@ -529,11 +581,17 @@ declare global {
529
581
  type UniButtonElement = UniButtonElementOrigin
530
582
  type UniNestedScrollHeaderElement = UniNestedScrollHeaderElementOrigin
531
583
  type UniNestedScrollBodyElement = UniNestedScrollBodyElementOrigin
584
+ type UniCanvasElement = UniCanvasElementOrigin
532
585
  type INavigationBar = INavigationBarOrigin
533
586
  const DrawableContext: typeof DrawableContextOrigin
534
587
  type DrawableContext = DrawableContextOrigin
535
588
  const DOMRect: typeof DOMRectOrigin
536
589
  type DOMRect = DOMRectOrigin
590
+ type TextMetrics = TextMetricsOrigin
591
+ type ImageData = ImageDataOrigin
592
+ type CanvasPattern = CanvasPatternOrigin
593
+ type CanvasGradient = CanvasGradientOrigin
594
+ type CanvasRenderingContext2D = CanvasRenderingContext2DOrigin
537
595
  const CSSStyleDeclaration: typeof CSSStyleDeclarationOrigin
538
596
  type CSSStyleDeclaration = CSSStyleDeclarationOrigin
539
597
  type AsyncApiResult = AsyncApiResultOrigin
@@ -49,20 +49,24 @@ export * from './UniError'
49
49
  export * from './UniElement'
50
50
  export * from './UniDocument'
51
51
  export * from './UniCustomEvent'
52
+ export * from './UniCanvasElement'
52
53
  export * from './UniCallbackWrapper'
53
54
  export * from './UniApp'
54
55
  export * from './UniAggregateError'
55
56
  export * from './UTSAndroidHookProxy'
56
57
  export * from './SourceError'
57
58
  export * from './SnapshotOptions'
59
+ export * from './Path2D'
58
60
  export * from './PageNode'
59
61
  export * from './NodeData'
60
62
  export * from './NativeLoadFontFaceOptions'
63
+ export * from './IUniObjectElement'
61
64
  export * from './IUniForm'
62
65
  export * from './IUniError'
63
66
  export * from './IUniElement'
64
67
  export * from './INavigationBar'
65
68
  export * from './DrawableContext'
66
69
  export * from './DOMRect'
70
+ export * from './CanvasRenderingContext2D'
67
71
  export * from './CSSStyleDeclaration'
68
72
  export * from './AsyncApiResult'