@tarojs/taro-h5 3.6.0-beta.2 → 3.6.0-beta.4

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 (423) hide show
  1. package/dist/api/ad/index.d.ts +3 -2
  2. package/dist/api/ad/index.js +7 -3
  3. package/dist/api/ad/index.js.map +1 -0
  4. package/dist/api/ai/facial.d.ts +4 -3
  5. package/dist/api/ai/facial.js +8 -4
  6. package/dist/api/ai/facial.js.map +1 -0
  7. package/dist/api/ai/index.d.ts +2 -2
  8. package/dist/api/ai/index.js +3 -2
  9. package/dist/api/ai/index.js.map +1 -0
  10. package/dist/api/ai/visual.d.ts +3 -2
  11. package/dist/api/ai/visual.js +7 -3
  12. package/dist/api/ai/visual.js.map +1 -0
  13. package/dist/api/alipay/index.d.ts +2 -1
  14. package/dist/api/alipay/index.js +6 -2
  15. package/dist/api/alipay/index.js.map +1 -0
  16. package/dist/api/base/crypto.d.ts +2 -1
  17. package/dist/api/base/crypto.js +6 -2
  18. package/dist/api/base/crypto.js.map +1 -0
  19. package/dist/api/base/debug.d.ts +4 -3
  20. package/dist/api/base/debug.js +8 -4
  21. package/dist/api/base/debug.js.map +1 -0
  22. package/dist/api/base/index.d.ts +16 -10
  23. package/dist/api/base/index.js +20 -12
  24. package/dist/api/base/index.js.map +1 -0
  25. package/dist/api/base/performance.d.ts +3 -2
  26. package/dist/api/base/performance.js +7 -3
  27. package/dist/api/base/performance.js.map +1 -0
  28. package/dist/api/base/system.d.ts +11 -10
  29. package/dist/api/base/system.js +17 -21
  30. package/dist/api/base/system.js.map +1 -0
  31. package/dist/api/base/update.d.ts +3 -2
  32. package/dist/api/base/update.js +7 -3
  33. package/dist/api/base/update.js.map +1 -0
  34. package/dist/api/base/weapp/app-event.d.ts +17 -16
  35. package/dist/api/base/weapp/app-event.js +22 -18
  36. package/dist/api/base/weapp/app-event.js.map +1 -0
  37. package/dist/api/base/weapp/life-cycle.d.ts +3 -2
  38. package/dist/api/base/weapp/life-cycle.js +6 -2
  39. package/dist/api/base/weapp/life-cycle.js.map +1 -0
  40. package/dist/api/canvas/CanvasContext.d.ts +7 -2
  41. package/dist/api/canvas/CanvasContext.js +6 -10
  42. package/dist/api/canvas/CanvasContext.js.map +1 -0
  43. package/dist/api/canvas/canvasGetImageData.d.ts +2 -1
  44. package/dist/api/canvas/canvasGetImageData.js +7 -3
  45. package/dist/api/canvas/canvasGetImageData.js.map +1 -0
  46. package/dist/api/canvas/canvasPutImageData.d.ts +2 -1
  47. package/dist/api/canvas/canvasPutImageData.js +7 -3
  48. package/dist/api/canvas/canvasPutImageData.js.map +1 -0
  49. package/dist/api/canvas/canvasToTempFilePath.d.ts +2 -1
  50. package/dist/api/canvas/canvasToTempFilePath.js +7 -3
  51. package/dist/api/canvas/canvasToTempFilePath.js.map +1 -0
  52. package/dist/api/canvas/createCanvasContext.d.ts +2 -1
  53. package/dist/api/canvas/createCanvasContext.js +7 -3
  54. package/dist/api/canvas/createCanvasContext.js.map +1 -0
  55. package/dist/api/canvas/index.d.ts +6 -5
  56. package/dist/api/canvas/index.js +10 -10
  57. package/dist/api/canvas/index.js.map +1 -0
  58. package/dist/api/cloud/index.d.ts +2 -1
  59. package/dist/api/cloud/index.js +6 -2
  60. package/dist/api/cloud/index.js.map +1 -0
  61. package/dist/api/data-analysis/index.d.ts +5 -4
  62. package/dist/api/data-analysis/index.js +9 -5
  63. package/dist/api/data-analysis/index.js.map +1 -0
  64. package/dist/api/device/accelerometer.d.ts +5 -4
  65. package/dist/api/device/accelerometer.js +11 -6
  66. package/dist/api/device/accelerometer.js.map +1 -0
  67. package/dist/api/device/accessibility.d.ts +2 -1
  68. package/dist/api/device/accessibility.js +6 -2
  69. package/dist/api/device/accessibility.js.map +1 -0
  70. package/dist/api/device/battery.d.ts +3 -2
  71. package/dist/api/device/battery.js +9 -13
  72. package/dist/api/device/battery.js.map +1 -0
  73. package/dist/api/device/bluetooth-ble.d.ts +17 -16
  74. package/dist/api/device/bluetooth-ble.js +21 -17
  75. package/dist/api/device/bluetooth-ble.js.map +1 -0
  76. package/dist/api/device/bluetooth-peripheral.d.ts +4 -3
  77. package/dist/api/device/bluetooth-peripheral.js +8 -4
  78. package/dist/api/device/bluetooth-peripheral.js.map +1 -0
  79. package/dist/api/device/bluetooth.d.ts +14 -13
  80. package/dist/api/device/bluetooth.js +18 -14
  81. package/dist/api/device/bluetooth.js.map +1 -0
  82. package/dist/api/device/calendar.d.ts +3 -2
  83. package/dist/api/device/calendar.js +7 -3
  84. package/dist/api/device/calendar.js.map +1 -0
  85. package/dist/api/device/clipboard.d.ts +3 -2
  86. package/dist/api/device/clipboard.js +10 -14
  87. package/dist/api/device/clipboard.js.map +1 -0
  88. package/dist/api/device/compass.d.ts +5 -4
  89. package/dist/api/device/compass.js +12 -7
  90. package/dist/api/device/compass.js.map +1 -0
  91. package/dist/api/device/contact.d.ts +3 -2
  92. package/dist/api/device/contact.js +7 -3
  93. package/dist/api/device/contact.js.map +1 -0
  94. package/dist/api/device/crypto.d.ts +2 -1
  95. package/dist/api/device/crypto.js +6 -2
  96. package/dist/api/device/crypto.js.map +1 -0
  97. package/dist/api/device/gyroscope.d.ts +5 -4
  98. package/dist/api/device/gyroscope.js +9 -5
  99. package/dist/api/device/gyroscope.js.map +1 -0
  100. package/dist/api/device/iBeacon.d.ts +8 -7
  101. package/dist/api/device/iBeacon.js +12 -8
  102. package/dist/api/device/iBeacon.js.map +1 -0
  103. package/dist/api/device/index.d.ts +23 -23
  104. package/dist/api/device/index.js +24 -23
  105. package/dist/api/device/index.js.map +1 -0
  106. package/dist/api/device/keyboard.d.ts +5 -4
  107. package/dist/api/device/keyboard.js +9 -5
  108. package/dist/api/device/keyboard.js.map +1 -0
  109. package/dist/api/device/memory.d.ts +3 -2
  110. package/dist/api/device/memory.js +7 -3
  111. package/dist/api/device/memory.js.map +1 -0
  112. package/dist/api/device/motion.d.ts +5 -4
  113. package/dist/api/device/motion.js +11 -6
  114. package/dist/api/device/motion.js.map +1 -0
  115. package/dist/api/device/network.d.ts +7 -6
  116. package/dist/api/device/network.js +13 -17
  117. package/dist/api/device/network.js.map +1 -0
  118. package/dist/api/device/nfc.d.ts +8 -7
  119. package/dist/api/device/nfc.js +12 -8
  120. package/dist/api/device/nfc.js.map +1 -0
  121. package/dist/api/device/phone.d.ts +2 -1
  122. package/dist/api/device/phone.js +7 -3
  123. package/dist/api/device/phone.js.map +1 -0
  124. package/dist/api/device/scan.d.ts +2 -1
  125. package/dist/api/device/scan.js +6 -2
  126. package/dist/api/device/scan.js.map +1 -0
  127. package/dist/api/device/screen.d.ts +7 -6
  128. package/dist/api/device/screen.js +11 -7
  129. package/dist/api/device/screen.js.map +1 -0
  130. package/dist/api/device/vibrate.d.ts +3 -2
  131. package/dist/api/device/vibrate.js +7 -3
  132. package/dist/api/device/vibrate.js.map +1 -0
  133. package/dist/api/device/wifi.d.ts +12 -11
  134. package/dist/api/device/wifi.js +16 -12
  135. package/dist/api/device/wifi.js.map +1 -0
  136. package/dist/api/ext/index.d.ts +3 -2
  137. package/dist/api/ext/index.js +7 -3
  138. package/dist/api/ext/index.js.map +1 -0
  139. package/dist/api/files/index.d.ts +9 -8
  140. package/dist/api/files/index.js +13 -9
  141. package/dist/api/files/index.js.map +1 -0
  142. package/dist/api/framework/index.d.ts +3 -2
  143. package/dist/api/framework/index.js +7 -3
  144. package/dist/api/framework/index.js.map +1 -0
  145. package/dist/api/index.d.ts +24 -24
  146. package/dist/api/index.js +117 -24
  147. package/dist/api/index.js.map +1 -0
  148. package/dist/api/location/chooseLocation.d.ts +2 -2
  149. package/dist/api/location/chooseLocation.js +8 -14
  150. package/dist/api/location/chooseLocation.js.map +1 -0
  151. package/dist/api/location/getLocation.d.ts +2 -1
  152. package/dist/api/location/getLocation.js +7 -3
  153. package/dist/api/location/getLocation.js.map +1 -0
  154. package/dist/api/location/index.d.ts +13 -12
  155. package/dist/api/location/index.js +17 -13
  156. package/dist/api/location/index.js.map +1 -0
  157. package/dist/api/location/style.scss.js +8 -0
  158. package/dist/api/location/style.scss.js.map +1 -0
  159. package/dist/api/media/audio/InnerAudioContext.d.ts +3 -2
  160. package/dist/api/media/audio/InnerAudioContext.js +7 -3
  161. package/dist/api/media/audio/InnerAudioContext.js.map +1 -0
  162. package/dist/api/media/audio/index.d.ts +10 -9
  163. package/dist/api/media/audio/index.js +15 -11
  164. package/dist/api/media/audio/index.js.map +1 -0
  165. package/dist/api/media/background-audio/BackgroundAudioManager.d.ts +3 -2
  166. package/dist/api/media/background-audio/BackgroundAudioManager.js +7 -3
  167. package/dist/api/media/background-audio/BackgroundAudioManager.js.map +1 -0
  168. package/dist/api/media/background-audio/index.d.ts +11 -10
  169. package/dist/api/media/background-audio/index.js +15 -11
  170. package/dist/api/media/background-audio/index.js.map +1 -0
  171. package/dist/api/media/camera.d.ts +2 -1
  172. package/dist/api/media/camera.js +6 -2
  173. package/dist/api/media/camera.js.map +1 -0
  174. package/dist/api/media/image/chooseImage.d.ts +2 -1
  175. package/dist/api/media/image/chooseImage.js +7 -3
  176. package/dist/api/media/image/chooseImage.js.map +1 -0
  177. package/dist/api/media/image/getImageInfo.d.ts +2 -1
  178. package/dist/api/media/image/getImageInfo.js +7 -3
  179. package/dist/api/media/image/getImageInfo.js.map +1 -0
  180. package/dist/api/media/image/index.d.ts +8 -7
  181. package/dist/api/media/image/index.js +12 -8
  182. package/dist/api/media/image/index.js.map +1 -0
  183. package/dist/api/media/image/previewImage.d.ts +2 -1
  184. package/dist/api/media/image/previewImage.js +15 -12
  185. package/dist/api/media/image/previewImage.js.map +1 -0
  186. package/dist/api/media/index.d.ts +12 -12
  187. package/dist/api/media/index.js +13 -12
  188. package/dist/api/media/index.js.map +1 -0
  189. package/dist/api/media/live.d.ts +3 -2
  190. package/dist/api/media/live.js +7 -3
  191. package/dist/api/media/live.js.map +1 -0
  192. package/dist/api/media/map.d.ts +2 -1
  193. package/dist/api/media/map.js +6 -2
  194. package/dist/api/media/map.js.map +1 -0
  195. package/dist/api/media/media-recorder.d.ts +2 -1
  196. package/dist/api/media/media-recorder.js +6 -2
  197. package/dist/api/media/media-recorder.js.map +1 -0
  198. package/dist/api/media/recorder.d.ts +4 -3
  199. package/dist/api/media/recorder.js +8 -4
  200. package/dist/api/media/recorder.js.map +1 -0
  201. package/dist/api/media/video/index.d.ts +8 -7
  202. package/dist/api/media/video/index.js +13 -9
  203. package/dist/api/media/video/index.js.map +1 -0
  204. package/dist/api/media/video-decoder.d.ts +2 -1
  205. package/dist/api/media/video-decoder.js +6 -2
  206. package/dist/api/media/video-decoder.js.map +1 -0
  207. package/dist/api/media/video-processing.d.ts +2 -1
  208. package/dist/api/media/video-processing.js +6 -2
  209. package/dist/api/media/video-processing.js.map +1 -0
  210. package/dist/api/media/voip.d.ts +15 -14
  211. package/dist/api/media/voip.js +19 -15
  212. package/dist/api/media/voip.js.map +1 -0
  213. package/dist/api/navigate/index.d.ts +6 -5
  214. package/dist/api/navigate/index.js +10 -6
  215. package/dist/api/navigate/index.js.map +1 -0
  216. package/dist/api/network/download.d.ts +2 -1
  217. package/dist/api/network/download.js +14 -5
  218. package/dist/api/network/download.js.map +1 -0
  219. package/dist/api/network/index.d.ts +7 -7
  220. package/dist/api/network/index.js +8 -7
  221. package/dist/api/network/index.js.map +1 -0
  222. package/dist/api/network/mdns.d.ts +11 -10
  223. package/dist/api/network/mdns.js +15 -11
  224. package/dist/api/network/mdns.js.map +1 -0
  225. package/dist/api/network/request/index.d.ts +3 -3
  226. package/dist/api/network/request/index.js +8 -4
  227. package/dist/api/network/request/index.js.map +1 -0
  228. package/dist/api/network/tcp.d.ts +2 -1
  229. package/dist/api/network/tcp.js +6 -2
  230. package/dist/api/network/tcp.js.map +1 -0
  231. package/dist/api/network/udp.d.ts +2 -1
  232. package/dist/api/network/udp.js +6 -2
  233. package/dist/api/network/udp.js.map +1 -0
  234. package/dist/api/network/upload.d.ts +2 -1
  235. package/dist/api/network/upload.js +14 -5
  236. package/dist/api/network/upload.js.map +1 -0
  237. package/dist/api/network/utils.d.ts +5 -4
  238. package/dist/api/network/utils.js +7 -4
  239. package/dist/api/network/utils.js.map +1 -0
  240. package/dist/api/network/websocket/index.d.ts +8 -7
  241. package/dist/api/network/websocket/index.js +14 -10
  242. package/dist/api/network/websocket/index.js.map +1 -0
  243. package/dist/api/network/websocket/socketTask.d.ts +2 -1
  244. package/dist/api/network/websocket/socketTask.js +5 -1
  245. package/dist/api/network/websocket/socketTask.js.map +1 -0
  246. package/dist/api/open-api/account.d.ts +2 -1
  247. package/dist/api/open-api/account.js +6 -2
  248. package/dist/api/open-api/account.js.map +1 -0
  249. package/dist/api/open-api/address.d.ts +2 -1
  250. package/dist/api/open-api/address.js +6 -2
  251. package/dist/api/open-api/address.js.map +1 -0
  252. package/dist/api/open-api/authorize.d.ts +3 -2
  253. package/dist/api/open-api/authorize.js +7 -3
  254. package/dist/api/open-api/authorize.js.map +1 -0
  255. package/dist/api/open-api/card.d.ts +3 -2
  256. package/dist/api/open-api/card.js +7 -3
  257. package/dist/api/open-api/card.js.map +1 -0
  258. package/dist/api/open-api/channels-live.d.ts +7 -6
  259. package/dist/api/open-api/channels-live.js +11 -7
  260. package/dist/api/open-api/channels-live.js.map +1 -0
  261. package/dist/api/open-api/customer-service.d.ts +2 -1
  262. package/dist/api/open-api/customer-service.js +6 -2
  263. package/dist/api/open-api/customer-service.js.map +1 -0
  264. package/dist/api/open-api/facial.d.ts +5 -4
  265. package/dist/api/open-api/facial.js +9 -5
  266. package/dist/api/open-api/facial.js.map +1 -0
  267. package/dist/api/open-api/favorites.d.ts +3 -2
  268. package/dist/api/open-api/favorites.js +7 -3
  269. package/dist/api/open-api/favorites.js.map +1 -0
  270. package/dist/api/open-api/group.d.ts +2 -1
  271. package/dist/api/open-api/group.js +6 -2
  272. package/dist/api/open-api/group.js.map +1 -0
  273. package/dist/api/open-api/index.d.ts +18 -18
  274. package/dist/api/open-api/index.js +19 -18
  275. package/dist/api/open-api/index.js.map +1 -0
  276. package/dist/api/open-api/invoice.d.ts +3 -2
  277. package/dist/api/open-api/invoice.js +7 -3
  278. package/dist/api/open-api/invoice.js.map +1 -0
  279. package/dist/api/open-api/license-plate.d.ts +2 -1
  280. package/dist/api/open-api/license-plate.js +6 -2
  281. package/dist/api/open-api/license-plate.js.map +1 -0
  282. package/dist/api/open-api/login.d.ts +4 -3
  283. package/dist/api/open-api/login.js +8 -4
  284. package/dist/api/open-api/login.js.map +1 -0
  285. package/dist/api/open-api/red-package.d.ts +2 -1
  286. package/dist/api/open-api/red-package.js +6 -2
  287. package/dist/api/open-api/red-package.js.map +1 -0
  288. package/dist/api/open-api/settings.d.ts +3 -2
  289. package/dist/api/open-api/settings.js +7 -3
  290. package/dist/api/open-api/settings.js.map +1 -0
  291. package/dist/api/open-api/soter.d.ts +4 -3
  292. package/dist/api/open-api/soter.js +8 -4
  293. package/dist/api/open-api/soter.js.map +1 -0
  294. package/dist/api/open-api/subscribe-message.d.ts +2 -1
  295. package/dist/api/open-api/subscribe-message.js +6 -2
  296. package/dist/api/open-api/subscribe-message.js.map +1 -0
  297. package/dist/api/open-api/user-info.d.ts +3 -2
  298. package/dist/api/open-api/user-info.js +7 -3
  299. package/dist/api/open-api/user-info.js.map +1 -0
  300. package/dist/api/open-api/werun.d.ts +3 -2
  301. package/dist/api/open-api/werun.js +7 -3
  302. package/dist/api/open-api/werun.js.map +1 -0
  303. package/dist/api/payment/index.d.ts +3 -2
  304. package/dist/api/payment/index.js +7 -3
  305. package/dist/api/payment/index.js.map +1 -0
  306. package/dist/api/route/index.js +3 -1
  307. package/dist/api/route/index.js.map +1 -0
  308. package/dist/api/share/index.d.ts +11 -10
  309. package/dist/api/share/index.js +15 -11
  310. package/dist/api/share/index.js.map +1 -0
  311. package/dist/api/storage/background-fetch.d.ts +5 -4
  312. package/dist/api/storage/background-fetch.js +9 -5
  313. package/dist/api/storage/background-fetch.js.map +1 -0
  314. package/dist/api/storage/index.d.ts +14 -13
  315. package/dist/api/storage/index.js +19 -15
  316. package/dist/api/storage/index.js.map +1 -0
  317. package/dist/api/swan/index.d.ts +22 -21
  318. package/dist/api/swan/index.js +26 -22
  319. package/dist/api/swan/index.js.map +1 -0
  320. package/dist/api/taro.d.ts +1 -2
  321. package/dist/api/taro.js +17 -12
  322. package/dist/api/taro.js.map +1 -0
  323. package/dist/api/ui/animation/index.d.ts +2 -1
  324. package/dist/api/ui/animation/index.js +4 -1
  325. package/dist/api/ui/animation/index.js.map +1 -0
  326. package/dist/api/ui/background.d.ts +3 -2
  327. package/dist/api/ui/background.js +7 -3
  328. package/dist/api/ui/background.js.map +1 -0
  329. package/dist/api/ui/custom-component.d.ts +2 -1
  330. package/dist/api/ui/custom-component.js +5 -1
  331. package/dist/api/ui/custom-component.js.map +1 -0
  332. package/dist/api/ui/fonts.d.ts +2 -1
  333. package/dist/api/ui/fonts.js +7 -11
  334. package/dist/api/ui/fonts.js.map +1 -0
  335. package/dist/api/ui/index.d.ts +12 -12
  336. package/dist/api/ui/index.js +13 -12
  337. package/dist/api/ui/index.js.map +1 -0
  338. package/dist/api/ui/interaction/actionSheet.d.ts +2 -1
  339. package/dist/api/ui/interaction/actionSheet.js +6 -2
  340. package/dist/api/ui/interaction/actionSheet.js.map +1 -0
  341. package/dist/api/ui/interaction/index.js +9 -14
  342. package/dist/api/ui/interaction/index.js.map +1 -0
  343. package/dist/api/ui/interaction/modal.d.ts +2 -1
  344. package/dist/api/ui/interaction/modal.js +8 -4
  345. package/dist/api/ui/interaction/modal.js.map +1 -0
  346. package/dist/api/ui/interaction/toast.d.ts +2 -1
  347. package/dist/api/ui/interaction/toast.js +8 -4
  348. package/dist/api/ui/interaction/toast.js.map +1 -0
  349. package/dist/api/ui/menu.d.ts +2 -1
  350. package/dist/api/ui/menu.js +6 -2
  351. package/dist/api/ui/menu.js.map +1 -0
  352. package/dist/api/ui/navigation-bar/index.d.ts +6 -5
  353. package/dist/api/ui/navigation-bar/index.js +11 -7
  354. package/dist/api/ui/navigation-bar/index.js.map +1 -0
  355. package/dist/api/ui/pull-down-refresh.d.ts +3 -2
  356. package/dist/api/ui/pull-down-refresh.js +7 -3
  357. package/dist/api/ui/pull-down-refresh.js.map +1 -0
  358. package/dist/api/ui/scroll/index.d.ts +2 -1
  359. package/dist/api/ui/scroll/index.js +8 -3
  360. package/dist/api/ui/scroll/index.js.map +1 -0
  361. package/dist/api/ui/sticky.d.ts +2 -1
  362. package/dist/api/ui/sticky.js +6 -2
  363. package/dist/api/ui/sticky.js.map +1 -0
  364. package/dist/api/ui/tab-bar.d.ts +12 -10
  365. package/dist/api/ui/tab-bar.js +16 -11
  366. package/dist/api/ui/tab-bar.js.map +1 -0
  367. package/dist/api/ui/window.d.ts +4 -3
  368. package/dist/api/ui/window.js +9 -5
  369. package/dist/api/ui/window.js.map +1 -0
  370. package/dist/api/worker/index.d.ts +2 -1
  371. package/dist/api/worker/index.js +6 -2
  372. package/dist/api/worker/index.js.map +1 -0
  373. package/dist/api/wxml/IntersectionObserver.d.ts +3 -3
  374. package/dist/api/wxml/IntersectionObserver.js +6 -2
  375. package/dist/api/wxml/IntersectionObserver.js.map +1 -0
  376. package/dist/api/wxml/MediaQueryObserver.d.ts +4 -1
  377. package/dist/api/wxml/MediaQueryObserver.js +6 -2
  378. package/dist/api/wxml/MediaQueryObserver.js.map +1 -0
  379. package/dist/api/wxml/index.d.ts +4 -3
  380. package/dist/api/wxml/index.js +10 -6
  381. package/dist/api/wxml/index.js.map +1 -0
  382. package/dist/api/wxml/nodesRef.d.ts +3 -2
  383. package/dist/api/wxml/nodesRef.js +4 -1
  384. package/dist/api/wxml/nodesRef.js.map +1 -0
  385. package/dist/api/wxml/selectorQuery.d.ts +4 -4
  386. package/dist/api/wxml/selectorQuery.js +8 -4
  387. package/dist/api/wxml/selectorQuery.js.map +1 -0
  388. package/dist/index.cjs.d.ts +8 -4
  389. package/dist/index.cjs.js +51 -38
  390. package/dist/index.cjs.js.map +1 -1
  391. package/dist/index.d.ts +4 -4
  392. package/dist/index.esm.d.ts +8 -4
  393. package/dist/index.esm.js +52 -40
  394. package/dist/index.esm.js.map +1 -1
  395. package/dist/index.js +113 -4
  396. package/dist/index.js.map +1 -0
  397. package/dist/node_modules/.pnpm/registry.npmjs.org_style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js +29 -0
  398. package/dist/node_modules/.pnpm/registry.npmjs.org_style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js.map +1 -0
  399. package/dist/node_modules/.pnpm/registry.npmjs.org_tslib@1.14.1/node_modules/tslib/tslib.es6.js +221 -0
  400. package/dist/node_modules/.pnpm/registry.npmjs.org_tslib@1.14.1/node_modules/tslib/tslib.es6.js.map +1 -0
  401. package/dist/utils/animation.d.ts +3 -2
  402. package/dist/utils/animation.js +5 -2
  403. package/dist/utils/animation.js.map +1 -0
  404. package/dist/utils/handler.d.ts +7 -7
  405. package/dist/utils/handler.js +6 -2
  406. package/dist/utils/handler.js.map +1 -0
  407. package/dist/utils/index.d.ts +17 -16
  408. package/dist/utils/index.js +32 -37
  409. package/dist/utils/index.js.map +1 -0
  410. package/dist/utils/lodash.d.ts +3 -2
  411. package/dist/utils/lodash.js +5 -2
  412. package/dist/utils/lodash.js.map +1 -0
  413. package/dist/utils/valid.d.ts +2 -1
  414. package/dist/utils/valid.js +4 -1
  415. package/dist/utils/valid.js.map +1 -0
  416. package/package.json +9 -9
  417. package/types/define.d.ts +2 -0
  418. package/dist/api/location/style.css +0 -79
  419. package/dist/api/media/EditorContext.d.ts +0 -16
  420. package/dist/api/media/EditorContext.js +0 -19
  421. package/dist/taroApis.d.ts +0 -754
  422. package/dist/taroApis.js +0 -2
  423. package/dist/taroApis.js.map +0 -1
