@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.
- package/dist/api/ad/index.d.ts +3 -2
- package/dist/api/ad/index.js +7 -3
- package/dist/api/ad/index.js.map +1 -0
- package/dist/api/ai/facial.d.ts +4 -3
- package/dist/api/ai/facial.js +8 -4
- package/dist/api/ai/facial.js.map +1 -0
- package/dist/api/ai/index.d.ts +2 -2
- package/dist/api/ai/index.js +3 -2
- package/dist/api/ai/index.js.map +1 -0
- package/dist/api/ai/visual.d.ts +3 -2
- package/dist/api/ai/visual.js +7 -3
- package/dist/api/ai/visual.js.map +1 -0
- package/dist/api/alipay/index.d.ts +2 -1
- package/dist/api/alipay/index.js +6 -2
- package/dist/api/alipay/index.js.map +1 -0
- package/dist/api/base/crypto.d.ts +2 -1
- package/dist/api/base/crypto.js +6 -2
- package/dist/api/base/crypto.js.map +1 -0
- package/dist/api/base/debug.d.ts +4 -3
- package/dist/api/base/debug.js +8 -4
- package/dist/api/base/debug.js.map +1 -0
- package/dist/api/base/index.d.ts +16 -10
- package/dist/api/base/index.js +20 -12
- package/dist/api/base/index.js.map +1 -0
- package/dist/api/base/performance.d.ts +3 -2
- package/dist/api/base/performance.js +7 -3
- package/dist/api/base/performance.js.map +1 -0
- package/dist/api/base/system.d.ts +11 -10
- package/dist/api/base/system.js +22 -22
- package/dist/api/base/system.js.map +1 -0
- package/dist/api/base/update.d.ts +3 -2
- package/dist/api/base/update.js +7 -3
- package/dist/api/base/update.js.map +1 -0
- package/dist/api/base/weapp/app-event.d.ts +17 -16
- package/dist/api/base/weapp/app-event.js +22 -18
- package/dist/api/base/weapp/app-event.js.map +1 -0
- package/dist/api/base/weapp/life-cycle.d.ts +3 -2
- package/dist/api/base/weapp/life-cycle.js +6 -2
- package/dist/api/base/weapp/life-cycle.js.map +1 -0
- package/dist/api/canvas/CanvasContext.d.ts +7 -2
- package/dist/api/canvas/CanvasContext.js +6 -10
- package/dist/api/canvas/CanvasContext.js.map +1 -0
- package/dist/api/canvas/canvasGetImageData.d.ts +2 -1
- package/dist/api/canvas/canvasGetImageData.js +7 -3
- package/dist/api/canvas/canvasGetImageData.js.map +1 -0
- package/dist/api/canvas/canvasPutImageData.d.ts +2 -1
- package/dist/api/canvas/canvasPutImageData.js +7 -3
- package/dist/api/canvas/canvasPutImageData.js.map +1 -0
- package/dist/api/canvas/canvasToTempFilePath.d.ts +2 -1
- package/dist/api/canvas/canvasToTempFilePath.js +7 -3
- package/dist/api/canvas/canvasToTempFilePath.js.map +1 -0
- package/dist/api/canvas/createCanvasContext.d.ts +2 -1
- package/dist/api/canvas/createCanvasContext.js +7 -3
- package/dist/api/canvas/createCanvasContext.js.map +1 -0
- package/dist/api/canvas/index.d.ts +6 -5
- package/dist/api/canvas/index.js +10 -10
- package/dist/api/canvas/index.js.map +1 -0
- package/dist/api/cloud/index.d.ts +2 -1
- package/dist/api/cloud/index.js +6 -2
- package/dist/api/cloud/index.js.map +1 -0
- package/dist/api/data-analysis/index.d.ts +5 -4
- package/dist/api/data-analysis/index.js +9 -5
- package/dist/api/data-analysis/index.js.map +1 -0
- package/dist/api/device/accelerometer.d.ts +5 -4
- package/dist/api/device/accelerometer.js +11 -6
- package/dist/api/device/accelerometer.js.map +1 -0
- package/dist/api/device/accessibility.d.ts +2 -1
- package/dist/api/device/accessibility.js +6 -2
- package/dist/api/device/accessibility.js.map +1 -0
- package/dist/api/device/battery.d.ts +3 -2
- package/dist/api/device/battery.js +9 -13
- package/dist/api/device/battery.js.map +1 -0
- package/dist/api/device/bluetooth-ble.d.ts +17 -16
- package/dist/api/device/bluetooth-ble.js +21 -17
- package/dist/api/device/bluetooth-ble.js.map +1 -0
- package/dist/api/device/bluetooth-peripheral.d.ts +4 -3
- package/dist/api/device/bluetooth-peripheral.js +8 -4
- package/dist/api/device/bluetooth-peripheral.js.map +1 -0
- package/dist/api/device/bluetooth.d.ts +14 -13
- package/dist/api/device/bluetooth.js +18 -14
- package/dist/api/device/bluetooth.js.map +1 -0
- package/dist/api/device/calendar.d.ts +3 -2
- package/dist/api/device/calendar.js +7 -3
- package/dist/api/device/calendar.js.map +1 -0
- package/dist/api/device/clipboard.d.ts +3 -2
- package/dist/api/device/clipboard.js +10 -14
- package/dist/api/device/clipboard.js.map +1 -0
- package/dist/api/device/compass.d.ts +5 -4
- package/dist/api/device/compass.js +12 -7
- package/dist/api/device/compass.js.map +1 -0
- package/dist/api/device/contact.d.ts +3 -2
- package/dist/api/device/contact.js +7 -3
- package/dist/api/device/contact.js.map +1 -0
- package/dist/api/device/crypto.d.ts +2 -1
- package/dist/api/device/crypto.js +6 -2
- package/dist/api/device/crypto.js.map +1 -0
- package/dist/api/device/gyroscope.d.ts +5 -4
- package/dist/api/device/gyroscope.js +9 -5
- package/dist/api/device/gyroscope.js.map +1 -0
- package/dist/api/device/iBeacon.d.ts +8 -7
- package/dist/api/device/iBeacon.js +12 -8
- package/dist/api/device/iBeacon.js.map +1 -0
- package/dist/api/device/index.d.ts +23 -23
- package/dist/api/device/index.js +24 -23
- package/dist/api/device/index.js.map +1 -0
- package/dist/api/device/keyboard.d.ts +5 -4
- package/dist/api/device/keyboard.js +9 -5
- package/dist/api/device/keyboard.js.map +1 -0
- package/dist/api/device/memory.d.ts +3 -2
- package/dist/api/device/memory.js +7 -3
- package/dist/api/device/memory.js.map +1 -0
- package/dist/api/device/motion.d.ts +5 -4
- package/dist/api/device/motion.js +11 -6
- package/dist/api/device/motion.js.map +1 -0
- package/dist/api/device/network.d.ts +7 -6
- package/dist/api/device/network.js +13 -17
- package/dist/api/device/network.js.map +1 -0
- package/dist/api/device/nfc.d.ts +8 -7
- package/dist/api/device/nfc.js +12 -8
- package/dist/api/device/nfc.js.map +1 -0
- package/dist/api/device/phone.d.ts +2 -1
- package/dist/api/device/phone.js +7 -3
- package/dist/api/device/phone.js.map +1 -0
- package/dist/api/device/scan.d.ts +2 -1
- package/dist/api/device/scan.js +6 -2
- package/dist/api/device/scan.js.map +1 -0
- package/dist/api/device/screen.d.ts +7 -6
- package/dist/api/device/screen.js +11 -7
- package/dist/api/device/screen.js.map +1 -0
- package/dist/api/device/vibrate.d.ts +3 -2
- package/dist/api/device/vibrate.js +7 -3
- package/dist/api/device/vibrate.js.map +1 -0
- package/dist/api/device/wifi.d.ts +12 -11
- package/dist/api/device/wifi.js +16 -12
- package/dist/api/device/wifi.js.map +1 -0
- package/dist/api/ext/index.d.ts +3 -2
- package/dist/api/ext/index.js +7 -3
- package/dist/api/ext/index.js.map +1 -0
- package/dist/api/files/index.d.ts +9 -8
- package/dist/api/files/index.js +13 -9
- package/dist/api/files/index.js.map +1 -0
- package/dist/api/framework/index.d.ts +3 -2
- package/dist/api/framework/index.js +7 -3
- package/dist/api/framework/index.js.map +1 -0
- package/dist/api/index.d.ts +24 -24
- package/dist/api/index.js +117 -24
- package/dist/api/index.js.map +1 -0
- package/dist/api/location/chooseLocation.d.ts +2 -2
- package/dist/api/location/chooseLocation.js +8 -14
- package/dist/api/location/chooseLocation.js.map +1 -0
- package/dist/api/location/getLocation.d.ts +2 -1
- package/dist/api/location/getLocation.js +7 -3
- package/dist/api/location/getLocation.js.map +1 -0
- package/dist/api/location/index.d.ts +13 -12
- package/dist/api/location/index.js +17 -13
- package/dist/api/location/index.js.map +1 -0
- package/dist/api/location/style.scss.js +8 -0
- package/dist/api/location/style.scss.js.map +1 -0
- package/dist/api/media/audio/InnerAudioContext.d.ts +3 -2
- package/dist/api/media/audio/InnerAudioContext.js +7 -3
- package/dist/api/media/audio/InnerAudioContext.js.map +1 -0
- package/dist/api/media/audio/index.d.ts +10 -9
- package/dist/api/media/audio/index.js +15 -11
- package/dist/api/media/audio/index.js.map +1 -0
- package/dist/api/media/background-audio/BackgroundAudioManager.d.ts +3 -2
- package/dist/api/media/background-audio/BackgroundAudioManager.js +7 -3
- package/dist/api/media/background-audio/BackgroundAudioManager.js.map +1 -0
- package/dist/api/media/background-audio/index.d.ts +11 -10
- package/dist/api/media/background-audio/index.js +15 -11
- package/dist/api/media/background-audio/index.js.map +1 -0
- package/dist/api/media/camera.d.ts +2 -1
- package/dist/api/media/camera.js +6 -2
- package/dist/api/media/camera.js.map +1 -0
- package/dist/api/media/image/chooseImage.d.ts +2 -1
- package/dist/api/media/image/chooseImage.js +7 -3
- package/dist/api/media/image/chooseImage.js.map +1 -0
- package/dist/api/media/image/getImageInfo.d.ts +2 -1
- package/dist/api/media/image/getImageInfo.js +7 -3
- package/dist/api/media/image/getImageInfo.js.map +1 -0
- package/dist/api/media/image/index.d.ts +8 -7
- package/dist/api/media/image/index.js +12 -8
- package/dist/api/media/image/index.js.map +1 -0
- package/dist/api/media/image/previewImage.d.ts +2 -1
- package/dist/api/media/image/previewImage.js +15 -12
- package/dist/api/media/image/previewImage.js.map +1 -0
- package/dist/api/media/index.d.ts +12 -12
- package/dist/api/media/index.js +13 -12
- package/dist/api/media/index.js.map +1 -0
- package/dist/api/media/live.d.ts +3 -2
- package/dist/api/media/live.js +7 -3
- package/dist/api/media/live.js.map +1 -0
- package/dist/api/media/map.d.ts +2 -1
- package/dist/api/media/map.js +6 -2
- package/dist/api/media/map.js.map +1 -0
- package/dist/api/media/media-recorder.d.ts +2 -1
- package/dist/api/media/media-recorder.js +6 -2
- package/dist/api/media/media-recorder.js.map +1 -0
- package/dist/api/media/recorder.d.ts +4 -3
- package/dist/api/media/recorder.js +8 -4
- package/dist/api/media/recorder.js.map +1 -0
- package/dist/api/media/video/index.d.ts +8 -7
- package/dist/api/media/video/index.js +13 -9
- package/dist/api/media/video/index.js.map +1 -0
- package/dist/api/media/video-decoder.d.ts +2 -1
- package/dist/api/media/video-decoder.js +6 -2
- package/dist/api/media/video-decoder.js.map +1 -0
- package/dist/api/media/video-processing.d.ts +2 -1
- package/dist/api/media/video-processing.js +6 -2
- package/dist/api/media/video-processing.js.map +1 -0
- package/dist/api/media/voip.d.ts +15 -14
- package/dist/api/media/voip.js +19 -15
- package/dist/api/media/voip.js.map +1 -0
- package/dist/api/navigate/index.d.ts +6 -5
- package/dist/api/navigate/index.js +10 -6
- package/dist/api/navigate/index.js.map +1 -0
- package/dist/api/network/download.d.ts +2 -1
- package/dist/api/network/download.js +14 -5
- package/dist/api/network/download.js.map +1 -0
- package/dist/api/network/index.d.ts +7 -7
- package/dist/api/network/index.js +8 -7
- package/dist/api/network/index.js.map +1 -0
- package/dist/api/network/mdns.d.ts +11 -10
- package/dist/api/network/mdns.js +15 -11
- package/dist/api/network/mdns.js.map +1 -0
- package/dist/api/network/request/index.d.ts +3 -3
- package/dist/api/network/request/index.js +8 -4
- package/dist/api/network/request/index.js.map +1 -0
- package/dist/api/network/tcp.d.ts +2 -1
- package/dist/api/network/tcp.js +6 -2
- package/dist/api/network/tcp.js.map +1 -0
- package/dist/api/network/udp.d.ts +2 -1
- package/dist/api/network/udp.js +6 -2
- package/dist/api/network/udp.js.map +1 -0
- package/dist/api/network/upload.d.ts +2 -1
- package/dist/api/network/upload.js +14 -5
- package/dist/api/network/upload.js.map +1 -0
- package/dist/api/network/utils.d.ts +5 -4
- package/dist/api/network/utils.js +7 -4
- package/dist/api/network/utils.js.map +1 -0
- package/dist/api/network/websocket/index.d.ts +8 -7
- package/dist/api/network/websocket/index.js +14 -10
- package/dist/api/network/websocket/index.js.map +1 -0
- package/dist/api/network/websocket/socketTask.d.ts +2 -1
- package/dist/api/network/websocket/socketTask.js +5 -1
- package/dist/api/network/websocket/socketTask.js.map +1 -0
- package/dist/api/open-api/account.d.ts +2 -1
- package/dist/api/open-api/account.js +6 -2
- package/dist/api/open-api/account.js.map +1 -0
- package/dist/api/open-api/address.d.ts +2 -1
- package/dist/api/open-api/address.js +6 -2
- package/dist/api/open-api/address.js.map +1 -0
- package/dist/api/open-api/authorize.d.ts +3 -2
- package/dist/api/open-api/authorize.js +7 -3
- package/dist/api/open-api/authorize.js.map +1 -0
- package/dist/api/open-api/card.d.ts +3 -2
- package/dist/api/open-api/card.js +7 -3
- package/dist/api/open-api/card.js.map +1 -0
- package/dist/api/open-api/channels-live.d.ts +7 -6
- package/dist/api/open-api/channels-live.js +11 -7
- package/dist/api/open-api/channels-live.js.map +1 -0
- package/dist/api/open-api/customer-service.d.ts +2 -1
- package/dist/api/open-api/customer-service.js +6 -2
- package/dist/api/open-api/customer-service.js.map +1 -0
- package/dist/api/open-api/facial.d.ts +5 -4
- package/dist/api/open-api/facial.js +9 -5
- package/dist/api/open-api/facial.js.map +1 -0
- package/dist/api/open-api/favorites.d.ts +3 -2
- package/dist/api/open-api/favorites.js +7 -3
- package/dist/api/open-api/favorites.js.map +1 -0
- package/dist/api/open-api/group.d.ts +2 -1
- package/dist/api/open-api/group.js +6 -2
- package/dist/api/open-api/group.js.map +1 -0
- package/dist/api/open-api/index.d.ts +18 -18
- package/dist/api/open-api/index.js +19 -18
- package/dist/api/open-api/index.js.map +1 -0
- package/dist/api/open-api/invoice.d.ts +3 -2
- package/dist/api/open-api/invoice.js +7 -3
- package/dist/api/open-api/invoice.js.map +1 -0
- package/dist/api/open-api/license-plate.d.ts +2 -1
- package/dist/api/open-api/license-plate.js +6 -2
- package/dist/api/open-api/license-plate.js.map +1 -0
- package/dist/api/open-api/login.d.ts +4 -3
- package/dist/api/open-api/login.js +8 -4
- package/dist/api/open-api/login.js.map +1 -0
- package/dist/api/open-api/red-package.d.ts +2 -1
- package/dist/api/open-api/red-package.js +6 -2
- package/dist/api/open-api/red-package.js.map +1 -0
- package/dist/api/open-api/settings.d.ts +3 -2
- package/dist/api/open-api/settings.js +7 -3
- package/dist/api/open-api/settings.js.map +1 -0
- package/dist/api/open-api/soter.d.ts +4 -3
- package/dist/api/open-api/soter.js +8 -4
- package/dist/api/open-api/soter.js.map +1 -0
- package/dist/api/open-api/subscribe-message.d.ts +2 -1
- package/dist/api/open-api/subscribe-message.js +6 -2
- package/dist/api/open-api/subscribe-message.js.map +1 -0
- package/dist/api/open-api/user-info.d.ts +3 -2
- package/dist/api/open-api/user-info.js +7 -3
- package/dist/api/open-api/user-info.js.map +1 -0
- package/dist/api/open-api/werun.d.ts +3 -2
- package/dist/api/open-api/werun.js +7 -3
- package/dist/api/open-api/werun.js.map +1 -0
- package/dist/api/payment/index.d.ts +3 -2
- package/dist/api/payment/index.js +7 -3
- package/dist/api/payment/index.js.map +1 -0
- package/dist/api/route/index.js +3 -1
- package/dist/api/route/index.js.map +1 -0
- package/dist/api/share/index.d.ts +11 -10
- package/dist/api/share/index.js +15 -11
- package/dist/api/share/index.js.map +1 -0
- package/dist/api/storage/background-fetch.d.ts +5 -4
- package/dist/api/storage/background-fetch.js +9 -5
- package/dist/api/storage/background-fetch.js.map +1 -0
- package/dist/api/storage/index.d.ts +14 -13
- package/dist/api/storage/index.js +19 -15
- package/dist/api/storage/index.js.map +1 -0
- package/dist/api/swan/index.d.ts +22 -21
- package/dist/api/swan/index.js +26 -22
- package/dist/api/swan/index.js.map +1 -0
- package/dist/api/taro.d.ts +1 -2
- package/dist/api/taro.js +17 -12
- package/dist/api/taro.js.map +1 -0
- package/dist/api/ui/animation/index.d.ts +2 -1
- package/dist/api/ui/animation/index.js +4 -1
- package/dist/api/ui/animation/index.js.map +1 -0
- package/dist/api/ui/background.d.ts +3 -2
- package/dist/api/ui/background.js +7 -3
- package/dist/api/ui/background.js.map +1 -0
- package/dist/api/ui/custom-component.d.ts +2 -1
- package/dist/api/ui/custom-component.js +5 -1
- package/dist/api/ui/custom-component.js.map +1 -0
- package/dist/api/ui/fonts.d.ts +2 -1
- package/dist/api/ui/fonts.js +7 -11
- package/dist/api/ui/fonts.js.map +1 -0
- package/dist/api/ui/index.d.ts +12 -12
- package/dist/api/ui/index.js +13 -12
- package/dist/api/ui/index.js.map +1 -0
- package/dist/api/ui/interaction/actionSheet.d.ts +2 -1
- package/dist/api/ui/interaction/actionSheet.js +6 -2
- package/dist/api/ui/interaction/actionSheet.js.map +1 -0
- package/dist/api/ui/interaction/index.js +9 -14
- package/dist/api/ui/interaction/index.js.map +1 -0
- package/dist/api/ui/interaction/modal.d.ts +2 -1
- package/dist/api/ui/interaction/modal.js +6 -2
- package/dist/api/ui/interaction/modal.js.map +1 -0
- package/dist/api/ui/interaction/toast.d.ts +2 -1
- package/dist/api/ui/interaction/toast.js +6 -2
- package/dist/api/ui/interaction/toast.js.map +1 -0
- package/dist/api/ui/menu.d.ts +2 -1
- package/dist/api/ui/menu.js +6 -2
- package/dist/api/ui/menu.js.map +1 -0
- package/dist/api/ui/navigation-bar/index.d.ts +6 -5
- package/dist/api/ui/navigation-bar/index.js +11 -7
- package/dist/api/ui/navigation-bar/index.js.map +1 -0
- package/dist/api/ui/pull-down-refresh.d.ts +3 -2
- package/dist/api/ui/pull-down-refresh.js +7 -3
- package/dist/api/ui/pull-down-refresh.js.map +1 -0
- package/dist/api/ui/scroll/index.d.ts +2 -1
- package/dist/api/ui/scroll/index.js +8 -3
- package/dist/api/ui/scroll/index.js.map +1 -0
- package/dist/api/ui/sticky.d.ts +2 -1
- package/dist/api/ui/sticky.js +6 -2
- package/dist/api/ui/sticky.js.map +1 -0
- package/dist/api/ui/tab-bar.d.ts +12 -10
- package/dist/api/ui/tab-bar.js +16 -11
- package/dist/api/ui/tab-bar.js.map +1 -0
- package/dist/api/ui/window.d.ts +4 -3
- package/dist/api/ui/window.js +9 -5
- package/dist/api/ui/window.js.map +1 -0
- package/dist/api/worker/index.d.ts +2 -1
- package/dist/api/worker/index.js +6 -2
- package/dist/api/worker/index.js.map +1 -0
- package/dist/api/wxml/IntersectionObserver.d.ts +3 -3
- package/dist/api/wxml/IntersectionObserver.js +6 -2
- package/dist/api/wxml/IntersectionObserver.js.map +1 -0
- package/dist/api/wxml/MediaQueryObserver.d.ts +4 -1
- package/dist/api/wxml/MediaQueryObserver.js +6 -2
- package/dist/api/wxml/MediaQueryObserver.js.map +1 -0
- package/dist/api/wxml/index.d.ts +4 -3
- package/dist/api/wxml/index.js +10 -6
- package/dist/api/wxml/index.js.map +1 -0
- package/dist/api/wxml/nodesRef.d.ts +3 -2
- package/dist/api/wxml/nodesRef.js +4 -1
- package/dist/api/wxml/nodesRef.js.map +1 -0
- package/dist/api/wxml/selectorQuery.d.ts +4 -4
- package/dist/api/wxml/selectorQuery.js +8 -4
- package/dist/api/wxml/selectorQuery.js.map +1 -0
- package/dist/index.cjs.d.ts +8 -4
- package/dist/index.cjs.js +14289 -84
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.esm.d.ts +8 -4
- package/dist/index.esm.js +14288 -84
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +113 -4
- package/dist/index.js.map +1 -0
- package/dist/node_modules/.pnpm/registry.npmjs.org_@stencil_core@2.22.2/node_modules/@stencil/core/internal/app-data/index.js +89 -0
- 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
- package/dist/node_modules/.pnpm/registry.npmjs.org_@stencil_core@2.22.2/node_modules/@stencil/core/internal/client/index.js +3371 -0
- package/dist/node_modules/.pnpm/registry.npmjs.org_@stencil_core@2.22.2/node_modules/@stencil/core/internal/client/index.js.map +1 -0
- package/dist/node_modules/.pnpm/registry.npmjs.org_@stencil_core@2.22.2/node_modules/@stencil/core/internal/client/shadow-css.js +388 -0
- 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
- package/dist/node_modules/.pnpm/registry.npmjs.org_style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js +29 -0
- 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
- package/dist/node_modules/.pnpm/registry.npmjs.org_tslib@1.14.1/node_modules/tslib/tslib.es6.js +221 -0
- package/dist/node_modules/.pnpm/registry.npmjs.org_tslib@1.14.1/node_modules/tslib/tslib.es6.js.map +1 -0
- package/dist/packages/taro-components/dist/components/index2.js +77 -0
- package/dist/packages/taro-components/dist/components/index2.js.map +1 -0
- package/dist/packages/taro-components/dist/components/index3.js +35 -0
- package/dist/packages/taro-components/dist/components/index3.js.map +1 -0
- package/dist/packages/taro-components/dist/components/taro-swiper-core.js +10171 -0
- package/dist/packages/taro-components/dist/components/taro-swiper-core.js.map +1 -0
- package/dist/packages/taro-components/dist/components/taro-swiper-item-core.js +69 -0
- package/dist/packages/taro-components/dist/components/taro-swiper-item-core.js.map +1 -0
- package/dist/utils/animation.d.ts +3 -2
- package/dist/utils/animation.js +5 -2
- package/dist/utils/animation.js.map +1 -0
- package/dist/utils/handler.d.ts +7 -7
- package/dist/utils/handler.js +7 -4
- package/dist/utils/handler.js.map +1 -0
- package/dist/utils/index.d.ts +16 -16
- package/dist/utils/index.js +26 -23
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/lodash.d.ts +3 -2
- package/dist/utils/lodash.js +5 -2
- package/dist/utils/lodash.js.map +1 -0
- package/dist/utils/valid.d.ts +2 -1
- package/dist/utils/valid.js +4 -1
- package/dist/utils/valid.js.map +1 -0
- package/package.json +10 -10
- package/types/define.d.ts +2 -0
- package/dist/api/location/style.css +0 -79
- package/dist/api/media/EditorContext.d.ts +0 -16
- package/dist/api/media/EditorContext.js +0 -19
- package/dist/taroApis.d.ts +0 -754
- package/dist/taroApis.js +0 -2
- 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
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
|
|
2
|
-
|
|
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
|
-
|
|
4
|
-
|
|
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
|
-
|
|
11
|
+
declare const setClipboardData: typeof Taro.setClipboardData;
|
|
12
12
|
/**
|
|
13
13
|
* 获取系统剪贴板的内容
|
|
14
14
|
*/
|
|
15
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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 } catch (e) {\r\n return handle.fail({ errMsg: e.message })\r\n }\r\n}\r\n"],"names":[],"mappings":"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"}
|
|
@@ -2,16 +2,17 @@ import Taro from '@tarojs/api';
|
|
|
2
2
|
/**
|
|
3
3
|
* 停止监听罗盘数据
|
|
4
4
|
*/
|
|
5
|
-
|
|
5
|
+
declare const stopCompass: typeof Taro.stopCompass;
|
|
6
6
|
/**
|
|
7
7
|
* 开始监听罗盘数据
|
|
8
8
|
*/
|
|
9
|
-
|
|
9
|
+
declare const startCompass: typeof Taro.startCompass;
|
|
10
10
|
/**
|
|
11
11
|
* 监听罗盘数据变化事件。频率:5 次/秒,接口调用后会自动开始监听,可使用 wx.stopCompass 停止监听。
|
|
12
12
|
*/
|
|
13
|
-
|
|
13
|
+
declare const onCompassChange: typeof Taro.onCompassChange;
|
|
14
14
|
/**
|
|
15
15
|
* 取消监听罗盘数据变化事件,参数为空,则取消所有的事件监听。
|
|
16
16
|
*/
|
|
17
|
-
|
|
17
|
+
declare const offCompassChange: typeof Taro.offCompassChange;
|
|
18
|
+
export { stopCompass, startCompass, onCompassChange, offCompassChange };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
72
|
+
const onCompassChange = callback => {
|
|
71
73
|
callbackManager.add(callback);
|
|
72
74
|
};
|
|
73
75
|
/**
|
|
74
76
|
* 取消监听罗盘数据变化事件,参数为空,则取消所有的事件监听。
|
|
75
77
|
*/
|
|
76
|
-
|
|
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 => {\r\n callbackManager.remove(callback)\r\n}\r\n"],"names":[],"mappings":"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"}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
|
|
4
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
13
|
-
export * from
|
|
14
|
-
export * from
|
|
15
|
-
export * from
|
|
16
|
-
export * from
|
|
17
|
-
export * from
|
|
18
|
-
export * from
|
|
19
|
-
export * from
|
|
20
|
-
export * from
|
|
21
|
-
export * from
|
|
22
|
-
export * from
|
|
23
|
-
export * from
|
|
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";
|
package/dist/api/device/index.js
CHANGED
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export
|
|
19
|
-
export
|
|
20
|
-
export
|
|
21
|
-
export
|
|
22
|
-
export
|
|
23
|
-
export
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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 };
|