@dcloudio/uni-app-x 0.7.38 → 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 (130) hide show
  1. package/package.json +9 -7
  2. package/types/UniPage.d.ts +172 -22
  3. package/types/app.d.ts +31 -31
  4. package/types/native/CSSStyleDeclaration.d.ts +16 -2
  5. package/types/native/CanvasRenderingContext2D.d.ts +1 -1
  6. package/types/native/DOMRect.d.ts +430 -10
  7. package/types/native/DrawableContext.d.ts +1137 -45
  8. package/types/native/IUniElement.d.ts +1981 -138
  9. package/types/native/UniNativePage.d.ts +94 -0
  10. package/types/native/UniResizeObserver.d.ts +215 -5
  11. package/types/native/UniSafeArea.d.ts +185 -0
  12. package/types/native/UniVideoElement.d.ts +432 -0
  13. package/types/native/global.d.ts +21 -8
  14. package/types/native/index.d.ts +1 -0
  15. package/types/page.d.ts +45 -3
  16. package/types/uni/env/index.d.ts +81 -81
  17. package/types/uni/uni-map-tencent-map.d.ts +19 -15
  18. package/types/uni/uts-plugin-api/global.d.ts +62 -63
  19. package/types/uni/uts-plugin-api/index.d.ts +62 -63
  20. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/global.d.ts +10 -12
  21. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/index.d.ts +5 -6
  22. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/interface.d.ts +278 -217
  23. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +1600 -59
  24. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +74 -73
  25. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/global.d.ts +0 -2
  26. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/index.d.ts +0 -1
  27. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +1297 -333
  28. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +74 -73
  29. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +783 -783
  30. package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/interface.d.ts +411 -153
  31. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +533 -135
  32. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +2649 -1987
  33. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +423 -63
  34. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +289 -68
  35. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +158 -90
  36. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +315 -315
  37. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/global.d.ts +62 -62
  38. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/index.d.ts +31 -31
  39. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +62 -62
  40. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +2781 -2175
  41. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +490 -490
  42. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +2538 -2005
  43. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +4 -0
  44. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +2 -0
  45. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +713 -115
  46. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +336 -85
  47. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +3 -3
  48. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +732 -225
  49. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +571 -64
  50. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +874 -830
  51. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +692 -274
  52. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +284 -63
  53. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +1013 -969
  54. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +1448 -243
  55. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +75 -75
  56. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +2 -2
  57. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +318 -53
  58. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +202 -103
  59. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +264 -87
  60. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +6 -0
  61. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +3 -0
  62. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +5521 -1939
  63. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +472 -264
  64. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +5752 -3618
  65. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +1215 -159
  66. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +339 -33
  67. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +457 -53
  68. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +330 -65
  69. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +890 -639
  70. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +141 -92
  71. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +4322 -2391
  72. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +260 -126
  73. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +488 -336
  74. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +77 -77
  75. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +553 -53
  76. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +1845 -867
  77. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +2501 -513
  78. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/global.d.ts +8 -0
  79. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/index.d.ts +4 -0
  80. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +1103 -516
  81. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +2306 -1660
  82. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +2528 -1752
  83. package/types/uni/uts-plugin-biz/global.d.ts +6 -4
  84. package/types/uni/uts-plugin-biz/index.d.ts +6 -4
  85. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +406 -39
  86. package/types/uni/{uts-plugin-api → uts-plugin-biz}/lib/uni-crash/utssdk/global.d.ts +4 -0
  87. package/types/uni/{uts-plugin-api → uts-plugin-biz}/lib/uni-crash/utssdk/index.d.ts +2 -0
  88. package/types/uni/{uts-plugin-api → uts-plugin-biz}/lib/uni-crash/utssdk/interface.d.ts +14 -1
  89. package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/interface.d.ts +80 -28
  90. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +126 -0
  91. package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/global.d.ts +24 -0
  92. package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/index.d.ts +11 -0
  93. package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/interface.d.ts +204 -0
  94. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/global.d.ts +42 -36
  95. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/index.d.ts +21 -18
  96. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +514 -216
  97. package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/global.d.ts +64 -0
  98. package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/index.d.ts +31 -0
  99. package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/interface.d.ts +900 -0
  100. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +313 -313
  101. package/types/uni/uts-plugin-extend/global.d.ts +1 -4
  102. package/types/uni/uts-plugin-extend/index.d.ts +0 -4
  103. package/types/uni/uts-plugin-extend/lib/uni-__f__/utssdk/global.d.ts +7 -0
  104. package/types/uni/uts-plugin-extend/lib/uni-__f__/utssdk/index.d.ts +0 -0
  105. package/types/uni/uts-plugin-extend/lib/uni-__f__/utssdk/interface.d.ts +3 -0
  106. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +825 -273
  107. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +4400 -340
  108. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +1000 -268
  109. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/interface.d.ts +77 -77
  110. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +6 -6
  111. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +1495 -384
  112. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +222 -132
  113. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/interface.d.ts +923 -67
  114. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/interface.d.ts +2 -2
  115. package/types/uni-cloud/interface.d.ts +13 -13
  116. package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/global.d.ts +0 -21
  117. package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/index.d.ts +0 -9
  118. package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/interface.d.ts +0 -151
  119. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/global.d.ts +0 -11
  120. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/index.d.ts +0 -4
  121. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +0 -224
  122. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/global.d.ts +0 -53
  123. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/index.d.ts +0 -25
  124. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/interface.d.ts +0 -487
  125. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +0 -7
  126. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +0 -1
  127. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +0 -716
  128. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/global.d.ts +0 -9
  129. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/index.d.ts +0 -1
  130. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/interface.d.ts +0 -165