@@ -1,18 +1,22 @@
1
- import { temporarilyNotSupport } from '../../utils';
1
+ import { temporarilyNotSupport } from '../../utils/index.js';
2
+
2
3
  // 蓝牙-低功耗中心设备
3
- export const writeBLECharacteristicValue = temporarilyNotSupport('writeBLECharacteristicValue');
4
- export const setBLEMTU = temporarilyNotSupport('setBLEMTU');
5
- export const readBLECharacteristicValue = temporarilyNotSupport('readBLECharacteristicValue');
6
- export const onBLEMTUChange = temporarilyNotSupport('onBLEMTUChange');
7
- export const onBLEConnectionStateChange = temporarilyNotSupport('onBLEConnectionStateChange');
8
- export const onBLECharacteristicValueChange = temporarilyNotSupport('onBLECharacteristicValueChange');
9
- export const offBLEMTUChange = temporarilyNotSupport('offBLEMTUChange');
10
- export const offBLEConnectionStateChange = temporarilyNotSupport('offBLEConnectionStateChange');
11
- export const offBLECharacteristicValueChange = temporarilyNotSupport('offBLECharacteristicValueChange');
12
- export const notifyBLECharacteristicValueChange = temporarilyNotSupport('notifyBLECharacteristicValueChange');
13
- export const getBLEMTU = temporarilyNotSupport('getBLEMTU');
14
- export const getBLEDeviceServices = temporarilyNotSupport('getBLEDeviceServices');
15
- export const getBLEDeviceRSSI = temporarilyNotSupport('getBLEDeviceRSSI');
16
- export const getBLEDeviceCharacteristics = temporarilyNotSupport('getBLEDeviceCharacteristics');
17
- export const createBLEConnection = temporarilyNotSupport('createBLEConnection');
18
- export const closeBLEConnection = temporarilyNotSupport('closeBLEConnection');
4
+ const writeBLECharacteristicValue = temporarilyNotSupport('writeBLECharacteristicValue');
5
+ const setBLEMTU = temporarilyNotSupport('setBLEMTU');
6
+ const readBLECharacteristicValue = temporarilyNotSupport('readBLECharacteristicValue');
7
+ const onBLEMTUChange = temporarilyNotSupport('onBLEMTUChange');
8
+ const onBLEConnectionStateChange = temporarilyNotSupport('onBLEConnectionStateChange');
9
+ const onBLECharacteristicValueChange = temporarilyNotSupport('onBLECharacteristicValueChange');
10
+ const offBLEMTUChange = temporarilyNotSupport('offBLEMTUChange');
11
+ const offBLEConnectionStateChange = temporarilyNotSupport('offBLEConnectionStateChange');
12
+ const offBLECharacteristicValueChange = temporarilyNotSupport('offBLECharacteristicValueChange');
13
+ const notifyBLECharacteristicValueChange = temporarilyNotSupport('notifyBLECharacteristicValueChange');
14
+ const getBLEMTU = temporarilyNotSupport('getBLEMTU');
15
+ const getBLEDeviceServices = temporarilyNotSupport('getBLEDeviceServices');
16
+ const getBLEDeviceRSSI = temporarilyNotSupport('getBLEDeviceRSSI');
17
+ const getBLEDeviceCharacteristics = temporarilyNotSupport('getBLEDeviceCharacteristics');
18
+ const createBLEConnection = temporarilyNotSupport('createBLEConnection');
19
+ const closeBLEConnection = temporarilyNotSupport('closeBLEConnection');
20
+
21
+ export { closeBLEConnection, createBLEConnection, getBLEDeviceCharacteristics, getBLEDeviceRSSI, getBLEDeviceServices, getBLEMTU, notifyBLECharacteristicValueChange, offBLECharacteristicValueChange, offBLEConnectionStateChange, offBLEMTUChange, onBLECharacteristicValueChange, onBLEConnectionStateChange, onBLEMTUChange, readBLECharacteristicValue, setBLEMTU, writeBLECharacteristicValue };
22
+ //# sourceMappingURL=bluetooth-ble.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bluetooth-ble.js","sources":["../../../src/api/device/bluetooth-ble.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 蓝牙-低功耗中心设备\nexport const writeBLECharacteristicValue = temporarilyNotSupport('writeBLECharacteristicValue')\nexport const setBLEMTU = temporarilyNotSupport('setBLEMTU')\nexport const readBLECharacteristicValue = temporarilyNotSupport('readBLECharacteristicValue')\nexport const onBLEMTUChange = temporarilyNotSupport('onBLEMTUChange')\nexport const onBLEConnectionStateChange = temporarilyNotSupport('onBLEConnectionStateChange')\nexport const onBLECharacteristicValueChange = temporarilyNotSupport('onBLECharacteristicValueChange')\nexport const offBLEMTUChange = temporarilyNotSupport('offBLEMTUChange')\nexport const offBLEConnectionStateChange = temporarilyNotSupport('offBLEConnectionStateChange')\nexport const offBLECharacteristicValueChange = temporarilyNotSupport('offBLECharacteristicValueChange')\nexport const notifyBLECharacteristicValueChange = temporarilyNotSupport('notifyBLECharacteristicValueChange')\nexport const getBLEMTU = temporarilyNotSupport('getBLEMTU')\nexport const getBLEDeviceServices = temporarilyNotSupport('getBLEDeviceServices')\nexport const getBLEDeviceRSSI = temporarilyNotSupport('getBLEDeviceRSSI')\nexport const getBLEDeviceCharacteristics = temporarilyNotSupport('getBLEDeviceCharacteristics')\nexport const createBLEConnection = temporarilyNotSupport('createBLEConnection')\nexport const closeBLEConnection = temporarilyNotSupport('closeBLEConnection')\n"],"names":[],"mappings":";;AAEA;MACa,2BAA2B,GAAG,qBAAqB,CAAC,6BAA6B,EAAC;MAClF,SAAS,GAAG,qBAAqB,CAAC,WAAW,EAAC;MAC9C,0BAA0B,GAAG,qBAAqB,CAAC,4BAA4B,EAAC;MAChF,cAAc,GAAG,qBAAqB,CAAC,gBAAgB,EAAC;MACxD,0BAA0B,GAAG,qBAAqB,CAAC,4BAA4B,EAAC;MAChF,8BAA8B,GAAG,qBAAqB,CAAC,gCAAgC,EAAC;MACxF,eAAe,GAAG,qBAAqB,CAAC,iBAAiB,EAAC;MAC1D,2BAA2B,GAAG,qBAAqB,CAAC,6BAA6B,EAAC;MAClF,+BAA+B,GAAG,qBAAqB,CAAC,iCAAiC,EAAC;MAC1F,kCAAkC,GAAG,qBAAqB,CAAC,oCAAoC,EAAC;MAChG,SAAS,GAAG,qBAAqB,CAAC,WAAW,EAAC;MAC9C,oBAAoB,GAAG,qBAAqB,CAAC,sBAAsB,EAAC;MACpE,gBAAgB,GAAG,qBAAqB,CAAC,kBAAkB,EAAC;MAC5D,2BAA2B,GAAG,qBAAqB,CAAC,6BAA6B,EAAC;MAClF,mBAAmB,GAAG,qBAAqB,CAAC,qBAAqB,EAAC;MAClE,kBAAkB,GAAG,qBAAqB,CAAC,oBAAoB;;;;"}
@@ -1,3 +1,4 @@
1
- export declare const onBLEPeripheralConnectionStateChanged: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
2
- export declare const offBLEPeripheralConnectionStateChanged: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
3
- export declare const createBLEPeripheralServer: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
1
+ declare const onBLEPeripheralConnectionStateChanged: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
2
+ declare const offBLEPeripheralConnectionStateChanged: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
3
+ declare const createBLEPeripheralServer: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
4
+ export { onBLEPeripheralConnectionStateChanged, offBLEPeripheralConnectionStateChanged, createBLEPeripheralServer };
@@ -1,5 +1,9 @@
1
- import { temporarilyNotSupport } from '../../utils';
1
+ import { temporarilyNotSupport } from '../../utils/index.js';
2
+
2
3
  // 蓝牙-低功耗外围设备
