@dcloudio/uni-app-x 0.4.6 → 0.5.1

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 (116) hide show
  1. package/README.md +39 -0
  2. package/package.json +5 -3
  3. package/types/app.d.ts +36 -82
  4. package/types/native/CSSStyleDeclaration.d.ts +2 -2
  5. package/types/native/CustomEvent.d.ts +0 -2
  6. package/types/native/DOMRect.d.ts +4 -4
  7. package/types/native/DomNode.d.ts +48 -0
  8. package/types/native/DrawableContext.d.ts +42 -16
  9. package/types/native/Element.d.ts +234 -0
  10. package/types/native/Event.d.ts +14 -3
  11. package/types/native/IDocument.d.ts +6 -6
  12. package/types/native/IPage.d.ts +27 -11
  13. package/types/native/IPageManager.d.ts +2 -2
  14. package/types/native/ITabsNode.d.ts +4 -4
  15. package/types/native/IUniError.d.ts +20 -0
  16. package/types/native/IWebViewNode.d.ts +2 -2
  17. package/types/native/InputBlurEvent.d.ts +13 -0
  18. package/types/native/InputConfirmEvent.d.ts +13 -0
  19. package/types/native/InputEvent.d.ts +21 -0
  20. package/types/native/InputFocusEvent.d.ts +17 -0
  21. package/types/native/InputKeyboardHeightChangeEvent.d.ts +17 -0
  22. package/types/native/MouseEvent.d.ts +13 -1
  23. package/types/native/NestedPreScrollEvent.d.ts +23 -0
  24. package/types/native/ScrollToLowerEvent.d.ts +4 -1
  25. package/types/native/ScrollToUpperEvent.d.ts +5 -2
  26. package/types/native/SourceError.d.ts +0 -2
  27. package/types/native/StartNestedScrollEvent.d.ts +12 -0
  28. package/types/native/SwiperAnimationFinishEvent.d.ts +11 -0
  29. package/types/native/SwiperChangeEvent.d.ts +11 -0
  30. package/types/native/SwiperTransitionEvent.d.ts +11 -0
  31. package/types/native/TextareaBlurEvent.d.ts +17 -0
  32. package/types/native/TextareaFocusEvent.d.ts +17 -0
  33. package/types/native/TextareaLineChangeEvent.d.ts +21 -0
  34. package/types/native/TouchEvent.d.ts +5 -1
  35. package/types/native/UniError.d.ts +7 -3
  36. package/types/native/index.d.ts +18 -3
  37. package/types/page.d.ts +57 -212
  38. package/types/uni/core/index.d.ts +9 -7
  39. package/types/uni/core/lib/base/event/interface.d.ts +4 -4
  40. package/types/uni/core/lib/lifecycle/interface.d.ts +1 -1
  41. package/types/uni/core/lib/performance/interface.d.ts +0 -20
  42. package/types/uni/core/lib/route/index.d.ts +0 -10
  43. package/types/uni/core/lib/route/interface.d.ts +1805 -10
  44. package/types/uni/core/lib/ui/create-selector-query/interface.d.ts +242 -2
  45. package/types/uni/core/lib/ui/get-element-by-id/index.d.ts +9 -0
  46. package/types/uni/core/lib/ui/get-element-by-id/interface.d.ts +72 -0
  47. package/types/uni/core/lib/ui/load-font-face/interface.d.ts +486 -3
  48. package/types/uni/core/lib/ui/page-scroll-to/index.d.ts +0 -2
  49. package/types/uni/core/lib/ui/page-scroll-to/interface.d.ts +93 -9
  50. package/types/uni/core/lib/ui/pull-down-refresh/index.d.ts +0 -2
  51. package/types/uni/core/lib/ui/pull-down-refresh/interface.d.ts +2 -5
  52. package/types/uni/core/lib/ui/set-navigation-bar-color/interface.d.ts +373 -4
  53. package/types/uni/core/lib/ui/tab-bar/index.d.ts +2 -18
  54. package/types/uni/core/lib/ui/tab-bar/interface.d.ts +32 -35
  55. package/types/uni/index.d.ts +2 -1
  56. package/types/uni/{ext → uts-plugin-api}/index.d.ts +18 -17
  57. package/types/uni/{ext → uts-plugin-api}/lib/uni-audio/utssdk/interface.d.ts +2 -2
  58. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/index.d.ts +11 -0
  59. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +98 -0
  60. package/types/uni/{ext → uts-plugin-api}/lib/uni-exit/utssdk/interface.d.ts +1 -1
  61. package/types/uni/{ext → uts-plugin-api}/lib/uni-file-manager/utssdk/interface.d.ts +4 -32
  62. package/types/uni/{ext → uts-plugin-api}/lib/uni-getAccessibilityInfo/utssdk/interface.d.ts +1 -1
  63. package/types/uni/{ext → uts-plugin-api}/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +108 -10
  64. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +233 -0
  65. package/types/uni/{ext → uts-plugin-api}/lib/uni-getDeviceInfo/utssdk/interface.d.ts +58 -46
  66. package/types/uni/{ext → uts-plugin-api}/lib/uni-getLocation-system/utssdk/index.d.ts +0 -2
  67. package/types/uni/{ext → uts-plugin-api}/lib/uni-getLocation-system/utssdk/interface.d.ts +14 -10
  68. package/types/uni/{ext → uts-plugin-api}/lib/uni-getNetworkType/utssdk/interface.d.ts +8 -5
  69. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +213 -0
  70. package/types/uni/{ext → uts-plugin-api}/lib/uni-getSystemInfo/utssdk/interface.d.ts +108 -163
  71. package/types/uni/{ext → uts-plugin-api}/lib/uni-getSystemSetting/utssdk/interface.d.ts +3 -3
  72. package/types/uni/{ext → uts-plugin-api}/lib/uni-media/utssdk/index.d.ts +0 -20
  73. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +794 -0
  74. package/types/uni/{ext → uts-plugin-api}/lib/uni-network/utssdk/app-ios/interface.d.ts +60 -19
  75. package/types/uni/{ext → uts-plugin-api}/lib/uni-network/utssdk/index.d.ts +4 -0
  76. package/types/uni/{ext → uts-plugin-api}/lib/uni-network/utssdk/interface.d.ts +138 -49
  77. package/types/uni/{ext → uts-plugin-api}/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +8 -5
  78. package/types/uni/{ext → uts-plugin-api}/lib/uni-prompt/utssdk/interface.d.ts +6 -6
  79. package/types/uni/{ext → uts-plugin-api}/lib/uni-storage/utssdk/index.d.ts +0 -10
  80. package/types/uni/{ext → uts-plugin-api}/lib/uni-storage/utssdk/interface.d.ts +33 -117
  81. package/types/uni/{ext → uts-plugin-api}/lib/uni-websocket/utssdk/index.d.ts +2 -0
  82. package/types/uni/{ext → uts-plugin-api}/lib/uni-websocket/utssdk/interface.d.ts +60 -35
  83. package/types/uni/uts-plugin-component/index.d.ts +1 -0
  84. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/index.d.ts +15 -0
  85. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +171 -0
  86. package/types/uni-cloud/index.d.ts +59 -333
  87. package/types/uni-cloud/interface.d.ts +786 -0
  88. package/types/vue/CheckboxGroupChangeEvent.d.ts +1 -1
  89. package/types/vue/PickerViewChangeEvent.d.ts +1 -1
  90. package/types/vue/ProgressActiveendEvent.d.ts +1 -1
  91. package/types/vue/RadioGroupChangeEvent.d.ts +1 -1
  92. package/types/vue/SliderChangeEvent.d.ts +10 -1
  93. package/types/vue/SwitchChangeEvent.d.ts +1 -1
  94. package/uts-plugin.d.ts +10 -0
  95. package/.env +0 -3
  96. package/tsconfig.json +0 -5
  97. package/types/native/INode.d.ts +0 -181
  98. package/types/native/UTSError.d.ts +0 -15
  99. package/types/native/UTSPromise.d.ts +0 -74
  100. package/types/uni/ext/lib/uni-file-manager/utssdk/index.d.ts +0 -35
  101. package/types/uni/ext/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +0 -120
  102. package/types/uni/ext/lib/uni-getRecorderManager/utssdk/interface.d.ts +0 -213
  103. package/types/uni/ext/lib/uni-media/utssdk/interface.d.ts +0 -877
  104. /package/types/uni/{ext → uts-plugin-api}/lib/uni-audio/utssdk/index.d.ts +0 -0
  105. /package/types/uni/{ext → uts-plugin-api}/lib/uni-exit/utssdk/index.d.ts +0 -0
  106. /package/types/uni/{ext → uts-plugin-api}/lib/uni-getAccessibilityInfo/utssdk/index.d.ts +0 -0
  107. /package/types/uni/{ext → uts-plugin-api}/lib/uni-getAppAuthorizeSetting/utssdk/index.d.ts +0 -0
  108. /package/types/uni/{ext → uts-plugin-api}/lib/uni-getAppBaseInfo/utssdk/index.d.ts +0 -0
  109. /package/types/uni/{ext → uts-plugin-api}/lib/uni-getDeviceInfo/utssdk/index.d.ts +0 -0
  110. /package/types/uni/{ext → uts-plugin-api}/lib/uni-getNetworkType/utssdk/index.d.ts +0 -0
  111. /package/types/uni/{ext → uts-plugin-api}/lib/uni-getRecorderManager/utssdk/index.d.ts +0 -0
  112. /package/types/uni/{ext → uts-plugin-api}/lib/uni-getSystemInfo/utssdk/index.d.ts +0 -0
  113. /package/types/uni/{ext → uts-plugin-api}/lib/uni-getSystemSetting/utssdk/index.d.ts +0 -0
  114. /package/types/uni/{ext → uts-plugin-api}/lib/uni-network/utssdk/app-ios/index.d.ts +0 -0
  115. /package/types/uni/{ext → uts-plugin-api}/lib/uni-openAppAuthorizeSetting/utssdk/index.d.ts +0 -0
  116. /package/types/uni/{ext → uts-plugin-api}/lib/uni-prompt/utssdk/index.d.ts +0 -0
