@dcloudio/uni-app-x 0.7.41 → 0.7.43

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 (44) hide show
  1. package/package.json +1 -1
  2. package/types/UniPage.d.ts +32 -77
  3. package/types/app.d.ts +39 -2
  4. package/types/native/CSSStyleDeclaration.d.ts +40 -7
  5. package/types/native/CanvasRenderingContext2D.d.ts +56 -6
  6. package/types/native/IUniElement.d.ts +31 -2
  7. package/types/native/UniAnimation.d.ts +578 -0
  8. package/types/native/UniAnimationPlaybackEvent.d.ts +12 -0
  9. package/types/native/UniNativePage.d.ts +1 -19
  10. package/types/native/UniSafeAreaInsets.d.ts +74 -0
  11. package/types/native/global.d.ts +6 -2
  12. package/types/native/index.d.ts +3 -1
  13. package/types/uni/uni-map-tencent-global.d.ts +5 -1
  14. package/types/uni/uni-map-tencent-map.d.ts +7 -0
  15. package/types/uni/uts-plugin-api/global.d.ts +3 -0
  16. package/types/uni/uts-plugin-api/index.d.ts +3 -0
  17. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/interface.d.ts +680 -51
  18. package/types/uni/uts-plugin-api/lib/uni-chooseMedia/utssdk/global.d.ts +32 -0
  19. package/types/uni/uts-plugin-api/lib/uni-chooseMedia/utssdk/index.d.ts +15 -0
  20. package/types/uni/uts-plugin-api/lib/uni-chooseMedia/utssdk/interface.d.ts +685 -0
  21. package/types/uni/uts-plugin-api/lib/uni-document/utssdk/global.d.ts +10 -0
  22. package/types/uni/uts-plugin-api/lib/uni-document/utssdk/index.d.ts +4 -0
  23. package/types/uni/uts-plugin-api/lib/uni-document/utssdk/interface.d.ts +76 -0
  24. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +105 -104
  25. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +75 -1
  26. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/global.d.ts +2 -0
  27. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/index.d.ts +1 -0
  28. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +4 -5
  29. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +0 -22
  30. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +0 -11
  31. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +171 -896
  32. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +1 -1
  33. package/types/uni/uts-plugin-api/lib/uni-previewImage/utssdk/global.d.ts +46 -0
  34. package/types/uni/uts-plugin-api/lib/uni-previewImage/utssdk/index.d.ts +22 -0
  35. package/types/uni/uts-plugin-api/lib/uni-previewImage/utssdk/interface.d.ts +339 -0
  36. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +1 -1
  37. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/global.d.ts +4 -0
  38. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/index.d.ts +2 -0
  39. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +6 -4
  40. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +2187 -2066
  41. package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/interface.d.ts +1 -1
  42. package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/interface.d.ts +268 -20
  43. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +398 -203
  44. package/types/native/UniSafeArea.d.ts +0 -185