3
- export const onBLEPeripheralConnectionStateChanged = temporarilyNotSupport('onBLEPeripheralConnectionStateChanged');
4
- export const offBLEPeripheralConnectionStateChanged = temporarilyNotSupport('offBLEPeripheralConnectionStateChanged');
5
- export const createBLEPeripheralServer = temporarilyNotSupport('createBLEPeripheralServer');
4
+ const onBLEPeripheralConnectionStateChanged = temporarilyNotSupport('onBLEPeripheralConnectionStateChanged');
5
+ const offBLEPeripheralConnectionStateChanged = temporarilyNotSupport('offBLEPeripheralConnectionStateChanged');
6
+ const createBLEPeripheralServer = temporarilyNotSupport('createBLEPeripheralServer');
7
+
8
+ export { createBLEPeripheralServer, offBLEPeripheralConnectionStateChanged, onBLEPeripheralConnectionStateChanged };
9
+ //# sourceMappingURL=bluetooth-peripheral.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bluetooth-peripheral.js","sources":["../../../src/api/device/bluetooth-peripheral.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 蓝牙-低功耗外围设备\nexport const onBLEPeripheralConnectionStateChanged = temporarilyNotSupport('onBLEPeripheralConnectionStateChanged')\nexport const offBLEPeripheralConnectionStateChanged = temporarilyNotSupport('offBLEPeripheralConnectionStateChanged')\nexport const createBLEPeripheralServer = temporarilyNotSupport('createBLEPeripheralServer')\n"],"names":[],"mappings":";;AAEA;MACa,qCAAqC,GAAG,qBAAqB,CAAC,uCAAuC,EAAC;MACtG,sCAAsC,GAAG,qBAAqB,CAAC,wCAAwC,EAAC;MACxG,yBAAyB,GAAG,qBAAqB,CAAC,2BAA2B;;;;"}
@@ -1,13 +1,14 @@
1
- export declare const stopBluetoothDevicesDiscovery: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
2
- export declare const startBluetoothDevicesDiscovery: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
3
- export declare const openBluetoothAdapter: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
4
- export declare const onBluetoothDeviceFound: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
5
- export declare const onBluetoothAdapterStateChange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
6
- export declare const offBluetoothDeviceFound: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
7
- export declare const offBluetoothAdapterStateChange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
8
- export declare const makeBluetoothPair: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
9
- export declare const isBluetoothDevicePaired: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
10
- export declare const getConnectedBluetoothDevices: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
11
- export declare const getBluetoothDevices: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
12
- export declare const getBluetoothAdapterState: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
13
- export declare const closeBluetoothAdapter: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
1
+ declare const stopBluetoothDevicesDiscovery: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
2
+ declare const startBluetoothDevicesDiscovery: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
3
+ declare const openBluetoothAdapter: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
4
+ declare const onBluetoothDeviceFound: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
5
+ declare const onBluetoothAdapterStateChange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
6
+ declare const offBluetoothDeviceFound: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
7
+ declare const offBluetoothAdapterStateChange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
8
+ declare const makeBluetoothPair: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
9
+ declare const isBluetoothDevicePaired: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
10
+ declare const getConnectedBluetoothDevices: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
11
+ declare const getBluetoothDevices: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
12
+ declare const getBluetoothAdapterState: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
13
+ declare const closeBluetoothAdapter: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
14
+ export { stopBluetoothDevicesDiscovery, startBluetoothDevicesDiscovery, openBluetoothAdapter, onBluetoothDeviceFound, onBluetoothAdapterStateChange, offBluetoothDeviceFound, offBluetoothAdapterStateChange, makeBluetoothPair, isBluetoothDevicePaired, getConnectedBluetoothDevices, getBluetoothDevices, getBluetoothAdapterState, closeBluetoothAdapter };
@@ -1,15 +1,19 @@
1
- import { temporarilyNotSupport } from '../../utils';
1
+ import { temporarilyNotSupport } from '../../utils/index.js';
2
+
2
3
  // 蓝牙-通用
