@dcloudio/uni-app-x 0.7.121 → 0.7.122

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 (110) hide show
  1. package/README.md +87 -0
  2. package/package.json +1 -1
  3. package/types/dom2-internal/UniCommon.d.ts +7 -2
  4. package/types/dom2-internal/UniNativeDefines.d.ts +7 -2
  5. package/types/uni/uts-plugin-api/global.d.ts +8 -0
  6. package/types/uni/uts-plugin-api/index.d.ts +8 -0
  7. package/types/uni/uts-plugin-api/lib/uni-accelerometer/utssdk/global.d.ts +35 -0
  8. package/types/uni/uts-plugin-api/lib/uni-accelerometer/utssdk/index.d.ts +17 -0
  9. package/types/uni/uts-plugin-api/lib/uni-accelerometer/utssdk/interface.d.ts +359 -0
  10. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +323 -1294
  11. package/types/uni/uts-plugin-api/lib/uni-calendar/utssdk/global.d.ts +35 -0
  12. package/types/uni/uts-plugin-api/lib/uni-calendar/utssdk/index.d.ts +17 -0
  13. package/types/uni/uts-plugin-api/lib/uni-calendar/utssdk/interface.d.ts +944 -0
  14. package/types/uni/uts-plugin-api/lib/uni-canvas-dom2/utssdk/interface.d.ts +2 -1
  15. package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-compass/utssdk/global.d.ts +16 -6
  16. package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-compass/utssdk/index.d.ts +9 -3
  17. package/types/uni/uts-plugin-api/lib/uni-compass/utssdk/interface.d.ts +353 -0
  18. package/types/uni/uts-plugin-api/lib/uni-editor/utssdk/global.d.ts +2 -0
  19. package/types/uni/uts-plugin-api/lib/uni-editor/utssdk/index.d.ts +1 -0
  20. package/types/uni/uts-plugin-api/lib/uni-editor/utssdk/interface.d.ts +144 -110
  21. package/types/uni/uts-plugin-api/lib/uni-gyroscope/utssdk/global.d.ts +35 -0
  22. package/types/uni/uts-plugin-api/lib/uni-gyroscope/utssdk/index.d.ts +17 -0
  23. package/types/uni/uts-plugin-api/lib/uni-gyroscope/utssdk/interface.d.ts +362 -0
  24. package/types/uni/uts-plugin-api/lib/uni-memorywarning/utssdk/global.d.ts +21 -0
  25. package/types/uni/uts-plugin-api/lib/uni-memorywarning/utssdk/index.d.ts +10 -0
  26. package/types/uni/uts-plugin-api/lib/uni-memorywarning/utssdk/interface.d.ts +20 -0
  27. package/types/uni/uts-plugin-api/lib/uni-openLocation/utssdk/global.d.ts +23 -0
  28. package/types/uni/uts-plugin-api/lib/uni-openLocation/utssdk/index.d.ts +11 -0
  29. package/types/uni/uts-plugin-api/lib/uni-openLocation/utssdk/interface.d.ts +418 -0
  30. package/types/uni/uts-plugin-api/lib/uni-phoneContact/utssdk/global.d.ts +49 -0
  31. package/types/uni/uts-plugin-api/lib/uni-phoneContact/utssdk/index.d.ts +24 -0
  32. package/types/uni/uts-plugin-api/lib/uni-phoneContact/utssdk/interface.d.ts +349 -0
  33. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/global.d.ts +2 -0
  34. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/index.d.ts +1 -0
  35. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +83 -124
  36. package/types/uni/uts-plugin-api/lib/uni-screenBrightness/utssdk/interface.d.ts +3 -3
  37. package/types/uni/uts-plugin-api/lib/uni-vibrate/utssdk/global.d.ts +27 -0
  38. package/types/uni/uts-plugin-api/lib/uni-vibrate/utssdk/index.d.ts +13 -0
  39. package/types/uni/uts-plugin-api/lib/uni-vibrate/utssdk/interface.d.ts +88 -0
  40. package/types/uni/uts-plugin-biz/global.d.ts +9 -0
  41. package/types/uni/uts-plugin-biz/index.d.ts +9 -0
  42. package/types/uni/uts-plugin-biz/lib/uni-accelerometer/utssdk/global.d.ts +35 -0
  43. package/types/uni/uts-plugin-biz/lib/uni-accelerometer/utssdk/index.d.ts +17 -0
  44. package/types/uni/uts-plugin-biz/lib/uni-accelerometer/utssdk/interface.d.ts +359 -0
  45. package/types/uni/uts-plugin-biz/lib/uni-authentication/utssdk/global.d.ts +59 -0
  46. package/types/uni/uts-plugin-biz/lib/uni-authentication/utssdk/index.d.ts +29 -0
  47. package/types/uni/uts-plugin-biz/lib/uni-authentication/utssdk/interface.d.ts +371 -0
  48. package/types/uni/uts-plugin-biz/lib/uni-calendar/utssdk/global.d.ts +35 -0
  49. package/types/uni/uts-plugin-biz/lib/uni-calendar/utssdk/index.d.ts +17 -0
  50. package/types/uni/uts-plugin-biz/lib/uni-calendar/utssdk/interface.d.ts +944 -0
  51. package/types/uni/uts-plugin-biz/lib/uni-compass/utssdk/global.d.ts +35 -0
  52. package/types/uni/uts-plugin-biz/lib/uni-compass/utssdk/index.d.ts +17 -0
  53. package/types/uni/uts-plugin-biz/lib/uni-compass/utssdk/interface.d.ts +353 -0
  54. package/types/uni/uts-plugin-biz/lib/uni-gyroscope/utssdk/global.d.ts +35 -0
  55. package/types/uni/uts-plugin-biz/lib/uni-gyroscope/utssdk/index.d.ts +17 -0
  56. package/types/uni/uts-plugin-biz/lib/uni-gyroscope/utssdk/interface.d.ts +362 -0
  57. package/types/uni/uts-plugin-biz/lib/uni-memorywarning/utssdk/global.d.ts +21 -0
  58. package/types/uni/uts-plugin-biz/lib/uni-memorywarning/utssdk/index.d.ts +10 -0
  59. package/types/uni/uts-plugin-biz/lib/uni-memorywarning/utssdk/interface.d.ts +20 -0
  60. package/types/uni/uts-plugin-biz/lib/uni-phoneContact/utssdk/global.d.ts +49 -0
  61. package/types/uni/uts-plugin-biz/lib/uni-phoneContact/utssdk/index.d.ts +24 -0
  62. package/types/uni/uts-plugin-biz/lib/uni-phoneContact/utssdk/interface.d.ts +349 -0
  63. package/types/uni/uts-plugin-biz/lib/uni-screenBrightness/utssdk/global.d.ts +57 -0
  64. package/types/uni/uts-plugin-biz/lib/uni-screenBrightness/utssdk/index.d.ts +28 -0
  65. package/types/uni/uts-plugin-biz/lib/uni-screenBrightness/utssdk/interface.d.ts +1172 -0
  66. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +6 -1
  67. package/types/uni/uts-plugin-biz/lib/uni-vibrate/utssdk/global.d.ts +27 -0
  68. package/types/uni/uts-plugin-biz/lib/uni-vibrate/utssdk/index.d.ts +13 -0
  69. package/types/uni/uts-plugin-biz/lib/uni-vibrate/utssdk/interface.d.ts +88 -0
  70. package/types/uni/uts-plugin-component/global.d.ts +8 -1
  71. package/types/uni/uts-plugin-component/index.d.ts +8 -1
  72. package/types/uni/uts-plugin-component/lib/uni-accelerometer/utssdk/global.d.ts +35 -0
  73. package/types/uni/uts-plugin-component/lib/uni-accelerometer/utssdk/index.d.ts +17 -0
  74. package/types/uni/uts-plugin-component/lib/uni-accelerometer/utssdk/interface.d.ts +359 -0
  75. package/types/uni/uts-plugin-component/lib/uni-authentication/utssdk/interface.d.ts +1342 -371
  76. package/types/uni/uts-plugin-component/lib/uni-calendar/utssdk/global.d.ts +35 -0
  77. package/types/uni/uts-plugin-component/lib/uni-calendar/utssdk/index.d.ts +17 -0
  78. package/types/uni/uts-plugin-component/lib/uni-calendar/utssdk/interface.d.ts +944 -0
  79. package/types/uni/uts-plugin-component/lib/uni-canvas-dom2/utssdk/interface.d.ts +2 -1
  80. package/types/uni/uts-plugin-component/lib/uni-compass/utssdk/global.d.ts +35 -0
  81. package/types/uni/uts-plugin-component/lib/uni-compass/utssdk/index.d.ts +17 -0
  82. package/types/uni/uts-plugin-component/lib/uni-compass/utssdk/interface.d.ts +353 -0
  83. package/types/uni/uts-plugin-component/lib/uni-editor/utssdk/global.d.ts +2 -0
  84. package/types/uni/uts-plugin-component/lib/uni-editor/utssdk/index.d.ts +1 -0
  85. package/types/uni/uts-plugin-component/lib/uni-editor/utssdk/interface.d.ts +144 -110
  86. package/types/uni/uts-plugin-component/lib/uni-editor-global/utssdk/interface.d.ts +13 -4
  87. package/types/uni/uts-plugin-component/lib/uni-gyroscope/utssdk/global.d.ts +35 -0
  88. package/types/uni/uts-plugin-component/lib/uni-gyroscope/utssdk/index.d.ts +17 -0
  89. package/types/uni/uts-plugin-component/lib/uni-gyroscope/utssdk/interface.d.ts +362 -0
  90. package/types/uni/uts-plugin-component/lib/uni-memorywarning/utssdk/global.d.ts +21 -0
  91. package/types/uni/uts-plugin-component/lib/uni-memorywarning/utssdk/index.d.ts +10 -0
  92. package/types/uni/uts-plugin-component/lib/uni-memorywarning/utssdk/interface.d.ts +20 -0
  93. package/types/uni/uts-plugin-component/lib/uni-openLocation/utssdk/global.d.ts +23 -0
  94. package/types/uni/uts-plugin-component/lib/uni-openLocation/utssdk/index.d.ts +11 -0
  95. package/types/uni/uts-plugin-component/lib/uni-openLocation/utssdk/interface.d.ts +420 -0
  96. package/types/uni/uts-plugin-component/lib/uni-phoneContact/utssdk/global.d.ts +49 -0
  97. package/types/uni/uts-plugin-component/lib/uni-phoneContact/utssdk/index.d.ts +24 -0
  98. package/types/uni/uts-plugin-component/lib/uni-phoneContact/utssdk/interface.d.ts +349 -0
  99. package/types/uni/uts-plugin-component/lib/uni-privacy/utssdk/global.d.ts +2 -0
  100. package/types/uni/uts-plugin-component/lib/uni-privacy/utssdk/index.d.ts +1 -0
  101. package/types/uni/uts-plugin-component/lib/uni-privacy/utssdk/interface.d.ts +132 -75
  102. package/types/uni/uts-plugin-component/lib/uni-screenBrightness/utssdk/interface.d.ts +3 -3
  103. package/types/uni/uts-plugin-component/lib/uni-vibrate/utssdk/global.d.ts +27 -0
  104. package/types/uni/uts-plugin-component/lib/uni-vibrate/utssdk/index.d.ts +13 -0
  105. package/types/uni/uts-plugin-component/lib/uni-vibrate/utssdk/interface.d.ts +88 -0
  106. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/global.d.ts +0 -12
  107. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/index.d.ts +0 -1
  108. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +0 -917
  109. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +0 -1095
  110. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +0 -253
