@tarojs/taro-h5 3.7.0-alpha.2 → 3.7.0-alpha.3

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 (292) 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/index.d.ts +3 -2
  6. package/dist/api/ai/index.js +1 -0
  7. package/dist/api/ai/index.js.map +1 -1
  8. package/dist/api/ai/inference.d.ts +3 -0
  9. package/dist/api/ai/inference.js +8 -0
  10. package/dist/api/ai/inference.js.map +1 -0
  11. package/dist/api/ai/visual.js +2 -2
  12. package/dist/api/ai/visual.js.map +1 -1
  13. package/dist/api/alipay/index.js +1 -1
  14. package/dist/api/alipay/index.js.map +1 -1
  15. package/dist/api/base/crypto.js +1 -1
  16. package/dist/api/base/crypto.js.map +1 -1
  17. package/dist/api/base/debug.js +3 -3
  18. package/dist/api/base/debug.js.map +1 -1
  19. package/dist/api/base/index.d.ts +8 -9
  20. package/dist/api/base/index.js +6 -6
  21. package/dist/api/base/index.js.map +1 -1
  22. package/dist/api/base/performance.d.ts +4 -1
  23. package/dist/api/base/performance.js +6 -3
  24. package/dist/api/base/performance.js.map +1 -1
  25. package/dist/api/base/system.d.ts +4 -1
  26. package/dist/api/base/system.js +6 -3
  27. package/dist/api/base/system.js.map +1 -1
  28. package/dist/api/base/update.js +2 -2
  29. package/dist/api/base/update.js.map +1 -1
  30. package/dist/api/base/weapp/app-event.d.ts +13 -11
  31. package/dist/api/base/weapp/app-event.js +84 -14
  32. package/dist/api/base/weapp/app-event.js.map +1 -1
  33. package/dist/api/canvas/CanvasContext.d.ts +2 -1
  34. package/dist/api/canvas/CanvasContext.js.map +1 -1
  35. package/dist/api/canvas/index.d.ts +4 -4
  36. package/dist/api/canvas/index.js +1 -1
  37. package/dist/api/canvas/index.js.map +1 -1
  38. package/dist/api/data-analysis/index.js +4 -4
  39. package/dist/api/data-analysis/index.js.map +1 -1
  40. package/dist/api/device/accelerometer.js +1 -2
  41. package/dist/api/device/accelerometer.js.map +1 -1
  42. package/dist/api/device/accessibility.js +1 -1
  43. package/dist/api/device/accessibility.js.map +1 -1
  44. package/dist/api/device/battery.js +1 -1
  45. package/dist/api/device/battery.js.map +1 -1
  46. package/dist/api/device/bluetooth-ble.js +16 -16
  47. package/dist/api/device/bluetooth-ble.js.map +1 -1
  48. package/dist/api/device/bluetooth-peripheral.js +3 -3
  49. package/dist/api/device/bluetooth-peripheral.js.map +1 -1
  50. package/dist/api/device/bluetooth.js +13 -13
  51. package/dist/api/device/bluetooth.js.map +1 -1
  52. package/dist/api/device/calendar.d.ts +3 -2
  53. package/dist/api/device/calendar.js +142 -3
  54. package/dist/api/device/calendar.js.map +1 -1
  55. package/dist/api/device/compass.js +1 -2
  56. package/dist/api/device/compass.js.map +1 -1
  57. package/dist/api/device/contact.js +2 -2
  58. package/dist/api/device/contact.js.map +1 -1
  59. package/dist/api/device/crypto.js +1 -1
  60. package/dist/api/device/crypto.js.map +1 -1
  61. package/dist/api/device/gyroscope.js +4 -4
  62. package/dist/api/device/gyroscope.js.map +1 -1
  63. package/dist/api/device/iBeacon.js +7 -7
  64. package/dist/api/device/iBeacon.js.map +1 -1
  65. package/dist/api/device/index.d.ts +24 -23
  66. package/dist/api/device/index.js +3 -2
  67. package/dist/api/device/index.js.map +1 -1
  68. package/dist/api/device/keyboard.js +4 -4
  69. package/dist/api/device/keyboard.js.map +1 -1
  70. package/dist/api/device/memory.js +2 -2
  71. package/dist/api/device/memory.js.map +1 -1
  72. package/dist/api/device/motion.js +1 -2
  73. package/dist/api/device/motion.js.map +1 -1
  74. package/dist/api/device/network.js +3 -3
  75. package/dist/api/device/network.js.map +1 -1
  76. package/dist/api/device/nfc.js +7 -7
  77. package/dist/api/device/nfc.js.map +1 -1
  78. package/dist/api/device/scan.js +1 -1
  79. package/dist/api/device/scan.js.map +1 -1
  80. package/dist/api/device/screen.d.ts +4 -1
  81. package/dist/api/device/screen.js +10 -7
  82. package/dist/api/device/screen.js.map +1 -1
  83. package/dist/api/device/sms.d.ts +2 -0
  84. package/dist/api/device/sms.js +7 -0
  85. package/dist/api/device/sms.js.map +1 -0
  86. package/dist/api/device/wifi.d.ts +2 -1
  87. package/dist/api/device/wifi.js +13 -12
  88. package/dist/api/device/wifi.js.map +1 -1
  89. package/dist/api/ext/index.js +2 -2
  90. package/dist/api/ext/index.js.map +1 -1
  91. package/dist/api/files/index.js +8 -8
  92. package/dist/api/files/index.js.map +1 -1
  93. package/dist/api/framework/index.d.ts +1 -1
  94. package/dist/api/index.d.ts +25 -24
  95. package/dist/api/index.js +24 -14
  96. package/dist/api/index.js.map +1 -1
  97. package/dist/api/location/chooseLocation.js +9 -5
  98. package/dist/api/location/chooseLocation.js.map +1 -1
  99. package/dist/api/location/getLocation.js +1 -1
  100. package/dist/api/location/getLocation.js.map +1 -1
  101. package/dist/api/location/index.d.ts +2 -2
  102. package/dist/api/location/index.js +10 -10
  103. package/dist/api/location/index.js.map +1 -1
  104. package/dist/api/media/audio/InnerAudioContext.d.ts +3 -1
  105. package/dist/api/media/audio/InnerAudioContext.js +4 -1
  106. package/dist/api/media/audio/InnerAudioContext.js.map +1 -1
  107. package/dist/api/media/audio/index.js +8 -8
  108. package/dist/api/media/audio/index.js.map +1 -1
  109. package/dist/api/media/background-audio/BackgroundAudioManager.d.ts +1 -1
  110. package/dist/api/media/background-audio/index.d.ts +1 -1
  111. package/dist/api/media/background-audio/index.js +8 -8
  112. package/dist/api/media/background-audio/index.js.map +1 -1
  113. package/dist/api/media/camera.js +1 -1
  114. package/dist/api/media/camera.js.map +1 -1
  115. package/dist/api/media/image/chooseImage.d.ts +1 -0
  116. package/dist/api/media/image/chooseImage.js +28 -71
  117. package/dist/api/media/image/chooseImage.js.map +1 -1
  118. package/dist/api/media/image/index.d.ts +9 -6
  119. package/dist/api/media/image/index.js +8 -7
  120. package/dist/api/media/image/index.js.map +1 -1
  121. package/dist/api/media/image/previewImage.js +5 -5
  122. package/dist/api/media/image/previewImage.js.map +1 -1
  123. package/dist/api/media/image/saveImageToPhotosAlbum.d.ts +3 -0
  124. package/dist/api/media/image/saveImageToPhotosAlbum.js +30 -0
  125. package/dist/api/media/image/saveImageToPhotosAlbum.js.map +1 -0
  126. package/dist/api/media/index.d.ts +12 -12
  127. package/dist/api/media/index.js +3 -3
  128. package/dist/api/media/live.js +2 -2
  129. package/dist/api/media/live.js.map +1 -1
  130. package/dist/api/media/map.js +1 -1
  131. package/dist/api/media/map.js.map +1 -1
  132. package/dist/api/media/media-recorder.js +1 -1
  133. package/dist/api/media/media-recorder.js.map +1 -1
  134. package/dist/api/media/recorder.js +3 -3
  135. package/dist/api/media/recorder.js.map +1 -1
  136. package/dist/api/media/video/chooseMedia.d.ts +6 -0
  137. package/dist/api/media/video/chooseMedia.js +208 -0
  138. package/dist/api/media/video/chooseMedia.js.map +1 -0
  139. package/dist/api/media/video/chooseVideo.d.ts +7 -0
  140. package/dist/api/media/video/chooseVideo.js +44 -0
  141. package/dist/api/media/video/chooseVideo.js.map +1 -0
  142. package/dist/api/media/video/getVideoInfo.d.ts +3 -0
  143. package/dist/api/media/video/getVideoInfo.js +63 -0
  144. package/dist/api/media/video/getVideoInfo.js.map +1 -0
  145. package/dist/api/media/video/index.d.ts +5 -8
  146. package/dist/api/media/video/index.js +8 -67
  147. package/dist/api/media/video/index.js.map +1 -1
  148. package/dist/api/media/video/saveVideoToPhotosAlbum.d.ts +3 -0
  149. package/dist/api/media/video/saveVideoToPhotosAlbum.js +30 -0
  150. package/dist/api/media/video/saveVideoToPhotosAlbum.js.map +1 -0
  151. package/dist/api/media/video-decoder.js +1 -1
  152. package/dist/api/media/video-decoder.js.map +1 -1
  153. package/dist/api/media/video-processing.js +1 -1
  154. package/dist/api/media/video-processing.js.map +1 -1
  155. package/dist/api/media/voip.d.ts +3 -1
  156. package/dist/api/media/voip.js +17 -15
  157. package/dist/api/media/voip.js.map +1 -1
  158. package/dist/api/navigate/index.js +5 -5
  159. package/dist/api/navigate/index.js.map +1 -1
  160. package/dist/api/network/index.d.ts +7 -7
  161. package/dist/api/network/mdns.js +10 -10
  162. package/dist/api/network/mdns.js.map +1 -1
  163. package/dist/api/network/request/index.d.ts +1 -1
  164. package/dist/api/network/request/index.js +23 -18
  165. package/dist/api/network/request/index.js.map +1 -1
  166. package/dist/api/network/tcp.js +1 -1
  167. package/dist/api/network/tcp.js.map +1 -1
  168. package/dist/api/network/udp.js +1 -1
  169. package/dist/api/network/udp.js.map +1 -1
  170. package/dist/api/network/upload.js.map +1 -1
  171. package/dist/api/open-api/account.js +1 -1
  172. package/dist/api/open-api/account.js.map +1 -1
  173. package/dist/api/open-api/address.js +1 -1
  174. package/dist/api/open-api/address.js.map +1 -1
  175. package/dist/api/open-api/authorize.js +2 -2
  176. package/dist/api/open-api/authorize.js.map +1 -1
  177. package/dist/api/open-api/card.js +2 -2
  178. package/dist/api/open-api/card.js.map +1 -1
  179. package/dist/api/open-api/channels-live.d.ts +3 -1
  180. package/dist/api/open-api/channels-live.js +9 -7
  181. package/dist/api/open-api/channels-live.js.map +1 -1
  182. package/dist/api/open-api/customer-service.js +1 -1
  183. package/dist/api/open-api/customer-service.js.map +1 -1
  184. package/dist/api/open-api/device-voip.d.ts +3 -0
  185. package/dist/api/open-api/device-voip.js +8 -0
  186. package/dist/api/open-api/device-voip.js.map +1 -0
  187. package/dist/api/open-api/facial.js +4 -4
  188. package/dist/api/open-api/facial.js.map +1 -1
  189. package/dist/api/open-api/favorites.js +3 -3
  190. package/dist/api/open-api/favorites.js.map +1 -1
  191. package/dist/api/open-api/group.js +1 -1
  192. package/dist/api/open-api/group.js.map +1 -1
  193. package/dist/api/open-api/index.d.ts +19 -18
  194. package/dist/api/open-api/index.js +3 -2
  195. package/dist/api/open-api/index.js.map +1 -1
  196. package/dist/api/open-api/invoice.js +2 -2
  197. package/dist/api/open-api/invoice.js.map +1 -1
  198. package/dist/api/open-api/license-plate.js +1 -1
  199. package/dist/api/open-api/license-plate.js.map +1 -1
  200. package/dist/api/open-api/login.js +3 -3
  201. package/dist/api/open-api/login.js.map +1 -1
  202. package/dist/api/open-api/red-package.js +1 -1
  203. package/dist/api/open-api/red-package.js.map +1 -1
  204. package/dist/api/open-api/settings.js +2 -2
  205. package/dist/api/open-api/settings.js.map +1 -1
  206. package/dist/api/open-api/soter.js +3 -3
  207. package/dist/api/open-api/soter.js.map +1 -1
  208. package/dist/api/open-api/subscribe-message.d.ts +2 -1
  209. package/dist/api/open-api/subscribe-message.js +4 -2
  210. package/dist/api/open-api/subscribe-message.js.map +1 -1
  211. package/dist/api/open-api/user-info.js +2 -2
  212. package/dist/api/open-api/user-info.js.map +1 -1
  213. package/dist/api/open-api/werun.js +2 -2
  214. package/dist/api/open-api/werun.js.map +1 -1
  215. package/dist/api/payment/index.d.ts +2 -1
  216. package/dist/api/payment/index.js +4 -3
  217. package/dist/api/payment/index.js.map +1 -1
  218. package/dist/api/qq/index.d.ts +2 -0
  219. package/dist/api/qq/index.js +7 -0
  220. package/dist/api/qq/index.js.map +1 -0
  221. package/dist/api/share/index.d.ts +10 -0
  222. package/dist/api/share/index.js +21 -11
  223. package/dist/api/share/index.js.map +1 -1
  224. package/dist/api/storage/background-fetch.js +4 -4
  225. package/dist/api/storage/background-fetch.js.map +1 -1
  226. package/dist/api/storage/cache-manager.d.ts +2 -0
  227. package/dist/api/storage/cache-manager.js +7 -0
  228. package/dist/api/storage/cache-manager.js.map +1 -0
  229. package/dist/api/storage/index.d.ts +7 -2
  230. package/dist/api/storage/index.js +8 -3
  231. package/dist/api/storage/index.js.map +1 -1
  232. package/dist/api/swan/index.js +21 -21
  233. package/dist/api/swan/index.js.map +1 -1
  234. package/dist/api/taro.d.ts +7 -2
  235. package/dist/api/taro.js +13 -4
  236. package/dist/api/taro.js.map +1 -1
  237. package/dist/api/ui/background.js +2 -2
  238. package/dist/api/ui/background.js.map +1 -1
  239. package/dist/api/ui/index.d.ts +12 -12
  240. package/dist/api/ui/index.js +1 -1
  241. package/dist/api/ui/interaction/index.d.ts +1 -1
  242. package/dist/api/ui/interaction/index.js +4 -4
  243. package/dist/api/ui/interaction/index.js.map +1 -1
  244. package/dist/api/ui/interaction/modal.js +6 -0
  245. package/dist/api/ui/interaction/modal.js.map +1 -1
  246. package/dist/api/ui/interaction/toast.js +4 -0
  247. package/dist/api/ui/interaction/toast.js.map +1 -1
  248. package/dist/api/ui/menu.js +1 -1
  249. package/dist/api/ui/menu.js.map +1 -1
  250. package/dist/api/ui/navigation-bar/index.js +3 -3
  251. package/dist/api/ui/navigation-bar/index.js.map +1 -1
  252. package/dist/api/ui/scroll/index.js +4 -3
  253. package/dist/api/ui/scroll/index.js.map +1 -1
  254. package/dist/api/ui/sticky.js +1 -1
  255. package/dist/api/ui/sticky.js.map +1 -1
  256. package/dist/api/ui/window.d.ts +2 -1
  257. package/dist/api/ui/window.js +3 -2
  258. package/dist/api/ui/window.js.map +1 -1
  259. package/dist/api/worker/index.js +1 -1
  260. package/dist/api/worker/index.js.map +1 -1
  261. package/dist/api/wxml/IntersectionObserver.d.ts +1 -1
  262. package/dist/api/wxml/IntersectionObserver.js +15 -13
  263. package/dist/api/wxml/IntersectionObserver.js.map +1 -1
  264. package/dist/api/wxml/MediaQueryObserver.d.ts +1 -1
  265. package/dist/api/wxml/MediaQueryObserver.js +1 -2
  266. package/dist/api/wxml/MediaQueryObserver.js.map +1 -1
  267. package/dist/api/wxml/nodesRef.d.ts +1 -1
  268. package/dist/api/wxml/selectorQuery.d.ts +1 -1
  269. package/dist/api/wxml/selectorQuery.js +9 -6
  270. package/dist/api/wxml/selectorQuery.js.map +1 -1
  271. package/dist/index.cjs.d.ts +95 -51
  272. package/dist/index.cjs.js +3226 -2710
  273. package/dist/index.cjs.js.map +1 -1
  274. package/dist/index.d.ts +3 -3
  275. package/dist/index.esm.d.ts +95 -51
  276. package/dist/index.esm.js +2401 -1914
  277. package/dist/index.esm.js.map +1 -1
  278. package/dist/index.js +29 -15
  279. package/dist/index.js.map +1 -1
  280. package/dist/utils/handler.d.ts +13 -26
  281. package/dist/utils/handler.js +4 -16
  282. package/dist/utils/handler.js.map +1 -1
  283. package/dist/utils/helper.d.ts +2 -0
  284. package/dist/utils/helper.js +11 -0
  285. package/dist/utils/helper.js.map +1 -0
  286. package/dist/utils/index.d.ts +7 -6
  287. package/dist/utils/index.js +4 -12
  288. package/dist/utils/index.js.map +1 -1
  289. package/package.json +20 -14
  290. package/dist/utils/lodash.d.ts +0 -3
  291. package/dist/utils/lodash.js +0 -32
  292. package/dist/utils/lodash.js.map +0 -1
