@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.
- package/README.md +87 -0
- package/package.json +1 -1
- package/types/dom2-internal/UniCommon.d.ts +7 -2
- package/types/dom2-internal/UniNativeDefines.d.ts +7 -2
- package/types/uni/uts-plugin-api/global.d.ts +8 -0
- package/types/uni/uts-plugin-api/index.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-accelerometer/utssdk/global.d.ts +35 -0
- package/types/uni/uts-plugin-api/lib/uni-accelerometer/utssdk/index.d.ts +17 -0
- package/types/uni/uts-plugin-api/lib/uni-accelerometer/utssdk/interface.d.ts +359 -0
- package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +323 -1294
- package/types/uni/uts-plugin-api/lib/uni-calendar/utssdk/global.d.ts +35 -0
- package/types/uni/uts-plugin-api/lib/uni-calendar/utssdk/index.d.ts +17 -0
- package/types/uni/uts-plugin-api/lib/uni-calendar/utssdk/interface.d.ts +944 -0
- package/types/uni/uts-plugin-api/lib/uni-canvas-dom2/utssdk/interface.d.ts +2 -1
- package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-compass/utssdk/global.d.ts +16 -6
- package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-compass/utssdk/index.d.ts +9 -3
- package/types/uni/uts-plugin-api/lib/uni-compass/utssdk/interface.d.ts +353 -0
- package/types/uni/uts-plugin-api/lib/uni-editor/utssdk/global.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-editor/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-editor/utssdk/interface.d.ts +144 -110
- package/types/uni/uts-plugin-api/lib/uni-gyroscope/utssdk/global.d.ts +35 -0
- package/types/uni/uts-plugin-api/lib/uni-gyroscope/utssdk/index.d.ts +17 -0
- package/types/uni/uts-plugin-api/lib/uni-gyroscope/utssdk/interface.d.ts +362 -0
- package/types/uni/uts-plugin-api/lib/uni-memorywarning/utssdk/global.d.ts +21 -0
- package/types/uni/uts-plugin-api/lib/uni-memorywarning/utssdk/index.d.ts +10 -0
- package/types/uni/uts-plugin-api/lib/uni-memorywarning/utssdk/interface.d.ts +20 -0
- package/types/uni/uts-plugin-api/lib/uni-openLocation/utssdk/global.d.ts +23 -0
- package/types/uni/uts-plugin-api/lib/uni-openLocation/utssdk/index.d.ts +11 -0
- package/types/uni/uts-plugin-api/lib/uni-openLocation/utssdk/interface.d.ts +418 -0
- package/types/uni/uts-plugin-api/lib/uni-phoneContact/utssdk/global.d.ts +49 -0
- package/types/uni/uts-plugin-api/lib/uni-phoneContact/utssdk/index.d.ts +24 -0
- package/types/uni/uts-plugin-api/lib/uni-phoneContact/utssdk/interface.d.ts +349 -0
- package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/global.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +83 -124
- package/types/uni/uts-plugin-api/lib/uni-screenBrightness/utssdk/interface.d.ts +3 -3
- package/types/uni/uts-plugin-api/lib/uni-vibrate/utssdk/global.d.ts +27 -0
- package/types/uni/uts-plugin-api/lib/uni-vibrate/utssdk/index.d.ts +13 -0
- package/types/uni/uts-plugin-api/lib/uni-vibrate/utssdk/interface.d.ts +88 -0
- package/types/uni/uts-plugin-biz/global.d.ts +9 -0
- package/types/uni/uts-plugin-biz/index.d.ts +9 -0
- package/types/uni/uts-plugin-biz/lib/uni-accelerometer/utssdk/global.d.ts +35 -0
- package/types/uni/uts-plugin-biz/lib/uni-accelerometer/utssdk/index.d.ts +17 -0
- package/types/uni/uts-plugin-biz/lib/uni-accelerometer/utssdk/interface.d.ts +359 -0
- package/types/uni/uts-plugin-biz/lib/uni-authentication/utssdk/global.d.ts +59 -0
- package/types/uni/uts-plugin-biz/lib/uni-authentication/utssdk/index.d.ts +29 -0
- package/types/uni/uts-plugin-biz/lib/uni-authentication/utssdk/interface.d.ts +371 -0
- package/types/uni/uts-plugin-biz/lib/uni-calendar/utssdk/global.d.ts +35 -0
- package/types/uni/uts-plugin-biz/lib/uni-calendar/utssdk/index.d.ts +17 -0
- package/types/uni/uts-plugin-biz/lib/uni-calendar/utssdk/interface.d.ts +944 -0
- package/types/uni/uts-plugin-biz/lib/uni-compass/utssdk/global.d.ts +35 -0
- package/types/uni/uts-plugin-biz/lib/uni-compass/utssdk/index.d.ts +17 -0
- package/types/uni/uts-plugin-biz/lib/uni-compass/utssdk/interface.d.ts +353 -0
- package/types/uni/uts-plugin-biz/lib/uni-gyroscope/utssdk/global.d.ts +35 -0
- package/types/uni/uts-plugin-biz/lib/uni-gyroscope/utssdk/index.d.ts +17 -0
- package/types/uni/uts-plugin-biz/lib/uni-gyroscope/utssdk/interface.d.ts +362 -0
- package/types/uni/uts-plugin-biz/lib/uni-memorywarning/utssdk/global.d.ts +21 -0
- package/types/uni/uts-plugin-biz/lib/uni-memorywarning/utssdk/index.d.ts +10 -0
- package/types/uni/uts-plugin-biz/lib/uni-memorywarning/utssdk/interface.d.ts +20 -0
- package/types/uni/uts-plugin-biz/lib/uni-phoneContact/utssdk/global.d.ts +49 -0
- package/types/uni/uts-plugin-biz/lib/uni-phoneContact/utssdk/index.d.ts +24 -0
- package/types/uni/uts-plugin-biz/lib/uni-phoneContact/utssdk/interface.d.ts +349 -0
- package/types/uni/uts-plugin-biz/lib/uni-screenBrightness/utssdk/global.d.ts +57 -0
- package/types/uni/uts-plugin-biz/lib/uni-screenBrightness/utssdk/index.d.ts +28 -0
- package/types/uni/uts-plugin-biz/lib/uni-screenBrightness/utssdk/interface.d.ts +1172 -0
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +6 -1
- package/types/uni/uts-plugin-biz/lib/uni-vibrate/utssdk/global.d.ts +27 -0
- package/types/uni/uts-plugin-biz/lib/uni-vibrate/utssdk/index.d.ts +13 -0
- package/types/uni/uts-plugin-biz/lib/uni-vibrate/utssdk/interface.d.ts +88 -0
- package/types/uni/uts-plugin-component/global.d.ts +8 -1
- package/types/uni/uts-plugin-component/index.d.ts +8 -1
- package/types/uni/uts-plugin-component/lib/uni-accelerometer/utssdk/global.d.ts +35 -0
- package/types/uni/uts-plugin-component/lib/uni-accelerometer/utssdk/index.d.ts +17 -0
- package/types/uni/uts-plugin-component/lib/uni-accelerometer/utssdk/interface.d.ts +359 -0
- package/types/uni/uts-plugin-component/lib/uni-authentication/utssdk/interface.d.ts +1342 -371
- package/types/uni/uts-plugin-component/lib/uni-calendar/utssdk/global.d.ts +35 -0
- package/types/uni/uts-plugin-component/lib/uni-calendar/utssdk/index.d.ts +17 -0
- package/types/uni/uts-plugin-component/lib/uni-calendar/utssdk/interface.d.ts +944 -0
- package/types/uni/uts-plugin-component/lib/uni-canvas-dom2/utssdk/interface.d.ts +2 -1
- package/types/uni/uts-plugin-component/lib/uni-compass/utssdk/global.d.ts +35 -0
- package/types/uni/uts-plugin-component/lib/uni-compass/utssdk/index.d.ts +17 -0
- package/types/uni/uts-plugin-component/lib/uni-compass/utssdk/interface.d.ts +353 -0
- package/types/uni/uts-plugin-component/lib/uni-editor/utssdk/global.d.ts +2 -0
- package/types/uni/uts-plugin-component/lib/uni-editor/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-component/lib/uni-editor/utssdk/interface.d.ts +144 -110
- package/types/uni/uts-plugin-component/lib/uni-editor-global/utssdk/interface.d.ts +13 -4
- package/types/uni/uts-plugin-component/lib/uni-gyroscope/utssdk/global.d.ts +35 -0
- package/types/uni/uts-plugin-component/lib/uni-gyroscope/utssdk/index.d.ts +17 -0
- package/types/uni/uts-plugin-component/lib/uni-gyroscope/utssdk/interface.d.ts +362 -0
- package/types/uni/uts-plugin-component/lib/uni-memorywarning/utssdk/global.d.ts +21 -0
- package/types/uni/uts-plugin-component/lib/uni-memorywarning/utssdk/index.d.ts +10 -0
- package/types/uni/uts-plugin-component/lib/uni-memorywarning/utssdk/interface.d.ts +20 -0
- package/types/uni/uts-plugin-component/lib/uni-openLocation/utssdk/global.d.ts +23 -0
- package/types/uni/uts-plugin-component/lib/uni-openLocation/utssdk/index.d.ts +11 -0
- package/types/uni/uts-plugin-component/lib/uni-openLocation/utssdk/interface.d.ts +420 -0
- package/types/uni/uts-plugin-component/lib/uni-phoneContact/utssdk/global.d.ts +49 -0
- package/types/uni/uts-plugin-component/lib/uni-phoneContact/utssdk/index.d.ts +24 -0
- package/types/uni/uts-plugin-component/lib/uni-phoneContact/utssdk/interface.d.ts +349 -0
- package/types/uni/uts-plugin-component/lib/uni-privacy/utssdk/global.d.ts +2 -0
- package/types/uni/uts-plugin-component/lib/uni-privacy/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-component/lib/uni-privacy/utssdk/interface.d.ts +132 -75
- package/types/uni/uts-plugin-component/lib/uni-screenBrightness/utssdk/interface.d.ts +3 -3
- package/types/uni/uts-plugin-component/lib/uni-vibrate/utssdk/global.d.ts +27 -0
- package/types/uni/uts-plugin-component/lib/uni-vibrate/utssdk/index.d.ts +13 -0
- package/types/uni/uts-plugin-component/lib/uni-vibrate/utssdk/interface.d.ts +88 -0
- package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/global.d.ts +0 -12
- package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/index.d.ts +0 -1
- package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +0 -917
- package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +0 -1095
- package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +0 -253
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
export type VibrateShortType = "heavy" | "medium" | "light"
|
|
2
|
+
|
|
3
|
+
export type VibrateShortSuccess = {
|
|
4
|
+
errMsg : string
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export type VibrateLongSuccess = {
|
|
8
|
+
errMsg : string
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export type VibrateErrorCode = 9001001 | 9001002 | 9001003
|
|
12
|
+
|
|
13
|
+
export interface VibrateFail extends IUniError {
|
|
14
|
+
errCode : VibrateErrorCode
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
type VibrateShortSuccessCallback = (result : VibrateShortSuccess) => void
|
|
18
|
+
type VibrateLongSuccessCallback = (result : VibrateLongSuccess) => void
|
|
19
|
+
type VibrateFailCallback = (result : VibrateFail) => void
|
|
20
|
+
type VibrateComplete = any
|
|
21
|
+
type VibrateCompleteCallback = (result : VibrateComplete) => void
|
|
22
|
+
|
|
23
|
+
export type VibrateShortOptions = {
|
|
24
|
+
type : VibrateShortType,
|
|
25
|
+
success ?: VibrateShortSuccessCallback,
|
|
26
|
+
fail ?: VibrateFailCallback,
|
|
27
|
+
complete ?: VibrateCompleteCallback
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export type VibrateLongOptions = {
|
|
31
|
+
success ?: VibrateLongSuccessCallback,
|
|
32
|
+
fail ?: VibrateFailCallback,
|
|
33
|
+
complete ?: VibrateCompleteCallback
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export type VibrateShort = (options : VibrateShortOptions) => void
|
|
37
|
+
export type VibrateLong = (options : VibrateLongOptions) => void
|
|
38
|
+
|
|
39
|
+
export interface Uni {
|
|
40
|
+
/**
|
|
41
|
+
* 使设备发生较短时间的振动。
|
|
42
|
+
*
|
|
43
|
+
* @uniPlatform {
|
|
44
|
+
* "app": {
|
|
45
|
+
* "android": {
|
|
46
|
+
* "osVer": "5.0",
|
|
47
|
+
* "uniVer": "√",
|
|
48
|
+
* "unixVer": "5.08"
|
|
49
|
+
* },
|
|
50
|
+
* "ios": {
|
|
51
|
+
* "osVer": "12.0",
|
|
52
|
+
* "uniVer": "√",
|
|
53
|
+
* "unixVer": "5.08"
|
|
54
|
+
* },
|
|
55
|
+
* "harmony": {
|
|
56
|
+
* "osVer": "3.0",
|
|
57
|
+
* "uniVer": "x",
|
|
58
|
+
* "unixVer": "5.08"
|
|
59
|
+
* }
|
|
60
|
+
* }
|
|
61
|
+
* }
|
|
62
|
+
*/
|
|
63
|
+
vibrateShort(options : VibrateShortOptions) : void
|
|
64
|
+
/**
|
|
65
|
+
* 使设备发生较长时间的振动。
|
|
66
|
+
*
|
|
67
|
+
* @uniPlatform {
|
|
68
|
+
* "app": {
|
|
69
|
+
* "android": {
|
|
70
|
+
* "osVer": "5.0",
|
|
71
|
+
* "uniVer": "√",
|
|
72
|
+
* "unixVer": "5.08"
|
|
73
|
+
* },
|
|
74
|
+
* "ios": {
|
|
75
|
+
* "osVer": "12.0",
|
|
76
|
+
* "uniVer": "√",
|
|
77
|
+
* "unixVer": "5.08"
|
|
78
|
+
* },
|
|
79
|
+
* "harmony": {
|
|
80
|
+
* "osVer": "3.0",
|
|
81
|
+
* "uniVer": "x",
|
|
82
|
+
* "unixVer": "5.08"
|
|
83
|
+
* }
|
|
84
|
+
* }
|
|
85
|
+
* }
|
|
86
|
+
*/
|
|
87
|
+
vibrateLong(options : VibrateLongOptions) : void
|
|
88
|
+
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { OnAccelerometerChangeCallback as OnAccelerometerChangeCallbackOrigin, OnAccelerometerChange as OnAccelerometerChangeOrigin, OffAccelerometerChange as OffAccelerometerChangeOrigin, StartAccelerometerOptions as StartAccelerometerOptionsOrigin, StartAccelerometer as StartAccelerometerOrigin, StopAccelerometerOptions as StopAccelerometerOptionsOrigin, StopAccelerometer as StopAccelerometerOrigin, Uni as UniOrigin } from "./interface"
|
|
2
|
-
|
|
3
|
-
declare global {
|
|
4
|
-
type OnAccelerometerChangeCallback = OnAccelerometerChangeCallbackOrigin
|
|
5
|
-
type OnAccelerometerChange = OnAccelerometerChangeOrigin
|
|
6
|
-
type OffAccelerometerChange = OffAccelerometerChangeOrigin
|
|
7
|
-
type StartAccelerometerOptions = StartAccelerometerOptionsOrigin
|
|
8
|
-
type StartAccelerometer = StartAccelerometerOrigin
|
|
9
|
-
type StopAccelerometerOptions = StopAccelerometerOptionsOrigin
|
|
10
|
-
type StopAccelerometer = StopAccelerometerOrigin
|
|
11
|
-
interface Uni extends UniOrigin { }
|
|
12
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { OnAccelerometerChangeCallback, OnAccelerometerChange, OffAccelerometerChange, StartAccelerometerOptions, StartAccelerometer, StopAccelerometerOptions, StopAccelerometer } from "./interface"
|