@dcloudio/uni-app-x 0.7.39 → 0.7.41
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 +9 -7
- package/types/UniPage.d.ts +168 -22
- package/types/app.d.ts +178 -174
- package/types/native/CSSStyleDeclaration.d.ts +16 -2
- package/types/native/DOMRect.d.ts +430 -10
- package/types/native/DrawableContext.d.ts +1137 -45
- package/types/native/IUniElement.d.ts +1875 -93
- package/types/native/UniNativePage.d.ts +94 -0
- package/types/native/UniResizeObserver.d.ts +215 -5
- package/types/native/UniSafeArea.d.ts +185 -0
- package/types/native/UniVideoElement.d.ts +432 -0
- package/types/native/global.d.ts +7 -0
- package/types/native/index.d.ts +1 -0
- package/types/uni/uni-map-tencent-map.d.ts +12 -8
- package/types/uni/uts-plugin-api/global.d.ts +62 -61
- package/types/uni/uts-plugin-api/index.d.ts +62 -61
- package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/global.d.ts +22 -0
- package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/index.d.ts +10 -0
- package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/interface.d.ts +278 -0
- package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +1600 -59
- package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +64 -63
- package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/global.d.ts +0 -2
- package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/index.d.ts +0 -1
- package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +1150 -186
- package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +64 -63
- package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +550 -550
- package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/interface.d.ts +69 -72
- package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +533 -135
- package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +1508 -77
- package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +423 -63
- package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +284 -63
- package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +2 -9
- package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-file/utssdk/global.d.ts +62 -62
- package/types/uni/uts-plugin-api/lib/uni-file/utssdk/index.d.ts +31 -31
- package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +57 -57
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +312 -110
- package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +62 -62
- package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +472 -72
- package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +126 -78
- package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +317 -66
- package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +570 -63
- package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +570 -63
- package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +110 -66
- package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +595 -177
- package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +284 -63
- package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +45 -1
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +1387 -182
- package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +67 -67
- package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +318 -53
- package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +162 -63
- package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +241 -64
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +6 -0
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +3 -0
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +4089 -659
- package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +460 -252
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +2345 -213
- package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +1205 -149
- package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +339 -33
- package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +457 -53
- package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +328 -63
- package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +317 -66
- package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +120 -71
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +2157 -437
- package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +260 -126
- package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +467 -315
- package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +553 -53
- package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +1608 -630
- package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +2492 -504
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +176 -130
- package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +704 -58
- package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +1230 -454
- package/types/uni/uts-plugin-biz/global.d.ts +6 -5
- package/types/uni/uts-plugin-biz/index.d.ts +6 -5
- package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +406 -123
- package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/global.d.ts +4 -0
- package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/index.d.ts +2 -0
- package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/interface.d.ts +60 -47
- package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/interface.d.ts +71 -71
- package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +3 -3
- package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/global.d.ts +24 -0
- package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/index.d.ts +11 -0
- package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/interface.d.ts +204 -0
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/global.d.ts +42 -38
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/index.d.ts +21 -19
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +502 -255
- package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/global.d.ts +64 -0
- package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/index.d.ts +31 -0
- package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/interface.d.ts +900 -0
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +48 -48
- package/types/uni/uts-plugin-extend/global.d.ts +0 -4
- package/types/uni/uts-plugin-extend/index.d.ts +0 -4
- package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +825 -273
- package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +4399 -339
- package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +1000 -268
- package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +3 -3
- package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +1495 -384
- package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +222 -132
- package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/interface.d.ts +923 -67
- package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +0 -7
- package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +0 -1
- package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +0 -716
|
@@ -1,83 +1,83 @@
|
|
|
1
|
-
export type
|
|
1
|
+
export type LegacySaveFileSuccess = {
|
|
2
2
|
savedFilePath: string;
|
|
3
3
|
};
|
|
4
|
-
export type
|
|
5
|
-
export type
|
|
6
|
-
export type
|
|
7
|
-
export type
|
|
8
|
-
export type
|
|
4
|
+
export type LegacySaveFileSuccessCallback = (res: LegacySaveFileSuccess) => void;
|
|
5
|
+
export type LegacySaveFileFail = {};
|
|
6
|
+
export type LegacySaveFileFailCallback = (res: LegacySaveFileFail) => void;
|
|
7
|
+
export type LegacySaveFileCompleteCallback = (res: any) => void;
|
|
8
|
+
export type LegacySaveFileOptions = {
|
|
9
9
|
tempFilePath: string;
|
|
10
|
-
success?:
|
|
11
|
-
fail?:
|
|
12
|
-
complete?:
|
|
10
|
+
success?: LegacySaveFileSuccessCallback | null;
|
|
11
|
+
fail?: LegacySaveFileFailCallback | null;
|
|
12
|
+
complete?: LegacySaveFileCompleteCallback | null;
|
|
13
13
|
};
|
|
14
14
|
|
|
15
|
-
export type
|
|
15
|
+
export type LegacyGetFileInfoSuccess = {
|
|
16
16
|
digest: string;
|
|
17
17
|
size: number;
|
|
18
18
|
};
|
|
19
|
-
export type
|
|
20
|
-
export type
|
|
21
|
-
export type
|
|
22
|
-
export type
|
|
23
|
-
export type
|
|
19
|
+
export type LegacyGetFileInfoSuccessCallback = (res: LegacyGetFileInfoSuccess) => void;
|
|
20
|
+
export type LegacyGetFileInfoFail = {};
|
|
21
|
+
export type LegacyGetFileInfoFailCallback = (res: LegacyGetFileInfoFail) => void;
|
|
22
|
+
export type LegacyGetFileInfoCompleteCallback = (res: any) => void;
|
|
23
|
+
export type LegacyGetFileInfoOptions = {
|
|
24
24
|
filePath: string;
|
|
25
25
|
digestAlgorithm?: string | null;
|
|
26
|
-
success?:
|
|
27
|
-
fail?:
|
|
28
|
-
complete?:
|
|
26
|
+
success?: LegacyGetFileInfoSuccessCallback | null;
|
|
27
|
+
fail?: LegacyGetFileInfoFailCallback | null;
|
|
28
|
+
complete?: LegacyGetFileInfoCompleteCallback | null;
|
|
29
29
|
};
|
|
30
30
|
|
|
31
|
-
export type
|
|
31
|
+
export type LegacyGetSavedFileInfoSuccess = {
|
|
32
32
|
size: number;
|
|
33
33
|
createTime: number;
|
|
34
34
|
};
|
|
35
|
-
export type
|
|
36
|
-
export type
|
|
37
|
-
export type
|
|
38
|
-
export type
|
|
39
|
-
export type
|
|
35
|
+
export type LegacyGetSavedFileInfoSuccessCallback = (res: LegacyGetSavedFileInfoSuccess) => void;
|
|
36
|
+
export type LegacyGetSavedFileInfoFail = {};
|
|
37
|
+
export type LegacyGetSavedFileInfoFailCallback = (res: LegacyGetSavedFileInfoFail) => void;
|
|
38
|
+
export type LegacyGetSavedFileInfoCompleteCallback = (res: any) => void;
|
|
39
|
+
export type LegacyGetSavedFileInfoOptions = {
|
|
40
40
|
filePath: string;
|
|
41
|
-
success?:
|
|
42
|
-
fail?:
|
|
43
|
-
complete?:
|
|
41
|
+
success?: LegacyGetSavedFileInfoSuccessCallback | null;
|
|
42
|
+
fail?: LegacyGetSavedFileInfoFailCallback | null;
|
|
43
|
+
complete?: LegacyGetSavedFileInfoCompleteCallback | null;
|
|
44
44
|
};
|
|
45
45
|
|
|
46
|
-
export type
|
|
47
|
-
export type
|
|
48
|
-
export type
|
|
49
|
-
export type
|
|
50
|
-
export type
|
|
51
|
-
export type
|
|
46
|
+
export type LegacyRemoveSavedFileSuccess = {};
|
|
47
|
+
export type LegacyRemoveSavedFileSuccessCallback = (res: LegacyRemoveSavedFileSuccess) => void;
|
|
48
|
+
export type LegacyRemoveSavedFileFail = {};
|
|
49
|
+
export type LegacyRemoveSavedFileFailCallback = (res: LegacyRemoveSavedFileFail) => void;
|
|
50
|
+
export type LegacyRemoveSavedFileCompleteCallback = (res: any) => void;
|
|
51
|
+
export type LegacyRemoveSavedFileOptions = {
|
|
52
52
|
filePath: string;
|
|
53
|
-
success?:
|
|
54
|
-
fail?:
|
|
55
|
-
complete?:
|
|
53
|
+
success?: LegacyRemoveSavedFileSuccessCallback | null;
|
|
54
|
+
fail?: LegacyRemoveSavedFileFailCallback | null;
|
|
55
|
+
complete?: LegacyRemoveSavedFileCompleteCallback | null;
|
|
56
56
|
};
|
|
57
57
|
|
|
58
|
-
export type
|
|
58
|
+
export type LegacySavedFileListItem = {
|
|
59
59
|
filePath: string;
|
|
60
60
|
size: number;
|
|
61
61
|
createTime: number;
|
|
62
62
|
};
|
|
63
|
-
export type
|
|
64
|
-
fileList:
|
|
63
|
+
export type LegacyGetSavedFileListSuccess = {
|
|
64
|
+
fileList: LegacySavedFileListItem[];
|
|
65
65
|
};
|
|
66
|
-
export type
|
|
67
|
-
export type
|
|
68
|
-
export type
|
|
69
|
-
export type
|
|
70
|
-
export type
|
|
71
|
-
success?:
|
|
72
|
-
fail?:
|
|
73
|
-
complete?:
|
|
66
|
+
export type LegacyGetSavedFileListSuccessCallback = (res: LegacyGetSavedFileListSuccess) => void;
|
|
67
|
+
export type LegacyGetSavedFileListFail = {};
|
|
68
|
+
export type LegacyGetSavedFileListFailCallback = (res: LegacyGetSavedFileListFail) => void;
|
|
69
|
+
export type LegacyGetSavedFileListCompleteCallback = (res: any) => void;
|
|
70
|
+
export type LegacyGetSavedFileListOptions = {
|
|
71
|
+
success?: LegacyGetSavedFileListSuccessCallback | null;
|
|
72
|
+
fail?: LegacyGetSavedFileListFailCallback | null;
|
|
73
|
+
complete?: LegacyGetSavedFileListCompleteCallback | null;
|
|
74
74
|
};
|
|
75
75
|
|
|
76
|
-
export type SaveFile = (options?:
|
|
77
|
-
export type GetFileInfo = (options?:
|
|
78
|
-
export type GetSavedFileInfo = (options?:
|
|
79
|
-
export type RemoveSavedFile = (options?:
|
|
80
|
-
export type GetSavedFileList = (options?:
|
|
76
|
+
export type SaveFile = (options?: LegacySaveFileOptions | null) => void;
|
|
77
|
+
export type GetFileInfo = (options?: LegacyGetFileInfoOptions | null) => void;
|
|
78
|
+
export type GetSavedFileInfo = (options?: LegacyGetSavedFileInfoOptions | null) => void;
|
|
79
|
+
export type RemoveSavedFile = (options?: LegacyRemoveSavedFileOptions | null) => void;
|
|
80
|
+
export type GetSavedFileList = (options?: LegacyGetSavedFileListOptions | null) => void;
|
|
81
81
|
|
|
82
82
|
|
|
83
83
|
export interface Uni {
|
|
@@ -140,7 +140,7 @@ export interface Uni {
|
|
|
140
140
|
* }
|
|
141
141
|
* @uniVueVersion 2,3 //支持的vue版本
|
|
142
142
|
*/
|
|
143
|
-
saveFile(options?:
|
|
143
|
+
saveFile(options?: LegacySaveFileOptions | null): void;
|
|
144
144
|
/**
|
|
145
145
|
* 获取本地已保存的文件列表
|
|
146
146
|
* @uniPlatform {
|
|
@@ -200,7 +200,7 @@ export interface Uni {
|
|
|
200
200
|
* }
|
|
201
201
|
* @uniVueVersion 2,3 //支持的vue版本
|
|
202
202
|
*/
|
|
203
|
-
getSavedFileList(options?:
|
|
203
|
+
getSavedFileList(options?: LegacyGetSavedFileListOptions | null): void;
|
|
204
204
|
/**
|
|
205
205
|
* 获取已保存到本地的文件信息
|
|
206
206
|
* @uniPlatform {
|
|
@@ -260,7 +260,7 @@ export interface Uni {
|
|
|
260
260
|
* }
|
|
261
261
|
* @uniVueVersion 2,3 //支持的vue版本
|
|
262
262
|
*/
|
|
263
|
-
getSavedFileInfo(options?:
|
|
263
|
+
getSavedFileInfo(options?: LegacyGetSavedFileInfoOptions | null): void;
|
|
264
264
|
/**
|
|
265
265
|
* 删除已保存的文件
|
|
266
266
|
* @uniPlatform {
|
|
@@ -320,7 +320,7 @@ export interface Uni {
|
|
|
320
320
|
* }
|
|
321
321
|
* @uniVueVersion 2,3 //支持的vue版本
|
|
322
322
|
*/
|
|
323
|
-
removeSavedFile(options?:
|
|
323
|
+
removeSavedFile(options?: LegacyRemoveSavedFileOptions | null): void;
|
|
324
324
|
/**
|
|
325
325
|
* 获取文件信息
|
|
326
326
|
* @uniPlatform {
|
|
@@ -380,5 +380,5 @@ export interface Uni {
|
|
|
380
380
|
* }
|
|
381
381
|
* @uniVueVersion 2,3 //支持的vue版本
|
|
382
382
|
*/
|
|
383
|
-
getFileInfo(options?:
|
|
383
|
+
getFileInfo(options?: LegacyGetFileInfoOptions | null): void;
|
|
384
384
|
}
|