@@ -1,18 +1,19 @@
1
- export * from "./account";
2
- export * from "./address";
3
- export * from "./authorize";
4
- export * from "./card";
5
- export * from "./channels-live";
6
- export * from "./customer-service";
7
- export * from "./facial";
8
- export * from "./favorites";
9
- export * from "./group";
10
- export * from "./invoice";
11
- export * from "./license-plate";
12
- export * from "./login";
13
- export * from "./red-package";
14
- export * from "./settings";
15
- export * from "./soter";
16
- export * from "./subscribe-message";
17
- export * from "./user-info";
18
- export * from "./werun";
1
+ export * from "./account.js";
2
+ export * from "./address.js";
3
+ export * from "./authorize.js";
4
+ export * from "./card.js";
5
+ export * from "./channels-live.js";
6
+ export * from "./customer-service.js";
7
+ export * from "./device-voip.js";
8
+ export * from "./facial.js";
9
+ export * from "./favorites.js";
10
+ export * from "./group.js";
11
+ export * from "./invoice.js";
12
+ export * from "./license-plate.js";
13
+ export * from "./login.js";
14
+ export * from "./red-package.js";
15
+ export * from "./settings.js";
16
+ export * from "./soter.js";
17
+ export * from "./subscribe-message.js";
18
+ export * from "./user-info.js";
19
+ export * from "./werun.js";
@@ -2,8 +2,9 @@ export { getAccountInfoSync } from './account.js';
2
2
  export { chooseAddress } from './address.js';
