@tarojs/taro-h5 3.6.0-beta.1 → 3.6.0-beta.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 (437) 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 +22 -22
  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 +6 -2
  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 +6 -2
  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 +14289 -84
  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 +14288 -84
  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_@stencil_core@2.22.2/node_modules/@stencil/core/internal/app-data/index.js +89 -0
  398. package/dist/node_modules/.pnpm/registry.npmjs.org_@stencil_core@2.22.2/node_modules/@stencil/core/internal/app-data/index.js.map +1 -0
  399. package/dist/node_modules/.pnpm/registry.npmjs.org_@stencil_core@2.22.2/node_modules/@stencil/core/internal/client/index.js +3371 -0
  400. package/dist/node_modules/.pnpm/registry.npmjs.org_@stencil_core@2.22.2/node_modules/@stencil/core/internal/client/index.js.map +1 -0
  401. package/dist/node_modules/.pnpm/registry.npmjs.org_@stencil_core@2.22.2/node_modules/@stencil/core/internal/client/shadow-css.js +388 -0
  402. package/dist/node_modules/.pnpm/registry.npmjs.org_@stencil_core@2.22.2/node_modules/@stencil/core/internal/client/shadow-css.js.map +1 -0
  403. package/dist/node_modules/.pnpm/registry.npmjs.org_style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js +29 -0
  404. 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
  405. package/dist/node_modules/.pnpm/registry.npmjs.org_tslib@1.14.1/node_modules/tslib/tslib.es6.js +221 -0
  406. package/dist/node_modules/.pnpm/registry.npmjs.org_tslib@1.14.1/node_modules/tslib/tslib.es6.js.map +1 -0
  407. package/dist/packages/taro-components/dist/components/index2.js +77 -0
  408. package/dist/packages/taro-components/dist/components/index2.js.map +1 -0
  409. package/dist/packages/taro-components/dist/components/index3.js +35 -0
  410. package/dist/packages/taro-components/dist/components/index3.js.map +1 -0
  411. package/dist/packages/taro-components/dist/components/taro-swiper-core.js +10171 -0
  412. package/dist/packages/taro-components/dist/components/taro-swiper-core.js.map +1 -0
  413. package/dist/packages/taro-components/dist/components/taro-swiper-item-core.js +69 -0
  414. package/dist/packages/taro-components/dist/components/taro-swiper-item-core.js.map +1 -0
  415. package/dist/utils/animation.d.ts +3 -2
  416. package/dist/utils/animation.js +5 -2
  417. package/dist/utils/animation.js.map +1 -0
  418. package/dist/utils/handler.d.ts +7 -7
  419. package/dist/utils/handler.js +7 -4
  420. package/dist/utils/handler.js.map +1 -0
  421. package/dist/utils/index.d.ts +16 -16
  422. package/dist/utils/index.js +26 -23
  423. package/dist/utils/index.js.map +1 -0
  424. package/dist/utils/lodash.d.ts +3 -2
  425. package/dist/utils/lodash.js +5 -2
  426. package/dist/utils/lodash.js.map +1 -0
  427. package/dist/utils/valid.d.ts +2 -1
  428. package/dist/utils/valid.js +4 -1
  429. package/dist/utils/valid.js.map +1 -0
  430. package/package.json +10 -10
  431. package/types/define.d.ts +2 -0
  432. package/dist/api/location/style.css +0 -79
  433. package/dist/api/media/EditorContext.d.ts +0 -16
  434. package/dist/api/media/EditorContext.js +0 -19
  435. package/dist/taroApis.d.ts +0 -754
  436. package/dist/taroApis.js +0 -2
  437. package/dist/taroApis.js.map +0 -1
@@ -0,0 +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,2 +1,3 @@
1
- export declare const getUserProfile: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
2
- export declare const getUserInfo: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
1
+ declare const getUserProfile: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
2
+ declare const getUserInfo: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
3
+ export { getUserProfile, getUserInfo };
@@ -1,4 +1,8 @@
1
- import { temporarilyNotSupport } from '../../utils';
1
+ import { temporarilyNotSupport } from '../../utils/index.js';
2
+
2
3
  // 用户信息
3
- export const getUserProfile = temporarilyNotSupport('getUserProfile');
4
- export const getUserInfo = temporarilyNotSupport('getUserInfo');
4
+ const getUserProfile = temporarilyNotSupport('getUserProfile');
5
+ const getUserInfo = temporarilyNotSupport('getUserInfo');
6
+
7
+ export { getUserInfo, getUserProfile };
8
+ //# sourceMappingURL=user-info.js.map
@@ -0,0 +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,2 +1,3 @@
1
- export declare const shareToWeRun: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
2
- export declare const getWeRunData: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
1
+ declare const shareToWeRun: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
2
+ declare const getWeRunData: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
3
+ export { shareToWeRun, getWeRunData };
@@ -1,4 +1,8 @@
1
- import { temporarilyNotSupport } from '../../utils';
1
+ import { temporarilyNotSupport } from '../../utils/index.js';
2
+
2
3
  // 微信运动
3
- export const shareToWeRun = temporarilyNotSupport('shareToWeRun');
4
- export const getWeRunData = temporarilyNotSupport('getWeRunData');
4
+ const shareToWeRun = temporarilyNotSupport('shareToWeRun');
5
+ const getWeRunData = temporarilyNotSupport('getWeRunData');
6
+
7
+ export { getWeRunData, shareToWeRun };
8
+ //# sourceMappingURL=werun.js.map
@@ -0,0 +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,2 +1,3 @@
1
- export declare const requestPayment: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
2
- export declare const requestOrderPayment: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
1
+ declare const requestPayment: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
2
+ declare const requestOrderPayment: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
3
+ export { requestPayment, requestOrderPayment };
@@ -1,4 +1,8 @@
1
- import { temporarilyNotSupport } from '../../utils';
1
+ import { temporarilyNotSupport } from '../../utils/index.js';
2
+
2
3
  // 支付
