@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.
Files changed (104) hide show
  1. package/package.json +9 -7
  2. package/types/UniPage.d.ts +168 -22
  3. package/types/app.d.ts +178 -174
  4. package/types/native/CSSStyleDeclaration.d.ts +16 -2
  5. package/types/native/DOMRect.d.ts +430 -10
  6. package/types/native/DrawableContext.d.ts +1137 -45
  7. package/types/native/IUniElement.d.ts +1875 -93
  8. package/types/native/UniNativePage.d.ts +94 -0
  9. package/types/native/UniResizeObserver.d.ts +215 -5
  10. package/types/native/UniSafeArea.d.ts +185 -0
  11. package/types/native/UniVideoElement.d.ts +432 -0
  12. package/types/native/global.d.ts +7 -0
  13. package/types/native/index.d.ts +1 -0
  14. package/types/uni/uni-map-tencent-map.d.ts +12 -8
  15. package/types/uni/uts-plugin-api/global.d.ts +62 -61
  16. package/types/uni/uts-plugin-api/index.d.ts +62 -61
  17. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/global.d.ts +22 -0
  18. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/index.d.ts +10 -0
  19. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/interface.d.ts +278 -0
  20. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +1600 -59
  21. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +64 -63
  22. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/global.d.ts +0 -2
  23. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/index.d.ts +0 -1
  24. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +1150 -186
  25. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +64 -63
  26. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +550 -550
  27. package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/interface.d.ts +69 -72
  28. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +533 -135
  29. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +1508 -77
  30. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +423 -63
  31. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +284 -63
  32. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +2 -9
  33. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +1 -1
  34. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/global.d.ts +62 -62
  35. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/index.d.ts +31 -31
  36. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +57 -57
  37. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +312 -110
  38. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +62 -62
  39. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +472 -72
  40. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +126 -78
  41. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +317 -66
  42. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +570 -63
  43. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +570 -63
  44. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +110 -66
  45. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +595 -177
  46. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +284 -63
  47. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +45 -1
  48. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +1387 -182
  49. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +67 -67
  50. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +318 -53
  51. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +162 -63
  52. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +241 -64
  53. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +6 -0
  54. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +3 -0
  55. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +4089 -659
  56. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +460 -252
  57. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +2345 -213
  58. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +1205 -149
  59. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +339 -33
  60. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +457 -53
  61. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +328 -63
  62. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +317 -66
  63. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +120 -71
  64. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +2157 -437
  65. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +260 -126
  66. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +467 -315
  67. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +553 -53
  68. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +1608 -630
  69. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +2492 -504
  70. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +176 -130
  71. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +704 -58
  72. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +1230 -454
  73. package/types/uni/uts-plugin-biz/global.d.ts +6 -5
  74. package/types/uni/uts-plugin-biz/index.d.ts +6 -5
  75. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +406 -123
  76. package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/global.d.ts +4 -0
  77. package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/index.d.ts +2 -0
  78. package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/interface.d.ts +60 -47
  79. package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/interface.d.ts +71 -71
  80. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +3 -3
  81. package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/global.d.ts +24 -0
  82. package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/index.d.ts +11 -0
  83. package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/interface.d.ts +204 -0
  84. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/global.d.ts +42 -38
  85. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/index.d.ts +21 -19
  86. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +502 -255
  87. package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/global.d.ts +64 -0
  88. package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/index.d.ts +31 -0
  89. package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/interface.d.ts +900 -0
  90. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +48 -48
  91. package/types/uni/uts-plugin-extend/global.d.ts +0 -4
  92. package/types/uni/uts-plugin-extend/index.d.ts +0 -4
  93. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +825 -273
  94. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +4399 -339
  95. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +1000 -268
  96. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/interface.d.ts +1 -1
  97. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +3 -3
  98. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +1495 -384
  99. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +222 -132
  100. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/interface.d.ts +923 -67
  101. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/interface.d.ts +2 -2
  102. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +0 -7
  103. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +0 -1
  104. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +0 -716