3
3
  export { authorize, authorizeForMiniProgram } from './authorize.js';
4
4
  export { addCard, openCard } from './card.js';
5
- export { getChannelsLiveInfo, getChannelsLiveNoticeInfo, openChannelsActivity, openChannelsEvent, openChannelsLive, reserveChannelsLive } from './channels-live.js';
5
+ export { getChannelsLiveInfo, getChannelsLiveNoticeInfo, getChannelsShareKey, openChannelsActivity, openChannelsEvent, openChannelsLive, openChannelsUserProfile, reserveChannelsLive } from './channels-live.js';
6
6
  export { openCustomerServiceChat } from './customer-service.js';
7
+ export { getDeviceVoIPList, requestDeviceVoIP } from './device-voip.js';
7
8
  export { checkIsSupportFacialRecognition, faceVerifyForPay, startFacialRecognitionVerify, startFacialRecognitionVerifyAndUploadVideo } from './facial.js';
8
9
  export { addFileToFavorites, addVideoToFavorites, checkIsAddedToMyMiniProgram } from './favorites.js';
9
10
  export { getGroupEnterInfo } from './group.js';
@@ -13,7 +14,7 @@ export { checkSession, login, pluginLogin } from './login.js';
13
14
  export { showRedPackage } from './red-package.js';
14
15
  export { getSetting, openSetting } from './settings.js';
15
16
  export { checkIsSoterEnrolledInDevice, checkIsSupportSoterAuthentication, startSoterAuthentication } from './soter.js';
16
- export { requestSubscribeMessage } from './subscribe-message.js';
17
+ export { requestSubscribeDeviceMessage, requestSubscribeMessage } from './subscribe-message.js';
17
18
  export { getUserInfo, getUserProfile } from './user-info.js';
18
19
  export { getWeRunData, shareToWeRun } from './werun.js';
19
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;"}
@@ -1,8 +1,8 @@
1
1
  import { temporarilyNotSupport } from '../../utils/index.js';
2
2
 
3
3
  // 发票
4
- const chooseInvoiceTitle = temporarilyNotSupport('chooseInvoiceTitle');
5
- const chooseInvoice = temporarilyNotSupport('chooseInvoice');
4
+ const chooseInvoiceTitle = /* @__PURE__ */ temporarilyNotSupport('chooseInvoiceTitle');
5
+ const chooseInvoice = /* @__PURE__ */ temporarilyNotSupport('chooseInvoice');
6
6
 
7
7
  export { chooseInvoice, chooseInvoiceTitle };
8
8
  //# sourceMappingURL=invoice.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"invoice.js","sources":["../../../src/api/open-api/invoice.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 发票\nexport const chooseInvoiceTitle = temporarilyNotSupport('chooseInvoiceTitle')\nexport const chooseInvoice = temporarilyNotSupport('chooseInvoice')\n"],"names":[],"mappings":";;AAEA;MACa,kBAAkB,GAAG,qBAAqB,CAAC,oBAAoB,EAAC;MAChE,aAAa,GAAG,qBAAqB,CAAC,eAAe;;;;"}
1
+ {"version":3,"file":"invoice.js","sources":["../../../src/api/open-api/invoice.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 发票\nexport const chooseInvoiceTitle = /* @__PURE__ */ temporarilyNotSupport('chooseInvoiceTitle')\nexport const chooseInvoice = /* @__PURE__ */ temporarilyNotSupport('chooseInvoice')\n"],"names":[],"mappings":";;AAEA;AACa,MAAA,kBAAkB,mBAAmB,qBAAqB,CAAC,oBAAoB,EAAC;AAChF,MAAA,aAAa,mBAAmB,qBAAqB,CAAC,eAAe;;;;"}
@@ -1,7 +1,7 @@
1
1
  import { temporarilyNotSupport } from '../../utils/index.js';
2
2
 
3
3
  // 车牌
4
- const chooseLicensePlate = temporarilyNotSupport('chooseLicensePlate');
4
+ const chooseLicensePlate = /* @__PURE__ */ temporarilyNotSupport('chooseLicensePlate');
5
5
 
6
6
  export { chooseLicensePlate };
7
7
  //# sourceMappingURL=license-plate.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"license-plate.js","sources":["../../../src/api/open-api/license-plate.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 车牌\nexport const chooseLicensePlate = temporarilyNotSupport('chooseLicensePlate')\n"],"names":[],"mappings":";;AAEA;MACa,kBAAkB,GAAG,qBAAqB,CAAC,oBAAoB;;;;"}
1
+ {"version":3,"file":"license-plate.js","sources":["../../../src/api/open-api/license-plate.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 车牌\nexport const chooseLicensePlate = /* @__PURE__ */ temporarilyNotSupport('chooseLicensePlate')\n"],"names":[],"mappings":";;AAEA;AACa,MAAA,kBAAkB,mBAAmB,qBAAqB,CAAC,oBAAoB;;;;"}
@@ -1,9 +1,9 @@
1
1
  import { temporarilyNotSupport } from '../../utils/index.js';
2
2
 
3
3
  // 帐号信息
4
- const pluginLogin = temporarilyNotSupport('pluginLogin');
5
- const login = temporarilyNotSupport('login');
6
- const checkSession = temporarilyNotSupport('checkSession');
4
+ const pluginLogin = /* @__PURE__ */ temporarilyNotSupport('pluginLogin');
5
+ const login = /* @__PURE__ */ temporarilyNotSupport('login');
6
+ const checkSession = /* @__PURE__ */ temporarilyNotSupport('checkSession');
7
7
 
8
8
  export { checkSession, login, pluginLogin };
9
9
  //# sourceMappingURL=login.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"login.js","sources":["../../../src/api/open-api/login.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 帐号信息\nexport const pluginLogin = temporarilyNotSupport('pluginLogin')\nexport const login = temporarilyNotSupport('login')\nexport const checkSession = temporarilyNotSupport('checkSession')\n"],"names":[],"mappings":";;AAEA;MACa,WAAW,GAAG,qBAAqB,CAAC,aAAa,EAAC;MAClD,KAAK,GAAG,qBAAqB,CAAC,OAAO,EAAC;MACtC,YAAY,GAAG,qBAAqB,CAAC,cAAc;;;;"}
1
+ {"version":3,"file":"login.js","sources":["../../../src/api/open-api/login.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 帐号信息\nexport const pluginLogin = /* @__PURE__ */ temporarilyNotSupport('pluginLogin')\nexport const login = /* @__PURE__ */ temporarilyNotSupport('login')\nexport const checkSession = /* @__PURE__ */ temporarilyNotSupport('checkSession')\n"],"names":[],"mappings":";;AAEA;AACa,MAAA,WAAW,mBAAmB,qBAAqB,CAAC,aAAa,EAAC;AAClE,MAAA,KAAK,mBAAmB,qBAAqB,CAAC,OAAO,EAAC;AACtD,MAAA,YAAY,mBAAmB,qBAAqB,CAAC,cAAc;;;;"}
@@ -1,7 +1,7 @@
1
1
  import { temporarilyNotSupport } from '../../utils/index.js';
2
2
 
3
3
  // 微信红包
4
- const showRedPackage = temporarilyNotSupport('showRedPackage');
4
+ const showRedPackage = /* @__PURE__ */ temporarilyNotSupport('showRedPackage');
5
5
 
6
6
  export { showRedPackage };
7
7
  //# sourceMappingURL=red-package.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"red-package.js","sources":["../../../src/api/open-api/red-package.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 微信红包\nexport const showRedPackage = temporarilyNotSupport('showRedPackage')\n"],"names":[],"mappings":";;AAEA;MACa,cAAc,GAAG,qBAAqB,CAAC,gBAAgB;;;;"}
1
+ {"version":3,"file":"red-package.js","sources":["../../../src/api/open-api/red-package.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 微信红包\nexport const showRedPackage = /* @__PURE__ */ temporarilyNotSupport('showRedPackage')\n"],"names":[],"mappings":";;AAEA;AACa,MAAA,cAAc,mBAAmB,qBAAqB,CAAC,gBAAgB;;;;"}
@@ -1,8 +1,8 @@
1
1
  import { temporarilyNotSupport } from '../../utils/index.js';
2
2
 
3
3
  // 设置
4
- const openSetting = temporarilyNotSupport('openSetting');
5
- const getSetting = temporarilyNotSupport('getSetting');
4
+ const openSetting = /* @__PURE__ */ temporarilyNotSupport('openSetting');
5
+ const getSetting = /* @__PURE__ */ temporarilyNotSupport('getSetting');
6
6
 
7
7
  export { getSetting, openSetting };