3
- export const stopBluetoothDevicesDiscovery = temporarilyNotSupport('stopBluetoothDevicesDiscovery');
4
- export const startBluetoothDevicesDiscovery = temporarilyNotSupport('startBluetoothDevicesDiscovery');
5
- export const openBluetoothAdapter = temporarilyNotSupport('openBluetoothAdapter');
6
- export const onBluetoothDeviceFound = temporarilyNotSupport('onBluetoothDeviceFound');
7
- export const onBluetoothAdapterStateChange = temporarilyNotSupport('onBluetoothAdapterStateChange');
8
- export const offBluetoothDeviceFound = temporarilyNotSupport('offBluetoothDeviceFound');
9
- export const offBluetoothAdapterStateChange = temporarilyNotSupport('offBluetoothAdapterStateChange');
10
- export const makeBluetoothPair = temporarilyNotSupport('makeBluetoothPair');
11
- export const isBluetoothDevicePaired = temporarilyNotSupport('isBluetoothDevicePaired');
12
- export const getConnectedBluetoothDevices = temporarilyNotSupport('getConnectedBluetoothDevices');
13
- export const getBluetoothDevices = temporarilyNotSupport('getBluetoothDevices');
14
- export const getBluetoothAdapterState = temporarilyNotSupport('getBluetoothAdapterState');
15
- export const closeBluetoothAdapter = temporarilyNotSupport('closeBluetoothAdapter');
4
+ const stopBluetoothDevicesDiscovery = temporarilyNotSupport('stopBluetoothDevicesDiscovery');
5
+ const startBluetoothDevicesDiscovery = temporarilyNotSupport('startBluetoothDevicesDiscovery');
6
+ const openBluetoothAdapter = temporarilyNotSupport('openBluetoothAdapter');
7
+ const onBluetoothDeviceFound = temporarilyNotSupport('onBluetoothDeviceFound');
8
+ const onBluetoothAdapterStateChange = temporarilyNotSupport('onBluetoothAdapterStateChange');
9
+ const offBluetoothDeviceFound = temporarilyNotSupport('offBluetoothDeviceFound');
10
+ const offBluetoothAdapterStateChange = temporarilyNotSupport('offBluetoothAdapterStateChange');
11
+ const makeBluetoothPair = temporarilyNotSupport('makeBluetoothPair');
12
+ const isBluetoothDevicePaired = temporarilyNotSupport('isBluetoothDevicePaired');
13
+ const getConnectedBluetoothDevices = temporarilyNotSupport('getConnectedBluetoothDevices');
14
+ const getBluetoothDevices = temporarilyNotSupport('getBluetoothDevices');
15
+ const getBluetoothAdapterState = temporarilyNotSupport('getBluetoothAdapterState');
16
+ const closeBluetoothAdapter = temporarilyNotSupport('closeBluetoothAdapter');
17
+
18
+ export { closeBluetoothAdapter, getBluetoothAdapterState, getBluetoothDevices, getConnectedBluetoothDevices, isBluetoothDevicePaired, makeBluetoothPair, offBluetoothAdapterStateChange, offBluetoothDeviceFound, onBluetoothAdapterStateChange, onBluetoothDeviceFound, openBluetoothAdapter, startBluetoothDevicesDiscovery, stopBluetoothDevicesDiscovery };
19
+ //# sourceMappingURL=bluetooth.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bluetooth.js","sources":["../../../src/api/device/bluetooth.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 蓝牙-通用\nexport const stopBluetoothDevicesDiscovery = temporarilyNotSupport('stopBluetoothDevicesDiscovery')\nexport const startBluetoothDevicesDiscovery = temporarilyNotSupport('startBluetoothDevicesDiscovery')\nexport const openBluetoothAdapter = temporarilyNotSupport('openBluetoothAdapter')\nexport const onBluetoothDeviceFound = temporarilyNotSupport('onBluetoothDeviceFound')\nexport const onBluetoothAdapterStateChange = temporarilyNotSupport('onBluetoothAdapterStateChange')\nexport const offBluetoothDeviceFound = temporarilyNotSupport('offBluetoothDeviceFound')\nexport const offBluetoothAdapterStateChange = temporarilyNotSupport('offBluetoothAdapterStateChange')\nexport const makeBluetoothPair = temporarilyNotSupport('makeBluetoothPair')\nexport const isBluetoothDevicePaired = temporarilyNotSupport('isBluetoothDevicePaired')\nexport const getConnectedBluetoothDevices = temporarilyNotSupport('getConnectedBluetoothDevices')\nexport const getBluetoothDevices = temporarilyNotSupport('getBluetoothDevices')\nexport const getBluetoothAdapterState = temporarilyNotSupport('getBluetoothAdapterState')\nexport const closeBluetoothAdapter = temporarilyNotSupport('closeBluetoothAdapter')\n"],"names":[],"mappings":";;AAEA;MACa,6BAA6B,GAAG,qBAAqB,CAAC,+BAA+B,EAAC;MACtF,8BAA8B,GAAG,qBAAqB,CAAC,gCAAgC,EAAC;MACxF,oBAAoB,GAAG,qBAAqB,CAAC,sBAAsB,EAAC;MACpE,sBAAsB,GAAG,qBAAqB,CAAC,wBAAwB,EAAC;MACxE,6BAA6B,GAAG,qBAAqB,CAAC,+BAA+B,EAAC;MACtF,uBAAuB,GAAG,qBAAqB,CAAC,yBAAyB,EAAC;MAC1E,8BAA8B,GAAG,qBAAqB,CAAC,gCAAgC,EAAC;MACxF,iBAAiB,GAAG,qBAAqB,CAAC,mBAAmB,EAAC;MAC9D,uBAAuB,GAAG,qBAAqB,CAAC,yBAAyB,EAAC;MAC1E,4BAA4B,GAAG,qBAAqB,CAAC,8BAA8B,EAAC;MACpF,mBAAmB,GAAG,qBAAqB,CAAC,qBAAqB,EAAC;MAClE,wBAAwB,GAAG,qBAAqB,CAAC,0BAA0B,EAAC;MAC5E,qBAAqB,GAAG,qBAAqB,CAAC,uBAAuB;;;;"}
@@ -1,2 +1,3 @@
1
- export declare const addPhoneRepeatCalendar: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
2
- export declare const addPhoneCalendar: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
1
+ declare const addPhoneRepeatCalendar: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
2
+ declare const addPhoneCalendar: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
3
+ export { addPhoneRepeatCalendar, addPhoneCalendar };
@@ -1,4 +1,8 @@
1
- import { temporarilyNotSupport } from '../../utils';
1
+ import { temporarilyNotSupport } from '../../utils/index.js';
2
+
2
3
  // 日历