@@ -1,253 +0,0 @@
1
- export interface Uni {
2
- /**
3
- * 监听内存不足告警事件。
4
- *
5
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/memory.html#onmemorywarning
6
- * @tutorial_uni_app https://uniapp.dcloud.io/api/system/memory.html#onmemorywarning
7
- * @uniPlatform {
8
- * "app": {
9
- * "android": {
10
- * "osVer": "5.0",
11
- * "uniVer": "3.6.9",
12
- * "unixVer": "x"
13
- * },
14
- * "ios": {
15
- * "osVer": "9.0",
16
- * "uniVer": "3.6.11",
17
- * "unixVer": "x"
18
- * },
19
- * "harmony": {
20
- * "osVer": "x",
21
- * "uniVer": "x",
22
- * "unixVer": "x"
23
- * }
24
- * },
25
- * "mp": {
26
- * "weixin": {
27
- * "hostVer": "2.0.2",
28
- * "uniVer": "√",
29
- * "unixVer": "4.41"
30
- * },
31
- * "alipay": {
32
- * "hostVer": "√",
33
- * "uniVer": "√",
34
- * "unixVer": "x"
35
- * },
36
- * "baidu": {
37
- * "hostVer": "√",
38
- * "uniVer": "√",
39
- * "unixVer": "x"
40
- * },
41
- * "toutiao": {
42
- * "hostVer": "x",
43
- * "uniVer": "x",
44
- * "unixVer": "x"
45
- * },
46
- * "lark": {
47
- * "hostVer": "x",
48
- * "uniVer": "x",
49
- * "unixVer": "x"
50
- * },
51
- * "qq": {
52
- * "hostVer": "√",
53
- * "uniVer": "√",
54
- * "unixVer": "x"
55
- * },
56
- * "kuaishou": {
57
- * "hostVer": "√",
58
- * "uniVer": "√",
59
- * "unixVer": "x"
60
- * },
61
- * "jd": {
62
- * "hostVer": "√",
63
- * "uniVer": "√",
64
- * "unixVer": "x"
65
- * }
66
- * },
67
- * "web": {
68
- * "uniVer": "x",
69
- * "unixVer": "x"
70
- * }
71
- * }
72
- * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/device/memory/wx.onMemoryWarning.html
73
- */
74
- onMemoryWarning: OnMemoryWarning;
75
- /**
76
- * 取消监听内存不足告警事件。不传入 callback 则取消所有监听。
77
- *
78
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/memory.html#offmemorywarning
79
- * @tutorial_uni_app https://uniapp.dcloud.net.cn/api/system/memory.html#offmemorywarning
80
- * @uniPlatform {
81
- * "app": {
82
- * "android": {
83
- * "osVer": "x",
84
- * "uniVer": "√",
85
- * "unixVer": "x"
86
- * },
87
- * "ios": {
88
- * "osVer": "x",
89
- * "uniVer": "x",
90
- * "unixVer": "x"
91
- * },
92
- * "harmony": {
93
- * "osVer": "x",
94
- * "uniVer": "x",
95
- * "unixVer": "x"
96
- * }
97
- * },
98
- * "mp": {
99
- * "weixin": {
100
- * "hostVer": "2.9.0",
101
- * "uniVer": "√",
102
- * "unixVer": "4.41"
103
- * },
104
- * "alipay": {
105
- * "hostVer": "√",
106
- * "uniVer": "√",
107
- * "unixVer": "x"
108
- * },
109
- * "baidu": {
110
- * "hostVer": "√",
111
- * "uniVer": "√",
112
- * "unixVer": "x"
113
- * },
114
- * "toutiao": {
115
- * "hostVer": "x",
116
- * "uniVer": "x",
117
- * "unixVer": "x"
118
- * },
119
- * "lark": {
120
- * "hostVer": "x",
121
- * "uniVer": "x",
122
- * "unixVer": "x"
123
- * },
124
- * "qq": {
125
- * "hostVer": "√",
126
- * "uniVer": "√",
127
- * "unixVer": "x"
128
- * },
129
- * "kuaishou": {
130
- * "hostVer": "√",
131
- * "uniVer": "√",
132
- * "unixVer": "x"
133
- * },
134
- * "jd": {
135
- * "hostVer": "√",
136
- * "uniVer": "√",
137
- * "unixVer": "x"
138
- * }
139
- * },
140
- * "web": {
141
- * "uniVer": "x",
142
- * "unixVer": "x"
143
- * }
144
- * }
145
- * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/device/memory/wx.offMemoryWarning.html
146
- */
147
- offMemoryWarning: OffMemoryWarning;
148
- }
149
-
150
- export type OnMemoryWarning = (callback: OnMemoryWarningCallback) => void;
151
- export type OnMemoryWarningCallbackResult = {
152
- /**
153
- * 仅 Android 有该字段,对应系统内存告警等级宏定义
154
- * @uniPlatform {
155
- * "mp": {
156
- * "weixin": {
157
- * "hostVer": "√",
158
- * "uniVer": "√",
159
- * "unixVer": "4.41"
160
- * },
161
- * "alipay": {
162
- * "hostVer": "x",
163
- * "uniVer": "x",
164
- * "unixVer": "x"
165
- * },
166
- * "baidu": {
167
- * "hostVer": "x",
168
- * "uniVer": "x",
169
- * "unixVer": "x"
170
- * },
171
- * "toutiao": {
172
- * "hostVer": "x",
173
- * "uniVer": "x",
174
- * "unixVer": "x"
175
- * },
176
- * "lark": {
177
- * "hostVer": "x",
178
- * "uniVer": "x",
179
- * "unixVer": "x"
180
- * },
181
- * "qq": {
182
- * "hostVer": "x",
183
- * "uniVer": "x",
184
- * "unixVer": "x"
185
- * },
186
- * "kuaishou": {
187
- * "hostVer": "x",
188
- * "uniVer": "x",
189
- * "unixVer": "x"
190
- * },
191
- * "jd": {
192
- * "hostVer": "x",
193
- * "uniVer": "x",
194
- * "unixVer": "x"
195
- * }
196
- * }
197
- * }
198
- */
199
- level: number
200
- };
201
- export type OnMemoryWarningCallback = (result: OnMemoryWarningCallbackResult) => void;
202
- export type OffMemoryWarning = (callback: OffMemoryWarningCallback) => void;
203
- export type OffMemoryWarningCallbackResult = {
204
- /**
205
- * 仅 Android 有该字段,对应系统内存告警等级宏定义
206
- * @uniPlatform {
207
- * "mp": {
208
- * "weixin": {
209
- * "hostVer": "√",
210
- * "uniVer": "√",
211
- * "unixVer": "4.41"
212
- * },
213
- * "alipay": {
214
- * "hostVer": "x",
215
- * "uniVer": "x",
216
- * "unixVer": "x"
217
- * },
218
- * "baidu": {
219
- * "hostVer": "x",
220
- * "uniVer": "x",
221
- * "unixVer": "x"
222
- * },
223
- * "toutiao": {
224
- * "hostVer": "x",
225
- * "uniVer": "x",
226
- * "unixVer": "x"
227
- * },
228
- * "lark": {
229
- * "hostVer": "x",
230
- * "uniVer": "x",
231
- * "unixVer": "x"
232
- * },
233
- * "qq": {
234
- * "hostVer": "x",
235
- * "uniVer": "x",
236
- * "unixVer": "x"
237
- * },
238
- * "kuaishou": {
239
- * "hostVer": "x",
240
- * "uniVer": "x",
241
- * "unixVer": "x"
242
- * },
243
- * "jd": {
244
- * "hostVer": "x",
245
- * "uniVer": "x",
246
- * "unixVer": "x"
247
- * }
248
- * }
249
- * }
250
- */
251
- level: number
252
- };
253
- export type OffMemoryWarningCallback = (result: OffMemoryWarningCallbackResult) => void;