3
- export const requestPayment = temporarilyNotSupport('requestPayment');
4
- export const requestOrderPayment = temporarilyNotSupport('requestOrderPayment');
4
+ const requestPayment = temporarilyNotSupport('requestPayment');
5
+ const requestOrderPayment = temporarilyNotSupport('requestOrderPayment');
6
+
7
+ export { requestOrderPayment, requestPayment };
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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,3 +1,5 @@
1
+ export { navigateBack, navigateTo, reLaunch, redirectTo, switchTab } from '@tarojs/router';
2
+
1
3
  // 路由
2
- export { navigateBack, navigateTo, redirectTo, reLaunch, switchTab } from '@tarojs/router';
3
4
  // FIXME 方法导出类型未对齐,后续修复
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/api/route/index.ts"],"sourcesContent":["// 路由\nexport {\n navigateBack,\n navigateTo,\n redirectTo,\n reLaunch,\n switchTab\n} from '@tarojs/router'\n\n// FIXME 方法导出类型未对齐,后续修复\n"],"names":[],"mappings":";;AAAA;AASA"}
@@ -1,10 +1,11 @@
1
- export declare const updateShareMenu: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
2
- export declare const showShareMenu: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
3
- export declare const showShareImageMenu: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
4
- export declare const shareVideoMessage: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
5
- export declare const shareFileMessage: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
6
- export declare const onCopyUrl: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
7
- export declare const offCopyUrl: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
8
- export declare const hideShareMenu: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
9
- export declare const getShareInfo: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
10
- export declare const authPrivateMessage: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
1
+ declare const updateShareMenu: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
2
+ declare const showShareMenu: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
3
+ declare const showShareImageMenu: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
4
+ declare const shareVideoMessage: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
5
+ declare const shareFileMessage: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
6
+ declare const onCopyUrl: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
7
+ declare const offCopyUrl: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
8
+ declare const hideShareMenu: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
9
+ declare const getShareInfo: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
10
+ declare const authPrivateMessage: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
11
+ export { updateShareMenu, showShareMenu, showShareImageMenu, shareVideoMessage, shareFileMessage, onCopyUrl, offCopyUrl, hideShareMenu, getShareInfo, authPrivateMessage };
@@ -1,12 +1,16 @@
1
- import { temporarilyNotSupport } from '../../utils';
1
+ import { temporarilyNotSupport } from '../../utils/index.js';
2
+
2
3
  // 转发
3
- export const updateShareMenu = temporarilyNotSupport('updateShareMenu');
4
- export const showShareMenu = temporarilyNotSupport('showShareMenu');
5
- export const showShareImageMenu = temporarilyNotSupport('showShareImageMenu');
6
- export const shareVideoMessage = temporarilyNotSupport('shareVideoMessage');
7
- export const shareFileMessage = temporarilyNotSupport('shareFileMessage');
8
- export const onCopyUrl = temporarilyNotSupport('onCopyUrl');
9
- export const offCopyUrl = temporarilyNotSupport('offCopyUrl');
10
- export const hideShareMenu = temporarilyNotSupport('hideShareMenu');
11
- export const getShareInfo = temporarilyNotSupport('getShareInfo');
12
- export const authPrivateMessage = temporarilyNotSupport('authPrivateMessage');
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');
14
+
15
+ export { authPrivateMessage, getShareInfo, hideShareMenu, offCopyUrl, onCopyUrl, shareFileMessage, shareVideoMessage, showShareImageMenu, showShareMenu, updateShareMenu };
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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,4 +1,5 @@
1
- export declare const setBackgroundFetchToken: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
2
- export declare const onBackgroundFetchData: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
3
- export declare const getBackgroundFetchToken: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
4
- export declare const getBackgroundFetchData: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
1
+ declare const setBackgroundFetchToken: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
2
+ declare const onBackgroundFetchData: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
3
+ declare const getBackgroundFetchToken: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
4
+ declare const getBackgroundFetchData: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
5
+ export { setBackgroundFetchToken, onBackgroundFetchData, getBackgroundFetchToken, getBackgroundFetchData };
@@ -1,6 +1,10 @@
1
- import { temporarilyNotSupport } from '../../utils';
1
+ import { temporarilyNotSupport } from '../../utils/index.js';
2
+
2
3
  // 周期性更新
3
- export const setBackgroundFetchToken = temporarilyNotSupport('setBackgroundFetchToken');
4
- export const onBackgroundFetchData = temporarilyNotSupport('onBackgroundFetchData');
5
- export const getBackgroundFetchToken = temporarilyNotSupport('getBackgroundFetchToken');
6
- export const getBackgroundFetchData = temporarilyNotSupport('getBackgroundFetchData');
4
+ const setBackgroundFetchToken = temporarilyNotSupport('setBackgroundFetchToken');
5
+ const onBackgroundFetchData = temporarilyNotSupport('onBackgroundFetchData');
6
+ const getBackgroundFetchToken = temporarilyNotSupport('getBackgroundFetchToken');
7
+ const getBackgroundFetchData = temporarilyNotSupport('getBackgroundFetchData');
8
+
9
+ export { getBackgroundFetchData, getBackgroundFetchToken, onBackgroundFetchData, setBackgroundFetchToken };
10
+ //# sourceMappingURL=background-fetch.js.map
@@ -0,0 +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,14 +1,15 @@
1
1
  import Taro from '@tarojs/api';
