@tarojs/taro-h5 3.6.7 → 3.6.9-alpha.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 (241) hide show
  1. package/dist/api/ad/index.js +2 -2
  2. package/dist/api/ad/index.js.map +1 -1
  3. package/dist/api/ai/facial.js +3 -3
  4. package/dist/api/ai/facial.js.map +1 -1
  5. package/dist/api/ai/visual.js +2 -2
  6. package/dist/api/ai/visual.js.map +1 -1
  7. package/dist/api/alipay/index.js +1 -1
  8. package/dist/api/alipay/index.js.map +1 -1
  9. package/dist/api/base/crypto.js +1 -1
  10. package/dist/api/base/crypto.js.map +1 -1
  11. package/dist/api/base/debug.js +3 -3
  12. package/dist/api/base/debug.js.map +1 -1
  13. package/dist/api/base/index.d.ts +1 -2
  14. package/dist/api/base/index.js +3 -3
  15. package/dist/api/base/index.js.map +1 -1
  16. package/dist/api/base/performance.js +2 -2
  17. package/dist/api/base/performance.js.map +1 -1
  18. package/dist/api/base/system.js +2 -2
  19. package/dist/api/base/system.js.map +1 -1
  20. package/dist/api/base/update.js +2 -2
  21. package/dist/api/base/update.js.map +1 -1
  22. package/dist/api/base/weapp/app-event.js +7 -8
  23. package/dist/api/base/weapp/app-event.js.map +1 -1
  24. package/dist/api/canvas/CanvasContext.d.ts +2 -1
  25. package/dist/api/canvas/CanvasContext.js.map +1 -1
  26. package/dist/api/canvas/index.js +1 -1
  27. package/dist/api/canvas/index.js.map +1 -1
  28. package/dist/api/data-analysis/index.js +4 -4
  29. package/dist/api/data-analysis/index.js.map +1 -1
  30. package/dist/api/device/accelerometer.js +1 -2
  31. package/dist/api/device/accelerometer.js.map +1 -1
  32. package/dist/api/device/accessibility.js +1 -1
  33. package/dist/api/device/accessibility.js.map +1 -1
  34. package/dist/api/device/battery.js +1 -1
  35. package/dist/api/device/battery.js.map +1 -1
  36. package/dist/api/device/bluetooth-ble.js +16 -16
  37. package/dist/api/device/bluetooth-ble.js.map +1 -1
  38. package/dist/api/device/bluetooth-peripheral.js +3 -3
  39. package/dist/api/device/bluetooth-peripheral.js.map +1 -1
  40. package/dist/api/device/bluetooth.js +13 -13
  41. package/dist/api/device/bluetooth.js.map +1 -1
  42. package/dist/api/device/calendar.d.ts +3 -2
  43. package/dist/api/device/calendar.js +142 -3
  44. package/dist/api/device/calendar.js.map +1 -1
  45. package/dist/api/device/compass.js +1 -2
  46. package/dist/api/device/compass.js.map +1 -1
  47. package/dist/api/device/contact.js +2 -2
  48. package/dist/api/device/contact.js.map +1 -1
  49. package/dist/api/device/crypto.js +1 -1
  50. package/dist/api/device/crypto.js.map +1 -1
  51. package/dist/api/device/gyroscope.js +4 -4
  52. package/dist/api/device/gyroscope.js.map +1 -1
  53. package/dist/api/device/iBeacon.js +7 -7
  54. package/dist/api/device/iBeacon.js.map +1 -1
  55. package/dist/api/device/keyboard.js +4 -4
  56. package/dist/api/device/keyboard.js.map +1 -1
  57. package/dist/api/device/memory.js +2 -2
  58. package/dist/api/device/memory.js.map +1 -1
  59. package/dist/api/device/motion.js +1 -2
  60. package/dist/api/device/motion.js.map +1 -1
  61. package/dist/api/device/network.js +3 -3
  62. package/dist/api/device/network.js.map +1 -1
  63. package/dist/api/device/nfc.js +7 -7
  64. package/dist/api/device/nfc.js.map +1 -1
  65. package/dist/api/device/scan.js +1 -1
  66. package/dist/api/device/scan.js.map +1 -1
  67. package/dist/api/device/screen.js +6 -6
  68. package/dist/api/device/screen.js.map +1 -1
  69. package/dist/api/device/wifi.js +12 -12
  70. package/dist/api/device/wifi.js.map +1 -1
  71. package/dist/api/ext/index.js +2 -2
  72. package/dist/api/ext/index.js.map +1 -1
  73. package/dist/api/files/index.js +8 -8
  74. package/dist/api/files/index.js.map +1 -1
  75. package/dist/api/index.js +8 -3
  76. package/dist/api/index.js.map +1 -1
  77. package/dist/api/location/chooseLocation.js +9 -5
  78. package/dist/api/location/chooseLocation.js.map +1 -1
  79. package/dist/api/location/getLocation.js +1 -1
  80. package/dist/api/location/getLocation.js.map +1 -1
  81. package/dist/api/location/index.js +10 -10
  82. package/dist/api/location/index.js.map +1 -1
  83. package/dist/api/media/audio/index.js +8 -8
  84. package/dist/api/media/audio/index.js.map +1 -1
  85. package/dist/api/media/background-audio/index.js +8 -8
  86. package/dist/api/media/background-audio/index.js.map +1 -1
  87. package/dist/api/media/camera.js +1 -1
  88. package/dist/api/media/camera.js.map +1 -1
  89. package/dist/api/media/image/chooseImage.d.ts +1 -0
  90. package/dist/api/media/image/chooseImage.js +28 -71
  91. package/dist/api/media/image/chooseImage.js.map +1 -1
  92. package/dist/api/media/image/index.d.ts +4 -3
  93. package/dist/api/media/image/index.js +8 -9
  94. package/dist/api/media/image/index.js.map +1 -1
  95. package/dist/api/media/image/saveImageToPhotosAlbum.d.ts +3 -0
  96. package/dist/api/media/image/saveImageToPhotosAlbum.js +30 -0
  97. package/dist/api/media/image/saveImageToPhotosAlbum.js.map +1 -0
  98. package/dist/api/media/index.js +2 -2
  99. package/dist/api/media/live.js +2 -2
  100. package/dist/api/media/live.js.map +1 -1
  101. package/dist/api/media/map.js +1 -1
  102. package/dist/api/media/map.js.map +1 -1
  103. package/dist/api/media/media-recorder.js +1 -1
  104. package/dist/api/media/media-recorder.js.map +1 -1
  105. package/dist/api/media/recorder.js +3 -3
  106. package/dist/api/media/recorder.js.map +1 -1
  107. package/dist/api/media/video/chooseMedia.d.ts +6 -0
  108. package/dist/api/media/video/chooseMedia.js +208 -0
  109. package/dist/api/media/video/chooseMedia.js.map +1 -0
  110. package/dist/api/media/video/chooseVideo.d.ts +7 -0
  111. package/dist/api/media/video/chooseVideo.js +44 -0
  112. package/dist/api/media/video/chooseVideo.js.map +1 -0
  113. package/dist/api/media/video/getVideoInfo.d.ts +3 -0
  114. package/dist/api/media/video/getVideoInfo.js +63 -0
  115. package/dist/api/media/video/getVideoInfo.js.map +1 -0
  116. package/dist/api/media/video/index.d.ts +5 -8
  117. package/dist/api/media/video/index.js +8 -67
  118. package/dist/api/media/video/index.js.map +1 -1
  119. package/dist/api/media/video/saveVideoToPhotosAlbum.d.ts +3 -0
  120. package/dist/api/media/video/saveVideoToPhotosAlbum.js +30 -0
  121. package/dist/api/media/video/saveVideoToPhotosAlbum.js.map +1 -0
  122. package/dist/api/media/video-decoder.js +1 -1
  123. package/dist/api/media/video-decoder.js.map +1 -1
  124. package/dist/api/media/video-processing.js +1 -1
  125. package/dist/api/media/video-processing.js.map +1 -1
  126. package/dist/api/media/voip.js +14 -14
  127. package/dist/api/media/voip.js.map +1 -1
  128. package/dist/api/navigate/index.js +5 -5
  129. package/dist/api/navigate/index.js.map +1 -1
  130. package/dist/api/network/mdns.js +10 -10
  131. package/dist/api/network/mdns.js.map +1 -1
  132. package/dist/api/network/request/index.d.ts +1 -1
  133. package/dist/api/network/request/index.js +22 -17
  134. package/dist/api/network/request/index.js.map +1 -1
  135. package/dist/api/network/tcp.js +1 -1
  136. package/dist/api/network/tcp.js.map +1 -1
  137. package/dist/api/network/udp.js +1 -1
  138. package/dist/api/network/udp.js.map +1 -1
  139. package/dist/api/open-api/account.js +1 -1
  140. package/dist/api/open-api/account.js.map +1 -1
  141. package/dist/api/open-api/address.js +1 -1
  142. package/dist/api/open-api/address.js.map +1 -1
  143. package/dist/api/open-api/authorize.js +2 -2
  144. package/dist/api/open-api/authorize.js.map +1 -1
  145. package/dist/api/open-api/card.js +2 -2
  146. package/dist/api/open-api/card.js.map +1 -1
  147. package/dist/api/open-api/channels-live.js +6 -6
  148. package/dist/api/open-api/channels-live.js.map +1 -1
  149. package/dist/api/open-api/customer-service.js +1 -1
  150. package/dist/api/open-api/customer-service.js.map +1 -1
  151. package/dist/api/open-api/facial.js +4 -4
  152. package/dist/api/open-api/facial.js.map +1 -1
  153. package/dist/api/open-api/favorites.js +3 -3
  154. package/dist/api/open-api/favorites.js.map +1 -1
  155. package/dist/api/open-api/group.js +1 -1
  156. package/dist/api/open-api/group.js.map +1 -1
  157. package/dist/api/open-api/invoice.js +2 -2
  158. package/dist/api/open-api/invoice.js.map +1 -1
  159. package/dist/api/open-api/license-plate.js +1 -1
  160. package/dist/api/open-api/license-plate.js.map +1 -1
  161. package/dist/api/open-api/login.js +3 -3
  162. package/dist/api/open-api/login.js.map +1 -1
  163. package/dist/api/open-api/red-package.js +1 -1
  164. package/dist/api/open-api/red-package.js.map +1 -1
  165. package/dist/api/open-api/settings.js +2 -2
  166. package/dist/api/open-api/settings.js.map +1 -1
  167. package/dist/api/open-api/soter.js +3 -3
  168. package/dist/api/open-api/soter.js.map +1 -1
  169. package/dist/api/open-api/subscribe-message.js +2 -2
  170. package/dist/api/open-api/subscribe-message.js.map +1 -1
  171. package/dist/api/open-api/user-info.js +2 -2
  172. package/dist/api/open-api/user-info.js.map +1 -1
  173. package/dist/api/open-api/werun.js +2 -2
  174. package/dist/api/open-api/werun.js.map +1 -1
  175. package/dist/api/payment/index.js +2 -2
  176. package/dist/api/payment/index.js.map +1 -1
  177. package/dist/api/qq/index.js +1 -1
  178. package/dist/api/qq/index.js.map +1 -1
  179. package/dist/api/share/index.d.ts +10 -0
  180. package/dist/api/share/index.js +21 -11
  181. package/dist/api/share/index.js.map +1 -1
  182. package/dist/api/storage/background-fetch.js +4 -4
  183. package/dist/api/storage/background-fetch.js.map +1 -1
  184. package/dist/api/storage/index.js +2 -2
  185. package/dist/api/storage/index.js.map +1 -1
  186. package/dist/api/swan/index.js +21 -21
  187. package/dist/api/swan/index.js.map +1 -1
  188. package/dist/api/taro.js +1 -1
  189. package/dist/api/taro.js.map +1 -1
  190. package/dist/api/ui/background.js +2 -2
  191. package/dist/api/ui/background.js.map +1 -1
  192. package/dist/api/ui/interaction/index.d.ts +1 -1
  193. package/dist/api/ui/interaction/index.js +4 -4
  194. package/dist/api/ui/interaction/index.js.map +1 -1
  195. package/dist/api/ui/interaction/modal.js +6 -0
  196. package/dist/api/ui/interaction/modal.js.map +1 -1
  197. package/dist/api/ui/interaction/toast.js +4 -0
  198. package/dist/api/ui/interaction/toast.js.map +1 -1
  199. package/dist/api/ui/menu.js +1 -1
  200. package/dist/api/ui/menu.js.map +1 -1
  201. package/dist/api/ui/navigation-bar/index.js +3 -3
  202. package/dist/api/ui/navigation-bar/index.js.map +1 -1
  203. package/dist/api/ui/scroll/index.js +4 -3
  204. package/dist/api/ui/scroll/index.js.map +1 -1
  205. package/dist/api/ui/sticky.js +1 -1
  206. package/dist/api/ui/sticky.js.map +1 -1
  207. package/dist/api/ui/window.js +2 -2
  208. package/dist/api/ui/window.js.map +1 -1
  209. package/dist/api/worker/index.js +1 -1
  210. package/dist/api/worker/index.js.map +1 -1
  211. package/dist/api/wxml/IntersectionObserver.d.ts +1 -1
  212. package/dist/api/wxml/IntersectionObserver.js +8 -6
  213. package/dist/api/wxml/IntersectionObserver.js.map +1 -1
  214. package/dist/api/wxml/MediaQueryObserver.d.ts +1 -1
  215. package/dist/api/wxml/MediaQueryObserver.js.map +1 -1
  216. package/dist/api/wxml/selectorQuery.js +9 -6
  217. package/dist/api/wxml/selectorQuery.js.map +1 -1
  218. package/dist/index.cjs.d.ts +27 -13
  219. package/dist/index.cjs.js +3564 -20439
  220. package/dist/index.cjs.js.map +1 -1
  221. package/dist/index.esm.d.ts +27 -13
  222. package/dist/index.esm.js +3832 -20702
  223. package/dist/index.esm.js.map +1 -1
  224. package/dist/index.js +13 -4
  225. package/dist/index.js.map +1 -1
  226. package/dist/utils/helper.d.ts +2 -0
  227. package/dist/utils/helper.js +11 -0
  228. package/dist/utils/helper.js.map +1 -0
  229. package/dist/utils/index.d.ts +5 -3
  230. package/dist/utils/index.js +4 -9
  231. package/dist/utils/index.js.map +1 -1
  232. package/package.json +16 -10
  233. package/dist/_virtual/_commonjsHelpers.js +0 -35
  234. package/dist/_virtual/_commonjsHelpers.js.map +0 -1
  235. package/dist/_virtual/lodash.js +0 -4
  236. package/dist/_virtual/lodash.js.map +0 -1
  237. package/dist/node_modules/.pnpm/registry.npmjs.org_lodash@4.17.21/node_modules/lodash/lodash.js +0 -17220
  238. package/dist/node_modules/.pnpm/registry.npmjs.org_lodash@4.17.21/node_modules/lodash/lodash.js.map +0 -1
  239. package/dist/utils/lodash.d.ts +0 -3
  240. package/dist/utils/lodash.js +0 -32
  241. package/dist/utils/lodash.js.map +0 -1