@@ -1,213 +0,0 @@
1
- export type RecorderManagerStartOptions = {
2
- /**
3
- * 指定录音的时长,单位 ms ,如果传入了合法的 duration ,在到达指定的 duration 后会自动停止录音,最大值 600000(10 分钟),默认值 60000(1 分钟)
4
- */
5
- duration: (number) | null;
6
- /**
7
- * 采样率,有效值 8000/16000/44100
8
- */
9
- sampleRate: (number) | null;
10
- /**
11
- * 录音通道数,有效值 1/2
12
- */
13
- numberOfChannels: (number) | null;
14
- /**
15
- * 编码码率,有效值见下表格
16
- */
17
- encodeBitRate: (number) | null;
18
- /**
19
- * 音频格式,有效值 aac/mp3
20
- */
21
- format: (string) | null;
22
- /**
23
- * 指定帧大小,单位 KB。传入 frameSize 后,每录制指定帧大小的内容后,会回调录制的文件内容,不指定则不会回调。暂仅支持 mp3 格式。
24
- */
25
- frameSize: (number) | null;
26
- }
27
-
28
- export type RecordManagerCallback = (result: any) => void
29
-
30
-
31
- export interface RecorderManager {
32
- /**
33
- * 开始录音
34
- * @description 开始录音
35
- * @uniPlatform {
36
- * "app": {
37
- * "android": {
38
- * "osVer": "4.4",
39
- * "uniVer": "√",
40
- * "unixVer": "3.9.0"
41
- * }
42
- * }
43
- * }
44
- * @uniVueVersion 2,3
45
- */
46
- start(options: RecorderManagerStartOptions): void;
47
- /**
48
- * 暂停录音
49
- * @description 暂停录音
50
- * @uniPlatform {
51
- * "app": {
52
- * "android": {
53
- * "osVer": "4.4",
54
- * "uniVer": "√",
55
- * "unixVer": "3.9.0"
56
- * }
57
- * }
58
- * }
59
- * @uniVueVersion 2,3
60
- */
61
- pause(): void;
62
- /**
63
- * 暂停录音
64
- * @description 暂停录音
65
- * @uniPlatform {
66
- * "app": {
67
- * "android": {
68
- * "osVer": "4.4",
69
- * "uniVer": "√",
70
- * "unixVer": "3.9.0"
71
- * }
72
- * }
73
- * }
74
- * @uniVueVersion 2,3
75
- */
76
- resume(): void;
77
- /**
78
- * 停止录音
79
- * @description 停止录音
80
- * @uniPlatform {
81
- * "app": {
82
- * "android": {
83
- * "osVer": "4.4",
84
- * "uniVer": "√",
85
- * "unixVer": "3.9.0"
86
- * }
87
- * }
88
- * }
89
- * @uniVueVersion 2,3
90
- */
91
- stop(): void;
92
- /**
93
- * 录音开始事件
94
- * @description 录音开始事件
95
- * @uniPlatform {
96
- * "app": {
97
- * "android": {
98
- * "osVer": "4.4",
99
- * "uniVer": "√",
100
- * "unixVer": "3.9.0"
101
- * }
102
- * }
103
- * }
104
- * @uniVueVersion 2,3
105
- */
106
- onStart(options: RecordManagerCallback): void;
107
- /**
108
- * 录音暂停事件
109
- * @description 录音暂停事件
110
- * @uniPlatform {
111
- * "app": {
112
- * "android": {
113
- * "osVer": "4.4",
114
- * "uniVer": "√",
115
- * "unixVer": "3.9.0"
116
- * }
117
- * }
118
- * }
119
- * @uniVueVersion 2,3
120
- */
121
- onPause(options: RecordManagerCallback): void;
122
- /**
123
- * 录音恢复事件
124
- * @description 录音恢复事件
125
- * @uniPlatform {
126
- * "app": {
127
- * "android": {
128
- * "osVer": "4.4",
129
- * "uniVer": "√",
130
- * "unixVer": "3.9.0"
131
- * }
132
- * }
133
- * }
134
- * @uniVueVersion 2,3
135
- */
136
- onResume(options: RecordManagerCallback): void;
137
- /**
138
- * 录音停止事件,会回调文件地址
139
- * @description 录音停止事件,会回调文件地址
140
- * @uniPlatform {
141
- * "app": {
142
- * "android": {
143
- * "osVer": "4.4",
144
- * "uniVer": "√",
145
- * "unixVer": "3.9.0"
146
- * }
147
- * }
148
- * }
149
- * @uniVueVersion 2,3
150
- */
151
- onStop(options: RecordManagerCallback): void;
152
- /**
153
- * 已录制完指定帧大小的文件,会回调录音分片结果数据。如果设置了 frameSize ,则会回调此事件
154
- * @description 已录制完指定帧大小的文件,会回调录音分片结果数据。如果设置了 frameSize ,则会回调此事件
155
- * @uniPlatform {
156
- * "app": {
157
- * "android": {
158
- * "osVer": "4.4",
159
- * "uniVer": "√",
160
- * "unixVer": "3.9.0"
161
- * }
162
- * }
163
- * }
164
- * @uniVueVersion 2,3
165
- */
166
- onFrameRecorded(options: RecordManagerCallback): void;
167
- /**
168
- * 录音错误事件, 会回调错误信息
169
- * @description 录音错误事件, 会回调错误信息
170
- * @uniPlatform {
171
- * "app": {
172
- * "android": {
173
- * "osVer": "4.4",
174
- * "uniVer": "√",
175
- * "unixVer": "3.9.0"
176
- * }
177
- * }
178
- * }
179
- * @uniVueVersion 2,3
180
- */
181
- onError(options: RecordManagerCallback): void;
182
- }
183
-
184
- export type GetRecorderManager = () => RecorderManager
185
-
186
- export interface Uni {
187
- /**
188
- * 录音管理
189
- * @description 录音管理
190
- * @uniPlatform {
191
- * "app": {
192
- * "android": {
193
- * "osVer": "4.4",
194
- * "uniVer": "√",
195
- * "unixVer": "3.9.0"
196
- * }
197
- * }
198
- * }
199
- * @uniVueVersion 2,3
200
- * @tutorial http://uniapp.dcloud.io/api/media/record-manager?id=getrecordermanager
201
- * @example
202
- * ```typescript
203
- * var manager = uni.getRecorderManager()
204
- * manager.start({
205
- * format:"mp3"
206
- * })
207
- * manager.onStop((e)=>{
208
- * console.log("录音结束")
209
- * })
210
- * ```
211
- */
212
- getRecorderManager: GetRecorderManager;
213
- }