@dcloudio/uni-app-x 0.7.32 → 0.7.34
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/app.d.ts +182 -146
- package/types/native/CSSStyleDeclaration.d.ts +72 -0
- package/types/native/DOMRect.d.ts +180 -0
- package/types/native/DrawableContext.d.ts +471 -4
- package/types/native/SnapshotOptions.d.ts +0 -1
- package/types/native/UniEvent.d.ts +23 -1
- package/types/page.d.ts +99 -84
- package/types/uni/uts-plugin-api/global.d.ts +2 -0
- package/types/uni/uts-plugin-api/index.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-crash/utssdk/global.d.ts +20 -0
- package/types/uni/uts-plugin-api/lib/uni-crash/utssdk/index.d.ts +9 -0
- package/types/uni/uts-plugin-api/lib/uni-crash/utssdk/interface.d.ts +48 -0
- package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +6 -6
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +20 -20
- package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent-uni1/utssdk/global.d.ts +22 -0
- package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent-uni1/utssdk/index.d.ts +10 -0
- package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent-uni1/utssdk/interface.d.ts +781 -0
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +7 -5
- package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +33 -33
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/global.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/index.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +3 -4
- package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +224 -5
- package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/global.d.ts +14 -8
- package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/index.d.ts +7 -4
- package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/interface.d.ts +1788 -183
- package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +686 -661
- package/types/uni-cloud/interface.d.ts +1 -1
|
@@ -35,7 +35,7 @@ export type ReadFileSuccessCallback = (res : ReadFileSuccessResult) => void
|
|
|
35
35
|
|
|
36
36
|
export type ReadFileOptions = {
|
|
37
37
|
/**
|
|
38
|
-
* base64 / utf-8
|
|
38
|
+
* base64 / utf-8,指定读取文件的字符编码,4.31及以后版本如果不传 encoding,则以 ArrayBuffer 格式读取文件的二进制内容
|
|
39
39
|
*/
|
|
40
40
|
encoding ?: "base64" | "utf-8",
|
|
41
41
|
/**
|
|
@@ -71,7 +71,7 @@ export type WriteFileOptions = {
|
|
|
71
71
|
*/
|
|
72
72
|
encoding ?: "ascii" | "base64" | "utf-8" ,
|
|
73
73
|
/**
|
|
74
|
-
* string/ArrayBuffer
|
|
74
|
+
* string/ArrayBuffer,要写入的文本或二进制数据,4.31及以后版本支持ArrayBuffer
|
|
75
75
|
*/
|
|
76
76
|
data : any,
|
|
77
77
|
/**
|
|
@@ -100,7 +100,7 @@ export type AppendFileOptions = {
|
|
|
100
100
|
*/
|
|
101
101
|
encoding ?: "ascii" | "base64" | "utf-8",
|
|
102
102
|
/**
|
|
103
|
-
* string/ArrayBuffer
|
|
103
|
+
* string/ArrayBuffer 要追加的文本或二进制数据,4.31及以后版本支持ArrayBuffer
|
|
104
104
|
*/
|
|
105
105
|
data : any,
|
|
106
106
|
/**
|
|
@@ -343,7 +343,7 @@ export type SaveFileOptions = {
|
|
|
343
343
|
/**
|
|
344
344
|
* 要存储的文件路径 (本地路径)
|
|
345
345
|
*/
|
|
346
|
-
filePath
|
|
346
|
+
filePath ?: string.URIString | null,
|
|
347
347
|
|
|
348
348
|
/**
|
|
349
349
|
* 接口调用的回调函数
|
|
@@ -611,19 +611,19 @@ export type WriteOptions = {
|
|
|
611
611
|
*/
|
|
612
612
|
fd : string,
|
|
613
613
|
/**
|
|
614
|
-
* 写入的内容,类型为 String 或 ArrayBuffer
|
|
614
|
+
* 写入的内容,类型为 String 或 ArrayBuffer,4.31及以后版本支持ArrayBuffer
|
|
615
615
|
*/
|
|
616
616
|
data : any,
|
|
617
617
|
/**
|
|
618
|
-
*
|
|
618
|
+
* 4.31及以后版本新增,只在 data 类型是 ArrayBuffer 时有效,决定 ArrayBuffer 中要被写入的部位,即 ArrayBuffer 中的索引,默认0
|
|
619
619
|
*/
|
|
620
620
|
offset ?: number,
|
|
621
621
|
/**
|
|
622
|
-
*
|
|
622
|
+
* 4.31及以后版本新增,只在 data 类型是 ArrayBuffer 时有效,指定要写入的字节数,默认为 ArrayBuffer 从0开始偏移 offset 个字节后剩余的字节数
|
|
623
623
|
*/
|
|
624
624
|
length ?: number,
|
|
625
625
|
/**
|
|
626
|
-
*
|
|
626
|
+
* 4.31及以后版本新增,指定文件开头的偏移量,即数据要被写入的位置。当 position 不传或者传入非 Number 类型的值时,数据会被写入当前指针所在位置。
|
|
627
627
|
*/
|
|
628
628
|
position ?: number
|
|
629
629
|
/**
|
|
@@ -655,7 +655,7 @@ export type WriteSyncOptions = {
|
|
|
655
655
|
*/
|
|
656
656
|
fd : string,
|
|
657
657
|
/**
|
|
658
|
-
* 写入的内容,类型为 String 或 ArrayBuffer
|
|
658
|
+
* 写入的内容,类型为 String 或 ArrayBuffer,4.31及以后版本支持ArrayBuffer
|
|
659
659
|
*/
|
|
660
660
|
data : any,
|
|
661
661
|
/**
|
|
@@ -663,11 +663,11 @@ export type WriteSyncOptions = {
|
|
|
663
663
|
* 支持:ascii base64 utf-8
|
|
664
664
|
*/
|
|
665
665
|
encoding ?: "ascii" | "base64" | "utf-8",
|
|
666
|
-
/** 只在 data 类型是 ArrayBuffer 时有效,指定要写入的字节数,默认为 arrayBuffer 从0开始偏移 offset 个字节后剩余的字节数
|
|
666
|
+
/** 只在 data 类型是 ArrayBuffer 时有效,指定要写入的字节数,默认为 arrayBuffer 从0开始偏移 offset 个字节后剩余的字节数 ,4.31及以后版本新增*/
|
|
667
667
|
length ?: number
|
|
668
|
-
/** 只在 data 类型是 ArrayBuffer 时有效,决定 arrayBuffe 中要被写入的部位,即 arrayBuffer 中的索引,默认0 */
|
|
668
|
+
/** 只在 data 类型是 ArrayBuffer 时有效,决定 arrayBuffe 中要被写入的部位,即 arrayBuffer 中的索引,默认0,4.31及以后版本新增 */
|
|
669
669
|
offset ?: number
|
|
670
|
-
/** 指定文件开头的偏移量,即数据要被写入的位置。当 position 不传或者传入非 Number 类型的值时,数据会被写入当前指针所在位置。 */
|
|
670
|
+
/** 指定文件开头的偏移量,即数据要被写入的位置。当 position 不传或者传入非 Number 类型的值时,数据会被写入当前指针所在位置。4.31及以后版本新增 */
|
|
671
671
|
position ?: number
|
|
672
672
|
}
|
|
673
673
|
|
|
@@ -777,7 +777,7 @@ export type EntryItem = {
|
|
|
777
777
|
path : string
|
|
778
778
|
/**
|
|
779
779
|
* 指定写入文件的字符编码
|
|
780
|
-
* 支持:ascii base64 utf-8
|
|
780
|
+
* 支持:ascii base64 utf-8;4.31及以后版本如果不传 encoding,则以 ArrayBuffer 格式读取文件的二进制内容
|
|
781
781
|
*/
|
|
782
782
|
encoding ?: "ascii" | "base64" | "utf-8" | null,
|
|
783
783
|
// /** 指定文件的长度,如果不指定,则读到文件末尾。有效范围:[1, fileLength]。单位:byte */
|
|
@@ -790,7 +790,7 @@ export type EntriesResult = {
|
|
|
790
790
|
result : Map<string, ZipFileItem>
|
|
791
791
|
}
|
|
792
792
|
export type ZipFileItem = {
|
|
793
|
-
/** string/ArrayBuffer
|
|
793
|
+
/** string/ArrayBuffer 文件内容,4.31及以后版本支持ArrayBuffer */
|
|
794
794
|
data ?: any | null,
|
|
795
795
|
/** 错误信息 */
|
|
796
796
|
errMsg : string
|
|
@@ -803,7 +803,7 @@ export type ReadZipEntryOptions = {
|
|
|
803
803
|
filePath : string.URIString,
|
|
804
804
|
/**
|
|
805
805
|
*统一指定读取文件的字符编码,只在 entries 值为"all"时有效。
|
|
806
|
-
|
|
806
|
+
*4.31及以后版本如果 entries 值为 null 且不传 encoding,则以 ArrayBuffer 格式读取文件的二进制内容
|
|
807
807
|
*/
|
|
808
808
|
encoding ?: "ascii" | "base64" | "utf-8" | null,
|
|
809
809
|
/** 要读取的压缩包内的文件列表(当不传入时表示读取压缩包内所有文件) */
|
|
@@ -894,8 +894,8 @@ export interface FileSystemManager {
|
|
|
894
894
|
/**
|
|
895
895
|
* FileSystemManager.readFile 的同步版本参数
|
|
896
896
|
* @param filePath 文件路径,支持相对地址和绝对地址,app-android平台支持代码包文件目录
|
|
897
|
-
* @param encoding base64 / utf-8
|
|
898
|
-
* @returns string|ArrayBuffer data
|
|
897
|
+
* @param encoding base64 / utf-8,指定读取文件的字符编码,4.31及以后版本如果不传 encoding,则以 ArrayBuffer 格式读取文件的二进制内容
|
|
898
|
+
* @returns string|ArrayBuffer data文件内容,4.31及以后版本支持ArrayBuffer
|
|
899
899
|
* @uniPlatform {
|
|
900
900
|
* "app": {
|
|
901
901
|
* "android": {
|
|
@@ -946,7 +946,7 @@ export interface FileSystemManager {
|
|
|
946
946
|
* "android": {
|
|
947
947
|
* "osVer": "5.0",
|
|
948
948
|
* "uniVer": "x",
|
|
949
|
-
* "unixVer": "4.
|
|
949
|
+
* "unixVer": "4.31"
|
|
950
950
|
* },
|
|
951
951
|
* "ios": {
|
|
952
952
|
* "osVer": "12.0",
|
|
@@ -986,7 +986,7 @@ export interface FileSystemManager {
|
|
|
986
986
|
/**
|
|
987
987
|
* FileSystemManager.writeFile 的同步版本
|
|
988
988
|
* @param filePath 文件路径,只支持绝对地址
|
|
989
|
-
* @param data
|
|
989
|
+
* @param data 要写入的文本或二进制数据,4.31及以后版本支持ArrayBuffer
|
|
990
990
|
* @param encoding 指定写入文件的字符编码,支持:ascii base64 utf-8,只在 data 类型是 String 时有效
|
|
991
991
|
* @uniPlatform {
|
|
992
992
|
* "app": {
|
|
@@ -1420,7 +1420,7 @@ export interface FileSystemManager {
|
|
|
1420
1420
|
/**
|
|
1421
1421
|
* FileSystemManager.appendFile 的同步版本
|
|
1422
1422
|
* @param filePath 要追加内容的文件路径 (本地路径)
|
|
1423
|
-
* @param data
|
|
1423
|
+
* @param data 要追加的文本或二进制数据,4.31及以后版本支持ArrayBuffer
|
|
1424
1424
|
* @param encoding 指定写入文件的字符编码支持:ascii base64 utf-8,只在 data 类型是 String 时有效
|
|
1425
1425
|
* @uniPlatform {
|
|
1426
1426
|
* "app": {
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// 本文件为自动构建生成
|
|
2
|
+
import {
|
|
3
|
+
GetLocationFailImpl as GetLocationFailImplOrigin,
|
|
4
|
+
LocationErrorCode as LocationErrorCodeOrigin,
|
|
5
|
+
IGetLocationFail as IGetLocationFailOrigin,
|
|
6
|
+
GetLocationFail as GetLocationFailOrigin,
|
|
7
|
+
GetLocation as GetLocationOrigin,
|
|
8
|
+
GetLocationSuccess as GetLocationSuccessOrigin,
|
|
9
|
+
GetLocationOptions as GetLocationOptionsOrigin,
|
|
10
|
+
Uni as UniOrigin
|
|
11
|
+
} from './interface'
|
|
12
|
+
|
|
13
|
+
declare global {
|
|
14
|
+
type GetLocationFailImpl = GetLocationFailImplOrigin
|
|
15
|
+
type LocationErrorCode = LocationErrorCodeOrigin
|
|
16
|
+
type IGetLocationFail = IGetLocationFailOrigin
|
|
17
|
+
type GetLocationFail = GetLocationFailOrigin
|
|
18
|
+
type GetLocation = GetLocationOrigin
|
|
19
|
+
type GetLocationSuccess = GetLocationSuccessOrigin
|
|
20
|
+
type GetLocationOptions = GetLocationOptionsOrigin
|
|
21
|
+
interface Uni extends UniOrigin { }
|
|
22
|
+
}
|