8
8
  //# sourceMappingURL=settings.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"settings.js","sources":["../../../src/api/open-api/settings.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 设置\nexport const openSetting = temporarilyNotSupport('openSetting')\nexport const getSetting = temporarilyNotSupport('getSetting')\n"],"names":[],"mappings":";;AAEA;MACa,WAAW,GAAG,qBAAqB,CAAC,aAAa,EAAC;MAClD,UAAU,GAAG,qBAAqB,CAAC,YAAY;;;;"}
1
+ {"version":3,"file":"settings.js","sources":["../../../src/api/open-api/settings.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 设置\nexport const openSetting = /* @__PURE__ */ temporarilyNotSupport('openSetting')\nexport const getSetting = /* @__PURE__ */ temporarilyNotSupport('getSetting')\n"],"names":[],"mappings":";;AAEA;AACa,MAAA,WAAW,mBAAmB,qBAAqB,CAAC,aAAa,EAAC;AAClE,MAAA,UAAU,mBAAmB,qBAAqB,CAAC,YAAY;;;;"}
@@ -1,9 +1,9 @@
1
1
  import { temporarilyNotSupport } from '../../utils/index.js';
2
2
 
3
3
  // 生物认证
4
- const startSoterAuthentication = temporarilyNotSupport('startSoterAuthentication');
5
- const checkIsSupportSoterAuthentication = temporarilyNotSupport('checkIsSupportSoterAuthentication');
6
- const checkIsSoterEnrolledInDevice = temporarilyNotSupport('checkIsSoterEnrolledInDevice');
4
+ const startSoterAuthentication = /* @__PURE__ */ temporarilyNotSupport('startSoterAuthentication');
5
+ const checkIsSupportSoterAuthentication = /* @__PURE__ */ temporarilyNotSupport('checkIsSupportSoterAuthentication');
6
+ const checkIsSoterEnrolledInDevice = /* @__PURE__ */ temporarilyNotSupport('checkIsSoterEnrolledInDevice');
7
7
 
8
8
  export { checkIsSoterEnrolledInDevice, checkIsSupportSoterAuthentication, startSoterAuthentication };
9
9
  //# sourceMappingURL=soter.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"soter.js","sources":["../../../src/api/open-api/soter.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 生物认证\nexport const startSoterAuthentication = temporarilyNotSupport('startSoterAuthentication')\nexport const checkIsSupportSoterAuthentication = temporarilyNotSupport('checkIsSupportSoterAuthentication')\nexport const checkIsSoterEnrolledInDevice = temporarilyNotSupport('checkIsSoterEnrolledInDevice')\n"],"names":[],"mappings":";;AAEA;MACa,wBAAwB,GAAG,qBAAqB,CAAC,0BAA0B,EAAC;MAC5E,iCAAiC,GAAG,qBAAqB,CAAC,mCAAmC,EAAC;MAC9F,4BAA4B,GAAG,qBAAqB,CAAC,8BAA8B;;;;"}
1
+ {"version":3,"file":"soter.js","sources":["../../../src/api/open-api/soter.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 生物认证\nexport const startSoterAuthentication = /* @__PURE__ */ temporarilyNotSupport('startSoterAuthentication')\nexport const checkIsSupportSoterAuthentication = /* @__PURE__ */ temporarilyNotSupport('checkIsSupportSoterAuthentication')\nexport const checkIsSoterEnrolledInDevice = /* @__PURE__ */ temporarilyNotSupport('checkIsSoterEnrolledInDevice')\n"],"names":[],"mappings":";;AAEA;AACa,MAAA,wBAAwB,mBAAmB,qBAAqB,CAAC,0BAA0B,EAAC;AAC5F,MAAA,iCAAiC,mBAAmB,qBAAqB,CAAC,mCAAmC,EAAC;AAC9G,MAAA,4BAA4B,mBAAmB,qBAAqB,CAAC,8BAA8B;;;;"}
@@ -1,2 +1,3 @@
1
1
  declare const requestSubscribeMessage: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
2
- export { requestSubscribeMessage };
2
+ declare const requestSubscribeDeviceMessage: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
3
+ export { requestSubscribeMessage, requestSubscribeDeviceMessage };
@@ -1,7 +1,9 @@
1
1
  import { temporarilyNotSupport } from '../../utils/index.js';
2
2
 
3
3
  // 订阅消息
4
- const requestSubscribeMessage = temporarilyNotSupport('requestSubscribeMessage');
4
+ const requestSubscribeMessage = /* @__PURE__ */ temporarilyNotSupport('requestSubscribeMessage');
5
+ // 订阅设备消息
6
+ const requestSubscribeDeviceMessage = /* @__PURE__ */ temporarilyNotSupport('requestSubscribeDeviceMessage');
5
7
 
6
- export { requestSubscribeMessage };
8
+ export { requestSubscribeDeviceMessage, requestSubscribeMessage };
7
9
  //# sourceMappingURL=subscribe-message.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"subscribe-message.js","sources":["../../../src/api/open-api/subscribe-message.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 订阅消息\nexport const requestSubscribeMessage = temporarilyNotSupport('requestSubscribeMessage')\n"],"names":[],"mappings":";;AAEA;MACa,uBAAuB,GAAG,qBAAqB,CAAC,yBAAyB;;;;"}
1
+ {"version":3,"file":"subscribe-message.js","sources":["../../../src/api/open-api/subscribe-message.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 订阅消息\nexport const requestSubscribeMessage = /* @__PURE__ */ temporarilyNotSupport('requestSubscribeMessage')\n// 订阅设备消息\nexport const requestSubscribeDeviceMessage = /* @__PURE__ */ temporarilyNotSupport('requestSubscribeDeviceMessage')\n"],"names":[],"mappings":";;AAEA;AACa,MAAA,uBAAuB,mBAAmB,qBAAqB,CAAC,yBAAyB,EAAC;AACvG;AACa,MAAA,6BAA6B,mBAAmB,qBAAqB,CAAC,+BAA+B;;;;"}
@@ -1,8 +1,8 @@
1
1
  import { temporarilyNotSupport } from '../../utils/index.js';
2
2
 
3
3
  // 用户信息
4
- const getUserProfile = temporarilyNotSupport('getUserProfile');
5
- const getUserInfo = temporarilyNotSupport('getUserInfo');
4
+ const getUserProfile = /* @__PURE__ */ temporarilyNotSupport('getUserProfile');
5
+ const getUserInfo = /* @__PURE__ */ temporarilyNotSupport('getUserInfo');
6
6
 
7
7
  export { getUserInfo, getUserProfile };
8
8
  //# sourceMappingURL=user-info.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"user-info.js","sources":["../../../src/api/open-api/user-info.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 用户信息\nexport const getUserProfile = temporarilyNotSupport('getUserProfile')\nexport const getUserInfo = temporarilyNotSupport('getUserInfo')\n"],"names":[],"mappings":";;AAEA;MACa,cAAc,GAAG,qBAAqB,CAAC,gBAAgB,EAAC;MACxD,WAAW,GAAG,qBAAqB,CAAC,aAAa;;;;"}
1
+ {"version":3,"file":"user-info.js","sources":["../../../src/api/open-api/user-info.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 用户信息\nexport const getUserProfile = /* @__PURE__ */ temporarilyNotSupport('getUserProfile')\nexport const getUserInfo = /* @__PURE__ */ temporarilyNotSupport('getUserInfo')\n"],"names":[],"mappings":";;AAEA;AACa,MAAA,cAAc,mBAAmB,qBAAqB,CAAC,gBAAgB,EAAC;AACxE,MAAA,WAAW,mBAAmB,qBAAqB,CAAC,aAAa;;;;"}
@@ -1,8 +1,8 @@
1
1
  import { temporarilyNotSupport } from '../../utils/index.js';
2
2
 
3
3
  // 微信运动
4
- const shareToWeRun = temporarilyNotSupport('shareToWeRun');
5
- const getWeRunData = temporarilyNotSupport('getWeRunData');
4
+ const shareToWeRun = /* @__PURE__ */ temporarilyNotSupport('shareToWeRun');
5
+ const getWeRunData = /* @__PURE__ */ temporarilyNotSupport('getWeRunData');
6
6
 
7
7
  export { getWeRunData, shareToWeRun };
8
8
  //# sourceMappingURL=werun.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"werun.js","sources":["../../../src/api/open-api/werun.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 微信运动\nexport const shareToWeRun = temporarilyNotSupport('shareToWeRun')\nexport const getWeRunData = temporarilyNotSupport('getWeRunData')\n"],"names":[],"mappings":";;AAEA;MACa,YAAY,GAAG,qBAAqB,CAAC,cAAc,EAAC;MACpD,YAAY,GAAG,qBAAqB,CAAC,cAAc;;;;"}
1
+ {"version":3,"file":"werun.js","sources":["../../../src/api/open-api/werun.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 微信运动\nexport const shareToWeRun = /* @__PURE__ */ temporarilyNotSupport('shareToWeRun')\nexport const getWeRunData = /* @__PURE__ */ temporarilyNotSupport('getWeRunData')\n"],"names":[],"mappings":";;AAEA;AACa,MAAA,YAAY,mBAAmB,qBAAqB,CAAC,cAAc,EAAC;AACpE,MAAA,YAAY,mBAAmB,qBAAqB,CAAC,cAAc;;;;"}
@@ -1,3 +1,4 @@
1
1
  declare const requestPayment: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
2
+ declare const requestPluginPayment: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
2
3
  declare const requestOrderPayment: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
3
- export { requestPayment, requestOrderPayment };
4
+ export { requestPayment, requestPluginPayment, requestOrderPayment };
@@ -1,8 +1,9 @@
1
1
  import { temporarilyNotSupport } from '../../utils/index.js';
