@dcloudio/uni-app-x 0.7.47 → 0.7.49

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 (38) hide show
  1. package/package.json +1 -1
  2. package/types/app.d.ts +160 -4
  3. package/types/native/IUniElement.d.ts +1248 -3
  4. package/types/native/UniAnimation.d.ts +22 -22
  5. package/types/native/UniElement.d.ts +6 -2
  6. package/types/native/UniFormControlElement.d.ts +1 -0
  7. package/types/{UniPage.d.ts → native/UniPage.d.ts} +9 -8
  8. package/types/native/global.d.ts +16 -0
  9. package/types/native/index.d.ts +1 -0
  10. package/types/page.d.ts +91 -94
  11. package/types/uni/uts-plugin-api/global.d.ts +2 -0
  12. package/types/uni/uts-plugin-api/index.d.ts +2 -0
  13. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/global.d.ts +2 -0
  14. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/index.d.ts +1 -0
  15. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +46 -2
  16. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +142 -0
  17. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +3 -2
  18. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +1667 -1665
  19. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +143 -1
  20. package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/global.d.ts +18 -0
  21. package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/index.d.ts +8 -0
  22. package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/interface.d.ts +190 -0
  23. package/types/uni/uts-plugin-api/lib/uni-requestMerchantTransfer/utssdk/global.d.ts +20 -0
  24. package/types/uni/uts-plugin-api/lib/uni-requestMerchantTransfer/utssdk/index.d.ts +9 -0
  25. package/types/uni/uts-plugin-api/lib/uni-requestMerchantTransfer/utssdk/interface.d.ts +615 -0
  26. package/types/uni/uts-plugin-biz/lib/uni-camera/utssdk/global.d.ts +34 -0
  27. package/types/uni/uts-plugin-biz/lib/uni-camera/utssdk/index.d.ts +16 -0
  28. package/types/uni/uts-plugin-biz/lib/uni-camera/utssdk/interface.d.ts +221 -0
  29. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +38 -38
  30. package/types/uni/uts-plugin-component/global.d.ts +1 -0
  31. package/types/uni/uts-plugin-component/index.d.ts +1 -0
  32. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/global.d.ts +34 -0
  33. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/index.d.ts +16 -0
  34. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/interface.d.ts +221 -0
  35. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/global.d.ts +2 -0
  36. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/index.d.ts +1 -0
  37. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +38 -11
  38. package/uts-plugin.d.ts +2 -0
@@ -600,7 +600,44 @@ export type GetFileInfoOptions = {
600
600
  complete?: FileManagerCompleteCallback | null
601
601
  }
602
602
 
603
+ // #ifdef APP-IOS
604
+ export interface Stats extends JSExport {
605
+ /**
606
+ * 文件的类型和存取的权限,对应 POSIX stat.st_mode
607
+ * 注意android中,文件类型只包含是否是目录与文件,
608
+ * 另外在android中这里的权限指的是当前进程对文件或者文件夹是否有读,写,执行的权限,
609
+ * 这里没有与 POSIX stat.st_mode对应的组,其他人等相关权限的数据返回,只有所有者的相关权限
610
+ */
611
+ mode: number;
612
+ /**
613
+ * 文件大小,单位:B,对应 POSIX stat.st_size
614
+ */
615
+ size: number;
616
+ /**
617
+ * 文件最近一次被存取或被执行的时间,UNIX 时间戳,对应 POSIX stat.st_atime
618
+ * 注意:android中由于系统限制无法获取该数据
619
+ */
620
+ lastAccessedTime: number;
621
+ /**
622
+ * 文件最后一次被修改的时间,UNIX 时间戳,对应 POSIX stat.st_mtime
623
+ */
624
+ lastModifiedTime: number;
625
+ /**
626
+ * @internal
627
+ */
628
+ mIsFile: boolean;
629
+ /**
630
+ * 判断当前文件是否一个目录
631
+ */
632
+ isDirectory(): boolean;
633
+ /**
634
+ * 判断当前文件是否一个普通文件
635
+ */
636
+ isFile(): boolean;
637
+ }
638
+ // #endif
603
639
 
640
+ // #ifndef APP-IOS
604
641
  export interface Stats {
605
642
  /**
606
643
  * 文件的类型和存取的权限,对应 POSIX stat.st_mode
@@ -634,8 +671,9 @@ export interface Stats {
634
671
  * 判断当前文件是否一个普通文件
635
672
  */
636
673
  isFile(): boolean;
637
-
638
674
  }
675
+ // #endif
676
+
639
677
 
640
678
 
641
679
  export type FileStats = {
@@ -3393,7 +3431,13 @@ export interface FileSystemManager {
3393
3431
  * }
3394
3432
  * }
3395
3433
  */
3396
- statSync(path: string, recursive: boolean): FileStats[];
3434
+ // #ifdef APP-IOS
3435
+ statSync(path : string, recursive : boolean) : Array<Map<string, any>>;
3436
+ // #endif
3437
+
3438
+ // #ifndef APP-IOS
3439
+ statSync(path : string, recursive : boolean) : FileStats[];
3440
+ // #endif
3397
3441
  /**
3398
3442
  * 在文件结尾追加内容
3399
3443
  * @uniPlatform {
@@ -1302,6 +1302,148 @@ export type GetDeviceInfoResult = {
1302
1302
  * }
1303
1303
  */
1304
1304
  osAndroidAPILevel?: number | null,