@@ -806,7 +806,8 @@ export type GetDeviceInfoResult = {
806
806
  isRoot?: boolean,
807
807
  /**
808
808
  * 是否是模拟器
809
- *
809
+ *
810
+ * @deprecated 已废弃,由于合规问题在4.51版本后不会采集传感器信息,会影响准确度,建议使用`isSimulator()`代替。
810
811
  * @uniPlatform
811
812
  * {
812
813
  * "app": {
@@ -1787,4 +1788,77 @@ export interface Uni {
1787
1788
  * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/base/system/wx.getDeviceInfo.html
1788
1789
  */
1789
1790
  getDeviceInfo(options?: GetDeviceInfoOptions | null): GetDeviceInfoResult;
1791
+
1792
+ /**
1793
+ * 判断当前是否是模拟器,Android设备上会采集传感器信息。
1794
+ *
1795
+ * @uniPlatform
1796
+ * {
1797
+ * "app": {
1798
+ * "android": {
1799
+ * "osVer": "5.0",
1800
+ * "uniVer": "x",
1801
+ * "unixVer": "4.51"
1802
+ * },
1803
+ * "ios": {
1804
+ * "osVer": "x",
1805
+ * "uniVer": "x",
1806
+ * "unixVer": "x"
1807
+ * },
1808
+ * "harmony": {
1809
+ * "osVer": "x",
1810
+ * "uniVer": "x",
1811
+ * "unixVer": "x"
1812
+ * }
1813
+ * },
1814
+ * "mp": {
1815
+ * "weixin": {
1816
+ * "hostVer": "√",
1817
+ * "uniVer": "x",
1818
+ * "unixVer": "x"
1819
+ * },
1820
+ * "alipay": {
1821
+ * "hostVer": "√",
1822
+ * "uniVer": "x",
1823
+ * "unixVer": "x"
1824
+ * },
1825
+ * "baidu": {
1826
+ * "hostVer": "√",
1827
+ * "uniVer": "x",
1828
+ * "unixVer": "x"
1829
+ * },
1830
+ * "toutiao": {
1831
+ * "hostVer": "√",
1832
+ * "uniVer": "x",
1833
+ * "unixVer": "x"
1834
+ * },
1835
+ * "lark": {
1836
+ * "hostVer": "√",
1837
+ * "uniVer": "x",
1838
+ * "unixVer": "x"
1839
+ * },
1840
+ * "qq": {
1841
+ * "hostVer": "√",
1842
+ * "uniVer": "x",
1843
+ * "unixVer": "x"
1844
+ * },
1845
+ * "kuaishou": {
1846
+ * "hostVer": "√",
1847
+ * "uniVer": "x",
1848
+ * "unixVer": "x"
1849
+ * },
1850
+ * "jd": {
1851
+ * "hostVer": "√",
1852
+ * "uniVer": "x",
1853
+ * "unixVer": "x"
1854
+ * }
1855
+ * },
1856
+ * "web": {
1857
+ * "uniVer": "x",
1858
+ * "unixVer": "x"
1859
+ * }
1860
+ * }
1861
+ */
1862
+ isSimulator(): boolean;
1863
+
1790
1864
  }
@@ -9,6 +9,7 @@ import {
9
9
  LoadFontFaceFailCallback as LoadFontFaceFailCallbackOrigin,
10
10
  LoadFontFaceComplete as LoadFontFaceCompleteOrigin,
11
11
  LoadFontFaceCompleteCallback as LoadFontFaceCompleteCallbackOrigin,
12
+ LoadFontFace as LoadFontFaceOrigin,
12
13
  Uni as UniOrigin
13
14
  } from './interface'
14
15
 
@@ -22,5 +23,6 @@ declare global {
22
23
  type LoadFontFaceFailCallback = LoadFontFaceFailCallbackOrigin
23
24
  type LoadFontFaceComplete = LoadFontFaceCompleteOrigin
24
25
  type LoadFontFaceCompleteCallback = LoadFontFaceCompleteCallbackOrigin
26
+ type LoadFontFace = LoadFontFaceOrigin
25
27
  interface Uni extends UniOrigin { }
26
28
  }
@@ -9,4 +9,5 @@ export {
9
9
  LoadFontFaceFailCallback,
10
10
  LoadFontFaceComplete,
11
11
  LoadFontFaceCompleteCallback,
12
+ LoadFontFace,
12
13
  } from './interface'
@@ -599,6 +599,7 @@ export type LoadFontFaceFailCallback = (error: LoadFontFaceFail) => void
599
599
 
600
600
  export type LoadFontFaceComplete = AsyncApiResult
601
601
  export type LoadFontFaceCompleteCallback = (res: LoadFontFaceComplete) => void
602
+ export type LoadFontFace = (options: LoadFontFaceOptions) => Promise<LoadFontFaceSuccess> | null
602
603
 