2
2
 
3
3
  // 支付
4
- const requestPayment = temporarilyNotSupport('requestPayment');
5
- const requestOrderPayment = temporarilyNotSupport('requestOrderPayment');
4
+ const requestPayment = /* @__PURE__ */ temporarilyNotSupport('requestPayment');
5
+ const requestPluginPayment = /* @__PURE__ */ temporarilyNotSupport('requestPluginPayment');
6
+ const requestOrderPayment = /* @__PURE__ */ temporarilyNotSupport('requestOrderPayment');
6
7
 
7
- export { requestOrderPayment, requestPayment };
8
+ export { requestOrderPayment, requestPayment, requestPluginPayment };
8
9
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/api/payment/index.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 支付\nexport const requestPayment = temporarilyNotSupport('requestPayment')\nexport const requestOrderPayment = temporarilyNotSupport('requestOrderPayment')\n"],"names":[],"mappings":";;AAEA;MACa,cAAc,GAAG,qBAAqB,CAAC,gBAAgB,EAAC;MACxD,mBAAmB,GAAG,qBAAqB,CAAC,qBAAqB;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/api/payment/index.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 支付\nexport const requestPayment = /* @__PURE__ */ temporarilyNotSupport('requestPayment')\nexport const requestPluginPayment = /* @__PURE__ */ temporarilyNotSupport('requestPluginPayment')\nexport const requestOrderPayment = /* @__PURE__ */ temporarilyNotSupport('requestOrderPayment')\n"],"names":[],"mappings":";;AAEA;AACa,MAAA,cAAc,mBAAmB,qBAAqB,CAAC,gBAAgB,EAAC;AACxE,MAAA,oBAAoB,mBAAmB,qBAAqB,CAAC,sBAAsB,EAAC;AACpF,MAAA,mBAAmB,mBAAmB,qBAAqB,CAAC,qBAAqB;;;;"}
@@ -0,0 +1,2 @@
1
+ declare const openQzonePublish: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
2
+ export { openQzonePublish };
@@ -0,0 +1,7 @@
1
+ import { temporarilyNotSupport } from '../../utils/index.js';
2
+
3
+ // 打开手Q说说发表界面
4
+ const openQzonePublish = /* @__PURE__ */ temporarilyNotSupport('openQzonePublish');
5
+
6
+ export { openQzonePublish };
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/api/qq/index.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 打开手Q说说发表界面\nexport const openQzonePublish = /* @__PURE__ */ temporarilyNotSupport('openQzonePublish')\n"],"names":[],"mappings":";;AAEA;AACa,MAAA,gBAAgB,mBAAmB,qBAAqB,CAAC,kBAAkB;;;;"}
@@ -1,11 +1,21 @@
1
+ /** 更新转发属性 */
1
2
  declare const updateShareMenu: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
3
+ /** 显示当前页面的转发按钮 */
2
4
  declare const showShareMenu: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
5
+ /** 打开分享图片弹窗,可以将图片发送给朋友、收藏或下载 */
3
6
  declare const showShareImageMenu: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
7
+ /** 转发视频到聊天 */
4
8
  declare const shareVideoMessage: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
9
+ /** 转发文件到聊天 */
5
10
  declare const shareFileMessage: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
11
+ /** 监听用户点击右上角菜单的「复制链接」按钮时触发的事件 */
6
12
  declare const onCopyUrl: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
13
+ /** 移除用户点击右上角菜单的「复制链接」按钮时触发的事件的监听函数 */
7
14
  declare const offCopyUrl: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
15
+ /** 隐藏当前页面的转发按钮 */
8
16
  declare const hideShareMenu: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
17
+ /** 获取转发详细信息 */
9
18
  declare const getShareInfo: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
19
+ /** 验证私密消息。 */
10
20
  declare const authPrivateMessage: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
11
21
  export { updateShareMenu, showShareMenu, showShareImageMenu, shareVideoMessage, shareFileMessage, onCopyUrl, offCopyUrl, hideShareMenu, getShareInfo, authPrivateMessage };
@@ -1,16 +1,26 @@
1
- import { temporarilyNotSupport } from '../../utils/index.js';
1
+ import { temporarilyNotSupport, permanentlyNotSupport } from '../../utils/index.js';
2
2
 
3
3
  // 转发
4
- const updateShareMenu = temporarilyNotSupport('updateShareMenu');
5
- const showShareMenu = temporarilyNotSupport('showShareMenu');
6
- const showShareImageMenu = temporarilyNotSupport('showShareImageMenu');
7
- const shareVideoMessage = temporarilyNotSupport('shareVideoMessage');
8
- const shareFileMessage = temporarilyNotSupport('shareFileMessage');
9
- const onCopyUrl = temporarilyNotSupport('onCopyUrl');
10
- const offCopyUrl = temporarilyNotSupport('offCopyUrl');
11
- const hideShareMenu = temporarilyNotSupport('hideShareMenu');
12
- const getShareInfo = temporarilyNotSupport('getShareInfo');
13
- const authPrivateMessage = temporarilyNotSupport('authPrivateMessage');
4
+ /** 更新转发属性 */
5
+ const updateShareMenu = /* @__PURE__ */ temporarilyNotSupport('updateShareMenu');
6
+ /** 显示当前页面的转发按钮 */
7
+ const showShareMenu = /* @__PURE__ */ temporarilyNotSupport('showShareMenu');
8
+ /** 打开分享图片弹窗,可以将图片发送给朋友、收藏或下载 */
9
+ const showShareImageMenu = /* @__PURE__ */ temporarilyNotSupport('showShareImageMenu');
10
+ /** 转发视频到聊天 */
11
+ const shareVideoMessage = /* @__PURE__ */ temporarilyNotSupport('shareVideoMessage');
12
+ /** 转发文件到聊天 */
13
+ const shareFileMessage = /* @__PURE__ */ temporarilyNotSupport('shareFileMessage');
14
+ /** 监听用户点击右上角菜单的「复制链接」按钮时触发的事件 */
15
+ const onCopyUrl = /* @__PURE__ */ temporarilyNotSupport('onCopyUrl');
16
+ /** 移除用户点击右上角菜单的「复制链接」按钮时触发的事件的监听函数 */
17
+ const offCopyUrl = /* @__PURE__ */ temporarilyNotSupport('offCopyUrl');
18
+ /** 隐藏当前页面的转发按钮 */
19
+ const hideShareMenu = /* @__PURE__ */ temporarilyNotSupport('hideShareMenu');
20
+ /** 获取转发详细信息 */
21
+ const getShareInfo = /* @__PURE__ */ temporarilyNotSupport('getShareInfo');
22
+ /** 验证私密消息。 */
23
+ const authPrivateMessage = /* @__PURE__ */ permanentlyNotSupport('authPrivateMessage');
14
24
 
15
25
  export { authPrivateMessage, getShareInfo, hideShareMenu, offCopyUrl, onCopyUrl, shareFileMessage, shareVideoMessage, showShareImageMenu, showShareMenu, updateShareMenu };