3
- export const addPhoneRepeatCalendar = temporarilyNotSupport('addPhoneRepeatCalendar');
4
- export const addPhoneCalendar = temporarilyNotSupport('addPhoneCalendar');
4
+ const addPhoneRepeatCalendar = temporarilyNotSupport('addPhoneRepeatCalendar');
5
+ const addPhoneCalendar = temporarilyNotSupport('addPhoneCalendar');
6
+
7
+ export { addPhoneCalendar, addPhoneRepeatCalendar };
8
+ //# sourceMappingURL=calendar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"calendar.js","sources":["../../../src/api/device/calendar.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 日历\nexport const addPhoneRepeatCalendar = temporarilyNotSupport('addPhoneRepeatCalendar')\nexport const addPhoneCalendar = temporarilyNotSupport('addPhoneCalendar')\n"],"names":[],"mappings":";;AAEA;MACa,sBAAsB,GAAG,qBAAqB,CAAC,wBAAwB,EAAC;MACxE,gBAAgB,GAAG,qBAAqB,CAAC,kBAAkB;;;;"}
@@ -8,8 +8,9 @@ import Taro from '@tarojs/api';
8
8
  /**
9
9
  * 设置系统剪贴板的内容
10
10
  */
11
- export declare const setClipboardData: typeof Taro.setClipboardData;
11
+ declare const setClipboardData: typeof Taro.setClipboardData;
12
12
  /**
13
13
  * 获取系统剪贴板的内容
14
14
  */