2
- export declare const setStorageSync: typeof Taro.setStorageSync;
3
- export declare const setStorage: typeof Taro.setStorage;
4
- export declare const revokeBufferURL: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
5
- export declare const removeStorageSync: typeof Taro.removeStorageSync;
6
- export declare const removeStorage: typeof Taro.removeStorage;
7
- export declare const getStorageSync: typeof Taro.getStorageSync;
8
- export declare const getStorageInfoSync: typeof Taro.getStorageInfoSync;
9
- export declare const getStorageInfo: typeof Taro.getStorageInfo;
10
- export declare const getStorage: typeof Taro.getStorage;
11
- export declare const createBufferURL: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
12
- export declare const clearStorageSync: typeof Taro.clearStorageSync;
13
- export declare const clearStorage: typeof Taro.clearStorage;
14
- export * from './background-fetch';
2
+ declare const setStorageSync: typeof Taro.setStorageSync;
3
+ declare const setStorage: typeof Taro.setStorage;
4
+ declare const revokeBufferURL: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
5
+ declare const removeStorageSync: typeof Taro.removeStorageSync;
6
+ declare const removeStorage: typeof Taro.removeStorage;
7
+ declare const getStorageSync: typeof Taro.getStorageSync;
8
+ declare const getStorageInfoSync: typeof Taro.getStorageInfoSync;
9
+ declare const getStorageInfo: typeof Taro.getStorageInfo;
10
+ declare const getStorage: typeof Taro.getStorage;
11
+ declare const createBufferURL: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
12
+ declare const clearStorageSync: typeof Taro.clearStorageSync;
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";
@@ -1,5 +1,7 @@
1
- import { getParameterError, shouldBeObject, temporarilyNotSupport } from '../../utils';
2
- import { MethodHandler } from '../../utils/handler';
1
+ import { getParameterError, shouldBeObject, temporarilyNotSupport } from '../../utils/index.js';
2
+ import { MethodHandler } from '../../utils/handler.js';
3
+ export { getBackgroundFetchData, getBackgroundFetchToken, onBackgroundFetchData, setBackgroundFetchToken } from './background-fetch.js';
4
+
3
5
  function getItem(key) {
4
6
  let item;
5
7
  try {
@@ -15,7 +17,7 @@ function getItem(key) {
15
17
  }
16
18
  }
17
19
  // 数据缓存
18
- export const setStorageSync = (key, data = '') => {
20
+ const setStorageSync = (key, data = '') => {
19
21
  if (typeof key !== 'string') {
20
22
  console.error(getParameterError({
21
23
  name: 'setStorage',
@@ -34,7 +36,7 @@ export const setStorageSync = (key, data = '') => {
34
36
  }
35
37
  localStorage.setItem(key, JSON.stringify(obj));
36
38
  };
37
- export const setStorage = (options) => {
39
+ const setStorage = (options) => {
38
40
  // options must be an Object
39
41
  const isObject = shouldBeObject(options);
40
42
  if (!isObject.flag) {
@@ -56,8 +58,8 @@ export const setStorage = (options) => {
56
58
  setStorageSync(key, data);
57
59
  return handle.success();
58
60
  };
59
- export const revokeBufferURL = temporarilyNotSupport('revokeBufferURL');
60
- export const removeStorageSync = (key) => {
61
+ const revokeBufferURL = temporarilyNotSupport('revokeBufferURL');
62
+ const removeStorageSync = (key) => {
61
63
  if (typeof key !== 'string') {
62
64
  console.error(getParameterError({
63
65
  name: 'removeStorage',
@@ -68,7 +70,7 @@ export const removeStorageSync = (key) => {
68
70
  }
69
71
  localStorage.removeItem(key);
70
72
  };
71
- export const removeStorage = (options) => {
73
+ const removeStorage = (options) => {
72
74
  // options must be an Object
73
75
  const isObject = shouldBeObject(options);
74
76
  if (!isObject.flag) {
@@ -90,7 +92,7 @@ export const removeStorage = (options) => {
90
92
  removeStorageSync(key);
91
93
  return handle.success();
92
94
  };
93
- export const getStorageSync = (key) => {
95
+ const getStorageSync = (key) => {
94
96
  if (typeof key !== 'string') {
95
97
  console.error(getParameterError({
96
98
  name: 'getStorageSync',
@@ -104,7 +106,7 @@ export const getStorageSync = (key) => {
104
106
  return res.data;
105
107
  return '';
106
108
  };
107
- export const getStorageInfoSync = () => {
109
+ const getStorageInfoSync = () => {
108
110
  const res = {
109
111
  keys: Object.keys(localStorage),
110
112
  limitSize: NaN,
@@ -112,11 +114,11 @@ export const getStorageInfoSync = () => {
112
114
  };
113
115
  return res;
114
116
  };
115
- export const getStorageInfo = ({ success, fail, complete } = {}) => {
117
+ const getStorageInfo = ({ success, fail, complete } = {}) => {
116
118
  const handle = new MethodHandler({ name: 'getStorageInfo', success, fail, complete });
117
119
  return handle.success(getStorageInfoSync());
118
120
  };
119
- export const getStorage = (options) => {
121
+ const getStorage = (options) => {
120
122
  // options must be an Object
121
123
  const isObject = shouldBeObject(options);
122
124
  if (!isObject.flag) {
@@ -145,13 +147,15 @@ export const getStorage = (options) => {
145
147
  });
146
148
  }
147
149
  };
148
- export const createBufferURL = temporarilyNotSupport('createBufferURL');
149
- export const clearStorageSync = () => {
150
+ const createBufferURL = temporarilyNotSupport('createBufferURL');
151
+ const clearStorageSync = () => {
150
152
  localStorage.clear();
151
153
  };
152
- export const clearStorage = ({ success, fail, complete } = {}) => {
154
+ const clearStorage = ({ success, fail, complete } = {}) => {
153
155
  const handle = new MethodHandler({ name: 'clearStorage', success, fail, complete });
154
156
  clearStorageSync();
155
157
  return handle.success();
156
158
  };
157
- export * from './background-fetch';
159
+
160
+ export { clearStorage, clearStorageSync, createBufferURL, getStorage, getStorageInfo, getStorageInfoSync, getStorageSync, removeStorage, removeStorageSync, revokeBufferURL, setStorage, setStorageSync };
161
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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()\n}\n\nexport * from './background-fetch'\n"],"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,E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KAAK,EAAE,GAAG;aACX,CAAC;AACH,SAAA,CAAC,CAAA;AACH,KAAA;IAED,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC,CAAA;AACrC,IAAA,IAAI,MAAM,EAAE;QACV,OAAO,MAAM,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,CAAC,CAAA;AAChC,KAAA;AAAM,SAAA;QACL,OAAO,MAAM,CAAC,IAAI,CAAC;AACjB,YAAA,MAAM,EAAE,gBAAgB;AACzB,SAAA,CAAC,CAAA;AACH,KAAA;AACH,EAAC;MAEY,eAAe,GAAG,qBAAqB,CAAC,iBAAiB,EAAC;AAEhE,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;;;;"}
@@ -1,21 +1,22 @@
1
- export declare const setPageInfo: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
2
- export declare const ocrIdCard: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
3
- export declare const ocrBankCard: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
4
- export declare const ocrDrivingLicense: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
5
- export declare const ocrVehicleLicense: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
6
- export declare const textReview: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
7
- export declare const textToAudio: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
8
- export declare const imageAudit: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
9
- export declare const advancedGeneralIdentify: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
10
- export declare const objectDetectIdentify: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
11
- export declare const carClassify: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
12
- export declare const dishClassify: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
13
- export declare const logoClassify: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
14
- export declare const animalClassify: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
15
- export declare const plantClassify: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
16
- export declare const getSwanId: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
17
- export declare const requestPolymerPayment: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
18
- export declare const navigateToSmartGameProgram: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
19
- export declare const navigateToSmartProgram: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
20
- export declare const navigateBackSmartProgram: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
21
- export declare const preloadSubPackage: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
1
+ declare const setPageInfo: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
2
+ declare const ocrIdCard: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
3
+ declare const ocrBankCard: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
4
+ declare const ocrDrivingLicense: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
5
+ declare const ocrVehicleLicense: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
6
+ declare const textReview: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
7
+ declare const textToAudio: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
8
+ declare const imageAudit: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
9
+ declare const advancedGeneralIdentify: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
10
+ declare const objectDetectIdentify: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
11
+ declare const carClassify: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
12
+ declare const dishClassify: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
13
+ declare const logoClassify: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
14
+ declare const animalClassify: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
15
+ declare const plantClassify: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
16
+ declare const getSwanId: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
17
+ declare const requestPolymerPayment: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
18
+ declare const navigateToSmartGameProgram: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
19
+ declare const navigateToSmartProgram: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
20
+ declare const navigateBackSmartProgram: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
21
+ declare const preloadSubPackage: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
22
+ export { setPageInfo, ocrIdCard, ocrBankCard, ocrDrivingLicense, ocrVehicleLicense, textReview, textToAudio, imageAudit, advancedGeneralIdentify, objectDetectIdentify, carClassify, dishClassify, logoClassify, animalClassify, plantClassify, getSwanId, requestPolymerPayment, navigateToSmartGameProgram, navigateToSmartProgram, navigateBackSmartProgram, preloadSubPackage };
@@ -1,26 +1,30 @@
1
- import { temporarilyNotSupport } from '../../utils';
2
- export const setPageInfo = temporarilyNotSupport('setPageInfo');
1
+ import { temporarilyNotSupport } from '../../utils/index.js';
2
+
3
+ const setPageInfo = temporarilyNotSupport('setPageInfo');
3
4
  // 百度小程序 AI 相关
4
- export const ocrIdCard = temporarilyNotSupport('ocrIdCard');
5
- export const ocrBankCard = temporarilyNotSupport('ocrBankCard');
6
- export const ocrDrivingLicense = temporarilyNotSupport('ocrDrivingLicense');
7
- export const ocrVehicleLicense = temporarilyNotSupport('ocrVehicleLicense');
8
- export const textReview = temporarilyNotSupport('textReview');
9
- export const textToAudio = temporarilyNotSupport('textToAudio');
10
- export const imageAudit = temporarilyNotSupport('imageAudit');
11
- export const advancedGeneralIdentify = temporarilyNotSupport('advancedGeneralIdentify');
12
- export const objectDetectIdentify = temporarilyNotSupport('objectDetectIdentify');
13
- export const carClassify = temporarilyNotSupport('carClassify');
14
- export const dishClassify = temporarilyNotSupport('dishClassify');
15
- export const logoClassify = temporarilyNotSupport('logoClassify');
16
- export const animalClassify = temporarilyNotSupport('animalClassify');
17
- export const plantClassify = temporarilyNotSupport('plantClassify');
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');
18
19
  // 用户信息
19
- export const getSwanId = temporarilyNotSupport('getSwanId');
20
+ const getSwanId = temporarilyNotSupport('getSwanId');
20
21
  // 百度收银台支付
21
- export const requestPolymerPayment = temporarilyNotSupport('requestPolymerPayment');
22
+ const requestPolymerPayment = temporarilyNotSupport('requestPolymerPayment');
22
23
  // 打开小程序
23
- export const navigateToSmartGameProgram = temporarilyNotSupport('navigateToSmartGameProgram');
24
- export const navigateToSmartProgram = temporarilyNotSupport('navigateToSmartProgram');
25
- export const navigateBackSmartProgram = temporarilyNotSupport('navigateBackSmartProgram');
26
- export const preloadSubPackage = temporarilyNotSupport('preloadSubPackage');
24
+ const navigateToSmartGameProgram = temporarilyNotSupport('navigateToSmartGameProgram');
25
+ const navigateToSmartProgram = temporarilyNotSupport('navigateToSmartProgram');
26
+ const navigateBackSmartProgram = temporarilyNotSupport('navigateBackSmartProgram');
27
+ const preloadSubPackage = temporarilyNotSupport('preloadSubPackage');
28
+
29
+ export { advancedGeneralIdentify, animalClassify, carClassify, dishClassify, getSwanId, imageAudit, logoClassify, navigateBackSmartProgram, navigateToSmartGameProgram, navigateToSmartProgram, objectDetectIdentify, ocrBankCard, ocrDrivingLicense, ocrIdCard, ocrVehicleLicense, plantClassify, preloadSubPackage, requestPolymerPayment, setPageInfo, textReview, textToAudio };
30
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/api/swan/index.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\nexport const setPageInfo = temporarilyNotSupport('setPageInfo')\n\n// 百度小程序 AI 相关\nexport const ocrIdCard = temporarilyNotSupport('ocrIdCard')\nexport const ocrBankCard = temporarilyNotSupport('ocrBankCard')\nexport const ocrDrivingLicense = temporarilyNotSupport('ocrDrivingLicense')\nexport const ocrVehicleLicense = temporarilyNotSupport('ocrVehicleLicense')\nexport const textReview = temporarilyNotSupport('textReview')\nexport const textToAudio = temporarilyNotSupport('textToAudio')\nexport const imageAudit = temporarilyNotSupport('imageAudit')\nexport const advancedGeneralIdentify = temporarilyNotSupport('advancedGeneralIdentify')\nexport const objectDetectIdentify = temporarilyNotSupport('objectDetectIdentify')\nexport const carClassify = temporarilyNotSupport('carClassify')\nexport const dishClassify = temporarilyNotSupport('dishClassify')\nexport const logoClassify = temporarilyNotSupport('logoClassify')\nexport const animalClassify = temporarilyNotSupport('animalClassify')\nexport const plantClassify = temporarilyNotSupport('plantClassify')\n\n// 用户信息\nexport const getSwanId = temporarilyNotSupport('getSwanId')\n\n// 百度收银台支付\nexport const requestPolymerPayment = temporarilyNotSupport('requestPolymerPayment')\n\n// 打开小程序\nexport const navigateToSmartGameProgram = temporarilyNotSupport('navigateToSmartGameProgram')\nexport const navigateToSmartProgram = temporarilyNotSupport('navigateToSmartProgram')\nexport const navigateBackSmartProgram = temporarilyNotSupport('navigateBackSmartProgram')\nexport const preloadSubPackage = temporarilyNotSupport('preloadSubPackage')\n"],"names":[],"mappings":";;MAEa,WAAW,GAAG,qBAAqB,CAAC,aAAa,EAAC;AAE/D;MACa,SAAS,GAAG,qBAAqB,CAAC,WAAW,EAAC;MAC9C,WAAW,GAAG,qBAAqB,CAAC,aAAa,EAAC;MAClD,iBAAiB,GAAG,qBAAqB,CAAC,mBAAmB,EAAC;MAC9D,iBAAiB,GAAG,qBAAqB,CAAC,mBAAmB,EAAC;MAC9D,UAAU,GAAG,qBAAqB,CAAC,YAAY,EAAC;MAChD,WAAW,GAAG,qBAAqB,CAAC,aAAa,EAAC;MAClD,UAAU,GAAG,qBAAqB,CAAC,YAAY,EAAC;MAChD,uBAAuB,GAAG,qBAAqB,CAAC,yBAAyB,EAAC;MAC1E,oBAAoB,GAAG,qBAAqB,CAAC,sBAAsB,EAAC;MACpE,WAAW,GAAG,qBAAqB,CAAC,aAAa,EAAC;MAClD,YAAY,GAAG,qBAAqB,CAAC,cAAc,EAAC;MACpD,YAAY,GAAG,qBAAqB,CAAC,cAAc,EAAC;MACpD,cAAc,GAAG,qBAAqB,CAAC,gBAAgB,EAAC;MACxD,aAAa,GAAG,qBAAqB,CAAC,eAAe,EAAC;AAEnE;MACa,SAAS,GAAG,qBAAqB,CAAC,WAAW,EAAC;AAE3D;MACa,qBAAqB,GAAG,qBAAqB,CAAC,uBAAuB,EAAC;AAEnF;MACa,0BAA0B,GAAG,qBAAqB,CAAC,4BAA4B,EAAC;MAChF,sBAAsB,GAAG,qBAAqB,CAAC,wBAAwB,EAAC;MACxE,wBAAwB,GAAG,qBAAqB,CAAC,0BAA0B,EAAC;MAC5E,iBAAiB,GAAG,qBAAqB,CAAC,mBAAmB;;;;"}
@@ -6,5 +6,4 @@ declare const initPxTransform: any;
6
6
  declare const requirePlugin: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
7
7
  declare const pxTransform: (size: any) => string;
8
8
  declare const canIUseWebp: () => boolean;
9
- export default taro;
10
- export { Behavior, canIUseWebp, Current, ENV_TYPE, eventCenter, Events, getEnv, history, initPxTransform, interceptors, Link, options, preload, pxTransform, requirePlugin };
9
+ export { taro as default, Behavior, canIUseWebp, Current, ENV_TYPE, eventCenter, Events, getEnv, history, initPxTransform, interceptors, Link, options, preload, pxTransform, requirePlugin };
package/dist/api/taro.js CHANGED
@@ -1,8 +1,12 @@
1
1
  import Taro from '@tarojs/api';
2
- import { history } from '@tarojs/router';
2
+ import { history, navigateBack, navigateTo, reLaunch, redirectTo, getCurrentPages, switchTab } from '@tarojs/router';
3
+ export { history } from '@tarojs/router';
3
4
  import { isFunction } from '@tarojs/shared';
4
- import { getApp, getCurrentInstance, getCurrentPages, navigateBack, navigateTo, nextTick, redirectTo, reLaunch, switchTab } from '../api';
5
- import { permanentlyNotSupport } from '../utils';
5
+ import './index.js';
6
+ import { permanentlyNotSupport } from '../utils/index.js';
7
+ import { getCurrentInstance, getApp } from './framework/index.js';
8
+ import { nextTick } from './ui/custom-component.js';
9
+
6
10
  const { Behavior, getEnv, ENV_TYPE, Link, interceptors, getInitPxTransform, Current, options, eventCenter, Events, preload } = Taro;
7
11
  const taro = {
8
12
  // @ts-ignore
@@ -29,13 +33,13 @@ const taro = {
29
33
  const initPxTransform = getInitPxTransform(taro);
30
34
  const requirePlugin = permanentlyNotSupport('requirePlugin');
31
35
  const pxTransform = function (size) {
32
- const options = taro.config;
33
- const baseFontSize = options.baseFontSize || 20;
34
- const designWidth = ((input = 0) => isFunction(options.designWidth)
35
- ? options.designWidth(input)
36
- : options.designWidth);
37
- const rootValue = (input = 0) => baseFontSize / options.deviceRatio[designWidth(input)] * 2;
38
- return Math.ceil((parseInt(size, 10) / rootValue(size)) * 10000) / 10000 + 'rem';
36
+ const config = taro.config;
37
+ const baseFontSize = config.baseFontSize || 20;
38
+ const designWidth = (((input = 0) => isFunction(config.designWidth)
39
+ ? config.designWidth(input)
40
+ : config.designWidth))(size);
41
+ const rootValue = baseFontSize / config.deviceRatio[designWidth] * 2;
42
+ return Math.ceil((parseInt(size, 10) / rootValue) * 10000) / 10000 + 'rem';
39
43
  };
40
44
  const canIUseWebp = function () {
41
45
  const canvas = document.createElement('canvas');
@@ -47,5 +51,6 @@ taro.pxTransform = pxTransform;
47
51
  taro.initPxTransform = initPxTransform;
48
52
  // @ts-ignore
49
53
  taro.canIUseWebp = canIUseWebp;
50
- export default taro;
51
- export { Behavior, canIUseWebp, Current, ENV_TYPE, eventCenter, Events, getEnv, history, initPxTransform, interceptors, Link, options, preload, pxTransform, requirePlugin };
54
+
55
+ export { Behavior, Current, ENV_TYPE, Events, Link, canIUseWebp, taro as default, eventCenter, getEnv, initPxTransform, interceptors, options, preload, pxTransform, requirePlugin };
56
+ //# sourceMappingURL=taro.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"taro.js","sources":["../../src/api/taro.ts"],"sourcesContent":["import Taro from '@tarojs/api'\nimport { history } from '@tarojs/router'\nimport { isFunction } from '@tarojs/shared'\n\nimport { getApp, getCurrentInstance, getCurrentPages, navigateBack, navigateTo, nextTick, redirectTo, reLaunch, switchTab } from '../api'\nimport { permanentlyNotSupport } from '../utils'\n\nconst {\n Behavior,\n getEnv,\n ENV_TYPE,\n Link,\n interceptors,\n getInitPxTransform,\n Current,\n options,\n eventCenter,\n Events,\n preload\n} = Taro as any\n\nconst taro: typeof Taro = {\n // @ts-ignore\n Behavior,\n getEnv,\n ENV_TYPE,\n Link,\n interceptors,\n Current,\n getCurrentInstance,\n options,\n nextTick,\n eventCenter,\n Events,\n preload,\n history,\n navigateBack,\n navigateTo,\n reLaunch,\n redirectTo,\n getCurrentPages,\n switchTab\n}\n\nconst initPxTransform = getInitPxTransform(taro)\n\nconst requirePlugin = permanentlyNotSupport('requirePlugin')\n\nconst pxTransform = function (size) {\n const config = (taro as any).config\n const baseFontSize = config.baseFontSize || 20\n const designWidth = (((input = 0) => isFunction(config.designWidth)\n ? config.designWidth(input)\n : config.designWidth))(size)\n const rootValue = baseFontSize / config.deviceRatio[designWidth] * 2\n return Math.ceil((parseInt(size, 10) / rootValue) * 10000) / 10000 + 'rem'\n}\n\nconst canIUseWebp = function () {\n const canvas = document.createElement('canvas')\n return canvas.toDataURL('image/webp').indexOf('data:image/webp') === 0\n}\n\ntaro.requirePlugin = requirePlugin\ntaro.getApp = getApp\ntaro.pxTransform = pxTransform\ntaro.initPxTransform = initPxTransform\n// @ts-ignore\ntaro.canIUseWebp = canIUseWebp\n\nexport default taro\n\nexport {\n Behavior,\n canIUseWebp,\n Current,\n ENV_TYPE,\n eventCenter,\n Events,\n getEnv,\n history,\n initPxTransform,\n interceptors,\n Link,\n options,\n preload,\n pxTransform,\n requirePlugin\n}\n"],"names":[],"mappings":";;;;;;;;;AAOM,MAAA,EACJ,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,IAAI,EACJ,YAAY,EACZ,kBAAkB,EAClB,OAAO,EACP,OAAO,EACP,WAAW,EACX,MAAM,EACN,OAAO,EACR,GAAG,KAAW;AAEf,MAAM,IAAI,GAAgB;;IAExB,QAAQ;IACR,MAAM;IACN,QAAQ;IACR,IAAI;IACJ,YAAY;IACZ,OAAO;IACP,kBAAkB;IAClB,OAAO;IACP,QAAQ;IACR,WAAW;IACX,MAAM;IACN,OAAO;IACP,OAAO;IACP,YAAY;IACZ,UAAU;IACV,QAAQ;IACR,UAAU;IACV,eAAe;IACf,SAAS;EACV;AAED,MAAM,eAAe,GAAG,kBAAkB,CAAC,IAAI,EAAC;AAEhD,MAAM,aAAa,GAAG,qBAAqB,CAAC,eAAe,EAAC;AAEtD,MAAA,WAAW,GAAG,UAAU,IAAI,EAAA;AAChC,IAAA,MAAM,MAAM,GAAI,IAAY,CAAC,MAAM,CAAA;AACnC,IAAA,MAAM,YAAY,GAAG,MAAM,CAAC,YAAY,IAAI,EAAE,CAAA;AAC9C,IAAA,MAAM,WAAW,GAAG,EAAE,CAAC,KAAK,GAAG,CAAC,KAAK,UAAU,CAAC,MAAM,CAAC,WAAW,CAAC;AACjE,UAAE,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC;UACzB,MAAM,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;AAC9B,IAAA,MAAM,SAAS,GAAG,YAAY,GAAG,MAAM,CAAC,WAAW,CAAC,WAAW,CAAC,GAAG,CAAC,CAAA;IACpE,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,IAAI,EAAE,EAAE,CAAC,GAAG,SAAS,IAAI,KAAK,CAAC,GAAG,KAAK,GAAG,KAAK,CAAA;AAC5E,EAAC;AAED,MAAM,WAAW,GAAG,YAAA;IAClB,MAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAA;AAC/C,IAAA,OAAO,MAAM,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAA;AACxE,EAAC;AAED,IAAI,CAAC,aAAa,GAAG,aAAa,CAAA;AAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;AACpB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAA;AAC9B,IAAI,CAAC,eAAe,GAAG,eAAe,CAAA;AACtC;AACA,IAAI,CAAC,WAAW,GAAG,WAAW;;;;"}
@@ -1,2 +1,3 @@
1
1
  import Taro from '@tarojs/api';
2
- export declare const createAnimation: typeof Taro.createAnimation;
2
+ declare const createAnimation: typeof Taro.createAnimation;
3
+ export { createAnimation };
@@ -283,6 +283,9 @@ class Animation {
283
283
  }
284
284
  }
285
285
  // h5 的 createAnimation
286
- export const createAnimation = (option) => {
286
+ const createAnimation = (option) => {
287
287
  return new Animation(option);
288
288
  };
289
+
290
+ export { createAnimation };
291
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../src/api/ui/animation/index.ts"],"sourcesContent":["import Taro from '@tarojs/api'\n\n/**\n * H5 下的 styleSheet 操作\n * @author leeenx\n */\nclass StyleSheet {\n constructor () {\n this.$style = document.createElement('style')\n }\n\n $style?: HTMLStyleElement | null = null\n sheet?: CSSStyleSheet | null = null\n\n appendStyleSheet = () => {\n if (this.$style) {\n const head = document.getElementsByTagName('head')[0]\n this.$style.setAttribute('type', 'text/css')\n this.$style.setAttribute('data-type', 'Taro')\n head.appendChild(this.$style)\n this.sheet = this.$style.sheet\n }\n if (this.sheet && !('insertRule' in this.sheet)) {\n console.warn('当前浏览器不支持 stylesheet.insertRule 接口')\n }\n }\n\n // 添加样式命令\n add = (cssText, index = 0) => {\n if (this.sheet === null) {\n // $style 未插入到 DOM\n this.appendStyleSheet()\n }\n this.sheet?.insertRule(cssText, index)\n }\n}\n\nconst styleSheet = new StyleSheet()\n\n// 监听事件\nlet TRANSITION_END = 'transitionend'\nlet TRANSFORM = 'transform'\n\nconst $detect = document.createElement('div')\n$detect.style.cssText = '-webkit-animation-name:webkit;-moz-animation-name:moz;-ms-animation-name:ms;animation-name:standard;'\nif ($detect.style['animation-name'] === 'standard') {\n // 支持标准写法\n TRANSITION_END = 'transitionend'\n TRANSFORM = 'transform'\n} else if ($detect.style['-webkit-animation-name'] === 'webkit') {\n // webkit 前缀\n TRANSITION_END = 'webkitTransitionEnd'\n TRANSFORM = '-webkit-transform'\n} else if ($detect.style['-moz-animation-name'] === 'moz') {\n // moz 前缀\n TRANSITION_END = 'mozTransitionEnd'\n TRANSFORM = '-moz-transform'\n} else if ($detect.style['-ms-animation-name'] === 'ms') {\n // ms 前缀\n TRANSITION_END = 'msTransitionEnd'\n TRANSFORM = '-ms-transform'\n}\n\nlet animId = 0\n\ninterface IAnimationAttr {\n duration: number\n delay: number\n timingFunction: string\n transformOrigin: string\n}\n\nclass Animation implements Taro.Animation {\n unit: string\n id: number\n DEFAULT: IAnimationAttr\n\n constructor (\n {\n duration = 400,\n delay = 0,\n timingFunction = 'linear',\n transformOrigin = '50% 50% 0',\n unit = 'px'\n }: Taro.createAnimation.Option = {}\n ) {\n // 默认值\n this.setDefault(duration, delay, timingFunction, transformOrigin)\n this.unit = unit\n // atom 环境下,animation 属性不会显示,所以要改成 data-animation\n let animAttr = 'animation'\n // 动画 id\n this.id = ++animId\n // 监听事件\n document.body.addEventListener(TRANSITION_END, (e: TransitionEvent) => {\n const target = e.target as HTMLElement\n if (target.getAttribute(animAttr) === null) {\n animAttr = 'data-animation'\n }\n const animData = target.getAttribute(animAttr)\n // 没有动画存在\n if (animData === null) return\n const [animName, animPath] = animData.split('__')\n if (animName === `taro-h5-poly-fill/${this.id}/create-animation`) {\n const [animIndex, __stepIndex = 0] = animPath.split('--')\n const stepIndex = Number(__stepIndex)\n // 动画总的关键帧\n const animStepsCount = this.animationMap[`${animName}__${animIndex}`]\n const animStepsMaxIndex = animStepsCount - 1\n if (stepIndex < animStepsMaxIndex) {\n // 播放下一个关键帧(因为 nerv 和 react 有差异所以 animation & data-animation 都需要写)\n target.setAttribute(animAttr, `${animName}__${animIndex}--${stepIndex + 1}`)\n if (animAttr === 'animation') {\n // Nerv 环境,animation & data-animation 双重保险\n target.setAttribute('data-animation', `${animName}__${animIndex}--${stepIndex + 1}`)\n }\n }\n }\n })\n }\n\n transformUnit (...args) {\n const ret: string[] = []\n args.forEach(each => {\n ret.push(isNaN(each) ? each : `${each}${this.unit}`)\n })\n return ret\n }\n\n // 设置默认值\n setDefault (duration, delay, timingFunction, transformOrigin) {\n this.DEFAULT = { duration, delay, timingFunction, transformOrigin }\n }\n\n // 属性组合\n rules: string[] = []\n // transform 对象\n transform = [`${TRANSFORM}:`]\n // 组合动画\n steps: string[] = []\n // 动画 map ----- 永久保留\n animationMap = {}\n // animationMap 的长度\n animationMapCount = 0\n\n matrix (a: number, b: number, c: number, d: number, tx: number, ty: number) {\n this.transform.push(`matrix(${a}, ${b}, ${c}, ${d}, ${tx}, ${ty})`)\n return this\n }\n\n matrix3d (a1: number, b1: number, c1: number, d1: number, a2: number, b2: number, c2: number, d2: number, a3: number, b3: number, c3: number, d3: number, a4: number, b4: number, c4: number, d4: number) {\n this.transform.push(`matrix3d(${a1}, ${b1}, ${c1}, ${d1}, ${a2}, ${b2}, ${c2}, ${d2}, ${a3}, ${b3}, ${c3}, ${d3}, ${a4}, ${b4}, ${c4}, ${d4})`)\n return this\n }\n\n rotate (angle: number) {\n this.transform.push(`rotate(${angle}deg)`)\n return this\n }\n\n rotate3d (x: number, y?: number, z?: number, angle?: number) {\n if (typeof y !== 'number') {\n this.transform.push(`rotate3d(${x})`)\n } else {\n this.transform.push(`rotate3d(${x}, ${y || 0}, ${z || 0}, ${angle || 0}deg)`)\n }\n return this\n }\n\n rotateX (angle) {\n this.transform.push(`rotateX(${angle}deg)`)\n return this\n }\n\n rotateY (angle) {\n this.transform.push(`rotateY(${angle}deg)`)\n return this\n }\n\n rotateZ (angle) {\n this.transform.push(`rotateZ(${angle}deg)`)\n return this\n }\n\n scale (x, y) {\n this.transform.push(`scale(${x}, ${y})`)\n return this\n }\n\n scale3d (x, y, z) {\n this.transform.push(`scale3d(${x}, ${y}, ${z})`)\n return this\n }\n\n scaleX (scale) {\n this.transform.push(`scaleX(${scale})`)\n return this\n }\n\n scaleY (scale) {\n this.transform.push(`scaleY(${scale})`)\n return this\n }\n\n scaleZ (scale) {\n this.transform.push(`scaleZ(${scale})`)\n return this\n }\n\n skew (x, y) {\n this.transform.push(`skew(${x}, ${y})`)\n return this\n }\n\n skewX (angle) {\n this.transform.push(`skewX(${angle})`)\n return this\n }\n\n skewY (angle) {\n this.transform.push(`skewY(${angle})`)\n return this\n }\n\n translate (x, y) {\n [x, y] = this.transformUnit(x, y)\n this.transform.push(`translate(${x}, ${y})`)\n return this\n }\n\n translate3d (x, y, z) {\n [x, y, z] = this.transformUnit(x, y, z)\n this.transform.push(\n `translate3d(${x}, ${y}, ${z})`\n )\n return this\n }\n\n translateX (translate) {\n [translate] = this.transformUnit(translate)\n this.transform.push(`translateX(${translate})`)\n return this\n }\n\n translateY (translate) {\n [translate] = this.transformUnit(translate)\n this.transform.push(`translateY(${translate})`)\n return this\n }\n\n translateZ (translate) {\n [translate] = this.transformUnit(translate)\n this.transform.push(`translateZ(${translate})`)\n return this\n }\n\n opacity (value) {\n this.rules.push(`opacity: ${value}`)\n return this\n }\n\n backgroundColor (value) {\n this.rules.push(`background-color: ${value}`)\n return this\n }\n\n width (value) {\n [value] = this.transformUnit(value)\n this.rules.push(`width: ${value}`)\n return this\n }\n\n height (value) {\n [value] = this.transformUnit(value)\n this.rules.push(`height: ${value}`)\n return this\n }\n\n top (value) {\n [value] = this.transformUnit(value)\n this.rules.push(`top: ${value}`)\n return this\n }\n\n right (value) {\n [value] = this.transformUnit(value)\n this.rules.push(`right: ${value}`)\n return this\n }\n\n bottom (value) {\n [value] = this.transformUnit(value)\n this.rules.push(`bottom: ${value}`)\n return this\n }\n\n left (value) {\n [value] = this.transformUnit(value)\n this.rules.push(`left: ${value}`)\n return this\n }\n\n // 关键帧载入\n step (arg: Partial<IAnimationAttr> = {}) {\n const { DEFAULT } = this\n const {\n duration = DEFAULT.duration,\n delay = DEFAULT.delay,\n timingFunction = DEFAULT.timingFunction,\n transformOrigin = DEFAULT.transformOrigin\n } = arg\n // 生成一条 transition 动画\n this.steps.push(\n [\n this.rules.map(rule => `${rule}!important`).join(';'),\n `${this.transform.join(' ')}!important`,\n `${TRANSFORM}-origin: ${transformOrigin}`,\n `transition: all ${duration}ms ${timingFunction} ${delay}ms`\n ]\n .filter(item => item !== '' && item !== `${TRANSFORM}:`)\n .join(';')\n )\n // 清空 rules 和 transform\n this.rules = []\n this.transform = [`${TRANSFORM}:`]\n return this as Taro.Animation\n }\n\n // 创建底层数据\n createAnimationData () {\n const animIndex = `taro-h5-poly-fill/${this.id}/create-animation__${this.animationMapCount++}`\n // 记录动画分几个 step\n this.animationMap[animIndex] = this.steps.length\n // 吐出 step\n this.steps.forEach((step, index) => {\n const selector = index === 0\n ? `[animation=\"${animIndex}\"], [data-animation=\"${animIndex}\"]`\n : `[animation=\"${animIndex}--${index}\"], [data-animation=\"${animIndex}--${index}\"]`\n styleSheet.add(`${selector} { ${step} }`)\n })\n\n // 清空 steps\n this.steps = []\n return animIndex\n }\n\n // 动画数据产出\n export () {\n return this.createAnimationData() as unknown as ReturnType<Taro.Animation['export']>\n }\n}\n\n// h5 的 createAnimation\nexport const createAnimation: typeof Taro.createAnimation = (option) => {\n return new Animation(option)\n}\n"],"names":[],"mappings":"AAEA;;;AAGG;AACH,MAAM,UAAU,CAAA;AACd,IAAA,WAAA,GAAA;QAIA,IAAM,CAAA,MAAA,GAA6B,IAAI,CAAA;QACvC,IAAK,CAAA,KAAA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