@dcloudio/uni-app-x 0.5.16 → 0.5.17
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.
- package/package.json +1 -1
- package/types/native/CSSStyleDeclaration.d.ts +14 -11
- package/types/uni/core/index.d.ts +3 -3
- package/types/uni/core/lib/ui/page-scroll-to/index.d.ts +4 -0
- package/types/uni/core/lib/ui/page-scroll-to/interface.d.ts +9 -0
- package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +3 -3
- package/types/uni/uts-plugin-api/lib/uni-push/utssdk/interface.d.ts +10 -10
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/index.d.ts +4 -4
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +19 -9
- package/uts-plugin.d.ts +1 -0
package/package.json
CHANGED
|
@@ -4,17 +4,20 @@
|
|
|
4
4
|
*/
|
|
5
5
|
declare class CSSStyleDeclaration {
|
|
6
6
|
|
|
7
|
-
/**
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
setProperty(name: string|string.cssPropertyString, value: any|null): void
|
|
7
|
+
/**
|
|
8
|
+
* 对CSS指定样式设置一个新值,如有此样式已存在则更新。
|
|
9
|
+
* @param name CSS样式名称
|
|
10
|
+
* @param value 要设置的新CSS样式值
|
|
11
|
+
*/
|
|
12
|
+
setProperty(name: string | string.cssPropertyString, value: any | null): void
|
|
13
13
|
|
|
14
|
-
/**
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
getPropertyValue(property: string|string.cssPropertyString): any|null
|
|
14
|
+
/**
|
|
15
|
+
* 获取CSS指定的样式值,如果指定的样式不存在则返回null。
|
|
16
|
+
* @param property 要获取的CSS样式名称
|
|
17
|
+
*/
|
|
18
|
+
getPropertyValue(property: string | string.cssPropertyString): any | null
|
|
19
|
+
|
|
20
|
+
removeProperty(property: string | string.cssPropertyString): any | null
|
|
19
21
|
|
|
22
|
+
getStyleMap(): Map<String, any | null>
|
|
20
23
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/// <reference path='./lib/route/index.d.ts' />
|
|
2
1
|
/// <reference path='./lib/performance/index.d.ts' />
|
|
3
2
|
/// <reference path='./lib/lifecycle/index.d.ts' />
|
|
4
|
-
/// <reference path='./lib/
|
|
3
|
+
/// <reference path='./lib/route/index.d.ts' />
|
|
5
4
|
/// <reference path='./lib/ui/set-navigation-bar-title/index.d.ts' />
|
|
5
|
+
/// <reference path='./lib/ui/tab-bar/index.d.ts' />
|
|
6
6
|
/// <reference path='./lib/ui/set-navigation-bar-color/index.d.ts' />
|
|
7
7
|
/// <reference path='./lib/ui/pull-down-refresh/index.d.ts' />
|
|
8
8
|
/// <reference path='./lib/ui/page-scroll-to/index.d.ts' />
|
|
9
|
-
/// <reference path='./lib/ui/load-font-face/index.d.ts' />
|
|
10
9
|
/// <reference path='./lib/ui/get-element-by-id/index.d.ts' />
|
|
10
|
+
/// <reference path='./lib/ui/load-font-face/index.d.ts' />
|
|
11
11
|
/// <reference path='./lib/ui/create-selector-query/index.d.ts' />
|
|
12
12
|
/// <reference path='./lib/base/interceptor/index.d.ts' />
|
|
13
13
|
/// <reference path='./lib/base/event/index.d.ts' />
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
+
PageScrollToErrorCode as PageScrollToErrorCodeOrigin,
|
|
3
|
+
PageScrollToError as PageScrollToErrorOrigin,
|
|
2
4
|
PageScrollToSuccess as PageScrollToSuccessOrigin,
|
|
3
5
|
PageScrollToSuccessCallback as PageScrollToSuccessCallbackOrigin,
|
|
4
6
|
PageScrollToFail as PageScrollToFailOrigin,
|
|
@@ -10,6 +12,8 @@ import {
|
|
|
10
12
|
} from './interface'
|
|
11
13
|
|
|
12
14
|
declare global {
|
|
15
|
+
type PageScrollToErrorCode = PageScrollToErrorCodeOrigin
|
|
16
|
+
type PageScrollToError = PageScrollToErrorOrigin
|
|
13
17
|
type PageScrollToSuccess = PageScrollToSuccessOrigin
|
|
14
18
|
type PageScrollToSuccessCallback = PageScrollToSuccessCallbackOrigin
|
|
15
19
|
type PageScrollToFail = PageScrollToFailOrigin
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import { AsyncApiSuccessResult } from '../../interface'
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* 设置页面滚动错误码
|
|
5
|
+
* - 4: 框架内部异常
|
|
6
|
+
*/
|
|
7
|
+
export type PageScrollToErrorCode = 4
|
|
8
|
+
export interface PageScrollToError extends IUniError {
|
|
9
|
+
errCode: PageScrollToErrorCode
|
|
10
|
+
}
|
|
11
|
+
|
|
3
12
|
export type PageScrollToSuccess = AsyncApiSuccessResult
|
|
4
13
|
export type PageScrollToSuccessCallback = (result: PageScrollToSuccess) => void
|
|
5
14
|
export type PageScrollToFail = UniError
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ComponentPublicInstance } from 'vue'
|
|
1
|
+
import { ComponentPublicInstance } from 'vue';
|
|
2
2
|
|
|
3
|
-
export type CreateWebviewContext = (webviewId : WebviewIdString, component : ComponentPublicInstance | null) => WebviewContext | null
|
|
3
|
+
export type CreateWebviewContext = (webviewId : string.WebviewIdString, component : ComponentPublicInstance | null) => WebviewContext | null;
|
|
4
4
|
|
|
5
5
|
export interface WebviewContext {
|
|
6
6
|
/**
|
|
@@ -94,5 +94,5 @@ export interface Uni {
|
|
|
94
94
|
* @uniVueVersion 2,3
|
|
95
95
|
* @return {CreateWebviewContext} web-view组件上下文对象
|
|
96
96
|
*/
|
|
97
|
-
createWebviewContext
|
|
97
|
+
createWebviewContext : CreateWebviewContext
|
|
98
98
|
}
|
|
@@ -11,7 +11,7 @@ export interface Uni {
|
|
|
11
11
|
* "android": {
|
|
12
12
|
* "osVer": "4.4",
|
|
13
13
|
* "uniVer": "√",
|
|
14
|
-
* "unixVer": "3.
|
|
14
|
+
* "unixVer": "3.98"
|
|
15
15
|
* },
|
|
16
16
|
* "ios": {
|
|
17
17
|
* "osVer": "9.0",
|
|
@@ -42,7 +42,7 @@ export interface Uni {
|
|
|
42
42
|
* "android": {
|
|
43
43
|
* "osVer": "4.4",
|
|
44
44
|
* "uniVer": "√",
|
|
45
|
-
* "unixVer": "3.
|
|
45
|
+
* "unixVer": "3.98"
|
|
46
46
|
* },
|
|
47
47
|
* "ios": {
|
|
48
48
|
* "osVer": "9.0",
|
|
@@ -71,7 +71,7 @@ export interface Uni {
|
|
|
71
71
|
* "android": {
|
|
72
72
|
* "osVer": "4.4",
|
|
73
73
|
* "uniVer": "√",
|
|
74
|
-
* "unixVer": "3.
|
|
74
|
+
* "unixVer": "3.98"
|
|
75
75
|
* },
|
|
76
76
|
* "ios": {
|
|
77
77
|
* "osVer": "9.0",
|
|
@@ -99,8 +99,8 @@ export interface Uni {
|
|
|
99
99
|
* "app": {
|
|
100
100
|
* "android": {
|
|
101
101
|
* "osVer": "4.4",
|
|
102
|
-
* "uniVer": "3.
|
|
103
|
-
* "unixVer": "3.
|
|
102
|
+
* "uniVer": "3.98",
|
|
103
|
+
* "unixVer": "3.98"
|
|
104
104
|
* },
|
|
105
105
|
* "ios": {
|
|
106
106
|
* "osVer": "9.0",
|
|
@@ -135,7 +135,7 @@ export interface Uni {
|
|
|
135
135
|
* "android": {
|
|
136
136
|
* "osVer": "4.4",
|
|
137
137
|
* "uniVer": "√",
|
|
138
|
-
* "unixVer": "3.
|
|
138
|
+
* "unixVer": "3.98"
|
|
139
139
|
* },
|
|
140
140
|
* "ios": {
|
|
141
141
|
* "osVer": "9.0",
|
|
@@ -257,7 +257,7 @@ export interface ChannelManager {
|
|
|
257
257
|
* "android": {
|
|
258
258
|
* "osVer": "4.4",
|
|
259
259
|
* "uniVer": "√",
|
|
260
|
-
* "unixVer": "3.
|
|
260
|
+
* "unixVer": "3.98"
|
|
261
261
|
* },
|
|
262
262
|
* "ios": {
|
|
263
263
|
* "osVer": "9.0",
|
|
@@ -276,7 +276,7 @@ export interface ChannelManager {
|
|
|
276
276
|
* "android": {
|
|
277
277
|
* "osVer": "4.4",
|
|
278
278
|
* "uniVer": "√",
|
|
279
|
-
* "unixVer": "3.
|
|
279
|
+
* "unixVer": "3.98"
|
|
280
280
|
* },
|
|
281
281
|
* "ios": {
|
|
282
282
|
* "osVer": "9.0",
|
|
@@ -348,7 +348,7 @@ export type CreatePushMessageOptions = {
|
|
|
348
348
|
* "android": {
|
|
349
349
|
* "osVer": "4.4",
|
|
350
350
|
* "uniVer": "√",
|
|
351
|
-
* "unixVer": "3.
|
|
351
|
+
* "unixVer": "3.98"
|
|
352
352
|
* },
|
|
353
353
|
* "ios": {
|
|
354
354
|
* "osVer": "9.0",
|
|
@@ -367,7 +367,7 @@ export type CreatePushMessageOptions = {
|
|
|
367
367
|
* "android": {
|
|
368
368
|
* "osVer": "4.4",
|
|
369
369
|
* "uniVer": "√",
|
|
370
|
-
* "unixVer": "3.
|
|
370
|
+
* "unixVer": "3.98"
|
|
371
371
|
* },
|
|
372
372
|
* "ios": {
|
|
373
373
|
* "osVer": "9.0",
|
|
@@ -10,8 +10,8 @@ import {
|
|
|
10
10
|
VideoErrorEvent as VideoErrorEventOrigin,
|
|
11
11
|
VideoErrorCode as VideoErrorCodeOrigin,
|
|
12
12
|
VideoError as VideoErrorOrigin,
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
VideoProgressEvent as VideoProgressEventOrigin,
|
|
14
|
+
VideoProgressEventDetail as VideoProgressEventDetailOrigin,
|
|
15
15
|
VideoFullScreenClickEvent as VideoFullScreenClickEventOrigin,
|
|
16
16
|
VideoFullScreenClickEventDetail as VideoFullScreenClickEventDetailOrigin,
|
|
17
17
|
VideoControlsToggleEvent as VideoControlsToggleEventOrigin,
|
|
@@ -31,8 +31,8 @@ declare global {
|
|
|
31
31
|
type VideoErrorEvent = VideoErrorEventOrigin
|
|
32
32
|
type VideoErrorCode = VideoErrorCodeOrigin
|
|
33
33
|
type VideoError = VideoErrorOrigin
|
|
34
|
-
type
|
|
35
|
-
type
|
|
34
|
+
type VideoProgressEvent = VideoProgressEventOrigin
|
|
35
|
+
type VideoProgressEventDetail = VideoProgressEventDetailOrigin
|
|
36
36
|
type VideoFullScreenClickEvent = VideoFullScreenClickEventOrigin
|
|
37
37
|
type VideoFullScreenClickEventDetail = VideoFullScreenClickEventDetailOrigin
|
|
38
38
|
type VideoControlsToggleEvent = VideoControlsToggleEventOrigin
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentPublicInstance } from 'vue';
|
|
2
2
|
|
|
3
|
-
export type CreateVideoContext = (videoId : string, component
|
|
3
|
+
export type CreateVideoContext = (videoId : string.VideoIdString, component : ComponentPublicInstance | null) => VideoContext | null;
|
|
4
4
|
|
|
5
5
|
export type Danmu = {
|
|
6
6
|
/**
|
|
@@ -170,11 +170,21 @@ export interface Uni {
|
|
|
170
170
|
createVideoContext(videoId : string, component ?: ComponentPublicInstance | null) : VideoContext | null
|
|
171
171
|
}
|
|
172
172
|
|
|
173
|
+
/**
|
|
174
|
+
* 通用事件
|
|
175
|
+
*/
|
|
176
|
+
interface VideoEvent {
|
|
177
|
+
type : string
|
|
178
|
+
target : Element | null
|
|
179
|
+
currentTarget : Element | null
|
|
180
|
+
timeStamp : Long
|
|
181
|
+
}
|
|
182
|
+
|
|
173
183
|
/**
|
|
174
184
|
* timeupdate 事件
|
|
175
185
|
* 播放进度变化时触发
|
|
176
186
|
*/
|
|
177
|
-
export interface VideoTimeUpdateEvent {
|
|
187
|
+
export interface VideoTimeUpdateEvent extends VideoEvent {
|
|
178
188
|
detail : VideoTimeUpdateEventDetail
|
|
179
189
|
}
|
|
180
190
|
|
|
@@ -193,7 +203,7 @@ export type VideoTimeUpdateEventDetail = {
|
|
|
193
203
|
* fullscreenchange 事件
|
|
194
204
|
* 当视频进入和退出全屏是触发
|
|
195
205
|
*/
|
|
196
|
-
export interface VideoFullScreenChangeEvent {
|
|
206
|
+
export interface VideoFullScreenChangeEvent extends VideoEvent {
|
|
197
207
|
detail : VideoFullScreenChangeEventDetail
|
|
198
208
|
}
|
|
199
209
|
|
|
@@ -212,7 +222,7 @@ export type VideoFullScreenChangeEventDetail = {
|
|
|
212
222
|
* error 事件
|
|
213
223
|
* 视频播放出错时触发
|
|
214
224
|
*/
|
|
215
|
-
export interface VideoErrorEvent {
|
|
225
|
+
export interface VideoErrorEvent extends VideoEvent {
|
|
216
226
|
detail : VideoError
|
|
217
227
|
}
|
|
218
228
|
|
|
@@ -232,11 +242,11 @@ export interface VideoError extends IUniError {
|
|
|
232
242
|
* progress 事件
|
|
233
243
|
* 加载进度变化时触发
|
|
234
244
|
*/
|
|
235
|
-
export interface
|
|
236
|
-
detail :
|
|
245
|
+
export interface VideoProgressEvent extends VideoEvent {
|
|
246
|
+
detail : VideoProgressEventDetail
|
|
237
247
|
}
|
|
238
248
|
|
|
239
|
-
export type
|
|
249
|
+
export type VideoProgressEventDetail = {
|
|
240
250
|
/**
|
|
241
251
|
* 加载进度百分比
|
|
242
252
|
*/
|
|
@@ -247,7 +257,7 @@ export type VideoProgressChangeEventDetail = {
|
|
|
247
257
|
* fullscreenclick 事件
|
|
248
258
|
* 视频播放全屏播放时点击事件
|
|
249
259
|
*/
|
|
250
|
-
export interface VideoFullScreenClickEvent {
|
|
260
|
+
export interface VideoFullScreenClickEvent extends VideoEvent {
|
|
251
261
|
detail : VideoFullScreenClickEventDetail
|
|
252
262
|
}
|
|
253
263
|
|
|
@@ -274,7 +284,7 @@ export type VideoFullScreenClickEventDetail = {
|
|
|
274
284
|
* controlstoggle 事件
|
|
275
285
|
* 切换播放控件显示隐藏时触发
|
|
276
286
|
*/
|
|
277
|
-
export interface VideoControlsToggleEvent {
|
|
287
|
+
export interface VideoControlsToggleEvent extends VideoEvent {
|
|
278
288
|
detail : VideoControlsToggleEventDetail
|
|
279
289
|
}
|
|
280
290
|
|
package/uts-plugin.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference path='./types/native/UniError.d.ts' />
|
|
2
2
|
/// <reference path='./types/native/SourceError.d.ts' />
|
|
3
3
|
/// <reference path='./types/native/UniAggregateError.d.ts' />
|
|
4
|
+
/// <reference path='./types/native/UTSAndroidHookProxy.d.ts' />
|
|
4
5
|
/// <reference path='./types/uni/base/index.d.ts' />
|
|
5
6
|
/// <reference path='./types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/index.d.ts' />
|
|
6
7
|
/// <reference path='./types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/index.d.ts' />
|