@@ -1,4 +1,4 @@
1
- export type DescriptorOptions = {
1
+ export type DescriptorOptions = {
2
2
  /**
3
3
  * 屏幕方向( landscape 或 portrait )
4
4
  * - landscape:
@@ -32,10 +32,10 @@ export type DescriptorOptions = {
32
32
  }
33
33
 
34
34
  export type MediaQueryObserveResult = {
35
- /**
36
- * 页面的当前状态是否满足所指定的 media query
37
- */
38
- matches: boolean;
35
+ /**
36
+ * 页面的当前状态是否满足所指定的 media query
37
+ */
38
+ matches: boolean;
39
39
  }
40
40
 
41
41
  export type MediaQueryObserver = {
@@ -51,76 +51,76 @@ export type MediaQueryObserver = {
51
51
 
52
52
 
53
53
  export interface Uni {
54
- /**
55
- * 创建并返回一个 MediaQueryObserver 对象实例。context: 自定义组件实例。
56
- *
57
- * @tutorial http://uniapp.dcloud.io/api/ui/media-query-observer?id=createmediaqueryobserver
58
- * @tutorial-uni-app http://uniapp.dcloud.io/api/ui/media-query-observer?id=createmediaqueryobserver
59
- * @uniPlatform {
60
- * "app": {
61
- * "android": {
62
- * "osVer": "5.0",
63
- * "uniVer": "√",
64
- * "unixVer": "x"
65
- * },
66
- * "ios": {
67
- * "osVer": "12.0",
68
- * "uniVer": "√",
69
- * "unixVer": "x"
70
- * },
71
- * "harmony": {
72
- * "osVer": "x",
73
- * "uniVer": "x",
74
- * "unixVer": "x"
75
- * }
76
- * },
77
- * "mp": {
78
- * "weixin": {
79
- * "hostVer": "√",
80
- * "uniVer": "√",
81
- * "unixVer": "4.35"
82
- * },
83
- * "alipay": {
84
- * "hostVer": "√",
85
- * "uniVer": "√",
86
- * "unixVer": "x"
87
- * },
88
- * "baidu": {
89
- * "hostVer": "√",
90
- * "uniVer": "√",
91
- * "unixVer": "x"
92
- * },
93
- * "toutiao": {
94
- * "hostVer": "√",
95
- * "uniVer": "√",
96
- * "unixVer": "x"
97
- * },
98
- * "lark": {
99
- * "hostVer": "√",
100
- * "uniVer": "√",
101
- * "unixVer": "x"
102
- * },
103
- * "qq": {
104
- * "hostVer": "√",
105
- * "uniVer": "√",
106
- * "unixVer": "x"
107
- * },
108
- * "kuaishou": {
109
- * "hostVer": "x",
110
- * "uniVer": "x",
111
- * "unixVer": "x"
112
- * },
113
- * "jd": {
114
- * "hostVer": "x",
115
- * "uniVer": "x",
116
- * "unixVer": "x"
117
- * }
118
- * },
119
- * "web": {
120
- * "uniVer": "√",
121
- * "unixVer": "4.0"
122
- * }
123
- * }
124
- */
125
- createMediaQueryObserver(context?: any): MediaQueryObserver
54
+ /**
55
+ * 创建并返回一个 MediaQueryObserver 对象实例。context: 自定义组件实例。
56
+ *
57
+ * @tutorial http://uniapp.dcloud.io/api/ui/media-query-observer?id=createmediaqueryobserver
58
+ * @tutorial_uni_app http://uniapp.dcloud.io/api/ui/media-query-observer?id=createmediaqueryobserver
59
+ * @uniPlatform {
60
+ * "app": {
61
+ * "android": {
62
+ * "osVer": "5.0",
63
+ * "uniVer": "√",
64
+ * "unixVer": "x"
65
+ * },
66
+ * "ios": {
67
+ * "osVer": "12.0",
68
+ * "uniVer": "√",
69
+ * "unixVer": "x"
70
+ * },
71
+ * "harmony": {
72
+ * "osVer": "x",
73
+ * "uniVer": "x",
74
+ * "unixVer": "x"
75
+ * }
76
+ * },
77
+ * "mp": {
78
+ * "weixin": {
79
+ * "hostVer": "√",
80
+ * "uniVer": "√",
81
+ * "unixVer": "4.41"
82
+ * },
83
+ * "alipay": {
84
+ * "hostVer": "√",
85
+ * "uniVer": "√",
86
+ * "unixVer": "x"
87
+ * },
88
+ * "baidu": {
89
+ * "hostVer": "√",
90
+ * "uniVer": "√",
91
+ * "unixVer": "x"
92
+ * },
93
+ * "toutiao": {
94
+ * "hostVer": "√",
95
+ * "uniVer": "√",
96
+ * "unixVer": "x"
97
+ * },
98
+ * "lark": {
99
+ * "hostVer": "√",
100
+ * "uniVer": "√",
101
+ * "unixVer": "x"
102
+ * },
103
+ * "qq": {
104
+ * "hostVer": "√",
105
+ * "uniVer": "√",
106
+ * "unixVer": "x"
107
+ * },
108
+ * "kuaishou": {
109
+ * "hostVer": "x",
110
+ * "uniVer": "x",
111
+ * "unixVer": "x"
112
+ * },
113
+ * "jd": {
114
+ * "hostVer": "x",
115
+ * "uniVer": "x",
116
+ * "unixVer": "x"
117
+ * }
118
+ * },
119
+ * "web": {
120
+ * "uniVer": "√",
121
+ * "unixVer": "4.0"
122
+ * }
123
+ * }
124
+ */
125
+ createMediaQueryObserver(context?: any): MediaQueryObserver
126
126
  }
@@ -3,7 +3,7 @@ export interface Uni {
3
3
  * 获取当前设置的语言
4
4
  *
5
5
  * @tutorial https://uniapp.dcloud.io/api/ui/locale.html#getlocale
6
- * @tutorial-uni-app https://uniapp.dcloud.io/api/ui/locale.html#getlocale
6
+ * @tutorial_uni_app https://uniapp.dcloud.io/api/ui/locale.html#getlocale
7
7
  * @uniPlatform {
8
8
  * "app": {
9
9
  * "android": {
@@ -26,7 +26,7 @@ export interface Uni {
26
26
  * "weixin": {
27
27
  * "hostVer": "√",
28
28
  * "uniVer": "√",
29
- * "unixVer": "4.35"
29
+ * "unixVer": "4.41"
30
30
  * },
31
31
  * "alipay": {
32
32
  * "hostVer": "√",
@@ -75,7 +75,7 @@ export interface Uni {
75
75
  * 设置当前语言
76
76
  *
77
77
  * @tutorial https://uniapp.dcloud.io/api/ui/locale.html#setlocale
78
- * @tutorial-uni-app https://uniapp.dcloud.io/api/ui/locale.html#setlocale
78
+ * @tutorial_uni_app https://uniapp.dcloud.io/api/ui/locale.html#setlocale
79
79
  * @uniPlatform {
80
80
  * "app": {
81
81
  * "android": {
@@ -98,7 +98,7 @@ export interface Uni {
98
98
  * "weixin": {
99
99
  * "hostVer": "√",
100
100
  * "uniVer": "√",
101
- * "unixVer": "4.35"
101
+ * "unixVer": "4.41"
102
102
  * },
103
103
  * "alipay": {
104
104
  * "hostVer": "√",
@@ -147,7 +147,7 @@ export interface Uni {
147
147
  * 设置当前语言
148
148
  *
149
149
  * @tutorial https://uniapp.dcloud.io/api/ui/locale.html#onlocalechange
150
- * @tutorial-uni-app https://uniapp.dcloud.io/api/ui/locale.html#onlocalechange
150
+ * @tutorial_uni_app https://uniapp.dcloud.io/api/ui/locale.html#onlocalechange
151
151
  * @uniPlatform {
152
152
  * "app": {
153
153
  * "android": {
@@ -170,7 +170,7 @@ export interface Uni {
170
170
  * "weixin": {
171
171
  * "hostVer": "√",
172
172
  * "uniVer": "√",
173
- * "unixVer": "4.35"
173
+ * "unixVer": "4.41"
174
174
  * },
175
175
  * "alipay": {
176
176
  * "hostVer": "√",