603
604
  export interface Uni {
604
605
  /**
@@ -620,9 +621,9 @@ export interface Uni {
620
621
  * "unixVer": "4.10"
621
622
  * },
622
623
  * "harmony": {
623
- * "osVer": "x",
624
+ * "osVer": "3.0",
624
625
  * "uniVer": "x",
625
- * "unixVer": "x"
626
+ * "unixVer": "4.51"
626
627
  * }
627
628
  * },
628
629
  * "mp": {
@@ -674,7 +675,5 @@ export interface Uni {
674
675
  * }
675
676
  * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/ui/font/wx.loadFontFace.html
676
677
  */
677
- loadFontFace(
678
- options: LoadFontFaceOptions,
679
- ): Promise<LoadFontFaceSuccess> | null
678
+ loadFontFace: LoadFontFace
680
679
  }
@@ -90,17 +90,6 @@ import {
90
90
  ChooseFileComplete as ChooseFileCompleteOrigin,
91
91
  ChooseFileCompleteCallback as ChooseFileCompleteCallbackOrigin,
92
92
  ChooseFileOptions as ChooseFileOptionsOrigin,
93
- ChooseMediaFileType as ChooseMediaFileTypeOrigin,
94
- ChooseMediaTempFile as ChooseMediaTempFileOrigin,
95
- ChooseMediaSuccess as ChooseMediaSuccessOrigin,
96
- ChooseMediaFail as ChooseMediaFailOrigin,
97
- ChooseMediaSuccessCallback as ChooseMediaSuccessCallbackOrigin,
98
- ChooseMediaFailCallback as ChooseMediaFailCallbackOrigin,
99
- ChooseMediaCompleteCallback as ChooseMediaCompleteCallbackOrigin,
100
- ChooseMediaPageOrientation as ChooseMediaPageOrientationOrigin,
101
- ChooseMediaAlbumMode as ChooseMediaAlbumModeOrigin,
102
- ChooseMediaOptions as ChooseMediaOptionsOrigin,
103
- ChooseMedia as ChooseMediaOrigin,
104
93
  Uni as UniOrigin
105
94
  } from './interface'
106
95
 
@@ -195,16 +184,5 @@ declare global {
195
184
  type ChooseFileComplete = ChooseFileCompleteOrigin
196
185
  type ChooseFileCompleteCallback = ChooseFileCompleteCallbackOrigin
197
186
  type ChooseFileOptions = ChooseFileOptionsOrigin
198
- type ChooseMediaFileType = ChooseMediaFileTypeOrigin
199
- type ChooseMediaTempFile = ChooseMediaTempFileOrigin
200
- type ChooseMediaSuccess = ChooseMediaSuccessOrigin
201
- type ChooseMediaFail = ChooseMediaFailOrigin
202
- type ChooseMediaSuccessCallback = ChooseMediaSuccessCallbackOrigin
203
- type ChooseMediaFailCallback = ChooseMediaFailCallbackOrigin
204
- type ChooseMediaCompleteCallback = ChooseMediaCompleteCallbackOrigin
205
- type ChooseMediaPageOrientation = ChooseMediaPageOrientationOrigin
206
- type ChooseMediaAlbumMode = ChooseMediaAlbumModeOrigin
207
- type ChooseMediaOptions = ChooseMediaOptionsOrigin
208
- type ChooseMedia = ChooseMediaOrigin
209
187
  interface Uni extends UniOrigin { }
210
188
  }
@@ -90,15 +90,4 @@ export {
90
90
  ChooseFileComplete,
91
91
  ChooseFileCompleteCallback,
92
92
  ChooseFileOptions,
93
- ChooseMediaFileType,
94
- ChooseMediaTempFile,
95
- ChooseMediaSuccess,
96
- ChooseMediaFail,
97
- ChooseMediaSuccessCallback,
98
- ChooseMediaFailCallback,
99
- ChooseMediaCompleteCallback,
100
- ChooseMediaPageOrientation,
101
- ChooseMediaAlbumMode,
102
- ChooseMediaOptions,
103
- ChooseMedia,
104
93
  } from './interface'