@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
@@ -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"