@@ -1,83 +1,83 @@
1
- export type SaveFileSuccess = {
1
+ export type LegacySaveFileSuccess = {
2
2
  savedFilePath: string;
3
3
  };
4
- export type SaveFileSuccessCallback = (res: SaveFileSuccess) => void;
5
- export type SaveFileFail = {};
6
- export type SaveFileFailCallback = (res: SaveFileFail) => void;
7
- export type SaveFileCompleteCallback = (res: any) => void;
8
- export type SaveFileOptions = {
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?: SaveFileSuccessCallback | null;
11
- fail?: SaveFileFailCallback | null;
12
- complete?: SaveFileCompleteCallback | null;
10
+ success?: LegacySaveFileSuccessCallback | null;
11
+ fail?: LegacySaveFileFailCallback | null;
12
+ complete?: LegacySaveFileCompleteCallback | null;
13
13
  };
14
14
 
15
- export type GetFileInfoSuccess = {
15
+ export type LegacyGetFileInfoSuccess = {
16
16
  digest: string;
17
17
  size: number;
18
18
  };
19
- export type GetFileInfoSuccessCallback = (res: GetFileInfoSuccess) => void;
20
- export type GetFileInfoFail = {};
21
- export type GetFileInfoFailCallback = (res: GetFileInfoFail) => void;
22
- export type GetFileInfoCompleteCallback = (res: any) => void;
23
- export type GetFileInfoOptions = {
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?: GetFileInfoSuccessCallback | null;
27
- fail?: GetFileInfoFailCallback | null;
28
- complete?: GetFileInfoCompleteCallback | null;
26
+ success?: LegacyGetFileInfoSuccessCallback | null;
27
+ fail?: LegacyGetFileInfoFailCallback | null;
28
+ complete?: LegacyGetFileInfoCompleteCallback | null;
29
29
  };
30
30
 
31
- export type GetSavedFileInfoSuccess = {
31
+ export type LegacyGetSavedFileInfoSuccess = {
32
32
  size: number;
33
33
  createTime: number;
34
34
  };
35
- export type GetSavedFileInfoSuccessCallback = (res: GetSavedFileInfoSuccess) => void;
36
- export type GetSavedFileInfoFail = {};
37
- export type GetSavedFileInfoFailCallback = (res: GetSavedFileInfoFail) => void;
38
- export type GetSavedFileInfoCompleteCallback = (res: any) => void;
39
- export type GetSavedFileInfoOptions = {
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?: GetSavedFileInfoSuccessCallback | null;
42
- fail?: GetSavedFileInfoFailCallback | null;
43
- complete?: GetSavedFileInfoCompleteCallback | null;
41
+ success?: LegacyGetSavedFileInfoSuccessCallback | null;
42
+ fail?: LegacyGetSavedFileInfoFailCallback | null;
43
+ complete?: LegacyGetSavedFileInfoCompleteCallback | null;
44
44
  };
45
45
 
46
- export type RemoveSavedFileSuccess = {};
47
- export type RemoveSavedFileSuccessCallback = (res: RemoveSavedFileSuccess) => void;
48
- export type RemoveSavedFileFail = {};
49
- export type RemoveSavedFileFailCallback = (res: RemoveSavedFileFail) => void;
50
- export type RemoveSavedFileCompleteCallback = (res: any) => void;
51
- export type RemoveSavedFileOptions = {
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?: RemoveSavedFileSuccessCallback | null;
54
- fail?: RemoveSavedFileFailCallback | null;
55
- complete?: RemoveSavedFileCompleteCallback | null;
53
+ success?: LegacyRemoveSavedFileSuccessCallback | null;
54
+ fail?: LegacyRemoveSavedFileFailCallback | null;
55
+ complete?: LegacyRemoveSavedFileCompleteCallback | null;
56
56
  };
57
57
 
58
- export type SavedFileListItem = {
58
+ export type LegacySavedFileListItem = {
59
59
  filePath: string;
60
60
  size: number;
61
61
  createTime: number;
62
62
  };
63
- export type GetSavedFileListSuccess = {
64
- fileList: SavedFileListItem[];
63
+ export type LegacyGetSavedFileListSuccess = {
64
+ fileList: LegacySavedFileListItem[];
65
65
  };
66
- export type GetSavedFileListSuccessCallback = (res: GetSavedFileListSuccess) => void;
67
- export type GetSavedFileListFail = {};
68
- export type GetSavedFileListFailCallback = (res: GetSavedFileListFail) => void;
69
- export type GetSavedFileListCompleteCallback = (res: any) => void;
70
- export type GetSavedFileListOptions = {
71
- success?: GetSavedFileListSuccessCallback | null;
72
- fail?: GetSavedFileListFailCallback | null;
73
- complete?: GetSavedFileListCompleteCallback | null;
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?: SaveFileOptions | null) => void;
77
- export type GetFileInfo = (options?: GetFileInfoOptions | null) => void;
78
- export type GetSavedFileInfo = (options?: GetSavedFileInfoOptions | null) => void;
79
- export type RemoveSavedFile = (options?: RemoveSavedFileOptions | null) => void;
80
- export type GetSavedFileList = (options?: GetSavedFileListOptions | null) => void;
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?: SaveFileOptions | null): void;
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?: GetSavedFileListOptions | null): void;
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?: GetSavedFileInfoOptions | null): void;
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?: RemoveSavedFileOptions | null): void;
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?: GetFileInfoOptions | null): void;
383
+ getFileInfo(options?: LegacyGetFileInfoOptions | null): void;
384
384
  }