15
- export declare const getClipboardData: typeof Taro.getClipboardData;
15
+ declare const getClipboardData: typeof Taro.getClipboardData;
16
+ export { setClipboardData, getClipboardData };
@@ -1,21 +1,14 @@
1
+ import { __awaiter } from '../../node_modules/.pnpm/registry.npmjs.org_tslib@1.14.1/node_modules/tslib/tslib.es6.js';
2
+ import { isFunction } from '@tarojs/shared';
3
+ import { MethodHandler } from '../../utils/handler.js';
4
+ import { setStorage, setStorageSync, getStorageSync } from '../storage/index.js';
5
+
1
6
  /**
2
7
  * 剪贴板部分的api参考了Chameleon项目的实现:
3
8
  *
4
9
  * setClipboardData: https://github.com/chameleon-team/chameleon-api/tree/master/src/interfaces/setClipBoardData
5
10
  * getClipboardData: https://github.com/chameleon-team/chameleon-api/tree/master/src/interfaces/getClipBoardData
6
11
  */
7
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
8
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
9
- return new (P || (P = Promise))(function (resolve, reject) {
10
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
11
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
12
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
13
- step((generator = generator.apply(thisArg, _arguments || [])).next());
14
- });
15
- };
16
- import { isFunction } from '@tarojs/shared';
17
- import { MethodHandler } from '../../utils/handler';
18
- import { getStorageSync, setStorage, setStorageSync } from '../storage/index';
19
12
  const CLIPBOARD_STORAGE_NAME = 'taro_clipboard';
