@dcloudio/uni-app-x 0.7.39 → 0.7.40

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 +31 -31
  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
@@ -512,71 +512,72 @@ export interface Uni {
512
512
  * @tutorial https://uniapp.dcloud.io/api/system/theme.html#onthemechange
513
513
  * @tutorial-uni-app https://uniapp.dcloud.io/api/system/theme.html#onthemechange
514
514
  * @uniPlatform {
515
- * "app": {
516
- * "android": {
517
- * "osVer": "5.0",
518
- * "uniVer": "3.6.9",
519
- * "unixVer": "x"
520
- * },
521
- * "ios": {
522
- * "osVer": "9.0",
523
- * "uniVer": "2.6.5",
524
- * "unixVer": "x"
525
- * },
526
- * "harmony": {
527
- * "osVer": "x",
528
- * "uniVer": "x",
529
- * "unixVer": "x"
530
- * }
531
- * },
532
- * "mp": {
533
- * "weixin": {
534
- * "hostVer": "",
535
- * "uniVer": "2.11.0",
536
- * "unixVer": "x"
537
- * },
538
- * "alipay": {
539
- * "hostVer": "x",
540
- * "uniVer": "x",
541
- * "unixVer": "x"
542
- * },
543
- * "baidu": {
544
- * "hostVer": "x",
545
- * "uniVer": "x",
546
- * "unixVer": "x"
547
- * },
548
- * "toutiao": {
549
- * "hostVer": "x",
550
- * "uniVer": "x",
551
- * "unixVer": "x"
552
- * },
553
- * "lark": {
554
- * "hostVer": "√",
555
- * "uniVer": "5.3.0",
556
- * "unixVer": "x"
557
- * },
558
- * "qq": {
559
- * "hostVer": "x",
560
- * "uniVer": "x",
561
- * "unixVer": "x"
562
- * },
563
- * "kuaishou": {
564
- * "hostVer": "x",
565
- * "uniVer": "x",
566
- * "unixVer": "x"
567
- * },
568
- * "jd": {
569
- * "hostVer": "x",
570
- * "uniVer": "x",
571
- * "unixVer": "x"
572
- * }
573
- * },
574
- * "web": {
575
- * "uniVer": "3.6.9",
576
- * "unixVer": "4.0"
577
- * }
515
+ * "app": {
516
+ * "android": {
517
+ * "osVer": "5.0",
518
+ * "uniVer": "3.6.9",
519
+ * "unixVer": "x"
520
+ * },
521
+ * "ios": {
522
+ * "osVer": "9.0",
523
+ * "uniVer": "2.6.5",
524
+ * "unixVer": "x"
525
+ * },
526
+ * "harmony": {
527
+ * "osVer": "x",
528
+ * "uniVer": "x",
529
+ * "unixVer": "x"
530
+ * }
531
+ * },
532
+ * "mp": {
533
+ * "weixin": {
534
+ * "hostVer": "2.11.0",
535
+ * "uniVer": "2.11.0",
536
+ * "unixVer": "4.41"
537
+ * },
538
+ * "alipay": {
539
+ * "hostVer": "x",
540
+ * "uniVer": "x",
541
+ * "unixVer": "x"
542
+ * },
543
+ * "baidu": {
544
+ * "hostVer": "x",
545
+ * "uniVer": "x",
546
+ * "unixVer": "x"
547
+ * },
548
+ * "toutiao": {
549
+ * "hostVer": "x",
550
+ * "uniVer": "x",
551
+ * "unixVer": "x"
552
+ * },
553
+ * "lark": {
554
+ * "hostVer": "√",
555
+ * "uniVer": "5.3.0",
556
+ * "unixVer": "x"
557
+ * },
558
+ * "qq": {
559
+ * "hostVer": "x",
560
+ * "uniVer": "x",
561
+ * "unixVer": "x"
562
+ * },
563
+ * "kuaishou": {
564
+ * "hostVer": "x",
565
+ * "uniVer": "x",
566
+ * "unixVer": "x"
567
+ * },
568
+ * "jd": {
569
+ * "hostVer": "x",
570
+ * "uniVer": "x",
571
+ * "unixVer": "x"
572
+ * }
573
+ * },
574
+ * "web": {
575
+ * "uniVer": "3.6.9",
576
+ * "unixVer": "4.0"
577
+ * }
578
578
  * }
579
- */
579
+ * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/base/app/app-event/wx.onThemeChange.html
580
+ */
580
581
  onThemeChange(callback: OnThemeChangeCallback): void;
581
582
  /**
582
583
  * 取消监听系统主题状态变化。
@@ -584,71 +585,72 @@ export interface Uni {
584
585
  * @tutorial https://uniapp.dcloud.io/api/system/theme.html#offthemechange
585
586
  * @tutorial-uni-app https://uniapp.dcloud.io/api/system/theme.html#offthemechange
586
587
  * @uniPlatform {
587
- * "app": {
588
- * "android": {
589
- * "osVer": "5.0",
590
- * "uniVer": "3.6.9",
591
- * "unixVer": "x"
592
- * },
593
- * "ios": {
594
- * "osVer": "9.0",
595
- * "uniVer": "2.6.5",
596
- * "unixVer": "x"
597
- * },
598
- * "harmony": {
599
- * "osVer": "x",
600
- * "uniVer": "x",
601
- * "unixVer": "x"
602
- * }
603
- * },
604
- * "mp": {
605
- * "weixin": {
606
- * "hostVer": "",
607
- * "uniVer": "2.11.0",
608
- * "unixVer": "x"
609
- * },
610
- * "alipay": {
611
- * "hostVer": "x",
612
- * "uniVer": "x",
613
- * "unixVer": "x"
614
- * },
615
- * "baidu": {
616
- * "hostVer": "x",
617
- * "uniVer": "x",
618
- * "unixVer": "x"
619
- * },
620
- * "toutiao": {
621
- * "hostVer": "x",
622
- * "uniVer": "x",
623
- * "unixVer": "x"
624
- * },
625
- * "lark": {
626
- * "hostVer": "√",
627
- * "uniVer": "5.3.0",
628
- * "unixVer": "x"
629
- * },
630
- * "qq": {
631
- * "hostVer": "x",
632
- * "uniVer": "x",
633
- * "unixVer": "x"
634
- * },
635
- * "kuaishou": {
636
- * "hostVer": "x",
637
- * "uniVer": "x",
638
- * "unixVer": "x"
639
- * },
640
- * "jd": {
641
- * "hostVer": "x",
642
- * "uniVer": "x",
643
- * "unixVer": "x"
644
- * }
645
- * },
646
- * "web": {
647
- * "uniVer": "3.6.9",
648
- * "unixVer": "4.0"
649
- * }
588
+ * "app": {
589
+ * "android": {
590
+ * "osVer": "5.0",
591
+ * "uniVer": "3.6.9",
592
+ * "unixVer": "x"
593
+ * },
594
+ * "ios": {
595
+ * "osVer": "9.0",
596
+ * "uniVer": "2.6.5",
597
+ * "unixVer": "x"
598
+ * },
599
+ * "harmony": {
600
+ * "osVer": "x",
601
+ * "uniVer": "x",
602
+ * "unixVer": "x"
603
+ * }
604
+ * },
605
+ * "mp": {
606
+ * "weixin": {
607
+ * "hostVer": "2.11.0",
608
+ * "uniVer": "2.11.0",
609
+ * "unixVer": "4.41"
610
+ * },
611
+ * "alipay": {
612
+ * "hostVer": "x",
613
+ * "uniVer": "x",
614
+ * "unixVer": "x"
615
+ * },
616
+ * "baidu": {
617
+ * "hostVer": "x",
618
+ * "uniVer": "x",
619
+ * "unixVer": "x"
620
+ * },
621
+ * "toutiao": {
622
+ * "hostVer": "x",
623
+ * "uniVer": "x",
624
+ * "unixVer": "x"
625
+ * },
626
+ * "lark": {
627
+ * "hostVer": "√",
628
+ * "uniVer": "5.3.0",
629
+ * "unixVer": "x"
630
+ * },
631
+ * "qq": {
632
+ * "hostVer": "x",
633
+ * "uniVer": "x",
634
+ * "unixVer": "x"
635
+ * },
636
+ * "kuaishou": {
637
+ * "hostVer": "x",
638
+ * "uniVer": "x",
639
+ * "unixVer": "x"
640
+ * },
641
+ * "jd": {
642
+ * "hostVer": "x",
643
+ * "uniVer": "x",
644
+ * "unixVer": "x"
645
+ * }
646
+ * },
647
+ * "web": {
648
+ * "uniVer": "3.6.9",
649
+ * "unixVer": "4.0"
650
+ * }
650
651
  * }
651
- */
652
+ * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/base/app/app-event/wx.offThemeChange.html
653
+ */
652
654
  offThemeChange(callback: OnThemeChangeCallback): void;
653
655
  }