@@ -37,7 +37,8 @@ declare const env: {
37
37
  TARO_PLATFORM: string | undefined;
38
38
  TARO_VERSION: string | undefined;
39
39
  };
40
- declare const canIUse: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
40
+ // Note: 该方法由 taro-plugin-platform-h5 实现
41
+ // export const canIUse = /* @__PURE__ */ temporarilyNotSupport('canIUse')
41
42
  declare function arrayBufferToBase64(arrayBuffer: ArrayBuffer): string;
42
43
  declare function base64ToArrayBuffer(base64: string): Uint8Array;
43
44
  // 加密
@@ -193,8 +194,8 @@ declare const onBLEPeripheralConnectionStateChanged: (option?: {}, ...args: any[
193
194
  declare const offBLEPeripheralConnectionStateChanged: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
194
195
  declare const createBLEPeripheralServer: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
195
196
  // 日历
196
- declare const addPhoneRepeatCalendar: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
197
- declare const addPhoneCalendar: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
197
+ declare const addPhoneRepeatCalendar: typeof Taro.addPhoneRepeatCalendar;
198
+ declare const addPhoneCalendar: typeof Taro.addPhoneCalendar;
198
199
  /**
199
200
  * 设置系统剪贴板的内容
200
201
  */
@@ -455,9 +456,8 @@ declare const getBackgroundAudioPlayerState: (option?: {}, ...args: any[]) => Pr
455
456
  declare const getBackgroundAudioManager: () => BackgroundAudioManager;
456
457
  // 相机
457
458
  declare const createCameraContext: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
458
- // 图片
459
- declare const saveImageToPhotosAlbum: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
460
- declare const previewMedia: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
459
+ declare const saveImageToPhotosAlbum: typeof Taro.saveImageToPhotosAlbum;
460
+ declare const previewMedia: typeof Taro.previewMedia;
461
461
  /**
462
462
  * 获取图片信息。网络图片需先配置download域名才能生效。
463
463
  */
@@ -473,6 +473,7 @@ declare const compressImage: (option?: {}, ...args: any[]) => Promise<Partial<Ta
473
473
  declare const chooseMessageFile: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
474
474
  /**
475
475
  * 从本地相册选择图片或使用相机拍照。
476
+ * @deprecated 请使用 chooseMedia 接口
476
477
  */
477
478
  declare const chooseImage: typeof Taro.chooseImage;
478
479
  declare const editImage: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
@@ -488,20 +489,23 @@ declare const createMediaRecorder: (option?: {}, ...args: any[]) => Promise<Part
488
489
  declare const stopRecord: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
489
490
  declare const startRecord: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
490
491
  declare const getRecorderManager: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
491
- // 视频
492
- declare const saveVideoToPhotosAlbum: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
492
+ declare const saveVideoToPhotosAlbum: typeof Taro.saveVideoToPhotosAlbum;
493
493
  declare const openVideoEditor: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
494
- declare const getVideoInfo: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
494
+ declare const getVideoInfo: typeof Taro.getVideoInfo;
495
495
  /**
496
496
  * 创建 video 上下文 VideoContext 对象。
497
497
  */
498
498
  declare const createVideoContext: typeof Taro.createVideoContext;
499
499
  declare const compressVideo: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
500
+ /**
501
+ * 拍摄或从手机相册中选择图片或视频。
502
+ */
503
+ declare const chooseMedia: (options: Taro.chooseMedia.Option, methodName?: string) => Promise<Taro.chooseMedia.SuccessCallbackResult>;
500
504
  /**
501
505
  * 拍摄视频或从手机相册中选视频。
506
+ * @deprecated 请使用 chooseMedia 接口
502
507
  */
503
508
  declare const chooseVideo: typeof Taro.chooseVideo;
504
- declare const chooseMedia: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
505
509
  // 视频解码器
506
510
  declare const createVideoDecoder: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
507
511
  // 音视频合成
@@ -543,7 +547,7 @@ declare const offLocalServiceResolveFail: (option?: {}, ...args: any[]) => Promi
543
547
  declare const offLocalServiceLost: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
544
548
  declare const offLocalServiceFound: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
545
549
  declare const offLocalServiceDiscoveryStop: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
546
- declare const request: typeof Taro.request;
550
+ declare const request: <T = any, U = any>(option: Taro.request.Option<T, U>) => Taro.RequestTask<T>;
547
551
  declare const addInterceptor: any;
548
552
  declare const cleanInterceptors: any;
549
553
  // TCP 通信
@@ -625,15 +629,25 @@ declare const requestOrderPayment: (option?: {}, ...args: any[]) => Promise<Part
625
629
  // 打开手Q说说发表界面
626
630
  declare const openQzonePublish: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
627
631
  // 转发
632
+ /** 更新转发属性 */
628
633
  declare const updateShareMenu: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
634
+ /** 显示当前页面的转发按钮 */
629
635
  declare const showShareMenu: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
636
+ /** 打开分享图片弹窗,可以将图片发送给朋友、收藏或下载 */
630
637
  declare const showShareImageMenu: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
638
+ /** 转发视频到聊天 */
631
639
  declare const shareVideoMessage: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
640
+ /** 转发文件到聊天 */
632
641
  declare const shareFileMessage: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
642
+ /** 监听用户点击右上角菜单的「复制链接」按钮时触发的事件 */
633
643
  declare const onCopyUrl: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
644
+ /** 移除用户点击右上角菜单的「复制链接」按钮时触发的事件的监听函数 */
634
645
  declare const offCopyUrl: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
646
+ /** 隐藏当前页面的转发按钮 */
635
647
  declare const hideShareMenu: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
648
+ /** 获取转发详细信息 */
636
649
  declare const getShareInfo: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
650
+ /** 验证私密消息。 */
637
651
  declare const authPrivateMessage: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
638
652
  // 数据缓存
639
653
  declare const setStorageSync: typeof Taro.setStorageSync;
@@ -692,7 +706,7 @@ declare const hideToast: typeof Taro.hideToast;
692
706
  declare const showLoading: typeof Taro.showLoading;
693
707
  declare const hideLoading: typeof Taro.hideLoading;
694
708
  declare const showModal: typeof Taro.showModal;
695
- declare const showActionSheet: typeof Taro.showActionSheet;
709
+ declare const showActionSheet: (options?: Taro.showActionSheet.Option, methodName?: string) => Promise<Taro.showActionSheet.SuccessCallbackResult>;
696
710
  declare const enableAlertBeforeUnload: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
697
711
  declare const disableAlertBeforeUnload: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
698
712
  // 菜单
@@ -771,5 +785,5 @@ declare const createWorker: (option?: {}, ...args: any[]) => Promise<Partial<Tar
771
785
  declare const createSelectorQuery: typeof Taro.createSelectorQuery;
772
786
  declare const createIntersectionObserver: typeof Taro.createIntersectionObserver;
773
787
  declare const createMediaQueryObserver: typeof Taro.createMediaQueryObserver;
774
- export { taro as default, taro, createRewardedVideoAd, createInterstitialAd, stopFaceDetect, initFaceDetect, faceDetect, isVKSupport, createVKSession, getOpenUserInfo, env, canIUse, arrayBufferToBase64, base64ToArrayBuffer, getUserCryptoManager, setEnableDebug, getRealtimeLogManager, getLogManager, reportPerformance, getPerformance, openSystemBluetoothSetting, openAppAuthorizeSetting, getWindowInfo, getSystemSetting, getDeviceInfo, getAppBaseInfo, getAppAuthorizeSetting, getSystemInfoSync, getSystemInfoAsync, getSystemInfo, updateWeChatApp, getUpdateManager, onUnhandledRejection, onThemeChange, onPageNotFound, onError, onAudioInterruptionEnd, onAudioInterruptionBegin, onAppShow, onAppHide, offUnhandledRejection, offThemeChange, offPageNotFound, offError, offAudioInterruptionEnd, offAudioInterruptionBegin, offAppShow, offAppHide, getLaunchOptionsSync, getEnterOptionsSync, createOffscreenCanvas, createCanvasContext, canvasToTempFilePath, canvasPutImageData, canvasGetImageData, cloud, reportMonitor, reportAnalytics, reportEvent, getExptInfoSync, stopAccelerometer, startAccelerometer, onAccelerometerChange, offAccelerometerChange, checkIsOpenAccessibility, getBatteryInfoSync, getBatteryInfo, stopBluetoothDevicesDiscovery, startBluetoothDevicesDiscovery, openBluetoothAdapter, onBluetoothDeviceFound, onBluetoothAdapterStateChange, offBluetoothDeviceFound, offBluetoothAdapterStateChange, makeBluetoothPair, isBluetoothDevicePaired, getConnectedBluetoothDevices, getBluetoothDevices, getBluetoothAdapterState, closeBluetoothAdapter, writeBLECharacteristicValue, setBLEMTU, readBLECharacteristicValue, onBLEMTUChange, onBLEConnectionStateChange, onBLECharacteristicValueChange, offBLEMTUChange, offBLEConnectionStateChange, offBLECharacteristicValueChange, notifyBLECharacteristicValueChange, getBLEMTU, getBLEDeviceServices, getBLEDeviceRSSI, getBLEDeviceCharacteristics, createBLEConnection, closeBLEConnection, onBLEPeripheralConnectionStateChanged, offBLEPeripheralConnectionStateChanged, createBLEPeripheralServer, addPhoneRepeatCalendar, addPhoneCalendar, setClipboardData, getClipboardData, stopCompass, startCompass, onCompassChange, offCompassChange, chooseContact, addPhoneContact, getRandomValues, stopGyroscope, startGyroscope, onGyroscopeChange, offGyroscopeChange, stopBeaconDiscovery, startBeaconDiscovery, onBeaconUpdate, onBeaconServiceChange, offBeaconUpdate, offBeaconServiceChange, getBeacons, onKeyboardHeightChange, offKeyboardHeightChange, hideKeyboard, getSelectedTextRange, onMemoryWarning, offMemoryWarning, stopDeviceMotionListening, startDeviceMotionListening, onDeviceMotionChange, offDeviceMotionChange, getNetworkType, onNetworkWeakChange, onNetworkStatusChange, offNetworkWeakChange, offNetworkStatusChange, getLocalIPAddress, stopHCE, startHCE, sendHCEMessage, onHCEMessage, offHCEMessage, getNFCAdapter, getHCEState, makePhoneCall, scanCode, setVisualEffectOnCapture, setScreenBrightness, setKeepScreenOn, onUserCaptureScreen, offUserCaptureScreen, getScreenBrightness, vibrateShort, vibrateLong, stopWifi, startWifi, setWifiList, onWifiConnectedWithPartialInfo, onWifiConnected, onGetWifiList, offWifiConnectedWithPartialInfo, offWifiConnected, offGetWifiList, getWifiList, getConnectedWifi, connectWifi, getExtConfigSync, getExtConfig, saveFileToDisk, saveFile, removeSavedFile, openDocument, getSavedFileList, getSavedFileInfo, getFileSystemManager, getFileInfo, getApp, getCurrentInstance, stopLocationUpdate, startLocationUpdateBackground, startLocationUpdate, openLocation, onLocationChangeError, onLocationChange, offLocationChangeError, offLocationChange, getLocation, choosePoi, getFuzzyLocation, chooseLocation, stopVoice, setInnerAudioOption, playVoice, pauseVoice, getAvailableAudioSources, createWebAudioContext, createMediaAudioPlayer, createInnerAudioContext, createAudioContext, stopBackgroundAudio, seekBackgroundAudio, playBackgroundAudio, pauseBackgroundAudio, onBackgroundAudioStop, onBackgroundAudioPlay, onBackgroundAudioPause, getBackgroundAudioPlayerState, getBackgroundAudioManager, createCameraContext, saveImageToPhotosAlbum, previewMedia, getImageInfo, previewImage, compressImage, chooseMessageFile, chooseImage, editImage, cropImage, createLivePusherContext, createLivePlayerContext, createMapContext, createMediaRecorder, stopRecord, startRecord, getRecorderManager, saveVideoToPhotosAlbum, openVideoEditor, getVideoInfo, createVideoContext, compressVideo, chooseVideo, chooseMedia, createVideoDecoder, createMediaContainer, updateVoIPChatMuteConfig, subscribeVoIPVideoMembers, setEnable1v1Chat, onVoIPVideoMembersChanged, onVoIPChatStateChanged, onVoIPChatSpeakersChanged, onVoIPChatMembersChanged, onVoIPChatInterrupted, offVoIPVideoMembersChanged, offVoIPChatStateChanged, offVoIPChatMembersChanged, offVoIPChatInterrupted, joinVoIPChat, exitVoIPChat, openEmbeddedMiniProgram, navigateToMiniProgram, navigateBackMiniProgram, exitMiniProgram, openBusinessView, downloadFile, stopLocalServiceDiscovery, startLocalServiceDiscovery, onLocalServiceResolveFail, onLocalServiceLost, onLocalServiceFound, onLocalServiceDiscoveryStop, offLocalServiceResolveFail, offLocalServiceLost, offLocalServiceFound, offLocalServiceDiscoveryStop, request, addInterceptor, cleanInterceptors, createTCPSocket, createUDPSocket, uploadFile, sendSocketMessage, onSocketOpen, onSocketMessage, onSocketError, onSocketClose, connectSocket, closeSocket, getAccountInfoSync, chooseAddress, authorizeForMiniProgram, authorize, openCard, addCard, reserveChannelsLive, openChannelsLive, openChannelsEvent, openChannelsActivity, getChannelsLiveNoticeInfo, getChannelsLiveInfo, openCustomerServiceChat, checkIsSupportFacialRecognition, startFacialRecognitionVerify, startFacialRecognitionVerifyAndUploadVideo, faceVerifyForPay, addVideoToFavorites, addFileToFavorites, checkIsAddedToMyMiniProgram, getGroupEnterInfo, chooseInvoiceTitle, chooseInvoice, chooseLicensePlate, pluginLogin, login, checkSession, showRedPackage, openSetting, getSetting, startSoterAuthentication, checkIsSupportSoterAuthentication, checkIsSoterEnrolledInDevice, requestSubscribeMessage, requestSubscribeDeviceMessage, getUserProfile, getUserInfo, shareToWeRun, getWeRunData, requestPayment, requestOrderPayment, openQzonePublish, updateShareMenu, showShareMenu, showShareImageMenu, shareVideoMessage, shareFileMessage, onCopyUrl, offCopyUrl, hideShareMenu, getShareInfo, authPrivateMessage, setStorageSync, setStorage, revokeBufferURL, removeStorageSync, removeStorage, getStorageSync, getStorageInfoSync, getStorageInfo, getStorage, createBufferURL, clearStorageSync, clearStorage, setBackgroundFetchToken, onBackgroundFetchData, getBackgroundFetchToken, getBackgroundFetchData, setPageInfo, ocrIdCard, ocrBankCard, ocrDrivingLicense, ocrVehicleLicense, textReview, textToAudio, imageAudit, advancedGeneralIdentify, objectDetectIdentify, carClassify, dishClassify, logoClassify, animalClassify, plantClassify, getSwanId, requestPolymerPayment, navigateToSmartGameProgram, navigateToSmartProgram, navigateBackSmartProgram, preloadSubPackage, createAnimation, setBackgroundTextStyle, setBackgroundColor, nextTick, loadFontFace, disableAlertBeforeUnload, enableAlertBeforeUnload, hideLoading, hideToast, showActionSheet, showLoading, showModal, showToast, getMenuButtonBoundingClientRect, showNavigationBarLoading, setNavigationBarTitle, setNavigationBarColor, hideNavigationBarLoading, hideHomeButton, startPullDownRefresh, stopPullDownRefresh, pageScrollTo, setTopBarText, initTabBarApis, showTabBarRedDot, showTabBar, setTabBarStyle, setTabBarItem, setTabBarBadge, removeTabBarBadge, hideTabBarRedDot, hideTabBar, setWindowSize, onWindowResize, offWindowResize, checkIsPictureInPictureActive, createWorker, createSelectorQuery, createIntersectionObserver, createMediaQueryObserver, Behavior, canIUseWebp, Current, ENV_TYPE, eventCenter, Events, getAppInfo, getEnv, history, initPxTransform, interceptorify, interceptors, Link, options, preload, pxTransform, requirePlugin };
788
+ export { taro as default, taro, createRewardedVideoAd, createInterstitialAd, stopFaceDetect, initFaceDetect, faceDetect, isVKSupport, createVKSession, getOpenUserInfo, env, arrayBufferToBase64, base64ToArrayBuffer, getUserCryptoManager, setEnableDebug, getRealtimeLogManager, getLogManager, reportPerformance, getPerformance, openSystemBluetoothSetting, openAppAuthorizeSetting, getWindowInfo, getSystemSetting, getDeviceInfo, getAppBaseInfo, getAppAuthorizeSetting, getSystemInfoSync, getSystemInfoAsync, getSystemInfo, updateWeChatApp, getUpdateManager, onUnhandledRejection, onThemeChange, onPageNotFound, onError, onAudioInterruptionEnd, onAudioInterruptionBegin, onAppShow, onAppHide, offUnhandledRejection, offThemeChange, offPageNotFound, offError, offAudioInterruptionEnd, offAudioInterruptionBegin, offAppShow, offAppHide, getLaunchOptionsSync, getEnterOptionsSync, createOffscreenCanvas, createCanvasContext, canvasToTempFilePath, canvasPutImageData, canvasGetImageData, cloud, reportMonitor, reportAnalytics, reportEvent, getExptInfoSync, stopAccelerometer, startAccelerometer, onAccelerometerChange, offAccelerometerChange, checkIsOpenAccessibility, getBatteryInfoSync, getBatteryInfo, stopBluetoothDevicesDiscovery, startBluetoothDevicesDiscovery, openBluetoothAdapter, onBluetoothDeviceFound, onBluetoothAdapterStateChange, offBluetoothDeviceFound, offBluetoothAdapterStateChange, makeBluetoothPair, isBluetoothDevicePaired, getConnectedBluetoothDevices, getBluetoothDevices, getBluetoothAdapterState, closeBluetoothAdapter, writeBLECharacteristicValue, setBLEMTU, readBLECharacteristicValue, onBLEMTUChange, onBLEConnectionStateChange, onBLECharacteristicValueChange, offBLEMTUChange, offBLEConnectionStateChange, offBLECharacteristicValueChange, notifyBLECharacteristicValueChange, getBLEMTU, getBLEDeviceServices, getBLEDeviceRSSI, getBLEDeviceCharacteristics, createBLEConnection, closeBLEConnection, onBLEPeripheralConnectionStateChanged, offBLEPeripheralConnectionStateChanged, createBLEPeripheralServer, addPhoneRepeatCalendar, addPhoneCalendar, setClipboardData, getClipboardData, stopCompass, startCompass, onCompassChange, offCompassChange, chooseContact, addPhoneContact, getRandomValues, stopGyroscope, startGyroscope, onGyroscopeChange, offGyroscopeChange, stopBeaconDiscovery, startBeaconDiscovery, onBeaconUpdate, onBeaconServiceChange, offBeaconUpdate, offBeaconServiceChange, getBeacons, onKeyboardHeightChange, offKeyboardHeightChange, hideKeyboard, getSelectedTextRange, onMemoryWarning, offMemoryWarning, stopDeviceMotionListening, startDeviceMotionListening, onDeviceMotionChange, offDeviceMotionChange, getNetworkType, onNetworkWeakChange, onNetworkStatusChange, offNetworkWeakChange, offNetworkStatusChange, getLocalIPAddress, stopHCE, startHCE, sendHCEMessage, onHCEMessage, offHCEMessage, getNFCAdapter, getHCEState, makePhoneCall, scanCode, setVisualEffectOnCapture, setScreenBrightness, setKeepScreenOn, onUserCaptureScreen, offUserCaptureScreen, getScreenBrightness, vibrateShort, vibrateLong, stopWifi, startWifi, setWifiList, onWifiConnectedWithPartialInfo, onWifiConnected, onGetWifiList, offWifiConnectedWithPartialInfo, offWifiConnected, offGetWifiList, getWifiList, getConnectedWifi, connectWifi, getExtConfigSync, getExtConfig, saveFileToDisk, saveFile, removeSavedFile, openDocument, getSavedFileList, getSavedFileInfo, getFileSystemManager, getFileInfo, getApp, getCurrentInstance, stopLocationUpdate, startLocationUpdateBackground, startLocationUpdate, openLocation, onLocationChangeError, onLocationChange, offLocationChangeError, offLocationChange, getLocation, choosePoi, getFuzzyLocation, chooseLocation, stopVoice, setInnerAudioOption, playVoice, pauseVoice, getAvailableAudioSources, createWebAudioContext, createMediaAudioPlayer, createInnerAudioContext, createAudioContext, stopBackgroundAudio, seekBackgroundAudio, playBackgroundAudio, pauseBackgroundAudio, onBackgroundAudioStop, onBackgroundAudioPlay, onBackgroundAudioPause, getBackgroundAudioPlayerState, getBackgroundAudioManager, createCameraContext, saveImageToPhotosAlbum, previewMedia, getImageInfo, previewImage, compressImage, chooseMessageFile, chooseImage, editImage, cropImage, createLivePusherContext, createLivePlayerContext, createMapContext, createMediaRecorder, stopRecord, startRecord, getRecorderManager, saveVideoToPhotosAlbum, openVideoEditor, getVideoInfo, createVideoContext, compressVideo, chooseMedia, chooseVideo, createVideoDecoder, createMediaContainer, updateVoIPChatMuteConfig, subscribeVoIPVideoMembers, setEnable1v1Chat, onVoIPVideoMembersChanged, onVoIPChatStateChanged, onVoIPChatSpeakersChanged, onVoIPChatMembersChanged, onVoIPChatInterrupted, offVoIPVideoMembersChanged, offVoIPChatStateChanged, offVoIPChatMembersChanged, offVoIPChatInterrupted, joinVoIPChat, exitVoIPChat, openEmbeddedMiniProgram, navigateToMiniProgram, navigateBackMiniProgram, exitMiniProgram, openBusinessView, downloadFile, stopLocalServiceDiscovery, startLocalServiceDiscovery, onLocalServiceResolveFail, onLocalServiceLost, onLocalServiceFound, onLocalServiceDiscoveryStop, offLocalServiceResolveFail, offLocalServiceLost, offLocalServiceFound, offLocalServiceDiscoveryStop, request, addInterceptor, cleanInterceptors, createTCPSocket, createUDPSocket, uploadFile, sendSocketMessage, onSocketOpen, onSocketMessage, onSocketError, onSocketClose, connectSocket, closeSocket, getAccountInfoSync, chooseAddress, authorizeForMiniProgram, authorize, openCard, addCard, reserveChannelsLive, openChannelsLive, openChannelsEvent, openChannelsActivity, getChannelsLiveNoticeInfo, getChannelsLiveInfo, openCustomerServiceChat, checkIsSupportFacialRecognition, startFacialRecognitionVerify, startFacialRecognitionVerifyAndUploadVideo, faceVerifyForPay, addVideoToFavorites, addFileToFavorites, checkIsAddedToMyMiniProgram, getGroupEnterInfo, chooseInvoiceTitle, chooseInvoice, chooseLicensePlate, pluginLogin, login, checkSession, showRedPackage, openSetting, getSetting, startSoterAuthentication, checkIsSupportSoterAuthentication, checkIsSoterEnrolledInDevice, requestSubscribeMessage, requestSubscribeDeviceMessage, getUserProfile, getUserInfo, shareToWeRun, getWeRunData, requestPayment, requestOrderPayment, openQzonePublish, updateShareMenu, showShareMenu, showShareImageMenu, shareVideoMessage, shareFileMessage, onCopyUrl, offCopyUrl, hideShareMenu, getShareInfo, authPrivateMessage, setStorageSync, setStorage, revokeBufferURL, removeStorageSync, removeStorage, getStorageSync, getStorageInfoSync, getStorageInfo, getStorage, createBufferURL, clearStorageSync, clearStorage, setBackgroundFetchToken, onBackgroundFetchData, getBackgroundFetchToken, getBackgroundFetchData, setPageInfo, ocrIdCard, ocrBankCard, ocrDrivingLicense, ocrVehicleLicense, textReview, textToAudio, imageAudit, advancedGeneralIdentify, objectDetectIdentify, carClassify, dishClassify, logoClassify, animalClassify, plantClassify, getSwanId, requestPolymerPayment, navigateToSmartGameProgram, navigateToSmartProgram, navigateBackSmartProgram, preloadSubPackage, createAnimation, setBackgroundTextStyle, setBackgroundColor, nextTick, loadFontFace, disableAlertBeforeUnload, enableAlertBeforeUnload, hideLoading, hideToast, showActionSheet, showLoading, showModal, showToast, getMenuButtonBoundingClientRect, showNavigationBarLoading, setNavigationBarTitle, setNavigationBarColor, hideNavigationBarLoading, hideHomeButton, startPullDownRefresh, stopPullDownRefresh, pageScrollTo, setTopBarText, initTabBarApis, showTabBarRedDot, showTabBar, setTabBarStyle, setTabBarItem, setTabBarBadge, removeTabBarBadge, hideTabBarRedDot, hideTabBar, setWindowSize, onWindowResize, offWindowResize, checkIsPictureInPictureActive, createWorker, createSelectorQuery, createIntersectionObserver, createMediaQueryObserver, Behavior, canIUseWebp, Current, ENV_TYPE, eventCenter, Events, getAppInfo, getEnv, history, initPxTransform, interceptorify, interceptors, Link, options, preload, pxTransform, requirePlugin };
775
789
  export { getCurrentPages, navigateBack, navigateTo, redirectTo, reLaunch, switchTab } from "@tarojs/router";