20
13
  document.addEventListener('copy', () => {
21
14
  var _a;
@@ -29,7 +22,7 @@ document.addEventListener('copy', () => {
29
22
  /**
30
23
  * 设置系统剪贴板的内容
31
24
  */
32
- export const setClipboardData = ({ data, success, fail, complete }) => __awaiter(void 0, void 0, void 0, function* () {
25
+ const setClipboardData = ({ data, success, fail, complete }) => __awaiter(void 0, void 0, void 0, function* () {
33
26
  const handle = new MethodHandler({ name: 'setClipboardData', success, fail, complete });
34
27
  try {
35
28
  setStorageSync(CLIPBOARD_STORAGE_NAME, data);
@@ -63,7 +56,7 @@ export const setClipboardData = ({ data, success, fail, complete }) => __awaiter
63
56
  /**
64
57
  * 获取系统剪贴板的内容
65
58
  */
66
- export const getClipboardData = ({ success, fail, complete } = {}) => __awaiter(void 0, void 0, void 0, function* () {
59
+ const getClipboardData = ({ success, fail, complete } = {}) => __awaiter(void 0, void 0, void 0, function* () {
67
60
  const handle = new MethodHandler({ name: 'getClipboardData', success, fail, complete });
68
61
  try {
69
62
  const data = getStorageSync(CLIPBOARD_STORAGE_NAME);
@@ -73,3 +66,6 @@ export const getClipboardData = ({ success, fail, complete } = {}) => __awaiter(
73
66
  return handle.fail({ errMsg: e.message });
74
67
  }
75
68
  });
69
+
70
+ export { getClipboardData, setClipboardData };
71
+ //# sourceMappingURL=clipboard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clipboard.js","sources":["../../../src/api/device/clipboard.ts"],"sourcesContent":["/**\r\n * 剪贴板部分的api参考了Chameleon项目的实现:\r\n *\r\n * setClipboardData: https://github.com/chameleon-team/chameleon-api/tree/master/src/interfaces/setClipBoardData\r\n * getClipboardData: https://github.com/chameleon-team/chameleon-api/tree/master/src/interfaces/getClipBoardData\r\n */\r\n\r\nimport Taro from '@tarojs/api'\r\nimport { isFunction } from '@tarojs/shared'\r\n\r\nimport { MethodHandler } from '../../utils/handler'\r\nimport { getStorageSync, setStorage, setStorageSync } from '../storage/index'\r\n\r\nconst CLIPBOARD_STORAGE_NAME = 'taro_clipboard'\r\n\r\ndocument.addEventListener('copy', () => {\r\n setStorage({\r\n key: CLIPBOARD_STORAGE_NAME,\r\n data: window.getSelection()?.toString()\r\n }).catch(e => {\r\n console.error(e)\r\n })\r\n})\r\n\r\n/**\r\n * 设置系统剪贴板的内容\r\n */\r\nexport const setClipboardData: typeof Taro.setClipboardData = async ({ data, success, fail, complete }) => {\r\n const handle = new MethodHandler({ name: 'setClipboardData', success, fail, complete })\r\n try {\r\n setStorageSync(CLIPBOARD_STORAGE_NAME, data)\r\n /**\r\n * 已于 iPhone 6s Plus iOS 13.1.3 上的 Safari 测试通过\r\n * iOS < 10 的系统可能无法使用编程方式访问剪贴板,参考:\r\n * https://stackoverflow.com/questions/34045777/copy-to-clipboard-using-javascript-in-ios/34046084\r\n */\r\n if (isFunction(document.execCommand)) {\r\n const textarea = document.createElement('textarea')\r\n textarea.readOnly = true\r\n textarea.value = data\r\n textarea.style.position = 'absolute'\r\n textarea.style.width = '100px'\r\n textarea.style.left = '-10000px'\r\n document.body.appendChild(textarea)\r\n textarea.select()\r\n textarea.setSelectionRange(0, textarea.value.length)\r\n document.execCommand('copy')\r\n document.body.removeChild(textarea)\r\n } else {\r\n throw new Error('Unsupported Function: \\'document.execCommand\\'.')\r\n }\r\n return handle.success()\r\n } catch (e) {\r\n return handle.fail({ errMsg: e.message })\r\n }\r\n}\r\n\r\n/**\r\n * 获取系统剪贴板的内容\r\n */\r\nexport const getClipboardData: typeof Taro.getClipboardData = async ({ success, fail, complete } = {}) => {\r\n const handle = new MethodHandler<Taro.getClipboardData.SuccessCallbackOption>({ name: 'getClipboardData', success, fail, complete })\r\n try {\r\n const data: string = getStorageSync(CLIPBOARD_STORAGE_NAME)\r\n return handle.success({ data })\r\n } cat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AAO,MAAM,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAA;AAC1C,KAAA;AACH,CAAC;;;;"}
@@ -2,16 +2,17 @@ import Taro from '@tarojs/api';
2
2
  /**
3
3
  * 停止监听罗盘数据
4
4
  */
5
- export declare const stopCompass: typeof Taro.stopCompass;
5
+ declare const stopCompass: typeof Taro.stopCompass;
6
6
  /**
7
7
  * 开始监听罗盘数据
8
8
  */
9
- export declare const startCompass: typeof Taro.startCompass;
9
+ declare const startCompass: typeof Taro.startCompass;
10
10
  /**
11
11
  * 监听罗盘数据变化事件。频率:5 次/秒,接口调用后会自动开始监听,可使用 wx.stopCompass 停止监听。
12
12
  */
13
- export declare const onCompassChange: typeof Taro.onCompassChange;
13
+ declare const onCompassChange: typeof Taro.onCompassChange;
14
14
  /**
15
15
  * 取消监听罗盘数据变化事件,参数为空,则取消所有的事件监听。
16
16
  */
17
- export declare const offCompassChange: typeof Taro.offCompassChange;
17
+ declare const offCompassChange: typeof Taro.offCompassChange;
18
+ export { stopCompass, startCompass, onCompassChange, offCompassChange };
@@ -1,6 +1,8 @@
1
- import { throttle } from '../../utils';
2
- import { CallbackManager, MethodHandler } from '../../utils/handler';
3
- import { getDeviceInfo } from '../base/system';
1
+ import '../../utils/index.js';
2
+ import { CallbackManager, MethodHandler } from '../../utils/handler.js';
3
+ import { getDeviceInfo } from '../base/system.js';
4
+ import { throttle } from '../../utils/lodash.js';
5
+
4
6
  const callbackManager = new CallbackManager();
5
7
  let compassListener;
6
8
  /**
@@ -14,7 +16,7 @@ const deviceorientationEventName = ['absolutedeviceorientation', 'deviceorientat
14
16
  /**
15
17
  * 停止监听罗盘数据
16
18
  */
17
- export const stopCompass = ({ success, fail, complete } = {}) => {
19
+ const stopCompass = ({ success, fail, complete } = {}) => {
18
20
  const handle = new MethodHandler({ name: 'stopCompass', success, fail, complete });
19
21
  try {
20
22
  window.removeEventListener(deviceorientationEventName, compassListener, true);
@@ -28,7 +30,7 @@ let CompassChangeTrigger = false;
28
30
  /**
29
31
  * 开始监听罗盘数据
30
32
  */
31
- export const startCompass = ({ success, fail, complete } = {}) => {
33
+ const startCompass = ({ success, fail, complete } = {}) => {
32
34
  const handle = new MethodHandler({ name: 'startCompass', success, fail, complete });
33
35
  try {
34
36
  if (deviceorientationEventName !== '') {
@@ -67,12 +69,15 @@ export const startCompass = ({ success, fail, complete } = {}) => {
67
69
  /**
68
70
  * 监听罗盘数据变化事件。频率:5 次/秒,接口调用后会自动开始监听,可使用 wx.stopCompass 停止监听。
69
71
  */
70
- export const onCompassChange = callback => {
72
+ const onCompassChange = callback => {
71
73
  callbackManager.add(callback);
72
74
  };
73
75
  /**
74
76
  * 取消监听罗盘数据变化事件,参数为空,则取消所有的事件监听。
75
77
  */
76
- export const offCompassChange = callback => {
78
+ const offCompassChange = callback => {
77
79
  callbackManager.remove(callback);
78
80
  };
81
+
82
+ export { offCompassChange, onCompassChange, startCompass, stopCompass };
83
+ //# sourceMappingURL=compass.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compass.js","sources":["../../../src/api/device/compass.ts"],"sourcesContent":["import Taro from '@tarojs/api'\r\n\r\nimport { throttle } from '../../utils'\r\nimport { CallbackManager, MethodHandler } from '../../utils/handler'\r\nimport { getDeviceInfo } from '../base/system'\r\n\r\nconst callbackManager = new CallbackManager()\r\nlet compassListener\r\n\r\n/**\r\n * Note: 按系统类型获取对应绝对 orientation 事件名,因为安卓系统中直接监听 deviceorientation 事件得到的不是绝对 orientation\r\n */\r\nconst deviceorientationEventName = ['absolutedeviceorientation', 'deviceorientationabsolute', 'deviceorientation'].find(item => {\r\n if ('on' + item in window) {\r\n return item\r\n }\r\n}) || ''\r\n\r\n/**\r\n * 停止监听罗盘数据\r\n */\r\nexport const stopCompass: typeof Taro.stopCompass = ({ success, fail, complete } = {}) => {\r\n const handle = new MethodHandler({ name: 'stopCompass', success, fail, complete })\r\n try {\r\n window.removeEventListener(deviceorientationEventName, compassListener, true)\r\n return handle.success()\r\n } catch (e) {\r\n return handle.fail({ errMsg: e.message })\r\n }\r\n}\r\n\r\nlet CompassChangeTrigger = false\r\n/**\r\n * 开始监听罗盘数据\r\n */\r\nexport const startCompass: typeof Taro.startCompass = ({ success, fail, complete } = {}) => {\r\n const handle = new MethodHandler({ name: 'startCompass', success, fail, complete })\r\n try {\r\n if (deviceorientationEventName !== '') {\r\n if (compassListener) {\r\n stopCompass()\r\n }\r\n compassListener = throttle((evt: DeviceOrientationEvent) => {\r\n const isAndroid = getDeviceInfo().system === 'AndroidOS'\r\n if (isAndroid && !evt.absolute && !CompassChangeTrigger) {\r\n CompassChangeTrigger = true\r\n console.warn('Warning: In \\'onCompassChange\\', your browser is not supported to get the orientation relative to the earth, the orientation data will be related to the initial orientation of the device .')\r\n }\r\n const alpha = evt.alpha || 0\r\n /**\r\n * 由于平台差异,accuracy 在 iOS/Android 的值不同。\r\n * - iOS:accuracy 是一个 number 类型的值,表示相对于磁北极的偏差。0 表示设备指向磁北,90 表示指向东,180 表示指向南,依此类推。\r\n * - Android:accuracy 是一个 string 类型的枚举值。\r\n */\r\n const accuracy = isAndroid ? evt.absolute ? 'high' : 'medium' : alpha\r\n callbackManager.trigger({\r\n direction: 360 - alpha,\r\n accuracy: accuracy\r\n } as unknown as Parameters<typeof Taro.onCompassChange>[number])\r\n }, 5000)\r\n window.addEventListener(deviceorientationEventName, compassListener, true)\r\n } else {\r\n throw new Error('compass is not supported')\r\n }\r\n return handle.success()\r\n } catch (e) {\r\n return handle.fail({ errMsg: e.message })\r\n }\r\n}\r\n\r\n/**\r\n * 监听罗盘数据变化事件。频率:5 次/秒,接口调用后会自动开始监听,可使用 wx.stopCompass 停止监听。\r\n */\r\nexport const onCompassChange: typeof Taro.onCompassChange = callback => {\r\n callbackManager.add(callback)\r\n}\r\n\r\n/**\r\n * 取消监听罗盘数据变化事件,参数为空,则取消所有的事件监听。\r\n */\r\nexport const offCompassChange: typeof Taro.offCompassChange = callback => {\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AAgB,GAAiC,QAAQ,IAAG;AACvE,IAAA,eAAe,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAA;AAClC;;;;"}
@@ -1,2 +1,3 @@
1
- export declare const chooseContact: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
2
- export declare const addPhoneContact: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
1
+ declare const chooseContact: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
2
+ declare const addPhoneContact: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
3
+ export { chooseContact, addPhoneContact };
@@ -1,4 +1,8 @@
1
- import { temporarilyNotSupport } from '../../utils';
1
+ import { temporarilyNotSupport } from '../../utils/index.js';
2
+
2
3
  // 联系人
3
- export const chooseContact = temporarilyNotSupport('chooseContact');
4
- export const addPhoneContact = temporarilyNotSupport('addPhoneContact');
4
+ const chooseContact = temporarilyNotSupport('chooseContact');
5
+ const addPhoneContact = temporarilyNotSupport('addPhoneContact');
6
+
7
+ export { addPhoneContact, chooseContact };
8
+ //# sourceMappingURL=contact.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contact.js","sources":["../../../src/api/device/contact.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 联系人\nexport const chooseContact = temporarilyNotSupport('chooseContact')\nexport const addPhoneContact = temporarilyNotSupport('addPhoneContact')\n"],"names":[],"mappings":";;AAEA;MACa,aAAa,GAAG,qBAAqB,CAAC,eAAe,EAAC;MACtD,eAAe,GAAG,qBAAqB,CAAC,iBAAiB;;;;"}
@@ -1 +1,2 @@
1
- export declare const getRandomValues: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
1
+ declare const getRandomValues: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
2
+ export { getRandomValues };
@@ -1,3 +1,7 @@
1
- import { temporarilyNotSupport } from '../../utils';
1
+ import { temporarilyNotSupport } from '../../utils/index.js';
2
+
2
3
  // 加密
3
- export const getRandomValues = temporarilyNotSupport('getRandomValues');
4
+ const getRandomValues = temporarilyNotSupport('getRandomValues');
5
+
6
+ export { getRandomValues };
7
+ //# sourceMappingURL=crypto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"crypto.js","sources":["../../../src/api/device/crypto.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 加密\nexport const getRandomValues = temporarilyNotSupport('getRandomValues')\n"],"names":[],"mappings":";;AAEA;MACa,eAAe,GAAG,qBAAqB,CAAC,iBAAiB;;;;"}
@@ -1,4 +1,5 @@
1
- export declare const stopGyroscope: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
2
- export declare const startGyroscope: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
3
- export declare const onGyroscopeChange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
4
- export declare const offGyroscopeChange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
1
+ declare const stopGyroscope: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
2
+ declare const startGyroscope: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
3
+ declare const onGyroscopeChange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
4
+ declare const offGyroscopeChange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
5
+ export { stopGyroscope, startGyroscope, onGyroscopeChange, offGyroscopeChange };
@@ -1,6 +1,10 @@
1
- import { temporarilyNotSupport } from '../../utils';
1
+ import { temporarilyNotSupport } from '../../utils/index.js';
2
+
2
3
  // 陀螺仪
3
- export const stopGyroscope = temporarilyNotSupport('stopGyroscope');
4
- export const startGyroscope = temporarilyNotSupport('startGyroscope');
5
- export const onGyroscopeChange = temporarilyNotSupport('onGyroscopeChange');
6
- export const offGyroscopeChange = temporarilyNotSupport('offGyroscopeChange');
4
+ const stopGyroscope = temporarilyNotSupport('stopGyroscope');
5
+ const startGyroscope = temporarilyNotSupport('startGyroscope');
6
+ const onGyroscopeChange = temporarilyNotSupport('onGyroscopeChange');
7
+ const offGyroscopeChange = temporarilyNotSupport('offGyroscopeChange');
8
+
9
+ export { offGyroscopeChange, onGyroscopeChange, startGyroscope, stopGyroscope };
10
+ //# sourceMappingURL=gyroscope.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gyroscope.js","sources":["../../../src/api/device/gyroscope.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 陀螺仪\nexport const stopGyroscope = temporarilyNotSupport('stopGyroscope')\nexport const startGyroscope = temporarilyNotSupport('startGyroscope')\nexport const onGyroscopeChange = temporarilyNotSupport('onGyroscopeChange')\nexport const offGyroscopeChange = temporarilyNotSupport('offGyroscopeChange')\n"],"names":[],"mappings":";;AAEA;MACa,aAAa,GAAG,qBAAqB,CAAC,eAAe,EAAC;MACtD,cAAc,GAAG,qBAAqB,CAAC,gBAAgB,EAAC;MACxD,iBAAiB,GAAG,qBAAqB,CAAC,mBAAmB,EAAC;MAC9D,kBAAkB,GAAG,qBAAqB,CAAC,oBAAoB;;;;"}
@@ -1,7 +1,8 @@
1
- export declare const stopBeaconDiscovery: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
2
- export declare const startBeaconDiscovery: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
3
- export declare const onBeaconUpdate: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
4
- export declare const onBeaconServiceChange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
5
- export declare const offBeaconUpdate: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
6
- export declare const offBeaconServiceChange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
7
- export declare const getBeacons: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
1
+ declare const stopBeaconDiscovery: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
2
+ declare const startBeaconDiscovery: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
3
+ declare const onBeaconUpdate: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
4
+ declare const onBeaconServiceChange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
5
+ declare const offBeaconUpdate: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
6
+ declare const offBeaconServiceChange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
7
+ declare const getBeacons: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
8
+ export { stopBeaconDiscovery, startBeaconDiscovery, onBeaconUpdate, onBeaconServiceChange, offBeaconUpdate, offBeaconServiceChange, getBeacons };
@@ -1,9 +1,13 @@
1
- import { temporarilyNotSupport } from '../../utils';
1
+ import { temporarilyNotSupport } from '../../utils/index.js';
2
+
2
3
  // 蓝牙-信标(Beacon)
3
- export const stopBeaconDiscovery = temporarilyNotSupport('stopBeaconDiscovery');
4
- export const startBeaconDiscovery = temporarilyNotSupport('startBeaconDiscovery');
5
- export const onBeaconUpdate = temporarilyNotSupport('onBeaconUpdate');
6
- export const onBeaconServiceChange = temporarilyNotSupport('onBeaconServiceChange');
7
- export const offBeaconUpdate = temporarilyNotSupport('offBeaconUpdate');
8
- export const offBeaconServiceChange = temporarilyNotSupport('offBeaconServiceChange');
9
- export const getBeacons = temporarilyNotSupport('getBeacons');
4
+ const stopBeaconDiscovery = temporarilyNotSupport('stopBeaconDiscovery');
5
+ const startBeaconDiscovery = temporarilyNotSupport('startBeaconDiscovery');
6
+ const onBeaconUpdate = temporarilyNotSupport('onBeaconUpdate');
7
+ const onBeaconServiceChange = temporarilyNotSupport('onBeaconServiceChange');
8
+ const offBeaconUpdate = temporarilyNotSupport('offBeaconUpdate');
9
+ const offBeaconServiceChange = temporarilyNotSupport('offBeaconServiceChange');
10
+ const getBeacons = temporarilyNotSupport('getBeacons');
11
+
12
+ export { getBeacons, offBeaconServiceChange, offBeaconUpdate, onBeaconServiceChange, onBeaconUpdate, startBeaconDiscovery, stopBeaconDiscovery };
13
+ //# sourceMappingURL=iBeacon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"iBeacon.js","sources":["../../../src/api/device/iBeacon.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 蓝牙-信标(Beacon)\nexport const stopBeaconDiscovery = temporarilyNotSupport('stopBeaconDiscovery')\nexport const startBeaconDiscovery = temporarilyNotSupport('startBeaconDiscovery')\nexport const onBeaconUpdate = temporarilyNotSupport('onBeaconUpdate')\nexport const onBeaconServiceChange = temporarilyNotSupport('onBeaconServiceChange')\nexport const offBeaconUpdate = temporarilyNotSupport('offBeaconUpdate')\nexport const offBeaconServiceChange = temporarilyNotSupport('offBeaconServiceChange')\nexport const getBeacons = temporarilyNotSupport('getBeacons')\n"],"names":[],"mappings":";;AAEA;MACa,mBAAmB,GAAG,qBAAqB,CAAC,qBAAqB,EAAC;MAClE,oBAAoB,GAAG,qBAAqB,CAAC,sBAAsB,EAAC;MACpE,cAAc,GAAG,qBAAqB,CAAC,gBAAgB,EAAC;MACxD,qBAAqB,GAAG,qBAAqB,CAAC,uBAAuB,EAAC;MACtE,eAAe,GAAG,qBAAqB,CAAC,iBAAiB,EAAC;MAC1D,sBAAsB,GAAG,qBAAqB,CAAC,wBAAwB,EAAC;MACxE,UAAU,GAAG,qBAAqB,CAAC,YAAY;;;;"}
@@ -1,23 +1,23 @@
1
- export * from './accelerometer';
2
- export * from './accessibility';
3
- export * from './battery';
4
- export * from './bluetooth';
5
- export * from './bluetooth-ble';
6
- export * from './bluetooth-peripheral';
7
- export * from './calendar';
8
- export * from './clipboard';
9
- export * from './compass';
10
- export * from './contact';
11
- export * from './crypto';
12
- export * from './gyroscope';
13
- export * from './iBeacon';
14
- export * from './keyboard';
15
- export * from './memory';
16
- export * from './motion';
17
- export * from './network';
18
- export * from './nfc';
19
- export * from './phone';
20
- export * from './scan';
21
- export * from './screen';
22
- export * from './vibrate';
23
- export * from './wifi';
1
+ export * from "./accelerometer";
2
+ export * from "./accessibility";
3
+ export * from "./battery";
4
+ export * from "./bluetooth";
5
+ export * from "./bluetooth-ble";
6
+ export * from "./bluetooth-peripheral";
7
+ export * from "./calendar";
8
+ export * from "./clipboard";
9
+ export * from "./compass";
10
+ export * from "./contact";
11
+ export * from "./crypto";
12
+ export * from "./gyroscope";
13
+ export * from "./iBeacon";
14
+ export * from "./keyboard";
15
+ export * from "./memory";
16
+ export * from "./motion";
17
+ export * from "./network";
18
+ export * from "./nfc";
19
+ export * from "./phone";
20
+ export * from "./scan";
21
+ export * from "./screen";
22
+ export * from "./vibrate";
23
+ export * from "./wifi";
@@ -1,23 +1,24 @@
1
- export * from './accelerometer';
2
- export * from './accessibility';
3
- export * from './battery';
4
- export * from './bluetooth';
5
- export * from './bluetooth-ble';
6
- export * from './bluetooth-peripheral';
7
- export * from './calendar';
8
- export * from './clipboard';
9
- export * from './compass';
10
- export * from './contact';
11
- export * from './crypto';
12
- export * from './gyroscope';
13
- export * from './iBeacon';
14
- export * from './keyboard';
15
- export * from './memory';
16
- export * from './motion';
17
- export * from './network';
18
- export * from './nfc';
19
- export * from './phone';
20
- export * from './scan';
21
- export * from './screen';
22
- export * from './vibrate';
23
- export * from './wifi';
1
+ export { offAccelerometerChange, onAccelerometerChange, startAccelerometer, stopAccelerometer } from './accelerometer.js';
2
+ export { checkIsOpenAccessibility } from './accessibility.js';
3
+ export { getBatteryInfo, getBatteryInfoSync } from './battery.js';
4
+ export { closeBluetoothAdapter, getBluetoothAdapterState, getBluetoothDevices, getConnectedBluetoothDevices, isBluetoothDevicePaired, makeBluetoothPair, offBluetoothAdapterStateChange, offBluetoothDeviceFound, onBluetoothAdapterStateChange, onBluetoothDeviceFound, openBluetoothAdapter, startBluetoothDevicesDiscovery, stopBluetoothDevicesDiscovery } from './bluetooth.js';
5
+ export { closeBLEConnection, createBLEConnection, getBLEDeviceCharacteristics, getBLEDeviceRSSI, getBLEDeviceServices, getBLEMTU, notifyBLECharacteristicValueChange, offBLECharacteristicValueChange, offBLEConnectionStateChange, offBLEMTUChange, onBLECharacteristicValueChange, onBLEConnectionStateChange, onBLEMTUChange, readBLECharacteristicValue, setBLEMTU, writeBLECharacteristicValue } from './bluetooth-ble.js';
6
+ export { createBLEPeripheralServer, offBLEPeripheralConnectionStateChanged, onBLEPeripheralConnectionStateChanged } from './bluetooth-peripheral.js';
7
+ export { addPhoneCalendar, addPhoneRepeatCalendar } from './calendar.js';
8
+ export { getClipboardData, setClipboardData } from './clipboard.js';
9
+ export { offCompassChange, onCompassChange, startCompass, stopCompass } from './compass.js';
10
+ export { addPhoneContact, chooseContact } from './contact.js';
11
+ export { getRandomValues } from './crypto.js';
12
+ export { offGyroscopeChange, onGyroscopeChange, startGyroscope, stopGyroscope } from './gyroscope.js';
13
+ export { getBeacons, offBeaconServiceChange, offBeaconUpdate, onBeaconServiceChange, onBeaconUpdate, startBeaconDiscovery, stopBeaconDiscovery } from './iBeacon.js';
14
+ export { getSelectedTextRange, hideKeyboard, offKeyboardHeightChange, onKeyboardHeightChange } from './keyboard.js';
15
+ export { offMemoryWarning, onMemoryWarning } from './memory.js';
16
+ export { offDeviceMotionChange, onDeviceMotionChange, startDeviceMotionListening, stopDeviceMotionListening } from './motion.js';
17
+ export { getLocalIPAddress, getNetworkType, offNetworkStatusChange, offNetworkWeakChange, onNetworkStatusChange, onNetworkWeakChange } from './network.js';
18
+ export { getHCEState, getNFCAdapter, offHCEMessage, onHCEMessage, sendHCEMessage, startHCE, stopHCE } from './nfc.js';
19
+ export { makePhoneCall } from './phone.js';
20
+ export { scanCode } from './scan.js';
21
+ export { getScreenBrightness, offUserCaptureScreen, onUserCaptureScreen, setKeepScreenOn, setScreenBrightness, setVisualEffectOnCapture } from './screen.js';
22
+ export { vibrateLong, vibrateShort } from './vibrate.js';
23
+ export { connectWifi, getConnectedWifi, getWifiList, offGetWifiList, offWifiConnected, onGetWifiList, onWifiConnected, onWifiConnectedWithPartialInfo, setWifiList, startWifi, stopWifi } from './wifi.js';
24
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,4 +1,5 @@
1
- export declare const onKeyboardHeightChange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
2
- export declare const offKeyboardHeightChange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
3
- export declare const hideKeyboard: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
4
- export declare const getSelectedTextRange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
1
+ declare const onKeyboardHeightChange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
2
+ declare const offKeyboardHeightChange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
3
+ declare const hideKeyboard: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
4
+ declare const getSelectedTextRange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
5
+ export { onKeyboardHeightChange, offKeyboardHeightChange, hideKeyboard, getSelectedTextRange };