654
656
 
@@ -1051,7 +1053,51 @@ export type OnHostThemeChangeCallback = (result: OnHostThemeChangeCallbackResult
1051
1053
  export type OnThemeChangeCallbackResult = {
1052
1054
  /**
1053
1055
  * 主题名称
1054
- */
1056
+ * @uniPlatform {
1057
+ * "mp": {
1058
+ * "weixin": {
1059
+ * "hostVer": "√",
1060
+ * "uniVer": "√",
1061
+ * "unixVer": "4.41"
1062
+ * },
1063
+ * "alipay": {
1064
+ * "hostVer": "-",
1065
+ * "uniVer": "-",
1066
+ * "unixVer": "-"
1067
+ * },
1068
+ * "baidu": {
1069
+ * "hostVer": "-",
1070
+ * "uniVer": "-",
1071
+ * "unixVer": "-"
1072
+ * },
1073
+ * "toutiao": {
1074
+ * "hostVer": "-",
1075
+ * "uniVer": "-",
1076
+ * "unixVer": "-"
1077
+ * },
1078
+ * "lark": {
1079
+ * "hostVer": "-",
1080
+ * "uniVer": "-",
1081
+ * "unixVer": "-"
1082
+ * },
1083
+ * "qq": {
1084
+ * "hostVer": "-",
1085
+ * "uniVer": "-",
1086
+ * "unixVer": "-"
1087
+ * },
1088
+ * "kuaishou": {
1089
+ * "hostVer": "-",
1090
+ * "uniVer": "-",
1091
+ * "unixVer": "-"
1092
+ * },
1093
+ * "jd": {
1094
+ * "hostVer": "-",
1095
+ * "uniVer": "-",
1096
+ * "unixVer": "-"
1097
+ * }
1098
+ * }
1099
+ * }
1100
+ */
1055
1101
  theme: 'dark' | 'light'
1056
1102
  };
1057
- export type OnThemeChangeCallback = (result: OnHostThemeChangeCallbackResult) => void;
1103
+ export type OnThemeChangeCallback = (result: OnThemeChangeCallbackResult) => void;