16
26
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/api/share/index.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 转发\nexport const updateShareMenu = temporarilyNotSupport('updateShareMenu')\nexport const showShareMenu = temporarilyNotSupport('showShareMenu')\nexport const showShareImageMenu = temporarilyNotSupport('showShareImageMenu')\nexport const shareVideoMessage = temporarilyNotSupport('shareVideoMessage')\nexport const shareFileMessage = temporarilyNotSupport('shareFileMessage')\nexport const onCopyUrl = temporarilyNotSupport('onCopyUrl')\nexport const offCopyUrl = temporarilyNotSupport('offCopyUrl')\nexport const hideShareMenu = temporarilyNotSupport('hideShareMenu')\nexport const getShareInfo = temporarilyNotSupport('getShareInfo')\nexport const authPrivateMessage = temporarilyNotSupport('authPrivateMessage')\n"],"names":[],"mappings":";;AAEA;MACa,eAAe,GAAG,qBAAqB,CAAC,iBAAiB,EAAC;MAC1D,aAAa,GAAG,qBAAqB,CAAC,eAAe,EAAC;MACtD,kBAAkB,GAAG,qBAAqB,CAAC,oBAAoB,EAAC;MAChE,iBAAiB,GAAG,qBAAqB,CAAC,mBAAmB,EAAC;MAC9D,gBAAgB,GAAG,qBAAqB,CAAC,kBAAkB,EAAC;MAC5D,SAAS,GAAG,qBAAqB,CAAC,WAAW,EAAC;MAC9C,UAAU,GAAG,qBAAqB,CAAC,YAAY,EAAC;MAChD,aAAa,GAAG,qBAAqB,CAAC,eAAe,EAAC;MACtD,YAAY,GAAG,qBAAqB,CAAC,cAAc,EAAC;MACpD,kBAAkB,GAAG,qBAAqB,CAAC,oBAAoB;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/api/share/index.ts"],"sourcesContent":["import { permanentlyNotSupport, temporarilyNotSupport } from '../../utils'\n\n// 转发\n\n/** 更新转发属性 */\nexport const updateShareMenu = /* @__PURE__ */ temporarilyNotSupport('updateShareMenu')\n\n/** 显示当前页面的转发按钮 */\nexport const showShareMenu = /* @__PURE__ */ temporarilyNotSupport('showShareMenu')\n\n/** 打开分享图片弹窗,可以将图片发送给朋友、收藏或下载 */\nexport const showShareImageMenu = /* @__PURE__ */ temporarilyNotSupport('showShareImageMenu')\n\n/** 转发视频到聊天 */\nexport const shareVideoMessage = /* @__PURE__ */ temporarilyNotSupport('shareVideoMessage')\n\n/** 转发文件到聊天 */\nexport const shareFileMessage = /* @__PURE__ */ temporarilyNotSupport('shareFileMessage')\n\n/** 监听用户点击右上角菜单的「复制链接」按钮时触发的事件 */\nexport const onCopyUrl = /* @__PURE__ */ temporarilyNotSupport('onCopyUrl')\n\n/** 移除用户点击右上角菜单的「复制链接」按钮时触发的事件的监听函数 */\nexport const offCopyUrl = /* @__PURE__ */ temporarilyNotSupport('offCopyUrl')\n\n/** 隐藏当前页面的转发按钮 */\nexport const hideShareMenu = /* @__PURE__ */ temporarilyNotSupport('hideShareMenu')\n\n/** 获取转发详细信息 */\nexport const getShareInfo = /* @__PURE__ */ temporarilyNotSupport('getShareInfo')\n\n/** 验证私密消息。 */\nexport const authPrivateMessage = /* @__PURE__ */ permanentlyNotSupport('authPrivateMessage')\n"],"names":[],"mappings":";;AAEA;AAEA;AACa,MAAA,eAAe,mBAAmB,qBAAqB,CAAC,iBAAiB,EAAC;AAEvF;AACa,MAAA,aAAa,mBAAmB,qBAAqB,CAAC,eAAe,EAAC;AAEnF;AACa,MAAA,kBAAkB,mBAAmB,qBAAqB,CAAC,oBAAoB,EAAC;AAE7F;AACa,MAAA,iBAAiB,mBAAmB,qBAAqB,CAAC,mBAAmB,EAAC;AAE3F;AACa,MAAA,gBAAgB,mBAAmB,qBAAqB,CAAC,kBAAkB,EAAC;AAEzF;AACa,MAAA,SAAS,mBAAmB,qBAAqB,CAAC,WAAW,EAAC;AAE3E;AACa,MAAA,UAAU,mBAAmB,qBAAqB,CAAC,YAAY,EAAC;AAE7E;AACa,MAAA,aAAa,mBAAmB,qBAAqB,CAAC,eAAe,EAAC;AAEnF;AACa,MAAA,YAAY,mBAAmB,qBAAqB,CAAC,cAAc,EAAC;AAEjF;AACa,MAAA,kBAAkB,mBAAmB,qBAAqB,CAAC,oBAAoB;;;;"}
@@ -1,10 +1,10 @@
1
1
  import { temporarilyNotSupport } from '../../utils/index.js';
2
2
 
3
3
  // 周期性更新
4
- const setBackgroundFetchToken = temporarilyNotSupport('setBackgroundFetchToken');
5
- const onBackgroundFetchData = temporarilyNotSupport('onBackgroundFetchData');
6
- const getBackgroundFetchToken = temporarilyNotSupport('getBackgroundFetchToken');
7
- const getBackgroundFetchData = temporarilyNotSupport('getBackgroundFetchData');
4
+ const setBackgroundFetchToken = /* @__PURE__ */ temporarilyNotSupport('setBackgroundFetchToken');
5
+ const onBackgroundFetchData = /* @__PURE__ */ temporarilyNotSupport('onBackgroundFetchData');
6
+ const getBackgroundFetchToken = /* @__PURE__ */ temporarilyNotSupport('getBackgroundFetchToken');
7
+ const getBackgroundFetchData = /* @__PURE__ */ temporarilyNotSupport('getBackgroundFetchData');
8
8
 
9
9
  export { getBackgroundFetchData, getBackgroundFetchToken, onBackgroundFetchData, setBackgroundFetchToken };
10
10
  //# sourceMappingURL=background-fetch.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"background-fetch.js","sources":["../../../src/api/storage/background-fetch.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 周期性更新\nexport const setBackgroundFetchToken = temporarilyNotSupport('setBackgroundFetchToken')\nexport const onBackgroundFetchData = temporarilyNotSupport('onBackgroundFetchData')\nexport const getBackgroundFetchToken = temporarilyNotSupport('getBackgroundFetchToken')\nexport const getBackgroundFetchData = temporarilyNotSupport('getBackgroundFetchData')\n"],"names":[],"mappings":";;AAEA;MACa,uBAAuB,GAAG,qBAAqB,CAAC,yBAAyB,EAAC;MAC1E,qBAAqB,GAAG,qBAAqB,CAAC,uBAAuB,EAAC;MACtE,uBAAuB,GAAG,qBAAqB,CAAC,yBAAyB,EAAC;MAC1E,sBAAsB,GAAG,qBAAqB,CAAC,wBAAwB;;;;"}
1
+ {"version":3,"file":"background-fetch.js","sources":["../../../src/api/storage/background-fetch.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 周期性更新\nexport const setBackgroundFetchToken = /* @__PURE__ */ temporarilyNotSupport('setBackgroundFetchToken')\nexport const onBackgroundFetchData = /* @__PURE__ */ temporarilyNotSupport('onBackgroundFetchData')\nexport const getBackgroundFetchToken = /* @__PURE__ */ temporarilyNotSupport('getBackgroundFetchToken')\nexport const getBackgroundFetchData = /* @__PURE__ */ temporarilyNotSupport('getBackgroundFetchData')\n"],"names":[],"mappings":";;AAEA;AACa,MAAA,uBAAuB,mBAAmB,qBAAqB,CAAC,yBAAyB,EAAC;AAC1F,MAAA,qBAAqB,mBAAmB,qBAAqB,CAAC,uBAAuB,EAAC;AACtF,MAAA,uBAAuB,mBAAmB,qBAAqB,CAAC,yBAAyB,EAAC;AAC1F,MAAA,sBAAsB,mBAAmB,qBAAqB,CAAC,wBAAwB;;;;"}
@@ -0,0 +1,2 @@
1
+ declare const createCacheManager: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
2
+ export { createCacheManager };
@@ -0,0 +1,7 @@
1
+ import { temporarilyNotSupport } from '../../utils/index.js';
2
+
3
+ // 周期性更新
4
+ const createCacheManager = /* @__PURE__ */ temporarilyNotSupport('createCacheManager');
5
+
6
+ export { createCacheManager };
7
+ //# sourceMappingURL=cache-manager.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cache-manager.js","sources":["../../../src/api/storage/cache-manager.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 周期性更新\nexport const createCacheManager = /* @__PURE__ */ temporarilyNotSupport('createCacheManager')\n"],"names":[],"mappings":";;AAEA;AACa,MAAA,kBAAkB,mBAAmB,qBAAqB,CAAC,oBAAoB;;;;"}
@@ -11,5 +11,10 @@ declare const getStorage: typeof Taro.getStorage;
11
11
  declare const createBufferURL: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
12
12
  declare const clearStorageSync: typeof Taro.clearStorageSync;
13
13
  declare const clearStorage: typeof Taro.clearStorage;
14
- export { setStorageSync, setStorage, revokeBufferURL, removeStorageSync, removeStorage, getStorageSync, getStorageInfoSync, getStorageInfo, getStorage, createBufferURL, clearStorageSync, clearStorage };
15
- export * from "./background-fetch";
14
+ declare const batchSetStorageSync: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
15
+ declare const batchSetStorage: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
16
+ declare const batchGetStorageSync: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
17
+ declare const batchGetStorage: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
18
+ export { setStorageSync, setStorage, revokeBufferURL, removeStorageSync, removeStorage, getStorageSync, getStorageInfoSync, getStorageInfo, getStorage, createBufferURL, clearStorageSync, clearStorage, batchSetStorageSync, batchSetStorage, batchGetStorageSync, batchGetStorage };
19
+ export * from "./background-fetch.js";
20
+ export * from "./cache-manager.js";
@@ -1,6 +1,7 @@
1
1
  import { getParameterError, shouldBeObject, temporarilyNotSupport } from '../../utils/index.js';
2
2
  import { MethodHandler } from '../../utils/handler.js';
3
3
  export { getBackgroundFetchData, getBackgroundFetchToken, onBackgroundFetchData, setBackgroundFetchToken } from './background-fetch.js';
4
+ export { createCacheManager } from './cache-manager.js';
4
5
 