1305
+ /**
1306
+ * 鸿蒙系统软件API版本
1307
+ *
1308
+ * @uniPlatform
1309
+ * {
1310
+ * "app": {
1311
+ * "android": {
1312
+ * "osVer": "5.0",
1313
+ * "uniVer": "√",
1314
+ * "unixVer": "√"
1315
+ * },
1316
+ * "ios": {
1317
+ * "osVer": "x",
1318
+ * "uniVer": "x",
1319
+ * "unixVer": "x"
1320
+ * },
1321
+ * "harmony": {
1322
+ * "osVer": "√",
1323
+ * "uniVer": "4.61",
1324
+ * "unixVer": "4.61"
1325
+ * }
1326
+ * },
1327
+ * "mp": {
1328
+ * "weixin": {
1329
+ * "hostVer": "√",
1330
+ * "uniVer": "x",
1331
+ * "unixVer": "x"
1332
+ * },
1333
+ * "alipay": {
1334
+ * "hostVer": "√",
1335
+ * "uniVer": "x",
1336
+ * "unixVer": "x"
1337
+ * },
1338
+ * "baidu": {
1339
+ * "hostVer": "√",
1340
+ * "uniVer": "x",
1341
+ * "unixVer": "x"
1342
+ * },
1343
+ * "toutiao": {
1344
+ * "hostVer": "√",
1345
+ * "uniVer": "x",
1346
+ * "unixVer": "x"
1347
+ * },
1348
+ * "lark": {
1349
+ * "hostVer": "√",
1350
+ * "uniVer": "x",
1351
+ * "unixVer": "x"
1352
+ * },
1353
+ * "qq": {
1354
+ * "hostVer": "√",
1355
+ * "uniVer": "x",
1356
+ * "unixVer": "x"
1357
+ * },
1358
+ * "kuaishou": {
1359
+ * "hostVer": "√",
1360
+ * "uniVer": "x",
1361
+ * "unixVer": "x"
1362
+ * },
1363
+ * "jd": {
1364
+ * "hostVer": "√",
1365
+ * "uniVer": "x",
1366
+ * "unixVer": "x"
1367
+ * }
1368
+ * },
1369
+ * "web": {
1370
+ * "uniVer": "x",
1371
+ * "unixVer": "x"
1372
+ * }
1373
+ * }
1374
+ */
1375
+ osHarmonySDKAPIVersion?: number | null,
1376
+ /**
1377
+ * 产品版本,关于本机信息内的软件版本
1378
+ *
1379
+ * @uniPlatform
1380
+ * {
1381
+ * "app": {
1382
+ * "android": {
1383
+ * "osVer": "5.0",
1384
+ * "uniVer": "√",
1385
+ * "unixVer": "√"
1386
+ * },
1387
+ * "ios": {
1388
+ * "osVer": "x",
1389
+ * "uniVer": "x",
1390
+ * "unixVer": "x"
1391
+ * },
1392
+ * "harmony": {
1393
+ * "osVer": "√",
1394
+ * "uniVer": "4.61",
1395
+ * "unixVer": "4.61"
1396
+ * }
1397
+ * },
1398
+ * "mp": {
1399
+ * "weixin": {
1400
+ * "hostVer": "√",
1401
+ * "uniVer": "x",
1402
+ * "unixVer": "x"
1403
+ * },
1404
+ * "alipay": {
1405
+ * "hostVer": "√",
1406
+ * "uniVer": "x",
1407
+ * "unixVer": "x"
1408
+ * },
1409
+ * "baidu": {
1410
+ * "hostVer": "√",
1411
+ * "uniVer": "x",
1412
+ * "unixVer": "x"
1413
+ * },
1414
+ * "toutiao": {
1415
+ * "hostVer": "√",
1416
+ * "uniVer": "x",
1417
+ * "unixVer": "x"
1418
+ * },
1419
+ * "lark": {
1420
+ * "hostVer": "√",
1421
+ * "uniVer": "x",
1422
+ * "unixVer": "x"
1423
+ * },
1424
+ * "qq": {
1425
+ * "hostVer": "√",
1426
+ * "uniVer": "x",
1427
+ * "unixVer": "x"
1428
+ * },
1429
+ * "kuaishou": {
1430
+ * "hostVer": "√",
1431
+ * "uniVer": "x",
1432
+ * "unixVer": "x"
1433
+ * },
1434
+ * "jd": {
1435
+ * "hostVer": "√",
1436
+ * "uniVer": "x",
1437
+ * "unixVer": "x"
1438
+ * }
1439
+ * },
1440
+ * "web": {
1441
+ * "uniVer": "x",
1442
+ * "unixVer": "x"
1443
+ * }
1444
+ * }
1445
+ */
1446
+ osHarmonyDisplayVersion?: string | null,
1305
1447
  /**
1306
1448
  * rom 名称。Android 部分机型获取不到值。iOS 恒为 `ios`
1307
1449
  *
@@ -23,9 +23,10 @@ export interface Uni {
23
23
  * "unixUtsPlugin": "4.25"
24
24
  * },
25
25
  * "harmony": {
26
- * "osVer": "x",
26
+ * "osVer": "5.0.0",
27
27
  * "uniVer": "x",
28
- * "unixVer": "x"
28
+ * "unixVer": "4.61",
29
+ * "unixUtsPlugin": "4.61"
29
30
  * }
30
31
  * },
31
32
  * "mp": {