5
6
  function getItem(key) {
6
7
  let item;
@@ -58,7 +59,7 @@ const setStorage = (options) => {
58
59
  setStorageSync(key, data);
59
60
  return handle.success();
60
61
  };
61
- const revokeBufferURL = temporarilyNotSupport('revokeBufferURL');
62
+ const revokeBufferURL = /* @__PURE__ */ temporarilyNotSupport('revokeBufferURL');
62
63
  const removeStorageSync = (key) => {
63
64
  if (typeof key !== 'string') {
64
65
  console.error(getParameterError({
@@ -147,7 +148,7 @@ const getStorage = (options) => {
147
148
  });
148
149
  }
149
150
  };
150
- const createBufferURL = temporarilyNotSupport('createBufferURL');
151
+ const createBufferURL = /* @__PURE__ */ temporarilyNotSupport('createBufferURL');
151
152
  const clearStorageSync = () => {
152
153
  localStorage.clear();
153
154
  };
@@ -156,6 +157,10 @@ const clearStorage = ({ success, fail, complete } = {}) => {
156
157
  clearStorageSync();
157
158
  return handle.success();
158
159
  };
160
+ const batchSetStorageSync = /* @__PURE__ */ temporarilyNotSupport('batchSetStorageSync');
161
+ const batchSetStorage = /* @__PURE__ */ temporarilyNotSupport('batchSetStorage');
162
+ const batchGetStorageSync = /* @__PURE__ */ temporarilyNotSupport('batchGetStorageSync');
163
+ const batchGetStorage = /* @__PURE__ */ temporarilyNotSupport('batchGetStorage');
159
164
 
160
- export { clearStorage, clearStorageSync, createBufferURL, getStorage, getStorageInfo, getStorageInfoSync, getStorageSync, removeStorage, removeStorageSync, revokeBufferURL, setStorage, setStorageSync };
165
+ export { batchGetStorage, batchGetStorageSync, batchSetStorage, batchSetStorageSync, clearStorage, clearStorageSync, createBufferURL, getStorage, getStorageInfo, getStorageInfoSync, getStorageSync, removeStorage, removeStorageSync, revokeBufferURL, setStorage, setStorageSync };
161
166
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/api/storage/index.ts"],"sourcesContent":["import Taro from '@tarojs/api'\n\nimport { getParameterError, shouldBeObject, temporarilyNotSupport } from '../../utils'\nimport { MethodHandler } from '../../utils/handler'\n\nfunction getItem (key) {\n let item\n try {\n item = JSON.parse(localStorage.getItem(key) || '')\n } catch (e) {} // eslint-disable-line no-empty\n\n // 只返回使用 Taro.setStorage API 存储的数据\n if (item && typeof item === 'object' && item.hasOwnProperty('data')) {\n return { result: true, data: item.data }\n } else {\n return { result: false }\n }\n}\n\n// 数据缓存\nexport const setStorageSync: typeof Taro.setStorageSync = (key, data = '') => {\n if (typeof key !== 'string') {\n console.error(getParameterError({\n name: 'setStorage',\n correct: 'String',\n wrong: key\n }))\n return\n }\n\n const type = typeof data\n let obj = {}\n\n if (type === 'symbol') {\n obj = { data: '' }\n } else {\n obj = { data }\n }\n localStorage.setItem(key, JSON.stringify(obj))\n}\n\nexport const setStorage: typeof Taro.setStorage = (options) => {\n // options must be an Object\n const isObject = shouldBeObject(options)\n if (!isObject.flag) {\n const res = { errMsg: `setStorage:fail ${isObject.msg}` }\n console.error(res.errMsg)\n return Promise.reject(res)\n }\n\n const { key, data, success, fail, complete } = options\n const handle = new MethodHandler({ name: 'setStorage', success, fail, complete })\n\n if (typeof key !== 'string') {\n return handle.fail({\n errMsg: getParameterError({\n para: 'key',\n correct: 'String',\n wrong: key\n })\n })\n }\n\n setStorageSync(key, data)\n return handle.success()\n}\n\nexport const revokeBufferURL = temporarilyNotSupport('revokeBufferURL')\n\nexport const removeStorageSync: typeof Taro.removeStorageSync = (key: string) => {\n if (typeof key !== 'string') {\n console.error(getParameterError({\n name: 'removeStorage',\n correct: 'String',\n wrong: key\n }))\n return\n }\n\n localStorage.removeItem(key)\n}\n\nexport const removeStorage: typeof Taro.removeStorage = (options: Taro.removeStorage.Option) => {\n // options must be an Object\n const isObject = shouldBeObject(options)\n if (!isObject.flag) {\n const res = { errMsg: `removeStorage:fail ${isObject.msg}` }\n console.error(res.errMsg)\n return Promise.reject(res)\n }\n const { key, success, fail, complete } = options\n const handle = new MethodHandler({ name: 'removeStorage', success, fail, complete })\n\n if (typeof key !== 'string') {\n return handle.fail({\n errMsg: getParameterError({\n para: 'key',\n correct: 'String',\n wrong: key\n })\n })\n }\n\n removeStorageSync(key)\n return handle.success()\n}\n\nexport const getStorageSync: typeof Taro.getStorageSync = (key) => {\n if (typeof key !== 'string') {\n console.error(getParameterError({\n name: 'getStorageSync',\n correct: 'String',\n wrong: key\n }))\n return\n }\n\n const res = getItem(key)\n if (res.result) return res.data\n\n return ''\n}\n\nexport const getStorageInfoSync: typeof Taro.getStorageInfoSync = () => {\n const res: Taro.getStorageInfoSync.Option = {\n keys: Object.keys(localStorage),\n limitSize: NaN,\n currentSize: NaN\n }\n return res\n}\n\nexport const getStorageInfo: typeof Taro.getStorageInfo = ({ success, fail, complete } = {}) => {\n const handle = new MethodHandler<Taro.getStorageInfo.SuccessCallbackOption>({ name: 'getStorageInfo', success, fail, complete })\n return handle.success(getStorageInfoSync())\n}\n\nexport const getStorage: typeof Taro.getStorage = <T>(options) => {\n // options must be an Object\n const isObject = shouldBeObject(options)\n if (!isObject.flag) {\n const res = { errMsg: `getStorage:fail ${isObject.msg}` }\n console.error(res.errMsg)\n return Promise.reject(res)\n }\n\n const { key, success, fail, complete } = options\n const handle = new MethodHandler<Taro.getStorage.SuccessCallbackResult<T>>({ name: 'getStorage', success, fail, complete })\n\n if (typeof key !== 'string') {\n return handle.fail({\n errMsg: getParameterError({\n para: 'key',\n correct: 'String',\n wrong: key\n })\n })\n }\n\n const { result, data } = getItem(key)\n if (result) {\n return handle.success({ data })\n } else {\n return handle.fail({\n errMsg: 'data not found'\n })\n }\n}\n\nexport const createBufferURL = temporarilyNotSupport('createBufferURL')\n\nexport const clearStorageSync: typeof Taro.clearStorageSync = () => {\n localStorage.clear()\n}\n\nexport const clearStorage: typeof Taro.clearStorage = ({ success, fail, complete } = {}) => {\n const handle = new MethodHandler({ name: 'clearStorage', success, fail, complete })\n clearStorageSync()\n return handle.success()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C,CAAA;AACnF,IAAA,gBAAgB,EAAE,CAAA;AAClB,IAAA,OAAO,MAAM,CAAC,OAAO,EAAE,CAAA;AACzB;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/api/storage/index.ts"],"sourcesContent":["import Taro from '@tarojs/api'\n\nimport { getParameterError, shouldBeObject, temporarilyNotSupport } from '../../utils'\nimport { MethodHandler } from '../../utils/handler'\n\nfunction getItem (key) {\n let item\n try {\n item = JSON.parse(localStorage.getItem(key) || '')\n } catch (e) {} // eslint-disable-line no-empty\n\n // 只返回使用 Taro.setStorage API 存储的数据\n if (item && typeof item === 'object' && item.hasOwnProperty('data')) {\n return { result: true, data: item.data }\n } else {\n return { result: false }\n }\n}\n\n// 数据缓存\nexport const setStorageSync: typeof Taro.setStorageSync = (key, data = '') => {\n if (typeof key !== 'string') {\n console.error(getParameterError({\n name: 'setStorage',\n correct: 'String',\n wrong: key\n }))\n return\n }\n\n const type = typeof data\n let obj = {}\n\n if (type === 'symbol') {\n obj = { data: '' }\n } else {\n obj = { data }\n }\n localStorage.setItem(key, JSON.stringify(obj))\n}\n\nexport const setStorage: typeof Taro.setStorage = (options) => {\n // options must be an Object\n const isObject = shouldBeObject(options)\n if (!isObject.flag) {\n const res = { errMsg: `setStorage:fail ${isObject.msg}` }\n console.error(res.errMsg)\n return Promise.reject(res)\n }\n\n const { key, data, success, fail, complete } = options\n const handle = new MethodHandler({ name: 'setStorage', success, fail, complete })\n\n if (typeof key !== 'string') {\n return handle.fail({\n errMsg: getParameterError({\n para: 'key',\n correct: 'String',\n wrong: key\n })\n })\n }\n\n setStorageSync(key, data)\n return handle.success()\n}\n\nexport const revokeBufferURL = /* @__PURE__ */ temporarilyNotSupport('revokeBufferURL')\n\nexport const removeStorageSync: typeof Taro.removeStorageSync = (key: string) => {\n if (typeof key !== 'string') {\n console.error(getParameterError({\n name: 'removeStorage',\n correct: 'String',\n wrong: key\n }))\n return\n }\n\n localStorage.removeItem(key)\n}\n\nexport const removeStorage: typeof Taro.removeStorage = (options: Taro.removeStorage.Option) => {\n // options must be an Object\n const isObject = shouldBeObject(options)\n if (!isObject.flag) {\n const res = { errMsg: `removeStorage:fail ${isObject.msg}` }\n console.error(res.errMsg)\n return Promise.reject(res)\n }\n const { key, success, fail, complete } = options\n const handle = new MethodHandler({ name: 'removeStorage', success, fail, complete })\n\n if (typeof key !== 'string') {\n return handle.fail({\n errMsg: getParameterError({\n para: 'key',\n correct: 'String',\n wrong: key\n })\n })\n }\n\n removeStorageSync(key)\n return handle.success()\n}\n\nexport const getStorageSync: typeof Taro.getStorageSync = (key) => {\n if (typeof key !== 'string') {\n console.error(getParameterError({\n name: 'getStorageSync',\n correct: 'String',\n wrong: key\n }))\n return\n }\n\n const res = getItem(key)\n if (res.result) return res.data\n\n return ''\n}\n\nexport const getStorageInfoSync: typeof Taro.getStorageInfoSync = () => {\n const res: Taro.getStorageInfoSync.Option = {\n keys: Object.keys(localStorage),\n limitSize: NaN,\n currentSize: NaN\n }\n return res\n}\n\nexport const getStorageInfo: typeof Taro.getStorageInfo = ({ success, fail, complete } = {}) => {\n const handle = new MethodHandler<Taro.getStorageInfo.SuccessCallbackOption>({ name: 'getStorageInfo', success, fail, complete })\n return handle.success(getStorageInfoSync())\n}\n\nexport const getStorage: typeof Taro.getStorage = <T>(options) => {\n // options must be an Object\n const isObject = shouldBeObject(options)\n if (!isObject.flag) {\n const res = { errMsg: `getStorage:fail ${isObject.msg}` }\n console.error(res.errMsg)\n return Promise.reject(res)\n }\n\n const { key, success, fail, complete } = options\n const handle = new MethodHandler<Taro.getStorage.SuccessCallbackResult<T>>({ name: 'getStorage', success, fail, complete })\n\n if (typeof key !== 'string') {\n return handle.fail({\n errMsg: getParameterError({\n para: 'key',\n correct: 'String',\n wrong: key\n })\n })\n }\n\n const { result, data } = getItem(key)\n if (result) {\n return handle.success({ data })\n } else {\n return handle.fail({\n errMsg: 'data not found'\n })\n }\n}\n\nexport const createBufferURL = /* @__PURE__ */ temporarilyNotSupport('createBufferURL')\n\nexport const clearStorageSync: typeof Taro.clearStorageSync = () => {\n localStorage.clear()\n}\n\nexport const clearStorage: typeof Taro.clearStorage = ({ success, fail, complete } = {}) => {\n const handle = new MethodHandler({ name: 'clearStorage', success, fail, complete })\n clearStorageSync()\n return handle.success()\n}\n\nexport const batchSetStorageSync = /* @__PURE__ */ temporarilyNotSupport('batchSetStorageSync')\nexport const batchSetStorage = /* @__PURE__ */ temporarilyNotSupport('batchSetStorage')\nexport const batchGetStorageSync = /* @__PURE__ */ temporarilyNotSupport('batchGetStorageSync')\nexport const batchGetStorage = /* @__PURE__ */ temporarilyNotSupport('batchGetStorage')\n\nexport * from './background-fetch'\nexport * from './cache-manager'"],"names":[],"mappings":";;;;;AAKA,SAAS,OAAO,CAAE,GAAG,EAAA;AACnB,IAAA,IAAI,IAAI,CAAA;IACR,IAAI;AACF,QAAA,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAA;AACnD,KAAA;AAAC,IAAA,OAAO,CAAC,EAAE,GAAE;;AAGd,IAAA,IAAI,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE;QACnE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,CAAA;AACzC,KAAA;AAAM,SAAA;AACL,QAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,CAAA;AACzB,KAAA;AACH,CAAC;AAED;AACa,MAAA,cAAc,GAA+B,CAAC,GAAG,EAAE,IAAI,GAAG,EAAE,KAAI;AAC3E,IAAA,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;AAC3B,QAAA,OAAO,CAAC,KAAK,CAAC,iBAAiB,CAAC;AAC9B,YAAA,IAAI,EAAE,YAAY;AAClB,YAAA,OAAO,EAAE,QAAQ;AACjB,YAAA,KAAK,EAA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ACjB,YAAA,MAAM,EAAE,gBAAgB;AACzB,SAAA,CAAC,CAAA;AACH,KAAA;AACH,EAAC;AAEY,MAAA,eAAe,mBAAmB,qBAAqB,CAAC,iBAAiB,EAAC;AAEhF,MAAM,gBAAgB,GAAiC,MAAK;IACjE,YAAY,CAAC,KAAK,EAAE,CAAA;AACtB,EAAC;AAEM,MAAM,YAAY,GAA6B,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,KAAI;AACzF,IAAA,MAAM,MAAM,GAAG,IAAI,aAAa,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAA;AACnF,IAAA,gBAAgB,EAAE,CAAA;AAClB,IAAA,OAAO,MAAM,CAAC,OAAO,EAAE,CAAA;AACzB,EAAC;AAEY,MAAA,mBAAmB,mBAAmB,qBAAqB,CAAC,qBAAqB,EAAC;AAClF,MAAA,eAAe,mBAAmB,qBAAqB,CAAC,iBAAiB,EAAC;AAC1E,MAAA,mBAAmB,mBAAmB,qBAAqB,CAAC,qBAAqB,EAAC;AAClF,MAAA,eAAe,mBAAmB,qBAAqB,CAAC,iBAAiB;;;;"}
@@ -1,30 +1,30 @@
1
1
  import { temporarilyNotSupport } from '../../utils/index.js';
2
2
 
3
- const setPageInfo = temporarilyNotSupport('setPageInfo');
3
+ const setPageInfo = /* @__PURE__ */ temporarilyNotSupport('setPageInfo');
4
4
  // 百度小程序 AI 相关
5
- const ocrIdCard = temporarilyNotSupport('ocrIdCard');
6
- const ocrBankCard = temporarilyNotSupport('ocrBankCard');
7
- const ocrDrivingLicense = temporarilyNotSupport('ocrDrivingLicense');
8
- const ocrVehicleLicense = temporarilyNotSupport('ocrVehicleLicense');
9
- const textReview = temporarilyNotSupport('textReview');
10
- const textToAudio = temporarilyNotSupport('textToAudio');
11
- const imageAudit = temporarilyNotSupport('imageAudit');
12
- const advancedGeneralIdentify = temporarilyNotSupport('advancedGeneralIdentify');
13
- const objectDetectIdentify = temporarilyNotSupport('objectDetectIdentify');
14
- const carClassify = temporarilyNotSupport('carClassify');
15
- const dishClassify = temporarilyNotSupport('dishClassify');
16
- const logoClassify = temporarilyNotSupport('logoClassify');
17
- const animalClassify = temporarilyNotSupport('animalClassify');
18
- const plantClassify = temporarilyNotSupport('plantClassify');
5
+ const ocrIdCard = /* @__PURE__ */ temporarilyNotSupport('ocrIdCard');
6
+ const ocrBankCard = /* @__PURE__ */ temporarilyNotSupport('ocrBankCard');
7
+ const ocrDrivingLicense = /* @__PURE__ */ temporarilyNotSupport('ocrDrivingLicense');
8
+ const ocrVehicleLicense = /* @__PURE__ */ temporarilyNotSupport('ocrVehicleLicense');
9
+ const textReview = /* @__PURE__ */ temporarilyNotSupport('textReview');
10
+ const textToAudio = /* @__PURE__ */ temporarilyNotSupport('textToAudio');
11
+ const imageAudit = /* @__PURE__ */ temporarilyNotSupport('imageAudit');
12
+ const advancedGeneralIdentify = /* @__PURE__ */ temporarilyNotSupport('advancedGeneralIdentify');
13
+ const objectDetectIdentify = /* @__PURE__ */ temporarilyNotSupport('objectDetectIdentify');
14
+ const carClassify = /* @__PURE__ */ temporarilyNotSupport('carClassify');
15
+ const dishClassify = /* @__PURE__ */ temporarilyNotSupport('dishClassify');
16
+ const logoClassify = /* @__PURE__ */ temporarilyNotSupport('logoClassify');
17
+ const animalClassify = /* @__PURE__ */ temporarilyNotSupport('animalClassify');
18
+ const plantClassify = /* @__PURE__ */ temporarilyNotSupport('plantClassify');
19
19
  // 用户信息
20
- const getSwanId = temporarilyNotSupport('getSwanId');
20
+ const getSwanId = /* @__PURE__ */ temporarilyNotSupport('getSwanId');
21
21
  // 百度收银台支付
22
- const requestPolymerPayment = temporarilyNotSupport('requestPolymerPayment');
22
+ const requestPolymerPayment = /* @__PURE__ */ temporarilyNotSupport('requestPolymerPayment');
23
23
  // 打开小程序
24
- const navigateToSmartGameProgram = temporarilyNotSupport('navigateToSmartGameProgram');
25
- const navigateToSmartProgram = temporarilyNotSupport('navigateToSmartProgram');
26
- const navigateBackSmartProgram = temporarilyNotSupport('navigateBackSmartProgram');
27
- const preloadSubPackage = temporarilyNotSupport('preloadSubPackage');
24
+ const navigateToSmartGameProgram = /* @__PURE__ */ temporarilyNotSupport('navigateToSmartGameProgram');
25
+ const navigateToSmartProgram = /* @__PURE__ */ temporarilyNotSupport('navigateToSmartProgram');
26
+ const navigateBackSmartProgram = /* @__PURE__ */ temporarilyNotSupport('navigateBackSmartProgram');
27
+ const preloadSubPackage = /* @__PURE__ */ temporarilyNotSupport('preloadSubPackage');
28
28
 
29
29
  export { advancedGeneralIdentify, animalClassify, carClassify, dishClassify, getSwanId, imageAudit, logoClassify, navigateBackSmartProgram, navigateToSmartGameProgram, navigateToSmartProgram, objectDetectIdentify, ocrBankCard, ocrDrivingLicense, ocrIdCard, ocrVehicleLicense, plantClassify, preloadSubPackage, requestPolymerPayment, setPageInfo, textReview, textToAudio };
30
30
  //# sourceMappingURL=index.js.map